<commit_before>require 'bundler/setup'
require 'logger'

require 'coveralls'
Coveralls.wear!

require 'simplecov'
SimpleCov.start do
  add_filter "/spec/"
end

require 'http_streaming_client'

NUM_JSON_RECORDS_TO_RECEIVE = 5
TIMEOUT_SEC = 90

RSpec.configure do |config|

  HttpStreamingClient.logger.console = true
  HttpStreamingClient.logger.level = Logger::DEBUG
  HttpStreamingClient.logger.logfile = true

end

def logger
  HttpStreamingClient.logger
end
<commit_msg>updated spec_helper for conditional coveralls push<commit_after>require 'bundler/setup'
require 'logger'

require 'coveralls'
Coveralls.wear! if ENV["COVERALLS"]

require 'simplecov'
SimpleCov.start do
  add_filter "/spec/"
  add_filter "/lib/http_streaming_client/credentials/"
end

require 'http_streaming_client'

NUM_JSON_RECORDS_TO_RECEIVE = 5
TIMEOUT_SEC = 90

RSpec.configure do |config|

  HttpStreamingClient.logger.console = true
  HttpStreamingClient.logger.level = Logger::DEBUG
  HttpStreamingClient.logger.logfile = true

end

def logger
  HttpStreamingClient.logger
end

{'fraction_non_alphanumeric': 0.08128544423440454, 'fraction_numerical': 0.005671077504725898, 'mean_word_length': 5.788461538461538, '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': '6231789', 'n_tokens_mistral': 363, 'n_tokens_neox': 353, 'n_words': 77}