<commit_before><html>
    <head>
        <title>Force.com Canvas Java Quick Start</title>
 <title>Force.com Canvas Java Quick Start</title>

        <link rel="stylesheet" type="text/css" href="/sdk/css/canvas.css" />

        <script type="text/javascript" src="/sdk/js/canvas-all.js"></script>
        <script type="text/javascript" src="/scripts/json2.js"></script>
        <script type="text/javascript" src="/scripts/chatter-talk.js"></script>
<script type="text/javascript" defer="defer">
    var signedRequest = document.getElementById("<%= hdnSignedRequest.ClientID %>").value;

    function SendValue(pValue) {
        sr = JSON.parse(signedRequest);<commit_msg>order<commit_after>
<%@ page import="canvas.SignedRequest" %>
<%@ page import="java.util.Map" %>
<%
    // Pull the signed request out of the request body and verify/decode it.
    Map<String, String[]> parameters = request.getParameterMap();
    String[] signedRequest = parameters.get("signed_request");
    if (signedRequest == null) {%>
        This App must be invoked via a signed request!<%
        return;
    }
    String yourConsumerSecret=System.getenv("CANVAS_CONSUMER_SECRET");
    String signedRequestJson = SignedRequest.verifyAndDecodeAsJson(signedRequest[0], yourConsumerSecret);
%>

<html>
    <head>
        <title>Force.com Canvas Java Quick Start</title>
 <title>Force.com Canvas Java Quick Start</title>

        <link rel="stylesheet" type="text/css" href="/sdk/css/canvas.css" />

        <script type="text/javascript" src="/sdk/js/canvas-all.js"></script>
        <script type="text/javascript" src="/scripts/json2.js"></script>
        <script type="text/javascript" src="/scripts/chatter-talk.js"></script>
<script type="text/javascript" defer="defer">
    //var signedRequest = document.getElementById("<%= hdnSignedRequest.ClientID %>").value;

    function SendValue(pValue) {
        sr = JSON.parse('<%=signedRequestJson%>');
{'fraction_non_alphanumeric': 0.16174183514774496, 'fraction_numerical': 0.0015552099533437014, 'mean_word_length': 3.961439588688946, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '3844774', 'n_tokens_mistral': 586, 'n_tokens_neox': 562, 'n_words': 116}