<commit_before>var epeek_theme_tree_ensembl_genetree_annot = function() {
    "use strict";

    var height = 30;

    var tree = epeek.tree();
    var annot = epeek.track();

    var theme = function (ta, div) {

        var label = epeek.tree.label.text()
            .text(function (node) {
                if (node.children) {
                    return "";
                } else {
                    return node.id.accession
                }
            })
            .fontsize(10)
	    .height(height);

	var rest = epeek.eRest();

	var gene_tree_id = "ENSGT00390000003602";
	var gene_tree_url = rest.url.gene_tree ({
	    id : gene_tree_id,
	    aligned : true
	});


	d3.json('http://127.0.0.1:1337/themes/ensembl_genetree_annot/ENSGT00390000003602.json', function (err, resp) {
	    deploy_vis(resp);
	});

	// rest.call ({url : gene_tree_url,
	// 	    success : function (resp) {
	// 		deploy_vis(resp)
	// 	    }
	// 	   });

	// TREE SIDE
	var deploy_vis = function (tree_obj) {
	    tree
		.data (tree_obj.tree)
		.layout (epeek.tree.layout.vertical()
			 .width(430)
			 .scale(false)
			)
		.label (label);

	    var reduce_row = function (row) {
		var data = [];
		var curr = {
		    streak : 0,
		    val    : undefined,
		    start  : 1
		};
		var curr_streak = 0;<commit_msg>fixing path to json file<commit_after>var epeek_theme_tree_ensembl_genetree_annot = function() {
    "use strict";

    var height = 30;

    var tree = epeek.tree();
    var annot = epeek.track();

    var theme = function (ta, div) {

        var label = epeek.tree.label.text()
            .text(function (node) {
                if (node.children) {
                    return "";
                } else {
                    return node.id.accession
                }
            })
            .fontsize(10)
	    .height(height);

	var rest = epeek.eRest();

	var gene_tree_id = "ENSGT00390000003602";
	var gene_tree_url = rest.url.gene_tree ({
	    id : gene_tree_id,
	    aligned : true
	});


	d3.json('/themes/ensembl_genetree_annot/ENSGT00390000003602.json', function (err, resp) {
	    deploy_vis(resp);
	});

	// rest.call ({url : gene_tree_url,
	// 	    success : function (resp) {
	// 		deploy_vis(resp)
	// 	    }
	// 	   });

	// TREE SIDE
	var deploy_vis = function (tree_obj) {
	    tree
		.data (tree_obj.tree)
		.layout (epeek.tree.layout.vertical()
			 .width(430)
			 .scale(false)
			)
		.label (label);

	    var reduce_row = function (row) {
		var data = [];
		var curr = {
		    streak : 0,
		    val    : undefined,
		    start  : 1
		};
		var curr_streak = 0;
{'fraction_non_alphanumeric': 0.13418406805877803, 'fraction_numerical': 0.03402938901778809, 'mean_word_length': 1.8617256637168142, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '2764950', 'n_tokens_mistral': 1057, 'n_tokens_neox': 899, 'n_words': 181}