<commit_before><ul class="nav navbar-nav">
    <li class="nav-item dropdown">
        <span class="nav-link dropdown-toggle" id="app-name" (click)="appsMenu.toggle()">
            <ng-container *ngIf="appsState.selectedAppOrNull | async; let app; else noApp">
                {{app.displayName}}
            </ng-container>

            <ng-template #noApp>
                Apps Overview
            </ng-template>
        </span>

        <ng-container *ngIf="appsState.apps | async; let apps">
            <ng-container *sqxModal="appsMenu;closeAlways:true;onRoot:false">
                <div class="dropdown-menu" @fade>
                    <a class="dropdown-item all-apps" routerLink="/app">
                        <span class="all-apps-text">All Apps</span> 
                        <span class="all-apps-pill badge badge-pill badge-primary">{{apps.length}}</span>
                    </a>
        
                    <ng-container *ngIf="apps.length > 0">
                        <div class="dropdown-divider"></div>

                        <div class="apps-list">
                            <a class="dropdown-item" *ngFor="let app of apps; trackBy: trackByApp" [routerLink]="['/app', app.name]" routerLinkActive="active">{{app.displayName}}</a>
                        </div>
                    </ng-container>

                    <ng-container *ngIf="(uiState.settings | async).canCreateApps">
                        <div class="dropdown-divider"></div>
        
                        <div class="dropdown-button">
                            <button type="button" class="btn btn-block btn-success" (click)="addAppDialog.show()">
                                <i class="icon-plus"></i> Create New App
                            </button>
                        </div>
                    </ng-container>
                </div>
            </ng-container>
        </ng-container>
    </li>

    <ng-container *ngIf="appsState.selectedApp | async; let app">
        <li class="nav-item" *ngIf="app.planUpgrade && app.planName">
            <div class="btn-group app-upgrade">
                <button type="button" class="btn btn-primary btn-plan">
                    You are on the <strong>{{app.planName}}</strong> plan.
                </button>
                <button type="button" class="btn btn-warning" [routerLink]="['/app', app.name, 'settings', 'plans']">
                    Upgrade!
                </button>
            </div>
        </li>
    </ng-container>
</ul>


<ng-container *sqxModal="addAppDialog">
    <sqx-app-form 
        (complete)="addAppDialog.hide()">
    </sqx-app-form>
</ng-container><commit_msg>Plan hint fixed.<commit_after><ul class="nav navbar-nav">
    <li class="nav-item dropdown">
        <span class="nav-link dropdown-toggle" id="app-name" (click)="appsMenu.toggle()">
            <ng-container *ngIf="appsState.selectedAppOrNull | async; let app; else noApp">
                {{app.displayName}}
            </ng-container>

            <ng-template #noApp>
                Apps Overview
            </ng-template>
        </span>

        <ng-container *ngIf="appsState.apps | async; let apps">
            <ng-container *sqxModal="appsMenu;closeAlways:true;onRoot:false">
                <div class="dropdown-menu" @fade>
                    <a class="dropdown-item all-apps" routerLink="/app">
                        <span class="all-apps-text">All Apps</span> 
                        <span class="all-apps-pill badge badge-pill badge-primary">{{apps.length}}</span>
                    </a>
        
                    <ng-container *ngIf="apps.length > 0">
                        <div class="dropdown-divider"></div>

                        <div class="apps-list">
                            <a class="dropdown-item" *ngFor="let app of apps; trackBy: trackByApp" [routerLink]="['/app', app.name]" routerLinkActive="active">{{app.displayName}}</a>
                        </div>
                    </ng-container>

                    <ng-container *ngIf="(uiState.settings | async).canCreateApps">
                        <div class="dropdown-divider"></div>
        
                        <div class="dropdown-button">
                            <button type="button" class="btn btn-block btn-success" (click)="addAppDialog.show()">
                                <i class="icon-plus"></i> Create New App
                            </button>
                        </div>
                    </ng-container>
                </div>
            </ng-container>
        </ng-container>
    </li>

    <ng-container *ngIf="appsState.selectedAppOrNull | async; let app">
        <li class="nav-item" *ngIf="app.planUpgrade && app.planName">
            <div class="btn-group app-upgrade">
                <button type="button" class="btn btn-primary btn-plan">
                    You are on the <strong>{{app.planName}}</strong> plan.
                </button>
                <button type="button" class="btn btn-warning" [routerLink]="['/app', app.name, 'settings', 'plans']">
                    Upgrade!
                </button>
            </div>
        </li>
    </ng-container>
</ul>


<ng-container *sqxModal="addAppDialog">
    <sqx-app-form 
        (complete)="addAppDialog.hide()">
    </sqx-app-form>
</ng-container>
{'fraction_non_alphanumeric': 0.15264445699228307, 'fraction_numerical': 0.0003764351590438547, 'mean_word_length': 1.5523535062439962, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6719054', 'n_tokens_mistral': 1530, 'n_tokens_neox': 1425, 'n_words': 277}