<commit_before>from User import User


class Comment(object):
    def __init__(self, commentData):
        self.username_id = None
        self.comment = None
        self.user = None

        self.username_id = commentData['user_id']
        self.comment = commentData['text']
        self.user = User(commentData['user'])

    def getUsernameId(self):
        return self.username_id

    def getComment(self):
        return self.comment

    def getUser(self):
        return self.user<commit_msg>add some useful missing fields mgp25/Instagram-API@34e0ee394a4b63dcf6d5d05845611ddcb1f476e5<commit_after>from User import User


class Comment(object):
    def __init__(self, commentData):
        self.status = None
        self.username_id = None
        self.created_at_utc = None
        self.created_at = None
        self.bit_flags = None
        self.user = None
        self.comment = None
        self.media_id = None
        self.pk = None

        self.status = commentData['status']
        self.username_id = commentData['user_id']
        self.created_at_utc = commentData['created_at_utc']
        self.created_at = commentData['created_at']
        self.bit_flags = commentData['bit_flags']
        self.user = User(commentData['user'])
        self.comment = commentData['text']
        self.media_id = commentData['media_id']
        self.pk = commentData['pk']

    def getStatus(self):
        return self.status

    def getUsernameId(self):
        return self.username_id

    def getCreatedAtUtc(self):
        return self.created_at_utc

    def created_at(self):
        return self.created_at

    def getBitFlags(self):
        return self.bit_flags

    def getUser(self):
        return self.user

    def getComment(self):
        return self.comment

    def getMediaId(self):
        return self.media_id

    def getCommentId(self):
        return self.pk
{'fraction_non_alphanumeric': 0.09052408681842244, 'fraction_numerical': 0.013763896241397565, 'mean_word_length': 2.4870848708487086, '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': '5318532', 'n_tokens_mistral': 584, 'n_tokens_neox': 555, 'n_words': 118}