code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public com.google.protobuf.ByteString
getJwtAudienceBytes() {
java.lang.Object ref = "";
if (authenticationCase_ == 7) {
ref = authentication_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteStri... | public class class_name {
public com.google.protobuf.ByteString
getJwtAudienceBytes() {
java.lang.Object ref = "";
if (authenticationCase_ == 7) {
ref = authentication_; // depends on control dependency: [if], data = [none]
}
if (ref instanceof java.lang.String) {
com.google.protobuf.... |
public class class_name {
public static String wrap(final String str, int wrapLength, String newLineStr, final boolean wrapLongWords, String wrapOn) {
if (str == null) {
return null;
}
if (newLineStr == null) {
newLineStr = "\n";
}
if (wrapLength < 1) {
... | public class class_name {
public static String wrap(final String str, int wrapLength, String newLineStr, final boolean wrapLongWords, String wrapOn) {
if (str == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (newLineStr == null) {
newLin... |
public class class_name {
private AuthConfig createStandardAuthConfig(boolean isPush, Map authConfigMap, Settings settings, String user, String registry)
throws MojoExecutionException {
AuthConfig ret;
// Check first for specific configuration based on direction (pull or push), then for a ... | public class class_name {
private AuthConfig createStandardAuthConfig(boolean isPush, Map authConfigMap, Settings settings, String user, String registry)
throws MojoExecutionException {
AuthConfig ret;
// Check first for specific configuration based on direction (pull or push), then for a ... |
public class class_name {
public static int asInteger(Object value) {
if (value instanceof Number) {
return ((Number) value).intValue();
} else if (value instanceof Numeric) {
return ((Numeric) value).asInteger();
} else if (value instanceof Boolean) {
return... | public class class_name {
public static int asInteger(Object value) {
if (value instanceof Number) {
return ((Number) value).intValue(); // depends on control dependency: [if], data = [none]
} else if (value instanceof Numeric) {
return ((Numeric) value).asInteger(); // depends ... |
public class class_name {
public static List<IndexDefinition> get()
throws EFapsException
{
final List<IndexDefinition> ret = new ArrayList<>();
final QueryBuilder queryBldr = new QueryBuilder(CIAdminIndex.IndexDefinition);
final MultiPrintQuery multi = queryBldr.getPrint();
... | public class class_name {
public static List<IndexDefinition> get()
throws EFapsException
{
final List<IndexDefinition> ret = new ArrayList<>();
final QueryBuilder queryBldr = new QueryBuilder(CIAdminIndex.IndexDefinition);
final MultiPrintQuery multi = queryBldr.getPrint();
... |
public class class_name {
public double calculateDistance2(DoubleSolution individual, double[] lambda) {
double distance;
double distanceSum = 0.0;
double[] vecInd = new double[problem.getNumberOfObjectives()];
double[] normalizedObj = new double[problem.getNumberOfObjectives()];
for (int i = 0;... | public class class_name {
public double calculateDistance2(DoubleSolution individual, double[] lambda) {
double distance;
double distanceSum = 0.0;
double[] vecInd = new double[problem.getNumberOfObjectives()];
double[] normalizedObj = new double[problem.getNumberOfObjectives()];
for (int i = 0;... |
public class class_name {
public final void parse( String[] argv, Locale locale )
throws IllegalOptionValueException, UnknownOptionException {
// It would be best if this method only threw OptionException, but for
// backwards compatibility with old user code we throw the two
// except... | public class class_name {
public final void parse( String[] argv, Locale locale )
throws IllegalOptionValueException, UnknownOptionException {
// It would be best if this method only threw OptionException, but for
// backwards compatibility with old user code we throw the two
// except... |
public class class_name {
public void marshall(UpdateSegmentRequest updateSegmentRequest, ProtocolMarshaller protocolMarshaller) {
if (updateSegmentRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(UpdateSegmentRequest updateSegmentRequest, ProtocolMarshaller protocolMarshaller) {
if (updateSegmentRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
protected static void batchWrite(Map<String, List<WriteRequest>> items, int backoff) {
if (items == null || items.isEmpty()) {
return;
}
try {
BatchWriteItemResult result = getClient().batchWriteItem(new BatchWriteItemRequest().
withReturnConsumedCapacity(ReturnConsumedCapaci... | public class class_name {
protected static void batchWrite(Map<String, List<WriteRequest>> items, int backoff) {
if (items == null || items.isEmpty()) {
return; // depends on control dependency: [if], data = [none]
}
try {
BatchWriteItemResult result = getClient().batchWriteItem(new BatchWriteItemRequest()... |
public class class_name {
@FFDCIgnore({IOException.class})
public static InputStream getResourceAsStream(String resourceName, Class<?> callingClass) {
URL url = getResource(resourceName, callingClass);
try {
return (url != null) ? url.openStream() : null;
} catch (IOException e... | public class class_name {
@FFDCIgnore({IOException.class})
public static InputStream getResourceAsStream(String resourceName, Class<?> callingClass) {
URL url = getResource(resourceName, callingClass);
try {
return (url != null) ? url.openStream() : null; // depends on control dependen... |
public class class_name {
public static <T> Publisher<T> createEmptyPublisher( Supplier<CompletionStage<Void>> supplier )
{
return Mono.create( sink -> supplier.get().whenComplete( ( ignore, completionError ) -> {
Throwable error = Futures.completionExceptionCause( completionError );
... | public class class_name {
public static <T> Publisher<T> createEmptyPublisher( Supplier<CompletionStage<Void>> supplier )
{
return Mono.create( sink -> supplier.get().whenComplete( ( ignore, completionError ) -> {
Throwable error = Futures.completionExceptionCause( completionError );
... |
public class class_name {
private void clearLock() {
Object previousValue = noCacheStoreCache.remove(keyOfLock);
if (previousValue!=null && trace) {
log.tracef("Lock removed for index: %s", indexName);
}
} } | public class class_name {
private void clearLock() {
Object previousValue = noCacheStoreCache.remove(keyOfLock);
if (previousValue!=null && trace) {
log.tracef("Lock removed for index: %s", indexName); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private Iterator<Cell> slice(ColumnSlice slice, boolean invert, SlicesIterator iter)
{
Composite start = invert ? slice.finish : slice.start;
Composite finish = invert ? slice.start : slice.finish;
int lowerBound = 0, upperBound = size;
if (iter != null)
... | public class class_name {
private Iterator<Cell> slice(ColumnSlice slice, boolean invert, SlicesIterator iter)
{
Composite start = invert ? slice.finish : slice.start;
Composite finish = invert ? slice.start : slice.finish;
int lowerBound = 0, upperBound = size;
if (iter != null)
... |
public class class_name {
public final EObject ruleXShortClosure() throws RecognitionException {
EObject current = null;
Token otherlv_2=null;
Token lv_explicitSyntax_4_0=null;
EObject lv_declaredFormalParameters_1_0 = null;
EObject lv_declaredFormalParameters_3_0 = null;
... | public class class_name {
public final EObject ruleXShortClosure() throws RecognitionException {
EObject current = null;
Token otherlv_2=null;
Token lv_explicitSyntax_4_0=null;
EObject lv_declaredFormalParameters_1_0 = null;
EObject lv_declaredFormalParameters_3_0 = null;
... |
public class class_name {
public void marshall(UpdateProvisionedProductRequest updateProvisionedProductRequest, ProtocolMarshaller protocolMarshaller) {
if (updateProvisionedProductRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(UpdateProvisionedProductRequest updateProvisionedProductRequest, ProtocolMarshaller protocolMarshaller) {
if (updateProvisionedProductRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
private String stripContextPath(final String contextPath, String uri)
{
if (!contextPath.equals("/") && uri.startsWith(contextPath))
{
uri = uri.substring(contextPath.length());
}
return uri;
} } | public class class_name {
private String stripContextPath(final String contextPath, String uri)
{
if (!contextPath.equals("/") && uri.startsWith(contextPath))
{
uri = uri.substring(contextPath.length()); // depends on control dependency: [if], data = [none]
}
return uri;
} } |
public class class_name {
public static boolean isInstanceOf(Object o, Type t)
{
if(o == null) {
return false;
}
if(t instanceof Class) {
Class<?> clazz = (Class<?>)t;
if(clazz.isPrimitive()) {
return BOXING_MAP.get(clazz) == o.getClass();
}
return clazz.is... | public class class_name {
public static boolean isInstanceOf(Object o, Type t)
{
if(o == null) {
return false;
// depends on control dependency: [if], data = [none]
}
if(t instanceof Class) {
Class<?> clazz = (Class<?>)t;
if(clazz.isPrimitive()) {
return BOXING_MAP.get(c... |
public class class_name {
void expectExtends(Node n, FunctionType subCtor, FunctionType astSuperCtor) {
if (astSuperCtor == null || (!astSuperCtor.isConstructor() && !astSuperCtor.isInterface())) {
// toMaybeFunctionType failed, or we've got a loose type. Let it go for now.
return;
}
if (astSu... | public class class_name {
void expectExtends(Node n, FunctionType subCtor, FunctionType astSuperCtor) {
if (astSuperCtor == null || (!astSuperCtor.isConstructor() && !astSuperCtor.isInterface())) {
// toMaybeFunctionType failed, or we've got a loose type. Let it go for now.
return; // depends on contr... |
public class class_name {
@Override
protected void onAfterInitialize()
{
super.onAfterInitialize();
menu = newDesktopMenu(this);
setJMenuBar(menu.getMenubar());
setToolBar(toolbar = newJToolBar());
getContentPane().add(mainComponent = newMainComponent());
Optional<BufferedImage> optionalIcon = getIcon(ne... | public class class_name {
@Override
protected void onAfterInitialize()
{
super.onAfterInitialize();
menu = newDesktopMenu(this);
setJMenuBar(menu.getMenubar());
setToolBar(toolbar = newJToolBar());
getContentPane().add(mainComponent = newMainComponent());
Optional<BufferedImage> optionalIcon = getIcon(ne... |
public class class_name {
public static String getClassLoadingTypeDescription(ClassNode c) {
StringBuilder buf = new StringBuilder();
boolean array = false;
while (true) {
if (c.isArray()) {
buf.append('[');
c = c.getComponentType();
a... | public class class_name {
public static String getClassLoadingTypeDescription(ClassNode c) {
StringBuilder buf = new StringBuilder();
boolean array = false;
while (true) {
if (c.isArray()) {
buf.append('['); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public GVRComponent detachComponent(long type) {
NativeSceneObject.detachComponent(getNative(), type);
synchronized (mComponents) {
GVRComponent component = mComponents.remove(type);
if (component != null) {
component.setOwnerObject(null... | public class class_name {
public GVRComponent detachComponent(long type) {
NativeSceneObject.detachComponent(getNative(), type);
synchronized (mComponents) {
GVRComponent component = mComponents.remove(type);
if (component != null) {
component.setOwnerObject(null... |
public class class_name {
public void toSource(final CodeBuilder cb,
final int inputSeqNum,
final Node root) {
runInCompilerThread(
() -> {
if (options.printInputDelimiter) {
if ((cb.getLength() > 0) && !cb.endsWith("\n")) {
... | public class class_name {
public void toSource(final CodeBuilder cb,
final int inputSeqNum,
final Node root) {
runInCompilerThread(
() -> {
if (options.printInputDelimiter) {
if ((cb.getLength() > 0) && !cb.endsWith("\n")) {
... |
public class class_name {
public Collection<V> values() {
Collection<V> vs = values;
if (vs == null) {
vs = new LinkedValues();
values = vs;
}
return vs;
} } | public class class_name {
public Collection<V> values() {
Collection<V> vs = values;
if (vs == null) {
vs = new LinkedValues(); // depends on control dependency: [if], data = [none]
values = vs; // depends on control dependency: [if], data = [none]
}
return vs;
... |
public class class_name {
private static Pair<Double, ClassicCounter<Integer>> readModel(File modelFile, boolean multiclass) {
int modelLineCount = 0;
try {
int numLinesToSkip = multiclass ? 13 : 10;
String stopToken = "#";
BufferedReader in = new BufferedReader(new FileReader(mode... | public class class_name {
private static Pair<Double, ClassicCounter<Integer>> readModel(File modelFile, boolean multiclass) {
int modelLineCount = 0;
try {
int numLinesToSkip = multiclass ? 13 : 10;
String stopToken = "#";
BufferedReader in = new BufferedReader(new FileReader(mode... |
public class class_name {
private void preComputeCardinalities() {
if (!cumulatedCardinalitiesCacheIsValid) {
int nbBuckets = highLowContainer.size();
// Ensure the cache size is the right one
if (highToCumulatedCardinality == null || highToCumulatedCardinality.length != nbBuckets) {
hig... | public class class_name {
private void preComputeCardinalities() {
if (!cumulatedCardinalitiesCacheIsValid) {
int nbBuckets = highLowContainer.size();
// Ensure the cache size is the right one
if (highToCumulatedCardinality == null || highToCumulatedCardinality.length != nbBuckets) {
hig... |
public class class_name {
private QNode reclean() {
/*
* cleanMe is, or at one time was, predecessor of cancelled
* node s that was the tail so could not be unspliced. If s
* is no longer the tail, try to unsplice if necessary and
* make cleanMe slot available. This differ... | public class class_name {
private QNode reclean() {
/*
* cleanMe is, or at one time was, predecessor of cancelled
* node s that was the tail so could not be unspliced. If s
* is no longer the tail, try to unsplice if necessary and
* make cleanMe slot available. This differ... |
public class class_name {
private static Optional<EvaluatedCondition> evaluateCondition(Condition condition, ValueType type, Comparable value) {
Comparable threshold = getThreshold(condition, type);
if (reachThreshold(value, threshold, condition)) {
return of(new EvaluatedCondition(condition, Evaluation... | public class class_name {
private static Optional<EvaluatedCondition> evaluateCondition(Condition condition, ValueType type, Comparable value) {
Comparable threshold = getThreshold(condition, type);
if (reachThreshold(value, threshold, condition)) {
return of(new EvaluatedCondition(condition, Evaluation... |
public class class_name {
public void toStandardForm(double[] originalC, double[][] originalG, double[] originalH,
double[][] originalA, double[] originalB, double[] originalLB, double[] originalUB) {
this.F1 = (useSparsity)? DoubleFactory1D.sparse : DoubleFactory1D.dense;
this.F2 = (useSparsity)? Double... | public class class_name {
public void toStandardForm(double[] originalC, double[][] originalG, double[] originalH,
double[][] originalA, double[] originalB, double[] originalLB, double[] originalUB) {
this.F1 = (useSparsity)? DoubleFactory1D.sparse : DoubleFactory1D.dense;
this.F2 = (useSparsity)? Double... |
public class class_name {
public BusItinerary getBusItinerary(UUID uuid) {
if (uuid == null) {
return null;
}
for (final BusItinerary busItinerary : this.itineraries) {
if (uuid.equals(busItinerary.getUUID())) {
return busItinerary;
}
}
return null;
} } | public class class_name {
public BusItinerary getBusItinerary(UUID uuid) {
if (uuid == null) {
return null; // depends on control dependency: [if], data = [none]
}
for (final BusItinerary busItinerary : this.itineraries) {
if (uuid.equals(busItinerary.getUUID())) {
return busItinerary; // depends on co... |
public class class_name {
@Override
protected Element getTextInput(final Element rssRoot) {
final String elementName = getTextInputLabel();
final Element eChannel = rssRoot.getChild("channel", getRSSNamespace());
if (eChannel != null) {
return eChannel.getChild(elementName, ge... | public class class_name {
@Override
protected Element getTextInput(final Element rssRoot) {
final String elementName = getTextInputLabel();
final Element eChannel = rssRoot.getChild("channel", getRSSNamespace());
if (eChannel != null) {
return eChannel.getChild(elementName, ge... |
public class class_name {
public static <X> String join(Iterable<X> l, String glue) {
StringBuilder sb = new StringBuilder();
boolean first = true;
for (X o : l) {
if ( ! first) {
sb.append(glue);
} else {
first = false;
}
sb.append(o);
}
return sb... | public class class_name {
public static <X> String join(Iterable<X> l, String glue) {
StringBuilder sb = new StringBuilder();
boolean first = true;
for (X o : l) {
if ( ! first) {
sb.append(glue);
// depends on control dependency: [if], data = [none]
} else {
first = fals... |
public class class_name {
protected static void doLog(int connectionId, long elapsedNanos, Category category, String prepared, String sql, String url) {
// give it one more try if not initialized yet
if (logger == null) {
initialize();
if (logger == null) {
return;
}
}
... | public class class_name {
protected static void doLog(int connectionId, long elapsedNanos, Category category, String prepared, String sql, String url) {
// give it one more try if not initialized yet
if (logger == null) {
initialize(); // depends on control dependency: [if], data = [none]
if (l... |
public class class_name {
@Override
public String getFirstValidationGroupFromStack()
{
if (_validationGroupsStack != null && !_validationGroupsStack.isEmpty())
{
return _validationGroupsStack.getFirst(); // top-of-stack
}
return null;
} } | public class class_name {
@Override
public String getFirstValidationGroupFromStack()
{
if (_validationGroupsStack != null && !_validationGroupsStack.isEmpty())
{
return _validationGroupsStack.getFirst(); // top-of-stack // depends on control dependency: [if], data = [none]
}... |
public class class_name {
private MetricValues metricValues(Set<MachineMetric> customSet,
List<MachineMetric> defaults, List<Long> values) {
List<MachineMetric> actualMetrics = defaults;
List<Long> actualValues = values;
if (customSet.size() > 0) {
// custom set of machi... | public class class_name {
private MetricValues metricValues(Set<MachineMetric> customSet,
List<MachineMetric> defaults, List<Long> values) {
List<MachineMetric> actualMetrics = defaults;
List<Long> actualValues = values;
if (customSet.size() > 0) {
// custom set of machi... |
public class class_name {
@Nonnull
// it's reflection, can't avoid unchecked cast
@SuppressWarnings("unchecked")
public static Module classNameToModule(final Parameters parameters, final Class<?> clazz,
Optional<? extends Class<? extends Annotation>> annotation)
throws IllegalAccessException, Invocat... | public class class_name {
@Nonnull
// it's reflection, can't avoid unchecked cast
@SuppressWarnings("unchecked")
public static Module classNameToModule(final Parameters parameters, final Class<?> clazz,
Optional<? extends Class<? extends Annotation>> annotation)
throws IllegalAccessException, Invocat... |
public class class_name {
public ObjectNode toJsonNode(ObjectNode object) {
object.put("type", "rich");
if (title != null && !title.equals("")) {
object.put("title", title);
}
if (description != null && !description.equals("")) {
object.put("description", descrip... | public class class_name {
public ObjectNode toJsonNode(ObjectNode object) {
object.put("type", "rich");
if (title != null && !title.equals("")) {
object.put("title", title); // depends on control dependency: [if], data = [none]
}
if (description != null && !description.equal... |
public class class_name {
private boolean relevant(File currentLogFile, GregorianCalendar lastRelevantDate) {
String fileName=currentLogFile.getName();
Pattern p = Pattern.compile(APPENER_DATE_DEFAULT_PATTERN);
Matcher m = p.matcher(fileName);
if(m.find()){
int year=Integer.parseInt(m.group(1));
int mont... | public class class_name {
private boolean relevant(File currentLogFile, GregorianCalendar lastRelevantDate) {
String fileName=currentLogFile.getName();
Pattern p = Pattern.compile(APPENER_DATE_DEFAULT_PATTERN);
Matcher m = p.matcher(fileName);
if(m.find()){
int year=Integer.parseInt(m.group(1));
int mont... |
public class class_name {
public void setIpv6Addresses(java.util.Collection<ScheduledInstancesIpv6Address> ipv6Addresses) {
if (ipv6Addresses == null) {
this.ipv6Addresses = null;
return;
}
this.ipv6Addresses = new com.amazonaws.internal.SdkInternalList<ScheduledInstanc... | public class class_name {
public void setIpv6Addresses(java.util.Collection<ScheduledInstancesIpv6Address> ipv6Addresses) {
if (ipv6Addresses == null) {
this.ipv6Addresses = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data ... |
public class class_name {
public void verify(String pkg, File path, Configuration conf) {
if (!path.isDirectory()) {
throw new IllegalArgumentException(path.getAbsolutePath().concat(" is not a directory."));
}
for (File file : path.listFiles()) {
if (file.isDirectory()) {
verify(combin... | public class class_name {
public void verify(String pkg, File path, Configuration conf) {
if (!path.isDirectory()) {
throw new IllegalArgumentException(path.getAbsolutePath().concat(" is not a directory."));
}
for (File file : path.listFiles()) {
if (file.isDirectory()) {
verify(combin... |
public class class_name {
public int getTrailingBitCount(boolean network) {
if(network) {
//trailing zeros
return Long.numberOfTrailingZeros(getDivisionValue() | (~0L << getBitCount()));
}
// trailing ones
return Long.numberOfTrailingZeros(~getDivisionValue());
} } | public class class_name {
public int getTrailingBitCount(boolean network) {
if(network) {
//trailing zeros
return Long.numberOfTrailingZeros(getDivisionValue() | (~0L << getBitCount())); // depends on control dependency: [if], data = [none]
}
// trailing ones
return Long.numberOfTrailingZeros(~getDivisio... |
public class class_name {
public void processRequest(HttpServletRequest request) throws IOException,
FileUploadException, StorageClientException, AccessDeniedException {
boolean debug = LOGGER.isDebugEnabled();
if (ServletFileUpload.isMultipartContent(request)) {
if (debug) {
LOGGER.debug("Multipart POST... | public class class_name {
public void processRequest(HttpServletRequest request) throws IOException,
FileUploadException, StorageClientException, AccessDeniedException {
boolean debug = LOGGER.isDebugEnabled();
if (ServletFileUpload.isMultipartContent(request)) {
if (debug) {
LOGGER.debug("Multipart POST... |
public class class_name {
public static void main(String[] args) {
try {
Twitter twitter = new TwitterFactory().getInstance();
System.out.println("Showing suggested user categories.");
ResponseList<Category> categories = twitter.getSuggestedUserCategories();
for ... | public class class_name {
public static void main(String[] args) {
try {
Twitter twitter = new TwitterFactory().getInstance();
System.out.println("Showing suggested user categories."); // depends on control dependency: [try], data = [none]
ResponseList<Category> categories =... |
public class class_name {
public void execute() {
checkParameters();
if (loadCommandOptions.data != null) {
if (loadCommandOptions.loaderParams.containsKey("mongodb-index-folder")) {
configuration.getDatabases().getMongodb().getOptions().put("mongodb-index-folder",
... | public class class_name {
public void execute() {
checkParameters();
if (loadCommandOptions.data != null) {
if (loadCommandOptions.loaderParams.containsKey("mongodb-index-folder")) {
configuration.getDatabases().getMongodb().getOptions().put("mongodb-index-folder",
... |
public class class_name {
protected void connectToJMS(String clientId) throws MessagingException {
// Check to see if already connected
//
if (connected == true) return;
try {
// Get a JMS Connection
//
connection = getConnection();
if(cl... | public class class_name {
protected void connectToJMS(String clientId) throws MessagingException {
// Check to see if already connected
//
if (connected == true) return;
try {
// Get a JMS Connection
//
connection = getConnection();
if(cl... |
public class class_name {
public static ColorStateList getColorStateList(Resources resources, int id) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
return resources.getColorStateList(id, null);
} else {
return resources.getColorStateList(id);
}
} } | public class class_name {
public static ColorStateList getColorStateList(Resources resources, int id) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
return resources.getColorStateList(id, null); // depends on control dependency: [if], data = [none]
} else {
return resou... |
public class class_name {
@Override
public Header convert(XBELHeader source) {
if (source == null) return null;
String name = source.getName();
String description = source.getDescription();
String version = source.getVersion();
// Destination type
Header dest = new... | public class class_name {
@Override
public Header convert(XBELHeader source) {
if (source == null) return null;
String name = source.getName();
String description = source.getDescription();
String version = source.getVersion();
// Destination type
Header dest = new... |
public class class_name {
private void log(int level, String message, Throwable t) {
if (!isLevelEnabled(level)) {
return;
}
StringBuilder buf = new StringBuilder(32);
// Append date-time if so configured
if (CONFIG_PARAMS.showDateTime) {
if (CONFIG_PAR... | public class class_name {
private void log(int level, String message, Throwable t) {
if (!isLevelEnabled(level)) {
return; // depends on control dependency: [if], data = [none]
}
StringBuilder buf = new StringBuilder(32);
// Append date-time if so configured
if (CO... |
public class class_name {
@Override
public boolean validate(final Problems problems, final String compName, final String model) {
final String[] components = model.split(this.regexp);
boolean result = true;
for (final String component : components) {
result &= this.other.validate(problems, compName, componen... | public class class_name {
@Override
public boolean validate(final Problems problems, final String compName, final String model) {
final String[] components = model.split(this.regexp);
boolean result = true;
for (final String component : components) {
result &= this.other.validate(problems, compName, componen... |
public class class_name {
@Override
public Object[] getParameters() {
final Object[] result = new Object[data.size()];
for (int i = 0; i < data.size(); i++) {
result[i] = data.getValueAt(i);
}
return result;
} } | public class class_name {
@Override
public Object[] getParameters() {
final Object[] result = new Object[data.size()];
for (int i = 0; i < data.size(); i++) {
result[i] = data.getValueAt(i); // depends on control dependency: [for], data = [i]
}
return result;
} } |
public class class_name {
public void marshall(VpcConfigRequest vpcConfigRequest, ProtocolMarshaller protocolMarshaller) {
if (vpcConfigRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(vpcC... | public class class_name {
public void marshall(VpcConfigRequest vpcConfigRequest, ProtocolMarshaller protocolMarshaller) {
if (vpcConfigRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(vpcC... |
public class class_name {
public static double getLPNormP(AbstractMaterializeKNNPreprocessor<?> kNN) {
DistanceFunction<?> distanceFunction = kNN.getDistanceQuery().getDistanceFunction();
if(LPNormDistanceFunction.class.isInstance(distanceFunction)) {
return ((LPNormDistanceFunction) distanceFunction).ge... | public class class_name {
public static double getLPNormP(AbstractMaterializeKNNPreprocessor<?> kNN) {
DistanceFunction<?> distanceFunction = kNN.getDistanceQuery().getDistanceFunction();
if(LPNormDistanceFunction.class.isInstance(distanceFunction)) {
return ((LPNormDistanceFunction) distanceFunction).ge... |
public class class_name {
public static boolean compareSignatures(final Method first, final Method second) {
if (!first.getName().equals(second.getName())) {
return false;
}
return compareParameters(first.getParameterTypes(), second.getParameterTypes());
} } | public class class_name {
public static boolean compareSignatures(final Method first, final Method second) {
if (!first.getName().equals(second.getName())) {
return false; // depends on control dependency: [if], data = [none]
}
return compareParameters(first.getParameterTypes(), second.getParameterTypes());
... |
public class class_name {
public Field[] getFields(Class clazz, String fieldname) {
Struct fieldMap;
Object o;
synchronized (map) {
o = map.get(clazz);
if (o == null) {
fieldMap = store(clazz);
}
else fieldMap = (Struct) o;
}
o = fieldMap.get(fieldname, null);
if (o == null) return null;
r... | public class class_name {
public Field[] getFields(Class clazz, String fieldname) {
Struct fieldMap;
Object o;
synchronized (map) {
o = map.get(clazz);
if (o == null) {
fieldMap = store(clazz); // depends on control dependency: [if], data = [none]
}
else fieldMap = (Struct) o;
}
o = fieldMap... |
public class class_name {
@SafeVarargs
public final DataStream<T> union(DataStream<T>... streams) {
List<StreamTransformation<T>> unionedTransforms = new ArrayList<>();
unionedTransforms.add(this.transformation);
for (DataStream<T> newStream : streams) {
if (!getType().equals(newStream.getType())) {
thr... | public class class_name {
@SafeVarargs
public final DataStream<T> union(DataStream<T>... streams) {
List<StreamTransformation<T>> unionedTransforms = new ArrayList<>();
unionedTransforms.add(this.transformation);
for (DataStream<T> newStream : streams) {
if (!getType().equals(newStream.getType())) {
thr... |
public class class_name {
public static <CL extends ClassUml> void arrangeClassDiagram(List<ClassFull<CL>> classList,
SettingsGraphicUml gp, int algorithmId) {
//1. Find out set of 0-level super-classes, i.e. they has no super-classes.
// All other classes level is settled to 999:
List<ClassFull<CL... | public class class_name {
public static <CL extends ClassUml> void arrangeClassDiagram(List<ClassFull<CL>> classList,
SettingsGraphicUml gp, int algorithmId) {
//1. Find out set of 0-level super-classes, i.e. they has no super-classes.
// All other classes level is settled to 999:
List<ClassFull<CL... |
public class class_name {
public BigMoney minus(BigDecimal amountToSubtract) {
MoneyUtils.checkNotNull(amountToSubtract, "Amount must not be null");
if (amountToSubtract.compareTo(BigDecimal.ZERO) == 0) {
return this;
}
BigDecimal newAmount = amount.subtract(amountToSub... | public class class_name {
public BigMoney minus(BigDecimal amountToSubtract) {
MoneyUtils.checkNotNull(amountToSubtract, "Amount must not be null");
if (amountToSubtract.compareTo(BigDecimal.ZERO) == 0) {
return this;
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected String getFedoraResourceURI(String res) {
// strip off info URI part if present
String strippedRes;
if (res.startsWith(Constants.FEDORA.uri)) {
strippedRes = res.substring(Constants.FEDORA.uri.length());
} else {
strippedRes = ... | public class class_name {
protected String getFedoraResourceURI(String res) {
// strip off info URI part if present
String strippedRes;
if (res.startsWith(Constants.FEDORA.uri)) {
strippedRes = res.substring(Constants.FEDORA.uri.length()); // depends on control dependency: [if], dat... |
public class class_name {
public void setLogPaths(java.util.Collection<String> logPaths) {
if (logPaths == null) {
this.logPaths = null;
return;
}
this.logPaths = new java.util.ArrayList<String>(logPaths);
} } | public class class_name {
public void setLogPaths(java.util.Collection<String> logPaths) {
if (logPaths == null) {
this.logPaths = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.logPaths =... |
public class class_name {
public void setImageAssetDelegate(
@SuppressWarnings("NullableProblems") ImageAssetDelegate assetDelegate) {
this.imageAssetDelegate = assetDelegate;
if (imageAssetManager != null) {
imageAssetManager.setDelegate(assetDelegate);
}
} } | public class class_name {
public void setImageAssetDelegate(
@SuppressWarnings("NullableProblems") ImageAssetDelegate assetDelegate) {
this.imageAssetDelegate = assetDelegate;
if (imageAssetManager != null) {
imageAssetManager.setDelegate(assetDelegate); // depends on control dependency: [if], data... |
public class class_name {
public void lookupDataSet(final DataSetLookup request,
final DataSetReadyCallback listener) throws Exception {
// Look always into the client data set manager.
if (clientDataSetManager.getDataSet(request.getDataSetUUID()) != null) {
D... | public class class_name {
public void lookupDataSet(final DataSetLookup request,
final DataSetReadyCallback listener) throws Exception {
// Look always into the client data set manager.
if (clientDataSetManager.getDataSet(request.getDataSetUUID()) != null) {
D... |
public class class_name {
public void trim() {
keys = Arrays.copyOf(keys, size);
values = Arrays.copyOf(values, size);
for (MappeableContainer c : values) {
c.trim();
}
} } | public class class_name {
public void trim() {
keys = Arrays.copyOf(keys, size);
values = Arrays.copyOf(values, size);
for (MappeableContainer c : values) {
c.trim(); // depends on control dependency: [for], data = [c]
}
} } |
public class class_name {
public static boolean matches(TieredIdentity.LocalityTier tier,
TieredIdentity.LocalityTier otherTier, boolean resolveIpAddress) {
String otherTierName = otherTier.getTierName();
if (!tier.getTierName().equals(otherTierName)) {
return false;
}
String otherTierValue... | public class class_name {
public static boolean matches(TieredIdentity.LocalityTier tier,
TieredIdentity.LocalityTier otherTier, boolean resolveIpAddress) {
String otherTierName = otherTier.getTierName();
if (!tier.getTierName().equals(otherTierName)) {
return false; // depends on control dependenc... |
public class class_name {
public void start() throws ContextClientCodeException {
synchronized (this.contextStack) {
LOG.log(Level.FINEST, "Instantiating root context.");
this.contextStack.push(this.launchContext.get().getRootContext());
if (this.launchContext.get().getInitialTaskConfiguration()... | public class class_name {
public void start() throws ContextClientCodeException {
synchronized (this.contextStack) {
LOG.log(Level.FINEST, "Instantiating root context.");
this.contextStack.push(this.launchContext.get().getRootContext());
if (this.launchContext.get().getInitialTaskConfiguration()... |
public class class_name {
protected static final int floatToS390IntBits(float ieeeFloat) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "floatToS390IntBits", ieeeFloat);
// Get the bit pattern
int ieeeIntBits = Float.floatToIntBits(ieeeFloat);
if ... | public class class_name {
protected static final int floatToS390IntBits(float ieeeFloat) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "floatToS390IntBits", ieeeFloat);
// Get the bit pattern
int ieeeIntBits = Float.floatToIntBits(ieeeFloat);
if ... |
public class class_name {
public static String replaceFirst(final String text, final String regex, final String replacement) {
if (text == null || regex == null|| replacement == null ) {
return text;
}
return text.replaceFirst(regex, replacement);
} } | public class class_name {
public static String replaceFirst(final String text, final String regex, final String replacement) {
if (text == null || regex == null|| replacement == null ) {
return text; // depends on control dependency: [if], data = [none]
}
return text.replaceFirst(re... |
public class class_name {
public static BoxEntity createEntityFromJson(final JsonObject json){
JsonValue typeValue = json.get(BoxEntity.FIELD_TYPE);
if (!typeValue.isString()) {
return null;
}
String type = typeValue.asString();
BoxEntityCreator creator = ENTITY_ADDO... | public class class_name {
public static BoxEntity createEntityFromJson(final JsonObject json){
JsonValue typeValue = json.get(BoxEntity.FIELD_TYPE);
if (!typeValue.isString()) {
return null; // depends on control dependency: [if], data = [none]
}
String type = typeValue.asSt... |
public class class_name {
@SuppressWarnings("unchecked")
@Override
public Vector<Long> readVectorUInt() {
log.debug("readVectorUInt");
int type = readInteger();
if ((type & 1) == 0) {
return (Vector<Long>) getReference(type >> 1);
}
int len = type >> ... | public class class_name {
@SuppressWarnings("unchecked")
@Override
public Vector<Long> readVectorUInt() {
log.debug("readVectorUInt");
int type = readInteger();
if ((type & 1) == 0) {
return (Vector<Long>) getReference(type >> 1);
// depends on control dependency: [if... |
public class class_name {
@Override
protected Type getReturnType(final int mOp1, final int mOp2) throws TTXPathException {
final Type mType1 = Type.getType(mOp1).getPrimitiveBaseType();
final Type mType2 = Type.getType(mOp2).getPrimitiveBaseType();
if (mType1.isNumericType() && mType2.isN... | public class class_name {
@Override
protected Type getReturnType(final int mOp1, final int mOp2) throws TTXPathException {
final Type mType1 = Type.getType(mOp1).getPrimitiveBaseType();
final Type mType2 = Type.getType(mOp2).getPrimitiveBaseType();
if (mType1.isNumericType() && mType2.isN... |
public class class_name {
@Override
public final void setHasName(final InvItem pHasName) {
this.hasName = pHasName;
if (this.itsId == null) {
this.itsId = new IdI18nInvItem();
}
this.itsId.setHasName(this.hasName);
} } | public class class_name {
@Override
public final void setHasName(final InvItem pHasName) {
this.hasName = pHasName;
if (this.itsId == null) {
this.itsId = new IdI18nInvItem(); // depends on control dependency: [if], data = [none]
}
this.itsId.setHasName(this.hasName);
} } |
public class class_name {
public static TagLib nameSpace(Data data) {
boolean hasTag = false;
int start = data.srcCode.getPos();
TagLib tagLib = null;
// loop over NameSpaces
for (int i = 1; i >= 0; i--) {
for (int ii = 0; ii < data.tlibs[i].length; ii++) {
tagLib = data.tlibs[i][ii];
char[] c = tagLib.... | public class class_name {
public static TagLib nameSpace(Data data) {
boolean hasTag = false;
int start = data.srcCode.getPos();
TagLib tagLib = null;
// loop over NameSpaces
for (int i = 1; i >= 0; i--) {
for (int ii = 0; ii < data.tlibs[i].length; ii++) {
tagLib = data.tlibs[i][ii]; // depends on contro... |
public class class_name {
private void restoreKVStateData() throws IOException, RocksDBException {
//for all key-groups in the current state handle...
try (RocksDBWriteBatchWrapper writeBatchWrapper = new RocksDBWriteBatchWrapper(db)) {
for (Tuple2<Integer, Long> keyGroupOffset : currentKeyGroupsStateHandle.get... | public class class_name {
private void restoreKVStateData() throws IOException, RocksDBException {
//for all key-groups in the current state handle...
try (RocksDBWriteBatchWrapper writeBatchWrapper = new RocksDBWriteBatchWrapper(db)) {
for (Tuple2<Integer, Long> keyGroupOffset : currentKeyGroupsStateHandle.get... |
public class class_name {
private boolean deleteBatch(List<String> objIDs) {
if (objIDs.size() == 0) {
return false;
}
m_logger.debug("Deleting batch of {} objects from {}", objIDs.size(), m_tableDef.getTableName());
BatchObjectUpdater batchUpdater = new BatchObjectUpdater(m... | public class class_name {
private boolean deleteBatch(List<String> objIDs) {
if (objIDs.size() == 0) {
return false; // depends on control dependency: [if], data = [none]
}
m_logger.debug("Deleting batch of {} objects from {}", objIDs.size(), m_tableDef.getTableName());
Batc... |
public class class_name {
public static void forEachSuperClass( Class<?> clazz, ClassAction action ) {
try {
action.act( clazz );
Class<?> superclass = clazz.getSuperclass();
if( superclass != null ) {
forEachSuperClass( superclass, action );
}
... | public class class_name {
public static void forEachSuperClass( Class<?> clazz, ClassAction action ) {
try {
action.act( clazz ); // depends on control dependency: [try], data = [none]
Class<?> superclass = clazz.getSuperclass();
if( superclass != null ) {
fo... |
public class class_name {
@Nullable
public final Router getChildRouter(@NonNull ViewGroup container, @Nullable String tag, boolean createIfNeeded) {
@IdRes final int containerId = container.getId();
ControllerHostedRouter childRouter = null;
for (ControllerHostedRouter router : childRouter... | public class class_name {
@Nullable
public final Router getChildRouter(@NonNull ViewGroup container, @Nullable String tag, boolean createIfNeeded) {
@IdRes final int containerId = container.getId();
ControllerHostedRouter childRouter = null;
for (ControllerHostedRouter router : childRouter... |
public class class_name {
private void createStyleRelationship(String mappingTableName,
String featureTable, String baseTable, String relatedTable) {
if (!hasStyleRelationship(mappingTableName, baseTable, relatedTable)) {
// Create the extension
getOrCreate(featureTable);
if (baseTable.equals(Contents... | public class class_name {
private void createStyleRelationship(String mappingTableName,
String featureTable, String baseTable, String relatedTable) {
if (!hasStyleRelationship(mappingTableName, baseTable, relatedTable)) {
// Create the extension
getOrCreate(featureTable); // depends on control dependency:... |
public class class_name {
private URLPatternHolder convertStringToPattern(String line) {
URLPatternHolder holder = new URLPatternHolder();
Pattern compiledPattern;
Perl5Compiler compiler = new Perl5Compiler();
String perl5RegExp = line;
try {
compiledPattern = compil... | public class class_name {
private URLPatternHolder convertStringToPattern(String line) {
URLPatternHolder holder = new URLPatternHolder();
Pattern compiledPattern;
Perl5Compiler compiler = new Perl5Compiler();
String perl5RegExp = line;
try {
compiledPattern = compil... |
public class class_name {
public int max() {
int max = Integer.MIN_VALUE;
for (E key : map.keySet()) {
max = Math.max(max, getIntCount(key));
}
return max;
} } | public class class_name {
public int max() {
int max = Integer.MIN_VALUE;
for (E key : map.keySet()) {
max = Math.max(max, getIntCount(key));
// depends on control dependency: [for], data = [key]
}
return max;
} } |
public class class_name {
public void await(T t) throws InterruptedException
{
synchronized (monitor)
{
long waitNanos = evaluateWithWaitTimeNanos(t);
// Loop forever until all conditions pass or the thread is interrupted.
while (waitNanos > 0)
{
... | public class class_name {
public void await(T t) throws InterruptedException
{
synchronized (monitor)
{
long waitNanos = evaluateWithWaitTimeNanos(t);
// Loop forever until all conditions pass or the thread is interrupted.
while (waitNanos > 0)
{
... |
public class class_name {
protected void showInitCallError(Set<String> initCalls) {
StringBuffer buffer = new StringBuffer();
buffer.append("init call(s) not found: ");
for (String init : initCalls) {
buffer.append(init);
buffer.append(" ");
}
sh... | public class class_name {
protected void showInitCallError(Set<String> initCalls) {
StringBuffer buffer = new StringBuffer();
buffer.append("init call(s) not found: ");
for (String init : initCalls) {
buffer.append(init);
// depends on control dependency: [for], data = [init]... |
public class class_name {
public <EE extends E> Iterator<EE> iterator(Class<EE> type) {
try {
disableSeek();
} catch (IOException exception) {
//
}
return Iterators.filter(new ElementIterator(), type);
} } | public class class_name {
public <EE extends E> Iterator<EE> iterator(Class<EE> type) {
try {
disableSeek(); // depends on control dependency: [try], data = [none]
} catch (IOException exception) {
//
} // depends on control dependency: [catch], data = [none]
return Iterators.filter(new ElementIterator()... |
public class class_name {
public synchronized void reloadableScan(String fileName) {
if (!isFirstInit) {
return;
}
if (DisClientConfig.getInstance().ENABLE_DISCONF) {
try {
if (!DisClientConfig.getInstance().getIgnoreDisconfKeySet().contains(fileName))... | public class class_name {
public synchronized void reloadableScan(String fileName) {
if (!isFirstInit) {
return; // depends on control dependency: [if], data = [none]
}
if (DisClientConfig.getInstance().ENABLE_DISCONF) {
try {
if (!DisClientConfig.getI... |
public class class_name {
protected int transitionWithRoot(int nodePos, char c)
{
int b = base[nodePos];
int p;
p = b + c + 1;
if (b != check[p])
{
if (nodePos == 0) return 0;
return -1;
}
return p;
} } | public class class_name {
protected int transitionWithRoot(int nodePos, char c)
{
int b = base[nodePos];
int p;
p = b + c + 1;
if (b != check[p])
{
if (nodePos == 0) return 0;
return -1; // depends on control dependency: [if], data = [none]
}... |
public class class_name {
@Nonnull
public static EChange renewCurrentSessionScope (final boolean bInvalidateHttpSession)
{
// Get the old session scope
final ISessionWebScope aOldSessionScope = WebScopeManager.getSessionScope (false);
if (aOldSessionScope == null)
{
// No session present, so ... | public class class_name {
@Nonnull
public static EChange renewCurrentSessionScope (final boolean bInvalidateHttpSession)
{
// Get the old session scope
final ISessionWebScope aOldSessionScope = WebScopeManager.getSessionScope (false);
if (aOldSessionScope == null)
{
// No session present, so ... |
public class class_name {
private void visitMemberDeclarator(AstNode node) {
if (isOverriddenMethod(node)) {
// assume that ancestor method is documented
// and do not count as public API
return;
}
AstNode container = node.getFirstAncestor(
CxxGrammarImpl.templateDeclaration,
... | public class class_name {
private void visitMemberDeclarator(AstNode node) {
if (isOverriddenMethod(node)) {
// assume that ancestor method is documented
// and do not count as public API
return; // depends on control dependency: [if], data = [none]
}
AstNode container = node.getFirstAn... |
public class class_name {
int makeRef(DiagnosticPosition pos, Type type) {
checkDimension(pos, type);
if (type.isAnnotated()) {
return pool.put((Object)type);
} else {
return pool.put(type.hasTag(CLASS) ? (Object)type.tsym : (Object)type);
}
} } | public class class_name {
int makeRef(DiagnosticPosition pos, Type type) {
checkDimension(pos, type);
if (type.isAnnotated()) {
return pool.put((Object)type); // depends on control dependency: [if], data = [none]
} else {
return pool.put(type.hasTag(CLASS) ? (Object)type... |
public class class_name {
private static boolean resemblesPropertyPattern(String pattern, int pos) {
// Patterns are at least 5 characters long
if ((pos+5) > pattern.length()) {
return false;
}
// Look for an opening [:, [:^, \p, or \P
return pattern.regionMatches(p... | public class class_name {
private static boolean resemblesPropertyPattern(String pattern, int pos) {
// Patterns are at least 5 characters long
if ((pos+5) > pattern.length()) {
return false; // depends on control dependency: [if], data = [none]
}
// Look for an opening [:,... |
public class class_name {
public synchronized void acceptMastership() {
if (m_onMastership == null) {
if (exportLog.isDebugEnabled()) {
exportLog.debug("Mastership Runnable not yet set for table " + getTableName() + " partition " + getPartitionId());
}
return... | public class class_name {
public synchronized void acceptMastership() {
if (m_onMastership == null) {
if (exportLog.isDebugEnabled()) {
exportLog.debug("Mastership Runnable not yet set for table " + getTableName() + " partition " + getPartitionId()); // depends on control dependency... |
public class class_name {
private static String printStatements(Context context, Iterable<JCStatement> statements) {
StringWriter writer = new StringWriter();
try {
pretty(context, writer).printStats(com.sun.tools.javac.util.List.from(statements));
} catch (IOException e) {
throw new AssertionE... | public class class_name {
private static String printStatements(Context context, Iterable<JCStatement> statements) {
StringWriter writer = new StringWriter();
try {
pretty(context, writer).printStats(com.sun.tools.javac.util.List.from(statements)); // depends on control dependency: [try], data = [none]
... |
public class class_name {
protected void validateDate(final List<Diagnostic> diags) {
Date value = getValue();
if (value == null) {
return;
}
Date min = getMinDate();
Date max = getMaxDate();
if (min != null && value.compareTo(min) < 0) {
diags.add(createErrorDiagnostic(
InternalMessages.DEFAU... | public class class_name {
protected void validateDate(final List<Diagnostic> diags) {
Date value = getValue();
if (value == null) {
return; // depends on control dependency: [if], data = [none]
}
Date min = getMinDate();
Date max = getMaxDate();
if (min != null && value.compareTo(min) < 0) {
diags.... |
public class class_name {
public TilePreparationInfo call() {
return this.context.mdcContext(() -> {
try {
final ReferencedEnvelope mapGeoBounds = this.bounds.toReferencedEnvelope(this.paintArea);
final CoordinateReferenceSystem mapProjection = mapGeoBounds.getCoordi... | public class class_name {
public TilePreparationInfo call() {
return this.context.mdcContext(() -> {
try {
final ReferencedEnvelope mapGeoBounds = this.bounds.toReferencedEnvelope(this.paintArea);
final CoordinateReferenceSystem mapProjection = mapGeoBounds.getCoordi... |
public class class_name {
public void releaseAll(ParticleEmitter emitter) {
if( !particlesByEmitter.isEmpty() )
{
Iterator it= particlesByEmitter.values().iterator();
while( it.hasNext())
{
ParticlePool pool= (ParticlePool)it.next();
for (int i=0;i<pool.particles.length;i++) {
if (poo... | public class class_name {
public void releaseAll(ParticleEmitter emitter) {
if( !particlesByEmitter.isEmpty() )
{
Iterator it= particlesByEmitter.values().iterator();
while( it.hasNext())
{
ParticlePool pool= (ParticlePool)it.next();
for (int i=0;i<pool.particles.length;i++) {
if (poo... |
public class class_name {
public boolean add(final WorkbenchEntry e) {
// The starting point.
int pos = hashCode(e.ipAddress) & mask;
// There's always an unused entry.
while (workbenchEntry[pos] != null) {
if (Arrays.equals(workbenchEntry[pos].ipAddress, e.ipAddress)) return false;
pos = (pos + 1) & mas... | public class class_name {
public boolean add(final WorkbenchEntry e) {
// The starting point.
int pos = hashCode(e.ipAddress) & mask;
// There's always an unused entry.
while (workbenchEntry[pos] != null) {
if (Arrays.equals(workbenchEntry[pos].ipAddress, e.ipAddress)) return false;
pos = (pos + 1) & mas... |
public class class_name {
private boolean isBlockFinalizedWithLock(int namespaceId, Block b) {
lock.readLock().lock();
try {
return isBlockFinalizedInternal(namespaceId, b, true);
} finally {
lock.readLock().unlock();
}
} } | public class class_name {
private boolean isBlockFinalizedWithLock(int namespaceId, Block b) {
lock.readLock().lock();
try {
return isBlockFinalizedInternal(namespaceId, b, true); // depends on control dependency: [try], data = [none]
} finally {
lock.readLock().unlock();
}
} } |
public class class_name {
public void auditRetrieveDocumentSetEvent(RFC3881EventOutcomeCodes eventOutcome,
String repositoryEndpointUri,
String userName,
String[] documentUniqueIds, String[] repositoryUniqueIds, String[] homeCommunityIds,
String patientId,
List<CodedValueType> purposesOfUs... | public class class_name {
public void auditRetrieveDocumentSetEvent(RFC3881EventOutcomeCodes eventOutcome,
String repositoryEndpointUri,
String userName,
String[] documentUniqueIds, String[] repositoryUniqueIds, String[] homeCommunityIds,
String patientId,
List<CodedValueType> purposesOfUs... |
public class class_name {
private int readSingleValue()
{
if (ivPos < ivString.length() && ivString.charAt(ivPos) == '*')
{
ivPos++;
return ENCODED_WILD_CARD;
}
int begin = scanToken();
String[] namedValues = ivAttr.getNamedValues();
int resu... | public class class_name {
private int readSingleValue()
{
if (ivPos < ivString.length() && ivString.charAt(ivPos) == '*')
{
ivPos++; // depends on control dependency: [if], data = [none]
return ENCODED_WILD_CARD; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public synchronized <T> T getAttachment(final AttachmentKey<T> key) {
if (key == null) {
return null;
}
return key.cast(attachments.get(key));
} } | public class class_name {
public synchronized <T> T getAttachment(final AttachmentKey<T> key) {
if (key == null) {
return null; // depends on control dependency: [if], data = [none]
}
return key.cast(attachments.get(key));
} } |
public class class_name {
protected static String generateSessionKey(
String prefix,
String fileName,
boolean subFolder,
CmsUser user,
List<CmsGroup> groups) {
StringBuffer result = new StringBuffer(256);
result.append(prefix);
result.append(CmsResource.... | public class class_name {
protected static String generateSessionKey(
String prefix,
String fileName,
boolean subFolder,
CmsUser user,
List<CmsGroup> groups) {
StringBuffer result = new StringBuffer(256);
result.append(prefix);
result.append(CmsResource.... |
public class class_name {
@Override
public EClass getIfcValue() {
if (ifcValueEClass == null) {
ifcValueEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(1172);
}
return ifcValueEClass;
} } | public class class_name {
@Override
public EClass getIfcValue() {
if (ifcValueEClass == null) {
ifcValueEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(1172);
// depends on control dependency: [if], data = [none]
}
return ifcValueEClass;
} } |
public class class_name {
public synchronized void fire(T event) {
if (occured) throw new IllegalStateException("SingleEvent already fired");
occured = true;
data = event;
if (listeners != null) {
for (Listener<T> listener : listeners)
listener.fire(event);
listeners = null;
}
if (listen... | public class class_name {
public synchronized void fire(T event) {
if (occured) throw new IllegalStateException("SingleEvent already fired");
occured = true;
data = event;
if (listeners != null) {
for (Listener<T> listener : listeners)
listener.fire(event);
listeners = null;
// depends on con... |
public class class_name {
@Override
public RemoteWebElement getElement() {
/*
* Note: Rationale behind throwing ParentNotFoundException here.
*
* Container's being a parent type is searched using a locator. When the locator is invalid it will be better to
* throw Parent... | public class class_name {
@Override
public RemoteWebElement getElement() {
/*
* Note: Rationale behind throwing ParentNotFoundException here.
*
* Container's being a parent type is searched using a locator. When the locator is invalid it will be better to
* throw Parent... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.