<commit_before>
$(document).ready(function() {
  var thermostat = new Thermostat();
  updateTemp();
  var location;
  var temperature;

  var weather = $.getJSON('http://api.wunderground.com/api/831aa92990911190/conditions/q/CA/San_Francisco.json', function(data) {
      updateWeather(data.current_observation.temp_c);
  });
<commit_msg>auto ip and temperature<commit_after>
$(document).ready(function() {
  var thermostat = new Thermostat();
  updateTemp();
  var country;
  var city;
  var temperature;
  var url;


  $.getJSON('http://api.wunderground.com/api/831aa92990911190/geolookup/q/autoip.json', function(data) {
  country = data.location.country;
  city = data.location.city;
  url = 'http://api.wunderground.com/api/831aa92990911190/conditions/q/' + country + '/' + city + '.json';
    $.getJSON(url, function(data) {
      updateWeather(data.current_observation.temp_c);
    });
  });



{'fraction_non_alphanumeric': 0.15760266370699222, 'fraction_numerical': 0.04661487236403995, 'mean_word_length': 4.244186046511628, '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': '6114158', 'n_tokens_mistral': 342, 'n_tokens_neox': 310, 'n_words': 48}