<commit_before>require 'active_record'

module Metermaid

  module DB
    class MetermaidSample < ActiveRecord::Base
      validates :sample_hash, uniqueness: true
    end
  end

  class ActiveRecordStore < Store

    def open!
      ActiveRecord::Base.table_name_prefix = 'metermaid_'
      ActiveRecord::Base.logger = Logger.new(STDERR)
      conn = ENV["DATABASE_URL"] || {
        adapter: "postgresql",
        encoding: "unicode",
        host: "localhost",
        database: "metermaid"
      }<commit_msg>things<commit_after>require 'active_record'

module Metermaid

  module DB
    class Sample < ActiveRecord::Base
      validates :sample_hash, uniqueness: true
    end
  end

  class ActiveRecordStore < Store

    def open!
      ActiveRecord::Base.table_name_prefix = 'metermaid_'
      ActiveRecord::Base.logger = Logger.new(STDERR)
      conn = ENV["DATABASE_URL"] || {
        adapter: "postgresql",
        encoding: "unicode",
        host: "localhost",
        database: "metermaid"
      }
{'fraction_non_alphanumeric': 0.09900990099009901, 'fraction_numerical': 0.0, 'mean_word_length': 2.933852140077821, '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': '7238724', 'n_tokens_mistral': 319, 'n_tokens_neox': 300, 'n_words': 68}