code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static CmsModuleImportExportHandler getExportHandler(
CmsObject cms,
final CmsModule module,
final String handlerDescription) {
// check if all resources are valid
List<String> resListCopy = new ArrayList<String>();
String moduleName = ... | public class class_name {
public static CmsModuleImportExportHandler getExportHandler(
CmsObject cms,
final CmsModule module,
final String handlerDescription) {
// check if all resources are valid
List<String> resListCopy = new ArrayList<String>();
String moduleName = ... |
public class class_name {
public static long parseBytes(String text) throws IllegalArgumentException {
checkNotNull(text, "text");
final String trimmed = text.trim();
checkArgument(!trimmed.isEmpty(), "argument is an empty- or whitespace-only string");
final int len = trimmed.length();
int pos = 0;
char... | public class class_name {
public static long parseBytes(String text) throws IllegalArgumentException {
checkNotNull(text, "text");
final String trimmed = text.trim();
checkArgument(!trimmed.isEmpty(), "argument is an empty- or whitespace-only string");
final int len = trimmed.length();
int pos = 0;
char... |
public class class_name {
public void loadArgArray() {
push(argumentTypes.length);
newArray(OBJECT_TYPE);
for (int i = 0; i < argumentTypes.length; i++) {
dup();
push(i);
loadArg(i);
box(argumentTypes[i]);
arrayStore(OBJECT_TYPE);
... | public class class_name {
public void loadArgArray() {
push(argumentTypes.length);
newArray(OBJECT_TYPE);
for (int i = 0; i < argumentTypes.length; i++) {
dup(); // depends on control dependency: [for], data = [none]
push(i); // depends on control dependency: [for], data... |
public class class_name {
public synchronized List<E> getAll() {
ArrayList<E> list = new ArrayList<E>();
for (E element : listElements) {
if (element != null) {
list.add(element);
}
}
return list;
} } | public class class_name {
public synchronized List<E> getAll() {
ArrayList<E> list = new ArrayList<E>();
for (E element : listElements) {
if (element != null) {
list.add(element); // depends on control dependency: [if], data = [(element]
}
}
return list;
} } |
public class class_name {
private void destroyService(ServiceHandle<S> serviceHandle) {
try {
_serviceFactory.destroy(serviceHandle.getEndPoint(), serviceHandle.getService());
} catch (Exception e) {
// this should not happen, but if it does, swallow the exception and log it
... | public class class_name {
private void destroyService(ServiceHandle<S> serviceHandle) {
try {
_serviceFactory.destroy(serviceHandle.getEndPoint(), serviceHandle.getService()); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
// this should not happe... |
public class class_name {
public List<NutResource> scan(String src, String regex) {
if (src.isEmpty())
throw new RuntimeException("emtry src is NOT allow");
if ("/".equals(src))
throw new RuntimeException("root path is NOT allow");
List<NutResource> list = new Array... | public class class_name {
public List<NutResource> scan(String src, String regex) {
if (src.isEmpty())
throw new RuntimeException("emtry src is NOT allow");
if ("/".equals(src))
throw new RuntimeException("root path is NOT allow");
List<NutResource> list = new Array... |
public class class_name {
@Override
public void storeNotification(NamespaceNotification notification) {
int notificationsCount = 0;
historyLock.writeLock().lock();
try {
if (LOG.isDebugEnabled()) {
LOG.debug("Storing into history: " + NotifierUtils.asString(notification));
}
... | public class class_name {
@Override
public void storeNotification(NamespaceNotification notification) {
int notificationsCount = 0;
historyLock.writeLock().lock();
try {
if (LOG.isDebugEnabled()) {
LOG.debug("Storing into history: " + NotifierUtils.asString(notification)); // depends on con... |
public class class_name {
public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled)
{
if (!bInitCalled)
{
BaseField fldSource = this.getSyncedListenersField(m_fldSource, listener);
((InitFieldHandler)listener).init(null, fldSource, m_obj... | public class class_name {
public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled)
{
if (!bInitCalled)
{
BaseField fldSource = this.getSyncedListenersField(m_fldSource, listener);
((InitFieldHandler)listener).init(null, fldSource, m_obj... |
public class class_name {
@Override
public void visit(NodeVisitor v) {
if (v.visit(this)) {
expression.visit(v);
for (SwitchCase sc: getCases()) {
sc.visit(v);
}
}
} } | public class class_name {
@Override
public void visit(NodeVisitor v) {
if (v.visit(this)) {
expression.visit(v); // depends on control dependency: [if], data = [none]
for (SwitchCase sc: getCases()) {
sc.visit(v); // depends on control dependency: [for], data = [sc]
... |
public class class_name {
OrderedHashSet getContainingConstraints(int colIndex) {
OrderedHashSet set = new OrderedHashSet();
for (int i = 0, size = constraintList.length; i < size; i++) {
Constraint c = constraintList[i];
if (c.hasColumnPlus(colIndex)) {
set.a... | public class class_name {
OrderedHashSet getContainingConstraints(int colIndex) {
OrderedHashSet set = new OrderedHashSet();
for (int i = 0, size = constraintList.length; i < size; i++) {
Constraint c = constraintList[i];
if (c.hasColumnPlus(colIndex)) {
set.a... |
public class class_name {
@Override
@SuppressWarnings("unchecked")
public Handle<K, V> findMin() {
if (size == 0) {
throw new NoSuchElementException();
} else if (size == 1) {
return free;
} else if (size % 2 == 0) {
return minHeap.findMin().getValue(... | public class class_name {
@Override
@SuppressWarnings("unchecked")
public Handle<K, V> findMin() {
if (size == 0) {
throw new NoSuchElementException();
} else if (size == 1) {
return free; // depends on control dependency: [if], data = [none]
} else if (size % 2 ... |
public class class_name {
protected String bodyInsertContent(ReplayParseContext context) {
if (jspInsertPath == null)
return null;
JSPExecutor jspExec = context.getJspExec();
// FIXME bad chain of references. add method to ReplayParseContext?
WaybackRequest wbRequest = jspExec.getUiResults().getWbRequest();... | public class class_name {
protected String bodyInsertContent(ReplayParseContext context) {
if (jspInsertPath == null)
return null;
JSPExecutor jspExec = context.getJspExec();
// FIXME bad chain of references. add method to ReplayParseContext?
WaybackRequest wbRequest = jspExec.getUiResults().getWbRequest();... |
public class class_name {
public synchronized byte[] getBytes(
int parameterIndex) throws SQLException {
Object x = getColumnInType(parameterIndex, Type.SQL_VARBINARY);
if (x == null) {
return null;
}
return ((BinaryData) x).getBytes();
} } | public class class_name {
public synchronized byte[] getBytes(
int parameterIndex) throws SQLException {
Object x = getColumnInType(parameterIndex, Type.SQL_VARBINARY);
if (x == null) {
return null; // depends on control dependency: [if], data = [none]
}
retur... |
public class class_name {
void resetTail(long index) {
for (SegmentedJournalReader reader : readers) {
if (reader.getNextIndex() >= index) {
reader.reset(index);
}
}
} } | public class class_name {
void resetTail(long index) {
for (SegmentedJournalReader reader : readers) {
if (reader.getNextIndex() >= index) {
reader.reset(index); // depends on control dependency: [if], data = [none]
}
}
} } |
public class class_name {
public boolean findInList(int[] address) {
int len = address.length;
if (len < IP_ADDR_NUMBERS) {
int j = IP_ADDR_NUMBERS - 1;
// for performace, hard code the size here
int a[] = { 0, 0, 0, 0, 0, 0, 0, 0 };
// int a[] = new in... | public class class_name {
public boolean findInList(int[] address) {
int len = address.length;
if (len < IP_ADDR_NUMBERS) {
int j = IP_ADDR_NUMBERS - 1;
// for performace, hard code the size here
int a[] = { 0, 0, 0, 0, 0, 0, 0, 0 };
// int a[] = new in... |
public class class_name {
@DELETE
@RequiresPermissions(I18nPermissions.LOCALE_DELETE)
public Response deleteAllAvailableLocales() {
List<Locale> locales = localeRepository.loadAll();
for (Locale locale : locales) {
localeRepository.remove(locale);
}
return Response.n... | public class class_name {
@DELETE
@RequiresPermissions(I18nPermissions.LOCALE_DELETE)
public Response deleteAllAvailableLocales() {
List<Locale> locales = localeRepository.loadAll();
for (Locale locale : locales) {
localeRepository.remove(locale); // depends on control dependency: [... |
public class class_name {
public void setLocal(Object key, Object value) {
if (data == null) {
data = new HashMap();
}
data.put(key, value);
} } | public class class_name {
public void setLocal(Object key, Object value) {
if (data == null) {
data = new HashMap();
// depends on control dependency: [if], data = [none]
}
data.put(key, value);
} } |
public class class_name {
public void clear() {
Iterator<E> it = iterator();
while (it.hasNext()) {
it.next();
it.remove();
}
} } | public class class_name {
public void clear() {
Iterator<E> it = iterator();
while (it.hasNext()) {
it.next(); // depends on control dependency: [while], data = [none]
it.remove(); // depends on control dependency: [while], data = [none]
}
} } |
public class class_name {
public static <K, V> V createIfAbsentUnchecked(final ConcurrentMap<K, V> map,
final K key, final ConcurrentInitializer<V> init) {
try {
return createIfAbsent(map, key, init);
} catch (final ConcurrentException cex) {
throw new ConcurrentRunt... | public class class_name {
public static <K, V> V createIfAbsentUnchecked(final ConcurrentMap<K, V> map,
final K key, final ConcurrentInitializer<V> init) {
try {
return createIfAbsent(map, key, init); // depends on control dependency: [try], data = [none]
} catch (final Concurre... |
public class class_name {
private long adjustItems(long size) {
while (size > maxSize && buffer.size() > 0) {
CBuffRecord old = buffer.removeFirst();
size -= old.bytes.length;
}
return size;
} } | public class class_name {
private long adjustItems(long size) {
while (size > maxSize && buffer.size() > 0) {
CBuffRecord old = buffer.removeFirst();
size -= old.bytes.length; // depends on control dependency: [while], data = [none]
}
return size;
} } |
public class class_name {
public static ParsedSql parseSqlStatement(final String sql) {
Assert.notNull(sql, "SQL must not be null");
Set<String> namedParameters = new HashSet<>();
String sqlToUse = sql;
List<ParameterHolder> parameterList = new ArrayList<>();
char[] statement ... | public class class_name {
public static ParsedSql parseSqlStatement(final String sql) {
Assert.notNull(sql, "SQL must not be null");
Set<String> namedParameters = new HashSet<>();
String sqlToUse = sql;
List<ParameterHolder> parameterList = new ArrayList<>();
char[] statement ... |
public class class_name {
private void boundaryLineExteriorPoint_(int cluster, int id_a, int id_b,
int cluster_index_a) {
if (m_matrix[MatrixPredicate.BoundaryExterior] == 0)
return;
int clusterParentage = m_topo_graph.getClusterParentage(cluster);
if ((clusterParentage & id_a) != 0 && (clusterParentage ... | public class class_name {
private void boundaryLineExteriorPoint_(int cluster, int id_a, int id_b,
int cluster_index_a) {
if (m_matrix[MatrixPredicate.BoundaryExterior] == 0)
return;
int clusterParentage = m_topo_graph.getClusterParentage(cluster);
if ((clusterParentage & id_a) != 0 && (clusterParentage ... |
public class class_name {
public void execute() throws MojoExecutionException {
synchronized (lock) {
injectDependencyDefaults();
resolveArtifacts();
// Install project dependencies into classloader's class path
// and execute xjc2.
final ClassLoader currentClassLoader = Thread.currentThread()... | public class class_name {
public void execute() throws MojoExecutionException {
synchronized (lock) {
injectDependencyDefaults();
resolveArtifacts();
// Install project dependencies into classloader's class path
// and execute xjc2.
final ClassLoader currentClassLoader = Thread.currentThread()... |
public class class_name {
public Set<InstallLicense> getFeatureLicense(Collection<String> featureIds, File fromDir, String toExtension, boolean offlineOnly, Locale locale) throws InstallException {
Set<InstallLicense> licenses = new HashSet<InstallLicense>();
ArrayList<InstallAsset> installAssets = new... | public class class_name {
public Set<InstallLicense> getFeatureLicense(Collection<String> featureIds, File fromDir, String toExtension, boolean offlineOnly, Locale locale) throws InstallException {
Set<InstallLicense> licenses = new HashSet<InstallLicense>();
ArrayList<InstallAsset> installAssets = new... |
public class class_name {
public static synchronized Apptentive.DateTime getTimeAtInstall(Selector selector) {
ensureLoaded();
for (VersionHistoryEntry entry : versionHistoryEntries) {
switch (selector) {
case total:
// Since the list is ordered, this will be the first and oldest entry.
return new... | public class class_name {
public static synchronized Apptentive.DateTime getTimeAtInstall(Selector selector) {
ensureLoaded();
for (VersionHistoryEntry entry : versionHistoryEntries) {
switch (selector) {
case total:
// Since the list is ordered, this will be the first and oldest entry.
return new... |
public class class_name {
protected String getRequiredMessage(final String[] messageKeys) {
MessageSourceResolvable resolvable = new MessageSourceResolvable() {
public String[] getCodes() {
return messageKeys;
}
public Object[] getArguments() {
return null;
}
public String getDefaultMessage... | public class class_name {
protected String getRequiredMessage(final String[] messageKeys) {
MessageSourceResolvable resolvable = new MessageSourceResolvable() {
public String[] getCodes() {
return messageKeys;
}
public Object[] getArguments() {
return null;
}
public String getDefaultMessage... |
public class class_name {
public static <T extends ImageGray<T>, Desc extends TupleDesc>
StereoVisualOdometry<T> stereoDualTrackerPnP(int thresholdAdd, int thresholdRetire,
double inlierPixelTol,
double epipolarPixelTol,
int ransacIterations,
int refineIterations,
... | public class class_name {
public static <T extends ImageGray<T>, Desc extends TupleDesc>
StereoVisualOdometry<T> stereoDualTrackerPnP(int thresholdAdd, int thresholdRetire,
double inlierPixelTol,
double epipolarPixelTol,
int ransacIterations,
int refineIterations,
... |
public class class_name {
public static MultipleVersionRange parseMultipleVersionRange(String intersection) throws VersionException
{
Assert.notNull(intersection, "Version range must not be null.");
List<VersionRange> ranges = new ArrayList<VersionRange>();
String process = intersection;
Ve... | public class class_name {
public static MultipleVersionRange parseMultipleVersionRange(String intersection) throws VersionException
{
Assert.notNull(intersection, "Version range must not be null.");
List<VersionRange> ranges = new ArrayList<VersionRange>();
String process = intersection;
Ve... |
public class class_name {
private String checkPort(String uriAuthority)
throws URIException {
// Matcher m = PORTREGEX.matcher(uriAuthority);
Matcher m = TextUtils.getMatcher(PORTREGEX.pattern(), uriAuthority);
if (m.matches()) {
String no = m.group(2);
if (no != null... | public class class_name {
private String checkPort(String uriAuthority)
throws URIException {
// Matcher m = PORTREGEX.matcher(uriAuthority);
Matcher m = TextUtils.getMatcher(PORTREGEX.pattern(), uriAuthority);
if (m.matches()) {
String no = m.group(2);
if (no != null... |
public class class_name {
private static boolean exemptedByAnnotation(
List<? extends AnnotationTree> annotations,
VisitorState state) {
for (AnnotationTree annotation : annotations) {
if (((JCAnnotation) annotation).type != null) {
TypeSymbol tsym = ((JCAnnotation) annotation).type.tsym;... | public class class_name {
private static boolean exemptedByAnnotation(
List<? extends AnnotationTree> annotations,
VisitorState state) {
for (AnnotationTree annotation : annotations) {
if (((JCAnnotation) annotation).type != null) {
TypeSymbol tsym = ((JCAnnotation) annotation).type.tsym;... |
public class class_name {
public List<String> getUserGroups(final int userID)
throws WikiApiException
{
List<String> groups = new LinkedList<String>();
try {
if (userID < 1) {
throw new IllegalArgumentException();
}
if (!tableExists("us... | public class class_name {
public List<String> getUserGroups(final int userID)
throws WikiApiException
{
List<String> groups = new LinkedList<String>();
try {
if (userID < 1) {
throw new IllegalArgumentException();
}
if (!tableExists("us... |
public class class_name {
public JSType build() {
if (result == null) {
result = reduceAlternatesWithoutUnion();
if (result == null) {
result = new UnionType(registry, ImmutableList.copyOf(getAlternates()));
}
}
return result;
} } | public class class_name {
public JSType build() {
if (result == null) {
result = reduceAlternatesWithoutUnion(); // depends on control dependency: [if], data = [none]
if (result == null) {
result = new UnionType(registry, ImmutableList.copyOf(getAlternates())); // depends on control dependency:... |
public class class_name {
public static JMFType parse(String filename) {
try {
return parse(new FileReader(filename));
} catch(IOException e) {
// No FFDC needed
IllegalArgumentException ee = new IllegalArgumentException(e.getMessage());
ee.initCause(e);
throw ee;
... | public class class_name {
public static JMFType parse(String filename) {
try {
return parse(new FileReader(filename)); // depends on control dependency: [try], data = [none]
} catch(IOException e) {
// No FFDC needed
IllegalArgumentException ee = new IllegalArgumentException(e.getMessage(... |
public class class_name {
@SuppressWarnings("unchecked")
@Nonnull
public static <T> Optional<T> optionalInMessage(PMessage message, PField... fields) {
if (fields == null || fields.length == 0) {
throw new IllegalArgumentException("No fields arguments.");
}
PField field = fi... | public class class_name {
@SuppressWarnings("unchecked")
@Nonnull
public static <T> Optional<T> optionalInMessage(PMessage message, PField... fields) {
if (fields == null || fields.length == 0) {
throw new IllegalArgumentException("No fields arguments.");
}
PField field = fi... |
public class class_name {
static void rcvReadSet(CommsByteBuffer request, Conversation conversation, int requestNumber,
boolean allocatedFromBufferPool, boolean partOfExchange)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "rcvRead... | public class class_name {
static void rcvReadSet(CommsByteBuffer request, Conversation conversation, int requestNumber,
boolean allocatedFromBufferPool, boolean partOfExchange)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "rcvRead... |
public class class_name {
private static void locateForMemcacheBucket(final BinaryRequest request, final List<Node> nodes,
final MemcachedBucketConfig config, CoreEnvironment env, RingBuffer<ResponseEvent> responseBuffer) {
if (!keyIsValid(request)) {
return;
}
NetworkAddr... | public class class_name {
private static void locateForMemcacheBucket(final BinaryRequest request, final List<Node> nodes,
final MemcachedBucketConfig config, CoreEnvironment env, RingBuffer<ResponseEvent> responseBuffer) {
if (!keyIsValid(request)) {
return; // depends on control dependen... |
public class class_name {
private String getServerId() {
UUID fullServerId = null;
WsLocationAdmin locationService = this.wsLocationAdmin;
if (locationService != null) {
fullServerId = locationService.getServerId();
}
if (fullServerId == null) {
fullServe... | public class class_name {
private String getServerId() {
UUID fullServerId = null;
WsLocationAdmin locationService = this.wsLocationAdmin;
if (locationService != null) {
fullServerId = locationService.getServerId(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public void go() {
logger.info("Waiting {} seconds for {}...", timeout, element);
WebDriverWait waiting = new WebDriverWait(getWebDriver(), timeout);
try {
waiting.until(ExpectedConditions.presenceOfElementLocated(element));
} catch (NullPointerException e) {
fail(Str... | public class class_name {
@Override
public void go() {
logger.info("Waiting {} seconds for {}...", timeout, element);
WebDriverWait waiting = new WebDriverWait(getWebDriver(), timeout);
try {
waiting.until(ExpectedConditions.presenceOfElementLocated(element)); // depends on control dependency: [try], data = ... |
public class class_name {
public String getSingleValue(final String propertyName) {
Preconditions.checkNotNull(propertyName);
List<String> values = getValues(propertyName);
if (values == null || values.size() < 1) {
return null;
}
return values.get(0);
} } | public class class_name {
public String getSingleValue(final String propertyName) {
Preconditions.checkNotNull(propertyName);
List<String> values = getValues(propertyName);
if (values == null || values.size() < 1) {
return null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void disposeTasks(Collection<Runnable>... tasks) {
for (Collection<Runnable> task : tasks) {
for (Runnable runnable : task) {
if (runnable instanceof Disposable) {
((Disposable) runnable).dispose();
}
... | public class class_name {
private void disposeTasks(Collection<Runnable>... tasks) {
for (Collection<Runnable> task : tasks) {
for (Runnable runnable : task) {
if (runnable instanceof Disposable) {
((Disposable) runnable).dispose(); // depends on control dependen... |
public class class_name {
public List<MetadataDatabase> getMetadadaDatabasesSharedFolders(ResponseListNetworkSharedFolder responseNetworkSharedFolders){
//Init the list
List<MetadataDatabase> databases = new ArrayList<MetadataDatabase>();
if (null != responseNetworkSharedFolders){
for(ObjectNetworkShare... | public class class_name {
public List<MetadataDatabase> getMetadadaDatabasesSharedFolders(ResponseListNetworkSharedFolder responseNetworkSharedFolders){
//Init the list
List<MetadataDatabase> databases = new ArrayList<MetadataDatabase>();
if (null != responseNetworkSharedFolders){
for(ObjectNetworkShare... |
public class class_name {
public static Element getAncestor(Element element, String className) {
if (hasClass(className, element)) {
return element;
}
if (element.getTagName().equalsIgnoreCase(Tag.body.name())) {
return null;
}
return getAncestor(element... | public class class_name {
public static Element getAncestor(Element element, String className) {
if (hasClass(className, element)) {
return element; // depends on control dependency: [if], data = [none]
}
if (element.getTagName().equalsIgnoreCase(Tag.body.name())) {
ret... |
public class class_name {
public static double ioa(double[] obs, double[] sim, double pow) {
sameArrayLen(obs, sim);
int steps = sim.length;
double sum_obs = 0;
/**summing up both data sets */
for (int i = 0; i < steps; i++) {
sum_obs += obs[i];
}
... | public class class_name {
public static double ioa(double[] obs, double[] sim, double pow) {
sameArrayLen(obs, sim);
int steps = sim.length;
double sum_obs = 0;
/**summing up both data sets */
for (int i = 0; i < steps; i++) {
sum_obs += obs[i]; // depends on contr... |
public class class_name {
public Node getNode(final int i) {
if (i < 0 || i >= nodeList.size()) {
return null;
}
return nodeList.get(i);
} } | public class class_name {
public Node getNode(final int i) {
if (i < 0 || i >= nodeList.size()) {
return null; // depends on control dependency: [if], data = [none]
}
return nodeList.get(i);
} } |
public class class_name {
public Stream<HString> findAllPatterns(@NonNull Pattern regex) {
return Streams.asStream(new Iterator<HString>() {
Matcher m = regex.matcher(HString.this);
int start = -1;
int end = -1;
private boolean advance() {
if (start == -1) {
... | public class class_name {
public Stream<HString> findAllPatterns(@NonNull Pattern regex) {
return Streams.asStream(new Iterator<HString>() {
Matcher m = regex.matcher(HString.this);
int start = -1;
int end = -1;
private boolean advance() {
if (start == -1) {
... |
public class class_name {
public static int recursiveDelete(File file) {
int answer = 0;
if (file.isDirectory()) {
File[] files = file.listFiles();
if (files != null) {
for (File child : files) {
answer += recursiveDelete(child);
... | public class class_name {
public static int recursiveDelete(File file) {
int answer = 0;
if (file.isDirectory()) {
File[] files = file.listFiles();
if (files != null) {
for (File child : files) {
answer += recursiveDelete(child); // depends on... |
public class class_name {
public static base_responses update(nitro_service client, snmpalarm resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpalarm updateresources[] = new snmpalarm[resources.length];
for (int i=0;i<resources.length;i++){
... | public class class_name {
public static base_responses update(nitro_service client, snmpalarm resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpalarm updateresources[] = new snmpalarm[resources.length];
for (int i=0;i<resources.length;i++){
... |
public class class_name {
WrappedByteBuffer expandAt(int i, int expectedRemaining) {
if ((i + expectedRemaining) <= _buf.limit()) {
return this;
} else {
if ((i + expectedRemaining) <= _buf.capacity()) {
_buf.limit(i + expectedRemaining);
} else {
... | public class class_name {
WrappedByteBuffer expandAt(int i, int expectedRemaining) {
if ((i + expectedRemaining) <= _buf.limit()) {
return this; // depends on control dependency: [if], data = [none]
} else {
if ((i + expectedRemaining) <= _buf.capacity()) {
_buf.... |
public class class_name {
public void severe(String format, Object... args)
{
if (isLoggable(SEVERE))
{
logIt(SEVERE, String.format(format, args));
}
} } | public class class_name {
public void severe(String format, Object... args)
{
if (isLoggable(SEVERE))
{
logIt(SEVERE, String.format(format, args));
// depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void processDocument(BufferedReader document, Wordsi wordsi) {
try {
// Handle the context header, if one exists. Context headers are
// assumed to be the first line in a document and to contain an
// integer specifying which line the focus ... | public class class_name {
public void processDocument(BufferedReader document, Wordsi wordsi) {
try {
// Handle the context header, if one exists. Context headers are
// assumed to be the first line in a document and to contain an
// integer specifying which line the focus ... |
public class class_name {
public boolean deleteExisting(final File file) {
if (!file.exists()) {
return true;
}
boolean deleted = false;
if (file.canWrite()) {
deleted = file.delete();
} else {
LogLog.debug(file + " is not writeable for delete (retrying)");
}
if (!deleted)... | public class class_name {
public boolean deleteExisting(final File file) {
if (!file.exists()) {
return true; // depends on control dependency: [if], data = [none]
}
boolean deleted = false;
if (file.canWrite()) {
deleted = file.delete(); // depends on control dependency: [if], data = [none... |
public class class_name {
public void close() throws IOException
{
if (!this.closed)
{
this.closed = true;
this.is.close();
this.dataIn.close();
this.is = null;
this.dataIn = null;
int typeCount = 0;
if (this.resourceTypeTable != null)
{ // fix for bug 32320
for (int i = 0; i < this.re... | public class class_name {
public void close() throws IOException
{
if (!this.closed)
{
this.closed = true;
this.is.close();
this.dataIn.close();
this.is = null;
this.dataIn = null;
int typeCount = 0;
if (this.resourceTypeTable != null)
{ // fix for bug 32320
for (int i = 0; i < this.re... |
public class class_name {
public void marshall(DeleteDataSourceRequest deleteDataSourceRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteDataSourceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(DeleteDataSourceRequest deleteDataSourceRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteDataSourceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
@Override
public double[] projectDataToScaledSpace(NumberVector data) {
final int dim = data.getDimensionality();
double[] vec = new double[dim];
for(int d = 0; d < dim; d++) {
vec[d] = scales[d].getScaled(data.doubleValue(d));
}
return vec;
} } | public class class_name {
@Override
public double[] projectDataToScaledSpace(NumberVector data) {
final int dim = data.getDimensionality();
double[] vec = new double[dim];
for(int d = 0; d < dim; d++) {
vec[d] = scales[d].getScaled(data.doubleValue(d)); // depends on control dependency: [for], data... |
public class class_name {
public void setSigmaSquared(double sigmaSq) {
if (type == LogPriorType.ADAPT) { otherPrior.setSigmaSquared(sigmaSq); }
else {
// this.sigma = Math.sqrt(sigmaSq);
this.sigmaSq = sigmaSq;
this.sigmaQu = sigmaSq * sigmaSq;
}
} } | public class class_name {
public void setSigmaSquared(double sigmaSq) {
if (type == LogPriorType.ADAPT) { otherPrior.setSigmaSquared(sigmaSq); }
// depends on control dependency: [if], data = [none]
else {
// this.sigma = Math.sqrt(sigmaSq);
this.sigmaSq = sigmaSq;
// depends on control dependenc... |
public class class_name {
public void read(InputStream is) throws IOException {
// Buffered input stream for reading manifest data
FastInputStream fis = new FastInputStream(is);
// Line buffer
byte[] lbuf = new byte[512];
// Read the main attributes for the manifest
attr... | public class class_name {
public void read(InputStream is) throws IOException {
// Buffered input stream for reading manifest data
FastInputStream fis = new FastInputStream(is);
// Line buffer
byte[] lbuf = new byte[512];
// Read the main attributes for the manifest
attr... |
public class class_name {
@Override
public boolean modelBuilderClassGenerated(TopLevelClass topLevelClass, InnerClass builderClass, List<IntrospectedColumn> columns, IntrospectedTable introspectedTable) {
if (this.support()) {
if (this.incEnum == null) {
this.incEnum = this.gene... | public class class_name {
@Override
public boolean modelBuilderClassGenerated(TopLevelClass topLevelClass, InnerClass builderClass, List<IntrospectedColumn> columns, IntrospectedTable introspectedTable) {
if (this.support()) {
if (this.incEnum == null) {
this.incEnum = this.gene... |
public class class_name {
public boolean smoothPath (PathSmootherRequest<N, V> request, long timeToRun) {
long lastTime = TimeUtils.nanoTime();
SmoothableGraphPath<N, V> path = request.path;
int inputPathLength = path.getCount();
// If the path is two nodes long or less, then we can't smooth it
if (inputP... | public class class_name {
public boolean smoothPath (PathSmootherRequest<N, V> request, long timeToRun) {
long lastTime = TimeUtils.nanoTime();
SmoothableGraphPath<N, V> path = request.path;
int inputPathLength = path.getCount();
// If the path is two nodes long or less, then we can't smooth it
if (inputP... |
public class class_name {
@Deprecated
public static String encodeHex(byte[] data, char delimiter) {
// the result
StringBuilder result = new StringBuilder();
short val = 0;
// encode each byte into a hex dump
for (int i = 0; i < data.length; i++) {
val = decode... | public class class_name {
@Deprecated
public static String encodeHex(byte[] data, char delimiter) {
// the result
StringBuilder result = new StringBuilder();
short val = 0;
// encode each byte into a hex dump
for (int i = 0; i < data.length; i++) {
val = decode... |
public class class_name {
private WroManagerFactory createWroManagerFactory() {
if (wroManagerFactory == null) {
final WroManagerFactory managerFactoryAttribute = ServletContextAttributeHelper.create(filterConfig)
.getManagerFactory();
LOG.debug("managerFactory attribute: {}", managerFactoryA... | public class class_name {
private WroManagerFactory createWroManagerFactory() {
if (wroManagerFactory == null) {
final WroManagerFactory managerFactoryAttribute = ServletContextAttributeHelper.create(filterConfig)
.getManagerFactory();
LOG.debug("managerFactory attribute: {}", managerFactoryA... |
public class class_name {
public void setZoomManager(ZoomManager manager) {
if ( zoomManager != null ) {
zoomManager.removeZoomListener( this );
}
zoomManager = manager;
if ( zoomManager != null ) {
zoomManager.addZoomListener( this );
}
} } | public class class_name {
public void setZoomManager(ZoomManager manager) {
if ( zoomManager != null ) {
zoomManager.removeZoomListener( this ); // depends on control dependency: [if], data = [none]
}
zoomManager = manager;
if ( zoomManager != null ) {
zoomMan... |
public class class_name {
public void setChainEventListeners(Set<ChainEventListener> newListeners) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "removeAllChainEventListeners", newListeners);
}
chainEventListeners.clear();
chainEvent... | public class class_name {
public void setChainEventListeners(Set<ChainEventListener> newListeners) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "removeAllChainEventListeners", newListeners); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public VariantAvroFilters addFilter(boolean mustPassAll, boolean acceptNull, String... filters) {
List<Predicate<Variant>> filtersList = new ArrayList<>(filters.length);
for (String filter : filters) {
String[] keyOpValue = splitOperator(filter);
Stri... | public class class_name {
public VariantAvroFilters addFilter(boolean mustPassAll, boolean acceptNull, String... filters) {
List<Predicate<Variant>> filtersList = new ArrayList<>(filters.length);
for (String filter : filters) {
String[] keyOpValue = splitOperator(filter);
Stri... |
public class class_name {
public ContactResources contactResources() {
if (contacts.get() == null) {
contacts.compareAndSet(null, new ContactResourcesImpl(this));
}
return contacts.get();
} } | public class class_name {
public ContactResources contactResources() {
if (contacts.get() == null) {
contacts.compareAndSet(null, new ContactResourcesImpl(this)); // depends on control dependency: [if], data = [none]
}
return contacts.get();
} } |
public class class_name {
@Override
public boolean containsKey(Object key)
{
if (key == null) {
return false;
}
K []keys = _keys;
for (int i = _size - 1 ; i >= 0; i--) {
K testKey = keys[i];
if (key.equals(testKey)) {
return true;
}
}
return false;
} } | public class class_name {
@Override
public boolean containsKey(Object key)
{
if (key == null) {
return false; // depends on control dependency: [if], data = [none]
}
K []keys = _keys;
for (int i = _size - 1 ; i >= 0; i--) {
K testKey = keys[i];
if (key.equals(testKey)) {
... |
public class class_name {
public boolean isSimple() {
if (isEmpty()) {
return true;
}
if (getNumGeometries() > 1) {
for (int n = 0; n < getNumGeometries(); n++) {
if (!getGeometryN(n).isSimple()) {
return false;
}
}
} else {
final Coordinate[] coords1 = getCoordinates();
final Coor... | public class class_name {
public boolean isSimple() {
if (isEmpty()) {
return true; // depends on control dependency: [if], data = [none]
}
if (getNumGeometries() > 1) {
for (int n = 0; n < getNumGeometries(); n++) {
if (!getGeometryN(n).isSimple()) {
return false; // depends on control dependenc... |
public class class_name {
protected void setGalleriesVisible(boolean visible) {
if (visible) {
m_noGalleriesLabel.getElement().getStyle().clearDisplay();
m_galleryTree.getElement().getStyle().clearDisplay();
} else {
m_galleryTree.getElement().getStyle().setDisplay(... | public class class_name {
protected void setGalleriesVisible(boolean visible) {
if (visible) {
m_noGalleriesLabel.getElement().getStyle().clearDisplay(); // depends on control dependency: [if], data = [none]
m_galleryTree.getElement().getStyle().clearDisplay(); // depends on control de... |
public class class_name {
public final void setStepSize(final int stepSize) {
if (stepSize != -1) {
Condition.INSTANCE.ensureAtLeast(stepSize, 1, "The step size must be at least 1");
Condition.INSTANCE.ensureAtMaximum(stepSize, getRange(),
"The step size must be at m... | public class class_name {
public final void setStepSize(final int stepSize) {
if (stepSize != -1) {
Condition.INSTANCE.ensureAtLeast(stepSize, 1, "The step size must be at least 1"); // depends on control dependency: [if], data = [(stepSize]
Condition.INSTANCE.ensureAtMaximum(stepSize, ... |
public class class_name {
public SqlInfo buildLikeSql(String fieldText, String valueText, String patternText) {
if (StringHelper.isNotBlank(valueText) && StringHelper.isBlank(patternText)) {
return super.buildLikeSql(fieldText, ParseHelper.parseExpressWithException(valueText, context));
} e... | public class class_name {
public SqlInfo buildLikeSql(String fieldText, String valueText, String patternText) {
if (StringHelper.isNotBlank(valueText) && StringHelper.isBlank(patternText)) {
return super.buildLikeSql(fieldText, ParseHelper.parseExpressWithException(valueText, context)); // depends ... |
public class class_name {
private void pingNotifiableEventListenerInternal(Object object, String topic, Registration registration, boolean register) {
if (!(object instanceof NotifiableEventListener)) {
return;
}
NotifiableEventListener listener = ((NotifiableEventListener) object)... | public class class_name {
private void pingNotifiableEventListenerInternal(Object object, String topic, Registration registration, boolean register) {
if (!(object instanceof NotifiableEventListener)) {
return; // depends on control dependency: [if], data = [none]
}
NotifiableEvent... |
public class class_name {
@NotNull
public DoubleStream doubles(long streamSize) {
if (streamSize < 0L) throw new IllegalArgumentException();
if (streamSize == 0L) {
return DoubleStream.empty();
}
return doubles().limit(streamSize);
} } | public class class_name {
@NotNull
public DoubleStream doubles(long streamSize) {
if (streamSize < 0L) throw new IllegalArgumentException();
if (streamSize == 0L) {
return DoubleStream.empty(); // depends on control dependency: [if], data = [none]
}
return doubles().limi... |
public class class_name {
public EClass getIfcDocumentSelect() {
if (ifcDocumentSelectEClass == null) {
ifcDocumentSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(952);
}
return ifcDocumentSelectEClass;
} } | public class class_name {
public EClass getIfcDocumentSelect() {
if (ifcDocumentSelectEClass == null) {
ifcDocumentSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(952);
// depends on control dependency: [if], data = [none]
}
return ifcD... |
public class class_name {
public static void profileRulesOnText(String contents,
JLanguageTool lt) throws IOException {
long[] workTime = new long[10];
List<Rule> rules = lt.getAllActiveRules();
int ruleCount = rules.size();
System.out.printf("Testing %d rules%n"... | public class class_name {
public static void profileRulesOnText(String contents,
JLanguageTool lt) throws IOException {
long[] workTime = new long[10];
List<Rule> rules = lt.getAllActiveRules();
int ruleCount = rules.size();
System.out.printf("Testing %d rules%n"... |
public class class_name {
private void handleJobMasterError(final Throwable cause) {
if (ExceptionUtils.isJvmFatalError(cause)) {
log.error("Fatal error occurred on JobManager.", cause);
// The fatal error handler implementation should make sure that this call is non-blocking
fatalErrorHandler.onFatalError(... | public class class_name {
private void handleJobMasterError(final Throwable cause) {
if (ExceptionUtils.isJvmFatalError(cause)) {
log.error("Fatal error occurred on JobManager.", cause); // depends on control dependency: [if], data = [none]
// The fatal error handler implementation should make sure that this c... |
public class class_name {
public Iterator<Operator<Tree<E>>> validOperators(boolean reverse)
{
/*log.fine("public Iterator<Operator> validOperators(): called");*/
// Check if the tree is a leaf and return an empty iterator if so.
if (tree.isLeaf())
{
/*log.fine("is leaf... | public class class_name {
public Iterator<Operator<Tree<E>>> validOperators(boolean reverse)
{
/*log.fine("public Iterator<Operator> validOperators(): called");*/
// Check if the tree is a leaf and return an empty iterator if so.
if (tree.isLeaf())
{
/*log.fine("is leaf... |
public class class_name {
@Override
public List<ContainerDef> getContainers() {
List<ContainerDef> containers = new ArrayList<ContainerDef>();
for (Node container : model.get("container")) {
containers.add(new ContainerDefImpl(getDescriptorName(), model, container));
}
r... | public class class_name {
@Override
public List<ContainerDef> getContainers() {
List<ContainerDef> containers = new ArrayList<ContainerDef>();
for (Node container : model.get("container")) {
containers.add(new ContainerDefImpl(getDescriptorName(), model, container)); // depends on contr... |
public class class_name {
int insert(Row row,
byte []sourceBuffer,
int sourceOffset,
BlobOutputStream []blobs)
{
int rowHead = _rowHead;
int blobTail = _blobTail;
int rowLength = row.length();
rowHead -= rowLength;
// return false if the bloc... | public class class_name {
int insert(Row row,
byte []sourceBuffer,
int sourceOffset,
BlobOutputStream []blobs)
{
int rowHead = _rowHead;
int blobTail = _blobTail;
int rowLength = row.length();
rowHead -= rowLength;
// return false if the bloc... |
public class class_name {
private double calcSD(double[] arr, double mean) {
double sd = 0;
for (double resid : arr) {
sd += Math.pow(resid - mean, 2);
}
sd = Math.sqrt(sd/arr.length);
return sd;
} } | public class class_name {
private double calcSD(double[] arr, double mean) {
double sd = 0;
for (double resid : arr) {
sd += Math.pow(resid - mean, 2); // depends on control dependency: [for], data = [resid]
}
sd = Math.sqrt(sd/arr.length);
return sd;
} } |
public class class_name {
public static List<String> getSelectOptionValues(CmsObject cms, String rootPath, boolean allRemoved) {
try {
cms = OpenCms.initCmsObject(cms);
cms.getRequestContext().setSiteRoot("");
CmsADEConfigData adeConfig = OpenCms.getADEManager().lookupConfi... | public class class_name {
public static List<String> getSelectOptionValues(CmsObject cms, String rootPath, boolean allRemoved) {
try {
cms = OpenCms.initCmsObject(cms); // depends on control dependency: [try], data = [none]
cms.getRequestContext().setSiteRoot(""); // depends on control... |
public class class_name {
public static <T extends ViewTraverse<T>> String expandVariable(
final MultiDataContext<T, DataContext> data,
final T currentContext,
final BiFunction<Integer, String, T> viewMap,
final String step,
final String group,
fi... | public class class_name {
public static <T extends ViewTraverse<T>> String expandVariable(
final MultiDataContext<T, DataContext> data,
final T currentContext,
final BiFunction<Integer, String, T> viewMap,
final String step,
final String group,
fi... |
public class class_name {
public static Result toResult(ResultSet rs, int maxRows) {
try {
return new ResultImpl(rs, -1, maxRows);
} catch (SQLException ex) {
return null;
}
} } | public class class_name {
public static Result toResult(ResultSet rs, int maxRows) {
try {
return new ResultImpl(rs, -1, maxRows); // depends on control dependency: [try], data = [none]
} catch (SQLException ex) {
return null;
} // depends on control dependency: [catch],... |
public class class_name {
private void validateElementProperty(String propertyName, String controlValue, String resultValue, TestContext context) {
if (StringUtils.hasText(controlValue)) {
String control = context.replaceDynamicContentInString(controlValue);
if (ValidationMatcherUtils.... | public class class_name {
private void validateElementProperty(String propertyName, String controlValue, String resultValue, TestContext context) {
if (StringUtils.hasText(controlValue)) {
String control = context.replaceDynamicContentInString(controlValue);
if (ValidationMatcherUtils.... |
public class class_name {
public void marshall(Filters filters, ProtocolMarshaller protocolMarshaller) {
if (filters == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(filters.getQueues(), QUEUES_BIN... | public class class_name {
public void marshall(Filters filters, ProtocolMarshaller protocolMarshaller) {
if (filters == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(filters.getQueues(), QUEUES_BIN... |
public class class_name {
protected Object prepareNativeValue(VirtualForm virtualForm, Object bean, String name, Object exp, PropertyDesc pd,
StringBuilder pathSb, FormMappingOption option) {
final Class<?> propertyType = pd.getPropertyType();
try {
final Object filtered = filte... | public class class_name {
protected Object prepareNativeValue(VirtualForm virtualForm, Object bean, String name, Object exp, PropertyDesc pd,
StringBuilder pathSb, FormMappingOption option) {
final Class<?> propertyType = pd.getPropertyType();
try {
final Object filtered = filte... |
public class class_name {
@FFDCIgnore(value = { NoSuchMethodException.class, NumberFormatException.class, Exception.class })
// Liberty Change for CXF End
@SuppressWarnings("unchecked")
public static <T> T handleParameter(String value,
boolean decoded,
... | public class class_name {
@FFDCIgnore(value = { NoSuchMethodException.class, NumberFormatException.class, Exception.class })
// Liberty Change for CXF End
@SuppressWarnings("unchecked")
public static <T> T handleParameter(String value,
boolean decoded,
... |
public class class_name {
public PageFlowController getPageFlowForPath( RequestContext context, String path )
throws InstantiationException, IllegalAccessException
{
HttpServletRequest request = context.getHttpRequest();
HttpServletResponse response = context.getHttpResponse();
Page... | public class class_name {
public PageFlowController getPageFlowForPath( RequestContext context, String path )
throws InstantiationException, IllegalAccessException
{
HttpServletRequest request = context.getHttpRequest();
HttpServletResponse response = context.getHttpResponse();
Page... |
public class class_name {
public DeployableUnitID install(String url) throws NullPointerException,
MalformedURLException, AlreadyDeployedException,
DeploymentException, ManagementException {
try {
final SleeContainer sleeContainer = getSleeContainer();
final DeployableUnitBuilder deployableUnitBuilder... | public class class_name {
public DeployableUnitID install(String url) throws NullPointerException,
MalformedURLException, AlreadyDeployedException,
DeploymentException, ManagementException {
try {
final SleeContainer sleeContainer = getSleeContainer();
final DeployableUnitBuilder deployableUnitBuilder... |
public class class_name {
protected double[][] generateConditional(double P[], boolean M[][]) {
int L = P.length;
double Q[][] = new double[L][L];
// set priors
for (int j = 0; j < L; j++) {
Q[j][j] = P[j];
}
// create conditionals
for (int j = 0;... | public class class_name {
protected double[][] generateConditional(double P[], boolean M[][]) {
int L = P.length;
double Q[][] = new double[L][L];
// set priors
for (int j = 0; j < L; j++) {
Q[j][j] = P[j]; // depends on control dependency: [for], data = [j]
}
... |
public class class_name {
static MeasuredNode pickBest(MeasuredNode a, MeasuredNode b) {
if (a.length == b.length) {
return (b.isChanged()) ? a : b;
}
return (a.length < b.length) ? a : b;
} } | public class class_name {
static MeasuredNode pickBest(MeasuredNode a, MeasuredNode b) {
if (a.length == b.length) {
return (b.isChanged()) ? a : b; // depends on control dependency: [if], data = [none]
}
return (a.length < b.length) ? a : b;
} } |
public class class_name {
public boolean contains(String encoding) {
if (encoding.equalsIgnoreCase("sendrecv") ||
encoding.equalsIgnoreCase("fmtp") ||
encoding.equalsIgnoreCase("audio") ||
encoding.equalsIgnoreCase("AS") ||
encoding.equalsIgnore... | public class class_name {
public boolean contains(String encoding) {
if (encoding.equalsIgnoreCase("sendrecv") ||
encoding.equalsIgnoreCase("fmtp") ||
encoding.equalsIgnoreCase("audio") ||
encoding.equalsIgnoreCase("AS") ||
encoding.equalsIgnore... |
public class class_name {
@Sensitive
private String getStoredReq(HttpServletRequest req, ReferrerURLCookieHandler referrerURLHandler) {
String storedReq = referrerURLHandler.getReferrerURLFromCookies(req, ReferrerURLCookieHandler.REFERRER_URL_COOKIENAME);
if (storedReq != null) {
if (st... | public class class_name {
@Sensitive
private String getStoredReq(HttpServletRequest req, ReferrerURLCookieHandler referrerURLHandler) {
String storedReq = referrerURLHandler.getReferrerURLFromCookies(req, ReferrerURLCookieHandler.REFERRER_URL_COOKIENAME);
if (storedReq != null) {
if (st... |
public class class_name {
private Node renameProperty(Node propertyName) {
checkArgument(propertyName.isString());
if (!renameProperties) {
return propertyName;
}
Node call = IR.call(
IR.name(NodeUtil.JSC_PROPERTY_NAME_FN).srcref(propertyName),
propertyName);
call.srcref(prope... | public class class_name {
private Node renameProperty(Node propertyName) {
checkArgument(propertyName.isString());
if (!renameProperties) {
return propertyName; // depends on control dependency: [if], data = [none]
}
Node call = IR.call(
IR.name(NodeUtil.JSC_PROPERTY_NAME_FN).srcref(prope... |
public class class_name {
public void layoutContainer (Container parent)
{
Insets insets = parent.getInsets();
int pcount = parent.getComponentCount();
for (int ii = 0; ii < pcount; ii++) {
Component comp = parent.getComponent(ii);
if (!comp.isVisible()) {
... | public class class_name {
public void layoutContainer (Container parent)
{
Insets insets = parent.getInsets();
int pcount = parent.getComponentCount();
for (int ii = 0; ii < pcount; ii++) {
Component comp = parent.getComponent(ii);
if (!comp.isVisible()) {
... |
public class class_name {
public EditableResourceBundle getResourceBundle(Locale locale) {
EditableResourceBundle localeBundle = bundles.get(locale);
if(localeBundle==null) {
ResourceBundle resourceBundle = ResourceBundle.getBundle(baseName, locale);
if(!resourceBundle.getLocale().equals(locale)) throw new A... | public class class_name {
public EditableResourceBundle getResourceBundle(Locale locale) {
EditableResourceBundle localeBundle = bundles.get(locale);
if(localeBundle==null) {
ResourceBundle resourceBundle = ResourceBundle.getBundle(baseName, locale);
if(!resourceBundle.getLocale().equals(locale)) throw new A... |
public class class_name {
public boolean tick (Pathable pable, long tickStamp)
{
// see if we need to stop
if (_stopTime <= tickStamp) {
boolean updated = updatePositionTo(pable, _sx, _sy);
pable.pathCompleted(tickStamp);
return updated;
}
// see... | public class class_name {
public boolean tick (Pathable pable, long tickStamp)
{
// see if we need to stop
if (_stopTime <= tickStamp) {
boolean updated = updatePositionTo(pable, _sx, _sy);
pable.pathCompleted(tickStamp); // depends on control dependency: [if], data = [none]... |
public class class_name {
public static StatsTraceContext newServerContext(
List<? extends ServerStreamTracer.Factory> factories,
String fullMethodName,
Metadata headers) {
if (factories.isEmpty()) {
return NOOP;
}
StreamTracer[] tracers = new StreamTracer[factories.size()];
for... | public class class_name {
public static StatsTraceContext newServerContext(
List<? extends ServerStreamTracer.Factory> factories,
String fullMethodName,
Metadata headers) {
if (factories.isEmpty()) {
return NOOP; // depends on control dependency: [if], data = [none]
}
StreamTracer[]... |
public class class_name {
public static Window windowForWordInPosition(int windowSize, int wordPos, List<String> sentence) {
List<String> window = new ArrayList<>();
List<String> onlyTokens = new ArrayList<>();
int contextSize = (int) Math.floor((windowSize - 1) / 2);
for (int i = word... | public class class_name {
public static Window windowForWordInPosition(int windowSize, int wordPos, List<String> sentence) {
List<String> window = new ArrayList<>();
List<String> onlyTokens = new ArrayList<>();
int contextSize = (int) Math.floor((windowSize - 1) / 2);
for (int i = word... |
public class class_name {
private boolean isContainedIn(BitSet sourceBitSet, BitSet targetBitSet) {
boolean result = false;
if (sourceBitSet.isEmpty()) {
return true;
}
BitSet setA = (BitSet) sourceBitSet.clone();
setA.and(targetBitSet);
if (setA.equals(so... | public class class_name {
private boolean isContainedIn(BitSet sourceBitSet, BitSet targetBitSet) {
boolean result = false;
if (sourceBitSet.isEmpty()) {
return true; // depends on control dependency: [if], data = [none]
}
BitSet setA = (BitSet) sourceBitSet.clone();
... |
public class class_name {
private static void debug(String header, GatekeeperReply reply) {
if (logger.isTraceEnabled()) {
logger.trace(header);
logger.trace(reply.toString());
}
} } | public class class_name {
private static void debug(String header, GatekeeperReply reply) {
if (logger.isTraceEnabled()) {
logger.trace(header); // depends on control dependency: [if], data = [none]
logger.trace(reply.toString()); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private static final <T extends Appendable> void appendEncodedByte(T buffer, byte value,
byte[] state) {
try {
if (state[0] != 0) {
char c = (char) ((state[1] << 8) | ((value) & 0xFF));
buffer.append(c);
state[0] ... | public class class_name {
private static final <T extends Appendable> void appendEncodedByte(T buffer, byte value,
byte[] state) {
try {
if (state[0] != 0) {
char c = (char) ((state[1] << 8) | ((value) & 0xFF));
buffer.append(c); // depends on control dep... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.