def random_file():
  files = [f for f in os.listdir(filesdir) if re.match(r'.*\.(twt|tweet)$', f,  re.IGNORECASE)]
  jsonfiles = [f for f in os.listdir(filesdir) if re.match(r'.*\.json$', f,  re.IGNORECASE)]
  jsonfiles = [jf.replace('.json', '') for jf in jsonfiles]
  unprocessed_files = list(set(jsonfiles) - set(files))
  if len(unprocessed_files) == 0:
    return ("", len(unprocessed_files))
  filename = random.choice(unprocessed_files)
  return (filename, len(unprocessed_files))
dataset/ETHPy150Open ericwhyne/docent-learner/src/tweets.py/random_file/swapped operands of `-`