<commit_before><?php if (!$this->kelloggsUrl) {echo $this->translate('Missing setting to generate kelloggs dashboard url'); return;} ?>
<style type="text/css">
        #sub-header { padding: 5px 20px 0px; }
        #wrapper { padding: 0 0 0 0; width: 100%; }
</style>
<iframe id="kelloggsIframe" width="100%" height="100%" src="about:blank" frameborder="0" class="auto-height"></iframe>
<script type="text/javascript">
  var initialized = false;
  (function(window) {

    if (initialized) {
      return;
    }

    initialized = true;

    var url = window.location;
    var hostUrl = url.origin + url.pathname;

    var appConfig = {
      'type': 'config',
      'config': {
        'hostUrl': hostUrl,
        'serviceUrl': '<?php echo $this->kelloggsServiceUrl; ?>',
        'jwt': '<?php echo $this->kelloggsJwt; ?>',
      }
    };

    if (!appConfig.config.jwt || !appConfig.config.serviceUrl) {
      alert("Cannot initialize test page, missing configuration. Please modify file index.html to include jwt and service url");
      return;
    }

    window.document.getElementById('kelloggsIframe').src = '<?php echo $this->kelloggsUrl; ?>';

    window.addEventListener('message', function(e) {
      var postMessageData;
      try {
        postMessageData = e.data;
      }
      catch(ex) {
        return;
      }

      if(postMessageData.type === 'request-config') {<commit_msg>kelloggs - support copy url<commit_after><?php if (!$this->kelloggsUrl) {echo $this->translate('Missing setting to generate kelloggs dashboard url'); return;} ?>
<style type="text/css">
        #sub-header { padding: 5px 20px 0px; }
        #wrapper { padding: 0 0 0 0; width: 100%; }
</style>
<iframe id="kelloggsIframe" width="100%" height="100%" src="about:blank" frameborder="0" class="auto-height"></iframe>
<script type="text/javascript">
  var initialized = false;
  (function(window) {

    if (initialized) {
      return;
    }

    initialized = true;

    var url = window.location;
    var hostUrl = url.origin + url.pathname;

    var appConfig = {
      'type': 'config',
      'config': {
        'hostUrl': hostUrl,
        'serviceUrl': '<?php echo $this->kelloggsServiceUrl; ?>',
        'jwt': '<?php echo $this->kelloggsJwt; ?>',
      }
    };

    if (!appConfig.config.jwt || !appConfig.config.serviceUrl) {
      alert("Cannot initialize test page, missing configuration. Please modify file index.html to include jwt and service url");
      return;
    }

    window.document.getElementById('kelloggsIframe').src = '<?php echo $this->kelloggsUrl; ?>' + url.hash;

    window.addEventListener('message', function(e) {
      var postMessageData;
      try {
        postMessageData = e.data;
      }
      catch(ex) {
        return;
      }

      if(postMessageData.type === 'request-config') {
{'fraction_non_alphanumeric': 0.15523978685612788, 'fraction_numerical': 0.012788632326820605, 'mean_word_length': 3.0171184022824535, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 31, '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': '4884864', 'n_tokens_mistral': 925, 'n_tokens_neox': 876, 'n_words': 210}