<commit_before>$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))

require 'simplecov'
require 'coveralls'

unless defined?(Guard)
  # Do not run SimpleCov in Guard
  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
  SimpleCov.start do
    command_name     'spec:unit'
    add_filter       'config'
    add_filter       'spec'
    minimum_coverage 99
  end
end

# Helper to simulate Server Responses. Parses the fixtures in the spec folder
require 'multi_json'
def server_response(path)
  return MultiJson.load(File.readlines("spec/fixtures/#{path}.json").join)
end

ARANGO_HOST = "http://localhost:8529"<commit_msg>Do not load simplecov, if it is not needed<commit_after>$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))

unless defined?(Guard)
  require 'simplecov'
  require 'coveralls'

  # Do not run SimpleCov in Guard
  SimpleCov.formatter = Coveralls::SimpleCov::Formatter
  SimpleCov.start do
    command_name     'spec:unit'
    add_filter       'config'
    add_filter       'spec'
    minimum_coverage 99
  end
end

# Helper to simulate Server Responses. Parses the fixtures in the spec folder
require 'multi_json'
def server_response(path)
  return MultiJson.load(File.readlines("spec/fixtures/#{path}.json").join)
end

ARANGO_HOST = "http://localhost:8529"
{'fraction_non_alphanumeric': 0.11254480286738351, 'fraction_numerical': 0.008602150537634409, 'mean_word_length': 4.606425702811245, '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': '5596833', 'n_tokens_mistral': 475, 'n_tokens_neox': 453, 'n_words': 107}