<commit_before>var gulp = require("gulp");
var babel = require("gulp-babel");
var spawn = require("child_process").spawn;
var node;
var lastTranspilationSuccessful;

gulp.task("server", ["babel"], function() {
  if (lastTranspilationSuccessful) {
    if (node) node.kill()
    node = spawn("node", ["httpServer.js", "-p", "8088", "-d", "../.."], {stdio: "inherit", cwd: "dist"})
    node.on("close", function (code) {
      if (code === 8) {
        gulp.log("Error detected, waiting for changes...");
      }
    });
  }
})

gulp.task("babel", function () {
  // don't end the watch task if the transpilation fails
  var b = babel({});
  lastTranspilationSuccessful = true;
  b.on("error", function (e) {
    console.log(e.stack);
    lastTranspilationSuccessful = false;<commit_msg>allow passing command line arguments to server via gulp<commit_after>var gulp = require("gulp");
var babel = require("gulp-babel");
var spawn = require("child_process").spawn;
var node;
var lastTranspilationSuccessful;

gulp.task("server", ["babel"], function() {
  if (lastTranspilationSuccessful) {
    if (node) node.kill()
    node = spawn("node", (["httpServer.js"]).concat(process.argv.slice(2)), {stdio: "inherit", cwd: "dist"})
    node.on("close", function (code) {
      if (code === 8) {
        gulp.log("Error detected, waiting for changes...");
      }
    });
  }
})

gulp.task("babel", function () {
  // don't end the watch task if the transpilation fails
  var b = babel({});
  lastTranspilationSuccessful = true;
  b.on("error", function (e) {
    console.log(e.stack);
    lastTranspilationSuccessful = false;
{'fraction_non_alphanumeric': 0.18102913825170489, 'fraction_numerical': 0.0043397396156230625, 'mean_word_length': 3.876132930513595, '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': '2296927', 'n_tokens_mistral': 545, 'n_tokens_neox': 527, 'n_words': 132}