<commit_before>'use strict';

const Generator = require('yeoman-generator');
const _ = require('lodash');
const extend = _.merge;

module.exports = class extends Generator {
  writing() {
    // pkg
    const currentPkg = this.fs.readJSON(this.destinationPath('package.json'), {});
    const pkg = extend({
      scripts: {
        graphql: 'rm -rf ./lib/schemas && babel src/schemas --out-dir lib/schemas && build-graphql ./graphql.json'
      }
    }, currentPkg);
    this.fs.writeJSON(this.destinationPath('package.json'), pkg);

    // files
    this.fs.copy(
      this.templatePath('graphql.json'),
      this.destinationPath('graphql.json')
    );
  }

  install() {
    this.yarnInstall([
      'cat-graphql'
    ]);<commit_msg>Update index.js<commit_after>'use strict';

const Generator = require('yeoman-generator');
const _ = require('lodash');
const extend = _.merge;

module.exports = class extends Generator {
  writing() {
    // pkg
    const currentPkg = this.fs.readJSON(this.destinationPath('package.json'), {});
    const pkg = extend({
      scripts: {
        graphql: 'rm -rf ./lib && babel src --out-dir lib --ignore containers,middleware,public && build-graphql ./graphql.json'
      }
    }, currentPkg);
    this.fs.writeJSON(this.destinationPath('package.json'), pkg);

    // files
    this.fs.copy(
      this.templatePath('graphql.json'),
      this.destinationPath('graphql.json')
    );
  }

  install() {
    this.yarnInstall([
      'cat-graphql'
    ]);
{'fraction_non_alphanumeric': 0.16241610738255033, 'fraction_numerical': 0.0, 'mean_word_length': 2.9444444444444446, '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': '745366', 'n_tokens_mistral': 481, 'n_tokens_neox': 465, 'n_words': 89}