<commit_before>local os = require('os')
local path = require('path')

local exports = {}

-- All intervals and timeouts are in milliseconds

exports.CONNECT_TIMEOUT = 6000
exports.SOCKET_TIMEOUT = 10000
exports.HEARTBEAT_INTERVAL_JITTER = 7000

exports.DATACENTER_MAX_DELAY = 5 * 60 * 1000 -- max connection delay
exports.DATACENTER_MAX_DELAY_JITTER = 7000

exports.SRV_RECORD_FAILURE_DELAY = 15 * 1000
exports.SRV_RECORD_FAILURE_DELAY_JITTER = 15 * 1000

exports.DEFAULT_MONITORING_SRV_QUERIES = {
  '_monitoring_agent._tcp.lon3.prod.monitoring.api.rackspacecloud.com',
  '_monitoring_agent._tcp.ord1.prod.monitoring.api.rackspacecloud.com'
}

if os.type() == 'win32' then
  exports.DEFAULT_PERSISTENT_VARIABLE_PATH = './'
else
  exports.DEFAULT_PERSISTENT_VARIABLE_PATH = '/var/lib/rackspace-monitoring-agent'
end

-- Custom plugins related settings

exports.DEFAULT_CUSTOM_PLUGINS_PATH = path.join(exports.DEFAULT_PERSISTENT_VARIABLE_PATH, 'plugins')
exports.DEFAULT_PLUGIN_TIMEOUT = 30 * 1000
exports.PLUGIN_TYPE_MAP = {string = 'string', int = 'int64', float = 'double', gauge = 'gauge'}

return exports<commit_msg>Change the default custom plugins path to /usr/lib/rackspace-monitoring-agent/plugins.<commit_after>local os = require('os')
local path = require('path')

local exports = {}

-- All intervals and timeouts are in milliseconds

exports.CONNECT_TIMEOUT = 6000
exports.SOCKET_TIMEOUT = 10000
exports.HEARTBEAT_INTERVAL_JITTER = 7000

exports.DATACENTER_MAX_DELAY = 5 * 60 * 1000 -- max connection delay
exports.DATACENTER_MAX_DELAY_JITTER = 7000

exports.SRV_RECORD_FAILURE_DELAY = 15 * 1000
exports.SRV_RECORD_FAILURE_DELAY_JITTER = 15 * 1000

exports.DEFAULT_MONITORING_SRV_QUERIES = {
  '_monitoring_agent._tcp.lon3.prod.monitoring.api.rackspacecloud.com',
  '_monitoring_agent._tcp.ord1.prod.monitoring.api.rackspacecloud.com'
}

if os.type() == 'win32' then
  exports.DEFAULT_PERSISTENT_VARIABLE_PATH = './'
else
  exports.DEFAULT_PERSISTENT_VARIABLE_PATH = '/var/lib/rackspace-monitoring-agent'
end

-- Custom plugins related settings

exports.DEFAULT_CUSTOM_PLUGINS_PATH = '/usr/lib/rackspace-monitoring-agent/plugins'
exports.DEFAULT_PLUGIN_TIMEOUT = 30 * 1000
exports.PLUGIN_TYPE_MAP = {string = 'string', int = 'int64', float = 'double', gauge = 'gauge'}

return exports
{'fraction_non_alphanumeric': 0.10452961672473868, 'fraction_numerical': 0.041811846689895474, 'mean_word_length': 5.716374269005848, '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': '3822789', 'n_tokens_mistral': 888, 'n_tokens_neox': 805, 'n_words': 143}