<commit_before>'use strict';

var fs = require('fs');
var gulp = require('gulp');
var gutil = require('gulp-util');
// var bower = require('gulp-bower');
var run = require('gulp-run');

gulp.task('setup', function () {
    fs.mkdir('./public', function (err) {
        if (!err) {
            gutil.log('Creating application directories...');

            fs.mkdir('public/src', function (err) {
                fs.mkdir('public/src/config', function (err) {
                    fs.writeFile('public/src/config/routes.js', '// Write your angular routes config here');
                });

                fs.mkdir('public/src/controllers');
                fs.mkdir('public/src/directives');
                fs.mkdir('public/src/factories');
                fs.mkdir('public/src/filters');
                fs.mkdir('public/src/services');

                fs.writeFile('public/src/app.js', '// Write your main angular module here');
            });

            fs.mkdir('public/assets', function (err) {
                fs.mkdir('public/assets/css');
                fs.mkdir('public/assets/img');
                fs.mkdir('public/assets/js');
            });

            fs.mkdir('public/views', function (err) {
                fs.writeFile('public/views/index.html', '<!-- index.html -->');
            });
        }
    });
});
 
gulp.task('bower', function () {
    fs.stat('bower.json', function (err, stat) {
        if(err == null) {
            gutil.log('Installing dependencies...');
        } else {
            var bowerJsonText = "{\n\t\"name\": \"angular-setup\"\n}";

            fs.writeFile('bower.json', bowerJsonText, function (err) {
                if (err) throw err;
                gutil.log('Created', '\'' + gutil.colors.magenta('bower.json') + '\'');
                gutil.log('Installing dependencies...');
            });
        }
        
        run('bower install angular').exec()
            .pipe(run('bower install bootstrap'));
    });

    // return bower();
});

gulp.task('init', ['setup', 'bower']);<commit_msg>Changed location of index.html to public/<commit_after>'use strict';

var fs = require('fs');
var gulp = require('gulp');
var gutil = require('gulp-util');
// var bower = require('gulp-bower');
var run = require('gulp-run');

gulp.task('setup', function () {
    fs.mkdir('./public', function (err) {
        if (!err) {
            gutil.log('Creating application directories...');

            fs.mkdir('public/src', function (err) {
                fs.mkdir('public/src/config', function (err) {
                    fs.writeFile('public/src/config/routes.js', '// Write your angular routes config here');
                });

                fs.mkdir('public/src/controllers');
                fs.mkdir('public/src/directives');
                fs.mkdir('public/src/factories');
                fs.mkdir('public/src/filters');
                fs.mkdir('public/src/services');

                fs.writeFile('public/src/app.js', '// Write your main angular module here');
            });

            fs.mkdir('public/assets', function (err) {
                fs.mkdir('public/assets/css');
                fs.mkdir('public/assets/img');
                fs.mkdir('public/assets/js');
            });

            fs.writeFile('public/index.html', '<!-- index.html -->');
        }
    });
});
 
gulp.task('bower', function () {
    fs.stat('bower.json', function (err, stat) {
        if(err == null) {
            gutil.log('Installing dependencies...');
        } else {
            var bowerJsonText = "{\n\t\"name\": \"angular-setup\"\n}";

            fs.writeFile('bower.json', bowerJsonText, function (err) {
                if (err) throw err;
                gutil.log('Created', '\'' + gutil.colors.magenta('bower.json') + '\'');
                gutil.log('Installing dependencies...');
            });
        }
        
        run('bower install angular').exec()
            .pipe(run('bower install bootstrap'));
    });

    // return bower();
});

gulp.task('init', ['setup', 'bower']);
{'fraction_non_alphanumeric': 0.1865450961064564, 'fraction_numerical': 0.0, 'mean_word_length': 1.8109418282548477, 'pattern_counts': {'":': 2, '<': 5, '<?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': '6218091', 'n_tokens_mistral': 1221, 'n_tokens_neox': 1148, 'n_words': 203}