<commit_before>module Docs
  class JqueryCore < Jquery
    self.name = 'jQuery'
    self.release = 'up to 2.2.4'
    self.base_url = 'https://api.jquery.com/'
    self.initial_paths = %w(/index/index)

    html_filters.insert_before 'jquery/clean_html', 'jquery_core/entries'

    options[:root_title] = 'jQuery'

    options[:fix_urls] = ->(url) do
      url.sub! 'http://api.jquery.com/', 'https://api.jquery.com/'
    end

    options[:skip_patterns] += [
      /h\/deferred\.reject/i,
      /Selectors\/odd/i,
      /index/i
    ]
  end
end
<commit_msg>Update jQuery documentation (up to 3.0.0)<commit_after>module Docs
  class JqueryCore < Jquery
    self.name = 'jQuery'
    self.release = 'up to 3.0.0'
    self.base_url = 'https://api.jquery.com/'
    self.initial_paths = %w(/index/index)

    html_filters.insert_before 'jquery/clean_html', 'jquery_core/entries'

    options[:root_title] = 'jQuery'

    options[:fix_urls] = ->(url) do
      url.sub! 'http://api.jquery.com/', 'https://api.jquery.com/'
    end

    options[:skip_patterns] += [
      /h\/deferred\.reject/i,
      /Selectors\/odd/i,
      /index/i
    ]
  end
end

{'fraction_non_alphanumeric': 0.16637478108581435, 'fraction_numerical': 0.00788091068301226, 'mean_word_length': 2.5943396226415096, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '4110377', 'n_tokens_mistral': 427, 'n_tokens_neox': 414, 'n_words': 71}