<commit_before>class ErrorAnalytics
  attr_accessor :analytics

  def initialize
    self.analytics = SegmentAnalytics.new
  end

  def track_500
    analytics.track({event: SegmentIo::Events::ERROR_500})
  end

end<commit_msg>supply anonymous_id to segment track 500<commit_after>class ErrorAnalytics
  attr_accessor :analytics

  def initialize
    self.analytics = SegmentAnalytics.new
  end

  def track_500
    anonymous_id = SecureRandom.urlsafe_base64
    analytics.track({event: SegmentIo::Events::ERROR_500, anonymous_id: anonymous_id})
  end

end
{'fraction_non_alphanumeric': 0.0683453237410072, 'fraction_numerical': 0.030575539568345324, 'mean_word_length': 4.925531914893617, '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': '7545518', 'n_tokens_mistral': 190, 'n_tokens_neox': 176, 'n_words': 38}