<commit_before>angular.module('growlNotifications.directives')
    .directive('growlNotifications', ['growlNotifications', '$sce', '$rootScope', function(growlNotifications, $sce, $rootScope){

        return {
            restrict: 'AE',
            replace: true,
            template: '<ul class="list-unstyled"></ul>',
            link: function(scope, iElem, iAttrs, ctrls, transcludeFn){

                console.log('linked');

                var updateList = function(event, notifications){

                    console.log('HEARD EVENT!');
                    var items = [];

                    angular.forEach(notifications, function(notification){
                        var markup = [];
                        markup.push('<li class="alert alert-' + notification.type + '">');
                        markup.push($sce.getTrustedHtml(notification.message));
                        markup.push('</li>');
                        items.push(markup.join(''));
                    });

                    iElem.html(items.join(''));
                };

                scope.$on('growlNotifications::update', updateList);

                updateList(null, growlNotifications.notifications);

            }

        };

    }]);<commit_msg>Updated growlNotifications directive to support animation<commit_after>angular.module('growlNotifications.directives')
    .directive('growlNotifications', ['growlNotifications', '$sce', '$rootScope', '$injector', function(growlNotifications, $sce, $rootScope, $injector){

        return {
            restrict: 'AE',
            replace: true,
            template: '<ul class="list-unstyled"><li ng-repeat="(id, notification) in growlNotifications.notifications"><div class="alert alert-{{notification.type}}"><div ng-bind-html="notification.message"></div></div></li></ul>'
        };

    }]);
{'fraction_non_alphanumeric': 0.14864864864864866, 'fraction_numerical': 0.0, 'mean_word_length': 2.1533219761499147, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6957117', 'n_tokens_mistral': 491, 'n_tokens_neox': 461, 'n_words': 77}