<commit_before><div *ngIf="getLostBuildingsNb()+getLostUnitsNb()+getLostResourcesNb() == 0" translate>
  No loss in the city
</div>

<div *ngIf="getLostUnitsNb() > 0">
  <strong translate>Lost units</strong><strong translate>:</strong>
  <ul>
    <li *ngFor="let unit of getLostUnits()">
      {{unit.nb| number:'': this.translate.currentLang}}
      <span *ngIf="info.lost_unit[unit.code] == 1">{{user.info.datas.army[unit.code].name|translate}}</span>
      <span *ngIf="info.lost_unit[unit.code] > 1">{{user.info.datas.army[unit.code].names|translate}}</span>
    </li>
  </ul>
</div>
<div *ngIf="getLostBuildingsNb() > 0">
  <strong translate>Lost buildings</strong><strong translate>:</strong>
  <ul>
    <li *ngFor="let building of getLostBuildings()">
      {{building.nb| number:'': this.translate.currentLang}}
      <span *ngIf="info.lost_build[building.code] == 1">{{user.info.datas.building[building.code].name|translate}}</span><commit_msg>Fix JS error during the first load<commit_after><div *ngIf="getLostBuildingsNb()+getLostUnitsNb()+getLostResourcesNb() == 0" translate>
  No loss in the city
</div>

<div *ngIf="getLostUnitsNb() > 0 && user.info.datas.army">
  <strong translate>Lost units</strong><strong translate>:</strong>
  <ul>
    <li *ngFor="let unit of getLostUnits()">
      {{unit.nb| number:'': this.translate.currentLang}}
      <span *ngIf="info.lost_unit[unit.code] == 1">{{user.info.datas.army[unit.code].name|translate}}</span>
      <span *ngIf="info.lost_unit[unit.code] > 1">{{user.info.datas.army[unit.code].names|translate}}</span>
    </li>
  </ul>
</div>
<div *ngIf="getLostBuildingsNb() > 0">
  <strong translate>Lost buildings</strong><strong translate>:</strong>
  <ul>
    <li *ngFor="let building of getLostBuildings()">
      {{building.nb| number:'': this.translate.currentLang}}
      <span *ngIf="info.lost_build[building.code] == 1">{{user.info.datas.building[building.code].name|translate}}</span>
{'fraction_non_alphanumeric': 0.20246027678113787, 'fraction_numerical': 0.006150691952844695, 'mean_word_length': 5.177215189873418, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 59, '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': '5007226', 'n_tokens_mistral': 726, 'n_tokens_neox': 678, 'n_words': 114}