<commit_before><!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" charset="utf-8"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js" charset="utf-8"></script>
  <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
  <script src="testutils.js"></script>
  <script src="v0.1tests.js"></script>
  <script src="v0.5tests.js"></script>

  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
  <link rel="stylesheet" href="compliance.css">
</head>
<body>

<div class="col-md-6">
  <h2>GA4GH compliance tests</h2>
  <form class="form testInput" role="form">
    <div class="form-group">
      <label for="endpoint">API endpoint
        <small onclick="setApi('http://172.16.17.32', '')">EBI</small>
        <small onclick="setApi('https://www.googleapis.com/genomics/v1beta?key=<KEY>', '10473108253681171589')">Google</small>
        <small onclick="setApi('http://trace.ncbi.nlm.nih.gov/Traces/gg', 'SRP000547')">NCBI</small>
      </label>
      <input type="text" class="form-control" id="endpoint" placeholder="http://...">
    </div>
    <div class="form-group">
      <label for="datasetId">Dataset ID <small>(which contains a read group set named NA12878)</small></label>
      <input type="text" class="form-control" id="datasetId"
             placeholder="A valid dataset identifier">
    </div>
    <button id="formButton" class="btn btn-default" data-loading-text="Testing..."
            onclick="runTests(); return false;">Test</button>
  </form>

  <div id="overallScore"></div>
</div>

<div id="results" class="col-md-6"></div>

<div class="col-md-12 footer">
  Note: test timing covers execution time for the entire test (not just the
  length of API calls). Use a javascript inspector for more detailed metrics.
  <br/>
  Don't like how these tests work? Found a bug? Pull requests and issues are
  very welcome at <a href="https://github.com/ga4gh/compliance">github.com/ga4gh/compliance</a>
</div>

<script type="text/javascript"><commit_msg>Update Ensembl and Google endpoints<commit_after><!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" charset="utf-8"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js" charset="utf-8"></script>
  <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
  <script src="testutils.js"></script>
  <!--<script src="v0.1tests.js"></script>-->
  <script src="v0.5tests.js"></script>

  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
  <link rel="stylesheet" href="compliance.css">
</head>
<body>

<div class="col-md-6">
  <h2>GA4GH compliance tests</h2>
  <form class="form testInput" role="form">
    <div class="form-group">
      <label for="endpoint">API endpoint
        <small onclick="setApi('http://172.16.17.32', '')">EBI</small>
        <small onclick="setApi('http://172.16.31.10:8081', '2')">Ensembl</small>
        <small onclick="setApi('https://www.googleapis.com/genomics/v1beta2?key=<KEY>', '10473108253681171589')">Google</small>
        <small onclick="setApi('http://trace.ncbi.nlm.nih.gov/Traces/gg', 'SRP000547')">NCBI</small>
      </label>
      <input type="text" class="form-control" id="endpoint" placeholder="http://...">
    </div>
    <div class="form-group">
      <label for="datasetId">Dataset ID <small>(which contains a read group set named NA12878)</small></label>
      <input type="text" class="form-control" id="datasetId"
             placeholder="A valid dataset identifier">
    </div>
    <button id="formButton" class="btn btn-default" data-loading-text="Testing..."
            onclick="runTests(); return false;">Test</button>
  </form>

  <div id="overallScore"></div>
</div>

<div id="results" class="col-md-6"></div>

<div class="col-md-12 footer">
  Note: test timing covers execution time for the entire test (not just the
  length of API calls). Use a javascript inspector for more detailed metrics.
  <br/>
  Don't like how these tests work? Found a bug? Pull requests and issues are
  very welcome at <a href="https://github.com/ga4gh/compliance">github.com/ga4gh/compliance</a>
</div>

<script type="text/javascript">
{'fraction_non_alphanumeric': 0.16791796374290424, 'fraction_numerical': 0.029481779893792345, 'mean_word_length': 4.133458646616542, 'pattern_counts': {'":': 0, '<': 120, '<?xml version=': 0, '>': 120, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 3, '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': '3047082', 'n_tokens_mistral': 1853, 'n_tokens_neox': 1718, 'n_words': 454}