<commit_before>'use strict';

var path = require('path');
var fs   = require('fs');

function EmberCLIAsyncButton(project) {
  this.project = project;
  this.name    = 'Ember CLI Async Button';
}

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

EmberCLIAsyncButton.prototype.treeFor = function treeFor(name) {
  var treePath =  path.join('node_modules', 'ember-cli-async-button', name);

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

EmberCLIAsyncButton.prototype.included = function included(app) {
  this.app = app;
};

module.exports = EmberCLIAsyncButton;<commit_msg>Fixes template loading for versions greater than 37<commit_after>'use strict';

var path = require('path');
var fs   = require('fs');

function EmberCLIAsyncButton(project) {
  this.project = project;
  this.name    = 'Ember CLI Async Button';
}

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

EmberCLIAsyncButton.prototype.treeFor = function treeFor(name) {
  var treePath = path.join('node_modules', 'ember-cli-async-button');

  if (name === 'templates') {
      treePath = path.join(treePath, 'app', name);
  } else {
      treePath = path.join(treePath, name);
  }

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

EmberCLIAsyncButton.prototype.included = function included(app) {
  this.app = app;
};

module.exports = EmberCLIAsyncButton;
{'fraction_non_alphanumeric': 0.14182058047493404, 'fraction_numerical': 0.0013192612137203166, 'mean_word_length': 4.107744107744108, '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': '6373968', 'n_tokens_mistral': 508, 'n_tokens_neox': 497, 'n_words': 106}