code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void init(final long[] key, final long[] tweak) {
final int newNw = key.length;
// only create new arrays if the value of N{w} changes (different key size)
if (nw != newNw) {
nw = newNw;
switch (nw) {
case WORDS_4:
pi = PI4;
rpi = RPI4;
r = R4;
bre... | public class class_name {
public void init(final long[] key, final long[] tweak) {
final int newNw = key.length;
// only create new arrays if the value of N{w} changes (different key size)
if (nw != newNw) {
nw = newNw; // depends on control dependency: [if], data = [none]
switch (nw) {
case WORDS_4:... |
public class class_name {
public Msg putShortString(String data)
{
if (data == null) {
return this;
}
ByteBuffer dup = buf.duplicate();
dup.position(writeIndex);
writeIndex += Wire.putShortString(dup, data);
return this;
} } | public class class_name {
public Msg putShortString(String data)
{
if (data == null) {
return this; // depends on control dependency: [if], data = [none]
}
ByteBuffer dup = buf.duplicate();
dup.position(writeIndex);
writeIndex += Wire.putShortString(dup, data);
... |
public class class_name {
private static Document getDocument(URL pathToPersistenceXml) throws InvalidConfigurationException
{
InputStream is = null;
Document xmlRootNode = null;
try
{
if (pathToPersistenceXml != null)
{
URLConnectio... | public class class_name {
private static Document getDocument(URL pathToPersistenceXml) throws InvalidConfigurationException
{
InputStream is = null;
Document xmlRootNode = null;
try
{
if (pathToPersistenceXml != null)
{
URLConnectio... |
public class class_name {
public @Nullable T get() {
Field f = checkNotNull(field);
try {
setAccessible(f, true);
Object value = f.get(target);
return castSafely(value, checkNotNull(fieldType));
} catch (Throwable t) {
String msg = String.format("Failed to get the value of field '%s... | public class class_name {
public @Nullable T get() {
Field f = checkNotNull(field);
try {
setAccessible(f, true); // depends on control dependency: [try], data = [none]
Object value = f.get(target);
return castSafely(value, checkNotNull(fieldType)); // depends on control dependency: [try], da... |
public class class_name {
public IpPermission withIpv6Ranges(Ipv6Range... ipv6Ranges) {
if (this.ipv6Ranges == null) {
setIpv6Ranges(new com.amazonaws.internal.SdkInternalList<Ipv6Range>(ipv6Ranges.length));
}
for (Ipv6Range ele : ipv6Ranges) {
this.ipv6Ranges.add(ele);
... | public class class_name {
public IpPermission withIpv6Ranges(Ipv6Range... ipv6Ranges) {
if (this.ipv6Ranges == null) {
setIpv6Ranges(new com.amazonaws.internal.SdkInternalList<Ipv6Range>(ipv6Ranges.length)); // depends on control dependency: [if], data = [none]
}
for (Ipv6Range ele ... |
public class class_name {
public final void collect ()
{
if (m_aPerformer == null)
throw new IllegalStateException ("No performer set!");
try
{
// The temporary list that contains all objects to be delivered
final ICommonsList <DATATYPE> aObjectsToPerform = new CommonsArrayList <> ();
... | public class class_name {
public final void collect ()
{
if (m_aPerformer == null)
throw new IllegalStateException ("No performer set!");
try
{
// The temporary list that contains all objects to be delivered
final ICommonsList <DATATYPE> aObjectsToPerform = new CommonsArrayList <> ();
... |
public class class_name {
public void marshall(EventDescription eventDescription, ProtocolMarshaller protocolMarshaller) {
if (eventDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(even... | public class class_name {
public void marshall(EventDescription eventDescription, ProtocolMarshaller protocolMarshaller) {
if (eventDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(even... |
public class class_name {
public static void logAllThreads() {
StringBuilder sb = new StringBuilder("Dumping all threads:\n");
for (Thread t : Thread.getAllStackTraces().keySet()) {
sb.append(formatStackTrace(t));
}
LOG.info(sb.toString());
} } | public class class_name {
public static void logAllThreads() {
StringBuilder sb = new StringBuilder("Dumping all threads:\n");
for (Thread t : Thread.getAllStackTraces().keySet()) {
sb.append(formatStackTrace(t)); // depends on control dependency: [for], data = [t]
}
LOG.info(sb.toString());
} ... |
public class class_name {
public static DependencyResolver fromTuples(Object... tuples) {
DependencyResolver result = new DependencyResolver();
if (tuples == null || tuples.length == 0)
return result;
for (int index = 0; index < tuples.length; index += 2) {
if (index + 1 >= tuples.length)
break;
S... | public class class_name {
public static DependencyResolver fromTuples(Object... tuples) {
DependencyResolver result = new DependencyResolver();
if (tuples == null || tuples.length == 0)
return result;
for (int index = 0; index < tuples.length; index += 2) {
if (index + 1 >= tuples.length)
break;
S... |
public class class_name {
public static List<String> getTenantNames(TenantService tenantService) throws ProfileException {
List<Tenant> tenants = tenantService.getAllTenants();
List<String> tenantNames = new ArrayList<>(tenants.size());
if (CollectionUtils.isNotEmpty(tenants)) {
fo... | public class class_name {
public static List<String> getTenantNames(TenantService tenantService) throws ProfileException {
List<Tenant> tenants = tenantService.getAllTenants();
List<String> tenantNames = new ArrayList<>(tenants.size());
if (CollectionUtils.isNotEmpty(tenants)) {
fo... |
public class class_name {
public void setClientVariant(String context, String variant, CmsClientVariantInfo info) {
if (!m_clientVariantInfo.containsKey(context)) {
Map<String, CmsClientVariantInfo> variants = new LinkedHashMap<String, CmsClientVariantInfo>();
m_clientVariantInfo.p... | public class class_name {
public void setClientVariant(String context, String variant, CmsClientVariantInfo info) {
if (!m_clientVariantInfo.containsKey(context)) {
Map<String, CmsClientVariantInfo> variants = new LinkedHashMap<String, CmsClientVariantInfo>();
m_clientVariantInfo.p... |
public class class_name {
public void setTriggers(java.util.Collection<Trigger> triggers) {
if (triggers == null) {
this.triggers = null;
return;
}
this.triggers = new com.amazonaws.internal.SdkInternalList<Trigger>(triggers);
} } | public class class_name {
public void setTriggers(java.util.Collection<Trigger> triggers) {
if (triggers == null) {
this.triggers = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.triggers ... |
public class class_name {
@Override
public boolean schemaExists() {
PreparedStatement ps = null;
try {
ps = getPreparedStatement(SIMPLE_SELECT_SQL);
ps.executeQuery();
return true;
} catch (SQLException e) {
return false;
} finally {
... | public class class_name {
@Override
public boolean schemaExists() {
PreparedStatement ps = null;
try {
ps = getPreparedStatement(SIMPLE_SELECT_SQL); // depends on control dependency: [try], data = [none]
ps.executeQuery(); // depends on control dependency: [try], data = [non... |
public class class_name {
public void addText(String text) {
try {
writer.append(text);
} catch (IOException e) {
e.printStackTrace();
}
} } | public class class_name {
public void addText(String text) {
try {
writer.append(text); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
e.printStackTrace();
} // depends on control dependency: [catch], data = [none]
} } |
public class class_name {
public LiquibaseDataType fromDescription(String dataTypeDefinition, Database database) {
if (dataTypeDefinition == null) {
return null;
}
String dataTypeName = dataTypeDefinition;
// Remove the first occurrence of (anything within parentheses). Thi... | public class class_name {
public LiquibaseDataType fromDescription(String dataTypeDefinition, Database database) {
if (dataTypeDefinition == null) {
return null; // depends on control dependency: [if], data = [none]
}
String dataTypeName = dataTypeDefinition;
// Remove the ... |
public class class_name {
void moveouts(State old, State newState) {
Arc a;
assert old != newState;
while ((a = old.outs) != null) {
cparc(a, newState, a.to);
freearc(a);
}
} } | public class class_name {
void moveouts(State old, State newState) {
Arc a;
assert old != newState;
while ((a = old.outs) != null) {
cparc(a, newState, a.to); // depends on control dependency: [while], data = [none]
freearc(a); // depends on control dependency: [while]... |
public class class_name {
private static void getStats(
StatsSnapshot snapshot,
AggregationData data,
View view,
ViewData.AggregationWindowData windowData) {
if (view == RPC_CLIENT_ROUNDTRIP_LATENCY_VIEW || view == RPC_SERVER_SERVER_LATENCY_VIEW) {
snapshot.avgLatencyTotal = ((Distrib... | public class class_name {
private static void getStats(
StatsSnapshot snapshot,
AggregationData data,
View view,
ViewData.AggregationWindowData windowData) {
if (view == RPC_CLIENT_ROUNDTRIP_LATENCY_VIEW || view == RPC_SERVER_SERVER_LATENCY_VIEW) {
snapshot.avgLatencyTotal = ((Distrib... |
public class class_name {
void internalOpenDialog(
final CmsContainerPageElementPanel element,
String editContentId,
final boolean inline,
boolean wasNew) {
if (!m_editorOpened) {
m_editorOpened = true;
m_handler.disableToolbarButtons();
m_ha... | public class class_name {
void internalOpenDialog(
final CmsContainerPageElementPanel element,
String editContentId,
final boolean inline,
boolean wasNew) {
if (!m_editorOpened) {
m_editorOpened = true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public void removeByCPDefinitionId(long CPDefinitionId) {
for (CPInstance cpInstance : findByCPDefinitionId(CPDefinitionId,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpInstance);
}
} } | public class class_name {
@Override
public void removeByCPDefinitionId(long CPDefinitionId) {
for (CPInstance cpInstance : findByCPDefinitionId(CPDefinitionId,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpInstance); // depends on control dependency: [for], data = [cpInstance]
}
} } |
public class class_name {
private String generateRandomSession() {
final int length = 16;
final SecureRandom r = new SecureRandom();
final StringBuilder sb = new StringBuilder();
while (sb.length() < length) {
sb.append(Integer.toHexString(r.nextInt()));
}
re... | public class class_name {
private String generateRandomSession() {
final int length = 16;
final SecureRandom r = new SecureRandom();
final StringBuilder sb = new StringBuilder();
while (sb.length() < length) {
sb.append(Integer.toHexString(r.nextInt())); // depends on contro... |
public class class_name {
public static void getChars(CharSequence csq, int srcBegin, int srcEnd, char dst[], int dstBegin) {
final Class<?> csqClass = csq.getClass();
if (csqClass == String.class) {
((String)csq).getChars(srcBegin, srcEnd, dst, dstBegin);
}
else if (csqClas... | public class class_name {
public static void getChars(CharSequence csq, int srcBegin, int srcEnd, char dst[], int dstBegin) {
final Class<?> csqClass = csq.getClass();
if (csqClass == String.class) {
((String)csq).getChars(srcBegin, srcEnd, dst, dstBegin); // depends on control dependency: ... |
public class class_name {
private boolean[] getRegulatoryRegionOverlaps(Variant variant) {
// 0: overlaps any regulatory region type
// 1: overlaps transcription factor binding site
boolean[] overlapsRegulatoryRegion = {false, false};
// Variant type checked in expected order of freque... | public class class_name {
private boolean[] getRegulatoryRegionOverlaps(Variant variant) {
// 0: overlaps any regulatory region type
// 1: overlaps transcription factor binding site
boolean[] overlapsRegulatoryRegion = {false, false};
// Variant type checked in expected order of freque... |
public class class_name {
protected static List<Repository> createFlattenedRepositories( List<Repository> repositories )
{
if ( repositories != null )
{
List<Repository> flattenedRepositories = new ArrayList<Repository>( repositories.size() );
for ( Repository repo : reposit... | public class class_name {
protected static List<Repository> createFlattenedRepositories( List<Repository> repositories )
{
if ( repositories != null )
{
List<Repository> flattenedRepositories = new ArrayList<Repository>( repositories.size() );
for ( Repository repo : reposit... |
public class class_name {
public static int ipv4ToInt( final Inet4Address addr )
{
int value = 0;
for( byte chunk : addr.getAddress() )
{
value <<= 8;
value |= chunk & 0xff;
}
return value;
} } | public class class_name {
public static int ipv4ToInt( final Inet4Address addr )
{
int value = 0;
for( byte chunk : addr.getAddress() )
{
value <<= 8; // depends on control dependency: [for], data = [none]
value |= chunk & 0xff; // depends on control depend... |
public class class_name {
@Deprecated
protected boolean resolveReplacement(StringBuilder builder, String str, String expr) {
if (environment.containsProperty(expr)) {
builder.append(environment.getProperty(expr, String.class).orElseThrow(() -> new ConfigurationException("Could not resolve place... | public class class_name {
@Deprecated
protected boolean resolveReplacement(StringBuilder builder, String str, String expr) {
if (environment.containsProperty(expr)) {
builder.append(environment.getProperty(expr, String.class).orElseThrow(() -> new ConfigurationException("Could not resolve place... |
public class class_name {
public void setIdentityAttributeOrder(java.util.Collection<String> identityAttributeOrder) {
if (identityAttributeOrder == null) {
this.identityAttributeOrder = null;
return;
}
this.identityAttributeOrder = new java.util.ArrayList<String>(ident... | public class class_name {
public void setIdentityAttributeOrder(java.util.Collection<String> identityAttributeOrder) {
if (identityAttributeOrder == null) {
this.identityAttributeOrder = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency... |
public class class_name {
public void install(ExistsAction existsAction, boolean rollbackAll, boolean downloadDependencies) throws InstallException {
if (installAssets.isEmpty())
return;
int progress = 50;
int interval1 = installAssets.size() == 0 ? 40 : 40 / installAssets.size();
... | public class class_name {
public void install(ExistsAction existsAction, boolean rollbackAll, boolean downloadDependencies) throws InstallException {
if (installAssets.isEmpty())
return;
int progress = 50;
int interval1 = installAssets.size() == 0 ? 40 : 40 / installAssets.size();
... |
public class class_name {
protected void doPublishEvent(final ApplicationEvent e) {
if (applicationEventPublisher != null) {
LOGGER.trace("Publishing [{}]", e);
this.applicationEventPublisher.publishEvent(e);
}
} } | public class class_name {
protected void doPublishEvent(final ApplicationEvent e) {
if (applicationEventPublisher != null) {
LOGGER.trace("Publishing [{}]", e);
this.applicationEventPublisher.publishEvent(e); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static <T> T retry(Callable<T> callable, int retries, List<String> nonRetryableKeywords) {
int retryCount = 0;
while (true) {
try {
return callable.call();
} catch (Exception e) {
retryCount++;
if (... | public class class_name {
public static <T> T retry(Callable<T> callable, int retries, List<String> nonRetryableKeywords) {
int retryCount = 0;
while (true) {
try {
return callable.call(); // depends on control dependency: [try], data = [none]
} catch (Exception ... |
public class class_name {
public final void put(final String key, final String value) {
final Property prop = find(key);
if (prop == null) {
props.add(new Property(key, null, value));
} else {
prop.setValue(value);
}
} } | public class class_name {
public final void put(final String key, final String value) {
final Property prop = find(key);
if (prop == null) {
props.add(new Property(key, null, value));
// depends on control dependency: [if], data = [none]
} else {
prop.setValue(value... |
public class class_name {
public void setSelected( VariableIF v ) {
if (v == null) { return; }
// construct chain of variables
final List<VariableIF> vchain = new ArrayList<>();
vchain.add( v);
VariableIF vp = v;
while (vp.isMemberOfStructure()) {
... | public class class_name {
public void setSelected( VariableIF v ) {
if (v == null) { return; }
// depends on control dependency: [if], data = [none]
// construct chain of variables
final List<VariableIF> vchain = new ArrayList<>();
vchain.add( v);
VariableIF vp = v;
... |
public class class_name {
@Override
public EClass getIfcBurner() {
if (ifcBurnerEClass == null) {
ifcBurnerEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(66);
}
return ifcBurnerEClass;
} } | public class class_name {
@Override
public EClass getIfcBurner() {
if (ifcBurnerEClass == null) {
ifcBurnerEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(66);
// depends on control dependency: [if], data = [none]
}
return ifcBurnerEClass;
} } |
public class class_name {
protected void buildFieldList(final String field, final List<String> fieldList) {
if(Utils.isEmpty(field)) {
return;
}
if(!fieldList.contains(field)) {
fieldList.add(field);
}
String plainFiel... | public class class_name {
protected void buildFieldList(final String field, final List<String> fieldList) {
if(Utils.isEmpty(field)) {
return;
// depends on control dependency: [if], data = [none]
}
if(!fieldList.contains(field)) {
fieldList.add(... |
public class class_name {
static public Object getByEquality(Object[] array, Object key)
{
if (array != null)
{
int length = array.length;
for (int i = 0; i < length; i += 2)
{
Object targetKey = array[i];
if (targetKey == null)
... | public class class_name {
static public Object getByEquality(Object[] array, Object key)
{
if (array != null)
{
int length = array.length;
for (int i = 0; i < length; i += 2)
{
Object targetKey = array[i];
if (targetKey == null)
... |
public class class_name {
@Override
public Builder claimFrom(String jsonOrJwt, String claim) throws InvalidClaimException, InvalidTokenException {
if (JwtUtils.isNullEmpty(claim)) {
String err = Tr.formatMessage(tc, "JWT_INVALID_CLAIM_ERR", new Object[] { claim });
throw new Invalid... | public class class_name {
@Override
public Builder claimFrom(String jsonOrJwt, String claim) throws InvalidClaimException, InvalidTokenException {
if (JwtUtils.isNullEmpty(claim)) {
String err = Tr.formatMessage(tc, "JWT_INVALID_CLAIM_ERR", new Object[] { claim });
throw new Invalid... |
public class class_name {
private static long periodEnd(long now, long period, QDate cal)
{
if (period < 0)
return Long.MAX_VALUE;
else if (period == 0)
return now;
if (period < 30 * DAY) {
cal.setGMTTime(now);
long localTime = cal.getLocalTime();
localTime = localTime + ... | public class class_name {
private static long periodEnd(long now, long period, QDate cal)
{
if (period < 0)
return Long.MAX_VALUE;
else if (period == 0)
return now;
if (period < 30 * DAY) {
cal.setGMTTime(now); // depends on control dependency: [if], data = [none]
long localTime... |
public class class_name {
protected List<VideoProfile> getVideoProfiles() {
List<VideoProfile> profiles = new ArrayList<VideoProfile>();
for (String profileName : getVideoProfileNames()) {
VideoProfile profile = VideoProfile.get(resourceResolver, profileName);
if (profile != null) {
profile... | public class class_name {
protected List<VideoProfile> getVideoProfiles() {
List<VideoProfile> profiles = new ArrayList<VideoProfile>();
for (String profileName : getVideoProfileNames()) {
VideoProfile profile = VideoProfile.get(resourceResolver, profileName);
if (profile != null) {
profile... |
public class class_name {
public synchronized void rem_obj_polling(final String[] argin, final boolean with_db_upd)
throws DevFailed {
Util.out4.println("In rem_obj_polling command");
for (final String arg : argin) {
Util.out4.println("Input string = " + arg);
}
... | public class class_name {
public synchronized void rem_obj_polling(final String[] argin, final boolean with_db_upd)
throws DevFailed {
Util.out4.println("In rem_obj_polling command");
for (final String arg : argin) {
Util.out4.println("Input string = " + arg);
}
... |
public class class_name {
private boolean addHisoricalRecord(HistoricalRecord historicalRecord) {
synchronized (mInstanceLock) {
final boolean added = mHistoricalRecords.add(historicalRecord);
if (added) {
mHistoricalRecordsChanged = true;
pruneExcessiveH... | public class class_name {
private boolean addHisoricalRecord(HistoricalRecord historicalRecord) {
synchronized (mInstanceLock) {
final boolean added = mHistoricalRecords.add(historicalRecord);
if (added) {
mHistoricalRecordsChanged = true; // depends on control dependenc... |
public class class_name {
public static void symmetricIntersection(DBIDs first, DBIDs second, HashSetModifiableDBIDs firstonly, HashSetModifiableDBIDs intersection, HashSetModifiableDBIDs secondonly) {
if(first.size() > second.size()) {
symmetricIntersection(second, first, secondonly, intersection, firstonly... | public class class_name {
public static void symmetricIntersection(DBIDs first, DBIDs second, HashSetModifiableDBIDs firstonly, HashSetModifiableDBIDs intersection, HashSetModifiableDBIDs secondonly) {
if(first.size() > second.size()) {
symmetricIntersection(second, first, secondonly, intersection, firstonly... |
public class class_name {
static private int getOrcAtomicRowColumnId() {
try {
Field rowField = OrcRecordUpdater.class.getDeclaredField("ROW");
rowField.setAccessible(true);
int rowId = (int) rowField.get(null);
rowField.setAccessible(false);
return rowId;
} catch (NoSuchFieldExce... | public class class_name {
static private int getOrcAtomicRowColumnId() {
try {
Field rowField = OrcRecordUpdater.class.getDeclaredField("ROW");
rowField.setAccessible(true); // depends on control dependency: [try], data = [none]
int rowId = (int) rowField.get(null);
rowField.setAccessible(f... |
public class class_name {
public static final CmsProperty get(String name, List<CmsProperty> list) {
CmsProperty property = null;
name = name.trim();
// choose the fastest method to traverse the list
if (list instanceof RandomAccess) {
for (int i = 0, n = list.size(); i < n... | public class class_name {
public static final CmsProperty get(String name, List<CmsProperty> list) {
CmsProperty property = null;
name = name.trim();
// choose the fastest method to traverse the list
if (list instanceof RandomAccess) {
for (int i = 0, n = list.size(); i < n... |
public class class_name {
public void generateTableTabTypesScript(Map<String,Integer> typeMap,
Set<? extends TableTabTypes> tabTypes, String elementName) {
String sep = "";
StringBuilder vars = new StringBuilder("var ");
vars.append(elementName)
.append(" = {");
... | public class class_name {
public void generateTableTabTypesScript(Map<String,Integer> typeMap,
Set<? extends TableTabTypes> tabTypes, String elementName) {
String sep = "";
StringBuilder vars = new StringBuilder("var ");
vars.append(elementName)
.append(" = {");
... |
public class class_name {
public static int pitch_ol( /* output: open-loop pitch lag */
float signal[],int signals, /* input : signal to compute pitch */
/* s[-PIT_MAX : l_frame-1] */
int pit_min, /* input : minimum pitch lag */... | public class class_name {
public static int pitch_ol( /* output: open-loop pitch lag */
float signal[],int signals, /* input : signal to compute pitch */
/* s[-PIT_MAX : l_frame-1] */
int pit_min, /* input : minimum pitch lag */... |
public class class_name {
@SuppressWarnings("unchecked")
public Map<String,String> getMap(String name) {
Map<String,String> map = null;
Map<String,Object> groupMap = (Map<String,Object>)get(name, PropType.group);
if (groupMap != null) {
map = new HashMap<>();
for (St... | public class class_name {
@SuppressWarnings("unchecked")
public Map<String,String> getMap(String name) {
Map<String,String> map = null;
Map<String,Object> groupMap = (Map<String,Object>)get(name, PropType.group);
if (groupMap != null) {
map = new HashMap<>(); // depends on contr... |
public class class_name {
public CompletableFuture<Integer> getUserSize() {
if (this.localEngine != null && this.sncpNodeAddresses == null) {
return CompletableFuture.completedFuture(this.localEngine.getLocalUserSize());
}
tryAcquireSemaphore();
CompletableFuture<Intege... | public class class_name {
public CompletableFuture<Integer> getUserSize() {
if (this.localEngine != null && this.sncpNodeAddresses == null) {
return CompletableFuture.completedFuture(this.localEngine.getLocalUserSize());
// depends on control dependency: [if], data = [none]
}
tr... |
public class class_name {
private DataSource lookupDS(InitialContext ctx, String path) {
try {
return (DataSource) ctx.lookup(path);
} catch (NamingException e) {
return null;
}
} } | public class class_name {
private DataSource lookupDS(InitialContext ctx, String path) {
try {
return (DataSource) ctx.lookup(path); // depends on control dependency: [try], data = [none]
} catch (NamingException e) {
return null;
} // depends on control dependency: [cat... |
public class class_name {
@Override
/** {@inheritDoc} */
public <T extends IChemObject> T read(T object) throws CDKException {
final String[] expected_columns = {"NO.", "ATOM", "X", "Y", "Z"};
StringBuffer eigenvalues = new StringBuffer();
if (object instanceof IAtomContainer) {
... | public class class_name {
@Override
/** {@inheritDoc} */
public <T extends IChemObject> T read(T object) throws CDKException {
final String[] expected_columns = {"NO.", "ATOM", "X", "Y", "Z"};
StringBuffer eigenvalues = new StringBuffer();
if (object instanceof IAtomContainer) {
... |
public class class_name {
public static Boolean getEnvironmentBoolean(String name, Boolean defaultValue) {
if (envVars == null) {
throw new IllegalStateException("The environment vars must be provided before calling getEnvironmentBoolean.");
}
String value = getEnvironmentString(na... | public class class_name {
public static Boolean getEnvironmentBoolean(String name, Boolean defaultValue) {
if (envVars == null) {
throw new IllegalStateException("The environment vars must be provided before calling getEnvironmentBoolean.");
}
String value = getEnvironmentString(na... |
public class class_name {
public synchronized int cleanCache(float maxAge) {
// calculate oldest possible date for the cache files
long expireDate = System.currentTimeMillis() - (long)(maxAge * 60.0f * 60.0f * 1000.0f);
File basedir = new File(m_rfsRepository);
// perform the cache cle... | public class class_name {
public synchronized int cleanCache(float maxAge) {
// calculate oldest possible date for the cache files
long expireDate = System.currentTimeMillis() - (long)(maxAge * 60.0f * 60.0f * 1000.0f);
File basedir = new File(m_rfsRepository);
// perform the cache cle... |
public class class_name {
public MapConfig findMapConfig(String name) {
name = getBaseName(name);
MapConfig config = lookupByPattern(configPatternMatcher, mapConfigs, name);
if (config != null) {
initDefaultMaxSizeForOnHeapMaps(config.getNearCacheConfig());
return config... | public class class_name {
public MapConfig findMapConfig(String name) {
name = getBaseName(name);
MapConfig config = lookupByPattern(configPatternMatcher, mapConfigs, name);
if (config != null) {
initDefaultMaxSizeForOnHeapMaps(config.getNearCacheConfig()); // depends on control dep... |
public class class_name {
public final boolean collapseGroup(final int groupIndex) {
ExpandableListAdapter adapter = getExpandableListAdapter();
if (adapter != null && isGroupExpanded(groupIndex)) {
expandedGroups.remove(groupIndex);
notifyDataSetChanged();
return t... | public class class_name {
public final boolean collapseGroup(final int groupIndex) {
ExpandableListAdapter adapter = getExpandableListAdapter();
if (adapter != null && isGroupExpanded(groupIndex)) {
expandedGroups.remove(groupIndex); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public boolean await(long maxWait, TimeUnit timeUnit) throws Exception
{
boolean hasWait = (timeUnit != null);
long startMs = System.currentTimeMillis();
for (;;)
{
String status = client.command().status(queryId).invoke().get().getStatus();
... | public class class_name {
public boolean await(long maxWait, TimeUnit timeUnit) throws Exception
{
boolean hasWait = (timeUnit != null);
long startMs = System.currentTimeMillis();
for (;;)
{
String status = client.command().status(queryId).invoke().get().getStatus();
... |
public class class_name {
public void permute(final PermutationProxy proxy) {
checkArgument(numElements() == proxy.length());
final boolean[] seen = new boolean[numElements()];
for (int startIdx = 0; startIdx < seen.length; ++startIdx) {
if (!seen[startIdx]) {
// starting at any element, we... | public class class_name {
public void permute(final PermutationProxy proxy) {
checkArgument(numElements() == proxy.length());
final boolean[] seen = new boolean[numElements()];
for (int startIdx = 0; startIdx < seen.length; ++startIdx) {
if (!seen[startIdx]) {
// starting at any element, we... |
public class class_name {
public String getPathName()
{
if( pathName_ == null)
{
StringBuilder pathName = new StringBuilder();
IVarDef parent = getParent();
if( parent != null)
{
pathName
.append( parent.getPathName())
.append( '.');
}
... | public class class_name {
public String getPathName()
{
if( pathName_ == null)
{
StringBuilder pathName = new StringBuilder();
IVarDef parent = getParent();
if( parent != null)
{
pathName
.append( parent.getPathName())
.append( '.'); // depends on co... |
public class class_name {
@NotNull
public PaginatedResult<Candidate> listCandidates() {
PaginatedResult<Candidate> result = restAdapter.listCandidates();
for (Candidate candidate : result.getData()) {
candidate.setAdapter(restAdapter);
}
return result;
} } | public class class_name {
@NotNull
public PaginatedResult<Candidate> listCandidates() {
PaginatedResult<Candidate> result = restAdapter.listCandidates();
for (Candidate candidate : result.getData()) {
candidate.setAdapter(restAdapter); // depends on control dependency: [for], data = [candidate]
}
... |
public class class_name {
public static boolean verifyPurchase(String base64PublicKey, String signedData, String signature) {
if (TextUtils.isEmpty(signedData) || TextUtils.isEmpty(base64PublicKey) ||
TextUtils.isEmpty(signature)) {
Log.e(TAG, "Purchase verification failed: missing ... | public class class_name {
public static boolean verifyPurchase(String base64PublicKey, String signedData, String signature) {
if (TextUtils.isEmpty(signedData) || TextUtils.isEmpty(base64PublicKey) ||
TextUtils.isEmpty(signature)) {
Log.e(TAG, "Purchase verification failed: missing ... |
public class class_name {
public static <T> Supplier<T> memoizeWithRandomExpiration(Supplier<T> delegate, long minDuration, long maxDuration, TimeUnit units) {
if (minDuration == maxDuration) {
// This case resolves to standard expiration
return Suppliers.memoizeWithExpiration(delegate,... | public class class_name {
public static <T> Supplier<T> memoizeWithRandomExpiration(Supplier<T> delegate, long minDuration, long maxDuration, TimeUnit units) {
if (minDuration == maxDuration) {
// This case resolves to standard expiration
return Suppliers.memoizeWithExpiration(delegate,... |
public class class_name {
@Override
public String getUserFacingMessage() {
final StringBuilder bldr = new StringBuilder();
String rl = getResourceLocation();
String pref = getPrefix();
String val = getValue();
bldr.append("symbol ");
bldr.append(val);
bldr.a... | public class class_name {
@Override
public String getUserFacingMessage() {
final StringBuilder bldr = new StringBuilder();
String rl = getResourceLocation();
String pref = getPrefix();
String val = getValue();
bldr.append("symbol ");
bldr.append(val);
bldr.a... |
public class class_name {
public static String reverseDelimited(String str, char separatorChar) {
if (str == null) {
return null;
}
// could implement manually, but simple way is to reuse other,
// probably slower, methods.
String[] strs = split(str, separatorChar);
... | public class class_name {
public static String reverseDelimited(String str, char separatorChar) {
if (str == null) {
return null; // depends on control dependency: [if], data = [none]
}
// could implement manually, but simple way is to reuse other,
// probably slower, method... |
public class class_name {
static long addCap(long a, long b) {
long res = a + b;
if (res < 0L) {
return Long.MAX_VALUE;
}
return res;
} } | public class class_name {
static long addCap(long a, long b) {
long res = a + b;
if (res < 0L) {
return Long.MAX_VALUE; // depends on control dependency: [if], data = [none]
}
return res;
} } |
public class class_name {
private void analyzeApplication() throws InterruptedException {
int passCount = 0;
Profiler profiler = bugReporter.getProjectStats().getProfiler();
profiler.start(this.getClass());
AnalysisContext.currentXFactory().canonicalizeAll();
try {
b... | public class class_name {
private void analyzeApplication() throws InterruptedException {
int passCount = 0;
Profiler profiler = bugReporter.getProjectStats().getProfiler();
profiler.start(this.getClass());
AnalysisContext.currentXFactory().canonicalizeAll();
try {
b... |
public class class_name {
public void select(int row, int col)
{
for (TextGridSelectionListener listener : textGridSelectionListeners)
{
listener.select(new TextGridEvent(this, row, col));
}
} } | public class class_name {
public void select(int row, int col)
{
for (TextGridSelectionListener listener : textGridSelectionListeners)
{
listener.select(new TextGridEvent(this, row, col)); // depends on control dependency: [for], data = [listener]
}
} } |
public class class_name {
private WSCredential getWSCredentialFromSubject(Subject subject) {
if (subject != null) {
java.util.Collection<Object> publicCreds = subject.getPublicCredentials();
if (publicCreds != null && publicCreds.size() > 0) {
java.util.Iterator<Object>... | public class class_name {
private WSCredential getWSCredentialFromSubject(Subject subject) {
if (subject != null) {
java.util.Collection<Object> publicCreds = subject.getPublicCredentials();
if (publicCreds != null && publicCreds.size() > 0) {
java.util.Iterator<Object>... |
public class class_name {
public int bufferIndexOf(KType e1) {
final int last = tail;
final int bufLen = buffer.length;
for (int i = head; i != last; i = oneRight(i, bufLen)) {
if (Intrinsics.equals(this, e1, buffer[i])) {
return i;
}
}
return -1;
} } | public class class_name {
public int bufferIndexOf(KType e1) {
final int last = tail;
final int bufLen = buffer.length;
for (int i = head; i != last; i = oneRight(i, bufLen)) {
if (Intrinsics.equals(this, e1, buffer[i])) {
return i; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void prune(
Collection<ComputationState> matchesToPrune,
Collection<Map<String, List<EventId>>> matchedResult,
SharedBufferAccessor<?> sharedBufferAccessor) throws Exception {
EventId pruningId = getPruningId(matchedResult);
if (pruningId != null) {
List<ComputationSta... | public class class_name {
public void prune(
Collection<ComputationState> matchesToPrune,
Collection<Map<String, List<EventId>>> matchedResult,
SharedBufferAccessor<?> sharedBufferAccessor) throws Exception {
EventId pruningId = getPruningId(matchedResult);
if (pruningId != null) {
List<ComputationSta... |
public class class_name {
public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata
getImageClassificationDetails() {
if (detailsCase_ == 3) {
return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata)
details_;
}
return com.g... | public class class_name {
public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata
getImageClassificationDetails() {
if (detailsCase_ == 3) {
return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata)
details_; // depends on control ... |
public class class_name {
public static void listToCSV(StringBuffer strOut, List<?> list) {
if (null != list && !list.isEmpty()) { // 如果文本不为空则添加到csv字符串中
for (Object aList : list) {
createCol(strOut, aList);
strOut.append(COMMA);
}
strOut = str... | public class class_name {
public static void listToCSV(StringBuffer strOut, List<?> list) {
if (null != list && !list.isEmpty()) { // 如果文本不为空则添加到csv字符串中
for (Object aList : list) {
createCol(strOut, aList); // depends on control dependency: [for], data = [aList]
strO... |
public class class_name {
@Override
@RunInto(RunType.JAT)
public void doOpenStage(final Wave wave) {
LOGGER.trace("Open a stage.");
final StageWaveBean swb = getWaveBean(wave);
final String stageKey = swb.stageKey();
if (this.stageMap.containsKey(stageKey) && this.stageMap.ge... | public class class_name {
@Override
@RunInto(RunType.JAT)
public void doOpenStage(final Wave wave) {
LOGGER.trace("Open a stage.");
final StageWaveBean swb = getWaveBean(wave);
final String stageKey = swb.stageKey();
if (this.stageMap.containsKey(stageKey) && this.stageMap.ge... |
public class class_name {
void rotateGridCCW( Grid g ) {
work.clear();
for (int i = 0; i < g.rows * g.columns; i++) {
work.add(null);
}
for (int row = 0; row < g.rows; row++) {
for (int col = 0; col < g.columns; col++) {
work.set(col*g.rows + row, g.get(g.rows - row - 1,col));
}
}
g.ellipse... | public class class_name {
void rotateGridCCW( Grid g ) {
work.clear();
for (int i = 0; i < g.rows * g.columns; i++) {
work.add(null); // depends on control dependency: [for], data = [none]
}
for (int row = 0; row < g.rows; row++) {
for (int col = 0; col < g.columns; col++) {
work.set(col*g.rows + r... |
public class class_name {
public TemplateParser buildTemplateParser() {
// TODO: handle enable?
List<TemplateImplementation> impls = buildTemplateParserImpls();
if (impls.isEmpty()) {
// if no template parser available => exception
throw new BuildException("No parser available. Either disable template feat... | public class class_name {
public TemplateParser buildTemplateParser() {
// TODO: handle enable?
List<TemplateImplementation> impls = buildTemplateParserImpls();
if (impls.isEmpty()) {
// if no template parser available => exception
throw new BuildException("No parser available. Either disable template feat... |
public class class_name {
static ClosableResolver<AwsEndpoint> compositeQueryResolver(
final ClusterResolver<AwsEndpoint> remoteResolver,
final ClusterResolver<AwsEndpoint> localResolver,
final EurekaClientConfig clientConfig,
final EurekaTransportConfig transportConfig,... | public class class_name {
static ClosableResolver<AwsEndpoint> compositeQueryResolver(
final ClusterResolver<AwsEndpoint> remoteResolver,
final ClusterResolver<AwsEndpoint> localResolver,
final EurekaClientConfig clientConfig,
final EurekaTransportConfig transportConfig,... |
public class class_name {
private ChargingStation getChargingStation(ChargingStationId chargingStationId) {
ChargingStation chargingStation = chargingStationRepository.findOne(chargingStationId.getId());
if (chargingStation == null) {
LOG.error("Could not find charging station {}", chargin... | public class class_name {
private ChargingStation getChargingStation(ChargingStationId chargingStationId) {
ChargingStation chargingStation = chargingStationRepository.findOne(chargingStationId.getId());
if (chargingStation == null) {
LOG.error("Could not find charging station {}", chargin... |
public class class_name {
public List<TemplateRole> getSignerRoles() {
List<TemplateRole> masterList = getList(TemplateRole.class, TEMPLATE_SIGNER_ROLES);
if (masterList == null || masterList.size() == 0) {
return masterList;
}
if (masterList.get(0).getOrder() == null) {
... | public class class_name {
public List<TemplateRole> getSignerRoles() {
List<TemplateRole> masterList = getList(TemplateRole.class, TEMPLATE_SIGNER_ROLES);
if (masterList == null || masterList.size() == 0) {
return masterList; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void createLinks(ServiceReference<D> declarationSRef) {
D declaration = getDeclaration(declarationSRef);
for (ServiceReference<S> serviceReference : linkerManagement.getMatchedBinderServiceRef()) {
if (linkerManagement.canBeLinked(declaration, serviceReferen... | public class class_name {
public void createLinks(ServiceReference<D> declarationSRef) {
D declaration = getDeclaration(declarationSRef);
for (ServiceReference<S> serviceReference : linkerManagement.getMatchedBinderServiceRef()) {
if (linkerManagement.canBeLinked(declaration, serviceReferen... |
public class class_name {
public void addResult(CmsContentCheckResource testResource) {
List warnings = testResource.getWarnings();
List errors = testResource.getErrors();
// add the warnings if there were any
if ((warnings != null) && (warnings.size() > 0)) {
m_warnings.pu... | public class class_name {
public void addResult(CmsContentCheckResource testResource) {
List warnings = testResource.getWarnings();
List errors = testResource.getErrors();
// add the warnings if there were any
if ((warnings != null) && (warnings.size() > 0)) {
m_warnings.pu... |
public class class_name {
public static void dumpTexCoords(AiMesh mesh, int coords) {
if (!mesh.hasTexCoords(coords)) {
System.out.println("mesh has no texture coordinate set " + coords);
return;
}
for (int i = 0; i < mesh.getNumVertices(); i++) {
in... | public class class_name {
public static void dumpTexCoords(AiMesh mesh, int coords) {
if (!mesh.hasTexCoords(coords)) {
System.out.println("mesh has no texture coordinate set " + coords); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if... |
public class class_name {
public static String getTitle(final String namePattern, final String methodName,
final Object instance, final Object... parameters) {
final String finalPattern = namePattern
.replaceAll("\\{method}", methodName)
.replac... | public class class_name {
public static String getTitle(final String namePattern, final String methodName,
final Object instance, final Object... parameters) {
final String finalPattern = namePattern
.replaceAll("\\{method}", methodName)
.replac... |
public class class_name {
@Override
public void write(RtpPacket packet, RTPFormat format) {
// checking format
if (format == null) {
if (logger.isTraceEnabled()) {
logger.trace("No format specified. Packet dropped!");
}
return;
}
... | public class class_name {
@Override
public void write(RtpPacket packet, RTPFormat format) {
// checking format
if (format == null) {
if (logger.isTraceEnabled()) {
logger.trace("No format specified. Packet dropped!"); // depends on control dependency: [if], data = [none]... |
public class class_name {
@Override
public void setDecimal(int ordinal, Decimal value, int precision) {
assertIndexIsValid(ordinal);
if (precision <= Decimal.MAX_LONG_DIGITS()) {
// compact format
if (value == null) {
setNullAt(ordinal);
} else {
setLong(ordinal, value.toUns... | public class class_name {
@Override
public void setDecimal(int ordinal, Decimal value, int precision) {
assertIndexIsValid(ordinal);
if (precision <= Decimal.MAX_LONG_DIGITS()) {
// compact format
if (value == null) {
setNullAt(ordinal); // depends on control dependency: [if], data = [non... |
public class class_name {
public static ResolvedType replaceIfMoreSpecific(ResolvedType replacement, ResolvedType defaultValue) {
ResolvedType toReturn = defaultIfAbsent(replacement, defaultValue);
if (isObject(replacement) && isNotObject(defaultValue)) {
return defaultValue;
}
return toReturn;
... | public class class_name {
public static ResolvedType replaceIfMoreSpecific(ResolvedType replacement, ResolvedType defaultValue) {
ResolvedType toReturn = defaultIfAbsent(replacement, defaultValue);
if (isObject(replacement) && isNotObject(defaultValue)) {
return defaultValue; // depends on control depend... |
public class class_name {
public void addFieldRecursive(String type, String objectField, Map<String, HollowSchema> schemas) {
addField(type, objectField);
HollowObjectSchema schema = (HollowObjectSchema)schemas.get(type);
if(schema.getFieldType(objectField) == FieldType.REFERENCE) {
... | public class class_name {
public void addFieldRecursive(String type, String objectField, Map<String, HollowSchema> schemas) {
addField(type, objectField);
HollowObjectSchema schema = (HollowObjectSchema)schemas.get(type);
if(schema.getFieldType(objectField) == FieldType.REFERENCE) {
... |
public class class_name {
@SuppressWarnings("unchecked")
public void distributedProcess(ResponseBuilder rb,
ComponentFields mtasFields) {
if (mtasFields.doList) {
// compute total from shards
HashMap<String, HashMap<String, Integer>> listShardTotals = new HashMap<>();
for (ShardRequest s... | public class class_name {
@SuppressWarnings("unchecked")
public void distributedProcess(ResponseBuilder rb,
ComponentFields mtasFields) {
if (mtasFields.doList) {
// compute total from shards
HashMap<String, HashMap<String, Integer>> listShardTotals = new HashMap<>();
for (ShardRequest s... |
public class class_name {
public void marshall(AutoScalingTargetTrackingScalingPolicyConfigurationDescription autoScalingTargetTrackingScalingPolicyConfigurationDescription,
ProtocolMarshaller protocolMarshaller) {
if (autoScalingTargetTrackingScalingPolicyConfigurationDescription == null) {
... | public class class_name {
public void marshall(AutoScalingTargetTrackingScalingPolicyConfigurationDescription autoScalingTargetTrackingScalingPolicyConfigurationDescription,
ProtocolMarshaller protocolMarshaller) {
if (autoScalingTargetTrackingScalingPolicyConfigurationDescription == null) {
... |
public class class_name {
public void mapVarNodeToCliques(OpenBitSet[] nodeToCliques, int id, OpenBitSet clique) {
for ( int i = clique.nextSetBit(0); i >= 0; i = clique.nextSetBit( i + 1 ) ) {
OpenBitSet cliques = nodeToCliques[i];
if ( cliques == null ) {
cliques = ne... | public class class_name {
public void mapVarNodeToCliques(OpenBitSet[] nodeToCliques, int id, OpenBitSet clique) {
for ( int i = clique.nextSetBit(0); i >= 0; i = clique.nextSetBit( i + 1 ) ) {
OpenBitSet cliques = nodeToCliques[i];
if ( cliques == null ) {
cliques = ne... |
public class class_name {
public static <T, R> boolean contains(Collection<T> data, R what, Function<T, R> function) {
if (data == null) return false;
for (T o : data) {
if (Utils.equal(function.apply(o), what)) {
return true;
}
}
return false;
... | public class class_name {
public static <T, R> boolean contains(Collection<T> data, R what, Function<T, R> function) {
if (data == null) return false;
for (T o : data) {
if (Utils.equal(function.apply(o), what)) {
return true; // depends on control dependency: [if], data = [... |
public class class_name {
public static void registerJStormSignalHandler() {
if (!OSInfo.isLinux()) {
LOG.info("Skip register signal for current OS");
return;
}
JStormSignalHandler instance = JStormSignalHandler.getInstance();
int[] signals = {
1... | public class class_name {
public static void registerJStormSignalHandler() {
if (!OSInfo.isLinux()) {
LOG.info("Skip register signal for current OS"); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
J... |
public class class_name {
public static ColumnIO getArrayElementColumn(ColumnIO columnIO)
{
while (columnIO instanceof GroupColumnIO && !columnIO.getType().isRepetition(REPEATED)) {
columnIO = ((GroupColumnIO) columnIO).getChild(0);
}
/* If array has a standard 3-level structur... | public class class_name {
public static ColumnIO getArrayElementColumn(ColumnIO columnIO)
{
while (columnIO instanceof GroupColumnIO && !columnIO.getType().isRepetition(REPEATED)) {
columnIO = ((GroupColumnIO) columnIO).getChild(0); // depends on control dependency: [while], data = [none]
... |
public class class_name {
protected void resetValue(Attribute attribute) {
String initValue = "";
if (m_initialImageAttributes.containsKey(attribute.name())) {
initValue = m_initialImageAttributes.getString(attribute.name());
}
if (m_fields.containsKey(attribute)) {
... | public class class_name {
protected void resetValue(Attribute attribute) {
String initValue = "";
if (m_initialImageAttributes.containsKey(attribute.name())) {
initValue = m_initialImageAttributes.getString(attribute.name()); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected void resizeBuckets (int newsize)
{
Record<V>[] oldbuckets = _buckets;
_buckets = createBuckets(newsize);
// we shuffle the records around without allocating new ones
int index = oldbuckets.length;
while (index-- > 0) {
Record<... | public class class_name {
protected void resizeBuckets (int newsize)
{
Record<V>[] oldbuckets = _buckets;
_buckets = createBuckets(newsize);
// we shuffle the records around without allocating new ones
int index = oldbuckets.length;
while (index-- > 0) {
Record<... |
public class class_name {
private boolean constructorHasMatchingParams(
TypeLiteral<?> type, Constructor<?> constructor, List<Key<?>> paramList, Errors errors)
throws ErrorsException {
List<TypeLiteral<?>> params = type.getParameterTypes(constructor);
Annotation[][] paramAnnotations = constructor.g... | public class class_name {
private boolean constructorHasMatchingParams(
TypeLiteral<?> type, Constructor<?> constructor, List<Key<?>> paramList, Errors errors)
throws ErrorsException {
List<TypeLiteral<?>> params = type.getParameterTypes(constructor);
Annotation[][] paramAnnotations = constructor.g... |
public class class_name {
public ReportRequest[] clear() {
if (cache == null) {
return NO_REQUESTS;
}
synchronized (cache) {
ReportRequest[] res = generatedFlushRequests(cache.asMap().values());
cache.invalidateAll();
out.clear();
return res;
}
} } | public class class_name {
public ReportRequest[] clear() {
if (cache == null) {
return NO_REQUESTS; // depends on control dependency: [if], data = [none]
}
synchronized (cache) {
ReportRequest[] res = generatedFlushRequests(cache.asMap().values());
cache.invalidateAll();
out.clear()... |
public class class_name {
private static void reverseRange(Object[] a, int lo, int hi) {
hi--;
while (lo < hi) {
Object t = a[lo];
a[lo++] = a[hi];
a[hi--] = t;
}
} } | public class class_name {
private static void reverseRange(Object[] a, int lo, int hi) {
hi--;
while (lo < hi) {
Object t = a[lo];
a[lo++] = a[hi]; // depends on control dependency: [while], data = [none]
a[hi--] = t; // depends on control dependency: [while], data =... |
public class class_name {
@Override
public void activate(ComponentContext context,
Map<String, Object> properties, ConfigurationAdmin configAdmin) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "activate", new Object[] { context, pr... | public class class_name {
@Override
public void activate(ComponentContext context,
Map<String, Object> properties, ConfigurationAdmin configAdmin) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, "activate", new Object[] { context, pr... |
public class class_name {
@Override
public JsMessage getMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMessage");
// We hold a reference to the root JsMessage so that an individual subscription
// can choose to release its r... | public class class_name {
@Override
public JsMessage getMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMessage");
// We hold a reference to the root JsMessage so that an individual subscription
// can choose to release its r... |
public class class_name {
protected final String createJpqlStreamSelect(final StreamId streamId) {
if (streamId.isProjection()) {
throw new IllegalArgumentException("Projections do not have a stream table : " + streamId);
}
final List<KeyValue> params = new ArrayList<>(strea... | public class class_name {
protected final String createJpqlStreamSelect(final StreamId streamId) {
if (streamId.isProjection()) {
throw new IllegalArgumentException("Projections do not have a stream table : " + streamId);
}
final List<KeyValue> params = new ArrayList<>(strea... |
public class class_name {
@Override
public void setZIndex(float zIndex) {
if (polyline != null) {
polyline.setZIndex(zIndex);
}
for (Marker marker : markers) {
marker.setZIndex(zIndex);
}
} } | public class class_name {
@Override
public void setZIndex(float zIndex) {
if (polyline != null) {
polyline.setZIndex(zIndex); // depends on control dependency: [if], data = [none]
}
for (Marker marker : markers) {
marker.setZIndex(zIndex); // depends on control depen... |
public class class_name {
@Override
public EClass getIfcValve() {
if (ifcValveEClass == null) {
ifcValveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(747);
}
return ifcValveEClass;
} } | public class class_name {
@Override
public EClass getIfcValve() {
if (ifcValveEClass == null) {
ifcValveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(747);
// depends on control dependency: [if], data = [none]
}
return ifcValveEClass;
} } |
public class class_name {
protected void setSkipKey(int line, int col, String reason) {
if (key == null) {
key = new DocumentURIWithSourceInfo("", srcId, subId, line, col);
} else {
key.setUri("");
key.setSrcId(srcId);
key.setSubId(subId);
... | public class class_name {
protected void setSkipKey(int line, int col, String reason) {
if (key == null) {
key = new DocumentURIWithSourceInfo("", srcId, subId, line, col); // depends on control dependency: [if], data = [none]
} else {
key.setUri(""); // depends on control de... |
public class class_name {
protected static JavaClasspathTab getClasspathTab(ILaunchConfigurationDialog dialog) {
JavaClasspathTab tab = null;
if (dialog instanceof LaunchConfigurationsDialog) {
final LaunchConfigurationTabGroupViewer tabViewer = ((LaunchConfigurationsDialog) dialog).getTabViewer();
if (tabVi... | public class class_name {
protected static JavaClasspathTab getClasspathTab(ILaunchConfigurationDialog dialog) {
JavaClasspathTab tab = null;
if (dialog instanceof LaunchConfigurationsDialog) {
final LaunchConfigurationTabGroupViewer tabViewer = ((LaunchConfigurationsDialog) dialog).getTabViewer();
if (tabVi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.