<commit_before>function getDayCount(){
		var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds
		var firstDate = new Date();
		var secondDate = new Date(2015,07,09);

		var diffDays = Math.round(Math.abs((firstDate.getTime() - secondDate.getTime())/(oneDay)));
		return diffDays;
	}

$(".faltan").html("Calendario electoral: faltan <span class='dias'>"+getDayCount()+" d&#237;as</span> para las PASO");
var elecUrl="/election/pre-candidato-a-presidente";
var jsonUrl= elections_json[0].medianaranja_link;
if (window.elections_json) {        

        var options_eleccion = '';
        options_eleccion += '<option value="' + elecUrl + '"><h4>Elige tu distrito</h4><\/option>';
        $.each(elections_json, function(key,value){
                //console.log(value["detaillink"]);
                options_eleccion += '<option value="' + value["detaillink"] + '"><h4>' +  value["name"] + '</h4><\/option>';
        });
        $("select#eleccion").html(options_eleccion);

        $( "select#eleccion" ).change( function(){
                elecUrl=$( "select#eleccion option:selected").val();
        });

        function jugar(){

        //url = "/theme/election/pre-candidato-a-presidente/media-naranja.json";

                location.href="/theme"+elecUrl+"/media-naranja";
                jsonUrl=elecUrl+"/media-naranja.json";

        }


        $(".bEmpez").click(function() {
                jugar();
        });        
}

<commit_msg>argentina-theme js<commit_after>function getDayCount(){
		var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds
		var firstDate = new Date();
		var secondDate = new Date(2015,07,09);

		var diffDays = Math.round(Math.abs((firstDate.getTime() - secondDate.getTime())/(oneDay)));
		return diffDays;
	}

$(".faltan").html("Calendario electoral: faltan <span class='dias'>"+getDayCount()+" d&#237;as</span> para las PASO");
var elecUrl="/election/pre-candidato-a-presidente";
var jsonUrl= "/theme/election/pre-candidato-a-presidente/media-naranja.json";
if (window.elections_json) {        
	jsonUrl= elections_json[0].medianaranja_link;

        var options_eleccion = '';
        options_eleccion += '<option value="' + elecUrl + '"><h4>Elige tu distrito</h4><\/option>';
        $.each(elections_json, function(key,value){
                //console.log(value["detaillink"]);
                options_eleccion += '<option value="' + value["detaillink"] + '"><h4>' +  value["name"] + '</h4><\/option>';
        });
        $("select#eleccion").html(options_eleccion);

        $( "select#eleccion" ).change( function(){
                elecUrl=$( "select#eleccion option:selected").val();
        });

        function jugar(){

        //url = "/theme/election/pre-candidato-a-presidente/media-naranja.json";

                location.href="/theme"+elecUrl+"/media-naranja";
                jsonUrl=elecUrl+"/media-naranja.json";

        }


        $(".bEmpez").click(function() {
                jugar();
        });        
}


{'fraction_non_alphanumeric': 0.186, 'fraction_numerical': 0.017333333333333333, 'mean_word_length': 2.8923476005188067, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1677045', 'n_tokens_mistral': 1056, 'n_tokens_neox': 965, 'n_words': 143}