<commit_before>doctype html
html(lang='en')
   head
      meta(charset='utf-8')
      meta(http-equiv='X-UA-Compatible', content='IE=edge')
      meta(name='viewport', content='width=device-width,initial-scale=1')
      meta(name='author', content='jjwyse')

      link(rel='shortcut icon', href='/images/favicon.ico')
      link(rel='stylesheet', href='/css/strava-map.css')
      link(rel='stylesheet', href='/css/bootstrap.min.css')
      script(src='https://maps.googleapis.com/maps/api/js')

      script.
         var geocoder;
         var map;
         function initialize() {
            var map_canvas = document.getElementById('map_canvas');
            geocoder = new google.maps.Geocoder();

            // Create an array of styles.
            var styles = [
               {
                  stylers : [
                     {
                        hue : "#FF9900"
                     },
                     {
                        saturation : -10
                     }
                  ]
               },
               {
                  featureType : "road",
                  elementType : "geometry",
                  stylers : [
                     {
                        lightness : 100
                     },
                     {
                        visibility : "simplified"
                     }
                  ]
               },
               {
                  featureType : "road",
                  elementType : "labels",
                  stylers : [
                     {
                        lightness : 50
                     },
                     {
                        visibility : "simplified"
                     }
                  ]
               },
               {
                  featureType : "poi.business",
                  elementType : "labels",
                  stylers : [
                     {
                        visibility : "off"
                     }
                  ]
               }
            ];

            var fgMap = new google.maps.StyledMapType(styles, { name : "Strava" });

            var types = [ 'map_fg', google.maps.MapTypeId.ROADMAP, google.maps.MapTypeId.HYBRID ];
            var map_options = {
               center : new google.maps.LatLng(39.7392, -104.9842),
               zoom : 9,
               mapTypeId : google.maps.MapTypeId.ROADMAP,
               mapTypeControl : true,
               mapTypeControlOptions : {
                  style : google.maps.MapTypeControlStyle.DROPDOWN_MENU,
                  mapTypeIds : types
               }
            };
            map = new google.maps.Map(map_canvas, map_options);

            map.mapTypes.set('map_fg', fgMap);
            map.setMapTypeId('map_fg');
         }
         google.maps.event.addDomListener(window, 'load', initialize);

   body
      .content
         #map_canvas
            hr
            //- each run, i in stravaRuns
      footer
         .container
            p &copy;
               a(href='http://about.me/jjwyse', target='_blank')  <NAME>
               |  2014

      script(src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js')
      script(src='/js/bootstrap.min.js')
      script(src='/js/strava-map.js')<commit_msg>added a default line to show its working<commit_after>doctype html
html(lang='en')
   head
      meta(charset='utf-8')
      meta(http-equiv='X-UA-Compatible', content='IE=edge')
      meta(name='viewport', content='width=device-width,initial-scale=1')
      meta(name='author', content='jjwyse')

      link(rel='shortcut icon', href='/images/favicon.ico')
      link(rel='stylesheet', href='/css/strava-map.css')
      link(rel='stylesheet', href='/css/bootstrap.min.css')
      script(src='https://maps.googleapis.com/maps/api/js?libraries=geometry&sensor=false')

      script.
         var geocoder;
         var map;
         function decodeLevels(encodedLevelsString) {
             var decodedLevels = [];

             for (var i = 0; i < encodedLevelsString.length; ++i) {
                 var level = encodedLevelsString.charCodeAt(i) - 63;
                 decodedLevels.push(level);
             }
             return decodedLevels;
         }
         function initialize() {
            var map_canvas = document.getElementById('map_canvas');
            geocoder = new google.maps.Geocoder();

            // Create an array of styles.
            var styles = [
               {
                  stylers : [
                     {
                        hue : "#FF9900"
                     },
                     {
                        saturation : -10
                     }
                  ]
               },
               {
                  featureType : "road",
                  elementType : "geometry",
                  stylers : [
                     {
                        lightness : 100
                     },
                     {
                        visibility : "simplified"
                     }
                  ]
               },
               {
                  featureType : "road",
                  elementType : "labels",
                  stylers : [
                     {
                        lightness : 50
                     },
                     {
                        visibility : "simplified"
                     }
                  ]
               },
               {
                  featureType : "poi.business",
                  elementType : "labels",
                  stylers : [
                     {
                        visibility : "off"
                     }
                  ]
               }
            ];

            var stravaMap = new google.maps.StyledMapType(styles, { name : 'Strava' });
            var types = [ 'map_fg', google.maps.MapTypeId.ROADMAP, google.maps.MapTypeId.HYBRID ];
            var map_options = {
               center : new google.maps.LatLng(39.7392, -104.9842),
               zoom : 9,
               mapTypeId : google.maps.MapTypeId.ROADMAP,
               mapTypeControlOptions : {
                  style : google.maps.MapTypeControlStyle.DROPDOWN_MENU,
                  mapTypeIds : types
               }
            };

            map = new google.maps.Map(map_canvas, map_options);

            var decodedPath = google.maps.geometry.encoding.decodePath('mwxqFnvgaS`AqFhEyEfAgLhPqLnAwEbRG~A{C`FSdAuBqCyV|ByFUiDxAeBlAwRtCwIIiHiDaPuHmC_E_PcFk@aH|EnHaFzEv@`EzObIlDbDdUeD~LaAdSiBlB`@fDsBtEhAvCk@tDnBnIYdEnDoJpGg@gGb@l@uEwBbMkC`DeG\wApC_RJU}UqB}EzAvBf@jH{@zUoPbMmAtLiFlH_L`CxIN_AYs@@');
            var decodedLevels = decodeLevels('BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB');

            var setRegion = new google.maps.Polyline({
                 path: decodedPath,
                 levels: decodedLevels,
                 strokeColor: "#FF0000",
                 strokeOpacity: 1.0,
                 strokeWeight: 2,
                 map: map
             });

            map.mapTypes.set('map_fg', stravaMap);
            map.setMapTypeId('map_fg');
         }
         google.maps.event.addDomListener(window, 'load', initialize);

   body
      .content
         #map_canvas
            hr
      //- each run, i in stravaRuns
         //- p #{run.map.summary_polyline}
         //- script.
            //- addRun(map);

      footer
         .container
            p &copy;
               a(href='http://about.me/jjwyse', target='_blank')  <NAME>
               |  2014

      script(src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js')
      script(src='/js/bootstrap.min.js')
      script(src='/js/strava-map.js')
{'fraction_non_alphanumeric': 0.10934445458099831, 'fraction_numerical': 0.010426169685911639, 'mean_word_length': 1.1257617728531857, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '2708973', 'n_tokens_mistral': 2255, 'n_tokens_neox': 2074, 'n_words': 302}