<commit_before>function GFWMarker(opts) {
  this.latlng_            = opts.position;
  this.content_           = opts.content;
  this.opts               = opts;
  this.offsetVertical_    = -7;
  this.offsetHorizontal_  = -7;
  this.width_             = 36;
  this.height_            = 36;
  this.div_               = null;
  this.map_               = opts.map;
  this.type_              = opts.type;
}

GFWMarker.prototype = new google.maps.OverlayView();

GFWMarker.prototype.draw = function() {
  var
  that = this,
  div = this.div_;

  if (!div) {
    div = this.div_ = document.createElement('DIV');
    div.className = 'marker';

    if(this.type_ === 'mongabay') {
      div.innerHTML = '<%= image_tag "icons/mongabay_exclamation.png" %>';
    } else {
      if (that.opts.thumbnail_url) {
        div.innerHTML = '<img src="' + that.opts.thumbnail_url + '" class="rounded" alt ="" /><div class="mask"></div>';
      } else {
        div.innerHTML = '<%= image_tag "icons/marker_exclamation.png" %>';
      }
    }

    google.maps.event.addDomListener(div, 'click', function (ev) {
      if (ev) {
        ev.preventDefault  ? ev.preventDefault()  : ev.returnValue            = false;
        ev.stopPropagation ? ev.stopPropagation() : window.event.cancelBubble = true;
      }

      that.showInfowindow();
    });

    var panes = this.getPanes();
    panes.overlayMouseTarget.appendChild(div);
  }<commit_msg>hotfix: user story images on map<commit_after>function GFWMarker(opts) {
  this.latlng_            = opts.position;
  this.content_           = opts.content;
  this.opts               = opts;
  this.offsetVertical_    = -7;
  this.offsetHorizontal_  = -7;
  this.width_             = 36;
  this.height_            = 36;
  this.div_               = null;
  this.map_               = opts.map;
  this.type_              = opts.type;
}

GFWMarker.prototype = new google.maps.OverlayView();

GFWMarker.prototype.draw = function() {
  var
  that = this,
  div = this.div_;

  if (!div) {
    div = this.div_ = document.createElement('DIV');
    div.className = 'marker';

    if(this.type_ === 'mongabay') {
      div.innerHTML = '<%= image_tag "icons/mongabay_exclamation.png" %>';
    } else {
      if (that.opts.thumbnail_url) {
        div.innerHTML = '<img src="<%= ENV['AWS_HOST'] %>/'+that.opts.thumbnail_url + '" class="rounded" alt ="" /><div class="mask"></div>';
      } else {
        div.innerHTML = '<%= image_tag "icons/marker_exclamation.png" %>';
      }
    }

    google.maps.event.addDomListener(div, 'click', function (ev) {
      if (ev) {
        ev.preventDefault  ? ev.preventDefault()  : ev.returnValue            = false;
        ev.stopPropagation ? ev.stopPropagation() : window.event.cancelBubble = true;
      }

      that.showInfowindow();
    });

    var panes = this.getPanes();
    panes.overlayMouseTarget.appendChild(div);
  }
{'fraction_non_alphanumeric': 0.14954892435808467, 'fraction_numerical': 0.004163775156141568, 'mean_word_length': 2.206896551724138, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '963077', 'n_tokens_mistral': 964, 'n_tokens_neox': 938, 'n_words': 162}