<commit_before>from plugins import (UrlShow, Twitter, Topic, Space, Reminder, TechWednesday,
                     TwitterStream, VUBMenu)
from ircbot.plugin import HelpPlugin
from config import TWITTER_CONFIG


CHANS = {
    '#titoufaitdestests': [
        Topic(),
        Space(),
        TechWednesday(),
        Reminder(),
        Twitter(TWITTER_CONFIG),
        UrlShow(TWITTER_CONFIG),
        TwitterStream(TWITTER_CONFIG, 'TitouOnRails'),
        VUBMenu(),
        HelpPlugin(),
    ],
    'QUERY': [
        TechWednesday(),
        VUBMenu(),
        HelpPlugin(),
    ],
}

# Rate limit for incoming UrLab notifications in seconds
RATELIMIT = {
    # Hal events
    'bell': 120,
    'passage': 3600,
    'kitchen_move': 3600,
    'doors_stairs': 900,

    # Incubator activity stream
    'Event.a créé': 900,
    'Event.a édité': 900,

    'Project.a créé': 900,
    'Project.a édité': 900,
    'Project.participe à': 900,

    'Task.a ajouté la tâche': 3600,
    'Task.a fini la tâche': 3600,
    'Task.a ré-ajouté la tâche': 3600,

    'wiki.revision': 300,
}

try:
    from local_chanconfig import CHANS
except ImportError:
    pass<commit_msg>[enh] Also import local ratelimit<commit_after>from plugins import (UrlShow, Twitter, Topic, Space, Reminder, TechWednesday,
                     TwitterStream, VUBMenu)
from ircbot.plugin import HelpPlugin
from config import TWITTER_CONFIG


CHANS = {
    '#titoufaitdestests': [
        Topic(),
        Space(),
        TechWednesday(),
        Reminder(),
        Twitter(TWITTER_CONFIG),
        UrlShow(TWITTER_CONFIG),
        TwitterStream(TWITTER_CONFIG, 'TitouOnRails'),
        VUBMenu(),
        HelpPlugin(),
    ],
    'QUERY': [
        TechWednesday(),
        VUBMenu(),
        HelpPlugin(),
    ],
}

# Rate limit for incoming UrLab notifications in seconds
RATELIMIT = {
    # Hal events
    'bell': 120,
    'passage': 3600,
    'kitchen_move': 3600,
    'doors_stairs': 900,

    # Incubator activity stream
    'Event.a créé': 900,
    'Event.a édité': 900,

    'Project.a créé': 900,
    'Project.a édité': 900,
    'Project.participe à': 900,

    'Task.a ajouté la tâche': 3600,
    'Task.a fini la tâche': 3600,
    'Task.a ré-ajouté la tâche': 3600,

    'wiki.revision': 300,
}

try:
    from local_chanconfig import CHANS, RATELIMIT
except ImportError:
    pass
{'fraction_non_alphanumeric': 0.11857203569910753, 'fraction_numerical': 0.037399065023374416, 'mean_word_length': 2.5451807228915664, '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': '5164499', 'n_tokens_mistral': 900, 'n_tokens_neox': 797, 'n_words': 198}