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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: auto;
  position: relative;
  width: 960px;
}

</style>

<script src="https://d3js.org/d3.v4.js"></script>
<body>
    <script>

    var errorsBySite = d3.csv("http://ladvien.github.io/files/errors-by-site.csv", function (data) {

      var width = 500;
      var height = 500;

      var widthScale = d3.scale.linear()
            .domain([0, d3.max(d.june)])
            .range([0, width])

      var colorScale = d3.scale()
            .domain([0,60])
            .range(["red", "green"])

      var canvas = d3.select("body")
            .append("svg")
            .attr("width", 500)
            .attr("height", 500);

      var bars = canvas.selectAll("rect")
          .data(data)
          .enter()
              .append("rect")
              .attr("width", function (d){return widthScale(d);})
              .attr("height", 50)
              .attr("y", function (d,i){return i * 50;})
              .attr("fill", "blue");

      canvas.selectAll("text")
          .data(data)
          .enter()
              .append("text")
              .attr("fill", "white")
              .attr("y", function (d,i){return i * 50 + 25;})
              .text(function(d){return d.site;});<commit_msg>Editing<commit_after><!DOCTYPE html>
<meta charset="utf-8">
<style>

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: auto;
  position: relative;
  width: 960px;
}

</style>

<script src="https://d3js.org/d3.v4.js"></script>
<body>
    <script>

    var errorsBySite = d3.csv("http://ladvien.github.io/files/errors-by-site.csv", function (data) {

      var width = 500;
      var height = 500;

      var widthScale = d3.scaleLinear()
            .domain([0, d3.max(d.june)])
            .range([0, width])

      var colorScale = d3.scale()
            .domain([0,60])
            .range(["red", "green"])

      var canvas = d3.select("body")
            .append("svg")
            .attr("width", 500)
            .attr("height", 500);

      var bars = canvas.selectAll("rect")
          .data(data)
          .enter()
              .append("rect")
              .attr("width", function (d){return widthScale(d);})
              .attr("height", 50)
              .attr("y", function (d,i){return i * 50;})
              .attr("fill", "blue");

      canvas.selectAll("text")
          .data(data)
          .enter()
              .append("text")
              .attr("fill", "white")
              .attr("y", function (d,i){return i * 50 + 25;})
              .text(function(d){return d.site;});
{'fraction_non_alphanumeric': 0.1849906191369606, 'fraction_numerical': 0.02776735459662289, 'mean_word_length': 1.8482905982905984, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4072425', 'n_tokens_mistral': 935, 'n_tokens_neox': 866, 'n_words': 175}