<commit_before>//function traverse(self, config, path, document){
//	
//}
window.absolute_paths = [];
window.paths_in_process = [];
window.branch = null;
window.project = null;
function resolved(path){
	remove(path);
	window.absolute_paths.push(path);
	if (window.paths_in_process.length == 0){
		done();
	}
}

function done(){
	var UI = require("ui");
	var li = [];
	for (var i = 0; i < window.absolute_paths.length; i++){
		var segments = [];
		var path = window.absolute_paths[i];
		for (var j = 0; j < path.length; j++){
			segments.push("<a href='/#/repositories/" + window.project.getId() + "/branches/" + window.branch.getId() + "/nodes/" +path[j]['_doc']+"' target='_blank'>"+path[j]['title']+"</a>");
		}
		li.push('<li>'+segments.join(' / ')+'</li>');
	}
	var crumbs = '<ul>'+li.join(' ')+'</ul>';
	UI.showPopupModal({
        "title": "This element is used in the folling paths",
        "body": crumbs
    }, function(modalDiv) {
        // TODO: add any post-render logic here to manipulate the modal div<commit_msg>Finalising breadcrumbs<commit_after>//function traverse(self, config, path, document){
//	
//}
window.absolute_paths = [];
window.paths_in_process = [];
window.branch = null;
window.project = null;
function resolved(path){
	remove(path);
	window.absolute_paths.push(path);
	if (window.paths_in_process.length == 0){
		done();
	}
}

function done(){
	var UI = require("ui");
	var li = [];
	var paths = window.absolute_paths.reverse();
	for (var i = 0; i < window.absolute_paths.length; i++){
		var segments = [];
		var path = window.absolute_paths[i];
		for (var j = 0; j < path.length; j++){
			segments.push("<a href='/#/repositories/" + window.project.getId() + "/branches/" + window.branch.getId() + "/nodes/" +path[j]['_doc']+"' target='_blank'>"+path[j]['title']+"</a>");
		}
		li.push('<li>'+segments.join(' / ')+'</li>');
	}
	var crumbs = '<ul>'+li.join(' ')+'</ul>';
	UI.showPopupModal({
        "title": "This element is used in the folling paths",
        "body": crumbs
    }, function(modalDiv) {
        // TODO: add any post-render logic here to manipulate the modal div
{'fraction_non_alphanumeric': 0.21202082347373402, 'fraction_numerical': 0.002839564600094652, 'mean_word_length': 3.9277389277389276, 'pattern_counts': {'":': 4, '<': 19, '<?xml version=': 0, '>': 15, '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': '3295999', 'n_tokens_mistral': 758, 'n_tokens_neox': 732, 'n_words': 169}