<commit_before>'use strict';

const IncrementalTypescriptCompiler = require('./lib/incremental-typescript-compiler');
const Funnel = require('broccoli-funnel');
const MergeTrees = require('broccoli-merge-trees');
const stew = require('broccoli-stew');
const path = require('path');

module.exports = {
  name: 'ember-cli-typescript',

  included(includer) {
    this._super.included.apply(this, arguments);

    this._checkDevelopment();

    if (includer === this.app) {
      this.compiler = new IncrementalTypescriptCompiler(this.app, this.project);
      this.compiler.launch();
    }
  },

  includedCommands() {
    // If we're a direct dependency of the app, we cheat and add our instance of the blueprints
    // addon to the project, as only top-level addons contribute blueprints. We need to be careful
    // with the timing of when we do this, as it has to happen after addon initialization is
    // complete, but before blueprint paths are resolved.
    // This won't be necessary in 2.x if we shift to adding the blueprints addon as a host
    // dependency on install.
    if (this.project.addons.includes(this)) {
      this.project.addons.splice(
        this.project.addons.indexOf(this) + 1,
        0,
        this.addons.find(addon => addon.name === 'ember-cli-typescript-blueprints'));
    }

    if (this.project.isEmberCLIAddon()) {
      return {
        'ts:precompile': require('./lib/commands/precompile'),
        'ts:clean': require('./lib/commands/clean'),
      };
    }
  },

  blueprintsPath() {
    return `${__dirname}/blueprints`;<commit_msg>blueprints go after ember-source<commit_after>'use strict';

const IncrementalTypescriptCompiler = require('./lib/incremental-typescript-compiler');
const Funnel = require('broccoli-funnel');
const MergeTrees = require('broccoli-merge-trees');
const stew = require('broccoli-stew');
const path = require('path');

module.exports = {
  name: 'ember-cli-typescript',

  included(includer) {
    this._super.included.apply(this, arguments);

    this._checkDevelopment();

    if (includer === this.app) {
      this.compiler = new IncrementalTypescriptCompiler(this.app, this.project);
      this.compiler.launch();
    }
  },

  includedCommands() {
    // If we're a direct dependency of the app, we cheat and add our instance of the blueprints
    // addon to the project, as only top-level addons contribute blueprints. We need to be careful
    // with the timing of when we do this, as it has to happen after addon initialization is
    // complete, but before blueprint paths are resolved.
    // This won't be necessary in 2.x if we shift to adding the blueprints addon as a host
    // dependency on install.
    if (this.project.addons.includes(this)) {
      this.project.addons.splice(
        this.project.addons.map(a => a.name).indexOf('ember-source') + 1,
        0,
        this.addons.find(addon => addon.name === 'ember-cli-typescript-blueprints'));
    }

    if (this.project.isEmberCLIAddon()) {
      return {
        'ts:precompile': require('./lib/commands/precompile'),
        'ts:clean': require('./lib/commands/clean'),
      };
    }
  },

  blueprintsPath() {
    return `${__dirname}/blueprints`;
{'fraction_non_alphanumeric': 0.1303805364940736, 'fraction_numerical': 0.0018714909544603868, 'mean_word_length': 3.242063492063492, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2582014', 'n_tokens_mistral': 982, 'n_tokens_neox': 936, 'n_words': 259}