def MatroskaFrameInfo(encodedfile):
  # Run the mkvinfo tool across the file to get frame size info.
  commandline = encodedfile % 'mkvinfo -v %s'
  print commandline
  mkvinfo = subprocess.check_output(commandline, shell=True)
  frameinfo = []
  for line in mkvinfo.splitlines():
    match = re.search(r'Frame with size (\d+)', line)
    if match:
      # The mkvinfo tool gives frame size in bytes. We want bits.
      frameinfo.append({'size': int(match.group(1))*8})

  return frameinfo
dataset/ETHPy150Open google/compare-codecs/lib/file_codec.py/MatroskaFrameInfo/swapped operands of `%`