<commit_before># features/support/nagios.rb
require 'rubygems'

module Nagios
  class NagiosFormatter
    def initialize(io, step_mother, options={})
      # We don't care about these - we're just twittering!
      @failed = []
      @passed = []
    end

    def scenario_executing(scenario)
    end

    def step_passed(*args)
      @passed << true
    end

    def step_failed(*args)
      @failed << true
    end

    def scenario_executed(scenario)
      @total = @failed.size + @passed.size
      message = ""
      message += "Critical: #{@failed.size}, "
      message += "Warning: 0, "
      message += "#{@passed.size} okay"
      message += " | value=#{sprintf("%.6f", (@total - @failed.size))};;;;"
      puts message
    end
  end
end
<commit_msg>removed cruft from formatted we based this on<commit_after># features/support/nagios.rb
require 'rubygems'

module Nagios
  class NagiosFormatter
    def initialize(io, step_mother, options={})
      @failed = []
      @passed = []
    end

    def step_passed(*args)
      @passed << true
    end

    def step_failed(*args)
      @failed << true
    end

    def scenario_executed(scenario)
      @total = @failed.size + @passed.size
      message = ""
      message += "Critical: #{@failed.size}, "
      message += "Warning: 0, "
      message += "#{@passed.size} okay"
      message += " | value=#{sprintf("%.6f", (@total - @failed.size))};;;;"
      puts message
    end
  end
end

{'fraction_non_alphanumeric': 0.143054595715273, 'fraction_numerical': 0.0027643400138217, 'mean_word_length': 2.5753086419753086, 'pattern_counts': {'":': 0, '<': 11, '<?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': '4120316', 'n_tokens_mistral': 480, 'n_tokens_neox': 457, 'n_words': 116}