code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static double cosineOrHaversineRad(double lat1, double lon1, double lat2, double lon2) {
if(lat1 == lat2 && lon1 == lon2) {
return 0.;
}
final DoubleWrapper tmp = new DoubleWrapper(); // To return cosine
final double slat1 = sinAndCos(lat1, tmp), clat1 = tmp.value... | public class class_name {
public static double cosineOrHaversineRad(double lat1, double lon1, double lat2, double lon2) {
if(lat1 == lat2 && lon1 == lon2) {
return 0.; // depends on control dependency: [if], data = [none]
}
final DoubleWrapper tmp = new DoubleWrapper(); // To return cosine
final ... |
public class class_name {
public synchronized CuratorFramework getLocalConnection() throws IOException
{
if ( localConnection == null )
{
CuratorFrameworkFactory.Builder builder = CuratorFrameworkFactory.builder()
.connectString("localhost:" + configManager.getConfig().g... | public class class_name {
public synchronized CuratorFramework getLocalConnection() throws IOException
{
if ( localConnection == null )
{
CuratorFrameworkFactory.Builder builder = CuratorFrameworkFactory.builder()
.connectString("localhost:" + configManager.getConfig().g... |
public class class_name {
private SecurityConstraint createSecurityConstraint(SecurityMetadata securityMetadataFromDD, List<WebResourceCollection> webResourceCollections,
HttpConstraintElement httpConstraint, boolean fromHttpConstraint) {
List<String> rol... | public class class_name {
private SecurityConstraint createSecurityConstraint(SecurityMetadata securityMetadataFromDD, List<WebResourceCollection> webResourceCollections,
HttpConstraintElement httpConstraint, boolean fromHttpConstraint) {
List<String> rol... |
public class class_name {
private void createProxies() {
source = createProxy(sourceType);
destination = createProxy(destinationType);
for (VisitedMapping mapping : visitedMappings) {
createAccessorProxies(source, mapping.sourceAccessors);
createAccessorProxies(destination, mapping.desti... | public class class_name {
private void createProxies() {
source = createProxy(sourceType);
destination = createProxy(destinationType);
for (VisitedMapping mapping : visitedMappings) {
createAccessorProxies(source, mapping.sourceAccessors);
// depends on control dependency: [for], data = [mappi... |
public class class_name {
public static double getPvalue(TransposeDataCollection transposeDataCollection) {
if(transposeDataCollection.size()!=2) {
throw new IllegalArgumentException("The collection must contain observations from 2 groups.");
}
Object[] keys = transposeData... | public class class_name {
public static double getPvalue(TransposeDataCollection transposeDataCollection) {
if(transposeDataCollection.size()!=2) {
throw new IllegalArgumentException("The collection must contain observations from 2 groups.");
}
Object[] keys = transposeData... |
public class class_name {
public static DataSource createDataSource(String source){
String typeAndConfig = configuration.getProperty(source);
if (typeAndConfig == null){
log.error("No configuration for data source: " + source);
return null;
}
String[] typeAndConfigArray = typeAndConfig.split(DELIMI... | public class class_name {
public static DataSource createDataSource(String source){
String typeAndConfig = configuration.getProperty(source);
if (typeAndConfig == null){
log.error("No configuration for data source: " + source);
// depends on control dependency: [if], data = [none]
return null;
// depend... |
public class class_name {
public static List<Field> getPersistableFields(Class<?> clazz) {
Field[] fields = clazz.getDeclaredFields();
List<Field> output = new ArrayList<>(fields.length);
for (Field field : fields) {
if (!(field.isAnnotationPresent(Ignore.class) || isStatic(field))) {
output.... | public class class_name {
public static List<Field> getPersistableFields(Class<?> clazz) {
Field[] fields = clazz.getDeclaredFields();
List<Field> output = new ArrayList<>(fields.length);
for (Field field : fields) {
if (!(field.isAnnotationPresent(Ignore.class) || isStatic(field))) {
output.... |
public class class_name {
public static final <T extends UIObject> void removeAnimationOnEnd(final T widget, final String animation) {
if (widget != null && animation != null) {
removeAnimationOnEnd(widget.getElement(), animation);
}
} } | public class class_name {
public static final <T extends UIObject> void removeAnimationOnEnd(final T widget, final String animation) {
if (widget != null && animation != null) {
removeAnimationOnEnd(widget.getElement(), animation); // depends on control dependency: [if], data = [(widget]
}
... |
public class class_name {
public void setDiskImages(java.util.Collection<DiskImage> diskImages) {
if (diskImages == null) {
this.diskImages = null;
return;
}
this.diskImages = new com.amazonaws.internal.SdkInternalList<DiskImage>(diskImages);
} } | public class class_name {
public void setDiskImages(java.util.Collection<DiskImage> diskImages) {
if (diskImages == null) {
this.diskImages = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this... |
public class class_name {
public String text2() {
StringBuilder text = new StringBuilder();
for (Change aDiff : getChangeList()) {
if (aDiff.operation != Operation.DELETE) {
text.append(aDiff.text);
}
}
return text.toString();
} } | public class class_name {
public String text2() {
StringBuilder text = new StringBuilder();
for (Change aDiff : getChangeList()) {
if (aDiff.operation != Operation.DELETE) {
text.append(aDiff.text); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public void setObserver(HttpOutputStreamObserver obs) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "obs ->" + obs);
}
this.obs = obs;
} } | public class class_name {
@Override
public void setObserver(HttpOutputStreamObserver obs) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "obs ->" + obs); // depends on control dependency: [if], data = [none]
}
this.obs = obs;
} } |
public class class_name {
public void putAllWriteable(BeanMap map) {
Iterator<String> readableKeys = map.readMethods.keySet().iterator();
while (readableKeys.hasNext()) {
String key = readableKeys.next();
if (getWriteMethod(key) != null) {
this.put(key, map.get(k... | public class class_name {
public void putAllWriteable(BeanMap map) {
Iterator<String> readableKeys = map.readMethods.keySet().iterator();
while (readableKeys.hasNext()) {
String key = readableKeys.next();
if (getWriteMethod(key) != null) {
this.put(key, map.get(k... |
public class class_name {
public java.util.List<TransitGatewayAttachment> getTransitGatewayAttachments() {
if (transitGatewayAttachments == null) {
transitGatewayAttachments = new com.amazonaws.internal.SdkInternalList<TransitGatewayAttachment>();
}
return transitGatewayAttachments;... | public class class_name {
public java.util.List<TransitGatewayAttachment> getTransitGatewayAttachments() {
if (transitGatewayAttachments == null) {
transitGatewayAttachments = new com.amazonaws.internal.SdkInternalList<TransitGatewayAttachment>(); // depends on control dependency: [if], data = [non... |
public class class_name {
public static Class<?> getTypeArgument(Class<?> clazz, Class<?> interfce) {
Map<Type, Type> resolvedTypes = new HashMap<Type, Type>();
Type type = clazz;
while (!declaresInterface(getClass(type), interfce)) {
if (type instanceof Class) {
type = ((Class<?>) type).getGenericSupe... | public class class_name {
public static Class<?> getTypeArgument(Class<?> clazz, Class<?> interfce) {
Map<Type, Type> resolvedTypes = new HashMap<Type, Type>();
Type type = clazz;
while (!declaresInterface(getClass(type), interfce)) {
if (type instanceof Class) {
type = ((Class<?>) type).getGenericSupe... |
public class class_name {
protected boolean shouldApplyThisRuleTo(ClassNode classNode) {
// TODO Consider caching applyTo, doNotApplyTo and associated WildcardPatterns
boolean shouldApply = true;
String applyTo = getApplyToClassNames();
String doNotApplyTo = getDoNotApplyToClassNa... | public class class_name {
protected boolean shouldApplyThisRuleTo(ClassNode classNode) {
// TODO Consider caching applyTo, doNotApplyTo and associated WildcardPatterns
boolean shouldApply = true;
String applyTo = getApplyToClassNames();
String doNotApplyTo = getDoNotApplyToClassNa... |
public class class_name {
public void marshall(GetConfigurationSetRequest getConfigurationSetRequest, ProtocolMarshaller protocolMarshaller) {
if (getConfigurationSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... | public class class_name {
public void marshall(GetConfigurationSetRequest getConfigurationSetRequest, ProtocolMarshaller protocolMarshaller) {
if (getConfigurationSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... |
public class class_name {
private static String checkImageStorage(URI sharedImage, URI sharedEdits) {
if (sharedImage.getScheme().equals(NNStorage.LOCAL_URI_SCHEME)) {
// shared image is stored in file storage
return "";
} else if (sharedImage.getScheme().equals(
QuorumJournalManager.QJM_UR... | public class class_name {
private static String checkImageStorage(URI sharedImage, URI sharedEdits) {
if (sharedImage.getScheme().equals(NNStorage.LOCAL_URI_SCHEME)) {
// shared image is stored in file storage
return ""; // depends on control dependency: [if], data = [none]
} else if (sharedImage.g... |
public class class_name {
public static <E extends Enum<E>> List<E> computeEnum(List<EnumItem<E>> roleTagList, TransformMatrixDictionary<E> transformMatrixDictionary)
{
int length = roleTagList.size() - 1;
List<E> tagList = new ArrayList<E>(roleTagList.size());
double[][] cost = new double[... | public class class_name {
public static <E extends Enum<E>> List<E> computeEnum(List<EnumItem<E>> roleTagList, TransformMatrixDictionary<E> transformMatrixDictionary)
{
int length = roleTagList.size() - 1;
List<E> tagList = new ArrayList<E>(roleTagList.size());
double[][] cost = new double[... |
public class class_name {
public <S extends Storable> void resync(Class<S> type,
ResyncCapability.Listener<? super S> listener,
double desiredSpeed,
String filter,
... | public class class_name {
public <S extends Storable> void resync(Class<S> type,
ResyncCapability.Listener<? super S> listener,
double desiredSpeed,
String filter,
... |
public class class_name {
public Task withContainers(Container... containers) {
if (this.containers == null) {
setContainers(new com.amazonaws.internal.SdkInternalList<Container>(containers.length));
}
for (Container ele : containers) {
this.containers.add(ele);
... | public class class_name {
public Task withContainers(Container... containers) {
if (this.containers == null) {
setContainers(new com.amazonaws.internal.SdkInternalList<Container>(containers.length)); // depends on control dependency: [if], data = [none]
}
for (Container ele : contai... |
public class class_name {
public void marshall(GetApiMappingRequest getApiMappingRequest, ProtocolMarshaller protocolMarshaller) {
if (getApiMappingRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(GetApiMappingRequest getApiMappingRequest, ProtocolMarshaller protocolMarshaller) {
if (getApiMappingRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
private void checkSubArray(byte[] test, byte[] data, int offset) {
Preconditions.checkArgument(data.length >= test.length + offset);
for (int i = 0; i < test.length; i++) {
Preconditions.checkArgument(test[i] == data[i + offset]);
}
} } | public class class_name {
private void checkSubArray(byte[] test, byte[] data, int offset) {
Preconditions.checkArgument(data.length >= test.length + offset);
for (int i = 0; i < test.length; i++) {
Preconditions.checkArgument(test[i] == data[i + offset]); // depends on control dependency: [for], data = ... |
public class class_name {
public SafeStyleBuilder fontFamilyAppend(String value, String... otherValues) {
sanitizeAndAppendToFontFamily(value);
for (String otherValue : otherValues) {
sanitizeAndAppendToFontFamily(otherValue);
}
return this;
} } | public class class_name {
public SafeStyleBuilder fontFamilyAppend(String value, String... otherValues) {
sanitizeAndAppendToFontFamily(value);
for (String otherValue : otherValues) {
sanitizeAndAppendToFontFamily(otherValue); // depends on control dependency: [for], data = [otherValue]
}
return ... |
public class class_name {
private static List<String> splitOuter(String str, char sepChr) {
List<String> result = new ArrayList<String>();
StringBuilder buffer = new StringBuilder();
int nesting = 0;
boolean bInQuote = false;
for (int index = 0; index < str.length(); index+... | public class class_name {
private static List<String> splitOuter(String str, char sepChr) {
List<String> result = new ArrayList<String>();
StringBuilder buffer = new StringBuilder();
int nesting = 0;
boolean bInQuote = false;
for (int index = 0; index < str.length(); index+... |
public class class_name {
public static NavigationAnimation createZoomIn(MapPresenter mapPresenter, Coordinate position) {
View endView = null;
int index = mapPresenter.getViewPort().getResolutionIndex(mapPresenter.getViewPort().getResolution());
if (index < mapPresenter.getViewPort().getResolutionCount() - 1) {... | public class class_name {
public static NavigationAnimation createZoomIn(MapPresenter mapPresenter, Coordinate position) {
View endView = null;
int index = mapPresenter.getViewPort().getResolutionIndex(mapPresenter.getViewPort().getResolution());
if (index < mapPresenter.getViewPort().getResolutionCount() - 1) {... |
public class class_name {
public final boolean addExpirable(Expirable expirable) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "addExpirable",
"objId="
+ (expirable ==... | public class class_name {
public final boolean addExpirable(Expirable expirable) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "addExpirable",
"objId="
+ (expirable ==... |
public class class_name {
@Override
protected Tile retrieveTile(int x, int y, int zoom) {
Tile tile = null;
for (BoundedOverlay overlay : overlays) {
tile = overlay.retrieveTile(x, y, zoom);
if (tile != null) {
break;
}
}
return ti... | public class class_name {
@Override
protected Tile retrieveTile(int x, int y, int zoom) {
Tile tile = null;
for (BoundedOverlay overlay : overlays) {
tile = overlay.retrieveTile(x, y, zoom); // depends on control dependency: [for], data = [overlay]
if (tile != null) {
... |
public class class_name {
public Double linearInterpolateY( Double xValue ) {
Double first = xList.get(0);
Double last = xList.get(xList.size() - 1);
// check out of range
if (first <= last) {
if (xValue < xList.get(0) || xValue > xList.get(xList.size() - 1)) {
... | public class class_name {
public Double linearInterpolateY( Double xValue ) {
Double first = xList.get(0);
Double last = xList.get(xList.size() - 1);
// check out of range
if (first <= last) {
if (xValue < xList.get(0) || xValue > xList.get(xList.size() - 1)) {
... |
public class class_name {
public RESTResponse call(RESTClient restClient){
String methodName = getMethod();
String uri = getURI();
StringBuilder uriBuilder = new StringBuilder(Utils.isEmpty(restClient.getApiPrefix()) ? "" : "/" + restClient.getApiPrefix());
uriBuilder.a... | public class class_name {
public RESTResponse call(RESTClient restClient){
String methodName = getMethod();
String uri = getURI();
StringBuilder uriBuilder = new StringBuilder(Utils.isEmpty(restClient.getApiPrefix()) ? "" : "/" + restClient.getApiPrefix());
uriBuilder.a... |
public class class_name {
public static List<String> findSchemas(JdbcTemplate jdbcTemplate, final String schemaPattern,
final DdlSchemaFilter ddlSchemaFilter) {
List<String> schemas = findSchemas(jdbcTemplate, schemaPattern);
if (ddlSchemaFilter == null) {
... | public class class_name {
public static List<String> findSchemas(JdbcTemplate jdbcTemplate, final String schemaPattern,
final DdlSchemaFilter ddlSchemaFilter) {
List<String> schemas = findSchemas(jdbcTemplate, schemaPattern);
if (ddlSchemaFilter == null) {
... |
public class class_name {
public Map<Integer, Integer> getDegreeDistribution() {
if (degreeDistribution == null) { // has not been initialized
logger.debug("Calling setGraphParameters");
setGraphParameters();
}
return degreeDistribution;
} } | public class class_name {
public Map<Integer, Integer> getDegreeDistribution() {
if (degreeDistribution == null) { // has not been initialized
logger.debug("Calling setGraphParameters"); // depends on control dependency: [if], data = [none]
setGraphParameters(); // depends on control... |
public class class_name {
private boolean isDependent(String style) {
if (!style.trim().startsWith("<")) {
return false;
}
Pattern p = Pattern.compile("rel\\s*=\\s*\"\\s*independent-parent\\s*\"");
Matcher m = p.matcher(style);
return m.find();
} } | public class class_name {
private boolean isDependent(String style) {
if (!style.trim().startsWith("<")) {
return false; // depends on control dependency: [if], data = [none]
}
Pattern p = Pattern.compile("rel\\s*=\\s*\"\\s*independent-parent\\s*\"");
Matcher m = p.matcher(style);
return m.find();
} } |
public class class_name {
private void fireChangeFromNative() {
// skip firing the change event, if the external flag is set
if (m_initialized && !m_externalValueChange && m_active) {
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
... | public class class_name {
private void fireChangeFromNative() {
// skip firing the change event, if the external flag is set
if (m_initialized && !m_externalValueChange && m_active) {
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
... |
public class class_name {
public static Version getSpecificationVersionFor(Class<?> type)
{
Assert.notNull(type, "Type must not be null.");
final Version result;
Package pkg = type.getPackage();
if (pkg == null)
{
result = EmptyVersion.getInstance();
}
else
{... | public class class_name {
public static Version getSpecificationVersionFor(Class<?> type)
{
Assert.notNull(type, "Type must not be null.");
final Version result;
Package pkg = type.getPackage();
if (pkg == null)
{
result = EmptyVersion.getInstance(); // depends on control depe... |
public class class_name {
public String formatISO(
IsoDateStyle dateStyle,
IsoDecimalStyle decimalStyle,
ClockUnit precision,
ZonalOffset offset,
InfinityStyle infinityStyle
) {
MomentInterval interval = this.toCanonical();
StringBuilder buffer = new StringB... | public class class_name {
public String formatISO(
IsoDateStyle dateStyle,
IsoDecimalStyle decimalStyle,
ClockUnit precision,
ZonalOffset offset,
InfinityStyle infinityStyle
) {
MomentInterval interval = this.toCanonical();
StringBuilder buffer = new StringB... |
public class class_name {
@Override
public void delete(DbSession dbSession, Collection<QProfileDto> profiles) {
if (profiles.isEmpty()) {
return;
}
Set<String> uuids = new HashSet<>();
List<QProfileDto> customProfiles = new ArrayList<>();
Set<String> rulesProfileUuidsOfCustomProfiles = new... | public class class_name {
@Override
public void delete(DbSession dbSession, Collection<QProfileDto> profiles) {
if (profiles.isEmpty()) {
return; // depends on control dependency: [if], data = [none]
}
Set<String> uuids = new HashSet<>();
List<QProfileDto> customProfiles = new ArrayList<>();
... |
public class class_name {
@Override
public MediaPicture toPicture(MediaPicture output,
final BufferedImage input, long timestamp) {
// validate the image
validateImage(input);
if (output == null) {
output = MediaPicture.make(mPictureWidth,
mPictureHeight, getPictureType());
... | public class class_name {
@Override
public MediaPicture toPicture(MediaPicture output,
final BufferedImage input, long timestamp) {
// validate the image
validateImage(input);
if (output == null) {
output = MediaPicture.make(mPictureWidth,
mPictureHeight, getPictureType()); //... |
public class class_name {
@SuppressWarnings("unchecked")
@Override
public Object commit(long batchId, Object state) {
List<Object> stateList = (List<Object>) state;
if (stateOperator != null) {
Object commitState = stateOperator.commit(batchId, stateList);
stateList.add(... | public class class_name {
@SuppressWarnings("unchecked")
@Override
public Object commit(long batchId, Object state) {
List<Object> stateList = (List<Object>) state;
if (stateOperator != null) {
Object commitState = stateOperator.commit(batchId, stateList);
stateList.add(... |
public class class_name {
public org.openprovenance.prov.model.Value getValue() {
if (value==null) {
if (all!=null) { // TODO: inefficient, I search this list every time getValue is called, though there may be no value
for (Attribute attr: all) {
if (attr instanceof org.openprovenance.prov.... | public class class_name {
public org.openprovenance.prov.model.Value getValue() {
if (value==null) {
if (all!=null) { // TODO: inefficient, I search this list every time getValue is called, though there may be no value
for (Attribute attr: all) {
if (attr instanceof org.openprovenance.prov.... |
public class class_name {
public static Object invoke(Class<?> returnType, String className, String methodName) {
// If we have an explicit implementation for this method, invoke it
if (STUB_METHODS.containsKey(new ClassAndMethod(className, methodName))) {
return STUB_METHODS.get(new ClassAndMethod(class... | public class class_name {
public static Object invoke(Class<?> returnType, String className, String methodName) {
// If we have an explicit implementation for this method, invoke it
if (STUB_METHODS.containsKey(new ClassAndMethod(className, methodName))) {
return STUB_METHODS.get(new ClassAndMethod(class... |
public class class_name {
protected void processResource(Row row)
{
Integer uniqueID = row.getInteger("RES_UID");
if (uniqueID != null && uniqueID.intValue() >= 0)
{
Resource resource = m_project.addResource();
resource.setAccrueAt(AccrueType.getInstance(row.getInt("RES_ACCRUE_AT... | public class class_name {
protected void processResource(Row row)
{
Integer uniqueID = row.getInteger("RES_UID");
if (uniqueID != null && uniqueID.intValue() >= 0)
{
Resource resource = m_project.addResource();
resource.setAccrueAt(AccrueType.getInstance(row.getInt("RES_ACCRUE_AT... |
public class class_name {
public void marshall(Resource resource, ProtocolMarshaller protocolMarshaller) {
if (resource == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(resource.getName(), NAME_BIN... | public class class_name {
public void marshall(Resource resource, ProtocolMarshaller protocolMarshaller) {
if (resource == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(resource.getName(), NAME_BIN... |
public class class_name {
private void downloadOneChunk(String accountId, String vaultName,
String jobId, RandomAccessFile output, long currentPosition,
long endPosition, ProgressListener progressListener) {
final long chunkSize = endPosition - currentPosition + 1;
TreeHashInput... | public class class_name {
private void downloadOneChunk(String accountId, String vaultName,
String jobId, RandomAccessFile output, long currentPosition,
long endPosition, ProgressListener progressListener) {
final long chunkSize = endPosition - currentPosition + 1;
TreeHashInput... |
public class class_name {
protected synchronized void restore() {
try {
SharedPreferences prefs = WonderPushConfiguration.getSharedPreferences();
String jsonString = prefs.getString(getPrefName(), "[]");
JSONArray jsonArray = new JSONArray(jsonString);
mQueue.cl... | public class class_name {
protected synchronized void restore() {
try {
SharedPreferences prefs = WonderPushConfiguration.getSharedPreferences();
String jsonString = prefs.getString(getPrefName(), "[]");
JSONArray jsonArray = new JSONArray(jsonString);
mQueue.cl... |
public class class_name {
public ListenableFuture<?> reserve(QueryId queryId, String allocationTag, long bytes)
{
checkArgument(bytes >= 0, "bytes is negative");
ListenableFuture<?> result;
synchronized (this) {
if (bytes != 0) {
queryMemoryReservations.merge(qu... | public class class_name {
public ListenableFuture<?> reserve(QueryId queryId, String allocationTag, long bytes)
{
checkArgument(bytes >= 0, "bytes is negative");
ListenableFuture<?> result;
synchronized (this) {
if (bytes != 0) {
queryMemoryReservations.merge(qu... |
public class class_name {
private HttpHandler configureUndertow(Configuration configuration, Undertow.Builder builder, HttpHandler rootHandler, URL undertowResource) {
try {
if (jaxb == null) {
// we don't want static references here
jaxb = JAXBContext.newInstance("o... | public class class_name {
private HttpHandler configureUndertow(Configuration configuration, Undertow.Builder builder, HttpHandler rootHandler, URL undertowResource) {
try {
if (jaxb == null) {
// we don't want static references here
jaxb = JAXBContext.newInstance("o... |
public class class_name {
public static Constructor<?>[] getAllConstructorsOfClass(final Class<?> clazz, boolean accessible) {
if (clazz == null) {
return null;
}
Constructor<?>[] constructors = clazz.getDeclaredConstructors();
if (constructors != null && constructors.length... | public class class_name {
public static Constructor<?>[] getAllConstructorsOfClass(final Class<?> clazz, boolean accessible) {
if (clazz == null) {
return null; // depends on control dependency: [if], data = [none]
}
Constructor<?>[] constructors = clazz.getDeclaredConstructors();
... |
public class class_name {
@SuppressWarnings("unchecked")
protected void handleGroupPrincipalCallback(GroupPrincipalCallback callback) throws CustomRegistryException, EntryNotFoundException, RemoteException {
Subject clientSubject = callback.getSubject();
Hashtable<String, Object> credData = null;
... | public class class_name {
@SuppressWarnings("unchecked")
protected void handleGroupPrincipalCallback(GroupPrincipalCallback callback) throws CustomRegistryException, EntryNotFoundException, RemoteException {
Subject clientSubject = callback.getSubject();
Hashtable<String, Object> credData = null;
... |
public class class_name {
public double getSolution(double targetValue, double initGuess) {
double rMax = 1.0;
double oldValue = -1;
for (int i = 0; i < MAXIMUM_ITERATION; ++i) {
double value = targetFunction(rMax);
if (value >= targetValue) {
break;
}
if (equals(value, oldV... | public class class_name {
public double getSolution(double targetValue, double initGuess) {
double rMax = 1.0;
double oldValue = -1;
for (int i = 0; i < MAXIMUM_ITERATION; ++i) {
double value = targetFunction(rMax);
if (value >= targetValue) {
break;
}
if (equals(value, oldV... |
public class class_name {
public static void rcvXA_getTxTimeout(CommsByteBuffer request, Conversation conversation,
int requestNumber, boolean allocatedFromBufferPool,
boolean partOfExchange)
{
if (TraceComponent.isAnyTracingEna... | public class class_name {
public static void rcvXA_getTxTimeout(CommsByteBuffer request, Conversation conversation,
int requestNumber, boolean allocatedFromBufferPool,
boolean partOfExchange)
{
if (TraceComponent.isAnyTracingEna... |
public class class_name {
public void marshall(Input input, ProtocolMarshaller protocolMarshaller) {
if (input == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(input.getNamePrefix(), NAMEPREFIX_BIN... | public class class_name {
public void marshall(Input input, ProtocolMarshaller protocolMarshaller) {
if (input == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(input.getNamePrefix(), NAMEPREFIX_BIN... |
public class class_name {
private UnicodeSet getEquivalentDecimals(String decimal, boolean strictParse) {
UnicodeSet equivSet = UnicodeSet.EMPTY;
if (strictParse) {
if (strictDotEquivalents.contains(decimal)) {
equivSet = strictDotEquivalents;
} else if (strictCo... | public class class_name {
private UnicodeSet getEquivalentDecimals(String decimal, boolean strictParse) {
UnicodeSet equivSet = UnicodeSet.EMPTY;
if (strictParse) {
if (strictDotEquivalents.contains(decimal)) {
equivSet = strictDotEquivalents; // depends on control dependenc... |
public class class_name {
protected static synchronized long nextGlobalId() {
long newIdentifier = System.nanoTime();
while (newIdentifier <= currentIdentifier) {
newIdentifier = System.nanoTime();
}
currentIdentifier = newIdentifier;
return newIdentifier;
} } | public class class_name {
protected static synchronized long nextGlobalId() {
long newIdentifier = System.nanoTime();
while (newIdentifier <= currentIdentifier) {
newIdentifier = System.nanoTime(); // depends on control dependency: [while], data = [none]
}
currentIdentifier = newIdentifier;
... |
public class class_name {
public List<InMemoryHistoryNode> getMetrics(final String metricName, final Date from,
final Date to,
final Boolean useStats) throws ClassCastException {
final LinkedList<InMemoryHistoryNode> selectedLists = new LinkedList<>();
if (this.historyListMapping.containsKey(metric... | public class class_name {
public List<InMemoryHistoryNode> getMetrics(final String metricName, final Date from,
final Date to,
final Boolean useStats) throws ClassCastException {
final LinkedList<InMemoryHistoryNode> selectedLists = new LinkedList<>();
if (this.historyListMapping.containsKey(metric... |
public class class_name {
public EnumSet<Script.VerifyFlag> getTransactionVerificationFlags(final Block block,
final Transaction transaction, final VersionTally tally, final Integer height) {
final EnumSet<Script.VerifyFlag> verifyFlags = EnumSet.noneOf(Script.VerifyFlag.class);
if (block.g... | public class class_name {
public EnumSet<Script.VerifyFlag> getTransactionVerificationFlags(final Block block,
final Transaction transaction, final VersionTally tally, final Integer height) {
final EnumSet<Script.VerifyFlag> verifyFlags = EnumSet.noneOf(Script.VerifyFlag.class);
if (block.g... |
public class class_name {
public void execute(Reader reader) {
try {
pushShell(this);
LineNumberReader lnr = new LineNumberReader(reader);
while (!m_exitCalled) {
String line = lnr.readLine();
if (m_interactive || m_echo) {
... | public class class_name {
public void execute(Reader reader) {
try {
pushShell(this); // depends on control dependency: [try], data = [none]
LineNumberReader lnr = new LineNumberReader(reader);
while (!m_exitCalled) {
String line = lnr.readLine();
... |
public class class_name {
public static String getSpaces( int SpacesCount ) {
//
if ( SpacesCount < 0 ) return "?";
//
String Info = "";
//
for ( int K = 1; K <= SpacesCount; K ++ ) {
Info += " ";
}
//
//
return Info;
} } | public class class_name {
public static String getSpaces( int SpacesCount ) {
//
if ( SpacesCount < 0 ) return "?";
//
String Info = "";
//
for ( int K = 1; K <= SpacesCount; K ++ ) {
Info += " "; // depends on control dependency: [for], data = [none]
}
//
//
return Info;
} } |
public class class_name {
public void marshall(GetSearchSuggestionsRequest getSearchSuggestionsRequest, ProtocolMarshaller protocolMarshaller) {
if (getSearchSuggestionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(GetSearchSuggestionsRequest getSearchSuggestionsRequest, ProtocolMarshaller protocolMarshaller) {
if (getSearchSuggestionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public void setIoSession(IoSession protocolSession) {
SocketAddress remote = protocolSession.getRemoteAddress();
if (remote instanceof InetSocketAddress) {
remoteAddress = ((InetSocketAddress) remote).getAddress().getHostAddress();
remotePort = ((In... | public class class_name {
public void setIoSession(IoSession protocolSession) {
SocketAddress remote = protocolSession.getRemoteAddress();
if (remote instanceof InetSocketAddress) {
remoteAddress = ((InetSocketAddress) remote).getAddress().getHostAddress();
// depends on control depende... |
public class class_name {
public Pooled<T> get(LogTarget lt) throws APIException {
Pooled<T> pt;
synchronized (list) {
if (list.isEmpty()) {
pt = null;
} else {
pt = list.remove();
--count;
creator.reuse(pt.content);
}
}
if (pt == null) {
if (spares < max_range)
++spares;
pt ... | public class class_name {
public Pooled<T> get(LogTarget lt) throws APIException {
Pooled<T> pt;
synchronized (list) {
if (list.isEmpty()) {
pt = null; // depends on control dependency: [if], data = [none]
} else {
pt = list.remove(); // depends on control dependency: [if], data = [none]
--count;... |
public class class_name {
protected void unsetJaasLoginContextEntry(ServiceReference<com.ibm.ws.security.jaas.common.JAASLoginContextEntry> svc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "unsetJaasLoginContextEntry", svc);
}
jaasLoginCon... | public class class_name {
protected void unsetJaasLoginContextEntry(ServiceReference<com.ibm.ws.security.jaas.common.JAASLoginContextEntry> svc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "unsetJaasLoginContextEntry", svc); // depends on control dependen... |
public class class_name {
private static boolean isVMMultidexCapable() {
boolean isMultidexCapable = false;
String vmVersion = System.getProperty("java.vm.version");
try {
Matcher matcher = Pattern.compile("(\\d+)\\.(\\d+)(\\.\\d+)?").matcher(vmVersion);
if (matcher.matc... | public class class_name {
private static boolean isVMMultidexCapable() {
boolean isMultidexCapable = false;
String vmVersion = System.getProperty("java.vm.version");
try {
Matcher matcher = Pattern.compile("(\\d+)\\.(\\d+)(\\.\\d+)?").matcher(vmVersion);
if (matcher.matc... |
public class class_name {
public String render(String template, Object... args) {
try {
ITemplate t = getTemplate(template, args);
return t.render();
} finally {
renderCleanUp();
}
} } | public class class_name {
public String render(String template, Object... args) {
try {
ITemplate t = getTemplate(template, args);
return t.render(); // depends on control dependency: [try], data = [none]
} finally {
renderCleanUp();
}
} } |
public class class_name {
@Override
public boolean fileExists(String pRelativePath) {
String paths[] = this.getFilePaths();
for (String s : paths) {
if (s.equals(pRelativePath)) {
return true;
}
}
return false;
} } | public class class_name {
@Override
public boolean fileExists(String pRelativePath) {
String paths[] = this.getFilePaths();
for (String s : paths) {
if (s.equals(pRelativePath)) {
return true; // depends on control dependency: [if], data = [none]
}
}
... |
public class class_name {
protected void notifyClose(ProxyQueue queue)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notifyClose", queue);
try
{
final short id = queue.getId();
idAllocator.releaseId(id);
//Remove the id from th... | public class class_name {
protected void notifyClose(ProxyQueue queue)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notifyClose", queue);
try
{
final short id = queue.getId();
idAllocator.releaseId(id); // depends on control dependency: [try], d... |
public class class_name {
public static boolean deleteDir(File dirFile) {
if (!dirFile.exists()) {
return false;
}
if (dirFile.isFile()) {
return dirFile.delete();
} else {
File[] files = dirFile.listFiles();
if (files == null || files.le... | public class class_name {
public static boolean deleteDir(File dirFile) {
if (!dirFile.exists()) {
return false; // depends on control dependency: [if], data = [none]
}
if (dirFile.isFile()) {
return dirFile.delete(); // depends on control dependency: [if], data = [none... |
public class class_name {
private void createOrUpdateTable(String tablename, HTableDescriptor hTableDescriptor)
{
try
{
if (admin.isTableAvailable(tablename))
{
admin.modifyTable(tablename, hTableDescriptor);
}
else
{
... | public class class_name {
private void createOrUpdateTable(String tablename, HTableDescriptor hTableDescriptor)
{
try
{
if (admin.isTableAvailable(tablename))
{
admin.modifyTable(tablename, hTableDescriptor); // depends on control dependency: [if], data = [no... |
public class class_name {
@GET
@Produces(MediaType.APPLICATION_JSON)
public Response getStatistics(@QueryParam("selectLang") String locale) {
List<StatisticRepresentation> listResult = new ArrayList<>();
// select "All"
if (StringUtils.isBlank(locale)) {
List<LocaleRepresentation> availableLocales = localeF... | public class class_name {
@GET
@Produces(MediaType.APPLICATION_JSON)
public Response getStatistics(@QueryParam("selectLang") String locale) {
List<StatisticRepresentation> listResult = new ArrayList<>();
// select "All"
if (StringUtils.isBlank(locale)) {
List<LocaleRepresentation> availableLocales = localeF... |
public class class_name {
public List<StructureInterfaceCluster> getClusters(double contactOverlapScoreClusterCutoff) {
if (clusters!=null) {
return clusters;
}
clusters = new ArrayList<>();
// nothing to do if we have no interfaces
if (list.size()==0) return clusters;
double[][] matrix = new double[... | public class class_name {
public List<StructureInterfaceCluster> getClusters(double contactOverlapScoreClusterCutoff) {
if (clusters!=null) {
return clusters; // depends on control dependency: [if], data = [none]
}
clusters = new ArrayList<>();
// nothing to do if we have no interfaces
if (list.size()==... |
public class class_name {
public String findCmisName( String jcrName ) {
for (int i = 0; i < list.size(); i++) {
if (list.get(i).jcrName != null && list.get(i).jcrName.equals(jcrName)) {
return list.get(i).cmisName;
}
}
return jcrName;
} } | public class class_name {
public String findCmisName( String jcrName ) {
for (int i = 0; i < list.size(); i++) {
if (list.get(i).jcrName != null && list.get(i).jcrName.equals(jcrName)) {
return list.get(i).cmisName; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
protected void sendEntryModifiedEvent(CacheEntryEvent<T> event)
{
for (org.xwiki.cache.event.CacheEntryListener<T> listener : this.cacheEntryListeners
.getListeners(org.xwiki.cache.event.CacheEntryListener.class)) {
listener.cacheEntryModified(event);
... | public class class_name {
protected void sendEntryModifiedEvent(CacheEntryEvent<T> event)
{
for (org.xwiki.cache.event.CacheEntryListener<T> listener : this.cacheEntryListeners
.getListeners(org.xwiki.cache.event.CacheEntryListener.class)) {
listener.cacheEntryModified(event); // de... |
public class class_name {
public static List<Tuple> extractTuplesFromObject(Object obj) {
if ( obj instanceof Iterable ) {
Iterable<?> it = (Iterable) obj;
return StreamSupport.stream( it.spliterator(), false )
.map( TupleExtractor::extractFromObject )
.collect( Collectors.toList() );
}
Tuple tup... | public class class_name {
public static List<Tuple> extractTuplesFromObject(Object obj) {
if ( obj instanceof Iterable ) {
Iterable<?> it = (Iterable) obj;
return StreamSupport.stream( it.spliterator(), false )
.map( TupleExtractor::extractFromObject )
.collect( Collectors.toList() ); // depends on c... |
public class class_name {
protected void flow(Env<AttrContext> env, Queue<Env<AttrContext>> results) {
if (compileStates.isDone(env, CompileState.FLOW)) {
results.add(env);
return;
}
try {
if (shouldStop(CompileState.FLOW))
return;
... | public class class_name {
protected void flow(Env<AttrContext> env, Queue<Env<AttrContext>> results) {
if (compileStates.isDone(env, CompileState.FLOW)) {
results.add(env); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
public int read()
{
if (_length <= _offset) {
if (_head == null)
return -1;
TempCharBuffer next = _head.getNext();
if (_isFree)
TempCharBuffer.free(_head);
_head = next;
if (_head == null)
return -1;
_buffer = _head.bu... | public class class_name {
public int read()
{
if (_length <= _offset) {
if (_head == null)
return -1;
TempCharBuffer next = _head.getNext();
if (_isFree)
TempCharBuffer.free(_head);
_head = next; // depends on control dependency: [if], data = [none]
if (_head == nu... |
public class class_name {
public Task<Void> remove(final CacheKey key) {
Preconditions.checkNotNull(key);
mStagingArea.remove(key);
try {
return Task.call(
new Callable<Void>() {
@Override
public Void call() throws Exception {
try {
if (... | public class class_name {
public Task<Void> remove(final CacheKey key) {
Preconditions.checkNotNull(key);
mStagingArea.remove(key);
try {
return Task.call(
new Callable<Void>() {
@Override
public Void call() throws Exception {
try {
if (... |
public class class_name {
public void replot() {
width = co.size();
height = (int) Math.ceil(width * .2);
ratio = width / (double) height;
height = height < MIN_HEIGHT ? MIN_HEIGHT : height > MAX_HEIGHT ? MAX_HEIGHT : height;
if(scale == null) {
scale = computeScale(co);
}
BufferedIm... | public class class_name {
public void replot() {
width = co.size();
height = (int) Math.ceil(width * .2);
ratio = width / (double) height;
height = height < MIN_HEIGHT ? MIN_HEIGHT : height > MAX_HEIGHT ? MAX_HEIGHT : height;
if(scale == null) {
scale = computeScale(co); // depends on control... |
public class class_name {
public <T> void generateFromStringTemplate(T model, String[] parameters, FileObject fileObject, String content) throws IOException {
if (fileObject.getName().endsWith(SOURCE_SUFFIX)) {
TypeDef newModel = createTypeFromTemplate(model, parameters, content);
if (... | public class class_name {
public <T> void generateFromStringTemplate(T model, String[] parameters, FileObject fileObject, String content) throws IOException {
if (fileObject.getName().endsWith(SOURCE_SUFFIX)) {
TypeDef newModel = createTypeFromTemplate(model, parameters, content);
if (... |
public class class_name {
public void deleteObjects(Collection objects)
{
for (Iterator iterator = objects.iterator(); iterator.hasNext();)
{
getDatabase().deletePersistent(iterator.next());
}
} } | public class class_name {
public void deleteObjects(Collection objects)
{
for (Iterator iterator = objects.iterator(); iterator.hasNext();)
{
getDatabase().deletePersistent(iterator.next());
// depends on control dependency: [for], data = [iterator]
}
} } |
public class class_name {
public ToStringBuilder append(String name, Map<?, ?> map) {
StringBuilder sb = new StringBuilder(START_OBJ);
for (Map.Entry<?, ?> entry : map.entrySet()) {
sb.append(entry.getKey()).append(FIELD_VALUE_SEPARATOR).append(formatValue(entry.getValue()));
}
sb.append(END_OBJ);
retur... | public class class_name {
public ToStringBuilder append(String name, Map<?, ?> map) {
StringBuilder sb = new StringBuilder(START_OBJ);
for (Map.Entry<?, ?> entry : map.entrySet()) {
sb.append(entry.getKey()).append(FIELD_VALUE_SEPARATOR).append(formatValue(entry.getValue())); // depends on control dependency: [... |
public class class_name {
private SshConnection connect() {
if (sshConnection != null && sshConnection.isConnected()) {
return sshConnection;
}
while (!shutdownInProgress) {
SshConnection ssh = null;
try {
logger.debug("Connecting...");
... | public class class_name {
private SshConnection connect() {
if (sshConnection != null && sshConnection.isConnected()) {
return sshConnection; // depends on control dependency: [if], data = [none]
}
while (!shutdownInProgress) {
SshConnection ssh = null;
try {... |
public class class_name {
public static String regexFlags(final int flags) {
int processedFlags = flags;
StringBuilder buf = new StringBuilder();
for (int i = 0; i < FLAG_LOOKUP.length; i++) {
if ((processedFlags & FLAG_LOOKUP[i]) > 0) {
buf.append((char) i);
... | public class class_name {
public static String regexFlags(final int flags) {
int processedFlags = flags;
StringBuilder buf = new StringBuilder();
for (int i = 0; i < FLAG_LOOKUP.length; i++) {
if ((processedFlags & FLAG_LOOKUP[i]) > 0) {
buf.append((char) i); // dep... |
public class class_name {
public static final void fileDump(String fileName, byte[] data)
{
try
{
FileOutputStream os = new FileOutputStream(fileName);
os.write(data);
os.close();
}
catch (IOException ex)
{
ex.printStackTrace();
}
} } | public class class_name {
public static final void fileDump(String fileName, byte[] data)
{
try
{
FileOutputStream os = new FileOutputStream(fileName);
os.write(data); // depends on control dependency: [try], data = [none]
os.close(); // depends on control dependency: [try], d... |
public class class_name {
public static void registerLogger(final Class<? extends LoggerFactory> factoryClass) {
if (loggerFactory == null) {
FACTORIES.add(0, factoryClass.getName());
} else {
throw new IllegalStateException("LoggerImplFactory must be registered before logging i... | public class class_name {
public static void registerLogger(final Class<? extends LoggerFactory> factoryClass) {
if (loggerFactory == null) {
FACTORIES.add(0, factoryClass.getName()); // depends on control dependency: [if], data = [none]
} else {
throw new IllegalStateException(... |
public class class_name {
public CompositeByteBuf discardReadComponents() {
ensureAccessible();
final int readerIndex = readerIndex();
if (readerIndex == 0) {
return this;
}
// Discard everything if (readerIndex = writerIndex = capacity).
int writerIndex = w... | public class class_name {
public CompositeByteBuf discardReadComponents() {
ensureAccessible();
final int readerIndex = readerIndex();
if (readerIndex == 0) {
return this; // depends on control dependency: [if], data = [none]
}
// Discard everything if (readerIndex ... |
public class class_name {
@Override
public EEnum getIfcElectricGeneratorTypeEnum() {
if (ifcElectricGeneratorTypeEnumEEnum == null) {
ifcElectricGeneratorTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(977);
}
return ifcElectricGeneratorTy... | public class class_name {
@Override
public EEnum getIfcElectricGeneratorTypeEnum() {
if (ifcElectricGeneratorTypeEnumEEnum == null) {
ifcElectricGeneratorTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(977);
// depends on control dependency: [i... |
public class class_name {
public int guessOrderFromAngle(double threshold, int maxOrder) {
double bestDelta = threshold;
int bestOrder = 1;
for (int order = 2; order < maxOrder; order++) {
double delta = Math.abs(2 * Math.PI / order - theta);
if (delta < bestDelta) {
bestOrder = order;
bestDelta = ... | public class class_name {
public int guessOrderFromAngle(double threshold, int maxOrder) {
double bestDelta = threshold;
int bestOrder = 1;
for (int order = 2; order < maxOrder; order++) {
double delta = Math.abs(2 * Math.PI / order - theta);
if (delta < bestDelta) {
bestOrder = order; // depends on co... |
public class class_name {
@Override
public void paint(Graphics g, Shape allocation) {
Rectangle r = (allocation instanceof Rectangle) ? (Rectangle) allocation : allocation.getBounds();
Color oldColor = g.getColor();
Integer lineNumber = getLineNumber();
Color highlightColor = highl... | public class class_name {
@Override
public void paint(Graphics g, Shape allocation) {
Rectangle r = (allocation instanceof Rectangle) ? (Rectangle) allocation : allocation.getBounds();
Color oldColor = g.getColor();
Integer lineNumber = getLineNumber();
Color highlightColor = highl... |
public class class_name {
public static <T, E extends Throwable> List<T> filter(List<T> coll, APredicate<? super T, E> pred) throws E {
final List<T> result = createEmptyListOfType (coll, false);
for(T o: coll) {
if(pred.apply(o)) {
result.add(o);
}
}
... | public class class_name {
public static <T, E extends Throwable> List<T> filter(List<T> coll, APredicate<? super T, E> pred) throws E {
final List<T> result = createEmptyListOfType (coll, false);
for(T o: coll) {
if(pred.apply(o)) {
result.add(o); // depends on control depen... |
public class class_name {
private void validateTypeAnnotations(Node n, JSDocInfo info) {
if (info != null && info.hasType()) {
boolean valid = false;
switch (n.getToken()) {
// Function declarations are valid
case FUNCTION:
valid = NodeUtil.isFunctionDeclaration(n);
... | public class class_name {
private void validateTypeAnnotations(Node n, JSDocInfo info) {
if (info != null && info.hasType()) {
boolean valid = false;
switch (n.getToken()) { // depends on control dependency: [if], data = [none]
// Function declarations are valid
case FUNCTION:
... |
public class class_name {
private static List<DiscoveryIncomingMessage> collectIncomingMessages(int pTimeout, List<Future<List<DiscoveryIncomingMessage>>> pFutures, LogHandler pLogHandler) throws UnknownHostException {
List<DiscoveryIncomingMessage> ret = new ArrayList<DiscoveryIncomingMessage>();
Set<... | public class class_name {
private static List<DiscoveryIncomingMessage> collectIncomingMessages(int pTimeout, List<Future<List<DiscoveryIncomingMessage>>> pFutures, LogHandler pLogHandler) throws UnknownHostException {
List<DiscoveryIncomingMessage> ret = new ArrayList<DiscoveryIncomingMessage>();
Set<... |
public class class_name {
public static String toLowerCamelCase( String s )
{
if (StringUtil.isBlank( s )) return s.trim();
StringBuilder sb = new StringBuilder();
String[] parts = s.trim().split( "\\s+" );
sb.append( parts[0].toLowerCase() );
for (int i = 1; i < parts.len... | public class class_name {
public static String toLowerCamelCase( String s )
{
if (StringUtil.isBlank( s )) return s.trim();
StringBuilder sb = new StringBuilder();
String[] parts = s.trim().split( "\\s+" );
sb.append( parts[0].toLowerCase() );
for (int i = 1; i < parts.len... |
public class class_name {
private Node<K,V> leastNode(final Node<K,V> node, final int index) {
Node<K,V> lval = node;
if (lval != null) {
while (lval.getLeft(index) != null) {
lval = lval.getLeft(index);
}
}
return lval;
} } | public class class_name {
private Node<K,V> leastNode(final Node<K,V> node, final int index) {
Node<K,V> lval = node;
if (lval != null) {
while (lval.getLeft(index) != null) {
lval = lval.getLeft(index);
// depends on control dependency: [while], data = [none]
... |
public class class_name {
public void setFormatByArgumentName(String argumentName, Format newFormat) {
int argNumber = MessagePattern.validateArgumentName(argumentName);
if (argNumber < MessagePattern.ARG_NAME_NOT_NUMBER) {
return;
}
for (int partIndex = 0; (partIndex = next... | public class class_name {
public void setFormatByArgumentName(String argumentName, Format newFormat) {
int argNumber = MessagePattern.validateArgumentName(argumentName);
if (argNumber < MessagePattern.ARG_NAME_NOT_NUMBER) {
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
void setLocale(ULocale valid, ULocale actual) {
// This method is called
// by other protected functions that checks and makes sure that
// valid and actual are not null before passing
assert (valid == null) == (actual == null);
// Another... | public class class_name {
@Override
void setLocale(ULocale valid, ULocale actual) {
// This method is called
// by other protected functions that checks and makes sure that
// valid and actual are not null before passing
assert (valid == null) == (actual == null);
// Another... |
public class class_name {
@Override
public boolean hasAccessToWebResource(String resource, String... methods) {
String appName = getApplicationName();
SecurityMetadata securityMetadata = WebConfigUtils.getSecurityMetadata();
SecurityConstraintCollection collection = null;
if (secur... | public class class_name {
@Override
public boolean hasAccessToWebResource(String resource, String... methods) {
String appName = getApplicationName();
SecurityMetadata securityMetadata = WebConfigUtils.getSecurityMetadata();
SecurityConstraintCollection collection = null;
if (secur... |
public class class_name {
@Override
public void onMouseUp(MouseUpEvent event) {
if (dragging) {
setDragging(false);
draggingMask.getRenderable().removeFromParent();
draggingMask = null;
onDragStop(event.getClientX(), event.getClientY());
release(invisibleClickArea);
}
} } | public class class_name {
@Override
public void onMouseUp(MouseUpEvent event) {
if (dragging) {
setDragging(false); // depends on control dependency: [if], data = [none]
draggingMask.getRenderable().removeFromParent(); // depends on control dependency: [if], data = [none]
draggingMask = null; // depends on... |
public class class_name {
public List<Database> listDatabases(String instanceId) {
// [START listDatabases]
Page<Database> page = dbAdminClient.listDatabases(instanceId, Options.pageSize(1));
List<Database> dbs = new ArrayList<>();
while (page != null) {
Database db = Iterables.getOnlyElement(pag... | public class class_name {
public List<Database> listDatabases(String instanceId) {
// [START listDatabases]
Page<Database> page = dbAdminClient.listDatabases(instanceId, Options.pageSize(1));
List<Database> dbs = new ArrayList<>();
while (page != null) {
Database db = Iterables.getOnlyElement(pag... |
public class class_name {
protected AccessBuilder readAccess(DatasetBuilder dataset, Element accessElem) {
String urlPath = accessElem.getAttributeValue("urlPath");
String serviceName = accessElem.getAttributeValue("serviceName");
String dataFormat = accessElem.getAttributeValue("dataFormat");
Service... | public class class_name {
protected AccessBuilder readAccess(DatasetBuilder dataset, Element accessElem) {
String urlPath = accessElem.getAttributeValue("urlPath");
String serviceName = accessElem.getAttributeValue("serviceName");
String dataFormat = accessElem.getAttributeValue("dataFormat");
Service... |
public class class_name {
protected void repairAfterLazy() {
for (int k = 0; k < highLowContainer.size(); ++k) {
Container c = highLowContainer.getContainerAtIndex(k);
highLowContainer.setContainerAtIndex(k, c.repairAfterLazy());
}
} } | public class class_name {
protected void repairAfterLazy() {
for (int k = 0; k < highLowContainer.size(); ++k) {
Container c = highLowContainer.getContainerAtIndex(k);
highLowContainer.setContainerAtIndex(k, c.repairAfterLazy()); // depends on control dependency: [for], data = [k]
}
} } |
public class class_name {
public void remoteInvalidate(String sessionId, boolean backendUpdate) {
if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[REMOTE_IN... | public class class_name {
public void remoteInvalidate(String sessionId, boolean backendUpdate) {
if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[REMOTE_IN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.