<commit_before>'use strict';

var Crypto = require('crypto');
var Auth = require('../auth');

var TEST_ID = 0;

if (process.argv[2] === 'token') {

    getToken(process.argv[3]);

} else if (process.argv[2] === 'secret') {

    createSecret();

}

// Randomly create a safe secret for usage in the server
function createSecret() {
    var secret = Crypto.randomBytes(256).toString('base64');
    console.log('Randomly generated secret for usage in JWT_SECRET environment variable:');
    console.log('export JWT_SECRET=\'' + secret + '\'');
}

// Obtain a JWT token for the id 0 (test user)
function getToken() {<commit_msg>fixed issue with auth utils failure to load auth plugin<commit_after>'use strict';

var Crypto = require('crypto');
var Auth = require('../plugins/auth');

var TEST_ID = 0;

if (process.argv[2] === 'token') {

    getToken(process.argv[3]);

} else if (process.argv[2] === 'secret') {

    createSecret();

}

// Randomly create a safe secret for usage in the server
function createSecret() {
    var secret = Crypto.randomBytes(256).toString('base64');
    console.log('Randomly generated secret for usage in JWT_SECRET environment variable:');
    console.log('export JWT_SECRET=\'' + secret + '\'');
}

// Obtain a JWT token for the id 0 (test user)
function getToken() {
{'fraction_non_alphanumeric': 0.15639445300462249, 'fraction_numerical': 0.015408320493066256, 'mean_word_length': 4.134387351778656, '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': '1500353', 'n_tokens_mistral': 420, 'n_tokens_neox': 408, 'n_words': 127}