<commit_before>require 'forwardable'

TARANTULA_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "../.."))

require 'erb'
gem 'actionpack'
gem 'activesupport'
require 'active_support'
require 'action_controller'
# bringing in xss-shield requires a bunch of other dependencies
# still not certain about this, if it ruins your world please let me know
#xss_shield_path = File.join(TARANTULA_ROOT, %w{vendor xss-shield})
#$: << File.join(xss_shield_path, "lib")
#require File.join(xss_shield_path, "init")

require 'htmlentities'
require 'facets/kernel/meta'
require 'facets/metaid'

module Relevance; end
module Relevance; module CoreExtensions; end; end
module Relevance
  module Tarantula
    VERSION = "0.0.6"

    def tarantula_home
      File.expand_path(File.join(File.dirname(__FILE__), "../.."))
    end
    def log(msg)
      puts msg if verbose
    end
    def rails_root<commit_msg>Cleanup the way we require things to make it play nice with a rails app where rails is frozen<commit_after>TARANTULA_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "../.."))

require 'forwardable'
require 'erb'
require 'rubygems'
require 'active_support'
require 'action_controller'

# bringing in xss-shield requires a bunch of other dependencies
# still not certain about this, if it ruins your world please let me know
#xss_shield_path = File.join(TARANTULA_ROOT, %w{vendor xss-shield})
#$: << File.join(xss_shield_path, "lib")
#require File.join(xss_shield_path, "init")

require 'htmlentities'
require 'facets/kernel/meta'
require 'facets/metaid'

module Relevance; end
module Relevance; module CoreExtensions; end; end
module Relevance
  module Tarantula
    VERSION = "0.0.6"

    def tarantula_home
      File.expand_path(File.join(File.dirname(__FILE__), "../.."))
    end
    def log(msg)
      puts msg if verbose
    end
    def rails_root
{'fraction_non_alphanumeric': 0.10848549946294307, 'fraction_numerical': 0.00322234156820623, 'mean_word_length': 4.628398791540786, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6313690', 'n_tokens_mistral': 630, 'n_tokens_neox': 606, 'n_words': 175}