<commit_before>require 'rake'
require 'rake/task'
require 'raven/integrations/tasks'

module Rake
  class Application
    alias orig_display_error_messsage display_error_message
    def display_error_message(ex)
      Raven.capture_exception ex, :logger => 'rake', :tags => { 'rake_task' => @name }
      orig_display_error_messsage(ex)
    end
  end
end<commit_msg>Show top level tasks instead proocess name<commit_after>require 'rake'
require 'rake/task'
require 'raven/integrations/tasks'

module Rake
  class Application
    alias orig_display_error_messsage display_error_message
    def display_error_message(ex)
      Raven.capture_exception ex, :logger => 'rake', :tags => { 'rake_task' => top_level_tasks.join(' ') }
      orig_display_error_messsage(ex)
    end
  end
end
{'fraction_non_alphanumeric': 0.09218950064020487, 'fraction_numerical': 0.0, 'mean_word_length': 4.792592592592593, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6694396', 'n_tokens_mistral': 256, 'n_tokens_neox': 251, 'n_words': 57}