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

var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
var VersionChecker = require('ember-cli-version-checker');
var path = require('path');

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

  included(app) {

    this.addonConfig = this.app.project.config(app.env)['ember-scrollmagic'] || {};

    if (!isFastBoot()) {

      const vendor = this.treePaths.vendor;

      // Main modules
      app.import(vendor + '/scrollmagic/ScrollMagic.js');
      app.import(vendor + '/scrollmagic/plugins/animation.gsap.js');

      // Add indicators
      if (this.addonConfig.indicators) {
        app.import(vendor + '/scrollmagic/plugins/debug.addIndicators.js');
      }

      // Expose `import` via a shim
      app.import('vendor/scrollmagic-shim.js', {
        exports: {
          scrollmagic: ['default']
        }
      });

    }
<commit_msg>Fixes ScrollMagic import Fastboot error<commit_after>/* eslint node: true */
'use strict';

var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
var VersionChecker = require('ember-cli-version-checker');
var path = require('path');

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

  included(app) {

    this.addonConfig = this.app.project.config(app.env)['ember-scrollmagic'] || {};

    const vendor = this.treePaths.vendor;

    if (!isFastBoot()) {
      // Main modules
      app.import(vendor + '/scrollmagic/ScrollMagic.js');
      app.import(vendor + '/scrollmagic/plugins/animation.gsap.js');

      // Add indicators
      if (this.addonConfig.indicators) {
        app.import(vendor + '/scrollmagic/plugins/debug.addIndicators.js');
      }

    }

    // Expose `import` via a shim
    app.import('vendor/scrollmagic-shim.js', {
      exports: {
        scrollmagic: ['default']
      }
    });

{'fraction_non_alphanumeric': 0.15842636895268475, 'fraction_numerical': 0.0, 'mean_word_length': 2.970464135021097, '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': '5666944', 'n_tokens_mistral': 623, 'n_tokens_neox': 583, 'n_words': 104}