<commit_before>/* --- Group members picture toggle --- */

$(document).ready(function() { 
    $("#second-row-big").on("click", "#toggle-button", function(){
    	$(this).closest("#second-row-big").find("#pictures").slideToggle();
    	if($(this).text() === 'hide members'){
    		$(this).text('show members');	
    	}else{
    		$(this).text('hide members');
    	}
    })
});


/*--------CHARTS & TIMLINE SIZE--------*/
var activePage = document.URL.split("/").pop();
if (activePage!=="lists"){
var members_nb= members.length;
};
var navbarHeight=$("#navbar-row").height();



window.onload =function() {
	$("#navbar-"+activePage).addClass("navbar-item");
	$('#timeline').height(Math.max($('#balance-expense-container').height(),$('#timeline-expense-container').height())-65+'px');
}

window.onresize =function() {
	$('#timeline').height(Math.max($('#balance-expense-container').height(),$('#timeline-expense-container').height())-65+'px');
}


/*--------CHARTS--------*/
if (activePage!=="lists"){
var graphColor=function(graphData){
	var chartColor=[];
	for(var i=0; i<graphData.length;i++){
		if(graphData[i]>=0){
			chartColor.push("rgba(168,189,68,0.5)");
		}else{			
			chartColor.push("rgba(249,126,118,0.5)");
		}
	};
	return chartColor
}

if (activePage!=="lists"){
var members_chart=[];
for (var i = 0; i < members.length; i++) {
	members_chart[i]='';

}



var colorFill=graphColor(balances);
var data = {
			labels : members_chart,
			datasets : [
						{
							fillColor : colorFill,
							strokeColor : "rgba(220,220,220,1)",
							data : balances
						}
						]
					}

};

var ctx = document.getElementById("balanceChart").getContext("2d");
new Chart(ctx).Bar(data,{
    scaleOverlay : false,
	scaleShowLabels : false
});
};

/*-------labels------*/
if (activePage!=="lists"){
$('#chart-labels').width($('#balanceChart').width());
		for(var i=0; i<members.length;i++){
			if (activePage==="expenses"){
				if (balances[i]>=0){
				var column_member="<td style='width:70px; min-width:70px; color:#A8BD44; vertical-align:top;overflow: hidden; padding:0'> <div>"+ members[i]+" </td>	";			
				var column_balance="<td style='width:70px; min-width:70px; color:#A8BD44; vertical-align:top;overflow: hidden; padding:0'> "+ balances[i]+currency+" </td>	";
				}else{

				var column_member="<td style='width:70px; min-width:70px; color:#F97E76;vertical-align:top;overflow: hidden; padding:0'> "+ members[i]+" </td>	";			
				var column_balance="<td style='width:70px; min-width:70px; color:#F97E76;vertical-align:top;overflow: hidden; padding:0'> "+ balances[i]+currency+" </td>	";

				}
			}else{
				if (balances[i]>=0){
				var column_member="<td style='width:100px; color:#A8BD44;vertical-align:top;'> "+ members[i]+" </td>	";			
				var column_balance="<td style='width:100px; color:#A8BD44;vertical-align:top;'> "+ balances[i]+currency+" </td>	";
				}else{

				var column_member="<td style='width:100px; color:#F97E76;vertical-align:top;'> "+ members[i]+" </td>	";			
				var column_balance="<td style='width:100px; color:#F97E76;vertical-align:top;'> "+ balances[i]+currency+" </td>	";

				}

			}


			$('#member-row').append(column_member);
			$('#balance-row').append(column_balance);
	};


};


/*-------TOOLTIPS--------*/
    $(function () {
        $("[rel='tooltip']").tooltip({placement: 'top'});
    });


/*-------Pinpoint buttons on timeline (date)--------*/

$('.pinpoint-button').hover(function () {
    this.src = 'http://twinkler.co/img/frame/tmln-btn-hover.png';
}, function () {
    this.src = 'http://twinkler.co/img/frame/tmln-btn.png';
});

var today=new Date();
var dd=today.getDate();
var mm=today.getMonth()+1;

if(dd<10){dd='0'+dd};
 if(mm<10){mm='0'+mm};

$('#today-pinpoint').attr('title', dd +"/"+mm);


/*----chart scroll-----*/
$(document).ready(function() { 
    $("#balance-slimscroll").niceScroll();
});

/* --- Expense filter --- */
$(document).ready(function() { 
    $("#show-all-button").on("click", function(){
    	$(".expense-block").fadeIn();
    	$("#only-mine-button").removeClass("active");
    	$(this).addClass("active");
    });
    $("#only-mine-button").on("click", function(){
    	$(".expense-block").filter(".nottagged").fadeOut();
    	$("#show-all-button").removeClass("active");
    	$(this).addClass("active");
    });
});



<commit_msg>bullet point timeline<commit_after>/* --- Group members picture toggle --- */

$(document).ready(function() { 
    $("#second-row-big").on("click", "#toggle-button", function(){
    	$(this).closest("#second-row-big").find("#pictures").slideToggle();
    	if($(this).text() === 'hide members'){
    		$(this).text('show members');	
    	}else{
    		$(this).text('hide members');
    	}
    })
});


/*--------CHARTS & TIMLINE SIZE--------*/
var activePage = document.URL.split("/").pop();
if (activePage!=="lists"){
var members_nb= members.length;
};
var navbarHeight=$("#navbar-row").height();



window.onload =function() {
	$("#navbar-"+activePage).addClass("navbar-item");
	$('#timeline').height(Math.max($('#balance-expense-container').height(),$('#timeline-expense-container').height())-65+'px');
}

window.onresize =function() {
	$('#timeline').height(Math.max($('#balance-expense-container').height(),$('#timeline-expense-container').height())-65+'px');
}


/*--------CHARTS--------*/
if (activePage!=="lists"){
var graphColor=function(graphData){
	var chartColor=[];
	for(var i=0; i<graphData.length;i++){
		if(graphData[i]>=0){
			chartColor.push("rgba(168,189,68,0.5)");
		}else{			
			chartColor.push("rgba(249,126,118,0.5)");
		}
	};
	return chartColor
}

if (activePage!=="lists"){
var members_chart=[];
for (var i = 0; i < members.length; i++) {
	members_chart[i]='';

}



var colorFill=graphColor(balances);
var data = {
			labels : members_chart,
			datasets : [
						{
							fillColor : colorFill,
							strokeColor : "rgba(220,220,220,1)",
							data : balances
						}
						]
					}

};

var ctx = document.getElementById("balanceChart").getContext("2d");
new Chart(ctx).Bar(data,{
    scaleOverlay : false,
	scaleShowLabels : false
});
};

/*-------labels------*/
if (activePage!=="lists"){
$('#chart-labels').width($('#balanceChart').width());
		for(var i=0; i<members.length;i++){
			if (activePage==="expenses"){
				if (balances[i]>=0){
				var column_member="<td style='width:70px; min-width:70px; color:#A8BD44; vertical-align:top;overflow: hidden; padding:0'> <div>"+ members[i]+" </td>	";			
				var column_balance="<td style='width:70px; min-width:70px; color:#A8BD44; vertical-align:top;overflow: hidden; padding:0'> "+ balances[i]+currency+" </td>	";
				}else{

				var column_member="<td style='width:70px; min-width:70px; color:#F97E76;vertical-align:top;overflow: hidden; padding:0'> "+ members[i]+" </td>	";			
				var column_balance="<td style='width:70px; min-width:70px; color:#F97E76;vertical-align:top;overflow: hidden; padding:0'> "+ balances[i]+currency+" </td>	";

				}
			}else{
				if (balances[i]>=0){
				var column_member="<td style='width:100px; color:#A8BD44;vertical-align:top;'> "+ members[i]+" </td>	";			
				var column_balance="<td style='width:100px; color:#A8BD44;vertical-align:top;'> "+ balances[i]+currency+" </td>	";
				}else{

				var column_member="<td style='width:100px; color:#F97E76;vertical-align:top;'> "+ members[i]+" </td>	";			
				var column_balance="<td style='width:100px; color:#F97E76;vertical-align:top;'> "+ balances[i]+currency+" </td>	";

				}

			}


			$('#member-row').append(column_member);
			$('#balance-row').append(column_balance);
	};


};


/*-------TOOLTIPS--------*/
    $(function () {
        $("[rel='tooltip']").tooltip({placement: 'top'});
    });


/*-------Pinpoint buttons on timeline (date)--------*/

$('.pinpoint-button').hover(function () {
    this.src = 'http://twinkler.co/img/Frame/tmln-btn-hover.png';
}, function () {
    this.src = 'http://twinkler.co/img/Frame/tmln-btn.png';
});

var today=new Date();
var dd=today.getDate();
var mm=today.getMonth()+1;

if(dd<10){dd='0'+dd};
 if(mm<10){mm='0'+mm};

$('#today-pinpoint').attr('title', dd +"/"+mm);


/*----chart scroll-----*/
$(document).ready(function() { 
    $("#balance-slimscroll").niceScroll();
});

/* --- Expense filter --- */
$(document).ready(function() { 
    $("#show-all-button").on("click", function(){
    	$(".expense-block").fadeIn();
    	$("#only-mine-button").removeClass("active");
    	$(this).addClass("active");
    });
    $("#only-mine-button").on("click", function(){
    	$(".expense-block").filter(".nottagged").fadeOut();
    	$("#show-all-button").removeClass("active");
    	$(this).addClass("active");
    });
});




{'fraction_non_alphanumeric': 0.25960203609440075, 'fraction_numerical': 0.025219805645534474, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 43, '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': '5955581', 'n_tokens_mistral': 3436, 'n_tokens_neox': 3045, 'n_words': 428}