<commit_before><%@page import="org.webjars.WebJarAssetLocator"
%><%@page contentType="text/html" pageEncoding="UTF-8"
%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="t" uri="http://net.aequologica.neo/jsp/jstl/layout"
%><%!

WebJarAssetLocator  LOCATOR                      = new WebJarAssetLocator();
int                 META_INF_RESOUCE_PATH_LENGTH = "META-INF/resources/".length();

%><%

request.setAttribute("plotly_min_js", LOCATOR.getFullPath("plotly.min.js").substring(META_INF_RESOUCE_PATH_LENGTH) );

%><t:layout module="image-server">

<h1 id="title"></h1>

<a id="image"     class="btn btn-secondary btn-sm" href="#" role="button"><span id="width"></span>&nbsp;x&nbsp;<span id="height"></span></a>

<a id="wikipedia" class="btn btn-secondary btn-sm" href="#" role="button">wikipedia article</a>

<hr/>

<h2><span id="clickcount"></span> clicks</h2>

<div id="tester" style="width:100%;height:auto;"></div>

</t:layout>

<script type="text/javascript" charset="utf8" src="<c:url value='/${plotly_min_js}' />" ></script>

<script type="text/javascript">

$(document).ready(function() {
  
  $('#clickcount').text("${model.size()}");

  $.getJSON( "<c:url value='/earthly-delights-garden-api/image/v1/metadata' />", function( data ) {
    $('#title').text(data.title);
    $('#width').text(data.width);
    $('#height').text(data.height);
    $('#image').attr("href", "${pageContext.request.contextPath}" + data.image);
    $('#wikipedia').attr("href", data.wikipedia);
  });
  

  TESTER = document.getElementById('tester');
  Plotly.plot( TESTER, [{
      x: [
<c:forEach var="p" items="${model}">
      ${p.x},
</c:forEach>
      ],
      y: [
<c:forEach var="p" items="${model}">
      ${p.y},
</c:forEach>
  ],
  mode: 'markers', }], {
  margin: { t: 0 } } );

});

</script><commit_msg>no need to send 3000 line feeds<commit_after><%@page import="org.webjars.WebJarAssetLocator"
%><%@page contentType="text/html" pageEncoding="UTF-8"
%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="t" uri="http://net.aequologica.neo/jsp/jstl/layout"
%><%!

WebJarAssetLocator  LOCATOR                      = new WebJarAssetLocator();
int                 META_INF_RESOUCE_PATH_LENGTH = "META-INF/resources/".length();

%><%

request.setAttribute("plotly_min_js", LOCATOR.getFullPath("plotly.min.js").substring(META_INF_RESOUCE_PATH_LENGTH) );

%><t:layout module="image-server">

<h1 id="title"></h1>

<a id="image"     class="btn btn-secondary btn-sm" href="#" role="button"><span id="width"></span>&nbsp;x&nbsp;<span id="height"></span></a>

<a id="wikipedia" class="btn btn-secondary btn-sm" href="#" role="button">wikipedia article</a>

<hr/>

<h2><span id="clickcount"></span> clicks</h2>

<div id="tester" style="width:100%;height:auto;"></div>

</t:layout>

<script type="text/javascript" charset="utf8" src="<c:url value='/${plotly_min_js}' />" ></script>

<script type="text/javascript">

$(document).ready(function() {
  
  $('#clickcount').text("${model.size()}");

  $.getJSON( "<c:url value='/earthly-delights-garden-api/image/v1/metadata' />", function( data ) {
    $('#title').text(data.title);
    $('#width').text(data.width);
    $('#height').text(data.height);
    $('#image').attr("href", "${pageContext.request.contextPath}" + data.image);
    $('#wikipedia').attr("href", data.wikipedia);
  });
  

  TESTER = document.getElementById('tester');
  Plotly.plot( TESTER, [{
      x: [<c:forEach var="p" items="${model}">${p.x},</c:forEach>],
      y: [<c:forEach var="p" items="${model}">${p.y},</c:forEach>],
  mode: 'markers', }], {
  margin: { t: 0 } } );

});

</script>
{'fraction_non_alphanumeric': 0.24604473540643754, 'fraction_numerical': 0.0070921985815602835, 'mean_word_length': 4.738654147104851, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '5555407', 'n_tokens_mistral': 1379, 'n_tokens_neox': 1353, 'n_words': 189}