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

    angular
        .module('dpShared')
        .factory('embed', EmbedFactory);

    EmbedFactory.$inject = ['stateUrlConverter', '$location'];

    function EmbedFactory (stateUrlConverter, $location) {
        const baseUrl = `${$location.protocol()}://${$location.host()}:${$location.port()}`;

        return {
            getLink: getLink,
            getHtml: getHtml
        };

        function getLink (state) {
            return ${baseUrl} + ${stateUrlConverter.state2url(state)};
        }

        function getHtml (state) {
            const url = getLink(state);
            return `<iframe width="500" height="400" src="${url}" frameborder="0"></iframe>`;
        }
    }
})();
<commit_msg>implemented code review again tg-4020<commit_after>(function () {
    'use strict';

    angular
        .module('dpShared')
        .factory('embed', EmbedFactory);

    EmbedFactory.$inject = ['stateUrlConverter', '$location'];

    function EmbedFactory (stateUrlConverter, $location) {
        const baseUrl = `${$location.protocol()}://${$location.host()}:${$location.port()}`;

        return {
            getLink: getLink,
            getHtml: getHtml
        };

        function getLink (state) {
            return baseUrl + stateUrlConverter.state2url(state);
        }

        function getHtml (state) {
            const url = getLink(state);
            return `<iframe width="500" height="400" src="${url}" frameborder="0"></iframe>`;
        }
    }
})();

{'fraction_non_alphanumeric': 0.16143790849673204, 'fraction_numerical': 0.013071895424836602, 'mean_word_length': 2.3871681415929205, 'pattern_counts': {'":': 0, '<': 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': '6431015', 'n_tokens_mistral': 448, 'n_tokens_neox': 423, 'n_words': 84}