<commit_before>// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
$(function () {
  var active = 'active';
  var expanded = 'in';
  var collapsed = 'collapsed';
  var filtered = 'filtered';
  var show = 'show';
  var hide = 'hide';

  // Styling for tables in conceptual documents using Bootstrap.
  // See http://getbootstrap.com/css/#tables
  (function () {
    $('table').addClass('table table-bordered table-striped table-condensed');
  })();

  // Styling for alerts.
  (function () {
    $('.NOTE, .TIP').addClass('alert alert-info');
    $('.WARNING').addClass('alert alert-warning');
    $('.IMPORTANT, .CAUTION').addClass('alert alert-danger');
  })();  

  // Enable anchors for headings.
  (function () {
    anchors.options = {
      placement: 'left',
      visible: 'touch'
    };
    anchors.add('article h2, article h3, article h4, article h5, article h6');
  })();

  // Enable highlight.js
  (function () {
    $('pre code').each(function(i, block) {
      hljs.highlightBlock(block);
    });
  })();

  // Line highlight for code snippet
  (function () {
    $('pre code[highlight-lines]').each(function (i, block) {
      if (block.innerHTML === "") return;
      var lines = block.innerHTML.split('\n');

      queryString = block.getAttribute('highlight-lines');
      if (!queryString) return;

      var ranges = queryString.split(',');
      for (var j = 0, range; range = ranges[j++];) {
        var found = range.match(/^(\d+)\-(\d+)?$/);
        if (found) {<commit_msg>Open links to a different host in a new tab/window (#1252)<commit_after>// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
$(function () {
  var active = 'active';
  var expanded = 'in';
  var collapsed = 'collapsed';
  var filtered = 'filtered';
  var show = 'show';
  var hide = 'hide';

  // Styling for tables in conceptual documents using Bootstrap.
  // See http://getbootstrap.com/css/#tables
  (function () {
    $('table').addClass('table table-bordered table-striped table-condensed');
  })();

  // Styling for alerts.
  (function () {
    $('.NOTE, .TIP').addClass('alert alert-info');
    $('.WARNING').addClass('alert alert-warning');
    $('.IMPORTANT, .CAUTION').addClass('alert alert-danger');
  })();  

  // Enable anchors for headings.
  (function () {
    anchors.options = {
      placement: 'left',
      visible: 'touch'
    };
    anchors.add('article h2, article h3, article h4, article h5, article h6');
  })();

  // Open links to different host in a new window.
  (function () {
    $(document.links).filter(function() {
      return this.hostname !== window.location.hostname;
    }).attr('target', '_blank');
  })();

  // Enable highlight.js
  (function () {
    $('pre code').each(function(i, block) {
      hljs.highlightBlock(block);
    });
  })();

  // Line highlight for code snippet
  (function () {
    $('pre code[highlight-lines]').each(function (i, block) {
      if (block.innerHTML === "") return;
      var lines = block.innerHTML.split('\n');

      queryString = block.getAttribute('highlight-lines');
      if (!queryString) return;

      var ranges = queryString.split(',');
      for (var j = 0, range; range = ranges[j++];) {
        var found = range.match(/^(\d+)\-(\d+)?$/);
        if (found) {
{'fraction_non_alphanumeric': 0.17915214866434379, 'fraction_numerical': 0.004645760743321719, 'mean_word_length': 3.005813953488372, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7384495', 'n_tokens_mistral': 1076, 'n_tokens_neox': 1028, 'n_words': 290}