<commit_before><html>
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<script src="jquery-latest.js"></script>
	<script src="bootstrap.min.js"></script>
	<meta charset="utf-8"> 
	<link rel="stylesheet" href="bootstrap.min.css">
	<link rel="stylesheet" href="bootstrap-theme.min.css">
	<link rel="stylesheet" type="text/css" href="Mainstyles.css">
	<script type="text/javascript">
	var sendgrid_username   = "zomtorg";
	var sendgrid_password   = "<PASSWORD>";
	var to                  = "<EMAIL>";

	function sendMail(){
		var dotenv = require('dotenv');
		dotenv.load();

		var sendgrid = require('sendgrid')(sendgrid_username, sendgrid_password);
		var email = new sendgrid.Email();
		alert("Success Completed");
		email.addTo(to);
		email.setFrom(to);
		email.setSubject('[sendgrid-php-example] Owl');
		email.setText('Owl are you doing?');
		email.setHtml('<strong>%how% are you doing?</strong>');
		email.addSubstitution("%how%", "Owl");
		email.addHeader('X-Sent-Using', 'SendGrid-API');
		email.addHeader('X-Transport', 'web');
		email.addFile({path: './gif.gif', filename: 'owl.gif'});

		sendgrid.send(email, function(err, json) {
		  if (err) { return console.error(err); }
		  console.log(json);
		});

		alert("Success Completed");

	}
	</script>
	<title></title>
</head>
<body>
	<a href="#" class="btn btn-primary" onclick="sendMail()">Test Button</a>

</body>
</html><commit_msg>Added progress bar and countdown timer.<commit_after><html>
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<script src="jquery-latest.js"></script>
	<script src="bootstrap.min.js"></script>
	<meta charset="utf-8"> 
	<link rel="stylesheet" href="bootstrap.min.css">
	<link rel="stylesheet" href="bootstrap-theme.min.css">
	<link rel="stylesheet" type="text/css" href="Mainstyles.css">
	<script type="text/javascript">
	var sendgrid_username   = "zomtorg";
	var sendgrid_password   = "<PASSWORD>";
	var to                  = "<EMAIL>";

	targetDate = new Date().getTime() + 40000;

	//Creates a countdown timer
	setInterval(function(){
		var currentDate = new Date().getTime();
		var secondsLeft = Math.round((targetDate - currentDate) / 1000);
		countdown.innerHTML = secondsLeft + " seconds left";
	}, 1000)

	//Interval for testing purposes only
	setInterval(function(){
		input = [];
		input[1] = Math.floor(Math.random() * 100);
		input[2] = Math.floor(Math.random() * 100);
		input[3] = Math.floor(Math.random() * 100);
		input[4] = Math.floor(Math.random() * 100);
		total = 0;
		for (var i = 1; i < input.length; i++) {
			total += input[i];
			console.log(input[i]);
		}

		createGraph(input, total);
	}, 1000)

	function createGraph(input, total){
		var firstScore = document.getElementById("firstScore");
		var secondScore = document.getElementById("secondScore");
		var thirdScore = document.getElementById("thirdScore");
		var fourthScore = document.getElementById("fourthScore");
		//firstScore.style.width = input[1] / total * 100 + "%";
		$("#firstScore").animate({width: input[1] / total * 100 + "%"}, 400);
		$("#secondScore").animate({width: input[2] / total * 100 + "%"}, 400);
		$("#thirdScore").animate({width: input[3] / total * 100 + "%"}, 400);
		$("#fourthScore").animate({width: input[4] / total * 100 + "%"}, 400);
		firstScore.innerHTML = Math.round(input[1] / total * 100) + "%";
		secondScore.innerHTML = Math.round(input[2] / total * 100) + "%";
		thirdScore.innerHTML = Math.round(input[3] / total * 100) + "%";
		fourthScore.innerHTML = Math.round(input[4] / total * 100) + "%";
 	}

	function sendMail(){
		var dotenv = require('dotenv');
		dotenv.load();

		var sendgrid = require('sendgrid')(sendgrid_username, sendgrid_password);
		var email = new sendgrid.Email();
		alert("Success Completed");
		email.addTo(to);
		email.setFrom(to);
		email.setSubject('[sendgrid-php-example] Owl');
		email.setText('Owl are you doing?');
		email.setHtml('<strong>%how% are you doing?</strong>');
		email.addSubstitution("%how%", "Owl");
		email.addHeader('X-Sent-Using', 'SendGrid-API');
		email.addHeader('X-Transport', 'web');
		email.addFile({path: './gif.gif', filename: 'owl.gif'});

		sendgrid.send(email, function(err, json) {
		  if (err) { return console.error(err); }
		  console.log(json);
		});

		alert("Success Completed");

	}
	</script>
	<style type="text/css">
	div{
		height: 30px;
	}
	.statusBar{
		width: 400px;
		background-color: black;
	}
	#firstScore{
		background-color: red;
	}
	#secondScore{
		background-color: blue;
	}
	#thirdScore{
		background-color: green;
	}
	#fourthScore{
		background-color: orange;
	}
	</style>
	<title></title>
</head>
<body>
	<div class="statusBar">
		<div id="countdown"></div>
	</div>
	<div class="statusBar">
		<div id="firstScore"></div>
	</div>
	<div class="statusBar">
		<div id="secondScore"></div>
	</div>
	<div class="statusBar">
		<div id="thirdScore"></div>
	</div>
	<div class="statusBar">
		<div id="fourthScore"></div>
	</div>
	<a href="#" class="btn btn-primary" onclick="createGraph()">Test Button</a>

</body>
</html>
{'fraction_non_alphanumeric': 0.20102584336160978, 'fraction_numerical': 0.018544091536792266, 'mean_word_length': 4.571428571428571, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 0, '>': 75, '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': '3163620', 'n_tokens_mistral': 1926, 'n_tokens_neox': 1737, 'n_words': 350}