<commit_before><commit_msg>Create geolocation.js<commit_after>        var map;
        function initialize() {
        var myOptions = {
          zoom: 8,
          panControl: false,
            zoomControl: true,
            zoomControlOptions: {
                style: google.maps.ZoomControlStyle.SMALL
              },
            mapTypeControl: false,
            scaleControl: false,
            streetViewControl: false,
            overviewMapControl: false,
          center: new google.maps.LatLng(52.379189, 4.899431),
          mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        map = new google.maps.Map(document.getElementById('map'),
            myOptions);
            
        // Try HTML5 geolocation
        if(navigator.geolocation) {
          navigator.geolocation.getCurrentPosition(function(position) {
            var pos = new google.maps.LatLng(position.coords.latitude,
                                             position.coords.longitude);
        
            var infowindow = new google.maps.InfoWindow({
              map: map,
              position: pos,
              content: 'Location found using HTML5.'
            });
        
            map.setCenter(pos);
          }, function() {
            handleNoGeolocation(true);
          });
        } else {
          // Browser doesn't support Geolocation
          handleNoGeolocation(false);
        }
        }
        
        function handleNoGeolocation(errorFlag) {
        if (errorFlag) {
          var content = 'Error: The Geolocation service failed.';
        } else {
          var content = 'Error: Your browser doesn\'t support geolocation.';
        }
        
        var options = {
          map: map,
          position: new google.maps.LatLng(52.379189, 4.899431),
          content: content
        };
        
        var infowindow = new google.maps.InfoWindow(options);
        map.setCenter(options.position);
        }
        
        google.maps.event.addDomListener(window, 'load', initialize);
      
    
{'fraction_non_alphanumeric': 0.09175662414131501, 'fraction_numerical': 0.01619234543670265, 'mean_word_length': 1.4805352798053528, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7506868', 'n_tokens_mistral': 546, 'n_tokens_neox': 524, 'n_words': 105}