<commit_before>
configs = []

configs.push
  name: "Reddit Comments"
  comment:
    """
    We select comments, but not responses.  This avoids the need to "j" through endless lists of drivel.
    """
  regexps: "^https?://[a-z]+\\.reddit\\.com/.*/comments/"
  selectors: [
    "div#siteTable div.usertext-body"
    "div.commentarea > div.sitetable > div.comment"
  ]
  activators: "a[href^='http']:not(.author):not(.bylink)"

configs.push
  name: "Reddit"
  regexps: "^https?://[a-z]+\\.reddit\\.com/?"
  selectors: [
    # "div.entry > p.title > a"
    "//div[@id='siteTable']/div"
  ]
  activators: "div.entry > p.title > a"


require("../../common.js").Common.mkConfigs configs, name: "Reddit"
<commit_msg>Disable Reddit (using RES instead).<commit_after>
configs = []

# configs.push
#   name: "Reddit Comments"
#   comment:
#     """
#     We select comments, but not responses.  This avoids the need to "j" through endless lists of drivel.
#     """
#   regexps: "^https?://[a-z]+\\.reddit\\.com/.*/comments/"
#   selectors: [
#     "div#siteTable div.usertext-body"
#     "div.commentarea > div.sitetable > div.comment"
#   ]
#   activators: "a[href^='http']:not(.author):not(.bylink)"
# 
# configs.push
#   name: "Reddit"
#   regexps: "^https?://[a-z]+\\.reddit\\.com/?"
#   selectors: [
#     # "div.entry > p.title > a"
#     "//div[@id='siteTable']/div"
#   ]
#   activators: "div.entry > p.title > a"


# require("../../common.js").Common.mkConfigs configs, name: "Reddit"

{'fraction_non_alphanumeric': 0.2133243606998654, 'fraction_numerical': 0.0, 'mean_word_length': 2.997311827956989, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '3929661', 'n_tokens_mistral': 572, 'n_tokens_neox': 565, 'n_words': 108}