<commit_before>$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "bower2gem"

base_directory = Dir.pwd
dummy_directory = File.join(base_directory, "spec", "dummy")

RSpec.configure do |config|
  config.before(:all) do
    Dir.chdir(dummy_directory)

    # Eventually these should be removed, since we'll do it on the fly, in code
    FileUtils.mkdir_p("bower_components")
    FileUtils.mkdir_p("vendor/assets/javascripts")
    FileUtils.mkdir_p("vendor/assets/stylesheets")
  end
end
<commit_msg>Clean up in the spec_helper, to ensure it happens<commit_after>$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "bower2gem"

base_directory = Dir.pwd
dummy_directory = File.join(base_directory, "spec", "dummy")

RSpec.configure do |config|
  config.before(:all) do
    Dir.chdir(dummy_directory)

    # Eventually these should be removed, since we'll do it on the fly, in code
    FileUtils.mkdir_p("bower_components")
    FileUtils.mkdir_p("vendor/assets/javascripts")
    FileUtils.mkdir_p("vendor/assets/stylesheets")
  end

  config.after(:all) do
    # We clean up in the codebase, but if there's errors it doesn't get that far
    FileUtils.rm_rf(File.join(dummy_directory, "bower_components"))
  end
end

{'fraction_non_alphanumeric': 0.11755233494363929, 'fraction_numerical': 0.001610305958132045, 'mean_word_length': 4.701834862385321, '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': '3994946', 'n_tokens_mistral': 416, 'n_tokens_neox': 398, 'n_words': 100}