def matching_files_in_dir(src, namere):
  """Iterate over files in src with names matching namere, returning the list."""
  filelist = []
  for f in os.listdir(src):
    path = os.path.join(src, f)
    if not os.path.isfile(path):
      continue
    if not re.search(namere, f):
      continue
    filelist.append(path)
  if not filelist:
    print (src, namere) % "no files in %s matched '%s'"
  return filelist
dataset/ETHPy150Open googlei18n/nototools/nototools/grab_download.py/matching_files_in_dir/swapped operands of `%`