<commit_before># Public: Adds #natural_sort instance method to Ruby Kernel enumerable objects.
#
# Examples
#
#   require 'natural_sort_kernel'
#   defined?(NaturalSort::Kernel)      #=> true
#   ['a', 'b', 'A', 'B'].natural_sort  #=> ['A', 'a', 'B', 'b']
module NaturalSort::Kernel; end

module Enumerable
  # Add #natural_sort method to Enumerable module.
  #
  # Examples
  #
  #   require 'natural_sort_kernel'
  #   ['a1', 'a12', 'a2'].natural_sort     #=> ['a1', 'a2', 'a12']
  #   ['a', 'b', 'A', 'B'].natural_sort    #=> ['A', 'a', 'B', 'b']
  include NaturalSort
end

class Array
  # Add #natural_sort method to Array class.
  #
  # Examples
  #
  #   require 'natural_sort_kernel'
  #   ['a1', 'a12', 'a2'].natural_sort     #=> ['a1', 'a2', 'a12']
  #   ['a', 'b', 'A', 'B'].natural_sort    #=> ['A', 'a', 'B', 'b']
  include NaturalSort
end

class Range
  # Add #natural_sort method to Range class, which aliases #to_a
  #
  # Examples
  #
  #   require 'natural_sort_kernel'
  #   (1..11).natural_sort    #=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  alias :natural_sort :to_a
end

if defined?(Set)
  class Set
    # Add #natural_sort method to Set class, if it has been initialized.
    #
    # Examples
    #
    #   require 'set'
    #   require 'natural_sort_kernel'
    #   Set.new(['a', 'b', 'c', 'd', 'A', 'B', 'C', 'D']).natural_sort  #=> ['A', 'a', 'B', 'b', 'C', 'c', 'D', 'd']
    include NaturalSort
  end
end

class Hash
  # Add NaturalSort methods.
  #
  # Examples
  #
  #   require 'natural_sort_kernel'
  #   { "a" => "value", "b" => "value", "A" => "value", "B" => "value" }.natural_sort  #=>
  #     [["A", "value"], ["a", "value"], ["B", "value"], ["b", "value"]]
  include NaturalSort
end<commit_msg>Small doc change<commit_after># Public: Adds #natural_sort instance method to Ruby Kernel enumerable objects.
#
# Examples
#
#   require 'natural_sort_kernel'
#   defined?(NaturalSort::Kernel)      #=> true
#   ['a', 'b', 'A', 'B'].natural_sort  #=> ['A', 'a', 'B', 'b']
module NaturalSort::Kernel; end

module Enumerable
  # Add #natural_sort method to Enumerable module.
  #
  # Examples
  #
  #   require 'natural_sort_kernel'
  #   ['a1', 'a12', 'a2'].natural_sort     #=> ['a1', 'a2', 'a12']
  #   ['a', 'b', 'A', 'B'].natural_sort    #=> ['A', 'a', 'B', 'b']
  include NaturalSort
end

class Array
  # Add #natural_sort method to Array class.
  #
  # Examples
  #
  #   require 'natural_sort_kernel'
  #   ['a1', 'a12', 'a2'].natural_sort     #=> ['a1', 'a2', 'a12']
  #   ['a', 'b', 'A', 'B'].natural_sort    #=> ['A', 'a', 'B', 'b']
  include NaturalSort
end

class Range
  # Add #natural_sort method to Range class, which aliases #to_a
  #
  # Examples
  #
  #   require 'natural_sort_kernel'
  #   (1..11).natural_sort    #=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
  alias :natural_sort :to_a
end

if defined?(Set)
  class Set
    # Add #natural_sort method to Set class, if it has been initialized.
    #
    # Examples
    #
    #   require 'set'
    #   require 'natural_sort_kernel'
    #   Set.new(['a', 'b', 'c', 'd', 'A', 'B', 'C', 'D']).natural_sort  #=> ['A', 'a', 'B', 'b', 'C', 'c', 'D', 'd']
    include NaturalSort
  end
end

class Hash
  # Add #natural_sort method to Hash class.
  #
  # Examples
  #
  #   require 'natural_sort_kernel'
  #   { "a" => "value", "b" => "value", "A" => "value", "B" => "value" }.natural_sort  #=>
  #     [["A", "value"], ["a", "value"], ["B", "value"], ["b", "value"]]
  include NaturalSort
end
{'fraction_non_alphanumeric': 0.2126006904487917, 'fraction_numerical': 0.018411967779056387, 'mean_word_length': 3.1690647482014387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '2457431', 'n_tokens_mistral': 1392, 'n_tokens_neox': 1353, 'n_words': 366}