code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static final void indexAllClasses(final Indexer indexer, final List<File> classFiles) {
classFiles.forEach(file -> {
try {
final InputStream in = new FileInputStream(file);
try {
indexer.index(in);
... | public class class_name {
public static final void indexAllClasses(final Indexer indexer, final List<File> classFiles) {
classFiles.forEach(file -> {
try {
final InputStream in = new FileInputStream(file);
try {
indexer.index(in); // depends on co... |
public class class_name {
public java.util.List<TaskDefinitionPlacementConstraint> getPlacementConstraints() {
if (placementConstraints == null) {
placementConstraints = new com.amazonaws.internal.SdkInternalList<TaskDefinitionPlacementConstraint>();
}
return placementConstraints;
... | public class class_name {
public java.util.List<TaskDefinitionPlacementConstraint> getPlacementConstraints() {
if (placementConstraints == null) {
placementConstraints = new com.amazonaws.internal.SdkInternalList<TaskDefinitionPlacementConstraint>(); // depends on control dependency: [if], data = [... |
public class class_name {
public static Rect getTilesRect(final BoundingBox pBB,
final int pZoomLevel){
final int mapTileUpperBound = 1 << pZoomLevel;
final int right = MapView.getTileSystem().getTileXFromLongitude(pBB.getLonEast(), pZoomLevel);
final int bot... | public class class_name {
public static Rect getTilesRect(final BoundingBox pBB,
final int pZoomLevel){
final int mapTileUpperBound = 1 << pZoomLevel;
final int right = MapView.getTileSystem().getTileXFromLongitude(pBB.getLonEast(), pZoomLevel);
final int bot... |
public class class_name {
@Override
public void setResponse(HttpResponseMessage msg) throws IllegalResponseObjectException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "setResponse: " + msg);
}
// null message isn't allowed
if (null ... | public class class_name {
@Override
public void setResponse(HttpResponseMessage msg) throws IllegalResponseObjectException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "setResponse: " + msg);
}
// null message isn't allowed
if (null ... |
public class class_name {
public final ImmutableList<Parameter> getParameters() {
Type[] parameterTypes = getGenericParameterTypes();
Annotation[][] annotations = getParameterAnnotations();
AnnotatedType[] annotatedTypes = getAnnotatedParameterTypes();
ImmutableList.Builder<Parameter> builder = Immutab... | public class class_name {
public final ImmutableList<Parameter> getParameters() {
Type[] parameterTypes = getGenericParameterTypes();
Annotation[][] annotations = getParameterAnnotations();
AnnotatedType[] annotatedTypes = getAnnotatedParameterTypes();
ImmutableList.Builder<Parameter> builder = Immutab... |
public class class_name {
private int getPriority(ResourceReader o1) {
int priority = 0;
if (o1 instanceof ServletContextResourceReader) {
priority = baseDirHighPriority ? 5 : 4;
} else if (o1 instanceof FileSystemResourceReader) {
priority = baseDirHighPriority ? 4 : 5;
} else if (o1 instanceof CssSmar... | public class class_name {
private int getPriority(ResourceReader o1) {
int priority = 0;
if (o1 instanceof ServletContextResourceReader) {
priority = baseDirHighPriority ? 5 : 4; // depends on control dependency: [if], data = [none]
} else if (o1 instanceof FileSystemResourceReader) {
priority = baseDirHi... |
public class class_name {
public Map<K, V> getAll(Iterable<K> keys) {
List<K> missingKeys = new ArrayList<>();
Map<K, V> result = new HashMap<>();
for (K key : keys) {
V value = map.get(key);
if (value == null && !map.containsKey(key)) {
missingKeys.add(key);
} else {
resu... | public class class_name {
public Map<K, V> getAll(Iterable<K> keys) {
List<K> missingKeys = new ArrayList<>();
Map<K, V> result = new HashMap<>();
for (K key : keys) {
V value = map.get(key);
if (value == null && !map.containsKey(key)) {
missingKeys.add(key); // depends on control depen... |
public class class_name {
public int lookup(Object key, int hash) {
Object node;
int hash1 = hash ^ (hash >>> 15);
int hash2 = (hash ^ (hash << 6)) | 1; //ensure coprimeness
int deleted = -1;
for (int i = hash1 & mask;; i = (i + hash2) & mask) {
node = objs[i];
... | public class class_name {
public int lookup(Object key, int hash) {
Object node;
int hash1 = hash ^ (hash >>> 15);
int hash2 = (hash ^ (hash << 6)) | 1; //ensure coprimeness
int deleted = -1;
for (int i = hash1 & mask;; i = (i + hash2) & mask) {
node = objs[i]; // de... |
public class class_name {
public double deviance(double w, double y, double f) {
switch (distribution) {
case AUTO:
case gaussian:
return w * (y - f) * (y - f); // leads to wMSE
case huber:
if (Math.abs(y-f) <= huberDelta) {
return w * (y - f) * (y - f); // same as wMSE
... | public class class_name {
public double deviance(double w, double y, double f) {
switch (distribution) {
case AUTO:
case gaussian:
return w * (y - f) * (y - f); // leads to wMSE
case huber:
if (Math.abs(y-f) <= huberDelta) {
return w * (y - f) * (y - f); // same as wMSE ... |
public class class_name {
public static boolean isTimeConflict(Time timeFrom, Time timeTo, Time otherTimeFrom, Time otherTimeTo) {
if (JKDateTimeUtil.isTimesEqaualed(timeFrom, otherTimeFrom) || JKDateTimeUtil.isTimesEqaualed(timeTo, otherTimeTo)) {
return true;
}
// other time start time is between star... | public class class_name {
public static boolean isTimeConflict(Time timeFrom, Time timeTo, Time otherTimeFrom, Time otherTimeTo) {
if (JKDateTimeUtil.isTimesEqaualed(timeFrom, otherTimeFrom) || JKDateTimeUtil.isTimesEqaualed(timeTo, otherTimeTo)) {
return true;
// depends on control dependency: [if], data = [n... |
public class class_name {
public static OffsetDateTime from(TemporalAccessor temporal) {
if (temporal instanceof OffsetDateTime) {
return (OffsetDateTime) temporal;
}
try {
ZoneOffset offset = ZoneOffset.from(temporal);
try {
LocalDateTime ldt... | public class class_name {
public static OffsetDateTime from(TemporalAccessor temporal) {
if (temporal instanceof OffsetDateTime) {
return (OffsetDateTime) temporal; // depends on control dependency: [if], data = [none]
}
try {
ZoneOffset offset = ZoneOffset.from(temporal... |
public class class_name {
public static SearchView setBackground(SearchView view, @DrawableRes int drawableId) {
int id = view.getResources().getIdentifier("android:id/search_plate", null, null);
if (id > 0) {
View search = view.findViewById(id);
if (search != null) {
... | public class class_name {
public static SearchView setBackground(SearchView view, @DrawableRes int drawableId) {
int id = view.getResources().getIdentifier("android:id/search_plate", null, null);
if (id > 0) {
View search = view.findViewById(id);
if (search != null) {
... |
public class class_name {
public <T> void sort(List<T> list, Comparator<T> cmp)
{
if(index.size() < list.size())
for(int i = index.size(); i < list.size(); i++ )
index.add(i);
if(list.size() == index.size())
Collections.sort(index, new IndexViewCompList(list,... | public class class_name {
public <T> void sort(List<T> list, Comparator<T> cmp)
{
if(index.size() < list.size())
for(int i = index.size(); i < list.size(); i++ )
index.add(i);
if(list.size() == index.size())
Collections.sort(index, new IndexViewCompList(list,... |
public class class_name {
public boolean populate(OggPacket packet) {
// TODO Finish the flac support properly
if (type == OggStreamIdentifier.OGG_FLAC) {
if (tags == null) {
tags = new FlacTags(packet);
return true;
} else {
// TO... | public class class_name {
public boolean populate(OggPacket packet) {
// TODO Finish the flac support properly
if (type == OggStreamIdentifier.OGG_FLAC) {
if (tags == null) {
tags = new FlacTags(packet); // depends on control dependency: [if], data = [none]
r... |
public class class_name {
void setLocale(Locale l) {
if (l == null) {
hnd_create_params = hnd_local_names = hnd_remarks = -1;
locale_set = false;
return;
}
Locale oldLocale;
synchronized (BundleHandler.class) {
oldLocale = Bundl... | public class class_name {
void setLocale(Locale l) {
if (l == null) {
hnd_create_params = hnd_local_names = hnd_remarks = -1; // depends on control dependency: [if], data = [none]
locale_set = false; // depends on control dependency: [if], data = [none]
return; // d... |
public class class_name {
public java.util.List<DocumentKeyValuesFilter> getFilters() {
if (filters == null) {
filters = new com.amazonaws.internal.SdkInternalList<DocumentKeyValuesFilter>();
}
return filters;
} } | public class class_name {
public java.util.List<DocumentKeyValuesFilter> getFilters() {
if (filters == null) {
filters = new com.amazonaws.internal.SdkInternalList<DocumentKeyValuesFilter>(); // depends on control dependency: [if], data = [none]
}
return filters;
} } |
public class class_name {
public JobDeleteOptions withIfModifiedSince(DateTime ifModifiedSince) {
if (ifModifiedSince == null) {
this.ifModifiedSince = null;
} else {
this.ifModifiedSince = new DateTimeRfc1123(ifModifiedSince);
}
return this;
} } | public class class_name {
public JobDeleteOptions withIfModifiedSince(DateTime ifModifiedSince) {
if (ifModifiedSince == null) {
this.ifModifiedSince = null; // depends on control dependency: [if], data = [none]
} else {
this.ifModifiedSince = new DateTimeRfc1123(ifModifiedSince... |
public class class_name {
public static void main(String[] args)
{
gbStandAlone = true;
m_args = args; // For a standalone app, you must save the args to parse them later.
if (Application.getRootApplet() != null)
{
Application.getRootApplet().init();
Applicati... | public class class_name {
public static void main(String[] args)
{
gbStandAlone = true;
m_args = args; // For a standalone app, you must save the args to parse them later.
if (Application.getRootApplet() != null)
{
Application.getRootApplet().init(); // depends on cont... |
public class class_name {
private String getFileName(MultivaluedMap<String, String> header) {
String[] contentDisposition = header.getFirst("Content-Disposition").split(";");
for (String filename : contentDisposition) {
if ((filename.trim().startsWith("filename"))) {
String[] name = filename.split("=");
... | public class class_name {
private String getFileName(MultivaluedMap<String, String> header) {
String[] contentDisposition = header.getFirst("Content-Disposition").split(";");
for (String filename : contentDisposition) {
if ((filename.trim().startsWith("filename"))) {
String[] name = filename.split("=");
... |
public class class_name {
public UnsupportedAvailabilityZoneException withValidZones(String... validZones) {
if (this.validZones == null) {
setValidZones(new java.util.ArrayList<String>(validZones.length));
}
for (String ele : validZones) {
this.validZones.add(ele);
... | public class class_name {
public UnsupportedAvailabilityZoneException withValidZones(String... validZones) {
if (this.validZones == null) {
setValidZones(new java.util.ArrayList<String>(validZones.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : va... |
public class class_name {
public void addAll(IntCounter<E> counter) {
for (E key : counter.keySet()) {
int count = counter.getIntCount(key);
incrementCount(key, count);
}
} } | public class class_name {
public void addAll(IntCounter<E> counter) {
for (E key : counter.keySet()) {
int count = counter.getIntCount(key);
incrementCount(key, count);
// depends on control dependency: [for], data = [key]
}
} } |
public class class_name {
protected void writeRaw(CharSequence seq, CharBuf buffer) {
if (seq != null) {
buffer.add(seq.toString());
}
} } | public class class_name {
protected void writeRaw(CharSequence seq, CharBuf buffer) {
if (seq != null) {
buffer.add(seq.toString()); // depends on control dependency: [if], data = [(seq]
}
} } |
public class class_name {
private void resize() {
width = getWidth() - getInsets().getLeft() - getInsets().getRight();
height = getHeight() - getInsets().getTop() - getInsets().getBottom();
size = width < height ? width : height;
double center = size * 0.5;
if (width > 0 &&... | public class class_name {
private void resize() {
width = getWidth() - getInsets().getLeft() - getInsets().getRight();
height = getHeight() - getInsets().getTop() - getInsets().getBottom();
size = width < height ? width : height;
double center = size * 0.5;
if (width > 0 &&... |
public class class_name {
protected boolean isStoredProcedure(String sql)
{
/*
Stored procedures start with
{?= call <procedure-name>[<arg1>,<arg2>, ...]}
or
{call <procedure-name>[<arg1>,<arg2>, ...]}
but also statements with white space like
{ ?= ca... | public class class_name {
protected boolean isStoredProcedure(String sql)
{
/*
Stored procedures start with
{?= call <procedure-name>[<arg1>,<arg2>, ...]}
or
{call <procedure-name>[<arg1>,<arg2>, ...]}
but also statements with white space like
{ ?= ca... |
public class class_name {
@Pure
@Override
public FunctionalPoint3D getClosestPointTo(Point3D p) {
Vector3f v = new Vector3f(p);
v.sub(this.getX(), this.getY(), this.getZ());
double l = v.lengthSquared();
if (l<=(this.getRadius()*this.getRadius())) {
if (p instanceof Point3f) return (Point3f)p;
return n... | public class class_name {
@Pure
@Override
public FunctionalPoint3D getClosestPointTo(Point3D p) {
Vector3f v = new Vector3f(p);
v.sub(this.getX(), this.getY(), this.getZ());
double l = v.lengthSquared();
if (l<=(this.getRadius()*this.getRadius())) {
if (p instanceof Point3f) return (Point3f)p;
return n... |
public class class_name {
public static @CheckForNull
@SlashedClassName
String fromFieldSignature(String signature) {
if (signature.charAt(0) != 'L') {
return null;
}
return signature.substring(1, signature.length() - 1);
} } | public class class_name {
public static @CheckForNull
@SlashedClassName
String fromFieldSignature(String signature) {
if (signature.charAt(0) != 'L') {
return null; // depends on control dependency: [if], data = [none]
}
return signature.substring(1, signature.length() - 1);... |
public class class_name {
protected void validateEntityReferentialConstraint(Object entity, DAOMode mode, DAOValidatorEvaluationTime validationTime) {
// Obtention de la liste des annotations DAO qui sont sur la classe
List<Annotation> daoAnnotations = DAOValidatorHelper.loadDAOValidatorAnnotations(entity);
... | public class class_name {
protected void validateEntityReferentialConstraint(Object entity, DAOMode mode, DAOValidatorEvaluationTime validationTime) {
// Obtention de la liste des annotations DAO qui sont sur la classe
List<Annotation> daoAnnotations = DAOValidatorHelper.loadDAOValidatorAnnotations(entity);
... |
public class class_name {
public void sendAuditEvent(AuditEventMessage[] msgs, InetAddress destination, int port) throws Exception
{
if (!EventUtils.isEmptyOrNull(msgs)) {
// Check to validate port
int portToUse = getTransportPort(port);
DatagramSocket socket = new DatagramSock... | public class class_name {
public void sendAuditEvent(AuditEventMessage[] msgs, InetAddress destination, int port) throws Exception
{
if (!EventUtils.isEmptyOrNull(msgs)) {
// Check to validate port
int portToUse = getTransportPort(port);
DatagramSocket socket = new DatagramSock... |
public class class_name {
private void layoutComponents(int[] x, int[] y) {
Rectangle cellBounds = new Rectangle();
for (Object element : constraintMap.entrySet()) {
Map.Entry entry = (Map.Entry) element;
Component component = (Component) entry.getKey();
CellConstrai... | public class class_name {
private void layoutComponents(int[] x, int[] y) {
Rectangle cellBounds = new Rectangle();
for (Object element : constraintMap.entrySet()) {
Map.Entry entry = (Map.Entry) element;
Component component = (Component) entry.getKey();
CellConstrai... |
public class class_name {
public static int getXPathLocation(String dom, String xpath) {
String dom_lower = dom.toLowerCase();
String xpath_lower = xpath.toLowerCase();
String[] elements = xpath_lower.split("/");
int pos = 0;
int temp;
int number;
for (String element : elements) {
if (!element.isEmpty... | public class class_name {
public static int getXPathLocation(String dom, String xpath) {
String dom_lower = dom.toLowerCase();
String xpath_lower = xpath.toLowerCase();
String[] elements = xpath_lower.split("/");
int pos = 0;
int temp;
int number;
for (String element : elements) {
if (!element.isEmpty... |
public class class_name {
protected void doSetSpaceProperties(String spaceId,
Map<String, String> spaceProperties) {
log.debug("setSpaceProperties(" + spaceId + ")");
// Will throw if bucket does not exist
String bucketName = getBucketName(spaceId);
... | public class class_name {
protected void doSetSpaceProperties(String spaceId,
Map<String, String> spaceProperties) {
log.debug("setSpaceProperties(" + spaceId + ")");
// Will throw if bucket does not exist
String bucketName = getBucketName(spaceId);
... |
public class class_name {
boolean resolve(
final MethodWriter owner,
final int position,
final byte[] data)
{
boolean needUpdate = false;
this.status |= RESOLVED;
this.position = position;
int i = 0;
while (i < referenceCount) {
int source... | public class class_name {
boolean resolve(
final MethodWriter owner,
final int position,
final byte[] data)
{
boolean needUpdate = false;
this.status |= RESOLVED;
this.position = position;
int i = 0;
while (i < referenceCount) {
int source... |
public class class_name {
public final <T extends IInvoice, L extends IInvoiceLine<T>> void mkLnFinal(
final L pLine, final BigDecimal pTotTxs, final BigDecimal pTotTxsFc,
final Boolean pIsTxByUser) {
if (pIsTxByUser) {
if (pLine.getItsOwner().getForeignCurrency() == null) {
if (pLine.getTo... | public class class_name {
public final <T extends IInvoice, L extends IInvoiceLine<T>> void mkLnFinal(
final L pLine, final BigDecimal pTotTxs, final BigDecimal pTotTxsFc,
final Boolean pIsTxByUser) {
if (pIsTxByUser) {
if (pLine.getItsOwner().getForeignCurrency() == null) {
if (pLine.getTo... |
public class class_name {
public static Filter get(FilterPredicate filterPredicate, UnboundRecordFilter unboundRecordFilter) {
checkArgument(filterPredicate == null || unboundRecordFilter == null,
"Cannot provide both a FilterPredicate and an UnboundRecordFilter");
if (filterPredicate != null) {
... | public class class_name {
public static Filter get(FilterPredicate filterPredicate, UnboundRecordFilter unboundRecordFilter) {
checkArgument(filterPredicate == null || unboundRecordFilter == null,
"Cannot provide both a FilterPredicate and an UnboundRecordFilter");
if (filterPredicate != null) {
... |
public class class_name {
protected <G extends T> G parseElements(Type targetType, String value, Type elementType)
{
String cleanedValue = cleanValue(value);
try {
// Set up a StreamTokenizer on the characters in this String
StreamTokenizer st = createStreamTokenizer(cleane... | public class class_name {
protected <G extends T> G parseElements(Type targetType, String value, Type elementType)
{
String cleanedValue = cleanValue(value);
try {
// Set up a StreamTokenizer on the characters in this String
StreamTokenizer st = createStreamTokenizer(cleane... |
public class class_name {
private HttpPut preparePut(final String url) {
final HttpPut httpPut = new HttpPut(this.instanceUrl + url);
for (final Header header : this.headers) {
httpPut.addHeader(header);
}
return httpPut;
} } | public class class_name {
private HttpPut preparePut(final String url) {
final HttpPut httpPut = new HttpPut(this.instanceUrl + url);
for (final Header header : this.headers) {
httpPut.addHeader(header); // depends on control dependency: [for], data = [header]
}
return httpPut;
} } |
public class class_name {
public T next(T ignoreReplicaSet) {
if (entry == null) return null;
entry = entry.next;
if (entry.element.equals(ignoreReplicaSet)) {
return entry.next.element;
} else {
return entry.element;
}
} } | public class class_name {
public T next(T ignoreReplicaSet) {
if (entry == null) return null;
entry = entry.next;
if (entry.element.equals(ignoreReplicaSet)) {
return entry.next.element; // depends on control dependency: [if], data = [none]
} else {
return entry.... |
public class class_name {
public void removeTextSearchParameter(String key) {
try {
ParamType type = ParamType.valueOf(key);
switch (type) {
case language:
m_searchObject.setLocale(getStartLocale());
break;
case te... | public class class_name {
public void removeTextSearchParameter(String key) {
try {
ParamType type = ParamType.valueOf(key);
switch (type) {
case language:
m_searchObject.setLocale(getStartLocale());
break;
case te... |
public class class_name {
@SuppressWarnings("unchecked")
public static ParamExtractor makeParamExtractor(HttpServletRequest req,
Object refer) {
if (refer != null && Map.class.isAssignableFrom(refer.getClass())) {
return new MapParamExtractor(... | public class class_name {
@SuppressWarnings("unchecked")
public static ParamExtractor makeParamExtractor(HttpServletRequest req,
Object refer) {
if (refer != null && Map.class.isAssignableFrom(refer.getClass())) {
return new MapParamExtractor(... |
public class class_name {
public void convert(EntrySet entrySet, OutputStream outputStream,
boolean forceInteractionToComplex) {
// check args
if (entrySet == null || outputStream == null) {
throw new IllegalArgumentException("convert: one or more null arguments.");
}
if (entrySet.getLevel() != 2) {
... | public class class_name {
public void convert(EntrySet entrySet, OutputStream outputStream,
boolean forceInteractionToComplex) {
// check args
if (entrySet == null || outputStream == null) {
throw new IllegalArgumentException("convert: one or more null arguments.");
}
if (entrySet.getLevel() != 2) {
... |
public class class_name {
public void setMitigations(java.util.Collection<Mitigation> mitigations) {
if (mitigations == null) {
this.mitigations = null;
return;
}
this.mitigations = new java.util.ArrayList<Mitigation>(mitigations);
} } | public class class_name {
public void setMitigations(java.util.Collection<Mitigation> mitigations) {
if (mitigations == null) {
this.mitigations = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static GenderEnumeration findByValue(final String value) {
if (value == null) {
return null;
}
final String gender = value.toUpperCase();
if (gender.charAt(0) == 'M') {
return GenderEnumeration.MALE;
} else if (gender.ch... | public class class_name {
public static GenderEnumeration findByValue(final String value) {
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
}
final String gender = value.toUpperCase();
if (gender.charAt(0) == 'M') {
retur... |
public class class_name {
public ReshardingConfiguration withPreferredAvailabilityZones(String... preferredAvailabilityZones) {
if (this.preferredAvailabilityZones == null) {
setPreferredAvailabilityZones(new com.amazonaws.internal.SdkInternalList<String>(preferredAvailabilityZones.length));
... | public class class_name {
public ReshardingConfiguration withPreferredAvailabilityZones(String... preferredAvailabilityZones) {
if (this.preferredAvailabilityZones == null) {
setPreferredAvailabilityZones(new com.amazonaws.internal.SdkInternalList<String>(preferredAvailabilityZones.length)); // dep... |
public class class_name {
private static void initFactory() {
if (jsonFactory == null) {
try {
// We use reflection because the server side should not
// depend on gwt-servlet nor gwt-dev. Hence if GWT is not
// in our classpath means that we are in server side, otherwise
// w... | public class class_name {
private static void initFactory() {
if (jsonFactory == null) {
try {
// We use reflection because the server side should not
// depend on gwt-servlet nor gwt-dev. Hence if GWT is not
// in our classpath means that we are in server side, otherwise
// w... |
public class class_name {
public AppliedTerminology withTerms(Term... terms) {
if (this.terms == null) {
setTerms(new java.util.ArrayList<Term>(terms.length));
}
for (Term ele : terms) {
this.terms.add(ele);
}
return this;
} } | public class class_name {
public AppliedTerminology withTerms(Term... terms) {
if (this.terms == null) {
setTerms(new java.util.ArrayList<Term>(terms.length)); // depends on control dependency: [if], data = [none]
}
for (Term ele : terms) {
this.terms.add(ele); // depend... |
public class class_name {
public String unescapeJava(final Object target) {
if (target == null) {
return null;
}
return StringUtils.unescapeJava(target);
} } | public class class_name {
public String unescapeJava(final Object target) {
if (target == null) {
return null; // depends on control dependency: [if], data = [none]
}
return StringUtils.unescapeJava(target);
} } |
public class class_name {
public String[] getDictionaryClass(String identifier) {
Entry[] dictEntries = dict.getEntries();
String specRef = getSpecRef(identifier);
if (specRef == null) {
logger.error("Cannot determine specification for id: ", identifier);
return new St... | public class class_name {
public String[] getDictionaryClass(String identifier) {
Entry[] dictEntries = dict.getEntries();
String specRef = getSpecRef(identifier);
if (specRef == null) {
logger.error("Cannot determine specification for id: ", identifier); // depends on control dep... |
public class class_name {
public JSONReader withFeatures(int features)
{
if (_features == features) {
return this;
}
return _with(features, _readerLocator, _treeCodec, _collectionBuilder, _mapBuilder);
} } | public class class_name {
public JSONReader withFeatures(int features)
{
if (_features == features) {
return this; // depends on control dependency: [if], data = [none]
}
return _with(features, _readerLocator, _treeCodec, _collectionBuilder, _mapBuilder);
} } |
public class class_name {
protected ExecutorService createDefaultExecutorService(ConcurrentAsyncExecutorProvider provider) {
final int corePoolSize = 0;
Integer maximumPoolSize = provider != null ? provider.provideMaxPoolSize() : null;
if (maximumPoolSize == null) {
maximumPoolSize ... | public class class_name {
protected ExecutorService createDefaultExecutorService(ConcurrentAsyncExecutorProvider provider) {
final int corePoolSize = 0;
Integer maximumPoolSize = provider != null ? provider.provideMaxPoolSize() : null;
if (maximumPoolSize == null) {
maximumPoolSize ... |
public class class_name {
public static double trigamma(double x) {
if(!(x > 0)) {
return Double.NaN;
}
// Method of equation 5:
if(x <= 1e-5) {
return 1. / (x * x);
}
// Method of equation 4:
else if(x > 49.) {
final double ix2 = 1. / (x * x);
// Partial series expa... | public class class_name {
public static double trigamma(double x) {
if(!(x > 0)) {
return Double.NaN; // depends on control dependency: [if], data = [none]
}
// Method of equation 5:
if(x <= 1e-5) {
return 1. / (x * x); // depends on control dependency: [if], data = [(x]
}
// Method... |
public class class_name {
private ParseTree parseMultiplicativeExpression() {
SourcePosition start = getTreeStartLocation();
ParseTree left = parseExponentiationExpression();
while (peekMultiplicativeOperator()) {
Token operator = nextToken();
ParseTree right = parseExponentiationExpression();
... | public class class_name {
private ParseTree parseMultiplicativeExpression() {
SourcePosition start = getTreeStartLocation();
ParseTree left = parseExponentiationExpression();
while (peekMultiplicativeOperator()) {
Token operator = nextToken();
ParseTree right = parseExponentiationExpression();
... |
public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
protected AbstractAuditLogger getAuditLoggerInstance(RuntimeEngine engine) {
DeploymentDescriptor descriptor = getRuntimeManager().getDeploymentDescriptor();
AbstractAuditLogger auditLogger = null;
if ("true".equals(System.g... | public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
protected AbstractAuditLogger getAuditLoggerInstance(RuntimeEngine engine) {
DeploymentDescriptor descriptor = getRuntimeManager().getDeploymentDescriptor();
AbstractAuditLogger auditLogger = null;
if ("true".equals(System.g... |
public class class_name {
public final String getDirectoryName(final String property) {
String directory = properties.get(property);
if (directory == null || directory.isEmpty()){
return null;
}
if (IS_WINDOWS) {
// Windows swings both ways. If a forward slash was already used, we'll
... | public class class_name {
public final String getDirectoryName(final String property) {
String directory = properties.get(property);
if (directory == null || directory.isEmpty()){
return null; // depends on control dependency: [if], data = [none]
}
if (IS_WINDOWS) {
// Windows swings both w... |
public class class_name {
public static MediaTable create(String tableName, String idColumnName,
List<UserCustomColumn> additionalColumns) {
List<UserCustomColumn> columns = new ArrayList<>();
columns.addAll(createRequiredColumns(idColumnName));
if (additionalColumns != null) {
columns.addAll(additionalC... | public class class_name {
public static MediaTable create(String tableName, String idColumnName,
List<UserCustomColumn> additionalColumns) {
List<UserCustomColumn> columns = new ArrayList<>();
columns.addAll(createRequiredColumns(idColumnName));
if (additionalColumns != null) {
columns.addAll(additionalC... |
public class class_name {
static boolean overlapPolyPoly2D(float[] polya, int npolya, float[] polyb, int npolyb) {
for (int i = 0, j = npolya - 1; i < npolya; j = i++) {
int va = j * 3;
int vb = i * 3;
float[] n = new float[] { polya[vb + 2] - polya[va + 2], 0, -(polya[vb ... | public class class_name {
static boolean overlapPolyPoly2D(float[] polya, int npolya, float[] polyb, int npolyb) {
for (int i = 0, j = npolya - 1; i < npolya; j = i++) {
int va = j * 3;
int vb = i * 3;
float[] n = new float[] { polya[vb + 2] - polya[va + 2], 0, -(polya[vb ... |
public class class_name {
public boolean hasComponent(int blockId) {
for (int i = 0; i < length; i++) {
if (blockIdList[i] == blockId) {
return true;
}
}
return false;
} } | public class class_name {
public boolean hasComponent(int blockId) {
for (int i = 0; i < length; i++) {
if (blockIdList[i] == blockId) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
@Private
@Override
public void aggregationThrewException(final List<Integer> taskletIds, final Exception exception) {
try {
failedTasklets(exception, taskletIds);
} catch (final InterruptedException e) {
throw new RuntimeException(e);
}
} } | public class class_name {
@Private
@Override
public void aggregationThrewException(final List<Integer> taskletIds, final Exception exception) {
try {
failedTasklets(exception, taskletIds); // depends on control dependency: [try], data = [exception]
} catch (final InterruptedException e) {
throw... |
public class class_name {
public static Map<String, Object> createContext(
final StenoEncoder encoder,
final ILoggingEvent event,
final ObjectMapper objectMapper,
@Nullable final List<String> contextKeys,
@Nullable final List<Object> contextValues) {
... | public class class_name {
public static Map<String, Object> createContext(
final StenoEncoder encoder,
final ILoggingEvent event,
final ObjectMapper objectMapper,
@Nullable final List<String> contextKeys,
@Nullable final List<Object> contextValues) {
... |
public class class_name {
public List<JCCompilationUnit> enterTrees(List<JCCompilationUnit> roots) {
//enter symbols for all files
if (!taskListener.isEmpty()) {
for (JCCompilationUnit unit: roots) {
TaskEvent e = new TaskEvent(TaskEvent.Kind.ENTER, unit);
ta... | public class class_name {
public List<JCCompilationUnit> enterTrees(List<JCCompilationUnit> roots) {
//enter symbols for all files
if (!taskListener.isEmpty()) {
for (JCCompilationUnit unit: roots) {
TaskEvent e = new TaskEvent(TaskEvent.Kind.ENTER, unit);
ta... |
public class class_name {
private String createUri(String uri) {
try {
return FileUtil.URI_SEPARATOR_CHAR
+ FilenameUtils.getPath(uri)
+ URLEncoder.encode(FilenameUtils.getBaseName(uri), StandardCharsets.UTF_8.name())
+ config.getOutputExtension();
... | public class class_name {
private String createUri(String uri) {
try {
return FileUtil.URI_SEPARATOR_CHAR
+ FilenameUtils.getPath(uri)
+ URLEncoder.encode(FilenameUtils.getBaseName(uri), StandardCharsets.UTF_8.name())
+ config.getOutputExtension(); //... |
public class class_name {
Symbol findIdentInType(Env<AttrContext> env, Type site,
Name name, int kind) {
Symbol bestSoFar = typeNotFound;
Symbol sym;
if ((kind & VAR) != 0) {
sym = findField(env, site, name, site.tsym);
if (sym.exists()) return... | public class class_name {
Symbol findIdentInType(Env<AttrContext> env, Type site,
Name name, int kind) {
Symbol bestSoFar = typeNotFound;
Symbol sym;
if ((kind & VAR) != 0) {
sym = findField(env, site, name, site.tsym); // depends on control dependency: [i... |
public class class_name {
@Override
public boolean verify(@Sensitive char[] password, String hashedPassword) {
String[] items = parseData(hashedPassword);
byte[] originalHash = Base64Coder.base64DecodeString(items[3]);
if (tc.isDebugEnabled()) {
Tr.debug(tc, "original Hash lengt... | public class class_name {
@Override
public boolean verify(@Sensitive char[] password, String hashedPassword) {
String[] items = parseData(hashedPassword);
byte[] originalHash = Base64Coder.base64DecodeString(items[3]);
if (tc.isDebugEnabled()) {
Tr.debug(tc, "original Hash lengt... |
public class class_name {
private void createPropertyGetterSetter(ClassNode classNode, PropertyNode originalProp) {
Expression initExp = originalProp.getInitialExpression();
originalProp.getField().setInitialValueExpression(null);
PropertyNode fxProperty = createFXProperty(originalProp);
... | public class class_name {
private void createPropertyGetterSetter(ClassNode classNode, PropertyNode originalProp) {
Expression initExp = originalProp.getInitialExpression();
originalProp.getField().setInitialValueExpression(null);
PropertyNode fxProperty = createFXProperty(originalProp);
... |
public class class_name {
private void writeXmi(CAS aCas, File name, String modelFileName)
throws IOException, SAXException {
FileOutputStream out = null;
try {
// write XMI
out = new FileOutputStream(name);
XmiCasSerializer ser = new XmiCasSerializer(aCas.getTypeSystem());
XMLSe... | public class class_name {
private void writeXmi(CAS aCas, File name, String modelFileName)
throws IOException, SAXException {
FileOutputStream out = null;
try {
// write XMI
out = new FileOutputStream(name);
XmiCasSerializer ser = new XmiCasSerializer(aCas.getTypeSystem());
XMLSe... |
public class class_name {
public Observable<ServiceResponse<List<Export>>> getExportsWithServiceResponseAsync(UUID projectId, UUID iterationId) {
if (projectId == null) {
throw new IllegalArgumentException("Parameter projectId is required and cannot be null.");
}
if (iterationId == ... | public class class_name {
public Observable<ServiceResponse<List<Export>>> getExportsWithServiceResponseAsync(UUID projectId, UUID iterationId) {
if (projectId == null) {
throw new IllegalArgumentException("Parameter projectId is required and cannot be null.");
}
if (iterationId == ... |
public class class_name {
public final String toFFDCString(Object[] objects)
{
StringBuffer buffer = new StringBuffer();
buffer.append('{');
if (objects == null)
{
buffer.append("<null>");
}
else
{
for (int i = 0; i < objects.length; i++)
{
Object value = objects... | public class class_name {
public final String toFFDCString(Object[] objects)
{
StringBuffer buffer = new StringBuffer();
buffer.append('{');
if (objects == null)
{
buffer.append("<null>"); // depends on control dependency: [if], data = [none]
}
else
{
for (int i = 0; i < objec... |
public class class_name {
@Override
public boolean containsAll(final Collection collection) {
for (Object object : collection) {
if (!contains(object)) {
return false;
}
}
return true;
} } | public class class_name {
@Override
public boolean containsAll(final Collection collection) {
for (Object object : collection) {
if (!contains(object)) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
private void addSupertypeEdges(ClassVertex vertex, LinkedList<XClass> workList) {
XClass xclass = vertex.getXClass();
// Direct superclass
ClassDescriptor superclassDescriptor = xclass.getSuperclassDescriptor();
if (superclassDescriptor != null) {
... | public class class_name {
private void addSupertypeEdges(ClassVertex vertex, LinkedList<XClass> workList) {
XClass xclass = vertex.getXClass();
// Direct superclass
ClassDescriptor superclassDescriptor = xclass.getSuperclassDescriptor();
if (superclassDescriptor != null) {
... |
public class class_name {
public void send(final BitSet bitSet, int length) {
if (transmitterPin != null) {
for (int nRepeat = 0; nRepeat < repeatTransmit; nRepeat++) {
for (int i = 0; i < length; i++) {
if (bitSet.get(i)) {
transmit(proto... | public class class_name {
public void send(final BitSet bitSet, int length) {
if (transmitterPin != null) {
for (int nRepeat = 0; nRepeat < repeatTransmit; nRepeat++) {
for (int i = 0; i < length; i++) {
if (bitSet.get(i)) {
transmit(proto... |
public class class_name {
protected Content getNavSummaryLink(TypeElement typeElement, boolean link) {
if (link) {
return writer.getHyperLink(
SectionName.ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY,
contents.navAnnotationTypeOptionalMember);
} else {
... | public class class_name {
protected Content getNavSummaryLink(TypeElement typeElement, boolean link) {
if (link) {
return writer.getHyperLink(
SectionName.ANNOTATION_TYPE_OPTIONAL_ELEMENT_SUMMARY,
contents.navAnnotationTypeOptionalMember); // depends on contr... |
public class class_name {
@Override
public Iterator<T> iterator()
{
return new Iterator<T>() {
private int index;
@Override
public boolean hasNext()
{
return index < size;
}
@Override
public T next()
{
if (ind... | public class class_name {
@Override
public Iterator<T> iterator()
{
return new Iterator<T>() {
private int index;
@Override
public boolean hasNext()
{
return index < size;
}
@Override
public T next()
{
if (ind... |
public class class_name {
public ORDER compare(OQueryOperator other) {
final Class<?> thisClass = this.getClass();
final Class<?> otherClass = other.getClass();
int thisPosition = -1;
int otherPosition = -1;
for (int i = 0; i < DEFAULT_OPERATORS_ORDER.length; i++) {
// subclass of def... | public class class_name {
public ORDER compare(OQueryOperator other) {
final Class<?> thisClass = this.getClass();
final Class<?> otherClass = other.getClass();
int thisPosition = -1;
int otherPosition = -1;
for (int i = 0; i < DEFAULT_OPERATORS_ORDER.length; i++) {
// subclass of def... |
public class class_name {
public Long getFirstLongValue(String name) {
Object objs[] = getValues(name);
for (Object obj : objs) {
if (obj instanceof Long) {
return (Long) obj;
}
}
return null;
} } | public class class_name {
public Long getFirstLongValue(String name) {
Object objs[] = getValues(name);
for (Object obj : objs) {
if (obj instanceof Long) {
return (Long) obj; // depends on control dependency: [if], data = [none]
}
}
return null;
... |
public class class_name {
@Override
@SuppressWarnings("unchecked")
public void renew(Map<String, String> credentials, Map topologyConf) {
try {
Credentials credential = getCredentials(credentials);
if (credential != null) {
Configuration configuration = new Confi... | public class class_name {
@Override
@SuppressWarnings("unchecked")
public void renew(Map<String, String> credentials, Map topologyConf) {
try {
Credentials credential = getCredentials(credentials);
if (credential != null) {
Configuration configuration = new Confi... |
public class class_name {
protected void updateGui() {
ButtonLayoutStyle buttonButtonLayoutStyle = buttonAction.getButtonLayoutStyle();
if (ButtonLayoutStyle.ICON_TITLE_AND_DESCRIPTION.equals(buttonButtonLayoutStyle)) {
buildGuiWithDescription();
} else { // LayoutParameter.Layout.ICON_AND_TITLE || null || ..... | public class class_name {
protected void updateGui() {
ButtonLayoutStyle buttonButtonLayoutStyle = buttonAction.getButtonLayoutStyle();
if (ButtonLayoutStyle.ICON_TITLE_AND_DESCRIPTION.equals(buttonButtonLayoutStyle)) {
buildGuiWithDescription(); // depends on control dependency: [if], data = [none]
} else { ... |
public class class_name {
private void undeployInstances(List<InstanceContext> instances, final CountingCompletionHandler<Void> counter) {
for (final InstanceContext instance : instances) {
if (instance.component().isModule()) {
undeployModule(instance, counter);
} else if (instance.component()... | public class class_name {
private void undeployInstances(List<InstanceContext> instances, final CountingCompletionHandler<Void> counter) {
for (final InstanceContext instance : instances) {
if (instance.component().isModule()) {
undeployModule(instance, counter); // depends on control dependency: [if... |
public class class_name {
@Override
public void saveOrUpdate() {
if (checkBox.getValue() && dsCombo.getValue() != null) {
final ActionType autoAssignActionType = ((ActionTypeOption) actionTypeOptionGroupLayout
.getActionTypeOptionGroup().getValue()).getActionType();
... | public class class_name {
@Override
public void saveOrUpdate() {
if (checkBox.getValue() && dsCombo.getValue() != null) {
final ActionType autoAssignActionType = ((ActionTypeOption) actionTypeOptionGroupLayout
.getActionTypeOptionGroup().getValue()).getActionType();
... |
public class class_name {
public static String getResourceAsString(final String resourcePath) {
File resource = getFileForResource(resourcePath);
if (!resource.exists() || resource.isDirectory()) {
logger.error("Cannot read resource, does not exist"
+ " (or is a directo... | public class class_name {
public static String getResourceAsString(final String resourcePath) {
File resource = getFileForResource(resourcePath);
if (!resource.exists() || resource.isDirectory()) {
logger.error("Cannot read resource, does not exist"
+ " (or is a directo... |
public class class_name {
private void addSinkTasks() {
Runnable sinkTasks = new Runnable() {
@Override
public void run() {
while (!metricsInSinkQueue.isEmpty()) {
metricsSink.processRecord(metricsInSinkQueue.poll());
}
}
};
slaveLooper.addTasksOnWakeup(sinkTask... | public class class_name {
private void addSinkTasks() {
Runnable sinkTasks = new Runnable() {
@Override
public void run() {
while (!metricsInSinkQueue.isEmpty()) {
metricsSink.processRecord(metricsInSinkQueue.poll()); // depends on control dependency: [while], data = [none]
}
... |
public class class_name {
public static byte schemaToColumnType(Schema s) {
Schema.Type typ = s.getType();
switch (typ) {
case BOOLEAN:
case INT:
case LONG:
case FLOAT:
case DOUBLE:
return Vec.T_NUM;
case ENUM:
return Vec.T_CAT;
case STRING:
re... | public class class_name {
public static byte schemaToColumnType(Schema s) {
Schema.Type typ = s.getType();
switch (typ) {
case BOOLEAN:
case INT:
case LONG:
case FLOAT:
case DOUBLE:
return Vec.T_NUM;
case ENUM:
return Vec.T_CAT;
case STRING:
re... |
public class class_name {
private static String getHostIPAddressFromString(String propIPAddress, String niName) {
String hostIPAddr = propIPAddress;
if (propIPAddress.equals("")) {
// If the listenerIPAddress is blank, then try to get the ip address of
// the interface
try {
Network... | public class class_name {
private static String getHostIPAddressFromString(String propIPAddress, String niName) {
String hostIPAddr = propIPAddress;
if (propIPAddress.equals("")) {
// If the listenerIPAddress is blank, then try to get the ip address of
// the interface
try {
Network... |
public class class_name {
protected BigDecimal round(double val){
BigDecimal value = new BigDecimal(val);
if(val!=0.0){
value = value.setScale(3, BigDecimal.ROUND_DOWN);
}
return value;
} } | public class class_name {
protected BigDecimal round(double val){
BigDecimal value = new BigDecimal(val);
if(val!=0.0){
value = value.setScale(3, BigDecimal.ROUND_DOWN); // depends on control dependency: [if], data = [none]
}
return value;
} } |
public class class_name {
public static int setValue(Document document, String xPath, String value, String nodeToInsert) {
int changes = 0;
// be naive and try to find the node
Iterator<Node> itNodes = CmsCollectionsGenericWrapper.<Node> list(document.selectNodes(xPath)).iterator();
/... | public class class_name {
public static int setValue(Document document, String xPath, String value, String nodeToInsert) {
int changes = 0;
// be naive and try to find the node
Iterator<Node> itNodes = CmsCollectionsGenericWrapper.<Node> list(document.selectNodes(xPath)).iterator();
/... |
public class class_name {
public java.util.List<StackResourceSummary> getStackResourceSummaries() {
if (stackResourceSummaries == null) {
stackResourceSummaries = new com.amazonaws.internal.SdkInternalList<StackResourceSummary>();
}
return stackResourceSummaries;
} } | public class class_name {
public java.util.List<StackResourceSummary> getStackResourceSummaries() {
if (stackResourceSummaries == null) {
stackResourceSummaries = new com.amazonaws.internal.SdkInternalList<StackResourceSummary>(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void addItem(int row , int col , double value ) {
if( nz_length == nz_value.data.length ) {
int amount = nz_length + 10;
nz_value.growInternal(amount);
nz_rowcol.growInternal(amount*2);
}
nz_value.data[nz_length] = value;
... | public class class_name {
public void addItem(int row , int col , double value ) {
if( nz_length == nz_value.data.length ) {
int amount = nz_length + 10;
nz_value.growInternal(amount); // depends on control dependency: [if], data = [none]
nz_rowcol.growInternal(amount*2); //... |
public class class_name {
@Override
public final CacheKey getCacheKey(HttpServletRequest request, HttpServletResponse response) {
final Resource stylesheetResource = this.getStylesheetResource(request);
final Serializable stylesheetCacheKey;
try {
stylesheetCacheKey = this.xmlUt... | public class class_name {
@Override
public final CacheKey getCacheKey(HttpServletRequest request, HttpServletResponse response) {
final Resource stylesheetResource = this.getStylesheetResource(request);
final Serializable stylesheetCacheKey;
try {
stylesheetCacheKey = this.xmlUt... |
public class class_name {
@Override
public void setConsumer(IDataSetConsumer consumer) {
logger.debug("setConsumer(consumer) - start");
if (this._columnSensing) {
_consumer = new BufferedConsumer(consumer);
} else {
_consumer = consumer;
}
} } | public class class_name {
@Override
public void setConsumer(IDataSetConsumer consumer) {
logger.debug("setConsumer(consumer) - start");
if (this._columnSensing) {
_consumer = new BufferedConsumer(consumer); // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
protected void fireClusterChange(long timestamp, String type, String message) {
// if we have no listeners, do nothing...
if (listeners != null && !listeners.isEmpty()) {
// create the event object to send
ClusterEvent event =
new ClusterEvent(this, timestamp, type... | public class class_name {
protected void fireClusterChange(long timestamp, String type, String message) {
// if we have no listeners, do nothing...
if (listeners != null && !listeners.isEmpty()) {
// create the event object to send
ClusterEvent event =
new ClusterEvent(this, timestamp, type... |
public class class_name {
Observable<ChatResult> synchroniseStore() {
if (isSynchronising.getAndSet(true)) {
log.i("Synchronisation in progress.");
return Observable.fromCallable(() -> new ChatResult(true, null));
}
log.i("Synchronising store.");
return synchroni... | public class class_name {
Observable<ChatResult> synchroniseStore() {
if (isSynchronising.getAndSet(true)) {
log.i("Synchronisation in progress."); // depends on control dependency: [if], data = [none]
return Observable.fromCallable(() -> new ChatResult(true, null)); // depends on contr... |
public class class_name {
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;... | public class class_name {
public com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;... |
public class class_name {
void setDecoded(CharSequence name, Object... values)
{
if (name != null && values != null)
{
List<Object> encodedValues = new ArrayList<Object>(values.length);
for (Object value : values)
{
if (value == null)
encodedValues.a... | public class class_name {
void setDecoded(CharSequence name, Object... values)
{
if (name != null && values != null)
{
List<Object> encodedValues = new ArrayList<Object>(values.length);
for (Object value : values)
{
if (value == null)
encodedValues.a... |
public class class_name {
@Override
public void parseHeader(String header, S sequence) {
//uniptrot
// tr|Q0TET7|Q0TET7_ECOL5 Putative uncharacterized protein OS=Escherichia coli O6:K15:H31 (strain 536 / UPEC) GN=ECP_2553 PE=4 SV=1
sequence.setOriginalHeader(header);
String[] data = getHeaderValues(header);
... | public class class_name {
@Override
public void parseHeader(String header, S sequence) {
//uniptrot
// tr|Q0TET7|Q0TET7_ECOL5 Putative uncharacterized protein OS=Escherichia coli O6:K15:H31 (strain 536 / UPEC) GN=ECP_2553 PE=4 SV=1
sequence.setOriginalHeader(header);
String[] data = getHeaderValues(header);
... |
public class class_name {
public void start() {
synchronized (getLock()) {
if (destroyed.get()) {
return;
}
if (bundle.getState() != Bundle.ACTIVE) {
return;
}
if (bundle.getBundleContext() != bundleContext) {
return;
}
try {
doStart();
} catch (Throwable e) {
logger.warn(... | public class class_name {
public void start() {
synchronized (getLock()) {
if (destroyed.get()) {
return; // depends on control dependency: [if], data = [none]
}
if (bundle.getState() != Bundle.ACTIVE) {
return; // depends on control dependency: [if], data = [none]
}
if (bundle.getBundleContex... |
public class class_name {
public static void tint(View view, Tint tint) {
final ColorStateList color = tint.getColor(view.getContext());
if (view instanceof ImageView) {
tint(((ImageView) view).getDrawable(), color);
} else if (view instanceof TextView) {
TextView text ... | public class class_name {
public static void tint(View view, Tint tint) {
final ColorStateList color = tint.getColor(view.getContext());
if (view instanceof ImageView) {
tint(((ImageView) view).getDrawable(), color); // depends on control dependency: [if], data = [none]
} else if (... |
public class class_name {
protected double[][] splitCentroid(Cluster<? extends MeanModel> parentCluster, Relation<V> relation) {
double[] parentCentroid = parentCluster.getModel().getMean();
// Compute size of cluster/region
double radius = 0.;
for(DBIDIter it = parentCluster.getIDs().iter(); it.valid... | public class class_name {
protected double[][] splitCentroid(Cluster<? extends MeanModel> parentCluster, Relation<V> relation) {
double[] parentCentroid = parentCluster.getModel().getMean();
// Compute size of cluster/region
double radius = 0.;
for(DBIDIter it = parentCluster.getIDs().iter(); it.valid... |
public class class_name {
public void setupDb(boolean createDb, boolean createTables, boolean dropDb) throws Exception {
if (m_setupBean.isInitialized()) {
System.out.println("Setup-Bean initialized successfully.");
CmsSetupDb db = new CmsSetupDb(m_setupBean.getWebAppRfsPath());
... | public class class_name {
public void setupDb(boolean createDb, boolean createTables, boolean dropDb) throws Exception {
if (m_setupBean.isInitialized()) {
System.out.println("Setup-Bean initialized successfully.");
CmsSetupDb db = new CmsSetupDb(m_setupBean.getWebAppRfsPath());
... |
public class class_name {
public void ensureCapacity(int requiredBits)
{
int requiredWords = wordIndex(requiredBits - 1) + 1;
if (words.length < requiredWords)
{
long[] newWords = new long[requiredWords];
System.arraycopy(words, 0, newWords, 0, words.length);
... | public class class_name {
public void ensureCapacity(int requiredBits)
{
int requiredWords = wordIndex(requiredBits - 1) + 1;
if (words.length < requiredWords)
{
long[] newWords = new long[requiredWords];
System.arraycopy(words, 0, newWords, 0, words.length); // depe... |
public class class_name {
public String asString(Document doc) {
try {
DOMSource domSource = new DOMSource(doc);
StringWriter writer = new StringWriter();
StreamResult result = new StreamResult(writer);
TransformerFactory tf = TransformerFactory.newInstance();
... | public class class_name {
public String asString(Document doc) {
try {
DOMSource domSource = new DOMSource(doc);
StringWriter writer = new StringWriter();
StreamResult result = new StreamResult(writer);
TransformerFactory tf = TransformerFactory.newInstance();
... |
public class class_name {
private void showPools(PrintWriter out, boolean advancedView,
Set<String> poolFilterSet) {
ResourceReporter reporter = jobTracker.getResourceReporter();
synchronized (jobTracker) {
synchronized(scheduler) {
PoolManager poolManager = scheduler.getPoolManager();
... | public class class_name {
private void showPools(PrintWriter out, boolean advancedView,
Set<String> poolFilterSet) {
ResourceReporter reporter = jobTracker.getResourceReporter();
synchronized (jobTracker) {
synchronized(scheduler) {
PoolManager poolManager = scheduler.getPoolManager();
... |
public class class_name {
public static String arglistToJvm(String arglist) {
if (!(arglist.startsWith("(") && arglist.endsWith(")"))) {
throw new Error("Malformed arglist: " + arglist);
}
String result = "(";
String commaSepArgs = arglist.substring(1, arglist.length() - 1);
StringTokenizer a... | public class class_name {
public static String arglistToJvm(String arglist) {
if (!(arglist.startsWith("(") && arglist.endsWith(")"))) {
throw new Error("Malformed arglist: " + arglist);
}
String result = "(";
String commaSepArgs = arglist.substring(1, arglist.length() - 1);
StringTokenizer a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.