<commit_before>var ReportBuilder = require("../reporters/report_builder");

function XhrReporter(project_id, project_key, name, processor_name) {
  this.report = function(error_data, options) {
    var output_data = ReportBuilder.build(processor_name, error_data, options),
        url         = "https://api.airbrake.io/api/v3/projects/" + project_id + "/notices?key=" + project_key,
        request     = new global.XMLHttpRequest();

    request.open("POST", url, true);
    request.setRequestHeader("Content-Type", "application/json");
    request.send(JSON.stringify(output_data));
  };
}

module.exports = XhrReporter;<commit_msg>XhrReporter constructor takes no `name` parameter<commit_after>var ReportBuilder = require("../reporters/report_builder");

function XhrReporter(project_id, project_key, processor_name) {
  this.report = function(error_data, options) {
    var output_data = ReportBuilder.build(processor_name, error_data, options),
        url         = "https://api.airbrake.io/api/v3/projects/" + project_id + "/notices?key=" + project_key,
        request     = new global.XMLHttpRequest();

    request.open("POST", url, true);
    request.setRequestHeader("Content-Type", "application/json");
    request.send(JSON.stringify(output_data));
  };
}

module.exports = XhrReporter;
{'fraction_non_alphanumeric': 0.1390168970814132, 'fraction_numerical': 0.0015360983102918587, 'mean_word_length': 4.406639004149378, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2620484', 'n_tokens_mistral': 397, 'n_tokens_neox': 391, 'n_words': 67}