<commit_before>var path = require('path');
var coffeeCoverage = require('coffee-coverage');
var projectRoot = path.normalize(path.join(__dirname, '..'));
var coverageVar = coffeeCoverage.findIstanbulVariable();
// Only write a coverage report if we're not running inside of Istanbul.
var writeOnExit = (coverageVar == null) ? (projectRoot + '/coverage/coverage-coffee.json') : null;

coffeeCoverage.register({
    instrumentor: 'istanbul',
    basePath: projectRoot,
    exclude: [
      '/test',
      '/node_modules',
      '/.git',
      '/gulpfile.coffee',
      '/' + path.normalize('src/client.coffee'),
      '/' + path.normalize('src/main.coffee')
    ],
    coverageVar: coverageVar,
    writeOnExit: writeOnExit,
    initAll: true
});<commit_msg>Fix test coverage reporting<commit_after>var path = require('path');
var coffeeCoverage = require('coffee-coverage');
var projectRoot = path.normalize(path.join(__dirname, '..'));
var coverageVar = coffeeCoverage.findIstanbulVariable();
// Only write a coverage report if we're not running inside of Istanbul.
var writeOnExit = (coverageVar == null) ? (projectRoot + '/coverage/coverage-coffee.json') : null;

coffeeCoverage.register({
    instrumentor: 'istanbul',
    basePath: projectRoot,
    exclude: [
      '/test',
      '/node_modules',
      '/.git',
      '/gulpfile.coffee',
      '/' + path.normalize('src/client.coffee'),
      '/' + path.normalize('src/client'),
      '/' + path.normalize('src/main.coffee')
    ],
    coverageVar: coverageVar,
    writeOnExit: writeOnExit,
    initAll: true
});
{'fraction_non_alphanumeric': 0.15625, 'fraction_numerical': 0.0, 'mean_word_length': 3.697604790419162, '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': '6935693', 'n_tokens_mistral': 510, 'n_tokens_neox': 487, 'n_words': 102}