<commit_before>function Builder(onVal, onEnd) {
    this.result = [];
    var self = this;
    this.onVal = onVal || function(v) { self.result.push(v); return self; };
    this.onEnd = onEnd || function(b) { return b; };
}

module.exports = Builder;

// Simple values
Builder.prototype.boolean = function(val) { return this.onVal(val); };
Builder.prototype.nullval = function() { return this.onVal(null); };
Builder.prototype.string = function(val) { return this.onVal(val); };
Builder.prototype.binary = function(val) { return this.onVal(val); };

Builder.prototype.symbol = function(val) {
    return this.onVal(['symbol', val]);
};
<commit_msg>Make convenience methods for false/true/null in builder.<commit_after>function Builder(onVal, onEnd) {
    this.result = [];
    var self = this;
    this.onVal = onVal || function(v) { self.result.push(v); return self; };
    this.onEnd = onEnd || function(b) { return b; };
}

module.exports = Builder;

// Simple values
Builder.prototype.boolean = function(val) { return this.onVal(val); };
Builder.prototype.$false = function() { return this.onVal(false); };
Builder.prototype.$true = function() { return this.onVal(true); };
Builder.prototype.$null = function() { return this.onVal(null); };
Builder.prototype.string = function(val) { return this.onVal(val); };
Builder.prototype.binary = function(val) { return this.onVal(val); };

Builder.prototype.symbol = function(val) {
    return this.onVal(['symbol', val]);
};

{'fraction_non_alphanumeric': 0.1699524133242692, 'fraction_numerical': 0.0, 'mean_word_length': 4.492537313432836, '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': '1965141', 'n_tokens_mistral': 456, 'n_tokens_neox': 455, 'n_words': 100}