<commit_before>angular.module('bfSS').controller('bfSSResultsController', [
	'$scope', 
	'$routeParams',
    '$http',
	function($scope, $routeParams, $http) {
        var getFullLabel = function(label, value, total) {
            var percentage = Math.floor(((value/total) * 100)+0.5);
            var interval = Math.floor(1960*Math.sqrt((value/total*(1-value/total))/total))/10;
            return label + " : " + percentage + "% (+/- " + interval + '%)';
        };
        
        var getNewChartConfig = function(label) {
            return {
                options: {
                    chart: {type: 'pie'},
                    plotOptions: {
                        pie: {
                            dataLabels: {
                                useHTML: true,
                                distance: 40,
                                y: -10
                            }
                        }
                    }
                },
                /*plotOptions: {
                    series : {
                        dataLabels: {
                            enabled: true,
                            format: 'to {y} <img src="http://vignette3.wikia.nocookie.net/bravefrontierrpg/images/6/65/Unit_ills_thum_50166.png/revision/latest/scale-to-width-down/42?cb=20160106141141&path-prefix=fr"></img>',
                            useHTML: true
                        }
                    }
                },*/
                series: [
                    {data: []}
                ],
                title: {text:label},
                loading: false
            };
        }
        
        var getData = function(id) {
            $http.get('data/' + id + '-schema.json').success(function(schema) {
                $http.get('data/' + id + '-data.json').success(function(data) {<commit_msg>changed serie name<commit_after>angular.module('bfSS').controller('bfSSResultsController', [
	'$scope', 
	'$routeParams',
    '$http',
	function($scope, $routeParams, $http) {
        var getFullLabel = function(label, value, total) {
            var percentage = Math.floor(((value/total) * 100)+0.5);
            var interval = Math.floor(1960*Math.sqrt((value/total*(1-value/total))/total))/10;
            return label + " : " + percentage + "% (+/- " + interval + '%)';
        };
        
        var getNewChartConfig = function(label) {
            return {
                options: {
                    chart: {type: 'pie'},
                    plotOptions: {
                        pie: {
                            dataLabels: {
                                useHTML: true,
                                distance: 40,
                                y: -10
                            }
                        }
                    }
                },
                /*plotOptions: {
                    series : {
                        dataLabels: {
                            enabled: true,
                            format: 'to {y} <img src="http://vignette3.wikia.nocookie.net/bravefrontierrpg/images/6/65/Unit_ills_thum_50166.png/revision/latest/scale-to-width-down/42?cb=20160106141141&path-prefix=fr"></img>',
                            useHTML: true
                        }
                    }
                },*/
                series: [
                    {
                        data: [],
                        name:"Summoned"
                    }
                ],
                title: {text:label},
                loading: false
            };
        }
        
        var getData = function(id) {
            $http.get('data/' + id + '-schema.json').success(function(schema) {
                $http.get('data/' + id + '-data.json').success(function(data) {
{'fraction_non_alphanumeric': 0.12841091492776885, 'fraction_numerical': 0.021936864633493848, 'mean_word_length': 0.9994652406417113, 'pattern_counts': {'":': 0, '<': 7, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7473344', 'n_tokens_mistral': 1022, 'n_tokens_neox': 925, 'n_words': 137}