<commit_before><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="/WEB-INF/jsp/header.jsp" %>
<a href="${linkTo[PlaylistController].listAll()}">Home</a>
<h2>${playlist.name}</h2>
<img src="<c:url value='/assets/playlist-art/${playlist.cover}'/>" alt="Playlist cover" />
<ol>
	<c:forEach var="song" items="${playlist.songs}" varStatus="status">
		<li>
			<a href="${linkTo[PlaylistController].play(playlist, status.count)}">
				${song.artist.name} - ${song.name}
			</a>
		</li>
	</c:forEach>
</ol>
<section>
	<nav>
		<a href="${playlist.hasPrevious(index) ? linkTo[PlaylistController].play(playlist, index - 1) : 'javascript:void(0)'}">Previous</a>
		<a href="${playlist.hasNext(index) ? linkTo[PlaylistController].play(playlist, index + 1) : 'javascript:void(0)'}">Next</a>
	</nav>
	<dl>
		<dt>${song.artist.name} - ${song.name}</dt>
		<dd>
			<audio autoplay controls>
				Sorry, your browser does not support audio playback
				<source src="<c:url value='/assets/songs/${song.file}.mp3'/>" type="audio/mpeg">
				<source src="<c:url value='/assets/songs/${song.file}.ogg'/>" type="audio/ogg">
			</audio>
		</dd>
	</dl>
</section>
<%@ include file="/WEB-INF/jsp/footer.jsp" %><commit_msg>Only showing prev/next when they make sense<commit_after><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="/WEB-INF/jsp/header.jsp" %>
<a href="${linkTo[PlaylistController].listAll()}">Home</a>
<h2>${playlist.name}</h2>
<img src="<c:url value='/assets/playlist-art/${playlist.cover}'/>" alt="Playlist cover" />
<ol>
	<c:forEach var="song" items="${playlist.songs}" varStatus="status">
		<li>
			<a href="${linkTo[PlaylistController].play(playlist, status.count)}">
				${song.artist.name} - ${song.name}
			</a>
		</li>
	</c:forEach>
</ol>
<section>
	<nav>
		<c:if test="${playlist.hasPrevious(index)}">
			<a href="${linkTo[PlaylistController].play(playlist, index - 1)}">Previous</a>
		</c:if>
		<c:if test="${playlist.hasNext(index)}">
			<a href="${linkTo[PlaylistController].play(playlist, index + 1)}">Next</a>
		</c:if>
	</nav>
	<dl>
		<dt>${song.artist.name} - ${song.name}</dt>
		<dd>
			<audio autoplay controls>
				Sorry, your browser does not support audio playback
				<source src="<c:url value='/assets/songs/${song.file}.mp3'/>" type="audio/mpeg">
				<source src="<c:url value='/assets/songs/${song.file}.ogg'/>" type="audio/ogg">
			</audio>
		</dd>
	</dl>
</section>
<%@ include file="/WEB-INF/jsp/footer.jsp" %>
{'fraction_non_alphanumeric': 0.24638263665594856, 'fraction_numerical': 0.00482315112540193, 'mean_word_length': 4.842723004694836, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7549319', 'n_tokens_mistral': 1054, 'n_tokens_neox': 968, 'n_words': 154}