<commit_before><div
    ng-if="item"
    ng-repeat="field in fields track by field.field"
    data-test-id="media-metadata-editor"
>

    <div
        ng-if="(!field.type && !field.cv) || (field.type === 'string' && !field.cv)"
        class="sd-line-input sd-line-input--boxed"
        ng-class="{'sd-line-input--required': field.required}"
        data-test-id="{{'field--' + field.field}}"
    >
        <label class="sd-line-input__label">{{field.label}}</label>
        <sd-plain-text-editor
            on-change="handleInputChange"
            on-change-data="{field: field.field}"
            value="item[field.field]"
            classes="'sd-line-input__input'"
            spellcheck="true"
            language="item.language"
        />
    </div>
<commit_msg>[SDAAP-21] fix: Show character limits in MediaMetadata editor (#4118)<commit_after><div
    ng-if="item"
    ng-repeat="field in fields track by field.field"
    data-test-id="media-metadata-editor"
>

    <div
        ng-if="(!field.type && !field.cv) || (field.type === 'string' && !field.cv)"
        class="sd-line-input sd-line-input--boxed"
        ng-class="{'sd-line-input--required': field.required}"
        data-test-id="{{'field--' + field.field}}"
    >
        <label class="sd-line-input__label">{{field.label}}</label>
        <sd-plain-text-editor
            on-change="handleInputChange"
            on-change-data="{field: field.field}"
            value="item[field.field]"
            classes="'sd-line-input__input'"
            spellcheck="true"
            language="item.language"
        />
        <sd-character-count
            ng-if="field.maxlength"
            class="sd-line-input__char-count"
            data-item="item[field.field]"
            data-limit="field.maxlength"
        ></sd-character-count>
    </div>

{'fraction_non_alphanumeric': 0.17907995618838993, 'fraction_numerical': 0.0032858707557502738, 'mean_word_length': 2.194055944055944, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '5833158', 'n_tokens_mistral': 585, 'n_tokens_neox': 568, 'n_words': 78}