<commit_before>require_relative "./../lib/symfony"
require_relative "./../lib/utils"

PROJECT_ROOT = File.realpath("#{__dir__}/../../")
FIXTURE_PATH = File.realpath("#{PROJECT_ROOT}/features/fixtures/#{Symfony.fixture}")

Maze.hooks.after_configuration do
  # log to console, not the file
  Maze.config.file_log = false
  Maze.config.log_requests = true

  # don't wait so long for requests/not to receive requests
  Maze.config.receive_requests_wait = 10
  Maze.config.receive_no_requests_wait = 10

  # bugsnag-symfony doesn't send the integrity header (because it's not needed)
  Maze.config.enforce_bugsnag_integrity = false

  if ENV["DEBUG"]
    puts "Installing bugsnag-symfony from '#{PROJECT_ROOT}' to '#{FIXTURE_PATH}'"
  end

  Utils.install_bugsnag(PROJECT_ROOT, FIXTURE_PATH)
end

Maze.hooks.before do
  ENV["BUGSNAG_API_KEY"] = $api_key
  ENV["BUGSNAG_ENDPOINT"] = "http://#{Utils.current_ip}:9339/notify"
  Symfony.reset!
end<commit_msg>Allow skipping tests based on Symfony version<commit_after>require_relative "./../lib/symfony"
require_relative "./../lib/utils"

PROJECT_ROOT = File.realpath("#{__dir__}/../../")
FIXTURE_PATH = File.realpath("#{PROJECT_ROOT}/features/fixtures/#{Symfony.fixture}")

Maze.hooks.after_configuration do
  # log to console, not the file
  Maze.config.file_log = false
  Maze.config.log_requests = true

  # don't wait so long for requests/not to receive requests
  Maze.config.receive_requests_wait = 10
  Maze.config.receive_no_requests_wait = 10

  # bugsnag-symfony doesn't send the integrity header (because it's not needed)
  Maze.config.enforce_bugsnag_integrity = false

  if ENV["DEBUG"]
    puts "Installing bugsnag-symfony from '#{PROJECT_ROOT}' to '#{FIXTURE_PATH}'"
  end

  Utils.install_bugsnag(PROJECT_ROOT, FIXTURE_PATH)
end

Maze.hooks.before do
  ENV["BUGSNAG_API_KEY"] = $api_key
  ENV["BUGSNAG_ENDPOINT"] = "http://#{Utils.current_ip}:9339/notify"
  Symfony.reset!
end

(2..5).each do |tag_version|
  Before("@not_symfony_#{tag_version}") do
    skip_this_scenario if Symfony.version == tag_version
  end
end
{'fraction_non_alphanumeric': 0.13005780346820808, 'fraction_numerical': 0.008670520231213872, 'mean_word_length': 4.769444444444445, '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': '4404288', 'n_tokens_mistral': 763, 'n_tokens_neox': 741, 'n_words': 148}