<commit_before>module FixtureSetup
  def setup
    fixtures_dir = File.dirname(__FILE__) + '/fixtures'
    connections = YAML.load_file("#{fixtures_dir}/database.yml")
    ActiveRecord::Base.establish_connection(connections['sqlite3'])<commit_msg>connect to db before loading models<commit_after>module FixtureSetup
  fixtures_dir = File.dirname(__FILE__) + '/fixtures'
  connections = YAML.load_file("#{fixtures_dir}/database.yml")
  ActiveRecord::Base.establish_connection(connections['sqlite3'])
  
  def setup
    fixtures_dir = File.dirname(__FILE__) + '/fixtures'
{'fraction_non_alphanumeric': 0.12302284710017575, 'fraction_numerical': 0.0035149384885764497, 'mean_word_length': 6.3076923076923075, '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': '6113600', 'n_tokens_mistral': 178, 'n_tokens_neox': 169, 'n_words': 27}