<commit_before>require 'somatics_filter/active_record/core_ext'
require 'somatics_filter/helpers/somatics_filter_helper'

ActiveRecord::Base.send :include, SomaticsFilter::ActiveRecord::CoreExt
ActionController::Base.send :helper, SomaticsFilter::Helpers::SomaticsFilterHelper

I18n.load_path += Dir[File.expand_path(File.dirname(__FILE__) + '/../config/locales/*.yml')]

# Use MetaSearch for Rails 3
SomaticsFilter::Query.adapter = :meta_search if Rails.version.starts_with('3')<commit_msg>fix another bug. starts_with? instead of starts_with<commit_after>require 'somatics_filter/active_record/core_ext'
require 'somatics_filter/helpers/somatics_filter_helper'

ActiveRecord::Base.send :include, SomaticsFilter::ActiveRecord::CoreExt
ActionController::Base.send :helper, SomaticsFilter::Helpers::SomaticsFilterHelper

I18n.load_path += Dir[File.expand_path(File.dirname(__FILE__) + '/../config/locales/*.yml')]

# Use MetaSearch for Rails 3
SomaticsFilter::Query.adapter = :meta_search if Rails.version.starts_with?('3')
{'fraction_non_alphanumeric': 0.12622309197651663, 'fraction_numerical': 0.007827788649706457, 'mean_word_length': 9.029411764705882, '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': '6114128', 'n_tokens_mistral': 338, 'n_tokens_neox': 331, 'n_words': 49}