<commit_before><!DOCTYPE html>
<html>
<head>
  <title>REST API - EasyMinerCenter</title>
  <link rel="icon" type="image/png" href="{$basePath}/swagger-ui/images/favicon-32x32.png" sizes="32x32" />
  <link rel="icon" type="image/png" href="{$basePath}/swagger-ui/images/favicon-16x16.png" sizes="16x16" />
  <link href='{$basePath}/swagger-ui/css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
  <link href='{$basePath}/swagger-ui/css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
  <link href='{$basePath}/swagger-ui/css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
  <link href='{$basePath}/swagger-ui/css/reset.css' media='print' rel='stylesheet' type='text/css'/>
  <link href='{$basePath}/swagger-ui/css/print.css' media='print' rel='stylesheet' type='text/css'/>
  <script src='{$basePath}/swagger-ui/lib/jquery-1.8.0.min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/jquery.slideto.min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/jquery.wiggle.min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/handlebars-2.0.0.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/underscore-min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/backbone-min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/swagger-ui.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/highlight.7.3.pack.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/marked.js' type='text/javascript'></script>

  <script type="text/javascript">
    $(function () {
      var url = window.location.search.match(/url=([^&]+)/);
      if (url && url.length > 1) {
        url = decodeURIComponent(url[1]);
      } else {
        url = {$apiUrl};
      }
      window.swaggerUi = new SwaggerUi({
        url: url,
        dom_id: "swagger-ui-container",
        supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
        onComplete: function(swaggerApi, swaggerUi){
          if(typeof initOAuth == "function") {
            /*
            initOAuth({
              clientId: "your-client-id",
              realm: "your-realms",
              appName: "your-app-name"
            });
            */
          }

          $('pre code').each(function(i, e) {
            hljs.highlightBlock(e)
          });

          addApiKeyAuthorization();
        },
        onFailure: function(data) {
          log("Unable to Load SwaggerUI");
        },
        docExpansion: "none",
        sorter : "alpha"
      });

      function addApiKeyAuthorization(){
        var key = encodeURIComponent($('#input_apiKey')[0].value);
        if(key && key.trim() != "") {
            var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("api_key", key, "query");
            window.swaggerUi.api.clientAuthorizations.add("api_key", apiKeyAuth);
            log("added key " + key);
        }
      }

      $('#input_apiKey').change(addApiKeyAuthorization);

      // if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
      /*
        var apiKey = "<KEY>";
        $('#input_apiKey').val(apiKey);
        addApiKeyAuthorization();
      */

      window.swaggerUi.load();

      function log() {
        if ('console' in window) {
          console.log.apply(console, arguments);
        }
      }
  });
  </script><commit_msg>vyřešen problém s připojováním API klíče k požadavku<commit_after><!DOCTYPE html>
<html>
<head>
  <title>REST API - EasyMinerCenter</title>
  <link rel="icon" type="image/png" href="{$basePath}/swagger-ui/images/favicon-32x32.png" sizes="32x32" />
  <link rel="icon" type="image/png" href="{$basePath}/swagger-ui/images/favicon-16x16.png" sizes="16x16" />
  <link href='{$basePath}/swagger-ui/css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
  <link href='{$basePath}/swagger-ui/css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
  <link href='{$basePath}/swagger-ui/css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
  <link href='{$basePath}/swagger-ui/css/reset.css' media='print' rel='stylesheet' type='text/css'/>
  <link href='{$basePath}/swagger-ui/css/print.css' media='print' rel='stylesheet' type='text/css'/>
  <script src='{$basePath}/swagger-ui/lib/jquery-1.8.0.min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/jquery.slideto.min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/jquery.wiggle.min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/handlebars-2.0.0.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/underscore-min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/backbone-min.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/swagger-ui.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/highlight.7.3.pack.js' type='text/javascript'></script>
  <script src='{$basePath}/swagger-ui/lib/marked.js' type='text/javascript'></script>

  <script type="text/javascript">
    $(function () {
      var url = window.location.search.match(/url=([^&]+)/);
      if (url && url.length > 1) {
        url = decodeURIComponent(url[1]);
      } else {
        url = {$apiUrl};
      }
      window.swaggerUi = new SwaggerUi({
        url: url,
        dom_id: "swagger-ui-container",
        supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
        onComplete: function(swaggerApi, swaggerUi){
          if(typeof initOAuth == "function") {
            /*
            initOAuth({
              clientId: "your-client-id",
              realm: "your-realms",
              appName: "your-app-name"
            });
            */
          }

          $('pre code').each(function(i, e) {
            hljs.highlightBlock(e)
          });

          addApiKeyAuthorization();
        },
        onFailure: function(data) {
          log("Unable to Load SwaggerUI");
        },
        docExpansion: "none",
        sorter : "alpha"
      });

      function addApiKeyAuthorization(){
        var key = encodeURIComponent($('#input_apiKey')[0].value);
        if(key && key.trim() != "") {
            var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("key", key, "query");
            window.swaggerUi.api.clientAuthorizations.add("apiKey", apiKeyAuth);
            log("added key " + key);
        }
      }

      $('#input_apiKey').change(addApiKeyAuthorization);

      // if you have an apiKey you would like to pre-populate on the page for demonstration purposes...
      /*
        var apiKey = "<KEY>";
        $('#input_apiKey').val(apiKey);
        addApiKeyAuthorization();
      */

      window.swaggerUi.load();

      function log() {
        if ('console' in window) {
          console.log.apply(console, arguments);
        }
      }
  });
  </script>
{'fraction_non_alphanumeric': 0.18911489829576691, 'fraction_numerical': 0.007421660252886202, 'mean_word_length': 2.976502732240437, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 75, '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': '5385617', 'n_tokens_mistral': 2426, 'n_tokens_neox': 2388, 'n_words': 362}