<commit_before>var OER = (function(){
    
	function OERClass() {
    	

	}
	
	OERClass.prototype.getOERs = function(container) {

		$.ajax({

			type: 'GET',
			url: 'https://cs.uef.fi/~tapanit/ecraft2learn/api/pilot_2/get_teacher_oers.php',
			success: function(data) {

				var oers = JSON.parse(data);

				if (! oers.length) {

					container.innerHTML = '<h2>No OERs available at the moment</h2>';
					return;

				}

				var html = '<table class=\'table\'>';
				html += '<thead>';
				html += '<tr>'

				for (var key in oers[0])
					html += '<th>' + key + '</th>';

				html += '</tr>';
				html += '<tbody>';

				for (let i = 0; i < oers.length; i++) {

					let oer = oers[i];

					html += '<tr>';

					for (let key in oer)
						html += '<td>' + oer[key] + '</td>';<commit_msg>Created an OER table<commit_after>var OER = (function(){
    
	function OERClass() {
    	

	}
	
	OERClass.prototype.getOERs = function(container) {

		$.ajax({

			type: 'GET',
			url: 'https://cs.uef.fi/~tapanit/ecraft2learn/api/pilot_2/get_teacher_oers.php',
			success: function(data) {

				var oers = JSON.parse(data);

				if (! oers.length) {

					container.innerHTML = '<h2>No OERs available at the moment</h2>';
					return;

				}

				var html = '<table class=\'table\'>';
				html += '<thead>';
				html += '<tr>'

				for (var key in oers[0])
					if (key === 'id')
						html += '<th>#</th>';
					else
						html += '<th>' + key + '</th>';

				html += '</tr>';
				html += '<tbody>';

				for (let i = 0; i < oers.length; i++) {

					let oer = oers[i];

					html += '<tr>';

					for (let key in oer)
						if (key === 'download')
							html += '<td><a target=\'_blank\' href=\'' + oer[key].trim() + '\'>Download OER</a></tf>';
						else
							html += '<td>' + oer[key] + '</td>';
{'fraction_non_alphanumeric': 0.21535893155258765, 'fraction_numerical': 0.00667779632721202, 'mean_word_length': 2.3173431734317345, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 33, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2693578', 'n_tokens_mistral': 860, 'n_tokens_neox': 657, 'n_words': 157}