code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void securityCheck(Acl acl, int changeType) {
if ((SecurityContextHolder.getContext() == null)
|| (SecurityContextHolder.getContext().getAuthentication() == null)
|| !SecurityContextHolder.getContext().getAuthentication()
.isAuthenticated()) {
throw new AccessDeniedE... | public class class_name {
public void securityCheck(Acl acl, int changeType) {
if ((SecurityContextHolder.getContext() == null)
|| (SecurityContextHolder.getContext().getAuthentication() == null)
|| !SecurityContextHolder.getContext().getAuthentication()
.isAuthenticated()) {
throw new AccessDeniedE... |
public class class_name {
final protected AbstractIndexPage getPrevInnerPage(AbstractIndexPage indexPage) {
int pos = getPagePosition(indexPage);
if (pos > 0) {
AbstractIndexPage page = getPageByPos(pos-1);
if (page.isLeaf) {
return null;
}
return page;
}
if (getParent() == null) {
return nu... | public class class_name {
final protected AbstractIndexPage getPrevInnerPage(AbstractIndexPage indexPage) {
int pos = getPagePosition(indexPage);
if (pos > 0) {
AbstractIndexPage page = getPageByPos(pos-1);
if (page.isLeaf) {
return null; // depends on control dependency: [if], data = [none]
}
retu... |
public class class_name {
public void setResourceArns(java.util.Collection<String> resourceArns) {
if (resourceArns == null) {
this.resourceArns = null;
return;
}
this.resourceArns = new com.amazonaws.internal.SdkInternalList<String>(resourceArns);
} } | public class class_name {
public void setResourceArns(java.util.Collection<String> resourceArns) {
if (resourceArns == null) {
this.resourceArns = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public List<ActivitySpreadType.Period> getPeriod()
{
if (period == null)
{
period = new ArrayList<ActivitySpreadType.Period>();
}
return this.period;
} } | public class class_name {
public List<ActivitySpreadType.Period> getPeriod()
{
if (period == null)
{
period = new ArrayList<ActivitySpreadType.Period>(); // depends on control dependency: [if], data = [none]
}
return this.period;
} } |
public class class_name {
@Deprecated
public int numThreadLocalCaches() {
PoolArena<?>[] arenas = heapArenas != null ? heapArenas : directArenas;
if (arenas == null) {
return 0;
}
int total = 0;
for (PoolArena<?> arena : arenas) {
total += arena.numT... | public class class_name {
@Deprecated
public int numThreadLocalCaches() {
PoolArena<?>[] arenas = heapArenas != null ? heapArenas : directArenas;
if (arenas == null) {
return 0; // depends on control dependency: [if], data = [none]
}
int total = 0;
for (PoolAren... |
public class class_name {
public void setServerList(java.util.Collection<Server> serverList) {
if (serverList == null) {
this.serverList = null;
return;
}
this.serverList = new java.util.ArrayList<Server>(serverList);
} } | public class class_name {
public void setServerList(java.util.Collection<Server> serverList) {
if (serverList == null) {
this.serverList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.se... |
public class class_name {
public void marshall(DeregisterTaskDefinitionRequest deregisterTaskDefinitionRequest, ProtocolMarshaller protocolMarshaller) {
if (deregisterTaskDefinitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(DeregisterTaskDefinitionRequest deregisterTaskDefinitionRequest, ProtocolMarshaller protocolMarshaller) {
if (deregisterTaskDefinitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
private AdvancedModelWrapper performMerge(AdvancedModelWrapper source, AdvancedModelWrapper target) {
if (source == null || target == null) {
return null;
}
ModelDescription sourceDesc = source.getModelDescription();
ModelDescription targetDesc = ta... | public class class_name {
private AdvancedModelWrapper performMerge(AdvancedModelWrapper source, AdvancedModelWrapper target) {
if (source == null || target == null) {
return null; // depends on control dependency: [if], data = [none]
}
ModelDescription sourceDesc = source.getModelD... |
public class class_name {
protected void setAttachmentsInternal(Map<String, ? extends Attachment> attachments) {
if (attachments != null) {
// this awkward looking way of doing things is to avoid marking the map as being
// modified
HashMap<String, Attachment> m = new HashMa... | public class class_name {
protected void setAttachmentsInternal(Map<String, ? extends Attachment> attachments) {
if (attachments != null) {
// this awkward looking way of doing things is to avoid marking the map as being
// modified
HashMap<String, Attachment> m = new HashMa... |
public class class_name {
static void sleep(long n) {
try {
Thread.sleep(n);
} catch (InterruptedException e) {
LOG.warn("Thread interrupted", e);
Thread.currentThread().interrupt();
}
} } | public class class_name {
static void sleep(long n) {
try {
Thread.sleep(n); // depends on control dependency: [try], data = [none]
} catch (InterruptedException e) {
LOG.warn("Thread interrupted", e);
Thread.currentThread().interrupt();
} // depends on control dependency: [catch], data =... |
public class class_name {
private <T> Class<? extends Annotation> matchImplementationToScope(Class<?> implementation) {
for (Annotation next : implementation.getAnnotations()) {
Class<? extends Annotation> nextType = next.annotationType();
if (nextType.getAnnotation(BindingScope.cl... | public class class_name {
private <T> Class<? extends Annotation> matchImplementationToScope(Class<?> implementation) {
for (Annotation next : implementation.getAnnotations()) {
Class<? extends Annotation> nextType = next.annotationType();
if (nextType.getAnnotation(BindingScope.cl... |
public class class_name {
public void cancel() {
final OnCancelListener listener;
synchronized (this) {
if (mIsCanceled) {
return;
}
mIsCanceled = true;
mCancelInProgress = true;
listener = mOnCancelListener;
}
... | public class class_name {
public void cancel() {
final OnCancelListener listener;
synchronized (this) {
if (mIsCanceled) {
return; // depends on control dependency: [if], data = [none]
}
mIsCanceled = true;
mCancelInProgress = true;
... |
public class class_name {
@Override
protected void onStart()
{
m_mappings = new HashMap<Bundle, List<T>>();
// listen to bundles events
m_context.addBundleListener( m_bundleListener = new SynchronousBundleListener()
{
public void bundleChanged( final BundleE... | public class class_name {
@Override
protected void onStart()
{
m_mappings = new HashMap<Bundle, List<T>>();
// listen to bundles events
m_context.addBundleListener( m_bundleListener = new SynchronousBundleListener()
{
public void bundleChanged( final BundleE... |
public class class_name {
public void setValidNextSteps(java.util.Collection<String> validNextSteps) {
if (validNextSteps == null) {
this.validNextSteps = null;
return;
}
this.validNextSteps = new com.amazonaws.internal.SdkInternalList<String>(validNextSteps);
} } | public class class_name {
public void setValidNextSteps(java.util.Collection<String> validNextSteps) {
if (validNextSteps == null) {
this.validNextSteps = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void moveThisFile(File fileSource, File fileDestDir, String strDestName)
{
try {
fileDestDir.mkdirs();
FileInputStream fileIn = new FileInputStream(fileSource);
InputStreamReader inStream = new InputStreamReader(fileIn);
Str... | public class class_name {
public void moveThisFile(File fileSource, File fileDestDir, String strDestName)
{
try {
fileDestDir.mkdirs(); // depends on control dependency: [try], data = [none]
FileInputStream fileIn = new FileInputStream(fileSource);
InputStreamReader in... |
public class class_name {
private void decodeMultipartFormData(ContentType contentType, ByteBuffer fbuf, Map<String, List<String>> parms, Map<String, String> files) throws ResponseException {
int pcount = 0;
try {
int[] boundaryIdxs = getBoundaryPositions(fbuf, contentType.getBoundary().get... | public class class_name {
private void decodeMultipartFormData(ContentType contentType, ByteBuffer fbuf, Map<String, List<String>> parms, Map<String, String> files) throws ResponseException {
int pcount = 0;
try {
int[] boundaryIdxs = getBoundaryPositions(fbuf, contentType.getBoundary().get... |
public class class_name {
public boolean replaceChild(AbstractPlanNode oldChild, AbstractPlanNode newChild) {
assert(oldChild != null);
assert(newChild != null);
int idx = 0;
for (AbstractPlanNode child : m_children) {
if (child.equals(oldChild)) {
oldChild.m... | public class class_name {
public boolean replaceChild(AbstractPlanNode oldChild, AbstractPlanNode newChild) {
assert(oldChild != null);
assert(newChild != null);
int idx = 0;
for (AbstractPlanNode child : m_children) {
if (child.equals(oldChild)) {
oldChild.m... |
public class class_name {
void select(OptMapInfo alt) {
if (alt.value == 0) return;
if (value == 0) {
copy(alt);
return;
}
int v1 = z / value;
int v2 = z /alt.value;
if (mmd.compareDistanceValue(alt.mmd, v1, v2) > 0) copy(alt);
} } | public class class_name {
void select(OptMapInfo alt) {
if (alt.value == 0) return;
if (value == 0) {
copy(alt); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
int v1 = z / value;
int... |
public class class_name {
void setParentConnection(final JmsJcaConnectionImpl connection) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "setParentConnection", connection);
}
_connection = connection;
if (TraceComponent.is... | public class class_name {
void setParentConnection(final JmsJcaConnectionImpl connection) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "setParentConnection", connection); // depends on control dependency: [if], data = [none]
}
_c... |
public class class_name {
public void setRepositoriesNotFound(java.util.Collection<String> repositoriesNotFound) {
if (repositoriesNotFound == null) {
this.repositoriesNotFound = null;
return;
}
this.repositoriesNotFound = new java.util.ArrayList<String>(repositoriesNot... | public class class_name {
public void setRepositoriesNotFound(java.util.Collection<String> repositoriesNotFound) {
if (repositoriesNotFound == null) {
this.repositoriesNotFound = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], ... |
public class class_name {
protected ORecord getRecord() {
final ORecord record;
if (reusedRecord != null) {
// REUSE THE SAME RECORD AFTER HAVING RESETTED IT
record = reusedRecord;
record.reset();
} else
record = null;
return record;
} } | public class class_name {
protected ORecord getRecord() {
final ORecord record;
if (reusedRecord != null) {
// REUSE THE SAME RECORD AFTER HAVING RESETTED IT
record = reusedRecord;
// depends on control dependency: [if], data = [none]
record.reset();
// depends on control dependency: [i... |
public class class_name {
public int getCompletedTasks() {
int completedTasks = 0;
for (TaskState taskState : this.taskStates.values()) {
if (taskState.isCompleted()) {
completedTasks++;
}
}
return completedTasks;
} } | public class class_name {
public int getCompletedTasks() {
int completedTasks = 0;
for (TaskState taskState : this.taskStates.values()) {
if (taskState.isCompleted()) {
completedTasks++; // depends on control dependency: [if], data = [none]
}
}
return completedTasks;
} } |
public class class_name {
public static void main(String[] argv) {
if (argv.length == 0) {
printUsage("");
System.exit(-1);
}
String inputPathsString = null;
Path outputPath = null;
String shardsString = null;
String indexPath = null;
int numShards = -1;
int numM... | public class class_name {
public static void main(String[] argv) {
if (argv.length == 0) {
printUsage("");
// depends on control dependency: [if], data = [none]
System.exit(-1);
// depends on control dependency: [if], data = [none]
}
String inputPathsString = null;
Path outputPath =... |
public class class_name {
private String concatDate(){
if(params.length != 2){
throw new IllegalArgumentException("Wrong number of Parameters for concat date expression");
}
final DateTimeFormat yearFormat = DateTimeFormat.getFormat(DataType.DATE_FORMAT_YEAR_ONLY);
final ... | public class class_name {
private String concatDate(){
if(params.length != 2){
throw new IllegalArgumentException("Wrong number of Parameters for concat date expression");
}
final DateTimeFormat yearFormat = DateTimeFormat.getFormat(DataType.DATE_FORMAT_YEAR_ONLY);
final ... |
public class class_name {
public Collection<Tenant> getTenants() {
checkServiceState();
Map<String, TenantDefinition> tenantMap = getAllTenantDefs();
List<Tenant> result = new ArrayList<>();
for (String tenantName : tenantMap.keySet()) {
result.add(new Tenant(tenantMap.get(t... | public class class_name {
public Collection<Tenant> getTenants() {
checkServiceState();
Map<String, TenantDefinition> tenantMap = getAllTenantDefs();
List<Tenant> result = new ArrayList<>();
for (String tenantName : tenantMap.keySet()) {
result.add(new Tenant(tenantMap.get(t... |
public class class_name {
public void setHistory(java.util.Collection<ConfigurationId> history) {
if (history == null) {
this.history = null;
return;
}
this.history = new java.util.ArrayList<ConfigurationId>(history);
} } | public class class_name {
public void setHistory(java.util.Collection<ConfigurationId> history) {
if (history == null) {
this.history = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.histo... |
public class class_name {
public Iterable<ServerInstanceLogRecordList> getLogLists(RepositoryPointer after, Date endTime, final LogRecordHeaderFilter filter) {
if (after instanceof RepositoryPointerImpl) {
final RepositoryPointerImpl location = (RepositoryPointerImpl) after;
final long ... | public class class_name {
public Iterable<ServerInstanceLogRecordList> getLogLists(RepositoryPointer after, Date endTime, final LogRecordHeaderFilter filter) {
if (after instanceof RepositoryPointerImpl) {
final RepositoryPointerImpl location = (RepositoryPointerImpl) after;
final long ... |
public class class_name {
private int doWork(String[] args) {
if (args.length == 1) {
CommandHandler handler = Command.getHandler(args[0]);
if (handler != null) {
return handler.doWork(this);
}
}
printUsage();
return -1;
} } | public class class_name {
private int doWork(String[] args) {
if (args.length == 1) {
CommandHandler handler = Command.getHandler(args[0]);
if (handler != null) {
return handler.doWork(this); // depends on control dependency: [if], data = [none]
}
}
printUsage();
return -1;
... |
public class class_name {
protected void doPick()
{
GVRSceneObject owner = getOwnerObject();
GVRTransform trans = (owner != null) ? owner.getTransform() : null;
GVRPickedObject[] picked;
if (mPickClosest)
{
GVRPickedObject closest = pickClosest(mScene, trans,
... | public class class_name {
protected void doPick()
{
GVRSceneObject owner = getOwnerObject();
GVRTransform trans = (owner != null) ? owner.getTransform() : null;
GVRPickedObject[] picked;
if (mPickClosest)
{
GVRPickedObject closest = pickClosest(mScene, trans,
... |
public class class_name {
public static Date parseDate(final String date) {
/*
IE9 sends a superflous lenght parameter after date in the
If-Modified-Since header, which needs to be stripped before
parsing.
*/
final int semicolonIndex = date.indexOf(';');
... | public class class_name {
public static Date parseDate(final String date) {
/*
IE9 sends a superflous lenght parameter after date in the
If-Modified-Since header, which needs to be stripped before
parsing.
*/
final int semicolonIndex = date.indexOf(';');
... |
public class class_name {
public static void rank1UpdateMultR_TopRow(final int blockLength ,
final DSubmatrixD1 A , final int col , final double gamma )
{
final double dataA[] = A.original.data;
final int widthCol = Math.min( blockLength , A.col1 - co... | public class class_name {
public static void rank1UpdateMultR_TopRow(final int blockLength ,
final DSubmatrixD1 A , final int col , final double gamma )
{
final double dataA[] = A.original.data;
final int widthCol = Math.min( blockLength , A.col1 - co... |
public class class_name {
private boolean hasEagerSingletonBinding() {
for (Key<?> key : bindings.keySet()) {
GinScope scope = determineScope(key);
if (GinScope.EAGER_SINGLETON.equals(scope)) {
return true;
}
}
return false;
} } | public class class_name {
private boolean hasEagerSingletonBinding() {
for (Key<?> key : bindings.keySet()) {
GinScope scope = determineScope(key);
if (GinScope.EAGER_SINGLETON.equals(scope)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
... |
public class class_name {
@PostConstruct
public synchronized void initialize() {
final FwCoreDirection direction = assistCoreDirection();
final ConcurrentAsyncExecutorProvider provider = direction.assistConcurrentAsyncExecutorProvider();
defaultConcurrentAsyncOption = provider != null ? pro... | public class class_name {
@PostConstruct
public synchronized void initialize() {
final FwCoreDirection direction = assistCoreDirection();
final ConcurrentAsyncExecutorProvider provider = direction.assistConcurrentAsyncExecutorProvider();
defaultConcurrentAsyncOption = provider != null ? pro... |
public class class_name {
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {
val name = SpringRestClientEnabledScan.class.getName();
val annotationAttributes = importingClassMetadata.getAnnotationAttributes(name);
val scanner = new ... | public class class_name {
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {
val name = SpringRestClientEnabledScan.class.getName();
val annotationAttributes = importingClassMetadata.getAnnotationAttributes(name);
val scanner = new ... |
public class class_name {
public Future<Void> forceClose() {
this.close();
if (forceClosing.compareAndSet(false, true) && channel.isOpen()) {
writeCoalescer
.writeAndFlush(channel, FORCEFUL_CLOSE_MESSAGE)
.addListener(UncaughtExceptions::log);
}
return channel.closeFuture();
... | public class class_name {
public Future<Void> forceClose() {
this.close();
if (forceClosing.compareAndSet(false, true) && channel.isOpen()) {
writeCoalescer
.writeAndFlush(channel, FORCEFUL_CLOSE_MESSAGE)
.addListener(UncaughtExceptions::log); // depends on control dependency: [if], d... |
public class class_name {
public <E extends Enum<E>> List<E> getTypeList(Class<E> clz, E[] typeList) {
if (typeList.length > 0) {
return new ArrayList<>(Arrays.asList(typeList));
} else {
return new ArrayList<>(EnumSet.allOf(clz));
}
} } | public class class_name {
public <E extends Enum<E>> List<E> getTypeList(Class<E> clz, E[] typeList) {
if (typeList.length > 0) {
return new ArrayList<>(Arrays.asList(typeList)); // depends on control dependency: [if], data = [none]
} else {
return new ArrayList<>(EnumSet.allOf(... |
public class class_name {
@SuppressWarnings("unchecked")
public static synchronized <F> F getInstance(Class<?> objectType, Class<F> factory) {
try {
return org.cojen.util.QuickConstructorGenerator.getInstance(objectType, factory);
} catch (NoClassDefFoundError e) {
// U... | public class class_name {
@SuppressWarnings("unchecked")
public static synchronized <F> F getInstance(Class<?> objectType, Class<F> factory) {
try {
return org.cojen.util.QuickConstructorGenerator.getInstance(objectType, factory);
// depends on control dependency: [try], data = [none]
... |
public class class_name {
private final void connectToProvider(String itemName) {
log.debug("Attempting connection to {}", itemName);
IMessageInput in = msgInReference.get();
if (in == null) {
in = providerService.getLiveProviderInput(subscriberStream.getScope(), itemName, true);
... | public class class_name {
private final void connectToProvider(String itemName) {
log.debug("Attempting connection to {}", itemName);
IMessageInput in = msgInReference.get();
if (in == null) {
in = providerService.getLiveProviderInput(subscriberStream.getScope(), itemName, true); //... |
public class class_name {
protected String defaultConfiguration() {
final StringBuilder bldr = new StringBuilder();
for (final Entry<String, String> entry : defaults().entrySet()) {
final String name = entry.getKey();
final String value = entry.getValue();
bldr.appe... | public class class_name {
protected String defaultConfiguration() {
final StringBuilder bldr = new StringBuilder();
for (final Entry<String, String> entry : defaults().entrySet()) {
final String name = entry.getKey();
final String value = entry.getValue();
bldr.appe... |
public class class_name {
private void openUploadWithFiles(JavaScriptObject files) {
JsArray<CmsFileInfo> cmsFiles = files.cast();
List<CmsFileInfo> fileObjects = new ArrayList<CmsFileInfo>();
for (int i = 0; i < cmsFiles.length(); ++i) {
fileObjects.add(cmsFiles.get(i));
}... | public class class_name {
private void openUploadWithFiles(JavaScriptObject files) {
JsArray<CmsFileInfo> cmsFiles = files.cast();
List<CmsFileInfo> fileObjects = new ArrayList<CmsFileInfo>();
for (int i = 0; i < cmsFiles.length(); ++i) {
fileObjects.add(cmsFiles.get(i)); // depend... |
public class class_name {
private static void closeDB(PersistenceManager pm) {
if (pm.currentTransaction().isActive()) {
pm.currentTransaction().rollback();
}
pm.close();
pm.getPersistenceManagerFactory().close();
} } | public class class_name {
private static void closeDB(PersistenceManager pm) {
if (pm.currentTransaction().isActive()) {
pm.currentTransaction().rollback(); // depends on control dependency: [if], data = [none]
}
pm.close();
pm.getPersistenceManagerFactory().close();
} } |
public class class_name {
public QueryResult executeQuery(String query) throws FMSException {
IntuitMessage intuitMessage = prepareQuery(query);
// execute interceptors
executeInterceptors(intuitMessage);
QueryResult queryResult = null;
// Iterate the IntuitObjects list in Q... | public class class_name {
public QueryResult executeQuery(String query) throws FMSException {
IntuitMessage intuitMessage = prepareQuery(query);
// execute interceptors
executeInterceptors(intuitMessage);
QueryResult queryResult = null;
// Iterate the IntuitObjects list in Q... |
public class class_name {
public static String getEndDateOfMonth(String dat) {// yyyy-MM-dd
String str = dat.substring(0, 8);
String month = dat.substring(5, 7);
int mon = Integer.parseInt(month);
if (mon == 1 || mon == 3 || mon == 5 || mon == 7 || mon == 8 || mon == 10 || mon == 12) {
... | public class class_name {
public static String getEndDateOfMonth(String dat) {// yyyy-MM-dd
String str = dat.substring(0, 8);
String month = dat.substring(5, 7);
int mon = Integer.parseInt(month);
if (mon == 1 || mon == 3 || mon == 5 || mon == 7 || mon == 8 || mon == 10 || mon == 12) {
... |
public class class_name {
@Nullable static View getView(Context context, int resourceId, View view) {
LayoutInflater inflater = LayoutInflater.from(context);
if (view != null) {
return view;
}
if (resourceId != INVALID) {
view = inflater.inflate(resourceId, null);
}
return view;
}... | public class class_name {
@Nullable static View getView(Context context, int resourceId, View view) {
LayoutInflater inflater = LayoutInflater.from(context);
if (view != null) {
return view; // depends on control dependency: [if], data = [none]
}
if (resourceId != INVALID) {
view = inflater... |
public class class_name {
@Override
public ResultSet foreignKeyCheck() {
ResultSet resultSet = query("PRAGMA foreign_key_check", null);
try {
if (!resultSet.next()) {
resultSet.close();
resultSet = null;
}
} catch (SQLException e) {
throw new GeoPackageException(
"Foreign key check failed ... | public class class_name {
@Override
public ResultSet foreignKeyCheck() {
ResultSet resultSet = query("PRAGMA foreign_key_check", null);
try {
if (!resultSet.next()) {
resultSet.close(); // depends on control dependency: [if], data = [none]
resultSet = null; // depends on control dependency: [if], data ... |
public class class_name {
public String getTableName(String table, Number shardKey) {
if (orMapping.getShardCount() <= 1 || shardKey == null || shardKey.longValue() <= 0) {
return table;
}
return table + calShardNum(shardKey.longValue());
} } | public class class_name {
public String getTableName(String table, Number shardKey) {
if (orMapping.getShardCount() <= 1 || shardKey == null || shardKey.longValue() <= 0) {
return table; // depends on control dependency: [if], data = [none]
}
return table + calShardNum(shardKey.lon... |
public class class_name {
public <TTDPO> TransformedDataProviderContext transform(Transformer<TDPO, TTDPO> ruleInputTransformer) {
if (ruleInputTransformer != null) {
addedRuleInputTransformers.add(ruleInputTransformer);
}
// Change context because output type has changed
r... | public class class_name {
public <TTDPO> TransformedDataProviderContext transform(Transformer<TDPO, TTDPO> ruleInputTransformer) {
if (ruleInputTransformer != null) {
addedRuleInputTransformers.add(ruleInputTransformer); // depends on control dependency: [if], data = [(ruleInputTransformer]
... |
public class class_name {
static void register(Object value) {
if (value != null) {
Map<Object, Object> m = getRegistry();
if (m == null) {
REGISTRY.set(new WeakHashMap<Object, Object>());
}
getRegistry().put(value, null);
}
} } | public class class_name {
static void register(Object value) {
if (value != null) {
Map<Object, Object> m = getRegistry();
if (m == null) {
REGISTRY.set(new WeakHashMap<Object, Object>()); // depends on control dependency: [if], data = [none]
}
ge... |
public class class_name {
private void addPostParams(final Request request) {
if (friendlyName != null) {
request.addPostParam("FriendlyName", friendlyName);
}
if (status != null) {
request.addPostParam("Status", status.toString());
}
} } | public class class_name {
private void addPostParams(final Request request) {
if (friendlyName != null) {
request.addPostParam("FriendlyName", friendlyName); // depends on control dependency: [if], data = [none]
}
if (status != null) {
request.addPostParam("Status", sta... |
public class class_name {
@UiThread
public void removeObjectSync(T object) {
//To make sure all the appropriate callbacks happen, we just want to piggyback on the
//existing code that handles deleting spans when the text changes
ArrayList<Editable>texts = new ArrayList<>();
//If the... | public class class_name {
@UiThread
public void removeObjectSync(T object) {
//To make sure all the appropriate callbacks happen, we just want to piggyback on the
//existing code that handles deleting spans when the text changes
ArrayList<Editable>texts = new ArrayList<>();
//If the... |
public class class_name {
protected String printConcept(int id) {
Object oid = factory.lookupConceptId(id);
if(factory.isVirtualConcept(id)) {
if(oid instanceof AbstractConcept) {
return printAbstractConcept((AbstractConcept) oid);
} else {
return... | public class class_name {
protected String printConcept(int id) {
Object oid = factory.lookupConceptId(id);
if(factory.isVirtualConcept(id)) {
if(oid instanceof AbstractConcept) {
return printAbstractConcept((AbstractConcept) oid); // depends on control dependency: [if], dat... |
public class class_name {
private boolean isDeadlockError(Throwable e)
{
// Looking for PersistenceException, wrapping a LockAcquisitionException
if (e != null && e instanceof PersistenceException)
{
e = e.getCause();
if (e != null && e instanceof LockAcquisitionException)
{
return true;
}
}
... | public class class_name {
private boolean isDeadlockError(Throwable e)
{
// Looking for PersistenceException, wrapping a LockAcquisitionException
if (e != null && e instanceof PersistenceException)
{
e = e.getCause(); // depends on control dependency: [if], data = [none]
if (e != null && e instanceof Loc... |
public class class_name {
private boolean isPosTokenMatched(AnalyzedToken token) {
if (posToken == null || posToken.posTag == null) {
// if no POS set defaulting to true
return true;
}
if (token.getPOSTag() == null) {
return posToken.posUnknown && token.hasNoTag();
}
boolean match... | public class class_name {
private boolean isPosTokenMatched(AnalyzedToken token) {
if (posToken == null || posToken.posTag == null) {
// if no POS set defaulting to true
return true; // depends on control dependency: [if], data = [none]
}
if (token.getPOSTag() == null) {
return posToken.p... |
public class class_name {
private static Iterable<ParameterSpec> parameters(Iterable<Parameter> parameters) {
ImmutableList.Builder<ParameterSpec> builder = ImmutableList.builder();
for (Parameter parameter : parameters) {
ParameterSpec.Builder parameterBuilder =
ParameterSpec.builder(TypeName.... | public class class_name {
private static Iterable<ParameterSpec> parameters(Iterable<Parameter> parameters) {
ImmutableList.Builder<ParameterSpec> builder = ImmutableList.builder();
for (Parameter parameter : parameters) {
ParameterSpec.Builder parameterBuilder =
ParameterSpec.builder(TypeName.... |
public class class_name {
public void setGroupIdentifiers(java.util.Collection<GroupIdentifier> groupIdentifiers) {
if (groupIdentifiers == null) {
this.groupIdentifiers = null;
return;
}
this.groupIdentifiers = new java.util.ArrayList<GroupIdentifier>(groupIdentifiers)... | public class class_name {
public void setGroupIdentifiers(java.util.Collection<GroupIdentifier> groupIdentifiers) {
if (groupIdentifiers == null) {
this.groupIdentifiers = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = ... |
public class class_name {
@SuppressWarnings("unchecked")
public static <K, V> Map<K, V> createMap(Class<?> mapType) {
if (mapType.isAssignableFrom(AbstractMap.class)) {
return new HashMap<>();
} else {
return (Map<K, V>) ReflectUtil.newInstance(mapType);
}
} } | public class class_name {
@SuppressWarnings("unchecked")
public static <K, V> Map<K, V> createMap(Class<?> mapType) {
if (mapType.isAssignableFrom(AbstractMap.class)) {
return new HashMap<>();
// depends on control dependency: [if], data = [none]
} else {
return (Map<K, V>) ReflectUtil.newInstance(mapT... |
public class class_name {
public TableDescription withAttributeDefinitions(AttributeDefinition... attributeDefinitions) {
if (this.attributeDefinitions == null) {
setAttributeDefinitions(new java.util.ArrayList<AttributeDefinition>(attributeDefinitions.length));
}
for (AttributeDefi... | public class class_name {
public TableDescription withAttributeDefinitions(AttributeDefinition... attributeDefinitions) {
if (this.attributeDefinitions == null) {
setAttributeDefinitions(new java.util.ArrayList<AttributeDefinition>(attributeDefinitions.length)); // depends on control dependency: [i... |
public class class_name {
public final void variableDeclarators() throws RecognitionException {
int variableDeclarators_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 38) ) { return; }
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:451:5: ( v... | public class class_name {
public final void variableDeclarators() throws RecognitionException {
int variableDeclarators_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 38) ) { return; } // depends on control dependency: [if], data = [none]
// src/main/resources/org/d... |
public class class_name {
public void setLematized(String lematized) {
if(lematized != null) {
lematized = lematized.trim();
}
this.lematized = lematized;
} } | public class class_name {
public void setLematized(String lematized) {
if(lematized != null) {
lematized = lematized.trim(); // depends on control dependency: [if], data = [none]
}
this.lematized = lematized;
} } |
public class class_name {
public static <T extends ArbitrateLifeCycle> void destory(Long pipelineId, Class<T> instanceClass) {
Map<Class, Object> resources = cache.get(pipelineId);
if (resources != null) {
Object obj = resources.remove(instanceClass);
if (obj instanceof Arbitrat... | public class class_name {
public static <T extends ArbitrateLifeCycle> void destory(Long pipelineId, Class<T> instanceClass) {
Map<Class, Object> resources = cache.get(pipelineId);
if (resources != null) {
Object obj = resources.remove(instanceClass);
if (obj instanceof Arbitrat... |
public class class_name {
public static LocalFilter fromOptionalParams(List<Param> optionalParams) {
LocalFilter filter = new LocalFilter();
Param p = filter.getQueryParam(optionalParams);
if (p == null) {
return null;
}
filter.value = p.getValue();
return filter;
} } | public class class_name {
public static LocalFilter fromOptionalParams(List<Param> optionalParams) {
LocalFilter filter = new LocalFilter();
Param p = filter.getQueryParam(optionalParams);
if (p == null) {
return null; // depends on control dependency: [if], data = [none]
}
filter.value = p.getValue();
... |
public class class_name {
public void marshall(DescribeUserProfileRequest describeUserProfileRequest, ProtocolMarshaller protocolMarshaller) {
if (describeUserProfileRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... | public class class_name {
public void marshall(DescribeUserProfileRequest describeUserProfileRequest, ProtocolMarshaller protocolMarshaller) {
if (describeUserProfileRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... |
public class class_name {
protected void initTemplates(Element root, CmsXmlContentDefinition contentDefinition) {
String strEnabledByDefault = root.attributeValue(ATTR_ENABLED_BY_DEFAULT);
m_allowedTemplates.setDefaultMembership(safeParseBoolean(strEnabledByDefault, true));
List<Node> elements... | public class class_name {
protected void initTemplates(Element root, CmsXmlContentDefinition contentDefinition) {
String strEnabledByDefault = root.attributeValue(ATTR_ENABLED_BY_DEFAULT);
m_allowedTemplates.setDefaultMembership(safeParseBoolean(strEnabledByDefault, true));
List<Node> elements... |
public class class_name {
public void setProperty(String property, Object newValue) {
if (newValue instanceof Closure) {
if (property.equals(CONSTRUCTOR)) {
property = GROOVY_CONSTRUCTOR;
}
Closure callable = (Closure) newValue;
final List<MetaMet... | public class class_name {
public void setProperty(String property, Object newValue) {
if (newValue instanceof Closure) {
if (property.equals(CONSTRUCTOR)) {
property = GROOVY_CONSTRUCTOR; // depends on control dependency: [if], data = [none]
}
Closure callabl... |
public class class_name {
static HSV toHSV( double color ) {
long argb = Double.doubleToRawLongBits( color );
double a = alpha( color );
double r = clamp( ((argb >> 32) & 0xFFFF) / (double)0xFF00 );
double g = clamp( ((argb >> 16) & 0xFFFF) / (double)0xFF00 );
double b = clamp( ... | public class class_name {
static HSV toHSV( double color ) {
long argb = Double.doubleToRawLongBits( color );
double a = alpha( color );
double r = clamp( ((argb >> 32) & 0xFFFF) / (double)0xFF00 );
double g = clamp( ((argb >> 16) & 0xFFFF) / (double)0xFF00 );
double b = clamp( ... |
public class class_name {
private void setUpConditionStyles(JRDesignStyle jrstyle, AbstractColumn column) {
if (getReport().getOptions().isPrintBackgroundOnOddRows() && Utils.isEmpty(column.getConditionalStyles())) {
JRDesignExpression expression = new JRDesignExpression();
expression.... | public class class_name {
private void setUpConditionStyles(JRDesignStyle jrstyle, AbstractColumn column) {
if (getReport().getOptions().isPrintBackgroundOnOddRows() && Utils.isEmpty(column.getConditionalStyles())) {
JRDesignExpression expression = new JRDesignExpression();
expression.... |
public class class_name {
public static INDArray div(INDArray x, INDArray y, INDArray z, int... dimensions) {
if(dimensions == null) {
Preconditions.checkArgument(Arrays.equals(x.shape(),y.shape()),getFormattedShapeErrorMessageXy(x,y));
Preconditions.checkArgument(Arrays.equals(x.shape(... | public class class_name {
public static INDArray div(INDArray x, INDArray y, INDArray z, int... dimensions) {
if(dimensions == null) {
Preconditions.checkArgument(Arrays.equals(x.shape(),y.shape()),getFormattedShapeErrorMessageXy(x,y)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private int comparePrecedence(char sourceRelation, char targetRelation) {
int result = -1;
int sourcePrecedence = getPrecedenceNumber(sourceRelation);
int targetPrecedence = getPrecedenceNumber(targetRelation);
if (sourcePrecedence < targetPrecedence) {
... | public class class_name {
private int comparePrecedence(char sourceRelation, char targetRelation) {
int result = -1;
int sourcePrecedence = getPrecedenceNumber(sourceRelation);
int targetPrecedence = getPrecedenceNumber(targetRelation);
if (sourcePrecedence < targetPrecedence) {
... |
public class class_name {
public List<DataMediaPair> listByIds(Long... identities) {
List<DataMediaPair> dataMediaPairs = new ArrayList<DataMediaPair>();
try {
List<DataMediaPairDO> dataMediaPairDos = null;
if (identities.length < 1) {
dataMediaPairDos = dataMedi... | public class class_name {
public List<DataMediaPair> listByIds(Long... identities) {
List<DataMediaPair> dataMediaPairs = new ArrayList<DataMediaPair>();
try {
List<DataMediaPairDO> dataMediaPairDos = null;
if (identities.length < 1) {
dataMediaPairDos = dataMedi... |
public class class_name {
public static PropertiesBuilder builder(KnowledgeComponentImplementationModel implementationModel) {
PropertiesModel propertiesModel = null;
if (implementationModel != null) {
propertiesModel = implementationModel.getProperties();
}
return new Prope... | public class class_name {
public static PropertiesBuilder builder(KnowledgeComponentImplementationModel implementationModel) {
PropertiesModel propertiesModel = null;
if (implementationModel != null) {
propertiesModel = implementationModel.getProperties(); // depends on control dependency: ... |
public class class_name {
protected Object doConvert(String value)
{
try
{
return format.parse(value);
}
catch (ParseException ex)
{
throw new IllegalArgumentException("Unsupported date format", ex);
}
} } | public class class_name {
protected Object doConvert(String value)
{
try
{
return format.parse(value); // depends on control dependency: [try], data = [none]
}
catch (ParseException ex)
{
throw new IllegalArgumentException("Unsupported date format", e... |
public class class_name {
private List<String> parse( URL url )
{
InputStream is = null;
BufferedReader reader = null;
List<String> names = new ArrayList<String>();
try
{
is = url.openStream();
reader = new BufferedReader( new InputStreamReader( is, "... | public class class_name {
private List<String> parse( URL url )
{
InputStream is = null;
BufferedReader reader = null;
List<String> names = new ArrayList<String>();
try
{
is = url.openStream(); // depends on control dependency: [try], data = [none]
re... |
public class class_name {
public static Throwable getOriginalCause(Throwable e) {
if (e instanceof InvocationTargetException) {
return getOriginalCause(((InvocationTargetException) e).getTargetException());
}
if (e.getCause() instanceof Throwable) {
return getOriginalCau... | public class class_name {
public static Throwable getOriginalCause(Throwable e) {
if (e instanceof InvocationTargetException) {
return getOriginalCause(((InvocationTargetException) e).getTargetException()); // depends on control dependency: [if], data = [none]
}
if (e.getCause() ins... |
public class class_name {
protected boolean isCandidateComponent(MetadataReader metadataReader) throws IOException {
for (TypeFilter tf : this.excludeFilters) {
if (tf.match(metadataReader, this.metadataReaderFactory)) {
return false;
}
}
for (TypeFilter ... | public class class_name {
protected boolean isCandidateComponent(MetadataReader metadataReader) throws IOException {
for (TypeFilter tf : this.excludeFilters) {
if (tf.match(metadataReader, this.metadataReaderFactory)) {
return false; // depends on control dependency: [if], data = [... |
public class class_name {
public int get(int i, int j) {
if (i < 0 || i >= size()) {
throw new IllegalArgumentException("Invalid index: i = " + i);
}
int[] x = get(i).x;
if (x.length == 0) {
return 0;
}
int low = 0;
int high = x.... | public class class_name {
public int get(int i, int j) {
if (i < 0 || i >= size()) {
throw new IllegalArgumentException("Invalid index: i = " + i);
}
int[] x = get(i).x;
if (x.length == 0) {
return 0; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public SofaResteasyClientBuilder registerProvider() {
ResteasyProviderFactory providerFactory = getProviderFactory();
// 注册内置
Set<Class> internalProviderClasses = JAXRSProviderManager.getInternalProviderClasses();
if (CommonUtils.isNotEmpty(internalProviderClas... | public class class_name {
public SofaResteasyClientBuilder registerProvider() {
ResteasyProviderFactory providerFactory = getProviderFactory();
// 注册内置
Set<Class> internalProviderClasses = JAXRSProviderManager.getInternalProviderClasses();
if (CommonUtils.isNotEmpty(internalProviderClas... |
public class class_name {
private static String getFormattedList(long[] idList) {
if (idList == null) {
idList = new long[]{};
}
return new StringBuilder().append("{")
.append(StringUtils.join(ArrayUtils.toObject(idList), ','))
.append("}").toString();
} } | public class class_name {
private static String getFormattedList(long[] idList) {
if (idList == null) {
idList = new long[]{}; // depends on control dependency: [if], data = [none]
}
return new StringBuilder().append("{")
.append(StringUtils.join(ArrayUtils.toObject(idList), ','))
.ap... |
public class class_name {
public static Axiom deserialise(String s) {
if(unmarshaller == null) init();
try {
Object res = unmarshaller.unmarshal(new ByteArrayInputStream(s.getBytes()));
return (Axiom) res;
} catch(JAXBException e) {
log.error("There was a pro... | public class class_name {
public static Axiom deserialise(String s) {
if(unmarshaller == null) init();
try {
Object res = unmarshaller.unmarshal(new ByteArrayInputStream(s.getBytes()));
return (Axiom) res; // depends on control dependency: [try], data = [none]
} catch(JA... |
public class class_name {
public VoltXMLElement findChild(String elementName, String attributeName)
{
String attName = attributeName;
if (attName == null) {
attName = "default";
}
return findChild(elementName + attName);
} } | public class class_name {
public VoltXMLElement findChild(String elementName, String attributeName)
{
String attName = attributeName;
if (attName == null) {
attName = "default"; // depends on control dependency: [if], data = [none]
}
return findChild(elementName + attNam... |
public class class_name {
static String normalizeServicePath(String servicePath) {
Preconditions.checkNotNull(servicePath, "service path cannot be null");
if (servicePath.length() == 1) {
Preconditions.checkArgument(
"/".equals(servicePath), "service path must equal \"/\" if it is of length 1."... | public class class_name {
static String normalizeServicePath(String servicePath) {
Preconditions.checkNotNull(servicePath, "service path cannot be null");
if (servicePath.length() == 1) {
Preconditions.checkArgument(
"/".equals(servicePath), "service path must equal \"/\" if it is of length 1."... |
public class class_name {
private long mixInHash(long hash, StorableProperty<?> property, int multiplier) {
hash = mixInHash(hash, property.getName(), multiplier);
hash = mixInHash(hash, property.getType().getName(), multiplier);
hash = hash * multiplier + (property.isNullable() ? 1 : 2);
... | public class class_name {
private long mixInHash(long hash, StorableProperty<?> property, int multiplier) {
hash = mixInHash(hash, property.getName(), multiplier);
hash = mixInHash(hash, property.getType().getName(), multiplier);
hash = hash * multiplier + (property.isNullable() ? 1 : 2);
... |
public class class_name {
public static ComplexImg transform(final boolean inverse, ComplexImg toTransform, ComplexImg target){
if(target == null){
target = new ComplexImg(toTransform.getDimension());
} else if(!target.getDimension().equals(toTransform.getDimension())){
throw new IllegalArgumentException(Str... | public class class_name {
public static ComplexImg transform(final boolean inverse, ComplexImg toTransform, ComplexImg target){
if(target == null){
target = new ComplexImg(toTransform.getDimension()); // depends on control dependency: [if], data = [none]
} else if(!target.getDimension().equals(toTransform.getDi... |
public class class_name {
private static boolean isDelimiter(final char ch, final char[] delimiters) {
if (delimiters == null) {
return CharUtils.isWhitespace(ch);
}
for (final char delimiter : delimiters) {
if (ch == delimiter) {
return true;
... | public class class_name {
private static boolean isDelimiter(final char ch, final char[] delimiters) {
if (delimiters == null) {
return CharUtils.isWhitespace(ch); // depends on control dependency: [if], data = [none]
}
for (final char delimiter : delimiters) {
if (ch ==... |
public class class_name {
public JobFlowInstancesDetail withInstanceGroups(InstanceGroupDetail... instanceGroups) {
if (this.instanceGroups == null) {
setInstanceGroups(new com.amazonaws.internal.SdkInternalList<InstanceGroupDetail>(instanceGroups.length));
}
for (InstanceGroupDetai... | public class class_name {
public JobFlowInstancesDetail withInstanceGroups(InstanceGroupDetail... instanceGroups) {
if (this.instanceGroups == null) {
setInstanceGroups(new com.amazonaws.internal.SdkInternalList<InstanceGroupDetail>(instanceGroups.length)); // depends on control dependency: [if], d... |
public class class_name {
@Override
public void applicationStarting(ApplicationInfo appInfo) throws StateChangeException {
/*
* On twas at this point the TCCL is completely unrelated to the app that's starting. On Liberty it's a ContextFinder object.
* This context finder is able to corre... | public class class_name {
@Override
public void applicationStarting(ApplicationInfo appInfo) throws StateChangeException {
/*
* On twas at this point the TCCL is completely unrelated to the app that's starting. On Liberty it's a ContextFinder object.
* This context finder is able to corre... |
public class class_name {
private void checkConfiguration(JobExecutorXml jobExecutorXml) {
Map<String, String> properties = jobExecutorXml.getProperties();
for (Entry<String, String> entry : properties.entrySet()) {
LOGGER.warning("Property " + entry.getKey() + " with value " + entry.getValue() + " from ... | public class class_name {
private void checkConfiguration(JobExecutorXml jobExecutorXml) {
Map<String, String> properties = jobExecutorXml.getProperties();
for (Entry<String, String> entry : properties.entrySet()) {
LOGGER.warning("Property " + entry.getKey() + " with value " + entry.getValue() + " from ... |
public class class_name {
private static Element handleNode(Element parent, String xpathName) {
// if node is no attribute, create a new node
String childrenPart = null;
String nodeName;
int pos = xpathName.indexOf("[");
if (pos > 0) {
childrenPart = xpathName.subst... | public class class_name {
private static Element handleNode(Element parent, String xpathName) {
// if node is no attribute, create a new node
String childrenPart = null;
String nodeName;
int pos = xpathName.indexOf("[");
if (pos > 0) {
childrenPart = xpathName.subst... |
public class class_name {
public void setDatabaseDuplicateIds() {
// Set the spec topic duplicate ids based on topic title
for (final Entry<Integer, List<ITopicNode>> topicTitleEntry : topics.entrySet()) {
final List<ITopicNode> topics = topicTitleEntry.getValue();
if (topics.si... | public class class_name {
public void setDatabaseDuplicateIds() {
// Set the spec topic duplicate ids based on topic title
for (final Entry<Integer, List<ITopicNode>> topicTitleEntry : topics.entrySet()) {
final List<ITopicNode> topics = topicTitleEntry.getValue();
if (topics.si... |
public class class_name {
public void setRequestedEc2AvailabilityZones(java.util.Collection<String> requestedEc2AvailabilityZones) {
if (requestedEc2AvailabilityZones == null) {
this.requestedEc2AvailabilityZones = null;
return;
}
this.requestedEc2AvailabilityZones = ne... | public class class_name {
public void setRequestedEc2AvailabilityZones(java.util.Collection<String> requestedEc2AvailabilityZones) {
if (requestedEc2AvailabilityZones == null) {
this.requestedEc2AvailabilityZones = null; // depends on control dependency: [if], data = [none]
return; // d... |
public class class_name {
public List<String> getProviderNames() {
@SuppressWarnings("unchecked") List<String> result = get(KEY_QUERY_PROVIDERS, List.class);
if (result == null) {
return Collections.emptyList();
}
return result;
} } | public class class_name {
public List<String> getProviderNames() {
@SuppressWarnings("unchecked") List<String> result = get(KEY_QUERY_PROVIDERS, List.class);
if (result == null) {
return Collections.emptyList(); // depends on control dependency: [if], data = [none]
}
return... |
public class class_name {
public void marshall(SecurityServicePolicyData securityServicePolicyData, ProtocolMarshaller protocolMarshaller) {
if (securityServicePolicyData == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(SecurityServicePolicyData securityServicePolicyData, ProtocolMarshaller protocolMarshaller) {
if (securityServicePolicyData == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
public List<JoinableResourceBundle> getResourceBundles(Properties properties) {
PropertiesConfigHelper props = new PropertiesConfigHelper(properties, resourceType);
String fileExtension = "." + resourceType;
// Initialize custom bundles
List<JoinableResourceBundle> customBundles = n... | public class class_name {
public List<JoinableResourceBundle> getResourceBundles(Properties properties) {
PropertiesConfigHelper props = new PropertiesConfigHelper(properties, resourceType);
String fileExtension = "." + resourceType;
// Initialize custom bundles
List<JoinableResourceBundle> customBundles = n... |
public class class_name {
public void add(StatementRank rank, Resource subject) {
if (this.bestRank == rank) {
subjects.add(subject);
} else if(bestRank == StatementRank.NORMAL && rank == StatementRank.PREFERRED) {
//We found a preferred statement
subjects.clear();
bestRank = StatementRank.PREFERRED;
... | public class class_name {
public void add(StatementRank rank, Resource subject) {
if (this.bestRank == rank) {
subjects.add(subject); // depends on control dependency: [if], data = [none]
} else if(bestRank == StatementRank.NORMAL && rank == StatementRank.PREFERRED) {
//We found a preferred statement
subj... |
public class class_name {
@Override
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) {
if (context.isResourceServiceRestartAllowed()) {
final PathAddress address = context.getCurrentAddress();
final String name = address.getLastElement()... | public class class_name {
@Override
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) {
if (context.isResourceServiceRestartAllowed()) {
final PathAddress address = context.getCurrentAddress();
final String name = address.getLastElement()... |
public class class_name {
protected boolean isCallbackMethodImplementation(Method method) {
if (!ActionHook.class.isAssignableFrom(method.getDeclaringClass())) {
return false; // not required if statement but for performance
}
for (Method callbackMethod : callbackMethodSet) {
... | public class class_name {
protected boolean isCallbackMethodImplementation(Method method) {
if (!ActionHook.class.isAssignableFrom(method.getDeclaringClass())) {
return false; // not required if statement but for performance // depends on control dependency: [if], data = [none]
}
fo... |
public class class_name {
private String removeHeaderComments(String fileContent, SortedSet<Comment> comments) {
String headerlessFileContent = fileContent;
for (Comment comment : comments) {
String commentValue = comment.getValue();
if (headerlessFileContent.startsWith(commentV... | public class class_name {
private String removeHeaderComments(String fileContent, SortedSet<Comment> comments) {
String headerlessFileContent = fileContent;
for (Comment comment : comments) {
String commentValue = comment.getValue();
if (headerlessFileContent.startsWith(commentV... |
public class class_name {
protected void checkNext ()
{
_executingNow = !_queue.isEmpty();
if (_executingNow) {
// start up a thread to execute the task in question
ExecutorTask task = _queue.remove(0);
final ExecutorThread thread = new ExecutorThread(task);
... | public class class_name {
protected void checkNext ()
{
_executingNow = !_queue.isEmpty();
if (_executingNow) {
// start up a thread to execute the task in question
ExecutorTask task = _queue.remove(0);
final ExecutorThread thread = new ExecutorThread(task);
... |
public class class_name {
private Object getPreviousElement() {
Object element = null;
while (currentIndex >= startIndex && element == null) {
currentIndex--;
element = getElement();
}
return element;
} } | public class class_name {
private Object getPreviousElement() {
Object element = null;
while (currentIndex >= startIndex && element == null) {
currentIndex--;
// depends on control dependency: [while], data = [none]
element = getElement();
// depends on control dependency: ... |
public class class_name {
private void parseMethod()
throws IOException
{
int accessFlags = readShort();
int nameIndex = readShort();
int descriptorIndex = readShort();
JavaMethod method = new JavaMethod(_loader);
method.setJavaClass(_class);
method.setName(_cp.getUtf8(nameIndex).getValu... | public class class_name {
private void parseMethod()
throws IOException
{
int accessFlags = readShort();
int nameIndex = readShort();
int descriptorIndex = readShort();
JavaMethod method = new JavaMethod(_loader);
method.setJavaClass(_class);
method.setName(_cp.getUtf8(nameIndex).getValu... |
public class class_name {
@Override
public void close() {
if (isClosed())
return;
// Set the session state to ENDED.
setSessionState(JingleSessionStateEnded.getInstance());
for (ContentNegotiator contentNegotiator : contentNegotiators) {
contentNegotiator.... | public class class_name {
@Override
public void close() {
if (isClosed())
return;
// Set the session state to ENDED.
setSessionState(JingleSessionStateEnded.getInstance());
for (ContentNegotiator contentNegotiator : contentNegotiators) {
contentNegotiator.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.