<commit_before><%@ page import="org.json.simple.JSONObject" %>
<%@ page import="org.json.simple.JSONArray" %>
<%@ page import="org.json.simple.parser.JSONParser" %>
<%@ page import="org.json.simple.parser.ParseException" %>
<%@ page import="java.io.IOException" %>
<%@ page import="org.apache.http.client.ResponseHandler" %>
<%@ page import="org.apache.http.client.methods.HttpGet" %>
<%@ page import="org.apache.http.impl.client.BasicResponseHandler" %>
<%@ page import="org.apache.http.impl.client.DefaultHttpClient" %>
<%
	String genomedataurl = "http://" + request.getServerName() + ":" + request.getServerPort() + "/patric-common/data/transcriptomics.json";
	DefaultHttpClient httpclient = new DefaultHttpClient();
	HttpGet httpRequest = new HttpGet(genomedataurl);
	JSONObject jsonData = null;
	try {
		ResponseHandler<String> responseHandler = new BasicResponseHandler();
		String strResponseBody = httpclient.execute(httpRequest, responseHandler);

		JSONParser parser = new JSONParser();
		jsonData = (JSONObject) parser.parse(strResponseBody);
		
	} catch (IOException e) {
		e.printStackTrace();
	} catch (ParseException e) {
		e.printStackTrace();
	} finally {
		httpclient.getConnectionManager().shutdown();
	}
	
%>
<link rel="stylesheet" href="/patric/css/dlp.css"></link>
<script type="text/javascript" src="/patric/js/libs/d3.v3.min.js"></script>
<script type="text/javascript" src="/patric/js/libs/jquery.scrollTo-1.4.11-min.js"></script><commit_msg>make requests/links work for both http and https<commit_after><%@ page import="org.json.simple.JSONObject" %>
<%@ page import="org.json.simple.JSONArray" %>
<%
JSONObject jsonData = (JSONObject) request.getAttribute("jsonData");
%>
<link rel="stylesheet" href="/patric/css/dlp.css"></link>
<script type="text/javascript" src="/patric/js/libs/d3.v3.min.js"></script>
<script type="text/javascript" src="/patric/js/libs/jquery.scrollTo-1.4.11-min.js"></script>
{'fraction_non_alphanumeric': 0.18285714285714286, 'fraction_numerical': 0.006233766233766234, 'mean_word_length': 5.878571428571429, 'pattern_counts': {'":': 1, '<': 29, '<?xml version=': 0, '>': 29, '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': '378416', 'n_tokens_mistral': 654, 'n_tokens_neox': 613, 'n_words': 95}