<commit_before>function mergeObject(ob1, ob2) {
	for (var p in ob2) ob1[p] = ob2[p];
	return ob1;
}

function setUpDataTable(tableId, colDefs, extraConfig) {

	// make column defs
	var columnDefs = [];
	for (var c in colDefs) {
		columnDefs[columnDefs.length] = {
			"orderable": colDefs[c][0] > 0,
			"searchable": colDefs[c][1] > 0
		};
	}

	// suppress warning
	window.alert = (function () {
		var nativeAlert = window.alert;
		return function (message) {
			window.alert = nativeAlert;
			message.indexOf("DataTables warning") === 0 ?
				console.warn(message) :
				nativeAlert(message);
		}
	})();

	// do the magic
	$(tableId).DataTable(mergeObject({
		"language": {
			"aria": {
				"sortAscending": ": activate to sort column ascending",
				"sortDescending": ": activate to sort column descending"
			},
			"emptyTable": "<i>There is no data to display in this table.</i>",
			"info": "Showing _START_ of _END_ (_TOTAL_ results found)",
			"infoEmpty": "No entries found",
			"infoFiltered": "from _MAX_ entries",
			"lengthMenu": "Display _MENU_ rows",
			"search": "",
			"zeroRecords": "<i>We couldn't find what you were searching for. Please check your spelling or try searching manually.</i>",
			"paginate": {
				"previous": "Prev",
				"next": "Next",
				"last": "Last",
				"first": "First"
			}
		},
		"bStateSave": false,
		"columns": columnDefs,
		"lengthMenu": [
			[20, 50, -1],
			[20, 50, "All"]
		],
		"pageLength": 20,
		"pagingType": "bootstrap_full_number"
	}, extraConfig));

}
<commit_msg>Fade on load<commit_after>function mergeObject(ob1, ob2) {
	for (var p in ob2) ob1[p] = ob2[p];
	return ob1;
}

function setUpDataTable(tableId, colDefs, extraConfig) {

	// make column defs
	var columnDefs = [];
	for (var c in colDefs) {
		columnDefs[columnDefs.length] = {
			"orderable": colDefs[c][0] > 0,
			"searchable": colDefs[c][1] > 0
		};
	}

	// suppress warning
	window.alert = (function () {
		var nativeAlert = window.alert;
		return function (message) {
			window.alert = nativeAlert;
			message != null && message.indexOf("DataTables warning") === 0 ?
				console.warn(message) :
				nativeAlert(message);
		}
	})();

	// do the magic
	$(tableId)
		.DataTable(mergeObject({
			"language": {
				"aria": {
					"sortAscending": ": activate to sort column ascending",
					"sortDescending": ": activate to sort column descending"
				},
				"emptyTable": "<em>There is no data to display in this table.</em>",
				"info": "Showing _START_ of _END_ (_TOTAL_ results found)",
				"infoEmpty": "No entries found",
				"infoFiltered": "from _MAX_ entries",
				"lengthMenu": "Display _MENU_ rows",
				"search": "",
				"zeroRecords": "<em>We couldn't find what you were searching for. Please check your spelling or try searching manually.</em>",
				"paginate": {
					"previous": "Prev",
					"next": "Next",
					"last": "Last",
					"first": "First"
				}
			},
			"bStateSave": false,
			"columns": columnDefs,
			"lengthMenu": [
				[20, 50, -1],
				[20, 50, "All"]
			],
			"pageLength": 20,
			"pagingType": "bootstrap_full_number"
		}, extraConfig))
		.on('preXhr.dt', function (e, s, j) {
			$(this).fadeTo(0, 0.4);
		})
		.on('xhr.dt', function(e, s, j) {
			$(this).fadeTo(0, 1.0);
		});

	// kill processing message
	$('.dataTables_processing').remove();

}

{'fraction_non_alphanumeric': 0.17307110438729198, 'fraction_numerical': 0.015128593040847202, 'mean_word_length': 3.4615384615384617, 'pattern_counts': {'":': 50, '<': 11, '<?xml version=': 0, '>': 15, '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': '135643', 'n_tokens_mistral': 1385, 'n_tokens_neox': 1158, 'n_words': 304}