<commit_before><!DOCTYPE html>
<html>
  <head>
    <title>Simple Map</title>
    <meta name="viewport" content="initial-scale=1.0">
    <meta charset="utf-8">
    <style>
      html, body {
        height: 100%;
        margin: 0;
        padding: 0;
      }
      #map {
        height: 100%;
      }
    </style>
  </head>
  <body>
    <div id="map"></div>
    <script src="https://code.jquery.com/jquery-2.2.4.min.js"   integrity="<KEY>   crossorigin="anonymous"></script>
    <script src="https://maps.googleapis.com/maps/api/js?key=<KEY>"></script>
    <script>

      var map;

      function drawMarker(pantry) {

        var marker = new google.maps.Marker({
            position    : new google.maps.LatLng(pantry.gsx$latitude['$t'], pantry.gsx$longitude['$t']),
            title       : pantry.gsx$name['$t']});

        marker.setMap(map);

        var info = new google.maps.InfoWindow({
          content: '<strong>' + pantry.gsx$name['$t'] + '</strong><p>' +
                   '<div id="address">' + pantry.gsx$street['$t'] + ', ' + pantry.gsx$city['$t'] + ' ' + pantry.gsx$zip['$t'] + '</div><p>' +
                   '<div id="hours">Hours:' +
                   '<ul>' +
                   '<li>Monday ' + pantry.gsx$monday['$t'] + '</li>' +
                   '<li>Tuesday ' + pantry.gsx$tuesday['$t'] + '</li>' +
                   '<li>Wednesday ' + pantry.gsx$wednesday['$t'] + '</li>' +
                   '<li>Thursday ' + pantry.gsx$thursday['$t'] + '</li>' +
                   '<li>Friday ' + pantry.gsx$friday['$t'] + '</li>' +
                   '<li>Saturday ' + pantry.gsx$saturday['$t'] + '</li>' +
                   '<li>Sunday ' + pantry.gsx$sunday['$t'] + '</li>' +
                   '</ul>' +
                   '</div>' +
                   '<div id="phone">Phone: ' + pantry.gsx$phone['$t'] + '</div>'
        });

        marker.addListener('click', function() {
          info.open(map, marker);
        });
      };

      $(document).ready( function() {

        map = new google.maps.Map(
          document.getElementById('map'),
          {
            center: {lat: 36.0999, lng: -80.2442},
            zoom: 12
          });

        $.getJSON('http://cors.io/?u=https://spreadsheets.google.com/feeds/list/1nlYOuCFByr6Cmy4XA1hlOt69vQil4hVfHeYypsxoll0/od6/public/values?alt=json',
          function(data) {
            pantries = data.feed.entry;
            console.log(pantries);
            pantries.map(drawMarker);
          });
      });
    </script>
  </body>
</html><commit_msg>Clean up console logging and create pantries in local scope instead of global<commit_after><!DOCTYPE html>
<html>
  <head>
    <title>Simple Map</title>
    <meta name="viewport" content="initial-scale=1.0">
    <meta charset="utf-8">
    <style>
      html, body {
        height: 100%;
        margin: 0;
        padding: 0;
      }
      #map {
        height: 100%;
      }
    </style>
  </head>
  <body>
    <div id="map"></div>
    <script src="https://code.jquery.com/jquery-2.2.4.min.js"   integrity="<KEY>   crossorigin="anonymous"></script>
    <script src="https://maps.googleapis.com/maps/api/js?key=<KEY>"></script>
    <script>

      var map;

      function drawMarker(pantry) {

        var marker = new google.maps.Marker({
            position    : new google.maps.LatLng(pantry.gsx$latitude['$t'], pantry.gsx$longitude['$t']),
            title       : pantry.gsx$name['$t']});

        marker.setMap(map);

        var info = new google.maps.InfoWindow({
          content: '<strong>' + pantry.gsx$name['$t'] + '</strong><p>' +
                   '<div id="address">' + pantry.gsx$street['$t'] + ', ' + pantry.gsx$city['$t'] + ' ' + pantry.gsx$zip['$t'] + '</div><p>' +
                   '<div id="hours">Hours:' +
                   '<ul>' +
                   '<li>Monday ' + pantry.gsx$monday['$t'] + '</li>' +
                   '<li>Tuesday ' + pantry.gsx$tuesday['$t'] + '</li>' +
                   '<li>Wednesday ' + pantry.gsx$wednesday['$t'] + '</li>' +
                   '<li>Thursday ' + pantry.gsx$thursday['$t'] + '</li>' +
                   '<li>Friday ' + pantry.gsx$friday['$t'] + '</li>' +
                   '<li>Saturday ' + pantry.gsx$saturday['$t'] + '</li>' +
                   '<li>Sunday ' + pantry.gsx$sunday['$t'] + '</li>' +
                   '</ul>' +
                   '</div>' +
                   '<div id="phone">Phone: ' + pantry.gsx$phone['$t'] + '</div>'
        });

        marker.addListener('click', function() {
          info.open(map, marker);
        });
      };

      $(document).ready( function() {

        map = new google.maps.Map(
          document.getElementById('map'),
          {
            center: {lat: 36.0999, lng: -80.2442},
            zoom: 12
          });

        $.getJSON('http://cors.io/?u=https://spreadsheets.google.com/feeds/list/1nlYOuCFByr6Cmy4XA1hlOt69vQil4hVfHeYypsxoll0/od6/public/values?alt=json',
          function(data) {
            var pantries = data.feed.entry;
            pantries.map(drawMarker);
          });
      });
    </script>
  </body>
</html>
{'fraction_non_alphanumeric': 0.2044252986097513, 'fraction_numerical': 0.01448991580184061, 'mean_word_length': 1.8346281908990012, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 6, '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': '7597889', 'n_tokens_mistral': 1824, 'n_tokens_neox': 1732, 'n_words': 251}