<commit_before>var path = require('path');
var removeFile = require('broccoli-file-remover');

module.exports = {
  name: 'ember-cli-test-file-remover',

  setupPreprocessorRegistry: function(type, registry) {
    var options, appName;
    if (registry && registry.app && registry.app.options) {
      options = registry.app.options['test-file-remover'];
      appName = registry.app.name;
      if (options.files) {
        console.log(appName);
        options.files = options.files.map(function(f) {
          return path.join(appName, "tests", f);
        });
        console.log(options.files);
      }
    }
    registry.add('js', {
      name: 'ember-cli-test-file-remover',
      ext: 'js',
      toTree: function(tree) {
        if (options) {
          return removeFile(tree, options);
        }
        else
          return tree;
      }
    });
  }
};<commit_msg>Clean up.<commit_after>var path = require('path');
var removeFile = require('broccoli-file-remover');

module.exports = {
  name: 'ember-cli-test-file-remover',

  setupPreprocessorRegistry: function(type, registry) {
    var options, appName;
    if (registry && registry.app && registry.app.options) {
      options = registry.app.options['test-file-remover'];
      appName = registry.app.name;
      if (options.files) {
        options.files = options.files.map(function(f) {
          return path.join(appName, "tests", f);
        });
      }
    }
    registry.add('js', {
      name: 'ember-cli-test-file-remover',
      ext: 'js',
      toTree: function(tree) {
        if (options) {
          return removeFile(tree, options);
        }
        else
          return tree;
      }
    });
  }
};
{'fraction_non_alphanumeric': 0.1508313539192399, 'fraction_numerical': 0.0, 'mean_word_length': 2.3300395256916997, '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': '689370', 'n_tokens_mistral': 527, 'n_tokens_neox': 522, 'n_words': 95}