<commit_before>function split() {
	var input = document.getElementById('textarea').value;
	var taxes = Number(document.getElementById('taxes').value);
	var fees = Number(document.getElementById('fees').value);
	var tipPercent = Number(document.getElementById('tip').value);

	var map = {};
	var arr = input.split('\n');

	var itemCost = null;
	var itemAmount = null;
	var subtotal = 0;

	for (var i = 0; i < arr.length; i++) {
		var line = arr[i].trim();

		line = line.replace(/\s+/g, " "); 
		var dollarIndex = line.indexOf('$');
		if (itemCost == null && dollarIndex > -1) {
			itemAmount = Number(line.substring(0, line.indexOf(" ")));
			itemCost = Number(line.substring(dollarIndex + 1, line.length));
		} else {
			var labelIndex = line.indexOf('Label for:');
			if (labelIndex > -1) {
				var person = line.substring(labelIndex + 'Label for:'.length, line.length);

				if (map[person] == null) {
					map[person] = 0;<commit_msg>changed double quotes to single<commit_after>function split() {
	var input = document.getElementById('textarea').value;
	var taxes = Number(document.getElementById('taxes').value);
	var fees = Number(document.getElementById('fees').value);
	var tipPercent = Number(document.getElementById('tip').value);

	var map = {};
	var arr = input.split('\n');

	var itemCost = null;
	var itemAmount = null;
	var subtotal = 0;

	for (var i = 0; i < arr.length; i++) {
		var line = arr[i].trim();

		line = line.replace(/\s+/g, " "); 
		var dollarIndex = line.indexOf('$');
		if (itemCost == null && dollarIndex > -1) {
			itemAmount = Number(line.substring(0, line.indexOf(' ')));
			itemCost = Number(line.substring(dollarIndex + 1, line.length));
		} else {
			var labelIndex = line.indexOf('Label for:');
			if (labelIndex > -1) {
				var person = line.substring(labelIndex + 'Label for:'.length, line.length);

				if (map[person] == null) {
					map[person] = 0;
{'fraction_non_alphanumeric': 0.17845828933474128, 'fraction_numerical': 0.007391763463569166, 'mean_word_length': 3.973753280839895, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1898513', 'n_tokens_mistral': 675, 'n_tokens_neox': 603, 'n_words': 151}