<commit_before>
// *    Gulpfile
// * ---------------------
// * This file contains the gulp build-process.
// * ---------------------

// *   Core
// * ---------------------

// * Require gulp modules

var gulp          = require("gulp"),
    concat        = require("gulp-concat"),
    cssmin        = require("gulp-minify-css"),
    imagemin      = require("gulp-imagemin"),
    jshint        = require("gulp-jshint"),
    plumber       = require("gulp-plumber"),
    prefix        = require("gulp-autoprefixer"),
    rename        = require("gulp-rename"),
    sass          = require("gulp-ruby-sass"),
    uglify        = require("gulp-uglify"),
    livereload    = require("gulp-livereload"),
    server        = livereload();

// * Cache watch & source paths

// * .js
var jsSrcPath     = [
    // * Polyfills first
    "js/app/globals/polyfills/**/*.js",
    // * Declare source-order for modules depending upon each other - this spares us requirejs
    "js/app/globals/eventie.js",
    "js/app/globals/doc-ready.js",
    // * Source-order indpt. rest of globals
    "js/app/globals/**/*.js",
    // * Modules
    "js/app/modules/**/*.js",
    "js/app/main.js"
  ],
    jsWatchPath   = "js/app/**",
// * .scss
    sassSrcPath   = "css/build.scss",
    sassWatchPath = "css/**/*.scss",
// * img
    imgSrcPath    = "img/src/**",
    imgDestPath   = "img/dist",
// * livereload watch
    lrPath        = ["css/dist/global.css", "test/css/**.css", "**/**/*.html", "js/dist/global.js"];


// *    Gulp tasks
// * ---------------------

// js
// * 1. concat
// * --> write out
// * 2. uglify
// * 3. rename
// * --> write out
// * ---------------------

gulp.task("scripts", function(){
  gulp.src(jsSrcPath)
    .pipe(concat("global.js"))
    .pipe(gulp.dest("js/dist"))
    .pipe(uglify())
    .pipe(rename("global.min.js"))
    .pipe(gulp.dest("js/dist"));
});

// * jshint
// * 1. jshint with default params
// * ---------------------

gulp.task("jshint", function(){
  gulp.src(jsSrcPath)
    .pipe(jshint())
    .pipe(jshint.reporter('default'));
});


// * scss
// * 1. handle errors
// * 2. sass
// * 3. prefix
// * --> write out
// * 4. minify
// * --> write out
// * ---------------------

gulp.task("sass", function () {
  gulp.src(sassSrcPath)
    .pipe(plumber())
    .pipe(sass({noCache:true}))
    .pipe(rename("global.css"))
    .pipe(prefix("last 1 version", "Explorer >=10 Chrome >=30 iOS >=7 Safari >=6.1 Firefox >= 24 Opera >=12.1 Android >=4.4"))
    .pipe(gulp.dest("css/dist"))
    .pipe(cssmin())
    .pipe(rename("global.min.css"))
    .pipe(gulp.dest("css/dist"));
});

// * debug scss
// * A debug build that will spawn unprefixed, prefixed and prefixed & minified files.
// * 1. handle errors
// * 2. sass
// * --> write out
// * 3. prefix
// * --> write out
// * 4. minify
// * --> write out
// * ---------------------

gulp.task("debug-sass", function () {
  gulp.src(sassSrcPath)
    .pipe(plumber())
    .pipe(sass({noCache:true}))
    .pipe(rename("global.css"))
    .pipe(gulp.dest("css/dist/debug/unprefixed"))
    .pipe(prefix("last 1 version", "Explorer >=10 Chrome >=30 iOS >=7 Safari >=6.1 Firefox >= 24 Opera >=12.1 Android >=4.4"))
    .pipe(gulp.dest("css/dist/debug/prefixed"))
    .pipe(cssmin())
    .pipe(rename("global.min.css"))
    .pipe(gulp.dest("css/dist/debug/prefixed"));
});

// * test scss
// * Spawns a css in test/css
// * 1. handle errors
// * 2. sass
// * 3. prefix
// * --> write out
// * ---------------------

gulp.task("test-sass", function () {
  gulp.src(sassSrcPath)
    .pipe(plumber())
    .pipe(sass({noCache:true}))
    .pipe(rename("global.css"))
    .pipe(prefix("last 1 version", "Explorer >=10 Chrome >=30 iOS >=7 Safari >=6.1 Firefox >= 24 Opera >=12.1 Android >=4.4"))
    .pipe(rename("global.css"))
    .pipe(gulp.dest("test/css"));
});<commit_msg>Shut the fuck up, plumber!<commit_after>
// *    Gulpfile
// * ---------------------
// * This file contains the gulp build-process.
// * ---------------------

// *   Core
// * ---------------------

// * Require gulp modules

var gulp          = require("gulp"),
    concat        = require("gulp-concat"),
    cssmin        = require("gulp-minify-css"),
    imagemin      = require("gulp-imagemin"),
    jshint        = require("gulp-jshint"),
    plumber       = require("gulp-plumber"),
    prefix        = require("gulp-autoprefixer"),
    rename        = require("gulp-rename"),
    sass          = require("gulp-ruby-sass"),
    uglify        = require("gulp-uglify"),
    livereload    = require("gulp-livereload"),
    server        = livereload();

// * Cache watch & source paths

// * .js
var jsSrcPath     = [
    // * Polyfills first
    "js/app/globals/polyfills/**/*.js",
    // * Declare source-order for modules depending upon each other - this spares us requirejs
    "js/app/globals/eventie.js",
    "js/app/globals/doc-ready.js",
    // * Source-order indpt. rest of globals
    "js/app/globals/**/*.js",
    // * Modules
    "js/app/modules/**/*.js",
    "js/app/main.js"
  ],
    jsWatchPath   = "js/app/**",
// * .scss
    sassSrcPath   = "css/build.scss",
    sassWatchPath = "css/**/*.scss",
// * img
    imgSrcPath    = "img/src/**",
    imgDestPath   = "img/dist",
// * livereload watch
    lrPath        = ["css/dist/global.css", "test/css/**.css", "**/**/*.html", "js/dist/global.js"];


// *    Gulp tasks
// * ---------------------

// js
// * 1. concat
// * --> write out
// * 2. uglify
// * 3. rename
// * --> write out
// * ---------------------

gulp.task("scripts", function(){
  gulp.src(jsSrcPath)
    .pipe(concat("global.js"))
    .pipe(gulp.dest("js/dist"))
    .pipe(uglify())
    .pipe(rename("global.min.js"))
    .pipe(gulp.dest("js/dist"));
});

// * jshint
// * 1. jshint with default params
// * ---------------------

gulp.task("jshint", function(){
  gulp.src(jsSrcPath)
    .pipe(jshint())
    .pipe(jshint.reporter('default'));
});


// * scss
// * 1. handle errors
// * 2. sass
// * 3. prefix
// * --> write out
// * 4. minify
// * --> write out
// * ---------------------

gulp.task("sass", function () {
  gulp.src(sassSrcPath)
    .pipe(plumber({errorHandler: function(){console.log("Exiting")}}))
    .pipe(sass({noCache:true}))
    .pipe(rename("global.css"))
    .pipe(prefix("last 1 version", "Explorer >=10 Chrome >=30 iOS >=7 Safari >=6.1 Firefox >= 24 Opera >=12.1 Android >=4.4"))
    .pipe(gulp.dest("css/dist"))
    .pipe(cssmin())
    .pipe(rename("global.min.css"))
    .pipe(gulp.dest("css/dist"));
});

// * debug scss
// * A debug build that will spawn unprefixed, prefixed and prefixed & minified files.
// * 1. handle errors
// * 2. sass
// * --> write out
// * 3. prefix
// * --> write out
// * 4. minify
// * --> write out
// * ---------------------

gulp.task("debug-sass", function () {
  gulp.src(sassSrcPath)
    .pipe(plumber({errorHandler: function(){console.log("Exiting")}}))
    .pipe(sass({noCache:true}))
    .pipe(rename("global.css"))
    .pipe(gulp.dest("css/dist/debug/unprefixed"))
    .pipe(prefix("last 1 version", "Explorer >=10 Chrome >=30 iOS >=7 Safari >=6.1 Firefox >= 24 Opera >=12.1 Android >=4.4"))
    .pipe(gulp.dest("css/dist/debug/prefixed"))
    .pipe(cssmin())
    .pipe(rename("global.min.css"))
    .pipe(gulp.dest("css/dist/debug/prefixed"));
});

// * test scss
// * Spawns a css in test/css
// * 1. handle errors
// * 2. sass
// * 3. prefix
// * --> write out
// * ---------------------

gulp.task("test-sass", function () {
  gulp.src(sassSrcPath)
    .pipe(plumber({errorHandler: function(){console.log("Exiting")}}))
    .pipe(sass({noCache:true}))
    .pipe(rename("global.css"))
    .pipe(prefix("last 1 version", "Explorer >=10 Chrome >=30 iOS >=7 Safari >=6.1 Firefox >= 24 Opera >=12.1 Android >=4.4"))
    .pipe(rename("global.css"))
    .pipe(gulp.dest("test/css"));
});
{'fraction_non_alphanumeric': 0.25610223642172525, 'fraction_numerical': 0.015335463258785943, 'mean_word_length': 2.070223617104747, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 61, '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': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6361536', 'n_tokens_mistral': 2861, 'n_tokens_neox': 2763, 'n_words': 527}