<commit_before><%= javascript_tag do %>
	var pusher = new Pusher('c15372e0b28fbbc25e71');
	var channel = pusher.subscribe('ebook-uploader');

	pusher.log = function(message) {
	  if (window.console && window.console.log) {
	    window.console.log(message);
	  }
	};

	$('.progress').hide()

	channel.bind('ebook-percent', function(data) {
		if (data.message != "done") {
			$('.progress').show()
			$('.progress-bar').css("width", data.message + "%");
		} else {
			location.reload();
		}
	});
<% end %>
<div id="paginate" class="row" align="middle" data-toggle="tooltip" data-placement="top" title="Browse through different pages!">
	<%= will_paginate @pages, renderer: BootstrapPagination::Rails %>
</div>
<div class="row">
	<div class="col-md-6" align="middle"><commit_msg>hides progress bar when necessary<commit_after><%= javascript_tag do %>
	var pusher = new Pusher('c15372e0b28fbbc25e71');
	var channel = pusher.subscribe('ebook-uploader');

	pusher.log = function(message) {
	  if (window.console && window.console.log) {
	    window.console.log(message);
	  }
	};

	$(document).ready(function(){
		$('.progress').hide();
	});

	channel.bind('ebook-percent', function(data) {
		if (data.message != "done") {
			$('.progress').show()
			$('.progress-bar').css("width", data.message + "%");
		} else {
			location.reload();
		}
	});
<% end %>
<div id="paginate" class="row" align="middle" data-toggle="tooltip" data-placement="top" title="Browse through different pages!">
	<%= will_paginate @pages, renderer: BootstrapPagination::Rails %>
</div>
<div class="row">
	<div class="col-md-6" align="middle">
{'fraction_non_alphanumeric': 0.20869565217391303, 'fraction_numerical': 0.016149068322981366, 'mean_word_length': 4.858181818181818, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4415001', 'n_tokens_mistral': 606, 'n_tokens_neox': 550, 'n_words': 100}