<commit_before><html lang="us">
<head>
    <meta charset="utf-8">
    <script src="js/jquery-1.11.1.min.js"></script>
    <script src="js/jquery-ui.js"></script>
    <link href="css/start/jquery-ui-1.10.4.custom.css" rel="stylesheet">
    <script>
  $(function() {
	$( "#autocomplete" ).autocomplete({
		source: "http://localhost:8001/services/getlanguages"
	});
	
	$("#getRequest").click(function(){
		$.ajax({
			url: "http://localhost:8001/services/getservice",
			type: 'GET',
			data: {term: $("#getInput").val()},
			dataType: 'json'
		});
	});
		
	$("#postRequest").click(function(){
		$.ajax({
			url: "http://localhost:8001/services/postservice",
			type: 'POST',
			data: {'timestamp': $.now(), 'text': $("#output-box").val()},
			success: function(data) {
                                $("#postResult").text(data.outputBoxValue);     
                        },
                        error: function (request, status, error) {
                                alert(error);
                        }
		});
	});
	
	$("#postLongRequest").click(function(){
		$.ajax({
			url: "http://localhost:8001/services/getBooks",
			type: 'POST',
			dataType: 'xml',
			success: function(data) {
						$("#postResultLong").text($(data).find("book[id='bk895']").find("title").text());
						},
						error: function (request, status, error) {
								alert(error);
						}
		});
	});<commit_msg>Instead of alerting, changed to console log when postRequest errors out<commit_after><html lang="us">
<head>
    <meta charset="utf-8">
    <script src="js/jquery-1.11.1.min.js"></script>
    <script src="js/jquery-ui.js"></script>
    <link href="css/start/jquery-ui-1.10.4.custom.css" rel="stylesheet">
    <script>
  $(function() {
	$( "#autocomplete" ).autocomplete({
		source: "http://localhost:8001/services/getlanguages"
	});
	
	$("#getRequest").click(function(){
		$.ajax({
			url: "http://localhost:8001/services/getservice",
			type: 'GET',
			data: {term: $("#getInput").val()},
			dataType: 'json'
		});
	});
		
	$("#postRequest").click(function(){
		$.ajax({
			url: "http://localhost:8001/services/postservice",
			type: 'POST',
			data: {'timestamp': $.now(), 'text': $("#output-box").val()},
			success: function(data) {
                                $("#postResult").text(data.outputBoxValue);     
                        },
                        error: function (request, status, error) {
                                console.log(error);
                        }
		});
	});
	
	$("#postLongRequest").click(function(){
		$.ajax({
			url: "http://localhost:8001/services/getBooks",
			type: 'POST',
			dataType: 'xml',
			success: function(data) {
						$("#postResultLong").text($(data).find("book[id='bk895']").find("title").text());
						},
						error: function (request, status, error) {
								alert(error);
						}
		});
	});
{'fraction_non_alphanumeric': 0.21809256661991586, 'fraction_numerical': 0.019635343618513323, 'mean_word_length': 2.557356608478803, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4479892', 'n_tokens_mistral': 1063, 'n_tokens_neox': 901, 'n_words': 142}