<commit_before><%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ page import="serverLogic.Parser"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.lang.String" %>

<!-- This should be changed to reflect successful processing when we can -->
<!-- Parser.splat(info) should return true if successful -->
<script src = "script.js"></script>
<script src = "sha.js"></script>
<link rel="stylesheet" type="text/css" href="/MobileApp/FieldAppCSS.css" />
<script>
	window.onload = function(){
		<%String info = request.getParameter("tempForUpload");
			//out.println("value="+info);
			//System.out.println("We got here");
		%>
		<%if (info != null && !info.equalsIgnoreCase(""))
		{%>
			<%Parser.splat(info);%>
			localStorage.setItem("success", true);
		<%}%>
		
		<%if (info == null)
		{%>
			localStorage.setItem("success", false);
		<%}%>
		
		<%if (info.equalsIgnoreCase(""))
		{%>
			localStorage.setItem("success", "emptyString");	
		<%}%>
		window.location = "/MobileApp/FieldAppMain.html";
	}
	<commit_msg>Error checks! :)<commit_after><%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ page import="serverLogic.Parser"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.lang.String" %>

<!-- This should be changed to reflect successful processing when we can -->
<!-- Parser.splat(info) should return true if successful -->
<script src = "script.js"></script>
<script src = "sha.js"></script>
<link rel="stylesheet" type="text/css" href="/MobileApp/FieldAppCSS.css" />
<script>
	window.onload = function(){
		<%String info = request.getParameter("tempForUpload");
			boolean worked = false;
			//out.println("value="+info);
			//System.out.println("We got here");
		%>
		<%if (info != null && !info.equalsIgnoreCase(""))
		{%>
			<%worked = Parser.splat(info);%>
			localStorage.setItem("success", true);
		<%}%>
		
		<%if (info == null || !worked)
		{%>
			localStorage.setItem("success", false);
		<%}%>
		
		<%if (info.equalsIgnoreCase(""))
		{%>
			localStorage.setItem("success", "emptyString");	
		<%}%>
		window.location = "/MobileApp/FieldAppMain.html";
	}
	
{'fraction_non_alphanumeric': 0.21728971962616822, 'fraction_numerical': 0.0009345794392523365, 'mean_word_length': 4.461734693877551, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '2887718', 'n_tokens_mistral': 803, 'n_tokens_neox': 703, 'n_words': 139}