<commit_before><div bsModal #lotModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="lotModal.hide()" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">Add Lot</h4>
      </div>

      <div class="modal-body">
        <form (ngSubmit)="save()">
          <!-- Name -->
          <div class="form-group required">
            <label for="name" class="control-label">Name</label>
            <input type="text" class="form-control" id="name"
                   required
                   [(ngModel)]="lot.name" name="name" #name="ngModel">
            <p [hidden]="name.valid || name.pristine" class="alert alert-danger">
              Name is required
            </p>
          </div>

          <!-- Description -->
          <div class="form-group required">
            <label for="description" class="control-label">Description</label>
            <textarea class="form-control" id="description" rows="10"
                      required
                      [(ngModel)]="lot.description" name="description" #description="ngModel">
                </textarea>
            <p [hidden]="description.valid || description.pristine" class="alert alert-danger">
              Description is required
            </p>
          </div>

          <!-- Starting price -->
          <div class="form-group required">
            <label for="startingPrice" class="control-label">Starting price</label>
            <input type="number" class="form-control" id="startingPrice"
                   required
                   [(ngModel)]="lot.startingPrice" name="startingPrice" #startingPrice="ngModel">
            <p [hidden]="startingPrice.valid || startingPrice.pristine" class="alert alert-danger">
              Starting price is required
            </p>
          </div>

          <!-- Images -->
          <h4>Attachments</h4>
          <div class="panel panel-default panel-body drop-zone"
               (dragover)="mouseEnter = true"
               (dragleave)="mouseEnter = false"
               (drop)="mouseEnter = false"
               [class.file-over]="mouseEnter"
               ngFileDrop
               [options]="options"
               (onUpload)="handleMultipleUpload($event)">
            <span>Drop files right here or use button</span>
            <input type="file"
                   multiple="true"
                   ngFileSelect
                   [options]="options"
                   (onUpload)="handleMultipleUpload($event)">
          </div>

          <progressbar *ngIf="progress > 0 && progress < 100" [value]="progress" class="progress-striped active">
            <span style="color:white; white-space:nowrap;">{{progress}}%</span>
          </progressbar>

          <div class="row">
            <div *ngFor="let response of responses" class="col-xs-4 col-md-3">
              <div class="thumbnail">
                <a (click)="removeImage(response)" class="btn btn-danger pull-right" role="button"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
                <img [src]="response?.image" height="100"/>
              </div>
            </div>
          </div>

          <!-- Characteristics -->
          <p>//TODO: Characteristics</p>

          <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>&nbsp;Save</button>
        </form>
      </div>
    </div>
  </div>
</div><commit_msg>fixed upload button<commit_after><div bsModal #lotModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="lotModal.hide()" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">Add Lot</h4>
      </div>

      <div class="modal-body">
        <form (ngSubmit)="save()">
          <!-- Name -->
          <div class="form-group required">
            <label for="name" class="control-label">Name</label>
            <input type="text" class="form-control" id="name"
                   required
                   [(ngModel)]="lot.name" name="name" #name="ngModel">
            <p [hidden]="name.valid || name.pristine" class="alert alert-danger">
              Name is required
            </p>
          </div>

          <!-- Description -->
          <div class="form-group required">
            <label for="description" class="control-label">Description</label>
            <textarea class="form-control" id="description" rows="10"
                      required
                      [(ngModel)]="lot.description" name="description" #description="ngModel">
                </textarea>
            <p [hidden]="description.valid || description.pristine" class="alert alert-danger">
              Description is required
            </p>
          </div>

          <!-- Starting price -->
          <div class="form-group required">
            <label for="startingPrice" class="control-label">Starting price</label>
            <input type="number" class="form-control" id="startingPrice"
                   required
                   [(ngModel)]="lot.startingPrice" name="startingPrice" #startingPrice="ngModel">
            <p [hidden]="startingPrice.valid || startingPrice.pristine" class="alert alert-danger">
              Starting price is required
            </p>
          </div>

          <!-- Images -->
          <h4>Attachments</h4>
          <div class="panel panel-default panel-body drop-zone"
               (dragover)="mouseEnter = true"
               (dragleave)="mouseEnter = false"
               (drop)="mouseEnter = false"
               [class.file-over]="mouseEnter"
               ngFileDrop
               [options]="options"
               (onUpload)="handleMultipleUpload($event)">
            <span>Drop files right here or use button</span>
          </div>

          <input type="file"
                 multiple="true"
                 ngFileSelect
                 [options]="options"
                 (onUpload)="handleMultipleUpload($event)">

          <progressbar *ngIf="progress > 0 && progress < 100" [value]="progress" class="progress-striped active">
            <span style="color:white; white-space:nowrap;">{{progress}}%</span>
          </progressbar>

          <div class="row">
            <div *ngFor="let response of responses" class="col-xs-4 col-md-3">
              <div class="thumbnail">
                <a (click)="removeImage(response)" class="btn btn-danger pull-right" role="button"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
                <img [src]="response?.image" height="100"/>
              </div>
            </div>
          </div>

          <!-- Characteristics -->
          <p>//TODO: Characteristics</p>

          <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>&nbsp;Save</button>
        </form>
      </div>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.15964463588639116, 'fraction_numerical': 0.0043074438013191545, 'mean_word_length': 1.9935535858178888, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, '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': '4332618', 'n_tokens_mistral': 2059, 'n_tokens_neox': 1939, 'n_words': 391}