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

function EmberCLISimpleAuthTesting(project) {
  this.project = project;
  this.name    = 'Ember CLI Simple Auth Testing';
}

function unwatchedTree(dir) {
  return {
    read:    function() { return dir; },
    cleanup: function() { }
  };
}

EmberCLISimpleAuthTesting.prototype.treeFor = function included(name) {
  var treePath = path.join('node_modules/ember-cli-simple-auth-testing', name + '-addon');

  if (fs.existsSync(treePath)) {
    return unwatchedTree(treePath);
  }
};

EmberCLISimpleAuthTesting.prototype.included = function included(app) {
  this.app = app;

  this.app.import('vendor/ember-simple-auth/simple-auth-testing.amd.js', {
    exports: {
      'simple-auth-testing/test-helpers': ['default'],
      'simple-auth-testing/initializer':  ['default']
    }
  });
};

module.exports = EmberCLISimpleAuthTesting
;
<commit_msg>don't export anything in production<commit_after>var path = require('path');
var fs   = require('fs');

function EmberCLISimpleAuthTesting(project) {
  this.project = project;
  this.name    = 'Ember CLI Simple Auth Testing';
}

function unwatchedTree(dir) {
  return {
    read:    function() { return dir; },
    cleanup: function() { }
  };
}

EmberCLISimpleAuthTesting.prototype.treeFor = function included(name) {
  var treePath = path.join('node_modules/ember-cli-simple-auth-testing', name + '-addon');

  if (this.app.env !== 'production' && fs.existsSync(treePath)) {
    return unwatchedTree(treePath);
  }
};

EmberCLISimpleAuthTesting.prototype.included = function included(app) {
  this.app = app;

  if (this.app.env !== 'production') {
    this.app.import('vendor/ember-simple-auth/simple-auth-testing.amd.js', {
      exports: {
        'simple-auth-testing/test-helpers': ['default'],
        'simple-auth-testing/initializer':  ['default']
      }
    });
  }
};

module.exports = EmberCLISimpleAuthTesting
;

{'fraction_non_alphanumeric': 0.1527777777777778, 'fraction_numerical': 0.0, 'mean_word_length': 3.87468671679198, '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': '1575016', 'n_tokens_mistral': 646, 'n_tokens_neox': 628, 'n_words': 109}