<commit_before>// Including js files to be used in the web pages
// Add your js source code reference here, rather than in the HTML files

// Find path to Helper.js
var scripts = document.getElementsByTagName('SCRIPT');
var path = '';

if(scripts && scripts.length>0) {
    for(var i in scripts) {
        if(scripts[i].src && scripts[i].src.match(/Helper\.js$/)) {
            path = scripts[i].src.replace(/(.*)Helper\.js$/, '$1');
        }
    }
}
console.log(path);

document.write('<script type="text/javascript" src="' + path + 'NDN.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'WebSocketTransport.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'util/CCNProtocolDTags.js"></script>');
	
document.write('<script type="text/javascript" src="' + path + 'util/CCNTime.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'Name.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'ContentObject.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/DateFormat.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'Interest.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'Key.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'PublisherID.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'PublisherPublicKeyDigest.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'FaceInstance.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'ForwardingEntry.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'Closure.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/DynamicUint8Array.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLEncoder.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLDecoder.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLStructureDecoder.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/DataUtils.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/EncodingUtils.js"></script>');
                
document.write('<script type="text/javascript" src="' + path + 'security/KeyManager.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'securityLib/jsbn.js"></script>');
document.write('<script type="text/javascript" src="' + path + 'securityLib/jsbn2.js"></script>');
document.write('<script type="text/javascript" src="' + path + 'securityLib/rsa.js"></script>');
document.write('<script type="text/javascript" src="' + path + 'securityLib/rsa2.js"></script>');

//document.write('<script type="text/javascript" src="' + path + 'securityLib/sha1.js"></script>');
document.write('<script type="text/javascript" src="' + path + 'securityLib/sha256.js"></script>');
//document.write('<script type="text/javascript" src="' + path + 'securityLib/sha512.js"></script>');
//document.write('<script type="text/javascript" src="' + path + 'securityLib/md5.js"></script>');<commit_msg>Import NDN.js last because it has global objects which need the above to be defined.<commit_after>// Including js files to be used in the web pages
// Add your js source code reference here, rather than in the HTML files

// Find path to Helper.js
var scripts = document.getElementsByTagName('SCRIPT');
var path = '';

if(scripts && scripts.length>0) {
    for(var i in scripts) {
        if(scripts[i].src && scripts[i].src.match(/Helper\.js$/)) {
            path = scripts[i].src.replace(/(.*)Helper\.js$/, '$1');
        }
    }
}
console.log(path);

document.write('<script type="text/javascript" src="' + path + 'WebSocketTransport.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'util/CCNProtocolDTags.js"></script>');
	
document.write('<script type="text/javascript" src="' + path + 'util/CCNTime.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'Name.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'ContentObject.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/DateFormat.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'Interest.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'Key.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'PublisherID.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'PublisherPublicKeyDigest.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'FaceInstance.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'ForwardingEntry.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'Closure.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/DynamicUint8Array.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLEncoder.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLDecoder.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/BinaryXMLStructureDecoder.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/DataUtils.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'encoding/EncodingUtils.js"></script>');
                
document.write('<script type="text/javascript" src="' + path + 'security/KeyManager.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'NDN.js"></script>');

document.write('<script type="text/javascript" src="' + path + 'securityLib/jsbn.js"></script>');
document.write('<script type="text/javascript" src="' + path + 'securityLib/jsbn2.js"></script>');
document.write('<script type="text/javascript" src="' + path + 'securityLib/rsa.js"></script>');
document.write('<script type="text/javascript" src="' + path + 'securityLib/rsa2.js"></script>');

//document.write('<script type="text/javascript" src="' + path + 'securityLib/sha1.js"></script>');
document.write('<script type="text/javascript" src="' + path + 'securityLib/sha256.js"></script>');
//document.write('<script type="text/javascript" src="' + path + 'securityLib/sha512.js"></script>');
//document.write('<script type="text/javascript" src="' + path + 'securityLib/md5.js"></script>');
{'fraction_non_alphanumeric': 0.22600029312619083, 'fraction_numerical': 0.003810640480726953, 'mean_word_length': 5.670576735092864, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 121, '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': '5405197', 'n_tokens_mistral': 2090, 'n_tokens_neox': 2001, 'n_words': 393}