<commit_before>var generators = require('yeoman-generator');

var AisGenerator = generators.Base.extend({

    prompting: function() {
        var done = this.async();

        this.prompt({
            type: 'input',
            name: 'name',
            message: 'Your project name',
            default: this.appname
        }, function(answers) {
            this.log(answers.name);
            done();
        }.bind(this));

    },

    projectfiles: function() {
        var layout = [
            'app/fonts',
            'app/images',
            'app/modules/api',
            'app/modules/components',
            'app/modules/pages',
            'app/modules/services',
            'app/scripts',
            'docs',
        ];

        var dir;
        for (var i in layout) {
            dir = layout[i];
            console.log('Creating directory: ' + dir);
            this.mkdir(dir);
        }

        // Process files
        this.template('_bower.json', 'bower.json');
        this.template('_gulpfile.js', 'gulpfile.js');
        this.template('_karma.conf.js', 'karma.conf.js');
        this.template('_package.json', 'package.json');

        // doesn't copy empty directories...
        this.directory('app');
    }

});

module.exports = AisGenerator;<commit_msg>add in the spec files<commit_after>var generators = require('yeoman-generator');

var AisGenerator = generators.Base.extend({

    prompting: function() {
        var done = this.async();

        this.prompt({
            type: 'input',
            name: 'name',
            message: 'Your project name',
            default: this.appname
        }, function(answers) {
            this.log(answers.name);
            done();
        }.bind(this));

    },

    projectfiles: function() {
        var layout = [
            'app/fonts',
            'app/images',
            'app/modules/api',
            'app/modules/components',
            'app/modules/pages',
            'app/modules/services',
            'app/scripts',
            'docs',
        ];

        var dir;
        for (var i in layout) {
            dir = layout[i];
            console.log('Creating directory: ' + dir);
            this.mkdir(dir);
        }

        // Process files
        this.template('_bower.json', 'bower.json');
        this.template('_gulpfile.js', 'gulpfile.js');
        this.template('_karma.conf.js', 'karma.conf.js');
        this.template('_package.json', 'package.json');

        // doesn't copy empty directories...
        this.directory('app');
        this.directory('spec');
    }

});

module.exports = AisGenerator;
{'fraction_non_alphanumeric': 0.14961832061068703, 'fraction_numerical': 0.0, 'mean_word_length': 1.6288866599799399, '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': '4703412', 'n_tokens_mistral': 767, 'n_tokens_neox': 729, 'n_words': 140}