{"size": 1205, "ext": "js", "max_stars_repo_path": "Everything/web.js", "max_stars_repo_name": "ranwen/USTC-Hackergame2019", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Everything/web.js", "max_issues_repo_name": "ranwen/USTC-Hackergame2019", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Everything/web.js", "max_forks_repo_name": "ranwen/USTC-Hackergame2019", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.3863636364, "max_line_length": 79, "alphanum_fraction": 0.5626556017}
function post (data) {
　　let url = 'http://localhost:5000/sub3',
　　　　xhr = new XMLHttpRequest();

　　xhr.open('post', url);
　　xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
　　xhr.send(data);
　　xhr.onreadystatechange = function () {
　　　　if (xhr.readyState === 4 && ( xhr.status === 200 || xhr.status === 304 )){
　　　　　　console.log(xhr.responseText);
　　　　}
　　}
}


function solve(x) {
    document.getElementsByTagName("textarea")[0].value = x
    document.getElementById("calc").click()
    setTimeout(function () {
        sht = document.getElementById("result").children[0].innerText
        console.log(sht)
        post("res="+encodeURIComponent(sht))
    }, 100)
}

function gettask() {
    var xmlHttp = new XMLHttpRequest();
    xmlHttp.onreadystatechange = function () {
        if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
            var data = xmlHttp.responseText;
            console.log(data)
            if(data!="0")
            {
                solve(data)
            }
        }

    }
    xmlHttp.open("GET", "http://localhost:5000/get3",
        true);
    xmlHttp.send();
}

setInterval("gettask()",200)