<commit_before>#conn = Mongo::Connection.new.db("translator_test").collection("translations")
#Translator.current_store = Translator::MongoStore.new(conn)
#Translator.current_store = Translator::RedisStore.new(Redis.new)

#I18n.backend = Translator.setup_backend(I18n::Backend::Simple.new)

#Translator.auth_handler = proc {
#  authenticate_or_request_with_http_basic do |user_name, password|
#    user_name == 'some' && password == '<PASSWORD>'
#  end
#}<commit_msg>use mongodb for development<commit_after>if Rails.env.development?
  conn = Mongo::Connection.new.db("translator_test").collection("translations")
  Translator.current_store = Translator::MongoStore.new(conn)
  Translator.current_store = Translator::RedisStore.new(Redis.new)

  I18n.backend = Translator.setup_backend(I18n::Backend::Simple.new)
end

#Translator.auth_handler = proc {
#  authenticate_or_request_with_http_basic do |user_name, password|
#    user_name == 'some' && password == '<PASSWORD>'
#  end
#}
{'fraction_non_alphanumeric': 0.1415478615071283, 'fraction_numerical': 0.008146639511201629, 'mean_word_length': 7.401709401709402, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5002326', 'n_tokens_mistral': 352, 'n_tokens_neox': 334, 'n_words': 44}