code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public IRenderingElement generate(IReaction reaction, RendererModel model) {
if (!model.getParameter(ShowReactionBoxes.class).getValue()) return null;
double separation = model.getParameter(BondLength.class).getValue()
/ model.getParameter(Scale.c... | public class class_name {
@Override
public IRenderingElement generate(IReaction reaction, RendererModel model) {
if (!model.getParameter(ShowReactionBoxes.class).getValue()) return null;
double separation = model.getParameter(BondLength.class).getValue()
/ model.getParameter(Scale.c... |
public class class_name {
public void marshall(Server server, ProtocolMarshaller protocolMarshaller) {
if (server == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(server.getAssociatePublicIpAddress... | public class class_name {
public void marshall(Server server, ProtocolMarshaller protocolMarshaller) {
if (server == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(server.getAssociatePublicIpAddress... |
public class class_name {
public static <C> ProgramTargetDescriptor of(C clusterId, JobID jobId, String webInterfaceUrl) {
String clusterIdString;
try {
// check if cluster id has a toString method
clusterId.getClass().getDeclaredMethod("toString");
clusterIdString = clusterId.toString();
} catch (NoSuc... | public class class_name {
public static <C> ProgramTargetDescriptor of(C clusterId, JobID jobId, String webInterfaceUrl) {
String clusterIdString;
try {
// check if cluster id has a toString method
clusterId.getClass().getDeclaredMethod("toString"); // depends on control dependency: [try], data = [none]
c... |
public class class_name {
public static void flushQuietly(Flushable flushable) {
try {
flush(flushable, true);
} catch (IOException e) {
logger.log(Level.SEVERE, "IOException should not have been thrown.", e);
}
} } | public class class_name {
public static void flushQuietly(Flushable flushable) {
try {
flush(flushable, true); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
logger.log(Level.SEVERE, "IOException should not have been thrown.", e);
} // depends on control depend... |
public class class_name {
public void marshall(JobSummary jobSummary, ProtocolMarshaller protocolMarshaller) {
if (jobSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(jobSummary.getJobArn()... | public class class_name {
public void marshall(JobSummary jobSummary, ProtocolMarshaller protocolMarshaller) {
if (jobSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(jobSummary.getJobArn()... |
public class class_name {
public void format(StringBuffer fmt, Set done, Set todo, int indent) {
formatName(fmt, indent);
fmt.append("[");
if (fields != null) {
fmt.append("\n");
for (int i = 0; i < fields.length; i++) {
if (i > 0)
fmt.append(",\n");
fields[i].format(f... | public class class_name {
public void format(StringBuffer fmt, Set done, Set todo, int indent) {
formatName(fmt, indent);
fmt.append("[");
if (fields != null) {
fmt.append("\n"); // depends on control dependency: [if], data = [none]
for (int i = 0; i < fields.length; i++) {
if (i > 0)
... |
public class class_name {
public void marshall(InstanceSummary instanceSummary, ProtocolMarshaller protocolMarshaller) {
if (instanceSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(instanc... | public class class_name {
public void marshall(InstanceSummary instanceSummary, ProtocolMarshaller protocolMarshaller) {
if (instanceSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(instanc... |
public class class_name {
static void read_value(GeneratorAdapter mg,
String className,
Set<String> classConstantFieldNames,
Method method,
Class<?> valueClass,
Type valueType,
... | public class class_name {
static void read_value(GeneratorAdapter mg,
String className,
Set<String> classConstantFieldNames,
Method method,
Class<?> valueClass,
Type valueType,
... |
public class class_name {
public void publish(Boolean dontStop) {
// null is as good as false according to Boolean.valueOf() so if null, interpret as false
if (dontStop == null || !dontStop) {
IConnection conn = Red5.getConnectionLocal();
if (conn instanceof IStreamCapableCo... | public class class_name {
public void publish(Boolean dontStop) {
// null is as good as false according to Boolean.valueOf() so if null, interpret as false
if (dontStop == null || !dontStop) {
IConnection conn = Red5.getConnectionLocal();
if (conn instanceof IStreamCapableCo... |
public class class_name {
public Matrix<E> set(E element, int x, int y) {
if (this.columns.size() < x) {
columns.set(x, new ArrayList<>());
}
this.columns.get(x).set(y, element);
return this;
} } | public class class_name {
public Matrix<E> set(E element, int x, int y) {
if (this.columns.size() < x) {
columns.set(x, new ArrayList<>()); // depends on control dependency: [if], data = [none]
}
this.columns.get(x).set(y, element);
return this;
} } |
public class class_name {
public static KV<String, Forest> remove(String key) {
KV<String, Forest> kv = AMBIGUITY.get(key);
if (kv != null && kv.getV() != null) {
kv.getV().clear();
}
MyStaticValue.ENV.remove(key);
return AMBIGUITY.remove(key);
} } | public class class_name {
public static KV<String, Forest> remove(String key) {
KV<String, Forest> kv = AMBIGUITY.get(key);
if (kv != null && kv.getV() != null) {
kv.getV().clear(); // depends on control dependency: [if], data = [none]
}
MyStaticValue.ENV.remove(key);
... |
public class class_name {
public ServletHolder addServlet(String name,
String pathSpec,
String servletClass,
String forcedPath)
{
ServletHolder holder = getServletHolder(name);
if (holder==nu... | public class class_name {
public ServletHolder addServlet(String name,
String pathSpec,
String servletClass,
String forcedPath)
{
ServletHolder holder = getServletHolder(name);
if (holder==nu... |
public class class_name {
@Override
public final AbstractGauge init(final int WIDTH, final int HEIGHT) {
final int GAUGE_WIDTH = isFrameVisible() ? WIDTH : getGaugeBounds().width;
final int GAUGE_HEIGHT = isFrameVisible() ? HEIGHT : getGaugeBounds().height;
if (GAUGE_WIDTH <= 1 || GAUGE_HE... | public class class_name {
@Override
public final AbstractGauge init(final int WIDTH, final int HEIGHT) {
final int GAUGE_WIDTH = isFrameVisible() ? WIDTH : getGaugeBounds().width;
final int GAUGE_HEIGHT = isFrameVisible() ? HEIGHT : getGaugeBounds().height;
if (GAUGE_WIDTH <= 1 || GAUGE_HE... |
public class class_name {
private boolean compareAndSet(final State current, final State next) {
if (state.compareAndSet(current, next)) {
return true;
}
parkNanos(1); // back-off
return false;
} } | public class class_name {
private boolean compareAndSet(final State current, final State next) {
if (state.compareAndSet(current, next)) {
return true; // depends on control dependency: [if], data = [none]
}
parkNanos(1); // back-off
return false;
} } |
public class class_name {
void processAlterTableDropColumn(Table table, String colName,
boolean cascade) {
int colindex = table.getColumnIndex(colName);
if (table.getColumnCount() == 1) {
throw Error.error(ErrorCode.X_42591);
}
session... | public class class_name {
void processAlterTableDropColumn(Table table, String colName,
boolean cascade) {
int colindex = table.getColumnIndex(colName);
if (table.getColumnCount() == 1) {
throw Error.error(ErrorCode.X_42591);
}
session... |
public class class_name {
private void solve(int method) throws NullPointerException {
// solution exists
if(solved) {
return;
}
// bring in reduced row echelon form
if(!reducedRowEchelonForm) {
reducedRowEchelonForm(method);
}
if(!isSolvable(method)) {
if(LOG.isDebuggin... | public class class_name {
private void solve(int method) throws NullPointerException {
// solution exists
if(solved) {
return;
}
// bring in reduced row echelon form
if(!reducedRowEchelonForm) {
reducedRowEchelonForm(method);
}
if(!isSolvable(method)) {
if(LOG.isDebuggin... |
public class class_name {
public void watchStartup(int startingTimeout, int startupTimeout)
throws Exception {
// use this for timeout checks later
long startTime = System.currentTimeMillis();
ServerStatusMessage[] messages = getAllMessages();
ServerStatusMessage lastMess... | public class class_name {
public void watchStartup(int startingTimeout, int startupTimeout)
throws Exception {
// use this for timeout checks later
long startTime = System.currentTimeMillis();
ServerStatusMessage[] messages = getAllMessages();
ServerStatusMessage lastMess... |
public class class_name {
private List<Long> searchBigFile(File srcFile, byte[] searchBytes, int numOfThreads, boolean useOptimization, long startPosition) {
progressCache = null;
if (useOptimization) {
optimize(srcFile.length());
}
_profile_lastStartTime = System.currentTimeMillis();
if (numOfThreads... | public class class_name {
private List<Long> searchBigFile(File srcFile, byte[] searchBytes, int numOfThreads, boolean useOptimization, long startPosition) {
progressCache = null;
if (useOptimization) {
optimize(srcFile.length()); // depends on control dependency: [if], data = [none]
}
_profile_lastStart... |
public class class_name {
private static String resolveFieldNumbers(
Optional<Descriptor> optDescriptor, String fmt, Iterable<Integer> fieldNumbers) {
if (optDescriptor.isPresent()) {
Descriptor descriptor = optDescriptor.get();
List<String> strings = Lists.newArrayList();
for (int fieldNum... | public class class_name {
private static String resolveFieldNumbers(
Optional<Descriptor> optDescriptor, String fmt, Iterable<Integer> fieldNumbers) {
if (optDescriptor.isPresent()) {
Descriptor descriptor = optDescriptor.get();
List<String> strings = Lists.newArrayList();
for (int fieldNum... |
public class class_name {
@SuppressWarnings("unused")
private List<CmsResource> getLinkSources(CmsObject cms, CmsResource resource, HashSet<CmsUUID> deleteIds)
throws CmsException {
List<CmsRelation> relations = cms.getRelationsForResource(resource, CmsRelationFilter.SOURCES);
List<CmsResource... | public class class_name {
@SuppressWarnings("unused")
private List<CmsResource> getLinkSources(CmsObject cms, CmsResource resource, HashSet<CmsUUID> deleteIds)
throws CmsException {
List<CmsRelation> relations = cms.getRelationsForResource(resource, CmsRelationFilter.SOURCES);
List<CmsResource... |
public class class_name {
public java.lang.String getNobuildFilesRegex() {
java.lang.Object ref = nobuildFilesRegex_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.la... | public class class_name {
public java.lang.String getNobuildFilesRegex() {
java.lang.Object ref = nobuildFilesRegex_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref; // depends on control dependency: [if], data = [none]
} else {
com.google.protobuf.ByteString bs =
... |
public class class_name {
private void pauseAutoCycle(){
if(mCycling){
mCycleTimer.cancel();
mCycleTask.cancel();
mCycling = false;
}else{
if(mResumingTimer != null && mResumingTask != null){
recoverCycle();
}
}
} } | public class class_name {
private void pauseAutoCycle(){
if(mCycling){
mCycleTimer.cancel(); // depends on control dependency: [if], data = [none]
mCycleTask.cancel(); // depends on control dependency: [if], data = [none]
mCycling = false; // depends on control dependency: [... |
public class class_name {
HttpConnection asRequest() {
DatabaseURIHelper builder = getViewURIBuilder();
for (Map.Entry<String, Object> queryParameter : processParameters(Parameter.Type
.QUERY_PARAMETER).entrySet()) {
builder.query(queryParameter.getKey(), queryParameter.getV... | public class class_name {
HttpConnection asRequest() {
DatabaseURIHelper builder = getViewURIBuilder();
for (Map.Entry<String, Object> queryParameter : processParameters(Parameter.Type
.QUERY_PARAMETER).entrySet()) {
builder.query(queryParameter.getKey(), queryParameter.getV... |
public class class_name {
@Override
public MethodVisitor visitMethod(
int access, String base, String desc, String signature, String[] exceptions) {
MethodVisitor mv = cv.visitMethod(access, base, desc, signature, exceptions);
if (mv != null) {
// We need to compute stackmaps (see
// Alloc... | public class class_name {
@Override
public MethodVisitor visitMethod(
int access, String base, String desc, String signature, String[] exceptions) {
MethodVisitor mv = cv.visitMethod(access, base, desc, signature, exceptions);
if (mv != null) {
// We need to compute stackmaps (see
// Alloc... |
public class class_name {
protected DoubleLinkedElement<T> removeElem(final T key) {
DoubleLinkedElement<T> found = (DoubleLinkedElement<T>) (super
.removeElem(key));
if (found == null) {
return null;
}
// update linked list
if (found.after != null) {
found.after.before = found... | public class class_name {
protected DoubleLinkedElement<T> removeElem(final T key) {
DoubleLinkedElement<T> found = (DoubleLinkedElement<T>) (super
.removeElem(key));
if (found == null) {
return null; // depends on control dependency: [if], data = [none]
}
// update linked list
if (f... |
public class class_name {
public String getReferenceSignature(ExecutableElement element) {
StringBuilder sb = new StringBuilder("(");
// If the method is an inner class constructor, prepend the outer class type.
if (ElementUtil.isConstructor(element)) {
TypeElement declaringClass = ElementUtil.getDe... | public class class_name {
public String getReferenceSignature(ExecutableElement element) {
StringBuilder sb = new StringBuilder("(");
// If the method is an inner class constructor, prepend the outer class type.
if (ElementUtil.isConstructor(element)) {
TypeElement declaringClass = ElementUtil.getDe... |
public class class_name {
public java.util.List<String> getRegionOrder() {
if (regionOrder == null) {
regionOrder = new com.amazonaws.internal.SdkInternalList<String>();
}
return regionOrder;
} } | public class class_name {
public java.util.List<String> getRegionOrder() {
if (regionOrder == null) {
regionOrder = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return regionOrder;
} } |
public class class_name {
static public int skipWhiteSpace(byte[] data, int start) {
int index = start + 1;
while (index < data.length && BNFHeaders.SPACE == data[index]) {
index++;
}
return index;
} } | public class class_name {
static public int skipWhiteSpace(byte[] data, int start) {
int index = start + 1;
while (index < data.length && BNFHeaders.SPACE == data[index]) {
index++; // depends on control dependency: [while], data = [none]
}
return index;
} } |
public class class_name {
private Result getSummaryStatus(){
StatsStorage ss = knownSessionIDs.get(currentSessionID);
if(ss == null){
log.debug("getOptimizationConfig(): Session ID is unknown: {}", currentSessionID);
return ok();
}
Persistable p = ss.getStaticIn... | public class class_name {
private Result getSummaryStatus(){
StatsStorage ss = knownSessionIDs.get(currentSessionID);
if(ss == null){
log.debug("getOptimizationConfig(): Session ID is unknown: {}", currentSessionID); // depends on control dependency: [if], data = [none]
return o... |
public class class_name {
public static void applyHouseholder(DMatrixSparseCSC V , int colV, double beta ,
double []x) {
int idx0 = V.col_idx[colV];
int idx1 = V.col_idx[colV+1];
// Compute tau = v'*x
double tau = 0;
for (int p = idx0; p ... | public class class_name {
public static void applyHouseholder(DMatrixSparseCSC V , int colV, double beta ,
double []x) {
int idx0 = V.col_idx[colV];
int idx1 = V.col_idx[colV+1];
// Compute tau = v'*x
double tau = 0;
for (int p = idx0; p ... |
public class class_name {
public double score(int[] featureVector, int currentTag)
{
double score = 0;
for (int index : featureVector)
{
if (index == -1)
{
continue;
}
else if (index < -1 || index >= featureMap.size())
... | public class class_name {
public double score(int[] featureVector, int currentTag)
{
double score = 0;
for (int index : featureVector)
{
if (index == -1)
{
continue;
}
else if (index < -1 || index >= featureMap.size())
... |
public class class_name {
private static <T> T[] newEnumMap(Class<?> elementType,
Function<SessionProtocol, T> factory,
SessionProtocol... allowedProtocols) {
@SuppressWarnings("unchecked")
final T[] maps = (T[]) Array.newInsta... | public class class_name {
private static <T> T[] newEnumMap(Class<?> elementType,
Function<SessionProtocol, T> factory,
SessionProtocol... allowedProtocols) {
@SuppressWarnings("unchecked")
final T[] maps = (T[]) Array.newInsta... |
public class class_name {
@Override
public Object addingBundle(Bundle bundle, BundleEvent event) {
// Packages become available on resolution, so take that as the state we care about
//ignore gateway bundles
if (!isGateway(bundle)) {
/*
* Make sure privatePackages ... | public class class_name {
@Override
public Object addingBundle(Bundle bundle, BundleEvent event) {
// Packages become available on resolution, so take that as the state we care about
//ignore gateway bundles
if (!isGateway(bundle)) {
/*
* Make sure privatePackages ... |
public class class_name {
public Element toElement(final SalesforceDatastore datastore) {
final Element ds = getDocument().createElement("salesforce-datastore");
ds.setAttribute("name", datastore.getName());
if (!Strings.isNullOrEmpty(datastore.getDescription())) {
ds.setAttribute("... | public class class_name {
public Element toElement(final SalesforceDatastore datastore) {
final Element ds = getDocument().createElement("salesforce-datastore");
ds.setAttribute("name", datastore.getName());
if (!Strings.isNullOrEmpty(datastore.getDescription())) {
ds.setAttribute("... |
public class class_name {
public void marshall(ListApplicationRevisionsRequest listApplicationRevisionsRequest, ProtocolMarshaller protocolMarshaller) {
if (listApplicationRevisionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(ListApplicationRevisionsRequest listApplicationRevisionsRequest, ProtocolMarshaller protocolMarshaller) {
if (listApplicationRevisionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
void connectionClosed(final SibRaConnection connection) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "connectionClosed", connection);
}
final ConnectionEvent event = new ConnectionEvent(this,
... | public class class_name {
void connectionClosed(final SibRaConnection connection) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "connectionClosed", connection); // depends on control dependency: [if], data = [none]
}
final Connect... |
public class class_name {
protected SQLException executeExceptionEpilogue(SQLException sqle) {
//if has a failover, closing the statement
if (sqle.getSQLState() != null && sqle.getSQLState().startsWith("08")) {
try {
close();
} catch (SQLException sqlee) {
//eat exception
}
... | public class class_name {
protected SQLException executeExceptionEpilogue(SQLException sqle) {
//if has a failover, closing the statement
if (sqle.getSQLState() != null && sqle.getSQLState().startsWith("08")) {
try {
close(); // depends on control dependency: [try], data = [none]
} catch (S... |
public class class_name {
@Override
public void initSprite(int width, int height, int x, int y, boolean rotated)
{
if (width == 0 || height == 0)
{
//assume block atlas
width = BLOCK_TEXTURE_WIDTH;
height = BLOCK_TEXTURE_HEIGHT;
}
this.sheetWidth = width;
this.sheetHeight = height;
super.initSpr... | public class class_name {
@Override
public void initSprite(int width, int height, int x, int y, boolean rotated)
{
if (width == 0 || height == 0)
{
//assume block atlas
width = BLOCK_TEXTURE_WIDTH; // depends on control dependency: [if], data = [none]
height = BLOCK_TEXTURE_HEIGHT; // depends on control... |
public class class_name {
@Override
public Control[] getControls() {
Control[] controls = line.getControls();
for (int i = 0; i < controls.length; i++) {
Control control = controls[i];
if (control.getType().toString().equals(BooleanControl.Type.MUTE.toString())) {
... | public class class_name {
@Override
public Control[] getControls() {
Control[] controls = line.getControls();
for (int i = 0; i < controls.length; i++) {
Control control = controls[i];
if (control.getType().toString().equals(BooleanControl.Type.MUTE.toString())) {
... |
public class class_name {
public static void resolve(Map<String, String> env) {
for (Map.Entry<String,String> entry: env.entrySet()) {
entry.setValue(Util.replaceMacro(entry.getValue(), env));
}
} } | public class class_name {
public static void resolve(Map<String, String> env) {
for (Map.Entry<String,String> entry: env.entrySet()) {
entry.setValue(Util.replaceMacro(entry.getValue(), env)); // depends on control dependency: [for], data = [entry]
}
} } |
public class class_name {
public void startLink(final VertexContext startVertex) {
if (startVertex == null) {
return;
}
final AbstractLayout<Object, JobGraphLink> graphLayout = _graphContext.getGraphLayout();
final int x = (int) graphLayout.getX(startVertex.getVertex());
... | public class class_name {
public void startLink(final VertexContext startVertex) {
if (startVertex == null) {
return; // depends on control dependency: [if], data = [none]
}
final AbstractLayout<Object, JobGraphLink> graphLayout = _graphContext.getGraphLayout();
final int x... |
public class class_name {
private final void checkMagic(final DataInputStream dis)
throws LockFile.FileSecurityException,
LockFile.UnexpectedEndOfFileException,
LockFile.UnexpectedFileIOException, LockFile.WrongMagicException {
boolean success = true;
final byte[] magic ... | public class class_name {
private final void checkMagic(final DataInputStream dis)
throws LockFile.FileSecurityException,
LockFile.UnexpectedEndOfFileException,
LockFile.UnexpectedFileIOException, LockFile.WrongMagicException {
boolean success = true;
final byte[] magic ... |
public class class_name {
public GetMembersResult withMembers(Member... members) {
if (this.members == null) {
setMembers(new java.util.ArrayList<Member>(members.length));
}
for (Member ele : members) {
this.members.add(ele);
}
return this;
} } | public class class_name {
public GetMembersResult withMembers(Member... members) {
if (this.members == null) {
setMembers(new java.util.ArrayList<Member>(members.length)); // depends on control dependency: [if], data = [none]
}
for (Member ele : members) {
this.members.a... |
public class class_name {
public double[] getMonthlyMean () {
// ---------------------------------------------
// Provides a mean for days in each month/year pair. (12 months x N years of data)
// e.g. (12 x N years) of means returned- one for all days in January in 1990,
//... | public class class_name {
public double[] getMonthlyMean () {
// ---------------------------------------------
// Provides a mean for days in each month/year pair. (12 months x N years of data)
// e.g. (12 x N years) of means returned- one for all days in January in 1990,
//... |
public class class_name {
public boolean setCurrentTheme(int theme){
if (Looper.getMainLooper().getThread() != Thread.currentThread())
return false;
if(mCurrentTheme != theme){
mCurrentTheme = theme;
SharedPreferences pref = getSharedPreferences(mContext);
... | public class class_name {
public boolean setCurrentTheme(int theme){
if (Looper.getMainLooper().getThread() != Thread.currentThread())
return false;
if(mCurrentTheme != theme){
mCurrentTheme = theme; // depends on control dependency: [if], data = [none]
SharedPrefer... |
public class class_name {
public EClass getIfcAxis2Placement() {
if (ifcAxis2PlacementEClass == null) {
ifcAxis2PlacementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(938);
}
return ifcAxis2PlacementEClass;
} } | public class class_name {
public EClass getIfcAxis2Placement() {
if (ifcAxis2PlacementEClass == null) {
ifcAxis2PlacementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(938);
// depends on control dependency: [if], data = [none]
}
return ifcA... |
public class class_name {
public void marshall(InventoryResultItem inventoryResultItem, ProtocolMarshaller protocolMarshaller) {
if (inventoryResultItem == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(InventoryResultItem inventoryResultItem, ProtocolMarshaller protocolMarshaller) {
if (inventoryResultItem == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
private HostFailoverPolicy getFailoverPolicy(String failoverOption)
{
if (failoverOption != null)
{
if (Constants.FAIL_FAST.equals(failoverOption))
{
return HostFailoverPolicy.FAIL_FAST;
}
else if (Constants.O... | public class class_name {
private HostFailoverPolicy getFailoverPolicy(String failoverOption)
{
if (failoverOption != null)
{
if (Constants.FAIL_FAST.equals(failoverOption))
{
return HostFailoverPolicy.FAIL_FAST; // depends on control dependency: [if], data =... |
public class class_name {
public DoubleProperty lengthProperty() {
if (this.length == null) {
this.length = new ReadOnlyDoubleWrapper();
this.length.bind(Bindings.createDoubleBinding(() -> Path2afp.calculatesPathLength(getPathIterator()),
innerTypesProperty(), innerCoordinatesProperty()));
}
return th... | public class class_name {
public DoubleProperty lengthProperty() {
if (this.length == null) {
this.length = new ReadOnlyDoubleWrapper(); // depends on control dependency: [if], data = [none]
this.length.bind(Bindings.createDoubleBinding(() -> Path2afp.calculatesPathLength(getPathIterator()),
innerTypesPro... |
public class class_name {
public Observable<ServiceResponse<Page<EventInner>>> listEventsNextWithServiceResponseAsync(final String nextPageLink) {
return listEventsNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<EventInner>>, Observable<ServiceResponse<Page<EventInner>>>... | public class class_name {
public Observable<ServiceResponse<Page<EventInner>>> listEventsNextWithServiceResponseAsync(final String nextPageLink) {
return listEventsNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<EventInner>>, Observable<ServiceResponse<Page<EventInner>>>... |
public class class_name {
protected void replaceWithChildren(Element element)
{
Element parent = (Element) element.getParentNode();
while (element.getFirstChild() != null) {
parent.insertBefore(element.removeChild(element.getFirstChild()), element);
}
parent.removeChild(... | public class class_name {
protected void replaceWithChildren(Element element)
{
Element parent = (Element) element.getParentNode();
while (element.getFirstChild() != null) {
parent.insertBefore(element.removeChild(element.getFirstChild()), element); // depends on control dependency: [wh... |
public class class_name {
@Override
public double getWeight(double distance, double max, double stddev) {
if(stddev <= 0) {
return 1;
}
double scaleddistance = distance / stddev;
return stddev * FastMath.exp(-.5 * scaleddistance);
} } | public class class_name {
@Override
public double getWeight(double distance, double max, double stddev) {
if(stddev <= 0) {
return 1; // depends on control dependency: [if], data = [none]
}
double scaleddistance = distance / stddev;
return stddev * FastMath.exp(-.5 * scaleddistance);
} } |
public class class_name {
public JSONObject faceAudit(List<String> imgPaths, EImgType type,
HashMap<String, String> options) {
if (type == EImgType.FILE) {
try {
byte[][] imgData = new byte[imgPaths.size()][];
int idx = 0;
... | public class class_name {
public JSONObject faceAudit(List<String> imgPaths, EImgType type,
HashMap<String, String> options) {
if (type == EImgType.FILE) {
try {
byte[][] imgData = new byte[imgPaths.size()][];
int idx = 0;
... |
public class class_name {
private HttpUriRequest makeRequest(URI uri, final String requestBody)
{
HttpUriRequest request;
if (m_method == HttpMethod.GET) {
request = new HttpGet(uri + "?" + requestBody);
} else if (m_method == HttpMethod.POST) {
if (m_isHdfs) {
... | public class class_name {
private HttpUriRequest makeRequest(URI uri, final String requestBody)
{
HttpUriRequest request;
if (m_method == HttpMethod.GET) {
request = new HttpGet(uri + "?" + requestBody); // depends on control dependency: [if], data = [none]
} else if (m_method =... |
public class class_name {
@Override
public boolean equalsIgnoringTypeParams(final TypeSignature other) {
if (other instanceof ClassRefTypeSignature) {
if (((ClassRefTypeSignature) other).className.equals("java.lang.Object")) {
// java.lang.Object can be reconciled with any type,... | public class class_name {
@Override
public boolean equalsIgnoringTypeParams(final TypeSignature other) {
if (other instanceof ClassRefTypeSignature) {
if (((ClassRefTypeSignature) other).className.equals("java.lang.Object")) {
// java.lang.Object can be reconciled with any type,... |
public class class_name {
public GroupZipper replace(Group group) {
if (parent == null) {
node = group;
} else {
parent.getNode().getGroups().set(index, group);
}
return this;
} } | public class class_name {
public GroupZipper replace(Group group) {
if (parent == null) {
node = group;
// depends on control dependency: [if], data = [none]
} else {
parent.getNode().getGroups().set(index, group);
// depends on control dependency: [if], data = [none]
... |
public class class_name {
private boolean applyCorsConfig(final HttpRequest req, final AbstractHttpQuery query)
throws BadRequestException {
final String domain = req.headers().get("Origin");
// catch CORS requests and add the header or refuse them if the domain
// list has been configured
... | public class class_name {
private boolean applyCorsConfig(final HttpRequest req, final AbstractHttpQuery query)
throws BadRequestException {
final String domain = req.headers().get("Origin");
// catch CORS requests and add the header or refuse them if the domain
// list has been configured
... |
public class class_name {
public static List<Method> getAllDeclaredMethods(Class<?> clazz) {
List<Method> result = new ArrayList<>();
while (clazz != null) {
Method[] methods = clazz.getDeclaredMethods();
Collections.addAll(result, methods);
clazz = clazz.getSuperclass();
}
return result;
} } | public class class_name {
public static List<Method> getAllDeclaredMethods(Class<?> clazz) {
List<Method> result = new ArrayList<>();
while (clazz != null) {
Method[] methods = clazz.getDeclaredMethods();
Collections.addAll(result, methods); // depends on control dependency: [while], data = [none]
clazz =... |
public class class_name {
public void marshall(ClearDefaultAuthorizerRequest clearDefaultAuthorizerRequest, ProtocolMarshaller protocolMarshaller) {
if (clearDefaultAuthorizerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ClearDefaultAuthorizerRequest clearDefaultAuthorizerRequest, ProtocolMarshaller protocolMarshaller) {
if (clearDefaultAuthorizerRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static <T, E extends I18nId> SLF4JLogger<T, ?, E> getLogger(Class<T> clazz, Class<?> caller) {
org.slf4j.Logger logger = LoggerFactory.getLogger(clazz);
if(logger instanceof LocationAwareLogger) {
return new SLF4JCallerLocationAwareLogger<T, E>((LocationAwareLogger)logger, calle... | public class class_name {
public static <T, E extends I18nId> SLF4JLogger<T, ?, E> getLogger(Class<T> clazz, Class<?> caller) {
org.slf4j.Logger logger = LoggerFactory.getLogger(clazz);
if(logger instanceof LocationAwareLogger) {
return new SLF4JCallerLocationAwareLogger<T, E>((LocationAwareLogger)logger, calle... |
public class class_name {
@Override
public MessageProperties toMessageProperties(AMQP.BasicProperties source, Envelope envelope, String charset) {
final MessageProperties messageProperties = super.toMessageProperties(source, envelope, charset);
final TraceeFilterConfiguration filterConfiguration = backend.getCon... | public class class_name {
@Override
public MessageProperties toMessageProperties(AMQP.BasicProperties source, Envelope envelope, String charset) {
final MessageProperties messageProperties = super.toMessageProperties(source, envelope, charset);
final TraceeFilterConfiguration filterConfiguration = backend.getCon... |
public class class_name {
private Set<String> getKeysForUser(CmsUser user) {
Set<String> keysToRemove = new HashSet<String>();
for (Map.Entry<String, CmsUserData> entry : m_storage.entrySet()) {
String key = entry.getKey();
int separatorPos = key.lastIndexOf(KEY_SEPARATOR);
... | public class class_name {
private Set<String> getKeysForUser(CmsUser user) {
Set<String> keysToRemove = new HashSet<String>();
for (Map.Entry<String, CmsUserData> entry : m_storage.entrySet()) {
String key = entry.getKey();
int separatorPos = key.lastIndexOf(KEY_SEPARATOR);
... |
public class class_name {
@Override
public V get(K k) throws ExecutionException {
V value = getIfPresent(k);
if (null == value) {
try {
value = cacheLoader.load(k);
if (null != value) {
put(k, value);
}
} catch (Exception e) {
LOGGER.warn("Failed to load ... | public class class_name {
@Override
public V get(K k) throws ExecutionException {
V value = getIfPresent(k);
if (null == value) {
try {
value = cacheLoader.load(k); // depends on control dependency: [try], data = [none]
if (null != value) {
put(k, value); // depends on control... |
public class class_name {
public static void hideUploadButtonWhenNeeded(final Page page, final Session session,
final UserManager userManager,
final Boolean lockdownUploadProjects) {
final User user = session.getUser();
if (lockdownUploadProjects && !UserUtils.hasPermissionforAction(userManager, u... | public class class_name {
public static void hideUploadButtonWhenNeeded(final Page page, final Session session,
final UserManager userManager,
final Boolean lockdownUploadProjects) {
final User user = session.getUser();
if (lockdownUploadProjects && !UserUtils.hasPermissionforAction(userManager, u... |
public class class_name {
public static void main(String[] args) {
boolean verbose = args.length == 1 && "-v".equals(args[0]);
Version version = HBaseVersion.get();
System.out.println(version.getMajorVersion());
if (verbose) {
System.out.println("versionString=" + getVersionString());
}
} } | public class class_name {
public static void main(String[] args) {
boolean verbose = args.length == 1 && "-v".equals(args[0]);
Version version = HBaseVersion.get();
System.out.println(version.getMajorVersion());
if (verbose) {
System.out.println("versionString=" + getVersionString()); // depends ... |
public class class_name {
public void applyAndJournal(Supplier<JournalContext> context, UpdateInodeEntry entry) {
try {
applyUpdateInode(entry);
context.get().append(JournalEntry.newBuilder().setUpdateInode(entry).build());
} catch (Throwable t) {
ProcessUtils.fatalError(LOG, t, "Failed to ap... | public class class_name {
public void applyAndJournal(Supplier<JournalContext> context, UpdateInodeEntry entry) {
try {
applyUpdateInode(entry); // depends on control dependency: [try], data = [none]
context.get().append(JournalEntry.newBuilder().setUpdateInode(entry).build()); // depends on control de... |
public class class_name {
private boolean parseVariant(Cosmic cosmic) {
boolean validVariant;
String mutationCds = cosmic.getMutationCDS();
if (mutationCds.contains(">")) {
validVariant = parseSnv(mutationCds, cosmic);
if (!validVariant) {
invalidSubstit... | public class class_name {
private boolean parseVariant(Cosmic cosmic) {
boolean validVariant;
String mutationCds = cosmic.getMutationCDS();
if (mutationCds.contains(">")) {
validVariant = parseSnv(mutationCds, cosmic); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void checkObjectImplementsInterface(GraphQLObjectType objectType, GraphQLInterfaceType interfaceType, SchemaValidationErrorCollector validationErrorCollector) {
List<GraphQLFieldDefinition> fieldDefinitions = interfaceType.getFieldDefinitions();
for (GraphQLFieldDefini... | public class class_name {
private void checkObjectImplementsInterface(GraphQLObjectType objectType, GraphQLInterfaceType interfaceType, SchemaValidationErrorCollector validationErrorCollector) {
List<GraphQLFieldDefinition> fieldDefinitions = interfaceType.getFieldDefinitions();
for (GraphQLFieldDefini... |
public class class_name {
public static boolean deepEquals(final Object a, final Object b) {
if ((a == null) ? b == null : (b == null ? false : a.equals(b))) {
return true;
}
if ((a != null) && (b != null) && a.getClass().isArray() && a.getClass().equals(b.getClass())) {
... | public class class_name {
public static boolean deepEquals(final Object a, final Object b) {
if ((a == null) ? b == null : (b == null ? false : a.equals(b))) {
return true;
// depends on control dependency: [if], data = [none]
}
if ((a != null) && (b != null) && a.getClass().i... |
public class class_name {
@Override
public void connect() {
try {
disconnect();
// Create topic admin
TopicAdminSettings.Builder topicBuilder = TopicAdminSettings.newBuilder();
if (credentialsProvider != null) {
topicBuilder.setCredentialsProvider(credentialsProvider);
}
if (executo... | public class class_name {
@Override
public void connect() {
try {
disconnect();
// depends on control dependency: [try], data = [none]
// Create topic admin
TopicAdminSettings.Builder topicBuilder = TopicAdminSettings.newBuilder();
if (credentialsProvider != null) {
topicBuilder.setCredenti... |
public class class_name {
public void initializing()
{
for (KernelExtension kernelExtension : kernelExtensions.keySet())
{
Collection<Plugin> plugins = kernelExtensions.get(kernelExtension);
kernelExtension.initializing(plugins);
}
} } | public class class_name {
public void initializing()
{
for (KernelExtension kernelExtension : kernelExtensions.keySet())
{
Collection<Plugin> plugins = kernelExtensions.get(kernelExtension);
kernelExtension.initializing(plugins);
// depends on control dependency: [for]... |
public class class_name {
private void dispose(Collection<Transformer> elements) {
if (elements != null) {
for (Transformer<?, ?> element : elements) {
if (element instanceof Disposable) {
((Disposable) element).dispose();
}
}
... | public class class_name {
private void dispose(Collection<Transformer> elements) {
if (elements != null) {
for (Transformer<?, ?> element : elements) {
if (element instanceof Disposable) {
((Disposable) element).dispose(); // depends on control dependency: [if], ... |
public class class_name {
public static void initializeCitrus(ApplicationContext applicationContext) {
if (citrus != null) {
if (!citrus.getApplicationContext().equals(applicationContext)) {
log.warn("Citrus instance has already been initialized - creating new instance and shutting ... | public class class_name {
public static void initializeCitrus(ApplicationContext applicationContext) {
if (citrus != null) {
if (!citrus.getApplicationContext().equals(applicationContext)) {
log.warn("Citrus instance has already been initialized - creating new instance and shutting ... |
public class class_name {
static Class<? extends Standalone> resolveStandaloneClass(String standaloneClassNameSystemProperty,
ForwardingServiceLoader<Standalone> standaloneServiceLoader,
String s... | public class class_name {
static Class<? extends Standalone> resolveStandaloneClass(String standaloneClassNameSystemProperty,
ForwardingServiceLoader<Standalone> standaloneServiceLoader,
String s... |
public class class_name {
public void clearDereferencedListeners() {
if (uiThreadRunner.isOnUiThread()) {
graph.clearDereferencedListeners();
} else {
uiThreadRunner.post(new Runnable() {
@Override
public void run() {
graph.cle... | public class class_name {
public void clearDereferencedListeners() {
if (uiThreadRunner.isOnUiThread()) {
graph.clearDereferencedListeners(); // depends on control dependency: [if], data = [none]
} else {
uiThreadRunner.post(new Runnable() {
@Override
... |
public class class_name {
public static void install(@NonNull Context context, @NonNull String mapboxPackage, @NonNull String version) {
Context applicationContext;
if (context.getApplicationContext() == null) {
// In shared processes content providers getApplicationContext() can return null.
appli... | public class class_name {
public static void install(@NonNull Context context, @NonNull String mapboxPackage, @NonNull String version) {
Context applicationContext;
if (context.getApplicationContext() == null) {
// In shared processes content providers getApplicationContext() can return null.
appli... |
public class class_name {
public final synchronized void stop() {
LaunchingMessageKind.IJMX0003.format();
unRegisterMBeans();
try {
if (this.jmxConnectorServer != null) {
this.jmxConnectorServer.stop();
}
} catch (IOException e1) {
// Do nothing
}
try {
UnicastRemoteObject.unexportObject(r... | public class class_name {
public final synchronized void stop() {
LaunchingMessageKind.IJMX0003.format();
unRegisterMBeans();
try {
if (this.jmxConnectorServer != null) {
this.jmxConnectorServer.stop(); // depends on control dependency: [if], data = [none]
}
} catch (IOException e1) {
// Do nothi... |
public class class_name {
public static Path update(Path applicationFile, Path updateDir, boolean removeUpdateFiles) throws IOException {
Path newApplicationJar = null;
// Extract the application name from the application file
String applicationName = applicationFile.getFileName().toString();
... | public class class_name {
public static Path update(Path applicationFile, Path updateDir, boolean removeUpdateFiles) throws IOException {
Path newApplicationJar = null;
// Extract the application name from the application file
String applicationName = applicationFile.getFileName().toString();
... |
public class class_name {
public Membership add(Address new_member) {
synchronized(members) {
if(new_member != null && !members.contains(new_member)) {
members.add(new_member);
}
}
return this;
} } | public class class_name {
public Membership add(Address new_member) {
synchronized(members) {
if(new_member != null && !members.contains(new_member)) {
members.add(new_member); // depends on control dependency: [if], data = [(new_member]
}
}
return this;
... |
public class class_name {
protected void changedCacheData (String cache, final Streamable data)
{
// see if we have any observers
ObserverList<StaleCacheObserver> list = _cacheobs.get(cache);
if (list == null) {
return;
}
// if so, notify them
list.apply(... | public class class_name {
protected void changedCacheData (String cache, final Streamable data)
{
// see if we have any observers
ObserverList<StaleCacheObserver> list = _cacheobs.get(cache);
if (list == null) {
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public void removeByC_S(long CProductId, int status) {
for (CPDefinition cpDefinition : findByC_S(CProductId, status,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpDefinition);
}
} } | public class class_name {
@Override
public void removeByC_S(long CProductId, int status) {
for (CPDefinition cpDefinition : findByC_S(CProductId, status,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpDefinition); // depends on control dependency: [for], data = [cpDefinition]
}
} } |
public class class_name {
void splitBranches(final Element elem, final Branch filter) {
final List<Element> ditavalRefs = getChildElements(elem, DITAVAREF_D_DITAVALREF);
if (ditavalRefs.size() > 0) {
// remove ditavalrefs
for (final Element branch: ditavalRefs) {
... | public class class_name {
void splitBranches(final Element elem, final Branch filter) {
final List<Element> ditavalRefs = getChildElements(elem, DITAVAREF_D_DITAVALREF);
if (ditavalRefs.size() > 0) {
// remove ditavalrefs
for (final Element branch: ditavalRefs) {
... |
public class class_name {
public static void setState(ParseState state) {
if (state == null) {
System.err.println("Null state found");
Environment.logInfo("Null state found");
}
persData.setProperty(state.filename, state.firstLine + SEPARATOR + state.offset);
} } | public class class_name {
public static void setState(ParseState state) {
if (state == null) {
System.err.println("Null state found"); // depends on control dependency: [if], data = [none]
Environment.logInfo("Null state found"); // depends on control dependency: [if], data = [none]
}
persDat... |
public class class_name {
@Override
public void actionCommit() {
List errors = new ArrayList();
try {
// if new create it first
if (m_project.getUuid() == null) {
CmsProject newProject = getCms().createProject(
m_project.getName(),
... | public class class_name {
@Override
public void actionCommit() {
List errors = new ArrayList();
try {
// if new create it first
if (m_project.getUuid() == null) {
CmsProject newProject = getCms().createProject(
m_project.getName(),
... |
public class class_name {
public <T> T convert(String value, Class<T> type) {
// fast-path
if (value == null) {
return null;
}
if (type == String.class) {
return (T) value;
}
// normal-path
Convertor<T> c = (Convertor<T>) pool.get(type);
... | public class class_name {
public <T> T convert(String value, Class<T> type) {
// fast-path
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (type == String.class) {
return (T) value; // depends on control dependency: [i... |
public class class_name {
private void indexQuery(
long index,
long timestamp,
RaftSession session,
PrimitiveOperation operation,
CompletableFuture<OperationResult> future) {
// If the query index is greater than the session's last applied index, queue the request for handling once th... | public class class_name {
private void indexQuery(
long index,
long timestamp,
RaftSession session,
PrimitiveOperation operation,
CompletableFuture<OperationResult> future) {
// If the query index is greater than the session's last applied index, queue the request for handling once th... |
public class class_name {
public DayPartitionBuilder addDailyRule(ClockInterval partition) {
for (Weekday dayOfWeek : Weekday.values()) {
this.addWeekdayRule(dayOfWeek, partition);
}
return this;
} } | public class class_name {
public DayPartitionBuilder addDailyRule(ClockInterval partition) {
for (Weekday dayOfWeek : Weekday.values()) {
this.addWeekdayRule(dayOfWeek, partition); // depends on control dependency: [for], data = [dayOfWeek]
}
return this;
} } |
public class class_name {
public GenericDraweeHierarchyBuilder setPressedStateOverlay(@Nullable Drawable drawable) {
if (drawable == null) {
mPressedStateOverlay = null;
} else {
StateListDrawable stateListDrawable = new StateListDrawable();
stateListDrawable.addState(new int[]{android.R.attr... | public class class_name {
public GenericDraweeHierarchyBuilder setPressedStateOverlay(@Nullable Drawable drawable) {
if (drawable == null) {
mPressedStateOverlay = null; // depends on control dependency: [if], data = [none]
} else {
StateListDrawable stateListDrawable = new StateListDrawable();
... |
public class class_name {
@Override
public void setHierarchy(@Nullable DraweeHierarchy hierarchy) {
if (FLog.isLoggable(FLog.VERBOSE)) {
FLog.v(
TAG,
"controller %x %s: setHierarchy: %s",
System.identityHashCode(this),
mId,
hierarchy);
}
mEventTrack... | public class class_name {
@Override
public void setHierarchy(@Nullable DraweeHierarchy hierarchy) {
if (FLog.isLoggable(FLog.VERBOSE)) {
FLog.v(
TAG,
"controller %x %s: setHierarchy: %s",
System.identityHashCode(this),
mId,
hierarchy); // depends on control... |
public class class_name {
public static TransportAddress[] fromHostAndPorts(final List<HostAndPort> hostAndPorts) {
if (hostAndPorts == null) {
return new TransportAddress[0];
} else {
TransportAddress[] transportAddresses = new TransportAddress[hostAndPorts.size()];
... | public class class_name {
public static TransportAddress[] fromHostAndPorts(final List<HostAndPort> hostAndPorts) {
if (hostAndPorts == null) {
return new TransportAddress[0]; // depends on control dependency: [if], data = [none]
} else {
TransportAddress[] transportAddresses = ... |
public class class_name {
public Map<X500Principal, SigningPolicy> parse(Reader reader)
throws SigningPolicyException {
Map<X500Principal, SigningPolicy> policies = new HashMap<X500Principal, SigningPolicy>();
BufferedReader bufferedReader = new BufferedReader(reader);
try {
... | public class class_name {
public Map<X500Principal, SigningPolicy> parse(Reader reader)
throws SigningPolicyException {
Map<X500Principal, SigningPolicy> policies = new HashMap<X500Principal, SigningPolicy>();
BufferedReader bufferedReader = new BufferedReader(reader);
try {
... |
public class class_name {
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
{
int context = xctxt.getCurrentNode();
DTM dtm = xctxt.getDTM(context);
int docContext = dtm.getDocument();
if (DTM.NULL == docContext)
error(xctxt, XPATHErrorResources.ER_CON... | public class class_name {
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
{
int context = xctxt.getCurrentNode();
DTM dtm = xctxt.getDTM(context);
int docContext = dtm.getDocument();
if (DTM.NULL == docContext)
error(xctxt, XPATHErrorResources.ER_CON... |
public class class_name {
@Override
public void visitCode(Code obj) {
stack.resetForMethodEntry(this);
localMethodCalls.clear();
fieldMethodCalls.clear();
staticMethodCalls.clear();
branchTargets.clear();
CodeException[] codeExceptions = obj.getExceptionTable();
for (CodeException codeEx : codeException... | public class class_name {
@Override
public void visitCode(Code obj) {
stack.resetForMethodEntry(this);
localMethodCalls.clear();
fieldMethodCalls.clear();
staticMethodCalls.clear();
branchTargets.clear();
CodeException[] codeExceptions = obj.getExceptionTable();
for (CodeException codeEx : codeException... |
public class class_name {
MapWithProtoValuesFluentAssertion<M> usingConfig(FluentEqualityConfig newConfig) {
Subject.Factory<MapWithMessageValuesSubject<K, M>, Map<K, M>> factory =
mapWithProtoValues(newConfig);
MapWithMessageValuesSubject<K, M> newSubject = check().about(factory).that(actual());
i... | public class class_name {
MapWithProtoValuesFluentAssertion<M> usingConfig(FluentEqualityConfig newConfig) {
Subject.Factory<MapWithMessageValuesSubject<K, M>, Map<K, M>> factory =
mapWithProtoValues(newConfig);
MapWithMessageValuesSubject<K, M> newSubject = check().about(factory).that(actual());
i... |
public class class_name {
private void primUpdate(IEntityLock lock, Date newExpiration, Integer newType, Connection conn)
throws SQLException, LockingException {
Integer typeID =
EntityTypesLocator.getEntityTypes().getEntityIDFromType(lock.getEntityType());
String key = lock... | public class class_name {
private void primUpdate(IEntityLock lock, Date newExpiration, Integer newType, Connection conn)
throws SQLException, LockingException {
Integer typeID =
EntityTypesLocator.getEntityTypes().getEntityIDFromType(lock.getEntityType());
String key = lock... |
public class class_name {
protected boolean intersectsZ (IRay3 ray, double z) {
IVector3 origin = ray.origin(), dir = ray.direction();
double t = (z - origin.z()) / dir.z();
if (t < 0f) {
return false;
}
double ix = origin.x() + t*dir.x(), iy = origin.y() + t*dir.y()... | public class class_name {
protected boolean intersectsZ (IRay3 ray, double z) {
IVector3 origin = ray.origin(), dir = ray.direction();
double t = (z - origin.z()) / dir.z();
if (t < 0f) {
return false; // depends on control dependency: [if], data = [none]
}
double ix... |
public class class_name {
public static ClassName defineCollection(TypeName listClazzName) {
try {
Class<?> clazz=null;
if (listClazzName instanceof ParameterizedTypeName) {
ParameterizedTypeName returnListName = (ParameterizedTypeName) listClazzName;
clazz = Class.forName(returnListName.rawType.toStri... | public class class_name {
public static ClassName defineCollection(TypeName listClazzName) {
try {
Class<?> clazz=null; // depends on control dependency: [try], data = [none]
if (listClazzName instanceof ParameterizedTypeName) {
ParameterizedTypeName returnListName = (ParameterizedTypeName) listClazzName;
... |
public class class_name {
static byte[] flattenTags(final boolean use_query_tags,
final boolean include_agg_tags, final ByteMap<byte[]> tags,
final ByteSet agg_tags, final ITimeSyncedIterator sub) {
if (tags.isEmpty()) {
return HBaseClient.EMPTY_ARRAY;
}
final ByteSet query_tagks;
/... | public class class_name {
static byte[] flattenTags(final boolean use_query_tags,
final boolean include_agg_tags, final ByteMap<byte[]> tags,
final ByteSet agg_tags, final ITimeSyncedIterator sub) {
if (tags.isEmpty()) {
return HBaseClient.EMPTY_ARRAY; // depends on control dependency: [if], da... |
public class class_name {
public void start() {
try {
final Terminal terminal = TerminalConsoleAppender.getTerminal();
if (terminal != null) {
readCommands(terminal);
} else {
readCommands(System.in);
}
} catch (IOException... | public class class_name {
public void start() {
try {
final Terminal terminal = TerminalConsoleAppender.getTerminal();
if (terminal != null) {
readCommands(terminal); // depends on control dependency: [if], data = [(terminal]
} else {
readComm... |
public class class_name {
public List<TimeUnit> getUnits()
{
if (cachedUnits == null) {
List<TimeUnit> result = new ArrayList<TimeUnit>(units.keySet());
Collections.sort(result, new TimeUnitComparator());
cachedUnits = Collections.unmodifiableList(result);
}
return cach... | public class class_name {
public List<TimeUnit> getUnits()
{
if (cachedUnits == null) {
List<TimeUnit> result = new ArrayList<TimeUnit>(units.keySet());
Collections.sort(result, new TimeUnitComparator()); // depends on control dependency: [if], data = [none]
cachedUnits = Collection... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.