<commit_before>$(document).ready(init);
$('#phone').submit(update);

function init() {
	$('#fullpage').fullpage({
		navigation: true,
		navigationPosition: 'right',
		responsive: 900,
		keyboardScrolling: true,
		afterRender: function(){$('video').trigger('play');}
	});

	$.ajax({
		url: 'js/countries.json',
		type: 'GET',
		dataType: 'json',
		success: function (countries) {
			$.each(countries, function(k,c) {
				$("#countries").append("<option value='" + c.value + "'>" + c.name + "</option>");
			});
		}
	});	
}

function update() {
	$.ajax({
		type: 'POST',
		headers: {'X-Parse-Application-Id':'<KEY>','X-Parse-REST-API-Key':'<KEY>'},
		url: 'https://api.parse.com/1/functions/updateUser',
		data: 'where={"number": ' + $('#code').val() + $('#number').val() + '}',
		dataType: 'json',
		contentType: 'application/json',
		success: function(res){console.log(res);},
		error: function(res){console.log(res);}
	});
}<commit_msg>add logging<commit_after>$(document).ready(init);
$('#phone').submit(update);

function init() {
	$('#fullpage').fullpage({
		navigation: true,
		navigationPosition: 'right',
		responsive: 900,
		keyboardScrolling: true,
		afterRender: function(){$('video').trigger('play');}
	});

	$.ajax({
		url: 'js/countries.json',
		type: 'GET',
		dataType: 'json',
		success: function (countries) {
			$.each(countries, function(k,c) {
				$("#countries").append("<option value='" + c.value + "'>" + c.name + "</option>");
			});
		}
	});	
}

function update() {
	console.log('here');
	$.ajax({
		type: 'POST',
		headers: {'X-Parse-Application-Id':'ba9FVqIfWQewBALxfL6YAYPRqBwcfnFPTia2Pnml','X-Parse-REST-API-Key':'<KEY>'},
		url: 'https://api.parse.com/1/functions/updateUser',
		data: 'where={"number": ' + $('#code').val() + $('#number').val() + '}',
		dataType: 'json',
		contentType: 'application/json',
		success: function(res){console.log(res);},
		error: function(res){console.log(res);}
	});
}
{'fraction_non_alphanumeric': 0.25401762571280456, 'fraction_numerical': 0.005702436495593572, 'mean_word_length': 4.902140672782875, 'pattern_counts': {'":': 2, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 2, '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': '3035643', 'n_tokens_mistral': 763, 'n_tokens_neox': 703, 'n_words': 108}