code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
protected Long createOrRetrieveSidPrimaryKey(Sid sid, boolean allowCreate) {
Assert.notNull(sid, "Sid required");
String sidName;
boolean sidIsPrincipal = true;
if (sid instanceof PrincipalSid) {
sidName = ((PrincipalSid) sid).getPrincipal();
}
else if (sid instanceof Granted... | public class class_name {
protected Long createOrRetrieveSidPrimaryKey(Sid sid, boolean allowCreate) {
Assert.notNull(sid, "Sid required");
String sidName;
boolean sidIsPrincipal = true;
if (sid instanceof PrincipalSid) {
sidName = ((PrincipalSid) sid).getPrincipal(); // depends on control dependency: [if... |
public class class_name {
public void replaceUnsolvedElements(NamedConcreteElement element){
List<ReferenceBase> elements = this.getElements();
if (elements != null){
elements.stream()
.filter(referenceBase -> referenceBase instanceof UnsolvedReference)
.map... | public class class_name {
public void replaceUnsolvedElements(NamedConcreteElement element){
List<ReferenceBase> elements = this.getElements();
if (elements != null){
elements.stream()
.filter(referenceBase -> referenceBase instanceof UnsolvedReference)
.map... |
public class class_name {
public FutureData<Limit> createLimit(String identity, String service, Long allowance) {
if (identity == null || identity.isEmpty()) {
throw new IllegalArgumentException("An identity is required");
}
if (service == null || service.isEmpty()) {
th... | public class class_name {
public FutureData<Limit> createLimit(String identity, String service, Long allowance) {
if (identity == null || identity.isEmpty()) {
throw new IllegalArgumentException("An identity is required");
}
if (service == null || service.isEmpty()) {
th... |
public class class_name {
@Override
public SIBusMessage[] processMsgSet(SIMessageHandle[] msgHandles,
TransactionCommon transaction,
BifurcatedConsumerSessionImpl owner,
boolean unlock,
... | public class class_name {
@Override
public SIBusMessage[] processMsgSet(SIMessageHandle[] msgHandles,
TransactionCommon transaction,
BifurcatedConsumerSessionImpl owner,
boolean unlock,
... |
public class class_name {
public final UriBuilder setFull(final String str) {
try {
return setFull(new URI(str));
} catch (URISyntaxException ex) {
throw new IllegalArgumentException(ex.getMessage());
}
} } | public class class_name {
public final UriBuilder setFull(final String str) {
try {
return setFull(new URI(str)); // depends on control dependency: [try], data = [none]
} catch (URISyntaxException ex) {
throw new IllegalArgumentException(ex.getMessage());
} // depends on... |
public class class_name {
@Override
public int complete(String buffer, int cursor, List<CharSequence> candidates)
{
// For now only support tab completion at the end of the line.
if (cursor == buffer.length()) {
// Check for an initial token match?
if (cursor <= m_maxCom... | public class class_name {
@Override
public int complete(String buffer, int cursor, List<CharSequence> candidates)
{
// For now only support tab completion at the end of the line.
if (cursor == buffer.length()) {
// Check for an initial token match?
if (cursor <= m_maxCom... |
public class class_name {
private static void populateEmbeddedIdFields(Set<Attribute> embeddedAttributes, MetamodelImpl metaModel,
Set<String> embeddedIdFields)
{
for (Attribute attribute : embeddedAttributes)
{
if (!ReflectUtils.isTransientOrStatic((Field) attribute.getJava... | public class class_name {
private static void populateEmbeddedIdFields(Set<Attribute> embeddedAttributes, MetamodelImpl metaModel,
Set<String> embeddedIdFields)
{
for (Attribute attribute : embeddedAttributes)
{
if (!ReflectUtils.isTransientOrStatic((Field) attribute.getJava... |
public class class_name {
public static <E> Distribution<E> laplaceWithExplicitUnknown(Counter<E> counter, double lambda, E UNK) {
Distribution<E> norm = new Distribution<E>();
norm.counter = new ClassicCounter<E>();
double total = counter.totalCount() + (lambda * (counter.size() - 1));
norm.number... | public class class_name {
public static <E> Distribution<E> laplaceWithExplicitUnknown(Counter<E> counter, double lambda, E UNK) {
Distribution<E> norm = new Distribution<E>();
norm.counter = new ClassicCounter<E>();
double total = counter.totalCount() + (lambda * (counter.size() - 1));
norm.number... |
public class class_name {
private Object readValue(String value, Class<?> type) {
if (StringUtils.isEmpty(value)) {
return null;
}
if (byte.class.equals(type) || Byte.class.equals(type)) {
return Byte.valueOf(value);
} else if (short.class.equals(type) || Short.... | public class class_name {
private Object readValue(String value, Class<?> type) {
if (StringUtils.isEmpty(value)) {
return null; // depends on control dependency: [if], data = [none]
}
if (byte.class.equals(type) || Byte.class.equals(type)) {
return Byte.valueOf(value);... |
public class class_name {
public static long[] convertToArrayLongs(final Block[] blockArray) {
long[] blocksAsLongs = new long[blockArray.length * LONGS_PER_BLOCK];
BlockListAsLongs bl = new BlockListAsLongs(blocksAsLongs);
assert bl.getNumberOfBlocks() == blockArray.length;
for (int i = 0; i < block... | public class class_name {
public static long[] convertToArrayLongs(final Block[] blockArray) {
long[] blocksAsLongs = new long[blockArray.length * LONGS_PER_BLOCK];
BlockListAsLongs bl = new BlockListAsLongs(blocksAsLongs);
assert bl.getNumberOfBlocks() == blockArray.length;
for (int i = 0; i < block... |
public class class_name {
public InstanceSnapshotInfo withFromDiskInfo(DiskInfo... fromDiskInfo) {
if (this.fromDiskInfo == null) {
setFromDiskInfo(new java.util.ArrayList<DiskInfo>(fromDiskInfo.length));
}
for (DiskInfo ele : fromDiskInfo) {
this.fromDiskInfo.add(ele);
... | public class class_name {
public InstanceSnapshotInfo withFromDiskInfo(DiskInfo... fromDiskInfo) {
if (this.fromDiskInfo == null) {
setFromDiskInfo(new java.util.ArrayList<DiskInfo>(fromDiskInfo.length)); // depends on control dependency: [if], data = [none]
}
for (DiskInfo ele : fr... |
public class class_name {
@Required
public void setLocation(final String location) {
// Assertions.
if (location == null) {
String msg = "Argument 'location' cannot be null.";
throw new IllegalArgumentException(msg);
}
if (this.location != null) {
... | public class class_name {
@Required
public void setLocation(final String location) {
// Assertions.
if (location == null) {
String msg = "Argument 'location' cannot be null.";
throw new IllegalArgumentException(msg);
}
if (this.location != null) {
... |
public class class_name {
static boolean getLoadLocalLibsFirstForFile(final File file) {
Attributes attributes = loadMainAttributes(file);
if (null == attributes) {
return false;
}
boolean loadFirstDefault=true;
String loadFirst = attributes.getValue(RUNDECK_PLUGIN_L... | public class class_name {
static boolean getLoadLocalLibsFirstForFile(final File file) {
Attributes attributes = loadMainAttributes(file);
if (null == attributes) {
return false; // depends on control dependency: [if], data = [none]
}
boolean loadFirstDefault=true;
S... |
public class class_name {
public BatchGetImageResult withFailures(ImageFailure... failures) {
if (this.failures == null) {
setFailures(new java.util.ArrayList<ImageFailure>(failures.length));
}
for (ImageFailure ele : failures) {
this.failures.add(ele);
}
... | public class class_name {
public BatchGetImageResult withFailures(ImageFailure... failures) {
if (this.failures == null) {
setFailures(new java.util.ArrayList<ImageFailure>(failures.length)); // depends on control dependency: [if], data = [none]
}
for (ImageFailure ele : failures) {... |
public class class_name {
public void removeChangeListener(@NonNull ListenerToken token) {
if (token == null) { throw new IllegalArgumentException("token cannot be null."); }
synchronized (lock) {
mustBeOpen();
if (token instanceof ChangeListenerToken && ((ChangeListenerToken) ... | public class class_name {
public void removeChangeListener(@NonNull ListenerToken token) {
if (token == null) { throw new IllegalArgumentException("token cannot be null."); }
synchronized (lock) {
mustBeOpen();
if (token instanceof ChangeListenerToken && ((ChangeListenerToken) ... |
public class class_name {
public int[] getDims() {
int[] dims = new int[size()];
for (int i = 0; i < size(); i++) {
dims[i] = get(i).getNumStates();
}
return dims;
} } | public class class_name {
public int[] getDims() {
int[] dims = new int[size()];
for (int i = 0; i < size(); i++) {
dims[i] = get(i).getNumStates(); // depends on control dependency: [for], data = [i]
}
return dims;
} } |
public class class_name {
public static String escapeAttribute (String value)
{
for (int ii = 0; ii < ATTR_ESCAPES.length; ++ii) {
value = value.replace(ATTR_ESCAPES[ii][0], ATTR_ESCAPES[ii][1]);
}
return value;
} } | public class class_name {
public static String escapeAttribute (String value)
{
for (int ii = 0; ii < ATTR_ESCAPES.length; ++ii) {
value = value.replace(ATTR_ESCAPES[ii][0], ATTR_ESCAPES[ii][1]); // depends on control dependency: [for], data = [ii]
}
return value;
} } |
public class class_name {
public Iterable<? extends Element> analyze(Iterable<? extends Element> classes) {
enter(null); // ensure all classes have been entered
final ListBuffer<Element> results = new ListBuffer<>();
try {
if (classes == null) {
handleFlowResults(c... | public class class_name {
public Iterable<? extends Element> analyze(Iterable<? extends Element> classes) {
enter(null); // ensure all classes have been entered
final ListBuffer<Element> results = new ListBuffer<>();
try {
if (classes == null) {
handleFlowResults(c... |
public class class_name {
public GlobusResource getResource(String location) {
GlobusResource returnResource;
URL resourceURL;
if (location.startsWith("classpath:")) {
resourceURL = getClass().getClassLoader().getResource(location.replaceFirst("classpath:/", ""));
return... | public class class_name {
public GlobusResource getResource(String location) {
GlobusResource returnResource;
URL resourceURL;
if (location.startsWith("classpath:")) {
resourceURL = getClass().getClassLoader().getResource(location.replaceFirst("classpath:/", "")); // depends on cont... |
public class class_name {
void cfftf(double a[], int offa, int isign) {
int idot;
int l1, l2;
int na, nf, ip, iw, ido, idl1;
final int twon = 2 * n;
int iw1, iw2;
double[] ch = ch2;
iw1 = twon;
iw2 = 4 * n;
nac[0] = 0;
nf = (int) wtable[1 + iw2];
na = 0;
l1 = 1;
iw = iw1;
for (int k1 = 2;... | public class class_name {
void cfftf(double a[], int offa, int isign) {
int idot;
int l1, l2;
int na, nf, ip, iw, ido, idl1;
final int twon = 2 * n;
int iw1, iw2;
double[] ch = ch2;
iw1 = twon;
iw2 = 4 * n;
nac[0] = 0;
nf = (int) wtable[1 + iw2];
na = 0;
l1 = 1;
iw = iw1;
for (int k1 = 2;... |
public class class_name {
public static BigDecimal maximum(BigDecimal... values)
{
int len = values.length;
if (len == 1)
{
if (values[0] == null)
{
throw new IllegalArgumentException("Cannot passed null BigDecimal entry to maximum()");
}
... | public class class_name {
public static BigDecimal maximum(BigDecimal... values)
{
int len = values.length;
if (len == 1)
{
if (values[0] == null)
{
throw new IllegalArgumentException("Cannot passed null BigDecimal entry to maximum()");
}
... |
public class class_name {
public ListInstancesResponse listInstances(ListInstancesRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, INSTANCE_PREFIX);
if (request.getMarker() != null) {
... | public class class_name {
public ListInstancesResponse listInstances(ListInstancesRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, INSTANCE_PREFIX);
if (request.getMarker() != null) {
... |
public class class_name {
private void throwPreferedIPv4StackIPv6AddressError(String location, List<TcpResourceAddress> tcpAddresses) {
try {
InetAddress address = InetAddress.getByName(URIUtils.getHost(location));
boolean preferIPv4Stack = Boolean.parseBoolean(System.getProperty(JAVA_N... | public class class_name {
private void throwPreferedIPv4StackIPv6AddressError(String location, List<TcpResourceAddress> tcpAddresses) {
try {
InetAddress address = InetAddress.getByName(URIUtils.getHost(location));
boolean preferIPv4Stack = Boolean.parseBoolean(System.getProperty(JAVA_N... |
public class class_name {
private static void padInt(StringBuilder buffer, int value, int length) {
String strValue = Integer.toString(value);
for (int i = length - strValue.length(); i > 0; i--) {
buffer.append('0');
}
buffer.append(strValue);
} } | public class class_name {
private static void padInt(StringBuilder buffer, int value, int length) {
String strValue = Integer.toString(value);
for (int i = length - strValue.length(); i > 0; i--) {
buffer.append('0'); // depends on control dependency: [for], data = [none]
}
... |
public class class_name {
public FieldTable linkNewRemoteTable(FieldList record, boolean bUseCache)
{
FieldTable table = record.getTable();
if (table == null)
{
RemoteTable remoteTable = null;
try {
synchronized (this.getRemoteTask())
... | public class class_name {
public FieldTable linkNewRemoteTable(FieldList record, boolean bUseCache)
{
FieldTable table = record.getTable();
if (table == null)
{
RemoteTable remoteTable = null;
try {
synchronized (this.getRemoteTask()) // depends on ... |
public class class_name {
public final void setOptions(Map<String, ?> options) {
/* Is verification of YubiKey owners enabled? */
this.verify_yubikey_owner = true;
if (options.get(OPTION_YUBICO_VERIFY_YK_OWNER) != null) {
if ("false".equals(options.get(OPTION_YUBICO_VERIFY_YK_OWNER)... | public class class_name {
public final void setOptions(Map<String, ?> options) {
/* Is verification of YubiKey owners enabled? */
this.verify_yubikey_owner = true;
if (options.get(OPTION_YUBICO_VERIFY_YK_OWNER) != null) {
if ("false".equals(options.get(OPTION_YUBICO_VERIFY_YK_OWNER)... |
public class class_name {
public DatalogProgram createDatalog(SWRLRule rule){
rule.accept(this);
if (notSupported){
log.warn("Not Supported Translation of: "+ errors);
errors.clear();
}
DatalogProgram dp = datalogFactory.getDatalogProgram();
dp.appendRule(facts);
return dp;
} } | public class class_name {
public DatalogProgram createDatalog(SWRLRule rule){
rule.accept(this);
if (notSupported){
log.warn("Not Supported Translation of: "+ errors); // depends on control dependency: [if], data = [none]
errors.clear(); // depends on control dependency: [if], data = [none]
}
Data... |
public class class_name {
public void stopSyncPostJournal(AlluxioURI syncPoint) throws InvalidPathException {
MountTable.Resolution resolution = mMountTable.resolve(syncPoint);
long mountId = resolution.getMountId();
// Remove initial sync thread
Future<?> syncFuture = mSyncPathStatus.remove(syncPoint)... | public class class_name {
public void stopSyncPostJournal(AlluxioURI syncPoint) throws InvalidPathException {
MountTable.Resolution resolution = mMountTable.resolve(syncPoint);
long mountId = resolution.getMountId();
// Remove initial sync thread
Future<?> syncFuture = mSyncPathStatus.remove(syncPoint)... |
public class class_name {
public void marshall(Attachment attachment, ProtocolMarshaller protocolMarshaller) {
if (attachment == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(attachment.getFileName... | public class class_name {
public void marshall(Attachment attachment, ProtocolMarshaller protocolMarshaller) {
if (attachment == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(attachment.getFileName... |
public class class_name {
public static void helpQuiesce() {
Thread t;
if ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) {
ForkJoinWorkerThread wt = (ForkJoinWorkerThread) t;
wt.pool.helpQuiescePool(wt.workQueue);
} else
ForkJoinPool.quiesceCommonPool();
} } | public class class_name {
public static void helpQuiesce() {
Thread t;
if ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) {
ForkJoinWorkerThread wt = (ForkJoinWorkerThread) t;
wt.pool.helpQuiescePool(wt.workQueue); // depends on control dependency: [if], data = [none]
} else
... |
public class class_name {
protected static Object fixupRefRelativeRowOneToOne(final Object ptg,
final Row newRow) {
if (ptg instanceof RefPtgBase) {
if (ptg instanceof Ref3DPxg) {
Ref3DPxg ref3dPxg = (Ref3DPxg) ptg;
Ref3DPxg new3dpxg = new Ref3DPxg(
ref3dPxg.getExternalWorkbookNumber(),
... | public class class_name {
protected static Object fixupRefRelativeRowOneToOne(final Object ptg,
final Row newRow) {
if (ptg instanceof RefPtgBase) {
if (ptg instanceof Ref3DPxg) {
Ref3DPxg ref3dPxg = (Ref3DPxg) ptg;
Ref3DPxg new3dpxg = new Ref3DPxg(
ref3dPxg.getExternalWorkbookNumber(),
... |
public class class_name {
public CmsPermissionSetCustom getPermissions(CmsUser user, List<CmsGroup> groups, List<CmsRole> roles) {
CmsPermissionSetCustom sum = new CmsPermissionSetCustom();
boolean hasPermissions = false;
CmsPermissionSet p = m_permissions.get(user.getId());
if (p != n... | public class class_name {
public CmsPermissionSetCustom getPermissions(CmsUser user, List<CmsGroup> groups, List<CmsRole> roles) {
CmsPermissionSetCustom sum = new CmsPermissionSetCustom();
boolean hasPermissions = false;
CmsPermissionSet p = m_permissions.get(user.getId());
if (p != n... |
public class class_name {
private static TypeElement resolveType(Elements elements, String className, StringBuilder sb,
final int index) {
// We assume '$' should be converted to '.'. So we search for classes with dots first.
sb.setCharAt(index, '.');
int nextIndex = nextDollar(className, sb, index ... | public class class_name {
private static TypeElement resolveType(Elements elements, String className, StringBuilder sb,
final int index) {
// We assume '$' should be converted to '.'. So we search for classes with dots first.
sb.setCharAt(index, '.');
int nextIndex = nextDollar(className, sb, index ... |
public class class_name {
@Deprecated
public final long sslCtxPointer() {
Lock readerLock = ctxLock.readLock();
readerLock.lock();
try {
return SSLContext.getSslCtx(ctx);
} finally {
readerLock.unlock();
}
} } | public class class_name {
@Deprecated
public final long sslCtxPointer() {
Lock readerLock = ctxLock.readLock();
readerLock.lock();
try {
return SSLContext.getSslCtx(ctx); // depends on control dependency: [try], data = [none]
} finally {
readerLock.unlock();
... |
public class class_name {
public static void addHttp2ToHttpHeaders(int streamId, Http2Headers inputHeaders, HttpHeaders outputHeaders,
HttpVersion httpVersion, boolean isTrailer, boolean isRequest) throws Http2Exception {
Http2ToHttpHeaderTranslator translator = new Http2ToHttpHeaderTranslator(stre... | public class class_name {
public static void addHttp2ToHttpHeaders(int streamId, Http2Headers inputHeaders, HttpHeaders outputHeaders,
HttpVersion httpVersion, boolean isTrailer, boolean isRequest) throws Http2Exception {
Http2ToHttpHeaderTranslator translator = new Http2ToHttpHeaderTranslator(stre... |
public class class_name {
@SneakyThrows(DurableDataLogException.class)
private void tryTruncate(LedgerAddress upToAddress) {
long traceId = LoggerHelpers.traceEnterWithContext(log, this.traceObjectId, "tryTruncate", upToAddress);
// Truncate the metadata and get a new copy of it.
val oldMe... | public class class_name {
@SneakyThrows(DurableDataLogException.class)
private void tryTruncate(LedgerAddress upToAddress) {
long traceId = LoggerHelpers.traceEnterWithContext(log, this.traceObjectId, "tryTruncate", upToAddress);
// Truncate the metadata and get a new copy of it.
val oldMe... |
public class class_name {
@Override
public boolean scrollByOffset(final float xOffset, final float yOffset, final float zOffset,
final LayoutScroller.OnScrollListener listener) {
if (isScrolling()) {
return false;
}
Vector3Axis offset = new Vec... | public class class_name {
@Override
public boolean scrollByOffset(final float xOffset, final float yOffset, final float zOffset,
final LayoutScroller.OnScrollListener listener) {
if (isScrolling()) {
return false; // depends on control dependency: [if], data = ... |
public class class_name {
@Override
public SocketAddress getLocalSocketAddress() {
if(session != null && session.isOpen()){
return session.getLocalAddress();
}
return null;
} } | public class class_name {
@Override
public SocketAddress getLocalSocketAddress() {
if(session != null && session.isOpen()){
return session.getLocalAddress(); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public void setCertificates(java.util.Collection<Certificate> certificates) {
if (certificates == null) {
this.certificates = null;
return;
}
this.certificates = new java.util.ArrayList<Certificate>(certificates);
} } | public class class_name {
public void setCertificates(java.util.Collection<Certificate> certificates) {
if (certificates == null) {
this.certificates = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static void setRequiredFieldConf(Configuration conf,
RequiredFieldList requiredFieldList) {
// set required fields conf for RCFile[Protobuf|Thrift] input format
String value = "";
if (requiredFieldList != null) {
List<In... | public class class_name {
public static void setRequiredFieldConf(Configuration conf,
RequiredFieldList requiredFieldList) {
// set required fields conf for RCFile[Protobuf|Thrift] input format
String value = "";
if (requiredFieldList != null) {
List<In... |
public class class_name {
@Override
public void removeByCPOptionCategoryId(long CPOptionCategoryId) {
for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : findByCPOptionCategoryId(
CPOptionCategoryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpDefinitionSpecificationO... | public class class_name {
@Override
public void removeByCPOptionCategoryId(long CPOptionCategoryId) {
for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : findByCPOptionCategoryId(
CPOptionCategoryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpDefinitionSpecificationO... |
public class class_name {
AttributeSet withLocale(Locale locale) {
Attributes.Builder builder = new Attributes.Builder();
builder.setAll(this.attributes);
String plus;
String minus;
String lang = LanguageMatch.getAlias(locale);
String country = FormatUtils.getRegion(lo... | public class class_name {
AttributeSet withLocale(Locale locale) {
Attributes.Builder builder = new Attributes.Builder();
builder.setAll(this.attributes);
String plus;
String minus;
String lang = LanguageMatch.getAlias(locale);
String country = FormatUtils.getRegion(lo... |
public class class_name {
public ListChannelsResult withChannels(Channel... channels) {
if (this.channels == null) {
setChannels(new java.util.ArrayList<Channel>(channels.length));
}
for (Channel ele : channels) {
this.channels.add(ele);
}
return this;
... | public class class_name {
public ListChannelsResult withChannels(Channel... channels) {
if (this.channels == null) {
setChannels(new java.util.ArrayList<Channel>(channels.length)); // depends on control dependency: [if], data = [none]
}
for (Channel ele : channels) {
thi... |
public class class_name {
@Override
public List<Class<?>> retrieveJAXWSHandlers(J2EEName j2eeName) {
JaxWsModuleMetaData jaxWsModuleMetaData = JaxWsMetaDataManager.getJaxWsModuleMetaData();
if (jaxWsModuleMetaData == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled... | public class class_name {
@Override
public List<Class<?>> retrieveJAXWSHandlers(J2EEName j2eeName) {
JaxWsModuleMetaData jaxWsModuleMetaData = JaxWsMetaDataManager.getJaxWsModuleMetaData();
if (jaxWsModuleMetaData == null) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled... |
public class class_name {
public static Query setPageParameter(Query query, Pageable pageable){
if( notNull( pageable ) ){
query.setFirstResult( (pageable.getPageNumber()-1) * pageable.getPageSize() );
query.setMaxResults(pageable.getPageSize());
}
return query;
} } | public class class_name {
public static Query setPageParameter(Query query, Pageable pageable){
if( notNull( pageable ) ){
query.setFirstResult( (pageable.getPageNumber()-1) * pageable.getPageSize() );
// depends on control dependency: [if], data = [none]
query.setMaxResults(pageable.getPageSize());
// dep... |
public class class_name {
public List<ContainerRuntimeOptionType<PortletDescriptor>> getAllContainerRuntimeOption()
{
List<ContainerRuntimeOptionType<PortletDescriptor>> list = new ArrayList<ContainerRuntimeOptionType<PortletDescriptor>>();
List<Node> nodeList = model.get("container-runtime-option");
... | public class class_name {
public List<ContainerRuntimeOptionType<PortletDescriptor>> getAllContainerRuntimeOption()
{
List<ContainerRuntimeOptionType<PortletDescriptor>> list = new ArrayList<ContainerRuntimeOptionType<PortletDescriptor>>();
List<Node> nodeList = model.get("container-runtime-option");
... |
public class class_name {
public static Set<String> getRequiredFields(Query query)
{
Set<String> dimensions = new HashSet<>();
Set<String> dimsInFilter = null == query.getFilter() ? new HashSet<String>() : query.getFilter().getRequiredColumns();
dimensions.addAll(dimsInFilter);
if (query instanceof ... | public class class_name {
public static Set<String> getRequiredFields(Query query)
{
Set<String> dimensions = new HashSet<>();
Set<String> dimsInFilter = null == query.getFilter() ? new HashSet<String>() : query.getFilter().getRequiredColumns();
dimensions.addAll(dimsInFilter);
if (query instanceof ... |
public class class_name {
@Process(actionType = InitBatch.class)
public void init(final Dispatcher.Channel channel) {
List<ModelNode> steps = new ArrayList<>();
steps.add(readResourceOp(BATCH_ADDRESS));
steps.add(readResourceOp(THREAD_POOL_ADDRESS));
steps.add(readResourceOp(JOB_REP... | public class class_name {
@Process(actionType = InitBatch.class)
public void init(final Dispatcher.Channel channel) {
List<ModelNode> steps = new ArrayList<>();
steps.add(readResourceOp(BATCH_ADDRESS));
steps.add(readResourceOp(THREAD_POOL_ADDRESS));
steps.add(readResourceOp(JOB_REP... |
public class class_name {
protected Edge buildPotential11Edge(Vertex vertex1, Vertex vertex2, boolean fkToRef)
{
ModificationState state1 = vertex1.getEnvelope().getModificationState();
ModificationState state2 = vertex2.getEnvelope().getModificationState();
if (state1.needsUpdate() || ... | public class class_name {
protected Edge buildPotential11Edge(Vertex vertex1, Vertex vertex2, boolean fkToRef)
{
ModificationState state1 = vertex1.getEnvelope().getModificationState();
ModificationState state2 = vertex2.getEnvelope().getModificationState();
if (state1.needsUpdate() || ... |
public class class_name {
public void execute(FunctionContext<String[]> fc)
{
ResultSender<Object> rs = fc.getResultSender();
try
{
boolean didExport = false;
if(fc instanceof RegionFunctionContext)
{
String[] args = fc.getArguments();
didExport = this.exportRegion(((Reg... | public class class_name {
public void execute(FunctionContext<String[]> fc)
{
ResultSender<Object> rs = fc.getResultSender();
try
{
boolean didExport = false;
if(fc instanceof RegionFunctionContext)
{
String[] args = fc.getArguments();
didExport = this.exportRegion(((Reg... |
public class class_name {
public static boolean alg_52(int[] blz, int[] number) {
boolean ok;
if (number[0] == 9) {
ok = alg_20(blz, number);
} else {
//Kontonummer muss 8-stellig sein (mgl: number[2] darf 0 sein, d.h. Kontonummer faengt mit 0 an
if (number... | public class class_name {
public static boolean alg_52(int[] blz, int[] number) {
boolean ok;
if (number[0] == 9) {
ok = alg_20(blz, number); // depends on control dependency: [if], data = [none]
} else {
//Kontonummer muss 8-stellig sein (mgl: number[2] darf 0 sein, d... |
public class class_name {
private void displayValue() {
if (m_resultList == null) {
if (!m_loadingCategoryTree) {
m_loadingCategoryTree = true;
// generate a list of all configured categories.
final String category = m_category;
final... | public class class_name {
private void displayValue() {
if (m_resultList == null) {
if (!m_loadingCategoryTree) {
m_loadingCategoryTree = true; // depends on control dependency: [if], data = [none]
// generate a list of all configured categories.
fin... |
public class class_name {
protected void addProperties(Root<T> root, Set<String> properties) {
// Si le conteneur est vide
if(properties == null || properties.size() == 0) return;
// Parcours du conteneur
for (String property : properties) {
// Si la ppt est nulle ou vide
if(property =... | public class class_name {
protected void addProperties(Root<T> root, Set<String> properties) {
// Si le conteneur est vide
if(properties == null || properties.size() == 0) return;
// Parcours du conteneur
for (String property : properties) {
// Si la ppt est nulle ou vide
if(property =... |
public class class_name {
@Override
public Integer getId() {
try {
return ProcessUtils.readPid(ProcessUtils.findPidFile(getDirectory()));
}
catch (Throwable cause) {
if (cause instanceof PidUnknownException) {
throw (PidUnknownException) cause;
}
throw new PidUnknownExcep... | public class class_name {
@Override
public Integer getId() {
try {
return ProcessUtils.readPid(ProcessUtils.findPidFile(getDirectory())); // depends on control dependency: [try], data = [none]
}
catch (Throwable cause) {
if (cause instanceof PidUnknownException) {
throw (PidUnknownExc... |
public class class_name {
public static boolean checkPermission(Context context, String permission) {
boolean hasPermission =
(PackageManager.PERMISSION_GRANTED == context.checkCallingOrSelfPermission(permission));
if (!hasPermission) {
printErrorLog("permission " + permission + " is missing!");
... | public class class_name {
public static boolean checkPermission(Context context, String permission) {
boolean hasPermission =
(PackageManager.PERMISSION_GRANTED == context.checkCallingOrSelfPermission(permission));
if (!hasPermission) {
printErrorLog("permission " + permission + " is missing!"); ... |
public class class_name {
public static Map<Integer, PrimaryKey> constructPrimaryKeyMap(Collection<PrimaryKey> aPrimaryKeys)
{
if (aPrimaryKeys == null)
return null;
Map<Integer, PrimaryKey> map = new HashMap<Integer, PrimaryKey>(aPrimaryKeys.size());
PrimaryKey primaryKey = null;
for (Iterator<Pri... | public class class_name {
public static Map<Integer, PrimaryKey> constructPrimaryKeyMap(Collection<PrimaryKey> aPrimaryKeys)
{
if (aPrimaryKeys == null)
return null;
Map<Integer, PrimaryKey> map = new HashMap<Integer, PrimaryKey>(aPrimaryKeys.size());
PrimaryKey primaryKey = null;
for (Iterator<Pri... |
public class class_name {
public EClass getIfcElementAssembly() {
if (ifcElementAssemblyEClass == null) {
ifcElementAssemblyEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(197);
}
return ifcElementAssemblyEClass;
} } | public class class_name {
public EClass getIfcElementAssembly() {
if (ifcElementAssemblyEClass == null) {
ifcElementAssemblyEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(197);
// depends on control dependency: [if], data = [none]
}
return i... |
public class class_name {
public java.util.List<String> getCustomEndpoints() {
if (customEndpoints == null) {
customEndpoints = new com.amazonaws.internal.SdkInternalList<String>();
}
return customEndpoints;
} } | public class class_name {
public java.util.List<String> getCustomEndpoints() {
if (customEndpoints == null) {
customEndpoints = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return customEndpoints;
} } |
public class class_name {
public static boolean isIPv4(final String ip) {
if (StringUtils.isBlank(ip)) {
return false;
}
final String regex = "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4]... | public class class_name {
public static boolean isIPv4(final String ip) {
if (StringUtils.isBlank(ip)) {
return false; // depends on control dependency: [if], data = [none]
}
final String regex = "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(2... |
public class class_name {
@Override
protected void run() throws Exception {
final String iterationId = getConfiguration().getIterationId();
if (iterationId == null || iterationId.length() == 0) {
throw new Exception("Missing iteration ID in the task configuration");
}
final String brokerID = createBroker... | public class class_name {
@Override
protected void run() throws Exception {
final String iterationId = getConfiguration().getIterationId();
if (iterationId == null || iterationId.length() == 0) {
throw new Exception("Missing iteration ID in the task configuration");
}
final String brokerID = createBroker... |
public class class_name {
private boolean compareTo(Object relationalEntity, Object originalEntity)
{
if (relationalEntity != null && originalEntity != null
&& relationalEntity.getClass().isAssignableFrom(originalEntity.getClass()))
{
EntityMetadata metadata = KunderaMet... | public class class_name {
private boolean compareTo(Object relationalEntity, Object originalEntity)
{
if (relationalEntity != null && originalEntity != null
&& relationalEntity.getClass().isAssignableFrom(originalEntity.getClass()))
{
EntityMetadata metadata = KunderaMet... |
public class class_name {
public void marshall(UpdateRegexPatternSetRequest updateRegexPatternSetRequest, ProtocolMarshaller protocolMarshaller) {
if (updateRegexPatternSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(UpdateRegexPatternSetRequest updateRegexPatternSetRequest, ProtocolMarshaller protocolMarshaller) {
if (updateRegexPatternSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static boolean ifNotBlank(final String text, final Consumer<String> consumer) {
if (StringUtils.isNotBlank(text)) {
consumer.accept(text);
return true;
}
return false;
} } | public class class_name {
public static boolean ifNotBlank(final String text, final Consumer<String> consumer) {
if (StringUtils.isNotBlank(text)) {
consumer.accept(text);
// depends on control dependency: [if], data = [none]
return true;
// depends on control dependency: [if], data... |
public class class_name {
public static dnssrvrec[] get(nitro_service service, dnssrvrec obj[]) throws Exception{
if (obj != null && obj.length > 0) {
dnssrvrec response[] = new dnssrvrec[obj.length];
for (int i=0;i<obj.length;i++) {
options option = new options();
option.set_args(nitro_util.object_to_... | public class class_name {
public static dnssrvrec[] get(nitro_service service, dnssrvrec obj[]) throws Exception{
if (obj != null && obj.length > 0) {
dnssrvrec response[] = new dnssrvrec[obj.length];
for (int i=0;i<obj.length;i++) {
options option = new options();
option.set_args(nitro_util.object_to_... |
public class class_name {
public final static void getXteaSignature(byte[] array, int offset, int keyid) {
int num_rounds = 32;
int v0, v1, sum = 0, delta = 0x9E3779B9;
int[] k = XTEA_KEYS[keyid];
v0 = ByteBuffer.wrap(array, offset, 4).getInt();
v1 = ByteBuffer.wrap(array, ... | public class class_name {
public final static void getXteaSignature(byte[] array, int offset, int keyid) {
int num_rounds = 32;
int v0, v1, sum = 0, delta = 0x9E3779B9;
int[] k = XTEA_KEYS[keyid];
v0 = ByteBuffer.wrap(array, offset, 4).getInt();
v1 = ByteBuffer.wrap(array, ... |
public class class_name {
private String readExtensions(final String featureName) {
final Set<String> exts = new HashSet<>();
if (featureTable.containsKey(featureName)) {
for (final Value ext : featureTable.get(featureName)) {
final String e = ext.value.trim();
... | public class class_name {
private String readExtensions(final String featureName) {
final Set<String> exts = new HashSet<>();
if (featureTable.containsKey(featureName)) {
for (final Value ext : featureTable.get(featureName)) {
final String e = ext.value.trim();
... |
public class class_name {
public static boolean isMethodString(final String str) {
if (str == null) {
return false;
}
return str.matches(TieConstants.METHOD_REGEX);
} } | public class class_name {
public static boolean isMethodString(final String str) {
if (str == null) {
return false;
// depends on control dependency: [if], data = [none]
}
return str.matches(TieConstants.METHOD_REGEX);
} } |
public class class_name {
@Override
public Double getValue(GriddedTile griddedTile, byte[] imageBytes, int x,
int y) {
BufferedImage image;
try {
image = ImageUtils.getImage(imageBytes);
} catch (IOException e) {
throw new GeoPackageException(
"Failed to create an image from image bytes", e);
}
... | public class class_name {
@Override
public Double getValue(GriddedTile griddedTile, byte[] imageBytes, int x,
int y) {
BufferedImage image;
try {
image = ImageUtils.getImage(imageBytes); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
throw new GeoPackageException(
... |
public class class_name {
@Override
public JobIntentService.GenericWorkItem dequeueWork() {
JobWorkItem work = null;
synchronized (mLock) {
if (mParams == null) {
return null;
}
try {
work = mParams.dequeueWork();
} cat... | public class class_name {
@Override
public JobIntentService.GenericWorkItem dequeueWork() {
JobWorkItem work = null;
synchronized (mLock) {
if (mParams == null) {
return null; // depends on control dependency: [if], data = [none]
}
try {
... |
public class class_name {
private SynchronizationAdapter createSynchronizationAdapter(Transaction transaction) {
SynchronizationAdapter adapter = new SynchronizationAdapter(transaction, RemoteXid.create(uuid));
try {
transaction.registerSynchronization(adapter);
} catch (RollbackException | ... | public class class_name {
private SynchronizationAdapter createSynchronizationAdapter(Transaction transaction) {
SynchronizationAdapter adapter = new SynchronizationAdapter(transaction, RemoteXid.create(uuid));
try {
transaction.registerSynchronization(adapter); // depends on control dependency: [... |
public class class_name {
public boolean doAction(String strAction, int iOptions)
{
if (SEND.equalsIgnoreCase(strAction))
{
String strMessage = m_tfTextIn.getText();
m_tfTextIn.setText(Constants.BLANK);
Map<String,Object> properties = new Hashtable<String,Object... | public class class_name {
public boolean doAction(String strAction, int iOptions)
{
if (SEND.equalsIgnoreCase(strAction))
{
String strMessage = m_tfTextIn.getText();
m_tfTextIn.setText(Constants.BLANK); // depends on control dependency: [if], data = [none]
Map<S... |
public class class_name {
@Override
public void complete(VirtualConnection vc, TCPWriteRequestContext wsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "complete, vc=" + getVCHash());
}
synchronized (closeSync) {
if (closeCalled)... | public class class_name {
@Override
public void complete(VirtualConnection vc, TCPWriteRequestContext wsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "complete, vc=" + getVCHash()); // depends on control dependency: [if], data = [none]
}
s... |
public class class_name {
private void updateWithGroupDn(final LDAPGroup group, final LdapConnection connection, final String groupDn, final String scope) throws IOException, LdapException, CursorException, FrameworkException {
final Map<String, String> possibleGroupNames = getGroupMapping();
final List<LDAPUser>... | public class class_name {
private void updateWithGroupDn(final LDAPGroup group, final LdapConnection connection, final String groupDn, final String scope) throws IOException, LdapException, CursorException, FrameworkException {
final Map<String, String> possibleGroupNames = getGroupMapping();
final List<LDAPUser>... |
public class class_name {
public void marshall(VideoSelector videoSelector, ProtocolMarshaller protocolMarshaller) {
if (videoSelector == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(videoSelector... | public class class_name {
public void marshall(VideoSelector videoSelector, ProtocolMarshaller protocolMarshaller) {
if (videoSelector == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(videoSelector... |
public class class_name {
public SizeableLinkedList<WAMInstruction> compileBodyArguments(Functor functor, boolean isFirstBody,
FunctorName clauseName, int bodyNumber)
{
SizeableLinkedList<WAMInstruction> result = new SizeableLinkedList<WAMInstruction>();
SizeableLinkedList<WAMInstruction> i... | public class class_name {
public SizeableLinkedList<WAMInstruction> compileBodyArguments(Functor functor, boolean isFirstBody,
FunctorName clauseName, int bodyNumber)
{
SizeableLinkedList<WAMInstruction> result = new SizeableLinkedList<WAMInstruction>();
SizeableLinkedList<WAMInstruction> i... |
public class class_name {
public List<WsByteBuffer> compress(WsByteBuffer buffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "compress, input=" + buffer);
}
List<WsByteBuffer> list = new LinkedList<WsByteBuffer>();
list = compress(list,... | public class class_name {
public List<WsByteBuffer> compress(WsByteBuffer buffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "compress, input=" + buffer); // depends on control dependency: [if], data = [none]
}
List<WsByteBuffer> list = new Lin... |
public class class_name {
public static Map<String, List<TraceEvent>> filterCCMPoolEvents(List<TraceEvent> data) throws Exception
{
Map<String, List<TraceEvent>> result = new TreeMap<String, List<TraceEvent>>();
for (TraceEvent te : data)
{
if (te.getType() == TraceEvent.REGISTER_CCM_CON... | public class class_name {
public static Map<String, List<TraceEvent>> filterCCMPoolEvents(List<TraceEvent> data) throws Exception
{
Map<String, List<TraceEvent>> result = new TreeMap<String, List<TraceEvent>>();
for (TraceEvent te : data)
{
if (te.getType() == TraceEvent.REGISTER_CCM_CON... |
public class class_name {
protected void createLoginControlDataObject(Root inputRootDataObject, String inputProperty) {
// use the root DataGraph to create a PropertyControl DataGraph
List<Control> propertyControls = inputRootDataObject.getControls();
LoginControl loginCtrl = null;
if (... | public class class_name {
protected void createLoginControlDataObject(Root inputRootDataObject, String inputProperty) {
// use the root DataGraph to create a PropertyControl DataGraph
List<Control> propertyControls = inputRootDataObject.getControls();
LoginControl loginCtrl = null;
if (... |
public class class_name {
public Header getHeader() {
List<Header> list = this.getDescendants(Header.class);
if (list.size() > 0) {
return list.get(0);
} else {
return null;
}
} } | public class class_name {
public Header getHeader() {
List<Header> list = this.getDescendants(Header.class);
if (list.size() > 0) {
return list.get(0); // depends on control dependency: [if], data = [0)]
} else {
return null; // depends on control dependency: [if], data ... |
public class class_name {
public void requestFailed (Exception cause)
{
Object[] args = _args != null ? ArrayUtil.append(_args, cause) : new Object[] { cause };
if (_slogger != null) {
_slogger.warning(_errorText, args);
} else if (_jlogger != null) {
_jlogger.log(Le... | public class class_name {
public void requestFailed (Exception cause)
{
Object[] args = _args != null ? ArrayUtil.append(_args, cause) : new Object[] { cause };
if (_slogger != null) {
_slogger.warning(_errorText, args); // depends on control dependency: [if], data = [none]
} el... |
public class class_name {
public void sortObject( SortableParameter_F32 input[] , int start , int length ) {
for( int i = 0; i < histIndexes.size; i++ ) {
histObjs[i].reset();
}
for( int i = 0; i < length; i++ ) {
int indexInput = i+start;
SortableParameter_F32 p = input[indexInput];
int discretize... | public class class_name {
public void sortObject( SortableParameter_F32 input[] , int start , int length ) {
for( int i = 0; i < histIndexes.size; i++ ) {
histObjs[i].reset(); // depends on control dependency: [for], data = [i]
}
for( int i = 0; i < length; i++ ) {
int indexInput = i+start;
SortablePa... |
public class class_name {
public final void retag(final Element root, final String selector,
final String tag) {
final Iterable<Element> elements; // Elements selected
checkNotNull(root, "Received a null pointer as root element");
checkNotNull(selector, "Received a null pointer as ... | public class class_name {
public final void retag(final Element root, final String selector,
final String tag) {
final Iterable<Element> elements; // Elements selected
checkNotNull(root, "Received a null pointer as root element");
checkNotNull(selector, "Received a null pointer as ... |
public class class_name {
private void convertClassInitializer(AbstractTypeDeclaration typeDecl) {
EntityDeclaration decl = classFile.getMethod("<clinit>", "()V");
if (decl == null) {
return; // Class doesn't have a static initializer.
}
MethodTranslator translator = new MethodTranslator(
... | public class class_name {
private void convertClassInitializer(AbstractTypeDeclaration typeDecl) {
EntityDeclaration decl = classFile.getMethod("<clinit>", "()V");
if (decl == null) {
return; // Class doesn't have a static initializer. // depends on control dependency: [if], data = [none]
}
Meth... |
public class class_name {
public Observable<ServiceResponse<Page<RecommendationInner>>> listHistoryForWebAppNextWithServiceResponseAsync(final String nextPageLink) {
return listHistoryForWebAppNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<RecommendationInner>>, Observa... | public class class_name {
public Observable<ServiceResponse<Page<RecommendationInner>>> listHistoryForWebAppNextWithServiceResponseAsync(final String nextPageLink) {
return listHistoryForWebAppNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<RecommendationInner>>, Observa... |
public class class_name {
public static Map<Integer, Integer> getMapOfContiguousPartitions(final Cluster cluster,
int zoneId) {
List<Integer> partitionIds = new ArrayList<Integer>(cluster.getPartitionIdsInZone(zoneId));
Map<Integer, I... | public class class_name {
public static Map<Integer, Integer> getMapOfContiguousPartitions(final Cluster cluster,
int zoneId) {
List<Integer> partitionIds = new ArrayList<Integer>(cluster.getPartitionIdsInZone(zoneId));
Map<Integer, I... |
public class class_name {
public void setLedBlinking(final boolean BLINKING) {
if (null == ledBlinking) {
_ledBlinking = BLINKING;
if (_ledBlinking) {
startBlinkExecutorService();
} else {
if (null != blinkFuture) blinkFuture.cancel(true);
... | public class class_name {
public void setLedBlinking(final boolean BLINKING) {
if (null == ledBlinking) {
_ledBlinking = BLINKING; // depends on control dependency: [if], data = [none]
if (_ledBlinking) {
startBlinkExecutorService(); // depends on control dependency: [if... |
public class class_name {
public Period plusMinutes(int minutes) {
if (minutes == 0) {
return this;
}
int[] values = getValues(); // cloned
getPeriodType().addIndexedField(this, PeriodType.MINUTE_INDEX, values, minutes);
return new Period(values, getPeriodType());
... | public class class_name {
public Period plusMinutes(int minutes) {
if (minutes == 0) {
return this; // depends on control dependency: [if], data = [none]
}
int[] values = getValues(); // cloned
getPeriodType().addIndexedField(this, PeriodType.MINUTE_INDEX, values, minutes);... |
public class class_name {
public Date setMinSelectableDate(Date min) {
if (min == null) {
minSelectableDate = defaultMinSelectableDate;
} else {
minSelectableDate = min;
}
return minSelectableDate;
} } | public class class_name {
public Date setMinSelectableDate(Date min) {
if (min == null) {
minSelectableDate = defaultMinSelectableDate; // depends on control dependency: [if], data = [none]
} else {
minSelectableDate = min; // depends on control dependency: [if], data = [none]
}
return minSelectableDate;... |
public class class_name {
public Object findConvertStringToObject(String className, String versionRange, String string)
{
Object object = this.convertStringToObject(null, className, versionRange, string);
if (object == null) {
Object resource = this.deployThisResource(ClassFinderActivator... | public class class_name {
public Object findConvertStringToObject(String className, String versionRange, String string)
{
Object object = this.convertStringToObject(null, className, versionRange, string);
if (object == null) {
Object resource = this.deployThisResource(ClassFinderActivator... |
public class class_name {
public void marshall(PutGatewayResponseRequest putGatewayResponseRequest, ProtocolMarshaller protocolMarshaller) {
if (putGatewayResponseRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(PutGatewayResponseRequest putGatewayResponseRequest, ProtocolMarshaller protocolMarshaller) {
if (putGatewayResponseRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
public static Long parseDecimal(final String s) {
Long parsed = null;
try {
if (s != null) {
parsed = (long) Double.parseDouble(s);
}
} catch (final NumberFormatException e) {
}
return parsed;
} } | public class class_name {
public static Long parseDecimal(final String s) {
Long parsed = null;
try {
if (s != null) {
parsed = (long) Double.parseDouble(s); // depends on control dependency: [if], data = [(s]
}
} catch (final NumberFormatException e) {
... |
public class class_name {
public void requestSystemAlertPermission() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
try {
if (!isSystemAlertGranted()) {
Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" + context.... | public class class_name {
public void requestSystemAlertPermission() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
try {
if (!isSystemAlertGranted()) {
Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" + context.... |
public class class_name {
private void spoolContent(InputStream is) throws IOException, FileNotFoundException
{
SwapFile swapFile =
SwapFile.get(spoolConfig.tempDirectory, System.currentTimeMillis() + "_" + SEQUENCE.incrementAndGet(),
spoolConfig.fileCleaner);
try
{
O... | public class class_name {
private void spoolContent(InputStream is) throws IOException, FileNotFoundException
{
SwapFile swapFile =
SwapFile.get(spoolConfig.tempDirectory, System.currentTimeMillis() + "_" + SEQUENCE.incrementAndGet(),
spoolConfig.fileCleaner);
try
{
O... |
public class class_name {
public java.util.List<PlacementGroup> getPlacementGroups() {
if (placementGroups == null) {
placementGroups = new com.amazonaws.internal.SdkInternalList<PlacementGroup>();
}
return placementGroups;
} } | public class class_name {
public java.util.List<PlacementGroup> getPlacementGroups() {
if (placementGroups == null) {
placementGroups = new com.amazonaws.internal.SdkInternalList<PlacementGroup>(); // depends on control dependency: [if], data = [none]
}
return placementGroups;
}... |
public class class_name {
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector vec = new ASN1EncodableVector();
vec.add(this.policyLanguage);
if (this.policy != null) {
vec.add(this.policy);
}
return new DERSequence(vec);
} } | public class class_name {
public ASN1Primitive toASN1Primitive() {
ASN1EncodableVector vec = new ASN1EncodableVector();
vec.add(this.policyLanguage);
if (this.policy != null) {
vec.add(this.policy); // depends on control dependency: [if], data = [(this.policy]
}
... |
public class class_name {
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
if (AbstractDataSource.this.options.databaseLifecycleHandler != null) {
AbstractDataSource.this.options.databaseLifecycleHandler.onUpdate(db, oldVersion, newVersion, true);
versionChanged = true;
}
} } | public class class_name {
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
if (AbstractDataSource.this.options.databaseLifecycleHandler != null) {
AbstractDataSource.this.options.databaseLifecycleHandler.onUpdate(db, oldVersion, newVersion, true); // depends on control dependency: [if], ... |
public class class_name {
public static String replace(String original, String pattern, String replace) {
final int len = pattern.length();
int found = original.indexOf(pattern);
if (found > -1) {
StringBuilder sb = new StringBuilder();
int start = 0;
while (... | public class class_name {
public static String replace(String original, String pattern, String replace) {
final int len = pattern.length();
int found = original.indexOf(pattern);
if (found > -1) {
StringBuilder sb = new StringBuilder();
int start = 0;
while (... |
public class class_name {
public void learn(List<Sentence> sentenceList)
{
List<List<IWord>> s = new ArrayList<List<IWord>>(sentenceList.size());
for (Sentence sentence : sentenceList)
{
s.add(sentence.wordList);
}
compute(s);
} } | public class class_name {
public void learn(List<Sentence> sentenceList)
{
List<List<IWord>> s = new ArrayList<List<IWord>>(sentenceList.size());
for (Sentence sentence : sentenceList)
{
s.add(sentence.wordList); // depends on control dependency: [for], data = [sentence]
... |
public class class_name {
@Override
public void unsetMessageRouter(MessageRouter msgRouter) {
externalMessageRouter.compareAndSet(msgRouter, null);
if (msgRouter instanceof WsMessageRouter) {
unsetWsMessageRouter((WsMessageRouter) msgRouter);
}
} } | public class class_name {
@Override
public void unsetMessageRouter(MessageRouter msgRouter) {
externalMessageRouter.compareAndSet(msgRouter, null);
if (msgRouter instanceof WsMessageRouter) {
unsetWsMessageRouter((WsMessageRouter) msgRouter); // depends on control dependency: [if], dat... |
public class class_name {
public String[] getRoles(String username, char[] password) throws NamingException
{
String[] rolesArray = null;
DirContext ctx = null;
try
{
String userDN = toDN(username);
ctx = initContext(userDN, password);
SearchControls sc = new SearchControls();
St... | public class class_name {
public String[] getRoles(String username, char[] password) throws NamingException
{
String[] rolesArray = null;
DirContext ctx = null;
try
{
String userDN = toDN(username);
ctx = initContext(userDN, password);
SearchControls sc = new SearchControls();
St... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.