<commit_before><% pages = total % number > 0 ? ((total - (total % number)) / number) + 1 : total / number %>
<% current_page = (offset / number) + 1 %>
<% prev_page = current_page - 1 %>
<% next_page = current_page + 1 %>
<% min_page = (current_page - 3) < 1 ? 1 : current_page - 3 %>
<% max_page = (current_page + 3) > pages ? pages : current_page + 3 %>
<% numbarr = [10,20,50] unless numbarr && numbarr.size > 0 %>
<div class="col-xs-12 pagination">
	<div class="col-sm-3 left-aligned">
		<%= t(:'navigation.keys.show').capitalize %>
		<select class="pagination-size-select" data-url="<%= url %>">
			<% numbarr.each do |nn| %>
				<% if number.to_i == nn %>
					<option value="<%= nn %>" selected><%= nn %></option>
				<% else %>
					<option value="<%= nn %>"><%= nn %></option>
				<% end %>
			<% end %>
		</select>
		 per <%= t(:'navigation.keys.page') %>
	</div>
	<div class="col-sm-6 center-aligned">
		<div class="btn-group" role="group" data-total="<%= total %>" data-pages="<%= pages %>" data-min-page="<%= min_page %>" data-max-page="<%= max_page %>" data-current-page="<%= current_page %>">
			<% if current_page == 1 %>
				<button type="button" class="btn btn-default" disabled>&lt;&lt;</button>
				<button type="button" class="btn btn-default" disabled>&lt;</button>
			<% else %>
				<a type="button" href="<%= url %>&offset=0&number=<%= number %>#results" class="btn btn-default">&lt;&lt;</a>
				<a type="button" href="<%= url %>&offset=<%= (prev_page - 1)*number %>&number=<%= number %>#results" class="btn btn-default">&lt;</a>
			<% end %>
			<% if min_page > 1 %>
				<button type="button" class="btn btn-default" disabled>&hellip;</button>
			<% end %>
			<% if min_page < current_page %>
				<% (min_page..prev_page).each do |p| %>
					<a type="button" href="<%= url %>&offset=<%= (p - 1)*number %>&number=<%= number %>#results" class="btn btn-default"><%= p %></a>
				<% end %>
			<% end %>
			<button type="button" class="btn btn-primary" disabled><%= current_page %></button>
			<% if max_page > current_page %>
				<% (next_page..max_page).each do |p| %>
					<a type="button" href="<%= url %>&offset=<%= (p - 1)*number %>&number=<%= number %>#results" class="btn btn-default"><%= p %></a>
				<% end %>
			<% end %>
			<% if max_page < pages %>
				<button type="button" class="btn btn-default" disabled>&hellip;</button>
			<% end %>
			<% if current_page == pages %>
				<button type="button" class="btn btn-default" disabled>&gt;</button>
				<button type="button" class="btn btn-default" disabled>&gt;&gt;</button>
			<% else %>
				<a type="button" href="<%= url %>&offset=<%= (next_page - 1)*number %>&number=<%= number %>#results" class="btn btn-default">&gt;</a>
				<a type="button" href="<%= url %>&offset=<%= (pages - 1)*number %>&number=<%= number %>#results" class="btn btn-default">&gt;&gt;</a>
			<% end %>
		</div>
	</div>
	<div class="col-sm-3 right-aligned">
		<%= t(:'navigation.keys.go_to').capitalize %> <%= t(:'navigation.keys.page') %>
		<% if pages > 50 %>
			<%= number_field_tag("go_to", value = current_page, { :min => 1, :max => pages, :data => { :number => number, :url => url } }) %> <%= t(:'navigation.keys.of') %> <%= number_with_delimiter(pages, :delimiter => t(:'other.keys.numeric_delimiter')) %>
		<% else %>
			<%= select_tag("go_to", options_for_select((1..pages),[current_page]), :class => "pagination-go-to", :data => { :number => number, :url => url }) %>
		<% end %>
	</div>
</div>
<%= render partial: "/layouts/export" %>
<commit_msg>Add class to number field<commit_after><% pages = total % number > 0 ? ((total - (total % number)) / number) + 1 : total / number %>
<% current_page = (offset / number) + 1 %>
<% prev_page = current_page - 1 %>
<% next_page = current_page + 1 %>
<% min_page = (current_page - 3) < 1 ? 1 : current_page - 3 %>
<% max_page = (current_page + 3) > pages ? pages : current_page + 3 %>
<% numbarr = [10,20,50] unless numbarr && numbarr.size > 0 %>
<div class="col-xs-12 pagination">
	<div class="col-sm-3 left-aligned">
		<%= t(:'navigation.keys.show').capitalize %>
		<select class="pagination-size-select" data-url="<%= url %>">
			<% numbarr.each do |nn| %>
				<% if number.to_i == nn %>
					<option value="<%= nn %>" selected><%= nn %></option>
				<% else %>
					<option value="<%= nn %>"><%= nn %></option>
				<% end %>
			<% end %>
		</select>
		 per <%= t(:'navigation.keys.page') %>
	</div>
	<div class="col-sm-6 center-aligned">
		<div class="btn-group" role="group" data-total="<%= total %>" data-pages="<%= pages %>" data-min-page="<%= min_page %>" data-max-page="<%= max_page %>" data-current-page="<%= current_page %>">
			<% if current_page == 1 %>
				<button type="button" class="btn btn-default" disabled>&lt;&lt;</button>
				<button type="button" class="btn btn-default" disabled>&lt;</button>
			<% else %>
				<a type="button" href="<%= url %>&offset=0&number=<%= number %>#results" class="btn btn-default">&lt;&lt;</a>
				<a type="button" href="<%= url %>&offset=<%= (prev_page - 1)*number %>&number=<%= number %>#results" class="btn btn-default">&lt;</a>
			<% end %>
			<% if min_page > 1 %>
				<button type="button" class="btn btn-default" disabled>&hellip;</button>
			<% end %>
			<% if min_page < current_page %>
				<% (min_page..prev_page).each do |p| %>
					<a type="button" href="<%= url %>&offset=<%= (p - 1)*number %>&number=<%= number %>#results" class="btn btn-default"><%= p %></a>
				<% end %>
			<% end %>
			<button type="button" class="btn btn-primary" disabled><%= current_page %></button>
			<% if max_page > current_page %>
				<% (next_page..max_page).each do |p| %>
					<a type="button" href="<%= url %>&offset=<%= (p - 1)*number %>&number=<%= number %>#results" class="btn btn-default"><%= p %></a>
				<% end %>
			<% end %>
			<% if max_page < pages %>
				<button type="button" class="btn btn-default" disabled>&hellip;</button>
			<% end %>
			<% if current_page == pages %>
				<button type="button" class="btn btn-default" disabled>&gt;</button>
				<button type="button" class="btn btn-default" disabled>&gt;&gt;</button>
			<% else %>
				<a type="button" href="<%= url %>&offset=<%= (next_page - 1)*number %>&number=<%= number %>#results" class="btn btn-default">&gt;</a>
				<a type="button" href="<%= url %>&offset=<%= (pages - 1)*number %>&number=<%= number %>#results" class="btn btn-default">&gt;&gt;</a>
			<% end %>
		</div>
	</div>
	<div class="col-sm-3 right-aligned">
		<%= t(:'navigation.keys.go_to').capitalize %> <%= t(:'navigation.keys.page') %>
		<% if pages > 50 %>
			<%= number_field_tag("go_to", value = current_page, { :min => 1, :max => pages, :class => "pagination-go-to", :data => { :number => number, :url => url } }) %> <%= t(:'navigation.keys.of') %> <%= number_with_delimiter(pages, :delimiter => t(:'other.keys.numeric_delimiter')) %>
		<% else %>
			<%= select_tag("go_to", options_for_select((1..pages),[current_page]), :class => "pagination-go-to", :data => { :number => number, :url => url }) %>
		<% end %>
	</div>
</div>
<%= render partial: "/layouts/export" %>

{'fraction_non_alphanumeric': 0.2523338048090523, 'fraction_numerical': 0.009900990099009901, 'mean_word_length': 4.000707213578501, 'pattern_counts': {'":': 0, '<': 237, '<?xml version=': 0, '>': 264, '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': '1077312', 'n_tokens_mistral': 3004, 'n_tokens_neox': 2463, 'n_words': 564}