def rank_of(self, filename):
    for i in range(len(self.filenames)):
      if self.filenames[i] == filename:
        return self.ranks[i]
    raise Exception(filename % "%s not found")
dataset/ETHPy150Open natduca/quickopen/src/query_result.py/QueryResult.rank_of/swapped operands of `%`