<commit_before>var _ = require('lodash');
var request = require("request");


var users = [
    {id: 0, cookie:{}},
    {id: 1, cookie:{}}
];

var loginOptions = {
    url: 'http://localhost:8086/api/login',
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'      
    },
    body: {
        password: "password",
        realm: "intraday",
        username: "admin"
    },
    json: true,
};

function updateCookie(request, userId){
    var rc = {},
        cookie = request.headers['set-cookie'][0];
<commit_msg>fix bug in logging<commit_after>var _ = require('lodash');
var request = require("request");


var users = [
    {id: 0, cookie:{}},
    {id: 1, cookie:{}}
];

var loginOptions = {
    url: 'http://localhost:8086/api/login',
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'      
    },
    body: {
        password: "<PASSWORD>",
        realm: "xxx",
        username: "cc"
    },
    json: true,
};

function updateCookie(request, userId){
    var rc = {},
        cookie = request.headers['set-cookie'][0];

{'fraction_non_alphanumeric': 0.18316373728029603, 'fraction_numerical': 0.012950971322849213, 'mean_word_length': 2.512987012987013, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '24787', 'n_tokens_mistral': 363, 'n_tokens_neox': 354, 'n_words': 79}