<commit_before>var browserify = require('browserify'),
    fs = require('fs'),
    path = require('path');

var outpath = path.join(__dirname, "../lib/shade.js");
var base = path.join(__dirname, "./shade.js");

console.log("Building", outpath);

if(!fs.existsSync(outpath))
    fs.mkdirSync(path.dirname(outpath));

var stream = fs.createWriteStream(outpath);
var b = browserify();
b.add(base);
b.bundle().pipe(stream);
<commit_msg>enable generation of source maps during build for easier debugging<commit_after>var browserify = require('browserify'),
    fs = require('fs'),
    path = require('path');

var outpath = path.join(__dirname, "../lib/shade.js");
var base = path.join(__dirname, "./shade.js");

console.log("Building", outpath);

if(!fs.existsSync(outpath))
    fs.mkdirSync(path.dirname(outpath));

var stream = fs.createWriteStream(outpath);
var b = browserify();
b.add(base);
b.bundle({debug: true}).pipe(stream);

{'fraction_non_alphanumeric': 0.1860215053763441, 'fraction_numerical': 0.0, 'mean_word_length': 5.333333333333333, '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': '5124158', 'n_tokens_mistral': 307, 'n_tokens_neox': 301, 'n_words': 64}