<commit_before>(function () {
    'use strict';

    angular
        .module('dpShared')
        .component('dpButton', {
            templateUrl: 'modules/shared/components/button/button.html',
            transclude: true,
            bindings: {
                className: '@',
                hoverText: '@',
                type: '@',
                payload: '<'
            },
            controller: DpButtonController,
            controllerAs: 'vm'
        });

    DpButtonController.$inject = ['$scope', 'store', 'ACTIONS'];

    function DpButtonController ($scope, store, ACTIONS) {
        const vm = this;
        console.log(vm.type);

        vm.className = vm.className || 'o-btn o-btn--link';

        vm.dispatch = function () {
            store.dispatch(getAction(vm.type, vm.payload));
        };

        function getAction (type, payload) {
            const action = {
                type: ACTIONS[type] || type
            };
            if (angular.isDefined(payload)) {
                action.payload = payload;
            }
            return action;
        }
    }
})();<commit_msg>console.log removed<commit_after>(function () {
    'use strict';

    angular
        .module('dpShared')
        .component('dpButton', {
            templateUrl: 'modules/shared/components/button/button.html',
            transclude: true,
            bindings: {
                className: '@',
                hoverText: '@',
                type: '@',
                payload: '<'
            },
            controller: DpButtonController,
            controllerAs: 'vm'
        });

    DpButtonController.$inject = ['$scope', 'store', 'ACTIONS'];

    function DpButtonController ($scope, store, ACTIONS) {
        const vm = this;

        vm.className = vm.className || 'o-btn o-btn--link';

        vm.dispatch = function () {
            store.dispatch(getAction(vm.type, vm.payload));
        };

        function getAction (type, payload) {
            const action = {
                type: ACTIONS[type] || type
            };
            if (angular.isDefined(payload)) {
                action.payload = payload;
            }
            return action;
        }
    }
})();
{'fraction_non_alphanumeric': 0.1339366515837104, 'fraction_numerical': 0.0, 'mean_word_length': 1.4676339285714286, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5904446', 'n_tokens_mistral': 592, 'n_tokens_neox': 567, 'n_words': 110}