<commit_before>require('jasmine-reporters')

class JasmineJUnitReporter extends jasmine.JUnitXmlReporter {
  fullDescription (spec) {
    let fullDescription = spec.description
    let currentSuite = spec.suite
    while (currentSuite) {
      fullDescription = currentSuite.description + ' ' + fullDescription
      currentSuite = currentSuite.parentSuite
    }
    return fullDescription
  }

  reportSpecResults (spec) {
    spec.description = this.fullDescription(spec)
    return super.reportSpecResults(spec)
  }
}

module.exports = { JasmineJUnitReporter }<commit_msg>Prefix test descriptions with TEST_JUNIT_RUN<commit_after>require('jasmine-reporters')

class JasmineJUnitReporter extends jasmine.JUnitXmlReporter {
  fullDescription (spec) {
    let fullDescription = spec.description
    let currentSuite = spec.suite
    while (currentSuite) {
      fullDescription = currentSuite.description + ' ' + fullDescription
      currentSuite = currentSuite.parentSuite
    }

    if (process.env.TEST_JUNIT_RUN) {
      fullDescription = `[${process.env.TEST_JUNIT_RUN}] ` + fullDescription
    }

    return fullDescription
  }

  reportSpecResults (spec) {
    spec.description = this.fullDescription(spec)
    return super.reportSpecResults(spec)
  }
}

module.exports = { JasmineJUnitReporter }
{'fraction_non_alphanumeric': 0.08512269938650306, 'fraction_numerical': 0.0, 'mean_word_length': 4.117647058823529, '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': '4203542', 'n_tokens_mistral': 380, 'n_tokens_neox': 365, 'n_words': 69}