code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public void displaySuggestions(boolean display) {
if (display) {
recyclerView.setVisibility(RecyclerView.VISIBLE);
} else {
recyclerView.setVisibility(RecyclerView.GONE);
}
} } | public class class_name {
@Override
public void displaySuggestions(boolean display) {
if (display) {
recyclerView.setVisibility(RecyclerView.VISIBLE); // depends on control dependency: [if], data = [none]
} else {
recyclerView.setVisibility(RecyclerView.GONE); // depends on ... |
public class class_name {
public void marshall(DeleteUserRequest deleteUserRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(d... | public class class_name {
public void marshall(DeleteUserRequest deleteUserRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteUserRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(d... |
public class class_name {
protected static int calculateShift(int minimumValue, int maximumValue) {
int shift = 0;
int value = 1;
while (value < minimumValue && value < maximumValue) {
value <<= 1;
shift++;
}
return shift;
} } | public class class_name {
protected static int calculateShift(int minimumValue, int maximumValue) {
int shift = 0;
int value = 1;
while (value < minimumValue && value < maximumValue) {
value <<= 1; // depends on control dependency: [while], data = [none]
shift++; // depends on control dependency: [while], ... |
public class class_name {
@Nullable
final T blockingGet(long timeout, TimeUnit unit) {
if (Schedulers.isInNonBlockingThread()) {
throw new IllegalStateException("block()/blockFirst()/blockLast() are blocking, which is not supported in thread " + Thread.currentThread().getName());
}
if (getCount() != 0) {
... | public class class_name {
@Nullable
final T blockingGet(long timeout, TimeUnit unit) {
if (Schedulers.isInNonBlockingThread()) {
throw new IllegalStateException("block()/blockFirst()/blockLast() are blocking, which is not supported in thread " + Thread.currentThread().getName());
}
if (getCount() != 0) {
... |
public class class_name {
private void handleSetProperty(final Element element, final Map<String, Object> entityData, final Map<String, Object> config) {
String propertyName = (String)config.get(PROPERTY_NAME);
if (propertyName == null) {
propertyName = element.tagName;
}
entityData.put(propertyName, ele... | public class class_name {
private void handleSetProperty(final Element element, final Map<String, Object> entityData, final Map<String, Object> config) {
String propertyName = (String)config.get(PROPERTY_NAME);
if (propertyName == null) {
propertyName = element.tagName; // depends on control dependency: [if],... |
public class class_name {
private static void removeFinishedCatchBlocks(Iterable<CatchInfo> infos, int pc) {
Iterator<CatchInfo> it = infos.iterator();
while (it.hasNext()) {
if (it.next().getFinish() < pc) {
it.remove();
}
}
} } | public class class_name {
private static void removeFinishedCatchBlocks(Iterable<CatchInfo> infos, int pc) {
Iterator<CatchInfo> it = infos.iterator();
while (it.hasNext()) {
if (it.next().getFinish() < pc) {
it.remove(); // depends on control dependency: [if], data = [none]... |
public class class_name {
public void sendRequest(Message request, Object context, Message.Builder responseBuilder,
Duration timeout) {
// Pack it as a no-timeout request and send it!
final REQID rid = REQID.generate();
contextMap.put(rid, context);
responseMessageMap.put(rid,... | public class class_name {
public void sendRequest(Message request, Object context, Message.Builder responseBuilder,
Duration timeout) {
// Pack it as a no-timeout request and send it!
final REQID rid = REQID.generate();
contextMap.put(rid, context);
responseMessageMap.put(rid,... |
public class class_name {
public void setArrayIfNotEmpty(@NotNull final String key, @Nullable final List<String> value) {
if (null != value && !value.isEmpty()) {
setString(key, new Gson().toJson(value));
}
} } | public class class_name {
public void setArrayIfNotEmpty(@NotNull final String key, @Nullable final List<String> value) {
if (null != value && !value.isEmpty()) {
setString(key, new Gson().toJson(value)); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
protected void setRequestUrl(MockServletRequest request,
Map<String, String> variantMap, String path, JawrConfig config) {
String domainURL = JawrConstant.HTTP_URL_PREFIX + DEFAULT_WEBAPP_URL;
if (JawrConstant.SSL.equals(variantMap
.get(JawrConstant.CONNECTION_TYPE_VARIANT_TYPE))... | public class class_name {
protected void setRequestUrl(MockServletRequest request,
Map<String, String> variantMap, String path, JawrConfig config) {
String domainURL = JawrConstant.HTTP_URL_PREFIX + DEFAULT_WEBAPP_URL;
if (JawrConstant.SSL.equals(variantMap
.get(JawrConstant.CONNECTION_TYPE_VARIANT_TYPE))... |
public class class_name {
public void setId(String name, Object value)
{
if (name == null)
{
idPropertyName = null;
idValue = null;
}
else
{
idPropertyName= name;
idValue = value;
}
} } | public class class_name {
public void setId(String name, Object value)
{
if (name == null)
{
idPropertyName = null; // depends on control dependency: [if], data = [none]
idValue = null; // depends on control dependency: [if], data = [none]
}
else
{
... |
public class class_name {
protected synchronized File getExternalStorageDirectory() {
File externalStorageDirectory;
if (Build.VERSION.SDK_INT >= 8 && mContext != null) {
externalStorageDirectory = mContext.getExternalCacheDir();
} else {
externalStorageDirectory = Envi... | public class class_name {
protected synchronized File getExternalStorageDirectory() {
File externalStorageDirectory;
if (Build.VERSION.SDK_INT >= 8 && mContext != null) {
externalStorageDirectory = mContext.getExternalCacheDir(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public Set<UserView> getAllActiveUsersForProject(ProjectView projectView) throws IntegrationException {
Set<UserView> users = new HashSet<>();
List<AssignedUserGroupView> assignedGroups = getAssignedGroupsToProject(projectView);
for (AssignedUserGroupView assignedUser... | public class class_name {
public Set<UserView> getAllActiveUsersForProject(ProjectView projectView) throws IntegrationException {
Set<UserView> users = new HashSet<>();
List<AssignedUserGroupView> assignedGroups = getAssignedGroupsToProject(projectView);
for (AssignedUserGroupView assignedUser... |
public class class_name {
private static Map<String, Object> sessionData(String sid, StatsStorage ss) {
Map<String, Object> dataThisSession = new HashMap<>();
List<String> workerIDs = ss.listWorkerIDsForSessionAndType(sid, StatsListener.TYPE_ID);
int workerCount = (workerIDs == null ? 0 : worke... | public class class_name {
private static Map<String, Object> sessionData(String sid, StatsStorage ss) {
Map<String, Object> dataThisSession = new HashMap<>();
List<String> workerIDs = ss.listWorkerIDsForSessionAndType(sid, StatsListener.TYPE_ID);
int workerCount = (workerIDs == null ? 0 : worke... |
public class class_name {
public void eachNonZeroInRow(int i, VectorProcedure procedure) {
VectorIterator it = nonZeroIteratorOfRow(i);
while (it.hasNext()) {
double x = it.next();
int j = it.index();
procedure.apply(j, x);
}
} } | public class class_name {
public void eachNonZeroInRow(int i, VectorProcedure procedure) {
VectorIterator it = nonZeroIteratorOfRow(i);
while (it.hasNext()) {
double x = it.next();
int j = it.index();
procedure.apply(j, x); // depends on control dependency: [while],... |
public class class_name {
private Request bindThreadToRequest(Thread thread, EntryPoint entryPoint) {
StandardRequest boundRequest; /*= rebindingRequest;*/
// thread.setContextClassLoader(contextClassLoader);
int threadId = thread.hashCode();
synchronized (requestsByThreadId) {
StandardRequest previouslyBou... | public class class_name {
private Request bindThreadToRequest(Thread thread, EntryPoint entryPoint) {
StandardRequest boundRequest; /*= rebindingRequest;*/
// thread.setContextClassLoader(contextClassLoader);
int threadId = thread.hashCode();
synchronized (requestsByThreadId) {
StandardRequest previouslyBou... |
public class class_name {
public void processMetadata(Metadata metadata) {
synchronized (frameListeners) {
Iterator<FrameListener> it = frameListeners.iterator();
while (it.hasNext()) {
FrameListener listener = it.next();
listener.processMetadata(metadata... | public class class_name {
public void processMetadata(Metadata metadata) {
synchronized (frameListeners) {
Iterator<FrameListener> it = frameListeners.iterator();
while (it.hasNext()) {
FrameListener listener = it.next();
listener.processMetadata(metadata... |
public class class_name {
public static String generateExactMatchPattern(URI origin,
URI destination, String bindingVar, boolean includeUrisBound) {
List<String> patterns = new ArrayList<String>();
// Exact match pattern
StringBuffer query = ... | public class class_name {
public static String generateExactMatchPattern(URI origin,
URI destination, String bindingVar, boolean includeUrisBound) {
List<String> patterns = new ArrayList<String>();
// Exact match pattern
StringBuffer query = ... |
public class class_name {
public void init() {
try {
String[] names = tgtools.web.platform.Platform.getBeanFactory().getBeanDefinitionNames();
for (String name : names) {
if (name.endsWith("CommandImpl") && tgtools.web.platform.Platform.getBean(name) instanceof Command &... | public class class_name {
public void init() {
try {
String[] names = tgtools.web.platform.Platform.getBeanFactory().getBeanDefinitionNames();
for (String name : names) {
if (name.endsWith("CommandImpl") && tgtools.web.platform.Platform.getBean(name) instanceof Command &... |
public class class_name {
public int
getValue(String str) {
str = sanitize(str);
Integer value = (Integer) strings.get(str);
if (value != null) {
return value.intValue();
}
if (prefix != null) {
if (str.startsWith(prefix)) {
int val = parseNumeric(str.substring(prefix.length()));
if (val >= 0) {
ret... | public class class_name {
public int
getValue(String str) {
str = sanitize(str);
Integer value = (Integer) strings.get(str);
if (value != null) {
return value.intValue(); // depends on control dependency: [if], data = [none]
}
if (prefix != null) {
if (str.startsWith(prefix)) {
int val = parseNumeric(str.s... |
public class class_name {
@Override
public void renderInline(final String templateInline, final Map<String, Object> context, final Map<String, WComponent> taggedComponents,
final Writer writer, final Map<String, Object> options) {
LOG.debug("Rendering inline velocity template.");
try {
// Map the tagged ... | public class class_name {
@Override
public void renderInline(final String templateInline, final Map<String, Object> context, final Map<String, WComponent> taggedComponents,
final Writer writer, final Map<String, Object> options) {
LOG.debug("Rendering inline velocity template.");
try {
// Map the tagged ... |
public class class_name {
@SuppressWarnings("unchecked")
public static File unzip(File zipFile, File outFile, Charset charset) throws UtilException {
charset = (null == charset) ? DEFAULT_CHARSET : charset;
ZipFile zipFileObj = null;
try {
zipFileObj = new ZipFile(zipFile, charset);
final Enumerat... | public class class_name {
@SuppressWarnings("unchecked")
public static File unzip(File zipFile, File outFile, Charset charset) throws UtilException {
charset = (null == charset) ? DEFAULT_CHARSET : charset;
ZipFile zipFileObj = null;
try {
zipFileObj = new ZipFile(zipFile, charset);
final Enumerat... |
public class class_name {
@SuppressWarnings("unchecked")
@Override
public PropertyEditor find(Class<?> type) {
if(type == null){
return null;
}
Class<? extends PropertyEditor> editorClass = this.register.get(type);
if (editorClass != null) {
try {
... | public class class_name {
@SuppressWarnings("unchecked")
@Override
public PropertyEditor find(Class<?> type) {
if(type == null){
return null; // depends on control dependency: [if], data = [none]
}
Class<? extends PropertyEditor> editorClass = this.register.get(type);
... |
public class class_name {
public void writeSetupSCode(String strMethodName, String strMethodReturns, String strMethodInterface, String strClassName)
{
Record recFieldData = new FieldData(this);
try {
String strScreenFieldName, strScreenLocation, strScreenFieldDesc, strScreenRow, strSc... | public class class_name {
public void writeSetupSCode(String strMethodName, String strMethodReturns, String strMethodInterface, String strClassName)
{
Record recFieldData = new FieldData(this);
try {
String strScreenFieldName, strScreenLocation, strScreenFieldDesc, strScreenRow, strSc... |
public class class_name {
public boolean isNotificationEnabled(Notification notification) {
if (!(notification instanceof AlarmNotification)) return false;
if (minLevel_10 != null) {
// SLEE 1.0 comparison
Level alarmLevel = ((AlarmNotification)notification).getLevel();
... | public class class_name {
public boolean isNotificationEnabled(Notification notification) {
if (!(notification instanceof AlarmNotification)) return false;
if (minLevel_10 != null) {
// SLEE 1.0 comparison
Level alarmLevel = ((AlarmNotification)notification).getLevel();
... |
public class class_name {
public void marshall(AlgorithmStatusItem algorithmStatusItem, ProtocolMarshaller protocolMarshaller) {
if (algorithmStatusItem == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(AlgorithmStatusItem algorithmStatusItem, ProtocolMarshaller protocolMarshaller) {
if (algorithmStatusItem == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
public void updateTenantDef(TenantDefinition tenantDef) {
synchronized (m_tenantDBMap) {
DBService dbservice = m_tenantDBMap.get(tenantDef.getName());
if (dbservice != null) {
Tenant updatedTenant = new Tenant(tenantDef);
m_logge... | public class class_name {
public void updateTenantDef(TenantDefinition tenantDef) {
synchronized (m_tenantDBMap) {
DBService dbservice = m_tenantDBMap.get(tenantDef.getName());
if (dbservice != null) {
Tenant updatedTenant = new Tenant(tenantDef);
m_logge... |
public class class_name {
public Element simulate(final List<Instruction> instructions) {
lock.lock();
try {
returnElement = null;
return simulateInternal(instructions);
} finally {
lock.unlock();
}
} } | public class class_name {
public Element simulate(final List<Instruction> instructions) {
lock.lock();
try {
returnElement = null; // depends on control dependency: [try], data = [none]
return simulateInternal(instructions); // depends on control dependency: [try], data = [none]... |
public class class_name {
public static boolean saveSshSessionAndChannel(Session session, Channel channel, GlobalSessionObject<Map<String, SSHConnection>> sessionParam, String sessionId) {
final SSHConnection sshConnection;
if (channel != null) {
sshConnection = new SSHConnection(session, c... | public class class_name {
public static boolean saveSshSessionAndChannel(Session session, Channel channel, GlobalSessionObject<Map<String, SSHConnection>> sessionParam, String sessionId) {
final SSHConnection sshConnection;
if (channel != null) {
sshConnection = new SSHConnection(session, c... |
public class class_name {
public static XMLEventReader getXMLEventReader(Source source) {
if (source instanceof StAXSource) {
return ((StAXSource) source).getXMLEventReader();
} else if (source instanceof StaxSource) {
return ((StaxSource) source).getXMLEventReader();
} ... | public class class_name {
public static XMLEventReader getXMLEventReader(Source source) {
if (source instanceof StAXSource) {
return ((StAXSource) source).getXMLEventReader(); // depends on control dependency: [if], data = [none]
} else if (source instanceof StaxSource) {
return... |
public class class_name {
public int doEndTag()
throws JspException
{
HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
if (!hasErrors()) {
if (TagConfig.isDefaultJavaScript()) {
if (_divState.id != null) {
ScriptRequ... | public class class_name {
public int doEndTag()
throws JspException
{
HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
if (!hasErrors()) {
if (TagConfig.isDefaultJavaScript()) {
if (_divState.id != null) {
ScriptRequ... |
public class class_name {
private static XColor findAutomaticFillColor(final ThemesTable themeTable,
final CTSolidColorFillProperties colorFill) {
// if there's no solidFill, then use automaticFill color
if (colorFill == null) {
return null;
}
CTSchemeColor ctsColor = colorFill.getSchemeClr();
... | public class class_name {
private static XColor findAutomaticFillColor(final ThemesTable themeTable,
final CTSolidColorFillProperties colorFill) {
// if there's no solidFill, then use automaticFill color
if (colorFill == null) {
return null;
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public Boolean put(String tableName, HRow hRow) {
boolean flag = false;
try {
HTable table = (HTable) getConnection().getTable(TableName.valueOf(tableName));
Put put = new Put(hRow.getRowKey());
for (HRow.HCell hCell : hRow.getCells()) {
... | public class class_name {
public Boolean put(String tableName, HRow hRow) {
boolean flag = false;
try {
HTable table = (HTable) getConnection().getTable(TableName.valueOf(tableName));
Put put = new Put(hRow.getRowKey());
for (HRow.HCell hCell : hRow.getCells()) {
... |
public class class_name {
public boolean exitTheStatement(BreakStmt breakStmt) {
if (!isReachable(breakStmt)) {
return false;
}
Statement breakTarget = breakTarget(breakStmt);
for (TryStmt tryStmt : containedTryStmts(breakTarget)) {
if (contains(tryStmt.getTryBlo... | public class class_name {
public boolean exitTheStatement(BreakStmt breakStmt) {
if (!isReachable(breakStmt)) {
return false; // depends on control dependency: [if], data = [none]
}
Statement breakTarget = breakTarget(breakStmt);
for (TryStmt tryStmt : containedTryStmts(brea... |
public class class_name {
@JsonMappingCompleted
protected void jsonMappingCompleted(JsonMapper jsonMapper) {
if (rawMessageTags != null) {
messageTags = createTags(rawMessageTags, jsonMapper);
}
if (rawStoryTags != null) {
storyTags = createTags(rawStoryTags, jsonMapper);
}
} } | public class class_name {
@JsonMappingCompleted
protected void jsonMappingCompleted(JsonMapper jsonMapper) {
if (rawMessageTags != null) {
messageTags = createTags(rawMessageTags, jsonMapper); // depends on control dependency: [if], data = [(rawMessageTags]
}
if (rawStoryTags != null) {
sto... |
public class class_name {
public void walkSourceContents(SourceWalker walker) {
for (int i = 0, len = this.children.size(); i < len; i++) {
if (this.children.get(i) instanceof SourceNode) {
((SourceNode) this.children.get(i)).walkSourceContents(walker);
}
}
... | public class class_name {
public void walkSourceContents(SourceWalker walker) {
for (int i = 0, len = this.children.size(); i < len; i++) {
if (this.children.get(i) instanceof SourceNode) {
((SourceNode) this.children.get(i)).walkSourceContents(walker); // depends on control depende... |
public class class_name {
private final void setExpiration(long expirationInMinutes) {
expirationInMilliseconds = System.currentTimeMillis()+ expirationInMinutes * 60 * 1000;
signature = null;
if (userData != null) {
encryptedBytes = null;
userData.addAttribute("expire", Long.t... | public class class_name {
private final void setExpiration(long expirationInMinutes) {
expirationInMilliseconds = System.currentTimeMillis()+ expirationInMinutes * 60 * 1000;
signature = null;
if (userData != null) {
encryptedBytes = null; // depends on control dependency: [if], data = [no... |
public class class_name {
public Object remove(String key) {
if (key != null) {
return map.remove(key);
}
return null;
} } | public class class_name {
public Object remove(String key) {
if (key != null) {
return map.remove(key); // depends on control dependency: [if], data = [(key]
}
return null;
} } |
public class class_name {
public synchronized Map<TaskError, Integer> getRecentErrorCounts(long timeWindow) {
long start = System.currentTimeMillis() - timeWindow;
Map<TaskError, Integer> errorCounts = createErrorCountsMap();
Iterator<Map<TaskError, Integer>> errorCountsIter = errorCountsQueue.iterator();
... | public class class_name {
public synchronized Map<TaskError, Integer> getRecentErrorCounts(long timeWindow) {
long start = System.currentTimeMillis() - timeWindow;
Map<TaskError, Integer> errorCounts = createErrorCountsMap();
Iterator<Map<TaskError, Integer>> errorCountsIter = errorCountsQueue.iterator();
... |
public class class_name {
public static IsotopePattern sortByMass(IsotopePattern isotopeP) {
try {
IsotopePattern isoSort = (IsotopePattern) isotopeP.clone();
// Do nothing for empty isotope pattern
if (isoSort.getNumberOfIsotopes() == 0)
return... | public class class_name {
public static IsotopePattern sortByMass(IsotopePattern isotopeP) {
try {
IsotopePattern isoSort = (IsotopePattern) isotopeP.clone();
// Do nothing for empty isotope pattern
if (isoSort.getNumberOfIsotopes() == 0)
return... |
public class class_name {
public Observable<ServiceResponse<Object>> getMetadataWithServiceResponseAsync(String appId) {
if (appId == null) {
throw new IllegalArgumentException("Parameter appId is required and cannot be null.");
}
return service.getMetadata(appId, this.client.accept... | public class class_name {
public Observable<ServiceResponse<Object>> getMetadataWithServiceResponseAsync(String appId) {
if (appId == null) {
throw new IllegalArgumentException("Parameter appId is required and cannot be null.");
}
return service.getMetadata(appId, this.client.accept... |
public class class_name {
public final Mono<T> next() {
if(this instanceof Callable){
@SuppressWarnings("unchecked")
Callable<T> m = (Callable<T>)this;
return convertToMono(m);
}
return Mono.onAssembly(new MonoNext<>(this));
} } | public class class_name {
public final Mono<T> next() {
if(this instanceof Callable){
@SuppressWarnings("unchecked")
Callable<T> m = (Callable<T>)this;
return convertToMono(m); // depends on control dependency: [if], data = [none]
}
return Mono.onAssembly(new MonoNext<>(this));
} } |
public class class_name {
private boolean isNotPresentDisplayedEnabledInput(String action, String expected, String extra) {
// wait for element to be present
if (isNotPresent(action, expected, extra)) {
return true;
}
// wait for element to be displayed
if (isNotDisp... | public class class_name {
private boolean isNotPresentDisplayedEnabledInput(String action, String expected, String extra) {
// wait for element to be present
if (isNotPresent(action, expected, extra)) {
return true; // depends on control dependency: [if], data = [none]
}
// ... |
public class class_name {
public DescribeLifecycleHooksResult withLifecycleHooks(LifecycleHook... lifecycleHooks) {
if (this.lifecycleHooks == null) {
setLifecycleHooks(new com.amazonaws.internal.SdkInternalList<LifecycleHook>(lifecycleHooks.length));
}
for (LifecycleHook ele : life... | public class class_name {
public DescribeLifecycleHooksResult withLifecycleHooks(LifecycleHook... lifecycleHooks) {
if (this.lifecycleHooks == null) {
setLifecycleHooks(new com.amazonaws.internal.SdkInternalList<LifecycleHook>(lifecycleHooks.length)); // depends on control dependency: [if], data = ... |
public class class_name {
public void marshall(Stream stream, ProtocolMarshaller protocolMarshaller) {
if (stream == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(stream.getStreamArn(), STREAMARN_B... | public class class_name {
public void marshall(Stream stream, ProtocolMarshaller protocolMarshaller) {
if (stream == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(stream.getStreamArn(), STREAMARN_B... |
public class class_name {
static void filterUnwantedReferences(List<JpaRef> result, Collection<BeanId> query) {
ListIterator<JpaRef> it = result.listIterator();
while (it.hasNext()) {
// remove reference from result that was not part of the query
BeanId found = it.next().getSour... | public class class_name {
static void filterUnwantedReferences(List<JpaRef> result, Collection<BeanId> query) {
ListIterator<JpaRef> it = result.listIterator();
while (it.hasNext()) {
// remove reference from result that was not part of the query
BeanId found = it.next().getSour... |
public class class_name {
public static File createTmpFile(InputStream inputStream, String name, String ext, File tmpDirFile) throws IOException {
FileOutputStream fos = null;
try {
File tmpFile;
if (tmpDirFile == null) {
tmpFile = File.createTempFile(name, '.' + ext);
} else {
... | public class class_name {
public static File createTmpFile(InputStream inputStream, String name, String ext, File tmpDirFile) throws IOException {
FileOutputStream fos = null;
try {
File tmpFile;
if (tmpDirFile == null) {
tmpFile = File.createTempFile(name, '.' + ext); // depends on control ... |
public class class_name {
public java.util.List<ReplicationGroup> getReplicationGroups() {
if (replicationGroups == null) {
replicationGroups = new com.amazonaws.internal.SdkInternalList<ReplicationGroup>();
}
return replicationGroups;
} } | public class class_name {
public java.util.List<ReplicationGroup> getReplicationGroups() {
if (replicationGroups == null) {
replicationGroups = new com.amazonaws.internal.SdkInternalList<ReplicationGroup>(); // depends on control dependency: [if], data = [none]
}
return replicationG... |
public class class_name {
public static Double castDouble(Object o) {
if (o == null) {
return null;
}
if (o instanceof Number) {
return ((Number) o).doubleValue();
}
try {
return Double.valueOf(o.toString());
} catch (NumberFormatExcep... | public class class_name {
public static Double castDouble(Object o) {
if (o == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (o instanceof Number) {
return ((Number) o).doubleValue(); // depends on control dependency: [if], data = [none]... |
public class class_name {
final void doPopulateTimeDimensions() {
final List<TimeDimension> timeDimensions = this.timeDimensionDao.getTimeDimensions();
if (timeDimensions.isEmpty()) {
logger.info("No TimeDimensions exist, creating them");
} else if (timeDimensions.size() != (24 * 60... | public class class_name {
final void doPopulateTimeDimensions() {
final List<TimeDimension> timeDimensions = this.timeDimensionDao.getTimeDimensions();
if (timeDimensions.isEmpty()) {
logger.info("No TimeDimensions exist, creating them"); // depends on control dependency: [if], data = [none... |
public class class_name {
public static ComponentImpl loadComponent(PageContext pc, Page page, String callPath, boolean isRealPath, boolean silent, boolean isExtendedComponent, boolean executeConstr)
throws PageException {
CIPage cip = toCIPage(page, callPath);
if (silent) {
// TODO is there a more direct ... | public class class_name {
public static ComponentImpl loadComponent(PageContext pc, Page page, String callPath, boolean isRealPath, boolean silent, boolean isExtendedComponent, boolean executeConstr)
throws PageException {
CIPage cip = toCIPage(page, callPath);
if (silent) {
// TODO is there a more direct ... |
public class class_name {
public MockSubnet deleteSubnet(final String subnetId) {
if (subnetId != null && allMockSubnets.containsKey(subnetId)) {
return allMockSubnets.remove(subnetId);
}
return null;
} } | public class class_name {
public MockSubnet deleteSubnet(final String subnetId) {
if (subnetId != null && allMockSubnets.containsKey(subnetId)) {
return allMockSubnets.remove(subnetId); // depends on control dependency: [if], data = [(subnetId]
}
return null;
} } |
public class class_name {
public void clear() {
if (stateStack.size()>1) {
int size = stateStack.size()-1;
throw new GroovyBugError("the compile stack contains "+size+" more push instruction"+(size==1?"":"s")+" than pops.");
}
if (lhsStack.size()>1) {
int siz... | public class class_name {
public void clear() {
if (stateStack.size()>1) {
int size = stateStack.size()-1;
throw new GroovyBugError("the compile stack contains "+size+" more push instruction"+(size==1?"":"s")+" than pops.");
}
if (lhsStack.size()>1) {
int siz... |
public class class_name {
public GetActiveNamesResult withActiveNames(String... activeNames) {
if (this.activeNames == null) {
setActiveNames(new java.util.ArrayList<String>(activeNames.length));
}
for (String ele : activeNames) {
this.activeNames.add(ele);
}
... | public class class_name {
public GetActiveNamesResult withActiveNames(String... activeNames) {
if (this.activeNames == null) {
setActiveNames(new java.util.ArrayList<String>(activeNames.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : activeNames) ... |
public class class_name {
@RobeService(group = "SystemParameter", description = "Create or update SystemParameter resource.")
@POST
@Path("admin")
@UnitOfWork
public Map<String, String> bulkSaveOrUpdate(Map<String, String> values) {
for (Map.Entry<String, String> entry : values.entrySet()) {
... | public class class_name {
@RobeService(group = "SystemParameter", description = "Create or update SystemParameter resource.")
@POST
@Path("admin")
@UnitOfWork
public Map<String, String> bulkSaveOrUpdate(Map<String, String> values) {
for (Map.Entry<String, String> entry : values.entrySet()) {
... |
public class class_name {
@Override
public void visitCode(Code obj) {
try {
XMethod xMethod = getXMethod();
if (xMethod != null) {
String[] tes = xMethod.getThrownExceptions();
Set<String> thrownExceptions = new HashSet<>(Arrays.<String> asList((tes ... | public class class_name {
@Override
public void visitCode(Code obj) {
try {
XMethod xMethod = getXMethod();
if (xMethod != null) {
String[] tes = xMethod.getThrownExceptions();
Set<String> thrownExceptions = new HashSet<>(Arrays.<String> asList((tes ... |
public class class_name {
protected void moveSelectionBottom() {
final IStructuredSelection selection = this.list.getStructuredSelection();
final int index = this.conversions.indexOf(selection.getFirstElement());
if (index >= 0 && (index + selection.size()) < this.conversions.size()) {
for (int i = 0; i < sel... | public class class_name {
protected void moveSelectionBottom() {
final IStructuredSelection selection = this.list.getStructuredSelection();
final int index = this.conversions.indexOf(selection.getFirstElement());
if (index >= 0 && (index + selection.size()) < this.conversions.size()) {
for (int i = 0; i < sel... |
public class class_name {
public String[] names(){
List<String> namesList = new ArrayList<String>();
Enumeration<String> names = session.getAttributeNames();//request.getSession(true).getAttributeNames();
if (names == null) return null;
while (names.hasMoreElements()) {
Obje... | public class class_name {
public String[] names(){
List<String> namesList = new ArrayList<String>();
Enumeration<String> names = session.getAttributeNames();//request.getSession(true).getAttributeNames();
if (names == null) return null;
while (names.hasMoreElements()) {
Obje... |
public class class_name {
@Override
public String getSolrTypeName() {
Indexed indexedAnnotation = getIndexAnnotation();
if (indexedAnnotation != null && StringUtils.hasText(indexedAnnotation.type())) {
return indexedAnnotation.type();
}
return getActualType().getSimpleName().toLowerCase();
} } | public class class_name {
@Override
public String getSolrTypeName() {
Indexed indexedAnnotation = getIndexAnnotation();
if (indexedAnnotation != null && StringUtils.hasText(indexedAnnotation.type())) {
return indexedAnnotation.type(); // depends on control dependency: [if], data = [none]
}
return getActua... |
public class class_name {
public void marshall(GetDeviceRequest getDeviceRequest, ProtocolMarshaller protocolMarshaller) {
if (getDeviceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(getD... | public class class_name {
public void marshall(GetDeviceRequest getDeviceRequest, ProtocolMarshaller protocolMarshaller) {
if (getDeviceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(getD... |
public class class_name {
public void overrideMinorityDefault(int index) {
if (targetMinorityDistMap.containsKey(index)) {
minorityLabelMap.put(index, 0);
} else {
throw new IllegalArgumentException(
"Index specified is not contained in the target min... | public class class_name {
public void overrideMinorityDefault(int index) {
if (targetMinorityDistMap.containsKey(index)) {
minorityLabelMap.put(index, 0); // depends on control dependency: [if], data = [none]
} else {
throw new IllegalArgumentException(
... |
public class class_name {
protected void solverSampleReceived(IoSession session,
SampleMessage sampleMessage) {
for (SampleListener listener : this.sampleListeners) {
listener.sampleReceived(this, sampleMessage);
}
} } | public class class_name {
protected void solverSampleReceived(IoSession session,
SampleMessage sampleMessage) {
for (SampleListener listener : this.sampleListeners) {
listener.sampleReceived(this, sampleMessage); // depends on control dependency: [for], data = [listener]
}
} } |
public class class_name {
void start() {
/* make sure any currently running dispatchers are stopped */
stop();
/* create the download dispatcher and start it. */
for (int i = 0; i < dispatchers.length; i++) {
DownloadDispatcher dispatcher = new DownloadDispatcher(downloadQueue, delivery, logger)... | public class class_name {
void start() {
/* make sure any currently running dispatchers are stopped */
stop();
/* create the download dispatcher and start it. */
for (int i = 0; i < dispatchers.length; i++) {
DownloadDispatcher dispatcher = new DownloadDispatcher(downloadQueue, delivery, logger)... |
public class class_name {
public void moveMessage(boolean discard)
throws SIMPControllableNotFoundException,
SIMPRuntimeOperationFailedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "moveMessage", new Object[] { Boolean.valueOf(discard) });
... | public class class_name {
public void moveMessage(boolean discard)
throws SIMPControllableNotFoundException,
SIMPRuntimeOperationFailedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "moveMessage", new Object[] { Boolean.valueOf(discard) });
... |
public class class_name {
private Properties loadQuartzProperties() {
InputStream resourceStream = AgentScheduler.class.getResourceAsStream("/logspace-quartz.properties");
try {
Properties properties = new Properties();
properties.load(resourceStream);
List<Object>... | public class class_name {
private Properties loadQuartzProperties() {
InputStream resourceStream = AgentScheduler.class.getResourceAsStream("/logspace-quartz.properties");
try {
Properties properties = new Properties();
properties.load(resourceStream); // depends on control dep... |
public class class_name {
public static void closeQuietly(final Connection connection)
{
if (connection != null) {
try {
connection.close();
}
catch (JMSException je) {
if (je.getCause() instanceof InterruptedException) {
... | public class class_name {
public static void closeQuietly(final Connection connection)
{
if (connection != null) {
try {
connection.close(); // depends on control dependency: [try], data = [none]
}
catch (JMSException je) {
if (je.getCause... |
public class class_name {
public static int v(String tag, String msg) {
collectLogEntry(Constants.VERBOSE, tag, msg, null);
if (isLoggable(tag, Constants.VERBOSE)) {
return android.util.Log.v(tag, msg);
}
return 0;
} } | public class class_name {
public static int v(String tag, String msg) {
collectLogEntry(Constants.VERBOSE, tag, msg, null);
if (isLoggable(tag, Constants.VERBOSE)) {
return android.util.Log.v(tag, msg); // depends on control dependency: [if], data = [none]
}
return 0;
} ... |
public class class_name {
private void updateEditorValues(
CmsEntity previous,
CmsEntity updated,
CmsEntity target,
List<String> parentPathElements) {
for (String attributeName : m_entityBackend.getType(target.getTypeName()).getAttributeNames()) {
CmsAttribut... | public class class_name {
private void updateEditorValues(
CmsEntity previous,
CmsEntity updated,
CmsEntity target,
List<String> parentPathElements) {
for (String attributeName : m_entityBackend.getType(target.getTypeName()).getAttributeNames()) {
CmsAttribut... |
public class class_name {
@Override
public boolean put(String s, V v) {
int t = 0;
int limit = s.length();
int last = 0;
for (int k = 0; k < limit; k++) {
char c = s.charAt(k);
if (isCaseInsensitive() && c < 128)
c = StringUtils.lowercases[c];... | public class class_name {
@Override
public boolean put(String s, V v) {
int t = 0;
int limit = s.length();
int last = 0;
for (int k = 0; k < limit; k++) {
char c = s.charAt(k);
if (isCaseInsensitive() && c < 128)
c = StringUtils.lowercases[c];... |
public class class_name {
public void buildFinishedClosure(BuildResult buildResult) {
Throwable failure = buildResult.getFailure();
Result result = failure == null ? Result.success() : Result.failure(failure);
logger.info("Build finished with result " + result);
MetricsDispatcher dispat... | public class class_name {
public void buildFinishedClosure(BuildResult buildResult) {
Throwable failure = buildResult.getFailure();
Result result = failure == null ? Result.success() : Result.failure(failure);
logger.info("Build finished with result " + result);
MetricsDispatcher dispat... |
public class class_name {
public void removeProfile(int position) {
if (mAccountHeaderBuilder.mProfiles != null && mAccountHeaderBuilder.mProfiles.size() > position) {
mAccountHeaderBuilder.mProfiles.remove(position);
}
mAccountHeaderBuilder.updateHeaderAndList();
} } | public class class_name {
public void removeProfile(int position) {
if (mAccountHeaderBuilder.mProfiles != null && mAccountHeaderBuilder.mProfiles.size() > position) {
mAccountHeaderBuilder.mProfiles.remove(position); // depends on control dependency: [if], data = [none]
}
mAccount... |
public class class_name {
private String getLinkIncremental(final CommandLineLinkerConfiguration linkerConfig) {
String incremental = "0";
final String[] args = linkerConfig.getPreArguments();
for (final String arg : args) {
if ("/INCREMENTAL:NO".equals(arg)) {
incremental = "1";
}
... | public class class_name {
private String getLinkIncremental(final CommandLineLinkerConfiguration linkerConfig) {
String incremental = "0";
final String[] args = linkerConfig.getPreArguments();
for (final String arg : args) {
if ("/INCREMENTAL:NO".equals(arg)) {
incremental = "1"; // depends o... |
public class class_name {
public Object executeHelper(String sql,
String mediaType,
Map<String, ParameterBindingDTO> bindValues,
boolean describeOnly,
boolean internal)
throws SnowflakeSQLException... | public class class_name {
public Object executeHelper(String sql,
String mediaType,
Map<String, ParameterBindingDTO> bindValues,
boolean describeOnly,
boolean internal)
throws SnowflakeSQLException... |
public class class_name {
@SuppressWarnings( "unchecked" )
public <V> Key<V> getRoot() {
if ( this.getParent() == null ) {
return (Key<V>) this;
} else {
return this.getParent().getRoot();
}
} } | public class class_name {
@SuppressWarnings( "unchecked" )
public <V> Key<V> getRoot() {
if ( this.getParent() == null ) {
return (Key<V>) this; // depends on control dependency: [if], data = [none]
} else {
return this.getParent().getRoot(); // depends on control dependency... |
public class class_name {
public static byte[] copyToBytes(MemorySegment[] segments, int offset, byte[] bytes,
int bytesOffset, int numBytes) {
if (inFirstSegment(segments, offset, numBytes)) {
segments[0].get(offset, bytes, bytesOffset, numBytes);
} else {
copyMultiSegmentsToBytes(segments, offset, bytes... | public class class_name {
public static byte[] copyToBytes(MemorySegment[] segments, int offset, byte[] bytes,
int bytesOffset, int numBytes) {
if (inFirstSegment(segments, offset, numBytes)) {
segments[0].get(offset, bytes, bytesOffset, numBytes); // depends on control dependency: [if], data = [none]
} else... |
public class class_name {
private String[] parseData(String hashedPassword) throws IllegalArgumentException {
// <algorithm>:<iterations>:<base64(salt)>:<base64(hash)>
String[] items = hashedPassword.split(":");
String error = null;
if (items.length == 4) {
if (SUPPORTED_ALG... | public class class_name {
private String[] parseData(String hashedPassword) throws IllegalArgumentException {
// <algorithm>:<iterations>:<base64(salt)>:<base64(hash)>
String[] items = hashedPassword.split(":");
String error = null;
if (items.length == 4) {
if (SUPPORTED_ALG... |
public class class_name {
static <T> T checkNotNull(T reference, String name) {
if (reference != null) {
return reference;
}
NullPointerException npe = new NullPointerException(name);
throw new ConfigurationException(ImmutableSet.of(new Message(npe.toString(), npe)));
} } | public class class_name {
static <T> T checkNotNull(T reference, String name) {
if (reference != null) {
return reference; // depends on control dependency: [if], data = [none]
}
NullPointerException npe = new NullPointerException(name);
throw new ConfigurationException(ImmutableSet.of(new Messa... |
public class class_name {
private synchronized static ServiceFactory createServiceFactory(Class<?> aClass, String configurationFile)
{
String factoryClassName = null;
if(aClass != null)
{
factoryClassName = Config.getProperty(new StringBuilder(ServiceFactory.class.getName()).app... | public class class_name {
private synchronized static ServiceFactory createServiceFactory(Class<?> aClass, String configurationFile)
{
String factoryClassName = null;
if(aClass != null)
{
factoryClassName = Config.getProperty(new StringBuilder(ServiceFactory.class.getName()).app... |
public class class_name {
private Collection<String> buildQueueNames(Response response) {
Collection<String> queueNames = new HashSet<>();
Collection<String> detectionSystemNames = appSensorServer.getConfiguration().getRelatedDetectionSystems(response.getDetectionSystem());
for(String detectionSystemName :... | public class class_name {
private Collection<String> buildQueueNames(Response response) {
Collection<String> queueNames = new HashSet<>();
Collection<String> detectionSystemNames = appSensorServer.getConfiguration().getRelatedDetectionSystems(response.getDetectionSystem());
for(String detectionSystemName :... |
public class class_name {
public static void createZip(String sourcePath, String zipPath) {
FileOutputStream fos = null;
ZipOutputStream zos = null;
try {
fos = new FileOutputStream(zipPath);
zos = new ZipOutputStream(fos);
writeZip(new File(sourcePath), "", ... | public class class_name {
public static void createZip(String sourcePath, String zipPath) {
FileOutputStream fos = null;
ZipOutputStream zos = null;
try {
fos = new FileOutputStream(zipPath); // depends on control dependency: [try], data = [none]
zos = new ZipOutputStrea... |
public class class_name {
public void marshall(AwsSecurityFindingFilters awsSecurityFindingFilters, ProtocolMarshaller protocolMarshaller) {
if (awsSecurityFindingFilters == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(AwsSecurityFindingFilters awsSecurityFindingFilters, ProtocolMarshaller protocolMarshaller) {
if (awsSecurityFindingFilters == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
private static int encode(Weekday... weekdays) {
int bitmask = 0;
for (Weekday weekday : weekdays) {
bitmask = bitmask | (1 << weekday.ordinal());
}
return bitmask;
} } | public class class_name {
private static int encode(Weekday... weekdays) {
int bitmask = 0;
for (Weekday weekday : weekdays) {
bitmask = bitmask | (1 << weekday.ordinal()); // depends on control dependency: [for], data = [weekday]
}
return bitmask;
} } |
public class class_name {
static public <D extends ImageGray<D>>
void nonMaxSuppressionCrude4(GrayF32 intensity , D derivX , D derivY , GrayF32 output )
{
if( derivX instanceof GrayF32) {
GradientToEdgeFeatures.nonMaxSuppressionCrude4(intensity, (GrayF32) derivX, (GrayF32) derivY,output);
} else if( derivX in... | public class class_name {
static public <D extends ImageGray<D>>
void nonMaxSuppressionCrude4(GrayF32 intensity , D derivX , D derivY , GrayF32 output )
{
if( derivX instanceof GrayF32) {
GradientToEdgeFeatures.nonMaxSuppressionCrude4(intensity, (GrayF32) derivX, (GrayF32) derivY,output); // depends on control ... |
public class class_name {
private synchronized void keepAliveSessions(long lastKeepAliveTime, long sessionTimeout) {
// Filter the list of sessions by timeout.
List<RaftSessionState> needKeepAlive = sessions.values()
.stream()
.filter(session -> session.getSessionTimeout() == sessionTimeout)
... | public class class_name {
private synchronized void keepAliveSessions(long lastKeepAliveTime, long sessionTimeout) {
// Filter the list of sessions by timeout.
List<RaftSessionState> needKeepAlive = sessions.values()
.stream()
.filter(session -> session.getSessionTimeout() == sessionTimeout)
... |
public class class_name {
private Map<String, List<CmsRelation>> getBrokenRelations(List<String> resourceNames, boolean includeSiblings) {
Map<String, List<CmsRelation>> brokenRelations = new HashMap<String, List<CmsRelation>>();
Set<String> resources = new HashSet<String>();
// expand the fol... | public class class_name {
private Map<String, List<CmsRelation>> getBrokenRelations(List<String> resourceNames, boolean includeSiblings) {
Map<String, List<CmsRelation>> brokenRelations = new HashMap<String, List<CmsRelation>>();
Set<String> resources = new HashSet<String>();
// expand the fol... |
public class class_name {
static <I extends Request, O extends Response>
Router<CompositeServiceEntry<I, O>> wrapCompositeServiceRouter(
Router<CompositeServiceEntry<I, O>> delegate) {
final Cache<PathMappingContext, CompositeServiceEntry<I, O>> cache =
Flags.compositeServiceCa... | public class class_name {
static <I extends Request, O extends Response>
Router<CompositeServiceEntry<I, O>> wrapCompositeServiceRouter(
Router<CompositeServiceEntry<I, O>> delegate) {
final Cache<PathMappingContext, CompositeServiceEntry<I, O>> cache =
Flags.compositeServiceCa... |
public class class_name {
public static double spacheScore(String strText) {
//http://simple.wikipedia.org/wiki/Spache_Readability_Formula
strText = cleanText(strText);
int intUniqueUnfamiliarWordCount = 0;
Set<String> arrWords = new HashSet<>((new WhitespaceTokenizer()).tokenize(strTex... | public class class_name {
public static double spacheScore(String strText) {
//http://simple.wikipedia.org/wiki/Spache_Readability_Formula
strText = cleanText(strText);
int intUniqueUnfamiliarWordCount = 0;
Set<String> arrWords = new HashSet<>((new WhitespaceTokenizer()).tokenize(strTex... |
public class class_name {
private ObjectType findMethodOwner(Node n) {
if (n == null) {
return null;
}
Node parent = n.getParent();
FunctionType ctor = null;
if (parent.isAssign()) {
Node target = parent.getFirstChild();
if (NodeUtil.isPrototypeProperty(target)) {
// TODO(... | public class class_name {
private ObjectType findMethodOwner(Node n) {
if (n == null) {
return null; // depends on control dependency: [if], data = [none]
}
Node parent = n.getParent();
FunctionType ctor = null;
if (parent.isAssign()) {
Node target = parent.getFirstChild();
if (No... |
public class class_name {
public void marshall(TransformInput transformInput, ProtocolMarshaller protocolMarshaller) {
if (transformInput == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(transformI... | public class class_name {
public void marshall(TransformInput transformInput, ProtocolMarshaller protocolMarshaller) {
if (transformInput == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(transformI... |
public class class_name {
public static int compareTo(final boolean caseSensitive, final CharSequence text1, final CharSequence text2) {
if (text1 == null) {
throw new IllegalArgumentException("First text being compared cannot be null");
}
if (text2 == null) {
throw new... | public class class_name {
public static int compareTo(final boolean caseSensitive, final CharSequence text1, final CharSequence text2) {
if (text1 == null) {
throw new IllegalArgumentException("First text being compared cannot be null");
}
if (text2 == null) {
throw new... |
public class class_name {
public TableCellStyle addChildCellStyle(final TableCellStyle style, final DataStyle dataStyle) {
final ChildCellStyle childKey = new ChildCellStyle(style, dataStyle);
TableCellStyle anonymousStyle = this.anonymousStyleByChildCellStyle.get(childKey);
if (anonymousStyle ... | public class class_name {
public TableCellStyle addChildCellStyle(final TableCellStyle style, final DataStyle dataStyle) {
final ChildCellStyle childKey = new ChildCellStyle(style, dataStyle);
TableCellStyle anonymousStyle = this.anonymousStyleByChildCellStyle.get(childKey);
if (anonymousStyle ... |
public class class_name {
private void preparePrint(final AbstractPrint _print) throws EFapsException {
for (final Select select : _print.getSelection().getAllSelects()) {
for (final AbstractElement<?> element : select.getElements()) {
if (element instanceof AbstractDataElement) {
... | public class class_name {
private void preparePrint(final AbstractPrint _print) throws EFapsException {
for (final Select select : _print.getSelection().getAllSelects()) {
for (final AbstractElement<?> element : select.getElements()) {
if (element instanceof AbstractDataElement) {
... |
public class class_name {
static Drawable maybeWrapWithRoundedOverlayColor(
@Nullable Drawable drawable,
@Nullable RoundingParams roundingParams) {
try {
if (FrescoSystrace.isTracing()) {
FrescoSystrace.beginSection("WrappingUtils#maybeWrapWithRoundedOverlayColor");
}
if (draw... | public class class_name {
static Drawable maybeWrapWithRoundedOverlayColor(
@Nullable Drawable drawable,
@Nullable RoundingParams roundingParams) {
try {
if (FrescoSystrace.isTracing()) {
FrescoSystrace.beginSection("WrappingUtils#maybeWrapWithRoundedOverlayColor"); // depends on control ... |
public class class_name {
public AudioWife init(Context ctx, Uri uri) {
if (uri == null) {
throw new IllegalArgumentException("Uri cannot be null");
}
if (mAudioWife == null) {
mAudioWife = new AudioWife();
}
mUri = uri;
mProgressUpdateHandler = new Handler();
initPlayer(ctx);
return this;
... | public class class_name {
public AudioWife init(Context ctx, Uri uri) {
if (uri == null) {
throw new IllegalArgumentException("Uri cannot be null");
}
if (mAudioWife == null) {
mAudioWife = new AudioWife(); // depends on control dependency: [if], data = [none]
}
mUri = uri;
mProgressUpdateHandler... |
public class class_name {
public void setVerificationState(java.util.Collection<StringFilter> verificationState) {
if (verificationState == null) {
this.verificationState = null;
return;
}
this.verificationState = new java.util.ArrayList<StringFilter>(verificationState)... | public class class_name {
public void setVerificationState(java.util.Collection<StringFilter> verificationState) {
if (verificationState == null) {
this.verificationState = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data =... |
public class class_name {
public EEnum getCDDYocBase() {
if (cddYocBaseEEnum == null) {
cddYocBaseEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(9);
}
return cddYocBaseEEnum;
} } | public class class_name {
public EEnum getCDDYocBase() {
if (cddYocBaseEEnum == null) {
cddYocBaseEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(9); // depends on control dependency: [if], data = [none]
}
return cddYocBaseEEnum;
} } |
public class class_name {
public static STextualDS getTextualDSForNode(SNode node, SDocumentGraph graph)
{
if (node != null)
{
List<DataSourceSequence> dataSources = graph.getOverlappedDataSourceSequence(
node,
SALT_TYPE.STEXT_OVERLAPPING_RELATION);
if (dataSources != null)
... | public class class_name {
public static STextualDS getTextualDSForNode(SNode node, SDocumentGraph graph)
{
if (node != null)
{
List<DataSourceSequence> dataSources = graph.getOverlappedDataSourceSequence(
node,
SALT_TYPE.STEXT_OVERLAPPING_RELATION);
if (dataSources != null)
... |
public class class_name {
public HttpExecutor getHttpExecutor(BodyType bodyType) {
if (httpClient == null) {
synchronized (HttpExecutorFactory.class) {
if (httpClient == null) {
httpClient = HttpClients.createDefault();
}
}
}
return getHttpExecutor(bodyType, httpClient... | public class class_name {
public HttpExecutor getHttpExecutor(BodyType bodyType) {
if (httpClient == null) {
synchronized (HttpExecutorFactory.class) { // depends on control dependency: [if], data = [none]
if (httpClient == null) {
httpClient = HttpClients.createDefault(); // depends on con... |
public class class_name {
public void trackers(List<String> value) {
string_vector v = new string_vector();
for (String s : value) {
v.push_back(s);
}
p.set_trackers(v);
} } | public class class_name {
public void trackers(List<String> value) {
string_vector v = new string_vector();
for (String s : value) {
v.push_back(s); // depends on control dependency: [for], data = [s]
}
p.set_trackers(v);
} } |
public class class_name {
public MetadataBuilder addExecuteAfter(Class<? extends RuleProvider> type)
{
if (type != null)
{
executeAfter.add(type);
}
return this;
} } | public class class_name {
public MetadataBuilder addExecuteAfter(Class<? extends RuleProvider> type)
{
if (type != null)
{
executeAfter.add(type); // depends on control dependency: [if], data = [(type]
}
return this;
} } |
public class class_name {
protected BundleHashcodeType isValidBundle(String requestedPath) {
BundleHashcodeType bundleHashcodeType = BundleHashcodeType.VALID_HASHCODE;
if (!jawrConfig.isDebugModeOn()) {
bundleHashcodeType = bundlesHandler.getBundleHashcodeType(requestedPath);
}
return bundleHashcodeType;
}... | public class class_name {
protected BundleHashcodeType isValidBundle(String requestedPath) {
BundleHashcodeType bundleHashcodeType = BundleHashcodeType.VALID_HASHCODE;
if (!jawrConfig.isDebugModeOn()) {
bundleHashcodeType = bundlesHandler.getBundleHashcodeType(requestedPath); // depends on control dependency: [... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.