@defer.inlineCallbacks
    def on_invite_request(self, origin, pdu):
        event = pdu

        event.internal_metadata.outlier = True

        event.signatures.update(
            compute_event_signature(
                event,
                self.hs.hostname,
                self.hs.config.signing_key[0]
            )
        )

        context = yield self.state_handler.compute_event_context(event)

        event_stream_id, max_stream_id = yield self.store.persist_event(
            event,
            context=context,
        )

        target_user = UserID.from_string(event.state_key)
        with PreserveLoggingContext():
            self.notifier.on_new_room_event(
                event, event_stream_id, max_stream_id,
                extra_users=[target_user],
            )

        defer.returnValue(event)
Create the directory using the optional `base` and the port specs.
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/federation.py/FederationHandler.on_invite_request--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/tej/init.py/AssembleDirectoryMixin.assemble_directory