<commit_before><div id="nzbdrone" class="module" data-module="nzbdrone">

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

  <h2><a id="nzbdrone_url" href="#">NZBDrone</a></h2>
    
  {% block nzbdrone_menu %}
<ul class="menu">
  <li class="history" title="View History"><span>History</span></li>
  <li class="all" title="View all"><span>All</span></li>
  <li class="upcoming active" title="View upcoming"><span>Upcoming</span></li>
</ul>
{% endblock %}
    
  <div class="inner">

  </div>
<div id="series" class="noscroll">
    <div id="shows" class="Series">
		{% if images %}
            {% for item in imagelist %}
					<h2><a href="http://thetvdb.com/?tab=series&id={{images[item][2]}}" target="_blank" title="{{ item }} on TVDB">{{item}}</a><img class="search" src="{{ url_for('static', filename='images/search.png') }}" id="{{images[item][0]}}" title="Search for all episodes in series"/></h2>
					<a class="image_links" href=# id={{images[item][1]}} ><img  class="banners" src="#" id={{images[item][0]}} title="{{item}}" /></a>
					<script>
            
						var port = "{{port}}";
						var banners = document.getElementsByClassName("banners");
						if ("{{ external_server }}" === "0") {
						    var host = window.location.hostname;
						}else if ("{{lan}}" === 1) {
						    var host = "{{ url }}";
						} else {
						    var host = window.location.hostname;
						}
						var images = document.getElementsByClassName("image_links");
						for (var i = images.length -1; i >= 0; i--)
							{
						
							var url = images[i].id;
							images[i].href = 'http://' + host + ':' + port + '/series/' + url;
						}
						for (var i = banners.length -1; i >= 0; i--)
						{
							var id = banners[i].id;
							banners[i].src = "{{ http }}" + host + ':' + port + '/MediaCover/' + id + '/banner.jpg';
						}
					</script>
			{% endfor %}
		{% endif %}
    </div>
</div>
    <div class="nzbsearch">
        <span class="operation_only">
            <input class="query" type="search" placeholder="Search TV Shows"></input>
            <span class="loading"></span>
        </span>
    </div>
</div><commit_msg>changes for using external Sonarr on another system<commit_after><div id="nzbdrone" class="module" data-module="nzbdrone">

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

  <h2><a id="nzbdrone_url" href="#">NZBDrone</a></h2>
    
  {% block nzbdrone_menu %}
<ul class="menu">
  <li class="history" title="View History"><span>History</span></li>
  <li class="all" title="View all"><span>All</span></li>
  <li class="upcoming active" title="View upcoming"><span>Upcoming</span></li>
</ul>
{% endblock %}
    
  <div class="inner">

  </div>
<div id="series" class="noscroll">
    <div id="shows" class="Series">
		{% if images %}
            {% for item in imagelist %}
					<h2><a href="http://thetvdb.com/?tab=series&id={{images[item][2]}}" target="_blank" title="{{ item }} on TVDB">{{item}}</a><img class="search" src="{{ url_for('static', filename='images/search.png') }}" id="{{images[item][0]}}" title="Search for all episodes in series"/></h2>
					<a class="image_links" href=# id={{images[item][1]}} ><img  class="banners" src="#" id={{images[item][0]}} title="{{item}}" /></a>
                    <script>
            
						var port = "{{port}}";
						var banners = document.getElementsByClassName("banners");
						if ("{{ external_server }}" === "0") {
						    var host = window.location.hostname;
						}else if ("{{lan}}" === 1) {
						    var host = "{{ url }}";
						} else {
						    var host = "{{ url }}";
						}
						var images = document.getElementsByClassName("image_links");
						for (var i = images.length -1; i >= 0; i--)
							{
						
							var url = images[i].id;
							images[i].href = 'http://' + host + ':' + port + '/series/' + url;
						}
						for (var i = banners.length -1; i >= 0; i--)
						{
							var id = banners[i].id;
							banners[i].src = "{{ http }}" + host + ':' + port + '/MediaCover/' + id + '/banner.jpg';
						}
					</script>
			{% endfor %}
		{% endif %}
    </div>
</div>
    <div class="nzbsearch">
        <span class="operation_only">
            <input class="query" type="search" placeholder="Search TV Shows"></input>
            <span class="loading"></span>
        </span>
    </div>
</div>
{'fraction_non_alphanumeric': 0.22372575552548488, 'fraction_numerical': 0.006314839873703203, 'mean_word_length': 2.907488986784141, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 111, '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': '7452034', 'n_tokens_mistral': 1790, 'n_tokens_neox': 1483, 'n_words': 316}