<commit_before>#lib/generators/survey/survey_generator.rb
require 'rails/generators'
require 'rails/generators/migration'

module Survey
  class InstallGenerator < Rails::Generators::NamedBase
    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 copy_migrations
#      migration_template "migrations/create_survey_question_categories.rb", "db/migrate/create_survey_question_categories.rb"
#      migration_template "migrations/create_survey_questions.rb", "db/migrate/create_survey_questions.rb"
#      migration_template "migrations/create_survey_question_sets.rb", "db/migrate/create_survey_question_sets.rb"
#      migration_template "migrations/create_survey_question_set_items.rb", "db/migrate/create_survey_question_set_items.rb"
#      migration_template "migrations/create_survey_validations.rb", "db/migrate/create_survey_validations.rb"
#      migration_template "migrations/create_survey_question_validations.rb", "db/migrate/create_survey_question_validations.rb"
#      migration_template "migrations/create_survey_question_selections.rb", "db/migrate/create_survey_question_selections.rb"
#      migration_template "migrations/create_survey_question_set_item_conditions.rb", "db/migrate/create_survey_question_set_item_conditions.rb"
#      migration_template "migrations/create_survey_question_set_item_condition_validations.rb", "db/migrate/create_survey_question_set_item_condition_validations.rb"
#      migration_template "migrations/create_survey_question_set_item_condition_selections.rb", "db/migrate/create_survey_question_set_item_condition_selections.rb"
#      migration_template "migrations/create_survey_evaluations.rb", "db/migrate/create_survey_evaluations.rb"
#      migration_template "migrations/create_survey_evaluation_items.rb", "db/migrate/create_survey_evaluation_items.rb"
    end<commit_msg>uncomment copy migration logic<commit_after>#lib/generators/survey/survey_generator.rb
require 'rails/generators'
require 'rails/generators/migration'

module Survey
  class InstallGenerator < Rails::Generators::NamedBase
    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 copy_migrations
      migration_template "migrations/create_survey_question_categories.rb", "db/migrate/create_survey_question_categories.rb"
      migration_template "migrations/create_survey_questions.rb", "db/migrate/create_survey_questions.rb"
      migration_template "migrations/create_survey_question_sets.rb", "db/migrate/create_survey_question_sets.rb"
      migration_template "migrations/create_survey_question_set_items.rb", "db/migrate/create_survey_question_set_items.rb"
      migration_template "migrations/create_survey_validations.rb", "db/migrate/create_survey_validations.rb"
      migration_template "migrations/create_survey_question_validations.rb", "db/migrate/create_survey_question_validations.rb"
      migration_template "migrations/create_survey_question_selections.rb", "db/migrate/create_survey_question_selections.rb"
      migration_template "migrations/create_survey_question_set_item_conditions.rb", "db/migrate/create_survey_question_set_item_conditions.rb"
      migration_template "migrations/create_survey_question_set_item_condition_validations.rb", "db/migrate/create_survey_question_set_item_condition_validations.rb"
      migration_template "migrations/create_survey_question_set_item_condition_selections.rb", "db/migrate/create_survey_question_set_item_condition_selections.rb"
      migration_template "migrations/create_survey_evaluations.rb", "db/migrate/create_survey_evaluations.rb"
      migration_template "migrations/create_survey_evaluation_items.rb", "db/migrate/create_survey_evaluation_items.rb"
    end
{'fraction_non_alphanumeric': 0.08648648648648649, 'fraction_numerical': 0.0004700352526439483, 'mean_word_length': 6.3633217993079585, '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': '965531', 'n_tokens_mistral': 1377, 'n_tokens_neox': 1430, 'n_words': 134}