<commit_before>var quote = exports.quote = function(str) {
	return '"' + str.replace(/"/g, '\\"') + '"'
}

var join = exports.join = function(args, glue) {
	return Array.prototype.join.call(args, glue || '')
}

exports.getFinCached = function(reference) {
	var type = reference.type,
		name = reference.value
	
	if (type == 'LOCAL_REFERENCE') {
		return 'fin.getLocalCachedMutation('+quote(name)+').value'
	} else if (type == 'LOCAL_REFERENCE') {
		return 'fin.getGlobalCachedMutation('+quote(name)+').value'
	} else if (type == 'NUMBER') {
		return reference.value
	} else {
		throw { error: 'Unknown reference type for getFinCached', reference: reference }
	}
}

exports.CodeGenerator = Class(function() {
	
	this.init = function() {
		this._code = ''
		this._indent = ['']
		this._variables = {}
	}
	
	this.code = function(code) { return this._add(join(arguments)) }<commit_msg>Fix typo<commit_after>var quote = exports.quote = function(str) {
	return '"' + str.replace(/"/g, '\\"') + '"'
}

var join = exports.join = function(args, glue) {
	return Array.prototype.join.call(args, glue || '')
}

exports.getFinCached = function(reference) {
	var type = reference.type,
		name = reference.value
	
	if (type == 'LOCAL_REFERENCE') {
		return 'fin.getLocalCachedMutation('+quote(name)+').value'
	} else if (type == 'GLOBAL_REFERENCE') {
		return 'fin.getGlobalCachedMutation('+quote(name)+').value'
	} else if (type == 'NUMBER') {
		return reference.value
	} else {
		throw { error: 'Unknown reference type for getFinCached', reference: reference }
	}
}

exports.CodeGenerator = Class(function() {
	
	this.init = function() {
		this._code = ''
		this._indent = ['']
		this._variables = {}
	}
	
	this.code = function(code) { return this._add(join(arguments)) }
{'fraction_non_alphanumeric': 0.1751990898748578, 'fraction_numerical': 0.0, 'mean_word_length': 4.266467065868263, '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': '2325781', 'n_tokens_mistral': 623, 'n_tokens_neox': 591, 'n_words': 119}