<commit_before>var RSVP = require('rsvp');
var VersionChecker = require('ember-cli-version-checker');

module.exports = {

  name: 'ember-gestures',

  normalizeEntityName: function() {},

  afterInstall: function() {
    var bowerPackages = [
      { name: 'hammer.js', target: '2.0.6' }
    ];
    var addonPackages = [
      {name: 'ember-hammertime', target: '1.0.0'}
    ];

    var checker = new VersionChecker(this);
    if (checker.for('ember', 'bower').satisfies('>= 2.3')) {
      addonPackages.push({name: 'ember-getowner-polyfill', target: '^1.0.0'});
    }

    return RSVP.all([
      this.addBowerPackagesToProject(bowerPackages),
      this.addAddonsToProject({ packages: addonPackages })
    ]);
  }

};<commit_msg>This fixes/works concurrent bower installs<commit_after>var RSVP = require('rsvp');
var VersionChecker = require('ember-cli-version-checker');

module.exports = {

  name: 'ember-gestures',

  normalizeEntityName: function() {},

  afterInstall: function() {
    var addon = this;
    var bowerPackages = [
      { name: 'hammer.js', target: '2.0.6' }
    ];
    var addonPackages = [
      {name: 'ember-hammertime', target: '1.0.0'}
    ];

    var checker = new VersionChecker(this);
    if (checker.for('ember', 'bower').satisfies('>= 2.3')) {
      addonPackages.push({name: 'ember-getowner-polyfill', target: '^1.0.0'});
    }

    return addon.addBowerPackagesToProject(bowerPackages).then(function() {
      return addon.addAddonsToProject({ packages: addonPackages });
    });
  }
};
{'fraction_non_alphanumeric': 0.1725721784776903, 'fraction_numerical': 0.014435695538057743, 'mean_word_length': 3.485294117647059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3726572', 'n_tokens_mistral': 546, 'n_tokens_neox': 532, 'n_words': 93}