<commit_before><section id="cred-form">

  <div class="row" *ngIf="error">
    <div class="col-sm-12">
      {{error}}
    </div>
  </div>

  <div class="row" *ngIf="!loaded && !error">
    <div class="col-sm-12 page-load">
      <div class="loading-indicator"></div>
    </div>
  </div>

  <div class="row" *ngIf="loaded">
    <div class="col-md-12">
        <div class="col-sm-12">
            <a [routerLink]="'../../' | localize" class="title-back-link mrgn-bttm-md">!!!!!
              <span class="fa fa-arrow-left"></span> {{'topic.return-link' | translate}}</a>
            
              <div class="panel name-panel">
                  <div class="panel-heading" translate >
                      cred.business_registration
                  </div>
                  <h3 class="panel-title"> <strong>{{record.names[0].text}}</strong></h3>
              
                <div class="panel-body form-body">
                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.issuer</label>
                        <div class="form-field">
                            <a class="body-link issuer-link" [routerLink]="['/issuer', issuer.id] | localize">{{issuer.name}}</a>
                        </div>
                        <br/>
                    </div>

                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.type</label>
                        <div  *ngFor="let category of categories">
                            <div  *ngIf="category.type === 'topic_type'">
                                <div *ngIf="category.value" >
                                    {{('business_type.' + category.value) | translate}}
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.corp-num</label>
                        <div class="form-field">
                          {{record.topic.source_id}}
                        </div>
                    </div>

                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.start-date</label>
                        <div  *ngFor="let category of categories">
                                <div  *ngIf="category.type === 'topic_registration_date'">
                                    <div *ngIf="category.value" >
                                        {{category.value}}
                                    </div>
                                </div>
                            </div>
                    </div>

                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.status</label>
                        <div  *ngFor="let category of categories">
                            <div  *ngIf="category.type === 'topic_status'">
                                <div *ngIf="category.value" >
                                    {{('business_status.' + category.value) | translate}}
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.effective-date</label>
                        <div  *ngFor="let category of categories">
                            <div  *ngIf="category.type === 'topic_status_effective_date'">
                                    <div *ngIf="category.value" >
                                        {{category.value}}
                                    </div>
                            </div>
                        </div>
                    </div>
                    {{addresses.length}}!!!!
                    <div class="row form-group"  *ngIf="record.addresses.length > 0">
                        <label class="col-sm-3 control-label" translate>cred.jurisdiction</label>
                        <div class="form-field">
                            {{record.address[0].province}}
                        </div>
                    </div>

                    <div class="row form-group">
                      <div class="col-sm-6">
                          <button type="button" [class]="'btn btn-primary btn-verify' + (verifying ? ' loading' : '')" (click)="verifyCred($event)">
                            <span class="fa fa-accept"></span> {{'cred.verify-button-label' | translate}}</button>
                        </div>
                    </div>  
                    
                    <div class="row form-group">
                      <div class="disclaimer" translate>
                            <b translate>cred.note</b>
                            cred.disclaimer
                            <a href="https://www.ontario.ca/page/public-record-search" class="disclaimer-link" 
                            target="_blank" 
                            translate>topic.click-here</a>
                        </div>
                    </div>

                      <div class="row cred-verify" *ngIf="verifyResult || verifying">
                          <div class="col-sm-12" *ngIf="verifying">
                            <section class="alert alert-info">
                              <p translate>cred.verifying-record</p>
                            </section>
                          </div>
                          <div class="col-sm-12" *ngIf="! verifying">
                            <div [class]="'verify-result panel panel-' + (verifyStatus == 'success' ? 'success' : 'warning')" *ngIf="verifyStatus && verifyStatus !== 'error'">
                              <div class="panel-heading">
                                {{'cred.verify-status' | translate}} 
                              </div>
                              <div class="panel-body">
                                {{'cred.success' | translate }} 
                              </div>
                            </div>
                            <section class="alert alert-danger" *ngIf="verifyStatus === 'error'">
                              <p translate>cred.error</p>
                            </section>
                          </div>
                        </div>
                </div>
            </div>

       </div>
  </div>
</div>


</section><commit_msg>More bug fixes for Ontario<commit_after><section id="cred-form">

  <div class="row" *ngIf="error">
    <div class="col-sm-12">
      {{error}}
    </div>
  </div>

  <div class="row" *ngIf="!loaded && !error">
    <div class="col-sm-12 page-load">
      <div class="loading-indicator"></div>
    </div>
  </div>

  <div class="row" *ngIf="loaded">
    <div class="col-md-12">
        <div class="col-sm-12">
            <a [routerLink]="'../../' | localize" class="title-back-link mrgn-bttm-md">
              <span class="fa fa-arrow-left"></span> {{'topic.return-link' | translate}}</a>
            
              <div class="panel name-panel">
                  <div class="panel-heading" translate >
                      cred.business_registration
                  </div>
                  <h3 class="panel-title"> <strong>{{record.names[0].text}}</strong></h3>
              
                <div class="panel-body form-body">
                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.issuer</label>
                        <div class="form-field">
                            <a class="body-link issuer-link" [routerLink]="['/issuer', issuer.id] | localize">{{issuer.name}}</a>
                        </div>
                        <br/>
                    </div>

                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.type</label>
                        <div  *ngFor="let category of categories">
                            <div  *ngIf="category.type === 'topic_type'">
                                <div *ngIf="category.value" >
                                    {{('business_type.' + category.value) | translate}}
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.corp-num</label>
                        <div class="form-field">
                          {{record.topic.source_id}}
                        </div>
                    </div>

                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.start-date</label>
                        <div  *ngFor="let category of categories">
                                <div  *ngIf="category.type === 'topic_registration_date'">
                                    <div *ngIf="category.value" >
                                        {{category.value}}
                                    </div>
                                </div>
                            </div>
                    </div>

                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.status</label>
                        <div  *ngFor="let category of categories">
                            <div  *ngIf="category.type === 'topic_status'">
                                <div *ngIf="category.value" >
                                    {{('business_status.' + category.value) | translate}}
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row form-group">
                        <label class="col-sm-3 control-label" translate>cred.effective-date</label>
                        <div  *ngFor="let category of categories">
                            <div  *ngIf="category.type === 'topic_status_effective_date'">
                                    <div *ngIf="category.value" >
                                        {{category.value}}
                                    </div>
                            </div>
                        </div>
                    </div>
              
                    <div class="row form-group"  *ngIf="record.addresses.length > 0">
                        <label class="col-sm-3 control-label" translate>cred.jurisdiction</label>
                        <div class="form-field">
                            {{record.address[0].province}}
                        </div>
                    </div>

                    <div class="row form-group">
                      <div class="col-sm-6">
                          <button type="button" [class]="'btn btn-primary btn-verify' + (verifying ? ' loading' : '')" (click)="verifyCred($event)">
                            <span class="fa fa-accept"></span> {{'cred.verify-button-label' | translate}}</button>
                        </div>
                    </div>  
                    
                    <div class="row form-group">
                      <div class="disclaimer" translate>
                            <b translate>cred.note</b>
                            cred.disclaimer
                            <a href="https://www.ontario.ca/page/public-record-search" class="disclaimer-link" 
                            target="_blank" 
                            translate>topic.click-here</a>
                        </div>
                    </div>

                      <div class="row cred-verify" *ngIf="verifyResult || verifying">
                          <div class="col-sm-12" *ngIf="verifying">
                            <section class="alert alert-info">
                              <p translate>cred.verifying-record</p>
                            </section>
                          </div>
                          <div class="col-sm-12" *ngIf="! verifying">
                            <div [class]="'verify-result panel panel-' + (verifyStatus == 'success' ? 'success' : 'warning')" *ngIf="verifyStatus && verifyStatus !== 'error'">
                              <div class="panel-heading">
                                {{'cred.verify-status' | translate}} 
                              </div>
                              <div class="panel-body">
                                {{'cred.success' | translate }} 
                              </div>
                            </div>
                            <section class="alert alert-danger" *ngIf="verifyStatus === 'error'">
                              <p translate>cred.error</p>
                            </section>
                          </div>
                        </div>
                </div>
            </div>

       </div>
  </div>
</div>


</section>
{'fraction_non_alphanumeric': 0.13600122661760197, 'fraction_numerical': 0.003833180006133088, 'mean_word_length': 0.9681653590826795, 'pattern_counts': {'":': 0, '<': 261, '<?xml version=': 0, '>': 263, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5824856', 'n_tokens_mistral': 3267, 'n_tokens_neox': 3038, 'n_words': 566}