<commit_before>{{#gh-tabs-manager selected="showSubview" id="entry-controls" class="settings-menu-container"}}
<div id="entry-controls">
    <div class="{{if isViewingSubview 'settings-menu-pane-out-left' 'settings-menu-pane-in'}} settings-menu settings-menu-pane">
        <div class="settings-menu-header">
            <h4>Post Settings</h4>
            <button class="close icon-x settings-menu-header-action" {{action "closeMenus"}}><span class="hidden">Close</span></button>
        </div>
        <div class="settings-menu-content">
            {{gh-uploader uploaded="setCoverImage" canceled="clearCoverImage" description="Add post image" image=model.image uploaderReference=uploaderReference tagName="section"}}
            <form>
            <div class="form-group">
                <label for="url">Post URL</label>
                {{#if model.isPublished}}
                <a class="post-view-link" target="_blank" href="{{model.absoluteUrl}}">
                    View post <i class="icon-external"></i>
                </a>
                {{else}}
                <a class="post-view-link" target="_blank" href="{{model.previewUrl}}">
                    Preview <i class="icon-external"></i>
                </a>
                {{/if}}

                <span class="input-icon icon-link">
                    {{gh-input class="gh-input post-setting-slug" id="url" value=slugValue name="post-setting-slug" focus-out="updateSlug" selectOnClick="true" stopEnterKeyDownPropagation="true"}}
                </span>
                {{gh-url-preview slug=slugValue tagName="p" classNames="description"}}
            </div>

            <div class="form-group">
                <label for="post-setting-date">Publish Date</label>
                <span class="input-icon icon-calendar">
                    {{gh-input class="gh-input post-setting-date" id="post-setting-date" value=publishedAtValue name="post-setting-date" focus-out="setPublishedAt" stopEnterKeyDownPropagation="true"}}
                </span>
            </div>

            {{#unless session.user.isAuthor}}
            <div class="form-group for-select">
                <label for="author-list">Author</label>
                <span class="input-icon icon-user">
                    <span class="gh-select" tabindex="0">
                    {{view "select"
                        name="post-setting-author"
                        id="author-list"
                        content=authors
                        optionValuePath="content.id"
                        optionLabelPath="content.name"
                        selection=selectedAuthor}}
                    </span>
                </span>
            </div>
            {{/unless}}

            <ul class="nav-list nav-list-block">
                {{#gh-tab tagName="li" classNames="nav-list-item"}}
                    <button type="button">
                        <b>Meta Data</b>
                        <span>Extra content for SEO and social media.</span>
                    </button>
                    <i class="icon-arrow-right"></i>
                {{/gh-tab}}
            </ul>

            <div class="form-group for-checkbox">
                <label class="checkbox" for="static-page" {{action "togglePage" bubbles="false"}}>
                    {{input type="checkbox" name="static-page" id="static-page" class="gh-input post-setting-static-page" checked=model.page}}
                    <span class="input-toggle-component"></span>
                    <p>Turn this post into a static page</p>
                </label>

                <label class="checkbox" for="featured" {{action "toggleFeatured" bubbles="false"}}>
                    {{input type="checkbox" name="featured" id="featured" class="gh-input post-setting-featured" checked=model.featured}}
                    <span class="input-toggle-component"></span>
                    <p>Feature this post</p>
                </label>
            </div>

            </form>
        </div>{{! .settings-menu-content }}
    </div>{{! .post-settings-menu }}

    <div class="{{if isViewingSubview 'settings-menu-pane-in' 'settings-menu-pane-out-right'}} settings-menu settings-menu-pane">
    {{#gh-tab-pane}}
        {{#if isViewingSubview}}
        <div class="settings-menu-header subview">
            <button {{action "closeSubview"}} class="back icon-arrow-left settings-menu-header-action"><span class="hidden">Back</span></button>
            <h4>Meta Data</h4>
            <div style="width:23px;">{{!flexbox space-between}}</div>
        </div>

        <div class="settings-menu-content">
            <form>
            <div class="form-group">
                <label for="meta-title">Meta Title</label>
                {{gh-input class="gh-input post-setting-meta-title" id="meta-title" value=metaTitleScratch name="post-setting-meta-title" focus-out="setMetaTitle" stopEnterKeyDownPropagation="true"}}
                <p>Recommended: <b>70</b> characters. You’ve used {{gh-count-down-characters metaTitleScratch 70}}</p>
            </div>

            <div class="form-group">
                <label for="meta-description">Meta Description</label>
                {{gh-textarea class="gh-input post-setting-meta-description" id="meta-description" value=metaDescriptionScratch name="post-setting-meta-description" focus-out="setMetaDescription" stopEnterKeyDownPropagation="true"}}
                <p>Recommended: <b>156</b> characters. You’ve used {{gh-count-down-characters metaDescriptionScratch 156}}</p>
            </div>

            <div class="form-group">
                <label>Search Engine Result Preview</label>
                <div class="seo-preview">
                    <div class="seo-preview-title">{{seoTitle}}</div>
                    <div class="seo-preview-link">{{seoURL}}</div>
                    <div class="seo-preview-description">{{seoDescription}}</div>
                </div>
            </div>
            </form>
        </div>{{! .settings-menu-content }}
        {{/if}}
    {{/gh-tab-pane}}
    </div>
</div>
{{/gh-tabs-manager}}
<commit_msg>Added a select box to select the primary tag<commit_after>{{#gh-tabs-manager selected="showSubview" id="entry-controls" class="settings-menu-container"}}
<div id="entry-controls">
    <div class="{{if isViewingSubview 'settings-menu-pane-out-left' 'settings-menu-pane-in'}} settings-menu settings-menu-pane">
        <div class="settings-menu-header">
            <h4>Post Settings</h4>
            <button class="close icon-x settings-menu-header-action" {{action "closeMenus"}}><span class="hidden">Close</span></button>
        </div>
        <div class="settings-menu-content">
            {{gh-uploader uploaded="setCoverImage" canceled="clearCoverImage" description="Add post image" image=model.image uploaderReference=uploaderReference tagName="section"}}
            <form>  
            <div class="form-group">
                <label for="url">Post URL</label>
                {{#if model.isPublished}}
                <a class="post-view-link" target="_blank" href="{{model.absoluteUrl}}">
                    View post <i class="icon-external"></i>
                </a>
                {{else}}
                <a class="post-view-link" target="_blank" href="{{model.previewUrl}}">
                    Preview <i class="icon-external"></i>
                </a>
                {{/if}}


                <span class="input-icon icon-link">
                    {{gh-input class="gh-input post-setting-slug" id="url" value=slugValue name="post-setting-slug" focus-out="updateSlug" selectOnClick="true" stopEnterKeyDownPropagation="true"}}
                </span>
                {{gh-url-preview slug=slugValue tagName="p" classNames="description"}}
            </div>


            <div class="form-group for-select">
                <label for="cathegory-list">Primary Tag</label>
                <span class="input-icon">
                    <span class="gh-select" tabindex="0">
                    {{view "select"
                        name="post-setting-primary-tag"
                        id="primary-tag-list"
                        content=tags
                        optionValuePath="tag.id"
                        optionLabelPath="tag.name"
                        selection=selectedcathegory}}
                    </span>
                </span>
            </div>

            <div class="form-group">
                <label for="post-setting-date">Publish Date</label>
                <span class="input-icon icon-calendar">
                    {{gh-input class="gh-input post-setting-date" id="post-setting-date" value=publishedAtValue name="post-setting-date" focus-out="setPublishedAt" stopEnterKeyDownPropagation="true"}}
                </span>
            </div>

            {{#unless session.user.isAuthor}}
            <div class="form-group for-select">
                <label for="author-list">Author</label>
                <span class="input-icon icon-user">
                    <span class="gh-select" tabindex="0">
                    {{view "select"
                        name="post-setting-author"
                        id="author-list"
                        content=authors
                        optionValuePath="content.id"
                        optionLabelPath="content.name"
                        selection=selectedAuthor}}
                    </span>
                </span>
            </div>
            {{/unless}}

            <ul class="nav-list nav-list-block">
                {{#gh-tab tagName="li" classNames="nav-list-item"}}
                    <button type="button">
                        <b>Meta Data</b>
                        <span>Extra content for SEO and social media.</span>
                    </button>
                    <i class="icon-arrow-right"></i>
                {{/gh-tab}}
            </ul>

            <div class="form-group for-checkbox">
                <label class="checkbox" for="static-page" {{action "togglePage" bubbles="false"}}>
                    {{input type="checkbox" name="static-page" id="static-page" class="gh-input post-setting-static-page" checked=model.page}}
                    <span class="input-toggle-component"></span>
                    <p>Turn this post into a static page</p>
                </label>

                <label class="checkbox" for="featured" {{action "toggleFeatured" bubbles="false"}}>
                    {{input type="checkbox" name="featured" id="featured" class="gh-input post-setting-featured" checked=model.featured}}
                    <span class="input-toggle-component"></span>
                    <p>Feature this post</p>
                </label>
            </div>

            </form>
        </div>{{! .settings-menu-content }}
    </div>{{! .post-settings-menu }}

    <div class="{{if isViewingSubview 'settings-menu-pane-in' 'settings-menu-pane-out-right'}} settings-menu settings-menu-pane">
    {{#gh-tab-pane}}
        {{#if isViewingSubview}}
        <div class="settings-menu-header subview">
            <button {{action "closeSubview"}} class="back icon-arrow-left settings-menu-header-action"><span class="hidden">Back</span></button>
            <h4>Meta Data</h4>
            <div style="width:23px;">{{!flexbox space-between}}</div>
        </div>

        <div class="settings-menu-content">
            <form>
            <div class="form-group">
                <label for="meta-title">Meta Title</label>
                {{gh-input class="gh-input post-setting-meta-title" id="meta-title" value=metaTitleScratch name="post-setting-meta-title" focus-out="setMetaTitle" stopEnterKeyDownPropagation="true"}}
                <p>Recommended: <b>70</b> characters. You’ve used {{gh-count-down-characters metaTitleScratch 70}}</p>
            </div>

            <div class="form-group">
                <label for="meta-description">Meta Description</label>
                {{gh-textarea class="gh-input post-setting-meta-description" id="meta-description" value=metaDescriptionScratch name="post-setting-meta-description" focus-out="setMetaDescription" stopEnterKeyDownPropagation="true"}}
                <p>Recommended: <b>156</b> characters. You’ve used {{gh-count-down-characters metaDescriptionScratch 156}}</p>
            </div>

            <div class="form-group">
                <label>Search Engine Result Preview</label>
                <div class="seo-preview">
                    <div class="seo-preview-title">{{seoTitle}}</div>
                    <div class="seo-preview-link">{{seoURL}}</div>
                    <div class="seo-preview-description">{{seoDescription}}</div>
                </div>
            </div>
            </form>
        </div>{{! .settings-menu-content }}
        {{/if}}
    {{/gh-tab-pane}}
    </div>
</div>
{{/gh-tabs-manager}}

{'fraction_non_alphanumeric': 0.15378033602986932, 'fraction_numerical': 0.0027224642190416927, 'mean_word_length': 1.8762863534675616, 'pattern_counts': {'":': 0, '<': 235, '<?xml version=': 0, '>': 235, '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': '7051962', 'n_tokens_mistral': 3640, 'n_tokens_neox': 3428, 'n_words': 618}