<commit_before>define([], function(){
  var maps = [
    L.mapbox.map('map-1', 'azavea.i8f80o61'),
    L.mapbox.map('map-2', 'azavea.i8f80o61'),
    L.mapbox.map('map-3', 'azavea.i8f80o61')
  ];

  maps[0].setView([39.99, -75.21], 12);

  maps[1].setView([46.90, -121.98], 11);

  _.forEach(maps, function(map) {
    map.scrollWheelZoom.disable();
  });

  return maps;
 });<commit_msg>fix: leaflet redraw bug on window resize<commit_after>define([], function(){
  var maps = [
    L.mapbox.map('map-1', 'azavea.i8f80o61'),
    L.mapbox.map('map-2', 'azavea.i8f80o61'),
    L.mapbox.map('map-3', 'azavea.i8f80o61')
  ];

  maps[0].setView([39.99, -75.21], 12);

  maps[1].setView([46.90, -121.98], 11);

  function fn_resize(map) { 
    map.invalidateSize();
  }

  _.forEach(maps, function(map) {
    map.scrollWheelZoom.disable();
    $(window).resize(_.partial(fn_resize, map))
  });

  return maps;
 });
{'fraction_non_alphanumeric': 0.22601984564498345, 'fraction_numerical': 0.09040793825799338, 'mean_word_length': 3.562814070351759, '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': '3511720', 'n_tokens_mistral': 436, 'n_tokens_neox': 386, 'n_words': 53}