<commit_before>
$('window').ready(function(){

  var f = new Date();
  var MonthNames = ["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"];
  var DayNames = ["Lun","Mar","Mie","Jue","Vie","Sab","Dom"];

	  
  //Viajes en el ultimo mes
	var posDias = 1;
	var dias = new Array();
	var diasMes = new Array();
	  
	$.getJSON('/statistics/gettravelsbylastmonth/', function(json) {
    $.each( json, function( key, val ) {
			diasMes[posDias] = val;
			dias[posDias] = key;
			posDias = posDias + 1;			
		});
		
		var lineChartData = {
     	labels : [dias[1],dias[2],dias[3],dias[4],dias[5],dias[6],
           			dias[7],dias[8],dias[9],dias[10],dias[11],dias[12],
          			dias[13],dias[14],dias[15],dias[16],dias[17],dias[18],
          			dias[19],dias[20],dias[21],dias[22],dias[23],dias[24],
          			dias[25],dias[26],dias[27],dias[28],dias[29],dias[30],dias[31]
               ],	
      datasets : [{
        fillColor : "rgba(120,120,120,0.5)",
        strokeColor : "rgba(120,120,120,1)",
        pointColor : "rgba(120,120,120,1)",
        pointStrokeColor : "#fff",        			
  			data : [diasMes[1],diasMes[2],diasMes[3],diasMes[4],diasMes[5],diasMes[6],
            		diasMes[7],diasMes[8],diasMes[9],diasMes[10],diasMes[11],diasMes[12],
            		diasMes[13],diasMes[14],diasMes[15],diasMes[16],diasMes[17],diasMes[18],
            		diasMes[19],diasMes[20],diasMes[21],diasMes[22],diasMes[23],diasMes[24],
            		diasMes[25],diasMes[26],diasMes[27],diasMes[28],diasMes[29],diasMes[30],diasMes[31]
               ]
			},]
	  };
			
		var options = { 
			scaleShowGridLines: true,
			scaleOverride: true,
			scaleSteps: 2,
			scaleStepWidth: 5,
			scaleStartValue: 0,
      scaleLineColor: "rgba(0.9,0.2,0,.1)",
			scaleLineWidth: 0,
			scaleShowLabels: true,
			scaleFontColor: "#000",
			barDatasetSpacing: 2,
			barStrokeWidth: 2
		};

		new Chart(document.getElementById("travelsLastMonth").getContext("2d")).Line(lineChartData,options);
	
  });


  //Viajes en el último año
	var posMes = 1;
	var meses = new Array();
	var viajesUYear = new Array();
	  

	$.getJSON('/statistics/gettravelsbylastyear/', function(json) {
    $.each( json, function( key, val ) {
			viajesUYear[posMes] = val;
			meses[posMes] = key;
			posMes = posMes + 1;
  	});
		
    var labels = [];
    var data = [];
    for (var i=0; i<13; i++) { 
      var j = f.getMonth() +1;
      labels[i] = MonthNames[j];
      data[i] = viajesUYear[j];
    }<commit_msg>bug fixed<commit_after>
$('window').ready(function(){

  var f = new Date();
  var MonthNames = ["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"];
  var DayNames = ["Lun","Mar","Mie","Jue","Vie","Sab","Dom"];

	  
  //Viajes en el ultimo mes
	var posDias = 1;
	var dias = new Array();
	var diasMes = new Array();
	  
	$.getJSON('/statistics/gettravelsbylastmonth/', function(json) {
    $.each( json, function( key, val ) {
			diasMes[posDias] = val;
			dias[posDias] = key;
			posDias = posDias + 1;			
		});
		
		var lineChartData = {
     	labels : [dias[1],dias[2],dias[3],dias[4],dias[5],dias[6],
           			dias[7],dias[8],dias[9],dias[10],dias[11],dias[12],
          			dias[13],dias[14],dias[15],dias[16],dias[17],dias[18],
          			dias[19],dias[20],dias[21],dias[22],dias[23],dias[24],
          			dias[25],dias[26],dias[27],dias[28],dias[29],dias[30],dias[31]
               ],	
      datasets : [{
        fillColor : "rgba(120,120,120,0.5)",
        strokeColor : "rgba(120,120,120,1)",
        pointColor : "rgba(120,120,120,1)",
        pointStrokeColor : "#fff",        			
  			data : [diasMes[1],diasMes[2],diasMes[3],diasMes[4],diasMes[5],diasMes[6],
            		diasMes[7],diasMes[8],diasMes[9],diasMes[10],diasMes[11],diasMes[12],
            		diasMes[13],diasMes[14],diasMes[15],diasMes[16],diasMes[17],diasMes[18],
            		diasMes[19],diasMes[20],diasMes[21],diasMes[22],diasMes[23],diasMes[24],
            		diasMes[25],diasMes[26],diasMes[27],diasMes[28],diasMes[29],diasMes[30],diasMes[31]
               ]
			},]
	  };
			
		var options = { 
			scaleShowGridLines: true,
			scaleOverride: true,
			scaleSteps: 2,
			scaleStepWidth: 5,
			scaleStartValue: 0,
      scaleLineColor: "rgba(0.9,0.2,0,.1)",
			scaleLineWidth: 0,
			scaleShowLabels: true,
			scaleFontColor: "#000",
			barDatasetSpacing: 2,
			barStrokeWidth: 2
		};

		new Chart(document.getElementById("travelsLastMonth").getContext("2d")).Line(lineChartData,options);
	
  });


  //Viajes en el último año
	var posMes = 1;
	var meses = new Array();
	var viajesUYear = new Array();
	  

	$.getJSON('/statistics/gettravelsbylastyear/', function(json) {
    $.each( json, function( key, val ) {
			viajesUYear[posMes] = val;
			meses[posMes] = key;
			posMes = posMes + 1;
  	});
		
    var labels = [];
    var data = [];
    for (var i=0; i<13; i++) { 
      var j = f.getMonth() +1;
      labels[i] = MonthNames[j];
      data[i] = viajesUYear[j];
      j++;
      if j == 12
        j = 0;
    }
{'fraction_non_alphanumeric': 0.20055765783708424, 'fraction_numerical': 0.06472814180442144, 'mean_word_length': 3.2060301507537687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '889837', 'n_tokens_mistral': 2431, 'n_tokens_neox': 2132, 'n_words': 283}