<commit_before>/**
 * Created by glen.nicol on 9/2/14.
 */
//Code in this block will only occur after authorization has occured
var stateAction = "";

$(document).bind("github4jiveAuthorized", function () {
    gadgets.window.adjustWidth(800);

    contentObject.getExtProps().execute(function (props) {
        if(props.content){
            props = props.content;
        }

        var statusText = $("#Status");
        function replaceStatusText(appendage){
            statusText.children().hide(500).promise().done(function () {
                statusText.append("<h2>"+appendage+"</h2>");
                statusText.after("<br/><p>The page will reload momentarily unless you close this window. You will be able to recover a comment in progress.</p>")
                window.setTimeout(function () {
                    window.top.location.href = document.referrer;
                    //osapi.jive.core.container.closeApp();//makes it a little clunky online with latency
                }, 5000);
            });
        }
        function changeIssueState(state) {
            var bodyPayload = {
                "state": state
            };
            osapi.http.post({
                'href': host + '/github/place/changeIssueState?' +
                    "ts=" + new Date().getTime() +
                    "&place=" + encodeURIComponent(placeUrl) +<commit_msg>Shortened the refresh on discrete actions to 3 seconds<commit_after>/**
 * Created by glen.nicol on 9/2/14.
 */
//Code in this block will only occur after authorization has occured
var stateAction = "";

$(document).bind("github4jiveAuthorized", function () {
    gadgets.window.adjustWidth(800);

    contentObject.getExtProps().execute(function (props) {
        if(props.content){
            props = props.content;
        }

        var statusText = $("#Status");
        function replaceStatusText(appendage){
            statusText.children().hide(500).promise().done(function () {
                statusText.append("<h2>"+appendage+"</h2>");
                statusText.after("<br/><p>The page will reload momentarily unless you close this window. You will be able to recover a comment in progress.</p>")
                window.setTimeout(function () {
                    window.top.location.href = document.referrer;
                    //osapi.jive.core.container.closeApp();//makes it a little clunky online with latency
                }, 3000);
            });
        }
        function changeIssueState(state) {
            var bodyPayload = {
                "state": state
            };
            osapi.http.post({
                'href': host + '/github/place/changeIssueState?' +
                    "ts=" + new Date().getTime() +
                    "&place=" + encodeURIComponent(placeUrl) +
{'fraction_non_alphanumeric': 0.12836141986375044, 'fraction_numerical': 0.01254930082466834, 'mean_word_length': 1.9903536977491962, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 13, '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': '2374384', 'n_tokens_mistral': 765, 'n_tokens_neox': 715, 'n_words': 170}