<commit_before>module Docs
  class Ruby < Rdoc
    # Generated with:
    #   ./configure && make html
    # or:
    #   rdoc \
    #     --root . \
    #     --page-dir doc \
    #     --encoding=UTF-8 \
    #     --visibility=public \
    #     --format=darkfish \
    #     --no-line-numbers \
    #     --op html .

    self.links = {
      home: 'https://www.ruby-lang.org/',
      code: 'https://github.com/ruby/ruby'
    }

    html_filters.replace 'rdoc/entries', 'ruby/entries'

    options[:root_title] = 'Ruby Programming Language'
    options[:title] = ->(filter) { filter.slug == 'globals_rdoc' ? 'Globals' : false }

    options[:skip] += %w(
      contributing_rdoc.html
      contributors_rdoc.html
      dtrace_probes_rdoc.html
      maintainers_rdoc.html
      regexp_rdoc.html
      standard_library_rdoc.html
      syntax_rdoc.html
      extension_rdoc.html
      extension_ja_rdoc.html
      Data.html
      English.html
      Fcntl.html
      Kconv.html
      NKF.html
      OLEProperty.html
      OptParse.html
      UnicodeNormalize.html)

    options[:skip_patterns] += [
      /\Alib\//,
      /\ADEBUGGER__/,
      /\AException2MessageMapper/,
      /\AJSON\/Ext/,
      /\AGem/,
      /\AHTTP/i,
      /\AIRB/,
      /\AMakeMakefile/i,
      /\ANQXML/,
      /\AOptionParser\//,
      /\APrettyPrint/,
      /\APride/,
      /\AProfiler__/,
      /\APsych\//,
      /\ARacc/,
      /\ARake/,
      /\ARbConfig/,
      /\ARDoc/,
      /\AREXML/,
      /\ARSS/,
      /\AShell\//,
      /\ASocket\//,
      /\ATest/,
      /\AWEBrick/,
      /win32/i,
      /\AXML/,
      /\AXMP/]

    options[:attribution] = <<-HTML
      Ruby Core &copy; 1993&ndash;2016 Yuki<NAME><br>
      Licensed under the Ruby License.<br>
      Ruby Standard Library &copy; contributors<br>
      Licensed under their own licenses.
    HTML

    version '2.3' do
      self.release = '2.3.2'
      self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby23'
    end

    version '2.2' do
      self.release = '2.2.6'
      self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby22'
    end
  end
end<commit_msg>Update Ruby documentation (2.4.0, 2.3.3, 2.2.6)<commit_after>module Docs
  class Ruby < Rdoc
    # Generated with:
    #   ./configure && make html
    # or:
    #   rdoc \
    #     --root . \
    #     --page-dir doc \
    #     --encoding=UTF-8 \
    #     --visibility=public \
    #     --format=darkfish \
    #     --no-line-numbers \
    #     --op html .

    include FixInternalUrlsBehavior

    self.links = {
      home: 'https://www.ruby-lang.org/',
      code: 'https://github.com/ruby/ruby'
    }

    html_filters.replace 'rdoc/entries', 'ruby/entries'

    options[:root_title] = 'Ruby Programming Language'
    options[:title] = ->(filter) { filter.slug == 'globals_rdoc' ? 'Globals' : false }

    options[:skip] += %w(
      contributing_rdoc.html
      contributors_rdoc.html
      dtrace_probes_rdoc.html
      maintainers_rdoc.html
      regexp_rdoc.html
      standard_library_rdoc.html
      syntax_rdoc.html
      extension_rdoc.html
      extension_ja_rdoc.html
      Data.html
      English.html
      Fcntl.html
      Kconv.html
      NKF.html
      OLEProperty.html
      OptParse.html
      UnicodeNormalize.html)

    options[:skip_patterns] += [
      /\Alib\//,
      /\ADEBUGGER__/,
      /\AException2MessageMapper/,
      /\AJSON\/Ext/,
      /\AGem/,
      /\AHTTP/i,
      /\AIRB/,
      /\AMakeMakefile/i,
      /\ANQXML/,
      /\AOptionParser\//,
      /\APrettyPrint/,
      /\APride/,
      /\AProfiler__/,
      /\APsych\//,
      /\ARacc/,
      /\ARake/,
      /\ARbConfig/,
      /\ARDoc/,
      /\AREXML/,
      /\ARSS/,
      /\AShell\//,
      /\ASocket\//,
      /\ATest/,
      /\AWEBrick/,
      /win32/i,
      /\AXML/,
      /\AXMP/]

    options[:attribution] = <<-HTML
      Ruby Core &copy; 1993&ndash;2016 <NAME><br>
      Licensed under the Ruby License.<br>
      Ruby Standard Library &copy; contributors<br>
      Licensed under their own licenses.
    HTML

    version '2.4' do
      self.release = '2.4.0'
      self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby24'
    end

    version '2.3' do
      self.release = '2.3.3'
      self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby23'
    end

    version '2.2' do
      self.release = '2.2.6'
      self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Ruby22'
    end
  end
end
{'fraction_non_alphanumeric': 0.15210946408209805, 'fraction_numerical': 0.015507411630558724, 'mean_word_length': 1.609161213563355, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '4798682', 'n_tokens_mistral': 1688, 'n_tokens_neox': 1577, 'n_words': 268}