code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private AttributeType getCommonType(AttributeType existingGuess, AttributeType newGuess) {
if (existingGuess == null && newGuess == null) {
return null;
}
if (existingGuess == null) {
return newGuess;
}
if (newGuess == null) {
return existingGuess;
... | public class class_name {
private AttributeType getCommonType(AttributeType existingGuess, AttributeType newGuess) {
if (existingGuess == null && newGuess == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (existingGuess == null) {
return newGuess; // depends on... |
public class class_name {
@Override
public Map<String, Object> toSource() {
Map<String, Object> sourceMap = new HashMap<>();
if (accessType != null) {
addFieldToSource(sourceMap, "accessType", accessType);
}
if (clientIp != null) {
addFieldToSource(sourceMap,... | public class class_name {
@Override
public Map<String, Object> toSource() {
Map<String, Object> sourceMap = new HashMap<>();
if (accessType != null) {
addFieldToSource(sourceMap, "accessType", accessType); // depends on control dependency: [if], data = [none]
}
if (clien... |
public class class_name {
private CommonsPoolFactory getCommonsPoolFactory(TargetMetaDef targetMetaDef) {
try {
ContainerWrapper containerWrapper = containerCallback.getContainerWrapper();
InstanceCache instanceCache = (InstanceCache) containerWrapper.lookup(ComponentKeys.INSTANCE_CACHE);
String key =... | public class class_name {
private CommonsPoolFactory getCommonsPoolFactory(TargetMetaDef targetMetaDef) {
try {
ContainerWrapper containerWrapper = containerCallback.getContainerWrapper();
InstanceCache instanceCache = (InstanceCache) containerWrapper.lookup(ComponentKeys.INSTANCE_CACHE);
String key =... |
public class class_name {
public static List<String> readLines(String filename) {
List<String> lines = Lists.newArrayList();
try {
BufferedReader in = new BufferedReader(new FileReader(filename));
String line;
while ((line = in.readLine()) != null) {
// Ignore blank lines.
if ... | public class class_name {
public static List<String> readLines(String filename) {
List<String> lines = Lists.newArrayList();
try {
BufferedReader in = new BufferedReader(new FileReader(filename));
String line;
while ((line = in.readLine()) != null) {
// Ignore blank lines.
if ... |
public class class_name {
public ProviderDefinition[] resolve(final Class type, final String name) {
ClassDescriptor cd = ClassIntrospector.get().lookup(type);
MethodDescriptor[] methods = cd.getAllMethodDescriptors();
List<ProviderDefinition> list = new ArrayList<>();
for (MethodDescriptor methodDescriptor ... | public class class_name {
public ProviderDefinition[] resolve(final Class type, final String name) {
ClassDescriptor cd = ClassIntrospector.get().lookup(type);
MethodDescriptor[] methods = cd.getAllMethodDescriptors();
List<ProviderDefinition> list = new ArrayList<>();
for (MethodDescriptor methodDescriptor ... |
public class class_name {
@Override
public void initialize() {
String adminUsername = "admin";
String adminPassword = "123456";
User param = new User();
param.setUserName(adminUsername);
User admin = baseDao.getUnique(User.class, param);
if (admin != null) {
... | public class class_name {
@Override
public void initialize() {
String adminUsername = "admin";
String adminPassword = "123456";
User param = new User();
param.setUserName(adminUsername);
User admin = baseDao.getUnique(User.class, param);
if (admin != null) {
... |
public class class_name {
public void setAnchorColor(int index, Color color) {
if (index <= 0) {
if (startColor == null) {
startColor = new RGBColor(0.0, 0.0, 0.0);
}
setGradation(true);
this.startColor = color;
} else if (index >= 1) {
... | public class class_name {
public void setAnchorColor(int index, Color color) {
if (index <= 0) {
if (startColor == null) {
startColor = new RGBColor(0.0, 0.0, 0.0); // depends on control dependency: [if], data = [none]
}
setGradation(true); // depends on cont... |
public class class_name {
@SuppressWarnings("unchecked")
public <T> void sort(Arr arr, Comparator<T> c) {
int l = arr.getLength();
Object[] objs = new Object[l];
for (int i=0; i<l; i++) {
objs[i] = arr.get(i);
}
Arrays.sort((T[])objs, c);
for (int i=0; i<l; i++) {
arr.put(i, objs[i]);
}
} } | public class class_name {
@SuppressWarnings("unchecked")
public <T> void sort(Arr arr, Comparator<T> c) {
int l = arr.getLength();
Object[] objs = new Object[l];
for (int i=0; i<l; i++) {
objs[i] = arr.get(i); // depends on control dependency: [for], data = [i]
}
Arrays.sort((T[])objs, c);
for (int i=0... |
public class class_name {
public void marshall(MotionImageInsertionOffset motionImageInsertionOffset, ProtocolMarshaller protocolMarshaller) {
if (motionImageInsertionOffset == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... | public class class_name {
public void marshall(MotionImageInsertionOffset motionImageInsertionOffset, ProtocolMarshaller protocolMarshaller) {
if (motionImageInsertionOffset == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... |
public class class_name {
public final DtEnd getEndDate(final boolean deriveFromDuration) {
DtEnd dtEnd = getProperty(Property.DTEND);
// No DTEND? No problem, we'll use the DURATION.
if (dtEnd == null && deriveFromDuration && getStartDate() != null) {
final DtStart dtStart = getSta... | public class class_name {
public final DtEnd getEndDate(final boolean deriveFromDuration) {
DtEnd dtEnd = getProperty(Property.DTEND);
// No DTEND? No problem, we'll use the DURATION.
if (dtEnd == null && deriveFromDuration && getStartDate() != null) {
final DtStart dtStart = getSta... |
public class class_name {
void handleQuotesInCommands(String line, BitSet quoteBitSet,
BitSet doubleQuoteBitSet) {
int doubleQuoteStart = -1;
int quoteStart = -1;
for (int pos = 0; pos < line.length(); pos++) {
char ch = line.charAt(pos);
if (doubleQuoteStart > -1) {
doubleQuoteBi... | public class class_name {
void handleQuotesInCommands(String line, BitSet quoteBitSet,
BitSet doubleQuoteBitSet) {
int doubleQuoteStart = -1;
int quoteStart = -1;
for (int pos = 0; pos < line.length(); pos++) {
char ch = line.charAt(pos);
if (doubleQuoteStart > -1) {
doubleQuoteBi... |
public class class_name {
private ShareTarget toShareTarget(ResolveInfo resolveInfo) {
if (resolveInfo == null || resolveInfo.activityInfo == null) {
return null;
}
ActivityInfo info = resolveInfo.activityInfo;
ShareTarget target = new ShareTarget(info.loadLabel(mPackageMana... | public class class_name {
private ShareTarget toShareTarget(ResolveInfo resolveInfo) {
if (resolveInfo == null || resolveInfo.activityInfo == null) {
return null; // depends on control dependency: [if], data = [none]
}
ActivityInfo info = resolveInfo.activityInfo;
ShareTarge... |
public class class_name {
@Override
public RuleBasedCollator setMaxVariable(int group) {
// Convert the reorder code into a MaxVariable number, or UCOL_DEFAULT=-1.
int value;
if(group == Collator.ReorderCodes.DEFAULT) {
value = -1; // UCOL_DEFAULT
} else if(Collator.Reo... | public class class_name {
@Override
public RuleBasedCollator setMaxVariable(int group) {
// Convert the reorder code into a MaxVariable number, or UCOL_DEFAULT=-1.
int value;
if(group == Collator.ReorderCodes.DEFAULT) {
value = -1; // UCOL_DEFAULT // depends on control dependen... |
public class class_name {
public ArrayList getSignatureNames() {
if (sigNames != null)
return new ArrayList(sigNames.keySet());
sigNames = new HashMap();
ArrayList sorter = new ArrayList();
for (Iterator it = fields.entrySet().iterator(); it.hasNext();) {
Map.Ent... | public class class_name {
public ArrayList getSignatureNames() {
if (sigNames != null)
return new ArrayList(sigNames.keySet());
sigNames = new HashMap();
ArrayList sorter = new ArrayList();
for (Iterator it = fields.entrySet().iterator(); it.hasNext();) {
Map.Ent... |
public class class_name {
public static boolean checkFileForPackaging(String fileName, String extension) {
// ignore hidden files and backup files
if (fileName.charAt(0) == '.' || fileName.charAt(fileName.length()-1) == '~') {
return false;
}
return !"aidl".equalsIgnoreCase... | public class class_name {
public static boolean checkFileForPackaging(String fileName, String extension) {
// ignore hidden files and backup files
if (fileName.charAt(0) == '.' || fileName.charAt(fileName.length()-1) == '~') {
return false; // depends on control dependency: [if], data = [no... |
public class class_name {
public void setEnableCloudwatchLogsExports(java.util.Collection<String> enableCloudwatchLogsExports) {
if (enableCloudwatchLogsExports == null) {
this.enableCloudwatchLogsExports = null;
return;
}
this.enableCloudwatchLogsExports = new com.amaz... | public class class_name {
public void setEnableCloudwatchLogsExports(java.util.Collection<String> enableCloudwatchLogsExports) {
if (enableCloudwatchLogsExports == null) {
this.enableCloudwatchLogsExports = null; // depends on control dependency: [if], data = [none]
return; // depends o... |
public class class_name {
private void resetStoreDefinitions(Set<String> storeNamesToDelete) {
// Clear entries in the metadata cache
for(String storeName: storeNamesToDelete) {
this.metadataCache.remove(storeName);
this.storeDefinitionsStorageEngine.delete(storeName, null);
... | public class class_name {
private void resetStoreDefinitions(Set<String> storeNamesToDelete) {
// Clear entries in the metadata cache
for(String storeName: storeNamesToDelete) {
this.metadataCache.remove(storeName); // depends on control dependency: [for], data = [storeName]
thi... |
public class class_name {
protected void setColumnsFinalWidth() {
log.debug("Setting columns final width.");
float factor;
int printableArea = report.getOptions().getColumnWidth();
//Create a list with only the visible columns.
List visibleColums = getVisibleColumns();
... | public class class_name {
protected void setColumnsFinalWidth() {
log.debug("Setting columns final width.");
float factor;
int printableArea = report.getOptions().getColumnWidth();
//Create a list with only the visible columns.
List visibleColums = getVisibleColumns();
... |
public class class_name {
public void showInfo(Formatter f) {
if (dcm == null) {
if (spec == null) return;
dcm = scanCollection(spec, f);
if (dcm == null) return;
}
// just a list of the files
f.format("dcm = %s%n", dcm);
try {
for (MFile mfile : dcm.getFilesSorted()) {
... | public class class_name {
public void showInfo(Formatter f) {
if (dcm == null) {
if (spec == null) return;
dcm = scanCollection(spec, f); // depends on control dependency: [if], data = [none]
if (dcm == null) return;
}
// just a list of the files
f.format("dcm = %s%n", dcm);
try ... |
public class class_name {
public EClass getIfcTerminatorSymbol() {
if (ifcTerminatorSymbolEClass == null) {
ifcTerminatorSymbolEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(600);
}
return ifcTerminatorSymbolEClass;
} } | public class class_name {
public EClass getIfcTerminatorSymbol() {
if (ifcTerminatorSymbolEClass == null) {
ifcTerminatorSymbolEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(600);
// depends on control dependency: [if], data = [none]
}
retur... |
public class class_name {
private long newYearOnOrBefore(long utcDays) {
long ny = this.newYearInSui(utcDays);
if (utcDays >= ny) {
return ny;
} else {
return this.newYearInSui(utcDays - 180); // previous sui
}
} } | public class class_name {
private long newYearOnOrBefore(long utcDays) {
long ny = this.newYearInSui(utcDays);
if (utcDays >= ny) {
return ny; // depends on control dependency: [if], data = [none]
} else {
return this.newYearInSui(utcDays - 180); // previous sui // depen... |
public class class_name {
public T extract(Object target) {
if (target == null) {
return null;
}
if (!(target instanceof DynamicObject)) {
throw new IllegalArgumentException(
"Extraction target is not a DynamicObject");
}
return (T) (... | public class class_name {
public T extract(Object target) {
if (target == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (!(target instanceof DynamicObject)) {
throw new IllegalArgumentException(
"Extraction target is ... |
public class class_name {
public void marshall(CreateUserRequest createUserRequest, ProtocolMarshaller protocolMarshaller) {
if (createUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(c... | public class class_name {
public void marshall(CreateUserRequest createUserRequest, ProtocolMarshaller protocolMarshaller) {
if (createUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(c... |
public class class_name {
public static boolean configEqual(Object entity1, Object entity2) {
if (entity1 == entity2) {
return true;
} else if (entity1 == null || entity2 == null) {
return false;
} else if (entity1 instanceof Map) {
return configEqualMap((Map... | public class class_name {
public static boolean configEqual(Object entity1, Object entity2) {
if (entity1 == entity2) {
return true; // depends on control dependency: [if], data = [none]
} else if (entity1 == null || entity2 == null) {
return false; // depends on control depende... |
public class class_name {
public long[] getSamples() {
if (itemsSeen_ == 0) {
return null;
}
final int numSamples = (int) Math.min(reservoirSize_, itemsSeen_);
return java.util.Arrays.copyOf(data_, numSamples);
} } | public class class_name {
public long[] getSamples() {
if (itemsSeen_ == 0) {
return null; // depends on control dependency: [if], data = [none]
}
final int numSamples = (int) Math.min(reservoirSize_, itemsSeen_);
return java.util.Arrays.copyOf(data_, numSamples);
} } |
public class class_name {
protected RejectedExecutionHandler getRejectedExecutionHandler(Dsn dsn) {
String overflowName = ASYNC_QUEUE_OVERFLOW_DEFAULT;
String asyncQueueOverflowOption = Lookup.lookup(ASYNC_QUEUE_OVERFLOW_OPTION, dsn);
if (!Util.isNullOrEmpty(asyncQueueOverflowOption)) {
... | public class class_name {
protected RejectedExecutionHandler getRejectedExecutionHandler(Dsn dsn) {
String overflowName = ASYNC_QUEUE_OVERFLOW_DEFAULT;
String asyncQueueOverflowOption = Lookup.lookup(ASYNC_QUEUE_OVERFLOW_OPTION, dsn);
if (!Util.isNullOrEmpty(asyncQueueOverflowOption)) {
... |
public class class_name {
public RangeInfo subListBorders(int size) {
if (inclusive == null) throw new IllegalStateException("Should not call subListBorders on a non-inclusive aware IntRange");
int tempFrom = from;
if (tempFrom < 0) {
tempFrom += size;
}
int tempTo =... | public class class_name {
public RangeInfo subListBorders(int size) {
if (inclusive == null) throw new IllegalStateException("Should not call subListBorders on a non-inclusive aware IntRange");
int tempFrom = from;
if (tempFrom < 0) {
tempFrom += size; // depends on control dependen... |
public class class_name {
public static void calculateLegendInformation(List<? extends BaseModel> _Models, float _StartX, float _EndX, Paint _Paint) {
float textMargin = Utils.dpToPx(10.f);
float lastX = _StartX;
// calculate the legend label positions and check if there is enough space to dis... | public class class_name {
public static void calculateLegendInformation(List<? extends BaseModel> _Models, float _StartX, float _EndX, Paint _Paint) {
float textMargin = Utils.dpToPx(10.f);
float lastX = _StartX;
// calculate the legend label positions and check if there is enough space to dis... |
public class class_name {
private boolean isDefinitelyCougarResponse(CougarHttpResponse response) {
String ident = response.getServerIdentity();
if (ident != null && ident.contains("Cougar 2")) {
return true;
}
return false;
} } | public class class_name {
private boolean isDefinitelyCougarResponse(CougarHttpResponse response) {
String ident = response.getServerIdentity();
if (ident != null && ident.contains("Cougar 2")) {
return true; // depends on control dependency: [if], data = [none]
}
return fal... |
public class class_name {
public Object[] toArray() {
final ReentrantLock lock = this.lock;
lock.lock();
try {
final Object[] items = this.items;
final int end = takeIndex + count;
final Object[] a = Arrays.copyOfRange(items, takeIndex, end);
if (... | public class class_name {
public Object[] toArray() {
final ReentrantLock lock = this.lock;
lock.lock();
try {
final Object[] items = this.items;
final int end = takeIndex + count;
final Object[] a = Arrays.copyOfRange(items, takeIndex, end);
if (... |
public class class_name {
private void updateModelAccordingToDocker() {
try {
final ModelHelper modelHelper = new ModelHelper(context.getNodeName(), docker, factory);
final ContainerRoot dockerModel = modelHelper.docker2model(modelService.getCurrentModel());
modelService.upd... | public class class_name {
private void updateModelAccordingToDocker() {
try {
final ModelHelper modelHelper = new ModelHelper(context.getNodeName(), docker, factory);
final ContainerRoot dockerModel = modelHelper.docker2model(modelService.getCurrentModel());
modelService.upd... |
public class class_name {
public static ProducerSnapshot createSnapshot(IStatsProducer producer, String intervalName){
ProducerSnapshot ret = new ProducerSnapshot();
ret.setCategory(producer.getCategory());
ret.setSubsystem(producer.getSubsystem());
ret.setProducerId(producer.getProducerId());
ret.setInterva... | public class class_name {
public static ProducerSnapshot createSnapshot(IStatsProducer producer, String intervalName){
ProducerSnapshot ret = new ProducerSnapshot();
ret.setCategory(producer.getCategory());
ret.setSubsystem(producer.getSubsystem());
ret.setProducerId(producer.getProducerId());
ret.setInterva... |
public class class_name {
private static String getDefaultRealm(UserRegistry _userRegistry) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "getDefaultRealm");
}
String realm = DEFAULT_REALM;
if (_userRegistry != null) {
... | public class class_name {
private static String getDefaultRealm(UserRegistry _userRegistry) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "getDefaultRealm"); // depends on control dependency: [if], data = [none]
}
String realm = DE... |
public class class_name {
public void addAliases(Map<String, String> aliases) {
notNull(aliases, "Aliases must not be null");
for (Map.Entry<String, String> entry : aliases.entrySet()) {
addAlias(entry.getKey(), entry.getValue());
}
} } | public class class_name {
public void addAliases(Map<String, String> aliases) {
notNull(aliases, "Aliases must not be null");
for (Map.Entry<String, String> entry : aliases.entrySet()) {
addAlias(entry.getKey(), entry.getValue()); // depends on control dependency: [for], data = [entry]
}
} } |
public class class_name {
@SuppressWarnings("unchecked")
public ModelNode fromEntity(T entity)
{
ModelNode operation = new ModelNode();
List<PropertyBinding> properties = metaData.getBeanMetaData(getType()).getProperties();
Mutator mutator = metaData.getMutator(getType());
... | public class class_name {
@SuppressWarnings("unchecked")
public ModelNode fromEntity(T entity)
{
ModelNode operation = new ModelNode();
List<PropertyBinding> properties = metaData.getBeanMetaData(getType()).getProperties();
Mutator mutator = metaData.getMutator(getType());
... |
public class class_name {
private static Folder getOrCreateFolder(final Folder parentFolder, final String folderName) throws IOException {
Folder childFolder = null;
// get existing if any
ItemIterable<CmisObject> children = parentFolder.getChildren();
if (children.iterator().hasNext(... | public class class_name {
private static Folder getOrCreateFolder(final Folder parentFolder, final String folderName) throws IOException {
Folder childFolder = null;
// get existing if any
ItemIterable<CmisObject> children = parentFolder.getChildren();
if (children.iterator().hasNext(... |
public class class_name {
public void addAnnotationDetailsTreeHeader(ClassDoc classDoc,
Content memberDetailsTree) {
if (!writer.printedAnnotationHeading) {
memberDetailsTree.addContent(writer.getMarkerAnchor(
SectionName.ANNOTATION_TYPE_ELEMENT_DETAIL));
... | public class class_name {
public void addAnnotationDetailsTreeHeader(ClassDoc classDoc,
Content memberDetailsTree) {
if (!writer.printedAnnotationHeading) {
memberDetailsTree.addContent(writer.getMarkerAnchor(
SectionName.ANNOTATION_TYPE_ELEMENT_DETAIL)); // depends ... |
public class class_name {
private void require(int len)
{
int offset = _offset;
int length = _length;
if (offset + len < length) {
return;
}
flush(_offset);
} } | public class class_name {
private void require(int len)
{
int offset = _offset;
int length = _length;
if (offset + len < length) {
return; // depends on control dependency: [if], data = [none]
}
flush(_offset);
} } |
public class class_name {
public static double select(final double[] arr, int lo, int hi, final int pivot) {
while (hi > lo) {
final int j = partition(arr, lo, hi);
if (j == pivot) {
return arr[pivot];
}
if (j > pivot) {
hi = j - 1;
}
else {
lo = j + 1;
... | public class class_name {
public static double select(final double[] arr, int lo, int hi, final int pivot) {
while (hi > lo) {
final int j = partition(arr, lo, hi);
if (j == pivot) {
return arr[pivot]; // depends on control dependency: [if], data = [none]
}
if (j > pivot) {
... |
public class class_name {
public Nullness getComputedNullness(ExpressionTree e) {
if (computedNullnessMap.containsKey(e)) {
return computedNullnessMap.get(e);
} else {
return Nullness.NULLABLE;
}
} } | public class class_name {
public Nullness getComputedNullness(ExpressionTree e) {
if (computedNullnessMap.containsKey(e)) {
return computedNullnessMap.get(e); // depends on control dependency: [if], data = [none]
} else {
return Nullness.NULLABLE; // depends on control dependency: [if], data = [non... |
public class class_name {
@Deprecated
public static void changeValueCommand(final List<Command> response, final ServerAttribute attribute, final Object value) {
if (response == null) {
return;
}
if (attribute == null) {
LOG.error("Cannot change value on a null attrib... | public class class_name {
@Deprecated
public static void changeValueCommand(final List<Command> response, final ServerAttribute attribute, final Object value) {
if (response == null) {
return; // depends on control dependency: [if], data = [none]
}
if (attribute == null) {
... |
public class class_name {
public void show(int gravity, int x, int y) {
initializePopupWindow();
mPopupWindow.showAtLocation(mTrigger, gravity, x, y);
mPopupWindow.update();
// 此处如果ContentView有入场动画的话,显示动画
if (null != contentInAnimation) {
mContentView.startAnimation(... | public class class_name {
public void show(int gravity, int x, int y) {
initializePopupWindow();
mPopupWindow.showAtLocation(mTrigger, gravity, x, y);
mPopupWindow.update();
// 此处如果ContentView有入场动画的话,显示动画
if (null != contentInAnimation) {
mContentView.startAnimation(... |
public class class_name {
int writeFlagAttrs(long flags) {
int acount = 0;
if ((flags & DEPRECATED) != 0) {
int alenIdx = writeAttr(names.Deprecated);
endAttr(alenIdx);
acount++;
}
return acount;
} } | public class class_name {
int writeFlagAttrs(long flags) {
int acount = 0;
if ((flags & DEPRECATED) != 0) {
int alenIdx = writeAttr(names.Deprecated);
endAttr(alenIdx); // depends on control dependency: [if], data = [none]
acount++; // depends on control dependency: ... |
public class class_name {
protected void generateMethodSignature(SQLiteModelMethod method, MethodSpec.Builder methodBuilder, TypeName returnTypeName, ParameterSpec... additionalParameterSpec) {
boolean finalParameter = false;
if (method.hasLiveData() && returnTypeName.equals(method.liveDataReturnClass)) {
final... | public class class_name {
protected void generateMethodSignature(SQLiteModelMethod method, MethodSpec.Builder methodBuilder, TypeName returnTypeName, ParameterSpec... additionalParameterSpec) {
boolean finalParameter = false;
if (method.hasLiveData() && returnTypeName.equals(method.liveDataReturnClass)) {
final... |
public class class_name {
public static <E> int remove(List<E> list, Comparator<? super E> comparator, E data) {
assert list != null;
assert comparator != null;
assert data != null;
int first = 0;
int last = list.size() - 1;
while (last >= first) {
final int center = (first + last) / 2;
final E dt = ... | public class class_name {
public static <E> int remove(List<E> list, Comparator<? super E> comparator, E data) {
assert list != null;
assert comparator != null;
assert data != null;
int first = 0;
int last = list.size() - 1;
while (last >= first) {
final int center = (first + last) / 2;
final E dt = ... |
public class class_name {
public static byte[] readFully(InputStream in, int size, boolean closeStream) throws IOException {
// create the byte array to hold the data
byte[] bytes = new byte[size];
// read in the bytes
int offset = 0;
try {
int numRead = 0... | public class class_name {
public static byte[] readFully(InputStream in, int size, boolean closeStream) throws IOException {
// create the byte array to hold the data
byte[] bytes = new byte[size];
// read in the bytes
int offset = 0;
try {
int numRead = 0... |
public class class_name {
public EClass getEMO() {
if (emoEClass == null) {
emoEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(250);
}
return emoEClass;
} } | public class class_name {
public EClass getEMO() {
if (emoEClass == null) {
emoEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(250); // depends on control dependency: [if], data = [none]
}
return emoEClass;
} } |
public class class_name {
@CheckReturnValue
private boolean loadMasterKillSwitchFile(@Nonnull File f) {
try {
if (!f.exists()) return true;
return Boolean.parseBoolean(FileUtils.readFileToString(f).trim());
} catch (IOException e) {
LOGGER.log(WARNING, "Failed... | public class class_name {
@CheckReturnValue
private boolean loadMasterKillSwitchFile(@Nonnull File f) {
try {
if (!f.exists()) return true;
return Boolean.parseBoolean(FileUtils.readFileToString(f).trim()); // depends on control dependency: [try], data = [none]
} catch (I... |
public class class_name {
protected long calculateSize(Object msg) {
if (msg instanceof ByteBuf) {
return ((ByteBuf) msg).readableBytes();
}
if (msg instanceof ByteBufHolder) {
return ((ByteBufHolder) msg).content().readableBytes();
}
return -1;
} } | public class class_name {
protected long calculateSize(Object msg) {
if (msg instanceof ByteBuf) {
return ((ByteBuf) msg).readableBytes(); // depends on control dependency: [if], data = [none]
}
if (msg instanceof ByteBufHolder) {
return ((ByteBufHolder) msg).content().r... |
public class class_name {
@FFDCIgnore(InvocationTargetException.class)
Object getDB(String databaseName) throws Exception {
final boolean trace = TraceComponent.isAnyTracingEnabled();
lock.readLock().lock();
try {
if (mongoClient == null) {
// Switch to write lo... | public class class_name {
@FFDCIgnore(InvocationTargetException.class)
Object getDB(String databaseName) throws Exception {
final boolean trace = TraceComponent.isAnyTracingEnabled();
lock.readLock().lock();
try {
if (mongoClient == null) {
// Switch to write lo... |
public class class_name {
protected String[] getSpringConfigLocations() {
String[] locations = getStandardConfigLocations();
for (int i = 0; i < locations.length; i++) {
String extension = StringUtils.getFilenameExtension(locations[i]);
locations[i] = locations[i].substring(0,
locations[i].length() - ex... | public class class_name {
protected String[] getSpringConfigLocations() {
String[] locations = getStandardConfigLocations();
for (int i = 0; i < locations.length; i++) {
String extension = StringUtils.getFilenameExtension(locations[i]);
locations[i] = locations[i].substring(0,
locations[i].length() - ex... |
public class class_name {
public void marshall(DescribeCertificateAuthorityRequest describeCertificateAuthorityRequest, ProtocolMarshaller protocolMarshaller) {
if (describeCertificateAuthorityRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(DescribeCertificateAuthorityRequest describeCertificateAuthorityRequest, ProtocolMarshaller protocolMarshaller) {
if (describeCertificateAuthorityRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
public Deque<QueueItem> getItemQueue() {
if (itemQueue == null) {
itemQueue = new LinkedList<QueueItem>();
if (backupMap != null && !backupMap.isEmpty()) {
List<QueueItem> values = new ArrayList<QueueItem>(backupMap.values());
Co... | public class class_name {
public Deque<QueueItem> getItemQueue() {
if (itemQueue == null) {
itemQueue = new LinkedList<QueueItem>(); // depends on control dependency: [if], data = [none]
if (backupMap != null && !backupMap.isEmpty()) {
List<QueueItem> values = new ArrayL... |
public class class_name {
public ModifyFpgaImageAttributeRequest withUserIds(String... userIds) {
if (this.userIds == null) {
setUserIds(new com.amazonaws.internal.SdkInternalList<String>(userIds.length));
}
for (String ele : userIds) {
this.userIds.add(ele);
}
... | public class class_name {
public ModifyFpgaImageAttributeRequest withUserIds(String... userIds) {
if (this.userIds == null) {
setUserIds(new com.amazonaws.internal.SdkInternalList<String>(userIds.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : use... |
public class class_name {
public static String getCodePoint(final StatusFontIcon statusFontIcon) {
if (statusFontIcon == null) {
return null;
}
return statusFontIcon.getFontIcon() != null ? Integer.toString(statusFontIcon.getFontIcon().getCodepoint())
: null;
} } | public class class_name {
public static String getCodePoint(final StatusFontIcon statusFontIcon) {
if (statusFontIcon == null) {
return null; // depends on control dependency: [if], data = [none]
}
return statusFontIcon.getFontIcon() != null ? Integer.toString(statusFontIcon.getFont... |
public class class_name {
public static boolean checkDependencyPlugin(Context context, Class... plugins) {
for (Class plugin : plugins) {
if (getPluginIndex(context, plugin) < 0) {
return false;
}
}
return true;
} } | public class class_name {
public static boolean checkDependencyPlugin(Context context, Class... plugins) {
for (Class plugin : plugins) {
if (getPluginIndex(context, plugin) < 0) {
return false; // depends on control dependency: [if], data = [none]
}
}
re... |
public class class_name {
public void start()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "start");
// Propogate the stop stimulus to the destination handlers...
DestinationTypeFilter destFilter = new DestinationTypeFilter();
destF... | public class class_name {
public void start()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "start");
// Propogate the stop stimulus to the destination handlers...
DestinationTypeFilter destFilter = new DestinationTypeFilter();
destF... |
public class class_name {
public static boolean hasQuotes( String input ) {
if( input == null || input.length() < 2 ){
return false;
}
return input.startsWith( SINGLE_QUOTE ) && input.endsWith( SINGLE_QUOTE ) ||
input.startsWith( DOUBLE_QUOTE ) && input.endsWith( DOUBLE_QUOTE );
... | public class class_name {
public static boolean hasQuotes( String input ) {
if( input == null || input.length() < 2 ){
return false; // depends on control dependency: [if], data = [none]
}
return input.startsWith( SINGLE_QUOTE ) && input.endsWith( SINGLE_QUOTE ) ||
input.startsWith(... |
public class class_name {
@Override
public void resolve(InjectionBinding<EJB> binding)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "resolve : " + binding);
... | public class class_name {
@Override
public void resolve(InjectionBinding<EJB> binding)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "resolve : " + binding);
... |
public class class_name {
public void computeIndicators ()
{
Map<SceneObject, SceneObjectIndicator> _unupdated = Maps.newHashMap(_indicators);
for (int ii = 0, nn = _vizobjs.size(); ii < nn; ii++) {
SceneObject scobj = _vizobjs.get(ii);
String action = scobj.info.action;
... | public class class_name {
public void computeIndicators ()
{
Map<SceneObject, SceneObjectIndicator> _unupdated = Maps.newHashMap(_indicators);
for (int ii = 0, nn = _vizobjs.size(); ii < nn; ii++) {
SceneObject scobj = _vizobjs.get(ii);
String action = scobj.info.action;
... |
public class class_name {
private void traceWriterInfo( Object value, JsonWriter writer ) {
if ( getLogger().isLoggable( Level.INFO ) ) {
getLogger().log( Level.INFO, "Error on value <" + value + ">. Current output : <" + writer.getOutput() + ">" );
}
} } | public class class_name {
private void traceWriterInfo( Object value, JsonWriter writer ) {
if ( getLogger().isLoggable( Level.INFO ) ) {
getLogger().log( Level.INFO, "Error on value <" + value + ">. Current output : <" + writer.getOutput() + ">" ); // depends on control dependency: [if], data = [n... |
public class class_name {
protected void sendOutgoingMessages (long iterStamp)
{
// first attempt to send any messages waiting on the overflow queues
if (_oflowqs.size() > 0) {
// do this on a snapshot as a network failure writing oflow queue messages will result
// in the q... | public class class_name {
protected void sendOutgoingMessages (long iterStamp)
{
// first attempt to send any messages waiting on the overflow queues
if (_oflowqs.size() > 0) {
// do this on a snapshot as a network failure writing oflow queue messages will result
// in the q... |
public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:50:55+02:00", comments = "JAXB RI v2.2.11")
public List<TelSonstige> getTelSonstige() {
if (telSonstige == null) {
telSonstige = new ArrayList<TelSonstige>();
}
return this.telSonstige... | public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:50:55+02:00", comments = "JAXB RI v2.2.11")
public List<TelSonstige> getTelSonstige() {
if (telSonstige == null) {
telSonstige = new ArrayList<TelSonstige>(); // depends on control dependency: [if], d... |
public class class_name {
public void insert_ul(final DeviceData deviceData, final long[] argin) {
final int[] val = new int[argin.length];
for (int i = 0 ; i<argin.length ; i++) {
val[i] = (int) (argin[i] & 0xFFFFFFFF);
}
DevVarULongArrayHelper.insert(deviceData.getAny(), ... | public class class_name {
public void insert_ul(final DeviceData deviceData, final long[] argin) {
final int[] val = new int[argin.length];
for (int i = 0 ; i<argin.length ; i++) {
val[i] = (int) (argin[i] & 0xFFFFFFFF); // depends on control dependency: [for], data = [i]
}
... |
public class class_name {
public void marshall(StepExecutionFilter stepExecutionFilter, ProtocolMarshaller protocolMarshaller) {
if (stepExecutionFilter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(StepExecutionFilter stepExecutionFilter, ProtocolMarshaller protocolMarshaller) {
if (stepExecutionFilter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
@Override
public EClass getIfcStructuralPointAction() {
if (ifcStructuralPointActionEClass == null) {
ifcStructuralPointActionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(655);
}
return ifcStructuralPointActionEClass... | public class class_name {
@Override
public EClass getIfcStructuralPointAction() {
if (ifcStructuralPointActionEClass == null) {
ifcStructuralPointActionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(655);
// depends on control dependency: [if], data... |
public class class_name {
public void add(final OrchestrationShardingSchema orchestrationShardingSchema) {
String schemaName = orchestrationShardingSchema.getSchemaName();
if (!schemaGroup.containsKey(schemaName)) {
schemaGroup.put(schemaName, new LinkedList<String>());
}
sc... | public class class_name {
public void add(final OrchestrationShardingSchema orchestrationShardingSchema) {
String schemaName = orchestrationShardingSchema.getSchemaName();
if (!schemaGroup.containsKey(schemaName)) {
schemaGroup.put(schemaName, new LinkedList<String>()); // depends on contro... |
public class class_name {
protected KafkaQueueFactory<T, ID, DATA> setDefaultKafkaClient(KafkaClient kafkaClient,
boolean setMyOwnKafkaClient) {
if (this.defaultKafkaClient != null && myOwnKafkaClient) {
this.defaultKafkaClient.destroy();
}
this.defaultKafkaClient = kafk... | public class class_name {
protected KafkaQueueFactory<T, ID, DATA> setDefaultKafkaClient(KafkaClient kafkaClient,
boolean setMyOwnKafkaClient) {
if (this.defaultKafkaClient != null && myOwnKafkaClient) {
this.defaultKafkaClient.destroy(); // depends on control dependency: [if], data = [... |
public class class_name {
public static <K,V> Map<K,V> mergeMaps(Map<K, V> map1, Map<K, V> map2) {
Map<K, V> answer = new HashMap<>();
if (map2 != null) {
answer.putAll(map2);
}
if (map1 != null) {
answer.putAll(map1);
}
return answer;
} } | public class class_name {
public static <K,V> Map<K,V> mergeMaps(Map<K, V> map1, Map<K, V> map2) {
Map<K, V> answer = new HashMap<>();
if (map2 != null) {
answer.putAll(map2); // depends on control dependency: [if], data = [(map2]
}
if (map1 != null) {
answer.put... |
public class class_name {
protected void resolveAndDispatch (final ChatChannel channel)
{
NodeObject.Lock lock = new NodeObject.Lock("ChatChannel", channel.getLockName());
_peerMan.performWithLock(lock, new PeerManager.LockedOperation() {
public void run () {
((CrowdNode... | public class class_name {
protected void resolveAndDispatch (final ChatChannel channel)
{
NodeObject.Lock lock = new NodeObject.Lock("ChatChannel", channel.getLockName());
_peerMan.performWithLock(lock, new PeerManager.LockedOperation() {
public void run () {
((CrowdNode... |
public class class_name {
public void notifyReceiveAllowed(DestinationHandler destinationHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "notifyReceiveAllowed", new Object[] {destinationHandler});
if(isPubSub())
{
// Notify consumers on this ... | public class class_name {
public void notifyReceiveAllowed(DestinationHandler destinationHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "notifyReceiveAllowed", new Object[] {destinationHandler});
if(isPubSub())
{
// Notify consumers on this ... |
public class class_name {
@Override
public void add(File file, String baseURI, RDFFormat dataFormat, Resource... contexts) throws IOException, RDFParseException, RepositoryException {
if(notNull(baseURI)) {
getClient().sendAdd(file, baseURI, dataFormat, contexts);
}else{
get... | public class class_name {
@Override
public void add(File file, String baseURI, RDFFormat dataFormat, Resource... contexts) throws IOException, RDFParseException, RepositoryException {
if(notNull(baseURI)) {
getClient().sendAdd(file, baseURI, dataFormat, contexts); // depends on control dependen... |
public class class_name {
public void doFinally() {
try {
// If we exposed a Reader in doStartTag(), close it.
if (varReader != null) {
// 'r' can be null if an exception was thrown...
if (r != null) {
r.close();
}
... | public class class_name {
public void doFinally() {
try {
// If we exposed a Reader in doStartTag(), close it.
if (varReader != null) {
// 'r' can be null if an exception was thrown...
if (r != null) {
r.close(); // depends on control ... |
public class class_name {
public XMLSerializer startTag(String namespace, String name) throws IOException {
if (startTagIncomplete) {
closeStartTag();
}
seenBracket = seenBracketBracket = false;
++depth;
if (doIndent && depth > 0 && seenTag) {
writeIndent();
}
seenTag = true;
setPrefixCalled = fa... | public class class_name {
public XMLSerializer startTag(String namespace, String name) throws IOException {
if (startTagIncomplete) {
closeStartTag();
}
seenBracket = seenBracketBracket = false;
++depth;
if (doIndent && depth > 0 && seenTag) {
writeIndent();
}
seenTag = true;
setPrefixCalled = fa... |
public class class_name {
public void set(@Nullable T value) {
try {
descriptor.getWriteMethod().invoke(target, value);
} catch (Exception e) {
String format = "Failed to set value %s in property '%s'";
String msg = String.format(format, String.valueOf(value), descriptor.getName());
thr... | public class class_name {
public void set(@Nullable T value) {
try {
descriptor.getWriteMethod().invoke(target, value); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
String format = "Failed to set value %s in property '%s'";
String msg = String.format(format, ... |
public class class_name {
public String[] getLabels(Matcher matcher) {
if ((matcher instanceof AnyOfMatcher) && ((AnyOfMatcher)matcher).characters.toString().equals(matcher.getLabel())) {
AnyOfMatcher cMatcher = (AnyOfMatcher) matcher;
if (!cMatcher.characters.isSubtractive()) {
... | public class class_name {
public String[] getLabels(Matcher matcher) {
if ((matcher instanceof AnyOfMatcher) && ((AnyOfMatcher)matcher).characters.toString().equals(matcher.getLabel())) {
AnyOfMatcher cMatcher = (AnyOfMatcher) matcher;
if (!cMatcher.characters.isSubtractive()) {
... |
public class class_name {
public static Calendar parseCalendar(final String calendar, final String format, final TimeZone timeZone) {
if (N.isNullOrEmpty(calendar) || (calendar.length() == 4 && "null".equalsIgnoreCase(calendar))) {
return null;
}
return createCalendar(parse(ca... | public class class_name {
public static Calendar parseCalendar(final String calendar, final String format, final TimeZone timeZone) {
if (N.isNullOrEmpty(calendar) || (calendar.length() == 4 && "null".equalsIgnoreCase(calendar))) {
return null;
// depends on control dependency: [if], data = [non... |
public class class_name {
public void no(int existingNodeID, int newNodeID, String newQuestAns, Decision decision) {
// If no root node do nothing
if (rootNode == null) {
System.out.println("ERROR: No root node!");
return;
}
// Search tree
if (searchTr... | public class class_name {
public void no(int existingNodeID, int newNodeID, String newQuestAns, Decision decision) {
// If no root node do nothing
if (rootNode == null) {
System.out.println("ERROR: No root node!"); // depends on control dependency: [if], data = [none]
return; /... |
public class class_name {
@Override
public void execute(ExecutionContext context){
final String[] args = context.getArguments();
String clusterValue = getArgumentValue(ARG_CLUSTER_NAME,args,null);
if(clusterValue != null){
// Add all the arguments which need to be validated
this.createCollectiveArg... | public class class_name {
@Override
public void execute(ExecutionContext context){
final String[] args = context.getArguments();
String clusterValue = getArgumentValue(ARG_CLUSTER_NAME,args,null);
if(clusterValue != null){
// Add all the arguments which need to be validated
this.createCollectiveArg... |
public class class_name {
protected final void broadcastCompleted(final ServerResponse response) {
final boolean successfulUpload = response.getHttpCode() >= 200 && response.getHttpCode() < 400;
if (successfulUpload) {
onSuccessfulUpload();
if (params.autoDeleteSuccessfullyUp... | public class class_name {
protected final void broadcastCompleted(final ServerResponse response) {
final boolean successfulUpload = response.getHttpCode() >= 200 && response.getHttpCode() < 400;
if (successfulUpload) {
onSuccessfulUpload(); // depends on control dependency: [if], data = [... |
public class class_name {
public static void forEachOperator(BiConsumer<String, Helper> consumer) {
for (Operator operator : Operator.values()) {
consumer.accept(operator.toString().toLowerCase(), new NumericExpressionHelper(operator));
}
} } | public class class_name {
public static void forEachOperator(BiConsumer<String, Helper> consumer) {
for (Operator operator : Operator.values()) {
consumer.accept(operator.toString().toLowerCase(), new NumericExpressionHelper(operator)); // depends on control dependency: [for], data = [operator]
... |
public class class_name {
private void set(double value)
{
cur = value;
if (!overMax && cur > max)
{
cur = max;
}
if (cur < Alterable.MIN)
{
cur = Alterable.MIN;
}
} } | public class class_name {
private void set(double value)
{
cur = value;
if (!overMax && cur > max)
{
cur = max; // depends on control dependency: [if], data = [none]
}
if (cur < Alterable.MIN)
{
cur = Alterable.MIN; // depends on control depen... |
public class class_name {
public char[] toCharArray(final int startIndex, int endIndex) {
endIndex = validateRange(startIndex, endIndex);
final int len = endIndex - startIndex;
if (len == 0) {
return ArrayUtils.EMPTY_CHAR_ARRAY;
}
final char chars[] = new char[len];
... | public class class_name {
public char[] toCharArray(final int startIndex, int endIndex) {
endIndex = validateRange(startIndex, endIndex);
final int len = endIndex - startIndex;
if (len == 0) {
return ArrayUtils.EMPTY_CHAR_ARRAY; // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected boolean containsEOLDelimiters(byte[] data) {
int numCRLFs = 0;
for (int i = 0; i < data.length; i++) {
if ('\r' == data[i] || '\n' == data[i]) {
numCRLFs++;
if (4 == numCRLFs) {
if (TraceComponent.isAnyT... | public class class_name {
protected boolean containsEOLDelimiters(byte[] data) {
int numCRLFs = 0;
for (int i = 0; i < data.length; i++) {
if ('\r' == data[i] || '\n' == data[i]) {
numCRLFs++; // depends on control dependency: [if], data = [none]
if (4 == num... |
public class class_name {
@Override
public EEnum getIfcObjectTypeEnum() {
if (ifcObjectTypeEnumEEnum == null) {
ifcObjectTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1021);
}
return ifcObjectTypeEnumEEnum;
} } | public class class_name {
@Override
public EEnum getIfcObjectTypeEnum() {
if (ifcObjectTypeEnumEEnum == null) {
ifcObjectTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1021);
// depends on control dependency: [if], data = [none]
}
return ... |
public class class_name {
protected Object getInjectedObjectFromCXF(Class<?> classType,
Type genericType,
Annotation[] memberAnnotations,
ParamInjectionMetadata paramInjectionMetada... | public class class_name {
protected Object getInjectedObjectFromCXF(Class<?> classType,
Type genericType,
Annotation[] memberAnnotations,
ParamInjectionMetadata paramInjectionMetada... |
public class class_name {
@Override
public void afterDisconnect(SlaveComputer slaveComputer, final TaskListener listener) {
if (connection == null) {
// Nothing to do here, the connection is not established
return;
}
ExecutorService srv = launcherExecutorService;
... | public class class_name {
@Override
public void afterDisconnect(SlaveComputer slaveComputer, final TaskListener listener) {
if (connection == null) {
// Nothing to do here, the connection is not established
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private PartialUriTemplateComponents getUriTemplateComponents(Map<String, ?> parameters, List<String>
requiredArgs) {
Assert.notNull(parameters, "Parameters must not be null!");
final StringBuilder baseUrl = new StringBuilder(urlComponents.get(0));
final S... | public class class_name {
private PartialUriTemplateComponents getUriTemplateComponents(Map<String, ?> parameters, List<String>
requiredArgs) {
Assert.notNull(parameters, "Parameters must not be null!");
final StringBuilder baseUrl = new StringBuilder(urlComponents.get(0));
final S... |
public class class_name {
public void info(String message, Object... args) {
if (DEBUG.equals(this.logLevel) || INFO.equals(this.logLevel)) {
System.out.println(String.format(message, args));
}
} } | public class class_name {
public void info(String message, Object... args) {
if (DEBUG.equals(this.logLevel) || INFO.equals(this.logLevel)) {
System.out.println(String.format(message, args)); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static String getRealPath(final WebApplication application, final String path)
{
final String realPath = application.getServletContext().getRealPath(path);
if ((null != realPath) && !realPath.isEmpty())
{
return realPath;
}
return "";
} } | public class class_name {
public static String getRealPath(final WebApplication application, final String path)
{
final String realPath = application.getServletContext().getRealPath(path);
if ((null != realPath) && !realPath.isEmpty())
{
return realPath; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public org.fcrepo.server.types.gen.FieldSearchResult resumeFindObjects(String sessionToken) {
MessageContext ctx = context.getMessageContext();
Context context = ReadOnlyContext.getSoapContext(ctx);
assertInitialized();
try {
org.fcrep... | public class class_name {
@Override
public org.fcrepo.server.types.gen.FieldSearchResult resumeFindObjects(String sessionToken) {
MessageContext ctx = context.getMessageContext();
Context context = ReadOnlyContext.getSoapContext(ctx);
assertInitialized();
try {
org.fcrep... |
public class class_name {
private Boolean getGlobalParam(Map property) {
Boolean global = null;
Object globalObj = property.get("global");
if (globalObj == null) {
// default behaviour before liquibase 3.4
global = true;
} else {
global = (Boolean) globalObj;
}
return global;
} } | public class class_name {
private Boolean getGlobalParam(Map property) {
Boolean global = null;
Object globalObj = property.get("global");
if (globalObj == null) {
// default behaviour before liquibase 3.4
global = true; // depends on control dependency: [if], data = [none]
} else {
global = (Boolean)... |
public class class_name {
public Observable<ServiceResponse<Void>> addVideoFrameStreamWithServiceResponseAsync(String teamName, String reviewId, String contentType, byte[] frameImageZip, String frameMetadata, Integer timescale) {
if (this.client.baseUrl() == null) {
throw new IllegalArgumentExcepti... | public class class_name {
public Observable<ServiceResponse<Void>> addVideoFrameStreamWithServiceResponseAsync(String teamName, String reviewId, String contentType, byte[] frameImageZip, String frameMetadata, Integer timescale) {
if (this.client.baseUrl() == null) {
throw new IllegalArgumentExcepti... |
public class class_name {
@Override public void init(boolean expensive) {
super.init(expensive);
// Initialize response based on given distribution family.
// Regression: initially predict the response mean
// Binomial: just class 0 (class 1 in the exact inverse prediction)
// Multinomial: Class d... | public class class_name {
@Override public void init(boolean expensive) {
super.init(expensive);
// Initialize response based on given distribution family.
// Regression: initially predict the response mean
// Binomial: just class 0 (class 1 in the exact inverse prediction)
// Multinomial: Class d... |
public class class_name {
public <T extends Tuple> DataSource<T> tupleType(Class<T> targetType) {
Preconditions.checkNotNull(targetType, "The target type class must not be null.");
if (!Tuple.class.isAssignableFrom(targetType)) {
throw new IllegalArgumentException("The target type must be a subclass of " + Tupl... | public class class_name {
public <T extends Tuple> DataSource<T> tupleType(Class<T> targetType) {
Preconditions.checkNotNull(targetType, "The target type class must not be null.");
if (!Tuple.class.isAssignableFrom(targetType)) {
throw new IllegalArgumentException("The target type must be a subclass of " + Tupl... |
public class class_name {
public static Object executeExpression(String jexlExpression, Map<String, Object> map) {
JexlExpression expression = jexlEngine.createExpression(jexlExpression);
JexlContext context = new MapContext();
if (Checker.isNotEmpty(map)) {
map.forEach(context::set... | public class class_name {
public static Object executeExpression(String jexlExpression, Map<String, Object> map) {
JexlExpression expression = jexlEngine.createExpression(jexlExpression);
JexlContext context = new MapContext();
if (Checker.isNotEmpty(map)) {
map.forEach(context::set... |
public class class_name {
public Map<String,BeanDefinition> getBeanDefinitions() {
Map<String,BeanDefinition> beanDefinitions = new HashMap<>();
for (String beanName : getSpringConfig().getBeanNames()) {
BeanDefinition bd = getSpringConfig()
.getBeanConfig(beanName)
... | public class class_name {
public Map<String,BeanDefinition> getBeanDefinitions() {
Map<String,BeanDefinition> beanDefinitions = new HashMap<>();
for (String beanName : getSpringConfig().getBeanNames()) {
BeanDefinition bd = getSpringConfig()
.getBeanConfig(beanName)
... |
public class class_name {
@Override
public void runFinallyRoutes() {
while (iterator.hasNext()) {
Route route = iterator.next().getRoute();
if (route.isRunAsFinally()) {
try {
handleRoute(route);
} catch (Exception e) {
... | public class class_name {
@Override
public void runFinallyRoutes() {
while (iterator.hasNext()) {
Route route = iterator.next().getRoute();
if (route.isRunAsFinally()) {
try {
handleRoute(route); // depends on control dependency: [try], data = [no... |
public class class_name {
public ListLayerVersionsResult withLayerVersions(LayerVersionsListItem... layerVersions) {
if (this.layerVersions == null) {
setLayerVersions(new com.amazonaws.internal.SdkInternalList<LayerVersionsListItem>(layerVersions.length));
}
for (LayerVersionsListI... | public class class_name {
public ListLayerVersionsResult withLayerVersions(LayerVersionsListItem... layerVersions) {
if (this.layerVersions == null) {
setLayerVersions(new com.amazonaws.internal.SdkInternalList<LayerVersionsListItem>(layerVersions.length)); // depends on control dependency: [if], d... |
public class class_name {
public static <K, V> ImmutableSetMultimap<K, V> indexToSetMultimapWithMultipleKeys(
Iterable<? extends V> values, Function<? super V, ? extends Collection<? extends K>> keyFunction) {
final ImmutableSetMultimap.Builder<K,V> ret = ImmutableSetMultimap.builder();
for (final V val... | public class class_name {
public static <K, V> ImmutableSetMultimap<K, V> indexToSetMultimapWithMultipleKeys(
Iterable<? extends V> values, Function<? super V, ? extends Collection<? extends K>> keyFunction) {
final ImmutableSetMultimap.Builder<K,V> ret = ImmutableSetMultimap.builder();
for (final V val... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.