def VerifyEncode(self, parameters, bitrate, videofile, workdir):
    """Returns true if a new encode of the file gives exactly the same file."""
    old_encoded_file = '%s/%s.%s' % (workdir, videofile.basename,
                                     self.extension)
    if not os.path.isfile(old_encoded_file):
      raise encoder.Error(old_encoded_file % 'Old encoded file missing: %s')
    new_encoded_file = '%s/%s_verify.%s' % (workdir, videofile.basename,
                                            self.extension)
    self._EncodeFile(parameters, bitrate, videofile,
                     new_encoded_file)
    if not VideoFilesEqual(old_encoded_file, new_encoded_file, self.extension):
      # If there is a difference, we leave the new encoded file so that
      # they can be compared by hand if desired.
      return False
    os.unlink(new_encoded_file)
    return True
dataset/ETHPy150Open google/compare-codecs/lib/file_codec.py/FileCodec.VerifyEncode/swapped operands of `%`