<commit_before>module.exports = {
  server: function(api, options) {
    var registratorName = options.registratorName || '$loc_h8tz9yd7';
    var injectScript = require('fs')
      .readFileSync(__dirname + '/js-runtime.js', 'utf-8')
      .replace('__ref__', registratorName)

    var processorConfig = {
      registratorName: registratorName,
      blackbox: Array.isArray(options.blackbox) ? options.blackbox : [],
      injectScriptFilename: api.addVirtualFile('runtime.js', injectScript)
    };

    api.addPreprocessor('.html', require('./html-process')(processorConfig));
    api.addPreprocessor('.js', require('./js-process')(processorConfig));
  }
};
<commit_msg>don't set blackbox for js-process if no value in options<commit_after>module.exports = {
  server: function(api, options) {
    var registratorName = options.registratorName || '$loc_h8tz9yd7';
    var injectScript = require('fs')
      .readFileSync(__dirname + '/js-runtime.js', 'utf-8')
      .replace('__ref__', registratorName)

    var processorConfig = {
      registratorName: registratorName,
      blackbox: Array.isArray(options.blackbox) ? options.blackbox : null,
      injectScriptFilename: api.addVirtualFile('runtime.js', injectScript)
    };

    api.addPreprocessor('.html', require('./html-process')(processorConfig));
    api.addPreprocessor('.js', require('./js-process')(processorConfig));
  }
};

{'fraction_non_alphanumeric': 0.1507537688442211, 'fraction_numerical': 0.00574300071787509, 'mean_word_length': 4.2209737827715355, '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': '7067459', 'n_tokens_mistral': 416, 'n_tokens_neox': 414, 'n_words': 70}