<commit_before>if ENV['SEGMENT_API_KEY']
  Analytics.init({
      secret: ENV['SEGMENT_API_KEY']
  })
else
  class Analytics
    def self.track(options)
      puts "Analytics.track user:#{options[:user_id]} #{options[:event]}  (#{options[:properties].inspect})"
    end
  end
end<commit_msg>Fix initializer for new analytics ruby<commit_after>require 'segment/analytics'

if ENV['SEGMENT_API_KEY']
  Analytics = Segment::Analytics.new({
      write_key: ENV['SEGMENT_API_KEY']
  })
else
  class Analytics
    def self.track(options)
      puts "Analytics.track user:#{options[:user_id]} #{options[:event]}  (#{options[:properties].inspect})"
    end
  end
end
{'fraction_non_alphanumeric': 0.1456752655538695, 'fraction_numerical': 0.0, 'mean_word_length': 4.7894736842105265, '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': '4136118', 'n_tokens_mistral': 229, 'n_tokens_neox': 227, 'n_words': 43}