code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
protected Response.ResponseType getWebApplicationServiceResponseType(final WebApplicationService finalService) {
val request = HttpRequestUtils.getHttpServletRequestFromRequestAttributes();
val methodRequest = request != null ? request.getParameter(CasProtocolConstants.PARAMET... | public class class_name {
protected Response.ResponseType getWebApplicationServiceResponseType(final WebApplicationService finalService) {
val request = HttpRequestUtils.getHttpServletRequestFromRequestAttributes();
val methodRequest = request != null ? request.getParameter(CasProtocolConstants.PARAMET... |
public class class_name {
public static String concatenatePath(String path, String endpoint) {
String firstSegment = ensureAbsolutePath(path);
if (endpoint == null || endpoint.isEmpty()) {
return firstSegment;
}
StringBuilder sb = new StringBuilder(firstSegment);
if (path.charAt(path.length() - 1) != PAT... | public class class_name {
public static String concatenatePath(String path, String endpoint) {
String firstSegment = ensureAbsolutePath(path);
if (endpoint == null || endpoint.isEmpty()) {
return firstSegment; // depends on control dependency: [if], data = [none]
}
StringBuilder sb = new StringBuilder(firs... |
public class class_name {
private static void save(final SharedPreferences pPrefs, final SharedPreferences.Editor pEdit,
final Map<String, String> pMap, final String pPrefix) {
for (final String key : pPrefs.getAll().keySet()) {
if (key.startsWith(pPrefix)) {
... | public class class_name {
private static void save(final SharedPreferences pPrefs, final SharedPreferences.Editor pEdit,
final Map<String, String> pMap, final String pPrefix) {
for (final String key : pPrefs.getAll().keySet()) {
if (key.startsWith(pPrefix)) {
... |
public class class_name {
public void marshall(ServiceSpecification serviceSpecification, ProtocolMarshaller protocolMarshaller) {
if (serviceSpecification == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(ServiceSpecification serviceSpecification, ProtocolMarshaller protocolMarshaller) {
if (serviceSpecification == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
static DocumentBuilderFactory getDBF() {
DocumentBuilderFactory dbf = threadDBF.get();
if (dbf == null) {
dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
threadDBF.set(dbf);
}
return dbf;
} } | public class class_name {
static DocumentBuilderFactory getDBF() {
DocumentBuilderFactory dbf = threadDBF.get();
if (dbf == null) {
dbf = DocumentBuilderFactory.newInstance(); // depends on control dependency: [if], data = [none]
dbf.setNamespaceAware(true); // depends on contro... |
public class class_name {
public Property get(String key) {
for (Property property : properties) {
if (property.getKey().equals(key)) {
return property;
}
}
return null;
} } | public class class_name {
public Property get(String key) {
for (Property property : properties) {
if (property.getKey().equals(key)) {
return property; // depends on control dependency: [if], data = [none]
}
}
return null;
} } |
public class class_name {
@Override
public Object put(ChronoElement<?> key, Object value) {
Object obj = super.put(key, value);
if (
(key == null)
|| (obj == null)
|| obj.equals(value)
) {
return obj;
} else {
throw new A... | public class class_name {
@Override
public Object put(ChronoElement<?> key, Object value) {
Object obj = super.put(key, value);
if (
(key == null)
|| (obj == null)
|| obj.equals(value)
) {
return obj; // depends on control dependency: [if], ... |
public class class_name {
public static void toHex(byte b, Appendable buf) {
try {
int bi = _0XFF & b;
int c = '0' + (bi / SIXTEEN) % SIXTEEN;
if (c > '9') {
c = 'A' + (c - '0' - TEN);
}
buf.append((char) c);
c = '0' + bi % SIXTEEN;
if (c > '9') {
c = 'A' + (c - '0' - TEN);
}
buf.a... | public class class_name {
public static void toHex(byte b, Appendable buf) {
try {
int bi = _0XFF & b;
int c = '0' + (bi / SIXTEEN) % SIXTEEN;
if (c > '9') {
c = 'A' + (c - '0' - TEN); // depends on control dependency: [if], data = [(c]
}
buf.append((char) c); // depends on control dependency: [tr... |
public class class_name {
public static void decodePackbits(byte data[], byte[] dst) {
int srcCount = 0, dstCount = 0;
byte repeat, b;
try {
while (dstCount < dst.length) {
b = data[srcCount++];
if (b >= 0 && b <= 127) {
/... | public class class_name {
public static void decodePackbits(byte data[], byte[] dst) {
int srcCount = 0, dstCount = 0;
byte repeat, b;
try {
while (dstCount < dst.length) {
b = data[srcCount++]; // depends on control dependency: [while], data = [none]
... |
public class class_name {
@Override
public void startPrefixMapping(String prefix, String uri) {
m_prefixMap.put(prefix, uri);
if (m_inXMLMetadata && !m_gotAudit) {
m_localPrefixMap.put(prefix, uri);
m_prefixList.add(prefix);
}
} } | public class class_name {
@Override
public void startPrefixMapping(String prefix, String uri) {
m_prefixMap.put(prefix, uri);
if (m_inXMLMetadata && !m_gotAudit) {
m_localPrefixMap.put(prefix, uri); // depends on control dependency: [if], data = [none]
m_prefixList.add(prefi... |
public class class_name {
private void addToCache(BundleInfo bInfo) {
List<Resource> info = _cacheBySymbolicName.get(bInfo.symbolicName);
if (info == null) {
info = new ArrayList<Resource>();
info.add(bInfo);
}
info = _cacheBySymbolicName.putIfAbsent(bInfo.symbo... | public class class_name {
private void addToCache(BundleInfo bInfo) {
List<Resource> info = _cacheBySymbolicName.get(bInfo.symbolicName);
if (info == null) {
info = new ArrayList<Resource>(); // depends on control dependency: [if], data = [none]
info.add(bInfo); // depends on co... |
public class class_name {
private Node createCompilerDefaultValueOverridesVarNode(
Node sourceInformationNode) {
Node objNode = IR.objectlit().srcref(sourceInformationNode);
for (Entry<String, Node> entry : compilerDefaultValueOverrides.entrySet()) {
Node objKeyNode = IR.stringKey(entry.getKey())
... | public class class_name {
private Node createCompilerDefaultValueOverridesVarNode(
Node sourceInformationNode) {
Node objNode = IR.objectlit().srcref(sourceInformationNode);
for (Entry<String, Node> entry : compilerDefaultValueOverrides.entrySet()) {
Node objKeyNode = IR.stringKey(entry.getKey())
... |
public class class_name {
private EventChannelStruct getEventChannelStruct(String channelName) {
if (channel_map.containsKey(channelName)) {
return channel_map.get(channelName);
}
// Check with other TangoHosts using possibleTangoHosts as header
int index = channelName.inde... | public class class_name {
private EventChannelStruct getEventChannelStruct(String channelName) {
if (channel_map.containsKey(channelName)) {
return channel_map.get(channelName); // depends on control dependency: [if], data = [none]
}
// Check with other TangoHosts using possibleTan... |
public class class_name {
@SuppressWarnings("checkstyle:magicnumber")
private boolean setChild8(N newChild) {
if (this.child8 == newChild) {
return false;
}
if (this.child8 != null) {
this.child8.setParentNodeReference(null, true);
--this.notNullChildCount;
firePropertyChildRemoved(7, this.child8);... | public class class_name {
@SuppressWarnings("checkstyle:magicnumber")
private boolean setChild8(N newChild) {
if (this.child8 == newChild) {
return false; // depends on control dependency: [if], data = [none]
}
if (this.child8 != null) {
this.child8.setParentNodeReference(null, true); // depends on contr... |
public class class_name {
public void marshall(DescribePlacementRequest describePlacementRequest, ProtocolMarshaller protocolMarshaller) {
if (describePlacementRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(DescribePlacementRequest describePlacementRequest, ProtocolMarshaller protocolMarshaller) {
if (describePlacementRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public void setCombinable(boolean combinable) {
// sanity check
if (combinable && !GroupCombineFunction.class.isAssignableFrom(this.userFunction.getUserCodeClass())) {
throw new IllegalArgumentException("Cannot set a UDF as combinable if it does not implement the interface " +
Gro... | public class class_name {
public void setCombinable(boolean combinable) {
// sanity check
if (combinable && !GroupCombineFunction.class.isAssignableFrom(this.userFunction.getUserCodeClass())) {
throw new IllegalArgumentException("Cannot set a UDF as combinable if it does not implement the interface " +
Gro... |
public class class_name {
public static long copy(ReadableByteChannel in, WritableByteChannel out, int bufferSize, StreamProgress streamProgress) throws IORuntimeException {
Assert.notNull(in, "InputStream is null !");
Assert.notNull(out, "OutputStream is null !");
ByteBuffer byteBuffer = ByteBuffer.allocat... | public class class_name {
public static long copy(ReadableByteChannel in, WritableByteChannel out, int bufferSize, StreamProgress streamProgress) throws IORuntimeException {
Assert.notNull(in, "InputStream is null !");
Assert.notNull(out, "OutputStream is null !");
ByteBuffer byteBuffer = ByteBuffer.allocat... |
public class class_name {
private void setBindingName() // d681743
throws InjectionException
{
Map<String, String> ejbRefBindings = ivNameSpaceConfig.getEJBRefBindings();
if (ejbRefBindings != null)
{
ivBindingName = ejbRefBindings.get(getJndiName());
if (ivBind... | public class class_name {
private void setBindingName() // d681743
throws InjectionException
{
Map<String, String> ejbRefBindings = ivNameSpaceConfig.getEJBRefBindings();
if (ejbRefBindings != null)
{
ivBindingName = ejbRefBindings.get(getJndiName());
if (ivBind... |
public class class_name {
public void clear() {
queue.clear();
if (listener != null) {
for (V item : map.values()) {
listener.onRemove(item);
}
}
map.clear();
} } | public class class_name {
public void clear() {
queue.clear();
if (listener != null) {
for (V item : map.values()) {
listener.onRemove(item); // depends on control dependency: [for], data = [item]
}
}
map.clear();
} } |
public class class_name {
public final Package<DependsOn> findAllowedByName(final String packageName) {
final List<Package<DependsOn>> list = getAllowed();
for (final Package<DependsOn> pkg : list) {
if (pkg.getName().equals(packageName)) {
return pkg;
}
... | public class class_name {
public final Package<DependsOn> findAllowedByName(final String packageName) {
final List<Package<DependsOn>> list = getAllowed();
for (final Package<DependsOn> pkg : list) {
if (pkg.getName().equals(packageName)) {
return pkg;
// depends on con... |
public class class_name {
protected void retry(final Notification not) {
if (!pendings.contains(not.subscriber.getCallback())) {
// We don't have a current retry for this callback pending, so we
// will schedule the retry
pendings.add(not.subscriber.getCallback());
... | public class class_name {
protected void retry(final Notification not) {
if (!pendings.contains(not.subscriber.getCallback())) {
// We don't have a current retry for this callback pending, so we
// will schedule the retry
pendings.add(not.subscriber.getCallback()); // depend... |
public class class_name {
public void marshall(Relationship relationship, ProtocolMarshaller protocolMarshaller) {
if (relationship == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(relationship.get... | public class class_name {
public void marshall(Relationship relationship, ProtocolMarshaller protocolMarshaller) {
if (relationship == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(relationship.get... |
public class class_name {
@Override
public EClass getIfcStructuralSurfaceConnection() {
if (ifcStructuralSurfaceConnectionEClass == null) {
ifcStructuralSurfaceConnectionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(661);
}
return ifcStructura... | public class class_name {
@Override
public EClass getIfcStructuralSurfaceConnection() {
if (ifcStructuralSurfaceConnectionEClass == null) {
ifcStructuralSurfaceConnectionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(661);
// depends on control depe... |
public class class_name {
public boolean parse(final boolean fragment) throws FrameworkException {
init();
if (StringUtils.isNotBlank(code)) {
if (!isDeployment) {
logger.info("##### Start parsing code for page {} #####", new Object[]{name});
} else {
// a trailing slash to all void/self-closing ... | public class class_name {
public boolean parse(final boolean fragment) throws FrameworkException {
init();
if (StringUtils.isNotBlank(code)) {
if (!isDeployment) {
logger.info("##### Start parsing code for page {} #####", new Object[]{name}); // depends on control dependency: [if], data = [none]
} els... |
public class class_name {
public void delete() throws IOException {
int attempts = 0;
while (true) {
try {
acquireWriteLock();
try {
close();
if (osFile != null) {
Files.deleteIfExists(osFile);
}
} finally {
releaseWriteLock();
... | public class class_name {
public void delete() throws IOException {
int attempts = 0;
while (true) {
try {
acquireWriteLock(); // depends on control dependency: [try], data = [none]
try {
close(); // depends on control dependency: [try], data = [none]
if (osFile != nu... |
public class class_name {
public <E> List<E> unmodifiable(List<E> input)
{
if (input == null) {
return null;
}
return Collections.unmodifiableList(input);
} } | public class class_name {
public <E> List<E> unmodifiable(List<E> input)
{
if (input == null) {
return null; // depends on control dependency: [if], data = [none]
}
return Collections.unmodifiableList(input);
} } |
public class class_name {
@Override
public CPDefinition fetchByC_S_Last(long CProductId, int status,
OrderByComparator<CPDefinition> orderByComparator) {
int count = countByC_S(CProductId, status);
if (count == 0) {
return null;
}
List<CPDefinition> list = findByC_S(CProductId, status, count - 1,
c... | public class class_name {
@Override
public CPDefinition fetchByC_S_Last(long CProductId, int status,
OrderByComparator<CPDefinition> orderByComparator) {
int count = countByC_S(CProductId, status);
if (count == 0) {
return null; // depends on control dependency: [if], data = [none]
}
List<CPDefinition>... |
public class class_name {
private static int estimateQuotient(int u2, int u1, int u0, int v1, int v0)
{
// estimate qhat based on the first 2 digits of divisor divided by the first digit of a dividend
long u21 = combineInts(u2, u1);
long qhat;
if (u2 == v1) {
qhat = INT_... | public class class_name {
private static int estimateQuotient(int u2, int u1, int u0, int v1, int v0)
{
// estimate qhat based on the first 2 digits of divisor divided by the first digit of a dividend
long u21 = combineInts(u2, u1);
long qhat;
if (u2 == v1) {
qhat = INT_... |
public class class_name {
@Override
public WikipediaExample.Response<X> read(JsonReader reader) throws IOException {
WikipediaExample.Response<X> pages = new WikipediaExample.Response<X>();
reader.beginObject();
while (reader.hasNext()) {
String nextName = reader.nextName();
if ("query".equal... | public class class_name {
@Override
public WikipediaExample.Response<X> read(JsonReader reader) throws IOException {
WikipediaExample.Response<X> pages = new WikipediaExample.Response<X>();
reader.beginObject();
while (reader.hasNext()) {
String nextName = reader.nextName();
if ("query".equal... |
public class class_name {
public void marshall(StartContinuousExportRequest startContinuousExportRequest, ProtocolMarshaller protocolMarshaller) {
if (startContinuousExportRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(StartContinuousExportRequest startContinuousExportRequest, ProtocolMarshaller protocolMarshaller) {
if (startContinuousExportRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static List<Locale> getPossibleLocales(CmsObject cms, CmsResource currentResource) {
CmsSite site = OpenCms.getSiteManager().getSiteForRootPath(currentResource.getRootPath());
List<Locale> secondaryLocales = Lists.newArrayList();
Locale mainLocale = null;
... | public class class_name {
public static List<Locale> getPossibleLocales(CmsObject cms, CmsResource currentResource) {
CmsSite site = OpenCms.getSiteManager().getSiteForRootPath(currentResource.getRootPath());
List<Locale> secondaryLocales = Lists.newArrayList();
Locale mainLocale = null;
... |
public class class_name {
public int deQueue()
{
if ( size == 0 ) {
return -1;
}
//remove the first element
Entry o = head.next;
head.next = o.next;
o.next.prev = head;
//backup the data
int v = o.data;
size--;
... | public class class_name {
public int deQueue()
{
if ( size == 0 ) {
return -1; // depends on control dependency: [if], data = [none]
}
//remove the first element
Entry o = head.next;
head.next = o.next;
o.next.prev = head;
//back... |
public class class_name {
private String formatPhoneNumber() {
StringBuilder buffer = new StringBuilder();
buffer.append(this.countryCode);
buffer.append(' ');
buffer.append(this.areaCode);
buffer.append(' ');
buffer.append(this.localNumber);
if ((this.extension != null) && (this.extension... | public class class_name {
private String formatPhoneNumber() {
StringBuilder buffer = new StringBuilder();
buffer.append(this.countryCode);
buffer.append(' ');
buffer.append(this.areaCode);
buffer.append(' ');
buffer.append(this.localNumber);
if ((this.extension != null) && (this.extension... |
public class class_name {
@Override
public ICxDxSessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) {
if (clazz.equals(ClientCxDxSession.class)) {
ClientCxDxSessionDataLocalImpl data = new ClientCxDxSessionDataLocalImpl();
data.setSessionId(sessionId);
return... | public class class_name {
@Override
public ICxDxSessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) {
if (clazz.equals(ClientCxDxSession.class)) {
ClientCxDxSessionDataLocalImpl data = new ClientCxDxSessionDataLocalImpl();
data.setSessionId(sessionId);
// depends o... |
public class class_name {
private void updateMax(int idx, double v) {
AtomicLong current = max.getCurrent(idx);
long m = current.get();
while (v > Double.longBitsToDouble(m)) {
if (current.compareAndSet(m, Double.doubleToLongBits(v))) {
break;
}
m = current.get();
}
} } | public class class_name {
private void updateMax(int idx, double v) {
AtomicLong current = max.getCurrent(idx);
long m = current.get();
while (v > Double.longBitsToDouble(m)) {
if (current.compareAndSet(m, Double.doubleToLongBits(v))) {
break;
}
m = current.get(); // depends on co... |
public class class_name {
public Team createTeam(final String name, final boolean createApiKey) {
pm.currentTransaction().begin();
final Team team = new Team();
team.setName(name);
//todo assign permissions
pm.makePersistent(team);
pm.currentTransaction().commit();
... | public class class_name {
public Team createTeam(final String name, final boolean createApiKey) {
pm.currentTransaction().begin();
final Team team = new Team();
team.setName(name);
//todo assign permissions
pm.makePersistent(team);
pm.currentTransaction().commit();
... |
public class class_name {
public <T> T convert(final Object source, final Class<T> targetclass) {
if (source == null) {
return null;
}
final Class<?> sourceclass = source.getClass();
if (targetclass.isPrimitive() && String.class.isAssignableFrom(sourceclass)) {
... | public class class_name {
public <T> T convert(final Object source, final Class<T> targetclass) {
if (source == null) {
return null; // depends on control dependency: [if], data = [none]
}
final Class<?> sourceclass = source.getClass();
if (targetclass.isPrimitive() && Stri... |
public class class_name {
private final CClassLoader getLoaderByName(final String name) {
try {
CClassLoader loader = (CClassLoader) this.childrenMap.get(name);
if (loader == null) {
loader = CClassLoader.createLoader(this, name);
this.childrenMap.put(name, loader);
}
return loader;
} finall... | public class class_name {
private final CClassLoader getLoaderByName(final String name) {
try {
CClassLoader loader = (CClassLoader) this.childrenMap.get(name);
if (loader == null) {
loader = CClassLoader.createLoader(this, name); // depends on control dependency: [if], data = [none]
this.childrenMap... |
public class class_name {
public static Optional<Dependency> parseJarName(String sourceName, String jarName) {
if(SPECIAL_CASES.containsKey(jarName)) {
Dependency specialCase = SPECIAL_CASES.get(jarName);
return Optional.of(new Dependency(sourceName, specialCase.getName(), specialCase.getVersion()));
... | public class class_name {
public static Optional<Dependency> parseJarName(String sourceName, String jarName) {
if(SPECIAL_CASES.containsKey(jarName)) {
Dependency specialCase = SPECIAL_CASES.get(jarName);
return Optional.of(new Dependency(sourceName, specialCase.getName(), specialCase.getVersion())); /... |
public class class_name {
public static Triple<String, String, String> buldIndexes(final SQLiteEntity entity,
ArrayList<Pair<List<String>, Boolean>> indexList, boolean unique, int counter) {
Triple<String, String, String> result = new Triple<>();
result.value0 = "";
result.value1 = "";
result.value2 = "";
... | public class class_name {
public static Triple<String, String, String> buldIndexes(final SQLiteEntity entity,
ArrayList<Pair<List<String>, Boolean>> indexList, boolean unique, int counter) {
Triple<String, String, String> result = new Triple<>();
result.value0 = "";
result.value1 = "";
result.value2 = "";
... |
public class class_name {
public int download() {
try {
//if (url.startsWith("https://packagist.org") || url.startsWith("https://getcomposer.org")) {
if (url.startsWith("https://")) {
registerSSLContext(client.getBackend());
}
final HttpGet httpGet = new HttpGet(url);
if (httpGet.isAbo... | public class class_name {
public int download() {
try {
//if (url.startsWith("https://packagist.org") || url.startsWith("https://getcomposer.org")) {
if (url.startsWith("https://")) {
registerSSLContext(client.getBackend());
}
final HttpGet httpGet = new HttpGet(url);
if (httpGet.isAbo... |
public class class_name {
public void setUpgradeHistories(java.util.Collection<UpgradeHistory> upgradeHistories) {
if (upgradeHistories == null) {
this.upgradeHistories = null;
return;
}
this.upgradeHistories = new java.util.ArrayList<UpgradeHistory>(upgradeHistories);
... | public class class_name {
public void setUpgradeHistories(java.util.Collection<UpgradeHistory> upgradeHistories) {
if (upgradeHistories == null) {
this.upgradeHistories = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [... |
public class class_name {
protected void appendJsNode(HttpServletRequest request, Document document, DocumentFragment head, Js js, String relativeRoot) {
final String scriptPath = getElementPath(request, js, relativeRoot);
if (resourcesDao.isConditional(js)) {
Comment c = document.createCo... | public class class_name {
protected void appendJsNode(HttpServletRequest request, Document document, DocumentFragment head, Js js, String relativeRoot) {
final String scriptPath = getElementPath(request, js, relativeRoot);
if (resourcesDao.isConditional(js)) {
Comment c = document.createCo... |
public class class_name {
HistoricEra getPreferredEra(
HistoricDate hd,
PlainDate date
) {
if ((this.era == null) || date.isBefore(this.start) || date.isAfter(this.end)) {
return ((hd.compareTo(AD1) < 0) ? HistoricEra.BC : HistoricEra.AD);
} else if ((this.era == Histor... | public class class_name {
HistoricEra getPreferredEra(
HistoricDate hd,
PlainDate date
) {
if ((this.era == null) || date.isBefore(this.start) || date.isAfter(this.end)) {
return ((hd.compareTo(AD1) < 0) ? HistoricEra.BC : HistoricEra.AD); // depends on control dependency: [if]... |
public class class_name {
public static <T> boolean retainAll(Collection<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure condition) {
Iterator iter = InvokerHelper.asIterator(self);
BooleanClosureWrapper bcw = new BooleanClosureWrapper(condition);
boolean result = false;
... | public class class_name {
public static <T> boolean retainAll(Collection<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure condition) {
Iterator iter = InvokerHelper.asIterator(self);
BooleanClosureWrapper bcw = new BooleanClosureWrapper(condition);
boolean result = false;
... |
public class class_name {
public synchronized CmsListMetadata getMetadata(String listDialogName, String listId) {
getSettings();
String metaDataKey = listDialogName + listId;
if ((getMetadataCache().get(metaDataKey) == null) || getMetadataCache().get(metaDataKey).isVolatile()) {
i... | public class class_name {
public synchronized CmsListMetadata getMetadata(String listDialogName, String listId) {
getSettings();
String metaDataKey = listDialogName + listId;
if ((getMetadataCache().get(metaDataKey) == null) || getMetadataCache().get(metaDataKey).isVolatile()) {
i... |
public class class_name {
public static void disableSSLValidation() {
try {
SSLContext context = SSLContext.getInstance("SSL");
context.init(null, new TrustManager[]{new UnsafeTrustManager()}, null);
HttpsURLConnection.setDefaultSSLSocketFactory(context.getSocketFactory());
} catch (Exception... | public class class_name {
public static void disableSSLValidation() {
try {
SSLContext context = SSLContext.getInstance("SSL");
context.init(null, new TrustManager[]{new UnsafeTrustManager()}, null); // depends on control dependency: [try], data = [none]
HttpsURLConnection.setDefaultSSLSocketFact... |
public class class_name {
@SuppressWarnings("unchecked")
private static Method getMethodOfInterest(Object cmp, Class<? extends Annotation> ann) {
Class cmpClass = cmp.getClass();
Class infoClass = infoClass(cmpClass);
Method[] ms = infoClass.getMethods();
for (Method m : ms) {
... | public class class_name {
@SuppressWarnings("unchecked")
private static Method getMethodOfInterest(Object cmp, Class<? extends Annotation> ann) {
Class cmpClass = cmp.getClass();
Class infoClass = infoClass(cmpClass);
Method[] ms = infoClass.getMethods();
for (Method m : ms) {
... |
public class class_name {
public Object get(Id id, Mode mode) {
Object value = writeCache.get(id);
if (value == null) {
value = readCache.get(new CacheKey(id));
if (value != null && Mode.WRITE.equals(mode)) {
writeCache.put(id, value);
}
}
... | public class class_name {
public Object get(Id id, Mode mode) {
Object value = writeCache.get(id);
if (value == null) {
value = readCache.get(new CacheKey(id)); // depends on control dependency: [if], data = [none]
if (value != null && Mode.WRITE.equals(mode)) {
... |
public class class_name {
public void removeLocation(final String key, final CompletionListener completionListener) {
if (key == null) {
throw new NullPointerException();
}
DatabaseReference keyRef = this.getDatabaseRefForKey(key);
if (completionListener != null) {
... | public class class_name {
public void removeLocation(final String key, final CompletionListener completionListener) {
if (key == null) {
throw new NullPointerException();
}
DatabaseReference keyRef = this.getDatabaseRefForKey(key);
if (completionListener != null) {
... |
public class class_name {
@SuppressWarnings("unchecked")
private Map<String, Object> _getExecuteFlashMap(FacesContext context)
{
// Note that we don't have to synchronize here, because it is no problem
// if we create more SubKeyMaps with the same subkey, because they are
// totally equ... | public class class_name {
@SuppressWarnings("unchecked")
private Map<String, Object> _getExecuteFlashMap(FacesContext context)
{
// Note that we don't have to synchronize here, because it is no problem
// if we create more SubKeyMaps with the same subkey, because they are
// totally equ... |
public class class_name {
public static void shutdown(Duration timeout, ExecutorService... pools) {
// Prevent new tasks from being submitted.
for (ExecutorService pool : pools) {
pool.shutdown();
}
TimeoutTimer timer = new TimeoutTimer(timeout);
for (ExecutorServic... | public class class_name {
public static void shutdown(Duration timeout, ExecutorService... pools) {
// Prevent new tasks from being submitted.
for (ExecutorService pool : pools) {
pool.shutdown(); // depends on control dependency: [for], data = [pool]
}
TimeoutTimer timer =... |
public class class_name {
public static String removeLast(String original, String string) {
int lastIndexOf = original.lastIndexOf(string);
if (lastIndexOf == -1) {
return original;
}
return original.substring(0, lastIndexOf);
} } | public class class_name {
public static String removeLast(String original, String string) {
int lastIndexOf = original.lastIndexOf(string);
if (lastIndexOf == -1) {
return original;
// depends on control dependency: [if], data = [none]
}
return original.substring(0, lastIndexOf);
} } |
public class class_name {
private CompletableFuture<WriterFlushResult> flushOnce(TimeoutTimer timer) {
boolean hasDelete = this.hasDeletePending.get();
boolean hasMerge = this.mergeTransactionCount.get() > 0;
boolean hasSeal = this.hasSealPending.get();
boolean hasTruncate = this.trunca... | public class class_name {
private CompletableFuture<WriterFlushResult> flushOnce(TimeoutTimer timer) {
boolean hasDelete = this.hasDeletePending.get();
boolean hasMerge = this.mergeTransactionCount.get() > 0;
boolean hasSeal = this.hasSealPending.get();
boolean hasTruncate = this.trunca... |
public class class_name {
public ReplicationInstance withVpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups) {
if (this.vpcSecurityGroups == null) {
setVpcSecurityGroups(new java.util.ArrayList<VpcSecurityGroupMembership>(vpcSecurityGroups.length));
}
for (VpcSecurity... | public class class_name {
public ReplicationInstance withVpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups) {
if (this.vpcSecurityGroups == null) {
setVpcSecurityGroups(new java.util.ArrayList<VpcSecurityGroupMembership>(vpcSecurityGroups.length)); // depends on control dependency: ... |
public class class_name {
private String getFeatureString(Set<String> featureNames) {
StringBuilder featureBuilder = new StringBuilder();
if (featureNames != null) {
Iterator<String> iter = featureNames.iterator();
while (iter.hasNext()) {
featureBuilder.append(... | public class class_name {
private String getFeatureString(Set<String> featureNames) {
StringBuilder featureBuilder = new StringBuilder();
if (featureNames != null) {
Iterator<String> iter = featureNames.iterator();
while (iter.hasNext()) {
featureBuilder.append(... |
public class class_name {
public static boolean isSingleWord(String value) {
if (value == null) {
return false;
}
value = value.trim();
if (value.isEmpty()) {
return false;
}
return !SINGLE_WORD_PATTERN.matcher(value).matches();
} } | public class class_name {
public static boolean isSingleWord(String value) {
if (value == null) {
return false; // depends on control dependency: [if], data = [none]
}
value = value.trim();
if (value.isEmpty()) {
return false; // depends on control dependency: [i... |
public class class_name {
protected ActionFormProperty findProperty(String propertyName) {
final ActionFormProperty property = formMeta.getProperty(propertyName);
if (property == null) {
throwFormPropertyNotFoundException(propertyName);
}
return property;
} } | public class class_name {
protected ActionFormProperty findProperty(String propertyName) {
final ActionFormProperty property = formMeta.getProperty(propertyName);
if (property == null) {
throwFormPropertyNotFoundException(propertyName); // depends on control dependency: [if], data = [(prope... |
public class class_name {
private List<String> loadBalanceSuites(List<ForkedJvmInfo> jvmInfo,
TestsCollection testsCollection, List<SuiteBalancer> balancers) {
// Order test suites identically for balancers.
// and split into replicated and non-replicated suites.
Map<Boolean,List<String>> partit... | public class class_name {
private List<String> loadBalanceSuites(List<ForkedJvmInfo> jvmInfo,
TestsCollection testsCollection, List<SuiteBalancer> balancers) {
// Order test suites identically for balancers.
// and split into replicated and non-replicated suites.
Map<Boolean,List<String>> partit... |
public class class_name {
public static String getAdjustedSiteRoot(String siteRoot, String resourcename) {
if (resourcename.startsWith(CmsWorkplace.VFS_PATH_SYSTEM)
|| OpenCms.getSiteManager().startsWithShared(resourcename)
|| (resourcename.startsWith(CmsWorkplace.VFS_PATH_SITES) && !r... | public class class_name {
public static String getAdjustedSiteRoot(String siteRoot, String resourcename) {
if (resourcename.startsWith(CmsWorkplace.VFS_PATH_SYSTEM)
|| OpenCms.getSiteManager().startsWithShared(resourcename)
|| (resourcename.startsWith(CmsWorkplace.VFS_PATH_SITES) && !r... |
public class class_name {
public IClientBroadcastStream newBroadcastStream(Number streamId) {
if (isValidStreamId(streamId)) {
// get ClientBroadcastStream defined as a prototype in red5-common.xml
ClientBroadcastStream cbs = (ClientBroadcastStream) scope.getContext().getBean("client... | public class class_name {
public IClientBroadcastStream newBroadcastStream(Number streamId) {
if (isValidStreamId(streamId)) {
// get ClientBroadcastStream defined as a prototype in red5-common.xml
ClientBroadcastStream cbs = (ClientBroadcastStream) scope.getContext().getBean("client... |
public class class_name {
public java.util.List<StackEvent> getStackEvents() {
if (stackEvents == null) {
stackEvents = new com.amazonaws.internal.SdkInternalList<StackEvent>();
}
return stackEvents;
} } | public class class_name {
public java.util.List<StackEvent> getStackEvents() {
if (stackEvents == null) {
stackEvents = new com.amazonaws.internal.SdkInternalList<StackEvent>(); // depends on control dependency: [if], data = [none]
}
return stackEvents;
} } |
public class class_name {
public static <T> int compareTo(Comparable<T> object1, T object2) {
if (object1 == object2) {
return 0;
}
if (object1 == null) {
return Integer.MIN_VALUE;
}
if (object2 == null) {
return Integer.MAX_VALUE;
}
assert object1 != null && object2 != null;
return object1.co... | public class class_name {
public static <T> int compareTo(Comparable<T> object1, T object2) {
if (object1 == object2) {
return 0; // depends on control dependency: [if], data = [none]
}
if (object1 == null) {
return Integer.MIN_VALUE; // depends on control dependency: [if], data = [none]
}
if (object2 ... |
public class class_name {
public void setValue(Change change, Object value) {
if ((value instanceof String) && (!"string".equals(dataType))) {
try {
switch (dataType) {
case "bigInteger":
value = new BigInteger((String) value);
... | public class class_name {
public void setValue(Change change, Object value) {
if ((value instanceof String) && (!"string".equals(dataType))) {
try {
switch (dataType) {
case "bigInteger":
value = new BigInteger((String) value);
... |
public class class_name {
public void setSourceIds(java.util.Collection<String> sourceIds) {
if (sourceIds == null) {
this.sourceIds = null;
return;
}
this.sourceIds = new java.util.ArrayList<String>(sourceIds);
} } | public class class_name {
public void setSourceIds(java.util.Collection<String> sourceIds) {
if (sourceIds == null) {
this.sourceIds = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.source... |
public class class_name {
public static Map<String, String[]> params(){
SimpleHash params = new SimpleHash(RequestContext.getHttpRequest().getParameterMap());
if(getId() != null)
params.put("id", new String[]{getId()});
Map<String, String> userSegments = RequestContext.getRequestVo... | public class class_name {
public static Map<String, String[]> params(){
SimpleHash params = new SimpleHash(RequestContext.getHttpRequest().getParameterMap());
if(getId() != null)
params.put("id", new String[]{getId()});
Map<String, String> userSegments = RequestContext.getRequestVo... |
public class class_name {
public List<String> getBodyLanguages() {
Body defaultBody = getMessageBody(null);
List<String> languages = new ArrayList<String>();
for (Body body : getBodies()) {
if (!body.equals(defaultBody)) {
languages.add(body.language);
}
... | public class class_name {
public List<String> getBodyLanguages() {
Body defaultBody = getMessageBody(null);
List<String> languages = new ArrayList<String>();
for (Body body : getBodies()) {
if (!body.equals(defaultBody)) {
languages.add(body.language); // depends on ... |
public class class_name {
public void setColor(@ColorInt int color) {
this.color = color;
if (!style.isFullyLoaded()) {
// We are in progress of loading a new style
return;
}
fillExtrusionLayer.setProperties(fillExtrusionColor(color));
} } | public class class_name {
public void setColor(@ColorInt int color) {
this.color = color;
if (!style.isFullyLoaded()) {
// We are in progress of loading a new style
return; // depends on control dependency: [if], data = [none]
}
fillExtrusionLayer.setProperties(fillExtrusionColor(color));
... |
public class class_name {
@Override
public boolean matches(int lineNumber, String line) {
if (line.startsWith("atom ")
&& (line.endsWith(" s") || line.endsWith(" d") || line.endsWith(" t") || line.endsWith(" a"))) {
StringTokenizer tokenizer = new StringTokenizer(line, " ");
... | public class class_name {
@Override
public boolean matches(int lineNumber, String line) {
if (line.startsWith("atom ")
&& (line.endsWith(" s") || line.endsWith(" d") || line.endsWith(" t") || line.endsWith(" a"))) {
StringTokenizer tokenizer = new StringTokenizer(line, " ");
... |
public class class_name {
@Override
public int getIsotopeCount(IIsotope isotope) {
int count = 0;
Iterator<IMolecularFormula> componentIterator = components.iterator();
while (componentIterator.hasNext()) {
count += componentIterator.next().getIsotopeCount(isotope);
}
... | public class class_name {
@Override
public int getIsotopeCount(IIsotope isotope) {
int count = 0;
Iterator<IMolecularFormula> componentIterator = components.iterator();
while (componentIterator.hasNext()) {
count += componentIterator.next().getIsotopeCount(isotope); // depends o... |
public class class_name {
public void processRequest(final ODistributedRequest request, final boolean waitForAcceptingRequests) {
if (!running) {
throw new ODistributedException("Server is going down or is removing the database:'" + getDatabaseName() + "' discarding");
}
final ORemoteTask task = req... | public class class_name {
public void processRequest(final ODistributedRequest request, final boolean waitForAcceptingRequests) {
if (!running) {
throw new ODistributedException("Server is going down or is removing the database:'" + getDatabaseName() + "' discarding");
}
final ORemoteTask task = req... |
public class class_name {
public static TempFileProvider create(final String providerType, final ScheduledExecutorService executor, final boolean cleanExisting) throws IOException {
if (cleanExisting) {
try {
// The "clean existing" logic is as follows:
// 1) Rename ... | public class class_name {
public static TempFileProvider create(final String providerType, final ScheduledExecutorService executor, final boolean cleanExisting) throws IOException {
if (cleanExisting) {
try {
// The "clean existing" logic is as follows:
// 1) Rename ... |
public class class_name {
private void cloneAndSortMappings(IReaction reaction, IReaction copyOfReaction,
Map<IAtomContainer, int[]> permutationMap) {
// make a lookup for the indices of the atoms in the copy
final Map<IChemObject, Integer> indexMap = new HashMap<IChemObject, Integer>();
... | public class class_name {
private void cloneAndSortMappings(IReaction reaction, IReaction copyOfReaction,
Map<IAtomContainer, int[]> permutationMap) {
// make a lookup for the indices of the atoms in the copy
final Map<IChemObject, Integer> indexMap = new HashMap<IChemObject, Integer>();
... |
public class class_name {
private void placeLinearChains3D(IAtomContainer molecule, IAtomContainer startAtoms, AtomPlacer3D ap3d,
AtomTetrahedralLigandPlacer3D atlp3d, AtomPlacer atomPlacer) throws CDKException {
//logger.debug("****** PLACE LINEAR CHAINS ******");
IAtom dihPlacedAtom = nul... | public class class_name {
private void placeLinearChains3D(IAtomContainer molecule, IAtomContainer startAtoms, AtomPlacer3D ap3d,
AtomTetrahedralLigandPlacer3D atlp3d, AtomPlacer atomPlacer) throws CDKException {
//logger.debug("****** PLACE LINEAR CHAINS ******");
IAtom dihPlacedAtom = nul... |
public class class_name {
public void addJar(Path jar) {
if (jar == null) {
throw new IllegalArgumentException();
}
if (!userJars.contains(jar)) {
userJars.add(jar);
}
} } | public class class_name {
public void addJar(Path jar) {
if (jar == null) {
throw new IllegalArgumentException();
}
if (!userJars.contains(jar)) {
userJars.add(jar); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
protected String renderLink(String fullPath) {
StringBuilder sb = new StringBuilder();
// displayAlternateStyles
if (alternate) {
sb.append(PRE_TAG_ALTERNATE);
} else {
sb.append(PRE_TAG);
}
sb.append(media);
if (StringUtils.isNotEmpty(title)) {
sb.append(... | public class class_name {
@Override
protected String renderLink(String fullPath) {
StringBuilder sb = new StringBuilder();
// displayAlternateStyles
if (alternate) {
sb.append(PRE_TAG_ALTERNATE); // depends on control dependency: [if], data = [none]
} else {
sb.append(PRE_TAG); // depends on control d... |
public class class_name {
protected void removeExpired(Map<Integer, Context> contexts) {
Iterator<Context> contextsIter = contexts.values().iterator();
while (contextsIter.hasNext()) {
Context context = contextsIter.next();
if (context.completeMoment != null
... | public class class_name {
protected void removeExpired(Map<Integer, Context> contexts) {
Iterator<Context> contextsIter = contexts.values().iterator();
while (contextsIter.hasNext()) {
Context context = contextsIter.next();
if (context.completeMoment != null
... |
public class class_name {
public boolean isTransient() {
Transient ann = getAnnotation(Transient.class);
if(ann != null){
return true;
}
if(field != null){
return Modifier.isTransient(field.getModifiers());
}
return false;
} } | public class class_name {
public boolean isTransient() {
Transient ann = getAnnotation(Transient.class);
if(ann != null){
return true;
// depends on control dependency: [if], data = [none]
}
if(field != null){
return Modifier.isTransient(field.getModifiers(... |
public class class_name {
INodeDirectory addToParent( byte[] src,
INodeDirectory parentINode,
INode newNode,
boolean propagateModTime,
int childIndex) {
// NOTE: This does not update space counts... | public class class_name {
INodeDirectory addToParent( byte[] src,
INodeDirectory parentINode,
INode newNode,
boolean propagateModTime,
int childIndex) {
// NOTE: This does not update space counts... |
public class class_name {
public WriteCampaignRequest withAdditionalTreatments(WriteTreatmentResource... additionalTreatments) {
if (this.additionalTreatments == null) {
setAdditionalTreatments(new java.util.ArrayList<WriteTreatmentResource>(additionalTreatments.length));
}
for (Wri... | public class class_name {
public WriteCampaignRequest withAdditionalTreatments(WriteTreatmentResource... additionalTreatments) {
if (this.additionalTreatments == null) {
setAdditionalTreatments(new java.util.ArrayList<WriteTreatmentResource>(additionalTreatments.length)); // depends on control depe... |
public class class_name {
public static String decodeUnicodeString(String s) {
if (Strings.isNullOrEmpty(s)) return s;
int length = s.length();
StringBuilder sb = new StringBuilder(length);
Matcher m = UNICODE_PATTERN.matcher(s);
int begin = 0;
while (m.find()) {
int start = m.start();
... | public class class_name {
public static String decodeUnicodeString(String s) {
if (Strings.isNullOrEmpty(s)) return s;
int length = s.length();
StringBuilder sb = new StringBuilder(length);
Matcher m = UNICODE_PATTERN.matcher(s);
int begin = 0;
while (m.find()) {
int start = m.start();
... |
public class class_name {
public static String getContext(final HttpServletRequest request) {
String context = request.getContextPath();
if ((context == null) || (context.equals("."))) {
context = "";
}
return context;
} } | public class class_name {
public static String getContext(final HttpServletRequest request) {
String context = request.getContextPath();
if ((context == null) || (context.equals("."))) {
context = ""; // depends on control dependency: [if], data = [none]
}
return context;
} } |
public class class_name {
@Override
public boolean onTap(LatLong tapLatLong, Point layerXY, Point tapXY) {
this.expanded = !this.expanded;
double centerX = layerXY.x + this.getHorizontalOffset();
double centerY = layerXY.y + this.getVerticalOffset();
double radiusX = this.getBitma... | public class class_name {
@Override
public boolean onTap(LatLong tapLatLong, Point layerXY, Point tapXY) {
this.expanded = !this.expanded;
double centerX = layerXY.x + this.getHorizontalOffset();
double centerY = layerXY.y + this.getVerticalOffset();
double radiusX = this.getBitma... |
public class class_name {
@Nonnull
public static UpdateCenter createUpdateCenter(@CheckForNull UpdateCenterConfiguration config) {
String requiredClassName = SystemProperties.getString(UpdateCenter.class.getName()+".className", null);
if (requiredClassName == null) {
// Use the default ... | public class class_name {
@Nonnull
public static UpdateCenter createUpdateCenter(@CheckForNull UpdateCenterConfiguration config) {
String requiredClassName = SystemProperties.getString(UpdateCenter.class.getName()+".className", null);
if (requiredClassName == null) {
// Use the default ... |
public class class_name {
public static boolean isLongValue(final String value) {
try {
Long.parseLong(value);
return true;
} catch (final NumberFormatException ex) {
return false;
}
} } | public class class_name {
public static boolean isLongValue(final String value) {
try {
Long.parseLong(value); // depends on control dependency: [try], data = [none]
return true; // depends on control dependency: [try], data = [none]
} catch (final NumberFormatException ex) {
... |
public class class_name {
@Override
public Object setEL(PageContext pc, Collection.Key name, Object value) {
try {
return set(pc, name, value);
}
catch (PageException e) {
return null;
}
} } | public class class_name {
@Override
public Object setEL(PageContext pc, Collection.Key name, Object value) {
try {
return set(pc, name, value); // depends on control dependency: [try], data = [none]
}
catch (PageException e) {
return null;
} // depends on control dependency: [catch], data = [none]
... |
public class class_name {
void processPubRel(String clientID, int messageID) {
Log.trace("PUB --PUBREL--> SRV processPubRel invoked for clientID {} ad messageID {}", clientID, messageID);
String publishKey = String.format("%s%d", clientID, messageID);
PublishEvent evt = m_storageService.retriev... | public class class_name {
void processPubRel(String clientID, int messageID) {
Log.trace("PUB --PUBREL--> SRV processPubRel invoked for clientID {} ad messageID {}", clientID, messageID);
String publishKey = String.format("%s%d", clientID, messageID);
PublishEvent evt = m_storageService.retriev... |
public class class_name {
private PathMacros createPathMacroInstance() {
try {
return ClassUtil.newInstance(actionsManager.getPathMacroClass());
} catch (Exception ex) {
throw new MadvocException(ex);
}
} } | public class class_name {
private PathMacros createPathMacroInstance() {
try {
return ClassUtil.newInstance(actionsManager.getPathMacroClass()); // depends on control dependency: [try], data = [none]
} catch (Exception ex) {
throw new MadvocException(ex);
} // depends on control dependency: [catch], data =... |
public class class_name {
public void marshall(SigningMaterial signingMaterial, ProtocolMarshaller protocolMarshaller) {
if (signingMaterial == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(signing... | public class class_name {
public void marshall(SigningMaterial signingMaterial, ProtocolMarshaller protocolMarshaller) {
if (signingMaterial == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(signing... |
public class class_name {
public CmsFileExplorerSettings getTableSettings() {
CmsFileExplorerSettings fileTableState = new CmsFileExplorerSettings();
fileTableState.setSortAscending(m_fileTable.isSortAscending());
fileTableState.setSortColumnId((CmsResourceTableProperty)m_fileTable.getSortCon... | public class class_name {
public CmsFileExplorerSettings getTableSettings() {
CmsFileExplorerSettings fileTableState = new CmsFileExplorerSettings();
fileTableState.setSortAscending(m_fileTable.isSortAscending());
fileTableState.setSortColumnId((CmsResourceTableProperty)m_fileTable.getSortCon... |
public class class_name {
public static GrayU8 gaussian(GrayU8 input, @Nullable GrayU8 output, double sigma , int radius,
@Nullable GrayU8 storage ) {
output = InputSanityCheck.checkDeclare(input,output);
storage = InputSanityCheck.checkDeclare(input,storage,GrayU8.class);
boolean processed = BOverrid... | public class class_name {
public static GrayU8 gaussian(GrayU8 input, @Nullable GrayU8 output, double sigma , int radius,
@Nullable GrayU8 storage ) {
output = InputSanityCheck.checkDeclare(input,output);
storage = InputSanityCheck.checkDeclare(input,storage,GrayU8.class);
boolean processed = BOverrid... |
public class class_name {
public EEnum getFNCFNMRGLen() {
if (fncfnmrgLenEEnum == null) {
fncfnmrgLenEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(28);
}
return fncfnmrgLenEEnum;
} } | public class class_name {
public EEnum getFNCFNMRGLen() {
if (fncfnmrgLenEEnum == null) {
fncfnmrgLenEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(28); // depends on control dependency: [if], data = [none]
}
return fncfnmrgLenEEnum;
} } |
public class class_name {
private static String getToken(URI blobId) {
String[] parts = blobId.getSchemeSpecificPart().split("/");
if (parts.length == 2) {
return parts[1];
} else if (parts.length == 4) {
return parts[1] + "+" + uriDecode(parts[2]) + "+"
... | public class class_name {
private static String getToken(URI blobId) {
String[] parts = blobId.getSchemeSpecificPart().split("/");
if (parts.length == 2) {
return parts[1]; // depends on control dependency: [if], data = [none]
} else if (parts.length == 4) {
return parts... |
public class class_name {
@Override
public Optional<DigestCredentials> extract(WebContext context) {
final Optional<TokenCredentials> credentials = this.extractor.extract(context);
if (!credentials.isPresent()) {
return Optional.empty();
}
String token = credentials.get... | public class class_name {
@Override
public Optional<DigestCredentials> extract(WebContext context) {
final Optional<TokenCredentials> credentials = this.extractor.extract(context);
if (!credentials.isPresent()) {
return Optional.empty(); // depends on control dependency: [if], data = [n... |
public class class_name {
public void initializeCurrency() {
if (!currencyInitialized) {
sendConsoleMessage(Level.INFO, getLanguageManager().getString("loading_currency_manager"));
currencyManager = new CurrencyManager();
currencyInitialized = true;
sendConsoleMe... | public class class_name {
public void initializeCurrency() {
if (!currencyInitialized) {
sendConsoleMessage(Level.INFO, getLanguageManager().getString("loading_currency_manager")); // depends on control dependency: [if], data = [none]
currencyManager = new CurrencyManager(); // depends ... |
public class class_name {
private void recoverRoomsInRange(int begin, int end) {
if (end + 1 < this.nbrruns) {
copyValuesLength(this.valueslength, end + 1, this.valueslength, begin + 1,
this.nbrruns - 1 - end);
}
this.nbrruns -= end - begin;
} } | public class class_name {
private void recoverRoomsInRange(int begin, int end) {
if (end + 1 < this.nbrruns) {
copyValuesLength(this.valueslength, end + 1, this.valueslength, begin + 1,
this.nbrruns - 1 - end); // depends on control dependency: [if], data = [none]
}
this.nbrruns -= end - be... |
public class class_name {
@Override
public void search(String words, Collection<IHelpSet> helpSets, IHelpSearchListener listener) {
try {
if (queryBuilder == null) {
initQueryBuilder();
}
Query searchForWords = queryBuilder.createBooleanQuery... | public class class_name {
@Override
public void search(String words, Collection<IHelpSet> helpSets, IHelpSearchListener listener) {
try {
if (queryBuilder == null) {
initQueryBuilder(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public String validateValue(final UIValue _value)
{
String ret = null;
try {
if (_value.getDbValue() != null) {
Long.valueOf(String.valueOf(_value.getDbValue()));
}
} catch (final NumberFormatException e) {
... | public class class_name {
@Override
public String validateValue(final UIValue _value)
{
String ret = null;
try {
if (_value.getDbValue() != null) {
Long.valueOf(String.valueOf(_value.getDbValue())); // depends on control dependency: [if], data = [(_value.getDbValue()... |
public class class_name {
public static void shredInputStream(final INodeWriteTrx wtx, final InputStream value,
final EShredderInsert child) {
final XMLInputFactory factory = XMLInputFactory.newInstance();
factory.setProperty(XMLInputFactory.SUPPORT_DTD, false);
XMLEventReader parser;
... | public class class_name {
public static void shredInputStream(final INodeWriteTrx wtx, final InputStream value,
final EShredderInsert child) {
final XMLInputFactory factory = XMLInputFactory.newInstance();
factory.setProperty(XMLInputFactory.SUPPORT_DTD, false);
XMLEventReader parser;
... |
public class class_name {
protected void checkReferencesToRemovedElement(final String id) {
if (id != null) {
//NOTE: We only use an RPC call here to check for references on the server side. If, at a later point, we decide
//to add a save button again, this will have to be changed, bec... | public class class_name {
protected void checkReferencesToRemovedElement(final String id) {
if (id != null) {
//NOTE: We only use an RPC call here to check for references on the server side. If, at a later point, we decide
//to add a save button again, this will have to be changed, bec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.