<commit_before>require 'mongo_mapper'
if ENV['MONGOHQ_URL']
  MongoMapper.config = {Rails.env => {'uri' => ENV['MONGOHQ_URL']}}
else
  MongoMapper.config = {Rails.env => {'uri' => 'mongodb://localhost/porthos'}}
end
MongoMapper.connect(Rails.env)
MongoMapper.database = "porthos-#{Rails.env}"


Asset.ensure_index :created_at
Asset.ensure_index :updated_at

Page.ensure_index :page_template_id
Page.ensure_index :updated_by_id
Page.ensure_index :created_at
Page.ensure_index :updated_at<commit_msg>Tmp disable of index setting<commit_after>require 'mongo_mapper'
if ENV['MONGOHQ_URL']
  MongoMapper.config = {Rails.env => {'uri' => ENV['MONGOHQ_URL']}}
else
  MongoMapper.config = {Rails.env => {'uri' => 'mongodb://localhost/porthos'}}
end
MongoMapper.connect(Rails.env)
MongoMapper.database = "porthos-#{Rails.env}"


#Asset.ensure_index :created_at
#Asset.ensure_index :updated_at

#Page.ensure_index :page_template_id
#Page.ensure_index :updated_by_id
#Page.ensure_index :created_at
#Page.ensure_index :updated_at
{'fraction_non_alphanumeric': 0.14355948869223206, 'fraction_numerical': 0.0, 'mean_word_length': 7.144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5367732', 'n_tokens_mistral': 392, 'n_tokens_neox': 385, 'n_words': 61}