<commit_before><!-- Generates a list of zone names -->
<div metal:define-macro="zone_list" class="detail_content">
    <ul class="area_list">
        <li tal:repeat="zone zones">
            ${zone/name} in the ${zone/realm} ${zone/region}
        </li>
    </ul>
</div>

<!-- given a list of zone shields generates the icon list -->
<span metal:define-macro="zone_shields"
        tal:repeat="zone zones"
        tal:attributes="class string:zone-icon ${repeat/zone/key}; title zone"/>

<span metal:define-macro="zone_shield"
        tal:attributes="class string:zone-icon ${zone/shortID}; title zone/shortName"/>

<!-- Mob list from a zone object -->
<div metal:define-macro="zone_mob_list" class="detail_content" style="padding-left:4em;">
    <tal:block tal:repeat="mob zone/mobs">
        <span>${mob/name} (${mob/level})</span><span tal:condition="not: repeat/mob/end">,</span>
    </tal:block>
</div>
<!-- Shows a Fetch more tbody -->
<tbody metal:define-macro="moreresults" class="moreresults pointer" tal:attributes="limit limit; offset php:offset+limit">
    <tr>
        <td tal:attributes="colspan colspan">
            Fetch More Results...
        </td>
    </tr>
</tbody>

<!--
    results         countable array of entries.
    offset & limit  result set position.
    colspan         the # of columns for the more.. entry
    item_name       the name of what is being listed
-->
<tal:block metal:define-macro="resultiterator" tal:define="count count: results">
    <table tal:condition="not:offset" class="search_results">
        <caption>Found ${count} ${item_name}</caption>
        <thead metal:define-slot="header"/>
        <tal:block metal:use-macro="body"/>
        <tal:block metal:define-macro="body">
            <tbody tal:attributes="offset offset; limit limit">
                <tal:block tal:repeat="entry limit: offset limit results">
                    <tal:block tal:define="EvenOdd cssodd:repeat/entry/odd" metal:use-macro="${entry_macro}"/>
                </tal:block>
            </tbody>
            <tal:block tal:condition="moreresults" metal:use-macro="moreresults"/>
        </tal:block>
    </table>
    <tal:block tal:condition="offset" metal:use-macro="body"/>
</tal:block>

<!-- Generates a "throw on map" button
    mapData            the data to be thrown on the map
-->
<tal:block metal:define-macro="throwonmap">
    <span class="ui-icon ui-icon-cart throwOnMap" style="display: inline-block" tal:attributes="data-map json: mapData"/>
</tal:block>

<tal:block metal:define-macro="toggleicon">
    <span style="display: inline-block" class="ui-icon ui-icon-circle-plus toggle_icon"/>
</tal:block><commit_msg>Switch throwmap icon to a star<commit_after><!-- Generates a list of zone names -->
<div metal:define-macro="zone_list" class="detail_content">
    <ul class="area_list">
        <li tal:repeat="zone zones">
            ${zone/name} in the ${zone/realm} ${zone/region}
        </li>
    </ul>
</div>

<!-- given a list of zone shields generates the icon list -->
<span metal:define-macro="zone_shields"
        tal:repeat="zone zones"
        tal:attributes="class string:zone-icon ${repeat/zone/key}; title zone"/>

<span metal:define-macro="zone_shield"
        tal:attributes="class string:zone-icon ${zone/shortID}; title zone/shortName"/>

<!-- Mob list from a zone object -->
<div metal:define-macro="zone_mob_list" class="detail_content" style="padding-left:4em;">
    <tal:block tal:repeat="mob zone/mobs">
        <span>${mob/name} (${mob/level})</span><span tal:condition="not: repeat/mob/end">,</span>
    </tal:block>
</div>
<!-- Shows a Fetch more tbody -->
<tbody metal:define-macro="moreresults" class="moreresults pointer" tal:attributes="limit limit; offset php:offset+limit">
    <tr>
        <td tal:attributes="colspan colspan">
            Fetch More Results...
        </td>
    </tr>
</tbody>

<!--
    results         countable array of entries.
    offset & limit  result set position.
    colspan         the # of columns for the more.. entry
    item_name       the name of what is being listed
-->
<tal:block metal:define-macro="resultiterator" tal:define="count count: results">
    <table tal:condition="not:offset" class="search_results">
        <caption>Found ${count} ${item_name}</caption>
        <thead metal:define-slot="header"/>
        <tal:block metal:use-macro="body"/>
        <tal:block metal:define-macro="body">
            <tbody tal:attributes="offset offset; limit limit">
                <tal:block tal:repeat="entry limit: offset limit results">
                    <tal:block tal:define="EvenOdd cssodd:repeat/entry/odd" metal:use-macro="${entry_macro}"/>
                </tal:block>
            </tbody>
            <tal:block tal:condition="moreresults" metal:use-macro="moreresults"/>
        </tal:block>
    </table>
    <tal:block tal:condition="offset" metal:use-macro="body"/>
</tal:block>

<!-- Generates a "throw on map" button
    mapData            the data to be thrown on the map
-->
<tal:block metal:define-macro="throwonmap">
    <span class="ui-icon ui-icon-star throwOnMap" style="display: inline-block" tal:attributes="data-map json: mapData"/>
</tal:block>

<tal:block metal:define-macro="toggleicon">
    <span style="display: inline-block" class="ui-icon ui-icon-circle-plus toggle_icon"/>
</tal:block>
{'fraction_non_alphanumeric': 0.16145345570331524, 'fraction_numerical': 0.00037460198539052256, 'mean_word_length': 3.238095238095238, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, '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': '4477131', 'n_tokens_mistral': 1656, 'n_tokens_neox': 1587, 'n_words': 396}