<commit_before>from __future__ import absolute_import
import random
from .jokes import jokes


def get_local_joke():
    return random.choice(jokes)


if __name__ == '__main__':
    print(get_local_joke())<commit_msg>Import new jokes lists, allow selection<commit_after>from __future__ import absolute_import
import random
from .jokes import geek_neutral, geek_explicit, chuck_nerdy

def get_joke(category='neutral'):
    jokes = {
        'neutral': geek_neutral,
        'explicit': geek_explicit,
        'chuck': chuck_nerdy,
        'all': geek_neutral + geek_explicit + chuck_nerdy,
    }[category]
    return random.choice(jokes)


if __name__ == '__main__':
    print(get_joke('all'))
{'fraction_non_alphanumeric': 0.09971098265895954, 'fraction_numerical': 0.0, 'mean_word_length': 4.456692913385827, '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': '2440099', 'n_tokens_mistral': 234, 'n_tokens_neox': 225, 'n_words': 54}