<commit_before><html>
<head>
<title>Lineage - Family tree visualization tool in D3</title>

  <link rel="stylesheet" type="text/css" href="css/style.css">
  <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="css/bootstrap-responsive.min.css">

  <script src="https://d3js.org/d3.v4.min.js"></script>
  <script src="js/jquery-1.11.0.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/lineage.js"></script>

  <script>
    var lineage = null;
    var menuStatus = false;
    function start() {
      $.getJSON("config.json", function(config) {
          config.startYear = typeof(startYear) === 'undefined' ? config.startYear : startYear;
          lineage = new Lineage;
          lineage(config);
          lineage.loadJson(config.data);
      });
      }

    function toggleMenu() {
      menuStatus = !menuStatus;
      menu = d3.select('#menu');
      left = menuStatus ? '0px' : '-341px';
      menu.transition().duration(500).style('left', left);
    }

    const urlParams = new URLSearchParams(window.location.search);
    const startYear = parseInt(urlParams.get('startYear'));

 </script>

</head>
<body onLoad="start()">
  <div id="menu">
    <button class="toggle__button" onClick="toggleMenu()">☰</button>
    <div class="options">
      <h1><a href="http://github.com/bengarvey/lineage">Lineage</a></h1>
      <div class="checkbox">
        <label class="options__label">
          <input type="checkbox" class="checkbox-lg" id="musicOn"> Music
        </label>
      </div>
      <div class="checkbox">
        <label type="options__label">
          <input type="checkbox" class="checkbox-lg" id="nightModeOn"> Night Mode
        </label>
      </div>
    </div>
    <div class="views">
      <button class="btn btn-default view__button" onClick="lineage.setMode('tree');">Tree</button>
      <button class="btn btn-default view__button" onClick="lineage.setMode('timeline');">Timeline</button>
      <button class="btn btn-default view__button" onClick="lineage.setMode('cluster');">Cluster</button>
    </div>
    <div class="time">
      <button class="btn btn-default time__button" id="firstButton"
        onClick="lineage.setYear(1800)">First</button>
      <button class="btn btn-default time__button" id="playButton"
        onClick="lineage.setYearIncrement(1);lineage.playMusic();">Play</button>
      <button class="btn btn-default time__button" id="lastButton"
        onClick="lineage.setYear(2014)">Last</button>
    </div>
    <input id="search" class="form-control input-lg" value="">
  </div>
  <div id="year"></div>
  <canvas height="1000" width="1000"></canvas>
  <div id="memberDetails">
    <div id="name"></div>
  </div>
</body>
</html>

<commit_msg>made it work for the case where we don't pass in a year<commit_after><html>
<head>
<title>Lineage - Family tree visualization tool in D3</title>

  <link rel="stylesheet" type="text/css" href="css/style.css">
  <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="css/bootstrap-responsive.min.css">

  <script src="https://d3js.org/d3.v4.min.js"></script>
  <script src="js/jquery-1.11.0.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/lineage.js"></script>

  <script>
    var lineage = null;
    var menuStatus = false;
    function start() {
      $.getJSON("config.json", function(config) {
          config.startYear = isNaN(startYear) ? config.startYear : startYear;
          lineage = new Lineage;
          lineage(config);
          lineage.loadJson(config.data);
      });
      }

    function toggleMenu() {
      menuStatus = !menuStatus;
      menu = d3.select('#menu');
      left = menuStatus ? '0px' : '-341px';
      menu.transition().duration(500).style('left', left);
    }

    const urlParams = new URLSearchParams(window.location.search);
    const startYear = parseInt(urlParams.get('startYear'));

 </script>

</head>
<body onLoad="start()">
  <div id="menu">
    <button class="toggle__button" onClick="toggleMenu()">☰</button>
    <div class="options">
      <h1><a href="http://github.com/bengarvey/lineage">Lineage</a></h1>
      <div class="checkbox">
        <label class="options__label">
          <input type="checkbox" class="checkbox-lg" id="musicOn"> Music
        </label>
      </div>
      <div class="checkbox">
        <label type="options__label">
          <input type="checkbox" class="checkbox-lg" id="nightModeOn"> Night Mode
        </label>
      </div>
    </div>
    <div class="views">
      <button class="btn btn-default view__button" onClick="lineage.setMode('tree');">Tree</button>
      <button class="btn btn-default view__button" onClick="lineage.setMode('timeline');">Timeline</button>
      <button class="btn btn-default view__button" onClick="lineage.setMode('cluster');">Cluster</button>
    </div>
    <div class="time">
      <button class="btn btn-default time__button" id="firstButton"
        onClick="lineage.setYear(1800)">First</button>
      <button class="btn btn-default time__button" id="playButton"
        onClick="lineage.setYearIncrement(1);lineage.playMusic();">Play</button>
      <button class="btn btn-default time__button" id="lastButton"
        onClick="lineage.setYear(2014)">Last</button>
    </div>
    <input id="search" class="form-control input-lg" value="">
  </div>
  <div id="year"></div>
  <canvas height="1000" width="1000"></canvas>
  <div id="memberDetails">
    <div id="name"></div>
  </div>
</body>
</html>


{'fraction_non_alphanumeric': 0.18094046129089933, 'fraction_numerical': 0.012515644555694618, 'mean_word_length': 3.5739983646770237, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, 'https://': 2, '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': '441293', 'n_tokens_mistral': 1828, 'n_tokens_neox': 1767, 'n_words': 337}