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

{% block title %}Fumblerooski: {{ player.name }} - {{ year }}{% endblock %}

{% block content %}

<h3>{{ player.name }} #{{ player.number }}</h3>
<h4>{{ player.position.name }}/{{ player.get_status_display }}</h4>
<h4><a href="{{ team.get_absolute_url }}">{{ team.name }}</a> - {{ year }}</h4>
<h4>Games Played: {{ player.games_played }} of {{ cy.game_count }} ({{ starts }} starts)</h4>

{% ifequal player.position.position_type 'O' %}

<h3>{{ year }} Offensive Game Stats</h3>

{% if passing %}
<h3>Passing Totals</h3>
<table>
  <th>Attempts</th><th>Completions</th><th>Comp. Pct.</th><th>Yards</th><th>TDs</th><th>Int.</th><th>Efficiency</th>
  <tr><td>{{ pass_tot_attempts }}</td><td>{{ pass_tot_comps }}</td><td>{{ comp_pct|floatformat }}</td><td>{{ pass_tot_yards|intcomma }}</td><td>{{ pass_tot_td }}</td><td>{{ pass_tot_int }}</td><td>{{ pass_tot_eff|floatformat }}</td></tr>
</table>

<h3>Passing By Game</h3>
<table>
  <th>Date</th><th>Opponent</th><th>Outcome</th><th>Passing</th><th>Int.</th><th>TD</th><th>Pass Eff.</th>
{% for game in passing %}
  <tr><td>{{ game.game.date|date:"N d, Y" }}</td><td><a href="{{ game.game.team2.get_absolute_url }}">{{ game.game.team2 }}</a></td><td><a href="{{ game.game.get_absolute_url }}">{{ game.game.get_t1_result_display }}, {{ game.game.team1_score }}-{{ game.game.team2_score }}</a></td><td>{{ game.comp_att }} for {{ game.yards }} yards</td><td>{{ game.interceptions }}</td><td>{{ game.td }}</td><td>{{ game.pass_efficiency }}</td></tr>

{% endfor %}
</table>

{% endif %}

{% if rushing %}
<h3>Rushing Totals</h3>
  <table>
    <th>Rushes</th><th>Gained</th><th>Lost</th><th>Net</th><th>TDs</th><th>Average</th>
    <tr><td>{{ rush_tot_rushes }}</td><td>{{ rush_tot_gains|intcomma }}</td><td>{{ rush_tot_loss }}</td><td>{{ rush_tot_net|intcomma }}</td><td>{{ rush_tot_td }}</td><td>{{ rush_tot_avg|floatformat }}</td></tr>
  </table>

<h3>Rushing By Game</h3>
<table>
  <th>Date</th><th>Opponent</th><th>Outcome</th><th>Rushes</th><th>Gain</th><th>Loss</th><th>Net Yards</th><th>TD</th><th>Long</th><th>Avg.</th>
{% for game in rushing %}
  <tr><td>{{ game.game.date|date:"N d, Y" }}</td><td><a href="{{ game.game.team2.get_absolute_url }}">{{ game.game.team2 }}</a></td><td><a href="{{ game.game.get_absolute_url }}">{{ game.game.get_t1_result_display }}, {{ game.game.team1_score }}-{{ game.game.team2_score }}</a></td><td>{{ game.rushes }}</td><td>{{ game.gain }}</td><td>{{ game.loss }}</td><td>{{ game.net }}</td><td>{{ game.td }}</td><td>{{ game.long_yards }}</td><td>{{ game.average }}</td></tr>

{% endfor %}

</table>

{% endif %}

{% if receiving %}
<h3>Receiving Totals</h3>
  <table>
    <th>Receptions</th><th>Yards</th><th>TDs</th><th>Average</th>
    <tr><td>{{ rec_tot_receptions }}</td><td>{{ rec_tot_yards|intcomma }}</td><td>{{ rec_tot_td }}</td><td>{{ rec_tot_avg|floatformat }}</td></tr>
  </table>

<h3>Receiving By Game</h3>
<table>
  <th>Date</th><th>Opponent</th><th>Outcome</th><th>Receptions</th><th>Yards</th><th>TD</th><th>Long</th><th>Avg.</th>
{% for game in receiving %}
  <tr><td>{{ game.game.date|date:"N d, Y" }}</td><td><a href="{{ game.game.team2.get_absolute_url }}">{{ game.game.team2 }}</a></td><td><a href="{{ game.game.get_absolute_url }}">{{ game.game.get_t1_result_display }}, {{ game.game.team1_score }}-{{ game.game.team2_score }}</a></td><td>{{ game.receptions }}</td><td>{{ game.yards }}</td><td>{{ game.td }}</td><td>{{ game.long_yards }}</td><td>{{ game.average }}</td></tr>

{% endfor %}

</table>

{% endif %}



{% endifequal %}

{% if other_seasons %}
<h4>Other Seasons for this player at this school</h4>
{% for season in other_seasons %}
  <a href="{{ season.get_absolute_url }}">{{ season.year }}</a> {% if forloop.last %}{% else %}|{% endif %}

{% endfor %}

{% endif %}



{% endblock %}<commit_msg>adding basic defensive stats to player detail<commit_after>{% extends "base.html" %}
{% load humanize %}

{% block title %}Fumblerooski: {{ player.name }} - {{ year }}{% endblock %}

{% block content %}

<h3>{{ player.name }} #{{ player.number }}</h3>
<h4>{{ player.position.name }}/{{ player.get_status_display }}</h4>
<h4><a href="{{ team.get_absolute_url }}">{{ team.name }}</a> - {{ year }}</h4>
<h4>Games Played: {{ player.games_played }} of {{ cy.game_count }} ({{ starts }} starts)</h4>

{% ifequal player.position.position_type 'O' %}

<h3>{{ year }} Offensive Game Stats</h3>

{% if passing %}
<h3>Passing Totals</h3>
<table>
  <th>Attempts</th><th>Completions</th><th>Comp. Pct.</th><th>Yards</th><th>TDs</th><th>Int.</th><th>Efficiency</th>
  <tr><td>{{ pass_tot_attempts }}</td><td>{{ pass_tot_comps }}</td><td>{{ comp_pct|floatformat }}</td><td>{{ pass_tot_yards|intcomma }}</td><td>{{ pass_tot_td }}</td><td>{{ pass_tot_int }}</td><td>{{ pass_tot_eff|floatformat }}</td></tr>
</table>

<h3>Passing By Game</h3>
<table>
  <th>Date</th><th>Opponent</th><th>Outcome</th><th>Passing</th><th>Int.</th><th>TD</th><th>Pass Eff.</th>
{% for game in passing %}
  <tr><td>{{ game.game.date|date:"N d, Y" }}</td><td><a href="{{ game.game.team2.get_absolute_url }}">{{ game.game.team2 }}</a></td><td><a href="{{ game.game.get_absolute_url }}">{{ game.game.get_t1_result_display }}, {{ game.game.team1_score }}-{{ game.game.team2_score }}</a></td><td>{{ game.comp_att }} for {{ game.yards }} yards</td><td>{{ game.interceptions }}</td><td>{{ game.td }}</td><td>{{ game.pass_efficiency }}</td></tr>

{% endfor %}
</table>

{% endif %}

{% if rushing %}
<h3>Rushing Totals</h3>
  <table>
    <th>Rushes</th><th>Gained</th><th>Lost</th><th>Net</th><th>TDs</th><th>Average</th>
    <tr><td>{{ rush_tot_rushes }}</td><td>{{ rush_tot_gains|intcomma }}</td><td>{{ rush_tot_loss }}</td><td>{{ rush_tot_net|intcomma }}</td><td>{{ rush_tot_td }}</td><td>{{ rush_tot_avg|floatformat }}</td></tr>
  </table>

<h3>Rushing By Game</h3>
<table>
  <th>Date</th><th>Opponent</th><th>Outcome</th><th>Rushes</th><th>Gain</th><th>Loss</th><th>Net Yards</th><th>TD</th><th>Long</th><th>Avg.</th>
{% for game in rushing %}
  <tr><td>{{ game.game.date|date:"N d, Y" }}</td><td><a href="{{ game.game.team2.get_absolute_url }}">{{ game.game.team2 }}</a></td><td><a href="{{ game.game.get_absolute_url }}">{{ game.game.get_t1_result_display }}, {{ game.game.team1_score }}-{{ game.game.team2_score }}</a></td><td>{{ game.rushes }}</td><td>{{ game.gain }}</td><td>{{ game.loss }}</td><td>{{ game.net }}</td><td>{{ game.td }}</td><td>{{ game.long_yards }}</td><td>{{ game.average }}</td></tr>

{% endfor %}

</table>

{% endif %}

{% if receiving %}
<h3>Receiving Totals</h3>
  <table>
    <th>Receptions</th><th>Yards</th><th>TDs</th><th>Average</th>
    <tr><td>{{ rec_tot_receptions }}</td><td>{{ rec_tot_yards|intcomma }}</td><td>{{ rec_tot_td }}</td><td>{{ rec_tot_avg|floatformat }}</td></tr>
  </table>

<h3>Receiving By Game</h3>
<table>
  <th>Date</th><th>Opponent</th><th>Outcome</th><th>Receptions</th><th>Yards</th><th>TD</th><th>Long</th><th>Avg.</th>
{% for game in receiving %}
  <tr><td>{{ game.game.date|date:"N d, Y" }}</td><td><a href="{{ game.game.team2.get_absolute_url }}">{{ game.game.team2 }}</a></td><td><a href="{{ game.game.get_absolute_url }}">{{ game.game.get_t1_result_display }}, {{ game.game.team1_score }}-{{ game.game.team2_score }}</a></td><td>{{ game.receptions }}</td><td>{{ game.yards }}</td><td>{{ game.td }}</td><td>{{ game.long_yards }}</td><td>{{ game.average }}</td></tr>

{% endfor %}

</table>

{% endif %}

{% else %}

{% if tackles %}
<h3>Tackles By Game</h3>
<table>
  <th>Date</th><th>Opponent</th><th>Outcome</th><th>Unassisted</th><th>Assisted</th><th>Total</th>
{% for game in tackles %}
  <tr><td>{{ game.game.date|date:"N d, Y" }}</td><td><a href="{{ game.game.team2.get_absolute_url }}">{{ game.game.team2 }}</a></td><td><a href="{{ game.game.get_absolute_url }}">{{ game.game.get_t1_result_display }}, {{ game.game.team1_score }}-{{ game.game.team2_score }}</a></td><td>{{ game.unassisted_tackles }}</td><td>{{ game.assisted_tackles }}</td><td>{{ game.total_tackles }}</td></tr>
{% endfor %}
</table>
{% endif %}

{% if tacklesloss %}
<h3>Tackles For Loss By Game</h3>
<table>
  <th>Date</th><th>Opponent</th><th>Outcome</th><th>Unassisted</th><th>Assisted</th><th>Yards</th><th>Sacks</th><th>Sack Yards</th>
{% for game in tacklesloss %}
  <tr><td>{{ game.game.date|date:"N d, Y" }}</td><td><a href="{{ game.game.team2.get_absolute_url }}">{{ game.game.team2 }}</a></td><td><a href="{{ game.game.get_absolute_url }}">{{ game.game.get_t1_result_display }}, {{ game.game.team1_score }}-{{ game.game.team2_score }}</a></td><td>{{ game.unassisted_tackles_for_loss }}</td><td>{{ game.assisted_tackles_for_loss }}</td><td>{{ game.tackles_for_loss_yards }}</td><td>{{ game.total_sacks }}</td><td>{{ game.sack_yards }}</td></tr>
{% endfor %}
</table>
{% endif %}

{% if passdefense %}
<h3>Pass Defense By Game</h3>
<table>
  <th>Date</th><th>Opponent</th><th>Outcome</th><th>Interceptions</th><th>Yards</th><th>TD</th><th>Pass Breakups</th>
{% for game in passdefense %}
  <tr><td>{{ game.game.date|date:"N d, Y" }}</td><td><a href="{{ game.game.team2.get_absolute_url }}">{{ game.game.team2 }}</a></td><td><a href="{{ game.game.get_absolute_url }}">{{ game.game.get_t1_result_display }}, {{ game.game.team1_score }}-{{ game.game.team2_score }}</a></td><td>{{ game.interceptions }}</td><td>{{ game.interception_yards }}</td><td>{{ game.interception_td }}</td><td>{{ game.pass_breakups }}</td></tr>
{% endfor %}
</table>
{% endif %}



{% endifequal %}

{% if other_seasons %}
<h4>Other Seasons for this player at this school</h4>
{% for season in other_seasons %}
  <a href="{{ season.get_absolute_url }}">{{ season.year }}</a> {% if forloop.last %}{% else %}|{% endif %}

{% endfor %}

{% endif %}



{% endblock %}
{'fraction_non_alphanumeric': 0.28619460010188486, 'fraction_numerical': 0.010086602139582273, 'mean_word_length': 5.483487450462351, 'pattern_counts': {'":': 0, '<': 581, '<?xml version=': 0, '>': 581, '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': '3207240', 'n_tokens_mistral': 4245, 'n_tokens_neox': 3923, 'n_words': 615}