Did I find the right examples for you? yes no

All Samples(13)  |  Call(10)  |  Derive(0)  |  Import(3)

        def generate_id(with_question_mark=True):
    sequence = "abcdefghijklmopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    sample = random.sample(sequence, 5)
    return ("?" + "".join(sample)) if with_question_mark else ("".join(sample))
        


src/d/i/Dialogs-0.13/src/dialogs/interpretation/statements_builder.py   Dialogs(Download)
from dialogs.resources_manager import ResourcePool
from dialogs.dialog_exceptions import DialogError, GrammaticalError
from dialogs.helpers.helpers import generate_id
 
from dialogs.sentence import *
            return 'myself'
 
        id = generate_id()
        self._unclarified_ids.append(id)
        return id
                #Case negative assertion
                if negative_object:
                    negative_adj = generate_id(with_question_mark=not nominal_group._resolved)
 
                    self._statements.append(ng_id + object_property + negative_adj)
                for subject_id in subjects_id:
                    if subject_id in agentslist:
                        sit_id = generate_id(with_question_mark=False)
                        self._statements.append(subject_id + " experiences " + sit_id)
                    else:
                #   Setting up the field process_statement_to_remove to True
                elif self._process_on_negative:
                    sit_id = generate_id(with_question_mark=True)
                    self._unclarified_ids.append(sit_id)
                    self.process_statements_to_remove = True

src/d/i/Dialogs-0.13/src/dialogs/interpretation/discrimination.py   Dialogs(Download)
from dialogs.sentence import *
from dialogs.sentence_factory import SentenceFactory
from dialogs.helpers.helpers import generate_id
 
from random import choice
 
        if not self.oro: #No ontology server
            return 'UNKNOWN_CONCEPT_' + generate_id(with_question_mark=False)
 
        if not objL:

src/d/i/Dialogs-0.13/src/dialogs/helpers/emotions.py   Dialogs(Download)
 
from dialogs.resources_manager import ResourcePool
from dialogs.helpers.helpers import generate_id, colored_print
 
 
def _send_state(state):
    models = [ResourcePool().default_model]
    policy = {"method": "add", "models": models}
 
    state_id = generate_id(False)