<commit_before>var padding = 60;
var grid_space = 40;
var overhang = 10;
var vertical_count = lines_within(view.size.width);
var horizontal_count = lines_within(view.size.height);

for (var i=0; i <= vertical_count; i++) {
  make_vertical_line(i * grid_space)
};

for (var i=0; i <= horizontal_count; i++) {
  make_horizontal_line(i * grid_space)
};

function lines_within(size) {
  return Math.floor((size - padding * 2) / grid_space);
}

function make_vertical_line(x) {
  return make_line(vertical_bounds(x));
}

function make_horizontal_line(y) {
  return make_line(horizontal_bounds(y));
}

function horizontal_bounds(y) {
  return [
    new Point(padding - overhang, padding + y),
    new Point(view.size.width - padding + overhang, padding + y),
  ]
}

function vertical_bounds(x) {
  return [
    new Point(padding + x, padding - overhang),
    new Point(padding + x, view.size.height - padding + overhang),
  ]
}

function make_line(bounds) {
  return new Path.Line({
    from: bounds[0],
    to: bounds[1],
    strokeColor: 'white',
    strokeWidth: 2
  });
}<commit_msg>add inner lines<commit_after>var padding = 60;
var grid_space = 40;
var overhang = 10;
var subdivisions = 2;
var vertical_count = lines_within(view.size.width);
var horizontal_count = lines_within(view.size.height);

for (var i=0; i <= vertical_count; i++) {
  make_vertical_line(i * grid_space / subdivisions)
};

for (var i=0; i <= horizontal_count; i++) {
  make_horizontal_line(i * grid_space / subdivisions)
};

function lines_within(size) {
  return Math.floor((size - padding * 2) / grid_space * subdivisions);
}

function make_vertical_line(x) {
  return make_line(vertical_bounds(x), stroke_width(x));
}

function make_horizontal_line(y) {
  return make_line(horizontal_bounds(y), stroke_width(y));
}

function stroke_width(n) {
  if (n % grid_space) {
    return 1
  } else {
    return 2
  }
}

function horizontal_bounds(y) {
  return [
    new Point(padding - overhang, padding + y),
    new Point(view.size.width - padding + overhang, padding + y),
  ]
}

function vertical_bounds(x) {
  return [
    new Point(padding + x, padding - overhang),
    new Point(padding + x, view.size.height - padding + overhang),
  ]
}

function make_line(bounds, strokeWidth) {
  return new Path.Line({
    from: bounds[0],
    to: bounds[1],
    strokeColor: 'white',
    strokeWidth: strokeWidth || 2
  });
}
{'fraction_non_alphanumeric': 0.13358458961474037, 'fraction_numerical': 0.011306532663316583, 'mean_word_length': 4.126609442060086, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2033781', 'n_tokens_mistral': 847, 'n_tokens_neox': 816, 'n_words': 196}