<commit_before>module SeedExpress
  class ModelClass
    class << self
      extend Memoist
      def from_table(table)
        table_to_classes[table]
      end
      memoize :from_table

      private

      def table_to_classes
        # Enables full of models
        Find.find("#{Rails.root}/app/models") { |f| require_dependency f if /\.rb$/ === f }

        get_real_classes = lambda do |models|<commit_msg>Ignores loading hidden .rb file<commit_after>module SeedExpress
  class ModelClass
    class << self
      extend Memoist
      def from_table(table)
        table_to_classes[table]
      end
      memoize :from_table

      private

      def table_to_classes
        # Enables full of models
        Find.find("#{Rails.root}/app/models") do |f|
          next unless /\.rb$/ === f
          next if %r!/\.! === f

          require_dependency f
        end

        get_real_classes = lambda do |models|
{'fraction_non_alphanumeric': 0.08922742110990206, 'fraction_numerical': 0.0, 'mean_word_length': 2.087248322147651, 'pattern_counts': {'":': 0, '<': 7, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '498032', 'n_tokens_mistral': 285, 'n_tokens_neox': 268, 'n_words': 74}