<commit_before>__author__ = 'dgraziotin'

import resource
import serializable


class Package(serializable.Serializable):
    def __init__(self, name=''):
        #TODO check default values
        self.id = ''
        self.name = name
        self.title = ''
        self.type = None
        self.version = ''
        self.state = ''
        self.revision_id = ''
        self.url = ''
        self.ckan_url = ''
        self.download_url = ''
        self.notes_rendered = ''
        self.notes = ''
        self.tracking_summary = None

        self.license_id = ''
        self.license = ''
        self.license_title = ''
        self.licese_url = ''

        self.author = ''
        self.author_email = ''
        self.maintainer = ''
        self.maintainer_email = ''

        self.tags = []
        self.groups = []
        self.isopen = True
        self.metadata_created = ''
        self.metadata_modified = ''
        self.relationships = []

        self.resources = []

        self.ratings_count = 0
        self.rating_average = 0.0

        self.extras = None<commit_msg>Fixes #9, still a long way to #2<commit_after>__author__ = 'dgraziotin'

import resource
import serializable


class Package(serializable.Serializable):
    def __init__(self, name=''):
        self.id = ''
        self.name = name
        self.title = ''
        self.type = None
        self.version = None
        self.state = ''
        self.revision_id = ''
        self.revision_timestamp = ''
        self.url = None
        self.ckan_url = ''
        self.download_url = ''
        self.notes_rendered = ''
        self.notes = ''
        #todo convert to object
        self.tracking_summary = {
            'total' : 0,
            'recent' : 0
        }

        self.license_id = 'notspecified'
        self.license = ''
        self.license_title = 'License Not Specified'
        self.licese_url = ''

        self.author = ''
        self.author_email = ''
        self.maintainer = ''
        self.maintainer_email = ''
        self.owner_org = None
        self.organization = None

        self.tags = [] #TODO convert to objects
        self.num_tags = 0
        self.groups = [] #TODO convert to objects
        self.isopen = True
        self.private = False
        self.metadata_created = ''
        self.metadata_modified = ''
        self.relationships = [] #TODO convert to objects

        self.resources = []
        self.num_resources = 0

        self.ratings_count = 0
        self.rating_average = 0.0

        self.extras = [] #TODO convert to objects
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.004662004662004662, 'mean_word_length': 1.690700104493208, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5596503', 'n_tokens_mistral': 776, 'n_tokens_neox': 736, 'n_words': 147}