<commit_before><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8"/>	
		<script src="../../es6.js" type="text/javascript"></script>	
		<script src="../../fetch.js" type="text/javascript"></script>	
		<script src="../../main.bundle.js" type="text/javascript"></script>	
	</head>
	<body>
		<title>Raintree Learning Management System</title>
		<div id='lms-container'></div>
		<script type="text/javascript">
	
			const lessonID = window.location.pathname.split("/")[3];
			const h5pLocation = '.';
			const options = {
				id: lessonID, 
				frameJs: '../../frame.bundle.js',
				frameCss: '../../styles/h5p.css'
			}; 


			const h5p = new H5PStandalone.H5P(document.getElementById('lms-container'), h5pLocation, options);
	
			H5P.externalDispatcher.on('xAPI', function (event) {
 				window.parent.postMessage(event.data, window.location.origin);
			});
		</script>	
	</body>
</html><commit_msg>Fix: html syntax fixes; H5P object creation is no compatible with latest version of H5PStandalone<commit_after><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>Raintree Learning Management System</title>
    <script src="../../es6.js"></script>
    <script src="../../fetch.js"></script>
    <script src="../../main.bundle.js"></script>
    <link href='../../styles/h5p-raintree.css' rel='stylesheet' type='text/css'>
</head>

<body>

    <div id='lms-container'></div>
    <script>
        const lessonID = window.location.pathname.split("/")[3];
        const options = {
            id: lessonID,
            frameJs: '../../frame.bundle.js',
            frameCss: '../../styles/h5p-raintree.css',
            h5pJsonPath: '.'
        };


        const h5p = new H5PStandalone.H5P(document.getElementById('lms-container'), options);

        H5P.externalDispatcher.on('xAPI', function(event) {
            window.parent.postMessage(event.data, window.location.origin);
        });
    </script>
</body>

</html>
{'fraction_non_alphanumeric': 0.19938335046248715, 'fraction_numerical': 0.011305241521068859, 'mean_word_length': 2.894, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 44, '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': '5488476', 'n_tokens_mistral': 685, 'n_tokens_neox': 639, 'n_words': 115}