<commit_before>var os = require('os');
var path = require('path');
var fs = require('fs');
var builder = require('xmlbuilder');


var NUnitReporter = function(baseReporterDecorator, config, emitter, logger, helper, formatError) {
  var outputFile = path.resolve(config.basePath, config.nunitReporter.outputFile);
  var suiteName = config.nunitReporter.suiteName || 'unit';
  var log = logger.create('reporter.nunit');
  
  var xml;
  var testBrowsers;
  var allMessages = [];
  var pendingFileWritings = 0;
  var fileWritingFinished = function(){};
  var xmlTestsTotal = 0;
  var xmlTestsFailures = 0;
  var xmlTestsErrors = 0;
  var xmlTestsNotRun = 0;
  var xmlTestsDate = (new Date()).toISOString().substr(0, 10);
  var xmlTestsTime = (new Date()).toISOString().substr(11, 8);

  baseReporterDecorator(this);

  this.adapters = [function(msg) {
    allMessages.push(msg);
  }];

  this.onRunStart = function(browsers) {
    testBrowsers = {};
    xml = builder
    .create('test-results', {'version': '1.0', 'encoding': 'UTF-8'})
    .att('name', 'Javascript Specs');
<commit_msg>added check for config property<commit_after>var os = require('os');
var path = require('path');
var fs = require('fs');
var builder = require('xmlbuilder');


var NUnitReporter = function(baseReporterDecorator, config, emitter, logger, helper, formatError) {
  config.nunitReporter = config.nunitReporter || {};
  var outputFile = path.resolve(config.basePath, config.nunitReporter.outputFile);
  var suiteName = config.nunitReporter.suiteName || 'unit';
  var log = logger.create('reporter.nunit');
  
  var xml;
  var testBrowsers;
  var allMessages = [];
  var pendingFileWritings = 0;
  var fileWritingFinished = function(){};
  var xmlTestsTotal = 0;
  var xmlTestsFailures = 0;
  var xmlTestsErrors = 0;
  var xmlTestsNotRun = 0;
  var xmlTestsDate = (new Date()).toISOString().substr(0, 10);
  var xmlTestsTime = (new Date()).toISOString().substr(11, 8);

  baseReporterDecorator(this);

  this.adapters = [function(msg) {
    allMessages.push(msg);
  }];

  this.onRunStart = function(browsers) {
    testBrowsers = {};
    xml = builder
    .create('test-results', {'version': '1.0', 'encoding': 'UTF-8'})
    .att('name', 'Javascript Specs');

{'fraction_non_alphanumeric': 0.15198927134555207, 'fraction_numerical': 0.012516763522574878, 'mean_word_length': 4.567164179104478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, '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': '2662562', 'n_tokens_mistral': 768, 'n_tokens_neox': 733, 'n_words': 170}