<commit_before>var margin = {top:50,left:50};
var nodes = [], linksArray = [],nodeIds = [], links = [],uniqueLinks=[], nodesObject = new Object;
var height = 800;
var minBandX = 200;
var xLevel = 0, yLevel = 0;

var y = [];
var drawPath = d3.line().curve(d3.curveCardinal );

var strokeWidth = d3.scaleLinear().range([3,50]);

d3.json("assets/data2.json", function(error, data) { 

    var jsonData = data.paths;        

    Object.keys(jsonData).forEach(function(key){                                   
        var path = jsonData[key];

        var link = [];
        path.forEach(function(p){            
            if(p.pageid != undefined){
                p.id = p.pageid;
                if(!nodeIds.includes(p.pageid)){
                    nodeIds.push(p.pageid);
                    var tmp = new Object;
                    tmp.id = p.pageid;
                    tmp.highlight = p.highlight;
                    tmp.label = p.label;
                    tmp.type = p.type;
                    tmp.cnt = 1;
                    nodes.push(tmp);                
                }else{
                    nodes.forEach(function(n){
                        if(n.id==p.pageid){
                            n.cnt = n.cnt + 1;
                            n.highlight = n.highlight || p.highlight;
                        }
                    })
                }
                link.push(p.pageid);
            }else if(p.decisionid != undefined){
                p.id = p.decisionid;
                if(!nodeIds.includes(p.decisionid)){<commit_msg>data changed<commit_after>var margin = {top:50,left:50};
var nodes = [], linksArray = [],nodeIds = [], links = [],uniqueLinks=[], nodesObject = new Object;
var height = 800;
var minBandX = 200;
var xLevel = 0, yLevel = 0;

var y = [];
var drawPath = d3.line().curve(d3.curveCardinal );

var strokeWidth = d3.scaleLinear().range([3,50]);

d3.json("assets/data.json", function(error, data) { 

    var jsonData = data.paths;        

    Object.keys(jsonData).forEach(function(key){                                   
        var path = jsonData[key];

        var link = [];
        path.forEach(function(p){            
            if(p.pageid != undefined){
                p.id = p.pageid;
                if(!nodeIds.includes(p.pageid)){
                    nodeIds.push(p.pageid);
                    var tmp = new Object;
                    tmp.id = p.pageid;
                    tmp.highlight = p.highlight;
                    tmp.label = p.label;
                    tmp.type = p.type;
                    tmp.cnt = 1;
                    nodes.push(tmp);                
                }else{
                    nodes.forEach(function(n){
                        if(n.id==p.pageid){
                            n.cnt = n.cnt + 1;
                            n.highlight = n.highlight || p.highlight;
                        }
                    })
                }
                link.push(p.pageid);
            }else if(p.decisionid != undefined){
                p.id = p.decisionid;
                if(!nodeIds.includes(p.decisionid)){
{'fraction_non_alphanumeric': 0.1292604501607717, 'fraction_numerical': 0.01382636655948553, 'mean_word_length': 1.1785714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6322486', 'n_tokens_mistral': 933, 'n_tokens_neox': 838, 'n_words': 162}