<commit_before>var fs = require('fs');
var path = require('path');

module.exports = function(robot, scripts) {
  var scriptsPath;
  scriptsPath = path.resolve(__dirname, 'src');
  return fs.exists(scriptsPath, function(exists) {
    var i, len, ref, results, script;
    if (exists) {
      ref = fs.readdirSync(scriptsPath);
      results = [];
      for (i = 0, len = ref.length; i < len; i++) {
        script = ref[i];
        if ((scripts != null) && indexOf.call(scripts, '*') < 0) {
          if (indexOf.call(scripts, script) >= 0) {
            results.push(robot.loadFile(scriptsPath, script));
          } else {
            results.push(void 0);
          }
        } else {
          results.push(robot.loadFile(scriptsPath, script));
        }
      }
      return results;
    }
  });
};<commit_msg>use defalt src path<commit_after>var path = require('path');

module.exports = function(robot) {
  robot.load(path.join(__dirname, '/src/scripts/'));
};
{'fraction_non_alphanumeric': 0.16339193381592554, 'fraction_numerical': 0.004136504653567736, 'mean_word_length': 2.585185185185185, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '992441', 'n_tokens_mistral': 309, 'n_tokens_neox': 304, 'n_words': 67}