<commit_before>append_to_file "Rakefile" do
  <<~RUBY

  Rake::Task[:default].prerequisites.clear
  task :default do
    sh "bin/rails test"
    sh "HEADLESS_CHROME=1 bin/rails test:system"
    system "bin/rubocop"
    system "bin/yarn lint"
  end
  RUBY
end<commit_msg>Default rake task should fail if lint fails<commit_after>append_to_file "Rakefile" do
  <<~RUBY

  Rake::Task[:default].prerequisites.clear
  task :default do
    sh "bin/rails test"
    sh "HEADLESS_CHROME=1 bin/rails test:system"

    raise unless
      system("bin/rubocop") &
      system("bin/yarn lint")
  end
  RUBY
end
{'fraction_non_alphanumeric': 0.10906040268456375, 'fraction_numerical': 0.003355704697986577, 'mean_word_length': 3.6640625, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4278186', 'n_tokens_mistral': 236, 'n_tokens_neox': 222, 'n_words': 52}