<commit_before>from datetime import datetime

class UserAction():
    @classmethod
    def create(self, db, name):
        now = datetime.now()
        with db.cursor() as cursor:
            cursor.execute(
                '''
                    INSERT INTO user (
                        id, name, created
                    ) VALUES (
                        %s, %s, %s
                    )
                ''',
                (db.uuid_short(), name, now.strftime('%Y-%m-%d %H:%M:%S'))
            )
<commit_msg>UserLoder.create now returns created user id<commit_after>from datetime import datetime

class UserAction():
    @classmethod
    def create(self, db, name):
        now = datetime.now()
        new_id = db.uuid_short()
        with db.cursor() as cursor:
            cursor.execute(
                '''
                    INSERT INTO user (
                        id, name, created
                    ) VALUES (
                        %s, %s, %s
                    )
                ''',
                (new_id, name, now.strftime('%Y-%m-%d %H:%M:%S'))
            )
        return new_id

{'fraction_non_alphanumeric': 0.1147982062780269, 'fraction_numerical': 0.0, 'mean_word_length': 1.0977443609022557, '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': '1271464', 'n_tokens_mistral': 310, 'n_tokens_neox': 283, 'n_words': 73}