code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private SolrServer initCore(String coreName) {
try {
String uri = config.getString(null, "indexer", coreName, "uri");
if (uri == null) {
log.error("No URI provided for core: '{}'", coreName);
return null;
}
URI solrUri = new URI(uri);
CommonsHttpSolrServer thisCore = ... | public class class_name {
private SolrServer initCore(String coreName) {
try {
String uri = config.getString(null, "indexer", coreName, "uri");
if (uri == null) {
log.error("No URI provided for core: '{}'", coreName); // depends on control dependency: [if], data = [none]
return null; // depends on cont... |
public class class_name {
@Override
public void process(List<EllipseRotated_F64> ellipses , List<List<EllipsesIntoClusters.Node>> clusters ) {
foundGrids.reset();
for (int i = 0; i < clusters.size(); i++) {
List<EllipsesIntoClusters.Node> cluster = clusters.get(i);
int clusterSize = cluster.size();
if(... | public class class_name {
@Override
public void process(List<EllipseRotated_F64> ellipses , List<List<EllipsesIntoClusters.Node>> clusters ) {
foundGrids.reset();
for (int i = 0; i < clusters.size(); i++) {
List<EllipsesIntoClusters.Node> cluster = clusters.get(i);
int clusterSize = cluster.size();
if(... |
public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:52:47+02:00", comments = "JAXB RI v2.2.11")
public TypenHausKategorienTyp getObjektkategorie2() {
if (objektkategorie2 == null) {
return TypenHausKategorienTyp.KEINE_ANGABE;
} else {
... | public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:52:47+02:00", comments = "JAXB RI v2.2.11")
public TypenHausKategorienTyp getObjektkategorie2() {
if (objektkategorie2 == null) {
return TypenHausKategorienTyp.KEINE_ANGABE; // depends on control depe... |
public class class_name {
public static String wellFormedToFS(Part value) {
if (value == null) {
return LogicalValue.ANY.getAbbreviation();
}
return value.getAbbreviation();
} } | public class class_name {
public static String wellFormedToFS(Part value) {
if (value == null) {
return LogicalValue.ANY.getAbbreviation(); // depends on control dependency: [if], data = [none]
}
return value.getAbbreviation();
} } |
public class class_name {
private GribCollectionProto.Group writeGroupProto(Group g) {
GribCollectionProto.Group.Builder b = GribCollectionProto.Group.newBuilder();
b.setGds(writeGdsProto(g.gdss.getRawBytes(), g.gdss.getPredefinedGridDefinition()));
for (Grib1CollectionBuilder.VariableBag vbag : g.gribVa... | public class class_name {
private GribCollectionProto.Group writeGroupProto(Group g) {
GribCollectionProto.Group.Builder b = GribCollectionProto.Group.newBuilder();
b.setGds(writeGdsProto(g.gdss.getRawBytes(), g.gdss.getPredefinedGridDefinition()));
for (Grib1CollectionBuilder.VariableBag vbag : g.gribVa... |
public class class_name {
public static Method getRequiredMethod(Class type, String name, Class... argumentTypes) {
try {
return type.getDeclaredMethod(name, argumentTypes);
} catch (NoSuchMethodException e) {
return findMethod(type, name, argumentTypes)
.orElseT... | public class class_name {
public static Method getRequiredMethod(Class type, String name, Class... argumentTypes) {
try {
return type.getDeclaredMethod(name, argumentTypes); // depends on control dependency: [try], data = [none]
} catch (NoSuchMethodException e) {
return findMet... |
public class class_name {
@Override
public void doBootstrap(TransportClient client, Channel channel) {
SparkSaslClient saslClient = new SparkSaslClient(appId, secretKeyHolder, conf.saslEncryption());
try {
byte[] payload = saslClient.firstToken();
while (!saslClient.isComplete()) {
SaslM... | public class class_name {
@Override
public void doBootstrap(TransportClient client, Channel channel) {
SparkSaslClient saslClient = new SparkSaslClient(appId, secretKeyHolder, conf.saslEncryption());
try {
byte[] payload = saslClient.firstToken();
while (!saslClient.isComplete()) {
SaslM... |
public class class_name {
private Map<String, Macro> parsePredefinedUnitMacros(Map<String, Macro> configuredMacros) {
if (!ctorInProgress || (unitMacros != null)) {
throw new IllegalStateException("Preconditions for initial fill-out of predefinedUnitMacros were violated");
}
if (conf.getCompilationU... | public class class_name {
private Map<String, Macro> parsePredefinedUnitMacros(Map<String, Macro> configuredMacros) {
if (!ctorInProgress || (unitMacros != null)) {
throw new IllegalStateException("Preconditions for initial fill-out of predefinedUnitMacros were violated");
}
if (conf.getCompilationU... |
public class class_name {
private void lostConnection(final MemcachedNode node) {
queueReconnect(node);
for (ConnectionObserver observer : connObservers) {
observer.connectionLost(node.getSocketAddress());
}
} } | public class class_name {
private void lostConnection(final MemcachedNode node) {
queueReconnect(node);
for (ConnectionObserver observer : connObservers) {
observer.connectionLost(node.getSocketAddress()); // depends on control dependency: [for], data = [observer]
}
} } |
public class class_name {
public void setResourceAwsEc2InstanceKeyName(java.util.Collection<StringFilter> resourceAwsEc2InstanceKeyName) {
if (resourceAwsEc2InstanceKeyName == null) {
this.resourceAwsEc2InstanceKeyName = null;
return;
}
this.resourceAwsEc2InstanceKeyNam... | public class class_name {
public void setResourceAwsEc2InstanceKeyName(java.util.Collection<StringFilter> resourceAwsEc2InstanceKeyName) {
if (resourceAwsEc2InstanceKeyName == null) {
this.resourceAwsEc2InstanceKeyName = null; // depends on control dependency: [if], data = [none]
return... |
public class class_name {
private <R> R doWithWriteLock(Action<K, V, R> action) {
long stamp = sl.writeLock();
try {
return action.doWith(commonCache);
} finally {
sl.unlockWrite(stamp);
}
} } | public class class_name {
private <R> R doWithWriteLock(Action<K, V, R> action) {
long stamp = sl.writeLock();
try {
return action.doWith(commonCache); // depends on control dependency: [try], data = [none]
} finally {
sl.unlockWrite(stamp);
}
} } |
public class class_name {
@Override
void findReferencedClassNames(final Set<String> referencedClassNames) {
if (value != null) {
value.findReferencedClassNames(referencedClassNames);
}
} } | public class class_name {
@Override
void findReferencedClassNames(final Set<String> referencedClassNames) {
if (value != null) {
value.findReferencedClassNames(referencedClassNames); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private final int order() {
int order = count.incrementAndGet();
if ( order > Integer.MAX_VALUE - 100 ) {
count.set( 0 );
}
return order;
} } | public class class_name {
private final int order() {
int order = count.incrementAndGet();
if ( order > Integer.MAX_VALUE - 100 ) {
count.set( 0 ); // depends on control dependency: [if], data = [none]
}
return order;
} } |
public class class_name {
public <T> void put(Class<?> type, PrefabValueFactory<T> factory) {
if (type != null) {
cache.put(type.getName(), factory);
}
} } | public class class_name {
public <T> void put(Class<?> type, PrefabValueFactory<T> factory) {
if (type != null) {
cache.put(type.getName(), factory); // depends on control dependency: [if], data = [(type]
}
} } |
public class class_name {
private OWLClass getOWLClass(Object id) {
// Special cases top and bottom
if(NamedConcept.TOP.equals(id)) {
return owlFactory.getOWLThing();
} else if(NamedConcept.BOTTOM.equals(id)) {
return owlFactory.getOWLNothing();
} else {
... | public class class_name {
private OWLClass getOWLClass(Object id) {
// Special cases top and bottom
if(NamedConcept.TOP.equals(id)) {
return owlFactory.getOWLThing();
// depends on control dependency: [if], data = [none]
} else if(NamedConcept.BOTTOM.equals(id)) {
r... |
public class class_name {
public void sendOOBControlMessage(IProvider provider, OOBControlMessage oobCtrlMsg) {
for (IConsumer consumer : consumers) {
try {
consumer.onOOBControlMessage(provider, this, oobCtrlMsg);
} catch (Throwable t) {
log.error("excep... | public class class_name {
public void sendOOBControlMessage(IProvider provider, OOBControlMessage oobCtrlMsg) {
for (IConsumer consumer : consumers) {
try {
consumer.onOOBControlMessage(provider, this, oobCtrlMsg); // depends on control dependency: [try], data = [none]
}... |
public class class_name {
private void findUsedByContainerAnnotations(Component component, String typeName) {
try {
Class<?> type = getTypeRepository().loadClass(typeName);
UsedByContainer[] annotations = type.getAnnotationsByType(UsedByContainer.class);
for (UsedByContainer... | public class class_name {
private void findUsedByContainerAnnotations(Component component, String typeName) {
try {
Class<?> type = getTypeRepository().loadClass(typeName);
UsedByContainer[] annotations = type.getAnnotationsByType(UsedByContainer.class);
for (UsedByContainer... |
public class class_name {
public static Set<String> getCollateNames() {
final Set<String> types = new HashSet<String>();
final Iterator<OCollateFactory> ite = getCollateFactories();
while (ite.hasNext()) {
types.addAll(ite.next().getNames());
}
return types;
} } | public class class_name {
public static Set<String> getCollateNames() {
final Set<String> types = new HashSet<String>();
final Iterator<OCollateFactory> ite = getCollateFactories();
while (ite.hasNext()) {
types.addAll(ite.next().getNames());
// depends on control dependency: [while], data = [no... |
public class class_name {
boolean isEscaped() {
Scope hoistScope = null;
for (Reference ref : references) {
if (hoistScope == null) {
hoistScope = ref.getScope().getClosestHoistScope();
} else if (hoistScope != ref.getScope().getClosestHoistScope()) {
return true;
}
}
... | public class class_name {
boolean isEscaped() {
Scope hoistScope = null;
for (Reference ref : references) {
if (hoistScope == null) {
hoistScope = ref.getScope().getClosestHoistScope(); // depends on control dependency: [if], data = [none]
} else if (hoistScope != ref.getScope().getClosestH... |
public class class_name {
public void start() {
if (!started.compareAndSet(false, true)) {
return;
}
LOG.debug("Starting panel rendering and trying to open attached webcam");
starting = true;
if (updater == null) {
updater = new ImageUpdater();
}
updater.start();
try {
errored = !webcam.... | public class class_name {
public void start() {
if (!started.compareAndSet(false, true)) {
return; // depends on control dependency: [if], data = [none]
}
LOG.debug("Starting panel rendering and trying to open attached webcam");
starting = true;
if (updater == null) {
updater = new ImageUpdater(); ... |
public class class_name {
public AwsSecurityFindingFilters withRecommendationText(StringFilter... recommendationText) {
if (this.recommendationText == null) {
setRecommendationText(new java.util.ArrayList<StringFilter>(recommendationText.length));
}
for (StringFilter ele : recommend... | public class class_name {
public AwsSecurityFindingFilters withRecommendationText(StringFilter... recommendationText) {
if (this.recommendationText == null) {
setRecommendationText(new java.util.ArrayList<StringFilter>(recommendationText.length)); // depends on control dependency: [if], data = [non... |
public class class_name {
@Override
public final String getAsString(final FacesContext context,
final UIComponent component, final Object value) {
if (value == null) {
return "";
}
if (value instanceof String) {
return (String) value;
}
if (context == null || component == null) {
throw... | public class class_name {
@Override
public final String getAsString(final FacesContext context,
final UIComponent component, final Object value) {
if (value == null) {
return "";
// depends on control dependency: [if], data = [none]
}
if (value instanceof String) {
return (String) value;
// dep... |
public class class_name {
public static List<ImageFormat> getDefaultFormats() {
if (sAllDefaultFormats == null) {
List<ImageFormat> mDefaultFormats = new ArrayList<>(9);
mDefaultFormats.add(JPEG);
mDefaultFormats.add(PNG);
mDefaultFormats.add(GIF);
mDefaultFormats.add(BMP);
mDef... | public class class_name {
public static List<ImageFormat> getDefaultFormats() {
if (sAllDefaultFormats == null) {
List<ImageFormat> mDefaultFormats = new ArrayList<>(9);
mDefaultFormats.add(JPEG); // depends on control dependency: [if], data = [none]
mDefaultFormats.add(PNG); // depends on contro... |
public class class_name {
protected double updateEvaluationWindow(int index,int val){
int[] newEnsembleWindows = new int[this.ensembleWindows[index].length];
int wsize = (int)Math.min(this.evaluationSizeOption.getValue(),this.ensembleAges[index]+1);
int sum = 0;
for (int i = ... | public class class_name {
protected double updateEvaluationWindow(int index,int val){
int[] newEnsembleWindows = new int[this.ensembleWindows[index].length];
int wsize = (int)Math.min(this.evaluationSizeOption.getValue(),this.ensembleAges[index]+1);
int sum = 0;
for (int i = ... |
public class class_name {
public double[] getConfidenceInterval(final double alpha, final Map<?, Double> metricValuesPerDimension) {
SummaryStatistics differences = new SummaryStatistics();
for (Double d : metricValuesPerDimension.values()) {
differences.addValue(d);
}
retur... | public class class_name {
public double[] getConfidenceInterval(final double alpha, final Map<?, Double> metricValuesPerDimension) {
SummaryStatistics differences = new SummaryStatistics();
for (Double d : metricValuesPerDimension.values()) {
differences.addValue(d); // depends on control d... |
public class class_name {
private void overlapViews(int width) {
if (width == mWidth) {
return;
}
//remember this width so it is't processed twice
mWidth = width;
float percentage = calculatePercentage(width);
float alpha = percentage / 100;
mSmall... | public class class_name {
private void overlapViews(int width) {
if (width == mWidth) {
return; // depends on control dependency: [if], data = [none]
}
//remember this width so it is't processed twice
mWidth = width;
float percentage = calculatePercentage(width);
... |
public class class_name {
@Override
public String getValueAsString() {
Set<String> selected = getValue();
if (selected == null || selected.isEmpty()) {
return null;
}
StringBuilder stringValues = new StringBuilder();
boolean first = true;
for (String item : selected) {
if (!first) {
stringValu... | public class class_name {
@Override
public String getValueAsString() {
Set<String> selected = getValue();
if (selected == null || selected.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
StringBuilder stringValues = new StringBuilder();
boolean first = true;
for (Str... |
public class class_name {
public void setTriggers(java.util.Collection<Trigger> triggers) {
if (triggers == null) {
this.triggers = null;
return;
}
this.triggers = new java.util.ArrayList<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 {
private void esDelete(String index, String id) {
logger.debug("Deleting {}/{}", index, id);
if (!closed) {
esClient.delete(index, id);
} else {
logger.warn("trying to remove a file while closing crawler. Document [{}]/[{}] has been ignored", ind... | public class class_name {
private void esDelete(String index, String id) {
logger.debug("Deleting {}/{}", index, id);
if (!closed) {
esClient.delete(index, id); // depends on control dependency: [if], data = [none]
} else {
logger.warn("trying to remove a file while clos... |
public class class_name {
public long writeLogTo(long start, Writer w) throws IOException {
CountingOutputStream os = new CountingOutputStream(new WriterOutputStream(w));
try (Session f = source.open()) {
f.skip(start);
if (completed) {
// write everything till... | public class class_name {
public long writeLogTo(long start, Writer w) throws IOException {
CountingOutputStream os = new CountingOutputStream(new WriterOutputStream(w));
try (Session f = source.open()) {
f.skip(start);
if (completed) {
// write everything till... |
public class class_name {
@Override
public String getChangedProperties(WebAppSecurityConfig original) {
// Bail out if it is the same object, or if this isn't of the right type.
if (this == original) {
return "";
}
if (!(original instanceof WebAppSecurityConfigImpl)) {
... | public class class_name {
@Override
public String getChangedProperties(WebAppSecurityConfig original) {
// Bail out if it is the same object, or if this isn't of the right type.
if (this == original) {
return ""; // depends on control dependency: [if], data = [none]
}
if... |
public class class_name {
@Override
public void printStackTrace(java.io.PrintWriter pw) {
synchronized (pw) {
if (detail != null) {
detail.printStackTrace(pw);
}
super.printStackTrace(pw);
}
} } | public class class_name {
@Override
public void printStackTrace(java.io.PrintWriter pw) {
synchronized (pw) {
if (detail != null) {
detail.printStackTrace(pw); // depends on control dependency: [if], data = [none]
}
super.printStackTrace(pw);
}
} } |
public class class_name {
public ConfigParams getSection(String section) {
ConfigParams result = new ConfigParams();
String prefix = section + ".";
for (Map.Entry<String, String> entry : this.entrySet()) {
String key = entry.getKey();
// Prevents exception on the next line
if (key.length() < prefix.le... | public class class_name {
public ConfigParams getSection(String section) {
ConfigParams result = new ConfigParams();
String prefix = section + ".";
for (Map.Entry<String, String> entry : this.entrySet()) {
String key = entry.getKey();
// Prevents exception on the next line
if (key.length() < prefix.le... |
public class class_name {
public CloneStackRequest withCloneAppIds(String... cloneAppIds) {
if (this.cloneAppIds == null) {
setCloneAppIds(new com.amazonaws.internal.SdkInternalList<String>(cloneAppIds.length));
}
for (String ele : cloneAppIds) {
this.cloneAppIds.add(ele... | public class class_name {
public CloneStackRequest withCloneAppIds(String... cloneAppIds) {
if (this.cloneAppIds == null) {
setCloneAppIds(new com.amazonaws.internal.SdkInternalList<String>(cloneAppIds.length)); // depends on control dependency: [if], data = [none]
}
for (String ele... |
public class class_name {
public char[] allocSmallCBuffer(int minSize)
{
if (mCurrRecycler != null) {
char[] result = mCurrRecycler.getSmallCBuffer(minSize);
if (result != null) {
return result;
}
}
// Nope; no recycler, or it has no suita... | public class class_name {
public char[] allocSmallCBuffer(int minSize)
{
if (mCurrRecycler != null) {
char[] result = mCurrRecycler.getSmallCBuffer(minSize);
if (result != null) {
return result; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public int write(byte[] buf, int size)
{
if (mOpenStream == null ||
!(mOpenStream instanceof WritableByteChannel))
return -1;
try
{
WritableByteChannel channel = (WritableByteChannel) mOpenStream;
ByteBuffer buffer = ByteBuffer.allocate(size);
bu... | public class class_name {
public int write(byte[] buf, int size)
{
if (mOpenStream == null ||
!(mOpenStream instanceof WritableByteChannel))
return -1;
try
{
WritableByteChannel channel = (WritableByteChannel) mOpenStream;
ByteBuffer buffer = ByteBuffer.allocate(size);
bu... |
public class class_name {
public static List<IdRange> parseRangeSequence(String idRangeSequence) {
StringTokenizer tokenizer = new StringTokenizer(idRangeSequence, " ");
List<IdRange> ranges = new ArrayList<>();
while (tokenizer.hasMoreTokens()) {
ranges.add(parseRange(tokenizer... | public class class_name {
public static List<IdRange> parseRangeSequence(String idRangeSequence) {
StringTokenizer tokenizer = new StringTokenizer(idRangeSequence, " ");
List<IdRange> ranges = new ArrayList<>();
while (tokenizer.hasMoreTokens()) {
ranges.add(parseRange(tokenizer... |
public class class_name {
void addAggregateIndexes(Document doc)
{
Document old=aggregateIndexes.put(doc.get(FieldNames.UUID), doc);
if (old != null)
{
Util.disposeDocument(old);
}
} } | public class class_name {
void addAggregateIndexes(Document doc)
{
Document old=aggregateIndexes.put(doc.get(FieldNames.UUID), doc);
if (old != null)
{
Util.disposeDocument(old); // depends on control dependency: [if], data = [(old]
}
} } |
public class class_name {
protected void removeDestinationListener(DestinationListener destinationListener)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeDestinationListener", new Object[] { destinationListener });
synchronized (this)
... | public class class_name {
protected void removeDestinationListener(DestinationListener destinationListener)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeDestinationListener", new Object[] { destinationListener });
synchronized (this)
... |
public class class_name {
private void optimize(NavPath path) {
int pt = 0;
while (pt < path.length()-2) {
float sx = path.getX(pt);
float sy = path.getY(pt);
float nx = path.getX(pt+2);
float ny = path.getY(pt+2);
if (isClear(sx,sy,nx,ny,0.1f)) {
path.remove(pt+1);
} else {
pt++;
... | public class class_name {
private void optimize(NavPath path) {
int pt = 0;
while (pt < path.length()-2) {
float sx = path.getX(pt);
float sy = path.getY(pt);
float nx = path.getX(pt+2);
float ny = path.getY(pt+2);
if (isClear(sx,sy,nx,ny,0.1f)) {
path.remove(pt+1); // depends on control ... |
public class class_name {
private double checkScore()
{
int i, j, op, s;
double sco;
sco = 0;
op = 0;
s = 0;
i = B1;
j = B2;
while (i <= E1 && j <= E2) {
op = sapp0[s ++];
if (op == 0) {
sco += sij[i - 1][j - 1];
//if (debug)
//System.err.println(String.format("%d-%d %f\n"... | public class class_name {
private double checkScore()
{
int i, j, op, s;
double sco;
sco = 0;
op = 0;
s = 0;
i = B1;
j = B2;
while (i <= E1 && j <= E2) {
op = sapp0[s ++]; // depends on control dependency: [while], data = [none]
if (op == 0) {
sco += sij[i - 1][j - 1]; // depends o... |
public class class_name {
public MonetaryAmount parse(CharSequence text)
throws MonetaryParseException {
ParseContext ctx = new ParseContext(text);
try {
for (FormatToken token : this.positiveTokens) {
token.parse(ctx);
}
} catch (Exception e)... | public class class_name {
public MonetaryAmount parse(CharSequence text)
throws MonetaryParseException {
ParseContext ctx = new ParseContext(text);
try {
for (FormatToken token : this.positiveTokens) {
token.parse(ctx); // depends on control dependency: [for], da... |
public class class_name {
public static void indexDir(final Indexer indexer, final List<File> knownFiles, final File dir) {
final List<File> classes = Utils4J.pathsFiles(dir.getPath(), Utils4J::classFile);
for (final File file : classes) {
indexClassFile(indexer, knownFiles, file);
... | public class class_name {
public static void indexDir(final Indexer indexer, final List<File> knownFiles, final File dir) {
final List<File> classes = Utils4J.pathsFiles(dir.getPath(), Utils4J::classFile);
for (final File file : classes) {
indexClassFile(indexer, knownFiles, file); // depen... |
public class class_name {
public void setDestinations(java.util.Collection<InputDestinationRequest> destinations) {
if (destinations == null) {
this.destinations = null;
return;
}
this.destinations = new java.util.ArrayList<InputDestinationRequest>(destinations);
} ... | public class class_name {
public void setDestinations(java.util.Collection<InputDestinationRequest> destinations) {
if (destinations == null) {
this.destinations = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void addErrorMsgs(final Set<String> msgs) {
if (msgs != null) {
this._errorMsgs.addAll(msgs);
if (!msgs.isEmpty()) {
this._status = ValidationStatus.ERROR;
}
}
} } | public class class_name {
public void addErrorMsgs(final Set<String> msgs) {
if (msgs != null) {
this._errorMsgs.addAll(msgs); // depends on control dependency: [if], data = [(msgs]
if (!msgs.isEmpty()) {
this._status = ValidationStatus.ERROR; // depends on control dependency: [if], data = [non... |
public class class_name {
private static TransitionType getTransition(TransitionType a, TransitionType b, int ox, int oy)
{
final TransitionType type = getTransitionHorizontalVertical(a, b, ox, oy);
if (type != null)
{
return type;
}
return getTransitionDi... | public class class_name {
private static TransitionType getTransition(TransitionType a, TransitionType b, int ox, int oy)
{
final TransitionType type = getTransitionHorizontalVertical(a, b, ox, oy);
if (type != null)
{
return type;
// depends on control dependency: [if], d... |
public class class_name {
public static ConceptId getInstance(String id, Metadata metadata) {
List<Object> key = new ArrayList<>(1);
key.add(id);
ConceptId result = metadata.getFromConceptIdCache(key);
if (result != null) {
return result;
} else {
result ... | public class class_name {
public static ConceptId getInstance(String id, Metadata metadata) {
List<Object> key = new ArrayList<>(1);
key.add(id);
ConceptId result = metadata.getFromConceptIdCache(key);
if (result != null) {
return result; // depends on control dependency: [i... |
public class class_name {
public void putAllValues(Map<String, V> input) {
for (Map.Entry<String, V> entry : input.entrySet()) {
put(entry.getKey(), entry.getValue());
}
} } | public class class_name {
public void putAllValues(Map<String, V> input) {
for (Map.Entry<String, V> entry : input.entrySet()) {
put(entry.getKey(), entry.getValue()); // depends on control dependency: [for], data = [entry]
}
} } |
public class class_name {
public void marshall(AppliedTerminology appliedTerminology, ProtocolMarshaller protocolMarshaller) {
if (appliedTerminology == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(AppliedTerminology appliedTerminology, ProtocolMarshaller protocolMarshaller) {
if (appliedTerminology == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
@SuppressWarnings("checkstyle:all")
protected void generateAbstractBuilder() {
final TypeReference abstractBuilder = getAbstractBuilderImpl();
final TypeReference expressionBuilder = getExpressionBuilderImpl();
StringConcatenationClient content = new StringConcatenationClient() {
@O... | public class class_name {
@SuppressWarnings("checkstyle:all")
protected void generateAbstractBuilder() {
final TypeReference abstractBuilder = getAbstractBuilderImpl();
final TypeReference expressionBuilder = getExpressionBuilderImpl();
StringConcatenationClient content = new StringConcatenationClient() {
@O... |
public class class_name {
public final BELScriptParser.define_namespace_return define_namespace() throws RecognitionException {
BELScriptParser.define_namespace_return retval = new BELScriptParser.define_namespace_return();
retval.start = input.LT(1);
Object root_0 = null;
Token strin... | public class class_name {
public final BELScriptParser.define_namespace_return define_namespace() throws RecognitionException {
BELScriptParser.define_namespace_return retval = new BELScriptParser.define_namespace_return();
retval.start = input.LT(1);
Object root_0 = null;
Token strin... |
public class class_name {
@Override
public void shuffle(List<INDArray> arrays, Random rnd, List<int[]> dimensions) {
// no dimension - no shuffle
if (dimensions == null || dimensions.size() == 0)
throw new RuntimeException("Dimension can't be null or 0-length");
if (arrays == n... | public class class_name {
@Override
public void shuffle(List<INDArray> arrays, Random rnd, List<int[]> dimensions) {
// no dimension - no shuffle
if (dimensions == null || dimensions.size() == 0)
throw new RuntimeException("Dimension can't be null or 0-length");
if (arrays == n... |
public class class_name {
private void buildImplementedMethodList(boolean sort) {
List<Type> intfacs = Util.getAllInterfaces(classdoc, configuration, sort);
for (Iterator<Type> iter = intfacs.iterator(); iter.hasNext(); ) {
Type interfaceType = iter.next();
MethodDoc found = Uti... | public class class_name {
private void buildImplementedMethodList(boolean sort) {
List<Type> intfacs = Util.getAllInterfaces(classdoc, configuration, sort);
for (Iterator<Type> iter = intfacs.iterator(); iter.hasNext(); ) {
Type interfaceType = iter.next();
MethodDoc found = Uti... |
public class class_name {
private static Long getContentSize(final Node ds) {
try {
long size = 0L;
if (ds.hasNode(JCR_CONTENT)) {
final Node contentNode = ds.getNode(JCR_CONTENT);
if (contentNode.hasProperty(JCR_DATA)) {
size =
... | public class class_name {
private static Long getContentSize(final Node ds) {
try {
long size = 0L;
if (ds.hasNode(JCR_CONTENT)) {
final Node contentNode = ds.getNode(JCR_CONTENT);
if (contentNode.hasProperty(JCR_DATA)) {
size =
... |
public class class_name {
public static void addEnvVars( final EnvironmentConfigurable sshexecTask, final Map<String, Map<String, String>> dataContext) {
final Map<String, String> environment = generateEnvVarsFromContext(dataContext);
if (null != environment) {
for (final Map.Entry<String, ... | public class class_name {
public static void addEnvVars( final EnvironmentConfigurable sshexecTask, final Map<String, Map<String, String>> dataContext) {
final Map<String, String> environment = generateEnvVarsFromContext(dataContext);
if (null != environment) {
for (final Map.Entry<String, ... |
public class class_name {
public int dot(int[] other) {
int dot = 0;
for (int c = 0; c < used && indices[c] < other.length; c++) {
if (indices[c] > Integer.MAX_VALUE) {
break;
}
dot += values[c] * other[SafeCast.safeLongToInt(indices[c])];
}
... | public class class_name {
public int dot(int[] other) {
int dot = 0;
for (int c = 0; c < used && indices[c] < other.length; c++) {
if (indices[c] > Integer.MAX_VALUE) {
break;
}
dot += values[c] * other[SafeCast.safeLongToInt(indices[c])]; // depends ... |
public class class_name {
public void send(Object object) {
if (object instanceof File) {
file((File) object);
} else {
send(object, getContentType());
}
} } | public class class_name {
public void send(Object object) {
if (object instanceof File) {
file((File) object); // depends on control dependency: [if], data = [none]
} else {
send(object, getContentType()); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void marshall(TagFilter tagFilter, ProtocolMarshaller protocolMarshaller) {
if (tagFilter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(tagFilter.getTag(), TAG_B... | public class class_name {
public void marshall(TagFilter tagFilter, ProtocolMarshaller protocolMarshaller) {
if (tagFilter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(tagFilter.getTag(), TAG_B... |
public class class_name {
private long findMaxLen(long pLength) {
if (hasLength && left < pLength) {
return Math.max(left, 0);
}
else {
return Math.max(pLength, 0);
}
} } | public class class_name {
private long findMaxLen(long pLength) {
if (hasLength && left < pLength) {
return Math.max(left, 0); // depends on control dependency: [if], data = [none]
}
else {
return Math.max(pLength, 0); // depends on control dependency: [if], data = [none... |
public class class_name {
@Api
public void setVisible(boolean visible) {
if (visible != this.visible) {
this.visible = visible;
updateShowing(false);
handlerManager.fireEvent(new LayerShownEvent(this));
}
} } | public class class_name {
@Api
public void setVisible(boolean visible) {
if (visible != this.visible) {
this.visible = visible; // depends on control dependency: [if], data = [none]
updateShowing(false); // depends on control dependency: [if], data = [none]
handlerManager.fireEvent(new LayerShownEvent(this... |
public class class_name {
protected ArrayList<SIPNode> getReachableSIPNodeInfo(SipLoadBalancer balancer, ArrayList<SIPNode> info) {
InetAddress balancerAddr = balancer.getAddress();
if (balancerAddr.isLoopbackAddress()) {
return info;
}
ArrayList<SIPNode> rv = new ArrayList<SIPNode>();
for(SIPNode node: ... | public class class_name {
protected ArrayList<SIPNode> getReachableSIPNodeInfo(SipLoadBalancer balancer, ArrayList<SIPNode> info) {
InetAddress balancerAddr = balancer.getAddress();
if (balancerAddr.isLoopbackAddress()) {
return info; // depends on control dependency: [if], data = [none]
}
ArrayList<SIPNod... |
public class class_name {
private void updatePoint() {
clearImagePoint();
CmsPoint nativePoint;
if (m_focalPoint == null) {
CmsPoint cropCenter = getCropCenter();
nativePoint = cropCenter;
} else if (!getNativeCropRegion().contains(m_focalPoint)) {
r... | public class class_name {
private void updatePoint() {
clearImagePoint();
CmsPoint nativePoint;
if (m_focalPoint == null) {
CmsPoint cropCenter = getCropCenter();
nativePoint = cropCenter; // depends on control dependency: [if], data = [none]
} else if (!getNati... |
public class class_name {
public void setEveryWorkingDay(final boolean isEveryWorkingDay) {
if (m_model.isEveryWorkingDay() != isEveryWorkingDay) {
removeExceptionsOnChange(new Command() {
public void execute() {
m_model.setEveryWorkingDay(Boolean.valueOf(isEv... | public class class_name {
public void setEveryWorkingDay(final boolean isEveryWorkingDay) {
if (m_model.isEveryWorkingDay() != isEveryWorkingDay) {
removeExceptionsOnChange(new Command() {
public void execute() {
m_model.setEveryWorkingDay(Boolean.valueOf(isEv... |
public class class_name {
private RRFedNonFedBudgetDocument getRRFedNonFedBudget() {
RRFedNonFedBudgetDocument rrFedNonFedBudgetDocument = RRFedNonFedBudgetDocument.Factory.newInstance();
RRFedNonFedBudgetDocument.RRFedNonFedBudget fedNonFedBudget = RRFedNonFedBudgetDocument.RRFedNonFedBudget.Factory... | public class class_name {
private RRFedNonFedBudgetDocument getRRFedNonFedBudget() {
RRFedNonFedBudgetDocument rrFedNonFedBudgetDocument = RRFedNonFedBudgetDocument.Factory.newInstance();
RRFedNonFedBudgetDocument.RRFedNonFedBudget fedNonFedBudget = RRFedNonFedBudgetDocument.RRFedNonFedBudget.Factory... |
public class class_name {
private static String[] getAttributeValues(final RDNSequence rdnSequence, final AttributeType attribute) {
val values = new ArrayList<String>();
for (val rdn : rdnSequence.backward()) {
for (val attr : rdn.getAttributes()) {
if (attr.getType().equal... | public class class_name {
private static String[] getAttributeValues(final RDNSequence rdnSequence, final AttributeType attribute) {
val values = new ArrayList<String>();
for (val rdn : rdnSequence.backward()) {
for (val attr : rdn.getAttributes()) {
if (attr.getType().equal... |
public class class_name {
protected void entryRemoved (V entry)
{
if (entry != null) {
_size -= _sizer.computeSize(entry);
if (_remobs != null) {
_remobs.removedFromMap(this, entry);
}
}
} } | public class class_name {
protected void entryRemoved (V entry)
{
if (entry != null) {
_size -= _sizer.computeSize(entry); // depends on control dependency: [if], data = [(entry]
if (_remobs != null) {
_remobs.removedFromMap(this, entry); // depends on control depend... |
public class class_name {
private void handleInitiateResponseMessage(InitiateResponseMessage message)
{
//For mis-routed transactions, no update for truncation handle or duplicated counter
if (message.isMisrouted()){
m_mailbox.send(message.getInitiatorHSId(), message);
retur... | public class class_name {
private void handleInitiateResponseMessage(InitiateResponseMessage message)
{
//For mis-routed transactions, no update for truncation handle or duplicated counter
if (message.isMisrouted()){
m_mailbox.send(message.getInitiatorHSId(), message); // depends on con... |
public class class_name {
private void bindArray(final TransformContext transformContext, final Object values) {
int length = Array.getLength(values);
if (length == 0) {
throw new ParameterNotFoundRuntimeException("Parameter is not set. [" + expression + "]");
}
transformContext.addSqlPart("(?");
transfo... | public class class_name {
private void bindArray(final TransformContext transformContext, final Object values) {
int length = Array.getLength(values);
if (length == 0) {
throw new ParameterNotFoundRuntimeException("Parameter is not set. [" + expression + "]");
}
transformContext.addSqlPart("(?");
transfo... |
public class class_name {
private static void replaceWords(StringBuilder input, String[] words, String[] replaces, boolean ignoreCase) {
if (input == null || input.length()==0 || words == null ||
words.length == 0 || replaces == null || replaces.length == 0) {
return;
}
... | public class class_name {
private static void replaceWords(StringBuilder input, String[] words, String[] replaces, boolean ignoreCase) {
if (input == null || input.length()==0 || words == null ||
words.length == 0 || replaces == null || replaces.length == 0) {
return; // depends on ... |
public class class_name {
public static <T> T unmarshal(final JAXBContext ctx, final String xmlData, final XmlAdapter<?, ?>[] adapters) {
if (xmlData == null) {
return null;
}
return unmarshal(ctx, new StringReader(xmlData), adapters);
} } | public class class_name {
public static <T> T unmarshal(final JAXBContext ctx, final String xmlData, final XmlAdapter<?, ?>[] adapters) {
if (xmlData == null) {
return null; // depends on control dependency: [if], data = [none]
}
return unmarshal(ctx, new StringReader(xmlData), adap... |
public class class_name {
public void invert() {
final boolean isEventFirable = isEventFirable();
setEventFirable(false);
try {
final int count = this.roadSegments.getRoadSegmentCount();
// Invert the segments
this.roadSegments.invert();
// Invert the bus halts and their indexes.
final int middl... | public class class_name {
public void invert() {
final boolean isEventFirable = isEventFirable();
setEventFirable(false);
try {
final int count = this.roadSegments.getRoadSegmentCount();
// Invert the segments
this.roadSegments.invert(); // depends on control dependency: [try], data = [none]
// Inv... |
public class class_name {
private void locateNode(final String address, final Iterator<String> nodes, final Handler<AsyncResult<String>> doneHandler) {
if (nodes.hasNext()) {
final String node = nodes.next();
vertx.eventBus().sendWithTimeout(node, new JsonObject().putString("action", "ping"), 1000, new... | public class class_name {
private void locateNode(final String address, final Iterator<String> nodes, final Handler<AsyncResult<String>> doneHandler) {
if (nodes.hasNext()) {
final String node = nodes.next();
vertx.eventBus().sendWithTimeout(node, new JsonObject().putString("action", "ping"), 1000, new... |
public class class_name {
public boolean present() {
boolean isPresent = false;
try {
element.getWebElement().getText();
isPresent = true;
} catch (NoSuchElementException | StaleElementReferenceException e) {
log.info(e);
}
return isPresent;
... | public class class_name {
public boolean present() {
boolean isPresent = false;
try {
element.getWebElement().getText(); // depends on control dependency: [try], data = [none]
isPresent = true; // depends on control dependency: [try], data = [none]
} catch (NoSuchElement... |
public class class_name {
private void onSetComparatorType(CfDef cfDef, Properties cfProperties, StringBuilder builder)
{
String comparatorType = cfProperties.getProperty(CassandraConstants.COMPARATOR_TYPE);
if (comparatorType != null)
{
if (builder != null)
{
... | public class class_name {
private void onSetComparatorType(CfDef cfDef, Properties cfProperties, StringBuilder builder)
{
String comparatorType = cfProperties.getProperty(CassandraConstants.COMPARATOR_TYPE);
if (comparatorType != null)
{
if (builder != null)
{
... |
public class class_name {
private void appendAffix(StringBuffer buffer, String affixPattern,
String expAffix, boolean localized) {
if (affixPattern == null) {
appendAffix(buffer, expAffix, localized);
} else {
int i;
for (int pos=0; pos<a... | public class class_name {
private void appendAffix(StringBuffer buffer, String affixPattern,
String expAffix, boolean localized) {
if (affixPattern == null) {
appendAffix(buffer, expAffix, localized); // depends on control dependency: [if], data = [none]
} else ... |
public class class_name {
public void setClosure(String key, Closure closure) {
if (closures == null) {
closures = CollectionUtil.createHashMap(Const.INITIAL_CAPACITY);
}
closures.put(key, closure);
} } | public class class_name {
public void setClosure(String key, Closure closure) {
if (closures == null) {
closures = CollectionUtil.createHashMap(Const.INITIAL_CAPACITY); // depends on control dependency: [if], data = [none]
}
closures.put(key, closure);
} } |
public class class_name {
protected SignatureValidationConfiguration getSignatureValidationConfiguration() {
val config =
DefaultSecurityConfigurationBootstrap.buildDefaultSignatureValidationConfiguration();
val samlIdp = casProperties.getAuthn().getSamlIdp();
if (this.overrideBlac... | public class class_name {
protected SignatureValidationConfiguration getSignatureValidationConfiguration() {
val config =
DefaultSecurityConfigurationBootstrap.buildDefaultSignatureValidationConfiguration();
val samlIdp = casProperties.getAuthn().getSamlIdp();
if (this.overrideBlac... |
public class class_name {
public ListDomainNamesResult withDomainNames(DomainInfo... domainNames) {
if (this.domainNames == null) {
setDomainNames(new java.util.ArrayList<DomainInfo>(domainNames.length));
}
for (DomainInfo ele : domainNames) {
this.domainNames.add(ele);
... | public class class_name {
public ListDomainNamesResult withDomainNames(DomainInfo... domainNames) {
if (this.domainNames == null) {
setDomainNames(new java.util.ArrayList<DomainInfo>(domainNames.length)); // depends on control dependency: [if], data = [none]
}
for (DomainInfo ele : ... |
public class class_name {
private void initSocket() {
socket = new Socket();
try {
socket.setSoLinger(false, 0);
socket.setTcpNoDelay(true);
socket.setSoTimeout(timeout);
} catch (SocketException sx) {
LOGGER.error("Could not configure socket.", sx);
}
} } | public class class_name {
private void initSocket() {
socket = new Socket();
try {
socket.setSoLinger(false, 0); // depends on control dependency: [try], data = [none]
socket.setTcpNoDelay(true); // depends on control dependency: [try], data = [none]
socket.setSoTimeout(timeout); // depends o... |
public class class_name {
public final Object getEObject() {
String thisMethodName = "getEObject";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this);
SibTr.exit(tc, thisMethodName, _me);
}
return _me;
... | public class class_name {
public final Object getEObject() {
String thisMethodName = "getEObject";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, thisMethodName, this); // depends on control dependency: [if], data = [none]
SibTr.exit(tc, thi... |
public class class_name {
void emitContent(Location from, Location until, SourceHandler handler)
throws SAXException {
if (from.compareTo(until) >= 0) {
return;
}
int fromLine = from.getLine();
int untilLine = until.getLine();
Line line = getLine(fromLine... | public class class_name {
void emitContent(Location from, Location until, SourceHandler handler)
throws SAXException {
if (from.compareTo(until) >= 0) {
return;
}
int fromLine = from.getLine();
int untilLine = until.getLine();
Line line = getLine(fromLine... |
public class class_name {
public boolean isSkipURL(URI uri) {
if (patternSkipURL == null || uri == null) {
return false;
}
String sURI = uri.toString();
return patternSkipURL.matcher(sURI).find();
} } | public class class_name {
public boolean isSkipURL(URI uri) {
if (patternSkipURL == null || uri == null) {
return false; // depends on control dependency: [if], data = [none]
}
String sURI = uri.toString();
return patternSkipURL.matcher(sURI).find();
} } |
public class class_name {
@Override
public void processValidation(Object entity) {
// Si on ne doit pas evaluer cette annotation
if(!this.isProcessable()) {
// On sort
return;
}
// Le Type
ValidatorExpressionType type = this.getType();
// Si le type est null
if(type == n... | public class class_name {
@Override
public void processValidation(Object entity) {
// Si on ne doit pas evaluer cette annotation
if(!this.isProcessable()) {
// On sort
return;
// depends on control dependency: [if], data = [none]
}
// Le Type
ValidatorExpressionType type = this.ge... |
public class class_name {
public SimpleListHolder<T> getFlatUp() {
if (flatUp == null) {
flatUp = newSimpleListHolder(up_to_root, getSortProperty());
}
return flatUp;
} } | public class class_name {
public SimpleListHolder<T> getFlatUp() {
if (flatUp == null) {
flatUp = newSimpleListHolder(up_to_root, getSortProperty()); // depends on control dependency: [if], data = [none]
}
return flatUp;
} } |
public class class_name {
public DescribeScalingActivitiesRequest withActivityIds(String... activityIds) {
if (this.activityIds == null) {
setActivityIds(new com.amazonaws.internal.SdkInternalList<String>(activityIds.length));
}
for (String ele : activityIds) {
this.acti... | public class class_name {
public DescribeScalingActivitiesRequest withActivityIds(String... activityIds) {
if (this.activityIds == null) {
setActivityIds(new com.amazonaws.internal.SdkInternalList<String>(activityIds.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public List<DomainObjectType> getDomainObjectTypes() {
List<DomainObjectType> resultList = new ArrayList<DomainObjectType>();
GrNode infoNode = loadDomainInfoNode();
GrProperty prop = infoNode.getProperty(DomainInfoLabel2ClassProperty);
if (prop != null) {
@SuppressWarnings("u... | public class class_name {
public List<DomainObjectType> getDomainObjectTypes() {
List<DomainObjectType> resultList = new ArrayList<DomainObjectType>();
GrNode infoNode = loadDomainInfoNode();
GrProperty prop = infoNode.getProperty(DomainInfoLabel2ClassProperty);
if (prop != null) {
@SuppressWarnings("u... |
public class class_name {
@Override
public void registerStatsStorageListener(StatsStorageListener listener) {
if (!this.listeners.contains(listener)) {
this.listeners.add(listener);
}
} } | public class class_name {
@Override
public void registerStatsStorageListener(StatsStorageListener listener) {
if (!this.listeners.contains(listener)) {
this.listeners.add(listener); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private MessageType getReadSchema(MessageType fileSchema, Path filePath) {
RowTypeInfo fileTypeInfo = (RowTypeInfo) ParquetSchemaConverter.fromParquetType(fileSchema);
List<Type> types = new ArrayList<>();
for (int i = 0; i < fieldNames.length; ++i) {
String readFieldName = fieldName... | public class class_name {
private MessageType getReadSchema(MessageType fileSchema, Path filePath) {
RowTypeInfo fileTypeInfo = (RowTypeInfo) ParquetSchemaConverter.fromParquetType(fileSchema);
List<Type> types = new ArrayList<>();
for (int i = 0; i < fieldNames.length; ++i) {
String readFieldName = fieldName... |
public class class_name {
private void initializeBeamSearchChart(List<Object> terminals, BeamSearchCfgParseChart chart,
long[] treeEncodingOffsets) {
Variable terminalListValue = terminalVar.getOnlyVariable();
// Adding this to a tree key indicates that the tree is a terminal.
long terminalSignal = ... | public class class_name {
private void initializeBeamSearchChart(List<Object> terminals, BeamSearchCfgParseChart chart,
long[] treeEncodingOffsets) {
Variable terminalListValue = terminalVar.getOnlyVariable();
// Adding this to a tree key indicates that the tree is a terminal.
long terminalSignal = ... |
public class class_name {
protected boolean isUserInfoValid(String userInfoStr, String subClaim) {
String userInfoSubClaim = getUserInfoSubClaim(userInfoStr);
if (userInfoSubClaim == null || subClaim == null || userInfoSubClaim.compareTo(subClaim) != 0) {
Tr.error(tc, "USERINFO_INVALID", ne... | public class class_name {
protected boolean isUserInfoValid(String userInfoStr, String subClaim) {
String userInfoSubClaim = getUserInfoSubClaim(userInfoStr);
if (userInfoSubClaim == null || subClaim == null || userInfoSubClaim.compareTo(subClaim) != 0) {
Tr.error(tc, "USERINFO_INVALID", ne... |
public class class_name {
public static void removeValue(String registryName, String key) {
Sysprop registryObject = readRegistryObject(registryName);
if (registryObject == null || StringUtils.isBlank(key)) {
return;
}
if (registryObject.hasProperty(key)) {
registryObject.removeProperty(key);
CoreUtil... | public class class_name {
public static void removeValue(String registryName, String key) {
Sysprop registryObject = readRegistryObject(registryName);
if (registryObject == null || StringUtils.isBlank(key)) {
return; // depends on control dependency: [if], data = [none]
}
if (registryObject.hasProperty(key)... |
public class class_name {
public ISREInstall getSelectedSRE() {
if (this.enableSystemWideSelector && this.systemSREButton.getSelection()) {
return SARLRuntime.getDefaultSREInstall();
}
if (!this.projectProviderFactories.isEmpty() && this.projectSREButton.getSelection()) {
return retreiveProjectSRE();
}
... | public class class_name {
public ISREInstall getSelectedSRE() {
if (this.enableSystemWideSelector && this.systemSREButton.getSelection()) {
return SARLRuntime.getDefaultSREInstall(); // depends on control dependency: [if], data = [none]
}
if (!this.projectProviderFactories.isEmpty() && this.projectSREButton.g... |
public class class_name {
public static void swapCols(double[][] matrix, int col1, int col2) {
double temp = 0;
int rows = matrix.length;
double[] r = null;
for (int row = 0; row < rows; row++) {
r = matrix[row];
temp = r[col1];
r[col1] = r[col2];
r[col2] = temp;
}
} } | public class class_name {
public static void swapCols(double[][] matrix, int col1, int col2) {
double temp = 0;
int rows = matrix.length;
double[] r = null;
for (int row = 0; row < rows; row++) {
r = matrix[row]; // depends on control dependency: [for], data = [row]
temp = r[col1]; // depends on control ... |
public class class_name {
private void processInstanceContentEvent(InstancesContentEvent instContentEvent){
this.numBatches++;
this.contentEventList.add(instContentEvent);
if (this.numBatches == 1 || this.numBatches > 4){
this.processInstances(this.contentEventList.r... | public class class_name {
private void processInstanceContentEvent(InstancesContentEvent instContentEvent){
this.numBatches++;
this.contentEventList.add(instContentEvent);
if (this.numBatches == 1 || this.numBatches > 4){
this.processInstances(this.contentEventList.r... |
public class class_name {
public static void interleave(AudioFormat format, ByteBuffer[] ins, ByteBuffer outb) {
int bytesPerSample = format.getSampleSizeInBits() >> 3;
int bytesPerFrame = bytesPerSample * ins.length;
int max = 0;
for (int i = 0; i < ins.length; i++)
if (in... | public class class_name {
public static void interleave(AudioFormat format, ByteBuffer[] ins, ByteBuffer outb) {
int bytesPerSample = format.getSampleSizeInBits() >> 3;
int bytesPerFrame = bytesPerSample * ins.length;
int max = 0;
for (int i = 0; i < ins.length; i++)
if (in... |
public class class_name {
@Override
public QueryDefinition registerQuery(QueryDefinition queryDefinition) {
QueryDefinition result = null;
if (config.isRest()) {
Map<String, Object> valuesMap = new HashMap<String, Object>();
valuesMap.put(QUERY_NAME, queryDefinition.getName... | public class class_name {
@Override
public QueryDefinition registerQuery(QueryDefinition queryDefinition) {
QueryDefinition result = null;
if (config.isRest()) {
Map<String, Object> valuesMap = new HashMap<String, Object>();
valuesMap.put(QUERY_NAME, queryDefinition.getName... |
public class class_name {
private void populateMap(byte[] data, Integer previousItemOffset, Integer previousItemKey, Integer itemOffset)
{
if (previousItemOffset != null)
{
int itemSize = itemOffset.intValue() - previousItemOffset.intValue();
byte[] itemData = new byte[itemSize];
... | public class class_name {
private void populateMap(byte[] data, Integer previousItemOffset, Integer previousItemKey, Integer itemOffset)
{
if (previousItemOffset != null)
{
int itemSize = itemOffset.intValue() - previousItemOffset.intValue();
byte[] itemData = new byte[itemSize];
... |
public class class_name {
public HClient createClient(CassandraHost ch) {
if (log.isDebugEnabled()) {
log.debug("Creation of new client");
}
if (params == null)
return new HSaslThriftClient(ch, krbServicePrincipalName);
else
return new HSaslThriftClient(ch, krbServicePr... | public class class_name {
public HClient createClient(CassandraHost ch) {
if (log.isDebugEnabled()) {
log.debug("Creation of new client"); // depends on control dependency: [if], data = [none]
}
if (params == null)
return new HSaslThriftClient(ch, krbServicePrincipalName);
else... |
public class class_name {
public static IAtomContainerSet detect(IAtomContainer ac) {
IAtomContainerSet piSystemSet = ac.getBuilder().newInstance(IAtomContainerSet.class);
for (int i = 0; i < ac.getAtomCount(); i++) {
IAtom atom = ac.getAtom(i);
atom.setFlag(CDKConstants.VISITE... | public class class_name {
public static IAtomContainerSet detect(IAtomContainer ac) {
IAtomContainerSet piSystemSet = ac.getBuilder().newInstance(IAtomContainerSet.class);
for (int i = 0; i < ac.getAtomCount(); i++) {
IAtom atom = ac.getAtom(i);
atom.setFlag(CDKConstants.VISITE... |
public class class_name {
private static long hash(byte[] input) {
long hash = FNV1_INIT;
for (byte b : input) {
hash ^= b & 0xff;
hash *= FNV1_PRIME;
}
return hash;
} } | public class class_name {
private static long hash(byte[] input) {
long hash = FNV1_INIT;
for (byte b : input) {
hash ^= b & 0xff; // depends on control dependency: [for], data = [b]
hash *= FNV1_PRIME; // depends on control dependency: [for], data = [none]
}
return hash;
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.