<commit_before>function abuses(){
    abuse_chart = new Highcharts.Chart(
        {
            chart: {
                renderTo:'abuse',
                defaultSeriesType:'column',
                margin:[50,50,100,80]
            },
            title :{
                text:'Abuse Cases Reported this Month'
            },
            xAxis:{
                categories:
                    //['{{ districts|join:"','"}}']
                    [
                        'kampala',
                        'jinja',
                        'Mbale',
                        'Kotido'
                    ]
            },
            labels:{
                rotation:-45,
                align:'right',
                style:{
                    font:'normal 13px Verdana, sans-serif'
                }
            },
            yAxis:{
                min:0,
                title:{
                    text: 'Number of Cases'
                }
            },
            legend:{
                enabled:false
            },
            tooltip:{
                formatter:function(){
                    return '<b>'+ this.x+'</b><br/>'+ 'Abuses case:'+Highcharts.numberFormat(this.y, 1) + ' cases';
                }
            },
            series:[
                {
                    name: 'Numbers',
                    data : [
                        34.4, 21.8, 20, 34
                    ],
                    dataLabels:{
                        enabled:true,
                        rotation:-90,
                        color:'#FFFFFF',
                        align:'right',
                        x:-3,
                        y:10,
                        formatter:function(){
                            return this.y;
                        },
                        style:{
                            font:'normal 13px Verdana, sans-serif'
                        }
                    }
                }
            ]
        }
    );
}


function smc_meetings() {
    meeting_chart = new Highcharts.Chart({
        chart: {
            renderTo: 'smc_meetings',
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false
        },
        title: {
            text: 'SMC Meetings this School Term'
        },
        tooltip: {
            formatter: function() {
                return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
            }
        },
        plotOptions: {
            pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: {
                    enabled: true
                },
                showInLegend: false
            }
        },
        series: [{
            type: 'pie',
            name: 'Browser share',
            data: [
                ['one meeting',  78],
                ['two meetings',       9],
                ['Three meetings', 13]
            ],
        }]
    });
}


function lunches() {
    lunch_chart = new Highcharts.Chart({
        chart: {
            renderTo: 'lunch',
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false
        },
        title: {
            text: 'Lunch at School this Month'
        },
        tooltip: {
            formatter: function() {
                return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
            }
        },
        plotOptions: {
            pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: {
                    enabled: true
                },
                showInLegend:false
            }
        },
        series: [{
            type: 'pie',
            name: 'Browser share',
            data: [
                ['Firefox',   45.0],
                ['IE',       26.8],
                {
                    name: 'Chrome',
                    y: 12.8,
                    sliced: true,
                    selected: true
                },
                ['Safari',    8.5],
                ['Opera',     6.2],
                ['Others',   0.7]
            ]
        }]
    });
}

function progress(){
    $.fn.animateProgress = function(progress, callback){
        return this.each(function(){
            $(this).animate(
                {
                    width:progress + '%'
                },
                {
                    duration:2000,
                    easing:'swing',
                    step: function(progress){
                        var labelE1 = $('.ui_label', this), valueE1 = $('.value', labelE1);
                        if (Math.ceil(progress) < 20 && $('.ui_label',this).is(":visible")){
                            labelE1.hide();
                        } else {
                            if (labelE1.is(":hidden")){
                                labelE1.fadeIn();
                            };
                        }
<commit_msg>depracted functions from js removed placed inline instead<commit_after>function smc_meetings() {
    meeting_chart = new Highcharts.Chart({
        chart: {
            renderTo: 'smc_meetings',
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false
        },
        title: {
            text: 'SMC Meetings this School Term'
        },
        tooltip: {
            formatter: function() {
                return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
            }
        },
        plotOptions: {
            pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: {
                    enabled: true
                },
                showInLegend: false
            }
        },
        series: [{
            type: 'pie',
            name: 'Browser share',
            data: [
                ['one meeting',  78],
                ['two meetings',       9],
                ['Three meetings', 13]
            ],
        }]
    });
}

function progress(){
    $.fn.animateProgress = function(progress, callback){
        return this.each(function(){
            $(this).animate(
                {
                    width:progress + '%'
                },
                {
                    duration:2000,
                    easing:'swing',
                    step: function(progress){
                        var labelE1 = $('.ui_label', this), valueE1 = $('.value', labelE1);
                        if (Math.ceil(progress) < 20 && $('.ui_label',this).is(":visible")){
                            labelE1.hide();
                        } else {
                            if (labelE1.is(":hidden")){
                                labelE1.fadeIn();
                            };
                        }

{'fraction_non_alphanumeric': 0.11476372174933959, 'fraction_numerical': 0.011887290871734664, 'mean_word_length': 0.809131935226971, 'pattern_counts': {'":': 4, '<': 14, '<?xml version=': 0, '>': 12, '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': '8962', 'n_tokens_mistral': 1754, 'n_tokens_neox': 1564, 'n_words': 312}