<commit_before>class SurveyorGenerator < Rails::Generator::Base
  def manifest
    record do |m|
      
      # Gem plugin rake tasks
      m.file "tasks/surveyor.rb", "lib/tasks/surveyor.rb"    
      File.open(File.join(m.send(:root), 'Rakefile'), 'ab') { |file| file.write("require 'tasks/surveyor'") }
      
      # HAML
      m.file "initializers/surveyor.rb", "config/initializers/surveyor.rb"
      m.file "initializers/haml.rb", "config/initializers/haml.rb"
      
      # Migrate 
      # not using m.migration_template because all migration timestamps end up the same, causing a collision when running rake db:migrate
      # coped functionality from RAILS_GEM_PATH/lib/rails_generator/commands.rb
      m.directory "db/migrate"<commit_msg>working on appending to Rakefile<commit_after>class SurveyorGenerator < Rails::Generator::Base
  def manifest
    record do |m|
      
      # Gem plugin rake tasks
      m.file "tasks/surveyor.rb", "lib/tasks/surveyor.rb"    
      File.open(destination_path('Rakefile'), 'ab') { |file| file.write("require 'tasks/surveyor'") }
      
      # HAML
      m.file "initializers/surveyor.rb", "config/initializers/surveyor.rb"
      m.file "initializers/haml.rb", "config/initializers/haml.rb"
      
      # Migrate 
      # not using m.migration_template because all migration timestamps end up the same, causing a collision when running rake db:migrate
      # coped functionality from RAILS_GEM_PATH/lib/rails_generator/commands.rb
      m.directory "db/migrate"
{'fraction_non_alphanumeric': 0.11089108910891089, 'fraction_numerical': 0.0, 'mean_word_length': 3.1420765027322406, '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': '1446702', 'n_tokens_mistral': 495, 'n_tokens_neox': 488, 'n_words': 108}