<commit_before>from pyramid.threadlocal import get_current_registry

from .core import ActivityFinished, ActivityStarted, ProcessError, FlowNode, MakerFlowNode
from .event import Event
from .workitem import DecisionWorkItem, StartWorkItem
from dace.processdefinition.core import Path, Transaction


class Gateway(FlowNode):
    pass

# non parallel avec condition avec default
class ExclusiveGateway(Gateway, MakerFlowNode):

    def __init__(self, definition):
        super(ExclusiveGateway, self).__init__(definition)

    def start(self, transaction):
        registry = get_current_registry()
        registry.notify(ActivityStarted(self))
        self.decide(transaction)

    def find_executable_paths(self, source_path, source):
        for transition in self.outgoing:
            if transition.sync or transition.condition(self.process):<commit_msg>remove unused import<commit_after>from pyramid.threadlocal import get_current_registry

from .core import ActivityFinished, ActivityStarted, FlowNode, MakerFlowNode
from dace.processdefinition.core import Path, Transaction


class Gateway(FlowNode):
    pass

# non parallel avec condition avec default
class ExclusiveGateway(Gateway, MakerFlowNode):

    def __init__(self, definition):
        super(ExclusiveGateway, self).__init__(definition)

    def start(self, transaction):
        registry = get_current_registry()
        registry.notify(ActivityStarted(self))
        self.decide(transaction)

    def find_executable_paths(self, source_path, source):
        for transition in self.outgoing:
            if transition.sync or transition.condition(self.process):
{'fraction_non_alphanumeric': 0.07230392156862746, 'fraction_numerical': 0.0, 'mean_word_length': 4.573378839590443, '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': '3604632', 'n_tokens_mistral': 428, 'n_tokens_neox': 414, 'n_words': 115}