<commit_before>require 'fakeweb'

FakeWeb.allow_net_connect = false

def fake_page_without_match(url)
  file = File.join(GEM_ROOT, "spec", "support", "fakeweb", "fake_page_without_match.html")
  fake_html_page url, File.read(file)
end

def fake_page_with_match(url)
  file = File.join(GEM_ROOT, "spec", "support", "fakeweb", "fake_page_with_match.html")
  fake_html_page url, File.read(file)
end<commit_msg>Do not cross 80 characters per line<commit_after>require 'fakeweb'

FakeWeb.allow_net_connect = false

def fake_page_without_match(url)
  path = [GEM_ROOT, "spec", "support", "fakeweb", "fake_page_without_match.html"]
  fake_html_page(url, File.read(File.join(path)))
end

def fake_page_with_match(url)
  path = [GEM_ROOT, "spec", "support", "fakeweb", "fake_page_with_match.html"]
  fake_html_page(url, File.read(File.join(path)))
end
{'fraction_non_alphanumeric': 0.13539192399049882, 'fraction_numerical': 0.0023752969121140144, 'mean_word_length': 7.346534653465347, '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': '4367388', 'n_tokens_mistral': 319, 'n_tokens_neox': 316, 'n_words': 59}