<commit_before>$(document).ready(function() {
    var city_string;
    var city_string2;
    var region_string;
    var region_string2;
    var country_string;
    var country_string2;
    var weather_string;
    var weather_string2;
    var icon_url_string;
    var icon_url_string2;
    var key;
    var url;
    var CorF;
   
    $.getJSON("http://ip-api.com/json", function(json) {
        //$(".text1").html(JSON.stringify(json));
		city_string = JSON.stringify(json["city"]);
		city_string2 = city_string.substring(1, (city_string.length - 1));
		region_string = JSON.stringify(json["region"]);
		region_string2 = region_string.substring(1, (region_string.length - 1));
		country_string = JSON.stringify(json["countryCode"]);
		country_string2 = country_string.substring(1, (country_string.length - 1));

		key = "<KEY>";
		url = "http://api.wunderground.com/api/" + key + "/conditions/q/" + region_string2 + "/" + city_string2 + ".json";
       	$(".text2").html(city_string2 + ", " + region_string2 + ", " + country_string2);

        $.getJSON(url, function(json) {
			icon_url = JSON.stringify(json.current_observation.icon_url);
			icon_url_2 = icon_url.substring(1, (icon_url.length - 1));
         	$(".text3").html(JSON.stringify(json.current_observation.temp_f));  
			$("img").attr("src", "http://icons.wxug.com/i/c/k/nt_cloudy.gif");
			weather_string = JSON.stringify(json.current_observation.weather);
			weather_string2 = weather_string.substring(1, (weather_string.length - 1));         
         	$(".text4").html(weather_string2);
       	});
        //$(".message").html(url);
        //http://api.wunderground.com/api/6b02fb2a4f4e51e0/conditions/q/IN/West%20Lafayette.json
    });


    $('.asText').click(function() {
        
        if(CorF === "C") {
          CorF = "F";      
        } else {
          CorF = "C";      
        }<commit_msg>in text2 replaced the city_string2, region_string2, etc. with city_string.replace(/"/g, )<commit_after>$(document).ready(function() {
    var city_string;
    var city_string2;
    var region_string;
    var region_string2;
    var country_string;
    var country_string2;
    var weather_string;
    var weather_string2;
    var icon_url_string;
    var icon_url_string2;
    var key;
    var url;
    var CorF;
   
    $.getJSON("http://ip-api.com/json", function(json) {
        //$(".text1").html(JSON.stringify(json));
		city_string = JSON.stringify(json["city"]);
		city_string2 = city_string.substring(1, (city_string.length - 1));
		region_string = JSON.stringify(json["region"]);
		region_string2 = region_string.substring(1, (region_string.length - 1));
		country_string = JSON.stringify(json["countryCode"]);
		country_string2 = country_string.substring(1, (country_string.length - 1));

     /* var test = "\"House\"";
console.log(test);
console.log(test.replace(/\"/g, ""));
      */
		key = "<KEY>";
	//	url = "http://api.wunderground.com/api/" + key + "/conditions/q/" + region_string2 + "/" + city_string2 + ".json";
  //     	$(".text2").html(city_string2 + ", " + region_string2 + ", " + country_string2);

    url = "http://api.wunderground.com/api/" + key + "/conditions/q/" + region_string2 + "/" + city_string2 + ".json";
        $(".text2").html(city_string.replace(/\"/g, "") + ", " + region_string.replace(/\"/g, "") + ", " + country_string.replace(/\"/g, ""));

        $.getJSON(url, function(json) {
			icon_url = JSON.stringify(json.current_observation.icon_url);
			icon_url_2 = icon_url.substring(1, (icon_url.length - 1));
         	$(".text3").html(JSON.stringify(json.current_observation.temp_f));  
			$("img").attr("src", "http://icons.wxug.com/i/c/k/nt_cloudy.gif");
			weather_string = JSON.stringify(json.current_observation.weather);
			weather_string2 = weather_string.substring(1, (weather_string.length - 1));         
         	$(".text4").html(weather_string2);
       	});
        //$(".message").html(url);
        //http://api.wunderground.com/api/6b02fb2a4f4e51e0/conditions/q/IN/West%20Lafayette.json
    });


    $('.asText').click(function() {
        
        if(CorF === "C") {
          CorF = "F";      
        } else {
          CorF = "C";      
        }
{'fraction_non_alphanumeric': 0.18095010742420625, 'fraction_numerical': 0.021007400334208642, 'mean_word_length': 3.0095693779904304, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '25677', 'n_tokens_mistral': 1509, 'n_tokens_neox': 1434, 'n_words': 200}