<commit_before>(function (define) {
define(function (require) {
	"use strict";

	var mapTokenList, replaceClasses, functional, defaultClasses, defaultOtherwise;

	mapTokenList = require('./mapTokenList');
	replaceClasses = require('./replaceClasses');
	functional = require('../../lib/functional');

	defaultClasses = {
		0: 'zero',
		1: 'one'
	};

	defaultOtherwise = 'many';

	return function(node, options) {

		var classMap, otherwise, prefix, key;

		classMap = {};
		prefix = '';

		if(!options) options = {};

		if(typeof options == 'string') {
			prefix = options + '-';
		} else if(options.prefix) {
			prefix = options.prefix + '-';
		}

		otherwise = prefix + defaultOtherwise;

		for(key in defaultClasses) {
			classMap[key] = prefix + defaultClasses[key];
		}

		return functional.compose(mapTokenList(classMap, options), replaceClasses(node, options))

	}

});
}(
	typeof define == 'function' && define.amd
		? define
		: function (factory) { module.exports = factory(require); }
));<commit_msg>Fixes for cardinality after testing.<commit_after>(function (define) {
define(function (require) {
	"use strict";

	var mapTokenList, replaceClasses, functional, defaultClasses, defaultOtherwise;

	mapTokenList = require('./mapTokenList');
	replaceClasses = require('./replaceClasses');
	functional = require('../../lib/functional');

	defaultClasses = {
		0: 'zero',
		1: 'one'
	};

	defaultOtherwise = 'many';

	return function(node, options) {

		var classMap, prefix, key;

		classMap = {};
		prefix = '';

		if(!options) options = {};

		if(typeof options == 'string') {
			prefix = options + '-';
			options = {};
		} else if(options.prefix) {
			prefix = options.prefix + '-';
		}

		for(key in defaultClasses) {
			classMap[key] = prefix + defaultClasses[key];
		}

		options.otherwise = prefix + defaultOtherwise;

		return functional.compose(mapTokenList(classMap, options), replaceClasses(node, options))

	}

});
}(
	typeof define == 'function' && define.amd
		? define
		: function (factory) { module.exports = factory(require); }
));
{'fraction_non_alphanumeric': 0.16091395235780262, 'fraction_numerical': 0.0019445794846864365, 'mean_word_length': 4.145, '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': '7030737', 'n_tokens_mistral': 691, 'n_tokens_neox': 606, 'n_words': 142}