<commit_before>'''
A bunch of classes that describes a IoT object integrated in a project. 
'''

class ObjectInfo:
    '''
    Some piece of information about an object.

    Describes a IoT object integrated in a project.
    '''

    def __init__(self):
        self._project_name = ""
        self._object_name = ""
        self._delivery_security_process_phase = ""
        self._security_phase_progress = ""
        self._is_b2b = False
        self._is_b2c = False
        self._is_eiot = False
        self._person_in_charge = ""
        self._has_go_from_stakeholders = False
        self._result = ""
        self._high_risks_counter = 0
        self._moderate_risks_counter = 0
        self._light_risks_counter = 0

    @property
    def project_name(self):
        return self._project_name

    @property
    def object_name(self):
        return self._object_name

    @property
    def delivery_security_process_phase(self):
        '''It can be Evaluation, Qualification, Testing, Audit, In Life.'''
        return self._delivery_security_process_phase

    @property
    def security_phase_progress(self):
        return self._security_phase_progress

    @property
    def is_b2b(self):
        return self._is_b2b

    @property
    def is_b2c(self):
        return self._is_b2c

    @property
    def is_eiot(self):
        return self._is_eiot

    @property
    def person_in_charge(self):
        return self._person_in_charge

    @property
    def has_go_from_stakeholders(self):
        '''A boolean value which informs if that object has a Go for the current Security Phase.'''
        return self._has_go_from_stakeholders

    @property
    def object_type(self):
        '''A string that describes if the object is a B2C, a B2B or an EIoT one.'''
        object_type = ""

        if self._is_b2b:
            object_type = "B2B"
        elif self._is_b2c:
            object_type = "B2C"
        elif self._is_eiot:
            object_type = "eIoT"
    
        return object_type

    @property
    def result(self):
        return self._result

    @property
    def high_risks_counter(self):
        return self._high_risks_counter

    @property
    def moderate_risks_counter(self):
        return self._moderate_risks_counter

    @property
    def light_risks_counter(self):
        return self._light_risks_counter

    @project_name.setter
    def project_name(self, value):
        self._project_name = value

    @object_name.setter
    def object_name(self, value):
        self._object_name = value

    @delivery_security_process_phase.setter
    def delivery_security_process_phase(self, value):
        '''It can be Evaluation, Qualification, Testing, Audit, In Life.'''
        self._delivery_security_process_phase = value

    @security_phase_progress.setter
    def security_phase_progress(self, value):
        '''It can be Not Started, In Progress, Done or Not Evaluated'''
        self._security_phase_progress = value

    @is_b2b.setter
    def is_b2b(self, boolean):
        self._is_b2b = boolean

    @is_b2c.setter
    def is_b2c(self, boolean):
        self._is_b2c = boolean

    @is_eiot.setter
    def is_eiot(self, boolean):
        self._is_eiot = boolean

    @person_in_charge.setter
    def person_in_charge(self, string):
        self._person_in_charge = string

    @has_go_from_stakeholders.setter
    def has_go_from_stakeholders(self, boolean):
        self._has_go_from_stakeholders = boolean

    @result.setter
    def result(self, string):
        self._result = string

    @high_risks_counter.setter
    def high_risks_counter(self, value):
        self._high_risks_counter = int(value)

    @moderate_risks_counter.setter
    def moderate_risks_counter(self, value):
        self._moderate_risks_counter = int(value)

    @light_risks_counter.setter
    def light_risks_counter(self, value):
        self._light_risks_counter = int(value)<commit_msg>Add a "comment" member in the IoTProjectInfo class.<commit_after>'''
A bunch of classes that describes a IoT object integrated in a project. 
'''

class ObjectInfo:
    '''
    Some piece of information about an object.

    Describes a IoT object integrated in a project.
    '''

    def __init__(self):
        self._project_name = ""
        self._object_name = ""
        self._delivery_security_process_phase = ""
        self._security_phase_progress = ""
        self._is_b2b = False
        self._is_b2c = False
        self._is_eiot = False
        self._person_in_charge = ""
        self._has_go_from_stakeholders = False
        self._comment = ""
        self._result = ""
        self._high_risks_counter = 0
        self._moderate_risks_counter = 0
        self._light_risks_counter = 0

    @property
    def project_name(self):
        return self._project_name

    @property
    def object_name(self):
        return self._object_name

    @property
    def delivery_security_process_phase(self):
        '''It can be Evaluation, Qualification, Testing, Audit, In Life.'''
        return self._delivery_security_process_phase

    @property
    def security_phase_progress(self):
        return self._security_phase_progress

    @property
    def is_b2b(self):
        return self._is_b2b

    @property
    def is_b2c(self):
        return self._is_b2c

    @property
    def is_eiot(self):
        return self._is_eiot

    @property
    def person_in_charge(self):
        return self._person_in_charge

    @property
    def has_go_from_stakeholders(self):
        '''A boolean value which informs if that object has a Go for the current Security Phase.'''
        return self._has_go_from_stakeholders

    @property
    def object_type(self):
        '''A string that describes if the object is a B2C, a B2B or an EIoT one.'''
        object_type = ""

        if self._is_b2b:
            object_type = "B2B"
        elif self._is_b2c:
            object_type = "B2C"
        elif self._is_eiot:
            object_type = "eIoT"
    
        return object_type

    @property
    def comment(self):
        return self.__comment

    @property
    def result(self):
        return self._result

    @property
    def high_risks_counter(self):
        return self._high_risks_counter

    @property
    def moderate_risks_counter(self):
        return self._moderate_risks_counter

    @property
    def light_risks_counter(self):
        return self._light_risks_counter

    @project_name.setter
    def project_name(self, value):
        self._project_name = value

    @object_name.setter
    def object_name(self, value):
        self._object_name = value

    @delivery_security_process_phase.setter
    def delivery_security_process_phase(self, value):
        '''It can be Evaluation, Qualification, Testing, Audit, In Life.'''
        self._delivery_security_process_phase = value

    @security_phase_progress.setter
    def security_phase_progress(self, value):
        '''It can be Not Started, In Progress, Done or Not Evaluated'''
        self._security_phase_progress = value

    @is_b2b.setter
    def is_b2b(self, boolean):
        self._is_b2b = boolean

    @is_b2c.setter
    def is_b2c(self, boolean):
        self._is_b2c = boolean

    @is_eiot.setter
    def is_eiot(self, boolean):
        self._is_eiot = boolean

    @person_in_charge.setter
    def person_in_charge(self, string):
        self._person_in_charge = string

    @has_go_from_stakeholders.setter
    def has_go_from_stakeholders(self, boolean):
        self._has_go_from_stakeholders = boolean

    @comment.setter
    def comment(self, string):
        self.__comment = string

    @result.setter
    def result(self, string):
        self._result = string

    @high_risks_counter.setter
    def high_risks_counter(self, value):
        self._high_risks_counter = int(value)

    @moderate_risks_counter.setter
    def moderate_risks_counter(self, value):
        self._moderate_risks_counter = int(value)

    @light_risks_counter.setter
    def light_risks_counter(self, value):
        self._light_risks_counter = int(value)
{'fraction_non_alphanumeric': 0.07723728184181211, 'fraction_numerical': 0.0051986632008912, 'mean_word_length': 2.633093525179856, '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': '6370565', 'n_tokens_mistral': 2574, 'n_tokens_neox': 2471, 'n_words': 568}