<commit_before>import logging

from libBGG.PropertiedObject import PropertiedObject

log = logging.getLogger(__name__)


class UserException(Exception):
    '''Exception wrapper for User specific exceptions.'''
    pass


class User(PropertiedObject):
    '''Store information about a BGG User. The init function takes a list of valid
    proprties defined by boardgame.valid_properties. Properties that are lists can
    be given as a single item or as a list.'''

    # This should really contain the correct types as well...
    valid_properties = [
        'name', 'hot10', 'top10', 'firstname', 'lastname', 'yearregistered', 'lastlogin',
        'stateorprovince', 'country', 'traderating', 'bggid'
    ]

    def __init__(self, **kwargs):
        self.valid_properties = User.valid_properties
        super(User, self).__init__(**kwargs)
        # force lists to be lists
        for l in ['top10', 'hot10']:
            try:<commit_msg>use correct attrbute: bgid instead of bggid in User class.<commit_after>import logging

from libBGG.PropertiedObject import PropertiedObject

log = logging.getLogger(__name__)


class UserException(Exception):
    '''Exception wrapper for User specific exceptions.'''
    pass


class User(PropertiedObject):
    '''Store information about a BGG User. The init function takes a list of valid
    proprties defined by boardgame.valid_properties. Properties that are lists can
    be given as a single item or as a list.'''

    # This should really contain the correct types as well...
    valid_properties = [
        'name', 'hot10', 'top10', 'firstname', 'lastname', 'yearregistered', 'lastlogin',
        'stateorprovince', 'country', 'traderating', 'bgid'
    ]

    def __init__(self, **kwargs):
        self.valid_properties = User.valid_properties
        super(User, self).__init__(**kwargs)
        # force lists to be lists
        for l in ['top10', 'hot10']:
            try:
{'fraction_non_alphanumeric': 0.10155440414507771, 'fraction_numerical': 0.008290155440414507, 'mean_word_length': 3.3986332574031892, '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': '3985101', 'n_tokens_mistral': 549, 'n_tokens_neox': 532, 'n_words': 190}