code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void marshall(SqlStatementResult sqlStatementResult, ProtocolMarshaller protocolMarshaller) {
if (sqlStatementResult == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(SqlStatementResult sqlStatementResult, ProtocolMarshaller protocolMarshaller) {
if (sqlStatementResult == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public void with(@javax.annotation.Nonnull final java.util.function.Consumer<T> f, final Predicate<T> filter) {
final T prior = currentValue.get();
if (null != prior) {
f.accept(prior);
}
else {
final T poll = get(filter);
try {
currentValue.set(poll)... | public class class_name {
public void with(@javax.annotation.Nonnull final java.util.function.Consumer<T> f, final Predicate<T> filter) {
final T prior = currentValue.get();
if (null != prior) {
f.accept(prior); // depends on control dependency: [if], data = [prior)]
}
else {
final T poll =... |
public class class_name {
private void checkTypeDeprecation(NodeTraversal t, Node n) {
if (!shouldEmitDeprecationWarning(t, n)) {
return;
}
ObjectType instanceType = n.getJSType().toMaybeFunctionType().getInstanceType();
String deprecationInfo = getTypeDeprecationInfo(instanceType);
if (dep... | public class class_name {
private void checkTypeDeprecation(NodeTraversal t, Node n) {
if (!shouldEmitDeprecationWarning(t, n)) {
return; // depends on control dependency: [if], data = [none]
}
ObjectType instanceType = n.getJSType().toMaybeFunctionType().getInstanceType();
String deprecationIn... |
public class class_name {
public DfuServiceController start(@NonNull final Context context, @NonNull final Class<? extends DfuBaseService> service) {
if (fileType == -1)
throw new UnsupportedOperationException("You must specify the firmware file before starting the service");
final Intent intent = new Intent(c... | public class class_name {
public DfuServiceController start(@NonNull final Context context, @NonNull final Class<? extends DfuBaseService> service) {
if (fileType == -1)
throw new UnsupportedOperationException("You must specify the firmware file before starting the service");
final Intent intent = new Intent(c... |
public class class_name {
@Override
public String tagKey(String key) {
String sanitized = StringEscapeUtils.escapeJson(delegate.tagKey(key));
if (Character.isDigit(sanitized.charAt(0))) {
sanitized = "m." + sanitized;
}
return sanitized;
} } | public class class_name {
@Override
public String tagKey(String key) {
String sanitized = StringEscapeUtils.escapeJson(delegate.tagKey(key));
if (Character.isDigit(sanitized.charAt(0))) {
sanitized = "m." + sanitized; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public java.util.List<HostReservation> getHostReservationSet() {
if (hostReservationSet == null) {
hostReservationSet = new com.amazonaws.internal.SdkInternalList<HostReservation>();
}
return hostReservationSet;
} } | public class class_name {
public java.util.List<HostReservation> getHostReservationSet() {
if (hostReservationSet == null) {
hostReservationSet = new com.amazonaws.internal.SdkInternalList<HostReservation>(); // depends on control dependency: [if], data = [none]
}
return hostReserva... |
public class class_name {
public void marshall(Edge edge, ProtocolMarshaller protocolMarshaller) {
if (edge == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(edge.getReferenceId(), REFERENCEID_BINDI... | public class class_name {
public void marshall(Edge edge, ProtocolMarshaller protocolMarshaller) {
if (edge == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(edge.getReferenceId(), REFERENCEID_BINDI... |
public class class_name {
private Optional<Long> getMaybeTaskLogReadOffset(final String slaveHostname, final String fullPath, final Long logLength, Optional<SingularityTask> task) {
long offset = 0;
long maxOffset = smtpConfiguration.get().getMaxTaskLogSearchOffset();
Optional<Pattern> maybePattern = getLo... | public class class_name {
private Optional<Long> getMaybeTaskLogReadOffset(final String slaveHostname, final String fullPath, final Long logLength, Optional<SingularityTask> task) {
long offset = 0;
long maxOffset = smtpConfiguration.get().getMaxTaskLogSearchOffset();
Optional<Pattern> maybePattern = getLo... |
public class class_name {
public int countBySQL(String sql, List<?> params) {
Object[] args = null;
if (params == null) {
args = new Object[0];
} else {
args = params.toArray(new Object[params.size()]);
}
return jdbcTemplate.queryForObject(sql, Integer.cl... | public class class_name {
public int countBySQL(String sql, List<?> params) {
Object[] args = null;
if (params == null) {
args = new Object[0]; // depends on control dependency: [if], data = [none]
} else {
args = params.toArray(new Object[params.size()]); // depends on ... |
public class class_name {
public static String encodeZeroPadding(int number, int maxNumDigits) {
String integerString = Integer.toString(number);
int numZeroes = maxNumDigits - integerString.length();
StringBuffer strBuffer = new StringBuffer(numZeroes + integerString.length());
for (in... | public class class_name {
public static String encodeZeroPadding(int number, int maxNumDigits) {
String integerString = Integer.toString(number);
int numZeroes = maxNumDigits - integerString.length();
StringBuffer strBuffer = new StringBuffer(numZeroes + integerString.length());
for (in... |
public class class_name {
public CalendarYear plus(Years<CalendarUnit> years) {
if (years.isEmpty()) {
return this;
}
return CalendarYear.of(MathUtils.safeAdd(this.year, years.getAmount()));
} } | public class class_name {
public CalendarYear plus(Years<CalendarUnit> years) {
if (years.isEmpty()) {
return this; // depends on control dependency: [if], data = [none]
}
return CalendarYear.of(MathUtils.safeAdd(this.year, years.getAmount()));
} } |
public class class_name {
protected URI doPostCreateMultipart(String path, FormDataMultiPart formDataMultiPart) throws ClientException {
this.readLock.lock();
try {
ClientResponse response = getResourceWrapper()
.rewritten(path, HttpMethod.POST)
.type... | public class class_name {
protected URI doPostCreateMultipart(String path, FormDataMultiPart formDataMultiPart) throws ClientException {
this.readLock.lock();
try {
ClientResponse response = getResourceWrapper()
.rewritten(path, HttpMethod.POST)
.type... |
public class class_name {
public int getPositionForView(View view) {
View listItem = view;
try {
View v;
while (!(v = (View) listItem.getParent()).equals(this)) {
listItem = v;
}
} catch (ClassCastException e) {
// We made it up to... | public class class_name {
public int getPositionForView(View view) {
View listItem = view;
try {
View v;
while (!(v = (View) listItem.getParent()).equals(this)) {
listItem = v; // depends on control dependency: [while], data = [none]
}
} catch... |
public class class_name {
public void setTranEnlistmentNotNeeded(int reason)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
Tr.entry(tc, "MEF.setTranEnlistmentNotNeeded for enterprise class "
+ beanMetaData.enterpriseBeanName + ", reason = ... | public class class_name {
public void setTranEnlistmentNotNeeded(int reason)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
Tr.entry(tc, "MEF.setTranEnlistmentNotNeeded for enterprise class "
+ beanMetaData.enterpriseBeanName + ", reason = ... |
public class class_name {
static protected void resolveUsingExpressions(List<VoltXMLElement> elements, RangeVariable[] rvs)
throws org.hsqldb_voltpatches.HSQLInterface.HSQLParseException {
for (VoltXMLElement element : elements) {
String table = null;
String tableAlias = nu... | public class class_name {
static protected void resolveUsingExpressions(List<VoltXMLElement> elements, RangeVariable[] rvs)
throws org.hsqldb_voltpatches.HSQLInterface.HSQLParseException {
for (VoltXMLElement element : elements) {
String table = null;
String tableAlias = nu... |
public class class_name {
public void fatal(final Object message, final Throwable t) {
if (MINIMUM_LEVEL_COVERS_ERROR) {
provider.log(STACKTRACE_DEPTH, null, org.tinylog.Level.ERROR, t, message == t ? null : message, (Object[]) null);
}
} } | public class class_name {
public void fatal(final Object message, final Throwable t) {
if (MINIMUM_LEVEL_COVERS_ERROR) {
provider.log(STACKTRACE_DEPTH, null, org.tinylog.Level.ERROR, t, message == t ? null : message, (Object[]) null); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private long addStopwatchSplit(Stopwatch stopwatch) {
Split split = stopwatch.start();
try {
randomWait(50, 150);
} finally {
split.stop();
}
return split.runningFor() / SimonClock.NANOS_IN_MILLIS;
} } | public class class_name {
private long addStopwatchSplit(Stopwatch stopwatch) {
Split split = stopwatch.start();
try {
randomWait(50, 150); // depends on control dependency: [try], data = [none]
} finally {
split.stop();
}
return split.runningFor() / SimonClock.NANOS_IN_MILLIS;
} } |
public class class_name {
public E poll()
{
Object owner;
if (transactional)
{
owner = TxManager.getCurrentSession();
}
else
{
owner = null;
}
// Attempt to acquire an available element from the queue for the current transact... | public class class_name {
public E poll()
{
Object owner;
if (transactional)
{
owner = TxManager.getCurrentSession(); // depends on control dependency: [if], data = [none]
}
else
{
owner = null; // depends on control dependency: [if], data = ... |
public class class_name {
public static AccessToken createFromExistingAccessToken(String accessToken, Date expirationTime,
Date lastRefreshTime, AccessTokenSource accessTokenSource, List<String> permissions) {
if (expirationTime == null) {
expirationTime = DEFAULT_EXPIRATION_TIME;
... | public class class_name {
public static AccessToken createFromExistingAccessToken(String accessToken, Date expirationTime,
Date lastRefreshTime, AccessTokenSource accessTokenSource, List<String> permissions) {
if (expirationTime == null) {
expirationTime = DEFAULT_EXPIRATION_TIME; // de... |
public class class_name {
void showVariationsWindow(String resource) {
final Window window = CmsBasicDialog.prepareWindow(DialogWidth.max);
CmsVariationsDialog variationsDialog = new CmsVariationsDialog(resource, new Runnable() {
public void run() {
window.close();
... | public class class_name {
void showVariationsWindow(String resource) {
final Window window = CmsBasicDialog.prepareWindow(DialogWidth.max);
CmsVariationsDialog variationsDialog = new CmsVariationsDialog(resource, new Runnable() {
public void run() {
window.close();
... |
public class class_name {
public static void checkOptional(OptionSet options, List<String> opts)
throws VoldemortException {
List<String> optCopy = Lists.newArrayList();
for(String opt: opts) {
if(options.has(opt)) {
optCopy.add(opt);
}
}
... | public class class_name {
public static void checkOptional(OptionSet options, List<String> opts)
throws VoldemortException {
List<String> optCopy = Lists.newArrayList();
for(String opt: opts) {
if(options.has(opt)) {
optCopy.add(opt); // depends on control depend... |
public class class_name {
void addToSubroutine(final long id, final int nbSubroutines) {
if ((status & VISITED) == 0) {
status |= VISITED;
srcAndRefPositions = new int[nbSubroutines / 32 + 1];
}
srcAndRefPositions[(int) (id >>> 32)] |= (int) id;
} } | public class class_name {
void addToSubroutine(final long id, final int nbSubroutines) {
if ((status & VISITED) == 0) {
status |= VISITED; // depends on control dependency: [if], data = [none]
srcAndRefPositions = new int[nbSubroutines / 32 + 1]; // depends on control dependency: [if], ... |
public class class_name {
public CommonsQueryCountLoggingServletFilter buildCommonsFilter(CommonsLogLevel logLevel) {
if (logLevel != null) {
this.commonsLogLevel = logLevel;
}
CommonsQueryCountLoggingServletFilter filter = new CommonsQueryCountLoggingServletFilter();
if (t... | public class class_name {
public CommonsQueryCountLoggingServletFilter buildCommonsFilter(CommonsLogLevel logLevel) {
if (logLevel != null) {
this.commonsLogLevel = logLevel; // depends on control dependency: [if], data = [none]
}
CommonsQueryCountLoggingServletFilter filter = new ... |
public class class_name {
public void addIgnoreFieldAnnotation( Class annotationClass ) {
if( annotationClass != null && !ignoreFieldAnnotations.contains( annotationClass.getName() )) {
ignoreFieldAnnotations.add(annotationClass.getName());
}
} } | public class class_name {
public void addIgnoreFieldAnnotation( Class annotationClass ) {
if( annotationClass != null && !ignoreFieldAnnotations.contains( annotationClass.getName() )) {
ignoreFieldAnnotations.add(annotationClass.getName()); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private Object evalInternal(
Selector sel,
MatchSpaceKey bind,
EvalCache cache,
Object contextValue,
boolean permissive)
throws BadMessageFormatMatchingException
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "evalInternal", new Obj... | public class class_name {
private Object evalInternal(
Selector sel,
MatchSpaceKey bind,
EvalCache cache,
Object contextValue,
boolean permissive)
throws BadMessageFormatMatchingException
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "evalInternal", new Obj... |
public class class_name {
private ListenerTarget getLinearTarget(final Listener listener) {
ListenerTarget target = targets.get(listener);
if (target == null) {
target = new ListenerTarget(listener);
targets.put(listener, target);
}
return target;
} } | public class class_name {
private ListenerTarget getLinearTarget(final Listener listener) {
ListenerTarget target = targets.get(listener);
if (target == null) {
target = new ListenerTarget(listener); // depends on control dependency: [if], data = [none]
targets.put(listener, target); // depends on ... |
public class class_name {
public Map<String, String> getUriVariablesForCorpNotes(Integer clientCorporationID, Set<String> fieldSet, CorpNotesParams params) {
if (params == null) {
params = ParamFactory.corpNotesParams();
}
Map<String, String> uriVariables = params.getParameterMap();
String bhRestToken = b... | public class class_name {
public Map<String, String> getUriVariablesForCorpNotes(Integer clientCorporationID, Set<String> fieldSet, CorpNotesParams params) {
if (params == null) {
params = ParamFactory.corpNotesParams(); // depends on control dependency: [if], data = [none]
}
Map<String, String> uriVariables... |
public class class_name {
public static Cells getCellFromJson(JSONObject Json, String tableName)
throws IllegalAccessException, InstantiationException, InvocationTargetException {
Cells cells = tableName != null ? new Cells(tableName) : new Cells();
Set<String> entrySet = Json.keySet();
... | public class class_name {
public static Cells getCellFromJson(JSONObject Json, String tableName)
throws IllegalAccessException, InstantiationException, InvocationTargetException {
Cells cells = tableName != null ? new Cells(tableName) : new Cells();
Set<String> entrySet = Json.keySet();
... |
public class class_name {
public boolean addVersion(String cluster, String user, String appId,
String version, long timestamp) throws IOException {
boolean updated = false;
// check if the version already exists
byte[] rowKey = getRowKey(cluster, user, appId);
byte[] versionCol = Bytes.toBytes(v... | public class class_name {
public boolean addVersion(String cluster, String user, String appId,
String version, long timestamp) throws IOException {
boolean updated = false;
// check if the version already exists
byte[] rowKey = getRowKey(cluster, user, appId);
byte[] versionCol = Bytes.toBytes(v... |
public class class_name {
public static File createFileBalancingDirectoryDescriptor(File workingDirectory, String fileName, int depth, int cellWidth)
{
if (depth < 0)
{
throw new IllegalArgumentException("depth must be greater or equal to 0");
}
if (cellWidth < 1)
{
throw new IllegalArgumentException(... | public class class_name {
public static File createFileBalancingDirectoryDescriptor(File workingDirectory, String fileName, int depth, int cellWidth)
{
if (depth < 0)
{
throw new IllegalArgumentException("depth must be greater or equal to 0");
}
if (cellWidth < 1)
{
throw new IllegalArgumentException(... |
public class class_name {
private boolean isGetterOrSetter(Method method) {
try {
String methodName = method.getName();
return methodName.startsWith("get") || methodName.startsWith("is") || methodName.startsWith("set") || "clearWarnings".equals(methodName);
} catch (Exception ex... | public class class_name {
private boolean isGetterOrSetter(Method method) {
try {
String methodName = method.getName();
return methodName.startsWith("get") || methodName.startsWith("is") || methodName.startsWith("set") || "clearWarnings".equals(methodName); // depends on control depende... |
public class class_name {
private <T> Map<String, Object> digMaps(Class<T> requiredType) {
Map<String, Object> all = new HashMap<String, Object>();
Set<Class> keys = services.keySet();
for (Class serviceClass : keys) {
if (requiredType.isAssignableFrom(serviceClass)) {
... | public class class_name {
private <T> Map<String, Object> digMaps(Class<T> requiredType) {
Map<String, Object> all = new HashMap<String, Object>();
Set<Class> keys = services.keySet();
for (Class serviceClass : keys) {
if (requiredType.isAssignableFrom(serviceClass)) {
... |
public class class_name {
public final void annotationMethodRest() throws RecognitionException {
int annotationMethodRest_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 77) ) { return; }
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:668:6: (... | public class class_name {
public final void annotationMethodRest() throws RecognitionException {
int annotationMethodRest_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 77) ) { return; } // depends on control dependency: [if], data = [none]
// src/main/resources/org... |
public class class_name {
private void cleanClusters()
{
//System.out.println("Clean Clusters");
Iterator<GridCluster> clusIter = this.cluster_list.iterator();
ArrayList<GridCluster> toRem = new ArrayList<GridCluster>();
// Check to see if there are any empty clusters
while(clusIter.hasNext())
{
GridC... | public class class_name {
private void cleanClusters()
{
//System.out.println("Clean Clusters");
Iterator<GridCluster> clusIter = this.cluster_list.iterator();
ArrayList<GridCluster> toRem = new ArrayList<GridCluster>();
// Check to see if there are any empty clusters
while(clusIter.hasNext())
{
GridC... |
public class class_name {
public static <T> T fill(T destination, Object source) {
if (destination != source) {
Class<?> stype = source.getClass();
for (Field field: destination.getClass().getFields()) {
try {
Object value = field.get(destination);
... | public class class_name {
public static <T> T fill(T destination, Object source) {
if (destination != source) {
Class<?> stype = source.getClass();
for (Field field: destination.getClass().getFields()) {
try {
Object value = field.get(destination);
... |
public class class_name {
public static void main(String[] args) {
// determine if a valid log4j config exists and initialize a default logger if not
if (System.getProperty("log4j.configuration") == null) {
Logger root = Logger.getRootLogger();
root.removeAllAppenders();
PatternLayout layout = new Pattern... | public class class_name {
public static void main(String[] args) {
// determine if a valid log4j config exists and initialize a default logger if not
if (System.getProperty("log4j.configuration") == null) {
Logger root = Logger.getRootLogger();
root.removeAllAppenders(); // depends on control dependency: [if... |
public class class_name {
static File
findSystemTempDir(String[] candidates)
{
for(String candidate : candidates) {
File f = new File(candidate);
if(f.exists() && f.canRead() && f.canWrite())
return f;
if(f.mkdirs()) // Try to create the path
... | public class class_name {
static File
findSystemTempDir(String[] candidates)
{
for(String candidate : candidates) {
File f = new File(candidate);
if(f.exists() && f.canRead() && f.canWrite())
return f;
if(f.mkdirs()) // Try to create the path
... |
public class class_name {
public void deselectByIdentifier(final long identifier) {
mFastAdapter.recursive(new AdapterPredicate<Item>() {
@Override
public boolean apply(@NonNull IAdapter<Item> lastParentAdapter, int lastParentPosition, Item item, int position) {
if (item... | public class class_name {
public void deselectByIdentifier(final long identifier) {
mFastAdapter.recursive(new AdapterPredicate<Item>() {
@Override
public boolean apply(@NonNull IAdapter<Item> lastParentAdapter, int lastParentPosition, Item item, int position) {
if (item... |
public class class_name {
public <T> I addPageNames(Supplier<Collection<T>> webPagesSupplier, Function<T, String> mapper) {
for (T element : webPagesSupplier.get()) {
addPage(WebPage.of(mapper.apply(element)));
}
return getThis();
} } | public class class_name {
public <T> I addPageNames(Supplier<Collection<T>> webPagesSupplier, Function<T, String> mapper) {
for (T element : webPagesSupplier.get()) {
addPage(WebPage.of(mapper.apply(element))); // depends on control dependency: [for], data = [element]
}
return getTh... |
public class class_name {
public DescribeFileSystemsResult withFileSystems(FileSystemDescription... fileSystems) {
if (this.fileSystems == null) {
setFileSystems(new com.amazonaws.internal.SdkInternalList<FileSystemDescription>(fileSystems.length));
}
for (FileSystemDescription ele ... | public class class_name {
public DescribeFileSystemsResult withFileSystems(FileSystemDescription... fileSystems) {
if (this.fileSystems == null) {
setFileSystems(new com.amazonaws.internal.SdkInternalList<FileSystemDescription>(fileSystems.length)); // depends on control dependency: [if], data = [n... |
public class class_name {
public void launchPollingThread(long mountId, long txId) {
LOG.debug("launch polling thread for mount id {}, txId {}", mountId, txId);
if (!mPollerMap.containsKey(mountId)) {
try (CloseableResource<UnderFileSystem> ufsClient =
mMountTable.getUfsClient(mountId).acq... | public class class_name {
public void launchPollingThread(long mountId, long txId) {
LOG.debug("launch polling thread for mount id {}, txId {}", mountId, txId);
if (!mPollerMap.containsKey(mountId)) {
try (CloseableResource<UnderFileSystem> ufsClient =
mMountTable.getUfsClient(mountId).acq... |
public class class_name {
public long onIdle(final long timeNs, final long senderLimit, final long senderPosition, final boolean isEos)
{
if (isEos && shouldLinger)
{
if (lastPosition >= senderPosition || ((timeOfLastStatusMessage + RECEIVER_TIMEOUT_NS) - timeNs < 0))
{
... | public class class_name {
public long onIdle(final long timeNs, final long senderLimit, final long senderPosition, final boolean isEos)
{
if (isEos && shouldLinger)
{
if (lastPosition >= senderPosition || ((timeOfLastStatusMessage + RECEIVER_TIMEOUT_NS) - timeNs < 0))
{
... |
public class class_name {
VoltXMLElement voltGetXML(SimpleColumnContext context, String realAlias)
throws HSQLParseException {
// The voltXML representations of expressions tends to be driven much more by the expression's opType
// than its Expression class.
int exprOp = getType();
... | public class class_name {
VoltXMLElement voltGetXML(SimpleColumnContext context, String realAlias)
throws HSQLParseException {
// The voltXML representations of expressions tends to be driven much more by the expression's opType
// than its Expression class.
int exprOp = getType();
... |
public class class_name {
public void startTimeoutTimer(int iDelayMS)
{
if (m_timeouttimer == null)
{
m_timeouttimer = new Timer(iDelayMS, this);
m_timeouttimer.setRepeats(false);
m_timeouttimer.start();
}
else
m_timeouttimer.restart()... | public class class_name {
public void startTimeoutTimer(int iDelayMS)
{
if (m_timeouttimer == null)
{
m_timeouttimer = new Timer(iDelayMS, this); // depends on control dependency: [if], data = [none]
m_timeouttimer.setRepeats(false); // depends on control dependency: [if], d... |
public class class_name {
void markAllProxies()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "markAllProxies");
final Enumeration enu = iProxies.elements();
// Cycle through each of the proxies
while (enu.hasMoreElements())
{
final MESubscriptio... | public class class_name {
void markAllProxies()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "markAllProxies");
final Enumeration enu = iProxies.elements();
// Cycle through each of the proxies
while (enu.hasMoreElements())
{
final MESubscriptio... |
public class class_name {
public void pack() {
// we must clone, since we want to iterate only over the original list
final Object[] clone = this.children.toArray();
for (Object aClone : clone) {
// if child is also a group element, there may be
// some possible clean up... | public class class_name {
public void pack() {
// we must clone, since we want to iterate only over the original list
final Object[] clone = this.children.toArray();
for (Object aClone : clone) {
// if child is also a group element, there may be
// some possible clean up... |
public class class_name {
private String getTableDataValue( Element tdNode )
{
//return tdNode.html();
StringBuffer buf = new StringBuffer();
List<Node> childNodes = tdNode.childNodes();
for ( Node tdChild : childNodes )
{
if ( tdChild instanceof TextNode )
... | public class class_name {
private String getTableDataValue( Element tdNode )
{
//return tdNode.html();
StringBuffer buf = new StringBuffer();
List<Node> childNodes = tdNode.childNodes();
for ( Node tdChild : childNodes )
{
if ( tdChild instanceof TextNode )
... |
public class class_name {
@VisibleForTesting
final List<ClientInterceptor> getEffectiveInterceptors() {
List<ClientInterceptor> effectiveInterceptors =
new ArrayList<>(this.interceptors);
temporarilyDisableRetry = false;
if (statsEnabled) {
temporarilyDisableRetry = true;
CensusStatsM... | public class class_name {
@VisibleForTesting
final List<ClientInterceptor> getEffectiveInterceptors() {
List<ClientInterceptor> effectiveInterceptors =
new ArrayList<>(this.interceptors);
temporarilyDisableRetry = false;
if (statsEnabled) {
temporarilyDisableRetry = true; // depends on cont... |
public class class_name {
public String getMessage(Constraint constraint) {
String objectName = null;
if (constraint instanceof PropertyConstraint) {
objectName = ((PropertyConstraint) constraint).getPropertyName();
}
String message = buildMessage(objectName, null, constraint);
return message;
} } | public class class_name {
public String getMessage(Constraint constraint) {
String objectName = null;
if (constraint instanceof PropertyConstraint) {
objectName = ((PropertyConstraint) constraint).getPropertyName(); // depends on control dependency: [if], data = [none]
}
String message = buildMessage(object... |
public class class_name {
public static Report loadConvertedReport(String xml) {
XStream xstream = XStreamFactory.createXStream();
try {
return (Report) xstream.fromXML(xml);
} catch (Exception e) {
LOG.error(e.getMessage(), e);
e.printStackTrace();
return null;
}
} } | public class class_name {
public static Report loadConvertedReport(String xml) {
XStream xstream = XStreamFactory.createXStream();
try {
return (Report) xstream.fromXML(xml); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
LOG.error(e.getMessage(), e);
e.printStackTrace();... |
public class class_name {
public HandleErrorResult primaryFail(Method method, Object[] args, boolean killCmd) {
boolean alreadyClosed = masterProtocol == null || !masterProtocol.isConnected();
boolean inTransaction = masterProtocol != null && masterProtocol.inTransaction();
//in case of SocketTimeoutExcep... | public class class_name {
public HandleErrorResult primaryFail(Method method, Object[] args, boolean killCmd) {
boolean alreadyClosed = masterProtocol == null || !masterProtocol.isConnected();
boolean inTransaction = masterProtocol != null && masterProtocol.inTransaction();
//in case of SocketTimeoutExcep... |
public class class_name {
public static boolean checkReaderWriterCompatibility(Schema readerSchema, Schema writerSchema, boolean ignoreNamespace) {
if (ignoreNamespace) {
List<Schema.Field> fields = deepCopySchemaFields(readerSchema);
readerSchema = Schema.createRecord(writerSchema.getName(), writerSch... | public class class_name {
public static boolean checkReaderWriterCompatibility(Schema readerSchema, Schema writerSchema, boolean ignoreNamespace) {
if (ignoreNamespace) {
List<Schema.Field> fields = deepCopySchemaFields(readerSchema);
readerSchema = Schema.createRecord(writerSchema.getName(), writerSch... |
public class class_name {
public String[] getMinors(String major) {
prepareDetailedVersions();
if (majors.containsKey(major)) {
return majors.get(major).toArray(new String[]{});
}
return null;
} } | public class class_name {
public String[] getMinors(String major) {
prepareDetailedVersions();
if (majors.containsKey(major)) {
return majors.get(major).toArray(new String[]{}); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public static void setDefaultTableEditorsClicks(JTable table, int clickCountToStart) {
TableCellEditor editor;
editor = table.getDefaultEditor(Object.class);
if (editor instanceof DefaultCellEditor) {
((DefaultCellEditor) editor).setClickCountToStart(clickC... | public class class_name {
public static void setDefaultTableEditorsClicks(JTable table, int clickCountToStart) {
TableCellEditor editor;
editor = table.getDefaultEditor(Object.class);
if (editor instanceof DefaultCellEditor) {
((DefaultCellEditor) editor).setClickCountToStart(clickC... |
public class class_name {
private static void flushCloseDown(SSLEngine engine, WsByteBuffer outputBuffer, SSLConnectionLink xConnLink) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "flushCloseDown");
}
TCPWriteRequestContext deviceWriteInterface ... | public class class_name {
private static void flushCloseDown(SSLEngine engine, WsByteBuffer outputBuffer, SSLConnectionLink xConnLink) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "flushCloseDown"); // depends on control dependency: [if], data = [none]
}... |
public class class_name {
protected final int initApplicationDir(){
this.applicationDir = this.optionAppHome.getValue();
if(this.applicationDir==null){
System.err.println(this.getAppName() + ": no application directory set");
return -1;
}
return 0;
} } | public class class_name {
protected final int initApplicationDir(){
this.applicationDir = this.optionAppHome.getValue();
if(this.applicationDir==null){
System.err.println(this.getAppName() + ": no application directory set"); // depends on control dependency: [if], data = [none]
return -1; // depends on cont... |
public class class_name {
@Override
public void setContract(Contract c) {
super.setContract(c);
for (Function f : functions) {
f.setContract(c);
}
} } | public class class_name {
@Override
public void setContract(Contract c) {
super.setContract(c);
for (Function f : functions) {
f.setContract(c); // depends on control dependency: [for], data = [f]
}
} } |
public class class_name {
public void marshall(DescribeThingRequest describeThingRequest, ProtocolMarshaller protocolMarshaller) {
if (describeThingRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(DescribeThingRequest describeThingRequest, ProtocolMarshaller protocolMarshaller) {
if (describeThingRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
@Override
public String getOutputName() {
if ("HTML".equalsIgnoreCase(this.format) || "ALL".equalsIgnoreCase(this.format)) {
return "dependency-check-report";
} else if ("XML".equalsIgnoreCase(this.format)) {
return "dependency-check-report.xml";
... | public class class_name {
@Override
public String getOutputName() {
if ("HTML".equalsIgnoreCase(this.format) || "ALL".equalsIgnoreCase(this.format)) {
return "dependency-check-report"; // depends on control dependency: [if], data = [none]
} else if ("XML".equalsIgnoreCase(this.format)) ... |
public class class_name {
public void unsetAsynchConsumer(boolean stoppable) //SIB0115d.comms
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIErrorExcepti... | public class class_name {
public void unsetAsynchConsumer(boolean stoppable) //SIB0115d.comms
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIErrorExcepti... |
public class class_name {
@Nonnull
public static String getPatternStringForSecrets(@Nonnull Collection<String> secrets) {
List<String> sortedByLength = new ArrayList<>(secrets);
Collections.sort(sortedByLength, stringLengthComparator);
StringBuilder regexp = new StringBuilder();
f... | public class class_name {
@Nonnull
public static String getPatternStringForSecrets(@Nonnull Collection<String> secrets) {
List<String> sortedByLength = new ArrayList<>(secrets);
Collections.sort(sortedByLength, stringLengthComparator);
StringBuilder regexp = new StringBuilder();
f... |
public class class_name {
public void marshall(DedicatedIp dedicatedIp, ProtocolMarshaller protocolMarshaller) {
if (dedicatedIp == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(dedicatedIp.getIp()... | public class class_name {
public void marshall(DedicatedIp dedicatedIp, ProtocolMarshaller protocolMarshaller) {
if (dedicatedIp == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(dedicatedIp.getIp()... |
public class class_name {
public <T> T exit(T result) {
if (instanceofLAL && logger.isTraceEnabled(ENTRY_MARKER)) {
FormattingTuple tp = MessageFormatter.format(EXIT_MESSAGE_1, result);
((LocationAwareLogger) logger).log(EXIT_MARKER, FQCN, LocationAwareLogger.TRACE_INT, tp.getMessage(),... | public class class_name {
public <T> T exit(T result) {
if (instanceofLAL && logger.isTraceEnabled(ENTRY_MARKER)) {
FormattingTuple tp = MessageFormatter.format(EXIT_MESSAGE_1, result);
((LocationAwareLogger) logger).log(EXIT_MARKER, FQCN, LocationAwareLogger.TRACE_INT, tp.getMessage(),... |
public class class_name {
@Override
public final void handle(final Map<String, Object> pReqVars,
final IRequestData pRequestData,
final OutputStream pSous) throws Exception {
String csvMethodIdStr = pRequestData.getParameter("csvMethod");
Long csvMethodId = Long.parseLong(csvMethodIdStr);
Strin... | public class class_name {
@Override
public final void handle(final Map<String, Object> pReqVars,
final IRequestData pRequestData,
final OutputStream pSous) throws Exception {
String csvMethodIdStr = pRequestData.getParameter("csvMethod");
Long csvMethodId = Long.parseLong(csvMethodIdStr);
Strin... |
public class class_name {
private String getSourceIndent(TreeNode fragment) {
int index = fragment.getStartPosition();
if (index < 1) {
return "";
}
TreeNode node = fragment.getParent();
while (node != null && node.getKind() != TreeNode.Kind.COMPILATION_UNIT) {
node = node.getParent();
... | public class class_name {
private String getSourceIndent(TreeNode fragment) {
int index = fragment.getStartPosition();
if (index < 1) {
return ""; // depends on control dependency: [if], data = [none]
}
TreeNode node = fragment.getParent();
while (node != null && node.getKind() != TreeNode.Ki... |
public class class_name {
public void unknownEntry(Vector strings) {
if (strings != null && strings.size() > 0) {
String keyword = (String) strings.elementAt(0);
catalogManager.debug.message(2, "Unrecognized token parsing catalog", keyword);
}
} } | public class class_name {
public void unknownEntry(Vector strings) {
if (strings != null && strings.size() > 0) {
String keyword = (String) strings.elementAt(0);
catalogManager.debug.message(2, "Unrecognized token parsing catalog", keyword); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void recordSubsystemVersions(String moduleName, ModelNode subsystems) {
final Map<String, SubsystemInformation> subsystemsInfo = getAvailableSubsystems(moduleName);
if(subsystemsInfo != null && ! subsystemsInfo.isEmpty()) {
for(final Map.Entry<String, Subsys... | public class class_name {
public void recordSubsystemVersions(String moduleName, ModelNode subsystems) {
final Map<String, SubsystemInformation> subsystemsInfo = getAvailableSubsystems(moduleName);
if(subsystemsInfo != null && ! subsystemsInfo.isEmpty()) {
for(final Map.Entry<String, Subsys... |
public class class_name {
@Override
public String getId() {
String id = null;
if (isListenerFilterable()) {
id = ((com.ibm.ws.artifact.ArtifactNotifierExtension.ArtifactListener) listener).getId();
}
return id;
} } | public class class_name {
@Override
public String getId() {
String id = null;
if (isListenerFilterable()) {
id = ((com.ibm.ws.artifact.ArtifactNotifierExtension.ArtifactListener) listener).getId(); // depends on control dependency: [if], data = [none]
}
return id;
}... |
public class class_name {
public void sharedUnlock() {
final ReadersEntry localEntry = entry.get();
if (localEntry == null) {
// ERROR: Tried to unlock a non read-locked lock
throw new IllegalMonitorStateException();
} else {
localEntry.state.set(SRWL_STATE_NOT_READING);
return;
... | public class class_name {
public void sharedUnlock() {
final ReadersEntry localEntry = entry.get();
if (localEntry == null) {
// ERROR: Tried to unlock a non read-locked lock
throw new IllegalMonitorStateException();
} else {
localEntry.state.set(SRWL_STATE_NOT_READING); // depends on con... |
public class class_name {
@Override
public List<?> getResultList() {
if (log.isDebugEnabled())
log.debug("JPA Query: " + getJPAQuery());
// get luence query
String q = luceneQuery;
if (null == q) {
q = KunderaCoreUtils.getLuceneQueryFromJPAQuery(kund... | public class class_name {
@Override
public List<?> getResultList() {
if (log.isDebugEnabled())
log.debug("JPA Query: " + getJPAQuery());
// get luence query
String q = luceneQuery;
if (null == q) {
q = KunderaCoreUtils.getLuceneQueryFromJPAQuery(kund... |
public class class_name {
@Override
public void restoreState(FacesContext context, Object state)
{
if (_saveUIDataRowState) {
if (state == null)
{
return;
}
Object values[] = (Object[]) state;
super.restoreState(co... | public class class_name {
@Override
public void restoreState(FacesContext context, Object state)
{
if (_saveUIDataRowState) {
if (state == null)
{
return; // depends on control dependency: [if], data = [none]
}
Object values[]... |
public class class_name {
View createPresetsView() {
View contentView = View.inflate(getActivity(), R.layout.cpv_dialog_presets, null);
shadesLayout = (LinearLayout) contentView.findViewById(R.id.shades_layout);
transparencySeekBar = (SeekBar) contentView.findViewById(R.id.transparency_seekbar);
transp... | public class class_name {
View createPresetsView() {
View contentView = View.inflate(getActivity(), R.layout.cpv_dialog_presets, null);
shadesLayout = (LinearLayout) contentView.findViewById(R.id.shades_layout);
transparencySeekBar = (SeekBar) contentView.findViewById(R.id.transparency_seekbar);
transp... |
public class class_name {
public int andCardinality(Container x) {
if (this.isEmpty()) {
return 0;
} else if (x.isEmpty()) {
return 0;
} else {
if (x instanceof ArrayContainer) {
return andCardinality((ArrayContainer) x);
} else if (x instanceof BitmapContainer) {
re... | public class class_name {
public int andCardinality(Container x) {
if (this.isEmpty()) {
return 0; // depends on control dependency: [if], data = [none]
} else if (x.isEmpty()) {
return 0; // depends on control dependency: [if], data = [none]
} else {
if (x instanceof ArrayContainer) {
... |
public class class_name {
public static boolean containsOnly(Stream stream, long size){
long count = 0L;
Iterator it = stream.iterator();
while(it.hasNext()){
it.next();
if(++count > size) return false;
}
return size == count;
} } | public class class_name {
public static boolean containsOnly(Stream stream, long size){
long count = 0L;
Iterator it = stream.iterator();
while(it.hasNext()){
it.next(); // depends on control dependency: [while], data = [none]
if(++count > size) return false;
}
... |
public class class_name {
@Override
public ISeq<Phenotype<G, N>> select(
final Seq<Phenotype<G, N>> population,
final int count,
final Optimize opt
) {
requireNonNull(population, "Population");
if (count < 0) {
throw new IllegalArgumentException(
"Selection count must be greater or equal then zero, ... | public class class_name {
@Override
public ISeq<Phenotype<G, N>> select(
final Seq<Phenotype<G, N>> population,
final int count,
final Optimize opt
) {
requireNonNull(population, "Population");
if (count < 0) {
throw new IllegalArgumentException(
"Selection count must be greater or equal then zero, ... |
public class class_name {
private Icon getIcon(AbstractButton b, Icon specificIcon, Icon defaultIcon, int state) {
Icon icon = specificIcon;
if (icon == null) {
if (defaultIcon instanceof UIResource) {
icon = getSynthIcon(b, state);
if (icon == null) {
... | public class class_name {
private Icon getIcon(AbstractButton b, Icon specificIcon, Icon defaultIcon, int state) {
Icon icon = specificIcon;
if (icon == null) {
if (defaultIcon instanceof UIResource) {
icon = getSynthIcon(b, state); // depends on control dependency: [if], d... |
public class class_name {
public static String decipher(String key,
String cipherText,
String cipherType) {
if (key == null || key == "") {
return cipherText;
}
if (cipherText == null) {
return null;
... | public class class_name {
public static String decipher(String key,
String cipherText,
String cipherType) {
if (key == null || key == "") {
return cipherText; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void closeRun() {
if(positionChanges.isEmpty())
return;
SortedMap<Integer,Integer> temp=positionChanges;
//adapt old positions to new mapping
while(!positionMap.isEmpty()){
Integer key=positionMap.firstKey();
Collection<Integer> modifiers=old2NewMap... | public class class_name {
public void closeRun() {
if(positionChanges.isEmpty())
return;
SortedMap<Integer,Integer> temp=positionChanges;
//adapt old positions to new mapping
while(!positionMap.isEmpty()){
Integer key=positionMap.firstKey();
Collection<Integer> modifiers=old2NewMap... |
public class class_name {
@Override
public String listPop(String listName, boolean block, int timeout) {
if (!block) {
return redisClient.lpop(listName);
}
List<String> result = redisClient.blpop(timeout, listName);
return result != null && result.size() > 1 ? result.get... | public class class_name {
@Override
public String listPop(String listName, boolean block, int timeout) {
if (!block) {
return redisClient.lpop(listName); // depends on control dependency: [if], data = [none]
}
List<String> result = redisClient.blpop(timeout, listName);
r... |
public class class_name {
public void onChange(Widget widget) {
if (widget == m_tbHexColor) {
try {
CmsColor color = new CmsColor();
color.setHex(m_tbHexColor.getText());
m_tbHue.setText(Integer.toString(color.getHue()));
m_tbS... | public class class_name {
public void onChange(Widget widget) {
if (widget == m_tbHexColor) {
try {
CmsColor color = new CmsColor();
color.setHex(m_tbHexColor.getText());
// depends on control dependency: [try], data = [none]
m_tbHue.setText(In... |
public class class_name {
private boolean executeEvents(final AjaxRequestTarget _target,
final Map<String, String[]> _other,
final List<Classification> _classifications)
throws EFapsException
{
AjaxSubmitCloseButton.LOG.trace("ente... | public class class_name {
private boolean executeEvents(final AjaxRequestTarget _target,
final Map<String, String[]> _other,
final List<Classification> _classifications)
throws EFapsException
{
AjaxSubmitCloseButton.LOG.trace("ente... |
public class class_name {
@Override
public String getLabel() {
if (label != null)
// LIGHTWEIGHT EDGE
return label;
else if (rawElement != null) {
if (settings != null && settings.isUseClassForEdgeLabel()) {
final String clsName = getRecord().getClassName();
if (!OrientEdgeT... | public class class_name {
@Override
public String getLabel() {
if (label != null)
// LIGHTWEIGHT EDGE
return label;
else if (rawElement != null) {
if (settings != null && settings.isUseClassForEdgeLabel()) {
final String clsName = getRecord().getClassName();
if (!OrientEdgeT... |
public class class_name {
public void setSolutionStackDetails(java.util.Collection<SolutionStackDescription> solutionStackDetails) {
if (solutionStackDetails == null) {
this.solutionStackDetails = null;
return;
}
this.solutionStackDetails = new com.amazonaws.internal.Sd... | public class class_name {
public void setSolutionStackDetails(java.util.Collection<SolutionStackDescription> solutionStackDetails) {
if (solutionStackDetails == null) {
this.solutionStackDetails = null; // depends on control dependency: [if], data = [none]
return; // depends on control ... |
public class class_name {
private static JSONArray parseChildShapesRecursive(ArrayList<Shape> childShapes) throws JSONException {
if (childShapes != null) {
JSONArray childShapesArray = new JSONArray();
for (Shape childShape : childShapes) {
JSONObject childShapeObject ... | public class class_name {
private static JSONArray parseChildShapesRecursive(ArrayList<Shape> childShapes) throws JSONException {
if (childShapes != null) {
JSONArray childShapesArray = new JSONArray();
for (Shape childShape : childShapes) {
JSONObject childShapeObject ... |
public class class_name {
public synchronized Pool getPool(String name) {
Pool pool = pools.get(name);
if (pool == null) {
boolean isConfiguredPool = poolNamesInAllocFile.contains(name);
pool = new Pool(name, isConfiguredPool);
pools.put(name, pool);
}
return pool;
} } | public class class_name {
public synchronized Pool getPool(String name) {
Pool pool = pools.get(name);
if (pool == null) {
boolean isConfiguredPool = poolNamesInAllocFile.contains(name);
pool = new Pool(name, isConfiguredPool); // depends on control dependency: [if], data = [none]
pools.put(n... |
public class class_name {
public boolean clearEncryptionKeyData() {
try {
SharedPreferences.Editor editor = this.prefs.edit();
editor.remove(preferenceKey);
editor.commit();
} catch (Exception e) {
LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e);
... | public class class_name {
public boolean clearEncryptionKeyData() {
try {
SharedPreferences.Editor editor = this.prefs.edit();
editor.remove(preferenceKey); // depends on control dependency: [try], data = [none]
editor.commit(); // depends on control dependency: [try], data ... |
public class class_name {
public List<ParsingResult> parseUsing( final String ddl,
final String firstParserId,
final String secondParserId,
final String... additionalParserIds ) throws Parsi... | public class class_name {
public List<ParsingResult> parseUsing( final String ddl,
final String firstParserId,
final String secondParserId,
final String... additionalParserIds ) throws Parsi... |
public class class_name {
public static void setPropertySafely(Marshaller marshaller, String name, Object value) {
try {
marshaller.setProperty(name, value);
} catch (PropertyException e) {
LOGGER.warn(String.format("Can't set \"%s\" property to given marshaller", name), e);
... | public class class_name {
public static void setPropertySafely(Marshaller marshaller, String name, Object value) {
try {
marshaller.setProperty(name, value); // depends on control dependency: [try], data = [none]
} catch (PropertyException e) {
LOGGER.warn(String.format("Can't s... |
public class class_name {
public <T> List<Key<T>> getKeysByRefs(final List<DBRef> refs) {
final List<Key<T>> keys = new ArrayList<Key<T>>(refs.size());
for (final DBRef ref : refs) {
final Key<T> testKey = refToKey(ref);
keys.add(testKey);
}
return keys;
} } | public class class_name {
public <T> List<Key<T>> getKeysByRefs(final List<DBRef> refs) {
final List<Key<T>> keys = new ArrayList<Key<T>>(refs.size());
for (final DBRef ref : refs) {
final Key<T> testKey = refToKey(ref);
keys.add(testKey); // depends on control dependency: [for]... |
public class class_name {
public Observable<ServiceResponseWithHeaders<OutputInner, OutputsUpdateHeaders>> updateWithServiceResponseAsync(String resourceGroupName, String jobName, String outputName, OutputInner output) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException... | public class class_name {
public Observable<ServiceResponseWithHeaders<OutputInner, OutputsUpdateHeaders>> updateWithServiceResponseAsync(String resourceGroupName, String jobName, String outputName, OutputInner output) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException... |
public class class_name {
public void setCombiners( List<TupleCombiner> combiners)
{
combiners_ = new ArrayList<TupleCombiner>();
if( combiners != null)
{
combiners_.addAll( combiners);
}
} } | public class class_name {
public void setCombiners( List<TupleCombiner> combiners)
{
combiners_ = new ArrayList<TupleCombiner>();
if( combiners != null)
{
combiners_.addAll( combiners); // depends on control dependency: [if], data = [( combiners]
}
} } |
public class class_name {
public static Hop resolveHostByDnsSrvLookup(Hop hop) {
String host = hop.getHost();
String transport = hop.getTransport();
if(transport==null) {
transport = ListeningPoint.UDP;
}
transport = transport.toLowerCase();
Record[] records = null;
try {
records = new Lookup("_si... | public class class_name {
public static Hop resolveHostByDnsSrvLookup(Hop hop) {
String host = hop.getHost();
String transport = hop.getTransport();
if(transport==null) {
transport = ListeningPoint.UDP; // depends on control dependency: [if], data = [none]
}
transport = transport.toLowerCase();
Record[... |
public class class_name {
private static void checkInputFile(final String name, final File inFile) {
String isFailure = null;
if (inFile.isDirectory()) {
isFailure = "The " + name + " file is a directory!";
} else if (!inFile.exists()) {
isFailure = "The " + name + " file does not exist!";
... | public class class_name {
private static void checkInputFile(final String name, final File inFile) {
String isFailure = null;
if (inFile.isDirectory()) {
isFailure = "The " + name + " file is a directory!"; // depends on control dependency: [if], data = [none]
} else if (!inFile.exists()) {
i... |
public class class_name {
public synchronized void setSource(Source source) {
String sourceId = CollectorManagerUtils.getSourceId(source);
SourceManager srcMgr = null;
if (!sourceMgrs.containsKey(sourceId)) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
... | public class class_name {
public synchronized void setSource(Source source) {
String sourceId = CollectorManagerUtils.getSourceId(source);
SourceManager srcMgr = null;
if (!sourceMgrs.containsKey(sourceId)) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
... |
public class class_name {
public <T extends CharSequence> T notBlank(final T chars, final String message) {
if (chars == null) {
failNull(message);
}
if (StringUtils.isBlank(chars)) {
fail(message);
}
return chars;
} } | public class class_name {
public <T extends CharSequence> T notBlank(final T chars, final String message) {
if (chars == null) {
failNull(message); // depends on control dependency: [if], data = [none]
}
if (StringUtils.isBlank(chars)) {
fail(message); // depends on cont... |
public class class_name {
@PostConstruct
protected void startRTMAndWebSocketConnection() {
slackService.connectRTM(getSlackToken());
if (slackService.getWebSocketUrl() != null) {
webSocketManager = new WebSocketConnectionManager(client(), handler(), slackService.getWebSocketUrl());
... | public class class_name {
@PostConstruct
protected void startRTMAndWebSocketConnection() {
slackService.connectRTM(getSlackToken());
if (slackService.getWebSocketUrl() != null) {
webSocketManager = new WebSocketConnectionManager(client(), handler(), slackService.getWebSocketUrl()); // d... |
public class class_name {
public static List<Object> loadAll(Reader reader) throws IOException {
Iterable<Object> iterable = getSnakeYaml().loadAll(reader);
List<Object> list = new ArrayList<Object>();
for (Object object : iterable) {
if (object != null) {
try {
list.add(modelMapper... | public class class_name {
public static List<Object> loadAll(Reader reader) throws IOException {
Iterable<Object> iterable = getSnakeYaml().loadAll(reader);
List<Object> list = new ArrayList<Object>();
for (Object object : iterable) {
if (object != null) {
try {
list.add(modelMapper... |
public class class_name {
public static BuddhistChronology getInstance(DateTimeZone zone) {
if (zone == null) {
zone = DateTimeZone.getDefault();
}
BuddhistChronology chrono = cCache.get(zone);
if (chrono == null) {
// First create without a lower limit.
... | public class class_name {
public static BuddhistChronology getInstance(DateTimeZone zone) {
if (zone == null) {
zone = DateTimeZone.getDefault(); // depends on control dependency: [if], data = [none]
}
BuddhistChronology chrono = cCache.get(zone);
if (chrono == null) {
... |
public class class_name {
public ByteBuffer[] split(ByteBuffer name)
{
List<ByteBuffer> l = new ArrayList<ByteBuffer>();
ByteBuffer bb = name.duplicate();
readIsStatic(bb);
int i = 0;
while (bb.remaining() > 0)
{
getComparator(i++, bb);
l.add(... | public class class_name {
public ByteBuffer[] split(ByteBuffer name)
{
List<ByteBuffer> l = new ArrayList<ByteBuffer>();
ByteBuffer bb = name.duplicate();
readIsStatic(bb);
int i = 0;
while (bb.remaining() > 0)
{
getComparator(i++, bb); // depends on cont... |
public class class_name {
public void free()
{
if (m_pTable != null)
{
PDatabase pDatabase = m_pTable.getPDatabase();
m_pTable.removePTableOwner(this, true);
pDatabase.removePDatabaseOwner(this, true);
}
m_pTable = null;
super.free();
... | public class class_name {
public void free()
{
if (m_pTable != null)
{
PDatabase pDatabase = m_pTable.getPDatabase();
m_pTable.removePTableOwner(this, true); // depends on control dependency: [if], data = [none]
pDatabase.removePDatabaseOwner(this, true); // depe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.