<commit_before>{{#koenig-card
    class="flex flex-column nl2 nr2"
    isSelected=isSelected
    isEditing=isEditing
    selectCard=(action selectCard)
    deselectCard=(action deselectCard)
    onDeselect=(action "onDeselect")
    editCard=(action editCard)
    toolbar=toolbar
    hasEditMode=false
    showSelectedOutline=payload.html
    addParagraphAfterCard=addParagraphAfterCard
    moveCursorToPrevSection=moveCursorToPrevSection
    moveCursorToNextSection=moveCursorToNextSection
    editor=editor
    as |card|
}}
    {{#if payload.html}}
        <div class="kg-card-hover">
            <div class="koenig-embed-{{payload.type}} flex justify-center relative" data-kg-embed>
                <iframe class="bn miw-100" scrolling="no"></iframe>
                <div class="koenig-card-click-overlay ba b--white" data-kg-overlay></div>
            </div>

            {{#if (or isSelected (clean-basic-html payload.caption))}}
                {{card.captionInput
                    caption=payload.caption
                    update=(action "updateCaption")
                    placeholder="Type caption for embed (optional)"
                }}
            {{/if}}
        </div>
    {{else}}
        {{#if convertUrl.isRunning}}
            <div class="miw-100 pa2 ba br2 b--lightgrey-d1 flex items-center justify-center bg-whitegrey-l2 f6 lh-title h10">
                &nbsp;<div class="ghost-spinner spinner-blue"></div>&nbsp;
            </div>
        {{else if hasError}}
            <div class="miw-100 flex flex-row pa2 pl3 ba br2 b--red-l3 red bg-error-red f7 fw4 lh-title h10 items-center">
                <span class="mr3">There was an error when parsing the URL.</span>
                <button type="button" class="red-d2 mr3 fw6 hover-red" {{action "retry"}}><span class="underline">Retry</span></button>
                <button type="button" class="red-d2 mr-auto fw6 underline hover-red" {{action "insertAsLink"}}><span class="underline">Paste URL as link</span></button>
                <button type="button" {{action deleteCard}} class="nudge-right--2">
                    {{svg-jar "close" class="w3 stroke-red-l3"}}
                </button>
            </div>
        {{else}}
            <input<commit_msg>Koenig - Fixed missing borders on some embeds<commit_after>{{#koenig-card
    class="flex flex-column nl2 nr2"
    isSelected=isSelected
    isEditing=isEditing
    selectCard=(action selectCard)
    deselectCard=(action deselectCard)
    onDeselect=(action "onDeselect")
    editCard=(action editCard)
    toolbar=toolbar
    hasEditMode=false
    showSelectedOutline=payload.html
    addParagraphAfterCard=addParagraphAfterCard
    moveCursorToPrevSection=moveCursorToPrevSection
    moveCursorToNextSection=moveCursorToNextSection
    editor=editor
    as |card|
}}
    {{#if payload.html}}
        <div class="kg-card-hover">
            <div class="koenig-embed-{{payload.type}} flex justify-center relative" data-kg-embed>
                <iframe class="bn miw-100" scrolling="no"></iframe>
                <div class="koenig-card-click-overlay ba b--transparent" data-kg-overlay></div>
            </div>

            {{#if (or isSelected (clean-basic-html payload.caption))}}
                {{card.captionInput
                    caption=payload.caption
                    update=(action "updateCaption")
                    placeholder="Type caption for embed (optional)"
                }}
            {{/if}}
        </div>
    {{else}}
        {{#if convertUrl.isRunning}}
            <div class="miw-100 pa2 ba br2 b--lightgrey-d1 flex items-center justify-center bg-whitegrey-l2 f6 lh-title h10">
                &nbsp;<div class="ghost-spinner spinner-blue"></div>&nbsp;
            </div>
        {{else if hasError}}
            <div class="miw-100 flex flex-row pa2 pl3 ba br2 b--red-l3 red bg-error-red f7 fw4 lh-title h10 items-center">
                <span class="mr3">There was an error when parsing the URL.</span>
                <button type="button" class="red-d2 mr3 fw6 hover-red" {{action "retry"}}><span class="underline">Retry</span></button>
                <button type="button" class="red-d2 mr-auto fw6 underline hover-red" {{action "insertAsLink"}}><span class="underline">Paste URL as link</span></button>
                <button type="button" {{action deleteCard}} class="nudge-right--2">
                    {{svg-jar "close" class="w3 stroke-red-l3"}}
                </button>
            </div>
        {{else}}
            <input
{'fraction_non_alphanumeric': 0.1309260079751883, 'fraction_numerical': 0.015507310589277802, 'mean_word_length': 2.3321033210332103, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 55, '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': '2653349', 'n_tokens_mistral': 1375, 'n_tokens_neox': 1308, 'n_words': 291}