code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private ParseTree parseImportSpecifier() {
SourcePosition start = getTreeStartLocation();
IdentifierToken importedName = eatIdOrKeywordAsId();
IdentifierToken destinationName = null;
if (peekPredefinedString(PredefinedName.AS)) {
eatPredefinedString(PredefinedName.AS);
... | public class class_name {
private ParseTree parseImportSpecifier() {
SourcePosition start = getTreeStartLocation();
IdentifierToken importedName = eatIdOrKeywordAsId();
IdentifierToken destinationName = null;
if (peekPredefinedString(PredefinedName.AS)) {
eatPredefinedString(PredefinedName.AS); /... |
public class class_name {
@Override
public void skipElement() throws XMLStreamException
{
if (mCurrToken != START_ELEMENT) {
throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM);
}
int nesting = 1; // need one more end elements than start elements
while... | public class class_name {
@Override
public void skipElement() throws XMLStreamException
{
if (mCurrToken != START_ELEMENT) {
throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM);
}
int nesting = 1; // need one more end elements than start elements
while... |
public class class_name {
private Object extractValue(Object aValue, String aName, String bName) {
Class aClass = aValue.getClass();
Object value;
//
// a.isB() or a.getB()
//
String bNameCapped = Character.toUpperCase(bName.charAt(0)) + bName.substring(1);
Me... | public class class_name {
private Object extractValue(Object aValue, String aName, String bName) {
Class aClass = aValue.getClass();
Object value;
//
// a.isB() or a.getB()
//
String bNameCapped = Character.toUpperCase(bName.charAt(0)) + bName.substring(1);
Me... |
public class class_name {
protected void committableUpdated() {
boolean committable = isCommittable();
if (hasChanged(oldCommittable, committable)) {
oldCommittable = committable;
firePropertyChange(COMMITTABLE_PROPERTY, !committable, committable);
}
} } | public class class_name {
protected void committableUpdated() {
boolean committable = isCommittable();
if (hasChanged(oldCommittable, committable)) {
oldCommittable = committable; // depends on control dependency: [if], data = [none]
firePropertyChange(COMMITTABLE_PROPERTY, !committable, committable); // dep... |
public class class_name {
public long getBackpointer(long newKeyNum) {
int index = Arrays.binarySearch(newKeyNums, newKeyNum);
if (index >= 0) {
return oldKeyNums[index];
}
return -1;
} } | public class class_name {
public long getBackpointer(long newKeyNum) {
int index = Arrays.binarySearch(newKeyNums, newKeyNum);
if (index >= 0) {
return oldKeyNums[index]; // depends on control dependency: [if], data = [none]
}
return -1;
} } |
public class class_name {
public <P extends Provider<?>> AbstractModule config(final Class<P> klass, final Configurator<P> configurator) {
Function<P> initializer = new Function<P>() {
@Override
public P call(Object... args) {
String m = "";
try {
... | public class class_name {
public <P extends Provider<?>> AbstractModule config(final Class<P> klass, final Configurator<P> configurator) {
Function<P> initializer = new Function<P>() {
@Override
public P call(Object... args) {
String m = "";
try {
... |
public class class_name {
public void error(Marker marker, String format, Object arg1, Object arg2) {
if (!logger.isErrorEnabled(marker))
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg1, arg2).getMessage();
((LocationAwareL... | public class class_name {
public void error(Marker marker, String format, Object arg1, Object arg2) {
if (!logger.isErrorEnabled(marker))
return;
if (instanceofLAL) {
String formattedMessage = MessageFormatter.format(format, arg1, arg2).getMessage();
((LocationAwareL... |
public class class_name {
private void sendReset() {
if (pullMode) {
Ping recorded = new Ping();
recorded.setEventType(Ping.RECORDED_STREAM);
recorded.setValue2(streamId);
// recorded
RTMPMessage recordedMsg = RTMPMessage.build(recorded);
... | public class class_name {
private void sendReset() {
if (pullMode) {
Ping recorded = new Ping();
recorded.setEventType(Ping.RECORDED_STREAM); // depends on control dependency: [if], data = [none]
recorded.setValue2(streamId); // depends on control dependency: [if], data = [n... |
public class class_name {
public java.util.List<DeferredMaintenanceWindow> getDeferredMaintenanceWindows() {
if (deferredMaintenanceWindows == null) {
deferredMaintenanceWindows = new com.amazonaws.internal.SdkInternalList<DeferredMaintenanceWindow>();
}
return deferredMaintenanceWi... | public class class_name {
public java.util.List<DeferredMaintenanceWindow> getDeferredMaintenanceWindows() {
if (deferredMaintenanceWindows == null) {
deferredMaintenanceWindows = new com.amazonaws.internal.SdkInternalList<DeferredMaintenanceWindow>(); // depends on control dependency: [if], data =... |
public class class_name {
@Override
public void enterScope(NodeTraversal t) {
Node n = t.getScopeRoot();
BasicBlock parent = blockStack.isEmpty() ? null : peek(blockStack);
// Don't add all ES6 scope roots to blockStack, only those that are also scopes according to
// the ES5 scoping rules. Other nod... | public class class_name {
@Override
public void enterScope(NodeTraversal t) {
Node n = t.getScopeRoot();
BasicBlock parent = blockStack.isEmpty() ? null : peek(blockStack);
// Don't add all ES6 scope roots to blockStack, only those that are also scopes according to
// the ES5 scoping rules. Other nod... |
public class class_name {
public static CsvSchema convert(RowTypeInfo rowType) {
final Builder builder = new CsvSchema.Builder();
final String[] fields = rowType.getFieldNames();
final TypeInformation<?>[] types = rowType.getFieldTypes();
for (int i = 0; i < rowType.getArity(); i++) {
builder.addColumn(new ... | public class class_name {
public static CsvSchema convert(RowTypeInfo rowType) {
final Builder builder = new CsvSchema.Builder();
final String[] fields = rowType.getFieldNames();
final TypeInformation<?>[] types = rowType.getFieldTypes();
for (int i = 0; i < rowType.getArity(); i++) {
builder.addColumn(new ... |
public class class_name {
protected Set<Event> resolveMultifactorAuthenticationProvider(final Optional<RequestContext> context,
final RegisteredService service,
final Principal principal)... | public class class_name {
protected Set<Event> resolveMultifactorAuthenticationProvider(final Optional<RequestContext> context,
final RegisteredService service,
final Principal principal)... |
public class class_name {
public void marshall(DeleteLabelsRequest deleteLabelsRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteLabelsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(DeleteLabelsRequest deleteLabelsRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteLabelsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
@Override
public boolean traverseDescendents(FileSelectInfo fileSelectInfo)
{
try
{
if (fileSelectInfo.getFile().isHidden())
{
return false;
}
}
catch (FileSystemException e) {}
return... | public class class_name {
@Override
public boolean traverseDescendents(FileSelectInfo fileSelectInfo)
{
try
{
if (fileSelectInfo.getFile().isHidden())
{
return false; // depends on control dependency: [if], data = [none]
}
}
ca... |
public class class_name {
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
// If the API level is less than 11, we can't rely on the view animation system to
// do the scrolling animation. Need to tick it here and call postInvalidate() until the scrolling is done.
... | public class class_name {
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
// If the API level is less than 11, we can't rely on the view animation system to
// do the scrolling animation. Need to tick it here and call postInvalidate() until the scrolling is done.
... |
public class class_name {
public void addFont(Font font) {
if (font.getBaseFont() != null) {
fonts.add(font);
return;
}
BaseFont bf = font.getCalculatedBaseFont(true);
Font f2 = new Font(bf, font.getSize(), font.getCalculatedStyle(), font.getColor());
fon... | public class class_name {
public void addFont(Font font) {
if (font.getBaseFont() != null) {
fonts.add(font); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
BaseFont bf = font.getCalculatedBaseFont(tr... |
public class class_name {
public static HazelcastInstance newHazelcastInstance(Config config, String instanceName, NodeContext nodeContext) {
if (config == null) {
config = new XmlConfigBuilder().build();
}
String name = getInstanceName(instanceName, config);
InstanceFutur... | public class class_name {
public static HazelcastInstance newHazelcastInstance(Config config, String instanceName, NodeContext nodeContext) {
if (config == null) {
config = new XmlConfigBuilder().build(); // depends on control dependency: [if], data = [none]
}
String name = getInst... |
public class class_name {
public java.util.List<String> getDefaultSecurityGroupNames() {
if (defaultSecurityGroupNames == null) {
defaultSecurityGroupNames = new com.amazonaws.internal.SdkInternalList<String>();
}
return defaultSecurityGroupNames;
} } | public class class_name {
public java.util.List<String> getDefaultSecurityGroupNames() {
if (defaultSecurityGroupNames == null) {
defaultSecurityGroupNames = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return defaultS... |
public class class_name {
@Override
public void stop() {
if (cancellable != null) {
cancellable.cancel();
cancellable = null;
}
if (reader != null) {
reader.close();
}
super.stop();
} } | public class class_name {
@Override
public void stop() {
if (cancellable != null) {
cancellable.cancel(); // depends on control dependency: [if], data = [none]
cancellable = null; // depends on control dependency: [if], data = [none]
}
if (reader != null) {
reader.close(); // depen... |
public class class_name {
@Override
public void visitMethodInsn(final int opcode, String owner, String name, String desc, final boolean isInterface) {
// replace NEW.<init>
if ((newInvokeReplacer != null) && (opcode == INVOKESPECIAL)) {
String exOwner = owner;
owner = newInvokeReplacer.getOwner();
name ... | public class class_name {
@Override
public void visitMethodInsn(final int opcode, String owner, String name, String desc, final boolean isInterface) {
// replace NEW.<init>
if ((newInvokeReplacer != null) && (opcode == INVOKESPECIAL)) {
String exOwner = owner;
owner = newInvokeReplacer.getOwner(); // depen... |
public class class_name {
public boolean setExperimentalTechnique(String techniqueStr) {
ExperimentalTechnique et = ExperimentalTechnique.getByName(techniqueStr);
if (et==null) return false;
if (techniques==null) {
techniques = EnumSet.of(et);
return true;
} else {
return techniques.add(et);
}
... | public class class_name {
public boolean setExperimentalTechnique(String techniqueStr) {
ExperimentalTechnique et = ExperimentalTechnique.getByName(techniqueStr);
if (et==null) return false;
if (techniques==null) {
techniques = EnumSet.of(et); // depends on control dependency: [if], data = [none]
return... |
public class class_name {
public static int count(String regex, CharSequence content) {
if (null == regex || null == content) {
return 0;
}
// Pattern pattern = Pattern.compile(regex, Pattern.DOTALL);
final Pattern pattern = PatternPool.get(regex, Pattern.DOTALL);
return count(pattern, content);
... | public class class_name {
public static int count(String regex, CharSequence content) {
if (null == regex || null == content) {
return 0;
// depends on control dependency: [if], data = [none]
}
// Pattern pattern = Pattern.compile(regex, Pattern.DOTALL);
final Pattern pattern = PatternPool.get(regex,... |
public class class_name {
private Map<IChemObject, Color> makeHighlightAtomMap(List<IAtomContainer> reactants,
List<IAtomContainer> products) {
Map<IChemObject, Color> colorMap = new HashMap<>();
Map<Integer, Color> mapToColor = new HashMap<>();
... | public class class_name {
private Map<IChemObject, Color> makeHighlightAtomMap(List<IAtomContainer> reactants,
List<IAtomContainer> products) {
Map<IChemObject, Color> colorMap = new HashMap<>();
Map<Integer, Color> mapToColor = new HashMap<>();
... |
public class class_name {
public final void setLang(final Languages pLang) {
this.lang = pLang;
if (this.itsId == null) {
this.itsId = new IdI18nSpecificInList();
}
this.itsId.setLang(this.lang);
} } | public class class_name {
public final void setLang(final Languages pLang) {
this.lang = pLang;
if (this.itsId == null) {
this.itsId = new IdI18nSpecificInList(); // depends on control dependency: [if], data = [none]
}
this.itsId.setLang(this.lang);
} } |
public class class_name {
public static Fetch createDefaultEntityFetch(EntityType entityType, String languageCode) {
boolean hasRefAttr = false;
Fetch fetch = new Fetch();
for (Attribute attr : entityType.getAtomicAttributes()) {
Fetch subFetch = createDefaultAttributeFetch(attr, languageCode);
... | public class class_name {
public static Fetch createDefaultEntityFetch(EntityType entityType, String languageCode) {
boolean hasRefAttr = false;
Fetch fetch = new Fetch();
for (Attribute attr : entityType.getAtomicAttributes()) {
Fetch subFetch = createDefaultAttributeFetch(attr, languageCode);
... |
public class class_name {
public void marshall(ListPipelinesRequest listPipelinesRequest, ProtocolMarshaller protocolMarshaller) {
if (listPipelinesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(ListPipelinesRequest listPipelinesRequest, ProtocolMarshaller protocolMarshaller) {
if (listPipelinesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
public static int getDefaultPageSize() {
synchronized (sLock) {
if (sDefaultPageSize == 0) {
try {
Class clazz = Class.forName("android.os.StatFs");
Method m = clazz.getMethod("getBlockSize");
Obje... | public class class_name {
public static int getDefaultPageSize() {
synchronized (sLock) {
if (sDefaultPageSize == 0) {
try {
Class clazz = Class.forName("android.os.StatFs");
Method m = clazz.getMethod("getBlockSize");
Obje... |
public class class_name {
void decodeContentType(String rawLine) {
int slash = rawLine.indexOf('/');
if (slash == -1) {
// if (DEBUG) getLogger().debug("decoding ... no slash found");
return;
} else {
primaryType = rawLine.substring(0, slash).trim();
... | public class class_name {
void decodeContentType(String rawLine) {
int slash = rawLine.indexOf('/');
if (slash == -1) {
// if (DEBUG) getLogger().debug("decoding ... no slash found");
return;
// depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
public String eval(String expr) {
String result = "undefined";
if (expr == null) {
return result;
}
ContextData contextData = currentContextData();
if (contextData == null || frameIndex >= contextData.frameCount()) {
return resul... | public class class_name {
public String eval(String expr) {
String result = "undefined";
if (expr == null) {
return result; // depends on control dependency: [if], data = [none]
}
ContextData contextData = currentContextData();
if (contextData == null || frameIndex >... |
public class class_name {
public void setFooterDivider(Drawable drawable) {
mFooterDivider = drawable;
if (drawable != null) {
mFooterDividerHeight = drawable.getIntrinsicHeight();
} else {
mFooterDividerHeight = 0;
}
mContentView.setWillNotDraw(drawable ... | public class class_name {
public void setFooterDivider(Drawable drawable) {
mFooterDivider = drawable;
if (drawable != null) {
mFooterDividerHeight = drawable.getIntrinsicHeight(); // depends on control dependency: [if], data = [none]
} else {
mFooterDividerHeight = 0; /... |
public class class_name {
private void pushQueues(
final Collection<AbstractHtml5SharedObject> sharedObjects,
final boolean listenerInvoked) {
if (listenerInvoked) {
for (final AbstractHtml5SharedObject sharedObject : sharedObjects) {
final PushQueue pushQueu... | public class class_name {
private void pushQueues(
final Collection<AbstractHtml5SharedObject> sharedObjects,
final boolean listenerInvoked) {
if (listenerInvoked) {
for (final AbstractHtml5SharedObject sharedObject : sharedObjects) {
final PushQueue pushQueu... |
public class class_name {
public static int hashSearch(final Memory mem, final int lgArrLongs, final long hash,
final int memOffsetBytes) {
final int arrayMask = (1 << lgArrLongs) - 1;
final int stride = getStride(hash, lgArrLongs);
int curProbe = (int) (hash & arrayMask);
final int loopIndex = c... | public class class_name {
public static int hashSearch(final Memory mem, final int lgArrLongs, final long hash,
final int memOffsetBytes) {
final int arrayMask = (1 << lgArrLongs) - 1;
final int stride = getStride(hash, lgArrLongs);
int curProbe = (int) (hash & arrayMask);
final int loopIndex = c... |
public class class_name {
public static MatrixStatistics extractStatistics(
File inputMatrixFile,
Format format,
boolean countRowOccurrances,
boolean countColumnOccurrances) {
// Initialize the statistics.
int numColumns = 0;
int numRows = 0;
... | public class class_name {
public static MatrixStatistics extractStatistics(
File inputMatrixFile,
Format format,
boolean countRowOccurrances,
boolean countColumnOccurrances) {
// Initialize the statistics.
int numColumns = 0;
int numRows = 0;
... |
public class class_name {
public Packet putShort(int s, ByteOrder order) {
var buffer = HEAP_BUFFER_POOL.take(Short.BYTES);
var value = (short) s;
var array = buffer.putShort(order == ByteOrder.LITTLE_ENDIAN ? Short.reverseBytes(value) : value).array();
try {
return... | public class class_name {
public Packet putShort(int s, ByteOrder order) {
var buffer = HEAP_BUFFER_POOL.take(Short.BYTES);
var value = (short) s;
var array = buffer.putShort(order == ByteOrder.LITTLE_ENDIAN ? Short.reverseBytes(value) : value).array();
try {
return... |
public class class_name {
static String pullFontPathFromTextAppearance(final Context context, AttributeSet attrs, int[] attributeId) {
if (attributeId == null || attrs == null) {
return null;
}
int textAppearanceId = -1;
final TypedArray typedArrayAttr = context.obtainStyle... | public class class_name {
static String pullFontPathFromTextAppearance(final Context context, AttributeSet attrs, int[] attributeId) {
if (attributeId == null || attrs == null) {
return null; // depends on control dependency: [if], data = [none]
}
int textAppearanceId = -1;
... |
public class class_name {
public void removeObjectListeners(Class<?> objectClass, long objectId) {
if (objectClass == null) {
return;
}
synchronized (objectListeners) {
Map<Long, Map<Class<? extends ObjectAttachableListener>,
Map<ObjectAttachableListe... | public class class_name {
public void removeObjectListeners(Class<?> objectClass, long objectId) {
if (objectClass == null) {
return; // depends on control dependency: [if], data = [none]
}
synchronized (objectListeners) {
Map<Long, Map<Class<? extends ObjectAttachableLi... |
public class class_name {
public static <T> ApiFuture<T> createApiFuture(ValueSourceFuture<T> valueSourceFuture) {
if (valueSourceFuture instanceof ApiFutureBackedValueSourceFuture) {
return ((ApiFutureBackedValueSourceFuture<T>) valueSourceFuture).getWrappedFuture();
} else {
r... | public class class_name {
public static <T> ApiFuture<T> createApiFuture(ValueSourceFuture<T> valueSourceFuture) {
if (valueSourceFuture instanceof ApiFutureBackedValueSourceFuture) {
return ((ApiFutureBackedValueSourceFuture<T>) valueSourceFuture).getWrappedFuture(); // depends on control dependen... |
public class class_name {
static public VoltXMLDiff computeDiff(VoltXMLElement before, VoltXMLElement after)
{
// Top level call needs both names to match (I think this makes sense)
if (!before.getUniqueName().equals(after.getUniqueName())) {
// not sure this is best behavior, ponder as... | public class class_name {
static public VoltXMLDiff computeDiff(VoltXMLElement before, VoltXMLElement after)
{
// Top level call needs both names to match (I think this makes sense)
if (!before.getUniqueName().equals(after.getUniqueName())) {
// not sure this is best behavior, ponder as... |
public class class_name {
final void setFieldsNormalized(int fieldMask) {
if (fieldMask != ALL_FIELDS) {
for (int i = 0; i < fields.length; i++) {
if ((fieldMask & 1) == 0) {
stamp[i] = fields[i] = 0; // UNSET == 0
isSet[i] = false;
... | public class class_name {
final void setFieldsNormalized(int fieldMask) {
if (fieldMask != ALL_FIELDS) {
for (int i = 0; i < fields.length; i++) {
if ((fieldMask & 1) == 0) {
stamp[i] = fields[i] = 0; // UNSET == 0 // depends on control dependency: [if], data = [... |
public class class_name {
public boolean match(String text, final String pattern) {
// Create the cards by splitting using a RegEx. If more speed
// is desired, a simpler character based splitting can be done.
final String[] cards = REGEX_STAR.split(pattern);
final int numCards = cards.length;
// Iterate ov... | public class class_name {
public boolean match(String text, final String pattern) {
// Create the cards by splitting using a RegEx. If more speed
// is desired, a simpler character based splitting can be done.
final String[] cards = REGEX_STAR.split(pattern);
final int numCards = cards.length;
// Iterate ov... |
public class class_name {
public long set(long instant, int year) {
FieldUtils.verifyValueBounds(this, year, 1, getMaximumValue());
if (iChronology.getYear(instant) <= 0) {
year = 1 - year;
}
return super.set(instant, year);
} } | public class class_name {
public long set(long instant, int year) {
FieldUtils.verifyValueBounds(this, year, 1, getMaximumValue());
if (iChronology.getYear(instant) <= 0) {
year = 1 - year; // depends on control dependency: [if], data = [none]
}
return super.set(instant, yea... |
public class class_name {
public void resolveType() {
if (getTypeStyle() == null) {
setTypeStyle("");
}
final String fieldType = getFieldType();
String generics = "";
if (fieldType.contains("<")) {
generics = fieldType.substring(fieldType.indexOf('<'));
... | public class class_name {
public void resolveType() {
if (getTypeStyle() == null) {
setTypeStyle(""); // depends on control dependency: [if], data = [none]
}
final String fieldType = getFieldType();
String generics = "";
if (fieldType.contains("<")) {
gen... |
public class class_name {
public int replace(Object dependency, ValueSet valueSet) {
int returnCode = HTODDynacache.NO_EXCEPTION;
dependencyNotUpdatedTable.remove(dependency);
if (valueSet != null && valueSet.size() > this.delayOffloadEntriesLimit) {
dependencyToEntryTable.remove(de... | public class class_name {
public int replace(Object dependency, ValueSet valueSet) {
int returnCode = HTODDynacache.NO_EXCEPTION;
dependencyNotUpdatedTable.remove(dependency);
if (valueSet != null && valueSet.size() > this.delayOffloadEntriesLimit) {
dependencyToEntryTable.remove(de... |
public class class_name {
public void detachFromParent() {
if (parentNode == null) {
return;
}
if (parentNode.childNodes != null) {
parentNode.childNodes.remove(siblingIndex);
parentNode.reindexChildren();
}
parentNode = null;
} } | public class class_name {
public void detachFromParent() {
if (parentNode == null) {
return; // depends on control dependency: [if], data = [none]
}
if (parentNode.childNodes != null) {
parentNode.childNodes.remove(siblingIndex); // depends on control dependency: [if], data = [none]
parentNode.reindexCh... |
public class class_name {
@VisibleForTesting
@Override
public void insertMetrics(Collection<IMetric> metrics,
Granularity granularity) throws IOException {
Timer.Context ctx = Instrumentation.getWriteTimerContext(
CassandraModel.getPreaggregatedColumnFamil... | public class class_name {
@VisibleForTesting
@Override
public void insertMetrics(Collection<IMetric> metrics,
Granularity granularity) throws IOException {
Timer.Context ctx = Instrumentation.getWriteTimerContext(
CassandraModel.getPreaggregatedColumnFamil... |
public class class_name {
private static Object parseData(String str) {
if (str.equals("true")) {
return true;
} else if (str.equals("false")) {
return false;
} else if (Character.isDigit(str.charAt(0))) {
// number
return Integer.parseInt(str);
} else {
return str;
}
} } | public class class_name {
private static Object parseData(String str) {
if (str.equals("true")) {
return true; // depends on control dependency: [if], data = [none]
} else if (str.equals("false")) {
return false; // depends on control dependency: [if], data = [none]
} else if (Character.isDigit(str.charAt(... |
public class class_name {
private void addPostParams(final Request request) {
if (assetVersions != null) {
for (String prop : assetVersions) {
request.addPostParam("AssetVersions", prop);
}
}
if (functionVersions != null) {
for (String prop :... | public class class_name {
private void addPostParams(final Request request) {
if (assetVersions != null) {
for (String prop : assetVersions) {
request.addPostParam("AssetVersions", prop); // depends on control dependency: [for], data = [prop]
}
}
if (fun... |
public class class_name {
private static void addAclHeaders(Request<? extends AmazonWebServiceRequest> request, AccessControlList acl) {
List<Grant> grants = acl.getGrantsAsList();
Map<Permission, Collection<Grantee>> grantsByPermission = new HashMap<Permission, Collection<Grantee>>();
for ( Gr... | public class class_name {
private static void addAclHeaders(Request<? extends AmazonWebServiceRequest> request, AccessControlList acl) {
List<Grant> grants = acl.getGrantsAsList();
Map<Permission, Collection<Grantee>> grantsByPermission = new HashMap<Permission, Collection<Grantee>>();
for ( Gr... |
public class class_name {
private AuditUtilityTask getTask(String taskName) {
AuditUtilityTask task = null;
for (AuditUtilityTask availTask : tasks) {
if (availTask.getTaskName().equals(taskName)) {
task = availTask;
}
}
return task;
} } | public class class_name {
private AuditUtilityTask getTask(String taskName) {
AuditUtilityTask task = null;
for (AuditUtilityTask availTask : tasks) {
if (availTask.getTaskName().equals(taskName)) {
task = availTask; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static ObjectFields convertGenObjectFieldsToObjectFields(org.fcrepo.server.types.gen.ObjectFields source) {
if (source == null) {
return null;
}
ObjectFields result = new ObjectFields();
result.setPid(source.getPid() != null ? source.getPid()... | public class class_name {
public static ObjectFields convertGenObjectFieldsToObjectFields(org.fcrepo.server.types.gen.ObjectFields source) {
if (source == null) {
return null; // depends on control dependency: [if], data = [none]
}
ObjectFields result = new ObjectFields();
r... |
public class class_name {
public byte[] getNextByte(final int pSize, final boolean pShift) {
byte[] tab = new byte[(int) Math.ceil(pSize / BYTE_SIZE_F)];
if (currentBitIndex % BYTE_SIZE != 0) {
int index = 0;
int max = currentBitIndex + pSize;
while (currentBitIndex < max) {
int mod = currentB... | public class class_name {
public byte[] getNextByte(final int pSize, final boolean pShift) {
byte[] tab = new byte[(int) Math.ceil(pSize / BYTE_SIZE_F)];
if (currentBitIndex % BYTE_SIZE != 0) {
int index = 0;
int max = currentBitIndex + pSize;
while (currentBitIndex < max) {
int mod = currentB... |
public class class_name {
private void infoLog(String format, String addr) {
if (logger.isInfoEnabled()) {
if (StringUtils.isNotEmpty(addr)) {
logger.info(format, addr);
} else {
logger.info(format, "UNKNOWN-ADDR");
}
}
} } | public class class_name {
private void infoLog(String format, String addr) {
if (logger.isInfoEnabled()) {
if (StringUtils.isNotEmpty(addr)) {
logger.info(format, addr); // depends on control dependency: [if], data = [none]
} else {
logger.info(format, "U... |
public class class_name {
public ManagementEdge getForwardEdge(final int index) {
if (index < this.forwardEdges.size()) {
return this.forwardEdges.get(index);
}
return null;
} } | public class class_name {
public ManagementEdge getForwardEdge(final int index) {
if (index < this.forwardEdges.size()) {
return this.forwardEdges.get(index); // depends on control dependency: [if], data = [(index]
}
return null;
} } |
public class class_name {
public Matrix transpose ()
{
final float tv[][] = new float [m_nCols] [m_nRows]; // transposed values
// Set the values of the transpose.
for (int r = 0; r < m_nRows; ++r)
{
for (int c = 0; c < m_nCols; ++c)
{
tv[c][r] = m_aValues[r][c];
}
}
... | public class class_name {
public Matrix transpose ()
{
final float tv[][] = new float [m_nCols] [m_nRows]; // transposed values
// Set the values of the transpose.
for (int r = 0; r < m_nRows; ++r)
{
for (int c = 0; c < m_nCols; ++c)
{
tv[c][r] = m_aValues[r][c]; // depends on co... |
public class class_name {
public GetTransitGatewayAttachmentPropagationsResult withTransitGatewayAttachmentPropagations(
TransitGatewayAttachmentPropagation... transitGatewayAttachmentPropagations) {
if (this.transitGatewayAttachmentPropagations == null) {
setTransitGatewayAttachmentPro... | public class class_name {
public GetTransitGatewayAttachmentPropagationsResult withTransitGatewayAttachmentPropagations(
TransitGatewayAttachmentPropagation... transitGatewayAttachmentPropagations) {
if (this.transitGatewayAttachmentPropagations == null) {
setTransitGatewayAttachmentPro... |
public class class_name {
private synchronized void updateBytesWrittenMeter() {
if (this.bytesWrittenMeter.isPresent()) {
try {
this.bytesWrittenMeter.get().mark(bytesWritten() - this.bytesWrittenMeter.get().getCount());
} catch (IOException e) {
log.error("Cannot get bytesWritten for D... | public class class_name {
private synchronized void updateBytesWrittenMeter() {
if (this.bytesWrittenMeter.isPresent()) {
try {
this.bytesWrittenMeter.get().mark(bytesWritten() - this.bytesWrittenMeter.get().getCount()); // depends on control dependency: [try], data = [none]
} catch (IOExceptio... |
public class class_name {
@Override
public Map<String, String> getUserInfo(PortletRequest request, PortletWindow portletWindow)
throws PortletContainerException {
Map<String, String> mergedInfo = new HashMap<String, String>();
// iterate over all supplied user info services and add th... | public class class_name {
@Override
public Map<String, String> getUserInfo(PortletRequest request, PortletWindow portletWindow)
throws PortletContainerException {
Map<String, String> mergedInfo = new HashMap<String, String>();
// iterate over all supplied user info services and add th... |
public class class_name {
public void setValue(String value, String type) {
checkFrozen();
setAutoCreatePropertyDefinition(true);
if (TYPE_SHARED.equalsIgnoreCase(type)) {
// set the provided value as shared (resource) value
setResourceValue(value);
} else {
... | public class class_name {
public void setValue(String value, String type) {
checkFrozen();
setAutoCreatePropertyDefinition(true);
if (TYPE_SHARED.equalsIgnoreCase(type)) {
// set the provided value as shared (resource) value
setResourceValue(value); // depends on contro... |
public class class_name {
private static String convertDoubleElementToString(Double value) {
String valueToPrint = String.valueOf(value);
if (valueToPrint.length() > ROUNDING_LENGTH) {
int lengthBeforeDot = (int) Math.ceil(Math.log10(Math.abs(value)));
BigDecimal bigDecimal = ne... | public class class_name {
private static String convertDoubleElementToString(Double value) {
String valueToPrint = String.valueOf(value);
if (valueToPrint.length() > ROUNDING_LENGTH) {
int lengthBeforeDot = (int) Math.ceil(Math.log10(Math.abs(value)));
BigDecimal bigDecimal = ne... |
public class class_name {
void add(final Span span) {
if (tags != null) {
throw new AssertionError("The set of tags has already been computed"
+ ", you can't add more Spans to " + this);
}
// normalize timestamps to milliseconds for proper comparison
final long sta... | public class class_name {
void add(final Span span) {
if (tags != null) {
throw new AssertionError("The set of tags has already been computed"
+ ", you can't add more Spans to " + this);
}
// normalize timestamps to milliseconds for proper comparison
final long sta... |
public class class_name {
private static void find(List<File> files, File path, Boolean recursive) {
if (path.isDirectory()) {
// iterate over files
for (File file : path.listFiles()) {
if (recursive || !file.isDirectory()) {
find(files, file, recursi... | public class class_name {
private static void find(List<File> files, File path, Boolean recursive) {
if (path.isDirectory()) {
// iterate over files
for (File file : path.listFiles()) {
if (recursive || !file.isDirectory()) {
find(files, file, recursi... |
public class class_name {
public synchronized void flush()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass,
"flush");
// Capture the ManagedObjects to write and delete.
... | public class class_name {
public synchronized void flush()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass,
"flush");
// Capture the ManagedObjects to write and delete.
... |
public class class_name {
public void write(int b) {
if (ivSuppress == true) {
return;
}
byte[] data = new byte[1];
data[0] = (byte) b;
// cache data now.
{
LogRecord se = cacheTraceData(data);
if (se != null) {
dispat... | public class class_name {
public void write(int b) {
if (ivSuppress == true) {
return; // depends on control dependency: [if], data = [none]
}
byte[] data = new byte[1];
data[0] = (byte) b;
// cache data now.
{
LogRecord se = cacheTraceData(data)... |
public class class_name {
public void deselect(Item item, int position, @Nullable Iterator<Integer> entries) {
item.withSetSelected(false);
if (entries != null) {
entries.remove();
}
if (position >= 0) {
mFastAdapter.notifyItemChanged(position);
}
... | public class class_name {
public void deselect(Item item, int position, @Nullable Iterator<Integer> entries) {
item.withSetSelected(false);
if (entries != null) {
entries.remove(); // depends on control dependency: [if], data = [none]
}
if (position >= 0) {
mFast... |
public class class_name {
public Writer write(Writer writer) throws JSONException {
try {
boolean notFirst = false;
writer.write('{');
for(Iterator it = myHashMap.entrySet().iterator(); it.hasNext();) {
Map.Entry entry = (Entry)it.next();
if (... | public class class_name {
public Writer write(Writer writer) throws JSONException {
try {
boolean notFirst = false;
writer.write('{');
for(Iterator it = myHashMap.entrySet().iterator(); it.hasNext();) {
Map.Entry entry = (Entry)it.next();
if (... |
public class class_name {
public void setTitles(Collection<String> titles) {
if (null == this.titles) {
this.titles = new ArrayList<>();
}
this.titles.clear();
this.titles.addAll(titles);
} } | public class class_name {
public void setTitles(Collection<String> titles) {
if (null == this.titles) {
this.titles = new ArrayList<>(); // depends on control dependency: [if], data = [none]
}
this.titles.clear();
this.titles.addAll(titles);
} } |
public class class_name {
private void buildPluralMethod(
TypeSpec.Builder type, String pluralType, Map<String, PluralData> pluralMap, Map<String, FieldSpec> fieldMap) {
MethodSpec.Builder method = MethodSpec.methodBuilder("eval" + pluralType)
.addModifiers(PUBLIC)
.addParameter(String.class... | public class class_name {
private void buildPluralMethod(
TypeSpec.Builder type, String pluralType, Map<String, PluralData> pluralMap, Map<String, FieldSpec> fieldMap) {
MethodSpec.Builder method = MethodSpec.methodBuilder("eval" + pluralType)
.addModifiers(PUBLIC)
.addParameter(String.class... |
public class class_name {
Index flip(int index) {
if ((index < 0) || (index >= rank))
throw new IllegalArgumentException();
Index i = (Index) this.clone();
if (shape[index] >= 0) { // !vlen case
i.offset += stride[index] * (shape[index] - 1);
i.stride[index] = -stride[index];
... | public class class_name {
Index flip(int index) {
if ((index < 0) || (index >= rank))
throw new IllegalArgumentException();
Index i = (Index) this.clone();
if (shape[index] >= 0) { // !vlen case
i.offset += stride[index] * (shape[index] - 1);
// depends on control dependency: [if], data... |
public class class_name {
private final void growToHold(final int length) {
if (length > stack.length) {
final int[] newStack = new int[Math.max(length, stack.length * 2)];
System.arraycopy(stack, 0, newStack, 0, stack.length);
stack = newStack;
}
} } | public class class_name {
private final void growToHold(final int length) {
if (length > stack.length) {
final int[] newStack = new int[Math.max(length, stack.length * 2)];
System.arraycopy(stack, 0, newStack, 0, stack.length); // depends on control dependency: [if], data = [stack.length)]
stack = newStack;... |
public class class_name {
@SuppressWarnings("unchecked")
public void execute() {
Utils.require(m_metricPaths != null && m_metricPaths.length != 0, "Metric ('m') parameter is required");
List<String> allfieldNames = new ArrayList<String>();
for (GroupSetEntry groupSetEntry : m_groupSet) {
for (G... | public class class_name {
@SuppressWarnings("unchecked")
public void execute() {
Utils.require(m_metricPaths != null && m_metricPaths.length != 0, "Metric ('m') parameter is required");
List<String> allfieldNames = new ArrayList<String>();
for (GroupSetEntry groupSetEntry : m_groupSet) {
for (G... |
public class class_name {
public void setActionTypes(java.util.Collection<ActionType> actionTypes) {
if (actionTypes == null) {
this.actionTypes = null;
return;
}
this.actionTypes = new java.util.ArrayList<ActionType>(actionTypes);
} } | public class class_name {
public void setActionTypes(java.util.Collection<ActionType> actionTypes) {
if (actionTypes == null) {
this.actionTypes = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected ByteBuffer allocateBuffer() {
if (_buffersToReuse != null && !_buffersToReuse.isEmpty()) {
ByteBuffer bb = _buffersToReuse.poll();
bb.rewind();
bb.limit(bb.capacity());
return bb;
}
ByteBuffer r = StaticBuffers.getInstance().byteBuffer(BUFFER_KEY, _bufferSize);
r... | public class class_name {
protected ByteBuffer allocateBuffer() {
if (_buffersToReuse != null && !_buffersToReuse.isEmpty()) {
ByteBuffer bb = _buffersToReuse.poll();
bb.rewind(); // depends on control dependency: [if], data = [none]
bb.limit(bb.capacity()); // depends on control dependency: [if], data = [n... |
public class class_name {
public static base_responses add(nitro_service client, vlan resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
vlan addresources[] = new vlan[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = ne... | public class class_name {
public static base_responses add(nitro_service client, vlan resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
vlan addresources[] = new vlan[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = ne... |
public class class_name {
private void close(final SocketChannel channel, final SelectionKey key) {
try {
channel.close();
} catch (Exception e) {
// already closed; ignore
}
try {
key.cancel();
} catch (Exception e) {
// already cancelled/closed; ignore
}
} } | public class class_name {
private void close(final SocketChannel channel, final SelectionKey key) {
try {
channel.close(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
// already closed; ignore
} // depends on control dependency: [catch], data = [none]
try ... |
public class class_name {
public void updateEntry(String sitePath) {
CmsClientSitemapEntry entry = getEntry(sitePath);
if ((entry != null) && (CmsSitemapTreeItem.getItemById(entry.getId()) != null)) {
getChildren(entry.getId(), CmsSitemapTreeItem.getItemById(entry.getId()).isOpen(), null);... | public class class_name {
public void updateEntry(String sitePath) {
CmsClientSitemapEntry entry = getEntry(sitePath);
if ((entry != null) && (CmsSitemapTreeItem.getItemById(entry.getId()) != null)) {
getChildren(entry.getId(), CmsSitemapTreeItem.getItemById(entry.getId()).isOpen(), null);... |
public class class_name {
private static void parseTarget(ArrayList<Shape> shapes,
JSONObject modelJSON,
Shape current) throws JSONException {
if (modelJSON.has("target")) {
JSONObject targetObject = modelJSON.getJSONObject("ta... | public class class_name {
private static void parseTarget(ArrayList<Shape> shapes,
JSONObject modelJSON,
Shape current) throws JSONException {
if (modelJSON.has("target")) {
JSONObject targetObject = modelJSON.getJSONObject("ta... |
public class class_name {
private void extractSubqueries(AbstractPlanNode node) throws Exception {
assert(node != null);
Collection<AbstractExpression> subexprs = node.findAllSubquerySubexpressions();
for (AbstractExpression nextexpr : subexprs) {
assert(nextexpr instanceof Abstrac... | public class class_name {
private void extractSubqueries(AbstractPlanNode node) throws Exception {
assert(node != null);
Collection<AbstractExpression> subexprs = node.findAllSubquerySubexpressions();
for (AbstractExpression nextexpr : subexprs) {
assert(nextexpr instanceof Abstrac... |
public class class_name {
public static List<String> extractNonExistingColumns(final Collection<String> expectedColumns,
final Collection<String> actualColumns) {
final List<String> columnsNotSpecifiedInExpectedDataSet = new ArrayList<String>();
for (String column : expectedColumns) {
... | public class class_name {
public static List<String> extractNonExistingColumns(final Collection<String> expectedColumns,
final Collection<String> actualColumns) {
final List<String> columnsNotSpecifiedInExpectedDataSet = new ArrayList<String>();
for (String column : expectedColumns) {
... |
public class class_name {
private static MultiLineString linearZInterpolation(MultiLineString multiLineString) {
int nbGeom = multiLineString.getNumGeometries();
LineString[] lines = new LineString[nbGeom];
for (int i = 0; i < nbGeom; i++) {
LineString subGeom = (LineString) multiLi... | public class class_name {
private static MultiLineString linearZInterpolation(MultiLineString multiLineString) {
int nbGeom = multiLineString.getNumGeometries();
LineString[] lines = new LineString[nbGeom];
for (int i = 0; i < nbGeom; i++) {
LineString subGeom = (LineString) multiLi... |
public class class_name {
private Enumeration<URL> getResources11g(ClassLoader classLoader, String configFileName) {
List<URL> newProps = new ArrayList<URL>();
if (classLoader.getClass().getSimpleName().equalsIgnoreCase("IdcClassLoader")) {
try {
Field field = classLoader.getClass().getField("m_z... | public class class_name {
private Enumeration<URL> getResources11g(ClassLoader classLoader, String configFileName) {
List<URL> newProps = new ArrayList<URL>();
if (classLoader.getClass().getSimpleName().equalsIgnoreCase("IdcClassLoader")) {
try {
Field field = classLoader.getClass().getField("m_z... |
public class class_name {
public void marshall(UpdateScriptRequest updateScriptRequest, ProtocolMarshaller protocolMarshaller) {
if (updateScriptRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(UpdateScriptRequest updateScriptRequest, ProtocolMarshaller protocolMarshaller) {
if (updateScriptRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
public void selectValue(String value) {
if (m_selectCells.get(value) == null) {
return;
}
updateOpener(value);
if (m_textMetricsPrefix != null) {
truncate(m_textMetricsPrefix, m_widgetWidth);
}
m_selectedValue = value;
... | public class class_name {
public void selectValue(String value) {
if (m_selectCells.get(value) == null) {
return; // depends on control dependency: [if], data = [none]
}
updateOpener(value);
if (m_textMetricsPrefix != null) {
truncate(m_textMetricsPrefix, m_wid... |
public class class_name {
public final String getLevelName(GridRecord gr) {
if (cust != null) {
String result = cust.getLevelNameShort( gr.getLevelType1());
if (result != null) return result;
}
String levelUnit = getLevelUnit(gr);
if (levelUnit != null) {
int level1 = (int) gr.getLe... | public class class_name {
public final String getLevelName(GridRecord gr) {
if (cust != null) {
String result = cust.getLevelNameShort( gr.getLevelType1());
if (result != null) return result;
}
String levelUnit = getLevelUnit(gr);
if (levelUnit != null) {
int level1 = (int) gr.getLe... |
public class class_name {
public static void sortIfNecessary(Object value) {
if (value instanceof Object[]) {
sort((Object[]) value);
}
else if (value instanceof List) {
sort((List<?>) value);
}
} } | public class class_name {
public static void sortIfNecessary(Object value) {
if (value instanceof Object[]) {
sort((Object[]) value); // depends on control dependency: [if], data = [none]
}
else if (value instanceof List) {
sort((List<?>) value); // depends on control dependency: [if], data = [none]
}
}... |
public class class_name {
public String getWifiMacAddress() {
WifiManager wifiMan = (WifiManager) context
.getSystemService(Context.WIFI_SERVICE);
if (wifiMan != null) {
WifiInfo wifiInf = wifiMan.getConnectionInfo();
return wifiInf.getMacAddress();
}
return "";
} } | public class class_name {
public String getWifiMacAddress() {
WifiManager wifiMan = (WifiManager) context
.getSystemService(Context.WIFI_SERVICE);
if (wifiMan != null) {
WifiInfo wifiInf = wifiMan.getConnectionInfo();
return wifiInf.getMacAddress(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void onSessionClose(){
synchronized(pendingQueue){
while(! pendingQueue.isEmpty()){
Packet p = pendingQueue.remove();
onLossPacket(p);
}
}
} } | public class class_name {
private void onSessionClose(){
synchronized(pendingQueue){
while(! pendingQueue.isEmpty()){
Packet p = pendingQueue.remove();
onLossPacket(p); // depends on control dependency: [while], data = [none]
}
}
} } |
public class class_name {
BeanGen parse() {
BeanData data = new BeanData();
beanDefIndex = parseBeanDefinition();
data.getCurrentImports().addAll(parseImports(beanDefIndex));
data.setImportInsertLocation(parseImportLocation(beanDefIndex));
if (beanDefIndex < 0) {
ret... | public class class_name {
BeanGen parse() {
BeanData data = new BeanData();
beanDefIndex = parseBeanDefinition();
data.getCurrentImports().addAll(parseImports(beanDefIndex));
data.setImportInsertLocation(parseImportLocation(beanDefIndex));
if (beanDefIndex < 0) {
ret... |
public class class_name {
private Expr parseMultiplicativeExpression(EnclosingScope scope, boolean terminated) {
int start = index;
Expr lhs = parseAccessExpression(scope, terminated);
Token lookahead = tryAndMatch(terminated, Star, RightSlash, Percent);
if (lookahead != null) {
Expr rhs = parseAccessExpre... | public class class_name {
private Expr parseMultiplicativeExpression(EnclosingScope scope, boolean terminated) {
int start = index;
Expr lhs = parseAccessExpression(scope, terminated);
Token lookahead = tryAndMatch(terminated, Star, RightSlash, Percent);
if (lookahead != null) {
Expr rhs = parseAccessExpre... |
public class class_name {
private double prediction(Instance inst)
{
if(this.initialisePerceptron){
return 0;
}else{
double[] normalizedInstance = normalizedInstance(inst);
double normalizedPrediction = prediction(normalizedInstance);
return denormalizedPrediction(normalizedPrediction);
}
... | public class class_name {
private double prediction(Instance inst)
{
if(this.initialisePerceptron){
return 0;
// depends on control dependency: [if], data = [none]
}else{
double[] normalizedInstance = normalizedInstance(inst);
double normalizedPrediction = prediction(normalizedInstance);
retur... |
public class class_name {
public static String collectChar(String string, CharToCharFunction function)
{
int size = string.length();
StringBuilder builder = new StringBuilder(size);
for (int i = 0; i < size; i++)
{
builder.append(function.valueOf(string.charAt(i)));
... | public class class_name {
public static String collectChar(String string, CharToCharFunction function)
{
int size = string.length();
StringBuilder builder = new StringBuilder(size);
for (int i = 0; i < size; i++)
{
builder.append(function.valueOf(string.charAt(i))); // d... |
public class class_name {
public static DatatypeFactory getDTF() {
DatatypeFactory dtf = threadDTF.get();
if (dtf == null) {
try {
dtf = DatatypeFactory.newInstance();
} catch (Exception e) {
throw wrap(e);
}
threadDTF.set(... | public class class_name {
public static DatatypeFactory getDTF() {
DatatypeFactory dtf = threadDTF.get();
if (dtf == null) {
try {
dtf = DatatypeFactory.newInstance(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
... |
public class class_name {
@Override
public Map<String, Object> getBestParameters(Map<String, Object> guess) {
// Create the objective function for the solver
class GARCHMaxLikelihoodFunction implements MultivariateFunction, Serializable {
private static final long serialVersionUID = 7072187082052755854L;
... | public class class_name {
@Override
public Map<String, Object> getBestParameters(Map<String, Object> guess) {
// Create the objective function for the solver
class GARCHMaxLikelihoodFunction implements MultivariateFunction, Serializable {
private static final long serialVersionUID = 7072187082052755854L;
... |
public class class_name {
public static void validate(Object parameter) {
// Validation of top level payload is done outside
if (parameter == null) {
return;
}
Class parameterType = parameter.getClass();
TypeToken<?> parameterToken = TypeToken.of(parameterType);
... | public class class_name {
public static void validate(Object parameter) {
// Validation of top level payload is done outside
if (parameter == null) {
return; // depends on control dependency: [if], data = [none]
}
Class parameterType = parameter.getClass();
TypeToke... |
public class class_name {
public static String add( String... strings ) {
int length = 0;
for ( String str : strings ) {
if ( str == null ) {
continue;
}
length += str.length();
}
CharBuf builder = CharBuf.createExact( length );
... | public class class_name {
public static String add( String... strings ) {
int length = 0;
for ( String str : strings ) {
if ( str == null ) {
continue;
}
length += str.length(); // depends on control dependency: [for], data = [str]
}
C... |
public class class_name {
public SIMPRequestedValueMessageInfo getRequestedValueMessageInfo() throws SIMPRuntimeOperationFailedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getRequestedValueMessageInfo");
SIMPRequestedValueMessageInfo requestedValueMessa... | public class class_name {
public SIMPRequestedValueMessageInfo getRequestedValueMessageInfo() throws SIMPRuntimeOperationFailedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getRequestedValueMessageInfo");
SIMPRequestedValueMessageInfo requestedValueMessa... |
public class class_name {
protected void appendArgOrValue(DatabaseType databaseType, FieldType fieldType, StringBuilder sb,
List<ArgumentHolder> argList, Object argOrValue) throws SQLException {
boolean appendSpace = true;
if (argOrValue == null) {
throw new SQLException("argument for '" + fieldType.getField... | public class class_name {
protected void appendArgOrValue(DatabaseType databaseType, FieldType fieldType, StringBuilder sb,
List<ArgumentHolder> argList, Object argOrValue) throws SQLException {
boolean appendSpace = true;
if (argOrValue == null) {
throw new SQLException("argument for '" + fieldType.getField... |
public class class_name {
boolean isIdenticalTree(MathNode aTree, MathNode bTree) {
// first check if they have the same number of children
if (aTree.equals(bTree) && aTree.getChildren().size() == bTree.getChildren().size()) {
if (aTree.isOrderSensitive()) {
// all children ... | public class class_name {
boolean isIdenticalTree(MathNode aTree, MathNode bTree) {
// first check if they have the same number of children
if (aTree.equals(bTree) && aTree.getChildren().size() == bTree.getChildren().size()) {
if (aTree.isOrderSensitive()) {
// all children ... |
public class class_name {
private Event createEvent(Endpoint endpoint, EventTypeEnum type) {
Event event = new Event();
MessageInfo messageInfo = new MessageInfo();
Originator originator = new Originator();
event.setMessageInfo(messageInfo);
event.setOriginator(originator);
... | public class class_name {
private Event createEvent(Endpoint endpoint, EventTypeEnum type) {
Event event = new Event();
MessageInfo messageInfo = new MessageInfo();
Originator originator = new Originator();
event.setMessageInfo(messageInfo);
event.setOriginator(originator);
... |
public class class_name {
public void updateContractProject(String projectName, Path rootStubsFolder) {
File clonedRepo = this.gitContractsRepo
.clonedRepo(this.stubRunnerOptions.stubRepositoryRoot);
GitStubDownloaderProperties properties = new GitStubDownloaderProperties(
this.stubRunnerOptions.stubReposi... | public class class_name {
public void updateContractProject(String projectName, Path rootStubsFolder) {
File clonedRepo = this.gitContractsRepo
.clonedRepo(this.stubRunnerOptions.stubRepositoryRoot);
GitStubDownloaderProperties properties = new GitStubDownloaderProperties(
this.stubRunnerOptions.stubReposi... |
public class class_name {
public final Reliability getReliability() {
// If the transient is not set, get the int value from the message then
// obtain the corresponding Reliability instance and cache it.
if (cachedReliability == null) {
Byte rType = (Byte) getHdr2().getField(JsHdr2... | public class class_name {
public final Reliability getReliability() {
// If the transient is not set, get the int value from the message then
// obtain the corresponding Reliability instance and cache it.
if (cachedReliability == null) {
Byte rType = (Byte) getHdr2().getField(JsHdr2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.