<commit_before># -*- coding: utf-8 -*-
import hashlib
import datetime
import os

from osfoffline.database_manager.json_type import JSONEncodedDict
from sqlalchemy import ForeignKey, Enum
from sqlalchemy.orm import relationship, backref, validates
from sqlalchemy import Column, Integer, Boolean, String, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.ext.hybrid import hybrid_property

Base = declarative_base()


class User(Base):
    __tablename__ = 'user'

    id = Column(Integer, primary_key=True)
    full_name = Column(String)
    osf_login = Column(String, unique=True)
    osf_password = Column(String)
    osf_local_folder_path = Column(String)
    oauth_token = Column(String)
    osf_id = Column(String, unique=True, nullable=True, default=None)  # multiple things allowed to be null

    logged_in = Column(Boolean, default=False)

    guid_for_top_level_nodes_to_sync = Column(JSONEncodedDict(512), default=[])

    nodes = relationship(
        "Node",
        backref=backref('user'),
        cascade="all, delete-orphan"
    )

    files = relationship(
        "File",<commit_msg>Add comment for clarity<commit_after># -*- coding: utf-8 -*-
import hashlib
import datetime
import os

from osfoffline.database_manager.json_type import JSONEncodedDict
from sqlalchemy import ForeignKey, Enum
from sqlalchemy.orm import relationship, backref, validates
from sqlalchemy import Column, Integer, Boolean, String, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.ext.hybrid import hybrid_property

Base = declarative_base()


class User(Base):
    __tablename__ = 'user'

    id = Column(Integer, primary_key=True)
    full_name = Column(String)
    osf_login = Column(String, unique=True)
    osf_password = Column(String)  # actually a hash of the submitted password
    osf_local_folder_path = Column(String)
    oauth_token = Column(String)
    osf_id = Column(String, unique=True, nullable=True, default=None)  # multiple things allowed to be null

    logged_in = Column(Boolean, default=False)

    guid_for_top_level_nodes_to_sync = Column(JSONEncodedDict(512), default=[])

    nodes = relationship(
        "Node",
        backref=backref('user'),
        cascade="all, delete-orphan"
    )

    files = relationship(
        "File",
{'fraction_non_alphanumeric': 0.08926261319534282, 'fraction_numerical': 0.0034497628288055198, 'mean_word_length': 4.382830626450116, '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': '7643672', 'n_tokens_mistral': 721, 'n_tokens_neox': 692, 'n_words': 181}