code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@PropertySetter("allowCustom")
public void setAllowCustom(boolean allowCustom) {
customItem.setVisible(allowCustom);
if (!allowCustom) {
BaseComponent sibling;
while ((sibling = customItem.getNextSibling()) != null) {
... | public class class_name {
@PropertySetter("allowCustom")
public void setAllowCustom(boolean allowCustom) {
customItem.setVisible(allowCustom);
if (!allowCustom) {
BaseComponent sibling;
while ((sibling = customItem.getNextSibling()) != null) {
... |
public class class_name {
public static void copyFromTo(Object from, Object to, String fieldName) {
if (from == null || to == null) {
log.info("object deep copy : from or to is null ");
return;
}
try {
Method getter = getGetterMethod(from.getClass(), fieldN... | public class class_name {
public static void copyFromTo(Object from, Object to, String fieldName) {
if (from == null || to == null) {
log.info("object deep copy : from or to is null "); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if]... |
public class class_name {
@Override
protected int pruneCache() {
if (!isPruneExpiredActive()) {
return 0;
}
int count = 0;
Iterator<CacheObject<K,V>> values = cacheMap.values().iterator();
while (values.hasNext()) {
CacheObject<K,V> co = values.next();
if (co.isExpired()) {
values.remove(... | public class class_name {
@Override
protected int pruneCache() {
if (!isPruneExpiredActive()) {
return 0; // depends on control dependency: [if], data = [none]
}
int count = 0;
Iterator<CacheObject<K,V>> values = cacheMap.values().iterator();
while (values.hasNext()) {
CacheObject<K,V> co = valu... |
public class class_name {
@Override
public CPInstance fetchByLtD_S_First(Date displayDate, int status,
OrderByComparator<CPInstance> orderByComparator) {
List<CPInstance> list = findByLtD_S(displayDate, status, 0, 1,
orderByComparator);
if (!list.isEmpty()) {
return list.get(0);
}
return null;
} } | public class class_name {
@Override
public CPInstance fetchByLtD_S_First(Date displayDate, int status,
OrderByComparator<CPInstance> orderByComparator) {
List<CPInstance> list = findByLtD_S(displayDate, status, 0, 1,
orderByComparator);
if (!list.isEmpty()) {
return list.get(0); // depends on control de... |
public class class_name {
public static boolean allJSONArrays(JSONArray array) throws JSONException {
for (int i = 0; i < array.length(); ++i) {
if (!(array.get(i) instanceof JSONArray)) {
return false;
}
}
return true;
} } | public class class_name {
public static boolean allJSONArrays(JSONArray array) throws JSONException {
for (int i = 0; i < array.length(); ++i) {
if (!(array.get(i) instanceof JSONArray)) {
return false; // depends on control dependency: [if], data = [none]
}
}
... |
public class class_name {
@Override
protected Statement visitMsgFallbackGroupNode(MsgFallbackGroupNode node) {
MsgNode msg = node.getMsg();
MsgPartsAndIds idAndParts = MsgUtils.buildMsgPartsAndComputeMsgIdForDualFormat(msg);
ImmutableList<SoyPrintDirective> escapingDirectives = node.getEscapingDirectives... | public class class_name {
@Override
protected Statement visitMsgFallbackGroupNode(MsgFallbackGroupNode node) {
MsgNode msg = node.getMsg();
MsgPartsAndIds idAndParts = MsgUtils.buildMsgPartsAndComputeMsgIdForDualFormat(msg);
ImmutableList<SoyPrintDirective> escapingDirectives = node.getEscapingDirectives... |
public class class_name {
private static Object digIn(Object target, String field) {
if (target instanceof List) {
// The 'field' will tell us what type of objects belong in the list.
@SuppressWarnings("unchecked")
List<Object> list = (List<Object>) target;
retu... | public class class_name {
private static Object digIn(Object target, String field) {
if (target instanceof List) {
// The 'field' will tell us what type of objects belong in the list.
@SuppressWarnings("unchecked")
List<Object> list = (List<Object>) target;
retu... |
public class class_name {
public DERObject toASN1Object()
{
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(base);
if (minimum != null)
{
v.add(new DERTaggedObject(false, 0, minimum));
}
if (maximum != null)
{
v.add(new DER... | public class class_name {
public DERObject toASN1Object()
{
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(base);
if (minimum != null)
{
v.add(new DERTaggedObject(false, 0, minimum)); // depends on control dependency: [if], data = [none]
}
if... |
public class class_name {
public static String[] segmentTags(String qualifiedSegmentName) {
Preconditions.checkNotNull(qualifiedSegmentName);
String[] tags = {TAG_SCOPE, null, TAG_STREAM, null, TAG_SEGMENT, null, TAG_EPOCH, null};
if (qualifiedSegmentName.contains(TABLE_SEGMENT_DELIMITER)) {
... | public class class_name {
public static String[] segmentTags(String qualifiedSegmentName) {
Preconditions.checkNotNull(qualifiedSegmentName);
String[] tags = {TAG_SCOPE, null, TAG_STREAM, null, TAG_SEGMENT, null, TAG_EPOCH, null};
if (qualifiedSegmentName.contains(TABLE_SEGMENT_DELIMITER)) {
... |
public class class_name {
private static boolean hasSameVersionOfCglib(ClassLoader classLoader) {
Class<?> fc = net.sf.cglib.reflect.FastClass.class;
try {
return classLoader.loadClass(fc.getName()) == fc;
} catch (ClassNotFoundException e) {
return false;
}
} } | public class class_name {
private static boolean hasSameVersionOfCglib(ClassLoader classLoader) {
Class<?> fc = net.sf.cglib.reflect.FastClass.class;
try {
return classLoader.loadClass(fc.getName()) == fc; // depends on control dependency: [try], data = [none]
} catch (ClassNotFoundException e) {
... |
public class class_name {
public void setInternetGatewayIds(java.util.Collection<String> internetGatewayIds) {
if (internetGatewayIds == null) {
this.internetGatewayIds = null;
return;
}
this.internetGatewayIds = new com.amazonaws.internal.SdkInternalList<String>(intern... | public class class_name {
public void setInternetGatewayIds(java.util.Collection<String> internetGatewayIds) {
if (internetGatewayIds == null) {
this.internetGatewayIds = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [... |
public class class_name {
public static DependencyHintsInfo getHints(String filename) {
DependencyHintsInfo hints = null;
if (StringUtils.isNotBlank(filename)) {
if (filename.matches(PORTABLE_EXECUTABLES_PATTERN)) {
hints = getPortableExecutableHints(filename);
}... | public class class_name {
public static DependencyHintsInfo getHints(String filename) {
DependencyHintsInfo hints = null;
if (StringUtils.isNotBlank(filename)) {
if (filename.matches(PORTABLE_EXECUTABLES_PATTERN)) {
hints = getPortableExecutableHints(filename); // depends on... |
public class class_name {
public void setZoom(int zoom)
{
if (zoom == this.zoomLevel)
{
return;
}
TileFactoryInfo info = getTileFactory().getInfo();
// don't repaint if we are out of the valid zoom levels
if (info != null && (zoom < info.getMini... | public class class_name {
public void setZoom(int zoom)
{
if (zoom == this.zoomLevel)
{
return;
// depends on control dependency: [if], data = [none]
}
TileFactoryInfo info = getTileFactory().getInfo();
// don't repaint if we are out of the valid zoom le... |
public class class_name {
@Deprecated
public Object getOptionObject(String opt)
{
try
{
return getParsedOptionValue(opt);
}
catch (ParseException pe)
{
System.err.println("Exception found converting " + opt + " to desired type: " + pe.getMessage()... | public class class_name {
@Deprecated
public Object getOptionObject(String opt)
{
try
{
return getParsedOptionValue(opt); // depends on control dependency: [try], data = [none]
}
catch (ParseException pe)
{
System.err.println("Exception found conv... |
public class class_name {
public static BufferedImage createThumbnail(BufferedImage image,
int newSize) {
int width = image.getWidth();
int height = image.getHeight();
boolean isTranslucent = image.getTransparency() != Transparency.OPAQUE;
... | public class class_name {
public static BufferedImage createThumbnail(BufferedImage image,
int newSize) {
int width = image.getWidth();
int height = image.getHeight();
boolean isTranslucent = image.getTransparency() != Transparency.OPAQUE;
... |
public class class_name {
public String getEncodeType() {
String contentType = header.get("Content-Type");
if (null != contentType) {
for (String tmp : contentType.split(";")) {
if (tmp == null)
continue;
tmp = tmp.trim();
... | public class class_name {
public String getEncodeType() {
String contentType = header.get("Content-Type");
if (null != contentType) {
for (String tmp : contentType.split(";")) {
if (tmp == null)
continue;
tmp = tmp.trim();
// depend... |
public class class_name {
public DescribeConditionalForwardersRequest withRemoteDomainNames(String... remoteDomainNames) {
if (this.remoteDomainNames == null) {
setRemoteDomainNames(new com.amazonaws.internal.SdkInternalList<String>(remoteDomainNames.length));
}
for (String ele : re... | public class class_name {
public DescribeConditionalForwardersRequest withRemoteDomainNames(String... remoteDomainNames) {
if (this.remoteDomainNames == null) {
setRemoteDomainNames(new com.amazonaws.internal.SdkInternalList<String>(remoteDomainNames.length)); // depends on control dependency: [if]... |
public class class_name {
protected final boolean isValidEndTypeForPattern() {
if (getEndType() == null) {
return false;
}
switch (getPatternType()) {
case DAILY:
case WEEKLY:
case MONTHLY:
case YEARLY:
return (getEndT... | public class class_name {
protected final boolean isValidEndTypeForPattern() {
if (getEndType() == null) {
return false; // depends on control dependency: [if], data = [none]
}
switch (getPatternType()) {
case DAILY:
case WEEKLY:
case MONTHLY:
... |
public class class_name {
@Override
public void removeByCommerceCountryId(long commerceCountryId) {
for (CommerceRegion commerceRegion : findByCommerceCountryId(
commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceRegion);
}
} } | public class class_name {
@Override
public void removeByCommerceCountryId(long commerceCountryId) {
for (CommerceRegion commerceRegion : findByCommerceCountryId(
commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceRegion); // depends on control dependency: [for], data = [commerce... |
public class class_name {
@SuppressWarnings("unchecked")
protected I getIdFromEntity(EntityManager em, Object entity, ResourceField idField) {
Object pk = em.getEntityManagerFactory().getPersistenceUnitUtil().getIdentifier(entity);
PreconditionUtil.verify(pk != null, "pk not available for entity %s... | public class class_name {
@SuppressWarnings("unchecked")
protected I getIdFromEntity(EntityManager em, Object entity, ResourceField idField) {
Object pk = em.getEntityManagerFactory().getPersistenceUnitUtil().getIdentifier(entity);
PreconditionUtil.verify(pk != null, "pk not available for entity %s... |
public class class_name {
public static <Value extends Comparable<Value>> int nullSafeCompare(final Value first, final Value second) {
if (first == null) {
return second == null ? EQUAL_COMPARE_RESULT : LOWER_THAN_COMPARE_RESULT;
}
return second == null ? GREATER_THAN_COMPARE_RESULT... | public class class_name {
public static <Value extends Comparable<Value>> int nullSafeCompare(final Value first, final Value second) {
if (first == null) {
return second == null ? EQUAL_COMPARE_RESULT : LOWER_THAN_COMPARE_RESULT; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static XMLGregorianCalendar parseXMLGregorianCalendar(final String calendar, final String format, final TimeZone timeZone) {
if (N.isNullOrEmpty(calendar) || (calendar.length() == 4 && "null".equalsIgnoreCase(calendar))) {
return null;
}
return... | public class class_name {
public static XMLGregorianCalendar parseXMLGregorianCalendar(final String calendar, final String format, final TimeZone timeZone) {
if (N.isNullOrEmpty(calendar) || (calendar.length() == 4 && "null".equalsIgnoreCase(calendar))) {
return null;
// depends on control depen... |
public class class_name {
CommitLogSegment recycle()
{
try
{
sync();
}
catch (FSWriteError e)
{
logger.error("I/O error flushing {} {}", this, e.getMessage());
throw e;
}
close();
return new CommitLogSegment(getPa... | public class class_name {
CommitLogSegment recycle()
{
try
{
sync(); // depends on control dependency: [try], data = [none]
}
catch (FSWriteError e)
{
logger.error("I/O error flushing {} {}", this, e.getMessage());
throw e;
} // de... |
public class class_name {
Method getSetter(Method getter) {
synchronized (setterCache) {
if ( !setterCache.containsKey(getter) ) {
String attributeName = null;
if ( getter.getName().startsWith("get") ) {
attributeName = getter.getName().substring(... | public class class_name {
Method getSetter(Method getter) {
synchronized (setterCache) {
if ( !setterCache.containsKey(getter) ) {
String attributeName = null;
if ( getter.getName().startsWith("get") ) {
attributeName = getter.getName().substring(... |
public class class_name {
synchronized public boolean release(DTM dtm, boolean shouldHardDelete)
{
if(DEBUG)
{
System.out.println("Releasing "+
(shouldHardDelete ? "HARD" : "soft")+
" dtm="+
// Following shouldn't need a nodeHandle, but does...
// and doesn't seem to report the intended... | public class class_name {
synchronized public boolean release(DTM dtm, boolean shouldHardDelete)
{
if(DEBUG)
{
System.out.println("Releasing "+
(shouldHardDelete ? "HARD" : "soft")+
" dtm="+
// Following shouldn't need a nodeHandle, but does...
// and doesn't seem to report the intended... |
public class class_name {
public String getCaption() {
if (item.captionCode().isEmpty()) {
return item.caption();
} else {
return i18n.get(item.captionCode());
}
} } | public class class_name {
public String getCaption() {
if (item.captionCode().isEmpty()) {
return item.caption(); // depends on control dependency: [if], data = [none]
} else {
return i18n.get(item.captionCode()); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static Collection<Class> getClassSimpleDependencies(Class c)
{
HashSet<Class> result = new HashSet<Class>();
result.add(c); //add the own class
//declared subclasses
Class[] declaredClasses = c.getDeclaredClasses();
... | public class class_name {
public static Collection<Class> getClassSimpleDependencies(Class c)
{
HashSet<Class> result = new HashSet<Class>();
result.add(c); //add the own class
//declared subclasses
Class[] declaredClasses = c.getDeclaredClasses();
... |
public class class_name {
@Override
public void onViewReady(View view, Bundle savedInstanceState, Reason reason) {
super.onViewReady(view, savedInstanceState, reason);
if (reason.isFirstTime()) {
CounterMasterInsideView f = new CounterMasterInsideView();
getChildFragmentMa... | public class class_name {
@Override
public void onViewReady(View view, Bundle savedInstanceState, Reason reason) {
super.onViewReady(view, savedInstanceState, reason);
if (reason.isFirstTime()) {
CounterMasterInsideView f = new CounterMasterInsideView();
getChildFragmentMa... |
public class class_name {
@Override
public void close() {
synchronized (lock) {
if (closed) {
return;
}
closed = true;
tokenSource.unregister(this);
tokenSource = null;
action = null;
}
} } | public class class_name {
@Override
public void close() {
synchronized (lock) {
if (closed) {
return; // depends on control dependency: [if], data = [none]
}
closed = true;
tokenSource.unregister(this);
tokenSource = null;
action = null;
}
} } |
public class class_name {
static String maybeEscapeElementValue(final String pValue) {
int startEscape = needsEscapeElement(pValue);
if (startEscape < 0) {
// If no escaping is needed, simply return original
return pValue;
}
else {
// Otherwise, star... | public class class_name {
static String maybeEscapeElementValue(final String pValue) {
int startEscape = needsEscapeElement(pValue);
if (startEscape < 0) {
// If no escaping is needed, simply return original
return pValue; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public synchronized void add(PmiModule instance) {
if (instance == null)
return;
// no need to add instance to instanceList - to be removed.
/*
* if(!instanceList.contains(instance)) {
* instanceList.add(instance);
* }
*... | public class class_name {
public synchronized void add(PmiModule instance) {
if (instance == null)
return;
// no need to add instance to instanceList - to be removed.
/*
* if(!instanceList.contains(instance)) {
* instanceList.add(instance);
* }
*... |
public class class_name {
@Override
public long getLong(TemporalField field) {
if (field instanceof ChronoField) {
switch ((ChronoField) field) {
case ALIGNED_DAY_OF_WEEK_IN_MONTH:
return month == 0 ? 0 : super.getLong(field);
case ALIGNED_DAY... | public class class_name {
@Override
public long getLong(TemporalField field) {
if (field instanceof ChronoField) {
switch ((ChronoField) field) {
case ALIGNED_DAY_OF_WEEK_IN_MONTH:
return month == 0 ? 0 : super.getLong(field);
case ALIGNED_DAY... |
public class class_name {
final static protected void addInputPathRecursively(List<FileStatus> result,
FileSystem fs, Path path, PathFilter inputFilter)
throws IOException {
for(FileStatus stat: fs.listStatus(path, inputFilter)) {
if (stat.isDir()) {
addInputPathRecursively(result, fs, s... | public class class_name {
final static protected void addInputPathRecursively(List<FileStatus> result,
FileSystem fs, Path path, PathFilter inputFilter)
throws IOException {
for(FileStatus stat: fs.listStatus(path, inputFilter)) {
if (stat.isDir()) {
addInputPathRecursively(result, fs, s... |
public class class_name {
synchronized void cleanUpOverMemoryTask(TaskAttemptID tid, boolean wasFailure,
String diagnosticMsg) {
TaskInProgress tip = runningTasks.get(tid);
if (tip != null) {
tip.reportDiagnosticInfo(diagnosticMsg);
try {
purgeTask(tip, wasFailure); // Marking it as f... | public class class_name {
synchronized void cleanUpOverMemoryTask(TaskAttemptID tid, boolean wasFailure,
String diagnosticMsg) {
TaskInProgress tip = runningTasks.get(tid);
if (tip != null) {
tip.reportDiagnosticInfo(diagnosticMsg); // depends on control dependency: [if], data = [none]
try {
... |
public class class_name {
public void isFalse(final boolean expression, final String message, final Object... values) {
if (expression) {
fail(String.format(message, values));
}
} } | public class class_name {
public void isFalse(final boolean expression, final String message, final Object... values) {
if (expression) {
fail(String.format(message, values)); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
Schema stripOptionalTypeUnion(Schema schema) {
if(schema.getType() == Schema.Type.UNION && schema.getTypes().size() == 2
&& schema.getTypes().contains(NULL_TYPE_SCHEMA)) {
return schema.getTypes().get(0).equals(NULL_TYPE_SCHEMA) ? schema.getTypes().get(1)
... | public class class_name {
Schema stripOptionalTypeUnion(Schema schema) {
if(schema.getType() == Schema.Type.UNION && schema.getTypes().size() == 2
&& schema.getTypes().contains(NULL_TYPE_SCHEMA)) {
return schema.getTypes().get(0).equals(NULL_TYPE_SCHEMA) ? schema.getTypes().get(1)
... |
public class class_name {
public static List<Method> findMethods(Class<?> type,
Class<? extends Annotation> annotation) {
List<Method> list = new ArrayList<Method>();
while (type != null) {
for (Method method : type.getDeclaredMethods()) {
if (method.getAnnotation(annotation) != null) {
list.add(met... | public class class_name {
public static List<Method> findMethods(Class<?> type,
Class<? extends Annotation> annotation) {
List<Method> list = new ArrayList<Method>();
while (type != null) {
for (Method method : type.getDeclaredMethods()) {
if (method.getAnnotation(annotation) != null) {
list.add(met... |
public class class_name {
@SafeVarargs
static public <T> MutableRrbt<T> mutableRrb(T... items) {
if ( (items == null) || (items.length < 1) ) { return RrbTree.emptyMutable(); }
return RrbTree.<T>emptyMutable()
.concat(Arrays.asList(items));
} } | public class class_name {
@SafeVarargs
static public <T> MutableRrbt<T> mutableRrb(T... items) {
if ( (items == null) || (items.length < 1) ) { return RrbTree.emptyMutable(); } // depends on control dependency: [if], data = [none]
return RrbTree.<T>emptyMutable()
.concat(Arrays.asLi... |
public class class_name {
private final void setFlagValue(byte flagBit, boolean value) {
if (value) {
flags = (byte) (getFlags() | flagBit);
}
else {
flags = (byte) (getFlags() & (~flagBit));
}
} } | public class class_name {
private final void setFlagValue(byte flagBit, boolean value) {
if (value) {
flags = (byte) (getFlags() | flagBit); // depends on control dependency: [if], data = [none]
}
else {
flags = (byte) (getFlags() & (~flagBit)); // depends on control dep... |
public class class_name {
protected void onRender() {
MarkupStream markupStream = findMarkupStream();
try {
final ComponentTag openTag = markupStream.getTag();
final ComponentTag tag = openTag.mutable();
final IValueMap attributes = tag.getAttributes();
String src = (String) attributes.get("src");
... | public class class_name {
protected void onRender() {
MarkupStream markupStream = findMarkupStream();
try {
final ComponentTag openTag = markupStream.getTag();
final ComponentTag tag = openTag.mutable();
final IValueMap attributes = tag.getAttributes();
String src = (String) attributes.get("src");
... |
public class class_name {
@Override
public void visitInsn(int inst) {
processPendingExceptionHandlerEntry(-1);
// List of opcodes taken from visitInsn documentation
if (waitingForSuper) {
// Visit the instruction
super.visitInsn(inst);
switch (inst) {
... | public class class_name {
@Override
public void visitInsn(int inst) {
processPendingExceptionHandlerEntry(-1);
// List of opcodes taken from visitInsn documentation
if (waitingForSuper) {
// Visit the instruction
super.visitInsn(inst); // depends on control dependen... |
public class class_name {
@SuppressWarnings("PMD.AssignmentInOperand")
private static byte[] asBytes(final InputStream input) throws IOException {
input.reset();
try (ByteArrayOutputStream output = new ByteArrayOutputStream()) {
// @checkstyle MagicNumberCheck (1 line)
final... | public class class_name {
@SuppressWarnings("PMD.AssignmentInOperand")
private static byte[] asBytes(final InputStream input) throws IOException {
input.reset();
try (ByteArrayOutputStream output = new ByteArrayOutputStream()) {
// @checkstyle MagicNumberCheck (1 line)
final... |
public class class_name {
@SuppressWarnings("unchecked")
public <T> Set<T> getContextSet(String key) {
Set<T> set = (Set<T>) attributes.get(key);
if (set == null) {
set = new HashSet<T>();
attributes.put(key, set);
if (TraceComponent.isAnyTracingEnabled() && tc.... | public class class_name {
@SuppressWarnings("unchecked")
public <T> Set<T> getContextSet(String key) {
Set<T> set = (Set<T>) attributes.get(key);
if (set == null) {
set = new HashSet<T>(); // depends on control dependency: [if], data = [none]
attributes.put(key, set); // dep... |
public class class_name {
public String formatISO(
IsoDateStyle dateStyle,
InfinityStyle infinityStyle
) {
DateInterval interval = this.toCanonical();
StringBuilder buffer = new StringBuilder(21);
ChronoPrinter<PlainDate> printer = Iso8601Format.ofDate(dateStyle);
i... | public class class_name {
public String formatISO(
IsoDateStyle dateStyle,
InfinityStyle infinityStyle
) {
DateInterval interval = this.toCanonical();
StringBuilder buffer = new StringBuilder(21);
ChronoPrinter<PlainDate> printer = Iso8601Format.ofDate(dateStyle);
i... |
public class class_name {
public static boolean isEventMetadataRequired(ObserverMethod<?> observer) {
if (observer instanceof EventMetadataAwareObserverMethod) {
EventMetadataAwareObserverMethod<?> eventMetadataAware = (EventMetadataAwareObserverMethod<?>) observer;
return eventMetadata... | public class class_name {
public static boolean isEventMetadataRequired(ObserverMethod<?> observer) {
if (observer instanceof EventMetadataAwareObserverMethod) {
EventMetadataAwareObserverMethod<?> eventMetadataAware = (EventMetadataAwareObserverMethod<?>) observer;
return eventMetadata... |
public class class_name {
public void printBeans(final int width) {
final Print print = new Print();
print.line("Beans", width);
final List<BeanDefinition> beanDefinitionList = new ArrayList<>();
final String appName = appNameSupplier.get();
final String prefix = appName + ".";
petiteContainer.forEachBe... | public class class_name {
public void printBeans(final int width) {
final Print print = new Print();
print.line("Beans", width);
final List<BeanDefinition> beanDefinitionList = new ArrayList<>();
final String appName = appNameSupplier.get();
final String prefix = appName + ".";
petiteContainer.forEachBe... |
public class class_name {
public static Optimizer<DifferentiableFunction> getRegularizedOptimizer(final Optimizer<DifferentiableFunction> opt,
final double l1Lambda, final double l2Lambda) {
if (l1Lambda == 0 && l2Lambda == 0) {
return opt;
}
return new Optimizer<Differe... | public class class_name {
public static Optimizer<DifferentiableFunction> getRegularizedOptimizer(final Optimizer<DifferentiableFunction> opt,
final double l1Lambda, final double l2Lambda) {
if (l1Lambda == 0 && l2Lambda == 0) {
return opt; // depends on control dependency: [if], data =... |
public class class_name {
private void checkAtMost(int i) throws ContradictionException {
ISet ker = target.getMandSet(g, i);
ISet env = target.getPotSet(g, i);
int size = ker.size();
if (size > degrees[i]) {
g.removeNode(i, this);
} else if (size == degrees[i] && env.size() > size) {
for (int other : ... | public class class_name {
private void checkAtMost(int i) throws ContradictionException {
ISet ker = target.getMandSet(g, i);
ISet env = target.getPotSet(g, i);
int size = ker.size();
if (size > degrees[i]) {
g.removeNode(i, this);
} else if (size == degrees[i] && env.size() > size) {
for (int other : ... |
public class class_name {
private String substitute(String uri) {
List<String> params = extractRequiredParamsInURI(uri);
for (String param: params) {
if (param.equals(PARAMS)) {
uri = uri.replace("{" + PARAMS +"}", Utils.urlEncode(getParamsURI()));
}
else {
uri = uri.replace("... | public class class_name {
private String substitute(String uri) {
List<String> params = extractRequiredParamsInURI(uri);
for (String param: params) {
if (param.equals(PARAMS)) {
uri = uri.replace("{" + PARAMS +"}", Utils.urlEncode(getParamsURI())); // depends on control dependency: [if], data = ... |
public class class_name {
public static <T extends TextView> List<T> filterViewsByText(Iterable<T> views, Pattern regex) {
final ArrayList<T> filteredViews = new ArrayList<T>();
for (T view : views) {
if (view != null && regex.matcher(view.getText()).matches()) {
filteredViews.add(view);
}
}
return f... | public class class_name {
public static <T extends TextView> List<T> filterViewsByText(Iterable<T> views, Pattern regex) {
final ArrayList<T> filteredViews = new ArrayList<T>();
for (T view : views) {
if (view != null && regex.matcher(view.getText()).matches()) {
filteredViews.add(view); // depends on contr... |
public class class_name {
public void marshall(DescribeDRTAccessRequest describeDRTAccessRequest, ProtocolMarshaller protocolMarshaller) {
if (describeDRTAccessRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
} catch (Exc... | public class class_name {
public void marshall(DescribeDRTAccessRequest describeDRTAccessRequest, ProtocolMarshaller protocolMarshaller) {
if (describeDRTAccessRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
} catch (Exc... |
public class class_name {
public DerValue findMostSpecificAttribute(ObjectIdentifier attribute) {
if (names != null) {
for (int i = names.length - 1; i >= 0; i--) {
DerValue value = names[i].findAttribute(attribute);
if (value != null) {
return va... | public class class_name {
public DerValue findMostSpecificAttribute(ObjectIdentifier attribute) {
if (names != null) {
for (int i = names.length - 1; i >= 0; i--) {
DerValue value = names[i].findAttribute(attribute);
if (value != null) {
return va... |
public class class_name {
public static final Color hex2RGB(final String hex)
{
String r, g, b;
final int len = hex.length();
if (len == 7)
{
r = hex.substring(1, 3);
g = hex.substring(3, 5);
b = hex.substring(5, 7);
}
else if ... | public class class_name {
public static final Color hex2RGB(final String hex)
{
String r, g, b;
final int len = hex.length();
if (len == 7)
{
r = hex.substring(1, 3); // depends on control dependency: [if], data = [none]
g = hex.substring(3, 5); // depends... |
public class class_name {
public List<ProteinType.Component> getComponent() {
if (component == null) {
component = new ArrayList<ProteinType.Component>();
}
return this.component;
} } | public class class_name {
public List<ProteinType.Component> getComponent() {
if (component == null) {
component = new ArrayList<ProteinType.Component>(); // depends on control dependency: [if], data = [none]
}
return this.component;
} } |
public class class_name {
private void updateCurrentToolTipText() {
String toolTipText;
final boolean disabled = !isEnabled();
final boolean selected = isSelected();
if (disabled && selected && disabledSelectedToolTipText != null) {
toolTipText = disabledSelectedToolTipText... | public class class_name {
private void updateCurrentToolTipText() {
String toolTipText;
final boolean disabled = !isEnabled();
final boolean selected = isSelected();
if (disabled && selected && disabledSelectedToolTipText != null) {
toolTipText = disabledSelectedToolTipText... |
public class class_name {
@Nullable
public String getServiceId() {
String serviceId = getString(SERVICE_KEY);
if (serviceId == null) {
serviceId = getString(MODULE_KEY);
}
return serviceId;
} } | public class class_name {
@Nullable
public String getServiceId() {
String serviceId = getString(SERVICE_KEY);
if (serviceId == null) {
serviceId = getString(MODULE_KEY); // depends on control dependency: [if], data = [none]
}
return serviceId;
} } |
public class class_name {
public Object value(int i, String key) {
Object data = getData();
if (data instanceof List) {
List list = (List) data;
if (list.size() > 0) {
Map map = (Map) list.get(i);
return map.get(key);
}
} else ... | public class class_name {
public Object value(int i, String key) {
Object data = getData();
if (data instanceof List) {
List list = (List) data;
if (list.size() > 0) {
Map map = (Map) list.get(i);
return map.get(key); // depends on control depende... |
public class class_name {
public java.util.List<EventSubscription> getEventSubscriptionsList() {
if (eventSubscriptionsList == null) {
eventSubscriptionsList = new com.amazonaws.internal.SdkInternalList<EventSubscription>();
}
return eventSubscriptionsList;
} } | public class class_name {
public java.util.List<EventSubscription> getEventSubscriptionsList() {
if (eventSubscriptionsList == null) {
eventSubscriptionsList = new com.amazonaws.internal.SdkInternalList<EventSubscription>(); // depends on control dependency: [if], data = [none]
}
re... |
public class class_name {
public void setAttributes(FaceletContext ctx, Object obj)
{
super.setAttributes(ctx, obj);
NumberConverter c = (NumberConverter) obj;
if (this.locale != null)
{
c.setLocale(ComponentSupport.getLocale(ctx, this.locale));
}
} } | public class class_name {
public void setAttributes(FaceletContext ctx, Object obj)
{
super.setAttributes(ctx, obj);
NumberConverter c = (NumberConverter) obj;
if (this.locale != null)
{
c.setLocale(ComponentSupport.getLocale(ctx, this.locale)); // depends on control dep... |
public class class_name {
@Override
public void removeEndPoint(String name) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Deleting endpoint: " + name);
}
synchronized (this.endpoints) {
if (this.endpoints.remove(name) != null) {
... | public class class_name {
@Override
public void removeEndPoint(String name) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Deleting endpoint: " + name); // depends on control dependency: [if], data = [none]
}
synchronized (this.endpoints) {
... |
public class class_name {
public java.lang.String getJavaClass() {
java.lang.Object ref = javaClass_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs... | public class class_name {
public java.lang.String getJavaClass() {
java.lang.Object ref = javaClass_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref; // depends on control dependency: [if], data = [none]
} else {
com.google.protobuf.ByteString bs =
(com.google.p... |
public class class_name {
public void manage(int workersCount)
{
this.workers.clear();
WorkerThread worker = null;
for (int i = 0; i <workersCount; i++)
{
worker = new WorkerThread(this); //TODO expensive use thread pool
this.manage(worker);
}... | public class class_name {
public void manage(int workersCount)
{
this.workers.clear();
WorkerThread worker = null;
for (int i = 0; i <workersCount; i++)
{
worker = new WorkerThread(this); //TODO expensive use thread pool
// depends on control dependency: [for], data =... |
public class class_name {
public void setInstanceProfileList(java.util.Collection<InstanceProfile> instanceProfileList) {
if (instanceProfileList == null) {
this.instanceProfileList = null;
return;
}
this.instanceProfileList = new com.amazonaws.internal.SdkInternalList<... | public class class_name {
public void setInstanceProfileList(java.util.Collection<InstanceProfile> instanceProfileList) {
if (instanceProfileList == null) {
this.instanceProfileList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [... |
public class class_name {
private void pushInitialEventsAsync() {
postAsyncSafely("CleverTapAPI#pushInitialEventsAsync", new Runnable() {
@Override
public void run() {
try {
getConfigLogger().verbose(getAccountId(), "Queuing daily events");
... | public class class_name {
private void pushInitialEventsAsync() {
postAsyncSafely("CleverTapAPI#pushInitialEventsAsync", new Runnable() {
@Override
public void run() {
try {
getConfigLogger().verbose(getAccountId(), "Queuing daily events"); // depends... |
public class class_name {
public Timecode resample(final Timebase toRate, final boolean toDropFrame)
{
if (toDropFrame && !toRate.canBeDropFrame())
throw new IllegalArgumentException(
"Resample cannot convert to a drop-frame version of a Timebase that does not support drop frame: " + toRate);
final Timeb... | public class class_name {
public Timecode resample(final Timebase toRate, final boolean toDropFrame)
{
if (toDropFrame && !toRate.canBeDropFrame())
throw new IllegalArgumentException(
"Resample cannot convert to a drop-frame version of a Timebase that does not support drop frame: " + toRate);
final Timeb... |
public class class_name {
public static String addStart(String str, String add) {
if (isNullOrEmpty(add)) {
return str;
}
if (isNullOrEmpty(str)) {
return add;
}
if (!str.startsWith(add)) {
return add + str;
}
return str;
... | public class class_name {
public static String addStart(String str, String add) {
if (isNullOrEmpty(add)) {
return str; // depends on control dependency: [if], data = [none]
}
if (isNullOrEmpty(str)) {
return add; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void setNoteUpdatedBy(java.util.Collection<StringFilter> noteUpdatedBy) {
if (noteUpdatedBy == null) {
this.noteUpdatedBy = null;
return;
}
this.noteUpdatedBy = new java.util.ArrayList<StringFilter>(noteUpdatedBy);
} } | public class class_name {
public void setNoteUpdatedBy(java.util.Collection<StringFilter> noteUpdatedBy) {
if (noteUpdatedBy == null) {
this.noteUpdatedBy = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public DERObject toASN1Object()
{
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(policyIdentifier);
if (policyQualifiers != null)
{
v.add(policyQualifiers);
}
return new DERSequence(v);
} } | public class class_name {
public DERObject toASN1Object()
{
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(policyIdentifier);
if (policyQualifiers != null)
{
v.add(policyQualifiers); // depends on control dependency: [if], data = [(policyQualifiers]
}... |
public class class_name {
public AwsSecurityFindingFilters withResourceAwsIamAccessKeyStatus(StringFilter... resourceAwsIamAccessKeyStatus) {
if (this.resourceAwsIamAccessKeyStatus == null) {
setResourceAwsIamAccessKeyStatus(new java.util.ArrayList<StringFilter>(resourceAwsIamAccessKeyStatus.length... | public class class_name {
public AwsSecurityFindingFilters withResourceAwsIamAccessKeyStatus(StringFilter... resourceAwsIamAccessKeyStatus) {
if (this.resourceAwsIamAccessKeyStatus == null) {
setResourceAwsIamAccessKeyStatus(new java.util.ArrayList<StringFilter>(resourceAwsIamAccessKeyStatus.length... |
public class class_name {
private void processRangeOptions(final Map<String, String> properties) {
final String featuresRange = properties.get("range");
final String[] rangeArray = Flags
.processTokenClassFeaturesRange(featuresRange);
if (rangeArray[0].equalsIgnoreCase("lower")) {
this.isLowe... | public class class_name {
private void processRangeOptions(final Map<String, String> properties) {
final String featuresRange = properties.get("range");
final String[] rangeArray = Flags
.processTokenClassFeaturesRange(featuresRange);
if (rangeArray[0].equalsIgnoreCase("lower")) {
this.isLowe... |
public class class_name {
@Override
public void stop()
{
if (! getLifecycle().toStop()) {
return;
}
ArrayList<EnvLoaderListener> listeners = getEnvironmentListeners();
Thread thread = Thread.currentThread();
ClassLoader oldLoader = thread.getContextClassLoader();
thread.setConte... | public class class_name {
@Override
public void stop()
{
if (! getLifecycle().toStop()) {
return; // depends on control dependency: [if], data = [none]
}
ArrayList<EnvLoaderListener> listeners = getEnvironmentListeners();
Thread thread = Thread.currentThread();
ClassLoader oldLoader... |
public class class_name {
public void addMainHandler(Object handler, String prefix) {
if (handler == null) {
throw new NullPointerException();
}
allHandlers.add(handler);
addDeclaredMethods(handler, prefix);
inputConverter.addDeclaredConverters(handler);
out... | public class class_name {
public void addMainHandler(Object handler, String prefix) {
if (handler == null) {
throw new NullPointerException();
}
allHandlers.add(handler);
addDeclaredMethods(handler, prefix);
inputConverter.addDeclaredConverters(handler);
out... |
public class class_name {
public Result run(Database database, Relation<O> relation) {
if(queries == null) {
throw new AbortException("A query set is required for this 'run' method.");
}
// Get a distance and kNN query instance.
DistanceQuery<O> distQuery = database.getDistanceQuery(relation, get... | public class class_name {
public Result run(Database database, Relation<O> relation) {
if(queries == null) {
throw new AbortException("A query set is required for this 'run' method.");
}
// Get a distance and kNN query instance.
DistanceQuery<O> distQuery = database.getDistanceQuery(relation, get... |
public class class_name {
@Override
protected void nibble(Queue<BitIntegrityMorsel> queue) {
BitIntegrityMorsel morsel = queue.peek();
String storeId = morsel.getStoreId();
String account = morsel.getAccount();
StorageProvider store;
try {
store = getStorageProv... | public class class_name {
@Override
protected void nibble(Queue<BitIntegrityMorsel> queue) {
BitIntegrityMorsel morsel = queue.peek();
String storeId = morsel.getStoreId();
String account = morsel.getAccount();
StorageProvider store;
try {
store = getStorageProv... |
public class class_name {
public void setStatusBarVisible(boolean statusBarVisible) {
if (this.statusBarVisible == statusBarVisible) return;
if (statusBar!=null) {
if (statusBarVisible)
panel.add(statusBar.getComponent(), BorderLayout.SOUTH);
else
panel.remove(statusBar.getComponent());
panel.reva... | public class class_name {
public void setStatusBarVisible(boolean statusBarVisible) {
if (this.statusBarVisible == statusBarVisible) return;
if (statusBar!=null) {
if (statusBarVisible)
panel.add(statusBar.getComponent(), BorderLayout.SOUTH);
else
panel.remove(statusBar.getComponent());
panel.reva... |
public class class_name {
public void marshall(DisassociateNodeRequest disassociateNodeRequest, ProtocolMarshaller protocolMarshaller) {
if (disassociateNodeRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(DisassociateNodeRequest disassociateNodeRequest, ProtocolMarshaller protocolMarshaller) {
if (disassociateNodeRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public void removeDeleted(CmsClientSitemapEntry entry) {
for (CmsClientSitemapEntry child : entry.getSubEntries()) {
removeDeleted(child);
}
m_treeItems.remove(entry.getId());
} } | public class class_name {
public void removeDeleted(CmsClientSitemapEntry entry) {
for (CmsClientSitemapEntry child : entry.getSubEntries()) {
removeDeleted(child); // depends on control dependency: [for], data = [child]
}
m_treeItems.remove(entry.getId());
} } |
public class class_name {
public boolean isNew(String name, String artist, String album, byte[] albumCover, String albumCoverFormat, String id, String year, String genre, String bmp, long duration) {
if (name == null && artist == null && album == null && albumCover == null && id == null)
return tru... | public class class_name {
public boolean isNew(String name, String artist, String album, byte[] albumCover, String albumCoverFormat, String id, String year, String genre, String bmp, long duration) {
if (name == null && artist == null && album == null && albumCover == null && id == null)
return tru... |
public class class_name {
public static Long getLong(long pValue) {
if (pValue >= LONG_LOWER_BOUND &&
pValue <= LONG_UPPER_BOUND) {
return mLongs[((int) pValue) - LONG_LOWER_BOUND];
} else {
return new Long(pValue);
}
} } | public class class_name {
public static Long getLong(long pValue) {
if (pValue >= LONG_LOWER_BOUND &&
pValue <= LONG_UPPER_BOUND) {
return mLongs[((int) pValue) - LONG_LOWER_BOUND]; // depends on control dependency: [if], data = [none]
} else {
return new Long(pV... |
public class class_name {
@Override
public Date nextExecutionTime(TriggerContext triggerContext) {
Date date = triggerContext.lastCompletionTime();
if (date != null) {
Date scheduled = triggerContext.lastScheduledExecutionTime();
if (scheduled != null && date.before(schedule... | public class class_name {
@Override
public Date nextExecutionTime(TriggerContext triggerContext) {
Date date = triggerContext.lastCompletionTime();
if (date != null) {
Date scheduled = triggerContext.lastScheduledExecutionTime();
if (scheduled != null && date.before(schedule... |
public class class_name {
public void setBonusPayments(java.util.Collection<BonusPayment> bonusPayments) {
if (bonusPayments == null) {
this.bonusPayments = null;
return;
}
this.bonusPayments = new java.util.ArrayList<BonusPayment>(bonusPayments);
} } | public class class_name {
public void setBonusPayments(java.util.Collection<BonusPayment> bonusPayments) {
if (bonusPayments == null) {
this.bonusPayments = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public Object getSessionAttr(final String attrName) {
final HttpSession sess = request.getSession(false);
if (sess == null) {
return null;
}
return sess.getAttribute(attrName);
} } | public class class_name {
public Object getSessionAttr(final String attrName) {
final HttpSession sess = request.getSession(false);
if (sess == null) {
return null; // depends on control dependency: [if], data = [none]
}
return sess.getAttribute(attrName);
} } |
public class class_name {
protected CDI11Deployment createDeployment(ServletContext context, CDI11Bootstrap bootstrap) {
ImmutableSet.Builder<Metadata<Extension>> extensionsBuilder = ImmutableSet.builder();
extensionsBuilder.addAll(bootstrap.loadExtensions(WeldResourceLoader.getClassLoader()));
... | public class class_name {
protected CDI11Deployment createDeployment(ServletContext context, CDI11Bootstrap bootstrap) {
ImmutableSet.Builder<Metadata<Extension>> extensionsBuilder = ImmutableSet.builder();
extensionsBuilder.addAll(bootstrap.loadExtensions(WeldResourceLoader.getClassLoader()));
... |
public class class_name {
public static final Controller.RetentionPolicy decode(final RetentionPolicy policyModel) {
if (policyModel != null) {
return Controller.RetentionPolicy.newBuilder()
.setRetentionType(Controller.RetentionPolicy.RetentionPolicyType.valueOf(policyModel.get... | public class class_name {
public static final Controller.RetentionPolicy decode(final RetentionPolicy policyModel) {
if (policyModel != null) {
return Controller.RetentionPolicy.newBuilder()
.setRetentionType(Controller.RetentionPolicy.RetentionPolicyType.valueOf(policyModel.get... |
public class class_name {
void appendHex( int value, int digits ) {
if( digits > 1 ) {
appendHex( value >>> 4, digits-1 );
}
output.append( DIGITS[ value & 0xF ] );
} } | public class class_name {
void appendHex( int value, int digits ) {
if( digits > 1 ) {
appendHex( value >>> 4, digits-1 ); // depends on control dependency: [if], data = [1 )]
}
output.append( DIGITS[ value & 0xF ] );
} } |
public class class_name {
private boolean checkForKnownValue(Instruction obj) {
if (trackValueNumbers) {
try {
// See if the value number loaded here is a known value
ValueNumberFrame vnaFrameAfter = vnaDataflow.getFactAfterLocation(getLocation());
if... | public class class_name {
private boolean checkForKnownValue(Instruction obj) {
if (trackValueNumbers) {
try {
// See if the value number loaded here is a known value
ValueNumberFrame vnaFrameAfter = vnaDataflow.getFactAfterLocation(getLocation());
if... |
public class class_name {
public static final synchronized Date parseDateTime(String dateTime) {
try {
return dateTimeFormat.parse(dateTime);
} catch(ParseException e) {
throw new RuntimeException(e);
}
} } | public class class_name {
public static final synchronized Date parseDateTime(String dateTime) {
try {
return dateTimeFormat.parse(dateTime); // depends on control dependency: [try], data = [none]
} catch(ParseException e) {
throw new RuntimeException(e);
} // depends on control dependency: [catch], data =... |
public class class_name {
public void marshall(Endpoint endpoint, ProtocolMarshaller protocolMarshaller) {
if (endpoint == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(endpoint.getAddress(), ADDRE... | public class class_name {
public void marshall(Endpoint endpoint, ProtocolMarshaller protocolMarshaller) {
if (endpoint == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(endpoint.getAddress(), ADDRE... |
public class class_name {
private static String decodeFormFields (final String content, final String charset) {
if (content == null) {
return null;
}
return urldecode(content, charset != null ? Charset.forName(charset) : Consts.UTF_8, true);
} } | public class class_name {
private static String decodeFormFields (final String content, final String charset) {
if (content == null) {
return null; // depends on control dependency: [if], data = [none]
}
return urldecode(content, charset != null ? Charset.forName(charset) : Consts.U... |
public class class_name {
private static String validateDestination(
final JsMessagingEngine messagingEngine, final String busName,
final String destinationName, final DestinationType destinationType)
throws NotSupportedException, ResourceAdapterInternalException {
final St... | public class class_name {
private static String validateDestination(
final JsMessagingEngine messagingEngine, final String busName,
final String destinationName, final DestinationType destinationType)
throws NotSupportedException, ResourceAdapterInternalException {
final St... |
public class class_name {
protected void setMethodStubSelection(boolean createConstructors, boolean createInherited,
boolean createEventHandlers, boolean createLifecycleFunctions, boolean canBeModified) {
if (this.methodStubsButtons != null) {
int idx = 0;
if (this.isConstructorCreationEnabled) {
this.m... | public class class_name {
protected void setMethodStubSelection(boolean createConstructors, boolean createInherited,
boolean createEventHandlers, boolean createLifecycleFunctions, boolean canBeModified) {
if (this.methodStubsButtons != null) {
int idx = 0;
if (this.isConstructorCreationEnabled) {
this.m... |
public class class_name {
public synchronized static Session getSession() {
if(session == null){
Properties properties = IOUtil.loadProperties("jdbc.properties");
session = getSession(properties);
}
return session;
} } | public class class_name {
public synchronized static Session getSession() {
if(session == null){
Properties properties = IOUtil.loadProperties("jdbc.properties");
session = getSession(properties);
// depends on control dependency: [if], data = [none]
}
return sess... |
public class class_name {
public Date getNextDate(final int pSize, final String pPattern, final boolean pUseBcd) {
Date date = null;
// create date formatter
SimpleDateFormat sdf = new SimpleDateFormat(pPattern);
// get String
String dateTxt = null;
if (pUseBcd) {
dateTxt = getNextHexaString(pSiz... | public class class_name {
public Date getNextDate(final int pSize, final String pPattern, final boolean pUseBcd) {
Date date = null;
// create date formatter
SimpleDateFormat sdf = new SimpleDateFormat(pPattern);
// get String
String dateTxt = null;
if (pUseBcd) {
dateTxt = getNextHexaString(pSiz... |
public class class_name {
@Override
public void setCallback(SourceCallback callback) {
try {
mCallbackLock.lock();
mCallback = callback;
mCallbackChanged.signal();
} finally {
mCallbackLock.unlock();
}
} } | public class class_name {
@Override
public void setCallback(SourceCallback callback) {
try {
mCallbackLock.lock(); // depends on control dependency: [try], data = [none]
mCallback = callback; // depends on control dependency: [try], data = [none]
mCallbackChanged.signal(... |
public class class_name {
private void addParent(MavenPomDescriptor pomDescriptor, Model model, ScannerContext context) {
Parent parent = model.getParent();
if (null != parent) {
ArtifactResolver resolver = getArtifactResolver(context);
MavenArtifactDescriptor parentDescriptor =... | public class class_name {
private void addParent(MavenPomDescriptor pomDescriptor, Model model, ScannerContext context) {
Parent parent = model.getParent();
if (null != parent) {
ArtifactResolver resolver = getArtifactResolver(context);
MavenArtifactDescriptor parentDescriptor =... |
public class class_name {
@Override
public DataModelIF<Long, Long> parseData(final File f) throws IOException {
DataModelIF<Long, Long> dataset = DataModelFactory.getDefaultModel();
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(f), "UTF-8"));
try {
... | public class class_name {
@Override
public DataModelIF<Long, Long> parseData(final File f) throws IOException {
DataModelIF<Long, Long> dataset = DataModelFactory.getDefaultModel();
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(f), "UTF-8"));
try {
... |
public class class_name {
@SuppressWarnings("unchecked")
@Override
protected void performValidation(String path, Object value, List<ValidationResult> results) {
String name = path != null ? path : "value";
value = ObjectReader.getValue(value);
super.performValidation(path, value, results);
if (value == nul... | public class class_name {
@SuppressWarnings("unchecked")
@Override
protected void performValidation(String path, Object value, List<ValidationResult> results) {
String name = path != null ? path : "value";
value = ObjectReader.getValue(value);
super.performValidation(path, value, results);
if (value == nul... |
public class class_name {
public void removeChildren(String key) {
super.remove(key);
if ( !key.endsWith("/") ) {
key = key + "/";
}
Set<String> keys = super.keySet();
for ( String k : keys) {
if ( (k).startsWith(key) ) {
super.remove(k);
}
}
} } | public class class_name {
public void removeChildren(String key) {
super.remove(key);
if ( !key.endsWith("/") ) {
key = key + "/"; // depends on control dependency: [if], data = [none]
}
Set<String> keys = super.keySet();
for ( String k : keys) {
if ( (k).startsWith(key) ) {
sup... |
public class class_name {
public List<Post> blogPosts(String blogName, Map<String, ?> options) {
if (options == null) {
options = Collections.emptyMap();
}
Map<String, Object> soptions = JumblrClient.safeOptionMap(options);
soptions.put("api_key", apiKey);
String pa... | public class class_name {
public List<Post> blogPosts(String blogName, Map<String, ?> options) {
if (options == null) {
options = Collections.emptyMap(); // depends on control dependency: [if], data = [none]
}
Map<String, Object> soptions = JumblrClient.safeOptionMap(options);
... |
public class class_name {
public void marshall(UpdateWebhookRequest updateWebhookRequest, ProtocolMarshaller protocolMarshaller) {
if (updateWebhookRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(UpdateWebhookRequest updateWebhookRequest, ProtocolMarshaller protocolMarshaller) {
if (updateWebhookRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.