<commit_before><html>
  <head>
    <title>COS tester</title>
    <script type="text/javascript" src="javascripts/jsontest.js"></script>
    <link rel="stylesheet" href="stylesheets/cos.css" type="text/css" media="screen" />
  </head>
  <body>
    <h1>COS tester</h1>
    <p>The URL must be absolute and start with a slash, e.g. <code>/session</code>.</p>
    <select id="method">
      <option>GET</option>
      <option>POST</option>
      <option>PUT</option>
      <option>DELETE</option>
    </select>
    <input type="text" id="url" size="69"/>
    <br/>with params<br/>
    <textarea cols="70" rows="10" id="params"></textarea>
    <input type="button" style="margin-top:1em" onClick="test('<%= form_authenticity_token %>')" value="Execute"/><br/>
    <div id="responses">
      <div></div>
    </div>
  </body>
</html><commit_msg>minimaalinen dokumentaatio cos-testerin käytöstä<commit_after><html>
  <head>
    <title>COS tester</title>
    <script type="text/javascript" src="javascripts/jsontest.js"></script>
    <link rel="stylesheet" href="stylesheets/cos.css" type="text/css" media="screen" />
  </head>
  <body>
    <h1>COS tester</h1>
    <p>The URL must be absolute and start with a slash, e.g. <code>/session</code>.</p>
    <p>The parameters should be in same format as in URL query parameters, for example:</p>
    <code>app_name=tussi&app_password=secret</code><br/>
    <code>person[username]=testman&person[password]=<PASSWORD>&person[email]=<EMAIL></code><br/>
   <code>title=testCollection&metadata[someKey]=someValue</code><br/>
   <br/>
    <select id="method">
      <option>GET</option>
      <option>POST</option>
      <option>PUT</option>
      <option>DELETE</option>
    </select>
    <input type="text" id="url" size="69"/>
    <br/>with params<br/>
    <textarea cols="70" rows="10" id="params"></textarea>
    <input type="button" style="margin-top:1em" onClick="test('<%= form_authenticity_token %>')" value="Execute"/><br/>
    <div id="responses">
      <div></div>
    </div>
  </body>
</html>
{'fraction_non_alphanumeric': 0.2025565388397247, 'fraction_numerical': 0.008849557522123894, 'mean_word_length': 3.951338199513382, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '4421805', 'n_tokens_mistral': 730, 'n_tokens_neox': 704, 'n_words': 134}