<commit_before>class User(object):
    """Convore User object."""

    def __init__(self):
        self.username = None
        self.url = None
        self.id = None
        self.img = None

    def import_from_api(self, dict):
        self.username = dict['username']
        self.url = dict['url']
        self.id = dict['id']
        self.img = dict['img']

    def __repr__(self):
        return '<user @%s>' % (self.username)

class Group(object):
    """Convore Group object."""
    
    def __init__(self):
        self.kind = None
        self.members_count = None
        self.name = None
        self.creator = None
        self.url = None
        self.slug = None
        self.date_latest_message = None
        self.date_created = None
        self.topics_count = None
        self.unread = None
        self.id = None

    def import_from_api(self, d):
#        self.kind = dict['kind']
        self.members_count = d['members_count']
        self.name = d['name']
        self.creator = User()
        self.creator.import_from_api(d['creator'])
        self.url = d['url']
        self.slug = d['slug']
        self.date_latest_message = d['date_latest_message']
        self.date_created = d['date_created']
        # self.topics_count = dict['topics_count']
        # self.unread = dict['unread']
        self.id = d['id']

    def __repr__(self):
        return '<group %s>' % (self.slug)<commit_msg>dict.get() defualts<commit_after>class User(object):
    """Convore User object."""

    def __init__(self):
        self.username = None
        self.url = None
        self.id = None
        self.img = None

    def import_from_api(self, dict):
        self.username = dict['username']
        self.url = dict['url']
        self.id = dict['id']
        self.img = dict['img']

    def __repr__(self):
        return '<user @%s>' % (self.username)

class Group(object):
    """Convore Group object."""
    
    def __init__(self):
        self.kind = None
        self.members_count = None
        self.name = None
        self.creator = None
        self.url = None
        self.slug = None
        self.date_latest_message = None
        self.date_created = None
        self.topics_count = None
        self.unread = None
        self.id = None
        self.joined = False

    def import_from_api(self, d):
        self.creator = User()

        self.kind = d.get('kind', None)
        self.members_count = d.get('members_count', None)
        self.name = d.get('name', None)
        self.creator.import_from_api(d.get('creator', None))
        self.url = d.get('url', None)
        self.slug = d.get('slug', None)
        self.date_latest_message = d.get('date_latest_message', None)
        self.date_created = d.get('date_created', None)
        self.topics_count = d.get('topics_count', None)
        self.unread = d.get('unread', None)
        self.id = d.get('id', None)
        
    def __repr__(self):
        return '<group %s>' % (self.slug)
{'fraction_non_alphanumeric': 0.13647058823529412, 'fraction_numerical': 0.0, 'mean_word_length': 2.0305498981670063, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4495869', 'n_tokens_mistral': 946, 'n_tokens_neox': 942, 'n_words': 199}