<commit_before># encoding: utf-8
"""
supervisor.py

Created by <NAME> on 2011-11-29.
Copyright (c) 2011 Exa Networks. All rights reserved.
"""

import os
import sys
import signal

from .util.pid import PID
from .util.daemon import Daemon

from .reactor.redirector.manager import RedirectorManager
from .reactor.content.manager import ContentManager
from .reactor.client.manager import ClientManager
from .reactor.resolver.manager import ResolverManager
from .network.async import Poller
from .network.server import Server
from .html.page import Page
from .monitor import Monitor

from .reactor import Reactor

from .configuration import load
from exaproxy.util.log import Logger
from exaproxy.util.log import LogWriter
from exaproxy.util.log import LogManager

import time

if True:
	from leak import objgraph
else:
	objgraph = None

class Supervisor(object):<commit_msg>Do not activate memory profiling by default<commit_after># encoding: utf-8
"""
supervisor.py

Created by <NAME> on 2011-11-29.
Copyright (c) 2011 Exa Networks. All rights reserved.
"""

import os
import sys
import signal

from .util.pid import PID
from .util.daemon import Daemon

from .reactor.redirector.manager import RedirectorManager
from .reactor.content.manager import ContentManager
from .reactor.client.manager import ClientManager
from .reactor.resolver.manager import ResolverManager
from .network.async import Poller
from .network.server import Server
from .html.page import Page
from .monitor import Monitor

from .reactor import Reactor

from .configuration import load
from exaproxy.util.log import Logger
from exaproxy.util.log import LogWriter
from exaproxy.util.log import LogManager

import time

if False:
	from leak import objgraph
else:
	objgraph = None

class Supervisor(object):
{'fraction_non_alphanumeric': 0.06655386350817823, 'fraction_numerical': 0.014664410603496898, 'mean_word_length': 4.893687707641196, 'pattern_counts': {'":': 0, '<': 5, '<?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': '743199', 'n_tokens_mistral': 536, 'n_tokens_neox': 510, 'n_words': 197}