code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static boolean isFieldAccessChange(final int oldAccess, final int newAccess) {
if (isAccessIncompatible(oldAccess, newAccess)) {
return true; // 13.4.7
}
if ( not(oldAccess, Opcodes.ACC_FINAL) && has(newAccess, Opcodes.ACC_FINAL) ) {
retu... | public class class_name {
public static boolean isFieldAccessChange(final int oldAccess, final int newAccess) {
if (isAccessIncompatible(oldAccess, newAccess)) {
return true; // 13.4.7 // depends on control dependency: [if], data = [none]
}
if ( not(oldAccess, Opcodes.ACC_FINAL) && ... |
public class class_name {
public ListBackupSelectionsResult withBackupSelectionsList(BackupSelectionsListMember... backupSelectionsList) {
if (this.backupSelectionsList == null) {
setBackupSelectionsList(new java.util.ArrayList<BackupSelectionsListMember>(backupSelectionsList.length));
}
... | public class class_name {
public ListBackupSelectionsResult withBackupSelectionsList(BackupSelectionsListMember... backupSelectionsList) {
if (this.backupSelectionsList == null) {
setBackupSelectionsList(new java.util.ArrayList<BackupSelectionsListMember>(backupSelectionsList.length)); // depends o... |
public class class_name {
public static Object value(final Field f, final Object bean) {
try {
f.setAccessible(true);
return f.get(bean);
} catch (IllegalArgumentException | IllegalAccessException e) {
throw new UroborosqlRuntimeException(e);
}
} } | public class class_name {
public static Object value(final Field f, final Object bean) {
try {
f.setAccessible(true); // depends on control dependency: [try], data = [none]
return f.get(bean); // depends on control dependency: [try], data = [none]
} catch (IllegalArgumentException | IllegalAccessException e)... |
public class class_name {
public static String canonicalizePath(String path, boolean discardRelativePrefix) {
// the first character of the current path segment
int segmentStart = 0;
// the number of segments seen thus far that can be erased by sequences of '..'.
int deletableSegments ... | public class class_name {
public static String canonicalizePath(String path, boolean discardRelativePrefix) {
// the first character of the current path segment
int segmentStart = 0;
// the number of segments seen thus far that can be erased by sequences of '..'.
int deletableSegments ... |
public class class_name {
public static Object getFieldValue(Object object, String fieldName) {
try {
return getDeclaredFieldInHierarchy(object.getClass(), fieldName).get(object);
} catch (IllegalArgumentException e) {
throw new RuntimeException(e);
} catch (IllegalAcces... | public class class_name {
public static Object getFieldValue(Object object, String fieldName) {
try {
return getDeclaredFieldInHierarchy(object.getClass(), fieldName).get(object); // depends on control dependency: [try], data = [none]
} catch (IllegalArgumentException e) {
throw... |
public class class_name {
@Nullable
static SymbolOptions fromFeature(@NonNull Feature feature) {
if (feature.geometry() == null) {
throw new RuntimeException("geometry field is required");
}
if (!(feature.geometry() instanceof Point)) {
return null;
}
SymbolOptions options = new Symb... | public class class_name {
@Nullable
static SymbolOptions fromFeature(@NonNull Feature feature) {
if (feature.geometry() == null) {
throw new RuntimeException("geometry field is required");
}
if (!(feature.geometry() instanceof Point)) {
return null; // depends on control dependency: [if], dat... |
public class class_name {
public Text nextLine() {
if (linePointer == 0) {
linePointer = pos;
} else {
linePointer++;
}
int mark = linePointer;
int limit = pos + len;
while (linePointer < limit && chars[linePointer] != '\n') {
linePo... | public class class_name {
public Text nextLine() {
if (linePointer == 0) {
linePointer = pos; // depends on control dependency: [if], data = [none]
} else {
linePointer++; // depends on control dependency: [if], data = [none]
}
int mark = linePointer;
in... |
public class class_name {
@Override
public void setLines(int lines) {
super.setLines(lines);
if (mHelper != null) {
mHelper.setMaxLines(lines);
}
} } | public class class_name {
@Override
public void setLines(int lines) {
super.setLines(lines);
if (mHelper != null) {
mHelper.setMaxLines(lines); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
protected String paramsAsUrlString() {
StringBuilder bob = new StringBuilder();
bob.append('?');
MultiList<String> params = params();
for (String key : params.keySet()) {
for (String value : params.list(key)) {
bob.append(key);
... | public class class_name {
protected String paramsAsUrlString() {
StringBuilder bob = new StringBuilder();
bob.append('?');
MultiList<String> params = params();
for (String key : params.keySet()) {
for (String value : params.list(key)) {
bob.append(key); // de... |
public class class_name {
public Set<String> getVocab() {
Set<String> vocab = new HashSet<String>();
for (Sentence sent : this) {
for (String label : sent) {
vocab.add(label);
}
}
return vocab;
} } | public class class_name {
public Set<String> getVocab() {
Set<String> vocab = new HashSet<String>();
for (Sentence sent : this) {
for (String label : sent) {
vocab.add(label); // depends on control dependency: [for], data = [label]
}
}
return voca... |
public class class_name {
@CanIgnoreReturnValue // TODO(kak): Consider removing this?
public static <T> T getOnlyElement(Iterator<T> iterator) {
T first = iterator.next();
if (!iterator.hasNext()) {
return first;
}
StringBuilder sb = new StringBuilder().append("expected one element but was: <"... | public class class_name {
@CanIgnoreReturnValue // TODO(kak): Consider removing this?
public static <T> T getOnlyElement(Iterator<T> iterator) {
T first = iterator.next();
if (!iterator.hasNext()) {
return first; // depends on control dependency: [if], data = [none]
}
StringBuilder sb = new St... |
public class class_name {
private static int lookupId(final HBaseClient client,
final byte[] table,
final short idwidth,
final long lid,
final String kind) {
final byte[] id = idInBytes(idwidth, ... | public class class_name {
private static int lookupId(final HBaseClient client,
final byte[] table,
final short idwidth,
final long lid,
final String kind) {
final byte[] id = idInBytes(idwidth, ... |
public class class_name {
public URL getParent() {
if (isField()) {
return getCharacteristicURL();
} else if (isCharacteristic()) {
return getServiceURL();
} else if (isService()) {
return getDeviceURL();
} else if (isDevice()) {
return ge... | public class class_name {
public URL getParent() {
if (isField()) {
return getCharacteristicURL(); // depends on control dependency: [if], data = [none]
} else if (isCharacteristic()) {
return getServiceURL(); // depends on control dependency: [if], data = [none]
} else ... |
public class class_name {
public String serialize() {
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String key : options.keySet()) {
if (first) {
first = false;
} else {
sb.append(';');
}
sb.append(key).append('=').append(options.get(key));
}... | public class class_name {
public String serialize() {
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String key : options.keySet()) {
if (first) {
first = false; // depends on control dependency: [if], data = [none]
} else {
sb.append(';'); // depends on cont... |
public class class_name {
private String buildErrorChapter(final BuildData buildData) {
log.info("\tBuilding Error Chapter");
String errorItemizedLists = "";
if (buildData.getErrorDatabase().hasItems(buildData.getBuildLocale())) {
for (final TopicErrorData topicErrorData : buildDa... | public class class_name {
private String buildErrorChapter(final BuildData buildData) {
log.info("\tBuilding Error Chapter");
String errorItemizedLists = "";
if (buildData.getErrorDatabase().hasItems(buildData.getBuildLocale())) {
for (final TopicErrorData topicErrorData : buildDa... |
public class class_name {
protected void appendCriteria(TableAlias alias, PathInfo pathInfo, SelectionCriteria c, StringBuffer buf)
{
if (c instanceof FieldCriteria)
{
appendFieldCriteria(alias, pathInfo, (FieldCriteria) c, buf);
}
else if (c instanceof NullCriteri... | public class class_name {
protected void appendCriteria(TableAlias alias, PathInfo pathInfo, SelectionCriteria c, StringBuffer buf)
{
if (c instanceof FieldCriteria)
{
appendFieldCriteria(alias, pathInfo, (FieldCriteria) c, buf);
// depends on control dependency: [if], data = [none... |
public class class_name {
private int getMaxMemory()
{
int total = 0;
for (MemoryPoolMXBean mpBean: ManagementFactory.getMemoryPoolMXBeans())
{
if (mpBean.getType() == MemoryType.HEAP)
{
total += mpBean.getUsage().getMax() >> 20;
}
}
return total;
} } | public class class_name {
private int getMaxMemory()
{
int total = 0;
for (MemoryPoolMXBean mpBean: ManagementFactory.getMemoryPoolMXBeans())
{
if (mpBean.getType() == MemoryType.HEAP)
{
total += mpBean.getUsage().getMax() >> 20; // depends on control dependency: [if], data = [none]
}
}
return ... |
public class class_name {
void sessionError(final SibRaMessagingEngineConnection connection,
final ConsumerSession session, final Throwable throwable) {
final String methodName = "sessionError";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(t... | public class class_name {
void sessionError(final SibRaMessagingEngineConnection connection,
final ConsumerSession session, final Throwable throwable) {
final String methodName = "sessionError";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(t... |
public class class_name {
public void setTypeAttributes(
String name,
String key,
String icon,
String bigIcon,
String smallIconStyle,
String bigIconStyle,
String reference,
String elementView,
String isView,
String namePattern,
Str... | public class class_name {
public void setTypeAttributes(
String name,
String key,
String icon,
String bigIcon,
String smallIconStyle,
String bigIconStyle,
String reference,
String elementView,
String isView,
String namePattern,
Str... |
public class class_name {
public FulltextMatch setProperties(
final Collection<String> properties
)
{
if (properties == null || properties.size() == 0) {
clearProperties();
return this;
}
synchronized (properties) {
... | public class class_name {
public FulltextMatch setProperties(
final Collection<String> properties
)
{
if (properties == null || properties.size() == 0) {
clearProperties(); // depends on control dependency: [if], data = [none]
return this; /... |
public class class_name {
public static List getDisconnected(
Collection leftCollection, Graph relation, Collection rightCollection)
{
List disconnected;
Iterator iter;
Object left;
EdgeIterator relationIter;
disconnected = new ArrayList();
iter = leftCollec... | public class class_name {
public static List getDisconnected(
Collection leftCollection, Graph relation, Collection rightCollection)
{
List disconnected;
Iterator iter;
Object left;
EdgeIterator relationIter;
disconnected = new ArrayList();
iter = leftCollec... |
public class class_name {
public Annotator getAnnotator(Class<? extends Annotator> clazz) {
if (!Annotator.class.isAssignableFrom(clazz)) {
throw new IllegalArgumentException("The class name given as a custom annotator (" + clazz.getName() + ") does not refer to a class that implements " + Annotat... | public class class_name {
public Annotator getAnnotator(Class<? extends Annotator> clazz) {
if (!Annotator.class.isAssignableFrom(clazz)) {
throw new IllegalArgumentException("The class name given as a custom annotator (" + clazz.getName() + ") does not refer to a class that implements " + Annotat... |
public class class_name {
public String getUrl() {
ContentAccess content = getContentAccess();
String mode = DisplayMode.PROMPT_TO_SAVE.equals(getDisplayMode()) ? "attach" : "inline";
// Check for a "static" resource
if (content instanceof InternalResource) {
String url = ((InternalResource) content).getT... | public class class_name {
public String getUrl() {
ContentAccess content = getContentAccess();
String mode = DisplayMode.PROMPT_TO_SAVE.equals(getDisplayMode()) ? "attach" : "inline";
// Check for a "static" resource
if (content instanceof InternalResource) {
String url = ((InternalResource) content).getT... |
public class class_name {
public boolean isBye() {
if (message == null) {
return false;
}
return (((Request) message).getMethod().equals(Request.BYE));
} } | public class class_name {
public boolean isBye() {
if (message == null) {
return false; // depends on control dependency: [if], data = [none]
}
return (((Request) message).getMethod().equals(Request.BYE));
} } |
public class class_name {
private void reportList(List collected, boolean doReport) {
int size = collected.size();
// now loop through all collected resources
m_report.println(
Messages.get().container(Messages.RPT_NUM_PAGES_1, new Integer(size)),
I_CmsReport.FORMAT_HEA... | public class class_name {
private void reportList(List collected, boolean doReport) {
int size = collected.size();
// now loop through all collected resources
m_report.println(
Messages.get().container(Messages.RPT_NUM_PAGES_1, new Integer(size)),
I_CmsReport.FORMAT_HEA... |
public class class_name {
public static String splitListByComma(List<String> hosts) {
boolean firstHost = true;
StringBuilder hostConnection = new StringBuilder();
for (String host : hosts) {
if (!firstHost) {
hostConnection.append(",");
}
hos... | public class class_name {
public static String splitListByComma(List<String> hosts) {
boolean firstHost = true;
StringBuilder hostConnection = new StringBuilder();
for (String host : hosts) {
if (!firstHost) {
hostConnection.append(","); // depends on control depende... |
public class class_name {
public boolean addUserToTeam(final UserPrincipal user, final Team team) {
List<Team> teams = user.getTeams();
boolean found = false;
if (teams == null) {
teams = new ArrayList<>();
}
for (final Team t: teams) {
if (team.getUuid()... | public class class_name {
public boolean addUserToTeam(final UserPrincipal user, final Team team) {
List<Team> teams = user.getTeams();
boolean found = false;
if (teams == null) {
teams = new ArrayList<>(); // depends on control dependency: [if], data = [none]
}
for ... |
public class class_name {
public WindowFuture<K,R,P> cancel(K key) throws InterruptedException {
if (!this.futures.containsKey(key)) {
return null;
}
this.lock.lockInterruptibly();
try {
// try to remove future from window
DefaultWindowFuture<K,R,P> ... | public class class_name {
public WindowFuture<K,R,P> cancel(K key) throws InterruptedException {
if (!this.futures.containsKey(key)) {
return null;
}
this.lock.lockInterruptibly();
try {
// try to remove future from window
DefaultWindowFuture<K,R,P> ... |
public class class_name {
protected void renderLabel(final Tag group) {
final Tag label = group.block("label").text(getKey());
if (getComment() != null) {
label.attr(new Attr("class", "has-comment"));
label.attr(new Attr("data-comment", getComment()));
}
} } | public class class_name {
protected void renderLabel(final Tag group) {
final Tag label = group.block("label").text(getKey());
if (getComment() != null) {
label.attr(new Attr("class", "has-comment")); // depends on control dependency: [if], data = [none]
label.attr(new Attr("data-comment", getComment())); ... |
public class class_name {
public static Document toDocument(BaseComponent root, String... excludedProperties) {
try {
CWF2XML instance = new CWF2XML(excludedProperties);
instance.toXML(root, instance.doc);
return instance.doc;
} catch (ParserConfigurationException e)... | public class class_name {
public static Document toDocument(BaseComponent root, String... excludedProperties) {
try {
CWF2XML instance = new CWF2XML(excludedProperties);
instance.toXML(root, instance.doc); // depends on control dependency: [try], data = [none]
return instanc... |
public class class_name {
public void logout() throws IOException {
if (this.loggedIn) {
Map<String, String> params = new HashMap<>();
params.put("action", "logout");
params.put("format", "json"); // reduce the output
try {
sendJsonRequest("POST", params);
} catch (MediaWikiApiErrorException e) {
... | public class class_name {
public void logout() throws IOException {
if (this.loggedIn) {
Map<String, String> params = new HashMap<>();
params.put("action", "logout");
params.put("format", "json"); // reduce the output
try {
sendJsonRequest("POST", params); // depends on control dependency: [try], dat... |
public class class_name {
public Observable<ServiceResponse<IPAddressAvailabilityResultInner>> checkIPAddressAvailabilityWithServiceResponseAsync(String resourceGroupName, String virtualNetworkName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName i... | public class class_name {
public Observable<ServiceResponse<IPAddressAvailabilityResultInner>> checkIPAddressAvailabilityWithServiceResponseAsync(String resourceGroupName, String virtualNetworkName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName i... |
public class class_name {
private boolean validMapunionExpression(Node expr) {
// The expression must have four children:
// - The mapunion keyword
// - A union type expression
// - A map function
if (!checkParameterCount(expr, Keywords.MAPUNION)) {
return false;
}
// The second child... | public class class_name {
private boolean validMapunionExpression(Node expr) {
// The expression must have four children:
// - The mapunion keyword
// - A union type expression
// - A map function
if (!checkParameterCount(expr, Keywords.MAPUNION)) {
return false; // depends on control depende... |
public class class_name {
public void put(double[] val) {
assert (val.length == mean.length);
final double nwsum = wsum + 1.;
// Compute new means
for(int i = 0; i < mean.length; i++) {
final double delta = val[i] - mean[i];
nmea[i] = mean[i] + delta / nwsum;
}
// Update covariance ... | public class class_name {
public void put(double[] val) {
assert (val.length == mean.length);
final double nwsum = wsum + 1.;
// Compute new means
for(int i = 0; i < mean.length; i++) {
final double delta = val[i] - mean[i];
nmea[i] = mean[i] + delta / nwsum; // depends on control dependenc... |
public class class_name {
@Override
@FFDCIgnore(value = { RejectedExecutionException.class })
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, PolicyTaskCallback[] callbacks, long timeout,
TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException... | public class class_name {
@Override
@FFDCIgnore(value = { RejectedExecutionException.class })
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, PolicyTaskCallback[] callbacks, long timeout,
TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException... |
public class class_name {
public final void setVisibility(final int visibility, final boolean animate) {
boolean visible = visibility == View.VISIBLE;
Boolean tag = (Boolean) getTag();
setTag(visible);
if (animate) {
if (tag == null || tag != visible) {
if (... | public class class_name {
public final void setVisibility(final int visibility, final boolean animate) {
boolean visible = visibility == View.VISIBLE;
Boolean tag = (Boolean) getTag();
setTag(visible);
if (animate) {
if (tag == null || tag != visible) {
if (... |
public class class_name {
public static Map<String, String> getRegisterdSASLMechanisms() {
Map<String, String> answer = new LinkedHashMap<>();
synchronized (REGISTERED_MECHANISMS) {
for (SASLMechanism mechanism : REGISTERED_MECHANISMS) {
answer.put(mechanism.getClass().getNa... | public class class_name {
public static Map<String, String> getRegisterdSASLMechanisms() {
Map<String, String> answer = new LinkedHashMap<>();
synchronized (REGISTERED_MECHANISMS) {
for (SASLMechanism mechanism : REGISTERED_MECHANISMS) {
answer.put(mechanism.getClass().getNa... |
public class class_name {
private void initializeControls() {
if (originalFile != null) {
resourceGroup.setContainerFullPath(originalFile.getParent()
.getFullPath());
String fileName = originalFile.getName();
int index = fileName.lastIndexOf(".");
... | public class class_name {
private void initializeControls() {
if (originalFile != null) {
resourceGroup.setContainerFullPath(originalFile.getParent()
.getFullPath()); // depends on control dependency: [if], data = [none]
String fileName = originalFile.getName();
... |
public class class_name {
protected AffineTransform createTransform(ElementBox elem)
{
if (elem.isBlock() || elem.isReplaced())
{
CSSDecoder dec = new CSSDecoder(elem.getVisualContext());
Rectangle bounds = elem.getAbsoluteBorderBounds();
//decode the origin
... | public class class_name {
protected AffineTransform createTransform(ElementBox elem)
{
if (elem.isBlock() || elem.isReplaced())
{
CSSDecoder dec = new CSSDecoder(elem.getVisualContext());
Rectangle bounds = elem.getAbsoluteBorderBounds();
//decode the origin
... |
public class class_name {
void reportError(Node n, Var var, String name) {
JSDocInfo info = NodeUtil.getBestJSDocInfo(n);
if (info == null || !info.getSuppressions().contains("const")) {
Node declNode = var.getNode();
String declaredPosition = declNode.getSourceFileName() + ":" + declNode.getLineno... | public class class_name {
void reportError(Node n, Var var, String name) {
JSDocInfo info = NodeUtil.getBestJSDocInfo(n);
if (info == null || !info.getSuppressions().contains("const")) {
Node declNode = var.getNode();
String declaredPosition = declNode.getSourceFileName() + ":" + declNode.getLineno... |
public class class_name {
public void addExStrFeats(double weight, Object xObj, Object yObj, List<String>[] fvStrs) {
FeatureVector[] fvs = new FeatureVector[fvStrs.length];
for (int i=0; i<fvs.length; i++) {
fvs[i] = new FeatureVector();
for (String featName : fvStrs[i]) {
... | public class class_name {
public void addExStrFeats(double weight, Object xObj, Object yObj, List<String>[] fvStrs) {
FeatureVector[] fvs = new FeatureVector[fvStrs.length];
for (int i=0; i<fvs.length; i++) {
fvs[i] = new FeatureVector(); // depends on control dependency: [for], data = [i]
... |
public class class_name {
public boolean hasFullRank() {
// if (R == null) {
// R = new SparseCCDoubleMatrix2D(N.U);
// if (rcMatrix) {
// R = ((SparseCCDoubleMatrix2D) R).getRowCompressed();
// }
//
// }
int mn = Math.min(m, n);
double mng = Math.sqrt(m * n);
// double threshold = ALG.pr... | public class class_name {
public boolean hasFullRank() {
// if (R == null) {
// R = new SparseCCDoubleMatrix2D(N.U);
// if (rcMatrix) {
// R = ((SparseCCDoubleMatrix2D) R).getRowCompressed();
// }
//
// }
int mn = Math.min(m, n);
double mng = Math.sqrt(m * n);
// double threshold = ALG.pr... |
public class class_name {
public static void closeWriter(String filePath) {
Writer writer = writerCache.get(filePath);
if (writer != null) {
try {
writer.close();
} catch (IOException e) {
e.printStackTrace();
}
}
write... | public class class_name {
public static void closeWriter(String filePath) {
Writer writer = writerCache.get(filePath);
if (writer != null) {
try {
writer.close(); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
e.p... |
public class class_name {
public static Weeks from(TemporalAmount amount) {
if (amount instanceof Weeks) {
return (Weeks) amount;
}
Objects.requireNonNull(amount, "amount");
int weeks = 0;
for (TemporalUnit unit : amount.getUnits()) {
long value = amount.... | public class class_name {
public static Weeks from(TemporalAmount amount) {
if (amount instanceof Weeks) {
return (Weeks) amount; // depends on control dependency: [if], data = [none]
}
Objects.requireNonNull(amount, "amount");
int weeks = 0;
for (TemporalUnit unit :... |
public class class_name {
public void marshall(DeleteDeploymentConfigRequest deleteDeploymentConfigRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteDeploymentConfigRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DeleteDeploymentConfigRequest deleteDeploymentConfigRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteDeploymentConfigRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public boolean record(final Throwable observation)
{
final long timestamp = clock.time();
DistinctObservation distinctObservation;
synchronized (this)
{
distinctObservation = find(distinctObservations, observation);
if (null == dist... | public class class_name {
public boolean record(final Throwable observation)
{
final long timestamp = clock.time();
DistinctObservation distinctObservation;
synchronized (this)
{
distinctObservation = find(distinctObservations, observation);
if (null == dist... |
public class class_name {
private static int findCommandIndex(String[] args) {
int commandIndex = -1;
for (int i = 0; i < args.length; i++) {
for (Command command : Command.values()) {
if (command.getName().equals(args[i].trim())) {
commandIndex = i;
break;
}
}
}
return commandIn... | public class class_name {
private static int findCommandIndex(String[] args) {
int commandIndex = -1;
for (int i = 0; i < args.length; i++) {
for (Command command : Command.values()) {
if (command.getName().equals(args[i].trim())) {
commandIndex = i; // depends on control dependency: [if], data = [none... |
public class class_name {
public static Swagger from(final Swagger router, final Object... objs) {
for (Object o : objs) {
Processor.process(router, o);
}
return router;
} } | public class class_name {
public static Swagger from(final Swagger router, final Object... objs) {
for (Object o : objs) {
Processor.process(router, o); // depends on control dependency: [for], data = [o]
}
return router;
} } |
public class class_name {
@Override
public void writePropertiesTo(SLProperties props, Result result) {
ServiceLocatorPropertiesType jaxbProps = SLPropertiesConverter.toServiceLocatorPropertiesType(props);
try {
JAXBElement<ServiceLocatorPropertiesType> elementProps =
EN... | public class class_name {
@Override
public void writePropertiesTo(SLProperties props, Result result) {
ServiceLocatorPropertiesType jaxbProps = SLPropertiesConverter.toServiceLocatorPropertiesType(props);
try {
JAXBElement<ServiceLocatorPropertiesType> elementProps =
EN... |
public class class_name {
public MultipartContent setContentParts(Collection<? extends HttpContent> contentParts) {
this.parts = new ArrayList<Part>(contentParts.size());
for (HttpContent contentPart : contentParts) {
addPart(new Part(contentPart));
}
return this;
} } | public class class_name {
public MultipartContent setContentParts(Collection<? extends HttpContent> contentParts) {
this.parts = new ArrayList<Part>(contentParts.size());
for (HttpContent contentPart : contentParts) {
addPart(new Part(contentPart)); // depends on control dependency: [for], data = [conten... |
public class class_name {
public float getBand(int band)
{
float eq = 0.0f;
if ((band>=0) && (band<BANDS))
{
eq = settings[band];
}
return eq;
} } | public class class_name {
public float getBand(int band)
{
float eq = 0.0f;
if ((band>=0) && (band<BANDS))
{
eq = settings[band]; // depends on control dependency: [if], data = [none]
}
return eq;
} } |
public class class_name {
@Override
public void start() {
try {
url = new URL(getStringSetting(SETTING_URL, DEFAULT_LIBRATO_API_URL));
user = getStringSetting(SETTING_USERNAME);
token = getStringSetting(SETTING_TOKEN);
basicAuthentication = Base64Variants.ge... | public class class_name {
@Override
public void start() {
try {
url = new URL(getStringSetting(SETTING_URL, DEFAULT_LIBRATO_API_URL)); // depends on control dependency: [try], data = [none]
user = getStringSetting(SETTING_USERNAME); // depends on control dependency: [try], data = [... |
public class class_name {
@Nullable
private Status validateInitialMetadata(Metadata headers) {
Integer httpStatus = headers.get(HTTP2_STATUS);
if (httpStatus == null) {
return Status.INTERNAL.withDescription("Missing HTTP status code");
}
String contentType = headers.get(GrpcUtil.CONTENT_TYPE_K... | public class class_name {
@Nullable
private Status validateInitialMetadata(Metadata headers) {
Integer httpStatus = headers.get(HTTP2_STATUS);
if (httpStatus == null) {
return Status.INTERNAL.withDescription("Missing HTTP status code"); // depends on control dependency: [if], data = [none]
}
St... |
public class class_name {
public static String rtrim(String str, String defaultValue) {
if (str == null) return defaultValue;
int len = str.length();
while ((0 < len) && (str.charAt(len - 1) <= ' ')) {
len--;
}
return (len < str.length()) ? str.substring(0, len) : str;
} } | public class class_name {
public static String rtrim(String str, String defaultValue) {
if (str == null) return defaultValue;
int len = str.length();
while ((0 < len) && (str.charAt(len - 1) <= ' ')) {
len--; // depends on control dependency: [while], data = [none]
}
return (len < str.length()) ? str.substr... |
public class class_name {
public void putDestination(List<Descriptor> descriptors, int branchId, State state) {
if (!hasLineageInfo(state)) {
log.warn("State has no lineage info but branch " + branchId + " puts {} descriptors", descriptors.size());
return;
}
log.info(String.format("Put destin... | public class class_name {
public void putDestination(List<Descriptor> descriptors, int branchId, State state) {
if (!hasLineageInfo(state)) {
log.warn("State has no lineage info but branch " + branchId + " puts {} descriptors", descriptors.size()); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void tagvalue(Options opt, Doc c) {
Tag tags[] = c.tags("tagvalue");
if (tags.length == 0)
return;
for (Tag tag : tags) {
String t[] = tokenize(tag.text());
if (t.length != 2) {
System.err.println("@tagvalue expects two fields: " + tag.text());
continue;
}... | public class class_name {
private void tagvalue(Options opt, Doc c) {
Tag tags[] = c.tags("tagvalue");
if (tags.length == 0)
return;
for (Tag tag : tags) {
String t[] = tokenize(tag.text());
if (t.length != 2) {
System.err.println("@tagvalue expects two fields: " + tag.text()); // depends on cont... |
public class class_name {
void openPrincipalSelect() {
CmsPrincipalSelectDialog dialog;
m_window = CmsBasicDialog.prepareWindow(DialogWidth.max);
WidgetType defaultType = WidgetType.groupwidget;
if (m_principalTypeSelect.getValue().equals(I_CmsPrincipal.PRINCIPAL_USER)) {
... | public class class_name {
void openPrincipalSelect() {
CmsPrincipalSelectDialog dialog;
m_window = CmsBasicDialog.prepareWindow(DialogWidth.max);
WidgetType defaultType = WidgetType.groupwidget;
if (m_principalTypeSelect.getValue().equals(I_CmsPrincipal.PRINCIPAL_USER)) {
... |
public class class_name {
@Override
public final AbstractGauge init(final int WIDTH, final int HEIGHT) {
if (WIDTH <= 1 || HEIGHT <= 1) {
return this;
}
if (isLcdVisible()) {
if (isDigitalFont()) {
setLcdValueFont(getModel().getDigitalBaseFont().deriv... | public class class_name {
@Override
public final AbstractGauge init(final int WIDTH, final int HEIGHT) {
if (WIDTH <= 1 || HEIGHT <= 1) {
return this; // depends on control dependency: [if], data = [none]
}
if (isLcdVisible()) {
if (isDigitalFont()) {
... |
public class class_name {
@RequestMapping(value = "changelog/{uuid}/files", method = RequestMethod.GET)
public GitChangeLogFiles changeLogFiles(@PathVariable String uuid) {
// Gets the change log
GitChangeLog changeLog = getChangeLog(uuid);
// Cached?
GitChangeLogFiles files = chang... | public class class_name {
@RequestMapping(value = "changelog/{uuid}/files", method = RequestMethod.GET)
public GitChangeLogFiles changeLogFiles(@PathVariable String uuid) {
// Gets the change log
GitChangeLog changeLog = getChangeLog(uuid);
// Cached?
GitChangeLogFiles files = chang... |
public class class_name {
public GridNode goDownstreamSP() {
Direction[] orderedDirs = Direction.getOrderedDirs();
double maxSlope = Double.NEGATIVE_INFINITY;
GridNode nextNode = null;
for( Direction direction : orderedDirs ) {
int newCol = col + direction.col;
i... | public class class_name {
public GridNode goDownstreamSP() {
Direction[] orderedDirs = Direction.getOrderedDirs();
double maxSlope = Double.NEGATIVE_INFINITY;
GridNode nextNode = null;
for( Direction direction : orderedDirs ) {
int newCol = col + direction.col;
i... |
public class class_name {
@Override
public Publisher<PropertySource> getPropertySources(Environment environment) {
if (!awsParameterStoreConfiguration.isEnabled()) {
return Flowable.empty();
}
Set<String> activeNames = environment.getActiveNames();
Optional<String> servi... | public class class_name {
@Override
public Publisher<PropertySource> getPropertySources(Environment environment) {
if (!awsParameterStoreConfiguration.isEnabled()) {
return Flowable.empty(); // depends on control dependency: [if], data = [none]
}
Set<String> activeNames = enviro... |
public class class_name {
private void publishEndedEvent() {
BatchEventsPublisher publisher = getBatchEventsPublisher();
if (publisher != null) {
publisher.publishSplitFlowEvent(getSplitName(),
getFlowName(),
... | public class class_name {
private void publishEndedEvent() {
BatchEventsPublisher publisher = getBatchEventsPublisher();
if (publisher != null) {
publisher.publishSplitFlowEvent(getSplitName(),
getFlowName(),
... |
public class class_name {
static void dumpAll(Printer printer, boolean verbose) {
for (SQLiteDatabase db : getActiveDatabases()) {
db.dump(printer, verbose);
}
} } | public class class_name {
static void dumpAll(Printer printer, boolean verbose) {
for (SQLiteDatabase db : getActiveDatabases()) {
db.dump(printer, verbose); // depends on control dependency: [for], data = [db]
}
} } |
public class class_name {
private static Throwable getThrowable(final RuntimeErrorProto error) {
final byte[] data = getData(error);
if (data != null) {
try {
return CODEC.decode(data);
} catch (final RemoteRuntimeException ex) {
LOG.log(Level.FINE, "Could not decode exception {0}: ... | public class class_name {
private static Throwable getThrowable(final RuntimeErrorProto error) {
final byte[] data = getData(error);
if (data != null) {
try {
return CODEC.decode(data); // depends on control dependency: [try], data = [none]
} catch (final RemoteRuntimeException ex) {
... |
public class class_name {
public static List<LauncherConfig> imports(Configurer configurer)
{
Check.notNull(configurer);
final Collection<Xml> children = configurer.getRoot().getChildren(NODE_LAUNCHER);
final List<LauncherConfig> launchers = new ArrayList<>(children.size());
... | public class class_name {
public static List<LauncherConfig> imports(Configurer configurer)
{
Check.notNull(configurer);
final Collection<Xml> children = configurer.getRoot().getChildren(NODE_LAUNCHER);
final List<LauncherConfig> launchers = new ArrayList<>(children.size());
... |
public class class_name {
public void writeToIndex(PrintWriter out) {
out.println(StormEnvironment.BEGIN_DATABASE);
Map<String,String> dbMap = new HashMap<String,String>();
dbMap.put("dbName", this.getDbName());
dbMap.put("dbVersion", String.valueOf(this.getDbVersion()));
dbMap.put("helperClass", this.getQua... | public class class_name {
public void writeToIndex(PrintWriter out) {
out.println(StormEnvironment.BEGIN_DATABASE);
Map<String,String> dbMap = new HashMap<String,String>();
dbMap.put("dbName", this.getDbName());
dbMap.put("dbVersion", String.valueOf(this.getDbVersion()));
dbMap.put("helperClass", this.getQua... |
public class class_name {
public static final int readAll(ReadableByteChannel ch, ByteBuffer dst) throws IOException
{
int count = 0;
while (dst.hasRemaining())
{
int rc = ch.read(dst);
if (rc == -1)
{
if (count > 0)
... | public class class_name {
public static final int readAll(ReadableByteChannel ch, ByteBuffer dst) throws IOException
{
int count = 0;
while (dst.hasRemaining())
{
int rc = ch.read(dst);
if (rc == -1)
{
if (count > 0)
... |
public class class_name {
public static base_responses add(nitro_service client, nspbr resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nspbr addresources[] = new nspbr[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] =... | public class class_name {
public static base_responses add(nitro_service client, nspbr resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nspbr addresources[] = new nspbr[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] =... |
public class class_name {
@Override
public void addHeader(String name, String value) {
if (isSuspended()) {
return;
}
if (CmsRequestUtil.HEADER_CONTENT_TYPE.equalsIgnoreCase(name)) {
setContentType(value);
return;
}
if (m_cachingRequire... | public class class_name {
@Override
public void addHeader(String name, String value) {
if (isSuspended()) {
return; // depends on control dependency: [if], data = [none]
}
if (CmsRequestUtil.HEADER_CONTENT_TYPE.equalsIgnoreCase(name)) {
setContentType(value); // de... |
public class class_name {
public void setDates(SortedSet<Date> dates) {
if (!m_model.getIndividualDates().equals(dates)) {
m_model.setIndividualDates(dates);
onValueChange();
}
} } | public class class_name {
public void setDates(SortedSet<Date> dates) {
if (!m_model.getIndividualDates().equals(dates)) {
m_model.setIndividualDates(dates); // depends on control dependency: [if], data = [none]
onValueChange(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static String implodeObjects(Iterable<?> objects) {
StringBuilder builder = new StringBuilder();
boolean first = true;
for (Object o : objects) {
if (first) {
first = false;
} else {
builder.append("|");
}
builder.append(o.toString());
}
return builder.toS... | public class class_name {
public static String implodeObjects(Iterable<?> objects) {
StringBuilder builder = new StringBuilder();
boolean first = true;
for (Object o : objects) {
if (first) {
first = false; // depends on control dependency: [if], data = [none]
} else {
builder.append("|"); // depen... |
public class class_name {
public void setViolators(java.util.Collection<ComplianceViolator> violators) {
if (violators == null) {
this.violators = null;
return;
}
this.violators = new java.util.ArrayList<ComplianceViolator>(violators);
} } | public class class_name {
public void setViolators(java.util.Collection<ComplianceViolator> violators) {
if (violators == null) {
this.violators = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void setParties(java.util.Collection<HandshakeParty> parties) {
if (parties == null) {
this.parties = null;
return;
}
this.parties = new java.util.ArrayList<HandshakeParty>(parties);
} } | public class class_name {
public void setParties(java.util.Collection<HandshakeParty> parties) {
if (parties == null) {
this.parties = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.partie... |
public class class_name {
public void interrupt() {
Thread t = threadVar.get();
if (t != null) {
t.interrupt();
}
threadVar.clear();
} } | public class class_name {
public void interrupt() {
Thread t = threadVar.get();
if (t != null) {
t.interrupt(); // depends on control dependency: [if], data = [none]
}
threadVar.clear();
} } |
public class class_name {
private void writeVersion(VectorClock newClock) {
File versionFile = getVersionFile();
try {
if(!versionFile.exists() || versionFile.delete()) {
String hexCode = new String(Hex.encodeHex(newClock.toBytes()));
FileUtils.writeStringToF... | public class class_name {
private void writeVersion(VectorClock newClock) {
File versionFile = getVersionFile();
try {
if(!versionFile.exists() || versionFile.delete()) {
String hexCode = new String(Hex.encodeHex(newClock.toBytes()));
FileUtils.writeStringToF... |
public class class_name {
public void setShrinkToFit() {
if(cell.getCellStyle().getShrinkToFit()) {
// 既に有効な場合
return;
}
cloneStyle();
cell.getCellStyle().setWrapText(false);
cell.getCellStyle().setShrinkToFit(true);
} } | public class class_name {
public void setShrinkToFit() {
if(cell.getCellStyle().getShrinkToFit()) {
// 既に有効な場合
return;
// depends on control dependency: [if], data = [none]
}
cloneStyle();
cell.getCellStyle().setWrapText(false);
cell.getCellStyle... |
public class class_name {
public int getIntValueFromPropertyOrDefault(String propertyName, int defaultValue) {
int value = defaultValue;
String valueEnv = System.getenv(propertyName);
String valueSys = System.getProperty(propertyName);
try {
if (valueSys != null) {
... | public class class_name {
public int getIntValueFromPropertyOrDefault(String propertyName, int defaultValue) {
int value = defaultValue;
String valueEnv = System.getenv(propertyName);
String valueSys = System.getProperty(propertyName);
try {
if (valueSys != null) {
... |
public class class_name {
public static Image getClipboardImage() {
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
try {
return (Image) clipboard.getData(DataFlavor.imageFlavor);
} catch (Exception e) {
return null;
}
} } | public class class_name {
public static Image getClipboardImage() {
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
try {
return (Image) clipboard.getData(DataFlavor.imageFlavor);
// depends on control dependency: [try], data = [none]
} catch (Exception e... |
public class class_name {
public static void assemble( File moduleRoot,
String moduleName,
File srcOutputRoot,
String factoryName,
Map<String,String> controlTypeToImpl,
... | public class class_name {
public static void assemble( File moduleRoot,
String moduleName,
File srcOutputRoot,
String factoryName,
Map<String,String> controlTypeToImpl,
... |
public class class_name {
private boolean addNodeIfNotAlreadyIncluded(T thisImport,
LinkedList<T> imports, Set<T> alreadyIncludedImports) {
if (alreadyIncludedImports.contains(thisImport)) {
return false;
}
imports.add(thisImport);
alreadyIncludedImports.add(thisImport);
return true;
... | public class class_name {
private boolean addNodeIfNotAlreadyIncluded(T thisImport,
LinkedList<T> imports, Set<T> alreadyIncludedImports) {
if (alreadyIncludedImports.contains(thisImport)) {
return false; // depends on control dependency: [if], data = [none]
}
imports.add(thisImport);
alrea... |
public class class_name {
public static String getNameSpaceName(String pageTitle) {
Matcher matcher = namespacePattern.matcher(pageTitle);
if (matcher.find()) {
// LOGGER.log(Level.INFO,pageTitle);
return matcher.group(1);
}
return null;
} } | public class class_name {
public static String getNameSpaceName(String pageTitle) {
Matcher matcher = namespacePattern.matcher(pageTitle);
if (matcher.find()) {
// LOGGER.log(Level.INFO,pageTitle);
return matcher.group(1); // depends on control dependency: [if], data = [none]
}
return null;... |
public class class_name {
static boolean isAuthenticationRelated ( final String message )
{
for ( final DirectoryVendor vendor : DirectoryVendor.values() )
{
final ErrorMap errorMap = vendor.getVendorFactory().getErrorMap();
if ( errorMap.isAuthenticationRelated( message ) )... | public class class_name {
static boolean isAuthenticationRelated ( final String message )
{
for ( final DirectoryVendor vendor : DirectoryVendor.values() )
{
final ErrorMap errorMap = vendor.getVendorFactory().getErrorMap();
if ( errorMap.isAuthenticationRelated( message ) )... |
public class class_name {
private Node parseFilter() {
Token token = expect(Filter.class);
Filter filterToken = (Filter) token;
AttributeList attr = (AttributeList) accept(AttributeList.class);
lexer.setPipeless(true);
Node tNode = parseTextBlock();
lexer.setPipeless(fal... | public class class_name {
private Node parseFilter() {
Token token = expect(Filter.class);
Filter filterToken = (Filter) token;
AttributeList attr = (AttributeList) accept(AttributeList.class);
lexer.setPipeless(true);
Node tNode = parseTextBlock();
lexer.setPipeless(fal... |
public class class_name {
public Packet readFrom(ByteBuffer src) {
if (!headerComplete) {
if (src.remaining() < HEADER_SIZE) {
return null;
}
byte version = src.get();
if (VERSION != version) {
throw new IllegalArgumentException("... | public class class_name {
public Packet readFrom(ByteBuffer src) {
if (!headerComplete) {
if (src.remaining() < HEADER_SIZE) {
return null; // depends on control dependency: [if], data = [none]
}
byte version = src.get();
if (VERSION != version) ... |
public class class_name {
public static boolean registerProvider(ZoneModelProvider provider) {
String name = provider.getName();
if (name.isEmpty()) {
throw new IllegalArgumentException(
"Missing name of zone model provider.");
} else if (name.equals(NAME_TZDB)) {
... | public class class_name {
public static boolean registerProvider(ZoneModelProvider provider) {
String name = provider.getName();
if (name.isEmpty()) {
throw new IllegalArgumentException(
"Missing name of zone model provider.");
} else if (name.equals(NAME_TZDB)) {
... |
public class class_name {
public void setInstanceHealthList(java.util.Collection<SingleInstanceHealth> instanceHealthList) {
if (instanceHealthList == null) {
this.instanceHealthList = null;
return;
}
this.instanceHealthList = new com.amazonaws.internal.SdkInternalList<... | public class class_name {
public void setInstanceHealthList(java.util.Collection<SingleInstanceHealth> instanceHealthList) {
if (instanceHealthList == null) {
this.instanceHealthList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: ... |
public class class_name {
public MorphoFeatures fromTagString(String str) {
List<String> feats = Arrays.asList(str.split("\\-"));
MorphoFeatures mFeats = new MorphoFeatures();
for(String fPair : feats) {
String[] keyValue = fPair.split(KEY_VAL_DELIM);
if(keyValue.length != 2)//Manual state... | public class class_name {
public MorphoFeatures fromTagString(String str) {
List<String> feats = Arrays.asList(str.split("\\-"));
MorphoFeatures mFeats = new MorphoFeatures();
for(String fPair : feats) {
String[] keyValue = fPair.split(KEY_VAL_DELIM);
if(keyValue.length != 2)//Manual state... |
public class class_name {
synchronized byte[] getDataPtr() {
if (mDataPtr == null) {
mDataPtr = new byte[mDataLength];
InputStream is;
try {
if (isFromZip) {
is = zipFile.getInputStream(zipEntry);
} else {
is = new FileInputStream(getFileName());
}
... | public class class_name {
synchronized byte[] getDataPtr() {
if (mDataPtr == null) {
mDataPtr = new byte[mDataLength]; // depends on control dependency: [if], data = [none]
InputStream is;
try {
if (isFromZip) {
is = zipFile.getInputStream(zipEntry); // depends on control depen... |
public class class_name {
public List<Entry> getEntries() {
if(_sortedEntries == null) {
this._sortedEntries = Lists.newArrayListWithCapacity(entries.size());
for(Map.Entry<Term, Entry> e:entries.entrySet())
this._sortedEntries.add(e.getValue());
Collections.sort(this._sortedEntries);
}
return _sort... | public class class_name {
public List<Entry> getEntries() {
if(_sortedEntries == null) {
this._sortedEntries = Lists.newArrayListWithCapacity(entries.size()); // depends on control dependency: [if], data = [none]
for(Map.Entry<Term, Entry> e:entries.entrySet())
this._sortedEntries.add(e.getValue());
Col... |
public class class_name {
public void setPassword(String value) {
try {
OpenCms.getPasswordHandler().validatePassword(value);
} catch (CmsSecurityException e) {
throw new CmsIllegalArgumentException(e.getMessageContainer());
}
m_password = value;
} } | public class class_name {
public void setPassword(String value) {
try {
OpenCms.getPasswordHandler().validatePassword(value); // depends on control dependency: [try], data = [none]
} catch (CmsSecurityException e) {
throw new CmsIllegalArgumentException(e.getMessageContainer())... |
public class class_name {
public void marshall(UpdateDeviceDefinitionRequest updateDeviceDefinitionRequest, ProtocolMarshaller protocolMarshaller) {
if (updateDeviceDefinitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(UpdateDeviceDefinitionRequest updateDeviceDefinitionRequest, ProtocolMarshaller protocolMarshaller) {
if (updateDeviceDefinitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public void setAtlasInformation(List<GVRAtlasInformation> atlasInformation)
{
if ((mImage != null) && (mImage instanceof GVRImageAtlas))
{
((GVRImageAtlas) mImage).setAtlasInformation(atlasInformation);
}
} } | public class class_name {
public void setAtlasInformation(List<GVRAtlasInformation> atlasInformation)
{
if ((mImage != null) && (mImage instanceof GVRImageAtlas))
{
((GVRImageAtlas) mImage).setAtlasInformation(atlasInformation); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void run(String source, String output)
{
Report report = null;
try
{
monitor.testRunning(getLocation(source, '/'));
Execution execution = xmlRpcRemoteRunner.runSpecification(
project, systemUnderTest, repositoryId, source, false, locale.getLanguage());
report = ... | public class class_name {
public void run(String source, String output)
{
Report report = null;
try
{
monitor.testRunning(getLocation(source, '/')); // depends on control dependency: [try], data = [none]
Execution execution = xmlRpcRemoteRunner.runSpecification(
project, systemUnderTest, repository... |
public class class_name {
@Override
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack();
possibleForLoops = new HashSet<>();
super.visitClassContext(classContext);
} finally {
stack = null;
possibleFo... | public class class_name {
@Override
public void visitClassContext(ClassContext classContext) {
try {
stack = new OpcodeStack(); // depends on control dependency: [try], data = [none]
possibleForLoops = new HashSet<>(); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public synchronized void stop(final StopContext context) {
weldBootstrapServiceConsumer.accept(null);
if (started) {
// WeldStartService#stop() not completed - attempt to perform the container cleanup
final Container container = Container.instance(deplo... | public class class_name {
public synchronized void stop(final StopContext context) {
weldBootstrapServiceConsumer.accept(null);
if (started) {
// WeldStartService#stop() not completed - attempt to perform the container cleanup
final Container container = Container.instance(deplo... |
public class class_name {
@Override
public List<Diagnostic> validate(final List<Diagnostic> diags) {
if (!isValid()) {
List<Serializable> argList = getMessageArguments();
Serializable[] args = argList.toArray(new Serializable[argList.size()]);
diags.add(new DiagnosticImpl(Diagnostic.ERROR, input, getError... | public class class_name {
@Override
public List<Diagnostic> validate(final List<Diagnostic> diags) {
if (!isValid()) {
List<Serializable> argList = getMessageArguments();
Serializable[] args = argList.toArray(new Serializable[argList.size()]);
diags.add(new DiagnosticImpl(Diagnostic.ERROR, input, getError... |
public class class_name {
public static String getSystemProperty(String key) {
try {
String prop = System.getProperty(key);
return (prop == null) ? getAndroidSystemProperty(key) : prop;
} catch (SecurityException e) {
return null;
}
} } | public class class_name {
public static String getSystemProperty(String key) {
try {
String prop = System.getProperty(key);
return (prop == null) ? getAndroidSystemProperty(key) : prop; // depends on control dependency: [try], data = [none]
} catch (SecurityException e) {
return null;
} /... |
public class class_name {
@Trivial
@SuppressWarnings({ "unchecked", "rawtypes" })
private Hashtable<String, ?> getSensitiveHashtable(Set<Object> creds, String[] properties) {
List<String> props = new ArrayList<String>();
for (String property : properties) {
props.add(property);
... | public class class_name {
@Trivial
@SuppressWarnings({ "unchecked", "rawtypes" })
private Hashtable<String, ?> getSensitiveHashtable(Set<Object> creds, String[] properties) {
List<String> props = new ArrayList<String>();
for (String property : properties) {
props.add(property); // d... |
public class class_name {
private void remove(Class<?> type, Object object)
{
final Set<?> set = items.get(type);
if (set != null)
{
set.remove(object);
}
} } | public class class_name {
private void remove(Class<?> type, Object object)
{
final Set<?> set = items.get(type);
if (set != null)
{
set.remove(object);
// depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public Catalog createCatalog() {
final List<CatalogService> services = new ArrayList<>();
for (BrokerServiceAccessor serviceAccessor : serviceAccessors) {
services.add(serviceAccessor.getServiceDescription());
}
return new Catalog(services);
}... | public class class_name {
public Catalog createCatalog() {
final List<CatalogService> services = new ArrayList<>();
for (BrokerServiceAccessor serviceAccessor : serviceAccessors) {
services.add(serviceAccessor.getServiceDescription()); // depends on control dependency: [for], data = [servi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.