code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public ChemComp getChemComp(String recordName) {
if (null == recordName) return null;
// handle non-existent ChemComp codes and do not repeatedly attempt to add these.
for (String str : unavailable) {
if (recordName.equals(str)) return getEmptyChemComp(recordName);
}
... | public class class_name {
@Override
public ChemComp getChemComp(String recordName) {
if (null == recordName) return null;
// handle non-existent ChemComp codes and do not repeatedly attempt to add these.
for (String str : unavailable) {
if (recordName.equals(str)) return getEmptyChemComp(recordName);
}
... |
public class class_name {
private void processNodeStateEvent(NodeStateEvent event) {
switch (stateRef.get()) {
case BEFORE_INIT:
case DURING_INIT:
throw new AssertionError("Filter should not be marked ready until LBP init");
case CLOSING:
return; // ignore
case RUNNING:
... | public class class_name {
private void processNodeStateEvent(NodeStateEvent event) {
switch (stateRef.get()) {
case BEFORE_INIT:
case DURING_INIT:
throw new AssertionError("Filter should not be marked ready until LBP init");
case CLOSING:
return; // ignore
case RUNNING:
... |
public class class_name {
public void removeClientNotificationListener(RESTRequest request, ObjectName name) {
NotificationTargetInformation nti = toNotificationTargetInformation(request, name.getCanonicalName());
// Remove locally
ClientNotificationListener listener = listeners.remove(nti);
... | public class class_name {
public void removeClientNotificationListener(RESTRequest request, ObjectName name) {
NotificationTargetInformation nti = toNotificationTargetInformation(request, name.getCanonicalName());
// Remove locally
ClientNotificationListener listener = listeners.remove(nti);
... |
public class class_name {
public static String getUserNameFromToken(String authToken) {
if (null == authToken) {
return null;
}
return authToken.split(TOKEN_SEPARATOR)[0];
} } | public class class_name {
public static String getUserNameFromToken(String authToken) {
if (null == authToken) {
return null; // depends on control dependency: [if], data = [none]
}
return authToken.split(TOKEN_SEPARATOR)[0];
} } |
public class class_name {
@Override
public EClass getIfcWarpingConstantMeasure() {
if (ifcWarpingConstantMeasureEClass == null) {
ifcWarpingConstantMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(893);
}
return ifcWarpingConstantMeasureEC... | public class class_name {
@Override
public EClass getIfcWarpingConstantMeasure() {
if (ifcWarpingConstantMeasureEClass == null) {
ifcWarpingConstantMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(893);
// depends on control dependency: [if], d... |
public class class_name {
@Pure
public Iterable<BusHub> busHubs() {
if (this.hubs == null) {
return Collections.emptyList();
}
return Collections.unmodifiableCollection(this.hubs);
} } | public class class_name {
@Pure
public Iterable<BusHub> busHubs() {
if (this.hubs == null) {
return Collections.emptyList(); // depends on control dependency: [if], data = [none]
}
return Collections.unmodifiableCollection(this.hubs);
} } |
public class class_name {
public void deleteUploadFile(HttpServletRequest request,
UploadFile uploadFile) {
try {
// removeImageFromCache(uploadFile.getId());
imageFilter.deleteUploadFile(request, uploadFile);
} catch (Exception ex) {
Debug.logError("[JdonF... | public class class_name {
public void deleteUploadFile(HttpServletRequest request,
UploadFile uploadFile) {
try {
// removeImageFromCache(uploadFile.getId());
imageFilter.deleteUploadFile(request, uploadFile);
// depends on control dependency: [try], data = [none]
... |
public class class_name {
public Statement withUpdatedParameters( Value updates )
{
if ( updates == null || updates.isEmpty() )
{
return this;
}
else
{
Map<String,Value> newParameters = newHashMapWithSize( Math.max( parameters.size(), updates.size() )... | public class class_name {
public Statement withUpdatedParameters( Value updates )
{
if ( updates == null || updates.isEmpty() )
{
return this; // depends on control dependency: [if], data = [none]
}
else
{
Map<String,Value> newParameters = newHashMapW... |
public class class_name {
public static MoleculerError create(Tree payload) {
// Get name field (~= NodeJS or Java class)
String name = payload.get("name", (String) null);
// Create built-in types
if (name != null && !name.isEmpty()) {
switch (name) {
case MOLECULER_ERROR:
return new Molec... | public class class_name {
public static MoleculerError create(Tree payload) {
// Get name field (~= NodeJS or Java class)
String name = payload.get("name", (String) null);
// Create built-in types
if (name != null && !name.isEmpty()) {
switch (name) {
case MOLECULER_ERROR:
return new Molec... |
public class class_name {
protected void parseRootElement() {
JobExecutorXmlImpl jobExecutor = new JobExecutorXmlImpl();
List<ProcessEngineXml> processEngines = new ArrayList<ProcessEngineXml>();
for (Element element : rootElement.elements()) {
if(JOB_EXECUTOR.equals(element.getTagName())) {
... | public class class_name {
protected void parseRootElement() {
JobExecutorXmlImpl jobExecutor = new JobExecutorXmlImpl();
List<ProcessEngineXml> processEngines = new ArrayList<ProcessEngineXml>();
for (Element element : rootElement.elements()) {
if(JOB_EXECUTOR.equals(element.getTagName())) {
... |
public class class_name {
private static void addToReceivers(final BroadcastReceiver receiver, final String action) {
Set<String> actions = RECEIVERS.get(receiver);
if (actions == null) {
actions = new HashSet<String>(1);
RECEIVERS.put(receiver, actions);
}
actions.add(action);
} } | public class class_name {
private static void addToReceivers(final BroadcastReceiver receiver, final String action) {
Set<String> actions = RECEIVERS.get(receiver);
if (actions == null) {
actions = new HashSet<String>(1); // depends on control dependency: [if], data = [none]
RECEIVERS.put(receiver, actions);... |
public class class_name {
public boolean containsDTOFor(JavaClass<?> entity, boolean root)
{
if (dtos.get(entity) == null)
{
return false;
}
return (root ? (dtos.get(entity).rootDTO != null) : (dtos.get(entity).nestedDTO != null));
} } | public class class_name {
public boolean containsDTOFor(JavaClass<?> entity, boolean root)
{
if (dtos.get(entity) == null)
{
return false; // depends on control dependency: [if], data = [none]
}
return (root ? (dtos.get(entity).rootDTO != null) : (dtos.get(entity).nestedDTO != null)... |
public class class_name {
public void sendInstances(Stream inputStream,
int numberInstances, boolean isTraining, boolean isTesting) {
int numberSamples = 0;
while (streamSource.hasMoreInstances()
&& numberSamples < numberInstances) {
numberSamples++;
numberInstancesSent++;
InstanceC... | public class class_name {
public void sendInstances(Stream inputStream,
int numberInstances, boolean isTraining, boolean isTesting) {
int numberSamples = 0;
while (streamSource.hasMoreInstances()
&& numberSamples < numberInstances) {
numberSamples++; // depends on control dependency: [whi... |
public class class_name {
public V put(K key, V value)
{
// Remove any existing matching key from the data
V removedObject = remove(key);
// Insert the data into the map.
dataMap.put(key, value);
// If the key is fresh, enqueue it.
if (removedObject != null)
... | public class class_name {
public V put(K key, V value)
{
// Remove any existing matching key from the data
V removedObject = remove(key);
// Insert the data into the map.
dataMap.put(key, value);
// If the key is fresh, enqueue it.
if (removedObject != null)
... |
public class class_name {
public CompensatingTransactionOperationExecutor recordOperation(
Object[] args) {
if (args == null || args.length != 3) {
throw new IllegalArgumentException(
"Invalid arguments for bind operation");
}
Name dn = LdapTran... | public class class_name {
public CompensatingTransactionOperationExecutor recordOperation(
Object[] args) {
if (args == null || args.length != 3) {
throw new IllegalArgumentException(
"Invalid arguments for bind operation");
}
Name dn = LdapTran... |
public class class_name {
private List<Method> getExcludedMethods(final Class<?> cls) {
final List<Method> lst = new ArrayList<Method>();
for (final ContractExclude exclude : cls.getAnnotationsByType( ContractExclude.class )) {
final Class<?> clazz = exclude.value();
for (final... | public class class_name {
private List<Method> getExcludedMethods(final Class<?> cls) {
final List<Method> lst = new ArrayList<Method>();
for (final ContractExclude exclude : cls.getAnnotationsByType( ContractExclude.class )) {
final Class<?> clazz = exclude.value();
for (final... |
public class class_name {
@SuppressWarnings("unchecked")
private static <V extends FeatureVector<F>, F> ArrayAdapter<F, ? super V> getAdapter(Factory<V, F> factory) {
if(factory instanceof NumberVector.Factory) {
return (ArrayAdapter<F, ? super V>) NumberVectorAdapter.STATIC;
}
return (ArrayAdapter... | public class class_name {
@SuppressWarnings("unchecked")
private static <V extends FeatureVector<F>, F> ArrayAdapter<F, ? super V> getAdapter(Factory<V, F> factory) {
if(factory instanceof NumberVector.Factory) {
return (ArrayAdapter<F, ? super V>) NumberVectorAdapter.STATIC; // depends on control dependen... |
public class class_name {
private static Page extractNonEmptyPage(PageBuffer pageBuffer)
{
Page page = pageBuffer.poll();
while (page != null && page.getPositionCount() == 0) {
page = pageBuffer.poll();
}
return page;
} } | public class class_name {
private static Page extractNonEmptyPage(PageBuffer pageBuffer)
{
Page page = pageBuffer.poll();
while (page != null && page.getPositionCount() == 0) {
page = pageBuffer.poll(); // depends on control dependency: [while], data = [none]
}
return pa... |
public class class_name {
@Override
public void render() {
if (false == HuluSetting.isDevMode) {
Response.sendError(this.errorCode, this.errorContent);
return;
}
if (null != e) {
StaticLog.error(e);
if (null == this.errorContent) {
this.errorContent = StrUtil.EMPTY;
}
String s... | public class class_name {
@Override
public void render() {
if (false == HuluSetting.isDevMode) {
Response.sendError(this.errorCode, this.errorContent);
// depends on control dependency: [if], data = [none]
return;
// depends on control dependency: [if], data = [none]
}
if (null != e) {
StaticL... |
public class class_name {
protected <T> T deserialiseResponseMessage(CloseableHttpResponse response, Class<T> responseClass) throws IOException {
T body = null;
HttpEntity entity = response.getEntity();
if (entity != null && responseClass != null) {
try (InputStream inputStream = e... | public class class_name {
protected <T> T deserialiseResponseMessage(CloseableHttpResponse response, Class<T> responseClass) throws IOException {
T body = null;
HttpEntity entity = response.getEntity();
if (entity != null && responseClass != null) {
try (InputStream inputStream = e... |
public class class_name {
public static net.sf.cglib.reflect.FastClass newFastClassForMember(Class<?> type, Member member) {
if (!new net.sf.cglib.core.VisibilityPredicate(type, false).evaluate(member)) {
// the member cannot be indexed by fast class. Bail out.
return null;
}
boolean publicly... | public class class_name {
public static net.sf.cglib.reflect.FastClass newFastClassForMember(Class<?> type, Member member) {
if (!new net.sf.cglib.core.VisibilityPredicate(type, false).evaluate(member)) {
// the member cannot be indexed by fast class. Bail out.
return null; // depends on control depen... |
public class class_name {
private void changeBody(ImmutableMap<Integer, String> argNames) {
for (Node ref : currentArgumentsAccesses) {
Node index = ref.getNext();
Node parent = ref.getParent();
int value = (int) index.getDouble(); // This was validated earlier.
@Nullable String name = arg... | public class class_name {
private void changeBody(ImmutableMap<Integer, String> argNames) {
for (Node ref : currentArgumentsAccesses) {
Node index = ref.getNext();
Node parent = ref.getParent();
int value = (int) index.getDouble(); // This was validated earlier.
@Nullable String name = arg... |
public class class_name {
public static void delete(String key, String word) {
Forest dic = get(key);
if (dic != null) {
Library.removeWord(dic, word);
}
} } | public class class_name {
public static void delete(String key, String word) {
Forest dic = get(key);
if (dic != null) {
Library.removeWord(dic, word); // depends on control dependency: [if], data = [(dic]
}
} } |
public class class_name {
private CmsDynamicFunctionBean.Format getFunctionFormat() {
CmsDynamicFunctionBean functionBean = null;
try {
CmsXmlContent content = CmsXmlContentFactory.unmarshal(m_cms, m_cms.readFile(m_element.getResource()));
CmsDynamicFunctionParser parser = new ... | public class class_name {
private CmsDynamicFunctionBean.Format getFunctionFormat() {
CmsDynamicFunctionBean functionBean = null;
try {
CmsXmlContent content = CmsXmlContentFactory.unmarshal(m_cms, m_cms.readFile(m_element.getResource()));
CmsDynamicFunctionParser parser = new ... |
public class class_name {
public void forceTermination() {
// Only need to change root state
final Phaser root = this.root;
long s;
while ((s = root.state) >= 0) {
if (U.compareAndSwapLong(root, STATE, s, s | TERMINATION_BIT)) {
// signal all threads
... | public class class_name {
public void forceTermination() {
// Only need to change root state
final Phaser root = this.root;
long s;
while ((s = root.state) >= 0) {
if (U.compareAndSwapLong(root, STATE, s, s | TERMINATION_BIT)) {
// signal all threads
... |
public class class_name {
public SampleSummaryStatistics combine(final SampleSummaryStatistics other) {
if (other._parameterCount != _parameterCount) {
throw new IllegalArgumentException(format(
"Expected sample size of %d, but got %d.",
_parameterCount, other._parameterCount
));
}
for (int i = 0;... | public class class_name {
public SampleSummaryStatistics combine(final SampleSummaryStatistics other) {
if (other._parameterCount != _parameterCount) {
throw new IllegalArgumentException(format(
"Expected sample size of %d, but got %d.",
_parameterCount, other._parameterCount
));
}
for (int i = 0;... |
public class class_name {
private int detectJavaVersionNumber() {
String javaVersion = JAVA_VERSION;
final int lastDashNdx = javaVersion.lastIndexOf('-');
if (lastDashNdx != -1) {
javaVersion = javaVersion.substring(0, lastDashNdx);
}
if (javaVersion.startsWith("1.")) {
// up to java 8
final int i... | public class class_name {
private int detectJavaVersionNumber() {
String javaVersion = JAVA_VERSION;
final int lastDashNdx = javaVersion.lastIndexOf('-');
if (lastDashNdx != -1) {
javaVersion = javaVersion.substring(0, lastDashNdx); // depends on control dependency: [if], data = [none]
}
if (javaVersion... |
public class class_name {
@GwtIncompatible("incompatible method")
private void reflectionAppend(
final Object lhs,
final Object rhs,
final Class<?> clazz) {
if (isRegistered(lhs, rhs)) {
return;
}
try {
register(lhs, rhs);
final ... | public class class_name {
@GwtIncompatible("incompatible method")
private void reflectionAppend(
final Object lhs,
final Object rhs,
final Class<?> clazz) {
if (isRegistered(lhs, rhs)) {
return; // depends on control dependency: [if], data = [none]
}
tr... |
public class class_name {
public static List<Thread> start(final Timer timer) {
if (!timer.isEnabled()) {
logger.info("当前服务器不启用定时器[" + timer.getClass().getSimpleName() + "]。");
return null;
}
int threadCount = timer.getThreadCount();
if (threadCount < 1) {
throw new IllegalArgumentException("... | public class class_name {
public static List<Thread> start(final Timer timer) {
if (!timer.isEnabled()) {
logger.info("当前服务器不启用定时器[" + timer.getClass().getSimpleName() + "]。");
// depends on control dependency: [if], data = [none]
return null;
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private static void initBareJidAndDeviceId(OmemoManager manager) {
if (!manager.getConnection().isAuthenticated()) {
throw new IllegalStateException("Connection MUST be authenticated.");
}
if (manager.ownJid == null) {
manager.ownJid = manager.... | public class class_name {
private static void initBareJidAndDeviceId(OmemoManager manager) {
if (!manager.getConnection().isAuthenticated()) {
throw new IllegalStateException("Connection MUST be authenticated.");
}
if (manager.ownJid == null) {
manager.ownJid = manager.... |
public class class_name {
@Override
public IS13SessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) {
if (clazz.equals(ClientS13Session.class)) {
ClientS13SessionDataReplicatedImpl data =
new ClientS13SessionDataReplicatedImpl(sessionId, this.mobicentsCluster, this.r... | public class class_name {
@Override
public IS13SessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) {
if (clazz.equals(ClientS13Session.class)) {
ClientS13SessionDataReplicatedImpl data =
new ClientS13SessionDataReplicatedImpl(sessionId, this.mobicentsCluster, this.r... |
public class class_name {
private boolean updateSVScalar(String currentValue) {
String newValue = m_dbObj.getFieldValue(m_fieldName);
boolean bUpdated = false;
if (Utils.isEmpty(newValue)) {
if (!Utils.isEmpty(currentValue)) {
m_dbTran.deleteScalarValueColumn(m_... | public class class_name {
private boolean updateSVScalar(String currentValue) {
String newValue = m_dbObj.getFieldValue(m_fieldName);
boolean bUpdated = false;
if (Utils.isEmpty(newValue)) {
if (!Utils.isEmpty(currentValue)) {
m_dbTran.deleteScalarValueColumn(m_... |
public class class_name {
@Override
public void loadFromProperties(Properties props) {
String strValue = props.getProperty(container.getSimpleName() + "." + name);
if (strValue == null)
return;
try {
double doubleValue = Double.parseDouble(strValue);
set... | public class class_name {
@Override
public void loadFromProperties(Properties props) {
String strValue = props.getProperty(container.getSimpleName() + "." + name);
if (strValue == null)
return;
try {
double doubleValue = Double.parseDouble(strValue);
set... |
public class class_name {
@Override
public void close() throws VoldemortException {
logger.debug("Close called for read-only store.");
this.fileModificationLock.writeLock().lock();
try {
if(isOpen) {
this.isOpen = false;
fileSet.close();
... | public class class_name {
@Override
public void close() throws VoldemortException {
logger.debug("Close called for read-only store.");
this.fileModificationLock.writeLock().lock();
try {
if(isOpen) {
this.isOpen = false; // depends on control dependency: [if], d... |
public class class_name {
public Observable<ServiceResponse<List<RecommendedActionInner>>> listByDatabaseAdvisorWithServiceResponseAsync(String resourceGroupName, String serverName, String databaseName, String advisorName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Param... | public class class_name {
public Observable<ServiceResponse<List<RecommendedActionInner>>> listByDatabaseAdvisorWithServiceResponseAsync(String resourceGroupName, String serverName, String databaseName, String advisorName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Param... |
public class class_name {
public Field updateFieldDecimalSpinner(
Field formFieldParam,
double minParam,
double maxParam,
double stepFactorParam,
String prefixParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
... | public class class_name {
public Field updateFieldDecimalSpinner(
Field formFieldParam,
double minParam,
double maxParam,
double stepFactorParam,
String prefixParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
... |
public class class_name {
protected Object getSingleExcelRow(Object userObj, String key, boolean isExternalCall) {
logger.entering(new Object[] { userObj, key, isExternalCall });
Class<?> cls;
try {
cls = Class.forName(userObj.getClass().getName());
} catch (ClassNotFoundExc... | public class class_name {
protected Object getSingleExcelRow(Object userObj, String key, boolean isExternalCall) {
logger.entering(new Object[] { userObj, key, isExternalCall });
Class<?> cls;
try {
cls = Class.forName(userObj.getClass().getName()); // depends on control dependency:... |
public class class_name {
@Override
protected void processAnnotations(Set<WebXml> fragments, boolean handlesTypesOnly, Map<String, JavaClassCacheEntry> javaClassCache) {
if (isAnnotationHandlingDetect()) {
super.processAnnotations(fragments, handlesTypesOnly, javaClassCache);
}
} } | public class class_name {
@Override
protected void processAnnotations(Set<WebXml> fragments, boolean handlesTypesOnly, Map<String, JavaClassCacheEntry> javaClassCache) {
if (isAnnotationHandlingDetect()) {
super.processAnnotations(fragments, handlesTypesOnly, javaClassCache); // depends on cont... |
public class class_name {
public List<SDVariable> diff(List<SDVariable> i_v1) {
List<SDVariable> vals = doDiff(i_v1);
if(vals == null){
throw new IllegalStateException("Error executing diff operation: doDiff returned null for op: " + this.opName());
}
val outputVars = args(... | public class class_name {
public List<SDVariable> diff(List<SDVariable> i_v1) {
List<SDVariable> vals = doDiff(i_v1);
if(vals == null){
throw new IllegalStateException("Error executing diff operation: doDiff returned null for op: " + this.opName());
}
val outputVars = args(... |
public class class_name {
public Collection<String> getLocalPlacements() {
List<String> placements = Lists.newArrayList();
for (String placementName : _placementFactory.getValidPlacements()) {
Placement placement;
try {
placement = get(placementName);
... | public class class_name {
public Collection<String> getLocalPlacements() {
List<String> placements = Lists.newArrayList();
for (String placementName : _placementFactory.getValidPlacements()) {
Placement placement;
try {
placement = get(placementName); // depends ... |
public class class_name {
public void setWorkflowState(java.util.Collection<StringFilter> workflowState) {
if (workflowState == null) {
this.workflowState = null;
return;
}
this.workflowState = new java.util.ArrayList<StringFilter>(workflowState);
} } | public class class_name {
public void setWorkflowState(java.util.Collection<StringFilter> workflowState) {
if (workflowState == null) {
this.workflowState = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
final Node<K,V> find(int h, Object k) {
if (k != null) {
for (Node<K,V> e = first; e != null; ) {
int s; K ek;
if (((s = lockState) & (WAITER|WRITER)) != 0) {
if (e.hash == h &&
... | public class class_name {
final Node<K,V> find(int h, Object k) {
if (k != null) {
for (Node<K,V> e = first; e != null; ) {
int s; K ek;
if (((s = lockState) & (WAITER|WRITER)) != 0) {
if (e.hash == h &&
... |
public class class_name {
public PlainChangesLog pushLog(QPath rootPath)
{
// session instance is always present in SessionChangesLog
PlainChangesLog cLog = new PlainChangesLogImpl(getDescendantsChanges(rootPath), session);
if (rootPath.equals(Constants.ROOT_PATH))
{
clear();
... | public class class_name {
public PlainChangesLog pushLog(QPath rootPath)
{
// session instance is always present in SessionChangesLog
PlainChangesLog cLog = new PlainChangesLogImpl(getDescendantsChanges(rootPath), session);
if (rootPath.equals(Constants.ROOT_PATH))
{
clear(); // dep... |
public class class_name {
public EEnum getIfcBuildingElementProxyTypeEnum() {
if (ifcBuildingElementProxyTypeEnumEEnum == null) {
ifcBuildingElementProxyTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(788);
}
return ifcBuildingElementPr... | public class class_name {
public EEnum getIfcBuildingElementProxyTypeEnum() {
if (ifcBuildingElementProxyTypeEnumEEnum == null) {
ifcBuildingElementProxyTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(788);
// depends on control dependency: ... |
public class class_name {
protected int decodeMandatoryParameters(ISUPParameterFactory parameterFactory, byte[] b, int index)
throws ParameterException {
int localIndex = index;
index += super.decodeMandatoryParameters(parameterFactory, b, index);
if (b.length - index > 5) {
... | public class class_name {
protected int decodeMandatoryParameters(ISUPParameterFactory parameterFactory, byte[] b, int index)
throws ParameterException {
int localIndex = index;
index += super.decodeMandatoryParameters(parameterFactory, b, index);
if (b.length - index > 5) {
... |
public class class_name {
@Override
public AbstractQPart appendSQL(final SQLSelect _sql)
{
if (this.ignoreCase) {
_sql.addPart(SQLPart.UPPER).addPart(SQLPart.PARENTHESIS_OPEN);
}
_sql.addColumnPart(this.tableIndex, this.attribute.getSqlColNames().get(0));
if (this.ig... | public class class_name {
@Override
public AbstractQPart appendSQL(final SQLSelect _sql)
{
if (this.ignoreCase) {
_sql.addPart(SQLPart.UPPER).addPart(SQLPart.PARENTHESIS_OPEN); // depends on control dependency: [if], data = [none]
}
_sql.addColumnPart(this.tableIndex, this.a... |
public class class_name {
@Override
public void addDocument(@NotNull Document document) {
if (documentsCache != null && rankingAlgorithm != null && documentIndexCache != null) {
Set<FacetRank> facetRanks = rankingAlgorithm.calculate(buildFacets(document));
documentsCache.put(docume... | public class class_name {
@Override
public void addDocument(@NotNull Document document) {
if (documentsCache != null && rankingAlgorithm != null && documentIndexCache != null) {
Set<FacetRank> facetRanks = rankingAlgorithm.calculate(buildFacets(document));
documentsCache.put(docume... |
public class class_name {
static void setResizeWeight(JSplitPane pane, double weight) {
try {
Method m = JSplitPane.class.getMethod("setResizeWeight",
new Class[]{double.class});
m.invoke(pane, new Object[]{new Double(weight)});
... | public class class_name {
static void setResizeWeight(JSplitPane pane, double weight) {
try {
Method m = JSplitPane.class.getMethod("setResizeWeight",
new Class[]{double.class});
m.invoke(pane, new Object[]{new Double(weight)}); // depen... |
public class class_name {
@Override
public EClass getIfcResourceConstraintRelationship() {
if (ifcResourceConstraintRelationshipEClass == null) {
ifcResourceConstraintRelationshipEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(572);
}
return ifc... | public class class_name {
@Override
public EClass getIfcResourceConstraintRelationship() {
if (ifcResourceConstraintRelationshipEClass == null) {
ifcResourceConstraintRelationshipEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(572);
// depends on con... |
public class class_name {
private static String dumpArrayString(Object[] arguments) {
StringBuilder argBuf = new StringBuilder("[");
for (int i = 0; i < arguments.length; i++) {
if (i > 0) {
argBuf.append(", ");
}
argBuf.append(DefaultGroovyMethods.dump(arguments[i]));
}
argBu... | public class class_name {
private static String dumpArrayString(Object[] arguments) {
StringBuilder argBuf = new StringBuilder("[");
for (int i = 0; i < arguments.length; i++) {
if (i > 0) {
argBuf.append(", "); // depends on control dependency: [if], data = [none]
}
argBuf.append(Def... |
public class class_name {
private Throwable mapException(EJSDeployedSupport s, RemoteException ex) //d135584
{
try
{
if (ex instanceof CSIException) {
CSIException csiex = (CSIException) ex;
return mapCSIException(s, csiex);
}
else... | public class class_name {
private Throwable mapException(EJSDeployedSupport s, RemoteException ex) //d135584
{
try
{
if (ex instanceof CSIException) {
CSIException csiex = (CSIException) ex;
return mapCSIException(s, csiex); // depends on control dependen... |
public class class_name {
public boolean isTriggeringEvent(LoggingEvent event) {
//
// in the abnormal case of no contained filters
// always return true to avoid each logging event
// from having its own file.
if (headFilter == null) {
return false;
}
//
// otherwis... | public class class_name {
public boolean isTriggeringEvent(LoggingEvent event) {
//
// in the abnormal case of no contained filters
// always return true to avoid each logging event
// from having its own file.
if (headFilter == null) {
return false; // depends on control dependency... |
public class class_name {
public void onReceivedPesponse(ResponseHeader header, Response response){
Packet packet = null;
updateRecv();
if (header.getXid() == -4) {
// -4 is the xid for AuthPacket
if(ErrorCode.AUTHENT_FAILED.equals(header.getErr())) {
if... | public class class_name {
public void onReceivedPesponse(ResponseHeader header, Response response){
Packet packet = null;
updateRecv();
if (header.getXid() == -4) {
// -4 is the xid for AuthPacket
if(ErrorCode.AUTHENT_FAILED.equals(header.getErr())) {
if... |
public class class_name {
public static boolean isBoolean(final String param) {
if (isEmpty(param)) {
return false;
}
return param.equalsIgnoreCase("true") || param.equalsIgnoreCase("false");
} } | public class class_name {
public static boolean isBoolean(final String param) {
if (isEmpty(param)) {
return false;
// depends on control dependency: [if], data = [none]
}
return param.equalsIgnoreCase("true") || param.equalsIgnoreCase("false");
} } |
public class class_name {
public static void shutDownMember(String name)
{
try
{
ObjectName serverName = new ObjectName("GemFire:type=Member,member="+name);
JMX jmx = SingletonGemFireJmx.getJmx();
MemberMXBean bean = jmx.newBean(MemberMXBean.class,serverName);
bean.shutDownMember();
//... | public class class_name {
public static void shutDownMember(String name)
{
try
{
ObjectName serverName = new ObjectName("GemFire:type=Member,member="+name);
JMX jmx = SingletonGemFireJmx.getJmx();
MemberMXBean bean = jmx.newBean(MemberMXBean.class,serverName);
bean.shutDownMember(); // depend... |
public class class_name {
public Collection<BeanRule> getBeanRules() {
Collection<BeanRule> idBasedBeanRules = beanRuleRegistry.getIdBasedBeanRules();
Collection<Set<BeanRule>> typeBasedBeanRules = beanRuleRegistry.getTypeBasedBeanRules();
Collection<BeanRule> configurableBeanRules = beanRuleRe... | public class class_name {
public Collection<BeanRule> getBeanRules() {
Collection<BeanRule> idBasedBeanRules = beanRuleRegistry.getIdBasedBeanRules();
Collection<Set<BeanRule>> typeBasedBeanRules = beanRuleRegistry.getTypeBasedBeanRules();
Collection<BeanRule> configurableBeanRules = beanRuleRe... |
public class class_name {
private Expression joinOperations(Expression result, String operation, Expression next) {
if (!(result instanceof Operation)) {
return new Operation(operation, result, next);
}
Operation farRight = (Operation) result;
while (farRight.getRight() inst... | public class class_name {
private Expression joinOperations(Expression result, String operation, Expression next) {
if (!(result instanceof Operation)) {
return new Operation(operation, result, next); // depends on control dependency: [if], data = [none]
}
Operation farRight = (Oper... |
public class class_name {
public static BeanInfo createBeanInfo(Class<? extends Object> c) {
BeanInfo bi = DefaultBeanInfoResolver.getBeanInfoHelper(c);
if (bi == null) {
bi = new ConfigBeanInfo(c);
DefaultBeanInfoResolver.addBeanInfo(c, bi);
}
return bi;
} } | public class class_name {
public static BeanInfo createBeanInfo(Class<? extends Object> c) {
BeanInfo bi = DefaultBeanInfoResolver.getBeanInfoHelper(c);
if (bi == null) {
bi = new ConfigBeanInfo(c); // depends on control dependency: [if], data = [none]
DefaultBeanInfoResolver.ad... |
public class class_name {
@VisibleForTesting
synchronized void consumerSubscriptionRebalance() {
log.debug("Subscribed Topics " + this.consumer.subscription());
if (!this.subscribedTopics.isEmpty()) {
final Iterator<String> iter = this.subscribedTopics.iterator();
final List<String> topics = new ... | public class class_name {
@VisibleForTesting
synchronized void consumerSubscriptionRebalance() {
log.debug("Subscribed Topics " + this.consumer.subscription());
if (!this.subscribedTopics.isEmpty()) {
final Iterator<String> iter = this.subscribedTopics.iterator();
final List<String> topics = new ... |
public class class_name {
private int canBeAccommodated(int sourceTypeIndex, int targetTypeIndex) {
if (sourceTypeIndex >= this.availableInstanceTypes.length
|| targetTypeIndex >= this.availableInstanceTypes.length) {
LOG.error("Cannot determine number of instance accomodations: invalid index");
return 0;
... | public class class_name {
private int canBeAccommodated(int sourceTypeIndex, int targetTypeIndex) {
if (sourceTypeIndex >= this.availableInstanceTypes.length
|| targetTypeIndex >= this.availableInstanceTypes.length) {
LOG.error("Cannot determine number of instance accomodations: invalid index"); // depends on... |
public class class_name {
public void setFleets(java.util.Collection<Fleet> fleets) {
if (fleets == null) {
this.fleets = null;
return;
}
this.fleets = new java.util.ArrayList<Fleet>(fleets);
} } | public class class_name {
public void setFleets(java.util.Collection<Fleet> fleets) {
if (fleets == null) {
this.fleets = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.fleets = new java.u... |
public class class_name {
public void setCapacity(long capacity) {
if (capacity < MIN_HEADER_TABLE_SIZE || capacity > MAX_HEADER_TABLE_SIZE) {
throw new IllegalArgumentException("capacity is invalid: " + capacity);
}
// initially capacity will be -1 so init won't return here
... | public class class_name {
public void setCapacity(long capacity) {
if (capacity < MIN_HEADER_TABLE_SIZE || capacity > MAX_HEADER_TABLE_SIZE) {
throw new IllegalArgumentException("capacity is invalid: " + capacity);
}
// initially capacity will be -1 so init won't return here
... |
public class class_name {
@Override
public CommerceAccountUserRel remove(Serializable primaryKey)
throws NoSuchAccountUserRelException {
Session session = null;
try {
session = openSession();
CommerceAccountUserRel commerceAccountUserRel = (CommerceAccountUserRel)session.get(CommerceAccountUserRelImpl.c... | public class class_name {
@Override
public CommerceAccountUserRel remove(Serializable primaryKey)
throws NoSuchAccountUserRelException {
Session session = null;
try {
session = openSession();
CommerceAccountUserRel commerceAccountUserRel = (CommerceAccountUserRel)session.get(CommerceAccountUserRelImpl.c... |
public class class_name {
private CmsResource getMessageBundle() {
OpenCms.getLocaleManager();
String localString = CmsLocaleManager.getDefaultLocale().toString();
List<String> moduleResource = m_module.getResources();
for (String resourcePath : moduleResource) {
if (resour... | public class class_name {
private CmsResource getMessageBundle() {
OpenCms.getLocaleManager();
String localString = CmsLocaleManager.getDefaultLocale().toString();
List<String> moduleResource = m_module.getResources();
for (String resourcePath : moduleResource) {
if (resour... |
public class class_name {
protected String getWidget(CmsWidgetDialogParameter param) {
if (param != null) {
return param.getWidget().getDialogWidget(getCms(), this, param);
}
return null;
} } | public class class_name {
protected String getWidget(CmsWidgetDialogParameter param) {
if (param != null) {
return param.getWidget().getDialogWidget(getCms(), this, param); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
private List<ReportCodeLine> generateReportCodeBody(TestMethod rootMethod,
RunFailure runFailure, boolean executed) throws IllegalTestScriptException {
String currentStepLabelTtId = null;
List<ReportCodeLine> result = new ArrayList<>(rootMethod.getCodeBody().size()... | public class class_name {
private List<ReportCodeLine> generateReportCodeBody(TestMethod rootMethod,
RunFailure runFailure, boolean executed) throws IllegalTestScriptException {
String currentStepLabelTtId = null;
List<ReportCodeLine> result = new ArrayList<>(rootMethod.getCodeBody().size()... |
public class class_name {
public static void showOnScreen(final int screen, final JFrame frame)
{
if (isScreenAvailableToShow(screen))
{
final GraphicsDevice[] graphicsDevices = getAvailableScreens();
graphicsDevices[screen].setFullScreenWindow(frame);
}
} } | public class class_name {
public static void showOnScreen(final int screen, final JFrame frame)
{
if (isScreenAvailableToShow(screen))
{
final GraphicsDevice[] graphicsDevices = getAvailableScreens();
graphicsDevices[screen].setFullScreenWindow(frame); // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public EClass getDoubleType() {
if (doubleTypeEClass == null) {
doubleTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(77);
}
return doubleTypeEClass;
} } | public class class_name {
@Override
public EClass getDoubleType() {
if (doubleTypeEClass == null) {
doubleTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(77);
// depends on control dependency: [if], data = [none]
}
return doubleTypeEClass;
} } |
public class class_name {
public TVEpisodeInfo getEpisodeInfo(int tvID, int seasonNumber, int episodeNumber, String language, String... appendToResponse) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.SEASON_NUMBE... | public class class_name {
public TVEpisodeInfo getEpisodeInfo(int tvID, int seasonNumber, int episodeNumber, String language, String... appendToResponse) throws MovieDbException {
TmdbParameters parameters = new TmdbParameters();
parameters.add(Param.ID, tvID);
parameters.add(Param.SEASON_NUMBE... |
public class class_name {
public MoveResult<Solution_> take() throws InterruptedException {
int moveIndex = nextMoveIndex;
nextMoveIndex++;
if (!backlog.isEmpty()) {
MoveResult<Solution_> result = backlog.remove(moveIndex);
if (result != null) {
return re... | public class class_name {
public MoveResult<Solution_> take() throws InterruptedException {
int moveIndex = nextMoveIndex;
nextMoveIndex++;
if (!backlog.isEmpty()) {
MoveResult<Solution_> result = backlog.remove(moveIndex);
if (result != null) {
return re... |
public class class_name {
public void marshall(LookupEventsRequest lookupEventsRequest, ProtocolMarshaller protocolMarshaller) {
if (lookupEventsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(LookupEventsRequest lookupEventsRequest, ProtocolMarshaller protocolMarshaller) {
if (lookupEventsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
private void println(int logLevel, String msg, Throwable tr) {
if (logLevel < logConfiguration.logLevel) {
return;
}
printlnInternal(logLevel, ((msg == null || msg.length() == 0)
? "" : (msg + SystemCompat.lineSeparator))
+ logConfiguration.throwableFormatter... | public class class_name {
private void println(int logLevel, String msg, Throwable tr) {
if (logLevel < logConfiguration.logLevel) {
return; // depends on control dependency: [if], data = [none]
}
printlnInternal(logLevel, ((msg == null || msg.length() == 0)
? "" : (msg + SystemCompat.lineSep... |
public class class_name {
@SuppressWarnings("unchecked")
public static Map<String, ILdapServer> getLdapServerMap() {
final ApplicationContext applicationContext =
PortalApplicationContextLocator.getApplicationContext();
final Map<String, ILdapServer> ldapServers =
ap... | public class class_name {
@SuppressWarnings("unchecked")
public static Map<String, ILdapServer> getLdapServerMap() {
final ApplicationContext applicationContext =
PortalApplicationContextLocator.getApplicationContext();
final Map<String, ILdapServer> ldapServers =
ap... |
public class class_name {
public void writeDescribe(Describe describe) {
ensureBuffer();
int pos = out.writerIndex();
out.writeByte(DESCRIBE);
out.writeInt(0);
if (describe.statement != 0) {
out.writeByte('S');
out.writeLong(describe.statement);
} else if (describe.portal != null) {... | public class class_name {
public void writeDescribe(Describe describe) {
ensureBuffer();
int pos = out.writerIndex();
out.writeByte(DESCRIBE);
out.writeInt(0);
if (describe.statement != 0) {
out.writeByte('S'); // depends on control dependency: [if], data = [none]
out.writeLong(describe... |
public class class_name {
private void writeResources()
{
Resources resources = m_factory.createResources();
m_plannerProject.setResources(resources);
List<net.sf.mpxj.planner.schema.Resource> resourceList = resources.getResource();
for (Resource mpxjResource : m_projectFile.getResources())
... | public class class_name {
private void writeResources()
{
Resources resources = m_factory.createResources();
m_plannerProject.setResources(resources);
List<net.sf.mpxj.planner.schema.Resource> resourceList = resources.getResource();
for (Resource mpxjResource : m_projectFile.getResources())
... |
public class class_name {
public EList<MCFRG> getRG() {
if (rg == null) {
rg = new EObjectContainmentEList.Resolving<MCFRG>(MCFRG.class, this, AfplibPackage.MCF__RG);
}
return rg;
} } | public class class_name {
public EList<MCFRG> getRG() {
if (rg == null) {
rg = new EObjectContainmentEList.Resolving<MCFRG>(MCFRG.class, this, AfplibPackage.MCF__RG); // depends on control dependency: [if], data = [none]
}
return rg;
} } |
public class class_name {
public static String unexpand(CharSequence self, int tabStop) {
String s = self.toString();
if (s.length() == 0) return s;
try {
StringBuilder builder = new StringBuilder();
for (String line : readLines((CharSequence) s)) {
build... | public class class_name {
public static String unexpand(CharSequence self, int tabStop) {
String s = self.toString();
if (s.length() == 0) return s;
try {
StringBuilder builder = new StringBuilder();
for (String line : readLines((CharSequence) s)) {
build... |
public class class_name {
public final void increaseWrittenMessages(
WriteRequest request, long currentTime) {
Object message = request.getMessage();
if (message instanceof IoBuffer) {
IoBuffer b = (IoBuffer) message;
if (b.hasRemaining()) {
return;
... | public class class_name {
public final void increaseWrittenMessages(
WriteRequest request, long currentTime) {
Object message = request.getMessage();
if (message instanceof IoBuffer) {
IoBuffer b = (IoBuffer) message;
if (b.hasRemaining()) {
return; /... |
public class class_name {
@Override
public void putStaticInfo(Persistable staticInfo) {
List<StatsStorageEvent> sses = checkStorageEvents(staticInfo);
if (!sessionIDs.contains(staticInfo.getSessionID())) {
sessionIDs.add(staticInfo.getSessionID());
}
SessionTypeWorkerId ... | public class class_name {
@Override
public void putStaticInfo(Persistable staticInfo) {
List<StatsStorageEvent> sses = checkStorageEvents(staticInfo);
if (!sessionIDs.contains(staticInfo.getSessionID())) {
sessionIDs.add(staticInfo.getSessionID()); // depends on control dependency: [if]... |
public class class_name {
public DeleteIdentitiesRequest withIdentityIdsToDelete(String... identityIdsToDelete) {
if (this.identityIdsToDelete == null) {
setIdentityIdsToDelete(new java.util.ArrayList<String>(identityIdsToDelete.length));
}
for (String ele : identityIdsToDelete) {
... | public class class_name {
public DeleteIdentitiesRequest withIdentityIdsToDelete(String... identityIdsToDelete) {
if (this.identityIdsToDelete == null) {
setIdentityIdsToDelete(new java.util.ArrayList<String>(identityIdsToDelete.length)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
protected String consumeDecimal() {
StringBuilder builder = null;
boolean noSign = false;
boolean noExponent = false;
boolean noDot = false;
boolean done = false;
char c = 0;
hasNext();
while (true) {
int start = this.offset;
while (thi... | public class class_name {
@Override
protected String consumeDecimal() {
StringBuilder builder = null;
boolean noSign = false;
boolean noExponent = false;
boolean noDot = false;
boolean done = false;
char c = 0;
hasNext();
while (true) {
int start = this.offset;
while (thi... |
public class class_name {
private void makeUniqueTimeCoordinate2D(NetcdfFile ncfile, Group g, CoordinateTime2D time2D) {
CoordinateRuntime runtime = time2D.getRuntimeCoordinate();
int countU = 0;
for (int run = 0; run < time2D.getNruns(); run++) {
CoordinateTimeAbstract timeCoord = time2D.getTimeCoo... | public class class_name {
private void makeUniqueTimeCoordinate2D(NetcdfFile ncfile, Group g, CoordinateTime2D time2D) {
CoordinateRuntime runtime = time2D.getRuntimeCoordinate();
int countU = 0;
for (int run = 0; run < time2D.getNruns(); run++) {
CoordinateTimeAbstract timeCoord = time2D.getTimeCoo... |
public class class_name {
public static boolean contains2D(Coordinate[] coords, Coordinate coord) {
for (Coordinate coordinate : coords) {
if (coordinate.equals2D(coord)) {
return true;
}
}
return false;
} } | public class class_name {
public static boolean contains2D(Coordinate[] coords, Coordinate coord) {
for (Coordinate coordinate : coords) {
if (coordinate.equals2D(coord)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return fals... |
public class class_name {
private void updateDates(Task parentTask)
{
if (parentTask.hasChildTasks())
{
int finished = 0;
Date plannedStartDate = parentTask.getStart();
Date plannedFinishDate = parentTask.getFinish();
Date actualStartDate = parentTask.getActualStart()... | public class class_name {
private void updateDates(Task parentTask)
{
if (parentTask.hasChildTasks())
{
int finished = 0;
Date plannedStartDate = parentTask.getStart();
Date plannedFinishDate = parentTask.getFinish();
Date actualStartDate = parentTask.getActualStart()... |
public class class_name {
public static StorageResourceId convertToDirectoryPath(StorageResourceId resourceId) {
if (resourceId.isStorageObject()) {
if (!objectHasDirectoryPath(resourceId.getObjectName())) {
resourceId = new StorageResourceId(
resourceId.getBucketName(), convertToDirector... | public class class_name {
public static StorageResourceId convertToDirectoryPath(StorageResourceId resourceId) {
if (resourceId.isStorageObject()) {
if (!objectHasDirectoryPath(resourceId.getObjectName())) {
resourceId = new StorageResourceId(
resourceId.getBucketName(), convertToDirector... |
public class class_name {
public List<DateTimePeriod> toYears() {
ArrayList<DateTimePeriod> list = new ArrayList<DateTimePeriod>();
// default "current" year to start datetime
DateTime currentStart = getStart();
// calculate "next" year
DateTime nextStart = currentStart.plusYea... | public class class_name {
public List<DateTimePeriod> toYears() {
ArrayList<DateTimePeriod> list = new ArrayList<DateTimePeriod>();
// default "current" year to start datetime
DateTime currentStart = getStart();
// calculate "next" year
DateTime nextStart = currentStart.plusYea... |
public class class_name {
@Override
public int filterCountByG_T_E(long groupId, String type, boolean enabled) {
if (!InlineSQLHelperUtil.isEnabled(groupId)) {
return countByG_T_E(groupId, type, enabled);
}
StringBundler query = new StringBundler(4);
query.append(_FILTER_SQL_COUNT_COMMERCENOTIFICATIONTEMP... | public class class_name {
@Override
public int filterCountByG_T_E(long groupId, String type, boolean enabled) {
if (!InlineSQLHelperUtil.isEnabled(groupId)) {
return countByG_T_E(groupId, type, enabled); // depends on control dependency: [if], data = [none]
}
StringBundler query = new StringBundler(4);
q... |
public class class_name {
public static Query toQuery(Object o) throws PageException {
if (o instanceof Query) return (Query) o;
if (o instanceof ObjectWrap) {
return toQuery(((ObjectWrap) o).getEmbededObject());
}
if (o instanceof ResultSet) return new QueryImpl((ResultSet) o, "query", ThreadLocalPageContext... | public class class_name {
public static Query toQuery(Object o) throws PageException {
if (o instanceof Query) return (Query) o;
if (o instanceof ObjectWrap) {
return toQuery(((ObjectWrap) o).getEmbededObject());
}
if (o instanceof ResultSet) return new QueryImpl((ResultSet) o, "query", ThreadLocalPageContext... |
public class class_name {
public String getPath(CodeType codeType, boolean bPackagePath)
{
String strSrcPath = DBConstants.BLANK;
if (!bPackagePath)
strSrcPath = this.getField(ClassProject.NAME).toString();
String pathChar = bPackagePath ? "." : "/";
switch (codeType)
... | public class class_name {
public String getPath(CodeType codeType, boolean bPackagePath)
{
String strSrcPath = DBConstants.BLANK;
if (!bPackagePath)
strSrcPath = this.getField(ClassProject.NAME).toString();
String pathChar = bPackagePath ? "." : "/";
switch (codeType)
... |
public class class_name {
public void add(OnLineStatistics B)
{
final OnLineStatistics A = this;
//XXX double compare.
if(A.n == B.n && B.n == 0)
return;//nothing to do!
else if(B.n == 0)
return;//still nothing!
else if (A.n == 0)
{
this.n =... | public class class_name {
public void add(OnLineStatistics B)
{
final OnLineStatistics A = this;
//XXX double compare.
if(A.n == B.n && B.n == 0)
return;//nothing to do!
else if(B.n == 0)
return;//still nothing!
else if (A.n == 0)
{
this.n =... |
public class class_name {
public E extractMin() {
if (size == 0) {
throw new NoSuchElementException();
}
E result = storage.array[0];
size--;
if (size > 0) {
storage.array[0] = storage.array[size];
downHeap();
}
storage.array[s... | public class class_name {
public E extractMin() {
if (size == 0) {
throw new NoSuchElementException();
}
E result = storage.array[0];
size--;
if (size > 0) {
storage.array[0] = storage.array[size]; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private Scope createLoopNode(Node loopLabel, int lineno) {
Scope result = createScopeNode(Token.LOOP, lineno);
if (loopLabel != null) {
((Jump)loopLabel).setLoop(result);
}
return result;
} } | public class class_name {
private Scope createLoopNode(Node loopLabel, int lineno) {
Scope result = createScopeNode(Token.LOOP, lineno);
if (loopLabel != null) {
((Jump)loopLabel).setLoop(result); // depends on control dependency: [if], data = [none]
}
return result;
} } |
public class class_name {
void commit() {
if (connection != null) {
try {
connection.commit();
} catch (SQLException e) {
throw new UroborosqlSQLException(e);
}
}
clearState();
} } | public class class_name {
void commit() {
if (connection != null) {
try {
connection.commit(); // depends on control dependency: [try], data = [none]
} catch (SQLException e) {
throw new UroborosqlSQLException(e);
} // depends on control dependency: [catch], data = [none]
}
clearState();
} } |
public class class_name {
public void run() {
// For log messages.
String client = socket.getInetAddress().getHostAddress();
if(log.isDebugEnabled()) {
log.info("Accepted Connection From: " + client);
}
PrintWriter out = null;
BufferedReader in = null;
... | public class class_name {
public void run() {
// For log messages.
String client = socket.getInetAddress().getHostAddress();
if(log.isDebugEnabled()) {
log.info("Accepted Connection From: " + client); // depends on control dependency: [if], data = [none]
}
PrintWri... |
public class class_name {
public static int [] createRemapTable(String [] controlFields, String [] remappedFields) {
// create hash map with remapped fields
HashMap<String,Integer> map = new HashMap<String, Integer>();
for (int index = 0; index < remappedFields.length; index++) {
St... | public class class_name {
public static int [] createRemapTable(String [] controlFields, String [] remappedFields) {
// create hash map with remapped fields
HashMap<String,Integer> map = new HashMap<String, Integer>();
for (int index = 0; index < remappedFields.length; index++) {
St... |
public class class_name {
private ITextEditor getEditor(IWorkbenchPart part)
{
if (part instanceof ITextEditor)
{
ITextEditor editorPart = (ITextEditor) part;
IResource resource = (IResource) editorPart.getEditorInput().getAdapter(IResource.class);
if (resource != null && resource instanceof IFile)
{
... | public class class_name {
private ITextEditor getEditor(IWorkbenchPart part)
{
if (part instanceof ITextEditor)
{
ITextEditor editorPart = (ITextEditor) part;
IResource resource = (IResource) editorPart.getEditorInput().getAdapter(IResource.class);
if (resource != null && resource instanceof IFile)
{
... |
public class class_name {
public static HashMap<String, String> createEvent(HashMap data, String typeStr, String dap, HashMap<String, String> info, boolean isStrictID) {
HashMap newEvent = new HashMap<String, String>();
EventType type;
try {
type = EventType.valueOf(typeStr.toUpper... | public class class_name {
public static HashMap<String, String> createEvent(HashMap data, String typeStr, String dap, HashMap<String, String> info, boolean isStrictID) {
HashMap newEvent = new HashMap<String, String>();
EventType type;
try {
type = EventType.valueOf(typeStr.toUpper... |
public class class_name {
public static void parse(
final String pattern, final List patternConverters,
final List formattingInfos, final Map converterRegistry, final Map rules) {
if (pattern == null) {
throw new NullPointerException("pattern");
}
StringBuffer currentLiteral = new StringBuff... | public class class_name {
public static void parse(
final String pattern, final List patternConverters,
final List formattingInfos, final Map converterRegistry, final Map rules) {
if (pattern == null) {
throw new NullPointerException("pattern");
}
StringBuffer currentLiteral = new StringBuff... |
public class class_name {
public InvalidChangeBatchException withMessages(String... messages) {
if (this.messages == null) {
setMessages(new com.amazonaws.internal.SdkInternalList<String>(messages.length));
}
for (String ele : messages) {
this.messages.add(ele);
... | public class class_name {
public InvalidChangeBatchException withMessages(String... messages) {
if (this.messages == null) {
setMessages(new com.amazonaws.internal.SdkInternalList<String>(messages.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : me... |
public class class_name {
@Override
public EClass getIfcRoot() {
if (ifcRootEClass == null) {
ifcRootEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(581);
}
return ifcRootEClass;
} } | public class class_name {
@Override
public EClass getIfcRoot() {
if (ifcRootEClass == null) {
ifcRootEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(581);
// depends on control dependency: [if], data = [none]
}
return ifcRootEClass;
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.