<commit_before>const path = require('path');
const chalk = require('chalk');
const util = require('util');
const Generator = require('yeoman-generator');
const yosay = require('yosay');
const mkdirp = require('mkdirp');
const foldername = path.basename(process.cwd());

module.exports = class extends Generator {
    initializing() {
        this.props = {};
    }
    prompting() {
        this.log(yosay(
            '~' + chalk.red('generator-phaser-h5') + '~'
        ));
        return this.prompt([{
                type: 'input',
                name: 'projectName',
                message: 'What\'s the name of your application',
                default: foldername
            },
            {
                type: 'input',
                name: 'projectDesc',
                message: 'What\'s the description of your application:'
            },
            {
                type: 'list',
                name: 'projectLicense',
                message: 'Please choose license:',
                choices: ['MIT', 'ISC', 'Apache-2.0', 'AGPL-3.0']
            },
            {
                type: 'confirm',
                name: 'projectSass',
                message: 'Do You Use Sass?',
                default: false
            }
        ]).then(answers => {
            this.projectName = answers.projectName ? answers.projectName : ' ';
            this.projectDesc = answers.projectDesc ? answers.projectDesc : ' ';
            this.projectLicense = answers.projectLicense || 'MIT';
            this.projectSass = answers.projectSass || false;
        });
    }
    configuring() {
        this.config.set('projectName', this.projectName);
        this.config.set('projectDesc', this.projectDesc);
        this.config.set('projectLicense', this.projectLicense);
    }
    writing() {
        this.fs.copyTpl(
            this.templatePath('src'),
            this.destinationPath('src'),
            this
        );
        mkdirp('src/assets/media');
        if (this.projectSass) {
            this.fs.copyTpl(
                this.templatePath('_package.json'),
                this.destinationPath('package.json'),
                this
            );
            this.fs.copy(
                this.templatePath('_gulpfile.js'),
                this.destinationPath('gulpfile.js'),
                this
            );
        } else {
            this.fs.copyTpl(
                this.templatePath('_package.json'),
                this.destinationPath('package.json'),
                this
            );
            this.fs.copy(
                this.templatePath('_gulpfile.js'),
                this.destinationPath('gulpfile.js'),<commit_msg>:bug: Fix bug<commit_after>const path = require('path');
const chalk = require('chalk');
const util = require('util');
const Generator = require('yeoman-generator');
const yosay = require('yosay');
const mkdirp = require('mkdirp');
const foldername = path.basename(process.cwd());

module.exports = class extends Generator {
    initializing() {
        this.props = {};
    }
    prompting() {
        this.log(yosay(
            '~' + chalk.red('generator-phaser-h5') + '~'
        ));
        return this.prompt([{
                type: 'input',
                name: 'projectName',
                message: 'What\'s the name of your application',
                default: foldername
            },
            {
                type: 'input',
                name: 'projectDesc',
                message: 'What\'s the description of your application:'
            },
            {
                type: 'list',
                name: 'projectLicense',
                message: 'Please choose license:',
                choices: ['MIT', 'ISC', 'Apache-2.0', 'AGPL-3.0']
            },
            {
                type: 'confirm',
                name: 'projectSass',
                message: 'Do You Use Sass?',
                default: false
            }
        ]).then(answers => {
            this.projectName = answers.projectName ? answers.projectName : ' ';
            this.projectDesc = answers.projectDesc ? answers.projectDesc : ' ';
            this.projectLicense = answers.projectLicense || 'MIT';
            this.projectSass = answers.projectSass || false;
        });
    }
    configuring() {
        this.config.set('projectName', this.projectName);
        this.config.set('projectDesc', this.projectDesc);
        this.config.set('projectLicense', this.projectLicense);
    }
    writing() {
        this.fs.copyTpl(
            this.templatePath('src'),
            this.destinationPath('src'),
            this
        );
        mkdirp('src/assets/media');
        if (this.projectSass) {
            this.fs.copyTpl(
                this.templatePath('_package_sass.json'),
                this.destinationPath('package.json'),
                this
            );
            this.fs.copy(
                this.templatePath('_gulpfile_sass.js'),
                this.destinationPath('gulpfile.js'),
                this
            );
        } else {
            this.fs.copyTpl(
                this.templatePath('_package.json'),
                this.destinationPath('package.json'),
                this
            );
            this.fs.copy(
                this.templatePath('_gulpfile.js'),
                this.destinationPath('gulpfile.js'),
{'fraction_non_alphanumeric': 0.13223757937990288, 'fraction_numerical': 0.0018677624206200972, 'mean_word_length': 1.510548523206751, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1515125', 'n_tokens_mistral': 1458, 'n_tokens_neox': 1391, 'n_words': 249}