<commit_before><!doctype html>
<meta charset="utf-8">

<script src="d3.js"></script>
<script src="d3plus.js"></script>

<div id="viz"></div>

<script>
  d3.json("data2.json",function(rawdata){
  var data=rawdata.filter(function(d){return d["category"]!="self"})
  var months = {};
  for (var i = 0; i < data.length; i++) {
  var num = data[i]['month'];
  months[num] = months[num] ? months[num] + 1 : 1;
  }
  nr_months=Object.keys(months).length
  data.forEach(function(d){
  	d['monthly out']=d['out']/nr_months
  	d['monthly in']=d['in']/nr_months
  	d['monthly net']=d['value']/nr_months
  })
  
  var id="tx";
  var visualization = d3plus.viz()
    .container("#viz")
    .data(data)
    .type("tree_map")
    .id({"value":["type","category","tx"]})
    .depth(2)
    //.color("category")<commit_msg>upd dis<commit_after><!doctype html>
<meta charset="utf-8">

<script src="d3.js"></script>
<script src="d3plus.js"></script>

<div id="viz"></div>

<script>
  d3.json("data2.json",function(rawdata){
  var data=rawdata.filter(function(d){return d["category"]!="self"})
  var months = {};
  for (var i = 0; i < data.length; i++) {
  var num = data[i]['month'];
  months[num] = months[num] ? months[num] + 1 : 1;
  }
  nr_months=Object.keys(months).length
  data.forEach(function(d){
  	d['monthly out']=d['out']/nr_months
  	d['monthly in']=d['in']/nr_months
  	d['monthly net']=d['value']/nr_months
  })
  
  var id="tx";
  var visualization = d3plus.viz()
    .container("#viz")
    .data(data)
    .type("tree_map")
    .id({"value":["type","category","tx"]})
    .depth(1)
    //.color("category")
{'fraction_non_alphanumeric': 0.23815461346633415, 'fraction_numerical': 0.012468827930174564, 'mean_word_length': 4.279605263157895, 'pattern_counts': {'":': 2, '<': 23, '<?xml version=': 0, '>': 21, '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': '6568719', 'n_tokens_mistral': 665, 'n_tokens_neox': 638, 'n_words': 102}