<commit_before>RAILS_ROOT = File.dirname(__FILE__)

require 'test/unit'
require 'rubygems'
require_gem 'activesupport'
require_gem 'activerecord'
require_gem 'actionpack'
require 'stringio'
require 'breakpoint'
require_gem 'mocha'
#require 'test_help'
require File.expand_path(File.join(RAILS_ROOT, '..', 'lib', 'upload_column'))
require File.expand_path(File.join(RAILS_ROOT, '..', 'lib', 'upload_column_helper'))
require File.expand_path(File.join(RAILS_ROOT, '..', 'lib', 'upload_column_render_helper'))

#:nodoc:

# Bootstrap the database
require 'logger'
ActiveRecord::Base.logger = Logger.new("debug.log")

config = YAML::load(File.open("#{RAILS_ROOT}/../../../../config/database.yml"))
ActiveRecord::Base.establish_connection( config["test"] )

$: << "../lib"

ActiveRecord::Base.send(:include, UploadColumn)


#Mock Class for Uploads

class TestUploadedFile
  # The filename, *not* including the path, of the "uploaded" file
  attr_accessor :original_filename
  
  # The content type of the "uploaded" file
  attr_accessor :content_type
  <commit_msg>cleaned up svn for tests<commit_after>RAILS_ROOT = File.dirname(__FILE__)

require 'test/unit'
require 'rubygems'
require_gem 'activesupport'
require_gem 'activerecord'
require_gem 'actionpack'
require 'stringio'
require 'breakpoint'
require_gem 'mocha'
#require 'test_help'
require File.expand_path(File.join(RAILS_ROOT, '..', 'lib', 'upload_column'))
require File.expand_path(File.join(RAILS_ROOT, '..', 'lib', 'upload_column_helper'))
require File.expand_path(File.join(RAILS_ROOT, '..', 'lib', 'upload_column_render_helper'))

#:nodoc:

# Bootstrap the database
require 'logger'
ActiveRecord::Base.logger = Logger.new(File.join(RAILS_ROOT, "debug.log"))

config = YAML::load(File.open("#{RAILS_ROOT}/../../../../config/database.yml"))
ActiveRecord::Base.establish_connection( config["test"] )

$: << "../lib"

ActiveRecord::Base.send(:include, UploadColumn)


#Mock Class for Uploads

class TestUploadedFile
  # The filename, *not* including the path, of the "uploaded" file
  attr_accessor :original_filename
  
  # The content type of the "uploaded" file
  attr_accessor :content_type
  
{'fraction_non_alphanumeric': 0.15055762081784388, 'fraction_numerical': 0.0, 'mean_word_length': 6.20066889632107, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3910734', 'n_tokens_mistral': 740, 'n_tokens_neox': 723, 'n_words': 153}