<commit_before><ion-header>
  <ion-navbar>
    <ion-title>
      Your Weather Today
    </ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding>

  <form (ngSubmit)="getWeather()">
    <button type="button" color="light" ion-button icon-only (click)="locate()"><ion-icon name="locate"></ion-icon></button>
    <ion-list>
      <ion-item>
        
        <ion-input type="text" placeholder="Where are you today? (Zipcode)" [(ngModel)]="zipCode" name="zipCode"></ion-input>
        
      </ion-item>
      <ion-item>
        <button type="submit" ion-button>Go!</button>
      </ion-item>
      
    </ion-list>
  </form>
  <div *ngIf="isLoading()" style="text-align:center;">
    <ion-spinner></ion-spinner>
  </div>
    
   <div class="weatherContainer" *ngIf="showWeatherData()">
    <h1 class="largeText">{{conditions.metric.value}} &deg;{{conditions.metric.unitLabel}}</h1>
      <img src="/assets/weatherIcons/{{conditions.resourceFile()}}" width=75 height=45/>
      <h2>{{conditions.locationName}}</h2>
      <p>
        <label>{{conditions.epochDateTime}}</label>
      </p> 
    </div>

    <p *ngIf="error != null">
      {{error}}
    </p>
   
  
</ion-content>
<commit_msg>disable submit when zipCode is empty<commit_after><ion-header>
  <ion-navbar>
    <ion-title>
      Your Weather Today
    </ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding>

  <form (ngSubmit)="getWeather()">
    <button type="button" color="light" ion-button icon-only (click)="locate()"><ion-icon name="locate"></ion-icon></button>
    <ion-list>
      <ion-item>
        
        <ion-input type="text" placeholder="Where are you today? (Zipcode)" [(ngModel)]="zipCode" name="zipCode"></ion-input>
        
      </ion-item>
      <ion-item>
        <button [disabled]="!zipCode" type="submit" ion-button>Go!</button>
      </ion-item>
      
    </ion-list>
  </form>
  <div *ngIf="isLoading()" style="text-align:center;">
    <ion-spinner></ion-spinner>
  </div>
    
   <div class="weatherContainer" *ngIf="showWeatherData()">
    <h1 class="largeText">{{conditions.metric.value}} &deg;{{conditions.metric.unitLabel}}</h1>
      <img src="/assets/weatherIcons/{{conditions.resourceFile()}}" width=75 height=45/>
      <h2>{{conditions.locationName}}</h2>
      <p>
        <label>{{conditions.epochDateTime}}</label>
      </p> 
    </div>

    <p *ngIf="error != null">
      {{error}}
    </p>
   
  
</ion-content>

{'fraction_non_alphanumeric': 0.20616016427104722, 'fraction_numerical': 0.006570841889117043, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, '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': '2483861', 'n_tokens_mistral': 875, 'n_tokens_neox': 834, 'n_words': 136}