<commit_before><!-- jsCIM external dependencies -->
<link href="{{ STATIC_URL }}cog/jquery/css/jquery-ui/redmond/jquery-ui-1.8.6.custom.css" media="screen" rel="stylesheet" type="text/css" />

<!-- Custom JS to invoke the CIM viewer -->
<script language="JavaScript">

        /* only load these links if the ES-DOC functionality is needed */
        var JS_PATH     = "http://purl.org/org/es-doc/prod/plugins/jscim-min.js";
        var CSS_PATH    = "http://purl.org/org/es-doc/prod/plugins/jscim-min.css";
        var LOADED_EXTERNAL_LINKS = 0;

        /* loads the CIM libraries only once */
        /* runs a callback_fn _after_ the libraries have loaded */
        function load_cim_libraries(callback_fn) {

            if (LOADED_EXTERNAL_LINKS==0) {

                var js_link = document.createElement("script");
                js_link.setAttribute("type","text/javascript");
                js_link.setAttribute("src",JS_PATH);

                var css_link = document.createElement("link");
                css_link.setAttribute("type","text/css");
                css_link.setAttribute("rel","stylesheet");
                css_link.setAttribute("media","screen");
                css_link.setAttribute("href",CSS_PATH)

                var first_script = document.getElementsByTagName("script")[0]
                if (callback_fn) {
                    js_link.addEventListener("load",
                        function() {
                            callback_fn();
                        },
                        false);
                }
                first_script.parentNode.insertBefore(css_link,first_script);
                first_script.parentNode.insertBefore(js_link,first_script);

                LOADED_EXTERNAL_LINKS=1;

            }
            else if (callback_fn) {
                callback_fn();<commit_msg>added IE check in js code to launch CIM Viewer<commit_after><!-- jsCIM external dependencies -->
<link href="{{ STATIC_URL }}cog/jquery/css/jquery-ui/redmond/jquery-ui-1.8.6.custom.css" media="screen" rel="stylesheet" type="text/css" />

<!-- Custom JS to invoke the CIM viewer -->
<script language="JavaScript">

        /* only load these links if the ES-DOC functionality is needed */
        var JS_PATH     = "http://purl.org/org/es-doc/prod/plugins/jscim-min.js";
        var CSS_PATH    = "http://purl.org/org/es-doc/prod/plugins/jscim-min.css";
        var LOADED_EXTERNAL_LINKS = 0;

        /* loads the CIM libraries only once */
        /* runs a callback_fn _after_ the libraries have loaded */
        function load_cim_libraries(callback_fn) {

            if (LOADED_EXTERNAL_LINKS==0) {

                var js_link = document.createElement("script");
                js_link.setAttribute("type","text/javascript");
                js_link.setAttribute("src",JS_PATH);

                var css_link = document.createElement("link");
                css_link.setAttribute("type","text/css");
                css_link.setAttribute("rel","stylesheet");
                css_link.setAttribute("media","screen");
                css_link.setAttribute("href",CSS_PATH)

                var first_script = document.getElementsByTagName("script")[0]
                if (callback_fn) {
                    /* check to see which fns are supported (IE is often non-standard) */
                    if (!js_link.addEventListener) {
                        js_link.attachEvent("onload",
                            function() {
                                callback_fn();
                            }
                        );
                    }
                    else {                   
                        js_link.addEventListener("load",
                            function() {
                                callback_fn();
                            },
                            false);
                    }
                }
                first_script.parentNode.insertBefore(css_link,first_script);
                first_script.parentNode.insertBefore(js_link,first_script);

                LOADED_EXTERNAL_LINKS=1;

            }
            else if (callback_fn) {
                callback_fn();
{'fraction_non_alphanumeric': 0.1132391668661719, 'fraction_numerical': 0.0033516878142207324, 'mean_word_length': 1.6079900124843944, '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': '2210425', 'n_tokens_mistral': 1126, 'n_tokens_neox': 1074, 'n_words': 195}