<commit_before>require_relative 'grocer/feedback'
require_relative 'grocer/notification'
require_relative 'grocer/feedback_connection'
require_relative 'grocer/push_connection'
require_relative 'grocer/pusher'
require_relative 'grocer/version'

module Grocer

  def self.env
    ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
  end

  def self.feedback(options)
    connection = FeedbackConnection.new(options)
    Feedback.new(options)
  end

  def self.pusher(options)
    connection = PushConnection.new(options)
    Pusher.new(connection)
  end
<commit_msg>Fixes small bug in passing `connection` to Feedback.<commit_after>require_relative 'grocer/feedback'
require_relative 'grocer/notification'
require_relative 'grocer/feedback_connection'
require_relative 'grocer/push_connection'
require_relative 'grocer/pusher'
require_relative 'grocer/version'

module Grocer

  def self.env
    ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
  end

  def self.feedback(options)
    connection = FeedbackConnection.new(options)
    Feedback.new(connection)
  end

  def self.pusher(options)
    connection = PushConnection.new(options)
    Pusher.new(connection)
  end

{'fraction_non_alphanumeric': 0.0977891156462585, 'fraction_numerical': 0.0, 'mean_word_length': 5.575418994413408, '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': '3569941', 'n_tokens_mistral': 387, 'n_tokens_neox': 369, 'n_words': 71}