<commit_before><script type="text/javascript">
	
	// pageChanged & sizeChanged functions are needed in every model file
	// other functions for model should also be in here to avoid conflicts
	var textVideo = new function() {
		// function called every time the page is viewed after it has initially loaded
		this.pageChanged = function() {
			this.loadVideo();
		}
		
		// function called every time the size of the LO is changed
		this.sizeChanged = function(pageChg) {
			
		}
		
		this.loadVideo = function(firstLoad) {
			var $video = $("#pageVideo");
			$video.mediaPlayer({
				type			:"video",
				source			:$video.data("src"),
				width			:$video.data("dimensions")[0],
				height			:$video.data("dimensions")[1],
				startEndFrame	:$video.data("startEndFrame")
			});
			if (firstLoad == true) {
				x_pageLoaded(); // call this function in every model once everything's loaded
			}
		}
		
		this.init = function() {
			// text align<commit_msg>HTML5 - fixed textVideo dimensions bug<commit_after><script type="text/javascript">
	
	// pageChanged & sizeChanged functions are needed in every model file
	// other functions for model should also be in here to avoid conflicts
	var textVideo = new function() {
		// function called every time the page is viewed after it has initially loaded
		this.pageChanged = function() {
			this.loadVideo();
		}
		
		// function called every time the size of the LO is changed
		this.sizeChanged = function(pageChg) {
			
		}
		
		this.loadVideo = function(firstLoad) {
			var $video = $("#pageVideo");
			$video.mediaPlayer({
				type			:"video",
				source			:$video.data("src"),
				width			:Number($video.data("dimensions")[0]),
				height			:Number($video.data("dimensions")[1]),
				startEndFrame	:$video.data("startEndFrame")
			});
			if (firstLoad == true) {
				x_pageLoaded(); // call this function in every model once everything's loaded
			}
		}
		
		this.init = function() {
			// text align
{'fraction_non_alphanumeric': 0.12352639671963096, 'fraction_numerical': 0.0025627883136852894, 'mean_word_length': 3.271334792122538, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2562225', 'n_tokens_mistral': 682, 'n_tokens_neox': 555, 'n_words': 181}