<commit_before>$def with (version)
<!DOCTYPE html>
<html lang="en">
<head>

   <!-- Stylesheets -->
   <link rel="stylesheet" href="/static/css/main.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="/static/css/mousey-dialog.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="/static/themes/custom-theme/jquery-ui-1.8.18.custom.css" type="text/css" media="screen" />

   <!-- SMART Connect client (includes jQuery)-->
   <script src="/static/smart/smart-api-client.js"></script>
   
   <!-- Standard JS libraries -->
   <script src="/static/lib/jquery-1.6.2.js"></script>
   <script src="/static/lib/jquery-ui-1.8.14.custom.min.js" type="text/javascript"></script>
   
   <!-- jQuery plugins -->
   <script src="/static/lib/jquery.event.hover.js"></script>
   <script src="/static/lib/jquery.mouseyDialog.js"></script>

   <!-- JS functions for the app -->
   <script src="/static/js/utils.js"></script>

</head>
<body>

<h2>API Verifier (SMART v${version})</h2>

<div id="spinner_main"><p><img src='/static/images/ajax-loader.gif' /></p></div>

<div id="tabs">

    <ul>
        <li><a href="#tab_all">All</a></li>
        <li><a href="#tab_custom">Custom Data</a></li>
        <li><a href="#tab_manifest">Manifest</a></li>
        <li><a href="#tab_queries">Queries</a></li>
        <li><a href="#tab_help">Help</a></li>
    </ul>
    
    <div id="tab_all">
        <div>
            <div id="results"></div>
            <div><p><textarea id="all_messages" cols="80" rows="8" readonly="readonly"></textarea></p></div>
        </div>
    </div>
    
    <div id="tab_custom">
        <div>
            <p>Select model:</p>
            <p><select id="model"></select></p>
            <p>Enter data:</p>
            <p><textarea id="rdf_input" cols="80" rows="16">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;rdf:RDF
  xmlns:spcode=&quot;http://smartplatforms.org/terms/codes/&quot;
  xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;
  xmlns:dcterms=&quot;http://purl.org/dc/terms/&quot;
  xmlns:sp=&quot;http://smartplatforms.org/terms#&quot;
&gt;
  &lt;sp:AllergyExclusion&gt;
    &lt;sp:allergyExclusionName&gt;
      &lt;sp:CodedValue&gt;
        &lt;sp:code rdf:resource=&quot;http://purl.bioontology.org/ontology/SNOMEDCT/160244002&quot;/&gt;
        &lt;dcterms:title&gt;no known allergies&lt;/dcterms:title&gt;
      &lt;/sp:CodedValue&gt;
    &lt;/sp:allergyExclusionName&gt;
    &lt;sp:belongsTo rdf:resource=&quot;patient&quot;/&gt;
  &lt;/sp:AllergyExclusion&gt;
  &lt;sp:Code rdf:about=&quot;http://purl.bioontology.org/ontology/SNOMEDCT/160244002&quot;&gt;
    &lt;rdf:type rdf:resource=&quot;http://smartplatforms.org/terms/codes/AllergyExclusion&quot;/&gt;
    &lt;sp:system&gt;http://purl.bioontology.org/ontology/SNOMEDCT/&lt;/sp:system&gt;
    &lt;dcterms:title&gt;no known allergies&lt;/dcterms:title&gt;
    &lt;dcterms:identifier&gt;160244002&lt;/dcterms:identifier&gt;
  &lt;/sp:Code&gt;
&lt;/rdf:RDF&gt;</textarea></p>
            <p><input id="validate" type="button" value="Validate" /></p>
            <div id="spinner"><p><img src='/static/images/ajax-loader.gif' /></p></div>
            <div><p><textarea id="custom_messages" class="console" cols="80" rows="8" readonly="readonly"></textarea></p></div>
        </div>
    </div>
    
    <div id="tab_manifest">
        <div>
            <p>Manifest:</p>
            <p><textarea id="manifest_input" cols="80" rows="16">{
  "name" : "<NAME>",
  "description" : "A test application for SMART",
  "author" : "SMART Team",
  "id" : "<EMAIL>",
  "version" : ".1a",

  "mode" : "ui",
  "scope": "record",

  "index" : "http://example.com/smartapp/index.html",
  "icon" :  "http://example.com/smartapp/icon.png",
  
  "smart_version": "0.4",
  
  "requires": {
        "http://smartplatforms.org/terms#Demographics": {
            "methods": [
                "GET",
                "POST",
                "PUT",
                "DELETE"
            ]
        }, 
        "http://smartplatforms.org/terms#LabResult": {
            "codes": [
                "http://purl.bioontology.org/ontology/LNC/30522-7", 
                "http://purl.bioontology.org/ontology/LNC/2093-3", 
                "http://purl.bioontology.org/ontology/LNC/2085-9"
            ], 
            "methods": [
                "GET"
            ]
        }
   }, 
  
   "supportedBrowserEnvironments": [
        "desktop", 
        "tablet",
        "mobile"
   ],
  
   "optimalBrowserEnvironments": [
        "desktop"
   ]
}</textarea></p>
            <p><input id="validate_manifest" type="button" value="Validate" /></p>
            <div id="spinner_manifest"><p><img src='/static/images/ajax-loader.gif' /></p></div>
            <div><p><textarea id="custom_messages_manifest" class="console" cols="80" rows="8" readonly="readonly"></textarea></p></div><commit_msg>Update the sample data in the API Verifier<commit_after>$def with (version)
<!DOCTYPE html>
<html lang="en">
<head>

   <!-- Stylesheets -->
   <link rel="stylesheet" href="/static/css/main.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="/static/css/mousey-dialog.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="/static/themes/custom-theme/jquery-ui-1.8.18.custom.css" type="text/css" media="screen" />

   <!-- SMART Connect client (includes jQuery)-->
   <script src="/static/smart/smart-api-client.js"></script>
   
   <!-- Standard JS libraries -->
   <script src="/static/lib/jquery-1.6.2.js"></script>
   <script src="/static/lib/jquery-ui-1.8.14.custom.min.js" type="text/javascript"></script>
   
   <!-- jQuery plugins -->
   <script src="/static/lib/jquery.event.hover.js"></script>
   <script src="/static/lib/jquery.mouseyDialog.js"></script>

   <!-- JS functions for the app -->
   <script src="/static/js/utils.js"></script>

</head>
<body>

<h2>API Verifier (SMART v${version})</h2>

<div id="spinner_main"><p><img src='/static/images/ajax-loader.gif' /></p></div>

<div id="tabs">

    <ul>
        <li><a href="#tab_all">All</a></li>
        <li><a href="#tab_custom">Custom Data</a></li>
        <li><a href="#tab_manifest">Manifest</a></li>
        <li><a href="#tab_queries">Queries</a></li>
        <li><a href="#tab_help">Help</a></li>
    </ul>
    
    <div id="tab_all">
        <div>
            <div id="results"></div>
            <div><p><textarea id="all_messages" cols="80" rows="8" readonly="readonly"></textarea></p></div>
        </div>
    </div>
    
    <div id="tab_custom">
        <div>
            <p>Select model:</p>
            <p><select id="model"></select></p>
            <p>Enter data:</p>
            <p><textarea id="rdf_input" cols="80" rows="16">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;rdf:RDF
  xmlns:spcode=&quot;http://smartplatforms.org/terms/codes/&quot;
  xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;
  xmlns:dcterms=&quot;http://purl.org/dc/terms/&quot;
  xmlns:sp=&quot;http://smartplatforms.org/terms#&quot;
&gt;
  &lt;sp:AllergyExclusion&gt;
    &lt;sp:allergyExclusionName&gt;
      &lt;sp:CodedValue&gt;
        &lt;sp:code rdf:resource=&quot;http://purl.bioontology.org/ontology/SNOMEDCT/160244002&quot;/&gt;
        &lt;dcterms:title&gt;no known allergies&lt;/dcterms:title&gt;
      &lt;/sp:CodedValue&gt;
    &lt;/sp:allergyExclusionName&gt;
    &lt;dcterms:date&gt;2008-05-05&lt;/dcterms:date&gt;
    &lt;sp:belongsTo rdf:resource=&quot;patient&quot;/&gt;
  &lt;/sp:AllergyExclusion&gt;
  &lt;sp:Code rdf:about=&quot;http://purl.bioontology.org/ontology/SNOMEDCT/160244002&quot;&gt;
    &lt;rdf:type rdf:resource=&quot;http://smartplatforms.org/terms/codes/AllergyExclusion&quot;/&gt;
    &lt;sp:system&gt;http://purl.bioontology.org/ontology/SNOMEDCT/&lt;/sp:system&gt;
    &lt;dcterms:title&gt;no known allergies&lt;/dcterms:title&gt;
    &lt;dcterms:identifier&gt;160244002&lt;/dcterms:identifier&gt;
  &lt;/sp:Code&gt;
&lt;/rdf:RDF&gt;</textarea></p>
            <p><input id="validate" type="button" value="Validate" /></p>
            <div id="spinner"><p><img src='/static/images/ajax-loader.gif' /></p></div>
            <div><p><textarea id="custom_messages" class="console" cols="80" rows="8" readonly="readonly"></textarea></p></div>
        </div>
    </div>
    
    <div id="tab_manifest">
        <div>
            <p>Manifest:</p>
            <p><textarea id="manifest_input" cols="80" rows="16">{
  "name" : "<NAME>",
  "description" : "A test application for SMART",
  "author" : "<NAME>",
  "id" : "<EMAIL>",
  "version" : ".1a",

  "mode" : "ui",
  "scope": "record",

  "index" : "http://example.com/smartapp/index.html",
  "icon" :  "http://example.com/smartapp/icon.png",
  
  "smart_version": "1.0",
  
  "requires": {
        "http://smartplatforms.org/terms#Demographics": {
            "methods": [
                "GET",
                "POST",
                "PUT",
                "DELETE"
            ]
        }, 
        "http://smartplatforms.org/terms#LabResult": {
            "codes": [
                "http://purl.bioontology.org/ontology/LNC/30522-7", 
                "http://purl.bioontology.org/ontology/LNC/2093-3", 
                "http://purl.bioontology.org/ontology/LNC/2085-9"
            ], 
            "methods": [
                "GET"
            ]
        }
   }
}</textarea></p>
            <p><input id="validate_manifest" type="button" value="Validate" /></p>
            <div id="spinner_manifest"><p><img src='/static/images/ajax-loader.gif' /></p></div>
            <div><p><textarea id="custom_messages_manifest" class="console" cols="80" rows="8" readonly="readonly"></textarea></p></div>
{'fraction_non_alphanumeric': 0.21546847680756967, 'fraction_numerical': 0.01892420034968631, 'mean_word_length': 2.9130784708249498, 'pattern_counts': {'":': 18, '<': 246, '<?xml version=': 2, '>': 246, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, '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': '643943', 'n_tokens_mistral': 3738, 'n_tokens_neox': 3509, 'n_words': 440}