<commit_before>/***
 * This file is where all the general purpose, reusable code should go!
***/
/* This function can be used to inject scripts into pages. It returns the created <script> element. */
/* The reason we make it a global function even though it's in the below namespace is because outside JavaScript files might need to use this function after this function loads, but before the namespace is loaded. */
window.includeFunc = function(path) {
    /* Create a script tag */
    var scriptTag = document.createElement("script");

    /* Set the new script tag's src attribute to the location of the script that we want to include */
    scriptTag.src = path;

    /* Append the new script tag to the page. */
    document.body.appendChild(scriptTag);

    /* Return the new script tag. */
    return scriptTag;
};

/* Function wrapper to create this.*/
window.Contest_Judging_System = (function() {

    /* jQuery and Firebase are both dependencies for this project. If we don't have them, exit the function immediately. */
    /* TODO: If a project dependency doesn't exist, go ahead an inject it. */
    if (!window.jQuery || !window.Firebase || !window.KA_API) {
        console.log("[this.Namespace] Needs jQuery, Firebase, and KA_API");
        return;
    }

    /* Return an object containing everything that we want in this namespace. */
    return {
        Firebase: window.Firebase,
        include: includeFunc,
        /***
         * logError()
         * Logs errors to the Javascript console.
         * @author <NAME> (2015)
         * @param {Any} error: The error to log to the Javascript console.
        ***/
        logError: function(error) {
            console.error(error);
        },
        /***
         * getGETParams()
         * Extracts the GET params from the URL.
         * @author <NAME> (2015)
         * @returns {Object} params: An object containing all the GET parameters and their values.
        ***/
        getGETParams: function() {<commit_msg>Minor change<commit_after>/***
 * This file is where all the general purpose, reusable code should go!
***/
/* This function can be used to inject scripts into pages. It returns the created <script> element. */
/* The reason we make it a global function even though it's in the below namespace is because outside JavaScript files might need to use this function after this function loads, but before the namespace is loaded. */
window.includeFunc = function(path) {
    /* Create a script tag */
    var scriptTag = document.createElement("script");

    /* Set the new script tag's src attribute to the location of the script that we want to include */
    scriptTag.src = path;

    /* Append the new script tag to the page. */
    document.body.appendChild(scriptTag);

    /* Return the new script tag. */
    return scriptTag;
};

/* Function wrapper to create this.*/
window.Contest_Judging_System = (function() {

    /* jQuery and Firebase are both dependencies for this project. If we don't have them, exit the function immediately. */
    /* TODO: If a project dependency doesn't exist, go ahead an inject it. */
    if (!window.jQuery || !window.Firebase || !window.KA_API) {
        console.log("[this.Namespace] Needs jQuery, Firebase, and KA_API");
        return;
    }

    /* Return an object containing everything that we want in this namespace. */
    return {
        Firebase: window.Firebase,
        include: window.includeFunc,
        /***
         * logError()
         * Logs errors to the Javascript console.
         * @author <NAME> (2015)
         * @param {Any} error: The error to log to the Javascript console.
        ***/
        logError: function(error) {
            console.error(error);
        },
        /***
         * getGETParams()
         * Extracts the GET params from the URL.
         * @author <NAME> (2015)
         * @returns {Object} params: An object containing all the GET parameters and their values.
        ***/
        getGETParams: function() {
{'fraction_non_alphanumeric': 0.09960059910134798, 'fraction_numerical': 0.00399400898652022, 'mean_word_length': 2.574487065120428, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1856332', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1018, 'n_words': 449}