<commit_before>require 'elastic_record/index/configurator'
require 'elastic_record/index/deferred'
require 'elastic_record/index/documents'
require 'elastic_record/index/manage'
require 'elastic_record/index/mapping'
require 'elastic_record/index/percolator'
require 'elastic_record/index/settings'
require 'net/http'

module ElasticRecord
  class Index
    include Documents
    include Manage
    include Mapping
    include Percolator
    include Settings
    include Deferred

    attr_accessor :model
    attr_accessor :disabled

    def initialize(model)
      @model = model
      @disabled = false
    end

    def initialize_copy(other)
      @settings = settings.dup
      @mapping = mapping.dup
    end

    def alias_name
      @alias_name ||= model.base_class.model_name.collection
    end

    def type
      @type ||= model.base_class.model_name.element<commit_msg>lets deep_dup<commit_after>require 'elastic_record/index/configurator'
require 'elastic_record/index/deferred'
require 'elastic_record/index/documents'
require 'elastic_record/index/manage'
require 'elastic_record/index/mapping'
require 'elastic_record/index/percolator'
require 'elastic_record/index/settings'
require 'net/http'

module ElasticRecord
  class Index
    include Documents
    include Manage
    include Mapping
    include Percolator
    include Settings
    include Deferred

    attr_accessor :model
    attr_accessor :disabled

    def initialize(model)
      @model = model
      @disabled = false
    end

    def initialize_copy(other)
      @settings = settings.deep_dup
      @mapping = mapping.deep_dup
    end

    def alias_name
      @alias_name ||= model.base_class.model_name.collection
    end

    def type
      @type ||= model.base_class.model_name.element
{'fraction_non_alphanumeric': 0.07231638418079096, 'fraction_numerical': 0.0, 'mean_word_length': 3.6119791666666665, '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': '2199492', 'n_tokens_mistral': 538, 'n_tokens_neox': 507, 'n_words': 118}