<commit_before>require 'rails/generators'

module MTGExtractor
  class MTGExtractorGenerator < ::Rails::Generators::Base
    namespace 'mtgextractor'

    include Rails::Generators::Migration
    source_root File.expand_path('../templates', __FILE__)

    def self.next_migration_number(path)
      unless @prev_migration_nr
        @prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
      else
        @prev_migration_nr += 1
      end
      @prev_migration_nr.to_s
    end

    def create_migration_files
      migration_template "create_cards.rb", "db/migrate/create_cards.rb"
    end

    def copy_card_classes
      copy_file "card.rb", "app/models/card.rb"
    end

    def install
      create_migration_files
      copy_card_classes
    end
  end
end

<commit_msg>Remove duplicate call<commit_after>require 'rails/generators'

module MTGExtractor
  class MTGExtractorGenerator < ::Rails::Generators::Base
    namespace 'mtgextractor'

    include Rails::Generators::Migration
    source_root File.expand_path('../templates', __FILE__)

    def self.next_migration_number(path)
      unless @prev_migration_nr
        @prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
      else
        @prev_migration_nr += 1
      end
      @prev_migration_nr.to_s
    end

    def create_migration_files
      migration_template "create_cards.rb", "db/migrate/create_cards.rb"
    end

    def copy_card_classes
      copy_file "card.rb", "app/models/card.rb"
    end

  end
end


{'fraction_non_alphanumeric': 0.09460359760159893, 'fraction_numerical': 0.0013324450366422385, 'mean_word_length': 3.2914285714285714, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2480096', 'n_tokens_mistral': 521, 'n_tokens_neox': 507, 'n_words': 87}