<commit_before>This page has moved. Please click <a href="<@siteLink path='${defaultTarget}'/>">here</a> if you are not redirected automatically.


<#include "redirectList.ftl"/>

<#include "journalRedirectList.ftl"/>

<script type="text/javascript">

  // override with any journal-specific redirects
  for (var key in journal_redirects) {
    redirects[key] = journal_redirects[key];
  }

  var current_anchor = window.location.hash;
  var target = "${defaultTarget}";
  var source = "${sourcePage}";
  for (var anchor_regex in redirects) {
    if (RegExp(anchor_regex).test(source + current_anchor)) {
      target = redirects[anchor_regex];
      break;
    }
  }

  // Ajax URL should be set as a redirect in Apache. The redirect destination is arbitrary and
  // response is ignored. This request will allow logging of Javascript-based redirects as if
  // they were standard Apache redirects.
  $.ajax({
    type: 'POST',
    url: "<@siteLink path=''/>" + '/logRedirect?source=' + encodeURIComponent(source)
    + "&anchor=" + encodeURIComponent(current_anchor),
    dataType: 'json',
  });

  window.location.replace("<@siteLink path='" + target + "'/>");

</script><commit_msg>DPRO-1026: switching to standard Javascript for Ajax call<commit_after>This page has moved. Please click <a href="<@siteLink path='${defaultTarget}'/>">here</a> if you are not redirected automatically.


<#include "redirectList.ftl"/>

<#include "journalRedirectList.ftl"/>

<script type="text/javascript">

  // override with any journal-specific redirects
  for (var key in journal_redirects) {
    redirects[key] = journal_redirects[key];
  }

  var current_anchor = window.location.hash;
  var target = "${defaultTarget}";
  var source = "${sourcePage}";
  for (var anchor_regex in redirects) {
    if (RegExp(anchor_regex).test(source + current_anchor)) {
      target = redirects[anchor_regex];
      break;
    }
  }

  // Ajax URL should be set as a redirect in Apache. The redirect destination is arbitrary and
  // response is ignored. This request will allow logging of Javascript-based redirects as if
  // they were standard Apache redirects.
  var xmlhttp = new XMLHttpRequest();
  var url = "<@siteLink path=''/>" + 'logRedirect?source=' + encodeURIComponent(source)
      + "&anchor=" + encodeURIComponent(current_anchor);
  xmlhttp.open('POST', url, true /*async*/);
  xmlhttp.send();

  //window.location.replace("<@siteLink path='" + target + "'/>");

</script>
{'fraction_non_alphanumeric': 0.1386861313868613, 'fraction_numerical': 0.0016220600162206002, 'mean_word_length': 4.107660455486543, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '131265', 'n_tokens_mistral': 742, 'n_tokens_neox': 728, 'n_words': 217}