code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private List<String> sortIds(Set<String> docIdSet,
List<FieldSort> sortDocument,
List<Index> indexes,
SQLDatabase db) throws QueryException {
boolean smallResultSet = (docIdSet.size() < ... | public class class_name {
private List<String> sortIds(Set<String> docIdSet,
List<FieldSort> sortDocument,
List<Index> indexes,
SQLDatabase db) throws QueryException {
boolean smallResultSet = (docIdSet.size() < ... |
public class class_name {
private String rdNumber(int base) throws LexException
{
StringBuilder v = new StringBuilder();
int n = value(ch);
// long v = n;
v.append(ch);
if (n < 0 || n >= base)
{
throwMessage(1001, "Invalid char [" + ch + "] in base " + base
+ " number");
}
while (true)
{
... | public class class_name {
private String rdNumber(int base) throws LexException
{
StringBuilder v = new StringBuilder();
int n = value(ch);
// long v = n;
v.append(ch);
if (n < 0 || n >= base)
{
throwMessage(1001, "Invalid char [" + ch + "] in base " + base
+ " number");
}
while (true)
{
... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T> T contextualize(final OperationalContextRetriver retriver, final T instance, Class<?> interfaze,
final Class<?>... contextPropagatingInterfaces) {
return (T) Proxy.newProxyInstance(instance.getClass().getClassLoader(), new C... | public class class_name {
@SuppressWarnings("unchecked")
public static <T> T contextualize(final OperationalContextRetriver retriver, final T instance, Class<?> interfaze,
final Class<?>... contextPropagatingInterfaces) {
return (T) Proxy.newProxyInstance(instance.getClass().getClassLoader(), new C... |
public class class_name {
private static void removeMethodByName(Method method, List<Method> methods) {
if(methods != null) {
Iterator<Method> itr = methods.iterator();
Method aMethod = null;
while(itr.hasNext()) {
aMethod = itr.next();
if(aMethod.getName().equals(method.getName()... | public class class_name {
private static void removeMethodByName(Method method, List<Method> methods) {
if(methods != null) {
Iterator<Method> itr = methods.iterator();
Method aMethod = null;
while(itr.hasNext()) {
aMethod = itr.next(); // depends on control dependency: [while], data = [n... |
public class class_name {
public static boolean isIdentical(DMatrix a, DMatrix b , double tol ) {
if( a.getNumRows() != b.getNumRows() || a.getNumCols() != b.getNumCols() ) {
return false;
}
if( tol < 0 )
throw new IllegalArgumentException("Tolerance must be greater than... | public class class_name {
public static boolean isIdentical(DMatrix a, DMatrix b , double tol ) {
if( a.getNumRows() != b.getNumRows() || a.getNumCols() != b.getNumCols() ) {
return false; // depends on control dependency: [if], data = [none]
}
if( tol < 0 )
throw new Il... |
public class class_name {
private File findFile(File base, String path, boolean cs) {
if (FileUtil.isAbsolutePath(path)) {
if (base == null) {
String[] s = FileUtil.dissect(path);
base = new File(s[0]);
path = s[1];
} else {
... | public class class_name {
private File findFile(File base, String path, boolean cs) {
if (FileUtil.isAbsolutePath(path)) {
if (base == null) {
String[] s = FileUtil.dissect(path);
base = new File(s[0]); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static GEOMTYPE getGeometryType( SimpleFeatureCollection featureCollection ) {
GeometryDescriptor geometryDescriptor = featureCollection.getSchema().getGeometryDescriptor();
if (EGeometryType.isPolygon(geometryDescriptor)) {
return GEOMTYPE.POLYGON;
... | public class class_name {
public static GEOMTYPE getGeometryType( SimpleFeatureCollection featureCollection ) {
GeometryDescriptor geometryDescriptor = featureCollection.getSchema().getGeometryDescriptor();
if (EGeometryType.isPolygon(geometryDescriptor)) {
return GEOMTYPE.POLYGON; // depen... |
public class class_name {
public void start(){
try {
jmsServer.setConfiguration(config);
jmsServer.setJmsConfiguration(jmsConfig);
jmsServer.start();
ConnectionFactory connectionFactory = (ConnectionFactory) jmsServer.lookup("/cf");
if(connectionFa... | public class class_name {
public void start(){
try {
jmsServer.setConfiguration(config); // depends on control dependency: [try], data = [none]
jmsServer.setJmsConfiguration(jmsConfig); // depends on control dependency: [try], data = [none]
jmsServer.start(); // depends on... |
public class class_name {
@Override
protected String documentation() {
if (documentation == null) {
JavaFileObject overviewPath = getOverviewPath();
if (overviewPath == null) {
// no doc file to be had
documentation = "";
} else {
... | public class class_name {
@Override
protected String documentation() {
if (documentation == null) {
JavaFileObject overviewPath = getOverviewPath();
if (overviewPath == null) {
// no doc file to be had
documentation = ""; // depends on control depende... |
public class class_name {
private static void initializeDrawee(Context context, @Nullable DraweeConfig draweeConfig) {
if (FrescoSystrace.isTracing()) {
FrescoSystrace.beginSection("Fresco.initializeDrawee");
}
sDraweeControllerBuilderSupplier =
new PipelineDraweeControllerBuilderSupplier(con... | public class class_name {
private static void initializeDrawee(Context context, @Nullable DraweeConfig draweeConfig) {
if (FrescoSystrace.isTracing()) {
FrescoSystrace.beginSection("Fresco.initializeDrawee"); // depends on control dependency: [if], data = [none]
}
sDraweeControllerBuilderSupplier =
... |
public class class_name {
public void reset() {
final ReentrantLock lock = this.lock;
lock.lock();
try {
breakBarrier(); // break the current generation
nextGeneration(); // start a new generation
} finally {
lock.unlock();
}
} } | public class class_name {
public void reset() {
final ReentrantLock lock = this.lock;
lock.lock();
try {
breakBarrier(); // break the current generation // depends on control dependency: [try], data = [none]
nextGeneration(); // start a new generation // depends on con... |
public class class_name {
public void marshall(UpdateJobQueueRequest updateJobQueueRequest, ProtocolMarshaller protocolMarshaller) {
if (updateJobQueueRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(UpdateJobQueueRequest updateJobQueueRequest, ProtocolMarshaller protocolMarshaller) {
if (updateJobQueueRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
public static base_responses add(nitro_service client, clusternodegroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternodegroup addresources[] = new clusternodegroup[resources.length];
for (int i=0;i<resources.l... | public class class_name {
public static base_responses add(nitro_service client, clusternodegroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternodegroup addresources[] = new clusternodegroup[resources.length];
for (int i=0;i<resources.l... |
public class class_name {
private com.github.fge.jsonschema.main.JsonSchema getValidator() throws ProcessingException {
if (validator == null) {
synchronized (this) {
if (validator == null) {
ValidationConfigurationBuilder cfgBuilder = ValidationConfiguration.new... | public class class_name {
private com.github.fge.jsonschema.main.JsonSchema getValidator() throws ProcessingException {
if (validator == null) {
synchronized (this) {
if (validator == null) {
ValidationConfigurationBuilder cfgBuilder = ValidationConfiguration.new... |
public class class_name {
protected void bindBlobLiteral(int index, byte[] value) {
if (blobLiterals == null) {
blobLiterals = new LinkedHashMap<>();
}
blobLiterals.put(index, value);
} } | public class class_name {
protected void bindBlobLiteral(int index, byte[] value) {
if (blobLiterals == null) {
blobLiterals = new LinkedHashMap<>(); // depends on control dependency: [if], data = [none]
}
blobLiterals.put(index, value);
} } |
public class class_name {
public static String join(Iterable<?> iterable, String separator) {
if (iterable != null) {
StringBuilder buf = new StringBuilder();
Iterator<?> it = iterable.iterator();
char singleChar = separator.length() == 1 ? separator.charAt(0) : 0;
... | public class class_name {
public static String join(Iterable<?> iterable, String separator) {
if (iterable != null) {
StringBuilder buf = new StringBuilder();
Iterator<?> it = iterable.iterator();
char singleChar = separator.length() == 1 ? separator.charAt(0) : 0;
... |
public class class_name {
private void saveLastFetchedId(byte[] lastFetchedId) {
if (lastFetchedId != null) {
rocksDbWrapper.put(cfNameMetadata, writeOptions, keyLastFetchedId, lastFetchedId);
}
} } | public class class_name {
private void saveLastFetchedId(byte[] lastFetchedId) {
if (lastFetchedId != null) {
rocksDbWrapper.put(cfNameMetadata, writeOptions, keyLastFetchedId, lastFetchedId); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static String toBase64(byte[] byteArray) {
String result = null;
if (byteArray != null) {
result = Base64.encodeBase64String(byteArray);
}
return result;
} } | public class class_name {
public static String toBase64(byte[] byteArray) {
String result = null;
if (byteArray != null) {
result = Base64.encodeBase64String(byteArray); // depends on control dependency: [if], data = [(byteArray]
}
return result;
} } |
public class class_name {
protected void initializeElements() {
final BusLine line = getBusLine();
if (line != null) {
int i = 0;
for (final BusItinerary itinerary : line.busItineraries()) {
onBusItineraryAdded(itinerary, i);
++i;
}
}
} } | public class class_name {
protected void initializeElements() {
final BusLine line = getBusLine();
if (line != null) {
int i = 0;
for (final BusItinerary itinerary : line.busItineraries()) {
onBusItineraryAdded(itinerary, i); // depends on control dependency: [for], data = [itinerary]
++i; // depends... |
public class class_name {
public Match find(String text) {
if (regexp == null)
return null;
Matcher m = regexp.matcher(text);
if (m.find()) {
Match match = new Match();
match.setText(text);
match.match = m;
match.start = m.start(0);
match.end = m.end(0);
match.line = text;
return match;... | public class class_name {
public Match find(String text) {
if (regexp == null)
return null;
Matcher m = regexp.matcher(text);
if (m.find()) {
Match match = new Match();
match.setText(text); // depends on control dependency: [if], data = [none]
match.match = m; // depends on control dependency: [if]... |
public class class_name {
private String getAction(final Annotation[] annotations, final Method method) {
for (final Annotation annotation : annotations) {
if (annotation instanceof Audit) {
final Audit audit = (Audit) annotation;
String action = audit.action();
... | public class class_name {
private String getAction(final Annotation[] annotations, final Method method) {
for (final Annotation annotation : annotations) {
if (annotation instanceof Audit) {
final Audit audit = (Audit) annotation;
String action = audit.action();
... |
public class class_name {
List<HttpSenderListener> getHttpSenderListeners() {
if (httpSenderListeners == null) {
return Collections.emptyList();
}
return Collections.unmodifiableList(httpSenderListeners);
} } | public class class_name {
List<HttpSenderListener> getHttpSenderListeners() {
if (httpSenderListeners == null) {
return Collections.emptyList();
// depends on control dependency: [if], data = [none]
}
return Collections.unmodifiableList(httpSenderListeners);
} } |
public class class_name {
private IStereoElement newTetrahedral(int u, int[] vs, IAtom[] atoms, Configuration c) {
// no way to handle tetrahedral configurations with implicit
// hydrogen or lone pair at the moment
if (vs.length != 4) {
// sanity check
if (vs.length !=... | public class class_name {
private IStereoElement newTetrahedral(int u, int[] vs, IAtom[] atoms, Configuration c) {
// no way to handle tetrahedral configurations with implicit
// hydrogen or lone pair at the moment
if (vs.length != 4) {
// sanity check
if (vs.length !=... |
public class class_name {
private static StringBuilder append(Object key, Object value, StringBuilder queryString, String ampersand) {
if (queryString.length() > 0) {
queryString.append(ampersand);
}
// Use encodeURL from Struts' RequestUtils class - it's JDK 1.3 and 1.4
// compliant
queryString.a... | public class class_name {
private static StringBuilder append(Object key, Object value, StringBuilder queryString, String ampersand) {
if (queryString.length() > 0) {
queryString.append(ampersand);
// depends on control dependency: [if], data = [none]
}
// Use encodeURL from Struts' RequestUtils class -... |
public class class_name {
public EnableEnhancedMonitoringResult withDesiredShardLevelMetrics(String... desiredShardLevelMetrics) {
if (this.desiredShardLevelMetrics == null) {
setDesiredShardLevelMetrics(new com.amazonaws.internal.SdkInternalList<String>(desiredShardLevelMetrics.length));
}... | public class class_name {
public EnableEnhancedMonitoringResult withDesiredShardLevelMetrics(String... desiredShardLevelMetrics) {
if (this.desiredShardLevelMetrics == null) {
setDesiredShardLevelMetrics(new com.amazonaws.internal.SdkInternalList<String>(desiredShardLevelMetrics.length)); // depend... |
public class class_name {
double error(int[] x, int[] y) {
int e = 0;
for (int i = 0; i < x.length; i++) {
if (x[i] != y[i]) {
e++;
}
}
return (double) e / x.length;
} } | public class class_name {
double error(int[] x, int[] y) {
int e = 0;
for (int i = 0; i < x.length; i++) {
if (x[i] != y[i]) {
e++; // depends on control dependency: [if], data = [none]
}
}
return (double) e / x.length;
} } |
public class class_name {
public static CounterMap parseCounters(byte[] prefix,
Map<byte[], byte[]> keyValues) {
CounterMap counterValues = new CounterMap();
byte[] counterPrefix = Bytes.add(prefix, Constants.SEP_BYTES);
for (Map.Entry<byte[], byte[]> entry : keyValues.entrySet()) {
byte[] key ... | public class class_name {
public static CounterMap parseCounters(byte[] prefix,
Map<byte[], byte[]> keyValues) {
CounterMap counterValues = new CounterMap();
byte[] counterPrefix = Bytes.add(prefix, Constants.SEP_BYTES);
for (Map.Entry<byte[], byte[]> entry : keyValues.entrySet()) {
byte[] key ... |
public class class_name {
public Long peek() throws InterruptedException {
lock.lockInterruptibly();
try {
while (queue.size() == 0) {
notEmpty.await();
}
return queue.peek();
} finally {
lock.unlock();
}
} } | public class class_name {
public Long peek() throws InterruptedException {
lock.lockInterruptibly();
try {
while (queue.size() == 0) {
notEmpty.await(); // depends on control dependency: [while], data = [none]
}
return queue.peek();
} finally... |
public class class_name {
private CoverageDataTileMatrixResults getResults(CoverageDataRequest request,
BoundingBox requestProjectedBoundingBox, int overlappingPixels) {
// Try to get the coverage data from the current zoom level
TileMatrix tileMatri... | public class class_name {
private CoverageDataTileMatrixResults getResults(CoverageDataRequest request,
BoundingBox requestProjectedBoundingBox, int overlappingPixels) {
// Try to get the coverage data from the current zoom level
TileMatrix tileMatri... |
public class class_name {
public void pathCompleted (long timestamp)
{
Path oldpath = _path;
_path = null;
oldpath.wasRemoved(this);
if (_observers != null) {
_observers.apply(new CompletedOp(this, oldpath, timestamp));
}
} } | public class class_name {
public void pathCompleted (long timestamp)
{
Path oldpath = _path;
_path = null;
oldpath.wasRemoved(this);
if (_observers != null) {
_observers.apply(new CompletedOp(this, oldpath, timestamp)); // depends on control dependency: [if], data = [non... |
public class class_name {
public static DistributedSchedulingLock getDistributedScheduleByType(EntityManager em, long type) {
requireArgument(em != null, "Entity manager can not be null.");
TypedQuery<DistributedSchedulingLock> query = em.createNamedQuery("DistributedSchedulingLock.GetEntryById", DistributedSch... | public class class_name {
public static DistributedSchedulingLock getDistributedScheduleByType(EntityManager em, long type) {
requireArgument(em != null, "Entity manager can not be null.");
TypedQuery<DistributedSchedulingLock> query = em.createNamedQuery("DistributedSchedulingLock.GetEntryById", DistributedSch... |
public class class_name {
private Tuple toTuple( List<VarDef> combinedVars, TupleRef tupleRef)
{
if( tupleRef.size() != getTupleSize())
{
throw new IllegalStateException( String.valueOf( tupleRef) + " does not match combiner tuple size=" + getTupleSize());
}
Tuple tuple = new Tuple();
... | public class class_name {
private Tuple toTuple( List<VarDef> combinedVars, TupleRef tupleRef)
{
if( tupleRef.size() != getTupleSize())
{
throw new IllegalStateException( String.valueOf( tupleRef) + " does not match combiner tuple size=" + getTupleSize());
}
Tuple tuple = new Tuple();
... |
public class class_name {
public DirContext getInnermostDelegateDirContext() {
final DirContext delegateDirContext = this.getDelegateDirContext();
if (delegateDirContext instanceof DelegatingDirContext) {
return ((DelegatingDirContext)delegateDirContext).getInnermostDelegateDirContext();
... | public class class_name {
public DirContext getInnermostDelegateDirContext() {
final DirContext delegateDirContext = this.getDelegateDirContext();
if (delegateDirContext instanceof DelegatingDirContext) {
return ((DelegatingDirContext)delegateDirContext).getInnermostDelegateDirContext(); /... |
public class class_name {
public static <P extends ParaObject> List<P> readPageFromSharedTable(String appid, Pager pager) {
LinkedList<P> results = new LinkedList<>();
if (StringUtils.isBlank(appid)) {
return results;
}
PageIterable<Item, QueryOutcome> pages = queryGSI(appid, pager);
if (pages != null) {
... | public class class_name {
public static <P extends ParaObject> List<P> readPageFromSharedTable(String appid, Pager pager) {
LinkedList<P> results = new LinkedList<>();
if (StringUtils.isBlank(appid)) {
return results; // depends on control dependency: [if], data = [none]
}
PageIterable<Item, QueryOutcome> p... |
public class class_name {
public void clearMessagesAtSource(IndoubtAction indoubtAction)
throws SIMPControllableNotFoundException, SIMPRuntimeOperationFailedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "clearMessagesAtSource");
assertValidControllab... | public class class_name {
public void clearMessagesAtSource(IndoubtAction indoubtAction)
throws SIMPControllableNotFoundException, SIMPRuntimeOperationFailedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "clearMessagesAtSource");
assertValidControllab... |
public class class_name {
public void marshall(StopAccessLoggingRequest stopAccessLoggingRequest, ProtocolMarshaller protocolMarshaller) {
if (stopAccessLoggingRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(StopAccessLoggingRequest stopAccessLoggingRequest, ProtocolMarshaller protocolMarshaller) {
if (stopAccessLoggingRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public void unloadAllModuleRevision(String scriptModuleId) {
for (ModuleIdentifier revisionId : getAllRevisionIds(scriptModuleId)) {
if (revisionId.getName().equals(scriptModuleId)) {
unloadModule(revisionId);
}
}
} } | public class class_name {
public void unloadAllModuleRevision(String scriptModuleId) {
for (ModuleIdentifier revisionId : getAllRevisionIds(scriptModuleId)) {
if (revisionId.getName().equals(scriptModuleId)) {
unloadModule(revisionId); // depends on control dependency: [if], data = ... |
public class class_name {
@Override
public String compareDatastreamChecksum(String pid,
String dsID,
String versionDate) {
assertInitialized();
try {
MessageContext ctx = context.getMessageContext();... | public class class_name {
@Override
public String compareDatastreamChecksum(String pid,
String dsID,
String versionDate) {
assertInitialized();
try {
MessageContext ctx = context.getMessageContext();... |
public class class_name {
@Override
public JoinableResourceBundle resolveBundleForPath(String path) {
JoinableResourceBundle theBundle = null;
for (Iterator<JoinableResourceBundle> it = bundles.iterator(); it.hasNext();) {
JoinableResourceBundle bundle = it.next();
if (bundle.getId().equals(path) || bundle... | public class class_name {
@Override
public JoinableResourceBundle resolveBundleForPath(String path) {
JoinableResourceBundle theBundle = null;
for (Iterator<JoinableResourceBundle> it = bundles.iterator(); it.hasNext();) {
JoinableResourceBundle bundle = it.next();
if (bundle.getId().equals(path) || bundle... |
public class class_name {
@Override
public void free() {
try {
if(hasCoreConnection()) {
this.getCoreConnection().close();
}
this.fireConnectionFreed();
this.boundThreadId= Thread.currentThread().getId();
} finally {
this.setClosed(true);
// ... | public class class_name {
@Override
public void free() {
try {
if(hasCoreConnection()) {
this.getCoreConnection().close(); // depends on control dependency: [if], data = [none]
}
this.fireConnectionFreed(); // depends on control dependency: [try], data = [none]
t... |
public class class_name {
protected void loadWaterMarks() throws IOException {
// Load source water marks from file
if (file != null && file.exists()) {
try {
loadWaterMarks(file);
} catch (IOException e) {
if (fileOriginal != null && fileOriginal... | public class class_name {
protected void loadWaterMarks() throws IOException {
// Load source water marks from file
if (file != null && file.exists()) {
try {
loadWaterMarks(file); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
... |
public class class_name {
public final EObject entryRuleSarlXLoopFormalParameter() throws RecognitionException {
EObject current = null;
EObject iv_ruleSarlXLoopFormalParameter = null;
try {
// InternalSARL.g:8449:65: (iv_ruleSarlXLoopFormalParameter= ruleSarlXLoopFormalParameter... | public class class_name {
public final EObject entryRuleSarlXLoopFormalParameter() throws RecognitionException {
EObject current = null;
EObject iv_ruleSarlXLoopFormalParameter = null;
try {
// InternalSARL.g:8449:65: (iv_ruleSarlXLoopFormalParameter= ruleSarlXLoopFormalParameter... |
public class class_name {
public void marshall(BackupDetails backupDetails, ProtocolMarshaller protocolMarshaller) {
if (backupDetails == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(backupDetails... | public class class_name {
public void marshall(BackupDetails backupDetails, ProtocolMarshaller protocolMarshaller) {
if (backupDetails == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(backupDetails... |
public class class_name {
protected void updateStyles() {
DayEntryView view = getSkinnable();
Entry<?> entry = getEntry();
Calendar calendar = entry.getCalendar();
if (entry instanceof DraggedEntry) {
calendar = ((DraggedEntry) entry).getOriginalCalendar();
}
... | public class class_name {
protected void updateStyles() {
DayEntryView view = getSkinnable();
Entry<?> entry = getEntry();
Calendar calendar = entry.getCalendar();
if (entry instanceof DraggedEntry) {
calendar = ((DraggedEntry) entry).getOriginalCalendar(); // depends on co... |
public class class_name {
public void marshall(ItemResponse itemResponse, ProtocolMarshaller protocolMarshaller) {
if (itemResponse == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(itemResponse.get... | public class class_name {
public void marshall(ItemResponse itemResponse, ProtocolMarshaller protocolMarshaller) {
if (itemResponse == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(itemResponse.get... |
public class class_name {
@Override
public byte[] toBytes(Object object)
{
if (object == null)
{
return null;
}
BigDecimal b = (BigDecimal) object;
final int scale = b.scale();
final BigInteger unscaled = b.unscaledValue();
final byte[] value... | public class class_name {
@Override
public byte[] toBytes(Object object)
{
if (object == null)
{
return null; // depends on control dependency: [if], data = [none]
}
BigDecimal b = (BigDecimal) object;
final int scale = b.scale();
final BigInteger un... |
public class class_name {
protected void validateGroupClause(SqlSelect select) {
SqlNodeList groupList = select.getGroup();
if (groupList == null) {
return;
}
final String clause = "GROUP BY";
validateNoAggs(aggOrOverFinder, groupList, clause);
final SqlValidatorScope groupScope = getGroupScope(select);... | public class class_name {
protected void validateGroupClause(SqlSelect select) {
SqlNodeList groupList = select.getGroup();
if (groupList == null) {
return; // depends on control dependency: [if], data = [none]
}
final String clause = "GROUP BY";
validateNoAggs(aggOrOverFinder, groupList, clause);
final... |
public class class_name {
public static File zip(File zipFile, Charset charset, boolean withSrcDir, File... srcFiles) throws UtilException {
validateFiles(zipFile, srcFiles);
try (ZipOutputStream out = getZipOutputStream(zipFile, charset)) {
String srcRootDir;
for (File srcFile : srcFiles) {
if(nu... | public class class_name {
public static File zip(File zipFile, Charset charset, boolean withSrcDir, File... srcFiles) throws UtilException {
validateFiles(zipFile, srcFiles);
try (ZipOutputStream out = getZipOutputStream(zipFile, charset)) {
String srcRootDir;
for (File srcFile : srcFiles) {
if(nu... |
public class class_name {
public Result<FindPolysAroundResult> findPolysAroundCircle(long startRef, float[] centerPos, float radius,
QueryFilter filter) {
// Validate input
if (!m_nav.isValidPolyRef(startRef) || Objects.isNull(centerPos) || !vIsFinite(centerPos) || radius < 0
... | public class class_name {
public Result<FindPolysAroundResult> findPolysAroundCircle(long startRef, float[] centerPos, float radius,
QueryFilter filter) {
// Validate input
if (!m_nav.isValidPolyRef(startRef) || Objects.isNull(centerPos) || !vIsFinite(centerPos) || radius < 0
... |
public class class_name {
@Override
public final void setTimeToLive(long value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTimeToLive", Long.valueOf(value));
if ((value >= MfpConstants.MIN_TIME_TO_LIVE) && (value <= MfpConstants.MAX_TIME... | public class class_name {
@Override
public final void setTimeToLive(long value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTimeToLive", Long.valueOf(value));
if ((value >= MfpConstants.MIN_TIME_TO_LIVE) && (value <= MfpConstants.MAX_TIME... |
public class class_name {
@Action(name = "PowerShell Script Action",
outputs = {
@Output(RETURN_CODE),
@Output(RETURN_RESULT),
@Output(STDERR),
@Output(SCRIPT_EXIT_CODE),
@Output(EXCEPTION)
},
... | public class class_name {
@Action(name = "PowerShell Script Action",
outputs = {
@Output(RETURN_CODE),
@Output(RETURN_RESULT),
@Output(STDERR),
@Output(SCRIPT_EXIT_CODE),
@Output(EXCEPTION)
},
... |
public class class_name {
public Control getControlInstance(Control ctl) {
if (ctl.getID().equals(PasswordPolicyControl.OID)) {
return new PasswordPolicyResponseControl(ctl.getEncodedValue());
}
return null;
} } | public class class_name {
public Control getControlInstance(Control ctl) {
if (ctl.getID().equals(PasswordPolicyControl.OID)) {
return new PasswordPolicyResponseControl(ctl.getEncodedValue()); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public static Method getMethod(Class<?> type, String methodName, Class<?>... parameterTypes) {
try {
return type.getDeclaredMethod(methodName, parameterTypes);
}
catch (NoSuchMethodException cause) {
if (type.getSuperclass() != null) {
return getMethod(type.g... | public class class_name {
public static Method getMethod(Class<?> type, String methodName, Class<?>... parameterTypes) {
try {
return type.getDeclaredMethod(methodName, parameterTypes); // depends on control dependency: [try], data = [none]
}
catch (NoSuchMethodException cause) {
if (type.get... |
public class class_name {
private void doAttribute(Node receivedElement, Node receivedAttribute, Node sourceElement,
XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) {
if (receivedAttribute.getNodeName().startsWith(XMLConstants.XMLNS_ATTRIBUTE))... | public class class_name {
private void doAttribute(Node receivedElement, Node receivedAttribute, Node sourceElement,
XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) {
if (receivedAttribute.getNodeName().startsWith(XMLConstants.XMLNS_ATTRIBUTE))... |
public class class_name {
public static InputStream getResourceAsStream(String resourcePath, Object source) throws FileNotFoundException {
// Try the current classloader
InputStream is = source.getClass().getResourceAsStream(resourcePath);
// Weblogic 10 likes this one better..
if (null == is) {
ClassLoad... | public class class_name {
public static InputStream getResourceAsStream(String resourcePath, Object source) throws FileNotFoundException {
// Try the current classloader
InputStream is = source.getClass().getResourceAsStream(resourcePath);
// Weblogic 10 likes this one better..
if (null == is) {
ClassLoad... |
public class class_name {
@Nullable
private static DimFilter toLeafFilter(
final PlannerContext plannerContext,
final DruidQuerySignature querySignature,
final RexNode rexNode
)
{
if (rexNode.isAlwaysTrue()) {
return Filtration.matchEverything();
} else if (rexNode.isAlwaysFalse()... | public class class_name {
@Nullable
private static DimFilter toLeafFilter(
final PlannerContext plannerContext,
final DruidQuerySignature querySignature,
final RexNode rexNode
)
{
if (rexNode.isAlwaysTrue()) {
return Filtration.matchEverything(); // depends on control dependency: [if]... |
public class class_name {
@SuppressWarnings("unchecked")
public boolean result(final Object iRecord) {
final ODocument record = (ODocument) iRecord;
boolean recordUpdated = false;
parameters.reset();
// BIND VALUES TO UPDATE
if (!setEntries.isEmpty()) {
OSQLHelper.bindParameter... | public class class_name {
@SuppressWarnings("unchecked")
public boolean result(final Object iRecord) {
final ODocument record = (ODocument) iRecord;
boolean recordUpdated = false;
parameters.reset();
// BIND VALUES TO UPDATE
if (!setEntries.isEmpty()) {
OSQLHelper.bindParameter... |
public class class_name {
@Override
public Response toResponse(Exception e) {
String id = System.nanoTime() + "";
LOGGER.error(id, e);
if (e instanceof RobeRuntimeException) {
return ((RobeRuntimeException) e).getResponse(id);
} else if (e instanceof ConstraintViolatio... | public class class_name {
@Override
public Response toResponse(Exception e) {
String id = System.nanoTime() + "";
LOGGER.error(id, e);
if (e instanceof RobeRuntimeException) {
return ((RobeRuntimeException) e).getResponse(id);
} else if (e instanceof ConstraintViolatio... |
public class class_name {
@Override
public void serviceRequest(final Request request) {
try {
super.serviceRequest(request);
} catch (Escape escape) {
throw escape;
} catch (Exception e) {
LOG.error("Error processing content request in action phase. " + e.getMessage(), e);
handleError();
}
} } | public class class_name {
@Override
public void serviceRequest(final Request request) {
try {
super.serviceRequest(request); // depends on control dependency: [try], data = [none]
} catch (Escape escape) {
throw escape;
} catch (Exception e) { // depends on control dependency: [catch], data = [none]
LO... |
public class class_name {
void update(JobStatus status) {
this.status = status;
try {
this.counters = running.getCounters();
this.completed = running.isComplete();
this.successful = running.isSuccessful();
this.mapProgress = running.mapProgress();
this.reduceProgress = running.red... | public class class_name {
void update(JobStatus status) {
this.status = status;
try {
this.counters = running.getCounters(); // depends on control dependency: [try], data = [none]
this.completed = running.isComplete(); // depends on control dependency: [try], data = [none]
this.successful = r... |
public class class_name {
public boolean shouldBeProcessed(final ProfileSettings profileSettings) {
if (profileSettings != null) {
String propertyName = GetterUtilities.getFullQualifiedFieldName(baseType, method);
Boolean shouldBeProcessed = profileSettings.getPropertyValue(propertyNa... | public class class_name {
public boolean shouldBeProcessed(final ProfileSettings profileSettings) {
if (profileSettings != null) {
String propertyName = GetterUtilities.getFullQualifiedFieldName(baseType, method);
Boolean shouldBeProcessed = profileSettings.getPropertyValue(propertyNa... |
public class class_name {
public void setChapterNumber(int number) {
numbers.set(numbers.size() - 1, Integer.valueOf(number));
Object s;
for (Iterator i = iterator(); i.hasNext(); ) {
s = i.next();
if (s instanceof Section) {
((Section)s).setChapterNumber(number);
}
}
}... | public class class_name {
public void setChapterNumber(int number) {
numbers.set(numbers.size() - 1, Integer.valueOf(number));
Object s;
for (Iterator i = iterator(); i.hasNext(); ) {
s = i.next(); // depends on control dependency: [for], data = [i]
if (s instanceof Section) {
((Secti... |
public class class_name {
public SimpleJob setSummarizer(Class<? extends Reducer<Key, Value, Key, Value>> clazz,
boolean combine,
int cache) {
super.setReducerClass(clazz);
reducer = true;
if (combine) {
setCombin... | public class class_name {
public SimpleJob setSummarizer(Class<? extends Reducer<Key, Value, Key, Value>> clazz,
boolean combine,
int cache) {
super.setReducerClass(clazz);
reducer = true;
if (combine) {
setCombin... |
public class class_name {
public int newField(
final String owner,
final String name,
final String desc) {
Item result = get(key3.set(FIELD, owner, name, desc));
if (result == null) {
put122(FIELD, newClass(owner), newNameType(name, desc));
re... | public class class_name {
public int newField(
final String owner,
final String name,
final String desc) {
Item result = get(key3.set(FIELD, owner, name, desc));
if (result == null) {
put122(FIELD, newClass(owner), newNameType(name, desc)); // depends on ... |
public class class_name {
@FFDCIgnore(IllegalArgumentException.class)
private String evaluateCallerBaseDn(boolean immediateOnly) {
try {
return elHelper.processString("callerBaseDn", this.idStoreDefinition.callerBaseDn(), immediateOnly);
} catch (IllegalArgumentException e) {
... | public class class_name {
@FFDCIgnore(IllegalArgumentException.class)
private String evaluateCallerBaseDn(boolean immediateOnly) {
try {
return elHelper.processString("callerBaseDn", this.idStoreDefinition.callerBaseDn(), immediateOnly); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public CreateAssociationBatchResult withFailed(FailedCreateAssociation... failed) {
if (this.failed == null) {
setFailed(new com.amazonaws.internal.SdkInternalList<FailedCreateAssociation>(failed.length));
}
for (FailedCreateAssociation ele : failed) {
... | public class class_name {
public CreateAssociationBatchResult withFailed(FailedCreateAssociation... failed) {
if (this.failed == null) {
setFailed(new com.amazonaws.internal.SdkInternalList<FailedCreateAssociation>(failed.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Pure
public UnitVectorProperty firstAxisProperty() {
if (this.raxis == null) {
this.raxis = new UnitVectorProperty(this, MathFXAttributeNames.FIRST_AXIS, getGeomFactory());
}
return this.raxis;
} } | public class class_name {
@Pure
public UnitVectorProperty firstAxisProperty() {
if (this.raxis == null) {
this.raxis = new UnitVectorProperty(this, MathFXAttributeNames.FIRST_AXIS, getGeomFactory()); // depends on control dependency: [if], data = [none]
}
return this.raxis;
} } |
public class class_name {
private boolean hasAbstractPackagePrivateSuperClassWithImplementation(Class<?> clazz, BridgeMethod bridgeMethod) {
Class<?> superClass = clazz.getSuperclass();
while (superClass != null) {
if (Modifier.isAbstract(superClass.getModifiers()) && Reflections.isPackageP... | public class class_name {
private boolean hasAbstractPackagePrivateSuperClassWithImplementation(Class<?> clazz, BridgeMethod bridgeMethod) {
Class<?> superClass = clazz.getSuperclass();
while (superClass != null) {
if (Modifier.isAbstract(superClass.getModifiers()) && Reflections.isPackageP... |
public class class_name {
public static Properties extractSubset(final Properties properties, final String prefix) {
final Properties subset = new Properties();
if (prefix == null || prefix.length() == 0) {
return subset;
}
final String prefixToMatch = prefix.charAt(prefix... | public class class_name {
public static Properties extractSubset(final Properties properties, final String prefix) {
final Properties subset = new Properties();
if (prefix == null || prefix.length() == 0) {
return subset; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static boolean evaluate(final String expression) {
final Deque<String> operators = new ArrayDeque<>();
final Deque<String> values = new ArrayDeque<>();
final boolean result;
char currentCharacter;
int currentCharacterIndex = 0;
try {
... | public class class_name {
public static boolean evaluate(final String expression) {
final Deque<String> operators = new ArrayDeque<>();
final Deque<String> values = new ArrayDeque<>();
final boolean result;
char currentCharacter;
int currentCharacterIndex = 0;
try {
... |
public class class_name {
public String format(){
final StringBuilder sb = new StringBuilder();
if(betweenMs > 0){
long day = betweenMs / DateUnit.DAY.getMillis();
long hour = betweenMs / DateUnit.HOUR.getMillis() - day * 24;
long minute = betweenMs / DateUnit.MINUTE.getMillis() - day * 24 * 60 - hou... | public class class_name {
public String format(){
final StringBuilder sb = new StringBuilder();
if(betweenMs > 0){
long day = betweenMs / DateUnit.DAY.getMillis();
long hour = betweenMs / DateUnit.HOUR.getMillis() - day * 24;
long minute = betweenMs / DateUnit.MINUTE.getMillis() - day * 24 * 60 - hou... |
public class class_name {
private Map<String, CmsXmlContentProperty> removeHiddenProperties(Map<String, CmsXmlContentProperty> propConfig) {
Map<String, CmsXmlContentProperty> result = new LinkedHashMap<String, CmsXmlContentProperty>();
for (Map.Entry<String, CmsXmlContentProperty> entry : propConfig.... | public class class_name {
private Map<String, CmsXmlContentProperty> removeHiddenProperties(Map<String, CmsXmlContentProperty> propConfig) {
Map<String, CmsXmlContentProperty> result = new LinkedHashMap<String, CmsXmlContentProperty>();
for (Map.Entry<String, CmsXmlContentProperty> entry : propConfig.... |
public class class_name {
public JmxMessage attribute(String name, Object value, Class<?> valueType) {
if (mbeanInvocation == null) {
throw new CitrusRuntimeException("Invalid access to attribute for JMX message");
}
ManagedBeanInvocation.Attribute attribute = new ManagedBeanInvoca... | public class class_name {
public JmxMessage attribute(String name, Object value, Class<?> valueType) {
if (mbeanInvocation == null) {
throw new CitrusRuntimeException("Invalid access to attribute for JMX message");
}
ManagedBeanInvocation.Attribute attribute = new ManagedBeanInvoca... |
public class class_name {
@Override
public void renderView(FacesContext context, UIViewRoot view) throws IOException
{
if (!view.isRendered())
{
return;
}
// log request
if (log.isLoggable(Level.FINE))
{
log.fine("Rendering View: " + view... | public class class_name {
@Override
public void renderView(FacesContext context, UIViewRoot view) throws IOException
{
if (!view.isRendered())
{
return;
}
// log request
if (log.isLoggable(Level.FINE))
{
log.fine("Rendering View: " + view... |
public class class_name {
private void expungeStaleEntries() {
for (Object x; (x = queue.poll()) != null;) {
synchronized (queue) {
@SuppressWarnings("unchecked")
Entry<K, V> e = (Entry<K, V>) x;
int i = indexFor(e.hash, table.length);
Entry<K, V> prev = table[i];
Entry<K, V> p = prev;
while (p != n... | public class class_name {
private void expungeStaleEntries() {
for (Object x; (x = queue.poll()) != null;) {
synchronized (queue) { // depends on control dependency: [for], data = [none]
@SuppressWarnings("unchecked")
Entry<K, V> e = (Entry<K, V>) x;
int i = indexFor(e.hash, table.length);
Entry<K, V> p... |
public class class_name {
public final void transformTables(final Element root) {
final Collection<Element> tables; // Tables to fix
checkNotNull(root, "Received a null pointer as root element");
// Table rows with <th> tags in a <tbody>
tables = root.select("table");
for (fin... | public class class_name {
public final void transformTables(final Element root) {
final Collection<Element> tables; // Tables to fix
checkNotNull(root, "Received a null pointer as root element");
// Table rows with <th> tags in a <tbody>
tables = root.select("table");
for (fin... |
public class class_name {
private DateTimeColumn fillWith(int count, Iterator<LocalDateTime> iterator, Consumer<LocalDateTime> acceptor) {
for (int r = 0; r < count; r++) {
if (!iterator.hasNext()) {
break;
}
acceptor.accept(iterator.next());
}
... | public class class_name {
private DateTimeColumn fillWith(int count, Iterator<LocalDateTime> iterator, Consumer<LocalDateTime> acceptor) {
for (int r = 0; r < count; r++) {
if (!iterator.hasNext()) {
break;
}
acceptor.accept(iterator.next()); // depends on co... |
public class class_name {
public static int versionCompare(String firstVersionString, String secondVersionString) {
String[] firstVersion = parseVersionString(firstVersionString);
String[] secondVersion = parseVersionString(secondVersionString);
int i = 0;
// set index to first non-equ... | public class class_name {
public static int versionCompare(String firstVersionString, String secondVersionString) {
String[] firstVersion = parseVersionString(firstVersionString);
String[] secondVersion = parseVersionString(secondVersionString);
int i = 0;
// set index to first non-equ... |
public class class_name {
static void resetOCSPResponseCacherServerURL(String ocspCacheServerUrl)
{
if (ocspCacheServerUrl == null || SF_OCSP_RESPONSE_CACHE_SERVER_RETRY_URL_PATTERN != null)
{
return;
}
SF_OCSP_RESPONSE_CACHE_SERVER_URL = ocspCacheServerUrl;
if (!SF_OCSP_RESPONSE_CACHE_SERV... | public class class_name {
static void resetOCSPResponseCacherServerURL(String ocspCacheServerUrl)
{
if (ocspCacheServerUrl == null || SF_OCSP_RESPONSE_CACHE_SERVER_RETRY_URL_PATTERN != null)
{
return; // depends on control dependency: [if], data = [none]
}
SF_OCSP_RESPONSE_CACHE_SERVER_URL = oc... |
public class class_name {
private static <T> T withRequestLocale(Lang lang, Supplier<T> code) {
try {
LocaleContextHolder.setLocale(lang != null ? lang.toLocale() : null);
} catch (Exception e) {
// Just continue (Maybe there is no context or some internal error in LocaleContextHolder).
// Sy... | public class class_name {
private static <T> T withRequestLocale(Lang lang, Supplier<T> code) {
try {
LocaleContextHolder.setLocale(lang != null ? lang.toLocale() : null); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
// Just continue (Maybe there is no context or s... |
public class class_name {
public BoundingBox expandCoordinates(double maxProjectionLongitude) {
BoundingBox expanded = new BoundingBox(this);
double minLongitude = getMinLongitude();
double maxLongitude = getMaxLongitude();
if (minLongitude > maxLongitude) {
int worldWraps = 1 + (int) ((minLongitude - ma... | public class class_name {
public BoundingBox expandCoordinates(double maxProjectionLongitude) {
BoundingBox expanded = new BoundingBox(this);
double minLongitude = getMinLongitude();
double maxLongitude = getMaxLongitude();
if (minLongitude > maxLongitude) {
int worldWraps = 1 + (int) ((minLongitude - ma... |
public class class_name {
public static Set<InjectionPoint> forStaticMethodsAndFields(TypeLiteral<?> type) {
Errors errors = new Errors();
Set<InjectionPoint> result;
if (type.getRawType().isInterface()) {
errors.staticInjectionOnInterface(type.getRawType());
result = null;
} else {
... | public class class_name {
public static Set<InjectionPoint> forStaticMethodsAndFields(TypeLiteral<?> type) {
Errors errors = new Errors();
Set<InjectionPoint> result;
if (type.getRawType().isInterface()) {
errors.staticInjectionOnInterface(type.getRawType()); // depends on control dependency: [if],... |
public class class_name {
public String getSelectedResourceName() {
String resParam = getJsp().getRequest().getParameter(getListId() + LIST_RACTION_SEL);
if (CmsStringUtil.isNotEmpty(resParam)) {
CmsListItem item = getList().getItem(resParam);
return (String)item.get(LIST_COLUM... | public class class_name {
public String getSelectedResourceName() {
String resParam = getJsp().getRequest().getParameter(getListId() + LIST_RACTION_SEL);
if (CmsStringUtil.isNotEmpty(resParam)) {
CmsListItem item = getList().getItem(resParam);
return (String)item.get(LIST_COLUM... |
public class class_name {
private void render(SVG.Image obj)
{
debug("Image render");
if (obj.width == null || obj.width.isZero() ||
obj.height == null || obj.height.isZero())
return;
if (obj.href == null)
return;
// "If attribute 'preserveAspectRati... | public class class_name {
private void render(SVG.Image obj)
{
debug("Image render");
if (obj.width == null || obj.width.isZero() ||
obj.height == null || obj.height.isZero())
return;
if (obj.href == null)
return;
// "If attribute 'preserveAspectRati... |
public class class_name {
public Long setnx(String key, Object value, int expiration) throws Exception {
Long result = 0L;
Jedis jedis = null;
try {
jedis = this.jedisPool.getResource();
result = jedis.setnx(SafeEncoder.encode(key), serialize(value));
jedis.e... | public class class_name {
public Long setnx(String key, Object value, int expiration) throws Exception {
Long result = 0L;
Jedis jedis = null;
try {
jedis = this.jedisPool.getResource();
result = jedis.setnx(SafeEncoder.encode(key), serialize(value));
jedis.e... |
public class class_name {
public java.util.List<KeyListEntry> getKeys() {
if (keys == null) {
keys = new com.amazonaws.internal.SdkInternalList<KeyListEntry>();
}
return keys;
} } | public class class_name {
public java.util.List<KeyListEntry> getKeys() {
if (keys == null) {
keys = new com.amazonaws.internal.SdkInternalList<KeyListEntry>(); // depends on control dependency: [if], data = [none]
}
return keys;
} } |
public class class_name {
private final void fireEvents()
throws IOException, SAXException, XMLStreamException
{
// First we are in prolog:
int type;
/* Need to enable lazy parsing, to get DTD start events before
* its content events. Plus, can skip more efficiently too.
... | public class class_name {
private final void fireEvents()
throws IOException, SAXException, XMLStreamException
{
// First we are in prolog:
int type;
/* Need to enable lazy parsing, to get DTD start events before
* its content events. Plus, can skip more efficiently too.
... |
public class class_name {
private void addWord(String word, boolean containsNewLine) {
currentSentence.add(word);
if (containsNewLine) {
sentences.add(getSentenceFromListCheckingNewLines(currentSentence));
currentSentence.clear();
}
} } | public class class_name {
private void addWord(String word, boolean containsNewLine) {
currentSentence.add(word);
if (containsNewLine) {
sentences.add(getSentenceFromListCheckingNewLines(currentSentence)); // depends on control dependency: [if], data = [none]
currentSentence.cle... |
public class class_name {
public static ScreenParent makeNewScreen(String componentType, ScreenLoc itsLocation, RecordOwnerParent screenParent, int iDisplayFieldDesc, Map<String, Object> properties, Rec mainRecord, boolean initScreen)
{
String screenClass = null;
if (!componentType.contains("."))
... | public class class_name {
public static ScreenParent makeNewScreen(String componentType, ScreenLoc itsLocation, RecordOwnerParent screenParent, int iDisplayFieldDesc, Map<String, Object> properties, Rec mainRecord, boolean initScreen)
{
String screenClass = null;
if (!componentType.contains("."))
... |
public class class_name {
public void alias(DMatrixRMaj variable , String name ) {
if( isReserved(name))
throw new RuntimeException("Reserved word or contains a reserved character");
VariableMatrix old = (VariableMatrix)variables.get(name);
if( old == null ) {
variables.... | public class class_name {
public void alias(DMatrixRMaj variable , String name ) {
if( isReserved(name))
throw new RuntimeException("Reserved word or contains a reserved character");
VariableMatrix old = (VariableMatrix)variables.get(name);
if( old == null ) {
variables.... |
public class class_name {
private static byte[] byteCopy(byte[] source, int offset,
int count, byte[] target) {
for (int i = offset, j = 0; i < offset + count; i++, j++) {
target[j] = source[i];
}
return target;
} } | public class class_name {
private static byte[] byteCopy(byte[] source, int offset,
int count, byte[] target) {
for (int i = offset, j = 0; i < offset + count; i++, j++) {
target[j] = source[i]; // depends on control dependency: [for], data = [i]
}
return target;
} } |
public class class_name {
private static int mergeMaps(Map<String, Integer> map, Map<String, Integer> other)
{
int deltaSize = 0;
for (Map.Entry<String, Integer> entry : other.entrySet()) {
if (!map.containsKey(entry.getKey())) {
deltaSize += entry.getKey().getBytes().le... | public class class_name {
private static int mergeMaps(Map<String, Integer> map, Map<String, Integer> other)
{
int deltaSize = 0;
for (Map.Entry<String, Integer> entry : other.entrySet()) {
if (!map.containsKey(entry.getKey())) {
deltaSize += entry.getKey().getBytes().le... |
public class class_name {
public String getPercentageResult() {
int total = 0;
for (Status status : Status.values()) {
total += this.statusCounter.getValueFor(status);
}
return Util.formatAsPercentage(this.statusCounter.getValueFor(Status.PASSED), total);
} } | public class class_name {
public String getPercentageResult() {
int total = 0;
for (Status status : Status.values()) {
total += this.statusCounter.getValueFor(status); // depends on control dependency: [for], data = [status]
}
return Util.formatAsPercentage(this.statusCounte... |
public class class_name {
public static base_responses clear(nitro_service client, lbpersistentsessions resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbpersistentsessions clearresources[] = new lbpersistentsessions[resources.length];
for (int i... | public class class_name {
public static base_responses clear(nitro_service client, lbpersistentsessions resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbpersistentsessions clearresources[] = new lbpersistentsessions[resources.length];
for (int i... |
public class class_name {
public String mkString(NumberFormat formatter, String delimiter) {
StringBuilder sb = new StringBuilder();
VectorIterator it = iterator();
while (it.hasNext()) {
double x = it.next();
int i = it.index();
sb.append(formatter.format(x... | public class class_name {
public String mkString(NumberFormat formatter, String delimiter) {
StringBuilder sb = new StringBuilder();
VectorIterator it = iterator();
while (it.hasNext()) {
double x = it.next();
int i = it.index();
sb.append(formatter.format(x... |
public class class_name {
public static <E> List<E> pageQuery(Dialect dialect, Executor executor, MappedStatement ms, Object parameter,
RowBounds rowBounds, ResultHandler resultHandler,
BoundSql boundSql, CacheKey cacheKey) throws SQLException {
... | public class class_name {
public static <E> List<E> pageQuery(Dialect dialect, Executor executor, MappedStatement ms, Object parameter,
RowBounds rowBounds, ResultHandler resultHandler,
BoundSql boundSql, CacheKey cacheKey) throws SQLException {
... |
public class class_name {
private void addDerivedTypes() {
Iterator<DefinedType> typeIter = schema.getTypes().iterator();
while (typeIter.hasNext()) {
DefinedType type = typeIter.next();
// debug (type.getName()+":"+type.getDomain(true).toString());
// if ((type.getDomain() instanceof SimpleType)==false &... | public class class_name {
private void addDerivedTypes() {
Iterator<DefinedType> typeIter = schema.getTypes().iterator();
while (typeIter.hasNext()) {
DefinedType type = typeIter.next();
// debug (type.getName()+":"+type.getDomain(true).toString());
// if ((type.getDomain() instanceof SimpleType)==false &... |
public class class_name {
public static void instrumentClass(Class<?> c, ConstructorCallback<?> sampler)
throws UnmodifiableClassException {
// IMPORTANT: Don't forget that other threads may be accessing this
// class while this code is running. Specifically, the class may be
// executed directly af... | public class class_name {
public static void instrumentClass(Class<?> c, ConstructorCallback<?> sampler)
throws UnmodifiableClassException {
// IMPORTANT: Don't forget that other threads may be accessing this
// class while this code is running. Specifically, the class may be
// executed directly af... |
public class class_name {
public static QName valueOf(String s) {
if ((s == null) || s.equals("")) {
throw new IllegalArgumentException("invalid QName literal");
}
if (s.charAt(0) == '{') {
int i = s.indexOf('}');
if (i == -1) {
throw new I... | public class class_name {
public static QName valueOf(String s) {
if ((s == null) || s.equals("")) {
throw new IllegalArgumentException("invalid QName literal");
}
if (s.charAt(0) == '{') {
int i = s.indexOf('}');
if (i == -1) {
throw new I... |
public class class_name {
public void marshall(DeleteLoggingConfigurationRequest deleteLoggingConfigurationRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteLoggingConfigurationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(DeleteLoggingConfigurationRequest deleteLoggingConfigurationRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteLoggingConfigurationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.