<commit_before># -*- encoding: utf-8 -*-

require 'date'
require 'backports'
require 'bigdecimal'
require 'bigdecimal/util'
require 'forwardable'
require 'adamantium'
require 'equalizer'
require 'abstract_type'
require 'ice_nine'
require 'ice_nine/core_ext/object'

# Library namespace
module Aequitas

  # Hook called when module is included
  #
  # @param [Class|Module] descendant
  #
  # @return [undefined]
  #
  # @api private
  #
  def self.included(descendant)
    super
    descendant.send(:include, InstanceMethods)
    descendant.extend(ClassMethods)
  end

  # Define constant singleton class
  #
  # @param [Class] klass
  # @param [Symbol] name
  #
  # @return [self]
  #
  # @api private
  #
  def self.singleton_constant(klass, name, &block)
    subclass = Class.new(klass) do
      # Return inspection string
      #
      # @return [String]
      #
      # @api private
      #
      def inspect
        "#{klass.name}::#{name}".freeze
      end
    end
    subclass.class_eval(&block)
    klass.const_set(name, subclass.new)
    self<commit_msg>Fix #inspect for generated by singleton constants helper<commit_after># -*- encoding: utf-8 -*-

require 'date'
require 'backports'
require 'bigdecimal'
require 'bigdecimal/util'
require 'forwardable'
require 'adamantium'
require 'equalizer'
require 'abstract_type'
require 'ice_nine'
require 'ice_nine/core_ext/object'

# Library namespace
module Aequitas

  # Hook called when module is included
  #
  # @param [Class|Module] descendant
  #
  # @return [undefined]
  #
  # @api private
  #
  def self.included(descendant)
    super
    descendant.send(:include, InstanceMethods)
    descendant.extend(ClassMethods)
  end

  # Define constant singleton class
  #
  # @param [Class] klass
  # @param [Symbol] name
  #
  # @return [self]
  #
  # @api private
  #
  def self.singleton_constant(klass, name, &block)
    subclass = Class.new(klass) do
      # Return inspection string
      #
      # @return [String]
      #
      # @api private
      #
      def inspect
        klass = self.class
        "#{klass.superclass.name}::#{klass.name}".freeze
      end
    end
    subclass.class_eval(&block)
    klass.const_set(name, subclass.new)
    self
{'fraction_non_alphanumeric': 0.11331828442437923, 'fraction_numerical': 0.0009029345372460496, 'mean_word_length': 3.088560885608856, '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': '4352973', 'n_tokens_mistral': 733, 'n_tokens_neox': 733, 'n_words': 176}