<commit_before>{% extends '/Search/display.html.twig' %}

{% block head %}
    <script src="{{ asset('/js/zoom.js') }}"></script>
    <script type="text/javascript">
        NRDB.user.params.card_id = {{ cards[0].id|json_encode|raw }};
    </script>
{% endblock %}

{% block main %}
<div class="row">
    <div class="col-sm-4">
        <div class="card-image">
            {% if card.imageUrl %}
            <img data-src="{{ card_image_url }}{{ asset(card.large_image_path) }}" alt="{{ card.title }}" class="img-responsive lazyload" style="margin:auto">
            {% else %}
            <div class="no-image" style="margin:auto"><div class="no-image-text">No image</div></div>
            {% endif %}
        </div>
    </div>

    <div class="col-sm-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title card-title" style="display: flex; justify-content: space-between">
                    <span class="card-title{% if card.available == false %} card-preview{% endif %}">
                        {% if card.uniqueness == true %}&diams;{% endif %}
                        {{ card.title }}
                    </span>
                    <span class="card-cost">
                        {% if card.type_code == "agenda" %}
                            {{ card.advancementcost }}/{{ card.agendapoints }}<span class="icon icon-agenda-points"></span>
                        {% endif %}
                        {% if card.type_code != "identity" and card.type_code != "agenda" %}
                            {{ card.formatted_cost|raw }}
                        {% endif %}
                    </span>
                </h3>
            </div>

            <div class="panel-body card-panel">
                <div class="card-type">
                    {{ card.formatted_type|raw }}
                </div>

                <div class="card-stats">
                    {% if card.type_code == "identity" %}
                        Deck size: {{ card.minimumdecksize }}
                        &bull;
                        Influence:
                        {% if card.influencelimit ?? 0 == 0 %}&#8734;{% else %}{{ card.influencelimit }}{% endif %}
                        {% if card.side_code == "runner" %}
                            &bull;
                            Link: {{ card.baselink }}
                        {% endif %}
                    {% elseif card.type_code in ["event", "operation"] %}
                        {% if card.trash is not null %}
                            Trash: {{ card.trash }}
                        {% endif %}
                    {% elseif card.type_code in ["asset", "upgrade"] %}
                        Trash: {{ card.trash }}
                    {% elseif card.type_code == "program" %}
                        Memory: {{ card.memoryunits }}
                        &bull;
                        Strength: {{ card.strength ?? "-" }}
                    {% elseif card.type_code == "ice" %}
                        Strength: {{ card.strength }}
                        {% if card.trash is not null %}
                            &bull;
                            Trash: {{ card.trash }}
                        {% endif %}
                    {% endif %}
                </div>

                {% if card.type_code != "identity" and card.faction_cost_dots|length > 0 %}
                    <div class="card-influence">
                        Influence:
                        <span class="icon icon-{{ card.faction_code }} {{ card.faction_code }}"></span>
                        {{ card.faction_cost_dots|raw }}
                    </div>
                {% endif %}

                {% if card.text|length > 0 %}
                    <div class="card-text border-{{ card.faction_code }}">
                        {{ card.text|raw }}
                    </div>
                {% endif %}

                {% if card.flavor %}
                    <div class="card-flavor">
                        {{ card.flavor|raw|nl2br }}
                    </div>
                {% endif %}

                {% if card.illustrator %}
                    <div class="card-illustrator">
                        <small>
                            Illustrated by
                                {% for illustrator in card.illustrators %}
                                    <a href="{{ path('cards_find',{type:'find',_locale:app.request.locale,'view':'images','q':'i:"' ~ illustrator ~ '"'}) }}">{{ illustrator }}</a>
                                {% endfor %}
                            </a>
                        </small>
                    </div>
                {% endif %}
            </div>
        </div>
        <a href="{{ path('decklists_list', {type:'find',_locale:app.request.locale, 'cards[]':card.code}) }}">Decklists with this card</a>
    </div>

    <div class="col-sm-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">
                    <span class="icon icon-{{ card.cycle_code }}"></span> {{ card.pack_name}} ({{ card.pack_code }})
                </h3>
                #{{ card.position }} &bull;
                <a href="{{ path('cards_zoom',{_locale:app.request.locale, 'card_code':card.code}) }}"> English </a>
            </div>

            <div class="panel-body">
                <table>
                    <thead>
                        <tr>
                            <th class="legality-{{ card.startup_legality }}"> Startup Card Pool</th>
                        </tr>
                        <tr>
                            <th
                                {% for mwl_info in card.mwl_info %}
                                  {% if mwl_info.active %}
                                    {% if card.standard_legality == 'available' %}
                                      class="legality-{{ mwl_info.legality }}"
                                    {% else %}
                                      class="legality-{{ card.standard_legality }}"
                                    {% endif %}
                                  {% endif %}
                                {% endfor %}
                            > Standard Card Pool</th>
                        </tr>
                        <tr>
                            <th>
                                <span
                                  {% for mwl_info in card.mwl_info %}
                                    {% if mwl_info.active %}
                                      {% if card.standard_legality != 'available' %}
                                        class="legality-{{ card.standard_legality }}"
                                      {% else %}
                                        class="legality-{{ mwl_info.legality }}"
                                      {% endif %}
                                    {% endif %}
                                  {% endfor %}> Standard Ban List<span>
                                  <a id="mwl-history" href="">(show history)</a>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="card-mwl-inactive" style="display:none">
                            <td class="panel-body">
                                <em><b>Note:</b> a card being legal under a ban list does not mean the card was in rotation while that ban list was active.</em>
                            </td>
                        </tr>
                        {% for mwl_info in card.mwl_info %}
                        <tr class="card-mwl-inactive" style="display:none">
                            <td class="legality-{{ mwl_info.legality }}">
                                {{ mwl_info.mwl_name }}{% if mwl_info.active %} (active) {% endif %}<commit_msg>Card's current standard ban list legality is now unaffected by rotation<commit_after>{% extends '/Search/display.html.twig' %}

{% block head %}
    <script src="{{ asset('/js/zoom.js') }}"></script>
    <script type="text/javascript">
        NRDB.user.params.card_id = {{ cards[0].id|json_encode|raw }};
    </script>
{% endblock %}

{% block main %}
<div class="row">
    <div class="col-sm-4">
        <div class="card-image">
            {% if card.imageUrl %}
            <img data-src="{{ card_image_url }}{{ asset(card.large_image_path) }}" alt="{{ card.title }}" class="img-responsive lazyload" style="margin:auto">
            {% else %}
            <div class="no-image" style="margin:auto"><div class="no-image-text">No image</div></div>
            {% endif %}
        </div>
    </div>

    <div class="col-sm-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title card-title" style="display: flex; justify-content: space-between">
                    <span class="card-title{% if card.available == false %} card-preview{% endif %}">
                        {% if card.uniqueness == true %}&diams;{% endif %}
                        {{ card.title }}
                    </span>
                    <span class="card-cost">
                        {% if card.type_code == "agenda" %}
                            {{ card.advancementcost }}/{{ card.agendapoints }}<span class="icon icon-agenda-points"></span>
                        {% endif %}
                        {% if card.type_code != "identity" and card.type_code != "agenda" %}
                            {{ card.formatted_cost|raw }}
                        {% endif %}
                    </span>
                </h3>
            </div>

            <div class="panel-body card-panel">
                <div class="card-type">
                    {{ card.formatted_type|raw }}
                </div>

                <div class="card-stats">
                    {% if card.type_code == "identity" %}
                        Deck size: {{ card.minimumdecksize }}
                        &bull;
                        Influence:
                        {% if card.influencelimit ?? 0 == 0 %}&#8734;{% else %}{{ card.influencelimit }}{% endif %}
                        {% if card.side_code == "runner" %}
                            &bull;
                            Link: {{ card.baselink }}
                        {% endif %}
                    {% elseif card.type_code in ["event", "operation"] %}
                        {% if card.trash is not null %}
                            Trash: {{ card.trash }}
                        {% endif %}
                    {% elseif card.type_code in ["asset", "upgrade"] %}
                        Trash: {{ card.trash }}
                    {% elseif card.type_code == "program" %}
                        Memory: {{ card.memoryunits }}
                        &bull;
                        Strength: {{ card.strength ?? "-" }}
                    {% elseif card.type_code == "ice" %}
                        Strength: {{ card.strength }}
                        {% if card.trash is not null %}
                            &bull;
                            Trash: {{ card.trash }}
                        {% endif %}
                    {% endif %}
                </div>

                {% if card.type_code != "identity" and card.faction_cost_dots|length > 0 %}
                    <div class="card-influence">
                        Influence:
                        <span class="icon icon-{{ card.faction_code }} {{ card.faction_code }}"></span>
                        {{ card.faction_cost_dots|raw }}
                    </div>
                {% endif %}

                {% if card.text|length > 0 %}
                    <div class="card-text border-{{ card.faction_code }}">
                        {{ card.text|raw }}
                    </div>
                {% endif %}

                {% if card.flavor %}
                    <div class="card-flavor">
                        {{ card.flavor|raw|nl2br }}
                    </div>
                {% endif %}

                {% if card.illustrator %}
                    <div class="card-illustrator">
                        <small>
                            Illustrated by
                                {% for illustrator in card.illustrators %}
                                    <a href="{{ path('cards_find',{type:'find',_locale:app.request.locale,'view':'images','q':'i:"' ~ illustrator ~ '"'}) }}">{{ illustrator }}</a>
                                {% endfor %}
                            </a>
                        </small>
                    </div>
                {% endif %}
            </div>
        </div>
        <a href="{{ path('decklists_list', {type:'find',_locale:app.request.locale, 'cards[]':card.code}) }}">Decklists with this card</a>
    </div>

    <div class="col-sm-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">
                    <span class="icon icon-{{ card.cycle_code }}"></span> {{ card.pack_name}} ({{ card.pack_code }})
                </h3>
                #{{ card.position }} &bull;
                <a href="{{ path('cards_zoom',{_locale:app.request.locale, 'card_code':card.code}) }}"> English </a>
            </div>

            <div class="panel-body">
                <table>
                    <thead>
                        <tr>
                            <th class="legality-{{ card.startup_legality }}"> Startup Card Pool</th>
                        </tr>
                        <tr>
                            <th
                                {% for mwl_info in card.mwl_info %}
                                  {% if mwl_info.active %}
                                    {% if card.standard_legality == 'available' %}
                                      class="legality-{{ mwl_info.legality }}"
                                    {% else %}
                                      class="legality-{{ card.standard_legality }}"
                                    {% endif %}
                                  {% endif %}
                                {% endfor %}
                            > Standard Card Pool</th>
                        </tr>
                        <tr>
                            <th>
                                <span
                                  {% for mwl_info in card.mwl_info %}
                                    {% if mwl_info.active %}
                                      class="legality-{{ mwl_info.legality }}"
                                    {% endif %}
                                  {% endfor %}> Standard Ban List<span>
                                  <a id="mwl-history" href="">(show history)</a>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for mwl_info in card.mwl_info %}
                        <tr class="card-mwl-inactive" style="display:none">
                            <td class="legality-{{ mwl_info.legality }}">
                                {{ mwl_info.mwl_name }}{% if mwl_info.active %} (active) {% endif %}
{'fraction_non_alphanumeric': 0.1398564561796273, 'fraction_numerical': 0.0022387568315006255, 'mean_word_length': 0.9783769701706396, 'pattern_counts': {'":': 0, '<': 179, '<?xml version=': 0, '>': 183, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 45, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4223017', 'n_tokens_mistral': 4128, 'n_tokens_neox': 3620, 'n_words': 723}