<commit_before><ion-header>
    <ion-navbar>
        <ion-title>
            创建
        </ion-title>
        <ion-buttons end>
            <button ion-button (click)="save()">保存</button>
        </ion-buttons>
    </ion-navbar>
</ion-header>
<ion-content class="creation" id="page-container">
    <ion-list>
        <ion-item>
            <ion-label>位置</ion-label>
            <ion-note item-right>{{localityText}}</ion-note>
        </ion-item>
        <div style="width:100%;height:250px" id="map_drag_canvas"></div>
        <ion-item>
            <ion-label>类型</ion-label>
            <ion-select required [(ngModel)]="listing.type" (ionChange)="dirty['type']=true">
                <ion-option *ngFor="let v of typeOptions " [value]="v"> {{ v | enumMsgPipe }}</ion-option>
            </ion-select>
            <p style="color: red;" item-right *ngIf="dirty['type'] && (listing.type==null)">
                必填
            </p>
        </ion-item>
        <ion-item>
            <ion-label fixed>标题</ion-label>
            <ion-input required [(ngModel)]="listing.title" (change)="dirty['content']=true"></ion-input>
            <p style="color: red;" item-right *ngIf="dirty['title'] && !listing.title">
                必填
            </p>
        </ion-item>

        <ion-item>
            <ion-label>详情</ion-label>
            <ion-textarea required [(ngModel)]="listing.content" (change)="dirty['content']=true"></ion-textarea>
            <p style="color: red;" item-right *ngIf="dirty['content'] && !listing.content">
                必填
            </p>
        </ion-item>
        <ion-item *ngIf="isDebug()">
            <ion-label fixed>测试</ion-label>
            <ion-checkbox fixed color="dark" checked="true" [(ngModel)]="inTestGroup"></ion-checkbox>
        </ion-item>
        <ion-item>
            <ion-label fixed>图片</ion-label>
            <ion-input fixed disabled></ion-input>
        </ion-item>

        <ion-item>
            <image-grid
                    [imageIds]="listing.imageIds"
                    (updateImageIds)="updateImageIds($event)"
                    [isEdit]="true"
            ></image-grid>
        </ion-item>
        <button ion-button block color="danger" (click)="deleteListing()">删除</button>
    </ion-list>

</ion-content>
<commit_msg>change title css in listing-create<commit_after><ion-header>
    <ion-navbar>
        <ion-title>
            创建
        </ion-title>
        <ion-buttons end>
            <button ion-button (click)="save()">保存</button>
        </ion-buttons>
    </ion-navbar>
</ion-header>
<ion-content class="creation" id="page-container">
    <ion-list>
        <ion-item>
            <ion-label>位置</ion-label>
            <ion-note item-right>{{localityText}}</ion-note>
        </ion-item>
        <div style="width:100%;height:250px" id="map_drag_canvas"></div>
        <ion-item>
            <ion-label>类型</ion-label>
            <ion-select required [(ngModel)]="listing.type" (ionChange)="dirty['type']=true">
                <ion-option *ngFor="let v of typeOptions " [value]="v"> {{ v | enumMsgPipe }}</ion-option>
            </ion-select>
            <p style="color: red;" item-right *ngIf="dirty['type'] && (listing.type==null)">
                必填
            </p>
        </ion-item>
        <ion-item>
            <ion-label>标题</ion-label>
            <ion-input required [(ngModel)]="listing.title" (change)="dirty['content']=true"></ion-input>
            <p style="color: red;" item-right *ngIf="dirty['title'] && !listing.title">
                必填
            </p>
        </ion-item>

        <ion-item>
            <ion-label>详情</ion-label>
            <ion-textarea required [(ngModel)]="listing.content" (change)="dirty['content']=true"></ion-textarea>
            <p style="color: red;" item-right *ngIf="dirty['content'] && !listing.content">
                必填
            </p>
        </ion-item>
        <ion-item *ngIf="isDebug()">
            <ion-label fixed>测试</ion-label>
            <ion-checkbox fixed color="dark" checked="true" [(ngModel)]="inTestGroup"></ion-checkbox>
        </ion-item>
        <ion-item>
            <ion-label fixed>图片</ion-label>
            <ion-input fixed disabled></ion-input>
        </ion-item>

        <ion-item>
            <image-grid
                    [imageIds]="listing.imageIds"
                    (updateImageIds)="updateImageIds($event)"
                    [isEdit]="true"
            ></image-grid>
        </ion-item>
        <button ion-button block color="danger" (click)="deleteListing()">删除</button>
    </ion-list>

</ion-content>

{'fraction_non_alphanumeric': 0.185555797259082, 'fraction_numerical': 0.0026103980857080703, 'mean_word_length': 1.8719550281074329, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, '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': '5626776', 'n_tokens_mistral': 1494, 'n_tokens_neox': 1451, 'n_words': 227}