<commit_before>export function transitionIssue(user, password, jiraHost, key, transitionId, commentBody, callback) {

    if (!jiraUser || !jiraPassword || !jiraHost || !user || !password || !transitionId ) {
        console.log('missing required field!');
        return;
    }

    var https = require('https');

    var body = JSON.stringify({
        "update": {
            "comment": [{
                "add": {
                    "body": commentBody
                }
            }]
        },
        "transition": {
            "id": transitionId
        }
    });

    var options = {
        hostname: jiraHost,
        port: 443,
        path: '/rest/api/2/issue/' + key + '/transitions',
        method: "POST",
        headers: {
            'Authorization': 'Basic ' + new Buffer(user + ':' + password).toString('base64'),
            "Content-Type": "application/json",
        },
        agent: false
    };

    var req = new https.request(options, function(res) {

    });

    req.end(body, callback);
}
<commit_msg>various fixes<commit_after>export function transitionIssue(user, password, jiraHost, key, transitionId, commentBody, callback) {

    if (!user || !password || !jiraHost || !transitionId ) {
        console.log('Missing required field!');
        return;
    }

    var https = require('https');

    var body = JSON.stringify({
        "update": {
            "comment": [{
                "add": {
                    "body": commentBody
                }
            }]
        },
        "transition": {
            "id": transitionId
        }
    });

    var options = {
        hostname: jiraHost,
        port: 443,
        path: '/rest/api/2/issue/' + key + '/transitions',
        method: "POST",
        headers: {
            'Authorization': 'Basic ' + new Buffer(user + ':' + password).toString('base64'),
            "Content-Type": "application/json",
        },
        agent: false
    };

    var req = new https.request(options, function(res) {

    });

    req.end(body, callback);
}

{'fraction_non_alphanumeric': 0.149706457925636, 'fraction_numerical': 0.005870841487279843, 'mean_word_length': 1.7339572192513368, 'pattern_counts': {'":': 14, '<': 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': '3974126', 'n_tokens_mistral': 592, 'n_tokens_neox': 560, 'n_words': 125}