code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private static File getDirectoryIfExists(final File existingCandidate, final String path) {
if (existingCandidate != null) {
return existingCandidate;
}
if (!Strings.isNullOrEmpty(path)) {
final File directory = new File(path);
if (d... | public class class_name {
private static File getDirectoryIfExists(final File existingCandidate, final String path) {
if (existingCandidate != null) {
return existingCandidate; // depends on control dependency: [if], data = [none]
}
if (!Strings.isNullOrEmpty(path)) {
fi... |
public class class_name {
@Override
public boolean deletePolicy(String name) throws PolicyIndexException {
log.debug("Deleting document: " + name);
DbXmlManager.writeLock.lock();
try {
m_dbXmlManager.container.deleteDocument(name, m_dbXmlManager.updateContext);
setL... | public class class_name {
@Override
public boolean deletePolicy(String name) throws PolicyIndexException {
log.debug("Deleting document: " + name);
DbXmlManager.writeLock.lock();
try {
m_dbXmlManager.container.deleteDocument(name, m_dbXmlManager.updateContext);
setL... |
public class class_name {
public V load(K key) {
final byte[] bytes = store.load(toKeyBytes(key));
if (bytes != null) {
return toValueObject(bytes);
} else {
return null;
}
} } | public class class_name {
public V load(K key) {
final byte[] bytes = store.load(toKeyBytes(key));
if (bytes != null) {
return toValueObject(bytes); // depends on control dependency: [if], data = [(bytes]
} else {
return null; // depends on control dependency: [if], data... |
public class class_name {
public List<Integer> commonPrefixSearch(String key, int pos, int len, int nodePos)
{
if (len <= 0)
len = key.length();
if (nodePos <= 0)
nodePos = 0;
List<Integer> result = new ArrayList<Integer>();
char[] keyChars = key.toCharArra... | public class class_name {
public List<Integer> commonPrefixSearch(String key, int pos, int len, int nodePos)
{
if (len <= 0)
len = key.length();
if (nodePos <= 0)
nodePos = 0;
List<Integer> result = new ArrayList<Integer>();
char[] keyChars = key.toCharArra... |
public class class_name {
public NominalTypeBuilder superClass() {
FunctionType ctor = instance.getSuperClassConstructor();
if (ctor == null) {
return null;
}
return new NominalTypeBuilder(ctor, ctor.getInstanceType());
} } | public class class_name {
public NominalTypeBuilder superClass() {
FunctionType ctor = instance.getSuperClassConstructor();
if (ctor == null) {
return null; // depends on control dependency: [if], data = [none]
}
return new NominalTypeBuilder(ctor, ctor.getInstanceType());
} } |
public class class_name {
public static boolean isBetweenHours(long dt, TimeZone tz, int from, int to, int tolerance)
{
long start = 0L;
long end = 0L;
// If from > to then the "to" date may be in the next day
// or the "from" date may be in the previous day, depending
/... | public class class_name {
public static boolean isBetweenHours(long dt, TimeZone tz, int from, int to, int tolerance)
{
long start = 0L;
long end = 0L;
// If from > to then the "to" date may be in the next day
// or the "from" date may be in the previous day, depending
/... |
public class class_name {
public E get() {
E r = null;
if (numElems > 0) {
numElems--;
r = ea[first];
ea[first] = null;
if (++first == maxSize)
first = 0;
}
return r;
} } | public class class_name {
public E get() {
E r = null;
if (numElems > 0) {
numElems--; // depends on control dependency: [if], data = [none]
r = ea[first]; // depends on control dependency: [if], data = [none]
ea[first] = null; // depends on control dependency: [if], data = [none]
if (+... |
public class class_name {
public JsonFluentAssert isAbsent() {
if (!nodeAbsent(actual, path, configuration)) {
failOnDifference("node to be absent", quoteTextValue(getNode(actual, path)));
}
return this;
} } | public class class_name {
public JsonFluentAssert isAbsent() {
if (!nodeAbsent(actual, path, configuration)) {
failOnDifference("node to be absent", quoteTextValue(getNode(actual, path))); // depends on control dependency: [if], data = [none]
}
return this;
} } |
public class class_name {
public PoolRemoveNodesOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) {
if (ifUnmodifiedSince == null) {
this.ifUnmodifiedSince = null;
} else {
this.ifUnmodifiedSince = new DateTimeRfc1123(ifUnmodifiedSince);
}
return this;
... | public class class_name {
public PoolRemoveNodesOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) {
if (ifUnmodifiedSince == null) {
this.ifUnmodifiedSince = null; // depends on control dependency: [if], data = [none]
} else {
this.ifUnmodifiedSince = new DateTimeRfc1123... |
public class class_name {
public final Stream<T> onClose(final Object... objects) {
synchronized (this.state) {
for (final Object object : objects) {
if (!(object instanceof Closeable) && !(object instanceof Runnable)
&& !(object instanceof Callable)) {
... | public class class_name {
public final Stream<T> onClose(final Object... objects) {
synchronized (this.state) {
for (final Object object : objects) {
if (!(object instanceof Closeable) && !(object instanceof Runnable)
&& !(object instanceof Callable)) {
... |
public class class_name {
public static TestConstructor findSingle(Class<?> cls) {
final TestConstructor[] constructors = findAll(cls);
if (constructors.length == 0) {
throw new IllegalStateException(cls.getName() + " requires at least 1 public constructor");
} else if (constructors.length == 1) {
... | public class class_name {
public static TestConstructor findSingle(Class<?> cls) {
final TestConstructor[] constructors = findAll(cls);
if (constructors.length == 0) {
throw new IllegalStateException(cls.getName() + " requires at least 1 public constructor");
} else if (constructors.length == 1) {
... |
public class class_name {
@Override
public EClass getIfcProperty() {
if (ifcPropertyEClass == null) {
ifcPropertyEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(464);
}
return ifcPropertyEClass;
} } | public class class_name {
@Override
public EClass getIfcProperty() {
if (ifcPropertyEClass == null) {
ifcPropertyEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(464);
// depends on control dependency: [if], data = [none]
}
return ifcPropertyECla... |
public class class_name {
private boolean validateMinValue(Object validationObject, Annotation annotate)
{
if (checkNullObject(validationObject))
{
return true;
}
Long minValue = ((Min) annotate).value();
if (checkvalidDigitTypes(validationObject.getClass()))
... | public class class_name {
private boolean validateMinValue(Object validationObject, Annotation annotate)
{
if (checkNullObject(validationObject))
{
return true; // depends on control dependency: [if], data = [none]
}
Long minValue = ((Min) annotate).value();
if ... |
public class class_name {
public static void dump(PrintStream out, byte[] b, int off, int len) {
int end = off + len;
int offDiv16 = off / 16;
int endDiv16 = end / 16;
if (offDiv16 == endDiv16) {
out.println(dumpLine(b, offDiv16, off % 16, end % 16));
} else {
out.println(dumpLine(b, offDiv16, o... | public class class_name {
public static void dump(PrintStream out, byte[] b, int off, int len) {
int end = off + len;
int offDiv16 = off / 16;
int endDiv16 = end / 16;
if (offDiv16 == endDiv16) {
out.println(dumpLine(b, offDiv16, off % 16, end % 16));
// depends on control dependency: [if], data = [no... |
public class class_name {
private static Path getLocalCache(URI cache, Configuration conf,
Path subDir, FileStatus fileStatus,
boolean isArchive, long confFileStamp,
long fileLength,
Path currentWorkDir, boolean honorSymLinkConf,
MRAsyncDiskService asyncDiskService,
LocalDirAllocat... | public class class_name {
private static Path getLocalCache(URI cache, Configuration conf,
Path subDir, FileStatus fileStatus,
boolean isArchive, long confFileStamp,
long fileLength,
Path currentWorkDir, boolean honorSymLinkConf,
MRAsyncDiskService asyncDiskService,
LocalDirAllocat... |
public class class_name {
public boolean execute (PathFinderRequest<N> request) {
request.executionFrames++;
while (true) {
if (DEBUG) GdxAI.getLogger().debug(TAG, "------");
// Should perform search begin?
if (request.status == PathFinderRequest.SEARCH_NEW) {
long currentTime = TimeUtils.nanoTime()... | public class class_name {
public boolean execute (PathFinderRequest<N> request) {
request.executionFrames++;
while (true) {
if (DEBUG) GdxAI.getLogger().debug(TAG, "------");
// Should perform search begin?
if (request.status == PathFinderRequest.SEARCH_NEW) {
long currentTime = TimeUtils.nanoTime()... |
public class class_name {
public void marshall(BatchDetectSentimentItemResult batchDetectSentimentItemResult, ProtocolMarshaller protocolMarshaller) {
if (batchDetectSentimentItemResult == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(BatchDetectSentimentItemResult batchDetectSentimentItemResult, ProtocolMarshaller protocolMarshaller) {
if (batchDetectSentimentItemResult == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
private static FaxClientSpiInterceptor[] createFaxClientSpiInterceptors(FaxClientSpi faxClientSpi)
{
//get type list
String typeListStr=faxClientSpi.getConfigurationValue(FaxClientSpiFactory.SPI_INTERCEPTOR_LIST_PROPERTY_KEY);
FaxClientSpiInterceptor[] interceptors... | public class class_name {
private static FaxClientSpiInterceptor[] createFaxClientSpiInterceptors(FaxClientSpi faxClientSpi)
{
//get type list
String typeListStr=faxClientSpi.getConfigurationValue(FaxClientSpiFactory.SPI_INTERCEPTOR_LIST_PROPERTY_KEY);
FaxClientSpiInterceptor[] interceptors... |
public class class_name {
public final void put(final String pNm, final Double pVal) {
if (this.doubles == null) {
this.doubles = new HashMap<String, Double>();
}
this.doubles.put(pNm, pVal);
} } | public class class_name {
public final void put(final String pNm, final Double pVal) {
if (this.doubles == null) {
this.doubles = new HashMap<String, Double>(); // depends on control dependency: [if], data = [none]
}
this.doubles.put(pNm, pVal);
} } |
public class class_name {
public CreateCommitRequest withDeleteFiles(DeleteFileEntry... deleteFiles) {
if (this.deleteFiles == null) {
setDeleteFiles(new java.util.ArrayList<DeleteFileEntry>(deleteFiles.length));
}
for (DeleteFileEntry ele : deleteFiles) {
this.deleteFil... | public class class_name {
public CreateCommitRequest withDeleteFiles(DeleteFileEntry... deleteFiles) {
if (this.deleteFiles == null) {
setDeleteFiles(new java.util.ArrayList<DeleteFileEntry>(deleteFiles.length)); // depends on control dependency: [if], data = [none]
}
for (DeleteFil... |
public class class_name {
@NotNull
public String toSimpleString(boolean allowDecimal)
{
if (_denominator == 0 && _numerator != 0) {
return toString();
} else if (isInteger()) {
return Integer.toString(intValue());
} else if (_numerator != 1 && _denominator % _num... | public class class_name {
@NotNull
public String toSimpleString(boolean allowDecimal)
{
if (_denominator == 0 && _numerator != 0) {
return toString(); // depends on control dependency: [if], data = [none]
} else if (isInteger()) {
return Integer.toString(intValue()); // ... |
public class class_name {
public void marshall(NotificationOptions notificationOptions, ProtocolMarshaller protocolMarshaller) {
if (notificationOptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(NotificationOptions notificationOptions, ProtocolMarshaller protocolMarshaller) {
if (notificationOptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
public BundleHashcodeType getBundleHashcodeType(String requestedPath) {
if (binaryResourcePathMap.containsValue(requestedPath)) {
return BundleHashcodeType.VALID_HASHCODE;
}
BundleHashcodeType bundleHashcodeType = BundleHashcodeType.UNKNOW_BUNDLE;
String[] resourceInfo = PathNorm... | public class class_name {
public BundleHashcodeType getBundleHashcodeType(String requestedPath) {
if (binaryResourcePathMap.containsValue(requestedPath)) {
return BundleHashcodeType.VALID_HASHCODE; // depends on control dependency: [if], data = [none]
}
BundleHashcodeType bundleHashcodeType = BundleHashcode... |
public class class_name {
public Scheduler stop(boolean clearTasks) {
synchronized (lock) {
if (false == started) {
throw new IllegalStateException("Scheduler not started !");
}
// 停止CronTimer
this.timer.stopTimer();
this.timer = null;
//停止线程池
this.threadExecutor.shutdown();
... | public class class_name {
public Scheduler stop(boolean clearTasks) {
synchronized (lock) {
if (false == started) {
throw new IllegalStateException("Scheduler not started !");
}
// 停止CronTimer
this.timer.stopTimer();
this.timer = null;
//停止线程池
this.threadExecutor.shutdown();
... |
public class class_name {
public Object get(Type type, List<Annotation> sources) {
if (Types.isArray(type)) {
logger.warn("Array type is not supported in [" + getClass() + "]");
return null;
} else if (Types.isBuiltinType(type)) {
return builtin(type);
}
for (Annotation source : sources) {
Objec... | public class class_name {
public Object get(Type type, List<Annotation> sources) {
if (Types.isArray(type)) {
logger.warn("Array type is not supported in [" + getClass() + "]"); // depends on control dependency: [if], data = [none]
return null; // depends on control dependency: [if], data = [none]
} else if ... |
public class class_name {
public JsonObject putAndEncrypt(final String name, final Object value, String providerName) {
addValueEncryptionInfo(name, providerName, true);
if (this == value) {
throw new IllegalArgumentException("Cannot put self");
} else if (value == JsonValue.NULL) {... | public class class_name {
public JsonObject putAndEncrypt(final String name, final Object value, String providerName) {
addValueEncryptionInfo(name, providerName, true);
if (this == value) {
throw new IllegalArgumentException("Cannot put self");
} else if (value == JsonValue.NULL) {... |
public class class_name {
public static Font getQuicksandBoldFont() {
if (quicksandBoldFont == null) {
try {
quicksandBoldFont = Font.createFont(Font.TRUETYPE_FONT,
FontUtils.class.getResourceAsStream("/resource/Quicksand-Bold.ttf"));
GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(q... | public class class_name {
public static Font getQuicksandBoldFont() {
if (quicksandBoldFont == null) {
try {
quicksandBoldFont = Font.createFont(Font.TRUETYPE_FONT,
FontUtils.class.getResourceAsStream("/resource/Quicksand-Bold.ttf"));
GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(q... |
public class class_name {
@SuppressWarnings("unchecked")
public Set<RateType> getRateTypes() {
Set<RateType> result = get(KEY_RATE_TYPES, Set.class);
if (result == null) {
return Collections.emptySet();
}
return result;
} } | public class class_name {
@SuppressWarnings("unchecked")
public Set<RateType> getRateTypes() {
Set<RateType> result = get(KEY_RATE_TYPES, Set.class);
if (result == null) {
return Collections.emptySet(); // depends on control dependency: [if], data = [none]
}
return resul... |
public class class_name {
public void setWebsiteCertificateAuthorities(java.util.Collection<WebsiteCaSummary> websiteCertificateAuthorities) {
if (websiteCertificateAuthorities == null) {
this.websiteCertificateAuthorities = null;
return;
}
this.websiteCertificateAuthor... | public class class_name {
public void setWebsiteCertificateAuthorities(java.util.Collection<WebsiteCaSummary> websiteCertificateAuthorities) {
if (websiteCertificateAuthorities == null) {
this.websiteCertificateAuthorities = null; // depends on control dependency: [if], data = [none]
re... |
public class class_name {
public List<PPVItemsType.PPVItem> getPPVItem()
{
if (ppvItem == null)
{
ppvItem = new ArrayList<PPVItemsType.PPVItem>();
}
return this.ppvItem;
} } | public class class_name {
public List<PPVItemsType.PPVItem> getPPVItem()
{
if (ppvItem == null)
{
ppvItem = new ArrayList<PPVItemsType.PPVItem>(); // depends on control dependency: [if], data = [none]
}
return this.ppvItem;
} } |
public class class_name {
public static final SipInitialLine parse(final Buffer buffer) throws SipParseException {
Buffer part1 = null;
Buffer part2 = null;
Buffer part3 = null;
try {
part1 = buffer.readUntil(SipParser.SP);
part2 = buffer.readUntil(SipParser.SP);... | public class class_name {
public static final SipInitialLine parse(final Buffer buffer) throws SipParseException {
Buffer part1 = null;
Buffer part2 = null;
Buffer part3 = null;
try {
part1 = buffer.readUntil(SipParser.SP);
part2 = buffer.readUntil(SipParser.SP);... |
public class class_name {
protected synchronized void notifyListenersSpiderProgress(int percentageComplete, int numberCrawled,
int numberToCrawl) {
for (SpiderListener l : listeners) {
l.spiderProgress(percentageComplete, numberCrawled, numberToCrawl);
}
} } | public class class_name {
protected synchronized void notifyListenersSpiderProgress(int percentageComplete, int numberCrawled,
int numberToCrawl) {
for (SpiderListener l : listeners) {
l.spiderProgress(percentageComplete, numberCrawled, numberToCrawl); // depends on control dependency: [for], data = [l]
}
}... |
public class class_name {
private HashMap<String, HashSet<Node>> getRackToHostsMapForStripe(
String srcFileName,
String parityFileName,
int stripeLen,
int parityLen,
int stripeIndex) throws IOException {
HashMap<String, HashSet<Node>> rackToHosts =
new HashMap<String, HashSet<No... | public class class_name {
private HashMap<String, HashSet<Node>> getRackToHostsMapForStripe(
String srcFileName,
String parityFileName,
int stripeLen,
int parityLen,
int stripeIndex) throws IOException {
HashMap<String, HashSet<Node>> rackToHosts =
new HashMap<String, HashSet<No... |
public class class_name {
public static UITaskMetric getTaskMetric(List<MetricInfo> taskStreamMetrics, String component,
int id, int window) {
UITaskMetric taskMetric = new UITaskMetric(component, id);
if (taskStreamMetrics.size() > 1) {
MetricIn... | public class class_name {
public static UITaskMetric getTaskMetric(List<MetricInfo> taskStreamMetrics, String component,
int id, int window) {
UITaskMetric taskMetric = new UITaskMetric(component, id);
if (taskStreamMetrics.size() > 1) {
MetricIn... |
public class class_name {
@Override
public boolean hasNext() {
// first return all values of the first operand
while (mOp1.hasNext()) {
mOp1.next();
if (getNode().getDataKey() < 0) { // only nodes are
// allowed
throw new XPathError(ErrorTyp... | public class class_name {
@Override
public boolean hasNext() {
// first return all values of the first operand
while (mOp1.hasNext()) {
mOp1.next(); // depends on control dependency: [while], data = [none]
if (getNode().getDataKey() < 0) { // only nodes are
... |
public class class_name {
@Override
public DatatypeLibrary createDatatypeLibrary(String namespaceURI) {
if (NAMESPACE.equals(namespaceURI)) {
return new Html5DatatypeLibrary();
}
return null;
} } | public class class_name {
@Override
public DatatypeLibrary createDatatypeLibrary(String namespaceURI) {
if (NAMESPACE.equals(namespaceURI)) {
return new Html5DatatypeLibrary(); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
Reference<T> lookupReference(String name, boolean isLongName) {
if (isLongName) {
for (Reference<T> r : referenceMap.values()) {
if (r.longName.equals(name)) {
return r;
}
}
return null;
}
return referenceMap.get(name);
} } | public class class_name {
Reference<T> lookupReference(String name, boolean isLongName) {
if (isLongName) {
for (Reference<T> r : referenceMap.values()) {
if (r.longName.equals(name)) {
return r; // depends on control dependency: [if], data = [none]
}
}
return null; // d... |
public class class_name {
@TCB
private static void encodeHtmlOnto(
String plainText, Appendable output, @Nullable String braceReplacement)
throws IOException {
int n = plainText.length();
int pos = 0;
for (int i = 0; i < n; ++i) {
char ch = plainText.charAt(i);
if (ch < REPLAC... | public class class_name {
@TCB
private static void encodeHtmlOnto(
String plainText, Appendable output, @Nullable String braceReplacement)
throws IOException {
int n = plainText.length();
int pos = 0;
for (int i = 0; i < n; ++i) {
char ch = plainText.charAt(i);
if (ch < REPLAC... |
public class class_name {
protected void publishDeletedFile(
CmsDbContext dbc,
CmsProject onlineProject,
CmsResource offlineResource,
CmsUUID publishHistoryId,
int publishTag)
throws CmsDataAccessException {
CmsResourceState resourceState = fixMovedResource(
... | public class class_name {
protected void publishDeletedFile(
CmsDbContext dbc,
CmsProject onlineProject,
CmsResource offlineResource,
CmsUUID publishHistoryId,
int publishTag)
throws CmsDataAccessException {
CmsResourceState resourceState = fixMovedResource(
... |
public class class_name {
private double[][] calculateTotalKinematic( double[][] ampikinesurface, double[][] ampisubsurface, double delta_sup,
double delta_sub, double vc, double tcorr, double area_sub, double area_super ) {
double[][] totalKinematic = null;
if (ampisubsurface == null) {
... | public class class_name {
private double[][] calculateTotalKinematic( double[][] ampikinesurface, double[][] ampisubsurface, double delta_sup,
double delta_sub, double vc, double tcorr, double area_sub, double area_super ) {
double[][] totalKinematic = null;
if (ampisubsurface == null) {
... |
public class class_name {
public static String toLowerCase(CharSequence chars) {
if (chars instanceof String) {
return toLowerCase((String) chars);
}
int length = chars.length();
StringBuilder builder = new StringBuilder(length);
for (int i = 0; i < length; i++) {
builder.append(toLower... | public class class_name {
public static String toLowerCase(CharSequence chars) {
if (chars instanceof String) {
return toLowerCase((String) chars); // depends on control dependency: [if], data = [none]
}
int length = chars.length();
StringBuilder builder = new StringBuilder(length);
for (int ... |
public class class_name {
public DateTimeFormatter withLocale(Locale locale) {
if (locale == getLocale() || (locale != null && locale.equals(getLocale()))) {
return this;
}
return new DateTimeFormatter(iPrinter, iParser, locale,
iOffsetParsed, iChrono, iZone, iPivotY... | public class class_name {
public DateTimeFormatter withLocale(Locale locale) {
if (locale == getLocale() || (locale != null && locale.equals(getLocale()))) {
return this; // depends on control dependency: [if], data = [none]
}
return new DateTimeFormatter(iPrinter, iParser, locale,
... |
public class class_name {
public static File getTempDirectory() {
if (tempFile != null) return tempFile;
final String tmpStr = System.getProperty("java.io.tmpdir");
if (tmpStr != null) {
tempFile = new File(tmpStr);
if (tempFile.exists()) {
tempFile = getCanonicalFileEL(tempFile);
return tempFile;
... | public class class_name {
public static File getTempDirectory() {
if (tempFile != null) return tempFile;
final String tmpStr = System.getProperty("java.io.tmpdir");
if (tmpStr != null) {
tempFile = new File(tmpStr); // depends on control dependency: [if], data = [(tmpStr]
if (tempFile.exists()) {
tempF... |
public class class_name {
public static String addsPfad(String pfad1, String pfad2) {
String ret = "";
if (pfad1 != null && pfad2 != null) {
if (pfad1.isEmpty()) {
ret = pfad2;
} else if (pfad2.isEmpty()) {
ret = pfad1;
} else if (!pfa... | public class class_name {
public static String addsPfad(String pfad1, String pfad2) {
String ret = "";
if (pfad1 != null && pfad2 != null) {
if (pfad1.isEmpty()) {
ret = pfad2; // depends on control dependency: [if], data = [none]
} else if (pfad2.isEmpty()) {
... |
public class class_name {
public FavoriteResources favoriteResources() {
if (favorites.get() == null) {
favorites.compareAndSet(null, new FavoriteResourcesImpl(this));
}
return favorites.get();
} } | public class class_name {
public FavoriteResources favoriteResources() {
if (favorites.get() == null) {
favorites.compareAndSet(null, new FavoriteResourcesImpl(this)); // depends on control dependency: [if], data = [none]
}
return favorites.get();
} } |
public class class_name {
private final SearchQuery parseQueryString(final HttpQuery query,
final SearchType type) {
final SearchQuery search_query = new SearchQuery();
if (type == SearchType.LOOKUP) {
final String query_string = query.getRequiredQueryStringParam("m");
search_query.setT... | public class class_name {
private final SearchQuery parseQueryString(final HttpQuery query,
final SearchType type) {
final SearchQuery search_query = new SearchQuery();
if (type == SearchType.LOOKUP) {
final String query_string = query.getRequiredQueryStringParam("m");
search_query.setT... |
public class class_name {
public void remove(String toRemove) {
if (toRemove.contains("*")) {
set.clear();
defaultContains = false;
} else {
if (defaultContains) {
set.add(toRemove);
} else {
set.remove(toRemove);
... | public class class_name {
public void remove(String toRemove) {
if (toRemove.contains("*")) {
set.clear(); // depends on control dependency: [if], data = [none]
defaultContains = false; // depends on control dependency: [if], data = [none]
} else {
if (defaultContain... |
public class class_name {
public static InjectorImpl create(ClassLoader loader)
{
synchronized (loader) {
if (loader instanceof DynamicClassLoader) {
InjectorImpl inject = _localManager.getLevel(loader);
if (inject == null) {
inject = (InjectorImpl) InjectorAmp.manager(loader).ge... | public class class_name {
public static InjectorImpl create(ClassLoader loader)
{
synchronized (loader) {
if (loader instanceof DynamicClassLoader) {
InjectorImpl inject = _localManager.getLevel(loader);
if (inject == null) {
inject = (InjectorImpl) InjectorAmp.manager(loader).ge... |
public class class_name {
public static SumChartCost create(ChartCost ... filters) {
List<ChartCost> nonNullFilters = Lists.newArrayList();
for (ChartCost filter : filters) {
if (filter != null) {
nonNullFilters.add(filter);
}
}
if (nonNullFilters.size() > 0) {
return new... | public class class_name {
public static SumChartCost create(ChartCost ... filters) {
List<ChartCost> nonNullFilters = Lists.newArrayList();
for (ChartCost filter : filters) {
if (filter != null) {
nonNullFilters.add(filter); // depends on control dependency: [if], data = [(filter]
}
}
... |
public class class_name {
private void dataBufferFlush() throws SAXException {
int saveLine = line;
int saveColumn = column;
line = linePrev;
column = columnPrev;
if ((currentElementContent == CONTENT_ELEMENTS) && (dataBufferPos > 0)
&& !inCDATA) {
//... | public class class_name {
private void dataBufferFlush() throws SAXException {
int saveLine = line;
int saveColumn = column;
line = linePrev;
column = columnPrev;
if ((currentElementContent == CONTENT_ELEMENTS) && (dataBufferPos > 0)
&& !inCDATA) {
//... |
public class class_name {
public void waitForAllActivitiesDestroy(int timeOutInMillis) {
synchronized (activityStack) {
long start = System.currentTimeMillis();
long now = start;
while (!activityStack.isEmpty() && start + timeOutInMillis > now) {
try {
... | public class class_name {
public void waitForAllActivitiesDestroy(int timeOutInMillis) {
synchronized (activityStack) {
long start = System.currentTimeMillis();
long now = start;
while (!activityStack.isEmpty() && start + timeOutInMillis > now) {
try {
... |
public class class_name {
@Override
public void setMessageSelector(final String messageSelector) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
SibTr.debug(this, TRACE, "setMessageSelector", messageSelector);
}
_messageSelector = messageSelector;
} } | public class class_name {
@Override
public void setMessageSelector(final String messageSelector) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
SibTr.debug(this, TRACE, "setMessageSelector", messageSelector); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private static Object delegateChains(final Class<?> type) {
final ReturnsEmptyValues returnsEmptyValues = new ReturnsEmptyValues();
Object result = returnsEmptyValues.returnValueFor(type);
if (result == null) {
Class<?> emptyValueForClass = type;
... | public class class_name {
private static Object delegateChains(final Class<?> type) {
final ReturnsEmptyValues returnsEmptyValues = new ReturnsEmptyValues();
Object result = returnsEmptyValues.returnValueFor(type);
if (result == null) {
Class<?> emptyValueForClass = type;
... |
public class class_name {
public void write(JsonWriter json, UserDto user, Collection<String> groups, @Nullable Collection<String> fields) {
json.beginObject();
json.prop(FIELD_LOGIN, user.getLogin());
writeIfNeeded(json, user.getName(), FIELD_NAME, fields);
if (userSession.isLoggedIn()) {
writeI... | public class class_name {
public void write(JsonWriter json, UserDto user, Collection<String> groups, @Nullable Collection<String> fields) {
json.beginObject();
json.prop(FIELD_LOGIN, user.getLogin());
writeIfNeeded(json, user.getName(), FIELD_NAME, fields);
if (userSession.isLoggedIn()) {
writeI... |
public class class_name {
@Pure
public int[] toIntArray() {
final int[] tab = new int[this.size];
if (this.values != null) {
int idxTab = 0;
for (int idxStart = 0; idxStart < this.values.length - 1; idxStart += 2) {
for (int n = this.values[idxStart]; n <= this.values[idxStart + 1]; ++n) {
tab[idxT... | public class class_name {
@Pure
public int[] toIntArray() {
final int[] tab = new int[this.size];
if (this.values != null) {
int idxTab = 0;
for (int idxStart = 0; idxStart < this.values.length - 1; idxStart += 2) {
for (int n = this.values[idxStart]; n <= this.values[idxStart + 1]; ++n) {
tab[idxT... |
public class class_name {
@Override
public Object replaceObject(Object object) {
if (object instanceof HibernateProxy) {
return ((HibernateProxy) object).getHibernateLazyInitializer().getImplementation();
}
return object;
} } | public class class_name {
@Override
public Object replaceObject(Object object) {
if (object instanceof HibernateProxy) {
return ((HibernateProxy) object).getHibernateLazyInitializer().getImplementation(); // depends on control dependency: [if], data = [none]
}
return object;
... |
public class class_name {
public static Document parseBodyFragment(String bodyHtml, String baseUri) {
Document doc = Document.createShell(baseUri);
Element body = doc.body();
List<Node> nodeList = parseFragment(bodyHtml, body, baseUri);
Node[] nodes = nodeList.toArray(new Node[0]); // t... | public class class_name {
public static Document parseBodyFragment(String bodyHtml, String baseUri) {
Document doc = Document.createShell(baseUri);
Element body = doc.body();
List<Node> nodeList = parseFragment(bodyHtml, body, baseUri);
Node[] nodes = nodeList.toArray(new Node[0]); // t... |
public class class_name {
public static ExpectedCondition<Boolean> textToBePresentInElementValue(final By locator,
final String text) {
return new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver driver) {
... | public class class_name {
public static ExpectedCondition<Boolean> textToBePresentInElementValue(final By locator,
final String text) {
return new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver driver) {
... |
public class class_name {
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
// Special case methods are looked up from a map and invoked.
// Do not trace because this includes some basic things like hashcode and equals.
// Important special case methods will ta... | public class class_name {
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
// Special case methods are looked up from a map and invoked.
// Do not trace because this includes some basic things like hashcode and equals.
// Important special case methods will ta... |
public class class_name {
public HtmlPolicyBuilder disallowUrlProtocols(String... protocols) {
invalidateCompiledState();
for (String protocol : protocols) {
protocol = Strings.toLowerCase(protocol);
allowedProtocols.remove(protocol);
}
return this;
} } | public class class_name {
public HtmlPolicyBuilder disallowUrlProtocols(String... protocols) {
invalidateCompiledState();
for (String protocol : protocols) {
protocol = Strings.toLowerCase(protocol); // depends on control dependency: [for], data = [protocol]
allowedProtocols.remove(protocol); // de... |
public class class_name {
protected static void filterProposalsOnPrefix(String prefix, List<ICompletionProposal> props) {
if ( prefix != null && prefix.trim().length() > 0 ) {
Iterator<ICompletionProposal> iterator = props.iterator();
String prefixLc = prefix.toLowerCase();
... | public class class_name {
protected static void filterProposalsOnPrefix(String prefix, List<ICompletionProposal> props) {
if ( prefix != null && prefix.trim().length() > 0 ) {
Iterator<ICompletionProposal> iterator = props.iterator();
String prefixLc = prefix.toLowerCase();
... |
public class class_name {
protected boolean isXMLName(String s, boolean xml11Version) {
if (s == null) {
return false;
}
if (!xml11Version)
return XMLChar.isValidName(s);
else
return XML11Char.isXML11ValidName(s);
} } | public class class_name {
protected boolean isXMLName(String s, boolean xml11Version) {
if (s == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (!xml11Version)
return XMLChar.isValidName(s);
else
return XML11Char.isX... |
public class class_name {
private final String bufferToString(byte[] str) {
String string = null;
if (str != null) {
string = AMF.CHARSET.decode(ByteBuffer.wrap(str)).toString();
log.debug("String: {}", string);
} else {
log.warn("ByteBuffer was null attempting to read String");
}
return string;
} ... | public class class_name {
private final String bufferToString(byte[] str) {
String string = null;
if (str != null) {
string = AMF.CHARSET.decode(ByteBuffer.wrap(str)).toString(); // depends on control dependency: [if], data = [(str]
log.debug("String: {}", string); // depends on control dependency: [if], dat... |
public class class_name {
private void clearNioBuffers() {
int count = nioBufferCount;
if (count > 0) {
nioBufferCount = 0;
Arrays.fill(NIO_BUFFERS.get(), 0, count, null);
}
} } | public class class_name {
private void clearNioBuffers() {
int count = nioBufferCount;
if (count > 0) {
nioBufferCount = 0; // depends on control dependency: [if], data = [none]
Arrays.fill(NIO_BUFFERS.get(), 0, count, null); // depends on control dependency: [if], data = [none]... |
public class class_name {
private ClusterableServer getRandomServer(final List<ServerDescription> serverDescriptions) {
while (!serverDescriptions.isEmpty()) {
int serverPos = getRandom().nextInt(serverDescriptions.size());
ClusterableServer server = getServer(serverDescriptions.get(ser... | public class class_name {
private ClusterableServer getRandomServer(final List<ServerDescription> serverDescriptions) {
while (!serverDescriptions.isEmpty()) {
int serverPos = getRandom().nextInt(serverDescriptions.size());
ClusterableServer server = getServer(serverDescriptions.get(ser... |
public class class_name {
public java.util.List<Failure> getFailures() {
if (failures == null) {
failures = new com.amazonaws.internal.SdkInternalList<Failure>();
}
return failures;
} } | public class class_name {
public java.util.List<Failure> getFailures() {
if (failures == null) {
failures = new com.amazonaws.internal.SdkInternalList<Failure>(); // depends on control dependency: [if], data = [none]
}
return failures;
} } |
public class class_name {
public ListOperationsResult withOperations(OperationSummary... operations) {
if (this.operations == null) {
setOperations(new com.amazonaws.internal.SdkInternalList<OperationSummary>(operations.length));
}
for (OperationSummary ele : operations) {
... | public class class_name {
public ListOperationsResult withOperations(OperationSummary... operations) {
if (this.operations == null) {
setOperations(new com.amazonaws.internal.SdkInternalList<OperationSummary>(operations.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static String resolve(WebSphereConfig14 config, String raw) {
String resolved = raw;
StringCharacterIterator itr = new StringCharacterIterator(resolved);
int startCount = 0; //how many times have we encountered the start token (EVAL_START_TOKEN) without it being... | public class class_name {
public static String resolve(WebSphereConfig14 config, String raw) {
String resolved = raw;
StringCharacterIterator itr = new StringCharacterIterator(resolved);
int startCount = 0; //how many times have we encountered the start token (EVAL_START_TOKEN) without it being... |
public class class_name {
public String toQueryString()
{
StringBuilder result = new StringBuilder();
if ((null != parameters) && !parameters.isEmpty())
{
result.append("?");
Iterator<Entry<String, List<String>>> iterator = parameters.entrySet().iterator();
while (itera... | public class class_name {
public String toQueryString()
{
StringBuilder result = new StringBuilder();
if ((null != parameters) && !parameters.isEmpty())
{
result.append("?"); // depends on control dependency: [if], data = [none]
Iterator<Entry<String, List<String>>> iterator = p... |
public class class_name {
public Set<Object> getAllSources() {
Set<Object> allSources = new LinkedHashSet<>();
if (!CollectionUtils.isEmpty(this.primarySources)) {
allSources.addAll(this.primarySources);
}
if (!CollectionUtils.isEmpty(this.sources)) {
allSources.addAll(this.sources);
}
return Collect... | public class class_name {
public Set<Object> getAllSources() {
Set<Object> allSources = new LinkedHashSet<>();
if (!CollectionUtils.isEmpty(this.primarySources)) {
allSources.addAll(this.primarySources); // depends on control dependency: [if], data = [none]
}
if (!CollectionUtils.isEmpty(this.sources)) {
... |
public class class_name {
@Deprecated
public void add(String route, String acceptType, Object target) {
try {
int singleQuoteIndex = route.indexOf(SINGLE_QUOTE);
String httpMethod = route.substring(0, singleQuoteIndex).trim().toLowerCase(); // NOSONAR
String url = route.... | public class class_name {
@Deprecated
public void add(String route, String acceptType, Object target) {
try {
int singleQuoteIndex = route.indexOf(SINGLE_QUOTE);
String httpMethod = route.substring(0, singleQuoteIndex).trim().toLowerCase(); // NOSONAR
String url = route.... |
public class class_name {
public List<AclEntry> getEntries() {
ImmutableList.Builder<AclEntry> builder = new ImmutableList.Builder<>();
for (Map.Entry<String, AclActions> kv : mNamedUserActions.entrySet()) {
builder.add(new AclEntry.Builder()
.setType(AclEntryType.NAMED_USER)
.setSubj... | public class class_name {
public List<AclEntry> getEntries() {
ImmutableList.Builder<AclEntry> builder = new ImmutableList.Builder<>();
for (Map.Entry<String, AclActions> kv : mNamedUserActions.entrySet()) {
builder.add(new AclEntry.Builder()
.setType(AclEntryType.NAMED_USER)
.setSubj... |
public class class_name {
public static int nextInt(Random random, int min, int max) {
Validate.isTrue(max >= min, "Start value must be smaller or equal to end value.");
MoreValidate.nonNegative("min", min);
if (min == max) {
return min;
}
return min + random.nextInt(max - min);
} } | public class class_name {
public static int nextInt(Random random, int min, int max) {
Validate.isTrue(max >= min, "Start value must be smaller or equal to end value.");
MoreValidate.nonNegative("min", min);
if (min == max) {
return min; // depends on control dependency: [if], data = [none]
}
return min... |
public class class_name {
@Override
public Object getStatusProperty(String key) {
if (key.equals(AVERAGE_EXECUTION_TIME)) {
return (getAverageExecutionTime());
} else if (key.equals(MAX_QUEUE_SIZE)) {
return (getMaxQueueSize());
} else if (key.equals(EXECUTION_STATUS)) {
// TODO.
}
return nu... | public class class_name {
@Override
public Object getStatusProperty(String key) {
if (key.equals(AVERAGE_EXECUTION_TIME)) {
return (getAverageExecutionTime()); // depends on control dependency: [if], data = [none]
} else if (key.equals(MAX_QUEUE_SIZE)) {
return (getMaxQueueSize()); // depends on control... |
public class class_name {
@Override
public boolean dateRange(Object day1, Object month1, Object year1,
Object day2, Object month2, Object year2, Object gmt) {
// Guess the parameter meanings.
Map<String, Integer> params = new HashMap<String, Integer>();
parseDateParam(params, day1);
parseDateP... | public class class_name {
@Override
public boolean dateRange(Object day1, Object month1, Object year1,
Object day2, Object month2, Object year2, Object gmt) {
// Guess the parameter meanings.
Map<String, Integer> params = new HashMap<String, Integer>();
parseDateParam(params, day1);
parseDateP... |
public class class_name {
@Override
protected void selectRectangle(Bbox selectedArea) {
// we can clear here !
if (!shiftOrCtrl) {
MapModel mapModel = mapWidget.getMapModel();
mapModel.clearSelectedFeatures();
}
GwtCommand commandRequest = new GwtCommand(SearchByLocationRequest.COMMAND);
SearchByLocat... | public class class_name {
@Override
protected void selectRectangle(Bbox selectedArea) {
// we can clear here !
if (!shiftOrCtrl) {
MapModel mapModel = mapWidget.getMapModel();
mapModel.clearSelectedFeatures(); // depends on control dependency: [if], data = [none]
}
GwtCommand commandRequest = new GwtCom... |
public class class_name {
public void marshall(DisassociateKmsKeyRequest disassociateKmsKeyRequest, ProtocolMarshaller protocolMarshaller) {
if (disassociateKmsKeyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(DisassociateKmsKeyRequest disassociateKmsKeyRequest, ProtocolMarshaller protocolMarshaller) {
if (disassociateKmsKeyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
public int getUnsignedMediumInt() {
int b1 = getUnsigned();
int b2 = getUnsigned();
int b3 = getUnsigned();
if (_isBigEndian) {
return (b1<<16) | (b2<<8) | b3;
}
else {
return (b3<<16) | (b2<<8) | b1;
}
} } | public class class_name {
public int getUnsignedMediumInt() {
int b1 = getUnsigned();
int b2 = getUnsigned();
int b3 = getUnsigned();
if (_isBigEndian) {
return (b1<<16) | (b2<<8) | b3; // depends on control dependency: [if], data = [none]
}
else {
... |
public class class_name {
protected static double luby(double y, int x) {
int intX = x;
int size = 1;
int seq = 0;
while (size < intX + 1) {
seq++;
size = 2 * size + 1;
}
while (size - 1 != intX) {
size = (size - 1) >> 1;
seq--;
intX = intX % size;
}
return... | public class class_name {
protected static double luby(double y, int x) {
int intX = x;
int size = 1;
int seq = 0;
while (size < intX + 1) {
seq++; // depends on control dependency: [while], data = [none]
size = 2 * size + 1; // depends on control dependency: [while], data = [none]
}
... |
public class class_name {
public void add(HpackHeaderField header) {
int headerSize = header.size();
if (headerSize > capacity) {
clear();
return;
}
while (capacity - size < headerSize) {
remove();
}
hpackHeaderFields[head++] = header;... | public class class_name {
public void add(HpackHeaderField header) {
int headerSize = header.size();
if (headerSize > capacity) {
clear(); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
while ... |
public class class_name {
@Override
public void setNextPageID(int next_page_id) {
this.nextPageID = next_page_id;
while(!emptyPages.isEmpty() && emptyPages.peek() >= this.nextPageID) {
emptyPages.pop();
}
} } | public class class_name {
@Override
public void setNextPageID(int next_page_id) {
this.nextPageID = next_page_id;
while(!emptyPages.isEmpty() && emptyPages.peek() >= this.nextPageID) {
emptyPages.pop(); // depends on control dependency: [while], data = [none]
}
} } |
public class class_name {
private Version getClusterOrNodeVersion() {
if (node.getClusterService() != null && !node.getClusterService().getClusterVersion().isUnknown()) {
return node.getClusterService().getClusterVersion();
} else {
String overriddenClusterVersion = node.getProp... | public class class_name {
private Version getClusterOrNodeVersion() {
if (node.getClusterService() != null && !node.getClusterService().getClusterVersion().isUnknown()) {
return node.getClusterService().getClusterVersion(); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public void setWarnings(String warnings) {
try {
deprecationWarnings = CompilerOptions.DeprecationWarnings
.fromString(warnings);
} catch (IllegalArgumentException e) {
throw new BuildException("invalid value for warnings: " + warnin... | public class class_name {
public void setWarnings(String warnings) {
try {
deprecationWarnings = CompilerOptions.DeprecationWarnings
.fromString(warnings); // depends on control dependency: [try], data = [none]
} catch (IllegalArgumentException e) {
throw new... |
public class class_name {
private IContext buildCLabs(IContext context) throws ContextPreprocessorException {
int counter = 0;
int total = context.getRoot().getDescendantCount() + 1;
int reportInt = (total / 20) + 1;//i.e. report every 5%
for (Iterator<INode> i = context.getNodes(... | public class class_name {
private IContext buildCLabs(IContext context) throws ContextPreprocessorException {
int counter = 0;
int total = context.getRoot().getDescendantCount() + 1;
int reportInt = (total / 20) + 1;//i.e. report every 5%
for (Iterator<INode> i = context.getNodes(... |
public class class_name {
private void deliverDeviceUpdate(final DeviceUpdate update) {
for (DeviceUpdateListener listener : getUpdateListeners()) {
try {
listener.received(update);
} catch (Throwable t) {
logger.warn("Problem delivering device update to ... | public class class_name {
private void deliverDeviceUpdate(final DeviceUpdate update) {
for (DeviceUpdateListener listener : getUpdateListeners()) {
try {
listener.received(update); // depends on control dependency: [try], data = [none]
} catch (Throwable t) {
... |
public class class_name {
@SuppressWarnings("unchecked")
private <T extends Request> void resendRequest(Throwable cause, T request, BiFunction sender, Connection connection, CompletableFuture future) {
// If the connection has not changed, reset it and connect to the next server.
if (this.connection == conne... | public class class_name {
@SuppressWarnings("unchecked")
private <T extends Request> void resendRequest(Throwable cause, T request, BiFunction sender, Connection connection, CompletableFuture future) {
// If the connection has not changed, reset it and connect to the next server.
if (this.connection == conne... |
public class class_name {
@Override
public String getJwtCookieName() {
// TODO Auto-generated method stub
JwtSsoBuilderConfig jwtssobuilderConfig = getJwtSSOBuilderConfig();
if (jwtssobuilderConfig != null) {
return jwtssobuilderConfig.getCookieName();
}
return null;
} } | public class class_name {
@Override
public String getJwtCookieName() {
// TODO Auto-generated method stub
JwtSsoBuilderConfig jwtssobuilderConfig = getJwtSSOBuilderConfig();
if (jwtssobuilderConfig != null) {
return jwtssobuilderConfig.getCookieName(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public Observable<ServiceResponse<Page<RoleAssignmentInner>>> listForScopeSinglePageAsync(final String scope, final String filter) {
if (scope == null) {
throw new IllegalArgumentException("Parameter scope is required and cannot be null.");
}
if (this.clien... | public class class_name {
public Observable<ServiceResponse<Page<RoleAssignmentInner>>> listForScopeSinglePageAsync(final String scope, final String filter) {
if (scope == null) {
throw new IllegalArgumentException("Parameter scope is required and cannot be null.");
}
if (this.clien... |
public class class_name {
private static String toBinaryString(int word)
{
String lsb = Integer.toBinaryString(word);
StringBuilder pad = new StringBuilder();
for (int i = lsb.length(); i < 32; i++) {
pad.append('0');
}
return pad.append(lsb).toString();
} } | public class class_name {
private static String toBinaryString(int word)
{
String lsb = Integer.toBinaryString(word);
StringBuilder pad = new StringBuilder();
for (int i = lsb.length(); i < 32; i++) {
pad.append('0');
// depends on control dependency: [for], data = [none]
}
return pa... |
public class class_name {
private synchronized void getAllPreviousOffsetState(SourceState state) {
if (this.doneGettingAllPreviousOffsets) {
return;
}
this.previousOffsets.clear();
this.previousLowWatermarks.clear();
this.previousExpectedHighWatermarks.clear();
this.previousOffsetFetchEpo... | public class class_name {
private synchronized void getAllPreviousOffsetState(SourceState state) {
if (this.doneGettingAllPreviousOffsets) {
return; // depends on control dependency: [if], data = [none]
}
this.previousOffsets.clear();
this.previousLowWatermarks.clear();
this.previousExpectedH... |
public class class_name {
private static String normalizeArrayNotation(String type) {
int arrayDimensions = 0;
while (type.endsWith("[]")) {
type = type.substring(0, type.length() - 2);
arrayDimensions++;
}
if (arrayDimensions == 0) {
return type;
} else {
String arraySigna... | public class class_name {
private static String normalizeArrayNotation(String type) {
int arrayDimensions = 0;
while (type.endsWith("[]")) {
type = type.substring(0, type.length() - 2); // depends on control dependency: [while], data = [none]
arrayDimensions++; // depends on control dependency: [wh... |
public class class_name {
static boolean isEscaped(final String characters, final int position) {
int p = position;
int nbBackslash = 0;
while (p > 0 && characters.charAt(--p) == '\\') {
nbBackslash++;
}
return (nbBackslash % 2 == 1);
} } | public class class_name {
static boolean isEscaped(final String characters, final int position) {
int p = position;
int nbBackslash = 0;
while (p > 0 && characters.charAt(--p) == '\\') {
nbBackslash++; // depends on control dependency: [while], data = [none]
}
return (nbBackslash % 2 == 1);
} } |
public class class_name {
@SafeVarargs
public final static Observable<WatchService> watchService(final File file,
final Kind<?>... kinds) {
return Observable.defer(new Func0<Observable<WatchService>>() {
@Override
public Observable<WatchService> call() {
... | public class class_name {
@SafeVarargs
public final static Observable<WatchService> watchService(final File file,
final Kind<?>... kinds) {
return Observable.defer(new Func0<Observable<WatchService>>() {
@Override
public Observable<WatchService> call() {
... |
public class class_name {
@Override
public String getRemoteAddr() {
String addr = this.connection.getRemoteHostAddress();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "getRemoteAddr: " + addr);
}
return addr;
} } | public class class_name {
@Override
public String getRemoteAddr() {
String addr = this.connection.getRemoteHostAddress();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "getRemoteAddr: " + addr); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static BitfinexOrderBookSymbol fromJSON(final JSONObject jsonObject) {
BitfinexCurrencyPair symbol = BitfinexCurrencyPair.fromSymbolString(jsonObject.getString("symbol"));
Precision prec = Precision.valueOf(jsonObject.getString("prec"));
Frequency freq = null;
Integer len = nul... | public class class_name {
public static BitfinexOrderBookSymbol fromJSON(final JSONObject jsonObject) {
BitfinexCurrencyPair symbol = BitfinexCurrencyPair.fromSymbolString(jsonObject.getString("symbol"));
Precision prec = Precision.valueOf(jsonObject.getString("prec"));
Frequency freq = null;
Integer len = nul... |
public class class_name {
protected void renderBitmapImage( BitmapMode mode , ImageBase image ) {
switch( mode ) {
case UNSAFE: {
if (image.getWidth() == bitmap.getWidth() && image.getHeight() == bitmap.getHeight())
ConvertBitmap.boofToBitmap(image, bitmap, bitmapTmp);
} break;
case DOUBLE_BUFFER:... | public class class_name {
protected void renderBitmapImage( BitmapMode mode , ImageBase image ) {
switch( mode ) {
case UNSAFE: {
if (image.getWidth() == bitmap.getWidth() && image.getHeight() == bitmap.getHeight())
ConvertBitmap.boofToBitmap(image, bitmap, bitmapTmp);
} break;
case DOUBLE_BUFFER:... |
public class class_name {
public void blockTillTerminated() {
while (!runState.compareAndSet(State.IDLE, State.REMOVED)) {
// wait and retry
LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(10));
if (Thread.currentThread().isInterrupted()) {
runState.set(State.REMOVED);
return;... | public class class_name {
public void blockTillTerminated() {
while (!runState.compareAndSet(State.IDLE, State.REMOVED)) {
// wait and retry
LockSupport.parkNanos(TimeUnit.MILLISECONDS.toNanos(10)); // depends on control dependency: [while], data = [none]
if (Thread.currentThread().isInterrupted(... |
public class class_name {
protected void showError() {
if (hasError()) {
m_label.getElement().getStyle().clearDisplay();
CmsFadeAnimation.fadeIn(m_label.getElement(), new Command() {
/**
* @see com.google.gwt.user.client.Command#execute()
... | public class class_name {
protected void showError() {
if (hasError()) {
m_label.getElement().getStyle().clearDisplay(); // depends on control dependency: [if], data = [none]
CmsFadeAnimation.fadeIn(m_label.getElement(), new Command() {
/**
* @see com.... |
public class class_name {
public boolean setSelectQuery(Rec recMaint, boolean bUpdateOnSelect)
{
if (recMaint == null)
{
return true; // BaseTable Set!
}
if (this.getMainRecord() != null)
if (this.getMainRecord() != recMaint)
if (this.getMa... | public class class_name {
public boolean setSelectQuery(Rec recMaint, boolean bUpdateOnSelect)
{
if (recMaint == null)
{
return true; // BaseTable Set! // depends on control dependency: [if], data = [none]
}
if (this.getMainRecord() != null)
if (this.getMa... |
public class class_name {
public static synchronized void releaseSharedResources(long timeout, TimeUnit unit) {
if (EVENT_LOOP != null) {
try {
EVENT_LOOP.shutdownGracefully().await(timeout, unit);
} catch (InterruptedException e) {
LoggerFactory.getLogge... | public class class_name {
public static synchronized void releaseSharedResources(long timeout, TimeUnit unit) {
if (EVENT_LOOP != null) {
try {
EVENT_LOOP.shutdownGracefully().await(timeout, unit); // depends on control dependency: [try], data = [none]
} catch (Interrupt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.