<commit_before>/**
 * @fileOverview Convert JSHint's results to a jslint_xml-compatible format
 * @see https://github.com/jshint/jshint/blob/master/src/reporters/jslint_xml.js
 */
'use strict';

exports.getHeader = function () {
    var out = [];
    out.push('<?xml version="1.0" encoding="utf-8"?>');
    out.push('<jslint>');
    return out.join('\n');
};

exports.getFooter = function () {
    return '\n</jslint>\n';
};

/**
 * @param    {Array}    results
 * @return {String} XML output
 */<commit_msg>Added a fix for the jslint_xml emitter - now has a line break after the first <jslint> tag<commit_after>/**
 * @fileOverview Convert JSHint's results to a jslint_xml-compatible format
 * @see https://github.com/jshint/jshint/blob/master/src/reporters/jslint_xml.js
 */
'use strict';

exports.getHeader = function () {
    var out = [];
    out.push('<?xml version="1.0" encoding="utf-8"?>');
    out.push('<jslint>\n');
    return out.join('\n');
};

exports.getFooter = function () {
    return '\n</jslint>\n';
};

/**
 * @param    {Array}    results
 * @return {String} XML output
 */
{'fraction_non_alphanumeric': 0.18812785388127853, 'fraction_numerical': 0.005479452054794521, 'mean_word_length': 3.4918032786885247, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 2, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '1748458', 'n_tokens_mistral': 394, 'n_tokens_neox': 386, 'n_words': 84}