<commit_before>// Given nodes, make circles(dots) and force simulation)
function d3_nodesToDots(authors_nodes, pubs_nodes,keywords_nodes, author_links){     
	var R1 = 450, 
		R2 = 500;
	pubs_nodes = addDotPosition(R1,R2,pubs_nodes);
	
	var authorLines = d3.select("#visKate")
		.append("g")
		.selectAll(".authorLinks")
		.data(author_links)
		.enter().append('line')
		 .attr('marker-end', 'url()')
		.attr("stroke", "#9ad5fe")
		.attr('stroke-opacity', 0.5);
	
	var authorDots = d3.select("#visKate")
    	.append("g")
    	.selectAll(".author_circles")
		.data(authors_nodes)
    	.enter().append("circle")
    		.attr("r", function(d){return authorNodeRadius(d); })
    		.attr("id", function(d){return d.id+"g"})
    		.attr("class", "authorDots")
    		.style("fill", "#9ad5fe");
	
	d3.select("#visKate")
  		.append('marker')
  		.attr('id', 'arrowhead')
  		.attr('refX', 6+15) // Controls the shift of the arrow head along the path
  		.attr('refY', 2)
  		.attr('markerWidth', 6)
 		.attr('markerHeight', 4)
  		.attr('orient', 'auto')
  		.style('fill', '#9ad5fe')
 		.append('path')
    	.attr('d', 'M 0,0 V 4 L6,2 Z');	
    	
    var pubsByYear = d3.nest()
    	.key(function(d){return d.year})
    	.rollup(function(v){return v.length;})
    	.entries(pubs_nodes);
        
    var pie = d3.pie()
    	.startAngle(-90 * Math.PI/180)
    	.endAngle(-90 * Math.PI/180 + 2*Math.PI)
    	.value(function(d) { return d.value; })
    	.padAngle(.01)
    	.sort(null)<commit_msg>JS updated<commit_after>// Given nodes, make circles(dots) and force simulation)
function d3_nodesToDots(authors_nodes, pubs_nodes,keywords_nodes, author_links){     
	var R1 = 450, 
		R2 = 500;
	pubs_nodes = addDotPosition(R1,R2,pubs_nodes);
	
	var authorLines = d3.select("#visKate")
		.append("g")
		.selectAll(".authorLinks")
		.data(author_links)
		.enter().append('line')
		 .attr('marker-end', 'url()')
		.attr("stroke", "#9ad5fe")
		.attr('stroke-opacity', 0.5);
	
	var authorDots = d3.select("#visKate")
    	.append("g")
    	.selectAll(".author_circles")
		.data(authors_nodes)
    	.enter().append("circle")
    		.attr("r", function(d){return authorNodeRadius(d); })
    		.attr("id", function(d){return d.id+"g"})
    		.attr("class", "authorDots")
    		.style("fill", "#9ad5fe");
	
	d3.select("#visKate")
  		.append('marker')
  		.attr('id', 'arrowhead')
  		.attr('refX', 6+15) // Controls the shift of the arrow head along the path
  		.attr('refY', 2)
  		.attr('markerWidth', 6)
 		.attr('markerHeight', 4)
  		.attr('orient', 'auto')
  		.style('fill', '#9ad5fe')
 		.append('path')
    	.attr('d', 'M 0,0 V 4 L6,2 Z');	
    	
    var pubsByYear = d3.nest()
    	.key(function(d){return d.year})
    	.rollup(function(v){return v.length;})
    	.entries(pubs_nodes);
    	
        
    var pie = d3.pie()
    	.startAngle(-90 * Math.PI/180)
    	.endAngle(-90 * Math.PI/180 + 2*Math.PI)
    	.value(function(d) { return d.value; })
    	.padAngle(.01)
    	.sort(null)
{'fraction_non_alphanumeric': 0.20020154517971112, 'fraction_numerical': 0.03224722875377897, 'mean_word_length': 3.136111111111111, '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': '4584819', 'n_tokens_mistral': 1279, 'n_tokens_neox': 1175, 'n_words': 208}