<commit_before>from datetime import date
from dateutil.parser import parse

from amaascore.assets.real_asset import RealAsset
from amaascore.assets.enums import *

class Automobile(RealAsset):

    @staticmethod
    def mandatory_attributes():
        return set()

    @staticmethod
    def additional_attributes():
        return set()

    def __init__(self, asset_manager_id, asset_id, client_id, asset_issuer_id=None,
                 country_id=None, display_name='', description='',
                 venue_id=None, issue_date=None, maturity_date=date.max, comments=None,
                 links=None, references=None, additional=None, currency=None,
                 asset_status='Active', manufacture_year=None,
                 value_date=None, value=None, account_id=None,
                 vehicle_id=None, make=None, model=None, color=None,
                 style=None, genre=None, rarity=None,
                 condition=None, imported=None, imported_country_id=None,
                 engine_id=None, chassis_id=None, steering=None, gearbox=None, gears=None,
                 drive=None, engine_cap=None, power=None, weight=None,
                 speed=None, fuel_type=None, petrol_grade=None, *args, **kwargs):
        super(Automobile, self).__init__(asset_manager_id=asset_manager_id,
                                         asset_id=asset_id, client_id=client_id,
                                         asset_issuer_id=asset_issuer_id, asset_status=asset_status,
                                         display_name=display_name,
                                         description=description, country_id=country_id,
                                         venue_id=venue_id, issue_date=issue_date,
                                         currency=currency, maturity_date=maturity_date,
                                         comments=comments, links=links, references=references,
                                         additional=additional,
                                         *args, **kwargs)
        self.manufacure_year = manufacture_year
        self.value_date = value_date
        self.value = value
        self.account_id = account_id
        self.vehicle_id = vehicle_id
        self.make = make
        self.model = model
        self.color = color
        self.style = style
        self.genre = genre
        self.rarity = rarity
        self.condition = condition
        self.imported = imported
        self.imported_country_id = imported_country_id
        self.engine_id = engine_id
        self.chassis_id = chassis_id
        self.steering = steering
        self.gearbox = gearbox
        self.gears = gears
        self.drive = drive
        self.engine_cap = engine_cap
        self.power = power
        self.weight = weight
        self.speed = speed
        self.fuel_type = fuel_type
        self.petrol_grade = petrol_grade

    @property
    def manufacture_year(self):
        return self._manufacture_year

    @manufacture_year.setter
    def manufacture_year(self, manufacture_year):
        if isinstance(manufacture_year, str):
            manufacture_year = int(manufacture_year)
        self._manufacture_year = manufacture_year
<commit_msg>update automobile class<commit_after>from datetime import date
from dateutil.parser import parse

from amaascore.assets.real_asset import RealAsset
from amaascore.assets.enums import *

class Automobile(RealAsset):

    @staticmethod
    def mandatory_attributes():
        return set()

    @staticmethod
    def additional_attributes():
        return set()

    def __init__(self, asset_manager_id, asset_id, client_id, asset_issuer_id=None,
                 country_id=None, display_name='', description='',
                 venue_id=None, issue_date=None, maturity_date=date.max, comments=None,
                 links=None, references=None, additional=None, currency=None,
                 asset_status='Active', model_year=None,
                 value_date=None, value=None, account_id=None,
                 vehicle_id=None, make=None, model=None, color=None,
                 style=None, genre=None, rarity=None,
                 condition=None, imported=None, imported_country_id=None,
                 engine_id=None, chassis_id=None, steering=None, gearbox=None, gears=None,
                 drive=None, engine_cap=None, power=None, weight=None,
                 speed=None, fuel_type=None, petrol_grade=None, *args, **kwargs):
        super(Automobile, self).__init__(asset_manager_id=asset_manager_id,
                                         asset_id=asset_id, client_id=client_id,
                                         asset_issuer_id=asset_issuer_id, asset_status=asset_status,
                                         display_name=display_name,
                                         description=description, country_id=country_id,
                                         venue_id=venue_id, issue_date=issue_date,
                                         currency=currency, maturity_date=maturity_date,
                                         comments=comments, links=links, references=references,
                                         additional=additional,
                                         *args, **kwargs)
        self.model_year = model_year
        self.value_date = value_date
        self.value = value
        self.account_id = account_id
        self.vehicle_id = vehicle_id
        self.make = make
        self.model = model
        self.color = color
        self.style = style
        self.genre = genre
        self.rarity = rarity
        self.condition = condition
        self.imported = imported
        self.imported_country_id = imported_country_id
        self.engine_id = engine_id
        self.chassis_id = chassis_id
        self.steering = steering
        self.gearbox = gearbox
        self.gears = gears
        self.drive = drive
        self.engine_cap = engine_cap
        self.power = power
        self.weight = weight
        self.speed = speed
        self.fuel_type = fuel_type
        self.petrol_grade = petrol_grade

    @property
    def model_year(self):
        return self._model_year

    @model_year.setter
    def model_year(self, model_year):
        if isinstance(model_year, str):
            model_year = int(model_year)
        self._model_year = model_year

{'fraction_non_alphanumeric': 0.07364280094413847, 'fraction_numerical': 0.0, 'mean_word_length': 1.9062642889803383, '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': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6175999', 'n_tokens_mistral': 1662, 'n_tokens_neox': 1607, 'n_words': 322}