<commit_before>// http://angulartutorial.blogspot.com/2014/03/rating-stars-in-angular-js-using.html


angular.module('ListeEnviesDirectives').component('iconWishList', {
    template:
    '<span class="fa {{vm.getClass()}}" translate translate-attr-title="WISH_LIST_PAGE.UPDATE_LIST.TYPE.{{vm.TYPE}}">' +
    '</span>',
    controller: IconWishList,
    controllerAs: 'vm',
    bindings: {
        type: '@'
    }
});

function IconWishList() {
    var vm = this;

    vm.getClass = function () {
        switch (vm.type) {
            case "CHRISTMAS":
                return "fa-tree";

                case "BIRTHDAY":
                return "fa-birthday-cake";

                case "BIRTH":
                return "fa-meh-o";

                case "WEDDING":
                return "fa-circle-o";

                case "LEAVING":
                return "fa-plane";

                case "SPECIAL_OCCASION":
                return "fa-magic";

                case "HOUSE_WARNING":
                return "fa-home";

                case "RETIREMENT":
                return "fa-globe";

                case "OTHER":
                return "fa-gift";

        }
    }
}<commit_msg>Change icon<commit_after>// http://angulartutorial.blogspot.com/2014/03/rating-stars-in-angular-js-using.html


angular.module('ListeEnviesDirectives').component('iconWishList', {
    template:
    '<span class="fa {{vm.getClass()}}" translate translate-attr-title="WISH_LIST_PAGE.UPDATE_LIST.TYPE.{{vm.TYPE}}">' +
    '</span>',
    controller: IconWishList,
    controllerAs: 'vm',
    bindings: {
        type: '@'
    }
});

function IconWishList() {
    var vm = this;

    vm.getClass = function () {
        switch (vm.type) {
            case "CHRISTMAS":
                return "fa-tree";

                case "BIRTHDAY":
                return "fa-birthday-cake";

                case "BIRTH":
                return "fa-child";

                case "WEDDING":
                return "fa-circle-thin";

                case "LEAVING":
                return "fa-plane";

                case "SPECIAL_OCCASION":
                return "fa-magic";

                case "HOUSE_WARNING":
                return "fa-home";

                case "RETIREMENT":
                return "fa-globe";

                case "OTHER":
                return "fa-gift";

        }
    }
}
{'fraction_non_alphanumeric': 0.13780025284450062, 'fraction_numerical': 0.0050568900126422255, 'mean_word_length': 1.4963196635120926, 'pattern_counts': {'":': 18, '<': 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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4440002', 'n_tokens_mistral': 772, 'n_tokens_neox': 699, 'n_words': 123}