code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private boolean declaresFunctionOrClass(Node n) {
if (n.isFunction() || n.isClass()) {
return true;
}
if (n.isAssign() && (n.getLastChild().isFunction() || n.getLastChild().isClass())) {
return true;
}
if (NodeUtil.isNameDeclaration(n)
&& n.getFirstCh... | public class class_name {
private boolean declaresFunctionOrClass(Node n) {
if (n.isFunction() || n.isClass()) {
return true; // depends on control dependency: [if], data = [none]
}
if (n.isAssign() && (n.getLastChild().isFunction() || n.getLastChild().isClass())) {
return true; // depends on ... |
public class class_name {
@SuppressWarnings("PMD.AvoidCatchingThrowable")
static String mkString(Object obj) {
if (obj == null) {
return "null";
}
try {
return obj.toString() + " (type is " + obj.getClass() + ")";
} catch (Throwable t) {
return t.getClass().toString() + ": " + t.get... | public class class_name {
@SuppressWarnings("PMD.AvoidCatchingThrowable")
static String mkString(Object obj) {
if (obj == null) {
return "null"; // depends on control dependency: [if], data = [none]
}
try {
return obj.toString() + " (type is " + obj.getClass() + ")";
} catch (Throwable t)... |
public class class_name {
public void set_rolling_file_threshold (Logger logger, long rft) {
if (logger == null) {
return;
}
if (rft < LOGGING_MIN_RFT) {
rft = LOGGING_MIN_RFT;
} else if (rft > LOGGING_MAX_RFT) {
rft = LOGGING_MAX_RFT;
}
String prefix =... | public class class_name {
public void set_rolling_file_threshold (Logger logger, long rft) {
if (logger == null) {
return; // depends on control dependency: [if], data = [none]
}
if (rft < LOGGING_MIN_RFT) {
rft = LOGGING_MIN_RFT; // depends on control dependency: [if], data = [no... |
public class class_name {
public static boolean isSpreadSafe(Expression expression) {
if (expression instanceof MethodCallExpression) {
return ((MethodCallExpression) expression).isSpreadSafe();
}
if (expression instanceof PropertyExpression) {
return ((PropertyExpr... | public class class_name {
public static boolean isSpreadSafe(Expression expression) {
if (expression instanceof MethodCallExpression) {
return ((MethodCallExpression) expression).isSpreadSafe();
// depends on control dependency: [if], data = [none]
}
if (expression instanceof Pr... |
public class class_name {
public ListRobotApplicationsResult withRobotApplicationSummaries(RobotApplicationSummary... robotApplicationSummaries) {
if (this.robotApplicationSummaries == null) {
setRobotApplicationSummaries(new java.util.ArrayList<RobotApplicationSummary>(robotApplicationSummaries.le... | public class class_name {
public ListRobotApplicationsResult withRobotApplicationSummaries(RobotApplicationSummary... robotApplicationSummaries) {
if (this.robotApplicationSummaries == null) {
setRobotApplicationSummaries(new java.util.ArrayList<RobotApplicationSummary>(robotApplicationSummaries.le... |
public class class_name {
public static double oliverSimilarity(String text1, String text2) {
preprocessDocument(text1);
preprocessDocument(text2);
String smallerDoc=text1;
String biggerDoc=text2;
if(text1.length()>text2.length()) {
smallerDoc=text2;
big... | public class class_name {
public static double oliverSimilarity(String text1, String text2) {
preprocessDocument(text1);
preprocessDocument(text2);
String smallerDoc=text1;
String biggerDoc=text2;
if(text1.length()>text2.length()) {
smallerDoc=text2; // depends on c... |
public class class_name {
@Override
public int computeVerticalScrollRange() {
final int count = getChildCount();
final int contentHeight = getHeight() - getPaddingBottom() - getPaddingTop();
if (count == 0) {
return contentHeight;
}
int scrollRange = getChildAt(0).getBottom();
final int scrollY = getS... | public class class_name {
@Override
public int computeVerticalScrollRange() {
final int count = getChildCount();
final int contentHeight = getHeight() - getPaddingBottom() - getPaddingTop();
if (count == 0) {
return contentHeight; // depends on control dependency: [if], data = [none]
}
int scrollRange =... |
public class class_name {
@SuppressWarnings("unchecked") // Single-interface proxy creation guarded by parameter safety.
public <T> T create(final Class<T> service) {
Utils.validateServiceInterface(service);
if (validateEagerly) {
eagerlyValidateMethods(service);
}
retur... | public class class_name {
@SuppressWarnings("unchecked") // Single-interface proxy creation guarded by parameter safety.
public <T> T create(final Class<T> service) {
Utils.validateServiceInterface(service);
if (validateEagerly) {
eagerlyValidateMethods(service); // depends on control d... |
public class class_name {
private Set<String> checkPreResolvedExistAndSetFullName(Set<String> preResolved, SelectionContext selectionContext) {
Set<String> preResolvedSymbolicNames = new LinkedHashSet<String>(preResolved.size());
for (String preResolvedFeatureName : preResolved) {
Provision... | public class class_name {
private Set<String> checkPreResolvedExistAndSetFullName(Set<String> preResolved, SelectionContext selectionContext) {
Set<String> preResolvedSymbolicNames = new LinkedHashSet<String>(preResolved.size());
for (String preResolvedFeatureName : preResolved) {
Provision... |
public class class_name {
public void applyAll(long index) {
if (!log.isOpen())
return;
// If the effective commit index is greater than the last index applied to the state machine then apply remaining entries.
long lastIndex = Math.min(index, log.lastIndex());
if (lastIndex > lastApplied) {
... | public class class_name {
public void applyAll(long index) {
if (!log.isOpen())
return;
// If the effective commit index is greater than the last index applied to the state machine then apply remaining entries.
long lastIndex = Math.min(index, log.lastIndex());
if (lastIndex > lastApplied) {
... |
public class class_name {
public static Message getMessage(final Supplier<?> supplier, final MessageFactory messageFactory) {
if (supplier == null) {
return null;
}
final Object result = supplier.get();
return result instanceof Message ? (Message) result : messageFactory.new... | public class class_name {
public static Message getMessage(final Supplier<?> supplier, final MessageFactory messageFactory) {
if (supplier == null) {
return null; // depends on control dependency: [if], data = [none]
}
final Object result = supplier.get();
return result inst... |
public class class_name {
public void marshall(RejectedLogEventsInfo rejectedLogEventsInfo, ProtocolMarshaller protocolMarshaller) {
if (rejectedLogEventsInfo == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(RejectedLogEventsInfo rejectedLogEventsInfo, ProtocolMarshaller protocolMarshaller) {
if (rejectedLogEventsInfo == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
private void fixDeclaringClass(DeclarationExpression newDeclExpr) {
if (newDeclExpr.getDeclaringClass() == null && currentMethod != null) {
newDeclExpr.setDeclaringClass(currentMethod.getDeclaringClass());
}
} } | public class class_name {
private void fixDeclaringClass(DeclarationExpression newDeclExpr) {
if (newDeclExpr.getDeclaringClass() == null && currentMethod != null) {
newDeclExpr.setDeclaringClass(currentMethod.getDeclaringClass()); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected synchronized void setDestLimits(long newDestHighMsgs,
long newDestLowMsgs)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setDestLimits",
new Object[] {... | public class class_name {
protected synchronized void setDestLimits(long newDestHighMsgs,
long newDestLowMsgs)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setDestLimits",
new Object[] {... |
public class class_name {
public void addOneToManyValue(String name, AssociationValue value) {
Attribute attribute = getAttributes().get(name);
if (!(attribute instanceof OneToManyAttribute)) {
throw new IllegalStateException("Cannot set oneToMany value on attribute with different type, " +
attribute.getCl... | public class class_name {
public void addOneToManyValue(String name, AssociationValue value) {
Attribute attribute = getAttributes().get(name);
if (!(attribute instanceof OneToManyAttribute)) {
throw new IllegalStateException("Cannot set oneToMany value on attribute with different type, " +
attribute.getCl... |
public class class_name {
public synchronized void dump(Object _this, TraceComponent _tc, int bytesToDump)
{
int bytesRemainingToDump = bytesToDump;
if (receivedBuffer != null)
{
SibTr.debug(this, tc, "Buffer contains a single underlying WsByteBuffer:");
dump(_this, _tc, receive... | public class class_name {
public synchronized void dump(Object _this, TraceComponent _tc, int bytesToDump)
{
int bytesRemainingToDump = bytesToDump;
if (receivedBuffer != null)
{
SibTr.debug(this, tc, "Buffer contains a single underlying WsByteBuffer:"); // depends on control dependency:... |
public class class_name {
private static void addModal_(RootPaneContainer rootPane,
Component component, ModalListener listener,
Integer modalDepth) {
synchronized (modals) {
if (isModal(component) == false) {
getModal(rootPane).addModal(component, listener, modalDepth);
}
}
} } | public class class_name {
private static void addModal_(RootPaneContainer rootPane,
Component component, ModalListener listener,
Integer modalDepth) {
synchronized (modals) {
if (isModal(component) == false) {
getModal(rootPane).addModal(component, listener, modalDepth); // depends on control dep... |
public class class_name {
public String getFaultMessage() {
String fmsg = null;
Object fault = getFault();
if (fault != null) {
if (fault instanceof Throwable) {
fmsg = String.format(CommonKnowledgeMessages.MESSAGES.faultEncountered() + " [%s(message=%s)]: %s", fault... | public class class_name {
public String getFaultMessage() {
String fmsg = null;
Object fault = getFault();
if (fault != null) {
if (fault instanceof Throwable) {
fmsg = String.format(CommonKnowledgeMessages.MESSAGES.faultEncountered() + " [%s(message=%s)]: %s", fault... |
public class class_name {
private String generateCacheControl(Map<MediaType, String> cacheControlMap, String contentType)
{
ArrayList<MediaType> mediaTypesList = new ArrayList<MediaType>(cacheControlMap.keySet());
Collections.sort(mediaTypesList, MediaTypeHelper.MEDIA_TYPE_COMPARATOR);
Strin... | public class class_name {
private String generateCacheControl(Map<MediaType, String> cacheControlMap, String contentType)
{
ArrayList<MediaType> mediaTypesList = new ArrayList<MediaType>(cacheControlMap.keySet());
Collections.sort(mediaTypesList, MediaTypeHelper.MEDIA_TYPE_COMPARATOR);
Strin... |
public class class_name {
public EList<EObject> getValues()
{
if (values == null)
{
values = new EObjectResolvingEList<EObject>(EObject.class, this, TypesPackage.JVM_CUSTOM_ANNOTATION_VALUE__VALUES);
}
return values;
} } | public class class_name {
public EList<EObject> getValues()
{
if (values == null)
{
values = new EObjectResolvingEList<EObject>(EObject.class, this, TypesPackage.JVM_CUSTOM_ANNOTATION_VALUE__VALUES); // depends on control dependency: [if], data = [none]
}
return values;
} } |
public class class_name {
private PMap<TypedScope, OverlayScope> trimScopes(TypedScope scope) {
TypedScope thisScope = syntacticScope;
TypedScope thatScope = scope;
int thisDepth = thisScope.getDepth();
int thatDepth = thatScope.getDepth();
PMap<TypedScope, OverlayScope> result = scopes;
while ... | public class class_name {
private PMap<TypedScope, OverlayScope> trimScopes(TypedScope scope) {
TypedScope thisScope = syntacticScope;
TypedScope thatScope = scope;
int thisDepth = thisScope.getDepth();
int thatDepth = thatScope.getDepth();
PMap<TypedScope, OverlayScope> result = scopes;
while ... |
public class class_name {
protected void loadOptionalPool(final String poolBinder) {
try {
final Method bindPool = OrientModule.class.getDeclaredMethod("bindPool", Class.class, Class.class);
bindPool.setAccessible(true);
try {
Class.forName(poolBinder)
... | public class class_name {
protected void loadOptionalPool(final String poolBinder) {
try {
final Method bindPool = OrientModule.class.getDeclaredMethod("bindPool", Class.class, Class.class);
bindPool.setAccessible(true);
try {
Class.forName(poolBinder)
... |
public class class_name {
@Override
public Factory<?> getValueFactory(Parameter parameter) {
if (type.equals(parameter.getRawType()) && parameter.isAnnotationPresent(Auth.class)) {
return this;
}
return null;
} } | public class class_name {
@Override
public Factory<?> getValueFactory(Parameter parameter) {
if (type.equals(parameter.getRawType()) && parameter.isAnnotationPresent(Auth.class)) {
return this; // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public static InitialContextToken decodeInitialContextToken(byte[] encodedToken, Codec codec) {
if (encodedToken[0] != 0x60)
return null;
int encodedLength = 0;
int n = 0;
if (encodedToken[1] >= 0)
encodedLength = encodedToken[1];
... | public class class_name {
public static InitialContextToken decodeInitialContextToken(byte[] encodedToken, Codec codec) {
if (encodedToken[0] != 0x60)
return null;
int encodedLength = 0;
int n = 0;
if (encodedToken[1] >= 0)
encodedLength = encodedToken[1];
... |
public class class_name {
private void barrier() {
long sleepTime;
while ((sleepTime = startTime - System.currentTimeMillis()) > 0) {
try {
Thread.sleep(sleepTime);
} catch (InterruptedException ex) {
}
}
} } | public class class_name {
private void barrier() {
long sleepTime;
while ((sleepTime = startTime - System.currentTimeMillis()) > 0) {
try {
Thread.sleep(sleepTime); // depends on control dependency: [try], data = [none]
} catch (InterruptedException ex) {
} // depends on control depen... |
public class class_name {
public void marshall(InstanceGroupConfig instanceGroupConfig, ProtocolMarshaller protocolMarshaller) {
if (instanceGroupConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(InstanceGroupConfig instanceGroupConfig, ProtocolMarshaller protocolMarshaller) {
if (instanceGroupConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
protected void collectFeatures(String prefix, String suffix, String previous,
String next, char eosChar) {
buf.append("x=");
buf.append(prefix);
collectFeats.add(buf.toString());
buf.setLength(0);
if (!prefix.equals("")) {
collectFeats.add(Integer.toString(pref... | public class class_name {
protected void collectFeatures(String prefix, String suffix, String previous,
String next, char eosChar) {
buf.append("x=");
buf.append(prefix);
collectFeats.add(buf.toString());
buf.setLength(0);
if (!prefix.equals("")) {
collectFeats.add(Integer.toString(pref... |
public class class_name {
private List<Task> runWorkUnits(CountUpAndDownLatch countDownLatch) {
List<Task> tasks = Lists.newArrayList();
while (this.workUnits.hasNext()) {
WorkUnit workUnit = this.workUnits.next();
String taskId = workUnit.getProp(ConfigurationKeys.TASK_ID_KEY);
// skip tas... | public class class_name {
private List<Task> runWorkUnits(CountUpAndDownLatch countDownLatch) {
List<Task> tasks = Lists.newArrayList();
while (this.workUnits.hasNext()) {
WorkUnit workUnit = this.workUnits.next();
String taskId = workUnit.getProp(ConfigurationKeys.TASK_ID_KEY);
// skip tas... |
public class class_name {
public static void setMatrix(final double[][] m1, final int[] r, final int c0, final int c1, final double[][] m2) {
assert c0 <= c1 : ERR_INVALID_RANGE;
assert c1 <= m1[0].length : ERR_MATRIX_DIMENSIONS;
for(int i = 0; i < r.length; i++) {
System.arraycopy(m2[i], 0, m1[r[i]]... | public class class_name {
public static void setMatrix(final double[][] m1, final int[] r, final int c0, final int c1, final double[][] m2) {
assert c0 <= c1 : ERR_INVALID_RANGE;
assert c1 <= m1[0].length : ERR_MATRIX_DIMENSIONS;
for(int i = 0; i < r.length; i++) {
System.arraycopy(m2[i], 0, m1[r[i]]... |
public class class_name {
public Optional<Annotation> getTarget(HString hString) {
if (hString == null || hString.document() == null) {
return Optional.empty();
}
return hString.document().getAnnotation(target);
} } | public class class_name {
public Optional<Annotation> getTarget(HString hString) {
if (hString == null || hString.document() == null) {
return Optional.empty(); // depends on control dependency: [if], data = [none]
}
return hString.document().getAnnotation(target);
} } |
public class class_name {
public static void setCustomProperties(Map<String, Object> d) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "setCustomProperties");
}
String ky;
String propertyKey;
// For comparison purposes we need the... | public class class_name {
public static void setCustomProperties(Map<String, Object> d) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "setCustomProperties"); // depends on control dependency: [if], data = [none]
}
String ky;
String proper... |
public class class_name {
<T> void mockStatic(StaticMocking<T> mocking) {
if (ExtendedMockito.staticMockMarker(mocking.clazz) != null) {
throw new IllegalArgumentException(mocking.clazz + " is already mocked");
}
mockingInProgressClass.set(mocking.clazz);
try {
... | public class class_name {
<T> void mockStatic(StaticMocking<T> mocking) {
if (ExtendedMockito.staticMockMarker(mocking.clazz) != null) {
throw new IllegalArgumentException(mocking.clazz + " is already mocked");
}
mockingInProgressClass.set(mocking.clazz);
try {
... |
public class class_name {
public static ValueDataWrapper readValueData(int type, int orderNumber, File file, SpoolConfig spoolConfig)
throws IOException
{
ValueDataWrapper vdDataWrapper = new ValueDataWrapper();
long fileSize = file.length();
vdDataWrapper.size = fileSize;
if (fileSi... | public class class_name {
public static ValueDataWrapper readValueData(int type, int orderNumber, File file, SpoolConfig spoolConfig)
throws IOException
{
ValueDataWrapper vdDataWrapper = new ValueDataWrapper();
long fileSize = file.length();
vdDataWrapper.size = fileSize;
if (fileSi... |
public class class_name {
public static boolean needHttpDns() {
try {
TimeZone zone = TimeZone.getDefault();
String id = zone.getID();
return ("Asia/Shanghai".equals(id) || "Asia/Chongqing".equals(id) ||
"Asia/Harbin".equals(id) || "Asia/Urumqi".equals(id... | public class class_name {
public static boolean needHttpDns() {
try {
TimeZone zone = TimeZone.getDefault();
String id = zone.getID();
return ("Asia/Shanghai".equals(id) || "Asia/Chongqing".equals(id) ||
"Asia/Harbin".equals(id) || "Asia/Urumqi".equals(id... |
public class class_name {
public static Predicate and(Predicate left, Predicate right) {
left = (Predicate) extract(left);
right = (Predicate) extract(right);
if (left == null) {
return right;
} else if (right == null) {
return left;
} else {
... | public class class_name {
public static Predicate and(Predicate left, Predicate right) {
left = (Predicate) extract(left);
right = (Predicate) extract(right);
if (left == null) {
return right; // depends on control dependency: [if], data = [none]
} else if (right == null) {
... |
public class class_name {
@Override
public int compareTo(final ModuleInfo other) {
final int diff = this.name.compareTo(other.name);
if (diff != 0) {
return diff;
}
final URI thisLoc = this.getLocation();
final URI otherLoc = other.getLocation();
if (this... | public class class_name {
@Override
public int compareTo(final ModuleInfo other) {
final int diff = this.name.compareTo(other.name);
if (diff != 0) {
return diff; // depends on control dependency: [if], data = [none]
}
final URI thisLoc = this.getLocation();
fina... |
public class class_name {
@Override
public synchronized WComponent getUI(final String key) {
WComponent ui = registry.get(key);
if (ui == null) {
// Looks like we haven't tried loading this UI yet, so do it now.
ui = loadUI(key);
ui.setLocked(true);
// Cache the result only if the UI was successful... | public class class_name {
@Override
public synchronized WComponent getUI(final String key) {
WComponent ui = registry.get(key);
if (ui == null) {
// Looks like we haven't tried loading this UI yet, so do it now.
ui = loadUI(key); // depends on control dependency: [if], data = [none]
ui.setLocked(true);... |
public class class_name {
public static base_responses delete(nitro_service client, String metrictable[]) throws Exception {
base_responses result = null;
if (metrictable != null && metrictable.length > 0) {
lbmetrictable deleteresources[] = new lbmetrictable[metrictable.length];
for (int i=0;i<metrictable.l... | public class class_name {
public static base_responses delete(nitro_service client, String metrictable[]) throws Exception {
base_responses result = null;
if (metrictable != null && metrictable.length > 0) {
lbmetrictable deleteresources[] = new lbmetrictable[metrictable.length];
for (int i=0;i<metrictable.l... |
public class class_name {
public List<String> encode(Collection<? extends Cookie> cookies) {
if (checkNotNull(cookies, "cookies").isEmpty()) {
return Collections.emptyList();
}
List<String> encoded = new ArrayList<String>(cookies.size());
Map<String, Integer> nameToIndex = ... | public class class_name {
public List<String> encode(Collection<? extends Cookie> cookies) {
if (checkNotNull(cookies, "cookies").isEmpty()) {
return Collections.emptyList(); // depends on control dependency: [if], data = [none]
}
List<String> encoded = new ArrayList<String>(cookie... |
public class class_name {
public boolean containLogsFrom(LogLevel level)
{
for (LogEvent log : this) {
if (log.getLevel().compareTo(level) <= 0) {
return true;
}
}
return false;
} } | public class class_name {
public boolean containLogsFrom(LogLevel level)
{
for (LogEvent log : this) {
if (log.getLevel().compareTo(level) <= 0) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
@SuppressWarnings("unchecked")
public static <T> T enhance(final ClassLoader loader, Object instance, ForgeProxy handler)
{
Assert.notNull(loader, "ClassLoader must not be null");
Assert.notNull(handler, "ForgeProxy handler must not be null");
if (instance == null)
... | public class class_name {
@SuppressWarnings("unchecked")
public static <T> T enhance(final ClassLoader loader, Object instance, ForgeProxy handler)
{
Assert.notNull(loader, "ClassLoader must not be null");
Assert.notNull(handler, "ForgeProxy handler must not be null");
if (instance == null)
... |
public class class_name {
protected static void registerGraphiteMetricObserver(List<MetricObserver> observers, String prefix, String host, String port) {
// verify at least hostname is set, else cannot configure this observer
if (null == host || host.trim().isEmpty()) {
LOGGER.info("Graphit... | public class class_name {
protected static void registerGraphiteMetricObserver(List<MetricObserver> observers, String prefix, String host, String port) {
// verify at least hostname is set, else cannot configure this observer
if (null == host || host.trim().isEmpty()) {
LOGGER.info("Graphit... |
public class class_name {
protected void updateStateEndDocument() throws XMLStreamException {
if (mCfgMultiDocMode) {
// As per [woodstox-core#42] should allow reading over multiple documents...
if (mReader.hasNext()) {
// Let's sanity-check that we get token we expect h... | public class class_name {
protected void updateStateEndDocument() throws XMLStreamException {
if (mCfgMultiDocMode) {
// As per [woodstox-core#42] should allow reading over multiple documents...
if (mReader.hasNext()) {
// Let's sanity-check that we get token we expect h... |
public class class_name {
public void slideHorizontally(float slideOffset, float drawerPosition, int width) {
if (slideOffset > MIN_SLIDE_OFFSET && !isClosed() && isMaximized()) {
minimize();
}
setTouchEnabled(slideOffset <= MIN_SLIDE_OFFSET);
ViewHelper.setX(this, width - Math.abs(drawerPosition... | public class class_name {
public void slideHorizontally(float slideOffset, float drawerPosition, int width) {
if (slideOffset > MIN_SLIDE_OFFSET && !isClosed() && isMaximized()) {
minimize(); // depends on control dependency: [if], data = [none]
}
setTouchEnabled(slideOffset <= MIN_SLIDE_OFFSET);
... |
public class class_name {
@Override
public JobStatus getJobStatus(final JobId jobId) {
final ZooKeeperClient client = provider.get("getJobStatus");
final Job job = getJob(client, jobId);
if (job == null) {
return null;
}
final List<String> hosts;
try {
hosts = listJobHosts(clien... | public class class_name {
@Override
public JobStatus getJobStatus(final JobId jobId) {
final ZooKeeperClient client = provider.get("getJobStatus");
final Job job = getJob(client, jobId);
if (job == null) {
return null; // depends on control dependency: [if], data = [none]
}
final List<Str... |
public class class_name {
@Override
public boolean add(ClientPresentationModel model) {
boolean success = super.add(model);
if (success) {
List<ClientAttribute> attributes = model.getAttributes();
for (ClientAttribute attribute : attributes) {
attribute.addPr... | public class class_name {
@Override
public boolean add(ClientPresentationModel model) {
boolean success = super.add(model);
if (success) {
List<ClientAttribute> attributes = model.getAttributes();
for (ClientAttribute attribute : attributes) {
attribute.addPr... |
public class class_name {
public String replace(CharSequence text, CharSequence replacement)
{
try
{
if (text.length() == 0)
{
if (acceptEmpty)
{
return "";
}
}
CharArrayWr... | public class class_name {
public String replace(CharSequence text, CharSequence replacement)
{
try
{
if (text.length() == 0)
{
if (acceptEmpty)
{
return "";
// depends on control dependency: [if], data = [none]
... |
public class class_name {
static @Nonnull List<ThreadLock.Monitor> getMonitors(final ThreadInfo threadInfo) {
final MonitorInfo[] monitors = threadInfo.getLockedMonitors();
final List<ThreadLock.Monitor> locks = new ArrayList<ThreadLock.Monitor>(monitors.length);
for (MonitorInfo info: monito... | public class class_name {
static @Nonnull List<ThreadLock.Monitor> getMonitors(final ThreadInfo threadInfo) {
final MonitorInfo[] monitors = threadInfo.getLockedMonitors();
final List<ThreadLock.Monitor> locks = new ArrayList<ThreadLock.Monitor>(monitors.length);
for (MonitorInfo info: monito... |
public class class_name {
public static Object convert(final String value, final Class<?> type) {
final Object result;
if (value == null) {
result = null;
} else if (type.isPrimitive()) {
result = toPrimitive(value, type);
} else if (OBJECT_TO_PRIMITIVE_TYPE_MA... | public class class_name {
public static Object convert(final String value, final Class<?> type) {
final Object result;
if (value == null) {
result = null; // depends on control dependency: [if], data = [none]
} else if (type.isPrimitive()) {
result = toPrimitive(value,... |
public class class_name {
private void parseMap(
Field fieldContext,
Map<String, Object> destinationMap,
Type valueType,
ArrayList<Type> context,
CustomizeJsonParser customizeParser)
throws IOException {
JsonToken curToken = startParsingObjectOrArray();
while (curToken == Js... | public class class_name {
private void parseMap(
Field fieldContext,
Map<String, Object> destinationMap,
Type valueType,
ArrayList<Type> context,
CustomizeJsonParser customizeParser)
throws IOException {
JsonToken curToken = startParsingObjectOrArray();
while (curToken == Js... |
public class class_name {
public void end() {
ProfilingTimerNode currentNode = current.get();
if (currentNode != null) {
currentNode.stop();
current.set(currentNode.parent);
}
} } | public class class_name {
public void end() {
ProfilingTimerNode currentNode = current.get();
if (currentNode != null) {
currentNode.stop(); // depends on control dependency: [if], data = [none]
current.set(currentNode.parent); // depends on control dependency: [if], data = [(currentNode]
}
} } |
public class class_name {
public List<Object> closePipeline() {
if (pipeline == null) {
return Collections.emptyList();
}
try {
return convertPipelineResults();
} finally {
pipeline.close();
pipeline = null;
pipelinedResults.c... | public class class_name {
public List<Object> closePipeline() {
if (pipeline == null) {
return Collections.emptyList(); // depends on control dependency: [if], data = [none]
}
try {
return convertPipelineResults(); // depends on control dependency: [try], data = [none]
... |
public class class_name {
protected static void removeRedundantArcs(int row, int column, List<Integer> marcs, McgregorHelper mcGregorHelper) {
int neighborBondNumA = mcGregorHelper.getNeighborBondNumA();
int neighborBondNumB = mcGregorHelper.getNeighborBondNumB();
List<Integer> iBondNeighborAto... | public class class_name {
protected static void removeRedundantArcs(int row, int column, List<Integer> marcs, McgregorHelper mcGregorHelper) {
int neighborBondNumA = mcGregorHelper.getNeighborBondNumA();
int neighborBondNumB = mcGregorHelper.getNeighborBondNumB();
List<Integer> iBondNeighborAto... |
public class class_name {
private void sendNotification(String errMessage, int errCode, String errType, boolean createNotification) {
NotificationsDao notifications = storage.getNotificationsDao();
Notification notification;
if (errType == "warning") {
logger.warning(errMessage); /... | public class class_name {
private void sendNotification(String errMessage, int errCode, String errType, boolean createNotification) {
NotificationsDao notifications = storage.getNotificationsDao();
Notification notification;
if (errType == "warning") {
logger.warning(errMessage); /... |
public class class_name {
public static void horizontal(Kernel1D_F32 kernel, InterleavedF32 src, InterleavedF32 dst ) {
InputSanityCheck.checkSameShapeB(src, dst);
boolean processed = BOverrideConvolveImageNormalized.invokeNativeHorizontal(kernel,src,dst);
if( !processed ) {
if( kernel.width >= src.width ... | public class class_name {
public static void horizontal(Kernel1D_F32 kernel, InterleavedF32 src, InterleavedF32 dst ) {
InputSanityCheck.checkSameShapeB(src, dst);
boolean processed = BOverrideConvolveImageNormalized.invokeNativeHorizontal(kernel,src,dst);
if( !processed ) {
if( kernel.width >= src.width ... |
public class class_name {
public void marshall(DeleteVPCEConfigurationRequest deleteVPCEConfigurationRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteVPCEConfigurationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DeleteVPCEConfigurationRequest deleteVPCEConfigurationRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteVPCEConfigurationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public final EObject entryRuleContinueExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleContinueExpression = null;
try {
// InternalSARL.g:7479:59: (iv_ruleContinueExpression= ruleContinueExpression EOF )
// In... | public class class_name {
public final EObject entryRuleContinueExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleContinueExpression = null;
try {
// InternalSARL.g:7479:59: (iv_ruleContinueExpression= ruleContinueExpression EOF )
// In... |
public class class_name {
@Override
protected Object doExec(Element element, Object scope, String propertyPath, Object... arguments) throws TemplateException {
if (!propertyPath.equals(".") && ConverterRegistry.hasType(scope.getClass())) {
throw new TemplateException("Operand is property path but scope is not... | public class class_name {
@Override
protected Object doExec(Element element, Object scope, String propertyPath, Object... arguments) throws TemplateException {
if (!propertyPath.equals(".") && ConverterRegistry.hasType(scope.getClass())) {
throw new TemplateException("Operand is property path but scope is not... |
public class class_name {
public static String nameEncode(String value) {
if (value == null)
return null;
// make buffer roomy
StringBuilder encodedValue = new StringBuilder(value.length() * 2);
int length = value.length();
int last = length - 1;
... | public class class_name {
public static String nameEncode(String value) {
if (value == null)
return null;
// make buffer roomy
StringBuilder encodedValue = new StringBuilder(value.length() * 2);
int length = value.length();
int last = length - 1;
... |
public class class_name {
public void removeExtension() {
try {
if (extensionsDao.isTableExists()) {
extensionsDao.deleteByExtension(EXTENSION_NAME);
}
} catch (SQLException e) {
throw new GeoPackageException(
"Failed to delete CRS WKT extension. GeoPackage: "
+ geoPackage.getName(), e);
... | public class class_name {
public void removeExtension() {
try {
if (extensionsDao.isTableExists()) {
extensionsDao.deleteByExtension(EXTENSION_NAME); // depends on control dependency: [if], data = [none]
}
} catch (SQLException e) {
throw new GeoPackageException(
"Failed to delete CRS WKT extens... |
public class class_name {
private List<String> getDynamicMembers(Attribute groupMemberURLs) throws WIMException {
final String METHODNAME = "getDynamicMembers";
List<String> memberDNs = new ArrayList<String>();
if (groupMemberURLs != null) {
try {
for (NamingEnumera... | public class class_name {
private List<String> getDynamicMembers(Attribute groupMemberURLs) throws WIMException {
final String METHODNAME = "getDynamicMembers";
List<String> memberDNs = new ArrayList<String>();
if (groupMemberURLs != null) {
try {
for (NamingEnumera... |
public class class_name {
@Local
public CompletableFuture<Integer> broadcastAction(final WebSocketAction action) {
if (this.localEngine != null && this.sncpNodeAddresses == null) { //本地模式且没有分布式
return this.localEngine.broadcastLocalAction(action);
}
CompletableFuture<Intege... | public class class_name {
@Local
public CompletableFuture<Integer> broadcastAction(final WebSocketAction action) {
if (this.localEngine != null && this.sncpNodeAddresses == null) { //本地模式且没有分布式
return this.localEngine.broadcastLocalAction(action);
// depends on control dependency: [if], dat... |
public class class_name {
public static void updateTmpDirectoriesInConfiguration(
Configuration configuration,
@Nullable String defaultDirs) {
if (configuration.contains(CoreOptions.TMP_DIRS)) {
LOG.info("Overriding Fink's temporary file directories with those " +
"specified in the Flink config: {}", co... | public class class_name {
public static void updateTmpDirectoriesInConfiguration(
Configuration configuration,
@Nullable String defaultDirs) {
if (configuration.contains(CoreOptions.TMP_DIRS)) {
LOG.info("Overriding Fink's temporary file directories with those " +
"specified in the Flink config: {}", co... |
public class class_name {
@SuppressWarnings("unchecked")
static <T, A extends BindingCollectionAdapter<T>> A createClass(Class<? extends BindingCollectionAdapter> adapterClass, ItemBinding<T> itemBinding) {
try {
return (A) adapterClass.getConstructor(ItemBinding.class).newInstance(itemBinding)... | public class class_name {
@SuppressWarnings("unchecked")
static <T, A extends BindingCollectionAdapter<T>> A createClass(Class<? extends BindingCollectionAdapter> adapterClass, ItemBinding<T> itemBinding) {
try {
return (A) adapterClass.getConstructor(ItemBinding.class).newInstance(itemBinding)... |
public class class_name {
public Entity setFieldNames(Collection<String> fieldNames) {
if (CollectionUtil.isNotEmpty(fieldNames)) {
this.fieldNames = new HashSet<String>(fieldNames);
}
return this;
} } | public class class_name {
public Entity setFieldNames(Collection<String> fieldNames) {
if (CollectionUtil.isNotEmpty(fieldNames)) {
this.fieldNames = new HashSet<String>(fieldNames);
// depends on control dependency: [if], data = [none]
}
return this;
} } |
public class class_name {
@SuppressWarnings("unchecked")
public static <D, J> D toData(Class<? extends PreferenceTypeAdapter<J, D>> clazz, J javaValue) {
PreferenceTypeAdapter<J, D> adapter = cache.get(clazz);
if (adapter == null) {
try {
lock.lock();
adapter = clazz.newInstance();
cache.put(clazz... | public class class_name {
@SuppressWarnings("unchecked")
public static <D, J> D toData(Class<? extends PreferenceTypeAdapter<J, D>> clazz, J javaValue) {
PreferenceTypeAdapter<J, D> adapter = cache.get(clazz);
if (adapter == null) {
try {
lock.lock(); // depends on control dependency: [try], data = [none]... |
public class class_name {
@Override
public void actionPerformed(ActionEvent arg0) {
try {
final OWLWorkspace workspace = editorKit.getWorkspace();
if (obdaModel.getSources().isEmpty())
{
JOptionPane.showMessageDialog(workspace, "The data source is missing. Create one... | public class class_name {
@Override
public void actionPerformed(ActionEvent arg0) {
try {
final OWLWorkspace workspace = editorKit.getWorkspace();
if (obdaModel.getSources().isEmpty())
{
JOptionPane.showMessageDialog(workspace, "The data source is missing. Create one... |
public class class_name {
public EList<JvmGenericType> getLocalClasses()
{
if (localClasses == null)
{
localClasses = new EObjectContainmentEList<JvmGenericType>(JvmGenericType.class, this, TypesPackage.JVM_FEATURE__LOCAL_CLASSES);
}
return localClasses;
} } | public class class_name {
public EList<JvmGenericType> getLocalClasses()
{
if (localClasses == null)
{
localClasses = new EObjectContainmentEList<JvmGenericType>(JvmGenericType.class, this, TypesPackage.JVM_FEATURE__LOCAL_CLASSES); // depends on control dependency: [if], data = [none]
}
return localClasses... |
public class class_name {
@CheckReturnValue
@NonNull
@SchedulerSupport(SchedulerSupport.CUSTOM)
public static Observable<Long> intervalRange(long start, long count, long initialDelay, long period, TimeUnit unit, Scheduler scheduler) {
if (count < 0) {
throw new IllegalArgumentException(... | public class class_name {
@CheckReturnValue
@NonNull
@SchedulerSupport(SchedulerSupport.CUSTOM)
public static Observable<Long> intervalRange(long start, long count, long initialDelay, long period, TimeUnit unit, Scheduler scheduler) {
if (count < 0) {
throw new IllegalArgumentException(... |
public class class_name {
public static <P extends Enum<P>> JSONObject putDefault(JSONObject json, P e, PointF defPoint,
boolean allowImplicitPoint) {
if (json != null) {
JSONObject pointJson = optJSONObject(json, e);
if (point... | public class class_name {
public static <P extends Enum<P>> JSONObject putDefault(JSONObject json, P e, PointF defPoint,
boolean allowImplicitPoint) {
if (json != null) {
JSONObject pointJson = optJSONObject(json, e);
if (point... |
public class class_name {
public static boolean instanceOf(Object data, Class type) {
//这里有一个事实,即参数data必定是非原生类型,即使传入时是原生类型,它也被java强制转化为Object非原生了.
//here we rely on the jdk default behavior of packing primitive type parameter into packed type,
//which means that if you passe an int to the data ... | public class class_name {
public static boolean instanceOf(Object data, Class type) {
//这里有一个事实,即参数data必定是非原生类型,即使传入时是原生类型,它也被java强制转化为Object非原生了.
//here we rely on the jdk default behavior of packing primitive type parameter into packed type,
//which means that if you passe an int to the data ... |
public class class_name {
public void setAckReceived(long cSeq, boolean ackReceived) {
if(logger.isDebugEnabled()) {
logger.debug("setting AckReceived to : " + ackReceived + " for CSeq " + cSeq);
}
acksReceived.put(cSeq, ackReceived);
if(ackReceived) {
cleanupAcksReceived(cSeq);
}
} } | public class class_name {
public void setAckReceived(long cSeq, boolean ackReceived) {
if(logger.isDebugEnabled()) {
logger.debug("setting AckReceived to : " + ackReceived + " for CSeq " + cSeq); // depends on control dependency: [if], data = [none]
}
acksReceived.put(cSeq, ackReceived);
if(ackReceived) {
... |
public class class_name {
private void beginTransaction() {
if (currentTransaction == null) {
try {
currentTransaction = StructrApp.getInstance(securityContext).tx(true, false, false);
} catch (FrameworkException fex) {
// transaction can fail here (theoretically...)
logger.warn("Unable to begi... | public class class_name {
private void beginTransaction() {
if (currentTransaction == null) {
try {
currentTransaction = StructrApp.getInstance(securityContext).tx(true, false, false); // depends on control dependency: [try], data = [none]
} catch (FrameworkException fex) {
// transaction can fail ... |
public class class_name {
public void sendBatch() {
LrsStatement statement = null;
List<LrsStatement> list = new ArrayList<LrsStatement>();
while ((statement = statementQueue.poll()) != null) {
list.add(statement);
}
if (!list.isEmpty()) {
postStatement... | public class class_name {
public void sendBatch() {
LrsStatement statement = null;
List<LrsStatement> list = new ArrayList<LrsStatement>();
while ((statement = statementQueue.poll()) != null) {
list.add(statement); // depends on control dependency: [while], data = [none]
}
... |
public class class_name {
public QueryNode[] getOperands() {
if (operands == null) {
return new QueryNode[0];
} else {
return (QueryNode[]) operands.toArray(new QueryNode[operands.size()]);
}
} } | public class class_name {
public QueryNode[] getOperands() {
if (operands == null) {
return new QueryNode[0]; // depends on control dependency: [if], data = [none]
} else {
return (QueryNode[]) operands.toArray(new QueryNode[operands.size()]); // depends on control dependency: [... |
public class class_name {
private void encodeThis() throws IOException {
DerOutputStream out = new DerOutputStream();
DerOutputStream tmp = new DerOutputStream();
if (ca) {
tmp.putBoolean(ca);
// Only encode pathLen when ca == true
if (pathLen >= 0) {
... | public class class_name {
private void encodeThis() throws IOException {
DerOutputStream out = new DerOutputStream();
DerOutputStream tmp = new DerOutputStream();
if (ca) {
tmp.putBoolean(ca);
// Only encode pathLen when ca == true
if (pathLen >= 0) {
... |
public class class_name {
public void setEditButtonsVisible(boolean visible) {
if (visible) {
m_editButtonVibility.setValue(
org.opencms.ade.containerpage.client.ui.css.I_CmsLayoutBundle.INSTANCE.containerpageCss().editButtonsVisible());
} else {
m_editButtonVib... | public class class_name {
public void setEditButtonsVisible(boolean visible) {
if (visible) {
m_editButtonVibility.setValue(
org.opencms.ade.containerpage.client.ui.css.I_CmsLayoutBundle.INSTANCE.containerpageCss().editButtonsVisible()); // depends on control dependency: [if], data... |
public class class_name {
public static String stripNonValidXMLCharacters(String input) {
if (input == null || ("".equals(input)))
return "";
StringBuilder out = new StringBuilder();
char current;
for (int i = 0; i < input.length(); i++) {
current = input.charAt(i);
if ((current == 0x9) || (current ==... | public class class_name {
public static String stripNonValidXMLCharacters(String input) {
if (input == null || ("".equals(input)))
return "";
StringBuilder out = new StringBuilder();
char current;
for (int i = 0; i < input.length(); i++) {
current = input.charAt(i); // depends on control dependency: [for... |
public class class_name {
public MethodState getSaved(int idx) {
if (idx < 0) {
throw new IllegalArgumentException();
}
MethodState state = firstPointer;
for (int i = 0; i < idx; i++) {
state = state.getNext();
if (state == null) {
thr... | public class class_name {
public MethodState getSaved(int idx) {
if (idx < 0) {
throw new IllegalArgumentException();
}
MethodState state = firstPointer;
for (int i = 0; i < idx; i++) {
state = state.getNext(); // depends on control dependency: [for], data = [no... |
public class class_name {
public static Field getProtectedField(Class klass, String fieldName)
{
Field field;
try
{
field = klass.getDeclaredField(fieldName);
field.setAccessible(true);
}
catch (Exception e)
{
throw new AssertionE... | public class class_name {
public static Field getProtectedField(Class klass, String fieldName)
{
Field field;
try
{
field = klass.getDeclaredField(fieldName); // depends on control dependency: [try], data = [none]
field.setAccessible(true); // depends on control dep... |
public class class_name {
public static void printClassDetails(final Object pObject, final String pObjectName, final PrintStream pPrintStream) {
if (pPrintStream == null) {
System.err.println(PRINTSTREAM_IS_NULL_ERROR_MESSAGE);
return;
}
pPrintStream.println(getClassDetails(pObject, pObj... | public class class_name {
public static void printClassDetails(final Object pObject, final String pObjectName, final PrintStream pPrintStream) {
if (pPrintStream == null) {
System.err.println(PRINTSTREAM_IS_NULL_ERROR_MESSAGE);
// depends on control dependency: [if], data = [none]
return;
// depe... |
public class class_name {
private void moveDataAfterIndex(int index, int length) {
ensureCapacity(Math.max(this.position, index) + length);
if (index < this.position) {
// 插入位置在已有数据范围内,后移插入位置之后的数据
System.arraycopy(this.value, index, this.value, index + length, this.position - index);
} else if (index > thi... | public class class_name {
private void moveDataAfterIndex(int index, int length) {
ensureCapacity(Math.max(this.position, index) + length);
if (index < this.position) {
// 插入位置在已有数据范围内,后移插入位置之后的数据
System.arraycopy(this.value, index, this.value, index + length, this.position - index); // depends on control de... |
public class class_name {
private Drawable getDrawable(Uri uri) {
try {
String scheme = uri.getScheme();
if (ContentResolver.SCHEME_ANDROID_RESOURCE.equals(scheme)) {
// Load drawables through Resources, to get the source density information
try {
... | public class class_name {
private Drawable getDrawable(Uri uri) {
try {
String scheme = uri.getScheme();
if (ContentResolver.SCHEME_ANDROID_RESOURCE.equals(scheme)) {
// Load drawables through Resources, to get the source density information
try {
... |
public class class_name {
public static FloatIteratorEx of(final Supplier<? extends FloatIterator> iteratorSupplier) {
N.checkArgNotNull(iteratorSupplier, "iteratorSupplier");
return new FloatIteratorEx() {
private FloatIterator iter = null;
private FloatIteratorEx iterEx ... | public class class_name {
public static FloatIteratorEx of(final Supplier<? extends FloatIterator> iteratorSupplier) {
N.checkArgNotNull(iteratorSupplier, "iteratorSupplier");
return new FloatIteratorEx() {
private FloatIterator iter = null;
private FloatIteratorEx iterEx ... |
public class class_name {
private Region find(long size) {
validate(!VALIDATING || Long.bitCount(size) == 1);
Node<Region> currentNode = getRoot();
Region currentRegion = currentNode.getPayload();
if (currentRegion == null || (currentRegion.available() & size) == 0) {
//no region big enough for ... | public class class_name {
private Region find(long size) {
validate(!VALIDATING || Long.bitCount(size) == 1);
Node<Region> currentNode = getRoot();
Region currentRegion = currentNode.getPayload();
if (currentRegion == null || (currentRegion.available() & size) == 0) {
//no region big enough for ... |
public class class_name {
private static ThreadFactory createThreadFactory(ThreadFactory threadFactory, String threadNamePrefix,
Boolean daemon) {
if (threadFactory != null) {
return threadFactory;
}
if (threadNamePrefix != null) {
if (daemon != null) {
return ThreadPoolUtil.buildThreadFactory(thre... | public class class_name {
private static ThreadFactory createThreadFactory(ThreadFactory threadFactory, String threadNamePrefix,
Boolean daemon) {
if (threadFactory != null) {
return threadFactory; // depends on control dependency: [if], data = [none]
}
if (threadNamePrefix != null) {
if (daemon != nul... |
public class class_name {
private ControlAck createControlAckMessage() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createControlAckMessage");
ControlAck ackMsg = null;
// Create new AckMessage
try
... | public class class_name {
private ControlAck createControlAckMessage() throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createControlAckMessage");
ControlAck ackMsg = null;
// Create new AckMessage
try
... |
public class class_name {
public String getKeyValue(String key){
String keyName = keysMap.get(key);
if (keyName != null){
return keyName;
}
return ""; //key wasn't defined in keys properties file
} } | public class class_name {
public String getKeyValue(String key){
String keyName = keysMap.get(key);
if (keyName != null){
return keyName; // depends on control dependency: [if], data = [none]
}
return ""; //key wasn't defined in keys properties file
} } |
public class class_name {
@Override
public void sortAtomContainers(final Comparator<IAtomContainer> comparator) {
// need to use boxed primitives as we can't customise sorting of int primitives
Integer[] indexes = new Integer[atomContainerCount];
for (int i = 0; i < indexes.length; i++)
... | public class class_name {
@Override
public void sortAtomContainers(final Comparator<IAtomContainer> comparator) {
// need to use boxed primitives as we can't customise sorting of int primitives
Integer[] indexes = new Integer[atomContainerCount];
for (int i = 0; i < indexes.length; i++)
... |
public class class_name {
@Override
@FFDCIgnore(IOException.class)
public void error(VirtualConnection vc, TCPReadRequestContext rsc, IOException ioe) {
boolean closing = false;
boolean isFirstRead = false;
synchronized(_srtUpgradeStream){
closing = _upgradeStream.isClosing(... | public class class_name {
@Override
@FFDCIgnore(IOException.class)
public void error(VirtualConnection vc, TCPReadRequestContext rsc, IOException ioe) {
boolean closing = false;
boolean isFirstRead = false;
synchronized(_srtUpgradeStream){
closing = _upgradeStream.isClosing(... |
public class class_name {
static public String getEnglishString(byte[] data) {
if (null == data) {
return null;
}
char chars[] = new char[data.length];
for (int i = 0; i < data.length; i++) {
chars[i] = (char) (data[i] & 0xff);
}
return new String... | public class class_name {
static public String getEnglishString(byte[] data) {
if (null == data) {
return null; // depends on control dependency: [if], data = [none]
}
char chars[] = new char[data.length];
for (int i = 0; i < data.length; i++) {
chars[i] = (char)... |
public class class_name {
public Cell getCell(int x, int y, boolean isCreateIfNotExist) {
final Row row = isCreateIfNotExist ? RowUtil.getOrCreateRow(this.sheet, y) : this.sheet.getRow(y);
if (null != row) {
return isCreateIfNotExist ? CellUtil.getOrCreateCell(row, x) : row.getCell(x);
}
return null;
... | public class class_name {
public Cell getCell(int x, int y, boolean isCreateIfNotExist) {
final Row row = isCreateIfNotExist ? RowUtil.getOrCreateRow(this.sheet, y) : this.sheet.getRow(y);
if (null != row) {
return isCreateIfNotExist ? CellUtil.getOrCreateCell(row, x) : row.getCell(x);
// depends on control... |
public class class_name {
protected void handleProcessTimeout(String[] cmd) throws IOException {
StringBuilder bld = new StringBuilder();
boolean first = true;
for (String c : cmd) {
if (first) {
first = false;
} else {
bld.append(... | public class class_name {
protected void handleProcessTimeout(String[] cmd) throws IOException {
StringBuilder bld = new StringBuilder();
boolean first = true;
for (String c : cmd) {
if (first) {
first = false; // depends on control dependency: [if], data = [... |
public class class_name {
public void setCompatibleImages(java.util.Collection<CompatibleImage> compatibleImages) {
if (compatibleImages == null) {
this.compatibleImages = null;
return;
}
this.compatibleImages = new java.util.ArrayList<CompatibleImage>(compatibleImages)... | public class class_name {
public void setCompatibleImages(java.util.Collection<CompatibleImage> compatibleImages) {
if (compatibleImages == null) {
this.compatibleImages = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = ... |
public class class_name {
@Override
public Tile getTile(int x, int y, int zoom) {
Tile tile = null;
// Check if there is a tile
if (hasTile(x, y, zoom)) {
// Retrieve the tile
tile = retrieveTile(x, y, zoom);
}
return tile;
} } | public class class_name {
@Override
public Tile getTile(int x, int y, int zoom) {
Tile tile = null;
// Check if there is a tile
if (hasTile(x, y, zoom)) {
// Retrieve the tile
tile = retrieveTile(x, y, zoom); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(DescribeTransformJobRequest describeTransformJobRequest, ProtocolMarshaller protocolMarshaller) {
if (describeTransformJobRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DescribeTransformJobRequest describeTransformJobRequest, ProtocolMarshaller protocolMarshaller) {
if (describeTransformJobRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
protected GVRPickedObject findCollider(GVRPickedObject[] pickList, GVRCollider findme)
{
if (pickList == null)
{
return null;
}
for (GVRPickedObject hit : pickList)
{
if ((hit != null) && (hit.hitCollider == findme))
... | public class class_name {
protected GVRPickedObject findCollider(GVRPickedObject[] pickList, GVRCollider findme)
{
if (pickList == null)
{
return null; // depends on control dependency: [if], data = [none]
}
for (GVRPickedObject hit : pickList)
{
if (... |
public class class_name {
@Override
public void config(String msg) {
if (isLoggable(Level.CONFIG)) {
log(Level.CONFIG, msg);
}
} } | public class class_name {
@Override
public void config(String msg) {
if (isLoggable(Level.CONFIG)) {
log(Level.CONFIG, msg); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static boolean isAssignable(Class<?> lhsType, Class<?> rhsType) {
Assert.notNull(lhsType, "Left-hand side type must not be null");
Assert.notNull(rhsType, "Right-hand side type must not be null");
if (lhsType.isAssignableFrom(rhsType)) {
return true;... | public class class_name {
public static boolean isAssignable(Class<?> lhsType, Class<?> rhsType) {
Assert.notNull(lhsType, "Left-hand side type must not be null");
Assert.notNull(rhsType, "Right-hand side type must not be null");
if (lhsType.isAssignableFrom(rhsType)) {
return true;... |
public class class_name {
public static String decode(String uri) {
if(logger.isDebugEnabled()) {
logger.debug("uri to decode " + uri);
}
if(uri == null) {
// fix by Hauke D. Issue 410
// throw new NullPointerException("uri cannot be null !");
return null;
}
... | public class class_name {
public static String decode(String uri) {
if(logger.isDebugEnabled()) {
logger.debug("uri to decode " + uri); // depends on control dependency: [if], data = [none]
}
if(uri == null) {
// fix by Hauke D. Issue 410
// throw new NullPointerException("uri cannot be... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.