<commit_before>"""
file: repository.py
author: <NAME> <<EMAIL>>
date: October 2013
description: Holds the repository abstraction class and ORM
"""
import uuid
from db import *
from datetime import datetime

class Repository(Base):
    """
    Commit():
    description: The SQLAlchemy ORM for the repository table
    """
    __tablename__ = 'repositories'
    
    id = Column(String, primary_key=True)
    name = Column(String)
    url = Column(String)
    
    creation_date = Column(String)
    ingestion_date = Column(String)
    analysis_date = Column(String)
    
    def __init__(self, repoDict):
        """
        __init__(): Dictonary -> NoneType
        """
        self.id = str(uuid.uuid1())
        self.creation_date = str(datetime.now().replace(microsecond=0))
        self.__dict__.update(repoDict)
    
    def __repr__(self):
        return "<Repository: %s - %s>" % (self.name, self.id)<commit_msg>Added email field to Repository Model in CAS_Analyzer<commit_after>"""
file: repository.py
author: <NAME> <<EMAIL>>
date: October 2013
description: Holds the repository abstraction class and ORM
"""
import uuid
from db import *
from datetime import datetime

class Repository(Base):
    """
    Commit():
    description: The SQLAlchemy ORM for the repository table
    """
    __tablename__ = 'repositories'
    
    id = Column(String, primary_key=True)
    name = Column(String)
    url = Column(String)
    
    creation_date = Column(String)
    ingestion_date = Column(String)
    analysis_date = Column(String)
    email = Column(String)
    
    def __init__(self, repoDict):
        """
        __init__(): Dictonary -> NoneType
        """
        self.id = str(uuid.uuid1())
        self.creation_date = str(datetime.now().replace(microsecond=0))
        self.__dict__.update(repoDict)
    
    def __repr__(self):
        return "<Repository: %s - %s>" % (self.name, self.id)

{'fraction_non_alphanumeric': 0.1179245283018868, 'fraction_numerical': 0.006289308176100629, 'mean_word_length': 3.0274261603375527, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1145148', 'n_tokens_mistral': 596, 'n_tokens_neox': 575, 'n_words': 150}