registers a bus name.
170822
async def request_name_async(self, bus_name, flags, error = None, timeout = DBUS.TIMEOUT_USE_DEFAULT) :
        ""
        assert self.loop != None, "no event loop to attach coroutine to"
        if not self._registered_bus_names_listeners :
            self._registered_bus_names_listeners = True # do first in case of reentrant call
            await self.connection.bus_add_match_action_async \
              (
                rule = "type=signal,interface=org.freedesktop.DBus,member=NameAcquired",
                func = self._bus_name_acquired,
                user_data = self
              )
            await self.connection.bus_add_match_action_async \
              (
                rule = "type=signal,interface=org.freedesktop.DBus,member=NameLost",
                func = self._bus_name_lost,
                user_data = self
              )
        #end if
        is_acquired = bus_name in self.bus_names_acquired
        is_pending = bus_name in self.bus_names_pending
        if not (is_acquired or is_pending) :
            self.bus_names_pending.add(bus_name)
            result = await self.connection.bus_request_name_async(bus_name, flags, error = error, timeout = timeout)
            if error != None and error.is_set or result != DBUS.REQUEST_NAME_REPLY_IN_QUEUE :
                self.bus_names_pending.discard(bus_name)
            #end if
        elif is_pending :
            result = DBUS.REQUEST_NAME_REPLY_IN_QUEUE
        else :
            result = DBUS.REQUEST_NAME_REPLY_ALREADY_OWNER
        #end if
        return \
            result
255203
@Override
    public void busReloaded(Object newBus, boolean busChanged,
                            boolean destChg, boolean medChg)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        {
            SibTr.entry(this, tc, "busReloaded");
            SibTr.exit(this, tc, "busReloaded");
        }
    }
289684
def _set_name(self, version=AUTO):
        """"""

        name = 'python'

        if version:
            if version is AUTO:
                version = sys.version_info[0]

                if version == 2:
                    version = ''

            name = '%s%s' % (name, version)

        self.name = name
881608
protected static void registerNs(String prefix, String url) {
        Environment.getInstance().registerNamespace(prefix, url);
    }
496501
static void register() {
        Transliterator.registerFactory(_ID, new Transliterator.Factory() {
            @Override
            public Transliterator getInstance(String ID) {
                return new TitlecaseTransliterator(ULocale.US);
            }
        });

        registerSpecialInverse("Title", "Lower", false);
    }
439546
private BusGroup findBus(String name)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "findBus", name);

    // Cycle through the list of Buss.
    for (int i = 0; i < _buses.length; ++i)
      // Check if the Bus name is the one we are looking for
      if (_buses[i].getName().equals(name))
      {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
          SibTr.exit(tc, "findBus", _buses[i]);

        return _buses[i];
      }

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "findBus", "null");

    return null;
  }
118577
def gyisland(self, dae):
        """"""
        if self.system.Bus.islanded_buses:
            a = self.system.Bus.islanded_buses
            v = [self.system.Bus.n + item for item in a]
            dae.set_jac(Gy, 1e-6, a, a)
            dae.set_jac(Gy, 1e-6, v, v)
595532
@Override
	public void setName(String name) {
		if (name == null) {
			super.setName(getFirstFreeBusStopName(getContainer()));
		} else {
			super.setName(name);
		}
	}
754485
protected function registerSignals()
    {
        foreach (self::$signals as $no => $name) {
            if (($name === 'SIGKILL') || ($name == 'SIGSTOP')) {
                continue;
            }

            if (!\pcntl_signal($no, [$this, 'sighandler'], true)) {
                $this->log('Cannot assign ' . $name . ' signal');
            }
        }
    }
534519
protected SingleBusLocatorRegistrar getRegistrar(Bus bus) {
        SingleBusLocatorRegistrar registrar = busRegistrars.get(bus);
        if (registrar == null) {
            check(locatorClient, "serviceLocator", "registerService");
            registrar = new SingleBusLocatorRegistrar(bus);
            registrar.setServiceLocator(locatorClient);
            registrar.setEndpointPrefix(endpointPrefix);
            Map<String, String> endpointPrefixes = new HashMap<String, String>();
            endpointPrefixes.put("HTTP", endpointPrefixHttp);
            endpointPrefixes.put("HTTPS", endpointPrefixHttps);
            registrar.setEndpointPrefixes(endpointPrefixes);
            busRegistrars.put(bus, registrar);
            addLifeCycleListener(bus);
        }
        return registrar;
    }
673783
private static void register(String className) {
        if (!TextUtils.isEmpty(className)) {
            try {
                Class<?> clazz = Class.forName(className);
                Object obj = clazz.getConstructor().newInstance();
                if (obj instanceof IRouteRoot) {
                    registerRouteRoot((IRouteRoot) obj);
                } else if (obj instanceof IProviderGroup) {
                    registerProvider((IProviderGroup) obj);
                } else if (obj instanceof IInterceptorGroup) {
                    registerInterceptor((IInterceptorGroup) obj);
                } else {
                    logger.info(TAG, "register failed, class name: " + className
                            + " should implements one of IRouteRoot/IProviderGroup/IInterceptorGroup.");
                }
            } catch (Exception e) {
                logger.error(TAG,"register class error:" + className);
            }
        }
    }
529667
@Override
	public void setName(String name) {
		if (name == null) {
			super.setName(getFirstFreeBusLineName(getContainer()));
		} else {
			super.setName(name);
		}
	}
896570
void registerEventBuses() {
        if (!eventsRegistered) {
            Mvc.graph().inject(this);
            eventBusV.register(androidComponent);
            eventsRegistered = true;
            logger.trace("+Event2V bus registered for view - '{}'.",
                    androidComponent.getClass().getSimpleName());
        } else {
            logger.trace("!Event2V bus already registered for view - '{}' and its controllers.",
                    androidComponent.getClass().getSimpleName());
        }
    }
214028
public final void setGuaranteedCrossBusLinkName(String value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setGuaranteedCrossBusLinkName", value);
        getHdr2().setField(JsHdr2Access.GUARANTEEDXBUS_SET_LINKNAME, value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setGuaranteedCrossBusLinkName");
    }
637484
public Integer registerName(final String name) {
		final Integer newid = Integer.valueOf(counter.incrementAndGet());
		final Integer assigned = map.putIfAbsent(name, newid);
		return (assigned == null ? newid : assigned);
	}
807879
def register(self, name):
        
        signal = Signal(providing_args=['args', 'kwargs'])
        self._registry[name] = signal
        return signal
263668
protected function registerServiceProviders()
	{
		// Core Bus
		// -----------------------------------------------------------------------------
		$this->app->register('Congraph\Core\Bus\BusServiceProvider');

		// Core Event
		// -----------------------------------------------------------------------------
		$this->app->register('Congraph\Core\Events\EventsServiceProvider');

		// Repositories
		// -----------------------------------------------------------------------------
		$this->app->register('Congraph\Core\Repositories\RepositoriesServiceProvider');
	}