<commit_before>(function(){
    var SCRIPTS = ['utils.js','config.js','endpoint.js','api.js','kiwilib.js'];
    function loadScript(url){ document.write('<script src="'+url+'"></script>'); }
    if( location.hostname==='localhost' && location.port==='1337' ) {
        var origin = 'http://localhost:8000';
        SCRIPTS.forEach(function(js){
          loadScript( origin + '/' + js );
        });
    }
    else {
        var version = '0.0.1';
        var origin = [].slice.call(document.querySelectorAll('script')).pop().src.replace(/\/kiwilib.js.*/,'');
        loadScript( origin + '/'+version+'/all.min.js' );<commit_msg>make loader.js load library from localhost if 1330<=location.port<=1339<commit_after>(function(){
    var SCRIPTS = ['utils.js','config.js','endpoint.js','api.js','kiwilib.js'];
    function loadScript(url){ document.write('<script src="'+url+'"></script>'); }
    var port = parseInt(location.port,10);
    if( location.hostname==='localhost' && port>1330 && port<1339 ) {
        var origin = 'http://localhost:8000';
        SCRIPTS.forEach(function(js){
          loadScript( origin + '/' + js );
        });
    }
    else {
        var version = '0.0.1';
        var origin = [].slice.call(document.querySelectorAll('script')).pop().src.replace(/\/kiwilib.js.*/,'');
        loadScript( origin + '/'+version+'/all.min.js' );
{'fraction_non_alphanumeric': 0.22075055187637968, 'fraction_numerical': 0.026490066225165563, 'mean_word_length': 3.1717791411042944, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 8, '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': '6835185', 'n_tokens_mistral': 449, 'n_tokens_neox': 438, 'n_words': 67}