<commit_before><div class="table-items-row" [class.invalid]="fieldForm.invalid">
    <label>
        {{field | sqxDisplayName:'properties.label':'name'}} <span class="field-required" [class.hidden]="!field.properties.isRequired">*</span>
    </label> 
    
    <span class="field-disabled" *ngIf="field.isDisabled">Disabled</span>

    <div [formGroup]="fieldForm">
        <div *ngIf="field.partitioning === 'language' && languages.length > 1">
            <div class="languages-buttons" #buttonLanguages>
                <sqx-language-selector size="sm" (selectedLanguageChanged)="selectLanguage($event)" [languages]="languages"></sqx-language-selector>
            </div>

            <sqx-onboarding-tooltip id="languages" [for]="buttonLanguages" position="topRight" after="120000">
                Please remember to check all languages when you see validation errors.
            </sqx-onboarding-tooltip>
        </div>

        <div *ngFor="let partition of fieldPartitions">
            <div *ngIf="partition == fieldPartition">
                <sqx-control-errors [for]="partition" fieldName="{{field | sqxDisplayName:'properties.label':'name'}}" [submitted]="contentFormSubmitted"></sqx-control-errors>

                <div [ngSwitch]="field.properties.fieldType">
                    <div *ngSwitchCase="'Number'">
                        <div [ngSwitch]="field.properties.editor">
                            <div *ngSwitchCase="'Input'">
                                <input class="form-control" type="number" [formControlName]="partition">
                            </div>
                            <div *ngSwitchCase="'Stars'">
                                <sqx-stars [formControlName]="partition" [maximumStars]="field.properties.maxValue"></sqx-stars>
                            </div>
                            <div *ngSwitchCase="'Dropdown'">
                                <select class="form-control" [formControlName]="partition">
                                    <option></option>
                                    <option *ngFor="let value of field.properties.allowedValues" [ngValue]="value">{{value}}</option>
                                </select>
                            </div>
                            <div *ngSwitchCase="'Radio'">
                                <div class="form-check form-check-inline" *ngFor="let value of field.properties.allowedValues">
                                    <label class="form-check-label">
                                        <input class="form-check-input" type="radio" value="{{value}}" [formControlName]="partition"> {{value}}
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div *ngSwitchCase="'String'">
                        <div [ngSwitch]="field.properties.editor">
                            <div *ngSwitchCase="'Input'">
                                <input class="form-control" type="text" [formControlName]="partition">
                            </div>
                            <div *ngSwitchCase="'TextArea'">
                                <textarea class="form-control" [formControlName]="partition" rows="5"></textarea>
                            </div>
                            <div *ngSwitchCase="'RichText'">
                                <sqx-rich-editor [formControlName]="partition" (assetPluginClicked)="richTextEditorAssetPluginClicked($event)"></sqx-rich-editor>
                            </div>
                            <div *ngSwitchCase="'Markdown'">
                                <sqx-markdown-editor [formControlName]="partition"></sqx-markdown-editor>
                            </div><commit_msg>Placeholder fixed.<commit_after><div class="table-items-row" [class.invalid]="fieldForm.invalid">
    <label>
        {{field | sqxDisplayName:'properties.label':'name'}} <span class="field-required" [class.hidden]="!field.properties.isRequired">*</span>
    </label> 
    
    <span class="field-disabled" *ngIf="field.isDisabled">Disabled</span>

    <div [formGroup]="fieldForm">
        <div *ngIf="field.partitioning === 'language' && languages.length > 1">
            <div class="languages-buttons" #buttonLanguages>
                <sqx-language-selector size="sm" (selectedLanguageChanged)="selectLanguage($event)" [languages]="languages"></sqx-language-selector>
            </div>

            <sqx-onboarding-tooltip id="languages" [for]="buttonLanguages" position="topRight" after="120000">
                Please remember to check all languages when you see validation errors.
            </sqx-onboarding-tooltip>
        </div>

        <div *ngFor="let partition of fieldPartitions">
            <div *ngIf="partition == fieldPartition">
                <sqx-control-errors [for]="partition" fieldName="{{field | sqxDisplayName:'properties.label':'name'}}" [submitted]="contentFormSubmitted"></sqx-control-errors>

                <div [ngSwitch]="field.properties.fieldType">
                    <div *ngSwitchCase="'Number'">
                        <div [ngSwitch]="field.properties.editor">
                            <div *ngSwitchCase="'Input'">
                                <input class="form-control" type="number" [formControlName]="partition" [placeholder]="field.properties.placeholder">
                            </div>
                            <div *ngSwitchCase="'Stars'">
                                <sqx-stars [formControlName]="partition" [maximumStars]="field.properties.maxValue"></sqx-stars>
                            </div>
                            <div *ngSwitchCase="'Dropdown'">
                                <select class="form-control" [formControlName]="partition">
                                    <option></option>
                                    <option *ngFor="let value of field.properties.allowedValues" [ngValue]="value">{{value}}</option>
                                </select>
                            </div>
                            <div *ngSwitchCase="'Radio'">
                                <div class="form-check form-check-inline" *ngFor="let value of field.properties.allowedValues">
                                    <label class="form-check-label">
                                        <input class="form-check-input" type="radio" value="{{value}}" [formControlName]="partition"> {{value}}
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div *ngSwitchCase="'String'">
                        <div [ngSwitch]="field.properties.editor">
                            <div *ngSwitchCase="'Input'">
                                <input class="form-control" type="text" [formControlName]="partition" [placeholder]="field.properties.placeholder">
                            </div>
                            <div *ngSwitchCase="'TextArea'">
                                <textarea class="form-control" [formControlName]="partition" rows="5" [placeholder]="field.properties.placeholder"></textarea>
                            </div>
                            <div *ngSwitchCase="'RichText'">
                                <sqx-rich-editor [formControlName]="partition" (assetPluginClicked)="richTextEditorAssetPluginClicked($event)"></sqx-rich-editor>
                            </div>
                            <div *ngSwitchCase="'Markdown'">
                                <sqx-markdown-editor [formControlName]="partition"></sqx-markdown-editor>
                            </div>
{'fraction_non_alphanumeric': 0.13939081053175012, 'fraction_numerical': 0.002065049044914817, 'mean_word_length': 1.5692970822281167, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 133, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4266625', 'n_tokens_mistral': 1948, 'n_tokens_neox': 1813, 'n_words': 289}