<commit_before>import { Base } from 'yeoman-generator'
// import { forEach } from 'lodash'
// import { join } from 'path'

export default class AppGenerator extends Base {

  //----------------------------------------
  // Initialise
  //----------------------------------------

  initializing() {
    this.log('AppGenerator.initializing')
  }

  //----------------------------------------
  // Prompt
  //----------------------------------------

  prompting() {
    this.log('AppGenerator.prompting')
    // return this.prompt([{
    //   name: 'name',
    //   message: 'Name:',
    //   default: this.appname
    // }, {
    //   name: 'description',
    //   message: 'Description:'
    // }, {
    //   name: 'keywords',
    //   message: 'Keywords:'
    // }, {
    //   type: 'confirm',
    //   name: 'private',
    //   message: 'Private:',
    //   default: false
    // }, {
    //   name: 'author',
    //   message: 'Author:',
    //   default: 'name <email>'
    //     .replace('name', this.user.git.name())
    //     .replace('email', this.user.git.email())
    // }, {
    //   name: 'url',
    //   message: 'Repository URL:',
    //   default: this.cacheRoot()
    // }]).then((answers) => {
    //   console.log(answers)
    //   this.config.set(answers)
    // })
  }

  //----------------------------------------
  // Configure
  //----------------------------------------

  configuring() {
    this.log('AppGenerator.configuring')
    // forEach([
    //   '.eslintrc',
    //   '.editorconfig'
    // ], (file) => {
    //   this.fs.copyTpl(
    //     join(rootDir, file),
    //     this.destinationPath(file),
    //     this.config.getAll())
    // })
  }

  //----------------------------------------
  // Write
  //----------------------------------------

  writing() {
    this.log('AppGenerator.writing')
    // this.fs.copyTpl(
    //   this.templatePath('**/*'),
    //   this.destinationPath(),
    //   this.config.getAll())
  }

  //----------------------------------------
  // Conflicts
  //----------------------------------------

  conflicts() {
    this.log('AppGenerator.conflicts')
  }

  //----------------------------------------
  // Install
  //----------------------------------------

  install() {
    this.log('AppGenerator.install')
  }

  //----------------------------------------
  // End
  //----------------------------------------

  end() {
    this.log('AppGenerator.end')
  }
}
<commit_msg>Refined app generator<commit_after>import { Base } from 'yeoman-generator'
// import gitRemoteOriginUrl from 'git-remote-origin-url'
// import { forEach } from 'lodash'
// import { join } from 'path'

export default class AppGenerator extends Base {

  //----------------------------------------
  // Initialise
  //----------------------------------------

  initializing() {
    this.log('AppGenerator.initializing')
    this.composeWith('supermind:linting')
  }

  //----------------------------------------
  // Prompt User
  //----------------------------------------

  prompting() {
    this.log('AppGenerator.prompting')
    // gitRemoteOriginUrl().then(url => this.log(url))
    // const { name, email } = this.user.git
    // return this.prompt([{
    //   name: 'name',
    //   message: 'Name:',
    //   default: this.appname
    // }, {
    //   name: 'description',
    //   message: 'Description:'
    // }, {
    //   name: 'keywords',
    //   message: 'Keywords:'
    // }, {
    //   type: 'confirm',
    //   name: 'private',
    //   message: 'Private:',
    //   default: false
    // }, {
    //   name: 'author',
    //   message: 'Author:',
    //   default: `${name()} <${email()}>`
    // }, {
    //   name: 'url',
    //   message: 'Repository URL:',
    //   default: this.cacheRoot()
    // }]).then((answers) => {
    //   console.log(answers)
    //   this.config.set(answers)
    // })
  }

  //----------------------------------------
  // Configure
  //----------------------------------------

  configuring() {
    this.log('AppGenerator.configuring')
    // forEach([
    //   '.eslintrc',
    //   '.editorconfig'
    // ], (file) => {
    //   this.fs.copyTpl(
    //     join(rootDir, file),
    //     this.destinationPath(file),
    //     this.config.getAll())
    // })
  }

  //----------------------------------------
  // Write Template Files
  //----------------------------------------

  writing() {
    this.log('AppGenerator.writing')
    // this.fs.copyTpl(
    //   this.templatePath('**/*'),
    //   this.destinationPath(),
    //   this.config.getAll())
  }

  //----------------------------------------
  // Manage Conflicts
  //----------------------------------------

  conflicts() {
    this.log('AppGenerator.conflicts')
  }

  //----------------------------------------
  // Install Dependencies
  //----------------------------------------

  install() {
    this.log('AppGenerator.install')
  }

  //----------------------------------------
  // End
  //----------------------------------------

  end() {
    this.log('AppGenerator.end')
  }
}

{'fraction_non_alphanumeric': 0.38268927444794953, 'fraction_numerical': 0.0, 'mean_word_length': 0.9586872586872587, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '7277885', 'n_tokens_mistral': 1446, 'n_tokens_neox': 1400, 'n_words': 208}