<commit_before>__author__ = '<NAME>'

import opencog.cogserver
from web.api.apimain import RESTAPI
from threading import Thread

# Endpoint configuration
# To allow public access, set to 0.0.0.0; for local access, set to 127.0.0.1
IP_ADDRESS = '127.0.0.1'
PORT = 5001


class Start(opencog.cogserver.Request):
    """
    Implements a CogServer Module to load upon startup that will load the REST API defined in apimain.py

    Prerequisites:
        1) Requires installation of the Python dependencies by running:
            sudo ./install_dependencies.sh
<commit_msg>Use default port<commit_after>__author__ = '<NAME>'

import opencog.cogserver
from web.api.apimain import RESTAPI
from threading import Thread

# Endpoint configuration
# To allow public access, set to 0.0.0.0; for local access, set to 127.0.0.1
IP_ADDRESS = '127.0.0.1'
PORT = 5000


class Start(opencog.cogserver.Request):
    """
    Implements a CogServer Module to load upon startup that will load the REST API defined in apimain.py

    Prerequisites:
        1) Requires installation of the Python dependencies by running:
            sudo ./install_dependencies.sh

{'fraction_non_alphanumeric': 0.07699037620297462, 'fraction_numerical': 0.03674540682414698, 'mean_word_length': 3.5943775100401605, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '6592485', 'n_tokens_mistral': 379, 'n_tokens_neox': 345, 'n_words': 126}