code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public Observable<ServiceResponse<List<Image>>> getUntaggedImagesWithServiceResponseAsync(UUID projectId, UUID iterationId, String orderBy, Integer take, Integer skip) {
if (projectId == null) {
throw new IllegalArgumentException("Parameter projectId is required and cannot... | public class class_name {
public Observable<ServiceResponse<List<Image>>> getUntaggedImagesWithServiceResponseAsync(UUID projectId, UUID iterationId, String orderBy, Integer take, Integer skip) {
if (projectId == null) {
throw new IllegalArgumentException("Parameter projectId is required and cannot... |
public class class_name {
public FacesConfigFacetType<FacesConfigRendererType<T>> getOrCreateFacet()
{
List<Node> nodeList = childNode.get("facet");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigFacetTypeImpl<FacesConfigRendererType<T>>(this, "facet", childNode, no... | public class class_name {
public FacesConfigFacetType<FacesConfigRendererType<T>> getOrCreateFacet()
{
List<Node> nodeList = childNode.get("facet");
if (nodeList != null && nodeList.size() > 0)
{
return new FacesConfigFacetTypeImpl<FacesConfigRendererType<T>>(this, "facet", childNode, no... |
public class class_name {
private static AxesWalker createDefaultWalker(Compiler compiler, int opPos,
WalkingIterator lpi, int analysis)
{
AxesWalker ai = null;
int stepType = compiler.getOp(opPos);
/*
System.out.println("0: "+compiler.getOp(opPos));
System.out.println("1: "+compiler.... | public class class_name {
private static AxesWalker createDefaultWalker(Compiler compiler, int opPos,
WalkingIterator lpi, int analysis)
{
AxesWalker ai = null;
int stepType = compiler.getOp(opPos);
/*
System.out.println("0: "+compiler.getOp(opPos));
System.out.println("1: "+compiler.... |
public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
public void remove() {
super.remove();
for (VariableInstanceEntity variableInstance : variableStore.getVariables()) {
invokeVariableLifecycleListenersDelete(variableInstance, this,
Arrays.<VariableInstanceLifecycleListe... | public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
public void remove() {
super.remove();
for (VariableInstanceEntity variableInstance : variableStore.getVariables()) {
invokeVariableLifecycleListenersDelete(variableInstance, this,
Arrays.<VariableInstanceLifecycleListe... |
public class class_name {
public static Link parse(String origin, String link, boolean allowModuleName) {
String originMod = origin;
int index = link.indexOf('#');
if (index == -1) {
if (allowModuleName) {
index = link.lastIndexOf('/');
if (index == -... | public class class_name {
public static Link parse(String origin, String link, boolean allowModuleName) {
String originMod = origin;
int index = link.indexOf('#');
if (index == -1) {
if (allowModuleName) {
index = link.lastIndexOf('/'); // depends on control dependen... |
public class class_name {
public Set<String> getParameterNames(Set<String> allParameterNames)
{
Set<String> names = new HashSet<String>();
for (String propertyName : allParameterNames)
{
int index = propertyNameMatchIndex(propertyName);
if (index > 0)
{
name... | public class class_name {
public Set<String> getParameterNames(Set<String> allParameterNames)
{
Set<String> names = new HashSet<String>();
for (String propertyName : allParameterNames)
{
int index = propertyNameMatchIndex(propertyName);
if (index > 0)
{
name... |
public class class_name {
public void newSaturate(IAtomContainer atomContainer) throws CDKException {
logger.info("Saturating atomContainer by adjusting bond orders...");
boolean allSaturated = allSaturated(atomContainer);
if (!allSaturated) {
IBond[] bonds = new IBond[atomContainer... | public class class_name {
public void newSaturate(IAtomContainer atomContainer) throws CDKException {
logger.info("Saturating atomContainer by adjusting bond orders...");
boolean allSaturated = allSaturated(atomContainer);
if (!allSaturated) {
IBond[] bonds = new IBond[atomContainer... |
public class class_name {
public void marshall(GetAggregateComplianceDetailsByConfigRuleRequest getAggregateComplianceDetailsByConfigRuleRequest,
ProtocolMarshaller protocolMarshaller) {
if (getAggregateComplianceDetailsByConfigRuleRequest == null) {
throw new SdkClientException("Inval... | public class class_name {
public void marshall(GetAggregateComplianceDetailsByConfigRuleRequest getAggregateComplianceDetailsByConfigRuleRequest,
ProtocolMarshaller protocolMarshaller) {
if (getAggregateComplianceDetailsByConfigRuleRequest == null) {
throw new SdkClientException("Inval... |
public class class_name {
private void append2slow( ) {
// PUBDEV-2639 - don't die for many rows, few columns -> can be long chunks
// if( _sparseLen > FileVec.DFLT_CHUNK_SIZE )
// throw new ArrayIndexOutOfBoundsException(_sparseLen);
assert _ds==null;
if(_ms != null && _sparseLen > 0){
if(_id ==... | public class class_name {
private void append2slow( ) {
// PUBDEV-2639 - don't die for many rows, few columns -> can be long chunks
// if( _sparseLen > FileVec.DFLT_CHUNK_SIZE )
// throw new ArrayIndexOutOfBoundsException(_sparseLen);
assert _ds==null;
if(_ms != null && _sparseLen > 0){
if(_id ==... |
public class class_name {
@Override
public void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
throws ServletException, IOException {
CallFuture<NaviRpcResponse> callFuture = new CallFuture<NaviRpcResponse>();
try {
NaviRpcExporter serviceExporter =... | public class class_name {
@Override
public void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
throws ServletException, IOException {
CallFuture<NaviRpcResponse> callFuture = new CallFuture<NaviRpcResponse>();
try {
NaviRpcExporter serviceExporter =... |
public class class_name {
@Override
public PathImpl getParent()
{
if (_pathname.length() <= 1)
return lookup("/");
int length = _pathname.length();
int lastSlash = _pathname.lastIndexOf('/');
if (lastSlash < 1)
return lookup("/");
if (lastSlash == length - 1) {
lastSlash = ... | public class class_name {
@Override
public PathImpl getParent()
{
if (_pathname.length() <= 1)
return lookup("/");
int length = _pathname.length();
int lastSlash = _pathname.lastIndexOf('/');
if (lastSlash < 1)
return lookup("/");
if (lastSlash == length - 1) {
lastSlash = ... |
public class class_name {
private void read_problem(File learningFile) throws IOException {
BufferedReader fp = new BufferedReader(new FileReader(learningFile));
Vector vy = new Vector();
Vector vx = new Vector();
int max_index = 0;
while (true) {
String line = fp.readLine();
if (line == null)
... | public class class_name {
private void read_problem(File learningFile) throws IOException {
BufferedReader fp = new BufferedReader(new FileReader(learningFile));
Vector vy = new Vector();
Vector vx = new Vector();
int max_index = 0;
while (true) {
String line = fp.readLine();
if (line == null)
... |
public class class_name {
public void addDouble(double value) {
data[endOffset] = value;
endOffset++;
// Grow the buffer if needed
if (endOffset == data.length && !reachedMax)
resize();
// Loop over and advance the start point if needed
... | public class class_name {
public void addDouble(double value) {
data[endOffset] = value;
endOffset++;
// Grow the buffer if needed
if (endOffset == data.length && !reachedMax)
resize();
// Loop over and advance the start point if needed
... |
public class class_name {
public static byte[] getVariableByteSigned(int value) {
long absValue = Math.abs((long) value);
if (absValue < 64) { // 2^6
// encode the number in a single byte
if (value < 0) {
return new byte[]{(byte) (absValue | 0x40)};
}... | public class class_name {
public static byte[] getVariableByteSigned(int value) {
long absValue = Math.abs((long) value);
if (absValue < 64) { // 2^6
// encode the number in a single byte
if (value < 0) {
return new byte[]{(byte) (absValue | 0x40)}; // depends on... |
public class class_name {
public ModifyReplicationGroupShardConfigurationRequest withReshardingConfiguration(ReshardingConfiguration... reshardingConfiguration) {
if (this.reshardingConfiguration == null) {
setReshardingConfiguration(new com.amazonaws.internal.SdkInternalList<ReshardingConfiguratio... | public class class_name {
public ModifyReplicationGroupShardConfigurationRequest withReshardingConfiguration(ReshardingConfiguration... reshardingConfiguration) {
if (this.reshardingConfiguration == null) {
setReshardingConfiguration(new com.amazonaws.internal.SdkInternalList<ReshardingConfiguratio... |
public class class_name {
public Double getProcessorMetric(String processorNumber, ID metricToCollect) {
CentralProcessor processor = getProcessor();
if (processor == null) {
return null;
}
int processorIndex;
try {
processorIndex = Integer.parseInt(pro... | public class class_name {
public Double getProcessorMetric(String processorNumber, ID metricToCollect) {
CentralProcessor processor = getProcessor();
if (processor == null) {
return null; // depends on control dependency: [if], data = [none]
}
int processorIndex;
t... |
public class class_name {
List<JCExpression> typeList() {
ListBuffer<JCExpression> ts = new ListBuffer<JCExpression>();
ts.append(parseType());
while (token.kind == COMMA) {
nextToken();
ts.append(parseType());
}
return ts.toList();
} } | public class class_name {
List<JCExpression> typeList() {
ListBuffer<JCExpression> ts = new ListBuffer<JCExpression>();
ts.append(parseType());
while (token.kind == COMMA) {
nextToken(); // depends on control dependency: [while], data = [none]
ts.append(parseType()); // ... |
public class class_name {
protected void updateController(Dictionary<String, ?> dictionary,
ServerControllerFactory controllerFactory) {
// We want to make sure the configuration is known before starting the
// service tracker, else the configuration could be set after the
// service is found which woul... | public class class_name {
protected void updateController(Dictionary<String, ?> dictionary,
ServerControllerFactory controllerFactory) {
// We want to make sure the configuration is known before starting the
// service tracker, else the configuration could be set after the
// service is found which woul... |
public class class_name {
private void updateBlocks() {
for (Block<S, L> block : splitBlocks) {
// Ignore blocks that have no elements in their sub blocks.
int inSubBlocks = block.getElementsInSubBlocks();
if (inSubBlocks == 0) {
continue;
}
... | public class class_name {
private void updateBlocks() {
for (Block<S, L> block : splitBlocks) {
// Ignore blocks that have no elements in their sub blocks.
int inSubBlocks = block.getElementsInSubBlocks();
if (inSubBlocks == 0) {
continue;
}
... |
public class class_name {
public Object last()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "last",this);
Object lastObject = null;
while (hasNext())
{
lastObject = next();
}
if (tc.isEntryEnabled()) Tr.exit(tc, "last",lastObject);
return preprocessResult(lastObject);
} } | public class class_name {
public Object last()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "last",this);
Object lastObject = null;
while (hasNext())
{
lastObject = next(); // depends on control dependency: [while], data = [none]
}
if (tc.isEntryEnabled()) Tr.exit(tc, "last",lastObject);
... |
public class class_name {
public ApiFuture<?> mutate(final Mutation mutation) {
closedReadLock.lock();
try {
if (closed) {
throw new IllegalStateException("Cannot mutate when the BufferedMutator is closed.");
}
return offer(mutation);
} finally {
closedReadLock.unlock();
... | public class class_name {
public ApiFuture<?> mutate(final Mutation mutation) {
closedReadLock.lock();
try {
if (closed) {
throw new IllegalStateException("Cannot mutate when the BufferedMutator is closed.");
}
return offer(mutation); // depends on control dependency: [try], data = [n... |
public class class_name {
public static long[] longArrayWrappedOrCopy(CollectionNumber coll) {
long[] array = wrappedLongArray(coll);
if (array != null) {
return array;
}
return longArrayCopyOf(coll);
} } | public class class_name {
public static long[] longArrayWrappedOrCopy(CollectionNumber coll) {
long[] array = wrappedLongArray(coll);
if (array != null) {
return array;
// depends on control dependency: [if], data = [none]
}
return longArrayCopyOf(coll);
} } |
public class class_name {
public static final Collator getInstance(ULocale locale) {
// fetching from service cache is faster than instantiation
if (locale == null) {
locale = ULocale.getDefault();
}
Collator coll = getShim().getInstance(locale);
if (!locale.getName(... | public class class_name {
public static final Collator getInstance(ULocale locale) {
// fetching from service cache is faster than instantiation
if (locale == null) {
locale = ULocale.getDefault(); // depends on control dependency: [if], data = [none]
}
Collator coll = getSh... |
public class class_name {
private boolean hasConstantField(PackageDoc pkg) {
ClassDoc[] classes
= (pkg.name().length() > 0)
? pkg.allClasses()
: configuration.classDocCatalog.allClasses(DocletConstants.DEFAULT_PACKAGE_NAME);
boolean found = false;
... | public class class_name {
private boolean hasConstantField(PackageDoc pkg) {
ClassDoc[] classes
= (pkg.name().length() > 0)
? pkg.allClasses()
: configuration.classDocCatalog.allClasses(DocletConstants.DEFAULT_PACKAGE_NAME);
boolean found = false;
... |
public class class_name {
@Override
public Description matchMethod(MethodTree methodTree, VisitorState state) {
SuggestedFix.Builder fix = null;
if (isInjectedConstructor(methodTree, state)) {
for (AnnotationTree annotationTree : methodTree.getModifiers().getAnnotations()) {
if (OPTIONAL_INJECT... | public class class_name {
@Override
public Description matchMethod(MethodTree methodTree, VisitorState state) {
SuggestedFix.Builder fix = null;
if (isInjectedConstructor(methodTree, state)) {
for (AnnotationTree annotationTree : methodTree.getModifiers().getAnnotations()) {
if (OPTIONAL_INJECT... |
public class class_name {
public final hqlParser.bitwiseOrExpression_return bitwiseOrExpression() throws RecognitionException {
hqlParser.bitwiseOrExpression_return retval = new hqlParser.bitwiseOrExpression_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
Token BOR191=null;
ParserRuleReturn... | public class class_name {
public final hqlParser.bitwiseOrExpression_return bitwiseOrExpression() throws RecognitionException {
hqlParser.bitwiseOrExpression_return retval = new hqlParser.bitwiseOrExpression_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
Token BOR191=null;
ParserRuleReturn... |
public class class_name {
@Override
public CPAttachmentFileEntry fetchByC_C_T_ST_Last(long classNameId,
long classPK, int type, int status,
OrderByComparator<CPAttachmentFileEntry> orderByComparator) {
int count = countByC_C_T_ST(classNameId, classPK, type, status);
if (count == 0) {
return null;
}
L... | public class class_name {
@Override
public CPAttachmentFileEntry fetchByC_C_T_ST_Last(long classNameId,
long classPK, int type, int status,
OrderByComparator<CPAttachmentFileEntry> orderByComparator) {
int count = countByC_C_T_ST(classNameId, classPK, type, status);
if (count == 0) {
return null; // depen... |
public class class_name {
@Override
public final <V> boolean match(final MatcherContext<V> context)
{
/*
* TODO! Check logic
*
* At this point, if we have enough cycles, we can't determined whether
* our joining rule would match empty... Which is illegal.
*/... | public class class_name {
@Override
public final <V> boolean match(final MatcherContext<V> context)
{
/*
* TODO! Check logic
*
* At this point, if we have enough cycles, we can't determined whether
* our joining rule would match empty... Which is illegal.
*/... |
public class class_name {
public final float toPoint() {
if (unit == FontSizeUnit.PIXEL) {
return (size / 4 * 3);
}
if (unit == FontSizeUnit.EM) {
return (size * 12);
}
if (unit == FontSizeUnit.PERCENT) {
return (size / 100 * 12);
... | public class class_name {
public final float toPoint() {
if (unit == FontSizeUnit.PIXEL) {
return (size / 4 * 3);
// depends on control dependency: [if], data = [none]
}
if (unit == FontSizeUnit.EM) {
return (size * 12);
// depends on control dependency: [if], data... |
public class class_name {
protected Credential getServiceCredentialsFromRequest(final WebApplicationService service, final HttpServletRequest request) {
val pgtUrl = request.getParameter(CasProtocolConstants.PARAMETER_PROXY_CALLBACK_URL);
if (StringUtils.isNotBlank(pgtUrl)) {
try {
... | public class class_name {
protected Credential getServiceCredentialsFromRequest(final WebApplicationService service, final HttpServletRequest request) {
val pgtUrl = request.getParameter(CasProtocolConstants.PARAMETER_PROXY_CALLBACK_URL);
if (StringUtils.isNotBlank(pgtUrl)) {
try {
... |
public class class_name {
public Long getLong(final String key) {
Number number = (Number) map.get(key);
if (number == null) {
return null;
}
if (number instanceof Long) {
return (Long) number;
}
return number.longValue();
} } | public class class_name {
public Long getLong(final String key) {
Number number = (Number) map.get(key);
if (number == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (number instanceof Long) {
return (Long) number; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static int extract(int bs, int low, int high) {
bs = bs >> low;
int mask = 0;
for (int i = 0; i < (high - low); i++) {
mask += 1 << i;
}
return bs & mask;
} } | public class class_name {
public static int extract(int bs, int low, int high) {
bs = bs >> low;
int mask = 0;
for (int i = 0; i < (high - low); i++) {
mask += 1 << i;
// depends on control dependency: [for], data = [i]
}
return bs & mask;
} } |
public class class_name {
public static String getString(IMolecularFormula formula, String[] orderElements,
boolean setOne, boolean setMassNumber) {
StringBuilder stringMF = new StringBuilder();
List<IIsotope> isotopesList = putInOrder(orderElements, formula);
... | public class class_name {
public static String getString(IMolecularFormula formula, String[] orderElements,
boolean setOne, boolean setMassNumber) {
StringBuilder stringMF = new StringBuilder();
List<IIsotope> isotopesList = putInOrder(orderElements, formula);
... |
public class class_name {
public static Object box(Object property, Class<?> to) {
if (property instanceof Exception) {
throw new RuntimeException((Exception) property);
}
if (property == null) {
return property;
}
if (property.getClass().equals(to)) {
return property;
}
if (property instanceo... | public class class_name {
public static Object box(Object property, Class<?> to) {
if (property instanceof Exception) {
throw new RuntimeException((Exception) property);
}
if (property == null) {
return property; // depends on control dependency: [if], data = [none]
}
if (property.getClass().equals(to... |
public class class_name {
private void handleConsensusAnnotation(String featureName, String value) {
if (featureName.equals(GC_SECONDARY_STRUCTURE)) {
stockholmStructure.getConsAnnotation().setSecondaryStructure(value);
} else if (featureName.equals(GC_SEQUENSE_CONSENSUS)) {
stockholmStructure.getConsAnnotat... | public class class_name {
private void handleConsensusAnnotation(String featureName, String value) {
if (featureName.equals(GC_SECONDARY_STRUCTURE)) {
stockholmStructure.getConsAnnotation().setSecondaryStructure(value); // depends on control dependency: [if], data = [none]
} else if (featureName.equals(GC_SEQUE... |
public class class_name {
@Override
public EClass getIfcExternalReference() {
if (ifcExternalReferenceEClass == null) {
ifcExternalReferenceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(244);
}
return ifcExternalReferenceEClass;
} } | public class class_name {
@Override
public EClass getIfcExternalReference() {
if (ifcExternalReferenceEClass == null) {
ifcExternalReferenceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(244);
// depends on control dependency: [if], data = [none]
... |
public class class_name {
private List<GovernmentBodyAnnualOutcomeSummary> getGovernmentBodyList() {
final List<GovernmentBodyAnnualOutcomeSummary> result = new ArrayList<>();
try {
result.addAll(esvGovernmentBodyOperationOutcomeReader.readIncomeCsv());
result.addAll(esvGovernmentBodyOperationOutcomeReader.r... | public class class_name {
private List<GovernmentBodyAnnualOutcomeSummary> getGovernmentBodyList() {
final List<GovernmentBodyAnnualOutcomeSummary> result = new ArrayList<>();
try {
result.addAll(esvGovernmentBodyOperationOutcomeReader.readIncomeCsv()); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public EClass getIfcSweptDiskSolid() {
if (ifcSweptDiskSolidEClass == null) {
ifcSweptDiskSolidEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(586);
}
return ifcSweptDiskSolidEClass;
} } | public class class_name {
public EClass getIfcSweptDiskSolid() {
if (ifcSweptDiskSolidEClass == null) {
ifcSweptDiskSolidEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(586);
// depends on control dependency: [if], data = [none]
}
return ifcS... |
public class class_name {
public void removeKey(int key) {
if (key == first.value) {
removeMin();
return;
}
if (key == last.value) {
removeMax();
return;
}
// if both children of root are black, set root to red
if ((root.left == null || !root.left.red) &... | public class class_name {
public void removeKey(int key) {
if (key == first.value) {
removeMin();
// depends on control dependency: [if], data = [none]
return;
// depends on control dependency: [if], data = [none]
}
if (key == last.value) {
removeMax();
// depends on control de... |
public class class_name {
public DocServiceBuilder exampleRequestForMethod(String serviceName, String methodName,
Iterable<?> exampleRequests) {
requireNonNull(serviceName, "serviceName");
requireNonNull(methodName, "methodName");
requireNonN... | public class class_name {
public DocServiceBuilder exampleRequestForMethod(String serviceName, String methodName,
Iterable<?> exampleRequests) {
requireNonNull(serviceName, "serviceName");
requireNonNull(methodName, "methodName");
requireNonN... |
public class class_name {
private static SQLException addHostInformationToException(SQLException exception,
Protocol protocol) {
if (protocol != null) {
return new SQLException(exception.getMessage()
+ "\non " + protocol.getHostAddress().toString() + ",master="
+ protocol.isMasterCo... | public class class_name {
private static SQLException addHostInformationToException(SQLException exception,
Protocol protocol) {
if (protocol != null) {
return new SQLException(exception.getMessage()
+ "\non " + protocol.getHostAddress().toString() + ",master="
+ protocol.isMasterCo... |
public class class_name {
public String getHeaders()
{
Map info = new TreeMap();
HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
Enumeration names = req.getHeaderNames();
while (names.hasMoreElements())
{
String name = (String) names.next... | public class class_name {
public String getHeaders()
{
Map info = new TreeMap();
HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
Enumeration names = req.getHeaderNames();
while (names.hasMoreElements())
{
String name = (String) names.next... |
public class class_name {
public int[] findLongest(CharSequence query, int start)
{
if ((query == null) || (start >= query.length()))
{
return new int[]{0, -1};
}
int state = 1;
int maxLength = 0;
int lastVal = -1;
for (int i = start; i < query.le... | public class class_name {
public int[] findLongest(CharSequence query, int start)
{
if ((query == null) || (start >= query.length()))
{
return new int[]{0, -1}; // depends on control dependency: [if], data = [none]
}
int state = 1;
int maxLength = 0;
int ... |
public class class_name {
@Override
public void start(final Logger logger) {
try {
logger.logInfo("Starting OpenDJ server");
final MemoryBackend backend;
if (getLdifFile() == null) {
backend = new MemoryBackend();
} else {
fina... | public class class_name {
@Override
public void start(final Logger logger) {
try {
logger.logInfo("Starting OpenDJ server");
final MemoryBackend backend;
if (getLdifFile() == null) {
backend = new MemoryBackend(); // depends on control dependency: [if], d... |
public class class_name {
public String getQuery() {
StringBuilder query = new StringBuilder();
if (queryTail.length() > 0) {
if (queryHead.length() == 0) {
query.append("{?")
.append(queryTail)
.append("}");
} else... | public class class_name {
public String getQuery() {
StringBuilder query = new StringBuilder();
if (queryTail.length() > 0) {
if (queryHead.length() == 0) {
query.append("{?")
.append(queryTail)
.append("}"); // depends on cont... |
public class class_name {
protected void update(List<TableInfo> tableInfos)
{
for (TableInfo tableInfo : tableInfos)
{
DBObject options = setCollectionProperties(tableInfo);
DB db = mongo.getDB(databaseName);
DBCollection collection = null;
if (tableI... | public class class_name {
protected void update(List<TableInfo> tableInfos)
{
for (TableInfo tableInfo : tableInfos)
{
DBObject options = setCollectionProperties(tableInfo);
DB db = mongo.getDB(databaseName);
DBCollection collection = null;
if (tableI... |
public class class_name {
@Override
public Object[] findIdsByColumn(String schemaName, String tableName, String pKeyName, String columnName,
Object columnValue, Class entityClazz)
{
List<Object> rowKeys = new ArrayList<Object>();
if (getCqlVersion().equalsIgnoreCase(CassandraConsta... | public class class_name {
@Override
public Object[] findIdsByColumn(String schemaName, String tableName, String pKeyName, String columnName,
Object columnValue, Class entityClazz)
{
List<Object> rowKeys = new ArrayList<Object>();
if (getCqlVersion().equalsIgnoreCase(CassandraConsta... |
public class class_name {
@Override
public void sawOpcode(int seen) {
boolean reset = true;
switch (state) { // TODO: Refactor this to use state pattern, not nested
// switches
case SEEN_NOTHING:
reset = sawOpcodeAfterNothing(seen);
b... | public class class_name {
@Override
public void sawOpcode(int seen) {
boolean reset = true;
switch (state) { // TODO: Refactor this to use state pattern, not nested
// switches
case SEEN_NOTHING:
reset = sawOpcodeAfterNothing(seen);
b... |
public class class_name {
public DoubleDBIDList getRKNN(DBIDRef id) {
TreeSet<DoubleDBIDPair> rKNN = materialized_RkNN.get(id);
if(rKNN == null) {
return null;
}
ModifiableDoubleDBIDList ret = DBIDUtil.newDistanceDBIDList(rKNN.size());
for(DoubleDBIDPair pair : rKNN) {
ret.add(pair);
... | public class class_name {
public DoubleDBIDList getRKNN(DBIDRef id) {
TreeSet<DoubleDBIDPair> rKNN = materialized_RkNN.get(id);
if(rKNN == null) {
return null; // depends on control dependency: [if], data = [none]
}
ModifiableDoubleDBIDList ret = DBIDUtil.newDistanceDBIDList(rKNN.size());
for... |
public class class_name {
protected void configureDatabaseIdent (String dbident)
{
_dbident = dbident;
// give the repository a chance to do any schema migration before things get further
// underway
try {
executeUpdate(new Operation<Object>() {
public O... | public class class_name {
protected void configureDatabaseIdent (String dbident)
{
_dbident = dbident;
// give the repository a chance to do any schema migration before things get further
// underway
try {
executeUpdate(new Operation<Object>() {
public O... |
public class class_name {
public static String underscoreToCamelCase(final String undescoredString) {
// Split the string for each underscore
final String[] parts = undescoredString.split(CASE_SEPARATOR);
final StringBuilder camelCaseString = new StringBuilder(undescoredString.length());
... | public class class_name {
public static String underscoreToCamelCase(final String undescoredString) {
// Split the string for each underscore
final String[] parts = undescoredString.split(CASE_SEPARATOR);
final StringBuilder camelCaseString = new StringBuilder(undescoredString.length());
... |
public class class_name {
@Override
public double similarity(@NonNull String label1, @NonNull String label2) {
if (label1 == null || label2 == null) {
log.debug("LABELS: " + label1 + ": " + (label1 == null ? "null" : EXISTS) + ";" + label2 + " vec2:"
+ (label2 == nul... | public class class_name {
@Override
public double similarity(@NonNull String label1, @NonNull String label2) {
if (label1 == null || label2 == null) {
log.debug("LABELS: " + label1 + ": " + (label1 == null ? "null" : EXISTS) + ";" + label2 + " vec2:"
+ (label2 == nul... |
public class class_name {
public DescribeInternetGatewaysResult withInternetGateways(InternetGateway... internetGateways) {
if (this.internetGateways == null) {
setInternetGateways(new com.amazonaws.internal.SdkInternalList<InternetGateway>(internetGateways.length));
}
for (Internet... | public class class_name {
public DescribeInternetGatewaysResult withInternetGateways(InternetGateway... internetGateways) {
if (this.internetGateways == null) {
setInternetGateways(new com.amazonaws.internal.SdkInternalList<InternetGateway>(internetGateways.length)); // depends on control dependenc... |
public class class_name {
public final void mROLLUP() throws RecognitionException {
try {
int _type = ROLLUP;
int _channel = DEFAULT_TOKEN_CHANNEL;
// druidG.g:592:17: ( ( 'ROLLUP' | 'rollup' ) )
// druidG.g:592:18: ( 'ROLLUP' | 'rollup' )
{
// druidG.g:592:18: ( 'ROLLUP' | 'rollup' )
int alt9=2... | public class class_name {
public final void mROLLUP() throws RecognitionException {
try {
int _type = ROLLUP;
int _channel = DEFAULT_TOKEN_CHANNEL;
// druidG.g:592:17: ( ( 'ROLLUP' | 'rollup' ) )
// druidG.g:592:18: ( 'ROLLUP' | 'rollup' )
{
// druidG.g:592:18: ( 'ROLLUP' | 'rollup' )
int alt9=2... |
public class class_name {
private final boolean sniff(byte[] content) {
byte[] beginning = content;
if (content.length > maxOffsetGuess && maxOffsetGuess > 0) {
beginning = Arrays.copyOfRange(content, 0, maxOffsetGuess);
}
int position = Bytes.indexOf(beginning, clue);
... | public class class_name {
private final boolean sniff(byte[] content) {
byte[] beginning = content;
if (content.length > maxOffsetGuess && maxOffsetGuess > 0) {
beginning = Arrays.copyOfRange(content, 0, maxOffsetGuess); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static Object find(Object self, Closure closure) {
BooleanClosureWrapper bcw = new BooleanClosureWrapper(closure);
for (Iterator iter = InvokerHelper.asIterator(self); iter.hasNext();) {
Object value = iter.next();
if (bcw.call(value)) {
... | public class class_name {
public static Object find(Object self, Closure closure) {
BooleanClosureWrapper bcw = new BooleanClosureWrapper(closure);
for (Iterator iter = InvokerHelper.asIterator(self); iter.hasNext();) {
Object value = iter.next();
if (bcw.call(value)) {
... |
public class class_name {
private void maximize()
{
if (timer != null)
{
timer.stop();
timer = null;
}
final int targetHeight = getSuperPreferredHeight();
double steps = (double)durationMS / delayMS;
double delta = targetHei... | public class class_name {
private void maximize()
{
if (timer != null)
{
timer.stop();
// depends on control dependency: [if], data = [none]
timer = null;
// depends on control dependency: [if], data = [none]
}
final int targetHeight = getSup... |
public class class_name {
public static DifferenceEvaluator
chain(final DifferenceEvaluator... evaluators) {
return new DifferenceEvaluator() {
@Override
public ComparisonResult evaluate(Comparison comparison, ComparisonResult orig) {
ComparisonResult finalResult... | public class class_name {
public static DifferenceEvaluator
chain(final DifferenceEvaluator... evaluators) {
return new DifferenceEvaluator() {
@Override
public ComparisonResult evaluate(Comparison comparison, ComparisonResult orig) {
ComparisonResult finalResult... |
public class class_name {
@Override
public void subscribe(String channel, ISubscriber<ID, DATA> subscriber) {
try {
Set<ISubscriber<ID, DATA>> subs = subscriptions.get(channel);
synchronized (subs) {
subs.add(subscriber);
}
} catch (ExecutionExcep... | public class class_name {
@Override
public void subscribe(String channel, ISubscriber<ID, DATA> subscriber) {
try {
Set<ISubscriber<ID, DATA>> subs = subscriptions.get(channel);
synchronized (subs) { // depends on control dependency: [try], data = [none]
subs.add(sub... |
public class class_name {
public static void adjustHue(ColorMatrix cm, float value)
{
value = cleanValue(value, 180f) / 180f * (float) Math.PI;
if (value == 0)
{
return;
}
float cosVal = (float) Math.cos(value);
float sinVal = (float) Math.sin(value);
... | public class class_name {
public static void adjustHue(ColorMatrix cm, float value)
{
value = cleanValue(value, 180f) / 180f * (float) Math.PI;
if (value == 0)
{
return; // depends on control dependency: [if], data = [none]
}
float cosVal = (float) Math.cos(value... |
public class class_name {
private void parseSchemasElement(Element element,
BeanDefinitionBuilder builder,
ParserContext parserContext) {
Element schemasElement = DomUtils.getChildElementByTagName(element, SCHEMAS);
if (schemasE... | public class class_name {
private void parseSchemasElement(Element element,
BeanDefinitionBuilder builder,
ParserContext parserContext) {
Element schemasElement = DomUtils.getChildElementByTagName(element, SCHEMAS);
if (schemasE... |
public class class_name {
@Override
public Collection<Approval> getApprovals(String userId, String clientId) {
Collection<Approval> result = new HashSet<Approval>();
Collection<OAuth2AccessToken> tokens = store.findTokensByClientIdAndUserName(clientId, userId);
for (OAuth2AccessToken token : tokens) {
OAuth2... | public class class_name {
@Override
public Collection<Approval> getApprovals(String userId, String clientId) {
Collection<Approval> result = new HashSet<Approval>();
Collection<OAuth2AccessToken> tokens = store.findTokensByClientIdAndUserName(clientId, userId);
for (OAuth2AccessToken token : tokens) {
OAuth2... |
public class class_name {
public static String getCallSimpleName(XAbstractFeatureCall featureCall,
ILogicalContainerProvider logicalContainerProvider,
IdentifiableSimpleNameProvider featureNameProvider,
Function0<? extends String> nullKeyword,
Function0<? extends String> thisKeyword,
Function0<? extends... | public class class_name {
public static String getCallSimpleName(XAbstractFeatureCall featureCall,
ILogicalContainerProvider logicalContainerProvider,
IdentifiableSimpleNameProvider featureNameProvider,
Function0<? extends String> nullKeyword,
Function0<? extends String> thisKeyword,
Function0<? extends... |
public class class_name {
private void publishEvent(WSJobExecution objectToPublish, String eventToPublishTo, String correlationId) {
if (eventsPublisher != null) {
eventsPublisher.publishJobExecutionEvent(objectToPublish, eventToPublishTo, correlationId);
}
} } | public class class_name {
private void publishEvent(WSJobExecution objectToPublish, String eventToPublishTo, String correlationId) {
if (eventsPublisher != null) {
eventsPublisher.publishJobExecutionEvent(objectToPublish, eventToPublishTo, correlationId); // depends on control dependency: [if], dat... |
public class class_name {
public ModifyVpcEndpointRequest withAddSecurityGroupIds(String... addSecurityGroupIds) {
if (this.addSecurityGroupIds == null) {
setAddSecurityGroupIds(new com.amazonaws.internal.SdkInternalList<String>(addSecurityGroupIds.length));
}
for (String ele : addS... | public class class_name {
public ModifyVpcEndpointRequest withAddSecurityGroupIds(String... addSecurityGroupIds) {
if (this.addSecurityGroupIds == null) {
setAddSecurityGroupIds(new com.amazonaws.internal.SdkInternalList<String>(addSecurityGroupIds.length)); // depends on control dependency: [if], ... |
public class class_name {
private String buildUrlName(final String host, final String port) {
try {
return "tango://" + TangoUrl.getCanonicalName(host) + ":" + port;
}
catch (DevFailed e) {
return "tango://" + host + ":" + port;
}
} } | public class class_name {
private String buildUrlName(final String host, final String port) {
try {
return "tango://" + TangoUrl.getCanonicalName(host) + ":" + port;
}
catch (DevFailed e) {
return "tango://" + host + ":" + port;
} // depends on control dependency: [cat... |
public class class_name {
public PeriodFormatter withParseType(PeriodType type) {
if (type == iParseType) {
return this;
}
return new PeriodFormatter(iPrinter, iParser, iLocale, type);
} } | public class class_name {
public PeriodFormatter withParseType(PeriodType type) {
if (type == iParseType) {
return this; // depends on control dependency: [if], data = [none]
}
return new PeriodFormatter(iPrinter, iParser, iLocale, type);
} } |
public class class_name {
private String sanitize(String path) {
String sanitized = path.replaceAll( "\\\\", "/" );
if ( sanitized.matches( "^[a-z]:.*" ) ) {
sanitized = sanitized.substring(0,1).toUpperCase() + sanitized.substring(1);
}
return sanitized;
} } | public class class_name {
private String sanitize(String path) {
String sanitized = path.replaceAll( "\\\\", "/" );
if ( sanitized.matches( "^[a-z]:.*" ) ) {
sanitized = sanitized.substring(0,1).toUpperCase() + sanitized.substring(1); // depends on control dependency: [if], data = ... |
public class class_name {
private URI getRelativePath(final URI href) {
final URI keyValue;
final URI inputMap = job.getFileInfo(fi -> fi.isInput).stream()
.map(fi -> fi.uri)
.findFirst()
.orElse(null);
if (inputMap != null) {
final UR... | public class class_name {
private URI getRelativePath(final URI href) {
final URI keyValue;
final URI inputMap = job.getFileInfo(fi -> fi.isInput).stream()
.map(fi -> fi.uri)
.findFirst()
.orElse(null);
if (inputMap != null) {
final UR... |
public class class_name {
protected void setConnectionType(VirtualConnection vc) {
if (this.myType == 0 || vc == null) {
ConnectionType newType = ConnectionType.getVCConnectionType(vc);
this.myType = (newType == null) ? 0 : newType.export();
}
} } | public class class_name {
protected void setConnectionType(VirtualConnection vc) {
if (this.myType == 0 || vc == null) {
ConnectionType newType = ConnectionType.getVCConnectionType(vc);
this.myType = (newType == null) ? 0 : newType.export(); // depends on control dependency: [if], data... |
public class class_name {
public String getString(String key) {
if (key == null || key.isEmpty()) {
return null;
}
String property = null;
for (ConfigurationSource configurationSource : configurationSources) {
property = configurationSource.getValue(key);
if (property != null) {
break;
}
}
... | public class class_name {
public String getString(String key) {
if (key == null || key.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
String property = null;
for (ConfigurationSource configurationSource : configurationSources) {
property = configurationSource.getValue(k... |
public class class_name {
private void sendInputStream(InputStream inputStream) {
byte[] buffer = new byte[ONE_KB];
int read;
try {
// This method uses a blocking while loop to receive all contents of the underlying input stream.
// AudioInputStreams, typically used for streaming microphone inp... | public class class_name {
private void sendInputStream(InputStream inputStream) {
byte[] buffer = new byte[ONE_KB];
int read;
try {
// This method uses a blocking while loop to receive all contents of the underlying input stream.
// AudioInputStreams, typically used for streaming microphone inp... |
public class class_name {
@Override
public void setProperties(Configuration<?> config) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "setProperties", config);
}
if (properties != null) {
for (Property ptype : properties) {
... | public class class_name {
@Override
public void setProperties(Configuration<?> config) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "setProperties", config); // depends on control dependency: [if], data = [none]
}
if (properties != null) {
... |
public class class_name {
private static boolean isCentralRepositoryFromSuperPom( Repository repo )
{
if ( repo != null )
{
if ( "central".equals( repo.getId() ) )
{
RepositoryPolicy snapshots = repo.getSnapshots();
if ( snapshots != null && !... | public class class_name {
private static boolean isCentralRepositoryFromSuperPom( Repository repo )
{
if ( repo != null )
{
if ( "central".equals( repo.getId() ) )
{
RepositoryPolicy snapshots = repo.getSnapshots();
if ( snapshots != null && !... |
public class class_name {
private void tokenizeChinese(JCas jcas) {
try {
// read tokenized text to add tokens to the jcas
Process proc = ttprops.getChineseTokenizationProcess();
Logger.printDetail(component, "Chinese tokenization: " + ttprops.chineseTokenizerPath);
BufferedReader in = new BufferedRe... | public class class_name {
private void tokenizeChinese(JCas jcas) {
try {
// read tokenized text to add tokens to the jcas
Process proc = ttprops.getChineseTokenizationProcess();
Logger.printDetail(component, "Chinese tokenization: " + ttprops.chineseTokenizerPath); // depends on control dependency: [try], ... |
public class class_name {
public static void addLevelsToDatabase(final BuildDatabase buildDatabase, final Level level) {
// Add the level to the database
buildDatabase.add(level);
// Add the child levels to the database
for (final Level childLevel : level.getChildLevels()) {
... | public class class_name {
public static void addLevelsToDatabase(final BuildDatabase buildDatabase, final Level level) {
// Add the level to the database
buildDatabase.add(level);
// Add the child levels to the database
for (final Level childLevel : level.getChildLevels()) {
... |
public class class_name {
public List<Map<String, Object>> getNstd() {
if (nstd == null) {
nstd = new ArrayList<>();
}
return nstd;
} } | public class class_name {
public List<Map<String, Object>> getNstd() {
if (nstd == null) {
nstd = new ArrayList<>(); // depends on control dependency: [if], data = [none]
}
return nstd;
} } |
public class class_name {
public String getTextOrDefault(String defaultValueIfEmpty) {
String text = getText();
if(text.isEmpty()) {
return defaultValueIfEmpty;
}
return text;
} } | public class class_name {
public String getTextOrDefault(String defaultValueIfEmpty) {
String text = getText();
if(text.isEmpty()) {
return defaultValueIfEmpty; // depends on control dependency: [if], data = [none]
}
return text;
} } |
public class class_name {
@Override
public boolean isScreenOn() {
CommandLine command = adbCommand("shell", "dumpsys power");
try {
String powerState = ShellCommand.exec(command).toLowerCase();
if (powerState.indexOf("mscreenon=true") > -1
|| powerState.indexOf("mpowerstate=0") == -1) {... | public class class_name {
@Override
public boolean isScreenOn() {
CommandLine command = adbCommand("shell", "dumpsys power");
try {
String powerState = ShellCommand.exec(command).toLowerCase();
if (powerState.indexOf("mscreenon=true") > -1
|| powerState.indexOf("mpowerstate=0") == -1) {... |
public class class_name {
public ModelAdapter<?, Item> clear() {
if (mOriginalItems != null) {
mOriginalItems.clear();
publishResults(mConstraint, performFiltering(mConstraint));
return mItemAdapter;
} else {
return mItemAdapter.clear();
}
} } | public class class_name {
public ModelAdapter<?, Item> clear() {
if (mOriginalItems != null) {
mOriginalItems.clear(); // depends on control dependency: [if], data = [none]
publishResults(mConstraint, performFiltering(mConstraint)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static void main(String[] args) {
try(FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext("classpath:applicationContext-generator-bash.xml");){
logger.info("Context loaded");
ProjectMetaData projectMetaData = buildProjectMetaData(args)... | public class class_name {
public static void main(String[] args) {
try(FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext("classpath:applicationContext-generator-bash.xml");){
logger.info("Context loaded");
ProjectMetaData projectMetaData = buildProjectMetaData(args)... |
public class class_name {
public static HttpResponse executeGet(final String url,
final Map<String, Object> parameters) {
try {
return executeGet(url, null, null, parameters);
} catch (final Exception e) {
LOGGER.error(e.getMessage(), e)... | public class class_name {
public static HttpResponse executeGet(final String url,
final Map<String, Object> parameters) {
try {
return executeGet(url, null, null, parameters); // depends on control dependency: [try], data = [none]
} catch (final Exc... |
public class class_name {
@SuppressWarnings({"unchecked", "rawtypes"})
public void setField(final FieldDescriptorType descriptor,
Object value) {
if (descriptor.isRepeated()) {
if (!(value instanceof List)) {
throw new IllegalArgumentException(
"Wrong object type us... | public class class_name {
@SuppressWarnings({"unchecked", "rawtypes"})
public void setField(final FieldDescriptorType descriptor,
Object value) {
if (descriptor.isRepeated()) {
if (!(value instanceof List)) {
throw new IllegalArgumentException(
"Wrong object type us... |
public class class_name {
public static boolean isCompositeComponent(UIComponent component) {
if (component == null) {
throw new NullPointerException();
}
boolean result = false;
if (null != component.isCompositeComponent) {
result = component.isCompositeCompone... | public class class_name {
public static boolean isCompositeComponent(UIComponent component) {
if (component == null) {
throw new NullPointerException();
}
boolean result = false;
if (null != component.isCompositeComponent) {
result = component.isCompositeCompone... |
public class class_name {
String generateHtmlForElement(boolean firstRun, MessageSource messageSource, FormCheckerElement elem, boolean html5Validation) {
InputElementStructure inputStruct = new InputElementStructure();
// errors
ValidationResult vr = getErrors(elem, firstRun);
if (!vr.isValid()) {
inputStr... | public class class_name {
String generateHtmlForElement(boolean firstRun, MessageSource messageSource, FormCheckerElement elem, boolean html5Validation) {
InputElementStructure inputStruct = new InputElementStructure();
// errors
ValidationResult vr = getErrors(elem, firstRun);
if (!vr.isValid()) {
inputStr... |
public class class_name {
@GET
@Produces(MediaType.APPLICATION_JSON)
@RequiresPermissions(I18nPermissions.LOCALE_READ)
public Response getSupportedLocales() {
List<LocaleRepresentation> locales = supportedLocaleFinder.findSupportedLocales();
if (!locales.isEmpty()) {
return Response.ok(l... | public class class_name {
@GET
@Produces(MediaType.APPLICATION_JSON)
@RequiresPermissions(I18nPermissions.LOCALE_READ)
public Response getSupportedLocales() {
List<LocaleRepresentation> locales = supportedLocaleFinder.findSupportedLocales();
if (!locales.isEmpty()) {
return Response.ok(l... |
public class class_name {
public String resolveStaticField(ValueExpression exprVE) {
if (exprVE != null) {
String exprStr = exprVE.getExpressionString();
Matcher matcher = STATIC_FIELD_PATTERN.matcher(exprStr);
if (matcher.find()) {
return matcher.group(1);
... | public class class_name {
public String resolveStaticField(ValueExpression exprVE) {
if (exprVE != null) {
String exprStr = exprVE.getExpressionString();
Matcher matcher = STATIC_FIELD_PATTERN.matcher(exprStr);
if (matcher.find()) {
return matcher.group(1); /... |
public class class_name {
public void setTransitGateways(java.util.Collection<TransitGateway> transitGateways) {
if (transitGateways == null) {
this.transitGateways = null;
return;
}
this.transitGateways = new com.amazonaws.internal.SdkInternalList<TransitGateway>(trans... | public class class_name {
public void setTransitGateways(java.util.Collection<TransitGateway> transitGateways) {
if (transitGateways == null) {
this.transitGateways = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
protected final String parseSystemId(char quoteChar, boolean convertLFs,
String errorMsg)
throws XMLStreamException
{
char[] buf = getNameBuffer(-1);
int ptr = 0;
while (true) {
char c = (mInputPtr < mIn... | public class class_name {
protected final String parseSystemId(char quoteChar, boolean convertLFs,
String errorMsg)
throws XMLStreamException
{
char[] buf = getNameBuffer(-1);
int ptr = 0;
while (true) {
char c = (mInputPtr < mIn... |
public class class_name {
private String generateParsedSql(ProcessedInput processedInput) {
String originalSql = processedInput.getOriginalSql();
StringBuilder actualSql = new StringBuilder();
List paramNames = processedInput.getSqlParameterNames();
int lastIndex = 0;
for (... | public class class_name {
private String generateParsedSql(ProcessedInput processedInput) {
String originalSql = processedInput.getOriginalSql();
StringBuilder actualSql = new StringBuilder();
List paramNames = processedInput.getSqlParameterNames();
int lastIndex = 0;
for (... |
public class class_name {
public static int[] colRowFromCoordinate( Coordinate coordinate, GridGeometry2D gridGeometry, Point point ) {
try {
DirectPosition pos = new DirectPosition2D(coordinate.x, coordinate.y);
GridCoordinates2D worldToGrid = gridGeometry.worldToGrid(pos);
... | public class class_name {
public static int[] colRowFromCoordinate( Coordinate coordinate, GridGeometry2D gridGeometry, Point point ) {
try {
DirectPosition pos = new DirectPosition2D(coordinate.x, coordinate.y);
GridCoordinates2D worldToGrid = gridGeometry.worldToGrid(pos);
... |
public class class_name {
public Fleet withFleetErrors(FleetError... fleetErrors) {
if (this.fleetErrors == null) {
setFleetErrors(new java.util.ArrayList<FleetError>(fleetErrors.length));
}
for (FleetError ele : fleetErrors) {
this.fleetErrors.add(ele);
}
... | public class class_name {
public Fleet withFleetErrors(FleetError... fleetErrors) {
if (this.fleetErrors == null) {
setFleetErrors(new java.util.ArrayList<FleetError>(fleetErrors.length)); // depends on control dependency: [if], data = [none]
}
for (FleetError ele : fleetErrors) {
... |
public class class_name {
protected IDialogSettings getDialogBoundsSettings() {
IDialogSettings settings = IDEWorkbenchPlugin.getDefault().getDialogSettings();
IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION);
if (section == null) {
section = settings.addNewSec... | public class class_name {
protected IDialogSettings getDialogBoundsSettings() {
IDialogSettings settings = IDEWorkbenchPlugin.getDefault().getDialogSettings();
IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION);
if (section == null) {
section = settings.addNewSec... |
public class class_name {
static TypeVariableSignature parse(final Parser parser, final String definingClassName) throws ParseException {
final char peek = parser.peek();
if (peek == 'T') {
parser.next();
if (!TypeUtils.getIdentifierToken(parser)) {
throw new Par... | public class class_name {
static TypeVariableSignature parse(final Parser parser, final String definingClassName) throws ParseException {
final char peek = parser.peek();
if (peek == 'T') {
parser.next();
if (!TypeUtils.getIdentifierToken(parser)) {
throw new Par... |
public class class_name {
public List<JAXBElement<? extends AuthenticationConfigurationType>> getAuthenticationConfiguration() {
if (authenticationConfiguration == null) {
authenticationConfiguration = new ArrayList<JAXBElement<? extends AuthenticationConfigurationType>>();
}
return... | public class class_name {
public List<JAXBElement<? extends AuthenticationConfigurationType>> getAuthenticationConfiguration() {
if (authenticationConfiguration == null) {
authenticationConfiguration = new ArrayList<JAXBElement<? extends AuthenticationConfigurationType>>(); // depends on control de... |
public class class_name {
@Override @DefinedBy(Api.COMPILER_TREE)
public TypeMirror getOriginalType(javax.lang.model.type.ErrorType errorType) {
if (errorType instanceof com.sun.tools.javac.code.Type.ErrorType) {
return ((com.sun.tools.javac.code.Type.ErrorType)errorType).getOriginalType();
... | public class class_name {
@Override @DefinedBy(Api.COMPILER_TREE)
public TypeMirror getOriginalType(javax.lang.model.type.ErrorType errorType) {
if (errorType instanceof com.sun.tools.javac.code.Type.ErrorType) {
return ((com.sun.tools.javac.code.Type.ErrorType)errorType).getOriginalType(); // ... |
public class class_name {
public static CmsVfsEntryBean generateVfsPreloadData(
final CmsObject cms,
final CmsTreeOpenState vfsState,
final Set<String> folders) {
CmsVfsEntryBean vfsPreloadData = null;
A_CmsTreeTabDataPreloader<CmsVfsEntryBean> vfsloader = new A_CmsTreeTabData... | public class class_name {
public static CmsVfsEntryBean generateVfsPreloadData(
final CmsObject cms,
final CmsTreeOpenState vfsState,
final Set<String> folders) {
CmsVfsEntryBean vfsPreloadData = null;
A_CmsTreeTabDataPreloader<CmsVfsEntryBean> vfsloader = new A_CmsTreeTabData... |
public class class_name {
public GuidedDecisionTable52 upgrade(GuidedDecisionTable52 source) {
final GuidedDecisionTable52 destination = source;
for (BaseColumn column : source.getExpandedColumns()) {
DTColumnConfig52 dtColumn = null;
if (column instanceof MetadataCol52) {
... | public class class_name {
public GuidedDecisionTable52 upgrade(GuidedDecisionTable52 source) {
final GuidedDecisionTable52 destination = source;
for (BaseColumn column : source.getExpandedColumns()) {
DTColumnConfig52 dtColumn = null;
if (column instanceof MetadataCol52) {
... |
public class class_name {
@Override
public void run (long timeToRun) {
// Increment the frame number
frame++;
// Clear the list of tasks to run
runList.size = 0;
// Go through each task
for (int i = 0; i < schedulableRecords.size; i++) {
SchedulableRecord record = schedulableRecords.get(i);
// If ... | public class class_name {
@Override
public void run (long timeToRun) {
// Increment the frame number
frame++;
// Clear the list of tasks to run
runList.size = 0;
// Go through each task
for (int i = 0; i < schedulableRecords.size; i++) {
SchedulableRecord record = schedulableRecords.get(i);
// If ... |
public class class_name {
private SparseTensor reduceDimensions(Set<Integer> dimensionsToEliminate,
boolean useSum, Backpointers backpointers) {
// TODO(jayantk): This method can be generalized to support a
// generic reduce
// operation (as a function), but it's unclear what the effect on
// per... | public class class_name {
private SparseTensor reduceDimensions(Set<Integer> dimensionsToEliminate,
boolean useSum, Backpointers backpointers) {
// TODO(jayantk): This method can be generalized to support a
// generic reduce
// operation (as a function), but it's unclear what the effect on
// per... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.