code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private void deselectChildren(CmsTreeItem item) {
for (String childId : m_childrens.get(item.getId())) {
CmsTreeItem child = m_categories.get(childId);
deselectChildren(child);
child.getCheckBox().setChecked(false);
if (m_selected... | public class class_name {
private void deselectChildren(CmsTreeItem item) {
for (String childId : m_childrens.get(item.getId())) {
CmsTreeItem child = m_categories.get(childId);
deselectChildren(child);
// depends on control dependency: [for], data = [none]
child.getCh... |
public class class_name {
public static Optional<Path> createTempFilePathAsOpt(Path path) {
debug(log, "createTempFilePathAsOpt", path);
String[] prefixSuffix = JMFiles.getPrefixSuffix(path.toFile());
try {
return Optional
.of(Files.createTempFile(prefixSuffix[0]... | public class class_name {
public static Optional<Path> createTempFilePathAsOpt(Path path) {
debug(log, "createTempFilePathAsOpt", path);
String[] prefixSuffix = JMFiles.getPrefixSuffix(path.toFile());
try {
return Optional
.of(Files.createTempFile(prefixSuffix[0]... |
public class class_name {
public final BELStatementParser.statement_return statement() throws RecognitionException {
BELStatementParser.statement_return retval = new BELStatementParser.statement_return();
retval.start = input.LT(1);
Object root_0 = null;
Token OPEN_PAREN1=null;
... | public class class_name {
public final BELStatementParser.statement_return statement() throws RecognitionException {
BELStatementParser.statement_return retval = new BELStatementParser.statement_return();
retval.start = input.LT(1);
Object root_0 = null;
Token OPEN_PAREN1=null;
... |
public class class_name {
public static ResidueRangeAndLength parse(String s, AtomPositionMap map) {
ResidueRange rr = parse(s);
ResidueNumber start = rr.getStart();
String chain = rr.getChainName();
// handle special "_" chain
if(chain == null || chain.equals("_")) {
ResidueNumber first = map.getNavMap... | public class class_name {
public static ResidueRangeAndLength parse(String s, AtomPositionMap map) {
ResidueRange rr = parse(s);
ResidueNumber start = rr.getStart();
String chain = rr.getChainName();
// handle special "_" chain
if(chain == null || chain.equals("_")) {
ResidueNumber first = map.getNavMap... |
public class class_name {
private void initialize(AtlasGraph graph) throws RepositoryException, IndexException {
AtlasGraphManagement management = graph.getManagementSystem();
try {
if (management.containsPropertyKey(Constants.VERTEX_TYPE_PROPERTY_KEY)) {
LOG.info("Global i... | public class class_name {
private void initialize(AtlasGraph graph) throws RepositoryException, IndexException {
AtlasGraphManagement management = graph.getManagementSystem();
try {
if (management.containsPropertyKey(Constants.VERTEX_TYPE_PROPERTY_KEY)) {
LOG.info("Global i... |
public class class_name {
@Override
public XBELHeader convert(Header source) {
if (source == null) return null;
XBELHeader xh = new XBELHeader();
List<String> authors = source.getAuthors();
if (hasItems(authors)) {
XBELAuthorGroup xag = new XBELAuthorGroup();
... | public class class_name {
@Override
public XBELHeader convert(Header source) {
if (source == null) return null;
XBELHeader xh = new XBELHeader();
List<String> authors = source.getAuthors();
if (hasItems(authors)) {
XBELAuthorGroup xag = new XBELAuthorGroup();
... |
public class class_name {
public void processPrerequisiteInjections(final SpecNodeWithRelationships specNode, final Document doc, final Element node,
final boolean useFixedUrls) {
// Make sure we have some links to inject
if (specNode.getPrerequisiteRelationships().isEmpty()) return;
... | public class class_name {
public void processPrerequisiteInjections(final SpecNodeWithRelationships specNode, final Document doc, final Element node,
final boolean useFixedUrls) {
// Make sure we have some links to inject
if (specNode.getPrerequisiteRelationships().isEmpty()) return;
... |
public class class_name {
public void setVpnGatewayIds(java.util.Collection<String> vpnGatewayIds) {
if (vpnGatewayIds == null) {
this.vpnGatewayIds = null;
return;
}
this.vpnGatewayIds = new com.amazonaws.internal.SdkInternalList<String>(vpnGatewayIds);
} } | public class class_name {
public void setVpnGatewayIds(java.util.Collection<String> vpnGatewayIds) {
if (vpnGatewayIds == null) {
this.vpnGatewayIds = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static String getErrorMessage(final com.authy.api.Error err) {
val builder = new StringBuilder();
if (err != null) {
builder.append("Authy Error");
if (StringUtils.isNotBlank(err.getCountryCode())) {
builder.append(": Country Code... | public class class_name {
public static String getErrorMessage(final com.authy.api.Error err) {
val builder = new StringBuilder();
if (err != null) {
builder.append("Authy Error"); // depends on control dependency: [if], data = [none]
if (StringUtils.isNotBlank(err.getCountryCod... |
public class class_name {
private static void loadTag(ConfigServerImpl configServer, ConfigImpl config, Document doc, Log log) {
try {
Element parent = getChildByName(doc.getDocumentElement(), "tags");
{
Element[] tags = getChildren(parent, "tag");
Element tag;
ClassDefinition cd;
String nss, ns, n;... | public class class_name {
private static void loadTag(ConfigServerImpl configServer, ConfigImpl config, Document doc, Log log) {
try {
Element parent = getChildByName(doc.getDocumentElement(), "tags");
{
Element[] tags = getChildren(parent, "tag");
Element tag;
ClassDefinition cd;
String nss, ns, n;... |
public class class_name {
public static Page<Record> paginate(String where,
String sql_columns,
DTCriterias criterias,
List<Object> params) {
int pageSize = criterias.getLength();
int... | public class class_name {
public static Page<Record> paginate(String where,
String sql_columns,
DTCriterias criterias,
List<Object> params) {
int pageSize = criterias.getLength();
int... |
public class class_name {
public List<OrderedPair<T>> getOrderedPairs() {
List<OrderedPair<T>> pairs = new ArrayList<OrderedPair<T>>(list1.size()*list2.size());
for (T element1: list1) {
for (T element2: list2) {
pairs.add(new OrderedPair<T>(element1, element2));
}
}
return pairs;
} } | public class class_name {
public List<OrderedPair<T>> getOrderedPairs() {
List<OrderedPair<T>> pairs = new ArrayList<OrderedPair<T>>(list1.size()*list2.size());
for (T element1: list1) {
for (T element2: list2) {
pairs.add(new OrderedPair<T>(element1, element2)); // depends on control dependency: [for], da... |
public class class_name {
public void setSettingExcelPattern(String settingExcelPattern) {
if(Utils.isEmpty(settingExcelPattern)) {
this.settingExcelPattern = Optional.empty();
} else {
this.settingExcelPattern = Optional.of(settingExcelPattern);
}
} } | public class class_name {
public void setSettingExcelPattern(String settingExcelPattern) {
if(Utils.isEmpty(settingExcelPattern)) {
this.settingExcelPattern = Optional.empty();
// depends on control dependency: [if], data = [none]
} else {
this.settingExcelPattern = Option... |
public class class_name {
public static EvaluatorRequest fromString(final String serializedRequest) {
try {
final Decoder decoder =
DecoderFactory.get().jsonDecoder(AvroEvaluatorRequest.getClassSchema(), serializedRequest);
final SpecificDatumReader<AvroEvaluatorRequest> reader = new Specific... | public class class_name {
public static EvaluatorRequest fromString(final String serializedRequest) {
try {
final Decoder decoder =
DecoderFactory.get().jsonDecoder(AvroEvaluatorRequest.getClassSchema(), serializedRequest);
final SpecificDatumReader<AvroEvaluatorRequest> reader = new Specific... |
public class class_name {
static int max(int[] input, int start, int length) {
assert length >= 1;
int max = input[start];
for (int i = length - 2, index = start + 1; i >= 0; i--, index++) {
final int v = input[index];
if (v > max) {
max = v;
... | public class class_name {
static int max(int[] input, int start, int length) {
assert length >= 1;
int max = input[start];
for (int i = length - 2, index = start + 1; i >= 0; i--, index++) {
final int v = input[index];
if (v > max) {
max = v; // depends ... |
public class class_name {
public static String join(SoyList list, String separator) {
List<String> stringList = new ArrayList<>();
for (SoyValue value : list.asResolvedJavaList()) {
stringList.add(value.coerceToString());
}
return Joiner.on(separator).join(stringList);
} } | public class class_name {
public static String join(SoyList list, String separator) {
List<String> stringList = new ArrayList<>();
for (SoyValue value : list.asResolvedJavaList()) {
stringList.add(value.coerceToString()); // depends on control dependency: [for], data = [value]
}
return Joiner.on(... |
public class class_name {
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfReliefComponent() {
if (_GenericApplicationPropertyOfReliefComponent == null) {
_GenericApplicationPropertyOfReliefComponent = new ArrayList<JAXBElement<Object>>();
}
return this._GenericAppli... | public class class_name {
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfReliefComponent() {
if (_GenericApplicationPropertyOfReliefComponent == null) {
_GenericApplicationPropertyOfReliefComponent = new ArrayList<JAXBElement<Object>>(); // depends on control dependency: [if], dat... |
public class class_name {
public CallAS7 resource(String... parts) {
for(String part : parts ) {
this.resource.add(part);
}
return this;
} } | public class class_name {
public CallAS7 resource(String... parts) {
for(String part : parts ) {
this.resource.add(part); // depends on control dependency: [for], data = [part]
}
return this;
} } |
public class class_name {
void removeInlinedFunctions() {
for (Map.Entry<String, FunctionState> entry : fns.entrySet()) {
String name = entry.getKey();
FunctionState functionState = entry.getValue();
if (functionState.canRemove()) {
Function fn = functionState.getFn();
checkState(... | public class class_name {
void removeInlinedFunctions() {
for (Map.Entry<String, FunctionState> entry : fns.entrySet()) {
String name = entry.getKey();
FunctionState functionState = entry.getValue();
if (functionState.canRemove()) {
Function fn = functionState.getFn();
checkState(... |
public class class_name {
public void run() {
try {
readStream();
} catch (EOFException eof) {
// Normal disconnect
} catch (SocketException se) {
// Do nothing if the exception occured while shutting down the
// component otherwise
//... | public class class_name {
public void run() {
try {
readStream(); // depends on control dependency: [try], data = [none]
} catch (EOFException eof) {
// Normal disconnect
} catch (SocketException se) { // depends on control dependency: [catch], data = [none]
... |
public class class_name {
@SuppressWarnings("unused")
private Boolean loadBooleanProperty(String propertyKey) {
String booleanPropValue = prop.getProperty(propertyKey);
if (booleanPropValue != null) {
return Boolean.parseBoolean(booleanPropValue.trim());
} else {
return null;
}
} } | public class class_name {
@SuppressWarnings("unused")
private Boolean loadBooleanProperty(String propertyKey) {
String booleanPropValue = prop.getProperty(propertyKey);
if (booleanPropValue != null) {
return Boolean.parseBoolean(booleanPropValue.trim()); // depends on control dependency: [if], data = [(boolean... |
public class class_name {
void store(Credential credential) {
accessToken = credential.getAccessToken();
refreshToken = credential.getRefreshToken();
expirationTimeMillis = credential.getExpirationTimeMilliseconds();
if (credential instanceof OAuthHmacCredential) {
OAuthHmacCredential oauth10aC... | public class class_name {
void store(Credential credential) {
accessToken = credential.getAccessToken();
refreshToken = credential.getRefreshToken();
expirationTimeMillis = credential.getExpirationTimeMilliseconds();
if (credential instanceof OAuthHmacCredential) {
OAuthHmacCredential oauth10aC... |
public class class_name {
@Unstable
protected MetaData getNonGeneratedContentMetaData(String parameterName)
{
MetaData metaData = new MetaData();
Type contentType;
if (this.macroDescriptor != null
&& this.macroDescriptor.getParameterDescriptorMap() != null
&& th... | public class class_name {
@Unstable
protected MetaData getNonGeneratedContentMetaData(String parameterName)
{
MetaData metaData = new MetaData();
Type contentType;
if (this.macroDescriptor != null
&& this.macroDescriptor.getParameterDescriptorMap() != null
&& th... |
public class class_name {
private void load(final Properties properties, final String location,
final boolean overwriteOnly) {
for (Map.Entry<Object, Object> entry : properties.entrySet()) {
String key = (String) entry.getKey();
String already = get(key);
if (overwriteOnly && already == null && !INCLUD... | public class class_name {
private void load(final Properties properties, final String location,
final boolean overwriteOnly) {
for (Map.Entry<Object, Object> entry : properties.entrySet()) {
String key = (String) entry.getKey();
String already = get(key);
if (overwriteOnly && already == null && !INCLUD... |
public class class_name {
@Override
protected void doPick()
{
if (mCollidables.size() > 0)
{
GVRPickedObject[] picked = null;
synchronized (mCollidables)
{
picked = pickBounds(mScene, mCollidables);
}
if (mPickClosest ... | public class class_name {
@Override
protected void doPick()
{
if (mCollidables.size() > 0)
{
GVRPickedObject[] picked = null;
synchronized (mCollidables) // depends on control dependency: [if], data = [none]
{
picked = pickBounds(mScene, mCol... |
public class class_name {
protected boolean shouldAuthorize(Authentication authentication) {
Assert.state(getAccessDecisionManager() != null, "The AccessDecisionManager can not be null!");
boolean authorize = false;
try {
if( authentication != null ) {
Object secured... | public class class_name {
protected boolean shouldAuthorize(Authentication authentication) {
Assert.state(getAccessDecisionManager() != null, "The AccessDecisionManager can not be null!");
boolean authorize = false;
try {
if( authentication != null ) {
Object secured... |
public class class_name {
public static void splitData(final String originalTrainingDataFile) {
List<Tuple> trainingData = NaiveBayesClassifier.readTrainingData(originalTrainingDataFile, "\\s");
List<Tuple> wrongData = new ArrayList<>();
int lastTrainingDataSize;
int iterCount = 0;
... | public class class_name {
public static void splitData(final String originalTrainingDataFile) {
List<Tuple> trainingData = NaiveBayesClassifier.readTrainingData(originalTrainingDataFile, "\\s");
List<Tuple> wrongData = new ArrayList<>();
int lastTrainingDataSize;
int iterCount = 0;
... |
public class class_name {
public void replaceFromToWithFrom(int from, int to, ObjectArrayList other, int otherFrom) {
int length=to-from+1;
if (length>0) {
checkRangeFromTo(from, to, size);
checkRangeFromTo(otherFrom,otherFrom+length-1,other.size);
System.arraycopy(other.elements, otherFrom, elements, fro... | public class class_name {
public void replaceFromToWithFrom(int from, int to, ObjectArrayList other, int otherFrom) {
int length=to-from+1;
if (length>0) {
checkRangeFromTo(from, to, size);
// depends on control dependency: [if], data = [none]
checkRangeFromTo(otherFrom,otherFrom+length-1,other.size);
// de... |
public class class_name {
private void handleRestoreDefaultsButtonTextArgument(@NonNull final Bundle arguments) {
CharSequence buttonText =
getCharSequenceFromArguments(arguments, EXTRA_RESTORE_DEFAULTS_BUTTON_TEXT);
if (!TextUtils.isEmpty(buttonText)) {
setRestoreDefaultsB... | public class class_name {
private void handleRestoreDefaultsButtonTextArgument(@NonNull final Bundle arguments) {
CharSequence buttonText =
getCharSequenceFromArguments(arguments, EXTRA_RESTORE_DEFAULTS_BUTTON_TEXT);
if (!TextUtils.isEmpty(buttonText)) {
setRestoreDefaultsB... |
public class class_name {
public static String getServiceURL(KubernetesClient client, String serviceName, String serviceNamespace, String serviceProtocol, boolean serviceExternal) {
Service srv = null;
String serviceHost = serviceToHostOrBlank(serviceName);
String servicePort = serviceToPortOrB... | public class class_name {
public static String getServiceURL(KubernetesClient client, String serviceName, String serviceNamespace, String serviceProtocol, boolean serviceExternal) {
Service srv = null;
String serviceHost = serviceToHostOrBlank(serviceName);
String servicePort = serviceToPortOrB... |
public class class_name {
public void setOnProgressView(View v) {
int progressViewVisibility = -1;
if (this.onProgressView != null) {
progressViewVisibility = this.onProgressView.getVisibility();
removeView(this.onProgressView);
}
this.onProgressView = v;
... | public class class_name {
public void setOnProgressView(View v) {
int progressViewVisibility = -1;
if (this.onProgressView != null) {
progressViewVisibility = this.onProgressView.getVisibility(); // depends on control dependency: [if], data = [none]
removeView(this.onProgressVie... |
public class class_name {
protected String getCommonSuperClass(final String type1, final String type2) {
ClassLoader classLoader = getClassLoader();
Class<?> class1;
try {
class1 = Class.forName(type1.replace('/', '.'), false, classLoader);
} catch (ClassNotFoundException e) {
throw new Typ... | public class class_name {
protected String getCommonSuperClass(final String type1, final String type2) {
ClassLoader classLoader = getClassLoader();
Class<?> class1;
try {
class1 = Class.forName(type1.replace('/', '.'), false, classLoader); // depends on control dependency: [try], data = [none]
}... |
public class class_name {
public static String replace(String s, String replace, String with) {
if (s == null || replace == null) {
return s;
}
if (with == null) {
with = "";
}
StringBuffer b = new StringBuffer();
int start ... | public class class_name {
public static String replace(String s, String replace, String with) {
if (s == null || replace == null) {
return s; // depends on control dependency: [if], data = [none]
}
if (with == null) {
with = "";
}
StringBuffer b ... |
public class class_name {
static Map<String, Object> sizePayload(final Object min, final Object max) {
if (min == null || max == null) {
return null;
}
Map<String, Object> payload = new LinkedHashMap<>();
payload.put("min", min);
payload.put("max", max);
payload.put("message", MSG_PREFIX + VALIDATORS.ge... | public class class_name {
static Map<String, Object> sizePayload(final Object min, final Object max) {
if (min == null || max == null) {
return null; // depends on control dependency: [if], data = [none]
}
Map<String, Object> payload = new LinkedHashMap<>();
payload.put("min", min);
payload.put("max", max... |
public class class_name {
public boolean setGenreString(String str)
{
int result = NullsoftID3GenreTable.getGenre(str);
boolean retval = false;
if (result != -1)
{
genre = result;
retval = true;
}
return retval;
} } | public class class_name {
public boolean setGenreString(String str)
{
int result = NullsoftID3GenreTable.getGenre(str);
boolean retval = false;
if (result != -1)
{
genre = result; // depends on control dependency: [if], data = [none]
retval = true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public EEnum getPPORGProcFlgs() {
if (pporgProcFlgsEEnum == null) {
pporgProcFlgsEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(123);
}
return pporgProcFlgsEEnum;
} } | public class class_name {
public EEnum getPPORGProcFlgs() {
if (pporgProcFlgsEEnum == null) {
pporgProcFlgsEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(123); // depends on control dependency: [if], data = [none]
}
return pporgProcFlgsEEnum;
} } |
public class class_name {
static int linearPathIntersectsLinearPathMaxDim_(MultiPath _multipathA,
MultiPath _multipathB, double tolerance,
AttributeStreamOfDbl intersections) {
MultiPath multipathA;
MultiPath multipathB;
if (_multipathA.getSegmentCount() > _multipathB.getSegmentCount()) {
multipathA = ... | public class class_name {
static int linearPathIntersectsLinearPathMaxDim_(MultiPath _multipathA,
MultiPath _multipathB, double tolerance,
AttributeStreamOfDbl intersections) {
MultiPath multipathA;
MultiPath multipathB;
if (_multipathA.getSegmentCount() > _multipathB.getSegmentCount()) {
multipathA = ... |
public class class_name {
private void removeInstalledFeature(String feature, String namespace)
{
// Extensions namespaces by feature
if (namespace == null) {
this.extensionNamespaceByFeature.remove(feature);
} else {
Map<String, InstalledFeature> namespaceInstalled... | public class class_name {
private void removeInstalledFeature(String feature, String namespace)
{
// Extensions namespaces by feature
if (namespace == null) {
this.extensionNamespaceByFeature.remove(feature); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public void resize(int maxCacheSize) {
setMaxCacheSize(maxCacheSize);
for (FeatureCache cache : tableCache.values()) {
cache.resize(maxCacheSize);
}
} } | public class class_name {
public void resize(int maxCacheSize) {
setMaxCacheSize(maxCacheSize);
for (FeatureCache cache : tableCache.values()) {
cache.resize(maxCacheSize); // depends on control dependency: [for], data = [cache]
}
} } |
public class class_name {
private void indexArrayStore(int e, int i)
{
if (valueIndexStore.length < e)
{
int oldLength = valueIndexStore.length;
valueIndexStore = Arrays.copyOf(valueIndexStore, e + 2);
Arrays.fill(valueIndexStore, oldLength, valueIndexStore.lengt... | public class class_name {
private void indexArrayStore(int e, int i)
{
if (valueIndexStore.length < e)
{
int oldLength = valueIndexStore.length;
valueIndexStore = Arrays.copyOf(valueIndexStore, e + 2); // depends on control dependency: [if], data = [none]
Arrays.... |
public class class_name {
public void recalculatePositionOfItemAt(int index) {
// TODO can be improved
final T item = get(index);
removeItemAtIndex(index, false);
int newIndex = add(item, false);
if (index != newIndex) {
mCallback.onMoved(index, newIndex);
}
... | public class class_name {
public void recalculatePositionOfItemAt(int index) {
// TODO can be improved
final T item = get(index);
removeItemAtIndex(index, false);
int newIndex = add(item, false);
if (index != newIndex) {
mCallback.onMoved(index, newIndex); // depends... |
public class class_name {
public RuntimeManager build(KnowledgeRuntimeManagerType type, String identifier) {
final RuntimeManager runtimeManager;
final RuntimeEnvironment runtimeEnvironment = _runtimeEnvironmentBuilder.build();
final RemoteManifest remoteManifest = RemoteManifest.removeFromEnvi... | public class class_name {
public RuntimeManager build(KnowledgeRuntimeManagerType type, String identifier) {
final RuntimeManager runtimeManager;
final RuntimeEnvironment runtimeEnvironment = _runtimeEnvironmentBuilder.build();
final RemoteManifest remoteManifest = RemoteManifest.removeFromEnvi... |
public class class_name {
private void bigMapInitializer(StorageEngine storageEngine) {
//get all the fields from all the inherited classes
for(Field field : ReflectionMethods.getAllFields(new LinkedList<>(), this.getClass())){
//if the field is annotated with BigMap
if (field.i... | public class class_name {
private void bigMapInitializer(StorageEngine storageEngine) {
//get all the fields from all the inherited classes
for(Field field : ReflectionMethods.getAllFields(new LinkedList<>(), this.getClass())){
//if the field is annotated with BigMap
if (field.i... |
public class class_name {
@Override
public void prepare( CssFormatter formatter ) {
List<Rule> rules = mixins.get( name );
if( rules != null ) {
for( int i = 0; i < rules.size(); i++ ) {
Rule rule = rules.get( i );
mixins.addAll( rule.getMixins() );
... | public class class_name {
@Override
public void prepare( CssFormatter formatter ) {
List<Rule> rules = mixins.get( name );
if( rules != null ) {
for( int i = 0; i < rules.size(); i++ ) {
Rule rule = rules.get( i );
mixins.addAll( rule.getMixins() ); // de... |
public class class_name {
public List<Double> getOffsetsInTimeUnits() {
double start = firstDate.getMillis();
List<Double> result = new ArrayList<>(runtimes.length);
for (int idx=0; idx<runtimes.length; idx++) {
double runtime = (double) getRuntime(idx);
double msecs = (runtime - start);
... | public class class_name {
public List<Double> getOffsetsInTimeUnits() {
double start = firstDate.getMillis();
List<Double> result = new ArrayList<>(runtimes.length);
for (int idx=0; idx<runtimes.length; idx++) {
double runtime = (double) getRuntime(idx);
double msecs = (runtime - start);
... |
public class class_name {
public void nextState(PHATInterface phatInterface) {
switch (state) {
case NOT_INIT:
//System.out.println(getAgent().getId()+":"+getName()+"(NOT_INIT)");
/*currentState = null;
if(pendingTransitions != null) {
... | public class class_name {
public void nextState(PHATInterface phatInterface) {
switch (state) {
case NOT_INIT:
//System.out.println(getAgent().getId()+":"+getName()+"(NOT_INIT)");
/*currentState = null;
if(pendingTransitions != null) {
... |
public class class_name {
private int[][] getMatrix(int size) {
logger.info("Creating matrix for isotopes combination");
int lengthM = (int) Math.pow(2, size);
lengthM--;// less 1 because the matrix 00000 we don't need
int[][] matrix = new int[lengthM][size];
int[] combi = new... | public class class_name {
private int[][] getMatrix(int size) {
logger.info("Creating matrix for isotopes combination");
int lengthM = (int) Math.pow(2, size);
lengthM--;// less 1 because the matrix 00000 we don't need
int[][] matrix = new int[lengthM][size];
int[] combi = new... |
public class class_name {
public void marshall(ClassificationType classificationType, ProtocolMarshaller protocolMarshaller) {
if (classificationType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(ClassificationType classificationType, ProtocolMarshaller protocolMarshaller) {
if (classificationType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public void marshall(ErrorInfo errorInfo, ProtocolMarshaller protocolMarshaller) {
if (errorInfo == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(errorInfo.getCode(), CODE... | public class class_name {
public void marshall(ErrorInfo errorInfo, ProtocolMarshaller protocolMarshaller) {
if (errorInfo == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(errorInfo.getCode(), CODE... |
public class class_name {
private void colorChooserRootBackgroundActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_colorChooserRootBackgroundActionPerformed
if (this.colorChooserRootBackground.isLastOkPressed() && changeNotificationAllowed) {
this.controller.changed();
}
} } | public class class_name {
private void colorChooserRootBackgroundActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_colorChooserRootBackgroundActionPerformed
if (this.colorChooserRootBackground.isLastOkPressed() && changeNotificationAllowed) {
this.controller.changed(); // depends on control ... |
public class class_name {
private List<Metric> mapping(List<Metric> metrics) {
SystemAssert.requireArgument(metrics != null, "Cannot transform empty metric/metrics");
if (metrics.isEmpty()) {
return metrics;
}
List<Metric> newMetricsList = new ArrayList<Metric>();
... | public class class_name {
private List<Metric> mapping(List<Metric> metrics) {
SystemAssert.requireArgument(metrics != null, "Cannot transform empty metric/metrics");
if (metrics.isEmpty()) {
return metrics; // depends on control dependency: [if], data = [none]
}
List<Metri... |
public class class_name {
public TermDocs termDocs(Term term) throws IOException
{
if (term!=null && term.field() == FieldNames.UUID)
{
// check cache if we have one
if (cache != null)
{
DocNumberCache.Entry e = cache.get(term.text());
if (e != null)
... | public class class_name {
public TermDocs termDocs(Term term) throws IOException
{
if (term!=null && term.field() == FieldNames.UUID)
{
// check cache if we have one
if (cache != null)
{
DocNumberCache.Entry e = cache.get(term.text());
if (e != null)
... |
public class class_name {
@Nullable
protected List<Match> addLegacyMatches(List <Match> existingSugMatches, String messageStr,
boolean inMessage) {
List<Match> sugMatch = new ArrayList<>();
int pos = 0;
int ind = 0;
int matchCounter = 0;
while (pos != -1) {
pos = messageStr.indexOf('\... | public class class_name {
@Nullable
protected List<Match> addLegacyMatches(List <Match> existingSugMatches, String messageStr,
boolean inMessage) {
List<Match> sugMatch = new ArrayList<>();
int pos = 0;
int ind = 0;
int matchCounter = 0;
while (pos != -1) {
pos = messageStr.indexOf('\... |
public class class_name {
public Task<EncodedImage> get(CacheKey key, AtomicBoolean isCancelled) {
try {
if (FrescoSystrace.isTracing()) {
FrescoSystrace.beginSection("BufferedDiskCache#get");
}
final EncodedImage pinnedImage = mStagingArea.get(key);
if (pinnedImage != null) {
... | public class class_name {
public Task<EncodedImage> get(CacheKey key, AtomicBoolean isCancelled) {
try {
if (FrescoSystrace.isTracing()) {
FrescoSystrace.beginSection("BufferedDiskCache#get"); // depends on control dependency: [if], data = [none]
}
final EncodedImage pinnedImage = mStagin... |
public class class_name {
public static DatabaseFieldDescriptor getDatabaseFieldDescriptor(final Field field) {
DatabaseFieldDescriptor databaseFieldDescriptor = fieldToDataBaseFieldDescriptorMap.get(field);
if (databaseFieldDescriptor == null) {
DatabaseField databaseField = field.getAnno... | public class class_name {
public static DatabaseFieldDescriptor getDatabaseFieldDescriptor(final Field field) {
DatabaseFieldDescriptor databaseFieldDescriptor = fieldToDataBaseFieldDescriptorMap.get(field);
if (databaseFieldDescriptor == null) {
DatabaseField databaseField = field.getAnno... |
public class class_name {
public static Date dateReservedMonth(int year, int month, boolean is000) {
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.YEAR, year);
if (month <= 1) {
calendar.set(Calendar.MONTH, Calendar.JANUARY);
} else if (month >= 12) {
... | public class class_name {
public static Date dateReservedMonth(int year, int month, boolean is000) {
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.YEAR, year);
if (month <= 1) {
calendar.set(Calendar.MONTH, Calendar.JANUARY); // depends on control dependency: [if... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T> T unwrap(Object object)
{
T result = (T) object;
if (object != null)
{
while (isForgeProxy(result))
{
try
{
Method method = result.getClass().getMethod("getDelega... | public class class_name {
@SuppressWarnings("unchecked")
public static <T> T unwrap(Object object)
{
T result = (T) object;
if (object != null)
{
while (isForgeProxy(result))
{
try
{
Method method = result.getClass().getMethod("getDelega... |
public class class_name {
public RootNode run() {
// attach a result listener to broadcast
this.nodeRunner.addNotifier(this);
final RootNode rootNode;
try {
rootNode = this.nodeRunner.run();
} finally {
// now send the final notification
fi... | public class class_name {
public RootNode run() {
// attach a result listener to broadcast
this.nodeRunner.addNotifier(this);
final RootNode rootNode;
try {
rootNode = this.nodeRunner.run(); // depends on control dependency: [try], data = [none]
} finally {
... |
public class class_name {
public static boolean decodeGSSUPToken(Codec codec, @Sensitive byte[] token_arr,
InitialContextToken gssup_tok) {
boolean result = false;
if (gssup_tok != null) {
try {
byte[] data = readGSSTokenData(GSSUPM... | public class class_name {
public static boolean decodeGSSUPToken(Codec codec, @Sensitive byte[] token_arr,
InitialContextToken gssup_tok) {
boolean result = false;
if (gssup_tok != null) {
try {
byte[] data = readGSSTokenData(GSSUPM... |
public class class_name {
public FileInfo getFileInfo(final URI file) {
if (file == null) {
return null;
} else if (files.containsKey(file)) {
return files.get(file);
} else if (file.isAbsolute() && file.toString().startsWith(tempDirURI.toString())) {
final U... | public class class_name {
public FileInfo getFileInfo(final URI file) {
if (file == null) {
return null; // depends on control dependency: [if], data = [none]
} else if (files.containsKey(file)) {
return files.get(file); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public int compare(Class toType_a, Class toType_b) {
TypeDesc from = mFrom;
TypeDesc a = TypeDesc.forClass(toType_a);
TypeDesc b = TypeDesc.forClass(toType_b);
if (from == a) {
if (from == b) {
return 0;
}
... | public class class_name {
public int compare(Class toType_a, Class toType_b) {
TypeDesc from = mFrom;
TypeDesc a = TypeDesc.forClass(toType_a);
TypeDesc b = TypeDesc.forClass(toType_b);
if (from == a) {
if (from == b) {
return 0;
// depends on contro... |
public class class_name {
void checkDifference() {
resetDiffsAndStats();
InjectionHandler.processEvent(InjectionEvent.DIRECTORY_SCANNER_BEFORE_FILE_SCAN);
Map<Integer, DiskScanInfo[]> diskReportPerNamespace = getDiskReportPerNamespace();
InjectionHandler.processEvent(InjectionEvent.DIRECTORY_SCANNER_AF... | public class class_name {
void checkDifference() {
resetDiffsAndStats();
InjectionHandler.processEvent(InjectionEvent.DIRECTORY_SCANNER_BEFORE_FILE_SCAN);
Map<Integer, DiskScanInfo[]> diskReportPerNamespace = getDiskReportPerNamespace();
InjectionHandler.processEvent(InjectionEvent.DIRECTORY_SCANNER_AF... |
public class class_name {
public static <Item extends IItem> void addAllSubItems(Item item, List<Item> items) {
if (item instanceof IExpandable && !((IExpandable) item).isExpanded() && ((IExpandable) item).getSubItems() != null) {
List<Item> subItems = (List<Item>) ((IExpandable<Item, ?>) item).get... | public class class_name {
public static <Item extends IItem> void addAllSubItems(Item item, List<Item> items) {
if (item instanceof IExpandable && !((IExpandable) item).isExpanded() && ((IExpandable) item).getSubItems() != null) {
List<Item> subItems = (List<Item>) ((IExpandable<Item, ?>) item).get... |
public class class_name {
@Override
protected void onMethodExit(int opcode) {
if ((withPreconditions || withPostconditions || withInvariants)
&& opcode != ATHROW) {
if (withPostconditions || withInvariants) {
Label skip = enterBusySection();
if (withPostconditions) {
Type... | public class class_name {
@Override
protected void onMethodExit(int opcode) {
if ((withPreconditions || withPostconditions || withInvariants)
&& opcode != ATHROW) {
if (withPostconditions || withInvariants) {
Label skip = enterBusySection();
if (withPostconditions) {
Type... |
public class class_name {
private Bbox getOverviewMaxBounds() {
Bbox targetMaxBounds;
if (!useTargetMaxExtent) {
targetMaxBounds = new Bbox(getMapModel().getMapInfo().getInitialBounds());
} else {
// maxBounds was not configured, or need to use maxBounds from target
if (targetMap.getMapModel().isInitial... | public class class_name {
private Bbox getOverviewMaxBounds() {
Bbox targetMaxBounds;
if (!useTargetMaxExtent) {
targetMaxBounds = new Bbox(getMapModel().getMapInfo().getInitialBounds()); // depends on control dependency: [if], data = [none]
} else {
// maxBounds was not configured, or need to use maxBound... |
public class class_name {
public static Predicate<Imp> addFilters(
Predicate<Imp> baseFilter, boolean banner, boolean video, boolean nativ) {
int orCount = (banner ? 1 : 0) + (video ? 1 : 0) + (nativ ? 1 : 0);
if (baseFilter == IMP_NONE || orCount == 0) {
return baseFilter;
}
Predicate<Imp... | public class class_name {
public static Predicate<Imp> addFilters(
Predicate<Imp> baseFilter, boolean banner, boolean video, boolean nativ) {
int orCount = (banner ? 1 : 0) + (video ? 1 : 0) + (nativ ? 1 : 0);
if (baseFilter == IMP_NONE || orCount == 0) {
return baseFilter; // depends on control de... |
public class class_name {
protected void removeTab(GalleryTabId tabId) {
if (m_tabIds != null) {
List<GalleryTabId> tabs = new ArrayList<GalleryTabId>(Arrays.asList(m_tabIds));
if (tabs.contains(tabId)) {
m_tabIds = new GalleryTabId[tabs.size() - 1];
tab... | public class class_name {
protected void removeTab(GalleryTabId tabId) {
if (m_tabIds != null) {
List<GalleryTabId> tabs = new ArrayList<GalleryTabId>(Arrays.asList(m_tabIds));
if (tabs.contains(tabId)) {
m_tabIds = new GalleryTabId[tabs.size() - 1]; // depends on contr... |
public class class_name {
public void marshall(DeletePresetRequest deletePresetRequest, ProtocolMarshaller protocolMarshaller) {
if (deletePresetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(DeletePresetRequest deletePresetRequest, ProtocolMarshaller protocolMarshaller) {
if (deletePresetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
public void remove(Identity oid)
{
try
{
jcsCache.remove(oid.toString());
}
catch (CacheException e)
{
throw new RuntimeCacheException(e.getMessage());
}
} } | public class class_name {
public void remove(Identity oid)
{
try
{
jcsCache.remove(oid.toString());
// depends on control dependency: [try], data = [none]
}
catch (CacheException e)
{
throw new RuntimeCacheException(e.getMessage());
}... |
public class class_name {
protected TablePopulationRequirements checkAddDropIfTableIsEmptyWhitelist(final CatalogType suspect,
final ChangeType changeType) {
TablePopulationRequirements retval = null;
// handle adding an in... | public class class_name {
protected TablePopulationRequirements checkAddDropIfTableIsEmptyWhitelist(final CatalogType suspect,
final ChangeType changeType) {
TablePopulationRequirements retval = null;
// handle adding an in... |
public class class_name {
@Override
protected LofDataSet mergeState(LofDataSet baseDataSet, LofDataSet targetDataSet,
Map<String, Object> mergeConfig)
{
int kn = Integer.parseInt(mergeConfig.get(LofConfKey.KN).toString());
int maxDataCount = Integer.parseInt(mergeConfig.get(LofConfK... | public class class_name {
@Override
protected LofDataSet mergeState(LofDataSet baseDataSet, LofDataSet targetDataSet,
Map<String, Object> mergeConfig)
{
int kn = Integer.parseInt(mergeConfig.get(LofConfKey.KN).toString());
int maxDataCount = Integer.parseInt(mergeConfig.get(LofConfK... |
public class class_name {
public void uncheckTypes(Collection<String> types) {
for (String type : types) {
CmsListItem item = (CmsListItem)m_scrollList.getItem(type);
if (item != null) {
item.getCheckBox().setChecked(false);
}
}
} } | public class class_name {
public void uncheckTypes(Collection<String> types) {
for (String type : types) {
CmsListItem item = (CmsListItem)m_scrollList.getItem(type);
if (item != null) {
item.getCheckBox().setChecked(false); // depends on control dependency: [if], data ... |
public class class_name {
public void report(PrintWriter w) {
w.println("You are authenticated as: "+authentication.getName());
w.println("Groups that you are in:");
for (GrantedAuthority auth : authentication.getAuthorities()) {
w.println(" "+auth.getAuthority());
}
... | public class class_name {
public void report(PrintWriter w) {
w.println("You are authenticated as: "+authentication.getName());
w.println("Groups that you are in:");
for (GrantedAuthority auth : authentication.getAuthorities()) {
w.println(" "+auth.getAuthority()); // depends on co... |
public class class_name {
@Override
public int getInt(final String key, final int defolt) {
try {
String value = get(key);
if (value == null) {
return defolt;
}
return Integer.parseInt(value);
} catch (NumberFormatException ex) {
throw new ConversionException(ex);
}
} } | public class class_name {
@Override
public int getInt(final String key, final int defolt) {
try {
String value = get(key);
if (value == null) {
return defolt; // depends on control dependency: [if], data = [none]
}
return Integer.parseInt(value); // depends on control dependency: [try], data = [no... |
public class class_name {
public InstanceResizePolicy withInstancesToTerminate(String... instancesToTerminate) {
if (this.instancesToTerminate == null) {
setInstancesToTerminate(new com.amazonaws.internal.SdkInternalList<String>(instancesToTerminate.length));
}
for (String ele : ins... | public class class_name {
public InstanceResizePolicy withInstancesToTerminate(String... instancesToTerminate) {
if (this.instancesToTerminate == null) {
setInstancesToTerminate(new com.amazonaws.internal.SdkInternalList<String>(instancesToTerminate.length)); // depends on control dependency: [if],... |
public class class_name {
public Long asLongObj() {
if (current == null)
return null;
if (current instanceof Number) {
if (current instanceof Long)
return (Long) current;
if (current instanceof Integer)
return Long.valueOf(((Number) current).longValue());
return null;
}
return null;
} } | public class class_name {
public Long asLongObj() {
if (current == null)
return null;
if (current instanceof Number) {
if (current instanceof Long)
return (Long) current;
if (current instanceof Integer)
return Long.valueOf(((Number) current).longValue());
return null; // depends on control depe... |
public class class_name {
public static int countMatches(String str, String sub) {
if (isEmpty(str) || isEmpty(sub)) {
return 0;
}
int count = 0;
int idx = 0;
while ((idx = str.indexOf(sub, idx)) != -1) {
count++;
idx += sub.length();
}
return cou... | public class class_name {
public static int countMatches(String str, String sub) {
if (isEmpty(str) || isEmpty(sub)) {
return 0; // depends on control dependency: [if], data = [none]
}
int count = 0;
int idx = 0;
while ((idx = str.indexOf(sub, idx)) != -1) {
count++; /... |
public class class_name {
public Reference parse(String sig) throws ParseException {
// Break sig apart into qualifiedExpr member paramTypes.
JCTree qualExpr;
Name member;
List<JCTree> paramTypes;
Log.DeferredDiagnosticHandler deferredDiagnosticHandler
= new Lo... | public class class_name {
public Reference parse(String sig) throws ParseException {
// Break sig apart into qualifiedExpr member paramTypes.
JCTree qualExpr;
Name member;
List<JCTree> paramTypes;
Log.DeferredDiagnosticHandler deferredDiagnosticHandler
= new Lo... |
public class class_name {
public static boolean isAnyNull(Object... _objects) {
if (_objects == null) {
return true;
}
for (Object obj : _objects) {
if (obj == null) {
return true;
}
}
return false;
} } | public class class_name {
public static boolean isAnyNull(Object... _objects) {
if (_objects == null) {
return true; // depends on control dependency: [if], data = [none]
}
for (Object obj : _objects) {
if (obj == null) {
return true; // depends on contro... |
public class class_name {
public static String nameHash(X500Principal subjectDN) {
try {
return hash(encodePrincipal(subjectDN));
} catch (Exception e) {
logger.error("", e);
return null;
}
} } | public class class_name {
public static String nameHash(X500Principal subjectDN) {
try {
return hash(encodePrincipal(subjectDN)); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
logger.error("", e);
return null;
} // depends on ... |
public class class_name {
public static Date parseFromIso8601(String s) {
synchronized (MONITOR) {
try {
return ISO8601.parse(s);
} catch (ParseException e) {
throw new IllegalArgumentException("Unable to parse date", e);
}
}
} } | public class class_name {
public static Date parseFromIso8601(String s) {
synchronized (MONITOR) {
try {
return ISO8601.parse(s); // depends on control dependency: [try], data = [none]
} catch (ParseException e) {
throw new IllegalArgumentException("Unabl... |
public class class_name {
private String getTaskType(TaskInProgress tip) {
if (tip.isJobCleanupTask()) {
return Values.CLEANUP.name();
} else if (tip.isJobSetupTask()) {
return Values.SETUP.name();
} else if (tip.isMapTask()) {
return Values.MAP.name();
} else {
return Values.RE... | public class class_name {
private String getTaskType(TaskInProgress tip) {
if (tip.isJobCleanupTask()) {
return Values.CLEANUP.name(); // depends on control dependency: [if], data = [none]
} else if (tip.isJobSetupTask()) {
return Values.SETUP.name(); // depends on control dependency: [if], data = ... |
public class class_name {
public static String generatePassword(int length)
{
Params.strictPositive(length, "Password length");
StringBuilder password = new StringBuilder(length);
Random random = new Random();
for(int i = 0; i < length; i++) {
String charCategory = PASSWORD_DICTIONARY[r... | public class class_name {
public static String generatePassword(int length)
{
Params.strictPositive(length, "Password length");
StringBuilder password = new StringBuilder(length);
Random random = new Random();
for(int i = 0; i < length; i++) {
String charCategory = PASSWORD_DICTIONARY[r... |
public class class_name {
public Callable<?> get(String id, Class<?> type) {
Resolver callable = this.id2callableMap.get(id);
if (callable == null) {
callable = new Resolver(id, type);
this.id2callableMap.put(id, callable);
}
return callable;
} } | public class class_name {
public Callable<?> get(String id, Class<?> type) {
Resolver callable = this.id2callableMap.get(id);
if (callable == null) {
callable = new Resolver(id, type); // depends on control dependency: [if], data = [none]
this.id2callableMap.put(id, callable); // depends on contro... |
public class class_name {
private static DSFactory doCreate(Setting setting) {
try {
return new HikariDSFactory(setting);
} catch (NoClassDefFoundError e) {
// ignore
}
try {
return new DruidDSFactory(setting);
} catch (NoClassDefFoundError e) {
// ignore
}
try {
return new Tom... | public class class_name {
private static DSFactory doCreate(Setting setting) {
try {
return new HikariDSFactory(setting);
// depends on control dependency: [try], data = [none]
} catch (NoClassDefFoundError e) {
// ignore
}
// depends on control dependency: [catch], data = [none]
try {
return n... |
public class class_name {
public static IntStreamEx of(InputStream is) {
Spliterator.OfInt spliterator = new AbstractIntSpliterator(Long.MAX_VALUE, Spliterator.ORDERED
| Spliterator.NONNULL) {
@Override
public boolean tryAdvance(IntConsumer action) {
try {
... | public class class_name {
public static IntStreamEx of(InputStream is) {
Spliterator.OfInt spliterator = new AbstractIntSpliterator(Long.MAX_VALUE, Spliterator.ORDERED
| Spliterator.NONNULL) {
@Override
public boolean tryAdvance(IntConsumer action) {
try {
... |
public class class_name {
public static boolean contentEqualsIgnoreCase(CharSequence a, CharSequence b) {
if (a == null || b == null) {
return a == b;
}
if (a.getClass() == AsciiString.class) {
return ((AsciiString) a).contentEqualsIgnoreCase(b);
}
if (b... | public class class_name {
public static boolean contentEqualsIgnoreCase(CharSequence a, CharSequence b) {
if (a == null || b == null) {
return a == b; // depends on control dependency: [if], data = [none]
}
if (a.getClass() == AsciiString.class) {
return ((AsciiString) ... |
public class class_name {
boolean bindAttribute(String ns, String wildcard, AttributeActionSet actions) {
NamespaceSpecification nss = new NamespaceSpecification(ns, wildcard);
if (nssAttributeMap.get(nss) != null)
return false;
for (Enumeration e = nssAttributeMap.keys(); e.hasMoreElements();) {
... | public class class_name {
boolean bindAttribute(String ns, String wildcard, AttributeActionSet actions) {
NamespaceSpecification nss = new NamespaceSpecification(ns, wildcard);
if (nssAttributeMap.get(nss) != null)
return false;
for (Enumeration e = nssAttributeMap.keys(); e.hasMoreElements();) {
... |
public class class_name {
public static boolean containsArgument(String[] args, String arg) {
if (args == null || arg == null || arg.length() == 0 || args.length == 0) {
return false;
} else {
for (String a : args) {
if (a.equalsIgnoreCase(arg)) {
... | public class class_name {
public static boolean containsArgument(String[] args, String arg) {
if (args == null || arg == null || arg.length() == 0 || args.length == 0) {
return false; // depends on control dependency: [if], data = [none]
} else {
for (String a : args) {
... |
public class class_name {
public final synchronized boolean evalSuccess(Operation<?> operation, Hint... hints) {
final boolean dummyRoot = stack.isEmpty();
if (dummyRoot) {
// add a root frame to preserve our cache "around" the supports/eval lifecycle, bypassing #push():
stack.p... | public class class_name {
public final synchronized boolean evalSuccess(Operation<?> operation, Hint... hints) {
final boolean dummyRoot = stack.isEmpty();
if (dummyRoot) {
// add a root frame to preserve our cache "around" the supports/eval lifecycle, bypassing #push():
stack.p... |
public class class_name {
@Deprecated
public <T> T fromDb(final Datastore datastore, final DBObject dbObject, final T entity, final EntityCache cache) {
//hack to bypass things and just read the value.
if (entity instanceof MappedField) {
readMappedField(datastore, (MappedField) entity,... | public class class_name {
@Deprecated
public <T> T fromDb(final Datastore datastore, final DBObject dbObject, final T entity, final EntityCache cache) {
//hack to bypass things and just read the value.
if (entity instanceof MappedField) {
readMappedField(datastore, (MappedField) entity,... |
public class class_name {
public Observable<ServiceResponse<NameAvailabilityInner>> executeWithServiceResponseAsync(NameAvailabilityRequest nameAvailabilityRequest) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required a... | public class class_name {
public Observable<ServiceResponse<NameAvailabilityInner>> executeWithServiceResponseAsync(NameAvailabilityRequest nameAvailabilityRequest) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required a... |
public class class_name {
public void write(File file) {
FileOutputStream out = null;
try {
out = new FileOutputStream(file, false);
workbook.write(out);
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
} catch (IOException e) {
new RuntimeException(e);... | public class class_name {
public void write(File file) {
FileOutputStream out = null;
try {
out = new FileOutputStream(file, false);
// depends on control dependency: [try], data = [none]
workbook.write(out);
// depends on control dependency: [try], data = [none]
} catch (FileNotFoundExcep... |
public class class_name {
@Override
public Long zCard(byte[] key) {
try {
if (isPipelined()) {
pipeline(new JedisResult(pipeline.zcard(key)));
return null;
}
return client.zcard(key);
} catch (Exception ex) {
throw con... | public class class_name {
@Override
public Long zCard(byte[] key) {
try {
if (isPipelined()) {
pipeline(new JedisResult(pipeline.zcard(key))); // depends on control dependency: [if], data = [none]
return null; // depends on control dependency: [if], data = [none]... |
public class class_name {
int getIntValue(Keyframe<Integer> keyframe, float keyframeProgress) {
if (keyframe.startValue == null || keyframe.endValue == null) {
throw new IllegalStateException("Missing values for keyframe.");
}
if (valueCallback != null) {
//noinspection ConstantConditions
... | public class class_name {
int getIntValue(Keyframe<Integer> keyframe, float keyframeProgress) {
if (keyframe.startValue == null || keyframe.endValue == null) {
throw new IllegalStateException("Missing values for keyframe.");
}
if (valueCallback != null) {
//noinspection ConstantConditions
... |
public class class_name {
public long add(Object item) {
tailSequence++;
if (tailSequence - items.length == headSequence) {
headSequence++;
}
int index = toIndex(tailSequence);
items[index] = item;
return tailSequence;
} } | public class class_name {
public long add(Object item) {
tailSequence++;
if (tailSequence - items.length == headSequence) {
headSequence++; // depends on control dependency: [if], data = [none]
}
int index = toIndex(tailSequence);
items[index] = item;
ret... |
public class class_name {
protected boolean verifyPatternMatch(String text) {
if (this.expectedPattern == null) {
return false;
}
return this.expectedPattern.matcher(text).matches();
} } | public class class_name {
protected boolean verifyPatternMatch(String text) {
if (this.expectedPattern == null) {
return false; // depends on control dependency: [if], data = [none]
}
return this.expectedPattern.matcher(text).matches();
} } |
public class class_name {
protected void serializeElement(Element node, boolean bStart)
throws SAXException {
if (bStart) {
fElementDepth++;
// We use the Xalan specific startElement and starPrefixMapping calls
// (and addAttribute and namespaceAfterStartElement) a... | public class class_name {
protected void serializeElement(Element node, boolean bStart)
throws SAXException {
if (bStart) {
fElementDepth++;
// We use the Xalan specific startElement and starPrefixMapping calls
// (and addAttribute and namespaceAfterStartElement) a... |
public class class_name {
public RecordIterator getRecords() {
verifyProperty(dbname, "database");
verifyProperty(collectionName, "collection");
try {
final MongoClient mongo;
final DB database;
final DBCollection collection;
final DBCursor result;
final DBObject q... | public class class_name {
public RecordIterator getRecords() {
verifyProperty(dbname, "database");
verifyProperty(collectionName, "collection");
try {
final MongoClient mongo;
final DB database;
final DBCollection collection;
final DBCursor result;
final DBObject q... |
public class class_name {
boolean checkReplay(int seqNo, long guessedIndex) {
// compute the index of previously received packet and its
// delta to the new received packet
long localIndex = (((long) this.roc) << 16) | this.seqNum;
long delta = guessedIndex - localIndex;
if (delta > 0) {
/* Packet not ye... | public class class_name {
boolean checkReplay(int seqNo, long guessedIndex) {
// compute the index of previously received packet and its
// delta to the new received packet
long localIndex = (((long) this.roc) << 16) | this.seqNum;
long delta = guessedIndex - localIndex;
if (delta > 0) {
/* Packet not ye... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.