<commit_before><%inherit file="/base.mako"/>

<%def name="title()">${c.pokemon.name}</%def>

<h1>Pokédex Description</h1>
% for generation, version_texts in sorted(c.flavor_text.items(), \
                                          key=lambda (k, v): k.id):
<div class="dex-pokemon-flavor-generation">${h.pokedex.generation_icon(generation)}</div>
<dl class="dex-pokemon-flavor-text">
    % for version, flavor_text in sorted(version_texts.items(), \
                                         key=lambda (k, v): k.id):
    <dt>${h.pokedex.version_icons(version)}</dt>
    <dd>${flavor_text}</dd>
    % endfor
</dl>
% endfor


<h1>Main Game Sprites</h1>

<h2>${h.pokedex.generation_icon(1)} Blue, Red &amp; Blue, Yellow</h2>
<table>
<tr class="header-row">
    <th></th>
    <td class="vertical-line" rowspan="2"></td>
    <th>Blue</th>
    <td class="vertical-line" rowspan="2"></td>
    <th>${h.pokedex.version_icons(u'Red', u'Blue')}</th>
    <td class="vertical-line" rowspan="2"></td>
    <th>${h.pokedex.version_icons(u'Yellow')}</th>
    <td class="vertical-line" rowspan="2"></td>
    <th></th>
</tr>
<tr>
    <th class="vertical-text">Normal</th>
    <td>${h.pokedex.pokedex_img('jp-blue/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('red-blue/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('yellow/%d.png' % c.pokemon.id)}</td>

    <td>${h.pokedex.pokedex_img('red-blue/back/%d.png' % c.pokemon.id)}</td>
</tr>
</table>

<h2>${h.pokedex.generation_icon(2)} Gold &amp; Silver, Crystal</h2>
<table>
<tr class="header-row">
    <th></th>
    <td class="vertical-line" rowspan="3"></td>
    <th>${h.pokedex.version_icons(u'Gold')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th>${h.pokedex.version_icons(u'Silver')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th>${h.pokedex.version_icons(u'Crystal')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th></th>
</tr>
<tr>
    <th class="vertical-text">Normal</th>
    <td>${h.pokedex.pokedex_img('gold/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('silver/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('crystal/%d.gif' % c.pokemon.id)}</td>

    <td>${h.pokedex.pokedex_img('gold/back/%d.png' % c.pokemon.id)}</td>
</tr>
<tr>
    <th class="vertical-text">Shiny</th>
    <td>${h.pokedex.pokedex_img('gold/shiny/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('silver/shiny/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('crystal/shiny/%d.gif' % c.pokemon.id)}</td>

    <td>${h.pokedex.pokedex_img('gold/back/shiny/%d.png' % c.pokemon.id)}</td>
</tr>
</table>

<h2>${h.pokedex.generation_icon(3)} Ruby &amp; Sapphire, Emerald, Fire Red &amp; Leaf Green</h2>
<table>
<tr class="header-row">
    <th></th>
    <td class="vertical-line" rowspan="3"></td>
    <th>${h.pokedex.version_icons(u'Ruby', u'Sapphire')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th>${h.pokedex.version_icons(u'Emerald')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th colspan="2">${h.pokedex.version_icons(u'Fire Red', u'Leaf Green')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th></th>
    <!-- XXX emerald animated?  frlg back? -->
</tr>
<tr>
    <th class="vertical-text">Normal</th>
    <td>${h.pokedex.pokedex_img('ruby-sapphire/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('emerald/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('firered-leafgreen/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('firered-leafgreen/back/%d.png' % c.pokemon.id)}</td>

    <td>${h.pokedex.pokedex_img('ruby-sapphire/back/%d.png' % c.pokemon.id)}</td>
</tr>
<tr>
    <th class="vertical-text">Shiny</th>
    <td>${h.pokedex.pokedex_img('ruby-sapphire/shiny/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('emerald/shiny/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('firered-leafgreen/shiny/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('firered-leafgreen/back/shiny/%d.png' % c.pokemon.id)}</td>

    <td>${h.pokedex.pokedex_img('ruby-sapphire/back/shiny/%d.png' % c.pokemon.id)}</td>
</tr>
</table>

<h2>${h.pokedex.generation_icon(4)} Diamond &amp; Pearl, Platinum</h2>
<table>
<tr class="header-row">
    <th></th>
    <td class="vertical-line" rowspan="3"></td>
    <th colspan="2">${h.pokedex.version_icons(u'Diamond', u'Pearl')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th colspan="2">${h.pokedex.version_icons(u'Platinum')}</th>
</tr>
<tr>
    <th class="vertical-text">Normal</th>
    <td>
        ${h.pokedex.pokedex_img('diamond-pearl/%d.png' % c.pokemon.id)}
        ${h.pokedex.pokedex_img('diamond-pearl/frame2/%d.png' % c.pokemon.id)}
    </td>
    <td>${h.pokedex.pokedex_img('diamond-pearl/back/%d.png' % c.pokemon.id)}</td>

    <td>
        ${h.pokedex.pokedex_img('platinum/%d.png' % c.pokemon.id)}
        ${h.pokedex.pokedex_img('platinum/frame2/%d.png' % c.pokemon.id)}
    </td>
    <td>
        ${h.pokedex.pokedex_img('platinum/back/%d.png' % c.pokemon.id)}
        ${h.pokedex.pokedex_img('platinum/back/frame2/%d.png' % c.pokemon.id)}
    </td>
</tr>
% if c.pokemon.has_gen4_fem_sprite:
<tr><commit_msg>Minor rearrangements of flavor page.  #74<commit_after><%inherit file="/base.mako"/>

<%def name="title()">${c.pokemon.name}</%def>

<h1>Pokédex Description</h1>
% for generation, version_texts in sorted(c.flavor_text.items(), \
                                          key=lambda (k, v): k.id):
<div class="dex-pokemon-flavor-generation">${h.pokedex.generation_icon(generation)}</div>
<dl class="dex-pokemon-flavor-text">
    % for version, flavor_text in sorted(version_texts.items(), \
                                         key=lambda (k, v): k.id):
    <dt>${h.pokedex.version_icons(version)}</dt>
    <dd>${flavor_text}</dd>
    % endfor
</dl>
% endfor


<h1>Main Game Sprites</h1>

<h2>${h.pokedex.generation_icon(1)} Blue, Red &amp; Blue, Yellow</h2>
<table>
<tr class="header-row">
    <th></th>
    <td class="vertical-line" rowspan="2"></td>
    <th>Blue</th>
    <td class="vertical-line" rowspan="2"></td>
    <th>${h.pokedex.version_icons(u'Red', u'Blue')}</th>
    <td class="vertical-line" rowspan="2"></td>
    <th>${h.pokedex.version_icons(u'Yellow')}</th>
    <td class="vertical-line" rowspan="2"></td>
    <th></th>
</tr>
<tr>
    <th class="vertical-text">Normal</th>
    <td>${h.pokedex.pokedex_img('jp-blue/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('red-blue/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('yellow/%d.png' % c.pokemon.id)}</td>

    <td>${h.pokedex.pokedex_img('red-blue/back/%d.png' % c.pokemon.id)}</td>
</tr>
</table>

<h2>${h.pokedex.generation_icon(2)} Gold &amp; Silver, Crystal</h2>
<table>
<tr class="header-row">
    <th></th>
    <td class="vertical-line" rowspan="3"></td>
    <th>${h.pokedex.version_icons(u'Gold')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th>${h.pokedex.version_icons(u'Silver')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th>${h.pokedex.version_icons(u'Crystal')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th></th>
</tr>
<tr>
    <th class="vertical-text">Normal</th>
    <td>${h.pokedex.pokedex_img('gold/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('silver/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('crystal/%d.gif' % c.pokemon.id)}</td>

    <td>${h.pokedex.pokedex_img('gold/back/%d.png' % c.pokemon.id)}</td>
</tr>
<tr>
    <th class="vertical-text">Shiny</th>
    <td>${h.pokedex.pokedex_img('gold/shiny/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('silver/shiny/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('crystal/shiny/%d.gif' % c.pokemon.id)}</td>

    <td>${h.pokedex.pokedex_img('gold/back/shiny/%d.png' % c.pokemon.id)}</td>
</tr>
</table>

<h2>${h.pokedex.generation_icon(3)} Ruby &amp; Sapphire, Emerald, Fire Red &amp; Leaf Green</h2>
<table>
<tr class="header-row">
    <th></th>
    <td class="vertical-line" rowspan="3"></td>
    <th colspan="2">${h.pokedex.version_icons(u'Ruby', u'Sapphire')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th>${h.pokedex.version_icons(u'Emerald')}</th>
    <td class="vertical-line" rowspan="3"></td>
    <th colspan="2">${h.pokedex.version_icons(u'Fire Red', u'Leaf Green')}</th>
    <!-- XXX emerald animated? -->
</tr>
<tr>
    <th class="vertical-text">Normal</th>
    <td>${h.pokedex.pokedex_img('ruby-sapphire/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('ruby-sapphire/back/%d.png' % c.pokemon.id)}</td>

    <td>${h.pokedex.pokedex_img('emerald/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('firered-leafgreen/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('firered-leafgreen/back/%d.png' % c.pokemon.id)}</td>
</tr>
<tr>
    <th class="vertical-text">Shiny</th>
    <td>${h.pokedex.pokedex_img('ruby-sapphire/shiny/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('ruby-sapphire/back/shiny/%d.png' % c.pokemon.id)}</td>

    <td>${h.pokedex.pokedex_img('emerald/shiny/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('firered-leafgreen/shiny/%d.png' % c.pokemon.id)}</td>
    <td>${h.pokedex.pokedex_img('firered-leafgreen/back/shiny/%d.png' % c.pokemon.id)}</td>
</tr>
</table>

<h2>${h.pokedex.generation_icon(4)} Diamond &amp; Pearl, Platinum</h2>
<% dpp_rowspan = 1 + 2 + (2 if c.pokemon.has_gen4_fem_sprite else 0) %>\
<table>
<tr class="header-row">
    <th></th>
    <td class="vertical-line" rowspan="${dpp_rowspan}"></td>
    <th colspan="2">${h.pokedex.version_icons(u'Diamond', u'Pearl')}</th>
    <td class="vertical-line" rowspan="${dpp_rowspan}"></td>
    <th colspan="2">${h.pokedex.version_icons(u'Platinum')}</th>
</tr>
<tr>
    <th class="vertical-text">Normal</th>
    <td>
        ${h.pokedex.pokedex_img('diamond-pearl/%d.png' % c.pokemon.id)}
        ${h.pokedex.pokedex_img('diamond-pearl/frame2/%d.png' % c.pokemon.id)}
    </td>
    <td>${h.pokedex.pokedex_img('diamond-pearl/back/%d.png' % c.pokemon.id)}</td>

    <td>
        ${h.pokedex.pokedex_img('platinum/%d.png' % c.pokemon.id)}
        ${h.pokedex.pokedex_img('platinum/frame2/%d.png' % c.pokemon.id)}
    </td>
    <td>
        ${h.pokedex.pokedex_img('platinum/back/%d.png' % c.pokemon.id)}
        ${h.pokedex.pokedex_img('platinum/back/frame2/%d.png' % c.pokemon.id)}
    </td>
</tr>
% if c.pokemon.has_gen4_fem_sprite:
<tr>
{'fraction_non_alphanumeric': 0.24940572406579822, 'fraction_numerical': 0.007511647808310355, 'mean_word_length': 3.7874374146563494, 'pattern_counts': {'":': 0, '<': 360, '<?xml version=': 0, '>': 360, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3631299', 'n_tokens_mistral': 4791, 'n_tokens_neox': 4705, 'n_words': 499}