<commit_before>/**
 * A module for dynamically loading CSS files.
 *
 * Use case: a JS module needs some CSS file to work,
 * but the module may or may not be loaded, depending on configuration.
 * In this case it's preferable to load the CSS only if the module
 * loads, rather than loading the CSS with a tag in the HTML file 
 * regardless of whether the module is loaded.
 * It also saves developers the hassle of manually synchronizing HTML 
 * with loaded modules, which can become a pain as the application scales.
 */
define([], function(){
  return function(url){
    var link = document.createElement("link");
    link.type = "text/css";
    link.rel = "stylesheet";
    link.href = url;
    document.getElementsByTagName("head")[0].appendChild(link);
  }
});<commit_msg>Got loadCSS.js to pass JSLint<commit_after>/*global define, document */

/**
 * A module for dynamically loading CSS files.
 *
 * Use case: a JS module needs some CSS file to work,
 * but the module may or may not be loaded, depending on configuration.
 * In this case it's preferable to load the CSS only if the module
 * loads, rather than loading the CSS with a tag in the HTML file 
 * regardless of whether the module is loaded.
 * It also saves developers the hassle of manually synchronizing HTML 
 * with loaded modules, which can become a pain as the application scales.
 */
define([], function () {
    "use strict";
    return function (url) {
        var link = document.createElement("link");
        link.type = "text/css";
        link.rel = "stylesheet";
        link.href = url;
        document.getElementsByTagName("head")[0].appendChild(link);
    };
});
{'fraction_non_alphanumeric': 0.09425981873111783, 'fraction_numerical': 0.0012084592145015106, 'mean_word_length': 3.416, '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': '3772693', 'n_tokens_mistral': 441, 'n_tokens_neox': 427, 'n_words': 209}