<commit_before>var map;
var bombs = [];


$(document).ready(function() {
  var mapOptions;
  mapOptions = void 0;
  mapOptions = {
    zoom: 2,
    center: new google.maps.LatLng(5,-30),
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    zoomControl: true,
    // disableDoubleClickZoom: true,
    // scrollwheel: false,
    disableDefaultUI: true
  };
  return map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
});

$(function() {
  return setInterval(retreiveBombs, 500); // Retreive more every 10 seconds
});

var retreiveBombs = function() {
  $.get("data", function(tweets) {
    var numBombs = tweets.length;
    for(var i = 0; i < numBombs; i++){
      if(tweets[i].text == "" || tweets[i].text == null){
        console.log(tweets[i].text);
      }
      if($.inArray(tweets[i].id, bombs) < 0){
        mapBomb(tweets[i].text, tweets[i].coordinates[0], tweets[i].coordinates[1]);
        bombs.push(tweets[i].id);
      }
      else{
      }
    }
    
  });
};
var mapBomb = function(text, lat, lng){
  // var latlng, marker, text, numBombs, rest;
  var zoom = map.getZoom();<commit_msg>removed empty text check -- stupid<commit_after>var map;
var bombs = [];


$(document).ready(function() {
  var mapOptions;
  mapOptions = void 0;
  mapOptions = {
    zoom: 2,
    center: new google.maps.LatLng(5,-30),
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    zoomControl: true,
    // disableDoubleClickZoom: true,
    // scrollwheel: false,
    disableDefaultUI: true
  };
  return map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
});

$(function() {
  return setInterval(retreiveBombs, 500); // Retreive more every 10 seconds
});

var retreiveBombs = function() {
  $.get("data", function(tweets) {
    var numBombs = tweets.length;
    for(var i = 0; i < numBombs; i++){
      if($.inArray(tweets[i].id, bombs) < 0){
        mapBomb(tweets[i].text, tweets[i].coordinates[0], tweets[i].coordinates[1]);
        bombs.push(tweets[i].id);
      }
      else{
      }
    }
    
  });
};
var mapBomb = function(text, lat, lng){
  // var latlng, marker, text, numBombs, rest;
  var zoom = map.getZoom();
{'fraction_non_alphanumeric': 0.16774491682070242, 'fraction_numerical': 0.012939001848428836, 'mean_word_length': 3.123809523809524, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6467200', 'n_tokens_mistral': 806, 'n_tokens_neox': 781, 'n_words': 159}