<commit_before>// Code highlight
$(function() {
  var jsFileName = document.URL.split('/').slice(-1)[0].replace('.html', '.js')
  $.get(jsFileName, function(content) {
    Rainbow.color(content, 'javascript', function(hlCode) {
      $('<pre><code data-language="javascript">' + hlCode + '</code></pre>')
        .appendTo('#source')
    })
  }, 'text')
})

// Parsing the query params
var QUERY = {}
location.search.slice(1).split('&').forEach(function(el) {
  var pair = el.split('=')
  QUERY[pair[0]] = parseInt(pair[1], 10)
})<commit_msg>added WAA detection to examples<commit_after>// Detect Web Audio API
if (typeof AudioContext === 'undefined' && typeof webkitAudioContext === 'undefined')
  alert('Your browser doesn\'t seem to support Web Audio API')

// Code highlight
$(function() {
  var jsFileName = document.URL.split('/').slice(-1)[0].replace('.html', '.js')
  $.get(jsFileName, function(content) {
    Rainbow.color(content, 'javascript', function(hlCode) {
      $('<pre><code data-language="javascript">' + hlCode + '</code></pre>')
        .appendTo('#source')
    })
  }, 'text')
})

// Parsing the query params
var QUERY = {}
location.search.slice(1).split('&').forEach(function(el) {
  var pair = el.split('=')
  QUERY[pair[0]] = parseInt(pair[1], 10)
})
{'fraction_non_alphanumeric': 0.21630094043887146, 'fraction_numerical': 0.0109717868338558, 'mean_word_length': 4.2987551867219915, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6107576', 'n_tokens_mistral': 421, 'n_tokens_neox': 414, 'n_words': 88}