code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private void removeMethodOCNI(MethodDeclaration method) {
int methodStart = method.getStartPosition();
String src = unit.getSource().substring(methodStart, methodStart + method.getLength());
if (src.contains("/*-[")) {
int ocniStart = methodStart + src.indexOf("/*-[");
... | public class class_name {
private void removeMethodOCNI(MethodDeclaration method) {
int methodStart = method.getStartPosition();
String src = unit.getSource().substring(methodStart, methodStart + method.getLength());
if (src.contains("/*-[")) {
int ocniStart = methodStart + src.indexOf("/*-[");
... |
public class class_name {
private void mergeFiles(List<File> inputFiles, OutputStream outputStream)
throws IOException {
long startTime = System.nanoTime();
//Merge files
for (File f : inputFiles) {
if (f.exists()) {
FileInputStream fileInputStream = new FileInputStream(f);
Buf... | public class class_name {
private void mergeFiles(List<File> inputFiles, OutputStream outputStream)
throws IOException {
long startTime = System.nanoTime();
//Merge files
for (File f : inputFiles) {
if (f.exists()) {
FileInputStream fileInputStream = new FileInputStream(f);
Buf... |
public class class_name {
public static String getDescription(String propertyName)
{
StringBuilder sb = new StringBuilder();
for (int i=0; i<propertyName.length(); i++)
{
char c = propertyName.charAt(i);
if (Character.isUpperCase(c))
{
... | public class class_name {
public static String getDescription(String propertyName)
{
StringBuilder sb = new StringBuilder();
for (int i=0; i<propertyName.length(); i++)
{
char c = propertyName.charAt(i);
if (Character.isUpperCase(c))
{
... |
public class class_name {
void parse(
CharSequence text,
ParseLog status,
AttributeQuery attributes,
ParsedEntity<?> parsedResult,
boolean quickPath
) {
AttributeQuery aq = (quickPath ? this.fullAttrs : this.getQuery(attributes));
if (
(this.pad... | public class class_name {
void parse(
CharSequence text,
ParseLog status,
AttributeQuery attributes,
ParsedEntity<?> parsedResult,
boolean quickPath
) {
AttributeQuery aq = (quickPath ? this.fullAttrs : this.getQuery(attributes));
if (
(this.pad... |
public class class_name {
private Observable<Indexable> invokeAfterPostRunAsync(final TaskGroupEntry<TaskItem> entry,
final InvocationContext context) {
return Observable.defer(new Func0<Observable<Indexable>>() {
@Override
publi... | public class class_name {
private Observable<Indexable> invokeAfterPostRunAsync(final TaskGroupEntry<TaskItem> entry,
final InvocationContext context) {
return Observable.defer(new Func0<Observable<Indexable>>() {
@Override
publi... |
public class class_name {
@Override
public int read(byte []buf, int offset, int length) throws IOException
{
TempBuffer cursor = _cursor;
if (cursor == null)
return -1;
int sublen = Math.min(length, cursor.length() - _offset);
System.arraycopy(cursor.buffer(), _offset, buf, offset, sub... | public class class_name {
@Override
public int read(byte []buf, int offset, int length) throws IOException
{
TempBuffer cursor = _cursor;
if (cursor == null)
return -1;
int sublen = Math.min(length, cursor.length() - _offset);
System.arraycopy(cursor.buffer(), _offset, buf, offset, sub... |
public class class_name {
public int convertToSeq1Position(int seq2Position) {
int seq1p, seq2p = 0, prevSeq1p = 0, prevSeq2p = 0;
boolean onInsertion;
for (int mut : mutations) {
seq1p = getPosition(mut);
onInsertion = false;
switch (mut & MUTATION_TYPE_MA... | public class class_name {
public int convertToSeq1Position(int seq2Position) {
int seq1p, seq2p = 0, prevSeq1p = 0, prevSeq2p = 0;
boolean onInsertion;
for (int mut : mutations) {
seq1p = getPosition(mut); // depends on control dependency: [for], data = [mut]
onInsertio... |
public class class_name {
public InputSource resolveEntity(String publicId, String systemId) {
if (systemId != null && systemId.startsWith("file:")) {
return null;
} else {
return new InputSource();
}
} } | public class class_name {
public InputSource resolveEntity(String publicId, String systemId) {
if (systemId != null && systemId.startsWith("file:")) {
return null; // depends on control dependency: [if], data = [none]
} else {
return new InputSource(); // depends on control depe... |
public class class_name {
public static byte[] encodeSourceData(DbFileSources.Data data) {
ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
LZ4BlockOutputStream compressedOutput = new LZ4BlockOutputStream(byteOutput);
try {
data.writeTo(compressedOutput);
compressedOutput.close()... | public class class_name {
public static byte[] encodeSourceData(DbFileSources.Data data) {
ByteArrayOutputStream byteOutput = new ByteArrayOutputStream();
LZ4BlockOutputStream compressedOutput = new LZ4BlockOutputStream(byteOutput);
try {
data.writeTo(compressedOutput); // depends on control dependen... |
public class class_name {
public static <T> void addAll(Collection<T> collection, Iterable<? extends T> items) {
for (T item : items) {
collection.add(item);
}
} } | public class class_name {
public static <T> void addAll(Collection<T> collection, Iterable<? extends T> items) {
for (T item : items) {
collection.add(item);
// depends on control dependency: [for], data = [item]
}
} } |
public class class_name {
public void setRestorableNodeTypes(java.util.Collection<String> restorableNodeTypes) {
if (restorableNodeTypes == null) {
this.restorableNodeTypes = null;
return;
}
this.restorableNodeTypes = new com.amazonaws.internal.SdkInternalList<String>(r... | public class class_name {
public void setRestorableNodeTypes(java.util.Collection<String> restorableNodeTypes) {
if (restorableNodeTypes == null) {
this.restorableNodeTypes = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data... |
public class class_name {
public static VAlarm email(Trigger trigger, String subject, String body, List<String> recipients) {
VAlarm alarm = new VAlarm(Action.email(), trigger);
alarm.setSummary(subject);
alarm.setDescription(body);
for (String recipient : recipients) {
alarm.addAttendee(new Attendee(null, ... | public class class_name {
public static VAlarm email(Trigger trigger, String subject, String body, List<String> recipients) {
VAlarm alarm = new VAlarm(Action.email(), trigger);
alarm.setSummary(subject);
alarm.setDescription(body);
for (String recipient : recipients) {
alarm.addAttendee(new Attendee(null, ... |
public class class_name {
private void init() throws ConfigFileIOException {
this.props = new Properties();
log.info("Reading config file: {}", this.configFile);
boolean ok = true;
try {
// El fichero esta en el CLASSPATH
this.props.load(SystemConfig.class.getRes... | public class class_name {
private void init() throws ConfigFileIOException {
this.props = new Properties();
log.info("Reading config file: {}", this.configFile);
boolean ok = true;
try {
// El fichero esta en el CLASSPATH
this.props.load(SystemConfig.class.getRes... |
public class class_name {
public void pause()
{
if (mAudioListener != null)
{
int sourceId = getSourceId();
if (sourceId != GvrAudioEngine.INVALID_ID)
{
mAudioListener.getAudioEngine().pauseSound(sourceId);
}
}
} } | public class class_name {
public void pause()
{
if (mAudioListener != null)
{
int sourceId = getSourceId();
if (sourceId != GvrAudioEngine.INVALID_ID)
{
mAudioListener.getAudioEngine().pauseSound(sourceId); // depends on control dependency: [if], ... |
public class class_name {
private static String encode(final String txt) {
try {
return URLEncoder.encode(
txt, Charset.defaultCharset().name()
);
} catch (final UnsupportedEncodingException ex) {
throw new IllegalStateException(ex);
}
} } | public class class_name {
private static String encode(final String txt) {
try {
return URLEncoder.encode(
txt, Charset.defaultCharset().name()
); // depends on control dependency: [try], data = [none]
} catch (final UnsupportedEncodingException ex) {
... |
public class class_name {
public void addContent(String destSpaceId,
String destContentId,
String fileChecksum,
long fileSize,
InputStream stream,
Map<String, String> properties) {
... | public class class_name {
public void addContent(String destSpaceId,
String destContentId,
String fileChecksum,
long fileSize,
InputStream stream,
Map<String, String> properties) {
... |
public class class_name {
public Map<String, List<CloudVolumeStorage>> getCloudVolumes(Map<String, String> instanceToAccountMap) {
Map<String, List<CloudVolumeStorage>> returnMap = new HashMap<>();
DescribeVolumesResult volumeResult = ec2Client.describeVolumes();
for (Volume v : volumeResult.ge... | public class class_name {
public Map<String, List<CloudVolumeStorage>> getCloudVolumes(Map<String, String> instanceToAccountMap) {
Map<String, List<CloudVolumeStorage>> returnMap = new HashMap<>();
DescribeVolumesResult volumeResult = ec2Client.describeVolumes();
for (Volume v : volumeResult.ge... |
public class class_name {
private boolean isContainedIn(BitSet A, BitSet B) {
boolean result = false;
if (A.isEmpty()) {
return true;
}
BitSet setA = (BitSet) A.clone();
setA.and(B);
if (setA.equals(A)) {
result = true;
}
retur... | public class class_name {
private boolean isContainedIn(BitSet A, BitSet B) {
boolean result = false;
if (A.isEmpty()) {
return true; // depends on control dependency: [if], data = [none]
}
BitSet setA = (BitSet) A.clone();
setA.and(B);
if (setA.equals(A))... |
public class class_name {
public static int commonOverlap(String text1, String text2) {
// Cache the text lengths to prevent multiple calls.
int text1_length = text1.length();
int text2_length = text2.length();
// Eliminate the null case.
if (text1_length == 0 || text2_length ==... | public class class_name {
public static int commonOverlap(String text1, String text2) {
// Cache the text lengths to prevent multiple calls.
int text1_length = text1.length();
int text2_length = text2.length();
// Eliminate the null case.
if (text1_length == 0 || text2_length ==... |
public class class_name {
public IConceptMap<IConceptSet> getNewSubsumptions() {
IConceptMap<IConceptSet> res = new DenseConceptMap<IConceptSet>(
newContexts.size());
// Collect subsumptions from new contexts
for (Context ctx : newContexts) {
res.put(ctx.getConcept()... | public class class_name {
public IConceptMap<IConceptSet> getNewSubsumptions() {
IConceptMap<IConceptSet> res = new DenseConceptMap<IConceptSet>(
newContexts.size());
// Collect subsumptions from new contexts
for (Context ctx : newContexts) {
res.put(ctx.getConcept()... |
public class class_name {
public void setConstantTypesClassesBlackList(final List<Class> constantTypesBlackList) {
List<String> values = new LinkedList<String>();
for (Class aClass : constantTypesBlackList) {
values.add(aClass.getName());
}
setConstantTypesBlackList(values);... | public class class_name {
public void setConstantTypesClassesBlackList(final List<Class> constantTypesBlackList) {
List<String> values = new LinkedList<String>();
for (Class aClass : constantTypesBlackList) {
values.add(aClass.getName()); // depends on control dependency: [for], data = [aCl... |
public class class_name {
public void setAvailabilityZones(java.util.Collection<String> availabilityZones) {
if (availabilityZones == null) {
this.availabilityZones = null;
return;
}
this.availabilityZones = new java.util.ArrayList<String>(availabilityZones);
} } | public class class_name {
public void setAvailabilityZones(java.util.Collection<String> availabilityZones) {
if (availabilityZones == null) {
this.availabilityZones = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none... |
public class class_name {
static Publisher<Object> computePublisherValue(
final Object asyncObj, final ReactiveAdapterRegistry reactiveAdapterRegistry) {
if (asyncObj instanceof Flux<?> || asyncObj instanceof Mono<?>) {
// If the async object is a Flux or a Mono, we don't need the Reac... | public class class_name {
static Publisher<Object> computePublisherValue(
final Object asyncObj, final ReactiveAdapterRegistry reactiveAdapterRegistry) {
if (asyncObj instanceof Flux<?> || asyncObj instanceof Mono<?>) {
// If the async object is a Flux or a Mono, we don't need the Reac... |
public class class_name {
public LeafNode<K, V> prevNode() {
if (leftid == NULL_ID) {
return null;
}
return (LeafNode<K, V>) tree.getNode(leftid);
} } | public class class_name {
public LeafNode<K, V> prevNode() {
if (leftid == NULL_ID) {
return null; // depends on control dependency: [if], data = [none]
}
return (LeafNode<K, V>) tree.getNode(leftid);
} } |
public class class_name {
@Override
public String getTagName(long jobExecutionId) {
logger.entering(CLASSNAME, "getTagName", jobExecutionId);
String apptag = null;
Connection conn = null;
PreparedStatement statement = null;
ResultSet rs = null;
String query = "SELECT A.apptag FROM jobinstancedata A... | public class class_name {
@Override
public String getTagName(long jobExecutionId) {
logger.entering(CLASSNAME, "getTagName", jobExecutionId);
String apptag = null;
Connection conn = null;
PreparedStatement statement = null;
ResultSet rs = null;
String query = "SELECT A.apptag FROM jobinstancedata A... |
public class class_name {
public static VersionRange createFromVersionSpec( String spec )
throws InvalidVersionSpecificationException
{
if ( spec == null )
{
return null;
}
List<Restriction> restrictions = new ArrayList<Restriction>();
String process = s... | public class class_name {
public static VersionRange createFromVersionSpec( String spec )
throws InvalidVersionSpecificationException
{
if ( spec == null )
{
return null;
}
List<Restriction> restrictions = new ArrayList<Restriction>();
String process = s... |
public class class_name {
public ServiceCall<Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions) {
Validator.notNull(deleteClassifierOptions, "deleteClassifierOptions cannot be null");
String[] pathSegments = { "v3/classifiers" };
String[] pathParameters = { deleteClassifierOptions.clas... | public class class_name {
public ServiceCall<Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions) {
Validator.notNull(deleteClassifierOptions, "deleteClassifierOptions cannot be null");
String[] pathSegments = { "v3/classifiers" };
String[] pathParameters = { deleteClassifierOptions.clas... |
public class class_name {
public Locale getLocale()
{
Enumeration enm = _httpRequest.getFieldValues(HttpFields.__AcceptLanguage,
HttpFields.__separators);
// handle no locale
if (enm == null || !enm.hasMoreElements())
retur... | public class class_name {
public Locale getLocale()
{
Enumeration enm = _httpRequest.getFieldValues(HttpFields.__AcceptLanguage,
HttpFields.__separators);
// handle no locale
if (enm == null || !enm.hasMoreElements())
retur... |
public class class_name {
public ServiceCall<QueryNoticesResponse> queryNotices(QueryNoticesOptions queryNoticesOptions) {
Validator.notNull(queryNoticesOptions, "queryNoticesOptions cannot be null");
String[] pathSegments = { "v1/environments", "collections", "notices" };
String[] pathParameters = { query... | public class class_name {
public ServiceCall<QueryNoticesResponse> queryNotices(QueryNoticesOptions queryNoticesOptions) {
Validator.notNull(queryNoticesOptions, "queryNoticesOptions cannot be null");
String[] pathSegments = { "v1/environments", "collections", "notices" };
String[] pathParameters = { query... |
public class class_name {
public static void hist(float[] data, int fmax) {
float[] hist = new float[data.length];
// scale maximum
float hmax = 0;
for (int i = 0; i < data.length; i++) {
hmax = Math.max(data[i], hmax);
}
float shrink = fmax / hmax;
... | public class class_name {
public static void hist(float[] data, int fmax) {
float[] hist = new float[data.length];
// scale maximum
float hmax = 0;
for (int i = 0; i < data.length; i++) {
hmax = Math.max(data[i], hmax);
// depends on control dependency: [for], data =... |
public class class_name {
public static <T> void permuteCyclic(T[] array, T[] fill, int n) {
if (array.length != fill.length) throw new IllegalArgumentException("Lengths do not match");
if (n < 0) n = array.length + n;
while (n > array.length) {
n -= array.length;
}
for (int i = 0; i < array.length; i++) ... | public class class_name {
public static <T> void permuteCyclic(T[] array, T[] fill, int n) {
if (array.length != fill.length) throw new IllegalArgumentException("Lengths do not match");
if (n < 0) n = array.length + n;
while (n > array.length) {
n -= array.length; // depends on control dependency: [while], da... |
public class class_name {
protected boolean consumeCompactionBatch() {
/*
* Consume one compaction update batch generated by the compactor.
*/
CompactionUpdateBatch updateBatch = _compactor.pollCompactionBatch();
if(updateBatch != null) {
try {
cons... | public class class_name {
protected boolean consumeCompactionBatch() {
/*
* Consume one compaction update batch generated by the compactor.
*/
CompactionUpdateBatch updateBatch = _compactor.pollCompactionBatch();
if(updateBatch != null) {
try {
cons... |
public class class_name {
public static String encodeEndpoint(String uri, String operation) {
StringBuilder buf=new StringBuilder();
if (uri != null && !uri.trim().isEmpty()) {
buf.append(uri);
}
if (operation != null && !operation.trim().isEmpty()) {
buf.append(... | public class class_name {
public static String encodeEndpoint(String uri, String operation) {
StringBuilder buf=new StringBuilder();
if (uri != null && !uri.trim().isEmpty()) {
buf.append(uri); // depends on control dependency: [if], data = [(uri]
}
if (operation != null && ... |
public class class_name {
private TextField buildField(String label, CmsAccountInfo info) {
TextField field = (TextField)m_binder.buildAndBind(label, info);
field.setConverter(new CmsNullToEmptyConverter());
field.setWidth("100%");
boolean editable = (m_editLevel == EditLevel.all)
... | public class class_name {
private TextField buildField(String label, CmsAccountInfo info) {
TextField field = (TextField)m_binder.buildAndBind(label, info);
field.setConverter(new CmsNullToEmptyConverter());
field.setWidth("100%");
boolean editable = (m_editLevel == EditLevel.all)
... |
public class class_name {
public String safeGet(Locator locator, String key) {
String cacheValue = null;
try {
cacheValue = get(locator, key);
} catch (CacheException ex) {
log.trace(String.format("no cache value found for locator=%s, key=%s", locator.toString(), key));
... | public class class_name {
public String safeGet(Locator locator, String key) {
String cacheValue = null;
try {
cacheValue = get(locator, key); // depends on control dependency: [try], data = [none]
} catch (CacheException ex) {
log.trace(String.format("no cache value fou... |
public class class_name {
public String toSource(final JSModule module) {
return runInCompilerThread(
() -> {
List<CompilerInput> inputs = module.getInputs();
int numInputs = inputs.size();
if (numInputs == 0) {
return "";
}
CodeBuilder cb = new... | public class class_name {
public String toSource(final JSModule module) {
return runInCompilerThread(
() -> {
List<CompilerInput> inputs = module.getInputs();
int numInputs = inputs.size();
if (numInputs == 0) {
return ""; // depends on control dependency: [if], da... |
public class class_name {
public void writeException(OutputStream out, Throwable e) {
int len = excepWriters.length;
for (int i = 0; i < len; i++) {
if (excepWriters[i].getExceptionClass().isInstance(e)) {
excepWriters[i].write(out, e);
return;
}
... | public class class_name {
public void writeException(OutputStream out, Throwable e) {
int len = excepWriters.length;
for (int i = 0; i < len; i++) {
if (excepWriters[i].getExceptionClass().isInstance(e)) {
excepWriters[i].write(out, e); // depends on control dependency: [if]... |
public class class_name {
public void setAssociations(java.util.Collection<PhoneNumberAssociation> associations) {
if (associations == null) {
this.associations = null;
return;
}
this.associations = new java.util.ArrayList<PhoneNumberAssociation>(associations);
} } | public class class_name {
public void setAssociations(java.util.Collection<PhoneNumberAssociation> associations) {
if (associations == null) {
this.associations = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public Asset assetAt(String path) {
// The simplest implementation is to delegate to the provider and see if they return something.
for (AssetProvider provider : providers) {
Asset asset = provider.assetAt(path);
if (asset != null) {
... | public class class_name {
@Override
public Asset assetAt(String path) {
// The simplest implementation is to delegate to the provider and see if they return something.
for (AssetProvider provider : providers) {
Asset asset = provider.assetAt(path);
if (asset != null) {
... |
public class class_name {
private BasicDBObject getKeys(EntityMetadata m, String[] columns)
{
BasicDBObject keys = new BasicDBObject();
if (columns != null && columns.length > 0)
{
MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata()
... | public class class_name {
private BasicDBObject getKeys(EntityMetadata m, String[] columns)
{
BasicDBObject keys = new BasicDBObject();
if (columns != null && columns.length > 0)
{
MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata()
... |
public class class_name {
public double percentile(double p) {
long[] counts = new long[PercentileBuckets.length()];
for (int i = 0; i < counts.length; ++i) {
counts[i] = counterFor(i).count();
}
return PercentileBuckets.percentile(counts, p);
} } | public class class_name {
public double percentile(double p) {
long[] counts = new long[PercentileBuckets.length()];
for (int i = 0; i < counts.length; ++i) {
counts[i] = counterFor(i).count(); // depends on control dependency: [for], data = [i]
}
return PercentileBuckets.percentile(counts, p);
... |
public class class_name {
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfLandUse() {
if (_GenericApplicationPropertyOfLandUse == null) {
_GenericApplicationPropertyOfLandUse = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfLandUse;... | public class class_name {
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfLandUse() {
if (_GenericApplicationPropertyOfLandUse == null) {
_GenericApplicationPropertyOfLandUse = new ArrayList<JAXBElement<Object>>(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
void execute(final ActivityHandle handle, final int activityFlags, boolean suspendActivity)
throws SLEEException {
final SleeTransaction tx = super.suspendTransaction();
ActivityContextHandle ach = null;
try {
ach = sleeEndpoint._startActivity(handle, activityFlags, suspendActivi... | public class class_name {
void execute(final ActivityHandle handle, final int activityFlags, boolean suspendActivity)
throws SLEEException {
final SleeTransaction tx = super.suspendTransaction();
ActivityContextHandle ach = null;
try {
ach = sleeEndpoint._startActivity(handle, activityFlags, suspendActivi... |
public class class_name {
public final Transcoding transcoding(int flags) {
Transcoding tc = new Transcoding(this, flags);
if (hasStateInit()) {
stateInit(tc.state);
}
return tc;
} } | public class class_name {
public final Transcoding transcoding(int flags) {
Transcoding tc = new Transcoding(this, flags);
if (hasStateInit()) {
stateInit(tc.state); // depends on control dependency: [if], data = [none]
}
return tc;
} } |
public class class_name {
public void drawTextBaseRatio(String label, double horizontalReference, double verticalReference, double rotation, double[] coord) {
int[] sc = projection.screenProjectionBaseRatio(coord);
int x = sc[0];
int y = sc[1];
AffineTransform transform = g2d.getTransf... | public class class_name {
public void drawTextBaseRatio(String label, double horizontalReference, double verticalReference, double rotation, double[] coord) {
int[] sc = projection.screenProjectionBaseRatio(coord);
int x = sc[0];
int y = sc[1];
AffineTransform transform = g2d.getTransf... |
public class class_name {
public byte[] getByteArray(final String key, final byte[] def) {
try {
final byte[] result = getByteArray(key);
return result != null ? result : def;
} catch (final NumberFormatException nfe) {
return def;
}
} } | public class class_name {
public byte[] getByteArray(final String key, final byte[] def) {
try {
final byte[] result = getByteArray(key);
return result != null ? result : def; // depends on control dependency: [try], data = [none]
} catch (final NumberFormatException nfe) {
return def;
} // depends on c... |
public class class_name {
public static boolean isFloatingPointString(Object pObject) {
if (pObject instanceof String) {
String str = (String) pObject;
int len = str.length();
for (int i = 0; i < len; i++) {
char ch = str.charAt(i);
if (ch == ... | public class class_name {
public static boolean isFloatingPointString(Object pObject) {
if (pObject instanceof String) {
String str = (String) pObject;
int len = str.length();
for (int i = 0; i < len; i++) {
char ch = str.charAt(i);
if (ch == ... |
public class class_name {
public void setBindings(Map<String, String> bindings) {
for (Map.Entry<String, String> entry : bindings.entrySet()) {
bindNamespaceUri(entry.getKey(), entry.getValue());
}
} } | public class class_name {
public void setBindings(Map<String, String> bindings) {
for (Map.Entry<String, String> entry : bindings.entrySet()) {
bindNamespaceUri(entry.getKey(), entry.getValue()); // depends on control dependency: [for], data = [entry]
}
} } |
public class class_name {
protected FieldExtractor getMetadataExtractorOrFallback(Metadata meta, FieldExtractor fallbackExtractor) {
if (metaExtractor != null) {
FieldExtractor metaFE = metaExtractor.get(meta);
if (metaFE != null) {
return metaFE;
}
}... | public class class_name {
protected FieldExtractor getMetadataExtractorOrFallback(Metadata meta, FieldExtractor fallbackExtractor) {
if (metaExtractor != null) {
FieldExtractor metaFE = metaExtractor.get(meta);
if (metaFE != null) {
return metaFE; // depends on control d... |
public class class_name {
public Object getFromClassNames(List<String> moduleClassNames) {
Preconditions.checkNotNull(moduleClassNames, "The list of module class names cannot be null.");
for (final String moduleClassName : moduleClassNames) {
if (!shouldBeSkipped(moduleClassName)) {
return new St... | public class class_name {
public Object getFromClassNames(List<String> moduleClassNames) {
Preconditions.checkNotNull(moduleClassNames, "The list of module class names cannot be null.");
for (final String moduleClassName : moduleClassNames) {
if (!shouldBeSkipped(moduleClassName)) {
return new St... |
public class class_name {
public void actionPerformed (ActionEvent event)
{
Object value = null;
try {
value = getDisplayValue();
} catch (Exception e) {
updateBorder(true);
return;
}
// submit an attribute changed event with the new valu... | public class class_name {
public void actionPerformed (ActionEvent event)
{
Object value = null;
try {
value = getDisplayValue(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
updateBorder(true);
return;
} // depen... |
public class class_name {
private Boolean _convertToBoolean(Object value)
{
Boolean booleanValue;
if (value instanceof Boolean)
{
booleanValue = (Boolean) value;
}
else
{
booleanValue = Boolean.parseBoolean(value.toString());
}
... | public class class_name {
private Boolean _convertToBoolean(Object value)
{
Boolean booleanValue;
if (value instanceof Boolean)
{
booleanValue = (Boolean) value; // depends on control dependency: [if], data = [none]
}
else
{
booleanValue = Boo... |
public class class_name {
public void marshall(LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails, ProtocolMarshaller protocolMarshaller) {
if (lambdaFunctionSucceededEventDetails == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails, ProtocolMarshaller protocolMarshaller) {
if (lambdaFunctionSucceededEventDetails == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
@Override
protected int addNodeRecord(NodeData data) throws SQLException, InvalidItemStateException, RepositoryException
{
// check if parent exists
if (isParentValidationNeeded(data.getParentIdentifier()))
{
ResultSet item = findItemByIdentifier(data.getParen... | public class class_name {
@Override
protected int addNodeRecord(NodeData data) throws SQLException, InvalidItemStateException, RepositoryException
{
// check if parent exists
if (isParentValidationNeeded(data.getParentIdentifier()))
{
ResultSet item = findItemByIdentifier(data.getParen... |
public class class_name {
@Override
public <NV extends NumberVector> NV projectRelativeScaledToDataSpace(double[] v, NumberVector.Factory<NV> prototype) {
final int dim = v.length;
double[] vec = new double[dim];
for(int d = 0; d < dim; d++) {
vec[d] = scales[d].getRelativeUnscaled(v[d]);
}
... | public class class_name {
@Override
public <NV extends NumberVector> NV projectRelativeScaledToDataSpace(double[] v, NumberVector.Factory<NV> prototype) {
final int dim = v.length;
double[] vec = new double[dim];
for(int d = 0; d < dim; d++) {
vec[d] = scales[d].getRelativeUnscaled(v[d]); // depend... |
public class class_name {
private ProcPattern createPattern(Pattern pattern) {
if (pattern.isEmpty()) {
throw new IllegalStateException("Pattern elements list can't be empty.");
}
List<ProcPatternElement> elements = new ArrayList<ProcPatternElement>();
for (PatternElement e... | public class class_name {
private ProcPattern createPattern(Pattern pattern) {
if (pattern.isEmpty()) {
throw new IllegalStateException("Pattern elements list can't be empty.");
}
List<ProcPatternElement> elements = new ArrayList<ProcPatternElement>();
for (PatternElement e... |
public class class_name {
public int executeForCursorWindow(String sql, Object[] bindArgs,
CursorWindow window, int startPos, int requiredPos, boolean countAllRows,
int connectionFlags, CancellationSignal cancellationSignal) {
if (sql == null) {
throw new IllegalArgumentExce... | public class class_name {
public int executeForCursorWindow(String sql, Object[] bindArgs,
CursorWindow window, int startPos, int requiredPos, boolean countAllRows,
int connectionFlags, CancellationSignal cancellationSignal) {
if (sql == null) {
throw new IllegalArgumentExce... |
public class class_name {
@Override
public void commit()
throws IOException {
if (!this.actualProcessedCopyableFile.isPresent()) {
return;
}
CopyableFile copyableFile = this.actualProcessedCopyableFile.get();
Path stagingFilePath = getStagingFilePath(copyableFile);
Path outputFilePa... | public class class_name {
@Override
public void commit()
throws IOException {
if (!this.actualProcessedCopyableFile.isPresent()) {
return;
}
CopyableFile copyableFile = this.actualProcessedCopyableFile.get();
Path stagingFilePath = getStagingFilePath(copyableFile);
Path outputFilePa... |
public class class_name {
public void addRule(Rule<T> rule) {
if (rule == null) {
return;
}
if (!_headRule.isPresent()) {
_headRule = Optional.of(rule); // this rule is the head if there was no head
_tailRule = rule;
} else {
_tailRule.setNextRule(rule);
_tailRule = rule;... | public class class_name {
public void addRule(Rule<T> rule) {
if (rule == null) {
return; // depends on control dependency: [if], data = [none]
}
if (!_headRule.isPresent()) {
_headRule = Optional.of(rule); // this rule is the head if there was no head // depends on control dependency: [if], d... |
public class class_name {
public static int[] parseInts(String nums, String sperator) {
String[] ss = StringUtils.split(nums, sperator);
int[] ints = new int[ss.length];
for (int i = 0; i < ss.length; i++) {
ints[i] = Integer.parseInt(ss[i]);
}
return ints;
} } | public class class_name {
public static int[] parseInts(String nums, String sperator) {
String[] ss = StringUtils.split(nums, sperator);
int[] ints = new int[ss.length];
for (int i = 0; i < ss.length; i++) {
ints[i] = Integer.parseInt(ss[i]); // depends on control dependency: [for],... |
public class class_name {
@Override
public EClass getIfcChiller() {
if (ifcChillerEClass == null) {
ifcChillerEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(87);
}
return ifcChillerEClass;
} } | public class class_name {
@Override
public EClass getIfcChiller() {
if (ifcChillerEClass == null) {
ifcChillerEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(87);
// depends on control dependency: [if], data = [none]
}
return ifcChillerEClass;
... |
public class class_name {
public DataSetMetadata getMetadata(String uuid) {
DataSetMetadata metadata = clientDataSetManager.getDataSetMetadata(uuid);
if (metadata != null) {
return metadata;
}
return remoteMetadataMap.get(uuid);
} } | public class class_name {
public DataSetMetadata getMetadata(String uuid) {
DataSetMetadata metadata = clientDataSetManager.getDataSetMetadata(uuid);
if (metadata != null) {
return metadata; // depends on control dependency: [if], data = [none]
}
return remoteMetadataMap.ge... |
public class class_name {
private void resizeValueText() {
double maxWidth = 0.5 * size;
double fontSize = 0.20625 * size;
valueText.setFont(Fonts.robotoBold(fontSize));
if (valueText.getLayoutBounds().getWidth() > maxWidth) { Helper.adjustTextSize(valueText, maxWidth, fontSize); }
... | public class class_name {
private void resizeValueText() {
double maxWidth = 0.5 * size;
double fontSize = 0.20625 * size;
valueText.setFont(Fonts.robotoBold(fontSize));
if (valueText.getLayoutBounds().getWidth() > maxWidth) { Helper.adjustTextSize(valueText, maxWidth, fontSize); } // d... |
public class class_name {
public static <IN, OUT> List<OUT> create(Collection<IN> collection, Creator<IN, OUT> creator) {
if (collection == null) {
return null;
}
ArrayList<OUT> list = new ArrayList<>(collection.size());
for (IN value : collection) {
OUT item =... | public class class_name {
public static <IN, OUT> List<OUT> create(Collection<IN> collection, Creator<IN, OUT> creator) {
if (collection == null) {
return null; // depends on control dependency: [if], data = [none]
}
ArrayList<OUT> list = new ArrayList<>(collection.size());
... |
public class class_name {
@Override
public long getQueuedFlowSize() {
long size = 0L;
try {
size = this.executorLoader.fetchQueuedFlows().size();
} catch (final ExecutorManagerException e) {
this.logger.error("Failed to get queued flow size.", e);
}
return size;
} } | public class class_name {
@Override
public long getQueuedFlowSize() {
long size = 0L;
try {
size = this.executorLoader.fetchQueuedFlows().size(); // depends on control dependency: [try], data = [none]
} catch (final ExecutorManagerException e) {
this.logger.error("Failed to get queued flow si... |
public class class_name {
public final void elementValue() throws RecognitionException {
int elementValue_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 69) ) { return; }
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:629:5: ( conditionalExpr... | public class class_name {
public final void elementValue() throws RecognitionException {
int elementValue_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 69) ) { return; } // depends on control dependency: [if], data = [none]
// src/main/resources/org/drools/compiler... |
public class class_name {
public void processMixPushMessage(String message) {
if (!StringUtil.isEmpty(message)) {
String channel = getChannel(message);
if (channel == null || !containsDefaultPushCallback(channel)) {
channel = AVOSCloud.getApplicationId();
}
String action = getActio... | public class class_name {
public void processMixPushMessage(String message) {
if (!StringUtil.isEmpty(message)) {
String channel = getChannel(message);
if (channel == null || !containsDefaultPushCallback(channel)) {
channel = AVOSCloud.getApplicationId(); // depends on control dependency: [if],... |
public class class_name {
public Defuzzifier constructDefuzzifier(String key, int resolution,
WeightedDefuzzifier.Type type) {
Defuzzifier result = constructObject(key);
if (result instanceof IntegralDefuzzifier) {
((IntegralDefuzzifier) result).setResolution(resolution);
... | public class class_name {
public Defuzzifier constructDefuzzifier(String key, int resolution,
WeightedDefuzzifier.Type type) {
Defuzzifier result = constructObject(key);
if (result instanceof IntegralDefuzzifier) {
((IntegralDefuzzifier) result).setResolution(resolution); // dep... |
public class class_name {
public Ordering createNewOrderingUpToIndex(int exclusiveIndex) {
if (exclusiveIndex == 0) {
return null;
}
final Ordering newOrdering = new Ordering();
for (int i = 0; i < exclusiveIndex; i++) {
newOrdering.appendOrdering(this.indexes.get(i), this.types.get(i), this.orders.get(i... | public class class_name {
public Ordering createNewOrderingUpToIndex(int exclusiveIndex) {
if (exclusiveIndex == 0) {
return null; // depends on control dependency: [if], data = [none]
}
final Ordering newOrdering = new Ordering();
for (int i = 0; i < exclusiveIndex; i++) {
newOrdering.appendOrdering(thi... |
public class class_name {
@Override
public void close()
{
try {
flush();
indexWriter.close();
}
catch (MutationsRejectedException e) {
throw new PrestoException(UNEXPECTED_ACCUMULO_ERROR, "Mutation was rejected by server on close", e);
}
}... | public class class_name {
@Override
public void close()
{
try {
flush(); // depends on control dependency: [try], data = [none]
indexWriter.close(); // depends on control dependency: [try], data = [none]
}
catch (MutationsRejectedException e) {
throw ... |
public class class_name {
@Override
public CommerceDiscountUserSegmentRel remove(Serializable primaryKey)
throws NoSuchDiscountUserSegmentRelException {
Session session = null;
try {
session = openSession();
CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel = (CommerceDiscountUserSegmentRel)... | public class class_name {
@Override
public CommerceDiscountUserSegmentRel remove(Serializable primaryKey)
throws NoSuchDiscountUserSegmentRelException {
Session session = null;
try {
session = openSession();
CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel = (CommerceDiscountUserSegmentRel)... |
public class class_name {
public DescribeReservedInstancesModificationsResult withReservedInstancesModifications(ReservedInstancesModification... reservedInstancesModifications) {
if (this.reservedInstancesModifications == null) {
setReservedInstancesModifications(new com.amazonaws.internal.SdkInte... | public class class_name {
public DescribeReservedInstancesModificationsResult withReservedInstancesModifications(ReservedInstancesModification... reservedInstancesModifications) {
if (this.reservedInstancesModifications == null) {
setReservedInstancesModifications(new com.amazonaws.internal.SdkInte... |
public class class_name {
public static Taint valueOf(State state) {
Objects.requireNonNull(state, "state is null");
if (state == State.INVALID) {
return null;
}
return new Taint(state);
} } | public class class_name {
public static Taint valueOf(State state) {
Objects.requireNonNull(state, "state is null");
if (state == State.INVALID) {
return null; // depends on control dependency: [if], data = [none]
}
return new Taint(state);
} } |
public class class_name {
private void updateVertex(Shape shape, GeometryEditService editService, GeometryIndex index)
throws GeometryIndexNotFoundException {
if (shape instanceof Rectangle) {
Rectangle rectangle = (Rectangle) shape;
Geometry geometry = editService.getGeometry();
Coordinate v = editServi... | public class class_name {
private void updateVertex(Shape shape, GeometryEditService editService, GeometryIndex index)
throws GeometryIndexNotFoundException {
if (shape instanceof Rectangle) {
Rectangle rectangle = (Rectangle) shape;
Geometry geometry = editService.getGeometry();
Coordinate v = editServi... |
public class class_name {
protected HtmlTree getWinTitleScript(){
HtmlTree script = HtmlTree.SCRIPT();
if(winTitle != null && winTitle.length() > 0) {
String scriptCode = "<!--" + DocletConstants.NL +
" try {" + DocletConstants.NL +
" if (lo... | public class class_name {
protected HtmlTree getWinTitleScript(){
HtmlTree script = HtmlTree.SCRIPT();
if(winTitle != null && winTitle.length() > 0) {
String scriptCode = "<!--" + DocletConstants.NL +
" try {" + DocletConstants.NL +
" if (lo... |
public class class_name {
public void insertAttributeValue(String attributeName, CmsEntity value, int index) {
if (m_entityAttributes.containsKey(attributeName)) {
m_entityAttributes.get(attributeName).add(index, value);
} else {
setAttributeValue(attributeName, value);
... | public class class_name {
public void insertAttributeValue(String attributeName, CmsEntity value, int index) {
if (m_entityAttributes.containsKey(attributeName)) {
m_entityAttributes.get(attributeName).add(index, value);
// depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public ByteMatchSet withByteMatchTuples(ByteMatchTuple... byteMatchTuples) {
if (this.byteMatchTuples == null) {
setByteMatchTuples(new java.util.ArrayList<ByteMatchTuple>(byteMatchTuples.length));
}
for (ByteMatchTuple ele : byteMatchTuples) {
... | public class class_name {
public ByteMatchSet withByteMatchTuples(ByteMatchTuple... byteMatchTuples) {
if (this.byteMatchTuples == null) {
setByteMatchTuples(new java.util.ArrayList<ByteMatchTuple>(byteMatchTuples.length)); // depends on control dependency: [if], data = [none]
}
for... |
public class class_name {
private void initSnapshotWork(final Object[] procParams) {
final String procedureName = "@SnapshotRestore";
StoredProcedureInvocation spi = new StoredProcedureInvocation();
spi.setProcName(procedureName);
spi.params = new FutureTask<ParameterSet>(new Callable<P... | public class class_name {
private void initSnapshotWork(final Object[] procParams) {
final String procedureName = "@SnapshotRestore";
StoredProcedureInvocation spi = new StoredProcedureInvocation();
spi.setProcName(procedureName);
spi.params = new FutureTask<ParameterSet>(new Callable<P... |
public class class_name {
static final int crc8(final byte[] input, final int offset, final int len) {
final int poly = 0x0D5;
int crc = 0;
for (int i = 0; i < len; i++) {
final byte c = input[offset + i];
crc ^= c;
for (int j = 0; j < 8; j++) {
if ((crc & 0x80) != 0) {
crc = ((crc << 1) ^ poly... | public class class_name {
static final int crc8(final byte[] input, final int offset, final int len) {
final int poly = 0x0D5;
int crc = 0;
for (int i = 0; i < len; i++) {
final byte c = input[offset + i];
crc ^= c; // depends on control dependency: [for], data = [none]
for (int j = 0; j < 8; j++) {
... |
public class class_name {
@Override
public int compare(ILigand ligand1, ILigand ligand2) {
int atomicNumberComp = atomicNumberRule.compare(ligand1, ligand2);
if (atomicNumberComp != 0) return atomicNumberComp;
int massNumberComp = massNumberRule.compare(ligand1, ligand2);
if (massN... | public class class_name {
@Override
public int compare(ILigand ligand1, ILigand ligand2) {
int atomicNumberComp = atomicNumberRule.compare(ligand1, ligand2);
if (atomicNumberComp != 0) return atomicNumberComp;
int massNumberComp = massNumberRule.compare(ligand1, ligand2);
if (massN... |
public class class_name {
public static Either<String,String> getBuildVersion() {
//Find the right manifest from the many on classpath. See http://stackoverflow.com/questions/1272648/reading-my-own-jars-manifest
Class clazz = BuildNumberCommand.class;
String className = clazz.getSimpleName() + ... | public class class_name {
public static Either<String,String> getBuildVersion() {
//Find the right manifest from the many on classpath. See http://stackoverflow.com/questions/1272648/reading-my-own-jars-manifest
Class clazz = BuildNumberCommand.class;
String className = clazz.getSimpleName() + ... |
public class class_name {
public static void writeMemento(final File resourceDir, final Resource resource,
final Instant time) {
try (final BufferedWriter writer = newBufferedWriter(
getNquadsFile(resourceDir, time).toPath(), UTF_8, CREATE, WRITE,
TRU... | public class class_name {
public static void writeMemento(final File resourceDir, final Resource resource,
final Instant time) {
try (final BufferedWriter writer = newBufferedWriter(
getNquadsFile(resourceDir, time).toPath(), UTF_8, CREATE, WRITE,
TRU... |
public class class_name {
@Override
public synchronized CacheObject get(final Object key)
{
final CacheObject o = map.get(key);
if (o != null) {
updateAccess(o);
++hits;
}
else
++misses;
return o;
} } | public class class_name {
@Override
public synchronized CacheObject get(final Object key)
{
final CacheObject o = map.get(key);
if (o != null) {
updateAccess(o); // depends on control dependency: [if], data = [(o]
++hits; // depends on control dependency: [if], data = [none]
}
else
++misses;
retur... |
public class class_name {
public void marshall(GreenFleetProvisioningOption greenFleetProvisioningOption, ProtocolMarshaller protocolMarshaller) {
if (greenFleetProvisioningOption == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(GreenFleetProvisioningOption greenFleetProvisioningOption, ProtocolMarshaller protocolMarshaller) {
if (greenFleetProvisioningOption == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public @Nullable
JSONArray getFacetFilters() {
try {
String value = get(KEY_FACET_FILTERS);
if (value != null) {
return new JSONArray(value);
}
} catch (JSONException e) {
// Will return null
}
... | public class class_name {
public @Nullable
JSONArray getFacetFilters() {
try {
String value = get(KEY_FACET_FILTERS);
if (value != null) {
return new JSONArray(value); // depends on control dependency: [if], data = [(value]
}
} catch (JSONExceptio... |
public class class_name {
private RendererSelection isRendererMatch(final RendererBeanDescriptor<?> rendererDescriptor,
final Renderable renderable, final RendererSelection bestMatch) {
final Class<? extends Renderable> renderableType = rendererDescriptor.getRenderableType();
final Class<? ... | public class class_name {
private RendererSelection isRendererMatch(final RendererBeanDescriptor<?> rendererDescriptor,
final Renderable renderable, final RendererSelection bestMatch) {
final Class<? extends Renderable> renderableType = rendererDescriptor.getRenderableType();
final Class<? ... |
public class class_name {
@Override
public synchronized void updateLastAccessTime(long accessTime) {
if (_lastAccessedTime == 0) { // newly created session object
_lastAccessedTime = accessTime;
} else {
_lastAccessedTime = _currentAccessTime;
}
_currentAcces... | public class class_name {
@Override
public synchronized void updateLastAccessTime(long accessTime) {
if (_lastAccessedTime == 0) { // newly created session object
_lastAccessedTime = accessTime; // depends on control dependency: [if], data = [none]
} else {
_lastAccessedTime... |
public class class_name {
@PostConstruct
public void checkUniqueSchemes() {
Multimap<String, ConfigFileLoaderPlugin> schemeToPluginMap = HashMultimap.create();
for (ConfigFileLoaderPlugin plugin: getLoaderPlugins()) {
schemeToPluginMap.put(plugin.getUriScheme(), plugin);
}
... | public class class_name {
@PostConstruct
public void checkUniqueSchemes() {
Multimap<String, ConfigFileLoaderPlugin> schemeToPluginMap = HashMultimap.create();
for (ConfigFileLoaderPlugin plugin: getLoaderPlugins()) {
schemeToPluginMap.put(plugin.getUriScheme(), plugin); // depends on ... |
public class class_name {
public void updateButtonsForWorkFlow(WorkFlowState state)
{
// Check if it is in the NOT_INITIALIZED state
if (state.getState().equals(WorkFlowState.NOT_INITIALIZED))
{
backButton.setEnabled(false);
nextButton.setEnabled(false);
... | public class class_name {
public void updateButtonsForWorkFlow(WorkFlowState state)
{
// Check if it is in the NOT_INITIALIZED state
if (state.getState().equals(WorkFlowState.NOT_INITIALIZED))
{
backButton.setEnabled(false); // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
public <NV extends NumberVector> NV projectScaledToDataSpace(double[] v, NumberVector.Factory<NV> factory) {
final int dim = v.length;
double[] vec = new double[dim];
for(int d = 0; d < dim; d++) {
vec[d] = scales[d].getUnscaled(v[d]);
}
return factory.ne... | public class class_name {
@Override
public <NV extends NumberVector> NV projectScaledToDataSpace(double[] v, NumberVector.Factory<NV> factory) {
final int dim = v.length;
double[] vec = new double[dim];
for(int d = 0; d < dim; d++) {
vec[d] = scales[d].getUnscaled(v[d]); // depends on control depen... |
public class class_name {
protected boolean validate( StringBuffer buff) {
if (!_validate(buff)) return false;
Object editValue = getEditValue();
if (editValue == null)
return false;
for (FieldValidator v : validators) {
if (!v.validate(this, editValue, buff)) return false;
}
... | public class class_name {
protected boolean validate( StringBuffer buff) {
if (!_validate(buff)) return false;
Object editValue = getEditValue();
if (editValue == null)
return false;
for (FieldValidator v : validators) {
if (!v.validate(this, editValue, buff)) return false;
}
... |
public class class_name {
private void exception(Throwable e)
{
try
{
_persistent=false;
int error_code=HttpResponse.__500_Internal_Server_Error;
if (e instanceof HttpException)
{
error_code=((HttpException)e).getCode();
... | public class class_name {
private void exception(Throwable e)
{
try
{
_persistent=false; // depends on control dependency: [try], data = [none]
int error_code=HttpResponse.__500_Internal_Server_Error;
if (e instanceof HttpException)
{
... |
public class class_name {
public void writeHeaders(HttpServletRequest request, HttpServletResponse response) {
if (requestMatcher.matches(request)) {
if (!pins.isEmpty()) {
String headerName = reportOnly ? HPKP_RO_HEADER_NAME : HPKP_HEADER_NAME;
if (!response.containsHeader(headerName)) {
response.se... | public class class_name {
public void writeHeaders(HttpServletRequest request, HttpServletResponse response) {
if (requestMatcher.matches(request)) {
if (!pins.isEmpty()) {
String headerName = reportOnly ? HPKP_RO_HEADER_NAME : HPKP_HEADER_NAME;
if (!response.containsHeader(headerName)) {
response.se... |
public class class_name {
@Override
public void connect() {
try {
// Create MQTT client config
final MqttClientConfig config = new MqttClientConfig();
String uri = url;
if (uri.indexOf(':') == -1) {
uri = uri + ":1883";
}
uri = uri.replace("mqtt://", "tcp://");
if (url.indexOf("... | public class class_name {
@Override
public void connect() {
try {
// Create MQTT client config
final MqttClientConfig config = new MqttClientConfig();
String uri = url;
if (uri.indexOf(':') == -1) {
uri = uri + ":1883";
// depends on control dependency: [if], data = [none]
}
uri = u... |
public class class_name {
@Override
public synchronized void addRecord(Slice record, boolean force)
throws IOException
{
checkState(!closed.get(), "Log has been closed");
SliceInput sliceInput = record.input();
// used to track first, middle and last blocks
boolean... | public class class_name {
@Override
public synchronized void addRecord(Slice record, boolean force)
throws IOException
{
checkState(!closed.get(), "Log has been closed");
SliceInput sliceInput = record.input();
// used to track first, middle and last blocks
boolean... |
public class class_name {
@SuppressWarnings({"fallthrough"})
public static void spooky12(final BitVector bv, final long seed, final long[] tuple) {
if (bv.length() < Long.SIZE * 12) {
spooky4(bv, seed, tuple);
return;
}
long h0, h1, h2, h3, h4, h5, h6, h7, h8, h9, h10, h11;
h0 = h3 = h6 = h9 = seed;
... | public class class_name {
@SuppressWarnings({"fallthrough"})
public static void spooky12(final BitVector bv, final long seed, final long[] tuple) {
if (bv.length() < Long.SIZE * 12) {
spooky4(bv, seed, tuple); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if]... |
public class class_name {
@SuppressWarnings("rawtypes")
private List<InetAddress> resolve(String hostname, String attrName) throws NamingException, UnknownHostException {
Attributes attrs = context.getAttributes(hostname, new String[] { attrName });
List<InetAddress> inetAddresses = new ArrayList... | public class class_name {
@SuppressWarnings("rawtypes")
private List<InetAddress> resolve(String hostname, String attrName) throws NamingException, UnknownHostException {
Attributes attrs = context.getAttributes(hostname, new String[] { attrName });
List<InetAddress> inetAddresses = new ArrayList... |
public class class_name {
public <T extends Widget & Checkable> List<T> getCheckedWidgets() {
List<T> checked = new ArrayList<>();
for (Widget c : getChildren()) {
if (c instanceof Checkable && ((Checkable) c).isChecked()) {
checked.add((T) c);
}
}
... | public class class_name {
public <T extends Widget & Checkable> List<T> getCheckedWidgets() {
List<T> checked = new ArrayList<>();
for (Widget c : getChildren()) {
if (c instanceof Checkable && ((Checkable) c).isChecked()) {
checked.add((T) c); // depends on control depende... |
public class class_name {
List<Long> getCountList() {
List<Long> ret = new ArrayList<Long>();
long lastValue = 0;
int positionInBlock = 0;
for (long index = 0; index < this.bitVector.size(); index++) {
if (this.bitVector.getBit(index)) {
lastValue++;
}
positionInBlock++;
if (positionInBlock == ... | public class class_name {
List<Long> getCountList() {
List<Long> ret = new ArrayList<Long>();
long lastValue = 0;
int positionInBlock = 0;
for (long index = 0; index < this.bitVector.size(); index++) {
if (this.bitVector.getBit(index)) {
lastValue++; // depends on control dependency: [if], data = [none]... |
public class class_name {
public void marshall(Get get, ProtocolMarshaller protocolMarshaller) {
if (get == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(get.getKey(), KEY_BINDING);
pro... | public class class_name {
public void marshall(Get get, ProtocolMarshaller protocolMarshaller) {
if (get == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(get.getKey(), KEY_BINDING); // depends on c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.