<commit_before><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
</head>
<body>
	<!-- <script src="http://cdn.rcsb.org/rcsb-pdb/assets/vendor/ngl/ngl.js"></script> -->
    <script src="libs/ngl.js"></script>
    <script>
    	// Drilling down into the molecular information
    	function getPickingMessage(d){
	        var msg;
	        if( d.atom ){
	            msg = "atom: " +
	                d.atom.qualifiedName() +
	                " (" + d.atom.structure.name + ")";
	                console.log('hi');
	        }else if( d.bond ){
	            msg = "bond: " +
	                d.bond.atom1.qualifiedName() + " - " + d.bond.atom2.qualifiedName() +
	                " (" + d.bond.structure.name + ")";
	        }else if( d.volume ){
	            msg = "volume: " +
	                d.volume.value.toPrecision( 3 ) +
	                " (" + d.volume.volume.name + ")";
	        }else{
	            msg = "nothing";
	        }
	        return msg;
	    }

	    // Showing basic information instead
	    function getBasicPickingMessage(d) {
	    	var msg = "atom: " +
	    			d.atom.resname + " at pos: " + d.atom.resno;
	    	return msg;
	    }
    	// onClick
    	function onHover(molData) {
    		if (molData.atom) {
    			console.log(getBasicPickingMessage(molData));
    		} else {
    			console.log("Hovered over unidentified canvas area");
    		}
    	}<commit_msg>ngl: add structure name to the basic info.<commit_after><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
</head>
<body>
	<!-- <script src="http://cdn.rcsb.org/rcsb-pdb/assets/vendor/ngl/ngl.js"></script> -->
    <script src="libs/ngl.js"></script>
    <script>
    	// Drilling down into the molecular information
    	function getPickingMessage(d){
	        var msg;
	        if( d.atom ){
	            msg = "atom: " +
	                d.atom.qualifiedName() +
	                " (" + d.atom.structure.name + ")";
	                console.log('hi');
	        }else if( d.bond ){
	            msg = "bond: " +
	                d.bond.atom1.qualifiedName() + " - " + d.bond.atom2.qualifiedName() +
	                " (" + d.bond.structure.name + ")";
	        }else if( d.volume ){
	            msg = "volume: " +
	                d.volume.value.toPrecision( 3 ) +
	                " (" + d.volume.volume.name + ")";
	        }else{
	            msg = "nothing";
	        }
	        return msg;
	    }

	    // Showing basic information instead
	    function getBasicPickingMessage(d) {
	    	var msg = "atom: " +
	    			d.atom.resname + " at pos: " + 
	    			d.atom.resno + 
	    			" (" + d.atom.structure.name + ")";
	    	return msg;
	    }
    	// onClick
    	function onHover(molData) {
    		if (molData.atom) {
    			console.log(getBasicPickingMessage(molData));
    		} else {
    			console.log("Hovered over unidentified canvas area");
    		}
    	}
{'fraction_non_alphanumeric': 0.1596113809854268, 'fraction_numerical': 0.002775850104094379, 'mean_word_length': 1.5764075067024128, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '1966411', 'n_tokens_mistral': 1053, 'n_tokens_neox': 929, 'n_words': 166}