code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public QueryRule createShouldQueryRule(String multiOntologyTermIri) {
QueryRule shouldQueryRule = new QueryRule(new ArrayList<>());
shouldQueryRule.setOperator(Operator.SHOULD);
for (String ontologyTermIri : multiOntologyTermIri.split(COMMA_CHAR)) {
OntologyTerm ontologyTerm... | public class class_name {
public QueryRule createShouldQueryRule(String multiOntologyTermIri) {
QueryRule shouldQueryRule = new QueryRule(new ArrayList<>());
shouldQueryRule.setOperator(Operator.SHOULD);
for (String ontologyTermIri : multiOntologyTermIri.split(COMMA_CHAR)) {
OntologyTerm ontologyTerm... |
public class class_name {
public void marshall(CreateEvaluationRequest createEvaluationRequest, ProtocolMarshaller protocolMarshaller) {
if (createEvaluationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(CreateEvaluationRequest createEvaluationRequest, ProtocolMarshaller protocolMarshaller) {
if (createEvaluationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
private void updateEntityAndLang(final File inputFile) {
//directory case
if (inputFile.isDirectory()) {
final File[] files = inputFile.listFiles();
if (files != null) {
for (final File file : files) {
updateEntityAnd... | public class class_name {
private void updateEntityAndLang(final File inputFile) {
//directory case
if (inputFile.isDirectory()) {
final File[] files = inputFile.listFiles();
if (files != null) {
for (final File file : files) {
updateEntityAnd... |
public class class_name {
public ProjectDetails withResources(Resource... resources) {
if (this.resources == null) {
setResources(new java.util.ArrayList<Resource>(resources.length));
}
for (Resource ele : resources) {
this.resources.add(ele);
}
return th... | public class class_name {
public ProjectDetails withResources(Resource... resources) {
if (this.resources == null) {
setResources(new java.util.ArrayList<Resource>(resources.length)); // depends on control dependency: [if], data = [none]
}
for (Resource ele : resources) {
... |
public class class_name {
@XmlTransient
public String getElasticSearchFieldType()
{
Type fieldType = this.getTypeAsEnum();
if(fieldType == null)
{
return null;
}
//Get the fieldType by Fluid field fieldType...
switch (fieldType)
{
case ParagraphText:
return ElasticSearchType.TEXT;
case T... | public class class_name {
@XmlTransient
public String getElasticSearchFieldType()
{
Type fieldType = this.getTypeAsEnum();
if(fieldType == null)
{
return null; // depends on control dependency: [if], data = [none]
}
//Get the fieldType by Fluid field fieldType...
switch (fieldType)
{
case Parag... |
public class class_name {
private List<Type> closureMin(List<Type> cl) {
ListBuffer<Type> classes = new ListBuffer<>();
ListBuffer<Type> interfaces = new ListBuffer<>();
Set<Type> toSkip = new HashSet<>();
while (!cl.isEmpty()) {
Type current = cl.head;
boolean k... | public class class_name {
private List<Type> closureMin(List<Type> cl) {
ListBuffer<Type> classes = new ListBuffer<>();
ListBuffer<Type> interfaces = new ListBuffer<>();
Set<Type> toSkip = new HashSet<>();
while (!cl.isEmpty()) {
Type current = cl.head;
boolean k... |
public class class_name {
public static double computeAbsoluteDistance(Map<String, Double> h1, Map<String, Double> h2) {
double distance = 0;
final Set<String> keySet = new HashSet();
keySet.addAll(h1.keySet());
keySet.addAll(h2.keySet());
for (String key : keySet) {
... | public class class_name {
public static double computeAbsoluteDistance(Map<String, Double> h1, Map<String, Double> h2) {
double distance = 0;
final Set<String> keySet = new HashSet();
keySet.addAll(h1.keySet());
keySet.addAll(h2.keySet());
for (String key : keySet) {
... |
public class class_name {
public boolean popTable() {
if (currentLevel > 0) {
//Remove all the variable having a level equals to currentLevel
for (Iterator<Map.Entry<String, Integer>> ite = level.entrySet().iterator(); ite.hasNext(); ) {
Map.Entry<String, Integer> e = it... | public class class_name {
public boolean popTable() {
if (currentLevel > 0) {
//Remove all the variable having a level equals to currentLevel
for (Iterator<Map.Entry<String, Integer>> ite = level.entrySet().iterator(); ite.hasNext(); ) {
Map.Entry<String, Integer> e = it... |
public class class_name {
public static String subst(String string, Map dictionary)
{
LOGGER.entering(CLASS_NAME, "subst", new Object[]{string, dictionary});
Pattern pattern = Pattern.compile(VARIABLE_PATTERN);
Matcher matcher = pattern.matcher(string);
while (matcher.find())
... | public class class_name {
public static String subst(String string, Map dictionary)
{
LOGGER.entering(CLASS_NAME, "subst", new Object[]{string, dictionary});
Pattern pattern = Pattern.compile(VARIABLE_PATTERN);
Matcher matcher = pattern.matcher(string);
while (matcher.find())
... |
public class class_name {
private boolean anyStringContainsNewLine(final String[] data) {
boolean returnVal = false;
for (int i = 0; i < data.length; i++) {
if (Util.containsNewlines(data[i])) {
returnVal = true;
}
}
return returnVal;
} } | public class class_name {
private boolean anyStringContainsNewLine(final String[] data) {
boolean returnVal = false;
for (int i = 0; i < data.length; i++) {
if (Util.containsNewlines(data[i])) {
returnVal = true; // depends on control dependency: [if], data = [none]
}
}
return returnVal;
} } |
public class class_name {
public void startBundle(Bundle bundle)
{
if (bundle != null)
if ((bundle.getState() != Bundle.ACTIVE) && (bundle.getState() != Bundle.STARTING))
{
try {
bundle.start();
} catch (BundleException e) {
e.prin... | public class class_name {
public void startBundle(Bundle bundle)
{
if (bundle != null)
if ((bundle.getState() != Bundle.ACTIVE) && (bundle.getState() != Bundle.STARTING))
{
try {
bundle.start(); // depends on control dependency: [try], data = [none]
... |
public class class_name {
static int readInt(final DataInput in) throws IOException {
int b = in.readByte() & 0xFF;
int n = b & 0x7F;
if (b > 0x7F) {
b = in.readByte() & 0xFF;
n ^= (b & 0x7F) << 7;
if (b > 0x7F) {
b = in.readByte() & 0xFF;
n ^= (b & 0x7F) << 14;
if (b > 0x7F) {
b = in.... | public class class_name {
static int readInt(final DataInput in) throws IOException {
int b = in.readByte() & 0xFF;
int n = b & 0x7F;
if (b > 0x7F) {
b = in.readByte() & 0xFF;
n ^= (b & 0x7F) << 7;
if (b > 0x7F) {
b = in.readByte() & 0xFF; // depends on control dependency: [if], data = [none]
n... |
public class class_name {
public void readBondBlock(IAtomContainer readData) throws CDKException {
logger.info("Reading BOND block");
boolean foundEND = false;
while (isReady() && !foundEND) {
String command = readCommand(readLine());
if ("END BOND".equals(command)) {
... | public class class_name {
public void readBondBlock(IAtomContainer readData) throws CDKException {
logger.info("Reading BOND block");
boolean foundEND = false;
while (isReady() && !foundEND) {
String command = readCommand(readLine());
if ("END BOND".equals(command)) {
... |
public class class_name {
public Optional<Project> getOptionalProject(String namespace, String project) {
try {
return (Optional.ofNullable(getProject(namespace, project)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
}
}... | public class class_name {
public Optional<Project> getOptionalProject(String namespace, String project) {
try {
return (Optional.ofNullable(getProject(namespace, project))); // depends on control dependency: [try], data = [none]
} catch (GitLabApiException glae) {
return (GitLab... |
public class class_name {
protected CmsAliasImportResult processAliasLine(CmsObject cms, String siteRoot, String line, String separator) {
Locale locale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms);
line = line.trim();
// ignore empty lines or comments starting with #
i... | public class class_name {
protected CmsAliasImportResult processAliasLine(CmsObject cms, String siteRoot, String line, String separator) {
Locale locale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms);
line = line.trim();
// ignore empty lines or comments starting with #
i... |
public class class_name {
public static Object callMethod(Object o, String method, Object[] params)
{
// Get the objects class.
Class cls = o.getClass();
// Get the classes of the parameters.
Class[] paramClasses = new Class[params.length];
for (int i = 0; i < params.lengt... | public class class_name {
public static Object callMethod(Object o, String method, Object[] params)
{
// Get the objects class.
Class cls = o.getClass();
// Get the classes of the parameters.
Class[] paramClasses = new Class[params.length];
for (int i = 0; i < params.lengt... |
public class class_name {
public Segment createSegment(SegmentDescriptor descriptor) {
switch (storage.level()) {
case MEMORY:
return createMemorySegment(descriptor);
case MAPPED:
if (descriptor.version() == 1) {
return createMappedSegment(descriptor);
} else {
... | public class class_name {
public Segment createSegment(SegmentDescriptor descriptor) {
switch (storage.level()) {
case MEMORY:
return createMemorySegment(descriptor);
case MAPPED:
if (descriptor.version() == 1) {
return createMappedSegment(descriptor); // depends on control de... |
public class class_name {
@NonNull public CharSequence getQuery() {
if (searchView != null) {
return searchView.getQuery();
} else if (supportView != null) {
return supportView.getQuery();
}
throw new IllegalStateException(ERROR_NO_SEARCHVIEW);
} } | public class class_name {
@NonNull public CharSequence getQuery() {
if (searchView != null) {
return searchView.getQuery(); // depends on control dependency: [if], data = [none]
} else if (supportView != null) {
return supportView.getQuery(); // depends on control dependency: [i... |
public class class_name {
public void marshall(ListGatewaysRequest listGatewaysRequest, ProtocolMarshaller protocolMarshaller) {
if (listGatewaysRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(ListGatewaysRequest listGatewaysRequest, ProtocolMarshaller protocolMarshaller) {
if (listGatewaysRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
public int isCompliantWithRequestContentType(Request request) {
if (acceptedMediaTypes == null || acceptedMediaTypes.isEmpty() || request == null) {
return 2;
} else {
String content = request.contentMimeType();
if (content == null) {
... | public class class_name {
public int isCompliantWithRequestContentType(Request request) {
if (acceptedMediaTypes == null || acceptedMediaTypes.isEmpty() || request == null) {
return 2; // depends on control dependency: [if], data = [none]
} else {
String content = request.conten... |
public class class_name {
static String getMimeEncoding(String encoding)
{
if (null == encoding)
{
try
{
// Get the default system character encoding. This may be
// incorrect if they passed in a writer, but right now there
... | public class class_name {
static String getMimeEncoding(String encoding)
{
if (null == encoding)
{
try
{
// Get the default system character encoding. This may be
// incorrect if they passed in a writer, but right now there
... |
public class class_name {
protected void auditQueryEvent(
boolean systemIsSource, // System Type
IHETransactionEventTypeCodes transaction, RFC3881EventOutcomeCodes eventOutcome, // Event
String auditSourceId, String auditSourceEnterpriseSiteId, // Audit Source
String sourceUserId, String sourceAltUserId, S... | public class class_name {
protected void auditQueryEvent(
boolean systemIsSource, // System Type
IHETransactionEventTypeCodes transaction, RFC3881EventOutcomeCodes eventOutcome, // Event
String auditSourceId, String auditSourceEnterpriseSiteId, // Audit Source
String sourceUserId, String sourceAltUserId, S... |
public class class_name {
@Override
public void stop() {
if (!stopped.compareAndSet(false, true)) return;
sweep();
int retries = 0;
while (count() > 1 && ++retries < 10) {
try { Thread.sleep(10L); } catch (Exception e) {}
}
scheduler.close();
} } | public class class_name {
@Override
public void stop() {
if (!stopped.compareAndSet(false, true)) return;
sweep();
int retries = 0;
while (count() > 1 && ++retries < 10) {
try { Thread.sleep(10L); } catch (Exception e) {} // depends on control dependency: [try], data = [none] // depends on co... |
public class class_name {
@Override
public void visitMaxs(int maxStack, int maxLocals) {
if (localScopes != null) {
for (VariableScope scope : localScopes) {
super.visitLocalVariable(
"xxxxx$" + scope.index, scope.desc, null, scope.start, scope.end, scope.index);
}
}
super... | public class class_name {
@Override
public void visitMaxs(int maxStack, int maxLocals) {
if (localScopes != null) {
for (VariableScope scope : localScopes) {
super.visitLocalVariable(
"xxxxx$" + scope.index, scope.desc, null, scope.start, scope.end, scope.index); // depends on control d... |
public class class_name {
public void marshall(CreateFleetRequest createFleetRequest, ProtocolMarshaller protocolMarshaller) {
if (createFleetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(CreateFleetRequest createFleetRequest, ProtocolMarshaller protocolMarshaller) {
if (createFleetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public void addMemberHeader(TypeElement fieldType, String fieldTypeStr,
String fieldDimensions, String fieldName, Content contentTree) {
Content nameContent = new RawHtml(fieldName);
Content heading = HtmlTree.HEADING(HtmlConstants.MEMBER_HEADING, nameContent);
... | public class class_name {
public void addMemberHeader(TypeElement fieldType, String fieldTypeStr,
String fieldDimensions, String fieldName, Content contentTree) {
Content nameContent = new RawHtml(fieldName);
Content heading = HtmlTree.HEADING(HtmlConstants.MEMBER_HEADING, nameContent);
... |
public class class_name {
protected List<Boolean> getVisibilities(String key) {
List<Boolean> result = new ArrayList<Boolean>();
for (CmsContainerConfiguration config : m_parentConfigurations) {
result.add(config.getVisibility().get(key));
}
return result;
} } | public class class_name {
protected List<Boolean> getVisibilities(String key) {
List<Boolean> result = new ArrayList<Boolean>();
for (CmsContainerConfiguration config : m_parentConfigurations) {
result.add(config.getVisibility().get(key));
// depends on control dependency: [for], data... |
public class class_name {
public static URI newURIQuietly(final String uriString)
{
try
{
final URI uri = newURI(uriString);
return uri;
}
catch (final URISyntaxException e)
{
throw new CompilerRuntimeException(
"Given String " + uriString + " does not match to an uri", e);
}
} } | public class class_name {
public static URI newURIQuietly(final String uriString)
{
try
{
final URI uri = newURI(uriString);
return uri;
// depends on control dependency: [try], data = [none]
}
catch (final URISyntaxException e)
{
throw new CompilerRuntimeException(
"Given String " + ... |
public class class_name {
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session)
throws RemoteException {
AudienceSegmentServiceInterface audienceSegmentService =
adManagerServices.get(session, AudienceSegmentServiceInterface.class);
// Create a statement to... | public class class_name {
public static void runExample(AdManagerServices adManagerServices, AdManagerSession session)
throws RemoteException {
AudienceSegmentServiceInterface audienceSegmentService =
adManagerServices.get(session, AudienceSegmentServiceInterface.class);
// Create a statement to... |
public class class_name {
public void setStateChanges(java.util.Collection<AssessmentRunStateChange> stateChanges) {
if (stateChanges == null) {
this.stateChanges = null;
return;
}
this.stateChanges = new java.util.ArrayList<AssessmentRunStateChange>(stateChanges);
... | public class class_name {
public void setStateChanges(java.util.Collection<AssessmentRunStateChange> stateChanges) {
if (stateChanges == null) {
this.stateChanges = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void setMultipart(String contentType) {
String[] dataBoundary = HttpPostRequestDecoder.getMultipartDataBoundary(contentType);
if (dataBoundary != null) {
multipartDataBoundary = dataBoundary[0];
if (dataBoundary.length > 1 && dataBoundary[1] != ... | public class class_name {
private void setMultipart(String contentType) {
String[] dataBoundary = HttpPostRequestDecoder.getMultipartDataBoundary(contentType);
if (dataBoundary != null) {
multipartDataBoundary = dataBoundary[0]; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private Map<String, Criteria> getCriterias(Map<String, String[]> params) {
Map<String, Criteria> result = new HashMap<String, Criteria>();
for (Map.Entry<String, String[]> param : params.entrySet()) {
for (Criteria criteria : FILTER_CRITERIAS) {
if ... | public class class_name {
private Map<String, Criteria> getCriterias(Map<String, String[]> params) {
Map<String, Criteria> result = new HashMap<String, Criteria>();
for (Map.Entry<String, String[]> param : params.entrySet()) {
for (Criteria criteria : FILTER_CRITERIAS) {
if ... |
public class class_name {
public static String getAdiVarna(String str)
{
if (str.length() == 0) return null;
String adiVarna = String.valueOf(str.charAt(0));
if (str.length() > 1 && str.charAt(1) == '3') // for pluta
{
adiVarna += String.valueOf(str.charAt(1));
... | public class class_name {
public static String getAdiVarna(String str)
{
if (str.length() == 0) return null;
String adiVarna = String.valueOf(str.charAt(0));
if (str.length() > 1 && str.charAt(1) == '3') // for pluta
{
adiVarna += String.valueOf(str.charAt(1)); // depen... |
public class class_name {
private void refreshValue() {
try {
refreshableValueHolder
.compareAndSet(refreshableValueHolder.get(), refreshCallable.call());
} catch (AmazonServiceException ase) {
// Preserve the original ASE
throw ase;
} cat... | public class class_name {
private void refreshValue() {
try {
refreshableValueHolder
.compareAndSet(refreshableValueHolder.get(), refreshCallable.call()); // depends on control dependency: [try], data = [none]
} catch (AmazonServiceException ase) {
// Preserv... |
public class class_name {
public synchronized static <D extends Dao<T, ?>, T> D lookupDao(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig) {
if (connectionSource == null) {
throw new IllegalArgumentException("connectionSource argument cannot be null");
}
TableConfigConnectionSource ke... | public class class_name {
public synchronized static <D extends Dao<T, ?>, T> D lookupDao(ConnectionSource connectionSource,
DatabaseTableConfig<T> tableConfig) {
if (connectionSource == null) {
throw new IllegalArgumentException("connectionSource argument cannot be null");
}
TableConfigConnectionSource ke... |
public class class_name {
public static IDifference difference(IChemObject first, IChemObject second) {
if (!(first instanceof IAtom && second instanceof IAtom)) {
return null;
}
IAtom firstElem = (IAtom) first;
IAtom secondElem = (IAtom) second;
ChemObjectDifference... | public class class_name {
public static IDifference difference(IChemObject first, IChemObject second) {
if (!(first instanceof IAtom && second instanceof IAtom)) {
return null; // depends on control dependency: [if], data = [none]
}
IAtom firstElem = (IAtom) first;
IAtom sec... |
public class class_name {
void prune(int depth) {
if (isImmutable)
throw new IllegalStateException("PolicyNode is immutable");
// if we have no children, we can't prune below us...
if (mChildren.size() == 0)
return;
Iterator<PolicyNodeImpl> it = mChildren.itera... | public class class_name {
void prune(int depth) {
if (isImmutable)
throw new IllegalStateException("PolicyNode is immutable");
// if we have no children, we can't prune below us...
if (mChildren.size() == 0)
return;
Iterator<PolicyNodeImpl> it = mChildren.itera... |
public class class_name {
public Collection<AgentProjectInfo> createProjects() {
List<DependencyInfo> packages = new LinkedList<>();
Collection<AgentProjectInfo> projectInfos = new LinkedList<>();
InputStream inputStream = null;
byte[] bytes = null;
Process process = null;
... | public class class_name {
public Collection<AgentProjectInfo> createProjects() {
List<DependencyInfo> packages = new LinkedList<>();
Collection<AgentProjectInfo> projectInfos = new LinkedList<>();
InputStream inputStream = null;
byte[] bytes = null;
Process process = null;
... |
public class class_name {
@Override
public void stop() {
if(registrationManager != null){
((RegistrationManagerImpl) registrationManager).stop();
}
if(lookupManager != null){
((LookupManagerImpl) lookupManager).stop();
}
} } | public class class_name {
@Override
public void stop() {
if(registrationManager != null){
((RegistrationManagerImpl) registrationManager).stop(); // depends on control dependency: [if], data = [none]
}
if(lookupManager != null){
((LookupManagerImpl) lookupManager).s... |
public class class_name {
private static String generatePrivate(String suffix, boolean includeMethodName) {
StackTraceElement stackElement = Thread.currentThread().getStackTrace()[CLIENT_CODE_STACK_INDEX];
StringBuilder nameBuilder = new StringBuilder(stackElement.getClassName());
if (includeMethodName) {
nam... | public class class_name {
private static String generatePrivate(String suffix, boolean includeMethodName) {
StackTraceElement stackElement = Thread.currentThread().getStackTrace()[CLIENT_CODE_STACK_INDEX];
StringBuilder nameBuilder = new StringBuilder(stackElement.getClassName());
if (includeMethodName) {
nam... |
public class class_name {
public void addListener(StageListener listener) {
if (logger.isDebugEnabled()) {
logger.debug("## pipeline[{}] add listener [{}]", getPipelineId(),
ClassUtils.getShortClassName(listener.getClass()));
}
this.listeners.add(listener);... | public class class_name {
public void addListener(StageListener listener) {
if (logger.isDebugEnabled()) {
logger.debug("## pipeline[{}] add listener [{}]", getPipelineId(),
ClassUtils.getShortClassName(listener.getClass())); // depends on control dependency: [if], data = [... |
public class class_name {
public java.util.List<String> getAttributeValues() {
if (attributeValues == null) {
attributeValues = new com.amazonaws.internal.SdkInternalList<String>();
}
return attributeValues;
} } | public class class_name {
public java.util.List<String> getAttributeValues() {
if (attributeValues == null) {
attributeValues = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return attributeValues;
} } |
public class class_name {
@Override
public EEnum getIfcWindowPanelPositionEnum() {
if (ifcWindowPanelPositionEnumEEnum == null) {
ifcWindowPanelPositionEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1103);
}
return ifcWindowPanelPositionEnumE... | public class class_name {
@Override
public EEnum getIfcWindowPanelPositionEnum() {
if (ifcWindowPanelPositionEnumEEnum == null) {
ifcWindowPanelPositionEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1103);
// depends on control dependency: [if], d... |
public class class_name {
public Class[] getClasses(final List<Class> classes, final String pckgname)
throws ClassNotFoundException
{
Enumeration resources;
ClassLoader cld;
String path;
try
{
// convert the package name to a path
path =... | public class class_name {
public Class[] getClasses(final List<Class> classes, final String pckgname)
throws ClassNotFoundException
{
Enumeration resources;
ClassLoader cld;
String path;
try
{
// convert the package name to a path
path =... |
public class class_name {
public static BufferedReader getReader(Reader reader) {
if (null == reader) {
return null;
}
return (reader instanceof BufferedReader) ? (BufferedReader) reader : new BufferedReader(reader);
} } | public class class_name {
public static BufferedReader getReader(Reader reader) {
if (null == reader) {
return null;
// depends on control dependency: [if], data = [none]
}
return (reader instanceof BufferedReader) ? (BufferedReader) reader : new BufferedReader(reader);
} } |
public class class_name {
public static CipherRegistry registerCiphers(InputStream source) {
try {
if (source == null) {
throw new IllegalArgumentException("Cipher source not found.");
}
List<String> lines = IOUtils.readLines(source);
... | public class class_name {
public static CipherRegistry registerCiphers(InputStream source) {
try {
if (source == null) {
throw new IllegalArgumentException("Cipher source not found.");
}
List<String> lines = IOUtils.readLines(source);
... |
public class class_name {
static Injector build(final GuiceRegistry registry,
ClassScannerFactory scannerFactory,
final List<PropertyFile> configs,
final List<GuiceRole> roles,
final GuiceSetup staticSetup,
... | public class class_name {
static Injector build(final GuiceRegistry registry,
ClassScannerFactory scannerFactory,
final List<PropertyFile> configs,
final List<GuiceRole> roles,
final GuiceSetup staticSetup,
... |
public class class_name {
protected List<Field> getWholeFieldList(Class<?> clazz) {
final List<Field> fieldList = new ArrayList<Field>();
for (Class<?> target = clazz; target != null && target != Object.class; target = target.getSuperclass()) {
final Field[] fields = target.getDeclaredField... | public class class_name {
protected List<Field> getWholeFieldList(Class<?> clazz) {
final List<Field> fieldList = new ArrayList<Field>();
for (Class<?> target = clazz; target != null && target != Object.class; target = target.getSuperclass()) {
final Field[] fields = target.getDeclaredField... |
public class class_name {
@SuppressWarnings("unchecked")
public Query select(String selection) {
checkNotEmpty(selection, "Selection must not be empty.");
if (countDots(selection) >= 2) {
throw new IllegalArgumentException("Cannot request children of fields. "
+ "('fields.author'(✔) vs. 'fie... | public class class_name {
@SuppressWarnings("unchecked")
public Query select(String selection) {
checkNotEmpty(selection, "Selection must not be empty.");
if (countDots(selection) >= 2) {
throw new IllegalArgumentException("Cannot request children of fields. "
+ "('fields.author'(✔) vs. 'fie... |
public class class_name {
public DescribeOrderableClusterOptionsResult withOrderableClusterOptions(OrderableClusterOption... orderableClusterOptions) {
if (this.orderableClusterOptions == null) {
setOrderableClusterOptions(new com.amazonaws.internal.SdkInternalList<OrderableClusterOption>(orderable... | public class class_name {
public DescribeOrderableClusterOptionsResult withOrderableClusterOptions(OrderableClusterOption... orderableClusterOptions) {
if (this.orderableClusterOptions == null) {
setOrderableClusterOptions(new com.amazonaws.internal.SdkInternalList<OrderableClusterOption>(orderable... |
public class class_name {
@SuppressWarnings("rawtypes")
public MonetaryAmountFactory getMonetaryAmountFactory() {
MonetaryAmountFactory factory = get(MonetaryAmountFactory.class);
if (factory == null) {
return Monetary.getDefaultAmountFactory();
}
return factory;
} } | public class class_name {
@SuppressWarnings("rawtypes")
public MonetaryAmountFactory getMonetaryAmountFactory() {
MonetaryAmountFactory factory = get(MonetaryAmountFactory.class);
if (factory == null) {
return Monetary.getDefaultAmountFactory(); // depends on control dependency: [if], data... |
public class class_name {
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
{
this.setControlValue(value);
if (isSelected && !hasFocus) {
this.setForeground(table.getSelectionForeground());
t... | public class class_name {
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
{
this.setControlValue(value);
if (isSelected && !hasFocus) {
this.setForeground(table.getSelectionForeground()); // depends on... |
public class class_name {
private Object readArray(JsonObject object) throws IOException
{
final List<Object> array = new ArrayList();
while (true)
{
final Object o = readValue(object);
if (o != EMPTY_ARRAY)
{
array.add(o);
}
... | public class class_name {
private Object readArray(JsonObject object) throws IOException
{
final List<Object> array = new ArrayList();
while (true)
{
final Object o = readValue(object);
if (o != EMPTY_ARRAY)
{
array.add(o); // depends on ... |
public class class_name {
private void appendPropertyChanges(DiffBuilder diff, NodePair pair, final Optional<CommitMetadata> commitMetadata) {
List<JaversProperty> nodeProperties = pair.getProperties();
for (JaversProperty property : nodeProperties) {
//optimization, skip all appenders if ... | public class class_name {
private void appendPropertyChanges(DiffBuilder diff, NodePair pair, final Optional<CommitMetadata> commitMetadata) {
List<JaversProperty> nodeProperties = pair.getProperties();
for (JaversProperty property : nodeProperties) {
//optimization, skip all appenders if ... |
public class class_name {
protected Object retriveValue(Class<?> type, RowData row, Column col) {
if (StringUtils.isNotEmpty(col.getPattern())) {
if (ClassUtils.isAssignable(type, Map.class)) {
return row.getCellValuesAsMap(col.getPattern(), 1, col.getReplace());
} e... | public class class_name {
protected Object retriveValue(Class<?> type, RowData row, Column col) {
if (StringUtils.isNotEmpty(col.getPattern())) {
if (ClassUtils.isAssignable(type, Map.class)) {
return row.getCellValuesAsMap(col.getPattern(), 1, col.getReplace());
// depends on c... |
public class class_name {
public static void equalizeSizes(JComponent[] components) {
Dimension targetSize = new Dimension(0, 0);
for (int i = 0; i < components.length; i++) {
JComponent comp = components[i];
Dimension compSize = comp.getPreferredSize();
double width... | public class class_name {
public static void equalizeSizes(JComponent[] components) {
Dimension targetSize = new Dimension(0, 0);
for (int i = 0; i < components.length; i++) {
JComponent comp = components[i];
Dimension compSize = comp.getPreferredSize();
double width... |
public class class_name {
public void setData(byte[] data) {
if (immutable) {
throw new IllegalStateException(ERR_MSG_IMMUTABLE);
}
if (data == null) {
this.data = null;
} else {
setData(data, 0, data.length);
}
} } | public class class_name {
public void setData(byte[] data) {
if (immutable) {
throw new IllegalStateException(ERR_MSG_IMMUTABLE);
}
if (data == null) {
this.data = null; // depends on control dependency: [if], data = [none]
} else {
setData(data, 0, d... |
public class class_name {
private void adaptMessageTextSize() {
if (getRootView() != null) {
View messageView = getRootView().findViewById(android.R.id.message);
if (messageView instanceof TextView) {
TextView messageTextView = (TextView) messageView;
i... | public class class_name {
private void adaptMessageTextSize() {
if (getRootView() != null) {
View messageView = getRootView().findViewById(android.R.id.message);
if (messageView instanceof TextView) {
TextView messageTextView = (TextView) messageView;
i... |
public class class_name {
private void applySettings() {
linkContainer.reset();
WLink exampleLink = new WLink();
exampleLink.setText(tfLinkLabel.getText());
final String url = tfUrlField.getValue();
if ("".equals(url) || !isValidUrl(url)) {
tfUrlField.setText(URL);
exampleLink.setUrl(URL);
} else {
... | public class class_name {
private void applySettings() {
linkContainer.reset();
WLink exampleLink = new WLink();
exampleLink.setText(tfLinkLabel.getText());
final String url = tfUrlField.getValue();
if ("".equals(url) || !isValidUrl(url)) {
tfUrlField.setText(URL); // depends on control dependency: [if],... |
public class class_name {
public static DualInputSemanticProperties readDualConstantAnnotations(UserCodeWrapper<?> udf) {
ImplicitlyForwardingTwoInputSemanticProperties semanticProperties = new ImplicitlyForwardingTwoInputSemanticProperties();
// get readSet annotation from stub
ConstantFieldsFirst constantSet1... | public class class_name {
public static DualInputSemanticProperties readDualConstantAnnotations(UserCodeWrapper<?> udf) {
ImplicitlyForwardingTwoInputSemanticProperties semanticProperties = new ImplicitlyForwardingTwoInputSemanticProperties();
// get readSet annotation from stub
ConstantFieldsFirst constantSet1... |
public class class_name {
static boolean shouldSkipOp(long currentTransactionId, FSEditLogOp op) {
if (currentTransactionId == -1
|| op.getTransactionId() > currentTransactionId) {
return false;
}
return true;
} } | public class class_name {
static boolean shouldSkipOp(long currentTransactionId, FSEditLogOp op) {
if (currentTransactionId == -1
|| op.getTransactionId() > currentTransactionId) {
return false; // depends on control dependency: [if], data = [none]
}
return true;
} } |
public class class_name {
@Override
public Constructor<T> getConstructor() {
if (this.constructor == null) {
try {
this.constructor = this.managedClass.getConstructor((Class<?>[]) null);
} catch (NoSuchMethodException e) {
throw new IllegalStateExcept... | public class class_name {
@Override
public Constructor<T> getConstructor() {
if (this.constructor == null) {
try {
this.constructor = this.managedClass.getConstructor((Class<?>[]) null); // depends on control dependency: [try], data = [none]
} catch (NoSuchMethodExce... |
public class class_name {
public static String extractBeanArchiveId(String beanArchiveRef, String base, String separator) {
beanArchiveRef = beanArchiveRef.replace('\\', '/');
StringBuilder id = new StringBuilder();
id.append(base);
id.append(BeanArchives.BEAN_ARCHIVE_ID_BASE_DELIMITER)... | public class class_name {
public static String extractBeanArchiveId(String beanArchiveRef, String base, String separator) {
beanArchiveRef = beanArchiveRef.replace('\\', '/');
StringBuilder id = new StringBuilder();
id.append(base);
id.append(BeanArchives.BEAN_ARCHIVE_ID_BASE_DELIMITER)... |
public class class_name {
public Field createFieldTable(
Field formFieldParam,
Form formDefinitionParam,
boolean sumDecimalsParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTicket(this.serviceTicket);
... | public class class_name {
public Field createFieldTable(
Field formFieldParam,
Form formDefinitionParam,
boolean sumDecimalsParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTicket(this.serviceTicket); // dep... |
public class class_name {
public static Identifier fromCompoundString(String identifier) {
String[] parts = identifier.split("/");
if (parts.length != 2) {
String[] rhs = identifier.split(":");
if (rhs.length != 2) {
return new Identifier(new Repository(identifie... | public class class_name {
public static Identifier fromCompoundString(String identifier) {
String[] parts = identifier.split("/");
if (parts.length != 2) {
String[] rhs = identifier.split(":");
if (rhs.length != 2) {
return new Identifier(new Repository(identifie... |
public class class_name {
public LoginConfigType<WebAppType<T>> getOrCreateLoginConfig()
{
List<Node> nodeList = childNode.get("login-config");
if (nodeList != null && nodeList.size() > 0)
{
return new LoginConfigTypeImpl<WebAppType<T>>(this, "login-config", childNode, nodeList.get(0));
... | public class class_name {
public LoginConfigType<WebAppType<T>> getOrCreateLoginConfig()
{
List<Node> nodeList = childNode.get("login-config");
if (nodeList != null && nodeList.size() > 0)
{
return new LoginConfigTypeImpl<WebAppType<T>>(this, "login-config", childNode, nodeList.get(0)); ... |
public class class_name {
public void removeAllBusStops() {
for (final BusStop busStop : this.validBusStops) {
busStop.setContainer(null);
busStop.setEventFirable(true);
}
for (final BusStop busStop : this.invalidBusStops) {
busStop.setContainer(null);
busStop.setEventFirable(true);
}
this.validB... | public class class_name {
public void removeAllBusStops() {
for (final BusStop busStop : this.validBusStops) {
busStop.setContainer(null); // depends on control dependency: [for], data = [busStop]
busStop.setEventFirable(true); // depends on control dependency: [for], data = [busStop]
}
for (final BusStop ... |
public class class_name {
public void marshall(ListTypesRequest listTypesRequest, ProtocolMarshaller protocolMarshaller) {
if (listTypesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(list... | public class class_name {
public void marshall(ListTypesRequest listTypesRequest, ProtocolMarshaller protocolMarshaller) {
if (listTypesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(list... |
public class class_name {
public String get(String key) {
try {
return bundle.getString(key);
}catch(MissingResourceException e) {
logger.warn("Missing resource.", e);
return key;
}
} } | public class class_name {
public String get(String key) {
try {
return bundle.getString(key); // depends on control dependency: [try], data = [none]
}catch(MissingResourceException e) {
logger.warn("Missing resource.", e);
return key;
} // depends on cont... |
public class class_name {
public synchronized double variance()
{
long n = 0;
double mean = 0;
double s = 0.0;
for (double x : m_times.m_values)
{
n++;
double delta = x - mean;
mean += delta / n;
s += delta * (x - mean);
... | public class class_name {
public synchronized double variance()
{
long n = 0;
double mean = 0;
double s = 0.0;
for (double x : m_times.m_values)
{
n++; // depends on control dependency: [for], data = [none]
double delta = x - mean;
mean +... |
public class class_name {
@SuppressWarnings("WeakerAccess")
public int floorSum(long sum) {
int floor = IntAVLTree.NIL;
for (int node = tree.root(); node != IntAVLTree.NIL; ) {
final int left = tree.left(node);
final long leftCount = aggregatedCounts[left];
if (l... | public class class_name {
@SuppressWarnings("WeakerAccess")
public int floorSum(long sum) {
int floor = IntAVLTree.NIL;
for (int node = tree.root(); node != IntAVLTree.NIL; ) {
final int left = tree.left(node);
final long leftCount = aggregatedCounts[left];
if (l... |
public class class_name {
@Override
public void onError(SocializeException error) {
if(error instanceof SocializeApiError) {
SocializeApiError aError = (SocializeApiError) error;
if(aError.getResultCode() != 404) {
SocializeLogger.e(error.getMessage(), error);
}
}
else {
SocializeLogger.e... | public class class_name {
@Override
public void onError(SocializeException error) {
if(error instanceof SocializeApiError) {
SocializeApiError aError = (SocializeApiError) error;
if(aError.getResultCode() != 404) {
SocializeLogger.e(error.getMessage(), error); // depends on control dependency: [if]... |
public class class_name {
public static List<String> convertPinyinList2TonePinyinList(List<Pinyin> pinyinList)
{
List<String> tonePinyinList = new ArrayList<String>(pinyinList.size());
for (Pinyin pinyin : pinyinList)
{
tonePinyinList.add(pinyin.getPinyinWithToneMark());
... | public class class_name {
public static List<String> convertPinyinList2TonePinyinList(List<Pinyin> pinyinList)
{
List<String> tonePinyinList = new ArrayList<String>(pinyinList.size());
for (Pinyin pinyin : pinyinList)
{
tonePinyinList.add(pinyin.getPinyinWithToneMark()); // depe... |
public class class_name {
protected void checkProducerMethod(EnhancedAnnotatedMethod<T, ? super X> method) {
if (method.getEnhancedParameters(Observes.class).size() > 0) {
throw BeanLogger.LOG.inconsistentAnnotationsOnMethod(PRODUCER_ANNOTATION, "@Observes", this.method,
Formats... | public class class_name {
protected void checkProducerMethod(EnhancedAnnotatedMethod<T, ? super X> method) {
if (method.getEnhancedParameters(Observes.class).size() > 0) {
throw BeanLogger.LOG.inconsistentAnnotationsOnMethod(PRODUCER_ANNOTATION, "@Observes", this.method,
Formats... |
public class class_name {
public double toDoubleValue(final Object value, final double defaultValue) {
final Double result = toDouble(value);
if (result == null) {
return defaultValue;
}
return result.doubleValue();
} } | public class class_name {
public double toDoubleValue(final Object value, final double defaultValue) {
final Double result = toDouble(value);
if (result == null) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
return result.doubleValue();
} } |
public class class_name {
int numOpenSegments() {
int numOpen = 0;
for (PBDSegment segment : m_segments.values()) {
if (!segment.isClosed()) {
numOpen++;
}
}
return numOpen;
} } | public class class_name {
int numOpenSegments() {
int numOpen = 0;
for (PBDSegment segment : m_segments.values()) {
if (!segment.isClosed()) {
numOpen++; // depends on control dependency: [if], data = [none]
}
}
return numOpen;
} } |
public class class_name {
protected void handleAlert(Alert alert) {
if (LOGGEER.isDebugEnabled()) {
LOGGEER.debug("Accepting alert box with message: {}", alert.getText());
}
alert.accept();
} } | public class class_name {
protected void handleAlert(Alert alert) {
if (LOGGEER.isDebugEnabled()) {
LOGGEER.debug("Accepting alert box with message: {}", alert.getText()); // depends on control dependency: [if], data = [none]
}
alert.accept();
} } |
public class class_name {
private void putObject(String bucketName, String objectName, Long size, Object data,
Map<String, String> headerMap, ServerSideEncryption sse)
throws InvalidBucketNameException, NoSuchAlgorithmException, IOException,
InvalidKeyException, NoResponseException, XmlPullParserE... | public class class_name {
private void putObject(String bucketName, String objectName, Long size, Object data,
Map<String, String> headerMap, ServerSideEncryption sse)
throws InvalidBucketNameException, NoSuchAlgorithmException, IOException,
InvalidKeyException, NoResponseException, XmlPullParserE... |
public class class_name {
public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
AntlrDatatypeRuleToken this_ValidID_0 = null;
AntlrDatatypeRuleToken this_ValidID_2 = null;
... | public class class_name {
public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
AntlrDatatypeRuleToken this_ValidID_0 = null;
AntlrDatatypeRuleToken this_ValidID_2 = null;
... |
public class class_name {
private void updateLetsEncrypt() {
getReport().println(Messages.get().container(Messages.RPT_STARTING_LETSENCRYPT_UPDATE_0));
CmsLetsEncryptConfiguration config = OpenCms.getLetsEncryptConfig();
if ((config == null) || !config.isValidAndEnabled()) {
retur... | public class class_name {
private void updateLetsEncrypt() {
getReport().println(Messages.get().container(Messages.RPT_STARTING_LETSENCRYPT_UPDATE_0));
CmsLetsEncryptConfiguration config = OpenCms.getLetsEncryptConfig();
if ((config == null) || !config.isValidAndEnabled()) {
retur... |
public class class_name {
public void marshall(ListCommandsRequest listCommandsRequest, ProtocolMarshaller protocolMarshaller) {
if (listCommandsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(ListCommandsRequest listCommandsRequest, ProtocolMarshaller protocolMarshaller) {
if (listCommandsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
@Override
public List<TriggerFiredResult> triggersFired(List<OperableTrigger> triggers, Jedis jedis) throws JobPersistenceException, ClassNotFoundException {
List<TriggerFiredResult> results = new ArrayList<>();
for (OperableTrigger trigger : triggers) {
final ... | public class class_name {
@Override
public List<TriggerFiredResult> triggersFired(List<OperableTrigger> triggers, Jedis jedis) throws JobPersistenceException, ClassNotFoundException {
List<TriggerFiredResult> results = new ArrayList<>();
for (OperableTrigger trigger : triggers) {
final ... |
public class class_name {
public void warn(String format, Object arg1, Object arg2) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg1, arg2).getMessage();
((LocationAwareLogger) logger).log(nul... | public class class_name {
public void warn(String format, Object arg1, Object arg2) {
if (!logger.isWarnEnabled())
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg1, arg2).getMessage();
((LocationAwareLogger) logger).log(nul... |
public class class_name {
@FFDCIgnore({IllegalCharsetNameException.class, UnsupportedCharsetException.class})
public static String mapCharset(String enc, String deflt) {
if (enc == null) {
return deflt;
}
//older versions of tomcat don't properly parse ContentType headers with s... | public class class_name {
@FFDCIgnore({IllegalCharsetNameException.class, UnsupportedCharsetException.class})
public static String mapCharset(String enc, String deflt) {
if (enc == null) {
return deflt; // depends on control dependency: [if], data = [none]
}
//older versions of ... |
public class class_name {
private ITag createFileMeta() {
log.debug("createFileMeta");
// create tag for onMetaData event
IoBuffer in = IoBuffer.allocate(1024);
in.setAutoExpand(true);
Output out = new Output(in);
out.writeString("onMetaData");
Map<Object,... | public class class_name {
private ITag createFileMeta() {
log.debug("createFileMeta");
// create tag for onMetaData event
IoBuffer in = IoBuffer.allocate(1024);
in.setAutoExpand(true);
Output out = new Output(in);
out.writeString("onMetaData");
Map<Object,... |
public class class_name {
@Override
public int compareTo(Object object)
{
if(!(object instanceof User))
{
return -1;
}
User user = (User)object;
return getLastName().compareTo(user.getLastName());
} } | public class class_name {
@Override
public int compareTo(Object object)
{
if(!(object instanceof User))
{
return -1;
// depends on control dependency: [if], data = [none]
}
User user = (User)object;
return getLastName().compareTo(user.getLastName());
... |
public class class_name {
private String getAuthTokenFromRequest(HttpServletRequest httpRequest) {
String authToken = httpRequest.getHeader(AUTH_TOKEN_HEADER_KEY);
if (authToken == null) {
// token can also exist as request parameter
authToken = httpRequest.getParameter(AUTH_TO... | public class class_name {
private String getAuthTokenFromRequest(HttpServletRequest httpRequest) {
String authToken = httpRequest.getHeader(AUTH_TOKEN_HEADER_KEY);
if (authToken == null) {
// token can also exist as request parameter
authToken = httpRequest.getParameter(AUTH_TO... |
public class class_name {
private synchronized void setAllMapping() {
//int count_final_sol = 1;
//System.out.println("Output of the final FinalMappings: ");
try {
List<Map<Integer, Integer>> sol = FinalMappings.getInstance().getFinalMapping();
int counter = 0;
... | public class class_name {
private synchronized void setAllMapping() {
//int count_final_sol = 1;
//System.out.println("Output of the final FinalMappings: ");
try {
List<Map<Integer, Integer>> sol = FinalMappings.getInstance().getFinalMapping();
int counter = 0;
... |
public class class_name {
protected static void buildGetMethod(final Class< ? > originalClass,
final String className,
final Class< ? > superClass,
final Method getterMethod,
... | public class class_name {
protected static void buildGetMethod(final Class< ? > originalClass,
final String className,
final Class< ? > superClass,
final Method getterMethod,
... |
public class class_name {
public static IJavaSearchScope createSearchScope(IJavaProject project, Class<?> type, boolean onlySubTypes) {
try {
final IType superType = project.findType(type.getName());
return SearchEngine.createStrictHierarchyScope(
project,
superType,
// only sub types
onlyS... | public class class_name {
public static IJavaSearchScope createSearchScope(IJavaProject project, Class<?> type, boolean onlySubTypes) {
try {
final IType superType = project.findType(type.getName());
return SearchEngine.createStrictHierarchyScope(
project,
superType,
// only sub types
onlyS... |
public class class_name {
@Nonnull
public ELoginResult loginUser (@Nullable final IUser aUser,
@Nullable final String sPlainTextPassword,
@Nullable final Iterable <String> aRequiredRoleIDs)
{
if (aUser == null)
return ELoginResult.USER_NOT... | public class class_name {
@Nonnull
public ELoginResult loginUser (@Nullable final IUser aUser,
@Nullable final String sPlainTextPassword,
@Nullable final Iterable <String> aRequiredRoleIDs)
{
if (aUser == null)
return ELoginResult.USER_NOT... |
public class class_name {
@Override
public void scan(String handlerLocations) {
if (StringHelper.isBlank(handlerLocations)) {
return;
}
// 对配置的xml路径按逗号分割的规则来解析,如果是XML文件则直接将该xml文件存放到xmlPaths的Set集合中,
// 否则就代表是xml资源目录,并解析目录下所有的xml文件,将这些xml文件存放到xmlPaths的Set集合中,
Clas... | public class class_name {
@Override
public void scan(String handlerLocations) {
if (StringHelper.isBlank(handlerLocations)) {
return; // depends on control dependency: [if], data = [none]
}
// 对配置的xml路径按逗号分割的规则来解析,如果是XML文件则直接将该xml文件存放到xmlPaths的Set集合中,
// 否则就代表是xml资源目录,并... |
public class class_name {
public static boolean changePassword(String userName, String newPassword) {
LOGGER.entering(userName, newPassword.replaceAll(".", "*"));
boolean changeSucceeded = false;
File authFile = new File(AUTH_FILE_LOCATION);
try {
authFile.delete();
... | public class class_name {
public static boolean changePassword(String userName, String newPassword) {
LOGGER.entering(userName, newPassword.replaceAll(".", "*"));
boolean changeSucceeded = false;
File authFile = new File(AUTH_FILE_LOCATION);
try {
authFile.delete(); // depen... |
public class class_name {
public static String printCommentTree(List<CommentTreeElement> cs) {
StringBuilder builder = new StringBuilder();
for (CommentTreeElement c : cs) {
builder.append(printCommentTree(c, 0));
}
return builder.toString();
} } | public class class_name {
public static String printCommentTree(List<CommentTreeElement> cs) {
StringBuilder builder = new StringBuilder();
for (CommentTreeElement c : cs) {
builder.append(printCommentTree(c, 0)); // depends on control dependency: [for], data = [c]
}
return ... |
public class class_name {
public FacesConfigProtectedViewsType<FacesConfigType<T>> getOrCreateProtectedViews()
{
List<Node> nodeList = childNode.get("protected-views");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigProtectedViewsTypeImpl<FacesConfigType<T>>(this, "... | public class class_name {
public FacesConfigProtectedViewsType<FacesConfigType<T>> getOrCreateProtectedViews()
{
List<Node> nodeList = childNode.get("protected-views");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigProtectedViewsTypeImpl<FacesConfigType<T>>(this, "... |
public class class_name {
public void updateSlots () {
// Find the anchor point
Location<T> anchor = getAnchorPoint();
positionOffset.set(anchor.getPosition());
float orientationOffset = anchor.getOrientation();
if (motionModerator != null) {
positionOffset.sub(driftOffset.getPosition());
orientationO... | public class class_name {
public void updateSlots () {
// Find the anchor point
Location<T> anchor = getAnchorPoint();
positionOffset.set(anchor.getPosition());
float orientationOffset = anchor.getOrientation();
if (motionModerator != null) {
positionOffset.sub(driftOffset.getPosition()); // depends on c... |
public class class_name {
public Group getGroupByUUID(final UUID UUID) {
List<Group> allGroups = getGroups();
List<Group> groups = ListFilter.filter(allGroups, new Filter<Group>() {
@Override
public boolean matches(Group item) {
if (item.getUuid() != n... | public class class_name {
public Group getGroupByUUID(final UUID UUID) {
List<Group> allGroups = getGroups();
List<Group> groups = ListFilter.filter(allGroups, new Filter<Group>() {
@Override
public boolean matches(Group item) {
if (item.getUuid() != n... |
public class class_name {
public SimpleOrderedMap<Object> create(ComponentList list, Boolean encode) {
SimpleOrderedMap<Object> mtasListResponse = new SimpleOrderedMap<>();
mtasListResponse.add("key", list.key);
if (list.number == 0) {
mtasListResponse.add("total", list.total);
}
if (list.out... | public class class_name {
public SimpleOrderedMap<Object> create(ComponentList list, Boolean encode) {
SimpleOrderedMap<Object> mtasListResponse = new SimpleOrderedMap<>();
mtasListResponse.add("key", list.key);
if (list.number == 0) {
mtasListResponse.add("total", list.total); // depends on control ... |
public class class_name {
public void start(Consumer<UpdateRackHeartbeat> consumer,
Result<Integer> result)
{
if (_selfServer.port() < 0) {
result.ok(0);
return;
}
// boolean isPendingStart = false;
ArrayList<ClusterHeartbeat> clusterList = new ArrayList<>();... | public class class_name {
public void start(Consumer<UpdateRackHeartbeat> consumer,
Result<Integer> result)
{
if (_selfServer.port() < 0) {
result.ok(0); // depends on control dependency: [if], data = [0)]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private List<HistogramScene> computeHistograms(FeatureToWordHistogram_F64 featuresToHistogram ) {
List<String> scenes = getScenes();
List<HistogramScene> memory;// Processed results which will be passed into the k-NN algorithm
memory = new ArrayList<>();
for( int sceneIndex = 0; sc... | public class class_name {
private List<HistogramScene> computeHistograms(FeatureToWordHistogram_F64 featuresToHistogram ) {
List<String> scenes = getScenes();
List<HistogramScene> memory;// Processed results which will be passed into the k-NN algorithm
memory = new ArrayList<>();
for( int sceneIndex = 0; sc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.