<commit_before>/**
 * Copyright (c) 2015-present, goreutils
 * All rights reserved.
 *
 * This source code is licensed under the MIT-style license found in the
 * LICENSE file in the root directory of this source tree.
 */

"use strict";

var path = require("path"),
    FS = require("q-io/fs"),
    lint = require(path.join(__dirname, "/lint")),
    test = require(path.join(__dirname, "/test")),
    webpack = require(path.join(__dirname, "/webpack"));

function setup(options, pckgPromise, gulp, self) {
    gulp.task("default", [
        "test"
    ]);
    gulp.task("lint", self.lint(gulp));
    gulp.task("test", [
        "lint"
    ], self.test(gulp));
    gulp.task("webpack", [
        "webpack.full"
    ]);
    gulp.task("webpack.full", self.webpack.full());
    gulp.task("webpack.quick", self.webpack.quick());<commit_msg>close #7 (Add support for NODE_ENV)<commit_after>/**
 * Copyright (c) 2015-present, goreutils
 * All rights reserved.
 *
 * This source code is licensed under the MIT-style license found in the
 * LICENSE file in the root directory of this source tree.
 */

"use strict";

var path = require("path"),
    FS = require("q-io/fs"),
    lint = require(path.join(__dirname, "/lint")),
    test = require(path.join(__dirname, "/test")),
    webpack = require(path.join(__dirname, "/webpack"));

function setup(options, pckgPromise, gulp, self) {
    var defaultWebpackVariant;

    if ("production" === process.env.NODE_ENV) {
        defaultWebpackVariant = "webpack.full";
    } else {
        defaultWebpackVariant = "webpack.quick";
    }

    gulp.task("default", [
        "test"
    ]);
    gulp.task("lint", self.lint(gulp));
    gulp.task("test", [
        "lint"
    ], self.test(gulp));
    gulp.task("webpack", [
      defaultWebpackVariant
    ]);
    gulp.task("webpack.full", self.webpack.full());
    gulp.task("webpack.quick", self.webpack.quick());
{'fraction_non_alphanumeric': 0.16868740115972589, 'fraction_numerical': 0.004744333157617291, 'mean_word_length': 3.236607142857143, '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': '2179333', 'n_tokens_mistral': 615, 'n_tokens_neox': 597, 'n_words': 142}