<commit_before># frozen_string_literal: true

require 'statsd'

class Stats
  def initialize
    @statsd = Statsd.new('127.0.0.1', 8125)
  end

  def dyno_id
    @dyno_id ||= ENV['DYNO'] || 'unknown'
  end

  def increment(name)
    @statsd.increment("#{name}")
  end

  def timing(name, ms)
    @statsd.timing(name, ms)
  end

  def time(name, &blk)
    @statsd.time(name, &blk)
  end
end<commit_msg>Remove unused DYNO variable This variable was provided by heroku when the project first started.<commit_after># frozen_string_literal: true

require 'statsd'

class Stats
  def initialize
    @statsd = Statsd.new('127.0.0.1', 8125)
  end

  def increment(name)
    @statsd.increment("#{name}")
  end

  def timing(name, ms)
    @statsd.timing(name, ms)
  end

  def time(name, &blk)
    @statsd.time(name, &blk)
  end
end
{'fraction_non_alphanumeric': 0.13017031630170317, 'fraction_numerical': 0.024330900243309004, 'mean_word_length': 3.546961325966851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4063566', 'n_tokens_mistral': 331, 'n_tokens_neox': 310, 'n_words': 79}