<commit_before>var gulp = require("gulp-help")(require("gulp"));
var rename = require("gulp-rename");
var stylus = require("gulp-stylus");
var sourcemaps = require("gulp-sourcemaps");
var browserify = require("gulp-browserify");
var sweetify = require("sweetify");
var watch = require("gulp-watch");
var batch = require("gulp-batch");
var run = require("gulp-run");

sweetify.extensions = /.+\.js$/;

// Styles

gulp.task("stylus", "Compile stylus files to CSS.", function() {
  return gulp.src("stylus/**/*.stylus")
  .pipe(sourcemaps.init())
  .pipe(stylus())
  .pipe(sourcemaps.write("."))
  .pipe(gulp.dest("stylus"));
});

gulp.task("watch-stylus", "Watch stylus files for changes.", ["stylus"], function() {
  watch("stylus/**/*.stylus", batch(function(events, done) {
    gulp.start("stylus", done);
  }));
});

// JS Bundles

var editorSources = ["src/editor/**/*.js"];
var macroSources = ["src/**/*.sjs"];
gulp.task("build-editor", "Build the editor bundle.", function() {
  return gulp.src(editorSources, {read: false})
  .pipe(sourcemaps.init())
  .pipe(browserify({
    debug: true,
    transform: [sweetify]
  }))
  .pipe(sourcemaps.write("."))
  .pipe(gulp.dest("build"));
});

gulp.task("build", "Build all the things.", ["stylus", "build-editor"]);

// Watch tasks

gulp.task("watch-editor", "Watch editor related files for changes.", ["build-editor"], function() {
  watch(editorSources.concat(macroSources), function(events, done) {
    gulp.start("build-editor");
  });
});


gulp.task("foo", "Watch editor related files for changes.", [], function() {
  watch(editorSources.concat(macroSources), function(events, done) {
    console.log("Changes!");
  });
});

// Run the server.
gulp.task("run-server", "Run the eve server.", function() {
  require('./server');
});

gulp.task("watch", "Watch all the things.", ["watch-stylus", "watch-editor", "run-server"]);<commit_msg>Switches to fallback file watcher<commit_after>var gulp = require("gulp-help")(require("gulp"));
var rename = require("gulp-rename");
var stylus = require("gulp-stylus");
var sourcemaps = require("gulp-sourcemaps");
var browserify = require("gulp-browserify");
var sweetify = require("sweetify");
var watch = require("gulp-watch");
var batch = require("gulp-batch");
var run = require("gulp-run");

sweetify.extensions = /.+\.js$/;

// Styles

gulp.task("stylus", "Compile stylus files to CSS.", function() {
  return gulp.src("stylus/**/*.stylus")
  .pipe(sourcemaps.init())
  .pipe(stylus())
  .pipe(sourcemaps.write("."))
  .pipe(gulp.dest("stylus"));
});

gulp.task("watch-stylus", "Watch stylus files for changes.", ["stylus"], function() {
  gulp.watch("stylus/**/*.stylus", batch(function(events, done) {
    gulp.start("stylus", done);
  }));
});

// JS Bundles

var editorSources = ["src/editor/**/*.js"];
var macroSources = ["src/**/*.sjs"];
gulp.task("build-editor", "Build the editor bundle.", function() {
  return gulp.src(editorSources, {read: false})
  .pipe(sourcemaps.init())
  .pipe(browserify({
    debug: true,
    transform: [sweetify]
  }))
  .pipe(sourcemaps.write("."))
  .pipe(gulp.dest("build"));
});

gulp.task("build", "Build all the things.", ["stylus", "build-editor"]);

// Watch tasks

gulp.task("watch-editor", "Watch editor related files for changes.", ["build-editor"], function() {
  watch(editorSources.concat(macroSources), function(events, done) {
    gulp.start("build-editor");
  });
});


gulp.task("foo", "Watch editor related files for changes.", [], function() {
  gulp.watch(editorSources.concat(macroSources), function(events, done) {
    console.log("Changes!");
  });
});

// Run the server.
gulp.task("run-server", "Run the eve server.", function() {
  require('./server');
});

gulp.task("watch", "Watch all the things.", ["watch-stylus", "watch-editor", "run-server"]);
{'fraction_non_alphanumeric': 0.22076560041950707, 'fraction_numerical': 0.0, 'mean_word_length': 4.806697108066971, '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': '5340189', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1293, 'n_words': 271}