code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public synchronized String getGlobalProperty(String name, String defaultValue) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getGlobalProperty", new Object[] { name, defaultValue });
String value = getGlobalProperty(name);
... | public class class_name {
public synchronized String getGlobalProperty(String name, String defaultValue) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "getGlobalProperty", new Object[] { name, defaultValue });
String value = getGlobalProperty(name);
... |
public class class_name {
public DrawerView addProfile(DrawerProfile profile) {
if (profile.getId() <= 0) {
profile.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100));
}
for (DrawerProfile oldProfile : mProfileAdapter.getItems()) {
if (oldProfile.getId() ==... | public class class_name {
public DrawerView addProfile(DrawerProfile profile) {
if (profile.getId() <= 0) {
profile.setId(System.nanoTime() * 100 + Math.round(Math.random() * 100)); // depends on control dependency: [if], data = [none]
}
for (DrawerProfile oldProfile : mProfileAdapt... |
public class class_name {
@Override
public String[] getRequestValue(final Request request) {
if (isPresent(request)) {
String[] paramValues = request.getParameterValues(getId());
return removeEmptyStrings(paramValues);
} else {
return getValue();
}
} } | public class class_name {
@Override
public String[] getRequestValue(final Request request) {
if (isPresent(request)) {
String[] paramValues = request.getParameterValues(getId());
return removeEmptyStrings(paramValues); // depends on control dependency: [if], data = [none]
} else {
return getValue(); // d... |
public class class_name {
public List<String> getParamNames() {
if (!Strings.contains(content, ":")) { return Collections.emptyList(); }
final List<String> params = new ArrayList<String>();
int index = 0;
do {
final int colonIndex = content.indexOf(':', index);
if (-1 == colonIndex) {
... | public class class_name {
public List<String> getParamNames() {
if (!Strings.contains(content, ":")) { return Collections.emptyList(); } // depends on control dependency: [if], data = [none]
final List<String> params = new ArrayList<String>();
int index = 0;
do {
final int colonIndex = content.in... |
public class class_name {
private void setRDFAsDatastream(StringBuffer buf) {
DatastreamXMLMetadata ds = new DatastreamXMLMetadata();
// set the attrs common to all datastream versions
ds.DatastreamID = "RELS-INT";
ds.DSVersionable = false;
ds.DSFormatURI = m_dsFormatURI;
... | public class class_name {
private void setRDFAsDatastream(StringBuffer buf) {
DatastreamXMLMetadata ds = new DatastreamXMLMetadata();
// set the attrs common to all datastream versions
ds.DatastreamID = "RELS-INT";
ds.DSVersionable = false;
ds.DSFormatURI = m_dsFormatURI;
... |
public class class_name {
public DefaultPojoDaoFactory build() {
if(executor == null) {
executor = Executors.newFixedThreadPool(threadPoolSize, r -> new Thread(r, "Hecate"));
}
if(statementFactory == null) {
statementFactory = new DefaultPojoStatementFactory(session);
... | public class class_name {
public DefaultPojoDaoFactory build() {
if(executor == null) {
executor = Executors.newFixedThreadPool(threadPoolSize, r -> new Thread(r, "Hecate")); // depends on control dependency: [if], data = [none]
}
if(statementFactory == null) {
statement... |
public class class_name {
private void initConnection() throws XMPPException {
boolean isFirstInitialization = packetReader == null
|| packetWriter == null;
compressionHandler = null;
serverAckdCompression = false;
// Set the reader and writer instance variables
... | public class class_name {
private void initConnection() throws XMPPException {
boolean isFirstInitialization = packetReader == null
|| packetWriter == null;
compressionHandler = null;
serverAckdCompression = false;
// Set the reader and writer instance variables
... |
public class class_name {
public boolean recordVersion(String version) {
if (currentInfo.documentVersion(version)) {
populated = true;
return true;
} else {
return false;
}
} } | public class class_name {
public boolean recordVersion(String version) {
if (currentInfo.documentVersion(version)) {
populated = true; // depends on control dependency: [if], data = [none]
return true; // depends on control dependency: [if], data = [none]
} else {
return false; // depends on ... |
public class class_name {
public void stopTimer() {
if(this.WRITE_CACHE_ENABLED) {
if(timerWriteCache != null) {
timerWriteCache.cancel();
}
if(writeTimer != null){
writeTimer.cancel();
}
if(timerDeleteCache != null) {
timerDeleteCache.cancel();
}
if(deleteTimer != null){
deleteT... | public class class_name {
public void stopTimer() {
if(this.WRITE_CACHE_ENABLED) {
if(timerWriteCache != null) {
timerWriteCache.cancel(); // depends on control dependency: [if], data = [none]
}
if(writeTimer != null){
writeTimer.cancel(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected void scanJspConfig() throws IOException, SAXException {
JspConfigDescriptor jspConfigDescriptor = context.getJspConfigDescriptor();
if (jspConfigDescriptor == null) {
return;
}
Collection<TaglibDescriptor> descriptors = jspConfigDescripto... | public class class_name {
protected void scanJspConfig() throws IOException, SAXException {
JspConfigDescriptor jspConfigDescriptor = context.getJspConfigDescriptor();
if (jspConfigDescriptor == null) {
return;
}
Collection<TaglibDescriptor> descriptors = jspConfigDescripto... |
public class class_name {
protected final void endClientExecution(
AWSRequestMetrics awsRequestMetrics, Request<?> request,
Response<?> response, @Deprecated boolean loggingAwsRequestMetrics) {
if (request != null) {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
... | public class class_name {
protected final void endClientExecution(
AWSRequestMetrics awsRequestMetrics, Request<?> request,
Response<?> response, @Deprecated boolean loggingAwsRequestMetrics) {
if (request != null) {
awsRequestMetrics.endEvent(Field.ClientExecuteTime); // de... |
public class class_name {
public String getLinkCopyText(JSONObject jsonObject){
if(jsonObject == null) return "";
try {
JSONObject copyObject = jsonObject.has("copyText") ? jsonObject.getJSONObject("copyText") : null;
if(copyObject != null){
return copyObject.ha... | public class class_name {
public String getLinkCopyText(JSONObject jsonObject){
if(jsonObject == null) return "";
try {
JSONObject copyObject = jsonObject.has("copyText") ? jsonObject.getJSONObject("copyText") : null;
if(copyObject != null){
return copyObject.ha... |
public class class_name {
public boolean acquireLock (String name)
{
// check for the existence of the lock in the list and add it if it's not already there
Object[] list = ListUtil.testAndAdd(_locks, name);
if (list == null) {
// a null list means the object was already in the ... | public class class_name {
public boolean acquireLock (String name)
{
// check for the existence of the lock in the list and add it if it's not already there
Object[] list = ListUtil.testAndAdd(_locks, name);
if (list == null) {
// a null list means the object was already in the ... |
public class class_name {
public void showDialog(boolean showRoot, String panel) {
expandRoot();
try {
DefaultMutableTreeNode node = null;
if (panel != null) {
node = getTreeNodeFromPanelName(panel);
}
if (no... | public class class_name {
public void showDialog(boolean showRoot, String panel) {
expandRoot();
try {
DefaultMutableTreeNode node = null;
if (panel != null) {
node = getTreeNodeFromPanelName(panel);
// depends on control dependency: [if], data = ... |
public class class_name {
public final void nonWildcardTypeArguments() throws RecognitionException {
int nonWildcardTypeArguments_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 136) ) { return; }
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g... | public class class_name {
public final void nonWildcardTypeArguments() throws RecognitionException {
int nonWildcardTypeArguments_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 136) ) { return; } // depends on control dependency: [if], data = [none]
// src/main/reso... |
public class class_name {
private HORIZONTAL_DIRECTION processHorizontalDirection(float[] output, float midRangeHigh, float midRangeLow) {
output[1] = (output[1] < 0)? 0.0f : output[1];
if (output[1] < midRangeLow) {
output[1] *= -1;
return HORIZONTAL_DIRECTION.RIGHT;
}
else if (output[1] > midRang... | public class class_name {
private HORIZONTAL_DIRECTION processHorizontalDirection(float[] output, float midRangeHigh, float midRangeLow) {
output[1] = (output[1] < 0)? 0.0f : output[1];
if (output[1] < midRangeLow) {
output[1] *= -1; // depends on control dependency: [if], data = [none]
return HORIZONTA... |
public class class_name {
public void run() {
if(log.isDebugEnabled()) {
log.debug("ListenerThread Starting.");
}
while(running) {
try {
Socket clientSocket = serverSocket.accept();
WorkerThread worker = new WorkerThread(container, clien... | public class class_name {
public void run() {
if(log.isDebugEnabled()) {
log.debug("ListenerThread Starting."); // depends on control dependency: [if], data = [none]
}
while(running) {
try {
Socket clientSocket = serverSocket.accept();
W... |
public class class_name {
public Observable<ComapiResult<List<Map<String, Object>>>> queryProfiles(@NonNull final String queryString) {
final String token = getToken();
if (sessionController.isCreatingSession()) {
return getTaskQueue().queueQueryProfiles(queryString);
} else if (T... | public class class_name {
public Observable<ComapiResult<List<Map<String, Object>>>> queryProfiles(@NonNull final String queryString) {
final String token = getToken();
if (sessionController.isCreatingSession()) {
return getTaskQueue().queueQueryProfiles(queryString); // depends on contro... |
public class class_name {
public void loadContext(Context ctx) {
validateContextNotNull(ctx);
for (ContextDataFactory cdf : this.contextDataFactories) {
cdf.loadContextData(getSession(), ctx);
}
} } | public class class_name {
public void loadContext(Context ctx) {
validateContextNotNull(ctx);
for (ContextDataFactory cdf : this.contextDataFactories) {
cdf.loadContextData(getSession(), ctx);
// depends on control dependency: [for], data = [cdf]
}
} } |
public class class_name {
public Integer getNetworkPrefixLength() {
if(isAddress()) {
return parsedHost.asAddress().getNetworkPrefixLength();
} else if(isAddressString()) {
return parsedHost.asGenericAddressString().getNetworkPrefixLength();
}
return isValid() ? parsedHost.getNetworkPrefixLength() : null... | public class class_name {
public Integer getNetworkPrefixLength() {
if(isAddress()) {
return parsedHost.asAddress().getNetworkPrefixLength(); // depends on control dependency: [if], data = [none]
} else if(isAddressString()) {
return parsedHost.asGenericAddressString().getNetworkPrefixLength(); // depends on... |
public class class_name {
public void setBusy(String message) {
busyMessage = message = StrUtil.formatMessage(message);
if (busyDisabled) {
busyPending = true;
} else if (message != null) {
disableActions(true);
ClientUtil.busy(container, message);
... | public class class_name {
public void setBusy(String message) {
busyMessage = message = StrUtil.formatMessage(message);
if (busyDisabled) {
busyPending = true; // depends on control dependency: [if], data = [none]
} else if (message != null) {
disableActions(true); // d... |
public class class_name {
public static void zero( DMatrixSparseCSC A , int row0, int row1, int col0, int col1 ) {
for (int col = col1-1; col >= col0; col--) {
int numRemoved = 0;
int idx0 = A.col_idx[col], idx1 = A.col_idx[col+1];
for (int i = idx0; i < idx1; i++) {
... | public class class_name {
public static void zero( DMatrixSparseCSC A , int row0, int row1, int col0, int col1 ) {
for (int col = col1-1; col >= col0; col--) {
int numRemoved = 0;
int idx0 = A.col_idx[col], idx1 = A.col_idx[col+1];
for (int i = idx0; i < idx1; i++) {
... |
public class class_name {
@Override
public void removeByCPDefinitionId(long CPDefinitionId) {
for (CPDefinitionLocalization cpDefinitionLocalization : findByCPDefinitionId(
CPDefinitionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpDefinitionLocalization);
}
} } | public class class_name {
@Override
public void removeByCPDefinitionId(long CPDefinitionId) {
for (CPDefinitionLocalization cpDefinitionLocalization : findByCPDefinitionId(
CPDefinitionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpDefinitionLocalization); // depends on control dependency: [for]... |
public class class_name {
private JPanel getJPanel1() {
if (jPanel1 == null) {
jLabel2 = new JLabel();
GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
GridBagConstraints gridBagConstraints9 = new GridBagConstraints... | public class class_name {
private JPanel getJPanel1() {
if (jPanel1 == null) {
jLabel2 = new JLabel();
// depends on control dependency: [if], data = [none]
GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
GridBagCo... |
public class class_name {
public PrivacyItem getItem(String listName, int order) {
// CHECKSTYLE:OFF
Iterator<PrivacyItem> values = getPrivacyList(listName).iterator();
PrivacyItem itemFound = null;
while (itemFound == null && values.hasNext()) {
PrivacyItem element = values... | public class class_name {
public PrivacyItem getItem(String listName, int order) {
// CHECKSTYLE:OFF
Iterator<PrivacyItem> values = getPrivacyList(listName).iterator();
PrivacyItem itemFound = null;
while (itemFound == null && values.hasNext()) {
PrivacyItem element = values... |
public class class_name {
public static String strFromUnicodeByteArray(byte[] ba, int len) {
if (ba == null) {
return "";
}
byte[] newBa = new byte[len];
for (int i = 0; i < len; i++)
newBa[i] = ba[i];
StringBuffer sb = new StringBuffer();
DataInputStream dis = new DataInputStream(new ByteArrayInpu... | public class class_name {
public static String strFromUnicodeByteArray(byte[] ba, int len) {
if (ba == null) {
return ""; // depends on control dependency: [if], data = [none]
}
byte[] newBa = new byte[len];
for (int i = 0; i < len; i++)
newBa[i] = ba[i];
StringBuffer sb = new StringBuffer();
DataI... |
public class class_name {
private void signalNotFull() {
final ReentrantLock putLock = this.putLock;
putLock.lock();
try {
notFull.signal();
} finally {
putLock.unlock();
}
} } | public class class_name {
private void signalNotFull() {
final ReentrantLock putLock = this.putLock;
putLock.lock();
try {
notFull.signal(); // depends on control dependency: [try], data = [none]
} finally {
putLock.unlock();
}
} } |
public class class_name {
public static CWSEvaluator.Result evaluate(Segment segment, String outputPath, String goldFile, String dictPath) throws IOException
{
IOUtil.LineIterator lineIterator = new IOUtil.LineIterator(goldFile);
BufferedWriter bw = IOUtil.newBufferedWriter(outputPath);
for... | public class class_name {
public static CWSEvaluator.Result evaluate(Segment segment, String outputPath, String goldFile, String dictPath) throws IOException
{
IOUtil.LineIterator lineIterator = new IOUtil.LineIterator(goldFile);
BufferedWriter bw = IOUtil.newBufferedWriter(outputPath);
for... |
public class class_name {
@Override
public boolean contains(IVersion version)
{
for (IVersionRange range : ranges) {
if (range.contains(version)) {
return true;
}
}
return false;
} } | public class class_name {
@Override
public boolean contains(IVersion version)
{
for (IVersionRange range : ranges) {
if (range.contains(version)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
public static <T> Iterable<T> depthFirst(TreeDef<T> treeDef, T node) {
return () -> new Iterator<T>() {
Deque<T> queue = new ArrayDeque<>(Arrays.asList(node));
@Override
public boolean hasNext() {
return !queue.isEmpty();
}
@Override
public T next() {
if (queue.i... | public class class_name {
public static <T> Iterable<T> depthFirst(TreeDef<T> treeDef, T node) {
return () -> new Iterator<T>() {
Deque<T> queue = new ArrayDeque<>(Arrays.asList(node));
@Override
public boolean hasNext() {
return !queue.isEmpty();
}
@Override
public T next() {
if (queue.i... |
public class class_name {
public void invokeOperator(PdfLiteral operator, ArrayList operands) {
ContentOperator op = operators.get(operator.toString());
if (op == null) {
// skipping unssupported operator
return;
}
op.invoke(this, operator, operands);
} } | public class class_name {
public void invokeOperator(PdfLiteral operator, ArrayList operands) {
ContentOperator op = operators.get(operator.toString());
if (op == null) {
// skipping unssupported operator
return;
// depends on control dependency: [if], data = [none]
}
op.invoke(this, operator, oper... |
public class class_name {
public static URI convertUriWithoutSchemeToFileScheme(URI uri) {
if (uri.getScheme() == null) {
return Paths.get(uri.getPath()).toUri();
}
return uri;
} } | public class class_name {
public static URI convertUriWithoutSchemeToFileScheme(URI uri) {
if (uri.getScheme() == null) {
return Paths.get(uri.getPath()).toUri(); // depends on control dependency: [if], data = [none]
}
return uri;
} } |
public class class_name {
@ApiModelProperty(value = "Categories of services registered. Not used at the moment")
public List<String> getCategories() {
Set<String> keySet = this.services.keySet();
Iterator<String> it = keySet.iterator();
List<String> categories = new ArrayList<String>();
DescribeService serv... | public class class_name {
@ApiModelProperty(value = "Categories of services registered. Not used at the moment")
public List<String> getCategories() {
Set<String> keySet = this.services.keySet();
Iterator<String> it = keySet.iterator();
List<String> categories = new ArrayList<String>();
DescribeService serv... |
public class class_name {
@Override
public synchronized void remove(URI jobURI) {
Preconditions.checkState(state() == State.RUNNING, String.format("%s is not running.", this.getClass().getName()));
try {
long startTime = System.currentTimeMillis();
JobSpec jobSpec = getJobSpec(jobURI);
Path... | public class class_name {
@Override
public synchronized void remove(URI jobURI) {
Preconditions.checkState(state() == State.RUNNING, String.format("%s is not running.", this.getClass().getName()));
try {
long startTime = System.currentTimeMillis();
JobSpec jobSpec = getJobSpec(jobURI);
Path... |
public class class_name {
public void marshall(GetMaintenanceWindowExecutionRequest getMaintenanceWindowExecutionRequest, ProtocolMarshaller protocolMarshaller) {
if (getMaintenanceWindowExecutionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}... | public class class_name {
public void marshall(GetMaintenanceWindowExecutionRequest getMaintenanceWindowExecutionRequest, ProtocolMarshaller protocolMarshaller) {
if (getMaintenanceWindowExecutionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}... |
public class class_name {
private static void logErrors(J2EEName j2eeName,
List<String> errors)
throws EJBConfigurationException
{
if (errors.size() > 0)
{
String heading = "Merged EJB DD Validation results for " + j2eeName;
... | public class class_name {
private static void logErrors(J2EEName j2eeName,
List<String> errors)
throws EJBConfigurationException
{
if (errors.size() > 0)
{
String heading = "Merged EJB DD Validation results for " + j2eeName;
... |
public class class_name {
private boolean isEmptyImplementation(MethodGen methodGen){
boolean invokeInst = false;
boolean loadField = false;
for (Iterator itIns = methodGen.getInstructionList().iterator();itIns.hasNext();) {
Instruction inst = ((InstructionHandle) itIns.next()).get... | public class class_name {
private boolean isEmptyImplementation(MethodGen methodGen){
boolean invokeInst = false;
boolean loadField = false;
for (Iterator itIns = methodGen.getInstructionList().iterator();itIns.hasNext();) {
Instruction inst = ((InstructionHandle) itIns.next()).get... |
public class class_name {
public EClass getIfcVertex() {
if (ifcVertexEClass == null) {
ifcVertexEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(633);
}
return ifcVertexEClass;
} } | public class class_name {
public EClass getIfcVertex() {
if (ifcVertexEClass == null) {
ifcVertexEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(633);
// depends on control dependency: [if], data = [none]
}
return ifcVertexEClass;
} } |
public class class_name {
private void setBar(final double VALUE) {
barCtx.clearRect(0, 0, size, size);
barCtx.setLineCap(StrokeLineCap.BUTT);
barCtx.setStroke(barColor);
barCtx.setLineWidth(barWidth);
if (sectionsVisible) {
int listSize = sections.size();
... | public class class_name {
private void setBar(final double VALUE) {
barCtx.clearRect(0, 0, size, size);
barCtx.setLineCap(StrokeLineCap.BUTT);
barCtx.setStroke(barColor);
barCtx.setLineWidth(barWidth);
if (sectionsVisible) {
int listSize = sections.size();
... |
public class class_name {
public void marshall(DeleteApnsVoipSandboxChannelRequest deleteApnsVoipSandboxChannelRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteApnsVoipSandboxChannelRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(DeleteApnsVoipSandboxChannelRequest deleteApnsVoipSandboxChannelRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteApnsVoipSandboxChannelRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
@Override
public long getTotalSize() {
if (totalSize == HasTotalSize.NOT_DEPLETED && !hasNext()) {
totalSize = hasTotalSize == null ? HasTotalSize.NOT_DEPLETED : hasTotalSize.getTotalSize();
}
return totalSize;
} } | public class class_name {
@Override
public long getTotalSize() {
if (totalSize == HasTotalSize.NOT_DEPLETED && !hasNext()) {
totalSize = hasTotalSize == null ? HasTotalSize.NOT_DEPLETED : hasTotalSize.getTotalSize(); // depends on control dependency: [if], data = [none]
}
return... |
public class class_name {
public void marshall(UpdateBuildRequest updateBuildRequest, ProtocolMarshaller protocolMarshaller) {
if (updateBuildRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(UpdateBuildRequest updateBuildRequest, ProtocolMarshaller protocolMarshaller) {
if (updateBuildRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public void startMetricReportingWithFileSuffix(State state, String metricsFileSuffix) {
Properties metricsReportingProps = new Properties();
metricsReportingProps.putAll(state.getProperties());
String oldMetricsFileSuffix =
state.getProp(ConfigurationKeys.METRICS_FILE_SUF... | public class class_name {
public void startMetricReportingWithFileSuffix(State state, String metricsFileSuffix) {
Properties metricsReportingProps = new Properties();
metricsReportingProps.putAll(state.getProperties());
String oldMetricsFileSuffix =
state.getProp(ConfigurationKeys.METRICS_FILE_SUF... |
public class class_name {
public NumberExpression<T> sum() {
if (sum == null) {
sum = Expressions.numberOperation(getType(), Ops.AggOps.SUM_AGG, mixin);
}
return sum;
} } | public class class_name {
public NumberExpression<T> sum() {
if (sum == null) {
sum = Expressions.numberOperation(getType(), Ops.AggOps.SUM_AGG, mixin); // depends on control dependency: [if], data = [none]
}
return sum;
} } |
public class class_name {
public static boolean isSequential(String group, String unit) {
try {
return UnitRouter.SINGLETON.newestDefinition(Unit.fullName(group, unit)).getInput().isSequential();
} catch (UnitUndefinedException e) {
throw new RuntimeException("Please call UnitJu... | public class class_name {
public static boolean isSequential(String group, String unit) {
try {
return UnitRouter.SINGLETON.newestDefinition(Unit.fullName(group, unit)).getInput().isSequential(); // depends on control dependency: [try], data = [none]
} catch (UnitUndefinedException e) {
... |
public class class_name {
public AspFactory createAspFactory(String aspName, String associationName, boolean isHeartBeatEnabled) throws Exception {
long aspid = 0L;
boolean regenerateFlag = true;
while (regenerateFlag) {
aspid = AspFactoryImpl.generateId();
if (aspfacto... | public class class_name {
public AspFactory createAspFactory(String aspName, String associationName, boolean isHeartBeatEnabled) throws Exception {
long aspid = 0L;
boolean regenerateFlag = true;
while (regenerateFlag) {
aspid = AspFactoryImpl.generateId();
if (aspfacto... |
public class class_name {
public void waitTillAllUpdatesExecuted() throws InterruptedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "waitTillAllUpdatesExecuted");
synchronized (this)
{
while (enqueuedUnits.size() > 0 || executing)
{
... | public class class_name {
public void waitTillAllUpdatesExecuted() throws InterruptedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "waitTillAllUpdatesExecuted");
synchronized (this)
{
while (enqueuedUnits.size() > 0 || executing)
{
... |
public class class_name {
public Observable<ServiceResponseWithHeaders<CloudTask, TaskGetHeaders>> getWithServiceResponseAsync(String jobId, String taskId, TaskGetOptions taskGetOptions) {
if (this.client.batchUrl() == null) {
throw new IllegalArgumentException("Parameter this.client.batchUrl() is ... | public class class_name {
public Observable<ServiceResponseWithHeaders<CloudTask, TaskGetHeaders>> getWithServiceResponseAsync(String jobId, String taskId, TaskGetOptions taskGetOptions) {
if (this.client.batchUrl() == null) {
throw new IllegalArgumentException("Parameter this.client.batchUrl() is ... |
public class class_name {
public void marshall(CountPendingActivityTasksRequest countPendingActivityTasksRequest, ProtocolMarshaller protocolMarshaller) {
if (countPendingActivityTasksRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... | public class class_name {
public void marshall(CountPendingActivityTasksRequest countPendingActivityTasksRequest, ProtocolMarshaller protocolMarshaller) {
if (countPendingActivityTasksRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... |
public class class_name {
public String getValues() {
//
String info = "";
//
for ( int i = 0; i < vsL.size(); i ++ ) {
//
info += vsL.get( i ) + "|";
}
//
return info;
} } | public class class_name {
public String getValues() {
//
String info = "";
//
for ( int i = 0; i < vsL.size(); i ++ ) {
//
info += vsL.get( i ) + "|"; // depends on control dependency: [for], data = [i]
}
//
return info;
} } |
public class class_name {
public void bind( final FilterBinding handler )
{
final Method method = handler.getMethod();
final String path = handler.getPath();
logger.info( "Using appId: {} and default version: {}", appAcceptId, defaultVersion );
List<String> versions = handler.getVe... | public class class_name {
public void bind( final FilterBinding handler )
{
final Method method = handler.getMethod();
final String path = handler.getPath();
logger.info( "Using appId: {} and default version: {}", appAcceptId, defaultVersion );
List<String> versions = handler.getVe... |
public class class_name {
public Collection<BoxGroupMembership.Info> getMemberships() {
final BoxAPIConnection api = this.getAPI();
final String groupID = this.getID();
Iterable<BoxGroupMembership.Info> iter = new Iterable<BoxGroupMembership.Info>() {
public Iterator<BoxGroupMember... | public class class_name {
public Collection<BoxGroupMembership.Info> getMemberships() {
final BoxAPIConnection api = this.getAPI();
final String groupID = this.getID();
Iterable<BoxGroupMembership.Info> iter = new Iterable<BoxGroupMembership.Info>() {
public Iterator<BoxGroupMember... |
public class class_name {
public void muteAudio(boolean mute) {
if ((null != localStream) && isActive()) {
for (MediaStreamTrack eachTrack : localStream.audioTracks) {
eachTrack.setEnabled(!mute);
}
}
} } | public class class_name {
public void muteAudio(boolean mute) {
if ((null != localStream) && isActive()) {
for (MediaStreamTrack eachTrack : localStream.audioTracks) {
eachTrack.setEnabled(!mute); // depends on control dependency: [for], data = [eachTrack]
}
}
... |
public class class_name {
public void retrieveMatchingTopicAcls(
DestinationHandler topicSpace,
String discriminator,
JsMessage msg,
MessageProcessorSearchResults searchResults)
throws SIDiscriminatorSyntaxException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibT... | public class class_name {
public void retrieveMatchingTopicAcls(
DestinationHandler topicSpace,
String discriminator,
JsMessage msg,
MessageProcessorSearchResults searchResults)
throws SIDiscriminatorSyntaxException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibT... |
public class class_name {
public void setHlsManifests(java.util.Collection<HlsManifest> hlsManifests) {
if (hlsManifests == null) {
this.hlsManifests = null;
return;
}
this.hlsManifests = new java.util.ArrayList<HlsManifest>(hlsManifests);
} } | public class class_name {
public void setHlsManifests(java.util.Collection<HlsManifest> hlsManifests) {
if (hlsManifests == null) {
this.hlsManifests = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
static void transformMappedBys(EntityType entityType, Map<String, Attribute> newAttributes) {
if (newAttributes.isEmpty()) {
return;
}
stream(entityType.getAtomicAttributes())
.filter(Attribute::isMappedBy)
.forEach(attr -> transformMappedBy(attr, newAttribu... | public class class_name {
static void transformMappedBys(EntityType entityType, Map<String, Attribute> newAttributes) {
if (newAttributes.isEmpty()) {
return; // depends on control dependency: [if], data = [none]
}
stream(entityType.getAtomicAttributes())
.filter(Attribute::isMappedBy)
... |
public class class_name {
@Override
public Cells transformElement(Tuple2<Object, LinkedMapWritable> tuple,
DeepJobConfig<Cells, ? extends DeepJobConfig> config) {
try {
return UtilES.getCellFromJson(tuple._2(), deepJobConfig.getNameSpace());
} catch (E... | public class class_name {
@Override
public Cells transformElement(Tuple2<Object, LinkedMapWritable> tuple,
DeepJobConfig<Cells, ? extends DeepJobConfig> config) {
try {
return UtilES.getCellFromJson(tuple._2(), deepJobConfig.getNameSpace()); // depends on cont... |
public class class_name {
public Rectangle getBarcodeSize() {
float fontX = 0;
float fontY = 0;
String text = code;
if (generateChecksum && checksumText)
text = calculateChecksum(code);
if (!startStopText)
text = text.substring(1, text.length() - 1);
... | public class class_name {
public Rectangle getBarcodeSize() {
float fontX = 0;
float fontY = 0;
String text = code;
if (generateChecksum && checksumText)
text = calculateChecksum(code);
if (!startStopText)
text = text.substring(1, text.length() - 1);
... |
public class class_name {
public void marshall(CreateReplicationSubnetGroupRequest createReplicationSubnetGroupRequest, ProtocolMarshaller protocolMarshaller) {
if (createReplicationSubnetGroupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(CreateReplicationSubnetGroupRequest createReplicationSubnetGroupRequest, ProtocolMarshaller protocolMarshaller) {
if (createReplicationSubnetGroupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
private static long start(Range<Long> range) {
if (range.lowerBoundType() == BoundType.OPEN) {
return DiscreteDomain.longs().next(range.lowerEndpoint());
} else {
return range.lowerEndpoint();
}
} } | public class class_name {
private static long start(Range<Long> range) {
if (range.lowerBoundType() == BoundType.OPEN) {
return DiscreteDomain.longs().next(range.lowerEndpoint()); // depends on control dependency: [if], data = [none]
} else {
return range.lowerEndpoint(); // dep... |
public class class_name {
public static String getHadoopUser() {
try {
Class<?> ugiClass = Class.forName(
"org.apache.hadoop.security.UserGroupInformation",
false,
EnvironmentInformation.class.getClassLoader());
Method currentUserMethod = ugiClass.getMethod("getCurrentUser");
Method shortUserNa... | public class class_name {
public static String getHadoopUser() {
try {
Class<?> ugiClass = Class.forName(
"org.apache.hadoop.security.UserGroupInformation",
false,
EnvironmentInformation.class.getClassLoader());
Method currentUserMethod = ugiClass.getMethod("getCurrentUser");
Method shortUserNa... |
public class class_name {
public Token get(Object key,
Transaction transaction)
throws ObjectManagerException
{
try {
for (Iterator iterator = entrySet().iterator();;) {
Entry entry = (Entry) iterator.next(transaction);
Ob... | public class class_name {
public Token get(Object key,
Transaction transaction)
throws ObjectManagerException
{
try {
for (Iterator iterator = entrySet().iterator();;) {
Entry entry = (Entry) iterator.next(transaction);
Ob... |
public class class_name {
public void setCostParameters(CostParameters newCostParameters) {
if (newCostParameters != costParameters) {
NotificationChain msgs = null;
if (costParameters != null)
msgs = ((InternalEObject)costParameters).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.ELEMENT_PARAM... | public class class_name {
public void setCostParameters(CostParameters newCostParameters) {
if (newCostParameters != costParameters) {
NotificationChain msgs = null;
if (costParameters != null)
msgs = ((InternalEObject)costParameters).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BpsimPackage.ELEMENT_PARAM... |
public class class_name {
public void removeLoggerEventListener(final LoggerEventListener listener) {
synchronized (loggerEventListeners) {
HierarchyEventListenerProxy proxy =
(HierarchyEventListenerProxy) loggerEventListeners.get(listener);
if (proxy == null) {
LogLog.warn(
... | public class class_name {
public void removeLoggerEventListener(final LoggerEventListener listener) {
synchronized (loggerEventListeners) {
HierarchyEventListenerProxy proxy =
(HierarchyEventListenerProxy) loggerEventListeners.get(listener);
if (proxy == null) {
LogLog.warn(
... |
public class class_name {
private void createReadCaches() {
recalculateSizeReadCaches();
if (log.isDebugEnabled()) {
log.debug(this.getClass().getName() + "::createReadCaches readCacheInternal=" + readCacheInternal
+ " readCacheLeaf=" + readCacheLeaf);
}
cacheInternalNodes = createCacheLRUlinked(readCa... | public class class_name {
private void createReadCaches() {
recalculateSizeReadCaches();
if (log.isDebugEnabled()) {
log.debug(this.getClass().getName() + "::createReadCaches readCacheInternal=" + readCacheInternal
+ " readCacheLeaf=" + readCacheLeaf); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public IPromise ordered(Function<T, IPromise> toCall) {
final IPromise result = toCall.apply((T) actors[index]);
index++;
if (index==actors.length)
index = 0;
if ( prev == null ) {
prev = new Promise();
result.then(prev);
... | public class class_name {
public IPromise ordered(Function<T, IPromise> toCall) {
final IPromise result = toCall.apply((T) actors[index]);
index++;
if (index==actors.length)
index = 0;
if ( prev == null ) {
prev = new Promise(); // depends on control dependency: ... |
public class class_name {
private static ServerRequest getExtendedServerRequest(String requestPath, JSONObject post, Context context) {
ServerRequest extendedReq = null;
if (requestPath.equalsIgnoreCase(Defines.RequestPath.CompletedAction.getPath())) {
extendedReq = new ServerReque... | public class class_name {
private static ServerRequest getExtendedServerRequest(String requestPath, JSONObject post, Context context) {
ServerRequest extendedReq = null;
if (requestPath.equalsIgnoreCase(Defines.RequestPath.CompletedAction.getPath())) {
extendedReq = new ServerReque... |
public class class_name {
private static List<String> convertSqref(final CellRangeAddressList region) {
List<String> sqref = new ArrayList<>();
for(CellRangeAddress range : region.getCellRangeAddresses()) {
sqref.add(range.formatAsString());
}
return sqref;
}... | public class class_name {
private static List<String> convertSqref(final CellRangeAddressList region) {
List<String> sqref = new ArrayList<>();
for(CellRangeAddress range : region.getCellRangeAddresses()) {
sqref.add(range.formatAsString());
// depends on control dependency: [for], da... |
public class class_name {
public void stopWorking() {
try {
threadPoolExecutor.shutdownNow();
Thread.sleep(1000);
threadPoolExecutor = initThreadPoolExecutor();
LOGGER.info("stop working succeed ");
} catch (Throwable t) {
LOGGER.error("stop w... | public class class_name {
public void stopWorking() {
try {
threadPoolExecutor.shutdownNow(); // depends on control dependency: [try], data = [none]
Thread.sleep(1000); // depends on control dependency: [try], data = [none]
threadPoolExecutor = initThreadPoolExecutor(); // d... |
public class class_name {
public void setString(String string) {
rawString = string;
colorIndices.clear();
// Search for color codes
final StringBuilder stringBuilder = new StringBuilder(string);
final Matcher matcher = COLOR_PATTERN.matcher(string);
int removedCount = 0... | public class class_name {
public void setString(String string) {
rawString = string;
colorIndices.clear();
// Search for color codes
final StringBuilder stringBuilder = new StringBuilder(string);
final Matcher matcher = COLOR_PATTERN.matcher(string);
int removedCount = 0... |
public class class_name {
public ConnectionListener getActiveConnectionListener(Credential credential)
{
if (cm.getTransactionSupport() == TransactionSupportLevel.NoTransaction)
return null;
try
{
TransactionalConnectionManager txCM = (TransactionalConnectionManager) cm;
... | public class class_name {
public ConnectionListener getActiveConnectionListener(Credential credential)
{
if (cm.getTransactionSupport() == TransactionSupportLevel.NoTransaction)
return null;
try
{
TransactionalConnectionManager txCM = (TransactionalConnectionManager) cm;
... |
public class class_name {
public static boolean isIPAddr(String addr) {
if (StringUtils.isEmpty(addr)) {
return false;
}
String[] ips = StringUtils.split(addr, '.');
if (ips == null || ips.length != 4) {
return false;
}
try {
int ipa =... | public class class_name {
public static boolean isIPAddr(String addr) {
if (StringUtils.isEmpty(addr)) {
return false; // depends on control dependency: [if], data = [none]
}
String[] ips = StringUtils.split(addr, '.');
if (ips == null || ips.length != 4) {
retur... |
public class class_name {
private void nabla_mask( RandomIter elevationIter, WritableRaster nablaRaster, double thNabla ) {
int y;
double[] z = new double[9];
double derivate2;
int[][] v = ModelsEngine.DIR;
// grid contains the dimension of pixels according with flow directions... | public class class_name {
private void nabla_mask( RandomIter elevationIter, WritableRaster nablaRaster, double thNabla ) {
int y;
double[] z = new double[9];
double derivate2;
int[][] v = ModelsEngine.DIR;
// grid contains the dimension of pixels according with flow directions... |
public class class_name {
private void animateView(final int diff, final float animationSpeed,
@NonNull final AnimationListener animationListener,
@NonNull final Interpolator interpolator) {
if (!isDragging() && !isAnimationRunning()) {
long... | public class class_name {
private void animateView(final int diff, final float animationSpeed,
@NonNull final AnimationListener animationListener,
@NonNull final Interpolator interpolator) {
if (!isDragging() && !isAnimationRunning()) {
long... |
public class class_name {
public JSONObject videoFaceliveness(String sessionId, byte[] video, HashMap<String, String> options) {
AipRequest request = new AipRequest();
preOperation(request);
request.addBody("session_id", sessionId);
String base64Content = Base64Util.encode(video);
... | public class class_name {
public JSONObject videoFaceliveness(String sessionId, byte[] video, HashMap<String, String> options) {
AipRequest request = new AipRequest();
preOperation(request);
request.addBody("session_id", sessionId);
String base64Content = Base64Util.encode(video);
... |
public class class_name {
@InterfaceAudience.Public
public boolean registerEncryptionKey(Object keyOrPassword, String databaseName) {
if (databaseName == null)
return false;
if (keyOrPassword != null) {
encryptionKeys.put(databaseName, keyOrPassword);
} else
... | public class class_name {
@InterfaceAudience.Public
public boolean registerEncryptionKey(Object keyOrPassword, String databaseName) {
if (databaseName == null)
return false;
if (keyOrPassword != null) {
encryptionKeys.put(databaseName, keyOrPassword); // depends on control d... |
public class class_name {
public static boolean waitForFile(File file) {
if (file.isFile()) {
return true;
} else {
// Start waiting 10 seconds maximum
long timeout = System.currentTimeMillis() + FILE_WAIT_TIMEOUT;
while (System.currentTimeMillis() <= tim... | public class class_name {
public static boolean waitForFile(File file) {
if (file.isFile()) {
return true; // depends on control dependency: [if], data = [none]
} else {
// Start waiting 10 seconds maximum
long timeout = System.currentTimeMillis() + FILE_WAIT_TIMEOUT... |
public class class_name {
public URL getResourceFrom(String name, AbstractClassLoader first) {
if (name.length() == 0) return null;
if (name.charAt(0) == '/') name = name.substring(1);
URL url = null;
// try with the first one
if (first != null)
url = first.getResourceURL(name);
// th... | public class class_name {
public URL getResourceFrom(String name, AbstractClassLoader first) {
if (name.length() == 0) return null;
if (name.charAt(0) == '/') name = name.substring(1);
URL url = null;
// try with the first one
if (first != null)
url = first.getResourceURL(name);
// th... |
public class class_name {
public boolean createOrUpdate(TileScaling tileScaling) {
boolean success = false;
tileScaling.setTableName(tableName);
getOrCreateExtension();
try {
if (!tileScalingDao.isTableExists()) {
geoPackage.createTileScalingTable();
}
CreateOrUpdateStatus status = tileScalingD... | public class class_name {
public boolean createOrUpdate(TileScaling tileScaling) {
boolean success = false;
tileScaling.setTableName(tableName);
getOrCreateExtension();
try {
if (!tileScalingDao.isTableExists()) {
geoPackage.createTileScalingTable(); // depends on control dependency: [if], data = [non... |
public class class_name {
private void keepLastUpdatedUnique() {
Map<String, SingleTokenStats> temp = new HashMap<>();
this.tokenStats.forEach(candidate -> {
SingleTokenStats current = temp.get(candidate.tokenUuid);
if (current == null) {
temp.put(candidate.token... | public class class_name {
private void keepLastUpdatedUnique() {
Map<String, SingleTokenStats> temp = new HashMap<>();
this.tokenStats.forEach(candidate -> {
SingleTokenStats current = temp.get(candidate.tokenUuid);
if (current == null) {
temp.put(candidate.token... |
public class class_name {
public static double[] getDoubleData(INDArray buf) {
if (buf.data().dataType() != DataType.DOUBLE)
throw new IllegalArgumentException("Double data must be obtained from a double buffer");
if (buf.data().allocationMode() == DataBuffer.AllocationMode.HEAP) {
... | public class class_name {
public static double[] getDoubleData(INDArray buf) {
if (buf.data().dataType() != DataType.DOUBLE)
throw new IllegalArgumentException("Double data must be obtained from a double buffer");
if (buf.data().allocationMode() == DataBuffer.AllocationMode.HEAP) {
... |
public class class_name {
public static void listAllVoices() {
System.out.println();
System.out.println("All voices available:");
VoiceManager voiceManager = VoiceManager.getInstance();
Voice[] voices = voiceManager.getVoices();
for (int i = 0; i < voices.length; i++) {
... | public class class_name {
public static void listAllVoices() {
System.out.println();
System.out.println("All voices available:");
VoiceManager voiceManager = VoiceManager.getInstance();
Voice[] voices = voiceManager.getVoices();
for (int i = 0; i < voices.length; i++) {
... |
public class class_name {
private void runTasks() {
// Execute any tasks that were queue during execution of the command.
if (!tasks.isEmpty()) {
for (Runnable task : tasks) {
log.trace("Executing task {}", task);
task.run();
}
tasks.clear();
}
} } | public class class_name {
private void runTasks() {
// Execute any tasks that were queue during execution of the command.
if (!tasks.isEmpty()) {
for (Runnable task : tasks) {
log.trace("Executing task {}", task); // depends on control dependency: [for], data = [task]
task.run(); // depen... |
public class class_name {
public static void extract(DMatrixSparseCSC src, int srcY0, int srcY1, int srcX0, int srcX1,
DMatrixSparseCSC dst, int dstY0, int dstX0)
{
if( srcY1 < srcY0 || srcY0 < 0 || srcY1 > src.getNumRows() )
throw new MatrixDimensionException("sr... | public class class_name {
public static void extract(DMatrixSparseCSC src, int srcY0, int srcY1, int srcX0, int srcX1,
DMatrixSparseCSC dst, int dstY0, int dstX0)
{
if( srcY1 < srcY0 || srcY0 < 0 || srcY1 > src.getNumRows() )
throw new MatrixDimensionException("sr... |
public class class_name {
private void addGroups(final User user, final Set<Group> userGroups, final Group currentGroup,
final List<Group> stack, final boolean inheritOnly)
{
if((currentGroup != null) && !stack.contains(currentGroup))
{
stack.add(currentGroup);
... | public class class_name {
private void addGroups(final User user, final Set<Group> userGroups, final Group currentGroup,
final List<Group> stack, final boolean inheritOnly)
{
if((currentGroup != null) && !stack.contains(currentGroup))
{
stack.add(currentGroup); // depends on... |
public class class_name {
@Override
public List<Metric> transform(QueryContext queryContext, List<Metric>... listOfList) {
List<Metric> result = new ArrayList<>();
for (List<Metric> list : listOfList) {
for (Metric metric : list) {
result.add(metric);
}
... | public class class_name {
@Override
public List<Metric> transform(QueryContext queryContext, List<Metric>... listOfList) {
List<Metric> result = new ArrayList<>();
for (List<Metric> list : listOfList) {
for (Metric metric : list) {
result.add(metric); // depends on cont... |
public class class_name {
public void apply(WAMInstruction next)
{
shift(next);
// Anonymous or singleton variable optimizations.
if ((UnifyVar == next.getMnemonic()) && isVoidVariable(next))
{
if (state != State.UVE)
{
voidCount = 0;
... | public class class_name {
public void apply(WAMInstruction next)
{
shift(next);
// Anonymous or singleton variable optimizations.
if ((UnifyVar == next.getMnemonic()) && isVoidVariable(next))
{
if (state != State.UVE)
{
voidCount = 0; // depe... |
public class class_name {
protected boolean match(final String path) {
final String methodName = "match";
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, methodName, this, path, ignoreCase, wildcard);
}
if (this.matcher == null) {
... | public class class_name {
protected boolean match(final String path) {
final String methodName = "match";
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, methodName, this, path, ignoreCase, wildcard); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void stop(int mode)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "stop");
// Prevent any new async deletion activity kicking off a new background thread.
setIsAsyncDeletionThreadStartable(false);
//... | public class class_name {
public void stop(int mode)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "stop");
// Prevent any new async deletion activity kicking off a new background thread.
setIsAsyncDeletionThreadStartable(false);
//... |
public class class_name {
private int transfer(int state, int[] ids)
{
for (int c : ids)
{
if ((getBase(state) + c < getBaseArraySize())
&& (getCheck(getBase(state) + c) == state))
{
state = getBase(state) + c;
}
else
... | public class class_name {
private int transfer(int state, int[] ids)
{
for (int c : ids)
{
if ((getBase(state) + c < getBaseArraySize())
&& (getCheck(getBase(state) + c) == state))
{
state = getBase(state) + c; // depends on control dependency... |
public class class_name {
private Optional<IncludeAllPageWithOutput> addOutputInformation(IncludeAllPage pages, FileResource baseResource, Path includeAllBasePath, Locale locale) {
// depth = 0 is the file that has the include-all directive
if (pages.depth == 0) {
return of(new IncludeAllPageWithOutput(... | public class class_name {
private Optional<IncludeAllPageWithOutput> addOutputInformation(IncludeAllPage pages, FileResource baseResource, Path includeAllBasePath, Locale locale) {
// depth = 0 is the file that has the include-all directive
if (pages.depth == 0) {
return of(new IncludeAllPageWithOutput(... |
public class class_name {
private synchronized void startThenLoadData() {
if (_closed) {
return;
}
try {
_pathCache.start(PathChildrenCache.StartMode.BUILD_INITIAL_CACHE);
} catch (Throwable t) {
waitThenStartAgain();
return;
}
... | public class class_name {
private synchronized void startThenLoadData() {
if (_closed) {
return; // depends on control dependency: [if], data = [none]
}
try {
_pathCache.start(PathChildrenCache.StartMode.BUILD_INITIAL_CACHE); // depends on control dependency: [try], dat... |
public class class_name {
@Override
public void visitClassContext(ClassContext classContext) {
try {
isEnum = classContext.getJavaClass().isEnum();
stack = new OpcodeStack();
uninitializedRegs = new BitSet();
arrayAliases = new HashMap<>();
stored... | public class class_name {
@Override
public void visitClassContext(ClassContext classContext) {
try {
isEnum = classContext.getJavaClass().isEnum(); // depends on control dependency: [try], data = [none]
stack = new OpcodeStack(); // depends on control dependency: [try], data = [none... |
public class class_name {
public void pause()
{
try
{
lock.lock();
try
{
released.await();
}
catch (InterruptedException e)
{
// Exception set to null as compensation action of returning immedia... | public class class_name {
public void pause()
{
try
{
lock.lock(); // depends on control dependency: [try], data = [none]
try
{
released.await(); // depends on control dependency: [try], data = [none]
}
catch (InterruptedE... |
public class class_name {
public boolean stop(Long channelId, boolean needTermin) {
// stop优先级高于pause
updateStatus(channelId, ChannelStatus.STOP);
boolean result = !needTermin;
if (needTermin) {
try {
result |= termin(channelId, TerminType.SHUTDOWN);
... | public class class_name {
public boolean stop(Long channelId, boolean needTermin) {
// stop优先级高于pause
updateStatus(channelId, ChannelStatus.STOP);
boolean result = !needTermin;
if (needTermin) {
try {
result |= termin(channelId, TerminType.SHUTDOWN); // dep... |
public class class_name {
@Override
public Boolean isReady() {
try {
validateInitialization();
validateActivation();
validateMiddleware();
return true;
} catch (InvalidStateException e) {
return false;
}
} } | public class class_name {
@Override
public Boolean isReady() {
try {
validateInitialization(); // depends on control dependency: [try], data = [none]
validateActivation(); // depends on control dependency: [try], data = [none]
validateMiddleware(); // depends on control ... |
public class class_name {
public static UnitID newUnitID(final String name, final String plural,
final String symbol) {
UnitID id;
try {
id = name == null
? new UnitSymbol(symbol)
: UnitName.newUnitName(name, plural, symbol);
}
catch (final NameException e) {
id = null; // can't happen
}
... | public class class_name {
public static UnitID newUnitID(final String name, final String plural,
final String symbol) {
UnitID id;
try {
id = name == null
? new UnitSymbol(symbol)
: UnitName.newUnitName(name, plural, symbol); // depends on control dependency: [try], data = [none]
}
catch (final... |
public class class_name {
public static boolean greater(final Object o1, final Object o2) {
switch (getTypeMark(o1, o2)) {
case BYTE:
case SHORT:
case INTEGER:
return ((Number) o1).intValue() > ((Number) o2).intValue();
case LONG:
... | public class class_name {
public static boolean greater(final Object o1, final Object o2) {
switch (getTypeMark(o1, o2)) {
case BYTE:
case SHORT:
case INTEGER:
return ((Number) o1).intValue() > ((Number) o2).intValue();
case LONG:
... |
public class class_name {
private static boolean isDeNovoVariant(Member member, Variant variant) {
// We assume the variant iterator will always contain information for one study
StudyEntry study = variant.getStudies().get(0);
Genotype childGt = new Genotype(study.getSampleData(member.getId(),... | public class class_name {
private static boolean isDeNovoVariant(Member member, Variant variant) {
// We assume the variant iterator will always contain information for one study
StudyEntry study = variant.getStudies().get(0);
Genotype childGt = new Genotype(study.getSampleData(member.getId(),... |
public class class_name {
public Short getHeaderKey(String value) {
if (StringUtils.isNotEmpty(value) && headerCache != null) {
return headerCache.getKey(value);
}
return null;
} } | public class class_name {
public Short getHeaderKey(String value) {
if (StringUtils.isNotEmpty(value) && headerCache != null) {
return headerCache.getKey(value); // depends on control dependency: [if], data = [none]
}
return null;
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.