<commit_before><!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
<title>Speak Activity</title>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover"/>
<link rel="prefetch" type="application/l10n" href="locale.ini" />
<link rel="stylesheet" media="not screen and (device-width: 1200px) and (device-height: 900px)"
	href="lib/sugar-web/graphics/css/sugar-96dpi.css">
<link rel="stylesheet" media="screen and (device-width: 1200px) and (device-height: 900px)"
	href="lib/sugar-web/graphics/css/sugar-200dpi.css">
<link rel="stylesheet" href="css/activity.css">
<link rel="stylesheet" href="css/inputrange.css">
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="lib/jquery.min.js"></script>
<script src="mespeak.js"></script>
<script>if (window.module) module = window.module;</script>
</head>

<body>
<div id="main-toolbar" class="toolbar">
  <button class="toolbutton" id="activity-button" title="Speak Activity"></button>

  <!-- Add more buttons here -->
  <button class="toolbutton active" id="gamemode1-button" title="Type something to hear it:"></button>
  <button class="toolbutton" disabled id="gamemode2-button" title="Ask robot any questions:"></button>
  <button class="toolbutton" disabled id="gamemode3-button" title="Voice chat:"></button>

  <button class="toolbutton" id="language-button" title="Language:"></button>
  <button class="toolbutton" id="speech-button" title="Speech:"></button>
  <button class="toolbutton" id="face-button" title="Face:"></button>
  <!-- Buttons with class="pull-right" will be right aligned -->
  <button class="toolbutton pull-right" id="stop-button" title="Stop"></button>
</div>

<!-- The content of your activity goes inside the canvas -->
<div id="userArea">
  <div id="chat" style="height:30vw;width:95vw;padding:10px;">
    <ul id="chatbox">
    </ul>
  </div>


<!-- Created select tag so user can access history of talk -->
<div style="top:60px;position:absolute;z-index:2" id="speechBox">
	<!-- The select tag acts like a drop down button, so it passes its value to the input box and not to itself -->
	<select id = 'combo-box' title = "Saved Talk" onchange="document.getElementById('userText').value=this.options[this.selectedIndex].text; document.getElementById('idValue').value=this.options[this.selectedIndex].value;">
  </select>
	<span class = "dropdown" name = "Saved Talk"></span>
	<input id ="userText" name="userText" type="text" onfocus="this.select()" ></input>
	<input name="idValue" id="idValue" type="hidden">
	<button id="speakText" class="toolbutton" title="Speak"></button>
  <hr>
</div>






  <div style="top:0px;">
  	<canvas id="canvas" height="0" width="0" style="border: 5px solide black;"></canvas>
  </div>
</div>
<p id="mode" style="display:none;">1</p>
<p id="numeyes" style="display:none;">2</p>
<p id="eyetype" style="display:none;">1</p>
<p id="rate" style="display:none;">150</p>
<p id="pitch" style="display:none;">50</p>
<p id="speaklang" style="display:none;">en</p>
<p id="speaking" style="display:none;">0</p>
</body>
<script data-main="js/loader" src="lib/require.js"></script>
</html><commit_msg>Updated index.html<commit_after><!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
<title>Speak Activity</title>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover"/>
<link rel="prefetch" type="application/l10n" href="locale.ini" />
<link rel="stylesheet" media="not screen and (device-width: 1200px) and (device-height: 900px)"
	href="lib/sugar-web/graphics/css/sugar-96dpi.css">
<link rel="stylesheet" media="screen and (device-width: 1200px) and (device-height: 900px)"
	href="lib/sugar-web/graphics/css/sugar-200dpi.css">
<link rel="stylesheet" href="css/activity.css">
<link rel="stylesheet" href="css/inputrange.css">
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="lib/jquery.min.js"></script>
<script src="mespeak.js"></script>
<script>if (window.module) module = window.module;</script>
</head>

<body>
<div id="main-toolbar" class="toolbar">
  <button class="toolbutton" id="activity-button" title="Speak Activity"></button>

  <!-- Add more buttons here -->
  <button class="toolbutton active" id="gamemode1-button" title="Type something to hear it:"></button>
  <button class="toolbutton" disabled id="gamemode2-button" title="Ask robot any questions:"></button>
  <button class="toolbutton" disabled id="gamemode3-button" title="Voice chat:"></button>

  <button class="toolbutton" id="language-button" title="Language:"></button>
  <button class="toolbutton" id="speech-button" title="Speech:"></button>
  <button class="toolbutton" id="face-button" title="Face:"></button>
  <!-- Buttons with class="pull-right" will be right aligned -->
  <button class="toolbutton pull-right" id="stop-button" title="Stop"></button>
</div>

<!-- The content of your activity goes inside the canvas -->
<div id="userArea">
  <div id="chat" style="height:30vw;width:95vw;padding:10px;">
    <ul id="chatbox">
    </ul>
  </div>


<!-- Created select tag so user can access history of talk -->
<div style="top:60px;position:absolute;z-index:2" id="speechBox">
	<!-- The select tag acts like a drop down button, so it passes its value to the input box and not to itself -->
	<select id = 'combo-box' title = "Saved Talk" onchange="goLast();document.getElementById('userText').value=this.options[this.selectedIndex].text; document.getElementById('idValue').value=this.options[this.selectedIndex].value;">
  </select>
	<span class = "dropdown" name = "Saved Talk"></span>
	<input id ="userText" name="userText" type="text" onfocus="this.select()" ></input>
	<input name="idValue" id="idValue" type="hidden">
	<button id="speakText" class="toolbutton" title="Speak"></button>
  <hr>
</div>

<script>
//Deletes selected line and appends is again to put it on last.
function goLast(){
	var selected_line = document.getElementById("combo-box");
	var option = selected_line.options[selected_line.selectedIndex];
	selected_line.removeChild(option);
	selected_line.appendChild(option);
}

</script>




  <div style="top:0px;">
  	<canvas id="canvas" height="0" width="0" style="border: 5px solide black;"></canvas>
  </div>
</div>
<p id="mode" style="display:none;">1</p>
<p id="numeyes" style="display:none;">2</p>
<p id="eyetype" style="display:none;">1</p>
<p id="rate" style="display:none;">150</p>
<p id="pitch" style="display:none;">50</p>
<p id="speaklang" style="display:none;">en</p>
<p id="speaking" style="display:none;">0</p>
</body>
<script data-main="js/loader" src="lib/require.js"></script>
</html>
{'fraction_non_alphanumeric': 0.19926416482707873, 'fraction_numerical': 0.014716703458425313, 'mean_word_length': 6.123689727463312, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 0, '>': 175, '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': '4721806', 'n_tokens_mistral': 2354, 'n_tokens_neox': 2240, 'n_words': 520}