<commit_before>{{!-- template-lint-disable no-invalid-interactive --}}
<li class="gh-list-row gh-posts-list-item gh-posts-list-item-labs gh-post-list-plain-status"
    {{on "mouseover" this.mouseOver}}
    {{on "mouseleave" this.mouseLeave}}
    ...attributes
>

    {{!-- Title column --}}
    {{#if (and this.session.user.isContributor @post.isPublished)}}
        <a href={{@post.url}} class="permalink gh-list-data gh-post-list-title" target="_blank" rel="noopener noreferrer">
            <h3 class="gh-content-entry-title">
                {{@post.title}} {{svg-jar "external" class="gh-post-list-external"}}
            </h3>
            {{#unless @hideAuthor }}
                <p class="gh-content-entry-meta">
                    <span class="gh-content-entry-author">
                        By {{post-author-names @post}}

                        {{#if @post.primaryTag}}
                            in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
                        {{/if}}

                        -
                    </span>
                    <span class="gh-content-entry-date">
                        {{#if this.isHovered}}
                            {{gh-format-post-time @post.updatedAtUTC format="D MMM YYYY"}}
                        {{else}}
                            {{gh-format-post-time @post.updatedAtUTC draft=true}}
                        {{/if}}
                    </span>
                </p>
                <p class="gh-content-entry-status">
                    <span class="published">
                        Published
                        {{#if @post.hasEmail}}
                            {{#if this.isHovered}}
                                and sent to {{gh-pluralize @post.email.emailCount "member"}}
                            {{else}}
                                and sent
                            {{/if}}
                        {{/if}}
                    </span>
                </p>
            {{/unless}}
        </a>
    {{else}}
        <LinkTo @route={{this.routeForLink}} @models={{this.modelsForLink}} class="permalink gh-list-data gh-post-list-title">
            <h3 class="gh-content-entry-title">
                {{@post.title}}
                {{#if @post.lexical}}
                    <span class="gh-lexical-indicator">L</span>
                {{/if}}
            </h3>
            {{#unless @hideAuthor }}
                <p class="gh-content-entry-meta">
                    <span class="gh-content-entry-author">
                        By {{post-author-names @post}}

                        {{#if @post.primaryTag}}
                            in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
                        {{/if}}
                        - 
                    </span>
                    <span class="gh-content-entry-date" {{on "mouseover" (fn (mut this.isDateHovered) true)}} {{on "mouseleave" (fn (mut this.isDateHovered) false)}}>
                        {{gh-format-post-time @post.updatedAtUTC draft=true}}
                        {{#if this.isDateHovered}}
                            <span {{css-transition "anim-fade-in-scale"}}>on {{gh-format-post-time @post.updatedAtUTC format="D MMM YYYY"}}</span>
                        {{/if}}
                    </span>
                    {{!-- {{#if @post.lexical}}
                        <span class="gh-content-entry-date">– Lexical</span>
                    {{/if}} --}}
                </p>
                <p class="gh-content-entry-status">
                    {{#if @post.isScheduled}}
                        <span class="scheduled" {{on "mouseover" (fn (mut this.isStateHovered) true)}} {{on "mouseleave" (fn (mut this.isStateHovered) false)}}>
                            <span class="status-dot"></span>
                            Scheduled
                            {{#if this.isStateHovered}}
                                <span class="schedule-details" {{css-transition "anim-fade-in-scale"}}>to be published {{if @post.newsletter "and sent "}}{{this.scheduledText}} to {{humanize-recipient-filter @post.emailSegment}}</span>
                            {{/if}}
                        </span>
                    {{/if}}

                    {{#if @post.isDraft}}
                        <span class="draft">
                            <span class="status-dot"></span>
                            Draft
                        </span>
                    {{/if}}

                    {{#if @post.isPublished}}
                        <span class="published" {{on "mouseover" (fn (mut this.isStateHovered) true)}} {{on "mouseleave" (fn (mut this.isStateHovered) false)}}>
                            Published
                            {{#if @post.hasEmail}}
                                and sent 
                                {{#if this.isHovered}}
                                    <span {{css-transition "anim-fade-in-scale"}}>to {{gh-pluralize @post.email.emailCount "member"}}</span>
                                {{/if}}
                            {{/if}}
                        </span>
                    {{/if}}

                    {{#if @post.isSent}}
                        <span class="sent" {{on "mouseover" (fn (mut this.isStateHovered) true)}} {{on "mouseleave" (fn (mut this.isStateHovered) false)}}>
                            Sent 
                            {{#if this.isHovered}}
                                <span {{css-transition "anim-fade-in-scale"}}>to {{gh-pluralize @post.email.emailCount "member"}}</span>
                            {{/if}}
                        </span>
                    {{/if}}
                </p>
            {{/unless}}
        </LinkTo>
    {{/if}}

    {{!-- Opened / Signups column --}}
    <LinkTo @route={{this.routeForLink}} @models={{this.modelsForLink}} class="permalink gh-list-data gh-post-list-opens">
        {{#if @post.showEmailOpenAnalytics }}
            <LinkTo @route="members" @query={{hash filterParam=(concat "opened_emails.post_id:[" @post.id "]") }} class="flex flex-column gh-post-row-event" {{on "mouseover" (fn (mut this.isOpenStatHovered) true)}} {{on "mouseleave" (fn (mut this.isOpenStatHovered) false)}}>
                <span class="gh-content-email-stats-value">
                    {{#if this.isHovered}}
                        {{format-number @post.email.openedCount}}
                    {{else}}
                        {{@post.email.openRate}}<sup>%</sup>
                    {{/if}}
                </span>
                <span class="gh-content-email-stats">
                    opened
                </span>
            </LinkTo>
        {{else if (and @post.isPage @post.showAttributionAnalytics) }}
            <LinkTo @route="members" @query={{hash filterParam=(concat "signup:[" @post.id "]") }} class="flex flex-column gh-post-row-event" {{on "mouseover" (fn (mut this.isOpenStatHovered) true)}} {{on "mouseleave" (fn (mut this.isOpenStatHovered) false)}}>
                <span class="gh-content-email-stats-value">
                    {{@post.count.signups}}
                </span>
                <span class="gh-content-email-stats">
                    signups
                </span>
            </LinkTo>
        {{/if}}
    </LinkTo>
    
    {{!-- Clicked / Conversions column --}}
    <LinkTo @route={{this.routeForLink}} @models={{this.modelsForLink}} class="permalink gh-list-data gh-post-list-clicks">
        {{#if @post.showEmailClickAnalytics }}
            <LinkTo @route="members" @query={{hash filterParam=(concat "clicked_links.post_id:[" @post.id "]") }} class="flex flex-column gh-post-row-event" {{on "mouseover" (fn (mut this.isClickStatHovered) true)}} {{on "mouseleave" (fn (mut this.isClickStatHovered) false)}}>
                <span class="gh-content-email-stats-value">
                    {{#if this.isHovered}}
                        {{format-number @post.count.clicks}}
                    {{else}}
                        {{@post.clickRate}}<sup>%</sup>
                    {{/if}}
                </span>
                <span class="gh-content-email-stats">
                    clicked
                </span>
            </LinkTo>
        {{else if (and @post.isPage @post.showPaidAttributionAnalytics) }}
            <LinkTo @route="members" @query={{hash filterParam=(concat "conversion:[" @post.id "]") }} class="flex flex-column gh-post-row-event" {{on "mouseover" (fn (mut this.isClickStatHovered) true)}} {{on "mouseleave" (fn (mut this.isClickStatHovered) false)}}>
                <span class="gh-content-email-stats-value">
                    {{@post.count.paid_conversions}}
                </span>
                <span class="gh-content-email-stats">
                    conversions
                </span>
            </LinkTo>
        {{/if}}
    </LinkTo>

    {{!-- Button column --}}<commit_msg>Moving opened stats in row over if there are no clickes in post rows<commit_after>{{!-- template-lint-disable no-invalid-interactive --}}
<li class="gh-list-row gh-posts-list-item gh-posts-list-item-labs gh-post-list-plain-status"
    {{on "mouseover" this.mouseOver}}
    {{on "mouseleave" this.mouseLeave}}
    ...attributes
>

    {{!-- Title column --}}
    {{#if (and this.session.user.isContributor @post.isPublished)}}
        <a href={{@post.url}} class="permalink gh-list-data gh-post-list-title" target="_blank" rel="noopener noreferrer">
            <h3 class="gh-content-entry-title">
                {{@post.title}} {{svg-jar "external" class="gh-post-list-external"}}
            </h3>
            {{#unless @hideAuthor }}
                <p class="gh-content-entry-meta">
                    <span class="gh-content-entry-author">
                        By {{post-author-names @post}}

                        {{#if @post.primaryTag}}
                            in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
                        {{/if}}

                        -
                    </span>
                    <span class="gh-content-entry-date">
                        {{#if this.isHovered}}
                            {{gh-format-post-time @post.updatedAtUTC format="D MMM YYYY"}}
                        {{else}}
                            {{gh-format-post-time @post.updatedAtUTC draft=true}}
                        {{/if}}
                    </span>
                </p>
                <p class="gh-content-entry-status">
                    <span class="published">
                        Published
                        {{#if @post.hasEmail}}
                            {{#if this.isHovered}}
                                and sent to {{gh-pluralize @post.email.emailCount "member"}}
                            {{else}}
                                and sent
                            {{/if}}
                        {{/if}}
                    </span>
                </p>
            {{/unless}}
        </a>
    {{else}}
        <LinkTo @route={{this.routeForLink}} @models={{this.modelsForLink}} class="permalink gh-list-data gh-post-list-title">
            <h3 class="gh-content-entry-title">
                {{@post.title}}
                {{#if @post.lexical}}
                    <span class="gh-lexical-indicator">L</span>
                {{/if}}
            </h3>
            {{#unless @hideAuthor }}
                <p class="gh-content-entry-meta">
                    <span class="gh-content-entry-author">
                        By {{post-author-names @post}}

                        {{#if @post.primaryTag}}
                            in <span class="midgrey-l2 fw5">{{@post.primaryTag.name}}</span>
                        {{/if}}
                        - 
                    </span>
                    <span class="gh-content-entry-date" {{on "mouseover" (fn (mut this.isDateHovered) true)}} {{on "mouseleave" (fn (mut this.isDateHovered) false)}}>
                        {{gh-format-post-time @post.updatedAtUTC draft=true}}
                        {{#if this.isDateHovered}}
                            <span {{css-transition "anim-fade-in-scale"}}>on {{gh-format-post-time @post.updatedAtUTC format="D MMM YYYY"}}</span>
                        {{/if}}
                    </span>
                    {{!-- {{#if @post.lexical}}
                        <span class="gh-content-entry-date">– Lexical</span>
                    {{/if}} --}}
                </p>
                <p class="gh-content-entry-status">
                    {{#if @post.isScheduled}}
                        <span class="scheduled" {{on "mouseover" (fn (mut this.isStateHovered) true)}} {{on "mouseleave" (fn (mut this.isStateHovered) false)}}>
                            <span class="status-dot"></span>
                            Scheduled
                            {{#if this.isStateHovered}}
                                <span class="schedule-details" {{css-transition "anim-fade-in-scale"}}>to be published {{if @post.newsletter "and sent "}}{{this.scheduledText}} to {{humanize-recipient-filter @post.emailSegment}}</span>
                            {{/if}}
                        </span>
                    {{/if}}

                    {{#if @post.isDraft}}
                        <span class="draft">
                            <span class="status-dot"></span>
                            Draft
                        </span>
                    {{/if}}

                    {{#if @post.isPublished}}
                        <span class="published" {{on "mouseover" (fn (mut this.isStateHovered) true)}} {{on "mouseleave" (fn (mut this.isStateHovered) false)}}>
                            Published
                            {{#if @post.hasEmail}}
                                and sent 
                                {{#if this.isHovered}}
                                    <span {{css-transition "anim-fade-in-scale"}}>to {{gh-pluralize @post.email.emailCount "member"}}</span>
                                {{/if}}
                            {{/if}}
                        </span>
                    {{/if}}

                    {{#if @post.isSent}}
                        <span class="sent" {{on "mouseover" (fn (mut this.isStateHovered) true)}} {{on "mouseleave" (fn (mut this.isStateHovered) false)}}>
                            Sent 
                            {{#if this.isHovered}}
                                <span {{css-transition "anim-fade-in-scale"}}>to {{gh-pluralize @post.email.emailCount "member"}}</span>
                            {{/if}}
                        </span>
                    {{/if}}
                </p>
            {{/unless}}
        </LinkTo>
    {{/if}}

    {{!-- Opened / Signups column --}}
    <LinkTo @route={{this.routeForLink}} @models={{this.modelsForLink}} class="permalink gh-list-data gh-post-list-opens">
        {{#if (and @post.showEmailOpenAnalytics @post.showEmailClickAnalytics) }}
            <LinkTo @route="members" @query={{hash filterParam=(concat "opened_emails.post_id:[" @post.id "]") }} class="flex flex-column gh-post-row-event" {{on "mouseover" (fn (mut this.isOpenStatHovered) true)}} {{on "mouseleave" (fn (mut this.isOpenStatHovered) false)}}>
                <span class="gh-content-email-stats-value">
                    {{#if this.isHovered}}
                        {{format-number @post.email.openedCount}}
                    {{else}}
                        {{@post.email.openRate}}<sup>%</sup>
                    {{/if}}
                </span>
                <span class="gh-content-email-stats">
                    opened
                </span>
            </LinkTo>
        {{else if (and @post.isPage @post.showAttributionAnalytics) }}
            <LinkTo @route="members" @query={{hash filterParam=(concat "signup:[" @post.id "]") }} class="flex flex-column gh-post-row-event" {{on "mouseover" (fn (mut this.isOpenStatHovered) true)}} {{on "mouseleave" (fn (mut this.isOpenStatHovered) false)}}>
                <span class="gh-content-email-stats-value">
                    {{@post.count.signups}}
                </span>
                <span class="gh-content-email-stats">
                    signups
                </span>
            </LinkTo>
        {{/if}}
    </LinkTo>
    
    {{!-- Clicked / Conversions column --}}
    <LinkTo @route={{this.routeForLink}} @models={{this.modelsForLink}} class="permalink gh-list-data gh-post-list-clicks">
        {{#unless @post.showEmailClickAnalytics}}
            {{#if @post.showEmailOpenAnalytics }}
                <LinkTo @route="members" @query={{hash filterParam=(concat "opened_emails.post_id:[" @post.id "]") }} class="flex flex-column gh-post-row-event" {{on "mouseover" (fn (mut this.isOpenStatHovered) true)}} {{on "mouseleave" (fn (mut this.isOpenStatHovered) false)}}>
                    <span class="gh-content-email-stats-value">
                        {{#if this.isHovered}}
                            {{format-number @post.email.openedCount}}
                        {{else}}
                            {{@post.email.openRate}}<sup>%</sup>
                        {{/if}}
                    </span>
                    <span class="gh-content-email-stats">
                        opened
                    </span>
                </LinkTo>
            {{/if}}
        {{/unless}}
        {{#if @post.showEmailClickAnalytics }}
            <LinkTo @route="members" @query={{hash filterParam=(concat "clicked_links.post_id:[" @post.id "]") }} class="flex flex-column gh-post-row-event" {{on "mouseover" (fn (mut this.isClickStatHovered) true)}} {{on "mouseleave" (fn (mut this.isClickStatHovered) false)}}>
                <span class="gh-content-email-stats-value">
                    {{#if this.isHovered}}
                        {{format-number @post.count.clicks}}
                    {{else}}
                        {{@post.clickRate}}<sup>%</sup>
                    {{/if}}
                </span>
                <span class="gh-content-email-stats">
                    clicked
                </span>
            </LinkTo>
        {{else if (and @post.isPage @post.showPaidAttributionAnalytics) }}
            <LinkTo @route="members" @query={{hash filterParam=(concat "conversion:[" @post.id "]") }} class="flex flex-column gh-post-row-event" {{on "mouseover" (fn (mut this.isClickStatHovered) true)}} {{on "mouseleave" (fn (mut this.isClickStatHovered) false)}}>
                <span class="gh-content-email-stats-value">
                    {{@post.count.paid_conversions}}
                </span>
                <span class="gh-content-email-stats">
                    conversions
                </span>
            </LinkTo>
        {{/if}}
    </LinkTo>

    {{!-- Button column --}}
{'fraction_non_alphanumeric': 0.15676453348963607, 'fraction_numerical': 0.0008525603452869398, 'mean_word_length': 1.3366533864541832, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 185, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2273226', 'n_tokens_mistral': 5371, 'n_tokens_neox': 5025, 'n_words': 949}