<commit_before>import datetime
import humanize
from requests_oauthlib import OAuth1Session


def build_models(db):
    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        splitwise_id = db.Column(db.Integer, unique=True)
        splitwise_access_token = db.Column(db.String(40), unique=True)
        resource_owner_key = db.Column(db.String(40), unique=True)
        resource_owner_secret = db.Column(db.String(40), unique=True)
        last_update = db.Column(db.DateTime)

        def __init__(self, resource_owner_key, resource_owner_secret):
            self.resource_owner_key = resource_owner_key
            self.resource_owner_secret = resource_owner_secret

        def pretty_update(self):
            if self.last_update is None:<commit_msg>Don't need splitwise_access_token<commit_after>import datetime
import humanize
from requests_oauthlib import OAuth1Session


def build_models(db):
    class User(db.Model):
        id = db.Column(db.Integer, primary_key=True)
        splitwise_id = db.Column(db.Integer, unique=True)
        resource_owner_key = db.Column(db.String(40), unique=True)
        resource_owner_secret = db.Column(db.String(40), unique=True)
        last_update = db.Column(db.DateTime)

        def __init__(self, resource_owner_key, resource_owner_secret):
            self.resource_owner_key = resource_owner_key
            self.resource_owner_secret = resource_owner_secret

        def pretty_update(self):
            if self.last_update is None:
{'fraction_non_alphanumeric': 0.08712871287128712, 'fraction_numerical': 0.007920792079207921, 'mean_word_length': 3.4985163204747773, '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': '2159754', 'n_tokens_mistral': 462, 'n_tokens_neox': 449, 'n_words': 84}