<commit_before>define('format', [], function() {
	var format = function(firstPart) {
		var intergerLength = firstPart.length,
			rest = intergerLength % 3,
			start = '';

		if(rest) {
			start = firstPart.substring(0 , rest) + '.';
		}
		return start + firstPart.substring(rest , intergerLength).match(/\d{3}/g).join('.');
	}

	return {
		'currency' : function(floatValue, prefix) {
			var normalized = floatValue.toString().replace(/[^\d\.,-]/g, '').replace(/,/g, '.').replace(/\.(\d{3})/g, '$1');
			if(!isNaN(normalized)) {
				var numberParts = normalized.toString().replace('-', '').split('.'),
					interger = numberParts[0],
					decimal = ',' + numberParts[1] + '0',
					prefix = prefix || '';

				if(prefix) {
					prefix = prefix.trim() + ' ';
				}
				sign = normalized < 0 ? '-' : '';

				var firstPart = numberParts[0].replace(/,/g, '');
				if(firstPart.length > 3) {<commit_msg>Parsing as float before formatting<commit_after>define('format', [], function() {
	var format = function(firstPart) {
		var intergerLength = firstPart.length,
			rest = intergerLength % 3,
			start = '';

		if(rest) {
			start = firstPart.substring(0 , rest) + '.';
		}
		return start + firstPart.substring(rest , intergerLength).match(/\d{3}/g).join('.');
	}

	return {
		'currency' : function(floatValue, prefix) {
			var normalized = parseFloat(floatValue.toString().replace(/[^\d\.,-]/g, '').replace(/,/g, '.').replace(/\.(\d{3})/g, '$1'));
			if(!isNaN(normalized)) {
				var numberParts = normalized.toString().replace('-', '').split('.'),
					interger = numberParts[0],
					decimal = ',' + numberParts[1] + '0',
					prefix = prefix || '';

				if(prefix) {
					prefix = prefix.trim() + ' ';
				}
				sign = normalized < 0 ? '-' : '';

				var firstPart = numberParts[0].replace(/,/g, '');
				if(firstPart.length > 3) {
{'fraction_non_alphanumeric': 0.2241662110442865, 'fraction_numerical': 0.01202843083652269, 'mean_word_length': 3.206896551724138, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3537494', 'n_tokens_mistral': 734, 'n_tokens_neox': 624, 'n_words': 110}