<commit_before>$j = django.jQuery

try {
    get_lat_long_url = get_lat_long_url + '?q=';
}
catch(err) {
    get_lat_long_url = window.location.href + '../get_lat_long/?q=';
}

function get_lat_long() {
    var address = $j(this).val();
    $j.get(get_lat_long_url + address, function(data, code) {
        $j("input#id_latitude").val(data.split(",")[2]);
        $j("input#id_longitude").val(data.split(",")[3]);
    });
}<commit_msg>Integrate store locator admin JS with new API results<commit_after>$j = django.jQuery

try {
    get_lat_long_url = get_lat_long_url + '?q=';
}
catch(err) {
    get_lat_long_url = window.location.href + '../get_lat_long/?q=';
}

function get_lat_long() {
    var address = $j(this).val();
    $j.getJSON(get_lat_long_url + address, function(data, code) {
      $j("input#id_latitude").val(data.results[0].geometry.location.lat);
      $j("input#id_longitude").val(data.results[0].geometry.location.lng);
    });
}
{'fraction_non_alphanumeric': 0.189873417721519, 'fraction_numerical': 0.004219409282700422, 'mean_word_length': 4.185792349726776, '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': '935599', 'n_tokens_mistral': 367, 'n_tokens_neox': 361, 'n_words': 50}