code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private void parseStructuralVariationAttributes(String key, String value) {
if (key == null || value == null) {
return;
}
switch (key) {
case SVINSSEQ_INFO:
// Seen DELETIONS with this field set. Makes no sense
if... | public class class_name {
private void parseStructuralVariationAttributes(String key, String value) {
if (key == null || value == null) {
return; // depends on control dependency: [if], data = [none]
}
switch (key) {
case SVINSSEQ_INFO:
// Seen DELETIONS ... |
public class class_name {
public static RuntimeException onRejectedExecution(Throwable original,
@Nullable Subscription subscription,
@Nullable Throwable suppressed,
@Nullable Object dataSignal,
Context context) {
//we "cheat" to apply the special key for onRejectedExecution in onOperatorError
if (cont... | public class class_name {
public static RuntimeException onRejectedExecution(Throwable original,
@Nullable Subscription subscription,
@Nullable Throwable suppressed,
@Nullable Object dataSignal,
Context context) {
//we "cheat" to apply the special key for onRejectedExecution in onOperatorError
if (cont... |
public class class_name {
private boolean shouldCreateInverse(Relation forward) {
if (forward.isIntermediate()) {
AssociationDirection direction = forward.getMiddleEntity().getEntityConfig().getAssociationDirection();
ColumnConfig leftCc = forward.getMiddleToLeft().getFromAttribute().ge... | public class class_name {
private boolean shouldCreateInverse(Relation forward) {
if (forward.isIntermediate()) {
AssociationDirection direction = forward.getMiddleEntity().getEntityConfig().getAssociationDirection();
ColumnConfig leftCc = forward.getMiddleToLeft().getFromAttribute().ge... |
public class class_name {
public synchronized void shutdown() {
if (isActive()) {
// mark this as no longer running
setActive(false);
if (topicConnection != null) {
try {
topicConnection.close();
} catch (Exception e) {
// do nothing
}
topi... | public class class_name {
public synchronized void shutdown() {
if (isActive()) {
// mark this as no longer running
setActive(false); // depends on control dependency: [if], data = [none]
if (topicConnection != null) {
try {
topicConnection.close(); // depends on control de... |
public class class_name {
public void setLocationEngineRequest(@NonNull LocationEngineRequest locationEngineRequest) {
this.locationEngineRequest = locationEngineRequest;
if (isServiceAvailable()) {
navigationService.updateLocationEngineRequest(locationEngineRequest);
}
} } | public class class_name {
public void setLocationEngineRequest(@NonNull LocationEngineRequest locationEngineRequest) {
this.locationEngineRequest = locationEngineRequest;
if (isServiceAvailable()) {
navigationService.updateLocationEngineRequest(locationEngineRequest); // depends on control dependency: [... |
public class class_name {
public CompletableFuture<ExecutionResult> executeAsync(ExecutionInput executionInput) {
try {
log.debug("Executing request. operation name: '{}'. query: '{}'. variables '{}'", executionInput.getOperationName(), executionInput.getQuery(), executionInput.getVariables());
... | public class class_name {
public CompletableFuture<ExecutionResult> executeAsync(ExecutionInput executionInput) {
try {
log.debug("Executing request. operation name: '{}'. query: '{}'. variables '{}'", executionInput.getOperationName(), executionInput.getQuery(), executionInput.getVariables()); // ... |
public class class_name {
public static int safeMultiply(int a, int b)
{
if (a == 0 || b == 0) {
return 0;
}
long max = a < 0 == b < 0 ? Integer.MAX_VALUE : Integer.MIN_VALUE;
if ((b > 0 && b > max / a) || (b < 0 && b < max / a)) {
throw new ArithmeticException(
"Int overflow: " + a + " * " + b);
... | public class class_name {
public static int safeMultiply(int a, int b)
{
if (a == 0 || b == 0) {
return 0; // depends on control dependency: [if], data = [none]
}
long max = a < 0 == b < 0 ? Integer.MAX_VALUE : Integer.MIN_VALUE;
if ((b > 0 && b > max / a) || (b < 0 && b < max / a)) {
throw new Arithmet... |
public class class_name {
private static boolean assertManagedBeanClassValidity(final ClassInfo managedBeanClass) {
final short flags = managedBeanClass.flags();
final String className = managedBeanClass.name().toString();
// must *not* be an interface
if (Modifier.isInterface(flags)) {... | public class class_name {
private static boolean assertManagedBeanClassValidity(final ClassInfo managedBeanClass) {
final short flags = managedBeanClass.flags();
final String className = managedBeanClass.name().toString();
// must *not* be an interface
if (Modifier.isInterface(flags)) {... |
public class class_name {
public void marshall(ActionConfigurationProperty actionConfigurationProperty, ProtocolMarshaller protocolMarshaller) {
if (actionConfigurationProperty == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ActionConfigurationProperty actionConfigurationProperty, ProtocolMarshaller protocolMarshaller) {
if (actionConfigurationProperty == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static int birthdayCompare (@Nullable final LocalDate aDate1, @Nullable final LocalDate aDate2)
{
if (EqualsHelper.identityEqual (aDate1, aDate2))
return 0;
if (aDate1 == null)
return -1;
if (aDate2 == null)
return 1;
// first compare month
int ... | public class class_name {
public static int birthdayCompare (@Nullable final LocalDate aDate1, @Nullable final LocalDate aDate2)
{
if (EqualsHelper.identityEqual (aDate1, aDate2))
return 0;
if (aDate1 == null)
return -1;
if (aDate2 == null)
return 1;
// first compare month
int ... |
public class class_name {
public static CodecFactory getCodecFactory(Optional<String> codecName, Optional<String> deflateLevel) {
if (!codecName.isPresent()) {
return CodecFactory.deflateCodec(ConfigurationKeys.DEFAULT_DEFLATE_LEVEL);
} else if (codecName.get().equalsIgnoreCase(DataFileConstants.DEFLATE_... | public class class_name {
public static CodecFactory getCodecFactory(Optional<String> codecName, Optional<String> deflateLevel) {
if (!codecName.isPresent()) {
return CodecFactory.deflateCodec(ConfigurationKeys.DEFAULT_DEFLATE_LEVEL); // depends on control dependency: [if], data = [none]
} else if (codec... |
public class class_name {
public java.util.List<ResourcePolicy> getResourcePolicies() {
if (resourcePolicies == null) {
resourcePolicies = new com.amazonaws.internal.SdkInternalList<ResourcePolicy>();
}
return resourcePolicies;
} } | public class class_name {
public java.util.List<ResourcePolicy> getResourcePolicies() {
if (resourcePolicies == null) {
resourcePolicies = new com.amazonaws.internal.SdkInternalList<ResourcePolicy>(); // depends on control dependency: [if], data = [none]
}
return resourcePolicies;
... |
public class class_name {
public void statementGuaranteesDeterminism(boolean hasLimitOrOffset,
boolean order,
String contentDeterminismDetail) {
m_statementHasLimitOrOffset = hasLimitOrOffset;
m_statementIsOrd... | public class class_name {
public void statementGuaranteesDeterminism(boolean hasLimitOrOffset,
boolean order,
String contentDeterminismDetail) {
m_statementHasLimitOrOffset = hasLimitOrOffset;
m_statementIsOrd... |
public class class_name {
public void initRemoteStub(ObjectOutputStream daOut)
{
try {
daOut.writeUTF(fieldNameToCheck != null ? fieldNameToCheck : ProxyConstants.NULL);
daOut.writeObject(m_strToCompare);
daOut.writeUTF(m_strSeekSign);
this.writeField(daOut... | public class class_name {
public void initRemoteStub(ObjectOutputStream daOut)
{
try {
daOut.writeUTF(fieldNameToCheck != null ? fieldNameToCheck : ProxyConstants.NULL); // depends on control dependency: [try], data = [none]
daOut.writeObject(m_strToCompare); // depends on control... |
public class class_name {
public OutlierResult run(Database database, Relation<N> spatial, Relation<O> relation) {
final NeighborSetPredicate npred = getNeighborSetPredicateFactory().instantiate(database, spatial);
DistanceQuery<O> distFunc = getNonSpatialDistanceFunction().instantiate(relation);
Writable... | public class class_name {
public OutlierResult run(Database database, Relation<N> spatial, Relation<O> relation) {
final NeighborSetPredicate npred = getNeighborSetPredicateFactory().instantiate(database, spatial);
DistanceQuery<O> distFunc = getNonSpatialDistanceFunction().instantiate(relation);
Writable... |
public class class_name {
public void leave(DelegateExecution childExecution) {
DelegateExecution multiInstanceRootExecution = getMultiInstanceRootExecution(childExecution);
int nrOfInstances = getLoopVariable(multiInstanceRootExecution, NUMBER_OF_INSTANCES);
int loopCounter = getLoopVariable(childExecutio... | public class class_name {
public void leave(DelegateExecution childExecution) {
DelegateExecution multiInstanceRootExecution = getMultiInstanceRootExecution(childExecution);
int nrOfInstances = getLoopVariable(multiInstanceRootExecution, NUMBER_OF_INSTANCES);
int loopCounter = getLoopVariable(childExecutio... |
public class class_name {
boolean unregisterConnection(ConnectionManager cm, ConnectionListener cl, Object c)
{
if (clToC != null && clToC.get(cl) != null)
{
List<Object> l = clToC.get(cl);
return l.remove(c);
}
return false;
} } | public class class_name {
boolean unregisterConnection(ConnectionManager cm, ConnectionListener cl, Object c)
{
if (clToC != null && clToC.get(cl) != null)
{
List<Object> l = clToC.get(cl);
return l.remove(c); // depends on control dependency: [if], data = [none]
}
return ... |
public class class_name {
public static double rootMeansSquaredError(double[] real, double[] predicted) {
double ret = 0.0;
for (int i = 0; i < real.length; i++) {
ret += Math.pow((real[i] - predicted[i]), 2);
}
return Math.sqrt(ret / real.length);
} } | public class class_name {
public static double rootMeansSquaredError(double[] real, double[] predicted) {
double ret = 0.0;
for (int i = 0; i < real.length; i++) {
ret += Math.pow((real[i] - predicted[i]), 2); // depends on control dependency: [for], data = [i]
}
return Math... |
public class class_name {
public File[] getFiles() {
String path = mRequest.getParameter("path");
if (path == null) {
path = mApp.getInitParameter("defaultPath");
}
if (path == null) {
path = "/";
}
File activefile = new File(path);
if( ... | public class class_name {
public File[] getFiles() {
String path = mRequest.getParameter("path");
if (path == null) {
path = mApp.getInitParameter("defaultPath"); // depends on control dependency: [if], data = [none]
}
if (path == null) {
path = "/"; // depends ... |
public class class_name {
public String getCurrentStyle(Element elem, String name) {
name = hyphenize(name);
String propVal = getComputedStyle(elem, name);
if (CmsDomUtil.Style.opacity.name().equals(name) && ((propVal == null) || (propVal.trim().length() == 0))) {
propVal = "1";
... | public class class_name {
public String getCurrentStyle(Element elem, String name) {
name = hyphenize(name);
String propVal = getComputedStyle(elem, name);
if (CmsDomUtil.Style.opacity.name().equals(name) && ((propVal == null) || (propVal.trim().length() == 0))) {
propVal = "1"; //... |
public class class_name {
public static long pow(final long b, final long e) {
long base = b;
long exp = e;
long result = 1;
while (exp != 0) {
if ((exp & 1) != 0) {
result *= base;
}
exp >>>= 1;
base *= base;
}
return result;
} } | public class class_name {
public static long pow(final long b, final long e) {
long base = b;
long exp = e;
long result = 1;
while (exp != 0) {
if ((exp & 1) != 0) {
result *= base; // depends on control dependency: [if], data = [none]
}
exp >>>= 1; // depends on control dependency: [while], data... |
public class class_name {
public InputStream getInputStream() throws IOException, RepositoryException
{
final PipedInputStream pin = new PipedInputStream();
final PipedOutputStream pout = new PipedOutputStream(pin);
try
{
new Thread()
{
/*
* (non... | public class class_name {
public InputStream getInputStream() throws IOException, RepositoryException
{
final PipedInputStream pin = new PipedInputStream();
final PipedOutputStream pout = new PipedOutputStream(pin);
try
{
new Thread()
{
/*
* (non... |
public class class_name {
public INDArray[] eval(Map<String, INDArray> inputs) {
SameDiff execPipeline = dup();
List<DifferentialFunction> opExecAction = execPipeline.exec().getRight();
if (opExecAction.isEmpty())
throw new IllegalStateException("No ops found to execute.");
... | public class class_name {
public INDArray[] eval(Map<String, INDArray> inputs) {
SameDiff execPipeline = dup();
List<DifferentialFunction> opExecAction = execPipeline.exec().getRight();
if (opExecAction.isEmpty())
throw new IllegalStateException("No ops found to execute.");
... |
public class class_name {
public static void attach(Environment environment) {
Assert.isInstanceOf(ConfigurableEnvironment.class, environment);
MutablePropertySources sources = ((ConfigurableEnvironment) environment)
.getPropertySources();
PropertySource<?> attached = sources.get(ATTACHED_PROPERTY_SOURCE_NAM... | public class class_name {
public static void attach(Environment environment) {
Assert.isInstanceOf(ConfigurableEnvironment.class, environment);
MutablePropertySources sources = ((ConfigurableEnvironment) environment)
.getPropertySources();
PropertySource<?> attached = sources.get(ATTACHED_PROPERTY_SOURCE_NAM... |
public class class_name {
@Override
public long getStreamSegmentId(String streamSegmentName, boolean updateLastUsed) {
synchronized (this.lock) {
StreamSegmentMetadata metadata = this.metadataByName.getOrDefault(streamSegmentName, null);
if (updateLastUsed && metadata != null) {
... | public class class_name {
@Override
public long getStreamSegmentId(String streamSegmentName, boolean updateLastUsed) {
synchronized (this.lock) {
StreamSegmentMetadata metadata = this.metadataByName.getOrDefault(streamSegmentName, null);
if (updateLastUsed && metadata != null) {
... |
public class class_name {
public static Object getComponentInstance(String name, HttpServletRequest request) {
ServletContext sc = request.getSession().getServletContext();
ContainerWrapper containerWrapper = scf.findContainer(new ServletContextWrapper(sc));
if (!containerWrapper.isStart()) {
Debug.logErr... | public class class_name {
public static Object getComponentInstance(String name, HttpServletRequest request) {
ServletContext sc = request.getSession().getServletContext();
ContainerWrapper containerWrapper = scf.findContainer(new ServletContextWrapper(sc));
if (!containerWrapper.isStart()) {
Debug.logErr... |
public class class_name {
@Nonnull
public Word<I> canonicalNext(Alphabet<I> sigma) {
int len = length();
Object[] symbols = new Object[len];
writeToArray(0, symbols, 0, len);
int alphabetSize = sigma.size();
int i = 0;
boolean overflow = true;
for (I sym : ... | public class class_name {
@Nonnull
public Word<I> canonicalNext(Alphabet<I> sigma) {
int len = length();
Object[] symbols = new Object[len];
writeToArray(0, symbols, 0, len);
int alphabetSize = sigma.size();
int i = 0;
boolean overflow = true;
for (I sym : ... |
public class class_name {
@Override
public List<PropertyData> getReferencesData(String identifier, boolean skipVersionStorage)
throws RepositoryException
{
List<PropertyData> props = getReferencedPropertiesData(identifier);
if (skipVersionStorage)
{
List<PropertyData> result = n... | public class class_name {
@Override
public List<PropertyData> getReferencesData(String identifier, boolean skipVersionStorage)
throws RepositoryException
{
List<PropertyData> props = getReferencedPropertiesData(identifier);
if (skipVersionStorage)
{
List<PropertyData> result = n... |
public class class_name {
protected Logger getLogger() {
Logger l = this.logger;
if (l == null) {
l = LoggerFactory.getLogger(LOGGER_NAME);
this.logger = l;
}
return l;
} } | public class class_name {
protected Logger getLogger() {
Logger l = this.logger;
if (l == null) {
l = LoggerFactory.getLogger(LOGGER_NAME); // depends on control dependency: [if], data = [none]
this.logger = l; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public java.util.Map<String, String> getEncryptionContextSubset() {
if (encryptionContextSubset == null) {
encryptionContextSubset = new com.amazonaws.internal.SdkInternalMap<String, String>();
}
return encryptionContextSubset;
} } | public class class_name {
public java.util.Map<String, String> getEncryptionContextSubset() {
if (encryptionContextSubset == null) {
encryptionContextSubset = new com.amazonaws.internal.SdkInternalMap<String, String>(); // depends on control dependency: [if], data = [none]
}
return ... |
public class class_name {
static boolean requiresUnicodeUnescape(final char[] text, final int offset, final int len) {
if (text == null) {
return false;
}
final int max = (offset + len);
for (int i = offset; i < max; i++) {
final char c = text[i];
... | public class class_name {
static boolean requiresUnicodeUnescape(final char[] text, final int offset, final int len) {
if (text == null) {
return false; // depends on control dependency: [if], data = [none]
}
final int max = (offset + len);
for (int i = offset; i < max; i... |
public class class_name {
private void fireUpdated(Object source) {
for (int i=0;i<listeners.size();i++) {
((InputPanelListener) listeners.get(i)).valueUpdated(this);
}
} } | public class class_name {
private void fireUpdated(Object source) {
for (int i=0;i<listeners.size();i++) {
((InputPanelListener) listeners.get(i)).valueUpdated(this);
// depends on control dependency: [for], data = [i]
}
} } |
public class class_name {
@Override
public void publishData(Collection<? extends WorkUnitState> states) throws IOException {
LOG.info("Start publishing data");
int branches = this.state.getPropAsInt(ConfigurationKeys.FORK_BRANCHES_KEY, 1);
Set<String> emptiedDestTables = Sets.newHashSet();
final Con... | public class class_name {
@Override
public void publishData(Collection<? extends WorkUnitState> states) throws IOException {
LOG.info("Start publishing data");
int branches = this.state.getPropAsInt(ConfigurationKeys.FORK_BRANCHES_KEY, 1);
Set<String> emptiedDestTables = Sets.newHashSet();
final Con... |
public class class_name {
public void setSelectedInternalItem(User user) {
User internalUser = null;
int index = getIndexOf(user);
if (index != -1) {
internalUser = getElementAt(index);
} else if (getSize() > 0) {
internalUser = getElementAt(0);
}
setSelectedItemImpl(internalUser);
} } | public class class_name {
public void setSelectedInternalItem(User user) {
User internalUser = null;
int index = getIndexOf(user);
if (index != -1) {
internalUser = getElementAt(index); // depends on control dependency: [if], data = [(index]
} else if (getSize() > 0) {
internalUser = getElementAt(0); // ... |
public class class_name {
public boolean hasUnhandled() {
for(int i = 0; i < getNumEntries(); i++) {
boolean handled = getEntry(i).hasUnhandled();
if(handled) {
return true;
}
}
return false;
} } | public class class_name {
public boolean hasUnhandled() {
for(int i = 0; i < getNumEntries(); i++) {
boolean handled = getEntry(i).hasUnhandled();
if(handled) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
public static List getClasspathDirectories()
{
List directories = new ArrayList();
List components = getClasspathComponents();
for (Iterator i = components.iterator(); i.hasNext();)
{
String possibleDir = (String) i.next();
File file... | public class class_name {
public static List getClasspathDirectories()
{
List directories = new ArrayList();
List components = getClasspathComponents();
for (Iterator i = components.iterator(); i.hasNext();)
{
String possibleDir = (String) i.next();
File file... |
public class class_name {
public static void createIDs(IChemObject chemObject) {
if (chemObject == null) return;
resetCounters();
if (chemObject instanceof IAtomContainer) {
createIDsForAtomContainer((IAtomContainer) chemObject, null);
} else if (chemObject instanceof IAto... | public class class_name {
public static void createIDs(IChemObject chemObject) {
if (chemObject == null) return;
resetCounters();
if (chemObject instanceof IAtomContainer) {
createIDsForAtomContainer((IAtomContainer) chemObject, null); // depends on control dependency: [if], data ... |
public class class_name {
public I_CmsSessionStorageProvider getSessionStorageProvider() {
if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_sessionStorageProvider)) {
return new CmsDefaultSessionStorageProvider();
}
try {
I_CmsSessionStorageProvider sessionCacheProvider = (I... | public class class_name {
public I_CmsSessionStorageProvider getSessionStorageProvider() {
if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_sessionStorageProvider)) {
return new CmsDefaultSessionStorageProvider(); // depends on control dependency: [if], data = [none]
}
try {
... |
public class class_name {
public boolean parse(ByteBuffer buffer) {
while (buffer.hasRemaining()) {
switch (state) {
case LENGTH: {
int octet = buffer.get() & 0xFF;
length = (length << 8) + octet;
if (++cursor == 3) {
... | public class class_name {
public boolean parse(ByteBuffer buffer) {
while (buffer.hasRemaining()) {
switch (state) {
case LENGTH: {
int octet = buffer.get() & 0xFF;
length = (length << 8) + octet;
if (++cursor == 3) {
... |
public class class_name {
public void addReference(final String propertyName, final Collection<BeanId> refs) {
Preconditions.checkNotNull(refs);
Preconditions.checkNotNull(propertyName);
checkCircularReference(refs.toArray(new BeanId[refs.size()]));
List<BeanId> list = references.get(pr... | public class class_name {
public void addReference(final String propertyName, final Collection<BeanId> refs) {
Preconditions.checkNotNull(refs);
Preconditions.checkNotNull(propertyName);
checkCircularReference(refs.toArray(new BeanId[refs.size()]));
List<BeanId> list = references.get(pr... |
public class class_name {
Image fillImage() {
if (fillImage == null) {
CanvasImage image = platform.graphics().createImage(1, 1);
image.canvas().setFillColor(0xFFFFFFFF).fillRect(0, 0, image.width(), image.height());
fillImage = image;
}
return fillImage;
} } | public class class_name {
Image fillImage() {
if (fillImage == null) {
CanvasImage image = platform.graphics().createImage(1, 1);
image.canvas().setFillColor(0xFFFFFFFF).fillRect(0, 0, image.width(), image.height()); // depends on control dependency: [if], data = [none]
fillImage = image; // depe... |
public class class_name {
@Override
public boolean removeAttribute(String name) {
boolean success = false;
// begin update of shared object
beginUpdate();
try {
// try to remove attribute
success = so.removeAttribute(name);
} catch (Exception ... | public class class_name {
@Override
public boolean removeAttribute(String name) {
boolean success = false;
// begin update of shared object
beginUpdate();
try {
// try to remove attribute
success = so.removeAttribute(name);
// depends on control depen... |
public class class_name {
public boolean bind ()
{
// open our TCP listening ports
int successes = 0;
for (int port : _ports) {
try {
acceptConnections(port);
successes++;
} catch (IOException ioe) {
log.warning("Failur... | public class class_name {
public boolean bind ()
{
// open our TCP listening ports
int successes = 0;
for (int port : _ports) {
try {
acceptConnections(port); // depends on control dependency: [try], data = [none]
successes++; // depends on contro... |
public class class_name {
public static String createRegex(String value, boolean ignoreCase)
{
if (value == null)
{
throw new IllegalArgumentException("String cannot be null");
}
int len = value.length();
if (len == 0)
{
return "";
}
... | public class class_name {
public static String createRegex(String value, boolean ignoreCase)
{
if (value == null)
{
throw new IllegalArgumentException("String cannot be null");
}
int len = value.length();
if (len == 0)
{
return ""; // depends... |
public class class_name {
public String toXYZString() {
StringBuilder str = new StringBuilder();
for(int i=0;i<3;i++) { //for each row
boolean emptyRow = true;
double coef; // TODO work with rational numbers
// X
coef = matTransform.getElement(i, 0);
// Three cases for coef: zero, one, non-one
... | public class class_name {
public String toXYZString() {
StringBuilder str = new StringBuilder();
for(int i=0;i<3;i++) { //for each row
boolean emptyRow = true;
double coef; // TODO work with rational numbers
// X
coef = matTransform.getElement(i, 0); // depends on control dependency: [for], data = ... |
public class class_name {
private void addI18nListener() {
model.translationServiceProperty().addListener((observable, oldValue, newValue) -> {
if (oldValue != newValue) {
form.i18n(newValue);
newValue.addListener(categoryModel::updateGroupDescriptions);
if (!Objects.equals(breadCrumb... | public class class_name {
private void addI18nListener() {
model.translationServiceProperty().addListener((observable, oldValue, newValue) -> {
if (oldValue != newValue) {
form.i18n(newValue); // depends on control dependency: [if], data = [newValue)]
newValue.addListener(categoryModel::updat... |
public class class_name {
public I_CmsSearchDocument getDocument(int docId) {
try {
IndexSearcher searcher = getSearcher();
return new CmsLuceneDocument(searcher.doc(docId));
} catch (IOException e) {
// ignore, return null and assume document was not found
... | public class class_name {
public I_CmsSearchDocument getDocument(int docId) {
try {
IndexSearcher searcher = getSearcher();
return new CmsLuceneDocument(searcher.doc(docId)); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
// ignore,... |
public class class_name {
protected String fixOffset(String offsetColumn, String offset) {
com.sforce.soap.partner.Field sfdcField = getFieldMetadata(sobjectType, offsetColumn);
if (SobjectRecordCreator.DECIMAL_TYPES.contains(sfdcField.getType().toString())
&& offset.contains("E")) {
BigDecimal v... | public class class_name {
protected String fixOffset(String offsetColumn, String offset) {
com.sforce.soap.partner.Field sfdcField = getFieldMetadata(sobjectType, offsetColumn);
if (SobjectRecordCreator.DECIMAL_TYPES.contains(sfdcField.getType().toString())
&& offset.contains("E")) {
BigDecimal v... |
public class class_name {
public void setFleetSummaryList(java.util.Collection<FleetSummary> fleetSummaryList) {
if (fleetSummaryList == null) {
this.fleetSummaryList = null;
return;
}
this.fleetSummaryList = new java.util.ArrayList<FleetSummary>(fleetSummaryList);
... | public class class_name {
public void setFleetSummaryList(java.util.Collection<FleetSummary> fleetSummaryList) {
if (fleetSummaryList == null) {
this.fleetSummaryList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [no... |
public class class_name {
@Override
public $.Option<T> reduce($.Func2<T, T, T> accumulator) {
Iterator<T> itr = iterator();
if (!itr.hasNext()) {
return $.none();
}
T ret = itr.next();
while (itr.hasNext()) {
ret = accumulator.apply(ret, itr.next());
... | public class class_name {
@Override
public $.Option<T> reduce($.Func2<T, T, T> accumulator) {
Iterator<T> itr = iterator();
if (!itr.hasNext()) {
return $.none(); // depends on control dependency: [if], data = [none]
}
T ret = itr.next();
while (itr.hasNext()) {
... |
public class class_name {
public static Result<TokenResponse> getSignResult(SignRequest signRequest, String envTag) {
final AtomicReference<Result<TokenResponse>> reference = new AtomicReference<>();
final Http2Client client = Http2Client.getInstance();
final CountDownLatch latch = new CountDow... | public class class_name {
public static Result<TokenResponse> getSignResult(SignRequest signRequest, String envTag) {
final AtomicReference<Result<TokenResponse>> reference = new AtomicReference<>();
final Http2Client client = Http2Client.getInstance();
final CountDownLatch latch = new CountDow... |
public class class_name {
@Override
public boolean onCreatePanelMenu(int featureId, Menu menu) {
if (ActionBarSherlock.DEBUG) Log.d(TAG, "[onCreatePanelMenu] featureId: " + featureId + ", menu: " + menu);
if (featureId == Window.FEATURE_OPTIONS_PANEL) {
boolean result = onCreateOptions... | public class class_name {
@Override
public boolean onCreatePanelMenu(int featureId, Menu menu) {
if (ActionBarSherlock.DEBUG) Log.d(TAG, "[onCreatePanelMenu] featureId: " + featureId + ", menu: " + menu);
if (featureId == Window.FEATURE_OPTIONS_PANEL) {
boolean result = onCreateOptions... |
public class class_name {
public void wipeProperty(String propertyName)
{
if (propertyName != null)
{
propertyNames.remove(propertyName);
if (properties.containsKey(propertyName))
{
properties.remove(propertyName);
}
}
} } | public class class_name {
public void wipeProperty(String propertyName)
{
if (propertyName != null)
{
propertyNames.remove(propertyName); // depends on control dependency: [if], data = [(propertyName]
if (properties.containsKey(propertyName))
{
pr... |
public class class_name {
@Override
public void propagate(int evtmask) throws ContradictionException {
int min = 0;
int max = 0;
ISet nodes = g.getPotentialNodes();
for (int i : nodes) {
if (g.getMandSuccOrNeighOf(i).contains(i)) {
min++;
max++;
} else if (g.getPotSuccOrNeighOf(i).contains(i)) {... | public class class_name {
@Override
public void propagate(int evtmask) throws ContradictionException {
int min = 0;
int max = 0;
ISet nodes = g.getPotentialNodes();
for (int i : nodes) {
if (g.getMandSuccOrNeighOf(i).contains(i)) {
min++; // depends on control dependency: [if], data = [none]
max++;... |
public class class_name {
private void tryEliminateOptionalArgs(ArrayList<Node> refs) {
// Count the maximum number of arguments passed into this function all
// all points of the program.
int maxArgs = -1;
for (Node n : refs) {
if (ReferenceMap.isCallOrNewTarget(n)) {
int numArgs = 0;
... | public class class_name {
private void tryEliminateOptionalArgs(ArrayList<Node> refs) {
// Count the maximum number of arguments passed into this function all
// all points of the program.
int maxArgs = -1;
for (Node n : refs) {
if (ReferenceMap.isCallOrNewTarget(n)) {
int numArgs = 0;
... |
public class class_name {
public void removeLocalTx(Xid xid) {
EmbeddedTransaction tx = localTxTable.remove(xid);
if (trace) {
log.tracef("[%s] Removed tx=%s", xid, tx);
}
} } | public class class_name {
public void removeLocalTx(Xid xid) {
EmbeddedTransaction tx = localTxTable.remove(xid);
if (trace) {
log.tracef("[%s] Removed tx=%s", xid, tx); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void withConnection(StatementRunnable runnable, Object argument) {
Connection connection = null;
try{
connection = open();
runnable.run(connection, argument);
} catch (Throwable t) {
throw new Sql2oException("An error occurre... | public class class_name {
public void withConnection(StatementRunnable runnable, Object argument) {
Connection connection = null;
try{
connection = open(); // depends on control dependency: [try], data = [none]
runnable.run(connection, argument); // depends on control dependenc... |
public class class_name {
protected List<AccessControlEntry> readACLPermisions(String cid, Map<String, SortedSet<TempPropertyData>> properties)
throws SQLException, IllegalACLException, IOException
{
List<AccessControlEntry> naPermissions = new ArrayList<AccessControlEntry>();
Set<TempPropertyData... | public class class_name {
protected List<AccessControlEntry> readACLPermisions(String cid, Map<String, SortedSet<TempPropertyData>> properties)
throws SQLException, IllegalACLException, IOException
{
List<AccessControlEntry> naPermissions = new ArrayList<AccessControlEntry>();
Set<TempPropertyData... |
public class class_name {
public static List<UIUserSession> getUIUserSessions()
{
final List<UIUserSession> ret = new ArrayList<>();
final Collection<UserSession> userSessions = RegistryManager.getUserSessions();
for (final UserSession userSession : userSessions) {
ret.add(new U... | public class class_name {
public static List<UIUserSession> getUIUserSessions()
{
final List<UIUserSession> ret = new ArrayList<>();
final Collection<UserSession> userSessions = RegistryManager.getUserSessions();
for (final UserSession userSession : userSessions) {
ret.add(new U... |
public class class_name {
private boolean check( int x , int y , EdgeSegment parent , boolean match ) {
if( intensity.isInBounds(x,y) ) {
int index = intensity.getIndex(x,y);
if( intensity.data[index] >= lower ) {
intensity.data[index] = MARK_TRAVERSED;
if( !match ) {
Point2D_I32 p = queuePoint... | public class class_name {
private boolean check( int x , int y , EdgeSegment parent , boolean match ) {
if( intensity.isInBounds(x,y) ) {
int index = intensity.getIndex(x,y);
if( intensity.data[index] >= lower ) {
intensity.data[index] = MARK_TRAVERSED; // depends on control dependency: [if], data = [non... |
public class class_name {
@FFDCIgnore(Exception.class)
final void shutdownFramework() {
Tr.audit(tc, "httpChain.error.shutdown", name);
try {
Bundle bundle = bundleContext.getBundle(Constants.SYSTEM_BUNDLE_LOCATION);
if (bundle != null)
bundle.stop();
... | public class class_name {
@FFDCIgnore(Exception.class)
final void shutdownFramework() {
Tr.audit(tc, "httpChain.error.shutdown", name);
try {
Bundle bundle = bundleContext.getBundle(Constants.SYSTEM_BUNDLE_LOCATION);
if (bundle != null)
bundle.stop();
... |
public class class_name {
public static int flipToFill(ByteBuffer buffer) {
int position = buffer.position();
int limit = buffer.limit();
if (position == limit) {
buffer.position(0);
buffer.limit(buffer.capacity());
return 0;
}
int capacity =... | public class class_name {
public static int flipToFill(ByteBuffer buffer) {
int position = buffer.position();
int limit = buffer.limit();
if (position == limit) {
buffer.position(0); // depends on control dependency: [if], data = [none]
buffer.limit(buffer.capacity()); /... |
public class class_name {
@Override
public <T> Future<T> execute(final Executable<T> executable) {
final Promise<T> promise = Promise();
return execute(promise, () -> {
try {
executable.execute(promise);
// if the implementation didn't respond to the Prom... | public class class_name {
@Override
public <T> Future<T> execute(final Executable<T> executable) {
final Promise<T> promise = Promise();
return execute(promise, () -> {
try {
executable.execute(promise);
// if the implementation didn't respond to the Prom... |
public class class_name {
void chooseFirstProvider() {
if (spi != null) {
return;
}
synchronized (lock) {
if (spi != null) {
return;
}
/* Android-removed: this debugging mechanism is not used in Android.
if (debug != nu... | public class class_name {
void chooseFirstProvider() {
if (spi != null) {
return; // depends on control dependency: [if], data = [none]
}
synchronized (lock) {
if (spi != null) {
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Nullable
private String getPastTenseVerbSuggestion(String word) {
if (word.endsWith("e")) {
// strip trailing "e"
String wordStem = word.substring(0, word.length()-1);
try {
String lemma = baseForThirdPersonSingularVerb(wordStem);
if (lemma != null) {
... | public class class_name {
@Nullable
private String getPastTenseVerbSuggestion(String word) {
if (word.endsWith("e")) {
// strip trailing "e"
String wordStem = word.substring(0, word.length()-1);
try {
String lemma = baseForThirdPersonSingularVerb(wordStem);
if (lemma != null) {
... |
public class class_name {
@Override
public Properties createProperties() {
//Merge Properties file content with the filterConfig content.
final Properties merged = new Properties();
try {
final Properties props = newDefaultProperties();
if (props != null) {
merged.putAll(props);
... | public class class_name {
@Override
public Properties createProperties() {
//Merge Properties file content with the filterConfig content.
final Properties merged = new Properties();
try {
final Properties props = newDefaultProperties();
if (props != null) {
merged.putAll(props); // de... |
public class class_name {
public Object readValue(InputStream is, Class<Object> clazz) {
try {
return this.mapper.readValue(is, clazz);
}
catch (Exception e) {
LogFactory.getLog(JsonHandler.class).info("deserialize json to object", e);
return null;
}
} } | public class class_name {
public Object readValue(InputStream is, Class<Object> clazz) {
try {
return this.mapper.readValue(is, clazz); // depends on control dependency: [try], data = [none]
}
catch (Exception e) {
LogFactory.getLog(JsonHandler.class).info("deserialize json to object", e);
return null;
... |
public class class_name {
public void marshall(ListDeploymentInstancesRequest listDeploymentInstancesRequest, ProtocolMarshaller protocolMarshaller) {
if (listDeploymentInstancesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ListDeploymentInstancesRequest listDeploymentInstancesRequest, ProtocolMarshaller protocolMarshaller) {
if (listDeploymentInstancesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public ISymbol removeSymbol( CharSequence name )
{
for( int i = _stackScopes.size() - 1; i >= 0; i-- )
{
IScope scope = (IScope)_stackScopes.get( i );
Object symbol = scope.get( name );
if( symbol != null )
{
return (ISymbol)scope.remove( name );
... | public class class_name {
public ISymbol removeSymbol( CharSequence name )
{
for( int i = _stackScopes.size() - 1; i >= 0; i-- )
{
IScope scope = (IScope)_stackScopes.get( i );
Object symbol = scope.get( name );
if( symbol != null )
{
return (ISymbol)scope.remove( name ); // d... |
public class class_name {
public static double checkPostconditionD(
final double value,
final DoublePredicate predicate,
final DoubleFunction<String> describer)
{
final boolean ok;
try {
ok = predicate.test(value);
} catch (final Throwable e) {
throw failed(
e,
Dou... | public class class_name {
public static double checkPostconditionD(
final double value,
final DoublePredicate predicate,
final DoubleFunction<String> describer)
{
final boolean ok;
try {
ok = predicate.test(value); // depends on control dependency: [try], data = [none]
} catch (final Th... |
public class class_name {
public static <T> Supplier<T> once(final Supplier<T> function) {
return new Supplier<T>() {
private volatile boolean executed;
private T result;
@Override
public T get() {
if (!executed) {
executed = t... | public class class_name {
public static <T> Supplier<T> once(final Supplier<T> function) {
return new Supplier<T>() {
private volatile boolean executed;
private T result;
@Override
public T get() {
if (!executed) {
executed = t... |
public class class_name {
public static HttpHandler configureCompression(Compression compression,
HttpHandler httpHandler) {
if (compression == null || !compression.getEnabled()) {
return httpHandler;
}
ContentEncodingRepository repository = new ContentEncodingRepository();
repository.addEncodingHandler(... | public class class_name {
public static HttpHandler configureCompression(Compression compression,
HttpHandler httpHandler) {
if (compression == null || !compression.getEnabled()) {
return httpHandler; // depends on control dependency: [if], data = [none]
}
ContentEncodingRepository repository = new Content... |
public class class_name {
public static String displayType(String className, Object value) {
if (className == null) {
return null;
}
boolean array = false;
if (className.equals("[J")) {
array = true;
if (value == null) {
className = "unknown";
} else if (value instanceof boolean[]) {
classN... | public class class_name {
public static String displayType(String className, Object value) {
if (className == null) {
return null; // depends on control dependency: [if], data = [none]
}
boolean array = false;
if (className.equals("[J")) {
array = true; // depends on control dependency: [if], data = [non... |
public class class_name {
@PostMapping("/etl/{type}/{key}/{task}")
public EtlResult etl(@PathVariable String type, @PathVariable String key, @PathVariable String task,
@RequestParam(name = "params", required = false) String params) {
OuterAdapter adapter = loader.getExtension(type,... | public class class_name {
@PostMapping("/etl/{type}/{key}/{task}")
public EtlResult etl(@PathVariable String type, @PathVariable String key, @PathVariable String task,
@RequestParam(name = "params", required = false) String params) {
OuterAdapter adapter = loader.getExtension(type,... |
public class class_name {
public boolean registerConsumerSetMonitor(
ConnectionImpl connection,
DestinationHandler topicSpace,
SIBUuid12 topicSpaceUuid,
String discriminatorExpression,
String combinedExpression,
ConsumerSetChangeCallback callback,
boolean isWildcarded,
String wildcardS... | public class class_name {
public boolean registerConsumerSetMonitor(
ConnectionImpl connection,
DestinationHandler topicSpace,
SIBUuid12 topicSpaceUuid,
String discriminatorExpression,
String combinedExpression,
ConsumerSetChangeCallback callback,
boolean isWildcarded,
String wildcardS... |
public class class_name {
@Deprecated
@Override
MapMaker expireAfterWrite(long duration, TimeUnit unit) {
checkExpiration(duration, unit);
this.expireAfterWriteNanos = unit.toNanos(duration);
if (duration == 0 && this.nullRemovalCause == null) {
// SIZE trumps EXPIRED
this.nullRemovalCause ... | public class class_name {
@Deprecated
@Override
MapMaker expireAfterWrite(long duration, TimeUnit unit) {
checkExpiration(duration, unit);
this.expireAfterWriteNanos = unit.toNanos(duration);
if (duration == 0 && this.nullRemovalCause == null) {
// SIZE trumps EXPIRED
this.nullRemovalCause ... |
public class class_name {
public long unpackLong()
throws IOException
{
byte b = readByte();
if (Code.isFixInt(b)) {
return (long) b;
}
switch (b) {
case Code.UINT8: // unsigned int 8
byte u8 = readByte();
return (l... | public class class_name {
public long unpackLong()
throws IOException
{
byte b = readByte();
if (Code.isFixInt(b)) {
return (long) b;
}
switch (b) {
case Code.UINT8: // unsigned int 8
byte u8 = readByte();
return (l... |
public class class_name {
@Override
public PersistEntry[] list(String path) {
final String bk[] = split(path);
int substrLen = bk.length == 2 ? bk[1].length() : 0;
List<PersistEntry> results = new ArrayList<>();
try {
for (Blob b : storageProvider.getStorage().list(bk[0]).iterateAll()) {
... | public class class_name {
@Override
public PersistEntry[] list(String path) {
final String bk[] = split(path);
int substrLen = bk.length == 2 ? bk[1].length() : 0;
List<PersistEntry> results = new ArrayList<>();
try {
for (Blob b : storageProvider.getStorage().list(bk[0]).iterateAll()) {
... |
public class class_name {
public boolean getIsNew() {
String projectPath = getProjectPath();
if(projectPath == null) {
return true;
}
File projectDir = new File(projectPath);
if(!projectDir.exists()) {
return true;
}
File projectDescriptor = new File(projectPath + File.separator... | public class class_name {
public boolean getIsNew() {
String projectPath = getProjectPath();
if(projectPath == null) {
return true; // depends on control dependency: [if], data = [none]
}
File projectDir = new File(projectPath);
if(!projectDir.exists()) {
return true; // depends on cont... |
public class class_name {
public void addUniqueConstraint(UniqueConstraint uc) {
if (uc.isPrimaryKey()) {
if (pk != null)
throw new IllegalArgumentException("Duplicate PK " + pk + " " + uc);
pk = uc;
}
else {
if (pk != null)
if (uc.getAttributes().equals(pk.getAttributes()))
// ignore the u... | public class class_name {
public void addUniqueConstraint(UniqueConstraint uc) {
if (uc.isPrimaryKey()) {
if (pk != null)
throw new IllegalArgumentException("Duplicate PK " + pk + " " + uc);
pk = uc; // depends on control dependency: [if], data = [none]
}
else {
if (pk != null)
if (uc.getAttribu... |
public class class_name {
@SuppressWarnings ("unchecked")
protected <X> ASet<X> createInternal (Iterable<X> elements) {
AMap result = inner.clear ();
for (X el: elements) {
result = result.updated (el, Boolean.TRUE);
}
return (ASet) wrapAsSet (result);
} } | public class class_name {
@SuppressWarnings ("unchecked")
protected <X> ASet<X> createInternal (Iterable<X> elements) {
AMap result = inner.clear ();
for (X el: elements) {
result = result.updated (el, Boolean.TRUE); // depends on control dependency: [for], data = [el]
}
... |
public class class_name {
public static String getPath(Treenode item, boolean useLabels) {
StringBuilder sb = new StringBuilder();
boolean needsDelim = false;
while (item != null) {
if (needsDelim) {
sb.insert(0, '\\');
} else {
needsDeli... | public class class_name {
public static String getPath(Treenode item, boolean useLabels) {
StringBuilder sb = new StringBuilder();
boolean needsDelim = false;
while (item != null) {
if (needsDelim) {
sb.insert(0, '\\'); // depends on control dependency: [if], data =... |
public class class_name {
public List<ServiceRefHandlerType<ServiceRefType<T>>> getAllHandler()
{
List<ServiceRefHandlerType<ServiceRefType<T>>> list = new ArrayList<ServiceRefHandlerType<ServiceRefType<T>>>();
List<Node> nodeList = childNode.get("handler");
for(Node node: nodeList)
{
... | public class class_name {
public List<ServiceRefHandlerType<ServiceRefType<T>>> getAllHandler()
{
List<ServiceRefHandlerType<ServiceRefType<T>>> list = new ArrayList<ServiceRefHandlerType<ServiceRefType<T>>>();
List<Node> nodeList = childNode.get("handler");
for(Node node: nodeList)
{
... |
public class class_name {
public RequestInvoker resolve(Map<String, ?> templateValues) {
final Uri resolvedUri;
try {
resolvedUri = uriBuilder.build(templateValues);
} catch (Exception e) {
throw new IllegalArgumentException("Could not build the URI with the supplied tem... | public class class_name {
public RequestInvoker resolve(Map<String, ?> templateValues) {
final Uri resolvedUri;
try {
resolvedUri = uriBuilder.build(templateValues); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
throw new IllegalArgumentE... |
public class class_name {
private void lazyRefresh() {
Runnable pr = new Runnable() {
@Override
public void run() {
if(pendingRefresh.compareAndSet(this, null)) {
refresh();
}
}
};
pendingRefresh.set(pr);
scheduleUpdate(pr);
} } | public class class_name {
private void lazyRefresh() {
Runnable pr = new Runnable() {
@Override
public void run() {
if(pendingRefresh.compareAndSet(this, null)) {
refresh(); // depends on control dependency: [if], data = [none]
}
}
};
pendingRefresh.set(pr);
... |
public class class_name {
public static Map<String, Object> getAnnotationValueMap(AnnotatedElement annotationEle, Class<? extends Annotation> annotationType) throws UtilException {
final Annotation annotation = getAnnotation(annotationEle, annotationType);
if (null == annotation) {
return null;
}
fin... | public class class_name {
public static Map<String, Object> getAnnotationValueMap(AnnotatedElement annotationEle, Class<? extends Annotation> annotationType) throws UtilException {
final Annotation annotation = getAnnotation(annotationEle, annotationType);
if (null == annotation) {
return null;
}
fin... |
public class class_name {
public FlowStepRule createFlowStepViewRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.putJson(
... | public class class_name {
public FlowStepRule createFlowStepViewRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public String getJndiName() {
String returnValue = simpleJndiBindingName;
if ((returnValue == null) || (returnValue.equals(""))) {
returnValue = ivRemoteHomeJndiName;
if ((returnValue == null) || (returnValue.equals(""))) {
returnValue =... | public class class_name {
public String getJndiName() {
String returnValue = simpleJndiBindingName;
if ((returnValue == null) || (returnValue.equals(""))) {
returnValue = ivRemoteHomeJndiName; // depends on control dependency: [if], data = [none]
if ((returnValue == null) || (re... |
public class class_name {
@Override
protected void processNode(ArchivePath path, Node node) {
// Get path to file
final String assetFilePath = path.get();
// Create a file for the asset
final File assetFile = new File(outputDirectory, assetFilePath);
// Get the assets pare... | public class class_name {
@Override
protected void processNode(ArchivePath path, Node node) {
// Get path to file
final String assetFilePath = path.get();
// Create a file for the asset
final File assetFile = new File(outputDirectory, assetFilePath);
// Get the assets pare... |
public class class_name {
protected boolean parametersMatch(Type requiredParameter, Type beanParameter) {
if (Types.isActualType(requiredParameter) && Types.isActualType(beanParameter)) {
/*
* the required type parameter and the bean type parameter are actual types with identical raw
... | public class class_name {
protected boolean parametersMatch(Type requiredParameter, Type beanParameter) {
if (Types.isActualType(requiredParameter) && Types.isActualType(beanParameter)) {
/*
* the required type parameter and the bean type parameter are actual types with identical raw
... |
public class class_name {
public String getFrameData() {
if (SockJsFrameType.OPEN == getType() || SockJsFrameType.HEARTBEAT == getType()) {
return null;
} else {
return getContent().substring(1);
}
} } | public class class_name {
public String getFrameData() {
if (SockJsFrameType.OPEN == getType() || SockJsFrameType.HEARTBEAT == getType()) {
return null; // depends on control dependency: [if], data = [none]
} else {
return getContent().substring(1); // depends on control depende... |
public class class_name {
private ProcessorConfig extractEnricherConfig() {
try {
return ProfileUtil.blendProfileWithConfiguration(ProfileUtil.ENRICHER_CONFIG, profile, ResourceDirCreator.getFinalResourceDir(resourceDir, environment), enricher);
} catch (IOException e) {
throw n... | public class class_name {
private ProcessorConfig extractEnricherConfig() {
try {
return ProfileUtil.blendProfileWithConfiguration(ProfileUtil.ENRICHER_CONFIG, profile, ResourceDirCreator.getFinalResourceDir(resourceDir, environment), enricher); // depends on control dependency: [try], data = [none... |
public class class_name {
public String getReportUpdate() {
for (I_CmsReport report : m_delegates) {
if (report.getClass().getName().toLowerCase().contains("html")) {
return report.getReportUpdate();
}
}
return "";
} } | public class class_name {
public String getReportUpdate() {
for (I_CmsReport report : m_delegates) {
if (report.getClass().getName().toLowerCase().contains("html")) {
return report.getReportUpdate(); // depends on control dependency: [if], data = [none]
}
}
... |
public class class_name {
public static QueryableStateConfiguration fromConfiguration(Configuration config) {
if (!config.getBoolean(QueryableStateOptions.ENABLE_QUERYABLE_STATE_PROXY_SERVER)) {
return null;
}
final Iterator<Integer> proxyPorts = NetUtils.getPortRangeFromString(
config.getString(Queryable... | public class class_name {
public static QueryableStateConfiguration fromConfiguration(Configuration config) {
if (!config.getBoolean(QueryableStateOptions.ENABLE_QUERYABLE_STATE_PROXY_SERVER)) {
return null; // depends on control dependency: [if], data = [none]
}
final Iterator<Integer> proxyPorts = NetUtils... |
public class class_name {
public void setIPRanges(java.util.Collection<IPRange> iPRanges) {
if (iPRanges == null) {
this.iPRanges = null;
return;
}
this.iPRanges = new com.amazonaws.internal.SdkInternalList<IPRange>(iPRanges);
} } | public class class_name {
public void setIPRanges(java.util.Collection<IPRange> iPRanges) {
if (iPRanges == null) {
this.iPRanges = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.iPRanges ... |
public class class_name {
public static boolean lock(CacheConfigBean cacheConfigBean, String key, Object valueObj, int expireTimeInSecond, long timeOutInSecond) {
final LockData lockData = LOCK_THREAD_DATA.get();
if (lockData != null) {
lockData.getLockCount().incrementAndGet();
... | public class class_name {
public static boolean lock(CacheConfigBean cacheConfigBean, String key, Object valueObj, int expireTimeInSecond, long timeOutInSecond) {
final LockData lockData = LOCK_THREAD_DATA.get();
if (lockData != null) {
lockData.getLockCount().incrementAndGet(); // depends ... |
public class class_name {
public static void runExample(
AdWordsServicesInterface adWordsServices, AdWordsSession session, Long adGroupId,
Long criterionId) throws RemoteException {
// Get the DataService.
DataServiceInterface dataService = adWordsServices.get(session, DataServiceInterface.class);
... | public class class_name {
public static void runExample(
AdWordsServicesInterface adWordsServices, AdWordsSession session, Long adGroupId,
Long criterionId) throws RemoteException {
// Get the DataService.
DataServiceInterface dataService = adWordsServices.get(session, DataServiceInterface.class);
... |
public class class_name {
private double link(double d1, double d2) {
if (isScoreMatrix) {
return Math.max(d1,d2);
} else {
return Math.min(d1,d2);
}
} } | public class class_name {
private double link(double d1, double d2) {
if (isScoreMatrix) {
return Math.max(d1,d2); // depends on control dependency: [if], data = [none]
} else {
return Math.min(d1,d2); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private Collection<ClassDoc> subclasses(ClassDoc cd) {
Collection<ClassDoc> ret = classToSubclass.get(cd.qualifiedName());
if (ret == null) {
ret = new TreeSet<ClassDoc>();
List<ClassDoc> subs = classtree.subclasses(cd);
if (subs != null) {
... | public class class_name {
private Collection<ClassDoc> subclasses(ClassDoc cd) {
Collection<ClassDoc> ret = classToSubclass.get(cd.qualifiedName());
if (ret == null) {
ret = new TreeSet<ClassDoc>(); // depends on control dependency: [if], data = [none]
List<ClassDoc> subs = clas... |
public class class_name {
static public Object readData(PositioningDataInputStream raf, Layout index, DataType dataType, Object arr) throws java.io.IOException {
if (showLayoutTypes) System.out.println("***PositioningDataInputStream LayoutType=" + index.getClass().getName());
if (dataType.getPrimitiveClass... | public class class_name {
static public Object readData(PositioningDataInputStream raf, Layout index, DataType dataType, Object arr) throws java.io.IOException {
if (showLayoutTypes) System.out.println("***PositioningDataInputStream LayoutType=" + index.getClass().getName());
if (dataType.getPrimitiveClass... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.