<commit_before><!DOCTYPE html>
<html>
<head>
	<title>new2JS</title>
	<script type="text/javascript" src="lib/codemirror-compressed.js"></script>
	<link rel="stylesheet" href="lib/codemirror.css">

	<script type="text/javascript" src="lib/Emitter.js"></script>
	<script type="text/javascript" src="lib/ObjectRenderer.js"></script>
	<script type="text/javascript" src="lib/CMRenderer.js"></script>
	<link rel="stylesheet" href="lib/ObjectRenderer.css">

	<script type="text/javascript" src="src/Tutorial.js"></script>
	<script type="text/javascript" src="src/App.js"></script>
	<link rel="stylesheet" href="style.css">
</head>
<body>
	<div id="top">
		<div id="codeEntry"></div>
		<button onclick="app.executionContext.reset()" class="reset">Reset</button>
		<button onclick="app.executionContext.clear()" class="clear">Clear</button>
		<button onclick="app.executionContext.next()" class="next">Next</button>
		<button onclick="app.executeCurrent()" class="run">Run</button>
		<button onclick="app.executionContext.back()" class="back">Back</button>
	</div>
	<div id="history">
		<h1>New to JS?</h1>
		<p>Welcome.<p>
		<p>This area keeps a record of what you do and also shows you the things that your
		javascript program displays.  You can page through the tutorial and write javascript programs
		on the left hand side.</p>
	</div>
	<script type="text/javascript">
		var codeEntry = document.getElementById('codeEntry');
		var history = document.getElementById('history');

		var app = new App(codeEntry, history, "content/learningScript.js");
	</script>
</body>
</html><commit_msg>Previous code passed the HTML5 window.history object to App() causing a TypeError, renaming history variable to historyElem<commit_after><!DOCTYPE html>
<html>
<head>
	<title>new2JS</title>
	<script type="text/javascript" src="lib/codemirror-compressed.js"></script>
	<link rel="stylesheet" href="lib/codemirror.css">

	<script type="text/javascript" src="lib/Emitter.js"></script>
	<script type="text/javascript" src="lib/ObjectRenderer.js"></script>
	<script type="text/javascript" src="lib/CMRenderer.js"></script>
	<link rel="stylesheet" href="lib/ObjectRenderer.css">

	<script type="text/javascript" src="src/Tutorial.js"></script>
	<script type="text/javascript" src="src/App.js"></script>
	<link rel="stylesheet" href="style.css">
</head>
<body>
	<div id="top">
		<div id="codeEntry"></div>
		<button onclick="app.executionContext.reset()" class="reset">Reset</button>
		<button onclick="app.executionContext.clear()" class="clear">Clear</button>
		<button onclick="app.executionContext.next()" class="next">Next</button>
		<button onclick="app.executeCurrent()" class="run">Run</button>
		<button onclick="app.executionContext.back()" class="back">Back</button>
	</div>
	<div id="history">
		<h1>New to JS?</h1>
		<p>Welcome.<p>
		<p>This area keeps a record of what you do and also shows you the things that your
		javascript program displays.  You can page through the tutorial and write javascript programs
		on the left hand side.</p>
	</div>
	<script type="text/javascript">
		var codeEntry = document.getElementById('codeEntry');
		var historyElem = document.getElementById('history');

		var app = new App(codeEntry, historyElem, "content/learningScript.js");
	</script>
</body>
</html>
{'fraction_non_alphanumeric': 0.17711503347534996, 'fraction_numerical': 0.002130249543517955, 'mean_word_length': 6.023504273504273, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, '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': '6043362', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1023, 'n_words': 241}