<commit_before>var fs = require('fs')
var path = require('path')
var mkdirp = require('mkdirp')
var Promise = require('rsvp').Promise
var Plugin = require('broccoli-plugin')
var helpers = require('broccoli-kitchen-sink-helpers')
var walkSync = require('walk-sync')
var mapSeries = require('promise-map-series')
var symlinkOrCopySync = require('symlink-or-copy').sync


module.exports = Filter
Filter.prototype = Object.create(Plugin.prototype)
Filter.prototype.constructor = Filter
function Filter (inputNode, options) {
  if (!inputNode) {
    throw new Error('broccoli-filter must be passed an inputNode, instead it received `undefined`');
  }
  options = options || {}
  Plugin.call(this, [inputNode], {
    name: options.name,
    annotation: options.annotation
  })
  if (options.extensions != null) this.extensions = options.extensions
  if (options.targetExtension != null) this.targetExtension = options.targetExtension
  if (options.inputEncoding !== undefined) this.inputEncoding = options.inputEncoding
  if (options.outputEncoding !== undefined) this.outputEncoding = options.outputEncoding
}

Filter.prototype.build = function (readTree, destDir) {
  var self = this
  var srcDir = this.inputPaths[0]
  var destDir = this.outputPath

  var paths = walkSync(srcDir)

  return mapSeries(paths, function (relativePath) {
    if (relativePath.slice(-1) === '/') {
      mkdirp.sync(destDir + '/' + relativePath)
    } else {
      if (self.canProcessFile(relativePath)) {<commit_msg>Remove wrong and unused parameters<commit_after>var fs = require('fs')
var path = require('path')
var mkdirp = require('mkdirp')
var Promise = require('rsvp').Promise
var Plugin = require('broccoli-plugin')
var helpers = require('broccoli-kitchen-sink-helpers')
var walkSync = require('walk-sync')
var mapSeries = require('promise-map-series')
var symlinkOrCopySync = require('symlink-or-copy').sync


module.exports = Filter
Filter.prototype = Object.create(Plugin.prototype)
Filter.prototype.constructor = Filter
function Filter (inputNode, options) {
  if (!inputNode) {
    throw new Error('broccoli-filter must be passed an inputNode, instead it received `undefined`');
  }
  options = options || {}
  Plugin.call(this, [inputNode], {
    name: options.name,
    annotation: options.annotation
  })
  if (options.extensions != null) this.extensions = options.extensions
  if (options.targetExtension != null) this.targetExtension = options.targetExtension
  if (options.inputEncoding !== undefined) this.inputEncoding = options.inputEncoding
  if (options.outputEncoding !== undefined) this.outputEncoding = options.outputEncoding
}

Filter.prototype.build = function () {
  var self = this
  var srcDir = this.inputPaths[0]
  var destDir = this.outputPath

  var paths = walkSync(srcDir)

  return mapSeries(paths, function (relativePath) {
    if (relativePath.slice(-1) === '/') {
      mkdirp.sync(destDir + '/' + relativePath)
    } else {
      if (self.canProcessFile(relativePath)) {
{'fraction_non_alphanumeric': 0.1288487282463186, 'fraction_numerical': 0.0013386880856760374, 'mean_word_length': 4.748076923076923, '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': '2286053', 'n_tokens_mistral': 875, 'n_tokens_neox': 856, 'n_words': 214}