<commit_before>/********************************** Project namespace *******************************************/

/********************************** Project namespace *******************************************/
var cpkUI = (function () {

/************************************* Site Map Settings and Functions ******************************************/
var siteMap = function () {
  var solution = Dashboards.context.solution;

  return [ {name: "Dashboard1",  id:"d1",  link: undefined , action:function() {Dashboards.log("Link1");}, sublinks: [] },
           {name: "Dashboard2",  id:"d2",  link: undefined , action:function() {Dashboards.log("Link2");}, sublinks: [] },
           {name: "Dashboard3",  id:"d3",  link: undefined , action:function() {Dashboards.log("Link3");}, sublinks: [] }
         ];
}  

/************************************* Colors ******************************************/

var colors = { }
/************************************* Settings  ******************************************/

var settings = { }

return { siteMap: siteMap, 
         colors: colors, 
         settings: settings  } ;
})();

/*********************************** Functions ******************************************/



/************************************  AddIns ************************************/


;(function (){

	var parameterButton = {
	    name: "parameterButton",
	    label: "Parameter Button",
	    defaults: {
	    	buttonClass: "viewButton",
	    	buttonTitle: "View",
	      	buttonAction: function(v, st) {
	      		Dashboards.log(v);
	      	}
	    },

	    init: function(){
	      	$.fn.dataTableExt.oSort[this.name+'-asc'] = $.fn.dataTableExt.oSort['string-asc'];
	      	$.fn.dataTableExt.oSort[this.name+'-desc'] = $.fn.dataTableExt.oSort['string-desc'];
	    },
	    
	    implementation: function(tgt, st, opt){
	    	var $button = $("<button class='"+opt.buttonClass+" '>"+opt.buttonTitle+"</button>");
	 		/* onclick='"opt.buttonAction.call(this, st)"' */
	    	$button.click(function(){
	    		opt.buttonAction(st.value, st);
	    	});
	    	var $cell = $(tgt);
	    	$cell.empty();
	    	$cell.append($button);
	    }

  	};
  	Dashboards.registerAddIn("Table", "colType", new AddIn(parameterButton));
<commit_msg>cleaning js file<commit_after>/********************************** Project namespace *******************************************/

/********************************** Project namespace *******************************************/
var cpkUI = (function () {

/************************************* Site Map Settings and Functions ******************************************/
var siteMap = function () {
  var solution = Dashboards.context.solution;

  return [ {name: "Dashboard1",  id:"d1",  link: undefined , action:function() {Dashboards.log("Link1");}, sublinks: [] },
           {name: "Dashboard2",  id:"d2",  link: undefined , action:function() {Dashboards.log("Link2");}, sublinks: [] },
           {name: "Dashboard3",  id:"d3",  link: undefined , action:function() {Dashboards.log("Link3");}, sublinks: [] }
         ];
}  

/************************************* Colors ******************************************/

var colors = { }
/************************************* Settings  ******************************************/

var settings = { }

return { siteMap: siteMap, 
         colors: colors, 
         settings: settings  } ;
})();

/*********************************** Functions ******************************************/



/************************************  AddIns ************************************/


;(function (){

	var parameterButton = {
	    name: "parameterButton",
	    label: "Parameter Button",
	    defaults: {
	    	buttonClass: "viewButton",
	    	buttonTitle: "View",
	      	buttonAction: function(v, st) {
	      		Dashboards.log(v);
	      	}
	    },

	    init: function(){
	      	$.fn.dataTableExt.oSort[this.name+'-asc'] = $.fn.dataTableExt.oSort['string-asc'];
	      	$.fn.dataTableExt.oSort[this.name+'-desc'] = $.fn.dataTableExt.oSort['string-desc'];
	    },
	    
	    implementation: function(tgt, st, opt){
	    	var $button = $("<button class='"+opt.buttonClass+" '>"+opt.buttonTitle+"</button>");
	    	$button.click(function(){
	    		opt.buttonAction(st.value, st);
	    	});
	    	var $cell = $(tgt);
	    	$cell.empty();
	    	$cell.append($button);
	    }

  	};
  	Dashboards.registerAddIn("Table", "colType", new AddIn(parameterButton));

{'fraction_non_alphanumeric': 0.38131596676397933, 'fraction_numerical': 0.004042218728946777, 'mean_word_length': 3.9988776655443323, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7216983', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1211, 'n_words': 210}