<commit_before>module Docs
  class Redis < UrlScraper
    self.type = 'redis'
    self.release = 'up to 3.2.1'
    self.base_url = 'http://redis.io/commands'
    self.links = {
      home: 'http://redis.io/',
      code: 'https://github.com/antirez/redis'
    }

    html_filters.push 'redis/entries', 'redis/clean_html', 'title'

    options[:container] = ->(filter) { filter.root_page? ? '#commands' : '.text' }
    options[:title] = false
    options[:root_title] = 'Redis'
    options[:follow_links] = ->(filter) { filter.root_page? }

    options[:attribution] = <<-HTML
      &copy; 2009&ndash;2016 <NAME><br>
      Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
    HTML
  end
end
<commit_msg>Update Redis documentation (up to 3.2.2)<commit_after>module Docs
  class Redis < UrlScraper
    self.type = 'redis'
    self.release = 'up to 3.2.2'
    self.base_url = 'http://redis.io/commands'
    self.links = {
      home: 'http://redis.io/',
      code: 'https://github.com/antirez/redis'
    }

    html_filters.push 'redis/entries', 'redis/clean_html', 'title'

    options[:container] = ->(filter) { filter.root_page? ? '#commands' : '.text' }
    options[:title] = false
    options[:root_title] = 'Redis'
    options[:follow_links] = ->(filter) { filter.root_page? }

    options[:attribution] = <<-HTML
      &copy; 2009&ndash;2016 <NAME><br>
      Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
    HTML
  end
end

{'fraction_non_alphanumeric': 0.15978334461746785, 'fraction_numerical': 0.01963439404197698, 'mean_word_length': 3.0604395604395602, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '5293979', 'n_tokens_mistral': 548, 'n_tokens_neox': 517, 'n_words': 105}