<commit_before># encoding: utf-8

require 'concord'

# Includes Enumerable and provides #each.
# Optionally includes Concord to provide
# #initialize and Equalizer for equality
# methods
class Lupo < Module
  private_class_method :new

  # Build a module providing #each, Enumerable and Concord
  #
  # @example
  #
  #   class Collection
  #     include Lupo.enumerable(:entries)
  #
  #     def initialize(entries)
  #       @entries = entries
  #     end
  #   end
  #
  #   collection = Collection.new([1,2,3])
  #
  #   collection.each { |i| puts(i) } # => collection
  #   collection.each.to_a            # => [1,2,3]
  #   collection.is_a?(Enumerable)    # => true
  #
  # @param [#to_s] name
  #   the name of the enumerable
  #
  # @return [undefined]
  #
  # @api public
  def self.enumerable(name)
    new(name, [Enumerable])
  end

  # Build a module providing #each and Enumerable
  #
  # @example
  #<commit_msg>Swap method descriptions<commit_after># encoding: utf-8

require 'concord'

# Includes Enumerable and provides #each.
# Optionally includes Concord to provide
# #initialize and Equalizer for equality
# methods
class Lupo < Module
  private_class_method :new

  # Build a module providing #each and Enumerable
  #
  # @example
  #
  #   class Collection
  #     include Lupo.enumerable(:entries)
  #
  #     def initialize(entries)
  #       @entries = entries
  #     end
  #   end
  #
  #   collection = Collection.new([1,2,3])
  #
  #   collection.each { |i| puts(i) } # => collection
  #   collection.each.to_a            # => [1,2,3]
  #   collection.is_a?(Enumerable)    # => true
  #
  # @param [#to_s] name
  #   the name of the enumerable
  #
  # @return [undefined]
  #
  # @api public
  def self.enumerable(name)
    new(name, [Enumerable])
  end

  # Build a module providing #each, Enumerable and Concord
  #
  # @example
  #
{'fraction_non_alphanumeric': 0.11594202898550725, 'fraction_numerical': 0.007514761137949544, 'mean_word_length': 2.750503018108652, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6361694', 'n_tokens_mistral': 648, 'n_tokens_neox': 623, 'n_words': 162}