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

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

module.exports = {
  name: 'ember-datetimepicker',

  treeForVendor: function(tree) {
    var pathInNodeModules = path.resolve(path.dirname(resolve.sync('jquery-datetimepicker')), '..');

    var newTree = new Funnel(pathInNodeModules, {
      files: [
        'jquery.datetimepicker.css',
        'build/jquery.datetimepicker.full.js'
      ],
      destDir: 'jquery-datetimepicker'
    });

    return mergeTrees([newTree, tree]);
  },

  included: function(app) {
    this._super.included(app);

    app.import('vendor/jquery-datetimepicker/jquery.datetimepicker.css');
    app.import('vendor/jquery-datetimepicker/build/jquery.datetimepicker.full.js');
  }
};
<commit_msg>conditional mergeTrees<commit_after>/* jshint node: true */
'use strict';

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

module.exports = {
  name: 'ember-datetimepicker',

  treeForVendor: function(tree) {
    var pathInNodeModules = path.resolve(path.dirname(resolve.sync('jquery-datetimepicker')), '..');

    var newTree = new Funnel(pathInNodeModules, {
      files: [
        'jquery.datetimepicker.css',
        'build/jquery.datetimepicker.full.js'
      ],
      destDir: 'jquery-datetimepicker'
    });

    if (tree) {
      newTree = mergeTrees([tree, newTree]);
    }

    return newTree;
  },

  included: function(app) {
    this._super.included(app);

    app.import('vendor/jquery-datetimepicker/jquery.datetimepicker.css');
    app.import('vendor/jquery-datetimepicker/build/jquery.datetimepicker.full.js');
  }
};

{'fraction_non_alphanumeric': 0.15561643835616437, 'fraction_numerical': 0.0, 'mean_word_length': 3.8306878306878307, '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': '5333419', 'n_tokens_mistral': 582, 'n_tokens_neox': 565, 'n_words': 91}