<commit_before>'use strict';

function UniqueNames(prefix) {
	this.prefix = prefix || 'anonymous-';
	this.names = {};
	this.names[this.prefix] = 0;
}

UniqueNames.prototype.put = function (name) {
	var names;

	names = this.names;
	if (unique(name)) {
		names[name] = 0;
	}

	function unique(value) {
		return typeof value === 'string' && value.length > 0 && !(value in names);
	}
};

UniqueNames.prototype.get = function (name) {
	var names;

	names = this.names;
	return unique(name || this.prefix);

	function unique(value) {
		if (names[value]++ === 0) {
			return value;
		}
		return value + names[value];
	}
};

module.exports = UniqueNames;<commit_msg>UniqueNames: add serarator<commit_after>'use strict';

function UniqueNames(prefix, separator) {
	this.prefix = prefix || 'anonymous';
	this.separator = separator || '-';
	this.names = {};
	this.names[this.prefix] = 0;
}

UniqueNames.prototype.put = function (name) {
	var names;

	names = this.names;
	if (unique(name)) {
		names[name] = 0;
	}

	function unique(value) {
		return typeof value === 'string' && value.length > 0 && !(value in names);
	}
};

UniqueNames.prototype.get = function (name) {
	var names, separator;

	names = this.names;
	separator = this.separator;
	return unique(name || this.prefix);

	function unique(value) {
		if (names[value]++ === 0) {
			return value;
		}
		return value + separator + names[value];
	}
};

module.exports = UniqueNames;
{'fraction_non_alphanumeric': 0.16515045486354094, 'fraction_numerical': 0.005598320503848845, 'mean_word_length': 3.9825783972125435, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4010155', 'n_tokens_mistral': 524, 'n_tokens_neox': 484, 'n_words': 116}