<commit_before>'use strict';

const path = require('path');
const fastbootTransform = require('fastboot-transform');
const Funnel = require('broccoli-funnel');

module.exports = {
  name: 'ember-cli-intl-tel-input',

  included: function(app) {
    this._super.included.apply(this, arguments);

    let config = app.options.intlTelInput;
    let assetPath = path.join('node_modules', 'intl-tel-input', 'build');
    let importOptions = {
      using: [{
        transformation: 'fastbootTransform'
      }]
    };

    if (config && true === config.includeUtilsScript) {
      app.import(path.join(assetPath, 'js', 'utils.js'), importOptions);
    }

    app.import({
      development: path.join(assetPath, 'js', 'intlTelInput.js'),
      production: path.join(assetPath, 'js', 'intlTelInput.js.min')
    }, importOptions);

    app.import(path.join(assetPath, 'css', 'intlTelInput.css'));
  },

  treeForPublic() {
    let intlTelInputImagePath = path.join(this.app.project.root, 'node_modules', 'intl-tel-input', 'build', 'img');
    let publicTree = new Funnel(intlTelInputImagePath, {
      include: ['*.png'],
      destDir: 'img'
    });
    return publicTree;
  },

  importTransforms: function () {
    return {
      fastbootTransform: fastbootTransform
    }
  },
};
<commit_msg>Fix error where intlTelInput was not defined<commit_after>'use strict';

const path = require('path');
const fastbootTransform = require('fastboot-transform');
const Funnel = require('broccoli-funnel');

module.exports = {
  name: 'ember-cli-intl-tel-input',

  included: function(app) {
    this._super.included.apply(this, arguments);

    let config = app.options.intlTelInput;
    let assetPath = path.join('node_modules', 'intl-tel-input', 'build');
    let importOptions = {
      using: [{
        transformation: 'fastbootTransform'
      }]
    };

    if (config && true === config.includeUtilsScript) {
      app.import(path.join(assetPath, 'js', 'utils.js'), importOptions);
    }

    app.import(path.join(assetPath, 'js', 'intlTelInput.js'), importOptions);
    app.import(path.join(assetPath, 'css', 'intlTelInput.css'));
  },

  treeForPublic() {
    let intlTelInputImagePath = path.join(this.app.project.root, 'node_modules', 'intl-tel-input', 'build', 'img');
    let publicTree = new Funnel(intlTelInputImagePath, {
      include: ['*.png'],
      destDir: 'img'
    });
    return publicTree;
  },

  importTransforms: function () {
    return {
      fastbootTransform: fastbootTransform
    }
  },
};

{'fraction_non_alphanumeric': 0.15910898965791567, 'fraction_numerical': 0.0, 'mean_word_length': 3.5894160583941606, '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': '6824264', 'n_tokens_mistral': 836, 'n_tokens_neox': 800, 'n_words': 150}