<commit_before># Used by Log class
[logging]
# Application name
name: srv
# Possible values: trace, debug, info, warn, error, fatal
level: trace
# Possible values: false, true (SLOW! - shows file and line where logging took place)
src: false
# Possible values: short, long, simple, json, bunyan
outputMode: long

# Used by server.HTTPServer class
[server.http]
# Setting to true prevents HTTP starting server
disabled: false
# Server port
port: 8080
# Base path for HTTP server
basePath: /

# Used by server.HTTPSServer class
[server.https]
# Setting to true prevents HTTPS starting server
disabled: true
# Server port
port: 8043
# Base path for HTTPS server
basePath: /
# File for SSL key
# Relative to path process.cwd()
sslKey: cert/server.key
# File for SSL certificate
# Relative to path process.cwd()
sslCert: cert/server.crt

# Used by server.Router class
[server.router]
# List of router middleware modules to be loaded separated by a comma (,)
# Modules are added to router in specified order
# Every specified module should be configured with 'server.router.moduleName' section
# Module configuration section should have 'module' property specifying name of module to load with require()
# Loaded module can export class directly:
# module.exports = RouterModuleClass
# If loded module exports class as a property:
# exports.moduleName = RouterModuleClass
# then configuration should provide property name in 'class' property
modules: session, static, requestLog, serverError, upload, form, json, xml

[server.router.session]
module: srv-server
class: Session
secret: DoNotTe11@nyone
# Session timeout in miliseconds. 1000*60*30 = 1800000 (30 minutes)
maxAge: 1800000
<commit_msg>Added named router configuration sample to config.properties<commit_after># Used by Log class
[logging]
# Application name
name: srv
# Possible values: trace, debug, info, warn, error, fatal
level: trace
# Possible values: false, true (SLOW! - shows file and line where logging took place)
src: false
# Possible values: short, long, simple, json, bunyan
outputMode: long

# Used by server.HTTPServer class
[server.http]
# Setting to true prevents HTTP starting server
disabled: false
# Server port
port: 8080
# Base path for HTTP server
basePath: /
# Name for router configuration
#routerName: httpRouter

# Used by server.HTTPSServer class
[server.https]
# Setting to true prevents HTTPS starting server
disabled: true
# Server port
port: 8043
# Base path for HTTPS server
basePath: /
# File for SSL key
# Relative to path process.cwd()
sslKey: cert/server.key
# File for SSL certificate
# Relative to path process.cwd()
sslCert: cert/server.crt
# Name for router configuration
#routerName: httpsRouter

# Used by server.Router class
[server.router]
# List of router middleware modules to be loaded separated by a comma (,)
# Modules are added to router in specified order
# Every specified module should be configured with 'server.router.moduleName' section
# Module configuration section should have 'module' property specifying name of module to load with require()
# Loaded module can export class directly:
# module.exports = RouterModuleClass
# If loded module exports class as a property:
# exports.moduleName = RouterModuleClass
# then configuration should provide property name in 'class' property
modules: session, static, requestLog, serverError, upload, form, json, xml

# Named router configuration example
#[server.router.httpRouter]
#modules: session, static, requestLog, serverError, upload, form, json, xml

#[server.router.httpsRouter]
#modules: session, static, requestLog, serverError, upload, form, json, xml

[server.router.session]
module: srv-server
class: Session
secret: <PASSWORD>
# Session timeout in miliseconds. 1000*60*30 = 1800000 (30 minutes)
maxAge: 1800000

{'fraction_non_alphanumeric': 0.07798043880518107, 'fraction_numerical': 0.017446471054718478, 'mean_word_length': 5.275290215588723, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6777099', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1024, 'n_words': 470}