def _DecodeFile(self, videofile, encodedfile, workdir):
    tempyuvfile = os.path.join(workdir,
                               videofile.basename + 'tempyuvfile.yuv')
    if os.path.isfile(tempyuvfile):
      print "Removing tempfile before decode:", tempyuvfile
      os.unlink(tempyuvfile)
    commandline = self.DecodeCommandLine(videofile, encodedfile, tempyuvfile)
    print commandline
    with open(os.path.devnull, 'r') as nullinput:
      subprocess_cpu_start = os.times()[2]
      returncode = subprocess.call(commandline, shell=True,
                                stdin=nullinput)
      if returncode:
        raise Exception(returncode % 'Decode failed with returncode %d')
      subprocess_cpu = os.times()[2] - subprocess_cpu_start
      print "Decode took %f seconds" % subprocess_cpu
      commandline = encoder.Tool("psnr") + " %s %s %d %d 9999" % (
        videofile.filename, tempyuvfile, videofile.width,
        videofile.height)
      print commandline
      psnr = subprocess.check_output(commandline, shell=True, stdin=nullinput)
      commandline = ['md5sum', tempyuvfile]
      md5 = subprocess.check_output(commandline, shell=False)
      yuv_md5 = md5.split(' ')[0]
    os.unlink(tempyuvfile)
    return psnr, subprocess_cpu, yuv_md5
dataset/ETHPy150Open google/compare-codecs/lib/file_codec.py/FileCodec._DecodeFile/swapped operands of `%`