<commit_before>function getUrlVars()
{
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split(';');
    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
}
var param = getUrlVars();
var aid = param["aid"];
var comment_url = unescape(param["comment_url"]);
var comment_title = unescape(param["comment_title"]);
var cid = "article-" + aid + "-comment-form";
document.getElementById(cid).value = comment_title + ' ' + comment_url + ' ';
document.getElementById(cid).focus();
<commit_msg>switch url/title in post as a comment<commit_after>function getUrlVars()
{
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split(';');
    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
}
var param = getUrlVars();
var aid = param["aid"];
var comment_url = unescape(param["comment_url"]);
var comment_title = unescape(param["comment_title"]);
var cid = "article-" + aid + "-comment-form";
document.getElementById(cid).value = comment_url + ' ' + comment_title + ' ';
document.getElementById(cid).focus();

{'fraction_non_alphanumeric': 0.19001490312965721, 'fraction_numerical': 0.007451564828614009, 'mean_word_length': 3.8309352517985613, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1712657', 'n_tokens_mistral': 451, 'n_tokens_neox': 452, 'n_words': 92}