<commit_before><html>
	<head>
		<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
		<link rel="stylesheet" type="text/css" href="/rest-client/css/styles.css">
	</head>
	<body>
		<div id="left">
			<h2>Resource Creation</h2>
			<script type="text/javascript">
				function callbackCriado(uri) {
					console.log(uri);
					return function(result, status){
						$('#activities').append('<tr><td>' + result.method + '</td>\
								<td>' + result.uri + '</td>\
								<td>' + result.responseCode + '</td>\
								<td><a href="' + result.location +'" target="_blank">' + result.location + '</a></td></tr>');
					};
				}
				function cria() {
					var uri = $('#uri').val();
					$.getJSON('createSomething', $('#form').serialize(),
						callbackCriado(uri)
					);
				}
			</script>
			<form action="" method="post" id="form" >
			URI: <input type="text" name="uri" id="uri" style="width: 400px;"/>
				<br />
				HTTP Method: <select name="method">
					<option value="POST">POST</option>
					<option value="GET">GET</option>
					<option value="PUT">PUT</option>
					<option value="DELETE">DELETE</option>
					<option value="OPTIONS">OPTIONS</option>
				</select>
				<br />
				Name: <input type="text" name="contentName" id="contentName"><br />
				Value: <textarea name="contentValue" style="width: 400px"></textarea>
				
				<br />
				
				<input type="button" value="Send"  onclick="cria()">
			</form>
		</div>
		<div id="right">
			<h2>Activity History</h2>
			<table width="100%">
				<thead>
					<th>Method</th>
					<th>URI</th>
					<th>Response code</th>
					<th>Location</th>
				</thead>
				<tbody id="activities">
					
				</tbody>
			</table>
		</div>
	</body>
</html><commit_msg>usando js para loadar em uma div de view<commit_after><html>
	<head>
		<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
		<link rel="stylesheet" type="text/css" href="/rest-client/css/styles.css">
	</head>
	<body>
		<div id="left">
			<div id="creation">
			<h2>Resource Creation</h2>
			<script type="text/javascript">
				function callbackCriado(uri) {
					console.log(uri);
					return function(result, status){
						$('#activities').append('<tr><td>' + result.method + '</td>\
								<td>' + result.uri + '</td>\
								<td>' + result.responseCode + '</td>\
								<td><a href="javascript:view(' + result.location + '); return false;">' + result.location + '</a></td></tr>');
					};
				}
				function cria() {
					var uri = $('#uri').val();
					$.getJSON('createSomething', $('#form').serialize(),
						callbackCriado(uri)
					);
				}
				function view(uri) {
					$('#creation').hide();
					$('#view').show();
					$('#view').load(uri);
				}
			</script>
			<form action="" method="post" id="form" >
			URI: <input type="text" name="uri" id="uri" style="width: 400px;"/>
				<br />
				HTTP Method: <select name="method">
					<option value="POST">POST</option>
					<option value="GET">GET</option>
					<option value="PUT">PUT</option>
					<option value="DELETE">DELETE</option>
					<option value="OPTIONS">OPTIONS</option>
				</select>
				<br />
				Name: <input type="text" name="contentName" id="contentName"><br />
				Value: <textarea name="contentValue" style="width: 400px"></textarea>
				
				<br />
				
				<input type="button" value="Send"  onclick="cria()">
			</form>
			</div>
			<div id="view" style="display: none;">
			</div>
		</div>
		<div id="right">
			<h2>Activity History</h2>
			<table width="100%">
				<thead>
					<th>Method</th>
					<th>URI</th>
					<th>Response code</th>
					<th>Location</th>
				</thead>
				<tbody id="activities">
					
				</tbody>
			</table>
		</div>
	</body>
</html>
{'fraction_non_alphanumeric': 0.22399351526614428, 'fraction_numerical': 0.008646311807619562, 'mean_word_length': 2.997840172786177, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 143, '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': '1361636', 'n_tokens_mistral': 1669, 'n_tokens_neox': 1264, 'n_words': 245}