code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private void refresh(final ClientMapInfo mapInfo) {
actualRefresh(mapInfo);
if (state == State.INITIALIZING) {
// only change the initial bounds the first time around
Bbox initialBounds = new Bbox(mapInfo.getInitialBounds());
mapView.applyBounds(initialBounds, MapView.ZoomOption.... | public class class_name {
private void refresh(final ClientMapInfo mapInfo) {
actualRefresh(mapInfo);
if (state == State.INITIALIZING) {
// only change the initial bounds the first time around
Bbox initialBounds = new Bbox(mapInfo.getInitialBounds());
mapView.applyBounds(initialBounds, MapView.ZoomOption.... |
public class class_name {
public static void registerOsgiScriptEngineManager(BundleContext context) {
OSGiScriptEngineManager scriptEngineManager = new OSGiScriptEngineManager(context);
ScriptEngineManagerContext.setScriptEngineManager(scriptEngineManager);
if (LOGGER.isFinestEnabled()) {
... | public class class_name {
public static void registerOsgiScriptEngineManager(BundleContext context) {
OSGiScriptEngineManager scriptEngineManager = new OSGiScriptEngineManager(context);
ScriptEngineManagerContext.setScriptEngineManager(scriptEngineManager);
if (LOGGER.isFinestEnabled()) {
... |
public class class_name {
public Evaluation evaluate(String path, DataSetLoader loader){
JavaRDD<String> data;
try {
data = SparkUtils.listPaths(sc, path);
} catch (IOException e){
throw new RuntimeException("Error listing files for evaluation of files at path: " + path,... | public class class_name {
public Evaluation evaluate(String path, DataSetLoader loader){
JavaRDD<String> data;
try {
data = SparkUtils.listPaths(sc, path); // depends on control dependency: [try], data = [none]
} catch (IOException e){
throw new RuntimeException("Error l... |
public class class_name {
public RequestedGlobalProperties filterByNodesConstantSet(OptimizerNode node, int input) {
// check if partitioning survives
if (this.ordering != null) {
for (int col : this.ordering.getInvolvedIndexes()) {
if (!node.isFieldConstant(input, col)) {
return null;
}
}
} e... | public class class_name {
public RequestedGlobalProperties filterByNodesConstantSet(OptimizerNode node, int input) {
// check if partitioning survives
if (this.ordering != null) {
for (int col : this.ordering.getInvolvedIndexes()) {
if (!node.isFieldConstant(input, col)) {
return null; // depends on co... |
public class class_name {
@Override
public void removeByG_A(long groupId, boolean active) {
for (CommercePaymentMethodGroupRel commercePaymentMethodGroupRel : findByG_A(
groupId, active, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commercePaymentMethodGroupRel);
}
} } | public class class_name {
@Override
public void removeByG_A(long groupId, boolean active) {
for (CommercePaymentMethodGroupRel commercePaymentMethodGroupRel : findByG_A(
groupId, active, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(commercePaymentMethodGroupRel); // depends on control dependency: [f... |
public class class_name {
private String sortedEquivalence(final Equivalence equivalence) {
final Formula right;
final Formula left;
if (this.comparator.compare(equivalence.left(), equivalence.right()) <= 0) {
right = equivalence.right();
left = equivalence.left();
... | public class class_name {
private String sortedEquivalence(final Equivalence equivalence) {
final Formula right;
final Formula left;
if (this.comparator.compare(equivalence.left(), equivalence.right()) <= 0) {
right = equivalence.right(); // depends on control dependency: [if], data... |
public class class_name {
@Override
public void removeAdapterItemAt(int index) {
if(index == getSelectedItemPosition()) {
Calendar date = getSelectedDate();
selectTemporary(new DateItem(formatDate(date), date, NO_ID));
}
super.removeAdapterItemAt(index);
} } | public class class_name {
@Override
public void removeAdapterItemAt(int index) {
if(index == getSelectedItemPosition()) {
Calendar date = getSelectedDate();
selectTemporary(new DateItem(formatDate(date), date, NO_ID)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public Drawer build() {
if (mUsed) {
throw new RuntimeException("you must not reuse a DrawerBuilder builder");
}
if (mActivity == null) {
throw new RuntimeException("please pass an activity");
}
//set that this builder was used.... | public class class_name {
public Drawer build() {
if (mUsed) {
throw new RuntimeException("you must not reuse a DrawerBuilder builder");
}
if (mActivity == null) {
throw new RuntimeException("please pass an activity");
}
//set that this builder was used.... |
public class class_name {
public ListCertificatesRequest withCertificateStatuses(String... certificateStatuses) {
if (this.certificateStatuses == null) {
setCertificateStatuses(new java.util.ArrayList<String>(certificateStatuses.length));
}
for (String ele : certificateStatuses) {
... | public class class_name {
public ListCertificatesRequest withCertificateStatuses(String... certificateStatuses) {
if (this.certificateStatuses == null) {
setCertificateStatuses(new java.util.ArrayList<String>(certificateStatuses.length)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static final StreamConfiguration getUpdateStreamConfig(final UpdateStreamRequest updateStreamRequest) {
ScalingPolicy scalingPolicy;
if (updateStreamRequest.getScalingPolicy().getType() == ScalingConfig.TypeEnum.FIXED_NUM_SEGMENTS) {
scalingPolicy = ScalingP... | public class class_name {
public static final StreamConfiguration getUpdateStreamConfig(final UpdateStreamRequest updateStreamRequest) {
ScalingPolicy scalingPolicy;
if (updateStreamRequest.getScalingPolicy().getType() == ScalingConfig.TypeEnum.FIXED_NUM_SEGMENTS) {
scalingPolicy = ScalingP... |
public class class_name {
void renderFormContent() {
initLocaleSelect();
setNativeResourceInfo(m_sitePath, m_locale);
m_contentInfoHeader = new CmsInfoHeader(m_title, null, m_sitePath, m_locale, m_iconClasses);
m_basePanel.add(m_contentInfoHeader);
SimplePanel content = n... | public class class_name {
void renderFormContent() {
initLocaleSelect();
setNativeResourceInfo(m_sitePath, m_locale);
m_contentInfoHeader = new CmsInfoHeader(m_title, null, m_sitePath, m_locale, m_iconClasses);
m_basePanel.add(m_contentInfoHeader);
SimplePanel content = n... |
public class class_name {
public String writeStringField() {
final List<String> strs = Lists.newArrayList();
if (sub_expressions != null) {
for (ExpressionTree sub : sub_expressions) {
strs.add(sub.toString());
}
}
if (sub_metric_queries != null) {
final String sub_metrics = ... | public class class_name {
public String writeStringField() {
final List<String> strs = Lists.newArrayList();
if (sub_expressions != null) {
for (ExpressionTree sub : sub_expressions) {
strs.add(sub.toString()); // depends on control dependency: [for], data = [sub]
}
}
if (sub_metri... |
public class class_name {
protected void run() {
Scheduler.get().scheduleFixedDelay(new RepeatingCommand() {
public boolean execute() {
if (CmsBroadcastTimer.shouldKeepRunning()) {
getBroadcast();
return true;
}
... | public class class_name {
protected void run() {
Scheduler.get().scheduleFixedDelay(new RepeatingCommand() {
public boolean execute() {
if (CmsBroadcastTimer.shouldKeepRunning()) {
getBroadcast(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected static String getParameter(HttpServletRequest request, String[] aliases) {
final String sourceMethod = "getParameter"; //$NON-NLS-1$
boolean isTraceLogging = log.isLoggable(Level.FINER);
if (isTraceLogging) {
log.entering(sourceClass, sourceMethod, new Object[]{request.... | public class class_name {
protected static String getParameter(HttpServletRequest request, String[] aliases) {
final String sourceMethod = "getParameter"; //$NON-NLS-1$
boolean isTraceLogging = log.isLoggable(Level.FINER);
if (isTraceLogging) {
log.entering(sourceClass, sourceMethod, new Object[]{request.... |
public class class_name {
protected AfterInvocationManager afterInvocationManager() {
if (prePostEnabled()) {
AfterInvocationProviderManager invocationProviderManager = new AfterInvocationProviderManager();
ExpressionBasedPostInvocationAdvice postAdvice = new ExpressionBasedPostInvocationAdvice(
getExpres... | public class class_name {
protected AfterInvocationManager afterInvocationManager() {
if (prePostEnabled()) {
AfterInvocationProviderManager invocationProviderManager = new AfterInvocationProviderManager();
ExpressionBasedPostInvocationAdvice postAdvice = new ExpressionBasedPostInvocationAdvice(
getExpres... |
public class class_name {
public static int resolveRtlGravity(int gravity) {
if (0 != (gravity & ViewBaseCommon.RIGHT)) {
gravity &= ~ViewBaseCommon.RIGHT;
gravity |= ViewBaseCommon.LEFT;
} else if (0 != (gravity & ViewBaseCommon.LEFT)) {
gravity &= ~ViewBaseCommon.L... | public class class_name {
public static int resolveRtlGravity(int gravity) {
if (0 != (gravity & ViewBaseCommon.RIGHT)) {
gravity &= ~ViewBaseCommon.RIGHT; // depends on control dependency: [if], data = [none]
gravity |= ViewBaseCommon.LEFT; // depends on control dependency: [if], data ... |
public class class_name {
@Override
public ConciseSet difference(IntSet other)
{
if (other == this) {
return empty();
}
if (other == null || other.isEmpty()) {
return clone();
}
return performOperation(convert(other), Operator.ANDNOT);
} } | public class class_name {
@Override
public ConciseSet difference(IntSet other)
{
if (other == this) {
return empty();
// depends on control dependency: [if], data = [none]
}
if (other == null || other.isEmpty()) {
return clone();
// depends on control dependency: [if], data = [none]... |
public class class_name {
public TVSeasonInfo getSeasonInfo(int tvID, int seasonNumber, String language, String... appendToResponse) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.SEASON_NUMBER, seasonNumber);
... | public class class_name {
public TVSeasonInfo getSeasonInfo(int tvID, int seasonNumber, String language, String... appendToResponse) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.SEASON_NUMBER, seasonNumber);
... |
public class class_name {
private InputStream findCukedoctorProperties(String baseDir) {
List<String> files = FileUtil.findFiles(baseDir,"cukedoctor.properties",true);
if(files != null && !files.isEmpty()){
String path = files.get(0);
log.fine("Loading cukedoctor resource bundle... | public class class_name {
private InputStream findCukedoctorProperties(String baseDir) {
List<String> files = FileUtil.findFiles(baseDir,"cukedoctor.properties",true);
if(files != null && !files.isEmpty()){
String path = files.get(0);
log.fine("Loading cukedoctor resource bundle... |
public class class_name {
public Buffer capacity(int capacity) {
if (capacity > maxCapacity) {
throw new IllegalArgumentException("capacity cannot be greater than maximum capacity");
} else if (capacity < this.capacity) {
throw new IllegalArgumentException("capacity cannot be decreased");
} els... | public class class_name {
public Buffer capacity(int capacity) {
if (capacity > maxCapacity) {
throw new IllegalArgumentException("capacity cannot be greater than maximum capacity");
} else if (capacity < this.capacity) {
throw new IllegalArgumentException("capacity cannot be decreased");
} els... |
public class class_name {
public void marshall(CreateHITWithHITTypeRequest createHITWithHITTypeRequest, ProtocolMarshaller protocolMarshaller) {
if (createHITWithHITTypeRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(CreateHITWithHITTypeRequest createHITWithHITTypeRequest, ProtocolMarshaller protocolMarshaller) {
if (createHITWithHITTypeRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public void pacedCall(Runnable call, Runnable orElse) {
long now = timeSource.getTimeMillis();
long end = nextLogTime.get();
if(now >= end && nextLogTime.compareAndSet(end, now + delay)) {
call.run();
} else {
orElse.run();
}
} } | public class class_name {
public void pacedCall(Runnable call, Runnable orElse) {
long now = timeSource.getTimeMillis();
long end = nextLogTime.get();
if(now >= end && nextLogTime.compareAndSet(end, now + delay)) {
call.run(); // depends on control dependency: [if], data = [none]
} else {
o... |
public class class_name {
static void extractGenericsConnections(Map<GenericsTypeName, GenericsType> connections, ClassNode type, ClassNode target) {
if (target == null || type == target || !isUsingGenericsOrIsArrayUsingGenerics(target)) return;
if (type == null || type == UNKNOWN_PARAMETER_TYPE) retur... | public class class_name {
static void extractGenericsConnections(Map<GenericsTypeName, GenericsType> connections, ClassNode type, ClassNode target) {
if (target == null || type == target || !isUsingGenericsOrIsArrayUsingGenerics(target)) return;
if (type == null || type == UNKNOWN_PARAMETER_TYPE) retur... |
public class class_name {
@Nonnull
public EChange assignRoleToUserGroup (@Nullable final String sUserGroupID, @Nonnull @Nonempty final String sRoleID)
{
// Resolve user group
final UserGroup aUserGroup = getOfID (sUserGroupID);
if (aUserGroup == null)
{
AuditHelper.onAuditModifyFailure (UserG... | public class class_name {
@Nonnull
public EChange assignRoleToUserGroup (@Nullable final String sUserGroupID, @Nonnull @Nonempty final String sRoleID)
{
// Resolve user group
final UserGroup aUserGroup = getOfID (sUserGroupID);
if (aUserGroup == null)
{
AuditHelper.onAuditModifyFailure (UserG... |
public class class_name {
private void execute(Map<Key, List<TableOperation>> batches)
{
if (batches != null && !batches.isEmpty())
{
try
{
for (List<TableOperation> batch : batches.values())
{
tableAPI.execute(batch, null)... | public class class_name {
private void execute(Map<Key, List<TableOperation>> batches)
{
if (batches != null && !batches.isEmpty())
{
try
{
for (List<TableOperation> batch : batches.values())
{
tableAPI.execute(batch, null)... |
public class class_name {
public int size() {
if (disposed) {
return 0;
}
synchronized (this) {
if (disposed) {
return 0;
}
OpenHashSet<Disposable> set = resources;
return set != null ? set.size() : 0;
}
} } | public class class_name {
public int size() {
if (disposed) {
return 0; // depends on control dependency: [if], data = [none]
}
synchronized (this) {
if (disposed) {
return 0; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public Matrix4x3f set(Matrix3fc mat) {
if (mat instanceof Matrix3f) {
MemUtil.INSTANCE.copy((Matrix3f) mat, this);
} else {
setMatrix3fc(mat);
}
properties = 0;
return this;
} } | public class class_name {
public Matrix4x3f set(Matrix3fc mat) {
if (mat instanceof Matrix3f) {
MemUtil.INSTANCE.copy((Matrix3f) mat, this); // depends on control dependency: [if], data = [none]
} else {
setMatrix3fc(mat); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public HppRequest hash(String secret) {
// Override payerRef with hppSelectStoredCard if present.
if (this.hppSelectStoredCard != null && !"".equalsIgnoreCase(this.hppSelectStoredCard)) {
this.payerReference = this.hppSelectStoredCard;
}
//check for any null values and set them t... | public class class_name {
public HppRequest hash(String secret) {
// Override payerRef with hppSelectStoredCard if present.
if (this.hppSelectStoredCard != null && !"".equalsIgnoreCase(this.hppSelectStoredCard)) {
this.payerReference = this.hppSelectStoredCard; // depends on control dependency: [if], data = [n... |
public class class_name {
@Override
public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
throws IOException {
final String requestURI = request.getRequestURI();
UserAuthentication userAuth = null;
User user = null;
if (requestURI.endsWith(OPENID_ACTION)) {
... | public class class_name {
@Override
public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
throws IOException {
final String requestURI = request.getRequestURI();
UserAuthentication userAuth = null;
User user = null;
if (requestURI.endsWith(OPENID_ACTION)) {
... |
public class class_name {
public void receiveAudio(boolean receive) {
if (engine != null) {
// check if engine currently receives audio, returns previous value
boolean receiveAudio = engine.receiveAudio(receive);
if (receiveAudio && !receive) {
// send a... | public class class_name {
public void receiveAudio(boolean receive) {
if (engine != null) {
// check if engine currently receives audio, returns previous value
boolean receiveAudio = engine.receiveAudio(receive);
if (receiveAudio && !receive) {
// send a... |
public class class_name {
public void openPoolTracer() {
this.poolWriteLock.lock();
try {
for (AbstractTracer tracer : this.tracerPool.values()) {
tracer.open();
}
}
finally {
this.poolWriteLock.unlock();
}
} } | public class class_name {
public void openPoolTracer() {
this.poolWriteLock.lock();
try {
for (AbstractTracer tracer : this.tracerPool.values()) {
tracer.open();
// depends on control dependency: [for], data = [tracer]
}
}
finally {
this.poolWriteLock.unlock();
}
... |
public class class_name {
public int parseNaturalIntAscii(final int index, final int length)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck0(index, length);
}
final int end = index + length;
int tally = 0;
for (int i = index; i < end; i++)
{
... | public class class_name {
public int parseNaturalIntAscii(final int index, final int length)
{
if (SHOULD_BOUNDS_CHECK)
{
boundsCheck0(index, length); // depends on control dependency: [if], data = [none]
}
final int end = index + length;
int tally = 0;
... |
public class class_name {
public void forEach(final IntConsumer action) {
requireNonNull(action);
final int size = _size;
for (int i = 0; i < size; ++i) {
action.accept(_data[i]);
}
} } | public class class_name {
public void forEach(final IntConsumer action) {
requireNonNull(action);
final int size = _size;
for (int i = 0; i < size; ++i) {
action.accept(_data[i]); // depends on control dependency: [for], data = [i]
}
} } |
public class class_name {
@Override
public void visit(final Family family) {
for (final GedObject gob : family.getAttributes()) {
gob.accept(this);
}
} } | public class class_name {
@Override
public void visit(final Family family) {
for (final GedObject gob : family.getAttributes()) {
gob.accept(this); // depends on control dependency: [for], data = [gob]
}
} } |
public class class_name {
public List<FacesConfigOrderingType<WebFacesConfigDescriptor>> getAllOrdering()
{
List<FacesConfigOrderingType<WebFacesConfigDescriptor>> list = new ArrayList<FacesConfigOrderingType<WebFacesConfigDescriptor>>();
List<Node> nodeList = model.get("ordering");
for(Node node:... | public class class_name {
public List<FacesConfigOrderingType<WebFacesConfigDescriptor>> getAllOrdering()
{
List<FacesConfigOrderingType<WebFacesConfigDescriptor>> list = new ArrayList<FacesConfigOrderingType<WebFacesConfigDescriptor>>();
List<Node> nodeList = model.get("ordering");
for(Node node:... |
public class class_name {
public static void closeEL(InputStream is) {
try {
if (is != null) is.close();
}
// catch (AlwaysThrow at) {throw at;}
catch (Throwable t) {
ExceptionUtil.rethrowIfNecessary(t);
}
} } | public class class_name {
public static void closeEL(InputStream is) {
try {
if (is != null) is.close();
}
// catch (AlwaysThrow at) {throw at;}
catch (Throwable t) {
ExceptionUtil.rethrowIfNecessary(t);
} // depends on control dependency: [catch], data = [none]
} } |
public class class_name {
@SuppressWarnings("resource")
public static void main(String[] allArgs) {
int exitStatus = 0;
Serializer serializer = null;
try {
final ArrayDeque<String> args = new ArrayDeque<String>(Arrays.asList(allArgs));
// Options.
boolean debugStream = false;
bo... | public class class_name {
@SuppressWarnings("resource")
public static void main(String[] allArgs) {
int exitStatus = 0;
Serializer serializer = null;
try {
final ArrayDeque<String> args = new ArrayDeque<String>(Arrays.asList(allArgs));
// Options.
boolean debugStream = false;
bo... |
public class class_name {
public CertifiedPublicKey convert(X509CertificateHolder cert)
{
if (cert == null) {
return null;
}
return new BcX509CertifiedPublicKey(cert, this.factory);
} } | public class class_name {
public CertifiedPublicKey convert(X509CertificateHolder cert)
{
if (cert == null) {
return null; // depends on control dependency: [if], data = [none]
}
return new BcX509CertifiedPublicKey(cert, this.factory);
} } |
public class class_name {
public void addToDomain(PrologCompiledClause term)
{
List<PrologCompiledClause> predicate = domain.get(term.getHead().getName());
if (predicate == null)
{
predicate = new LinkedList<PrologCompiledClause>();
domain.put(term.getHead().getName... | public class class_name {
public void addToDomain(PrologCompiledClause term)
{
List<PrologCompiledClause> predicate = domain.get(term.getHead().getName());
if (predicate == null)
{
predicate = new LinkedList<PrologCompiledClause>(); // depends on control dependency: [if], data ... |
public class class_name {
public boolean hasNext()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "hasNext");
boolean hasNext = false;
if (anycastIHIterator != null)
{
hasNext = anycastIHIterator.hasNext();
}
if (tc.isEntryEnabled())
SibTr.exit(tc, "hasNext", new B... | public class class_name {
public boolean hasNext()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "hasNext");
boolean hasNext = false;
if (anycastIHIterator != null)
{
hasNext = anycastIHIterator.hasNext(); // depends on control dependency: [if], data = [none]
}
if (tc.is... |
public class class_name {
public void processDrsInbound(long localClock) {
// Is dsrClock timestamp from the remote machine missing
// or was the CE's timestampls already altered?
if (drsClock <= 0) {
return;
}
// Adjust timestamps for this machines clock.
lo... | public class class_name {
public void processDrsInbound(long localClock) {
// Is dsrClock timestamp from the remote machine missing
// or was the CE's timestampls already altered?
if (drsClock <= 0) {
return; // depends on control dependency: [if], data = [none]
}
//... |
public class class_name {
public void init() {
final String string = getString();
final int bpos = string.indexOf('/');
if (bpos == -1) {
prefix = string;
surname = "";
suffix = "";
} else {
final int epos = string.indexOf('/', bpos + 1);
... | public class class_name {
public void init() {
final String string = getString();
final int bpos = string.indexOf('/');
if (bpos == -1) {
prefix = string; // depends on control dependency: [if], data = [none]
surname = "";
suffix = ""; // depends on control d... |
public class class_name {
@Override
protected Object doExec(Element element, Object scope, String expression, Object... arguments) throws TemplateException
{
if(expression.isEmpty()) {
throw new TemplateException("Invalid ATTR operand. Attribute property path expression is empty.");
}
Set<A... | public class class_name {
@Override
protected Object doExec(Element element, Object scope, String expression, Object... arguments) throws TemplateException
{
if(expression.isEmpty()) {
throw new TemplateException("Invalid ATTR operand. Attribute property path expression is empty.");
}
Set<A... |
public class class_name {
@Override
public Operation addCallback(String key, Callback value) {
if (value == null) {
return this;
}
if (this.callbacks == null) {
this.callbacks = new HashMap<>();
}
callbacks.put(key, value);
return this;
} ... | public class class_name {
@Override
public Operation addCallback(String key, Callback value) {
if (value == null) {
return this; // depends on control dependency: [if], data = [none]
}
if (this.callbacks == null) {
this.callbacks = new HashMap<>(); // depends on cont... |
public class class_name {
public Table build(DB db) {
if (tableName == null) {
throw new InvalidOperationException("The table name has not been set.");
}
if (tableColumns == null) {
tableColumns = ALL_COLUMNS;
}
return new Table(CallInfo.create(), db, tableName, tableColumns, keyColumns... | public class class_name {
public Table build(DB db) {
if (tableName == null) {
throw new InvalidOperationException("The table name has not been set.");
}
if (tableColumns == null) {
tableColumns = ALL_COLUMNS; // depends on control dependency: [if], data = [none]
}
return new Table(Call... |
public class class_name {
public long pop() {
if (count < 0) {
return -1;
}
String key = String.format(Locale.CHINA, TIME_KEY, count);
count--;
return pop(key);
} } | public class class_name {
public long pop() {
if (count < 0) {
return -1; // depends on control dependency: [if], data = [none]
}
String key = String.format(Locale.CHINA, TIME_KEY, count);
count--;
return pop(key);
} } |
public class class_name {
public EEnum getGSMXMODE() {
if (gsmxmodeEEnum == null) {
gsmxmodeEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(148);
}
return gsmxmodeEEnum;
} } | public class class_name {
public EEnum getGSMXMODE() {
if (gsmxmodeEEnum == null) {
gsmxmodeEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(148); // depends on control dependency: [if], data = [none]
}
return gsmxmodeEEnum;
} } |
public class class_name {
private final void step4() {
switch (b[k]) {
case 'e':
if (ends("icate")) {
r("ic");
break;
}
if (ends("ative")) {
r("");
break;
}
if (ends("alize")) {
r("al");
break;
}
break;
case 'i':
if (ends("iciti")) {
r("ic");
break;
}
... | public class class_name {
private final void step4() {
switch (b[k]) {
case 'e':
if (ends("icate")) {
r("ic"); // depends on control dependency: [if], data = [none]
break;
}
if (ends("ative")) {
r(""); // depends on control dependency: [if], data = [none]
break;
}
if (ends("alize")) ... |
public class class_name {
public static String calendarIncludes(Locale locale, String style) {
StringBuffer result = new StringBuffer(512);
String calendarPath = CmsWorkplace.getSkinUri() + "components/js_calendar/";
if (CmsStringUtil.isEmpty(style)) {
style = "system";
}
... | public class class_name {
public static String calendarIncludes(Locale locale, String style) {
StringBuffer result = new StringBuffer(512);
String calendarPath = CmsWorkplace.getSkinUri() + "components/js_calendar/";
if (CmsStringUtil.isEmpty(style)) {
style = "system"; // depends ... |
public class class_name {
protected Object getTopRowBean(final List<Integer> row) {
// Get root level
List<?> lvl = getBeanList();
if (lvl == null || lvl.isEmpty()) {
return null;
}
// Get root row bean (ie top level)
int rowIdx = row.get(0);
Object rowData = lvl.get(rowIdx);
return rowData;
} } | public class class_name {
protected Object getTopRowBean(final List<Integer> row) {
// Get root level
List<?> lvl = getBeanList();
if (lvl == null || lvl.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
// Get root row bean (ie top level)
int rowIdx = row.get(0);
Obje... |
public class class_name {
public static final Token restore(java.io.DataInputStream dataInputStream,
ObjectManagerState objectManagerState)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trac... | public class class_name {
public static final Token restore(java.io.DataInputStream dataInputStream,
ObjectManagerState objectManagerState)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trac... |
public class class_name {
@Override
public Query rewrite(IndexReader reader) throws IOException
{
Query cQuery = contextQuery.rewrite(reader);
// only try to compact if no position is specified
if (position == LocationStepQueryNode.NONE)
{
if (cQuery instanceof DescendantSelfAxis... | public class class_name {
@Override
public Query rewrite(IndexReader reader) throws IOException
{
Query cQuery = contextQuery.rewrite(reader);
// only try to compact if no position is specified
if (position == LocationStepQueryNode.NONE)
{
if (cQuery instanceof DescendantSelfAxis... |
public class class_name {
@SuppressWarnings("unchecked")
public int compareTo(Pair<T1,T2> another) {
int comp = ((Comparable<T1>) first()).compareTo(another.first());
if (comp != 0) {
return comp;
} else {
return ((Comparable<T2>) second()).compareTo(another.second());
}
} } | public class class_name {
@SuppressWarnings("unchecked")
public int compareTo(Pair<T1,T2> another) {
int comp = ((Comparable<T1>) first()).compareTo(another.first());
if (comp != 0) {
return comp;
// depends on control dependency: [if], data = [none]
} else {
return ((Comparable<T2>) se... |
public class class_name {
public CsvWriter write(Collection<String[]> lines) throws IORuntimeException {
if (CollUtil.isNotEmpty(lines)) {
for (final String[] values : lines) {
appendLine(values);
}
flush();
}
return this;
} } | public class class_name {
public CsvWriter write(Collection<String[]> lines) throws IORuntimeException {
if (CollUtil.isNotEmpty(lines)) {
for (final String[] values : lines) {
appendLine(values); // depends on control dependency: [for], data = [values]
}
flush();
}
return this;
} } |
public class class_name {
@Override
protected void doSuccessResponse(SipServletResponse resp)
throws ServletException, IOException {
if (resp.getStatus() == SipServletResponse.SC_OK) {
String audioFilePath = (String)getServletContext().getAttribute("audioFilePath");
logger.info("audio file path is " + ... | public class class_name {
@Override
protected void doSuccessResponse(SipServletResponse resp)
throws ServletException, IOException {
if (resp.getStatus() == SipServletResponse.SC_OK) {
String audioFilePath = (String)getServletContext().getAttribute("audioFilePath");
logger.info("audio file path is " + ... |
public class class_name {
private void parsev0CookieDateRFC1123compat(Map<?, ?> props) {
Object value = props.get(HttpConfigConstants.PROPNAME_V0_COOKIE_RFC1123_COMPAT);
if (null != value) {
this.v0CookieDateRFC1123compat = convertBoolean(value);
}
if (TraceComponent.isAny... | public class class_name {
private void parsev0CookieDateRFC1123compat(Map<?, ?> props) {
Object value = props.get(HttpConfigConstants.PROPNAME_V0_COOKIE_RFC1123_COMPAT);
if (null != value) {
this.v0CookieDateRFC1123compat = convertBoolean(value); // depends on control dependency: [if], dat... |
public class class_name {
public URI toUri(final String stringUri) {
try {
final java.net.URI netUri = new java.net.URI(stringUri);
return this.toEmfUri(netUri);
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
} } | public class class_name {
public URI toUri(final String stringUri) {
try {
final java.net.URI netUri = new java.net.URI(stringUri);
return this.toEmfUri(netUri); // depends on control dependency: [try], data = [none]
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
} // depends ... |
public class class_name {
void consume(Purchase itemInfo) throws IabException {
checkNotDisposed();
checkSetupDone("consume");
if (!itemInfo.mItemType.equals(ITEM_TYPE_INAPP)) {
throw new IabException(IABHELPER_INVALID_CONSUMPTION,
"Items of type '" + itemInfo.m... | public class class_name {
void consume(Purchase itemInfo) throws IabException {
checkNotDisposed();
checkSetupDone("consume");
if (!itemInfo.mItemType.equals(ITEM_TYPE_INAPP)) {
throw new IabException(IABHELPER_INVALID_CONSUMPTION,
"Items of type '" + itemInfo.m... |
public class class_name {
@NonNull
@Override
public MutableArray setValue(int index, Object value) {
synchronized (lock) {
if (Fleece.valueWouldChange(value, internalArray.get(index), internalArray)
&& (!internalArray.set(index, Fleece.toCBLObject(value)))) {
... | public class class_name {
@NonNull
@Override
public MutableArray setValue(int index, Object value) {
synchronized (lock) {
if (Fleece.valueWouldChange(value, internalArray.get(index), internalArray)
&& (!internalArray.set(index, Fleece.toCBLObject(value)))) {
... |
public class class_name {
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) {
if (children == null) {
children = new HashMap();
}
PropertyChangeSupport child = (PropertyChangeSupport) children.get(propertyName);
if (child == null) {
child = new PropertyChangeSupp... | public class class_name {
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) {
if (children == null) {
children = new HashMap(); // depends on control dependency: [if], data = [none]
}
PropertyChangeSupport child = (PropertyChangeSupport) children.get(propertyName);
... |
public class class_name {
static Object[] copyAsObjectArray(Object[] elements, int offset, int length) {
checkPositionIndexes(offset, offset + length, elements.length);
if (length == 0) {
return new Object[0];
}
Object[] result = new Object[length];
System.arraycopy(elements, offset, result, ... | public class class_name {
static Object[] copyAsObjectArray(Object[] elements, int offset, int length) {
checkPositionIndexes(offset, offset + length, elements.length);
if (length == 0) {
return new Object[0]; // depends on control dependency: [if], data = [none]
}
Object[] result = new Object[le... |
public class class_name {
public DescribeInstancesResult withReservations(Reservation... reservations) {
if (this.reservations == null) {
setReservations(new com.amazonaws.internal.SdkInternalList<Reservation>(reservations.length));
}
for (Reservation ele : reservations) {
... | public class class_name {
public DescribeInstancesResult withReservations(Reservation... reservations) {
if (this.reservations == null) {
setReservations(new com.amazonaws.internal.SdkInternalList<Reservation>(reservations.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public CmsMessageContainer validateWithMessage() {
if (m_parsingFailed) {
return Messages.get().container(Messages.ERR_SERIALDATE_INVALID_VALUE_0);
}
if (!isStartSet()) {
return Messages.get().container(Messages.ERR_SERIALDATE_START_MISSING_0);... | public class class_name {
public CmsMessageContainer validateWithMessage() {
if (m_parsingFailed) {
return Messages.get().container(Messages.ERR_SERIALDATE_INVALID_VALUE_0); // depends on control dependency: [if], data = [none]
}
if (!isStartSet()) {
return Messages.get... |
public class class_name {
public byte[] getBytes(int columnIndex) {
Object fieldValue = data[columnIndex];
if (fieldValue == null) {
return null;
}
if (fieldValue instanceof byte[]) {
return (byte[]) fieldValue;
}
throw new DBFException("Unsupported type for byte[] at column:" + columnIndex + " "
... | public class class_name {
public byte[] getBytes(int columnIndex) {
Object fieldValue = data[columnIndex];
if (fieldValue == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (fieldValue instanceof byte[]) {
return (byte[]) fieldValue; // depends on control dependency: [if],... |
public class class_name {
public String getBody() {
JsonNode body=getBodyJson();
if(body!=null) {
return body.toString();
} else {
return null;
}
} } | public class class_name {
public String getBody() {
JsonNode body=getBodyJson();
if(body!=null) {
return body.toString(); // depends on control dependency: [if], data = [none]
} else {
return null; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
PathAddress address = PathAddress.pathAddress(PathElement.pathElement(SUBSYSTEM, SS7Extension.SUBSYSTEM_NAME));
final ModelNode subsystem = new ModelNode();... | public class class_name {
@Override
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
PathAddress address = PathAddress.pathAddress(PathElement.pathElement(SUBSYSTEM, SS7Extension.SUBSYSTEM_NAME));
final ModelNode subsystem = new ModelNode();... |
public class class_name {
@Override
@Deprecated
public boolean add(T t) {
try {
return addSync(t);
} finally {
if(extensions!=null) {
fireOnChangeListeners();
}
}
} } | public class class_name {
@Override
@Deprecated
public boolean add(T t) {
try {
return addSync(t); // depends on control dependency: [try], data = [none]
} finally {
if(extensions!=null) {
fireOnChangeListeners(); // depends on control dependency: [if], d... |
public class class_name {
public static String hypenToCamelNotation(String str) {
if (isEmpty(str)) return str;
StringBuilder sb = new StringBuilder();
int len = str.length();
char c;
for (int i = 0; i < str.length(); i++) {
c = str.charAt(i);
if (c == '-') {
if (len > ++i) sb.append(Character.toUpp... | public class class_name {
public static String hypenToCamelNotation(String str) {
if (isEmpty(str)) return str;
StringBuilder sb = new StringBuilder();
int len = str.length();
char c;
for (int i = 0; i < str.length(); i++) {
c = str.charAt(i); // depends on control dependency: [for], data = [i]
if (c ... |
public class class_name {
protected void setProcessDefinitionVersionsAndIds(ParsedDeployment parsedDeployment,
Map<ProcessDefinitionEntity, ProcessDefinitionEntity> mapNewToOldProcessDefinitions) {
CommandContext commandContext = Context.getCommandContext()... | public class class_name {
protected void setProcessDefinitionVersionsAndIds(ParsedDeployment parsedDeployment,
Map<ProcessDefinitionEntity, ProcessDefinitionEntity> mapNewToOldProcessDefinitions) {
CommandContext commandContext = Context.getCommandContext()... |
public class class_name {
public static String[] nullifyBadInput(String[] input)
{
if (input != null)
{
if (input.length > 0)
{
return input;
}
}
return null;
} } | public class class_name {
public static String[] nullifyBadInput(String[] input)
{
if (input != null)
{
if (input.length > 0)
{
return input; // depends on control dependency: [if], data = [none]
}
}
return null;
} } |
public class class_name {
public EClass getIfcMappedItem() {
if (ifcMappedItemEClass == null) {
ifcMappedItemEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(305);
}
return ifcMappedItemEClass;
} } | public class class_name {
public EClass getIfcMappedItem() {
if (ifcMappedItemEClass == null) {
ifcMappedItemEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(305);
// depends on control dependency: [if], data = [none]
}
return ifcMappedItemECl... |
public class class_name {
public void bind(ServletRequest request) {
MutablePropertyValues mpvs = new MutablePropertyValues(WebUtils.getParametersStartingWith(
request, prefix));
MultipartRequest multipartRequest = WebUtils.getNativeRequest(request, MultipartRequest.class);
... | public class class_name {
public void bind(ServletRequest request) {
MutablePropertyValues mpvs = new MutablePropertyValues(WebUtils.getParametersStartingWith(
request, prefix));
MultipartRequest multipartRequest = WebUtils.getNativeRequest(request, MultipartRequest.class);
... |
public class class_name {
@Override
public void handle(String chargingStationId, JsonObject commandObject, IdentityContext identityContext) throws UserIdentityUnauthorizedException {
try {
ChargingStation chargingStation = repository.findOne(chargingStationId);
if (chargingStation... | public class class_name {
@Override
public void handle(String chargingStationId, JsonObject commandObject, IdentityContext identityContext) throws UserIdentityUnauthorizedException {
try {
ChargingStation chargingStation = repository.findOne(chargingStationId);
if (chargingStation... |
public class class_name {
private static String decodeUrl(final String url) {
String decoded = url;
if (url != null && url.indexOf('%') >= 0) {
final int n = url.length();
final StringBuffer buffer = new StringBuffer();
final ByteBuffer bytes = ByteBuffer.alloca... | public class class_name {
private static String decodeUrl(final String url) {
String decoded = url;
if (url != null && url.indexOf('%') >= 0) {
final int n = url.length();
final StringBuffer buffer = new StringBuffer();
final ByteBuffer bytes = ByteBuffer.alloca... |
public class class_name {
public T addPropertiesFile(final String file) {
if (file != null) {
addPropertiesFile(Paths.get(file));
}
return getThis();
} } | public class class_name {
public T addPropertiesFile(final String file) {
if (file != null) {
addPropertiesFile(Paths.get(file)); // depends on control dependency: [if], data = [(file]
}
return getThis();
} } |
public class class_name {
public static boolean substringEquals(final String s1,
final int fromIndex1, final int toIndex1,
final String s2, final int fromIndex2, final int toIndex2) {
if (toIndex1 < fromIndex1) {
throw new IndexOutOfBoundsException();
}
if (... | public class class_name {
public static boolean substringEquals(final String s1,
final int fromIndex1, final int toIndex1,
final String s2, final int fromIndex2, final int toIndex2) {
if (toIndex1 < fromIndex1) {
throw new IndexOutOfBoundsException();
}
if (... |
public class class_name {
public static boolean isRegistered(String name) {
if (name == null) {
throw new IllegalArgumentException("Device name cannot be null");
}
Iterator<IpCamDevice> di = DEVICES.iterator();
while (di.hasNext()) {
if (di.next().getName().equals(name)) {
return true;
... | public class class_name {
public static boolean isRegistered(String name) {
if (name == null) {
throw new IllegalArgumentException("Device name cannot be null");
}
Iterator<IpCamDevice> di = DEVICES.iterator();
while (di.hasNext()) {
if (di.next().getName().equals(name)) {
return true;
//... |
public class class_name {
static boolean targetsExternalPooledConnectionFactory(String resourceAdapter, ServiceRegistry serviceRegistry) {
// if the resourceAdapter is not defined, the default behaviour is to create a pooled-connection-factory.
if (resourceAdapter == null || resourceAdapter.isEmpty()) ... | public class class_name {
static boolean targetsExternalPooledConnectionFactory(String resourceAdapter, ServiceRegistry serviceRegistry) {
// if the resourceAdapter is not defined, the default behaviour is to create a pooled-connection-factory.
if (resourceAdapter == null || resourceAdapter.isEmpty()) ... |
public class class_name {
public int constrains(GeneralNameInterface inputName) throws UnsupportedOperationException {
int constraintType;
if (inputName == null)
constraintType = NAME_DIFF_TYPE;
else if (inputName.getType() != (GeneralNameInterface.NAME_RFC822)) {
constr... | public class class_name {
public int constrains(GeneralNameInterface inputName) throws UnsupportedOperationException {
int constraintType;
if (inputName == null)
constraintType = NAME_DIFF_TYPE;
else if (inputName.getType() != (GeneralNameInterface.NAME_RFC822)) {
constr... |
public class class_name {
private void extractAndAssignValue(String line, int lineNumber, ColumnInfo<Object> columnInfo, String columnStr,
int linePos, Object target, ParseError parseError) {
Object value = extractValue(line, lineNumber, columnInfo, columnStr, linePos, target, parseError);
if (value == null) {
... | public class class_name {
private void extractAndAssignValue(String line, int lineNumber, ColumnInfo<Object> columnInfo, String columnStr,
int linePos, Object target, ParseError parseError) {
Object value = extractValue(line, lineNumber, columnInfo, columnStr, linePos, target, parseError);
if (value == null) {
... |
public class class_name {
@Override
public List<FacesConfig> getClassloaderFacesConfig(ExternalContext ectx)
{
List<FacesConfig> appConfigResources = new ArrayList<FacesConfig>();
try
{
FacesConfigResourceProvider provider = FacesConfigResourceProviderFactory.
... | public class class_name {
@Override
public List<FacesConfig> getClassloaderFacesConfig(ExternalContext ectx)
{
List<FacesConfig> appConfigResources = new ArrayList<FacesConfig>();
try
{
FacesConfigResourceProvider provider = FacesConfigResourceProviderFactory.
... |
public class class_name {
public static long binomial(int n, int k) {
checkNonNegative("n", n);
checkNonNegative("k", k);
checkArgument(k <= n, "k (%s) > n (%s)", k, n);
if (k > (n >> 1)) {
k = n - k;
}
switch (k) {
case 0:
return 1;
case 1:
return n;
def... | public class class_name {
public static long binomial(int n, int k) {
checkNonNegative("n", n);
checkNonNegative("k", k);
checkArgument(k <= n, "k (%s) > n (%s)", k, n);
if (k > (n >> 1)) {
k = n - k; // depends on control dependency: [if], data = [none]
}
switch (k) {
case 0:
... |
public class class_name {
protected void closeDialog(boolean breakingUp) {
m_controller.stopEditingGroupcontainer();
m_editingPlaceholder.removeFromParent();
m_editorDialog.hide();
RootPanel.get().removeStyleName(I_CmsLayoutBundle.INSTANCE.containerpageCss().groupcontainerEditing());
... | public class class_name {
protected void closeDialog(boolean breakingUp) {
m_controller.stopEditingGroupcontainer();
m_editingPlaceholder.removeFromParent();
m_editorDialog.hide();
RootPanel.get().removeStyleName(I_CmsLayoutBundle.INSTANCE.containerpageCss().groupcontainerEditing());
... |
public class class_name {
public void marshall(CopyImageRequest copyImageRequest, ProtocolMarshaller protocolMarshaller) {
if (copyImageRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(copy... | public class class_name {
public void marshall(CopyImageRequest copyImageRequest, ProtocolMarshaller protocolMarshaller) {
if (copyImageRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(copy... |
public class class_name {
public JvmAnnotationReference findOrAddAnnotation(/* @NonNull */ JvmAnnotationTarget annotationTarget, /* @NonNull */ Notifier context, /* @NonNull */ Class<? extends Annotation> type) {
JvmAnnotationReference result = findAnnotation(annotationTarget, type);
if (result != null)
return ... | public class class_name {
public JvmAnnotationReference findOrAddAnnotation(/* @NonNull */ JvmAnnotationTarget annotationTarget, /* @NonNull */ Notifier context, /* @NonNull */ Class<? extends Annotation> type) {
JvmAnnotationReference result = findAnnotation(annotationTarget, type);
if (result != null)
return ... |
public class class_name {
public HttpResponse executeRequest(HttpRequestBase request) {
try {
return httpClient.execute(host, request, createContext());
} catch (IOException e) {
request.abort();
throw new CouchDbException("Error executing request. ", e);
}
} } | public class class_name {
public HttpResponse executeRequest(HttpRequestBase request) {
try {
return httpClient.execute(host, request, createContext()); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
request.abort();
throw new CouchDbException("Error executing request. "... |
public class class_name {
public void setAbstract(final String description) {
if (description == null && this.description == null) {
return;
} else if (description == null) {
removeChild(this.description);
this.description = null;
} else if (this.description ... | public class class_name {
public void setAbstract(final String description) {
if (description == null && this.description == null) {
return; // depends on control dependency: [if], data = [none]
} else if (description == null) {
removeChild(this.description); // depends on contr... |
public class class_name {
public static base_responses update(nitro_service client, tmtrafficaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
tmtrafficaction updateresources[] = new tmtrafficaction[resources.length];
for (int i=0;i<resource... | public class class_name {
public static base_responses update(nitro_service client, tmtrafficaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
tmtrafficaction updateresources[] = new tmtrafficaction[resources.length];
for (int i=0;i<resource... |
public class class_name {
public void setRefreshInterval(final HttpServletRequest request,
final HttpServletResponse response,
final int refreshInterval,
final String refreshAction,
final... | public class class_name {
public void setRefreshInterval(final HttpServletRequest request,
final HttpServletResponse response,
final int refreshInterval,
final String refreshAction,
final... |
public class class_name {
public LinkedHashMap<String,S> process(int max) throws IOException {
String line = "";
if(this.line != null && this.line.length() > 0){
line=this.line;
}
String header = "";
if(this.header != null && this.header.length() > 0){
header=this.header;
}
StringBuilder sb = ne... | public class class_name {
public LinkedHashMap<String,S> process(int max) throws IOException {
String line = "";
if(this.line != null && this.line.length() > 0){
line=this.line;
}
String header = "";
if(this.header != null && this.header.length() > 0){
header=this.header;
}
StringBuilder sb = ne... |
public class class_name {
@Override
public Parameter doParameter(final Parameter parameter) {
if (skipFilter || parameter == null) {
return parameter;
}
if (Parameter.class.equals(parameter.getClass())) {
// 通常のパラメータの場合
String key = parameter.getParameterName();
if (getCryptParamKeys().contains(Cas... | public class class_name {
@Override
public Parameter doParameter(final Parameter parameter) {
if (skipFilter || parameter == null) {
return parameter; // depends on control dependency: [if], data = [none]
}
if (Parameter.class.equals(parameter.getClass())) {
// 通常のパラメータの場合
String key = parameter.getPa... |
public class class_name {
public static float nextFloat(
final float min,
final float max,
final Random random
) {
if (min >= max) {
throw new IllegalArgumentException(format(
"min >= max: %f >= %f.", min, max
));
}
float value = random.nextFloat();
if (min < max) {
value = value*(max - mi... | public class class_name {
public static float nextFloat(
final float min,
final float max,
final Random random
) {
if (min >= max) {
throw new IllegalArgumentException(format(
"min >= max: %f >= %f.", min, max
));
}
float value = random.nextFloat();
if (min < max) {
value = value*(max - mi... |
public class class_name {
static String typeArgumentsString(DocEnv env, ClassType cl, boolean full) {
if (env.legacyDoclet || cl.getTypeArguments().isEmpty()) {
return "";
}
StringBuilder s = new StringBuilder();
for (Type t : cl.getTypeArguments()) {
s.append(s.... | public class class_name {
static String typeArgumentsString(DocEnv env, ClassType cl, boolean full) {
if (env.legacyDoclet || cl.getTypeArguments().isEmpty()) {
return ""; // depends on control dependency: [if], data = [none]
}
StringBuilder s = new StringBuilder();
for (Typ... |
public class class_name {
@SuppressWarnings("unchecked")
private T readReference(Class<T> type, BufferInput<?> buffer, Serializer serializer) {
ReferencePool<?> pool = pools.get(type);
if (pool == null) {
Constructor<?> constructor = constructorMap.get(type);
if (constructor == null) {
tr... | public class class_name {
@SuppressWarnings("unchecked")
private T readReference(Class<T> type, BufferInput<?> buffer, Serializer serializer) {
ReferencePool<?> pool = pools.get(type);
if (pool == null) {
Constructor<?> constructor = constructorMap.get(type);
if (constructor == null) {
tr... |
public class class_name {
private static Connection connect(final String url, final String user, final String password) throws NamingException, SQLException {
if (url.toLowerCase(Locale.ROOT).startsWith("java:")) {
DataSource source = (DataSource) new InitialContext().lookup(url);
if (user == null) {
retur... | public class class_name {
private static Connection connect(final String url, final String user, final String password) throws NamingException, SQLException {
if (url.toLowerCase(Locale.ROOT).startsWith("java:")) {
DataSource source = (DataSource) new InitialContext().lookup(url);
if (user == null) {
retur... |
public class class_name {
private MethodRefAmp findLocalMethod()
{
ServiceRefAmp serviceRefLocal = _serviceRef.getLocalService();
if (serviceRefLocal == null) {
return null;
}
if (_type != null) {
return serviceRefLocal.methodByName(_name, _type);
}
else {
return servi... | public class class_name {
private MethodRefAmp findLocalMethod()
{
ServiceRefAmp serviceRefLocal = _serviceRef.getLocalService();
if (serviceRefLocal == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (_type != null) {
return serviceRefLocal.methodByN... |
public class class_name {
public static KeyStore readKeyStore(String type, InputStream in, char[] password) {
KeyStore keyStore = null;
try {
keyStore = KeyStore.getInstance(type);
keyStore.load(in, password);
} catch (Exception e) {
throw new CryptoException(e);
}
return keyStore;
} } | public class class_name {
public static KeyStore readKeyStore(String type, InputStream in, char[] password) {
KeyStore keyStore = null;
try {
keyStore = KeyStore.getInstance(type);
// depends on control dependency: [try], data = [none]
keyStore.load(in, password);
// depends on control dependency: [try]... |
public class class_name {
@Override
public void addEventHandlerWithResyncPeriod(
ResourceEventHandler<ApiType> handler, long resyncPeriodMillis) {
if (stopped) {
log.info(
"DefaultSharedIndexInformer#Handler was not added to shared informer because it has stopped already");
return;
... | public class class_name {
@Override
public void addEventHandlerWithResyncPeriod(
ResourceEventHandler<ApiType> handler, long resyncPeriodMillis) {
if (stopped) {
log.info(
"DefaultSharedIndexInformer#Handler was not added to shared informer because it has stopped already"); // depends on co... |
public class class_name {
public synchronized void release()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "release");
super.release();
if (poolManager != null)
{
poolManager.release(this);
}
if (TraceComponent.isAnyTracingEn... | public class class_name {
public synchronized void release()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "release");
super.release();
if (poolManager != null)
{
poolManager.release(this); // depends on control dependency: [if], data = [... |
public class class_name {
public List<Permission> getUserPermission(String userName) {
ACL acl = getServiceDirectoryClient().getACL(AuthScheme.DIRECTORY, userName);
int permissionId = 0;
if(acl != null){
permissionId = acl.getPermission();
}
return PermissionUtil.id... | public class class_name {
public List<Permission> getUserPermission(String userName) {
ACL acl = getServiceDirectoryClient().getACL(AuthScheme.DIRECTORY, userName);
int permissionId = 0;
if(acl != null){
permissionId = acl.getPermission(); // depends on control dependency: [if], da... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.