<commit_before>require 'parallel'
require_relative "application_generator"

desc "Run the full suite using parallel_tests to run on multiple cores"
task parallel_tests: [:setup_parallel_tests, 'parallel:spec', 'parallel:cucumber']

desc "Creates a test rails app for the parallel specs to run against"
task :setup_parallel_tests do
  ActiveAdmin::ApplicationGenerator.new.generate
end

namespace :parallel do

  desc "Run the specs in parallel"
  task :spec do
    system("parallel_rspec --serialize-stdout --verbose spec/")
  end

  namespace :spec do

    %w(unit request).each do |type|
      desc "Run the #{type} specs in parallel"
      task type do
        system("parallel_rspec --serialize-stdout --verbose spec/#{type}")
      end
    end

  end

  desc "Run the cucumber scenarios in parallel"
  task cucumber: ["cucumber:regular", "cucumber:reloading"]

  namespace :cucumber do

    desc "Run the cucumber scenarios in parallel"
    task :regular do
      system("parallel_cucumber --serialize-stdout --verbose features/")
    end

  end

end
<commit_msg>Prefer symbols for simple task definitions<commit_after>require 'parallel'
require_relative "application_generator"

desc "Run the full suite using parallel_tests to run on multiple cores"
task parallel_tests: [:setup_parallel_tests, 'parallel:spec', 'parallel:cucumber']

desc "Creates a test rails app for the parallel specs to run against"
task :setup_parallel_tests do
  ActiveAdmin::ApplicationGenerator.new.generate
end

namespace :parallel do

  desc "Run the specs in parallel"
  task :spec do
    system("parallel_rspec --serialize-stdout --verbose spec/")
  end

  namespace :spec do

    %i(unit request).each do |type|
      desc "Run the #{type} specs in parallel"
      task type do
        system("parallel_rspec --serialize-stdout --verbose spec/#{type}")
      end
    end

  end

  desc "Run the cucumber scenarios in parallel"
  task cucumber: ["cucumber:regular", "cucumber:reloading"]

  namespace :cucumber do

    desc "Run the cucumber scenarios in parallel"
    task :regular do
      system("parallel_cucumber --serialize-stdout --verbose features/")
    end

  end

end

{'fraction_non_alphanumeric': 0.0859122401847575, 'fraction_numerical': 0.0, 'mean_word_length': 3.8565022421524664, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7026812', 'n_tokens_mistral': 637, 'n_tokens_neox': 606, 'n_words': 227}