<commit_before>{% extends "base.html" %}

{% block title %}{{match.verbose_name}} - {{event.year}} {{event.name}} - The Blue Alliance{% endblock %}

{% block meta_description %}Match results and video for {{match.verbose_name}} at the {{event.year}} {{event.name}} FIRST Robotics Competition in {{event.location}}.{% endblock %}

{% block more_head_tags %}
    <meta property="og:title" content="{{match.verbose_name}} - {{event.year}} {{event.name}}" />
    <meta property="og:type" content="article" />
    <meta property="og:url" content="http://thebluealliance.com/match/{{match.key_name}}" />
    {% if match.tba_video.thumbnail_path %}
        <meta property="og:image" content="{{match.tba_video.thumbnail_path}}" />
    {% else %}
        <meta property="og:image" content="http://www.thebluealliance.com/images/logo_square_200.png" />
    {% endif %}
    <meta property="og:description" content="{{match.verbose_name}} at the {{event.year}} {{event.name}} FIRST Robotics Competition in {{event.location}}."/>
    <meta property="og:site_name" content="The Blue Alliance" />
    {% if match.tba_video.streamable_path %}<meta property="og:video" content="{{ match.tba_video.steamable_path }}" />{% endif %}
{% endblock %}

{% block content %}
<div class="container">
	<div class="row">
		<div class="span6 offset3">
			<h1>{{match.verbose_name}} <small><a href="/event/{{event.key_name}}">{{ event.year }} {{ event.name }}</a></small></h1>
			<table class="matchTable">
	            <tr class="key">
	                <th colspan="{{match.alliances.items.0.1.teams|length}}">Teams</th>
	                <th>Score</th>
	            </tr>
	            {% for items in match.alliances.items reversed %}
	            <tr>
	                {% for team in items.1.teams %}
	                    <td class="{{ items.0 }}{% ifequal match.winning_alliance items.0 %} winner{% endifequal %}"><a href="/team/{{ team|slice:"3:" }}">{{ team|slice:"3:" }}</a></td>
	                {% endfor %}
	                <td class="{{items.0}}Score{% ifequal match.winning_alliance items.0 %} winner{% endifequal %}">{% ifequal items.1.score "-1" %}?{% else %}{{ items.1.score }}{% endifequal %}</td>
	            </tr>
	            {% endfor %}
			</table>
		</div>
	</div>
	<div class="row">
		<div class="span6 offset3">
        {% if match.tba_video %}
            {% include "video_partials/tbavideo_player.html" %}
        {% endif %}
        {% for youtube_video in match.youtube_videos %}
            {% include "video_partials/youtube_video_player.html" %}
        {% endfor %}
        {% if not match.tba_video and not match.youtube_videos %}
            <h3>Video</h3>
            <p>We don't know about any videos for this match yet. :(</p>
        {% endif %}
        <p>
            <a class="btn btn-primary" href="http://www.youtube.com/results?search_query={{match.verbose_name}}+{{event.year}}+{{event.name}}" target="_blank"><i class="icon-search icon-white"></i> Search YouTube</a> 
            <a class="btn" href="/contact"><i class="icon-plus"></i> Tell us about a video</a>
        </p>
		</div>
	</div>

    <div class="row">
        <div class="span6 offset3">
            <hr>
            <div class="fb-comments" data-href="http://www.thebluealliance.com/match/{{match.key_name}}" data-num-posts="3" data-width="470"></div>
        </div>
    </div>
</div>
{% endblock %}<commit_msg>Add back button to match details. Convert to spaces.<commit_after>{% extends "base.html" %}

{% block title %}{{match.verbose_name}} - {{event.year}} {{event.name}} - The Blue Alliance{% endblock %}

{% block meta_description %}Match results and video for {{match.verbose_name}} at the {{event.year}} {{event.name}} FIRST Robotics Competition in {{event.location}}.{% endblock %}

{% block more_head_tags %}
    <meta property="og:title" content="{{match.verbose_name}} - {{event.year}} {{event.name}}" />
    <meta property="og:type" content="article" />
    <meta property="og:url" content="http://thebluealliance.com/match/{{match.key_name}}" />
    {% if match.tba_video.thumbnail_path %}
        <meta property="og:image" content="{{match.tba_video.thumbnail_path}}" />
    {% else %}
        <meta property="og:image" content="http://www.thebluealliance.com/images/logo_square_200.png" />
    {% endif %}
    <meta property="og:description" content="{{match.verbose_name}} at the {{event.year}} {{event.name}} FIRST Robotics Competition in {{event.location}}."/>
    <meta property="og:site_name" content="The Blue Alliance" />
    {% if match.tba_video.streamable_path %}<meta property="og:video" content="{{ match.tba_video.steamable_path }}" />{% endif %}
{% endblock %}

{% block content %}
<div class="container">
    <div class="row">
        <div class="span6 offset3">
            <p><a class="btn" href="/event/{{event.key_name}}"><i class="icon-chevron-left"></i> {{ event.year }} {{ event.name }}</a></p>
            <h1>{{match.verbose_name}} <small><a href="/event/{{event.key_name}}">{{ event.year }} {{ event.name }}</a></small></h1>
            <table class="matchTable">
                <tr class="key">
                    <th colspan="{{match.alliances.items.0.1.teams|length}}">Teams</th>
                    <th>Score</th>
                </tr>
                {% for items in match.alliances.items reversed %}
                <tr>
                    {% for team in items.1.teams %}
                        <td class="{{ items.0 }}{% ifequal match.winning_alliance items.0 %} winner{% endifequal %}"><a href="/team/{{ team|slice:"3:" }}">{{ team|slice:"3:" }}</a></td>
                    {% endfor %}
                    <td class="{{items.0}}Score{% ifequal match.winning_alliance items.0 %} winner{% endifequal %}">{% ifequal items.1.score "-1" %}?{% else %}{{ items.1.score }}{% endifequal %}</td>
                </tr>
                {% endfor %}
            </table>
        </div>
    </div>
    <div class="row">
        <div class="span6 offset3">
        {% if match.tba_video %}
            {% include "video_partials/tbavideo_player.html" %}
        {% endif %}
        {% for youtube_video in match.youtube_videos %}
            {% include "video_partials/youtube_video_player.html" %}
        {% endfor %}
        {% if not match.tba_video and not match.youtube_videos %}
            <h3>Video</h3>
            <p>We don't know about any videos for this match yet. :(</p>
        {% endif %}
        <p>
            <a class="btn btn-primary" href="http://www.youtube.com/results?search_query={{match.verbose_name}}+{{event.year}}+{{event.name}}" target="_blank"><i class="icon-search icon-white"></i> Search YouTube</a> 
            <a class="btn" href="/contact"><i class="icon-plus"></i> Tell us about a video</a>
        </p>
        </div>
    </div>

    <div class="row">
        <div class="span6 offset3">
            <hr>
            <div class="fb-comments" data-href="http://www.thebluealliance.com/match/{{match.key_name}}" data-num-posts="3" data-width="470"></div>
        </div>
    </div>
</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.19892396998442588, 'fraction_numerical': 0.008211808013591958, 'mean_word_length': 2.769477054429029, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '6618841', 'n_tokens_mistral': 2402, 'n_tokens_neox': 2182, 'n_words': 449}