<commit_before>var fs         = require('fs');
var path       = require('path');
var chalk      = require('chalk');
var findup     = require('findup-sync');
var mkdirp     = require('mkdirp');
var walkSync   = require('walk-sync');
var COFFEELINT = require('coffeelint').lint;
var helpers    = require('broccoli-kitchen-sink-helpers');
var Filter     = require('broccoli-filter');
var REGISTERRULE = require('coffeelint').registerRule;

var mapSeries  = require('promise-map-series')

CoffeeLint.prototype = Object.create(Filter.prototype);
CoffeeLint.prototype.constructor = CoffeeLint;
function CoffeeLint (inputTree, options) {
  if (!(this instanceof CoffeeLint)) return new CoffeeLint(inputTree, options);
  REGISTERRULE(require('./rules/forbidden-key-words.js'));
  REGISTERRULE(require('./rules/forbidden-inline-comments.js'));
  options = options || {};

  this.inputTree = inputTree;
  this.log       = true;

  for (var key in options) {
    if (options.hasOwnProperty(key)) {
      this[key] = options[key]
    }
  }
};

CoffeeLint.prototype.extensions = ['coffee'];
CoffeeLint.prototype.targetExtension = 'coffeelint.js';

CoffeeLint.prototype.write = function (readTree, destDir) {
  var self          = this
  self._errors      = [];
  self._errorLength = 0;
  return readTree(this.inputTree).then(function (srcDir) {
    var paths = walkSync(srcDir)
    if (!self.coffeelintJSON) {
      var coffeelintPath  = self.coffeelintJSONPath || path.join(srcDir, self.coffeelintJSONRoot || '');
      self.coffeelintJSON = self.getConfig(coffeelintPath);
    }<commit_msg>remove inline comments<commit_after>var fs         = require('fs');
var path       = require('path');
var chalk      = require('chalk');
var findup     = require('findup-sync');
var mkdirp     = require('mkdirp');
var walkSync   = require('walk-sync');
var COFFEELINT = require('coffeelint').lint;
var helpers    = require('broccoli-kitchen-sink-helpers');
var Filter     = require('broccoli-filter');
var REGISTERRULE = require('coffeelint').registerRule;

var mapSeries  = require('promise-map-series')

CoffeeLint.prototype = Object.create(Filter.prototype);
CoffeeLint.prototype.constructor = CoffeeLint;
function CoffeeLint (inputTree, options) {
  if (!(this instanceof CoffeeLint)) return new CoffeeLint(inputTree, options);
  REGISTERRULE(require('./rules/forbidden-key-words.js'));
  options = options || {};

  this.inputTree = inputTree;
  this.log       = true;

  for (var key in options) {
    if (options.hasOwnProperty(key)) {
      this[key] = options[key]
    }
  }
};

CoffeeLint.prototype.extensions = ['coffee'];
CoffeeLint.prototype.targetExtension = 'coffeelint.js';

CoffeeLint.prototype.write = function (readTree, destDir) {
  var self          = this
  self._errors      = [];
  self._errorLength = 0;
  return readTree(this.inputTree).then(function (srcDir) {
    var paths = walkSync(srcDir)
    if (!self.coffeelintJSON) {
      var coffeelintPath  = self.coffeelintJSONPath || path.join(srcDir, self.coffeelintJSONRoot || '');
      self.coffeelintJSON = self.getConfig(coffeelintPath);
    }
{'fraction_non_alphanumeric': 0.1415215989684075, 'fraction_numerical': 0.0006447453255963894, 'mean_word_length': 4.0702614379084965, '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': '6447927', 'n_tokens_mistral': 1037, 'n_tokens_neox': 1003, 'n_words': 191}