<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/template.xhtml">

	<ui:define name="content">
	
		<ui:include src="/fragment-filesDialog.xhtml" />

		<style>
			.magazineThumb {
				border: none;
			}
			
			.magazineCover {
				min-height: 240px;
				max-height: 240px;
			}
			
			.magazineCaption {
				font-size: 12px;
				font-weight: bold;
				white-space: nowrap;
				overflow: hidden;
			}

			.buttons {
				position: absolute; right: 32px; top: 10px; width: 20px;
			}
		</style>

		<h:form styleClass="form-inline">
			<ui:include src="magazines-criteria.xhtml" />
			
			<ui:include src="/components/pager.xhtml" />

			<ui:repeat var="issue" value="#{pager.items}">
				<div id="#{issue.id}" class="magazine col-lg-2 col-md-2 col-sm-3 col-xs-6">
					<div class="thumbnail magazineThumb">
						<ui:fragment rendered="#{issue.status == 'SUGGESTED'}">
							<a href="#" onclick="want('#{issue.id}');" title="Want Suggestion">
								<img class="magazineCover" data-src="#{issue.urlEncodedCoverImage}" alt="#{issue.rawName}" title="#{issue.rawName}" />
							</a>
						</ui:fragment>
						<ui:fragment rendered="#{issue.status == 'DOWNLOADED'}">					
							<a href="/download?id=#{issue.id}" target="_blank">
								<img class="magazineCover" data-src="#{issue.urlEncodedCoverImage}" alt="#{issue.rawName}" title="#{issue.rawName}" />
							</a>
						</ui:fragment>
						<div class="caption magazineCaption">#{issue.rawName}</div>
					</div>
					<div class="buttons">
						<h:commandLink styleClass="btn btn-sm btn-danger" onclick="return (confirm('Are you sure you want to delete #{movies.fixName(issue.rawName)} ?'));" rendered="#{issue.status != 'SUGGESTED'}">
							<f:ajax execute="@this" render="@none" listener="#{kiosk.delete}" onevent="removeIssueFromKiosk"/>
							<f:param name="id" value="#{issue.id}" />
							<i class="fa fa-trash-o"></i>
						</h:commandLink>
						<h:commandLink styleClass="btn btn-sm btn-default" onclick="return (confirm('Are you sure you want to redownload #{movies.fixName(issue.rawName)} ?'));" rendered="#{issue.status == 'SNATCHED' or issue.status == 'DOWNLOADED'}">
							<f:ajax execute="@this" render="@none" listener="#{kiosk.redownload(issue.id)}" /><commit_msg>Fix magazines display<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/template.xhtml">

	<ui:define name="content">
	
		<ui:include src="/fragment-filesDialog.xhtml" />

		<style>
			.magazineThumb {
				border: none;
			}
			
			.magazineCover {
				min-height: 240px;
				max-height: 240px;
			}
			
			.magazineCaption {
				font-size: 12px;
				font-weight: bold;
				white-space: nowrap;
				overflow: hidden;
			}

			.buttons {
				position: absolute; right: 32px; top: 10px; width: 20px;
			}
		</style>

		<h:form styleClass="form-inline">
			<ui:include src="magazines-criteria.xhtml" />
			
			<ui:include src="/components/pager.xhtml" />

			<ui:repeat var="issue" value="#{pager.items}">
				<div id="#{issue.id}" class="magazine col-lg-2 col-md-2 col-sm-3 col-xs-6">
					<div class="thumbnail magazineThumb">
						<ui:fragment rendered="#{issue.status == 'DOWNLOADED'}">					
							<a href="/download?id=#{issue.id}" target="_blank">
								<img class="magazineCover" data-src="#{issue.urlEncodedCoverImage}" alt="#{issue.rawName}" title="#{issue.rawName}" />
							</a>
						</ui:fragment>
						<ui:fragment rendered="#{issue.status != 'DOWNLOADED'}">					
							<img class="magazineCover" data-src="#{issue.urlEncodedCoverImage}" alt="#{issue.rawName}" title="#{issue.rawName}" />
						</ui:fragment>
						<div class="caption magazineCaption">#{issue.rawName}</div>
					</div>
					<div class="buttons">
						<ui:fragment rendered="#{issue.status == 'SUGGESTED'}">
							<a href="#" class="btn btn-sm btn-default" onclick="want('#{issue.id}');" title="Want Suggestion">
								<i class="fa fa-heart"></i>
							</a>
						</ui:fragment>
						<h:commandLink styleClass="btn btn-sm btn-danger" onclick="return (confirm('Are you sure you want to delete #{movies.fixName(issue.rawName)} ?'));" rendered="#{issue.status != 'SUGGESTED'}">
							<f:ajax execute="@this" render="@none" listener="#{kiosk.delete}" onevent="removeIssueFromKiosk"/>
							<f:param name="id" value="#{issue.id}" />
							<i class="fa fa-trash-o"></i>
						</h:commandLink>
						<h:commandLink styleClass="btn btn-sm btn-default" onclick="return (confirm('Are you sure you want to redownload #{movies.fixName(issue.rawName)} ?'));" rendered="#{issue.status == 'SNATCHED' or issue.status == 'DOWNLOADED'}">
							<f:ajax execute="@this" render="@none" listener="#{kiosk.redownload(issue.id)}" />
{'fraction_non_alphanumeric': 0.20210930009587727, 'fraction_numerical': 0.01112176414189837, 'mean_word_length': 3.6906474820143886, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2757570', 'n_tokens_mistral': 2300, 'n_tokens_neox': 1801, 'n_words': 310}