<commit_before>ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")

require 'simplecov'
SimpleCov.start 'rails'
  
require 'rails/test_help'
require "#{Rails.root}/lib/misc"
require "#{Rails.root}/test/blueprints"
require "capybara/rails"

include ActionMailer::TestHelper

class ActiveSupport::TestCase
  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures  = false
  fixtures :all

  setup { Sham.reset }

  # Returns a project with a few tasks.
  # Milestones will also be created if options[:make_milestones] is true
  # The project will belong to user's company and user will have full
  # access to the project.
  # The user will also be on the assigned list for the tasks.
  def project_with_some_tasks(user, options = {})
    task_count = options[:task_count] || 2
    customer = options[:customer] || user.company.internal_customer
    make_milestones = options[:make_milestones]

    project = Project.make(:company => user.company,<commit_msg>Simplecov must be the absolute first thing in the file.<commit_after>require 'simplecov'
SimpleCov.start 'rails'

ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
  
require 'rails/test_help'
require "#{Rails.root}/lib/misc"
require "#{Rails.root}/test/blueprints"
require "capybara/rails"

include ActionMailer::TestHelper

class ActiveSupport::TestCase
  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures  = false
  fixtures :all

  setup { Sham.reset }

  # Returns a project with a few tasks.
  # Milestones will also be created if options[:make_milestones] is true
  # The project will belong to user's company and user will have full
  # access to the project.
  # The user will also be on the assigned list for the tasks.
  def project_with_some_tasks(user, options = {})
    task_count = options[:task_count] || 2
    customer = options[:customer] || user.company.internal_customer
    make_milestones = options[:make_milestones]

    project = Project.make(:company => user.company,
{'fraction_non_alphanumeric': 0.10287081339712918, 'fraction_numerical': 0.0009569377990430622, 'mean_word_length': 4.697547683923705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3995420', 'n_tokens_mistral': 651, 'n_tokens_neox': 622, 'n_words': 182}