<commit_before>require 'helper'

class BugsnagTestException < RuntimeError; end

class TestBugsnag < Test::Unit::TestCase
  should "get a 200 response from bugsnag for exceptions" do
    Bugsnag.configure do |config|
      config.api_key = "a799e9c27c3fb3017e4a556fd815317e"
      config.endpoint = "http://localhost:8000/notify"
      config.release_stage = "production"
      config.project_root = File.dirname(__FILE__)
    end
    
    begin
      raise BugsnagTestException.new("Exception test from bugsnag gem")
    rescue Exception => e
      response = Bugsnag.notify(e)
      flunk "oh my" if response.code != 200
    end
  end
end<commit_msg>User id in test<commit_after>require 'helper'

class BugsnagTestException < RuntimeError; end

class TestBugsnag < Test::Unit::TestCase
  should "get a 200 response from bugsnag for exceptions" do
    Bugsnag.configure do |config|
      config.api_key = "a799e9c27c3fb3017e4a556fd815317e"
      config.endpoint = "http://localhost:8000/notify"
      config.release_stage = "production"
      config.project_root = File.dirname(__FILE__)
      config.user_id = "static_user_id"
    end
    
    begin
      raise BugsnagTestException.new("Exception test from bugsnag gem")
    rescue Exception => e
      response = Bugsnag.notify(e)
      flunk "oh my" if response.code != 200
    end
  end
end
{'fraction_non_alphanumeric': 0.08469539375928678, 'fraction_numerical': 0.04606240713224369, 'mean_word_length': 3.4309210526315788, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3353677', 'n_tokens_mistral': 463, 'n_tokens_neox': 426, 'n_words': 108}