<commit_before>var mm = com.modestmaps, map;
$.domReady(function() {
  function mapMM() {
    $('#map')[0].innerHTML = '';
    wax.tilejson('http://d.tiles.mapbox.com/v2/energy.billion-ton-update-biomass-production-by-county-v3.jsonp',
    function(tj) {
        map = new mm.Map('map', new wax.mm.connector(tj));
        // wax.mm.interaction(map, tj, {clickAction: []});
        map.setCenterZoom(new mm.Location(38.376115424036016, -97.11914062499999), 5);
        var glow = glower.mm(map, tj);
    });
  }

  function mapLeaf() {
    $('#map')[0].innerHTML = '';
    wax.tilejson('http://d.tiles.mapbox.com/v2/energy.billion-ton-update-biomass-production-by-county-v3.jsonp',
    function(tj) {
        map = new L.Map('map');
        map.addLayer(new wax.leaf.connector(tj), { zoomControl: false });
        // wax.mm.interaction(map, tj, {clickAction: []});
        map.setView(new L.LatLng(38.376, -97.119), 5);
        var glow = glower.leaf(map, tj);
    });
  }

  function mapG() {
    wax.tilejson('http://d.tiles.mapbox.com/v2/energy.billion-ton-update-biomass-production-by-county-v3.jsonp',
      function(tj) {
      map = new google.maps.Map(
        document.getElementById('map'), {
          center: new google.maps.LatLng(38.376, -97.119),
          disableDefaultUI: true,
          zoom: 5,
          mapTypeId: google.maps.MapTypeId.ROADMAP });

      // Use this code to set a new layer as a baselayer -
      // which means that it'll be on the bottom of any other
      // layers and you won't see Google tiles
      map.mapTypes.set('mb', new wax.g.connector(tj));
      map.setMapTypeId('mb');
      var glow = glower.g(map, tj);
    });
  }

  $('#red').click(function(e) {
      glow.fillStyle('rgba(255, 107, 107, 0.8)');
      e.stopPropagation();
  });

  $('#green').click(function(e) {
      glow.fillStyle('rgba(107, 255, 107, 0.8)');
      e.stopPropagation();
  });

  $('#blue').click(function(e) {
      glow.fillStyle('rgba(11, 161, 207, 0.8)');
      e.stopPropagation();
  });

  $('#leaf').click(function(e) {
    mapLeaf();
  });

  $('#mm').click(function(e) {
    mapMM();
  });

  $('#g').click(function(e) {
    mapG();
  });

  $('#mm').click();
});
<commit_msg>remove last dependence on leaflet to avoid confusion - refs #3<commit_after>var mm = com.modestmaps, map;
$.domReady(function() {
  function mapMM() {
    $('#map')[0].innerHTML = '';
    wax.tilejson('http://d.tiles.mapbox.com/v2/energy.billion-ton-update-biomass-production-by-county-v3.jsonp',
    function(tj) {
        map = new mm.Map('map', new wax.mm.connector(tj));
        // wax.mm.interaction(map, tj, {clickAction: []});
        map.setCenterZoom(new mm.Location(38.376115424036016, -97.11914062499999), 5);
        var glow = glower.mm(map, tj);
    });
  }

  function mapG() {
    wax.tilejson('http://d.tiles.mapbox.com/v2/energy.billion-ton-update-biomass-production-by-county-v3.jsonp',
      function(tj) {
      map = new google.maps.Map(
        document.getElementById('map'), {
          center: new google.maps.LatLng(38.376, -97.119),
          disableDefaultUI: true,
          zoom: 5,
          mapTypeId: google.maps.MapTypeId.ROADMAP });

      // Use this code to set a new layer as a baselayer -
      // which means that it'll be on the bottom of any other
      // layers and you won't see Google tiles
      map.mapTypes.set('mb', new wax.g.connector(tj));
      map.setMapTypeId('mb');
      var glow = glower.g(map, tj);
    });
  }

  $('#red').click(function(e) {
      glow.fillStyle('rgba(255, 107, 107, 0.8)');
      e.stopPropagation();
  });

  $('#green').click(function(e) {
      glow.fillStyle('rgba(107, 255, 107, 0.8)');
      e.stopPropagation();
  });

  $('#blue').click(function(e) {
      glow.fillStyle('rgba(11, 161, 207, 0.8)');
      e.stopPropagation();
  });

  $('#leaf').click(function(e) {
    mapLeaf();
  });

  $('#mm').click(function(e) {
    mapMM();
  });

  $('#g').click(function(e) {
    mapG();
  });

  $('#mm').click();
});

{'fraction_non_alphanumeric': 0.20024906600249065, 'fraction_numerical': 0.044582814445828144, 'mean_word_length': 2.6776556776556775, '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': '1584687', 'n_tokens_mistral': 1594, 'n_tokens_neox': 1481, 'n_words': 244}