<commit_before>var groupid;
var pid;

$("#savePermissionsBtn").click(function () {
    arcAjaxRequest("pagemanager/savepermission",
        {id: pid, group: groupid, module: $("#module").val()},
        saveComplete, null);
    updateStatus("status");
});

function saveComplete(data) {
    if (data.danger == 0) {
        $("#editModal").modal("hide");
        getData();
    }
}

function editPermission(group, id) {
    groupid = group;
    pid = id;
    arcAjaxRequest("pagemanager/editpermisson", {id: id}, null, successEdit);
}

function successEdit(data) {
    var jdata = arcGetJson(data);<commit_msg>Permissions fix.<commit_after>var groupid;
var pid;

$("#savePermissionsBtn").click(function () {
    arcAjaxRequest("pagemanager/savepermission",
            {id: pid, group: groupid, module: $("#module").val()},
            saveComplete, null);
});

function saveComplete() {
    $("#editModal").modal("hide");
    getData();
    updateStatus("status");
}

function editPermission(group, id) {
    groupid = group;
    pid = id;
    arcAjaxRequest("pagemanager/editpermisson", {id: id}, null, successEdit);
}

function successEdit(data) {
    var jdata = arcGetJson(data);
{'fraction_non_alphanumeric': 0.16906170752324598, 'fraction_numerical': 0.0008453085376162299, 'mean_word_length': 3.933333333333333, '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': '6634018', 'n_tokens_mistral': 370, 'n_tokens_neox': 374, 'n_words': 75}