<commit_before><ion-header>
    <ion-navbar core-back-button>
        <ion-title>{{ 'core.settings.spaceusage' | translate }}</ion-title>
    </ion-navbar>
</ion-header>
<ion-content>
    <ion-refresher [enabled]="usageLoaded" (ionRefresh)="refreshData($event)">
        <ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
    </ion-refresher>
    <core-loading [hideUntil]="usageLoaded">
        <ion-item *ngFor="let site of sites" [class.core-primary-selected-item]="site.id == currentSiteId">
            <h2 text-wrap><core-format-text [text]="site.siteName" clean="true" [siteId]="site.id"></core-format-text></h2>
            <p text-wrap>{{ site.fullName }}</p>
            <div item-end>
                <p>{{ site.spaceUsage | coreBytesToSize }}</p>
                <p>{{ 'core.settings.entriesincache' | translate: { $a: site.cacheEntries } }}</p>
            </div>
            <button ion-button icon-only clear color="danger" item-end (click)="deleteSiteStorage(site)" [hidden]="!site.spaceUsage > '0' && !site.cacheEntries > '0'" [attr.aria-label]="'core.settings.deletesitefilestitle' | translate">
                <ion-icon name="trash"></ion-icon>
            </button>
        </ion-item>
        <ion-item-divider>
            <p>{{ 'core.settings.total' | translate }}</p>
            <div item-end>
                <p>{{ totalUsage | coreBytesToSize }}</p>
                <p>{{ 'core.settings.entriesincache' | translate: { $a: totalEntries } }}</p>
            </div>
        </ion-item-divider>
    </core-loading>
</ion-content>
<commit_msg>MOBILE-3213 settings: Hide space usage values when loading<commit_after><ion-header>
    <ion-navbar core-back-button>
        <ion-title>{{ 'core.settings.spaceusage' | translate }}</ion-title>
    </ion-navbar>
</ion-header>
<ion-content>
    <ion-refresher [enabled]="usageLoaded" (ionRefresh)="refreshData($event)">
        <ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
    </ion-refresher>
    <core-loading [hideUntil]="usageLoaded">
        <ion-item *ngFor="let site of sites" [class.core-primary-selected-item]="site.id == currentSiteId">
            <h2 text-wrap><core-format-text [text]="site.siteName" clean="true" [siteId]="site.id"></core-format-text></h2>
            <p text-wrap>{{ site.fullName }}</p>
            <div item-end>
                <p *ngIf="site.spaceUsage != null" text-end>{{ site.spaceUsage | coreBytesToSize }}</p>
                <p *ngIf="site.cacheEntries != null" text-end>{{ 'core.settings.entriesincache' | translate: { $a: site.cacheEntries } }}</p>
            </div>
            <button ion-button icon-only clear color="danger" item-end (click)="deleteSiteStorage(site)" [hidden]="!site.spaceUsage > '0' && !site.cacheEntries > '0'" [attr.aria-label]="'core.settings.deletesitefilestitle' | translate">
                <ion-icon name="trash"></ion-icon>
            </button>
        </ion-item>
        <ion-item-divider>
            <p>{{ 'core.settings.total' | translate }}</p>
            <div item-end>
                <p>{{ totalUsage | coreBytesToSize }}</p>
                <p>{{ 'core.settings.entriesincache' | translate: { $a: totalEntries } }}</p>
            </div>
        </ion-item-divider>
    </core-loading>
</ion-content>

{'fraction_non_alphanumeric': 0.1898244570068432, 'fraction_numerical': 0.0035703659625111574, 'mean_word_length': 2.6743169398907103, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 91, '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': '5039520', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1067, 'n_words': 189}