code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public boolean isValid(TagData us) {
if (!Util.isSpecified(us, ITEMS)) {
if (!Util.isSpecified(us, BEGIN) || !(Util.isSpecified(us, END))) {
return false;
}
}
return true;
} } | public class class_name {
@Override
public boolean isValid(TagData us) {
if (!Util.isSpecified(us, ITEMS)) {
if (!Util.isSpecified(us, BEGIN) || !(Util.isSpecified(us, END))) {
return false; // depends on control dependency: [if], data = [none]
}
}
re... |
public class class_name {
public boolean decrementIfEnoughCredits(final Message msg, int credits, long timeout) {
lock.lock();
try {
if(queuing)
return addToQueue(msg, credits);
if(decrement(credits))
return true; // enough credits, message will b... | public class class_name {
public boolean decrementIfEnoughCredits(final Message msg, int credits, long timeout) {
lock.lock();
try {
if(queuing)
return addToQueue(msg, credits);
if(decrement(credits))
return true; // enough credits, message will b... |
public class class_name {
@Override
public UserProfile convert(File file)
{
if(file == null)
return null;
try
{
String text = IO.readFile(file);
if(text == null || text.length() == 0)
return null;
return converter.convert(text);
}
catch (IOException e)
{
throw new SystemExc... | public class class_name {
@Override
public UserProfile convert(File file)
{
if(file == null)
return null;
try
{
String text = IO.readFile(file);
if(text == null || text.length() == 0)
return null;
return converter.convert(text); // depends on control dependency: [try], data = [none]... |
public class class_name {
private void handleSelfLink(EntityBuilder builder, String resolvedUri) {
if (StringUtils.isBlank(resolvedUri)) {
return;
}
Link link = LinkBuilder.newInstance().setRelationship(Link.RELATIONSHIP_SELF).setHref(resolvedUri).build();
builder.addLi... | public class class_name {
private void handleSelfLink(EntityBuilder builder, String resolvedUri) {
if (StringUtils.isBlank(resolvedUri)) {
return;
// depends on control dependency: [if], data = [none]
}
Link link = LinkBuilder.newInstance().setRelationship(Link.RELATIONSHIP_SELF... |
public class class_name {
public String readUTF8EncodedString(int stringLength) {
if (stringLength > 0 && this.bufferPosition + stringLength <= this.bufferData.length) {
this.bufferPosition += stringLength;
try {
return new String(this.bufferData, this.bufferPosition - s... | public class class_name {
public String readUTF8EncodedString(int stringLength) {
if (stringLength > 0 && this.bufferPosition + stringLength <= this.bufferData.length) {
this.bufferPosition += stringLength; // depends on control dependency: [if], data = [none]
try {
retu... |
public class class_name {
@Override
protected List<Sudoku> mate(Sudoku parent1,
Sudoku parent2,
int numberOfCrossoverPoints,
Random rng)
{
Sudoku.Cell[][] offspring1 = new Sudoku.Cell[Sudoku.SIZE][];
... | public class class_name {
@Override
protected List<Sudoku> mate(Sudoku parent1,
Sudoku parent2,
int numberOfCrossoverPoints,
Random rng)
{
Sudoku.Cell[][] offspring1 = new Sudoku.Cell[Sudoku.SIZE][];
... |
public class class_name {
@Override public S fillFromImpl(B builder) {
// DO NOT, because it can already be running: builder.init(false); // check params
this.algo = builder._parms.algoName().toLowerCase();
this.algo_full_name = builder._parms.fullName();
this.supervised = builder.isSupervised();
... | public class class_name {
@Override public S fillFromImpl(B builder) {
// DO NOT, because it can already be running: builder.init(false); // check params
this.algo = builder._parms.algoName().toLowerCase();
this.algo_full_name = builder._parms.fullName();
this.supervised = builder.isSupervised();
... |
public class class_name {
private void reloadModelWithNewValue(final Long newValue) {
final long newValueAsPrimitive = newValue == null ? getModelUpdatePeriod() : newValue;
for (final PropertyChangeListener listener : modelUpdatePeriodListeners) {
final PropertyChangeEvent event = new PropertyChangeEvent... | public class class_name {
private void reloadModelWithNewValue(final Long newValue) {
final long newValueAsPrimitive = newValue == null ? getModelUpdatePeriod() : newValue;
for (final PropertyChangeListener listener : modelUpdatePeriodListeners) {
final PropertyChangeEvent event = new PropertyChangeEvent... |
public class class_name {
public ListSigningProfilesResult withProfiles(SigningProfile... profiles) {
if (this.profiles == null) {
setProfiles(new java.util.ArrayList<SigningProfile>(profiles.length));
}
for (SigningProfile ele : profiles) {
this.profiles.add(ele);
... | public class class_name {
public ListSigningProfilesResult withProfiles(SigningProfile... profiles) {
if (this.profiles == null) {
setProfiles(new java.util.ArrayList<SigningProfile>(profiles.length)); // depends on control dependency: [if], data = [none]
}
for (SigningProfile ele :... |
public class class_name {
public void print() {
Iterator<String> iter = getKeys();
while (iter.hasNext()) {
String key = iter.next();
log.info(key + " = " + getRawString(key));
}
} } | public class class_name {
public void print() {
Iterator<String> iter = getKeys();
while (iter.hasNext()) {
String key = iter.next();
log.info(key + " = " + getRawString(key)); // depends on control dependency: [while], data = [none]
}
} } |
public class class_name {
public Cassandra.Client getCassandra() {
if ( !isOpen() ) {
throw new IllegalStateException("getCassandra called on client that was not open. You should not have gotten here.");
}
if ( cassandraClient == null ) {
cassandraClient = new Cassandra.Client(new TBinaryProtoc... | public class class_name {
public Cassandra.Client getCassandra() {
if ( !isOpen() ) {
throw new IllegalStateException("getCassandra called on client that was not open. You should not have gotten here.");
}
if ( cassandraClient == null ) {
cassandraClient = new Cassandra.Client(new TBinaryProtoc... |
public class class_name {
@Override
public void populateSwapRequest(
ExternalContext externalContext, AttributeSwapRequest attributeSwapRequest) {
final Principal currentUser = externalContext.getCurrentUser();
final String uid = currentUser.getName();
final IPersonAttributes pe... | public class class_name {
@Override
public void populateSwapRequest(
ExternalContext externalContext, AttributeSwapRequest attributeSwapRequest) {
final Principal currentUser = externalContext.getCurrentUser();
final String uid = currentUser.getName();
final IPersonAttributes pe... |
public class class_name {
private String extractArguments( RepositoryOptionImpl[] repositoriesOptions,
ExcludeDefaultRepositoriesOption[] excludeDefaultRepositoriesOptions )
{
final StringBuilder argument = new StringBuilder();
final boolean excludeDefaultReposi... | public class class_name {
private String extractArguments( RepositoryOptionImpl[] repositoriesOptions,
ExcludeDefaultRepositoriesOption[] excludeDefaultRepositoriesOptions )
{
final StringBuilder argument = new StringBuilder();
final boolean excludeDefaultReposi... |
public class class_name {
public void marshall(CreateTagsRequest createTagsRequest, ProtocolMarshaller protocolMarshaller) {
if (createTagsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(c... | public class class_name {
public void marshall(CreateTagsRequest createTagsRequest, ProtocolMarshaller protocolMarshaller) {
if (createTagsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(c... |
public class class_name {
public ListIterable<Expression> getSelectExpressionOrder(KunderaQuery query)
{
if (!KunderaQueryUtils.isSelectStatement(query.getJpqlExpression()))
{
return null;
}
Expression selectExpression = ((SelectClause) (query.getSelectStatement()).getSe... | public class class_name {
public ListIterable<Expression> getSelectExpressionOrder(KunderaQuery query)
{
if (!KunderaQueryUtils.isSelectStatement(query.getJpqlExpression()))
{
return null; // depends on control dependency: [if], data = [none]
}
Expression selectExpressio... |
public class class_name {
protected int getCenterChild(CacheDataSet cache) {
if (cache.count() == 0)
return -1;
int id = cache.getId(0);
switch (getGravityInternal()) {
case TOP:
case LEFT:
case FRONT:
case FILL:
break... | public class class_name {
protected int getCenterChild(CacheDataSet cache) {
if (cache.count() == 0)
return -1;
int id = cache.getId(0);
switch (getGravityInternal()) {
case TOP:
case LEFT:
case FRONT:
case FILL:
break... |
public class class_name {
@Override
public boolean supports(TherianContext context, Copy<? extends SOURCE, ? extends TARGET> copy) {
if (context.eval(ImmutableCheck.of(copy.getTargetPosition())).booleanValue() && isRejectImmutable()) {
return false;
}
return TypeUtils.isAssignab... | public class class_name {
@Override
public boolean supports(TherianContext context, Copy<? extends SOURCE, ? extends TARGET> copy) {
if (context.eval(ImmutableCheck.of(copy.getTargetPosition())).booleanValue() && isRejectImmutable()) {
return false; // depends on control dependency: [if], data ... |
public class class_name {
@Override
public EClass getIfcCartesianTransformationOperator2D() {
if (ifcCartesianTransformationOperator2DEClass == null) {
ifcCartesianTransformationOperator2DEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(82);
}
re... | public class class_name {
@Override
public EClass getIfcCartesianTransformationOperator2D() {
if (ifcCartesianTransformationOperator2DEClass == null) {
ifcCartesianTransformationOperator2DEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(82);
// depend... |
public class class_name {
public static Set<Class> gatherAllBridgeTypes(Set<Class> set, Class leaf) {
set.add(leaf);
for (Class c : leaf.getInterfaces()) {
gatherAllBridgeTypes(set, c);
}
if ((leaf = leaf.getSuperclass()) != null) {
gatherAllBridgeTypes(set... | public class class_name {
public static Set<Class> gatherAllBridgeTypes(Set<Class> set, Class leaf) {
set.add(leaf);
for (Class c : leaf.getInterfaces()) {
gatherAllBridgeTypes(set, c);
// depends on control dependency: [for], data = [c]
}
if ((leaf = leaf.getSuperclass... |
public class class_name {
public String[] getClassnames() {
final Attributes attributes = getMainAttributes();
if (null == attributes) {
return null;
}
final String value = attributes.getValue(RUNDECK_PLUGIN_CLASSNAMES);
if (null == value) {
return null;
... | public class class_name {
public String[] getClassnames() {
final Attributes attributes = getMainAttributes();
if (null == attributes) {
return null; // depends on control dependency: [if], data = [none]
}
final String value = attributes.getValue(RUNDECK_PLUGIN_CLASSNAMES);
... |
public class class_name {
public static String formatParagraph(final String src, final int len, final boolean breakOnWhitespace) {
StringBuilder str = new StringBuilder();
int total = src.length();
int from = 0;
while (from < total) {
int to = from + len;
if (to >= total) {
to = total;
} else if (... | public class class_name {
public static String formatParagraph(final String src, final int len, final boolean breakOnWhitespace) {
StringBuilder str = new StringBuilder();
int total = src.length();
int from = 0;
while (from < total) {
int to = from + len;
if (to >= total) {
to = total; // depends on ... |
public class class_name {
public boolean sendMsgByName(String name, String msg) {
Account account = api.getAccountByName(name);
if (null == account) {
log.warn("找不到用户: {}", name);
return false;
}
return this.api.sendText(account.getUserName(), msg);
} } | public class class_name {
public boolean sendMsgByName(String name, String msg) {
Account account = api.getAccountByName(name);
if (null == account) {
log.warn("找不到用户: {}", name); // depends on control dependency: [if], data = [none]
return false; // depends on control dependenc... |
public class class_name {
void onSubFolderChange(Boolean value) {
List<I_CmsHistoryResource> historyResources;
try {
CmsObject cms = m_dialogContext.getCms();
historyResources = cms.readDeletedResources(cms.getSitePath(m_resource), value.booleanValue());
initDeleted... | public class class_name {
void onSubFolderChange(Boolean value) {
List<I_CmsHistoryResource> historyResources;
try {
CmsObject cms = m_dialogContext.getCms();
historyResources = cms.readDeletedResources(cms.getSitePath(m_resource), value.booleanValue()); // depends on control d... |
public class class_name {
public static int getBootstrapMaxThreads() {
// Base the bootstrap thread on proc count if not specified
int cpuCount = ProcessorInfo.availableProcessors();
int defaultThreads = cpuCount * 2;
String maxThreads = WildFlySecurityManager.getPropertyPrivileged(BOOT... | public class class_name {
public static int getBootstrapMaxThreads() {
// Base the bootstrap thread on proc count if not specified
int cpuCount = ProcessorInfo.availableProcessors();
int defaultThreads = cpuCount * 2;
String maxThreads = WildFlySecurityManager.getPropertyPrivileged(BOOT... |
public class class_name {
private Object doChainedInvocation(URI uri,
MultivaluedMap<String, String> headers,
OperationResourceInfo ori,
Object[] methodParams,
Obj... | public class class_name {
private Object doChainedInvocation(URI uri,
MultivaluedMap<String, String> headers,
OperationResourceInfo ori,
Object[] methodParams,
Obj... |
public class class_name {
public final void updateAAD(byte[] src, int offset, int len) {
checkCipherState();
// Input sanity check
if ((src == null) || (offset < 0) || (len < 0)
|| ((len + offset) > src.length)) {
throw new IllegalArgumentException("Bad arguments");... | public class class_name {
public final void updateAAD(byte[] src, int offset, int len) {
checkCipherState();
// Input sanity check
if ((src == null) || (offset < 0) || (len < 0)
|| ((len + offset) > src.length)) {
throw new IllegalArgumentException("Bad arguments");... |
public class class_name {
public List<SQLProperty> getForeignKeysToEntity(SQLiteEntity entity, String fieldName) {
List<SQLProperty> result = new ArrayList<>();
if (StringUtils.hasText(fieldName)) {
for (SQLProperty item : this.collection) {
if (item.isForeignKey() && entity.getName().equals(item.foreignPar... | public class class_name {
public List<SQLProperty> getForeignKeysToEntity(SQLiteEntity entity, String fieldName) {
List<SQLProperty> result = new ArrayList<>();
if (StringUtils.hasText(fieldName)) {
for (SQLProperty item : this.collection) {
if (item.isForeignKey() && entity.getName().equals(item.foreignPar... |
public class class_name {
public Path getPathInHar(Path path) {
Path harPath = new Path(path.toUri().getPath());
if (archivePath.compareTo(harPath) == 0)
return new Path(Path.SEPARATOR);
Path tmp = new Path(harPath.getName());
Path parent = harPath.getParent();
while (!(parent.compareTo(archi... | public class class_name {
public Path getPathInHar(Path path) {
Path harPath = new Path(path.toUri().getPath());
if (archivePath.compareTo(harPath) == 0)
return new Path(Path.SEPARATOR);
Path tmp = new Path(harPath.getName());
Path parent = harPath.getParent();
while (!(parent.compareTo(archi... |
public class class_name {
private static String translateSchema(String schemaLocation) {
if (OpenCms.getRepositoryManager() != null) {
return OpenCms.getResourceManager().getXsdTranslator().translateResource(schemaLocation);
}
return schemaLocation;
} } | public class class_name {
private static String translateSchema(String schemaLocation) {
if (OpenCms.getRepositoryManager() != null) {
return OpenCms.getResourceManager().getXsdTranslator().translateResource(schemaLocation); // depends on control dependency: [if], data = [none]
}
r... |
public class class_name {
public synchronized void start() {
// ggf. laufenden Thread beenden
stop();
this.thread = new Thread("Flicker Update-Thread") {
public void run() {
// Wir fangen beim ersten Halbbyte an.
halfbyteid = 0;
// D... | public class class_name {
public synchronized void start() {
// ggf. laufenden Thread beenden
stop();
this.thread = new Thread("Flicker Update-Thread") {
public void run() {
// Wir fangen beim ersten Halbbyte an.
halfbyteid = 0;
// D... |
public class class_name {
private List<String> fixSpaceInURL(List<String> values, int requiredSize) {
// Do validity check. 3rd from last is a date of 14 numeric
// characters. The 4th from last is IP, all before the IP
// should be concatenated together with a '%20' joiner.
// In the b... | public class class_name {
private List<String> fixSpaceInURL(List<String> values, int requiredSize) {
// Do validity check. 3rd from last is a date of 14 numeric
// characters. The 4th from last is IP, all before the IP
// should be concatenated together with a '%20' joiner.
// In the b... |
public class class_name {
public void addExplorerTypeSetting(CmsExplorerTypeSettings settings) {
m_explorerTypeSettingsFromXml.add(settings);
if (CmsLog.INIT.isInfoEnabled()) {
CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_ADD_TYPE_SETTING_1, settings.getName()));
}... | public class class_name {
public void addExplorerTypeSetting(CmsExplorerTypeSettings settings) {
m_explorerTypeSettingsFromXml.add(settings);
if (CmsLog.INIT.isInfoEnabled()) {
CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_ADD_TYPE_SETTING_1, settings.getName())); // depend... |
public class class_name {
public void setConfigurationSets(java.util.Collection<String> configurationSets) {
if (configurationSets == null) {
this.configurationSets = null;
return;
}
this.configurationSets = new java.util.ArrayList<String>(configurationSets);
} } | public class class_name {
public void setConfigurationSets(java.util.Collection<String> configurationSets) {
if (configurationSets == null) {
this.configurationSets = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
private void versionDependencyError(String message, String actual, String minimum) {
if (isSnapshot(actual) || isSnapshot(minimum)) {
LOGGER.log(WARNING, "Suppressing dependency error in {0} v{1}: {2}", new Object[] {getLongName(), getVersion(), message});
} else {... | public class class_name {
private void versionDependencyError(String message, String actual, String minimum) {
if (isSnapshot(actual) || isSnapshot(minimum)) {
LOGGER.log(WARNING, "Suppressing dependency error in {0} v{1}: {2}", new Object[] {getLongName(), getVersion(), message}); // depends on co... |
public class class_name {
public void doDelayedPostConstruct(Object obj) {
// after injection then PostConstruct annotated methods on the host object needs to be invoked.
// in WAS7 no RuntimeException is thrown at all, set THROW_POSTCONSTRUCT_EXCEPTION=false to reverse back to V7
Throwable t =... | public class class_name {
public void doDelayedPostConstruct(Object obj) {
// after injection then PostConstruct annotated methods on the host object needs to be invoked.
// in WAS7 no RuntimeException is thrown at all, set THROW_POSTCONSTRUCT_EXCEPTION=false to reverse back to V7
Throwable t =... |
public class class_name {
public CompoundCurve toCompoundCurveFromOptions(
MultiPolylineOptions multiPolylineOptions, boolean hasZ,
boolean hasM) {
CompoundCurve compoundCurve = new CompoundCurve(hasZ, hasM);
for (PolylineOptions polyline : multiPolylineOptions
... | public class class_name {
public CompoundCurve toCompoundCurveFromOptions(
MultiPolylineOptions multiPolylineOptions, boolean hasZ,
boolean hasM) {
CompoundCurve compoundCurve = new CompoundCurve(hasZ, hasM);
for (PolylineOptions polyline : multiPolylineOptions
... |
public class class_name {
public BeanId find(BeanId beanId)
{
BeanId[] buckets = this.ivBuckets;
BeanId element = buckets[(beanId.hashValue & 0x7FFFFFFF) % buckets.length];
if (element == null ||
!element.equals(beanId))
{
if (TraceComponent.isAnyTracingEnab... | public class class_name {
public BeanId find(BeanId beanId)
{
BeanId[] buckets = this.ivBuckets;
BeanId element = buckets[(beanId.hashValue & 0x7FFFFFFF) % buckets.length];
if (element == null ||
!element.equals(beanId))
{
if (TraceComponent.isAnyTracingEnab... |
public class class_name {
public ExecS_CliParser addAllOptions(ApplicationOption<?>[] options){
if(options!=null){
for(ApplicationOption<?> option : options){
this.addOption(option);
}
}
return this;
} } | public class class_name {
public ExecS_CliParser addAllOptions(ApplicationOption<?>[] options){
if(options!=null){
for(ApplicationOption<?> option : options){
this.addOption(option);
// depends on control dependency: [for], data = [option]
}
}
return this;
} } |
public class class_name {
private List<Data> loadAndGet(List<Data> keys) {
try {
Map entries = mapDataStore.loadAll(keys);
return getKeyValueSequence(entries);
} catch (Throwable t) {
logger.warning("Could not load keys from map store", t);
throw Exceptio... | public class class_name {
private List<Data> loadAndGet(List<Data> keys) {
try {
Map entries = mapDataStore.loadAll(keys);
return getKeyValueSequence(entries); // depends on control dependency: [try], data = [none]
} catch (Throwable t) {
logger.warning("Could not lo... |
public class class_name {
public String queryAttribute(String property) {
try {
Object oldValue = null;
if (property.charAt(0) == RpcConstants.HIDE_KEY_PREFIX) {
// 方法级配置 例如.echoStr.timeout
String methodAndP = property.substring(1);
int in... | public class class_name {
public String queryAttribute(String property) {
try {
Object oldValue = null;
if (property.charAt(0) == RpcConstants.HIDE_KEY_PREFIX) {
// 方法级配置 例如.echoStr.timeout
String methodAndP = property.substring(1);
int in... |
public class class_name {
protected CmsADEConfigDataInternal mergeConfigurations(List<CmsADEConfigDataInternal> configurations) {
if (configurations.isEmpty()) {
return new CmsADEConfigDataInternal(null);
}
for (int i = 0; i < (configurations.size() - 1); i++) {
configu... | public class class_name {
protected CmsADEConfigDataInternal mergeConfigurations(List<CmsADEConfigDataInternal> configurations) {
if (configurations.isEmpty()) {
return new CmsADEConfigDataInternal(null); // depends on control dependency: [if], data = [none]
}
for (int i = 0; i < (... |
public class class_name {
@Override
public ORecordIteratorCluster<REC> setLiveUpdated(boolean iLiveUpdated) {
super.setLiveUpdated(iLiveUpdated);
// SET THE RANGE LIMITS
if (iLiveUpdated) {
firstClusterEntry = 0L;
lastClusterEntry = Long.MAX_VALUE;
} else {
final long[] ra... | public class class_name {
@Override
public ORecordIteratorCluster<REC> setLiveUpdated(boolean iLiveUpdated) {
super.setLiveUpdated(iLiveUpdated);
// SET THE RANGE LIMITS
if (iLiveUpdated) {
firstClusterEntry = 0L;
// depends on control dependency: [if], data = [none]
lastClusterEntry ... |
public class class_name {
static public final String format1ForSource(String s) {
StringBuilder buffer = new StringBuilder();
buffer.append("\"");
for (int i=0; i<s.length();) {
char c = s.charAt(i++);
if (c < '\u0020' || c == '"' || c == '\\') {
if (c ==... | public class class_name {
static public final String format1ForSource(String s) {
StringBuilder buffer = new StringBuilder();
buffer.append("\"");
for (int i=0; i<s.length();) {
char c = s.charAt(i++);
if (c < '\u0020' || c == '"' || c == '\\') {
if (c ==... |
public class class_name {
private List<int[]> getPairPositionList(byte[] fingerprint) {
int numFrames = FingerprintManager.getNumFrames(fingerprint);
// table for paired frames
byte[] pairedFrameTable = new byte[numFrames / anchorPointsIntervalLength + 1]; // each second has numAnchorPointsPe... | public class class_name {
private List<int[]> getPairPositionList(byte[] fingerprint) {
int numFrames = FingerprintManager.getNumFrames(fingerprint);
// table for paired frames
byte[] pairedFrameTable = new byte[numFrames / anchorPointsIntervalLength + 1]; // each second has numAnchorPointsPe... |
public class class_name {
public static long between(Date s, Date e, long unit) {
Date start;
Date end;
if (s.before(e)) {
start = s;
end = e;
} else {
start = e;
end = s;
}
long diff = end.getTime() - start.get... | public class class_name {
public static long between(Date s, Date e, long unit) {
Date start;
Date end;
if (s.before(e)) {
start = s;
// depends on control dependency: [if], data = [none]
end = e;
// depends on control dependency: [if], data = [none]
} el... |
public class class_name {
public static String getTextValue(Element element) {
String ret = "";
String textContent = element.getTextContent();
if (textContent != null && !textContent.equals("")) {
ret = textContent;
} else if (element.hasAttribute("title")) {
ret... | public class class_name {
public static String getTextValue(Element element) {
String ret = "";
String textContent = element.getTextContent();
if (textContent != null && !textContent.equals("")) {
ret = textContent; // depends on control dependency: [if], data = [none]
} els... |
public class class_name {
@Override
public void close(VirtualConnection inVC, Exception e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "close(vc, e) called H2InboundLink: " + this + " " + inVC);
}
//At this point our side should be in the c... | public class class_name {
@Override
public void close(VirtualConnection inVC, Exception e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "close(vc, e) called H2InboundLink: " + this + " " + inVC); // depends on control dependency: [if], data = [none]
... |
public class class_name {
void collectDbStats(ArrayList<com.couchbase.lite.internal.database.sqlite.SQLiteDebug.DbStats> dbStatsList) {
// Get information about the main database.
int lookaside = nativeGetDbLookaside(mConnectionPtr);
long pageCount = 0;
long pageSize = 0;
try {
... | public class class_name {
void collectDbStats(ArrayList<com.couchbase.lite.internal.database.sqlite.SQLiteDebug.DbStats> dbStatsList) {
// Get information about the main database.
int lookaside = nativeGetDbLookaside(mConnectionPtr);
long pageCount = 0;
long pageSize = 0;
try {
... |
public class class_name {
public @NotNull FileAssert hasSameContentAs(@NotNull File expected) {
checkNotNull(expected);
isNotNull();
assertExists(actual).assertExists(expected);
try {
LineDiff[] diffs = comparator.compareContents(actual, expected);
if (!isNullOrEmpty(diffs)) {
fail(... | public class class_name {
public @NotNull FileAssert hasSameContentAs(@NotNull File expected) {
checkNotNull(expected);
isNotNull();
assertExists(actual).assertExists(expected);
try {
LineDiff[] diffs = comparator.compareContents(actual, expected);
if (!isNullOrEmpty(diffs)) {
fail(... |
public class class_name {
public EClass getGeometryData() {
if (geometryDataEClass == null) {
geometryDataEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(GeometryPackage.eNS_URI).getEClassifiers().get(4);
}
return geometryDataEClass;
} } | public class class_name {
public EClass getGeometryData() {
if (geometryDataEClass == null) {
geometryDataEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(GeometryPackage.eNS_URI).getEClassifiers().get(4);
// depends on control dependency: [if], data = [none]
}
return geometryDataEClass;
} } |
public class class_name {
public void setBugzillaURL(final String bugzillaURL) {
if (bugzillaURL == null && this.bugzillaURL == null) {
return;
} else if (bugzillaURL == null) {
removeChild(this.bugzillaURL);
this.bugzillaURL = null;
} else if (this.bugzillaU... | public class class_name {
public void setBugzillaURL(final String bugzillaURL) {
if (bugzillaURL == null && this.bugzillaURL == null) {
return; // depends on control dependency: [if], data = [none]
} else if (bugzillaURL == null) {
removeChild(this.bugzillaURL); // depends on co... |
public class class_name {
private String findAlias(String varName) {
if (aliases == null)
return varName;
String alias = aliases.get(varName);
if (alias == null) {
return varName;
}
return alias;
} } | public class class_name {
private String findAlias(String varName) {
if (aliases == null)
return varName;
String alias = aliases.get(varName);
if (alias == null) {
return varName; // depends on control dependency: [if], data = [none]
}
return alias;
} } |
public class class_name {
public static boolean isValid(@Nullable final String hourRange) {
if (hourRange == null) {
return true;
}
final int p = hourRange.indexOf('-');
if (p != 5) {
return false;
}
final String fromStr = hourRange.substring(0, 5... | public class class_name {
public static boolean isValid(@Nullable final String hourRange) {
if (hourRange == null) {
return true; // depends on control dependency: [if], data = [none]
}
final int p = hourRange.indexOf('-');
if (p != 5) {
return false; // depends ... |
public class class_name {
@Override
public long copyFileTo(OutputStream dest, long skip) throws FileNotFoundException, CopyFileToException {
ChannelSftp sftp;
Progress monitor;
try {
sftp = alloc();
monitor = new Progress();
try {
sftp.ge... | public class class_name {
@Override
public long copyFileTo(OutputStream dest, long skip) throws FileNotFoundException, CopyFileToException {
ChannelSftp sftp;
Progress monitor;
try {
sftp = alloc();
monitor = new Progress();
try {
sftp.ge... |
public class class_name {
protected boolean closeCamera() {
if( verbose )
Log.i(TAG,"closeCamera() activity="+getClass().getSimpleName());
if (Looper.getMainLooper().getThread() != Thread.currentThread()) {
throw new RuntimeException("Attempted to close camera not on the main looper thread!");
}
boolean... | public class class_name {
protected boolean closeCamera() {
if( verbose )
Log.i(TAG,"closeCamera() activity="+getClass().getSimpleName());
if (Looper.getMainLooper().getThread() != Thread.currentThread()) {
throw new RuntimeException("Attempted to close camera not on the main looper thread!");
}
boolean... |
public class class_name {
private static MethodDescriptor[] getMdescriptor() {
final MethodDescriptor[] methods = new MethodDescriptor[36];
try {
methods[METHOD_addAttribute0] =
new MethodDescriptor(DynamicMessage.Builder.class.getMethod("addAttribute", new Class[] {
java.lang.St... | public class class_name {
private static MethodDescriptor[] getMdescriptor() {
final MethodDescriptor[] methods = new MethodDescriptor[36];
try {
methods[METHOD_addAttribute0] =
new MethodDescriptor(DynamicMessage.Builder.class.getMethod("addAttribute", new Class[] {
java.lang.St... |
public class class_name {
@Override
public Location translate() {
if (this.location == null || this.location.isEmpty()) {
return Location.OUTLET;
}
Location result;
switch (this.location) {
case "Inlet":
result = Location.INLET;
... | public class class_name {
@Override
public Location translate() {
if (this.location == null || this.location.isEmpty()) {
return Location.OUTLET; // depends on control dependency: [if], data = [none]
}
Location result;
switch (this.location) {
case "Inlet":
... |
public class class_name {
static ParityFilePair verifyParity(FileStatus src, FileStatus parity,
Codec codec, Configuration conf, FileSystem destFs) throws IOException {
if (parity.getModificationTime() != src.getModificationTime()) {
return null;
}
int stripeLength = codec.stripeLength;
int... | public class class_name {
static ParityFilePair verifyParity(FileStatus src, FileStatus parity,
Codec codec, Configuration conf, FileSystem destFs) throws IOException {
if (parity.getModificationTime() != src.getModificationTime()) {
return null;
}
int stripeLength = codec.stripeLength;
int... |
public class class_name {
boolean containsClose() {
synchronized (reqQueueLockObject) {
for (ServerRequest req : queue) {
if (req != null &&
req.getRequestPath().equals(Defines.RequestPath.RegisterClose.getPath())) {
return true;
... | public class class_name {
boolean containsClose() {
synchronized (reqQueueLockObject) {
for (ServerRequest req : queue) {
if (req != null &&
req.getRequestPath().equals(Defines.RequestPath.RegisterClose.getPath())) {
return true; // depend... |
public class class_name {
public Binding<?> requestBinding(String key, Object requiredBy, ClassLoader classLoader,
boolean mustHaveInjections, boolean library) {
assertLockHeld();
Binding<?> binding = null;
for (Linker linker = this; linker != null; linker = linker.base) {
binding = linker.bin... | public class class_name {
public Binding<?> requestBinding(String key, Object requiredBy, ClassLoader classLoader,
boolean mustHaveInjections, boolean library) {
assertLockHeld();
Binding<?> binding = null;
for (Linker linker = this; linker != null; linker = linker.base) {
binding = linker.bin... |
public class class_name {
public int open(String url, int flags)
{
if (mOpenStream != null)
{
log.debug("attempting to open already open handler: {}",
mOpenStream);
return -1;
}
switch (flags)
{
case URL_RDWR:
log.debug("do not support read/write mode for Java ... | public class class_name {
public int open(String url, int flags)
{
if (mOpenStream != null)
{
log.debug("attempting to open already open handler: {}",
mOpenStream); // depends on control dependency: [if], data = [none]
return -1; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public boolean addConnection(String endpointId, int connectionId) {
boolean added = this.entries.put(endpointId, connectionId);
if (added && log.isDebugEnabled()) {
int left = this.entries.get(endpointId).size();
log.debug("Call " + getCallIdHex() + " r... | public class class_name {
public boolean addConnection(String endpointId, int connectionId) {
boolean added = this.entries.put(endpointId, connectionId);
if (added && log.isDebugEnabled()) {
int left = this.entries.get(endpointId).size();
log.debug("Call " + getCallIdHex() + " r... |
public class class_name {
public static int countNaN(double[] v) {
int c = 0;
for (double d : v) {
if (Double.isNaN(d)) {
c++;
}
}
return c;
} } | public class class_name {
public static int countNaN(double[] v) {
int c = 0;
for (double d : v) {
if (Double.isNaN(d)) {
c++;
// depends on control dependency: [if], data = [none]
}
}
return c;
} } |
public class class_name {
protected boolean hasOngoingTransaction() {
if(!isSupervisedMode()) {
return false;
} else {
if(ongoingTransactions != null) {
for (Transaction transaction : ongoingTransactions) {
if(TransactionState.CALLING.equals(transaction.getState()) ||
TransactionState.TRYING.e... | public class class_name {
protected boolean hasOngoingTransaction() {
if(!isSupervisedMode()) {
return false; // depends on control dependency: [if], data = [none]
} else {
if(ongoingTransactions != null) {
for (Transaction transaction : ongoingTransactions) {
if(TransactionState.CALLING.equals(tran... |
public class class_name {
private static int getCanonicalIndex(String s, boolean strict) {
int len = s.length();
if (len == 0) {
return -1;
}
int ch = s.charAt(0);
// verify that all are the same character
for (int i = 1; i < len; ++i) {
if (... | public class class_name {
private static int getCanonicalIndex(String s, boolean strict) {
int len = s.length();
if (len == 0) {
return -1; // depends on control dependency: [if], data = [none]
}
int ch = s.charAt(0);
// verify that all are the same character
... |
public class class_name {
private String convertRelativeURIToURL(String relativeURI)
{
if (relativeURI == null)
{
throw new IllegalStateException();
}
else
{
relativeURI = relativeURI.trim();
}
// If the passed URI contains "://" bef... | public class class_name {
private String convertRelativeURIToURL(String relativeURI)
{
if (relativeURI == null)
{
throw new IllegalStateException();
}
else
{
relativeURI = relativeURI.trim(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public java.util.List<Subscription> getSubscriptions() {
if (subscriptions == null) {
subscriptions = new com.amazonaws.internal.SdkInternalList<Subscription>();
}
return subscriptions;
} } | public class class_name {
public java.util.List<Subscription> getSubscriptions() {
if (subscriptions == null) {
subscriptions = new com.amazonaws.internal.SdkInternalList<Subscription>(); // depends on control dependency: [if], data = [none]
}
return subscriptions;
} } |
public class class_name {
public static double JensenShannonDivergence(SparseArray x, double[] y) {
if (x.isEmpty()) {
throw new IllegalArgumentException("List x is empty.");
}
Iterator<SparseArray.Entry> iter = x.iterator();
double js = 0.0;
while (iter.hasNext())... | public class class_name {
public static double JensenShannonDivergence(SparseArray x, double[] y) {
if (x.isEmpty()) {
throw new IllegalArgumentException("List x is empty.");
}
Iterator<SparseArray.Entry> iter = x.iterator();
double js = 0.0;
while (iter.hasNext())... |
public class class_name {
public void marshall(LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails, ProtocolMarshaller protocolMarshaller) {
if (lambdaFunctionScheduledEventDetails == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails, ProtocolMarshaller protocolMarshaller) {
if (lambdaFunctionScheduledEventDetails == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
private Schema flatten(Schema schema, boolean shouldPopulateLineage, boolean flattenComplexTypes) {
Schema flattenedSchema;
// Process all Schema Types
// (Primitives are simply cloned)
switch (schema.getType()) {
case ARRAY:
// Array might be an array of recurs... | public class class_name {
private Schema flatten(Schema schema, boolean shouldPopulateLineage, boolean flattenComplexTypes) {
Schema flattenedSchema;
// Process all Schema Types
// (Primitives are simply cloned)
switch (schema.getType()) {
case ARRAY:
// Array might be an array of recurs... |
public class class_name {
private List<TaskTrackerAction> getMapCompletionTasks(
TaskTrackerStatus status,
List<TaskTrackerAction> tasksToKill) {
boolean loggingEnabled = LOG.isDebugEnabled();
// Build up the list of tasks about to be killed
Set<TaskAttemptID> killedTasks = new HashSet<Ta... | public class class_name {
private List<TaskTrackerAction> getMapCompletionTasks(
TaskTrackerStatus status,
List<TaskTrackerAction> tasksToKill) {
boolean loggingEnabled = LOG.isDebugEnabled();
// Build up the list of tasks about to be killed
Set<TaskAttemptID> killedTasks = new HashSet<Ta... |
public class class_name {
public void onDestroy(boolean isSaved) {
EventBus.getDefault().unregister(this);
for (RTEditText editor : mEditors.values()) {
editor.unregister();
editor.onDestroy(isSaved);
}
mEditors.clear();
for (RTToolbar toolbar : mToolba... | public class class_name {
public void onDestroy(boolean isSaved) {
EventBus.getDefault().unregister(this);
for (RTEditText editor : mEditors.values()) {
editor.unregister(); // depends on control dependency: [for], data = [editor]
editor.onDestroy(isSaved); // depends on contro... |
public class class_name {
private void readRelationships(Project gpProject)
{
for (net.sf.mpxj.ganttproject.schema.Task gpTask : gpProject.getTasks().getTask())
{
readRelationships(gpTask);
}
} } | public class class_name {
private void readRelationships(Project gpProject)
{
for (net.sf.mpxj.ganttproject.schema.Task gpTask : gpProject.getTasks().getTask())
{
readRelationships(gpTask); // depends on control dependency: [for], data = [gpTask]
}
} } |
public class class_name {
private void deleteAllWebserverConfigs(final String prefix) {
File file = new File(m_targetPath);
if (file.exists() && file.isDirectory()) {
File[] configFiles = file.listFiles(new FilenameFilter() {
/**
* @see java.io.FilenameFil... | public class class_name {
private void deleteAllWebserverConfigs(final String prefix) {
File file = new File(m_targetPath);
if (file.exists() && file.isDirectory()) {
File[] configFiles = file.listFiles(new FilenameFilter() {
/**
* @see java.io.FilenameFil... |
public class class_name {
public void marshall(UpdateShardCountRequest updateShardCountRequest, ProtocolMarshaller protocolMarshaller) {
if (updateShardCountRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(UpdateShardCountRequest updateShardCountRequest, ProtocolMarshaller protocolMarshaller) {
if (updateShardCountRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public static Application getApplicationFromSource(final File _versionFile,
final List<String> _classpathElements,
final File _eFapsDir,
... | public class class_name {
public static Application getApplicationFromSource(final File _versionFile,
final List<String> _classpathElements,
final File _eFapsDir,
... |
public class class_name {
public static boolean compareAnnotatedTypes(AnnotatedType<?> t1, AnnotatedType<?> t2) {
if (!t1.getJavaClass().equals(t2.getJavaClass())) {
return false;
}
if (!compareAnnotated(t1, t2)) {
return false;
}
if (t1.getFields().size... | public class class_name {
public static boolean compareAnnotatedTypes(AnnotatedType<?> t1, AnnotatedType<?> t2) {
if (!t1.getJavaClass().equals(t2.getJavaClass())) {
return false; // depends on control dependency: [if], data = [none]
}
if (!compareAnnotated(t1, t2)) {
re... |
public class class_name {
public void reorderBands( int ...order ) {
T[] bands = (T[]) Array.newInstance(type, order.length);
for (int i = 0; i < order.length; i++) {
bands[i] = this.bands[order[i]];
}
this.bands = bands;
} } | public class class_name {
public void reorderBands( int ...order ) {
T[] bands = (T[]) Array.newInstance(type, order.length);
for (int i = 0; i < order.length; i++) {
bands[i] = this.bands[order[i]]; // depends on control dependency: [for], data = [i]
}
this.bands = bands;
} } |
public class class_name {
private static String getCheckedValue(Control control)
{
if (control instanceof CheckableControl)
{
return ((CheckableControl) control).getCheckedValue();
}
return control.getValue();
} } | public class class_name {
private static String getCheckedValue(Control control)
{
if (control instanceof CheckableControl)
{
return ((CheckableControl) control).getCheckedValue(); // depends on control dependency: [if], data = [none]
}
return control.getValue();
} } |
public class class_name {
public static LongUnaryOperator longUnaryOperator(CheckedLongUnaryOperator operator, Consumer<Throwable> handler) {
return t -> {
try {
return operator.applyAsLong(t);
}
catch (Throwable e) {
handler.accept(e);
... | public class class_name {
public static LongUnaryOperator longUnaryOperator(CheckedLongUnaryOperator operator, Consumer<Throwable> handler) {
return t -> {
try {
return operator.applyAsLong(t); // depends on control dependency: [try], data = [none]
}
catch (T... |
public class class_name {
public void end(Mapping mapping) {
if (mapping == null) {
throw new IllegalArgumentException("Method argument mapping must not be null");
}
OngoingMappings ongoingMappings = this.ongoingMappings.get();
if (ongoingMappings != null) {
ongo... | public class class_name {
public void end(Mapping mapping) {
if (mapping == null) {
throw new IllegalArgumentException("Method argument mapping must not be null");
}
OngoingMappings ongoingMappings = this.ongoingMappings.get();
if (ongoingMappings != null) {
ongo... |
public class class_name {
private void verify() {
// Copy table defs to avoid ConcurrentModificationException if we add a table.
List<TableDefinition> definedTables = new ArrayList<>(m_tableMap.values());
for (TableDefinition tableDef : definedTables) {
// Copy field defs for sa... | public class class_name {
private void verify() {
// Copy table defs to avoid ConcurrentModificationException if we add a table.
List<TableDefinition> definedTables = new ArrayList<>(m_tableMap.values());
for (TableDefinition tableDef : definedTables) {
// Copy field defs for sa... |
public class class_name {
public boolean isRAEntityLinkNameReferenced(String raLinkName) {
if (raLinkName == null) {
throw new NullPointerException("null ra link name");
}
boolean b = false;
try {
b = transactionManager.requireTransaction();
for (ServiceID serviceID : componentRepositoryImpl.getServi... | public class class_name {
public boolean isRAEntityLinkNameReferenced(String raLinkName) {
if (raLinkName == null) {
throw new NullPointerException("null ra link name");
}
boolean b = false;
try {
b = transactionManager.requireTransaction(); // depends on control dependency: [try], data = [none]
for ... |
public class class_name {
public void marshall(ListInventoryEntriesRequest listInventoryEntriesRequest, ProtocolMarshaller protocolMarshaller) {
if (listInventoryEntriesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ListInventoryEntriesRequest listInventoryEntriesRequest, ProtocolMarshaller protocolMarshaller) {
if (listInventoryEntriesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public Map<Locator, MetricData> getDatapointsForRange(List<Locator> locators, Range range, Granularity gran) {
ListMultimap<ColumnFamily, Locator> locatorsByCF =
ArrayListMultimap.create();
Map<Locator, MetricData> results = new HashMap<Locator, MetricData>();
... | public class class_name {
public Map<Locator, MetricData> getDatapointsForRange(List<Locator> locators, Range range, Granularity gran) {
ListMultimap<ColumnFamily, Locator> locatorsByCF =
ArrayListMultimap.create();
Map<Locator, MetricData> results = new HashMap<Locator, MetricData>();
... |
public class class_name {
public FacesConfigApplicationType<FacesConfigType<T>> getOrCreateApplication()
{
List<Node> nodeList = childNode.get("application");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigApplicationTypeImpl<FacesConfigType<T>>(this, "application",... | public class class_name {
public FacesConfigApplicationType<FacesConfigType<T>> getOrCreateApplication()
{
List<Node> nodeList = childNode.get("application");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigApplicationTypeImpl<FacesConfigType<T>>(this, "application",... |
public class class_name {
private Set<String> variantsFor(String input) {
// Store current invocation's results
Set<String> variants = new HashSet<>();
Matcher m = regex.matcher(input);
boolean matches = m.matches();
if (!matches) {
// if the regex does not find an... | public class class_name {
private Set<String> variantsFor(String input) {
// Store current invocation's results
Set<String> variants = new HashSet<>();
Matcher m = regex.matcher(input);
boolean matches = m.matches();
if (!matches) {
// if the regex does not find an... |
public class class_name {
@Deprecated
public StringBuilder writeToBuilder(Bean bean, boolean rootType) {
try {
write(bean, rootType, this.builder);
} catch (IOException ex) {
throw new IllegalStateException(ex);
}
return builder;
} } | public class class_name {
@Deprecated
public StringBuilder writeToBuilder(Bean bean, boolean rootType) {
try {
write(bean, rootType, this.builder); // depends on control dependency: [try], data = [none]
} catch (IOException ex) {
throw new IllegalStateException(ex);
... |
public class class_name {
public long position() throws IOException {
ensureOpen();
synchronized (positionLock) {
long p = -1;
int ti = -1;
try {
begin();
ti = threads.add();
if (!isOpen())
return 0;... | public class class_name {
public long position() throws IOException {
ensureOpen();
synchronized (positionLock) {
long p = -1;
int ti = -1;
try {
begin(); // depends on control dependency: [try], data = [none]
ti = threads.add(); // de... |
public class class_name {
@SuppressWarnings({ "rawtypes", "unchecked" })
public static String join(final Map value, final String delim) {
if (value == null || value.isEmpty()) {
return "";
}
final StringBuilder buf = new StringBuilder();
for (final Iterator<Map.Entry<Str... | public class class_name {
@SuppressWarnings({ "rawtypes", "unchecked" })
public static String join(final Map value, final String delim) {
if (value == null || value.isEmpty()) {
return ""; // depends on control dependency: [if], data = [none]
}
final StringBuilder buf = new Stri... |
public class class_name {
public static void postorder(int parent[], int N, int post[], @Nullable IGrowArray gwork) {
if (parent.length < N)
throw new IllegalArgumentException("parent must be at least of length N");
if (post.length < N)
throw new IllegalArgumentException("post m... | public class class_name {
public static void postorder(int parent[], int N, int post[], @Nullable IGrowArray gwork) {
if (parent.length < N)
throw new IllegalArgumentException("parent must be at least of length N");
if (post.length < N)
throw new IllegalArgumentException("post m... |
public class class_name {
public void writeScript(AbstractRenderAppender sb)
{
assert(sb != null) : "The paramter 'sb' must not be null;";
if (_writeScript)
return;
_writeScript = true;
IScriptReporter sr = getParentScriptReporter();
if (sr != null) {
... | public class class_name {
public void writeScript(AbstractRenderAppender sb)
{
assert(sb != null) : "The paramter 'sb' must not be null;";
if (_writeScript)
return;
_writeScript = true;
IScriptReporter sr = getParentScriptReporter();
if (sr != null) {
... |
public class class_name {
private ResultSet generateKeysResultSet(final UpdateResult res) {
if (this.generatedKeysColumnIndexes == null &&
this.generatedKeysColumnNames == null) {
return res.generatedKeys.resultSet().withStatement(this);
} else if (this.generatedKeysColumnIndex... | public class class_name {
private ResultSet generateKeysResultSet(final UpdateResult res) {
if (this.generatedKeysColumnIndexes == null &&
this.generatedKeysColumnNames == null) {
return res.generatedKeys.resultSet().withStatement(this); // depends on control dependency: [if], data = [... |
public class class_name {
@Override
public BooleanExpression eq(T right) {
if (right instanceof RelationalPath) {
return primaryKeyOperation(Ops.EQ, primaryKey, ((RelationalPath) right).getPrimaryKey());
} else {
return super.eq(right);
}
} } | public class class_name {
@Override
public BooleanExpression eq(T right) {
if (right instanceof RelationalPath) {
return primaryKeyOperation(Ops.EQ, primaryKey, ((RelationalPath) right).getPrimaryKey()); // depends on control dependency: [if], data = [none]
} else {
return s... |
public class class_name {
public void setAssessmentRuns(java.util.Collection<AssessmentRun> assessmentRuns) {
if (assessmentRuns == null) {
this.assessmentRuns = null;
return;
}
this.assessmentRuns = new java.util.ArrayList<AssessmentRun>(assessmentRuns);
} } | public class class_name {
public void setAssessmentRuns(java.util.Collection<AssessmentRun> assessmentRuns) {
if (assessmentRuns == null) {
this.assessmentRuns = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private static Tile checkTile(MapTile map, ImageBuffer tileSprite, Integer sheet, int x, int y)
{
final int tw = map.getTileWidth();
final int th = map.getTileHeight();
final SpriteTiled tileSheet = map.getSheet(sheet);
final ImageBuffer sheetImage = tileSh... | public class class_name {
private static Tile checkTile(MapTile map, ImageBuffer tileSprite, Integer sheet, int x, int y)
{
final int tw = map.getTileWidth();
final int th = map.getTileHeight();
final SpriteTiled tileSheet = map.getSheet(sheet);
final ImageBuffer sheetImage = tileSh... |
public class class_name {
public void callChildVisitors(XSLTVisitor visitor, boolean callAttributes)
{
if(callAttributes && (null != m_selectExpression))
m_selectExpression.callVisitors(this, visitor);
int length = getSortElemCount();
for (int i = 0; i < length; i++)
{
getSortElem(i).c... | public class class_name {
public void callChildVisitors(XSLTVisitor visitor, boolean callAttributes)
{
if(callAttributes && (null != m_selectExpression))
m_selectExpression.callVisitors(this, visitor);
int length = getSortElemCount();
for (int i = 0; i < length; i++)
{
getSortElem(i).c... |
public class class_name {
public void init() {
if (incNestingCount() > 1) {
return;
}
SessionFactory sf = getSessionFactory();
if (sf == null) {
return;
}
if (TransactionSynchronizationManager.hasResource(sf)) {
// Do not modify the Se... | public class class_name {
public void init() {
if (incNestingCount() > 1) {
return; // depends on control dependency: [if], data = [none]
}
SessionFactory sf = getSessionFactory();
if (sf == null) {
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static String getDescription(String className, String methodName, Object[] args) throws ClassNotFoundException {
Class targetClass = Class.forName(className);
Method[] methods = targetClass.getMethods();
for (Method method : methods) {
if (method.get... | public class class_name {
public static String getDescription(String className, String methodName, Object[] args) throws ClassNotFoundException {
Class targetClass = Class.forName(className);
Method[] methods = targetClass.getMethods();
for (Method method : methods) {
if (method.get... |
public class class_name {
public void marshall(Problem problem, ProtocolMarshaller protocolMarshaller) {
if (problem == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(problem.getRun(), RUN_BINDING);... | public class class_name {
public void marshall(Problem problem, ProtocolMarshaller protocolMarshaller) {
if (problem == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(problem.getRun(), RUN_BINDING);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.