<commit_before>#!/usr/bin/env ruby

$: << File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))

require 'pathname'
require 'yajl'
require 'beanstalk-client'
require 'daemons'
require 'flapjack/executive'
require 'flapjack/patches'


Before('@events') do
  @app = Flapjack::Executive.run
  @app.process_events
  @redis = Redis.new
end

After('@events') do

end
<commit_msg>Use a different redis database while testing<commit_after>#!/usr/bin/env ruby

$: << File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))

require 'pathname'
require 'yajl'
require 'beanstalk-client'
require 'daemons'
require 'flapjack/executive'
require 'flapjack/patches'


Before('@events') do
  # Use a separate database whilst testing
  @app = Flapjack::Executive.new(:redis => { :db => 14 })
  @app.drain_events
  @redis = Flapjack.persistence
end

After('@events') do

end

{'fraction_non_alphanumeric': 0.1677927927927928, 'fraction_numerical': 0.0022522522522522522, 'mean_word_length': 5.173611111111111, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '1424143', 'n_tokens_mistral': 335, 'n_tokens_neox': 325, 'n_words': 68}