code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static Object getAttribute(Object target, String name) {
try {
return InvokerHelper.getAttribute(target, name);
} catch (InvokerInvocationException e) {
ExceptionUtil.sneakyThrow(e.getCause());
return null; // never reached
}
} } | public class class_name {
public static Object getAttribute(Object target, String name) {
try {
return InvokerHelper.getAttribute(target, name); // depends on control dependency: [try], data = [none]
} catch (InvokerInvocationException e) {
ExceptionUtil.sneakyThrow(e.getCause());
return null... |
public class class_name {
private void pruneIfNeeded(int neededSpace) {
if ((mTotalSize + neededSpace) < mMaxCacheSizeInBytes) {
return;
}
// if (JusLog.DEBUG) {
// JusLog.v("Pruning old cache entries.");
// }
//todo add queue markers
long before = ... | public class class_name {
private void pruneIfNeeded(int neededSpace) {
if ((mTotalSize + neededSpace) < mMaxCacheSizeInBytes) {
return; // depends on control dependency: [if], data = [none]
}
// if (JusLog.DEBUG) {
// JusLog.v("Pruning old cache entries.");
// }
... |
public class class_name {
public static String getInfoMsg(final String msg) {
if (msg.startsWith("ERROR")) {
return msg.replaceFirst("ERROR", "");
}
if (msg.startsWith("WARN")) {
return msg.replaceFirst("WARN", "");
}
return msg;
} } | public class class_name {
public static String getInfoMsg(final String msg) {
if (msg.startsWith("ERROR")) {
return msg.replaceFirst("ERROR", ""); // depends on control dependency: [if], data = [none]
}
if (msg.startsWith("WARN")) {
return msg.replaceFirst("WARN", ""); // depends on control dep... |
public class class_name {
static String signParameters(URI serviceUri, String signatureVersion, String signatureMethod,
Map<String, String> parameters, String aswSecretKey) {
parameters.put("SignatureVersion", signatureVersion);
String algorithm = "HmacSHA1";
String stringToSign = n... | public class class_name {
static String signParameters(URI serviceUri, String signatureVersion, String signatureMethod,
Map<String, String> parameters, String aswSecretKey) {
parameters.put("SignatureVersion", signatureVersion);
String algorithm = "HmacSHA1";
String stringToSign = n... |
public class class_name {
private BinaryStore selectBinaryStore( String hint ) {
BinaryStore namedBinaryStore = null;
if (hint != null) {
logger.trace("Selecting named binary store for hint: " + hint);
namedBinaryStore = namedStores.get(hint);
}
if (namedBinar... | public class class_name {
private BinaryStore selectBinaryStore( String hint ) {
BinaryStore namedBinaryStore = null;
if (hint != null) {
logger.trace("Selecting named binary store for hint: " + hint); // depends on control dependency: [if], data = [none]
namedBinaryStore = na... |
public class class_name {
public void tryVibrate() {
if (mVibrator != null && mIsGloballyEnabled) {
long now = SystemClock.uptimeMillis();
// We want to try to vibrate each individual tick discretely.
if (now - mLastVibrate >= VIBRATE_DELAY_MS) {
mVibrator.vi... | public class class_name {
public void tryVibrate() {
if (mVibrator != null && mIsGloballyEnabled) {
long now = SystemClock.uptimeMillis();
// We want to try to vibrate each individual tick discretely.
if (now - mLastVibrate >= VIBRATE_DELAY_MS) {
mVibrator.vi... |
public class class_name {
@Override
public Properties getConfiguration(Environment environment) {
boolean allMissEnvironment = true;
for (ConfigurationSource source : sources) {
try {
return source.getConfiguration(environment);
} catch (MissingEnvironmentException e) {
// NOP
... | public class class_name {
@Override
public Properties getConfiguration(Environment environment) {
boolean allMissEnvironment = true;
for (ConfigurationSource source : sources) {
try {
return source.getConfiguration(environment); // depends on control dependency: [try], data = [none]
} c... |
public class class_name {
@Override
public Set<URI> getMsmType(URI elementUri) {
if (elementUri == null || !elementUri.isAbsolute()) {
log.warn("The Element URI is either absent or relative. Provide an absolute URI");
return ImmutableSet.of();
}
URI graphUri;
... | public class class_name {
@Override
public Set<URI> getMsmType(URI elementUri) {
if (elementUri == null || !elementUri.isAbsolute()) {
log.warn("The Element URI is either absent or relative. Provide an absolute URI"); // depends on control dependency: [if], data = [none]
return Immu... |
public class class_name {
@SuppressWarnings("unchecked")
public Map<String, Object> getOptionMap(String optName) {
Object optValue = m_options.get(optName);
if (optValue == null) {
return null;
}
if (!(optValue instanceof Map)) {
throw new IllegalArgumentExce... | public class class_name {
@SuppressWarnings("unchecked")
public Map<String, Object> getOptionMap(String optName) {
Object optValue = m_options.get(optName);
if (optValue == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (!(optValue instan... |
public class class_name {
public void setAverageVisible(final boolean VISIBLE) {
if (null == averageVisible) {
_averageVisible = VISIBLE;
fireTileEvent(VISIBILITY_EVENT);
} else {
averageVisible.set(VISIBLE);
}
} } | public class class_name {
public void setAverageVisible(final boolean VISIBLE) {
if (null == averageVisible) {
_averageVisible = VISIBLE; // depends on control dependency: [if], data = [none]
fireTileEvent(VISIBILITY_EVENT); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public String contents()
{
StringBuilder builder = new StringBuilder();
builder.append("{");
for (Map.Entry<RowPosition, AtomicBTreeColumns> entry : rows.entrySet())
{
builder.append(entry.getKey()).append(": ").append(entry.getValue()).append("... | public class class_name {
public String contents()
{
StringBuilder builder = new StringBuilder();
builder.append("{");
for (Map.Entry<RowPosition, AtomicBTreeColumns> entry : rows.entrySet())
{
builder.append(entry.getKey()).append(": ").append(entry.getValue()).append("... |
public class class_name {
@Deprecated
public void setOption(int option,boolean value) {
if (value) {
options |= option;
} else {
options &= (~option);
}
norm2 = mode.getNormalizer2(options);
} } | public class class_name {
@Deprecated
public void setOption(int option,boolean value) {
if (value) {
options |= option; // depends on control dependency: [if], data = [none]
} else {
options &= (~option); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
static synchronized void clearLogContext() {
final LogContext embeddedLogContext = Holder.LOG_CONTEXT;
// Remove the configurator and clear the log context
final Configurator configurator = embeddedLogContext.getLogger("").detach(Configurator.ATTACHMENT_KEY);
/... | public class class_name {
static synchronized void clearLogContext() {
final LogContext embeddedLogContext = Holder.LOG_CONTEXT;
// Remove the configurator and clear the log context
final Configurator configurator = embeddedLogContext.getLogger("").detach(Configurator.ATTACHMENT_KEY);
/... |
public class class_name {
@Around(value = "availableBrowsersCallPointcut()")
public Object availableBrowsersCalls(ProceedingJoinPoint pjp)
throws Throwable {
if (pjp.getArgs().length > 0) {
if (pjp.getArgs()[0] instanceof ITestContext) {
if (Arrays.asList(((ITestCon... | public class class_name {
@Around(value = "availableBrowsersCallPointcut()")
public Object availableBrowsersCalls(ProceedingJoinPoint pjp)
throws Throwable {
if (pjp.getArgs().length > 0) {
if (pjp.getArgs()[0] instanceof ITestContext) {
if (Arrays.asList(((ITestCon... |
public class class_name {
@NonNull
public IconicsAnimationProcessor interpolator(@NonNull TimeInterpolator interpolator) {
if (interpolator != null) {
mInterpolator = interpolator;
} else {
mInterpolator = sDefaultInterpolator;
}
return this;
} } | public class class_name {
@NonNull
public IconicsAnimationProcessor interpolator(@NonNull TimeInterpolator interpolator) {
if (interpolator != null) {
mInterpolator = interpolator; // depends on control dependency: [if], data = [none]
} else {
mInterpolator = sDefaultInterpo... |
public class class_name {
public static void multiply( GrayU8 input , double value , GrayU8 output ) {
output.reshape(input.width,input.height);
int columns = input.width;
if(BoofConcurrency.USE_CONCURRENT ) {
ImplPixelMath_MT.multiplyU_A(input.data,input.startIndex,input.stride,value ,
output.data,ou... | public class class_name {
public static void multiply( GrayU8 input , double value , GrayU8 output ) {
output.reshape(input.width,input.height);
int columns = input.width;
if(BoofConcurrency.USE_CONCURRENT ) {
ImplPixelMath_MT.multiplyU_A(input.data,input.startIndex,input.stride,value ,
output.data,ou... |
public class class_name {
@Override
public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
super.validateParameter(parameterName, value);
if (value.isDefined() && value.getType() != ModelType.EXPRESSION) {
String val = value.asString();
... | public class class_name {
@Override
public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
super.validateParameter(parameterName, value);
if (value.isDefined() && value.getType() != ModelType.EXPRESSION) {
String val = value.asString();
... |
public class class_name {
public Task removeTask(ExecutionAttemptID executionAttemptID) {
checkInit();
TaskSlotMapping taskSlotMapping = taskSlotMappings.remove(executionAttemptID);
if (taskSlotMapping != null) {
Task task = taskSlotMapping.getTask();
TaskSlot taskSlot = taskSlotMapping.getTaskSlot();
... | public class class_name {
public Task removeTask(ExecutionAttemptID executionAttemptID) {
checkInit();
TaskSlotMapping taskSlotMapping = taskSlotMappings.remove(executionAttemptID);
if (taskSlotMapping != null) {
Task task = taskSlotMapping.getTask();
TaskSlot taskSlot = taskSlotMapping.getTaskSlot();
... |
public class class_name {
private List<TreeNode> getSelected(TreeNode parent) {
List<TreeNode> result = new ArrayList<>();
for (TreeNode n : parent.getChildren()) {
if (n.isSelected()) {
result.add(n);
}
result.addAll(getSelected(n));
}
... | public class class_name {
private List<TreeNode> getSelected(TreeNode parent) {
List<TreeNode> result = new ArrayList<>();
for (TreeNode n : parent.getChildren()) {
if (n.isSelected()) {
result.add(n); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static ComputationGraphConfiguration.GraphBuilder appendGraph(
ComputationGraphConfiguration.GraphBuilder graph, String moduleLayerName, int inputSize,
int[] kernelSize, int[] kernelStride, int[] outputSize, int[] reduceSize,
... | public class class_name {
public static ComputationGraphConfiguration.GraphBuilder appendGraph(
ComputationGraphConfiguration.GraphBuilder graph, String moduleLayerName, int inputSize,
int[] kernelSize, int[] kernelStride, int[] outputSize, int[] reduceSize,
... |
public class class_name {
void checkClosed() throws FetchException {
TransactionScope<Txn> scope = localTransactionScope();
// Lock out shutdown task.
scope.getLock().lock();
try {
if (mPrimaryDatabase == null) {
// If shutting down, this will force u... | public class class_name {
void checkClosed() throws FetchException {
TransactionScope<Txn> scope = localTransactionScope();
// Lock out shutdown task.
scope.getLock().lock();
try {
if (mPrimaryDatabase == null) {
// If shutting down, this will force u... |
public class class_name {
public final AbstractItem next(int fromIndex) throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "next( fromIndex)"+fromIndex);
AbstractItem found = null;
for (int priority = Priorities.HIGHEST_PRI... | public class class_name {
public final AbstractItem next(int fromIndex) throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "next( fromIndex)"+fromIndex);
AbstractItem found = null;
for (int priority = Priorities.HIGHEST_PRI... |
public class class_name {
public static int binomial(int n, int k) {
checkNonNegative("n", n);
checkNonNegative("k", k);
N.checkArgument(k <= n, "k (%s) > n (%s)", k, n);
if (k > (n >> 1)) {
k = n - k;
}
if (k >= int_biggestBinomials.length || n > int_... | public class class_name {
public static int binomial(int n, int k) {
checkNonNegative("n", n);
checkNonNegative("k", k);
N.checkArgument(k <= n, "k (%s) > n (%s)", k, n);
if (k > (n >> 1)) {
k = n - k;
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private void processAlterColumnType(Table table, ColumnSchema oldCol,
boolean fullDefinition) {
ColumnSchema newCol;
if (oldCol.isGenerated()) {
throw Error.error(ErrorCode.X_42561);
}
if (fullDefinition) {... | public class class_name {
private void processAlterColumnType(Table table, ColumnSchema oldCol,
boolean fullDefinition) {
ColumnSchema newCol;
if (oldCol.isGenerated()) {
throw Error.error(ErrorCode.X_42561);
}
if (fullDefinition) {... |
public class class_name {
private static Method[] getDeclaredMethods(Class<?> clazz) {
Method[] result;
Method[] declaredMethods = clazz.getDeclaredMethods();
List<Method> defaultMethods = findConcreteMethodsOnInterfaces(clazz);
if (defaultMethods != null) {
result = new Me... | public class class_name {
private static Method[] getDeclaredMethods(Class<?> clazz) {
Method[] result;
Method[] declaredMethods = clazz.getDeclaredMethods();
List<Method> defaultMethods = findConcreteMethodsOnInterfaces(clazz);
if (defaultMethods != null) {
result = new Me... |
public class class_name {
public GetReservationCoverageRequest withMetrics(String... metrics) {
if (this.metrics == null) {
setMetrics(new java.util.ArrayList<String>(metrics.length));
}
for (String ele : metrics) {
this.metrics.add(ele);
}
return this;
... | public class class_name {
public GetReservationCoverageRequest withMetrics(String... metrics) {
if (this.metrics == null) {
setMetrics(new java.util.ArrayList<String>(metrics.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : metrics) {
t... |
public class class_name {
public String url(Map<String, ?> parametersMap)
{
StringBuilder queryStringBuilder = new StringBuilder();
for (Map.Entry<String, ?> entry : parametersMap.entrySet()) {
if (entry.getKey() == null) {
// Skip the parameter if its name is null.
... | public class class_name {
public String url(Map<String, ?> parametersMap)
{
StringBuilder queryStringBuilder = new StringBuilder();
for (Map.Entry<String, ?> entry : parametersMap.entrySet()) {
if (entry.getKey() == null) {
// Skip the parameter if its name is null.
... |
public class class_name {
public java.util.List<String> getCheckerIpRanges() {
if (checkerIpRanges == null) {
checkerIpRanges = new com.amazonaws.internal.SdkInternalList<String>();
}
return checkerIpRanges;
} } | public class class_name {
public java.util.List<String> getCheckerIpRanges() {
if (checkerIpRanges == null) {
checkerIpRanges = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return checkerIpRanges;
} } |
public class class_name {
public void startRecovery() throws Exception {
if (tc.isEntryEnabled())
Tr.entry(tc, "startRecovery");
// Note that _recoverDBLogStarted is always false if we are logging to a filesystem.
// If we are logging to an RDBMS, then we will start the TM which wi... | public class class_name {
public void startRecovery() throws Exception {
if (tc.isEntryEnabled())
Tr.entry(tc, "startRecovery");
// Note that _recoverDBLogStarted is always false if we are logging to a filesystem.
// If we are logging to an RDBMS, then we will start the TM which wi... |
public class class_name {
public HpackHeaderField remove() {
HpackHeaderField removed = hpackHeaderFields[tail];
if (removed == null) {
return null;
}
size -= removed.size();
hpackHeaderFields[tail++] = null;
if (tail == hpackHeaderFields.length) {
... | public class class_name {
public HpackHeaderField remove() {
HpackHeaderField removed = hpackHeaderFields[tail];
if (removed == null) {
return null; // depends on control dependency: [if], data = [none]
}
size -= removed.size();
hpackHeaderFields[tail++] = null;
... |
public class class_name {
public ListKeysResult withKeys(KeyListEntry... keys) {
if (this.keys == null) {
setKeys(new com.ibm.cloud.objectstorage.internal.SdkInternalList<KeyListEntry>(keys.length));
}
for (KeyListEntry ele : keys) {
this.keys.add(ele);
}
... | public class class_name {
public ListKeysResult withKeys(KeyListEntry... keys) {
if (this.keys == null) {
setKeys(new com.ibm.cloud.objectstorage.internal.SdkInternalList<KeyListEntry>(keys.length)); // depends on control dependency: [if], data = [none]
}
for (KeyListEntry ele : key... |
public class class_name {
private String getExtractQuery(String schema, String entity, String inputQuery) {
String inputColProjection = this.getInputColumnProjection();
String outputColProjection = this.getOutputColumnProjection();
String query = inputQuery;
if (query == null) {
// if input query... | public class class_name {
private String getExtractQuery(String schema, String entity, String inputQuery) {
String inputColProjection = this.getInputColumnProjection();
String outputColProjection = this.getOutputColumnProjection();
String query = inputQuery;
if (query == null) {
// if input query... |
public class class_name {
private BufferedImage downloadImage() throws Exception {
BufferedImage image = null;
InputStream in = null;
try { // first try reading with the default class
URL url = new URL(imageUrl);
HttpURLConnection conn = null;
boolean succe... | public class class_name {
private BufferedImage downloadImage() throws Exception {
BufferedImage image = null;
InputStream in = null;
try { // first try reading with the default class
URL url = new URL(imageUrl);
HttpURLConnection conn = null;
boolean succe... |
public class class_name {
public <E> void dispatchEvent (Signal<E> signal, E event) {
try {
signal.emit(event);
} catch (Throwable cause) {
reportError("Event dispatch failure", cause);
}
} } | public class class_name {
public <E> void dispatchEvent (Signal<E> signal, E event) {
try {
signal.emit(event); // depends on control dependency: [try], data = [none]
} catch (Throwable cause) {
reportError("Event dispatch failure", cause);
} // depends on control dependency: [catch], data = [n... |
public class class_name {
public static int nodeHashCode(final Node node) {
assert node != null;
int hash = 1 + node.getNodeType();
hash = (hash * 17) + Arrays.hashCode(getNodeAttributes(node));
if (node.hasAttributes()) {
NamedNodeMap nodeMap = node.getAttributes();
... | public class class_name {
public static int nodeHashCode(final Node node) {
assert node != null;
int hash = 1 + node.getNodeType();
hash = (hash * 17) + Arrays.hashCode(getNodeAttributes(node));
if (node.hasAttributes()) {
NamedNodeMap nodeMap = node.getAttributes();
... |
public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:52:47+02:00", comments = "JAXB RI v2.2.11")
public StatusTyp getStatusHP() {
if (statusHP == null) {
return StatusTyp.AKTIV;
} else {
return statusHP;
}
} } | public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:52:47+02:00", comments = "JAXB RI v2.2.11")
public StatusTyp getStatusHP() {
if (statusHP == null) {
return StatusTyp.AKTIV; // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
@Override
public void postProcessInstance(ManagedClassSPI managedClass, Object instance) {
if (!(instance instanceof ManagedPostConstruct)) {
return;
}
ManagedPostConstruct managedInstance = (ManagedPostConstruct) instance;
log.debug("Post-construct managed instance |%s|", m... | public class class_name {
@Override
public void postProcessInstance(ManagedClassSPI managedClass, Object instance) {
if (!(instance instanceof ManagedPostConstruct)) {
return;
// depends on control dependency: [if], data = [none]
}
ManagedPostConstruct managedInstance = (ManagedPostConstruct) instance;
... |
public class class_name {
public void sendGrafanaDashboardAsync(final String classPathLocation) {
if (!corePlugin.isReportToElasticsearch()) {
return;
}
try {
final ObjectNode dashboard = getGrafanaDashboard(classPathLocation);
Map<String, Object> body = new HashMap<String, Object>();
body.put("dash... | public class class_name {
public void sendGrafanaDashboardAsync(final String classPathLocation) {
if (!corePlugin.isReportToElasticsearch()) {
return; // depends on control dependency: [if], data = [none]
}
try {
final ObjectNode dashboard = getGrafanaDashboard(classPathLocation);
Map<String, Object> b... |
public class class_name {
private void encode(long bits, StringBuilder sb) {
if (bits < 0) {
sb.append(characters[(int) ((bits % base + base) % base)]);
bits /= -base;
}
while (bits > 0) {
sb.append(characters[(int) (bits % base)]);
bits /= bas... | public class class_name {
private void encode(long bits, StringBuilder sb) {
if (bits < 0) {
sb.append(characters[(int) ((bits % base + base) % base)]); // depends on control dependency: [if], data = [(bits]
bits /= -base; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
private void ensureCapacity(int wordsRequired)
{
if (words.length >= wordsRequired) {
return;
}
int newLength = Math.max(words.length << 1, wordsRequired);
words = Arrays.copyOf(words, newLength);
} } | public class class_name {
private void ensureCapacity(int wordsRequired)
{
if (words.length >= wordsRequired) {
return;
// depends on control dependency: [if], data = [none]
}
int newLength = Math.max(words.length << 1, wordsRequired);
words = Arrays.copyOf(words, newLength);
} } |
public class class_name {
public List<List<IN>> classifyFile(String filename) {
ObjectBank<List<IN>> documents =
makeObjectBankFromFile(filename, plainTextReaderAndWriter);
List<List<IN>> result = new ArrayList<List<IN>>();
for (List<IN> document : documents) {
// System.err.println(docu... | public class class_name {
public List<List<IN>> classifyFile(String filename) {
ObjectBank<List<IN>> documents =
makeObjectBankFromFile(filename, plainTextReaderAndWriter);
List<List<IN>> result = new ArrayList<List<IN>>();
for (List<IN> document : documents) {
// System.err.println(docu... |
public class class_name {
@Trivial
private static boolean contains(String[] fileList, String fileName) {
if (fileList != null) {
for (String name : fileList) {
if (name.equals(fileName)) {
return true;
}
}
}
return... | public class class_name {
@Trivial
private static boolean contains(String[] fileList, String fileName) {
if (fileList != null) {
for (String name : fileList) {
if (name.equals(fileName)) {
return true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public int getZoneNaryForNodesPartition(int zoneId, int nodeId, int partitionId) {
if(cluster.getNodeById(nodeId).getZoneId() != zoneId) {
throw new VoldemortException("Node " + nodeId + " is not in zone " + zoneId
+ "! The node is ... | public class class_name {
public int getZoneNaryForNodesPartition(int zoneId, int nodeId, int partitionId) {
if(cluster.getNodeById(nodeId).getZoneId() != zoneId) {
throw new VoldemortException("Node " + nodeId + " is not in zone " + zoneId
+ "! The node is ... |
public class class_name {
@Override
public TokenStream tokenStream(String fieldName, Reader reader)
{
if (indexingConfig != null)
{
Analyzer propertyAnalyzer = indexingConfig.getPropertyAnalyzer(fieldName);
if (propertyAnalyzer != null)
{
return propertyAnalyzer... | public class class_name {
@Override
public TokenStream tokenStream(String fieldName, Reader reader)
{
if (indexingConfig != null)
{
Analyzer propertyAnalyzer = indexingConfig.getPropertyAnalyzer(fieldName);
if (propertyAnalyzer != null)
{
return propertyAnalyzer... |
public class class_name {
public static void handleHeaderView(DrawerBuilder drawer) {
//use the AccountHeader if set
if (drawer.mAccountHeader != null) {
if (drawer.mAccountHeaderSticky) {
drawer.mStickyHeaderView = drawer.mAccountHeader.getView();
} else {
... | public class class_name {
public static void handleHeaderView(DrawerBuilder drawer) {
//use the AccountHeader if set
if (drawer.mAccountHeader != null) {
if (drawer.mAccountHeaderSticky) {
drawer.mStickyHeaderView = drawer.mAccountHeader.getView(); // depends on control depe... |
public class class_name {
public NodeSequence fromIndex(final Index index,
final long cardinalityEstimate,
final Collection<Constraint> constraints,
final Collection<JoinCondition> joinConditions,
... | public class class_name {
public NodeSequence fromIndex(final Index index,
final long cardinalityEstimate,
final Collection<Constraint> constraints,
final Collection<JoinCondition> joinConditions,
... |
public class class_name {
public void removeListener(CancellationListener cancellationListener) {
if (!canBeCancelled()) {
return;
}
synchronized (this) {
if (listeners != null) {
for (int i = listeners.size() - 1; i >= 0; i--) {
if (listeners.get(i).listener == cancellationLi... | public class class_name {
public void removeListener(CancellationListener cancellationListener) {
if (!canBeCancelled()) {
return; // depends on control dependency: [if], data = [none]
}
synchronized (this) {
if (listeners != null) {
for (int i = listeners.size() - 1; i >= 0; i--) {
... |
public class class_name {
private byte[] generateAesIv() {
byte[] bytes = new byte[16];
if (!testMode) {
SecureRandom random = new SecureRandom();
random.nextBytes(bytes);
} else {
bytes = "TEST1234TEST1234".getBytes(MESSAGE_ENCODING);
}
retur... | public class class_name {
private byte[] generateAesIv() {
byte[] bytes = new byte[16];
if (!testMode) {
SecureRandom random = new SecureRandom();
random.nextBytes(bytes); // depends on control dependency: [if], data = [none]
} else {
bytes = "TEST1234TEST123... |
public class class_name {
public void marshall(CreatePortfolioRequest createPortfolioRequest, ProtocolMarshaller protocolMarshaller) {
if (createPortfolioRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(CreatePortfolioRequest createPortfolioRequest, ProtocolMarshaller protocolMarshaller) {
if (createPortfolioRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
@Exported
public boolean isIdle() {
lock.readLock().lock();
try {
return workUnit == null && executable == null;
} finally {
lock.readLock().unlock();
}
} } | public class class_name {
@Exported
public boolean isIdle() {
lock.readLock().lock();
try {
return workUnit == null && executable == null; // depends on control dependency: [try], data = [none]
} finally {
lock.readLock().unlock();
}
} } |
public class class_name {
protected void loadPage(int pageNum) {
int start = (pageNum - 1) * m_pageSize;
List<CmsResultItemBean> results = m_resultBeans;
int end = start + m_pageSize;
if (end > results.size()) {
end = results.size();
}
List<CmsResult... | public class class_name {
protected void loadPage(int pageNum) {
int start = (pageNum - 1) * m_pageSize;
List<CmsResultItemBean> results = m_resultBeans;
int end = start + m_pageSize;
if (end > results.size()) {
end = results.size();
// depends on control dependency:... |
public class class_name {
public void marshall(UsageRecord usageRecord, ProtocolMarshaller protocolMarshaller) {
if (usageRecord == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(usageRecord.getTime... | public class class_name {
public void marshall(UsageRecord usageRecord, ProtocolMarshaller protocolMarshaller) {
if (usageRecord == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(usageRecord.getTime... |
public class class_name {
@Override
protected void perform(final Wave wave) {
// Retrieved the model class
// final Class<? extends Model> modelClass = (Class<? extends Model>) getWaveBean(wave).getShowModelKey().getClass();
// final Object[] keyPart = getWaveBean(wave).getKeyPart() == nu... | public class class_name {
@Override
protected void perform(final Wave wave) {
// Retrieved the model class
// final Class<? extends Model> modelClass = (Class<? extends Model>) getWaveBean(wave).getShowModelKey().getClass();
// final Object[] keyPart = getWaveBean(wave).getKeyPart() == nu... |
public class class_name {
public void marshall(RestoreTableFromBackupRequest restoreTableFromBackupRequest, ProtocolMarshaller protocolMarshaller) {
if (restoreTableFromBackupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(RestoreTableFromBackupRequest restoreTableFromBackupRequest, ProtocolMarshaller protocolMarshaller) {
if (restoreTableFromBackupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static StringBuilder appendZeros(StringBuilder buf, int zeros) {
for(int i = zeros; i > 0; i -= ZEROPADDING.length) {
buf.append(ZEROPADDING, 0, i < ZEROPADDING.length ? i : ZEROPADDING.length);
}
return buf;
} } | public class class_name {
public static StringBuilder appendZeros(StringBuilder buf, int zeros) {
for(int i = zeros; i > 0; i -= ZEROPADDING.length) {
buf.append(ZEROPADDING, 0, i < ZEROPADDING.length ? i : ZEROPADDING.length); // depends on control dependency: [for], data = [i]
}
return buf;
} } |
public class class_name {
public void setDeviceInstances(java.util.Collection<DeviceInstance> deviceInstances) {
if (deviceInstances == null) {
this.deviceInstances = null;
return;
}
this.deviceInstances = new java.util.ArrayList<DeviceInstance>(deviceInstances);
} ... | public class class_name {
public void setDeviceInstances(java.util.Collection<DeviceInstance> deviceInstances) {
if (deviceInstances == null) {
this.deviceInstances = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
private void processAnalytics() throws SQLException
{
allocateConnection();
try
{
DatabaseMetaData meta = m_connection.getMetaData();
String productName = meta.getDatabaseProductName();
if (productName == null || productName.isEmpty())
... | public class class_name {
private void processAnalytics() throws SQLException
{
allocateConnection();
try
{
DatabaseMetaData meta = m_connection.getMetaData();
String productName = meta.getDatabaseProductName();
if (productName == null || productName.isEmpty())
... |
public class class_name {
private ResourceException processHandleDissociationError(int handleIndex,
ResourceException dissociationX) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
... | public class class_name {
private ResourceException processHandleDissociationError(int handleIndex,
ResourceException dissociationX) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
... |
public class class_name {
public String getFullName() {
StringBuffer buf = new StringBuffer();
if (getParentPrivlige() != null) {
buf.append(parentPrivlige.getFullName().concat(" > "));
}
buf.append(getPriviligeName());
return buf.toString();
} } | public class class_name {
public String getFullName() {
StringBuffer buf = new StringBuffer();
if (getParentPrivlige() != null) {
buf.append(parentPrivlige.getFullName().concat(" > ")); // depends on control dependency: [if], data = [none]
}
buf.append(getPriviligeName());
return buf.toString();
} } |
public class class_name {
@Override
public JacksonWrapperSerializer createSerializer(Writer writer) {
try {
JsonGenerator generator = innerFactory.createGenerator(writer);
// generator.setPrettyPrinter(new MinimalPrettyPrinter());
return new JacksonWrapperSerializer(generator, getSupportedFormat());
} ca... | public class class_name {
@Override
public JacksonWrapperSerializer createSerializer(Writer writer) {
try {
JsonGenerator generator = innerFactory.createGenerator(writer);
// generator.setPrettyPrinter(new MinimalPrettyPrinter());
return new JacksonWrapperSerializer(generator, getSupportedFormat()); // dep... |
public class class_name {
@Nullable
static Map<String, Object> jsonObjectToMap(@Nullable JSONObject jsonObject) {
if (jsonObject == null) {
return null;
}
Map<String, Object> map = new HashMap<>();
Iterator<String> keyIterator = jsonObject.keys();
while (keyItera... | public class class_name {
@Nullable
static Map<String, Object> jsonObjectToMap(@Nullable JSONObject jsonObject) {
if (jsonObject == null) {
return null; // depends on control dependency: [if], data = [none]
}
Map<String, Object> map = new HashMap<>();
Iterator<String> ke... |
public class class_name {
public ArrayList<SAXRecord> getSimpleMotifs(int num) {
ArrayList<SAXRecord> res = new ArrayList<SAXRecord>(num);
DoublyLinkedSortedList<Entry<String, SAXRecord>> list = new DoublyLinkedSortedList<Entry<String, SAXRecord>>(
num, new Comparator<Entry<String, SAXRecord>>() {
... | public class class_name {
public ArrayList<SAXRecord> getSimpleMotifs(int num) {
ArrayList<SAXRecord> res = new ArrayList<SAXRecord>(num);
DoublyLinkedSortedList<Entry<String, SAXRecord>> list = new DoublyLinkedSortedList<Entry<String, SAXRecord>>(
num, new Comparator<Entry<String, SAXRecord>>() {
... |
public class class_name {
public Set<String> getInvokedTables() throws ParseException {
// Read all SQL statements from input
ZStatement st;
Set<String> tables = new HashSet<String>();
while ((st = parser.readStatement()) != null) {
this.sql = st.toString();
if (st instanceof ZQuery) { // An SQL query:... | public class class_name {
public Set<String> getInvokedTables() throws ParseException {
// Read all SQL statements from input
ZStatement st;
Set<String> tables = new HashSet<String>();
while ((st = parser.readStatement()) != null) {
this.sql = st.toString();
if (st instanceof ZQuery) { // An SQL query:... |
public class class_name {
@Override
public VertrekkendeTreinen getModel(InputStream stream) {
SimpleDateFormat format = new SimpleDateFormat(NsApi.DATETIME_FORMAT);
try {
List<VertrekkendeTrein> vertrekkendeTreinen = new LinkedList<VertrekkendeTrein>();
Xml xml = Xml.ge... | public class class_name {
@Override
public VertrekkendeTreinen getModel(InputStream stream) {
SimpleDateFormat format = new SimpleDateFormat(NsApi.DATETIME_FORMAT);
try {
List<VertrekkendeTrein> vertrekkendeTreinen = new LinkedList<VertrekkendeTrein>();
Xml xml = Xml.ge... |
public class class_name {
public static Stream<BigFloat> rangeClosed(BigFloat startInclusive, BigFloat endInclusive, BigFloat step) {
if (step.isZero()) {
throw new IllegalArgumentException("invalid step: 0");
}
if (endInclusive.subtract(startInclusive).signum() == -step.signum()) {
return St... | public class class_name {
public static Stream<BigFloat> rangeClosed(BigFloat startInclusive, BigFloat endInclusive, BigFloat step) {
if (step.isZero()) {
throw new IllegalArgumentException("invalid step: 0");
}
if (endInclusive.subtract(startInclusive).signum() == -step.signum()) {
return St... |
public class class_name {
@Override
public void inherit(DocFinder.Input input, DocFinder.Output output) {
Utils utils = input.utils;
Element exception;
CommentHelper ch = utils.getCommentHelper(input.element);
if (input.tagId == null) {
exception = ch.getException(utils.... | public class class_name {
@Override
public void inherit(DocFinder.Input input, DocFinder.Output output) {
Utils utils = input.utils;
Element exception;
CommentHelper ch = utils.getCommentHelper(input.element);
if (input.tagId == null) {
exception = ch.getException(utils.... |
public class class_name {
public static boolean isInterfaceImpl(Class thisClass, Class targetInterface) {
for (Class x = thisClass; x != null; x = x.getSuperclass()) {
Class[] interfaces = x.getInterfaces();
for (Class i : interfaces) {
if (i == targetInterface) {
... | public class class_name {
public static boolean isInterfaceImpl(Class thisClass, Class targetInterface) {
for (Class x = thisClass; x != null; x = x.getSuperclass()) {
Class[] interfaces = x.getInterfaces();
for (Class i : interfaces) {
if (i == targetInterface) {
... |
public class class_name {
public void marshall(KeyValuePair keyValuePair, ProtocolMarshaller protocolMarshaller) {
if (keyValuePair == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(keyValuePair.get... | public class class_name {
public void marshall(KeyValuePair keyValuePair, ProtocolMarshaller protocolMarshaller) {
if (keyValuePair == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(keyValuePair.get... |
public class class_name {
private synchronized void readObject(java.io.ObjectInputStream s)
throws IOException, ClassNotFoundException
{
s.defaultReadObject(); // read the fields
if ((handler = getDelegate().getURLStreamHandler(protocol)) == null) {
throw new IOException("unkn... | public class class_name {
private synchronized void readObject(java.io.ObjectInputStream s)
throws IOException, ClassNotFoundException
{
s.defaultReadObject(); // read the fields
if ((handler = getDelegate().getURLStreamHandler(protocol)) == null) {
throw new IOException("unkn... |
public class class_name {
public static TopologyGraph getTopologyGraph(StormTopology stormTopology, List<MetricInfo> componentMetrics) {
Map<String, Bolt> bolts = stormTopology.get_bolts();
Map<String, SpoutSpec> spouts = stormTopology.get_spouts();
//remove system bolts
String[] remov... | public class class_name {
public static TopologyGraph getTopologyGraph(StormTopology stormTopology, List<MetricInfo> componentMetrics) {
Map<String, Bolt> bolts = stormTopology.get_bolts();
Map<String, SpoutSpec> spouts = stormTopology.get_spouts();
//remove system bolts
String[] remov... |
public class class_name {
public String save() {
Integer codeScriptId = getInt("codeScript.id");
CodeScript codeScript = null;
if (null == codeScriptId) {
codeScript = new CodeScript();
} else {
codeScript = (CodeScript) entityDao.get(CodeScript.class, codeScriptId);
}
codeScript.se... | public class class_name {
public String save() {
Integer codeScriptId = getInt("codeScript.id");
CodeScript codeScript = null;
if (null == codeScriptId) {
codeScript = new CodeScript(); // depends on control dependency: [if], data = [none]
} else {
codeScript = (CodeScript) entityDao.get(Co... |
public class class_name {
public static boolean isDouble(String number) {
boolean result = false;
if (number != null) {
try {
Double.parseDouble(number);
result = true;
} catch (NumberFormatException e) {
}
}
return res... | public class class_name {
public static boolean isDouble(String number) {
boolean result = false;
if (number != null) {
try {
Double.parseDouble(number); // depends on control dependency: [try], data = [none]
result = true; // depends on control dependency: [... |
public class class_name {
public void sendToMe(SIBUuid8 targetME, int priority, AbstractMessage aMessage)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "sendToMe", new Object[] { aMessage, Integer.valueOf(priority), targetME });
// find an appropriate MPConnectio... | public class class_name {
public void sendToMe(SIBUuid8 targetME, int priority, AbstractMessage aMessage)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "sendToMe", new Object[] { aMessage, Integer.valueOf(priority), targetME });
// find an appropriate MPConnectio... |
public class class_name {
private void install() {
File directory = getNPMDirectory();
if (directory.isDirectory()) {
// Check the version
String version = getVersionFromNPM(directory, log);
// Are we looking for a specific version ?
if (npmVersion != nul... | public class class_name {
private void install() {
File directory = getNPMDirectory();
if (directory.isDirectory()) {
// Check the version
String version = getVersionFromNPM(directory, log);
// Are we looking for a specific version ?
if (npmVersion != nul... |
public class class_name {
public static <T extends Comparable<? super T>> int compare(T c1, T c2, boolean isNullGreater) {
if (c1 == c2) {
return 0;
} else if (c1 == null) {
return isNullGreater ? 1 : -1;
} else if (c2 == null) {
return isNullGreater ? -1 : 1;
}
return c1.compareTo(c2);
} ... | public class class_name {
public static <T extends Comparable<? super T>> int compare(T c1, T c2, boolean isNullGreater) {
if (c1 == c2) {
return 0;
// depends on control dependency: [if], data = [none]
} else if (c1 == null) {
return isNullGreater ? 1 : -1;
// depends on control dependency: [if], data ... |
public class class_name {
protected String captureStackTrace(String message) {
StringBuilder stringBuilder = new StringBuilder(String.format(message, Thread.currentThread().getName()));
StackTraceElement[] trace = Thread.currentThread().getStackTrace();
for (int i = 0; i < trace.length; i++) {
stringBuilder.a... | public class class_name {
protected String captureStackTrace(String message) {
StringBuilder stringBuilder = new StringBuilder(String.format(message, Thread.currentThread().getName()));
StackTraceElement[] trace = Thread.currentThread().getStackTrace();
for (int i = 0; i < trace.length; i++) {
stringBuilder.a... |
public class class_name {
public void addDocumentUriParticipantObject(String documentRetrieveUri, String documentUniqueId)
{
List<TypeValuePairType> tvp = new LinkedList<>();
if (documentUniqueId != null) {
tvp.add(getTypeValuePair("XDSDocumentEntry.uniqueId", documentUniqueId.getBytes()));
}
addParticipan... | public class class_name {
public void addDocumentUriParticipantObject(String documentRetrieveUri, String documentUniqueId)
{
List<TypeValuePairType> tvp = new LinkedList<>();
if (documentUniqueId != null) {
tvp.add(getTypeValuePair("XDSDocumentEntry.uniqueId", documentUniqueId.getBytes())); // depends on contr... |
public class class_name {
private static void insertionSort(int array[], int offset, int end) {
for (int x=offset; x<end; ++x) {
for (int y=x; y>offset && array[y-1]>array[y]; y--) {
int temp = array[y];
array[y] = array[y-1];
array[y-1] = temp;
}
}
} } | public class class_name {
private static void insertionSort(int array[], int offset, int end) {
for (int x=offset; x<end; ++x) {
for (int y=x; y>offset && array[y-1]>array[y]; y--) {
int temp = array[y];
array[y] = array[y-1]; // depends on control dependency: [for], data = [y]
array[y-1] = temp; // d... |
public class class_name {
public static void main(String[] args)
{
if (args.length==0 || args.length>2)
{
System.err.println
("\nUsage - java org.browsermob.proxy.jetty.http.HttpServer [<addr>:]<port>");
System.err.println
("\nUsage - java org... | public class class_name {
public static void main(String[] args)
{
if (args.length==0 || args.length>2)
{
System.err.println
("\nUsage - java org.browsermob.proxy.jetty.http.HttpServer [<addr>:]<port>"); // depends on control dependency: [if], data = [none]
S... |
public class class_name {
public int sendMessageToTopic(Collection<Session> sessionTargets, MessageToClient mtc, Object payload) {
int sended = 0;
logger.debug("Sending message to topic {}...", mtc);
Collection<Session> doublons = topicManager.getSessionsForTopic(mtc.getId());
if (doublons != null && !doub... | public class class_name {
public int sendMessageToTopic(Collection<Session> sessionTargets, MessageToClient mtc, Object payload) {
int sended = 0;
logger.debug("Sending message to topic {}...", mtc);
Collection<Session> doublons = topicManager.getSessionsForTopic(mtc.getId());
if (doublons != null && !doub... |
public class class_name {
private String getDocAsString(int numCurPara) {
if (numCurPara < 0 || allParas == null || allParas.size() < numCurPara - 1) {
return "";
}
int startPos;
int endPos;
if (numParasToCheck < 1) {
startPos = 0;
endPos = allParas.size();
} else {
star... | public class class_name {
private String getDocAsString(int numCurPara) {
if (numCurPara < 0 || allParas == null || allParas.size() < numCurPara - 1) {
return ""; // depends on control dependency: [if], data = [none]
}
int startPos;
int endPos;
if (numParasToCheck < 1) {
startPos = 0; /... |
public class class_name {
private String getRequestPath(HttpServletRequest request) {
String url = request.getServletPath();
if (request.getPathInfo() != null) {
url += request.getPathInfo();
}
return url;
} } | public class class_name {
private String getRequestPath(HttpServletRequest request) {
String url = request.getServletPath();
if (request.getPathInfo() != null) {
url += request.getPathInfo(); // depends on control dependency: [if], data = [none]
}
return url;
} } |
public class class_name {
private void markUnusedParameters(Node paramList, Scope fparamScope) {
for (Node param = paramList.getFirstChild(); param != null; param = param.getNext()) {
if (param.isUnusedParameter()) {
continue;
}
Node lValue = nameOfParam(param);
if (lValue == null)... | public class class_name {
private void markUnusedParameters(Node paramList, Scope fparamScope) {
for (Node param = paramList.getFirstChild(); param != null; param = param.getNext()) {
if (param.isUnusedParameter()) {
continue;
}
Node lValue = nameOfParam(param);
if (lValue == null)... |
public class class_name {
private void addPkcs11ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addPkcs11ButtonActionPerformed
String name = null;
try {
final int indexSelectedDriver = driverComboBox.getSelectedIndex();
name = driverConfig.getNames().get(indexSelectedDriver);
... | public class class_name {
private void addPkcs11ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addPkcs11ButtonActionPerformed
String name = null;
try {
final int indexSelectedDriver = driverComboBox.getSelectedIndex();
name = driverConfig.getNames().get(indexSelectedDriver);
... |
public class class_name {
public Node.Nodes getNamedAttributeNodes() {
if (namedAttributeNodes != null) {
return namedAttributeNodes;
}
Node.Nodes result = new Node.Nodes();
// Look for the attribute in NamedAttribute children
Nodes nodes = getBody();
if( nodes != null... | public class class_name {
public Node.Nodes getNamedAttributeNodes() {
if (namedAttributeNodes != null) {
return namedAttributeNodes; // depends on control dependency: [if], data = [none]
}
Node.Nodes result = new Node.Nodes();
// Look for the attribute in NamedAttribute children
... |
public class class_name {
public static boolean isZip(final String filename)
{
for (final String element : FileConst.ZIP_EXTENSIONS)
{
if (filename.endsWith(element))
{
return true;
}
}
return false;
} } | public class class_name {
public static boolean isZip(final String filename)
{
for (final String element : FileConst.ZIP_EXTENSIONS)
{
if (filename.endsWith(element))
{
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
@Override
public Void visitType(TypeMirror t, String p) {
//System.out.printf(">> %s classValue: %s\n", p, t.toString());
if (inTasks && AnnotationAttributeType.TASK.getValue().equals(p)) {
// add value
currentValue = (currentValue == null) ? new Pair<Integer, String>() : curre... | public class class_name {
@Override
public Void visitType(TypeMirror t, String p) {
//System.out.printf(">> %s classValue: %s\n", p, t.toString());
if (inTasks && AnnotationAttributeType.TASK.getValue().equals(p)) {
// add value
currentValue = (currentValue == null) ? new Pair<Integer, String>() : curre... |
public class class_name {
public void remove(Channel channel)
{
synchronized (this._associatedChannels)
{
int index = findChannel(channel);
if (index != -1)
{
if (logger.isDebugEnabled())
logger.debug(
... | public class class_name {
public void remove(Channel channel)
{
synchronized (this._associatedChannels)
{
int index = findChannel(channel);
if (index != -1)
{
if (logger.isDebugEnabled())
logger.debug(
... |
public class class_name {
public void marshall(DisableDomainAutoRenewRequest disableDomainAutoRenewRequest, ProtocolMarshaller protocolMarshaller) {
if (disableDomainAutoRenewRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DisableDomainAutoRenewRequest disableDomainAutoRenewRequest, ProtocolMarshaller protocolMarshaller) {
if (disableDomainAutoRenewRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
@Override
public List<Rectangle> getSegmentedRegions(BufferedImage bi, int pageIteratorLevel) throws TesseractException {
init();
setTessVariables();
try {
List<Rectangle> list = new ArrayList<Rectangle>();
setImage(bi, null);
... | public class class_name {
@Override
public List<Rectangle> getSegmentedRegions(BufferedImage bi, int pageIteratorLevel) throws TesseractException {
init();
setTessVariables();
try {
List<Rectangle> list = new ArrayList<Rectangle>();
setImage(bi, null);
... |
public class class_name {
@Override
public Filter getFilter() {
Filter filter = new Filter() {
@Override
protected FilterResults performFiltering(CharSequence constraint) {
ArrayList<Pair<String, ?>> filteredPrefs = new ArrayList<Pair<String, ?>>();
FilterResults filterFriends = new FilterResults();
... | public class class_name {
@Override
public Filter getFilter() {
Filter filter = new Filter() {
@Override
protected FilterResults performFiltering(CharSequence constraint) {
ArrayList<Pair<String, ?>> filteredPrefs = new ArrayList<Pair<String, ?>>();
FilterResults filterFriends = new FilterResults();
... |
public class class_name {
public boolean isDocumentedAnnotation(TypeElement annotation) {
for (AnnotationMirror anno : annotation.getAnnotationMirrors()) {
if (getFullyQualifiedName(anno.getAnnotationType().asElement()).equals(
Documented.class.getName())) {
retu... | public class class_name {
public boolean isDocumentedAnnotation(TypeElement annotation) {
for (AnnotationMirror anno : annotation.getAnnotationMirrors()) {
if (getFullyQualifiedName(anno.getAnnotationType().asElement()).equals(
Documented.class.getName())) {
retu... |
public class class_name {
public void setLogTypesToEnable(java.util.Collection<String> logTypesToEnable) {
if (logTypesToEnable == null) {
this.logTypesToEnable = null;
return;
}
this.logTypesToEnable = new java.util.ArrayList<String>(logTypesToEnable);
} } | public class class_name {
public void setLogTypesToEnable(java.util.Collection<String> logTypesToEnable) {
if (logTypesToEnable == null) {
this.logTypesToEnable = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
ClientStats generateLoadReport() {
ClientStats.Builder statsBuilder =
ClientStats.newBuilder()
.setTimestamp(Timestamps.fromNanos(time.currentTimeNanos()))
.setNumCallsStarted(callsStartedUpdater.getAndSet(this, 0))
.setNumCallsFinished(callsFinishedUpdater... | public class class_name {
ClientStats generateLoadReport() {
ClientStats.Builder statsBuilder =
ClientStats.newBuilder()
.setTimestamp(Timestamps.fromNanos(time.currentTimeNanos()))
.setNumCallsStarted(callsStartedUpdater.getAndSet(this, 0))
.setNumCallsFinished(callsFinishedUpdater... |
public class class_name {
void zApplyBorderPropertiesList() {
// Skip this function if the settings have not been applied.
if (settings == null) {
return;
}
// Clear the current borders. (Set them to be invisible and black.)
CalendarBorderProperties clearBordersPrope... | public class class_name {
void zApplyBorderPropertiesList() {
// Skip this function if the settings have not been applied.
if (settings == null) {
return; // depends on control dependency: [if], data = [none]
}
// Clear the current borders. (Set them to be invisible and blac... |
public class class_name {
public char[] loadPassword(String account) {
byte[] pwBytes = loadPassword0(account.getBytes(UTF_8));
if (pwBytes == null) {
return null;
} else {
CharBuffer pwBuf = UTF_8.decode(ByteBuffer.wrap(pwBytes));
char[] pw = new char[pwBuf.remaining()];
pwBuf.get(pw);
Arrays.fil... | public class class_name {
public char[] loadPassword(String account) {
byte[] pwBytes = loadPassword0(account.getBytes(UTF_8));
if (pwBytes == null) {
return null; // depends on control dependency: [if], data = [none]
} else {
CharBuffer pwBuf = UTF_8.decode(ByteBuffer.wrap(pwBytes));
char[] pw = new ch... |
public class class_name {
@Override
public DaoResult create(T bo) {
if (bo == null) {
return null;
}
try (Connection conn = getConnection()) {
return create(conn, bo);
} catch (SQLException e) {
throw new DaoException(e);
}
} } | public class class_name {
@Override
public DaoResult create(T bo) {
if (bo == null) {
return null; // depends on control dependency: [if], data = [none]
}
try (Connection conn = getConnection()) {
return create(conn, bo);
} catch (SQLException e) {
... |
public class class_name {
public void setExceptionType(String exceptionType) {
if (exceptionType != null) {
NullArgumentException.validateNotEmpty(exceptionType, "Error code");
}
this.exceptionType = exceptionType;
} } | public class class_name {
public void setExceptionType(String exceptionType) {
if (exceptionType != null) {
NullArgumentException.validateNotEmpty(exceptionType, "Error code"); // depends on control dependency: [if], data = [(exceptionType]
}
this.exceptionType = exceptionType;
} } |
public class class_name {
private synchronized boolean poll(long currentTimeMillis) {
long timeDiffMillis = currentTimeMillis - _lastPolled;
if (timeDiffMillis > POLL_THRESHOLD_MILLIS) {
final long lastModifiedBefore = _lastModified;
_lastModified = _file.lastModified();
_lastPolled = System.currentTimeMi... | public class class_name {
private synchronized boolean poll(long currentTimeMillis) {
long timeDiffMillis = currentTimeMillis - _lastPolled;
if (timeDiffMillis > POLL_THRESHOLD_MILLIS) {
final long lastModifiedBefore = _lastModified;
_lastModified = _file.lastModified(); // depends on control dependency: [if... |
public class class_name {
@Override
public String toHtmlString(final boolean rebuild, final Charset charset) {
final Charset previousCharset = this.charset;
try {
this.charset = charset;
return toHtmlString(rebuild);
} finally {
this.charset = previousCha... | public class class_name {
@Override
public String toHtmlString(final boolean rebuild, final Charset charset) {
final Charset previousCharset = this.charset;
try {
this.charset = charset; // depends on control dependency: [try], data = [none]
return toHtmlString(rebuild); // ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.