<commit_before>module Patterns
  extend ActiveSupport::Concern

  SPECIAL_CHARACTERS    = ".-_".freeze
  ALLOWED_CHARACTERS    = "[A-Za-z0-9#{Regexp.escape(SPECIAL_CHARACTERS)}]+".freeze
  ROUTE_PATTERN         = /#{ALLOWED_CHARACTERS}/.freeze
  LAZY_ROUTE_PATTERN    = /#{ALLOWED_CHARACTERS}?/.freeze
  NAME_PATTERN          = /\A#{ALLOWED_CHARACTERS}\Z/.freeze
  URL_VALIDATION_REGEXP = %r{\Ahttps?:\/\/([^\s:@]+:[^\s:@]*@)?[A-Za-z\d\-]+(\.[A-Za-z\d\-]+)+\.?(:\d{1,5})?([\/?]\S*)?\z}.freeze
  GEM_NAME_BLACKLIST    = %w[
    abbrev
    base64
    benchmark
    cgi
    cgi-session
    complex
    continuation
    coverage
    delegate
    digest
    drb
    english
    enumerator
    erb
    expect
    fiber
    find
    getoptlong
    install
    io-nonblock
    io-wait
    jruby
    mkmf
    monitor
    mri
    mruby
    net-ftp
    net-http
    net-imap
    net-pop
    net-protocol
    net-smtp
    nkf
    observer
    open-uri
    open3
    optparse
    pathname
    pp
    prettyprint
    prime
    profile
    profiler
    pstore
    pty
    rational
    rbconfig
    resolv
    resolv-replace
    rinda
    ruby
    rubygems
    securerandom
    set
    shellwords
    singleton
    socket
    syslog
    tempfile
    thread
    time
    timeout
    tmpdir
    tracer
    tsort
    un<commit_msg>Expose the default gems for Ruby 2.7.<commit_after>module Patterns
  extend ActiveSupport::Concern

  SPECIAL_CHARACTERS    = ".-_".freeze
  ALLOWED_CHARACTERS    = "[A-Za-z0-9#{Regexp.escape(SPECIAL_CHARACTERS)}]+".freeze
  ROUTE_PATTERN         = /#{ALLOWED_CHARACTERS}/.freeze
  LAZY_ROUTE_PATTERN    = /#{ALLOWED_CHARACTERS}?/.freeze
  NAME_PATTERN          = /\A#{ALLOWED_CHARACTERS}\Z/.freeze
  URL_VALIDATION_REGEXP = %r{\Ahttps?:\/\/([^\s:@]+:[^\s:@]*@)?[A-Za-z\d\-]+(\.[A-Za-z\d\-]+)+\.?(:\d{1,5})?([\/?]\S*)?\z}.freeze
  GEM_NAME_BLACKLIST    = %w[
    abbrev
    base64
    cgi-session
    complex
    continuation
    coverage
    digest
    drb
    english
    enumerator
    erb
    expect
    fiber
    find
    install
    io-nonblock
    io-wait
    jruby
    mkmf
    monitor
    mri
    mruby
    net-ftp
    net-http
    net-imap
    net-protocol
    nkf
    observer
    open-uri
    optparse
    pathname
    pp
    prettyprint
    prime
    profile
    profiler
    pty
    rational
    rbconfig
    resolv
    resolv-replace
    rinda
    ruby
    rubygems
    securerandom
    set
    shellwords
    socket
    syslog
    tempfile
    thread
    time
    timeout
    tmpdir
    tracer
    tsort
    un
{'fraction_non_alphanumeric': 0.1095350669818755, 'fraction_numerical': 0.00591016548463357, 'mean_word_length': 1.8984018264840183, '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': '6151161', 'n_tokens_mistral': 1012, 'n_tokens_neox': 989, 'n_words': 164}