<commit_before>describe('EventController', function() {
    beforeEach(module('af'));

    var $controller;

    beforeEach(inject(function(_$controller_) {
        $controller = _$controller_;
    }));

    describe('$scope.getDetails'), function() {
        it('sets ev.event to the the object at that index', function() {
            var $scope = {};
            var controller = $controller('EventController', { $scope: $scope});
            $scope.events = [
                {
                    "name": "testi1",
                    "time": "123",
                    "place": "mettä"
                },
                {
                    "name": "testi2",
                    "time": "132",
                    "place": "kallio"
                }
            ];

            $scope.getDetails(0);
            expect($scope.event.name).toEqual('testi1');
            expect($scope.event.time).toEqual('123');
            expect($scope.event.place).toEqual('mettä');

            $scope.getDetails(1);
            expect($scope.event.name).toEqual('testi2');
            expect($scope.event.time).toEqual('132');
            expect($scope.event.place).toEqual('kallio');
            });
        };
});<commit_msg>ei toimi.<commit_after>describe('EventController', function() {
    beforeEach(module('af'));

    var $controller;

    beforeEach(inject(function(_$controller_) {
        $controller = _$controller_;
    }));

    describe('$scope.getDetails'), function() {
        it('sets ev.event to the the object at that index', function() {
            var $scope = {};
            var $controller = $controller('EventController', { $scope: $scope});
            $scope.events = [
                {
                    "name": "testi1",
                    "time": "123",
                    "place": "mettä"
                },
                {
                    "name": "testi2",
                    "time": "132",
                    "place": "kallio"
                }
            ];

            $scope.getDetails(0);
            expect(ev.event.name).toEqual('testi1');
            expect(ev.event.time).toEqual('123');
            expect(ev.event.place).toEqual('mettä');

            $scope.getDetails(1);
            expect(ev.event.name).toEqual('testi2');
            expect(ev.event.time).toEqual('132');
            expect(ev.event.place).toEqual('kallio');
            });
        };
});
{'fraction_non_alphanumeric': 0.1621845262722383, 'fraction_numerical': 0.014894497310715763, 'mean_word_length': 1.5161290322580645, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 3, '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': '4375112', 'n_tokens_mistral': 676, 'n_tokens_neox': 641, 'n_words': 97}