code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public Font getFont(Properties attributes) {
String fontname = null;
String encoding = defaultEncoding;
boolean embedded = defaultEmbedding;
float size = Font.UNDEFINED;
int style = Font.NORMAL;
Color color = null;
String value = attribu... | public class class_name {
public Font getFont(Properties attributes) {
String fontname = null;
String encoding = defaultEncoding;
boolean embedded = defaultEmbedding;
float size = Font.UNDEFINED;
int style = Font.NORMAL;
Color color = null;
String value = attribu... |
public class class_name {
public static void main(String[] args)
{
if (args.length != 1)
{
System.out.println("\nUse Parameter: path (to biopax OWL files)\n");
System.exit(-1);
}
BioPAXIOHandler reader = new SimpleIOHandler();
final String pathname = args[0];
File testDir = new File(pathname);
/... | public class class_name {
public static void main(String[] args)
{
if (args.length != 1)
{
System.out.println("\nUse Parameter: path (to biopax OWL files)\n"); // depends on control dependency: [if], data = [none]
System.exit(-1); // depends on control dependency: [if], data = [1)]
}
BioPAXIOHandler re... |
public class class_name {
void broadcast(ClusterConfiguration config) {
Message vote = voteInfo.toMessage();
for (String server : config.getPeers()) {
this.transport.send(server, vote);
}
} } | public class class_name {
void broadcast(ClusterConfiguration config) {
Message vote = voteInfo.toMessage();
for (String server : config.getPeers()) {
this.transport.send(server, vote); // depends on control dependency: [for], data = [server]
}
} } |
public class class_name {
private void createTermDefinition(Map<String, Object> context, String term,
Map<String, Boolean> defined) throws JsonLdError {
if (defined.containsKey(term)) {
if (Boolean.TRUE.equals(defined.get(term))) {
return;
}
throw... | public class class_name {
private void createTermDefinition(Map<String, Object> context, String term,
Map<String, Boolean> defined) throws JsonLdError {
if (defined.containsKey(term)) {
if (Boolean.TRUE.equals(defined.get(term))) {
return; // depends on control dependenc... |
public class class_name {
public Boolean isSubscribed(String channel) {
Boolean result = null;
/*
* Sanity checks
*/
if (!isConnected) {
raiseOrtcEvent(EventEnum.OnException, this,
new OrtcNotConnectedException());
} else if (Strings.isNullOrEmpty(channel)) {
raiseOrtcEvent(EventEnum.OnExcept... | public class class_name {
public Boolean isSubscribed(String channel) {
Boolean result = null;
/*
* Sanity checks
*/
if (!isConnected) {
raiseOrtcEvent(EventEnum.OnException, this,
new OrtcNotConnectedException()); // depends on control dependency: [if], data = [none]
} else if (Strings.isNullOr... |
public class class_name {
public synchronized void processRequest(final ODistributedRequest request, final boolean waitForAcceptingRequests) {
if (!running) {
throw new ODistributedException("Server is going down or is removing the database:'" + getDatabaseName() + "' discarding");
}
final ORemoteTa... | public class class_name {
public synchronized void processRequest(final ODistributedRequest request, final boolean waitForAcceptingRequests) {
if (!running) {
throw new ODistributedException("Server is going down or is removing the database:'" + getDatabaseName() + "' discarding");
}
final ORemoteTa... |
public class class_name {
private void ensureNext() {
// Check if the current scan result has more keys (i.e. the index did not reach the end of the result list)
if (resultIndex < scanResult.getResult().size()) {
return;
}
// Since the current scan result was fully iterated,... | public class class_name {
private void ensureNext() {
// Check if the current scan result has more keys (i.e. the index did not reach the end of the result list)
if (resultIndex < scanResult.getResult().size()) {
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public void writeBytes(byte[] value) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "writeBytes", value);
try {
// Check that we are in write mode
checkBodyWriteabl... | public class class_name {
@Override
public void writeBytes(byte[] value) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "writeBytes", value);
try {
// Check that we are in write mode
checkBodyWriteabl... |
public class class_name {
static BindTransform getUtilTransform(TypeName type) {
String typeName = type.toString();
// Integer.class.getCanonicalName().equals(typeName)
if (Date.class.getCanonicalName().equals(typeName)) {
return new DateBindTransform();
}
if (Locale.class.getCanonicalName().equals(typeN... | public class class_name {
static BindTransform getUtilTransform(TypeName type) {
String typeName = type.toString();
// Integer.class.getCanonicalName().equals(typeName)
if (Date.class.getCanonicalName().equals(typeName)) {
return new DateBindTransform(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private OIndexSearchResult createIndexedProperty(final OSQLFilterCondition iCondition, final Object iItem, OCommandContext ctx) {
if (iItem == null || !(iItem instanceof OSQLFilterItemField)) {
return null;
}
if (iCondition.getLeft() instanceof OSQLFilterItemField && iCondi... | public class class_name {
private OIndexSearchResult createIndexedProperty(final OSQLFilterCondition iCondition, final Object iItem, OCommandContext ctx) {
if (iItem == null || !(iItem instanceof OSQLFilterItemField)) {
return null; // depends on control dependency: [if], data = [none]
}
if (iCondit... |
public class class_name {
void initFilters() {
tempFileNameScheme.setBaseDir(job.getInputDir());
listFilter = new GenListModuleReader();
listFilter.setLogger(logger);
listFilter.setPrimaryDitamap(rootFile);
listFilter.setJob(job);
listFilter.setFormatFilter(formatFilter... | public class class_name {
void initFilters() {
tempFileNameScheme.setBaseDir(job.getInputDir());
listFilter = new GenListModuleReader();
listFilter.setLogger(logger);
listFilter.setPrimaryDitamap(rootFile);
listFilter.setJob(job);
listFilter.setFormatFilter(formatFilter... |
public class class_name {
public static String rowIndexListToString(final List<Integer> row) {
if (row == null || row.isEmpty()) {
return null;
}
StringBuffer index = new StringBuffer();
boolean addDelimiter = false;
for (Integer lvl : row) {
if (addDelimiter) {
index.append(INDEX_DELIMITER);
... | public class class_name {
public static String rowIndexListToString(final List<Integer> row) {
if (row == null || row.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
StringBuffer index = new StringBuffer();
boolean addDelimiter = false;
for (Integer lvl : row) {
if (... |
public class class_name {
@Deprecated
public org.infinispan.client.hotrod.impl.transport.tcp.FailoverRequestBalancingStrategy balancingStrategy() {
FailoverRequestBalancingStrategy strategy = balancingStrategyFactory.get();
if (org.infinispan.client.hotrod.impl.transport.tcp.FailoverRequestBalancingStra... | public class class_name {
@Deprecated
public org.infinispan.client.hotrod.impl.transport.tcp.FailoverRequestBalancingStrategy balancingStrategy() {
FailoverRequestBalancingStrategy strategy = balancingStrategyFactory.get();
if (org.infinispan.client.hotrod.impl.transport.tcp.FailoverRequestBalancingStra... |
public class class_name {
public Matrix timesEquals(double s)
{
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
A[i][j] = s * A[i][j];
}
}
return this;
} } | public class class_name {
public Matrix timesEquals(double s)
{
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
A[i][j] = s * A[i][j]; // depends on control dependency: [for], data = [j]
}
}
return this;
} } |
public class class_name {
private Path makePathAndBoundingBox(Line obj)
{
float x1 = (obj.x1 == null) ? 0 : obj.x1.floatValueX(this);
float y1 = (obj.y1 == null) ? 0 : obj.y1.floatValueY(this);
float x2 = (obj.x2 == null) ? 0 : obj.x2.floatValueX(this);
float y2 = (obj.y2 == null) ? 0 ... | public class class_name {
private Path makePathAndBoundingBox(Line obj)
{
float x1 = (obj.x1 == null) ? 0 : obj.x1.floatValueX(this);
float y1 = (obj.y1 == null) ? 0 : obj.y1.floatValueY(this);
float x2 = (obj.x2 == null) ? 0 : obj.x2.floatValueX(this);
float y2 = (obj.y2 == null) ? 0 ... |
public class class_name {
@Nullable
private Comparable<?> getCallingObject() {
String sig = getSigConstantOperand();
if (Values.SIG_VOID.equals(SignatureUtils.getReturnSignature(sig))) {
return null;
}
int numParameters = SignatureUtils.getNumParameters(sig);
i... | public class class_name {
@Nullable
private Comparable<?> getCallingObject() {
String sig = getSigConstantOperand();
if (Values.SIG_VOID.equals(SignatureUtils.getReturnSignature(sig))) {
return null; // depends on control dependency: [if], data = [none]
}
int numParamet... |
public class class_name {
public MethodInjectionPoint buildInjectionPoint(ASTType rootContainingType, ASTType containingType, ASTMethod astMethod, AnalysisContext context) {
MethodInjectionPoint methodInjectionPoint = new MethodInjectionPoint(rootContainingType, containingType, astMethod);
methodInjec... | public class class_name {
public MethodInjectionPoint buildInjectionPoint(ASTType rootContainingType, ASTType containingType, ASTMethod astMethod, AnalysisContext context) {
MethodInjectionPoint methodInjectionPoint = new MethodInjectionPoint(rootContainingType, containingType, astMethod);
methodInjec... |
public class class_name {
public void marshall(Termination termination, ProtocolMarshaller protocolMarshaller) {
if (termination == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(termination.getCpsL... | public class class_name {
public void marshall(Termination termination, ProtocolMarshaller protocolMarshaller) {
if (termination == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(termination.getCpsL... |
public class class_name {
public List<NamedStoredProcedureQuery<OrmDescriptor>> getAllNamedStoredProcedureQuery()
{
List<NamedStoredProcedureQuery<OrmDescriptor>> list = new ArrayList<NamedStoredProcedureQuery<OrmDescriptor>>();
List<Node> nodeList = model.get("named-stored-procedure-query");
for(... | public class class_name {
public List<NamedStoredProcedureQuery<OrmDescriptor>> getAllNamedStoredProcedureQuery()
{
List<NamedStoredProcedureQuery<OrmDescriptor>> list = new ArrayList<NamedStoredProcedureQuery<OrmDescriptor>>();
List<Node> nodeList = model.get("named-stored-procedure-query");
for(... |
public class class_name {
private void checkForOfTypes(NodeTraversal t, Node forOf) {
Node lhs = forOf.getFirstChild();
Node iterable = forOf.getSecondChild();
JSType iterableType = getJSType(iterable);
JSType actualType;
if (forOf.isForAwaitOf()) {
Optional<JSType> maybeType =
val... | public class class_name {
private void checkForOfTypes(NodeTraversal t, Node forOf) {
Node lhs = forOf.getFirstChild();
Node iterable = forOf.getSecondChild();
JSType iterableType = getJSType(iterable);
JSType actualType;
if (forOf.isForAwaitOf()) {
Optional<JSType> maybeType =
val... |
public class class_name {
private MethodDeclaration generateFillValuesMethod(EclipseNode tdParent, boolean inherited, String builderGenericName, String classGenericName, String builderClassName, TypeParameter[] typeParams) {
MethodDeclaration out = new MethodDeclaration(((CompilationUnitDeclaration) tdParent.top().g... | public class class_name {
private MethodDeclaration generateFillValuesMethod(EclipseNode tdParent, boolean inherited, String builderGenericName, String classGenericName, String builderClassName, TypeParameter[] typeParams) {
MethodDeclaration out = new MethodDeclaration(((CompilationUnitDeclaration) tdParent.top().g... |
public class class_name {
public static int compare(String s1, String s2, boolean ignoreCase) {
if (s1 == null && s2 == null) {
return 0;
} else if (s1 == null) {
return -1;
} else if (s2 == null) {
return 1;
}
return ignoreCase ? s1.compareToIgnoreCase(s2) : s1... | public class class_name {
public static int compare(String s1, String s2, boolean ignoreCase) {
if (s1 == null && s2 == null) {
return 0; // depends on control dependency: [if], data = [none]
} else if (s1 == null) {
return -1; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
public static boolean compareString(String string, SoyValue other) {
// This follows similarly to the Javascript specification, to ensure similar operation
// over Javascript and Java: http://www.ecma-international.org/ecma-262/5.1/#sec-11.9.3
if (other instanceof StringData || ot... | public class class_name {
public static boolean compareString(String string, SoyValue other) {
// This follows similarly to the Javascript specification, to ensure similar operation
// over Javascript and Java: http://www.ecma-international.org/ecma-262/5.1/#sec-11.9.3
if (other instanceof StringData || ot... |
public class class_name {
public void registerNotificationSource(final NotificationSource src) {
if (!this.tracerStorage.containsKey(src)) {
TracerStorage ts = new TracerStorage(src, this);
this.tracerStorage.put(src, ts);
}
} } | public class class_name {
public void registerNotificationSource(final NotificationSource src) {
if (!this.tracerStorage.containsKey(src)) {
TracerStorage ts = new TracerStorage(src, this);
this.tracerStorage.put(src, ts);
// depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static <T, U, A, R> Collector<T, ?, R> flatMapping(Function<? super T, ? extends Stream<? extends U>> mapper,
Collector<? super U, A, R> downstream) {
BiConsumer<A, ? super U> downstreamAccumulator = downstream.accumulator();
Predicate<A> finished = finis... | public class class_name {
public static <T, U, A, R> Collector<T, ?, R> flatMapping(Function<? super T, ? extends Stream<? extends U>> mapper,
Collector<? super U, A, R> downstream) {
BiConsumer<A, ? super U> downstreamAccumulator = downstream.accumulator();
Predicate<A> finished = finis... |
public class class_name {
public static boolean hasGroupBy(JPQLExpression jpqlExpression)
{
if (isSelectStatement(jpqlExpression))
{
return ((SelectStatement) jpqlExpression.getQueryStatement()).hasGroupByClause();
}
return false;
} } | public class class_name {
public static boolean hasGroupBy(JPQLExpression jpqlExpression)
{
if (isSelectStatement(jpqlExpression))
{
return ((SelectStatement) jpqlExpression.getQueryStatement()).hasGroupByClause(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@SuppressWarnings("resource")
public void registerSolrIndex(CmsSolrIndex index) throws CmsConfigurationException {
if ((m_solrConfig == null) || !m_solrConfig.isEnabled()) {
// No solr server configured
throw new CmsConfigurationException(Messages.get().co... | public class class_name {
@SuppressWarnings("resource")
public void registerSolrIndex(CmsSolrIndex index) throws CmsConfigurationException {
if ((m_solrConfig == null) || !m_solrConfig.isEnabled()) {
// No solr server configured
throw new CmsConfigurationException(Messages.get().co... |
public class class_name {
public GVRMesh loadMesh(GVRAndroidResource androidResource,
EnumSet<GVRImportSettings> settings)
{
GVRMesh mesh = mMeshCache.get(androidResource);
if (mesh == null)
{
try
{
GVRSceneObject model = l... | public class class_name {
public GVRMesh loadMesh(GVRAndroidResource androidResource,
EnumSet<GVRImportSettings> settings)
{
GVRMesh mesh = mMeshCache.get(androidResource);
if (mesh == null)
{
try
{
GVRSceneObject model = l... |
public class class_name {
public static String getQuestionMark(int count) {
StringBuilder qMark = new StringBuilder();
for (int i = 0; i < count; i++) {
if(i > 0) {
qMark.append(", ");
}
qMark.append("?");
}
return qMark.toString();
... | public class class_name {
public static String getQuestionMark(int count) {
StringBuilder qMark = new StringBuilder();
for (int i = 0; i < count; i++) {
if(i > 0) {
qMark.append(", "); // depends on control dependency: [if], data = [none]
}
qMark.appe... |
public class class_name {
public long getPosition()
{
initialize();
long position = scoreNodes.getPosition() - invalid;
// scoreNode.getPosition() is one ahead
// if there is a prefetched node
if (next != null)
{
position--;
}
return position;
} } | public class class_name {
public long getPosition()
{
initialize();
long position = scoreNodes.getPosition() - invalid;
// scoreNode.getPosition() is one ahead
// if there is a prefetched node
if (next != null)
{
position--; // depends on control dependency: [if], data =... |
public class class_name {
public static boolean showJson() {
String result = getInstance().conf.get("conf.show.json");
if ("true".equalsIgnoreCase(result) || "1".equals(result)) {
return true;
}
return false;
} } | public class class_name {
public static boolean showJson() {
String result = getInstance().conf.get("conf.show.json");
if ("true".equalsIgnoreCase(result) || "1".equals(result)) {
return true; // depends on control dependency: [if], data = [none]
}
return false;
} } |
public class class_name {
static String decapitalizeNormally(String propertyName) {
if (Strings.isNullOrEmpty(propertyName)) {
return propertyName;
}
return Character.toLowerCase(propertyName.charAt(0)) + propertyName.substring(1);
} } | public class class_name {
static String decapitalizeNormally(String propertyName) {
if (Strings.isNullOrEmpty(propertyName)) {
return propertyName; // depends on control dependency: [if], data = [none]
}
return Character.toLowerCase(propertyName.charAt(0)) + propertyName.substring(1);
} } |
public class class_name {
public final Node buildNode(Object entity, PersistenceDelegator pd, Object entityId, NodeState nodeState)
{
String nodeId = ObjectGraphUtils.getNodeId(entityId, entity.getClass());
Node node = this.graph.getNode(nodeId);
// If this node is already there in graph ... | public class class_name {
public final Node buildNode(Object entity, PersistenceDelegator pd, Object entityId, NodeState nodeState)
{
String nodeId = ObjectGraphUtils.getNodeId(entityId, entity.getClass());
Node node = this.graph.getNode(nodeId);
// If this node is already there in graph ... |
public class class_name {
public JarProbeOption resources(String... resourcePaths) {
for (String resource : resourcePaths) {
resources.add(resource);
}
return this;
} } | public class class_name {
public JarProbeOption resources(String... resourcePaths) {
for (String resource : resourcePaths) {
resources.add(resource); // depends on control dependency: [for], data = [resource]
}
return this;
} } |
public class class_name {
private void sendRequest(
Node retriedNode,
Queue<Node> queryPlan,
int currentExecutionIndex,
int retryCount,
boolean scheduleNextExecution) {
if (result.isDone()) {
return;
}
Node node = retriedNode;
DriverChannel channel = null;
if (no... | public class class_name {
private void sendRequest(
Node retriedNode,
Queue<Node> queryPlan,
int currentExecutionIndex,
int retryCount,
boolean scheduleNextExecution) {
if (result.isDone()) {
return; // depends on control dependency: [if], data = [none]
}
Node node = ret... |
public class class_name {
public ActivityTypeInfos withTypeInfos(ActivityTypeInfo... typeInfos) {
if (this.typeInfos == null) {
setTypeInfos(new java.util.ArrayList<ActivityTypeInfo>(typeInfos.length));
}
for (ActivityTypeInfo ele : typeInfos) {
this.typeInfos.add(ele);
... | public class class_name {
public ActivityTypeInfos withTypeInfos(ActivityTypeInfo... typeInfos) {
if (this.typeInfos == null) {
setTypeInfos(new java.util.ArrayList<ActivityTypeInfo>(typeInfos.length)); // depends on control dependency: [if], data = [none]
}
for (ActivityTypeInfo el... |
public class class_name {
public T orElseSupplier(final Supplier<T> other) {
checkNotNull(other, "orElse requires a non null supplier");
if (isPresent()) {
return get();
}
return other.get();
} } | public class class_name {
public T orElseSupplier(final Supplier<T> other) {
checkNotNull(other, "orElse requires a non null supplier");
if (isPresent()) {
return get(); // depends on control dependency: [if], data = [none]
}
return other.get();
} } |
public class class_name {
public static <T, L extends List<T>> L sortThis(L list, final Predicate2<? super T, ? super T> predicate)
{
return Iterate.sortThis(list, new Comparator<T>()
{
public int compare(T o1, T o2)
{
if (predicate.accept(o1, o2))
... | public class class_name {
public static <T, L extends List<T>> L sortThis(L list, final Predicate2<? super T, ? super T> predicate)
{
return Iterate.sortThis(list, new Comparator<T>()
{
public int compare(T o1, T o2)
{
if (predicate.accept(o1, o2))
... |
public class class_name {
private void deliverAsynchExceptionToClient(Throwable throwable, String probeId) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "deliverAsynchExceptionToClient", throwable);
if (!isComplete()) {
if (alarm != nu... | public class class_name {
private void deliverAsynchExceptionToClient(Throwable throwable, String probeId) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "deliverAsynchExceptionToClient", throwable);
if (!isComplete()) {
if (alarm != nu... |
public class class_name {
public static InputStream getStringInputStream(String string)
{
InputStream is = null;
try {
ByteArrayOutputStream ba = new ByteArrayOutputStream();
DataOutputStream os = new DataOutputStream(ba);
os.writeUTF(string);
os.fl... | public class class_name {
public static InputStream getStringInputStream(String string)
{
InputStream is = null;
try {
ByteArrayOutputStream ba = new ByteArrayOutputStream();
DataOutputStream os = new DataOutputStream(ba);
os.writeUTF(string); // depends on con... |
public class class_name {
public BlockEncodeRequest getWaitingRequest() {
BlockEncodeRequest result = null;
synchronized(getLock) {
boolean loop = true;
try {
while(loop) {
result = unassignedEncodeRequests.poll(500, TimeUnit.MILLISECONDS);
if(result != null) {
... | public class class_name {
public BlockEncodeRequest getWaitingRequest() {
BlockEncodeRequest result = null;
synchronized(getLock) {
boolean loop = true;
try {
while(loop) {
result = unassignedEncodeRequests.poll(500, TimeUnit.MILLISECONDS); // depends on control dependency: [while... |
public class class_name {
public void writeResources()
{
StreamOut out = null;
Record registration = this.getMainRecord();
Resource resource = (Resource)this.getRecord(Resource.RESOURCE_FILE);
String strCurrentFileName = "none";
String strCurrentLanguage = "none";
... | public class class_name {
public void writeResources()
{
StreamOut out = null;
Record registration = this.getMainRecord();
Resource resource = (Resource)this.getRecord(Resource.RESOURCE_FILE);
String strCurrentFileName = "none";
String strCurrentLanguage = "none";
... |
public class class_name {
private void checkForDuplicateConditions(List<Stmt.Case> cases) {
HashSet<Expr> seen = new HashSet<>();
for(int i=0;i!=cases.size();++i) {
Stmt.Case c = cases.get(i);
Tuple<Expr> conditions = c.getConditions();
// Check whether any of these conditions already seen.
for(int j=0... | public class class_name {
private void checkForDuplicateConditions(List<Stmt.Case> cases) {
HashSet<Expr> seen = new HashSet<>();
for(int i=0;i!=cases.size();++i) {
Stmt.Case c = cases.get(i);
Tuple<Expr> conditions = c.getConditions();
// Check whether any of these conditions already seen.
for(int j=0... |
public class class_name {
protected static UBTree<Literal> generateSubsumedUBTree(final Formula formula) {
final SortedMap<Integer, List<SortedSet<Literal>>> mapping = new TreeMap<>();
for (final Formula term : formula) {
List<SortedSet<Literal>> terms = mapping.get(term.literals().size());... | public class class_name {
protected static UBTree<Literal> generateSubsumedUBTree(final Formula formula) {
final SortedMap<Integer, List<SortedSet<Literal>>> mapping = new TreeMap<>();
for (final Formula term : formula) {
List<SortedSet<Literal>> terms = mapping.get(term.literals().size());... |
public class class_name {
public void checkTags(Doc doc, Tag[] tags, boolean areInlineTags) {
if (tags == null) {
return;
}
Taglet taglet;
for (int i = 0; i < tags.length; i++) {
String name = tags[i].name();
if (name.length() > 0 && name.charAt(0) ==... | public class class_name {
public void checkTags(Doc doc, Tag[] tags, boolean areInlineTags) {
if (tags == null) {
return; // depends on control dependency: [if], data = [none]
}
Taglet taglet;
for (int i = 0; i < tags.length; i++) {
String name = tags[i].name();
... |
public class class_name {
private List<Class<?>> scanClassAndPutMetadata(InputStream bits, Reader reader,
Map<String, EntityMetadata> entityMetadataMap, Map<String, Class<?>> entityNameToClassMap,
String persistenceUnit, String client, Map<String, List<String>> clazzToPuMap,
Map<... | public class class_name {
private List<Class<?>> scanClassAndPutMetadata(InputStream bits, Reader reader,
Map<String, EntityMetadata> entityMetadataMap, Map<String, Class<?>> entityNameToClassMap,
String persistenceUnit, String client, Map<String, List<String>> clazzToPuMap,
Map<... |
public class class_name {
public static boolean removeRejoinNodeIndicatorForHost(ZooKeeper zk, int hostId)
{
try {
Stat stat = new Stat();
final int rejoiningHost = ByteBuffer.wrap(zk.getData(rejoin_node_blocker, false, stat)).getInt();
if (hostId == rejoiningHost) {
... | public class class_name {
public static boolean removeRejoinNodeIndicatorForHost(ZooKeeper zk, int hostId)
{
try {
Stat stat = new Stat();
final int rejoiningHost = ByteBuffer.wrap(zk.getData(rejoin_node_blocker, false, stat)).getInt();
if (hostId == rejoiningHost) {
... |
public class class_name {
public void includeSilent(String target, String element) {
try {
include(target, element, null);
} catch (Throwable t) {
// ignore
}
} } | public class class_name {
public void includeSilent(String target, String element) {
try {
include(target, element, null); // depends on control dependency: [try], data = [none]
} catch (Throwable t) {
// ignore
} // depends on control dependency: [catch], data = [none]... |
public class class_name {
public EJSHome getHomeByName(String application, String beanName)
throws EJBNotFoundException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getHomeByName : " + applicati... | public class class_name {
public EJSHome getHomeByName(String application, String beanName)
throws EJBNotFoundException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getHomeByName : " + applicati... |
public class class_name {
void setId(String sessionAuthId) {
synchronized (lock) {
if (isCreatingSession.get()) {
this.sessionAuthId = sessionAuthId;
}
lock.notifyAll();
}
} } | public class class_name {
void setId(String sessionAuthId) {
synchronized (lock) {
if (isCreatingSession.get()) {
this.sessionAuthId = sessionAuthId; // depends on control dependency: [if], data = [none]
}
lock.notifyAll();
}
} } |
public class class_name {
public double getLowerBound(final int numStdDev) {
if (!isEstimationMode()) { return getRetainedEntries(); }
return BinomialBoundsN.getLowerBound(getRetainedEntries(), getTheta(), numStdDev, isEmpty_);
} } | public class class_name {
public double getLowerBound(final int numStdDev) {
if (!isEstimationMode()) { return getRetainedEntries(); } // depends on control dependency: [if], data = [none]
return BinomialBoundsN.getLowerBound(getRetainedEntries(), getTheta(), numStdDev, isEmpty_);
} } |
public class class_name {
ValidationDriver createSchematronDriver(String phase) {
SchemaReaderLoader loader = new SchemaReaderLoader();
SchemaReader schReader = loader.createSchemaReader(SCHEMATRON_NS_URI);
this.configPropBuilder = new PropertyMapBuilder();
SchematronProperty.DIAGNO... | public class class_name {
ValidationDriver createSchematronDriver(String phase) {
SchemaReaderLoader loader = new SchemaReaderLoader();
SchemaReader schReader = loader.createSchemaReader(SCHEMATRON_NS_URI);
this.configPropBuilder = new PropertyMapBuilder();
SchematronProperty.DIAGNO... |
public class class_name {
void onFilterLabelRemoved(String columnId, int row) {
super.filterUpdate(columnId, row);
// Update the displayer view in order to reflect the current selection
// (only if not has already been redrawn in the previous filterUpdate() call)
if (!displayerSettings... | public class class_name {
void onFilterLabelRemoved(String columnId, int row) {
super.filterUpdate(columnId, row);
// Update the displayer view in order to reflect the current selection
// (only if not has already been redrawn in the previous filterUpdate() call)
if (!displayerSettings... |
public class class_name {
private int indexForColumnName(String name) {
final Integer index = rs.getColumnNames().get(name);
if (index == null) { return -1; }
return ((missingColumns & (1 << index.intValue())) == 0) ? index.intValue() : -1;
} } | public class class_name {
private int indexForColumnName(String name) {
final Integer index = rs.getColumnNames().get(name);
if (index == null) { return -1; } // depends on control dependency: [if], data = [none]
return ((missingColumns & (1 << index.intValue())) == 0) ? index.intValue() : -1;
... |
public class class_name {
protected void callChildVisitors(XSLTVisitor visitor, boolean callAttributes)
{
for (ElemTemplateElement node = m_firstChild;
node != null;
node = node.m_nextSibling)
{
node.callVisitors(visitor);
}
} } | public class class_name {
protected void callChildVisitors(XSLTVisitor visitor, boolean callAttributes)
{
for (ElemTemplateElement node = m_firstChild;
node != null;
node = node.m_nextSibling)
{
node.callVisitors(visitor); // depends on control dependency: [for], data = [node]
}
} } |
public class class_name {
private static <V> ListenableFuture<List<V>> listFuture(
ImmutableList<ListenableFuture<? extends V>> futures,
boolean allMustSucceed, Executor listenerExecutor) {
return new CombinedFuture<V, List<V>>(
futures, allMustSucceed, listenerExecutor,
new FutureCombi... | public class class_name {
private static <V> ListenableFuture<List<V>> listFuture(
ImmutableList<ListenableFuture<? extends V>> futures,
boolean allMustSucceed, Executor listenerExecutor) {
return new CombinedFuture<V, List<V>>(
futures, allMustSucceed, listenerExecutor,
new FutureCombi... |
public class class_name {
public void marshall(DescribePolicyRequest describePolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (describePolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(DescribePolicyRequest describePolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (describePolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
private void buildAttributeValueObject(final String name) {
attrval.name = name;
attrval.quality = AttrQuality.ATTR_VALID;
attrval.time = new TimeVal();
attrval.r_dim = new AttributeDim();
attrval.w_dim = new AttributeDim();
attrval.r_dim.dim_x = 1;
attrval.r_dim.dim_y = 0;
attrval.w_... | public class class_name {
private void buildAttributeValueObject(final String name) {
attrval.name = name;
attrval.quality = AttrQuality.ATTR_VALID;
attrval.time = new TimeVal();
attrval.r_dim = new AttributeDim();
attrval.w_dim = new AttributeDim();
attrval.r_dim.dim_x = 1;
attrval.r_dim.dim_y = 0;
attrval.w_... |
public class class_name {
public boolean isAnnotated(ExecutableElement method) {
List<? extends AnnotationMirror> annotationMirrors = method.getAnnotationMirrors();
for (AnnotationMirror annotationMirror : annotationMirrors) {
String typeName = annotationMirror.getAnnotationType().toString(... | public class class_name {
public boolean isAnnotated(ExecutableElement method) {
List<? extends AnnotationMirror> annotationMirrors = method.getAnnotationMirrors();
for (AnnotationMirror annotationMirror : annotationMirrors) {
String typeName = annotationMirror.getAnnotationType().toString(... |
public class class_name {
@Override
protected void throwExceptionForError(final int errorCode) {
try {
m_connection.throwException(errorCode);
} catch (final IOException e) {
throw new RuntimeException(e);
}
} } | public class class_name {
@Override
protected void throwExceptionForError(final int errorCode) {
try {
m_connection.throwException(errorCode); // depends on control dependency: [try], data = [none]
} catch (final IOException e) {
throw new RuntimeException(e);
} // d... |
public class class_name {
public static boolean isValid(@Nullable final String multiDayOfTheWeeks) {
if (multiDayOfTheWeeks == null) {
return true;
}
final StringTokenizer tok = new StringTokenizer(multiDayOfTheWeeks, "/");
if (tok.countTokens() == 0) {
return fa... | public class class_name {
public static boolean isValid(@Nullable final String multiDayOfTheWeeks) {
if (multiDayOfTheWeeks == null) {
return true; // depends on control dependency: [if], data = [none]
}
final StringTokenizer tok = new StringTokenizer(multiDayOfTheWeeks, "/");
... |
public class class_name {
public void execute(final String[] args) {
try {
Options options = createOptions();
if (collectOptions(options, args)) {
setDefaults();
loadConfig();
execute(getInput(), getInputEncoding(), getOutput(),
... | public class class_name {
public void execute(final String[] args) {
try {
Options options = createOptions();
if (collectOptions(options, args)) {
setDefaults(); // depends on control dependency: [if], data = [none]
loadConfig(); // depends on control dep... |
public class class_name {
public static String createDocumentFeatureDescriptor(
final TrainingParameters params) throws IOException {
// <generators>
final Element generators = new Element("generators");
final Document doc = new Document(generators);
// <custom bagofwords /.
if (Flags.i... | public class class_name {
public static String createDocumentFeatureDescriptor(
final TrainingParameters params) throws IOException {
// <generators>
final Element generators = new Element("generators");
final Document doc = new Document(generators);
// <custom bagofwords /.
if (Flags.i... |
public class class_name {
SSLContext getSSLContext(String protocol, KeyManager[] keyManagers, TrustManager[] trustManagers) {
try {
SSLContext sslContext = SSLContext.getInstance(protocol);
sslContext.init(keyManagers, trustManagers, null);
return sslContext;
} catc... | public class class_name {
SSLContext getSSLContext(String protocol, KeyManager[] keyManagers, TrustManager[] trustManagers) {
try {
SSLContext sslContext = SSLContext.getInstance(protocol);
sslContext.init(keyManagers, trustManagers, null); // depends on control dependency: [try], data ... |
public class class_name {
@Override
public TRow getRow() {
TRow row = null;
if (table != null) {
int[] columnTypes = new int[table.columnCount()];
Object[] values = new Object[table.columnCount()];
try {
ResultSetMetaData metaData = resultSet.getMetaData();
for (TColumn column : table.getCo... | public class class_name {
@Override
public TRow getRow() {
TRow row = null;
if (table != null) {
int[] columnTypes = new int[table.columnCount()];
Object[] values = new Object[table.columnCount()];
try {
ResultSetMetaData metaData = resultSet.getMetaData();
for (TColumn column : table.getCo... |
public class class_name {
public synchronized Object put(Object key, Object value) {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINER)) {
//PM16861 Modified trace statement by removing toString of session object to avoid deadlock
... | public class class_name {
public synchronized Object put(Object key, Object value) {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINER)) {
//PM16861 Modified trace statement by removing toString of session object to avoid deadlock
... |
public class class_name {
public Double averagePrecision()
{
double n = 0;
double sumPrecision = 0;
for (int i=0; i<pairs.length; i++) {
if (correctPair(i)) {
n++;
double precisionAtRankI = n/(i+1.0);
sumPrecision += precisionAtRa... | public class class_name {
public Double averagePrecision()
{
double n = 0;
double sumPrecision = 0;
for (int i=0; i<pairs.length; i++) {
if (correctPair(i)) {
n++; // depends on control dependency: [if], data = [none]
double precisionAtRankI = n/... |
public class class_name {
private boolean continueBlock() throws IOException {
byte lastByte = buffer[readPtr - 1];
while(true) {
if(maybeFlush()) return true;
if(!hasFullBlock()) {
refillBuffer();
if(!hasFullBlock()) {
state =... | public class class_name {
private boolean continueBlock() throws IOException {
byte lastByte = buffer[readPtr - 1];
while(true) {
if(maybeFlush()) return true;
if(!hasFullBlock()) {
refillBuffer(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static final String translateUser(String name) {
String ouSeparator = (String)(OpenCms.getRuntimeProperty(PARAM_JLAN_OU_SEPARATOR));
if (ouSeparator == null) {
ouSeparator = DEFAULT_OU_SEPARATOR;
}
String result = name;
result... | public class class_name {
public static final String translateUser(String name) {
String ouSeparator = (String)(OpenCms.getRuntimeProperty(PARAM_JLAN_OU_SEPARATOR));
if (ouSeparator == null) {
ouSeparator = DEFAULT_OU_SEPARATOR;
// depends on control dependency: [if], data = [none]
... |
public class class_name {
public EClass getCDD() {
if (cddEClass == null) {
cddEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(225);
}
return cddEClass;
} } | public class class_name {
public EClass getCDD() {
if (cddEClass == null) {
cddEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(225); // depends on control dependency: [if], data = [none]
}
return cddEClass;
} } |
public class class_name {
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<JSLProperties> getProperties() {
if (properties == null) {
properties = new ArrayList<JSLProperties>();
... | public class class_name {
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<JSLProperties> getProperties() {
if (properties == null) {
properties = new ArrayList<JSLProperties>(); // ... |
public class class_name {
public ServiceGroup createServiceGroup(Set<ResourceClass> resourceClasses, ServiceGroup.ServiceGroupBuilder serviceGroupBuilder) {
for (ResourceClass resourceClass : resourceClasses) {
Logger.info("{0} processing started", resourceClass.getClazz().getCanonicalName());
... | public class class_name {
public ServiceGroup createServiceGroup(Set<ResourceClass> resourceClasses, ServiceGroup.ServiceGroupBuilder serviceGroupBuilder) {
for (ResourceClass resourceClass : resourceClasses) {
Logger.info("{0} processing started", resourceClass.getClazz().getCanonicalName()); // d... |
public class class_name {
static synchronized boolean isJettyNpnConfigured() {
try {
Class.forName("org.eclipse.jetty.npn.NextProtoNego", true, null);
return true;
} catch (ClassNotFoundException e) {
jettyNpnUnavailabilityCause = e;
return false;
}
} } | public class class_name {
static synchronized boolean isJettyNpnConfigured() {
try {
Class.forName("org.eclipse.jetty.npn.NextProtoNego", true, null);
return true; // depends on control dependency: [try], data = [none]
} catch (ClassNotFoundException e) {
jettyNpnUnavailabilityCause = e;
... |
public class class_name {
public static Traverson traverson(final LinkResolver linkResolver,
final ObjectMapper objectMapper) {
if (objectMapper.isEnabled(ACCEPT_SINGLE_VALUE_AS_ARRAY)) {
return new Traverson(linkResolver, objectMapper);
} else {
... | public class class_name {
public static Traverson traverson(final LinkResolver linkResolver,
final ObjectMapper objectMapper) {
if (objectMapper.isEnabled(ACCEPT_SINGLE_VALUE_AS_ARRAY)) {
return new Traverson(linkResolver, objectMapper); // depends on control d... |
public class class_name {
public java.util.List<String> getHostReservationIdSet() {
if (hostReservationIdSet == null) {
hostReservationIdSet = new com.amazonaws.internal.SdkInternalList<String>();
}
return hostReservationIdSet;
} } | public class class_name {
public java.util.List<String> getHostReservationIdSet() {
if (hostReservationIdSet == null) {
hostReservationIdSet = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return hostReservationIdSet;
... |
public class class_name {
public void addField(String name, Object value, Object type) {
if (value == null) {
this.fields.add(new Field(name, null, null));
} else {
this.fields.add(new Field(name, value.toString(), type.toString()));
}
} } | public class class_name {
public void addField(String name, Object value, Object type) {
if (value == null) {
this.fields.add(new Field(name, null, null)); // depends on control dependency: [if], data = [null)]
} else {
this.fields.add(new Field(name, value.toString(), type.toSt... |
public class class_name {
public void setMetricGroups(java.util.Collection<String> metricGroups) {
if (metricGroups == null) {
this.metricGroups = null;
return;
}
this.metricGroups = new java.util.ArrayList<String>(metricGroups);
} } | public class class_name {
public void setMetricGroups(java.util.Collection<String> metricGroups) {
if (metricGroups == null) {
this.metricGroups = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public int[] multiply(int[] p, int[] q) {
int len = p.length + q.length - 1;
int[] result = new int[len];
for (int i = 0; i < len; i++) {
result[i] = 0;
}
for (int i = 0; i < p.length; i++) {
for (int j = 0; j < q.length; j++) {
result[i + j] = add(resu... | public class class_name {
public int[] multiply(int[] p, int[] q) {
int len = p.length + q.length - 1;
int[] result = new int[len];
for (int i = 0; i < len; i++) {
result[i] = 0; // depends on control dependency: [for], data = [i]
}
for (int i = 0; i < p.length; i++) {
for (int j = 0; j... |
public class class_name {
public int compareTo(LogPosition o) {
final int val = fileName.compareTo(o.fileName);
if (val == 0) {
return (int) (position - o.position);
}
return val;
} } | public class class_name {
public int compareTo(LogPosition o) {
final int val = fileName.compareTo(o.fileName);
if (val == 0) {
return (int) (position - o.position);
// depends on control dependency: [if], data = [none]
}
return val;
} } |
public class class_name {
public void setStopbits(String stopbits) {
if (ModbusUtil.isBlank(stopbits) || stopbits.equals("1")) {
this.stopbits = AbstractSerialConnection.ONE_STOP_BIT;
}
else if (stopbits.equals("1.5")) {
this.stopbits = AbstractSerialConnection.ONE_POINT... | public class class_name {
public void setStopbits(String stopbits) {
if (ModbusUtil.isBlank(stopbits) || stopbits.equals("1")) {
this.stopbits = AbstractSerialConnection.ONE_STOP_BIT; // depends on control dependency: [if], data = [none]
}
else if (stopbits.equals("1.5")) {
... |
public class class_name {
@Override
public ServerResponse readObject(ZooPC pc) {
long oid = pc.jdoZooGetOid();
FilePos oie = oidIndex.findOid(oid);
if (oie == null) {
return new ServerResponse(RESULT.OBJECT_NOT_FOUND,
"ERROR OID not found: " + Util.oidToString(oid));
// throw DBLogger.newObjectNotFoun... | public class class_name {
@Override
public ServerResponse readObject(ZooPC pc) {
long oid = pc.jdoZooGetOid();
FilePos oie = oidIndex.findOid(oid);
if (oie == null) {
return new ServerResponse(RESULT.OBJECT_NOT_FOUND,
"ERROR OID not found: " + Util.oidToString(oid)); // depends on control dependency: [i... |
public class class_name {
private Map<String, List<CmsRelation>> getBrokenRelations(List<String> resourceNames) {
Map<String, List<CmsRelation>> brokenRelations = new HashMap<String, List<CmsRelation>>();
CmsRelationFilter filter = CmsRelationFilter.TARGETS.filterIncludeChildren().filterStructureId(
... | public class class_name {
private Map<String, List<CmsRelation>> getBrokenRelations(List<String> resourceNames) {
Map<String, List<CmsRelation>> brokenRelations = new HashMap<String, List<CmsRelation>>();
CmsRelationFilter filter = CmsRelationFilter.TARGETS.filterIncludeChildren().filterStructureId(
... |
public class class_name {
@Implementation
protected PersistableBundle getConfigForSubId(int subId) {
PersistableBundle persistableBundle = bundles.get(subId);
if (persistableBundle == null) {
return new PersistableBundle();
}
return persistableBundle;
} } | public class class_name {
@Implementation
protected PersistableBundle getConfigForSubId(int subId) {
PersistableBundle persistableBundle = bundles.get(subId);
if (persistableBundle == null) {
return new PersistableBundle(); // depends on control dependency: [if], data = [none]
}
return persista... |
public class class_name {
@Override
public void setVariables(Map<String, ServerVariable> variables) {
if (variables == null) {
this.variables = null;
} else {
if (this.variables == null) {
this.variables = new ServerVariablesImpl();
}
... | public class class_name {
@Override
public void setVariables(Map<String, ServerVariable> variables) {
if (variables == null) {
this.variables = null; // depends on control dependency: [if], data = [none]
} else {
if (this.variables == null) {
this.variables ... |
public class class_name {
protected static UL[] readULBatch(ByteBuffer _bb) {
int count = _bb.getInt();
_bb.getInt();
UL[] result = new UL[count];
for (int i = 0; i < count; i++) {
result[i] = UL.read(_bb);
}
return result;
} } | public class class_name {
protected static UL[] readULBatch(ByteBuffer _bb) {
int count = _bb.getInt();
_bb.getInt();
UL[] result = new UL[count];
for (int i = 0; i < count; i++) {
result[i] = UL.read(_bb); // depends on control dependency: [for], data = [i]
}
... |
public class class_name {
static List<String> path(String name, @Nullable Path path) {
if (path != null && !path.toString().isEmpty()) {
return Arrays.asList("--" + name, path.toAbsolutePath().toString());
}
return Collections.emptyList();
} } | public class class_name {
static List<String> path(String name, @Nullable Path path) {
if (path != null && !path.toString().isEmpty()) {
return Arrays.asList("--" + name, path.toAbsolutePath().toString()); // depends on control dependency: [if], data = [none]
}
return Collections.emptyList();
} } |
public class class_name {
public void delete(String name) {
try {
String mapKey = name.toUpperCase();
if ((m_items == null) || (m_items.containsKey(mapKey) == false)) {
throw new CatalogException("Catalog item '" + mapKey + "' doesn't exists in " + m_parent);
... | public class class_name {
public void delete(String name) {
try {
String mapKey = name.toUpperCase();
if ((m_items == null) || (m_items.containsKey(mapKey) == false)) {
throw new CatalogException("Catalog item '" + mapKey + "' doesn't exists in " + m_parent);
... |
public class class_name {
public void displayFacetResult(CmsSolrResultList solrResultList, CmsSearchResultWrapper resultWrapper) {
removeAllComponents();
Component categories = prepareCategoryFacets(solrResultList, resultWrapper);
if (categories != null) {
addComponent(categories);... | public class class_name {
public void displayFacetResult(CmsSolrResultList solrResultList, CmsSearchResultWrapper resultWrapper) {
removeAllComponents();
Component categories = prepareCategoryFacets(solrResultList, resultWrapper);
if (categories != null) {
addComponent(categories);... |
public class class_name {
private void initStandbyFS() {
lastStandbyFSInit = System.currentTimeMillis();
try {
if (standbyFS != null) {
standbyFS.close();
}
LOG.info("DAFS initializing standbyFS");
LOG.info("DAFS primary=" + primaryURI.toString() +
" standby=" + ... | public class class_name {
private void initStandbyFS() {
lastStandbyFSInit = System.currentTimeMillis();
try {
if (standbyFS != null) {
standbyFS.close(); // depends on control dependency: [if], data = [none]
}
LOG.info("DAFS initializing standbyFS"); // depends on control dependency... |
public class class_name {
public static long parseLongBase10(final CharSequence str, final int start, final int end) {
// Current position and character.
int pos = start;
char cur = str.charAt(pos);
// Match sign
boolean isNegative = (cur == '-');
// Carefully consume the - character, update c... | public class class_name {
public static long parseLongBase10(final CharSequence str, final int start, final int end) {
// Current position and character.
int pos = start;
char cur = str.charAt(pos);
// Match sign
boolean isNegative = (cur == '-');
// Carefully consume the - character, update c... |
public class class_name {
public java.util.List<String> getClientIDList() {
if (clientIDList == null) {
clientIDList = new com.amazonaws.internal.SdkInternalList<String>();
}
return clientIDList;
} } | public class class_name {
public java.util.List<String> getClientIDList() {
if (clientIDList == null) {
clientIDList = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return clientIDList;
} } |
public class class_name {
public void fileStarted(AuditEvent event) {
final String fileName = StringUtils.replace(event.getFileName(), "\\", "/");
for (File sourceDirectory : sourceDirectories) {
String sourceDirectoryPath = StringUtils.replace(sourceDirectory.getPath(), "\\", "/");
... | public class class_name {
public void fileStarted(AuditEvent event) {
final String fileName = StringUtils.replace(event.getFileName(), "\\", "/");
for (File sourceDirectory : sourceDirectories) {
String sourceDirectoryPath = StringUtils.replace(sourceDirectory.getPath(), "\\", "/");
... |
public class class_name {
public static String resolveProperty(
final String nodeAttribute,
final String defaultValue,
final INodeEntry node,
final IRundeckProject frameworkProject,
final Framework framework
)
{
if (null != node.getAttributes(... | public class class_name {
public static String resolveProperty(
final String nodeAttribute,
final String defaultValue,
final INodeEntry node,
final IRundeckProject frameworkProject,
final Framework framework
)
{
if (null != node.getAttributes(... |
public class class_name {
@SuppressWarnings("unchecked")
public static Method findGetter(String propertyName, Class entityClass) {
Method getter;
String getterName = "get" + propertyName.substring(0, 1).toUpperCase() +
propertyName.substring(1);
try {
getter = e... | public class class_name {
@SuppressWarnings("unchecked")
public static Method findGetter(String propertyName, Class entityClass) {
Method getter;
String getterName = "get" + propertyName.substring(0, 1).toUpperCase() +
propertyName.substring(1);
try {
getter = e... |
public class class_name {
public ITreeData getNode() {
if (lastPointer.get(mRTX) != null && lastPointer.get(mRTX) < 0) {
return atomics.get(mRTX).getItem(lastPointer.get(mRTX));
} else {
return mRTX.getNode();
}
} } | public class class_name {
public ITreeData getNode() {
if (lastPointer.get(mRTX) != null && lastPointer.get(mRTX) < 0) {
return atomics.get(mRTX).getItem(lastPointer.get(mRTX)); // depends on control dependency: [if], data = [(lastPointer.get(mRTX)]
} else {
return mRTX.getNode(... |
public class class_name {
public static Configuration generateTaskManagerConfiguration(
Configuration baseConfig,
String jobManagerHostname,
int jobManagerPort,
int numSlots,
FiniteDuration registrationTimeout) {
Configuration cfg = cloneConfiguration(baseConfig);
if (jobManagerHostname != nu... | public class class_name {
public static Configuration generateTaskManagerConfiguration(
Configuration baseConfig,
String jobManagerHostname,
int jobManagerPort,
int numSlots,
FiniteDuration registrationTimeout) {
Configuration cfg = cloneConfiguration(baseConfig);
if (jobManagerHostname != nu... |
public class class_name {
private boolean tryResolve(final CLClause c, final int pivot, final CLClause d) {
assert !c.dumped() && !c.satisfied();
assert !d.dumped() && !d.satisfied();
boolean res = true;
assert this.seen.empty();
this.stats.steps++;
for (int i = 0; i < c... | public class class_name {
private boolean tryResolve(final CLClause c, final int pivot, final CLClause d) {
assert !c.dumped() && !c.satisfied();
assert !d.dumped() && !d.satisfied();
boolean res = true;
assert this.seen.empty();
this.stats.steps++;
for (int i = 0; i < c... |
public class class_name {
static int parseValidFlags(String flagChars, boolean hasUpperVariant) {
int flags = hasUpperVariant ? FLAG_UPPER_CASE : 0;
for (int i = 0; i < flagChars.length(); i++) {
int flagIdx = indexOfFlagCharacter(flagChars.charAt(i));
if (flagIdx < 0) {
throw new IllegalAr... | public class class_name {
static int parseValidFlags(String flagChars, boolean hasUpperVariant) {
int flags = hasUpperVariant ? FLAG_UPPER_CASE : 0;
for (int i = 0; i < flagChars.length(); i++) {
int flagIdx = indexOfFlagCharacter(flagChars.charAt(i));
if (flagIdx < 0) {
throw new IllegalAr... |
public class class_name {
public <T> ServerBootstrap childOption(ChannelOption<T> childOption, T value) {
if (childOption == null) {
throw new NullPointerException("childOption");
}
if (value == null) {
synchronized (childOptions) {
childOptions.remove(ch... | public class class_name {
public <T> ServerBootstrap childOption(ChannelOption<T> childOption, T value) {
if (childOption == null) {
throw new NullPointerException("childOption");
}
if (value == null) {
synchronized (childOptions) { // depends on control dependency: [if]... |
public class class_name {
public void setIsRestrictedProfile(boolean isRestrictedProfile) {
UserInfo userInfo = getUserInfo(UserHandle.myUserId());
if (isRestrictedProfile) {
userInfo.flags |= UserInfo.FLAG_RESTRICTED;
} else {
userInfo.flags &= ~UserInfo.FLAG_RESTRICTED;
}
} } | public class class_name {
public void setIsRestrictedProfile(boolean isRestrictedProfile) {
UserInfo userInfo = getUserInfo(UserHandle.myUserId());
if (isRestrictedProfile) {
userInfo.flags |= UserInfo.FLAG_RESTRICTED; // depends on control dependency: [if], data = [none]
} else {
userInfo.flag... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.