<commit_before>//
// Transam specific javascript
//
var transam = new function() {

	// Converts a table to a datatable
	this.render_data_table = function(div_id, filter) {
		$("#" + div_id).dataTable( {
			"bFilter" : false,
			"bLengthChange" : true,
			"bProcessing" : true,
			"sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
			"sPaginationType": "bootstrap",
			"oLanguage": {
				"sLengthMenu": "_MENU_ records per page"
			},
			"fnDrawCallback": function( oSettings ) {
	      		transam.install_quick_link_handlers();
	    	}		
		} );		
	};
	
	// Draws a google char based on the chart data and chart options passed in
	this.draw_chart = function(div_id, chart_type, chart_options, chart_data) {

		var container = document.getElementById(div_id);
		if (container == null) {
			return;
		} 		
		var chart = null;
		if (chart_type === 'area') {
			chart = new google.visualization.AreaChart(container);
		} else if (chart_type === 'bar') {
			chart = new google.visualization.BarChart(container);
		} else if (chart_type === 'column') {
			chart = new google.visualization.ColumnChart(container);
		} else if (chart_type === 'combo') {
			chart = new google.visualization.ComboChart(document.getElementById(div_id));
		} else if (chart_type === 'histogram') {
			chart = new google.visualization.Histogram(document.getElementById(div_id));<commit_msg>Fix bug in transam JS<commit_after>//
// Transam specific javascript
//
var transam = new function() {

	// Converts a table to a datatable
	this.render_data_table = function(div_id, filter) {
		$("#" + div_id).dataTable( {
			"bFilter" : filter,
			"bLengthChange" : true,
			"bProcessing" : true,
			"sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
			"sPaginationType": "bootstrap",
			"oLanguage": {
				"sLengthMenu": "_MENU_ records per page"
			},
			"fnDrawCallback": function( oSettings ) {
	      		transam.install_quick_link_handlers();
	    	}		
		} );		
	};
	
	// Draws a google char based on the chart data and chart options passed in
	this.draw_chart = function(div_id, chart_type, chart_options, chart_data) {

		var container = document.getElementById(div_id);
		if (container == null) {
			return;
		} 		
		var chart = null;
		if (chart_type === 'area') {
			chart = new google.visualization.AreaChart(container);
		} else if (chart_type === 'bar') {
			chart = new google.visualization.BarChart(container);
		} else if (chart_type === 'column') {
			chart = new google.visualization.ColumnChart(container);
		} else if (chart_type === 'combo') {
			chart = new google.visualization.ComboChart(document.getElementById(div_id));
		} else if (chart_type === 'histogram') {
			chart = new google.visualization.Histogram(document.getElementById(div_id));
{'fraction_non_alphanumeric': 0.1520258157045536, 'fraction_numerical': 0.0028684116170670493, 'mean_word_length': 4.008976660682226, 'pattern_counts': {'":': 10, '<': 15, '<?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': '5208366', 'n_tokens_mistral': 1048, 'n_tokens_neox': 937, 'n_words': 205}