<commit_before><div class="modal-content">
    <div class="flex flex-column h-100">
        <header class="modal-header gh-post-preview-header gh-post-preview-header-border" data-test-modal="preview-email">
            <div>
                <button class="gh-editor-back-button" title="Close" type="button" {{on "click" @close}}>
                    <span>{{svg-jar "arrow-left"}} Back</span>
                </button>
            </div>
            <div class="gh-post-preview-btn-group">
                <div class="gh-contentfilter gh-btn-group">
                    <button type="button" class="gh-btn {{if (eq this.tab "browser") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "browser")}}><span>{{svg-jar "desktop"}}</span></button>
                    <button type="button" class="gh-btn {{if (eq this.tab "mobile") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "mobile")}}><span>{{svg-jar "mobile-phone"}}</span></button>
                    {{#if (and (not-eq this.settings.membersSignupAccess "none") (not-eq this.settings.editorDefaultEmailRecipients "disabled"))}}
                        {{#if @data.post.isPost}}
                            <button type="button" class="gh-btn {{if (eq this.tab "email") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "email")}}><span>{{svg-jar "email-unread"}}</span></button>
                        {{/if}}
                    {{/if}}
                    <button type="button" class="gh-btn {{if (eq this.tab "social") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "social")}}><span>{{svg-jar "twitter"}}</span></button>
                </div>
            </div>

            {{#unless this.session.user.isContributor}}
                <GhPublishmenu
                    @post={{@data.post}}
                    @postStatus={{@data.post.status}}
                    @saveTask={{@data.saveTask}}
                    @setSaveType={{@data.setEditorSaveType}}
                    @uiContext="preview" />
            {{/unless}}
        </header>

        {{#if this.saveFirstTask.isRunning}}
            <GhLoadingSpinner />
        {{else}}
            {{#if (eq this.tab "browser")}}
                <Modals::PostPreview::Browser @post={{@data.post}} />
            {{/if}}

            {{#if (and (eq this.tab "mobile"))}}
                <Modals::PostPreview::Mobile @post={{@data.post}} />
            {{/if}}

            {{#if (and (eq this.tab "email") @data.post.isPost)}}
                <Modals::PostPreview::Email @post={{@data.post}} />
            {{/if}}

            {{#if (eq this.tab "social")}}
                <Modals::PostPreview::Social @post={{@data.post}} />
            {{/if}}<commit_msg>Removed old publish menu from preview modal<commit_after><div class="modal-content">
    <div class="flex flex-column h-100">
        <header class="modal-header gh-post-preview-header gh-post-preview-header-border" data-test-modal="preview-email">
            <div>
                <button class="gh-editor-back-button" title="Close" type="button" {{on "click" @close}}>
                    <span>{{svg-jar "arrow-left"}} Back</span>
                </button>
            </div>
            <div class="gh-post-preview-btn-group">
                <div class="gh-contentfilter gh-btn-group">
                    <button type="button" class="gh-btn {{if (eq this.tab "browser") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "browser")}}><span>{{svg-jar "desktop"}}</span></button>
                    <button type="button" class="gh-btn {{if (eq this.tab "mobile") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "mobile")}}><span>{{svg-jar "mobile-phone"}}</span></button>
                    {{#if (and (not-eq this.settings.membersSignupAccess "none") (not-eq this.settings.editorDefaultEmailRecipients "disabled"))}}
                        {{#if @data.post.isPost}}
                            <button type="button" class="gh-btn {{if (eq this.tab "email") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "email")}}><span>{{svg-jar "email-unread"}}</span></button>
                        {{/if}}
                    {{/if}}
                    <button type="button" class="gh-btn {{if (eq this.tab "social") "gh-btn-group-selected"}} gh-post-preview-mode" {{on "click" (fn this.changeTab "social")}}><span>{{svg-jar "twitter"}}</span></button>
                </div>
            </div>
        </header>

        {{#if this.saveFirstTask.isRunning}}
            <GhLoadingSpinner />
        {{else}}
            {{#if (eq this.tab "browser")}}
                <Modals::PostPreview::Browser @post={{@data.post}} />
            {{/if}}

            {{#if (and (eq this.tab "mobile"))}}
                <Modals::PostPreview::Mobile @post={{@data.post}} />
            {{/if}}

            {{#if (and (eq this.tab "email") @data.post.isPost)}}
                <Modals::PostPreview::Email @post={{@data.post}} />
            {{/if}}

            {{#if (eq this.tab "social")}}
                <Modals::PostPreview::Social @post={{@data.post}} />
            {{/if}}
{'fraction_non_alphanumeric': 0.19764124025109378, 'fraction_numerical': 0.0011413353623739774, 'mean_word_length': 2.0569767441860467, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 74, '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': '2645503', 'n_tokens_mistral': 1630, 'n_tokens_neox': 1546, 'n_words': 292}