code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public <T> T query(String sql, RsHandler<T> rsh, Object... params) throws SQLException {
Connection conn = null;
try {
conn = this.getConnection();
return SqlExecutor.query(conn, sql, rsh, params);
} catch (SQLException e) {
throw e;
} finally {
this.closeConnectio... | public class class_name {
public <T> T query(String sql, RsHandler<T> rsh, Object... params) throws SQLException {
Connection conn = null;
try {
conn = this.getConnection();
// depends on control dependency: [try], data = [none]
return SqlExecutor.query(conn, sql, rsh, params);
// depends on control dep... |
public class class_name {
private synchronized String getCallerId10()
{
final String[] parsedCallerId;
if (!callerIdCreated)
{
rawCallerId = request.get("callerid");
callerIdCreated = true;
}
parsedCallerId = AstUtil.parseCallerId(rawCallerId);
... | public class class_name {
private synchronized String getCallerId10()
{
final String[] parsedCallerId;
if (!callerIdCreated)
{
rawCallerId = request.get("callerid"); // depends on control dependency: [if], data = [none]
callerIdCreated = true; // depends on control ... |
public class class_name {
@Deprecated public static Object invoke(String methodName, Class<?> cls, PrintStream out, PrintStream err, Help.Ansi ansi, String... args) {
List<Method> candidates = getCommandMethods(cls, methodName);
if (candidates.size() != 1) { throw new InitializationException("Expected ... | public class class_name {
@Deprecated public static Object invoke(String methodName, Class<?> cls, PrintStream out, PrintStream err, Help.Ansi ansi, String... args) {
List<Method> candidates = getCommandMethods(cls, methodName);
if (candidates.size() != 1) { throw new InitializationException("Expected ... |
public class class_name {
public static int calcUtfLength(String str) {
final int strlen = str.length();
int utflen = 0;
for (int i = 0; i < strlen; i++) {
int c = str.charAt(i);
if ((c >= 0x0001) && (c <= 0x007F)) {
utflen++;
} else if... | public class class_name {
public static int calcUtfLength(String str) {
final int strlen = str.length();
int utflen = 0;
for (int i = 0; i < strlen; i++) {
int c = str.charAt(i);
if ((c >= 0x0001) && (c <= 0x007F)) {
utflen++;
// depends on control... |
public class class_name {
private static void setupBindInfoPackage() {
String nsuri = "http://www.hibernate.org/xsd/orm/hbm";
String packageInfoClassName = "org.hibernate.boot.jaxb.hbm.spi.package-info";
try {
final Class<?> packageInfoClass = Class
.forName(packageInfoClassName);
final XmlSchem... | public class class_name {
private static void setupBindInfoPackage() {
String nsuri = "http://www.hibernate.org/xsd/orm/hbm";
String packageInfoClassName = "org.hibernate.boot.jaxb.hbm.spi.package-info";
try {
final Class<?> packageInfoClass = Class
.forName(packageInfoClassName);
final XmlSchem... |
public class class_name {
private Document createCompositeILF(
final IPerson person,
final Document PLF,
final List<Document> applicableLayouts,
final IntegrationResult integrationResult) {
final Document ILF = ILFBuilder.constructILF(PLF, applicableLayouts, pers... | public class class_name {
private Document createCompositeILF(
final IPerson person,
final Document PLF,
final List<Document> applicableLayouts,
final IntegrationResult integrationResult) {
final Document ILF = ILFBuilder.constructILF(PLF, applicableLayouts, pers... |
public class class_name {
private static byte[] checkIllegalCharacters(final byte[] bytes) {
final ByteArrayOutputStream out = new ByteArrayOutputStream();
for (final byte byt: bytes) {
if (BASE64CHARS.indexOf(byt) < 0) {
out.write(byt);
}
}
retur... | public class class_name {
private static byte[] checkIllegalCharacters(final byte[] bytes) {
final ByteArrayOutputStream out = new ByteArrayOutputStream();
for (final byte byt: bytes) {
if (BASE64CHARS.indexOf(byt) < 0) {
out.write(byt); // depends on control dependency: [if... |
public class class_name {
@SuppressWarnings("incomplete-switch")
protected CandidateCompareResult compareTo(AbstractPendingLinkingCandidate<?> right, boolean invalid) {
{
CandidateCompareResult arityCompareResult = compareByArityWith(right);
switch(arityCompareResult) {
case SUSPICIOUS_OTHER:
throw n... | public class class_name {
@SuppressWarnings("incomplete-switch")
protected CandidateCompareResult compareTo(AbstractPendingLinkingCandidate<?> right, boolean invalid) {
{
CandidateCompareResult arityCompareResult = compareByArityWith(right);
switch(arityCompareResult) {
case SUSPICIOUS_OTHER:
throw n... |
public class class_name {
private void setupStyles() {
TypedArray styledAttributes = obtainStyledAttributes(R.style.PinLock, R.styleable.PinLock);
final int layoutBackground = styledAttributes.getColor(R.styleable.PinLock_backgroundColor, Color.WHITE);
View layout = findViewById(R.id.pinLockLa... | public class class_name {
private void setupStyles() {
TypedArray styledAttributes = obtainStyledAttributes(R.style.PinLock, R.styleable.PinLock);
final int layoutBackground = styledAttributes.getColor(R.styleable.PinLock_backgroundColor, Color.WHITE);
View layout = findViewById(R.id.pinLockLa... |
public class class_name {
public static RestoreSnapshotTaskParameters deserialize(String taskParameters) {
JaxbJsonSerializer<RestoreSnapshotTaskParameters> serializer =
new JaxbJsonSerializer<>(RestoreSnapshotTaskParameters.class);
try {
RestoreSnapshotTaskParameters params =
... | public class class_name {
public static RestoreSnapshotTaskParameters deserialize(String taskParameters) {
JaxbJsonSerializer<RestoreSnapshotTaskParameters> serializer =
new JaxbJsonSerializer<>(RestoreSnapshotTaskParameters.class);
try {
RestoreSnapshotTaskParameters params =
... |
public class class_name {
public static Matcher<ExpressionTree> methodInvocation(
final Matcher<ExpressionTree> methodSelectMatcher) {
return new Matcher<ExpressionTree>() {
@Override
public boolean matches(ExpressionTree expressionTree, VisitorState state) {
if (!(expressionTree instance... | public class class_name {
public static Matcher<ExpressionTree> methodInvocation(
final Matcher<ExpressionTree> methodSelectMatcher) {
return new Matcher<ExpressionTree>() {
@Override
public boolean matches(ExpressionTree expressionTree, VisitorState state) {
if (!(expressionTree instance... |
public class class_name {
public static final void closeOutputStream(OutputStream os) {
if (os != null) {
try {
os.close();
} catch (Exception e) {
logger.warn(e.toString());
}
}
} } | public class class_name {
public static final void closeOutputStream(OutputStream os) {
if (os != null) {
try {
os.close(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
logger.warn(e.toString());
} // depends ... |
public class class_name {
@Override
public EClass getIfcProtectiveDeviceTrippingUnit() {
if (ifcProtectiveDeviceTrippingUnitEClass == null) {
ifcProtectiveDeviceTrippingUnitEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(481);
}
return ifcProtec... | public class class_name {
@Override
public EClass getIfcProtectiveDeviceTrippingUnit() {
if (ifcProtectiveDeviceTrippingUnitEClass == null) {
ifcProtectiveDeviceTrippingUnitEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(481);
// depends on control d... |
public class class_name {
public Type getNestedGenericParameterType() {
if (this.nestingLevel > 1) {
Type type = getGenericParameterType();
for (int i = 2; i <= this.nestingLevel; i++) {
if (type instanceof ParameterizedType) {
Type[] args = ((Paramet... | public class class_name {
public Type getNestedGenericParameterType() {
if (this.nestingLevel > 1) {
Type type = getGenericParameterType();
for (int i = 2; i <= this.nestingLevel; i++) {
if (type instanceof ParameterizedType) {
Type[] args = ((Paramet... |
public class class_name {
private void loadDefinition(String def, Color trans) throws SlickException {
BufferedReader reader = new BufferedReader(new InputStreamReader(ResourceLoader.getResourceAsStream(def)));
try {
image = new Image(basePath+reader.readLine(), false, filter, trans);
while (reader.re... | public class class_name {
private void loadDefinition(String def, Color trans) throws SlickException {
BufferedReader reader = new BufferedReader(new InputStreamReader(ResourceLoader.getResourceAsStream(def)));
try {
image = new Image(basePath+reader.readLine(), false, filter, trans);
while (reader.re... |
public class class_name {
public void marshall(Stage stage, ProtocolMarshaller protocolMarshaller) {
if (stage == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(stage.getDeploymentId(), DEPLOYMENTID... | public class class_name {
public void marshall(Stage stage, ProtocolMarshaller protocolMarshaller) {
if (stage == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(stage.getDeploymentId(), DEPLOYMENTID... |
public class class_name {
public static List<String> valueSplit(String str, String valueRegex, String separatorRegex) {
Pattern vPat = Pattern.compile(valueRegex);
Pattern sPat = Pattern.compile(separatorRegex);
List<String> ret = new ArrayList<String>();
while (str.length() > 0) {
Matcher v... | public class class_name {
public static List<String> valueSplit(String str, String valueRegex, String separatorRegex) {
Pattern vPat = Pattern.compile(valueRegex);
Pattern sPat = Pattern.compile(separatorRegex);
List<String> ret = new ArrayList<String>();
while (str.length() > 0) {
Matcher v... |
public class class_name {
public F getInstance(final String pattern, TimeZone timeZone, Locale locale) {
Validate.notNull(pattern, "pattern must not be null");
if (timeZone == null) {
timeZone = TimeZone.getDefault();
}
if (locale == null) {
locale = Locale.getDe... | public class class_name {
public F getInstance(final String pattern, TimeZone timeZone, Locale locale) {
Validate.notNull(pattern, "pattern must not be null");
if (timeZone == null) {
timeZone = TimeZone.getDefault(); // depends on control dependency: [if], data = [none]
}
i... |
public class class_name {
public String generateRandomToken(int length) {
final char[] token = new char[length];
for (int i = 0; i < length; i++) {
final int tokenIndex = random.nextInt(this.tokenChars.length);
token[i] = tokenChars[tokenIndex];
}
return new St... | public class class_name {
public String generateRandomToken(int length) {
final char[] token = new char[length];
for (int i = 0; i < length; i++) {
final int tokenIndex = random.nextInt(this.tokenChars.length);
token[i] = tokenChars[tokenIndex]; // depends on control dependency... |
public class class_name {
public boolean isElementContentWhitespace() {
// dynamic load to support jre 1.4 and 1.5
try {
Method m = section.getClass().getMethod("isElementContentWhitespace", new Class[] {});
return Caster.toBooleanValue(m.invoke(section, ArrayUtil.OBJECT_EMPTY));
}
catch (Exception e) {
... | public class class_name {
public boolean isElementContentWhitespace() {
// dynamic load to support jre 1.4 and 1.5
try {
Method m = section.getClass().getMethod("isElementContentWhitespace", new Class[] {});
return Caster.toBooleanValue(m.invoke(section, ArrayUtil.OBJECT_EMPTY)); // depends on control depe... |
public class class_name {
public void incrErrorCount() {
long count = errorCount.incrementAndGet();
// 如果节点是可用状态,同时当前连续失败的次数超过限制maxClientConnection次,那么把该节点标示为不可用
if (count >= maxInvokeError && stat.get()) {
if (stat.compareAndSet(true, false)) {
logger.error("NettyCl... | public class class_name {
public void incrErrorCount() {
long count = errorCount.incrementAndGet();
// 如果节点是可用状态,同时当前连续失败的次数超过限制maxClientConnection次,那么把该节点标示为不可用
if (count >= maxInvokeError && stat.get()) {
if (stat.compareAndSet(true, false)) {
logger.error("NettyCl... |
public class class_name {
public Double getDouble(String name) {
Object o = get(name);
if (o instanceof Number) {
return ((Number)o).doubleValue();
}
if (o != null) {
try {
String string = o.toString();
if (string != null) {
... | public class class_name {
public Double getDouble(String name) {
Object o = get(name);
if (o instanceof Number) {
return ((Number)o).doubleValue(); // depends on control dependency: [if], data = [none]
}
if (o != null) {
try {
String string = o.t... |
public class class_name {
private void processElementPoint(List<double[]> points, Node cur) {
double[] point = null;
String vstr = ((Element) cur).getAttribute(ATTR_VECTOR);
if(vstr != null && vstr.length() > 0) {
point = parseVector(vstr);
}
if(point == null) {
throw new AbortException... | public class class_name {
private void processElementPoint(List<double[]> points, Node cur) {
double[] point = null;
String vstr = ((Element) cur).getAttribute(ATTR_VECTOR);
if(vstr != null && vstr.length() > 0) {
point = parseVector(vstr); // depends on control dependency: [if], data = [(vstr]
}... |
public class class_name {
public void unlinkAll(ParaObject obj) {
if (obj == null || obj.getId() == null) {
return;
}
String url = Utils.formatMessage("{0}/links", obj.getObjectURI());
invokeDelete(url, null);
} } | public class class_name {
public void unlinkAll(ParaObject obj) {
if (obj == null || obj.getId() == null) {
return; // depends on control dependency: [if], data = [none]
}
String url = Utils.formatMessage("{0}/links", obj.getObjectURI());
invokeDelete(url, null);
} } |
public class class_name {
public synchronized boolean removePreInvalidationListener(PreInvalidationListener listener) {
if (bEnableListener && listener != null) {
eventSource.removeListener(listener);
return true;
}
return false;
} } | public class class_name {
public synchronized boolean removePreInvalidationListener(PreInvalidationListener listener) {
if (bEnableListener && listener != null) {
eventSource.removeListener(listener); // depends on control dependency: [if], data = [none]
return true; // depends on contr... |
public class class_name {
@Override
public void setMethod(MethodValues method) {
this.myMethod = method;
super.setFirstLineChanged();
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "setMethod(v): " + (null != method ? method.getName() : null));
... | public class class_name {
@Override
public void setMethod(MethodValues method) {
this.myMethod = method;
super.setFirstLineChanged();
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "setMethod(v): " + (null != method ? method.getName() : null)); /... |
public class class_name {
public List<ModelServiceInstance> getAllInstances() {
List<ModelServiceInstance> result = Collections.emptyList();
try {
result = getDirectoryServiceClient().getAllInstances();
}catch (ServiceException se){
LOGGER.error("Error when getAllInstanc... | public class class_name {
public List<ModelServiceInstance> getAllInstances() {
List<ModelServiceInstance> result = Collections.emptyList();
try {
result = getDirectoryServiceClient().getAllInstances(); // depends on control dependency: [try], data = [none]
}catch (ServiceException ... |
public class class_name {
public String getString()
{
StringBuilder sb = new StringBuilder();
for (int ii=0;ii<marked;ii++)
{
sb.append(charAt(ii));
}
return sb.toString();
} } | public class class_name {
public String getString()
{
StringBuilder sb = new StringBuilder();
for (int ii=0;ii<marked;ii++)
{
sb.append(charAt(ii));
// depends on control dependency: [for], data = [ii]
}
return sb.toString();
} } |
public class class_name {
public static void or2by2(BitmapContainer container, SparseBitmap bitmap1,
SparseBitmap bitmap2) {
int it1 = 0;
int it2 = 0;
int p1 = bitmap1.buffer.get(it1);
int p2 = bitmap2.buffer.get(it2);
if ((it1 < bitmap1.buffer.size()) && (it2 < bitmap2.buffer.size()))
while (true) {
... | public class class_name {
public static void or2by2(BitmapContainer container, SparseBitmap bitmap1,
SparseBitmap bitmap2) {
int it1 = 0;
int it2 = 0;
int p1 = bitmap1.buffer.get(it1);
int p2 = bitmap2.buffer.get(it2);
if ((it1 < bitmap1.buffer.size()) && (it2 < bitmap2.buffer.size()))
while (true) {
... |
public class class_name {
protected void processTemplate(String templateName, OutputStream outputStream) throws ReportException {
InputStream input = null;
String logTag = null;
final File f = new File(templateName);
try {
if (f.isFile()) {
try {
... | public class class_name {
protected void processTemplate(String templateName, OutputStream outputStream) throws ReportException {
InputStream input = null;
String logTag = null;
final File f = new File(templateName);
try {
if (f.isFile()) {
try {
... |
public class class_name {
static List<String> extractAsArrayOfClassName(String value) {
Matcher matcher = classPattern.matcher(value);
List<String> result = new ArrayList<String>();
while (matcher.find()) {
result.add(matcher.group(1));
}
return result;
} } | public class class_name {
static List<String> extractAsArrayOfClassName(String value) {
Matcher matcher = classPattern.matcher(value);
List<String> result = new ArrayList<String>();
while (matcher.find()) {
result.add(matcher.group(1)); // depends on control dependency: [while], data = [none]
}
return ... |
public class class_name {
public void deleteColumnFamily(DBConn dbConn, String cfName) {
m_logger.info("Deleting ColumnFamily: {}", cfName);
try {
dbConn.getClientSession().system_drop_column_family(cfName);
waitForSchemaPropagation(dbConn);
} catch (Exception ex) {... | public class class_name {
public void deleteColumnFamily(DBConn dbConn, String cfName) {
m_logger.info("Deleting ColumnFamily: {}", cfName);
try {
dbConn.getClientSession().system_drop_column_family(cfName);
// depends on control dependency: [try], data = [none]
waitForSchem... |
public class class_name {
public void buildTaxonomy() {
// Determine if a full or incremental calculation is required
if(!hasBeenIncrementallyClassified) {
buildTaxonomyConcurrent();
//buildTaxonomySequential();
} else {
final IConceptMap<IConceptSet... | public class class_name {
public void buildTaxonomy() {
// Determine if a full or incremental calculation is required
if(!hasBeenIncrementallyClassified) {
buildTaxonomyConcurrent(); // depends on control dependency: [if], data = [none]
//buildTaxonomySequential();
... |
public class class_name {
public static void setCol(final double[][] m1, final int c, final double[] column) {
assert column.length == m1.length : ERR_DIMENSIONS;
for(int i = 0; i < m1.length; i++) {
m1[i][c] = column[i];
}
} } | public class class_name {
public static void setCol(final double[][] m1, final int c, final double[] column) {
assert column.length == m1.length : ERR_DIMENSIONS;
for(int i = 0; i < m1.length; i++) {
m1[i][c] = column[i]; // depends on control dependency: [for], data = [i]
}
} } |
public class class_name {
public IRObject getReference() {
if (ref == null) {
ref = org.omg.CORBA.SequenceDefHelper.narrow(
servantToReference(new SequenceDefPOATie(this)));
}
return ref;
} } | public class class_name {
public IRObject getReference() {
if (ref == null) {
ref = org.omg.CORBA.SequenceDefHelper.narrow(
servantToReference(new SequenceDefPOATie(this))); // depends on control dependency: [if], data = [none]
}
return ref;
} } |
public class class_name {
public List<CmsDetailPageInfo> toList() {
List<CmsDetailPageInfo> result = new ArrayList<CmsDetailPageInfo>();
for (String key : m_map.keySet()) {
for (CmsDetailPageInfo info : m_map.get(key)) {
result.add(info);
}
}
ret... | public class class_name {
public List<CmsDetailPageInfo> toList() {
List<CmsDetailPageInfo> result = new ArrayList<CmsDetailPageInfo>();
for (String key : m_map.keySet()) {
for (CmsDetailPageInfo info : m_map.get(key)) {
result.add(info); // depends on control dependency: [... |
public class class_name {
public static <T> T[] insertIntoArrayAt(T item, T[] items, int idx, Class<T> tClass) {
// Make an array that's one bigger. It's too bad that the JVM bothers to
// initialize this with nulls.
@SuppressWarnings("unchecked")
T[] newItems = (T[]) ((tClass == null)... | public class class_name {
public static <T> T[] insertIntoArrayAt(T item, T[] items, int idx, Class<T> tClass) {
// Make an array that's one bigger. It's too bad that the JVM bothers to
// initialize this with nulls.
@SuppressWarnings("unchecked")
T[] newItems = (T[]) ((tClass == null)... |
public class class_name {
protected static void multTransBBlockMinus_L( double[] dataA, double []dataC,
int indexA, int indexB, int indexC,
final int widthA, final int heightA, final int widthC ) {
// for( int i ... | public class class_name {
protected static void multTransBBlockMinus_L( double[] dataA, double []dataC,
int indexA, int indexB, int indexC,
final int widthA, final int heightA, final int widthC ) {
// for( int i ... |
public class class_name {
@Override
public ObjectData compileObjectType(Set<String> filter, Boolean includeAllowableActions,
ObjectInfoHandler objectInfos, boolean requiresObjectInfo) {
try {
ObjectDataImpl result = new ObjectDataImpl();
ObjectInfoImpl objectInfo = new ... | public class class_name {
@Override
public ObjectData compileObjectType(Set<String> filter, Boolean includeAllowableActions,
ObjectInfoHandler objectInfos, boolean requiresObjectInfo) {
try {
ObjectDataImpl result = new ObjectDataImpl();
ObjectInfoImpl objectInfo = new ... |
public class class_name {
public Transition getNextTransition(ExecutionElement currentElem, List<ExecutionElement> peerExecutionElements, ExecutionStatus currentStatus)
throws IllegalTransitionException {
final String method = "getNextTransition";
if (logger.isLoggable(Level.FINE)) {
logger.fine(method... | public class class_name {
public Transition getNextTransition(ExecutionElement currentElem, List<ExecutionElement> peerExecutionElements, ExecutionStatus currentStatus)
throws IllegalTransitionException {
final String method = "getNextTransition";
if (logger.isLoggable(Level.FINE)) {
logger.fine(method... |
public class class_name {
private void initGraphics() {
if (Double.compare(getPrefWidth(), 0.0) <= 0 || Double.compare(getPrefHeight(), 0.0) <= 0 || Double.compare(getWidth(), 0.0) <= 0 ||
Double.compare(getHeight(), 0.0) <= 0) {
if (getPrefWidth() > 0 && getPrefHeight() > 0) {
... | public class class_name {
private void initGraphics() {
if (Double.compare(getPrefWidth(), 0.0) <= 0 || Double.compare(getPrefHeight(), 0.0) <= 0 || Double.compare(getWidth(), 0.0) <= 0 ||
Double.compare(getHeight(), 0.0) <= 0) {
if (getPrefWidth() > 0 && getPrefHeight() > 0) {
... |
public class class_name {
public static List <NameValuePair> parse (
final HttpEntity entity) throws IOException {
ContentType contentType = ContentType.get(entity);
if (contentType != null && contentType.getMimeType().equalsIgnoreCase(CONTENT_TYPE)) {
String content = EntityUti... | public class class_name {
public static List <NameValuePair> parse (
final HttpEntity entity) throws IOException {
ContentType contentType = ContentType.get(entity);
if (contentType != null && contentType.getMimeType().equalsIgnoreCase(CONTENT_TYPE)) {
String content = EntityUti... |
public class class_name {
public ReviewReport withReviewActions(ReviewActionDetail... reviewActions) {
if (this.reviewActions == null) {
setReviewActions(new java.util.ArrayList<ReviewActionDetail>(reviewActions.length));
}
for (ReviewActionDetail ele : reviewActions) {
... | public class class_name {
public ReviewReport withReviewActions(ReviewActionDetail... reviewActions) {
if (this.reviewActions == null) {
setReviewActions(new java.util.ArrayList<ReviewActionDetail>(reviewActions.length)); // depends on control dependency: [if], data = [none]
}
for (... |
public class class_name {
public String next() throws java.io.IOException {
int zzInput;
int zzAction;
// cached fields:
int zzCurrentPosL;
int zzMarkedPosL;
int zzEndReadL = zzEndRead;
char [] zzBufferL = zzBuffer;
char [] zzCMapL = ZZ_CMAP;
int [] zzTransL = ZZ_TRANS;... | public class class_name {
public String next() throws java.io.IOException {
int zzInput;
int zzAction;
// cached fields:
int zzCurrentPosL;
int zzMarkedPosL;
int zzEndReadL = zzEndRead;
char [] zzBufferL = zzBuffer;
char [] zzCMapL = ZZ_CMAP;
int [] zzTransL = ZZ_TRANS;... |
public class class_name {
private void populateCqlVersion(Map<String, Object> externalProperties) {
String cqlVersion =
externalProperties != null ? (String) externalProperties.get(CassandraConstants.CQL_VERSION) : null;
if (cqlVersion == null || !(cqlVersion != null && (cqlVersion.equals(C... | public class class_name {
private void populateCqlVersion(Map<String, Object> externalProperties) {
String cqlVersion =
externalProperties != null ? (String) externalProperties.get(CassandraConstants.CQL_VERSION) : null;
if (cqlVersion == null || !(cqlVersion != null && (cqlVersion.equals(C... |
public class class_name {
void addFileName(final String fileName) {
writeLock.lock();
try {
final FileListCacheValue fileList = getFileList();
boolean done = fileList.add(fileName);
if (done) {
updateFileList(fileList);
if (trace)
log.trace(... | public class class_name {
void addFileName(final String fileName) {
writeLock.lock();
try {
final FileListCacheValue fileList = getFileList();
boolean done = fileList.add(fileName);
if (done) {
updateFileList(fileList); // depends on control dependency: [if], data = [... |
public class class_name {
private void processCustomFieldValues()
{
byte[] data = m_projectProps.getByteArray(Props.TASK_FIELD_ATTRIBUTES);
if (data != null)
{
int index = 0;
int offset = 0;
// First the length
int length = MPPUtility.getInt(data, offset);
... | public class class_name {
private void processCustomFieldValues()
{
byte[] data = m_projectProps.getByteArray(Props.TASK_FIELD_ATTRIBUTES);
if (data != null)
{
int index = 0;
int offset = 0;
// First the length
int length = MPPUtility.getInt(data, offset);
... |
public class class_name {
@Override
public void close(String namespace)
{
if (config.isEvictOnClose()) {
cache.asMap().keySet().removeIf(key -> key.namespace.equals(namespace));
}
} } | public class class_name {
@Override
public void close(String namespace)
{
if (config.isEvictOnClose()) {
cache.asMap().keySet().removeIf(key -> key.namespace.equals(namespace)); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public ServiceCall<Grammar> getGrammar(GetGrammarOptions getGrammarOptions) {
Validator.notNull(getGrammarOptions, "getGrammarOptions cannot be null");
String[] pathSegments = { "v1/customizations", "grammars" };
String[] pathParameters = { getGrammarOptions.customizationId(), get... | public class class_name {
public ServiceCall<Grammar> getGrammar(GetGrammarOptions getGrammarOptions) {
Validator.notNull(getGrammarOptions, "getGrammarOptions cannot be null");
String[] pathSegments = { "v1/customizations", "grammars" };
String[] pathParameters = { getGrammarOptions.customizationId(), get... |
public class class_name {
@Override
public InvocationResponse sendActivity(SPFActivity activity) {
Utils.logCall(TAG, "sendActivity", activity);
InvocationResponse response;
try {
response = SPF.get().getServiceRegistry().sendActivity(activity);
} catch (Throwable t) {
response = InvocationResponse.erro... | public class class_name {
@Override
public InvocationResponse sendActivity(SPFActivity activity) {
Utils.logCall(TAG, "sendActivity", activity);
InvocationResponse response;
try {
response = SPF.get().getServiceRegistry().sendActivity(activity); // depends on control dependency: [try], data = [none]
} catc... |
public class class_name {
@Override
public MeasureModel buildMeasureModel(InvocationStat invocationStat) {
InvocationStatDimension statDimension = invocationStat.getDimension();
String key = statDimension.getDimensionKey();
MeasureModel measureModel = appServiceMeasureModels.get(key);
... | public class class_name {
@Override
public MeasureModel buildMeasureModel(InvocationStat invocationStat) {
InvocationStatDimension statDimension = invocationStat.getDimension();
String key = statDimension.getDimensionKey();
MeasureModel measureModel = appServiceMeasureModels.get(key);
... |
public class class_name {
public static String readFile(String fileName) throws IOException {
logger.entering(fileName);
Preconditions.checkArgument(StringUtils.isNotBlank(fileName), "File name cannot be null (or) empty.");
StringBuilder output = new StringBuilder();
try (BufferedReader... | public class class_name {
public static String readFile(String fileName) throws IOException {
logger.entering(fileName);
Preconditions.checkArgument(StringUtils.isNotBlank(fileName), "File name cannot be null (or) empty.");
StringBuilder output = new StringBuilder();
try (BufferedReader... |
public class class_name {
public Attribute getLabelAttribute() {
Attribute labelAttr = getOwnLabelAttribute();
if (labelAttr == null) {
EntityType extend = getExtends();
if (extend != null) {
labelAttr = extend.getLabelAttribute();
}
}
return labelAttr;
} } | public class class_name {
public Attribute getLabelAttribute() {
Attribute labelAttr = getOwnLabelAttribute();
if (labelAttr == null) {
EntityType extend = getExtends();
if (extend != null) {
labelAttr = extend.getLabelAttribute(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected Property getSwaggerProperty(Swagger swagger, Class<?> objectClass) {
Property swaggerProperty = null;
if (byte.class == objectClass || Byte.class == objectClass) {
// STRING
swaggerProperty = new StringProperty("byte");
} else if (char... | public class class_name {
protected Property getSwaggerProperty(Swagger swagger, Class<?> objectClass) {
Property swaggerProperty = null;
if (byte.class == objectClass || Byte.class == objectClass) {
// STRING
swaggerProperty = new StringProperty("byte"); // depends on control d... |
public class class_name {
public void marshall(DescribeExportTasksRequest describeExportTasksRequest, ProtocolMarshaller protocolMarshaller) {
if (describeExportTasksRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... | public class class_name {
public void marshall(DescribeExportTasksRequest describeExportTasksRequest, ProtocolMarshaller protocolMarshaller) {
if (describeExportTasksRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... |
public class class_name {
synchronized private static Date extractFromTimestamp(String watermark) {
final SimpleDateFormat inputFormat = new SimpleDateFormat(INPUTFORMAT);
final SimpleDateFormat outputFormat = new SimpleDateFormat(OUTPUTFORMAT);
Date outDate = null;
try {
Date date = inputFormat.... | public class class_name {
synchronized private static Date extractFromTimestamp(String watermark) {
final SimpleDateFormat inputFormat = new SimpleDateFormat(INPUTFORMAT);
final SimpleDateFormat outputFormat = new SimpleDateFormat(OUTPUTFORMAT);
Date outDate = null;
try {
Date date = inputFormat.... |
public class class_name {
protected static int compareVersions(String left, String right) {
int result = 0;
//while the strings are well formed - the backslashes will be in the exact
//same location in equal strings - for version numbers the cost of conversion
//should not be incurred
... | public class class_name {
protected static int compareVersions(String left, String right) {
int result = 0;
//while the strings are well formed - the backslashes will be in the exact
//same location in equal strings - for version numbers the cost of conversion
//should not be incurred
... |
public class class_name {
public static void mult(DMatrixSparseCSC A, DMatrixSparseCSC B, DMatrixSparseCSC C,
@Nullable IGrowArray gw, @Nullable DGrowArray gx )
{
double []x = adjust(gx, A.numRows);
int []w = adjust(gw, A.numRows, A.numRows);
C.growMaxLength(A.n... | public class class_name {
public static void mult(DMatrixSparseCSC A, DMatrixSparseCSC B, DMatrixSparseCSC C,
@Nullable IGrowArray gw, @Nullable DGrowArray gx )
{
double []x = adjust(gx, A.numRows);
int []w = adjust(gw, A.numRows, A.numRows);
C.growMaxLength(A.n... |
public class class_name {
private final ClientResponseImpl dispatchLoadSinglepartitionTable(Procedure catProc,
StoredProcedureInvocation task,
InvocationClientHandler handler,
... | public class class_name {
private final ClientResponseImpl dispatchLoadSinglepartitionTable(Procedure catProc,
StoredProcedureInvocation task,
InvocationClientHandler handler,
... |
public class class_name {
public void handleLostConnection() {
try {
clientEngine.applySelector(ClientSelectors.any());
} catch (Exception e) {
LOGGER.warning("Could not clean up client B/W list filtering.", e);
}
} } | public class class_name {
public void handleLostConnection() {
try {
clientEngine.applySelector(ClientSelectors.any()); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
LOGGER.warning("Could not clean up client B/W list filtering.", e);
} //... |
public class class_name {
@Override
public final void closeTcpConnection() throws CommunicationException {
IOException tmpException = null;
try {
closeTcpConnectionImpl();
} catch (IOException e) {
tmpException = e;
} finally {
try {
if (mSocket != null) {
mSocket.close();
}
} catch... | public class class_name {
@Override
public final void closeTcpConnection() throws CommunicationException {
IOException tmpException = null;
try {
closeTcpConnectionImpl();
} catch (IOException e) {
tmpException = e;
} finally {
try {
if (mSocket != null) {
mSocket.close(); // depends on con... |
public class class_name {
public final void reset() {
if (trace) {
log.tracef("Resetting Node Scope Statistics");
}
globalContainer.reset();
percentiles = new EnumMap<>(PercentileStatistic.class);
for (PercentileStatistic percentileStatistic : PercentileStatistic.values()) {
... | public class class_name {
public final void reset() {
if (trace) {
log.tracef("Resetting Node Scope Statistics"); // depends on control dependency: [if], data = [none]
}
globalContainer.reset();
percentiles = new EnumMap<>(PercentileStatistic.class);
for (PercentileStatistic perc... |
public class class_name {
@Override
public void link(NGScope scope, JQElement element, JSON attrs) {
ImageResource resource = scope.get(getName());
if (resource == null) {
LOG.log(Level.WARNING, "Mandatory attribute " + getName() + " value is mssing");
return;
}
... | public class class_name {
@Override
public void link(NGScope scope, JQElement element, JSON attrs) {
ImageResource resource = scope.get(getName());
if (resource == null) {
LOG.log(Level.WARNING, "Mandatory attribute " + getName() + " value is mssing"); // depends on control dependency: ... |
public class class_name {
public void next(Action action,String depClass) {
assert (!isFinalState());
// 左焦点词在句子中的位置
int lNode = trees.get(leftFocus).id;
int rNode = trees.get(leftFocus + 1).id;
switch (action) {
case LEFT:
trees.get(leftFocus + 1).setDepClass(depClass);
trees.get(... | public class class_name {
public void next(Action action,String depClass) {
assert (!isFinalState());
// 左焦点词在句子中的位置
int lNode = trees.get(leftFocus).id;
int rNode = trees.get(leftFocus + 1).id;
switch (action) {
case LEFT:
trees.get(leftFocus + 1).setDepClass(depClass);
trees.get(... |
public class class_name {
protected void cacheResultSetEntities(final Object[] result) {
if (entitiesCache == null) {
entitiesCache = new HashMap<>();
}
for (int i = 0; i < result.length; i++) {
Object object = result[i];
if (object == null) {
continue;
}
DbEntityDescriptor ded = cachedDbEn... | public class class_name {
protected void cacheResultSetEntities(final Object[] result) {
if (entitiesCache == null) {
entitiesCache = new HashMap<>(); // depends on control dependency: [if], data = [none]
}
for (int i = 0; i < result.length; i++) {
Object object = result[i];
if (object == null) {
... |
public class class_name {
public static Polygon makePolygon(Geometry shell, Geometry... holes) throws IllegalArgumentException {
if(shell == null) {
return null;
}
LinearRing outerLine = checkLineString(shell);
LinearRing[] interiorlinestrings = new LinearRing[holes.length];... | public class class_name {
public static Polygon makePolygon(Geometry shell, Geometry... holes) throws IllegalArgumentException {
if(shell == null) {
return null; // depends on control dependency: [if], data = [none]
}
LinearRing outerLine = checkLineString(shell);
LinearRing... |
public class class_name {
@SuppressWarnings("all")
protected Object newInstance(String className) {
log.debug("Loading class: {}", className);
Object instance = null;
Class<?> clazz = null;
if ("".equals(className) || className == null)
return instance;
try {
// check for special DS class aliases
i... | public class class_name {
@SuppressWarnings("all")
protected Object newInstance(String className) {
log.debug("Loading class: {}", className);
Object instance = null;
Class<?> clazz = null;
if ("".equals(className) || className == null)
return instance;
try {
// check for special DS class aliases
i... |
public class class_name {
@Override
public byte[] bitcoinSerialize() {
// we have completely cached byte array.
if (headerBytesValid && transactionBytesValid) {
Preconditions.checkNotNull(payload, "Bytes should never be null if headerBytesValid && transactionBytesValid");
if... | public class class_name {
@Override
public byte[] bitcoinSerialize() {
// we have completely cached byte array.
if (headerBytesValid && transactionBytesValid) {
Preconditions.checkNotNull(payload, "Bytes should never be null if headerBytesValid && transactionBytesValid"); // depends on ... |
public class class_name {
public final void persist() {
if (persisted) {
// Do nothing if already done
return;
}
try {
// Compare new and old file
if (FileUtils.contentEquals(tmpFile, file)) {
LOG.debug("Omitted: {} {... | public class class_name {
public final void persist() {
if (persisted) {
// Do nothing if already done
return;
// depends on control dependency: [if], data = [none]
}
try {
// Compare new and old file
if (FileUtils.contentEquals(tmpFi... |
public class class_name {
public void marshall(UpdateLinkAttributesRequest updateLinkAttributesRequest, ProtocolMarshaller protocolMarshaller) {
if (updateLinkAttributesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(UpdateLinkAttributesRequest updateLinkAttributesRequest, ProtocolMarshaller protocolMarshaller) {
if (updateLinkAttributesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static base_responses kill(nitro_service client, aaasession resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
aaasession killresources[] = new aaasession[resources.length];
for (int i=0;i<resources.length;i++){
... | public class class_name {
public static base_responses kill(nitro_service client, aaasession resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
aaasession killresources[] = new aaasession[resources.length];
for (int i=0;i<resources.length;i++){
... |
public class class_name {
private void checkElement(Element elementToBeAdded) {
if (!(elementToBeAdded instanceof Person) && !(elementToBeAdded instanceof SoftwareSystem) && !(elementToBeAdded instanceof Container) && !(elementToBeAdded instanceof Component)) {
throw new IllegalArgumentException("O... | public class class_name {
private void checkElement(Element elementToBeAdded) {
if (!(elementToBeAdded instanceof Person) && !(elementToBeAdded instanceof SoftwareSystem) && !(elementToBeAdded instanceof Container) && !(elementToBeAdded instanceof Component)) {
throw new IllegalArgumentException("O... |
public class class_name {
public void setWindowExecutionTaskInvocationIdentities(
java.util.Collection<MaintenanceWindowExecutionTaskInvocationIdentity> windowExecutionTaskInvocationIdentities) {
if (windowExecutionTaskInvocationIdentities == null) {
this.windowExecutionTaskInvocationId... | public class class_name {
public void setWindowExecutionTaskInvocationIdentities(
java.util.Collection<MaintenanceWindowExecutionTaskInvocationIdentity> windowExecutionTaskInvocationIdentities) {
if (windowExecutionTaskInvocationIdentities == null) {
this.windowExecutionTaskInvocationId... |
public class class_name {
boolean evict(StoreEventSink<K, V> eventSink) {
evictionObserver.begin();
Random random = new Random();
@SuppressWarnings("unchecked")
Map.Entry<K, OnHeapValueHolder<V>> candidate = map.getEvictionCandidate(random, SAMPLE_SIZE, EVICTION_PRIORITIZER, EVICTION_ADVISOR);
if... | public class class_name {
boolean evict(StoreEventSink<K, V> eventSink) {
evictionObserver.begin();
Random random = new Random();
@SuppressWarnings("unchecked")
Map.Entry<K, OnHeapValueHolder<V>> candidate = map.getEvictionCandidate(random, SAMPLE_SIZE, EVICTION_PRIORITIZER, EVICTION_ADVISOR);
if... |
public class class_name {
protected static <T> T modifyKeys(T object, Function<String, String> keyMapper, String toReplace) {
if (object instanceof Map) {
Map<String, Object> document = (Map<String, Object>) object;
List<String> keysWithDots = new LinkedList<>();
for (Map.En... | public class class_name {
protected static <T> T modifyKeys(T object, Function<String, String> keyMapper, String toReplace) {
if (object instanceof Map) {
Map<String, Object> document = (Map<String, Object>) object;
List<String> keysWithDots = new LinkedList<>();
for (Map.En... |
public class class_name {
public void remove(String identifier, ItemData item)
{
boolean inTransaction = cache.isTransactionActive();
try
{
if (!inTransaction)
{
cache.beginTransaction();
}
cache.setLocal(true);
cache.remove(new Ca... | public class class_name {
public void remove(String identifier, ItemData item)
{
boolean inTransaction = cache.isTransactionActive();
try
{
if (!inTransaction)
{
cache.beginTransaction();
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public TransactionConfidence getOrCreate(Sha256Hash hash) {
checkNotNull(hash);
lock.lock();
try {
WeakConfidenceReference reference = table.get(hash);
if (reference != null) {
TransactionConfidence confidence = reference.get();
... | public class class_name {
public TransactionConfidence getOrCreate(Sha256Hash hash) {
checkNotNull(hash);
lock.lock();
try {
WeakConfidenceReference reference = table.get(hash);
if (reference != null) {
TransactionConfidence confidence = reference.get();
... |
public class class_name {
public static int searchLast(int[] intArray, int value, int occurrence) {
if(occurrence <= 0 || occurrence > intArray.length) {
throw new IllegalArgumentException("Occurrence must be greater or equal to 1 and less than "
+ "the array length: " + occurre... | public class class_name {
public static int searchLast(int[] intArray, int value, int occurrence) {
if(occurrence <= 0 || occurrence > intArray.length) {
throw new IllegalArgumentException("Occurrence must be greater or equal to 1 and less than "
+ "the array length: " + occurre... |
public class class_name {
public com.google.protobuf.ByteString
getPivotForBodyNameBytes() {
java.lang.Object ref = pivotForBodyName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) r... | public class class_name {
public com.google.protobuf.ByteString
getPivotForBodyNameBytes() {
java.lang.Object ref = pivotForBodyName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) r... |
public class class_name {
private String _write_multi_line(String tag, String text) {
if (text == null) {
text = "";
}
int max_len = MAX_WIDTH - HEADER_WIDTH;
ArrayList<String> lines = _split_multi_line(text, max_len);
String output = _write_single_line(tag, lines.get(0));
for (int i = 1; i < lines.size... | public class class_name {
private String _write_multi_line(String tag, String text) {
if (text == null) {
text = ""; // depends on control dependency: [if], data = [none]
}
int max_len = MAX_WIDTH - HEADER_WIDTH;
ArrayList<String> lines = _split_multi_line(text, max_len);
String output = _write_single_lin... |
public class class_name {
public static int decodeLength(ByteBuffer buf) {
if (buf == null || buf.remaining() == 0) {
throw new IllegalArgumentException("Null or empty buffer");
}
int len = 0;
byte first = buf.get();
if (first >> 7 == 0) {
// Bit 8 is z... | public class class_name {
public static int decodeLength(ByteBuffer buf) {
if (buf == null || buf.remaining() == 0) {
throw new IllegalArgumentException("Null or empty buffer");
}
int len = 0;
byte first = buf.get();
if (first >> 7 == 0) {
// Bit 8 is z... |
public class class_name {
public static boolean isEmptyMethodString(final String str) {
if (str == null) {
return false;
}
return str.startsWith(TieConstants.METHOD_PREFIX);
} } | public class class_name {
public static boolean isEmptyMethodString(final String str) {
if (str == null) {
return false;
// depends on control dependency: [if], data = [none]
}
return str.startsWith(TieConstants.METHOD_PREFIX);
} } |
public class class_name {
private static void registerMiddlewareHandler(Object handler) {
if(handler instanceof MiddlewareHandler) {
// register the middleware handler if it is enabled.
if(((MiddlewareHandler) handler).isEnabled()) {
((MiddlewareHandler) handler).register();
}
}
} } | public class class_name {
private static void registerMiddlewareHandler(Object handler) {
if(handler instanceof MiddlewareHandler) {
// register the middleware handler if it is enabled.
if(((MiddlewareHandler) handler).isEnabled()) {
((MiddlewareHandler) handler).register(); // depends on control dependenc... |
public class class_name {
public long remove(Data data) {
Iterator<QueueItem> iterator = getItemQueue().iterator();
while (iterator.hasNext()) {
QueueItem item = iterator.next();
if (data.equals(item.getData())) {
if (store.isEnabled()) {
try ... | public class class_name {
public long remove(Data data) {
Iterator<QueueItem> iterator = getItemQueue().iterator();
while (iterator.hasNext()) {
QueueItem item = iterator.next();
if (data.equals(item.getData())) {
if (store.isEnabled()) {
try ... |
public class class_name {
@JsonIgnore
public void setTag(String key, String value) {
requireArgument(key != null && !key.trim().isEmpty(), "Tag key cannot be null.");
requireArgument(!ReservedField.isReservedField(key), "Tag is a reserved tag name.");
if (value == null || value.isEmpty()) {... | public class class_name {
@JsonIgnore
public void setTag(String key, String value) {
requireArgument(key != null && !key.trim().isEmpty(), "Tag key cannot be null.");
requireArgument(!ReservedField.isReservedField(key), "Tag is a reserved tag name.");
if (value == null || value.isEmpty()) {... |
public class class_name {
public static void setRepositoriesWritable(final boolean writable) {
for (final Map.Entry<String, Repository> entry : REPOS_HOLDER.entrySet()) {
final String repositoryName = entry.getKey();
final Repository repository = entry.getValue();
repositor... | public class class_name {
public static void setRepositoriesWritable(final boolean writable) {
for (final Map.Entry<String, Repository> entry : REPOS_HOLDER.entrySet()) {
final String repositoryName = entry.getKey();
final Repository repository = entry.getValue();
repositor... |
public class class_name {
private void setConstantSpecs(EntitySpec[] constantParameterSpecs) {
if (constantParameterSpecs == null) {
this.constantSpecs = EMPTY_ES_ARR;
} else {
this.constantSpecs = constantParameterSpecs.clone();
}
} } | public class class_name {
private void setConstantSpecs(EntitySpec[] constantParameterSpecs) {
if (constantParameterSpecs == null) {
this.constantSpecs = EMPTY_ES_ARR; // depends on control dependency: [if], data = [none]
} else {
this.constantSpecs = constantParameterSpecs.clon... |
public class class_name {
public static Serializer switchSerializerIfHTML(
String ns, String localName, Properties props, Serializer oldSerializer)
throws TransformerException
{
Serializer newSerializer = oldSerializer;
if (((null == ns) || (ns.length() == 0))
&& localName.... | public class class_name {
public static Serializer switchSerializerIfHTML(
String ns, String localName, Properties props, Serializer oldSerializer)
throws TransformerException
{
Serializer newSerializer = oldSerializer;
if (((null == ns) || (ns.length() == 0))
&& localName.... |
public class class_name {
private HeaderElement findHeader(HeaderKeys key, int instance) {
final int ord = key.getOrdinal();
if (!storage.containsKey(ord) && ord <= HttpHeaderKeys.ORD_MAX) {
return null;
}
HeaderElement elem = null;
//If the ordinal created for th... | public class class_name {
private HeaderElement findHeader(HeaderKeys key, int instance) {
final int ord = key.getOrdinal();
if (!storage.containsKey(ord) && ord <= HttpHeaderKeys.ORD_MAX) {
return null; // depends on control dependency: [if], data = [none]
}
HeaderElement... |
public class class_name {
protected void combineContentItem(
String itemValue,
String itemKey,
StringBuffer content,
Map<String, String> contentItems) {
if (CmsStringUtil.isNotEmpty(itemValue)) {
contentItems.put(itemKey, itemValue);
content.append('\n')... | public class class_name {
protected void combineContentItem(
String itemValue,
String itemKey,
StringBuffer content,
Map<String, String> contentItems) {
if (CmsStringUtil.isNotEmpty(itemValue)) {
contentItems.put(itemKey, itemValue); // depends on control dependency... |
public class class_name {
@Override
public void put(Key key, Value value) {
if (value == null) {
delete(key);
return;
}
root = put(root, key, value);
root.setParent(null);
root.setColor(BLACK);
} } | public class class_name {
@Override
public void put(Key key, Value value) {
if (value == null) {
delete(key); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
root = put(root, key, value);
root.setParent(null);
root.setColor(BLACK)... |
public class class_name {
@Override
public void close(RetryContext context) {
RetryContext[] contexts = ((CompositeRetryContext) context).contexts;
RetryPolicy[] policies = ((CompositeRetryContext) context).policies;
RuntimeException exception = null;
for (int i = 0; i < contexts.length; i++) {
try {
p... | public class class_name {
@Override
public void close(RetryContext context) {
RetryContext[] contexts = ((CompositeRetryContext) context).contexts;
RetryPolicy[] policies = ((CompositeRetryContext) context).policies;
RuntimeException exception = null;
for (int i = 0; i < contexts.length; i++) {
try {
p... |
public class class_name {
private void handleClusterEvent(ClusterMembershipEvent event) {
PrimaryTerm term = this.term;
if (term != null
&& event.type() == ClusterMembershipEvent.Type.MEMBER_REMOVED
&& event.subject().id().equals(term.primary().memberId())) {
changeState(PrimitiveState.SU... | public class class_name {
private void handleClusterEvent(ClusterMembershipEvent event) {
PrimaryTerm term = this.term;
if (term != null
&& event.type() == ClusterMembershipEvent.Type.MEMBER_REMOVED
&& event.subject().id().equals(term.primary().memberId())) {
changeState(PrimitiveState.SU... |
public class class_name {
@FFDCIgnore(BundleException.class)
public BundleLifecycleStatus preStartBundles(List<Bundle> installedBundles) {
BundleLifecycleStatus startStatus = new BundleLifecycleStatus();
if (installedBundles == null || installedBundles.size() == 0)
return startStatus;
... | public class class_name {
@FFDCIgnore(BundleException.class)
public BundleLifecycleStatus preStartBundles(List<Bundle> installedBundles) {
BundleLifecycleStatus startStatus = new BundleLifecycleStatus();
if (installedBundles == null || installedBundles.size() == 0)
return startStatus;
... |
public class class_name {
protected boolean isSwitchingToNonHttp1Protocol(HttpResponse msg) {
if (msg.status().code() != HttpResponseStatus.SWITCHING_PROTOCOLS.code()) {
return false;
}
String newProtocol = msg.headers().get(HttpHeaderNames.UPGRADE);
return newProtocol == nu... | public class class_name {
protected boolean isSwitchingToNonHttp1Protocol(HttpResponse msg) {
if (msg.status().code() != HttpResponseStatus.SWITCHING_PROTOCOLS.code()) {
return false; // depends on control dependency: [if], data = [none]
}
String newProtocol = msg.headers().get(Http... |
public class class_name {
private int findSingleHit(ArrayDouble.D2 boundsForRun, double target) {
int hits = 0;
int idxFound = -1;
int n = boundsForRun.getShape()[0];
for (int i = 0; i < n; i++) {
if (contains(target, boundsForRun.get(i,0), boundsForRun.get(i,1))) {
hits++;
... | public class class_name {
private int findSingleHit(ArrayDouble.D2 boundsForRun, double target) {
int hits = 0;
int idxFound = -1;
int n = boundsForRun.getShape()[0];
for (int i = 0; i < n; i++) {
if (contains(target, boundsForRun.get(i,0), boundsForRun.get(i,1))) {
hits++;
// depe... |
public class class_name {
@Override
public int predict(double[] x, double[] posteriori) {
if (x.length != p) {
throw new IllegalArgumentException(String.format("Invalid input vector size: %d", x.length));
}
if (posteriori != null && posteriori.length != k) {
throw n... | public class class_name {
@Override
public int predict(double[] x, double[] posteriori) {
if (x.length != p) {
throw new IllegalArgumentException(String.format("Invalid input vector size: %d", x.length));
}
if (posteriori != null && posteriori.length != k) {
throw n... |
public class class_name {
private void enumerative( EnumDeclarationDescrBuilder declare ) {
EnumLiteralDescrBuilder literal = null;
String lit = null;
try {
Token enumLit = match( input,
DRL5Lexer.ID,
null,
null,
... | public class class_name {
private void enumerative( EnumDeclarationDescrBuilder declare ) {
EnumLiteralDescrBuilder literal = null;
String lit = null;
try {
Token enumLit = match( input,
DRL5Lexer.ID,
null,
null,
... |
public class class_name {
private boolean includeInStartPosition(final int currentColumn, final int currentRow) {
if(startColumn >=0 && startRow >= 0
&& currentColumn == startColumn && currentRow == startRow) {
// 行と列の両方の指定がある場合
return true;
... | public class class_name {
private boolean includeInStartPosition(final int currentColumn, final int currentRow) {
if(startColumn >=0 && startRow >= 0
&& currentColumn == startColumn && currentRow == startRow) {
// 行と列の両方の指定がある場合
return true;
// depends on ... |
public class class_name {
public static byte[] getLMv2Response(String domain, String user,
String password, byte[] challenge, byte[] clientChallenge) {
try {
byte[] hash = new byte[16];
byte[] response = new byte[24];
// The next 2-1/2 lines of this should be placed wit... | public class class_name {
public static byte[] getLMv2Response(String domain, String user,
String password, byte[] challenge, byte[] clientChallenge) {
try {
byte[] hash = new byte[16];
byte[] response = new byte[24];
// The next 2-1/2 lines of this should be placed wit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.