<commit_before>var bubblechart = function (userConfig) {
  d3 = dex.charts.d3.d3v3;
  var chart;

  var defaults = {
    'parent': '#Nvd3_BubbleChartParent',
    'id': 'Nvd3_BubbleChartId',
    'class': 'Nvd3_BubbleChartClass',
    'resizable': true,
    'csv': {
      'header': [],
      'data': []
    },
    'width': "100%",
    'height': "100%",
    'legend': 'right'
  };

  var chart = new dex.component(userConfig, defaults);
  var internalChart;

  chart.render = function render() {
    d3 = dex.charts.d3.d3v3;
    var config = chart.config;
    var csv = config.csv;

    d3.select(config.parent).selectAll("*").remove();

    //dex.console.log("CSV", csv, dex.csv.group(csv, [0]));
    var groups = dex.csv.group(csv, [0]);
    var nvd3Data = groups.map(function (group) {
      //dex.console.log("KEY", group.key, group);
      return {
        'key': group.key,
        'values': group.csv.data.map(function (row) {
          return {'x': +row[1], 'y': +row[2], 'size': +row[3]};
        })
      }
    });

    //dex.console.log("NVDDATA", nvd3Data);

    var nvd3Chart = nv.models.scatterChart()
      .showDistX(true)
      .showDistY(true)
      .useVoronoi(true)
      .color(d3.scale.category10().range())
      .duration(300);

    //nvd3Chart.xAxis.tickFormat(d3.format('.02f'));
    nvd3Chart.yAxis.tickFormat(d3.format('.02f'));
    nvd3Chart.xAxis<commit_msg>Removed prints<commit_after>var bubblechart = function (userConfig) {
  d3 = dex.charts.d3.d3v3;
  var chart;

  var defaults = {
    'parent': '#Nvd3_BubbleChartParent',
    'id': 'Nvd3_BubbleChartId',
    'class': 'Nvd3_BubbleChartClass',
    'resizable': true,
    'csv': {
      'header': [],
      'data': []
    },
    'width': "100%",
    'height': "100%",
    'legend': 'right'
  };

  var chart = new dex.component(userConfig, defaults);
  var internalChart;

  chart.render = function render() {
    d3 = dex.charts.d3.d3v3;
    var config = chart.config;
    var csv = config.csv;

    d3.select(config.parent).selectAll("*").remove();
    var groups = dex.csv.group(csv, [0]);
    var nvd3Data = groups.map(function (group) {
      //dex.console.log("KEY", group.key, group);
      return {
        'key': group.key,
        'values': group.csv.data.map(function (row) {
          return {'x': +row[1], 'y': +row[2], 'size': +row[3]};
        })
      }
    });

    var nvd3Chart = nv.models.scatterChart()
      .showDistX(true)
      .showDistY(true)
      .useVoronoi(true)
      .color(d3.scale.category10().range())
      .duration(300);

    //nvd3Chart.xAxis.tickFormat(d3.format('.02f'));
    nvd3Chart.yAxis.tickFormat(d3.format('.02f'));
    nvd3Chart.xAxis
{'fraction_non_alphanumeric': 0.18911819887429643, 'fraction_numerical': 0.0300187617260788, 'mean_word_length': 2.702777777777778, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3372959', 'n_tokens_mistral': 1036, 'n_tokens_neox': 985, 'n_words': 168}