<commit_before>require 'airbrake_tasks'

module Herohook
  
  class Airbrake < Base
    
    def perform
      ::AirbrakeTasks.deploy(
        :api_key => config["api_key"],
        :rails_env => app,
        :scm_revision => params[:head],
        :scm_repository => config["repository_url"],
        :local_username => params[:user]
        )
    end
  end
end<commit_msg>set airbrake config globally rather than via method<commit_after>require 'airbrake_tasks'

module Herohook
  
  class Airbrake < Base
    
    def perform
      Airbrake.configure do |airbrake_config|
        airbrake_config.api_key = config["api_key"]
      end
      ::AirbrakeTasks.deploy(
        :rails_env => app,
        :scm_revision => params[:head],
        :scm_repository => config["repository_url"],
        :local_username => params[:user]
        )
    end
  end
end
{'fraction_non_alphanumeric': 0.10409356725146199, 'fraction_numerical': 0.0, 'mean_word_length': 2.6271186440677967, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '3361150', 'n_tokens_mistral': 276, 'n_tokens_neox': 270, 'n_words': 56}