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

{% block content %}

<link href="/static/index.css" rel="stylesheet" type="text/css"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<link href="http://cdn.bootcss.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
<script language="javascript" type="text/javascript">
  var timer = null;
  function playSound(mp3) {
     //$('#dummy').html("<audio preload='auto' autoplay src='"+mp3+"' type='audio/mpeg'></audio>");
     $('#dummy').html("<embed autostart='true' style='float:left' height=0 width=0 src='"+mp3+"'></embed>");
  }
  function callback(mp3) {
      playSound(mp3);
  }
  function delayPlay(mp3) {
      clearTimeout(timer);
      var cb = "callback('"+mp3+"')";
      timer = setTimeout(cb, 500);
  }
</script>

<div class="pagination" style="font-size:150%">
  <span class="step-links">
    {% if words.has_previous %}
        <a href="?page={{ words.previous_page_number }}">上一个</a>
    {% endif %}

    <span class="current">
        第{{ words.number }}页 共{{ words.paginator.num_pages }}页.
    </span>

    {% if words.has_next %}
        <a href="?page={{ words.next_page_number }}">下一个</a>
    {% endif %}
  </span>
</div>

{% block subcontent %}{% endblock %}

<span id="dummy"></span>
{% endblock %}<commit_msg>Make page navigator more showy<commit_after>{% extends 'base.html' %}

{% block content %}

<link href="/static/index.css" rel="stylesheet" type="text/css"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<link href="http://cdn.bootcss.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
<script language="javascript" type="text/javascript">
  var timer = null;
  function playSound(mp3) {
     //$('#dummy').html("<audio preload='auto' autoplay src='"+mp3+"' type='audio/mpeg'></audio>");
     $('#dummy').html("<embed autostart='true' style='float:left' height=0 width=0 src='"+mp3+"'></embed>");
  }
  function callback(mp3) {
      playSound(mp3);
  }
  function delayPlay(mp3) {
      clearTimeout(timer);
      var cb = "callback('"+mp3+"')";
      timer = setTimeout(cb, 500);
  }
</script>

<div class="pagination" style="font-size:150%;float:right;margin-right:20px">
  <span class="step-links">
    {% if words.has_previous %}
        <a href="?page={{ words.previous_page_number }}">上一个</a>
    {% endif %}

    <span class="current">
        第{{ words.number }}页 共{{ words.paginator.num_pages }}页.
    </span>

    {% if words.has_next %}
        <a href="?page={{ words.next_page_number }}">下一个</a>
    {% endif %}
  </span>
</div>

{% block subcontent %}{% endblock %}

<div class="pagination" style="font-size:150%;float:left,bottom;">
  <span class="step-links">
    {% if words.has_previous %}
        <a href="?page={{ words.previous_page_number }}">上一个</a>
    {% endif %}

    <span class="current">
        第{{ words.number }}页 共{{ words.paginator.num_pages }}页.
    </span>

    {% if words.has_next %}
        <a href="?page={{ words.next_page_number }}">下一个</a>
    {% endif %}
  </span>
</div>
<span id="dummy"></span>
{% endblock %}
{'fraction_non_alphanumeric': 0.22307202039515614, 'fraction_numerical': 0.01561504142766093, 'mean_word_length': 3.7777777777777777, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2654419', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1120, 'n_words': 198}