end isPrefixedRoute
767575
private function getRoutePrefix($routePrefix)
    {
        $prefixes = $this->getRoutePrefixes();
        
        return in_array($routePrefix, $prefixes) ? $routePrefix : array_shift($prefixes);
    }
1169606
function isValidAbsolutePath(p) {
    var parsedPath;
    try {
        parsedPath = path.parse(p);
    } catch (error) {
        // Not a valid path if it can't be parsed.
        return false;
    }

    return (parsedPath.root === '/');
}
869840
private static String pathRemoveLast(String path, RefBoolean isOutSide) {
	if (path.length() == 0) {
	    isOutSide.setValue(true);
	    return "..";
	}
	else if (path.endsWith("..")) {
	    isOutSide.setValue(true);
	    return path.concat("/..");// path+"/..";
	}
	return path.substring(0, path.lastIndexOf('/'));
    }
780137
private boolean removeServantRoutingAffinity() {
        if (ivServantRoutingAffinity) {
            StatefulSessionKey sskey = (StatefulSessionKey) beanId.getPrimaryKey();
            byte[] pKeyBytes = sskey.getBytes();

            int retcode = container.ivStatefulBeanEnqDeq.SSBeanDeq(pKeyBytes, !home.beanMetaData.sessionActivateTran, true);
            if (retcode != 0) {
                if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
                    Tr.event(tc, "Could not DEQ session bean with key = " + sskey);
                return false;
            }

            ivServantRoutingAffinity = false;
        }

        return true;
    }
1235442
public void end() {
        if (TransitionConfig.isPrintDebug()) {
            getTransitionStateHolder().end();
            getTransitionStateHolder().print();
        }

        for (int i = 0, size = mTransitionControls.size(); i < size; i++) {
            mTransitionControls.get(i).end();
        }
    }
498777
function beforeUnloadHook() {
    // Synchronously check to see if any route hooks want
    // to prevent the current window/tab from closing.
    if (state.routes) {
      var hooks = getRouteHooksForRoutes(state.routes);

      var message = void 0;
      for (var i = 0, len = hooks.length; typeof message !== 'string' && i < len; ++i) {
        // Passing no args indicates to the user that this is a
        // beforeunload hook. We don't know the next location.
        message = hooks[i]();
      }

      return message;
    }
  }
159564
def end(self):
        """"""
        if not self.args.disable_autodiscover:
            self.autodiscover_client.close()
        self.server.end()
319684
@Override
	public void passed(final PassedRoute passed) {
		if (isPassed() && length > 0) {
			passed.appendHitRange(getPosition(), getPosition() + getLength() - 1);
		}
	}
803536
protected void setPrepareXAFailed() // d266464A
    {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "setPrepareXAFailed");

        setRBO(); // Ensure native context is informed

        if (tc.isEntryEnabled())
            Tr.exit(tc, "setPrepareXAFailed");
    }
1061470
def listen
				begin
					clear_view
					@router.route unless Input.quit?
					reset if Input.reset?
				end until Input.quit?
			end
247376
void onComplete(TraceRouteThread trace, boolean isError, boolean isArrived, TraceRouteContainer routeContainer) {
        if (threads != null) {
            synchronized (mLock) {
                try {
                    threads.remove(trace);
                } catch (NullPointerException e) {
                    e.printStackTrace();
                }
            }
        }
        if (!isDone) {
            if (isError)
                this.errorCount++;
            this.isArrived = isArrived;
            if (routeContainers != null && routeContainer != null)
                routeContainers.add(routeContainer);
        }
        if (countDownLatch != null && countDownLatch.getCount() > 0)
            countDownLatch.countDown();
    }
1324539
def end_script(self):
        """"""

        if self.remote_bridge.status not in (BRIDGE_STATUS.RECEIVED, BRIDGE_STATUS.WAITING):
            return [1] #FIXME: State change

        self.remote_bridge.status = BRIDGE_STATUS.RECEIVED
        return [0]
1102280
boolean isReady() {
        final ContainerAddress[] ds = destinations.get();
        if (ds == null)
            return false;
        for (final ContainerAddress d : ds)
            if (d == null)
                return false;
        final boolean ret = ds.length != 0; // this method is only called in tests and this needs to be true there.

        if (ret && LOGGER.isDebugEnabled())
            LOGGER.debug("at {} to {} is Ready " + shorthand(ds), thisNodeId, clusterId);

        return ret;
    }
629914
function _dynamicBeginning() {

  // If the route starts out as a dynamic segment, then find where
  // the location should start.
  if(_routeBoom[0] === '**') {

    dbug('Found dynamic beginning on ' + _routeBoom.join('/'));

    var oldLength = _locationBoom.length;    // Save the current length for comparison later

    for(var f = 0; f < _locationBoom.length; f++) {
      if(_locationBoom[f] === _routeBoom[1] || _routeBoom[1] === "*") {
        f = (f === 0) ? 1 : 0;      // We need to definitely remove at least one thing
        _locationBoom.splice(0, f); // Remove the beginning segments since the dynamic route handles them
        _routeBoom.splice(0, 1);    // Remove the ** from the route
        break;
      }
    }

    // If location_boom never gets truncated, then this isn't the right route
    if(oldLength === _locationBoom.length) return false; 
  }

  return true;
}
782040
function saveRouteToTheList(parsedUrl, action) {
                // used to add options routes later
                if (typeof allRoutesList[parsedUrl.url] === 'undefined') {
                    allRoutesList[parsedUrl.url] = [];
                }
                allRoutesList[parsedUrl.url].push(action);
            }
936372
def is_tuple_end(self, extra_end_rules=None):
        """"""
        if self.stream.current.type in ('variable_end', 'block_end', 'rparen'):
            return True
        elif extra_end_rules is not None:
            return self.stream.current.test_any(extra_end_rules)
        return False
367189
def _check_endings(self):
        """"""
        if self.slug.startswith("/") and self.slug.endswith("/"):
            raise InvalidSlugError(
                _("Invalid slug. Did you mean {}, without the leading and trailing slashes?".format(self.slug.strip("/"))))
        elif self.slug.startswith("/"):
            raise InvalidSlugError(
                _("Invalid slug. Did you mean {}, without the leading slash?".format(self.slug.strip("/"))))
        elif self.slug.endswith("/"):
            raise InvalidSlugError(
                _("Invalid slug. Did you mean {}, without the trailing slash?".format(self.slug.strip("/"))))