<commit_before>// ===============================================================
// Global constants
// ===============================================================
var STORAGE = chrome.storage.local;
var OPTS_PREFIX = 'opts:';
var JOEQUERY_TWILIO_URL = 'http://twilio.joequery.me/sms';
var ENTER_KEYCODE = 13;
var TOURNEY_NAME = (function(){
    // Only applicable on challonge pages
    if(document.URL.search('challonge') == -1 )
        return '';
    else
        return document.querySelector('#title').textContent.trim();
})();
var NAMESPACE = TOURNEY_NAME + ':'
var DEFAULT_MESSAGE_TEMPLATE_OPTIONS = [
    "{{player1}} vs {{player2}} is starting now.",
    "{{player1}} vs {{player2}} is next. Head to your station",
    "{{player1}} vs {{player2}} has been delayed.",
];

// ===============================================================
// JS Utilities
// ===============================================================
var arrays_are_equal = function(a, b) {
    if (a === b) return true;
    if (a == null || b == null) return false;
    if (a.length != b.length) return false;
    for (var i = 0; i < a.length; ++i) {
        if (a[i] !== b[i]) return false;
    }
    return true;
};

var endswith = function(str, suffix) {
        return str.indexOf(suffix, str.length - suffix.length) !== -1;
};
<commit_msg>Ensure default template options work correctly<commit_after>// ===============================================================
// Global constants
// ===============================================================
var STORAGE = chrome.storage.local;
var OPTS_PREFIX = 'opts:';
var JOEQUERY_TWILIO_URL = 'http://twilio.joequery.me/sms';
var ENTER_KEYCODE = 13;
var TOURNEY_NAME = (function(){
    // Only applicable on challonge pages
    if(document.URL.search('challonge') == -1 )
        return '';
    else
        return document.querySelector('#title').textContent.trim();
})();
var NAMESPACE = TOURNEY_NAME + ':'
var DEFAULT_MESSAGE_TEMPLATE_OPTIONS = [
    {
        'label': 'Match starting now',
        'template': "{{player1}} vs {{player2}} is starting now."
    },
    {
        'label': 'Match up next',
        'template': "{{player1}} vs {{player2}} is next. Head to your station"
    },
    {
        'label': 'Match delayed',
        'template': "{{player1}} vs {{player2}} has been delayed."
    }
];

// ===============================================================
// JS Utilities
// ===============================================================
var arrays_are_equal = function(a, b) {
    if (a === b) return true;
    if (a == null || b == null) return false;
    if (a.length != b.length) return false;
    for (var i = 0; i < a.length; ++i) {
        if (a[i] !== b[i]) return false;
    }
    return true;
};

var endswith = function(str, suffix) {
        return str.indexOf(suffix, str.length - suffix.length) !== -1;
};

{'fraction_non_alphanumeric': 0.31633714880332986, 'fraction_numerical': 0.007630939993062782, 'mean_word_length': 3.6970684039087947, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2443794', 'n_tokens_mistral': 869, 'n_tokens_neox': 840, 'n_words': 221}