<commit_before># have QC share AR's DB connection. This is not thread-safe, but we're using
# unicorn so it doesn't matter. Also, heroku postgres limits connections so we
# could easily hit the limit.

require 'queue_classic'

module QC
  def self.default_conn_adapter=(conn)
    @conn_adapter = conn
  end
end

QC.default_conn_adapter = QC::ConnAdapter.new(
    ActiveRecord::Base.connection.raw_connection)<commit_msg>Temporarily comment out queue_classic connection sharing<commit_after># have QC share AR's DB connection. This is not thread-safe, but we're using
# unicorn so it doesn't matter. Also, heroku postgres limits connections so we
# could easily hit the limit.

require 'queue_classic'

module QC
  def self.default_conn_adapter=(conn)
    @conn_adapter = conn
  end
end

#QC.default_conn_adapter = QC::ConnAdapter.new(
#    ActiveRecord::Base.connection.raw_connection)
{'fraction_non_alphanumeric': 0.07909604519774012, 'fraction_numerical': 0.0, 'mean_word_length': 4.986486486486487, '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': '3381503', 'n_tokens_mistral': 279, 'n_tokens_neox': 261, 'n_words': 92}