<commit_before>'use strict';
/**
 * Webbrowser abstraction for communicating with discourse
 * @module browser
 * @license MIT
 */

const config = require('./config'),
    PostBuffer = require('../classes/PostBuffer'),
    packageInfo = require('../package.json');

const request = require('request'),
    async = require('async');

const defaults = {
        rejectUnauthorized: false,
        jar: request.jar(),
        headers: {
            'X-Requested-With': 'XMLHttpRequest',
            'User-Agent': 'SockBot/' + packageInfo.version + ' (' + packageInfo.releaseName +
                '; owner:%OWNER%; user:%USER%)'
        }
    },
    /**
     * SockBot Virtual Trust Levels
     *
     * @readonly
     * @enum
     */
    trustLevels = {
        /** Bot Owner Trust Level */
        owner: 9,
        /** Forum Admin Trust Level */
        admin: 8,
        /** Forum Moderator Trust Level */
        moderator: 7,
        /** Forum Staff Trust Level */
        staff: 6,
        /** Discourst trust_level 4 Trust Level */
        tl4: 4,<commit_msg>set request timeout to prevent requests wandering off into la-la land<commit_after>'use strict';
/**
 * Webbrowser abstraction for communicating with discourse
 * @module browser
 * @license MIT
 */

const config = require('./config'),
    PostBuffer = require('../classes/PostBuffer'),
    packageInfo = require('../package.json');

const request = require('request'),
    async = require('async');

const defaults = {
        rejectUnauthorized: false,
        jar: request.jar(),
        timeout: 15000,
        headers: {
            'X-Requested-With': 'XMLHttpRequest',
            'User-Agent': 'SockBot/' + packageInfo.version + ' (' + packageInfo.releaseName +
                '; owner:%OWNER%; user:%USER%)'
        }
    },
    /**
     * SockBot Virtual Trust Levels
     *
     * @readonly
     * @enum
     */
    trustLevels = {
        /** Bot Owner Trust Level */
        owner: 9,
        /** Forum Admin Trust Level */
        admin: 8,
        /** Forum Moderator Trust Level */
        moderator: 7,
        /** Forum Staff Trust Level */
        staff: 6,
        /** Discourst trust_level 4 Trust Level */
        tl4: 4,
{'fraction_non_alphanumeric': 0.13994565217391305, 'fraction_numerical': 0.008605072463768116, 'mean_word_length': 2.01775956284153, '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': '5124497', 'n_tokens_mistral': 637, 'n_tokens_neox': 593, 'n_words': 165}