<commit_before>'use strict';

angular.module('myApp.events', ['ngRoute'])

    .config(['$routeProvider', function ($routeProvider) {
        $routeProvider.when('/events', {
            templateUrl: 'events/events.html',
            controller: 'EventsCtrl'
        });
    }])

    .controller('EventsCtrl', ['$scope', function ($scope) {
        $scope.events = [
            {
                id: 1,
                name: "Studiengangabend",
                description: "auf ein Neues",
                targetGroup: "Stud I",
                contributionsDescription: "Desserts gem. Doodle",
                location: {
                    name: "HSR",
                    street: "Oberseestrasse",
                    plz: "8640",
                    city: "Rapperswil"
                },
                times: {
                    begin: "15.11.2015 19:00",
                    end: "15.11.2015 22:30"
                },
                maximalAmoutOfGuests: 150,
                guests: []
            },
            {
                id: 2,
                name: "<NAME>",
                description: "man wird alt",
                targetGroup: "Freunde",
                contributionsDescription: "gute Laune",
                location: {
                    name: "<NAME>",
                    street: "Kniestrasse",
                    plz: "8640",
                    city: "Rapperswil"
                },
                times: {
                    begin: "13.1.2016 19:00",
                    end: "13.1.2016 23:00"
                },
                maximalAmoutOfGuests: 12,
                guests: []
            },
            {
                id: 3,
                name: "<NAME>",
                description: "riesige Fete",
                targetGroup: "alle",
                contributionsDescription: "cash",
                location:{
                    name: "<NAME>",
                    street: "rue du fete",
                    plz: "2000",
                    city: "Genf"
                },
                times:{
                    begin: "1.3.2016 19:00",
                    end: "2.3.2016 23:00"
                },
                maximalAmoutOfGuests: 350,
                guests: []
            }
        ];

        $scope.slotsLeft = function( event ) {
          return event.maximalAmoutOfGuests - event.guests.length;
        };
    }]);<commit_msg>fixed typo from task...<commit_after>'use strict';

angular.module('myApp.events', ['ngRoute'])

    .config(['$routeProvider', function ($routeProvider) {
        $routeProvider.when('/events', {
            templateUrl: 'events/events.html',
            controller: 'EventsCtrl'
        });
    }])

    .controller('EventsCtrl', ['$scope', function ($scope) {
        $scope.events = [
            {
                id: 1,
                name: "Studiengangabend",
                description: "auf ein Neues",
                targetGroup: "Stud I",
                contributionsDescription: "Desserts gem. Doodle",
                location: {
                    name: "HSR",
                    street: "Oberseestrasse",
                    plz: "8640",
                    city: "Rapperswil"
                },
                times: {
                    begin: "15.11.2015 19:00",
                    end: "15.11.2015 22:30"
                },
                maximalAmountOfGuests: 150,
                guests: []
            },
            {
                id: 2,
                name: "<NAME>",
                description: "man wird alt",
                targetGroup: "Freunde",
                contributionsDescription: "gute Laune",
                location: {
                    name: "<NAME>",
                    street: "Kniestrasse",
                    plz: "8640",
                    city: "Rapperswil"
                },
                times: {
                    begin: "13.1.2016 19:00",
                    end: "13.1.2016 23:00"
                },
                maximalAmountOfGuests: 12,
                guests: []
            },
            {
                id: 3,
                name: "<NAME>",
                description: "riesige Fete",
                targetGroup: "alle",
                contributionsDescription: "cash",
                location:{
                    name: "<NAME>",
                    street: "rue du fete",
                    plz: "2000",
                    city: "Genf"
                },
                times:{
                    begin: "1.3.2016 19:00",
                    end: "2.3.2016 23:00"
                },
                maximalAmountOfGuests: 350,
                guests: []
            }
        ];

        $scope.slotsLeft = function( event ) {
          return event.maximalAmountOfGuests - event.guests.length;
        };
    }]);
{'fraction_non_alphanumeric': 0.11763485477178423, 'fraction_numerical': 0.036929460580912864, 'mean_word_length': 0.9353673223604978, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4584413', 'n_tokens_mistral': 1404, 'n_tokens_neox': 1193, 'n_words': 245}