<commit_before>var MapPage = {

  borderStroke: "#747474",

  createMap: function(mapElement, config) {
    this.mapInstance = new google.maps.Map(mapElement, {
        center: config.center,
        zoom: config.zoom,
        styles: this.getStyles()
    });

    this.createMarkerClusters();
    this.handleEvents();
    this.handleResize();
    this.highlightDefault();
  },

  handleResize: function() {
    var _this = this;
    google.maps.event.addDomListener(window, "resize", function() {
       var center = _this.mapInstance.getCenter();
       google.maps.event.trigger(_this.mapInstance, "resize");
       _this.mapInstance.setCenter(center);
    });
  },

  createMarkerClusters: function() {
    new MarkerClusterer(this.mapInstance, this.getMarkers(), {
        imagePath: staticURL + 'map/images/m'
    });
  },

  getMarkers: function() {
    var map = this.mapInstance,
    self = this;
    return locations.map(function(location, index) {
      var marker = new google.maps.Marker({
          position: {lat: location.lat, lng: location.lng},
          map: map,
          title: location.title,
          icon: "/static/map/images/location_map_pin_orange.png"
      });
      marker.addListener('click', function() {
          var infoWindow = new google.maps.InfoWindow({
              content: this.getTitle(),
              maxWidth: 350
          });
          infoWindow.open(map, this);

          google.maps.event.addListener(map, 'click', function() {
            infoWindow.close();
          });

          self.updateStyle(infoWindow);
      });
      return marker;
    });
  },

  updateStyle: function(infoWindow) {
    var self = this;
    google.maps.event.addListener(infoWindow, 'domready', function() {
      self.overrideLocationPopup();<commit_msg>Update image path of map pins<commit_after>var MapPage = {

  borderStroke: "#747474",

  createMap: function(mapElement, config) {
    this.mapInstance = new google.maps.Map(mapElement, {
        center: config.center,
        zoom: config.zoom,
        styles: this.getStyles()
    });

    this.createMarkerClusters();
    this.handleEvents();
    this.handleResize();
    this.highlightDefault();
  },

  handleResize: function() {
    var _this = this;
    google.maps.event.addDomListener(window, "resize", function() {
       var center = _this.mapInstance.getCenter();
       google.maps.event.trigger(_this.mapInstance, "resize");
       _this.mapInstance.setCenter(center);
    });
  },

  createMarkerClusters: function() {
    new MarkerClusterer(this.mapInstance, this.getMarkers(), {
        imagePath: staticURL + 'map/images/m'
    });
  },

  getMarkers: function() {
    var map = this.mapInstance,
    self = this;
    return locations.map(function(location, index) {
      var marker = new google.maps.Marker({
          position: {lat: location.lat, lng: location.lng},
          map: map,
          title: location.title,
          icon: staticURL + "map/images/location_map_pin_orange.png"
      });
      marker.addListener('click', function() {
          var infoWindow = new google.maps.InfoWindow({
              content: this.getTitle(),
              maxWidth: 350
          });
          infoWindow.open(map, this);

          google.maps.event.addListener(map, 'click', function() {
            infoWindow.close();
          });

          self.updateStyle(infoWindow);
      });
      return marker;
    });
  },

  updateStyle: function(infoWindow) {
    var self = this;
    google.maps.event.addListener(infoWindow, 'domready', function() {
      self.overrideLocationPopup();
{'fraction_non_alphanumeric': 0.13464741810105496, 'fraction_numerical': 0.004997223764575236, 'mean_word_length': 2.5392927308447937, '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': '1855400', 'n_tokens_mistral': 1076, 'n_tokens_neox': 1052, 'n_words': 195}