<commit_before>var lastWeek = new Date(Date.now() - 1000 * 60 * 60 * 24 * 7);

db.report.find().forEach(r => {

  var room = 'others';
  // if (!r.processedBy && r.createdAt < lastWeek) room = 'xfiles';
  if (r.reason === 'cheat') room = 'cheat';
  else if (r.reason === 'cheatprint') room = 'print';
  else if (r.reason === 'troll') room = 'coms';
  else if (r.reason === 'insult') room = 'coms';<commit_msg>tweak report migration script<commit_after>var lastWeek = new Date(Date.now() - 1000 * 60 * 60 * 24 * 7);

db.report.find().forEach(r => {

  var room = 'others';
  if (!r.processedBy && r.createdAt < lastWeek) room = 'xfiles';
  if (r.reason === 'cheat') room = 'cheat';
  else if (r.reason === 'cheatprint') room = 'print';
  else if (r.reason === 'troll') room = 'coms';
  else if (r.reason === 'insult') room = 'coms';
{'fraction_non_alphanumeric': 0.21419975932611313, 'fraction_numerical': 0.026474127557160047, 'mean_word_length': 3.64804469273743, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3484750', 'n_tokens_mistral': 330, 'n_tokens_neox': 297, 'n_words': 86}