<commit_before>require "colonel"
require "pry"
require "fileutils"

include Colonel

Colonel.config.index_name = 'colonel-test'

begin
  ElasticsearchProvider.es_client.indices.delete index: Colonel.config.index_name
  FileUtils.rm_rf Colonel.config.storage_path
rescue
end

ElasticsearchProvider.initialize!(Colonel::Document)

Before do
  ElasticsearchProvider.es_client.delete_by_query index: Colonel.config.index_name, q: '*'
end<commit_msg>Clear everything before each scenario<commit_after>require "colonel"
require "pry"
require "fileutils"

include Colonel

Colonel.config.index_name = 'colonel-test'

begin
  ElasticsearchProvider.es_client.indices.delete index: Colonel.config.index_name
  FileUtils.rm_rf Colonel.config.storage_path
rescue
end

ElasticsearchProvider.initialize!(Colonel::Document)

Before do
  ElasticsearchProvider.es_client.delete_by_query index: Colonel.config.index_name, q: '*'
  FileUtils.rm_rf Colonel.config.storage_path
end
{'fraction_non_alphanumeric': 0.08645833333333333, 'fraction_numerical': 0.0, 'mean_word_length': 7.008333333333334, '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': '1169032', 'n_tokens_mistral': 300, 'n_tokens_neox': 299, 'n_words': 57}