code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Nullable
public static Long parseLongObj (@Nullable final String sStr,
@Nonnegative final int nRadix,
@Nullable final Long aDefault)
{
if (sStr != null && sStr.length () > 0)
try
{
return Long.v... | public class class_name {
@Nullable
public static Long parseLongObj (@Nullable final String sStr,
@Nonnegative final int nRadix,
@Nullable final Long aDefault)
{
if (sStr != null && sStr.length () > 0)
try
{
return Long.v... |
public class class_name {
private List processProperties(List properties, CmsContentCheckResource testResource) {
List results = new ArrayList();
if (LOG.isDebugEnabled()) {
LOG.debug(
Messages.get().getBundle().key(Messages.LOG_DEBUG_PROPERTY_RESOURCE_1, testResource.getR... | public class class_name {
private List processProperties(List properties, CmsContentCheckResource testResource) {
List results = new ArrayList();
if (LOG.isDebugEnabled()) {
LOG.debug(
Messages.get().getBundle().key(Messages.LOG_DEBUG_PROPERTY_RESOURCE_1, testResource.getR... |
public class class_name {
private void setHandshakeFailure(ChannelHandlerContext ctx, Throwable cause, boolean closeInbound,
boolean notify, boolean alwaysFlushAndClose) {
try {
// Release all resources such as internal buffers that SSLEngine
// is m... | public class class_name {
private void setHandshakeFailure(ChannelHandlerContext ctx, Throwable cause, boolean closeInbound,
boolean notify, boolean alwaysFlushAndClose) {
try {
// Release all resources such as internal buffers that SSLEngine
// is m... |
public class class_name {
public void close() {
if (blk != null) {
tx.bufferMgr().unpin(currentBuff);
blk = null;
currentBuff = null;
}
} } | public class class_name {
public void close() {
if (blk != null) {
tx.bufferMgr().unpin(currentBuff);
// depends on control dependency: [if], data = [none]
blk = null;
// depends on control dependency: [if], data = [none]
currentBuff = null;
// depends on control dependency: [if], data = [none]
}
}... |
public class class_name {
private void handleLangs(final Map<String, Object> dataModel) {
final Locale locale = Latkes.getLocale();
final String language = locale.getLanguage();
final String country = locale.getCountry();
final String variant = locale.getVariant();
final String... | public class class_name {
private void handleLangs(final Map<String, Object> dataModel) {
final Locale locale = Latkes.getLocale();
final String language = locale.getLanguage();
final String country = locale.getCountry();
final String variant = locale.getVariant();
final String... |
public class class_name {
public static double of(double... data) {
double sum = 0.;
for(double v : data) {
sum += v;
}
return sum / data.length;
} } | public class class_name {
public static double of(double... data) {
double sum = 0.;
for(double v : data) {
sum += v; // depends on control dependency: [for], data = [v]
}
return sum / data.length;
} } |
public class class_name {
protected boolean shouldAddContentPart(String key)
{
boolean addPart=true;
if(key.equals(FaxJob2HTTPRequestConverterConfigurationConstants.IGNORE_PARAMETER_KEY.toString()))
{
addPart=false;
}
return addPart;
} } | public class class_name {
protected boolean shouldAddContentPart(String key)
{
boolean addPart=true;
if(key.equals(FaxJob2HTTPRequestConverterConfigurationConstants.IGNORE_PARAMETER_KEY.toString()))
{
addPart=false; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
public void marshall(CreateModelRequest createModelRequest, ProtocolMarshaller protocolMarshaller) {
if (createModelRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(CreateModelRequest createModelRequest, ProtocolMarshaller protocolMarshaller) {
if (createModelRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
private BasicTimeChecker getBasicTimeChecker(final Map<String, ConditionChecker> checkers) {
for (final ConditionChecker checker : checkers.values()) {
if (checker.getType().equals(BasicTimeChecker.type)) {
return (BasicTimeChecker) checker;
}
}
return null;
... | public class class_name {
private BasicTimeChecker getBasicTimeChecker(final Map<String, ConditionChecker> checkers) {
for (final ConditionChecker checker : checkers.values()) {
if (checker.getType().equals(BasicTimeChecker.type)) {
return (BasicTimeChecker) checker; // depends on control dependency:... |
public class class_name {
public void consolidate(List targets)
{
if (tc.isEntryEnabled()) SibTr.entry(tc, "consolidate", targets);
Iterator itr = targets.iterator();
// Reset the lists for this level
levelUsersAllowedToSubscribe.clear();
levelUsersAllowedToPublish.clear();
levelG... | public class class_name {
public void consolidate(List targets)
{
if (tc.isEntryEnabled()) SibTr.entry(tc, "consolidate", targets);
Iterator itr = targets.iterator();
// Reset the lists for this level
levelUsersAllowedToSubscribe.clear();
levelUsersAllowedToPublish.clear();
levelG... |
public class class_name {
@GET
@Path("/{dataSourceName}/handoffComplete")
@Produces(MediaType.APPLICATION_JSON)
@ResourceFilters(DatasourceResourceFilter.class)
public Response isHandOffComplete(
@PathParam("dataSourceName") String dataSourceName,
@QueryParam("interval") final String interval,
... | public class class_name {
@GET
@Path("/{dataSourceName}/handoffComplete")
@Produces(MediaType.APPLICATION_JSON)
@ResourceFilters(DatasourceResourceFilter.class)
public Response isHandOffComplete(
@PathParam("dataSourceName") String dataSourceName,
@QueryParam("interval") final String interval,
... |
public class class_name {
public boolean isIdentifier(String... values) {
if (values.length == 0) {
return is(TokenType.ID);
}
for (String value : values) {
if (matches(TokenType.ID, value)) {
return true;
}
}
return false;
... | public class class_name {
public boolean isIdentifier(String... values) {
if (values.length == 0) {
return is(TokenType.ID); // depends on control dependency: [if], data = [none]
}
for (String value : values) {
if (matches(TokenType.ID, value)) {
return t... |
public class class_name {
private NodeUsageReport getReportUnprotected(String trackerName) {
NodeUsageReport usageReport = usageReports.get(trackerName);
if (usageReport == null) {
usageReport = new NodeUsageReport(trackerName, 0, 0, 0, 0, 0, 0, 0);
usageReports.put(trackerName, usageReport);
}... | public class class_name {
private NodeUsageReport getReportUnprotected(String trackerName) {
NodeUsageReport usageReport = usageReports.get(trackerName);
if (usageReport == null) {
usageReport = new NodeUsageReport(trackerName, 0, 0, 0, 0, 0, 0, 0); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void setExcludeList(List<String> urls) {
if (urls == null || urls.isEmpty()) {
excludeList = Collections.emptyList();
return;
}
this.excludeList = urls;
} } | public class class_name {
public void setExcludeList(List<String> urls) {
if (urls == null || urls.isEmpty()) {
excludeList = Collections.emptyList();
// depends on control dependency: [if], data = [none]
return;
// depends on control dependency: [if], data = [none]
}
this.excludeList = urls;
} } |
public class class_name {
public Integer getDay() {
String dateValue = getValue();
if (dateValue != null && dateValue.length() == DAY_END) {
return parseDateComponent(dateValue.substring(DAY_START, DAY_END), getPaddingChar());
} else {
return null;
}
} } | public class class_name {
public Integer getDay() {
String dateValue = getValue();
if (dateValue != null && dateValue.length() == DAY_END) {
return parseDateComponent(dateValue.substring(DAY_START, DAY_END), getPaddingChar()); // depends on control dependency: [if], data = [DAY_END)]
} else {
return null;... |
public class class_name {
public LocalTime withSecond(int second) {
if (this.second == second) {
return this;
}
SECOND_OF_MINUTE.checkValidValue(second);
return create(hour, minute, second, nano);
} } | public class class_name {
public LocalTime withSecond(int second) {
if (this.second == second) {
return this; // depends on control dependency: [if], data = [none]
}
SECOND_OF_MINUTE.checkValidValue(second);
return create(hour, minute, second, nano);
} } |
public class class_name {
public boolean matchIgnoredPropertyTypes(final Class propertyType, final boolean excludeMaps, final boolean include) {
if (!include) {
return false;
}
if (propertyType != null) {
if (!jsonSerializer.deep) {
ClassDescriptor propertyTypeClassDescriptor = ClassIntrospector.get()... | public class class_name {
public boolean matchIgnoredPropertyTypes(final Class propertyType, final boolean excludeMaps, final boolean include) {
if (!include) {
return false; // depends on control dependency: [if], data = [none]
}
if (propertyType != null) {
if (!jsonSerializer.deep) {
ClassDescriptor... |
public class class_name {
private static Set<Attr> collectAttributes(Element element, boolean includeCssClass) {
Set<Attr> attributes = new HashSet<Attr>();
Attr cssClass = null;
boolean foundDataCssClass = false;
for (Attr attr : element.getAttrs()) {
final AttrImpl attrImpl = new AttrImpl(attr);
... | public class class_name {
private static Set<Attr> collectAttributes(Element element, boolean includeCssClass) {
Set<Attr> attributes = new HashSet<Attr>();
Attr cssClass = null;
boolean foundDataCssClass = false;
for (Attr attr : element.getAttrs()) {
final AttrImpl attrImpl = new AttrImpl(attr);
... |
public class class_name {
private void simulateCommitBean(BeanO beanO, ContainerTx containerTx) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "simulateCommitBean");
// React to exceptions the same as afterComple... | public class class_name {
private void simulateCommitBean(BeanO beanO, ContainerTx containerTx) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "simulateCommitBean");
// React to exceptions the same as afterComple... |
public class class_name {
@Override
public <E> List<E> sort(final List<E> elements) {
int position = elements.size();
do {
int lastSwapPosition = 0;
for (int index = 1; index < position; index++) {
if (getOrderBy().compare(elements.get(index - 1), elements.get(index)) > 0) {
s... | public class class_name {
@Override
public <E> List<E> sort(final List<E> elements) {
int position = elements.size();
do {
int lastSwapPosition = 0;
for (int index = 1; index < position; index++) {
if (getOrderBy().compare(elements.get(index - 1), elements.get(index)) > 0) {
s... |
public class class_name {
private ISFSArray parseObjectArray(ClassUnwrapper unwrapper,
Object[] array) {
ISFSArray result = new SFSArray();
for(Object obj : array) {
result.addSFSObject(object2params(unwrapper, obj));
}
return result;
} } | public class class_name {
private ISFSArray parseObjectArray(ClassUnwrapper unwrapper,
Object[] array) {
ISFSArray result = new SFSArray();
for(Object obj : array) {
result.addSFSObject(object2params(unwrapper, obj)); // depends on control dependency: [for], data = [obj]
... |
public class class_name {
public List<Query> shard(SortedSet<ByteString> splitPoints) {
Preconditions.checkState(builder.getRowsLimit() == 0, "Can't shard a query with a row limit");
List<RowSet> shardedRowSets = RowSetUtil.shard(builder.getRows(), splitPoints);
List<Query> shards = Lists.newArrayListWith... | public class class_name {
public List<Query> shard(SortedSet<ByteString> splitPoints) {
Preconditions.checkState(builder.getRowsLimit() == 0, "Can't shard a query with a row limit");
List<RowSet> shardedRowSets = RowSetUtil.shard(builder.getRows(), splitPoints);
List<Query> shards = Lists.newArrayListWith... |
public class class_name {
public int getDistance(final NetworkNode networkNode) {
int steps = 0;
NetworkNode tmp = this;
while (tmp != null) {
final int distance = tmp.isPredecessorOrSelfOf(networkNode);
if (distance >= 0) {
return (steps + distance);
}
tmp = tmp.getParentNode();
++steps;
... | public class class_name {
public int getDistance(final NetworkNode networkNode) {
int steps = 0;
NetworkNode tmp = this;
while (tmp != null) {
final int distance = tmp.isPredecessorOrSelfOf(networkNode);
if (distance >= 0) {
return (steps + distance); // depends on control dependency: [if], data = [n... |
public class class_name {
private void initialize() {
frmSsTraceParser = new JFrame();
frmSsTraceParser.setTitle("SS7 Trace Parser");
frmSsTraceParser.setResizable(false);
frmSsTraceParser.setBounds(100, 100, 569, 716);
frmSsTraceParser.setDefaultCloseOperation(JFrame.EXIT_ON_CL... | public class class_name {
private void initialize() {
frmSsTraceParser = new JFrame();
frmSsTraceParser.setTitle("SS7 Trace Parser");
frmSsTraceParser.setResizable(false);
frmSsTraceParser.setBounds(100, 100, 569, 716);
frmSsTraceParser.setDefaultCloseOperation(JFrame.EXIT_ON_CL... |
public class class_name {
public static IScope findRoot(IScope from) {
IScope current = from;
while (current.hasParent()) {
current = current.getParent();
}
return current;
} } | public class class_name {
public static IScope findRoot(IScope from) {
IScope current = from;
while (current.hasParent()) {
current = current.getParent(); // depends on control dependency: [while], data = [none]
}
return current;
} } |
public class class_name {
@Override
public void startContentLine(ChainWriter out, WebSiteRequest req, HttpServletResponse resp, int colspan, String align, String width) {
out.print(" <tr>\n"
+ " <td");
if(width!=null && width.length()>0) {
out.append(" style='width:");
out.append(width);
out.appe... | public class class_name {
@Override
public void startContentLine(ChainWriter out, WebSiteRequest req, HttpServletResponse resp, int colspan, String align, String width) {
out.print(" <tr>\n"
+ " <td");
if(width!=null && width.length()>0) {
out.append(" style='width:");
out.append(width);
out.appe... |
public class class_name {
private void writeHydraVariableMapping(JsonGenerator jgen, @Nullable ActionDescriptor annotatedParameters,
Collection<String> variableNames) throws IOException {
if (annotatedParameters != null) {
for (String variableName : variab... | public class class_name {
private void writeHydraVariableMapping(JsonGenerator jgen, @Nullable ActionDescriptor annotatedParameters,
Collection<String> variableNames) throws IOException {
if (annotatedParameters != null) {
for (String variableName : variab... |
public class class_name {
public static Predicate<InetAddress> ofExact(InetAddress address) {
requireNonNull(address, "address");
if (address instanceof Inet4Address) {
return ofCidr(address, 32);
}
if (address instanceof Inet6Address) {
return ofCidr(address, 12... | public class class_name {
public static Predicate<InetAddress> ofExact(InetAddress address) {
requireNonNull(address, "address");
if (address instanceof Inet4Address) {
return ofCidr(address, 32); // depends on control dependency: [if], data = [none]
}
if (address instanceof... |
public class class_name {
FormattedListBuilder format(Collection<?> items, int index) {
Iterator<?> it = items.iterator();
int count = items.size();
switch (count) {
case 0:
return new FormattedListBuilder("", false);
case 1:
return new FormattedListBuild... | public class class_name {
FormattedListBuilder format(Collection<?> items, int index) {
Iterator<?> it = items.iterator();
int count = items.size();
switch (count) {
case 0:
return new FormattedListBuilder("", false);
case 1:
return new FormattedListBuild... |
public class class_name {
public void updateFragementWithSelectedCorpus(Set<String> corpora)
{
if (corpora != null && !corpora.isEmpty())
{
String fragment = "_c=" + Helper.encodeBase64URL(StringUtils.
join(corpora, ","));
UI.getCurrent().getPage().setUriFragment(fragment);
}
else... | public class class_name {
public void updateFragementWithSelectedCorpus(Set<String> corpora)
{
if (corpora != null && !corpora.isEmpty())
{
String fragment = "_c=" + Helper.encodeBase64URL(StringUtils.
join(corpora, ","));
UI.getCurrent().getPage().setUriFragment(fragment); // depends on ... |
public class class_name {
public static StringBuilder generateIdPrefix(String template, String prefix) {
NullArgumentException.checkNotNull(template, "template");
NullArgumentException.checkNotNull(prefix, "prefix");
assert isValidId(prefix);
final int len = template.length();
// First character must be [A-Z... | public class class_name {
public static StringBuilder generateIdPrefix(String template, String prefix) {
NullArgumentException.checkNotNull(template, "template");
NullArgumentException.checkNotNull(prefix, "prefix");
assert isValidId(prefix);
final int len = template.length();
// First character must be [A-Z... |
public class class_name {
private static void addOrder(Criteria c, String sort, String order, boolean ignoreCase) {
if (ORDER_DESC.equals(order)) {
c.addOrder(ignoreCase ? Order.desc(sort).ignoreCase() : Order.desc(sort));
}
else {
c.addOrder(ignoreCase ? Order.asc(sort)... | public class class_name {
private static void addOrder(Criteria c, String sort, String order, boolean ignoreCase) {
if (ORDER_DESC.equals(order)) {
c.addOrder(ignoreCase ? Order.desc(sort).ignoreCase() : Order.desc(sort)); // depends on control dependency: [if], data = [none]
}
else... |
public class class_name {
public ResolvableType getSuperType() {
Class<?> resolved = resolve();
if (resolved == null || resolved.getGenericSuperclass() == null) {
return NONE;
}
if (this.superType == null) {
this.superType = forType(SerializableTypeWrapper.forGenericSuperclass(resolved),
asVariableR... | public class class_name {
public ResolvableType getSuperType() {
Class<?> resolved = resolve();
if (resolved == null || resolved.getGenericSuperclass() == null) {
return NONE; // depends on control dependency: [if], data = [none]
}
if (this.superType == null) {
this.superType = forType(SerializableTypeWr... |
public class class_name {
@Nullable
private StringBuilder getQualifiedNameForGetProp(int reserve) {
String propName = getLastChild().getString();
reserve += 1 + propName.length(); // +1 for the '.'
StringBuilder builder;
if (first.isGetProp()) {
builder = first.getQualifiedNameForGetProp(reser... | public class class_name {
@Nullable
private StringBuilder getQualifiedNameForGetProp(int reserve) {
String propName = getLastChild().getString();
reserve += 1 + propName.length(); // +1 for the '.'
StringBuilder builder;
if (first.isGetProp()) {
builder = first.getQualifiedNameForGetProp(reser... |
public class class_name {
public SimpleFeatureCollection toFeatureCollection(
List<MonitoringPoint> monitoringPointsList ) {
// create the feature type
SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder();
// set the name
b.setName("monitoringpoints");
// add... | public class class_name {
public SimpleFeatureCollection toFeatureCollection(
List<MonitoringPoint> monitoringPointsList ) {
// create the feature type
SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder();
// set the name
b.setName("monitoringpoints");
// add... |
public class class_name {
@SuppressWarnings("fallthrough")
List<JCStatement> blockStatements() {
//todo: skip to anchor on error(?)
int lastErrPos = -1;
ListBuffer<JCStatement> stats = new ListBuffer<>();
while (true) {
List<JCStatement> stat = blockStatement();
... | public class class_name {
@SuppressWarnings("fallthrough")
List<JCStatement> blockStatements() {
//todo: skip to anchor on error(?)
int lastErrPos = -1;
ListBuffer<JCStatement> stats = new ListBuffer<>();
while (true) {
List<JCStatement> stat = blockStatement();
... |
public class class_name {
private I_CmsSearchFieldMapping createSearchFieldMapping(
CmsXmlContentDefinition contentDefinition,
Element element,
Locale locale)
throws CmsXmlException {
I_CmsSearchFieldMapping fieldMapping = null;
String typeAsString = element.attributeValue(... | public class class_name {
private I_CmsSearchFieldMapping createSearchFieldMapping(
CmsXmlContentDefinition contentDefinition,
Element element,
Locale locale)
throws CmsXmlException {
I_CmsSearchFieldMapping fieldMapping = null;
String typeAsString = element.attributeValue(... |
public class class_name {
public static Field get(final long _id)
{
Field ret = null;
final Cache<Long, Field> cache = InfinispanCache.get().<Long, Field>getCache(Field.IDCACHE);
if (cache.containsKey(_id)) {
ret = cache.get(_id);
} else {
AbstractCollection ... | public class class_name {
public static Field get(final long _id)
{
Field ret = null;
final Cache<Long, Field> cache = InfinispanCache.get().<Long, Field>getCache(Field.IDCACHE);
if (cache.containsKey(_id)) {
ret = cache.get(_id); // depends on control dependency: [if], data = [... |
public class class_name {
public static <T, IV> int countWith(
Iterable<T> iterable,
Predicate2<? super T, ? super IV> predicate,
IV injectedValue)
{
if (iterable instanceof MutableCollection)
{
return ((MutableCollection<T>) iterable).countWith(predi... | public class class_name {
public static <T, IV> int countWith(
Iterable<T> iterable,
Predicate2<? super T, ? super IV> predicate,
IV injectedValue)
{
if (iterable instanceof MutableCollection)
{
return ((MutableCollection<T>) iterable).countWith(predi... |
public class class_name {
public static void loadWords(
JcsegTaskConfig config, ADictionary dic, InputStream is, List<String[]> buffer )
throws NumberFormatException, IOException
{
boolean isFirstLine = true;
int t = -1;
String line = null, gEntity = null;
... | public class class_name {
public static void loadWords(
JcsegTaskConfig config, ADictionary dic, InputStream is, List<String[]> buffer )
throws NumberFormatException, IOException
{
boolean isFirstLine = true;
int t = -1;
String line = null, gEntity = null;
... |
public class class_name {
public boolean isTeiidSupport() {
String result = properties.getProperty(LocalJcrDriver.TEIID_SUPPORT_PROPERTY_NAME);
if (result == null) {
return false;
}
return result.equalsIgnoreCase(Boolean.TRUE.toString());
} } | public class class_name {
public boolean isTeiidSupport() {
String result = properties.getProperty(LocalJcrDriver.TEIID_SUPPORT_PROPERTY_NAME);
if (result == null) {
return false; // depends on control dependency: [if], data = [none]
}
return result.equalsIgnoreCase(Boolean.... |
public class class_name {
void foldExpressions() throws ClassParseException {
// we also populate a second list of expressions held between headTail.head and headTail.tail
for (Instruction instruction = pcHead; instruction != null; instruction = instruction.getNextPC()) {
// Here we are going t... | public class class_name {
void foldExpressions() throws ClassParseException {
// we also populate a second list of expressions held between headTail.head and headTail.tail
for (Instruction instruction = pcHead; instruction != null; instruction = instruction.getNextPC()) {
// Here we are going t... |
public class class_name {
@PublicEvolving
@Deprecated
public <ACC, R> SingleOutputStreamOperator<R> fold(ACC initialValue,
FoldFunction<T, ACC> foldFunction,
AllWindowFunction<ACC, R, W> function,
TypeInformation<ACC> foldAccumulatorType,
TypeInformation<R> resultType) {
if (foldFunction instanceof Ric... | public class class_name {
@PublicEvolving
@Deprecated
public <ACC, R> SingleOutputStreamOperator<R> fold(ACC initialValue,
FoldFunction<T, ACC> foldFunction,
AllWindowFunction<ACC, R, W> function,
TypeInformation<ACC> foldAccumulatorType,
TypeInformation<R> resultType) {
if (foldFunction instanceof Ric... |
public class class_name {
public static int exit(ApplicationContext context,
ExitCodeGenerator... exitCodeGenerators) {
Assert.notNull(context, "Context must not be null");
int exitCode = 0;
try {
try {
ExitCodeGenerators generators = new ExitCodeGenerators();
Collection<ExitCodeGenerator> beans = ... | public class class_name {
public static int exit(ApplicationContext context,
ExitCodeGenerator... exitCodeGenerators) {
Assert.notNull(context, "Context must not be null");
int exitCode = 0;
try {
try {
ExitCodeGenerators generators = new ExitCodeGenerators();
Collection<ExitCodeGenerator> beans = ... |
public class class_name {
protected boolean validateForRequired() {
if(isRequired() && isInputEmpty()) {
errors.createFieldError(fieldName, getMessageKeyRequired())
.address(getPosition())
.label(getLabel())
.variables("validatedValue", getValu... | public class class_name {
protected boolean validateForRequired() {
if(isRequired() && isInputEmpty()) {
errors.createFieldError(fieldName, getMessageKeyRequired())
.address(getPosition())
.label(getLabel())
.variables("validatedValue", getValu... |
public class class_name {
public B importContext(AbstractContext context, boolean overwriteDuplicates){
for (Map.Entry<String, Object> en : context.data.entrySet()) {
if (overwriteDuplicates) {
this.data.put(en.getKey(), en.getValue());
}else{
this.data.p... | public class class_name {
public B importContext(AbstractContext context, boolean overwriteDuplicates){
for (Map.Entry<String, Object> en : context.data.entrySet()) {
if (overwriteDuplicates) {
this.data.put(en.getKey(), en.getValue()); // depends on control dependency: [if], data =... |
public class class_name {
public HierarchicalProperty getProperty(String name) throws RepositoryException
{
if ("jcr:primaryType".equals(name) || "jcr:mixinTypes".equals(name))
return null;
if (content == null)
return null;
if (content.getProperty(name) != null)
{
... | public class class_name {
public HierarchicalProperty getProperty(String name) throws RepositoryException
{
if ("jcr:primaryType".equals(name) || "jcr:mixinTypes".equals(name))
return null;
if (content == null)
return null;
if (content.getProperty(name) != null)
{
... |
public class class_name {
public static ForkThrowableHolder getForkThrowableHolder(SharedResourcesBroker<GobblinScopeTypes> broker) {
try {
return broker.getSharedResource(new ForkThrowableHolderFactory(), EmptyKey.INSTANCE);
} catch (NotConfiguredException e) {
LOG.error("Fail to get fork throwabl... | public class class_name {
public static ForkThrowableHolder getForkThrowableHolder(SharedResourcesBroker<GobblinScopeTypes> broker) {
try {
return broker.getSharedResource(new ForkThrowableHolderFactory(), EmptyKey.INSTANCE); // depends on control dependency: [try], data = [none]
} catch (NotConfiguredEx... |
public class class_name {
public boolean release() {
if (refcnt != null && refcnt.decrementAndGet() <= 0 && controller != null) {
controller.setMode(ServiceController.Mode.REMOVE);
return true;
}
return false;
} } | public class class_name {
public boolean release() {
if (refcnt != null && refcnt.decrementAndGet() <= 0 && controller != null) {
controller.setMode(ServiceController.Mode.REMOVE); // depends on control dependency: [if], data = [none]
return true; // depends on control dependency: [if],... |
public class class_name {
protected QueryParameters[] getQueryParams(Object[][] params) {
QueryParameters[] result = new QueryParameters[params.length];
for (int i = 0; i < params.length; i++) {
result[i] = new QueryParameters(params[i]);
}
return result;
} } | public class class_name {
protected QueryParameters[] getQueryParams(Object[][] params) {
QueryParameters[] result = new QueryParameters[params.length];
for (int i = 0; i < params.length; i++) {
result[i] = new QueryParameters(params[i]); // depends on control dependency: [for], data = [i]... |
public class class_name {
public EClass getIfcCoolingTowerType() {
if (ifcCoolingTowerTypeEClass == null) {
ifcCoolingTowerTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(120);
}
return ifcCoolingTowerTypeEClass;
} } | public class class_name {
public EClass getIfcCoolingTowerType() {
if (ifcCoolingTowerTypeEClass == null) {
ifcCoolingTowerTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(120);
// depends on control dependency: [if], data = [none]
}
retur... |
public class class_name {
public Point interpolate(double distance) {
if (distance < 0) {
return null;
}
for (LineSegment segment : this.segments) {
double length = segment.length();
if (distance <= length) {
return segment.pointAlongLineSegm... | public class class_name {
public Point interpolate(double distance) {
if (distance < 0) {
return null; // depends on control dependency: [if], data = [none]
}
for (LineSegment segment : this.segments) {
double length = segment.length();
if (distance <= lengt... |
public class class_name {
private void addLeafDelta(Segment10 segment,
int pid,
int nextPid,
int address,
int length)
{
Page10 page = _pageMap.get(pid);
if (page != null && page.sequence() < ... | public class class_name {
private void addLeafDelta(Segment10 segment,
int pid,
int nextPid,
int address,
int length)
{
Page10 page = _pageMap.get(pid);
if (page != null && page.sequence() < ... |
public class class_name {
void initBaseCoord() {
baseCoords = new double[dimension + 1][];
for (int i = 0; i < baseCoords.length; i++) {
baseCoords[i] = lowerBound.clone();
if (i > 0) {
baseCoords[i][i - 1] = upperBound[i - 1];
}
}
} } | public class class_name {
void initBaseCoord() {
baseCoords = new double[dimension + 1][];
for (int i = 0; i < baseCoords.length; i++) {
baseCoords[i] = lowerBound.clone(); // depends on control dependency: [for], data = [i]
if (i > 0) {
baseCoords[i][i - 1] = up... |
public class class_name {
@Override
public byte[] get(byte[] key) {
if (key == null) {
return null;
}
byte[] value = null;
Jedis jedis = getJedis();
try {
value = jedis.get(key);
} finally {
jedis.close();
}
return ... | public class class_name {
@Override
public byte[] get(byte[] key) {
if (key == null) {
return null; // depends on control dependency: [if], data = [none]
}
byte[] value = null;
Jedis jedis = getJedis();
try {
value = jedis.get(key); // depends on cont... |
public class class_name {
public void _predict(Dataframe newData) {
//load all trainables on the bundles
initBundle();
//set the parallized flag to all algorithms
bundle.setParallelized(isParallelized());
//run the pipeline
for(String step : pipeline) {
swi... | public class class_name {
public void _predict(Dataframe newData) {
//load all trainables on the bundles
initBundle();
//set the parallized flag to all algorithms
bundle.setParallelized(isParallelized());
//run the pipeline
for(String step : pipeline) {
swi... |
public class class_name {
public Vector getVector(String word) {
SemanticVector v = wordToMeaning.get(word);
if (v == null) {
return null;
}
return Vectors.immutable(v);
} } | public class class_name {
public Vector getVector(String word) {
SemanticVector v = wordToMeaning.get(word);
if (v == null) {
return null; // depends on control dependency: [if], data = [none]
}
return Vectors.immutable(v);
} } |
public class class_name {
private void homogeneousUnion(final HLL other) {
switch(type) {
case EMPTY:
// union of empty and empty is empty
return;
case EXPLICIT:
for(final long value : other.explicitStorage) {
addRaw(value);
... | public class class_name {
private void homogeneousUnion(final HLL other) {
switch(type) {
case EMPTY:
// union of empty and empty is empty
return;
case EXPLICIT:
for(final long value : other.explicitStorage) {
addRaw(value); // dep... |
public class class_name {
public String getString(int columnIndex) {
if (columnIndex < 0 || columnIndex >= data.length) {
throw new IllegalArgumentException("Invalid index field: (" + columnIndex+"). Valid range is 0 to " + (data.length - 1));
}
Object fieldValue = data[columnIndex];
if (fieldValue == nu... | public class class_name {
public String getString(int columnIndex) {
if (columnIndex < 0 || columnIndex >= data.length) {
throw new IllegalArgumentException("Invalid index field: (" + columnIndex+"). Valid range is 0 to " + (data.length - 1));
}
Object fieldValue = data[columnIndex];
if (fieldValue == nu... |
public class class_name {
private X509Certificate[] getCerts(SSLSessionInfo session) {
try {
javax.security.cert.X509Certificate[] javaxCerts = session.getPeerCertificateChain();
if (javaxCerts == null || javaxCerts.length == 0) {
return null;
}
X... | public class class_name {
private X509Certificate[] getCerts(SSLSessionInfo session) {
try {
javax.security.cert.X509Certificate[] javaxCerts = session.getPeerCertificateChain();
if (javaxCerts == null || javaxCerts.length == 0) {
return null; // depends on control depen... |
public class class_name {
private void layoutForPredictiveAnimationsExpose(RecyclerView.Recycler recycler,
RecyclerView.State state, int startOffset, int endOffset) {
// If there are scrap children that we did not layout, we need to find where they did go
... | public class class_name {
private void layoutForPredictiveAnimationsExpose(RecyclerView.Recycler recycler,
RecyclerView.State state, int startOffset, int endOffset) {
// If there are scrap children that we did not layout, we need to find where they did go
... |
public class class_name {
private static Collection<Writer> getAllWriters(final Collection<Writer>[][] matrix) {
Collection<Writer> writers = Collections.newSetFromMap(new IdentityHashMap<Writer, Boolean>());
for (int i = 0; i < matrix.length; ++i) {
for (int j = 0; j < matrix[i].length; ++j) {
writers.addA... | public class class_name {
private static Collection<Writer> getAllWriters(final Collection<Writer>[][] matrix) {
Collection<Writer> writers = Collections.newSetFromMap(new IdentityHashMap<Writer, Boolean>());
for (int i = 0; i < matrix.length; ++i) {
for (int j = 0; j < matrix[i].length; ++j) {
writers.addA... |
public class class_name {
private void storeTagAnnotation(Annotation anno) {
Class<? extends Annotation> annoType = anno.annotationType();
Annotation[] tags = annoType.getAnnotations();
for (Annotation tag : tags) {
Class<? extends Annotation> tagType = tag.annotationType();
... | public class class_name {
private void storeTagAnnotation(Annotation anno) {
Class<? extends Annotation> annoType = anno.annotationType();
Annotation[] tags = annoType.getAnnotations();
for (Annotation tag : tags) {
Class<? extends Annotation> tagType = tag.annotationType();
... |
public class class_name {
public PutObjectResponse putObject(String bucketName, String key, byte[] value, ObjectMetadata metadata) {
if (metadata.getContentLength() == -1) {
metadata.setContentLength(value.length);
}
return this.putObject(new PutObjectRequest(bucketName, key, Restar... | public class class_name {
public PutObjectResponse putObject(String bucketName, String key, byte[] value, ObjectMetadata metadata) {
if (metadata.getContentLength() == -1) {
metadata.setContentLength(value.length); // depends on control dependency: [if], data = [none]
}
return this.... |
public class class_name {
public FacesConfigFlowDefinitionType<FacesConfigType<T>> getOrCreateFlowDefinition()
{
List<Node> nodeList = childNode.get("flow-definition");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigFlowDefinitionTypeImpl<FacesConfigType<T>>(this, "... | public class class_name {
public FacesConfigFlowDefinitionType<FacesConfigType<T>> getOrCreateFlowDefinition()
{
List<Node> nodeList = childNode.get("flow-definition");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigFlowDefinitionTypeImpl<FacesConfigType<T>>(this, "... |
public class class_name {
@Override
@LogarithmicTime(amortized = true)
public void meld(MergeableAddressableHeap<K, V> other) {
PairingHeap<K, V> h = (PairingHeap<K, V>) other;
// check same comparator
if (comparator != null) {
if (h.comparator == null || !h.comparator.equa... | public class class_name {
@Override
@LogarithmicTime(amortized = true)
public void meld(MergeableAddressableHeap<K, V> other) {
PairingHeap<K, V> h = (PairingHeap<K, V>) other;
// check same comparator
if (comparator != null) {
if (h.comparator == null || !h.comparator.equa... |
public class class_name {
public static boolean checkURIs(URI[] uriFiles, URI[] uriArchives){
if ((uriFiles == null) && (uriArchives == null)){
return true;
}
if (uriFiles != null){
for (int i = 0; i < uriFiles.length; i++){
String frag1 = uriFiles[i].getFragment();
if (frag1 =... | public class class_name {
public static boolean checkURIs(URI[] uriFiles, URI[] uriArchives){
if ((uriFiles == null) && (uriArchives == null)){
return true; // depends on control dependency: [if], data = [none]
}
if (uriFiles != null){
for (int i = 0; i < uriFiles.length; i++){
String ... |
public class class_name {
protected List<CmsDetailPageInfo> updateUris(List<CmsDetailPageInfo> detailPages) {
List<CmsDetailPageInfo> result = new ArrayList<CmsDetailPageInfo>();
for (CmsDetailPageInfo page : detailPages) {
CmsUUID structureId = page.getId();
try {
... | public class class_name {
protected List<CmsDetailPageInfo> updateUris(List<CmsDetailPageInfo> detailPages) {
List<CmsDetailPageInfo> result = new ArrayList<CmsDetailPageInfo>();
for (CmsDetailPageInfo page : detailPages) {
CmsUUID structureId = page.getId();
try {
... |
public class class_name {
private double checkThreshold(int value) {
double threshold = (double) value;
try {
if (threshold < 0 || threshold > 100) {
throw new NumberFormatException();
}
LOG.info("Using a threshold of " + threshold);
} catch (NumberFormatException e) {
Syste... | public class class_name {
private double checkThreshold(int value) {
double threshold = (double) value;
try {
if (threshold < 0 || threshold > 100) {
throw new NumberFormatException();
}
LOG.info("Using a threshold of " + threshold); // depends on control dependency: [try], data = [no... |
public class class_name {
public void generate(Execution execution)
{
createEmptyDocument();
Element element = dom.createElement(DOCUMENT);
root.appendChild(element);
if (execution.getSections() != null)
{
Element sections = dom.createElement( SECTIONS );
root.appendChild(sections);
StringTokeniz... | public class class_name {
public void generate(Execution execution)
{
createEmptyDocument();
Element element = dom.createElement(DOCUMENT);
root.appendChild(element);
if (execution.getSections() != null)
{
Element sections = dom.createElement( SECTIONS );
root.appendChild(sections); // depends on con... |
public class class_name {
List<JCExpression> typeArguments(boolean diamondAllowed) {
if (token.kind == LT) {
nextToken();
if (token.kind == GT && diamondAllowed) {
checkDiamond();
mode |= DIAMOND;
nextToken();
return List.n... | public class class_name {
List<JCExpression> typeArguments(boolean diamondAllowed) {
if (token.kind == LT) {
nextToken(); // depends on control dependency: [if], data = [none]
if (token.kind == GT && diamondAllowed) {
checkDiamond(); // depends on control dependency: [if... |
public class class_name {
@Override
public boolean hasLink(String name1, String name2, String... domain) {
if (domain.length == 1) {
name1 = domain[0] + "::" + name1;
name2 = domain[0] + "::" + name2;
} else if (domain.length > 1) {
throw new Error("error: domain... | public class class_name {
@Override
public boolean hasLink(String name1, String name2, String... domain) {
if (domain.length == 1) {
name1 = domain[0] + "::" + name1; // depends on control dependency: [if], data = [none]
name2 = domain[0] + "::" + name2; // depends on control depend... |
public class class_name {
public static byte[] stringToId(final String branch_id) {
if (branch_id == null || branch_id.isEmpty()) {
throw new IllegalArgumentException("Branch ID was empty");
}
if (branch_id.length() < 4) {
throw new IllegalArgumentException("Branch ID was too short");
}
... | public class class_name {
public static byte[] stringToId(final String branch_id) {
if (branch_id == null || branch_id.isEmpty()) {
throw new IllegalArgumentException("Branch ID was empty");
}
if (branch_id.length() < 4) {
throw new IllegalArgumentException("Branch ID was too short");
}
... |
public class class_name {
private static StringBuilder toBase64(long value) {
StringBuilder result = new StringBuilder(23); // Initialize with the size of ID if using Base64
for(int shift=60; shift>=0; shift-=6) {
result.append(Base64[(int)((value >> shift) & 0x3F)]);
}
return result;
} } | public class class_name {
private static StringBuilder toBase64(long value) {
StringBuilder result = new StringBuilder(23); // Initialize with the size of ID if using Base64
for(int shift=60; shift>=0; shift-=6) {
result.append(Base64[(int)((value >> shift) & 0x3F)]); // depends on control dependency: [for], da... |
public class class_name {
public DeviceData command_inout_reply(final DeviceProxy deviceProxy,
final AsyncCallObject aco, final int timeout) throws DevFailed {
DeviceData argout = null;
final int ms_to_sleep = 10;
DevFailed except = null;
final ... | public class class_name {
public DeviceData command_inout_reply(final DeviceProxy deviceProxy,
final AsyncCallObject aco, final int timeout) throws DevFailed {
DeviceData argout = null;
final int ms_to_sleep = 10;
DevFailed except = null;
final ... |
public class class_name {
public void setPurchase(java.util.Collection<Purchase> purchase) {
if (purchase == null) {
this.purchase = null;
return;
}
this.purchase = new com.amazonaws.internal.SdkInternalList<Purchase>(purchase);
} } | public class class_name {
public void setPurchase(java.util.Collection<Purchase> purchase) {
if (purchase == null) {
this.purchase = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.purchase... |
public class class_name {
@Override
public IPortletUrlBuilder getPortletUrlBuilder(IPortletWindowId portletWindowId) {
IPortletUrlBuilder portletUrlBuilder;
synchronized (this.portletUrlBuilders) {
portletUrlBuilder = this.portletUrlBuilders.get(portletWindowId);
if (portle... | public class class_name {
@Override
public IPortletUrlBuilder getPortletUrlBuilder(IPortletWindowId portletWindowId) {
IPortletUrlBuilder portletUrlBuilder;
synchronized (this.portletUrlBuilders) {
portletUrlBuilder = this.portletUrlBuilders.get(portletWindowId);
if (portle... |
public class class_name {
public static <K, V> void initOrAddList(Map<K, List<V>> orginMap, K key, V needAdd) {
List<V> listeners = orginMap.get(key);
if (listeners == null) {
listeners = new CopyOnWriteArrayList<V>();
listeners.add(needAdd);
orginMap.put(key, listen... | public class class_name {
public static <K, V> void initOrAddList(Map<K, List<V>> orginMap, K key, V needAdd) {
List<V> listeners = orginMap.get(key);
if (listeners == null) {
listeners = new CopyOnWriteArrayList<V>(); // depends on control dependency: [if], data = [none]
listen... |
public class class_name {
private void createRoleSummary(final VerticalLayout roleSummaryLayoutTabsheet,
final List<AssignmentData> assignmentList, final ViewRiksdagenPolitician viewRiksdagenPolitician) {
final VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
layout.addComponent(new Label... | public class class_name {
private void createRoleSummary(final VerticalLayout roleSummaryLayoutTabsheet,
final List<AssignmentData> assignmentList, final ViewRiksdagenPolitician viewRiksdagenPolitician) {
final VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
layout.addComponent(new Label... |
public class class_name {
protected Map<String, String> getElementAttributes() {
// Preserve order of attributes
Map<String, String> attrs = new HashMap<>();
if (this.getTo() != null) {
attrs.put("to", this.getTo());
}
if (this.getFrom() != null) {
attrs... | public class class_name {
protected Map<String, String> getElementAttributes() {
// Preserve order of attributes
Map<String, String> attrs = new HashMap<>();
if (this.getTo() != null) {
attrs.put("to", this.getTo()); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public java.util.List<BulkEmailDestinationStatus> getStatus() {
if (status == null) {
status = new com.amazonaws.internal.SdkInternalList<BulkEmailDestinationStatus>();
}
return status;
} } | public class class_name {
public java.util.List<BulkEmailDestinationStatus> getStatus() {
if (status == null) {
status = new com.amazonaws.internal.SdkInternalList<BulkEmailDestinationStatus>(); // depends on control dependency: [if], data = [none]
}
return status;
} } |
public class class_name {
@Override
public CPInstance remove(Serializable primaryKey)
throws NoSuchCPInstanceException {
Session session = null;
try {
session = openSession();
CPInstance cpInstance = (CPInstance)session.get(CPInstanceImpl.class,
primaryKey);
if (cpInstance == null) {
if (_l... | public class class_name {
@Override
public CPInstance remove(Serializable primaryKey)
throws NoSuchCPInstanceException {
Session session = null;
try {
session = openSession();
CPInstance cpInstance = (CPInstance)session.get(CPInstanceImpl.class,
primaryKey);
if (cpInstance == null) {
if (_l... |
public class class_name {
public static Object invokeMethod(final Object obj, final String methodName,
final Object[] params, final Class[] paramTypes) {
Object res = null;
try {
Class cls = obj.getClass();
Method method = cls.getMethod(methodName, paramTypes);
res = method.invoke(obj, params);
} ca... | public class class_name {
public static Object invokeMethod(final Object obj, final String methodName,
final Object[] params, final Class[] paramTypes) {
Object res = null;
try {
Class cls = obj.getClass();
Method method = cls.getMethod(methodName, paramTypes);
res = method.invoke(obj, params);
} ca... |
public class class_name {
public ProgressStyle setMax(int value){
if(mProgressStyle == HORIZONTAL) {
if (mProgress.isIndeterminate())
mProgress.setIndeterminate(false);
mProgress.setMax(value);
if (!mIsPercentageMode)
mProgressMax.setText(... | public class class_name {
public ProgressStyle setMax(int value){
if(mProgressStyle == HORIZONTAL) {
if (mProgress.isIndeterminate())
mProgress.setIndeterminate(false);
mProgress.setMax(value); // depends on control dependency: [if], data = [none]
if (!mI... |
public class class_name {
private void runJob(Job jobToRun) {
long startExecutionTime = timeProvider.currentTime();
long timeBeforeNextExecution = jobToRun.nextExecutionTimeInMillis() - startExecutionTime;
if(timeBeforeNextExecution < 0) {
logger.debug("Job '{}' execution is {}ms late", jobToRun.name(), -time... | public class class_name {
private void runJob(Job jobToRun) {
long startExecutionTime = timeProvider.currentTime();
long timeBeforeNextExecution = jobToRun.nextExecutionTimeInMillis() - startExecutionTime;
if(timeBeforeNextExecution < 0) {
logger.debug("Job '{}' execution is {}ms late", jobToRun.name(), -time... |
public class class_name {
@Override
public EClass getRevision() {
if (revisionEClass == null) {
revisionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(5);
}
return revisionEClass;
} } | public class class_name {
@Override
public EClass getRevision() {
if (revisionEClass == null) {
revisionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(5);
// depends on control dependency: [if], data = [none]
}
return revisionEClass;
} } |
public class class_name {
protected SecurityToken getSecurityTokenFromRequest(final HttpServletRequest request) {
val cookieValue = wsFederationRequestConfigurationContext.getTicketGrantingTicketCookieGenerator().retrieveCookieValue(request);
if (StringUtils.isNotBlank(cookieValue)) {
val t... | public class class_name {
protected SecurityToken getSecurityTokenFromRequest(final HttpServletRequest request) {
val cookieValue = wsFederationRequestConfigurationContext.getTicketGrantingTicketCookieGenerator().retrieveCookieValue(request);
if (StringUtils.isNotBlank(cookieValue)) {
val t... |
public class class_name {
public static Analyzer getAnalyzer()
throws EFapsException
{
IAnalyzerProvider provider = null;
if (EFapsSystemConfiguration.get().containsAttributeValue(KernelSettings.INDEXANALYZERPROVCLASS)) {
final String clazzname = EFapsSystemConfiguration.get().g... | public class class_name {
public static Analyzer getAnalyzer()
throws EFapsException
{
IAnalyzerProvider provider = null;
if (EFapsSystemConfiguration.get().containsAttributeValue(KernelSettings.INDEXANALYZERPROVCLASS)) {
final String clazzname = EFapsSystemConfiguration.get().g... |
public class class_name {
private int getLayoutId(final IPerson person, final IUserProfile profile) {
final Hashtable<Integer, UserProfile> profiles = getUserProfileList(person);
int layoutId = profile.getLayoutId();
Set<Integer> layoutIds = getAllNonZeroLayoutIdsFromProfiles(profiles.values())... | public class class_name {
private int getLayoutId(final IPerson person, final IUserProfile profile) {
final Hashtable<Integer, UserProfile> profiles = getUserProfileList(person);
int layoutId = profile.getLayoutId();
Set<Integer> layoutIds = getAllNonZeroLayoutIdsFromProfiles(profiles.values())... |
public class class_name {
public final Collection<State> acceptStates() {
if(acceptStates == null) {
final Collection<State> states = this.states();
acceptStates =
DSUtil.filterColl(_acceptStates(),
new Predicate<State>() {
public boolean check(State state) {
return states.contains... | public class class_name {
public final Collection<State> acceptStates() {
if(acceptStates == null) {
final Collection<State> states = this.states();
acceptStates =
DSUtil.filterColl(_acceptStates(),
new Predicate<State>() {
public boolean check(State state) {
return states.contains... |
public class class_name {
private void updateHighlighting(boolean initial) {
Map<I_CmsDropContainer, CmsPositionBean> containers = new HashMap<I_CmsDropContainer, CmsPositionBean>();
for (I_CmsDropTarget target : m_dragInfos.keySet()) {
if ((target instanceof I_CmsDropContainer)
... | public class class_name {
private void updateHighlighting(boolean initial) {
Map<I_CmsDropContainer, CmsPositionBean> containers = new HashMap<I_CmsDropContainer, CmsPositionBean>();
for (I_CmsDropTarget target : m_dragInfos.keySet()) {
if ((target instanceof I_CmsDropContainer)
... |
public class class_name {
protected static void addClass2Component(UIComponent c, String aclass) {
Map<String, Object> a = c.getAttributes();
if (a.containsKey("styleClass")) {
a.put("styleClass", a.get("styleClass") + " " + aclass);
} else {
a.put("styleClass", aclass);
}
} } | public class class_name {
protected static void addClass2Component(UIComponent c, String aclass) {
Map<String, Object> a = c.getAttributes();
if (a.containsKey("styleClass")) {
a.put("styleClass", a.get("styleClass") + " " + aclass); // depends on control dependency: [if], data = [none]
} else {
a.put("sty... |
public class class_name {
public void setVal(int offset, Constant val, long txNum, LogSeqNum lsn) {
internalLock.writeLock().lock();
try {
modifiedBy.add(txNum);
if (lsn != null && lsn.compareTo(lastLsn) > 0)
lastLsn = lsn;
// Put the last LSN in front of the data
lastLsn.writeToPage(co... | public class class_name {
public void setVal(int offset, Constant val, long txNum, LogSeqNum lsn) {
internalLock.writeLock().lock();
try {
modifiedBy.add(txNum);
// depends on control dependency: [try], data = [none]
if (lsn != null && lsn.compareTo(lastLsn) > 0)
lastLsn = lsn;
// Put the l... |
public class class_name {
public boolean addChild(final Tag child, final Integer position)
{
if (getChildren() == null)
{
this.childTagPositions = ListFactory.newArrayList();
}
final ChildTagPosition childTagPosition = ChildTagPosition.builder().child(child)
.position(position).build();
return getChil... | public class class_name {
public boolean addChild(final Tag child, final Integer position)
{
if (getChildren() == null)
{
this.childTagPositions = ListFactory.newArrayList(); // depends on control dependency: [if], data = [none]
}
final ChildTagPosition childTagPosition = ChildTagPosition.builder().child(c... |
public class class_name {
public synchronized void recordBreadcrumb(Breadcrumb breadcrumb) {
if (breadcrumbs == null) {
breadcrumbs = new CircularFifoQueue<>(breadcrumbLimit);
}
breadcrumbs.add(breadcrumb);
} } | public class class_name {
public synchronized void recordBreadcrumb(Breadcrumb breadcrumb) {
if (breadcrumbs == null) {
breadcrumbs = new CircularFifoQueue<>(breadcrumbLimit); // depends on control dependency: [if], data = [none]
}
breadcrumbs.add(breadcrumb);
} } |
public class class_name {
@SuppressWarnings({"ChainOfInstanceofChecks", "MagicNumber"})
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
private void fixAllCellInfo(List<CellInfo> cellInfo) {
if (cellInfo == null) return;
String networkOperator = telephonyManager.getNetworkOperator();
if ... | public class class_name {
@SuppressWarnings({"ChainOfInstanceofChecks", "MagicNumber"})
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
private void fixAllCellInfo(List<CellInfo> cellInfo) {
if (cellInfo == null) return;
String networkOperator = telephonyManager.getNetworkOperator();
if ... |
public class class_name {
@Override
protected void doHandle(CommandContext ctx) throws CommandLineException {
final BatchManager batchManager = ctx.getBatchManager();
final boolean list = l.isPresent(ctx.getParsedCommandLine());
final String path = file.getValue(ctx.getParsedCommandLine()... | public class class_name {
@Override
protected void doHandle(CommandContext ctx) throws CommandLineException {
final BatchManager batchManager = ctx.getBatchManager();
final boolean list = l.isPresent(ctx.getParsedCommandLine());
final String path = file.getValue(ctx.getParsedCommandLine()... |
public class class_name {
public Iterator<Map.Entry<String, JrsValue>> fields() {
if (_values.isEmpty()) {
return _values.entrySet().iterator();
}
return _values.entrySet().iterator();
} } | public class class_name {
public Iterator<Map.Entry<String, JrsValue>> fields() {
if (_values.isEmpty()) {
return _values.entrySet().iterator(); // depends on control dependency: [if], data = [none]
}
return _values.entrySet().iterator();
} } |
public class class_name {
public void setFunction(String prefix, String localName, Method method) {
if (functions == null) {
functions = new Functions();
}
functions.setFunction(prefix, localName, method);
} } | public class class_name {
public void setFunction(String prefix, String localName, Method method) {
if (functions == null) {
functions = new Functions(); // depends on control dependency: [if], data = [none]
}
functions.setFunction(prefix, localName, method);
} } |
public class class_name {
public void setForegroundBaseColor(final Color COLOR) {
if (null == titleColor) { _titleColor = COLOR; } else { titleColor.set(COLOR); }
if (null == descriptionColor) { _descriptionColor = COLOR; } else { descriptionColor.set(COLOR); }
if (null == unitColor) { _unitCol... | public class class_name {
public void setForegroundBaseColor(final Color COLOR) {
if (null == titleColor) { _titleColor = COLOR; } else { titleColor.set(COLOR); } // depends on control dependency: [if], data = [none] // depends on control dependency: [if], data = [none]
if (null == descriptionColor) { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.