<commit_before>var gulp = require("gulp");
var webserver = require("gulp-webserver");
var mochaPhantomJS = require("gulp-mocha-phantomjs");
var browserify = require("browserify");
var source = require("vinyl-source-stream");
var jshint = require("gulp-jshint");
var stylish = require("jshint-stylish");
var header = require('gulp-header');
var pkg = require('./package.json');


var date = new Date();
var today = date.toDateString() + " " + date.toLocaleTimeString();
var banner = "/*! <%= pkg.name %> v<%= pkg.version %> - " + today + ". (c) " + date.getFullYear() + " <NAME>. Licensed under MIT */\n";


gulp.task("test", ["build-debug"], function() {
  return gulp.src("test/SpecRunner.html")
    .pipe(mochaPhantomJS({
      reporter: 'tap',
      mocha: {
        grep: 'pattern'
      },
      phantomjs: {
        viewportSize: {
          width: 1024,
          height: 768
        }
      }
    }));
});


gulp.task("serve", ["build-release", "build-debug"], function() {
  gulp.src(".")
    .pipe(webserver({
      livereload: true,
      open: "test/SpecRunner.html"
    }));

  gulp.watch(["src/**/*.js", "test/**/*.js"], ["build"]);
});


gulp.task("build-release", ["jshint"], function() {
  return browserify({
      debug: true, // Add source maps to output to allow minifyify convert them to minified source maps
      standalone: "amdresolver",
      detectGlobals: false,
    })
    .plugin("minifyify", {
      map: "dist/amd-resolver.min.js.map",
      output: "dist/amd-resolver.min.js.map"
    })
    .ignore("process")
    .add("./src/resolver.js")
    .bundle()
    .pipe(source("amd-resolver.min.js"))
    .pipe(header(banner, {pkg: pkg}))
    .pipe(gulp.dest("dist"));
});


gulp.task("build-debug", ["jshint"], function() {
  return browserify("./src/resolver.js", {
      standalone: "amdresolver",
      detectGlobals: false
    })
    .ignore("process")
    .bundle()
    .pipe(source("amd-resolver.js"))
    .pipe(header(banner, {pkg: pkg}))
    .pipe(gulp.dest("dist"));
});


gulp.task("build-debug-watch", function() {
  gulp.watch("src/**/*.js", ["build-debug"]);
});


gulp.task("jshint", function() {
  return gulp.src(["src/**/*.js", "test/**/*.js", "gulpfile.js"])
    .pipe(jshint())
    .pipe(jshint.reporter(stylish))
    .pipe(jshint.reporter("fail"));
});


gulp.task("build", ["jshint", "build-release", "build-debug"]);
<commit_msg>Fixed dangling coma in gulpfile.js<commit_after>var gulp = require("gulp");
var webserver = require("gulp-webserver");
var mochaPhantomJS = require("gulp-mocha-phantomjs");
var browserify = require("browserify");
var source = require("vinyl-source-stream");
var jshint = require("gulp-jshint");
var stylish = require("jshint-stylish");
var header = require('gulp-header');
var pkg = require('./package.json');


var date = new Date();
var today = date.toDateString() + " " + date.toLocaleTimeString();
var banner = "/*! <%= pkg.name %> v<%= pkg.version %> - " + today + ". (c) " + date.getFullYear() + " <NAME>. Licensed under MIT */\n";


gulp.task("test", ["build-debug"], function() {
  return gulp.src("test/SpecRunner.html")
    .pipe(mochaPhantomJS({
      reporter: 'tap',
      mocha: {
        grep: 'pattern'
      },
      phantomjs: {
        viewportSize: {
          width: 1024,
          height: 768
        }
      }
    }));
});


gulp.task("serve", ["build-release", "build-debug"], function() {
  gulp.src(".")
    .pipe(webserver({
      livereload: true,
      open: "test/SpecRunner.html"
    }));

  gulp.watch(["src/**/*.js", "test/**/*.js"], ["build"]);
});


gulp.task("build-release", ["jshint"], function() {
  return browserify({
      debug: true, // Add source maps to output to allow minifyify convert them to minified source maps
      standalone: "amdresolver",
      detectGlobals: false
    })
    .plugin("minifyify", {
      map: "dist/amd-resolver.min.js.map",
      output: "dist/amd-resolver.min.js.map"
    })
    .ignore("process")
    .add("./src/resolver.js")
    .bundle()
    .pipe(source("amd-resolver.min.js"))
    .pipe(header(banner, {pkg: pkg}))
    .pipe(gulp.dest("dist"));
});


gulp.task("build-debug", ["jshint"], function() {
  return browserify("./src/resolver.js", {
      standalone: "amdresolver",
      detectGlobals: false
    })
    .ignore("process")
    .bundle()
    .pipe(source("amd-resolver.js"))
    .pipe(header(banner, {pkg: pkg}))
    .pipe(gulp.dest("dist"));
});


gulp.task("build-debug-watch", function() {
  gulp.watch("src/**/*.js", ["build-debug"]);
});


gulp.task("jshint", function() {
  return gulp.src(["src/**/*.js", "test/**/*.js", "gulpfile.js"])
    .pipe(jshint())
    .pipe(jshint.reporter(stylish))
    .pipe(jshint.reporter("fail"));
});


gulp.task("build", ["jshint", "build-release", "build-debug"]);

{'fraction_non_alphanumeric': 0.21841004184100418, 'fraction_numerical': 0.0029288702928870294, 'mean_word_length': 3.2309734513274337, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6904122', 'n_tokens_mistral': 1749, 'n_tokens_neox': 1680, 'n_words': 302}