<commit_before>/**
 * @author <NAME>
 * @since v1
 */
load('mod/core/processor.js')
load('mod/core/registry_helper.js')
load('mod/core/originate.js')
load('mod/core/context_storage.js')
load('mod/rest/rest.js')

function Server(locationService, registrarService, accountManagerService, resourcesAPI) {
    const contextStorage = new ContextStorage()
    const config = resourcesAPI.getConfig()
    const InetAddress = Packages.java.net.InetAddress
    config.ip = InetAddress.getLocalHost().getHostAddress()

    const SipFactory = Packages.javax.sip.SipFactory
    const Properties = Packages.java.util.Properties
    const LogManager = Packages.org.apache.logging.log4j.LogManager
    const LOG = LogManager.getLogger()
    let restService
    let sipStack

    // Registration with gateways expire in 5 minutes, so we will re-register in 4
    const proRegExp = 4

    this.start = () => {
        LOG.info('Starting Sip I/O')

        const properties = new Properties()<commit_msg>Added local + external ip to log<commit_after>/**
 * @author <NAME>
 * @since v1
 */
load('mod/core/processor.js')
load('mod/core/registry_helper.js')
load('mod/core/originate.js')
load('mod/core/context_storage.js')
load('mod/rest/rest.js')

function Server(locationService, registrarService, accountManagerService, resourcesAPI) {
    const contextStorage = new ContextStorage()
    const config = resourcesAPI.getConfig()
    const InetAddress = Packages.java.net.InetAddress
    config.ip = InetAddress.getLocalHost().getHostAddress()

    const SipFactory = Packages.javax.sip.SipFactory
    const Properties = Packages.java.util.Properties
    const LogManager = Packages.org.apache.logging.log4j.LogManager
    const LOG = LogManager.getLogger()
    let restService
    let sipStack

    // Registration with gateways expire in 5 minutes, so we will re-register in 4
    const proRegExp = 4

    this.start = () => {
        LOG.info('Starting Sip I/O.' + config.ip)
        LOG.debug('Local IP: ' + config.ip)
        if (config.externalIp != undefined) LOG.debug('External IP: ' + config.externalIp)

        const properties = new Properties()
{'fraction_non_alphanumeric': 0.11734455352968677, 'fraction_numerical': 0.004675081813931743, 'mean_word_length': 3.734513274336283, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2926195', 'n_tokens_mistral': 654, 'n_tokens_neox': 635, 'n_words': 148}