code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public <K,V> Map<K,V> getBigMap(String name, Class<K> keyClass, Class<V> valueClass, StorageEngine.MapType type, StorageEngine.StorageHint storageHint, boolean isConcurrent, boolean isTemporary) {
assertConnectionOpen();
if(storageHint == StorageEngine.S... | public class class_name {
@Override
public <K,V> Map<K,V> getBigMap(String name, Class<K> keyClass, Class<V> valueClass, StorageEngine.MapType type, StorageEngine.StorageHint storageHint, boolean isConcurrent, boolean isTemporary) {
assertConnectionOpen();
if(storageHint == StorageEngine.S... |
public class class_name {
public Object invokeBestMethodOnTarget( String[] methodNames,
final Object target,
final Object... arguments )
throws NoSuchMethodException, SecurityException, IllegalArgumentException, IllegalAcce... | public class class_name {
public Object invokeBestMethodOnTarget( String[] methodNames,
final Object target,
final Object... arguments )
throws NoSuchMethodException, SecurityException, IllegalArgumentException, IllegalAcce... |
public class class_name {
public boolean disapproveTranslation(String appid, String langCode, String key) {
if (StringUtils.isBlank(langCode) || key == null || getDefaultLanguageCode().equals(langCode)) {
return false;
}
Sysprop s = dao.read(appid, keyPrefix.concat(langCode));
if (s != null) {
String val... | public class class_name {
public boolean disapproveTranslation(String appid, String langCode, String key) {
if (StringUtils.isBlank(langCode) || key == null || getDefaultLanguageCode().equals(langCode)) {
return false; // depends on control dependency: [if], data = [none]
}
Sysprop s = dao.read(appid, keyPref... |
public class class_name {
private void initNotificationBuilder(Context context) {
// inti builder.
mNotificationBuilder = new NotificationCompat.Builder(context);
mNotificationView = new RemoteViews(context.getPackageName(),
R.layout.simple_sound_cloud_notification);
mN... | public class class_name {
private void initNotificationBuilder(Context context) {
// inti builder.
mNotificationBuilder = new NotificationCompat.Builder(context);
mNotificationView = new RemoteViews(context.getPackageName(),
R.layout.simple_sound_cloud_notification);
mN... |
public class class_name {
public void marshall(DeviceFilter deviceFilter, ProtocolMarshaller protocolMarshaller) {
if (deviceFilter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deviceFilter.get... | public class class_name {
public void marshall(DeviceFilter deviceFilter, ProtocolMarshaller protocolMarshaller) {
if (deviceFilter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deviceFilter.get... |
public class class_name {
public String getPrefix(int nodeHandle) {
nodes.readSlot(nodeHandle, gotslot);
short type = (short) (gotslot[0] & 0xFFFF);
String name = "";
if((type==ELEMENT_NODE) || (type==ATTRIBUTE_NODE)) {
int i=gotslot[3];... | public class class_name {
public String getPrefix(int nodeHandle) {
nodes.readSlot(nodeHandle, gotslot);
short type = (short) (gotslot[0] & 0xFFFF);
String name = "";
if((type==ELEMENT_NODE) || (type==ATTRIBUTE_NODE)) {
int i=gotslot[3];... |
public class class_name {
private Expr parseBitwiseOrExpression(EnclosingScope scope, boolean terminated) {
int start = index;
Expr lhs = parseBitwiseXorExpression(scope, terminated);
if (tryAndMatch(terminated, VerticalBar) != null) {
Expr rhs = parseExpression(scope, terminated);
return annotateSourceLo... | public class class_name {
private Expr parseBitwiseOrExpression(EnclosingScope scope, boolean terminated) {
int start = index;
Expr lhs = parseBitwiseXorExpression(scope, terminated);
if (tryAndMatch(terminated, VerticalBar) != null) {
Expr rhs = parseExpression(scope, terminated);
return annotateSourceLo... |
public class class_name {
private String parseValue(String fieldType, Object value) {
if (TypeConver.isBasicType(fieldType)) {
if (value != null) {
return value.toString();
} else {
return null;
}
}
return null;
} } | public class class_name {
private String parseValue(String fieldType, Object value) {
if (TypeConver.isBasicType(fieldType)) {
if (value != null) {
return value.toString(); // depends on control dependency: [if], data = [none]
} else {
return null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
void unregisterEntry(ListIterator<PathElement> iterator, String value, ConcreteNotificationHandlerRegistration.NotificationHandlerEntry entry) {
NotificationHandlerNodeRegistry registry = childRegistries.get(value);
if (registry == null) {
return;
}
... | public class class_name {
void unregisterEntry(ListIterator<PathElement> iterator, String value, ConcreteNotificationHandlerRegistration.NotificationHandlerEntry entry) {
NotificationHandlerNodeRegistry registry = childRegistries.get(value);
if (registry == null) {
return; // depends on con... |
public class class_name {
public String getDataImage(boolean forceUpdate, final Map<String, File> pluginFiles, String imageName)
throws IOException, SettingsBuildingException, InterruptedException {
String existedDataImage = null;
final List<Image> images = getDockerCli().listImagesCmd()
... | public class class_name {
public String getDataImage(boolean forceUpdate, final Map<String, File> pluginFiles, String imageName)
throws IOException, SettingsBuildingException, InterruptedException {
String existedDataImage = null;
final List<Image> images = getDockerCli().listImagesCmd()
... |
public class class_name {
public Q setMap(final Map parameters) {
if (parameters == null) {
return _this();
}
init();
query.forEachNamedParameter(p -> {
final String paramName = p.name;
setObject(paramName, parameters.get(paramName));
});
return _this();
} } | public class class_name {
public Q setMap(final Map parameters) {
if (parameters == null) {
return _this(); // depends on control dependency: [if], data = [none]
}
init();
query.forEachNamedParameter(p -> {
final String paramName = p.name;
setObject(paramName, parameters.get(paramName));
});
retur... |
public class class_name {
@VisibleForTesting
int getValueFromList(final List<Integer> values, int index, final AtomicInteger shift) {
Preconditions.checkNotNullNorEmpty(values, "List must not be empty");
if (index < 0) {
index = index + values.size();
shift.incrementAndGet()... | public class class_name {
@VisibleForTesting
int getValueFromList(final List<Integer> values, int index, final AtomicInteger shift) {
Preconditions.checkNotNullNorEmpty(values, "List must not be empty");
if (index < 0) {
index = index + values.size(); // depends on control dependency: [... |
public class class_name {
public void marshall(BatchDeleteImageRequest batchDeleteImageRequest, ProtocolMarshaller protocolMarshaller) {
if (batchDeleteImageRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(BatchDeleteImageRequest batchDeleteImageRequest, ProtocolMarshaller protocolMarshaller) {
if (batchDeleteImageRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
@SuppressWarnings("checkstyle:npathcomplexity")
public static IClasspathEntry[][] decodeClasspath(String projectName, IPath projectRootAbsoluteFullPath, String xmlClasspath,
Map<IPath, UnknownXmlElements> unknownElements) throws IOException, ClasspathEntry.AssertionFailedExcep... | public class class_name {
@SuppressWarnings("checkstyle:npathcomplexity")
public static IClasspathEntry[][] decodeClasspath(String projectName, IPath projectRootAbsoluteFullPath, String xmlClasspath,
Map<IPath, UnknownXmlElements> unknownElements) throws IOException, ClasspathEntry.AssertionFailedExcep... |
public class class_name {
void _fireEvent(ActivityHandle realHandle, ActivityHandle refHandle,
FireableEventType eventType, Object event, Address address,
ReceivableService receivableService, int eventFlags, final SleeTransaction barrierTx)
throws ActivityIsEndingException, SLEEException {
final ActivityCon... | public class class_name {
void _fireEvent(ActivityHandle realHandle, ActivityHandle refHandle,
FireableEventType eventType, Object event, Address address,
ReceivableService receivableService, int eventFlags, final SleeTransaction barrierTx)
throws ActivityIsEndingException, SLEEException {
final ActivityCon... |
public class class_name {
protected boolean addDependencies(DependencyContainer container)
{
/* XXX:
if (_classPath instanceof JarPath) {
container.add(_depend);
return false;
}
else
*/
if (_hasJNIReload) {
container.add(this);
return true;
}
else if (_sourceP... | public class class_name {
protected boolean addDependencies(DependencyContainer container)
{
/* XXX:
if (_classPath instanceof JarPath) {
container.add(_depend);
return false;
}
else
*/
if (_hasJNIReload) {
container.add(this); // depends on control dependency: [if], data =... |
public class class_name {
public static ByteBuf copiedBuffer(ByteBuffer... buffers) {
switch (buffers.length) {
case 0:
return EMPTY_BUFFER;
case 1:
return copiedBuffer(buffers[0]);
}
// Merge the specified buffers into one buffer.
ByteOrder orde... | public class class_name {
public static ByteBuf copiedBuffer(ByteBuffer... buffers) {
switch (buffers.length) {
case 0:
return EMPTY_BUFFER;
case 1:
return copiedBuffer(buffers[0]);
}
// Merge the specified buffers into one buffer.
ByteOrder orde... |
public class class_name {
public void revertLabels(@NonNull INDArray[] labels, INDArray[] labelsMask) {
for (int i = 0; i < labels.length; i++) {
INDArray mask = (labelsMask == null ? null : labelsMask[i]);
revertLabels(labels[i], mask, i);
}
} } | public class class_name {
public void revertLabels(@NonNull INDArray[] labels, INDArray[] labelsMask) {
for (int i = 0; i < labels.length; i++) {
INDArray mask = (labelsMask == null ? null : labelsMask[i]);
revertLabels(labels[i], mask, i); // depends on control dependency: [for], data ... |
public class class_name {
public void into(@NonNull ImageView target, @Nullable Callback callback) {
long started = System.nanoTime();
checkMain();
if (target == null) {
throw new IllegalArgumentException("Target must not be null.");
}
if (!data.hasImage()) {
picasso.cancelRequest(tar... | public class class_name {
public void into(@NonNull ImageView target, @Nullable Callback callback) {
long started = System.nanoTime();
checkMain();
if (target == null) {
throw new IllegalArgumentException("Target must not be null.");
}
if (!data.hasImage()) {
picasso.cancelRequest(tar... |
public class class_name {
public Observable<ServiceResponse<Page<SkuInfoInner>>> listWorkerPoolSkusNextWithServiceResponseAsync(final String nextPageLink) {
return listWorkerPoolSkusNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<SkuInfoInner>>, Observable<ServiceRespons... | public class class_name {
public Observable<ServiceResponse<Page<SkuInfoInner>>> listWorkerPoolSkusNextWithServiceResponseAsync(final String nextPageLink) {
return listWorkerPoolSkusNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<SkuInfoInner>>, Observable<ServiceRespons... |
public class class_name {
public java.lang.String getUfsFingerprint() {
java.lang.Object ref = ufsFingerprint_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.Str... | public class class_name {
public java.lang.String getUfsFingerprint() {
java.lang.Object ref = ufsFingerprint_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref; // depends on control dependency: [if], data = [none]
} else {
com.google.protobuf.ByteString bs =
(co... |
public class class_name {
public void insert_us(final DeviceData deviceData, final int[] argin) {
final short[] val = new short[argin.length];
for (int i = 0 ; i<argin.length ; i++) {
val[i] = (short) (argin[i] & 0xFFFF);
}
DevVarUShortArrayHelper.insert(deviceData.getAny()... | public class class_name {
public void insert_us(final DeviceData deviceData, final int[] argin) {
final short[] val = new short[argin.length];
for (int i = 0 ; i<argin.length ; i++) {
val[i] = (short) (argin[i] & 0xFFFF); // depends on control dependency: [for], data = [i]
}
... |
public class class_name {
@Override
public void loadStatementAnnotationMap(StatementAnnotationMapTable samt)
throws SQLException {
Map<Integer, Set<AnnotationPair>> sidAnnotationIndex =
samt.getStatementAnnotationPairsIndex();
PreparedStatement saps = getPreparedStateme... | public class class_name {
@Override
public void loadStatementAnnotationMap(StatementAnnotationMapTable samt)
throws SQLException {
Map<Integer, Set<AnnotationPair>> sidAnnotationIndex =
samt.getStatementAnnotationPairsIndex();
PreparedStatement saps = getPreparedStateme... |
public class class_name {
public void setFullFileName(String fullFileName) {
fullFileName = StringSupport.replaceAll(fullFileName, "\\", "/");
fullFileName = StringSupport.replaceAll(fullFileName, "//", "/");
int lastFileSeparator = fullFileName.lastIndexOf('/');
if (lastFileSeparator != -1) {
path = fullF... | public class class_name {
public void setFullFileName(String fullFileName) {
fullFileName = StringSupport.replaceAll(fullFileName, "\\", "/");
fullFileName = StringSupport.replaceAll(fullFileName, "//", "/");
int lastFileSeparator = fullFileName.lastIndexOf('/');
if (lastFileSeparator != -1) {
path = fullF... |
public class class_name {
@Override
public E poll() {
// local load of field to avoid repeated loads after volatile reads
final long[] sBuffer = sequenceBuffer;
final long mask = this.mask;
long cIndex;
long seq;
long seqOffset;
long expectedSeq;
lon... | public class class_name {
@Override
public E poll() {
// local load of field to avoid repeated loads after volatile reads
final long[] sBuffer = sequenceBuffer;
final long mask = this.mask;
long cIndex;
long seq;
long seqOffset;
long expectedSeq;
lon... |
public class class_name {
@POST
@Path("/worker")
@Consumes(MediaType.APPLICATION_JSON)
@ResourceFilters(ConfigResourceFilter.class)
public Response setWorkerConfig(
final WorkerBehaviorConfig workerBehaviorConfig,
@HeaderParam(AuditManager.X_DRUID_AUTHOR) @DefaultValue("") final String author,
... | public class class_name {
@POST
@Path("/worker")
@Consumes(MediaType.APPLICATION_JSON)
@ResourceFilters(ConfigResourceFilter.class)
public Response setWorkerConfig(
final WorkerBehaviorConfig workerBehaviorConfig,
@HeaderParam(AuditManager.X_DRUID_AUTHOR) @DefaultValue("") final String author,
... |
public class class_name {
public boolean addTransactionAware(TransactionAware txAware) {
// If the txAware is newly added, call startTx as well if there is an active transaction
boolean added = txAwares.add(txAware);
if (added && currentTx != null) {
txAware.startTx(currentTx);
}
return added... | public class class_name {
public boolean addTransactionAware(TransactionAware txAware) {
// If the txAware is newly added, call startTx as well if there is an active transaction
boolean added = txAwares.add(txAware);
if (added && currentTx != null) {
txAware.startTx(currentTx); // depends on control ... |
public class class_name {
private void addFilesFromDir(File dir) {
File[] files = dir.listFiles();
for (int i = 0; i < files.length; i++) {
if (!files[i].isDirectory()) {
mFiles.add(files[i]);
} else if (mRecursive) {
addFilesFromDir(files[i]);
}
}
} } | public class class_name {
private void addFilesFromDir(File dir) {
File[] files = dir.listFiles();
for (int i = 0; i < files.length; i++) {
if (!files[i].isDirectory()) {
mFiles.add(files[i]); // depends on control dependency: [if], data = [none]
} else if (mRecursive) {
addFilesFro... |
public class class_name {
public void sort() {
if (!sorted) {
sort(heap, Math.min(k,n));
sorted = true;
}
} } | public class class_name {
public void sort() {
if (!sorted) {
sort(heap, Math.min(k,n)); // depends on control dependency: [if], data = [none]
sorted = true; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
String getKeyPrefix(StatementPartitioning partitioning, DeterminismMode detMode, String joinOrder) {
// no caching for inferred yet
if (partitioning.isInferred()) {
return null;
}
String joinOrderPrefix = "#";
if (joinOrder != null) {
... | public class class_name {
String getKeyPrefix(StatementPartitioning partitioning, DeterminismMode detMode, String joinOrder) {
// no caching for inferred yet
if (partitioning.isInferred()) {
return null; // depends on control dependency: [if], data = [none]
}
String joinOrd... |
public class class_name {
protected synchronized HierarchicalType getDataType(String type) {
HierarchicalType dataType = typeInstances.get(type);
//todo: are there still cases where type can be null?
if (dataType == null) {
dataType = createDataType(type);
typeInstances.... | public class class_name {
protected synchronized HierarchicalType getDataType(String type) {
HierarchicalType dataType = typeInstances.get(type);
//todo: are there still cases where type can be null?
if (dataType == null) {
dataType = createDataType(type); // depends on control depe... |
public class class_name {
protected void createFireEventMethods(Collection<EventEntryDescriptor> mEventEntries) {
if (mEventEntries == null)
return;
for (EventEntryDescriptor mEventEntry : mEventEntries) {
if (mEventEntry.isFired()) {
String methodName = "fire" + mEventEntry.getEventName();
CtMethod ... | public class class_name {
protected void createFireEventMethods(Collection<EventEntryDescriptor> mEventEntries) {
if (mEventEntries == null)
return;
for (EventEntryDescriptor mEventEntry : mEventEntries) {
if (mEventEntry.isFired()) {
String methodName = "fire" + mEventEntry.getEventName();
CtMethod ... |
public class class_name {
public void marshall(IdentityProviderType identityProviderType, ProtocolMarshaller protocolMarshaller) {
if (identityProviderType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(IdentityProviderType identityProviderType, ProtocolMarshaller protocolMarshaller) {
if (identityProviderType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
public final void putCharLittleEndian(int index, char value) {
if (LITTLE_ENDIAN) {
putChar(index, value);
} else {
putChar(index, Character.reverseBytes(value));
}
} } | public class class_name {
public final void putCharLittleEndian(int index, char value) {
if (LITTLE_ENDIAN) {
putChar(index, value); // depends on control dependency: [if], data = [none]
} else {
putChar(index, Character.reverseBytes(value)); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void addDate(ICalDate date, boolean floating, TimeZone tz) {
if (date != null && date.hasTime() && !floating && tz != null) {
dates.add(date);
}
} } | public class class_name {
public void addDate(ICalDate date, boolean floating, TimeZone tz) {
if (date != null && date.hasTime() && !floating && tz != null) {
dates.add(date); // depends on control dependency: [if], data = [(date]
}
} } |
public class class_name {
public static boolean getF(GrayU8 image, int x, int y) {
if (image.isInBounds(x, y)) {
return image.get(x, y) != 0;
} else {
return false;
}
} } | public class class_name {
public static boolean getF(GrayU8 image, int x, int y) {
if (image.isInBounds(x, y)) {
return image.get(x, y) != 0; // depends on control dependency: [if], data = [none]
} else {
return false; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public DateFormat getDateFormat(int dateStyle, int timeStyle) {
if (dateStyle == DF_NONE && timeStyle == DF_NONE
|| dateStyle < 0 || dateStyle >= DF_LIMIT
|| timeStyle < 0 || timeStyle >= DF_LIMIT) {
throw new IllegalArgumentException("Illeg... | public class class_name {
public DateFormat getDateFormat(int dateStyle, int timeStyle) {
if (dateStyle == DF_NONE && timeStyle == DF_NONE
|| dateStyle < 0 || dateStyle >= DF_LIMIT
|| timeStyle < 0 || timeStyle >= DF_LIMIT) {
throw new IllegalArgumentException("Illeg... |
public class class_name {
@VisibleForTesting
void exitIdleMode() {
syncContext.throwIfNotInThisSynchronizationContext();
if (shutdown.get() || panicMode) {
return;
}
if (inUseStateAggregator.isInUse()) {
// Cancel the timer now, so that a racing due timer will not put Channel on idleness
... | public class class_name {
@VisibleForTesting
void exitIdleMode() {
syncContext.throwIfNotInThisSynchronizationContext();
if (shutdown.get() || panicMode) {
return; // depends on control dependency: [if], data = [none]
}
if (inUseStateAggregator.isInUse()) {
// Cancel the timer now, so tha... |
public class class_name {
public synchronized void clear() {
for (int i = 0; i < planes; i++) {
readPointer[i] = writePointer[i] = 0;
bytesToRead[i] = 0;
bytesToWrite[i] = buffer[i].capacity();
}
} } | public class class_name {
public synchronized void clear() {
for (int i = 0; i < planes; i++) {
readPointer[i] = writePointer[i] = 0; // depends on control dependency: [for], data = [i]
bytesToRead[i] = 0; // depends on control dependency: [for], data = [i]
bytesToWrite[i] = buffer[i].capacity(); // depends... |
public class class_name {
private void writeTask(Task mpxjTask, List<net.sf.mpxj.planner.schema.Task> taskList) throws JAXBException
{
net.sf.mpxj.planner.schema.Task plannerTask = m_factory.createTask();
taskList.add(plannerTask);
plannerTask.setEnd(getDateTimeString(mpxjTask.getFinish()));
... | public class class_name {
private void writeTask(Task mpxjTask, List<net.sf.mpxj.planner.schema.Task> taskList) throws JAXBException
{
net.sf.mpxj.planner.schema.Task plannerTask = m_factory.createTask();
taskList.add(plannerTask);
plannerTask.setEnd(getDateTimeString(mpxjTask.getFinish()));
... |
public class class_name {
public void addZone(String id, Component zone, String constraints) {
// is there already a zone with this id?
Component previousZone = getZone(id);
if (previousZone != null) {
remove(previousZone);
idToZones.remove(id);
}
if (zo... | public class class_name {
public void addZone(String id, Component zone, String constraints) {
// is there already a zone with this id?
Component previousZone = getZone(id);
if (previousZone != null) {
remove(previousZone); // depends on control dependency: [if], data = [(previousZo... |
public class class_name {
@Override
protected ImmutableList<String> parseElements(String s) {
ImmutableList.Builder<String> titleCollection = ImmutableList.builder();
Optional<XmlElement> childOpt = XmlConverter.getChildOpt(s, "query", "imageusage");
if (childOpt.isPresent()) {
for (XmlElement elem... | public class class_name {
@Override
protected ImmutableList<String> parseElements(String s) {
ImmutableList.Builder<String> titleCollection = ImmutableList.builder();
Optional<XmlElement> childOpt = XmlConverter.getChildOpt(s, "query", "imageusage");
if (childOpt.isPresent()) {
for (XmlElement elem... |
public class class_name {
private final void _tryUnlink() {
if (0 >= _cursorCount && _state == LOGICALLY_UNLINKED) {
_previousLink._nextLink = _nextLink;
_nextLink._previousLink = _previousLink;
_previousLink = null;
_nextLink = null;
// Defect 240039... | public class class_name {
private final void _tryUnlink() {
if (0 >= _cursorCount && _state == LOGICALLY_UNLINKED) {
_previousLink._nextLink = _nextLink; // depends on control dependency: [if], data = [none]
_nextLink._previousLink = _previousLink; // depends on control dependency: [if]... |
public class class_name {
static boolean isErrorStatus(HttpResponse httpResponse, HttpResponseDecodeData decodeData) {
final int[] expectedStatuses = decodeData.expectedStatusCodes();
if (expectedStatuses != null) {
return !contains(expectedStatuses, httpResponse.statusCode());
} el... | public class class_name {
static boolean isErrorStatus(HttpResponse httpResponse, HttpResponseDecodeData decodeData) {
final int[] expectedStatuses = decodeData.expectedStatusCodes();
if (expectedStatuses != null) {
return !contains(expectedStatuses, httpResponse.statusCode()); // depends o... |
public class class_name {
public static String stripHtmlFromPropertyIfNecessary(String propertyName, String value) {
if (propertyName.equals(CmsPropertyDefinition.PROPERTY_DESCRIPTION_HTML)) {
try {
return CmsHtmlExtractor.extractText(value, CmsEncoder.ENCODING_UTF_8);
... | public class class_name {
public static String stripHtmlFromPropertyIfNecessary(String propertyName, String value) {
if (propertyName.equals(CmsPropertyDefinition.PROPERTY_DESCRIPTION_HTML)) {
try {
return CmsHtmlExtractor.extractText(value, CmsEncoder.ENCODING_UTF_8); // depends o... |
public class class_name {
private Set<Tuple> getOnceTupleDefs( final List<VarDef> combinedVars)
{
try
{
return
new HashSet<Tuple>(
IteratorUtils.toList(
IteratorUtils.transformedIterator(
getOnceTuples(),
tupleRef -> toTuple( combinedVars, t... | public class class_name {
private Set<Tuple> getOnceTupleDefs( final List<VarDef> combinedVars)
{
try
{
return
new HashSet<Tuple>(
IteratorUtils.toList(
IteratorUtils.transformedIterator(
getOnceTuples(),
tupleRef -> toTuple( combinedVars, t... |
public class class_name {
public Set<String> getAllConfiguredTenantNames() {
final Settings roles = getRolesSettings();
if (roles == null || roles.isEmpty()) {
return Collections.emptySet();
}
final Set<String> configuredTenants = new HashSet<>();
for (String sgRo... | public class class_name {
public Set<String> getAllConfiguredTenantNames() {
final Settings roles = getRolesSettings();
if (roles == null || roles.isEmpty()) {
return Collections.emptySet(); // depends on control dependency: [if], data = [none]
}
final Set<String> configu... |
public class class_name {
public Menu getContextMenu() {
if (menu == null) {
menu = new Menu();
menu.addItem(new AttributesAction(mapWidget));
menu.addItem(new MenuItemSeparator());
menu.addItem(new UndoOperationAction(mapWidget, this));
menu.addItem(new CancelEditingAction(mapWidget, (ParentEditContr... | public class class_name {
public Menu getContextMenu() {
if (menu == null) {
menu = new Menu(); // depends on control dependency: [if], data = [none]
menu.addItem(new AttributesAction(mapWidget)); // depends on control dependency: [if], data = [none]
menu.addItem(new MenuItemSeparator()); // depends on cont... |
public class class_name {
private List<Object> populate(Class<?> clazz, EntityMetadata metadata, Object rowId, List<String> relationNames,
MetamodelImpl metaModel) {
List<Object> result;
if (isCql3Enabled(metadata)) {
result = cqlClient.find(metaModel, metadata, rowId, relationNames... | public class class_name {
private List<Object> populate(Class<?> clazz, EntityMetadata metadata, Object rowId, List<String> relationNames,
MetamodelImpl metaModel) {
List<Object> result;
if (isCql3Enabled(metadata)) {
result = cqlClient.find(metaModel, metadata, rowId, relationNames... |
public class class_name {
public void load(InputStream stream, String separator) throws IOException, PropertiesException {
try(DataInputStream data = new DataInputStream(stream); Reader reader = new InputStreamReader(data); BufferedReader br = new BufferedReader(reader)) {
String line;
StringBuilder buffer... | public class class_name {
public void load(InputStream stream, String separator) throws IOException, PropertiesException {
try(DataInputStream data = new DataInputStream(stream); Reader reader = new InputStreamReader(data); BufferedReader br = new BufferedReader(reader)) {
String line;
StringBuilder buffer... |
public class class_name {
public DescribeLoadBalancerAttributesResult withAttributes(LoadBalancerAttribute... attributes) {
if (this.attributes == null) {
setAttributes(new java.util.ArrayList<LoadBalancerAttribute>(attributes.length));
}
for (LoadBalancerAttribute ele : attributes)... | public class class_name {
public DescribeLoadBalancerAttributesResult withAttributes(LoadBalancerAttribute... attributes) {
if (this.attributes == null) {
setAttributes(new java.util.ArrayList<LoadBalancerAttribute>(attributes.length)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public EEnum getImageEncodingRECID() {
if (imageEncodingRECIDEEnum == null) {
imageEncodingRECIDEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(117);
}
return imageEncodingRECIDEEnum;
} } | public class class_name {
public EEnum getImageEncodingRECID() {
if (imageEncodingRECIDEEnum == null) {
imageEncodingRECIDEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(117); // depends on control dependency: [if], data = [none]
}
return imageEncodingRECIDEE... |
public class class_name {
private static Queue<String> removePrefix(final List<String> input) {
if (input.size() < 2) {
return new LinkedList<>(input);
}
String resultingPrefix = "";
final String previousGreatestCommonPrefix = input.get(0).trim();
String greatestComm... | public class class_name {
private static Queue<String> removePrefix(final List<String> input) {
if (input.size() < 2) {
return new LinkedList<>(input); // depends on control dependency: [if], data = [none]
}
String resultingPrefix = "";
final String previousGreatestCommonPre... |
public class class_name {
public SecureUTF8String makePassword(SecureUTF8String masterPassword, Account account, final String inputText, final String username)
throws Exception {
// HMAC algorithm requires a key that is >0 length.
if ( account.isHmac() && masterPassword.length() == 0 ) {
... | public class class_name {
public SecureUTF8String makePassword(SecureUTF8String masterPassword, Account account, final String inputText, final String username)
throws Exception {
// HMAC algorithm requires a key that is >0 length.
if ( account.isHmac() && masterPassword.length() == 0 ) {
... |
public class class_name {
public static String getUriPath(String value) {
try {
URL url = new URL(value);
return url.getPath();
} catch (MalformedURLException e) {
return value;
}
} } | public class class_name {
public static String getUriPath(String value) {
try {
URL url = new URL(value);
return url.getPath(); // depends on control dependency: [try], data = [none]
} catch (MalformedURLException e) {
return value;
} // depends on control de... |
public class class_name {
public List<SQLResultSet> executeNativeSQLSynchronized(
NativeSQLQuery nativeSQLQueryParam) {
if(nativeSQLQueryParam == null)
{
return null;
}
if(nativeSQLQueryParam.getDatasourceName() == null ||
nativeSQLQueryParam.ge... | public class class_name {
public List<SQLResultSet> executeNativeSQLSynchronized(
NativeSQLQuery nativeSQLQueryParam) {
if(nativeSQLQueryParam == null)
{
return null; // depends on control dependency: [if], data = [none]
}
if(nativeSQLQueryParam.getDatasourceNa... |
public class class_name {
public String retrieveEndpointName(J2EEName j2eeName) {
for (Entry<String, J2EEName> entry : endpointNameJ2EENameMap.entrySet()) {
if (entry.getValue().equals(j2eeName)) {
return entry.getKey();
}
}
return null;
} } | public class class_name {
public String retrieveEndpointName(J2EEName j2eeName) {
for (Entry<String, J2EEName> entry : endpointNameJ2EENameMap.entrySet()) {
if (entry.getValue().equals(j2eeName)) {
return entry.getKey(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static Set<InvokableAnnotatedMethod<?>> getDecoratorMethods(BeanManagerImpl beanManager, WeldDecorator<?> decorator) {
ImmutableSet.Builder<InvokableAnnotatedMethod<?>> builder = ImmutableSet.builder();
for (Type type : decorator.getDecoratedTypes()) {
Enhan... | public class class_name {
public static Set<InvokableAnnotatedMethod<?>> getDecoratorMethods(BeanManagerImpl beanManager, WeldDecorator<?> decorator) {
ImmutableSet.Builder<InvokableAnnotatedMethod<?>> builder = ImmutableSet.builder();
for (Type type : decorator.getDecoratedTypes()) {
Enhan... |
public class class_name {
protected Response addContentPropertiesToResponse(ResponseBuilder response,
Map<String, String> properties) {
if (properties != null) {
// Set Accept-Ranges header
properties.remove(HttpHeaders.ACCEPT_RANGES... | public class class_name {
protected Response addContentPropertiesToResponse(ResponseBuilder response,
Map<String, String> properties) {
if (properties != null) {
// Set Accept-Ranges header
properties.remove(HttpHeaders.ACCEPT_RANGES... |
public class class_name {
public static void defineCopyBridges(ClassFile cf, Class leaf) {
for (Class c : gatherAllBridgeTypes(new HashSet<Class>(), leaf)) {
if (c != Object.class) {
defineCopyBridge(cf, leaf, c);
}
}
} } | public class class_name {
public static void defineCopyBridges(ClassFile cf, Class leaf) {
for (Class c : gatherAllBridgeTypes(new HashSet<Class>(), leaf)) {
if (c != Object.class) {
defineCopyBridge(cf, leaf, c);
// depends on control dependency: [if], data = [(c]
}... |
public class class_name {
private void resetWatcher() {
// Stop the current watcher.
stopWatcher();
// Update the template & target directories, based on the provided configuration directory.
if( this.templatesDIR == null ) {
this.logger.warning( "The templates directory was not specified. DM templating i... | public class class_name {
private void resetWatcher() {
// Stop the current watcher.
stopWatcher();
// Update the template & target directories, based on the provided configuration directory.
if( this.templatesDIR == null ) {
this.logger.warning( "The templates directory was not specified. DM templating i... |
public class class_name {
public void marshall(GetSpeechSynthesisTaskRequest getSpeechSynthesisTaskRequest, ProtocolMarshaller protocolMarshaller) {
if (getSpeechSynthesisTaskRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(GetSpeechSynthesisTaskRequest getSpeechSynthesisTaskRequest, ProtocolMarshaller protocolMarshaller) {
if (getSpeechSynthesisTaskRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public SuppressionInfo withExtendedSuppressions(
Symbol sym,
VisitorState state,
Set<Class<? extends Annotation>> customSuppressionAnnosToLookFor) {
boolean newInGeneratedCode = inGeneratedCode || isGenerated(sym, state);
boolean anyModification = newInGeneratedCode ... | public class class_name {
public SuppressionInfo withExtendedSuppressions(
Symbol sym,
VisitorState state,
Set<Class<? extends Annotation>> customSuppressionAnnosToLookFor) {
boolean newInGeneratedCode = inGeneratedCode || isGenerated(sym, state);
boolean anyModification = newInGeneratedCode ... |
public class class_name {
public <TRO> TransformedRuleContext<DPO, RI, RO, TRO> transform(Transformer<Collection<RO>,
TRO> resultHandlerInputTransformer) {
List<Transformer> transformers = new ArrayList<Transformer>();
if (resultHandlerInputTransformer != null) {
transformers.ad... | public class class_name {
public <TRO> TransformedRuleContext<DPO, RI, RO, TRO> transform(Transformer<Collection<RO>,
TRO> resultHandlerInputTransformer) {
List<Transformer> transformers = new ArrayList<Transformer>();
if (resultHandlerInputTransformer != null) {
transformers.ad... |
public class class_name {
public boolean executeKeyEvent(KeyEvent event) {
mTempRect.setEmpty();
if (!canScroll()) {
if (isFocused() && event.getKeyCode() != KeyEvent.KEYCODE_BACK) {
View currentFocused = findFocus();
if (currentFocused == this) currentFocused = null;
View nextFocused = FocusFinder... | public class class_name {
public boolean executeKeyEvent(KeyEvent event) {
mTempRect.setEmpty();
if (!canScroll()) {
if (isFocused() && event.getKeyCode() != KeyEvent.KEYCODE_BACK) {
View currentFocused = findFocus();
if (currentFocused == this) currentFocused = null;
View nextFocused = FocusFinder... |
public class class_name {
private void processContextEntry(ServiceReference<JAASLoginContextEntry> ref) {
String id = (String) ref.getProperty(KEY_ID);
String[] modulePids = (String[]) ref.getProperty(JAASLoginContextEntry.CFG_KEY_LOGIN_MODULE_REF);
boolean changedEntryContext = false;
... | public class class_name {
private void processContextEntry(ServiceReference<JAASLoginContextEntry> ref) {
String id = (String) ref.getProperty(KEY_ID);
String[] modulePids = (String[]) ref.getProperty(JAASLoginContextEntry.CFG_KEY_LOGIN_MODULE_REF);
boolean changedEntryContext = false;
... |
public class class_name {
private GenericCriteriaPrompt getPromptValue(FieldType field, byte[] block)
{
int textOffset = getPromptOffset(block);
String value = MPPUtility.getUnicodeString(m_criteriaData, m_criteriaTextStart + textOffset);
GenericCriteriaPrompt prompt = new GenericCriteriaPrompt(fi... | public class class_name {
private GenericCriteriaPrompt getPromptValue(FieldType field, byte[] block)
{
int textOffset = getPromptOffset(block);
String value = MPPUtility.getUnicodeString(m_criteriaData, m_criteriaTextStart + textOffset);
GenericCriteriaPrompt prompt = new GenericCriteriaPrompt(fi... |
public class class_name {
@Override protected void initGraphics() {
super.initGraphics();
mouseEventHandler = e -> {
final EventType TYPE = e.getEventType();
final Label SRC = (Label) e.getSource();
if (MouseEvent.MOUSE_PRESSED == TYPE) {
if (SR... | public class class_name {
@Override protected void initGraphics() {
super.initGraphics();
mouseEventHandler = e -> {
final EventType TYPE = e.getEventType();
final Label SRC = (Label) e.getSource();
if (MouseEvent.MOUSE_PRESSED == TYPE) {
if (SR... |
public class class_name {
static void createInstance(@NonNull Application application, @NonNull ApptentiveConfiguration configuration) {
final String apptentiveKey = configuration.getApptentiveKey();
final String apptentiveSignature = configuration.getApptentiveSignature();
final String baseURL = configuration.g... | public class class_name {
static void createInstance(@NonNull Application application, @NonNull ApptentiveConfiguration configuration) {
final String apptentiveKey = configuration.getApptentiveKey();
final String apptentiveSignature = configuration.getApptentiveSignature();
final String baseURL = configuration.g... |
public class class_name {
public static boolean JVMSupportsLargeMappedFiles() {
String arch = System.getProperty("os.arch");
if(arch==null || !arch.contains("64")) {
return false;
}
if(isWindows())
return false;
//TODO better check for 32bit JVM
... | public class class_name {
public static boolean JVMSupportsLargeMappedFiles() {
String arch = System.getProperty("os.arch");
if(arch==null || !arch.contains("64")) {
return false; // depends on control dependency: [if], data = [none]
}
if(isWindows())
return fal... |
public class class_name {
public ResolveInfo getDefaultActivity() {
synchronized (mInstanceLock) {
ensureConsistentState();
if (!mActivities.isEmpty()) {
return mActivities.get(0).resolveInfo;
}
}
return null;
} } | public class class_name {
public ResolveInfo getDefaultActivity() {
synchronized (mInstanceLock) {
ensureConsistentState();
if (!mActivities.isEmpty()) {
return mActivities.get(0).resolveInfo; // depends on control dependency: [if], data = [none]
}
}
... |
public class class_name {
protected IPromise<JsonObject> getDistributions(String module) {
Promise res = new Promise();
// http://registry.npmjs.org/-/package/react/dist-tags
http.getContent(config.getRepo()+"/-/package/"+module+"/dist-tags").then( (cont,err) -> {
if ( cont != null )... | public class class_name {
protected IPromise<JsonObject> getDistributions(String module) {
Promise res = new Promise();
// http://registry.npmjs.org/-/package/react/dist-tags
http.getContent(config.getRepo()+"/-/package/"+module+"/dist-tags").then( (cont,err) -> {
if ( cont != null )... |
public class class_name {
public ChronoOperator<PlainDate> asNextExactEvent() {
return date -> {
int year = date.getYear();
int month = AnnualDate.this.getMonth().getValue();
int dom = AnnualDate.this.getDayOfMonth();
if ((month < date.getMonth()) || ((month == ... | public class class_name {
public ChronoOperator<PlainDate> asNextExactEvent() {
return date -> {
int year = date.getYear();
int month = AnnualDate.this.getMonth().getValue();
int dom = AnnualDate.this.getDayOfMonth();
if ((month < date.getMonth()) || ((month == ... |
public class class_name {
public PlaybackState getFurthestPlaybackState() {
PlaybackState result = null;
for (PlaybackState state : playbackStateMap.values()) {
if (result == null || result.position < state.position) {
result = state;
}
}
return r... | public class class_name {
public PlaybackState getFurthestPlaybackState() {
PlaybackState result = null;
for (PlaybackState state : playbackStateMap.values()) {
if (result == null || result.position < state.position) {
result = state; // depends on control dependency: [if], ... |
public class class_name {
public static Method findMethodByAnnotationTag(Object target,String tag)
{
Method[] methods=target.getClass().getDeclaredMethods();
for(Method m:methods)
{
AnnotationTag function=m.getAnnotation(AnnotationTag.class);
if(function!=null && function.tag().equals(tag))
{
... | public class class_name {
public static Method findMethodByAnnotationTag(Object target,String tag)
{
Method[] methods=target.getClass().getDeclaredMethods();
for(Method m:methods)
{
AnnotationTag function=m.getAnnotation(AnnotationTag.class);
if(function!=null && function.tag().equals(tag))
{
... |
public class class_name {
public long writeLocked (@Nonnull final LongSupplier aSupplier)
{
writeLock ().lock ();
try
{
return aSupplier.getAsLong ();
}
finally
{
writeLock ().unlock ();
}
} } | public class class_name {
public long writeLocked (@Nonnull final LongSupplier aSupplier)
{
writeLock ().lock ();
try
{
return aSupplier.getAsLong (); // depends on control dependency: [try], data = [none]
}
finally
{
writeLock ().unlock ();
}
} } |
public class class_name {
public boolean showPrompts(String name, String instruction,
KBIPrompt[] prompts) {
for (int i = 0; i < prompts.length; i++) {
prompts[i].setResponse(password);
}
return true;
} } | public class class_name {
public boolean showPrompts(String name, String instruction,
KBIPrompt[] prompts) {
for (int i = 0; i < prompts.length; i++) {
prompts[i].setResponse(password); // depends on control dependency: [for], data = [i]
}
return true;
} } |
public class class_name {
@Override
public K ceilingKey(K key)
{
Entry<K, V> entry = entry(key, null);
Entry<K, V> ceiling = entrySet.ceiling(entry);
if (ceiling != null)
{
return ceiling.getKey();
}
return null;
} } | public class class_name {
@Override
public K ceilingKey(K key)
{
Entry<K, V> entry = entry(key, null);
Entry<K, V> ceiling = entrySet.ceiling(entry);
if (ceiling != null)
{
return ceiling.getKey();
// depends on control dependency: [if], data = [none]
... |
public class class_name {
protected void paintItem(final WTree tree, final WTree.ExpandMode mode, final TreeItemModel model, final List<Integer> rowIndex,
final XmlStringBuilder xml, final Set<String> selectedRows, final Set<String> expandedRows) {
String itemId = model.getItemId(rowIndex);
boolean selected =... | public class class_name {
protected void paintItem(final WTree tree, final WTree.ExpandMode mode, final TreeItemModel model, final List<Integer> rowIndex,
final XmlStringBuilder xml, final Set<String> selectedRows, final Set<String> expandedRows) {
String itemId = model.getItemId(rowIndex);
boolean selected =... |
public class class_name {
public void deleteByColumn(String schemaName, String tableName, String columnName, Object columnValue)
{
try
{
handler.deleteRow(columnValue, schemaName, tableName);
KunderaCoreUtils.printQuery("Delete data from " + tableName + " for PK " + columnVa... | public class class_name {
public void deleteByColumn(String schemaName, String tableName, String columnName, Object columnValue)
{
try
{
handler.deleteRow(columnValue, schemaName, tableName); // depends on control dependency: [try], data = [none]
KunderaCoreUtils.printQuery(... |
public class class_name {
public void marshall(DirectConnectGateway directConnectGateway, ProtocolMarshaller protocolMarshaller) {
if (directConnectGateway == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(DirectConnectGateway directConnectGateway, ProtocolMarshaller protocolMarshaller) {
if (directConnectGateway == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
public static void writeClassifier(LinearClassifier<?, ?> classifier, String writePath) {
try {
IOUtils.writeObjectToFile(classifier, writePath);
} catch (Exception e) {
throw new RuntimeException("Serialization failed: "+e.getMessage(), e);
}
} } | public class class_name {
public static void writeClassifier(LinearClassifier<?, ?> classifier, String writePath) {
try {
IOUtils.writeObjectToFile(classifier, writePath);
// depends on control dependency: [try], data = [none]
} catch (Exception e) {
throw new RuntimeException("Serialization fa... |
public class class_name {
public static void nodeWalker(NodeList childNodes, NodeElementParser parser) throws ParseException {
for (int i = 0; i < childNodes.getLength(); i++) {
Node item = childNodes.item(i);
String node = item.getNodeName();
if(item.getNodeType() == Node.E... | public class class_name {
public static void nodeWalker(NodeList childNodes, NodeElementParser parser) throws ParseException {
for (int i = 0; i < childNodes.getLength(); i++) {
Node item = childNodes.item(i);
String node = item.getNodeName();
if(item.getNodeType() == Node.E... |
public class class_name {
private void updateDefault(final Instance _inst,
final String _value)
{
try {
final Update update = new Update(_inst);
update.add("Default", _value);
update.execute();
} catch (final EFapsException e) {
... | public class class_name {
private void updateDefault(final Instance _inst,
final String _value)
{
try {
final Update update = new Update(_inst);
update.add("Default", _value); // depends on control dependency: [try], data = [none]
update.ex... |
public class class_name {
private void findPluginsForDescriptor(final CommandLinePluginDescriptor<?> pluginDescriptor)
{
final ClassFinder classFinder = new ClassFinder();
pluginDescriptor.getPackageNames().forEach(
pkg -> classFinder.find(pkg, pluginDescriptor.getPluginBaseClass())... | public class class_name {
private void findPluginsForDescriptor(final CommandLinePluginDescriptor<?> pluginDescriptor)
{
final ClassFinder classFinder = new ClassFinder();
pluginDescriptor.getPackageNames().forEach(
pkg -> classFinder.find(pkg, pluginDescriptor.getPluginBaseClass())... |
public class class_name {
public Access chooseDatasetAccess(List<Access> accessList) {
if (accessList.size() == 0)
return null;
Access access = null;
if (preferAccess != null) {
for (ServiceType type : preferAccess) {
access = findAccessByServiceType(accessList, type);
if (acce... | public class class_name {
public Access chooseDatasetAccess(List<Access> accessList) {
if (accessList.size() == 0)
return null;
Access access = null;
if (preferAccess != null) {
for (ServiceType type : preferAccess) {
access = findAccessByServiceType(accessList, type); // depends on co... |
public class class_name {
public synchronized <T extends EventListener> void add(Class<T> type, T listener) {
assert listener != null;
if (this.listeners == NULL) {
// if this is the first listener added,
// initialize the lists
this.listeners = new Object[] {type, listener};
} else {
// Otherwise co... | public class class_name {
public synchronized <T extends EventListener> void add(Class<T> type, T listener) {
assert listener != null;
if (this.listeners == NULL) {
// if this is the first listener added,
// initialize the lists
this.listeners = new Object[] {type, listener}; // depends on control depende... |
public class class_name {
private String utf8UrlEncode(String value) {
try {
return URLEncoder.encode(value, "UTF-8");
}
catch (UnsupportedEncodingException e) {
Error err = new AssertionError(
"The Java platform guarantees UTF-8 support, but it seemingly is not present.");
err.initCause(e);
thr... | public class class_name {
private String utf8UrlEncode(String value) {
try {
return URLEncoder.encode(value, "UTF-8"); // depends on control dependency: [try], data = [none]
}
catch (UnsupportedEncodingException e) {
Error err = new AssertionError(
"The Java platform guarantees UTF-8 support, but it s... |
public class class_name {
private List<ResolvedLocation> pickBestCandidates(final List<List<ResolvedLocation>> allCandidates) {
// initialize return object
List<ResolvedLocation> bestCandidates = new ArrayList<ResolvedLocation>();
// variables used in heuristic matching
Set<CountryCode... | public class class_name {
private List<ResolvedLocation> pickBestCandidates(final List<List<ResolvedLocation>> allCandidates) {
// initialize return object
List<ResolvedLocation> bestCandidates = new ArrayList<ResolvedLocation>();
// variables used in heuristic matching
Set<CountryCode... |
public class class_name {
public int bwt() {
final int[] SA = this.SA;
final byte[] T = this.T;
final int n = this.n;
final int[] bucketA = new int[BUCKET_A_SIZE];
final int[] bucketB = new int[BUCKET_B_SIZE];
if (n == 0) {
return 0;
}
if (n... | public class class_name {
public int bwt() {
final int[] SA = this.SA;
final byte[] T = this.T;
final int n = this.n;
final int[] bucketA = new int[BUCKET_A_SIZE];
final int[] bucketB = new int[BUCKET_B_SIZE];
if (n == 0) {
return 0; // depends on control d... |
public class class_name {
public Effects animate(Object stringOrProperties, int duration, Easing easing, Function... funcs) {
final Properties p = (stringOrProperties instanceof String)
? (Properties) $$((String) stringOrProperties)
: (Properties) stringOrProperties;
if (p.getStr("duration") !... | public class class_name {
public Effects animate(Object stringOrProperties, int duration, Easing easing, Function... funcs) {
final Properties p = (stringOrProperties instanceof String)
? (Properties) $$((String) stringOrProperties)
: (Properties) stringOrProperties;
if (p.getStr("duration") !... |
public class class_name {
@Override
public void cacheResult(
List<CommerceDiscountUserSegmentRel> commerceDiscountUserSegmentRels) {
for (CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel : commerceDiscountUserSegmentRels) {
if (entityCache.getResult(
CommerceDiscountUserSegmentRelModelImpl.E... | public class class_name {
@Override
public void cacheResult(
List<CommerceDiscountUserSegmentRel> commerceDiscountUserSegmentRels) {
for (CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel : commerceDiscountUserSegmentRels) {
if (entityCache.getResult(
CommerceDiscountUserSegmentRelModelImpl.E... |
public class class_name {
private static void enqueueCallbackTask(final ShufflerParams shufflerParams, final String url,
final String taskName) {
RetryHelper.runWithRetries(callable(new Runnable() {
@Override
public void run() {
String hostname = ModulesServiceFactory.getModulesService().... | public class class_name {
private static void enqueueCallbackTask(final ShufflerParams shufflerParams, final String url,
final String taskName) {
RetryHelper.runWithRetries(callable(new Runnable() {
@Override
public void run() {
String hostname = ModulesServiceFactory.getModulesService().... |
public class class_name {
private static void createToolsFrame() {
// put UI in a JFrame
frame = new JFrame("NetCDF (" + DIALOG_VERSION + ") Tools");
ui = new ToolsUI(prefs, frame);
frame.setIconImage(BAMutil.getImage("netcdfUI"));
frame.addWindowListener(new WindowAd... | public class class_name {
private static void createToolsFrame() {
// put UI in a JFrame
frame = new JFrame("NetCDF (" + DIALOG_VERSION + ") Tools");
ui = new ToolsUI(prefs, frame);
frame.setIconImage(BAMutil.getImage("netcdfUI"));
frame.addWindowListener(new WindowAd... |
public class class_name {
public void marshall(ResultSetMetadata resultSetMetadata, ProtocolMarshaller protocolMarshaller) {
if (resultSetMetadata == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(r... | public class class_name {
public void marshall(ResultSetMetadata resultSetMetadata, ProtocolMarshaller protocolMarshaller) {
if (resultSetMetadata == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(r... |
public class class_name {
private boolean hasExpansionExpressionInArguments()
{
Expression[] args = _expr().getArgs();
if( args == null )
{
return false;
}
for( Expression arg: args )
{
List<IMemberExpansionExpression> l = new ArrayList<>();
if( arg.getContainedParsedElemen... | public class class_name {
private boolean hasExpansionExpressionInArguments()
{
Expression[] args = _expr().getArgs();
if( args == null )
{
return false; // depends on control dependency: [if], data = [none]
}
for( Expression arg: args )
{
List<IMemberExpansionExpression> l = new... |
public class class_name {
@Override
public EClass getIfcEdge() {
if (ifcEdgeEClass == null) {
ifcEdgeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(206);
}
return ifcEdgeEClass;
} } | public class class_name {
@Override
public EClass getIfcEdge() {
if (ifcEdgeEClass == null) {
ifcEdgeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(206);
// depends on control dependency: [if], data = [none]
}
return ifcEdgeEClass;
} } |
public class class_name {
public String readUntil(String sentinels)
{
int index=Integer.MAX_VALUE;
for(char s: sentinels.toCharArray())
{
int i = str.indexOf(s, cursor);
if(i>=0)
index = Math.min(i, index);
}
if(index>=0 && index<Integer.MAX_VALUE)
{
String result = str.substring(cursor, ... | public class class_name {
public String readUntil(String sentinels)
{
int index=Integer.MAX_VALUE;
for(char s: sentinels.toCharArray())
{
int i = str.indexOf(s, cursor);
if(i>=0)
index = Math.min(i, index);
}
if(index>=0 && index<Integer.MAX_VALUE)
{
String result = str.substring(cursor, ... |
public class class_name {
protected PropertyFilter preparePropertyFilter() {
final Map<String, String> generatedDefaultMap = prepareGeneratedDefaultMap();
if (generatedDefaultMap.isEmpty()) { // mainly here
return doPrepareEmbeddedPropertyFilter();
} else {
return doPrep... | public class class_name {
protected PropertyFilter preparePropertyFilter() {
final Map<String, String> generatedDefaultMap = prepareGeneratedDefaultMap();
if (generatedDefaultMap.isEmpty()) { // mainly here
return doPrepareEmbeddedPropertyFilter(); // depends on control dependency: [if], da... |
public class class_name {
public void onTimerEvent(TimerEvent event, ActivityContextInterface aci) {
if (getFinalReplySent())
{
aci.detach(sbbContext.getSbbLocalObject());
final DialogActivity dialog = (DialogActivity) aci.getActivity();
try {
dialog.sendRequest(dialog.createRequest(Request.BYE));
... | public class class_name {
public void onTimerEvent(TimerEvent event, ActivityContextInterface aci) {
if (getFinalReplySent())
{
aci.detach(sbbContext.getSbbLocalObject()); // depends on control dependency: [if], data = [none]
final DialogActivity dialog = (DialogActivity) aci.getActivity();
try {
dia... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.