code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void marshall(GetSecurityConfigurationsRequest getSecurityConfigurationsRequest, ProtocolMarshaller protocolMarshaller) {
if (getSecurityConfigurationsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... | public class class_name {
public void marshall(GetSecurityConfigurationsRequest getSecurityConfigurationsRequest, ProtocolMarshaller protocolMarshaller) {
if (getSecurityConfigurationsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... |
public class class_name {
public static Level getLoggingLevelFromProperties() {
if (levelFromProperties == null) {
final String verboseLevel = JanusConfig.getSystemProperty(JanusConfig.VERBOSE_LEVEL_NAME, JanusConfig.VERBOSE_LEVEL_VALUE);
levelFromProperties = parseLoggingLevel(verboseLevel);
}
return leve... | public class class_name {
public static Level getLoggingLevelFromProperties() {
if (levelFromProperties == null) {
final String verboseLevel = JanusConfig.getSystemProperty(JanusConfig.VERBOSE_LEVEL_NAME, JanusConfig.VERBOSE_LEVEL_VALUE);
levelFromProperties = parseLoggingLevel(verboseLevel); // depends on con... |
public class class_name {
boolean isEntirelyUnresolvable() {
if (this == NONE) {
return false;
}
ResolvableType[] generics = getGenerics();
for (ResolvableType generic : generics) {
if (!generic.isUnresolvableTypeVariable() && !generic.isWildcardWithoutBounds()) ... | public class class_name {
boolean isEntirelyUnresolvable() {
if (this == NONE) {
return false; // depends on control dependency: [if], data = [none]
}
ResolvableType[] generics = getGenerics();
for (ResolvableType generic : generics) {
if (!generic.isUnresolvable... |
public class class_name {
public Optional<ArrayPositionSetter> create(final Class<?> beanClass, final String fieldName) {
ArgUtils.notNull(beanClass, "beanClass");
ArgUtils.notEmpty(fieldName, "fieldName");
// フィールド Map positionsの場合
Optional<ArrayPositionSetter> ... | public class class_name {
public Optional<ArrayPositionSetter> create(final Class<?> beanClass, final String fieldName) {
ArgUtils.notNull(beanClass, "beanClass");
ArgUtils.notEmpty(fieldName, "fieldName");
// フィールド Map positionsの場合
Optional<ArrayPositionSetter> ... |
public class class_name {
public KeyVerifyParameters withDigest(byte[] digest) {
if (digest == null) {
this.digest = null;
} else {
this.digest = Base64Url.encode(digest);
}
return this;
} } | public class class_name {
public KeyVerifyParameters withDigest(byte[] digest) {
if (digest == null) {
this.digest = null; // depends on control dependency: [if], data = [none]
} else {
this.digest = Base64Url.encode(digest); // depends on control dependency: [if], data = [(dige... |
public class class_name {
public static ViewHolder obtain(View view) {
if (view.getTag() instanceof ViewHolder) {
return (ViewHolder) view.getTag();
}
return new ViewHolder(view);
} } | public class class_name {
public static ViewHolder obtain(View view) {
if (view.getTag() instanceof ViewHolder) {
return (ViewHolder) view.getTag(); // depends on control dependency: [if], data = [none]
}
return new ViewHolder(view);
} } |
public class class_name {
public Dataset<String, String> getDataset(Dataset<String, String> oldData, Index<String> goodFeatures) {
//public Dataset getDataset(List data, Collection goodFeatures) {
//makeAnswerArraysAndTagIndex(data);
int[][] oldDataArray = oldData.getDataArray();
int[] oldLabelAr... | public class class_name {
public Dataset<String, String> getDataset(Dataset<String, String> oldData, Index<String> goodFeatures) {
//public Dataset getDataset(List data, Collection goodFeatures) {
//makeAnswerArraysAndTagIndex(data);
int[][] oldDataArray = oldData.getDataArray();
int[] oldLabelAr... |
public class class_name {
public void offer(final byte[] request, final HttpException e) {
if (!e.isClientError()) {
resendQueue.offer(new HttpResendQueueItem(request));
}
} } | public class class_name {
public void offer(final byte[] request, final HttpException e) {
if (!e.isClientError()) {
resendQueue.offer(new HttpResendQueueItem(request)); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public XCalElement child(ICalDataType dataType) {
String localName = dataType.getName().toLowerCase();
for (Element child : children()) {
if (localName.equals(child.getLocalName()) && XCAL_NS.equals(child.getNamespaceURI())) {
return new XCalElement(child);
}
}
return null;
... | public class class_name {
public XCalElement child(ICalDataType dataType) {
String localName = dataType.getName().toLowerCase();
for (Element child : children()) {
if (localName.equals(child.getLocalName()) && XCAL_NS.equals(child.getNamespaceURI())) {
return new XCalElement(child); // depends on control de... |
public class class_name {
@Override
public String[] decode(long generation, String tableName, List<VoltType> types, List<String> names, String[] to, Object[] fields) throws RuntimeException {
Preconditions.checkArgument(
fields != null && fields.length > m_firstFieldOffset,
... | public class class_name {
@Override
public String[] decode(long generation, String tableName, List<VoltType> types, List<String> names, String[] to, Object[] fields) throws RuntimeException {
Preconditions.checkArgument(
fields != null && fields.length > m_firstFieldOffset,
... |
public class class_name {
private AttributeDefinitionSpecification[] getADs(boolean isRequired) {
AttributeDefinitionSpecification[] retVal = null;
Vector<AttributeDefinitionSpecification> vector = new Vector<AttributeDefinitionSpecification>();
for (Map.Entry<String, AttributeDefinitionSpecifi... | public class class_name {
private AttributeDefinitionSpecification[] getADs(boolean isRequired) {
AttributeDefinitionSpecification[] retVal = null;
Vector<AttributeDefinitionSpecification> vector = new Vector<AttributeDefinitionSpecification>();
for (Map.Entry<String, AttributeDefinitionSpecifi... |
public class class_name {
@InternalApi
int computeDeadlineSeconds() {
int sec = ackLatencyDistribution.getPercentile(PERCENTILE_FOR_ACK_DEADLINE_UPDATES);
// Use Ints.constrainToRange when we get guava 21.
if (sec < Subscriber.MIN_ACK_DEADLINE_SECONDS) {
sec = Subscriber.MIN_ACK_DEADLINE_SECONDS;
... | public class class_name {
@InternalApi
int computeDeadlineSeconds() {
int sec = ackLatencyDistribution.getPercentile(PERCENTILE_FOR_ACK_DEADLINE_UPDATES);
// Use Ints.constrainToRange when we get guava 21.
if (sec < Subscriber.MIN_ACK_DEADLINE_SECONDS) {
sec = Subscriber.MIN_ACK_DEADLINE_SECONDS; ... |
public class class_name {
public static synchronized MongoClient create(final MongoClientSettings mongoClientSettings) {
if (mongoEmbeddedLibrary == null) {
throw new MongoClientEmbeddedException("The mongo embedded library must be initialized first.");
}
try {
Cluster c... | public class class_name {
public static synchronized MongoClient create(final MongoClientSettings mongoClientSettings) {
if (mongoEmbeddedLibrary == null) {
throw new MongoClientEmbeddedException("The mongo embedded library must be initialized first.");
}
try {
Cluster c... |
public class class_name {
public final void stop() {
if (this.thread != null) {
try {
if (this.thread != null) {
this.thread.interrupt();
synchronized (this.thread) {
this.thread.notifyAll();
}
... | public class class_name {
public final void stop() {
if (this.thread != null) {
try {
if (this.thread != null) {
this.thread.interrupt(); // depends on control dependency: [if], data = [none]
synchronized (this.thread) { // depends on control ... |
public class class_name {
public String paramsAsHidden(Collection<String> excludes) {
StringBuffer result = new StringBuffer(512);
Map<String, Object> params = paramValues();
Iterator<Entry<String, Object>> i = params.entrySet().iterator();
while (i.hasNext()) {
Entry<Strin... | public class class_name {
public String paramsAsHidden(Collection<String> excludes) {
StringBuffer result = new StringBuffer(512);
Map<String, Object> params = paramValues();
Iterator<Entry<String, Object>> i = params.entrySet().iterator();
while (i.hasNext()) {
Entry<Strin... |
public class class_name {
private void init() {
if (managers == null) {
managers = new Managers();
}
if (services == null) {
services = createServices(config, managers);
}
} } | public class class_name {
private void init() {
if (managers == null) {
managers = new Managers();
// depends on control dependency: [if], data = [none]
}
if (services == null) {
services = createServices(config, managers);
// depends on control dependency: [if], d... |
public class class_name {
private String getLogFolderPath() {
String path = null;
if (OpenCms.getRunLevel() >= OpenCms.RUNLEVEL_3_SHELL_ACCESS) {
path = new File(OpenCms.getSystemInfo().getLogFileRfsPath()).getParent();
// making sure the path ends with the file separator CHAR
... | public class class_name {
private String getLogFolderPath() {
String path = null;
if (OpenCms.getRunLevel() >= OpenCms.RUNLEVEL_3_SHELL_ACCESS) {
path = new File(OpenCms.getSystemInfo().getLogFileRfsPath()).getParent(); // depends on control dependency: [if], data = [none]
// m... |
public class class_name {
private static RecordType typeFromChar(char recChar) {
for (int i=0; i < numRecChars; i++) {
if (recordChars[i] == recChar) {
return recordTypes[i];
}
}
throw new BitsyException(BitsyErrorCodes.INTERNAL_ERROR, "Unrecogni... | public class class_name {
private static RecordType typeFromChar(char recChar) {
for (int i=0; i < numRecChars; i++) {
if (recordChars[i] == recChar) {
return recordTypes[i]; // depends on control dependency: [if], data = [none]
}
}
throw new Bit... |
public class class_name {
protected void doLinkSecondPass(final BuildData buildData,
final Map<SpecTopic, Set<String>> usedIdAttributes) throws BuildProcessingException {
final List<SpecTopic> topics = buildData.getBuildDatabase().getAllSpecTopics();
for (final SpecTopic specTopic : topics)... | public class class_name {
protected void doLinkSecondPass(final BuildData buildData,
final Map<SpecTopic, Set<String>> usedIdAttributes) throws BuildProcessingException {
final List<SpecTopic> topics = buildData.getBuildDatabase().getAllSpecTopics();
for (final SpecTopic specTopic : topics)... |
public class class_name {
private static Token createThreadContextToken(final String configuration) {
if (configuration == null) {
InternalLogger.log(Level.ERROR, "\"{context}\" requires a key");
return new PlainTextToken("");
} else {
int splitIndex = configuration.indexOf(',');
String key = splitInde... | public class class_name {
private static Token createThreadContextToken(final String configuration) {
if (configuration == null) {
InternalLogger.log(Level.ERROR, "\"{context}\" requires a key"); // depends on control dependency: [if], data = [none]
return new PlainTextToken(""); // depends on control dependen... |
public class class_name {
protected boolean writeShiftOp(int type, boolean simulate) {
type = type - LEFT_SHIFT;
if (type < 0 || type > 2) return false;
if (!simulate) {
int bytecode = getShiftOperationBytecode(type);
controller.getMethodVisitor().visitInsn(bytecode);
... | public class class_name {
protected boolean writeShiftOp(int type, boolean simulate) {
type = type - LEFT_SHIFT;
if (type < 0 || type > 2) return false;
if (!simulate) {
int bytecode = getShiftOperationBytecode(type);
controller.getMethodVisitor().visitInsn(bytecode); /... |
public class class_name {
protected static Map<String,String> getConfiguration(Properties configuration)
{
//get system configuration
Map<String,String> systemConfig=LibraryConfigurationLoader.getSystemConfiguration();
//create new map
Map<String,String> layeredConfiguratio... | public class class_name {
protected static Map<String,String> getConfiguration(Properties configuration)
{
//get system configuration
Map<String,String> systemConfig=LibraryConfigurationLoader.getSystemConfiguration();
//create new map
Map<String,String> layeredConfiguratio... |
public class class_name {
public void updateLongRunningFree(Address address, long free)
{
if (trace)
log.tracef("updateLongRunningFree(%s, %d)", address, free);
Map<Address, Long> lr = longRunning.get(address.getWorkManagerId());
if (lr != null)
{
lr.put(address, Long.val... | public class class_name {
public void updateLongRunningFree(Address address, long free)
{
if (trace)
log.tracef("updateLongRunningFree(%s, %d)", address, free);
Map<Address, Long> lr = longRunning.get(address.getWorkManagerId());
if (lr != null)
{
lr.put(address, Long.val... |
public class class_name {
private Iterator<String> getIterator() {
final Set<String> copy = getPrefixes();
final Iterator<String> copyIt = copy.iterator();
return new Iterator<String>() {
private String lastOne = null;
@Override
public boolean hasNext() {
return copyIt.hasNext();
}
@Override... | public class class_name {
private Iterator<String> getIterator() {
final Set<String> copy = getPrefixes();
final Iterator<String> copyIt = copy.iterator();
return new Iterator<String>() {
private String lastOne = null;
@Override
public boolean hasNext() {
return copyIt.hasNext();
}
@Override... |
public class class_name {
@Override
public boolean isBoundary(int offset) {
checkOffset(offset, fText);
// the beginning index of the iterator is always a boundary position by definition
if (offset == fText.getBeginIndex()) {
first(); // For side effects on current positi... | public class class_name {
@Override
public boolean isBoundary(int offset) {
checkOffset(offset, fText);
// the beginning index of the iterator is always a boundary position by definition
if (offset == fText.getBeginIndex()) {
first(); // For side effects on current positi... |
public class class_name {
public synchronized TicketBucket getTicketBucket(Region region) {
TicketBucket tb = buckets.get(region);
if (tb == null) {
tb = new TicketBucket(rules);
buckets.put(region, tb);
}
return tb;
} } | public class class_name {
public synchronized TicketBucket getTicketBucket(Region region) {
TicketBucket tb = buckets.get(region);
if (tb == null) {
tb = new TicketBucket(rules); // depends on control dependency: [if], data = [none]
buckets.put(region, tb); // depends on control dependency: [if],... |
public class class_name {
public void waitInitOpen(String waitForSelector) {
if (waitForSelector == null || waitForSelector.isEmpty()) {
initDynamic();
open();
return;
}
waitInitOpen(waitForSelector, getElement());
} } | public class class_name {
public void waitInitOpen(String waitForSelector) {
if (waitForSelector == null || waitForSelector.isEmpty()) {
initDynamic(); // depends on control dependency: [if], data = [none]
open(); // depends on control dependency: [if], data = [none]
return;... |
public class class_name {
private void submitRevisions(final List<DocumentChange> changes) {
synchronized (changesLock) {
try {
java.net.URI remoteUri = remote.toURI();
for (DocumentChange change : changes) {
// Skip revisions that originally came... | public class class_name {
private void submitRevisions(final List<DocumentChange> changes) {
synchronized (changesLock) {
try {
java.net.URI remoteUri = remote.toURI();
for (DocumentChange change : changes) {
// Skip revisions that originally came... |
public class class_name {
@Override
public synchronized void process(CAS tcas) {
final AnnotationComboIterator comboIterator =
new AnnotationComboIterator(tcas, this.sentenceType, this.tokenType);
for (AnnotationIteratorPair annotationIteratorPair : comboIterator) {
... | public class class_name {
@Override
public synchronized void process(CAS tcas) {
final AnnotationComboIterator comboIterator =
new AnnotationComboIterator(tcas, this.sentenceType, this.tokenType);
for (AnnotationIteratorPair annotationIteratorPair : comboIterator) {
... |
public class class_name {
final JsMsgMap getSystemContextMap() {
if (systemContextMap == null) {
List<String> keys = (List<String>) getApi().getField(JsApiAccess.SYSTEMCONTEXT_NAME);
List<Object> values = (List<Object>) getApi().getField(JsApiAccess.SYSTEMCONTEXT_VALUE);
sys... | public class class_name {
final JsMsgMap getSystemContextMap() {
if (systemContextMap == null) {
List<String> keys = (List<String>) getApi().getField(JsApiAccess.SYSTEMCONTEXT_NAME);
List<Object> values = (List<Object>) getApi().getField(JsApiAccess.SYSTEMCONTEXT_VALUE);
sys... |
public class class_name {
private synchronized void setCreator(ObjectValue newCreator)
{
// Do not set the creator if created by the system class. The System contains
// fields with references to Thread instances which are not Serializable and
// will fail a deep copy with a NotSerializableExpection for Thread
... | public class class_name {
private synchronized void setCreator(ObjectValue newCreator)
{
// Do not set the creator if created by the system class. The System contains
// fields with references to Thread instances which are not Serializable and
// will fail a deep copy with a NotSerializableExpection for Thread
... |
public class class_name {
@Override
public Optional<HttpTracing> build(final Environment environment) {
if (!isEnabled()) {
LOGGER.warn("Zipkin tracing is disabled");
return Optional.empty();
}
final ReporterMetrics metricsHandler = new DropwizardReporterMetrics(environment.metrics());
... | public class class_name {
@Override
public Optional<HttpTracing> build(final Environment environment) {
if (!isEnabled()) {
LOGGER.warn("Zipkin tracing is disabled"); // depends on control dependency: [if], data = [none]
return Optional.empty(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void buildWidget() {
// setTitle(MESSAGES.nearbyFeaturesListTooltip());
setShowEmptyMessage(true);
setWidth100();
setHeight100();
setShowHeader(false);
setShowAllRecords(true);
// List size calculation
setDefaultWidth(400);
setDefaultHeight(300);
setAutoFitData(Au... | public class class_name {
private void buildWidget() {
// setTitle(MESSAGES.nearbyFeaturesListTooltip());
setShowEmptyMessage(true);
setWidth100();
setHeight100();
setShowHeader(false);
setShowAllRecords(true);
// List size calculation
setDefaultWidth(400);
setDefaultHeight(300);
setAutoFitData(Au... |
public class class_name {
public static LaContainer include(final LaContainer parent, final String path) {
if (!initialized) {
configure();
}
return getProvider().include(parent, path);
} } | public class class_name {
public static LaContainer include(final LaContainer parent, final String path) {
if (!initialized) {
configure(); // depends on control dependency: [if], data = [none]
}
return getProvider().include(parent, path);
} } |
public class class_name {
private String getSQLString(Term term, AliasIndex index, boolean useBrackets) {
if (term == null) {
return "";
}
if (term instanceof ValueConstant) {
ValueConstant ct = (ValueConstant) term;
if (hasIRIDictionary()) {
if (ct.getType().isA(XSD.STRING)) {
int id = getUri... | public class class_name {
private String getSQLString(Term term, AliasIndex index, boolean useBrackets) {
if (term == null) {
return ""; // depends on control dependency: [if], data = [none]
}
if (term instanceof ValueConstant) {
ValueConstant ct = (ValueConstant) term;
if (hasIRIDictionary()) {
if... |
public class class_name {
public void marshall(ListMembersRequest listMembersRequest, ProtocolMarshaller protocolMarshaller) {
if (listMembersRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(ListMembersRequest listMembersRequest, ProtocolMarshaller protocolMarshaller) {
if (listMembersRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
protected String getColumn(OgmEntityPersister persister, List<String> propertyPath) {
Iterator<String> pathIterator = propertyPath.iterator();
String propertyName = pathIterator.next();
Type propertyType = persister.getPropertyType( propertyName );
if ( !pathIterator.hasNext() ) {
... | public class class_name {
protected String getColumn(OgmEntityPersister persister, List<String> propertyPath) {
Iterator<String> pathIterator = propertyPath.iterator();
String propertyName = pathIterator.next();
Type propertyType = persister.getPropertyType( propertyName );
if ( !pathIterator.hasNext() ) {
... |
public class class_name {
@Nullable
private static Object valueOf(String value, Class<?> cls) {
if (cls == Boolean.TYPE) {
return Boolean.valueOf(value);
}
if (cls == Character.TYPE) {
return value.length() >= 1 ? value.charAt(0) : defaultValue(char.class);
}
if (cls == Byte.TYPE) {
... | public class class_name {
@Nullable
private static Object valueOf(String value, Class<?> cls) {
if (cls == Boolean.TYPE) {
return Boolean.valueOf(value); // depends on control dependency: [if], data = [none]
}
if (cls == Character.TYPE) {
return value.length() >= 1 ? value.charAt(0) : default... |
public class class_name {
private void lstPropertiesKeyPressed(java.awt.event.KeyEvent evt) {// GEN-FIRST:event_lstPropertiesKeyPressed
int code = evt.getKeyCode();
if (code == KeyEvent.VK_DELETE) {
deleteMappingItem();
}
} } | public class class_name {
private void lstPropertiesKeyPressed(java.awt.event.KeyEvent evt) {// GEN-FIRST:event_lstPropertiesKeyPressed
int code = evt.getKeyCode();
if (code == KeyEvent.VK_DELETE) {
deleteMappingItem(); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static Cell getCell(Properties attributes) {
Cell cell = new Cell();
String value;
cell.setHorizontalAlignment(attributes
.getProperty(ElementTags.HORIZONTALALIGN));
cell.setVerticalAlignment(attributes
.getProperty(ElementTags.VERTICALALIGN));
value = attributes.ge... | public class class_name {
public static Cell getCell(Properties attributes) {
Cell cell = new Cell();
String value;
cell.setHorizontalAlignment(attributes
.getProperty(ElementTags.HORIZONTALALIGN));
cell.setVerticalAlignment(attributes
.getProperty(ElementTags.VERTICALALIGN));
value = attributes.ge... |
public class class_name {
@Deprecated
public static Matrix[] svd(File matrix, Algorithm alg,
Format format, int dimensions) {
try {
File converted = null;
switch (alg) {
case SVDLIBC: {
// check whether the input ma... | public class class_name {
@Deprecated
public static Matrix[] svd(File matrix, Algorithm alg,
Format format, int dimensions) {
try {
File converted = null;
switch (alg) {
case SVDLIBC: {
// check whether the input ma... |
public class class_name {
public static <T, E extends Exception> void flattOp(final T[][] a, Try.Consumer<T[], E> op) throws E {
if (N.isNullOrEmpty(a)) {
return;
}
final T[] tmp = flattenn(a);
op.accept(tmp);
int idx = 0;
for (T[] e : a) {
... | public class class_name {
public static <T, E extends Exception> void flattOp(final T[][] a, Try.Consumer<T[], E> op) throws E {
if (N.isNullOrEmpty(a)) {
return;
}
final T[] tmp = flattenn(a);
op.accept(tmp);
int idx = 0;
for (T[] e : a) {
... |
public class class_name {
public Object get(String key) {
if (!StringUtil.isEmpty(key)) {
if (pendingInstanceData.containsKey(key)) {
return pendingInstanceData.get(key);
}
if (instanceData.containsKey(key)) {
return instanceData.get(key);
}
}
return null;
} } | public class class_name {
public Object get(String key) {
if (!StringUtil.isEmpty(key)) {
if (pendingInstanceData.containsKey(key)) {
return pendingInstanceData.get(key); // depends on control dependency: [if], data = [none]
}
if (instanceData.containsKey(key)) {
return instanceDa... |
public class class_name {
private InputStream getResourceStream(File file, String resourceName) {
try {
JarFile jarFile = (JarFile) jarFiles.get(file);
if (jarFile == null && file.isDirectory()) {
File resource = new File(file, resourceName);
if (resource... | public class class_name {
private InputStream getResourceStream(File file, String resourceName) {
try {
JarFile jarFile = (JarFile) jarFiles.get(file);
if (jarFile == null && file.isDirectory()) {
File resource = new File(file, resourceName);
if (resource... |
public class class_name {
public static boolean isBlank(Object o) {
if (o instanceof CharSequence) {
CharSequence cs = (CharSequence) o;
return cs == null || new StringBuilder(cs.length()).append(cs).toString()
.trim().isEmpty();
}
if (o instanceof Iterable) {
Iterable<?> iter =... | public class class_name {
public static boolean isBlank(Object o) {
if (o instanceof CharSequence) {
CharSequence cs = (CharSequence) o;
return cs == null || new StringBuilder(cs.length()).append(cs).toString()
.trim().isEmpty(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public Observable<ServiceResponse<Page<DomainOwnershipIdentifierInner>>> listOwnershipIdentifiersNextSinglePageAsync(final String nextPageLink) {
if (nextPageLink == null) {
throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
... | public class class_name {
public Observable<ServiceResponse<Page<DomainOwnershipIdentifierInner>>> listOwnershipIdentifiersNextSinglePageAsync(final String nextPageLink) {
if (nextPageLink == null) {
throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
... |
public class class_name {
@Override
public String toCompressedString() {
String result;
if(hasNoStringCache() || (result = stringCache.compressedString) == null) {
if(hasZone()) {
stringCache.compressedString = result = toNormalizedString(IPv6StringCache.compressedParams);
} else {
result = getSecti... | public class class_name {
@Override
public String toCompressedString() {
String result;
if(hasNoStringCache() || (result = stringCache.compressedString) == null) {
if(hasZone()) {
stringCache.compressedString = result = toNormalizedString(IPv6StringCache.compressedParams); // depends on control dependency:... |
public class class_name {
public static void solve(DMatrixSparseCSC G, boolean lower,
DMatrixSparseCSC B, DMatrixSparseCSC X,
@Nullable int pinv[] ,
@Nullable DGrowArray g_x, @Nullable IGrowArray g_xi, @Nullable IGrowArray g_w)
... | public class class_name {
public static void solve(DMatrixSparseCSC G, boolean lower,
DMatrixSparseCSC B, DMatrixSparseCSC X,
@Nullable int pinv[] ,
@Nullable DGrowArray g_x, @Nullable IGrowArray g_xi, @Nullable IGrowArray g_w)
... |
public class class_name {
public static Selector expressionSelector(String expr, BeanFactory beanFactory) {
StandardEvaluationContext evalCtx = new StandardEvaluationContext();
if(null != beanFactory) {
evalCtx.setBeanResolver(new BeanFactoryResolver(beanFactory));
}
return expressionSelector(expr, evalCtx)... | public class class_name {
public static Selector expressionSelector(String expr, BeanFactory beanFactory) {
StandardEvaluationContext evalCtx = new StandardEvaluationContext();
if(null != beanFactory) {
evalCtx.setBeanResolver(new BeanFactoryResolver(beanFactory)); // depends on control dependency: [if], data =... |
public class class_name {
public static void set(final Object bean, final String property, Object value) {
try {
if (property.indexOf(".") >= 0) {
final String firstProperty = property.substring(0, property.indexOf("."));
Object subBean = ClassMockUtils.get(bean, f... | public class class_name {
public static void set(final Object bean, final String property, Object value) {
try {
if (property.indexOf(".") >= 0) {
final String firstProperty = property.substring(0, property.indexOf("."));
Object subBean = ClassMockUtils.get(bean, f... |
public class class_name {
public synchronized void clear() {
if (!validState) {
throw new InvalidStateException();
}
try {
bufOutput.clear();
fcOutput.position(0).truncate(0).force(true);
offsetOutputUncommited = offsetOutputCommited = fcOutput.position();
if (callback != null) {
callback.sync... | public class class_name {
public synchronized void clear() {
if (!validState) {
throw new InvalidStateException();
}
try {
bufOutput.clear(); // depends on control dependency: [try], data = [none]
fcOutput.position(0).truncate(0).force(true); // depends on control dependency: [try], data = [none]
off... |
public class class_name {
public Double getDouble(final String key, final Double def) {
Double val = getDouble(key);
if (val == null) {
if (map.containsKey(key)) {
return null;
}
return def;
}
return val;
} } | public class class_name {
public Double getDouble(final String key, final Double def) {
Double val = getDouble(key);
if (val == null) {
if (map.containsKey(key)) {
return null; // depends on control dependency: [if], data = [none]
}
return def; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void channelActiveSideEffects(final ChannelHandlerContext ctx) {
long interval = env().keepAliveInterval();
if (env().continuousKeepAliveEnabled()) {
continuousKeepAliveFuture = ctx.executor().scheduleAtFixedRate(new Runnable() {
@Override
... | public class class_name {
private void channelActiveSideEffects(final ChannelHandlerContext ctx) {
long interval = env().keepAliveInterval();
if (env().continuousKeepAliveEnabled()) {
continuousKeepAliveFuture = ctx.executor().scheduleAtFixedRate(new Runnable() {
@Override
... |
public class class_name {
@Override
public boolean onTap(LatLong tapLatLong, Point layerXY, Point tapXY) {
for (int i = layers.size() - 1; i >= 0; i--) {
Layer layer = layers.get(i);
if (layer.onTap(tapLatLong, layerXY, tapXY)) {
return true;
}
}
... | public class class_name {
@Override
public boolean onTap(LatLong tapLatLong, Point layerXY, Point tapXY) {
for (int i = layers.size() - 1; i >= 0; i--) {
Layer layer = layers.get(i);
if (layer.onTap(tapLatLong, layerXY, tapXY)) {
return true; // depends on control de... |
public class class_name {
public void marshall(GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest, ProtocolMarshaller protocolMarshaller) {
if (getCommentsForComparedCommitRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(GetCommentsForComparedCommitRequest getCommentsForComparedCommitRequest, ProtocolMarshaller protocolMarshaller) {
if (getCommentsForComparedCommitRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
protected void addProcessedData(List<List<CRFDatum<Collection<String>, String>>> processedData, int[][][][] data,
int[][] labels, int offset) {
for (int i = 0, pdSize = processedData.size(); i < pdSize; i++) {
int dataIndex = i + offset;
List<CRFDatum<Collection<Stri... | public class class_name {
protected void addProcessedData(List<List<CRFDatum<Collection<String>, String>>> processedData, int[][][][] data,
int[][] labels, int offset) {
for (int i = 0, pdSize = processedData.size(); i < pdSize; i++) {
int dataIndex = i + offset;
List<CRFDatum<Collection<Stri... |
public class class_name {
static private long skipForward(InputStream is, long toSkip)
throws IOException {
long eachSkip = 0;
long skipped = 0;
while (skipped != toSkip) {
eachSkip = is.skip(toSkip - skipped);
// check if EOF is reached
if... | public class class_name {
static private long skipForward(InputStream is, long toSkip)
throws IOException {
long eachSkip = 0;
long skipped = 0;
while (skipped != toSkip) {
eachSkip = is.skip(toSkip - skipped);
// check if EOF is reached
if... |
public class class_name {
public static Set<String> getAvailableLocaleSuffixes() {
Set<String> availableLocaleSuffixes = new HashSet<>();
Locale[] availableLocales = Locale.getAvailableLocales();
for (Locale locale : availableLocales) {
StringBuilder sb = new StringBuilder();
if (locale != null) {
St... | public class class_name {
public static Set<String> getAvailableLocaleSuffixes() {
Set<String> availableLocaleSuffixes = new HashSet<>();
Locale[] availableLocales = Locale.getAvailableLocales();
for (Locale locale : availableLocales) {
StringBuilder sb = new StringBuilder();
if (locale != null) {
St... |
public class class_name {
private void addAdditionalNamenodesFromConf(final Props props) {
final String sparkConfDir = getSparkLibConf()[1];
final File sparkConfFile = new File(sparkConfDir, "spark-defaults.conf");
try {
final InputStreamReader inReader =
new InputStreamReader(new FileInput... | public class class_name {
private void addAdditionalNamenodesFromConf(final Props props) {
final String sparkConfDir = getSparkLibConf()[1];
final File sparkConfFile = new File(sparkConfDir, "spark-defaults.conf");
try {
final InputStreamReader inReader =
new InputStreamReader(new FileInput... |
public class class_name {
public static <C extends Configurable> C getConfiguration(Class<C> klass, Properties properties) {
//Initialize configuration object
C configuration;
try {
Constructor<C> constructor = klass.getDeclaredConstructor();
constructor.setAccessible(tr... | public class class_name {
public static <C extends Configurable> C getConfiguration(Class<C> klass, Properties properties) {
//Initialize configuration object
C configuration;
try {
Constructor<C> constructor = klass.getDeclaredConstructor();
constructor.setAccessible(tr... |
public class class_name {
@Override
public int doEndTag() throws JspException {
charEncoding = value;
if ((charEncoding == null)
&& (pageContext.getRequest().getCharacterEncoding() == null)) {
// Use charset from session-scoped attribute
charEncoding = (Strin... | public class class_name {
@Override
public int doEndTag() throws JspException {
charEncoding = value;
if ((charEncoding == null)
&& (pageContext.getRequest().getCharacterEncoding() == null)) {
// Use charset from session-scoped attribute
charEncoding = (Strin... |
public class class_name {
private ValidationMessage<Origin> reportError(ValidationResult result, Feature feature, String messageId, Object ... params) {
ValidationMessage<Origin> message =
EntryValidations.createMessage(feature.getOrigin(), Severity.ERROR, messageId, params);
if (Seque... | public class class_name {
private ValidationMessage<Origin> reportError(ValidationResult result, Feature feature, String messageId, Object ... params) {
ValidationMessage<Origin> message =
EntryValidations.createMessage(feature.getOrigin(), Severity.ERROR, messageId, params);
if (Seque... |
public class class_name {
@Override
public void removeByG_A(long groupId, boolean active) {
for (CommerceCurrency commerceCurrency : findByG_A(groupId, active,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceCurrency);
}
} } | public class class_name {
@Override
public void removeByG_A(long groupId, boolean active) {
for (CommerceCurrency commerceCurrency : findByG_A(groupId, active,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceCurrency); // depends on control dependency: [for], data = [commerceCurrency]
}
} } |
public class class_name {
public static Partition fromString(String strForm) {
if (strForm == null || strForm.isEmpty()) throw new IllegalArgumentException("null or empty string provided");
Partition p = new Partition();
int index = 0;
if (strForm.charAt(0) == '[') {
index... | public class class_name {
public static Partition fromString(String strForm) {
if (strForm == null || strForm.isEmpty()) throw new IllegalArgumentException("null or empty string provided");
Partition p = new Partition();
int index = 0;
if (strForm.charAt(0) == '[') {
index... |
public class class_name {
public void addReadFields(FieldSet readFields) {
if(this.readFields == null) {
this.readFields = new FieldSet(readFields);
} else {
this.readFields.addAll(readFields);
}
} } | public class class_name {
public void addReadFields(FieldSet readFields) {
if(this.readFields == null) {
this.readFields = new FieldSet(readFields); // depends on control dependency: [if], data = [none]
} else {
this.readFields.addAll(readFields); // depends on control dependency: [if], data = [none]
}
} ... |
public class class_name {
public void setIndexFields(java.util.Collection<IndexFieldStatus> indexFields) {
if (indexFields == null) {
this.indexFields = null;
return;
}
this.indexFields = new com.amazonaws.internal.SdkInternalList<IndexFieldStatus>(indexFields);
} } | public class class_name {
public void setIndexFields(java.util.Collection<IndexFieldStatus> indexFields) {
if (indexFields == null) {
this.indexFields = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public Hoarde<T> each(BiConsumer<T, Integer> init) {
for (int i = 0; i < actors.length; i++) {
init.accept( (T) actors[i], i );
}
return this;
} } | public class class_name {
public Hoarde<T> each(BiConsumer<T, Integer> init) {
for (int i = 0; i < actors.length; i++) {
init.accept( (T) actors[i], i ); // depends on control dependency: [for], data = [i]
}
return this;
} } |
public class class_name {
protected Artifact resolveArtifact(final Artifact artifact, final boolean transitive) throws MojoExecutionException {
assert artifact != null;
try {
if (transitive) {
artifactResolver.resolveTransitively(
Collections.singlet... | public class class_name {
protected Artifact resolveArtifact(final Artifact artifact, final boolean transitive) throws MojoExecutionException {
assert artifact != null;
try {
if (transitive) {
artifactResolver.resolveTransitively(
Collections.singlet... |
public class class_name {
@PostConstruct
public void buildRepository() {
try {
LOGGER.info("Using repo config (classpath): {}", repositoryConfiguration.getURL());
getPropertiesLoader().loadSystemProperties();
final RepositoryConfiguration config =
Re... | public class class_name {
@PostConstruct
public void buildRepository() {
try {
LOGGER.info("Using repo config (classpath): {}", repositoryConfiguration.getURL()); // depends on control dependency: [try], data = [none]
getPropertiesLoader().loadSystemProperties(); // depends on contr... |
public class class_name {
public void calcAsas(int nSpherePoints, int nThreads, int cofactorSizeToUse) {
// asa/bsa calculation
// NOTE in principle it is more efficient to calculate asas only once per unique chain
// BUT! the rolling ball algorithm gives slightly different values for same molecule in different... | public class class_name {
public void calcAsas(int nSpherePoints, int nThreads, int cofactorSizeToUse) {
// asa/bsa calculation
// NOTE in principle it is more efficient to calculate asas only once per unique chain
// BUT! the rolling ball algorithm gives slightly different values for same molecule in different... |
public class class_name {
@Nonnull
@ReturnsMutableCopy
public Matrix getD ()
{
final Matrix aNewMatrix = new Matrix (m_nDim, m_nDim);
final double [] [] aNewArray = aNewMatrix.internalGetArray ();
for (int nRow = 0; nRow < m_nDim; nRow++)
{
final double [] aDstRow = aNewArray[nRow];
A... | public class class_name {
@Nonnull
@ReturnsMutableCopy
public Matrix getD ()
{
final Matrix aNewMatrix = new Matrix (m_nDim, m_nDim);
final double [] [] aNewArray = aNewMatrix.internalGetArray ();
for (int nRow = 0; nRow < m_nDim; nRow++)
{
final double [] aDstRow = aNewArray[nRow];
A... |
public class class_name {
@Override
public void shutdown(ShutdownModeAmp mode)
{
TreeSet<String> serviceNames = new TreeSet<>(_serviceMap.keySet());
// HashSet<ServiceRefAmp> serviceSet = new HashSet<>(_serviceMap.values());
if (mode == ShutdownModeAmp.GRACEFUL) {
save(serviceNames);
... | public class class_name {
@Override
public void shutdown(ShutdownModeAmp mode)
{
TreeSet<String> serviceNames = new TreeSet<>(_serviceMap.keySet());
// HashSet<ServiceRefAmp> serviceSet = new HashSet<>(_serviceMap.values());
if (mode == ShutdownModeAmp.GRACEFUL) {
save(serviceNames); //... |
public class class_name {
public static void setClassConf(Configuration conf,
String configKey,
Class<?> clazz) {
String existingClass = conf.get(configKey);
String className = clazz.getName();
if (existingClass != null && ... | public class class_name {
public static void setClassConf(Configuration conf,
String configKey,
Class<?> clazz) {
String existingClass = conf.get(configKey);
String className = clazz.getName();
if (existingClass != null && ... |
public class class_name {
public void sync() throws IOException {
long start = System.currentTimeMillis();
try {
long toWaitFor;
synchronized (this) {
eventStartSync();
/* Record current blockOffset. This might be changed inside
* flushBuffer() where a partial checksum chunk... | public class class_name {
public void sync() throws IOException {
long start = System.currentTimeMillis();
try {
long toWaitFor;
synchronized (this) {
eventStartSync();
/* Record current blockOffset. This might be changed inside
* flushBuffer() where a partial checksum chunk... |
public class class_name {
public void setArguments(Method method) {
Parameter[] parameters = method.getParameters();
Class<?>[] parameterTypes = method.getParameterTypes();
Annotation[][] annotations = method.getParameterAnnotations();
async = isAsync(method.getReturnType());
returnType = method.getReturnT... | public class class_name {
public void setArguments(Method method) {
Parameter[] parameters = method.getParameters();
Class<?>[] parameterTypes = method.getParameterTypes();
Annotation[][] annotations = method.getParameterAnnotations();
async = isAsync(method.getReturnType());
returnType = method.getReturnT... |
public class class_name {
public void disconnectSocket() {
synchronized (lock) {
if (socketConnection != null) {
socketConnection.setManageReconnection(false);
socketConnection.disconnect();
}
lock.notifyAll();
}
} } | public class class_name {
public void disconnectSocket() {
synchronized (lock) {
if (socketConnection != null) {
socketConnection.setManageReconnection(false); // depends on control dependency: [if], data = [none]
socketConnection.disconnect(); // depends on control ... |
public class class_name {
public static byte[] decodeChecked(String input) {
byte tmp[] = decode(input);
if (tmp == null || tmp.length < 4) {
return null;
}
byte[] bytes = copyOfRange(tmp, 0, tmp.length - 4);
byte[] checksum = copyOfRange(tmp, tmp.length - 4, tmp.length);
... | public class class_name {
public static byte[] decodeChecked(String input) {
byte tmp[] = decode(input);
if (tmp == null || tmp.length < 4) {
return null; // depends on control dependency: [if], data = [none]
}
byte[] bytes = copyOfRange(tmp, 0, tmp.length - 4);
byte[] checksum =... |
public class class_name {
public static void configureLogback( ServletContext servletContext, File logDirFallback, String vHostName, Logger log ) throws FileNotFoundException, MalformedURLException, IOException {
log.debug("Reconfiguring Logback!");
String systemLogDir = System.getProperty(LOG_DIRECTORY_OVERRI... | public class class_name {
public static void configureLogback( ServletContext servletContext, File logDirFallback, String vHostName, Logger log ) throws FileNotFoundException, MalformedURLException, IOException {
log.debug("Reconfiguring Logback!");
String systemLogDir = System.getProperty(LOG_DIRECTORY_OVERRI... |
public class class_name {
public boolean setFieldProperty(String field, String name, Object value, int inst[]) {
if (writer == null)
throw new RuntimeException("This AcroFields instance is read-only.");
try {
Item item = (Item)fields.get(field);
if (item == null)
... | public class class_name {
public boolean setFieldProperty(String field, String name, Object value, int inst[]) {
if (writer == null)
throw new RuntimeException("This AcroFields instance is read-only.");
try {
Item item = (Item)fields.get(field);
if (item == null)
... |
public class class_name {
public static FullTypeInfo getFullTemplateType(Type type, int templatePosition) {
if (type instanceof ParameterizedType) {
return getFullTemplateType(((ParameterizedType) type).getActualTypeArguments()[templatePosition]);
} else {
throw new IllegalArgumentException();
}
} } | public class class_name {
public static FullTypeInfo getFullTemplateType(Type type, int templatePosition) {
if (type instanceof ParameterizedType) {
return getFullTemplateType(((ParameterizedType) type).getActualTypeArguments()[templatePosition]); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public void waitForOperaIdle(long timeout) {
if (captureIdleEvents && capturedIdleEvents > 0) {
logger.finer("Captured " + capturedIdleEvents + " idle event(s)");
// reset
captureIdleEvents = false;
capturedIdleEvents = 0;
return;
}
// If we're waiti... | public class class_name {
public void waitForOperaIdle(long timeout) {
if (captureIdleEvents && capturedIdleEvents > 0) {
logger.finer("Captured " + capturedIdleEvents + " idle event(s)"); // depends on control dependency: [if], data = [none]
// reset
captureIdleEvents = false; // depends on cont... |
public class class_name {
protected void putJobImpl(Executable job)
{
JobItem posted = new JobItem(job);
if (m_currentJob == null)
{
// The queue is empty, set the current job to process and
// wake up the thread waiting in method getJob
m_currentJob = posted;
... | public class class_name {
protected void putJobImpl(Executable job)
{
JobItem posted = new JobItem(job);
if (m_currentJob == null)
{
// The queue is empty, set the current job to process and
// wake up the thread waiting in method getJob
m_currentJob = posted; //... |
public class class_name {
public boolean hasSingleActions() {
Iterator<CmsListColumnDefinition> itCols = m_columns.elementList().iterator();
while (itCols.hasNext()) {
CmsListColumnDefinition col = itCols.next();
if (!col.getDefaultActions().isEmpty() || !col.getDirectActions()... | public class class_name {
public boolean hasSingleActions() {
Iterator<CmsListColumnDefinition> itCols = m_columns.elementList().iterator();
while (itCols.hasNext()) {
CmsListColumnDefinition col = itCols.next();
if (!col.getDefaultActions().isEmpty() || !col.getDirectActions()... |
public class class_name {
public List<String> getQualityCSV(String name) {
QuotedQualityCSV values = null;
for (HttpField f : this) {
if (f.getName().equalsIgnoreCase(name)) {
if (values == null)
values = new QuotedQualityCSV();
values.add... | public class class_name {
public List<String> getQualityCSV(String name) {
QuotedQualityCSV values = null;
for (HttpField f : this) {
if (f.getName().equalsIgnoreCase(name)) {
if (values == null)
values = new QuotedQualityCSV();
values.add... |
public class class_name {
public Module getModule(final DbModule dbModule) {
final Module module = DataModelFactory.createModule(dbModule.getName(), dbModule.getVersion());
module.setPromoted(dbModule.isPromoted());
module.setSubmodule(dbModule.isSubmodule());
module.setCreatedDateTime(... | public class class_name {
public Module getModule(final DbModule dbModule) {
final Module module = DataModelFactory.createModule(dbModule.getName(), dbModule.getVersion());
module.setPromoted(dbModule.isPromoted());
module.setSubmodule(dbModule.isSubmodule());
module.setCreatedDateTime(... |
public class class_name {
public String getStyle() {
final Object result = getStateHelper().eval(PropertyKeys.style, null);
if (result == null) {
return null;
}
return result.toString();
} } | public class class_name {
public String getStyle() {
final Object result = getStateHelper().eval(PropertyKeys.style, null);
if (result == null) {
return null; // depends on control dependency: [if], data = [none]
}
return result.toString();
} } |
public class class_name {
public TypeElement searchClass(TypeElement klass, String className) {
// search by qualified name first
TypeElement te = configuration.docEnv.getElementUtils().getTypeElement(className);
if (te != null) {
return te;
}
// search inner classe... | public class class_name {
public TypeElement searchClass(TypeElement klass, String className) {
// search by qualified name first
TypeElement te = configuration.docEnv.getElementUtils().getTypeElement(className);
if (te != null) {
return te; // depends on control dependency: [if], d... |
public class class_name {
public static Map<DataSourceWrapper, List<ShardRouteInfo>> groupRouteInfosByDataSource(DDRDataSource ddrDataSource,
boolean readOnly,
... | public class class_name {
public static Map<DataSourceWrapper, List<ShardRouteInfo>> groupRouteInfosByDataSource(DDRDataSource ddrDataSource,
boolean readOnly,
... |
public class class_name {
public void setResourceTags(java.util.Collection<ResourceTag> resourceTags) {
if (resourceTags == null) {
this.resourceTags = null;
return;
}
this.resourceTags = new com.amazonaws.internal.SdkInternalList<ResourceTag>(resourceTags);
} } | public class class_name {
public void setResourceTags(java.util.Collection<ResourceTag> resourceTags) {
if (resourceTags == null) {
this.resourceTags = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static boolean resourceExists(String path, AbstractLaContainerBuilder builder) {
InputStream is;
try {
is = builder.getResourceResolver().getInputStream(path);
} catch (IORuntimeException ex) {
if (ex.getCause() instanceof FileNotFoundExc... | public class class_name {
public static boolean resourceExists(String path, AbstractLaContainerBuilder builder) {
InputStream is;
try {
is = builder.getResourceResolver().getInputStream(path); // depends on control dependency: [try], data = [none]
} catch (IORuntimeException ex) {
... |
public class class_name {
@Override
public void start()
{
_lifecycle.toActive();
_exitCode.set(null);
if (! _isEmbedded) {
// _activeService.compareAndSet(null, this);
_activeService.set(this);
}
if (! CurrentTime.isTest() && ! _isEmbedded) {
_failSafeHaltThread... | public class class_name {
@Override
public void start()
{
_lifecycle.toActive();
_exitCode.set(null);
if (! _isEmbedded) {
// _activeService.compareAndSet(null, this);
_activeService.set(this); // depends on control dependency: [if], data = [none]
}
if (! CurrentTime.... |
public class class_name {
public void body(Data data, Body body) throws TemplateException {
boolean parseLiteral = true;
// Comment
comment(data.srcCode, false);
// Tag
// is Tag Beginning
if (data.srcCode.isCurrent('<')) {
// return if end tag and inside tag
if (data.srcCode.isNext('/')) {
// lucee... | public class class_name {
public void body(Data data, Body body) throws TemplateException {
boolean parseLiteral = true;
// Comment
comment(data.srcCode, false);
// Tag
// is Tag Beginning
if (data.srcCode.isCurrent('<')) {
// return if end tag and inside tag
if (data.srcCode.isNext('/')) {
// lucee... |
public class class_name {
public void setProperties(Object bean, Map map) {
checkInitalised();
for (Iterator iter = map.entrySet().iterator(); iter.hasNext();) {
Map.Entry entry = (Map.Entry) iter.next();
String key = entry.getKey().toString();
Object value = entry.... | public class class_name {
public void setProperties(Object bean, Map map) {
checkInitalised();
for (Iterator iter = map.entrySet().iterator(); iter.hasNext();) {
Map.Entry entry = (Map.Entry) iter.next();
String key = entry.getKey().toString();
Object value = entry.... |
public class class_name {
protected void initialize(Class<?> type, Object oldInstance, Object newInstance, Encoder out)
{
//
// Get the bean and associated beanInfo for the source instance
//
ControlBean control = (ControlBean)oldInstance;
BeanInfo beanInfo;
try
... | public class class_name {
protected void initialize(Class<?> type, Object oldInstance, Object newInstance, Encoder out)
{
//
// Get the bean and associated beanInfo for the source instance
//
ControlBean control = (ControlBean)oldInstance;
BeanInfo beanInfo;
try
... |
public class class_name {
public static <T> boolean isContainString(List<T> stringObjects,
Object stringObject) {
if (ListUtil.isEmpty(stringObjects) || stringObject == null) {
return false;
}
for (T tempStringObject : stringObjects) {
if (stringObject.toString().equals(tempStringObject.toString())) {
... | public class class_name {
public static <T> boolean isContainString(List<T> stringObjects,
Object stringObject) {
if (ListUtil.isEmpty(stringObjects) || stringObject == null) {
return false; // depends on control dependency: [if], data = [none]
}
for (T tempStringObject : stringObjects) {
if (stringObje... |
public class class_name {
protected BooleanQuery.Builder appendResourceTypeFilter(
CmsObject cms,
BooleanQuery.Builder filter,
List<String> resourceTypes) {
if ((resourceTypes != null) && (resourceTypes.size() > 0)) {
// add query resource types (if required)
fi... | public class class_name {
protected BooleanQuery.Builder appendResourceTypeFilter(
CmsObject cms,
BooleanQuery.Builder filter,
List<String> resourceTypes) {
if ((resourceTypes != null) && (resourceTypes.size() > 0)) {
// add query resource types (if required)
fi... |
public class class_name {
@Override
public String[] getValue() {
Object data = getData();
if (data == null) {
return null;
}
String[] array = null;
// Array data
if (data instanceof String[]) {
array = (String[]) data;
} else if (data instanceof List) { // List data
List<?> list = (List<?>) d... | public class class_name {
@Override
public String[] getValue() {
Object data = getData();
if (data == null) {
return null; // depends on control dependency: [if], data = [none]
}
String[] array = null;
// Array data
if (data instanceof String[]) {
array = (String[]) data; // depends on control dep... |
public class class_name {
private static String getCellFontColor(final Font font) {
short[] rgbfix = { TieConstants.RGB_MAX, TieConstants.RGB_MAX,
TieConstants.RGB_MAX };
if (font instanceof XSSFFont) {
XSSFColor color = ((XSSFFont) font).getXSSFColor();
if (color != null) {
rgbfix = ColorUtili... | public class class_name {
private static String getCellFontColor(final Font font) {
short[] rgbfix = { TieConstants.RGB_MAX, TieConstants.RGB_MAX,
TieConstants.RGB_MAX };
if (font instanceof XSSFFont) {
XSSFColor color = ((XSSFFont) font).getXSSFColor();
if (color != null) {
rgbfix = ColorUtili... |
public class class_name {
public static boolean closeServerSocket(ServerSocket serverSocket)
{
boolean closed = true;
try
{
if (serverSocket != null && !serverSocket.isClosed())
{
serverSocket.close();
serverSocket = null;
}
}
catch (final IOException e)
{
LOGGER.error("IO... | public class class_name {
public static boolean closeServerSocket(ServerSocket serverSocket)
{
boolean closed = true;
try
{
if (serverSocket != null && !serverSocket.isClosed())
{
serverSocket.close();
// depends on control dependency: [if], data = [none]
serverSocket = null;
// depends o... |
public class class_name {
protected String getCore() {
try {
return m_configObject.getString(JSON_KEY_CORE);
} catch (JSONException e) {
if (null == m_baseConfig) {
if (LOG.isInfoEnabled()) {
LOG.info(Messages.get().getBundle().key(Messages.L... | public class class_name {
protected String getCore() {
try {
return m_configObject.getString(JSON_KEY_CORE); // depends on control dependency: [try], data = [none]
} catch (JSONException e) {
if (null == m_baseConfig) {
if (LOG.isInfoEnabled()) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.