<commit_before>module Concerns::SentryConfigs
  def set_raven_context
    Raven.user_context(id: current_user.id) if current_user
    Raven.extra_context(params: params.to_hash, url: request.url)
  end
end<commit_msg>hotfix sentry<commit_after>module Concerns::SentryConfigs
  def set_raven_context
    Raven.user_context(id: current_user.id) if defined?(current_user) && current_user
    Raven.extra_context(params: params.to_hash, url: request.url)
  end
end
{'fraction_non_alphanumeric': 0.0891304347826087, 'fraction_numerical': 0.0, 'mean_word_length': 6.203125, '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': '4320943', 'n_tokens_mistral': 163, 'n_tokens_neox': 161, 'n_words': 29}