<commit_before>{% extends "base.html" %}

{% block content %}

    <script>

        getIp = function(protocol) {
            $.get("http://www.ip"+protocol+".nsupdate.info/myip", function(raw_data){
                json_data = JSON.parse(raw_data)
                $(".ip"+protocol+"adr").val(json_data.ip);
            }).fail(function() {<commit_msg>changed simple ajax get request to JSONP request. This way no header is needed.<commit_after>{% extends "base.html" %}

{% block content %}

    <script>

        getIp = function(protocol) {
            $.getJSON('http://www.ip'+protocol+'.nsupdate.info/myip?callback=?','',function(json_data){
                $(".ip"+protocol+"adr").val(json_data.ip);
            }).fail(function() {
{'fraction_non_alphanumeric': 0.18403247631935046, 'fraction_numerical': 0.0, 'mean_word_length': 2.645320197044335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5661241', 'n_tokens_mistral': 232, 'n_tokens_neox': 217, 'n_words': 38}