<commit_before>

var drillDownBackData=[];
var drillDownBackConfig=[];

var posDrillDownBackData=0;

function chartDrillUp(event,ctx,config,data,other)
{
	if(posDrillDownBackData>0) {
		posDrillDownBackData--;
          	ctx.fistPass=undefined;
		eval("var newchart=new Chart(document.getElementById(\"canvas_bar\").getContext(\"2d\"))."+ctx.tpchart+"(drillDownBackData[posDrillDownBackData],drillDownBackConfig[posDrillDownBackData]);");
//		updateChart(ctx,drillDownBackData[posDrillDownBackData],drillDownBackConfig[posDrillDownBackData],false,false);
	}
}

function chartDrillDown(event,ctx,config,data,other)
{
  if(other != null) {
  	if(data.datasets[other.i].drillDownData != null) {
  		if(data.datasets[other.i].drillDownData[other.j] != null) {
  			var vconfig=config;
	  		if(data.datasets[other.i].drillDownConfig != null)if(data.datasets[other.i].drillDownConfig[other.j] != null)vconfig=data.datasets[other.i].drillDownConfig[other.j];
	          	drillDownBackConfig[posDrillDownBackData]=config;
	          	drillDownBackData[posDrillDownBackData++]=data;
	          	ctx.fistPass=undefined;
			eval("var newchart=new Chart(document.getElementById(\"canvas_bar\").getContext(\"2d\"))."+ctx.tpchart+"(data.datasets[other.i].drillDownData[other.j],vconfig);");
//			updateChart(ctx,data.datasets[other.i].drillDownData[other.j],vconfig,false,false);
		}
	}
  } else if(config.drillOutsideUp){
	if(posDrillDownBackData>0) {
		posDrillDownBackData--;
          	ctx.fistPass=undefined;
		eval("var newchart=new Chart(document.getElementById(\"canvas_bar\").getContext(\"2d\"))."+ctx.tpchart+"(drillDownBackData[posDrillDownBackData],drillDownBackConfig[posDrillDownBackData]);");
//		updateChart(ctx,drillDownBackData[posDrillDownBackData],drillDownBackConfig[posDrillDownBackData],false,false);
	}
  }
}
<commit_msg>Update drillDown.js<commit_after>

var drillDownBackData=[];
var drillDownBackConfig=[];

var posDrillDownBackData=0;

function chartDrillUp(event,ctx,config,data,other)
{
	if(posDrillDownBackData>0) {
		posDrillDownBackData--;
//          	ctx.fistPass=undefined;
//		eval("var newchart=new Chart(document.getElementById(\"canvas_bar\").getContext(\"2d\"))."+ctx.tpchart+"(drillDownBackData[posDrillDownBackData],drillDownBackConfig[posDrillDownBackData]);");
		deleteHighLight(ctx,drillDownBackData[posDrillDownBackData]);
		updateChart(ctx,drillDownBackData[posDrillDownBackData],drillDownBackConfig[posDrillDownBackData],false,false);
	}
}

function chartDrillDown(event,ctx,config,data,other)
{
  if(other != null) {
  	if(data.datasets[other.i].drillDownData != null) {
  		if(data.datasets[other.i].drillDownData[other.j] != null) {
  			var vconfig=config;
	  		if(data.datasets[other.i].drillDownConfig != null)if(data.datasets[other.i].drillDownConfig[other.j] != null)vconfig=data.datasets[other.i].drillDownConfig[other.j];
	          	drillDownBackConfig[posDrillDownBackData]=config;
	          	drillDownBackData[posDrillDownBackData++]=data;
//	          	ctx.fistPass=undefined;
//			eval("var newchart=new Chart(document.getElementById(\"canvas_bar\").getContext(\"2d\"))."+ctx.tpchart+"(data.datasets[other.i].drillDownData[other.j],vconfig);");
			deleteHighLight(ctx,data.datasets[other.i].drillDownData[other.j]);
			updateChart(ctx,data.datasets[other.i].drillDownData[other.j],vconfig,false,false);
		}
	}
  } else if(config.drillOutsideUp){
	if(posDrillDownBackData>0) {
		posDrillDownBackData--;
//          	ctx.fistPass=undefined;
//		eval("var newchart=new Chart(document.getElementById(\"canvas_bar\").getContext(\"2d\"))."+ctx.tpchart+"(drillDownBackData[posDrillDownBackData],drillDownBackConfig[posDrillDownBackData]);");
		deleteHighLight(ctx,drillDownBackData[posDrillDownBackData]);
		updateChart(ctx,drillDownBackData[posDrillDownBackData],drillDownBackConfig[posDrillDownBackData],false,false);
	}
  }
}

{'fraction_non_alphanumeric': 0.15672605215595145, 'fraction_numerical': 0.003098373353989156, 'mean_word_length': 6.73253493013972, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4291441', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1396, 'n_words': 94}