code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public <T> T findByDn(Name dn, final Class<T> clazz) {
if (LOG.isDebugEnabled()) {
LOG.debug(String.format("Reading Entry at - %s$1", dn));
}
// Make sure the class is OK before doing the lookup
String[] attributes = odm.manageClass(c... | public class class_name {
@Override
public <T> T findByDn(Name dn, final Class<T> clazz) {
if (LOG.isDebugEnabled()) {
LOG.debug(String.format("Reading Entry at - %s$1", dn)); // depends on control dependency: [if], data = [none]
}
// Make sure the class is OK before doing the ... |
public class class_name {
public List<Decorators<Beans<T>>> getAllDecorators()
{
List<Decorators<Beans<T>>> list = new ArrayList<Decorators<Beans<T>>>();
List<Node> nodeList = childNode.get("decorators");
for(Node node: nodeList)
{
Decorators<Beans<T>> type = new DecoratorsImpl<Bea... | public class class_name {
public List<Decorators<Beans<T>>> getAllDecorators()
{
List<Decorators<Beans<T>>> list = new ArrayList<Decorators<Beans<T>>>();
List<Node> nodeList = childNode.get("decorators");
for(Node node: nodeList)
{
Decorators<Beans<T>> type = new DecoratorsImpl<Bea... |
public class class_name {
public ProjectionPoint latLonToProj(LatLonPoint latLon,
ProjectionPointImpl result) {
double toX, toY;
double fromLat = latLon.getLatitude();
double fromLon = latLon.getLongitude();
double lon = Math.toRadians(fromLon);
double ... | public class class_name {
public ProjectionPoint latLonToProj(LatLonPoint latLon,
ProjectionPointImpl result) {
double toX, toY;
double fromLat = latLon.getLatitude();
double fromLon = latLon.getLongitude();
double lon = Math.toRadians(fromLon);
double ... |
public class class_name {
public ExtendedSwidProcessor setAbstract(final String... abstractList) {
if (abstractList.length > 0) {
for (String _abstract : abstractList) {
AbstractComplexType act = new AbstractComplexType();
act.setValue(_abstract);
swi... | public class class_name {
public ExtendedSwidProcessor setAbstract(final String... abstractList) {
if (abstractList.length > 0) {
for (String _abstract : abstractList) {
AbstractComplexType act = new AbstractComplexType();
act.setValue(_abstract); // depends on contr... |
public class class_name {
public static String expand(final char a, final char b) {
final StringBuilder out = new StringBuilder();
if (a < b) {
char c = a;
while (c <= b) {
out.append(c);
c = (char) (c + 1);
}
} else if (a > b) {
char c = a;
while (c >= b) {
out.append(c);
c = (ch... | public class class_name {
public static String expand(final char a, final char b) {
final StringBuilder out = new StringBuilder();
if (a < b) {
char c = a;
while (c <= b) {
out.append(c); // depends on control dependency: [while], data = [(c]
c = (char) (c + 1); // depends on control dependency: [wh... |
public class class_name {
@Override
public EClass getIfcElectricMotorType() {
if (ifcElectricMotorTypeEClass == null) {
ifcElectricMotorTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(218);
}
return ifcElectricMotorTypeEClass;
} } | public class class_name {
@Override
public EClass getIfcElectricMotorType() {
if (ifcElectricMotorTypeEClass == null) {
ifcElectricMotorTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(218);
// depends on control dependency: [if], data = [none]
... |
public class class_name {
public void insertStopRegexes(String... regexes) {
for (String regex : regexes) {
try {
regexList.add(Pattern.compile(regex));
} catch (Exception e) {
e.printStackTrace();
LOG.error("regex err : " + regex, e);
... | public class class_name {
public void insertStopRegexes(String... regexes) {
for (String regex : regexes) {
try {
regexList.add(Pattern.compile(regex)); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
e.printStackTrace();
... |
public class class_name {
public int convertInternalToExternal(Object recordOwner)
{
if (this.getConvertToNative() == null)
{
BaseMessageHeader trxMessageHeader = this.getMessage().getMessageHeader();
String strMessageClass = (String)trxMessageHeader.get(TrxMessageHeader.MES... | public class class_name {
public int convertInternalToExternal(Object recordOwner)
{
if (this.getConvertToNative() == null)
{
BaseMessageHeader trxMessageHeader = this.getMessage().getMessageHeader();
String strMessageClass = (String)trxMessageHeader.get(TrxMessageHeader.MES... |
public class class_name {
@Override
public double getDaycountFraction(LocalDate startDate, LocalDate endDate) {
if(startDate.isAfter(endDate)) {
return -getDaycountFraction(endDate,startDate);
}
/*
* Find the "fractionalPeriodEnd", i.e. subtract whole years from endDate.
*/
LocalDate fractionalPerio... | public class class_name {
@Override
public double getDaycountFraction(LocalDate startDate, LocalDate endDate) {
if(startDate.isAfter(endDate)) {
return -getDaycountFraction(endDate,startDate); // depends on control dependency: [if], data = [none]
}
/*
* Find the "fractionalPeriodEnd", i.e. subtract whole... |
public class class_name {
public static String[] sortData(final File csvData, final String encoding)
throws FileNotFoundException, IOException
{
final List<String> fn = new ArrayList<>();
try (BufferedReader reader = (BufferedReader)StreamExtensions.getReader(csvData, encoding,
false))
{
// the line.
... | public class class_name {
public static String[] sortData(final File csvData, final String encoding)
throws FileNotFoundException, IOException
{
final List<String> fn = new ArrayList<>();
try (BufferedReader reader = (BufferedReader)StreamExtensions.getReader(csvData, encoding,
false))
{
// the line.
... |
public class class_name {
private static InputMapping<Object> createInputMapping( Object value ){
if( value instanceof String ){
String text = (String)value;
if( ElUtil.hasBrackets( text ) ){
return new ExpressionLanguageMapping<Object>( text );
}
}
... | public class class_name {
private static InputMapping<Object> createInputMapping( Object value ){
if( value instanceof String ){
String text = (String)value;
if( ElUtil.hasBrackets( text ) ){
return new ExpressionLanguageMapping<Object>( text ); // depends on control dep... |
public class class_name {
public void stop()
{
Principal user=null;
try
{
// Handle run as
if (_runAs!=null && _realm!=null)
user=_realm.pushRole(null,_runAs);
if (_servlet!=null)
_servlet.destroy();
... | public class class_name {
public void stop()
{
Principal user=null;
try
{
// Handle run as
if (_runAs!=null && _realm!=null)
user=_realm.pushRole(null,_runAs);
if (_servlet!=null)
_servlet.destroy();
... |
public class class_name {
void trackFailure(@Nullable IOException e) {
assert (!Thread.holdsLock(connectionPool));
synchronized (connectionPool) {
if (e instanceof StreamResetException) {
ErrorCode errorCode = ((StreamResetException) e).errorCode;
if (errorCode == ErrorCode.REFUSED_STREAM... | public class class_name {
void trackFailure(@Nullable IOException e) {
assert (!Thread.holdsLock(connectionPool));
synchronized (connectionPool) {
if (e instanceof StreamResetException) {
ErrorCode errorCode = ((StreamResetException) e).errorCode;
if (errorCode == ErrorCode.REFUSED_STREAM... |
public class class_name {
public void marshall(DetectSentimentRequest detectSentimentRequest, ProtocolMarshaller protocolMarshaller) {
if (detectSentimentRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(DetectSentimentRequest detectSentimentRequest, ProtocolMarshaller protocolMarshaller) {
if (detectSentimentRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
static void
JS_dtostr(StringBuilder buffer, int mode, int precision, double d)
{
int decPt; /* Position of decimal point relative to first digit returned by JS_dtoa */
boolean[] sign = new boolean[1]; /* true if the sign bi... | public class class_name {
static void
JS_dtostr(StringBuilder buffer, int mode, int precision, double d)
{
int decPt; /* Position of decimal point relative to first digit returned by JS_dtoa */
boolean[] sign = new boolean[1]; /* true if the sign bi... |
public class class_name {
public void setDeclaringType(JvmDeclaredType newDeclaringType)
{
if (newDeclaringType != eInternalContainer() || (eContainerFeatureID() != TypesPackage.JVM_MEMBER__DECLARING_TYPE && newDeclaringType != null))
{
if (EcoreUtil.isAncestor(this, newDeclaringType))
throw new IllegalArg... | public class class_name {
public void setDeclaringType(JvmDeclaredType newDeclaringType)
{
if (newDeclaringType != eInternalContainer() || (eContainerFeatureID() != TypesPackage.JVM_MEMBER__DECLARING_TYPE && newDeclaringType != null))
{
if (EcoreUtil.isAncestor(this, newDeclaringType))
throw new IllegalArg... |
public class class_name {
public java.util.List<Trail> getTrailList() {
if (trailList == null) {
trailList = new com.amazonaws.internal.SdkInternalList<Trail>();
}
return trailList;
} } | public class class_name {
public java.util.List<Trail> getTrailList() {
if (trailList == null) {
trailList = new com.amazonaws.internal.SdkInternalList<Trail>(); // depends on control dependency: [if], data = [none]
}
return trailList;
} } |
public class class_name {
@Override
public boolean containsKey(Object key) {
if (key == null) {
throw new NullPointerException();
}
CachedValue<K, V> entry = map.get(key);
if (entry == null) {
return false;
}
if (isValueExpired(entry)... | public class class_name {
@Override
public boolean containsKey(Object key) {
if (key == null) {
throw new NullPointerException();
}
CachedValue<K, V> entry = map.get(key);
if (entry == null) {
return false; // depends on control dependency: [if], dat... |
public class class_name {
private void computeSpan( List<AssociatedPair> points ) {
Q.reshape(points.size(), 9);
int index = 0;
for( int i = 0; i < points.size(); i++ ) {
AssociatedPair p = points.get(i);
Point2D_F64 a = p.p2;
Point2D_F64 b = p.p1;
// The points are assumed to be in homogeneous c... | public class class_name {
private void computeSpan( List<AssociatedPair> points ) {
Q.reshape(points.size(), 9);
int index = 0;
for( int i = 0; i < points.size(); i++ ) {
AssociatedPair p = points.get(i);
Point2D_F64 a = p.p2;
Point2D_F64 b = p.p1;
// The points are assumed to be in homogeneous c... |
public class class_name {
@Override
public void addNextProcessor(ChainedResourceBundlePostProcessor nextProcessor) {
if (!isVariantPostProcessor) {
isVariantPostProcessor = nextProcessor.isVariantPostProcessor();
}
if (this.nextProcessor == null) {
this.nextProcessor = nextProcessor;
} else {
this.ne... | public class class_name {
@Override
public void addNextProcessor(ChainedResourceBundlePostProcessor nextProcessor) {
if (!isVariantPostProcessor) {
isVariantPostProcessor = nextProcessor.isVariantPostProcessor(); // depends on control dependency: [if], data = [none]
}
if (this.nextProcessor == null) {
thi... |
public class class_name {
protected void injectServices(SlingBean component) throws IllegalAccessException {
final Field[] declaredFields;
if (fieldCache.containsKey(component.getClass())) {
declaredFields = fieldCache.get(component.getClass());
} else {
declaredFie... | public class class_name {
protected void injectServices(SlingBean component) throws IllegalAccessException {
final Field[] declaredFields;
if (fieldCache.containsKey(component.getClass())) {
declaredFields = fieldCache.get(component.getClass());
} else {
declaredFie... |
public class class_name {
public boolean visitLocationPath(ExpressionOwner owner, LocPathIterator path)
{
// Don't optimize "." or single step variable paths.
// Both of these cases could use some further optimization by themselves.
if(path instanceof SelfIteratorNoPredicate)
{
return true;
}
e... | public class class_name {
public boolean visitLocationPath(ExpressionOwner owner, LocPathIterator path)
{
// Don't optimize "." or single step variable paths.
// Both of these cases could use some further optimization by themselves.
if(path instanceof SelfIteratorNoPredicate)
{
return true; // depend... |
public class class_name {
private void setupSimplePreferencesScreen() {
if (!isSimplePreferences(this)) {
return;
}
// In the simplified UI, fragments are not used at all and we instead
// use the older PreferenceActivity APIs.
// Add 'general' preferences.
... | public class class_name {
private void setupSimplePreferencesScreen() {
if (!isSimplePreferences(this)) {
return; // depends on control dependency: [if], data = [none]
}
// In the simplified UI, fragments are not used at all and we instead
// use the older PreferenceActivit... |
public class class_name {
public final Mono<T> singleOrEmpty() {
if (this instanceof Callable) {
@SuppressWarnings("unchecked")
Callable<T> thiz = (Callable<T>)this;
return convertToMono(thiz);
}
return Mono.onAssembly(new MonoSingle<>(this, null, true));
} } | public class class_name {
public final Mono<T> singleOrEmpty() {
if (this instanceof Callable) {
@SuppressWarnings("unchecked")
Callable<T> thiz = (Callable<T>)this;
return convertToMono(thiz); // depends on control dependency: [if], data = [none]
}
return Mono.onAssembly(new MonoSingl... |
public class class_name {
protected int interpretLs(LineParser lp, MessageMgr mm){
String directory = lp.getArgs();
IOFileFilter fileFilter = new WildcardFileFilter(new String[]{
"*.ssc"
});
DirectoryLoader dl = new CommonsDirectoryWalker(directory, DirectoryFileFilter.INSTANCE, fileFilter);
if(dl.getLo... | public class class_name {
protected int interpretLs(LineParser lp, MessageMgr mm){
String directory = lp.getArgs();
IOFileFilter fileFilter = new WildcardFileFilter(new String[]{
"*.ssc"
});
DirectoryLoader dl = new CommonsDirectoryWalker(directory, DirectoryFileFilter.INSTANCE, fileFilter);
if(dl.getLo... |
public class class_name {
private Instance getNearestNeighbour(Instance inst, List<Instance> neighbourhood2, boolean inNbhd)
{
double dist = Double.MAX_VALUE;
Instance nearestNeighbour = null;
for(Instance candidateNN : neighbourhood2)
{
// If inst is in neighbourhood2 and an identical instance is found... | public class class_name {
private Instance getNearestNeighbour(Instance inst, List<Instance> neighbourhood2, boolean inNbhd)
{
double dist = Double.MAX_VALUE;
Instance nearestNeighbour = null;
for(Instance candidateNN : neighbourhood2)
{
// If inst is in neighbourhood2 and an identical instance is found... |
public class class_name {
public void getColumnHeading(TableCandidate tc) {
int headings = tc.getHeadingLineNumber();
String[][] cells = tc.getCells();
String columnHeadings = "";
for (int i=0; i<=headings; i++) {
int j = cells[i].length;
for (int k=0; k<j; k++) {
cells[i... | public class class_name {
public void getColumnHeading(TableCandidate tc) {
int headings = tc.getHeadingLineNumber();
String[][] cells = tc.getCells();
String columnHeadings = "";
for (int i=0; i<=headings; i++) {
int j = cells[i].length;
for (int k=0; k<j; k++) {
cells[i... |
public class class_name {
public long[] getSitesForPartitionsAsArray(int[] partitions) {
ArrayList<Long> all_sites = new ArrayList<Long>();
for (int p : partitions) {
List<Long> sites = getSitesForPartition(p);
for (long site : sites)
{
all_sites.add(... | public class class_name {
public long[] getSitesForPartitionsAsArray(int[] partitions) {
ArrayList<Long> all_sites = new ArrayList<Long>();
for (int p : partitions) {
List<Long> sites = getSitesForPartition(p);
for (long site : sites)
{
all_sites.add(... |
public class class_name {
@Nullable
public static ExecutorService getTtlExecutorService(@Nullable ExecutorService executorService) {
if (TtlAgent.isTtlAgentLoaded() || executorService == null || executorService instanceof TtlEnhanced) {
return executorService;
}
return new Execu... | public class class_name {
@Nullable
public static ExecutorService getTtlExecutorService(@Nullable ExecutorService executorService) {
if (TtlAgent.isTtlAgentLoaded() || executorService == null || executorService instanceof TtlEnhanced) {
return executorService; // depends on control dependency: ... |
public class class_name {
public static VersionNumber parseVersion(@Nonnull final String version) {
Check.notNull(version, "version");
VersionNumber result = new VersionNumber(new ArrayList<String>(0), version);
final Matcher matcher = VERSIONSTRING.matcher(version);
if (matcher.find()) {
final List<String... | public class class_name {
public static VersionNumber parseVersion(@Nonnull final String version) {
Check.notNull(version, "version");
VersionNumber result = new VersionNumber(new ArrayList<String>(0), version);
final Matcher matcher = VERSIONSTRING.matcher(version);
if (matcher.find()) {
final List<String... |
public class class_name {
public com.google.protobuf.ByteString
getLeaderMasterAddressBytes() {
java.lang.Object ref = leaderMasterAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.Str... | public class class_name {
public com.google.protobuf.ByteString
getLeaderMasterAddressBytes() {
java.lang.Object ref = leaderMasterAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.Str... |
public class class_name {
public static Map<String, String> populatePersistenceUnitProperties(PropertyReader reader)
{
String dbType = reader.getProperty(EthConstants.DATABASE_TYPE);
String host = reader.getProperty(EthConstants.DATABASE_HOST);
String port = reader.getProperty(EthConstants... | public class class_name {
public static Map<String, String> populatePersistenceUnitProperties(PropertyReader reader)
{
String dbType = reader.getProperty(EthConstants.DATABASE_TYPE);
String host = reader.getProperty(EthConstants.DATABASE_HOST);
String port = reader.getProperty(EthConstants... |
public class class_name {
private void updateComponentAvailability(ChargingStationId chargingStationId, ComponentId componentId, ChargingStationComponent component, Availability availability) {
if (!component.equals(ChargingStationComponent.EVSE) || !(componentId instanceof EvseId)) {
return;
... | public class class_name {
private void updateComponentAvailability(ChargingStationId chargingStationId, ComponentId componentId, ChargingStationComponent component, Availability availability) {
if (!component.equals(ChargingStationComponent.EVSE) || !(componentId instanceof EvseId)) {
return; // de... |
public class class_name {
public void setJavaScriptEnabled(boolean javaScriptEnabled)
{
this.javaScriptEnabled = javaScriptEnabled;
// and now also store this information inside a cookie!
FacesContext facesContext = FacesContext.getCurrentInstance();
if (facesContext != null)
... | public class class_name {
public void setJavaScriptEnabled(boolean javaScriptEnabled)
{
this.javaScriptEnabled = javaScriptEnabled;
// and now also store this information inside a cookie!
FacesContext facesContext = FacesContext.getCurrentInstance();
if (facesContext != null)
... |
public class class_name {
public File getDatabaseFile(String filename) {
File dbFile = null;
if (filename != null && filename.trim().length() > 0) {
dbFile = new File(filename);
}
if (dbFile == null || dbFile.isDirectory()) {
dbFile = new File(new AndroidContextUtil().getDatabasePath("logba... | public class class_name {
public File getDatabaseFile(String filename) {
File dbFile = null;
if (filename != null && filename.trim().length() > 0) {
dbFile = new File(filename); // depends on control dependency: [if], data = [(filename]
}
if (dbFile == null || dbFile.isDirectory()) {
dbFile... |
public class class_name {
public void setHealthCheckObservations(java.util.Collection<HealthCheckObservation> healthCheckObservations) {
if (healthCheckObservations == null) {
this.healthCheckObservations = null;
return;
}
this.healthCheckObservations = new com.amazonaw... | public class class_name {
public void setHealthCheckObservations(java.util.Collection<HealthCheckObservation> healthCheckObservations) {
if (healthCheckObservations == null) {
this.healthCheckObservations = null; // depends on control dependency: [if], data = [none]
return; // depends o... |
public class class_name {
public static void magnitude( ImageInterleaved transform , GrayF magnitude ) {
if( transform instanceof InterleavedF32 ) {
DiscreteFourierTransformOps.magnitude((InterleavedF32) transform, (GrayF32) magnitude);
} else if( transform instanceof InterleavedF64 ) {
DiscreteFourierTransf... | public class class_name {
public static void magnitude( ImageInterleaved transform , GrayF magnitude ) {
if( transform instanceof InterleavedF32 ) {
DiscreteFourierTransformOps.magnitude((InterleavedF32) transform, (GrayF32) magnitude); // depends on control dependency: [if], data = [none]
} else if( transform ... |
public class class_name {
static <FieldDescriptorType extends
FieldSet.FieldDescriptorLite<FieldDescriptorType>>
SmallSortedMap<FieldDescriptorType, Object> newFieldMap(int arraySize) {
return new SmallSortedMap<FieldDescriptorType, Object>(arraySize) {
@Override
@SuppressWarnings("unchecke... | public class class_name {
static <FieldDescriptorType extends
FieldSet.FieldDescriptorLite<FieldDescriptorType>>
SmallSortedMap<FieldDescriptorType, Object> newFieldMap(int arraySize) {
return new SmallSortedMap<FieldDescriptorType, Object>(arraySize) {
@Override
@SuppressWarnings("unchecke... |
public class class_name {
@Override
public SubsetMove getRandomMove(SubsetSolution solution, Random rnd) {
// get set of candidate IDs for addition (fixed IDs are discarded)
Set<Integer> addCandidates = getAddCandidates(solution);
// compute maximum number of adds
int curMaxAdds = m... | public class class_name {
@Override
public SubsetMove getRandomMove(SubsetSolution solution, Random rnd) {
// get set of candidate IDs for addition (fixed IDs are discarded)
Set<Integer> addCandidates = getAddCandidates(solution);
// compute maximum number of adds
int curMaxAdds = m... |
public class class_name {
private String createFragment(final Value resource) {
if (resource instanceof URI) {
String frag = ((URI) resource).getLocalName();
return RESERVED_FRAGMENTS.contains(frag) ? frag + "_" : frag;
} else {
return resource.stringValue();
... | public class class_name {
private String createFragment(final Value resource) {
if (resource instanceof URI) {
String frag = ((URI) resource).getLocalName();
return RESERVED_FRAGMENTS.contains(frag) ? frag + "_" : frag; // depends on control dependency: [if], data = [none]
} els... |
public class class_name {
@Override
public String getParameter(String name) {
if (this.charset.equalsIgnoreCase(this.originCharset)) {
return super.getParameter(name);
}
String value = super.getParameter(name);
if (value == null) {
return null;
}
... | public class class_name {
@Override
public String getParameter(String name) {
if (this.charset.equalsIgnoreCase(this.originCharset)) {
return super.getParameter(name); // depends on control dependency: [if], data = [none]
}
String value = super.getParameter(name);
if (va... |
public class class_name {
public static String deepToString(final Object obj) {
if (obj == null) {
return NULL_STRING;
}
if (obj.getClass().isArray()) {
return typeOf(obj.getClass()).deepToString(obj);
}
return obj.toString();
} } | public class class_name {
public static String deepToString(final Object obj) {
if (obj == null) {
return NULL_STRING;
// depends on control dependency: [if], data = [none]
}
if (obj.getClass().isArray()) {
return typeOf(obj.getClass()).deepToString(obj);
// depe... |
public class class_name {
public static ZoneId of(String zoneId) {
Jdk8Methods.requireNonNull(zoneId, "zoneId");
if (zoneId.equals("Z")) {
return ZoneOffset.UTC;
}
if (zoneId.length() == 1) {
throw new DateTimeException("Invalid zone: " + zoneId);
}
... | public class class_name {
public static ZoneId of(String zoneId) {
Jdk8Methods.requireNonNull(zoneId, "zoneId");
if (zoneId.equals("Z")) {
return ZoneOffset.UTC; // depends on control dependency: [if], data = [none]
}
if (zoneId.length() == 1) {
throw new DateTim... |
public class class_name {
public int getIdForNamespace(String uri)
{
int index = m_values.indexOf(uri);
if (index < 0)
{
m_values.addElement(uri);
return m_valueIndex++;
}
else
return index;
} } | public class class_name {
public int getIdForNamespace(String uri)
{
int index = m_values.indexOf(uri);
if (index < 0)
{
m_values.addElement(uri); // depends on control dependency: [if], data = [none]
return m_valueIndex++; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public boolean shutdownService(String serviceClass, Object service)
{
if (service == null)
return false;
if (bundleContext == null)
return false;
String filter = null;
if (serviceClass == null)
if (!(service instanceof St... | public class class_name {
public boolean shutdownService(String serviceClass, Object service)
{
if (service == null)
return false;
if (bundleContext == null)
return false;
String filter = null;
if (serviceClass == null)
if (!(service instanceof St... |
public class class_name {
public @CheckForNull
TypeQualifierAnnotation getEffectiveTypeQualifierAnnotation() {
boolean firstPartialResult = true;
TypeQualifierAnnotation effective = null;
for (PartialResult partialResult : partialResultList) {
if (firstPartialResult) {
... | public class class_name {
public @CheckForNull
TypeQualifierAnnotation getEffectiveTypeQualifierAnnotation() {
boolean firstPartialResult = true;
TypeQualifierAnnotation effective = null;
for (PartialResult partialResult : partialResultList) {
if (firstPartialResult) {
... |
public class class_name {
protected TransformationDescription buildDefault(final DiscardPolicy discardPolicy, boolean inherited, final AttributeTransformationDescriptionBuilderImpl.AttributeTransformationDescriptionBuilderRegistry registry, List<String> discardedOperations) {
// Build attribute rules
f... | public class class_name {
protected TransformationDescription buildDefault(final DiscardPolicy discardPolicy, boolean inherited, final AttributeTransformationDescriptionBuilderImpl.AttributeTransformationDescriptionBuilderRegistry registry, List<String> discardedOperations) {
// Build attribute rules
f... |
public class class_name {
public static String[] getTokens(String str, String delim, boolean trim){
StringTokenizer stok = new StringTokenizer(str, delim);
String tokens[] = new String[stok.countTokens()];
for(int i=0; i<tokens.length; i++){
tokens[i] = stok.nextToken();
... | public class class_name {
public static String[] getTokens(String str, String delim, boolean trim){
StringTokenizer stok = new StringTokenizer(str, delim);
String tokens[] = new String[stok.countTokens()];
for(int i=0; i<tokens.length; i++){
tokens[i] = stok.nextToken(); // depends ... |
public class class_name {
public T removeGeoPackage(String name) {
T removed = null;
PropertiesCoreExtension<T, ?, ?, ?> properties = propertiesMap
.remove(name);
if (properties != null) {
removed = properties.getGeoPackage();
}
return removed;
} } | public class class_name {
public T removeGeoPackage(String name) {
T removed = null;
PropertiesCoreExtension<T, ?, ?, ?> properties = propertiesMap
.remove(name);
if (properties != null) {
removed = properties.getGeoPackage(); // depends on control dependency: [if], data = [none]
}
return removed;
} ... |
public class class_name {
@Nullable
private HashMap<Integer, VertCoordType> readFnmocTable3(String path) {
try (InputStream is = GribResourceReader.getInputStream(path)) {
SAXBuilder builder = new SAXBuilder();
org.jdom2.Document doc = builder.build(is);
Element root = doc.getRootElement()... | public class class_name {
@Nullable
private HashMap<Integer, VertCoordType> readFnmocTable3(String path) {
try (InputStream is = GribResourceReader.getInputStream(path)) {
SAXBuilder builder = new SAXBuilder();
org.jdom2.Document doc = builder.build(is);
Element root = doc.getRootElement()... |
public class class_name {
public int getDataFrameSize(DataFrame dataFrame)
{
long l = dataFrame != null ? dataFrame.count() : 0;
if (l < Integer.MIN_VALUE || l > Integer.MAX_VALUE)
{
logger.error(l + " cannot be cast to int without changing its value.");
return 0;
... | public class class_name {
public int getDataFrameSize(DataFrame dataFrame)
{
long l = dataFrame != null ? dataFrame.count() : 0;
if (l < Integer.MIN_VALUE || l > Integer.MAX_VALUE)
{
logger.error(l + " cannot be cast to int without changing its value."); // depends on control de... |
public class class_name {
@Override
public int syncUp() {
// Copy entire entry from neighboring DS node
int count = 0;
for (int i = 0; ((i < serverConfig.getRegistrySyncRetries()) && (count == 0)); i++) {
if (i > 0) {
try {
Thread.sleep(serve... | public class class_name {
@Override
public int syncUp() {
// Copy entire entry from neighboring DS node
int count = 0;
for (int i = 0; ((i < serverConfig.getRegistrySyncRetries()) && (count == 0)); i++) {
if (i > 0) {
try {
Thread.sleep(serve... |
public class class_name {
public void invokeRequest (ClientObject caller, byte[] serializedAction,
InvocationService.ResultListener listener)
{
NodeRequest request = null;
try {
ObjectInputStream oin =
new ObjectInputStream(new ByteArrayInputStream(serializedActi... | public class class_name {
public void invokeRequest (ClientObject caller, byte[] serializedAction,
InvocationService.ResultListener listener)
{
NodeRequest request = null;
try {
ObjectInputStream oin =
new ObjectInputStream(new ByteArrayInputStream(serializedActi... |
public class class_name {
public void load(Path path) throws IOException {
FileUtils.checkPath(path);
logger.debug("Loading variant metadata from '{}'", path.toAbsolutePath().toString());
variantMetadata = mapper.readValue(path.toFile(), VariantMetadata.class);
// We need to add Indivi... | public class class_name {
public void load(Path path) throws IOException {
FileUtils.checkPath(path);
logger.debug("Loading variant metadata from '{}'", path.toAbsolutePath().toString());
variantMetadata = mapper.readValue(path.toFile(), VariantMetadata.class);
// We need to add Indivi... |
public class class_name {
protected Credentials configureCredentials(AuthConfiguration auth) {
if (null != auth.getCredentialType() && auth.getCredentialType().equalsIgnoreCase(AuthConfiguration.NT_CREDS)) {
return new NTCredentials(auth.getUsername(), auth.getPassword(), auth.getHostname(), auth.... | public class class_name {
protected Credentials configureCredentials(AuthConfiguration auth) {
if (null != auth.getCredentialType() && auth.getCredentialType().equalsIgnoreCase(AuthConfiguration.NT_CREDS)) {
return new NTCredentials(auth.getUsername(), auth.getPassword(), auth.getHostname(), auth.... |
public class class_name {
public Geometry execute(Geometry geometry) {
if (geometry == null) {
return null;
}
if (geometry instanceof LinearRing) {
if (coordIndex <= 0) {
coordIndex = 0;
} else if (coordIndex > geometry.getNumPoints() - 2) {
coordIndex = geometry.getNumPoints() - 2;
}
Coor... | public class class_name {
public Geometry execute(Geometry geometry) {
if (geometry == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (geometry instanceof LinearRing) {
if (coordIndex <= 0) {
coordIndex = 0; // depends on control dependency: [if], data = [none]
} els... |
public class class_name {
@Override
public String themePath(String theTheme) {
StringBuilder src = dots(new StringBuilder());
if(theTheme==null||theTheme.length()==0) {
src.append(theme);
if(theme.length()>0)src.append('/');
} else {
src.append(theTheme);
src.append('/');
}
return src.toString(... | public class class_name {
@Override
public String themePath(String theTheme) {
StringBuilder src = dots(new StringBuilder());
if(theTheme==null||theTheme.length()==0) {
src.append(theme); // depends on control dependency: [if], data = [none]
if(theme.length()>0)src.append('/');
} else {
src.append(theT... |
public class class_name {
@Override
protected void initializeDefaults() {
String err = "A BEL Framework system configuration must be present";
if (configurationFile != null) {
err += " (using " + configurationFile + ")";
}
throw new BELRuntimeException(err, MISSING_SYSTE... | public class class_name {
@Override
protected void initializeDefaults() {
String err = "A BEL Framework system configuration must be present";
if (configurationFile != null) {
err += " (using " + configurationFile + ")"; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static void join(final Thread thread) {
try {
thread.join();
} catch (InterruptedException inex) {
Thread.currentThread().interrupt();
}
} } | public class class_name {
public static void join(final Thread thread) {
try {
thread.join(); // depends on control dependency: [try], data = [none]
} catch (InterruptedException inex) {
Thread.currentThread().interrupt();
} // depends on control dependency: [catch], data = [none]
} } |
public class class_name {
public String getAccessKeyAsString() {
char accessKey = getComponentModel().accessKey;
if (Character.isLetterOrDigit(accessKey)) {
return String.valueOf(accessKey);
}
return null;
} } | public class class_name {
public String getAccessKeyAsString() {
char accessKey = getComponentModel().accessKey;
if (Character.isLetterOrDigit(accessKey)) {
return String.valueOf(accessKey); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public static TimeZone toTimeZone(String strTimezone, TimeZone defaultValue) {
if (strTimezone == null) return defaultValue;
String strTimezoneTrimmed = StringUtil.replace(strTimezone.trim().toLowerCase(), " ", "", false);
TimeZone tz = getTimeZoneFromIDS(strTimezoneTrimmed);
if (tz != n... | public class class_name {
public static TimeZone toTimeZone(String strTimezone, TimeZone defaultValue) {
if (strTimezone == null) return defaultValue;
String strTimezoneTrimmed = StringUtil.replace(strTimezone.trim().toLowerCase(), " ", "", false);
TimeZone tz = getTimeZoneFromIDS(strTimezoneTrimmed);
if (tz != n... |
public class class_name {
@Override
public void close() {
try {
if ( content != null ) content.close();
} catch (XMLStreamException e) {
logger.error("Failed to close underlying XMLStreamReader",e);
throw new MarkLogicIOException(e);
// whether that failed or not, attempt to close und... | public class class_name {
@Override
public void close() {
try {
if ( content != null ) content.close();
} catch (XMLStreamException e) {
logger.error("Failed to close underlying XMLStreamReader",e);
throw new MarkLogicIOException(e);
// whether that failed or not, attempt to close und... |
public class class_name {
private void notifyReadySendListeners(BlockingQueue<Pair<SendListener, Conversation>> readySendCallbacks) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyReadySendListeners", readySendCallbacks);
try {
for (Pair<SendListener... | public class class_name {
private void notifyReadySendListeners(BlockingQueue<Pair<SendListener, Conversation>> readySendCallbacks) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyReadySendListeners", readySendCallbacks);
try {
for (Pair<SendListener... |
public class class_name {
public void calculateEndPoints(double start, double stop) {
Point p1 = points.get(0);
if (p1.getX().doubleValue() != start) {
points.add(0, new Point(start, p1.getY()));
}
int end = points.size();
Point p2 = points.get(end - 1);
if (p2.getY().doubleValue() != stop) {
point... | public class class_name {
public void calculateEndPoints(double start, double stop) {
Point p1 = points.get(0);
if (p1.getX().doubleValue() != start) {
points.add(0, new Point(start, p1.getY())); // depends on control dependency: [if], data = [none]
}
int end = points.size();
Point p2 = points.get(end -... |
public class class_name {
public JSONObject getTaskInfo(int id, HashMap<String, String> options) {
AipRequest request = new AipRequest();
preOperation(request);
request.addBody("id", id);
if (options != null) {
request.addBody(options);
}
request.set... | public class class_name {
public JSONObject getTaskInfo(int id, HashMap<String, String> options) {
AipRequest request = new AipRequest();
preOperation(request);
request.addBody("id", id);
if (options != null) {
request.addBody(options); // depends on control depende... |
public class class_name {
private void appendDesc(StringBuilder sb)
{
String srcId;
if (mSystemId != null) {
sb.append("[row,col,system-id]: ");
srcId = mSystemId;
} else if (mPublicId != null) {
sb.append("[row,col,public-id]: ");
srcId = mP... | public class class_name {
private void appendDesc(StringBuilder sb)
{
String srcId;
if (mSystemId != null) {
sb.append("[row,col,system-id]: "); // depends on control dependency: [if], data = [none]
srcId = mSystemId; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private static final int writeDiff(int diff, byte buffer[], int offset)
{
if (diff >= SLOPE_REACH_NEG_1_) {
if (diff <= SLOPE_REACH_POS_1_) {
buffer[offset ++] = (byte)(SLOPE_MIDDLE_ + diff);
}
else if (diff <= SLOPE_REACH_POS_... | public class class_name {
private static final int writeDiff(int diff, byte buffer[], int offset)
{
if (diff >= SLOPE_REACH_NEG_1_) {
if (diff <= SLOPE_REACH_POS_1_) {
buffer[offset ++] = (byte)(SLOPE_MIDDLE_ + diff); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public GetMaintenanceWindowExecutionResult withTaskIds(String... taskIds) {
if (this.taskIds == null) {
setTaskIds(new com.amazonaws.internal.SdkInternalList<String>(taskIds.length));
}
for (String ele : taskIds) {
this.taskIds.add(ele);
... | public class class_name {
public GetMaintenanceWindowExecutionResult withTaskIds(String... taskIds) {
if (this.taskIds == null) {
setTaskIds(new com.amazonaws.internal.SdkInternalList<String>(taskIds.length)); // depends on control dependency: [if], data = [none]
}
for (String ele :... |
public class class_name {
public List<String> getNamespace(Class<?> clazz) {
List<String> namespace;
if (clazz.getEnclosingClass() == null) {
namespace = getNamespaceMapping(clazz);
} else {
Class<?> enclosing = clazz;
Deque<Class<?>> stack = new ArrayDeque<C... | public class class_name {
public List<String> getNamespace(Class<?> clazz) {
List<String> namespace;
if (clazz.getEnclosingClass() == null) {
namespace = getNamespaceMapping(clazz); // depends on control dependency: [if], data = [none]
} else {
Class<?> enclosing = clazz... |
public class class_name {
public static boolean isEmptyAll(String... args) {
for (String arg : args) {
if (!isEmpty(arg)) {
return false;
}
}
return true;
} } | public class class_name {
public static boolean isEmptyAll(String... args) {
for (String arg : args) {
if (!isEmpty(arg)) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
public static Collection getEmbeddedCollectionInstance(Field embeddedCollectionField)
{
Collection embeddedCollection = null;
Class embeddedCollectionFieldClass = embeddedCollectionField.getType();
if (embeddedCollection == null || embeddedCollection.isEmpty(... | public class class_name {
public static Collection getEmbeddedCollectionInstance(Field embeddedCollectionField)
{
Collection embeddedCollection = null;
Class embeddedCollectionFieldClass = embeddedCollectionField.getType();
if (embeddedCollection == null || embeddedCollection.isEmpty(... |
public class class_name {
public static Network createDefaultNetwork(Model mo, int bw) {
Network net = new Network();
Switch mainSwitch = net.newSwitch(); // Main non-blocking switch
for (Node n : mo.getMapping().getAllNodes()) {
net.connect(bw, mainSwitch, n); // Connect all nodes ... | public class class_name {
public static Network createDefaultNetwork(Model mo, int bw) {
Network net = new Network();
Switch mainSwitch = net.newSwitch(); // Main non-blocking switch
for (Node n : mo.getMapping().getAllNodes()) {
net.connect(bw, mainSwitch, n); // Connect all nodes ... |
public class class_name {
public void marshall(DisableRadiusRequest disableRadiusRequest, ProtocolMarshaller protocolMarshaller) {
if (disableRadiusRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(DisableRadiusRequest disableRadiusRequest, ProtocolMarshaller protocolMarshaller) {
if (disableRadiusRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
@Override
public Object get(Symbol key, Scriptable start)
{
Slot slot = slotMap.query(key, 0);
if (slot == null) {
return Scriptable.NOT_FOUND;
}
return slot.getValue(start);
} } | public class class_name {
@Override
public Object get(Symbol key, Scriptable start)
{
Slot slot = slotMap.query(key, 0);
if (slot == null) {
return Scriptable.NOT_FOUND; // depends on control dependency: [if], data = [none]
}
return slot.getValue(start);
} } |
public class class_name {
public static Reflect on(@NonNull Constructor constructor, boolean allowPrivilegedAccess, Object... args) throws ReflectionException {
boolean accessible = constructor.isAccessible();
try {
if (!accessible && allowPrivilegedAccess) {
constructor.setAccessible(... | public class class_name {
public static Reflect on(@NonNull Constructor constructor, boolean allowPrivilegedAccess, Object... args) throws ReflectionException {
boolean accessible = constructor.isAccessible();
try {
if (!accessible && allowPrivilegedAccess) {
constructor.setAccessible(... |
public class class_name {
public static int[] getMaxImgSize(int h, int w) {
int[] size = {h, w};
int max = Config.MAX_IMG_SIZE_PX;
if (w == h) {
size[0] = Math.min(h, max);
size[1] = Math.min(w, max);
} else if (Math.max(h, w) > max) {
int ratio = (100 * max) / Math.max(h, w);
if (h > w) {
size... | public class class_name {
public static int[] getMaxImgSize(int h, int w) {
int[] size = {h, w};
int max = Config.MAX_IMG_SIZE_PX;
if (w == h) {
size[0] = Math.min(h, max); // depends on control dependency: [if], data = [none]
size[1] = Math.min(w, max); // depends on control dependency: [if], data = [(w]
... |
public class class_name {
protected static <AdapterType> AdapterType getAdapter(Resource resource, Class<AdapterType> type) {
if (type == ResourceHandle.class) {
return type.cast(new ResourceHandle(resource));
}
log.info("Unable to adapt resource on {} to type {}", resource.getPath(... | public class class_name {
protected static <AdapterType> AdapterType getAdapter(Resource resource, Class<AdapterType> type) {
if (type == ResourceHandle.class) {
return type.cast(new ResourceHandle(resource)); // depends on control dependency: [if], data = [none]
}
log.info("Unable ... |
public class class_name {
public I_CmsWidget getWidgetObject() {
if (getWidget() == null) {
if (m_params == null) {
return new CmsInputWidget();
} else {
return new CmsInputWidget(m_params);
}
}
try {
if (m_params ... | public class class_name {
public I_CmsWidget getWidgetObject() {
if (getWidget() == null) {
if (m_params == null) {
return new CmsInputWidget(); // depends on control dependency: [if], data = [none]
} else {
return new CmsInputWidget(m_params); // depend... |
public class class_name {
public static Slf4jStream of(Class<?> klass, String name) {
if (name == null) {
return of(klass);
} else {
return of(LoggerFactory.getLogger(klass.getName() + "." + name));
}
} } | public class class_name {
public static Slf4jStream of(Class<?> klass, String name) {
if (name == null) {
return of(klass); // depends on control dependency: [if], data = [none]
} else {
return of(LoggerFactory.getLogger(klass.getName() + "." + name)); // depends on control dependency: [if], data =... |
public class class_name {
@Override
public AuthenticationStatus forward(String path) {
try {
RequestDispatcher requestDispatcher = request.getRequestDispatcher(path);
requestDispatcher.forward(request, response);
} catch (Exception e) {
// TODO: Add serviceabilit... | public class class_name {
@Override
public AuthenticationStatus forward(String path) {
try {
RequestDispatcher requestDispatcher = request.getRequestDispatcher(path);
requestDispatcher.forward(request, response); // depends on control dependency: [try], data = [none]
} catch... |
public class class_name {
public void reportDataOrNoMoreData(
TableRuntimeContext tableRuntimeContext,
int recordCount,
int batchSize,
boolean resultSetEndReached,
AtomicBoolean tableFinished,
AtomicBoolean schemaFinished,
List<String> schemaFinishedTables
) {
final Tabl... | public class class_name {
public void reportDataOrNoMoreData(
TableRuntimeContext tableRuntimeContext,
int recordCount,
int batchSize,
boolean resultSetEndReached,
AtomicBoolean tableFinished,
AtomicBoolean schemaFinished,
List<String> schemaFinishedTables
) {
final Tabl... |
public class class_name {
@Override
public EClass getIfcSpace() {
if (ifcSpaceEClass == null) {
ifcSpaceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(610);
}
return ifcSpaceEClass;
} } | public class class_name {
@Override
public EClass getIfcSpace() {
if (ifcSpaceEClass == null) {
ifcSpaceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(610);
// depends on control dependency: [if], data = [none]
}
return ifcSpaceEClass;
} } |
public class class_name {
public static int ceToJD(long year, int month, int day, int jdEpochOffset) {
// Julian<->Ethiopic algorithms from:
// "Calendars in Ethiopia", Berhanu Beyene, Manfred Kudlek, International Conference
// of Ethiopian Studies XV, Hamburg, 2003
// handle month >... | public class class_name {
public static int ceToJD(long year, int month, int day, int jdEpochOffset) {
// Julian<->Ethiopic algorithms from:
// "Calendars in Ethiopia", Berhanu Beyene, Manfred Kudlek, International Conference
// of Ethiopian Studies XV, Hamburg, 2003
// handle month >... |
public class class_name {
private boolean findJavaSourceFiles(String[] args) {
String prev = "";
for (String s : args) {
if (s.endsWith(".java") && !prev.equals("-xf") && !prev.equals("-if")) {
return true;
}
prev = s;
}
return false;
... | public class class_name {
private boolean findJavaSourceFiles(String[] args) {
String prev = "";
for (String s : args) {
if (s.endsWith(".java") && !prev.equals("-xf") && !prev.equals("-if")) {
return true; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static void moveSubRootContents(File fromSubRoot, File toSubRoot) throws IOException {
assert(fromSubRoot.exists() && fromSubRoot.isDirectory());
assert(toSubRoot.exists() && toSubRoot.isDirectory());
for (File file : fromSubRoot.listFiles()) {
File... | public class class_name {
public static void moveSubRootContents(File fromSubRoot, File toSubRoot) throws IOException {
assert(fromSubRoot.exists() && fromSubRoot.isDirectory());
assert(toSubRoot.exists() && toSubRoot.isDirectory());
for (File file : fromSubRoot.listFiles()) {
File... |
public class class_name {
public boolean saveNGramToTxt(String path)
{
try
{
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(IOUtil.newOutputStream(path)));
for (Map.Entry<String, Integer> entry : trie.entrySet())
{
bw.write(entry.ge... | public class class_name {
public boolean saveNGramToTxt(String path)
{
try
{
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(IOUtil.newOutputStream(path)));
for (Map.Entry<String, Integer> entry : trie.entrySet())
{
bw.write(entry.ge... |
public class class_name {
public static String getDescription(TypeDeclaration type) {
if (type == null || type.description() == null) {
return null;
} else {
return type.description().value();
}
} } | public class class_name {
public static String getDescription(TypeDeclaration type) {
if (type == null || type.description() == null) {
return null; // depends on control dependency: [if], data = [none]
} else {
return type.description().value(); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
public E get() {
if (originalElements.isEmpty()) {
return null;
}
if (!priorityElements.isEmpty()) {
return priorityElements.remove(0);
}
if (currentElements.size() <= originalElements.size()) {
currentElements.addAll(originalElements);
}
int index... | public class class_name {
@Override
public E get() {
if (originalElements.isEmpty()) {
return null;
// depends on control dependency: [if], data = [none]
}
if (!priorityElements.isEmpty()) {
return priorityElements.remove(0);
// depends on control dependency: [if], data = [none]
}
if (currentE... |
public class class_name {
public final EObject ruleJvmParameterizedTypeReference() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_3=null;
Token otherlv_5=null;
Token otherlv_7=null;
Token otherlv_9=null;
Token otherlv_1... | public class class_name {
public final EObject ruleJvmParameterizedTypeReference() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_3=null;
Token otherlv_5=null;
Token otherlv_7=null;
Token otherlv_9=null;
Token otherlv_1... |
public class class_name {
public static void printWarn(Object message)
{
if (message instanceof Throwable)
{
Throwable e = (Throwable) message;
getLog(Debugger.class).warn(stackTrace(e));
}
else
getLog(Debugger.class).warn(message);
} } | public class class_name {
public static void printWarn(Object message)
{
if (message instanceof Throwable)
{
Throwable e = (Throwable) message;
getLog(Debugger.class).warn(stackTrace(e));
// depends on control dependency: [if], data = [none]
}
else
getLog(Debugger.class).warn(mess... |
public class class_name {
public Set<String> leafRevisionIds() {
Set<String> res = new HashSet<String>();
for(DocumentRevisionNode obj : leafs()) {
res.add(obj.getData().getRevision());
}
return res;
} } | public class class_name {
public Set<String> leafRevisionIds() {
Set<String> res = new HashSet<String>();
for(DocumentRevisionNode obj : leafs()) {
res.add(obj.getData().getRevision()); // depends on control dependency: [for], data = [obj]
}
return res;
} } |
public class class_name {
public void marshall(TopicRule topicRule, ProtocolMarshaller protocolMarshaller) {
if (topicRule == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(topicRule.getRuleName(), ... | public class class_name {
public void marshall(TopicRule topicRule, ProtocolMarshaller protocolMarshaller) {
if (topicRule == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(topicRule.getRuleName(), ... |
public class class_name {
public long estimate(OClass oClass, long threshold, OCommandContext ctx) {
long count = oClass.count();
if (count > 1) {
count = count / 2;
}
if (count < threshold) {
return count;
}
long indexesCount = 0l;
List<OAndBlock> flattenedConditions = flatten... | public class class_name {
public long estimate(OClass oClass, long threshold, OCommandContext ctx) {
long count = oClass.count();
if (count > 1) {
count = count / 2; // depends on control dependency: [if], data = [none]
}
if (count < threshold) {
return count; // depends on control dependen... |
public class class_name {
public void cloneAndRestoreView(FacesContext context, UIViewRoot newView,
ViewEntry entry, ViewStructureMetadata metadata)
{
UIViewRoot oldView = entry.getViewRoot();
// retrieveViewRootInitialState(context, oldView)
Object viewState = metadata.getView... | public class class_name {
public void cloneAndRestoreView(FacesContext context, UIViewRoot newView,
ViewEntry entry, ViewStructureMetadata metadata)
{
UIViewRoot oldView = entry.getViewRoot();
// retrieveViewRootInitialState(context, oldView)
Object viewState = metadata.getView... |
public class class_name {
public View getActivityContentView() {
try {
return ((Activity) mainActionView.getContext()).getWindow().getDecorView().findViewById(android.R.id.content);
}
catch(ClassCastException e) {
throw new ClassCastException("Please provide an Activity ... | public class class_name {
public View getActivityContentView() {
try {
return ((Activity) mainActionView.getContext()).getWindow().getDecorView().findViewById(android.R.id.content); // depends on control dependency: [try], data = [none]
}
catch(ClassCastException e) {
th... |
public class class_name {
private void _delActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event__delActionPerformed
int[] i = _oList.getSelectedRows();
String[] o = new String[i.length];
for (int j = 0; j < i.length; j++) {
o[j] = (String) _oList.getValueAt(i[j], 0);
... | public class class_name {
private void _delActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event__delActionPerformed
int[] i = _oList.getSelectedRows();
String[] o = new String[i.length];
for (int j = 0; j < i.length; j++) {
o[j] = (String) _oList.getValueAt(i[j], 0); /... |
public class class_name {
private FileUpload prepareFileUpload(@NonNull String encoding) {
FileUpload actualFileUpload = mFileUpload;
if (!encoding.equalsIgnoreCase(mFileUpload.getHeaderEncoding())) {
actualFileUpload = new FileUpload(mFileItemFactory);
actualFileUpload.setSizeM... | public class class_name {
private FileUpload prepareFileUpload(@NonNull String encoding) {
FileUpload actualFileUpload = mFileUpload;
if (!encoding.equalsIgnoreCase(mFileUpload.getHeaderEncoding())) {
actualFileUpload = new FileUpload(mFileItemFactory); // depends on control dependency: [if... |
public class class_name {
@InterfaceAudience.Private
public void pullRemoteRevision(final RevisionInternal rev) {
Log.d(TAG, "%s: pullRemoteRevision with rev: %s", this, rev);
++httpConnectionCount;
// Construct a query. We want the revision history, and the bodies of attachments that ha... | public class class_name {
@InterfaceAudience.Private
public void pullRemoteRevision(final RevisionInternal rev) {
Log.d(TAG, "%s: pullRemoteRevision with rev: %s", this, rev);
++httpConnectionCount;
// Construct a query. We want the revision history, and the bodies of attachments that ha... |
public class class_name {
public final void run() throws IOException, InterruptedException {
InputStreamReader isr = new InputStreamReader(this.is, this.charset);
BufferedReader br = new BufferedReader(isr);
this.line = null;
this.lineNumber = 0;
try {
do {
... | public class class_name {
public final void run() throws IOException, InterruptedException {
InputStreamReader isr = new InputStreamReader(this.is, this.charset);
BufferedReader br = new BufferedReader(isr);
this.line = null;
this.lineNumber = 0;
try {
do {
... |
public class class_name {
public static String compose (String key, Object... args)
{
StringBuilder buf = new StringBuilder();
buf.append(key);
buf.append('|');
for (int i = 0; i < args.length; i++) {
if (i > 0) {
buf.append('|');
}
... | public class class_name {
public static String compose (String key, Object... args)
{
StringBuilder buf = new StringBuilder();
buf.append(key);
buf.append('|');
for (int i = 0; i < args.length; i++) {
if (i > 0) {
buf.append('|'); // depends on control de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.