code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private boolean isAggregate(String thriftColumnName)
{
if (thriftColumnName.startsWith(SYS_COUNT) || thriftColumnName.startsWith(SYS_MIN)
|| thriftColumnName.startsWith(SYS_MAX) || thriftColumnName.startsWith(SYS_AVG)
|| thriftColumnName.startsWith(... | public class class_name {
private boolean isAggregate(String thriftColumnName)
{
if (thriftColumnName.startsWith(SYS_COUNT) || thriftColumnName.startsWith(SYS_MIN)
|| thriftColumnName.startsWith(SYS_MAX) || thriftColumnName.startsWith(SYS_AVG)
|| thriftColumnName.startsWith(... |
public class class_name {
public void setMeshCreatorInputNormals(float[] values) {
meshCreatorInputNormals = new float[ values.length ];
for (int i = 0; i < values.length; i++) {
meshCreatorInputNormals[i] = values[i];
}
} } | public class class_name {
public void setMeshCreatorInputNormals(float[] values) {
meshCreatorInputNormals = new float[ values.length ];
for (int i = 0; i < values.length; i++) {
meshCreatorInputNormals[i] = values[i]; // depends on control dependency: [for], data = [i]
}
} } |
public class class_name {
public String getNameAndAttributes() {
StringBuilder sbuff = new StringBuilder();
sbuff.append("Group ");
sbuff.append(getShortName());
sbuff.append("\n");
for (Attribute att : attributes.getAttributes()) {
sbuff.append(" ").append(getShortName()).append(":");
... | public class class_name {
public String getNameAndAttributes() {
StringBuilder sbuff = new StringBuilder();
sbuff.append("Group ");
sbuff.append(getShortName());
sbuff.append("\n");
for (Attribute att : attributes.getAttributes()) {
sbuff.append(" ").append(getShortName()).append(":"); // de... |
public class class_name {
public RegionInfo queryRegionInfo(RegionReqInfo regionReqInfo) {
try {
return queryRegionInfo(regionReqInfo.getAccessKey(), regionReqInfo.getBucket());
} catch (Exception e) {
e.printStackTrace();
}
return null;
} } | public class class_name {
public RegionInfo queryRegionInfo(RegionReqInfo regionReqInfo) {
try {
return queryRegionInfo(regionReqInfo.getAccessKey(), regionReqInfo.getBucket()); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
e.printStackTrace();
... |
public class class_name {
private IBond getNextBondWithUnplacedRingAtom() {
for (IBond bond : molecule.bonds()) {
IAtom beg = bond.getBegin();
IAtom end = bond.getEnd();
if (beg.getPoint2d() != null && end.getPoint2d() != null) {
if (end.getFlag(CDKConstants.... | public class class_name {
private IBond getNextBondWithUnplacedRingAtom() {
for (IBond bond : molecule.bonds()) {
IAtom beg = bond.getBegin();
IAtom end = bond.getEnd();
if (beg.getPoint2d() != null && end.getPoint2d() != null) {
if (end.getFlag(CDKConstants.... |
public class class_name {
protected LightweightTypeReference createCollectionTypeReference(JvmGenericType collectionType, LightweightTypeReference elementType, LightweightTypeReference expectedType, ITypeReferenceOwner owner) {
ParameterizedTypeReference result = new ParameterizedTypeReference(owner, collectionType)... | public class class_name {
protected LightweightTypeReference createCollectionTypeReference(JvmGenericType collectionType, LightweightTypeReference elementType, LightweightTypeReference expectedType, ITypeReferenceOwner owner) {
ParameterizedTypeReference result = new ParameterizedTypeReference(owner, collectionType)... |
public class class_name {
public static File file(String... names) {
if (ArrayUtil.isEmpty(names)) {
return null;
}
File file = null;
for (String name : names) {
if (file == null) {
file = file(name);
} else {
file = file(file, name);
}
}
return file;
} } | public class class_name {
public static File file(String... names) {
if (ArrayUtil.isEmpty(names)) {
return null;
// depends on control dependency: [if], data = [none]
}
File file = null;
for (String name : names) {
if (file == null) {
file = file(name);
// depends on control dependency: [i... |
public class class_name {
public static void equalsOrDie(String a, String b) {
if (a == null && b == null) {
return;
}
if (a == null || b == null) {
die("Values not equal value a=", a, "value b=", b);
}
char[] ac = FastStringUtils.toCharArray(a);
... | public class class_name {
public static void equalsOrDie(String a, String b) {
if (a == null && b == null) {
return; // depends on control dependency: [if], data = [none]
}
if (a == null || b == null) {
die("Values not equal value a=", a, "value b=", b); // depends on co... |
public class class_name {
public void setWidgetToggleDisplayAllowed(Widget child, boolean allowed) {
assertIsChild(child);
Splitter splitter = getAssociatedSplitter(child);
// The splitter is null for the center element.
if (splitter != null) {
splitter.setToggleDisplayAllow... | public class class_name {
public void setWidgetToggleDisplayAllowed(Widget child, boolean allowed) {
assertIsChild(child);
Splitter splitter = getAssociatedSplitter(child);
// The splitter is null for the center element.
if (splitter != null) {
splitter.setToggleDisplayAllow... |
public class class_name {
public static Object get(final Supplier<?> supplier) {
if (supplier == null) {
return null;
}
final Object result = supplier.get();
return result instanceof Message ? ((Message) result).getFormattedMessage() : result;
} } | public class class_name {
public static Object get(final Supplier<?> supplier) {
if (supplier == null) {
return null; // depends on control dependency: [if], data = [none]
}
final Object result = supplier.get();
return result instanceof Message ? ((Message) result).getFormat... |
public class class_name {
private static double coverRadius(double[][] matrix, int[] idx, int i) {
final int idx_i = idx[i];
final double[] row_i = matrix[i];
double m = 0;
for(int j = 0; j < row_i.length; j++) {
if(i != j && idx_i == idx[j]) {
final double d = row_i[j];
m = d > m... | public class class_name {
private static double coverRadius(double[][] matrix, int[] idx, int i) {
final int idx_i = idx[i];
final double[] row_i = matrix[i];
double m = 0;
for(int j = 0; j < row_i.length; j++) {
if(i != j && idx_i == idx[j]) {
final double d = row_i[j];
m = d > m... |
public class class_name {
private int computeAverageWidth(){
int count = 0;
int total = 0;
for(int i = 0; i < super.widths.length; i++){
if(super.widths[i] != 0){
total += super.widths[i];
count++;
}
}
return count... | public class class_name {
private int computeAverageWidth(){
int count = 0;
int total = 0;
for(int i = 0; i < super.widths.length; i++){
if(super.widths[i] != 0){
total += super.widths[i];
// depends on control dependency: [if], data = [none]
co... |
public class class_name {
public void marshall(ImportDocumentationPartsRequest importDocumentationPartsRequest, ProtocolMarshaller protocolMarshaller) {
if (importDocumentationPartsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(ImportDocumentationPartsRequest importDocumentationPartsRequest, ProtocolMarshaller protocolMarshaller) {
if (importDocumentationPartsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
public int areConfusable(String s1, String s2) {
//
// See section 4 of UAX 39 for the algorithm for checking whether two strings are confusable,
// and for definitions of the types (single, whole, mixed-script) of confusables.
// We only care about a few of t... | public class class_name {
public int areConfusable(String s1, String s2) {
//
// See section 4 of UAX 39 for the algorithm for checking whether two strings are confusable,
// and for definitions of the types (single, whole, mixed-script) of confusables.
// We only care about a few of t... |
public class class_name {
public Optional<RepositoryFile> getOptionalFile(Object projectIdOrPath, String filePath, String ref) {
try {
return (Optional.ofNullable(getFile(projectIdOrPath, filePath, ref, true)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptiona... | public class class_name {
public Optional<RepositoryFile> getOptionalFile(Object projectIdOrPath, String filePath, String ref) {
try {
return (Optional.ofNullable(getFile(projectIdOrPath, filePath, ref, true))); // depends on control dependency: [try], data = [none]
} catch (GitLabApiExcept... |
public class class_name {
public static JSPCache getJspCache(String cacheName) {
final String methodName = "getJspCache()";
JSPCache cacheOut = null;
if (servletCacheEnabled == false) {
// DYNA1059W=DYNA1059W: WebSphere Dynamic Cache instance named {0} cannot be used because of Dyna... | public class class_name {
public static JSPCache getJspCache(String cacheName) {
final String methodName = "getJspCache()";
JSPCache cacheOut = null;
if (servletCacheEnabled == false) {
// DYNA1059W=DYNA1059W: WebSphere Dynamic Cache instance named {0} cannot be used because of Dyna... |
public class class_name {
public EClass getIfcSimpleProperty() {
if (ifcSimplePropertyEClass == null) {
ifcSimplePropertyEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(514);
}
return ifcSimplePropertyEClass;
} } | public class class_name {
public EClass getIfcSimpleProperty() {
if (ifcSimplePropertyEClass == null) {
ifcSimplePropertyEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(514);
// depends on control dependency: [if], data = [none]
}
return ifcS... |
public class class_name {
public static void checkProxyPackageAccess(Class<?> clazz) {
SecurityManager s = System.getSecurityManager();
if (s != null) {
// check proxy interfaces if the given class is a proxy class
if (Proxy.isProxyClass(clazz)) {
for (Class<?> i... | public class class_name {
public static void checkProxyPackageAccess(Class<?> clazz) {
SecurityManager s = System.getSecurityManager();
if (s != null) {
// check proxy interfaces if the given class is a proxy class
if (Proxy.isProxyClass(clazz)) {
for (Class<?> i... |
public class class_name {
@Deprecated
public void pushNotificationClickedEvent(final Bundle extras) {
CleverTapAPI cleverTapAPI = weakReference.get();
if(cleverTapAPI == null){
Logger.d("CleverTap Instance is null.");
} else {
cleverTapAPI.pushNotificationClickedEven... | public class class_name {
@Deprecated
public void pushNotificationClickedEvent(final Bundle extras) {
CleverTapAPI cleverTapAPI = weakReference.get();
if(cleverTapAPI == null){
Logger.d("CleverTap Instance is null."); // depends on control dependency: [if], data = [none]
} else ... |
public class class_name {
@SuppressWarnings("unchecked")
@Override
synchronized public V get(Object key) {
if(!this.containsKey(key)) {
super.put((K) key, readBack((K) key));
}
return super.get(key);
} } | public class class_name {
@SuppressWarnings("unchecked")
@Override
synchronized public V get(Object key) {
if(!this.containsKey(key)) {
super.put((K) key, readBack((K) key)); // depends on control dependency: [if], data = [none]
}
return super.get(key);
} } |
public class class_name {
private String cleanRoute(final String route) {
String routeToClean = MULTIPLE_SLASH_PATTERN.matcher(route).replaceAll("/");
if (routeToClean.startsWith("/")) {
routeToClean = routeToClean.substring(1);
}
if (routeToClean.endsWith("/")) {
routeToClean = routeToClean.substring(0,... | public class class_name {
private String cleanRoute(final String route) {
String routeToClean = MULTIPLE_SLASH_PATTERN.matcher(route).replaceAll("/");
if (routeToClean.startsWith("/")) {
routeToClean = routeToClean.substring(1); // depends on control dependency: [if], data = [none]
}
if (routeToClean.endsWi... |
public class class_name {
protected long computeSVUID() throws IOException {
ByteArrayOutputStream bos;
DataOutputStream dos = null;
long svuid = 0;
try {
bos = new ByteArrayOutputStream();
dos = new DataOutputStream(bos);
/*
* 1. The c... | public class class_name {
protected long computeSVUID() throws IOException {
ByteArrayOutputStream bos;
DataOutputStream dos = null;
long svuid = 0;
try {
bos = new ByteArrayOutputStream();
dos = new DataOutputStream(bos);
/*
* 1. The c... |
public class class_name {
@Override
public String next() throws NoSuchElementException
{
String ret;
if(previousException != null)
throw new NoSuchElementException("Previous IOException reading from stream");
if(line == null)
{
try
{
if((line = in.readLine()) == null)
throw new NoSuchEleme... | public class class_name {
@Override
public String next() throws NoSuchElementException
{
String ret;
if(previousException != null)
throw new NoSuchElementException("Previous IOException reading from stream");
if(line == null)
{
try
{
if((line = in.readLine()) == null)
throw new NoSuchEleme... |
public class class_name {
public DaemonStatus checkStatus()
{
if (this.pidfile == null) {
throw new IllegalStateException("No pidfile specified, cannot check status!");
}
if (!pidfile.exists()) {
return DaemonStatus.STATUS_NOT_RUNNING;
}
final int pi... | public class class_name {
public DaemonStatus checkStatus()
{
if (this.pidfile == null) {
throw new IllegalStateException("No pidfile specified, cannot check status!");
}
if (!pidfile.exists()) {
return DaemonStatus.STATUS_NOT_RUNNING; // depends on control dependenc... |
public class class_name {
private static Response make(final Response res, final CharSequence type,
final Opt<Charset> charset) {
final Response response;
if (charset.has()) {
response = new RsWithHeader(
new RsWithoutHeader(res, RsWithType.HEADER),
R... | public class class_name {
private static Response make(final Response res, final CharSequence type,
final Opt<Charset> charset) {
final Response response;
if (charset.has()) {
response = new RsWithHeader(
new RsWithoutHeader(res, RsWithType.HEADER),
R... |
public class class_name {
@Override
public Change decodeChange(UUID changeId, ByteBuffer buf) {
int sep = getSeparatorIndex(buf);
Encoding encoding = getEncoding(buf, sep);
String body = getBody(buf, sep);
JsonTokener tokener;
Set<String> tags;
ChangeBuilder builder... | public class class_name {
@Override
public Change decodeChange(UUID changeId, ByteBuffer buf) {
int sep = getSeparatorIndex(buf);
Encoding encoding = getEncoding(buf, sep);
String body = getBody(buf, sep);
JsonTokener tokener;
Set<String> tags;
ChangeBuilder builder... |
public class class_name {
public void appendNsName(final StringBuilder sb,
final QName nm) {
String uri = nm.getNamespaceURI();
String abbr;
if ((defaultNS != null) && uri.equals(defaultNS)) {
abbr = null;
} else {
abbr = keyUri.get(uri);
if (abbr == null) ... | public class class_name {
public void appendNsName(final StringBuilder sb,
final QName nm) {
String uri = nm.getNamespaceURI();
String abbr;
if ((defaultNS != null) && uri.equals(defaultNS)) {
abbr = null; // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public InstanceList[] nextSplit(int numTrainFolds) {
InstanceList[] ret = new InstanceList[2];
ret[0] = new InstanceList(pipe);
ret[1] = new InstanceList(pipe);
// train on folds [index, index+numTrainFolds), test on rest
for (int i = 0; i < folds.leng... | public class class_name {
public InstanceList[] nextSplit(int numTrainFolds) {
InstanceList[] ret = new InstanceList[2];
ret[0] = new InstanceList(pipe);
ret[1] = new InstanceList(pipe);
// train on folds [index, index+numTrainFolds), test on rest
for (int i = 0; i < folds.leng... |
public class class_name {
public boolean receiveAcknowledgeMessage(AcknowledgeCheckpoint message) throws CheckpointException {
if (shutdown || message == null) {
return false;
}
if (!job.equals(message.getJob())) {
LOG.error("Received wrong AcknowledgeCheckpoint message for job {}: {}", job, message);
... | public class class_name {
public boolean receiveAcknowledgeMessage(AcknowledgeCheckpoint message) throws CheckpointException {
if (shutdown || message == null) {
return false;
}
if (!job.equals(message.getJob())) {
LOG.error("Received wrong AcknowledgeCheckpoint message for job {}: {}", job, message);
... |
public class class_name {
public static FieldInfo of(Enum<?> enumValue) {
try {
FieldInfo result = FieldInfo.of(enumValue.getClass().getField(enumValue.name()));
Preconditions.checkArgument(
result != null, "enum constant missing @Value or @NullValue annotation: %s", enumValue);
return ... | public class class_name {
public static FieldInfo of(Enum<?> enumValue) {
try {
FieldInfo result = FieldInfo.of(enumValue.getClass().getField(enumValue.name()));
Preconditions.checkArgument(
result != null, "enum constant missing @Value or @NullValue annotation: %s", enumValue);
return ... |
public class class_name {
@Override
public void memberRemoved(final MembershipEvent iEvent) {
try {
updateLastClusterChange();
if (iEvent.getMember() == null)
return;
final String nodeLeftName = getNodeName(iEvent.getMember());
if (nodeLeftName == null)
return;
re... | public class class_name {
@Override
public void memberRemoved(final MembershipEvent iEvent) {
try {
updateLastClusterChange(); // depends on control dependency: [try], data = [none]
if (iEvent.getMember() == null)
return;
final String nodeLeftName = getNodeName(iEvent.getMember());
... |
public class class_name {
void submit() {
try {
saveData();
m_context.finish(null);
} catch (Exception e) {
m_context.error(e);
}
} } | public class class_name {
void submit() {
try {
saveData(); // depends on control dependency: [try], data = [none]
m_context.finish(null); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
m_context.error(e);
} // depends on cont... |
public class class_name {
private int lowestNonNullIndex(int iTargetPosition)
{
Object bookmark = null;
int iBookmarkIndex = iTargetPosition;
while (bookmark == null)
{
int iArrayIndex = m_gridList.listToArrayIndex(iBookmarkIndex);
iBookmarkIndex = m_gridLis... | public class class_name {
private int lowestNonNullIndex(int iTargetPosition)
{
Object bookmark = null;
int iBookmarkIndex = iTargetPosition;
while (bookmark == null)
{
int iArrayIndex = m_gridList.listToArrayIndex(iBookmarkIndex);
iBookmarkIndex = m_gridLis... |
public class class_name {
public static boolean isMobile() {
if (GWT.isClient()) {
String userAgent = Navigator.getUserAgent();
for (String platform : MOBILE_PLATFORMS) {
if (userAgent.toLowerCase().indexOf(platform) != -1) {
return true;
}
}
}
return false;
} } | public class class_name {
public static boolean isMobile() {
if (GWT.isClient()) {
String userAgent = Navigator.getUserAgent();
for (String platform : MOBILE_PLATFORMS) {
if (userAgent.toLowerCase().indexOf(platform) != -1) {
return true; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public int removeAll(KType e1) {
int to = 0;
for (int from = 0; from < elementsCount; from++) {
if (Intrinsics.equals(this, e1, buffer[from])) {
buffer[from] = Intrinsics.empty();
continue;
}
if (to != from) {
buffer[to] = buffer[... | public class class_name {
@Override
public int removeAll(KType e1) {
int to = 0;
for (int from = 0; from < elementsCount; from++) {
if (Intrinsics.equals(this, e1, buffer[from])) {
buffer[from] = Intrinsics.empty(); // depends on control dependency: [if], data = [none]
continue;
}... |
public class class_name {
String buildIdentitySQL(String[] pKeys) {
mTables = new Hashtable();
mColumns = new Vector();
// Get columns to select
mColumns.addElement(getPrimaryKey());
// Get tables to select (and join) from and their joins
tableJoins(null, fals... | public class class_name {
String buildIdentitySQL(String[] pKeys) {
mTables = new Hashtable();
mColumns = new Vector();
// Get columns to select
mColumns.addElement(getPrimaryKey());
// Get tables to select (and join) from and their joins
tableJoins(null, fals... |
public class class_name {
private void initResetCheckbox(CheckBox box, final CmsDateField field) {
box.addValueChangeListener(new ValueChangeListener() {
private static final long serialVersionUID = 1L;
public void valueChange(ValueChangeEvent event) {
Boolean value ... | public class class_name {
private void initResetCheckbox(CheckBox box, final CmsDateField field) {
box.addValueChangeListener(new ValueChangeListener() {
private static final long serialVersionUID = 1L;
public void valueChange(ValueChangeEvent event) {
Boolean value ... |
public class class_name {
public static BoundingBox getProjectedBoundingBox(Projection projection,
long x, long y, int zoom) {
BoundingBox boundingBox = getWebMercatorBoundingBox(x, y, zoom);
if (projection != null) {
ProjectionTransform transform = webMercator
.getTransformation(projection);
bound... | public class class_name {
public static BoundingBox getProjectedBoundingBox(Projection projection,
long x, long y, int zoom) {
BoundingBox boundingBox = getWebMercatorBoundingBox(x, y, zoom);
if (projection != null) {
ProjectionTransform transform = webMercator
.getTransformation(projection);
bound... |
public class class_name {
protected void setJsonValue(JsonObjectBuilder builder, T value) {
// I don't like this - there should really be a way to construct a disconnected JSONValue...
if (value instanceof Boolean) {
builder.add("value", (Boolean) value);
} else if (value instanceof Double) {
b... | public class class_name {
protected void setJsonValue(JsonObjectBuilder builder, T value) {
// I don't like this - there should really be a way to construct a disconnected JSONValue...
if (value instanceof Boolean) {
builder.add("value", (Boolean) value); // depends on control dependency: [if], data = [n... |
public class class_name {
public void startUsingModel () {
if (replacementThread != null) {
try { replacementThread.join(); }
catch (InterruptedException e) {}
}
replacementCanProceed = false;
users++;
} } | public class class_name {
public void startUsingModel () {
if (replacementThread != null) {
try { replacementThread.join(); } // depends on control dependency: [try], data = [none]
catch (InterruptedException e) {} // depends on control dependency: [catch], data = [none]
}
replacementCanProceed = false;
... |
public class class_name {
public void setAddressHeader(String name, Address addr) {
if(logger.isDebugEnabled()) {
logger.debug("setAddressHeader - name=" + name + ", addr=" + addr);
}
checkCommitted();
String hName = getFullHeaderName(name);
if (logger.isDebugEnabled())
logger.debug("Setti... | public class class_name {
public void setAddressHeader(String name, Address addr) {
if(logger.isDebugEnabled()) {
logger.debug("setAddressHeader - name=" + name + ", addr=" + addr); // depends on control dependency: [if], data = [none]
}
checkCommitted();
String hName = getFullHeaderName(name);
... |
public class class_name {
protected boolean isCoordinateAxisForVariable(Variable axis, VariableEnhanced v) {
List<Dimension> varDims = v.getDimensionsAll();
List<Dimension> axisDims = axis.getDimensionsAll();
// a CHAR variable must really be a STRING, so leave out the last (string length) dimension
... | public class class_name {
protected boolean isCoordinateAxisForVariable(Variable axis, VariableEnhanced v) {
List<Dimension> varDims = v.getDimensionsAll();
List<Dimension> axisDims = axis.getDimensionsAll();
// a CHAR variable must really be a STRING, so leave out the last (string length) dimension
... |
public class class_name {
private double computeAngle(RoadPolyline segment, boolean fromStartPoint) {
double angle = Double.NaN;
Point2d p1 = null;
Point2d p2 = null;
if (segment.getPointCount() > 1) {
if (fromStartPoint) {
final RoadConnection startPoint = segment.getBeginPoint(StandardRoadConnection.c... | public class class_name {
private double computeAngle(RoadPolyline segment, boolean fromStartPoint) {
double angle = Double.NaN;
Point2d p1 = null;
Point2d p2 = null;
if (segment.getPointCount() > 1) {
if (fromStartPoint) {
final RoadConnection startPoint = segment.getBeginPoint(StandardRoadConnection.c... |
public class class_name {
@Override
public final boolean propertyExists(String name) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "propertyExists", name);
boolean result = false;
/* Got to check Maelstrom's transportVersion first as ... | public class class_name {
@Override
public final boolean propertyExists(String name) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "propertyExists", name);
boolean result = false;
/* Got to check Maelstrom's transportVersion first as ... |
public class class_name {
private WebElement createWebElementAndSetLocation(String information, WebView webView){
String[] data = information.split(";,");
String[] elements = null;
int x = 0;
int y = 0;
int width = 0;
int height = 0;
Hashtable<String, String> attributes = new Hashtable<String, String>();... | public class class_name {
private WebElement createWebElementAndSetLocation(String information, WebView webView){
String[] data = information.split(";,");
String[] elements = null;
int x = 0;
int y = 0;
int width = 0;
int height = 0;
Hashtable<String, String> attributes = new Hashtable<String, String>();... |
public class class_name {
private void scanUserPaths(PackageSymbol p, boolean includeSourcePath) throws IOException {
Set<JavaFileObject.Kind> kinds = getPackageFileKinds();
Set<JavaFileObject.Kind> classKinds = EnumSet.copyOf(kinds);
classKinds.remove(JavaFileObject.Kind.SOURCE);
bool... | public class class_name {
private void scanUserPaths(PackageSymbol p, boolean includeSourcePath) throws IOException {
Set<JavaFileObject.Kind> kinds = getPackageFileKinds();
Set<JavaFileObject.Kind> classKinds = EnumSet.copyOf(kinds);
classKinds.remove(JavaFileObject.Kind.SOURCE);
bool... |
public class class_name {
private void sendEvents(final List<Event> events) {
if (null != handlers) {
for (EventHandler current : handlers) {
for (Event event : events) {
current.handleEvent(event);
}
}
}
LOG.info("Put... | public class class_name {
private void sendEvents(final List<Event> events) {
if (null != handlers) {
for (EventHandler current : handlers) {
for (Event event : events) {
current.handleEvent(event); // depends on control dependency: [for], data = [event]
... |
public class class_name {
public final Membership join(Supplier<byte[]> memberData, @Nullable Runnable onLoseMembership)
throws JoinException, InterruptedException {
Objects.requireNonNull(memberData);
ensurePersistentGroupPath();
final ActiveMembership groupJoiner = new ActiveMembership(memberData... | public class class_name {
public final Membership join(Supplier<byte[]> memberData, @Nullable Runnable onLoseMembership)
throws JoinException, InterruptedException {
Objects.requireNonNull(memberData);
ensurePersistentGroupPath();
final ActiveMembership groupJoiner = new ActiveMembership(memberData... |
public class class_name {
public int getInt(String key) {
String value = get(key);
Utils.require(value != null, key + " parameter is not set");
try {
return Integer.parseInt(value);
} catch (NumberFormatException e) {
throw new IllegalArgumentException(key + " parameter s... | public class class_name {
public int getInt(String key) {
String value = get(key);
Utils.require(value != null, key + " parameter is not set");
try {
return Integer.parseInt(value);
// depends on control dependency: [try], data = [none]
} catch (NumberFormatException e) {
... |
public class class_name {
private boolean createMQLinkMPResources(
MQLinkHandler mqLinkHandler,
MQLinkDefinition mqld,
LocalizationDefinition linkLocalizationDefinition,
... | public class class_name {
private boolean createMQLinkMPResources(
MQLinkHandler mqLinkHandler,
MQLinkDefinition mqld,
LocalizationDefinition linkLocalizationDefinition,
... |
public class class_name {
public static List<IntDependency> treeToDependencyList(Tree tree, Index<String> wordIndex, Index<String> tagIndex) {
List<IntDependency> depList = new ArrayList<IntDependency>();
treeToDependencyHelper(tree, depList, 0, wordIndex, tagIndex);
if (DEBUG) {
System.out.print... | public class class_name {
public static List<IntDependency> treeToDependencyList(Tree tree, Index<String> wordIndex, Index<String> tagIndex) {
List<IntDependency> depList = new ArrayList<IntDependency>();
treeToDependencyHelper(tree, depList, 0, wordIndex, tagIndex);
if (DEBUG) {
System.out.print... |
public class class_name {
@Override
public void analyze(Response response) {
if(response == null) {
return;
}
if (ResponseHandler.LOG.equals(response.getAction())) {
logger.info("Handling <log> response for user <{}>", response.getUser().getUsername());
} else {
logger.info("Delegating response fo... | public class class_name {
@Override
public void analyze(Response response) {
if(response == null) {
return; // depends on control dependency: [if], data = [none]
}
if (ResponseHandler.LOG.equals(response.getAction())) {
logger.info("Handling <log> response for user <{}>", response.getUser().getUsername... |
public class class_name {
public String getRealm() {
if (UNDEFINED.equals(realm)) {
Principal principal = securityIdentity.getPrincipal();
String realm = null;
if (principal instanceof RealmPrincipal) {
realm = ((RealmPrincipal)principal).getRealm();
... | public class class_name {
public String getRealm() {
if (UNDEFINED.equals(realm)) {
Principal principal = securityIdentity.getPrincipal();
String realm = null;
if (principal instanceof RealmPrincipal) {
realm = ((RealmPrincipal)principal).getRealm(); // depen... |
public class class_name {
@Override
public void execute(final Runnable task) {
checkNotNull(task);
final Runnable submittedTask;
final long oldRunCount;
synchronized (queue) {
// If the worker is already running (or execute() on the delegate returned successfully, and
// the worker has ye... | public class class_name {
@Override
public void execute(final Runnable task) {
checkNotNull(task);
final Runnable submittedTask;
final long oldRunCount;
synchronized (queue) {
// If the worker is already running (or execute() on the delegate returned successfully, and
// the worker has ye... |
public class class_name {
private boolean isReadable(String namespace, String name) {
Table table = getMetaStoreUtil().getTable(namespace, name);
if (isManaged(table) || isExternal(table)) { // readable table types
try {
// get a descriptor for the table. if this succeeds, it is readable
... | public class class_name {
private boolean isReadable(String namespace, String name) {
Table table = getMetaStoreUtil().getTable(namespace, name);
if (isManaged(table) || isExternal(table)) { // readable table types
try {
// get a descriptor for the table. if this succeeds, it is readable
... |
public class class_name {
public static void deleteAll(final EntityManager entityManager, Iterable<Class> entityClasses) {
for (Class entityType : entityClasses) {
EntityClass entityClass = EntityClass.from(entityType);
// delete many to many and element collection tables
I... | public class class_name {
public static void deleteAll(final EntityManager entityManager, Iterable<Class> entityClasses) {
for (Class entityType : entityClasses) {
EntityClass entityClass = EntityClass.from(entityType);
// delete many to many and element collection tables
I... |
public class class_name {
public void setError(
int errorIndex,
String errorMessage
) {
if (errorIndex >= 0) {
this.errorMessage = (
((errorMessage == null) || errorMessage.isEmpty())
? ("Error occurred at position: " + errorIndex)
... | public class class_name {
public void setError(
int errorIndex,
String errorMessage
) {
if (errorIndex >= 0) {
this.errorMessage = (
((errorMessage == null) || errorMessage.isEmpty())
? ("Error occurred at position: " + errorIndex)
... |
public class class_name {
protected void processCell() {
final ObjectMap<String, String> attributes = getNamedAttributes();
if (GdxMaps.isEmpty(attributes)) {
processCellWithNoAttributes(getTable());
return;
}
final LmlActorBuilder builder = new LmlActorBuilder()... | public class class_name {
protected void processCell() {
final ObjectMap<String, String> attributes = getNamedAttributes();
if (GdxMaps.isEmpty(attributes)) {
processCellWithNoAttributes(getTable()); // depends on control dependency: [if], data = [none]
return; // depends on con... |
public class class_name {
protected static String generateRequestLine(HttpConnection connection,
String name, String requestPath, String query, String version) {
LOG.trace("enter HttpMethodBase.generateRequestLine(HttpConnection, "
+ "String, String, String, String)");
StringBuffer... | public class class_name {
protected static String generateRequestLine(HttpConnection connection,
String name, String requestPath, String query, String version) {
LOG.trace("enter HttpMethodBase.generateRequestLine(HttpConnection, "
+ "String, String, String, String)");
StringBuffer... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T extends Class> Map<Key<T>, ? extends T> associateInterfacesToImplementations(
InitContext initContext, Collection<T> interfaces, Map<T, Specification<? extends T>> specsByInterface,
boolean overridingMode) {
M... | public class class_name {
@SuppressWarnings("unchecked")
public static <T extends Class> Map<Key<T>, ? extends T> associateInterfacesToImplementations(
InitContext initContext, Collection<T> interfaces, Map<T, Specification<? extends T>> specsByInterface,
boolean overridingMode) {
M... |
public class class_name {
public void waitForUninterruptibly(Guard guard) {
if (!((guard.monitor == this) & lock.isHeldByCurrentThread())) {
throw new IllegalMonitorStateException();
}
if (!guard.isSatisfied()) {
awaitUninterruptibly(guard, true);
}
} } | public class class_name {
public void waitForUninterruptibly(Guard guard) {
if (!((guard.monitor == this) & lock.isHeldByCurrentThread())) {
throw new IllegalMonitorStateException();
}
if (!guard.isSatisfied()) {
awaitUninterruptibly(guard, true); // depends on control dependency: [if], data = ... |
public class class_name {
public boolean verify(KeyStoreChooser keyStoreChooser, PublicKeyChooserByAlias publicKeyChooserByAlias, String message,
String signature) {
Base64EncodedVerifier verifier = cache.get(cacheKey(keyStoreChooser, publicKeyChooserByAlias));
if (verifier != null) {
return verifier.verify... | public class class_name {
public boolean verify(KeyStoreChooser keyStoreChooser, PublicKeyChooserByAlias publicKeyChooserByAlias, String message,
String signature) {
Base64EncodedVerifier verifier = cache.get(cacheKey(keyStoreChooser, publicKeyChooserByAlias));
if (verifier != null) {
return verifier.verify... |
public class class_name {
public static Optional<Class> forName(String name, @Nullable ClassLoader classLoader) {
try {
if (classLoader == null) {
classLoader = Thread.currentThread().getContextClassLoader();
}
if (classLoader == null) {
class... | public class class_name {
public static Optional<Class> forName(String name, @Nullable ClassLoader classLoader) {
try {
if (classLoader == null) {
classLoader = Thread.currentThread().getContextClassLoader(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected void addPropertyInjectionPoint(final PropertyInjectionPoint pip) {
if (properties == null) {
properties = new PropertyInjectionPoint[1];
properties[0] = pip;
} else {
properties = ArraysUtil.append(properties, pip);
}
} } | public class class_name {
protected void addPropertyInjectionPoint(final PropertyInjectionPoint pip) {
if (properties == null) {
properties = new PropertyInjectionPoint[1]; // depends on control dependency: [if], data = [none]
properties[0] = pip; // depends on control dependency: [if], data = [none]
} else ... |
public class class_name {
public void marshall(ListAgentsRequest listAgentsRequest, ProtocolMarshaller protocolMarshaller) {
if (listAgentsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(l... | public class class_name {
public void marshall(ListAgentsRequest listAgentsRequest, ProtocolMarshaller protocolMarshaller) {
if (listAgentsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(l... |
public class class_name {
public void doPost(AtmosphereResource ar) {
Object msg = ar.getRequest().getAttribute(Constants.MESSAGE_OBJECT);
if (msg != null) {
logger.info("received RPC post: " + msg.toString());
// for demonstration purposes we will broadcast the message to all conne... | public class class_name {
public void doPost(AtmosphereResource ar) {
Object msg = ar.getRequest().getAttribute(Constants.MESSAGE_OBJECT);
if (msg != null) {
logger.info("received RPC post: " + msg.toString()); // depends on control dependency: [if], data = [none]
// for demonstrati... |
public class class_name {
public void run()
{
if ((m_url == null) && (m_strHtmlText == null))
{ // restore the original cursor
if (m_bChangeCursor)
{
if (m_applet != null)
m_applet.setStatus(0, m_editorPane, m_oldCursor);
... | public class class_name {
public void run()
{
if ((m_url == null) && (m_strHtmlText == null))
{ // restore the original cursor
if (m_bChangeCursor)
{
if (m_applet != null)
m_applet.setStatus(0, m_editorPane, m_oldCursor);
... |
public class class_name {
@Override
public FieldTextBuilder WHEN(final FieldText fieldText) {
Validate.notNull(fieldText, "FieldText should not be null");
Validate.isTrue(fieldText.size() >= 1, "FieldText must have a size greater or equal to 1");
if(size() < 1) {
throw new Ille... | public class class_name {
@Override
public FieldTextBuilder WHEN(final FieldText fieldText) {
Validate.notNull(fieldText, "FieldText should not be null");
Validate.isTrue(fieldText.size() >= 1, "FieldText must have a size greater or equal to 1");
if(size() < 1) {
throw new Ille... |
public class class_name {
protected static void registerAlpnSupport(SSLConnectionLink connLink, SSLEngine engine) {
ThirdPartyAlpnNegotiator negotiator = null;
boolean useAlpn = isH2Active(connLink);
// try to register with one of the alpn providers. If useAlpn is false, tell the active ALPN h... | public class class_name {
protected static void registerAlpnSupport(SSLConnectionLink connLink, SSLEngine engine) {
ThirdPartyAlpnNegotiator negotiator = null;
boolean useAlpn = isH2Active(connLink);
// try to register with one of the alpn providers. If useAlpn is false, tell the active ALPN h... |
public class class_name {
private void saveFavIcon(String siteRoot) {
if (m_os == null) {
return;
}
if (m_os.size() == 0) {
return;
}
getReport().println(Messages.get().container(Messages.RPT_SITE_SET_FAVICON_0), I_CmsReport.FORMAT_DEFAULT);
Cms... | public class class_name {
private void saveFavIcon(String siteRoot) {
if (m_os == null) {
return; // depends on control dependency: [if], data = [none]
}
if (m_os.size() == 0) {
return; // depends on control dependency: [if], data = [none]
}
getReport()... |
public class class_name {
public static Annotation[] getAnnotations(AnnotatedElement annotatedElement) {
try {
return annotatedElement.getAnnotations();
}
catch (Exception ex) {
// Assuming nested Class values not resolvable within annotation attributes...
logIntrospectionFailure(annotatedElement, ex);
... | public class class_name {
public static Annotation[] getAnnotations(AnnotatedElement annotatedElement) {
try {
return annotatedElement.getAnnotations(); // depends on control dependency: [try], data = [none]
}
catch (Exception ex) {
// Assuming nested Class values not resolvable within annotation attribute... |
public class class_name {
protected static void printErrorMessage(Exception e) {
if(e instanceof AbortException) {
// ensure we actually show the message:
LoggingConfiguration.setVerbose(Level.VERBOSE);
LOG.verbose(e.getMessage());
}
else if(e instanceof UnspecifiedParameterException) {
... | public class class_name {
protected static void printErrorMessage(Exception e) {
if(e instanceof AbortException) {
// ensure we actually show the message:
LoggingConfiguration.setVerbose(Level.VERBOSE); // depends on control dependency: [if], data = [none]
LOG.verbose(e.getMessage()); // depends ... |
public class class_name {
@SuppressWarnings("unchecked")
private void fixdownMin(int k) {
int c = 2 * k;
while (c <= size) {
int m = minChildOrGrandchild(k);
if (m > c + 1) { // grandchild
if (((Comparable<? super K>) array[m]).compareTo(array[k]) >= 0) {
... | public class class_name {
@SuppressWarnings("unchecked")
private void fixdownMin(int k) {
int c = 2 * k;
while (c <= size) {
int m = minChildOrGrandchild(k);
if (m > c + 1) { // grandchild
if (((Comparable<? super K>) array[m]).compareTo(array[k]) >= 0) {
... |
public class class_name {
public static String padTo(int columns, String text, String ellipsis) {
if (text.length() < columns) {
return text;
}
text = ellipsis + text.substring(text.length() - (columns - ellipsis.length()));
return text;
} } | public class class_name {
public static String padTo(int columns, String text, String ellipsis) {
if (text.length() < columns) {
return text; // depends on control dependency: [if], data = [none]
}
text = ellipsis + text.substring(text.length() - (columns - ellipsis.length()));
return text;
} ... |
public class class_name {
public void classAvailable(Class<?> clazz) {
if (!isMonitorable(clazz)) {
return;
}
listenersLock.readLock().lock();
try {
for (ProbeListener listener : allRegisteredListeners) {
ProbeFilter filter = listener.getProbeFilt... | public class class_name {
public void classAvailable(Class<?> clazz) {
if (!isMonitorable(clazz)) {
return; // depends on control dependency: [if], data = [none]
}
listenersLock.readLock().lock();
try {
for (ProbeListener listener : allRegisteredListeners) {
... |
public class class_name {
public Object put(Serializable key, Object value) {
if(component.initialStateMarked() || value instanceof PartialStateHolder) {
Object retVal = deltaMap.put(key, value);
if(retVal==null) {
return defaultMap.put(key,value);
}
... | public class class_name {
public Object put(Serializable key, Object value) {
if(component.initialStateMarked() || value instanceof PartialStateHolder) {
Object retVal = deltaMap.put(key, value);
if(retVal==null) {
return defaultMap.put(key,value); // depends on contro... |
public class class_name {
public void set(int i) {
int offset = i - this.sizeinwords * WORDSIZE;
if (offset + WORDSIZE < 0) {
throw new IllegalArgumentException("unsupported write back");
} else if ((offset + WORDSIZE >= 0) && (offset < 0)) {
final int before = this.buffer.get(this.buffer.size() - 1);
t... | public class class_name {
public void set(int i) {
int offset = i - this.sizeinwords * WORDSIZE;
if (offset + WORDSIZE < 0) {
throw new IllegalArgumentException("unsupported write back");
} else if ((offset + WORDSIZE >= 0) && (offset < 0)) {
final int before = this.buffer.get(this.buffer.size() - 1);
t... |
public class class_name {
public void setBody(CharSequence body) {
String bodyString;
if (body != null) {
bodyString = body.toString();
} else {
bodyString = null;
}
setBody(bodyString);
} } | public class class_name {
public void setBody(CharSequence body) {
String bodyString;
if (body != null) {
bodyString = body.toString(); // depends on control dependency: [if], data = [none]
} else {
bodyString = null; // depends on control dependency: [if], data = [none]... |
public class class_name {
@Override
public RandomVariable getProcessValue(int timeIndex, int componentIndex) {
// Thread safe lazy initialization
synchronized(this) {
if (discreteProcess == null || discreteProcess.length == 0) {
doPrecalculateProcess();
}
}
if(discreteProcess[timeIndex][componentIn... | public class class_name {
@Override
public RandomVariable getProcessValue(int timeIndex, int componentIndex) {
// Thread safe lazy initialization
synchronized(this) {
if (discreteProcess == null || discreteProcess.length == 0) {
doPrecalculateProcess(); // depends on control dependency: [if], data = [none]... |
public class class_name {
public ImmutableSet<ClassInfo> getTopLevelClasses(String packageName) {
checkNotNull(packageName);
ImmutableSet.Builder<ClassInfo> builder = ImmutableSet.builder();
for (ClassInfo classInfo : getTopLevelClasses()) {
if (classInfo.getPackageName().equals(packageName)) {
... | public class class_name {
public ImmutableSet<ClassInfo> getTopLevelClasses(String packageName) {
checkNotNull(packageName);
ImmutableSet.Builder<ClassInfo> builder = ImmutableSet.builder();
for (ClassInfo classInfo : getTopLevelClasses()) {
if (classInfo.getPackageName().equals(packageName)) {
... |
public class class_name {
private Properties loadProperties(File baseDir, Properties currentProperties, String key, boolean override) throws IOException {
Properties loadedProperties = new Properties();
String include = (String) currentProperties.remove(key);
if (!StringUtils.isNullOrEmpty(inc... | public class class_name {
private Properties loadProperties(File baseDir, Properties currentProperties, String key, boolean override) throws IOException {
Properties loadedProperties = new Properties();
String include = (String) currentProperties.remove(key);
if (!StringUtils.isNullOrEmpty(inc... |
public class class_name {
public void readRecordClass(String strRecordClass)
{
String strBaseClass;
Record recClassInfo = this.getMainRecord();
if (!this.readThisClass(strRecordClass))
strBaseClass = "Record";
else
{
strBaseClass = recClassInfo.getFie... | public class class_name {
public void readRecordClass(String strRecordClass)
{
String strBaseClass;
Record recClassInfo = this.getMainRecord();
if (!this.readThisClass(strRecordClass))
strBaseClass = "Record";
else
{
strBaseClass = recClassInfo.getFie... |
public class class_name {
public boolean add(E key, double priority) {
if (size == capacity) {
grow(2 * capacity + 1);
}
elements.add(key);
priorities[size] = priority;
heapifyUp(size);
size++;
return true;
} } | public class class_name {
public boolean add(E key, double priority) {
if (size == capacity) {
grow(2 * capacity + 1);
// depends on control dependency: [if], data = [none]
}
elements.add(key);
priorities[size] = priority;
heapifyUp(size);
size++;
return true;
} } |
public class class_name {
float refreshAndGetAvg() {
long total = 0;
ResultSubpartition[] allPartitions = partition.getAllPartitions();
for (ResultSubpartition part : allPartitions) {
int size = part.unsynchronizedGetNumberOfQueuedBuffers();
total += size;
}
return total / (float) allPartitions.lengt... | public class class_name {
float refreshAndGetAvg() {
long total = 0;
ResultSubpartition[] allPartitions = partition.getAllPartitions();
for (ResultSubpartition part : allPartitions) {
int size = part.unsynchronizedGetNumberOfQueuedBuffers();
total += size; // depends on control dependency: [for], data = [... |
public class class_name {
public void setPhoneNumberOrders(java.util.Collection<PhoneNumberOrder> phoneNumberOrders) {
if (phoneNumberOrders == null) {
this.phoneNumberOrders = null;
return;
}
this.phoneNumberOrders = new java.util.ArrayList<PhoneNumberOrder>(phoneNumbe... | public class class_name {
public void setPhoneNumberOrders(java.util.Collection<PhoneNumberOrder> phoneNumberOrders) {
if (phoneNumberOrders == null) {
this.phoneNumberOrders = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], da... |
public class class_name {
@Override
public void openConditionalComment(String expression) {
StringBuilder sb = new StringBuilder(PRE_TAG);
sb.append(expression).append(POST_TAG);
try {
out.write(sb.toString());
} catch (IOException e) {
throw new JawrLinkRenderingException(e);
}
} } | public class class_name {
@Override
public void openConditionalComment(String expression) {
StringBuilder sb = new StringBuilder(PRE_TAG);
sb.append(expression).append(POST_TAG);
try {
out.write(sb.toString()); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
throw new Ja... |
public class class_name {
public static boolean isPrimitive(Object value) {
if (value == null) {
return true;
} else if (value.getClass().isPrimitive() == true) {
return true;
} else if (Integer.class.isInstance(value)) {
return true;
}... | public class class_name {
public static boolean isPrimitive(Object value) {
if (value == null) {
return true;
// depends on control dependency: [if], data = [none]
} else if (value.getClass().isPrimitive() == true) {
return true;
// depends on control dependency: [if], ... |
public class class_name {
@Override
public void send(final File file, final CallbackHandler handler)
{
log.info("Sending local file to collector: {}", file.getAbsolutePath());
final long startTime = System.nanoTime();
final AsyncCompletionHandler<Response> asyncCompletionHandler = new ... | public class class_name {
@Override
public void send(final File file, final CallbackHandler handler)
{
log.info("Sending local file to collector: {}", file.getAbsolutePath());
final long startTime = System.nanoTime();
final AsyncCompletionHandler<Response> asyncCompletionHandler = new ... |
public class class_name {
public void setInputSecurityGroups(java.util.Collection<InputSecurityGroup> inputSecurityGroups) {
if (inputSecurityGroups == null) {
this.inputSecurityGroups = null;
return;
}
this.inputSecurityGroups = new java.util.ArrayList<InputSecurityGro... | public class class_name {
public void setInputSecurityGroups(java.util.Collection<InputSecurityGroup> inputSecurityGroups) {
if (inputSecurityGroups == null) {
this.inputSecurityGroups = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency... |
public class class_name {
public void reattachConsumer(SIBUuid8 uuid, ConsumableKey ck)
throws SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "reattachConsumer", new Object[] {uuid, ck});
long timeout = LocalConsu... | public class class_name {
public void reattachConsumer(SIBUuid8 uuid, ConsumableKey ck)
throws SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "reattachConsumer", new Object[] {uuid, ck});
long timeout = LocalConsu... |
public class class_name {
private static String getServiceIdIfNotProvided(ServiceMetadata metadata, String interfaceName) {
if (INTERFACE_NAME_TO_SERVICE_ID.containsKey(interfaceName)) {
return INTERFACE_NAME_TO_SERVICE_ID.get(interfaceName);
}
String serviceId = metadata.getServic... | public class class_name {
private static String getServiceIdIfNotProvided(ServiceMetadata metadata, String interfaceName) {
if (INTERFACE_NAME_TO_SERVICE_ID.containsKey(interfaceName)) {
return INTERFACE_NAME_TO_SERVICE_ID.get(interfaceName); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private boolean isActivityMatching(Class<? extends Activity> activityClass, Activity currentActivity){
if(currentActivity != null && currentActivity.getClass().equals(activityClass)) {
return true;
}
return false;
} } | public class class_name {
private boolean isActivityMatching(Class<? extends Activity> activityClass, Activity currentActivity){
if(currentActivity != null && currentActivity.getClass().equals(activityClass)) {
return true; // depends on control dependency: [if], data = [none]
}
return false;
} } |
public class class_name {
public static CertStore fromSignedData(final CMSSignedData signedData) {
CertificateFactory factory;
try {
factory = CertificateFactory.getInstance("X509");
} catch (CertificateException e) {
throw new RuntimeException(e);
}
Sto... | public class class_name {
public static CertStore fromSignedData(final CMSSignedData signedData) {
CertificateFactory factory;
try {
factory = CertificateFactory.getInstance("X509"); // depends on control dependency: [try], data = [none]
} catch (CertificateException e) {
... |
public class class_name {
public void marshall(RefreshSchemasStatus refreshSchemasStatus, ProtocolMarshaller protocolMarshaller) {
if (refreshSchemasStatus == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(RefreshSchemasStatus refreshSchemasStatus, ProtocolMarshaller protocolMarshaller) {
if (refreshSchemasStatus == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
public void setRange(String range) {
String single = range.trim();
int hyphenIndex = range.indexOf('-');
if (hyphenIndex > 0) {
this.start = rangeSingle(range.substring(0, hyphenIndex));
this.end = rangeSingle(range.substring(hyphenIndex + 1));... | public class class_name {
public void setRange(String range) {
String single = range.trim();
int hyphenIndex = range.indexOf('-');
if (hyphenIndex > 0) {
this.start = rangeSingle(range.substring(0, hyphenIndex)); // depends on control dependency: [if], data = [none]
thi... |
public class class_name {
public List<Descriptor<ViewJobFilter>> getJobFiltersDescriptors() {
StaplerRequest request = Stapler.getCurrentRequest();
if (request != null) {
View view = request.findAncestorObject(clazz);
return view == null ? DescriptorVisibilityFilter.applyType(cl... | public class class_name {
public List<Descriptor<ViewJobFilter>> getJobFiltersDescriptors() {
StaplerRequest request = Stapler.getCurrentRequest();
if (request != null) {
View view = request.findAncestorObject(clazz);
return view == null ? DescriptorVisibilityFilter.applyType(cl... |
public class class_name {
public SimpleDialog itemTextAppearance(int resId){
if(mItemTextAppearance != resId){
mItemTextAppearance = resId;
if(mAdapter != null)
mAdapter.notifyDataSetChanged();
}
return this;
} } | public class class_name {
public SimpleDialog itemTextAppearance(int resId){
if(mItemTextAppearance != resId){
mItemTextAppearance = resId; // depends on control dependency: [if], data = [none]
if(mAdapter != null)
mAdapter.notifyDataSetChanged();
}
retur... |
public class class_name {
protected void configureOrcidClient(final Collection<BaseClient> properties) {
val db = pac4jProperties.getOrcid();
if (StringUtils.isNotBlank(db.getId()) && StringUtils.isNotBlank(db.getSecret())) {
val client = new OrcidClient(db.getId(), db.getSecret());
... | public class class_name {
protected void configureOrcidClient(final Collection<BaseClient> properties) {
val db = pac4jProperties.getOrcid();
if (StringUtils.isNotBlank(db.getId()) && StringUtils.isNotBlank(db.getSecret())) {
val client = new OrcidClient(db.getId(), db.getSecret());
... |
public class class_name {
protected Map<String, Object> findAccountViaRestApi(final Map<String, Object> headers) {
HttpResponse response = null;
try {
response = HttpUtils.execute(properties.getUrl(), properties.getMethod(),
properties.getBasicAuthUsername(), properties.getB... | public class class_name {
protected Map<String, Object> findAccountViaRestApi(final Map<String, Object> headers) {
HttpResponse response = null;
try {
response = HttpUtils.execute(properties.getUrl(), properties.getMethod(),
properties.getBasicAuthUsername(), properties.getB... |
public class class_name {
private void checkForEmptyBuildSetTask(BuildSetTask buildSetTask) {
if (buildSetTask.getBuildTasks() == null || buildSetTask.getBuildTasks().isEmpty()) {
updateBuildSetTaskStatus(buildSetTask, BuildSetStatus.REJECTED, "Build config set is empty");
}
} } | public class class_name {
private void checkForEmptyBuildSetTask(BuildSetTask buildSetTask) {
if (buildSetTask.getBuildTasks() == null || buildSetTask.getBuildTasks().isEmpty()) {
updateBuildSetTaskStatus(buildSetTask, BuildSetStatus.REJECTED, "Build config set is empty"); // depends on control dep... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.