<commit_before>require 'dm-core'
require 'dm-types'
require 'dm-validations'
require 'dm-aggregates'

# Add translations to models
require 'r18n-core/translated'

# Optional custom DataMapper plugins
#require 'dm-is-tree'
#require 'dm-is-list'

# When we're developing, some DataMapper debug would be nice.
if development?
  DataMapper::Logger.new $stdout, :debug
  #DataMapper::Model.raise_on_save_failure = true
end

# Set up our database connection.
DataMapper.setup :default, $database_connection<commit_msg>Added constraints.<commit_after>require 'dm-core'
require 'dm-types'
require 'dm-validations'
require 'dm-aggregates'
require 'dm-constraints'

# Add translations to models
require 'r18n-core/translated'

# Optional custom DataMapper plugins
#require 'dm-is-tree'
#require 'dm-is-list'

# When we're developing, some DataMapper debug would be nice.
if development?
  DataMapper::Logger.new $stdout, :debug
  #DataMapper::Model.raise_on_save_failure = true
end

# Set up our database connection.
DataMapper.setup :default, $database_connection
{'fraction_non_alphanumeric': 0.10436432637571158, 'fraction_numerical': 0.003795066413662239, 'mean_word_length': 5.85064935064935, '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': '4198062', 'n_tokens_mistral': 332, 'n_tokens_neox': 321, 'n_words': 96}