<commit_before>'use strict';

angular.module('hackatonAApp')
    .controller('MainCtrl', function ($scope, $resource) {
        $scope.awesomeThings = [
            'HTML5 Boilerplate',
            'AngularJS',
            'Karma'
        ];

        var Stats = $resource(" /api/EventStats?event_id=:eventId", {eventId:"@id"});
        var ListProj=$resource("/api/project?name=:name&event_id=:eventId",{name:"@name",eventId:"@id"});


        var dates;
        var counts_commit;
        var stat=Stats.get({eventId:1},function(){
            $scope.projects_count=stat.projects_count;
            $scope.members_count=stat.members_count;
            $scope.commits_count=stat.commits_count;

            dates=stat.commit_detail.dates;
            counts_commit=stat.commit_detail.counts;

            var lineChartData = {
                labels: dates,
                datasets: [
                    {
                        fillColor: "rgba(79,206,174,0.1)",
                        strokeColor: "rgba(79,206,174,1)",
                        pointColor: "rgba(79,206,174,1)",
                        pointStrokeColor: "#f2f2f3",
                        data: counts_commit
                    }
                ]

            }

            var myLine = new Chart(document.getElementById("canvas").getContext("2d")).Line(lineChartData);
        });



        $scope.setMedal=function(index, mark){
            if(mark>0){
                switch (index){
                    case 0:
                        return "b-item__medal_gold";
                        break;

                    case 1:
                        return "b-item__medal_silver";
                        break;

                    case 2:
                        return "b-item__medal_bronze";
                }
            }
        }



    });<commit_msg>fixed<commit_after>'use strict';

angular.module('hackatonAApp')
    .controller('MainCtrl', function ($scope, $resource) {
        $scope.awesomeThings = [
            'HTML5 Boilerplate',
            'AngularJS',
            'Karma'
        ];

        var Stats = $resource(" /api/EventStats?event_id=:eventId", {eventId:"@id"});
        var ListProj=$resource("/api/project?name=:name&event_id=:eventId",{name:"@name",eventId:"@id"});


        var dates;
        var counts_commit;
        var stat=Stats.get({eventId:1},function(){
            $scope.projects_count=stat.projects_count;
            $scope.members_count=stat.members_count;
            $scope.commits_count=stat.commits_count;

            dates=stat.commit_detail.dates;
            counts_commit=stat.commit_detail.counts;

            var lineChartData = {
                labels: dates,
                datasets: [
                    {
                        fillColor: "rgba(79,206,174,0.1)",
                        strokeColor: "rgba(79,206,174,1)",
                        pointColor: "rgba(79,206,174,1)",
                        pointStrokeColor: "#f2f2f3",
                        data: counts_commit
                    }
                ]

            }

            var myLine = new Chart(document.getElementById("canvas").getContext("2d")).Line(lineChartData);
        });



        $scope.listProj=ListProj.query();

        $scope.setMedal=function(index, mark){
            if(mark>0){
                switch (index){
                    case 0:
                        return "b-item__medal_gold";
                        break;

                    case 1:
                        return "b-item__medal_silver";
                        break;

                    case 2:
                        return "b-item__medal_bronze";
                }
            }
        }



    });
{'fraction_non_alphanumeric': 0.11931053056827363, 'fraction_numerical': 0.020468623754376514, 'mean_word_length': 1.3285266457680251, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '505258', 'n_tokens_mistral': 1105, 'n_tokens_neox': 989, 'n_words': 137}