<commit_before>'''
Defines all the possible activity types.


##BOILERPLATE_COPYRIGHT
##BOILERPLATE_COPYRIGHT_END
'''

# NOTE: The following list should not change order!
# New items should always be added at end, and existing
# items should not be re-ordered!
__activities = [
    'new_post',
    'edit_post',
    'delete_post',
    'new_user',
    'edit_user',
    'edit_self',
    'group_admin'
]

activity_table = dict((v,k) for k,v in \
    enumerate(__activities, start=ord('a')))<commit_msg>activity table should be a pickle-able object... screw the string lookup<commit_after>'''
Defines all the possible activity types.


##BOILERPLATE_COPYRIGHT
##BOILERPLATE_COPYRIGHT_END
'''

activities = [
    'new_post',
    'edit_post',
    'delete_post',
    'new_user',
    'edit_user',
    'edit_self',
    'group_admin'
]

def get_activity_dict(default=False):
    '''
    Returns a fresh dictionary for defining activities.

    All values will be set to false by default.

    @param default: The default value to set all activities to.
    '''
    return dict((i, default) for i in activities)
{'fraction_non_alphanumeric': 0.11101000909918107, 'fraction_numerical': 0.0, 'mean_word_length': 3.824561403508772, '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': '2856368', 'n_tokens_mistral': 362, 'n_tokens_neox': 355, 'n_words': 108}