<commit_before>d3plus.zoom.bounds = function(vars,b,timing) {

  if (!b) {
    var b = vars.zoom.bounds
  }

  if (typeof timing != "number") {
    var timing = vars.style.timing.transitions
  }

  vars.zoom.size = {
    "height": b[1][1]-b[0][1],
    "width": b[1][0]-b[0][0]
  }

  var fit = vars.coords.fit.value
  if (fit == "auto" || d3plus.apps[vars.type.value].requirements.indexOf("coords") < 0) {
    var aspect = d3.max([vars.zoom.size.width/vars.app_width,vars.zoom.size.height/vars.app_height])
  }
  else {
    var aspect = vars.zoom.size[fit]/vars["app_"+fit]
  }

  var min = d3.min([vars.app_width,vars.app_height])

  var scale = ((min-(vars.coords.padding*2)) / min) / aspect
  
  if (!vars.zoom.viewport) {
    vars.zoom_behavior.scaleExtent([scale,scale*8])
  }<commit_msg>increased max zoom bounds to 16 times<commit_after>d3plus.zoom.bounds = function(vars,b,timing) {

  if (!b) {
    var b = vars.zoom.bounds
  }

  if (typeof timing != "number") {
    var timing = vars.style.timing.transitions
  }

  vars.zoom.size = {
    "height": b[1][1]-b[0][1],
    "width": b[1][0]-b[0][0]
  }

  var fit = vars.coords.fit.value
  if (fit == "auto" || d3plus.apps[vars.type.value].requirements.indexOf("coords") < 0) {
    var aspect = d3.max([vars.zoom.size.width/vars.app_width,vars.zoom.size.height/vars.app_height])
  }
  else {
    var aspect = vars.zoom.size[fit]/vars["app_"+fit]
  }

  var min = d3.min([vars.app_width,vars.app_height])

  var scale = ((min-(vars.coords.padding*2)) / min) / aspect

  if (!vars.zoom.viewport) {
    vars.zoom_behavior.scaleExtent([scale,scale*16])
  }
{'fraction_non_alphanumeric': 0.19142324425108764, 'fraction_numerical': 0.020509633312616533, 'mean_word_length': 3.316353887399464, 'pattern_counts': {'":': 4, '<': 5, '<?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': '4695696', 'n_tokens_mistral': 659, 'n_tokens_neox': 632, 'n_words': 96}