<commit_before>require 'spork'

Spork.prefork do
  # Loading more in this block will cause your tests to run faster. However,
  # if you change any configuration or code from libraries loaded here, you'll
  # need to restart spork for it take effect.

  # This file is copied to spec/ when you run 'rails generate rspec:install'
  ENV["RAILS_ENV"] ||= 'test'
  require File.expand_path("../../config/environment", __FILE__)
  require 'rspec/rails'

  # Requires supporting ruby files with custom matchers and macros, etc,
  # in spec/support/ and its subdirectories.
  Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}

  require 'prototypes/bacon'

  require 'capybara/rspec'
  require 'database_cleaner'

  RSpec.configure do |config|
    # Configure RSpec to run focused specs, and also respect the alias 'fit' for focused specs
    config.filter_run :focused => true
    config.run_all_when_everything_filtered = true
    config.alias_example_to :fit, :focused => true

    # Turn color on if we are NOT inside Textmate, Emacs, or VIM
    config.color_enabled = (%w[TM_MODE EMACS VIM] & ENV.keys).empty?

    # == Mock Framework
    config.mock_with :mocha

    # Run specs in random order to surface order dependencies. If you find an
    # order dependency and want to debug it, you can fix the order by providing
    # the seed, which is printed after each run.
    #     --seed 1234
    config.order = "random"

    config.extend VCR::RSpec::Macros
<commit_msg>Fix 'require' error when running tests via guard<commit_after>require 'spork'

Spork.prefork do
  # Loading more in this block will cause your tests to run faster. However,
  # if you change any configuration or code from libraries loaded here, you'll
  # need to restart spork for it take effect.

  # This file is copied to spec/ when you run 'rails generate rspec:install'
  ENV["RAILS_ENV"] ||= 'test'
  require File.expand_path("../../config/environment", __FILE__)
  require 'rspec/rails'

  # Requires supporting ruby files with custom matchers and macros, etc,
  # in spec/support/ and its subdirectories.
  Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}

  require_relative 'prototypes/bacon'

  require 'capybara/rspec'
  require 'database_cleaner'

  RSpec.configure do |config|
    # Configure RSpec to run focused specs, and also respect the alias 'fit' for focused specs
    config.filter_run :focused => true
    config.run_all_when_everything_filtered = true
    config.alias_example_to :fit, :focused => true

    # Turn color on if we are NOT inside Textmate, Emacs, or VIM
    config.color_enabled = (%w[TM_MODE EMACS VIM] & ENV.keys).empty?

    # == Mock Framework
    config.mock_with :mocha

    # Run specs in random order to surface order dependencies. If you find an
    # order dependency and want to debug it, you can fix the order by providing
    # the seed, which is printed after each run.
    #     --seed 1234
    config.order = "random"

    config.extend VCR::RSpec::Macros

{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.0026542800265428003, 'mean_word_length': 3.5406626506024095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '615522', 'n_tokens_mistral': 946, 'n_tokens_neox': 885, 'n_words': 347}