code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public void parallel(ConcurrentParallelCall runnerLambda, ConcurrentParallelOpCall opLambda) {
final ConcurrentParallelOption option = createConcurrentParallelOption(opLambda);
try {
readyGo(runnerLambda, option);
} catch (LaCountdownRaceExecu... | public class class_name {
@Override
public void parallel(ConcurrentParallelCall runnerLambda, ConcurrentParallelOpCall opLambda) {
final ConcurrentParallelOption option = createConcurrentParallelOption(opLambda);
try {
readyGo(runnerLambda, option); // depends on control dependency: [tr... |
public class class_name {
private static Complex cdiv(double xr, double xi, double yr, double yi) {
double cdivr, cdivi;
double r, d;
if (Math.abs(yr) > Math.abs(yi)) {
r = yi / yr;
d = yr + r * yi;
cdivr = (xr + r * xi) / d;
cdivi = (xi - r * xr)... | public class class_name {
private static Complex cdiv(double xr, double xi, double yr, double yi) {
double cdivr, cdivi;
double r, d;
if (Math.abs(yr) > Math.abs(yi)) {
r = yi / yr; // depends on control dependency: [if], data = [none]
d = yr + r * yi; // depends on cont... |
public class class_name {
public void marshall(ListFileSharesRequest listFileSharesRequest, ProtocolMarshaller protocolMarshaller) {
if (listFileSharesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(ListFileSharesRequest listFileSharesRequest, ProtocolMarshaller protocolMarshaller) {
if (listFileSharesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
void releaseSavepoint(final String savepointName) {
Savepoint savepoint = savepointMap.get(savepointName);
int pos = savepointNames.lastIndexOf(savepointName);
if (pos > -1) {
List<String> subList = savepointNames.subList(pos, savepointNames.size());
for (String name : subList) {... | public class class_name {
void releaseSavepoint(final String savepointName) {
Savepoint savepoint = savepointMap.get(savepointName);
int pos = savepointNames.lastIndexOf(savepointName);
if (pos > -1) {
List<String> subList = savepointNames.subList(pos, savepointNames.size());
for (String name : subList) {... |
public class class_name {
@SuppressWarnings({ "unchecked", "checkstyle:illegaltype" })
Collection<V> copyValues(Collection<V> values) {
final Object backEnd = DataViewDelegate.undelegate(values);
if (backEnd instanceof List<?>) {
return Lists.newArrayList(values);
}
if (backEnd instanceof TreeSet<?>) {
... | public class class_name {
@SuppressWarnings({ "unchecked", "checkstyle:illegaltype" })
Collection<V> copyValues(Collection<V> values) {
final Object backEnd = DataViewDelegate.undelegate(values);
if (backEnd instanceof List<?>) {
return Lists.newArrayList(values); // depends on control dependency: [if], data =... |
public class class_name {
@SuppressWarnings("unchecked")
private void insertPair(ReflectedHandle<K, V> handle1, ReflectedHandle<K, V> handle2) {
int c;
if (comparator == null) {
c = ((Comparable<? super K>) handle1.key).compareTo(handle2.key);
} else {
c = comparator... | public class class_name {
@SuppressWarnings("unchecked")
private void insertPair(ReflectedHandle<K, V> handle1, ReflectedHandle<K, V> handle2) {
int c;
if (comparator == null) {
c = ((Comparable<? super K>) handle1.key).compareTo(handle2.key); // depends on control dependency: [if], dat... |
public class class_name {
public static <T extends ImageGray<T>>
Planar<T> median(Planar<T> input, @Nullable Planar<T> output, int radius ,
@Nullable WorkArrays work) {
if( output == null )
output = input.createNew(input.width,input.height);
for( int band = 0; band < input.getNumBands(); band++ ) {
... | public class class_name {
public static <T extends ImageGray<T>>
Planar<T> median(Planar<T> input, @Nullable Planar<T> output, int radius ,
@Nullable WorkArrays work) {
if( output == null )
output = input.createNew(input.width,input.height);
for( int band = 0; band < input.getNumBands(); band++ ) {
... |
public class class_name {
public static nd6ravariables[] get(nitro_service service, Long vlan[]) throws Exception{
if (vlan !=null && vlan.length>0) {
nd6ravariables response[] = new nd6ravariables[vlan.length];
nd6ravariables obj[] = new nd6ravariables[vlan.length];
for (int i=0;i<vlan.length;i++) {
ob... | public class class_name {
public static nd6ravariables[] get(nitro_service service, Long vlan[]) throws Exception{
if (vlan !=null && vlan.length>0) {
nd6ravariables response[] = new nd6ravariables[vlan.length];
nd6ravariables obj[] = new nd6ravariables[vlan.length];
for (int i=0;i<vlan.length;i++) {
ob... |
public class class_name {
public static InitialContext findOrCreate(Hashtable<?,?> environment) throws NamingException{
if (found){
return findDefault(environment);
}
InitialContext ctx = null;
NamingException lastE = null;
synchronized (InitialContextFinder.class){
// get and test if th... | public class class_name {
public static InitialContext findOrCreate(Hashtable<?,?> environment) throws NamingException{
if (found){
return findDefault(environment);
}
InitialContext ctx = null;
NamingException lastE = null;
synchronized (InitialContextFinder.class){
// get and test if th... |
public class class_name {
public void close()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "close",this);
if (_controlLock != null)
{
try
{
_controlLock.releaseSharedLock(LOCK_REQUEST_ID_LCI);
}
catch (NoSharedLockException exc)
{
// This should not happen as we ... | public class class_name {
public void close()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "close",this);
if (_controlLock != null)
{
try
{
_controlLock.releaseSharedLock(LOCK_REQUEST_ID_LCI); // depends on control dependency: [try], data = [none]
}
catch (NoSharedLockExceptio... |
public class class_name {
public String readResource(URI endpoint, CredentialsEndpointRetryPolicy retryPolicy, Map<String, String> headers) throws IOException {
int retriesAttempted = 0;
InputStream inputStream = null;
headers = addDefaultHeaders(headers);
while (true) {
t... | public class class_name {
public String readResource(URI endpoint, CredentialsEndpointRetryPolicy retryPolicy, Map<String, String> headers) throws IOException {
int retriesAttempted = 0;
InputStream inputStream = null;
headers = addDefaultHeaders(headers);
while (true) {
t... |
public class class_name {
public static boolean isEmpty(Iterable<?> iterable) {
if (iterable instanceof Collection) {
return ((Collection<?>) iterable).isEmpty();
}
return !iterable.iterator().hasNext();
} } | public class class_name {
public static boolean isEmpty(Iterable<?> iterable) {
if (iterable instanceof Collection) {
return ((Collection<?>) iterable).isEmpty(); // depends on control dependency: [if], data = [none]
}
return !iterable.iterator().hasNext();
} } |
public class class_name {
public void reinitializeButtons() {
if (isGroupcontainerEditing()) {
m_groupEditor.reinitializeButtons();
} else {
List<CmsContainerPageElementPanel> elemWidgets = getAllContainerPageElements(true);
for (CmsContainerPageElementPanel elemWi... | public class class_name {
public void reinitializeButtons() {
if (isGroupcontainerEditing()) {
m_groupEditor.reinitializeButtons(); // depends on control dependency: [if], data = [none]
} else {
List<CmsContainerPageElementPanel> elemWidgets = getAllContainerPageElements(true);... |
public class class_name {
private JobVertex createSingleInputVertex(SingleInputPlanNode node) throws CompilerException {
final String taskName = node.getNodeName();
final DriverStrategy ds = node.getDriverStrategy();
// check, whether chaining is possible
boolean chaining;
{
Channel inConn = node.getIn... | public class class_name {
private JobVertex createSingleInputVertex(SingleInputPlanNode node) throws CompilerException {
final String taskName = node.getNodeName();
final DriverStrategy ds = node.getDriverStrategy();
// check, whether chaining is possible
boolean chaining;
{
Channel inConn = node.getIn... |
public class class_name {
public void updateField(Field field) {
this.name = field.getName();
this.obj = TypeCheckUtil.isObjClass(field);
this.list = TypeCheckUtil.isListClass(field);
this.number = TypeCheckUtil.isNumberClass(field);
this.enumType = field.getType().isEnum();
... | public class class_name {
public void updateField(Field field) {
this.name = field.getName();
this.obj = TypeCheckUtil.isObjClass(field);
this.list = TypeCheckUtil.isListClass(field);
this.number = TypeCheckUtil.isNumberClass(field);
this.enumType = field.getType().isEnum();
... |
public class class_name {
@SuppressWarnings("unchecked")
public T tag(final String tag) {
if (this.tags == null) {
this.tags = new HashSet<>();
}
this.tags.add(tag);
return (T) this;
} } | public class class_name {
@SuppressWarnings("unchecked")
public T tag(final String tag) {
if (this.tags == null) {
this.tags = new HashSet<>(); // depends on control dependency: [if], data = [none]
}
this.tags.add(tag);
return (T) this;
} } |
public class class_name {
public UserManagedCacheBuilder<K, V, T> using(Service service) {
UserManagedCacheBuilder<K, V, T> otherBuilder = new UserManagedCacheBuilder<>(this);
if (service instanceof SizeOfEngineProvider) {
removeAnySizeOfEngine(otherBuilder);
}
otherBuilder.services.add(service);... | public class class_name {
public UserManagedCacheBuilder<K, V, T> using(Service service) {
UserManagedCacheBuilder<K, V, T> otherBuilder = new UserManagedCacheBuilder<>(this);
if (service instanceof SizeOfEngineProvider) {
removeAnySizeOfEngine(otherBuilder); // depends on control dependency: [if], data ... |
public class class_name {
public final boolean hasAppropriateHandler(Throwable throwable) {
if (exceptionPurger != null && purgeOnAppropriateCheck) {
throwable = exceptionPurger.purge(throwable);
}
return hasAppropriateHandlerPurged(throwable);
} } | public class class_name {
public final boolean hasAppropriateHandler(Throwable throwable) {
if (exceptionPurger != null && purgeOnAppropriateCheck) {
throwable = exceptionPurger.purge(throwable); // depends on control dependency: [if], data = [none]
}
return hasAppropriateHandlerPur... |
public class class_name {
@Override
public void registerIrObs(IREventObserver obs)
{
if (obs != null && irObserver == null)
{
irObserver = obs;
}
} } | public class class_name {
@Override
public void registerIrObs(IREventObserver obs)
{
if (obs != null && irObserver == null)
{
irObserver = obs; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public <P extends ParaObject> List<P> findTerms(String type, Map<String, ?> terms, boolean matchAll,
Pager... pager) {
if (terms == null) {
return Collections.emptyList();
}
MultivaluedMap<String, String> params = new MultivaluedHashMap<>();
params.putSingle("matchall", Boolean.... | public class class_name {
public <P extends ParaObject> List<P> findTerms(String type, Map<String, ?> terms, boolean matchAll,
Pager... pager) {
if (terms == null) {
return Collections.emptyList(); // depends on control dependency: [if], data = [none]
}
MultivaluedMap<String, String> params = new Multivalu... |
public class class_name {
public void setErrorMessage(Throwable exception) {
if (exception != null) {
String message = exception.getLocalizedMessage();
if (Strings.isNullOrEmpty(message)) {
message = exception.getMessage();
}
if (Strings.isNullOrEmpty(message)) {
message = MessageFormat.format(Me... | public class class_name {
public void setErrorMessage(Throwable exception) {
if (exception != null) {
String message = exception.getLocalizedMessage();
if (Strings.isNullOrEmpty(message)) {
message = exception.getMessage(); // depends on control dependency: [if], data = [none]
}
if (Strings.isNullOrE... |
public class class_name {
private static RunIf findRunIfAnnotation(Class<?> klass) {
while (klass != null && klass != Object.class) {
RunIf annotation = klass.getAnnotation(RunIf.class);
if (annotation != null) {
return annotation;
}
klass = klass.getSuperclass();
}
return null;
} } | public class class_name {
private static RunIf findRunIfAnnotation(Class<?> klass) {
while (klass != null && klass != Object.class) {
RunIf annotation = klass.getAnnotation(RunIf.class);
if (annotation != null) {
return annotation; // depends on control dependency: [if], data = [none]
}
klass = klas... |
public class class_name {
static Atom toBeamAtom(final IAtom a, final int flavour) {
final boolean aromatic = SmiFlavor.isSet(flavour, SmiFlavor.UseAromaticSymbols) && a.getFlag(CDKConstants.ISAROMATIC);
final Integer charge = a.getFormalCharge();
final String symbol = checkNotNull(a.getSymbol... | public class class_name {
static Atom toBeamAtom(final IAtom a, final int flavour) {
final boolean aromatic = SmiFlavor.isSet(flavour, SmiFlavor.UseAromaticSymbols) && a.getFlag(CDKConstants.ISAROMATIC);
final Integer charge = a.getFormalCharge();
final String symbol = checkNotNull(a.getSymbol... |
public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:54:50+02:00", comments = "JAXB RI v2.2.11")
public List<Wohnung> getWohnung() {
if (wohnung == null) {
wohnung = new ArrayList<Wohnung>();
}
return this.wohnung;
} } | public class class_name {
@Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:54:50+02:00", comments = "JAXB RI v2.2.11")
public List<Wohnung> getWohnung() {
if (wohnung == null) {
wohnung = new ArrayList<Wohnung>(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private String getCerticateSubject(AtomicServiceReference<Object> serviceRef, Properties sslProperties) {
String certificateDN = null;
try {
certificateDN = sslHelper.getClientKeyCertSubject(serviceRef, sslProperties);
} catch (KeyStoreException ke) {
... | public class class_name {
private String getCerticateSubject(AtomicServiceReference<Object> serviceRef, Properties sslProperties) {
String certificateDN = null;
try {
certificateDN = sslHelper.getClientKeyCertSubject(serviceRef, sslProperties); // depends on control dependency: [try], data ... |
public class class_name {
protected static Set<String> generateUpdateTargets(LofPoint addedPoint, LofDataSet dataSet,
String deleteId)
{
Set<String> updateTargets = new HashSet<>();
// 以下の条件のいずれかを満たす対象点と追加された対象点に対してK距離、K距離近傍、局所到達可能密度の更新を行う必要がある。
// 但し、今回追加された対象点は常時対象となるため、判定は行わず... | public class class_name {
protected static Set<String> generateUpdateTargets(LofPoint addedPoint, LofDataSet dataSet,
String deleteId)
{
Set<String> updateTargets = new HashSet<>();
// 以下の条件のいずれかを満たす対象点と追加された対象点に対してK距離、K距離近傍、局所到達可能密度の更新を行う必要がある。
// 但し、今回追加された対象点は常時対象となるため、判定は行わず... |
public class class_name {
public Observable<ServiceResponse<Page<RemoteLoginInformationInner>>> listRemoteLoginInformationNextWithServiceResponseAsync(final String nextPageLink) {
return listRemoteLoginInformationNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<RemoteLogi... | public class class_name {
public Observable<ServiceResponse<Page<RemoteLoginInformationInner>>> listRemoteLoginInformationNextWithServiceResponseAsync(final String nextPageLink) {
return listRemoteLoginInformationNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<RemoteLogi... |
public class class_name {
public static void gcInfo(final Map<String, Object> infos) {
List<GarbageCollectorMXBean> mxBeans = ManagementFactory.getGarbageCollectorMXBeans();
for (GarbageCollectorMXBean mxBean : mxBeans) {
infos.put("gc." + mxBean.getName().toLowerCase() + ".collectionCount... | public class class_name {
public static void gcInfo(final Map<String, Object> infos) {
List<GarbageCollectorMXBean> mxBeans = ManagementFactory.getGarbageCollectorMXBeans();
for (GarbageCollectorMXBean mxBean : mxBeans) {
infos.put("gc." + mxBean.getName().toLowerCase() + ".collectionCount... |
public class class_name {
public void marshall(DetachThingPrincipalRequest detachThingPrincipalRequest, ProtocolMarshaller protocolMarshaller) {
if (detachThingPrincipalRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DetachThingPrincipalRequest detachThingPrincipalRequest, ProtocolMarshaller protocolMarshaller) {
if (detachThingPrincipalRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public void setEventSubscriptionsList(java.util.Collection<EventSubscription> eventSubscriptionsList) {
if (eventSubscriptionsList == null) {
this.eventSubscriptionsList = null;
return;
}
this.eventSubscriptionsList = new com.amazonaws.internal... | public class class_name {
public void setEventSubscriptionsList(java.util.Collection<EventSubscription> eventSubscriptionsList) {
if (eventSubscriptionsList == null) {
this.eventSubscriptionsList = null; // depends on control dependency: [if], data = [none]
return; // depends on control... |
public class class_name {
public ExpressionBuilder or() {
GroupExpression lastGroupExpression = stack.isEmpty() ? null : stack.peek();
if (lhsExpression == null) {
throw new SyntaxException("Syntax exception: OR missing LHS operand");
} else if (lastGroupExpression == null) {
GroupExpression or = new Grou... | public class class_name {
public ExpressionBuilder or() {
GroupExpression lastGroupExpression = stack.isEmpty() ? null : stack.peek();
if (lhsExpression == null) {
throw new SyntaxException("Syntax exception: OR missing LHS operand");
} else if (lastGroupExpression == null) {
GroupExpression or = new Grou... |
public class class_name {
@Override
public FileChannel newFileChannel(
Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException {
checkNotNull(path);
initStorage();
CloudStorageUtil.checkNotNullArray(attrs);
if (options.contains(StandardOpenOption.CREATE_NEW))... | public class class_name {
@Override
public FileChannel newFileChannel(
Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException {
checkNotNull(path);
initStorage();
CloudStorageUtil.checkNotNullArray(attrs);
if (options.contains(StandardOpenOption.CREATE_NEW))... |
public class class_name {
@SuppressWarnings("UnusedReturnValue")
private boolean initialize() {
// For API level 18 and above, get a reference to BluetoothAdapter through
// BluetoothManager.
final BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);
if (bluetoot... | public class class_name {
@SuppressWarnings("UnusedReturnValue")
private boolean initialize() {
// For API level 18 and above, get a reference to BluetoothAdapter through
// BluetoothManager.
final BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);
if (bluetoot... |
public class class_name {
@Override
public List<XMLObject> getOrderedChildren() {
ArrayList<XMLObject> children = new ArrayList<XMLObject>();
if (this.schemeInformation != null) {
children.add(this.schemeInformation);
}
children.addAll(this.metadataLists);
if (this.distributionPoints != nul... | public class class_name {
@Override
public List<XMLObject> getOrderedChildren() {
ArrayList<XMLObject> children = new ArrayList<XMLObject>();
if (this.schemeInformation != null) {
children.add(this.schemeInformation); // depends on control dependency: [if], data = [(this.schemeInformation]
}
ch... |
public class class_name {
public static <T> Response call(String resource, S3RestUtils.RestCallable<T> callable) {
try {
// TODO(cc): reconsider how to enable authentication
if (SecurityUtils.isSecurityEnabled(ServerConfiguration.global())
&& AuthenticatedClientUser.get(ServerConfiguratio... | public class class_name {
public static <T> Response call(String resource, S3RestUtils.RestCallable<T> callable) {
try {
// TODO(cc): reconsider how to enable authentication
if (SecurityUtils.isSecurityEnabled(ServerConfiguration.global())
&& AuthenticatedClientUser.get(ServerConfiguratio... |
public class class_name {
public static byte[] encrypt(byte[] keyData, byte[] iv, byte[] data,
String cipherTransformation)
throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException,
IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterExceptio... | public class class_name {
public static byte[] encrypt(byte[] keyData, byte[] iv, byte[] data,
String cipherTransformation)
throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException,
IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterExceptio... |
public class class_name {
public List<Integer> getPageRange() {
List<Integer> r = new ArrayList<Integer>();
for (int i = 1; i <= getPages(); i++) {
r.add(i);
}
return r;
} } | public class class_name {
public List<Integer> getPageRange() {
List<Integer> r = new ArrayList<Integer>();
for (int i = 1; i <= getPages(); i++) {
r.add(i);
// depends on control dependency: [for], data = [i]
}
return r;
} } |
public class class_name {
public static SASLFailure parseSASLFailure(XmlPullParser parser) throws XmlPullParserException, IOException {
final int initialDepth = parser.getDepth();
String condition = null;
Map<String, String> descriptiveTexts = null;
outerloop: while (true) {
... | public class class_name {
public static SASLFailure parseSASLFailure(XmlPullParser parser) throws XmlPullParserException, IOException {
final int initialDepth = parser.getDepth();
String condition = null;
Map<String, String> descriptiveTexts = null;
outerloop: while (true) {
... |
public class class_name {
private SignatureFieldExtension initExtension() {
SignatureFieldExtension ext = new SignatureFieldExtension(this);
ext.addSignatureChangeListener(new SignatureFieldExtension.SignatureChangeListener() {
private static final long serialVersionUID = 1L;
... | public class class_name {
private SignatureFieldExtension initExtension() {
SignatureFieldExtension ext = new SignatureFieldExtension(this);
ext.addSignatureChangeListener(new SignatureFieldExtension.SignatureChangeListener() {
private static final long serialVersionUID = 1L;
... |
public class class_name {
private void scanAnnotations() {
// set remote type and request URI path from @Remote, @Controller or @Service
boolean remoteType = false;
Controller controllerAnnotation = getAnnotation(implementationClass, Controller.class);
if (controllerAnnotation != null) {
remoteType = t... | public class class_name {
private void scanAnnotations() {
// set remote type and request URI path from @Remote, @Controller or @Service
boolean remoteType = false;
Controller controllerAnnotation = getAnnotation(implementationClass, Controller.class);
if (controllerAnnotation != null) {
remoteType = t... |
public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
public CustomMake init(){
List<String> plug = (List<String>) ((Map)NutConf.get("EL")).get("custom");
String [] t = plug.toArray(new String[0]);
PluginManager<RunMethod> rm = new SimplePluginManager<RunMethod>(t);
... | public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
public CustomMake init(){
List<String> plug = (List<String>) ((Map)NutConf.get("EL")).get("custom");
String [] t = plug.toArray(new String[0]);
PluginManager<RunMethod> rm = new SimplePluginManager<RunMethod>(t);
... |
public class class_name {
void open() {
initParams();
int state = properties.getDBModified();
switch (state) {
case HsqlDatabaseProperties.FILES_MODIFIED :
deleteNewAndOldFiles();
restoreBackup();
processScript();
p... | public class class_name {
void open() {
initParams();
int state = properties.getDBModified();
switch (state) {
case HsqlDatabaseProperties.FILES_MODIFIED :
deleteNewAndOldFiles();
restoreBackup();
processScript();
p... |
public class class_name {
@Override
public InputSource resolveEntity(String publicId, String systemId) {
for (int i = 0; i < Constants.DTDS_TLD.length; i++) {
if (publicId.equals(Constants.DTDS_TLD[i])) {
return new InputSource(getClass().getResourceAsStream(LUCEE_DTD_1_0));
}
}
if (publicId.equal... | public class class_name {
@Override
public InputSource resolveEntity(String publicId, String systemId) {
for (int i = 0; i < Constants.DTDS_TLD.length; i++) {
if (publicId.equals(Constants.DTDS_TLD[i])) {
return new InputSource(getClass().getResourceAsStream(LUCEE_DTD_1_0)); // depends on control dependen... |
public class class_name {
public boolean isSubCategory(HierarchyAttribute comp)
{
// Check that the comparator is of the same type class as this one.
if (!comp.attributeClass.attributeClassName.equals(attributeClass.attributeClassName))
{
return false;
}
// Extr... | public class class_name {
public boolean isSubCategory(HierarchyAttribute comp)
{
// Check that the comparator is of the same type class as this one.
if (!comp.attributeClass.attributeClassName.equals(attributeClass.attributeClassName))
{
return false; // depends on control depe... |
public class class_name {
public static double elementMinAbs( ZMatrixRMaj a ) {
final int size = a.getDataLength();
double min = Double.MAX_VALUE;
for( int i = 0; i < size; i += 2 ) {
double real = a.data[i];
double imag = a.data[i+1];
double val = real*rea... | public class class_name {
public static double elementMinAbs( ZMatrixRMaj a ) {
final int size = a.getDataLength();
double min = Double.MAX_VALUE;
for( int i = 0; i < size; i += 2 ) {
double real = a.data[i];
double imag = a.data[i+1];
double val = real*rea... |
public class class_name {
public String createImportDeclaration(String lineDelimiter) {
StringBuilder result = new StringBuilder();
for (TypeName importName : getImports()) {
result.append(lineDelimiter + "import " + importName + ";");
}
return result.toString();
} } | public class class_name {
public String createImportDeclaration(String lineDelimiter) {
StringBuilder result = new StringBuilder();
for (TypeName importName : getImports()) {
result.append(lineDelimiter + "import " + importName + ";"); // depends on control dependency: [for], data = [import... |
public class class_name {
private static ClassLoader getBootstrapClassLoader() {
if (BOOTSTRAP_CLASSLOADER == null) {
synchronized(ClassLoaderUtil.class) {
if (BOOTSTRAP_CLASSLOADER == null) {
ClassLoader cl = null;
if (System.getSecurityManag... | public class class_name {
private static ClassLoader getBootstrapClassLoader() {
if (BOOTSTRAP_CLASSLOADER == null) {
synchronized(ClassLoaderUtil.class) { // depends on control dependency: [if], data = [none]
if (BOOTSTRAP_CLASSLOADER == null) {
ClassLoader cl =... |
public class class_name {
public String getToolTipText(IAtom atom) {
if (toolTipTextMap.get(atom) != null) {
return toolTipTextMap.get(atom);
} else {
return null;
}
} } | public class class_name {
public String getToolTipText(IAtom atom) {
if (toolTipTextMap.get(atom) != null) {
return toolTipTextMap.get(atom); // depends on control dependency: [if], data = [none]
} else {
return null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public Term getArgument(int index)
{
if ((arguments == null) || (index > (arguments.length - 1)))
{
return null;
}
else
{
return arguments[index];
}
} } | public class class_name {
public Term getArgument(int index)
{
if ((arguments == null) || (index > (arguments.length - 1)))
{
return null; // depends on control dependency: [if], data = [none]
}
else
{
return arguments[index]; // depends on control de... |
public class class_name {
private static String normalize(String dateStr) {
if (StrUtil.isBlank(dateStr)) {
return dateStr;
}
// 日期时间分开处理
final List<String> dateAndTime = StrUtil.splitTrim(dateStr, ' ');
final int size = dateAndTime.size();
if (size < 1 || size > 2) {
// 非可被标准处理的格式
retu... | public class class_name {
private static String normalize(String dateStr) {
if (StrUtil.isBlank(dateStr)) {
return dateStr;
// depends on control dependency: [if], data = [none]
}
// 日期时间分开处理
final List<String> dateAndTime = StrUtil.splitTrim(dateStr, ' ');
final int size = dateAndTime.size();
... |
public class class_name {
@Override
public Message<?> postReceive(Message<?> message, MessageChannel channel) {
if (emptyMessage(message)) {
return message;
}
MessageHeaderAccessor headers = mutableHeaderAccessor(message);
TraceContextOrSamplingFlags extracted = this.extractor.extract(headers);
Span span... | public class class_name {
@Override
public Message<?> postReceive(Message<?> message, MessageChannel channel) {
if (emptyMessage(message)) {
return message; // depends on control dependency: [if], data = [none]
}
MessageHeaderAccessor headers = mutableHeaderAccessor(message);
TraceContextOrSamplingFlags ex... |
public class class_name {
private String extractOriginOrReferer(HttpExchange pExchange) {
Headers headers = pExchange.getRequestHeaders();
String origin = headers.getFirst("Origin");
if (origin == null) {
origin = headers.getFirst("Referer");
}
return origin != null ... | public class class_name {
private String extractOriginOrReferer(HttpExchange pExchange) {
Headers headers = pExchange.getRequestHeaders();
String origin = headers.getFirst("Origin");
if (origin == null) {
origin = headers.getFirst("Referer"); // depends on control dependency: [if], ... |
public class class_name {
public void setManeuverTypeAndModifier(@NonNull String maneuverType, @Nullable String maneuverModifier) {
if (isNewTypeOrModifier(maneuverType, maneuverModifier)) {
this.maneuverType = maneuverType;
this.maneuverModifier = maneuverModifier;
if (checkManeuverTypeWithNullM... | public class class_name {
public void setManeuverTypeAndModifier(@NonNull String maneuverType, @Nullable String maneuverModifier) {
if (isNewTypeOrModifier(maneuverType, maneuverModifier)) {
this.maneuverType = maneuverType; // depends on control dependency: [if], data = [none]
this.maneuverModifier = ... |
public class class_name {
public void marshall(UpdateOrganizationalUnitRequest updateOrganizationalUnitRequest, ProtocolMarshaller protocolMarshaller) {
if (updateOrganizationalUnitRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(UpdateOrganizationalUnitRequest updateOrganizationalUnitRequest, ProtocolMarshaller protocolMarshaller) {
if (updateOrganizationalUnitRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
public static ServletResponse createWrapper(final ServletResponseWrapper pImplementation) {
// TODO: Get all interfaces from implementation
if (pImplementation.getResponse() instanceof HttpServletResponse) {
return (HttpServletResponse) Proxy.newProxyInstance(pI... | public class class_name {
public static ServletResponse createWrapper(final ServletResponseWrapper pImplementation) {
// TODO: Get all interfaces from implementation
if (pImplementation.getResponse() instanceof HttpServletResponse) {
return (HttpServletResponse) Proxy.newProxyInstance(pI... |
public class class_name {
@UsedByGeneratedCode
public static boolean ivicheck(int ids, String nameAndDescriptor) {
// Check 1: FAST: Has anything at all been reloaded?
if (nothingReloaded) {
return false;
}
// if (GlobalConfiguration.isRuntimeLogging && log.isLoggable(Level.FINER)) {
// log.entering("... | public class class_name {
@UsedByGeneratedCode
public static boolean ivicheck(int ids, String nameAndDescriptor) {
// Check 1: FAST: Has anything at all been reloaded?
if (nothingReloaded) {
return false; // depends on control dependency: [if], data = [none]
}
// if (GlobalConfiguration.isRuntimeLogging &... |
public class class_name {
public Map<String, Integer> countByStatusAndMainComponentUuids(DbSession dbSession, CeQueueDto.Status status, Set<String> projectUuids) {
if (projectUuids.isEmpty()) {
return emptyMap();
}
ImmutableMap.Builder<String, Integer> builder = ImmutableMap.builder();
executeLa... | public class class_name {
public Map<String, Integer> countByStatusAndMainComponentUuids(DbSession dbSession, CeQueueDto.Status status, Set<String> projectUuids) {
if (projectUuids.isEmpty()) {
return emptyMap(); // depends on control dependency: [if], data = [none]
}
ImmutableMap.Builder<String, In... |
public class class_name {
public static MarkdownNotebookOutput get(Object source) {
try {
StackTraceElement callingFrame = Thread.currentThread().getStackTrace()[2];
String className = null == source ? callingFrame.getClassName() : source.getClass().getCanonicalName();
String methodName = calling... | public class class_name {
public static MarkdownNotebookOutput get(Object source) {
try {
StackTraceElement callingFrame = Thread.currentThread().getStackTrace()[2];
String className = null == source ? callingFrame.getClassName() : source.getClass().getCanonicalName();
String methodName = calling... |
public class class_name {
public void configPlugin(Plugins me) {
String[] dses = this.getDataSource();
for (String ds : dses) {
if (!this.getDbActiveState(ds)) {
continue;
}
DruidPlugin drp = this.getDruidPlugin(ds);
me.add(drp);
ActiveRecordPlugin arp = this.getActiveRecordPlugin(ds, drp);
m... | public class class_name {
public void configPlugin(Plugins me) {
String[] dses = this.getDataSource();
for (String ds : dses) {
if (!this.getDbActiveState(ds)) {
continue;
}
DruidPlugin drp = this.getDruidPlugin(ds);
me.add(drp); // depends on control dependency: [for], data = [none]
ActiveRecor... |
public class class_name {
private JdbcConnectionDescriptor deepCopyOfFirstFound(String jcdAlias)
{
Iterator it = jcdMap.values().iterator();
JdbcConnectionDescriptor jcd;
while (it.hasNext())
{
jcd = (JdbcConnectionDescriptor) it.next();
if (jcdAlias.e... | public class class_name {
private JdbcConnectionDescriptor deepCopyOfFirstFound(String jcdAlias)
{
Iterator it = jcdMap.values().iterator();
JdbcConnectionDescriptor jcd;
while (it.hasNext())
{
jcd = (JdbcConnectionDescriptor) it.next();
// depends on control depe... |
public class class_name {
@Override
public Result append(Append append) throws IOException {
LOG.trace("append(Append)");
Span span = TRACER.spanBuilder("BigtableTable.append").startSpan();
try (Scope scope = TRACER.withSpan(span)) {
com.google.cloud.bigtable.data.v2.models.Row response =
... | public class class_name {
@Override
public Result append(Append append) throws IOException {
LOG.trace("append(Append)");
Span span = TRACER.spanBuilder("BigtableTable.append").startSpan();
try (Scope scope = TRACER.withSpan(span)) {
com.google.cloud.bigtable.data.v2.models.Row response =
... |
public class class_name {
public static String open(Tag tag, AttributeValue... attrs) {
StringBuffer sb = new StringBuffer();
sb.append("<").append(tag.name());
for (AttributeValue attr : attrs) {
sb.append(" ").append(attr.toString());
}
sb.append(">");
ret... | public class class_name {
public static String open(Tag tag, AttributeValue... attrs) {
StringBuffer sb = new StringBuffer();
sb.append("<").append(tag.name());
for (AttributeValue attr : attrs) {
sb.append(" ").append(attr.toString()); // depends on control dependency: [for], data... |
public class class_name {
public void marshall(OutputArtifact outputArtifact, ProtocolMarshaller protocolMarshaller) {
if (outputArtifact == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(outputArti... | public class class_name {
public void marshall(OutputArtifact outputArtifact, ProtocolMarshaller protocolMarshaller) {
if (outputArtifact == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(outputArti... |
public class class_name {
public final boolean start() {
if (running || booting || stopping || terminated) {
// do nothing if this instance is not stopped
return false;
} else {
// mark this instance started
booting = true;
running = true;
... | public class class_name {
public final boolean start() {
if (running || booting || stopping || terminated) {
// do nothing if this instance is not stopped
return false; // depends on control dependency: [if], data = [none]
} else {
// mark this instance started
... |
public class class_name {
protected void fixIntegerPrecisions(ItemIdValue itemIdValue,
String propertyId) {
String qid = itemIdValue.getId();
try {
// Fetch the online version of the item to make sure we edit the
// current version:
ItemDocument currentItemDocument = (ItemDocument) dataFetcher
.... | public class class_name {
protected void fixIntegerPrecisions(ItemIdValue itemIdValue,
String propertyId) {
String qid = itemIdValue.getId();
try {
// Fetch the online version of the item to make sure we edit the
// current version:
ItemDocument currentItemDocument = (ItemDocument) dataFetcher
.... |
public class class_name {
@TimerJ
public TableMetadataBuilder withPartitionKey(String... fields) {
for (String field : fields) {
partitionKey.add(new ColumnName(tableName, field));
}
return this;
} } | public class class_name {
@TimerJ
public TableMetadataBuilder withPartitionKey(String... fields) {
for (String field : fields) {
partitionKey.add(new ColumnName(tableName, field)); // depends on control dependency: [for], data = [field]
}
return this;
} } |
public class class_name {
public synchronized static void enableLogging() {
if (SplitlogLoggerFactory.state == SplitlogLoggingState.ON) {
return;
}
SplitlogLoggerFactory.messageCounter.set(0);
SplitlogLoggerFactory.state = SplitlogLoggingState.ON;
/*
* inten... | public class class_name {
public synchronized static void enableLogging() {
if (SplitlogLoggerFactory.state == SplitlogLoggingState.ON) {
return; // depends on control dependency: [if], data = [none]
}
SplitlogLoggerFactory.messageCounter.set(0);
SplitlogLoggerFactory.state ... |
public class class_name {
@DELETE
@Produces(MediaType.APPLICATION_JSON)
@Path("/revoke_oauth_access/{appName}")
@Description("Revokes Oauth access of app from argus for a particular user")
public Response removeAccess(@Context HttpServletRequest req,@PathParam("appName") String appName) {
Strin... | public class class_name {
@DELETE
@Produces(MediaType.APPLICATION_JSON)
@Path("/revoke_oauth_access/{appName}")
@Description("Revokes Oauth access of app from argus for a particular user")
public Response removeAccess(@Context HttpServletRequest req,@PathParam("appName") String appName) {
Strin... |
public class class_name {
public void setLiveWebPrefix(String liveWebPrefix) {
if (liveWebPrefix == null || liveWebPrefix.isEmpty()) {
this.liveWebRedirector = null;
}
this.liveWebRedirector = new DefaultLiveWebRedirector(liveWebPrefix);
} } | public class class_name {
public void setLiveWebPrefix(String liveWebPrefix) {
if (liveWebPrefix == null || liveWebPrefix.isEmpty()) {
this.liveWebRedirector = null; // depends on control dependency: [if], data = [none]
}
this.liveWebRedirector = new DefaultLiveWebRedirector(liveWebPrefix);
} } |
public class class_name {
public static String getElementAsString(Element element) {
StringBuilder sb = new StringBuilder();
if (element.isNegated() != null && element.isNegated().booleanValue()) {
sb.append("~");
}
int masks = element.getMask().size();
if (masks > 1) {
sb.append("(");
}
int mas... | public class class_name {
public static String getElementAsString(Element element) {
StringBuilder sb = new StringBuilder();
if (element.isNegated() != null && element.isNegated().booleanValue()) {
sb.append("~"); // depends on control dependency: [if], data = [none]
}
int masks = element.getMask().size()... |
public class class_name {
@Override
public void cacheResult(List<CommerceTaxMethod> commerceTaxMethods) {
for (CommerceTaxMethod commerceTaxMethod : commerceTaxMethods) {
if (entityCache.getResult(
CommerceTaxMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceTaxMethodImpl.class,
commerceTaxMethod.g... | public class class_name {
@Override
public void cacheResult(List<CommerceTaxMethod> commerceTaxMethods) {
for (CommerceTaxMethod commerceTaxMethod : commerceTaxMethods) {
if (entityCache.getResult(
CommerceTaxMethodModelImpl.ENTITY_CACHE_ENABLED,
CommerceTaxMethodImpl.class,
commerceTaxMethod.g... |
public class class_name {
private static String getSignature(MethodLiteral<?, ?> method, String[] paramNames,
String overrideName, int overrideModifiers) throws NoSourceNameException {
if (paramNames.length != method.getParameterTypes().size()) {
throw new IllegalArgumentException(
String.for... | public class class_name {
private static String getSignature(MethodLiteral<?, ?> method, String[] paramNames,
String overrideName, int overrideModifiers) throws NoSourceNameException {
if (paramNames.length != method.getParameterTypes().size()) {
throw new IllegalArgumentException(
String.for... |
public class class_name {
public T addTableColumn(final Connection _con,
final String _tableName,
final String _columnName,
final ColumnType _columnType,
final String _defaultValue,
... | public class class_name {
public T addTableColumn(final Connection _con,
final String _tableName,
final String _columnName,
final ColumnType _columnType,
final String _defaultValue,
... |
public class class_name {
public static List<CommercePriceList> toModels(
CommercePriceListSoap[] soapModels) {
if (soapModels == null) {
return null;
}
List<CommercePriceList> models = new ArrayList<CommercePriceList>(soapModels.length);
for (CommercePriceListSoap soapModel : soapModels) {
models.ad... | public class class_name {
public static List<CommercePriceList> toModels(
CommercePriceListSoap[] soapModels) {
if (soapModels == null) {
return null; // depends on control dependency: [if], data = [none]
}
List<CommercePriceList> models = new ArrayList<CommercePriceList>(soapModels.length);
for (Commer... |
public class class_name {
public V remove(final int key)
{
@DoNotSub final int mask = values.length - 1;
@DoNotSub int index = Hashing.hash(key, mask);
Object value;
while (null != (value = values[index]))
{
if (key == keys[index])
{
... | public class class_name {
public V remove(final int key)
{
@DoNotSub final int mask = values.length - 1;
@DoNotSub int index = Hashing.hash(key, mask);
Object value;
while (null != (value = values[index]))
{
if (key == keys[index])
{
... |
public class class_name {
public static double distanceSq( LineSegment2D_F64 line, Point2D_F64 p ) {
double a = line.b.x - line.a.x;
double b = line.b.y - line.a.y;
double t = a * ( p.x - line.a.x ) + b * ( p.y - line.a.y );
t /= ( a * a + b * b );
// if the point of intersection is past the end points ret... | public class class_name {
public static double distanceSq( LineSegment2D_F64 line, Point2D_F64 p ) {
double a = line.b.x - line.a.x;
double b = line.b.y - line.a.y;
double t = a * ( p.x - line.a.x ) + b * ( p.y - line.a.y );
t /= ( a * a + b * b );
// if the point of intersection is past the end points ret... |
public class class_name {
public Condition asCondition() {
Condition condition = new Condition().withComparisonOperator(operator.getComparisonOperator());
int argumentCount = operator.getArgumentCount();
if (argumentCount == 1) {
condition.withAttributeValueList(ConversionUtil.toAt... | public class class_name {
public Condition asCondition() {
Condition condition = new Condition().withComparisonOperator(operator.getComparisonOperator());
int argumentCount = operator.getArgumentCount();
if (argumentCount == 1) {
condition.withAttributeValueList(ConversionUtil.toAt... |
public class class_name {
protected void mergeVariables(TaskQueryImpl extendedQuery, TaskQueryImpl extendingQuery) {
List<TaskQueryVariableValue> extendingVariables = extendingQuery.getVariables();
Set<TaskQueryVariableValueComparable> extendingVariablesComparable = new HashSet<TaskQueryVariableValueComparabl... | public class class_name {
protected void mergeVariables(TaskQueryImpl extendedQuery, TaskQueryImpl extendingQuery) {
List<TaskQueryVariableValue> extendingVariables = extendingQuery.getVariables();
Set<TaskQueryVariableValueComparable> extendingVariablesComparable = new HashSet<TaskQueryVariableValueComparabl... |
public class class_name {
@Override
public Collection<Accountable> getChildResources() {
List<Accountable> resources = new ArrayList<>();
if (delegateFieldsProducer != null) {
resources.add(
Accountables.namedAccountable("delegate", delegateFieldsProducer));
}
return Collections.unmod... | public class class_name {
@Override
public Collection<Accountable> getChildResources() {
List<Accountable> resources = new ArrayList<>();
if (delegateFieldsProducer != null) {
resources.add(
Accountables.namedAccountable("delegate", delegateFieldsProducer)); // depends on control dependency: ... |
public class class_name {
public void writeValue (String name, Object value) {
try {
writer.name(name);
} catch (IOException ex) {
throw new JsonException(ex);
}
if (value == null)
writeValue(value, null, null);
else
writeValue(value, value.getClass(), null);
} } | public class class_name {
public void writeValue (String name, Object value) {
try {
writer.name(name);
// depends on control dependency: [try], data = [none]
} catch (IOException ex) {
throw new JsonException(ex);
}
// depends on control dependency: [catch], data = [none]
if (value == null)
wr... |
public class class_name {
@Override
public String toImplementationClassName(final String className) {
final String implementationClassName = interfaceToImplementationMap.get(className);
if (implementationClassName != null) {
return implementationClassName;
}
final int in... | public class class_name {
@Override
public String toImplementationClassName(final String className) {
final String implementationClassName = interfaceToImplementationMap.get(className);
if (implementationClassName != null) {
return implementationClassName; // depends on control dependen... |
public class class_name {
public String format(MonetaryAmount amount){
StringBuilder b = new StringBuilder();
try{
print(b, amount);
}
catch(IOException e){
throw new IllegalStateException("Formatting error.", e);
}
return b.toString();
} } | public class class_name {
public String format(MonetaryAmount amount){
StringBuilder b = new StringBuilder();
try{
print(b, amount); // depends on control dependency: [try], data = [none]
}
catch(IOException e){
throw new IllegalStateException("Formatting error."... |
public class class_name {
public EClass getIfcRampFlightType() {
if (ifcRampFlightTypeEClass == null) {
ifcRampFlightTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(424);
}
return ifcRampFlightTypeEClass;
} } | public class class_name {
public EClass getIfcRampFlightType() {
if (ifcRampFlightTypeEClass == null) {
ifcRampFlightTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(424);
// depends on control dependency: [if], data = [none]
}
return ifcR... |
public class class_name {
@SuppressWarnings("unchecked")
private void init(SolrQueryRequest req) throws IOException {
if (config == null) {
// initialise
config = new MtasUpdateRequestProcessorConfig();
// required info
Map<String, FieldType> fieldTypes = req.getSchema().getFieldTypes();
... | public class class_name {
@SuppressWarnings("unchecked")
private void init(SolrQueryRequest req) throws IOException {
if (config == null) {
// initialise
config = new MtasUpdateRequestProcessorConfig();
// required info
Map<String, FieldType> fieldTypes = req.getSchema().getFieldTypes();
... |
public class class_name {
public static boolean isIndex(Nanopub np) {
for (Statement st : np.getPubinfo()) {
if (!st.getSubject().equals(np.getUri())) continue;
if (!st.getPredicate().equals(RDF.TYPE)) continue;
if (!st.getObject().equals(NanopubIndex.NANOPUB_INDEX_URI)) continue;
return true;
}
retu... | public class class_name {
public static boolean isIndex(Nanopub np) {
for (Statement st : np.getPubinfo()) {
if (!st.getSubject().equals(np.getUri())) continue;
if (!st.getPredicate().equals(RDF.TYPE)) continue;
if (!st.getObject().equals(NanopubIndex.NANOPUB_INDEX_URI)) continue;
return true; // depends... |
public class class_name {
public JSONArray getKeywordsJsonArray() {
JSONArray keywordArray = new JSONArray();
for (String keyword : keywords_) {
keywordArray.put(keyword);
}
return keywordArray;
} } | public class class_name {
public JSONArray getKeywordsJsonArray() {
JSONArray keywordArray = new JSONArray();
for (String keyword : keywords_) {
keywordArray.put(keyword); // depends on control dependency: [for], data = [keyword]
}
return keywordArray;
} } |
public class class_name {
public final EObject entryRuleXtendEnumLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXtendEnumLiteral = null;
try {
// InternalSARL.g:7404:57: (iv_ruleXtendEnumLiteral= ruleXtendEnumLiteral EOF )
// InternalSA... | public class class_name {
public final EObject entryRuleXtendEnumLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXtendEnumLiteral = null;
try {
// InternalSARL.g:7404:57: (iv_ruleXtendEnumLiteral= ruleXtendEnumLiteral EOF )
// InternalSA... |
public class class_name {
protected final String escapeSlow(String s, int index) {
int end = s.length();
// Get a destination buffer and setup some loop variables.
char[] dest = DEST_TL.get();
int destIndex = 0;
int unescapedChunkStart = 0;
while (index < end) {
int cp = codePointAt(s, ... | public class class_name {
protected final String escapeSlow(String s, int index) {
int end = s.length();
// Get a destination buffer and setup some loop variables.
char[] dest = DEST_TL.get();
int destIndex = 0;
int unescapedChunkStart = 0;
while (index < end) {
int cp = codePointAt(s, ... |
public class class_name {
public boolean findCoordElementNoForce(double wantLat, double wantLon, int[] rectIndex) {
findBounds();
if (wantLat < latMinMax.min) return false;
if (wantLat > latMinMax.max) return false;
if (wantLon < lonMinMax.min) return false;
if (wantLon > lonMinMax.max) return... | public class class_name {
public boolean findCoordElementNoForce(double wantLat, double wantLon, int[] rectIndex) {
findBounds();
if (wantLat < latMinMax.min) return false;
if (wantLat > latMinMax.max) return false;
if (wantLon < lonMinMax.min) return false;
if (wantLon > lonMinMax.max) return... |
public class class_name {
public static void merge(List<PathDetail> pathDetails, List<PathDetail> otherDetails) {
// Make sure that the PathDetail list is merged correctly at via points
if (!pathDetails.isEmpty() && !otherDetails.isEmpty()) {
PathDetail lastDetail = pathDetails.get(pathDeta... | public class class_name {
public static void merge(List<PathDetail> pathDetails, List<PathDetail> otherDetails) {
// Make sure that the PathDetail list is merged correctly at via points
if (!pathDetails.isEmpty() && !otherDetails.isEmpty()) {
PathDetail lastDetail = pathDetails.get(pathDeta... |
public class class_name {
public void setHeader (File header)
{
try {
_header = StreamUtil.toString(new FileReader(header));
} catch (IOException ioe) {
System.err.println("Unabled to load header '" + header + ": " +
ioe.getMessage());
... | public class class_name {
public void setHeader (File header)
{
try {
_header = StreamUtil.toString(new FileReader(header)); // depends on control dependency: [try], data = [none]
} catch (IOException ioe) {
System.err.println("Unabled to load header '" + header + ": " +
... |
public class class_name {
private HashMap<String, List<Validator>> getParamConverters(
final CompositeIndex index, final ClassLoader classLoader,
Set<String> knownProviderClasses, boolean isFromUnitTest) {
HashMap<String, List<Validator>> paramConverterMap = new HashMap<>();
L... | public class class_name {
private HashMap<String, List<Validator>> getParamConverters(
final CompositeIndex index, final ClassLoader classLoader,
Set<String> knownProviderClasses, boolean isFromUnitTest) {
HashMap<String, List<Validator>> paramConverterMap = new HashMap<>();
L... |
public class class_name {
private static void doCheck(SqlFragmentContainer statement, HashMap<String, ParameterDeclaration> paramMap,
final MethodDeclaration method)
{
SqlFragment[] fragments = statement.getChildren();
for (SqlFragment fragment : fragments) {
... | public class class_name {
private static void doCheck(SqlFragmentContainer statement, HashMap<String, ParameterDeclaration> paramMap,
final MethodDeclaration method)
{
SqlFragment[] fragments = statement.getChildren();
for (SqlFragment fragment : fragments) {
... |
public class class_name {
private void resize() {
double width = getWidth() - getInsets().getLeft() - getInsets().getRight();
double height = getHeight() - getInsets().getTop() - getInsets().getBottom();
size = width < height ? width : height;
if (size > 0) {
pane... | public class class_name {
private void resize() {
double width = getWidth() - getInsets().getLeft() - getInsets().getRight();
double height = getHeight() - getInsets().getTop() - getInsets().getBottom();
size = width < height ? width : height;
if (size > 0) {
pane... |
public class class_name {
public void setAdditionalStagingLabelsToDownload(java.util.Collection<String> additionalStagingLabelsToDownload) {
if (additionalStagingLabelsToDownload == null) {
this.additionalStagingLabelsToDownload = null;
return;
}
this.additionalStagingL... | public class class_name {
public void setAdditionalStagingLabelsToDownload(java.util.Collection<String> additionalStagingLabelsToDownload) {
if (additionalStagingLabelsToDownload == null) {
this.additionalStagingLabelsToDownload = null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public DBEngineVersion withSupportedTimezones(Timezone... supportedTimezones) {
if (this.supportedTimezones == null) {
setSupportedTimezones(new java.util.ArrayList<Timezone>(supportedTimezones.length));
}
for (Timezone ele : supportedTimezones) {
... | public class class_name {
public DBEngineVersion withSupportedTimezones(Timezone... supportedTimezones) {
if (this.supportedTimezones == null) {
setSupportedTimezones(new java.util.ArrayList<Timezone>(supportedTimezones.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private void broadcast(ImmutableMember update) {
for (SwimMember member : members.values()) {
if (!localMember.id().equals(member.id())) {
unicast(member, update);
}
}
} } | public class class_name {
private void broadcast(ImmutableMember update) {
for (SwimMember member : members.values()) {
if (!localMember.id().equals(member.id())) {
unicast(member, update); // depends on control dependency: [if], data = [none]
}
}
} } |
public class class_name {
public void merge(RunResults runResults) {
for (RootMethodRunResult srcResult : runResults.rootMethodRunResults) {
if (getRunResultByRootMethodKey(srcResult.getRootMethodKey()) != null) {
throw new RuntimeException(String.format(
"no... | public class class_name {
public void merge(RunResults runResults) {
for (RootMethodRunResult srcResult : runResults.rootMethodRunResults) {
if (getRunResultByRootMethodKey(srcResult.getRootMethodKey()) != null) {
throw new RuntimeException(String.format(
"no... |
public class class_name {
public Map<String, CellStyle> getCellStylePool() {
if (null == this.cellStylePool) {
this.cellStylePool = new HashMap<String, CellStyle>(16);
}
return this.cellStylePool;
} } | public class class_name {
public Map<String, CellStyle> getCellStylePool() {
if (null == this.cellStylePool) {
this.cellStylePool = new HashMap<String, CellStyle>(16); // depends on control dependency: [if], data = [none]
}
return this.cellStylePool;
} } |
public class class_name {
public void setProfileProxy(int profile, @Nullable BluetoothProfile proxy) {
isOverridingProxyBehavior = true;
if (proxy != null) {
profileProxies.put(profile, proxy);
}
} } | public class class_name {
public void setProfileProxy(int profile, @Nullable BluetoothProfile proxy) {
isOverridingProxyBehavior = true;
if (proxy != null) {
profileProxies.put(profile, proxy); // depends on control dependency: [if], data = [none]
}
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.