<commit_before>#MAEC Candidate Indicator Class

#Copyright (c) 2013, The MITRE Corporation
#All rights reserved.

#Compatible with MAEC v4.0
#Last updated 08/14/2013

import maec
import maec.bindings.maec_bundle as bundle_binding
from maec.bundle.object_reference import ObjectReference
from maec.bundle.behavior_reference import BehaviorReference
from cybox.common import VocabString
from cybox.core import ActionReference

class CandidateIndicator(maec.Entity):
    def init(self, id, generator):
        super(CandidateIndicator, self).__init__()
        if id is not None:
            self.id = id
        elif generator is not None:
            self.generator = generator
            self.id = self.generator.generate_candidate_indicator_id()
        else:
            raise Exception("Must specify id or generator for CandidateIndicator constructor")
        self.creation_datetime = None
        self.lastupdate_datetime = None
        self.version = None<commit_msg>Fixed typo in CandidateIndicator constructor<commit_after>#MAEC Candidate Indicator Class

#Copyright (c) 2013, The MITRE Corporation
#All rights reserved.

#Compatible with MAEC v4.0
#Last updated 08/14/2013

import maec
import maec.bindings.maec_bundle as bundle_binding
from maec.bundle.object_reference import ObjectReference
from maec.bundle.behavior_reference import BehaviorReference
from cybox.common import VocabString
from cybox.core import ActionReference

class CandidateIndicator(maec.Entity):
    def __init__(self, id, generator):
        super(CandidateIndicator, self).__init__()
        if id is not None:
            self.id = id
        elif generator is not None:
            self.generator = generator
            self.id = self.generator.generate_candidate_indicator_id()
        else:
            raise Exception("Must specify id or generator for CandidateIndicator constructor")
        self.creation_datetime = None
        self.lastupdate_datetime = None
        self.version = None
{'fraction_non_alphanumeric': 0.061522945032778616, 'fraction_numerical': 0.014120020171457387, 'mean_word_length': 3.4384787472035794, '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': '3727026', 'n_tokens_mistral': 540, 'n_tokens_neox': 527, 'n_words': 167}