<commit_before>import logging
import pkg_resources

ENTRYPOINT = "chtulhubot.commands"

from cthulhubot.commands.config import *
from cthulhubot.commands.package import *
from cthulhubot.commands.sleep import *
from cthulhubot.commands.tests import *
from cthulhubot.commands.vcs import *
from cthulhubot.commands.version import *

log = logging.getLogger("cthulhubot.commands")

ADDITIONAL_COMMANDS = {}

def get_core_commands():
    return dict([
        (globals()[candidate].identifier, globals()[candidate]) for candidate in globals().keys() if hasattr(globals()[candidate], 'identifier')
    ])


def get_available_commands():
    commands = get_core_commands()
    
    # add setuptools-registered commands
    for dist in pkg_resources.working_set.iter_entry_points("cthulhubot.commands"):
        try:
            commands[dist.name] = dist.load()
        except ImportError, err:<commit_msg>Build must be imported to be recognized<commit_after>import logging
import pkg_resources

ENTRYPOINT = "chtulhubot.commands"

from cthulhubot.commands.build import *
from cthulhubot.commands.config import *
from cthulhubot.commands.package import *
from cthulhubot.commands.sleep import *
from cthulhubot.commands.tests import *
from cthulhubot.commands.vcs import *
from cthulhubot.commands.version import *

log = logging.getLogger("cthulhubot.commands")

ADDITIONAL_COMMANDS = {}

def get_core_commands():
    return dict([
        (globals()[candidate].identifier, globals()[candidate]) for candidate in globals().keys() if hasattr(globals()[candidate], 'identifier')
    ])


def get_available_commands():
    commands = get_core_commands()
    
    # add setuptools-registered commands
    for dist in pkg_resources.working_set.iter_entry_points("cthulhubot.commands"):
        try:
            commands[dist.name] = dist.load()
        except ImportError, err:
{'fraction_non_alphanumeric': 0.10224839400428265, 'fraction_numerical': 0.0, 'mean_word_length': 4.57910447761194, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6177766', 'n_tokens_mistral': 574, 'n_tokens_neox': 569, 'n_words': 122}