_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q153100 | Serializer.writeObject | train | public Serializer writeObject(JSONObject object) throws IOException {
if (null == object) return writeNull();
// write header
writeRawString("{");
indentPush();
Iterator iter = null;
if (object instanceof OrderedJSONObject)
{
iter = ((OrderedJSONObje... | java | {
"resource": ""
} |
q153101 | Serializer.writeArray | train | public Serializer writeArray(JSONArray value) throws IOException {
if (null == value) return writeNull();
// write header
writeRawString("[");
indentPush();
for (Iterator iter=value.iterator(); iter.hasNext(); )
{
Object element = iter.next();
if... | java | {
"resource": ""
} |
q153102 | URBridgeGroup.getUsersForGroup | train | @Override
public void getUsersForGroup(List<String> grpMbrAttrs, int countLimit) throws WIMException {
String securityName = null;
try {
securityName = getSecurityName(false);
List<String> returnNames = urBridge.getUsersForGroup(securityName, countLimit).getList();
... | java | {
"resource": ""
} |
q153103 | XorShiftRandom.random | train | public static long random(final long randomStart)
{
long randomValue = randomStart;
randomValue ^= (randomValue << 21);
randomValue ^= (randomValue >>> 35);
randomValue ^= (randomValue << 4);
return randomValue;
} | java | {
"resource": ""
} |
q153104 | JsPermittedChainUsage.fromString | train | public JsPermittedChainUsage fromString(String name)
{
JsPermittedChainUsage result = null;
for (int i = 0; i < _set.length && result == null; i++)
{
if (name.equals(_set[i].toString())) result = _set[i];
}
return result;
} | java | {
"resource": ""
} |
q153105 | OSGiInjectionEngineImpl.getInjectionScopeData | train | public OSGiInjectionScopeData getInjectionScopeData(ComponentMetaData cmd, NamingConstants.JavaColonNamespace namespace) {
if (cmd == null) {
return null;
}
if (namespace == NamingConstants.JavaColonNamespace.GLOBAL) {
return globalScopeData;
}
if (names... | java | {
"resource": ""
} |
q153106 | OSGiInjectionEngineImpl.processApplicationReferences | train | private void processApplicationReferences(EARApplicationInfo appInfo, Application app) throws StateChangeException {
Map<JNDIEnvironmentRefType, List<? extends JNDIEnvironmentRef>> allRefs =
new EnumMap<JNDIEnvironmentRefType, List<? extends JNDIEnvironmentRef>>(JNDIEnvironmentRefType.cl... | java | {
"resource": ""
} |
q153107 | SibRaXaResource.isTransactionRolledBack | train | boolean isTransactionRolledBack () {
final String methodName = "isTransactionRolledBack";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
// Default to true indicating a rollback
boolean isRolledBack = t... | java | {
"resource": ""
} |
q153108 | StaticCATXATransaction.rcvXAOpen | train | public static void rcvXAOpen(CommsByteBuffer request, Conversation conversation,
int requestNumber, boolean allocatedFromBufferPool,
boolean partOfExchange)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "rcvXAO... | java | {
"resource": ""
} |
q153109 | EventLockCumulativeTimeout.recordElapsedTime | train | private synchronized void recordElapsedTime() {
// do nothing if the timer is not started
if (startTime == 0)
return;
long current = System.nanoTime();
// It is reported that elapsed time can be negative on some platforms.
// Use the absolute difference to avoid infin... | java | {
"resource": ""
} |
q153110 | EventLockCumulativeTimeout.waitForEventOrTimeout | train | private void waitForEventOrTimeout() throws InterruptedException {
long remainingWait = timeout - timeWaited;
long millisToWait = remainingWait / 1000000;
int nanosToWait = (int) (remainingWait % 1000000);
wait(millisToWait, nanosToWait);
} | java | {
"resource": ""
} |
q153111 | RLSUtils.toHexString | train | public static String toHexString(byte [] byteSource,int bytes)
{
StringBuffer result = null;
boolean truncated = false;
if (byteSource != null)
{
if (bytes > byteSource.length)
{
// If the number of bytes to display is larger than the available number of
// bytes, then res... | java | {
"resource": ""
} |
q153112 | JmsObjectMessageImpl.getObjectInfoFromRealObject | train | private String getObjectInfoFromRealObject() throws IOException, ClassNotFoundException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getObjectInfoFromRealObject");
final Serializable obj = objMsg.getRealObject();
final String oscDesc = (obj == null) ?... | java | {
"resource": ""
} |
q153113 | JmsObjectMessageImpl.getObjectInfoFromSerializedObject | train | private String getObjectInfoFromSerializedObject() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getObjectInfoFromSerializedObject");
String oscDesc;
byte[] data = new byte[0];
try {
data = objMsg.getSerializedObject();
... | java | {
"resource": ""
} |
q153114 | SibRaConnection.createUniqueId | train | @Override
public byte[] createUniqueId() throws SIConnectionDroppedException,
SIConnectionUnavailableException, SIConnectionLostException,
SIResourceException, SIErrorException {
checkValid();
return _delegateConnection.createUniqueId();
} | java | {
"resource": ""
} |
q153115 | SibRaConnection.createTemporaryDestination | train | @Override
public SIDestinationAddress createTemporaryDestination(
final Distribution distribution, final String destinationPrefix)
throws SIConnectionDroppedException,
SIConnectionUnavailableException, SIConnectionLos... | java | {
"resource": ""
} |
q153116 | SibRaConnection.invokeCommand | train | @Override
public Serializable invokeCommand(String key, String commandName, Serializable commandData)
throws SIConnectionDroppedException, SIConnectionUnavailableException,
SINotAuthorizedException, SIResourceException, SIIncorrectCallException,
SICommandI... | java | {
"resource": ""
} |
q153117 | SibRaConnection.close | train | @Override
public void close() throws SIConnectionLostException, SIResourceException,
SIErrorException, SIConnectionDroppedException,
SIConnectionUnavailableException
{
try
{
_delegateConnection.close();
} finally
{
i... | java | {
"resource": ""
} |
q153118 | SibRaConnection.send | train | @Override
public void send(final SIBusMessage msg, final SITransaction tran,
final SIDestinationAddress destAddr,
final DestinationType destType,
final OrderingContext orderingContext, final String alternateUser)
throws SIConnectionD... | java | {
"resource": ""
} |
q153119 | SibRaConnection.addConnectionListener | train | @Override
public void addConnectionListener(SICoreConnectionListener listener)
throws SIConnectionDroppedException,
SIConnectionUnavailableException {
checkValid();
_delegateConnection.addConnectionListener(listener);
} | java | {
"resource": ""
} |
q153120 | SibRaConnection.sendToExceptionDestination | train | @Override
public void sendToExceptionDestination(SIDestinationAddress address,
SIBusMessage message, int reason, String[] inserts,
SITransaction tran, final String alternateUser)
throws SIConnectionDroppedExcep... | java | {
"resource": ""
} |
q153121 | SibRaConnection.getDestinationConfiguration | train | @Override
public DestinationConfiguration getDestinationConfiguration(
final SIDestinationAddress destinationAddress)
throws SIConnectionDroppedException,
SIConnectionUnavailableException, SIConnectionLostExcepti... | java | {
"resource": ""
} |
q153122 | SibRaConnection.receiveNoWait | train | @Override
public SIBusMessage receiveNoWait(final SITransaction tran,
final Reliability unrecoverableReliability,
final SIDestinationAddress destinationAddress,
final DestinationType destType, final Sel... | java | {
"resource": ""
} |
q153123 | SibRaConnection.getResolvedUserid | train | @Override
public String getResolvedUserid() throws SIConnectionDroppedException,
SIConnectionUnavailableException, SIConnectionLostException,
SIResourceException, SIErrorException {
checkValid();
return _delegateConnection.getResolvedUserid();
} | java | {
"resource": ""
} |
q153124 | SibRaConnection.checkMessagingRequired | train | @Override
public SIDestinationAddress checkMessagingRequired(SIDestinationAddress requestDestAddr,
SIDestinationAddress replyDestAddr,
DestinationType destinationType,
... | java | {
"resource": ""
} |
q153125 | SibRaConnection.createBifurcatedConsumerSession | train | @Override
public BifurcatedConsumerSession createBifurcatedConsumerSession(
final long id) throws SISessionDroppedException,
SIConnectionDroppedException, SISessionUnavailableException,
SIConnectionUnavailab... | java | {
"resource": ""
} |
q153126 | SibRaConnection.getAssociatedManagedConnection | train | private SibRaManagedConnection getAssociatedManagedConnection()
throws SIResourceException {
try {
if (_managedConnection == null) {
final ConnectionManager connectionManager = _connectionFactory
.getConnectionManager();
... | java | {
"resource": ""
} |
q153127 | SibRaConnection.getContainerTransaction | train | private SITransaction getContainerTransaction() throws SIResourceException {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getContainerTransaction");
}
final SITransaction containerTransaction;
try {
// Ensure ... | java | {
"resource": ""
} |
q153128 | SibRaConnection.setConnectionFactory | train | void setConnectionFactory(final SibRaConnectionFactory connectionFactory) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "setConnectionFactory", connectionFactory);
}
_connectionFactory = connectionFactory;
if (TraceCompone... | java | {
"resource": ""
} |
q153129 | JsBusImpl.setCustomProperties | train | public void setCustomProperties() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setCustomProperties", this);
// Set the properties that belong to the bus
/*
* List props =
* ((ConfigObject)getEObject()).getObjectList(CT_SIBus.PROPERTIES_NAME);
* for (Iterator ite... | java | {
"resource": ""
} |
q153130 | JsBusImpl.setCustomProperty | train | public void setCustomProperty(String name, String value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setCustomProperty", name + " " + value);
// Set the properties that belong to the bus
// customProperties.put(name,value);
if (TraceComponent.isAnyTracingEnabled() &&... | java | {
"resource": ""
} |
q153131 | JsBusImpl.getCustomProperty | train | public String getCustomProperty(String name) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getCustomProperty", name);
// String value = customProperties.getProperty(name);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getCustomProper... | java | {
"resource": ""
} |
q153132 | JsBusImpl.isEventNotificationPropertySet | train | public Boolean isEventNotificationPropertySet() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isEventNotificationPropertySet", this);
Boolean enabled = null; // enabled can be null/TRUE/FALSE, ie three-way
// Test whether custom properties contain a notification prop
i... | java | {
"resource": ""
} |
q153133 | JsBusImpl.loadAuditAllowed | train | private void loadAuditAllowed() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "loadAuditAllowed", this);
//
// ConfigObject sibAudit = null;
// try {
// // Get config service
// ConfigService service = (ConfigService)
// WsServiceRegistry.getService(this, ConfigServ... | java | {
"resource": ""
} |
q153134 | GeneratePluginConfigMBean.generatePluginConfig | train | public synchronized void generatePluginConfig(String root, String serverName,boolean utilityRequest, File writeDirectory) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "generatePluginConfig", "server is stopping = " + serverIsStopping);
}
... | java | {
"resource": ""
} |
q153135 | LibertyWebConfigProvider.isErrorPagePresent | train | @Override
public boolean isErrorPagePresent(ExternalContext externalContext) {
IServletContext context = (IServletContext) externalContext.getContext();
WebAppConfig webAppConfig = context.getWebAppConfig();
return webAppConfig.isErrorPagePresent();
} | java | {
"resource": ""
} |
q153136 | DeliveryDelayManager.removeDeliveryDelayable | train | public final boolean removeDeliveryDelayable(DeliveryDelayable deliveryDelayable) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "removeDeliveryDelayable",
"objId="
... | java | {
"resource": ""
} |
q153137 | DeliveryDelayManager.start | train | public final void start(long deliveryDelayScanInterval, JsMessagingEngine jsme) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "start", "interval=" + deliveryDelayScanInterval + " indexSize=" + deliveryDelayIndex.size()... | java | {
"resource": ""
} |
q153138 | DeliveryDelayManager.scanForInvalidDeliveryDelay | train | private void scanForInvalidDeliveryDelay() throws SevereMessageStoreException {
final String methodName = "scanForInvalidDeliveryDelay";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, methodName);
String str = messageStore.getProperty(MessageSto... | java | {
"resource": ""
} |
q153139 | DeliveryDelayManager.stop | train | public final void stop()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "stop");
synchronized (lockObject)
{
addEnabled = false; // Prevent further DeliveryDelayables being added
if (runEnabled)
{
... | java | {
"resource": ""
} |
q153140 | DeliveryDelayManager.remove | train | private final boolean remove(DeliveryDelayableReference deliveryDelayableReference, boolean unlocked)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "remove",
" deliveryDelayableReference=" + deliveryDelayableReference + " unlocke... | java | {
"resource": ""
} |
q153141 | AnnotationValueImpl.addArrayValue | train | @SuppressWarnings("unchecked")
protected void addArrayValue(AnnotationValueImpl annotationValue) {
((List<AnnotationValueImpl>) getArrayValue()).add(annotationValue);
this.stringValue = null;
} | java | {
"resource": ""
} |
q153142 | RegistryHelper.getUserRegistry | train | public static UserRegistry getUserRegistry(String realmName) throws WSSecurityException {
try {
WSSecurityService ss = wsSecurityServiceRef.getService();
if (ss == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, ... | java | {
"resource": ""
} |
q153143 | RegistryHelper.isRealmInboundTrusted | train | public static boolean isRealmInboundTrusted(String inboundRealm, String localRealm) {
WSSecurityService ss = wsSecurityServiceRef.getService();
if (ss == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "No WSSecurityService, returning t... | java | {
"resource": ""
} |
q153144 | ChannelSelector.getKey | train | final public SelectionKey getKey(SocketChannel channel) {
if (null == channel) {
return null;
}
return channel.keyFor(this.selector);
} | java | {
"resource": ""
} |
q153145 | ChannelSelector.getWorkQueue | train | protected Queue<Object> getWorkQueue() {
synchronized (this.queueLock) {
// swap the primary and secondary queues
Queue<Object> tmp = this.workQueue1;
this.workQueue1 = this.workQueue2;
this.workQueue2 = tmp;
return tmp;
} // end-sync
} | java | {
"resource": ""
} |
q153146 | ChannelSelector.resetTimeout | train | protected void resetTimeout(long newTimeoutTime) {
// See if anything may have timed out
if (newTimeoutTime < this.nextTimeoutTime) {
this.nextTimeoutTime = newTimeoutTime;
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "rese... | java | {
"resource": ""
} |
q153147 | ValidationConfiguratorV11.instantiateClass | train | @Override
protected <T> T instantiateClass(Class<T> clazz) throws Throwable {
// Get the current BeanManager for this module. If one doesn't exist it is because
// the module isn't CDI enabled and we fall back to the original behavior.
ManagedObject<T> mo = null;
if (releasableFact... | java | {
"resource": ""
} |
q153148 | ValidationConfiguratorV11.getConstraintValidatorFactoryOverride | train | public ConstraintValidatorFactory getConstraintValidatorFactoryOverride(Configuration<?> config) {
ValidationReleasable<ConstraintValidatorFactory> releasable = null;
String cvfClassName = config.getBootstrapConfiguration().getConstraintValidatorFactoryClassName();
// If the validation.xml Cons... | java | {
"resource": ""
} |
q153149 | Factory.createMatcher | train | static ContentMatcher createMatcher(
OrdinalPosition lastOrdinalPosition,
Conjunction selector,
ContentMatcher oldMatcher)
{
if (tc.isEntryEnabled())
tc.entry(
cclass,
"createMatcher",
"lastOrdinalPosition: "
+ lastOrdinalPosition
+ ",selector: "
... | java | {
"resource": ""
} |
q153150 | Factory.createMatcher | train | private static ContentMatcher createMatcher(
SimpleTest test,
ContentMatcher oldMatcher)
{
if (tc.isEntryEnabled())
tc.entry(
cclass,
"createMatcher",
"test: " + test + ", oldmatcher: " + oldMatcher);
Identifier id = test.getIdentifier();
boolean isExtended = (test in... | java | {
"resource": ""
} |
q153151 | ClientModuleInjection.inject | train | @Trivial
private void inject(Object obj, final Object instance, HashMap<Class<?>, InjectionTarget[]> cookies) throws InjectionException {
if (tc.isDebugEnabled())
Tr.debug(tc, "inject", "obj --> [" + obj + "]");
if (cookies.size() == 0) {
if (tc.isDebugEnabled())
... | java | {
"resource": ""
} |
q153152 | URLMap.setRoleMap | train | public void setRoleMap(String roleName, List<String> mList, boolean omission) {
if (tc.isDebugEnabled())
Tr.debug(tc, "Setting rolemap with omission");
setMethodsAttribute(mList, omission, ROLE, roleName);
if (omission) {
unchkResourceForOmissionList = updateList(unchkRes... | java | {
"resource": ""
} |
q153153 | URLMap.getRoleMap | train | public Map<String, String> getRoleMap() {
if (mapAllMethods != null) {
return getRoleMapFromAllMap();
}
Map<String, List<String>> outputRTMNormal = null;
Map<String, List<String>> outputRTMOmission = null;
if (mapMethod != null) {
outputRTMNormal = getRol... | java | {
"resource": ""
} |
q153154 | URLMap.convertMethod | train | private String convertMethod(List<String> methodList, boolean negative) {
boolean first = true;
StringBuffer methodSB = new StringBuffer();
for (String method : methodList) {
if (first) {
first = false;
if (negative) {
methodSB.appe... | java | {
"resource": ""
} |
q153155 | URLMap.getRoleMap | train | public Map<String, MethodConstraint> getRoleMap(int table) {
if (tc.isDebugEnabled())
Tr.debug(tc, "Getting role methods map");
return getMethodSet(table, ROLE_NO_CHECK);
} | java | {
"resource": ""
} |
q153156 | URLMap.getUserDataMap | train | public Map<String, MethodConstraint> getUserDataMap(int table) {
if (tc.isDebugEnabled())
Tr.debug(tc, "Getting user data map of which attribute is either confidential or integral");
return getMethodSet(table, UD_CONFIDENTIAL_OR_INTEGRAL_NO_EX_CHECK);
} | java | {
"resource": ""
} |
q153157 | ResourceFactory.createResourceFromAsset | train | public RepositoryResourceImpl createResourceFromAsset(Asset ass, RepositoryConnection connection) throws RepositoryBackendException {
// No wlp information means no type set, so can't create a resource from this....
RepositoryResourceImpl result;
if (null == ass.getWlpInformation() ||
... | java | {
"resource": ""
} |
q153158 | CachedTime.updateTime | train | private void updateTime(long tolerance) {
long now = System.currentTimeMillis();
// check for exact match
if (now == this.lastTimeCheck) {
return;
}
// check for a "range" match
if (0L != tolerance) {
long range = (-1 == tolerance) ? DEFAULT_TOLERA... | java | {
"resource": ""
} |
q153159 | Messages.getFormattedMessageFromLocalizedMessage | train | public static String getFormattedMessageFromLocalizedMessage(String traceString, Object[] newParms, boolean b) {
String retVal = "";
try {
retVal = MessageFormat.format(traceString, newParms);
if (null == retVal && b) {
retVal = traceString;
// System.out.println("Using default key");
}
} catch (... | java | {
"resource": ""
} |
q153160 | Messages.getFormattedMessage | train | public String getFormattedMessage(String messageKey, Object[] param, String defaultKey) {
String key = getString(messageKey);
String retVal = MessageFormat.format(key, param);
return retVal;
} | java | {
"resource": ""
} |
q153161 | Messages.getString | train | public String getString(String messageKey) {
String retVal = messageKey;
ResourceBundle rb = getResourceBundle();
if (null != rb) {
try {
String tmpRetVal = rb.getString(messageKey);
if (null != tmpRetVal) {
retVal = tmpRetVal;
// } else {
// if (quiet) {
//
// logger.log(Le... | java | {
"resource": ""
} |
q153162 | Messages.getResourceBundle | train | private ResourceBundle getResourceBundle() {
ResourceBundle rb = null;
/*
* make sure we have a valid bundle name
*/
if (null != ivBundleName && !"".equals(ivBundleName.trim())) {
ClassLoader classLoader = null;
/*
* get the context classloader to lookup bundle
*/
try {
cl... | java | {
"resource": ""
} |
q153163 | Messages.locateBundleFromCallee | train | private ResourceBundle locateBundleFromCallee() {
ResourceBundle rb = null;
if (finder == null) {
finder = StackFinder.getInstance();
}
final Class<?> aClass = finder.getCaller();
if (aClass != null) {
// If aClass is NOT null (it was passed in, or we found it),
// use its classloader first to try... | java | {
"resource": ""
} |
q153164 | CircuitBreakerStateImpl.synchronizedRequestPermissionToExecute | train | private boolean synchronizedRequestPermissionToExecute() {
boolean result = false;
synchronized (this) {
switch (state.get()) {
case CLOSED:
result = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | java | {
"resource": ""
} |
q153165 | CircuitBreakerStateImpl.synchronizedRecordResult | train | private void synchronizedRecordResult(CircuitBreakerResult result) {
synchronized (this) {
switch (state.get()) {
case CLOSED:
rollingWindow.record(result);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | java | {
"resource": ""
} |
q153166 | CircuitBreakerStateImpl.stateClosed | train | @Trivial
private void stateClosed() {
rollingWindow.clear();
state.set(State.CLOSED);
metricRecorder.reportCircuitClosed();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Transitioned to Closed state");
}
} | java | {
"resource": ""
} |
q153167 | CircuitBreakerStateImpl.stateHalfOpen | train | @Trivial
private void stateHalfOpen() {
halfOpenRunningExecutions = 0;
halfOpenSuccessfulExecutions = 0;
state.set(State.HALF_OPEN);
metricRecorder.reportCircuitHalfOpen();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Transition... | java | {
"resource": ""
} |
q153168 | CircuitBreakerStateImpl.stateOpen | train | @Trivial
private void stateOpen() {
openStateStartTime = System.nanoTime();
state.set(State.OPEN);
metricRecorder.reportCircuitOpen();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Transitioned to Open state");
}
} | java | {
"resource": ""
} |
q153169 | DynamicCacheAccessor.getCache | train | public static com.ibm.websphere.cache.Cache getCache() {
if (isServletCachingEnabled())
return (com.ibm.websphere.cache.Cache)ServerCache.cache;
else
return null;
} | java | {
"resource": ""
} |
q153170 | DynamicCacheAccessor.getDistributedMap | train | public static DistributedMap getDistributedMap() {
final String methodName="getDistributedMap()";
if (tc.isEntryEnabled()) {
Tr.entry(tc, methodName);
}
DistributedMap distributedMap = null;
Context context = null;
if (isObjectCachingEnabled()) {
t... | java | {
"resource": ""
} |
q153171 | EvaluatorImpl.eval | train | public Object eval(
Selector sel,
MatchSpaceKey msg,
EvalCache cache,
Object contextValue,
boolean permissive)
throws BadMessageFormatMatchingException
{
// This method should never be applied to a selector that has marked itself invalid
// during parsing.
if (sel.getType() == Sel... | java | {
"resource": ""
} |
q153172 | EvaluatorImpl.castToNumber | train | public static Number castToNumber(Object val) // was NumericValue
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "castToNumber", val);
if (!(val instanceof String))
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.exit(cclass, "castToNumber", null... | java | {
"resource": ""
} |
q153173 | EvaluatorImpl.castToBoolean | train | private static Boolean castToBoolean(Object val) //was BooleanValue
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "castToBoolean", val);
Boolean theReturn = null;
if (val instanceof String)
{
String stringVal = (String) val;
if (stringVal.equalsIgnoreCase("t... | java | {
"resource": ""
} |
q153174 | EvaluatorImpl.getStringFromNode | train | protected String getStringFromNode(Object inNode)
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "getStringFromNode", inNode);
String strValue = null;
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.exit(cclass, "getStringFromNode", strValue);
ret... | java | {
"resource": ""
} |
q153175 | EvaluatorImpl.getDocumentRoot | train | public Object getDocumentRoot(MatchSpaceKey msg)
throws BadMessageFormatMatchingException
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "getDocumentRoot", msg);
Object docRoot = null;
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.exit(cclass, "get... | java | {
"resource": ""
} |
q153176 | EvaluatorImpl.compareList | train | protected Boolean compareList( // was BooleanValue
ArrayList firstList,
Object val1,
boolean lessThan,
boolean permissive,
boolean overallTrue) // If true we are searching for at least one TRUE result, else at least one FALSE.
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled()... | java | {
"resource": ""
} |
q153177 | EvaluatorImpl.promoteAndEvaluate | train | private static Object promoteAndEvaluate(
int op,
Object val0,
Object val1,
boolean permissive)
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass,
"promoteAndEvaluate",
new Object[] { new Integer(op), val0, val1, new Boolean(permissive) })... | java | {
"resource": ""
} |
q153178 | EvaluatorImpl.ttIndex | train | public static int ttIndex(Boolean bVal)
{
int idx = 2;
if(bVal != null)
{
if (bVal.booleanValue())
{
idx = 0;
}
else if (!bVal.booleanValue())
{
idx = 1;
}
}
return idx;
} | java | {
"resource": ""
} |
q153179 | EvaluatorImpl.and | train | public static Boolean and(Boolean a, Boolean b)
{
return andTable[ttIndex(a)][ttIndex(b)];
} | java | {
"resource": ""
} |
q153180 | EvaluatorImpl.or | train | public static Boolean or(Boolean a,Boolean b)
{
return orTable[ttIndex(a)][ttIndex(b)];
} | java | {
"resource": ""
} |
q153181 | EvaluatorImpl.not | train | public static Boolean not(Boolean bVal)
{
// return notTable[lookupValue];
if(bVal == null)
return null;
else if (bVal.equals(Boolean.TRUE))
return Boolean.FALSE;
else if (bVal.equals(Boolean.FALSE))
return Boolean.TRUE;
else return null;
} | java | {
"resource": ""
} |
q153182 | EvaluatorImpl.compare | train | public static int compare(Number a, Number b)
{
int aType = getType(a);
int bType = getType(b);
int compType = (aType >= bType) ? aType : bType;
switch (compType)
{
case INT :
int li = a.intValue();
int ri = b.intValue();
return (li < ri) ? -1 : (li == ri) ? 0 ... | java | {
"resource": ""
} |
q153183 | EvaluatorImpl.getType | train | public static int getType(Number val)
{
if (val instanceof Integer)
{
return INT;
}
else if (val instanceof Long)
{
return LONG;
}
else if (val instanceof Short)
{
return SHORT;
}
else if (val instanceof Byte)
{
return BYTE;
}
else i... | java | {
"resource": ""
} |
q153184 | EvaluatorImpl.neg | train | private static Number neg(Number n)
{
switch (getType(n))
{
case INT :
return new Integer(-n.intValue());
case LONG :
return new Long(-n.longValue());
case FLOAT :
return new Float(-n.floatValue());
case DOUBLE :
return new Double(-n.doubleValue());
... | java | {
"resource": ""
} |
q153185 | EvaluatorImpl.times | train | private static Number times(Number a, Number b)
{
int aType = getType(a);
int bType = getType(b);
int compType = (aType >= bType) ? aType : bType;
switch (compType)
{
case INT :
return new Integer(a.intValue() * b.intValue());
case LONG :
return new Long(a.long... | java | {
"resource": ""
} |
q153186 | AnnotationTargetsVisitor.getResourceNameFromDescription | train | protected static String getResourceNameFromDescription(String desc) {
Type type = Type.getType(desc);
String className = type.getClassName();
String resourceName = className.replace(".", "/");
return resourceName;
} | java | {
"resource": ""
} |
q153187 | AnnotationTargetsVisitor.i_recordScannedClassName | train | protected boolean i_recordScannedClassName(String i_className) {
boolean didPlaceClass = annotationTargets.i_placeClass(i_getClassSourceName(), i_className);
if (!didPlaceClass) {
return false;
}
boolean didAddClass = annotationTargets.i_addScannedClassName(i_className, getS... | java | {
"resource": ""
} |
q153188 | AnnotationTargetsVisitor.visit | train | @Override
public void visit(int version,
int access,
String classResourceName,
String signature,
String superClassResourceName,
String interfaceResourceNames[]) {
Object[] logParms;
if (tc.... | java | {
"resource": ""
} |
q153189 | AnnotationTargetsVisitor.visitAnnotation | train | @Override
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
AnnotationCategory category = (isClass ? AnnotationCategory.CLASS : AnnotationCategory.PACKAGE);
recordAnnotation(category, desc);
return null;
} | java | {
"resource": ""
} |
q153190 | AnnotationTargetsVisitor.visitField | train | @Override
public FieldVisitor visitField(int access, String name, String desc, String signature, Object defaultValue) {
if (scanPolicyIsExternal() || !isDetailEnabled()) {
visitEnd();
throw VISIT_ENDED_DETAIL;
}
return fieldVisitor;
} | java | {
"resource": ""
} |
q153191 | AnnotationTargetsVisitor.visitMethod | train | @Override
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String exceptions[]) {
if (scanPolicyIsExternal() || !isDetailEnabled()) {
visitEnd();
throw VISIT_ENDED_DETAIL;
}
return methodVisitor;
} | java | {
"resource": ""
} |
q153192 | ServiceRefObjectFactory.mergeWebServicesBndInfo | train | private void mergeWebServicesBndInfo(WebServiceRefInfo wsrInfo, JaxWsClientMetaData jaxwsClientMetaData) {
WebservicesBnd webServicesBnd = null;
try {
webServicesBnd = jaxwsClientMetaData.getModuleMetaData().getModuleContainer().adapt(WebservicesBnd.class);
} catch (UnableToAdaptExc... | java | {
"resource": ""
} |
q153193 | ExceptionClassFilter.getIncludeList | train | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<ExceptionClassFilter.Include> getIncludeList() {
if (includeList == null) {
includeList = new ArrayList<ExceptionClassFilter.Include>(... | java | {
"resource": ""
} |
q153194 | ExceptionClassFilter.getExcludeList | train | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<ExceptionClassFilter.Exclude> getExcludeList() {
if (excludeList == null) {
excludeList = new ArrayList<ExceptionClassFilter.Exclude>(... | java | {
"resource": ""
} |
q153195 | Vertex.addDependency | train | public void addDependency(Vertex<T> v)
{
if (!m_dependencies.contains(v))
{
m_dependencies.add(v);
}
} | java | {
"resource": ""
} |
q153196 | Vertex.resolveOrder | train | private int resolveOrder(String path) throws CyclicDependencyException
{
m_seen = true;
try
{
int highOrder = -1;
for (Vertex<T> dv : m_dependencies)
{
if (dv.m_seen)
{
throw new CyclicDependencyException... | java | {
"resource": ""
} |
q153197 | Vertex.compareTo | train | public int compareTo(final Vertex<T> o)
{
int orderInd;
if (m_order < o.m_order)
{
orderInd = -1;
}
else if (m_order > o.m_order)
{
orderInd = 1;
}
else
{
orderInd = 0;
}
return orderInd;
... | java | {
"resource": ""
} |
q153198 | LoggerHelper.getLogger | train | public static Logger getLogger(String className, String groupName)
{
Logger logger = Logger.getLogger(className);
if (!svCheckedForWAS)
{
try
{
Class loggerHelperClass = Class.forName("com.ibm.ws.logging.LoggerHelper");
svAddLoggerToGr... | java | {
"resource": ""
} |
q153199 | DefaultSources.getDiscoveredSources | train | public static ArrayList<ConfigSource> getDiscoveredSources(ClassLoader classloader) {
ArrayList<ConfigSource> sources = new ArrayList<>();
//load config sources using the service loader
try {
ServiceLoader<ConfigSource> sl = ServiceLoader.load(ConfigSource.class, classloader);
... | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.