<commit_before>ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'

# module to help with sign-ins
module SignInHelper
  # creates a new user for testing purposes
  def create_test_user_if_not_exists
    if not user = User.find_by_username('test_user')
      user = User.new({:username => "test_user", :name => "tester",:email => "<EMAIL>", :password => "<PASSWORD>", :password_confirmation => "<PASSWORD>", :terms_of_service => true}) unless user = User.find_by_username('test_user')
      user.save(:validate => false) 
    end
    
    return user
  end
end

class ActiveSupport::TestCase
  include SignInHelper
  # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
  fixtures :all
  
  # Add more helper methods to be used by all tests here...
end<commit_msg>Changed the name of the test user and made the password longer.<commit_after>ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'

# module to help with sign-ins
module SignInHelper
  # creates a new user for testing purposes
  def create_test_user_if_not_exists
    if not user = User.find_by_username('datagraft_test_user')
      user = User.new({:username => "datagraft_test_user", :name => "tester",:email => "<EMAIL>", :password => "<PASSWORD>", :password_confirmation => "<PASSWORD>", :terms_of_service => true}) unless user = User.find_by_username('datagraft_test_user')
      user.save(:validate => false) 
    end
    
    return user
  end
end

class ActiveSupport::TestCase
  include SignInHelper
  # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
  fixtures :all
  
  # Add more helper methods to be used by all tests here...
end
{'fraction_non_alphanumeric': 0.11984392419175027, 'fraction_numerical': 0.0, 'mean_word_length': 4.326409495548962, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, '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': '6676636', 'n_tokens_mistral': 552, 'n_tokens_neox': 539, 'n_words': 166}