<commit_before>require "rubygems"
require "bundler"
Bundler.setup(:default, :test)

if not ENV['NOCOV']
  require 'simplecov'
  SimpleCov.start do
    add_filter "/test/"
  end
end
$:.unshift File.expand_path('../../lib/', __FILE__)
require 'active_support/testing/setup_and_teardown'
require 'public_activity'
require 'minitest/autorun'
require 'minitest/pride' if ENV['WITH_PRIDE']
require 'active_record'
require 'active_record/connection_adapters/sqlite3_adapter'
require 'turn/autorun' if ENV['CI'] || ENV['PRETTY']

require 'stringio'        # silence the output
$stdout = StringIO.new    # from migrator
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')
ActiveRecord::Migrator.migrate(File.expand_path('../migrations', __FILE__))
$stdout = STDOUT

def article(options = {})
  Class.new(ActiveRecord::Base) do
    self.abstract_class = true<commit_msg>enable turn on non-ci environments<commit_after>require "rubygems"
require "bundler"
Bundler.setup(:default, :test)

if not ENV['NOCOV']
  require 'simplecov'
  SimpleCov.start do
    add_filter "/test/"
  end
end
$:.unshift File.expand_path('../../lib/', __FILE__)
require 'active_support/testing/setup_and_teardown'
require 'public_activity'
require 'minitest/autorun'
require 'minitest/pride' if ENV['WITH_PRIDE']
require 'active_record'
require 'active_record/connection_adapters/sqlite3_adapter'
require 'turn/autorun' if !ENV['CI']

require 'stringio'        # silence the output
$stdout = StringIO.new    # from migrator
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')
ActiveRecord::Migrator.migrate(File.expand_path('../migrations', __FILE__))
$stdout = STDOUT

def article(options = {})
  Class.new(ActiveRecord::Base) do
    self.abstract_class = true
{'fraction_non_alphanumeric': 0.14023372287145242, 'fraction_numerical': 0.0022259321090706734, 'mean_word_length': 5.862595419847328, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6112381', 'n_tokens_mistral': 603, 'n_tokens_neox': 606, 'n_words': 126}