<commit_before>/* globals require: true */

var gulp = require("gulp"),
    concat = require("gulp-concat"),
    uglify = require("gulp-uglify"),
    rename = require("gulp-rename"),
    jshint = require("gulp-jshint"),
    sequence = require("run-sequence");

var paths = {
    // TODO - organize by feature, not type
    src: "static/js/",
    controllers: "static/js/controllers/",
    modules: "static/js/modules/",
    build: "static/js/"
};

// files to be concatted/minified to make
// controlplane.js
var controlplaneFiles = [
    paths.src + "main.js",
    paths.modules + "miscUtils.js",

    // modules
    // TODO - organize by feature, not type!
    paths.modules + "graphPanelDirective.js",
    paths.modules + "healthIconDirective.js",
    paths.modules + "modalService.js",
    paths.modules + "resourcesFactory.js",
    paths.modules + "serviceHealth.js",
    paths.modules + "servicesFactory.js",
    paths.modules + "uiDateTimePicker.js",
    paths.modules + "zenNotify.js",
    paths.modules + "authService.js",
    paths.modules + "miscDirectives.js",

    // general controllers
    // TODO - Language shouldn't be a controller... it
    // should probably be a provider
    paths.controllers + "LanguageController.js",
    paths.controllers + "NavbarController.js",

    // specific route controllers
    paths.controllers + "BackupRestoreController.js",

    paths.controllers + "HostsController.js",
    paths.controllers + "HostDetailsController.js",
    paths.controllers + "HostsMapController.js",

    paths.controllers + "LogController.js",

    paths.controllers + "LoginController.js",

    paths.controllers + "PoolsController.js",
    paths.controllers + "PoolDetailsController.js",

    paths.controllers + "AppsController.js",
    paths.controllers + "DeployWizard.js",
    paths.controllers + "ServicesMapController.js",
    paths.controllers + "ServiceDetailsController.js"
];

gulp.task("default", ["concat"]);
gulp.task("release", function(){
    // last arg is a callback function in case
    // of an error.
    sequence("lint", "concat", "uglify", function(){});
});

gulp.task("concat", function(){
    return gulp.src(controlplaneFiles)
        .pipe(concat("controlplane.js"))
        .pipe(gulp.dest(paths.build));
});

gulp.task("uglify", function(){
    return gulp.src(paths.build + "controlplane.js")
        .pipe(uglify())
        .pipe(rename(paths.build + "controlplane.min.js"))
        .pipe(gulp.dest("./"));
});

gulp.task("watch", function(){
    gulp.watch(paths.controllers + "/*", ["concat"]);
    gulp.watch(paths.modules + "/*", ["concat"]);
    gulp.watch(paths.src + "/main.js", ["concat"]);
});

gulp.task("test", function(){
    // TODO - unit tests
    // TODO - functional tests
});

gulp.task("lint", function(){
    return gulp.src(controlplaneFiles)
        .pipe(jshint())
        .pipe(jshint.reporter("jshint-stylish"))
        .pipe(jshint.reporter("fail"));
});

<commit_msg>be less explicit with gulpfile list<commit_after>/* globals require: true */

var gulp = require("gulp"),
    concat = require("gulp-concat"),
    uglify = require("gulp-uglify"),
    rename = require("gulp-rename"),
    jshint = require("gulp-jshint"),
    sequence = require("run-sequence");

var paths = {
    // TODO - organize by feature, not type
    src: "static/js/",
    controllers: "static/js/controllers/",
    modules: "static/js/modules/",
    build: "static/js/"
};

// files to be concatted/minified to make
// controlplane.js
var controlplaneFiles = [
    paths.src + "main.js",
    paths.modules + "*.js",
    paths.controllers + "*.js"
];

gulp.task("default", ["concat"]);
gulp.task("release", function(){
    // last arg is a callback function in case
    // of an error.
    sequence("lint", "concat", "uglify", function(){});
});

gulp.task("concat", function(){
    return gulp.src(controlplaneFiles)
        .pipe(concat("controlplane.js"))
        .pipe(gulp.dest(paths.build));
});

gulp.task("uglify", function(){
    return gulp.src(paths.build + "controlplane.js")
        .pipe(uglify())
        .pipe(rename(paths.build + "controlplane.min.js"))
        .pipe(gulp.dest("./"));
});

gulp.task("watch", function(){
    gulp.watch(paths.controllers + "/*", ["concat"]);
    gulp.watch(paths.modules + "/*", ["concat"]);
    gulp.watch(paths.src + "/main.js", ["concat"]);
});

gulp.task("test", function(){
    // TODO - unit tests
    // TODO - functional tests
});

gulp.task("lint", function(){
    return gulp.src(controlplaneFiles)
        .pipe(jshint())
        .pipe(jshint.reporter("jshint-stylish"))
        .pipe(jshint.reporter("fail"));
});


{'fraction_non_alphanumeric': 0.18021125242509162, 'fraction_numerical': 0.0, 'mean_word_length': 3.2413162705667276, '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': '5474925', 'n_tokens_mistral': 1510, 'n_tokens_neox': 1500, 'n_words': 287}