<commit_before><div class="flex flex-column h-100" {{css-transition (unless @firstRender "gh-nav-main")}} data-test-nav-menu="main" ...attributes>
    <header class="gh-nav-menu">
        <div class="gh-nav-menu-details">
            <div class="gh-nav-menu-icon {{this.iconClass}}" style={{this.iconStyle}}></div>
            <div class="gh-nav-menu-details-sitetitle">{{this.config.blogTitle}}</div>
        </div>
        <div class="gh-nav-menu-search">
            <button class="gh-nav-btn-search" {{on "click" (action "openSearchModal")}} title="Search site (Ctrl/⌘ + K)"><span>{{svg-jar "search"}}</span></button>
        </div>
    </header>

    <section class="gh-nav-body">
        <div class="gh-nav-top">
            <ul class="gh-nav-list gh-nav-main">
                {{#if (gh-user-can-admin this.session.user)}}
                <li class="relative">
                    <LinkTo @route="dashboard" @alt="Dashboard" @title="Dashboard" data-test-nav="dashboard">{{svg-jar "house"}} Dashboard</LinkTo>
                </li>
                {{/if}}
                <li class="relative">
                    <span {{action "transitionToOrRefreshSite" on="click"}}>
                        <LinkTo @route="site" data-test-nav="site" @current-when={{this.isOnSite}} @preventDefault={{false}}>
                            {{svg-jar "view-site"}} View site
                        </LinkTo>
                    </span>
                    <a href="{{this.config.blogUrl}}/" class="gh-secondary-action" title="Open site in new tab" target="_blank">
                        <span>{{svg-jar "external"}}</span>
                    </a>
                </li>
            </ul>
            <ul class="gh-nav-list gh-nav-manage">
                <li class="gh-nav-list-new relative">
                    <GhLinkToCustomViewsIndex @route="posts" @query={{reset-query-params "posts"}} data-test-nav="posts">{{svg-jar "posts"}}Posts</GhLinkToCustomViewsIndex>
                    <LinkTo @route="editor.new" @model="post" @classNames="gh-secondary-action gh-nav-new-post" @alt="New post" @title="New post" data-test-nav="new-story"><span>{{svg-jar "add-stroke"}}</span></LinkTo>
                    {{#if this.customViews.forPosts}}
                        <button type="button" class="gh-nav-button-expand {{if this.navigation.settings.expanded.posts "expanded"}}" {{on "click" (fn this.navigation.toggleExpansion "posts")}} aria-label="{{if this.navigation.settings.expanded.posts "Collapse custom post types" "Expand custom post types"}}">
                            {{svg-jar (if this.navigation.settings.expanded.posts "arrow-down-stroke" "arrow-right-stroke")}}
                        </button>
                        {{#liquid-if this.navigation.settings.expanded.posts}}
                            <ul class="gh-nav-view-list">
                                {{#each this.customViews.forPosts as |view|}}
                                    <li>
                                        <LinkTo @route="posts" @query={{reset-query-params "posts" view.filter}} data-test-nav-custom="{{view.route}}-{{view.name}}" title="{{view.name}}">
                                            <span class="gh-nav-viewname">{{view.name}}</span>
                                            <span class="flex items-center svg-{{view.color}}">
                                                {{#unless view.icon}}
                                                    <span class="absolute circle"></span>
                                                {{/unless}}
                                            </span>
                                        </LinkTo>
                                    </li>
                                {{/each}}
                            </ul>
                        {{/liquid-if}}
                    {{/if}}
                </li>
                <li>
                    {{!-- clicking the Content link whilst on the content screen should reset the filter --}}
                    {{#if (eq this.router.currentRouteName "pages")}}
                        <LinkTo @route="pages" @query={{reset-query-params "pages"}} @classNames="active" data-test-nav="pages">{{svg-jar "page"}}Pages</LinkTo>
                    {{else}}
                        <LinkTo @route="pages" data-test-nav="pages">{{svg-jar "page"}}Pages</LinkTo>
                    {{/if}}
                </li>
                {{#if this.showTagsNavigation}}
                    <li><LinkTo @route="tags" data-test-nav="tags">{{svg-jar "tag"}}Tags</LinkTo></li>
                {{/if}}
                {{#if (gh-user-can-admin this.session.user)}}
                    <li class="relative">
                        {{#if (eq this.router.currentRouteName "members.index")}}
                            <LinkTo @route="members" @current-when="members member" @query={{reset-query-params "members.index"}} data-test-nav="members">{{svg-jar "members"}}Members
                                {{#unless this.memberCountLoading}}
                                    <span class="gh-nav-member-count">{{format-number this.memberCount}}</span>
                                {{/unless}}
                            </LinkTo>
                        {{else}}
                            <LinkTo @route="members" @current-when="members member" data-test-nav="members">{{svg-jar "members"}}Members
                                {{#unless this.memberCountLoading}}
                                    <span class="gh-nav-member-count">{{format-number this.memberCount}}</span>
                                {{/unless}}
                            </LinkTo>
                        {{/if}}
                    </li>

                    {{#if (feature "membersActivityFeed")}}
                        <li>
                            {{#if (eq this.router.currentRouteName "members-activity")}}
                                <LinkTo @route="members-activity" @query={{reset-query-params "members-activity"}} data-test-nav="members-activity">{{svg-jar "members"}} Members activity</LinkTo>
                            {{else}}
                                <LinkTo @route="members-activity" data-test-nav="members-activity">{{svg-jar "members"}} Members activity</LinkTo>
                            {{/if}}
                        </li>
                    {{/if}}

                    {{#if this.isStripeConnected}}
                    <li>
                        <LinkTo @route="offers" @alt="Offers">{{svg-jar "percentage"}}Offers</LinkTo>
                    </li>
                    {{/if}}
                {{/if}}
            </ul>

            {{#if this.session.user.isOwnerOnly}}
            <ul class="gh-nav-list">
                {{#if this.showBilling}}
                    <li class="relative">
                        <a href="javascript:void(0)" class={{if this.billing.billingWindowOpen "active"}} {{action "toggleBillingModal" }} data-test-nav="billing">
                            {{svg-jar "credit-card"}} Ghost(Pro)
                        </a>
                    </li>
                    <li class="relative gh-nav-pro"><commit_msg>Fixed "Members activity" nav link losing active class when filtered<commit_after><div class="flex flex-column h-100" {{css-transition (unless @firstRender "gh-nav-main")}} data-test-nav-menu="main" ...attributes>
    <header class="gh-nav-menu">
        <div class="gh-nav-menu-details">
            <div class="gh-nav-menu-icon {{this.iconClass}}" style={{this.iconStyle}}></div>
            <div class="gh-nav-menu-details-sitetitle">{{this.config.blogTitle}}</div>
        </div>
        <div class="gh-nav-menu-search">
            <button class="gh-nav-btn-search" {{on "click" (action "openSearchModal")}} title="Search site (Ctrl/⌘ + K)"><span>{{svg-jar "search"}}</span></button>
        </div>
    </header>

    <section class="gh-nav-body">
        <div class="gh-nav-top">
            <ul class="gh-nav-list gh-nav-main">
                {{#if (gh-user-can-admin this.session.user)}}
                <li class="relative">
                    <LinkTo @route="dashboard" @alt="Dashboard" @title="Dashboard" data-test-nav="dashboard">{{svg-jar "house"}} Dashboard</LinkTo>
                </li>
                {{/if}}
                <li class="relative">
                    <span {{action "transitionToOrRefreshSite" on="click"}}>
                        <LinkTo @route="site" data-test-nav="site" @current-when={{this.isOnSite}} @preventDefault={{false}}>
                            {{svg-jar "view-site"}} View site
                        </LinkTo>
                    </span>
                    <a href="{{this.config.blogUrl}}/" class="gh-secondary-action" title="Open site in new tab" target="_blank">
                        <span>{{svg-jar "external"}}</span>
                    </a>
                </li>
            </ul>
            <ul class="gh-nav-list gh-nav-manage">
                <li class="gh-nav-list-new relative">
                    <GhLinkToCustomViewsIndex @route="posts" @query={{reset-query-params "posts"}} data-test-nav="posts">{{svg-jar "posts"}}Posts</GhLinkToCustomViewsIndex>
                    <LinkTo @route="editor.new" @model="post" @classNames="gh-secondary-action gh-nav-new-post" @alt="New post" @title="New post" data-test-nav="new-story"><span>{{svg-jar "add-stroke"}}</span></LinkTo>
                    {{#if this.customViews.forPosts}}
                        <button type="button" class="gh-nav-button-expand {{if this.navigation.settings.expanded.posts "expanded"}}" {{on "click" (fn this.navigation.toggleExpansion "posts")}} aria-label="{{if this.navigation.settings.expanded.posts "Collapse custom post types" "Expand custom post types"}}">
                            {{svg-jar (if this.navigation.settings.expanded.posts "arrow-down-stroke" "arrow-right-stroke")}}
                        </button>
                        {{#liquid-if this.navigation.settings.expanded.posts}}
                            <ul class="gh-nav-view-list">
                                {{#each this.customViews.forPosts as |view|}}
                                    <li>
                                        <LinkTo @route="posts" @query={{reset-query-params "posts" view.filter}} data-test-nav-custom="{{view.route}}-{{view.name}}" title="{{view.name}}">
                                            <span class="gh-nav-viewname">{{view.name}}</span>
                                            <span class="flex items-center svg-{{view.color}}">
                                                {{#unless view.icon}}
                                                    <span class="absolute circle"></span>
                                                {{/unless}}
                                            </span>
                                        </LinkTo>
                                    </li>
                                {{/each}}
                            </ul>
                        {{/liquid-if}}
                    {{/if}}
                </li>
                <li>
                    {{!-- clicking the Content link whilst on the content screen should reset the filter --}}
                    {{#if (eq this.router.currentRouteName "pages")}}
                        <LinkTo @route="pages" @query={{reset-query-params "pages"}} @classNames="active" data-test-nav="pages">{{svg-jar "page"}}Pages</LinkTo>
                    {{else}}
                        <LinkTo @route="pages" data-test-nav="pages">{{svg-jar "page"}}Pages</LinkTo>
                    {{/if}}
                </li>
                {{#if this.showTagsNavigation}}
                    <li><LinkTo @route="tags" data-test-nav="tags">{{svg-jar "tag"}}Tags</LinkTo></li>
                {{/if}}
                {{#if (gh-user-can-admin this.session.user)}}
                    <li class="relative">
                        {{#if (eq this.router.currentRouteName "members.index")}}
                            <LinkTo @route="members" @current-when="members member" @query={{reset-query-params "members.index"}} data-test-nav="members">{{svg-jar "members"}}Members
                                {{#unless this.memberCountLoading}}
                                    <span class="gh-nav-member-count">{{format-number this.memberCount}}</span>
                                {{/unless}}
                            </LinkTo>
                        {{else}}
                            <LinkTo @route="members" @current-when="members member" data-test-nav="members">{{svg-jar "members"}}Members
                                {{#unless this.memberCountLoading}}
                                    <span class="gh-nav-member-count">{{format-number this.memberCount}}</span>
                                {{/unless}}
                            </LinkTo>
                        {{/if}}
                    </li>

                    {{#if (feature "membersActivityFeed")}}
                        <li>
                            {{#if (eq this.router.currentRouteName "members-activity")}}
                                <LinkTo @route="members-activity" @current-when="members-activity" @query={{reset-query-params "members-activity"}} data-test-nav="members-activity">{{svg-jar "members"}} Members activity</LinkTo>
                            {{else}}
                                <LinkTo @route="members-activity" @current-when="members-activity" data-test-nav="members-activity">{{svg-jar "members"}} Members activity</LinkTo>
                            {{/if}}
                        </li>
                    {{/if}}

                    {{#if this.isStripeConnected}}
                    <li>
                        <LinkTo @route="offers" @alt="Offers">{{svg-jar "percentage"}}Offers</LinkTo>
                    </li>
                    {{/if}}
                {{/if}}
            </ul>

            {{#if this.session.user.isOwnerOnly}}
            <ul class="gh-nav-list">
                {{#if this.showBilling}}
                    <li class="relative">
                        <a href="javascript:void(0)" class={{if this.billing.billingWindowOpen "active"}} {{action "toggleBillingModal" }} data-test-nav="billing">
                            {{svg-jar "credit-card"}} Ghost(Pro)
                        </a>
                    </li>
                    <li class="relative gh-nav-pro">
{'fraction_non_alphanumeric': 0.16028840820854132, 'fraction_numerical': 0.0005546311702717693, 'mean_word_length': 1.39379356123465, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 189, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1781900', 'n_tokens_mistral': 3831, 'n_tokens_neox': 3638, 'n_words': 642}