<commit_before>var _ = require('underscore');
var Layer = require('./layer.js');
var Figure = require('./figure.js');
var ipy = require('ipy_node');

function to_id3_layers(layers) {

  var id3_layers = [];
  _.each(layers, function(layer) {
      var name = layer.name;
      var data = layer.data;
      var geoms = layer.geoms;
      var ilayer = new Layer()
      ilayer.data(data);
      var geom = geoms[0];
      if (geom.type == 'candlestick') {
          var igeom = Candlestick();
      }
      if (geom.type == 'marker') {
        var igeom = Marker().type('circle');
        if (geom['color']) {
            igeom.color(geom.color);
        }
        if (geom['markersize']) {
            var size = geom.markersize * 12;
            igeom.size(size);
        } else {
            var size = 8 * 12;
            igeom.size(size);
        }
      }

      if (geom.type == 'line') {
        var igeom = Line();
        if (geom['color']) {
            igeom.color(geom.color);
        }
      }

      if (igeom) {<commit_msg>made the size scaling mroe reasonable. note: this is going from matplotlib to id3<commit_after>var _ = require('underscore');
var Layer = require('./layer.js');
var Figure = require('./figure.js');
var ipy = require('ipy_node');

function to_id3_layers(layers) {

  var id3_layers = [];
  _.each(layers, function(layer) {
      var name = layer.name;
      var data = layer.data;
      var geoms = layer.geoms;
      var ilayer = new Layer()
      ilayer.data(data);
      var geom = geoms[0];
      if (geom.type == 'candlestick') {
          var igeom = Candlestick();
      }
      if (geom.type == 'marker') {
        var igeom = Marker().type('circle');
        if (geom['color']) {
            igeom.color(geom.color);
        }
        if (geom['markersize']) {
            var size = geom.markersize * 5;
            igeom.size(size);
        } else {
            var size = 8 * 5;
            igeom.size(size);
        }
      }

      if (geom.type == 'line') {
        var igeom = Line();
        if (geom['color']) {
            igeom.color(geom.color);
        }
      }

      if (igeom) {
{'fraction_non_alphanumeric': 0.1542056074766355, 'fraction_numerical': 0.007009345794392523, 'mean_word_length': 1.8134034165571615, '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': '3972228', 'n_tokens_mistral': 732, 'n_tokens_neox': 703, 'n_words': 159}