<commit_before>var qs;
(window.onpopstate = function () {
    var match,
        pl     = /\+/g,  // Regex for replacing addition symbol with a space
        search = /([^&=]+)=?([^&]*)/g,
        decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
        query  = window.location.search.substring(1);

    qs = {};
    while (match = search.exec(query))
       qs[decode(match[1])] = decode(match[2]);
})();

var tts = new GoogleTTS();
var langCodes = {
    '!tw': "zh-TW",
    '!cn': "zh-CN",
    '!en': "en-US",
    '!us': "en-US",
    '!kr': "ko-KR",
    '!ko': "ko-KR",
    '!jp': "ja-JP"
};

var channels;
if ("channel" in qs) {
channels = [qs['channel']], // Channels to initially join<commit_msg>chat-tts2: Support firefox by soundmanager<commit_after>var qs;
(window.onpopstate = function () {
    var match,
        pl     = /\+/g,  // Regex for replacing addition symbol with a space
        search = /([^&=]+)=?([^&]*)/g,
        decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
        query  = window.location.search.substring(1);

    qs = {};
    while (match = search.exec(query))
       qs[decode(match[1])] = decode(match[2]);
})();

    $(document).ready(function(){
      soundManager.setup({
        url: '/',
        preferFlash: false,
        onready: function() {
          if (!window.GoogleTTS) {
            $("#error").text("Sorry, the google-tts script couldn't be loaded.");
            return;
          } else {
            var HTML = '\
            <div> \
                <label for="demo_language">Language:</label> \
                <select id="demo_language"> \
                    <option value="" disabled="disabled">(Select language)</option> \
                </select> \
            </div> \
            <div> \
                <label for="demo_text">Text:</label> \
                <textarea rows="5" cols="60" id="demo_text" /> \
            </div> \
            <button id="demo_play">Play!</button> \
            ';
            $("#tts_demo").html(HTML);
          }
        }
      });
    });
var tts = new GoogleTTS();
var langCodes = {
    '!tw': "zh-TW",
    '!cn': "zh-CN",
    '!en': "en-US",
    '!us': "en-US",
    '!kr': "ko-KR",
    '!ko': "ko-KR",
    '!jp': "ja-JP"
};

var channels;
if ("channel" in qs) {
channels = [qs['channel']], // Channels to initially join
{'fraction_non_alphanumeric': 0.20564686051411715, 'fraction_numerical': 0.004214075010535188, 'mean_word_length': 1.9899244332493702, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '2070705', 'n_tokens_mistral': 816, 'n_tokens_neox': 791, 'n_words': 171}