<commit_before>(() => {

    'use strict';

    angular
        .module('app')
        .controller('MainController', MainController);

    MainController.$inject = ['$log', '$http', 'growl', 'Endpoints'];
    function MainController($log, $http, growl, Endpoints) {
        const vm = this;

        vm.submit = submit;

        ////

        /**
         * description Function for subscribe users on landing page
         */
        function submit() {
            let req = {
                method: 'POST',
                url: Endpoints.SUBSCRIBE,
                data: {
                    "mail": vm.email
                }
            };

            $http(req).then(function successCallback(response) {
                if (response.data.success === true) {
                    growl.success(response.data.data.message);
                    $log.debug('Success subscribe', response);
                } else {
                    growl.error('Some thing wrong ...');
                    $log.debug('Some thing wrong with subscribe', response);
                }
            }, function errorCallback(response) {
                growl.error(Response.data.data.message);
                $log.debug('Error subscribe', response);
            });
        }<commit_msg>Delete overkill success checker Ref syntax eror in growl notification<commit_after>(() => {

    'use strict';

    angular
        .module('app')
        .controller('MainController', MainController);

    MainController.$inject = ['$log', '$http', 'growl', 'Endpoints'];
    function MainController($log, $http, growl, Endpoints) {
        const vm = this;

        vm.submit = submit;

        ////

        /**
         * description Function for subscribe users on landing page
         */
        function submit() {
            let req = {
                method: 'POST',
                url: Endpoints.SUBSCRIBE,
                data: {
                    "mail": vm.email
                }
            };

            $http(req).then(function successCallback(response) {
                growl.success(response.data.data.message);
                $log.debug('Success subscribe', response);
            }, function errorCallback(response) {
                growl.error(response.data.data.message);
                $log.debug('Error subscribe', response);
            });
        }
{'fraction_non_alphanumeric': 0.1254768969902501, 'fraction_numerical': 0.0, 'mean_word_length': 1.4842105263157894, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, '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': '784105', 'n_tokens_mistral': 608, 'n_tokens_neox': 560, 'n_words': 128}