<commit_before><!doctype html>
<head>
	<meta charset="utf-8">
	<title>PML Checker Results</title>

	<!-- Bootsrap -->
	<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
	<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
	<div id="container">
		<div id="container">
			<div class="title">
				<h1>PML Code Checker</h1>
			</div>
			<div id="content">
					<form method="post" action="{{ url_for('root_post') }}">
					<label for="code">Your code</label>
					<input type="text" name="code" /><br />
					<input type="submit" />
				</form>
			</div>
		</div>
	</div>
</body><commit_msg>Added Ace editor<commit_after><!doctype html>
<head>
	<meta charset="utf-8">
	<title>PML Checker Results</title>

	<!-- Bootsrap -->
	<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
	<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

	<!-- Text Editor -->
	<script src="//cdnjs.cloudflare.com/ajax/libs/ace/1.1.01/ace.js"></script>
	<style type="text/css" >
	    #editor { 
		height: 300px;
		
	    }
	</style>

</head>
<body>
	<div class="container">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h1 class ="panel-title">PML Code Checker</h1>
			</div>
			<div id="panel-body">
					<form method="post" action="{{ url_for('root_post') }}">
					<input type="text" name="code" /><br />
					<input type="submit" />
				</form>
					<!-- Editor -->
					<div id="editor">//add code</div>
					<script>
					    var editor = ace.edit("editor");
					    editor.setTheme("ace/theme/monokai");
					    editor.getSession().setMode("ace/mode/javascript");
					</script>
			</div>
		</div>
	</div>
</body>

<!-- TODO 
Ace editor return results for code 
remove input box -->
{'fraction_non_alphanumeric': 0.21893491124260356, 'fraction_numerical': 0.013448090371167294, 'mean_word_length': 3.198645598194131, 'pattern_counts': {'":': 0, '<': 70, '<?xml version=': 0, '>': 70, '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': '7536106', 'n_tokens_mistral': 798, 'n_tokens_neox': 674, 'n_words': 124}