<commit_before># -*- encoding : utf-8 -*-
require 'shiva/version'
require 'shiva/configurator'
require 'shiva/database'

module Shiva
  def self.configure &block
    @configuration = Shiva::Configurator.new

    @configuration.instance_eval &block
  end

  def self.configuration
    raise 'You have to run Shiva.configure before using Shiva' if @configuration.blank?
    @configuration
  end
end

Dir.glob(File.join(File.dirname(__FILE__), 'tasks','*.rake')).each { |r| import r }<commit_msg>Avoid import collapsing with JRuby import. Require rake to redefine import method.<commit_after># -*- encoding : utf-8 -*-
require 'shiva/version'
require 'shiva/configurator'
require 'shiva/database'

module Shiva
  def self.configure &block
    @configuration = Shiva::Configurator.new

    @configuration.instance_eval &block
  end

  def self.configuration
    raise 'You have to run Shiva.configure before using Shiva' if @configuration.blank?
    @configuration
  end
end

require 'rake'
Dir.glob(File.join(File.dirname(__FILE__), 'tasks','*.rake')).each { |r| import r }
{'fraction_non_alphanumeric': 0.11775700934579439, 'fraction_numerical': 0.001869158878504673, 'mean_word_length': 4.355, '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': '2519310', 'n_tokens_mistral': 331, 'n_tokens_neox': 323, 'n_words': 93}