<commit_before><html>
<head>
  <style>
    .popup {
      position: absolute;
      overflow: hidden;
      z-index: 10;
    }
     
    #controls {
      left: 0;
      top: 0;
      z-index: 11;
      padding: 5px;
    }
     
    #console {
      bottom: 0;
      left: 0;
      z-index: 100;
    }
  </style>
  <script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>

<div id="controls" class="popup">
  <label for="user">User:</label>
  <input type="text" id="user">
  <label for="repo">Repo:</label>
  <select id="repo">
    <option>Select repo...</option>
  </select>
</div>
<div id="canvas"></div>
<div id="console" class="popup"></div>

<script type="text/javascript">
'use strict';

var ghcs = {users:{}};


var log = (function() {
  var logCont = d3.select("#console")
      .append("ul");  
  return function(msg) {
    logCont.append("li").text(msg);
  }
})();

var w = document.width,
    h = document.height,
    svg = d3.select("#canvas")
      .append("svg")
      .attr("width", w)
      .attr("height", h),
    gitData;

function loadGitData() {
  d3.json("", function(data) {
  })
}

function parseRepos(data) {
  var opts = d3.select("#repo").selectAll("option.ritem"),
      lbl = d3.selectAll("label[for='repo']");
  
  lbl.text("Repo:");
  
  opts.remove();
  if (data) {
    if (!ghcs.users.hasOwnProperty(ghcs.login) || !ghcs.users[ghcs.login].hasOwnProperty("repos")) {
      ghcs.users[ghcs.login].repos = data.filter(function(d) { return !d.private; }).map(function(d) { return { 
        id: d.id, 
        name : d.name, 
        url : d.url
      }; });
    }
    
    opts.data(ghcs.users[ghcs.login].repos)
      .enter()
      .append("option")
      .attr("class", "ritem");      
    lbl.text("Repo (" + ghcs.users[ghcs.login].repos.length + "):");<commit_msg>fixed<commit_after><html>
<head>
  <style>
    .popup {
      position: absolute;
      overflow: hidden;
      z-index: 10;
    }
     
    #controls {
      left: 0;
      top: 0;
      z-index: 11;
      padding: 5px;
    }
     
    #console {
      bottom: 0;
      left: 0;
      z-index: 100;
    }
  </style>
  <script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>

<div id="controls" class="popup">
  <label for="user">User:</label>
  <input type="text" id="user">
  <label for="repo">Repo:</label>
  <select id="repo">
    <option>Select repo...</option>
  </select>
</div>
<div id="canvas"></div>
<div id="console" class="popup"></div>

<script type="text/javascript">
'use strict';

var ghcs = {users:{}};


var log = (function() {
  var logCont = d3.select("#console")
      .append("ul");  
  return function(msg) {
    logCont.append("li").text(msg);
  }
})();

var w = document.width,
    h = document.height,
    svg = d3.select("#canvas")
      .append("svg")
      .attr("width", w)
      .attr("height", h),
    gitData;

function loadGitData() {
  d3.json("", function(data) {
  })
}

function parseRepos(data) {
  var opts = d3.select("#repo").selectAll("option.ritem"),
      lbl = d3.selectAll("label[for='repo']");
  
  lbl.text("Repo:");
  
  opts.remove();
  if (data) {
    if (!ghcs.users.hasOwnProperty(ghcs.login) || !ghcs.users[ghcs.login].hasOwnProperty("repos")) {
      ghcs.users[ghcs.login].repos = data.filter(function(d) { return !d.private; }).map(function(d) { return { 
        id: d.id, 
        name : d.name, 
        url : d.url
      }; });
    }
    
    opts.data(ghcs.users[ghcs.login].repos)
      .enter()
      .append("option")
      .text(function(d) {return d.name})
      .attr("class", "ritem");      
    lbl.text("Repo (" + ghcs.users[ghcs.login].repos.length + "):");
{'fraction_non_alphanumeric': 0.2098055327307587, 'fraction_numerical': 0.010955902492467817, 'mean_word_length': 2.56640625, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '851081', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1361, 'n_words': 241}