<commit_before>var gulp = require('gulp');
var gutil = require('gulp-util');
var NwBuilder = require('node-webkit-builder');
var bower = require('bower');
var requirejsOptimize = require('gulp-requirejs-optimize');

gulp.task('copyindexhtml', function () {
    gulp.src('src/index.html')
        .pipe(gulp.dest('nwapp/'));
});

gulp.task('copypackagejson', function () {
    gulp.src('./package.json')
        .pipe(gulp.dest('nwapp/'));
});

gulp.task('installbowerdeps', function (done) {
    bower.commands.install([], {save: true}, {})
        .on('end', function(installed){
            done();
        });
});

gulp.task('copybowerdeps', ['installbowerdeps'], function () {
    gulp.src('./src/bower_components/**')
        .pipe(gulp.dest('nwapp/bower_components/'));
});

gulp.task('optimize', function () {
    return gulp.src('src/js/Application.js')
        .pipe(requirejsOptimize({
            name: 'Application'
        }))
        .pipe(gulp.dest('nwapp/js/'));
});

gulp.task('build', ['copyindexhtml', 'copypackagejson', 'copybowerdeps', 'optimize']);

gulp.task('nw', ['build'], function () {
    var nw = new NwBuilder({
        version: '0.12.2',
        files: './nwapp/**',
        platforms: ['win32', 'win64']
    });

    return nw.build().catch(function (err) {
        gutil.log('node-webkit-builder', err);
    });
});

gulp.task('default', ['nw']);<commit_msg>Fixed issue in gulpfile with missing returns<commit_after>var NWAPP_STAGE = "./nwapp/";

var gulp = require('gulp');
var gutil = require('gulp-util');
var NwBuilder = require('node-webkit-builder');
var bower = require('bower');
var requirejsOptimize = require('gulp-requirejs-optimize');

gulp.task('copyindexhtml', function () {
    return gulp.src('./src/index.html')
        .pipe(gulp.dest(NWAPP_STAGE));
});

gulp.task('copypackagejson', function () {
    return gulp.src('./package.json')
        .pipe(gulp.dest(NWAPP_STAGE));
});

gulp.task('installbowerdeps', function (done) {
    bower.commands.install([], {save: true}, {})
        .on('end', function (installed) {
            done();
        });
});

gulp.task('copybowerdeps', ['installbowerdeps'], function () {
    return gulp.src('./src/bower_components/**')
        .pipe(gulp.dest(NWAPP_STAGE + 'bower_components/'));
});

gulp.task('optimize', function () {
    return gulp.src('./src/js/Application.js')
        .pipe(requirejsOptimize({
            name: 'Application'
        }))
        .pipe(gulp.dest(NWAPP_STAGE + 'js/'));
});

gulp.task('build', ['copyindexhtml', 'copypackagejson', 'copybowerdeps', 'optimize']);

gulp.task('nw', ['build'], function () {
    var nw = new NwBuilder({
        version: '0.12.2',
        files: NWAPP_STAGE + '**',
        platforms: ['win32', 'win64']
    });

    return nw.build().catch(function (err) {
        gutil.log('node-webkit-builder', err);
    });
});

gulp.task('default', ['nw']);
{'fraction_non_alphanumeric': 0.21283201103828905, 'fraction_numerical': 0.005519144532597447, 'mean_word_length': 3.3609022556390977, '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': '5231656', 'n_tokens_mistral': 1033, 'n_tokens_neox': 992, 'n_words': 156}