code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private File findSourceFile (final String filename)
{
final Collection <File> sourceRoots = this.nonGeneratedSourceRoots;
for (final File sourceRoot : sourceRoots)
{
final File sourceFile = new File (sourceRoot, filename);
if (sourceFile.exists ())
{
re... | public class class_name {
private File findSourceFile (final String filename)
{
final Collection <File> sourceRoots = this.nonGeneratedSourceRoots;
for (final File sourceRoot : sourceRoots)
{
final File sourceFile = new File (sourceRoot, filename);
if (sourceFile.exists ())
{
re... |
public class class_name {
private void checkHorizontalLimit(double extrp, double vx)
{
// Inside interval
if (mover.getX() >= limitLeft
&& mover.getX() <= limitRight
&& limitLeft != Integer.MIN_VALUE
&& limitRight != Integer.MAX_VALUE)
{
offse... | public class class_name {
private void checkHorizontalLimit(double extrp, double vx)
{
// Inside interval
if (mover.getX() >= limitLeft
&& mover.getX() <= limitRight
&& limitLeft != Integer.MIN_VALUE
&& limitRight != Integer.MAX_VALUE)
{
offse... |
public class class_name {
private void removeFolders() throws CmsImportExportException {
try {
int size = m_folderStorage.size();
m_report.println(Messages.get().container(Messages.RPT_DELFOLDER_START_0), I_CmsReport.FORMAT_HEADLINE);
// iterate though all collected folde... | public class class_name {
private void removeFolders() throws CmsImportExportException {
try {
int size = m_folderStorage.size();
m_report.println(Messages.get().container(Messages.RPT_DELFOLDER_START_0), I_CmsReport.FORMAT_HEADLINE);
// iterate though all collected folde... |
public class class_name {
static List<Annotation> getAnnotations(AnnotatedElement element, EnumSet<FindOption> findOptions,
Predicate<Annotation> collectingFilter) {
requireNonNull(element, "element");
requireNonNull(collectingFilter, "collectingFilter");
... | public class class_name {
static List<Annotation> getAnnotations(AnnotatedElement element, EnumSet<FindOption> findOptions,
Predicate<Annotation> collectingFilter) {
requireNonNull(element, "element");
requireNonNull(collectingFilter, "collectingFilter");
... |
public class class_name {
public boolean isRemoteBranch(final Git git, final String branch, final String remote) {
try {
final List<Ref> refs = git.branchList()
.setListMode(ListBranchCommand.ListMode.REMOTE).call();
final String remoteBranch = remote + "/" + branch;
... | public class class_name {
public boolean isRemoteBranch(final Git git, final String branch, final String remote) {
try {
final List<Ref> refs = git.branchList()
.setListMode(ListBranchCommand.ListMode.REMOTE).call();
final String remoteBranch = remote + "/" + branch;
... |
public class class_name {
@Api
public void setRoles(Map<String, List<AuthorizationInfo>> roles) {
Map<String, List<NamedRoleInfo>> namedRoles = new HashMap<String, List<NamedRoleInfo>>();
for (String ldapRole : roles.keySet()) {
DN dn;
List<AuthorizationInfo> auth = roles.get(ldapRole);
NamedRoleInfo rol... | public class class_name {
@Api
public void setRoles(Map<String, List<AuthorizationInfo>> roles) {
Map<String, List<NamedRoleInfo>> namedRoles = new HashMap<String, List<NamedRoleInfo>>();
for (String ldapRole : roles.keySet()) {
DN dn;
List<AuthorizationInfo> auth = roles.get(ldapRole);
NamedRoleInfo rol... |
public class class_name {
public Map<URI, URI> getConflicTable() {
for (final Map.Entry<URI, URI> e : conflictTable.entrySet()) {
assert e.getKey().isAbsolute();
assert e.getValue().isAbsolute();
}
return conflictTable;
} } | public class class_name {
public Map<URI, URI> getConflicTable() {
for (final Map.Entry<URI, URI> e : conflictTable.entrySet()) {
assert e.getKey().isAbsolute();
assert e.getValue().isAbsolute(); // depends on control dependency: [for], data = [e]
}
return conflictTable;... |
public class class_name {
public com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResultOrBuilder
getCategoricalStatsResultOrBuilder() {
if (resultCase_ == 4) {
return (com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult)
result_;
}
retu... | public class class_name {
public com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResultOrBuilder
getCategoricalStatsResultOrBuilder() {
if (resultCase_ == 4) {
return (com.google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult)
result_; // depends on ... |
public class class_name {
@Override
public String cipherSuite()
{
SSLSocket sslSocket = _sslSocket;
if (sslSocket == null) {
return super.cipherSuite();
}
SSLSession sslSession = sslSocket.getSession();
if (sslSession != null) {
return sslSession.getCipherSuite();
... | public class class_name {
@Override
public String cipherSuite()
{
SSLSocket sslSocket = _sslSocket;
if (sslSocket == null) {
return super.cipherSuite(); // depends on control dependency: [if], data = [none]
}
SSLSession sslSession = sslSocket.getSession();
if (sslSession !=... |
public class class_name {
public double getTagSequenceProb() {
// System.err.println("Parse.getTagSequenceProb: "+type+" "+this);
if (this.parts.size() == 1
&& this.parts.get(0).type.equals(ShiftReduceParser.TOK_NODE)) {
// System.err.println(this+" "+prob);
return Math.log(this.prob);
... | public class class_name {
public double getTagSequenceProb() {
// System.err.println("Parse.getTagSequenceProb: "+type+" "+this);
if (this.parts.size() == 1
&& this.parts.get(0).type.equals(ShiftReduceParser.TOK_NODE)) {
// System.err.println(this+" "+prob);
return Math.log(this.prob); // d... |
public class class_name {
public boolean has(DatabaseObject example, Database database) throws DatabaseException, InvalidExampleException {
// @todo I have seen duplicates in types - maybe convert the List into a Set? Need to understand it more thoroughly.
List<Class<? extends DatabaseObject>> types = ... | public class class_name {
public boolean has(DatabaseObject example, Database database) throws DatabaseException, InvalidExampleException {
// @todo I have seen duplicates in types - maybe convert the List into a Set? Need to understand it more thoroughly.
List<Class<? extends DatabaseObject>> types = ... |
public class class_name {
public DataBinder load(String[] args, int offset) {
for (int i = offset; i < args.length; ++i) {
int equal = args[i].indexOf('=');
if (equal > 0) {
put(args[i].substring(0, equal), args[i].substring(equal + 1));
} else {
... | public class class_name {
public DataBinder load(String[] args, int offset) {
for (int i = offset; i < args.length; ++i) {
int equal = args[i].indexOf('=');
if (equal > 0) {
put(args[i].substring(0, equal), args[i].substring(equal + 1)); // depends on control dependency:... |
public class class_name {
public DependencyInfo createDependencyInfo(File basedir, String filename) {
DependencyInfo dependency;
try {
File dependencyFile = new File(basedir, filename);
String sha1 = ChecksumUtils.calculateSHA1(dependencyFile);
dependency = new Depen... | public class class_name {
public DependencyInfo createDependencyInfo(File basedir, String filename) {
DependencyInfo dependency;
try {
File dependencyFile = new File(basedir, filename);
String sha1 = ChecksumUtils.calculateSHA1(dependencyFile);
dependency = new Depen... |
public class class_name {
@Override
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
PathAddress address = context.getCurrentAddress();
// re-install the cache container services
CacheContainerAddHandler.insta... | public class class_name {
@Override
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
PathAddress address = context.getCurrentAddress();
// re-install the cache container services
CacheContainerAddHandler.insta... |
public class class_name {
public void debug(final String msg) {
if (proxy.isDebugEnabled()) {
if (proxy instanceof LocationAwareLogger) {
((LocationAwareLogger) proxy).log(null, FQCN, LocationAwareLogger.DEBUG_INT, msg, null, null);
} else {
proxy.debug(m... | public class class_name {
public void debug(final String msg) {
if (proxy.isDebugEnabled()) {
if (proxy instanceof LocationAwareLogger) {
((LocationAwareLogger) proxy).log(null, FQCN, LocationAwareLogger.DEBUG_INT, msg, null, null); // depends on control dependency: [if], data = [no... |
public class class_name {
@SuppressWarnings("unchecked")
private void checkNeedUpdateTopologies(Map<String, StateHeartbeat> localWorkerStats,
Map<Integer, LocalAssignment> localAssignments) throws Exception {
Set<String> topologies = new HashSet<>();
for ... | public class class_name {
@SuppressWarnings("unchecked")
private void checkNeedUpdateTopologies(Map<String, StateHeartbeat> localWorkerStats,
Map<Integer, LocalAssignment> localAssignments) throws Exception {
Set<String> topologies = new HashSet<>();
for ... |
public class class_name {
public void createFailure(BeanO beanO)
{
//-----------------------------------------------------------
// If beanO is null then it was never added to the container
// so we don't need to do anything.
//-------------------------------------------------------... | public class class_name {
public void createFailure(BeanO beanO)
{
//-----------------------------------------------------------
// If beanO is null then it was never added to the container
// so we don't need to do anything.
//-------------------------------------------------------... |
public class class_name {
final void checkReturnType(TypeElement autoValueClass, ExecutableElement getter) {
TypeMirror type = getter.getReturnType();
if (type.getKind() == TypeKind.ARRAY) {
TypeMirror componentType = ((ArrayType) type).getComponentType();
if (componentType.getKind().isPrimitive())... | public class class_name {
final void checkReturnType(TypeElement autoValueClass, ExecutableElement getter) {
TypeMirror type = getter.getReturnType();
if (type.getKind() == TypeKind.ARRAY) {
TypeMirror componentType = ((ArrayType) type).getComponentType();
if (componentType.getKind().isPrimitive())... |
public class class_name {
public void queryMessagesByType(int msgType, final String msgId, final long timestamp, final int limit,
final AVIMMessagesQueryCallback callback) {
if (null == callback) {
return;
}
Map<String, Object> params = new HashMap<String, Object>();... | public class class_name {
public void queryMessagesByType(int msgType, final String msgId, final long timestamp, final int limit,
final AVIMMessagesQueryCallback callback) {
if (null == callback) {
return; // depends on control dependency: [if], data = [none]
}
Map<S... |
public class class_name {
@SuppressWarnings({ "unchecked", "unused" })
private static void rewriteMergeList(String key, String subKey,
NamedList<Object> snl, NamedList<Object> tnl) {
for (int i = 0; i < tnl.size(); i++) {
Object item = snl.get(tnl.getName(i));
if (item != null && tnl.getVal(i) ... | public class class_name {
@SuppressWarnings({ "unchecked", "unused" })
private static void rewriteMergeList(String key, String subKey,
NamedList<Object> snl, NamedList<Object> tnl) {
for (int i = 0; i < tnl.size(); i++) {
Object item = snl.get(tnl.getName(i));
if (item != null && tnl.getVal(i) ... |
public class class_name {
public static String typeToTyperef(final Class type) {
if (!type.isArray()) {
if (!type.isPrimitive()) {
return 'L' + typeToSignature(type) + ';';
}
if (type == int.class) {
return "I";
}
if (type == long.class) {
return "J";
}
if (type == boolean.class) {
... | public class class_name {
public static String typeToTyperef(final Class type) {
if (!type.isArray()) {
if (!type.isPrimitive()) {
return 'L' + typeToSignature(type) + ';'; // depends on control dependency: [if], data = [none]
}
if (type == int.class) {
return "I"; // depends on control dependency: ... |
public class class_name {
private List<Node> createObjectsForQualifiedName(String namespace) {
List<Node> objects = new ArrayList<>();
String[] parts = namespace.split("\\.");
createObjectIfNew(objects, parts[0], true);
if (parts.length >= 2) {
StringBuilder currPrefix = new StringBuilder().app... | public class class_name {
private List<Node> createObjectsForQualifiedName(String namespace) {
List<Node> objects = new ArrayList<>();
String[] parts = namespace.split("\\.");
createObjectIfNew(objects, parts[0], true);
if (parts.length >= 2) {
StringBuilder currPrefix = new StringBuilder().app... |
public class class_name {
public static ErrorCode isAddressValid(String address){
if (!isMustFieldValid( address, ipRegEx)) {
return ErrorCode.SERVICE_INSTANCE_ADDRESS_FORMAT_ERROR;
}
return ErrorCode.OK;
} } | public class class_name {
public static ErrorCode isAddressValid(String address){
if (!isMustFieldValid( address, ipRegEx)) {
return ErrorCode.SERVICE_INSTANCE_ADDRESS_FORMAT_ERROR; // depends on control dependency: [if], data = [none]
}
return ErrorCode.OK;
} } |
public class class_name {
public synchronized void stop() {
if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINER)) {
LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[STOP]);
}
inProcessOfStopping ... | public class class_name {
public synchronized void stop() {
if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINER)) {
LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[STOP]); // depends on control dependency: [if]... |
public class class_name {
public static TaggedLogger tag(final String tag) {
if (tag == null || tag.isEmpty()) {
return instance;
} else {
TaggedLogger logger = loggers.get(tag);
if (logger == null) {
logger = new TaggedLogger(tag);
TaggedLogger existing = loggers.putIfAbsent(tag, logger);
ret... | public class class_name {
public static TaggedLogger tag(final String tag) {
if (tag == null || tag.isEmpty()) {
return instance; // depends on control dependency: [if], data = [none]
} else {
TaggedLogger logger = loggers.get(tag);
if (logger == null) {
logger = new TaggedLogger(tag); // depends on c... |
public class class_name {
public static ConnectionType getVCConnectionType(VirtualConnection vc) {
if (vc == null) {
return null;
}
return (ConnectionType) vc.getStateMap().get(CONNECTION_TYPE_VC_KEY);
} } | public class class_name {
public static ConnectionType getVCConnectionType(VirtualConnection vc) {
if (vc == null) {
return null; // depends on control dependency: [if], data = [none]
}
return (ConnectionType) vc.getStateMap().get(CONNECTION_TYPE_VC_KEY);
} } |
public class class_name {
public void setLinkSpecifiers(java.util.Collection<TypedLinkSpecifier> linkSpecifiers) {
if (linkSpecifiers == null) {
this.linkSpecifiers = null;
return;
}
this.linkSpecifiers = new java.util.ArrayList<TypedLinkSpecifier>(linkSpecifiers);
... | public class class_name {
public void setLinkSpecifiers(java.util.Collection<TypedLinkSpecifier> linkSpecifiers) {
if (linkSpecifiers == null) {
this.linkSpecifiers = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
public static boolean methodBelongsTo(Method m, Method[] methods){
boolean result = false;
for (int i = 0; i < methods.length && !result; i++) {
if(methodEquals (methods [i], m)){
result = true;
}
}
return result;
} } | public class class_name {
public static boolean methodBelongsTo(Method m, Method[] methods){
boolean result = false;
for (int i = 0; i < methods.length && !result; i++) {
if(methodEquals (methods [i], m)){
result = true; // depends on control dependency: [if], data = [none]
}
}
return result;
... |
public class class_name {
public static void parsePattern(List<NS> nsList, List<Vertex> vertexList, final WordNet wordNetOptimum, final WordNet wordNetAll)
{
// ListIterator<Vertex> listIterator = vertexList.listIterator();
StringBuilder sbPattern = new StringBuilder(nsList.size());
for (NS ... | public class class_name {
public static void parsePattern(List<NS> nsList, List<Vertex> vertexList, final WordNet wordNetOptimum, final WordNet wordNetAll)
{
// ListIterator<Vertex> listIterator = vertexList.listIterator();
StringBuilder sbPattern = new StringBuilder(nsList.size());
for (NS ... |
public class class_name {
public Stack withNotificationARNs(String... notificationARNs) {
if (this.notificationARNs == null) {
setNotificationARNs(new com.amazonaws.internal.SdkInternalList<String>(notificationARNs.length));
}
for (String ele : notificationARNs) {
this.n... | public class class_name {
public Stack withNotificationARNs(String... notificationARNs) {
if (this.notificationARNs == null) {
setNotificationARNs(new com.amazonaws.internal.SdkInternalList<String>(notificationARNs.length)); // depends on control dependency: [if], data = [none]
}
fo... |
public class class_name {
public void setId(final Integer id) {
if (id == null && this.id == null) {
return;
} else if (id == null) {
removeChild(this.id);
this.id = null;
} else if (this.id == null) {
this.id = new KeyValueNode<Integer>(CommonCon... | public class class_name {
public void setId(final Integer id) {
if (id == null && this.id == null) {
return; // depends on control dependency: [if], data = [none]
} else if (id == null) {
removeChild(this.id); // depends on control dependency: [if], data = [none]
thi... |
public class class_name {
public static KeyStore load(InputStream in, char[] password) {
try {
KeyStore myTrustStore = KeyStore.getInstance(KeyStore.getDefaultType());
myTrustStore.load(in, password);
return myTrustStore;
} catch (CertificateException | NoSuchAlgori... | public class class_name {
public static KeyStore load(InputStream in, char[] password) {
try {
KeyStore myTrustStore = KeyStore.getInstance(KeyStore.getDefaultType());
myTrustStore.load(in, password); // depends on control dependency: [try], data = [none]
return myTrustStor... |
public class class_name {
protected ElementBox createAnonymousBox(ElementBox parent, Box child, boolean block)
{
ElementBox anbox;
if (block)
{
Element anelem = createAnonymousElement(child.getNode().getOwnerDocument(), "Xdiv", "block");
anbox = new BlockBox(anelem, ... | public class class_name {
protected ElementBox createAnonymousBox(ElementBox parent, Box child, boolean block)
{
ElementBox anbox;
if (block)
{
Element anelem = createAnonymousElement(child.getNode().getOwnerDocument(), "Xdiv", "block");
anbox = new BlockBox(anelem, ... |
public class class_name {
public static String userTagAction(String property, ServletRequest req) {
CmsFlexController controller = CmsFlexController.getController(req);
CmsObject cms = controller.getCmsObject();
CmsUser user = cms.getRequestContext().getCurrentUser();
if (property ==... | public class class_name {
public static String userTagAction(String property, ServletRequest req) {
CmsFlexController controller = CmsFlexController.getController(req);
CmsObject cms = controller.getCmsObject();
CmsUser user = cms.getRequestContext().getCurrentUser();
if (property ==... |
public class class_name {
public static String getAbbreviatedName(final Class<?> cls, final int len) {
if (cls == null) {
return StringUtils.EMPTY;
}
return getAbbreviatedName(cls.getName(), len);
} } | public class class_name {
public static String getAbbreviatedName(final Class<?> cls, final int len) {
if (cls == null) {
return StringUtils.EMPTY; // depends on control dependency: [if], data = [none]
}
return getAbbreviatedName(cls.getName(), len);
} } |
public class class_name {
public static double parseDouble(String val, double defValue){
if(TextUtils.isEmpty(val)) return defValue;
try{
return Double.parseDouble(val);
}catch(NumberFormatException e){
return defValue;
}
} } | public class class_name {
public static double parseDouble(String val, double defValue){
if(TextUtils.isEmpty(val)) return defValue;
try{
return Double.parseDouble(val); // depends on control dependency: [try], data = [none]
}catch(NumberFormatException e){
return defVal... |
public class class_name {
public static int indexOfAny(final CharSequence str, final CharSequence... searchStrs) {
if (str == null || searchStrs == null) {
return INDEX_NOT_FOUND;
}
// String's can't have a MAX_VALUEth index.
int ret = Integer.MAX_VALUE;
int tmp = ... | public class class_name {
public static int indexOfAny(final CharSequence str, final CharSequence... searchStrs) {
if (str == null || searchStrs == null) {
return INDEX_NOT_FOUND; // depends on control dependency: [if], data = [none]
}
// String's can't have a MAX_VALUEth index.
... |
public class class_name {
public void logout() {
if (loginContext != null) {
try {
loginContext.logout();
if (logoutLogger.isDebugEnabled()) {
logoutLogger.debug("[ws/#" + getId() + "] Logout successful.");
}
} catch (L... | public class class_name {
public void logout() {
if (loginContext != null) {
try {
loginContext.logout(); // depends on control dependency: [try], data = [none]
if (logoutLogger.isDebugEnabled()) {
logoutLogger.debug("[ws/#" + getId() + "] Logout ... |
public class class_name {
public void setDisableLogTypes(java.util.Collection<String> disableLogTypes) {
if (disableLogTypes == null) {
this.disableLogTypes = null;
return;
}
this.disableLogTypes = new java.util.ArrayList<String>(disableLogTypes);
} } | public class class_name {
public void setDisableLogTypes(java.util.Collection<String> disableLogTypes) {
if (disableLogTypes == null) {
this.disableLogTypes = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public String getStatusCodeReply() {
flush();
this.pipelinedCommands--;
final byte[] resp = (byte[]) RedisProtocol.read(inputStream);
if (null == resp) {
return null;
} else {
return SafeEncoder.encode(resp);
}
} } | public class class_name {
public String getStatusCodeReply() {
flush();
this.pipelinedCommands--;
final byte[] resp = (byte[]) RedisProtocol.read(inputStream);
if (null == resp) {
return null; // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
private synchronized void loadLookup() {
if (lookup != null)
return;
Object[][] contents = getContents();
HashMap<String,Object> temp = new HashMap<>(contents.length);
for (int i = 0; i < contents.length; ++i) {
// key must be non-null ... | public class class_name {
private synchronized void loadLookup() {
if (lookup != null)
return;
Object[][] contents = getContents();
HashMap<String,Object> temp = new HashMap<>(contents.length);
for (int i = 0; i < contents.length; ++i) {
// key must be non-null ... |
public class class_name {
protected Icon getIcon(AbstractButton b) {
Icon icon = b.getIcon();
ButtonModel model = b.getModel();
if (!model.isEnabled()) {
icon = getSynthDisabledIcon(b, icon);
} else if (model.isPressed() && model.isArmed()) {
icon = getP... | public class class_name {
protected Icon getIcon(AbstractButton b) {
Icon icon = b.getIcon();
ButtonModel model = b.getModel();
if (!model.isEnabled()) {
icon = getSynthDisabledIcon(b, icon); // depends on control dependency: [if], data = [none]
} else if (model.isP... |
public class class_name {
public void setDimensionConfigurations(java.util.Collection<CloudWatchDimensionConfiguration> dimensionConfigurations) {
if (dimensionConfigurations == null) {
this.dimensionConfigurations = null;
return;
}
this.dimensionConfigurations = new ja... | public class class_name {
public void setDimensionConfigurations(java.util.Collection<CloudWatchDimensionConfiguration> dimensionConfigurations) {
if (dimensionConfigurations == null) {
this.dimensionConfigurations = null; // depends on control dependency: [if], data = [none]
return; //... |
public class class_name {
protected boolean executeOneCompleteStmt(final String _complStmt)
throws EFapsException
{
final boolean ret = false;
ConnectionResource con = null;
try {
con = Context.getThreadContext().getConnectionResource();
AbstractObjectQuery.... | public class class_name {
protected boolean executeOneCompleteStmt(final String _complStmt)
throws EFapsException
{
final boolean ret = false;
ConnectionResource con = null;
try {
con = Context.getThreadContext().getConnectionResource();
AbstractObjectQuery.... |
public class class_name {
public static final boolean toBoolean(String str, boolean trueIfNull) {
if (str == null && trueIfNull) {
return true;
}
return toBoolean(str);
} } | public class class_name {
public static final boolean toBoolean(String str, boolean trueIfNull) {
if (str == null && trueIfNull) {
return true; // depends on control dependency: [if], data = [none]
}
return toBoolean(str);
} } |
public class class_name {
@Override
public String toUriString() {
StringBuilder uriBuilder = new StringBuilder();
if (getScheme() != null) {
uriBuilder.append(getScheme());
uriBuilder.append(':');
}
if (this.userInfo != null || this.host != null) {
uriBuilder.append("//");
if (this.userInfo != nul... | public class class_name {
@Override
public String toUriString() {
StringBuilder uriBuilder = new StringBuilder();
if (getScheme() != null) {
uriBuilder.append(getScheme()); // depends on control dependency: [if], data = [(getScheme()]
uriBuilder.append(':'); // depends on control dependency: [if], data = [n... |
public class class_name {
public static boolean parseRanges(FileRequestContext context) {
if( !StringUtils.isBlank(context.range) ) {
Matcher rangeMatcher = rangePattern.matcher(context.range);
if(rangeMatcher.matches()) {
String ranges[] = rangeMatcher.group(1).split(",");
for(String r... | public class class_name {
public static boolean parseRanges(FileRequestContext context) {
if( !StringUtils.isBlank(context.range) ) {
Matcher rangeMatcher = rangePattern.matcher(context.range);
if(rangeMatcher.matches()) {
String ranges[] = rangeMatcher.group(1).split(",");
for(String r... |
public class class_name {
public static HttpServletResponse getHttpServletResponse(ExternalContext ec)
{
if (isHttpServletRequest(ec))
{
return (HttpServletResponse) ec.getResponse();
}
return null;
} } | public class class_name {
public static HttpServletResponse getHttpServletResponse(ExternalContext ec)
{
if (isHttpServletRequest(ec))
{
return (HttpServletResponse) ec.getResponse(); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
@Override
public int getHeight() {
View view = viewRef.get();
if (view != null) {
final ViewGroup.LayoutParams params = view.getLayoutParams();
int height = 0;
if (checkActualViewSize && params != null && params.height != ViewGroup.LayoutParams.WRAP_CONTENT) {
height = view.... | public class class_name {
@Override
public int getHeight() {
View view = viewRef.get();
if (view != null) {
final ViewGroup.LayoutParams params = view.getLayoutParams();
int height = 0;
if (checkActualViewSize && params != null && params.height != ViewGroup.LayoutParams.WRAP_CONTENT) {
height = view.... |
public class class_name {
public void setAdditionalLanguageCodes(java.util.Collection<String> additionalLanguageCodes) {
if (additionalLanguageCodes == null) {
this.additionalLanguageCodes = null;
return;
}
this.additionalLanguageCodes = new java.util.ArrayList<String>(... | public class class_name {
public void setAdditionalLanguageCodes(java.util.Collection<String> additionalLanguageCodes) {
if (additionalLanguageCodes == null) {
this.additionalLanguageCodes = null; // depends on control dependency: [if], data = [none]
return; // depends on control depend... |
public class class_name {
public void processRequestAck(long tick, long dmeVersion)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"processRequestAck",
new Object[] { Long.valueOf(tick), Long.valueOf(dmeVersion)});
// Only consider non-stale... | public class class_name {
public void processRequestAck(long tick, long dmeVersion)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"processRequestAck",
new Object[] { Long.valueOf(tick), Long.valueOf(dmeVersion)});
// Only consider non-stale... |
public class class_name {
protected void processLayer(GrayF32 image1 , GrayF32 image2 , GrayF32 derivX2 , GrayF32 derivY2) {
float w = SOR_RELAXATION;
float uf,vf;
// outer Taylor expansion iterations
for( int warp = 0; warp < numWarps; warp++ ) {
initFlowX.setTo(flowX);
initFlowY.setTo(flowY);
wa... | public class class_name {
protected void processLayer(GrayF32 image1 , GrayF32 image2 , GrayF32 derivX2 , GrayF32 derivY2) {
float w = SOR_RELAXATION;
float uf,vf;
// outer Taylor expansion iterations
for( int warp = 0; warp < numWarps; warp++ ) {
initFlowX.setTo(flowX); // depends on control dependency:... |
public class class_name {
public byte[] getGravatarForUser(User userParam, int sizeParam)
{
if(userParam == null)
{
return null;
}
try {
JSONObject gravatarJSONObj = this.postJson(
userParam,
WS.Path.Us... | public class class_name {
public byte[] getGravatarForUser(User userParam, int sizeParam)
{
if(userParam == null)
{
return null; // depends on control dependency: [if], data = [none]
}
try {
JSONObject gravatarJSONObj = this.postJson(
... |
public class class_name {
private E setRelationEntities(Object enhanceEntity, Client client, EntityMetadata m)
{
E result = null;
if (enhanceEntity != null)
{
if (!(enhanceEntity instanceof EnhanceEntity))
{
enhanceEntity = new EnhanceEntity(enhanceEn... | public class class_name {
private E setRelationEntities(Object enhanceEntity, Client client, EntityMetadata m)
{
E result = null;
if (enhanceEntity != null)
{
if (!(enhanceEntity instanceof EnhanceEntity))
{
enhanceEntity = new EnhanceEntity(enhanceEn... |
public class class_name {
public String getTimeline() {
StringBuilder builder = new StringBuilder();
for (Event event : events) {
builder.append(event.name()).append(":").append(event.timestamp()).append(";");
}
return builder.toString();
} } | public class class_name {
public String getTimeline() {
StringBuilder builder = new StringBuilder();
for (Event event : events) {
builder.append(event.name()).append(":").append(event.timestamp()).append(";"); // depends on control dependency: [for], data = [event]
}
return builder.toString();
... |
public class class_name {
@Nullable
public static Templates newTemplates (@Nonnull final TransformerFactory aTransformerFactory,
@Nonnull final Source aSource)
{
ValueEnforcer.notNull (aTransformerFactory, "TransformerFactory");
ValueEnforcer.notNull (aSource, "Sourc... | public class class_name {
@Nullable
public static Templates newTemplates (@Nonnull final TransformerFactory aTransformerFactory,
@Nonnull final Source aSource)
{
ValueEnforcer.notNull (aTransformerFactory, "TransformerFactory");
ValueEnforcer.notNull (aSource, "Sourc... |
public class class_name {
public final Object make(Parameterization config) {
if(state != STATE_FRESH) {
throw new AbortException("Parameterizers may only be used once!");
}
state = STATE_INIT;
Object owner = this.getClass().getDeclaringClass();
config = config.descend(owner == null ? this :... | public class class_name {
public final Object make(Parameterization config) {
if(state != STATE_FRESH) {
throw new AbortException("Parameterizers may only be used once!");
}
state = STATE_INIT;
Object owner = this.getClass().getDeclaringClass();
config = config.descend(owner == null ? this :... |
public class class_name {
@Override
public void removeAuthorizedClient(String clientRegistrationId, String principalName) {
Assert.hasText(clientRegistrationId, "clientRegistrationId cannot be empty");
Assert.hasText(principalName, "principalName cannot be empty");
ClientRegistration registration =
... | public class class_name {
@Override
public void removeAuthorizedClient(String clientRegistrationId, String principalName) {
Assert.hasText(clientRegistrationId, "clientRegistrationId cannot be empty");
Assert.hasText(principalName, "principalName cannot be empty");
ClientRegistration registration =
... |
public class class_name {
protected void refreshPeer (NodeRecord record)
{
PeerNode peer = _peers.get(record.nodeName);
if (peer == null) {
peer = _injector.getInstance(getPeerNodeClass());
_peers.put(record.nodeName, peer);
peer.init(record);
}
p... | public class class_name {
protected void refreshPeer (NodeRecord record)
{
PeerNode peer = _peers.get(record.nodeName);
if (peer == null) {
peer = _injector.getInstance(getPeerNodeClass()); // depends on control dependency: [if], data = [none]
_peers.put(record.nodeName, pee... |
public class class_name {
public SslContextBuilder keyManager(InputStream keyCertChainInputStream, InputStream keyInputStream,
String keyPassword) {
X509Certificate[] keyCertChain;
PrivateKey key;
try {
keyCertChain = SslContext.toX509Certificates(keyCertChainInputStream... | public class class_name {
public SslContextBuilder keyManager(InputStream keyCertChainInputStream, InputStream keyInputStream,
String keyPassword) {
X509Certificate[] keyCertChain;
PrivateKey key;
try {
keyCertChain = SslContext.toX509Certificates(keyCertChainInputStream... |
public class class_name {
public Number doParse(String text, ParsePosition parsePosition, boolean isFractionRule,
double upperBound) {
// internally we operate on a copy of the string being parsed
// (because we're going to change it) and use our own ParsePosition
Par... | public class class_name {
public Number doParse(String text, ParsePosition parsePosition, boolean isFractionRule,
double upperBound) {
// internally we operate on a copy of the string being parsed
// (because we're going to change it) and use our own ParsePosition
Par... |
public class class_name {
public void load(Class<? extends Describable> c) {
try {
Class.forName(c.getName(), true, c.getClassLoader());
} catch (ClassNotFoundException e) {
throw new AssertionError(e); // Can't happen
}
} } | public class class_name {
public void load(Class<? extends Describable> c) {
try {
Class.forName(c.getName(), true, c.getClassLoader());
} catch (ClassNotFoundException e) {
throw new AssertionError(e); // Can't happen
} // depends on control dependency: [catch], data =... |
public class class_name {
@Override
public void validate() {
if (value == null) {
throw new NoValueGivenException(getPath());
}
if (valids.size() != 0) {
boolean ok = false;
String valString = (value != null) ? value.toString() : "";
for (in... | public class class_name {
@Override
public void validate() {
if (value == null) {
throw new NoValueGivenException(getPath());
}
if (valids.size() != 0) {
boolean ok = false;
String valString = (value != null) ? value.toString() : "";
for (in... |
public class class_name {
public static Integer toInteger(Object value) {
if (value == null) {
return null;
} else if (value instanceof Integer) {
return (Integer) value;
} else if (value instanceof Number) {
return ((Number) value).intValue();
} else... | public class class_name {
public static Integer toInteger(Object value) {
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
} else if (value instanceof Integer) {
return (Integer) value; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static boolean isDataObject(final Object object) {
if (object == null) {
return true;
}
Class<?> clazz = object.getClass();
return isDataClass(clazz);
} } | public class class_name {
public static boolean isDataObject(final Object object) {
if (object == null) {
return true; // depends on control dependency: [if], data = [none]
}
Class<?> clazz = object.getClass();
return isDataClass(clazz);
} } |
public class class_name {
private int getInt(List<byte[]> blocks)
{
int result;
if (blocks.isEmpty() == false)
{
byte[] data = blocks.remove(0);
result = MPPUtility.getInt(data, 0);
}
else
{
result = 0;
}
return (result);
} } | public class class_name {
private int getInt(List<byte[]> blocks)
{
int result;
if (blocks.isEmpty() == false)
{
byte[] data = blocks.remove(0);
result = MPPUtility.getInt(data, 0); // depends on control dependency: [if], data = [none]
}
else
{
result =... |
public class class_name {
private void detach() {
// Do not call setVisible(false) here: that would make it invisible by default (detach() is called in attach())
if (decoratedComponent != null) {
decoratedComponent.removeComponentListener(decoratedComponentTracker);
decoratedCo... | public class class_name {
private void detach() {
// Do not call setVisible(false) here: that would make it invisible by default (detach() is called in attach())
if (decoratedComponent != null) {
decoratedComponent.removeComponentListener(decoratedComponentTracker); // depends on control d... |
public class class_name {
@SuppressWarnings("unchecked")
static public <T> T loadByReflection(String className,
Object ... arguments) {
try{
return (T) new MetaClass(className).createInstance(arguments);
} catch(Exception e){
throw new ReflectionL... | public class class_name {
@SuppressWarnings("unchecked")
static public <T> T loadByReflection(String className,
Object ... arguments) {
try{
return (T) new MetaClass(className).createInstance(arguments);
// depends on control dependency: [try], data = [none]... |
public class class_name {
public ServletContext getCurrentServletContext() {
final ClassLoader cl = getContextClassLoader();
if (cl == null) {
return null;
}
return servletContexts.get(cl);
} } | public class class_name {
public ServletContext getCurrentServletContext() {
final ClassLoader cl = getContextClassLoader();
if (cl == null) {
return null; // depends on control dependency: [if], data = [none]
}
return servletContexts.get(cl);
} } |
public class class_name {
public static SequenceBatchCSVRecord fromDataSet(MultiDataSet dataSet) {
SequenceBatchCSVRecord batchCSVRecord = new SequenceBatchCSVRecord();
for (int i = 0; i < dataSet.numFeatureArrays(); i++) {
batchCSVRecord.add(Arrays.asList(BatchCSVRecord.fromDataSet(new Dat... | public class class_name {
public static SequenceBatchCSVRecord fromDataSet(MultiDataSet dataSet) {
SequenceBatchCSVRecord batchCSVRecord = new SequenceBatchCSVRecord();
for (int i = 0; i < dataSet.numFeatureArrays(); i++) {
batchCSVRecord.add(Arrays.asList(BatchCSVRecord.fromDataSet(new Dat... |
public class class_name {
public AwsSecurityFinding withMalware(Malware... malware) {
if (this.malware == null) {
setMalware(new java.util.ArrayList<Malware>(malware.length));
}
for (Malware ele : malware) {
this.malware.add(ele);
}
return this;
} } | public class class_name {
public AwsSecurityFinding withMalware(Malware... malware) {
if (this.malware == null) {
setMalware(new java.util.ArrayList<Malware>(malware.length)); // depends on control dependency: [if], data = [none]
}
for (Malware ele : malware) {
this.malw... |
public class class_name {
@Override
public void preProcess(@NonNull MultiDataSet toPreProcess) {
int numFeatures = toPreProcess.numFeatureArrays();
int numLabels = toPreProcess.numLabelsArrays();
for (int i = 0; i < numFeatures; i++) {
strategy.preProcess(toPreProcess.getFeatur... | public class class_name {
@Override
public void preProcess(@NonNull MultiDataSet toPreProcess) {
int numFeatures = toPreProcess.numFeatureArrays();
int numLabels = toPreProcess.numLabelsArrays();
for (int i = 0; i < numFeatures; i++) {
strategy.preProcess(toPreProcess.getFeatur... |
public class class_name {
public void marshall(EnvironmentVariable environmentVariable, ProtocolMarshaller protocolMarshaller) {
if (environmentVariable == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(EnvironmentVariable environmentVariable, ProtocolMarshaller protocolMarshaller) {
if (environmentVariable == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
private void BuildInitJavaScript(InteractiveObject interactiveObject) {
String gearVRinitJavaScript = "function " + GEARVR_INIT_JAVASCRIPT_FUNCTION_NAME + "()\n{\n";
//The first two arguments are for the event - could be time or an isOver/isActive boolean -
// and the... | public class class_name {
private void BuildInitJavaScript(InteractiveObject interactiveObject) {
String gearVRinitJavaScript = "function " + GEARVR_INIT_JAVASCRIPT_FUNCTION_NAME + "()\n{\n";
//The first two arguments are for the event - could be time or an isOver/isActive boolean -
// and the... |
public class class_name {
protected List<String> split(final String string){
if (null!=prefix){
//remove prefix before split
return Arrays.asList(string.substring(prefix.length()).split(delimiter));
}else{
return Arrays.asList(string.split(delimiter));
}
... | public class class_name {
protected List<String> split(final String string){
if (null!=prefix){
//remove prefix before split
return Arrays.asList(string.substring(prefix.length()).split(delimiter)); // depends on control dependency: [if], data = [none]
}else{
return ... |
public class class_name {
public synchronized Response getSnapshot(final String idRegex,
final long start, final long end, String... attributes) {
SnapshotRequestMessage req = new SnapshotRequestMessage();
req.setIdRegex(idRegex);
req.setBeginTimestamp(start);
req.setEndTimestamp(end);
if (at... | public class class_name {
public synchronized Response getSnapshot(final String idRegex,
final long start, final long end, String... attributes) {
SnapshotRequestMessage req = new SnapshotRequestMessage();
req.setIdRegex(idRegex);
req.setBeginTimestamp(start);
req.setEndTimestamp(end);
if (at... |
public class class_name {
public UntagResourceRequest withTagKeys(String... tagKeys) {
if (this.tagKeys == null) {
setTagKeys(new com.ibm.cloud.objectstorage.internal.SdkInternalList<String>(tagKeys.length));
}
for (String ele : tagKeys) {
this.tagKeys.add(ele);
... | public class class_name {
public UntagResourceRequest withTagKeys(String... tagKeys) {
if (this.tagKeys == null) {
setTagKeys(new com.ibm.cloud.objectstorage.internal.SdkInternalList<String>(tagKeys.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : ... |
public class class_name {
public static <T> Optional<T> get(Config config, Function<String, T> getter, String path) {
if (!config.hasPath(path)) {
return Optional.empty();
}
return Optional.of(getter.apply(path));
} } | public class class_name {
public static <T> Optional<T> get(Config config, Function<String, T> getter, String path) {
if (!config.hasPath(path)) {
return Optional.empty(); // depends on control dependency: [if], data = [none]
}
return Optional.of(getter.apply(path));
} } |
public class class_name {
public void marshall(LambdaFunctionStartedEventAttributes lambdaFunctionStartedEventAttributes, ProtocolMarshaller protocolMarshaller) {
if (lambdaFunctionStartedEventAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}... | public class class_name {
public void marshall(LambdaFunctionStartedEventAttributes lambdaFunctionStartedEventAttributes, ProtocolMarshaller protocolMarshaller) {
if (lambdaFunctionStartedEventAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}... |
public class class_name {
private String getBasePath(String path1, String path2) {
StringBuffer base = new StringBuffer();
path1 = path1.replace('\\', '/');
path2 = path2.replace('\\', '/');
String[] parts1 = path1.split("/");
String[] parts2 = path2.split("/");
for (... | public class class_name {
private String getBasePath(String path1, String path2) {
StringBuffer base = new StringBuffer();
path1 = path1.replace('\\', '/');
path2 = path2.replace('\\', '/');
String[] parts1 = path1.split("/");
String[] parts2 = path2.split("/");
for (... |
public class class_name {
@Override
public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
WVideo videoComponent = (WVideo) component;
XmlStringBuilder xml = renderContext.getWriter();
Video[] video = videoComponent.getVideo();
if (video == null || video.length == 0) {
... | public class class_name {
@Override
public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
WVideo videoComponent = (WVideo) component;
XmlStringBuilder xml = renderContext.getWriter();
Video[] video = videoComponent.getVideo();
if (video == null || video.length == 0) {
... |
public class class_name {
protected void setDate(Date date, boolean firePropertyChange) {
Date oldDate = this.date;
this.date = date;
if (date == null) {
setText("");
} else {
String formattedDate = dateFormatter.format(date);
try {
setText(formattedDate);
} catch (RuntimeException e) {
e.... | public class class_name {
protected void setDate(Date date, boolean firePropertyChange) {
Date oldDate = this.date;
this.date = date;
if (date == null) {
setText(""); // depends on control dependency: [if], data = [none]
} else {
String formattedDate = dateFormatter.format(date);
try {
setText(fo... |
public class class_name {
public boolean isProcessed(Trace trace, Node node, Direction direction) {
boolean ret = false;
if (trace.getTransaction() != null) {
List<ProcessorWrapper> procs = null;
synchronized (processors) {
procs = processors.get(trace.getTrans... | public class class_name {
public boolean isProcessed(Trace trace, Node node, Direction direction) {
boolean ret = false;
if (trace.getTransaction() != null) {
List<ProcessorWrapper> procs = null;
synchronized (processors) { // depends on control dependency: [if], data = [none]... |
public class class_name {
public static boolean isPureAscii(String stringToCheck) {
if (stringToCheck == null || stringToCheck.length() == 0) {
return true;
}
synchronized (ASCII_ENCODER) {
return ASCII_ENCODER.canEncode(stringToCheck);
}
} } | public class class_name {
public static boolean isPureAscii(String stringToCheck) {
if (stringToCheck == null || stringToCheck.length() == 0) {
return true; // depends on control dependency: [if], data = [none]
}
synchronized (ASCII_ENCODER) {
return ASCII_ENCODER.canEncode(stringToCheck);
}
} } |
public class class_name {
static String generateUniqueLabel(String label, Set<String> existingLabels) {
StringBuilder newLabel = new StringBuilder(label);
while (existingLabels.contains(newLabel.toString())) {
newLabel.append(POSTFIX);
}
return newLabel.toString();
} } | public class class_name {
static String generateUniqueLabel(String label, Set<String> existingLabels) {
StringBuilder newLabel = new StringBuilder(label);
while (existingLabels.contains(newLabel.toString())) {
newLabel.append(POSTFIX); // depends on control dependency: [while], data = [none]
}
re... |
public class class_name {
public Integer getNextIDSeq(final String id) {
Validate.notNull(id, "ID cannot be null");
Integer count = this.idCounts.get(id);
if (count == null) {
count = Integer.valueOf(1);
}
return count;
} } | public class class_name {
public Integer getNextIDSeq(final String id) {
Validate.notNull(id, "ID cannot be null");
Integer count = this.idCounts.get(id);
if (count == null) {
count = Integer.valueOf(1); // depends on control dependency: [if], data = [none]
}
return ... |
public class class_name {
private Node buildNode(int begin, int end) {
int d = keys[0].length;
// Allocate the node
Node node = new Node();
// Fill in basic info
node.count = end - begin;
node.index = begin;
// Calculate the bounding box
double[] lower... | public class class_name {
private Node buildNode(int begin, int end) {
int d = keys[0].length;
// Allocate the node
Node node = new Node();
// Fill in basic info
node.count = end - begin;
node.index = begin;
// Calculate the bounding box
double[] lower... |
public class class_name {
public void removeElement(CmsContainerPageElementPanel elementWidget) {
if (elementWidget.getInheritanceInfo().isNew()) {
getHandler().removeElement(elementWidget, ElementRemoveMode.saveAndCheckReferences);
} else {
elementWidget.getInheritanceInf... | public class class_name {
public void removeElement(CmsContainerPageElementPanel elementWidget) {
if (elementWidget.getInheritanceInfo().isNew()) {
getHandler().removeElement(elementWidget, ElementRemoveMode.saveAndCheckReferences);
// depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public void removeByG_C(long groupId, long commerceCountryId) {
for (CommerceWarehouse commerceWarehouse : findByG_C(groupId,
commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceWarehouse);
}
} } | public class class_name {
@Override
public void removeByG_C(long groupId, long commerceCountryId) {
for (CommerceWarehouse commerceWarehouse : findByG_C(groupId,
commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commerceWarehouse); // depends on control dependency: [for], data = [comme... |
public class class_name {
public void set(Vector2f start, Vector2f end) {
super.pointsDirty = true;
if (this.start == null) {
this.start = new Vector2f();
}
this.start.set(start);
if (this.end == null) {
this.end = new Vector2f();
}
this.end.set(end);
vec = new Vector2f(end);
vec... | public class class_name {
public void set(Vector2f start, Vector2f end) {
super.pointsDirty = true;
if (this.start == null) {
this.start = new Vector2f();
// depends on control dependency: [if], data = [none]
}
this.start.set(start);
if (this.end == null) {
this.end = new Vector2f();
// depen... |
public class class_name {
public void setDomainIspPlacements(java.util.Collection<DomainIspPlacement> domainIspPlacements) {
if (domainIspPlacements == null) {
this.domainIspPlacements = null;
return;
}
this.domainIspPlacements = new java.util.ArrayList<DomainIspPlaceme... | public class class_name {
public void setDomainIspPlacements(java.util.Collection<DomainIspPlacement> domainIspPlacements) {
if (domainIspPlacements == null) {
this.domainIspPlacements = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency... |
public class class_name {
private void processResultHandlers(RHI resultHandlerInput) {
for (ResultHandler<RHI> resultHandler : resultHandlers) {
resultHandler.handleResult(resultHandlerInput);
}
} } | public class class_name {
private void processResultHandlers(RHI resultHandlerInput) {
for (ResultHandler<RHI> resultHandler : resultHandlers) {
resultHandler.handleResult(resultHandlerInput); // depends on control dependency: [for], data = [resultHandler]
}
} } |
public class class_name {
public int span(CharSequence s, int start, SpanCondition spanCondition) {
if (spanCondition == SpanCondition.NOT_CONTAINED) {
return spanNot(s, start, null);
}
int spanLimit = spanSet.span(s, start, SpanCondition.CONTAINED);
if (spanLimit == s.lengt... | public class class_name {
public int span(CharSequence s, int start, SpanCondition spanCondition) {
if (spanCondition == SpanCondition.NOT_CONTAINED) {
return spanNot(s, start, null); // depends on control dependency: [if], data = [none]
}
int spanLimit = spanSet.span(s, start, Span... |
public class class_name {
public void await() { // public as parts
if (server == null) {
throw new IllegalStateException("server has not been started.");
}
try {
server.join();
} catch (Exception e) {
throw new IllegalStateException("server join faile... | public class class_name {
public void await() { // public as parts
if (server == null) {
throw new IllegalStateException("server has not been started.");
}
try {
server.join(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
... |
public class class_name {
protected I_CmsSearchConfigurationFacetField parseFieldFacet(final String pathPrefix) {
try {
final String field = parseMandatoryStringValue(pathPrefix + XML_ELEMENT_FACET_FIELD);
final String name = parseOptionalStringValue(pathPrefix + XML_ELEMENT_FACET_NAME... | public class class_name {
protected I_CmsSearchConfigurationFacetField parseFieldFacet(final String pathPrefix) {
try {
final String field = parseMandatoryStringValue(pathPrefix + XML_ELEMENT_FACET_FIELD);
final String name = parseOptionalStringValue(pathPrefix + XML_ELEMENT_FACET_NAME... |
public class class_name {
public static <T> QueryParameterValue array(T[] array, StandardSQLTypeName type) {
List<QueryParameterValue> listValues = new ArrayList<>();
for (T obj : array) {
listValues.add(QueryParameterValue.of(obj, type));
}
return QueryParameterValue.newBuilder()
.setArr... | public class class_name {
public static <T> QueryParameterValue array(T[] array, StandardSQLTypeName type) {
List<QueryParameterValue> listValues = new ArrayList<>();
for (T obj : array) {
listValues.add(QueryParameterValue.of(obj, type)); // depends on control dependency: [for], data = [obj]
}
r... |
public class class_name {
private List<Date> getListOfMarkerDateForNonComputedStats(final Application application,
final Account account,
final Date startDate) {
final List<Date> retVal = new LinkedList<>();
final Date endDate = getLastDayOfMonth(getNowMinusAMonth());
for(Date markerDate :... | public class class_name {
private List<Date> getListOfMarkerDateForNonComputedStats(final Application application,
final Account account,
final Date startDate) {
final List<Date> retVal = new LinkedList<>();
final Date endDate = getLastDayOfMonth(getNowMinusAMonth());
for(Date markerDate :... |
public class class_name {
void mergeBeanInfo(BeanInfo beanInfo, boolean force)
throws IntrospectionException {
if (force || !explicitProperties) {
PropertyDescriptor[] superDescs = beanInfo.getPropertyDescriptors();
if (superDescs != null) {
if (getPropertyDe... | public class class_name {
void mergeBeanInfo(BeanInfo beanInfo, boolean force)
throws IntrospectionException {
if (force || !explicitProperties) {
PropertyDescriptor[] superDescs = beanInfo.getPropertyDescriptors();
if (superDescs != null) {
if (getPropertyDe... |
public class class_name {
public String getPrettyName(Symbol sym) {
if (!sym.getSimpleName().isEmpty()) {
return sym.getSimpleName().toString();
}
if (sym.getKind() == ElementKind.ENUM) {
// anonymous classes for enum constants are identified by the enclosing constant
// declaration
... | public class class_name {
public String getPrettyName(Symbol sym) {
if (!sym.getSimpleName().isEmpty()) {
return sym.getSimpleName().toString(); // depends on control dependency: [if], data = [none]
}
if (sym.getKind() == ElementKind.ENUM) {
// anonymous classes for enum constants are identifie... |
public class class_name {
synchronized void resumeStatsCollection(Timestamp now) {
for (Entry<String, Collection<MutableViewData>> entry : mutableMap.asMap().entrySet()) {
for (MutableViewData mutableViewData : entry.getValue()) {
mutableViewData.resumeStatsCollection(now);
}
}
} } | public class class_name {
synchronized void resumeStatsCollection(Timestamp now) {
for (Entry<String, Collection<MutableViewData>> entry : mutableMap.asMap().entrySet()) {
for (MutableViewData mutableViewData : entry.getValue()) {
mutableViewData.resumeStatsCollection(now); // depends on control depe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.