code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
protected void walkDescendantsIteratively(final LinkedList<Node> nodes, final CssSelector cssSelector, final List<Node> result) {
while (!nodes.isEmpty()) {
Node node = nodes.removeFirst();
selectAndAdd(node, cssSelector, result);
// append children in walking order to be processe... | public class class_name {
protected void walkDescendantsIteratively(final LinkedList<Node> nodes, final CssSelector cssSelector, final List<Node> result) {
while (!nodes.isEmpty()) {
Node node = nodes.removeFirst();
selectAndAdd(node, cssSelector, result); // depends on control dependency: [while], data = [non... |
public class class_name {
private List<CmsRadioButton> parseConfiguration(String config) {
// generate an empty list off radio button.
List<CmsRadioButton> result = new LinkedList<CmsRadioButton>();
CmsSelectConfigurationParser parser = new CmsSelectConfigurationParser(config);
... | public class class_name {
private List<CmsRadioButton> parseConfiguration(String config) {
// generate an empty list off radio button.
List<CmsRadioButton> result = new LinkedList<CmsRadioButton>();
CmsSelectConfigurationParser parser = new CmsSelectConfigurationParser(config);
... |
public class class_name {
@Nonnull
/*package*/ static InputStream getBundledJpiManifestStream(@Nonnull URL url) throws IOException {
URLConnection uc = url.openConnection();
InputStream in = null;
// Magic, which allows to avoid using stream generated for JarURLConnection.
// It pre... | public class class_name {
@Nonnull
/*package*/ static InputStream getBundledJpiManifestStream(@Nonnull URL url) throws IOException {
URLConnection uc = url.openConnection();
InputStream in = null;
// Magic, which allows to avoid using stream generated for JarURLConnection.
// It pre... |
public class class_name {
private <T> Task<T> unwind(Try<T> result) {
if (result.isFailed()) {
return Task.failure(result.getError());
} else {
return Task.value(result.get());
}
} } | public class class_name {
private <T> Task<T> unwind(Try<T> result) {
if (result.isFailed()) {
return Task.failure(result.getError()); // depends on control dependency: [if], data = [none]
} else {
return Task.value(result.get()); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public DefaultDmnEngineConfiguration build() {
List<DmnDecisionEvaluationListener> decisionEvaluationListeners = createCustomPostDecisionEvaluationListeners();
dmnEngineConfiguration.setCustomPostDecisionEvaluationListeners(decisionEvaluationListeners);
// override the decision ... | public class class_name {
public DefaultDmnEngineConfiguration build() {
List<DmnDecisionEvaluationListener> decisionEvaluationListeners = createCustomPostDecisionEvaluationListeners();
dmnEngineConfiguration.setCustomPostDecisionEvaluationListeners(decisionEvaluationListeners);
// override the decision ... |
public class class_name {
<ViewModelType extends ViewModel> void callInitialize(View<? extends ViewModelType> view) {
try {
final Method initializeMethod = view.getClass().getMethod(NAMING_CONVENTION_INITIALIZE_IDENTIFIER);
AccessController.doPrivileged((PrivilegedAction) () -> {
... | public class class_name {
<ViewModelType extends ViewModel> void callInitialize(View<? extends ViewModelType> view) {
try {
final Method initializeMethod = view.getClass().getMethod(NAMING_CONVENTION_INITIALIZE_IDENTIFIER);
AccessController.doPrivileged((PrivilegedAction) () -> {
... |
public class class_name {
@Nonnull
public Word<I> longestCommonSuffix(Word<?> other) {
int len = length(), otherLen = other.length();
int minLen = (len < otherLen) ? len : otherLen;
int idx1 = len, idx2 = otherLen;
int i = 0;
while (i < minLen) {
I sym1 = getSym... | public class class_name {
@Nonnull
public Word<I> longestCommonSuffix(Word<?> other) {
int len = length(), otherLen = other.length();
int minLen = (len < otherLen) ? len : otherLen;
int idx1 = len, idx2 = otherLen;
int i = 0;
while (i < minLen) {
I sym1 = getSym... |
public class class_name {
private DataBlockScanner getNextNamespaceSliceScanner(int currentNamespaceId) {
Integer nextNsId = null;
while ((nextNsId == null) && datanode.shouldRun
&& !blockScannerThread.isInterrupted()) {
waitForOneNameSpaceUp();
synchronized (this) {
if (getNamespa... | public class class_name {
private DataBlockScanner getNextNamespaceSliceScanner(int currentNamespaceId) {
Integer nextNsId = null;
while ((nextNsId == null) && datanode.shouldRun
&& !blockScannerThread.isInterrupted()) {
waitForOneNameSpaceUp(); // depends on control dependency: [while], data = ... |
public class class_name {
@Override
public SchemaManager getSchemaManager(Map<String, Object> puProperties)
{
setExternalProperties(puProperties);
if (schemaManager == null)
{
initializePropertyReader();
schemaManager = new CouchDBSchemaManager(this.getClass().ge... | public class class_name {
@Override
public SchemaManager getSchemaManager(Map<String, Object> puProperties)
{
setExternalProperties(puProperties);
if (schemaManager == null)
{
initializePropertyReader(); // depends on control dependency: [if], data = [none]
schem... |
public class class_name {
private void deleteFromTableVToK(int entry, int valueHash) {
checkArgument(entry != ABSENT);
int valueBucket = bucket(valueHash);
if (hashTableVToK[valueBucket] == entry) {
hashTableVToK[valueBucket] = nextInBucketVToK[entry];
nextInBucketVToK[entry] = ABSENT;
r... | public class class_name {
private void deleteFromTableVToK(int entry, int valueHash) {
checkArgument(entry != ABSENT);
int valueBucket = bucket(valueHash);
if (hashTableVToK[valueBucket] == entry) {
hashTableVToK[valueBucket] = nextInBucketVToK[entry]; // depends on control dependency: [if], data = ... |
public class class_name {
private boolean shouldBundlerRun(String requestedBundler, String currentRunningBundlerID, JavaFXGradlePluginExtension ext, final Logger logger, Map<String, ? super Object> params) {
if( requestedBundler != null && !"ALL".equalsIgnoreCase(requestedBundler) && !requestedBundler.equalsIg... | public class class_name {
private boolean shouldBundlerRun(String requestedBundler, String currentRunningBundlerID, JavaFXGradlePluginExtension ext, final Logger logger, Map<String, ? super Object> params) {
if( requestedBundler != null && !"ALL".equalsIgnoreCase(requestedBundler) && !requestedBundler.equalsIg... |
public class class_name {
public void runQueryWithArrayParameters() throws InterruptedException {
// [START bigquery_query_params_arrays]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String gender = "M";
String[] states = {"WA", "WI", "WV", "WY"};
String query =
... | public class class_name {
public void runQueryWithArrayParameters() throws InterruptedException {
// [START bigquery_query_params_arrays]
// BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService();
String gender = "M";
String[] states = {"WA", "WI", "WV", "WY"};
String query =
... |
public class class_name {
private static Set<Parameter<?>> getParametersFromPublicFields(Class<?> type) {
Set<Parameter<?>> params = new HashSet<>();
try {
Field[] fields = type.getFields();
for (Field field : fields) {
if (field.getType().isAssignableFrom(Parameter.class)) {
para... | public class class_name {
private static Set<Parameter<?>> getParametersFromPublicFields(Class<?> type) {
Set<Parameter<?>> params = new HashSet<>();
try {
Field[] fields = type.getFields();
for (Field field : fields) {
if (field.getType().isAssignableFrom(Parameter.class)) {
para... |
public class class_name {
public static Map<String, String> resource(String type, Map<String, String> meta) {
HashMap<String, String> authResource = new HashMap<String, String>();
if (null != meta) {
authResource.putAll(meta);
}
authResource.put(TYPE_FIELD, type);
re... | public class class_name {
public static Map<String, String> resource(String type, Map<String, String> meta) {
HashMap<String, String> authResource = new HashMap<String, String>();
if (null != meta) {
authResource.putAll(meta); // depends on control dependency: [if], data = [meta)]
}... |
public class class_name {
public void uninstall(DeployableUnitID deployableUnitID)
throws NullPointerException, UnrecognizedDeployableUnitException,
DependencyException, InvalidStateException, ManagementException {
logger.info("Uninstalling " +deployableUnitID);
final SleeContainer sleeContainer = getSleeC... | public class class_name {
public void uninstall(DeployableUnitID deployableUnitID)
throws NullPointerException, UnrecognizedDeployableUnitException,
DependencyException, InvalidStateException, ManagementException {
logger.info("Uninstalling " +deployableUnitID);
final SleeContainer sleeContainer = getSleeC... |
public class class_name {
public static int[] factor (int n, int fromfactors[]){
int factors[] = new int[64]; // Cant be more than 64 factors.
int nf = 0;
int ntest = n;
int factor;
if (n <= 0) // Error case
throw new Error("Number ("+n+") must be positive integer");
/* deal with the ... | public class class_name {
public static int[] factor (int n, int fromfactors[]){
int factors[] = new int[64]; // Cant be more than 64 factors.
int nf = 0;
int ntest = n;
int factor;
if (n <= 0) // Error case
throw new Error("Number ("+n+") must be positive integer");
/* deal with the ... |
public class class_name {
@SafeVarargs
public final <T> List<T> list(final Class<T> targetClass, final String sql, Object... parameters) {
final DataSet rs = query(targetClass, sql, 0, Integer.MAX_VALUE, parameters);
if (N.isNullOrEmpty(rs)) {
return new ArrayList<>();
} ... | public class class_name {
@SafeVarargs
public final <T> List<T> list(final Class<T> targetClass, final String sql, Object... parameters) {
final DataSet rs = query(targetClass, sql, 0, Integer.MAX_VALUE, parameters);
if (N.isNullOrEmpty(rs)) {
return new ArrayList<>();
// depends... |
public class class_name {
StoryState copy() {
StoryState copy = new StoryState(story);
copy.getOutputStream().addAll(outputStream);
outputStreamDirty();
copy.currentChoices.addAll(currentChoices);
if (hasError()) {
copy.currentErrors = new ArrayList<String>();
copy.currentErrors.addAll(currentErrors)... | public class class_name {
StoryState copy() {
StoryState copy = new StoryState(story);
copy.getOutputStream().addAll(outputStream);
outputStreamDirty();
copy.currentChoices.addAll(currentChoices);
if (hasError()) {
copy.currentErrors = new ArrayList<String>(); // depends on control dependency: [if], dat... |
public class class_name {
public void setMode(int mode, boolean animation){
if(mMode != mode){
mMode = mode;
if(mOnTimeChangedListener != null)
mOnTimeChangedListener.onModeChanged(mMode);
if(animation)
startAnimation();
else
... | public class class_name {
public void setMode(int mode, boolean animation){
if(mMode != mode){
mMode = mode; // depends on control dependency: [if], data = [none]
if(mOnTimeChangedListener != null)
mOnTimeChangedListener.onModeChanged(mMode);
if(animation)
... |
public class class_name {
public static <E> void subtractInPlace(Counter<E> target, Counter<E> arg) {
for (E key : arg.keySet()) {
target.decrementCount(key, arg.getCount(key));
}
} } | public class class_name {
public static <E> void subtractInPlace(Counter<E> target, Counter<E> arg) {
for (E key : arg.keySet()) {
target.decrementCount(key, arg.getCount(key));
// depends on control dependency: [for], data = [key]
}
} } |
public class class_name {
@SuppressWarnings("checkstyle:npathcomplexity")
public static void setSREInstalls(ISREInstall[] sres, IProgressMonitor monitor) throws CoreException {
final SubMonitor mon = SubMonitor.convert(monitor,
io.sarl.eclipse.runtime.Messages.SARLRuntime_0,
sres.length * 2 + ALL_SRE_INSTAL... | public class class_name {
@SuppressWarnings("checkstyle:npathcomplexity")
public static void setSREInstalls(ISREInstall[] sres, IProgressMonitor monitor) throws CoreException {
final SubMonitor mon = SubMonitor.convert(monitor,
io.sarl.eclipse.runtime.Messages.SARLRuntime_0,
sres.length * 2 + ALL_SRE_INSTAL... |
public class class_name {
protected void endRequest() {
int oldState, newState;
do {
oldState = state;
newState = oldState - 1;
} while (!stateUpdater.compareAndSet(this, oldState, newState));
if (newState == CLOSED) {
handleCompleted();
}
... | public class class_name {
protected void endRequest() {
int oldState, newState;
do {
oldState = state;
newState = oldState - 1;
} while (!stateUpdater.compareAndSet(this, oldState, newState));
if (newState == CLOSED) {
handleCompleted(); // depends on... |
public class class_name {
public void onModuleLoad() {
final Button sendButton = new Button( messages.sendButton() );
final TextBox nameField = new TextBox();
nameField.setText( messages.nameField() );
final Label errorLabel = new Label();
// We can add style names to widgets
sendButton.addSty... | public class class_name {
public void onModuleLoad() {
final Button sendButton = new Button( messages.sendButton() );
final TextBox nameField = new TextBox();
nameField.setText( messages.nameField() );
final Label errorLabel = new Label();
// We can add style names to widgets
sendButton.addSty... |
public class class_name {
@SuppressLint("NewApi")
@Override
protected void onCreate(Bundle savedInstanceState) {
// Set window transition elements
if(BuildUtils.isLollipop()) {
getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);
TransitionSet transitions = ... | public class class_name {
@SuppressLint("NewApi")
@Override
protected void onCreate(Bundle savedInstanceState) {
// Set window transition elements
if(BuildUtils.isLollipop()) {
getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS); // depends on control dependency: [if], d... |
public class class_name {
public void marshall(ListGrantsRequest listGrantsRequest, ProtocolMarshaller protocolMarshaller) {
if (listGrantsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(l... | public class class_name {
public void marshall(ListGrantsRequest listGrantsRequest, ProtocolMarshaller protocolMarshaller) {
if (listGrantsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(l... |
public class class_name {
private static void flipAround(SceneStructureMetric structure, SceneObservations observations) {
// The first view will be identity
for (int i = 1; i < structure.views.length; i++) {
Se3_F64 w2v = structure.views[i].worldToView;
w2v.set(w2v.invert(null));
}
triangulatePoints(str... | public class class_name {
private static void flipAround(SceneStructureMetric structure, SceneObservations observations) {
// The first view will be identity
for (int i = 1; i < structure.views.length; i++) {
Se3_F64 w2v = structure.views[i].worldToView;
w2v.set(w2v.invert(null)); // depends on control depen... |
public class class_name {
public void stop() {
if (future != null) {
future.cancel(true);
}
if (executor != null) {
executor.shutdownNow();
}
} } | public class class_name {
public void stop() {
if (future != null) {
future.cancel(true);
// depends on control dependency: [if], data = [none]
}
if (executor != null) {
executor.shutdownNow();
// depends on control dependency: [if], data = [none]
}
} ... |
public class class_name {
private void wrap(ChannelHandlerContext ctx, boolean inUnwrap) throws SSLException {
ByteBuf out = null;
ChannelPromise promise = null;
ByteBufAllocator alloc = ctx.alloc();
boolean needUnwrap = false;
ByteBuf buf = null;
try {
final... | public class class_name {
private void wrap(ChannelHandlerContext ctx, boolean inUnwrap) throws SSLException {
ByteBuf out = null;
ChannelPromise promise = null;
ByteBufAllocator alloc = ctx.alloc();
boolean needUnwrap = false;
ByteBuf buf = null;
try {
final... |
public class class_name {
public void setContentLength(int contentLength, boolean resetMatchCount) {
if (contentLength <= 0) {
throw new IllegalArgumentException("contentLength: "
+ contentLength);
}
ctx.setContentLength(contentLength);
if (resetMatchCou... | public class class_name {
public void setContentLength(int contentLength, boolean resetMatchCount) {
if (contentLength <= 0) {
throw new IllegalArgumentException("contentLength: "
+ contentLength);
}
ctx.setContentLength(contentLength);
if (resetMatchCou... |
public class class_name {
public void update(InputStream stream, long length, long position) throws IOException, RepositoryException
{
validateAndAdjustLenght(length, position, Integer.MAX_VALUE);
long newSize = Math.max(length + position, value.length);
byte[] newBytes = new byte[(int)newSize];
... | public class class_name {
public void update(InputStream stream, long length, long position) throws IOException, RepositoryException
{
validateAndAdjustLenght(length, position, Integer.MAX_VALUE);
long newSize = Math.max(length + position, value.length);
byte[] newBytes = new byte[(int)newSize];
... |
public class class_name {
private void CheckTiles(IFD ifd, IfdTags metadata, int n) {
long offset;
int id;
// Check Tile Offsets
id = TiffTags.getTagId("TileOffsets");
offset = metadata.get(id).getFirstNumericValue();
int no = metadata.get(id).getCardinality();
if (offset <= 0)
valid... | public class class_name {
private void CheckTiles(IFD ifd, IfdTags metadata, int n) {
long offset;
int id;
// Check Tile Offsets
id = TiffTags.getTagId("TileOffsets");
offset = metadata.get(id).getFirstNumericValue();
int no = metadata.get(id).getCardinality();
if (offset <= 0)
valid... |
public class class_name {
private static void parseStencil(JSONObject modelJSON,
Shape current) throws JSONException {
// get stencil type
if (modelJSON.has("stencil")) {
JSONObject stencil = modelJSON.getJSONObject("stencil");
// TODO other ... | public class class_name {
private static void parseStencil(JSONObject modelJSON,
Shape current) throws JSONException {
// get stencil type
if (modelJSON.has("stencil")) {
JSONObject stencil = modelJSON.getJSONObject("stencil");
// TODO other ... |
public class class_name {
public TaskGetHeaders withLastModified(DateTime lastModified) {
if (lastModified == null) {
this.lastModified = null;
} else {
this.lastModified = new DateTimeRfc1123(lastModified);
}
return this;
} } | public class class_name {
public TaskGetHeaders withLastModified(DateTime lastModified) {
if (lastModified == null) {
this.lastModified = null; // depends on control dependency: [if], data = [none]
} else {
this.lastModified = new DateTimeRfc1123(lastModified); // depends on con... |
public class class_name {
public void marshall(ListProvisioningArtifactsRequest listProvisioningArtifactsRequest, ProtocolMarshaller protocolMarshaller) {
if (listProvisioningArtifactsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... | public class class_name {
public void marshall(ListProvisioningArtifactsRequest listProvisioningArtifactsRequest, ProtocolMarshaller protocolMarshaller) {
if (listProvisioningArtifactsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... |
public class class_name {
public static final RequestType getRequestType(Object context, Object request)
{
//Stuff is laid out strangely in this class in order to optimize
//performance. We want to do as few instanceof's as possible so
//things are laid out according to the expected freque... | public class class_name {
public static final RequestType getRequestType(Object context, Object request)
{
//Stuff is laid out strangely in this class in order to optimize
//performance. We want to do as few instanceof's as possible so
//things are laid out according to the expected freque... |
public class class_name {
public static BaseResult img_sec_check(String access_token,InputStream media){
HttpPost httpPost = new HttpPost(BASE_URI + "/wxa/img_sec_check");
byte[] data = null;
try {
data = StreamUtils.copyToByteArray(media);
} catch (IOException e) {
logger.error("", e);
}
Htt... | public class class_name {
public static BaseResult img_sec_check(String access_token,InputStream media){
HttpPost httpPost = new HttpPost(BASE_URI + "/wxa/img_sec_check");
byte[] data = null;
try {
data = StreamUtils.copyToByteArray(media);
// depends on control dependency: [try], data = [none]
} catch... |
public class class_name {
public Object[] getValueArray(Object[] arguments, Service service) {
Object[] paramArray = new Object[this.parameters.size()];
int argumentIndex = 0;
for (int i = 0; i < this.parameters.size(); i++) {
// inject params if needed
IParameter p = this.parameters.get(i);... | public class class_name {
public Object[] getValueArray(Object[] arguments, Service service) {
Object[] paramArray = new Object[this.parameters.size()];
int argumentIndex = 0;
for (int i = 0; i < this.parameters.size(); i++) {
// inject params if needed
IParameter p = this.parameters.get(i);... |
public class class_name {
@SuppressWarnings("unchecked")
public <VALUEBASE, VALUE extends VALUEBASE, KEY extends Key<CoreMap, VALUEBASE>>
VALUE set(Class<KEY> key, VALUE value) {
// search array for existing value to replace
for (int i = 0; i < size; i++) {
if (keys[i] == key) {
VAL... | public class class_name {
@SuppressWarnings("unchecked")
public <VALUEBASE, VALUE extends VALUEBASE, KEY extends Key<CoreMap, VALUEBASE>>
VALUE set(Class<KEY> key, VALUE value) {
// search array for existing value to replace
for (int i = 0; i < size; i++) {
if (keys[i] == key) {
VAL... |
public class class_name {
public LaSchedulingNow start() {
final ClassLoader originalLoader = startHotdeploy();
final Cron4jScheduler cron4jScheduler;
final Cron4jNow cron4jNow;
try {
final LaJobScheduler appScheduler = findAppScheduler();
inject(appScheduler);
... | public class class_name {
public LaSchedulingNow start() {
final ClassLoader originalLoader = startHotdeploy();
final Cron4jScheduler cron4jScheduler;
final Cron4jNow cron4jNow;
try {
final LaJobScheduler appScheduler = findAppScheduler();
inject(appScheduler); /... |
public class class_name {
@Override
public List<String> predict(org.nd4j.linalg.dataset.api.DataSet dataSet) {
Preconditions.checkState(dataSet.getLabelNamesList() != null, "This method can only be used when the DataSet contains a label name list");
int[] intRet = predict(dataSet.getFeatures());
... | public class class_name {
@Override
public List<String> predict(org.nd4j.linalg.dataset.api.DataSet dataSet) {
Preconditions.checkState(dataSet.getLabelNamesList() != null, "This method can only be used when the DataSet contains a label name list");
int[] intRet = predict(dataSet.getFeatures());
... |
public class class_name {
public MockSecurityGroup authorizeSecurityGroupIngress(final String groupId, final String ipProtocol,
final Integer fromPort, final Integer toPort, final String cidrIp) {
if (groupId == null) {
return null;
}
MockSecurityGroup ret = allMockSecurityGroup... | public class class_name {
public MockSecurityGroup authorizeSecurityGroupIngress(final String groupId, final String ipProtocol,
final Integer fromPort, final Integer toPort, final String cidrIp) {
if (groupId == null) {
return null; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
private com.buschmais.xo.spi.reflection.AnnotatedElement<?> getRelationDefinitionElement(PropertyMethod propertyMethod) {
if (propertyMethod.getByMetaAnnotationOfProperty(RelationDefinition.class) != null) {
return propertyMethod;
}
Annotation[] declaredAnn... | public class class_name {
private com.buschmais.xo.spi.reflection.AnnotatedElement<?> getRelationDefinitionElement(PropertyMethod propertyMethod) {
if (propertyMethod.getByMetaAnnotationOfProperty(RelationDefinition.class) != null) {
return propertyMethod; // depends on control dependency: [if], da... |
public class class_name {
private GeoPackage getOrOpen(String name, boolean writable, boolean cache) {
GeoPackage geoPackage = get(name);
if (geoPackage == null) {
geoPackage = manager.open(name, writable);
if (cache) {
add(geoPackage);
}
}
... | public class class_name {
private GeoPackage getOrOpen(String name, boolean writable, boolean cache) {
GeoPackage geoPackage = get(name);
if (geoPackage == null) {
geoPackage = manager.open(name, writable); // depends on control dependency: [if], data = [none]
if (cache) {
... |
public class class_name {
public synchronized SIDestinationAddress getSIDestinationAddress(short fapLevel)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSIDestinationAddress", Short.valueOf(fapLevel)); //469395
checkReleased();
boolean isFromMediati... | public class class_name {
public synchronized SIDestinationAddress getSIDestinationAddress(short fapLevel)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getSIDestinationAddress", Short.valueOf(fapLevel)); //469395
checkReleased();
boolean isFromMediati... |
public class class_name {
public @NotNull ByteAssert isGreaterThanOrEqualTo(byte other) {
if (actual >= other) {
return this;
}
failIfCustomMessageIsSet();
throw failure(unexpectedLessThan(actual, other));
} } | public class class_name {
public @NotNull ByteAssert isGreaterThanOrEqualTo(byte other) {
if (actual >= other) {
return this; // depends on control dependency: [if], data = [none]
}
failIfCustomMessageIsSet();
throw failure(unexpectedLessThan(actual, other));
} } |
public class class_name {
public void eraseEventFire(String identifier)
{
ItemState item = getItemState(identifier);
if (item != null)
{
item.eraseEventFire();
Map<String, ItemState> children = lastChildPropertyStates.get(identifier);
if (children != null)
{
... | public class class_name {
public void eraseEventFire(String identifier)
{
ItemState item = getItemState(identifier);
if (item != null)
{
item.eraseEventFire(); // depends on control dependency: [if], data = [none]
Map<String, ItemState> children = lastChildPropertyStates.get(iden... |
public class class_name {
protected void logException(E ex, HttpServletRequest req) {
if (LOG.isErrorEnabled() && getStatus().value() >= 500 || LOG.isInfoEnabled()) {
Marker marker = MarkerFactory.getMarker(ex.getClass().getName());
String uri = req.getRequestURI();
if (re... | public class class_name {
protected void logException(E ex, HttpServletRequest req) {
if (LOG.isErrorEnabled() && getStatus().value() >= 500 || LOG.isInfoEnabled()) {
Marker marker = MarkerFactory.getMarker(ex.getClass().getName());
String uri = req.getRequestURI();
if (re... |
public class class_name {
public static void translateAndCache(PmiModuleConfig cfg, Locale l) {
PmiModuleConfig aCfg = getConfig(l, cfg.getUID());
if (aCfg == null) {
aCfg = cfg.copy(); // create a copy before translating
// filter sub-module entry
if (aCfg != null... | public class class_name {
public static void translateAndCache(PmiModuleConfig cfg, Locale l) {
PmiModuleConfig aCfg = getConfig(l, cfg.getUID());
if (aCfg == null) {
aCfg = cfg.copy(); // create a copy before translating // depends on control dependency: [if], data = [none]
//... |
public class class_name {
public ListSecretVersionIdsResult withVersions(SecretVersionsListEntry... versions) {
if (this.versions == null) {
setVersions(new java.util.ArrayList<SecretVersionsListEntry>(versions.length));
}
for (SecretVersionsListEntry ele : versions) {
t... | public class class_name {
public ListSecretVersionIdsResult withVersions(SecretVersionsListEntry... versions) {
if (this.versions == null) {
setVersions(new java.util.ArrayList<SecretVersionsListEntry>(versions.length)); // depends on control dependency: [if], data = [none]
}
for (S... |
public class class_name {
public Object newInstance( String name, Object[] params, String[] types ) throws ClassLoaderException {
Class<?> clazz;
try {
clazz = loadClass(name);
} catch (ClassNotFoundException e) {
throw new ClassLoaderException(e);
}
... | public class class_name {
public Object newInstance( String name, Object[] params, String[] types ) throws ClassLoaderException {
Class<?> clazz;
try {
clazz = loadClass(name);
} catch (ClassNotFoundException e) {
throw new ClassLoaderException(e);
}
... |
public class class_name {
public void setProductName(java.util.Collection<StringFilter> productName) {
if (productName == null) {
this.productName = null;
return;
}
this.productName = new java.util.ArrayList<StringFilter>(productName);
} } | public class class_name {
public void setProductName(java.util.Collection<StringFilter> productName) {
if (productName == null) {
this.productName = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public Collection<Map.Entry<Address, List<Integer>>> getPartitions(PartitionTableView partitionTableView) {
Map<Address, List<Integer>> partitionsMap = new HashMap<Address, List<Integer>>();
int partitionCount = partitionTableView.getLength();
for (int partitionId = ... | public class class_name {
public Collection<Map.Entry<Address, List<Integer>>> getPartitions(PartitionTableView partitionTableView) {
Map<Address, List<Integer>> partitionsMap = new HashMap<Address, List<Integer>>();
int partitionCount = partitionTableView.getLength();
for (int partitionId = ... |
public class class_name {
public HashMap<StreamShardMetadata, SequenceNumber> snapshotState() {
// this method assumes that the checkpoint lock is held
assert Thread.holdsLock(checkpointLock);
HashMap<StreamShardMetadata, SequenceNumber> stateSnapshot = new HashMap<>();
for (KinesisStreamShardState shardWithS... | public class class_name {
public HashMap<StreamShardMetadata, SequenceNumber> snapshotState() {
// this method assumes that the checkpoint lock is held
assert Thread.holdsLock(checkpointLock);
HashMap<StreamShardMetadata, SequenceNumber> stateSnapshot = new HashMap<>();
for (KinesisStreamShardState shardWithS... |
public class class_name {
public T path(String path) {
if (path.length() == 0) {
this.path += encodePath(path);
} else {
this.path += "/" + encodePath(path);
}
return returnThis();
} } | public class class_name {
public T path(String path) {
if (path.length() == 0) {
this.path += encodePath(path); // depends on control dependency: [if], data = [none]
} else {
this.path += "/" + encodePath(path); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public boolean removeVertex(Vertex<T> v)
{
if (!verticies.containsValue(v))
return false;
verticies.remove(v.getName());
if( v == rootVertex )
rootVertex = null;
// Remove the edges associated with v
for(int n = 0; n < v.getOutgoingEdgeCoun... | public class class_name {
public boolean removeVertex(Vertex<T> v)
{
if (!verticies.containsValue(v))
return false;
verticies.remove(v.getName());
if( v == rootVertex )
rootVertex = null;
// Remove the edges associated with v
for(int n = 0; n < v.getOutgoingEdgeCoun... |
public class class_name {
public void compare(Node control, Node test, DifferenceListener listener,
ElementQualifier elementQualifier) {
controlTracker.reset();
testTracker.reset();
try {
compare(getNullOrNotNull(control), getNullOrNotNull(test),
... | public class class_name {
public void compare(Node control, Node test, DifferenceListener listener,
ElementQualifier elementQualifier) {
controlTracker.reset();
testTracker.reset();
try {
compare(getNullOrNotNull(control), getNullOrNotNull(test),
... |
public class class_name {
public int length(){
if(root.child==null){
return 0;
}
if(length>-1){
return length;
}
length=root.getChildCount();
return length;
} } | public class class_name {
public int length(){
if(root.child==null){
return 0; // depends on control dependency: [if], data = [none]
}
if(length>-1){
return length; // depends on control dependency: [if], data = [none]
}
length=root.getChildCount();
return length;
} } |
public class class_name {
static PlainTimestamp from(
UnixTime ut,
ZonalOffset offset
) {
long localSeconds = ut.getPosixTime() + offset.getIntegralAmount();
int localNanos = ut.getNanosecond() + offset.getFractionalAmount();
if (localNanos < 0) {
localNanos +=... | public class class_name {
static PlainTimestamp from(
UnixTime ut,
ZonalOffset offset
) {
long localSeconds = ut.getPosixTime() + offset.getIntegralAmount();
int localNanos = ut.getNanosecond() + offset.getFractionalAmount();
if (localNanos < 0) {
localNanos +=... |
public class class_name {
private String getArtifactIdFromName(PhpPackage phpPackage) {
String artifactId = null;
if (StringUtils.isNotBlank(phpPackage.getName())) {
String packageName = phpPackage.getName();
String[] gavCoordinates = packageName.split(FORWARD_SLASH);
... | public class class_name {
private String getArtifactIdFromName(PhpPackage phpPackage) {
String artifactId = null;
if (StringUtils.isNotBlank(phpPackage.getName())) {
String packageName = phpPackage.getName();
String[] gavCoordinates = packageName.split(FORWARD_SLASH);
... |
public class class_name {
public void marshall(DomainNameConfiguration domainNameConfiguration, ProtocolMarshaller protocolMarshaller) {
if (domainNameConfiguration == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(DomainNameConfiguration domainNameConfiguration, ProtocolMarshaller protocolMarshaller) {
if (domainNameConfiguration == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
@Override
public void put(String table, String key, Map<String, Object> doc,
IPutCallback<Map<String, Object>> callback) {
SessionManager sessionManager = getSessionManager();
String tableName = calcTableName(table);
long timestamp = System.currentTimeM... | public class class_name {
@Override
public void put(String table, String key, Map<String, Object> doc,
IPutCallback<Map<String, Object>> callback) {
SessionManager sessionManager = getSessionManager();
String tableName = calcTableName(table);
long timestamp = System.currentTimeM... |
public class class_name {
public static boolean valueChanged(Set<?> before, Set<?> after) {
if ((before == null && after == null) || after == null) {
return false;
}
if (before == null) {
if (after.isEmpty()) {
return false;
} else {
... | public class class_name {
public static boolean valueChanged(Set<?> before, Set<?> after) {
if ((before == null && after == null) || after == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (before == null) {
if (after.isEmpty()) {
... |
public class class_name {
@Override
public String getQuorumName(String cacheName) {
CacheConfig cacheConfig = getCacheConfig(cacheName);
if (cacheConfig == null) {
return null;
}
return cacheConfig.getQuorumName();
} } | public class class_name {
@Override
public String getQuorumName(String cacheName) {
CacheConfig cacheConfig = getCacheConfig(cacheName);
if (cacheConfig == null) {
return null; // depends on control dependency: [if], data = [none]
}
return cacheConfig.getQuorumName();
... |
public class class_name {
public static void applyToOrSetGone(ImageHolder imageHolder, ImageView imageView, String tag) {
boolean imageSet = applyTo(imageHolder, imageView, tag);
if (imageView != null) {
if (imageSet) {
imageView.setVisibility(View.VISIBLE);
} el... | public class class_name {
public static void applyToOrSetGone(ImageHolder imageHolder, ImageView imageView, String tag) {
boolean imageSet = applyTo(imageHolder, imageView, tag);
if (imageView != null) {
if (imageSet) {
imageView.setVisibility(View.VISIBLE); // depends on co... |
public class class_name {
public void exit(boolean withAnimation) {
if (getRequestedId() == null) {
throw new IllegalStateException("You should call enter(...) before calling exit(...)");
}
if (GestureDebug.isDebugAnimator()) {
Log.d(TAG, "Exit requested from " + getReq... | public class class_name {
public void exit(boolean withAnimation) {
if (getRequestedId() == null) {
throw new IllegalStateException("You should call enter(...) before calling exit(...)");
}
if (GestureDebug.isDebugAnimator()) {
Log.d(TAG, "Exit requested from " + getReq... |
public class class_name {
public Object get(ManagedObjectReference mor, String propName)
{
Map<ManagedObjectReference, Map<String, Object>> items = cache.getCachedItems();
Map<String, Object> moMap = items.get(mor);
if(moMap!=null)
{
return moMap.get(propName);
}
return null;
} ... | public class class_name {
public Object get(ManagedObjectReference mor, String propName)
{
Map<ManagedObjectReference, Map<String, Object>> items = cache.getCachedItems();
Map<String, Object> moMap = items.get(mor);
if(moMap!=null)
{
return moMap.get(propName);
// depends on control depe... |
public class class_name {
public void setPipelines(java.util.Collection<PipelineSummary> pipelines) {
if (pipelines == null) {
this.pipelines = null;
return;
}
this.pipelines = new java.util.ArrayList<PipelineSummary>(pipelines);
} } | public class class_name {
public void setPipelines(java.util.Collection<PipelineSummary> pipelines) {
if (pipelines == null) {
this.pipelines = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
th... |
public class class_name {
public static boolean stereosAreOpposite(IAtomContainer container, IAtom atom) {
List<IAtom> atoms = container.getConnectedAtomsList(atom);
TreeMap<Double, Integer> hm = new TreeMap<Double, Integer>();
for (int i = 1; i < atoms.size(); i++) {
hm.put(giveAng... | public class class_name {
public static boolean stereosAreOpposite(IAtomContainer container, IAtom atom) {
List<IAtom> atoms = container.getConnectedAtomsList(atom);
TreeMap<Double, Integer> hm = new TreeMap<Double, Integer>();
for (int i = 1; i < atoms.size(); i++) {
hm.put(giveAng... |
public class class_name {
private List<String> getFieldsToNull(List<NullReplacerConditionalConfig> nullReplacerConditionalConfigs, Set<String> fieldsThatDoNotExist, Set<String> fieldPaths, Record record) throws OnRecordErrorException {
//Gather in this all fields to null
List<String> fieldsToNull = new ArrayLi... | public class class_name {
private List<String> getFieldsToNull(List<NullReplacerConditionalConfig> nullReplacerConditionalConfigs, Set<String> fieldsThatDoNotExist, Set<String> fieldPaths, Record record) throws OnRecordErrorException {
//Gather in this all fields to null
List<String> fieldsToNull = new ArrayLi... |
public class class_name {
private void selectTabInternal(int newPosition, boolean firstTab, boolean callListener, boolean forcedSelection) {
int oldPosition = mSelectedPosition;
if (mSelectedPosition != newPosition) {
if (mBackgroundStyle == BACKGROUND_STYLE_STATIC) {
if (mS... | public class class_name {
private void selectTabInternal(int newPosition, boolean firstTab, boolean callListener, boolean forcedSelection) {
int oldPosition = mSelectedPosition;
if (mSelectedPosition != newPosition) {
if (mBackgroundStyle == BACKGROUND_STYLE_STATIC) {
if (mS... |
public class class_name {
private Month readOptionalMonth(JSONObject json, String key) {
try {
String str = json.getString(key);
return Month.valueOf(str);
} catch (JSONException | IllegalArgumentException e) {
LOG.debug("Reading optional JSON month failed. Default ... | public class class_name {
private Month readOptionalMonth(JSONObject json, String key) {
try {
String str = json.getString(key);
return Month.valueOf(str); // depends on control dependency: [try], data = [none]
} catch (JSONException | IllegalArgumentException e) {
... |
public class class_name {
public GzipHdfsBolt addRecordFormat(RecordFormat format, int position) {
MultipleRecordFormat formats;
if (this.format == null) {
formats = new MultipleRecordFormat(format);
this.format = formats;
} else {
if (this.format instanceof ... | public class class_name {
public GzipHdfsBolt addRecordFormat(RecordFormat format, int position) {
MultipleRecordFormat formats;
if (this.format == null) {
formats = new MultipleRecordFormat(format); // depends on control dependency: [if], data = [none]
this.format = formats; //... |
public class class_name {
public static void bufferedToInterleaved(DataBufferByte buffer, WritableRaster src, InterleavedF32 dst) {
byte[] srcData = buffer.getData();
int srcStride = stride(src);
int srcOffset = getOffset(src);
int length = dst.width*dst.numBands;
//CONCURRENT_BELOW BoofConcurrency.loopFo... | public class class_name {
public static void bufferedToInterleaved(DataBufferByte buffer, WritableRaster src, InterleavedF32 dst) {
byte[] srcData = buffer.getData();
int srcStride = stride(src);
int srcOffset = getOffset(src);
int length = dst.width*dst.numBands;
//CONCURRENT_BELOW BoofConcurrency.loopFo... |
public class class_name {
public Parameter<?> getParameter(String name) {
Collection<Parameter<?>> extnParameters = getParameters();
for (Parameter<?> extnParameter : extnParameters) {
if (extnParameter.name().equals(name)) {
return extnParameter;
}
}
... | public class class_name {
public Parameter<?> getParameter(String name) {
Collection<Parameter<?>> extnParameters = getParameters();
for (Parameter<?> extnParameter : extnParameters) {
if (extnParameter.name().equals(name)) {
return extnParameter; // depends on control depe... |
public class class_name {
private void computeDerivatives(double sigma) {
this.Lx2 = new float[width][height];
this.Ly2 = new float[width][height];
this.Lxy = new float[width][height];
float[][][] grad = new float[width][height][];
for (int y = 0; y < height; y++)
for (int x = 0; x < width; x++)
... | public class class_name {
private void computeDerivatives(double sigma) {
this.Lx2 = new float[width][height];
this.Ly2 = new float[width][height];
this.Lxy = new float[width][height];
float[][][] grad = new float[width][height][];
for (int y = 0; y < height; y++)
for (int x = 0; x < width; x++)
... |
public class class_name {
@SuppressWarnings("unchecked")
static Iterator<MarkerRange.Builder> add(
Range constraint, List<FieldPartitioner> fps,
Iterator<MarkerRange.Builder> inner) {
Iterator<MarkerRange.Builder> current = inner;
List<Pair<String, Range>> compatible = Lists.newArrayList();
... | public class class_name {
@SuppressWarnings("unchecked")
static Iterator<MarkerRange.Builder> add(
Range constraint, List<FieldPartitioner> fps,
Iterator<MarkerRange.Builder> inner) {
Iterator<MarkerRange.Builder> current = inner;
List<Pair<String, Range>> compatible = Lists.newArrayList();
... |
public class class_name {
public void setProfileFromBackup(JSONObject profileBackup, int profileId, String clientUUID) throws Exception {
// Reset the profile before applying changes
ClientService clientService = ClientService.getInstance();
clientService.reset(profileId, clientUUID);
c... | public class class_name {
public void setProfileFromBackup(JSONObject profileBackup, int profileId, String clientUUID) throws Exception {
// Reset the profile before applying changes
ClientService clientService = ClientService.getInstance();
clientService.reset(profileId, clientUUID);
c... |
public class class_name {
@Override
public String getCacheKeyForTable(final Object table) {
String tableName;
TableWithNullOption nullOptionTable = null;
if (table instanceof TableWithNullOption) {
nullOptionTable = (TableWithNullOption) table;
tableName = nullOptionTable.getTableName();
} else {
tab... | public class class_name {
@Override
public String getCacheKeyForTable(final Object table) {
String tableName;
TableWithNullOption nullOptionTable = null;
if (table instanceof TableWithNullOption) {
nullOptionTable = (TableWithNullOption) table; // depends on control dependency: [if], data = [none]
tableNa... |
public class class_name {
public AroundTimeoutType<SessionBeanType<T>> getOrCreateAroundTimeout()
{
List<Node> nodeList = childNode.get("around-timeout");
if (nodeList != null && nodeList.size() > 0)
{
return new AroundTimeoutTypeImpl<SessionBeanType<T>>(this, "around-timeout", childNode... | public class class_name {
public AroundTimeoutType<SessionBeanType<T>> getOrCreateAroundTimeout()
{
List<Node> nodeList = childNode.get("around-timeout");
if (nodeList != null && nodeList.size() > 0)
{
return new AroundTimeoutTypeImpl<SessionBeanType<T>>(this, "around-timeout", childNode... |
public class class_name {
protected Cookie getCookieFromRequest(String name, HttpServletRequest request) {
final Cookie[] cookies = request.getCookies();
if (cookies == null) { // getCookies() returns null if there aren't any
return null;
}
for (final Cookie cookie : cookie... | public class class_name {
protected Cookie getCookieFromRequest(String name, HttpServletRequest request) {
final Cookie[] cookies = request.getCookies();
if (cookies == null) { // getCookies() returns null if there aren't any
return null; // depends on control dependency: [if], data = [none... |
public class class_name {
private boolean acceptTargetUrl(String urlS) {
// Whitelist has precedence. Only patterns on the white list are allowed
if (whiteList != null) {
return checkPattern(whiteList, urlS, true);
}
// Then blacklist: Everything on this list is forbidden
... | public class class_name {
private boolean acceptTargetUrl(String urlS) {
// Whitelist has precedence. Only patterns on the white list are allowed
if (whiteList != null) {
return checkPattern(whiteList, urlS, true); // depends on control dependency: [if], data = [(whiteList]
}
... |
public class class_name {
public final void setAdviseCategory(
final AdviseCategoryOfGs pAdviseCategory) {
this.adviseCategory = pAdviseCategory;
if (this.itsId == null) {
this.itsId = new GoodsAdviseCategoriesId();
}
this.itsId.setAdviseCategory(this.adviseCategory);
} } | public class class_name {
public final void setAdviseCategory(
final AdviseCategoryOfGs pAdviseCategory) {
this.adviseCategory = pAdviseCategory;
if (this.itsId == null) {
this.itsId = new GoodsAdviseCategoriesId(); // depends on control dependency: [if], data = [none]
}
this.itsId.setAdviseC... |
public class class_name {
public void setOutputArtifacts(java.util.Collection<Artifact> outputArtifacts) {
if (outputArtifacts == null) {
this.outputArtifacts = null;
return;
}
this.outputArtifacts = new java.util.ArrayList<Artifact>(outputArtifacts);
} } | public class class_name {
public void setOutputArtifacts(java.util.Collection<Artifact> outputArtifacts) {
if (outputArtifacts == null) {
this.outputArtifacts = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public ListPrincipalsResult withPrincipals(Principal... principals) {
if (this.principals == null) {
setPrincipals(new java.util.ArrayList<Principal>(principals.length));
}
for (Principal ele : principals) {
this.principals.add(ele);
}
... | public class class_name {
public ListPrincipalsResult withPrincipals(Principal... principals) {
if (this.principals == null) {
setPrincipals(new java.util.ArrayList<Principal>(principals.length)); // depends on control dependency: [if], data = [none]
}
for (Principal ele : principal... |
public class class_name {
public AVFile getAVFile() {
if (actualFile != null) {
return actualFile;
} else if (null != file && file.containsKey(FILE_URL)) {
Map<String, Object> avfileMeta = null;
if (file.containsKey(FILE_META)) {
avfileMeta = (Map) file.get(FILE_META);
}
A... | public class class_name {
public AVFile getAVFile() {
if (actualFile != null) {
return actualFile; // depends on control dependency: [if], data = [none]
} else if (null != file && file.containsKey(FILE_URL)) {
Map<String, Object> avfileMeta = null;
if (file.containsKey(FILE_META)) {
a... |
public class class_name {
public void setOriginEndpoints(java.util.Collection<OriginEndpoint> originEndpoints) {
if (originEndpoints == null) {
this.originEndpoints = null;
return;
}
this.originEndpoints = new java.util.ArrayList<OriginEndpoint>(originEndpoints);
} ... | public class class_name {
public void setOriginEndpoints(java.util.Collection<OriginEndpoint> originEndpoints) {
if (originEndpoints == null) {
this.originEndpoints = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
public V put(final int key, final V value) {
int index = (key & 0x7FFFFFFF) % elementData.length;
IntEntry<V> entry = elementData[index];
while (entry != null && key != entry.key) {
entry = entry.nextInSlot;
}
if (entry == null) {
if (++elementCount > threshold) {
rehash... | public class class_name {
public V put(final int key, final V value) {
int index = (key & 0x7FFFFFFF) % elementData.length;
IntEntry<V> entry = elementData[index];
while (entry != null && key != entry.key) {
entry = entry.nextInSlot; // depends on control dependency: [while], data = [none]
}
if (entry =... |
public class class_name {
private void resize() {
width = getWidth() - getInsets().getLeft() - getInsets().getRight();
height = getHeight() - getInsets().getTop() - getInsets().getBottom();
pixelSize = (width / cols) < (height / ro... | public class class_name {
private void resize() {
width = getWidth() - getInsets().getLeft() - getInsets().getRight();
height = getHeight() - getInsets().getTop() - getInsets().getBottom();
pixelSize = (width / cols) < (height / ro... |
public class class_name {
protected synchronized void copy(Writable other) {
if (other != null) {
try {
DataOutputBuffer out = new DataOutputBuffer();
other.write(out);
DataInputBuffer in = new DataInputBuffer();
in.reset(out.getData(), out.getLength());
readFields(in)... | public class class_name {
protected synchronized void copy(Writable other) {
if (other != null) {
try {
DataOutputBuffer out = new DataOutputBuffer();
other.write(out); // depends on control dependency: [try], data = [none]
DataInputBuffer in = new DataInputBuffer();
in.reset(... |
public class class_name {
static public char normalize(char input, int format) {
if (NORMALIZE_LOWER == format) {
return toLower(input);
}
if (NORMALIZE_UPPER == format) {
return toUpper(input);
}
return input;
} } | public class class_name {
static public char normalize(char input, int format) {
if (NORMALIZE_LOWER == format) {
return toLower(input); // depends on control dependency: [if], data = [none]
}
if (NORMALIZE_UPPER == format) {
return toUpper(input); // depends on control ... |
public class class_name {
private boolean smo(double epsgr) {
SupportVector i = svmax;
int ii = gmaxindex;
double old_alpha_i = i.alpha[ii];
if (i.kcache == null) {
gram(i);
}
SupportVector j = svmin;
int jj = gminindex;
doub... | public class class_name {
private boolean smo(double epsgr) {
SupportVector i = svmax;
int ii = gmaxindex;
double old_alpha_i = i.alpha[ii];
if (i.kcache == null) {
gram(i); // depends on control dependency: [if], data = [none]
}
SupportVector j = svmin; ... |
public class class_name {
public FlowStepRule moveFlowStepEntryRuleDown(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.postJson(
... | public class class_name {
public FlowStepRule moveFlowStepEntryRuleDown(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [if], data = [none]
}... |
public class class_name {
public static QueryFilter or(QueryFilter... queryFilters) {
QueryFilter result = null;
for (QueryFilter q : queryFilters) {
result = result == null ? q : result.or(q);
}
return result;
} } | public class class_name {
public static QueryFilter or(QueryFilter... queryFilters) {
QueryFilter result = null;
for (QueryFilter q : queryFilters) {
result = result == null ? q : result.or(q); // depends on control dependency: [for], data = [q]
}
return result;
} } |
public class class_name {
@Deprecated
public Object getProperty(String name) {
CleverTapAPI cleverTapAPI = weakReference.get();
if (cleverTapAPI == null) {
Logger.d("CleverTap Instance is null.");
return null;
} else {
return cleverTapAPI.getProperty(name... | public class class_name {
@Deprecated
public Object getProperty(String name) {
CleverTapAPI cleverTapAPI = weakReference.get();
if (cleverTapAPI == null) {
Logger.d("CleverTap Instance is null."); // depends on control dependency: [if], data = [none]
return null; // depends ... |
public class class_name {
private ArrayDBIDs updateKNNsAfterInsertion(DBIDs ids) {
ArrayModifiableDBIDs rkNN_ids = DBIDUtil.newArray();
DBIDs oldids = DBIDUtil.difference(relation.getDBIDs(), ids);
for(DBIDIter iter = oldids.iter(); iter.valid(); iter.advance()) {
KNNList kNNs = storage.get(iter);
... | public class class_name {
private ArrayDBIDs updateKNNsAfterInsertion(DBIDs ids) {
ArrayModifiableDBIDs rkNN_ids = DBIDUtil.newArray();
DBIDs oldids = DBIDUtil.difference(relation.getDBIDs(), ids);
for(DBIDIter iter = oldids.iter(); iter.valid(); iter.advance()) {
KNNList kNNs = storage.get(iter);
... |
public class class_name {
public int parseParameters(String[] args) {
// check for action
if (args.length < 1) {
CliFrontendParser.printHelp(customCommandLines);
System.out.println("Please specify an action.");
return 1;
}
// get action
String action = args[0];
// remove action from parameters
... | public class class_name {
public int parseParameters(String[] args) {
// check for action
if (args.length < 1) {
CliFrontendParser.printHelp(customCommandLines); // depends on control dependency: [if], data = [none]
System.out.println("Please specify an action."); // depends on control dependency: [if], dat... |
public class class_name {
private int paethPredictor(byte[] line, byte[] previousLine, int x, int xp) {
int a = 0xFF & ((xp < 0) ? 0 : line[xp]);
int b = 0xFF & previousLine[x];
int c = 0xFF & ((xp < 0) ? 0 : previousLine[xp]);
int p = a + b - c;
int pa = (p >= a) ? (p - a) : -(p - a);
int pb = (p >= b) ?... | public class class_name {
private int paethPredictor(byte[] line, byte[] previousLine, int x, int xp) {
int a = 0xFF & ((xp < 0) ? 0 : line[xp]);
int b = 0xFF & previousLine[x];
int c = 0xFF & ((xp < 0) ? 0 : previousLine[xp]);
int p = a + b - c;
int pa = (p >= a) ? (p - a) : -(p - a);
int pb = (p >= b) ?... |
public class class_name {
private Node tryAppend(Node s, boolean haveData) {
for (Node t = tail, p = t;;) { // move p to last node and append
Node n, u; // temps for reads of next & tail
if (p == null && (p = head) == null) {
if (casHead(nul... | public class class_name {
private Node tryAppend(Node s, boolean haveData) {
for (Node t = tail, p = t;;) { // move p to last node and append
Node n, u; // temps for reads of next & tail
if (p == null && (p = head) == null) {
if (casHead(nul... |
public class class_name {
public static long[] toBitset(Itemset i, long[] bits) {
for(int it = i.iter(); i.iterValid(it); it = i.iterAdvance(it)) {
BitsUtil.setI(bits, i.iterDim(it));
}
return bits;
} } | public class class_name {
public static long[] toBitset(Itemset i, long[] bits) {
for(int it = i.iter(); i.iterValid(it); it = i.iterAdvance(it)) {
BitsUtil.setI(bits, i.iterDim(it)); // depends on control dependency: [for], data = [it]
}
return bits;
} } |
public class class_name {
public final void setPropositionDefinitions(PropositionDefinition[] propDefs) {
if (propDefs == null) {
propDefs = EMPTY_PROP_DEF_ARRAY;
}
this.propDefs = propDefs.clone();
} } | public class class_name {
public final void setPropositionDefinitions(PropositionDefinition[] propDefs) {
if (propDefs == null) {
propDefs = EMPTY_PROP_DEF_ARRAY; // depends on control dependency: [if], data = [none]
}
this.propDefs = propDefs.clone();
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.