code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static Deque<String> createScopeLookupList(UserTypeContainer container) {
String namespace = container.getNamespace();
Deque<String> scopeLookupList = new ArrayDeque<>();
int end = 0;
while (end >= 0) {
end = namespace.indexOf('.', end);
... | public class class_name {
public static Deque<String> createScopeLookupList(UserTypeContainer container) {
String namespace = container.getNamespace();
Deque<String> scopeLookupList = new ArrayDeque<>();
int end = 0;
while (end >= 0) {
end = namespace.indexOf('.', end); // d... |
public class class_name {
public void entryUpdated (EntryUpdatedEvent<OccupantInfo> event)
{
// bail if this isn't for the OCCUPANT_INFO field
if (!event.getName().equals(PlaceObject.OCCUPANT_INFO)) {
return;
}
// now let the occupant observers know what's up
fi... | public class class_name {
public void entryUpdated (EntryUpdatedEvent<OccupantInfo> event)
{
// bail if this isn't for the OCCUPANT_INFO field
if (!event.getName().equals(PlaceObject.OCCUPANT_INFO)) {
return; // depends on control dependency: [if], data = [none]
}
// no... |
public class class_name {
@CheckForNull
public Float getFloat(String key) {
String value = getString(key);
if (StringUtils.isNotEmpty(value)) {
try {
return Float.valueOf(value);
} catch (NumberFormatException e) {
throw new IllegalStateException(String.format("The property '%s' i... | public class class_name {
@CheckForNull
public Float getFloat(String key) {
String value = getString(key);
if (StringUtils.isNotEmpty(value)) {
try {
return Float.valueOf(value); // depends on control dependency: [try], data = [none]
} catch (NumberFormatException e) {
throw new I... |
public class class_name {
static Log create(File outputFile) {
try {
return new Log(
new PrintStream(
outputFile.getName().endsWith(".gz") ?
new GZIPOutputStream(new FileOutputStream(outputFile))
: new FileOutputStream(outputFile)),
... | public class class_name {
static Log create(File outputFile) {
try {
return new Log(
new PrintStream(
outputFile.getName().endsWith(".gz") ?
new GZIPOutputStream(new FileOutputStream(outputFile))
: new FileOutputStream(outputFile)),
... |
public class class_name {
@Nullable
public HtmlAttributeNode getDirectAttributeNamed(String attrName) {
// the child at index 0 is the tag name
for (int i = 1; i < numChildren(); i++) {
StandaloneNode child = getChild(i);
if (child instanceof HtmlAttributeNode) {
HtmlAttributeNode attr = ... | public class class_name {
@Nullable
public HtmlAttributeNode getDirectAttributeNamed(String attrName) {
// the child at index 0 is the tag name
for (int i = 1; i < numChildren(); i++) {
StandaloneNode child = getChild(i);
if (child instanceof HtmlAttributeNode) {
HtmlAttributeNode attr = ... |
public class class_name {
public EClass getIfcGasTerminalType() {
if (ifcGasTerminalTypeEClass == null) {
ifcGasTerminalTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(263);
}
return ifcGasTerminalTypeEClass;
} } | public class class_name {
public EClass getIfcGasTerminalType() {
if (ifcGasTerminalTypeEClass == null) {
ifcGasTerminalTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(263);
// depends on control dependency: [if], data = [none]
}
return i... |
public class class_name {
public final Entry<?> createEntryAt(ZonedDateTime time, Calendar calendar) {
requireNonNull(time);
VirtualGrid grid = getVirtualGrid();
if (grid != null) {
ZonedDateTime timeA = grid.adjustTime(time, false, getFirstDayOfWeek());
ZonedDateTime ti... | public class class_name {
public final Entry<?> createEntryAt(ZonedDateTime time, Calendar calendar) {
requireNonNull(time);
VirtualGrid grid = getVirtualGrid();
if (grid != null) {
ZonedDateTime timeA = grid.adjustTime(time, false, getFirstDayOfWeek());
ZonedDateTime ti... |
public class class_name {
public static boolean isForeignKey( NodeKey key,
NodeKey rootKey ) {
if (key == null) {
return false;
}
String nodeWorkspaceKey = key.getWorkspaceKey();
boolean sameWorkspace = rootKey.getWorkspaceKey().equal... | public class class_name {
public static boolean isForeignKey( NodeKey key,
NodeKey rootKey ) {
if (key == null) {
return false; // depends on control dependency: [if], data = [none]
}
String nodeWorkspaceKey = key.getWorkspaceKey();
b... |
public class class_name {
public synchronized void forceConfigProperties(List<ConfigProperty> newContents)
{
if (newContents != null)
{
this.configProperties = new ArrayList<ConfigProperty>(newContents);
}
else
{
this.configProperties = new ArrayList<ConfigProperty>(0... | public class class_name {
public synchronized void forceConfigProperties(List<ConfigProperty> newContents)
{
if (newContents != null)
{
this.configProperties = new ArrayList<ConfigProperty>(newContents); // depends on control dependency: [if], data = [(newContents]
}
else
{
... |
public class class_name {
protected String translate(String messageKey, String defaultMessage) {
if (messages == null || Strings.isNullOrEmpty(messageKey)) {
return Strings.emptyToNull(defaultMessage);
}
return Strings.emptyToNull(messages.getWithDefault(messageKey, defaultMessage, ... | public class class_name {
protected String translate(String messageKey, String defaultMessage) {
if (messages == null || Strings.isNullOrEmpty(messageKey)) {
return Strings.emptyToNull(defaultMessage); // depends on control dependency: [if], data = [none]
}
return Strings.emptyToNul... |
public class class_name {
public DependencyCustomizer ifAllResourcesPresent(String... paths) {
return new DependencyCustomizer(this) {
@Override
protected boolean canAdd() {
for (String path : paths) {
try {
if (DependencyCustomizer.this.loader.getResource(path) == null) {
return false;
... | public class class_name {
public DependencyCustomizer ifAllResourcesPresent(String... paths) {
return new DependencyCustomizer(this) {
@Override
protected boolean canAdd() {
for (String path : paths) {
try {
if (DependencyCustomizer.this.loader.getResource(path) == null) {
return false; /... |
public class class_name {
private String getJQLDeclared() {
ModelAnnotation inserAnnotation = this.getAnnotation(BindSqlInsert.class);
ModelAnnotation updateAnnotation = this.getAnnotation(BindSqlUpdate.class);
ModelAnnotation selectAnnotation = this.getAnnotation(BindSqlSelect.class);
ModelAnnotation deleteAn... | public class class_name {
private String getJQLDeclared() {
ModelAnnotation inserAnnotation = this.getAnnotation(BindSqlInsert.class);
ModelAnnotation updateAnnotation = this.getAnnotation(BindSqlUpdate.class);
ModelAnnotation selectAnnotation = this.getAnnotation(BindSqlSelect.class);
ModelAnnotation deleteAn... |
public class class_name {
public static boolean isNonAmbNucleotideSequence(String sequence) {
sequence = SequenceUtil.cleanSequence(sequence);
if (SequenceUtil.DIGIT.matcher(sequence).find()) {
return false;
}
if (SequenceUtil.NON_NUCLEOTIDE.matcher(sequence).find()) {
return false;
/*
* System.out.format... | public class class_name {
public static boolean isNonAmbNucleotideSequence(String sequence) {
sequence = SequenceUtil.cleanSequence(sequence);
if (SequenceUtil.DIGIT.matcher(sequence).find()) {
return false; // depends on control dependency: [if], data = [none]
}
if (SequenceUtil.NON_NUCLEOTIDE.matcher(sequence)... |
public class class_name {
private void timeoutHasExpired(final Timeout timeout, final TimeoutExpirationContext context) {
try {
addMessage(timeout, context.getOriginalHeaders());
} catch (Exception ex) {
LOG.error("Error handling timeout {}", timeout, ex);
}
} } | public class class_name {
private void timeoutHasExpired(final Timeout timeout, final TimeoutExpirationContext context) {
try {
addMessage(timeout, context.getOriginalHeaders()); // depends on control dependency: [try], data = [none]
} catch (Exception ex) {
LOG.error("Error han... |
public class class_name {
public void persistWrite() throws IOException {
if (diskCache2 == null)
return;
String cacheName = getCacheName();
if (cacheName == null) return;
if (cacheName.startsWith("file:")) // LOOK
cacheName = cacheName.substring(5);
File cacheFile = diskC... | public class class_name {
public void persistWrite() throws IOException {
if (diskCache2 == null)
return;
String cacheName = getCacheName();
if (cacheName == null) return;
if (cacheName.startsWith("file:")) // LOOK
cacheName = cacheName.substring(5);
File cacheFile = diskC... |
public class class_name {
public Expectation[] retrieveActiveExpectations(HttpRequest httpRequest) {
String activeExpectations = retrieveActiveExpectations(httpRequest, Format.JSON);
if (!Strings.isNullOrEmpty(activeExpectations) && !activeExpectations.equals("[]")) {
return expectationSeri... | public class class_name {
public Expectation[] retrieveActiveExpectations(HttpRequest httpRequest) {
String activeExpectations = retrieveActiveExpectations(httpRequest, Format.JSON);
if (!Strings.isNullOrEmpty(activeExpectations) && !activeExpectations.equals("[]")) {
return expectationSeri... |
public class class_name {
public boolean shouldClose(TaskAttemptID taskid) {
/**
* If the task hasn't been closed yet, and it belongs to a completed
* TaskInProgress close it.
*
* However, for completed map tasks we do not close the task which
* actually was the one responsible for _compl... | public class class_name {
public boolean shouldClose(TaskAttemptID taskid) {
/**
* If the task hasn't been closed yet, and it belongs to a completed
* TaskInProgress close it.
*
* However, for completed map tasks we do not close the task which
* actually was the one responsible for _compl... |
public class class_name {
public static final void removeMin(long[] heapKeys, double[] heapValues, int heapSize) {
heapValues[0] = heapValues[heapSize - 1];
heapKeys[0] = heapKeys[heapSize - 1];
int curIndex = 0;
int leftIndex, rightIndex, minIndex;
boolean done = false;
while (!done) {
... | public class class_name {
public static final void removeMin(long[] heapKeys, double[] heapValues, int heapSize) {
heapValues[0] = heapValues[heapSize - 1];
heapKeys[0] = heapKeys[heapSize - 1];
int curIndex = 0;
int leftIndex, rightIndex, minIndex;
boolean done = false;
while (!done) {
... |
public class class_name {
public StylesheetComposed getStylesheetComposed()
{
Stylesheet sheet = this;
while (!sheet.isAggregatedType())
{
sheet = sheet.getStylesheetParent();
}
return (StylesheetComposed) sheet;
} } | public class class_name {
public StylesheetComposed getStylesheetComposed()
{
Stylesheet sheet = this;
while (!sheet.isAggregatedType())
{
sheet = sheet.getStylesheetParent(); // depends on control dependency: [while], data = [none]
}
return (StylesheetComposed) sheet;
} } |
public class class_name {
private void loadReadOnly() {
checkState(_segmentMap.isEmpty()); // Only supported for newly allocated queue objects
checkState(_readOnly);
// Load the segment persistent state from disk.
for (Map.Entry<UUID, String> entry : _dao.loadSegments(_name).entrySet()... | public class class_name {
private void loadReadOnly() {
checkState(_segmentMap.isEmpty()); // Only supported for newly allocated queue objects
checkState(_readOnly);
// Load the segment persistent state from disk.
for (Map.Entry<UUID, String> entry : _dao.loadSegments(_name).entrySet()... |
public class class_name {
@RequestMapping(value="/{subscription}", method=POST)
public @ResponseBody String receiveUpdate(
@PathVariable("subscription") String subscription,
@RequestBody String payload,
@RequestHeader(X_HUB_SIGNATURE) String signature) throws Exception {
// Can only read body once and we ... | public class class_name {
@RequestMapping(value="/{subscription}", method=POST)
public @ResponseBody String receiveUpdate(
@PathVariable("subscription") String subscription,
@RequestBody String payload,
@RequestHeader(X_HUB_SIGNATURE) String signature) throws Exception {
// Can only read body once and we ... |
public class class_name {
public static int getDelimiterOffset(final String line, final int start, final char delimiter) {
int idx = line.indexOf(delimiter, start);
if (idx >= 0) {
idx -= start - 1;
}
return idx;
} } | public class class_name {
public static int getDelimiterOffset(final String line, final int start, final char delimiter) {
int idx = line.indexOf(delimiter, start);
if (idx >= 0) {
idx -= start - 1;
// depends on control dependency: [if], data = [none]
}
return idx;
... |
public class class_name {
public static String encodeStringsAsBase64Parameter(List<String> strings) {
JSONArray array = new JSONArray();
for (String string : strings) {
array.put(string);
}
byte[] bytes;
try {
// use obfuscateBytes here to to make the ou... | public class class_name {
public static String encodeStringsAsBase64Parameter(List<String> strings) {
JSONArray array = new JSONArray();
for (String string : strings) {
array.put(string); // depends on control dependency: [for], data = [string]
}
byte[] bytes;
try {... |
public class class_name {
public static String concatenateUrls(String rootUrl, String path) {
if (rootUrl == null || rootUrl.isEmpty()) {
return path;
}
if (path == null || path.isEmpty()) {
return rootUrl;
}
String finalUrl;
if (rootUrl.charAt... | public class class_name {
public static String concatenateUrls(String rootUrl, String path) {
if (rootUrl == null || rootUrl.isEmpty()) {
return path; // depends on control dependency: [if], data = [none]
}
if (path == null || path.isEmpty()) {
return rootUrl; // depend... |
public class class_name {
public void setThreshold(final double THRESHOLD) {
if (Double.compare(THRESHOLD, minValue) >= 0 && Double.compare(THRESHOLD, maxValue) <= 0) {
threshold = THRESHOLD;
} else {
if (THRESHOLD < niceMinValue) {
threshold = niceMinValue;
... | public class class_name {
public void setThreshold(final double THRESHOLD) {
if (Double.compare(THRESHOLD, minValue) >= 0 && Double.compare(THRESHOLD, maxValue) <= 0) {
threshold = THRESHOLD; // depends on control dependency: [if], data = [none]
} else {
if (THRESHOLD < niceMinV... |
public class class_name {
public final EObject ruleDisjunction() throws RecognitionException {
EObject current = null;
Token otherlv_2=null;
EObject this_Conjunction_0 = null;
EObject lv_right_3_0 = null;
enterRule();
try {
// InternalXtext.g:1771:2: (... | public class class_name {
public final EObject ruleDisjunction() throws RecognitionException {
EObject current = null;
Token otherlv_2=null;
EObject this_Conjunction_0 = null;
EObject lv_right_3_0 = null;
enterRule();
try {
// InternalXtext.g:1771:2: (... |
public class class_name {
public JsonGetterContext getContext(String queryPath) {
JsonGetterContext context = internalCache.get(queryPath);
if (context != null) {
return context;
}
context = new JsonGetterContext(queryPath);
JsonGetterContext previousContextValue = i... | public class class_name {
public JsonGetterContext getContext(String queryPath) {
JsonGetterContext context = internalCache.get(queryPath);
if (context != null) {
return context; // depends on control dependency: [if], data = [none]
}
context = new JsonGetterContext(queryPat... |
public class class_name {
boolean addIndex(WriteStream out,
Page page,
Page newPage,
int saveSequence,
Type type,
int pid,
int nextPid,
int pageOffset,
int pa... | public class class_name {
boolean addIndex(WriteStream out,
Page page,
Page newPage,
int saveSequence,
Type type,
int pid,
int nextPid,
int pageOffset,
int pa... |
public class class_name {
private boolean isExpressionTreeUnsafe(Node tree, boolean followingSideEffectsExist) {
if (tree.isSpread()) {
// Spread expressions would cause recursive rewriting if not special cased here.
switch (tree.getParent().getToken()) {
case OBJECTLIT:
// Spreading ... | public class class_name {
private boolean isExpressionTreeUnsafe(Node tree, boolean followingSideEffectsExist) {
if (tree.isSpread()) {
// Spread expressions would cause recursive rewriting if not special cased here.
switch (tree.getParent().getToken()) {
case OBJECTLIT:
// Spreading ... |
public class class_name {
public static String getDefaultPortForScheme(final String scheme) {
if ("ftp".equals(scheme)) {
return "21";
}
if ("file".equals(scheme)) {
return null;
}
if ("gopher".equals(scheme)) {
return "70";
}
... | public class class_name {
public static String getDefaultPortForScheme(final String scheme) {
if ("ftp".equals(scheme)) {
return "21"; // depends on control dependency: [if], data = [none]
}
if ("file".equals(scheme)) {
return null; // depends on control dependency: [if]... |
public class class_name {
public void marshall(AttributeKey attributeKey, ProtocolMarshaller protocolMarshaller) {
if (attributeKey == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(attributeKey.get... | public class class_name {
public void marshall(AttributeKey attributeKey, ProtocolMarshaller protocolMarshaller) {
if (attributeKey == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(attributeKey.get... |
public class class_name {
private static boolean isTransformPossible(byte[] bytes) {
if (bytes.length < 8) {
return false;
}
// The transform method will be called for all classes, but ASM is only
// capable of processing some class file format versions. That's ok
... | public class class_name {
private static boolean isTransformPossible(byte[] bytes) {
if (bytes.length < 8) {
return false; // depends on control dependency: [if], data = [none]
}
// The transform method will be called for all classes, but ASM is only
// capable of processin... |
public class class_name {
public static String getPropertyNameConvention(Object object, String suffix) {
if (object != null) {
Class<?> type = object.getClass();
if (type.isArray()) {
return getPropertyName(type.getComponentType()) + suffix + "Array";
}
... | public class class_name {
public static String getPropertyNameConvention(Object object, String suffix) {
if (object != null) {
Class<?> type = object.getClass();
if (type.isArray()) {
return getPropertyName(type.getComponentType()) + suffix + "Array"; // depends on contr... |
public class class_name {
private JSONArray datesToJson(Collection<Date> individualDates) {
if (null != individualDates) {
JSONArray result = new JSONArray();
for (Date d : individualDates) {
result.put(dateToJson(d));
}
return result;
}
... | public class class_name {
private JSONArray datesToJson(Collection<Date> individualDates) {
if (null != individualDates) {
JSONArray result = new JSONArray();
for (Date d : individualDates) {
result.put(dateToJson(d)); // depends on control dependency: [for], data = [d]... |
public class class_name {
private void prefetchRelationships(Query query)
{
List prefetchedRel;
Collection owners;
String relName;
RelationshipPrefetcher[] prefetchers;
if (query == null || query.getPrefetchedRelationships() == null || query.getPrefetchedRelationship... | public class class_name {
private void prefetchRelationships(Query query)
{
List prefetchedRel;
Collection owners;
String relName;
RelationshipPrefetcher[] prefetchers;
if (query == null || query.getPrefetchedRelationships() == null || query.getPrefetchedRelationship... |
public class class_name {
public boolean applyLayout(Layout layout) {
boolean applied = false;
if (layout != null && isValidLayout(layout)) {
Layout defaultLayout = getDefaultLayout();
if (layout != defaultLayout) {
mLayouts.remove(defaultLayout);
}
... | public class class_name {
public boolean applyLayout(Layout layout) {
boolean applied = false;
if (layout != null && isValidLayout(layout)) {
Layout defaultLayout = getDefaultLayout();
if (layout != defaultLayout) {
mLayouts.remove(defaultLayout); // depends on ... |
public class class_name {
static Policy getPolicy() {
final SecurityManager sm = System.getSecurityManager();
if (sm != null) {
return AccessController.doPrivileged(new PrivilegedAction<Policy>() {
public Policy run() {
return Policy.getPolicy();
... | public class class_name {
static Policy getPolicy() {
final SecurityManager sm = System.getSecurityManager();
if (sm != null) {
return AccessController.doPrivileged(new PrivilegedAction<Policy>() {
public Policy run() {
return Policy.getPolicy();
... |
public class class_name {
@Override
public MatchResponse getMatchResponse(SecurityConstraint securityConstraint, String resourceName, String method) {
CollectionMatch collectionMatch = getCollectionMatch(securityConstraint.getWebResourceCollections(), resourceName, method);
if (CollectionMatch.RESP... | public class class_name {
@Override
public MatchResponse getMatchResponse(SecurityConstraint securityConstraint, String resourceName, String method) {
CollectionMatch collectionMatch = getCollectionMatch(securityConstraint.getWebResourceCollections(), resourceName, method);
if (CollectionMatch.RESP... |
public class class_name {
public KeysAndAttributes withKeys(Key... keys) {
if (getKeys() == null) setKeys(new java.util.ArrayList<Key>(keys.length));
for (Key value : keys) {
getKeys().add(value);
}
return this;
} } | public class class_name {
public KeysAndAttributes withKeys(Key... keys) {
if (getKeys() == null) setKeys(new java.util.ArrayList<Key>(keys.length));
for (Key value : keys) {
getKeys().add(value); // depends on control dependency: [for], data = [value]
}
return this;
} } |
public class class_name {
private String sortWeakReferenceValues(String name, String value) {
Set<String> refs = new TreeSet<>();
DocViewProperty prop = DocViewProperty.parse(name, value);
for (int i = 0; i < prop.values.length; i++) {
refs.add(prop.values[i]);
}
List<Value> values = new Arra... | public class class_name {
private String sortWeakReferenceValues(String name, String value) {
Set<String> refs = new TreeSet<>();
DocViewProperty prop = DocViewProperty.parse(name, value);
for (int i = 0; i < prop.values.length; i++) {
refs.add(prop.values[i]); // depends on control dependency: [for]... |
public class class_name {
private TableLoadResult createScheduleExceptionsTable() {
// check to see if the schedule_exceptions table exists
boolean scheduleExceptionsTableExists = tableExists(feedIdToSnapshot, "schedule_exceptions");
String scheduleExceptionsTableName = tablePrefix + "schedule_... | public class class_name {
private TableLoadResult createScheduleExceptionsTable() {
// check to see if the schedule_exceptions table exists
boolean scheduleExceptionsTableExists = tableExists(feedIdToSnapshot, "schedule_exceptions");
String scheduleExceptionsTableName = tablePrefix + "schedule_... |
public class class_name {
private List<String> findUrlsInAttributeValue(final String attributeValue) {
List<String> foundUrls = new ArrayList<>();
urlPatterns.stream()
.map((Pattern urlPattern) -> urlPattern.matcher(attributeValue))
.forEach((Matcher urlPatternMatcher) ... | public class class_name {
private List<String> findUrlsInAttributeValue(final String attributeValue) {
List<String> foundUrls = new ArrayList<>();
urlPatterns.stream()
.map((Pattern urlPattern) -> urlPattern.matcher(attributeValue))
.forEach((Matcher urlPatternMatcher) ... |
public class class_name {
private static String toJSON(CustomManifest cm) {
String output = null;
if (cm != null) {
String alg = cm.getAlgorithm();
String fi = cm.getFeatureId();
String fn = cm.getFeatureName();
String desc = cm.getDescription();
... | public class class_name {
private static String toJSON(CustomManifest cm) {
String output = null;
if (cm != null) {
String alg = cm.getAlgorithm();
String fi = cm.getFeatureId();
String fn = cm.getFeatureName();
String desc = cm.getDescription();
... |
public class class_name {
private static String uencode(String prefix) {
if (prefix != null && prefix.startsWith("file:")) {
StringTokenizer tokens = new StringTokenizer(prefix, "/\\:", true);
StringBuilder stringBuilder = new StringBuilder();
while (tokens.hasMoreElements()... | public class class_name {
private static String uencode(String prefix) {
if (prefix != null && prefix.startsWith("file:")) {
StringTokenizer tokens = new StringTokenizer(prefix, "/\\:", true);
StringBuilder stringBuilder = new StringBuilder();
while (tokens.hasMoreElements()... |
public class class_name {
public ImageSource apply(ImageSource input) {
ImageSource originalImage = input;
int width = originalImage.getWidth();
int height = originalImage.getHeight();
boolean[][] matrix = new boolean[width][height]; // black n white boolean matrix; true = blck, false... | public class class_name {
public ImageSource apply(ImageSource input) {
ImageSource originalImage = input;
int width = originalImage.getWidth();
int height = originalImage.getHeight();
boolean[][] matrix = new boolean[width][height]; // black n white boolean matrix; true = blck, false... |
public class class_name {
protected JSONObject getJSONObject(final String jsonString) {
JSONObject json = new JSONObject();
try {
json = new JSONObject(jsonString);
}
catch(NullPointerException e) {
LOGGER.error("JSON string cannot be null.", e);
}
catch(JSONException e) {
LOG... | public class class_name {
protected JSONObject getJSONObject(final String jsonString) {
JSONObject json = new JSONObject();
try {
json = new JSONObject(jsonString); // depends on control dependency: [try], data = [none]
}
catch(NullPointerException e) {
LOGGER.error("JSON string cannot be n... |
public class class_name {
public static Intent showStreetView(float latitude,
float longitude,
Float yaw,
Integer pitch,
Float zoom,
... | public class class_name {
public static Intent showStreetView(float latitude,
float longitude,
Float yaw,
Integer pitch,
Float zoom,
... |
public class class_name {
public NetworkConnectionType getCurrentConnectionType() {
NetworkInfo activeNetworkInfo = getActiveNetworkInfo();
if (activeNetworkInfo == null || !isInternetAccessAvailable()) {
return NetworkConnectionType.NO_CONNECTION;
}
switch (activeNetworkIn... | public class class_name {
public NetworkConnectionType getCurrentConnectionType() {
NetworkInfo activeNetworkInfo = getActiveNetworkInfo();
if (activeNetworkInfo == null || !isInternetAccessAvailable()) {
return NetworkConnectionType.NO_CONNECTION; // depends on control dependency: [if], d... |
public class class_name {
public static void copyStream(InputStream copyFrom, OutputStream copyTo,
GeoPackageProgress progress) throws IOException {
try {
byte[] buffer = new byte[1024];
int length;
while ((progress == null || progress.isActive())
&& (length = copyFrom.read(buffer)) > 0) {
copy... | public class class_name {
public static void copyStream(InputStream copyFrom, OutputStream copyTo,
GeoPackageProgress progress) throws IOException {
try {
byte[] buffer = new byte[1024];
int length;
while ((progress == null || progress.isActive())
&& (length = copyFrom.read(buffer)) > 0) {
copy... |
public class class_name {
public void remove(String id) {
final Lock writeLock = lock.writeLock();
try {
writeLock.lock();
final int index = ids.indexOf(id);
if (index > -1) {
tasks.remove(index);
patterns.remove(index);
ids.remove(index);
size--;
}
} finally {
writeLoc... | public class class_name {
public void remove(String id) {
final Lock writeLock = lock.writeLock();
try {
writeLock.lock();
// depends on control dependency: [try], data = [none]
final int index = ids.indexOf(id);
if (index > -1) {
tasks.remove(index);
// depends on control dependency: [if], dat... |
public class class_name {
protected boolean doesLevelMatch(final Level level, final CSNodeWrapper node, boolean matchContent) {
if (!EntityUtilities.isNodeALevel(node)) return false;
// If the unique id is not from the parser, than use the unique id to compare
if (level.getUniqueId() != null &... | public class class_name {
protected boolean doesLevelMatch(final Level level, final CSNodeWrapper node, boolean matchContent) {
if (!EntityUtilities.isNodeALevel(node)) return false;
// If the unique id is not from the parser, than use the unique id to compare
if (level.getUniqueId() != null &... |
public class class_name {
public boolean deleteValue(AssociationValue associationValue) {
if (idByValue.containsKey(associationValue)) {
for (ListGridRecord record : getRecords()) {
if (record.getAttributeAsObject(VALUE_HOLDER_RECORD_ATTRIBUTE) == associationValue) {
removeData(record);
idByValue.re... | public class class_name {
public boolean deleteValue(AssociationValue associationValue) {
if (idByValue.containsKey(associationValue)) {
for (ListGridRecord record : getRecords()) {
if (record.getAttributeAsObject(VALUE_HOLDER_RECORD_ATTRIBUTE) == associationValue) {
removeData(record); // depends on con... |
public class class_name {
public static GrayU8 convert(GrayF64 input , double min , double max , int numValues , GrayU8 output )
{
if (output == null) {
output = new GrayU8(input.width, input.height);
} else {
output.reshape(input.width,input.height);
}
if( numValues < 0 || numValues > 256 )
throw ne... | public class class_name {
public static GrayU8 convert(GrayF64 input , double min , double max , int numValues , GrayU8 output )
{
if (output == null) {
output = new GrayU8(input.width, input.height); // depends on control dependency: [if], data = [none]
} else {
output.reshape(input.width,input.height); //... |
public class class_name {
public GetFaceDetectionResult withFaces(FaceDetection... faces) {
if (this.faces == null) {
setFaces(new java.util.ArrayList<FaceDetection>(faces.length));
}
for (FaceDetection ele : faces) {
this.faces.add(ele);
}
return this;
... | public class class_name {
public GetFaceDetectionResult withFaces(FaceDetection... faces) {
if (this.faces == null) {
setFaces(new java.util.ArrayList<FaceDetection>(faces.length)); // depends on control dependency: [if], data = [none]
}
for (FaceDetection ele : faces) {
... |
public class class_name {
public int getDifference(ReadableInstant instant) {
if (instant == null) {
return getField().getDifference(getMillis(), DateTimeUtils.currentTimeMillis());
}
return getField().getDifference(getMillis(), instant.getMillis());
} } | public class class_name {
public int getDifference(ReadableInstant instant) {
if (instant == null) {
return getField().getDifference(getMillis(), DateTimeUtils.currentTimeMillis()); // depends on control dependency: [if], data = [none]
}
return getField().getDifference(getMillis(), ... |
public class class_name {
protected EmbeddedCacheManager createCacheManager(Properties properties, ServiceRegistry serviceRegistry) {
for (EmbeddedCacheManagerProvider provider : ServiceLoader.load(EmbeddedCacheManagerProvider.class, EmbeddedCacheManagerProvider.class.getClassLoader())) {
EmbeddedCacheM... | public class class_name {
protected EmbeddedCacheManager createCacheManager(Properties properties, ServiceRegistry serviceRegistry) {
for (EmbeddedCacheManagerProvider provider : ServiceLoader.load(EmbeddedCacheManagerProvider.class, EmbeddedCacheManagerProvider.class.getClassLoader())) {
EmbeddedCacheM... |
public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
public void sleeRunning() throws InvalidStateException {
// if entity is active then activate the ra object
if (this.state.isActive()) {
if (setFTContext) {
setFTContext = false;
if (object.isFaultTolerant()) {
// se... | public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
public void sleeRunning() throws InvalidStateException {
// if entity is active then activate the ra object
if (this.state.isActive()) {
if (setFTContext) {
setFTContext = false;
if (object.isFaultTolerant()) {
// se... |
public class class_name {
public boolean get(final T key, final GetOp op) {
if (SHOULD_CHECK) {
requireNonNull(key);
requireNonNull(op);
checkNotClosed();
txn.checkReady();
}
kv.keyIn(key);
final int rc = LIB.mdb_cursor_get(ptrCursor, kv.pointerKey(), kv
... | public class class_name {
public boolean get(final T key, final GetOp op) {
if (SHOULD_CHECK) {
requireNonNull(key); // depends on control dependency: [if], data = [none]
requireNonNull(op); // depends on control dependency: [if], data = [none]
checkNotClosed(); // depends on control dependency: ... |
public class class_name {
@Override
public void unset(String propName) {
if (propName.equals(PROP_ST)) {
unsetSt();
}
if (propName.equals(PROP_STATE_OR_PROVINCE_NAME)) {
unsetStateOrProvinceName();
}
if (propName.equals(PROP_STREET)) {
uns... | public class class_name {
@Override
public void unset(String propName) {
if (propName.equals(PROP_ST)) {
unsetSt(); // depends on control dependency: [if], data = [none]
}
if (propName.equals(PROP_STATE_OR_PROVINCE_NAME)) {
unsetStateOrProvinceName(); // depends on c... |
public class class_name {
public void marshall(StartTimerFailedEventAttributes startTimerFailedEventAttributes, ProtocolMarshaller protocolMarshaller) {
if (startTimerFailedEventAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(StartTimerFailedEventAttributes startTimerFailedEventAttributes, ProtocolMarshaller protocolMarshaller) {
if (startTimerFailedEventAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
@Override
public XBELInternalAnnotationDefinition convert(AnnotationDefinition t) {
if (t == null || t.getURL() != null) {
return null;
}
XBELInternalAnnotationDefinition dest =
new XBELInternalAnnotationDefinition();
String de... | public class class_name {
@Override
public XBELInternalAnnotationDefinition convert(AnnotationDefinition t) {
if (t == null || t.getURL() != null) {
return null; // depends on control dependency: [if], data = [none]
}
XBELInternalAnnotationDefinition dest =
new ... |
public class class_name {
private static String printStatement(Context context, JCStatement statement) {
StringWriter writer = new StringWriter();
try {
pretty(context, writer).printStat(statement);
} catch (IOException e) {
throw new AssertionError("StringWriter cannot throw IOExceptions");
... | public class class_name {
private static String printStatement(Context context, JCStatement statement) {
StringWriter writer = new StringWriter();
try {
pretty(context, writer).printStat(statement); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
throw new Asser... |
public class class_name {
@Override
public void doUpdates(MetricsContext unused) {
synchronized (this) {
for (MetricsBase m : registry.getMetricsList()) {
m.pushMetric(metricsRecord);
}
}
metricsRecord.update();
} } | public class class_name {
@Override
public void doUpdates(MetricsContext unused) {
synchronized (this) {
for (MetricsBase m : registry.getMetricsList()) {
m.pushMetric(metricsRecord); // depends on control dependency: [for], data = [m]
}
}
metricsRecord.update();
} } |
public class class_name {
private Result buildResult(Filter<S> filter, OrderingList<S> ordering, QueryHints hints)
throws SupportException, RepositoryException
{
List<IndexedQueryAnalyzer<S>.Result> subResults;
if (filter == null) {
subResults = Collections
... | public class class_name {
private Result buildResult(Filter<S> filter, OrderingList<S> ordering, QueryHints hints)
throws SupportException, RepositoryException
{
List<IndexedQueryAnalyzer<S>.Result> subResults;
if (filter == null) {
subResults = Collections
... |
public class class_name {
private Duration getRangeDurationWholeDay(ProjectCalendar projectCalendar, TimescaleUnits rangeUnits, DateRange range, List<TimephasedWork> assignments, int startIndex)
{
// option 1:
// Our date range starts before the start of the TRA at the start index.
// We can guara... | public class class_name {
private Duration getRangeDurationWholeDay(ProjectCalendar projectCalendar, TimescaleUnits rangeUnits, DateRange range, List<TimephasedWork> assignments, int startIndex)
{
// option 1:
// Our date range starts before the start of the TRA at the start index.
// We can guara... |
public class class_name {
public void drawMarker(final ToggleButton dragged, final double x, final double y) {
final int draggedIdx = getBox().getChildren().indexOf(dragged);
final int markerIdx = getBox().getChildren().indexOf(this.marker);
int idx = 0;
Node tempHoverNode = null;
... | public class class_name {
public void drawMarker(final ToggleButton dragged, final double x, final double y) {
final int draggedIdx = getBox().getChildren().indexOf(dragged);
final int markerIdx = getBox().getChildren().indexOf(this.marker);
int idx = 0;
Node tempHoverNode = null;
... |
public class class_name {
public static int copy(InputStream is, OutputStream os, boolean closeOs) {
if (closeOs) {
return write(is).ensureCloseSink().to(os);
} else {
return write(is).to(os);
}
} } | public class class_name {
public static int copy(InputStream is, OutputStream os, boolean closeOs) {
if (closeOs) {
return write(is).ensureCloseSink().to(os); // depends on control dependency: [if], data = [none]
} else {
return write(is).to(os); // depends on control dependency... |
public class class_name {
private CallStatus beforePromotion() {
NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine();
InternalOperationService operationService = nodeEngine.getOperationService();
InternalPartitionServiceImpl partitionService = getService();
if (!partitionServi... | public class class_name {
private CallStatus beforePromotion() {
NodeEngineImpl nodeEngine = (NodeEngineImpl) getNodeEngine();
InternalOperationService operationService = nodeEngine.getOperationService();
InternalPartitionServiceImpl partitionService = getService();
if (!partitionServi... |
public class class_name {
public HadoopJarStepConfig newInstallPigStep(String... pigVersions) {
if (pigVersions != null && pigVersions.length > 0) {
return newHivePigStep("pig", "--install-pig", "--pig-versions",
StringUtils.join(",", pigVersions));
}
return newH... | public class class_name {
public HadoopJarStepConfig newInstallPigStep(String... pigVersions) {
if (pigVersions != null && pigVersions.length > 0) {
return newHivePigStep("pig", "--install-pig", "--pig-versions",
StringUtils.join(",", pigVersions)); // depends on control depende... |
public class class_name {
public void initBinaryChunks(Base64Variant v, CharArrayBase64Decoder dec, boolean firstChunk)
{
if (mInputStart < 0) { // non-shared
dec.init(v, firstChunk, mCurrentSegment, 0, mCurrentSize, mSegments);
} else { // shared
dec.init(v, firstChunk, mIn... | public class class_name {
public void initBinaryChunks(Base64Variant v, CharArrayBase64Decoder dec, boolean firstChunk)
{
if (mInputStart < 0) { // non-shared
dec.init(v, firstChunk, mCurrentSegment, 0, mCurrentSize, mSegments); // depends on control dependency: [if], data = [none]
} el... |
public class class_name {
public JobEnableOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) {
if (ifUnmodifiedSince == null) {
this.ifUnmodifiedSince = null;
} else {
this.ifUnmodifiedSince = new DateTimeRfc1123(ifUnmodifiedSince);
}
return this;
} } | public class class_name {
public JobEnableOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) {
if (ifUnmodifiedSince == null) {
this.ifUnmodifiedSince = null; // depends on control dependency: [if], data = [none]
} else {
this.ifUnmodifiedSince = new DateTimeRfc1123(ifUnm... |
public class class_name {
public void writeClassInterface()
{
Record recClassInfo = this.getMainRecord();
String strClassName = recClassInfo.getField(ClassInfo.CLASS_NAME).getString();
String strBaseClass = recClassInfo.getField(ClassInfo.BASE_CLASS_NAME).getString();
String strClas... | public class class_name {
public void writeClassInterface()
{
Record recClassInfo = this.getMainRecord();
String strClassName = recClassInfo.getField(ClassInfo.CLASS_NAME).getString();
String strBaseClass = recClassInfo.getField(ClassInfo.BASE_CLASS_NAME).getString();
String strClas... |
public class class_name {
public static Collection<String> split(final String value) {
if (value == null) {
return Collections.emptyList();
}
final String[] tokens = value.trim().split("\\s+");
return asList(tokens);
} } | public class class_name {
public static Collection<String> split(final String value) {
if (value == null) {
return Collections.emptyList(); // depends on control dependency: [if], data = [none]
}
final String[] tokens = value.trim().split("\\s+");
return asList(tokens);
... |
public class class_name {
private String makeMessageForParseException(ParseException exception) {
final StringBuilder sb = new StringBuilder("Parse error. Found ");
final StringBuilder expected = new StringBuilder();
int maxExpectedTokenSequenceLength = 0;
TreeSet<String> sortedOptions... | public class class_name {
private String makeMessageForParseException(ParseException exception) {
final StringBuilder sb = new StringBuilder("Parse error. Found ");
final StringBuilder expected = new StringBuilder();
int maxExpectedTokenSequenceLength = 0;
TreeSet<String> sortedOptions... |
public class class_name {
public String toAgentArg() {
StringBuilder arg = new StringBuilder();
for (Map.Entry<String,String> entry : options.entrySet()) {
String key = entry.getKey();
if (!key.equals("quiet") && !key.equals("verbose")) {
arg.append(key).append("... | public class class_name {
public String toAgentArg() {
StringBuilder arg = new StringBuilder();
for (Map.Entry<String,String> entry : options.entrySet()) {
String key = entry.getKey();
if (!key.equals("quiet") && !key.equals("verbose")) {
arg.append(key).append("... |
public class class_name {
public void removeNodeStateListener(NodeStateListener listener)
{
stateCheck(State.CREATED, State.RUNNING, State.SHUTTING_DOWN, State.QUEUING);
try
{
stateListeners.remove(listener);
nodeListLock.readLock().lock();
for (RiakNode ... | public class class_name {
public void removeNodeStateListener(NodeStateListener listener)
{
stateCheck(State.CREATED, State.RUNNING, State.SHUTTING_DOWN, State.QUEUING);
try
{
stateListeners.remove(listener); // depends on control dependency: [try], data = [none]
nod... |
public class class_name {
Stream<String> writeTimeGauge(TimeGauge gauge) {
Double value = gauge.value(getBaseTimeUnit());
if (Double.isFinite(value)) {
return Stream.of(event(gauge.getId(), new Attribute("value", value)));
}
return Stream.empty();
} } | public class class_name {
Stream<String> writeTimeGauge(TimeGauge gauge) {
Double value = gauge.value(getBaseTimeUnit());
if (Double.isFinite(value)) {
return Stream.of(event(gauge.getId(), new Attribute("value", value))); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override public void tableChanged(final TableModelEvent e) {
if (e.getFirstRow() == TableModelEvent.HEADER_ROW) {
return; // Do not respond to changes in the number of columns here, only row and data changes.
}
// ColumnWidthsResizer requires that the in... | public class class_name {
@Override public void tableChanged(final TableModelEvent e) {
if (e.getFirstRow() == TableModelEvent.HEADER_ROW) {
return; // Do not respond to changes in the number of columns here, only row and data changes. // depends on control dependency: [if], data = [none]
... |
public class class_name {
public final DRL5Expressions.operator_key_return operator_key() throws RecognitionException {
DRL5Expressions.operator_key_return retval = new DRL5Expressions.operator_key_return();
retval.start = input.LT(1);
Token id=null;
try {
// src/main/resources/org/drools/compiler/lang/DR... | public class class_name {
public final DRL5Expressions.operator_key_return operator_key() throws RecognitionException {
DRL5Expressions.operator_key_return retval = new DRL5Expressions.operator_key_return();
retval.start = input.LT(1);
Token id=null;
try {
// src/main/resources/org/drools/compiler/lang/DR... |
public class class_name {
private Set<String> getExcludes() {
Set<String> result = new HashSet<String>();
for (String exclude : kp.getExcludes()) {
String name = exclude + ".class";
String renamed = renames.get(name);
result.add((renamed != null) ? renamed : name);
... | public class class_name {
private Set<String> getExcludes() {
Set<String> result = new HashSet<String>();
for (String exclude : kp.getExcludes()) {
String name = exclude + ".class";
String renamed = renames.get(name);
result.add((renamed != null) ? renamed : name); /... |
public class class_name {
public static <T> Set<T> iteratorToSet(Iterator<T> iterator) {
Set<T> set = new HashSet<>();
while (iterator.hasNext()) {
set.add(iterator.next());
}
return set;
} } | public class class_name {
public static <T> Set<T> iteratorToSet(Iterator<T> iterator) {
Set<T> set = new HashSet<>();
while (iterator.hasNext()) {
set.add(iterator.next()); // depends on control dependency: [while], data = [none]
}
return set;
} } |
public class class_name {
public final void addValue(@NonNull final String value) {
Condition.INSTANCE.ensureNotNull(value, "The value may not be null");
if (this.values != null) {
if (this.values.add(value)) {
if (persistSet(this.values)) {
notifyChange... | public class class_name {
public final void addValue(@NonNull final String value) {
Condition.INSTANCE.ensureNotNull(value, "The value may not be null");
if (this.values != null) {
if (this.values.add(value)) {
if (persistSet(this.values)) {
notifyChange... |
public class class_name {
public static boolean validatePath(String path) {
if(path == null) {
Log.w(TAG, "Uploading path not set");
return false;
}
try {
uriFromString(path);
return true;
} catch(DataSinkException e) {
return... | public class class_name {
public static boolean validatePath(String path) {
if(path == null) {
Log.w(TAG, "Uploading path not set"); // depends on control dependency: [if], data = [none]
return false; // depends on control dependency: [if], data = [none]
}
try {
... |
public class class_name {
public void marshall(QuietTime quietTime, ProtocolMarshaller protocolMarshaller) {
if (quietTime == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(quietTime.getEnd(), END_B... | public class class_name {
public void marshall(QuietTime quietTime, ProtocolMarshaller protocolMarshaller) {
if (quietTime == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(quietTime.getEnd(), END_B... |
public class class_name {
static int closestCorner4(Grid g ) {
double bestDistance = g.get(0,0).center.normSq();
int bestIdx = 0;
double d = g.get(0,g.columns-1).center.normSq();
if( d < bestDistance ) {
bestDistance = d;
bestIdx = 3;
}
d = g.get(g.rows-1,g.columns-1).center.normSq();
if( d < best... | public class class_name {
static int closestCorner4(Grid g ) {
double bestDistance = g.get(0,0).center.normSq();
int bestIdx = 0;
double d = g.get(0,g.columns-1).center.normSq();
if( d < bestDistance ) {
bestDistance = d; // depends on control dependency: [if], data = [none]
bestIdx = 3; // depends on c... |
public class class_name {
private void deriveProjectCalendar()
{
//
// Count the number of times each calendar is used
//
Map<ProjectCalendar, Integer> map = new HashMap<ProjectCalendar, Integer>();
for (Task task : m_project.getTasks())
{
ProjectCalendar calendar = task... | public class class_name {
private void deriveProjectCalendar()
{
//
// Count the number of times each calendar is used
//
Map<ProjectCalendar, Integer> map = new HashMap<ProjectCalendar, Integer>();
for (Task task : m_project.getTasks())
{
ProjectCalendar calendar = task... |
public class class_name {
public Observable<ServiceResponse<TransparentDataEncryptionInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String serverName, String databaseName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.clie... | public class class_name {
public Observable<ServiceResponse<TransparentDataEncryptionInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String serverName, String databaseName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.clie... |
public class class_name {
public static void loadLibrary(
String libraryName, String ... dependentLibraryNames)
{
logger.log(level, "Loading library: " + libraryName);
// First, try to load the specified library as a file
// that is visible in the default search path
... | public class class_name {
public static void loadLibrary(
String libraryName, String ... dependentLibraryNames)
{
logger.log(level, "Loading library: " + libraryName);
// First, try to load the specified library as a file
// that is visible in the default search path
... |
public class class_name {
private Class<?> getTemplateClass() {
String fqName = getTargetPackage() + "." + getName();
try {
mTemplateClass = getCompiler().loadClass(fqName);
}
catch (ClassNotFoundException nx) {
try {
mTemplateClass = getCompiler(... | public class class_name {
private Class<?> getTemplateClass() {
String fqName = getTargetPackage() + "." + getName();
try {
mTemplateClass = getCompiler().loadClass(fqName);
}
catch (ClassNotFoundException nx) {
try {
mTemplateClass = getCompiler(... |
public class class_name {
private void setLastOpenedGallery(CmsGallerySearchBean searchObject) {
if ((searchObject.getGalleries() != null)
&& (searchObject.getGalleries().size() <= 1) // if the size is 0, the user has actively deselected the galleries, so we want to handle this case too
... | public class class_name {
private void setLastOpenedGallery(CmsGallerySearchBean searchObject) {
if ((searchObject.getGalleries() != null)
&& (searchObject.getGalleries().size() <= 1) // if the size is 0, the user has actively deselected the galleries, so we want to handle this case too
... |
public class class_name {
public void getPersistentData(ObjectOutputStream oos)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getPersistentData", oos);
try
{
HashMap hm = new HashMap();
hm.put("tick", Long.valueOf(_tick));
oos.writeOb... | public class class_name {
public void getPersistentData(ObjectOutputStream oos)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getPersistentData", oos);
try
{
HashMap hm = new HashMap();
hm.put("tick", Long.valueOf(_tick)); // depends on control de... |
public class class_name {
public byte[] getObjectContent(GetObjectRequest request) {
BosObjectInputStream content = this.getObject(request).getObjectContent();
try {
return IOUtils.toByteArray(content);
} catch (IOException e) {
try {
content.close();
... | public class class_name {
public byte[] getObjectContent(GetObjectRequest request) {
BosObjectInputStream content = this.getObject(request).getObjectContent();
try {
return IOUtils.toByteArray(content); // depends on control dependency: [try], data = [none]
} catch (IOException e) {... |
public class class_name {
public final int getFirstAttribute(int nodeHandle)
{
int nodeID = makeNodeIdentity(nodeHandle);
if (nodeID == DTM.NULL)
return DTM.NULL;
int type = _type2(nodeID);
if (DTM.ELEMENT_NODE == type)
{
// Assume that attributes and namespaces immediately follow ... | public class class_name {
public final int getFirstAttribute(int nodeHandle)
{
int nodeID = makeNodeIdentity(nodeHandle);
if (nodeID == DTM.NULL)
return DTM.NULL;
int type = _type2(nodeID);
if (DTM.ELEMENT_NODE == type)
{
// Assume that attributes and namespaces immediately follow ... |
public class class_name {
private void cleanupIfNeccessary(JsonGetterContext excluded) {
int cacheCount;
while ((cacheCount = internalCache.size()) > maxContexts) {
int sampleCount = Math.max(cacheCount - maxContexts, cleanupRemoveAtLeastItems) + 1;
for (SamplingEntry sample: in... | public class class_name {
private void cleanupIfNeccessary(JsonGetterContext excluded) {
int cacheCount;
while ((cacheCount = internalCache.size()) > maxContexts) {
int sampleCount = Math.max(cacheCount - maxContexts, cleanupRemoveAtLeastItems) + 1;
for (SamplingEntry sample: in... |
public class class_name {
@Deprecated
protected void onFailure(AsyncRequest<D, RQ> asyncRequest, Throwable throwable) {
for (AsyncRequest.Thunk thunk: asyncRequest.getThunks()) {
thunk.callback.onFailure(throwable);
}
} } | public class class_name {
@Deprecated
protected void onFailure(AsyncRequest<D, RQ> asyncRequest, Throwable throwable) {
for (AsyncRequest.Thunk thunk: asyncRequest.getThunks()) {
thunk.callback.onFailure(throwable); // depends on control dependency: [for], data = [thunk]
}
} } |
public class class_name {
@SuppressWarnings("unchecked")
@Override
public void setCustomGlobalProcessors(Map<String, String> keysClassNames) {
for (Entry<String, String> entry : keysClassNames.entrySet()) {
GlobalProcessor<T> customGlobalPreprocessor = (GlobalProcessor<T>) ClassLoaderResourceUtils
.buildO... | public class class_name {
@SuppressWarnings("unchecked")
@Override
public void setCustomGlobalProcessors(Map<String, String> keysClassNames) {
for (Entry<String, String> entry : keysClassNames.entrySet()) {
GlobalProcessor<T> customGlobalPreprocessor = (GlobalProcessor<T>) ClassLoaderResourceUtils
.buildO... |
public class class_name {
public void awaitResponses(long timeout, TimeUnit unit) {
Iterator<Entry<Integer, Entry<ChannelFuture, ChannelPromise>>> itr = streamidPromiseMap.entrySet().iterator();
while (itr.hasNext()) {
Entry<Integer, Entry<ChannelFuture, ChannelPromise>> entry = itr.next();... | public class class_name {
public void awaitResponses(long timeout, TimeUnit unit) {
Iterator<Entry<Integer, Entry<ChannelFuture, ChannelPromise>>> itr = streamidPromiseMap.entrySet().iterator();
while (itr.hasNext()) {
Entry<Integer, Entry<ChannelFuture, ChannelPromise>> entry = itr.next();... |
public class class_name {
public static String swapCase(String str) {
int strLen;
if (str == null || (strLen = str.length()) == 0) {
return str;
}
StringBuilder buffer = new StringBuilder( strLen );
char ch = 0;
for (int i = 0; i < strLen; i++) {
ch = str.charAt(i... | public class class_name {
public static String swapCase(String str) {
int strLen;
if (str == null || (strLen = str.length()) == 0) {
return str; // depends on control dependency: [if], data = [none]
}
StringBuilder buffer = new StringBuilder( strLen );
char ch = 0;
for (int... |
public class class_name {
public static String normalizePath(String path) {
requireNonNull(path, "path");
if (path.isEmpty()) {
return "/";
}
if (!path.startsWith("/")) {
path = '/' + path;
}
if (!path.endsWith("/")) {
path += '/';
... | public class class_name {
public static String normalizePath(String path) {
requireNonNull(path, "path");
if (path.isEmpty()) {
return "/"; // depends on control dependency: [if], data = [none]
}
if (!path.startsWith("/")) {
path = '/' + path; // depends on cont... |
public class class_name {
void build_feature_space()
{
kFormInFeaturespace = 0;
kNilForm = forms_alphabet.idOf(SpecialOption.NIL);
kFeatureSpaceEnd = forms_alphabet.size();
kPostagInFeaturespace = kFeatureSpaceEnd;
kNilPostag = kFeatureSpaceEnd + postags_alphabet.idOf(Speci... | public class class_name {
void build_feature_space()
{
kFormInFeaturespace = 0;
kNilForm = forms_alphabet.idOf(SpecialOption.NIL);
kFeatureSpaceEnd = forms_alphabet.size();
kPostagInFeaturespace = kFeatureSpaceEnd;
kNilPostag = kFeatureSpaceEnd + postags_alphabet.idOf(Speci... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.