<commit_before><div class="photo-page">
    <h2>Upload a Plant Photo</h2>

<div>
    Plant ID#
    <input #textbox type="text" [(ngModel)]="textValue">
    <button (click)="getPlant(textbox.value)" value = "clicked" class="btn btn-primary">Find</button>
</div>

    <div *ngIf="plant" >
        <br>
        <u><strong>Plant</strong></u><br>
        <strong>Common Name:</strong> {{plant.commonName}}<br>
        <strong>Cultivar:</strong> {{plant.cultivar}}<br>
        <br>

        <file-upload #fu (change)="filename = undefined; uploadAttempted = false" [multiple]="false">-</file-upload>

        <button *ngIf="filename === undefined" class="btn btn-primary" (click)="this.handleUpload()" style="margin-top: 10px">
            <span class="glyphicon glyphicon-upload" aria-hidden="true"></span>
            Upload
        </button>

        <div *ngIf="filename!==undefined"> Your file was successfully uploaded as data set {{this.filename}}.
        </div>
        <div *ngIf="filename === undefined && uploadAttempted === true">File upload failed.</div>


    </div>

    <div *ngIf="!plant && clicked">
        Invalid plant ID
    </div>

</div>

<style>
    .photo-page {
        margin-top: -115px;
    }
</style><commit_msg>edit displayed text on client<commit_after><div class="photo-page">
    <h2>Upload a Plant Photo</h2>

<div>
    Plant ID#
    <input #textbox type="text" [(ngModel)]="textValue">
    <button (click)="getPlant(textbox.value)" value = "clicked" class="btn btn-primary">Find</button>
</div>

    <div *ngIf="plant" >
        <br>
        <u><strong>Plant</strong></u><br>
        <strong>Common Name:</strong> {{plant.commonName}}<br>
        <strong>Cultivar:</strong> {{plant.cultivar}}<br>
        <br>

        <file-upload #fu (change)="filename = undefined; uploadAttempted = false" [multiple]="false">-</file-upload>

        <button *ngIf="filename === undefined" class="btn btn-primary" (click)="this.handleUpload()" style="margin-top: 10px">
            <span class="glyphicon glyphicon-upload" aria-hidden="true"></span>
            Upload
        </button>

        <div *ngIf="filename!==undefined"> Your file was successfully uploaded for plant {{this.id}}.
        </div>
        <div *ngIf="filename === undefined && uploadAttempted === true">File upload failed.</div>


    </div>

    <div *ngIf="!plant && clicked">
        Invalid plant ID
    </div>

</div>

<style>
    .photo-page {
        margin-top: -115px;
    }
</style>
{'fraction_non_alphanumeric': 0.18679549114331723, 'fraction_numerical': 0.005636070853462158, 'mean_word_length': 3.0080645161290325, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '1874022', 'n_tokens_mistral': 827, 'n_tokens_neox': 786, 'n_words': 170}