code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private void showContactAsBarcode(Uri contactUri) {
if (contactUri == null) {
return; // Show error?
}
ContentResolver resolver = getContentResolver();
String id;
String name;
boolean hasPhone;
try (Cursor cursor = resolver.query(contactUri, null, null, null... | public class class_name {
private void showContactAsBarcode(Uri contactUri) {
if (contactUri == null) {
return; // Show error? // depends on control dependency: [if], data = [none]
}
ContentResolver resolver = getContentResolver();
String id;
String name;
boolean hasPhone;
try (Curso... |
public class class_name {
public EClass getIfcServiceLifeFactor() {
if (ifcServiceLifeFactorEClass == null) {
ifcServiceLifeFactorEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(509);
}
return ifcServiceLifeFactorEClass;
} } | public class class_name {
public EClass getIfcServiceLifeFactor() {
if (ifcServiceLifeFactorEClass == null) {
ifcServiceLifeFactorEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(509);
// depends on control dependency: [if], data = [none]
}
re... |
public class class_name {
final ConnectionPoolConnection open(final long timeout, final TimeUnit timeoutUnit) throws InterruptedException {
ConnectionPoolConnection conn = timeout >= 0 ? availableQueue.poll(timeout, timeoutUnit) : availableQueue.take();
if(conn != null) {
if(!testOnLogicalOpen) ... | public class class_name {
final ConnectionPoolConnection open(final long timeout, final TimeUnit timeoutUnit) throws InterruptedException {
ConnectionPoolConnection conn = timeout >= 0 ? availableQueue.poll(timeout, timeoutUnit) : availableQueue.take();
if(conn != null) {
if(!testOnLogicalOpen) ... |
public class class_name {
public boolean sendHtmlEmail(String toEmail, String title, String content) {
LOG.info("send to " + toEmail);
LOG.info("title: " + title);
LOG.info("content" + content);
if (StringUtils.isBlank(toEmail)) {
return false;
}
String lo... | public class class_name {
public boolean sendHtmlEmail(String toEmail, String title, String content) {
LOG.info("send to " + toEmail);
LOG.info("title: " + title);
LOG.info("content" + content);
if (StringUtils.isBlank(toEmail)) {
return false; // depends on control depend... |
public class class_name {
@Override
public InRequest newInRequest()
{
RequestHttp2 request = _freeRequest.allocate();
if (request == null) {
request = new RequestHttp2(_httpProtocol);
/*
connTcp(),
_httpContainer,
... | public class class_name {
@Override
public InRequest newInRequest()
{
RequestHttp2 request = _freeRequest.allocate();
if (request == null) {
request = new RequestHttp2(_httpProtocol); // depends on control dependency: [if], data = [none]
/*
connTcp(),
... |
public class class_name {
protected AccessDecisionManager accessDecisionManager() {
List<AccessDecisionVoter<? extends Object>> decisionVoters = new ArrayList<AccessDecisionVoter<? extends Object>>();
ExpressionBasedPreInvocationAdvice expressionAdvice = new ExpressionBasedPreInvocationAdvice();
expressionAdvice... | public class class_name {
protected AccessDecisionManager accessDecisionManager() {
List<AccessDecisionVoter<? extends Object>> decisionVoters = new ArrayList<AccessDecisionVoter<? extends Object>>();
ExpressionBasedPreInvocationAdvice expressionAdvice = new ExpressionBasedPreInvocationAdvice();
expressionAdvice... |
public class class_name {
private synchronized void setupResourceInfo(String name,
Class<?> callersClass) {
if (name == null) {
return;
}
/* J2ObjC removed.
setCallersClassLoaderRef(callersClass);
*/
if (findRe... | public class class_name {
private synchronized void setupResourceInfo(String name,
Class<?> callersClass) {
if (name == null) {
return; // depends on control dependency: [if], data = [none]
}
/* J2ObjC removed.
setCallersClass... |
public class class_name {
static public void dumpInfo(String file, PrintStream out, Configuration conf)
throws IOException {
final int maxKeySampleLen = 16;
Path path = new Path(file);
FileSystem fs = path.getFileSystem(conf);
long length = fs.getFileStatus(path).getLen();
FSDataInputStream f... | public class class_name {
static public void dumpInfo(String file, PrintStream out, Configuration conf)
throws IOException {
final int maxKeySampleLen = 16;
Path path = new Path(file);
FileSystem fs = path.getFileSystem(conf);
long length = fs.getFileStatus(path).getLen();
FSDataInputStream f... |
public class class_name {
public void setOwner(HttpServiceContext hsc) {
// if we have an SC owner, set it's flag to false
if (null != getServiceContext()) {
getServiceContext().setRequestOwner(false);
}
// if the owner is a new HSC, then init the flags
if (null != h... | public class class_name {
public void setOwner(HttpServiceContext hsc) {
// if we have an SC owner, set it's flag to false
if (null != getServiceContext()) {
getServiceContext().setRequestOwner(false); // depends on control dependency: [if], data = [none]
}
// if the owner i... |
public class class_name {
public BundleLinkComponent getLinkOrCreate(String theRelation) {
org.apache.commons.lang3.Validate.notBlank(theRelation, "theRelation may not be null or empty");
for (BundleLinkComponent next : getLink()) {
if (theRelation.equals(next.getRelation())) {
return next;
... | public class class_name {
public BundleLinkComponent getLinkOrCreate(String theRelation) {
org.apache.commons.lang3.Validate.notBlank(theRelation, "theRelation may not be null or empty");
for (BundleLinkComponent next : getLink()) {
if (theRelation.equals(next.getRelation())) {
return next;
... |
public class class_name {
private XmlElement replacePrimaryKeyXmlElement(IntrospectedTable introspectedTable, XmlElement element, String id, boolean update) {
XmlElement withVersionEle = XmlElementTools.clone(element);
XmlElementTools.replaceAttribute(withVersionEle, new Attribute("id", id));
... | public class class_name {
private XmlElement replacePrimaryKeyXmlElement(IntrospectedTable introspectedTable, XmlElement element, String id, boolean update) {
XmlElement withVersionEle = XmlElementTools.clone(element);
XmlElementTools.replaceAttribute(withVersionEle, new Attribute("id", id));
... |
public class class_name {
public void marshall(TaskObject taskObject, ProtocolMarshaller protocolMarshaller) {
if (taskObject == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(taskObject.getTaskId()... | public class class_name {
public void marshall(TaskObject taskObject, ProtocolMarshaller protocolMarshaller) {
if (taskObject == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(taskObject.getTaskId()... |
public class class_name {
public static boolean isValidIfNumber(Object obj) {
if (obj != null && obj instanceof Number) {
if (obj instanceof Double) {
if (((Double) obj).isInfinite() || ((Double) obj).isNaN()) {
return false;
}
} else if (obj instanceof Float) {
if (((Float) obj).isInfi... | public class class_name {
public static boolean isValidIfNumber(Object obj) {
if (obj != null && obj instanceof Number) {
if (obj instanceof Double) {
if (((Double) obj).isInfinite() || ((Double) obj).isNaN()) {
return false;
// depends on control dependency: [if], data = [none]
}
} else if ... |
public class class_name {
public void marshall(UpdateUserRequest updateUserRequest, ProtocolMarshaller protocolMarshaller) {
if (updateUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(u... | public class class_name {
public void marshall(UpdateUserRequest updateUserRequest, ProtocolMarshaller protocolMarshaller) {
if (updateUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(u... |
public class class_name {
private static PublicKey getPublicKey(String modulus, String exponent) {
try {
BigInteger b1 = new BigInteger(modulus);
BigInteger b2 = new BigInteger(exponent);
KeyFactory keyFactory = KeyFactory.getInstance("RSA", "BC");
RSAPublicKeySpec keySpec = new RSAPublicKeySpec(b1, b2);... | public class class_name {
private static PublicKey getPublicKey(String modulus, String exponent) {
try {
BigInteger b1 = new BigInteger(modulus);
BigInteger b2 = new BigInteger(exponent);
KeyFactory keyFactory = KeyFactory.getInstance("RSA", "BC");
RSAPublicKeySpec keySpec = new RSAPublicKeySpec(b1, b2);... |
public class class_name {
static void execute(Tenant tenant, Runnable runnable) {
startTenantFlow();
try {
getThreadLocalInstance().setTenant(tenant);
runnable.run();
} finally {
endTenantFlow();
}
} } | public class class_name {
static void execute(Tenant tenant, Runnable runnable) {
startTenantFlow();
try {
getThreadLocalInstance().setTenant(tenant); // depends on control dependency: [try], data = [none]
runnable.run(); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public Instruction createList(final Instruction _newTail) {
Instruction childExprHead = null;
if (_newTail == null) {
childExprHead = head;
tail = head = null;
} else {
childExprHead = _newTail.getNextExpr();
tail = _newTail;
_new... | public class class_name {
public Instruction createList(final Instruction _newTail) {
Instruction childExprHead = null;
if (_newTail == null) {
childExprHead = head; // depends on control dependency: [if], data = [none]
tail = head = null; // depends on control dependency: [if], data = [n... |
public class class_name {
protected void unfoldModules(JSONObject modules, Map<Integer, String> sparseArray) throws IOException, JSONException {
final String sourceMethod = "unfoldModules"; //$NON-NLS-1$
if (isTraceLogging) {
log.entering(RequestedModuleNames.class.getName(), sourceMethod, new Object[]{modul... | public class class_name {
protected void unfoldModules(JSONObject modules, Map<Integer, String> sparseArray) throws IOException, JSONException {
final String sourceMethod = "unfoldModules"; //$NON-NLS-1$
if (isTraceLogging) {
log.entering(RequestedModuleNames.class.getName(), sourceMethod, new Object[]{modul... |
public class class_name {
public static void assertNull(Object object, String format, Object... args) {
if (imp != null && object != null) {
imp.assertFailed(String.format(format, args));
}
} } | public class class_name {
public static void assertNull(Object object, String format, Object... args) {
if (imp != null && object != null) {
imp.assertFailed(String.format(format, args)); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void registerLookupBundles(final List<GuiceyBundle> bundles) {
setScope(ConfigScope.BundleLookup.getType());
for (GuiceyBundle bundle : bundles) {
register(ConfigItem.Bundle, bundle);
}
closeScope();
lifecycle().bundlesFromLookupResol... | public class class_name {
public void registerLookupBundles(final List<GuiceyBundle> bundles) {
setScope(ConfigScope.BundleLookup.getType());
for (GuiceyBundle bundle : bundles) {
register(ConfigItem.Bundle, bundle); // depends on control dependency: [for], data = [bundle]
}
... |
public class class_name {
@Override
public Tuple createTuple(EntityKeyMetadata entityKeyMetadata, OperationContext operationContext) {
Tuple tuple = null;
CreateTuple createTuple = new CreateTupleImpl( entityKeyMetadata );
try {
tuple = super.createTuple( entityKeyMetadata, operationContext );
}
catch (... | public class class_name {
@Override
public Tuple createTuple(EntityKeyMetadata entityKeyMetadata, OperationContext operationContext) {
Tuple tuple = null;
CreateTuple createTuple = new CreateTupleImpl( entityKeyMetadata );
try {
tuple = super.createTuple( entityKeyMetadata, operationContext ); // depends on... |
public class class_name {
public static Sketch heapify(final Memory srcMem, final long seed) {
final int serVer = srcMem.getByte(SER_VER_BYTE);
if (serVer == 3) {
final byte famID = srcMem.getByte(FAMILY_BYTE);
final boolean ordered = (srcMem.getByte(FLAGS_BYTE) & ORDERED_FLAG_MASK) != 0;
ret... | public class class_name {
public static Sketch heapify(final Memory srcMem, final long seed) {
final int serVer = srcMem.getByte(SER_VER_BYTE);
if (serVer == 3) {
final byte famID = srcMem.getByte(FAMILY_BYTE);
final boolean ordered = (srcMem.getByte(FLAGS_BYTE) & ORDERED_FLAG_MASK) != 0;
ret... |
public class class_name {
private NodeMetadata enrich(NodeMetadata nodeMetadata, Template template) {
final NodeMetadataBuilder nodeMetadataBuilder = NodeMetadataBuilder
.fromNodeMetadata(nodeMetadata);
if (nodeMetadata.getHardware() == null) {
nodeMetadataBuilder.hardware(template.getHardware()... | public class class_name {
private NodeMetadata enrich(NodeMetadata nodeMetadata, Template template) {
final NodeMetadataBuilder nodeMetadataBuilder = NodeMetadataBuilder
.fromNodeMetadata(nodeMetadata);
if (nodeMetadata.getHardware() == null) {
nodeMetadataBuilder.hardware(template.getHardware()... |
public class class_name {
public java.util.List<OptionVersion> getOptionGroupOptionVersions() {
if (optionGroupOptionVersions == null) {
optionGroupOptionVersions = new com.amazonaws.internal.SdkInternalList<OptionVersion>();
}
return optionGroupOptionVersions;
} } | public class class_name {
public java.util.List<OptionVersion> getOptionGroupOptionVersions() {
if (optionGroupOptionVersions == null) {
optionGroupOptionVersions = new com.amazonaws.internal.SdkInternalList<OptionVersion>(); // depends on control dependency: [if], data = [none]
}
r... |
public class class_name {
public static Sql newInstance(
@NamedParam(value = "url", type = String.class, required = true)
@NamedParam(value = "properties", type = Properties.class)
@NamedParam(value = "driverClassName", type = String.class)
@NamedParam(value = "driver", ... | public class class_name {
public static Sql newInstance(
@NamedParam(value = "url", type = String.class, required = true)
@NamedParam(value = "properties", type = Properties.class)
@NamedParam(value = "driverClassName", type = String.class)
@NamedParam(value = "driver", ... |
public class class_name {
protected void printFiller(PrintWriter pw) {
if (this.options.getIndent() > 0) {
for (int i = 0; i < options.getIndent(); i++) {
pw.append(' ');
}
}
} } | public class class_name {
protected void printFiller(PrintWriter pw) {
if (this.options.getIndent() > 0) {
for (int i = 0; i < options.getIndent(); i++) {
pw.append(' ');
// depends on control dependency: [for], data = [none]
}
}
} } |
public class class_name {
private void generateTin( List<Coordinate> coordinateList ) {
pm.beginTask("Generate tin...", -1);
DelaunayTriangulationBuilder b = new DelaunayTriangulationBuilder();
b.setSites(coordinateList);
Geometry tinTriangles = b.getTriangles(gf);
tinGeometries... | public class class_name {
private void generateTin( List<Coordinate> coordinateList ) {
pm.beginTask("Generate tin...", -1);
DelaunayTriangulationBuilder b = new DelaunayTriangulationBuilder();
b.setSites(coordinateList);
Geometry tinTriangles = b.getTriangles(gf);
tinGeometries... |
public class class_name {
public Object getRealObjectIfMaterialized(Object objectOrProxy)
{
if(isNormalOjbProxy(objectOrProxy))
{
String msg;
try
{
IndirectionHandler handler = getIndirectionHandler(objectOrProxy);
retu... | public class class_name {
public Object getRealObjectIfMaterialized(Object objectOrProxy)
{
if(isNormalOjbProxy(objectOrProxy))
{
String msg;
try
{
IndirectionHandler handler = getIndirectionHandler(objectOrProxy);
retu... |
public class class_name {
static public File computeNunaliitDir(File installDir) {
while( null != installDir ){
// The root of the nunalii2 project contains "nunaliit2-couch-command",
// "nunaliit2-couch-sdk" and "nunaliit2-js"
boolean commandExists = (new File(installDir, "nunaliit2-couch-command")).exists... | public class class_name {
static public File computeNunaliitDir(File installDir) {
while( null != installDir ){
// The root of the nunalii2 project contains "nunaliit2-couch-command",
// "nunaliit2-couch-sdk" and "nunaliit2-js"
boolean commandExists = (new File(installDir, "nunaliit2-couch-command")).exists... |
public class class_name {
public static Last[][] setScoreVector(int x, int xb, int yb, int ye, int gop, int gep, int[] subs,
boolean storing, int[][][] scores, int[] xyMax, int score) {
Last[][] pointers;
ensureScoringMatrixColumn(x, storing, scores);
if (x == xb) {
pointers = new Last[ye + 1][scores[0][0]... | public class class_name {
public static Last[][] setScoreVector(int x, int xb, int yb, int ye, int gop, int gep, int[] subs,
boolean storing, int[][][] scores, int[] xyMax, int score) {
Last[][] pointers;
ensureScoringMatrixColumn(x, storing, scores);
if (x == xb) {
pointers = new Last[ye + 1][scores[0][0]... |
public class class_name {
public RiakFlag getFlag(BinaryValue key)
{
if (entries.containsKey(key))
{
for (RiakDatatype dt : entries.get(key))
{
if (dt.isFlag())
{
return dt.getAsFlag();
}
}
... | public class class_name {
public RiakFlag getFlag(BinaryValue key)
{
if (entries.containsKey(key))
{
for (RiakDatatype dt : entries.get(key))
{
if (dt.isFlag())
{
return dt.getAsFlag(); // depends on control dependency: [if... |
public class class_name {
public void setIgnoreDependencyPattern(String ignoreDependencyPattern) {
try {
Pattern pattern = Pattern.compile(ignoreDependencyPattern);
this.ignoreDependencyPattern = pattern;
} catch (PatternSyntaxException e) {
throw new BuildException(... | public class class_name {
public void setIgnoreDependencyPattern(String ignoreDependencyPattern) {
try {
Pattern pattern = Pattern.compile(ignoreDependencyPattern);
this.ignoreDependencyPattern = pattern; // depends on control dependency: [try], data = [none]
} catch (PatternSyn... |
public class class_name {
private Collection<Class<? extends Saga>> removeAbstractTypes(final Collection<Class<? extends Saga>> foundTypes) {
Collection<Class<? extends Saga>> sagaTypes = new ArrayList<>();
for (Class<? extends Saga> entryType : foundTypes) {
if (!Modifier.isAbstract(entry... | public class class_name {
private Collection<Class<? extends Saga>> removeAbstractTypes(final Collection<Class<? extends Saga>> foundTypes) {
Collection<Class<? extends Saga>> sagaTypes = new ArrayList<>();
for (Class<? extends Saga> entryType : foundTypes) {
if (!Modifier.isAbstract(entry... |
public class class_name {
public byte[] sign(byte[] message) {
try {
// this way signatureInstance should be thread safe
final Signature signatureInstance = ((provider == null) || (provider.length() == 0)) ? Signature
.getInstance(algorithm) : Signature.getInstance(algorithm, provider);
signatureInstan... | public class class_name {
public byte[] sign(byte[] message) {
try {
// this way signatureInstance should be thread safe
final Signature signatureInstance = ((provider == null) || (provider.length() == 0)) ? Signature
.getInstance(algorithm) : Signature.getInstance(algorithm, provider);
signatureInstan... |
public class class_name {
public static String ifNotEmptyAppend(String chekString, String value) {
if (hasText(chekString)) {
return value+chekString;
} else {
return "";
}
} } | public class class_name {
public static String ifNotEmptyAppend(String chekString, String value) {
if (hasText(chekString)) {
return value+chekString; // depends on control dependency: [if], data = [none]
} else {
return ""; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static String concat(String baseName, String... appendName) {
if (appendName.length == 0) {
return baseName;
}
StringBuilder concatName = new StringBuilder();
if (MoreStringUtil.endWith(baseName, Platforms.FILE_PATH_SEPARATOR_CHAR)) {
concatName.append(baseName).append(a... | public class class_name {
public static String concat(String baseName, String... appendName) {
if (appendName.length == 0) {
return baseName; // depends on control dependency: [if], data = [none]
}
StringBuilder concatName = new StringBuilder();
if (MoreStringUtil.endWith(baseName, Platforms.FILE_PATH_SEPA... |
public class class_name {
protected void hookCurtainBefore(FwAssistantDirector assistantDirector) {
final FwCoreDirection coreDirection = assistantDirector.assistCoreDirection();
final CurtainBeforeHook hook = coreDirection.assistCurtainBeforeHook();
if (hook != null) {
hook.hook(as... | public class class_name {
protected void hookCurtainBefore(FwAssistantDirector assistantDirector) {
final FwCoreDirection coreDirection = assistantDirector.assistCoreDirection();
final CurtainBeforeHook hook = coreDirection.assistCurtainBeforeHook();
if (hook != null) {
hook.hook(as... |
public class class_name {
public static String byteArray2String(final byte[] array, final String prefix, final String delimiter, final boolean brackets, final int radix) {
if (array == null) {
return null;
}
final int maxlen = Integer.toString(0xFF, radix).length();
final String zero = "00000000... | public class class_name {
public static String byteArray2String(final byte[] array, final String prefix, final String delimiter, final boolean brackets, final int radix) {
if (array == null) {
return null; // depends on control dependency: [if], data = [none]
}
final int maxlen = Integer.toString(0x... |
public class class_name {
static <I, O> CipherExecutor<I, O> getInstance() {
if (INSTANCE == null) {
synchronized (NoOpCipherExecutor.class) {
if (INSTANCE == null) {
INSTANCE = new NoOpCipherExecutor<>();
}
}
}
return ... | public class class_name {
static <I, O> CipherExecutor<I, O> getInstance() {
if (INSTANCE == null) {
synchronized (NoOpCipherExecutor.class) { // depends on control dependency: [if], data = [none]
if (INSTANCE == null) {
INSTANCE = new NoOpCipherExecutor<>(); // ... |
public class class_name {
public void exec(@NonNull CustomOp op) {
long st = profilingHookIn(op);
if (op.numOutputArguments() == 0 && !op.isInplaceCall())
throw new ND4JIllegalStateException("Op name " + op.opName() + " failed to execute. You can't execute non-inplace CustomOp without out... | public class class_name {
public void exec(@NonNull CustomOp op) {
long st = profilingHookIn(op);
if (op.numOutputArguments() == 0 && !op.isInplaceCall())
throw new ND4JIllegalStateException("Op name " + op.opName() + " failed to execute. You can't execute non-inplace CustomOp without out... |
public class class_name {
public static BigInteger fromUnsignedByteArray(byte[] buf, int off, int length) {
byte[] mag = buf;
if (off != 0 || length != buf.length) {
mag = new byte[length];
System.arraycopy(buf, off, mag, 0, length);
}
return new BigInteger(1, mag);
} } | public class class_name {
public static BigInteger fromUnsignedByteArray(byte[] buf, int off, int length) {
byte[] mag = buf;
if (off != 0 || length != buf.length) {
mag = new byte[length];
// depends on control dependency: [if], data = [none]
System.arraycopy(buf, off, mag, 0, length);
// depends on co... |
public class class_name {
public void setListener(Listener listener) {
if (null != listener) {
listenerReference = new WeakReference<Listener>(listener);
} else {
listenerReference = null;
}
} } | public class class_name {
public void setListener(Listener listener) {
if (null != listener) {
listenerReference = new WeakReference<Listener>(listener); // depends on control dependency: [if], data = [listener)]
} else {
listenerReference = null; // depends on control dependenc... |
public class class_name {
public static String getAbsolutePath(String classPath) {
URL configUrl = Thread.currentThread().getContextClassLoader().getResource(classPath.substring(1));
if (configUrl == null) {
configUrl = ResourceUtil.class.getResource(classPath);
}
if (c... | public class class_name {
public static String getAbsolutePath(String classPath) {
URL configUrl = Thread.currentThread().getContextClassLoader().getResource(classPath.substring(1));
if (configUrl == null) {
configUrl = ResourceUtil.class.getResource(classPath);
// depends on control de... |
public class class_name {
public static MutableDoubleTuple reverse(
DoubleTuple t, MutableDoubleTuple result)
{
result = validate(t, result);
if (t == result)
{
int n = t.getSize();
int nh = n / 2;
for (int i = 0; i < nh; i++)
... | public class class_name {
public static MutableDoubleTuple reverse(
DoubleTuple t, MutableDoubleTuple result)
{
result = validate(t, result);
if (t == result)
{
int n = t.getSize();
int nh = n / 2;
for (int i = 0; i < nh; i++)
... |
public class class_name {
public static <E> ErrorMessageFactory shouldBeLenientEqualByIgnoring(Object actual, List<String> rejectedFields,
List<Object> expectedValues, List<String> ignoredFields) {
if (rejectedFields.size() == 1) {
if (ignoredFields.isEmpty()) {
return new ShouldBeLenientEqualB... | public class class_name {
public static <E> ErrorMessageFactory shouldBeLenientEqualByIgnoring(Object actual, List<String> rejectedFields,
List<Object> expectedValues, List<String> ignoredFields) {
if (rejectedFields.size() == 1) {
if (ignoredFields.isEmpty()) {
return new ShouldBeLenientEqualB... |
public class class_name {
protected void loadFromUrl(Properties props, URL url) {
InputStream is = null;
try {
is = url.openStream();
props.load(is);
} catch (IOException ex) {
if (log.isLoggable(Level.WARNING)) {
log.log(Level.WARNING, ex.getMessage(), ex);
}
} finally {
try { if ... | public class class_name {
protected void loadFromUrl(Properties props, URL url) {
InputStream is = null;
try {
is = url.openStream();
// depends on control dependency: [try], data = [none]
props.load(is);
// depends on control dependency: [try], data = [none]
} catch (IOException ex) {
if (log.isL... |
public class class_name {
public static long optionalLongAttribute(
final XMLStreamReader reader,
final String namespace,
final String localName,
final long defaultValue) {
final String value = reader.getAttributeValue(namespace, localName);
if (value != ... | public class class_name {
public static long optionalLongAttribute(
final XMLStreamReader reader,
final String namespace,
final String localName,
final long defaultValue) {
final String value = reader.getAttributeValue(namespace, localName);
if (value != ... |
public class class_name {
@Override
public void setVariables(Map<String, String> variables) {
injectVariables(variables, element);
if (timeoutVariable != null) {
timeout = timeoutVariable.getConvertedValue(variables);
}
} } | public class class_name {
@Override
public void setVariables(Map<String, String> variables) {
injectVariables(variables, element);
if (timeoutVariable != null) {
timeout = timeoutVariable.getConvertedValue(variables); // depends on control dependency: [if], data = [none]
}
}... |
public class class_name {
public static List<PredicatedHandler> getPredicatedHandlers(PredicatedHandlersProvider[] predicatedHandlersProviders) {
List<PredicatedHandler> predicatedHandlers = new ArrayList<>();
if (predicatedHandlersProviders != null && predicatedHandlersProviders.length > 0) {
... | public class class_name {
public static List<PredicatedHandler> getPredicatedHandlers(PredicatedHandlersProvider[] predicatedHandlersProviders) {
List<PredicatedHandler> predicatedHandlers = new ArrayList<>();
if (predicatedHandlersProviders != null && predicatedHandlersProviders.length > 0) {
... |
public class class_name {
@Override
protected final String replaceImageUrl(final String cssUri, final String imageUrl) {
if (!imageUrls.contains(imageUrl)) {
imageUrls.add(imageUrl);
return super.replaceImageUrl(cssUri, imageUrl);
}
LOG.debug("duplicate Image url detected: '{}', skippin... | public class class_name {
@Override
protected final String replaceImageUrl(final String cssUri, final String imageUrl) {
if (!imageUrls.contains(imageUrl)) {
imageUrls.add(imageUrl);
// depends on control dependency: [if], data = [none]
return super.replaceImageUrl(cssUri, imageUrl);
// depends ... |
public class class_name {
public List<String> listEscapeJavaScript(final List<?> target) {
if (target == null) {
return null;
}
final List<String> result = new ArrayList<String>(target.size() + 2);
for (final Object element : target) {
result.add(escapeJavaScript... | public class class_name {
public List<String> listEscapeJavaScript(final List<?> target) {
if (target == null) {
return null; // depends on control dependency: [if], data = [none]
}
final List<String> result = new ArrayList<String>(target.size() + 2);
for (final Object eleme... |
public class class_name {
public static void appendResponse(StringBuilder buffer, String response) {
if (response != null && !response.isEmpty()) {
if (buffer.length() > 0) {
buffer.append("\r\n");
}
buffer.append(response);
}
} } | public class class_name {
public static void appendResponse(StringBuilder buffer, String response) {
if (response != null && !response.isEmpty()) {
if (buffer.length() > 0) {
buffer.append("\r\n"); // depends on control dependency: [if], data = [none]
}
buff... |
public class class_name {
private static <T> CustomizationReferenceSupplier<T> wrapCustomizationInstance(T obj) {
if (obj == null) { return null; }
return new CustomizationReferenceSupplier<T>(obj);
} } | public class class_name {
private static <T> CustomizationReferenceSupplier<T> wrapCustomizationInstance(T obj) {
if (obj == null) { return null; } // depends on control dependency: [if], data = [none]
return new CustomizationReferenceSupplier<T>(obj);
} } |
public class class_name {
@Override
public void doMessageReceivedListeners(final long sessionId, final long sessionReadBytes, final Object message) {
runManagementTask(new Runnable() {
@Override
public void run() {
try {
// The particular manageme... | public class class_name {
@Override
public void doMessageReceivedListeners(final long sessionId, final long sessionReadBytes, final Object message) {
runManagementTask(new Runnable() {
@Override
public void run() {
try {
// The particular manageme... |
public class class_name {
public String toSql(boolean showParameters) {
String sql;
if(forPaginator){
sql = metaModel.getDialect().formSelect(null, null, fullQuery, orderBys, limit, offset);
}else{
sql = fullQuery != null ? fullQuery
: metaModel.getDi... | public class class_name {
public String toSql(boolean showParameters) {
String sql;
if(forPaginator){
sql = metaModel.getDialect().formSelect(null, null, fullQuery, orderBys, limit, offset); // depends on control dependency: [if], data = [none]
}else{
sql = fullQuery != ... |
public class class_name {
private void obtainWindowBackground(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogWindowBackground});
int resourceId = typedArray.getResourceId(0, 0)... | public class class_name {
private void obtainWindowBackground(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
new int[]{R.attr.materialDialogWindowBackground});
int resourceId = typedArray.getResourceId(0, 0)... |
public class class_name {
protected static void appendTo(@Nonnull StringBuilder buf, @Nonnull Map<? extends String, ? extends Object> values) {
for (Map.Entry<? extends String, ? extends Object> e : values.entrySet()) {
if (buf.length() > 0)
buf.append(",");
buf.append(e... | public class class_name {
protected static void appendTo(@Nonnull StringBuilder buf, @Nonnull Map<? extends String, ? extends Object> values) {
for (Map.Entry<? extends String, ? extends Object> e : values.entrySet()) {
if (buf.length() > 0)
buf.append(",");
buf.append(e... |
public class class_name {
public void marshall(DescribeKeyRequest describeKeyRequest, ProtocolMarshaller protocolMarshaller) {
if (describeKeyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(DescribeKeyRequest describeKeyRequest, ProtocolMarshaller protocolMarshaller) {
if (describeKeyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
Tag[] tags(String tagname) {
ListBuffer<Tag> found = new ListBuffer<Tag>();
String target = tagname;
if (target.charAt(0) != '@') {
target = "@" + target;
}
for (Tag tag : tagList) {
if (tag.kind().equals(target)) {
... | public class class_name {
Tag[] tags(String tagname) {
ListBuffer<Tag> found = new ListBuffer<Tag>();
String target = tagname;
if (target.charAt(0) != '@') {
target = "@" + target; // depends on control dependency: [if], data = [none]
}
for (Tag tag : tagList) {
... |
public class class_name {
public static void initMchKeyStore(String mch_id,String keyStoreFilePath){
try {
initMchKeyStore(mch_id, new FileInputStream(new File(keyStoreFilePath)));
} catch (FileNotFoundException e) {
logger.error("init error", e);
}
} } | public class class_name {
public static void initMchKeyStore(String mch_id,String keyStoreFilePath){
try {
initMchKeyStore(mch_id, new FileInputStream(new File(keyStoreFilePath))); // depends on control dependency: [try], data = [none]
} catch (FileNotFoundException e) {
logger.error("init error", e);
} //... |
public class class_name {
@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
AbstractSecurityDeployer<?> deployer = null;
if (DeploymentTypeMarker.isType(Deploym... | public class class_name {
@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
AbstractSecurityDeployer<?> deployer = null;
if (DeploymentTypeMarker.isType(Deploym... |
public class class_name {
public static Expression decodeJson(String jsonString) {
try {
JsonObject jsonObject = CouchbaseAsyncBucket.JSON_OBJECT_TRANSCODER.stringToJsonObject(jsonString);
return decodeJson(jsonObject);
} catch (Exception e) {
throw new IllegalArgume... | public class class_name {
public static Expression decodeJson(String jsonString) {
try {
JsonObject jsonObject = CouchbaseAsyncBucket.JSON_OBJECT_TRANSCODER.stringToJsonObject(jsonString);
return decodeJson(jsonObject); // depends on control dependency: [try], data = [none]
} ca... |
public class class_name {
public static boolean isNumber(JsonNode node, boolean isTypeLoose) {
if (node.isNumber()) {
return true;
} else if (isTypeLoose) {
if (TypeFactory.getValueNodeType(node) == JsonType.STRING) {
return isNumeric(node.textValue());
... | public class class_name {
public static boolean isNumber(JsonNode node, boolean isTypeLoose) {
if (node.isNumber()) {
return true; // depends on control dependency: [if], data = [none]
} else if (isTypeLoose) {
if (TypeFactory.getValueNodeType(node) == JsonType.STRING) {
... |
public class class_name {
public void printSubgraph( Node node,
String lead,
int depthOfSubgraph,
int maxDepthOfSubgraph ) throws RepositoryException {
int currentDepth = node.getDepth() - depthOfSubgraph + 1;
... | public class class_name {
public void printSubgraph( Node node,
String lead,
int depthOfSubgraph,
int maxDepthOfSubgraph ) throws RepositoryException {
int currentDepth = node.getDepth() - depthOfSubgraph + 1;
... |
public class class_name {
List<DataSlice> flatten(Object store, byte[] nameBytes) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "flatten", new Object[] {store, nameBytes});
// Initial capacity is sufficient for a 2 part message
... | public class class_name {
List<DataSlice> flatten(Object store, byte[] nameBytes) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "flatten", new Object[] {store, nameBytes});
// Initial capacity is sufficient for a 2 part message
... |
public class class_name {
public final synchronized void destroyNotRemove() {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) // d144064
Tr.entry(tc, "destroyNotRemove : " + this);
if (state == DESTROYED) {
return;
... | public class class_name {
public final synchronized void destroyNotRemove() {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) // d144064
Tr.entry(tc, "destroyNotRemove : " + this);
if (state == DESTROYED) {
return; /... |
public class class_name {
protected Session getWriteSession()
{
final Session session = getSession();
if (session.isDefaultReadOnly())
{
throw new ReadOnlyTransactionException("Cannot perform write operation on " + clazz + " in a read-only transaction");
}
else
{
return session;
}
} } | public class class_name {
protected Session getWriteSession()
{
final Session session = getSession();
if (session.isDefaultReadOnly())
{
throw new ReadOnlyTransactionException("Cannot perform write operation on " + clazz + " in a read-only transaction");
}
else
{
return session; // depends on contr... |
public class class_name {
public void marshall(DeleteDynamicThingGroupRequest deleteDynamicThingGroupRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteDynamicThingGroupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DeleteDynamicThingGroupRequest deleteDynamicThingGroupRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteDynamicThingGroupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
private boolean validateDigits(Object validationObject, Annotation annotate)
{
if (checkNullObject(validationObject))
{
return true;
}
if (checkvalidDigitTypes(validationObject.getClass()))
{
if (!NumberUtils.isDigits(toStri... | public class class_name {
private boolean validateDigits(Object validationObject, Annotation annotate)
{
if (checkNullObject(validationObject))
{
return true; // depends on control dependency: [if], data = [none]
}
if (checkvalidDigitTypes(validationObject.getClass()))
... |
public class class_name {
public java.util.List<ListenerDescription> getListenerDescriptions() {
if (listenerDescriptions == null) {
listenerDescriptions = new com.amazonaws.internal.SdkInternalList<ListenerDescription>();
}
return listenerDescriptions;
} } | public class class_name {
public java.util.List<ListenerDescription> getListenerDescriptions() {
if (listenerDescriptions == null) {
listenerDescriptions = new com.amazonaws.internal.SdkInternalList<ListenerDescription>(); // depends on control dependency: [if], data = [none]
}
retu... |
public class class_name {
public static final Point[] midPoints(int count, Point p1, Point p2)
{
Point[] res = new Point[count];
Point gap = AbstractPoint.subtract(p2, p1);
Point leg = AbstractPoint.mul((double)(1)/(double)(count+1), gap);
for (int ii=0;ii<count;ii++)
... | public class class_name {
public static final Point[] midPoints(int count, Point p1, Point p2)
{
Point[] res = new Point[count];
Point gap = AbstractPoint.subtract(p2, p1);
Point leg = AbstractPoint.mul((double)(1)/(double)(count+1), gap);
for (int ii=0;ii<count;ii++)
... |
public class class_name {
@Override
public EClass getIfcTask() {
if (ifcTaskEClass == null) {
ifcTaskEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(700);
}
return ifcTaskEClass;
} } | public class class_name {
@Override
public EClass getIfcTask() {
if (ifcTaskEClass == null) {
ifcTaskEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(700);
// depends on control dependency: [if], data = [none]
}
return ifcTaskEClass;
} } |
public class class_name {
public JtxTransaction getTransaction() {
ArrayList<JtxTransaction> txlist = txStack.get();
if (txlist == null) {
return null;
}
if (txlist.isEmpty()) {
return null;
}
return txlist.get(txlist.size() - 1); // get last
} } | public class class_name {
public JtxTransaction getTransaction() {
ArrayList<JtxTransaction> txlist = txStack.get();
if (txlist == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (txlist.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public String skipToken() {
int length = sql.length();
int endIndex = length;
char quote = position < length ? sql.charAt(position) : '\0';
boolean quoting = quote == '\'' || quote == '(';
if (quote == '(') {
quote = ')';
}
for (int i = quoting ? position + 1 : pos... | public class class_name {
@Override
public String skipToken() {
int length = sql.length();
int endIndex = length;
char quote = position < length ? sql.charAt(position) : '\0';
boolean quoting = quote == '\'' || quote == '(';
if (quote == '(') {
quote = ')'; // depends on control dependency: [if], data = ... |
public class class_name {
private static String expand(final String value) {
// shortcut if value does not contain any properties
if (value.contains("${") == false) {
return value;
}
// return AccessController.doPrivileged(new PrivilegedAction<String>() {
// public... | public class class_name {
private static String expand(final String value) {
// shortcut if value does not contain any properties
if (value.contains("${") == false) {
return value; // depends on control dependency: [if], data = [none]
}
// return AccessController.doPrivileged... |
public class class_name {
public RgbaColor[] getPaletteVaryLightness(int count) {
// a max of 80 and an offset of 10 keeps us away from the
// edges
float[] spread = getSpreadInRange(l(), count, 80, 10);
RgbaColor[] ret = new RgbaColor[count];
for (int i = 0; i < count; i++) {
... | public class class_name {
public RgbaColor[] getPaletteVaryLightness(int count) {
// a max of 80 and an offset of 10 keeps us away from the
// edges
float[] spread = getSpreadInRange(l(), count, 80, 10);
RgbaColor[] ret = new RgbaColor[count];
for (int i = 0; i < count; i++) {
... |
public class class_name {
public List<CmsOrganizationalUnit> getOrgUnitsForRole(CmsDbContext dbc, CmsRole role, boolean includeSubOus)
throws CmsException {
String ouFqn = role.getOuFqn();
if (ouFqn == null) {
ouFqn = "";
role = role.forOrgUnit("");
}
CmsOrg... | public class class_name {
public List<CmsOrganizationalUnit> getOrgUnitsForRole(CmsDbContext dbc, CmsRole role, boolean includeSubOus)
throws CmsException {
String ouFqn = role.getOuFqn();
if (ouFqn == null) {
ouFqn = "";
role = role.forOrgUnit("");
}
CmsOrg... |
public class class_name {
private long[][] findDimensions(ArrayDBIDs medoids, Relation<V> database, DistanceQuery<V> distFunc, RangeQuery<V> rangeQuery) {
// get localities
DataStore<DBIDs> localities = getLocalities(medoids, distFunc, rangeQuery);
// compute x_ij = avg distance from points in l_i to medo... | public class class_name {
private long[][] findDimensions(ArrayDBIDs medoids, Relation<V> database, DistanceQuery<V> distFunc, RangeQuery<V> rangeQuery) {
// get localities
DataStore<DBIDs> localities = getLocalities(medoids, distFunc, rangeQuery);
// compute x_ij = avg distance from points in l_i to medo... |
public class class_name {
public boolean isModifiedOnVersion(String version) {
if (version == null || version.isEmpty()) {
return true;
}
if (this.history != null && this.history.isModifiedOnVersion(version)) {
return true;
}
if (this.fields != null) {
for (APIParameter param : this.fields) {
if... | public class class_name {
public boolean isModifiedOnVersion(String version) {
if (version == null || version.isEmpty()) {
return true; // depends on control dependency: [if], data = [none]
}
if (this.history != null && this.history.isModifiedOnVersion(version)) {
return true; // depends on control depende... |
public class class_name {
private LinkedList<Object> OperatorTree(Queue<Object> rpn){
LinkedList<Object> operand = new LinkedList<Object>();
while(!rpn.isEmpty()){
if(rpn.peek() instanceof Operator){
Operator opt = (Operator) rpn.poll();
opt.wrap(operand);
... | public class class_name {
private LinkedList<Object> OperatorTree(Queue<Object> rpn){
LinkedList<Object> operand = new LinkedList<Object>();
while(!rpn.isEmpty()){
if(rpn.peek() instanceof Operator){
Operator opt = (Operator) rpn.poll();
opt.wrap(operand); //... |
public class class_name {
public static final void getActivitySessions(ActivitySessionAttribute[] asAttrs,
int type,
String[] methodNames,
Class<?>[][] methodParamTypes,
... | public class class_name {
public static final void getActivitySessions(ActivitySessionAttribute[] asAttrs,
int type,
String[] methodNames,
Class<?>[][] methodParamTypes,
... |
public class class_name {
public void marshall(GeoMatchConstraint geoMatchConstraint, ProtocolMarshaller protocolMarshaller) {
if (geoMatchConstraint == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(GeoMatchConstraint geoMatchConstraint, ProtocolMarshaller protocolMarshaller) {
if (geoMatchConstraint == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public void invalidateDisk() {
if (!diskMode.equals(DualCacheDiskMode.DISABLE)) {
try {
dualCacheLock.lockFullDiskWrite();
diskLruCache.delete();
openDiskLruCache(diskCacheFolder);
} catch (IOException e) {
... | public class class_name {
public void invalidateDisk() {
if (!diskMode.equals(DualCacheDiskMode.DISABLE)) {
try {
dualCacheLock.lockFullDiskWrite(); // depends on control dependency: [try], data = [none]
diskLruCache.delete(); // depends on control dependency: [try],... |
public class class_name {
private CompletableFuture<Void> listen() {
CompletableFuture<Void> future = new CompletableFuture<>();
context.getThreadContext().executor().execute(() -> {
internalServer.listen(cluster().member().serverAddress(), context::connectServer).whenComplete((internalResult, internalEr... | public class class_name {
private CompletableFuture<Void> listen() {
CompletableFuture<Void> future = new CompletableFuture<>();
context.getThreadContext().executor().execute(() -> {
internalServer.listen(cluster().member().serverAddress(), context::connectServer).whenComplete((internalResult, internalEr... |
public class class_name {
@Override
protected ModelNode convertParameterExpressions(ModelNode parameter) {
ModelNode result = parameter;
List<ModelNode> asList;
try {
asList = parameter.asList();
} catch (IllegalArgumentException iae) {
// We can't convert; ... | public class class_name {
@Override
protected ModelNode convertParameterExpressions(ModelNode parameter) {
ModelNode result = parameter;
List<ModelNode> asList;
try {
asList = parameter.asList(); // depends on control dependency: [try], data = [none]
} catch (IllegalArg... |
public class class_name {
public Map<String, String> parseArgs(String[] args) {
Map<String, String> result = new HashMap<String, String>();
Set<String> allowedKeys = new HashSet<String>(
Arrays.asList(PARAM_ADDITIONAL, PARAM_SCRIPT, PARAM_REGISTRY_PORT));
for (String arg : args) {
... | public class class_name {
public Map<String, String> parseArgs(String[] args) {
Map<String, String> result = new HashMap<String, String>();
Set<String> allowedKeys = new HashSet<String>(
Arrays.asList(PARAM_ADDITIONAL, PARAM_SCRIPT, PARAM_REGISTRY_PORT));
for (String arg : args) {
... |
public class class_name {
protected void routeTo(String msg, LogRecord logRecord, String logHandlerId) {
LogHandler logHandler = logHandlerServices.get(logHandlerId);
if (logHandler != null) {
logHandler.publish(msg, logRecord);
}
} } | public class class_name {
protected void routeTo(String msg, LogRecord logRecord, String logHandlerId) {
LogHandler logHandler = logHandlerServices.get(logHandlerId);
if (logHandler != null) {
logHandler.publish(msg, logRecord); // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected void updatePluginConfiguration(PluginConfiguration value, String xmlTag, Counter counter,
Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist)
{
C... | public class class_name {
protected void updatePluginConfiguration(PluginConfiguration value, String xmlTag, Counter counter,
Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist)
{
C... |
public class class_name {
public java.util.List<ClusterSubnetGroup> getClusterSubnetGroups() {
if (clusterSubnetGroups == null) {
clusterSubnetGroups = new com.amazonaws.internal.SdkInternalList<ClusterSubnetGroup>();
}
return clusterSubnetGroups;
} } | public class class_name {
public java.util.List<ClusterSubnetGroup> getClusterSubnetGroups() {
if (clusterSubnetGroups == null) {
clusterSubnetGroups = new com.amazonaws.internal.SdkInternalList<ClusterSubnetGroup>(); // depends on control dependency: [if], data = [none]
}
return cl... |
public class class_name {
protected <T, K extends Serializable>
Query<T> _buildQuery(
final DAO<T, K> dao,
final Class<T> type,
final QueryParams params
)
{
Query<T> query = null;
try {
query = dao.cre... | public class class_name {
protected <T, K extends Serializable>
Query<T> _buildQuery(
final DAO<T, K> dao,
final Class<T> type,
final QueryParams params
)
{
Query<T> query = null;
try {
query = dao.cre... |
public class class_name {
static boolean isDirectory(final File file)
{
try {
Boolean exists = getInstance().doPrivileged(
new PrivilegedAction<Boolean>() {
public Boolean run() {
return Boolean.valueOf(file.isDirectory());
}
}
);
return exists.booleanValue();
}
catch (Secu... | public class class_name {
static boolean isDirectory(final File file)
{
try {
Boolean exists = getInstance().doPrivileged(
new PrivilegedAction<Boolean>() {
public Boolean run() {
return Boolean.valueOf(file.isDirectory());
}
}
);
return exists.booleanValue(); // depends on con... |
public class class_name {
public void add(K key, V value) {
if (treatCollectionsAsImmutable) {
Collection<V> newC = cf.newCollection();
Collection<V> c = map.get(key);
if (c != null) {
newC.addAll(c);
}
newC.add(value);
map.put(key, newC); // replacing the old co... | public class class_name {
public void add(K key, V value) {
if (treatCollectionsAsImmutable) {
Collection<V> newC = cf.newCollection();
Collection<V> c = map.get(key);
if (c != null) {
newC.addAll(c);
// depends on control dependency: [if], data = [(c]
}
newC.add(value)... |
public class class_name {
private long interpolateTimeSinceUpdate(TrackPositionUpdate update, long currentTimestamp) {
if (!update.playing) {
return update.milliseconds;
}
long elapsedMillis = (currentTimestamp - update.timestamp) / 1000000;
long moved = Math.round(update.pi... | public class class_name {
private long interpolateTimeSinceUpdate(TrackPositionUpdate update, long currentTimestamp) {
if (!update.playing) {
return update.milliseconds; // depends on control dependency: [if], data = [none]
}
long elapsedMillis = (currentTimestamp - update.timestamp... |
public class class_name {
protected void updateRepositoryPolicy(RepositoryPolicy value, String xmlTag, Counter counter, Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist)
{
Counter innerCount ... | public class class_name {
protected void updateRepositoryPolicy(RepositoryPolicy value, String xmlTag, Counter counter, Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist)
{
Counter innerCount ... |
public class class_name {
@SafeVarargs
public static <T> Map<T, T> createMap(T... _args) {
Map<T, T> map = new HashMap<>();
if (_args != null) {
if (_args.length % 2 != 0) {
throw new IllegalArgumentException("Even number of parameters required to create map: " + Arrays.... | public class class_name {
@SafeVarargs
public static <T> Map<T, T> createMap(T... _args) {
Map<T, T> map = new HashMap<>();
if (_args != null) {
if (_args.length % 2 != 0) {
throw new IllegalArgumentException("Even number of parameters required to create map: " + Arrays.... |
public class class_name {
public static List<String> reverse(final String[] array) {
ArgUtils.notNull(array, "array");
if(array.length == 0) {
return new ArrayList<String>();
}
final List<String> list = Arrays.asList(array);
Collections.sort... | public class class_name {
public static List<String> reverse(final String[] array) {
ArgUtils.notNull(array, "array");
if(array.length == 0) {
return new ArrayList<String>();
// depends on control dependency: [if], data = [none]
}
final List<String> ... |
public class class_name {
private boolean matchAndConvertArgs( List<Object> convertedArgumentList,
BaseAccess methodAccess,
Class[] parameterTypes,
int index,
... | public class class_name {
private boolean matchAndConvertArgs( List<Object> convertedArgumentList,
BaseAccess methodAccess,
Class[] parameterTypes,
int index,
... |
public class class_name {
private void updateBeanValueForRenderedRows() {
WTableRowRenderer rowRenderer = (WTableRowRenderer) repeater.getRepeatedComponent();
TableModel model = getTableModel();
int index = 0;
List<RowIdWrapper> wrappers = repeater.getBeanList();
int columnCount = getColumnCount();
for... | public class class_name {
private void updateBeanValueForRenderedRows() {
WTableRowRenderer rowRenderer = (WTableRowRenderer) repeater.getRepeatedComponent();
TableModel model = getTableModel();
int index = 0;
List<RowIdWrapper> wrappers = repeater.getBeanList();
int columnCount = getColumnCount();
for... |
public class class_name {
private void checkTimer()
{
try
{
serviceThreadLock.lock();
if ( watchdogTimer == null )
{
// if there is NOT an active timer
if ( !issuedWatchdogWrappers.allValues().isEmpty() )
{
... | public class class_name {
private void checkTimer()
{
try
{
serviceThreadLock.lock(); // depends on control dependency: [try], data = [none]
if ( watchdogTimer == null )
{
// if there is NOT an active timer
if ( !issuedWatchdogWra... |
public class class_name {
@Override
protected void checkIfHeartbeatSkipped(String name, EventChannelStruct eventChannelStruct) {
// Check if heartbeat have been skipped, can happen if
// 1- the notifd is dead (if not ZMQ)
// 2- the server is dead
// 3- The network wa... | public class class_name {
@Override
protected void checkIfHeartbeatSkipped(String name, EventChannelStruct eventChannelStruct) {
// Check if heartbeat have been skipped, can happen if
// 1- the notifd is dead (if not ZMQ)
// 2- the server is dead
// 3- The network wa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.