<commit_before>$(document).ready(function(){						
						
						$.fn.qTip('gene');	// bubble popup for brief panel documentation					
						//function to fire off a refresh of a table and it's dropdown filters
				
						
						/* var oDataTable = $('table#phenotypes').dataTable();
						oDataTable.fnDestroy();  */
						// use jquery DataTable for table searching/sorting/pagination
						var aDataTblCols = [0,1,2,3,4,5,6];
						var oDataTable = $.fn.initDataTable($('table#phenotypes'), {
			  						"aoColumns": [
			  							{ "sType": "html", "mRender":function( data, type, full ) {
			  						        return (type === "filter") ? $(data).text() : data;
			  						    }},
			  							{ "sType": "html", "mRender":function( data, type, full ) {
			  						        return (type === "filter") ? $(data).text() : data;
			  						    }},
			  						    { "sType": "string"},
			  						    { "sType": "string"},
			  							{ "sType": "alt-string", "bSearchable" : false },
			  						   /*  { "sType": "string"}, */
			  						    { "sType": "html"}
			  						    , { "sType": "string", "bSortable" : false }

			  						],
			  						"bDestroy": true,
			  						"bFilter":false
			  					});
						
						$('[rel=tooltip]').tooltip();
													    		
			    		//$.fn.dataTableshowAllShowLess(oDataTable, aDataTblCols, null);
			    		$('div#exportIconsDiv').append($.fn.loadFileExporterUI({
			    			label: 'Export table as:',
			    			formatSelector: {
			    				TSV: 'tsv_phenoAssoc',
			    				XLS: 'xls_phenoAssoc'	    			 					
			    			},
			    			class: 'fileIcon'
			    		}));
			    		
			    		var mgiGeneId = window.location.href.split("/")[window.location.href.split("/").length-1];
			    		alert(mgiGeneId);
			    		
			    		initFileExporter({
			    			mgiGeneId: mgiGeneId,
			    			externalDbId: 3,
			    			fileName: 'phenotype_associations_for_'+mgiGeneId.replace(/:/g,'_'),
			    			solrCoreName: 'genotype-phenotype',
			    			dumpMode: 'all',
			    			baseUrl: baseUrl,
			    			page:"gene",
			    			gridFields: 'marker_symbol,allele_symbol,zygosity,sex,procedure_name,resource_fullname,parameter_stable_id,marker_accession_id, parameter_name,parameter_name,mp_term_name',
			    			params: "qf=auto_suggest&defType=edismax&wt=json&rows=100000&q=*:*&fq=(marker_accession_id:\"" + mgiGeneId + "\")"
			    		});
			    		function initFileExporter(conf){

			    			$('button.fileIcon').click(function(){
			    				var fileType = $(this).text();
			    				var url = baseUrl + '/export';	 
			    				var sInputs = '';
			    				for ( var k in conf ){
			    					sInputs += "<input type='text' name='" + k + "' value='" + conf[k] + "'>";	 
			    				}
			    				sInputs += "<input type='text' name='fileType' value='" + fileType.toLowerCase() + "'>";<commit_msg>removed annoying dropdown filter alert as it comes up on every gene page load<commit_after>$(document).ready(function(){						
						
						$.fn.qTip('gene');	// bubble popup for brief panel documentation					
						//function to fire off a refresh of a table and it's dropdown filters
				
						
						/* var oDataTable = $('table#phenotypes').dataTable();
						oDataTable.fnDestroy();  */
						// use jquery DataTable for table searching/sorting/pagination
						var aDataTblCols = [0,1,2,3,4,5,6];
						var oDataTable = $.fn.initDataTable($('table#phenotypes'), {
			  						"aoColumns": [
			  							{ "sType": "html", "mRender":function( data, type, full ) {
			  						        return (type === "filter") ? $(data).text() : data;
			  						    }},
			  							{ "sType": "html", "mRender":function( data, type, full ) {
			  						        return (type === "filter") ? $(data).text() : data;
			  						    }},
			  						    { "sType": "string"},
			  						    { "sType": "string"},
			  							{ "sType": "alt-string", "bSearchable" : false },
			  						   /*  { "sType": "string"}, */
			  						    { "sType": "html"}
			  						    , { "sType": "string", "bSortable" : false }

			  						],
			  						"bDestroy": true,
			  						"bFilter":false
			  					});
						
						$('[rel=tooltip]').tooltip();
													    		
			    		//$.fn.dataTableshowAllShowLess(oDataTable, aDataTblCols, null);
			    		$('div#exportIconsDiv').append($.fn.loadFileExporterUI({
			    			label: 'Export table as:',
			    			formatSelector: {
			    				TSV: 'tsv_phenoAssoc',
			    				XLS: 'xls_phenoAssoc'	    			 					
			    			},
			    			class: 'fileIcon'
			    		}));
			    		
			    		var mgiGeneId = window.location.href.split("/")[window.location.href.split("/").length-1];
			    		//alert(mgiGeneId);
			    		
			    		initFileExporter({
			    			mgiGeneId: mgiGeneId,
			    			externalDbId: 3,
			    			fileName: 'phenotype_associations_for_'+mgiGeneId.replace(/:/g,'_'),
			    			solrCoreName: 'genotype-phenotype',
			    			dumpMode: 'all',
			    			baseUrl: baseUrl,
			    			page:"gene",
			    			gridFields: 'marker_symbol,allele_symbol,zygosity,sex,procedure_name,resource_fullname,parameter_stable_id,marker_accession_id, parameter_name,parameter_name,mp_term_name',
			    			params: "qf=auto_suggest&defType=edismax&wt=json&rows=100000&q=*:*&fq=(marker_accession_id:\"" + mgiGeneId + "\")"
			    		});
			    		function initFileExporter(conf){

			    			$('button.fileIcon').click(function(){
			    				var fileType = $(this).text();
			    				var url = baseUrl + '/export';	 
			    				var sInputs = '';
			    				for ( var k in conf ){
			    					sInputs += "<input type='text' name='" + k + "' value='" + conf[k] + "'>";	 
			    				}
			    				sInputs += "<input type='text' name='fileType' value='" + fileType.toLowerCase() + "'>";
{'fraction_non_alphanumeric': 0.1623422159887798, 'fraction_numerical': 0.005259467040673212, 'mean_word_length': 1.962097611630322, 'pattern_counts': {'":': 26, '<': 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': '1079736', 'n_tokens_mistral': 2672, 'n_tokens_neox': 1911, 'n_words': 311}