<commit_before><table class="lizmapPopupTable">
  <thead>
    <tr>
      <th>{@view~map.popup.table.th.data@}</th>
      <th>{@view~map.popup.table.th.value@}</th>
    </tr>
  </thead>

  <tbody>
  {foreach $attributes as $attribute}
  {if $attribute['name'] != 'geometry' && $attribute['name'] != 'maptip'}
    <tr>
      <th>{$attribute['name']}</th>
      <td>{$attribute['name']|featurepopup:$attribute['value'],$repository,$project}</td>
    </tr>
  {/if}
  {/foreach}
  </tbody>
</table><commit_msg>Hide empty fields in HTML popup<commit_after><table class="lizmapPopupTable">
  <thead>
    <tr>
      <th>{@view~map.popup.table.th.data@}</th>
      <th>{@view~map.popup.table.th.value@}</th>
    </tr>
  </thead>

  <tbody>
  {foreach $attributes as $attribute}
  {if $attribute['name'] != 'geometry' && $attribute['name'] != 'maptip' && $attribute['value'] != ''}
    <tr>
      <th>{$attribute['name']}</th>
      <td>{$attribute['name']|featurepopup:$attribute['value'],$repository,$project}</td>
    </tr>
  {/if}
  {/foreach}
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.24881740775780511, 'fraction_numerical': 0.0, 'mean_word_length': 3.853211009174312, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '3627691', 'n_tokens_mistral': 395, 'n_tokens_neox': 391, 'n_words': 57}