<commit_before>
function makeData() {
  "use strict";

  return [makeRandomData(50), makeRandomData(50)];

}

function run(div, data, Plottable) {
  "use strict";

  var svg = div.append("svg").attr("height", 500);

  var dataseries = data[0].slice(0, 20);

  var xScale = new Plottable.Scale.Linear();
  var xAxis = new Plottable.Axis.Numeric(xScale, "bottom");

  var yScale = new Plottable.Scale.Linear();
  var yAxis = new Plottable.Axis.Numeric(yScale, "left");

  var barPlot = new Plottable.Plot.VerticalBar(xScale, yScale).addDataset(dataseries);
  var gridlines = new Plottable.Component.Gridlines(xScale, yScale);
  var renderGroup = gridlines.merge(barPlot);
  var title = new Plottable.Component.TitleLabel("reset");

  var chart = new Plottable.Component.Table([
                                            [null, title],
                                            [yAxis, renderGroup],
                                            [null,  xAxis]]).renderTo(svg);

  //callbacks
  var dragBox = new Plottable.Interaction.XYDragBox().resizeEnabled(true);
  window.dragBox = dragBox;
  var cb_drag = function(start, end) {
    var minX = Math.min(start.x, end.x);
    var maxX = Math.max(start.x, end.x);
    var minY = Math.min(start.y, end.y);
    var maxY = Math.max(start.y, end.y);<commit_msg>[minor] remove window ref from a quicktest<commit_after>
function makeData() {
  "use strict";

  return [makeRandomData(50), makeRandomData(50)];

}

function run(div, data, Plottable) {
  "use strict";

  var svg = div.append("svg").attr("height", 500);

  var dataseries = data[0].slice(0, 20);

  var xScale = new Plottable.Scale.Linear();
  var xAxis = new Plottable.Axis.Numeric(xScale, "bottom");

  var yScale = new Plottable.Scale.Linear();
  var yAxis = new Plottable.Axis.Numeric(yScale, "left");

  var barPlot = new Plottable.Plot.VerticalBar(xScale, yScale).addDataset(dataseries);
  var gridlines = new Plottable.Component.Gridlines(xScale, yScale);
  var renderGroup = gridlines.merge(barPlot);
  var title = new Plottable.Component.TitleLabel("reset");

  var chart = new Plottable.Component.Table([
                                            [null, title],
                                            [yAxis, renderGroup],
                                            [null,  xAxis]]).renderTo(svg);

  //callbacks
  var dragBox = new Plottable.Interaction.XYDragBox().resizeEnabled(true);
  var cb_drag = function(start, end) {
    var minX = Math.min(start.x, end.x);
    var maxX = Math.max(start.x, end.x);
    var minY = Math.min(start.y, end.y);
    var maxY = Math.max(start.y, end.y);
{'fraction_non_alphanumeric': 0.13707521954944635, 'fraction_numerical': 0.008400152730049638, 'mean_word_length': 2.7375178316690443, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3839329', 'n_tokens_mistral': 871, 'n_tokens_neox': 830, 'n_words': 191}