<commit_before>/* jshint node: true */
'use strict';

var path = require('path');
var Funnel = require('broccoli-funnel');
var MergeTrees = require('broccoli-merge-trees');

module.exports = {
  name: 'ember-cli-js-cookie',

  included: function(app) {
    this._super.included.apply(this, arguments);
    this.import('vendor/js.cookie.js');
  },

  treeForVendor: function(vendorTree) {
    var momentTree = new Funnel(path.dirname(require.resolve('js-cookie')), {
      files: ['js.cookie.js'],
    });
    return new MergeTrees([vendorTree, momentTree]);
  }
};<commit_msg>only merge tree present in treeForVendor<commit_after>/* jshint node: true */
'use strict';

var path = require('path');
var Funnel = require('broccoli-funnel');
var MergeTrees = require('broccoli-merge-trees');

module.exports = {
  name: 'ember-cli-js-cookie',

  included: function(app) {
    this._super.included.apply(this, arguments);
    this.import('vendor/js.cookie.js');
  },

  treeForVendor: function(vendorTree) {
    var momentTree = new Funnel(path.dirname(require.resolve('js-cookie')), {
      files: ['js.cookie.js'],
    });
    return vendorTree ? new MergeTrees([vendorTree, momentTree]) : momentTree;
  }
};
{'fraction_non_alphanumeric': 0.16929460580912864, 'fraction_numerical': 0.0, 'mean_word_length': 4.2894736842105265, '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': '1575073', 'n_tokens_mistral': 408, 'n_tokens_neox': 395, 'n_words': 77}