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

module.exports = {
  name: 'ember-cli-deprecation-workflow',
  included: function() {
    // From https://github.com/rwjblue/ember-debug-handlers-polyfill/blob/master/index.js
    var app = this.app;

    if (app.env !== 'production') {
      app.import('vendor/ember-debug-handlers-polyfill/debug.js');
    } else {
      app.import('vendor/ember-debug-handlers-polyfill/prod.js');
    }

    // FIXME: This should be excluded in production
    app.import('vendor/ember-cli-deprecation-workflow/main.js');
  },
  contentFor: function(type) {
    if (type === 'app-prefix') {
      // FIXME: This should be excluded in production
      var fs = require('fs');
      var path = require('path');
      var existsSync = require('exists-sync');
      var root, configPath;
      if (process.env.USE_DUMMY_CONFIG) {
        // Ensures tests can find the dummy app config directory
        root = this.app.options.configPath;
        configPath = path.join(root, '..', 'deprecation-workflow.js');
      } else {
        root = this.project.root;
        configPath = path.join(root, 'config', 'deprecation-workflow.js');
      }
      if (existsSync(configPath)) {
        return fs.readFileSync(configPath);
      }
    }
  }
};<commit_msg>Ensure `deprecationManager.config` is present as early as possible.<commit_after>/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-cli-deprecation-workflow',
  included: function() {
    // From https://github.com/rwjblue/ember-debug-handlers-polyfill/blob/master/index.js
    var app = this.app;

    if (app.env !== 'production') {
      app.import('vendor/ember-debug-handlers-polyfill/debug.js');
    } else {
      app.import('vendor/ember-debug-handlers-polyfill/prod.js');
    }

    // FIXME: This should be excluded in production
    app.import('vendor/ember-cli-deprecation-workflow/main.js');
  },
  contentFor: function(type) {
    if (type === 'vendor-prefix') {
      // FIXME: This should be excluded in production
      var fs = require('fs');
      var path = require('path');
      var existsSync = require('exists-sync');
      var root, configPath;
      if (process.env.USE_DUMMY_CONFIG) {
        // Ensures tests can find the dummy app config directory
        root = this.app.options.configPath;
        configPath = path.join(root, '..', 'deprecation-workflow.js');
      } else {
        root = this.project.root;
        configPath = path.join(root, 'config', 'deprecation-workflow.js');
      }
      if (existsSync(configPath)) {
        return fs.readFileSync(configPath);
      }
    }
  }
};
{'fraction_non_alphanumeric': 0.14876660341555978, 'fraction_numerical': 0.0, 'mean_word_length': 2.702247191011236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4948254', 'n_tokens_mistral': 834, 'n_tokens_neox': 832, 'n_words': 169}