code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static Person createPerson(final JAASSystem _jaasSystem,
final String _jaasKey,
final String _userName,
final String _uuid)
throws EFapsException
{
long... | public class class_name {
public static Person createPerson(final JAASSystem _jaasSystem,
final String _jaasKey,
final String _userName,
final String _uuid)
throws EFapsException
{
long... |
public class class_name {
private void setupTempLists()
{
//synchronized(this){ //d173022.2
//d115597 if necessary create a new tempList
// and list of currentBeanOs. Always delay this until actually needed
//d115597
if (tempList == null) {
tempList = new Arr... | public class class_name {
private void setupTempLists()
{
//synchronized(this){ //d173022.2
//d115597 if necessary create a new tempList
// and list of currentBeanOs. Always delay this until actually needed
//d115597
if (tempList == null) {
tempList = new Arr... |
public class class_name {
public static LocalFileDataWriter create(final FileSystemContext context,
final WorkerNetAddress address,
long blockId, OutStreamOptions options) throws IOException {
AlluxioConfiguration conf = context.getClusterConf();
long chunkSize = conf.getBytes(PropertyKey.USER_LOCA... | public class class_name {
public static LocalFileDataWriter create(final FileSystemContext context,
final WorkerNetAddress address,
long blockId, OutStreamOptions options) throws IOException {
AlluxioConfiguration conf = context.getClusterConf();
long chunkSize = conf.getBytes(PropertyKey.USER_LOCA... |
public class class_name {
protected int loadExpires(Scriptable cfg) {
int expires = 0;
Object oExpires = cfg.get(EXPIRES_CONFIGPARAM, cfg);
if (oExpires != Scriptable.NOT_FOUND) {
try {
expires = Integer.parseInt(toString(oExpires));
} catch (NumberFormatException ignore) {
throw new Illegal... | public class class_name {
protected int loadExpires(Scriptable cfg) {
int expires = 0;
Object oExpires = cfg.get(EXPIRES_CONFIGPARAM, cfg);
if (oExpires != Scriptable.NOT_FOUND) {
try {
expires = Integer.parseInt(toString(oExpires));
// depends on control dependency: [try], data = [none]
} catch ... |
public class class_name {
public void removeSuperfluousArtifacts(Set<String> recentlyCompiled) {
// Nothing to do, if nothing was recompiled.
if (recentlyCompiled.size() == 0) return;
for (String pkg : now.packages().keySet()) {
// If this package has not been recompiled, skip the ... | public class class_name {
public void removeSuperfluousArtifacts(Set<String> recentlyCompiled) {
// Nothing to do, if nothing was recompiled.
if (recentlyCompiled.size() == 0) return;
for (String pkg : now.packages().keySet()) {
// If this package has not been recompiled, skip the ... |
public class class_name {
public static boolean start(RootDoc root) {
List<Object> objs = new ArrayList<>();
for (ClassDoc doc : root.specifiedClasses()) {
// TODO: Class.forName() expects a binary name but doc.qualifiedName()
// returns a fully qualified name. I do not know a good way to convert
... | public class class_name {
public static boolean start(RootDoc root) {
List<Object> objs = new ArrayList<>();
for (ClassDoc doc : root.specifiedClasses()) {
// TODO: Class.forName() expects a binary name but doc.qualifiedName()
// returns a fully qualified name. I do not know a good way to convert
... |
public class class_name {
private ArrayList<String> getBuckets() {
String bucketList = getString(KEY_BUCKETS);
if (bucketList.equals(NO_STRING_VALUE)) {
return new ArrayList<>();
} else {
return deserializeString(bucketList);
}
} } | public class class_name {
private ArrayList<String> getBuckets() {
String bucketList = getString(KEY_BUCKETS);
if (bucketList.equals(NO_STRING_VALUE)) {
return new ArrayList<>(); // depends on control dependency: [if], data = [none]
} else {
return deserializeString(buck... |
public class class_name {
@Override
public void setResourceAdapter(final ResourceAdapter resourceAdapter) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
SibTr.debug(this, TRACE, "setResourceAdapter", resourceAdapter);
}
_resourceAdapter = resourceAdapter... | public class class_name {
@Override
public void setResourceAdapter(final ResourceAdapter resourceAdapter) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
SibTr.debug(this, TRACE, "setResourceAdapter", resourceAdapter); // depends on control dependency: [if], data = [none... |
public class class_name {
protected final <R extends AbstractPutObjectRequest> R wrapWithCipher(
final R request, ContentCryptoMaterial cekMaterial) {
// Create a new metadata object if there is no metadata already.
ObjectMetadata metadata = request.getMetadata();
if (metadata == null) ... | public class class_name {
protected final <R extends AbstractPutObjectRequest> R wrapWithCipher(
final R request, ContentCryptoMaterial cekMaterial) {
// Create a new metadata object if there is no metadata already.
ObjectMetadata metadata = request.getMetadata();
if (metadata == null) ... |
public class class_name {
public static String getEthernetAddress() {
try {
InetAddress ip = InetAddress.getLocalHost();
if (!ip.isLoopbackAddress()) {
NetworkInterface network = NetworkInterface.getByInetAddress(ip);
byte[] mac = network.getHardwareAddr... | public class class_name {
public static String getEthernetAddress() {
try {
InetAddress ip = InetAddress.getLocalHost();
if (!ip.isLoopbackAddress()) {
NetworkInterface network = NetworkInterface.getByInetAddress(ip);
byte[] mac = network.getHardwareAddr... |
public class class_name {
public boolean isEquivalent(Plugin testPlugin) {
// only do full check if an instance of this class
if (testPlugin instanceof JMSReceiver) {
JMSReceiver receiver = (JMSReceiver)testPlugin;
// check for same topic name and super class equivalency
return (
... | public class class_name {
public boolean isEquivalent(Plugin testPlugin) {
// only do full check if an instance of this class
if (testPlugin instanceof JMSReceiver) {
JMSReceiver receiver = (JMSReceiver)testPlugin;
// check for same topic name and super class equivalency
return (
... |
public class class_name {
public void dropIndex(Session session, String indexname) {
// find the array index for indexname and remove
int todrop = getIndexIndex(indexname);
indexList = (Index[]) ArrayUtil.toAdjustedArray(indexList, null,
todrop, -1);
for (int i = 0; i... | public class class_name {
public void dropIndex(Session session, String indexname) {
// find the array index for indexname and remove
int todrop = getIndexIndex(indexname);
indexList = (Index[]) ArrayUtil.toAdjustedArray(indexList, null,
todrop, -1);
for (int i = 0; i... |
public class class_name {
@Override
public StringBuffer getClientSideBundles(Map<String, String> variants, boolean useGzip) {
StringBuffer sb = new StringBuffer();
addAllBundles(globalBundles, variants, sb, useGzip);
if (!globalBundles.isEmpty() && !contextBundles.isEmpty()) {
sb.append(",");
}
addAllBun... | public class class_name {
@Override
public StringBuffer getClientSideBundles(Map<String, String> variants, boolean useGzip) {
StringBuffer sb = new StringBuffer();
addAllBundles(globalBundles, variants, sb, useGzip);
if (!globalBundles.isEmpty() && !contextBundles.isEmpty()) {
sb.append(","); // depends on c... |
public class class_name {
private static Type[] getExactDirectSuperTypes(Type type) {
if (type instanceof ParameterizedType || type instanceof Class) {
Class<?> clazz;
if (type instanceof ParameterizedType) {
clazz = (Class<?>)((ParameterizedType)type).getRawType();
} else {
// TODO primitive types?... | public class class_name {
private static Type[] getExactDirectSuperTypes(Type type) {
if (type instanceof ParameterizedType || type instanceof Class) {
Class<?> clazz;
if (type instanceof ParameterizedType) {
clazz = (Class<?>)((ParameterizedType)type).getRawType(); // depends on control dependency: [if], ... |
public class class_name {
public static AetherResult asResult ( final Collection<ArtifactResult> results, final ImportConfiguration cfg, final Optional<DependencyResult> dependencyResult )
{
final AetherResult result = new AetherResult ();
// create set of requested coordinates
final Set<... | public class class_name {
public static AetherResult asResult ( final Collection<ArtifactResult> results, final ImportConfiguration cfg, final Optional<DependencyResult> dependencyResult )
{
final AetherResult result = new AetherResult ();
// create set of requested coordinates
final Set<... |
public class class_name {
public final void start() {
try {
if (!_unlocked) {
_log.info("Starting {}", getName());
doStart();
}
_started = true;
} catch (Exception ex) {
throw new SystemException(ex);
} fin... | public class class_name {
public final void start() {
try {
if (!_unlocked) {
_log.info("Starting {}", getName());
// depends on control dependency: [if], data = [none]
doStart();
// depends on control dependency: [if], data = [none]
}
_... |
public class class_name {
static <T extends GridDialect> T getDialectFacetOrNull(GridDialect gridDialect, Class<T> facetType) {
if ( hasFacet( gridDialect, facetType ) ) {
@SuppressWarnings("unchecked")
T asFacet = (T) gridDialect;
return asFacet;
}
return null;
} } | public class class_name {
static <T extends GridDialect> T getDialectFacetOrNull(GridDialect gridDialect, Class<T> facetType) {
if ( hasFacet( gridDialect, facetType ) ) {
@SuppressWarnings("unchecked")
T asFacet = (T) gridDialect;
return asFacet; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public ConstructorInfo searchDeclaredConstructor(Class<?>... parameterTypes) {
ConstructorInfo constructor = ExecutableUtils.getExecutable(declaredConstructorsGetter.get(), null, parameterTypes);
if (constructor == null) {
constructor = ExecutableUtils.searchExecut... | public class class_name {
public ConstructorInfo searchDeclaredConstructor(Class<?>... parameterTypes) {
ConstructorInfo constructor = ExecutableUtils.getExecutable(declaredConstructorsGetter.get(), null, parameterTypes);
if (constructor == null) {
constructor = ExecutableUtils.searchExecut... |
public class class_name {
@Override
public double getQuantile(double quantile) {
if(isDeterministic()) {
return valueIfNonStochastic;
}
if(size() == 0) {
return Double.NaN;
}
double[] realizationsSorted = realizations.clone();
java.util.Arrays.sort(realizationsSorted);
int indexOfQuantileValue =... | public class class_name {
@Override
public double getQuantile(double quantile) {
if(isDeterministic()) {
return valueIfNonStochastic; // depends on control dependency: [if], data = [none]
}
if(size() == 0) {
return Double.NaN; // depends on control dependency: [if], data = [none]
}
double[] realizati... |
public class class_name {
Set<Class<? extends TrailWriter>> findTrailWriters() {
Set<Class<? extends TrailWriter>> trailWriters = auditConfig.getWriters();
if (trailWriters.isEmpty()) {
LOGGER.info("No TrailWriter specified");
}
return trailWriters;
} } | public class class_name {
Set<Class<? extends TrailWriter>> findTrailWriters() {
Set<Class<? extends TrailWriter>> trailWriters = auditConfig.getWriters();
if (trailWriters.isEmpty()) {
LOGGER.info("No TrailWriter specified"); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected String createIndexBackup() {
if (!isBackupReindexing()) {
// if no backup is generated we don't need to do anything
return null;
}
// check if the target directory already exists
File file = new File(getPath());
if (!... | public class class_name {
protected String createIndexBackup() {
if (!isBackupReindexing()) {
// if no backup is generated we don't need to do anything
return null; // depends on control dependency: [if], data = [none]
}
// check if the target directory already exists
... |
public class class_name {
static BlockLocation[] fixBlockLocations(BlockLocation[] locations,
long start,
long len,
long fileOffsetInHar) {
// offset 1 past last byte of desired range
... | public class class_name {
static BlockLocation[] fixBlockLocations(BlockLocation[] locations,
long start,
long len,
long fileOffsetInHar) {
// offset 1 past last byte of desired range
... |
public class class_name {
protected void defineParameter(final StringBuilder query, String name, final Object value, final DbEntityColumnDescriptor dec) {
if (name == null) {
name = templateData.getNextParameterName();
}
query.append(':').append(name);
templateData.addParameter(name, value, dec);
} } | public class class_name {
protected void defineParameter(final StringBuilder query, String name, final Object value, final DbEntityColumnDescriptor dec) {
if (name == null) {
name = templateData.getNextParameterName(); // depends on control dependency: [if], data = [none]
}
query.append(':').append(name);
t... |
public class class_name {
public static Failure copy(Failure failure) {
if (failure == null) {
return null;
}
Failure result = new Failure();
result.code = failure.code;
result.details = failure.details;
result.title = failure.title;
return result;
... | public class class_name {
public static Failure copy(Failure failure) {
if (failure == null) {
return null; // depends on control dependency: [if], data = [none]
}
Failure result = new Failure();
result.code = failure.code;
result.details = failure.details;
r... |
public class class_name {
public final String getOpeningTag() {
if (isRebuild() || isModified()) {
final Lock lock = sharedObject.getLock(ACCESS_OBJECT).writeLock();
try {
lock.lock();
buildOpeningTag(true);
} finally {
lock.u... | public class class_name {
public final String getOpeningTag() {
if (isRebuild() || isModified()) {
final Lock lock = sharedObject.getLock(ACCESS_OBJECT).writeLock();
try {
lock.lock(); // depends on control dependency: [try], data = [none]
buildOpeningTa... |
public class class_name {
public static Geometry offsetCurve(Geometry geometry, double offset, String parameters) {
if(geometry == null){
return null;
}
String[] buffParemeters = parameters.split("\\s+");
BufferParameters bufferParameters = new BufferParameters();
fo... | public class class_name {
public static Geometry offsetCurve(Geometry geometry, double offset, String parameters) {
if(geometry == null){
return null; // depends on control dependency: [if], data = [none]
}
String[] buffParemeters = parameters.split("\\s+");
BufferParameters... |
public class class_name {
public void log(final Level level, final String msg, final Object... args) {
String message = msg;
if (null != args && 0 < args.length) {
// Is it a java.text style format?
// Ideally we could match with Pattern.compile("\\{\\d").matcher(format).find()... | public class class_name {
public void log(final Level level, final String msg, final Object... args) {
String message = msg;
if (null != args && 0 < args.length) {
// Is it a java.text style format?
// Ideally we could match with Pattern.compile("\\{\\d").matcher(format).find()... |
public class class_name {
public void setIndent(Integer indent) {
if (indent == null) {
remove(OutputKeys.INDENT);
remove(INDENT_AMT);
return;
}
if (indent < 0) {
throw Messages.INSTANCE.getIllegalArgumentException(11);
}
put(OutputKeys.INDENT, "yes");
put(INDENT_AMT, indent.toString());
} } | public class class_name {
public void setIndent(Integer indent) {
if (indent == null) {
remove(OutputKeys.INDENT); // depends on control dependency: [if], data = [none]
remove(INDENT_AMT); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
private void handleHttpClientErrorsForBackend(final HttpRequest clientRequest, final Exception e) {
/* Notify error handler that we got an error. */
errorHandler.accept(e);
/* Increment our error count. */
errorCount.incrementAndGet();
... | public class class_name {
private void handleHttpClientErrorsForBackend(final HttpRequest clientRequest, final Exception e) {
/* Notify error handler that we got an error. */
errorHandler.accept(e);
/* Increment our error count. */
errorCount.incrementAndGet();
... |
public class class_name {
public EClass getIfcDirection() {
if (ifcDirectionEClass == null) {
ifcDirectionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(154);
}
return ifcDirectionEClass;
} } | public class class_name {
public EClass getIfcDirection() {
if (ifcDirectionEClass == null) {
ifcDirectionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(154);
// depends on control dependency: [if], data = [none]
}
return ifcDirectionEClass;... |
public class class_name {
public FSTStruct createStructPointer(Bytez b, long index, int clzId) {
// synchronized (this) // FIXME FIXME FIXME: contention point
// desynced expecting class registering happens on startup
{
Class clazz = mIntToClz.get(clzId);
if (clazz==null)... | public class class_name {
public FSTStruct createStructPointer(Bytez b, long index, int clzId) {
// synchronized (this) // FIXME FIXME FIXME: contention point
// desynced expecting class registering happens on startup
{
Class clazz = mIntToClz.get(clzId);
if (clazz==null)... |
public class class_name {
private Vec feedForward(Vec input)
{
Vec x = input;
for(int i = 0; i < Ws.size(); i++)
{
Matrix W_i = Ws.get(i);
Vec b_i = bs.get(i);
Vec a_i = W_i.multiply(x);
a_i.mutableAdd(b_i);
a_i.apply... | public class class_name {
private Vec feedForward(Vec input)
{
Vec x = input;
for(int i = 0; i < Ws.size(); i++)
{
Matrix W_i = Ws.get(i);
Vec b_i = bs.get(i);
Vec a_i = W_i.multiply(x);
a_i.mutableAdd(b_i); // depends on control dependency: ... |
public class class_name {
public EClass getIfcDraughtingCallout() {
if (ifcDraughtingCalloutEClass == null) {
ifcDraughtingCalloutEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(174);
}
return ifcDraughtingCalloutEClass;
} } | public class class_name {
public EClass getIfcDraughtingCallout() {
if (ifcDraughtingCalloutEClass == null) {
ifcDraughtingCalloutEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(174);
// depends on control dependency: [if], data = [none]
}
re... |
public class class_name {
public <R> R reduce(final R initial, final BiFunction<R, ? super T, R> accumulator) {
R returnValue = initial;
while (iterator.hasNext()) {
returnValue = accumulator.apply(returnValue, iterator.next());
}
return returnValue;
} } | public class class_name {
public <R> R reduce(final R initial, final BiFunction<R, ? super T, R> accumulator) {
R returnValue = initial;
while (iterator.hasNext()) {
returnValue = accumulator.apply(returnValue, iterator.next()); // depends on control dependency: [while], data = [none]
... |
public class class_name {
public static <T> Collection<T> addAll(Collection<T> to, Collection<? extends T> what) {
Collection<T> data = safeCollection(to);
if (!isEmpty(what)) {
data.addAll(what);
}
return data;
} } | public class class_name {
public static <T> Collection<T> addAll(Collection<T> to, Collection<? extends T> what) {
Collection<T> data = safeCollection(to);
if (!isEmpty(what)) {
data.addAll(what); // depends on control dependency: [if], data = [none]
}
return data;
} } |
public class class_name {
public void setLambdaResources(java.util.Collection<LambdaResource> lambdaResources) {
if (lambdaResources == null) {
this.lambdaResources = null;
return;
}
this.lambdaResources = new java.util.ArrayList<LambdaResource>(lambdaResources);
} ... | public class class_name {
public void setLambdaResources(java.util.Collection<LambdaResource> lambdaResources) {
if (lambdaResources == null) {
this.lambdaResources = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
public static Number parseNumber( String numberAsString ) throws InvalidSelectorException
{
if (numberAsString == null) return null;
try
{
if (numberAsString.indexOf('.') != -1 ||
numberAsString.indexOf('e') != -1 ||
nu... | public class class_name {
public static Number parseNumber( String numberAsString ) throws InvalidSelectorException
{
if (numberAsString == null) return null;
try
{
if (numberAsString.indexOf('.') != -1 ||
numberAsString.indexOf('e') != -1 ||
nu... |
public class class_name {
public String getHrefResolved() {
if (Atom10Parser.isAbsoluteURI(href)) {
return href;
} else if (baseURI != null && categoriesElement != null) {
return Atom10Parser.resolveURI(baseURI, categoriesElement, href);
}
return null;
} } | public class class_name {
public String getHrefResolved() {
if (Atom10Parser.isAbsoluteURI(href)) {
return href; // depends on control dependency: [if], data = [none]
} else if (baseURI != null && categoriesElement != null) {
return Atom10Parser.resolveURI(baseURI, categoriesEle... |
public class class_name {
@SuppressWarnings("unchecked")
@Override public PersistentVector<E> replace(int i, E val) {
if (i >= 0 && i < size) {
if (i >= tailoff()) {
Object[] newTail = new Object[tail.length];
System.arraycopy(tail, 0, newTail, 0, tail.length);
... | public class class_name {
@SuppressWarnings("unchecked")
@Override public PersistentVector<E> replace(int i, E val) {
if (i >= 0 && i < size) {
if (i >= tailoff()) {
Object[] newTail = new Object[tail.length];
System.arraycopy(tail, 0, newTail, 0, tail.length); /... |
public class class_name {
public void marshall(Expression expression, ProtocolMarshaller protocolMarshaller) {
if (expression == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(expression.getOr(), OR... | public class class_name {
public void marshall(Expression expression, ProtocolMarshaller protocolMarshaller) {
if (expression == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(expression.getOr(), OR... |
public class class_name {
public static List<Dashboard> findDashboardsByOwner(EntityManager em, PrincipalUser user, String version) {
requireArgument(em != null, "Entity manager can not be null.");
TypedQuery<Dashboard> query;
if(version==null) {
query = em.createNamedQuery("Dashboard.... | public class class_name {
public static List<Dashboard> findDashboardsByOwner(EntityManager em, PrincipalUser user, String version) {
requireArgument(em != null, "Entity manager can not be null.");
TypedQuery<Dashboard> query;
if(version==null) {
query = em.createNamedQuery("Dashboard.... |
public class class_name {
public void setLocaterInfo(SourceLocator locator)
{
if (null != locator)
{
m_publicId = locator.getPublicId();
m_systemId = locator.getSystemId();
if (null != m_systemId)
{
try
{
m_href = SystemIDResolver.getAbsoluteURI(m_systemId,... | public class class_name {
public void setLocaterInfo(SourceLocator locator)
{
if (null != locator)
{
m_publicId = locator.getPublicId(); // depends on control dependency: [if], data = [none]
m_systemId = locator.getSystemId(); // depends on control dependency: [if], data = [none]
if (null... |
public class class_name {
public CharSequence generate(Context context) {
Object attribute = context.getAttribute(getName());
if (attribute == null) {
return "null";
} else {
CharSequence seq;
if (attribute instanceof CharSequence) {
seq = (Ch... | public class class_name {
public CharSequence generate(Context context) {
Object attribute = context.getAttribute(getName());
if (attribute == null) {
return "null"; // depends on control dependency: [if], data = [none]
} else {
CharSequence seq;
if (attribut... |
public class class_name {
public static void main (String[] args) {
try {
h2omapper m = new h2omapper();
m.run(null);
}
catch (Exception e) {
e.printStackTrace();
}
} } | public class class_name {
public static void main (String[] args) {
try {
h2omapper m = new h2omapper();
m.run(null); // depends on control dependency: [try], data = [none]
}
catch (Exception e) {
e.printStackTrace();
} // depends on control dependency: [catch], data = [none]
} } |
public class class_name {
public void removeAllListeners() {
if (mListeners != null) {
mListeners.clear();
mListeners = null;
mAnimator.removeListener(mProxyListener);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
if (mPauseListener... | public class class_name {
public void removeAllListeners() {
if (mListeners != null) {
mListeners.clear(); // depends on control dependency: [if], data = [none]
mListeners = null; // depends on control dependency: [if], data = [none]
mAnimator.removeListener(mProxyListener);... |
public class class_name {
@SuppressWarnings("ConstantConditions")
public boolean isPossibleType(Type abstractType, Type possibleObjectType) {
if (!isInterfaceOrUnion(abstractType)) {
return false;
}
if (!isObjectType(possibleObjectType)) {
return false;
}
... | public class class_name {
@SuppressWarnings("ConstantConditions")
public boolean isPossibleType(Type abstractType, Type possibleObjectType) {
if (!isInterfaceOrUnion(abstractType)) {
return false; // depends on control dependency: [if], data = [none]
}
if (!isObjectType(possible... |
public class class_name {
@Override
public EClass getIfcRepresentationContext() {
if (ifcRepresentationContextEClass == null) {
ifcRepresentationContextEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(567);
}
return ifcRepresentationContextEClass... | public class class_name {
@Override
public EClass getIfcRepresentationContext() {
if (ifcRepresentationContextEClass == null) {
ifcRepresentationContextEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(567);
// depends on control dependency: [if], data... |
public class class_name {
private ReturnCode createDumps(Set<JavaDumpAction> javaDumpActions, boolean introspect, String dumpTimestamp) {
ServerLock serverLock = ServerLock.createTestLock(bootProps);
ReturnCode dumpRc = ReturnCode.OK;
// The lock file may have been (erroneously) deleted: this... | public class class_name {
private ReturnCode createDumps(Set<JavaDumpAction> javaDumpActions, boolean introspect, String dumpTimestamp) {
ServerLock serverLock = ServerLock.createTestLock(bootProps);
ReturnCode dumpRc = ReturnCode.OK;
// The lock file may have been (erroneously) deleted: this... |
public class class_name {
private void sendDiscoveryRequest() {
try {
if (requests.isEmpty()) {
// Do nothing if no request has been set
return;
}
for (DiscoveryRequest req : requests) {
if (req.getServiceTypes() == null || req.getServiceTypes().isEmpty()) {
clie... | public class class_name {
private void sendDiscoveryRequest() {
try {
if (requests.isEmpty()) {
// Do nothing if no request has been set
return; // depends on control dependency: [if], data = [none]
}
for (DiscoveryRequest req : requests) {
if (req.getServiceTypes() == nul... |
public class class_name {
@SuppressWarnings("unchecked")
protected Map<String, IPortletPreference> getSessionPreferences(
IPortletEntityId portletEntityId, HttpServletRequest httpServletRequest) {
final HttpSession session = httpServletRequest.getSession();
final Map<IPortletEntityId, ... | public class class_name {
@SuppressWarnings("unchecked")
protected Map<String, IPortletPreference> getSessionPreferences(
IPortletEntityId portletEntityId, HttpServletRequest httpServletRequest) {
final HttpSession session = httpServletRequest.getSession();
final Map<IPortletEntityId, ... |
public class class_name {
void setFilters(Map<Object, Object> filters) {
for (Object column : filters.keySet()) {
Object filterValue = filters.get(column);
if ((filterValue != null) && !filterValue.toString().isEmpty() && !m_table.isColumnCollapsed(column)) {
m_table.se... | public class class_name {
void setFilters(Map<Object, Object> filters) {
for (Object column : filters.keySet()) {
Object filterValue = filters.get(column);
if ((filterValue != null) && !filterValue.toString().isEmpty() && !m_table.isColumnCollapsed(column)) {
m_table.se... |
public class class_name {
public void unregister(ZKMBeanInfo bean) {
if(bean==null)
return;
String path=mapBean2Path.get(bean);
try {
unregister(path,bean);
}
catch (InstanceNotFoundException e) {
LOG.warn("InstanceNotFoundException during unr... | public class class_name {
public void unregister(ZKMBeanInfo bean) {
if(bean==null)
return;
String path=mapBean2Path.get(bean);
try {
unregister(path,bean); // depends on control dependency: [try], data = [none]
}
catch (InstanceNotFoundException e) {
... |
public class class_name {
@Override
public DescriptorValue calculate(IAtomContainer atomContainer) {
IAtomContainer ac;
try {
ac = (IAtomContainer) atomContainer.clone();
AtomContainerManipulator.percieveAtomTypesAndConfigureUnsetProperties(ac);
CDKHydrogenAdder ... | public class class_name {
@Override
public DescriptorValue calculate(IAtomContainer atomContainer) {
IAtomContainer ac;
try {
ac = (IAtomContainer) atomContainer.clone(); // depends on control dependency: [try], data = [none]
AtomContainerManipulator.percieveAtomTypesAndConf... |
public class class_name {
public String getLHSBindingType(final String var) {
if (this.lhs == null) {
return null;
}
for (int i = 0; i < this.lhs.length; i++) {
String type = getLHSBindingType(this.lhs[i],
var);
if ... | public class class_name {
public String getLHSBindingType(final String var) {
if (this.lhs == null) {
return null; // depends on control dependency: [if], data = [none]
}
for (int i = 0; i < this.lhs.length; i++) {
String type = getLHSBindingType(this.lhs[i],
... |
public class class_name {
private Collection<Field> getFilteredFields(Class<?> refClass) {
SoftReference<Collection<Field>> ref = fieldCache.get(refClass);
Collection<Field> fieldList = ref != null ? ref.get() : null;
if (fieldList != null) {
return fieldList;
} else {
... | public class class_name {
private Collection<Field> getFilteredFields(Class<?> refClass) {
SoftReference<Collection<Field>> ref = fieldCache.get(refClass);
Collection<Field> fieldList = ref != null ? ref.get() : null;
if (fieldList != null) {
return fieldList; // depends on control ... |
public class class_name {
public static String getMergedNestedText(Node n) {
StringBuilder sb = new StringBuilder();
for (Node child : new IterableNodeList(n.getChildNodes())) {
if (child instanceof Text || child instanceof CDATASection) {
String s = child.getNodeValue();
... | public class class_name {
public static String getMergedNestedText(Node n) {
StringBuilder sb = new StringBuilder();
for (Node child : new IterableNodeList(n.getChildNodes())) {
if (child instanceof Text || child instanceof CDATASection) {
String s = child.getNodeValue();
... |
public class class_name {
public String getString(String name) {
Object value = get(name);
if (value instanceof String ||
value instanceof Boolean ||
value instanceof Integer) {
return value.toString();
}
if (value instanceof String[]) {
String[] list = getStrings(name);
return StringUtils.joi... | public class class_name {
public String getString(String name) {
Object value = get(name);
if (value instanceof String ||
value instanceof Boolean ||
value instanceof Integer) {
return value.toString(); // depends on control dependency: [if], data = [none]
}
if (value instanceof String[]) {
Strin... |
public class class_name {
public static String getParentLoggerName(String loggerName) {
int dotIndex = loggerName.lastIndexOf(".");
if (dotIndex < 0) {
return null;
} else {
return loggerName.substring(0, dotIndex);
}
} } | public class class_name {
public static String getParentLoggerName(String loggerName) {
int dotIndex = loggerName.lastIndexOf(".");
if (dotIndex < 0) {
return null; // depends on control dependency: [if], data = [none]
} else {
return loggerName.substring(0, dotIndex); ... |
public class class_name {
private String makeAlias(String prefix) {
int i = 0;
String result;
do {
if (i == 0) {
result = prefix;
} else {
result = prefix + i;
}
} while (m_usedAliases.contains(result));
m_use... | public class class_name {
private String makeAlias(String prefix) {
int i = 0;
String result;
do {
if (i == 0) {
result = prefix; // depends on control dependency: [if], data = [none]
} else {
result = prefix + i; // depends on control de... |
public class class_name {
public boolean createOrUpdate(GeometryMetadata metadata) {
boolean success = false;
if (exists(metadata)) {
success = update(metadata);
} else {
create(metadata);
success = true;
}
return success;
} } | public class class_name {
public boolean createOrUpdate(GeometryMetadata metadata) {
boolean success = false;
if (exists(metadata)) {
success = update(metadata); // depends on control dependency: [if], data = [none]
} else {
create(metadata); // depends on control depe... |
public class class_name {
public void marshall(GetResolverRequest getResolverRequest, ProtocolMarshaller protocolMarshaller) {
if (getResolverRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(GetResolverRequest getResolverRequest, ProtocolMarshaller protocolMarshaller) {
if (getResolverRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
protected boolean thresholdBinaryNumber() {
int lower = (int) (N * (ambiguityThreshold / 2.0));
int upper = (int) (N * (1 - ambiguityThreshold / 2.0));
final int totalElements = getTotalGridElements();
for (int i = 0; i < totalElements; i++) {
if (counts[i] < lower) {
classif... | public class class_name {
protected boolean thresholdBinaryNumber() {
int lower = (int) (N * (ambiguityThreshold / 2.0));
int upper = (int) (N * (1 - ambiguityThreshold / 2.0));
final int totalElements = getTotalGridElements();
for (int i = 0; i < totalElements; i++) {
if (counts[i] < lower) {
classif... |
public class class_name {
@Override
public <T> T get(final String key, final T defaultValue, DomainResolver resolver) {
final String trimmedKey = trimKey(key);
KeyValues keyValues = valuesStore.getKeyValuesFromMapOrPersistence(trimmedKey);
T result;
if (keyValues == null) {
result = defaultValue;
} else ... | public class class_name {
@Override
public <T> T get(final String key, final T defaultValue, DomainResolver resolver) {
final String trimmedKey = trimKey(key);
KeyValues keyValues = valuesStore.getKeyValuesFromMapOrPersistence(trimmedKey);
T result;
if (keyValues == null) {
result = defaultValue; // depend... |
public class class_name {
private static boolean maybeReadTimeOut(Throwable e) {
do {
if (IOException.class.isInstance(e)) {
String message = e.getMessage().toLowerCase();
Matcher matcher = READ_TIME_OUT_PATTERN.matcher(message);
if(matcher.find()) {
... | public class class_name {
private static boolean maybeReadTimeOut(Throwable e) {
do {
if (IOException.class.isInstance(e)) {
String message = e.getMessage().toLowerCase();
Matcher matcher = READ_TIME_OUT_PATTERN.matcher(message);
if(matcher.find()) {
... |
public class class_name {
private static EndpointReferenceType createEPR(String address, SLProperties props) {
EndpointReferenceType epr = WSAEndpointReferenceUtils.getEndpointReference(address);
if (props != null) {
addProperties(epr, props);
}
return epr;
} } | public class class_name {
private static EndpointReferenceType createEPR(String address, SLProperties props) {
EndpointReferenceType epr = WSAEndpointReferenceUtils.getEndpointReference(address);
if (props != null) {
addProperties(epr, props); // depends on control dependency: [if], data = ... |
public class class_name {
private void doConfigure() {
Undertow.Builder builder = Undertow.builder();
// if no configuration method change root handler, simple path->HttpHandler will be used
// where each HttpHandler is created in separate org.ops4j.pax.web.service.undertow.internal.Context
... | public class class_name {
private void doConfigure() {
Undertow.Builder builder = Undertow.builder();
// if no configuration method change root handler, simple path->HttpHandler will be used
// where each HttpHandler is created in separate org.ops4j.pax.web.service.undertow.internal.Context
... |
public class class_name {
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MainActivity.updateStoragePrefreneces(this); //needed for unit tests
registerReceiver(networkReceiver, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION... | public class class_name {
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MainActivity.updateStoragePrefreneces(this); //needed for unit tests
registerReceiver(networkReceiver, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION... |
public class class_name {
private static boolean allowCustomClass(DataSchema schema)
{
boolean result = false;
final DataSchema.Type type = schema.getType();
if (type == DataSchema.Type.TYPEREF || type == DataSchema.Type.RECORD)
{
// allow custom class only if the dereferenced type is a record ... | public class class_name {
private static boolean allowCustomClass(DataSchema schema)
{
boolean result = false;
final DataSchema.Type type = schema.getType();
if (type == DataSchema.Type.TYPEREF || type == DataSchema.Type.RECORD)
{
// allow custom class only if the dereferenced type is a record ... |
public class class_name {
public void resolveFactoryBeanClass(BeanRule beanRule) throws IllegalRuleException {
String beanIdOrClass = beanRule.getFactoryBeanId();
if (beanRule.isFactoryOffered() && beanIdOrClass != null) {
Class<?> beanClass = resolveBeanClass(beanIdOrClass, beanRule);
... | public class class_name {
public void resolveFactoryBeanClass(BeanRule beanRule) throws IllegalRuleException {
String beanIdOrClass = beanRule.getFactoryBeanId();
if (beanRule.isFactoryOffered() && beanIdOrClass != null) {
Class<?> beanClass = resolveBeanClass(beanIdOrClass, beanRule);
... |
public class class_name {
public static Class<?> classForName(String name,
ClassLoader... classLoaders) throws ClassNotFoundException {
ClassLoader[] cls = getClassLoaders(classLoaders);
for (ClassLoader cl : cls) {
try {
if (cl != null) {
return cl.loadClass(name);
}
} catch (Cla... | public class class_name {
public static Class<?> classForName(String name,
ClassLoader... classLoaders) throws ClassNotFoundException {
ClassLoader[] cls = getClassLoaders(classLoaders);
for (ClassLoader cl : cls) {
try {
if (cl != null) {
return cl.loadClass(name);
// depends on control ... |
public class class_name {
public EClass getIfcPointOnSurface() {
if (ifcPointOnSurfaceEClass == null) {
ifcPointOnSurfaceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(366);
}
return ifcPointOnSurfaceEClass;
} } | public class class_name {
public EClass getIfcPointOnSurface() {
if (ifcPointOnSurfaceEClass == null) {
ifcPointOnSurfaceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(366);
// depends on control dependency: [if], data = [none]
}
return ifcP... |
public class class_name {
private static Multimap<Long, Integer> getFeedMapping(AdWordsServicesInterface adWordsServices,
AdWordsSession session, Feed feed, long placeholderType) throws RemoteException {
// Get the FeedMappingService.
FeedMappingServiceInterface feedMappingService =
adWordsServic... | public class class_name {
private static Multimap<Long, Integer> getFeedMapping(AdWordsServicesInterface adWordsServices,
AdWordsSession session, Feed feed, long placeholderType) throws RemoteException {
// Get the FeedMappingService.
FeedMappingServiceInterface feedMappingService =
adWordsServic... |
public class class_name {
public void marshall(UpdateSubnetGroupRequest updateSubnetGroupRequest, ProtocolMarshaller protocolMarshaller) {
if (updateSubnetGroupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(UpdateSubnetGroupRequest updateSubnetGroupRequest, ProtocolMarshaller protocolMarshaller) {
if (updateSubnetGroupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
protected CmsEntityAttribute createEmptyAttribute(
CmsEntity parentEntity,
String attributeName,
CmsAttributeHandler handler,
int minOccurrence) {
CmsEntityAttribute result = null;
CmsType attributeType = m_entityBackEnd.getType(parentEn... | public class class_name {
protected CmsEntityAttribute createEmptyAttribute(
CmsEntity parentEntity,
String attributeName,
CmsAttributeHandler handler,
int minOccurrence) {
CmsEntityAttribute result = null;
CmsType attributeType = m_entityBackEnd.getType(parentEn... |
public class class_name {
@Override
public void updateHandlerMaxFailureCount(String name, int count) {
config.lock();
try {
AuditLogHandler handler = config.getConfiguredHandler(name);
handler.setMaxFailureCount(count);
} finally {
config.unlock();
... | public class class_name {
@Override
public void updateHandlerMaxFailureCount(String name, int count) {
config.lock();
try {
AuditLogHandler handler = config.getConfiguredHandler(name);
handler.setMaxFailureCount(count); // depends on control dependency: [try], data = [none]
... |
public class class_name {
private static void addRecentlyCalledMethods(WarningPropertySet<WarningProperty> propertySet, ClassContext classContext,
Method method, Location location) {
try {
CallListDataflow dataflow = classContext.getCallListDataflow(method);
CallList callLis... | public class class_name {
private static void addRecentlyCalledMethods(WarningPropertySet<WarningProperty> propertySet, ClassContext classContext,
Method method, Location location) {
try {
CallListDataflow dataflow = classContext.getCallListDataflow(method);
CallList callLis... |
public class class_name {
public static final void run(final Class<? extends Jawn> jawn, final String ... args) {
Jawn instance = DynamicClassFactory.createInstance(jawn);
if (instance.mode == Modes.DEV) {
// load the instance with a non-caching classloader
final Jawn d... | public class class_name {
public static final void run(final Class<? extends Jawn> jawn, final String ... args) {
Jawn instance = DynamicClassFactory.createInstance(jawn);
if (instance.mode == Modes.DEV) {
// load the instance with a non-caching classloader
final Jawn d... |
public class class_name {
protected List<String> getSpringBeanNames() {
List<String> names = new ArrayList<>();
for (String name : applicationContext.getBeanDefinitionNames()) {
if (name.startsWith(selfName + ".")) {
names.add(name);
}
}
return na... | public class class_name {
protected List<String> getSpringBeanNames() {
List<String> names = new ArrayList<>();
for (String name : applicationContext.getBeanDefinitionNames()) {
if (name.startsWith(selfName + ".")) {
names.add(name); // depends on control dependency: [if], d... |
public class class_name {
public String link(String target, String baseUri) {
if (isNotInitialized()) {
return getMessage(NOT_INITIALIZED);
}
try {
return CmsJspTagLink.linkTagAction(target, getRequest(), baseUri);
} catch (Throwable t) {
handleExcep... | public class class_name {
public String link(String target, String baseUri) {
if (isNotInitialized()) {
return getMessage(NOT_INITIALIZED); // depends on control dependency: [if], data = [none]
}
try {
return CmsJspTagLink.linkTagAction(target, getRequest(), baseUri); /... |
public class class_name {
@Override
public void setState(MotorState state) {
switch(state) {
case STOP: {
// set internal tracking state
currentState = MotorState.STOP;
// turn all GPIO pins to OFF state
for(GpioPinDigitalOutput ... | public class class_name {
@Override
public void setState(MotorState state) {
switch(state) {
case STOP: {
// set internal tracking state
currentState = MotorState.STOP;
// turn all GPIO pins to OFF state
for(GpioPinDigitalOutput ... |
public class class_name {
@Override
public int countByC_C(long classNameId, long classPK) {
FinderPath finderPath = FINDER_PATH_COUNT_BY_C_C;
Object[] finderArgs = new Object[] { classNameId, classPK };
Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);
if (count == null) {
StringBu... | public class class_name {
@Override
public int countByC_C(long classNameId, long classPK) {
FinderPath finderPath = FINDER_PATH_COUNT_BY_C_C;
Object[] finderArgs = new Object[] { classNameId, classPK };
Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);
if (count == null) {
StringBu... |
public class class_name {
public static String getElasticsearchPid(String baseDir)
{
try
{
String pid = new String(Files.readAllBytes(Paths.get(baseDir, "pid")));
return pid;
}
catch (IOException e)
{
throw new IllegalStateException(
... | public class class_name {
public static String getElasticsearchPid(String baseDir)
{
try
{
String pid = new String(Files.readAllBytes(Paths.get(baseDir, "pid")));
return pid; // depends on control dependency: [try], data = [none]
}
catch (IOException e)
... |
public class class_name {
private void updateRelations(CmsObject cms, CmsResource importResource, List<RelationData> relations)
throws CmsException {
Map<String, CmsRelationType> relTypes = new HashMap<>();
for (CmsRelationType relType : OpenCms.getResourceManager().getRelationTypes()) {
... | public class class_name {
private void updateRelations(CmsObject cms, CmsResource importResource, List<RelationData> relations)
throws CmsException {
Map<String, CmsRelationType> relTypes = new HashMap<>();
for (CmsRelationType relType : OpenCms.getResourceManager().getRelationTypes()) {
... |
public class class_name {
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) {
... | public class class_name {
public Map<String, String> getRoleMap() {
if (mapAllMethods != null) {
return getRoleMapFromAllMap(); // depends on control dependency: [if], data = [none]
}
Map<String, List<String>> outputRTMNormal = null;
Map<String, List<String>> outputRTMOmissi... |
public class class_name {
@Override
public long getMaximumTimeInStore()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getMaximumTimeInStore");
JsMessage localMsg = getJSMessage(true);
long timeToLive = localMsg.getTimeToLive().lon... | public class class_name {
@Override
public long getMaximumTimeInStore()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getMaximumTimeInStore");
JsMessage localMsg = getJSMessage(true);
long timeToLive = localMsg.getTimeToLive().lon... |
public class class_name {
public void activateOptions() {
if (!isActive()) {
setActive(true);
if (advertiseViaMulticastDNS) {
zeroConf = new ZeroConfSupport(ZONE, port, getName());
zeroConf.advertise();
}
fireConnector(false);
}
} } | public class class_name {
public void activateOptions() {
if (!isActive()) {
setActive(true); // depends on control dependency: [if], data = [none]
if (advertiseViaMulticastDNS) {
zeroConf = new ZeroConfSupport(ZONE, port, getName()); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void setExportDataFormat(java.util.Collection<String> exportDataFormat) {
if (exportDataFormat == null) {
this.exportDataFormat = null;
return;
}
this.exportDataFormat = new java.util.ArrayList<String>(exportDataFormat);
} } | public class class_name {
public void setExportDataFormat(java.util.Collection<String> exportDataFormat) {
if (exportDataFormat == null) {
this.exportDataFormat = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@VisibleForTesting
protected BulkProcessor buildBulkProcessor(BulkProcessor.Listener listener) {
checkNotNull(listener);
BulkProcessor.Builder bulkProcessorBuilder = callBridge.createBulkProcessorBuilder(client, listener);
// This makes flush() blocking
bulkProcessorBuilder.setConc... | public class class_name {
@VisibleForTesting
protected BulkProcessor buildBulkProcessor(BulkProcessor.Listener listener) {
checkNotNull(listener);
BulkProcessor.Builder bulkProcessorBuilder = callBridge.createBulkProcessorBuilder(client, listener);
// This makes flush() blocking
bulkProcessorBuilder.setConc... |
public class class_name {
public static ExpressionException invalidKey(Config config, Struct sct, Key key, String in) {
String appendix = StringUtil.isEmpty(in, true) ? "" : " in the " + in;
Iterator<Key> it = sct.keyIterator();
Key k;
while (it.hasNext()) {
k = it.next();
if (k.equals(key)) return new ... | public class class_name {
public static ExpressionException invalidKey(Config config, Struct sct, Key key, String in) {
String appendix = StringUtil.isEmpty(in, true) ? "" : " in the " + in;
Iterator<Key> it = sct.keyIterator();
Key k;
while (it.hasNext()) {
k = it.next(); // depends on control dependency: [... |
public class class_name {
public static Map<String, Object> getParametersMap(ContainerRequestContext requestContext,HttpServletRequest request)
throws IOException {
if(isMultipartContent(request)){
return buildQueryParamsMap(request);
}
Map<String, Object> parameters = buildQueryParamsMap(request);
... | public class class_name {
public static Map<String, Object> getParametersMap(ContainerRequestContext requestContext,HttpServletRequest request)
throws IOException {
if(isMultipartContent(request)){
return buildQueryParamsMap(request);
}
Map<String, Object> parameters = buildQueryParamsMap(request);
... |
public class class_name {
@Override
public Map<K, V> peekAll(final Iterable<? extends K> keys) {
Map<K, CacheEntry<K, V>> map = new HashMap<K, CacheEntry<K, V>>();
for (K k : keys) {
CacheEntry<K, V> e = execute(k, SPEC.peekEntry(k));
if (e != null) {
map.put(k, e);
}
}
retu... | public class class_name {
@Override
public Map<K, V> peekAll(final Iterable<? extends K> keys) {
Map<K, CacheEntry<K, V>> map = new HashMap<K, CacheEntry<K, V>>();
for (K k : keys) {
CacheEntry<K, V> e = execute(k, SPEC.peekEntry(k));
if (e != null) {
map.put(k, e); // depends on control ... |
public class class_name {
public ListHealthChecksResult withHealthChecks(HealthCheck... healthChecks) {
if (this.healthChecks == null) {
setHealthChecks(new com.amazonaws.internal.SdkInternalList<HealthCheck>(healthChecks.length));
}
for (HealthCheck ele : healthChecks) {
... | public class class_name {
public ListHealthChecksResult withHealthChecks(HealthCheck... healthChecks) {
if (this.healthChecks == null) {
setHealthChecks(new com.amazonaws.internal.SdkInternalList<HealthCheck>(healthChecks.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public boolean union(int x, int y) {
int rx = x;
int ry = y;
int px = p[rx];
int py = p[ry];
while (px != py) {
if (px < py) {
if (rx == px) {
p[rx] = py;
return true;
... | public class class_name {
@Override
public boolean union(int x, int y) {
int rx = x;
int ry = y;
int px = p[rx];
int py = p[ry];
while (px != py) {
if (px < py) {
if (rx == px) {
p[rx] = py; // depends on control dependency: [i... |
public class class_name {
public final void shiftOp() throws RecognitionException {
try {
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:465:5: ( ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER ) )
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:465:7: ( LESS LESS | G... | public class class_name {
public final void shiftOp() throws RecognitionException {
try {
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:465:5: ( ( LESS LESS | GREATER GREATER GREATER | GREATER GREATER ) )
// src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:465:7: ( LESS LESS | G... |
public class class_name {
@Nonnull private <T> T getInstance(@Nonnull Key<T> key) {
try {
return getInstanceInternal(key);
} catch (UnsatisfiedDependencyException e) {
throw e.asInjectionException(key);
}
} } | public class class_name {
@Nonnull private <T> T getInstance(@Nonnull Key<T> key) {
try {
return getInstanceInternal(key); // depends on control dependency: [try], data = [none]
} catch (UnsatisfiedDependencyException e) {
throw e.asInjectionException(key);
} // depends on control dependency: [... |
public class class_name {
private static void mergeAllRowsIfPossible(ArrayList<Row> rows) {
// use fixed seed in order to get consistent results (with random properties)
Random rand = new Random(5711l);
int tries = 0;
// this should be enough to be quite sure we don't miss any optimalization
// pos... | public class class_name {
private static void mergeAllRowsIfPossible(ArrayList<Row> rows) {
// use fixed seed in order to get consistent results (with random properties)
Random rand = new Random(5711l);
int tries = 0;
// this should be enough to be quite sure we don't miss any optimalization
// pos... |
public class class_name {
private void performDelay() {
try {
TimeUnit.MILLISECONDS.sleep(crawlDelayMechanism.getDelay());
} catch (InterruptedException ex) {
Thread.currentThread().interrupt();
isStopping = true;
}
} } | public class class_name {
private void performDelay() {
try {
TimeUnit.MILLISECONDS.sleep(crawlDelayMechanism.getDelay());
// depends on control dependency: [try], data = [none]
} catch (InterruptedException ex) {
Thread.currentThread().interrupt();
isStopping =... |
public class class_name {
private ReceiveQueueListener<Response<Object>> createResponseQueueListener() {
return new ReceiveQueueListener<Response<Object>>() {
@Override
public void receive(final Response<Object> response) {
if (debug) {
logger.debug... | public class class_name {
private ReceiveQueueListener<Response<Object>> createResponseQueueListener() {
return new ReceiveQueueListener<Response<Object>>() {
@Override
public void receive(final Response<Object> response) {
if (debug) {
logger.debug... |
public class class_name {
public static boolean matchPattern(String path, String pattern)
{
// Normalize the argument strings
if ((path == null) || (path.length() == 0))
{
path = "/";
}
if ((pattern == null) || (pattern.length() == 0))
{
patte... | public class class_name {
public static boolean matchPattern(String path, String pattern)
{
// Normalize the argument strings
if ((path == null) || (path.length() == 0))
{
path = "/"; // depends on control dependency: [if], data = [none]
}
if ((pattern == null) |... |
public class class_name {
private List<RegexRule> readRules(ArrayNode rulesList) {
List<RegexRule> rules = new ArrayList<>();
for (JsonNode urlFilterNode : rulesList) {
try {
RegexRule rule = createRule(urlFilterNode.asText());
if (rule != null) {
... | public class class_name {
private List<RegexRule> readRules(ArrayNode rulesList) {
List<RegexRule> rules = new ArrayList<>();
for (JsonNode urlFilterNode : rulesList) {
try {
RegexRule rule = createRule(urlFilterNode.asText());
if (rule != null) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.