<commit_before>import re


class FindSpam:
  rules = [
   {'regex': "\\b(baba(ji)?|vashikaran|fashion|here is|porn)\\b", 'all': True,
    'sites': [], 'reason': "Bad keyword detected"},
   {'regex': "\\+\\d{10}|\\+?\\d{2}\\s?\\d{8}", 'all': True, 
    'sites': ["patents.stackexchange.com"], 'reason': "Phone number detected"},
   {'regex': "\\b(asshole|crap|fag|fuck|idiot|shit|whore)s?\\b", 'all': True,
    'sites': [], 'reason': "Offensive title detected"},
   {'regex': "^[A-Z0-9\.\?]*$", 'all': True, 'sites': [], 'reason': "All-caps title"}
  ]
<commit_msg>Fix #2 again<commit_after>import re


class FindSpam:
  rules = [
   {'regex': "\\b(baba(ji)?|vashikaran|fashion|here is|porn)\\b", 'all': True,
    'sites': [], 'reason': "Bad keyword detected"},
   {'regex': "\\+\\d{10}|\\+?\\d{2}\\s?\\d{8}", 'all': True, 
    'sites': ["patents.stackexchange.com"], 'reason': "Phone number detected"},
   {'regex': "\\b(asshole|crap|fag|fuck|idiot|shit|whore)s?\\b", 'all': True,
    'sites': [], 'reason': "Offensive title detected"},
   {'regex': "^[A-Z0-9\.\?\\s]*$", 'all': True, 'sites': [], 'reason': "All-caps title"}
  ]

{'fraction_non_alphanumeric': 0.2982300884955752, 'fraction_numerical': 0.011504424778761062, 'mean_word_length': 4.164383561643835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2296884', 'n_tokens_mistral': 472, 'n_tokens_neox': 447, 'n_words': 86}