<commit_before>function prettifyFilename(filename) {
  return filename.toLowerCase().replace(/ /g,"_")
}

function getFilename(url) {
  return url.replace(/^.*[\\\/]/, '')
}

_.templateSettings = {
  interpolate: /\{\{(.+?)\}\}/g,
  evaluate: /\[(.+?)\]/g
};

function isEmpty(str) {
  if (str) {
    return !str.match(/\S/)
  } else { return true; }
}

function validateEmail(email) {
  var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  return re.test(email);
}

jQuery.fn.center = function () {
  this.css("position", "absolute");
  this.css("top",  Math.max(0, (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop()) + "px");
  this.css("left", Math.max(0, (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft()) + "px");
  return this;
}

String.prototype.truncate = function(n) {
  return this.substr(0, n - 1 ) + ( this.length > n ? '...' : '' );
};

var config = {
  ZOOM:               5,
  MINZOOM:            3,
  MAXZOOM:            17,
  LAT:                3,
  LNG:                120,
  MONTHNAMES:         ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  MONTHNAMES_SHORT:   ["JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"],
  YEARS:              [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014],
  DATE_FORMAT:        "yyyy-MM-dd",
  DATE_SUFFIXES:      ["th", "st", "nd", "rd"],
  MIN_PROJECT_RADIUS: 100,
  BASE_MAP_STYLE:     [ { "stylers": [ { "visibility": "simplified" }, { "saturation": -100 }, { "gamma": 0.79 }, { "lightness": 2 }]}],
  OVERLAYS_STYLE: {
    strokeWeight: 2,
    fillOpacity: 0.25,
    fillOpacity: 0.45,
    fillColor: "#75ADB5",
    strokeColor: "#75ADB5",
    icon: new google.maps.MarkerImage(
      '/assets/icons/marker_exclamation.png',
      new google.maps.Size(45, 45), // desired size
      new google.maps.Point(0, 0), // offset within the scaled sprite
      new google.maps.Point(20, 20) // anchor point is half of the desired size
    )
  }
};

config.mapLoaded = false;

config.mapOptions = {
  zoom:               config.ZOOM,
  minZoom:            config.MINZOOM,
  maxZoom:            config.MAXZOOM,
  center:             new google.maps.LatLng(config.LAT, config.LNG),
  mapTypeId:          google.maps.MapTypeId.TERRAIN,
  disableDefaultUI:   true,
  panControl:         false,
  zoomControl:        false,
  mapTypeControl:     false,
  scaleControl:       false,
  streetViewControl:  false,
  overviewMapControl: false,
  scrollwheel:        false
};

config.mapStyles = {};

config.mapStyles.forestSoft = new google.maps.ImageMapType({
  getTileUrl: function(ll, z) {
    var X = ll.x % (1 << z);  // wrap
    return "http://api.tiles.mapbox.com/v3/cartodb.global-forest-height/" + z + "/" + X + "/" + ll.y + ".png";
  },
  tileSize: new google.maps.Size(256, 256),
  isPng: true,
  maxZoom: 7,
  name: "Forest Height",
  alt: "Global forest height"
});

config.mapStyles.TREEHEIGHT = new google.maps.ImageMapType({
  getTileUrl: function(ll, z) {
    var X = ll.x % (1 << z);  // wrap
    return "http://gfw-ee-tiles.appspot.com/gfw/simple_green_coverage/" + z + "/" + X + "/" + ll.y + ".png";
  },
  tileSize: new google.maps.Size(256, 256),
  isPng: true,
  maxZoom: 7,
  name: "Forest Height",
  alt: "Global forest height"
});

var Road = function(){
  this.Road = function(){
    map.setMapTypeId(google.maps.MapTypeId.ROADMAP);
    map.setOptions({styles: null});
  };
};

var Satellite = function(){
  this.Satellite = function(){
    map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
    map.setOptions({styles: null});
  };
};

var Forest = function(){<commit_msg>Increases tree height zoom<commit_after>function prettifyFilename(filename) {
  return filename.toLowerCase().replace(/ /g,"_")
}

function getFilename(url) {
  return url.replace(/^.*[\\\/]/, '')
}

_.templateSettings = {
  interpolate: /\{\{(.+?)\}\}/g,
  evaluate: /\[(.+?)\]/g
};

function isEmpty(str) {
  if (str) {
    return !str.match(/\S/)
  } else { return true; }
}

function validateEmail(email) {
  var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
  return re.test(email);
}

jQuery.fn.center = function () {
  this.css("position", "absolute");
  this.css("top",  Math.max(0, (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop()) + "px");
  this.css("left", Math.max(0, (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft()) + "px");
  return this;
}

String.prototype.truncate = function(n) {
  return this.substr(0, n - 1 ) + ( this.length > n ? '...' : '' );
};

var config = {
  ZOOM:               5,
  MINZOOM:            3,
  MAXZOOM:            17,
  LAT:                3,
  LNG:                120,
  MONTHNAMES:         ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  MONTHNAMES_SHORT:   ["JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"],
  YEARS:              [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014],
  DATE_FORMAT:        "yyyy-MM-dd",
  DATE_SUFFIXES:      ["th", "st", "nd", "rd"],
  MIN_PROJECT_RADIUS: 100,
  BASE_MAP_STYLE:     [ { "stylers": [ { "visibility": "simplified" }, { "saturation": -100 }, { "gamma": 0.79 }, { "lightness": 2 }]}],
  OVERLAYS_STYLE: {
    strokeWeight: 2,
    fillOpacity: 0.25,
    fillOpacity: 0.45,
    fillColor: "#75ADB5",
    strokeColor: "#75ADB5",
    icon: new google.maps.MarkerImage(
      '/assets/icons/marker_exclamation.png',
      new google.maps.Size(45, 45), // desired size
      new google.maps.Point(0, 0), // offset within the scaled sprite
      new google.maps.Point(20, 20) // anchor point is half of the desired size
    )
  }
};

config.mapLoaded = false;

config.mapOptions = {
  zoom:               config.ZOOM,
  minZoom:            config.MINZOOM,
  maxZoom:            config.MAXZOOM,
  center:             new google.maps.LatLng(config.LAT, config.LNG),
  mapTypeId:          google.maps.MapTypeId.TERRAIN,
  disableDefaultUI:   true,
  panControl:         false,
  zoomControl:        false,
  mapTypeControl:     false,
  scaleControl:       false,
  streetViewControl:  false,
  overviewMapControl: false,
  scrollwheel:        false
};

config.mapStyles = {};

config.mapStyles.forestSoft = new google.maps.ImageMapType({
  getTileUrl: function(ll, z) {
    var X = ll.x % (1 << z);  // wrap
    return "http://api.tiles.mapbox.com/v3/cartodb.global-forest-height/" + z + "/" + X + "/" + ll.y + ".png";
  },
  tileSize: new google.maps.Size(256, 256),
  isPng: true,
  maxZoom: 7,
  name: "Forest Height",
  alt: "Global forest height"
});

config.mapStyles.TREEHEIGHT = new google.maps.ImageMapType({
  getTileUrl: function(ll, z) {
    var X = ll.x % (1 << z);  // wrap
    return "http://gfw-ee-tiles.appspot.com/gfw/simple_green_coverage/" + z + "/" + X + "/" + ll.y + ".png";
  },
  tileSize: new google.maps.Size(256, 256),
  isPng: true,
  maxZoom: 8,
  name: "Forest Height",
  alt: "Global forest height"
});

var Road = function(){
  this.Road = function(){
    map.setMapTypeId(google.maps.MapTypeId.ROADMAP);
    map.setOptions({styles: null});
  };
};

var Satellite = function(){
  this.Satellite = function(){
    map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
    map.setOptions({styles: null});
  };
};

var Forest = function(){
{'fraction_non_alphanumeric': 0.21537261022239562, 'fraction_numerical': 0.035115099492781895, 'mean_word_length': 2.8296812749003983, 'pattern_counts': {'":': 10, '<': 15, '<?xml version=': 0, '>': 9, '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': '6624936', 'n_tokens_mistral': 3164, 'n_tokens_neox': 2886, 'n_words': 572}