code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static String getValue(String value) {
if (value == null) {
return null;
}
String v = removeQuotes(value.trim()).trim();
if (v.isEmpty()) {
return null;
}
return v;
} } | public class class_name {
public static String getValue(String value) {
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
}
String v = removeQuotes(value.trim()).trim();
if (v.isEmpty()) {
return null; // depends on control d... |
public class class_name {
public EClass getIfcConversionBasedUnit() {
if (ifcConversionBasedUnitEClass == null) {
ifcConversionBasedUnitEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(118);
}
return ifcConversionBasedUnitEClass;
} } | public class class_name {
public EClass getIfcConversionBasedUnit() {
if (ifcConversionBasedUnitEClass == null) {
ifcConversionBasedUnitEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(118);
// depends on control dependency: [if], data = [none]
}... |
public class class_name {
public void pollBackup(long itemId) {
QueueItem item = getBackupMap().remove(itemId);
if (item != null) {
// for stats
age(item, Clock.currentTimeMillis());
}
} } | public class class_name {
public void pollBackup(long itemId) {
QueueItem item = getBackupMap().remove(itemId);
if (item != null) {
// for stats
age(item, Clock.currentTimeMillis()); // depends on control dependency: [if], data = [(item]
}
} } |
public class class_name {
private boolean keyAlreadyExists(String newKey) {
Collection<?> itemIds = m_table.getItemIds();
for (Object itemId : itemIds) {
if (m_table.getItem(itemId).getItemProperty(TableProperty.KEY).getValue().equals(newKey)) {
return true;
}
... | public class class_name {
private boolean keyAlreadyExists(String newKey) {
Collection<?> itemIds = m_table.getItemIds();
for (Object itemId : itemIds) {
if (m_table.getItem(itemId).getItemProperty(TableProperty.KEY).getValue().equals(newKey)) {
return true; // depends on c... |
public class class_name {
protected static void register(Class<?> parent, String cname) {
Entry e = data.get(parent);
if(e == null) {
data.put(parent, e = new Entry());
}
e.addName(cname);
} } | public class class_name {
protected static void register(Class<?> parent, String cname) {
Entry e = data.get(parent);
if(e == null) {
data.put(parent, e = new Entry()); // depends on control dependency: [if], data = [none]
}
e.addName(cname);
} } |
public class class_name {
private boolean getShowExplorer() {
if (getParamShowexplorer() != null) {
return Boolean.valueOf(getParamShowexplorer()).booleanValue();
}
Map<?, ?> dialogObject = (Map<?, ?>)getSettings().getDialogObject();
if (dialogObject == null) {
... | public class class_name {
private boolean getShowExplorer() {
if (getParamShowexplorer() != null) {
return Boolean.valueOf(getParamShowexplorer()).booleanValue(); // depends on control dependency: [if], data = [(getParamShowexplorer()]
}
Map<?, ?> dialogObject = (Map<?, ?>)getSetti... |
public class class_name {
private void setVerticalScrollbar(final CmsScrollBar scrollbar, int width) {
// Validate.
if ((scrollbar == m_scrollbar) || (scrollbar == null)) {
return;
}
// Detach new child.
scrollbar.asWidget().removeFromParent();
// ... | public class class_name {
private void setVerticalScrollbar(final CmsScrollBar scrollbar, int width) {
// Validate.
if ((scrollbar == m_scrollbar) || (scrollbar == null)) {
return;
// depends on control dependency: [if], data = [none]
}
// Detach new child.
... |
public class class_name {
public static UserPreferences load(final FileObject userPreferencesFile, final boolean loadDatabaseDrivers) {
try {
if (userPreferencesFile == null || !userPreferencesFile.exists()) {
logger.info("User preferences file does not exist");
retu... | public class class_name {
public static UserPreferences load(final FileObject userPreferencesFile, final boolean loadDatabaseDrivers) {
try {
if (userPreferencesFile == null || !userPreferencesFile.exists()) {
logger.info("User preferences file does not exist"); // depends on contro... |
public class class_name {
private static boolean isDebugModeEnabled(String[] args) {
for (int i = 0; i < args.length; i++) {
String arg = args[i];
if (arg.equalsIgnoreCase("--debug")) {
return true;
}
}
return false;
} } | public class class_name {
private static boolean isDebugModeEnabled(String[] args) {
for (int i = 0; i < args.length; i++) {
String arg = args[i];
if (arg.equalsIgnoreCase("--debug")) {
return true; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static String findCommonPrefix(final String... strings) {
StringBuilder prefix = new StringBuilder();
int index = 0;
char c = 0;
loop:
while (true) {
for (int i = 0; i < strings.length; i++) {
String s = strings[i];
if (index == s.length()) {
break loop;
... | public class class_name {
public static String findCommonPrefix(final String... strings) {
StringBuilder prefix = new StringBuilder();
int index = 0;
char c = 0;
loop:
while (true) {
for (int i = 0; i < strings.length; i++) {
String s = strings[i];
if (index == s.length()) {
break loop;
... |
public class class_name {
@SuppressWarnings("static-method")
protected Map<XVariableDeclaration, XFeatureCall> getReferencedLocalVariable(XExpression expression, boolean onlyWritable) {
final Map<XVariableDeclaration, XFeatureCall> localVariables = new TreeMap<>((k1, k2) -> {
return k1.getIdentifier().compareTo(... | public class class_name {
@SuppressWarnings("static-method")
protected Map<XVariableDeclaration, XFeatureCall> getReferencedLocalVariable(XExpression expression, boolean onlyWritable) {
final Map<XVariableDeclaration, XFeatureCall> localVariables = new TreeMap<>((k1, k2) -> {
return k1.getIdentifier().compareTo(... |
public class class_name {
private List<Key> getDateTimeKeys() {
Key date = findKey(DATE);
Key time = findKey(TIME);
if ((date == null) || (time == null)
|| !date.type.equals(time.type)) {
return null;
}
List<Key> dt = new ArrayList<>(2);
dt.add(date);
dt.add(time);
ret... | public class class_name {
private List<Key> getDateTimeKeys() {
Key date = findKey(DATE);
Key time = findKey(TIME);
if ((date == null) || (time == null)
|| !date.type.equals(time.type)) {
return null; // depends on control dependency: [if], data = [none]
}
List<Key> dt = new Array... |
public class class_name {
public FeatureVector createWordFeatures(DependencyInstance dependencyInstance, int i) {
int[] pos = dependencyInstance.getPostagids();
int[] posA = dependencyInstance.getCpostagids();
int[] toks = dependencyInstance.getFormids();
int[] lemma = dependencyInstan... | public class class_name {
public FeatureVector createWordFeatures(DependencyInstance dependencyInstance, int i) {
int[] pos = dependencyInstance.getPostagids();
int[] posA = dependencyInstance.getCpostagids();
int[] toks = dependencyInstance.getFormids();
int[] lemma = dependencyInstan... |
public class class_name {
public final void clear()
{
for (int i = 0; i < fields.length; ) {
stamp[i] = fields[i] = 0; // UNSET == 0
isSet[i++] = false;
}
areAllFieldsSet = areFieldsSet = false;
isTimeSet = false;
} } | public class class_name {
public final void clear()
{
for (int i = 0; i < fields.length; ) {
stamp[i] = fields[i] = 0; // UNSET == 0 // depends on control dependency: [for], data = [i]
isSet[i++] = false; // depends on control dependency: [for], data = [i]
}
areAllFi... |
public class class_name {
JsTopicMessageController getJsTopicMessageControllerFromJsTopicControls(String topic) {
logger.debug("Looking for messageController for topic '{}' from JsTopicControls annotation", topic);
Instance<JsTopicMessageController<?>> select = topicMessageController.select(new JsTopicCtrlsAnnotat... | public class class_name {
JsTopicMessageController getJsTopicMessageControllerFromJsTopicControls(String topic) {
logger.debug("Looking for messageController for topic '{}' from JsTopicControls annotation", topic);
Instance<JsTopicMessageController<?>> select = topicMessageController.select(new JsTopicCtrlsAnnotat... |
public class class_name {
public void marshall(ListChildrenRequest listChildrenRequest, ProtocolMarshaller protocolMarshaller) {
if (listChildrenRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(ListChildrenRequest listChildrenRequest, ProtocolMarshaller protocolMarshaller) {
if (listChildrenRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
private static Object valueOf(final String value, final Class<?> objectType) {
if (objectType == Character.class) {
return value.charAt(0);
}
try {
final Constructor<?> constructor = objectType.getConstructor(String.class);
return ... | public class class_name {
private static Object valueOf(final String value, final Class<?> objectType) {
if (objectType == Character.class) {
return value.charAt(0); // depends on control dependency: [if], data = [none]
}
try {
final Constructor<?> constructor = object... |
public class class_name {
@Override
public boolean isOptional()
{
boolean isNullable = true;
if (!isId())
{
Column anno = member.getAnnotation(Column.class);
if (anno != null)
{
isNullable = anno.nullable();
}
}
... | public class class_name {
@Override
public boolean isOptional()
{
boolean isNullable = true;
if (!isId())
{
Column anno = member.getAnnotation(Column.class);
if (anno != null)
{
isNullable = anno.nullable(); // depends on control depen... |
public class class_name {
public void marshall(AvailBlanking availBlanking, ProtocolMarshaller protocolMarshaller) {
if (availBlanking == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(availBlanking... | public class class_name {
public void marshall(AvailBlanking availBlanking, ProtocolMarshaller protocolMarshaller) {
if (availBlanking == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(availBlanking... |
public class class_name {
protected boolean _load ()
{
java.sql.ResultSet rs = null;
try
{
// This synchronization is necessary for Oracle JDBC drivers 8.1.7, 9.0.1, 9.2.0.1
// The documentation says synchronization is done within the driver, but ... | public class class_name {
protected boolean _load ()
{
java.sql.ResultSet rs = null;
try
{
// This synchronization is necessary for Oracle JDBC drivers 8.1.7, 9.0.1, 9.2.0.1
// The documentation says synchronization is done within the driver, but ... |
public class class_name {
public void setFilters(java.util.Collection<ExportFilter> filters) {
if (filters == null) {
this.filters = null;
return;
}
this.filters = new java.util.ArrayList<ExportFilter>(filters);
} } | public class class_name {
public void setFilters(java.util.Collection<ExportFilter> filters) {
if (filters == null) {
this.filters = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.filters ... |
public class class_name {
@Nonnull
public static IBANCountryData createFromString (@Nonnull @Nonempty final String sCountryCode,
@Nonnegative final int nExpectedLength,
@Nullable final String sLayout,
... | public class class_name {
@Nonnull
public static IBANCountryData createFromString (@Nonnull @Nonempty final String sCountryCode,
@Nonnegative final int nExpectedLength,
@Nullable final String sLayout,
... |
public class class_name {
private String getOptionsForLanguage(Locale setLocale) {
// get available locales from the workplace manager
List<Locale> locales = OpenCms.getWorkplaceManager().getLocales();
StringBuffer resultBuffer = new StringBuffer();
int counter = 0;
Iterator<Lo... | public class class_name {
private String getOptionsForLanguage(Locale setLocale) {
// get available locales from the workplace manager
List<Locale> locales = OpenCms.getWorkplaceManager().getLocales();
StringBuffer resultBuffer = new StringBuffer();
int counter = 0;
Iterator<Lo... |
public class class_name {
public Object getAttribute(final String name) {
assertActive();
if (attributes.containsKey(name)) {
return attributes.get(name);
}
Object value = originalSession.getAttribute(name);
if (value instanceof SerializedObjectHolder) {
... | public class class_name {
public Object getAttribute(final String name) {
assertActive();
if (attributes.containsKey(name)) {
return attributes.get(name); // depends on control dependency: [if], data = [none]
}
Object value = originalSession.getAttribute(name);
if (v... |
public class class_name {
private static String getServiceUserCredential(String clazz, ITestContext context) {
if (System.getenv("SERVICES_USER") != null) {
return System.getenv("SERVICES_USER");
}
if (context.getAttribute(clazz + SERVICES_USER) != null) {
return (String... | public class class_name {
private static String getServiceUserCredential(String clazz, ITestContext context) {
if (System.getenv("SERVICES_USER") != null) {
return System.getenv("SERVICES_USER"); // depends on control dependency: [if], data = [none]
}
if (context.getAttribute(clazz ... |
public class class_name {
public static String fileNameFromString( final String text )
{
String value = text.replace( ' ', '_' );
if ( value.length() < 48 )
{
return value;
}
return value.substring( 0, 47 );
} } | public class class_name {
public static String fileNameFromString( final String text )
{
String value = text.replace( ' ', '_' );
if ( value.length() < 48 )
{
return value; // depends on control dependency: [if], data = [none]
}
return value.substring( 0,... |
public class class_name {
public CustomField getCustomField(FieldType field)
{
CustomField result = m_configMap.get(field);
if (result == null)
{
result = new CustomField(field, this);
m_configMap.put(field, result);
}
return result;
} } | public class class_name {
public CustomField getCustomField(FieldType field)
{
CustomField result = m_configMap.get(field);
if (result == null)
{
result = new CustomField(field, this); // depends on control dependency: [if], data = [none]
m_configMap.put(field, result); // depend... |
public class class_name {
public static void closeAll(Logger log, java.io.Closeable... closeables) {
for (java.io.Closeable c : closeables) {
if (c != null) {
try {
if (log != null) {
log.debug("Closing {}", c);
}
c.close();
} catch (Exception e) {
... | public class class_name {
public static void closeAll(Logger log, java.io.Closeable... closeables) {
for (java.io.Closeable c : closeables) {
if (c != null) {
try {
if (log != null) {
log.debug("Closing {}", c); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private void convertYieldOfAsyncGenerator(NodeTraversal t, LexicalContext ctx, Node yieldNode) {
checkNotNull(yieldNode);
checkState(yieldNode.isYield());
checkState(ctx != null && ctx.function != null);
checkState(ctx.function.isAsyncGeneratorFunction());
Node expression... | public class class_name {
private void convertYieldOfAsyncGenerator(NodeTraversal t, LexicalContext ctx, Node yieldNode) {
checkNotNull(yieldNode);
checkState(yieldNode.isYield());
checkState(ctx != null && ctx.function != null);
checkState(ctx.function.isAsyncGeneratorFunction());
Node expression... |
public class class_name {
private StringBuffer loadScriptTemplate(String path) {
StringWriter sw = new StringWriter();
InputStream is = null;
try {
is = ClassLoaderResourceUtils.getResourceAsStream(path, this);
int i;
while ((i = is.read()) != -1) {
sw.write(i);
}
} catch (IOException e) {
... | public class class_name {
private StringBuffer loadScriptTemplate(String path) {
StringWriter sw = new StringWriter();
InputStream is = null;
try {
is = ClassLoaderResourceUtils.getResourceAsStream(path, this); // depends on control dependency: [try], data = [none]
int i;
while ((i = is.read()) != -1) ... |
public class class_name {
public void onCommandException(CommandResponse response) {
String message = I18nProvider.getGlobal().commandError() + ":";
for (String error : response.getErrorMessages()) {
message += "\n" + error;
}
Log.logWarn(message);
if (response.getExceptions() == null || response.getExcep... | public class class_name {
public void onCommandException(CommandResponse response) {
String message = I18nProvider.getGlobal().commandError() + ":";
for (String error : response.getErrorMessages()) {
message += "\n" + error; // depends on control dependency: [for], data = [error]
}
Log.logWarn(message);
i... |
public class class_name {
public static void initFileSendHeader(HttpServletResponse res, String filename, String contentType) {
filename = getEncodingFileName(filename);
if (contentType != null) {
res.setContentType(contentType);
} else {
res.setContentType("applicaiton... | public class class_name {
public static void initFileSendHeader(HttpServletResponse res, String filename, String contentType) {
filename = getEncodingFileName(filename);
if (contentType != null) {
res.setContentType(contentType); // depends on control dependency: [if], data = [(contentType... |
public class class_name {
public final boolean synpred37_DRL5Expressions() {
state.backtracking++;
int start = input.mark();
try {
synpred37_DRL5Expressions_fragment(); // can never throw exception
} catch (RecognitionException re) {
System.err.println("impossible: "+re);
}
boolean success = !state.f... | public class class_name {
public final boolean synpred37_DRL5Expressions() {
state.backtracking++;
int start = input.mark();
try {
synpred37_DRL5Expressions_fragment(); // can never throw exception // depends on control dependency: [try], data = [none]
} catch (RecognitionException re) {
System.err.print... |
public class class_name {
private static CharSequence convertReverseDNSIPv4(String str, int suffixStartIndex) throws AddressStringException {
StringBuilder builder = new StringBuilder(suffixStartIndex);
int segCount = 0;
int j = suffixStartIndex;
for(int i = suffixStartIndex - 1; i > 0; i--) {
char c1 = str... | public class class_name {
private static CharSequence convertReverseDNSIPv4(String str, int suffixStartIndex) throws AddressStringException {
StringBuilder builder = new StringBuilder(suffixStartIndex);
int segCount = 0;
int j = suffixStartIndex;
for(int i = suffixStartIndex - 1; i > 0; i--) {
char c1 = str... |
public class class_name {
public DBCluster withDBClusterOptionGroupMemberships(DBClusterOptionGroupStatus... dBClusterOptionGroupMemberships) {
if (this.dBClusterOptionGroupMemberships == null) {
setDBClusterOptionGroupMemberships(new java.util.ArrayList<DBClusterOptionGroupStatus>(dBClusterOptionG... | public class class_name {
public DBCluster withDBClusterOptionGroupMemberships(DBClusterOptionGroupStatus... dBClusterOptionGroupMemberships) {
if (this.dBClusterOptionGroupMemberships == null) {
setDBClusterOptionGroupMemberships(new java.util.ArrayList<DBClusterOptionGroupStatus>(dBClusterOptionG... |
public class class_name {
public EClass getIfcMagneticFluxMeasure() {
if (ifcMagneticFluxMeasureEClass == null) {
ifcMagneticFluxMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(704);
}
return ifcMagneticFluxMeasureEClass;
} } | public class class_name {
public EClass getIfcMagneticFluxMeasure() {
if (ifcMagneticFluxMeasureEClass == null) {
ifcMagneticFluxMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(704);
// depends on control dependency: [if], data = [none]
}... |
public class class_name {
public static Iterable<MetadataTemplate> getEnterpriseMetadataTemplates(
String scope, int limit, BoxAPIConnection api, String ... fields) {
QueryStringBuilder builder = new QueryStringBuilder();
if (fields.length > 0) {
builder.appendParam("fields", fi... | public class class_name {
public static Iterable<MetadataTemplate> getEnterpriseMetadataTemplates(
String scope, int limit, BoxAPIConnection api, String ... fields) {
QueryStringBuilder builder = new QueryStringBuilder();
if (fields.length > 0) {
builder.appendParam("fields", fi... |
public class class_name {
public CmsXmlContentValueSequence getValueSequence(String xpath, Locale locale) {
I_CmsXmlSchemaType type = m_contentDefinition.getSchemaType(xpath);
if (type == null) {
return null;
}
return new CmsXmlContentValueSequence(xpath, locale, this);
... | public class class_name {
public CmsXmlContentValueSequence getValueSequence(String xpath, Locale locale) {
I_CmsXmlSchemaType type = m_contentDefinition.getSchemaType(xpath);
if (type == null) {
return null; // depends on control dependency: [if], data = [none]
}
return ne... |
public class class_name {
public AbstractExpression replaceAVG () {
if (getExpressionType() == ExpressionType.AGGREGATE_AVG) {
AbstractExpression child = getLeft();
AbstractExpression left =
new AggregateExpression(ExpressionType.AGGREGATE_SUM);
left.setL... | public class class_name {
public AbstractExpression replaceAVG () {
if (getExpressionType() == ExpressionType.AGGREGATE_AVG) {
AbstractExpression child = getLeft();
AbstractExpression left =
new AggregateExpression(ExpressionType.AGGREGATE_SUM);
left.setL... |
public class class_name {
public static int indexOfIgnoreCase(CharSequence[] array, CharSequence value) {
if (null != array) {
for (int i = 0; i < array.length; i++) {
if (StrUtil.equalsIgnoreCase(array[i], value)) {
return i;
}
}
}
return INDEX_NOT_FOUND;
} } | public class class_name {
public static int indexOfIgnoreCase(CharSequence[] array, CharSequence value) {
if (null != array) {
for (int i = 0; i < array.length; i++) {
if (StrUtil.equalsIgnoreCase(array[i], value)) {
return i;
// depends on control dependency: [if], data = [none]
}
}
}
... |
public class class_name {
public DataNode getDataNode(final String dataSourceName, final String logicTableName) {
TableRule tableRule = getTableRule(logicTableName);
for (DataNode each : tableRule.getActualDataNodes()) {
if (shardingDataSourceNames.getDataSourceNames().contains(each.getData... | public class class_name {
public DataNode getDataNode(final String dataSourceName, final String logicTableName) {
TableRule tableRule = getTableRule(logicTableName);
for (DataNode each : tableRule.getActualDataNodes()) {
if (shardingDataSourceNames.getDataSourceNames().contains(each.getData... |
public class class_name {
public OmemoDevice getOwnDevice() {
synchronized (LOCK) {
BareJid jid = getOwnJid();
if (jid == null) {
return null;
}
return new OmemoDevice(jid, getDeviceId());
}
} } | public class class_name {
public OmemoDevice getOwnDevice() {
synchronized (LOCK) {
BareJid jid = getOwnJid();
if (jid == null) {
return null; // depends on control dependency: [if], data = [none]
}
return new OmemoDevice(jid, getDeviceId());
... |
public class class_name {
static Node getCatchHandlerForBlock(Node block) {
if (block.isBlock()
&& block.getParent().isTry()
&& block.getParent().getFirstChild() == block) {
for (Node s = block.getNext(); s != null; s = s.getNext()) {
if (NodeUtil.hasCatchHandler(s)) {
retur... | public class class_name {
static Node getCatchHandlerForBlock(Node block) {
if (block.isBlock()
&& block.getParent().isTry()
&& block.getParent().getFirstChild() == block) {
for (Node s = block.getNext(); s != null; s = s.getNext()) {
if (NodeUtil.hasCatchHandler(s)) {
retur... |
public class class_name {
public static boolean validSignature(Document document, Key publicKey) {
Node signatureNode = document.getElementsByTagNameNS(XMLSignature.XMLNS, "Signature").item(0);
KeySelector keySelector = KeySelector.singletonKeySelector(publicKey);
try {
String prov... | public class class_name {
public static boolean validSignature(Document document, Key publicKey) {
Node signatureNode = document.getElementsByTagNameNS(XMLSignature.XMLNS, "Signature").item(0);
KeySelector keySelector = KeySelector.singletonKeySelector(publicKey);
try {
String prov... |
public class class_name {
@Override
public final T process(final Map<String, Object> pReqVars,
final T pEntity,
final IRequestData pRequestData) throws Exception {
if (pEntity.getClass() == PurchaseInvoiceServiceLine.class) {
pReqVars.put("PurchaseInvoicevendordeepLevel", 3);
} else if (pEnti... | public class class_name {
@Override
public final T process(final Map<String, Object> pReqVars,
final T pEntity,
final IRequestData pRequestData) throws Exception {
if (pEntity.getClass() == PurchaseInvoiceServiceLine.class) {
pReqVars.put("PurchaseInvoicevendordeepLevel", 3);
} else if (pEnti... |
public class class_name {
public synchronized void suspendReceives() {
receivesSuspended = true;
if (receiver == null) {
if(Thread.currentThread() == channel.getIoThread()) {
channel.getSourceChannel().suspendReads();
} else {
channel.getIoThread(... | public class class_name {
public synchronized void suspendReceives() {
receivesSuspended = true;
if (receiver == null) {
if(Thread.currentThread() == channel.getIoThread()) {
channel.getSourceChannel().suspendReads(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public Integer mapThrowable(final Throwable throwable) {
Throwable throwableToCheck = throwable;
int depthToGo = 20;
while (true) {
Integer resId = mapThrowableFlat(throwableToCheck);
if (resId != null) {
return resId;
... | public class class_name {
public Integer mapThrowable(final Throwable throwable) {
Throwable throwableToCheck = throwable;
int depthToGo = 20;
while (true) {
Integer resId = mapThrowableFlat(throwableToCheck);
if (resId != null) {
return resId; // depend... |
public class class_name {
public ErrorResponse parseError(Response response) {
if (response.isSuccessful()) {
throw new IllegalArgumentException("Response must be unsuccessful.");
}
Converter<ResponseBody, ErrorResponse> responseBodyObjectConverter =
retrofit.responseBodyConverter(ErrorRespons... | public class class_name {
public ErrorResponse parseError(Response response) {
if (response.isSuccessful()) {
throw new IllegalArgumentException("Response must be unsuccessful.");
}
Converter<ResponseBody, ErrorResponse> responseBodyObjectConverter =
retrofit.responseBodyConverter(ErrorRespons... |
public class class_name {
private static String inlineCssImports(final String css, final String basePath) {
String retValue = css;
int start;
while ((start = retValue.indexOf(CSS_IMPORT_START)) != -1) {
int end = retValue.indexOf(CSS_IMPORT_END, start);
if (end != -1) {
... | public class class_name {
private static String inlineCssImports(final String css, final String basePath) {
String retValue = css;
int start;
while ((start = retValue.indexOf(CSS_IMPORT_START)) != -1) {
int end = retValue.indexOf(CSS_IMPORT_END, start);
if (end != -1) {
... |
public class class_name {
private static String formatName(String columnName, boolean caseSensitive) {
String returnValue = format(columnName);
if (caseSensitive) {
return returnValue;
}
return returnValue.toUpperCase();
} } | public class class_name {
private static String formatName(String columnName, boolean caseSensitive) {
String returnValue = format(columnName);
if (caseSensitive) {
return returnValue; // depends on control dependency: [if], data = [none]
}
return returnValue.toUpperCase();
} } |
public class class_name {
public String prepareCallbackScript(List<I_CmsDataViewItem> result) {
try {
if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_callbackArg)) {
m_callbackArg = "{}";
}
JSONObject obj = new JSONObject(m_callbackArg);
JSONArray se... | public class class_name {
public String prepareCallbackScript(List<I_CmsDataViewItem> result) {
try {
if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_callbackArg)) {
m_callbackArg = "{}"; // depends on control dependency: [if], data = [none]
}
JSONObject obj = n... |
public class class_name {
public DBInstance withReadReplicaDBClusterIdentifiers(String... readReplicaDBClusterIdentifiers) {
if (this.readReplicaDBClusterIdentifiers == null) {
setReadReplicaDBClusterIdentifiers(new java.util.ArrayList<String>(readReplicaDBClusterIdentifiers.length));
}
... | public class class_name {
public DBInstance withReadReplicaDBClusterIdentifiers(String... readReplicaDBClusterIdentifiers) {
if (this.readReplicaDBClusterIdentifiers == null) {
setReadReplicaDBClusterIdentifiers(new java.util.ArrayList<String>(readReplicaDBClusterIdentifiers.length)); // depends on... |
public class class_name {
public static String deepFieldName(Field field) {
DeepField annotation = field.getAnnotation(DeepField.class);
if (StringUtils.isNotEmpty(annotation.fieldName())) {
return annotation.fieldName();
} else {
return field.getName();
}
}... | public class class_name {
public static String deepFieldName(Field field) {
DeepField annotation = field.getAnnotation(DeepField.class);
if (StringUtils.isNotEmpty(annotation.fieldName())) {
return annotation.fieldName(); // depends on control dependency: [if], data = [none]
} else... |
public class class_name {
public void annotate(Run<?,?> build, Entry change, MarkupText text) {
if (build instanceof AbstractBuild && Util.isOverridden(ChangeLogAnnotator.class, getClass(), "annotate", AbstractBuild.class, Entry.class, MarkupText.class)) {
annotate((AbstractBuild) build, change, te... | public class class_name {
public void annotate(Run<?,?> build, Entry change, MarkupText text) {
if (build instanceof AbstractBuild && Util.isOverridden(ChangeLogAnnotator.class, getClass(), "annotate", AbstractBuild.class, Entry.class, MarkupText.class)) {
annotate((AbstractBuild) build, change, te... |
public class class_name {
private int getWidthOfWidestItem() {
int maxWidth = 0;
for (CmsContextMenuItemWidget item : m_menuItems) {
item.getElement().getStyle().clearWidth();
int itemWidth = measureWidth(item);
if (itemWidth > maxWidth) {
maxWidth ... | public class class_name {
private int getWidthOfWidestItem() {
int maxWidth = 0;
for (CmsContextMenuItemWidget item : m_menuItems) {
item.getElement().getStyle().clearWidth(); // depends on control dependency: [for], data = [item]
int itemWidth = measureWidth(item);
... |
public class class_name {
public static final void close(Closeable closeable) {
if (closeable == null) {
return;
}
try {
closeable.close();
} catch (IOException e) {
Log.e(TAG, "something went wrong on close", e);
}
} } | public class class_name {
public static final void close(Closeable closeable) {
if (closeable == null) {
return; // depends on control dependency: [if], data = [none]
}
try {
closeable.close(); // depends on control dependency: [try], data = [none]
} catch (IOExc... |
public class class_name {
public void addPreserveTagList(List<String> preserveTags) {
for (Iterator<String> it = preserveTags.iterator(); it.hasNext();) {
addPreserveTag(it.next());
}
} } | public class class_name {
public void addPreserveTagList(List<String> preserveTags) {
for (Iterator<String> it = preserveTags.iterator(); it.hasNext();) {
addPreserveTag(it.next()); // depends on control dependency: [for], data = [it]
}
} } |
public class class_name {
public static String toFirstUpper(String string) {
int c = ((int) string.charAt(0));
if (c >= 97 && c <=122) {
// is lower
char Upp = (char) (((int) string.charAt(0)) - 32);
return Upp + string.substring(1);
}
return string;
} } | public class class_name {
public static String toFirstUpper(String string) {
int c = ((int) string.charAt(0));
if (c >= 97 && c <=122) {
// is lower
char Upp = (char) (((int) string.charAt(0)) - 32);
return Upp + string.substring(1); // depends on control dependency: [if], data = [none]
}
return strin... |
public class class_name {
public static String getParameter(final Request request, final String parameterName)
{
String parameterValue = request.getRequestParameters().getParameterValue(parameterName)
.toString();
if ((parameterValue == null) || parameterValue.isEmpty())
{
parameterValue = request.getPost... | public class class_name {
public static String getParameter(final Request request, final String parameterName)
{
String parameterValue = request.getRequestParameters().getParameterValue(parameterName)
.toString();
if ((parameterValue == null) || parameterValue.isEmpty())
{
parameterValue = request.getPost... |
public class class_name {
JCExpressionStatement SuperCall(TreeMaker make,
List<Type> typarams,
List<JCVariableDecl> params,
boolean based) {
JCExpression meth;
if (based) {
meth = make.Select(make.Ident(params.head), names._super);
... | public class class_name {
JCExpressionStatement SuperCall(TreeMaker make,
List<Type> typarams,
List<JCVariableDecl> params,
boolean based) {
JCExpression meth;
if (based) {
meth = make.Select(make.Ident(params.head), names._super); //... |
public class class_name {
private static <T> void readFields(BufferedReader reader, DatabaseTableConfig<T> config) throws SQLException {
List<DatabaseFieldConfig> fields = new ArrayList<DatabaseFieldConfig>();
while (true) {
String line;
try {
line = reader.readLine();
} catch (IOException e) {
th... | public class class_name {
private static <T> void readFields(BufferedReader reader, DatabaseTableConfig<T> config) throws SQLException {
List<DatabaseFieldConfig> fields = new ArrayList<DatabaseFieldConfig>();
while (true) {
String line;
try {
line = reader.readLine(); // depends on control dependency: [... |
public class class_name {
public List<Flow<Job<T>>> getAllFlow()
{
List<Flow<Job<T>>> list = new ArrayList<Flow<Job<T>>>();
List<Node> nodeList = childNode.get("flow");
for(Node node: nodeList)
{
Flow<Job<T>> type = new FlowImpl<Job<T>>(this, "flow", childNode, node);
list... | public class class_name {
public List<Flow<Job<T>>> getAllFlow()
{
List<Flow<Job<T>>> list = new ArrayList<Flow<Job<T>>>();
List<Node> nodeList = childNode.get("flow");
for(Node node: nodeList)
{
Flow<Job<T>> type = new FlowImpl<Job<T>>(this, "flow", childNode, node);
list... |
public class class_name {
public boolean releaseLock(TransactionImpl tx, Object obj)
{
LockEntry writer = getWriter(obj);
if (writer != null && writer.isOwnedBy(tx))
{
removeWriter(writer);
return true;
}
if (hasReadLock(tx, obj))
{
... | public class class_name {
public boolean releaseLock(TransactionImpl tx, Object obj)
{
LockEntry writer = getWriter(obj);
if (writer != null && writer.isOwnedBy(tx))
{
removeWriter(writer);
// depends on control dependency: [if], data = [(writer]
return true;
... |
public class class_name {
private void pdb_SEQRES_Handler(String line) {
/*
* 1 2 3 4 5 6 7
* 1234567890123456789012345678901234567890123456789012345678901234567890
* SEQRES 1 A 376 LYS PRO VAL THR VAL LYS LEU VAL ASP SER GLN ALA THR
* SEQRES ... | public class class_name {
private void pdb_SEQRES_Handler(String line) {
/*
* 1 2 3 4 5 6 7
* 1234567890123456789012345678901234567890123456789012345678901234567890
* SEQRES 1 A 376 LYS PRO VAL THR VAL LYS LEU VAL ASP SER GLN ALA THR
* SEQRES ... |
public class class_name {
private String getDurationString(Duration value)
{
String result = null;
if (value != null)
{
double seconds = 0;
switch (value.getUnits())
{
case MINUTES:
case ELAPSED_MINUTES:
{
seconds = va... | public class class_name {
private String getDurationString(Duration value)
{
String result = null;
if (value != null)
{
double seconds = 0;
switch (value.getUnits())
{
case MINUTES:
case ELAPSED_MINUTES:
{
seconds = va... |
public class class_name {
public static String getURLshp(final HttpServletRequest request) {
String scheme = request.getScheme();
StringBuilder sb = new StringBuilder(scheme);
sb.append("://");
sb.append(request.getServerName());
int port = request.getServerPort();
if ("http".equalsIgnoreCas... | public class class_name {
public static String getURLshp(final HttpServletRequest request) {
String scheme = request.getScheme();
StringBuilder sb = new StringBuilder(scheme);
sb.append("://");
sb.append(request.getServerName());
int port = request.getServerPort();
if ("http".equalsIgnoreCas... |
public class class_name {
private void logClusterSizes(String m, int dimensionality, Object2ObjectOpenCustomHashMap<long[], List<ArrayModifiableDBIDs>> clustersMap) {
if(LOG.isVerbose()) {
final StringBuilder msg = new StringBuilder(1000).append(m).append('\n');
for(ObjectIterator<Object2ObjectMap.Entr... | public class class_name {
private void logClusterSizes(String m, int dimensionality, Object2ObjectOpenCustomHashMap<long[], List<ArrayModifiableDBIDs>> clustersMap) {
if(LOG.isVerbose()) {
final StringBuilder msg = new StringBuilder(1000).append(m).append('\n');
for(ObjectIterator<Object2ObjectMap.Entr... |
public class class_name {
public static MtasDataCollector<?, ?> getCollector(String collectorType,
String dataType, String statsType, SortedSet<String> statsItems,
String sortType, String sortDirection, Integer start, Integer number,
String[] subCollectorTypes, String[] subDataTypes, String[] subStat... | public class class_name {
public static MtasDataCollector<?, ?> getCollector(String collectorType,
String dataType, String statsType, SortedSet<String> statsItems,
String sortType, String sortDirection, Integer start, Integer number,
String[] subCollectorTypes, String[] subDataTypes, String[] subStat... |
public class class_name {
public static List<MediaType> parseMediaTypes(String mediaTypes) {
if (!Strings.isNullOrEmpty(mediaTypes)) {
return Collections.emptyList();
}
String[] tokens = mediaTypes.split(",\\s*");
List<MediaType> result = new ArrayList<MediaType>(tokens.leng... | public class class_name {
public static List<MediaType> parseMediaTypes(String mediaTypes) {
if (!Strings.isNullOrEmpty(mediaTypes)) {
return Collections.emptyList(); // depends on control dependency: [if], data = [none]
}
String[] tokens = mediaTypes.split(",\\s*");
List<Me... |
public class class_name {
private List<String> getIndexes(CmsSetupDb dbCon, String tablename) throws SQLException {
List<String> indexes = new ArrayList<String>();
String tableIndex = readQuery(QUERY_SHOW_INDEX);
Map<String, String> replacer = new HashMap<String, String>();
replacer.pu... | public class class_name {
private List<String> getIndexes(CmsSetupDb dbCon, String tablename) throws SQLException {
List<String> indexes = new ArrayList<String>();
String tableIndex = readQuery(QUERY_SHOW_INDEX);
Map<String, String> replacer = new HashMap<String, String>();
replacer.pu... |
public class class_name {
public List<T> page(int pageNumber) {
if (pageNumber > totalPages && pageNumber > kaminariNextPage) {
throw new NoSuchElementException();
} else if (pageNumber < 1) {
throw new NoSuchElementException();
}
if (currentPage == 0 &... | public class class_name {
public List<T> page(int pageNumber) {
if (pageNumber > totalPages && pageNumber > kaminariNextPage) {
throw new NoSuchElementException();
} else if (pageNumber < 1) {
throw new NoSuchElementException();
}
if (currentPage == 0 &... |
public class class_name {
public static base_responses enable(nitro_service client, String ip[]) throws Exception {
base_responses result = null;
if (ip != null && ip.length > 0) {
dnsnameserver enableresources[] = new dnsnameserver[ip.length];
for (int i=0;i<ip.length;i++){
enableresources[i] = new dnsn... | public class class_name {
public static base_responses enable(nitro_service client, String ip[]) throws Exception {
base_responses result = null;
if (ip != null && ip.length > 0) {
dnsnameserver enableresources[] = new dnsnameserver[ip.length];
for (int i=0;i<ip.length;i++){
enableresources[i] = new dnsn... |
public class class_name {
@Override
public void close() {
if (state == RELEASED) {
return;
}
if (state == READY) {
LIB.mdb_txn_abort(ptr);
}
keyVal.close();
state = RELEASED;
} } | public class class_name {
@Override
public void close() {
if (state == RELEASED) {
return; // depends on control dependency: [if], data = [none]
}
if (state == READY) {
LIB.mdb_txn_abort(ptr); // depends on control dependency: [if], data = [none]
}
keyVal.close();
state = RELEASED... |
public class class_name {
public void logTaskUpdates(TaskID taskId, long finishTime) {
if (disableHistory) {
return;
}
JobID id = taskId.getJobID();
if (!this.jobId.equals(id)) {
throw new RuntimeException("JobId from task: " + id +
" does not match expecte... | public class class_name {
public void logTaskUpdates(TaskID taskId, long finishTime) {
if (disableHistory) {
return; // depends on control dependency: [if], data = [none]
}
JobID id = taskId.getJobID();
if (!this.jobId.equals(id)) {
throw new RuntimeException("JobId from task: " + id +
... |
public class class_name {
protected Locator locator(final CouchbaseRequest request) {
if (request instanceof BinaryRequest) {
return binaryLocator;
} else if (request instanceof ViewRequest) {
return viewLocator;
} else if (request instanceof QueryRequest) {
... | public class class_name {
protected Locator locator(final CouchbaseRequest request) {
if (request instanceof BinaryRequest) {
return binaryLocator; // depends on control dependency: [if], data = [none]
} else if (request instanceof ViewRequest) {
return viewLocator; // depends o... |
public class class_name {
@Override
public boolean route(RoutedMessage routedMessage) {
if (routedMessage == null) {
return true;
}
//There can be many Reader locks, but only one writer lock.
//This ReaderWriter lock is needed to avoid duplicate messages when the class ... | public class class_name {
@Override
public boolean route(RoutedMessage routedMessage) {
if (routedMessage == null) {
return true; // depends on control dependency: [if], data = [none]
}
//There can be many Reader locks, but only one writer lock.
//This ReaderWriter lock... |
public class class_name {
public Owner setOwner() {
Element owner = setChild(root, "owner", childNames, false); //$NON-NLS-1$
Owner result = null;
try {
result = new Owner(owner);
} catch (MalformedElementException e) {
Assert.isTrue(false, Policy.bind("assert.in... | public class class_name {
public Owner setOwner() {
Element owner = setChild(root, "owner", childNames, false); //$NON-NLS-1$
Owner result = null;
try {
result = new Owner(owner); // depends on control dependency: [try], data = [none]
} catch (MalformedElementException e) {
... |
public class class_name {
private void checkACL(String path, int perm) throws KeeperException.NoAuthException {
DataAndVersion node = _data.get(path);
if (node == null) {
return;
}
List<ACL> acl = node.getAcl();
if (acl == null || acl.size() == 0) {
retur... | public class class_name {
private void checkACL(String path, int perm) throws KeeperException.NoAuthException {
DataAndVersion node = _data.get(path);
if (node == null) {
return;
}
List<ACL> acl = node.getAcl();
if (acl == null || acl.size() == 0) {
retur... |
public class class_name {
@SuppressWarnings("signature") // conversion routine
public static @BinaryName String fieldDescriptorToBinaryName(String classname) {
if (classname.equals("")) {
throw new Error("Empty string passed to fieldDescriptorToBinaryName");
}
int dims = 0;
while (classname.sta... | public class class_name {
@SuppressWarnings("signature") // conversion routine
public static @BinaryName String fieldDescriptorToBinaryName(String classname) {
if (classname.equals("")) {
throw new Error("Empty string passed to fieldDescriptorToBinaryName");
}
int dims = 0;
while (classname.sta... |
public class class_name {
public static double computeTauGammaAndDivide(final int start, final int stop,
final double[] x, final double max,
Complex_F64 tau) {
int index = start*2;
double nx = 0;
... | public class class_name {
public static double computeTauGammaAndDivide(final int start, final int stop,
final double[] x, final double max,
Complex_F64 tau) {
int index = start*2;
double nx = 0;
... |
public class class_name {
protected String getPreparedStatementText(ControlBeanContext context, Method m, Object[] args) {
StringBuilder sb = new StringBuilder();
for (SqlFragment frag : _children) {
boolean complexFragment = frag.hasComplexValue(context, m, args);
if (frag.ha... | public class class_name {
protected String getPreparedStatementText(ControlBeanContext context, Method m, Object[] args) {
StringBuilder sb = new StringBuilder();
for (SqlFragment frag : _children) {
boolean complexFragment = frag.hasComplexValue(context, m, args);
if (frag.ha... |
public class class_name {
public Object getObject(int idx) {
if (idx < 0) {
throw new IllegalArgumentException("Negative size: " + idx);
}
if (idx >= fields.size()) {
return null;
}
return fields.get(idx);
} } | public class class_name {
public Object getObject(int idx) {
if (idx < 0) {
throw new IllegalArgumentException("Negative size: " + idx);
}
if (idx >= fields.size()) {
return null; // depends on control dependency: [if], data = [none]
}
return fields.get(i... |
public class class_name {
public static boolean fieldIsNonnull(Field field, AnnotationCache annotationCache) {
Class<?> type = field.getDeclaringClass();
if (annotationCache.hasFieldAnnotation(type, field.getName(), NONNULL)) {
return true;
}
if (annotationCache.hasFieldAnno... | public class class_name {
public static boolean fieldIsNonnull(Field field, AnnotationCache annotationCache) {
Class<?> type = field.getDeclaringClass();
if (annotationCache.hasFieldAnnotation(type, field.getName(), NONNULL)) {
return true; // depends on control dependency: [if], data = [no... |
public class class_name {
@Override
public void refresh() {
String url = mockupTypes.getUrl(mockupType);
if (mockupId == null || url == null) {
iframe.setSrc(null);
return;
}
iframe.setSrc(String.format(url, mockupId, System.currentTimeMilli... | public class class_name {
@Override
public void refresh() {
String url = mockupTypes.getUrl(mockupType);
if (mockupId == null || url == null) {
iframe.setSrc(null); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if],... |
public class class_name {
@Override
public synchronized void dispatch(@NonNull Event event) {
String type = event.type;
List<EventHandlerWrapper> eventHandlers = subscribers.get(type);
if (eventHandlers != null) {
EventHandlerWrapper handler = null;
for (int i = 0, s... | public class class_name {
@Override
public synchronized void dispatch(@NonNull Event event) {
String type = event.type;
List<EventHandlerWrapper> eventHandlers = subscribers.get(type);
if (eventHandlers != null) {
EventHandlerWrapper handler = null;
for (int i = 0, s... |
public class class_name {
public static void scaleCol( double alpha , DMatrixRMaj A , int col ) {
int idx = col;
for (int row = 0; row < A.numRows; row++, idx += A.numCols) {
A.data[idx] *= alpha;
}
} } | public class class_name {
public static void scaleCol( double alpha , DMatrixRMaj A , int col ) {
int idx = col;
for (int row = 0; row < A.numRows; row++, idx += A.numCols) {
A.data[idx] *= alpha; // depends on control dependency: [for], data = [none]
}
} } |
public class class_name {
protected void processConstraintsAndBinds(final RuleBuildContext context,
final PatternDescr patternDescr,
final Pattern pattern) {
MVELDumper.MVELDumperContext mvelCtx = new MVELDumper.MVELDu... | public class class_name {
protected void processConstraintsAndBinds(final RuleBuildContext context,
final PatternDescr patternDescr,
final Pattern pattern) {
MVELDumper.MVELDumperContext mvelCtx = new MVELDumper.MVELDu... |
public class class_name {
private void getStringFromValue(final StringBuilder builder, final String directive, final String value) {
if (value != null) {
builder.append(directive).append(" ").append(value).append(";");
}
} } | public class class_name {
private void getStringFromValue(final StringBuilder builder, final String directive, final String value) {
if (value != null) {
builder.append(directive).append(" ").append(value).append(";"); // depends on control dependency: [if], data = [(value]
}
} } |
public class class_name {
boolean addBusStop(BusStop busStop, boolean fireEvents) {
if (busStop == null) {
return false;
}
if (this.busStops.indexOf(busStop) != -1) {
return false;
}
if (!this.busStops.add(busStop)) {
return false;
}
busStop.addBusHub(this);
resetBoundingBox();
if (fireEvent... | public class class_name {
boolean addBusStop(BusStop busStop, boolean fireEvents) {
if (busStop == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (this.busStops.indexOf(busStop) != -1) {
return false; // depends on control dependency: [if], data = [none]
}
if (!this.bu... |
public class class_name {
public void notifyServletContextAttrAdded(String name, Object value) {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE))
logger.logp(Level.FINE, CLASS_NAME, "notifyServletContextAttrAdded", "ENTRY"); //PI26908
// need to n... | public class class_name {
public void notifyServletContextAttrAdded(String name, Object value) {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE))
logger.logp(Level.FINE, CLASS_NAME, "notifyServletContextAttrAdded", "ENTRY"); //PI26908
// need to n... |
public class class_name {
private void remove(CacheElement.CacheFile want) {
want.remove();
files.remove(want.ncfile);
try {
want.ncfile.setFileCache(null); // unhook the caching
want.ncfile.close();
} catch (IOException e) {
log.error("close failed on "+want.ncfile.getL... | public class class_name {
private void remove(CacheElement.CacheFile want) {
want.remove();
files.remove(want.ncfile);
try {
want.ncfile.setFileCache(null); // unhook the caching
// depends on control dependency: [try], data = [none]
want.ncfile.close();
// depends on control depende... |
public class class_name {
protected void processGeneratedValue(EntityTable entityTable, EntityColumn entityColumn, GeneratedValue generatedValue) {
if ("JDBC".equals(generatedValue.generator())) {
entityColumn.setIdentity(true);
entityColumn.setGenerator("JDBC");
entityTable... | public class class_name {
protected void processGeneratedValue(EntityTable entityTable, EntityColumn entityColumn, GeneratedValue generatedValue) {
if ("JDBC".equals(generatedValue.generator())) {
entityColumn.setIdentity(true); // depends on control dependency: [if], data = [none]
enti... |
public class class_name {
private Set<String> validateURL(ValidationHelper helper, Context context, String url) {
String pathToCheck = url;
Set<String> serverVariables = new HashSet<String>();
while (pathToCheck.contains("{")) {
if (!pathToCheck.contains("}")) {
fin... | public class class_name {
private Set<String> validateURL(ValidationHelper helper, Context context, String url) {
String pathToCheck = url;
Set<String> serverVariables = new HashSet<String>();
while (pathToCheck.contains("{")) {
if (!pathToCheck.contains("}")) {
fin... |
public class class_name {
@Override
public boolean registerIdentification(Identifiable identifiable) {
if (identifiable == null || identifiable.getID() == null || identifiable.getID().isEmpty()) return false;
if (registered.containsValue(identifiable) || registered.containsKey(identifiable.getID())... | public class class_name {
@Override
public boolean registerIdentification(Identifiable identifiable) {
if (identifiable == null || identifiable.getID() == null || identifiable.getID().isEmpty()) return false;
if (registered.containsValue(identifiable) || registered.containsKey(identifiable.getID())... |
public class class_name {
public static Collection<IAction> getRegisteredActions(ActionScope scope) {
Map<String, IAction> actions = new HashMap<>();
if (scope == ActionScope.BOTH || scope == ActionScope.GLOBAL) {
actions.putAll(getRegistry(true).map);
}
if... | public class class_name {
public static Collection<IAction> getRegisteredActions(ActionScope scope) {
Map<String, IAction> actions = new HashMap<>();
if (scope == ActionScope.BOTH || scope == ActionScope.GLOBAL) {
actions.putAll(getRegistry(true).map); // depends on control depende... |
public class class_name {
public void replaceUuid(SIBUuid8 newUuid, Transaction transaction) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "replaceUuid", new Object[] {newUuid, transaction});
if (messagingEngineUuid.toString().equals(SIMP... | public class class_name {
public void replaceUuid(SIBUuid8 newUuid, Transaction transaction) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "replaceUuid", new Object[] {newUuid, transaction});
if (messagingEngineUuid.toString().equals(SIMP... |
public class class_name {
private List parseAggregatedResponse(SearchResponse response, KunderaQuery query, MetamodelImpl metaModel,
Class clazz, EntityMetadata entityMetadata)
{
List results, temp = new ArrayList<>();
InternalAggregations internalAggs = ((InternalFilter) response.getAg... | public class class_name {
private List parseAggregatedResponse(SearchResponse response, KunderaQuery query, MetamodelImpl metaModel,
Class clazz, EntityMetadata entityMetadata)
{
List results, temp = new ArrayList<>();
InternalAggregations internalAggs = ((InternalFilter) response.getAg... |
public class class_name {
private void stepDown() {
if (context.getLeader() != null && context.getLeader().equals(context.getCluster().member())) {
context.setLeader(0);
}
} } | public class class_name {
private void stepDown() {
if (context.getLeader() != null && context.getLeader().equals(context.getCluster().member())) {
context.setLeader(0); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static void OuterProductUpdate(Matrix A, Vec x, Vec y, double c)
{
if (x.length() != A.rows() || y.length() != A.cols())
throw new ArithmeticException("Matrix dimensions do not agree with outer product");
if (x.isSparse())
for (IndexValue iv ... | public class class_name {
public static void OuterProductUpdate(Matrix A, Vec x, Vec y, double c)
{
if (x.length() != A.rows() || y.length() != A.cols())
throw new ArithmeticException("Matrix dimensions do not agree with outer product");
if (x.isSparse())
for (IndexValue iv ... |
public class class_name {
public <T extends IEvaluation> Map<Integer, T[]> evaluate(MultiDataSetIterator iterator, Map<Integer,T[]> evaluations){
try{
return doEvaluationHelper(iterator, evaluations);
} catch (OutOfMemoryError e){
CrashReportingUtil.writeMemoryCrashDump(this, e)... | public class class_name {
public <T extends IEvaluation> Map<Integer, T[]> evaluate(MultiDataSetIterator iterator, Map<Integer,T[]> evaluations){
try{
return doEvaluationHelper(iterator, evaluations); // depends on control dependency: [try], data = [none]
} catch (OutOfMemoryError e){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.