<commit_before><%def name="pokemon_page_header()">
<div id="dex-header">
    <a href="${url.current(name=c.prev_pokemon.name.lower(), form=None)}" id="dex-header-prev" class="dex-box-link">
        <img src="${h.static_uri('spline', 'icons/control-180.png')}" alt="«">
        <span class="sprite-icon sprite-icon-${c.prev_pokemon.id}"></span>
        ${c.prev_pokemon.conquest_order}: ${c.prev_pokemon.name}
    </a>
    <a href="${url.current(name=c.next_pokemon.name.lower(), form=None)}" id="dex-header-next" class="dex-box-link">
        ${c.next_pokemon.conquest_order}: ${c.next_pokemon.name}
        <span class="sprite-icon sprite-icon-${c.next_pokemon.id}"></span>
        <img src="${h.static_uri('spline', 'icons/control.png')}" alt="»">
    </a>
    ${h.pokedex.species_image(c.pokemon, prefix='icons')}
    <br />${c.pokemon.conquest_order}: ${c.pokemon.name}

    <ul class="inline-menu">
    % for action, label in (('pokemon', u'Pokédex'), \
                            ('pokemon_flavor', u'Flavor'), \
                            ('pokemon_locations', u'Locations')):
        <li><a href="${url(controller='dex', action=action, name=c.pokemon.name.lower())}">${label}</a></li>
    % endfor
        <li>${_(u'Conquest')}</li>
    </ul>
</div>
</%def>


<%def name="move_table_columns()">
<colgroup>
    <col class="dex-col-name">
    <col class="dex-col-type">
    <col class="dex-col-icon">
    <col class="dex-col-stat">
    <col>
    <col class="dex-col-stat">
    <col class="dex-col-effect">
</colgroup>
</%def>

<%def name="move_table_header()">
<th>Move</th>
<th>Type</th>
<th>Range</th>
<th colspan="2">Power</th>
<th>Acc</th>
<th>Effect</th>
</%def>

<%def name="move_table_row(move)">
<td><a href="${url(controller='dex_conquest', action='moves', name=move.name.lower())}">${move.name}</a></td>
<td class="type">${h.pokedex.type_link(move.type)}</td>
<td class="icon">${range_image(move)}</td>

% if move.conquest_data.power:
<td>${move.conquest_data.power}</td>
% else:
<td>—</td>
% endif

<td style="text-align: left">${u'★' * move.conquest_data.star_rating}</td>

% if move.conquest_data.accuracy:
<td>${move.conquest_data.accuracy}%</td>
% else:
<td>—</td>
% endif

<td class="markdown effect">${move.conquest_data.short_effect}</td>
</%def>


<%def name="pokemon_table_columns(link_cols=0)">
% if link_cols:
<colgroup span=${link_cols}></colgroup>
% endif
<colgroup>
    <col class="dex-col-icon">
    <col class="dex-col-name">
    <col class="dex-col-type2">
    <col class="dex-col-ability">
    <col class="dex-col-stat">
    <col class="dex-col-stat">
    <col class="dex-col-stat">
    <col class="dex-col-stat">
    <col class="dex-col-stat">
    <col class="dex-col-stat-total">
</colgroup>
</%def>

<%def name="pokemon_table_header(link_cols=0)">
<tr class="header-row">
    % if link_cols:
    <th colspan="${link_cols}">Link</th>
    % endif
    <th></th>
    <th>Pokémon</th>
    <th>Type</th>
    <th>Abilities</th>
    <th>Range</th>
    <th><abbr title="Hit Points">HP</abbr></th>
    <th><abbr title="Attack">Atk</abbr></th>
    <th><abbr title="Defense">Def</abbr></th>
    <th><abbr title="Speed">Spd</abbr></th>
    <th>Total</th>
</tr>
% if link_cols:
<tr class="subheader-row conquest-subheader-row">
    % for rank in range(1, link_cols + 1):
    <th>${h.pokedex.conquest_rank_label[rank]}</th>
    % endfor
    % for column in range(10):
    <th></th>
    % endfor
</tr>
% endif
</%def>

<%def name="pokemon_table_row(pokemon)">
<td class="icon"><span class="sprite-icon sprite-icon-${pokemon.id}"></span></td><commit_msg>Don't give single-rank warriors' Pokémon tables subheaders.<commit_after><%def name="pokemon_page_header()">
<div id="dex-header">
    <a href="${url.current(name=c.prev_pokemon.name.lower(), form=None)}" id="dex-header-prev" class="dex-box-link">
        <img src="${h.static_uri('spline', 'icons/control-180.png')}" alt="«">
        <span class="sprite-icon sprite-icon-${c.prev_pokemon.id}"></span>
        ${c.prev_pokemon.conquest_order}: ${c.prev_pokemon.name}
    </a>
    <a href="${url.current(name=c.next_pokemon.name.lower(), form=None)}" id="dex-header-next" class="dex-box-link">
        ${c.next_pokemon.conquest_order}: ${c.next_pokemon.name}
        <span class="sprite-icon sprite-icon-${c.next_pokemon.id}"></span>
        <img src="${h.static_uri('spline', 'icons/control.png')}" alt="»">
    </a>
    ${h.pokedex.species_image(c.pokemon, prefix='icons')}
    <br />${c.pokemon.conquest_order}: ${c.pokemon.name}

    <ul class="inline-menu">
    % for action, label in (('pokemon', u'Pokédex'), \
                            ('pokemon_flavor', u'Flavor'), \
                            ('pokemon_locations', u'Locations')):
        <li><a href="${url(controller='dex', action=action, name=c.pokemon.name.lower())}">${label}</a></li>
    % endfor
        <li>${_(u'Conquest')}</li>
    </ul>
</div>
</%def>


<%def name="move_table_columns()">
<colgroup>
    <col class="dex-col-name">
    <col class="dex-col-type">
    <col class="dex-col-icon">
    <col class="dex-col-stat">
    <col>
    <col class="dex-col-stat">
    <col class="dex-col-effect">
</colgroup>
</%def>

<%def name="move_table_header()">
<th>Move</th>
<th>Type</th>
<th>Range</th>
<th colspan="2">Power</th>
<th>Acc</th>
<th>Effect</th>
</%def>

<%def name="move_table_row(move)">
<td><a href="${url(controller='dex_conquest', action='moves', name=move.name.lower())}">${move.name}</a></td>
<td class="type">${h.pokedex.type_link(move.type)}</td>
<td class="icon">${range_image(move)}</td>

% if move.conquest_data.power:
<td>${move.conquest_data.power}</td>
% else:
<td>—</td>
% endif

<td style="text-align: left">${u'★' * move.conquest_data.star_rating}</td>

% if move.conquest_data.accuracy:
<td>${move.conquest_data.accuracy}%</td>
% else:
<td>—</td>
% endif

<td class="markdown effect">${move.conquest_data.short_effect}</td>
</%def>


<%def name="pokemon_table_columns(link_cols=0)">
% if link_cols:
<colgroup span=${link_cols}></colgroup>
% endif
<colgroup>
    <col class="dex-col-icon">
    <col class="dex-col-name">
    <col class="dex-col-type2">
    <col class="dex-col-ability">
    <col class="dex-col-stat">
    <col class="dex-col-stat">
    <col class="dex-col-stat">
    <col class="dex-col-stat">
    <col class="dex-col-stat">
    <col class="dex-col-stat-total">
</colgroup>
</%def>

<%def name="pokemon_table_header(link_cols=0)">
<tr class="header-row">
    % if link_cols:
    <th colspan="${link_cols}">Link</th>
    % endif
    <th></th>
    <th>Pokémon</th>
    <th>Type</th>
    <th>Abilities</th>
    <th>Range</th>
    <th><abbr title="Hit Points">HP</abbr></th>
    <th><abbr title="Attack">Atk</abbr></th>
    <th><abbr title="Defense">Def</abbr></th>
    <th><abbr title="Speed">Spd</abbr></th>
    <th>Total</th>
</tr>
% if link_cols > 1:
<tr class="subheader-row conquest-subheader-row">
    % for rank in range(1, link_cols + 1):
    <th>${h.pokedex.conquest_rank_label[rank]}</th>
    % endfor
    % for column in range(10):
    <th></th>
    % endfor
</tr>
% endif
</%def>

<%def name="pokemon_table_row(pokemon)">
<td class="icon"><span class="sprite-icon sprite-icon-${pokemon.id}"></span></td>
{'fraction_non_alphanumeric': 0.23722931704608552, 'fraction_numerical': 0.003192670738478623, 'mean_word_length': 4.020905923344948, 'pattern_counts': {'":': 0, '<': 265, '<?xml version=': 0, '>': 266, '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': '1456629', 'n_tokens_mistral': 2939, 'n_tokens_neox': 2868, 'n_words': 412}