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

Copyright 2011 <NAME>
Software under Affero GPL license, see LICENSE.txt

{% endcomment %}
{% block title %}Jogo {{ game_id }}{% endblock %}
{% block header_extra %}
	<link rel="stylesheet" media="screen" type="text/css" href="/static/css/game.css" />{% if player and state == 0 %}
	<meta property="og:type" content="Jogo rápido de tabuleiro" />
	<meta property="og:url" content="{{ base_url }}{% url 'game.views.join_game' game_id %}{% if token %}?token={{ token }}{% endif %}" />
	<meta property="og:image" content="{{ base_url }}/static/images/icon64.png" />
	<meta property="og:description" content="Aceite o desafio e jogue imediatamente!" />
	<meta property="og:site_name" content="Dig Gems" />
	<script type="text/javascript">var switchTo5x=true;</script>
	<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>{% endif %}
{% endblock %}
{% block content %}
<script>
	var params = {
	"game_id": {{ game_id }},
	"state": {{ state }},
	"seq_num": {{ seq_num }},
	"last_change": "{{ last_change }}",
	"channel": "{{ channel }}"{% if fb_other %},
	"fb_other": "{{ fb_other }}"{% endif %}{% if p1_last_move %},
	"p1_last_move": "{{ p1_last_move }}"{% endif %}{% if p2_last_move %},
	"p2_last_move": "{{ p2_last_move }}"{% endif %}{% if mine %},
	"mine": "{{ mine }}"{% endif %}{% if player %},
	"player": {{ player }}{% if tnt_used %},
	"tnt_used": true{% endif %}{% endif %}
	};
</script>
<script src="/static/js/game.js"></script>

<div id="main">
	<div class="box" id="p1_pts_box"><img src="/static/images/ruby.png"/> <span id="p1_pts">0</span></div>
	<div class="box" id="h_pts_box"><span id="h_pts">51</span></div>
	<div class="box" id="p2_pts_box"><span id="p2_pts">0</span> <img src="/static/images/saphire.png"/></div>
	<div id="game_box" class="box">
		<canvas id="game_canvas" style="visibility: hidden" width="416" height="416">
		</canvas>
	</div>
	<div class="box pbox" id="p1_box">
		<a id="p1_link" class="plain{% if p1_info %} undlin{% endif %}" target="_blank"{% if p1_info %} href="//facebook.com/{{ p1_info.uid }}/"{% endif %}>
			<img id="p1_pic" width="40px" height="40px" style="{% if not p1_info %}display: none;{% endif %}"{% if p1_info %} src="//graph.facebook.com/{{ p1_info.uid }}/picture"{% endif %} />
			<div id="p1_name" class="pname">{% if p1_info %}{{ p1_info.name }}{% else %}Visitante{% endif %}</div>
		</a>
		<div class="pinfo" style="text-align: right;">{% if player %}({% if player == 1 %}Você{% else %}Seu oponente{% endif %}){% endif %}</div>
	</div>{% if player %}
	<div class="box" id="tnt_box"><img id="tnt" src="/static/images/{% if tnt_used %}explosion{% else %}crate{% endif %}.png" /></div>
	{% endif %}
	<div class="box pbox" id="p2_box">
		<a id="p2_link" class="plain{% if p2_info %} undlin{% endif %}" target="_blank"{% if p2_info %} href="//facebook.com/{{ p2_info.uid }}/"{% endif %}>
			<img id="p2_pic" width="40px" height="40px" style="{% if not p2_info %}display: none;{% endif %}"{% if p2_info %} src="//graph.facebook.com/{{ p2_info.uid }}/picture"{% endif %} />
			<div id="p2_name" class="pname">{% if state == 0 %}{% if not player and not token %}Vago!{% else %}Aguarde...{% endif %}{% if player or not token %}<form style="float: right;" action="{% if player %}abort{% else %}join{% endif %}/" method="post"><input class="button" type="submit" value="{% if player %}Abortar{% else %}Juntar-se!{% endif %}" /></form>{% endif %}{% elif p2_info %}{{ p2_info.name }}{% else %}Visitante{% endif %}</div>
		</a>
		<div class="pinfo" style="text-align: left;">{% if player %}({% if player == 2 %}Você{% else %}Seu oponente{% endif %}){% endif %}</div>
	</div>
	<div class="box{% if state != 0 %} big{% endif %}" id="message">{% if player and state == 0 %}
		<span>Copie o link para seu oponente:</span>
		<input type="text" style="width: 225px;" id="join_link" value="{{ base_url }}{% url 'game.views.join_game' game_id %}{% if token %}?token={{ token }}{% endif %}" readonly/>
		<div style="position: relative; left: 20px; top: 1px;">
		<span class='st_facebook'></span>
		<span class='st_twitter'></span>
		<span class='st_googleplus'></span>
		</div>{% endif %}
	</div>
</div>

<!-- TODO: Have button to disable the audio. -->
<audio id="ring" preload="auto"><commit_msg>Using another share buttons provider.<commit_after>{% extends "base.html" %}
{% comment %}

Copyright 2011 <NAME>
Software under Affero GPL license, see LICENSE.txt

{% endcomment %}
{% block title %}Jogo {{ game_id }}{% endblock %}
{% block header_extra %}
	<link rel="stylesheet" media="screen" type="text/css" href="/static/css/game.css" />
{% endblock %}
{% block content %}
<script>
	var params = {
	"game_id": {{ game_id }},
	"state": {{ state }},
	"seq_num": {{ seq_num }},
	"last_change": "{{ last_change }}",
	"channel": "{{ channel }}"{% if fb_other %},
	"fb_other": "{{ fb_other }}"{% endif %}{% if p1_last_move %},
	"p1_last_move": "{{ p1_last_move }}"{% endif %}{% if p2_last_move %},
	"p2_last_move": "{{ p2_last_move }}"{% endif %}{% if mine %},
	"mine": "{{ mine }}"{% endif %}{% if player %},
	"player": {{ player }}{% if tnt_used %},
	"tnt_used": true{% endif %}{% endif %}
	};
</script>
<script src="/static/js/game.js"></script>

<div id="main">
	<div class="box" id="p1_pts_box"><img src="/static/images/ruby.png"/> <span id="p1_pts">0</span></div>
	<div class="box" id="h_pts_box"><span id="h_pts">51</span></div>
	<div class="box" id="p2_pts_box"><span id="p2_pts">0</span> <img src="/static/images/saphire.png"/></div>
	<div id="game_box" class="box">
		<canvas id="game_canvas" style="visibility: hidden" width="416" height="416">
		</canvas>
	</div>
	<div class="box pbox" id="p1_box">
		<a id="p1_link" class="plain{% if p1_info %} undlin{% endif %}" target="_blank"{% if p1_info %} href="//facebook.com/{{ p1_info.uid }}/"{% endif %}>
			<img id="p1_pic" width="40px" height="40px" style="{% if not p1_info %}display: none;{% endif %}"{% if p1_info %} src="//graph.facebook.com/{{ p1_info.uid }}/picture"{% endif %} />
			<div id="p1_name" class="pname">{% if p1_info %}{{ p1_info.name }}{% else %}Visitante{% endif %}</div>
		</a>
		<div class="pinfo" style="text-align: right;">{% if player %}({% if player == 1 %}Você{% else %}Seu oponente{% endif %}){% endif %}</div>
	</div>{% if player %}
	<div class="box" id="tnt_box"><img id="tnt" src="/static/images/{% if tnt_used %}explosion{% else %}crate{% endif %}.png" /></div>
	{% endif %}
	<div class="box pbox" id="p2_box">
		<a id="p2_link" class="plain{% if p2_info %} undlin{% endif %}" target="_blank"{% if p2_info %} href="//facebook.com/{{ p2_info.uid }}/"{% endif %}>
			<img id="p2_pic" width="40px" height="40px" style="{% if not p2_info %}display: none;{% endif %}"{% if p2_info %} src="//graph.facebook.com/{{ p2_info.uid }}/picture"{% endif %} />
			<div id="p2_name" class="pname">{% if state == 0 %}{% if not player and not token %}Vago!{% else %}Aguarde...{% endif %}{% if player or not token %}<form style="float: right;" action="{% if player %}abort{% else %}join{% endif %}/" method="post"><input class="button" type="submit" value="{% if player %}Abortar{% else %}Juntar-se!{% endif %}" /></form>{% endif %}{% elif p2_info %}{{ p2_info.name }}{% else %}Visitante{% endif %}</div>
		</a>
		<div class="pinfo" style="text-align: left;">{% if player %}({% if player == 2 %}Você{% else %}Seu oponente{% endif %}){% endif %}</div>
	</div>
	<div class="box{% if state != 0 %} big{% endif %}" id="message">{% if player and state == 0 %}
		<span>Copie o link para seu oponente:</span>
		<input type="text" style="width: 225px;" id="join_link" value="{{ base_url }}{% url 'game.views.join_game' game_id %}{% if token %}?token={{ token }}{% endif %}" readonly/>
		<div style="position: absolute; right: 10px;" class="addthis_toolbox addthis_default_style addthis_16x16_style">
			<a class="addthis_button_facebook"></a>
			<a class="addthis_button_twitter"></a>
			<a class="addthis_button_google_plusone_share"></a>
		</div>
		<script>
			var addthis_config = { data_track_clickback: false };
			var addthis_share = {
				title: "DigGems: Jogo {{ game_id }}",
				url: "{{ base_url }}{% url 'game.views.join_game' game_id %}{% if token %}?token={{ token }}{% endif %}",
				description: "Aceite o desafio e jogue imediatamente!",
			};
		</script> 
		<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-51df479d2a95600e">
		</script>{% endif %}
	</div>
</div>

<!-- TODO: Have button to disable the audio. -->
<audio id="ring" preload="auto">
{'fraction_non_alphanumeric': 0.2438711183749708, 'fraction_numerical': 0.018211533971515294, 'mean_word_length': 5.016151685393258, 'pattern_counts': {'":': 22, '<': 146, '<?xml version=': 0, '>': 146, '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': '2231871', 'n_tokens_mistral': 3595, 'n_tokens_neox': 3185, 'n_words': 777}