<commit_before>//Author: <NAME>

var gulp = require("gulp");
var del = require("del");
var browserify = require("browserify");
var browserify_css = require("browserify-css");
var sassify = require("sassify");
var watchify = require("watchify");
var source = require("vinyl-source-stream");
var path = require("path");

var browserify_client = function(debug){
  var b = browserify({
    catche: {},
    packageCache: {},
    fullPaths: true,
    entries: ["./src/client/main.coffee"],
    paths: ["./node_modules", "./src/client", "./src"],
    transform: [
      "reactify",
      ["coffee-reactify", {"coffeeout": true}],
      "coffeeify",
      ["sassify", {"auto-inject": true}],
      "cssify",
      ["browserify-css", {"global": true}],
      ["reactify", {"es6": true, "everything": true}]
    ],
    debug: debug})
  .transform(browserify_css, {
    processRelativeUrl: function(url){
      var parsed = path.basename(url);
      return "./assets/" + parsed;
    }
  });

  if (!debug){
    b.transform({global: true}, "uglifyify");
  }<commit_msg>fixed up gulpfile browserify transforms<commit_after>//Author: <NAME>

var gulp = require("gulp");
var del = require("del");
var browserify = require("browserify");
var browserify_css = require("browserify-css");
var sassify = require("sassify");
var watchify = require("watchify");
var source = require("vinyl-source-stream");
var path = require("path");

var browserify_client = function(debug){
  var b = browserify({
    catche: {},
    packageCache: {},
    fullPaths: true,
    entries: ["./src/client/main.coffee"],
    paths: ["./node_modules", "./src/client", "./src"],
    transform: [
      ["coffee-reactify", {"coffeeout": true}],
      "coffeeify",
      ["reactify", {"es6": true}],
      ["sassify", {"auto-inject": true}],
      "cssify",
      ["browserify-css", {"global": true}]
    ],
    debug: debug})
  .transform(browserify_css, {
    processRelativeUrl: function(url){
      var parsed = path.basename(url);
      return "./assets/" + parsed;
    }
  });

  if (!debug){
    b.transform({global: true}, "uglifyify");
  }
{'fraction_non_alphanumeric': 0.19724334600760457, 'fraction_numerical': 0.0009505703422053232, 'mean_word_length': 3.5760869565217392, 'pattern_counts': {'":': 9, '<': 5, '<?xml version=': 0, '>': 5, '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': '4061700', 'n_tokens_mistral': 695, 'n_tokens_neox': 679, 'n_words': 153}