<commit_before># Use simplecov gem to track what code gets executed when tests
# are run and what doesn't: Run your tests, open up coverage/index.html
# in your browser and check out what you've missed so far.
require 'simplecov'
SimpleCov.start 'rails'

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'minitest/autorun'
require 'clearance/test_unit'

class ActiveSupport::TestCase
  # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
  fixtures :all

  def make_user(user_params = {})
    defaults = {
      email: "<EMAIL>",
      password: "<PASSWORD>"
    }
    user_params = defaults.merge(user_params)
    User.create!(user_params)
  end

  def make_event(event_params = {})
    defaults = {
      name: 'Event',
      start_date: 1.week.from_now,
      end_date: 2.weeks.from_now,
      description: 'Sed ut perspiciatis unde omnis.',
      organizer_name: '<NAME>',
      organizer_email: '<EMAIL>',
      organizer_email_confirmation: '<EMAIL>',
      website: 'http://google.com',<commit_msg>configure sidekiq in test environment<commit_after># Use simplecov gem to track what code gets executed when tests
# are run and what doesn't: Run your tests, open up coverage/index.html
# in your browser and check out what you've missed so far.
require 'simplecov'
SimpleCov.start 'rails'

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'minitest/autorun'
require 'clearance/test_unit'

require 'sidekiq/testing'
Sidekiq::Testing.inline!

class ActiveSupport::TestCase
  # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
  fixtures :all

  def make_user(user_params = {})
    defaults = {
      email: "<EMAIL>",
      password: "<PASSWORD>"
    }
    user_params = defaults.merge(user_params)
    User.create!(user_params)
  end

  def make_event(event_params = {})
    defaults = {
      name: 'Event',
      start_date: 1.week.from_now,
      end_date: 2.weeks.from_now,
      description: 'Sed ut perspiciatis unde omnis.',
      organizer_name: '<NAME>',
      organizer_email: '<EMAIL>',
      organizer_email_confirmation: '<EMAIL>',
      website: 'http://google.com',
{'fraction_non_alphanumeric': 0.12064459930313588, 'fraction_numerical': 0.0017421602787456446, 'mean_word_length': 3.7954070981210855, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '767174', 'n_tokens_mistral': 738, 'n_tokens_neox': 723, 'n_words': 202}