<commit_before>LandmarkDb = {
  
  landmarks_by_city: {},
  
  add: function(lm) {
    LandmarkDb.landmarks_by_city[lm.city_id].push(lm);
    MapMarkers.new_landmark(lm);
  },
    
  ensure_landmarks: function(city_id) {
    if (LandmarkDb.landmarks_by_city[city_id]) return;
    $.ajax({
      url: '/gc/landmarks',
      data: {city: city_id},
      async: false,
      dataType: 'json',
      success: function(obj){ 
        LandmarkDb.landmarks_by_city[city_id] = obj;
      }
    });
  },
  
  find_by_tag: function(tag) {
    var lms = LandmarkDb.landmarks_by_city[Viewer.selected_city];
    var idx = {};
    $.each(lms, function(){
      idx[this.item_tag] = this;
    });
    return idx[tag];
  }
    
};<commit_msg>Server side change.  /gc/landmarks is now deprecated.<commit_after>LandmarkDb = {
  
  landmarks_by_city: {},
  
  add: function(lm) {
    LandmarkDb.landmarks_by_city[lm.city_id].push(lm);
    MapMarkers.new_landmark(lm);
  },
    
  ensure_landmarks: function(city_id) {
    if (LandmarkDb.landmarks_by_city[city_id]) return;
    $.ajax({
      url: '/gc/viewer_city.js',
      data: {city_id: city_id},
      async: false,
      // dataType: 'json',
      success: function(obj){ 
        eval(obj);
        // LandmarkDb.landmarks_by_city[city_id] = obj;
      }
    });
  },
  
  find_by_tag: function(tag) {
    var lms = LandmarkDb.landmarks_by_city[Viewer.selected_city];
    var idx = {};
    $.each(lms, function(){
      idx[this.item_tag] = this;
    });
    return idx[tag];
  }
    
};
{'fraction_non_alphanumeric': 0.14950819672131146, 'fraction_numerical': 0.0, 'mean_word_length': 2.703883495145631, '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': '1277320', 'n_tokens_mistral': 578, 'n_tokens_neox': 574, 'n_words': 83}