code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public boolean startDiscovery(BeanDiscoveryListener listener) {
if (mScanning) {
Log.e(TAG, "Already discovering");
return true;
}
mListener = listener;
return scan();
} } | public class class_name {
public boolean startDiscovery(BeanDiscoveryListener listener) {
if (mScanning) {
Log.e(TAG, "Already discovering"); // depends on control dependency: [if], data = [none]
return true; // depends on control dependency: [if], data = [none]
}
mList... |
public class class_name {
public Concept getConcept(Variable var) {
var = equivalentVars.componentOf(var);
assert var != null;
@Nullable Concept concept = concepts.get(var);
if (concept == null) {
@Nullable ConceptBuilder builder = conceptBuilders.remove(var);
... | public class class_name {
public Concept getConcept(Variable var) {
var = equivalentVars.componentOf(var);
assert var != null;
@Nullable Concept concept = concepts.get(var);
if (concept == null) {
@Nullable ConceptBuilder builder = conceptBuilders.remove(var);
... |
public class class_name {
public void addAttributeItemRule(ItemRule itemRule) {
if (attributeItemRuleMap == null) {
attributeItemRuleMap = new ItemRuleMap();
}
attributeItemRuleMap.putItemRule(itemRule);
} } | public class class_name {
public void addAttributeItemRule(ItemRule itemRule) {
if (attributeItemRuleMap == null) {
attributeItemRuleMap = new ItemRuleMap(); // depends on control dependency: [if], data = [none]
}
attributeItemRuleMap.putItemRule(itemRule);
} } |
public class class_name {
public static void main(String[] args)
{
// Use the command line parser to evaluate the command line.
CommandLineParser commandLine =
new CommandLineParser(
new String[][]
{
{
"s", "The... | public class class_name {
public static void main(String[] args)
{
// Use the command line parser to evaluate the command line.
CommandLineParser commandLine =
new CommandLineParser(
new String[][]
{
{
"s", "The... |
public class class_name {
public static Date[] getSeasonDate(Date date) {
Date[] season = new Date[3];
Calendar c = Calendar.getInstance();
c.setTime(date);
int nSeason = getQuarter(date);
if (nSeason == 1) {// 第一季度
c.set(Calendar.MONTH, Calendar.JANUARY);
... | public class class_name {
public static Date[] getSeasonDate(Date date) {
Date[] season = new Date[3];
Calendar c = Calendar.getInstance();
c.setTime(date);
int nSeason = getQuarter(date);
if (nSeason == 1) {// 第一季度
c.set(Calendar.MONTH, Calendar.JANUARY); // depends... |
public class class_name {
public boolean hasCheckMultiActions() {
Iterator<CmsListMultiAction> it = m_multiActions.elementList().iterator();
while (it.hasNext()) {
CmsListMultiAction action = it.next();
if (!(action instanceof CmsListRadioMultiAction)) {
return ... | public class class_name {
public boolean hasCheckMultiActions() {
Iterator<CmsListMultiAction> it = m_multiActions.elementList().iterator();
while (it.hasNext()) {
CmsListMultiAction action = it.next();
if (!(action instanceof CmsListRadioMultiAction)) {
return ... |
public class class_name {
@SuppressWarnings("unchecked")
@Override
public T getDefaultValue() {
if (this.defaultValue == null || ConfigProperty.NULL_VALUE.equals(this.defaultValue) || ConfigProperty.UNCONFIGURED_VALUE.equals(this.defaultValue)) {
return null;
} else {
re... | public class class_name {
@SuppressWarnings("unchecked")
@Override
public T getDefaultValue() {
if (this.defaultValue == null || ConfigProperty.NULL_VALUE.equals(this.defaultValue) || ConfigProperty.UNCONFIGURED_VALUE.equals(this.defaultValue)) {
return null; // depends on control dependenc... |
public class class_name {
@SuppressWarnings({ "unchecked" })
public <T> Mapping<T> getMapping(Class<T> clazz,
AnnotationSet<?, ?> annotationSet, boolean includeParentFields) {
Mapping<T> mapping = (Mapping<T>) cache.get(clazz); // cast is safe as
... | public class class_name {
@SuppressWarnings({ "unchecked" })
public <T> Mapping<T> getMapping(Class<T> clazz,
AnnotationSet<?, ?> annotationSet, boolean includeParentFields) {
Mapping<T> mapping = (Mapping<T>) cache.get(clazz); // cast is safe as
... |
public class class_name {
public static <T> ByteString serialize(final String templateName, T object) {
StringWriter templateResults = new StringWriter();
try {
final Template template = configuration.getTemplate(templateName);
template.process(object, templateResults);
} catch (Exception e) {
... | public class class_name {
public static <T> ByteString serialize(final String templateName, T object) {
StringWriter templateResults = new StringWriter();
try {
final Template template = configuration.getTemplate(templateName);
template.process(object, templateResults); // depends on control depend... |
public class class_name {
private void verbosePolyCmd(String pCmd, Rectangle pBounds, Polygon pPolygon) {
System.out.println(pCmd + ": " + pBounds);
System.out.print("Polygon points: ");
if (pPolygon != null && pPolygon.npoints > 0) {
System.out.print("(" + pPolygon.xpoints[0] + ","... | public class class_name {
private void verbosePolyCmd(String pCmd, Rectangle pBounds, Polygon pPolygon) {
System.out.println(pCmd + ": " + pBounds);
System.out.print("Polygon points: ");
if (pPolygon != null && pPolygon.npoints > 0) {
System.out.print("(" + pPolygon.xpoints[0] + ","... |
public class class_name {
protected void showResource(HttpServletRequest req, HttpServletResponse res) {
CmsObject cms = null;
try {
cms = initCmsObject(req, res);
if (cms.getRequestContext().getCurrentProject().isOnlineProject()) {
String uri = cms.getRequestC... | public class class_name {
protected void showResource(HttpServletRequest req, HttpServletResponse res) {
CmsObject cms = null;
try {
cms = initCmsObject(req, res); // depends on control dependency: [try], data = [none]
if (cms.getRequestContext().getCurrentProject().isOnlinePr... |
public class class_name {
public boolean match(String rootPath, CmsLock lock) {
boolean match = false;
if (m_includeChildren) {
// safe since rootPath always ends with slash if a folder
match = lock.getResourceName().startsWith(rootPath);
}
if (!match && m_inclu... | public class class_name {
public boolean match(String rootPath, CmsLock lock) {
boolean match = false;
if (m_includeChildren) {
// safe since rootPath always ends with slash if a folder
match = lock.getResourceName().startsWith(rootPath); // depends on control dependency: [if],... |
public class class_name {
private List<Record> getBadRecords(ErrorSink errorSink) {
List<Record> badRecords = new ArrayList<>();
for (Map.Entry<String, List<Record>> entry : errorSink.getErrorRecords().entrySet()) {
for (Record record : entry.getValue()) {
RecordImpl errorRecord;
switch... | public class class_name {
private List<Record> getBadRecords(ErrorSink errorSink) {
List<Record> badRecords = new ArrayList<>();
for (Map.Entry<String, List<Record>> entry : errorSink.getErrorRecords().entrySet()) {
for (Record record : entry.getValue()) {
RecordImpl errorRecord;
switch... |
public class class_name {
@Override
@SuppressFBWarnings(value = "UL_UNRELEASED_LOCK", justification = "False positive from FindBugs")
public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext) {
if (!isActive()) {
throw new ContextNotActiveException();
}
... | public class class_name {
@Override
@SuppressFBWarnings(value = "UL_UNRELEASED_LOCK", justification = "False positive from FindBugs")
public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext) {
if (!isActive()) {
throw new ContextNotActiveException();
}
... |
public class class_name {
public static String tableName(String fieldFullyQualifiedName) {
if (fieldFullyQualifiedName.contains(".")) {
return fieldFullyQualifiedName.substring(0, fieldFullyQualifiedName.indexOf("."));
}
return null;
} } | public class class_name {
public static String tableName(String fieldFullyQualifiedName) {
if (fieldFullyQualifiedName.contains(".")) {
return fieldFullyQualifiedName.substring(0, fieldFullyQualifiedName.indexOf(".")); // depends on control dependency: [if], data = [none]
}
return n... |
public class class_name {
@Override
public void restore() {
if (log.isInfoEnabled()) {
log.info("Restoring default locale to [" + originalLocale + "]");
}
try {
Locale.setDefault(originalLocale);
} catch (Exception e) {
log.error("Could not rest... | public class class_name {
@Override
public void restore() {
if (log.isInfoEnabled()) {
log.info("Restoring default locale to [" + originalLocale + "]"); // depends on control dependency: [if], data = [none]
}
try {
Locale.setDefault(originalLocale); // depends on c... |
public class class_name {
public static ValueType fromConfig(String property) {
//If the property is valid and we cannot find a "property.type" then the value of the property represents its simple type.
if (Config.hasProperty(property) && !Config.hasProperty(property, TYPE_PROPERTY)) {
return new ... | public class class_name {
public static ValueType fromConfig(String property) {
//If the property is valid and we cannot find a "property.type" then the value of the property represents its simple type.
if (Config.hasProperty(property) && !Config.hasProperty(property, TYPE_PROPERTY)) {
return new ... |
public class class_name {
public static List<String> csvSplit(List<String> list, String s, int off, int len) {
if (list == null)
list = new ArrayList<>();
CsvSplitState state = CsvSplitState.PRE_DATA;
StringBuilder out = new StringBuilder();
int last = -1;
whil... | public class class_name {
public static List<String> csvSplit(List<String> list, String s, int off, int len) {
if (list == null)
list = new ArrayList<>();
CsvSplitState state = CsvSplitState.PRE_DATA;
StringBuilder out = new StringBuilder();
int last = -1;
whil... |
public class class_name {
private static String buildOverloadParameterString(Class<?>[] parameterTypes) {
StringBuilder name = new StringBuilder();
if (parameterTypes.length == 0) {
name.append("__");
} else {
for (int i = 0; i < parameterTypes.length; i++) {
... | public class class_name {
private static String buildOverloadParameterString(Class<?>[] parameterTypes) {
StringBuilder name = new StringBuilder();
if (parameterTypes.length == 0) {
name.append("__"); // depends on control dependency: [if], data = [none]
} else {
for (in... |
public class class_name {
public EClass getFNMRG() {
if (fnmrgEClass == null) {
fnmrgEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(408);
}
return fnmrgEClass;
} } | public class class_name {
public EClass getFNMRG() {
if (fnmrgEClass == null) {
fnmrgEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(408); // depends on control dependency: [if], data = [none]
}
return fnmrgEClass;
} } |
public class class_name {
public void marshall(GetVaultLockRequest getVaultLockRequest, ProtocolMarshaller protocolMarshaller) {
if (getVaultLockRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(GetVaultLockRequest getVaultLockRequest, ProtocolMarshaller protocolMarshaller) {
if (getVaultLockRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
public String getClassPath() {
StringBuilder buf = new StringBuilder();
for (Entry entry : entryList) {
if (buf.length() > 0) {
buf.append(File.pathSeparator);
}
buf.append(entry.getURL());
}
return buf.toStri... | public class class_name {
public String getClassPath() {
StringBuilder buf = new StringBuilder();
for (Entry entry : entryList) {
if (buf.length() > 0) {
buf.append(File.pathSeparator); // depends on control dependency: [if], data = [none]
}
buf.appen... |
public class class_name {
public static Object toArray(Collection<?> collection, Class<?> componentType) {
if (componentType.isPrimitive()) {
Object array = Array.newInstance(componentType, collection.size());
int index = 0;
for (Object value : collection) {
Array.set(array, index++, valu... | public class class_name {
public static Object toArray(Collection<?> collection, Class<?> componentType) {
if (componentType.isPrimitive()) {
Object array = Array.newInstance(componentType, collection.size());
int index = 0;
for (Object value : collection) {
Array.set(array, index++, valu... |
public class class_name {
public Optional<JApiClass> getJApiClass() {
if (oldSuperclassOptional.isPresent() && newSuperclassOptional.isPresent()) {
CtClass oldSuperclass = oldSuperclassOptional.get();
CtClass newSuperclass = newSuperclassOptional.get();
String oldSuperclassName = oldSuperclass.getName();
... | public class class_name {
public Optional<JApiClass> getJApiClass() {
if (oldSuperclassOptional.isPresent() && newSuperclassOptional.isPresent()) {
CtClass oldSuperclass = oldSuperclassOptional.get();
CtClass newSuperclass = newSuperclassOptional.get();
String oldSuperclassName = oldSuperclass.getName();
... |
public class class_name {
public static String rpad(String base, int len, String pad) {
if (len < 0 || "".equals(pad)) {
return null;
} else if (len == 0) {
return "";
}
char[] data = new char[len];
char[] baseChars = base.toCharArray();
char[] padChars = pad.toCharArray();
int pos = 0;
// cop... | public class class_name {
public static String rpad(String base, int len, String pad) {
if (len < 0 || "".equals(pad)) {
return null; // depends on control dependency: [if], data = [none]
} else if (len == 0) {
return ""; // depends on control dependency: [if], data = [none]
}
char[] data = new char[len... |
public class class_name {
public void deleteIndex(String indexName, String designDocId, String type) {
assertNotEmpty(indexName, "indexName");
assertNotEmpty(designDocId, "designDocId");
assertNotNull(type, "type");
if (!designDocId.startsWith("_design")) {
designDocId = "_d... | public class class_name {
public void deleteIndex(String indexName, String designDocId, String type) {
assertNotEmpty(indexName, "indexName");
assertNotEmpty(designDocId, "designDocId");
assertNotNull(type, "type");
if (!designDocId.startsWith("_design")) {
designDocId = "_d... |
public class class_name {
Invoice earliest(final SortedSet<Invoice> unpaidInvoices) {
try {
return unpaidInvoices.first();
} catch (NoSuchElementException e) {
return null;
}
} } | public class class_name {
Invoice earliest(final SortedSet<Invoice> unpaidInvoices) {
try {
return unpaidInvoices.first(); // depends on control dependency: [try], data = [none]
} catch (NoSuchElementException e) {
return null;
} // depends on control dependency: [catch]... |
public class class_name {
public static long[] andI(long[] v, long[] o, int off) {
if(off == 0) {
return andI(v, o);
}
// Break shift into integers to shift and bits to shift
final int shiftWords = off >> LONG_LOG2_SIZE;
final int shiftBits = off & LONG_LOG2_MASK;
if(shiftWords >= v.leng... | public class class_name {
public static long[] andI(long[] v, long[] o, int off) {
if(off == 0) {
return andI(v, o); // depends on control dependency: [if], data = [none]
}
// Break shift into integers to shift and bits to shift
final int shiftWords = off >> LONG_LOG2_SIZE;
final int shiftBit... |
public class class_name {
public static String getAlgorithm(final URI digestUri) {
if (digestUri == null) {
return DEFAULT_ALGORITHM;
}
return DIGEST_ALGORITHM.fromScheme(digestUri.getScheme() + ":" +
digestUri.getSchemeSpecificPart().split(":", 2)[0]).algorithm;
} ... | public class class_name {
public static String getAlgorithm(final URI digestUri) {
if (digestUri == null) {
return DEFAULT_ALGORITHM; // depends on control dependency: [if], data = [none]
}
return DIGEST_ALGORITHM.fromScheme(digestUri.getScheme() + ":" +
digestUri.getSc... |
public class class_name {
void setPidToJvm(JVMId jvmId, String pid) {
if (jvmId.isMapJVM()) {
mapJvmManager.jvmIdToPid.put(jvmId, pid);
}
else {
reduceJvmManager.jvmIdToPid.put(jvmId, pid);
}
} } | public class class_name {
void setPidToJvm(JVMId jvmId, String pid) {
if (jvmId.isMapJVM()) {
mapJvmManager.jvmIdToPid.put(jvmId, pid); // depends on control dependency: [if], data = [none]
}
else {
reduceJvmManager.jvmIdToPid.put(jvmId, pid); // depends on control dependency: [if], data = [non... |
public class class_name {
private ITag createFileMeta() {
// Create tag for onMetaData event
IoBuffer buf = IoBuffer.allocate(192);
buf.setAutoExpand(true);
Output out = new Output(buf);
// Duration property
out.writeString("onMetaData");
Map<Object, Object> prop... | public class class_name {
private ITag createFileMeta() {
// Create tag for onMetaData event
IoBuffer buf = IoBuffer.allocate(192);
buf.setAutoExpand(true);
Output out = new Output(buf);
// Duration property
out.writeString("onMetaData");
Map<Object, Object> prop... |
public class class_name {
@Override
public String getColumnName(int column) {
try {
return metadata.getColumnLabel(column + 1);
} catch (SQLException e) {
e.printStackTrace(System.err);
return e.toString();
}
} } | public class class_name {
@Override
public String getColumnName(int column) {
try {
return metadata.getColumnLabel(column + 1); // depends on control dependency: [try], data = [none]
} catch (SQLException e) {
e.printStackTrace(System.err);
return e.toString();
} // depends on control dependency: [catc... |
public class class_name {
public final void qualifiedNameList() throws RecognitionException {
int qualifiedNameList_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 55) ) { return; }
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:562:5: ( quali... | public class class_name {
public final void qualifiedNameList() throws RecognitionException {
int qualifiedNameList_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 55) ) { return; } // depends on control dependency: [if], data = [none]
// src/main/resources/org/drool... |
public class class_name {
public ResolvableType as(Class<?> type) {
if (this == NONE) {
return NONE;
}
if (ObjectUtils.nullSafeEquals(resolve(), type)) {
return this;
}
for (ResolvableType interfaceType : getInterfaces()) {
ResolvableType interfaceAsType = interfaceType.as(type);
if (interfaceAsT... | public class class_name {
public ResolvableType as(Class<?> type) {
if (this == NONE) {
return NONE; // depends on control dependency: [if], data = [none]
}
if (ObjectUtils.nullSafeEquals(resolve(), type)) {
return this; // depends on control dependency: [if], data = [none]
}
for (ResolvableType interf... |
public class class_name {
public static WebDriver createDriver(String browserType, String url, String size) {
if (browserType == null) {
browserType = GalenConfig.getConfig().getDefaultBrowser();
}
SeleniumBrowser browser = (SeleniumBrowser) new SeleniumBrowserFactory(brow... | public class class_name {
public static WebDriver createDriver(String browserType, String url, String size) {
if (browserType == null) {
browserType = GalenConfig.getConfig().getDefaultBrowser(); // depends on control dependency: [if], data = [none]
}
SeleniumBrowser brows... |
public class class_name {
public IdentityDkimAttributes withDkimTokens(String... dkimTokens) {
if (this.dkimTokens == null) {
setDkimTokens(new com.amazonaws.internal.SdkInternalList<String>(dkimTokens.length));
}
for (String ele : dkimTokens) {
this.dkimTokens.add(ele);... | public class class_name {
public IdentityDkimAttributes withDkimTokens(String... dkimTokens) {
if (this.dkimTokens == null) {
setDkimTokens(new com.amazonaws.internal.SdkInternalList<String>(dkimTokens.length)); // depends on control dependency: [if], data = [none]
}
for (String ele... |
public class class_name {
private void registerLocalDirectives(Component annotation, MethodSpec.Builder initBuilder) {
try {
Class<?>[] componentsClass = annotation.directives();
if (componentsClass.length > 0) {
addGetDirectivesStatement(initBuilder);
}
Stream
.of(compo... | public class class_name {
private void registerLocalDirectives(Component annotation, MethodSpec.Builder initBuilder) {
try {
Class<?>[] componentsClass = annotation.directives();
if (componentsClass.length > 0) {
addGetDirectivesStatement(initBuilder); // depends on control dependency: [if], d... |
public class class_name {
private void addJavaFXPropertyToClass(SourceUnit source, AnnotationNode node, ClassNode classNode) {
for (PropertyNode propertyNode : classNode.getProperties()) {
FieldNode field = propertyNode.getField();
// look to see if per-field handlers will catch this on... | public class class_name {
private void addJavaFXPropertyToClass(SourceUnit source, AnnotationNode node, ClassNode classNode) {
for (PropertyNode propertyNode : classNode.getProperties()) {
FieldNode field = propertyNode.getField();
// look to see if per-field handlers will catch this on... |
public class class_name {
public static void denoise(double[] t, Wavelet wavelet, boolean soft) {
wavelet.transform(t);
int n = t.length;
int nh = t.length >> 1;
double[] wc = new double[nh];
System.arraycopy(t, nh, wc, 0, nh);
double error = Math.mad(wc) / 0.6745;
... | public class class_name {
public static void denoise(double[] t, Wavelet wavelet, boolean soft) {
wavelet.transform(t);
int n = t.length;
int nh = t.length >> 1;
double[] wc = new double[nh];
System.arraycopy(t, nh, wc, 0, nh);
double error = Math.mad(wc) / 0.6745;
... |
public class class_name {
public void setCategoryList(java.util.Collection<Category> categoryList) {
if (categoryList == null) {
this.categoryList = null;
return;
}
this.categoryList = new java.util.ArrayList<Category>(categoryList);
} } | public class class_name {
public void setCategoryList(java.util.Collection<Category> categoryList) {
if (categoryList == null) {
this.categoryList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private static boolean printLogInfo(int obj) {
IntBuffer iVal = BufferUtils.createIntBuffer(1);
ARBShaderObjects.glGetObjectParameterARB(obj,
ARBShaderObjects.GL_OBJECT_INFO_LOG_LENGTH_ARB, iVal);
int length = iVal.get();
if (length > 1) {
... | public class class_name {
private static boolean printLogInfo(int obj) {
IntBuffer iVal = BufferUtils.createIntBuffer(1);
ARBShaderObjects.glGetObjectParameterARB(obj,
ARBShaderObjects.GL_OBJECT_INFO_LOG_LENGTH_ARB, iVal);
int length = iVal.get();
if (length > 1) {
... |
public class class_name {
@Override
public String[] getFileSuffixes() {
String[] suffixes = filterEmptyStrings(settings.getStringArray(GroovyPlugin.FILE_SUFFIXES_KEY));
if (suffixes.length == 0) {
suffixes = StringUtils.split(GroovyPlugin.DEFAULT_FILE_SUFFIXES, ",");
}
return addDot(suffixes);
... | public class class_name {
@Override
public String[] getFileSuffixes() {
String[] suffixes = filterEmptyStrings(settings.getStringArray(GroovyPlugin.FILE_SUFFIXES_KEY));
if (suffixes.length == 0) {
suffixes = StringUtils.split(GroovyPlugin.DEFAULT_FILE_SUFFIXES, ","); // depends on control dependency: [... |
public class class_name {
private static void initSignCert() {
if(!"01".equals(SDKConfig.getConfig().getSignMethod())){
LogUtil.writeLog("非rsa签名方式,不加载签名证书。");
return;
}
if (SDKConfig.getConfig().getSignCertPath() == null
|| SDKConfig.getConfig().getSignCertPwd() == null
|| SDKConfig.getConfig().ge... | public class class_name {
private static void initSignCert() {
if(!"01".equals(SDKConfig.getConfig().getSignMethod())){
LogUtil.writeLog("非rsa签名方式,不加载签名证书。"); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
if (SDKConfig.getConfig().getS... |
public class class_name {
public Observable<ServiceResponse<CertificatePolicy>> updateCertificatePolicyWithServiceResponseAsync(String vaultBaseUrl, String certificateName, CertificatePolicy certificatePolicy) {
if (vaultBaseUrl == null) {
throw new IllegalArgumentException("Parameter vaultBaseUrl ... | public class class_name {
public Observable<ServiceResponse<CertificatePolicy>> updateCertificatePolicyWithServiceResponseAsync(String vaultBaseUrl, String certificateName, CertificatePolicy certificatePolicy) {
if (vaultBaseUrl == null) {
throw new IllegalArgumentException("Parameter vaultBaseUrl ... |
public class class_name {
public boolean isModified()
{
gatekeeper.signIn();
try
{
for (ChangeStack<String> stack : properties.values())
{
if (stack.isModified())
{
return true;
}
}
... | public class class_name {
public boolean isModified()
{
gatekeeper.signIn();
try
{
for (ChangeStack<String> stack : properties.values())
{
if (stack.isModified())
{
return true; // depends on control dependency: [if... |
public class class_name {
protected void removeStartedApplication(ServiceReference<Application> ref) {
String appName = (String) ref.getProperty(NAME);
lock.writeLock().lock();
try {
appStates.remove(appName);
} finally {
lock.writeLock().unlock();
}
... | public class class_name {
protected void removeStartedApplication(ServiceReference<Application> ref) {
String appName = (String) ref.getProperty(NAME);
lock.writeLock().lock();
try {
appStates.remove(appName); // depends on control dependency: [try], data = [none]
} finally ... |
public class class_name {
public void bind(ActivityContextInterface aci, String aciName)
throws NullPointerException, IllegalArgumentException,
TransactionRequiredLocalException, NameAlreadyBoundException,
FacilityException {
// Check if we are in the context of a transactio... | public class class_name {
public void bind(ActivityContextInterface aci, String aciName)
throws NullPointerException, IllegalArgumentException,
TransactionRequiredLocalException, NameAlreadyBoundException,
FacilityException {
// Check if we are in the context of a transactio... |
public class class_name {
public void drawToImageWithAreas(String path, String areaNames)
{
try
{
ImageOutputDisplay disp = new ImageOutputDisplay(getPage().getWidth(), getPage().getHeight());
disp.drawPage(getPage());
showAreas(disp, getAreaTree().getRoot(), are... | public class class_name {
public void drawToImageWithAreas(String path, String areaNames)
{
try
{
ImageOutputDisplay disp = new ImageOutputDisplay(getPage().getWidth(), getPage().getHeight());
disp.drawPage(getPage()); // depends on control dependency: [try], data = [none]
... |
public class class_name {
private final void consumeNonPersistentMessages(java.util.ArrayList consumeList)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "consumeNonPersistentMessages", consumeList);
// use a local transaction to consume all these messages
Local... | public class class_name {
private final void consumeNonPersistentMessages(java.util.ArrayList consumeList)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "consumeNonPersistentMessages", consumeList);
// use a local transaction to consume all these messages
Local... |
public class class_name {
public synchronized BigDecimal getBigDecimal(int parameterIndex,
int scale) throws SQLException {
if (scale < 0) {
throw Util.outOfRangeArgument();
}
// boucherb@users 20020502 - added conversion
BigDecimal bd = (BigDecimal) getColumnI... | public class class_name {
public synchronized BigDecimal getBigDecimal(int parameterIndex,
int scale) throws SQLException {
if (scale < 0) {
throw Util.outOfRangeArgument();
}
// boucherb@users 20020502 - added conversion
BigDecimal bd = (BigDecimal) getColumnI... |
public class class_name {
public void marshall(FleetError fleetError, ProtocolMarshaller protocolMarshaller) {
if (fleetError == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(fleetError.getErrorCod... | public class class_name {
public void marshall(FleetError fleetError, ProtocolMarshaller protocolMarshaller) {
if (fleetError == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(fleetError.getErrorCod... |
public class class_name {
public SimpleDialog messageTextColor(int color){
if(mMessageTextColor != color){
mMessageTextColor = color;
if(mMessage != null)
mMessage.setTextColor(color);
}
return this;
} } | public class class_name {
public SimpleDialog messageTextColor(int color){
if(mMessageTextColor != color){
mMessageTextColor = color; // depends on control dependency: [if], data = [none]
if(mMessage != null)
mMessage.setTextColor(color);
}
return this;
... |
public class class_name {
protected long determineBalance(final IntervalTreeNode node) {
if (node == null) {
return 0L;
}
return (node.hasLeft() ? node.getLeft().getHeight() : 0) -
(node.hasRight() ? node.getRight().getHeight() : 0);
} } | public class class_name {
protected long determineBalance(final IntervalTreeNode node) {
if (node == null) {
return 0L; // depends on control dependency: [if], data = [none]
}
return (node.hasLeft() ? node.getLeft().getHeight() : 0) -
(node.hasRight() ? node.getRigh... |
public class class_name {
public static WebOperation getOperationByName(final String name) throws WebOperationNotFoundException{
if(!cache.containsKey(name)){
WebOperation wo = null;
Map<String,Object> cls = Objects.find((List<Map<String,Object>>)Options.getStorage().getSystem(List.cla... | public class class_name {
public static WebOperation getOperationByName(final String name) throws WebOperationNotFoundException{
if(!cache.containsKey(name)){
WebOperation wo = null;
Map<String,Object> cls = Objects.find((List<Map<String,Object>>)Options.getStorage().getSystem(List.cla... |
public class class_name {
public void reset() {
endRange = set.getRangeCount() - 1;
range = 0;
endElement = -1;
nextElement = 0;
if (endRange >= 0) {
loadRange(range);
}
stringIterator = null;
if (set.strings != null) {
... | public class class_name {
public void reset() {
endRange = set.getRangeCount() - 1;
range = 0;
endElement = -1;
nextElement = 0;
if (endRange >= 0) {
loadRange(range); // depends on control dependency: [if], data = [none]
}
stringIterator ... |
public class class_name {
public java.util.List<VpcEndpoint> getVpcEndpoints() {
if (vpcEndpoints == null) {
vpcEndpoints = new com.amazonaws.internal.SdkInternalList<VpcEndpoint>();
}
return vpcEndpoints;
} } | public class class_name {
public java.util.List<VpcEndpoint> getVpcEndpoints() {
if (vpcEndpoints == null) {
vpcEndpoints = new com.amazonaws.internal.SdkInternalList<VpcEndpoint>(); // depends on control dependency: [if], data = [none]
}
return vpcEndpoints;
} } |
public class class_name {
public void addArtifact(final Artifact artifact) {
if (!artifacts.contains(artifact)) {
if (promoted) {
artifact.setPromoted(promoted);
}
artifacts.add(artifact);
}
} } | public class class_name {
public void addArtifact(final Artifact artifact) {
if (!artifacts.contains(artifact)) {
if (promoted) {
artifact.setPromoted(promoted); // depends on control dependency: [if], data = [(promoted)]
}
artifacts.add(artifact); // depend... |
public class class_name {
public static OggAudioStreamHeaders create(OggPacket firstPacket) {
if (firstPacket.isBeginningOfStream() &&
firstPacket.getData() != null &&
firstPacket.getData().length > 10) {
int sid = firstPacket.getSid();
if (VorbisPacketFa... | public class class_name {
public static OggAudioStreamHeaders create(OggPacket firstPacket) {
if (firstPacket.isBeginningOfStream() &&
firstPacket.getData() != null &&
firstPacket.getData().length > 10) {
int sid = firstPacket.getSid();
if (VorbisPacketFa... |
public class class_name {
private PrefixedName findSharedName(String prefix, String localName)
{
HashMap<PrefixedName,PrefixedName> m = mSharedNames;
if (mSharedNames == null) {
mSharedNames = m = new HashMap<PrefixedName,PrefixedName>();
} else {
// Maybe we alread... | public class class_name {
private PrefixedName findSharedName(String prefix, String localName)
{
HashMap<PrefixedName,PrefixedName> m = mSharedNames;
if (mSharedNames == null) {
mSharedNames = m = new HashMap<PrefixedName,PrefixedName>(); // depends on control dependency: [if], data = ... |
public class class_name {
public CommandLine setUsageHelpWidth(int width) {
getCommandSpec().usageMessage().width(width);
for (CommandLine command : getCommandSpec().subcommands().values()) {
command.setUsageHelpWidth(width);
}
return this;
} } | public class class_name {
public CommandLine setUsageHelpWidth(int width) {
getCommandSpec().usageMessage().width(width);
for (CommandLine command : getCommandSpec().subcommands().values()) {
command.setUsageHelpWidth(width); // depends on control dependency: [for], data = [command]
... |
public class class_name {
public void marshall(CodeSigningCertificateChain codeSigningCertificateChain, ProtocolMarshaller protocolMarshaller) {
if (codeSigningCertificateChain == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(CodeSigningCertificateChain codeSigningCertificateChain, ProtocolMarshaller protocolMarshaller) {
if (codeSigningCertificateChain == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public ListInstanceFleetsResult withInstanceFleets(InstanceFleet... instanceFleets) {
if (this.instanceFleets == null) {
setInstanceFleets(new com.amazonaws.internal.SdkInternalList<InstanceFleet>(instanceFleets.length));
}
for (InstanceFleet ele : instance... | public class class_name {
public ListInstanceFleetsResult withInstanceFleets(InstanceFleet... instanceFleets) {
if (this.instanceFleets == null) {
setInstanceFleets(new com.amazonaws.internal.SdkInternalList<InstanceFleet>(instanceFleets.length)); // depends on control dependency: [if], data = [non... |
public class class_name {
static public Type resolveType (Class fromClass, Class toClass, Type type) {
// Explicit type, eg String.
if (type instanceof Class) return (Class)type;
// Type variable, eg T.
if (type instanceof TypeVariable) return resolveTypeVariable(fromClass, toClass, type, true);
// Type wh... | public class class_name {
static public Type resolveType (Class fromClass, Class toClass, Type type) {
// Explicit type, eg String.
if (type instanceof Class) return (Class)type;
// Type variable, eg T.
if (type instanceof TypeVariable) return resolveTypeVariable(fromClass, toClass, type, true);
// Type wh... |
public class class_name {
@Override
public List<Category> getCategories() throws BlogClientException {
final ArrayList<Category> ret = new ArrayList<Category>();
try {
final Object result = getXmlRpcClient().execute("metaWeblog.getCategories", new Object[] { blogid, userName, passwor... | public class class_name {
@Override
public List<Category> getCategories() throws BlogClientException {
final ArrayList<Category> ret = new ArrayList<Category>();
try {
final Object result = getXmlRpcClient().execute("metaWeblog.getCategories", new Object[] { blogid, userName, passwor... |
public class class_name {
protected <R extends Closeable> R registerReporter(final R reporter) {
if (this.reporters == null) {
this.reporters = new HashSet<Closeable>();
}
this.reporters.add(reporter);
return reporter;
} } | public class class_name {
protected <R extends Closeable> R registerReporter(final R reporter) {
if (this.reporters == null) {
this.reporters = new HashSet<Closeable>(); // depends on control dependency: [if], data = [none]
}
this.reporters.add(reporter);
return reporter;
} } |
public class class_name {
public boolean isOverwrite() {
Boolean booleanObject = BooleanUtils.toBooleanObject(System.getProperty(OVERWRITE));
if (booleanObject == null) {
booleanObject = Boolean.FALSE;
}
return booleanObject;
} } | public class class_name {
public boolean isOverwrite() {
Boolean booleanObject = BooleanUtils.toBooleanObject(System.getProperty(OVERWRITE));
if (booleanObject == null) {
booleanObject = Boolean.FALSE; // depends on control dependency: [if], data = [none]
}
return booleanObj... |
public class class_name {
public static Pattern convertToRegex(String excludeStr) {
// make all "." safe decimles then convert ** to .* and /* to /.* to make it regex
if (excludeStr.contains(".")) {
// regex for "." is \. - but we are converting the string to a regex string so need to escap... | public class class_name {
public static Pattern convertToRegex(String excludeStr) {
// make all "." safe decimles then convert ** to .* and /* to /.* to make it regex
if (excludeStr.contains(".")) {
// regex for "." is \. - but we are converting the string to a regex string so need to escap... |
public class class_name {
public ServiceCall<Workspace> updateWorkspace(UpdateWorkspaceOptions updateWorkspaceOptions) {
Validator.notNull(updateWorkspaceOptions, "updateWorkspaceOptions cannot be null");
String[] pathSegments = { "v1/workspaces" };
String[] pathParameters = { updateWorkspaceOptions.worksp... | public class class_name {
public ServiceCall<Workspace> updateWorkspace(UpdateWorkspaceOptions updateWorkspaceOptions) {
Validator.notNull(updateWorkspaceOptions, "updateWorkspaceOptions cannot be null");
String[] pathSegments = { "v1/workspaces" };
String[] pathParameters = { updateWorkspaceOptions.worksp... |
public class class_name {
public final Calendar getCalendar() {
Calendar calendar = calendarSelector.getCalendar();
if (calendar == null) {
calendar = entry.getCalendar();
}
return calendar;
} } | public class class_name {
public final Calendar getCalendar() {
Calendar calendar = calendarSelector.getCalendar();
if (calendar == null) {
calendar = entry.getCalendar(); // depends on control dependency: [if], data = [none]
}
return calendar;
} } |
public class class_name {
@Override
public boolean validateObject(InetSocketAddress address, Socket socket) {
if (socket == null) {
log.error("Socket is null [{}]", address);
return false;
}
if (!socket.isBound()) {
log.error("Socket is not bound [{}]", address);
return false;
}
if (socket.isCl... | public class class_name {
@Override
public boolean validateObject(InetSocketAddress address, Socket socket) {
if (socket == null) {
log.error("Socket is null [{}]", address); // depends on control dependency: [if], data = [none]
return false; // depends on control dependency: [if], data = [none]
}
if (!s... |
public class class_name {
private static double bcuint(double[] y, double[] y1, double[] y2, double[] y12,
double x1l, double x1u, double x2l, double x2u, double x1p, double x2p) {
if (x1u == x1l) {
throw new IllegalArgumentException("Nearby control points take same value: " + ... | public class class_name {
private static double bcuint(double[] y, double[] y1, double[] y2, double[] y12,
double x1l, double x1u, double x2l, double x2u, double x1p, double x2p) {
if (x1u == x1l) {
throw new IllegalArgumentException("Nearby control points take same value: " + ... |
public class class_name {
private static String internalBind(String message, Object[] args, String argZero, String argOne) {
if (message == null)
return "No message available."; //$NON-NLS-1$
if (args == null || args.length == 0)
args = EMPTY_ARGS;
int length = message.length();
//estimate correct size ... | public class class_name {
private static String internalBind(String message, Object[] args, String argZero, String argOne) {
if (message == null)
return "No message available."; //$NON-NLS-1$
if (args == null || args.length == 0)
args = EMPTY_ARGS;
int length = message.length();
//estimate correct size ... |
public class class_name {
public FileUpload getFile(final String paramName) {
if (requestFiles == null) {
return null;
}
FileUpload[] values = requestFiles.get(paramName);
if ((values != null) && (values.length > 0)) {
return values[0];
}
return null;
} } | public class class_name {
public FileUpload getFile(final String paramName) {
if (requestFiles == null) {
return null; // depends on control dependency: [if], data = [none]
}
FileUpload[] values = requestFiles.get(paramName);
if ((values != null) && (values.length > 0)) {
return values[0]; // depends on ... |
public class class_name {
@SuppressWarnings("checkstyle:all")
protected StringConcatenationClient generateMembers(boolean forInterface, boolean forAppender) {
final TypeReference adapter = getCodeElementExtractor().getInnerBlockDocumentationAdapter();
return new StringConcatenationClient() {
@Override
prote... | public class class_name {
@SuppressWarnings("checkstyle:all")
protected StringConcatenationClient generateMembers(boolean forInterface, boolean forAppender) {
final TypeReference adapter = getCodeElementExtractor().getInnerBlockDocumentationAdapter();
return new StringConcatenationClient() {
@Override
prote... |
public class class_name {
public void smooth(final List<Double> DATA_LIST) {
int size = DATA_LIST.size();
double[] x = new double[size];
double[] y = new double[size];
low = Statistics.getMin(DATA_LIST);
high = Statistics.getMax(DATA_LIST);
if (Double.compar... | public class class_name {
public void smooth(final List<Double> DATA_LIST) {
int size = DATA_LIST.size();
double[] x = new double[size];
double[] y = new double[size];
low = Statistics.getMin(DATA_LIST);
high = Statistics.getMax(DATA_LIST);
if (Double.compar... |
public class class_name {
public static boolean isSupportedRasterExtension( String name ) {
for( String ext : supportedRasters ) {
if (name.toLowerCase().endsWith(ext)) {
return true;
}
}
return false;
} } | public class class_name {
public static boolean isSupportedRasterExtension( String name ) {
for( String ext : supportedRasters ) {
if (name.toLowerCase().endsWith(ext)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;... |
public class class_name {
public boolean accept(File file) {
if( !WatcherUtils.isInDirectory(file, javaSourceDir) || !WatcherUtils.hasExtension(file,"java")){
return false;
}
// If the file has been deleted by may have been a controller, return true.
// The cleanup will be ... | public class class_name {
public boolean accept(File file) {
if( !WatcherUtils.isInDirectory(file, javaSourceDir) || !WatcherUtils.hasExtension(file,"java")){
return false; // depends on control dependency: [if], data = [none]
}
// If the file has been deleted by may have been a co... |
public class class_name {
public static RuleViolation isInputStandard(TransactionInput input) {
for (ScriptChunk chunk : input.getScriptSig().getChunks()) {
if (chunk.data != null && !chunk.isShortestPossiblePushData())
return RuleViolation.SHORTEST_POSSIBLE_PUSHDATA;
if... | public class class_name {
public static RuleViolation isInputStandard(TransactionInput input) {
for (ScriptChunk chunk : input.getScriptSig().getChunks()) {
if (chunk.data != null && !chunk.isShortestPossiblePushData())
return RuleViolation.SHORTEST_POSSIBLE_PUSHDATA;
if... |
public class class_name {
public static String camelhumpToUnderline(String str) {
final int size;
final char[] chars;
final StringBuilder sb = new StringBuilder(
(size = (chars = str.toCharArray()).length) * 3 / 2 + 1);
char c;
for (int i = 0; i < size; i++) {
... | public class class_name {
public static String camelhumpToUnderline(String str) {
final int size;
final char[] chars;
final StringBuilder sb = new StringBuilder(
(size = (chars = str.toCharArray()).length) * 3 / 2 + 1);
char c;
for (int i = 0; i < size; i++) {
... |
public class class_name {
public synchronized Map<String, Metric> add(CompoundStat stat, MetricConfig config) {
this.stats.add(Utils.notNull(stat));
MetricConfig statConfig = (config == null ? this.config : config);
this.statConfigs.put(stat, statConfig);
Map<String, Metric> addedMetric... | public class class_name {
public synchronized Map<String, Metric> add(CompoundStat stat, MetricConfig config) {
this.stats.add(Utils.notNull(stat));
MetricConfig statConfig = (config == null ? this.config : config);
this.statConfigs.put(stat, statConfig);
Map<String, Metric> addedMetric... |
public class class_name {
protected InternalRequest createGeneralRequest(String pathPrefix, AbstractBceRequest bceRequest,
HttpMethodName httpMethod, String... pathVariables) {
List<String> pathComponents = new ArrayList<String>();
assertStringNotNullO... | public class class_name {
protected InternalRequest createGeneralRequest(String pathPrefix, AbstractBceRequest bceRequest,
HttpMethodName httpMethod, String... pathVariables) {
List<String> pathComponents = new ArrayList<String>();
assertStringNotNullO... |
public class class_name {
@Override
public int size() {
final Segment<K, V>[] segments = this.segments;
long sum = 0;
long check = 0;
int[] mc = new int[segments.length];
// Try a few times to get accurate count. On failure due to
// continuous async changes in table, resort to locking.
for (int k = 0; k < ... | public class class_name {
@Override
public int size() {
final Segment<K, V>[] segments = this.segments;
long sum = 0;
long check = 0;
int[] mc = new int[segments.length];
// Try a few times to get accurate count. On failure due to
// continuous async changes in table, resort to locking.
for (int k = 0; k < ... |
public class class_name {
@Override
public List<CommerceNotificationQueueEntry> findByLtS(Date sentDate,
int start, int end,
OrderByComparator<CommerceNotificationQueueEntry> orderByComparator,
boolean retrieveFromCache) {
boolean pagination = true;
FinderPath finderPath = null;
Object[] finderArgs = null... | public class class_name {
@Override
public List<CommerceNotificationQueueEntry> findByLtS(Date sentDate,
int start, int end,
OrderByComparator<CommerceNotificationQueueEntry> orderByComparator,
boolean retrieveFromCache) {
boolean pagination = true;
FinderPath finderPath = null;
Object[] finderArgs = null... |
public class class_name {
public final void setHint(@Nullable final CharSequence hint) {
this.hint = hint;
if (getAdapter() != null) {
ProxySpinnerAdapter proxyAdapter = (ProxySpinnerAdapter) getAdapter();
setAdapter(proxyAdapter.getAdapter());
}
} } | public class class_name {
public final void setHint(@Nullable final CharSequence hint) {
this.hint = hint;
if (getAdapter() != null) {
ProxySpinnerAdapter proxyAdapter = (ProxySpinnerAdapter) getAdapter();
setAdapter(proxyAdapter.getAdapter()); // depends on control dependency:... |
public class class_name {
public LastPointQuery parseLastPointQueryV1() {
final String json = query.getContent();
if (json == null || json.isEmpty()) {
throw new BadRequestException(HttpResponseStatus.BAD_REQUEST,
"Missing message content",
"Supply valid JSON formatted data in the bod... | public class class_name {
public LastPointQuery parseLastPointQueryV1() {
final String json = query.getContent();
if (json == null || json.isEmpty()) {
throw new BadRequestException(HttpResponseStatus.BAD_REQUEST,
"Missing message content",
"Supply valid JSON formatted data in the bod... |
public class class_name {
@Override
public String getMessage()
{
String locMsg = getLocationDesc();
/* Better not use super's message if we do have location information,
* since parent's message contains (part of) Location
* info; something we can regenerate better...
... | public class class_name {
@Override
public String getMessage()
{
String locMsg = getLocationDesc();
/* Better not use super's message if we do have location information,
* since parent's message contains (part of) Location
* info; something we can regenerate better...
... |
public class class_name {
public boolean matchesAllOf(CharSequence sequence) {
for (int i = sequence.length() - 1; i >= 0; i--) {
if (!matches(sequence.charAt(i))) {
return false;
}
}
return true;
} } | public class class_name {
public boolean matchesAllOf(CharSequence sequence) {
for (int i = sequence.length() - 1; i >= 0; i--) {
if (!matches(sequence.charAt(i))) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
private static String unsignedLongToString(long x, int radix)
{
if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX)
{
throw new IllegalArgumentException("Invalid radix: " + radix);
}
if (x == 0)
{
// Simply return... | public class class_name {
private static String unsignedLongToString(long x, int radix)
{
if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX)
{
throw new IllegalArgumentException("Invalid radix: " + radix);
}
if (x == 0)
{
// Simply return... |
public class class_name {
public java.util.List<NatGateway> getNatGateways() {
if (natGateways == null) {
natGateways = new com.amazonaws.internal.SdkInternalList<NatGateway>();
}
return natGateways;
} } | public class class_name {
public java.util.List<NatGateway> getNatGateways() {
if (natGateways == null) {
natGateways = new com.amazonaws.internal.SdkInternalList<NatGateway>(); // depends on control dependency: [if], data = [none]
}
return natGateways;
} } |
public class class_name {
public static Pair<BigInteger,Boolean> midpoint(BigInteger left, BigInteger right, int sigbits)
{
BigInteger midpoint;
boolean remainder;
if (left.compareTo(right) < 0)
{
BigInteger sum = left.add(right);
remainder = sum.testBit(0);
... | public class class_name {
public static Pair<BigInteger,Boolean> midpoint(BigInteger left, BigInteger right, int sigbits)
{
BigInteger midpoint;
boolean remainder;
if (left.compareTo(right) < 0)
{
BigInteger sum = left.add(right);
remainder = sum.testBit(0); ... |
public class class_name {
final void percolateDownMinHeap(final int index) {
final int element = elements[index];
final float key = keys[index];
int hole = index;
while (hole * 2 <= size) {
int child = hole * 2;
// if we have a right child and that child can no... | public class class_name {
final void percolateDownMinHeap(final int index) {
final int element = elements[index];
final float key = keys[index];
int hole = index;
while (hole * 2 <= size) {
int child = hole * 2;
// if we have a right child and that child can no... |
public class class_name {
private void addContentTypeRecursively(ContentType contentType) {
addContentType(contentType);
for (ContentType child : contentType.getChildren()) {
addContentTypeRecursively(child);
}
} } | public class class_name {
private void addContentTypeRecursively(ContentType contentType) {
addContentType(contentType);
for (ContentType child : contentType.getChildren()) {
addContentTypeRecursively(child);
// depends on control dependency: [for], data = [child]
}
} } |
public class class_name {
@Override
public ZooNode getNodeRecrusively() {
ZooNode root = new ZooNode(zooConf.getNodePathPrefix(), zooConf.getNodePathPrefix());
root.setOpen(true);
if (zkClient == null || zkClient.getState() != States.CONNECTED) {
LOG.warn("Zookeeper not connecte... | public class class_name {
@Override
public ZooNode getNodeRecrusively() {
ZooNode root = new ZooNode(zooConf.getNodePathPrefix(), zooConf.getNodePathPrefix());
root.setOpen(true);
if (zkClient == null || zkClient.getState() != States.CONNECTED) {
LOG.warn("Zookeeper not connecte... |
public class class_name {
public int lastIndexOf(CharSequence target, int fromIndex, int endIndex)
{
if (fromIndex < 0)
throw new IndexOutOfBoundsException("index out of range: " + fromIndex);
if (endIndex < 0)
throw new IndexOutOfBoundsException("index out of range: " + end... | public class class_name {
public int lastIndexOf(CharSequence target, int fromIndex, int endIndex)
{
if (fromIndex < 0)
throw new IndexOutOfBoundsException("index out of range: " + fromIndex);
if (endIndex < 0)
throw new IndexOutOfBoundsException("index out of range: " + end... |
public class class_name {
private String getBaseSymbol() {
String ncNotation = getNotation();
if (!ncNotation.contains("(")) {
return null;
}
int start = ncNotation.indexOf("(");
int end = ncNotation.indexOf(")");
String baseSymbol = ncNotation.substring(start + 1, end);
baseSymbol =... | public class class_name {
private String getBaseSymbol() {
String ncNotation = getNotation();
if (!ncNotation.contains("(")) {
return null; // depends on control dependency: [if], data = [none]
}
int start = ncNotation.indexOf("(");
int end = ncNotation.indexOf(")");
String baseSymbol = ... |
public class class_name {
public void viewDocument(DocumentEntry entry)
{
InputStream is = null;
try
{
is = new DocumentInputStream(entry);
byte[] data = new byte[is.available()];
is.read(data);
m_model.setData(data);
updateTables();
}
cat... | public class class_name {
public void viewDocument(DocumentEntry entry)
{
InputStream is = null;
try
{
is = new DocumentInputStream(entry); // depends on control dependency: [try], data = [none]
byte[] data = new byte[is.available()];
is.read(data); // depends on contro... |
public class class_name {
private boolean isPopulatedMixedValueMap(ResourceFieldSchema schema, int field, Tuple object) {
if (schema.getType() != DataType.MAP) {
// Can't be a mixed value map if it's not a map at all.
return false;
}
try {
Object fieldValue ... | public class class_name {
private boolean isPopulatedMixedValueMap(ResourceFieldSchema schema, int field, Tuple object) {
if (schema.getType() != DataType.MAP) {
// Can't be a mixed value map if it's not a map at all.
return false; // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected static String valueString(Object value) {
if (value == null) {
return "null";
} else if (value instanceof String) {
return "\"" + ((String) value).codePoints()
.flatMap(cp ->
(cp == '"')
... | public class class_name {
protected static String valueString(Object value) {
if (value == null) {
return "null"; // depends on control dependency: [if], data = [none]
} else if (value instanceof String) {
return "\"" + ((String) value).codePoints()
.flatMap(... |
public class class_name {
protected void parsePayload(IAsyncResultHandler<Object> payloadResultHandler) {
// Strip out any content-length header from the request. It will very likely
// no longer be accurate.
request.getHeaders().remove("Content-Length"); //$NON-NLS-1$
// Configure th... | public class class_name {
protected void parsePayload(IAsyncResultHandler<Object> payloadResultHandler) {
// Strip out any content-length header from the request. It will very likely
// no longer be accurate.
request.getHeaders().remove("Content-Length"); //$NON-NLS-1$
// Configure th... |
public class class_name {
public int optInt( String key, int defaultValue ) {
verifyIsNull();
try{
return getInt( key );
}catch( Exception e ){
return defaultValue;
}
} } | public class class_name {
public int optInt( String key, int defaultValue ) {
verifyIsNull();
try{
return getInt( key ); // depends on control dependency: [try], data = [none]
}catch( Exception e ){
return defaultValue;
} // depends on control dependency: [catch], data = [none... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.