<commit_before><!DOCTYPE html>
<html>
	<head>
		<title>pdf.js Sandbox</title>
		<style type="text/css">
		html, body {
			height:100%;
		}
		body {
			margin:0;
			padding:0;
			max-width:100%;
			max-height:100%;
			overflow:hidden;
		}
		#container {
			width:100%;
			height:100%;
		}
		canvas {
			margin:0 auto;
			position:relative;
			display:none;
		}
		</style>
	</head>
	<body>
		<div id="container">
			<canvas id="canvas0"></canvas><canvas id="canvas1"></canvas>
		</div>
		<script src="__PDFJS_SANDBOX_JS_URL__" data-parent-origin="__PARENT_ORIGIN__" data-pdfjs-url="__PDFJS_URL__"  data-pdfjs-worker-url="__PDFJS_WORKER_URL__" data-pdfjs-compatibility-url="__PDFJS_COMPATIBILITY_URL__"></script>
	</body>
</html><commit_msg>Setup CSP for pdf.js sandbox.<commit_after><!DOCTYPE html>
<html>
	<head>
		<title>pdf.js Sandbox</title>
		<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src __PARENT_ORIGIN__; img-src 'self'; style-src 'unsafe-inline'">
		<style type="text/css">
		html, body {
			height:100%;
		}
		body {
			margin:0;
			padding:0;
			max-width:100%;
			max-height:100%;
			overflow:hidden;
		}
		#container {
			width:100%;
			height:100%;
		}
		canvas {
			margin:0 auto;
			position:relative;
			display:none;
		}
		</style>
	</head>
	<body>
		<div id="container">
			<canvas id="canvas0"></canvas><canvas id="canvas1"></canvas>
		</div>
		<script src="__PDFJS_SANDBOX_JS_URL__" data-parent-origin="__PARENT_ORIGIN__" data-pdfjs-url="__PDFJS_URL__"  data-pdfjs-worker-url="__PDFJS_WORKER_URL__" data-pdfjs-compatibility-url="__PDFJS_COMPATIBILITY_URL__"></script>
	</body>
</html>
{'fraction_non_alphanumeric': 0.17378048780487804, 'fraction_numerical': 0.024390243902439025, 'mean_word_length': 4.310679611650485, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 42, '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': '1772804', 'n_tokens_mistral': 754, 'n_tokens_neox': 641, 'n_words': 97}