code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private void addFilePathMapping(BundlePathMapping bundlePathMapping, Set<String> paths) {
for (String path : paths) {
addFilePathMapping(bundlePathMapping, path);
}
} } | public class class_name {
private void addFilePathMapping(BundlePathMapping bundlePathMapping, Set<String> paths) {
for (String path : paths) {
addFilePathMapping(bundlePathMapping, path); // depends on control dependency: [for], data = [path]
}
} } |
public class class_name {
private boolean removeMapping(Object key, Object value) {
Object k = maskNull(key);
Object[] tab = table;
int len = tab.length;
int i = hash(k, len);
while (true) {
Object item = tab[i];
if (item == k) {
if (tab[... | public class class_name {
private boolean removeMapping(Object key, Object value) {
Object k = maskNull(key);
Object[] tab = table;
int len = tab.length;
int i = hash(k, len);
while (true) {
Object item = tab[i];
if (item == k) {
if (tab[... |
public class class_name {
public static boolean canDoOpDirectly(INDArray x, INDArray y) {
if (x.isVector())
return true;
if (x.ordering() != y.ordering())
return false; //other than vectors, elements in f vs. c NDArrays will never line up
if (x.elementWiseStride() < 1 ||... | public class class_name {
public static boolean canDoOpDirectly(INDArray x, INDArray y) {
if (x.isVector())
return true;
if (x.ordering() != y.ordering())
return false; //other than vectors, elements in f vs. c NDArrays will never line up
if (x.elementWiseStride() < 1 ||... |
public class class_name {
public static StringBuffer pack(SerializedRecord sr) {
StringBuffer sb = new StringBuffer();
ArrayList<String> keys = new ArrayList<String>(sr.fields.keySet());
if (sr.isValid())
SerializedRecord.arrangeKeys(keys);
for (int i = 0; i < keys.size(); i++) {
String ... | public class class_name {
public static StringBuffer pack(SerializedRecord sr) {
StringBuffer sb = new StringBuffer();
ArrayList<String> keys = new ArrayList<String>(sr.fields.keySet());
if (sr.isValid())
SerializedRecord.arrangeKeys(keys);
for (int i = 0; i < keys.size(); i++) {
String ... |
public class class_name {
public boolean isReadableProperty(String propertyName) {
if (PropertyAccessorUtils.isIndexedProperty(propertyName)) {
String rootProperty = getRootPropertyName(propertyName);
String parentProperty = getParentPropertyName(propertyName);
return isReadableProperty(rootProperty)
&... | public class class_name {
public boolean isReadableProperty(String propertyName) {
if (PropertyAccessorUtils.isIndexedProperty(propertyName)) {
String rootProperty = getRootPropertyName(propertyName);
String parentProperty = getParentPropertyName(propertyName);
return isReadableProperty(rootProperty)
&... |
public class class_name {
public <T> Converter<ResponseBody, T> nextResponseBodyConverter(
@Nullable Converter.Factory skipPast, Type type, Annotation[] annotations) {
checkNotNull(type, "type == null");
checkNotNull(annotations, "annotations == null");
int start = converterFactories.indexOf(skipPas... | public class class_name {
public <T> Converter<ResponseBody, T> nextResponseBodyConverter(
@Nullable Converter.Factory skipPast, Type type, Annotation[] annotations) {
checkNotNull(type, "type == null");
checkNotNull(annotations, "annotations == null");
int start = converterFactories.indexOf(skipPas... |
public class class_name {
private void parse(KXmlParser parser, DocumentImpl document, Node node,
int endToken) throws XmlPullParserException, IOException {
int token = parser.getEventType();
/*
* The main parsing loop. The precondition is that we are already on the
* to... | public class class_name {
private void parse(KXmlParser parser, DocumentImpl document, Node node,
int endToken) throws XmlPullParserException, IOException {
int token = parser.getEventType();
/*
* The main parsing loop. The precondition is that we are already on the
* to... |
public class class_name {
static int computeCombinedBufferItemCapacity(final int k, final long n) {
final int totLevels = computeNumLevelsNeeded(k, n);
if (totLevels == 0) {
final int bbItems = computeBaseBufferItems(k, n);
return Math.max(2 * DoublesSketch.MIN_K, ceilingPowerOf2(bbItems));
}
... | public class class_name {
static int computeCombinedBufferItemCapacity(final int k, final long n) {
final int totLevels = computeNumLevelsNeeded(k, n);
if (totLevels == 0) {
final int bbItems = computeBaseBufferItems(k, n);
return Math.max(2 * DoublesSketch.MIN_K, ceilingPowerOf2(bbItems)); // depe... |
public class class_name {
private boolean predicateApplies(Subscriber<?> s, Object message) {
if (s instanceof PredicatedSubscriber
&& !((PredicatedSubscriber<?>) s).appliesO(message)) {
return false;
}
return true;
} } | public class class_name {
private boolean predicateApplies(Subscriber<?> s, Object message) {
if (s instanceof PredicatedSubscriber
&& !((PredicatedSubscriber<?>) s).appliesO(message)) {
return false;
// depends on control dependency: [if], data = [none]
}
return true;
} } |
public class class_name {
public int getExpandedTypeID(String namespace, String localName, int type, boolean searchOnly)
{
if (null == namespace)
namespace = "";
if (null == localName)
localName = "";
// Calculate the hash code
int hash = type + namespace.hashCode() + localName.hashC... | public class class_name {
public int getExpandedTypeID(String namespace, String localName, int type, boolean searchOnly)
{
if (null == namespace)
namespace = "";
if (null == localName)
localName = "";
// Calculate the hash code
int hash = type + namespace.hashCode() + localName.hashC... |
public class class_name {
static List<HostSpec> getCandidateHosts(HostSpec[] hostSpecs,
HostRequirement targetServerType, long hostRecheckMillis) {
List<HostSpec> candidates = new ArrayList<HostSpec>(hostSpecs.length);
long latestAllowedUpdate = currentTimeMillis() - hostRecheckMillis;
synchronized (... | public class class_name {
static List<HostSpec> getCandidateHosts(HostSpec[] hostSpecs,
HostRequirement targetServerType, long hostRecheckMillis) {
List<HostSpec> candidates = new ArrayList<HostSpec>(hostSpecs.length);
long latestAllowedUpdate = currentTimeMillis() - hostRecheckMillis;
synchronized (... |
public class class_name {
private void instrumentConstructor(MutableClass mutableClass, MethodNode method) {
makeMethodPrivate(method);
if (mutableClass.containsStubs) {
// method.instructions just throws a `stub!` exception, replace it with something anodyne...
method.instructions.clear();
... | public class class_name {
private void instrumentConstructor(MutableClass mutableClass, MethodNode method) {
makeMethodPrivate(method);
if (mutableClass.containsStubs) {
// method.instructions just throws a `stub!` exception, replace it with something anodyne...
method.instructions.clear(); // dep... |
public class class_name {
@Override
public void close() {
if ( content != null ) {
try {
content.close();
} catch (IOException e) {
logger.error("Failed to close underlying InputStream",e);
throw new MarkLogicIOException(e);
}
}
} } | public class class_name {
@Override
public void close() {
if ( content != null ) {
try {
content.close(); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
logger.error("Failed to close underlying InputStream",e);
throw new MarkLogicIOException(e... |
public class class_name {
@Override
public void rollback(Xid xid) throws XAException {
synchronized (cpoXaStateMap) {
CpoXaState<T> cpoXaState = cpoXaStateMap.getXidStateMap().get(xid);
if (cpoXaState == null)
throw CpoXaError.createXAException(CpoXaError.XAER_NOTA, "Unknown XID");
if... | public class class_name {
@Override
public void rollback(Xid xid) throws XAException {
synchronized (cpoXaStateMap) {
CpoXaState<T> cpoXaState = cpoXaStateMap.getXidStateMap().get(xid);
if (cpoXaState == null)
throw CpoXaError.createXAException(CpoXaError.XAER_NOTA, "Unknown XID");
if... |
public class class_name {
private String setXmlPreambleAndDTD(final String xml, final String dtdFileName, final String entities, final String dtdRootEleName) {
// Check if the XML already has a DOCTYPE. If it does then replace the values and remove entities for processing
final Matcher matcher = DOCTYP... | public class class_name {
private String setXmlPreambleAndDTD(final String xml, final String dtdFileName, final String entities, final String dtdRootEleName) {
// Check if the XML already has a DOCTYPE. If it does then replace the values and remove entities for processing
final Matcher matcher = DOCTYP... |
public class class_name {
private void setProperties(Properties properties) {
Props props = new Props(properties);
if(props.containsKey(BOOTSTRAP_URLS_PROPERTY)) {
setBootstrapURLs(props.getList(BOOTSTRAP_URLS_PROPERTY));
}
if(props.containsKey(FAT_CLIENTS_CONFIG_SOURCE)) {... | public class class_name {
private void setProperties(Properties properties) {
Props props = new Props(properties);
if(props.containsKey(BOOTSTRAP_URLS_PROPERTY)) {
setBootstrapURLs(props.getList(BOOTSTRAP_URLS_PROPERTY)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public Inventory queryInventory(boolean querySkuDetails, List<String> moreItemSkus,
List<String> moreSubsSkus) throws IabException {
checkSetupDone("queryInventory");
try {
Inventory inv = new Inventory();
int r = que... | public class class_name {
public Inventory queryInventory(boolean querySkuDetails, List<String> moreItemSkus,
List<String> moreSubsSkus) throws IabException {
checkSetupDone("queryInventory");
try {
Inventory inv = new Inventory();
int r = que... |
public class class_name {
public void marshall(GetExportJobRequest getExportJobRequest, ProtocolMarshaller protocolMarshaller) {
if (getExportJobRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(GetExportJobRequest getExportJobRequest, ProtocolMarshaller protocolMarshaller) {
if (getExportJobRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
private void takeSnapshot() {
state.checkThread();
// If no snapshot has been taken, take a snapshot and hold it in memory until the complete
// index has met the snapshot index. Note that this will be executed in the state machine thread.
// Snapshots are only taken of the s... | public class class_name {
private void takeSnapshot() {
state.checkThread();
// If no snapshot has been taken, take a snapshot and hold it in memory until the complete
// index has met the snapshot index. Note that this will be executed in the state machine thread.
// Snapshots are only taken of the s... |
public class class_name {
protected Integer parseIntString(String string, boolean abortOnError, int def)
throws TransformationOperationException {
Integer integer = def;
if (string == null) {
logger.debug("Given string is empty so the default value is taken.");
}
try... | public class class_name {
protected Integer parseIntString(String string, boolean abortOnError, int def)
throws TransformationOperationException {
Integer integer = def;
if (string == null) {
logger.debug("Given string is empty so the default value is taken.");
}
try... |
public class class_name {
@Override
public int read (byte[] b, int off, int len) throws IOException {
if (closed) {
throw new IOException("Attempted read from closed stream.");
}
if (eof) {
return -1;
}
if (pos >= chunkSize) {
nextChunk(... | public class class_name {
@Override
public int read (byte[] b, int off, int len) throws IOException {
if (closed) {
throw new IOException("Attempted read from closed stream.");
}
if (eof) {
return -1;
}
if (pos >= chunkSize) {
nextChunk(... |
public class class_name {
public void add(final Param key, final Integer value) {
if (value != null && value > 0) {
parameters.put(key, String.valueOf(value));
}
} } | public class class_name {
public void add(final Param key, final Integer value) {
if (value != null && value > 0) {
parameters.put(key, String.valueOf(value)); // depends on control dependency: [if], data = [(value]
}
} } |
public class class_name {
public final void commit(final CacheEntry entry, final Flag operation, int segment,
boolean l1Only, InvocationContext ctx) {
if (trace) {
log.tracef("Trying to commit. Key=%s. Operation Flag=%s, L1 write/invalidation=%s", toStr(entry.getKey()),
... | public class class_name {
public final void commit(final CacheEntry entry, final Flag operation, int segment,
boolean l1Only, InvocationContext ctx) {
if (trace) {
log.tracef("Trying to commit. Key=%s. Operation Flag=%s, L1 write/invalidation=%s", toStr(entry.getKey()),
... |
public class class_name {
@SuppressWarnings("rawtypes")
public List blpop(int timeout, Object... keys) {
Jedis jedis = getJedis();
try {
List<byte[]> data = jedis.blpop(timeout, keysToBytesArray(keys));
return keyValueListFromBytesList(data);
}
finally {close(jedis);}
} } | public class class_name {
@SuppressWarnings("rawtypes")
public List blpop(int timeout, Object... keys) {
Jedis jedis = getJedis();
try {
List<byte[]> data = jedis.blpop(timeout, keysToBytesArray(keys));
return keyValueListFromBytesList(data);
// depends on control dependency: [try], data = [none]
}
... |
public class class_name {
public CmsLinkBean getLinkBean() {
String link = m_textbox.getText();
if (CmsStringUtil.isEmptyOrWhitespaceOnly(link)) {
return null;
}
return new CmsLinkBean(m_textbox.getText(), m_internal);
} } | public class class_name {
public CmsLinkBean getLinkBean() {
String link = m_textbox.getText();
if (CmsStringUtil.isEmptyOrWhitespaceOnly(link)) {
return null; // depends on control dependency: [if], data = [none]
}
return new CmsLinkBean(m_textbox.getText(), m_internal);
... |
public class class_name {
public synchronized int co_joinCoroutineSet(int coroutineID)
{
if(coroutineID>=0)
{
if(coroutineID>=m_unreasonableId || m_activeIDs.get(coroutineID))
return -1;
}
else
{
// What I want is "Find first clear bit". That doesn't exist.
... | public class class_name {
public synchronized int co_joinCoroutineSet(int coroutineID)
{
if(coroutineID>=0)
{
if(coroutineID>=m_unreasonableId || m_activeIDs.get(coroutineID))
return -1;
}
else
{
// What I want is "Find first clear bit". That doesn't exist.
... |
public class class_name {
protected SQLException closeWrapper(boolean closeWrapperOnly)
{
// Indicate the statement is closed by setting the parent object's statement to null.
// This will allow us to be garbage collected.
try // Connection wrapper can close at any time.
{
... | public class class_name {
protected SQLException closeWrapper(boolean closeWrapperOnly)
{
// Indicate the statement is closed by setting the parent object's statement to null.
// This will allow us to be garbage collected.
try // Connection wrapper can close at any time.
{
... |
public class class_name {
final void buildBloomFilterForBucket(int bucketInSegmentPos, MemorySegment bucket, HashPartition<BT, PT> p) {
final int count = bucket.getShort(bucketInSegmentPos + HEADER_COUNT_OFFSET);
if (count <= 0) {
return;
}
int[] hashCodes = new int[count];
// As the hashcode and bloom f... | public class class_name {
final void buildBloomFilterForBucket(int bucketInSegmentPos, MemorySegment bucket, HashPartition<BT, PT> p) {
final int count = bucket.getShort(bucketInSegmentPos + HEADER_COUNT_OFFSET);
if (count <= 0) {
return; // depends on control dependency: [if], data = [none]
}
int[] hashCo... |
public class class_name {
public <U> Try<U> flatMap(Function<? super V, Try<U>> mapper) {
if (isSuccess()) {
return mapper.apply(value);
}
return failed(this.throwable);
} } | public class class_name {
public <U> Try<U> flatMap(Function<? super V, Try<U>> mapper) {
if (isSuccess()) {
return mapper.apply(value); // depends on control dependency: [if], data = [none]
}
return failed(this.throwable);
} } |
public class class_name {
public boolean isValid(
ChronoElement<Integer> element,
int value
) {
IntElementRule<T> intRule = this.getChronology().getIntegerRule(element);
if (intRule != null) {
return intRule.isValid(this.getContext(), value);
}
return ... | public class class_name {
public boolean isValid(
ChronoElement<Integer> element,
int value
) {
IntElementRule<T> intRule = this.getChronology().getIntegerRule(element);
if (intRule != null) {
return intRule.isValid(this.getContext(), value); // depends on control depe... |
public class class_name {
public void setCloudWatchLoggingOptionDescriptions(java.util.Collection<CloudWatchLoggingOptionDescription> cloudWatchLoggingOptionDescriptions) {
if (cloudWatchLoggingOptionDescriptions == null) {
this.cloudWatchLoggingOptionDescriptions = null;
return;
... | public class class_name {
public void setCloudWatchLoggingOptionDescriptions(java.util.Collection<CloudWatchLoggingOptionDescription> cloudWatchLoggingOptionDescriptions) {
if (cloudWatchLoggingOptionDescriptions == null) {
this.cloudWatchLoggingOptionDescriptions = null; // depends on control depe... |
public class class_name {
public GetGlue setIsDebug(boolean isDebug) {
this.isDebug = isDebug;
RestAdapter.LogLevel logLevel = isDebug ? RestAdapter.LogLevel.FULL : RestAdapter.LogLevel.NONE;
if (restAdapter != null) {
restAdapter.setLogLevel(logLevel);
}
if (restAd... | public class class_name {
public GetGlue setIsDebug(boolean isDebug) {
this.isDebug = isDebug;
RestAdapter.LogLevel logLevel = isDebug ? RestAdapter.LogLevel.FULL : RestAdapter.LogLevel.NONE;
if (restAdapter != null) {
restAdapter.setLogLevel(logLevel); // depends on control depend... |
public class class_name {
private SIDestinationAddress[] getDestinationAddresses(
DestinationNamePattern destinationNamePattern,
DestinationType destinationType,
... | public class class_name {
private SIDestinationAddress[] getDestinationAddresses(
DestinationNamePattern destinationNamePattern,
DestinationType destinationType,
... |
public class class_name {
public static final void fillTimeToPool(
IWord[] wPool, String timeVal)
{
String[] p = timeVal.split(":");
TimeUtil.fillDateTimePool(wPool, TimeUtil.DATETIME_H,
new Word(p[0]+"点", IWord.T_CJK_WORD, Entity.E_TIME_H_A));
TimeUtil.fillDate... | public class class_name {
public static final void fillTimeToPool(
IWord[] wPool, String timeVal)
{
String[] p = timeVal.split(":");
TimeUtil.fillDateTimePool(wPool, TimeUtil.DATETIME_H,
new Word(p[0]+"点", IWord.T_CJK_WORD, Entity.E_TIME_H_A));
TimeUtil.fillDate... |
public class class_name {
@JsonInclude(Include.NON_EMPTY)
@JsonProperty("id")
public String getJsonId() {
if (!EntityIdValue.SITE_LOCAL.equals(this.siteIri)) {
return this.entityId;
} else {
return null;
}
} } | public class class_name {
@JsonInclude(Include.NON_EMPTY)
@JsonProperty("id")
public String getJsonId() {
if (!EntityIdValue.SITE_LOCAL.equals(this.siteIri)) {
return this.entityId; // depends on control dependency: [if], data = [none]
} else {
return null; // depends on control dependency: [if], data = [n... |
public class class_name {
String readWord(BufferedReader raf) throws IOException
{
while (true)
{
// check the buffer first
if (wbp < wordsBuffer.length)
{
return wordsBuffer[wbp++];
}
String line = raf.readLine();
... | public class class_name {
String readWord(BufferedReader raf) throws IOException
{
while (true)
{
// check the buffer first
if (wbp < wordsBuffer.length)
{
return wordsBuffer[wbp++]; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@ShellMethod(key = "validate-ldap", value = "Test connections to an LDAP server to verify connectivity, SSL, etc")
public static void validateLdap(
@ShellOption(value = {"url"},
help = "LDAP URL to test, comma-separated.") final String url,
@ShellOption(value =... | public class class_name {
@ShellMethod(key = "validate-ldap", value = "Test connections to an LDAP server to verify connectivity, SSL, etc")
public static void validateLdap(
@ShellOption(value = {"url"},
help = "LDAP URL to test, comma-separated.") final String url,
@ShellOption(value =... |
public class class_name {
public Observable<ServiceResponse<DatabaseAccountListReadOnlyKeysResultInner>> listReadOnlyKeysWithServiceResponseAsync(String resourceGroupName, String accountName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.sub... | public class class_name {
public Observable<ServiceResponse<DatabaseAccountListReadOnlyKeysResultInner>> listReadOnlyKeysWithServiceResponseAsync(String resourceGroupName, String accountName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.sub... |
public class class_name {
private static void collectSpansPositionsAndTokens(
Map<MtasSpanQuery, SpanWeight> spansQueryWeight, IndexSearcher searcher,
CodecInfo mtasCodecInfo, LeafReader r, LeafReaderContext lrc,
String field, Terms t, List<Integer> docSet, List<Integer> docList,
ComponentField... | public class class_name {
private static void collectSpansPositionsAndTokens(
Map<MtasSpanQuery, SpanWeight> spansQueryWeight, IndexSearcher searcher,
CodecInfo mtasCodecInfo, LeafReader r, LeafReaderContext lrc,
String field, Terms t, List<Integer> docSet, List<Integer> docList,
ComponentField... |
public class class_name {
private Node<E> findRootOrCreateNode(E e) {
Node<E> node = elmap.get(e);
if (node != null) {
return findRoot(node);
}
node = new Node<E>(e);
elmap.put(e, node);
return node;
} } | public class class_name {
private Node<E> findRootOrCreateNode(E e) {
Node<E> node = elmap.get(e);
if (node != null) {
return findRoot(node); // depends on control dependency: [if], data = [(node]
}
node = new Node<E>(e);
elmap.put(e, node);
return node;
} } |
public class class_name {
public boolean link(String url, String pkglisturl, Reporter reporter, boolean linkoffline)
throws DocFileIOException {
this.linkoffline = linkoffline;
try {
url = adjustEndFileSeparator(url);
if (isUrl(pkglisturl)) {
read... | public class class_name {
public boolean link(String url, String pkglisturl, Reporter reporter, boolean linkoffline)
throws DocFileIOException {
this.linkoffline = linkoffline;
try {
url = adjustEndFileSeparator(url);
if (isUrl(pkglisturl)) {
read... |
public class class_name {
@Override
public DBObject getUpdateClause() {
if (clear) {
// If clear() was called, updates will either be an empty Map or added items with prefix-less keys
return new BasicDBObject($set.name(), new BasicDBObject(getNameFromPrefix(), updates));
} e... | public class class_name {
@Override
public DBObject getUpdateClause() {
if (clear) {
// If clear() was called, updates will either be an empty Map or added items with prefix-less keys
return new BasicDBObject($set.name(), new BasicDBObject(getNameFromPrefix(), updates)); // depends ... |
public class class_name {
private void checkContainerState(String methodName, ContainerState minimalState) {
if (nonPortableMode) {
return;
}
if (this.container == null) {
this.container = Container.instance(manager);
}
ContainerState state = container.g... | public class class_name {
private void checkContainerState(String methodName, ContainerState minimalState) {
if (nonPortableMode) {
return; // depends on control dependency: [if], data = [none]
}
if (this.container == null) {
this.container = Container.instance(manager);... |
public class class_name {
private void processStructLogExpressions(final RoundEnvironment roundEnv) {
for (Element element : roundEnv.getRootElements()) {
final Map<Name, StructLoggerFieldContext> fields = new HashMap<>();
for (Element enclosed : element.getEnclosedElements()) {
... | public class class_name {
private void processStructLogExpressions(final RoundEnvironment roundEnv) {
for (Element element : roundEnv.getRootElements()) {
final Map<Name, StructLoggerFieldContext> fields = new HashMap<>();
for (Element enclosed : element.getEnclosedElements()) {
... |
public class class_name {
public EClass getPTD1() {
if (ptd1EClass == null) {
ptd1EClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(318);
}
return ptd1EClass;
} } | public class class_name {
public EClass getPTD1() {
if (ptd1EClass == null) {
ptd1EClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(318); // depends on control dependency: [if], data = [none]
}
return ptd1EClass;
} } |
public class class_name {
private void generateMTFValues() {
final int lastShadow = this.last;
final Data dataShadow = this.data;
final boolean[] inUse = dataShadow.inUse;
final byte[] block = dataShadow.block;
final int[] fmap = dataShadow.fmap;
final char[] sfmap = dat... | public class class_name {
private void generateMTFValues() {
final int lastShadow = this.last;
final Data dataShadow = this.data;
final boolean[] inUse = dataShadow.inUse;
final byte[] block = dataShadow.block;
final int[] fmap = dataShadow.fmap;
final char[] sfmap = dat... |
public class class_name {
@Override
protected void computeFields() {
int mask;
if (isPartiallyNormalized()) {
// Determine which calendar fields need to be computed.
mask = getSetStateFields();
int fieldMask = ~mask & ALL_FIELDS;
// We have to call co... | public class class_name {
@Override
protected void computeFields() {
int mask;
if (isPartiallyNormalized()) {
// Determine which calendar fields need to be computed.
mask = getSetStateFields(); // depends on control dependency: [if], data = [none]
int fieldMask =... |
public class class_name {
public InputStream getVersionInputStream(String path, String versionId, String streamId) throws AccessDeniedException,
StorageClientException, IOException {
long t = System.currentTimeMillis();
try {
accessControlManager.check(Security.ZONE_CONTENT, pat... | public class class_name {
public InputStream getVersionInputStream(String path, String versionId, String streamId) throws AccessDeniedException,
StorageClientException, IOException {
long t = System.currentTimeMillis();
try {
accessControlManager.check(Security.ZONE_CONTENT, pat... |
public class class_name {
@Override
public void write(TextWriterStream out, String label, Object object) {
StringBuilder buf = new StringBuilder(100);
if(label != null) {
buf.append(label).append('=');
}
if(object != null) {
buf.append(object.toString());
}
out.commentPrintLn(buf)... | public class class_name {
@Override
public void write(TextWriterStream out, String label, Object object) {
StringBuilder buf = new StringBuilder(100);
if(label != null) {
buf.append(label).append('='); // depends on control dependency: [if], data = [(label]
}
if(object != null) {
buf.appe... |
public class class_name {
private void filter(CloneGroup current) {
for (CloneGroup earlier : filtered) {
if (containsIn(current, earlier)) {
return;
}
}
filtered.add(current);
} } | public class class_name {
private void filter(CloneGroup current) {
for (CloneGroup earlier : filtered) {
if (containsIn(current, earlier)) {
return; // depends on control dependency: [if], data = [none]
}
}
filtered.add(current);
} } |
public class class_name {
public boolean setMargins(float marginLeft, float marginRight, float marginTop, float marginBottom) {
if (writer != null && writer.isPaused()) {
return false;
}
nextMarginLeft = marginLeft;
nextMarginRight = marginRight;
nextMarginTop = marg... | public class class_name {
public boolean setMargins(float marginLeft, float marginRight, float marginTop, float marginBottom) {
if (writer != null && writer.isPaused()) {
return false; // depends on control dependency: [if], data = [none]
}
nextMarginLeft = marginLeft;
nextM... |
public class class_name {
@Override
public void updateCheckpointData(CheckpointDataKey key, CheckpointData value) {
logger.entering(CLASSNAME, "updateCheckpointData", new Object[] {key, value});
CheckpointData data = queryCheckpointData(key.getCommaSeparatedKey());
if(data != null) {
updateCheckpointDat... | public class class_name {
@Override
public void updateCheckpointData(CheckpointDataKey key, CheckpointData value) {
logger.entering(CLASSNAME, "updateCheckpointData", new Object[] {key, value});
CheckpointData data = queryCheckpointData(key.getCommaSeparatedKey());
if(data != null) {
updateCheckpointDat... |
public class class_name {
private ImmutableBitSet.Builder getInputFieldUsed(Aggregate aggregate, RelNode input) {
// 1. group fields are always used
final ImmutableBitSet.Builder inputFieldsUsed =
aggregate.getGroupSet().rebuild();
// 2. agg functions
for (AggregateCall aggCall : aggregate.getAggCallList())... | public class class_name {
private ImmutableBitSet.Builder getInputFieldUsed(Aggregate aggregate, RelNode input) {
// 1. group fields are always used
final ImmutableBitSet.Builder inputFieldsUsed =
aggregate.getGroupSet().rebuild();
// 2. agg functions
for (AggregateCall aggCall : aggregate.getAggCallList())... |
public class class_name {
public List<CmsProperty> readPropertyObjects(CmsDbContext dbc, CmsResource resource, boolean search)
throws CmsException {
// check if we have the result already cached
CmsUUID projectId = getProjectIdForContext(dbc);
String cacheKey = getCacheKey(CACHE_ALL_PROPER... | public class class_name {
public List<CmsProperty> readPropertyObjects(CmsDbContext dbc, CmsResource resource, boolean search)
throws CmsException {
// check if we have the result already cached
CmsUUID projectId = getProjectIdForContext(dbc);
String cacheKey = getCacheKey(CACHE_ALL_PROPER... |
public class class_name {
private AttributesImpl validateScope(final Attributes atts, final AttributesImpl modified) {
AttributesImpl res = modified;
final String scope = atts.getValue(ATTRIBUTE_NAME_SCOPE);
final URI href = toURI(atts.getValue(ATTRIBUTE_NAME_HREF));
if (scope == null &... | public class class_name {
private AttributesImpl validateScope(final Attributes atts, final AttributesImpl modified) {
AttributesImpl res = modified;
final String scope = atts.getValue(ATTRIBUTE_NAME_SCOPE);
final URI href = toURI(atts.getValue(ATTRIBUTE_NAME_HREF));
if (scope == null &... |
public class class_name {
public void setYellowBlinking(final boolean YELLOW_BLINKING) {
yellowBlinking = YELLOW_BLINKING;
if (!YELLOW_BLINKING) {
yellowOn = false;
TIMER.stop();
} else {
TIMER.start();
}
} } | public class class_name {
public void setYellowBlinking(final boolean YELLOW_BLINKING) {
yellowBlinking = YELLOW_BLINKING;
if (!YELLOW_BLINKING) {
yellowOn = false; // depends on control dependency: [if], data = [none]
TIMER.stop(); // depends on control dependency: [if], data =... |
public class class_name {
public com.google.protobuf.ByteString
getProviderIdBytes() {
java.lang.Object ref = providerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
p... | public class class_name {
public com.google.protobuf.ByteString
getProviderIdBytes() {
java.lang.Object ref = providerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
p... |
public class class_name {
void resolveConflictInDocument(String docID) throws CouchbaseLiteException {
synchronized (lock) {
boolean commit = false;
beginTransaction();
try {
// Read local document:
final Document localDoc = new Document((Data... | public class class_name {
void resolveConflictInDocument(String docID) throws CouchbaseLiteException {
synchronized (lock) {
boolean commit = false;
beginTransaction();
try {
// Read local document:
final Document localDoc = new Document((Data... |
public class class_name {
public static int varIntBytesToInt(byte[] bytes, int offset) {
byte tmp = bytes[offset++];
if (tmp >= 0) {
return tmp;
}
int result = tmp & 0x7f;
if ((tmp = bytes[offset++]) >= 0) {
result |= tmp << 7;
} else {
... | public class class_name {
public static int varIntBytesToInt(byte[] bytes, int offset) {
byte tmp = bytes[offset++];
if (tmp >= 0) {
return tmp; // depends on control dependency: [if], data = [none]
}
int result = tmp & 0x7f;
if ((tmp = bytes[offset++]) >= 0) {
... |
public class class_name {
public boolean repeatsMonthlyOnDayCount() {
if (this.freq != MONTHLY) {
return false;
}
if (bydayCount != 1 || bymonthdayCount != 0) {
return false;
}
if (bydayNum[0] <= 0) {
return false;
}
return ... | public class class_name {
public boolean repeatsMonthlyOnDayCount() {
if (this.freq != MONTHLY) {
return false; // depends on control dependency: [if], data = [none]
}
if (bydayCount != 1 || bymonthdayCount != 0) {
return false; // depends on control dependency: [if], d... |
public class class_name {
public void setDomainValidationOptions(java.util.Collection<LoadBalancerTlsCertificateDomainValidationOption> domainValidationOptions) {
if (domainValidationOptions == null) {
this.domainValidationOptions = null;
return;
}
this.domainValidation... | public class class_name {
public void setDomainValidationOptions(java.util.Collection<LoadBalancerTlsCertificateDomainValidationOption> domainValidationOptions) {
if (domainValidationOptions == null) {
this.domainValidationOptions = null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static Metadata fromManifest(InputStream is) {
try {
Manifest mf = new Manifest(is);
return fromManifest(mf);
} catch (IOException e) {
// Problems? Too bad!
}
return new Metadata();
} } | public class class_name {
public static Metadata fromManifest(InputStream is) {
try {
Manifest mf = new Manifest(is);
return fromManifest(mf); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
// Problems? Too bad!
} // depends... |
public class class_name {
public List<TorrentHandle> torrents() {
torrent_handle_vector v = s.get_torrents();
int size = (int) v.size();
ArrayList<TorrentHandle> l = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
l.add(new TorrentHandle(v.get(i)));
}
... | public class class_name {
public List<TorrentHandle> torrents() {
torrent_handle_vector v = s.get_torrents();
int size = (int) v.size();
ArrayList<TorrentHandle> l = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
l.add(new TorrentHandle(v.get(i))); // depends on c... |
public class class_name {
static public boolean isUnCaughtExceptionDetected () {
if (context == null) {
if (!context_null_msg_already_printed) {
Log.w(LOG_TAG_NAME, CONTEXT_NULL_MSG);
context_null_msg_already_printed = true;
}
return false;
... | public class class_name {
static public boolean isUnCaughtExceptionDetected () {
if (context == null) {
if (!context_null_msg_already_printed) {
Log.w(LOG_TAG_NAME, CONTEXT_NULL_MSG); // depends on control dependency: [if], data = [none]
context_null_msg_already_prin... |
public class class_name {
public static boolean touches(Geometry geometry, Coordinate coordinate) {
if (Geometry.MULTI_POLYGON.equals(geometry.getGeometryType())) {
for (int i = 0; i < geometry.getGeometries().length; i++) {
if (touches(geometry.getGeometries()[i], coordinate)) {
return true;
}
}
... | public class class_name {
public static boolean touches(Geometry geometry, Coordinate coordinate) {
if (Geometry.MULTI_POLYGON.equals(geometry.getGeometryType())) {
for (int i = 0; i < geometry.getGeometries().length; i++) {
if (touches(geometry.getGeometries()[i], coordinate)) {
return true; // depends ... |
public class class_name {
public static VelocityContext parseSession(VelocityContext context, javax.servlet.http.HttpSession session) {
if (null != session) {
final Enumeration<String> sessionAttrs = session.getAttributeNames();
if (sessionAttrs != null) {
String attrName = null;
while (sessionAtt... | public class class_name {
public static VelocityContext parseSession(VelocityContext context, javax.servlet.http.HttpSession session) {
if (null != session) {
final Enumeration<String> sessionAttrs = session.getAttributeNames();
if (sessionAttrs != null) {
String attrName = null;
while (sessionAtt... |
public class class_name {
@SuppressWarnings("unchecked")
private Converter getConverter(Class<?> valueType)
{
Converter c = converters.get(valueType);
if(c == null) {
synchronized(converters) {
if(c == null) {
if(Types.isKindOf(valueType, Converter.class)) {
// s... | public class class_name {
@SuppressWarnings("unchecked")
private Converter getConverter(Class<?> valueType)
{
Converter c = converters.get(valueType);
if(c == null) {
synchronized(converters) {
// depends on control dependency: [if], data = [(c]
if(c == null) {
if(Types.isKin... |
public class class_name {
private void buildNameMap() {
nameMap = new HashMap<String, GrailsPlugin>();
for (GrailsPlugin plugin : originalPlugins) {
nameMap.put(plugin.getName(), plugin);
}
} } | public class class_name {
private void buildNameMap() {
nameMap = new HashMap<String, GrailsPlugin>();
for (GrailsPlugin plugin : originalPlugins) {
nameMap.put(plugin.getName(), plugin); // depends on control dependency: [for], data = [plugin]
}
} } |
public class class_name {
public void unpush()
{
// First, move 'back' one position backwards.
if (backPos > 0) {
--backPos;
}
else {
backPos = size - 1;
backChunk = backChunk.prev;
}
// Now, move 'end' position backwards. Note ... | public class class_name {
public void unpush()
{
// First, move 'back' one position backwards.
if (backPos > 0) {
--backPos; // depends on control dependency: [if], data = [none]
}
else {
backPos = size - 1; // depends on control dependency: [if], data = [no... |
public class class_name {
@Override
public InputsModel getInputs() {
if (_inputs == null) {
_inputs = (InputsModel)getFirstChildModel(INPUTS);
}
return _inputs;
} } | public class class_name {
@Override
public InputsModel getInputs() {
if (_inputs == null) {
_inputs = (InputsModel)getFirstChildModel(INPUTS); // depends on control dependency: [if], data = [none]
}
return _inputs;
} } |
public class class_name {
public static void addRowTimes(double[][] matrix, int diag, int fromCol, int row, double factor) {
int cols = matrix[0].length;
double[] d = matrix[diag];
double[] r = matrix[row];
for (int col = fromCol; col < cols; col++) {
r[col] -= factor * d[col];
}
} } | public class class_name {
public static void addRowTimes(double[][] matrix, int diag, int fromCol, int row, double factor) {
int cols = matrix[0].length;
double[] d = matrix[diag];
double[] r = matrix[row];
for (int col = fromCol; col < cols; col++) {
r[col] -= factor * d[col]; // depends on control depende... |
public class class_name {
public void setUseCamera(final boolean useCamera) {
if (useCamera != getUseCamera()) {
ImageEditModel model = getOrCreateComponentModel();
model.useCamera = useCamera;
}
} } | public class class_name {
public void setUseCamera(final boolean useCamera) {
if (useCamera != getUseCamera()) {
ImageEditModel model = getOrCreateComponentModel();
model.useCamera = useCamera; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private static AttributesType matchParaMeterOfMethod(final Object obj,
final String methodName) {
for (AttributesType attr : AttributesType.values()) {
try {
obj.getClass().getMethod(methodName,
new Class[] { attr.clazz });
return attr;
} catch (Exception e... | public class class_name {
private static AttributesType matchParaMeterOfMethod(final Object obj,
final String methodName) {
for (AttributesType attr : AttributesType.values()) {
try {
obj.getClass().getMethod(methodName,
new Class[] { attr.clazz });
// depends on control dependency: [try], da... |
public class class_name {
public static void initialize()
{
if (InfinispanCache.get().exists(AccessCache.PERMISSIONCACHE)) {
InfinispanCache.get().<UUID, AccessType>getCache(AccessCache.PERMISSIONCACHE).clear();
} else {
InfinispanCache.get().<UUID, AccessType>getCache(Acces... | public class class_name {
public static void initialize()
{
if (InfinispanCache.get().exists(AccessCache.PERMISSIONCACHE)) {
InfinispanCache.get().<UUID, AccessType>getCache(AccessCache.PERMISSIONCACHE).clear(); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
void addNetworkReachabilityListener(NetworkReachabilityListener listener) {
synchronized (listeners) {
listeners.add(listener);
if (listeners.size() == 1) { startListening(); }
}
} } | public class class_name {
void addNetworkReachabilityListener(NetworkReachabilityListener listener) {
synchronized (listeners) {
listeners.add(listener);
if (listeners.size() == 1) { startListening(); } // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public <T extends Serializable> int enqueue(final String topic, List<T> objects) {
int messagesBuffered = 0;
for (T object : objects) {
final String value;
if (String.class.isAssignableFrom(object.getClass())) {
value = String.class.ca... | public class class_name {
public <T extends Serializable> int enqueue(final String topic, List<T> objects) {
int messagesBuffered = 0;
for (T object : objects) {
final String value;
if (String.class.isAssignableFrom(object.getClass())) {
value = String.class.ca... |
public class class_name {
public static IAtomContainer copyAndSuppressedHydrogens(IAtomContainer org) {
try {
return suppressHydrogens(org.clone());
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("atom container could not be cloned");
}
} } | public class class_name {
public static IAtomContainer copyAndSuppressedHydrogens(IAtomContainer org) {
try {
return suppressHydrogens(org.clone()); // depends on control dependency: [try], data = [none]
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("a... |
public class class_name {
public void marshall(DescribeComplianceByResourceRequest describeComplianceByResourceRequest, ProtocolMarshaller protocolMarshaller) {
if (describeComplianceByResourceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(DescribeComplianceByResourceRequest describeComplianceByResourceRequest, ProtocolMarshaller protocolMarshaller) {
if (describeComplianceByResourceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
private void buildSpectrogram() {
short[] amplitudes = wave.getSampleAmplitudes();
int numSamples = amplitudes.length;
int pointer = 0;
// overlapping
if (overlapFactor > 1) {
int numOverlappedSamples = numSamples * overlapFactor;
... | public class class_name {
private void buildSpectrogram() {
short[] amplitudes = wave.getSampleAmplitudes();
int numSamples = amplitudes.length;
int pointer = 0;
// overlapping
if (overlapFactor > 1) {
int numOverlappedSamples = numSamples * overlapFactor;
... |
public class class_name {
public void addColumn(CmsListColumnDefinition listColumn, int position) {
setListIdForColumn(listColumn);
if (m_columns.elementList().isEmpty()) {
listColumn.setPrintable(true);
} else {
listColumn.setPrintable(listColumn.isSorteable());
... | public class class_name {
public void addColumn(CmsListColumnDefinition listColumn, int position) {
setListIdForColumn(listColumn);
if (m_columns.elementList().isEmpty()) {
listColumn.setPrintable(true); // depends on control dependency: [if], data = [none]
} else {
lis... |
public class class_name {
private Set<Field> getItemFields() {
Class next = Item.class;
Set<Field> fields = new HashSet<>(getFields(next));
while (next.getSuperclass() != Object.class) {
next = next.getSuperclass();
fields.addAll(getFields(next));
}
return fields;
} } | public class class_name {
private Set<Field> getItemFields() {
Class next = Item.class;
Set<Field> fields = new HashSet<>(getFields(next));
while (next.getSuperclass() != Object.class) {
next = next.getSuperclass(); // depends on control dependency: [while], data = [none]
fields.addAll(getFields(next)); //... |
public class class_name {
private void handleArgUninstall(final String arg, final Deque<String> args) {
install = true;
String name = arg;
final int posEq = name.indexOf("=");
String value;
if (posEq != -1) {
value = name.substring(posEq + 1);
} else {
... | public class class_name {
private void handleArgUninstall(final String arg, final Deque<String> args) {
install = true;
String name = arg;
final int posEq = name.indexOf("=");
String value;
if (posEq != -1) {
value = name.substring(posEq + 1); // depends on control d... |
public class class_name {
public double getRank(final double value) {
if (isEmpty()) { return Double.NaN; }
final DoublesSketchAccessor samples = DoublesSketchAccessor.wrap(this);
long total = 0;
int weight = 1;
samples.setLevel(DoublesSketchAccessor.BB_LVL_IDX);
for (int i = 0; i < samples.num... | public class class_name {
public double getRank(final double value) {
if (isEmpty()) { return Double.NaN; } // depends on control dependency: [if], data = [none]
final DoublesSketchAccessor samples = DoublesSketchAccessor.wrap(this);
long total = 0;
int weight = 1;
samples.setLevel(DoublesSketchAcc... |
public class class_name {
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
comboBox.setEnabled(enabled);
if (spinner != null) {
spinner.setEnabled(enabled);
}
} } | public class class_name {
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
comboBox.setEnabled(enabled);
if (spinner != null) {
spinner.setEnabled(enabled); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
static boolean containsAllImpl(Collection<?> self, Collection<?> c) {
for (Object o : c) {
if (!self.contains(o)) {
return false;
}
}
return true;
} } | public class class_name {
static boolean containsAllImpl(Collection<?> self, Collection<?> c) {
for (Object o : c) {
if (!self.contains(o)) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
public Map<String, String> map() {
Map<String, String> map = new HashMap<String, String>();
int i = 0;
while (i < size) {
map.put(items[i], items[i + 1]);
i += 2;
}
return map;
} } | public class class_name {
public Map<String, String> map() {
Map<String, String> map = new HashMap<String, String>();
int i = 0;
while (i < size) {
map.put(items[i], items[i + 1]); // depends on control dependency: [while], data = [(i]
i += 2; // depends on control depen... |
public class class_name {
public static Nature convertStringToNature(String name, LinkedHashSet<Nature> customNatureCollector)
{
Nature nature = Nature.fromString(name);
if (nature == null)
{
nature = Nature.create(name);
if (customNatureCollector != null) customNatu... | public class class_name {
public static Nature convertStringToNature(String name, LinkedHashSet<Nature> customNatureCollector)
{
Nature nature = Nature.fromString(name);
if (nature == null)
{
nature = Nature.create(name); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public WebSocketCall createWebSocketCall(String url, Map<String, String> headers) {
String base64Credentials = buildBase64Credentials();
Request.Builder requestBuilder = new Request.Builder()
.url(url)
.addHeader("Authorization", "Basic " + bas... | public class class_name {
public WebSocketCall createWebSocketCall(String url, Map<String, String> headers) {
String base64Credentials = buildBase64Credentials();
Request.Builder requestBuilder = new Request.Builder()
.url(url)
.addHeader("Authorization", "Basic " + bas... |
public class class_name {
public Builder done() {
if (done) {
return parent;
}
this.tree.fragments = fragments.toArray(new QueryFragment[fragments.size()]);
if (parent != null) {
parent.tree.subTrees.add(this.tree);
parent... | public class class_name {
public Builder done() {
if (done) {
return parent; // depends on control dependency: [if], data = [none]
}
this.tree.fragments = fragments.toArray(new QueryFragment[fragments.size()]);
if (parent != null) {
paren... |
public class class_name {
private static void drawOctogon()
{
// Do the following 8 times --#5.1
for (int i = 0; i < 8; i++)
{
// Change the pen color of the line the tortoise draws to the next color on the color wheel --#3
Tortoise.setPenColor(ColorWheel.getNextColor());
// ... | public class class_name {
private static void drawOctogon()
{
// Do the following 8 times --#5.1
for (int i = 0; i < 8; i++)
{
// Change the pen color of the line the tortoise draws to the next color on the color wheel --#3
Tortoise.setPenColor(ColorWheel.getNextColor()); // depends o... |
public class class_name {
public static long[] reductionShape(INDArray x, int[] dimension, boolean newFormat, boolean keepDims){
boolean wholeArray = Shape.wholeArrayDimension(dimension) || dimension.length == x.rank();
long[] retShape;
if(!newFormat) {
retShape = wholeArray ? new l... | public class class_name {
public static long[] reductionShape(INDArray x, int[] dimension, boolean newFormat, boolean keepDims){
boolean wholeArray = Shape.wholeArrayDimension(dimension) || dimension.length == x.rank();
long[] retShape;
if(!newFormat) {
retShape = wholeArray ? new l... |
public class class_name {
private org.ironjacamar.core.connectionmanager.listener.ConnectionListener
associateConnectionListener(Credential credential, Object connection)
throws ResourceException
{
log.tracef("associateConnectionListener(%s, %s)", credential, connection);
if (isShutdown())
... | public class class_name {
private org.ironjacamar.core.connectionmanager.listener.ConnectionListener
associateConnectionListener(Credential credential, Object connection)
throws ResourceException
{
log.tracef("associateConnectionListener(%s, %s)", credential, connection);
if (isShutdown())
... |
public class class_name {
public static String getText(Activity context, int id) {
TextView view = findViewById(context, id);
String text = "";
if (view != null) {
text = view.getText().toString();
} else {
Log.e("Caffeine", "Null view given to getText(). \"\" ... | public class class_name {
public static String getText(Activity context, int id) {
TextView view = findViewById(context, id);
String text = "";
if (view != null) {
text = view.getText().toString(); // depends on control dependency: [if], data = [none]
} else {
L... |
public class class_name {
private static void modifyField(Calendar calendar, int field, ModifyType modifyType) {
// Console.log("# {} {}", DateField.of(field), calendar.getActualMinimum(field));
switch (modifyType) {
case TRUNCATE:
calendar.set(field, DateUtil.getBeginValue(calendar, field));
break;
... | public class class_name {
private static void modifyField(Calendar calendar, int field, ModifyType modifyType) {
// Console.log("# {} {}", DateField.of(field), calendar.getActualMinimum(field));
switch (modifyType) {
case TRUNCATE:
calendar.set(field, DateUtil.getBeginValue(calendar, field));
break;
... |
public class class_name {
public void setObjectProjectionAttribute(String objectProjectionAttribute)
{
ClassDescriptor baseCld = MetadataManager.getInstance().getRepository().getDescriptorFor(m_baseClass);
ArrayList descs = baseCld.getAttributeDescriptorsForPath(objectProjectionAttribute);
... | public class class_name {
public void setObjectProjectionAttribute(String objectProjectionAttribute)
{
ClassDescriptor baseCld = MetadataManager.getInstance().getRepository().getDescriptorFor(m_baseClass);
ArrayList descs = baseCld.getAttributeDescriptorsForPath(objectProjectionAttribute);
... |
public class class_name {
public static String removeSemicolonContent(String requestUri) {
int semicolonIndex = requestUri.indexOf(';');
while (semicolonIndex != -1) {
int slashIndex = requestUri.indexOf('/', semicolonIndex);
String start = requestUri.substring(0, semicolonIndex);
requestUri = (slashIndex... | public class class_name {
public static String removeSemicolonContent(String requestUri) {
int semicolonIndex = requestUri.indexOf(';');
while (semicolonIndex != -1) {
int slashIndex = requestUri.indexOf('/', semicolonIndex);
String start = requestUri.substring(0, semicolonIndex);
requestUri = (slashIndex... |
public class class_name {
RecurrenceIterator createIterator(Observance observance) {
List<RecurrenceIterator> inclusions = new ArrayList<RecurrenceIterator>();
List<RecurrenceIterator> exclusions = new ArrayList<RecurrenceIterator>();
ICalDate dtstart = getValue(observance.getDateStart());
if (dtstart != null... | public class class_name {
RecurrenceIterator createIterator(Observance observance) {
List<RecurrenceIterator> inclusions = new ArrayList<RecurrenceIterator>();
List<RecurrenceIterator> exclusions = new ArrayList<RecurrenceIterator>();
ICalDate dtstart = getValue(observance.getDateStart());
if (dtstart != null... |
public class class_name {
private Properties parseProperties(AbstractBlock part, String attributeName) {
Properties properties = new Properties();
Object attribute = part.getAttributes().get(attributeName);
if (attribute == null) {
return properties;
}
Scanner proper... | public class class_name {
private Properties parseProperties(AbstractBlock part, String attributeName) {
Properties properties = new Properties();
Object attribute = part.getAttributes().get(attributeName);
if (attribute == null) {
return properties; // depends on control dependency... |
public class class_name {
public void markCanBeCompleted(long id) {
Long opId = id;
completedOperationIds.offerLast(opId);
Long start = starTimes.remove(opId);
if (start != null) {
stats.markRpcComplete(clock.nanoTime() - start);
}
} } | public class class_name {
public void markCanBeCompleted(long id) {
Long opId = id;
completedOperationIds.offerLast(opId);
Long start = starTimes.remove(opId);
if (start != null) {
stats.markRpcComplete(clock.nanoTime() - start); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public BeanInvoker getReadInvoker(String name) {
BeanInvoker invoker;
if (readInvokers.containsKey(name)) {
invoker = readInvokers.get(name);
} else {
invoker = getInvoker(readHandleType.get(name), name);
readInvokers.put(name, invok... | public class class_name {
public BeanInvoker getReadInvoker(String name) {
BeanInvoker invoker;
if (readInvokers.containsKey(name)) {
invoker = readInvokers.get(name); // depends on control dependency: [if], data = [none]
} else {
invoker = getInvoker(readHandleType.get(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.