<commit_before><!-- Read only -->
<ion-item class="ion-text-wrap" *ngIf="!edit && text">
    <ion-label>
        <h2>{{ plugin.name }}</h2>
        <p *ngIf="words">{{ 'addon.mod_assign.numwords' | translate: {'$a': words} }}</p>
        <p>
            <core-format-text [component]="component" [componentId]="assign.cmid" [maxHeight]="80" [fullOnClick]="true"
                [fullTitle]="plugin.name" [text]="text" contextLevel="module" [contextInstanceId]="assign.cmid"
                [courseId]="assign.course">
            </core-format-text>
        </p>
    </ion-label>
</ion-item>

<!-- Edit -->
<div *ngIf="edit && loaded">
    <ion-item-divider class="ion-text-wrap" sticky="true">
        <ion-label><h2>{{ plugin.name }}</h2></ion-label>
    </ion-item-divider>
    <ion-item class="ion-text-wrap" *ngIf="wordLimitEnabled && words >= 0">
        <ion-label>
            <h2>{{ 'addon.mod_assign.wordlimit' | translate }}</h2>
            <p>{{ 'core.numwords' | translate: {'$a': words + ' / ' + wordLimit} }}</p>
        </ion-label>
    </ion-item>
    <ion-item class="ion-text-wrap">
        <ion-label></ion-label>
        <core-rich-text-editor [control]="control" [placeholder]="plugin.name"
            name="onlinetext_editor_text" (contentChanged)="onChange($event)" [component]="component"
            [componentId]="assign.cmid" [autoSave]="true" contextLevel="module" [contextInstanceId]="assign.cmid"
            elementId="onlinetext_editor" [draftExtraParams]="{userid: currentUserId, action: 'editsubmission'}">
        </core-rich-text-editor>
    </ion-item>
</div>
<commit_msg>MOBILE-3320 a11y: Add label to submission form<commit_after><!-- Read only -->
<ion-item class="ion-text-wrap" *ngIf="!edit && text">
    <ion-label>
        <h2>{{ plugin.name }}</h2>
        <p *ngIf="words">{{ 'addon.mod_assign.numwords' | translate: {'$a': words} }}</p>
        <p>
            <core-format-text [component]="component" [componentId]="assign.cmid" [maxHeight]="80" [fullOnClick]="true"
                [fullTitle]="plugin.name" [text]="text" contextLevel="module" [contextInstanceId]="assign.cmid"
                [courseId]="assign.course">
            </core-format-text>
        </p>
    </ion-label>
</ion-item>

<!-- Edit -->
<div *ngIf="edit && loaded">
    <ion-item-divider class="ion-text-wrap" sticky="true">
        <ion-label><h2>{{ plugin.name }}</h2></ion-label>
    </ion-item-divider>
    <ion-item class="ion-text-wrap" *ngIf="wordLimitEnabled && words >= 0">
        <ion-label>
            <h2>{{ 'addon.mod_assign.wordlimit' | translate }}</h2>
            <p>{{ 'core.numwords' | translate: {'$a': words + ' / ' + wordLimit} }}</p>
        </ion-label>
    </ion-item>
    <ion-item class="ion-text-wrap">
        <ion-label class="sr-only">{{ plugin.name }}</ion-label>
        <core-rich-text-editor [control]="control" [placeholder]="plugin.name"
            name="onlinetext_editor_text" (contentChanged)="onChange($event)" [component]="component"
            [componentId]="assign.cmid" [autoSave]="true" contextLevel="module" [contextInstanceId]="assign.cmid"
            elementId="onlinetext_editor" [draftExtraParams]="{userid: currentUserId, action: 'editsubmission'}">
        </core-rich-text-editor>
    </ion-item>
</div>

{'fraction_non_alphanumeric': 0.21124620060790272, 'fraction_numerical': 0.00729483282674772, 'mean_word_length': 3.008526187576127, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 77, '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': '7665581', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1119, 'n_words': 177}