<commit_before>function clickme()
	{
		
		var x = window.localStorage.getItem('eee')*1;
		x++;
		window.localStorage.setItem('eee', x)
		alert(x);
	}

function add_to_cart(id)
	{
		var key = 'product_' + id;
		var x = window.localStorage.getItem(key)*1;
		x++;
		window.localStorage.setItem(key, x);
		alert(x);
	}

function remove_from_cart(id)
	{
		var key = 'product_' + id;
		window.localStorage.removeItem(key);
	}

function total_sc()
{
	var total = 0;
	for (var i = 0; i < localStorage.length; i++) {
		var value = window.localStorage.key(i);
		//Check key='product_'?
		if (value.indexOf('product_') == 0) {
			total += localStorage.getItem(value)*1;
		}
	}
	document.getElementById("total").innerHTML = total;
}<commit_msg>Add cart_get_orders()<commit_after>function clickme()
	{
		
		var x = window.localStorage.getItem('eee')*1;
		x++;
		window.localStorage.setItem('eee', x)
		alert(x);
	}

function add_to_cart(id)
	{
		var key = 'product_' + id;
		var x = window.localStorage.getItem(key)*1;
		x++;
		window.localStorage.setItem(key, x);
		alert(x);
	}

function remove_from_cart(id)
	{
		var key = 'product_' + id;
		window.localStorage.removeItem(key);
	}

function total_sc()
{
	var total = 0;
	for (var i = 0; i < localStorage.length; i++) {
		var value = window.localStorage.key(i);
		//Check key='product_'?
		if (value.indexOf('product_') == 0) {
			total += localStorage.getItem(value)*1;
		}
	}
	document.getElementById("total").innerHTML = total;
}

function cart_get_orders()
{
	var orders = '';
	for (var i = 0; i < localStorage.length; i++) {
		var value = window.localStorage.key(i);
		//Check key='product_'?
		if (value.indexOf('product_') == 0) {
			orders += value + '=' + localStorage.getItem(value)*1 + ',';
		}
	}
	return orders;
}
{'fraction_non_alphanumeric': 0.17723669309173273, 'fraction_numerical': 0.008493771234428085, 'mean_word_length': 3.9495798319327733, 'pattern_counts': {'":': 0, '<': 6, '<?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': '2074126', 'n_tokens_mistral': 725, 'n_tokens_neox': 674, 'n_words': 131}