<commit_before><!DOCTYPE html>
<html lang="pt-br">
<meta charset="UTF-8">
<title>Mowe Upload API</title>
<meta name="viewport"
      content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
<script src="dist/js/villa.min.js"></script>
<link rel="stylesheet" href="dist/css/villa.min.css"/>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="dist/css/material-colors.css"/>
<link rel="stylesheet" type="text/css" href="dist/css/villa-cross.min.css"/>
<script src="dist/js/html5shiv.js"></script>
<script src="dist/js/html5shiv-printshiv.js"></script>
<script src="dist/js/classList.min.js"></script>
<![endif]-->

<body>

<h1>Hello World</h1>

</body>

</html><commit_msg>Add upload api client Add jquery<commit_after><!DOCTYPE html>
<html lang="pt-br">
<meta charset="UTF-8">
<title>Mowe Upload API</title>
<meta name="viewport"
      content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
<script src="dist/js/villa.min.js"></script>
<link rel="stylesheet" href="dist/css/villa.min.css"/>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="dist/css/material-colors.css"/>
<link rel="stylesheet" type="text/css" href="dist/css/villa-cross.min.css"/>
<script src="dist/js/html5shiv.js"></script>
<script src="dist/js/html5shiv-printshiv.js"></script>
<script src="dist/js/classList.min.js"></script>
<![endif]-->

<body>

<h1>Hello World</h1>

<input type="text" id="txt" placeholder="insira o nome"/>
<input type="file" id="file" placeholder="insira o nome"/>
<button id="btn">Call API!</button>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>

<script>

	var btn = document.getElementById('btn');

	btn.addEventListener('click', function (ev) {

		var txtValue = document.getElementById('txt').value;
		var fileValue = document.getElementById('file').value;

		$.ajax({
			url: 'http://localhost/upload-api/api/index.php',
			method: 'post',
			data: {
				txt: txtValue,
				file: fileValue
			},
			success: function (data) {

				console.log(data);

			},
			error: function (data) {

				console.log('error');
				console.log(data);

			}
		})

	});

</script>

</body>

</html>
{'fraction_non_alphanumeric': 0.21787461093819474, 'fraction_numerical': 0.01200533570475767, 'mean_word_length': 4.754475703324808, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 1, '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': '3888435', 'n_tokens_mistral': 876, 'n_tokens_neox': 818, 'n_words': 144}