<commit_before>//
//  main.swift
//  Perfect Auth Server
//
//  Created by <NAME> on 2017-07-27.
//	Copyright (C) 2017 PerfectlySoft, Inc.
//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Perfect.org open source project
//
// Copyright (c) 2015 - 2016 PerfectlySoft Inc. and the Perfect project authors
// Licensed under Apache License v2.0
//
// See http://perfect.org/licensing.html for license information
//
//===----------------------------------------------------------------------===//
//

import PerfectLib
import PerfectHTTP
import PerfectHTTPServer
import PerfectRequestLogger
import PerfectSession
import PerfectSessionPostgreSQL
import PerfectCrypto
import LocalAuthentication

let _ = PerfectCrypto.isInitialized

#if os(Linux)
let fileRoot = "/perfect-deployed/apidocumentationserver/" // <-- change
var httpPort = 8100
let fname = "./config/ApplicationConfigurationLinux.json"
#else
let fileRoot = ""
var httpPort = 8181
let fname = "./config/ApplicationConfiguration.json"
#endif

var baseURL = ""
var sslCertPath = ""
var sslKeyPath = ""


// =======================================================================
// Configuration of Session
// =======================================================================
SessionConfig.name = "perfectSession" // <-- change
SessionConfig.idle = 86400<commit_msg>default linux port is now 80<commit_after>//
//  main.swift
//  Perfect Auth Server
//
//  Created by <NAME> on 2017-07-27.
//	Copyright (C) 2017 PerfectlySoft, Inc.
//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Perfect.org open source project
//
// Copyright (c) 2015 - 2016 PerfectlySoft Inc. and the Perfect project authors
// Licensed under Apache License v2.0
//
// See http://perfect.org/licensing.html for license information
//
//===----------------------------------------------------------------------===//
//

import PerfectLib
import PerfectHTTP
import PerfectHTTPServer
import PerfectRequestLogger
import PerfectSession
import PerfectSessionPostgreSQL
import PerfectCrypto
import LocalAuthentication

let _ = PerfectCrypto.isInitialized

#if os(Linux)
let fileRoot = "/perfect-deployed/apidocumentationserver/" // <-- change
var httpPort = 80
let fname = "./config/ApplicationConfigurationLinux.json"
#else
let fileRoot = ""
var httpPort = 8181
let fname = "./config/ApplicationConfiguration.json"
#endif

var baseURL = ""
var sslCertPath = ""
var sslKeyPath = ""


// =======================================================================
// Configuration of Session
// =======================================================================
SessionConfig.name = "perfectSession" // <-- change
SessionConfig.idle = 86400
{'fraction_non_alphanumeric': 0.3011747953008188, 'fraction_numerical': 0.02491990032039872, 'mean_word_length': 2.70712401055409, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '5903837', 'n_tokens_mistral': 751, 'n_tokens_neox': 664, 'n_words': 206}