<commit_before>require "identitee/identifiables"
require "identitee/loader"

module Identitee
  module Identify
    def identify id, *extra_parameters, &block
      instance = new *extra_parameters
      instance.instance_eval &block if block_given?

      identifiables.register id, instance
      instance
    end

    def find_identifiable candidate_id
      identifiables.find candidate_id.to_s do
        ::Identitee::Loader.new(identify_root_directory: identify_root_directory).lazy_load(candidate_id.to_s)
        identifiables.find candidate_id, "Unknown"
      end
    end

    def alas_find_identifiable
      alias_method :find_identifiable, :find
    end

    def all_identifiables
      load_all_identifiables
      identifiables.all
    end

    def load_all_identifiables
      ::Identitee::Loader.new(identify_root_directory: identify_root_directory).load_all
    end

    def set_identify_root path_to_template_root
      @identify_root_directory = path_to_template_root
    end

    def identify_root_directory
      @identify_root_directory
    end

    def identifiables
      @identifiables ||= Identifiables.new
    end
  end
end<commit_msg>removed method no longer being used<commit_after>require "identitee/identifiables"
require "identitee/loader"

module Identitee
  module Identify
    def identify id, *extra_parameters, &block
      instance = new *extra_parameters
      instance.instance_eval &block if block_given?

      identifiables.register id, instance
      instance
    end

    def find_identifiable candidate_id
      identifiables.find candidate_id.to_s do
        ::Identitee::Loader.new(identify_root_directory: identify_root_directory).lazy_load(candidate_id.to_s)
        identifiables.find candidate_id, "Unknown"
      end
    end

    def all_identifiables
      load_all_identifiables
      identifiables.all
    end

    def load_all_identifiables
      ::Identitee::Loader.new(identify_root_directory: identify_root_directory).load_all
    end

    def set_identify_root path_to_template_root
      @identify_root_directory = path_to_template_root
    end

    def identify_root_directory
      @identify_root_directory
    end

    def identifiables
      @identifiables ||= Identifiables.new
    end
  end
end
{'fraction_non_alphanumeric': 0.05081749889527176, 'fraction_numerical': 0.0, 'mean_word_length': 3.5189620758483033, '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': '4521225', 'n_tokens_mistral': 695, 'n_tokens_neox': 678, 'n_words': 140}