<commit_before>lib = File.dirname(File.dirname(__FILE__)) + '/lib'
$:.unshift(lib) unless $:.include?(lib)
require 'rubygems'
require 'minitest/autorun'
require 'fileutils'
require 'yaml'
require 'ruboto/sdk_versions'
require 'ruboto/sdk_locations'
require 'ruboto/util/update'

# FIXME(uwe): Remove when we stop supporting onler Ruby versions
MiniTest = Minitest if RUBY_VERSION =~ /^(1\.9|2\.0|2\.1)\./
# EMXIF

module RubotoTest
  include Ruboto::SdkVersions
  include Ruboto::SdkLocations
  include Ruboto::Util::Update

  PROJECT_DIR = File.expand_path('..', File.dirname(__FILE__))
  $LOAD_PATH << PROJECT_DIR

  unless File.writable?(ENV['GEM_HOME'])
    GEM_PATH = File.join PROJECT_DIR, 'tmp', 'gems'
    FileUtils.mkdir_p GEM_PATH<commit_msg>* Allow testing with Ruby <2.2<commit_after>lib = File.dirname(File.dirname(__FILE__)) + '/lib'
$:.unshift(lib) unless $:.include?(lib)
require 'rubygems'
require 'minitest/autorun'
require 'fileutils'
require 'yaml'
require 'ruboto/sdk_versions'
require 'ruboto/sdk_locations'
require 'ruboto/util/update'

# FIXME(uwe): Remove when we stop supporting onler Ruby versions
Minitest = MiniTest if RUBY_VERSION =~ /^(1\.9|2\.0|2\.1)\./
# EMXIF

module RubotoTest
  include Ruboto::SdkVersions
  include Ruboto::SdkLocations
  include Ruboto::Util::Update

  PROJECT_DIR = File.expand_path('..', File.dirname(__FILE__))
  $LOAD_PATH << PROJECT_DIR

  unless File.writable?(ENV['GEM_HOME'])
    GEM_PATH = File.join PROJECT_DIR, 'tmp', 'gems'
    FileUtils.mkdir_p GEM_PATH
{'fraction_non_alphanumeric': 0.14266929651545035, 'fraction_numerical': 0.009204470742932281, 'mean_word_length': 5.368200836820083, 'pattern_counts': {'":': 0, '<': 8, '<?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': '5653183', 'n_tokens_mistral': 562, 'n_tokens_neox': 547, 'n_words': 118}