<commit_before>require 'yaml'
require 'gabba'
require 'boxcar/helpers'

class Boxcar::Command::Base
  attr_reader :args
  attr_reader :options

  def initialize(args=[], options={})
    @args = args
    @options = options

    analytics = YAML.load_file("#{ENV['BOXCAR_ROOT']}/config/analytics.yml")
    @gabba = ::Gabba::Gabba.new(@analytics['tracking_id'], @analytics['domain'])
  end

  def self.namespace
    self.to_s.split("::").last.downcase
  end

  def track_event(category, action)
    @gabba.event(category, action)<commit_msg>Typos will be the death of me<commit_after>require 'yaml'
require 'gabba'
require 'boxcar/helpers'

class Boxcar::Command::Base
  attr_reader :args
  attr_reader :options

  def initialize(args=[], options={})
    @args = args
    @options = options

    analytics = YAML.load_file("#{ENV['BOXCAR_ROOT']}/config/analytics.yml")
    @gabba = ::Gabba::Gabba.new(analytics['tracking_id'], analytics['domain'])
  end

  def self.namespace
    self.to_s.split("::").last.downcase
  end

  def track_event(category, action)
    @gabba.event(category, action)
{'fraction_non_alphanumeric': 0.15229357798165138, 'fraction_numerical': 0.0, 'mean_word_length': 4.712041884816754, 'pattern_counts': {'":': 2, '<': 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': '1330113', 'n_tokens_mistral': 388, 'n_tokens_neox': 372, 'n_words': 73}