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

var VersionChecker = require('ember-cli-version-checker');
var hasBeenWarned = false;

module.exports = {
  name: 'ember-factory-for-polyfill',
  included: function() {
    this._ensureThisImport();

    var checker = new VersionChecker(this);
    var emberVersion = checker.forEmber();

    if (emberVersion.lt('2.12.0-beta.1')) {
      this.import('vendor/ember-factory-for-polyfill/index.js');
    } else if (this.parent === this.project && !hasBeenWarned){
      console.warn('ember-factory-for-polyfill is not required for Ember 2.12.0 and later, please remove from your `package.json`.');
      hasBeenWarned = true;
    }
  },

  _ensureThisImport: function() {
    if (!this.import) {<commit_msg>Use `ui.writeWarnLine` instead of `console.warn`.<commit_after>/* jshint node: true */
'use strict';

var VersionChecker = require('ember-cli-version-checker');
var hasBeenWarned = false;

module.exports = {
  name: 'ember-factory-for-polyfill',
  included: function() {
    this._ensureThisImport();

    var checker = new VersionChecker(this);
    var emberVersion = checker.forEmber();

    if (emberVersion.lt('2.12.0-beta.1')) {
      this.import('vendor/ember-factory-for-polyfill/index.js');
    } else if (this.parent === this.project && !hasBeenWarned){
      this.ui.writeWarnLine('ember-factory-for-polyfill is not required for Ember 2.12.0 and later, please remove from your `package.json`.');
      hasBeenWarned = true;
    }
  },

  _ensureThisImport: function() {
    if (!this.import) {
{'fraction_non_alphanumeric': 0.15246636771300448, 'fraction_numerical': 0.011531069827033953, 'mean_word_length': 3.690690690690691, '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': '6210591', 'n_tokens_mistral': 515, 'n_tokens_neox': 516, 'n_words': 110}