<commit_before>var gulp = require('gulp');
var gui = require('nw.gui');

var win = gui.Window.get();

gulp.task('reload', function () {
    if (location) location.reload();
});

gulp.watch('**/*', ['reload']);

win.show();<commit_msg>AutoLaunch packaged app on startup<commit_after>var gulp = require('gulp');
var gui = require('nw.gui');
var AutoLaunch = require('auto-launch');

/* Auto launch packaged app on startup */
var appLauncher = new AutoLaunch({
    name: 'GoldFish'
});

appLauncher.isEnabled(function(enabled){
    if(enabled) return;
    appLauncher.enable(function(err){
        // log error somewhere?
    });
});

/* Get window instance, and show */
var win = gui.Window.get();
win.show();

/* Livereload app during development */
gulp.task('reload', function () {
    if (location) location.reload();
});

gulp.watch('**/*', ['reload']);
{'fraction_non_alphanumeric': 0.19509345794392524, 'fraction_numerical': 0.0, 'mean_word_length': 4.35625, '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': '6093230', 'n_tokens_mistral': 281, 'n_tokens_neox': 273, 'n_words': 68}