<commit_before><%inherit file="/base.mako"/>
<%! from splinext.pokedex import i18n %>\

<%def name="title()">${_("Disambiguation")}</%def>

<%def name="title_in_page()">
<ul id="breadcrumbs">
    <li><a href="${url('/dex')}">${_(u"Pokédex")}</a></li>
    <li>${_("Disambiguation")}</li>
</ul>
</%def>

<h1>${c.input}</h1>
% if c.exact:
<p>${_("Hmmm, there are several things with that name.  Did you mean:")}</p>
% else:
<p>${_("It seems you don't know how to spell.  Did you mean one of these?")}</p>
% endif

<ul class="classic-list">
% for result in c.results:
<%
    object = result.object
%>\
<li>
    ${_(u"The %s") % c.table_labels[object.__class__]}
    <a href="${h.pokedex.make_thingy_url(object, subpage=c.subpage)}">
    % if object.__tablename__ == 'pokemon':
    ${h.pokedex.pokemon_image(object.form, prefix='icons')}
    % elif object.__tablename__ == 'pokemon_forms':
    ${h.pokedex.pokemon_image(object, prefix='icons')}
    % elif object.__tablename__ == 'items':
    ${h.pokedex.pokedex_img("items/%s.png" % h.pokedex.filename_from_name(object.name))}
    % elif object.__tablename__ == 'types':
    ${h.pokedex.type_icon(object)}
    % elif object.__tablename__ == 'moves':
    ${h.pokedex.type_icon(object.type)}
    ${h.pokedex.damage_class_icon(object.damage_class)}
    % endif
\
    % if object.__tablename__ == 'pokemon_forms':
    ${object.pokemon_name}
    % else:
    ${object.name}
    % endif
    </a>
    % if result.language:
    (<img src="${h.static_uri('spline', "flags/{0}.png".format(result.iso3166))}" alt="${result.language}" title="${result.language}"> ${result.name})
    % endif
</li>
% endfor
</ul>

% if c.exact and len(c.results) >= 20:
<p>${_(u'Boy, this is a lot of matches!  Maybe you want to use the full-blown <a href="{pokesearch}">Pokémon search</a> or <a href="{movesearch}">move search</a>, or check the various <a href="{dexurl}">lists of everything and lookup help</a>').format(pokesearch=url(controller='dex_search', action='pokemon_search'), movesearch=url(controller='dex_search', action='move_search'), dexurl=url('/dex')) | n}.</p>
% else:
<p><a href="${url('/dex')}">${_("Need help?")}</a></p>
% endif<commit_msg>Pokemon species split: Lookup<commit_after><%inherit file="/base.mako"/>
<%! from splinext.pokedex import i18n %>\

<%def name="title()">${_("Disambiguation")}</%def>

<%def name="title_in_page()">
<ul id="breadcrumbs">
    <li><a href="${url('/dex')}">${_(u"Pokédex")}</a></li>
    <li>${_("Disambiguation")}</li>
</ul>
</%def>

<h1>${c.input}</h1>
% if c.exact:
<p>${_("Hmmm, there are several things with that name.  Did you mean:")}</p>
% else:
<p>${_("It seems you don't know how to spell.  Did you mean one of these?")}</p>
% endif

<ul class="classic-list">
% for result in c.results:
<%
    object = result.object
%>\
<li>
    ${_(u"The %s") % c.table_labels[object.__class__]}
    <a href="${h.pokedex.make_thingy_url(object, subpage=c.subpage)}">
    % if object.__tablename__ == 'pokemon_species':
    ${h.pokedex.species_image(object, prefix='icons')}
    % elif object.__tablename__ == 'pokemon_forms':
    ${h.pokedex.pokemon_form_image(object, prefix='icons')}
    % elif object.__tablename__ == 'items':
    ${h.pokedex.pokedex_img("items/%s.png" % h.pokedex.filename_from_name(object.name))}
    % elif object.__tablename__ == 'types':
    ${h.pokedex.type_icon(object)}
    % elif object.__tablename__ == 'moves':
    ${h.pokedex.type_icon(object.type)}
    ${h.pokedex.damage_class_icon(object.damage_class)}
    % endif
\
    % if object.__tablename__ == 'pokemon_forms':
    ${object.pokemon_name}
    % else:
    ${object.name}
    % endif
    </a>
    % if result.language != c.game_language.name:
    (<img src="${h.static_uri('spline', "flags/{0}.png".format(result.iso3166))}" alt="${result.language}" title="${result.language}"> ${result.name})
    % endif
</li>
% endfor
</ul>

% if c.exact and len(c.results) >= 20:
<p>${_(u'Boy, this is a lot of matches!  Maybe you want to use the full-blown <a href="{pokesearch}">Pokémon search</a> or <a href="{movesearch}">move search</a>, or check the various <a href="{dexurl}">lists of everything and lookup help</a>').format(pokesearch=url(controller='dex_search', action='pokemon_search'), movesearch=url(controller='dex_search', action='move_search'), dexurl=url('/dex')) | n}.</p>
% else:
<p><a href="${url('/dex')}">${_("Need help?")}</a></p>
% endif
{'fraction_non_alphanumeric': 0.22116257947320617, 'fraction_numerical': 0.004995458673932788, 'mean_word_length': 4.713359273670558, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 85, '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': '1457914', 'n_tokens_mistral': 1724, 'n_tokens_neox': 1661, 'n_words': 311}