code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public Double getDouble(Double defaultValue) {
if (value instanceof Number) {
return ((Number) value).doubleValue();
}
if (value instanceof String) {
String s = (String) value;
return Double.parseDouble(s);
}
if (value == null) {
return defaultValue... | public class class_name {
public Double getDouble(Double defaultValue) {
if (value instanceof Number) {
return ((Number) value).doubleValue(); // depends on control dependency: [if], data = [none]
}
if (value instanceof String) {
String s = (String) value;
return Double.parseDouble(s); //... |
public class class_name {
private void unsubscribeAndRetry(final Subscription subscription, final CouchbaseRequest request) {
if (subscription != null && !subscription.isUnsubscribed()) {
subscription.unsubscribe();
}
RetryHelper.retryOrCancel(env, request, responseBuffer);
} } | public class class_name {
private void unsubscribeAndRetry(final Subscription subscription, final CouchbaseRequest request) {
if (subscription != null && !subscription.isUnsubscribed()) {
subscription.unsubscribe(); // depends on control dependency: [if], data = [none]
}
RetryHelper... |
public class class_name {
private javax.swing.JPanel getPanelCommand() {
if (panelCommand == null) {
panelCommand = new javax.swing.JPanel();
panelCommand.setLayout(new java.awt.GridBagLayout());
panelCommand.setName("Search Panel");
GridBagConstraints gridBagConstraints1 = new GridBagConstra... | public class class_name {
private javax.swing.JPanel getPanelCommand() {
if (panelCommand == null) {
panelCommand = new javax.swing.JPanel();
// depends on control dependency: [if], data = [none]
panelCommand.setLayout(new java.awt.GridBagLayout());
// depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public String getCookieName() {
if (allowedProps != null) {
return (String) allowedProps.get(CFG_COOKIE_NAME);
}
return null;
} } | public class class_name {
@Override
public String getCookieName() {
if (allowedProps != null) {
return (String) allowedProps.get(CFG_COOKIE_NAME); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public S parse(
CharSequence text,
int offset
) throws ParseException {
int pos = offset;
Map<Object, Long> unitsToValues = new HashMap<>();
for (int i = 0, n = this.items.size(); i < n; i++) {
FormatItem<U> item = this.items.get(i);
... | public class class_name {
public S parse(
CharSequence text,
int offset
) throws ParseException {
int pos = offset;
Map<Object, Long> unitsToValues = new HashMap<>();
for (int i = 0, n = this.items.size(); i < n; i++) {
FormatItem<U> item = this.items.get(i);
... |
public class class_name {
@Deprecated
State isState(Object obj) {
State state = null;
if (obj == null) {
state = State.VALUE_NULL;
} else if (obj instanceof String) {
state = State.VALUE_STRING;
} else if (obj instanceof Boolean) {
state = State.VALUE_BOOLEAN;
} else if (obj instanceof Double || ob... | public class class_name {
@Deprecated
State isState(Object obj) {
State state = null;
if (obj == null) {
state = State.VALUE_NULL; // depends on control dependency: [if], data = [none]
} else if (obj instanceof String) {
state = State.VALUE_STRING; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
@SuppressWarnings("WeakerAccess")
public synchronized void stop() {
if (isRunning()) {
running.set(false);
MetadataFinder.getInstance().removeMetadataProvider(metadataProvider);
for (Database database : databases.values()) {
//no... | public class class_name {
@SuppressWarnings("WeakerAccess")
public synchronized void stop() {
if (isRunning()) {
running.set(false); // depends on control dependency: [if], data = [none]
MetadataFinder.getInstance().removeMetadataProvider(metadataProvider); // depends on control dep... |
public class class_name {
String getResponseToken(String responseInbox) {
int len = getRespInboxLength();
if (responseInbox.length() <= len) {
return responseInbox;
}
return responseInbox.substring(len);
} } | public class class_name {
String getResponseToken(String responseInbox) {
int len = getRespInboxLength();
if (responseInbox.length() <= len) {
return responseInbox;
// depends on control dependency: [if], data = [none]
}
return responseInbox.substring(len);
} } |
public class class_name {
public static String addLeftOpt(String str, String left) {
if (str.startsWith(left)) {
return str;
} else {
return left + str;
}
} } | public class class_name {
public static String addLeftOpt(String str, String left) {
if (str.startsWith(left)) {
return str; // depends on control dependency: [if], data = [none]
} else {
return left + str; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private void handleEvent(final WatchKey key) {
try {
key.pollEvents().forEach(event -> {
val eventName = event.kind().name();
val ev = (WatchEvent<Path>) event;
val filename = ev.context();
val parent = (Pat... | public class class_name {
private void handleEvent(final WatchKey key) {
try {
key.pollEvents().forEach(event -> {
val eventName = event.kind().name(); // depends on control dependency: [try], data = [none]
val ev = (WatchEvent<Path>) event;
val file... |
public class class_name {
public final void execute(@NonNull final ReportBuilder reportBuilder) {
if (!enabled) {
ACRA.log.v(LOG_TAG, "ACRA is disabled. Report not sent.");
return;
}
ReportingAdministrator blockingAdministrator = null;
for (ReportingAdministrat... | public class class_name {
public final void execute(@NonNull final ReportBuilder reportBuilder) {
if (!enabled) {
ACRA.log.v(LOG_TAG, "ACRA is disabled. Report not sent."); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [non... |
public class class_name {
public double getContactOverlapScore(StructureInterface other, boolean invert) {
Structure thisStruct = getParentStructure();
Structure otherStruct = other.getParentStructure();
if (thisStruct!=otherStruct) {
// in the current implementation, comparison between different structure ... | public class class_name {
public double getContactOverlapScore(StructureInterface other, boolean invert) {
Structure thisStruct = getParentStructure();
Structure otherStruct = other.getParentStructure();
if (thisStruct!=otherStruct) {
// in the current implementation, comparison between different structure ... |
public class class_name {
@Override
public String getSecureVirtualHostName() {
if (this.getSecurePortEnabled()) {
return configInstance.getStringProperty(namespace + SECURE_VIRTUAL_HOSTNAME_KEY,
super.getSecureVirtualHostName()).get();
} else {
return nul... | public class class_name {
@Override
public String getSecureVirtualHostName() {
if (this.getSecurePortEnabled()) {
return configInstance.getStringProperty(namespace + SECURE_VIRTUAL_HOSTNAME_KEY,
super.getSecureVirtualHostName()).get(); // depends on control dependency: [if],... |
public class class_name {
protected static URL findConfigUrlInDirectory(File directory, String configName) {
if (directory.isDirectory()) {
File cfile = new File(directory, configName);
if (cfile.isFile()) {
try {
return cfile.toURI().toURL();
... | public class class_name {
protected static URL findConfigUrlInDirectory(File directory, String configName) {
if (directory.isDirectory()) {
File cfile = new File(directory, configName);
if (cfile.isFile()) {
try {
return cfile.toURI().toURL(); // depe... |
public class class_name {
public static Date getDate(
Object value)
{
if (value == null)
{
return null;
}
if (value instanceof Date)
{
return ((Date) value);
}
return parseISODate(value.toString());
} } | public class class_name {
public static Date getDate(
Object value)
{
if (value == null)
{
return null; // depends on control dependency: [if], data = [none]
}
if (value instanceof Date)
{
return ((Date) value); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void marshall(JobExecutionSummary jobExecutionSummary, ProtocolMarshaller protocolMarshaller) {
if (jobExecutionSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(JobExecutionSummary jobExecutionSummary, ProtocolMarshaller protocolMarshaller) {
if (jobExecutionSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
private static void push( Stack<String> stack, String value )
{
if( stack.size() > 0 )
{
String data = stack.pop();
if( "${".equals( data ) )
{
stack.push( data );
stack.push( value );
}
... | public class class_name {
private static void push( Stack<String> stack, String value )
{
if( stack.size() > 0 )
{
String data = stack.pop();
if( "${".equals( data ) )
{
stack.push( data ); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static void main( String[] args ) {
ImageMetadata imageMetadata = new ImageMetadata();
imageMetadata.setDetermineImageNumber(true);
boolean verbose = determineVerbosity(args);
if (args.length == 0) {
run(null, System.in, imageMetadata, verbos... | public class class_name {
public static void main( String[] args ) {
ImageMetadata imageMetadata = new ImageMetadata();
imageMetadata.setDetermineImageNumber(true);
boolean verbose = determineVerbosity(args);
if (args.length == 0) {
run(null, System.in, imageMetadata, verbos... |
public class class_name {
long getMessageLockExpiry() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
final String methodName = "getMessageLockExpiry";
SibTr.entry(this, TRACE, methodName);
SibTr.exit(this, TRACE, methodName, "0");
}
... | public class class_name {
long getMessageLockExpiry() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
final String methodName = "getMessageLockExpiry";
SibTr.entry(this, TRACE, methodName); // depends on control dependency: [if], data = [none]
SibTr.... |
public class class_name {
public void removeAllDependencies() {
registryLock.writeLock().lock();
try {
dependingRegistryMapLock.writeLock().lock();
try {
List<Registry> dependingRegistryList = new ArrayList<>(dependingRegistryMap.keySet());
Collec... | public class class_name {
public void removeAllDependencies() {
registryLock.writeLock().lock();
try {
dependingRegistryMapLock.writeLock().lock(); // depends on control dependency: [try], data = [none]
try {
List<Registry> dependingRegistryList = new ArrayList<>... |
public class class_name {
private void encodeStreamBody(StringBuffer result, JsJmsStreamMessage msg) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeStreamBody");
// Internal method to get the stream as a List
try {
List<Object> body = ((JsJmsStreamMessageImp... | public class class_name {
private void encodeStreamBody(StringBuffer result, JsJmsStreamMessage msg) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeStreamBody");
// Internal method to get the stream as a List
try {
List<Object> body = ((JsJmsStreamMessageImp... |
public class class_name {
public void registerMockResource(String location, String contents) {
try {
mockResources.put(location, new GrailsByteArrayResource(contents.getBytes("UTF-8"), location));
}
catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
... | public class class_name {
public void registerMockResource(String location, String contents) {
try {
mockResources.put(location, new GrailsByteArrayResource(contents.getBytes("UTF-8"), location)); // depends on control dependency: [try], data = [none]
}
catch (UnsupportedEncodingExc... |
public class class_name {
public void event(Kernel kernel, Event event)
{
if (event == Event.PRE_CLASSLOADER)
{
SecurityActions.setSystemProperty("xb.builder.useUnorderedSequence", "true");
SecurityActions.setSystemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager"... | public class class_name {
public void event(Kernel kernel, Event event)
{
if (event == Event.PRE_CLASSLOADER)
{
SecurityActions.setSystemProperty("xb.builder.useUnorderedSequence", "true"); // depends on control dependency: [if], data = [none]
SecurityActions.setSystemProperty("java.ut... |
public class class_name {
public static Properties toProperties(JSONObject jo) throws JSONException {
Properties properties = new Properties();
if (jo != null) {
// Don't use the new entrySet API to maintain Android support
for (final String key : jo.keySet()) {
O... | public class class_name {
public static Properties toProperties(JSONObject jo) throws JSONException {
Properties properties = new Properties();
if (jo != null) {
// Don't use the new entrySet API to maintain Android support
for (final String key : jo.keySet()) {
O... |
public class class_name {
private static byte[] decodeBase64Digest(String base64Digest) {
String expectedPrefix = "sha1-";
if (!base64Digest.startsWith(expectedPrefix)) {
throw new IllegalArgumentException(base64Digest + " did not start with " +
expectedPrefix);
... | public class class_name {
private static byte[] decodeBase64Digest(String base64Digest) {
String expectedPrefix = "sha1-";
if (!base64Digest.startsWith(expectedPrefix)) {
throw new IllegalArgumentException(base64Digest + " did not start with " +
expectedPrefix);
... |
public class class_name {
public final T getParent() {
if (parent == null) {
synchronized (this) {
if (parent == null) {
T ev = getParentFromConfig();
if (ev != null && ev != getSingleRoot()) {
parent = Cast.as(ev);
}
... | public class class_name {
public final T getParent() {
if (parent == null) {
synchronized (this) { // depends on control dependency: [if], data = [none]
if (parent == null) {
T ev = getParentFromConfig();
if (ev != null && ev != getSingleRoot()) {
... |
public class class_name {
protected String extractLastName(String name) {
if (StringUtils.isBlank(name)) {
return null;
}
int lastIndexOf = name.lastIndexOf(' ');
if (lastIndexOf == -1)
return null;
else
return name.substring(lastIndexOf + 1);
} } | public class class_name {
protected String extractLastName(String name) {
if (StringUtils.isBlank(name)) {
return null; // depends on control dependency: [if], data = [none]
}
int lastIndexOf = name.lastIndexOf(' ');
if (lastIndexOf == -1)
return null;
else
return name.su... |
public class class_name {
public void bindAnnotationConfig(final Class<? extends Annotation> annotationType, final Class<? extends ActionConfig> actionConfigClass) {
final ActionConfig actionConfig = registerNewActionConfiguration(actionConfigClass);
actionConfigs.put(annotationType, actionConfig);
for (final ... | public class class_name {
public void bindAnnotationConfig(final Class<? extends Annotation> annotationType, final Class<? extends ActionConfig> actionConfigClass) {
final ActionConfig actionConfig = registerNewActionConfiguration(actionConfigClass);
actionConfigs.put(annotationType, actionConfig);
for (final ... |
public class class_name {
public static Map<String, Object> getBeansWithAnnotation(ApplicationContext appContext,
Class<? extends Annotation> annotationType) {
try {
return appContext.getBeansWithAnnotation(annotationType);
} catch (BeansException e) {
return new Has... | public class class_name {
public static Map<String, Object> getBeansWithAnnotation(ApplicationContext appContext,
Class<? extends Annotation> annotationType) {
try {
return appContext.getBeansWithAnnotation(annotationType); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public RandomVariableInterface getCovariance(int timeIndex, int component1, int component2, RandomVariableInterface[] realizationAtTimeIndex) {
RandomVariableInterface[] factorLoadingOfComponent1 = getFactorLoading(timeIndex, component1, realizationAtTimeIndex);
RandomVariableInterface[]... | public class class_name {
public RandomVariableInterface getCovariance(int timeIndex, int component1, int component2, RandomVariableInterface[] realizationAtTimeIndex) {
RandomVariableInterface[] factorLoadingOfComponent1 = getFactorLoading(timeIndex, component1, realizationAtTimeIndex);
RandomVariableInterface[]... |
public class class_name {
protected void createFakeTemplateCellsForEmptyOnes(Range oneRowRange,
Map<CellReference, Cell> cellsForOneRowRange,
List<Cell> templateCells) {
if (oneRowRange.toCellReference... | public class class_name {
protected void createFakeTemplateCellsForEmptyOnes(Range oneRowRange,
Map<CellReference, Cell> cellsForOneRowRange,
List<Cell> templateCells) {
if (oneRowRange.toCellReference... |
public class class_name {
@SuppressWarnings("unchecked")
void maybeMovePartition(final short partition) {
Observable
.timer(50, TimeUnit.MILLISECONDS)
.filter(ignored -> {
PartitionState ps = sessionState.get(partition);
boolean desiredSeqnoReached = ps.isAtEnd();
if... | public class class_name {
@SuppressWarnings("unchecked")
void maybeMovePartition(final short partition) {
Observable
.timer(50, TimeUnit.MILLISECONDS)
.filter(ignored -> {
PartitionState ps = sessionState.get(partition);
boolean desiredSeqnoReached = ps.isAtEnd();
if... |
public class class_name {
public List<ResourceHandle> getChildrenByResourceType(final String resourceType) {
final ArrayList<ResourceHandle> children = new ArrayList<>();
if (this.isValid()) {
for (final Resource child : this.resource.getChildren()) {
ResourceHandle handle =... | public class class_name {
public List<ResourceHandle> getChildrenByResourceType(final String resourceType) {
final ArrayList<ResourceHandle> children = new ArrayList<>();
if (this.isValid()) {
for (final Resource child : this.resource.getChildren()) {
ResourceHandle handle =... |
public class class_name {
public void addPath(T value, byte[]... parts)
{
int depth = 0;
ByteTrieNode<T> node = _root;
for (byte[] part : parts) {
for (byte b : part) {
ByteTrieNode<T> child = node._children.get(b);
if (child == null) {
... | public class class_name {
public void addPath(T value, byte[]... parts)
{
int depth = 0;
ByteTrieNode<T> node = _root;
for (byte[] part : parts) {
for (byte b : part) {
ByteTrieNode<T> child = node._children.get(b);
if (child == null) {
... |
public class class_name {
public static void run(final @Nonnull String message, final @Nonnull ThrowingRunnable runnable) {
Objects.requireNonNull(message, "message must not be null");
Objects.requireNonNull(runnable, "runnable must not be null");
try {
runnable.run();
} catch (final Exception ex... | public class class_name {
public static void run(final @Nonnull String message, final @Nonnull ThrowingRunnable runnable) {
Objects.requireNonNull(message, "message must not be null");
Objects.requireNonNull(runnable, "runnable must not be null");
try {
runnable.run(); // depends on control dependenc... |
public class class_name {
public void marshall(Messages messages, ProtocolMarshaller protocolMarshaller) {
if (messages == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(messages.getErrors(), ERRORS... | public class class_name {
public void marshall(Messages messages, ProtocolMarshaller protocolMarshaller) {
if (messages == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(messages.getErrors(), ERRORS... |
public class class_name {
public static String getCommandName(Object obj) {
String name = obj.getClass().getName();
int dollar = name.indexOf("_$$_");
if (-1 == dollar) {
name = name.substring(name.lastIndexOf('.') + 1);
} else {
name = name.substring(name.lastIndexOf('.') + 1, dollar);
... | public class class_name {
public static String getCommandName(Object obj) {
String name = obj.getClass().getName();
int dollar = name.indexOf("_$$_");
if (-1 == dollar) {
name = name.substring(name.lastIndexOf('.') + 1); // depends on control dependency: [if], data = [none]
} else {
name = ... |
public class class_name {
public void parse(final String in) {
ParseState state = ParseState.TEXT;
ParseState stateOnEscape = null;
boolean insideSection = false;
String currentSection = null;
String key = null;
Operator operator = Operator.ASSIGN;
final StringBuilder sb = new StringBuilder();
final ... | public class class_name {
public void parse(final String in) {
ParseState state = ParseState.TEXT;
ParseState stateOnEscape = null;
boolean insideSection = false;
String currentSection = null;
String key = null;
Operator operator = Operator.ASSIGN;
final StringBuilder sb = new StringBuilder();
final ... |
public class class_name {
public String getFields() {
if (m_parameters.getFields() == null) {
return "";
}
StringBuffer result = new StringBuffer();
Iterator<String> it = m_parameters.getFields().iterator();
while (it.hasNext()) {
result.append(it.next()... | public class class_name {
public String getFields() {
if (m_parameters.getFields() == null) {
return ""; // depends on control dependency: [if], data = [none]
}
StringBuffer result = new StringBuffer();
Iterator<String> it = m_parameters.getFields().iterator();
whil... |
public class class_name {
public ContainerDefinition withResourceRequirements(ResourceRequirement... resourceRequirements) {
if (this.resourceRequirements == null) {
setResourceRequirements(new com.amazonaws.internal.SdkInternalList<ResourceRequirement>(resourceRequirements.length));
}
... | public class class_name {
public ContainerDefinition withResourceRequirements(ResourceRequirement... resourceRequirements) {
if (this.resourceRequirements == null) {
setResourceRequirements(new com.amazonaws.internal.SdkInternalList<ResourceRequirement>(resourceRequirements.length)); // depends on ... |
public class class_name {
protected void updateComputerList(final boolean automaticSlaveLaunch) {
final Map<Node,Computer> computers = getComputerMap();
final Set<Computer> old = new HashSet<Computer>(computers.size());
Queue.withLock(new Runnable() {
@Override
public vo... | public class class_name {
protected void updateComputerList(final boolean automaticSlaveLaunch) {
final Map<Node,Computer> computers = getComputerMap();
final Set<Computer> old = new HashSet<Computer>(computers.size());
Queue.withLock(new Runnable() {
@Override
public vo... |
public class class_name {
public static String inputStream2String(final InputStream is, final String charsetName) {
if (is == null || isSpace(charsetName)) return null;
try {
return new String(inputStream2Bytes(is), charsetName);
} catch (UnsupportedEncodingException e) {
... | public class class_name {
public static String inputStream2String(final InputStream is, final String charsetName) {
if (is == null || isSpace(charsetName)) return null;
try {
return new String(inputStream2Bytes(is), charsetName); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public Coordinate getCoordinateN(int n) {
if (isEmpty()) {
return null;
}
if (n >= 0 && n < coordinates.length) {
return coordinates[n];
}
return null;
} } | public class class_name {
public Coordinate getCoordinateN(int n) {
if (isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
if (n >= 0 && n < coordinates.length) {
return coordinates[n]; // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
@SuppressWarnings("unchecked")
public T addParameters(String key, Object value) {
try {
if (this.params_ == null) {
this.params_ = new JSONObject();
}
this.params_.put(key, value);
} catch (JSONException ignore) {
... | public class class_name {
@SuppressWarnings("unchecked")
public T addParameters(String key, Object value) {
try {
if (this.params_ == null) {
this.params_ = new JSONObject(); // depends on control dependency: [if], data = [none]
}
this.params_.put(key, va... |
public class class_name {
@Override
protected AuthenticationHandlerExecutionResult doAuthentication(final Credential credential) throws GeneralSecurityException {
val x509Credential = (X509CertificateCredential) credential;
val certificates = x509Credential.getCertificates();
var clientCe... | public class class_name {
@Override
protected AuthenticationHandlerExecutionResult doAuthentication(final Credential credential) throws GeneralSecurityException {
val x509Credential = (X509CertificateCredential) credential;
val certificates = x509Credential.getCertificates();
var clientCe... |
public class class_name {
public EEnum getExternalAlgorithmRGPADALMT() {
if (externalAlgorithmRGPADALMTEEnum == null) {
externalAlgorithmRGPADALMTEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(130);
}
return externalAlgorithmRGPADALMTEEnum;
} } | public class class_name {
public EEnum getExternalAlgorithmRGPADALMT() {
if (externalAlgorithmRGPADALMTEEnum == null) {
externalAlgorithmRGPADALMTEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(130); // depends on control dependency: [if], data = [none]
}
ret... |
public class class_name {
@Override
public void close() {
if (conn != null) {
LOG.trace("Close connection. conn[{}], hashCode[{}]", conn, conn.hashCode());
try {
conn.close();
} catch (SQLException e) {
throw new UroborosqlSQLException(e);
}
conn = null;
}
} } | public class class_name {
@Override
public void close() {
if (conn != null) {
LOG.trace("Close connection. conn[{}], hashCode[{}]", conn, conn.hashCode()); // depends on control dependency: [if], data = [none]
try {
conn.close(); // depends on control dependency: [try], data = [none]
} catch (SQLExcept... |
public class class_name {
protected final Constraint getConstraint(final Element element) {
Element constraintElement = element.getChild(XMLTags.CONSTRAINT);
if (constraintElement != null) {
return generator.getConstraintFactory().createModel(random, constraintElement);
}
constraintElement = element.ge... | public class class_name {
protected final Constraint getConstraint(final Element element) {
Element constraintElement = element.getChild(XMLTags.CONSTRAINT);
if (constraintElement != null) {
return generator.getConstraintFactory().createModel(random, constraintElement);
// depends on control dependency: [if... |
public class class_name {
public static void addFiles(final Project findBugsProject, File clzDir, final Pattern pat) {
if (clzDir.isDirectory()) {
clzDir.listFiles(new FileCollector(pat, findBugsProject));
}
} } | public class class_name {
public static void addFiles(final Project findBugsProject, File clzDir, final Pattern pat) {
if (clzDir.isDirectory()) {
clzDir.listFiles(new FileCollector(pat, findBugsProject)); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public Object invokeMethod(String name, Object args) {
if (args != null && Object[].class.isAssignableFrom(args.getClass())) {
Object[] arr = (Object[]) args;
if (arr.length == 0) {
return setAndGetContent(name, new HashMap<String, Object>());
... | public class class_name {
public Object invokeMethod(String name, Object args) {
if (args != null && Object[].class.isAssignableFrom(args.getClass())) {
Object[] arr = (Object[]) args;
if (arr.length == 0) {
return setAndGetContent(name, new HashMap<String, Object>()); /... |
public class class_name {
public static boolean safeCloseAll(Closeable... closeables) {
boolean result = true;
for (final Closeable c : closeables) {
result &= safeClose(c);
}
return result;
} } | public class class_name {
public static boolean safeCloseAll(Closeable... closeables) {
boolean result = true;
for (final Closeable c : closeables) {
result &= safeClose(c); // depends on control dependency: [for], data = [c]
}
return result;
} } |
public class class_name {
@Override
public String visit(IndexedClass element) {
ElkClass entity = element.getElkEntity();
if (entity.getIri().equals(PredefinedElkIris.OWL_THING)) {
return "⊤";
}
// else
if (entity.getIri().equals(PredefinedElkIris.OWL_NOTHING)) {
return "⊥";
}
// else
return ent... | public class class_name {
@Override
public String visit(IndexedClass element) {
ElkClass entity = element.getElkEntity();
if (entity.getIri().equals(PredefinedElkIris.OWL_THING)) {
return "⊤"; // depends on control dependency: [if], data = [none]
}
// else
if (entity.getIri().equals(PredefinedElkIris.OWL... |
public class class_name {
protected CmsLock getRelatedLock() {
if (m_relatedLock == null) {
CmsLockType type;
if (isSystemLock()) {
type = CmsLockType.UNLOCKED;
} else {
type = CmsLockType.SYSTEM_UNLOCKED;
}
CmsLock lo... | public class class_name {
protected CmsLock getRelatedLock() {
if (m_relatedLock == null) {
CmsLockType type;
if (isSystemLock()) {
type = CmsLockType.UNLOCKED; // depends on control dependency: [if], data = [none]
} else {
type = CmsLockType... |
public class class_name {
protected boolean delistResource(XAResource xaRes, int flag) throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "delistResource", new Object[] { xaRes, Util.printFlag(flag) });
// get resource manager instance
JTAResourceBase jtaRes = (JTAResou... | public class class_name {
protected boolean delistResource(XAResource xaRes, int flag) throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "delistResource", new Object[] { xaRes, Util.printFlag(flag) });
// get resource manager instance
JTAResourceBase jtaRes = (JTAResou... |
public class class_name {
public static String getFirstSubstring(final String inputString,
final String startingWith, final String endingWith) {
if (!inputString.contains(startingWith)
|| !inputString.contains(endingWith)) {
return null;
}
final int start... | public class class_name {
public static String getFirstSubstring(final String inputString,
final String startingWith, final String endingWith) {
if (!inputString.contains(startingWith)
|| !inputString.contains(endingWith)) {
return null; // depends on control dependency:... |
public class class_name {
public static <T> Response call(RestUtils.RestCallable<T> callable,
AlluxioConfiguration alluxioConf, @Nullable Map<String, Object> headers) {
try {
// TODO(cc): reconsider how to enable authentication
if (SecurityUtils.isSecurityEnabled(alluxioConf)
&& Authent... | public class class_name {
public static <T> Response call(RestUtils.RestCallable<T> callable,
AlluxioConfiguration alluxioConf, @Nullable Map<String, Object> headers) {
try {
// TODO(cc): reconsider how to enable authentication
if (SecurityUtils.isSecurityEnabled(alluxioConf)
&& Authent... |
public class class_name {
public static BaasUser withUserName(String username) {
BaasUser current = current();
if (current != null && current.username.equals(username)) {
return current;
}
return new BaasUser(username);
} } | public class class_name {
public static BaasUser withUserName(String username) {
BaasUser current = current();
if (current != null && current.username.equals(username)) {
return current; // depends on control dependency: [if], data = [none]
}
return new BaasUser(username);
... |
public class class_name {
public void marshall(InviteAccountToOrganizationRequest inviteAccountToOrganizationRequest, ProtocolMarshaller protocolMarshaller) {
if (inviteAccountToOrganizationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(InviteAccountToOrganizationRequest inviteAccountToOrganizationRequest, ProtocolMarshaller protocolMarshaller) {
if (inviteAccountToOrganizationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
@Override
public void moduleMetaDataCreated(MetaDataEvent<ModuleMetaData> event) throws MetaDataException {
// We only save meta data if it is for a web module
if (event.getMetaData() instanceof WebModuleMetaData) {
String appName = event.getMetaData().getJ2EEN... | public class class_name {
@Override
public void moduleMetaDataCreated(MetaDataEvent<ModuleMetaData> event) throws MetaDataException {
// We only save meta data if it is for a web module
if (event.getMetaData() instanceof WebModuleMetaData) {
String appName = event.getMetaData().getJ2EEN... |
public class class_name {
public void listContents() throws IOException {
for (;;) {
TarEntry entry = this.tarIn.getNextEntry();
if (entry == null) {
if (this.debug) {
System.err.println("READ EOF RECORD");
}
b... | public class class_name {
public void listContents() throws IOException {
for (;;) {
TarEntry entry = this.tarIn.getNextEntry();
if (entry == null) {
if (this.debug) {
System.err.println("READ EOF RECORD");
// depends on control dependency: [i... |
public class class_name {
public boolean canGenerate(String jobName) {
try {
Class.forName(this.getGeneratorClass(jobName));
return true;
} catch (ClassNotFoundException e) {
return false;
}
} } | public class class_name {
public boolean canGenerate(String jobName) {
try {
Class.forName(this.getGeneratorClass(jobName)); // depends on control dependency: [try], data = [none]
return true; // depends on control dependency: [try], data = [none]
} catch (ClassNotFoundException... |
public class class_name {
public String protectKeyword(String text) {
if (!Strings.isEmpty(text) && isKeyword(text)) {
return "^" + text;
}
return text;
} } | public class class_name {
public String protectKeyword(String text) {
if (!Strings.isEmpty(text) && isKeyword(text)) {
return "^" + text; // depends on control dependency: [if], data = [none]
}
return text;
} } |
public class class_name {
public double[][] getScoreMatrix() {
double[][] matrix = new double[sequences.size()][sequences.size()];
for (int i = 0, n = 0; i < matrix.length; i++) {
matrix[i][i] = scorers.get(i).getMaxScore();
for (int j = i+1; j < matrix.length; j++) {
matrix[i][j] = matrix[j][i] = scorer... | public class class_name {
public double[][] getScoreMatrix() {
double[][] matrix = new double[sequences.size()][sequences.size()];
for (int i = 0, n = 0; i < matrix.length; i++) {
matrix[i][i] = scorers.get(i).getMaxScore(); // depends on control dependency: [for], data = [i]
for (int j = i+1; j < matrix.len... |
public class class_name {
public Field updateFieldDateTimeDate(Field routeFieldParam) {
if(routeFieldParam != null && this.serviceTicket != null) {
routeFieldParam.setServiceTicket(this.serviceTicket);
}
if(routeFieldParam != null) {
routeFieldParam.setTypeAsEnum(Field.Type.DateTime);
routeFieldParam.s... | public class class_name {
public Field updateFieldDateTimeDate(Field routeFieldParam) {
if(routeFieldParam != null && this.serviceTicket != null) {
routeFieldParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [if], data = [none]
}
if(routeFieldParam != null) {
routeFieldParam.se... |
public class class_name {
public String pageHtml(int segment, String helpUrl, String title) {
if (segment == HTML_START) {
String stylesheet = null;
if (isPopup() && !useNewStyle()) {
stylesheet = "popup.css";
}
StringBuffer result = new StringBu... | public class class_name {
public String pageHtml(int segment, String helpUrl, String title) {
if (segment == HTML_START) {
String stylesheet = null;
if (isPopup() && !useNewStyle()) {
stylesheet = "popup.css"; // depends on control dependency: [if], data = [none]
... |
public class class_name {
synchronized public long generateId64() {
long timestamp = System.currentTimeMillis();
long sequence = 0;
boolean done = false;
while (!done) {
done = true;
while (timestamp < lastTimestampMillisec.get()) {
timestamp = wa... | public class class_name {
synchronized public long generateId64() {
long timestamp = System.currentTimeMillis();
long sequence = 0;
boolean done = false;
while (!done) {
done = true; // depends on control dependency: [while], data = [none]
while (timestamp < last... |
public class class_name {
private static boolean isValidKey(final String s) {
// Equivalent to this regex \*|[_a-zA-Z](?:[-_a-zA-Z0-9]*[_a-zA-Z0-9]) but faster
if (s == null) {
return false;
}
if (s.equals(WILDCARD_VALUE)) {
return true;
}
int las... | public class class_name {
private static boolean isValidKey(final String s) {
// Equivalent to this regex \*|[_a-zA-Z](?:[-_a-zA-Z0-9]*[_a-zA-Z0-9]) but faster
if (s == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (s.equals(WILDCARD_VALUE)... |
public class class_name {
private String explainSearchKeys(String[] asIndexed, int nCovered) {
// By default, indexing starts at the start of the index.
if (m_searchkeyExpressions.isEmpty()) {
return "start";
}
String conjunction = "";
String result = "(";
in... | public class class_name {
private String explainSearchKeys(String[] asIndexed, int nCovered) {
// By default, indexing starts at the start of the index.
if (m_searchkeyExpressions.isEmpty()) {
return "start"; // depends on control dependency: [if], data = [none]
}
String con... |
public class class_name {
public static Node createUserNode(final String userId) {
if (INDEX_USERS.get(IDENTIFIER, userId).getSingle() == null) {
final Node user = DATABASE.createNode();
user.setProperty(Properties.User.IDENTIFIER, userId);
INDEX_USERS.add(user, IDENTIFIER, userId);
return user;
}
t... | public class class_name {
public static Node createUserNode(final String userId) {
if (INDEX_USERS.get(IDENTIFIER, userId).getSingle() == null) {
final Node user = DATABASE.createNode();
user.setProperty(Properties.User.IDENTIFIER, userId); // depends on control dependency: [if], data = [none]
INDEX_USERS.a... |
public class class_name {
public void marshall(ListFunctionsRequest listFunctionsRequest, ProtocolMarshaller protocolMarshaller) {
if (listFunctionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(ListFunctionsRequest listFunctionsRequest, ProtocolMarshaller protocolMarshaller) {
if (listFunctionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
static AtsdServerException fromResponse(final Response response) {
final int status = response.getStatus();
try {
final ServerError serverError = response.readEntity(ServerError.class);
final String message = AtsdServerMessageFactory.from(serverError);
... | public class class_name {
static AtsdServerException fromResponse(final Response response) {
final int status = response.getStatus();
try {
final ServerError serverError = response.readEntity(ServerError.class);
final String message = AtsdServerMessageFactory.from(serverError);
... |
public class class_name {
public EEnum getMFCMFCScpe() {
if (mfcmfcScpeEEnum == null) {
mfcmfcScpeEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(49);
}
return mfcmfcScpeEEnum;
} } | public class class_name {
public EEnum getMFCMFCScpe() {
if (mfcmfcScpeEEnum == null) {
mfcmfcScpeEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(49); // depends on control dependency: [if], data = [none]
}
return mfcmfcScpeEEnum;
} } |
public class class_name {
public final void end() {
final Thread thread = threadRef;
if (thread != null) {
thread.interrupt();
try {
thread.join();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
}
this.threadRef = null;
} } | public class class_name {
public final void end() {
final Thread thread = threadRef;
if (thread != null) {
thread.interrupt(); // depends on control dependency: [if], data = [none]
try {
thread.join(); // depends on control dependency: [try], data = [none]
} catch (InterruptedExceptio... |
public class class_name {
public PubSubMessageItemStream getPublishPoint()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getPublishPoint");
SibTr.exit(tc, "getPublishPoint", _pubsubMessageItemStream);
}
return _pubsubM... | public class class_name {
public PubSubMessageItemStream getPublishPoint()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getPublishPoint"); // depends on control dependency: [if], data = [none]
SibTr.exit(tc, "getPublishPoint", _pubsub... |
public class class_name {
protected void fireFaxEvent(FaxClientActionEventID id,FaxJob faxJob)
{
//create new fax event
FaxClientActionEvent event=new FaxClientActionEvent(id,faxJob);
//get listeners
FaxClientActionEventListener[] listeners=null;
synchronized(this.faxClient... | public class class_name {
protected void fireFaxEvent(FaxClientActionEventID id,FaxJob faxJob)
{
//create new fax event
FaxClientActionEvent event=new FaxClientActionEvent(id,faxJob);
//get listeners
FaxClientActionEventListener[] listeners=null;
synchronized(this.faxClient... |
public class class_name {
public ChorusHandlerJmxExporter export() {
if (Boolean.getBoolean(JMX_EXPORTER_ENABLED_PROPERTY)) {
//export this object as an MBean
if (exported.getAndSet(true) == false) {
try {
log.info(String.format("Exporting ChorusHandl... | public class class_name {
public ChorusHandlerJmxExporter export() {
if (Boolean.getBoolean(JMX_EXPORTER_ENABLED_PROPERTY)) {
//export this object as an MBean
if (exported.getAndSet(true) == false) {
try {
log.info(String.format("Exporting ChorusHandl... |
public class class_name {
public static int exec(String origArgs[])
{
errorReporter = new ToolErrorReporter(false, global.getErr());
shellContextFactory.setErrorReporter(errorReporter);
String[] args = processOptions(origArgs);
if (exitCode > 0) {
return exitCode;
... | public class class_name {
public static int exec(String origArgs[])
{
errorReporter = new ToolErrorReporter(false, global.getErr());
shellContextFactory.setErrorReporter(errorReporter);
String[] args = processOptions(origArgs);
if (exitCode > 0) {
return exitCode; // dep... |
public class class_name {
private void createScopeServices() {
try {
services = new ScopeServices(getRequiredServices(),
settings.getPort(),
!settings.autostart());
services.startStpThread();
} catch (IOException e) {
throw... | public class class_name {
private void createScopeServices() {
try {
services = new ScopeServices(getRequiredServices(),
settings.getPort(),
!settings.autostart()); // depends on control dependency: [try], data = [none]
services.star... |
public class class_name {
public static Response getDeleteResponse(App app, ParaObject content) {
try (final Metrics.Context context = Metrics.time(app == null ? null : app.getAppid(),
RestUtils.class, "crud", "delete")) {
if (app != null && content != null && content.getId() != null && content.getAppid() != ... | public class class_name {
public static Response getDeleteResponse(App app, ParaObject content) {
try (final Metrics.Context context = Metrics.time(app == null ? null : app.getAppid(),
RestUtils.class, "crud", "delete")) {
if (app != null && content != null && content.getId() != null && content.getAppid() != ... |
public class class_name {
public void start()
{
try
{
getRemoteBundleContext().startBundle( 0 );
}
catch( RemoteException e )
{
throw new TestContainerException( "Remote exception", e );
}
catch( BundleException e )
{
... | public class class_name {
public void start()
{
try
{
getRemoteBundleContext().startBundle( 0 ); // depends on control dependency: [try], data = [none]
}
catch( RemoteException e )
{
throw new TestContainerException( "Remote exception", e );
}... |
public class class_name {
public BaseWindowedBolt<T> withStateSize(Time size) {
long s = size.toMilliseconds();
ensurePositiveTime(s);
ensureStateSizeGreaterThanWindowSize(this.size, s);
this.stateSize = s;
if (WindowAssigner.isEventTime(this.windowAssigner)) {
this... | public class class_name {
public BaseWindowedBolt<T> withStateSize(Time size) {
long s = size.toMilliseconds();
ensurePositiveTime(s);
ensureStateSizeGreaterThanWindowSize(this.size, s);
this.stateSize = s;
if (WindowAssigner.isEventTime(this.windowAssigner)) {
this... |
public class class_name {
@Override
public boolean apply(Map.Entry mapEntry) {
if (predicate != null) {
return predicate.apply(mapEntry);
}
return true;
} } | public class class_name {
@Override
public boolean apply(Map.Entry mapEntry) {
if (predicate != null) {
return predicate.apply(mapEntry); // depends on control dependency: [if], data = [none]
}
return true;
} } |
public class class_name {
private Collection<TypeElement> subinterfaces(TypeElement te) {
Collection<TypeElement> ret = classToSubinterface.get(te);
if (ret == null) {
ret = new TreeSet<>(utils.makeClassUseComparator());
Set<TypeElement> subs = classtree.subInterfaces(te);
... | public class class_name {
private Collection<TypeElement> subinterfaces(TypeElement te) {
Collection<TypeElement> ret = classToSubinterface.get(te);
if (ret == null) {
ret = new TreeSet<>(utils.makeClassUseComparator()); // depends on control dependency: [if], data = [none]
Set<... |
public class class_name {
@Override
public Set<String> getSupportedAnnotationTypes() {
Set<String> set = new HashSet<>();
// Analyze @SupportedAnnotationTypes
SupportedAnnotationTypes sat = this.getClass().getAnnotation(SupportedAnnotationTypes.class);
if (sat != null) {
Arrays.stream(sat.value... | public class class_name {
@Override
public Set<String> getSupportedAnnotationTypes() {
Set<String> set = new HashSet<>();
// Analyze @SupportedAnnotationTypes
SupportedAnnotationTypes sat = this.getClass().getAnnotation(SupportedAnnotationTypes.class);
if (sat != null) {
Arrays.stream(sat.value... |
public class class_name {
public void addWebSocketScope(WebSocketScope webSocketScope) {
String path = webSocketScope.getPath();
if (scopes.putIfAbsent(path, webSocketScope) == null) {
log.info("addWebSocketScope: {}", webSocketScope);
notifyListeners(WebSocketEvent.SCOPE_ADDED,... | public class class_name {
public void addWebSocketScope(WebSocketScope webSocketScope) {
String path = webSocketScope.getPath();
if (scopes.putIfAbsent(path, webSocketScope) == null) {
log.info("addWebSocketScope: {}", webSocketScope); // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public Set<String> getJobNames() {
if (authService == null || authService.isAdmin() || authService.isMonitor()) {
return persistenceManagerService.getJobNamesSet();
} else if (authService.isSubmitter()) {
return persistenceManagerService.... | public class class_name {
@Override
public Set<String> getJobNames() {
if (authService == null || authService.isAdmin() || authService.isMonitor()) {
return persistenceManagerService.getJobNamesSet(); // depends on control dependency: [if], data = [none]
} else if (authService.isSubmit... |
public class class_name {
protected void validateChildOrder() {
Log.d(TAG, "validating child count " + getChildCount());
if (getChildCount() < 1) {
return;
}
int lastPos = getPosition(getChildAt(0));
int lastScreenLoc = mOrientationHelper.getDecoratedStart(getChildAt... | public class class_name {
protected void validateChildOrder() {
Log.d(TAG, "validating child count " + getChildCount());
if (getChildCount() < 1) {
return; // depends on control dependency: [if], data = [none]
}
int lastPos = getPosition(getChildAt(0));
int lastScree... |
public class class_name {
public static boolean containsAny(boolean _ignoreCase, String _str, String... _args) {
if (_str == null || _args == null || _args.length == 0) {
return false;
}
String heystack = _str;
if (_ignoreCase) {
heystack = _str.toLowerCase();
... | public class class_name {
public static boolean containsAny(boolean _ignoreCase, String _str, String... _args) {
if (_str == null || _args == null || _args.length == 0) {
return false; // depends on control dependency: [if], data = [none]
}
String heystack = _str;
if (_ignor... |
public class class_name {
public static ZonedDateTime toNullableDateTime(Object value) {
if (value == null)
return null;
if (value instanceof ZonedDateTime)
return (ZonedDateTime) value;
if (value instanceof Calendar) {
Calendar calendar = (Calendar) value;
return ZonedDateTime.ofInstant(calendar.to... | public class class_name {
public static ZonedDateTime toNullableDateTime(Object value) {
if (value == null)
return null;
if (value instanceof ZonedDateTime)
return (ZonedDateTime) value;
if (value instanceof Calendar) {
Calendar calendar = (Calendar) value;
return ZonedDateTime.ofInstant(calendar.to... |
public class class_name {
public void addConverter(int index, IConverter converter) {
converterList.add(index, converter);
if (converter instanceof IContainerConverter) {
IContainerConverter containerConverter = (IContainerConverter) converter;
if (containerConverter.getElementConverter() == null) {
... | public class class_name {
public void addConverter(int index, IConverter converter) {
converterList.add(index, converter);
if (converter instanceof IContainerConverter) {
IContainerConverter containerConverter = (IContainerConverter) converter;
if (containerConverter.getElementConverter() == null) {
... |
public class class_name {
public boolean implicitlyCloseParentTagOnTagEnd(String parentNodeName, String nodeName) {
if (parentNodeName == null) {
return false;
}
parentNodeName = parentNodeName.toLowerCase();
nodeName = nodeName.toLowerCase();
for (int i = 0; i < IMPLIED_ON_END.length; i += 2) {
if (... | public class class_name {
public boolean implicitlyCloseParentTagOnTagEnd(String parentNodeName, String nodeName) {
if (parentNodeName == null) {
return false; // depends on control dependency: [if], data = [none]
}
parentNodeName = parentNodeName.toLowerCase();
nodeName = nodeName.toLowerCase();
for (i... |
public class class_name {
@Deprecated
public static boolean isOriginalURI(Node node, String uri) {
if (node.getUri().equals(uri)) {
return true;
}
if (node.hasProperty(APM_ORIGINAL_URI)) {
return node.getProperties(APM_ORIGINAL_URI).iterator().next().getValue().equal... | public class class_name {
@Deprecated
public static boolean isOriginalURI(Node node, String uri) {
if (node.getUri().equals(uri)) {
return true; // depends on control dependency: [if], data = [none]
}
if (node.hasProperty(APM_ORIGINAL_URI)) {
return node.getPropertie... |
public class class_name {
public void setGroupFlags(String groupFlags) {
try {
m_groupFlags = Integer.parseInt(groupFlags);
} catch (Throwable e) {
setThrowable(e);
}
} } | public class class_name {
public void setGroupFlags(String groupFlags) {
try {
m_groupFlags = Integer.parseInt(groupFlags); // depends on control dependency: [try], data = [none]
} catch (Throwable e) {
setThrowable(e);
} // depends on control dependency: [catch], data ... |
public class class_name {
public ObjectResult addNewObject(SpiderTransaction parentTran, DBObject dbObj) {
ObjectResult result = new ObjectResult();
try {
addBrandNewObject(dbObj);
result.setObjectID(dbObj.getObjectID());
result.setUpdated(true);
pa... | public class class_name {
public ObjectResult addNewObject(SpiderTransaction parentTran, DBObject dbObj) {
ObjectResult result = new ObjectResult();
try {
addBrandNewObject(dbObj);
// depends on control dependency: [try], data = [none]
result.setObjectID(dbObj.getObjectID())... |
public class class_name {
@SuppressFBWarnings("SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING")
protected void assignToUserObjectInDb(final Type _assignType,
final JAASSystem _jaasSystem,
final AbstractUserObject _object)... | public class class_name {
@SuppressFBWarnings("SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING")
protected void assignToUserObjectInDb(final Type _assignType,
final JAASSystem _jaasSystem,
final AbstractUserObject _object)... |
public class class_name {
public void marshall(ApplicationConfigurationDescription applicationConfigurationDescription, ProtocolMarshaller protocolMarshaller) {
if (applicationConfigurationDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(ApplicationConfigurationDescription applicationConfigurationDescription, ProtocolMarshaller protocolMarshaller) {
if (applicationConfigurationDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
public void mergeRelationInformation(TDRelation relation) {
if (relation.hasTags()) {
addTags(relation.getTags());
}
if (getName() == null && relation.getName() != null) {
setName(relation.getName());
}
if (getRef() == null && re... | public class class_name {
public void mergeRelationInformation(TDRelation relation) {
if (relation.hasTags()) {
addTags(relation.getTags()); // depends on control dependency: [if], data = [none]
}
if (getName() == null && relation.getName() != null) {
setName(relation.ge... |
public class class_name {
public Map<Object, String> getTrimToSize() {
if (m_trimToSize == null) {
m_trimToSize = CmsCollectionsGenericWrapper.createLazyMap(new CmsTrimToSizeTransformer());
}
return m_trimToSize;
} } | public class class_name {
public Map<Object, String> getTrimToSize() {
if (m_trimToSize == null) {
m_trimToSize = CmsCollectionsGenericWrapper.createLazyMap(new CmsTrimToSizeTransformer()); // depends on control dependency: [if], data = [none]
}
return m_trimToSize;
} } |
public class class_name {
private static void initialize()
{
double lFlen = 1.0f / (double)SPLINE_LUTLEN;
double lScale = (double)SPLINE_QUANTSCALE;
for(int i=0; i<SPLINE_LUTLEN; i++)
{
double lX = ((double)i)*lFlen;
int lIdx = i<<2;
double lCm1 = Math.floor(0.5 + lScale * (-0.5*lX*lX*lX + 1.0... | public class class_name {
private static void initialize()
{
double lFlen = 1.0f / (double)SPLINE_LUTLEN;
double lScale = (double)SPLINE_QUANTSCALE;
for(int i=0; i<SPLINE_LUTLEN; i++)
{
double lX = ((double)i)*lFlen;
int lIdx = i<<2;
double lCm1 = Math.floor(0.5 + lScale * (-0.5*lX*lX*lX + 1.0... |
public class class_name {
private void updatePaginationState(final SimplePager pager) {
for (int i = 0; i < getWidgetCount(); i++) {
if (i == 0) { //previous button
((AnchorListItem)getWidget(i)).setEnabled(pager.hasPreviousPage());
}
else if (i == getWidget... | public class class_name {
private void updatePaginationState(final SimplePager pager) {
for (int i = 0; i < getWidgetCount(); i++) {
if (i == 0) { //previous button
((AnchorListItem)getWidget(i)).setEnabled(pager.hasPreviousPage()); // depends on control dependency: [if], data = [(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.