<commit_before>{% if sabnzbd.jobs %}

<div id="sabnzbd" class="module" data-module="sabnzbd">

  <div class="module_settings"><span>Settings</span></div>
  <div class="module_remove"><span>Remove</span></div>

  <h2>SABnzbd+</h2>
	<div class="status">
		{% if sabnzbd.paused == True %}
		<a onclick="ajax_call('/sabnzbd/resume');">Paused</a>
		{% else %}
		<a onclick="ajax_call('/sabnzbd/pause');">Downloading</a>
		{% endif %}
	</div>
  <div class="inner">

    <div class="speed">{{ download_speed }}</div>

    <p>
      <strong>Currently downloading:</strong>
      "{{ sabnzbd.jobs[0].filename }}"
    </p>

    <div class="bar">
      <div class="inner" style="width: {{ percentage_total }}%;"></div>
    </div>

    <div class="clearfix">
      <p class="remaining"><strong>Remaining:</strong> {{ sabnzbd.timeleft }} / {{ sabnzbd.mbleft|int }} MB</p>
      <p class="percentage_complete">{{ percentage_total }}% complete</p>
    </div>

  </div>
</div>

{% else %}
<div class="placeholder" data-module="sabnzbd">
  <div class="module_settings"><span>Settings</span></div>
  <div class="module_remove"><span>Remove</span></div>
  <h2>SABnzbd+</h2>
</div>
{% endif %}
<commit_msg>Added speed textbox to template<commit_after>{% if sabnzbd.jobs %}

<div id="sabnzbd" class="module" data-module="sabnzbd">

  <div class="module_settings"><span>Settings</span></div>
  <div class="module_remove"><span>Remove</span></div>

  <h2>SABnzbd+</h2>
  <div class="inner">
    <div class="status">
		  {% if sabnzbd.paused == True %}
		  <a onclick="ajax_call('/sabnzbd/resume');">Paused</a>
		  {% else %}
		  <a onclick="ajax_call('/sabnzbd/pause');">Downloading</a>
	    {% endif %}
    </div>

    <div class="speed">
      <input id="sab_speed" type="text" value="{{ download_speed[:-5] }}" size="6" onkeydown="if(event.keyCode == 13){ajax_call('/sabnzbd/set_speed/'+$(this).val());}"/>{{ download_speed[-5:] }}
    </div>
    <p>
      <strong>Currently downloading:</strong>
      "{{ sabnzbd.jobs[0].filename }}"
    </p>

    <div class="bar">
      <div class="inner" style="width: {{ percentage_total }}%;"></div>
    </div>

    <div class="clearfix">
      <p class="remaining"><strong>Remaining:</strong> {{ sabnzbd.timeleft }} / {{ sabnzbd.mbleft|int }} MB</p>
      <p class="percentage_complete">{{ percentage_total }}% complete</p>
    </div>

  </div>
</div>

{% else %}
<div class="placeholder" data-module="sabnzbd">
  <div class="module_settings"><span>Settings</span></div>
  <div class="module_remove"><span>Remove</span></div>
  <h2>SABnzbd+</h2>
  <pre>sabnzbd</pre>
</div>
{% endif %}

{'fraction_non_alphanumeric': 0.2320675105485232, 'fraction_numerical': 0.005753739930955121, 'mean_word_length': 4.236947791164659, 'pattern_counts': {'":': 0, '<': 106, '<?xml version=': 0, '>': 106, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4589312', 'n_tokens_mistral': 1043, 'n_tokens_neox': 950, 'n_words': 149}