code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private void ensureCapacity (int n) {
if (n <= 0) {
return;
}
int max;
if (data == null || data.length == 0) {
max = 25;
}
else if (data.length >= n * 5) {
return;
}
else {
max =... | public class class_name {
private void ensureCapacity (int n) {
if (n <= 0) {
return; // depends on control dependency: [if], data = [none]
}
int max;
if (data == null || data.length == 0) {
max = 25; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public BitcoinAuxPOW parseAuxPow(ByteBuffer rawByteBuffer) {
if (!this.readAuxPow) {
return null;
}
// in case it does not contain auxpow we need to reset
rawByteBuffer.mark();
int currentVersion=rawByteBuffer.getInt();
byte[] currentInCounterVarInt=BitcoinUtil.convertVarIntByteBuffer... | public class class_name {
public BitcoinAuxPOW parseAuxPow(ByteBuffer rawByteBuffer) {
if (!this.readAuxPow) {
return null; // depends on control dependency: [if], data = [none]
}
// in case it does not contain auxpow we need to reset
rawByteBuffer.mark();
int currentVersion=rawByteBuffer.getInt();
byte[] curr... |
public class class_name {
private static Type getAsynchronizedGenericType(Object targetObject) {
if (targetObject instanceof java.util.Collection) {
Class<? extends java.util.Collection> rawType = (Class<? extends Collection>) targetObject.getClass();
Class<?> actualType = Object.class;... | public class class_name {
private static Type getAsynchronizedGenericType(Object targetObject) {
if (targetObject instanceof java.util.Collection) {
Class<? extends java.util.Collection> rawType = (Class<? extends Collection>) targetObject.getClass();
Class<?> actualType = Object.class;... |
public class class_name {
private Response serveOneOrAll(Map<String, Model> modelsMap) {
// returns empty sets if !this.find_compatible_frames
Pair<Map<String, Frame>, Map<String, Set<String>>> frames_info = fetchFrames();
Map<String, Frame> all_frames = frames_info.getFirst();
Map<String, Set<String>>... | public class class_name {
private Response serveOneOrAll(Map<String, Model> modelsMap) {
// returns empty sets if !this.find_compatible_frames
Pair<Map<String, Frame>, Map<String, Set<String>>> frames_info = fetchFrames();
Map<String, Frame> all_frames = frames_info.getFirst();
Map<String, Set<String>>... |
public class class_name {
public static List<RepositoryConfigValidationResult> validateRepositoryPropertiesFile(Properties repoProperties) throws InstallException {
List<RepositoryConfigValidationResult> validationResults = new ArrayList<RepositoryConfigValidationResult>();
// Retrieves the Repository... | public class class_name {
public static List<RepositoryConfigValidationResult> validateRepositoryPropertiesFile(Properties repoProperties) throws InstallException {
List<RepositoryConfigValidationResult> validationResults = new ArrayList<RepositoryConfigValidationResult>();
// Retrieves the Repository... |
public class class_name {
public static byte[] rowKeyFromTSUID(final TSDB tsdb, final byte[] tsuid,
final long timestamp) {
if (tsuid.length < tsdb.metrics.width()) {
throw new IllegalArgumentException("TSUID appears to be missing the metric");
}
final long base_time;
if ((timestamp & Cons... | public class class_name {
public static byte[] rowKeyFromTSUID(final TSDB tsdb, final byte[] tsuid,
final long timestamp) {
if (tsuid.length < tsdb.metrics.width()) {
throw new IllegalArgumentException("TSUID appears to be missing the metric");
}
final long base_time;
if ((timestamp & Cons... |
public class class_name {
private GenericQueryRequest createN1qlRequest(final N1qlQuery query, String bucket, String username, String password,
InetAddress targetNode) {
String rawQuery = query.n1ql().toString();
rawQuery = rawQuery.replaceAll(
CouchbaseAsyncBucket.CURRENT_BUCKET_... | public class class_name {
private GenericQueryRequest createN1qlRequest(final N1qlQuery query, String bucket, String username, String password,
InetAddress targetNode) {
String rawQuery = query.n1ql().toString();
rawQuery = rawQuery.replaceAll(
CouchbaseAsyncBucket.CURRENT_BUCKET_... |
public class class_name {
@Override
public String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) {
StringBuilder buf = new StringBuilder();
synchronized (payloads) {
if (payloads.size() > 0) {
buf.append('<').append(getElementName());
... | public class class_name {
@Override
public String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) {
StringBuilder buf = new StringBuilder();
synchronized (payloads) {
if (payloads.size() > 0) {
buf.append('<').append(getElementName()); // depends ... |
public class class_name {
public TagLibraryInfo[] getTagLibraryInfos() {
TagLibraryInfo[] taglibs = null;
Collection c = pageInfo.getTaglibs();
if (c != null) {
Object[] objs = c.toArray();
if (objs != null && objs.length > 0) {
taglibs = new TagLibrary... | public class class_name {
public TagLibraryInfo[] getTagLibraryInfos() {
TagLibraryInfo[] taglibs = null;
Collection c = pageInfo.getTaglibs();
if (c != null) {
Object[] objs = c.toArray();
if (objs != null && objs.length > 0) {
taglibs = new TagLibrary... |
public class class_name {
public void marshall(DescribeTaskExecutionRequest describeTaskExecutionRequest, ProtocolMarshaller protocolMarshaller) {
if (describeTaskExecutionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DescribeTaskExecutionRequest describeTaskExecutionRequest, ProtocolMarshaller protocolMarshaller) {
if (describeTaskExecutionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static Node getNextSingleNode(final Node user,
RelationshipType relationshipType) {
// find an outgoing relation of the type specified
Relationship rel = null;
try {
rel = user.getSingleRelationship(relationshipType,
Direction.OUTGOING);
} catch (final NonWritableCha... | public class class_name {
public static Node getNextSingleNode(final Node user,
RelationshipType relationshipType) {
// find an outgoing relation of the type specified
Relationship rel = null;
try {
rel = user.getSingleRelationship(relationshipType,
Direction.OUTGOING); // depends on control dependenc... |
public class class_name {
public static RuntimeException handle(Throwable e) {
if (e instanceof CRestException) {
return handle((CRestException) e);
}else if (e instanceof RequestException) {
return handle((RequestException) e);
} else if (e instanceof IllegalArgume... | public class class_name {
public static RuntimeException handle(Throwable e) {
if (e instanceof CRestException) {
return handle((CRestException) e);
// depends on control dependency: [if], data = [none]
}else if (e instanceof RequestException) {
return handle((RequestExcepti... |
public class class_name {
@FFDCIgnore(Exception.class) //manually logged or is NoSuchElementException which we want to ignore
private void processInvalidListeners() {
final boolean trace = com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled();
String appName = getIStore().getId();
lo... | public class class_name {
@FFDCIgnore(Exception.class) //manually logged or is NoSuchElementException which we want to ignore
private void processInvalidListeners() {
final boolean trace = com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled();
String appName = getIStore().getId();
lo... |
public class class_name {
@SuppressWarnings("unchecked")
public static List<Statement> getStatements(MethodNode method) {
Statement code = method.getCode();
if (!(code instanceof BlockStatement)) { // null or single statement
BlockStatement block = new BlockStatement();
if (code != null) block.ad... | public class class_name {
@SuppressWarnings("unchecked")
public static List<Statement> getStatements(MethodNode method) {
Statement code = method.getCode();
if (!(code instanceof BlockStatement)) { // null or single statement
BlockStatement block = new BlockStatement();
if (code != null) block.ad... |
public class class_name {
private Item findPackageItem(String pkgName) {
if (packageToItemMap == null) {
return null;
}
return packageToItemMap.get(pkgName);
} } | public class class_name {
private Item findPackageItem(String pkgName) {
if (packageToItemMap == null) {
return null; // depends on control dependency: [if], data = [none]
}
return packageToItemMap.get(pkgName);
} } |
public class class_name {
public static int regexFlags(final String s) {
int flags = 0;
if (s == null) {
return flags;
}
for (final char f : s.toLowerCase().toCharArray()) {
flags |= regexFlag(f);
}
return flags;
} } | public class class_name {
public static int regexFlags(final String s) {
int flags = 0;
if (s == null) {
return flags; // depends on control dependency: [if], data = [none]
}
for (final char f : s.toLowerCase().toCharArray()) {
flags |= regexFlag(f); // depends... |
public class class_name {
private static String processStringWithRegex(String text, Pattern pattern, int startIndex, boolean recurseEmojify) {
//System.out.println(text);
Matcher matcher = pattern.matcher(text);
StringBuffer sb = new StringBuffer();
int resetIndex = 0;
if(startIndex > 0) {
matcher.regi... | public class class_name {
private static String processStringWithRegex(String text, Pattern pattern, int startIndex, boolean recurseEmojify) {
//System.out.println(text);
Matcher matcher = pattern.matcher(text);
StringBuffer sb = new StringBuffer();
int resetIndex = 0;
if(startIndex > 0) {
matcher.regi... |
public class class_name {
@ObjectiveCName("failure:")
public synchronized Promise<T> failure(final Consumer<Exception> failure) {
if (isFinished) {
if (exception != null) {
dispatcher.dispatch(() -> failure.apply(exception));
}
} else {
callbacks... | public class class_name {
@ObjectiveCName("failure:")
public synchronized Promise<T> failure(final Consumer<Exception> failure) {
if (isFinished) {
if (exception != null) {
dispatcher.dispatch(() -> failure.apply(exception)); // depends on control dependency: [if], data = [(exce... |
public class class_name {
@Override
public void disconnect()
{
network.disconnect();
for (final L listener : listeners)
{
network.removeListener(listener);
}
listeners.clear();
} } | public class class_name {
@Override
public void disconnect()
{
network.disconnect();
for (final L listener : listeners)
{
network.removeListener(listener);
// depends on control dependency: [for], data = [listener]
}
listeners.clear();
} } |
public class class_name {
private double handleCase1() {
double stpc = SearchInterpolate.cubic2(fx, gx, stx, fp, gp, stp);
double stpq = SearchInterpolate.quadratic(fx,gx,stx,fp,stp);
// If the cubic step is closer to stx than the quadratic step take that
bracket = true;
if( Math.abs(stpc-stx) < Math.abs(s... | public class class_name {
private double handleCase1() {
double stpc = SearchInterpolate.cubic2(fx, gx, stx, fp, gp, stp);
double stpq = SearchInterpolate.quadratic(fx,gx,stx,fp,stp);
// If the cubic step is closer to stx than the quadratic step take that
bracket = true;
if( Math.abs(stpc-stx) < Math.abs(s... |
public class class_name {
public ByteBuffer readRawBlock() throws IOException, EthereumBlockReadException {
// basically an Ethereum Block is simply a RLP encoded list
ByteBuffer result=null;
// get size of list
this.in.mark(10);
byte[] listHeader = new byte[10];
int totalRead = 0;
int bRead=this.in.read... | public class class_name {
public ByteBuffer readRawBlock() throws IOException, EthereumBlockReadException {
// basically an Ethereum Block is simply a RLP encoded list
ByteBuffer result=null;
// get size of list
this.in.mark(10);
byte[] listHeader = new byte[10];
int totalRead = 0;
int bRead=this.in.read... |
public class class_name {
public void startExtension(Map<String, String> attributes) throws IOException {
startChangesIfNecessary();
ResponseWriter writer = getWrapped();
writer.startElement("extension", null);
if (attributes != null && !attributes.isEmpty()) {
for (Map.Entr... | public class class_name {
public void startExtension(Map<String, String> attributes) throws IOException {
startChangesIfNecessary();
ResponseWriter writer = getWrapped();
writer.startElement("extension", null);
if (attributes != null && !attributes.isEmpty()) {
for (Map.Entr... |
public class class_name {
private void init() throws CmsException {
// first get all installed plugins
// plugins are subfolders of the "/plugin/" folder with a template
// property holdding the name of the plugin class
List resources = m_cms.readResourcesWithProperty(VFS_PATH_PLUGIN_F... | public class class_name {
private void init() throws CmsException {
// first get all installed plugins
// plugins are subfolders of the "/plugin/" folder with a template
// property holdding the name of the plugin class
List resources = m_cms.readResourcesWithProperty(VFS_PATH_PLUGIN_F... |
public class class_name {
protected void addNeighborToOrdering(TrustGraphNodeId neighbor) {
int position = rng.nextInt(orderedNeighbors.size()+1);
if (position == orderedNeighbors.size()) {
orderedNeighbors.add(neighbor);
}
else {
orderedNeighbors.add(p... | public class class_name {
protected void addNeighborToOrdering(TrustGraphNodeId neighbor) {
int position = rng.nextInt(orderedNeighbors.size()+1);
if (position == orderedNeighbors.size()) {
orderedNeighbors.add(neighbor); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void expectMin(String name, double minLength, String message) {
String value = Optional.ofNullable(get(name)).orElse("");
if (StringUtils.isNumeric(value)) {
if (Double.parseDouble(value) < minLength) {
addError(name, Optional.ofNullable(mes... | public class class_name {
public void expectMin(String name, double minLength, String message) {
String value = Optional.ofNullable(get(name)).orElse("");
if (StringUtils.isNumeric(value)) {
if (Double.parseDouble(value) < minLength) {
addError(name, Optional.ofNullable(mes... |
public class class_name {
public static boolean containsIgnoreCase(final String string, final String[] strings) {
if (null == strings) {
return false;
}
return Arrays.stream(strings).anyMatch(str -> StringUtils.equalsIgnoreCase(string, str));
} } | public class class_name {
public static boolean containsIgnoreCase(final String string, final String[] strings) {
if (null == strings) {
return false; // depends on control dependency: [if], data = [none]
}
return Arrays.stream(strings).anyMatch(str -> StringUtils.equalsIgnoreCase(... |
public class class_name {
private static int chunkSize(final InputStream stream)
throws IOException {
final ByteArrayOutputStream baos = ChunkedInputStream.sizeLine(stream);
final int result;
final String data = baos.toString(Charset.defaultCharset().name());
final int separator... | public class class_name {
private static int chunkSize(final InputStream stream)
throws IOException {
final ByteArrayOutputStream baos = ChunkedInputStream.sizeLine(stream);
final int result;
final String data = baos.toString(Charset.defaultCharset().name());
final int separator... |
public class class_name {
@Override
public Response replaceApplicationBindings( String applicationName, String externalExportPrefix, List<String> boundApps ) {
if( this.logger.isLoggable( Level.FINE )) {
StringBuilder sb = new StringBuilder();
sb.append( "Replacing the bindings for the " );
sb.append( ext... | public class class_name {
@Override
public Response replaceApplicationBindings( String applicationName, String externalExportPrefix, List<String> boundApps ) {
if( this.logger.isLoggable( Level.FINE )) {
StringBuilder sb = new StringBuilder();
sb.append( "Replacing the bindings for the " ); // depends on con... |
public class class_name {
private int afterHookInsertLine(TestMethod method, int codeLineIndex) {
// if multiple statements exist in one line, afterHook is inserted only after the last statement,
// since when multi-line statements are like:
// method(1);method(
// 2);
/... | public class class_name {
private int afterHookInsertLine(TestMethod method, int codeLineIndex) {
// if multiple statements exist in one line, afterHook is inserted only after the last statement,
// since when multi-line statements are like:
// method(1);method(
// 2);
/... |
public class class_name {
public static Properties parseJSON(String json) {
try {
return utilsImpl.parseJSON(json);
} catch (Exception e) {
if (!GWT.isProdMode()) {
System.err.println("Error while parsing json: " + e.getMessage() + ".\n" + json);
}
return Properties.create();
... | public class class_name {
public static Properties parseJSON(String json) {
try {
return utilsImpl.parseJSON(json); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
if (!GWT.isProdMode()) {
System.err.println("Error while parsing json: " + e.getMessage() + ".\n... |
public class class_name {
final public void add(long curTime, long val) {
if (!enabled)
return;
lastSampleTime = curTime;
if (!sync) {
if (val > max)
max = val;
if (count > 0) {
if (val < min)
min = val;
... | public class class_name {
final public void add(long curTime, long val) {
if (!enabled)
return;
lastSampleTime = curTime;
if (!sync) {
if (val > max)
max = val;
if (count > 0) {
if (val < min)
min = val;
... |
public class class_name {
public SemanticType extractFieldType(SemanticType.Record type, Identifier field) {
if (type == null) {
return null;
} else {
SemanticType fieldType = type.getField(field);
if (fieldType == null) {
// Indicates an invalid field selection
syntaxError(field, INVALID_FIELD);
... | public class class_name {
public SemanticType extractFieldType(SemanticType.Record type, Identifier field) {
if (type == null) {
return null; // depends on control dependency: [if], data = [none]
} else {
SemanticType fieldType = type.getField(field);
if (fieldType == null) {
// Indicates an invalid f... |
public class class_name {
public void interpret( Specification specification )
{
Statistics stats = new Statistics();
skipFirstRowOfNextTable();
while (specification.hasMoreExamples() && canContinue( stats ))
{
Example next = specification.nextExample();
if (in... | public class class_name {
public void interpret( Specification specification )
{
Statistics stats = new Statistics();
skipFirstRowOfNextTable();
while (specification.hasMoreExamples() && canContinue( stats ))
{
Example next = specification.nextExample();
if (in... |
public class class_name {
public ListConferenceProvidersResult withConferenceProviders(ConferenceProvider... conferenceProviders) {
if (this.conferenceProviders == null) {
setConferenceProviders(new java.util.ArrayList<ConferenceProvider>(conferenceProviders.length));
}
for (Confere... | public class class_name {
public ListConferenceProvidersResult withConferenceProviders(ConferenceProvider... conferenceProviders) {
if (this.conferenceProviders == null) {
setConferenceProviders(new java.util.ArrayList<ConferenceProvider>(conferenceProviders.length)); // depends on control dependen... |
public class class_name {
public static X500Principal getIssuerX500Principal(X509CRL crl) {
try {
byte[] encoded = crl.getEncoded();
DerInputStream derIn = new DerInputStream(encoded);
DerValue tbsCert = derIn.getSequence(3)[0];
DerInputStream tbsIn = tbsCert.dat... | public class class_name {
public static X500Principal getIssuerX500Principal(X509CRL crl) {
try {
byte[] encoded = crl.getEncoded();
DerInputStream derIn = new DerInputStream(encoded);
DerValue tbsCert = derIn.getSequence(3)[0];
DerInputStream tbsIn = tbsCert.dat... |
public class class_name {
public boolean call(Context context, String dataName, Bundle data) {
boolean useLocalBroadcast = BeaconManager.getInstanceForApplication(context).isMainProcess();
boolean success = false;
if(useLocalBroadcast) {
String action = null;
if (dataNa... | public class class_name {
public boolean call(Context context, String dataName, Bundle data) {
boolean useLocalBroadcast = BeaconManager.getInstanceForApplication(context).isMainProcess();
boolean success = false;
if(useLocalBroadcast) {
String action = null;
if (dataNa... |
public class class_name {
@Override
public void decryptBlock(byte[] data, int offset, byte[] dest, int destOffset) {
// w128_t x;
// x.q[0] = ((uint64_t *) blk)[0] ^ key->k[9].q[0];
// x.q[1] = ((uint64_t *) blk)[1] ^ key->k[9].q[1];
Kuz128 x = new Kuz128();
x.setQ(0, ByteSt... | public class class_name {
@Override
public void decryptBlock(byte[] data, int offset, byte[] dest, int destOffset) {
// w128_t x;
// x.q[0] = ((uint64_t *) blk)[0] ^ key->k[9].q[0];
// x.q[1] = ((uint64_t *) blk)[1] ^ key->k[9].q[1];
Kuz128 x = new Kuz128();
x.setQ(0, ByteSt... |
public class class_name {
private List<SemanticError> check(DataType dataType, Constructor constructor) {
logger.finer("Checking semantic constraints on data type " + dataType.name + ", constructor " + constructor.name);
final List<SemanticError> errors = new ArrayList<SemanticError>();
... | public class class_name {
private List<SemanticError> check(DataType dataType, Constructor constructor) {
logger.finer("Checking semantic constraints on data type " + dataType.name + ", constructor " + constructor.name);
final List<SemanticError> errors = new ArrayList<SemanticError>();
... |
public class class_name {
public Destination withToAddresses(String... toAddresses) {
if (this.toAddresses == null) {
setToAddresses(new java.util.ArrayList<String>(toAddresses.length));
}
for (String ele : toAddresses) {
this.toAddresses.add(ele);
}
retu... | public class class_name {
public Destination withToAddresses(String... toAddresses) {
if (this.toAddresses == null) {
setToAddresses(new java.util.ArrayList<String>(toAddresses.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : toAddresses) {
... |
public class class_name {
private boolean isSoilAnalysisExist(ArrayList<HashMap> icSubArr) {
for (HashMap icSubData : icSubArr) {
if (!getValueOr(icSubData, "slsc", "").equals("")) {
return true;
}
}
return false;
} } | public class class_name {
private boolean isSoilAnalysisExist(ArrayList<HashMap> icSubArr) {
for (HashMap icSubData : icSubArr) {
if (!getValueOr(icSubData, "slsc", "").equals("")) {
return true; // depends on control dependency: [if], data = [none]
}
}
... |
public class class_name {
private void parseLiteral() {
AtomicValue atomic;
if (mToken.getType() == TokenType.VALUE || mToken.getType() == TokenType.POINT) {
// is numeric literal
atomic = parseIntegerLiteral();
} else {
// is string literal
ass... | public class class_name {
private void parseLiteral() {
AtomicValue atomic;
if (mToken.getType() == TokenType.VALUE || mToken.getType() == TokenType.POINT) {
// is numeric literal
atomic = parseIntegerLiteral(); // depends on control dependency: [if], data = [none]
} e... |
public class class_name {
@Override
protected Variable[] createVariablesSub(int num) {
int[] tp = tpCreate(num);
Variable[] ret = new Variable[num];
for (int i = 0; i < tp.length; i++) {
ret[i] = tPoints[tp[i]];
}
return ret;
} } | public class class_name {
@Override
protected Variable[] createVariablesSub(int num) {
int[] tp = tpCreate(num);
Variable[] ret = new Variable[num];
for (int i = 0; i < tp.length; i++) {
ret[i] = tPoints[tp[i]];
// depends on control dependency: [for], data = [i]
}
return ret;
} } |
public class class_name {
synchronized TypeSerializerFactory factory(Class<?> type) {
TypeSerializerFactory factory = factories.get(type);
if (factory != null) {
return factory;
}
Class<?> baseType;
// If no factory was found, determine if an abstract serializer can be used.
baseType = ... | public class class_name {
synchronized TypeSerializerFactory factory(Class<?> type) {
TypeSerializerFactory factory = factories.get(type);
if (factory != null) {
return factory; // depends on control dependency: [if], data = [none]
}
Class<?> baseType;
// If no factory was found, determine ... |
public class class_name {
public static ParsedExpression parse(String expression) {
ParsedExpression pe = (ParsedExpression)PARSED_CACHE.get(expression);
if(pe != null)
return pe;
try {
NetUIELParser learn = new NetUIELParser(new StringReader(expression));
... | public class class_name {
public static ParsedExpression parse(String expression) {
ParsedExpression pe = (ParsedExpression)PARSED_CACHE.get(expression);
if(pe != null)
return pe;
try {
NetUIELParser learn = new NetUIELParser(new StringReader(expression));
... |
public class class_name {
public boolean update(String tableName, String primaryKey, Record record) {
Connection conn = null;
try {
conn = config.getConnection();
return update(config, conn, tableName, primaryKey, record);
} catch (Exception e) {
throw new ActiveRecordException(e);
} finally {
... | public class class_name {
public boolean update(String tableName, String primaryKey, Record record) {
Connection conn = null;
try {
conn = config.getConnection();
// depends on control dependency: [try], data = [none]
return update(config, conn, tableName, primaryKey, record);
// depends on control depe... |
public class class_name {
public Option options(Option... values) {
if (values == null || values.length == 0) {
return this;
}
this.options().addAll(Arrays.asList(values));
return this;
} } | public class class_name {
public Option options(Option... values) {
if (values == null || values.length == 0) {
return this; // depends on control dependency: [if], data = [none]
}
this.options().addAll(Arrays.asList(values));
return this;
} } |
public class class_name {
static <T> FluentCloseableIterable<T> wrap(final Iterable<T> iterable, final AutoCloseable closeable) {
return new FluentCloseableIterable<T>() {
@Override
protected void doClose() {
try {
closeable.close();
}... | public class class_name {
static <T> FluentCloseableIterable<T> wrap(final Iterable<T> iterable, final AutoCloseable closeable) {
return new FluentCloseableIterable<T>() {
@Override
protected void doClose() {
try {
closeable.close(); // depends on con... |
public class class_name {
@Override
final public void run() {
while(true) {
try {
try {
sleep(delayTime);
} catch(InterruptedException err) {
logger.log(Level.WARNING, null, err);
}
long time = System.currentTimeMillis();
List<C> connsToClose;
synchronized(poolLock) {
if(is... | public class class_name {
@Override
final public void run() {
while(true) {
try {
try {
sleep(delayTime); // depends on control dependency: [try], data = [none]
} catch(InterruptedException err) {
logger.log(Level.WARNING, null, err);
} // depends on control dependency: [catch], data = [non... |
public class class_name {
private int binarySearchNonUnique(int fromIndex, int toIndex, long key1, long key2) {
int low = fromIndex;
int high = toIndex - 1;
while (low <= high) {
int mid = (low + high) >>> 1;
long midVal1 = keys[mid];
long midVal2 = values[mid];
if (midVal1 < key1) {
... | public class class_name {
private int binarySearchNonUnique(int fromIndex, int toIndex, long key1, long key2) {
int low = fromIndex;
int high = toIndex - 1;
while (low <= high) {
int mid = (low + high) >>> 1;
long midVal1 = keys[mid];
long midVal2 = values[mid];
if (midVal1 < key1) {
... |
public class class_name {
protected void printStackTrace(final PrintWriter printWriter, final Throwable throwable) {
throwable.printStackTrace(printWriter);
Throwable cause = throwable.getCause();
while (cause != null) {
if (cause instanceof SQLException) {
final SQL... | public class class_name {
protected void printStackTrace(final PrintWriter printWriter, final Throwable throwable) {
throwable.printStackTrace(printWriter);
Throwable cause = throwable.getCause();
while (cause != null) {
if (cause instanceof SQLException) {
final SQL... |
public class class_name {
protected MigrationReport convert(org.jbpm.runtime.manager.impl.migration.MigrationReport report) {
List<MigrationEntry> logs = new ArrayList<MigrationEntry>();
for (org.jbpm.runtime.manager.impl.migration.MigrationEntry orig : report.getEntries()) {
logs.... | public class class_name {
protected MigrationReport convert(org.jbpm.runtime.manager.impl.migration.MigrationReport report) {
List<MigrationEntry> logs = new ArrayList<MigrationEntry>();
for (org.jbpm.runtime.manager.impl.migration.MigrationEntry orig : report.getEntries()) {
logs.... |
public class class_name {
public void marshall(ListSigningPlatformsRequest listSigningPlatformsRequest, ProtocolMarshaller protocolMarshaller) {
if (listSigningPlatformsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(ListSigningPlatformsRequest listSigningPlatformsRequest, ProtocolMarshaller protocolMarshaller) {
if (listSigningPlatformsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
private String getPart(int pos) {
String value = this.getValue();
if (value == null) {
return null;
}
String[] parts = value.split("/");
return parts.length >= pos + 1 ? parts[pos] : null;
} } | public class class_name {
private String getPart(int pos) {
String value = this.getValue();
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
}
String[] parts = value.split("/");
return parts.length >= pos + 1 ? parts[pos] : null;
} } |
public class class_name {
@Override
public CPAttachmentFileEntry fetchByC_C_LtD_S_First(long classNameId,
long classPK, Date displayDate, int status,
OrderByComparator<CPAttachmentFileEntry> orderByComparator) {
List<CPAttachmentFileEntry> list = findByC_C_LtD_S(classNameId,
classPK, displayDate, status, 0,... | public class class_name {
@Override
public CPAttachmentFileEntry fetchByC_C_LtD_S_First(long classNameId,
long classPK, Date displayDate, int status,
OrderByComparator<CPAttachmentFileEntry> orderByComparator) {
List<CPAttachmentFileEntry> list = findByC_C_LtD_S(classNameId,
classPK, displayDate, status, 0,... |
public class class_name {
private static String delimit(String s, char c) {
int i = s.indexOf(c);
while (i != -1) {
if (i == 0 || s.charAt(i - 1) != '\\') {
s = s.substring(0, i) + '\\' + s.substring(i);
i = s.indexOf(c, i + 2);
} else {
i = s.indexOf(c, i + 1);
... | public class class_name {
private static String delimit(String s, char c) {
int i = s.indexOf(c);
while (i != -1) {
if (i == 0 || s.charAt(i - 1) != '\\') {
s = s.substring(0, i) + '\\' + s.substring(i);
// depends on control dependency: [if], data = [(i]
i = s.indexOf(c, i + 2);
//... |
public class class_name {
private static Double eaDistance(double[] series, int a, int b, Integer motifSize, double range,
double znormThreshold) {
distCounter++;
double cutOff2 = range * range;
double[] seriesA = tp.znorm(tp.subseriesByCopy(series, a, a + motifSize), znormThreshold);
double[]... | public class class_name {
private static Double eaDistance(double[] series, int a, int b, Integer motifSize, double range,
double znormThreshold) {
distCounter++;
double cutOff2 = range * range;
double[] seriesA = tp.znorm(tp.subseriesByCopy(series, a, a + motifSize), znormThreshold);
double[]... |
public class class_name {
static <T> Single<T> wrap(
SingleSource<T> source, Collection<ReactiveInstrumenter> instrumentations) {
if (source instanceof Callable) {
return new RxInstrumentedCallableSingle<>(source, instrumentations);
}
return new RxInstrumentedSingle<>(so... | public class class_name {
static <T> Single<T> wrap(
SingleSource<T> source, Collection<ReactiveInstrumenter> instrumentations) {
if (source instanceof Callable) {
return new RxInstrumentedCallableSingle<>(source, instrumentations); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private ItemStack handleDoubleClick(MalisisInventory inventory, MalisisSlot slot, boolean shiftClick)
{
if (!inventory.state.is(PLAYER_EXTRACT))
return ItemStack.EMPTY;
// normal double click, go through all hovered slot inventory to merge the slots with the currently picked one
if... | public class class_name {
private ItemStack handleDoubleClick(MalisisInventory inventory, MalisisSlot slot, boolean shiftClick)
{
if (!inventory.state.is(PLAYER_EXTRACT))
return ItemStack.EMPTY;
// normal double click, go through all hovered slot inventory to merge the slots with the currently picked one
if... |
public class class_name {
public ISynchronizationPoint<IOException> write(char c) {
if (!(stream instanceof ICharacterStream.Writable.Buffered))
return write(new char[] { c }, 0, 1);
ISynchronizationPoint<IOException> last = lastWrite;
if (last.isUnblocked()) {
lastWrite = ((ICharacterStream.Writable.... | public class class_name {
public ISynchronizationPoint<IOException> write(char c) {
if (!(stream instanceof ICharacterStream.Writable.Buffered))
return write(new char[] { c }, 0, 1);
ISynchronizationPoint<IOException> last = lastWrite;
if (last.isUnblocked()) {
lastWrite = ((ICharacterStream.Writable.... |
public class class_name {
public boolean sameAs(Frame<ValueType> other) {
if (isTop != other.isTop) {
return false;
}
if (isTop && other.isTop) {
return true;
}
if (isBottom != other.isBottom) {
return false;
}
if (isBottom ... | public class class_name {
public boolean sameAs(Frame<ValueType> other) {
if (isTop != other.isTop) {
return false; // depends on control dependency: [if], data = [none]
}
if (isTop && other.isTop) {
return true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static URL removeTrailingSlash(URL url) {
String file = url.getFile();
if (file.endsWith("/")) { //$NON-NLS-1$
file = file.substring(0, file.length() - 1);
try {
return new URL(url.getProtocol(), url.getHost(), url.getPort(), fil... | public class class_name {
public static URL removeTrailingSlash(URL url) {
String file = url.getFile();
if (file.endsWith("/")) { //$NON-NLS-1$
file = file.substring(0, file.length() - 1); // depends on control dependency: [if], data = [none]
try {
return new UR... |
public class class_name {
private int prepare(IAtom atom, IBond prev) {
int count = 0;
amap[atom.getIndex()] = 1;
for (IBond bond : atom.bonds()) {
if (bond == prev)
continue;
IAtom nbr = bond.getOther(atom);
if (amap[nbr.getIndex()] == 0) {
... | public class class_name {
private int prepare(IAtom atom, IBond prev) {
int count = 0;
amap[atom.getIndex()] = 1;
for (IBond bond : atom.bonds()) {
if (bond == prev)
continue;
IAtom nbr = bond.getOther(atom);
if (amap[nbr.getIndex()] == 0) {
... |
public class class_name {
void dedup(final Map<String, char[]> table) {
String l = getLabel();
char[] v = table.get(l);
if (v != null) {
label = v;
}
else {
table.put(l, label);
}
} } | public class class_name {
void dedup(final Map<String, char[]> table) {
String l = getLabel();
char[] v = table.get(l);
if (v != null) {
label = v; // depends on control dependency: [if], data = [none]
}
else {
table.put(l, label); // depends on control d... |
public class class_name {
protected void updateListeners()
{
TextGridEvent event = new TextGridEvent(this);
for (TextGridListener listener : listeners)
{
listener.changedUpdate(event);
}
} } | public class class_name {
protected void updateListeners()
{
TextGridEvent event = new TextGridEvent(this);
for (TextGridListener listener : listeners)
{
listener.changedUpdate(event); // depends on control dependency: [for], data = [listener]
}
} } |
public class class_name {
public Audio getAIF(String ref, InputStream in) throws IOException {
in = new BufferedInputStream(in);
if (!soundWorks) {
return new NullAudio();
}
if (!inited) {
throw new RuntimeException("Can't load sounds until SoundStore is init(). Use the container init() method.")... | public class class_name {
public Audio getAIF(String ref, InputStream in) throws IOException {
in = new BufferedInputStream(in);
if (!soundWorks) {
return new NullAudio();
}
if (!inited) {
throw new RuntimeException("Can't load sounds until SoundStore is init(). Use the container init() method.")... |
public class class_name {
static MetaBean lookup(Class<?> cls) {
MetaBean meta = META_BEANS.get(cls);
if (meta == null) {
return metaBeanLookup(cls);
}
return meta;
} } | public class class_name {
static MetaBean lookup(Class<?> cls) {
MetaBean meta = META_BEANS.get(cls);
if (meta == null) {
return metaBeanLookup(cls); // depends on control dependency: [if], data = [none]
}
return meta;
} } |
public class class_name {
@Override
public void generateSerializeOnXml(BindTypeContext context, MethodSpec.Builder methodBuilder, String serializerName, TypeName beanClass, String beanName, BindProperty property) {
// define key and value type
ParameterizedTypeName mapTypeName=(ParameterizedTypeName) property.get... | public class class_name {
@Override
public void generateSerializeOnXml(BindTypeContext context, MethodSpec.Builder methodBuilder, String serializerName, TypeName beanClass, String beanName, BindProperty property) {
// define key and value type
ParameterizedTypeName mapTypeName=(ParameterizedTypeName) property.get... |
public class class_name {
RangeSet getConditions()
{
RangeSet is = new RangeSet();
for (CharRange ic : transitions.keySet())
{
if (ic != null)
{
is.add(ic);
}
}
return is;
} } | public class class_name {
RangeSet getConditions()
{
RangeSet is = new RangeSet();
for (CharRange ic : transitions.keySet())
{
if (ic != null)
{
is.add(ic);
// depends on control dependency: [if], data = [(ic]
}
}
... |
public class class_name {
public List<Meta> userMetadata(final long userId, final String key) throws SQLException {
Connection conn = null;
PreparedStatement stmt = null;
ResultSet rs = null;
List<Meta> meta = Lists.newArrayListWithExpectedSize(16);
Timer.Context ctx = metrics.userMetadat... | public class class_name {
public List<Meta> userMetadata(final long userId, final String key) throws SQLException {
Connection conn = null;
PreparedStatement stmt = null;
ResultSet rs = null;
List<Meta> meta = Lists.newArrayListWithExpectedSize(16);
Timer.Context ctx = metrics.userMetadat... |
public class class_name {
static String buildInstructionString(RouteProgress routeProgress, Milestone milestone) {
if (milestone.getInstruction() != null) {
// Create a new custom instruction based on the Instruction packaged with the Milestone
return milestone.getInstruction().buildInstruction(routePr... | public class class_name {
static String buildInstructionString(RouteProgress routeProgress, Milestone milestone) {
if (milestone.getInstruction() != null) {
// Create a new custom instruction based on the Instruction packaged with the Milestone
return milestone.getInstruction().buildInstruction(routePr... |
public class class_name {
public static void addMarkerAsPolyline(Marker marker, List<Marker> markers) {
GeoPoint position = marker.getPosition();
int insertLocation = markers.size();
if (markers.size() > 1) {
double[] distances = new double[markers.size()];
insertLocatio... | public class class_name {
public static void addMarkerAsPolyline(Marker marker, List<Marker> markers) {
GeoPoint position = marker.getPosition();
int insertLocation = markers.size();
if (markers.size() > 1) {
double[] distances = new double[markers.size()];
insertLocatio... |
public class class_name {
public String getHrefResolved(final String relativeUri) {
if (Atom10Parser.isAbsoluteURI(relativeUri)) {
return relativeUri;
} else if (baseURI != null && collectionElement != null) {
final int lastslash = baseURI.lastIndexOf("/");
return At... | public class class_name {
public String getHrefResolved(final String relativeUri) {
if (Atom10Parser.isAbsoluteURI(relativeUri)) {
return relativeUri; // depends on control dependency: [if], data = [none]
} else if (baseURI != null && collectionElement != null) {
final int lasts... |
public class class_name {
protected DecisionRequirementsDefinitionEntity loadDecisionRequirementsDefinition(String decisionRequirementsDefinitionId) {
ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();
DeploymentCache deploymentCache = configuration.getDeploymentCache();
... | public class class_name {
protected DecisionRequirementsDefinitionEntity loadDecisionRequirementsDefinition(String decisionRequirementsDefinitionId) {
ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();
DeploymentCache deploymentCache = configuration.getDeploymentCache();
... |
public class class_name {
private CmsResource importResource(
String source,
String destination,
String type,
String uuidresource,
long datelastmodified,
String userlastmodified,
long datecreated,
String usercreated,
String flags,
List<Cms... | public class class_name {
private CmsResource importResource(
String source,
String destination,
String type,
String uuidresource,
long datelastmodified,
String userlastmodified,
long datecreated,
String usercreated,
String flags,
List<Cms... |
public class class_name {
public static long parseBytes(String input, ConfigOrigin originForException,
String pathForException) {
String s = ConfigImplUtil.unicodeTrim(input);
String unitString = getUnits(s);
String numberString = ConfigImplUtil.unicodeTrim(s.substring(0,
... | public class class_name {
public static long parseBytes(String input, ConfigOrigin originForException,
String pathForException) {
String s = ConfigImplUtil.unicodeTrim(input);
String unitString = getUnits(s);
String numberString = ConfigImplUtil.unicodeTrim(s.substring(0,
... |
public class class_name {
public V remove(Object key) {
if (key == null) {
return null;
}
purgeBeforeWrite();
return super.remove(key);
} } | public class class_name {
public V remove(Object key) {
if (key == null) {
return null; // depends on control dependency: [if], data = [none]
}
purgeBeforeWrite();
return super.remove(key);
} } |
public class class_name {
public static void toJson(Writer writer, Object obj, JsonFormat format) {
try {
if (format == null)
format = deft;
JsonRender jr;
Class<? extends JsonRender> jrCls = getJsonRenderCls();
if (jrCls == null)
... | public class class_name {
public static void toJson(Writer writer, Object obj, JsonFormat format) {
try {
if (format == null)
format = deft;
JsonRender jr;
Class<? extends JsonRender> jrCls = getJsonRenderCls();
if (jrCls == null)
... |
public class class_name {
public void close() {
Collection<WriterPoolMember> writers = drainAllWriters();
for (WriterPoolMember writer: writers) {
try {
destroyWriter(writer);
} catch (IOException e) {
logger.log(Level.WARNING,"problem closing wri... | public class class_name {
public void close() {
Collection<WriterPoolMember> writers = drainAllWriters();
for (WriterPoolMember writer: writers) {
try {
destroyWriter(writer); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
... |
public class class_name {
public boolean isFinal(Path path) {
// Step through the nodes based on the given path. If any intermediate
// nodes are marked as final, we can just return true.
Node currentNode = root;
for (Term t : path.getTerms()) {
Node nextNode = currentNode.getChild(t);
if (nextNode == n... | public class class_name {
public boolean isFinal(Path path) {
// Step through the nodes based on the given path. If any intermediate
// nodes are marked as final, we can just return true.
Node currentNode = root;
for (Term t : path.getTerms()) {
Node nextNode = currentNode.getChild(t);
if (nextNode == n... |
public class class_name {
NodeInfo selectSeedCorner() {
NodeInfo best = null;
double bestScore = 0;
double minAngle = Math.PI+0.1;
for (int i = 0; i < contour.size; i++) {
NodeInfo info = contour.get(i);
if( info.angleBetween < minAngle )
continue;
Edge middleR = selectClosest(info.right,info,t... | public class class_name {
NodeInfo selectSeedCorner() {
NodeInfo best = null;
double bestScore = 0;
double minAngle = Math.PI+0.1;
for (int i = 0; i < contour.size; i++) {
NodeInfo info = contour.get(i);
if( info.angleBetween < minAngle )
continue;
Edge middleR = selectClosest(info.right,info,t... |
public class class_name {
protected boolean validateSARLSpecificElements(IJavaProject javaProject) {
// Check if the "SARL" generation directory is a source folder.
final IPath outputPath = SARLPreferences.getSARLOutputPathFor(javaProject.getProject());
if (outputPath == null) {
final String message = Messag... | public class class_name {
protected boolean validateSARLSpecificElements(IJavaProject javaProject) {
// Check if the "SARL" generation directory is a source folder.
final IPath outputPath = SARLPreferences.getSARLOutputPathFor(javaProject.getProject());
if (outputPath == null) {
final String message = Messag... |
public class class_name {
@SuppressWarnings("checkstyle:cyclomaticcomplexity")
void updateSizes(int fieldLength, int decimalPointPosition) {
switch (this.type) {
case STRING:
if (fieldLength > this.length) {
this.length = fieldLength;
}
break;
case FLOATING_NUMBER:
case NUMBER:
if (decimalPoin... | public class class_name {
@SuppressWarnings("checkstyle:cyclomaticcomplexity")
void updateSizes(int fieldLength, int decimalPointPosition) {
switch (this.type) {
case STRING:
if (fieldLength > this.length) {
this.length = fieldLength; // depends on control dependency: [if], data = [none]
}
break;
c... |
public class class_name {
@Override
public EClass getIfcZShapeProfileDef() {
if (ifcZShapeProfileDefEClass == null) {
ifcZShapeProfileDefEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(775);
}
return ifcZShapeProfileDefEClass;
} } | public class class_name {
@Override
public EClass getIfcZShapeProfileDef() {
if (ifcZShapeProfileDefEClass == null) {
ifcZShapeProfileDefEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(775);
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected Icon getSizingIcon(AbstractButton b) {
// NOTE: this is slightly different than BasicButtonUI, where it
// would just use getIcon, but this should be ok.
Icon icon = (b.isEnabled() || b.getDisabledIcon() == null) ? b.getIcon() : b.getDisabledIcon();
... | public class class_name {
protected Icon getSizingIcon(AbstractButton b) {
// NOTE: this is slightly different than BasicButtonUI, where it
// would just use getIcon, but this should be ok.
Icon icon = (b.isEnabled() || b.getDisabledIcon() == null) ? b.getIcon() : b.getDisabledIcon();
... |
public class class_name {
@Override
public int compareTo(ValueArray<IntValue> o) {
IntValueArray other = (IntValueArray) o;
int min = Math.min(position, other.position);
for (int i = 0; i < min; i++) {
int cmp = Integer.compare(data[i], other.data[i]);
if (cmp != 0) {
return cmp;
}
}
return ... | public class class_name {
@Override
public int compareTo(ValueArray<IntValue> o) {
IntValueArray other = (IntValueArray) o;
int min = Math.min(position, other.position);
for (int i = 0; i < min; i++) {
int cmp = Integer.compare(data[i], other.data[i]);
if (cmp != 0) {
return cmp; // depends on contr... |
public class class_name {
private void notifyConnected(Peer peer) {
for(Listener listener : new HashSet<>(listeners)) {
listener.onConnected(peer);
}
} } | public class class_name {
private void notifyConnected(Peer peer) {
for(Listener listener : new HashSet<>(listeners)) {
listener.onConnected(peer); // depends on control dependency: [for], data = [listener]
}
} } |
public class class_name {
public void notifyAdapterItemRangeChanged(int position, int itemCount, @Nullable Object payload) {
// handle our extensions
for (IAdapterExtension<Item> ext : mExtensions.values()) {
ext.notifyAdapterItemRangeChanged(position, itemCount, payload);
}
... | public class class_name {
public void notifyAdapterItemRangeChanged(int position, int itemCount, @Nullable Object payload) {
// handle our extensions
for (IAdapterExtension<Item> ext : mExtensions.values()) {
ext.notifyAdapterItemRangeChanged(position, itemCount, payload); // depends on con... |
public class class_name {
@Override
public boolean cancel(final String appName, final String id,
final boolean isReplication) {
if (super.cancel(appName, id, isReplication)) {
replicateToPeers(Action.Cancel, appName, id, null, null, isReplication);
synchron... | public class class_name {
@Override
public boolean cancel(final String appName, final String id,
final boolean isReplication) {
if (super.cancel(appName, id, isReplication)) {
replicateToPeers(Action.Cancel, appName, id, null, null, isReplication); // depends on contro... |
public class class_name {
public void removeKeyword(String keyword) {
if (!taxonomy.concepts.containsKey(keyword)) {
throw new IllegalArgumentException(String.format("Concept %s does not exist.", keyword));
}
taxonomy.concepts.remove(keyword);
if (synset != null) {
... | public class class_name {
public void removeKeyword(String keyword) {
if (!taxonomy.concepts.containsKey(keyword)) {
throw new IllegalArgumentException(String.format("Concept %s does not exist.", keyword));
}
taxonomy.concepts.remove(keyword);
if (synset != null) {
... |
public class class_name {
protected void mergeRelationship(final Map<SpecNode, CSNodeWrapper> nodeMapping, final SpecNodeWithRelationships specNode,
final CSNodeWrapper entity, final CSNodeProvider nodeProvider) {
final UpdateableCollectionWrapper<CSRelatedNodeWrapper> relatedToNodes = entity.getRe... | public class class_name {
protected void mergeRelationship(final Map<SpecNode, CSNodeWrapper> nodeMapping, final SpecNodeWithRelationships specNode,
final CSNodeWrapper entity, final CSNodeProvider nodeProvider) {
final UpdateableCollectionWrapper<CSRelatedNodeWrapper> relatedToNodes = entity.getRe... |
public class class_name {
@FFDCIgnore(IllegalStateException.class)
private void removeShutdownHook() {
if (shutdownHook != null) {
try {
Runtime.getRuntime().removeShutdownHook(shutdownHook);
} catch (IllegalStateException e) {
// do nothing.
... | public class class_name {
@FFDCIgnore(IllegalStateException.class)
private void removeShutdownHook() {
if (shutdownHook != null) {
try {
Runtime.getRuntime().removeShutdownHook(shutdownHook); // depends on control dependency: [try], data = [none]
} catch (IllegalStat... |
public class class_name {
@Override
public List<DMNStyle> getDMNStyle() {
if (dmnStyle == null) {
dmnStyle = new ArrayList<DMNStyle>();
}
return this.dmnStyle;
} } | public class class_name {
@Override
public List<DMNStyle> getDMNStyle() {
if (dmnStyle == null) {
dmnStyle = new ArrayList<DMNStyle>(); // depends on control dependency: [if], data = [none]
}
return this.dmnStyle;
} } |
public class class_name {
@Override
public String filter(URL pageUrl, Metadata sourceMetadata, String url) {
for (RegexRule rule : rules) {
if (rule.match(url)) {
return rule.accept() ? url : null;
}
}
return null;
} } | public class class_name {
@Override
public String filter(URL pageUrl, Metadata sourceMetadata, String url) {
for (RegexRule rule : rules) {
if (rule.match(url)) {
return rule.accept() ? url : null; // depends on control dependency: [if], data = [none]
}
}
... |
public class class_name {
public AspFactory createAspFactory(String aspName, String associationName, long aspid, boolean isHeartBeatEnabled)
throws Exception {
AspFactoryImpl factory = this.getAspFactory(aspName);
if (factory != null) {
throw new Exception(String.format(M3UAOAM... | public class class_name {
public AspFactory createAspFactory(String aspName, String associationName, long aspid, boolean isHeartBeatEnabled)
throws Exception {
AspFactoryImpl factory = this.getAspFactory(aspName);
if (factory != null) {
throw new Exception(String.format(M3UAOAM... |
public class class_name {
@SuppressWarnings("unchecked")
private <IN1, IN2, OUT> TypeInformation<OUT> createTypeInfoFromFactory(
Type t, ArrayList<Type> typeHierarchy, TypeInformation<IN1> in1Type, TypeInformation<IN2> in2Type) {
final ArrayList<Type> factoryHierarchy = new ArrayList<>(typeHierarchy);
final T... | public class class_name {
@SuppressWarnings("unchecked")
private <IN1, IN2, OUT> TypeInformation<OUT> createTypeInfoFromFactory(
Type t, ArrayList<Type> typeHierarchy, TypeInformation<IN1> in1Type, TypeInformation<IN2> in2Type) {
final ArrayList<Type> factoryHierarchy = new ArrayList<>(typeHierarchy);
final T... |
public class class_name {
public void clientResolved (Name username, ClientObject clobj)
{
// we'll be keeping this bad boy
_clobj = clobj;
// if our connection was closed while we were resolving our client object, then just
// abandon ship
if (getConnection() == null) {
... | public class class_name {
public void clientResolved (Name username, ClientObject clobj)
{
// we'll be keeping this bad boy
_clobj = clobj;
// if our connection was closed while we were resolving our client object, then just
// abandon ship
if (getConnection() == null) {
... |
public class class_name {
private boolean checkFilePath(String file, int depth) {
// The file is either a node file or an edge file and needs to be stored at either:
// flowGraphDir/nodeName/nodeName.properties (if it is a node file), or
// flowGraphDir/nodeName/nodeName/edgeName.properties (if it is an ed... | public class class_name {
private boolean checkFilePath(String file, int depth) {
// The file is either a node file or an edge file and needs to be stored at either:
// flowGraphDir/nodeName/nodeName.properties (if it is a node file), or
// flowGraphDir/nodeName/nodeName/edgeName.properties (if it is an ed... |
public class class_name {
ServerSessionContext setKeepAliveIndex(long keepAliveIndex) {
long previousKeepAliveIndex = this.keepAliveIndex;
this.keepAliveIndex = keepAliveIndex;
if (previousKeepAliveIndex > 0) {
log.release(previousKeepAliveIndex);
}
return this;
} } | public class class_name {
ServerSessionContext setKeepAliveIndex(long keepAliveIndex) {
long previousKeepAliveIndex = this.keepAliveIndex;
this.keepAliveIndex = keepAliveIndex;
if (previousKeepAliveIndex > 0) {
log.release(previousKeepAliveIndex); // depends on control dependency: [if], data = [(prev... |
public class class_name {
@Override
public EClass getIfcReinforcingElementType() {
if (ifcReinforcingElementTypeEClass == null) {
ifcReinforcingElementTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(514);
}
return ifcReinforcingElementTypeEC... | public class class_name {
@Override
public EClass getIfcReinforcingElementType() {
if (ifcReinforcingElementTypeEClass == null) {
ifcReinforcingElementTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(514);
// depends on control dependency: [if], d... |
public class class_name {
public List<IfClassNotAvailable<Exclude<T>>> getAllIfClassNotAvailable()
{
List<IfClassNotAvailable<Exclude<T>>> list = new ArrayList<IfClassNotAvailable<Exclude<T>>>();
List<Node> nodeList = childNode.get("if-class-not-available");
for(Node node: nodeList)
{
... | public class class_name {
public List<IfClassNotAvailable<Exclude<T>>> getAllIfClassNotAvailable()
{
List<IfClassNotAvailable<Exclude<T>>> list = new ArrayList<IfClassNotAvailable<Exclude<T>>>();
List<Node> nodeList = childNode.get("if-class-not-available");
for(Node node: nodeList)
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.