<commit_before>namespace :local_news_radar do
    
    desc 'Sets up parolkar\'s local_news_radar plugin '
    task :setup do
      
      raise 'local_news_radar plugin was only tested on unix & windows' if ! Rake.application.unix? &&  ! Rake.application.windows?
      
      #copy files
      files_to_be_copied = [
        {:source => "/vendor/plugins/local_news_radar/db/migrate/001_create_radars.rb", :target => "/db/migrate/#{migration_timestamp}_create_radars.rb" },
        {:source => "/vendor/plugins/local_news_radar/db/migrate/002_create_radar_places.rb", :target => "/db/migrate/#{migration_timestamp}_create_radar_places.rb" },
        {:source => "/vendor/plugins/local_news_radar/db/migrate/003_create_radar_place_mappings.rb", :target => "/db/migrate/#{migration_timestamp}_create_radar_place_mappings.rb" },
        {:source => "/vendor/plugins/local_news_radar/config/radar_task_scheduler.rb", :target => "/config/initializers/radar_task_scheduler.rb" }
        ]
      
        FileUtils.mkdir_p("#{root}/db/migrate") unless File.exists?("#{root}/db/migrate")
        files_to_be_copied.each {|ftbc|
          FileUtils.cp_r(root+ftbc[:source], root+ftbc[:target]) #:force => true)
          puts "Created : #{ftbc[:target]}"<commit_msg>minor edit<commit_after>namespace :local_news_radar do
    
    desc 'Sets up parolkar\'s local_news_radar plugin '
    task :setup do
      root = "#{Rails.root}"
      raise 'local_news_radar plugin was only tested on unix & windows' if ! Rake.application.unix? &&  ! Rake.application.windows?
      
      #copy files
      files_to_be_copied = [
        {:source => "/vendor/plugins/local_news_radar/db/migrate/001_create_radars.rb", :target => "/db/migrate/#{migration_timestamp}_create_radars.rb" },
        {:source => "/vendor/plugins/local_news_radar/db/migrate/002_create_radar_places.rb", :target => "/db/migrate/#{migration_timestamp}_create_radar_places.rb" },
        {:source => "/vendor/plugins/local_news_radar/db/migrate/003_create_radar_place_mappings.rb", :target => "/db/migrate/#{migration_timestamp}_create_radar_place_mappings.rb" },
        {:source => "/vendor/plugins/local_news_radar/config/radar_task_scheduler.rb", :target => "/config/initializers/radar_task_scheduler.rb" }
        ]
      
        FileUtils.mkdir_p("#{root}/db/migrate") unless File.exists?("#{root}/db/migrate")
        files_to_be_copied.each {|ftbc|
          FileUtils.cp_r(root+ftbc[:source], root+ftbc[:target]) #:force => true)
          puts "Created : #{ftbc[:target]}"
{'fraction_non_alphanumeric': 0.14792899408284024, 'fraction_numerical': 0.007100591715976331, 'mean_word_length': 3.812144212523719, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '1988334', 'n_tokens_mistral': 888, 'n_tokens_neox': 886, 'n_words': 112}