<commit_before>// =============================================
// CSS `gulp css`
// compiles scss to css, autoprefixer, combines media queries and minifies if `--production`
// =============================================

module.exports = function (gulp, nodeModule, path, option, environment) {
    return function () {
        gulp.src(path.styles.source)
        .pipe(nodeModule.plumber())
        .pipe(nodeModule.clipEmptyFiles())
        .pipe(environment.dev ? nodeModule.sourcemaps.init() : nodeModule.util.noop())
        .pipe(nodeModule.sass.sync().on('error', nodeModule.sass.logError))
        .pipe(nodeModule.autoPrefixer(option.autoprefixer))
        .pipe(environment.production ? nodeModule.combineMq() : nodeModule.util.noop())
        .pipe(environment.production ? nodeModule.cssNano() : nodeModule.util.noop())
        .pipe(environment.dev ? nodeModule.sourcemaps.write() : nodeModule.util.noop())
        .pipe(nodeModule.plumber.stop())
        .pipe(gulp.dest(path.styles.build))
        .pipe(environment.dev ? nodeModule.browserSync.reload({stream: true}) : nodeModule.util.noop());
    };
};<commit_msg>fixed gulpfile to HARD FAIL if error when running in production mode<commit_after>// =============================================
// CSS `gulp css`
// compiles scss to css, autoprefixer, combines media queries and minifies if `--production`
// =============================================

module.exports = function (gulp, nodeModule, path, option, environment) {
    return function () {
        gulp.src(path.styles.source)
        .pipe(environment.dev ? nodeModule.plumber() : nodeModule.util.noop())
        .pipe(nodeModule.clipEmptyFiles())
        .pipe(environment.dev ? nodeModule.sourcemaps.init() : nodeModule.util.noop())
        .pipe(!environment.production ? nodeModule.sass.sync().on('error', nodeModule.sass.logError) : nodeModule.util.noop())
        .pipe(environment.production ? nodeModule.sass.sync() : nodeModule.util.noop())
        .pipe(nodeModule.autoPrefixer(option.autoprefixer))
        .pipe(environment.production ? nodeModule.combineMq() : nodeModule.util.noop())
        .pipe(environment.production ? nodeModule.cssNano() : nodeModule.util.noop())
        .pipe(environment.dev ? nodeModule.sourcemaps.write() : nodeModule.util.noop())
        .pipe(nodeModule.plumber.stop())
        .pipe(gulp.dest(path.styles.build))
        .pipe(environment.dev ? nodeModule.browserSync.reload({stream: true}) : nodeModule.util.noop());
    };
};
{'fraction_non_alphanumeric': 0.21163810282981269, 'fraction_numerical': 0.0, 'mean_word_length': 3.8549323017408126, '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': '3051333', 'n_tokens_mistral': 724, 'n_tokens_neox': 707, 'n_words': 116}