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

    angular
        .module('dpHeader')
        .component('dpEmbedHeader', {
            controller: DpEmbedHeader,
            templateUrl: 'modules/header/components/embed-header/embed-header.html',
            controllerAs: 'vm'
        });

    DpEmbedHeader.$inject = ['store', 'embed'];

    function DpEmbedHeader (store, embed) {
        const vm = this;

        store.subscribe(update);
        update();

        function update () {
            const ghostState = angular.copy(store.getState());

            ghostState.atlas.isEmbedPreview = false;

            vm.link = embed.getLink(ghostState);
            vm.html = embed.getHtml(ghostState);
        }
    }
})();<commit_msg>updated correct link and html in embed tg-4019<commit_after>(() => {
    'use strict';

    angular
        .module('dpHeader')
        .component('dpEmbedHeader', {
            controller: DpEmbedHeader,
            templateUrl: 'modules/header/components/embed-header/embed-header.html',
            controllerAs: 'vm'
        });

    DpEmbedHeader.$inject = ['store', 'embed'];

    function DpEmbedHeader (store, embed) {
        const vm = this;

        store.subscribe(update);
        update();

        function update () {
            const ghostState = angular.copy(store.getState());

            // create link without embed AND embed preview in href
            ghostState.atlas.isEmbedPreview = false;
            ghostState.atlas.isEmbed = false;
            vm.link = embed.getLink(ghostState);

            // create iframe with embed but not embed preview in the html
            ghostState.atlas.isEmbedPreview = false;
            ghostState.atlas.isEmbed = true;
            vm.html = embed.getHtml(ghostState);
        }
    }
})();
{'fraction_non_alphanumeric': 0.120958751393534, 'fraction_numerical': 0.002229654403567447, 'mean_word_length': 2.0016722408026757, 'pattern_counts': {'":': 0, '<': 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': '2403760', 'n_tokens_mistral': 511, 'n_tokens_neox': 485, 'n_words': 103}