<commit_before><!doctype html>

<html lang="en">
<head>
  <meta charset="utf-8">

  <title>IMF Intranet</title>
  <meta name="description" content="IMF Mission Control">
  <meta name="author" content="<NAME>">
  <!-- Map provider: MAPBOX -->
  <!-- IMF Logo by: Asainguy444 -->

  <link rel="stylesheet" href="css/style.css">

  <script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.2.1/mustache.min.js"></script>
  <script src="https://use.fontawesome.com/764dc9025c.js"></script>
</head>

<body>
	<!-- <script src="js/scripts.js"></script> -->
	<h1>
		<img class="header-logo" src="assets/agencylogo.png" alt="IMF LOGO"/>
		<span class="header">IMF Mission Control</span>
		<img class="header-logo" src="assets/agencylogo.png" alt="IMF LOGO"/>
	</h1>

	<div id="team-area"></div>

	<!-- Mustache js templates -->
	<script id="team-template" type="x-tmpl-mustache">
  		<div class="team-path" style="width: {{teamWidth}};">
			<p class="team-tile">Unit: {{teamName}}</p>
			<p class="mission-tile {{status}}">{{status}}</p>
			{{{missionArea}}}
		</div>
	</script>
	<script id="mission-template" type="x-tmpl-mustache">
		<p class="mission-tile {{missionStatus}}">Mission: {{missionName}}</p>
	</script>
	

	<!-- Some old code -->
	<!-- <div class="team-path">
		<p class="mission-tile plain">Unit: B1</p>
		<p class="mission-tile online"><span class="fa fa-check-square fa-lg"></span> Online</p>
		<p class="mission-tile completed plain"><span class="fa fa-check-square fa-lg"></span> Mission: 1</p>
		<p class="mission-tile skipped plain"><span class="fa fa-minus-square fa-lg"></span> Mission: 2</p>
		<p class="mission-tile active plain"><span class="fa fa-square fa-lg"></span> Mission: 3</p>
		<p class="mission-tile offline"><span class="fa fa-square fa-lg"></span> Mission: 4</p>
		<p class="mission-tile offline"><span class="fa fa-square fa-lg"></span> Mission: 5</p>
		<p class="mission-tile offline"><span class="fa fa-square fa-lg"></span> Mission: 6</p>
	</div> -->
	<!-- <p class="round-container plain">Unit: Blue001</p>
	<p class="round-container offline"><span class="fa fa-square fa-lg"></span> Offline</p>
	<p class="round-container online"><span class="fa fa-check-square fa-lg"></span> Online</p>
	<p class="round-container plain"><span class="fa fa-check-square fa-lg"></span> Mission: 1</p>
	<p class="round-container plain"><span class="fa fa-square fa-lg"></span> Mission: 2</p>
	<p class="round-container offline"><span class="fa fa-square fa-lg"></span> Mission: 3</p>
	<p><span class="fa fa-check-square-o fa-lg"></span> Online</p> -->
</body>

<script type="text/javascript">
	var teamJson = JSON.parse('{"teamName": "B1", "status": "online","missions": [{"missionName": "M1","missionStatus": "completed"},{"missionName": "M2","missionStatus": "completed"},{"missionName": "M3","missionStatus": "skipped"},{"missionName": "M4","missionStatus": "active"},{"missionName": "M5","missionStatus": "offline"},{"missionName": "M5","missionStatus": "offline"}]}');
	teamJson.teamWidth = '19.5%';
	var teamTemplate = document.getElementById('team-template').innerHTML;
	Mustache.parse(teamTemplate);
	var missionTemplate = document.getElementById('mission-template').innerHTML;
	Mustache.parse(missionTemplate);

	var missionTileContent = "";
	for (var i in teamJson.missions) {
		missionTileContent += Mustache.render(missionTemplate, teamJson.missions[i]);
	}
	console.log(missionTileContent)
	teamJson.missionArea = missionTileContent

	var rendered = "";
	for (var i = 0; i < 5; i++) {
		rendered += Mustache.render(teamTemplate, teamJson);
	}
	document.getElementById('team-area').innerHTML = rendered;
</script>
</html><commit_msg>Ability for multiple teams redo<commit_after><!doctype html>

<html lang="en">
<head>
  <meta charset="utf-8">

  <title>IMF Intranet</title>
  <meta name="description" content="IMF Mission Control">
  <meta name="author" content="<NAME>">
  <!-- Map provider: MAPBOX -->
  <!-- IMF Logo by: Asainguy444 -->

  <link rel="stylesheet" href="css/style.css">

  <script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.2.1/mustache.min.js"></script>
  <script src="https://use.fontawesome.com/764dc9025c.js"></script>
</head>

<body>
	<!-- <script src="js/scripts.js"></script> -->
	<h1>
		<img class="header-logo" src="assets/agencylogo.png" alt="IMF LOGO"/>
		<span class="header">IMF Mission Control</span>
		<img class="header-logo" src="assets/agencylogo.png" alt="IMF LOGO"/>
	</h1>

	<div id="team-area"></div>

	<!-- Mustache js templates -->
	<script id="team-template" type="x-tmpl-mustache">
  		<div class="team-path" style="width: {{teamWidth}};">
			<p class="team-tile">Unit: {{teamName}}</p>
			<p class="mission-tile {{status}}">{{status}}</p>
			{{{missionArea}}}
		</div>
	</script>
	<script id="mission-template" type="x-tmpl-mustache">
		<p class="mission-tile {{missionStatus}}">Mission: {{missionName}}</p>
	</script>
	

	<!-- Some old code -->
	<!-- <div class="team-path">
		<p class="mission-tile plain">Unit: B1</p>
		<p class="mission-tile online"><span class="fa fa-check-square fa-lg"></span> Online</p>
		<p class="mission-tile completed plain"><span class="fa fa-check-square fa-lg"></span> Mission: 1</p>
		<p class="mission-tile skipped plain"><span class="fa fa-minus-square fa-lg"></span> Mission: 2</p>
		<p class="mission-tile active plain"><span class="fa fa-square fa-lg"></span> Mission: 3</p>
		<p class="mission-tile offline"><span class="fa fa-square fa-lg"></span> Mission: 4</p>
		<p class="mission-tile offline"><span class="fa fa-square fa-lg"></span> Mission: 5</p>
		<p class="mission-tile offline"><span class="fa fa-square fa-lg"></span> Mission: 6</p>
	</div> -->
	<!-- <p class="round-container plain">Unit: Blue001</p>
	<p class="round-container offline"><span class="fa fa-square fa-lg"></span> Offline</p>
	<p class="round-container online"><span class="fa fa-check-square fa-lg"></span> Online</p>
	<p class="round-container plain"><span class="fa fa-check-square fa-lg"></span> Mission: 1</p>
	<p class="round-container plain"><span class="fa fa-square fa-lg"></span> Mission: 2</p>
	<p class="round-container offline"><span class="fa fa-square fa-lg"></span> Mission: 3</p>
	<p><span class="fa fa-check-square-o fa-lg"></span> Online</p> -->
</body>

<script type="text/javascript">
	var teams = JSON.parse('[{"teamName":"B1","status":"online","missions":[{"missionName":"M1","missionStatus":"completed"},{"missionName":"M2","missionStatus":"completed"},{"missionName":"M3","missionStatus":"completed"},{"missionName":"M4","missionStatus":"active"},{"missionName":"M5","missionStatus":"offline"},{"missionName":"M6","missionStatus":"offline"}]},{"teamName":"B2","status":"offline","missions":[{"missionName":"M1","missionStatus":"offline"},{"missionName":"M2","missionStatus":"offline"},{"missionName":"M3","missionStatus":"offline"},{"missionName":"M4","missionStatus":"offline"},{"missionName":"M5","missionStatus":"offline"},{"missionName":"M6","missionStatus":"offline"}]},{"teamName":"G1","status":"offline","missions":[{"missionName":"M1","missionStatus":"offline"},{"missionName":"M2","missionStatus":"offline"},{"missionName":"M3","missionStatus":"offline"},{"missionName":"M4","missionStatus":"offline"},{"missionName":"M5","missionStatus":"offline"},{"missionName":"M6","missionStatus":"offline"}]},{"teamName":"G2","status":"online","missions":[{"missionName":"M1","missionStatus":"completed"},{"missionName":"M2","missionStatus":"completed"},{"missionName":"M3","missionStatus":"skipped"},{"missionName":"M4","missionStatus":"completed"},{"missionName":"M5","missionStatus":"active"},{"missionName":"M6","missionStatus":"offline"}]}]');
	teamWidth = '19.5%';
	var teamTemplate = document.getElementById('team-template').innerHTML;
	Mustache.parse(teamTemplate);
	var missionTemplate = document.getElementById('mission-template').innerHTML;
	Mustache.parse(missionTemplate);

	var rendered = "";

	for (var teamNum in teams) {
		var missionTileContent = "";
		for (var i in teams[teamNum].missions) {
			missionTileContent += Mustache.render(missionTemplate, teams[teamNum].missions[i]);
		}
		console.log(missionTileContent);
		teams[teamNum].missionArea = missionTileContent;
		teams[teamNum].teamWidth = teamWidth;

		rendered += Mustache.render(teamTemplate, teams[teamNum]);
	}

	
	document.getElementById('team-area').innerHTML = rendered;
</script>
</html>
{'fraction_non_alphanumeric': 0.23005587920580192, 'fraction_numerical': 0.012008084651052194, 'mean_word_length': 6.22680412371134, 'pattern_counts': {'":': 75, '<': 218, '<?xml version=': 0, '>': 217, 'https://': 4, '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': '3350602', 'n_tokens_mistral': 2913, 'n_tokens_neox': 2743, 'n_words': 499}