<commit_before><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>$title</title>
</head>
<body>
<div id="playground"></div>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script>
$.ajax.fake.registerWebservice('/SaveServiceInfo', function(data) {
	return {
		"success": true,
		"data" : {},                    
		"message": "success!"
	}
});  


$.ajax({
	url: '/SaveServiceInfo',
	type: 'post',
	data: {},
	dataType: 'json',
	error: function (xhr) {
		alert('噢噢！發生錯誤了！請重新再試一次～');
	},
	success: function (response) {
		if(response.success){
		}
		else{
			alert('噢噢！發生錯誤了！請重新再試一次～');
		}                                        
	}
});
</script>
</body>
</html><commit_msg>update ajax<commit_after><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>$title</title>
</head>
<body>
<div id="playground"></div>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script>
$.ajax.fake.registerWebservice('/SaveServiceInfo', function(data) {
	return {
		"success": true,
		"data" : {},                    
		"message": "success!"
	}
});  

$.ajax({
	url: '/SaveServiceInfo',
	type: 'post',
	data: {},
	dataType: 'json',
	fake: true,
	error: function (xhr) {
		alert('噢噢！發生錯誤了！請重新再試一次～');
	},
	success: function (response) {
		if(response.success){
			alert('儲存成功。');
			location.reload();  		
		}
		else{
			alert('噢噢！發生錯誤了！請重新再試一次～');
		}                                        
	}
});
</script>
</body>
</html>
{'fraction_non_alphanumeric': 0.22206991089787526, 'fraction_numerical': 0.0054832076764907475, 'mean_word_length': 3.0, 'pattern_counts': {'":': 4, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6932054', 'n_tokens_mistral': 628, 'n_tokens_neox': 610, 'n_words': 90}