code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public String fromByteArray(byte[] bytes, int offset, int length) {
java.util.Objects.requireNonNull(bytes, "bytes");
Objects.validArgument(offset >= 0, "offset must be equal or greater than zero");
Objects.validArgument(length > 0, "length must be greater than zero");
Objects... | public class class_name {
public String fromByteArray(byte[] bytes, int offset, int length) {
java.util.Objects.requireNonNull(bytes, "bytes");
Objects.validArgument(offset >= 0, "offset must be equal or greater than zero");
Objects.validArgument(length > 0, "length must be greater than zero");
Objects... |
public class class_name {
public void disconnectBegin() {
if (this.startPoint != null) {
this.startPoint.remove(this);
}
this.startPoint = new SGraphPoint(getGraph());
this.startPoint.add(this);
} } | public class class_name {
public void disconnectBegin() {
if (this.startPoint != null) {
this.startPoint.remove(this); // depends on control dependency: [if], data = [none]
}
this.startPoint = new SGraphPoint(getGraph());
this.startPoint.add(this);
} } |
public class class_name {
@Override
protected void perturbation(List<DoubleSolution> swarm) {
nonUniformMutation.setCurrentIteration(currentIteration);
for (int i = 0; i < swarm.size(); i++) {
if (i % 3 == 0) {
nonUniformMutation.execute(swarm.get(i));
} else if (i % 3 == 1) {
... | public class class_name {
@Override
protected void perturbation(List<DoubleSolution> swarm) {
nonUniformMutation.setCurrentIteration(currentIteration);
for (int i = 0; i < swarm.size(); i++) {
if (i % 3 == 0) {
nonUniformMutation.execute(swarm.get(i));
// depends on control dependency:... |
public class class_name {
@Override
public void clear() {
if (mSize != 0) {
freeArrays(mHashes, mArray, mSize);
mHashes = ContainerHelpers.EMPTY_INTS;
mArray = ContainerHelpers.EMPTY_OBJECTS;
mSize = 0;
}
} } | public class class_name {
@Override
public void clear() {
if (mSize != 0) {
freeArrays(mHashes, mArray, mSize); // depends on control dependency: [if], data = [none]
mHashes = ContainerHelpers.EMPTY_INTS; // depends on control dependency: [if], data = [none]
mArray = Con... |
public class class_name {
public void localUpdateLongRunningFree(Address logicalAddress, Long freeCount)
{
if (trace)
log.tracef("LOCAL_UPDATE_LONGRUNNING_FREE(%s, %d)", logicalAddress, freeCount);
DistributedWorkManager dwm = workManagerCoordinator.resolveDistributedWorkManager(logicalAddress... | public class class_name {
public void localUpdateLongRunningFree(Address logicalAddress, Long freeCount)
{
if (trace)
log.tracef("LOCAL_UPDATE_LONGRUNNING_FREE(%s, %d)", logicalAddress, freeCount);
DistributedWorkManager dwm = workManagerCoordinator.resolveDistributedWorkManager(logicalAddress... |
public class class_name {
public boolean isUnacceptable(E element) {
Ranking ranking = this.map.get(element);
if (ranking == null) {
return false;
}
return ranking.isUnacceptable();
} } | public class class_name {
public boolean isUnacceptable(E element) {
Ranking ranking = this.map.get(element);
if (ranking == null) {
return false;
// depends on control dependency: [if], data = [none]
}
return ranking.isUnacceptable();
} } |
public class class_name {
public void setAttributeDefinitions(java.util.Collection<AttributeDefinition> attributeDefinitions) {
if (attributeDefinitions == null) {
this.attributeDefinitions = null;
return;
}
this.attributeDefinitions = new java.util.ArrayList<AttributeD... | public class class_name {
public void setAttributeDefinitions(java.util.Collection<AttributeDefinition> attributeDefinitions) {
if (attributeDefinitions == null) {
this.attributeDefinitions = null; // depends on control dependency: [if], data = [none]
return; // depends on control depen... |
public class class_name {
public static Map<String, DataSource> getDataSourceMap(final Map<String, DataSourceConfiguration> dataSourceConfigurationMap) {
Map<String, DataSource> result = new LinkedHashMap<>(dataSourceConfigurationMap.size(), 1);
for (Entry<String, DataSourceConfiguration> entry : dataS... | public class class_name {
public static Map<String, DataSource> getDataSourceMap(final Map<String, DataSourceConfiguration> dataSourceConfigurationMap) {
Map<String, DataSource> result = new LinkedHashMap<>(dataSourceConfigurationMap.size(), 1);
for (Entry<String, DataSourceConfiguration> entry : dataS... |
public class class_name {
public EClass getIfcStructuralPointReaction() {
if (ifcStructuralPointReactionEClass == null) {
ifcStructuralPointReactionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(560);
}
return ifcStructuralPointReactionEClas... | public class class_name {
public EClass getIfcStructuralPointReaction() {
if (ifcStructuralPointReactionEClass == null) {
ifcStructuralPointReactionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(560);
// depends on control dependency: [if], data ... |
public class class_name {
public Image setSizeFromGif(File gif)
{
if (gif.canRead())
{
FileInputStream in = null;
try{
byte [] buf = new byte[10];
in = new FileInputStream(gif);
if (in.read(buf,0,10)==10)
{
... | public class class_name {
public Image setSizeFromGif(File gif)
{
if (gif.canRead())
{
FileInputStream in = null;
try{
byte [] buf = new byte[10];
in = new FileInputStream(gif); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public static void main(String[] args) {
if (args.length != 0) {
LOG.info("java -cp {} {}", RuntimeConstants.ALLUXIO_JAR,
AlluxioJobMasterMonitor.class.getCanonicalName());
LOG.warn("ignoring arguments");
}
AlluxioConfiguration conf = new InstancedConfigurati... | public class class_name {
public static void main(String[] args) {
if (args.length != 0) {
LOG.info("java -cp {} {}", RuntimeConstants.ALLUXIO_JAR,
AlluxioJobMasterMonitor.class.getCanonicalName()); // depends on control dependency: [if], data = [none]
LOG.warn("ignoring arguments"); // depen... |
public class class_name {
public void processIOException(IOExceptionEvent event) {
if(event instanceof IOExceptionEventExt && ((IOExceptionEventExt)event).getReason() == gov.nist.javax.sip.IOExceptionEventExt.Reason.KeepAliveTimeout) {
IOExceptionEventExt keepAliveTimeout = ((IOExceptionEventExt)event);
SipC... | public class class_name {
public void processIOException(IOExceptionEvent event) {
if(event instanceof IOExceptionEventExt && ((IOExceptionEventExt)event).getReason() == gov.nist.javax.sip.IOExceptionEventExt.Reason.KeepAliveTimeout) {
IOExceptionEventExt keepAliveTimeout = ((IOExceptionEventExt)event);
SipC... |
public class class_name {
public void marshall(ListPullRequestsRequest listPullRequestsRequest, ProtocolMarshaller protocolMarshaller) {
if (listPullRequestsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(ListPullRequestsRequest listPullRequestsRequest, ProtocolMarshaller protocolMarshaller) {
if (listPullRequestsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public static Buffer getQueue(int size) {
if (CmsLog.INIT.isInfoEnabled()) {
CmsLog.INIT.info(
Messages.get().getBundle().key(Messages.INIT_PUBLISH_HISTORY_SIZE_SET_1, new Integer(size)));
}
return BufferUtils.synchronizedBuffer(TypedBuffe... | public class class_name {
public static Buffer getQueue(int size) {
if (CmsLog.INIT.isInfoEnabled()) {
CmsLog.INIT.info(
Messages.get().getBundle().key(Messages.INIT_PUBLISH_HISTORY_SIZE_SET_1, new Integer(size))); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private void calcAutoWidth(int i) {
int w = 10;
w = Math.max(w, fMetrics.stringWidth(sColHead[i]));
for (int j = 0; j < iRowCount; j++) {
String[] s = (String[]) (vData.elementAt(j));
w = Math.max(w, fMetrics.stringWidth(s[i]));
}
... | public class class_name {
private void calcAutoWidth(int i) {
int w = 10;
w = Math.max(w, fMetrics.stringWidth(sColHead[i]));
for (int j = 0; j < iRowCount; j++) {
String[] s = (String[]) (vData.elementAt(j));
w = Math.max(w, fMetrics.stringWidth(s[i])); // depends o... |
public class class_name {
private OpenConnection openURL(URL url) {
if(url==null) return null;
// jetty reports directories as URLs, which isn't what this is intended for,
// so check and reject.
File f = toFile(url);
if(f!=null && f.isDirectory())
return null;... | public class class_name {
private OpenConnection openURL(URL url) {
if(url==null) return null;
// jetty reports directories as URLs, which isn't what this is intended for,
// so check and reject.
File f = toFile(url);
if(f!=null && f.isDirectory())
return null;... |
public class class_name {
public Date parse(String dateString)
throws ParseException
{
Date result = null;
ParseException lastException = null;
for (DateFormat format : inputFormats)
{
try
{
result = ((DateFormat) format.clone()).parse(dateString); // DateFormat is not thread safe.
lastExcep... | public class class_name {
public Date parse(String dateString)
throws ParseException
{
Date result = null;
ParseException lastException = null;
for (DateFormat format : inputFormats)
{
try
{
result = ((DateFormat) format.clone()).parse(dateString); // DateFormat is not thread safe. // depends on... |
public class class_name {
public Iterator<URL> getResources(String name) {
ArrayList<URL> collectedResources = new ArrayList<URL>();
try {
synchronized (bundles) {
Collection<Bundle> values = bundles.values();
for (Bundle bundle : values) {
... | public class class_name {
public Iterator<URL> getResources(String name) {
ArrayList<URL> collectedResources = new ArrayList<URL>();
try {
synchronized (bundles) { // depends on control dependency: [try], data = [none]
Collection<Bundle> values = bundles.values();
... |
public class class_name {
public static DatabaseProtocolFrontendEngine newInstance(final DatabaseType databaseType) {
for (DatabaseProtocolFrontendEngine each : NewInstanceServiceLoader.newServiceInstances(DatabaseProtocolFrontendEngine.class)) {
if (DatabaseType.valueFrom(each.getDatabaseType()) =... | public class class_name {
public static DatabaseProtocolFrontendEngine newInstance(final DatabaseType databaseType) {
for (DatabaseProtocolFrontendEngine each : NewInstanceServiceLoader.newServiceInstances(DatabaseProtocolFrontendEngine.class)) {
if (DatabaseType.valueFrom(each.getDatabaseType()) =... |
public class class_name {
public static Constructor getConstructor(final String name) throws ClassNotFoundException, NoSuchMethodException {
Constructor constructor = constructorsCache.get(name);
if (constructor == null) {
synchronized (constructorsCache) {
constructor = con... | public class class_name {
public static Constructor getConstructor(final String name) throws ClassNotFoundException, NoSuchMethodException {
Constructor constructor = constructorsCache.get(name);
if (constructor == null) {
synchronized (constructorsCache) {
constructor = con... |
public class class_name {
public void marshall(EnableEnhancedMonitoringRequest enableEnhancedMonitoringRequest, ProtocolMarshaller protocolMarshaller) {
if (enableEnhancedMonitoringRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(EnableEnhancedMonitoringRequest enableEnhancedMonitoringRequest, ProtocolMarshaller protocolMarshaller) {
if (enableEnhancedMonitoringRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
private void printMessage(final String message, final PrintStream stream, final int priority) {
if (useColor && priority == Project.MSG_ERR) {
stream.print(ANSI_RED);
stream.print(message);
stream.println(ANSI_RESET);
} else {
st... | public class class_name {
private void printMessage(final String message, final PrintStream stream, final int priority) {
if (useColor && priority == Project.MSG_ERR) {
stream.print(ANSI_RED); // depends on control dependency: [if], data = [none]
stream.print(message); // depends on con... |
public class class_name {
@Override
public int getItemCount() {
if (mAdapter != null) {
/*
No of currently fetched ads, as long as it isn't more than no of max ads that can
fit dataset.
*/
int noOfAds = AdapterCalculator.getAdsCountToPublish(adF... | public class class_name {
@Override
public int getItemCount() {
if (mAdapter != null) {
/*
No of currently fetched ads, as long as it isn't more than no of max ads that can
fit dataset.
*/
int noOfAds = AdapterCalculator.getAdsCountToPublish(adF... |
public class class_name {
protected final void checkMaxSize(final Dimension screenSize,
final Dimension frameSize) {
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
}
if (frameSize.width > screenSize.width) {
frameSize.... | public class class_name {
protected final void checkMaxSize(final Dimension screenSize,
final Dimension frameSize) {
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
// depends on control dependency: [if], data = [none]
}
if (frameSi... |
public class class_name {
protected boolean isSuccessfulResult(@Sensitive Map<String, Object> result, String endpoint) {
if (result == null) {
Tr.error(tc, "TWITTER_ERROR_OBTAINING_ENDPOINT_RESULT", new Object[] { endpoint });
return false;
}
String responseStatus = resu... | public class class_name {
protected boolean isSuccessfulResult(@Sensitive Map<String, Object> result, String endpoint) {
if (result == null) {
Tr.error(tc, "TWITTER_ERROR_OBTAINING_ENDPOINT_RESULT", new Object[] { endpoint }); // depends on control dependency: [if], data = [none]
return... |
public class class_name {
int[] getTrimmedLocals() {
int last = locals.length - 1;
// Exclude all of the trailing TOPs not bound to a DOUBLE/LONG
while (last >= 0 && locals[last] == TypeInfo.TOP &&
!TypeInfo.isTwoWords(locals[last - 1])) {
last--;
}
last++;
// Exclude trailing TOP... | public class class_name {
int[] getTrimmedLocals() {
int last = locals.length - 1;
// Exclude all of the trailing TOPs not bound to a DOUBLE/LONG
while (last >= 0 && locals[last] == TypeInfo.TOP &&
!TypeInfo.isTwoWords(locals[last - 1])) {
last--; // depends on control dependency: [while], da... |
public class class_name {
private BasicInjectionTarget<T> prepareInjectionTarget(BasicInjectionTarget<T> injectionTarget) {
try {
postProcess(initialize(validate(injectionTarget)));
return injectionTarget;
} catch (Throwable e) {
throw new IllegalArgumentException(e)... | public class class_name {
private BasicInjectionTarget<T> prepareInjectionTarget(BasicInjectionTarget<T> injectionTarget) {
try {
postProcess(initialize(validate(injectionTarget))); // depends on control dependency: [try], data = [none]
return injectionTarget; // depends on control depe... |
public class class_name {
@Override
protected boolean reject(LogItem log) {
if (whitelistTags != null) {
for (String enabledTag : whitelistTags) {
if (log.tag.equals(enabledTag)) {
return false;
}
}
}
return true;
} } | public class class_name {
@Override
protected boolean reject(LogItem log) {
if (whitelistTags != null) {
for (String enabledTag : whitelistTags) {
if (log.tag.equals(enabledTag)) {
return false; // depends on control dependency: [if], data = [none]
}
}
}
return true;... |
public class class_name {
private boolean newSharedImage(String name, String sharedName) {
boolean success = true;
ImageDescriptor id = getSharedByName(sharedName);
if (id == null) {
id = ImageDescriptor.getMissingImageDescriptor();
// id = getSharedByName(ISharedImages.IMG_OBJS_ERROR_TSK);
... | public class class_name {
private boolean newSharedImage(String name, String sharedName) {
boolean success = true;
ImageDescriptor id = getSharedByName(sharedName);
if (id == null) {
id = ImageDescriptor.getMissingImageDescriptor(); // depends on control dependency: [if], data = [none]
// id =... |
public class class_name {
@Override
public ImageSource apply(ImageSource input) {
final int[][] pixelMatrix = new int[3][3];
int w = input.getWidth();
int h = input.getHeight();
int[][] output = new int[h][w];
for (int j = 1; j < h - 1; j++) {
for (int i = 1; ... | public class class_name {
@Override
public ImageSource apply(ImageSource input) {
final int[][] pixelMatrix = new int[3][3];
int w = input.getWidth();
int h = input.getHeight();
int[][] output = new int[h][w];
for (int j = 1; j < h - 1; j++) {
for (int i = 1; ... |
public class class_name {
private void startFolderMonitor() {
if (serverConfiguration.getAppFolderToMonitor() != null) {
try {
folderMonitor = new FolderMonitor(this, serverConfiguration);
folderMonitor.start();
} catch (IOException e) {
log.warning("Could not monitor the given ... | public class class_name {
private void startFolderMonitor() {
if (serverConfiguration.getAppFolderToMonitor() != null) {
try {
folderMonitor = new FolderMonitor(this, serverConfiguration); // depends on control dependency: [try], data = [none]
folderMonitor.start(); // depends on control depe... |
public class class_name {
private double evaluateClusters(ArrayList<PROCLUSCluster> clusters, long[][] dimensions, Relation<V> database) {
double result = 0;
for(int i = 0; i < dimensions.length; i++) {
PROCLUSCluster c_i = clusters.get(i);
double[] centroid_i = c_i.centroid;
long[] dims_i =... | public class class_name {
private double evaluateClusters(ArrayList<PROCLUSCluster> clusters, long[][] dimensions, Relation<V> database) {
double result = 0;
for(int i = 0; i < dimensions.length; i++) {
PROCLUSCluster c_i = clusters.get(i);
double[] centroid_i = c_i.centroid;
long[] dims_i =... |
public class class_name {
private int getStep(double[] x, double[] dir, double[] newX, double f0,
double g0, double[] newPt, double[] bestPt, double[] endPt,
double stpMin, double stpMax) throws MaxEvaluationsExceeded {
int info = 0;
// Should check for input errors.
boolean bound = fals... | public class class_name {
private int getStep(double[] x, double[] dir, double[] newX, double f0,
double g0, double[] newPt, double[] bestPt, double[] endPt,
double stpMin, double stpMax) throws MaxEvaluationsExceeded {
int info = 0;
// Should check for input errors.
boolean bound = fals... |
public class class_name {
protected void end()
{
if (trace)
log.tracef("Ending work: %s", this);
ExecutionContext ctx = getWorkContext(TransactionContext.class);
if (ctx == null)
{
ctx = getExecutionContext();
}
if (ctx != null)
{
Xid xid = ct... | public class class_name {
protected void end()
{
if (trace)
log.tracef("Ending work: %s", this);
ExecutionContext ctx = getWorkContext(TransactionContext.class);
if (ctx == null)
{
ctx = getExecutionContext(); // depends on control dependency: [if], data = [none]
}... |
public class class_name {
public static String unCamel(String str, char seperator, boolean lowercase) {
char[] ca = str.toCharArray();
if (3 > ca.length) { return lowercase ? str.toLowerCase() : str; }
// about five seperator
StringBuilder build = new StringBuilder(ca.length + 5);
build.append(lowe... | public class class_name {
public static String unCamel(String str, char seperator, boolean lowercase) {
char[] ca = str.toCharArray();
if (3 > ca.length) { return lowercase ? str.toLowerCase() : str; } // depends on control dependency: [if], data = [none]
// about five seperator
StringBuilder build = n... |
public class class_name {
public static int[] parseSpecStr(String in) {
if (in == null) {
return new int[0];
}
in = in.replaceAll(" ", "");
in = in.trim();
if (in.length() == 0) {
return new int[0];
}
String[] tokens = in.split(",");
... | public class class_name {
public static int[] parseSpecStr(String in) {
if (in == null) {
return new int[0]; // depends on control dependency: [if], data = [none]
}
in = in.replaceAll(" ", "");
in = in.trim();
if (in.length() == 0) {
return new int[0]; ... |
public class class_name {
private double penalizedPathDistance(Path path,
Set<EdgeIteratorState> penalizedVirtualEdges) {
double totalPenalty = 0;
// Unfavored edges in the middle of the path should not be penalized because we are
// only concerned abou... | public class class_name {
private double penalizedPathDistance(Path path,
Set<EdgeIteratorState> penalizedVirtualEdges) {
double totalPenalty = 0;
// Unfavored edges in the middle of the path should not be penalized because we are
// only concerned abou... |
public class class_name {
static void set(WarpContext warpContext) {
Validate.notNull(warpContext, "WarpContext for setting to store can't be null");
try {
while (!reference.compareAndSet(null, warpContext)) {
Thread.sleep(100);
}
} catch (InterruptedExc... | public class class_name {
static void set(WarpContext warpContext) {
Validate.notNull(warpContext, "WarpContext for setting to store can't be null");
try {
while (!reference.compareAndSet(null, warpContext)) {
Thread.sleep(100); // depends on control dependency: [while], da... |
public class class_name {
private static int convertTimestamp(String timestamp) throws ParseException {
// Get the deadline from timestamp
int deadline;
SimpleDateFormat dateFormat = new SimpleDateFormat("hh:mm:ss");
Date parsedDate;
// Relative timestamp
if (timestamp... | public class class_name {
private static int convertTimestamp(String timestamp) throws ParseException {
// Get the deadline from timestamp
int deadline;
SimpleDateFormat dateFormat = new SimpleDateFormat("hh:mm:ss");
Date parsedDate;
// Relative timestamp
if (timestamp... |
public class class_name {
public void cacheConcept(Concept concept) {
conceptCache.put(concept.id(), concept);
if (concept.isSchemaConcept()) {
SchemaConcept schemaConcept = concept.asSchemaConcept();
schemaConceptCache.put(schemaConcept.label(), schemaConcept);
labe... | public class class_name {
public void cacheConcept(Concept concept) {
conceptCache.put(concept.id(), concept);
if (concept.isSchemaConcept()) {
SchemaConcept schemaConcept = concept.asSchemaConcept();
schemaConceptCache.put(schemaConcept.label(), schemaConcept); // depends on co... |
public class class_name {
private String getAnnotationValue(Annotation annotation) {
Class<? extends Annotation> type = annotation.annotationType();
try {
Method method = type.getDeclaredMethod(VALUE);
return String.valueOf(method.invoke(annotation, NO_ARGS));
} catch (N... | public class class_name {
private String getAnnotationValue(Annotation annotation) {
Class<? extends Annotation> type = annotation.annotationType();
try {
Method method = type.getDeclaredMethod(VALUE);
return String.valueOf(method.invoke(annotation, NO_ARGS)); // depends on cont... |
public class class_name {
public static boolean notifyPostEventListenerProviders(IServletContext isc,AsyncContextImpl ac) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "RegisterEventListenerProvider notifyPostEventListenerProvider(IServletContext,AsyncCo... | public class class_name {
public static boolean notifyPostEventListenerProviders(IServletContext isc,AsyncContextImpl ac) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "RegisterEventListenerProvider notifyPostEventListenerProvider(IServletContext,AsyncCo... |
public class class_name {
public Observable<ServiceResponse<Page<VpnConnectionInner>>> listByVpnGatewaySinglePageAsync(final String resourceGroupName, final String gatewayName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() i... | public class class_name {
public Observable<ServiceResponse<Page<VpnConnectionInner>>> listByVpnGatewaySinglePageAsync(final String resourceGroupName, final String gatewayName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() i... |
public class class_name {
public Observable<ServiceResponse<List<AzureResourceSkuInner>>> listSkusByResourceWithServiceResponseAsync(String resourceGroupName, String clusterName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and canno... | public class class_name {
public Observable<ServiceResponse<List<AzureResourceSkuInner>>> listSkusByResourceWithServiceResponseAsync(String resourceGroupName, String clusterName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and canno... |
public class class_name {
public List<JavaResource> getProjectEventTypes(Project project)
{
final List<JavaResource> eventTypes = new ArrayList<>();
if (project != null)
{
project.getFacet(JavaSourceFacet.class).visitJavaSources(new JavaResourceVisitor()
{
@Override
... | public class class_name {
public List<JavaResource> getProjectEventTypes(Project project)
{
final List<JavaResource> eventTypes = new ArrayList<>();
if (project != null)
{
project.getFacet(JavaSourceFacet.class).visitJavaSources(new JavaResourceVisitor()
{
@Override
... |
public class class_name {
private ComponentStatus getComponentStatusFromChargePointStatus(ChargePointStatus status) {
String value = status.value();
if ("Unavailable".equalsIgnoreCase(value)) {
value = "Inoperative";
}
return ComponentStatus.fromValue(value);
} } | public class class_name {
private ComponentStatus getComponentStatusFromChargePointStatus(ChargePointStatus status) {
String value = status.value();
if ("Unavailable".equalsIgnoreCase(value)) {
value = "Inoperative"; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@CommandArgument
public void save(
@OptionArgument("filename") String filename) {
try {
PrintStream out = new PrintStream(new FileOutputStream(filename));
for (User user : users.values()) {
out.println(user);
}
} catch (IOException e) {
e.prin... | public class class_name {
@CommandArgument
public void save(
@OptionArgument("filename") String filename) {
try {
PrintStream out = new PrintStream(new FileOutputStream(filename));
for (User user : users.values()) {
out.println(user); // depends on control dependency: [for], data = [u... |
public class class_name {
protected Object[] getChildren() {
if (children != null) {
return children;
}
ArrayList<DebugVariable> fields = mVariable.getFieldList();
if (fields != null) {
children = new VariableNode[fields.size()];
for (int i = 0; i < ... | public class class_name {
protected Object[] getChildren() {
if (children != null) {
return children; // depends on control dependency: [if], data = [none]
}
ArrayList<DebugVariable> fields = mVariable.getFieldList();
if (fields != null) {
children = new Variabl... |
public class class_name {
@Pure
public static boolean hasExtension(File filename, String extension) {
if (filename == null) {
return false;
}
assert extension != null;
String extent = extension;
if (!"".equals(extent) && !extent.startsWith(EXTENSION_SEPARATOR)) { //$NON-NLS-1$
extent = EXTENSION_SEPAR... | public class class_name {
@Pure
public static boolean hasExtension(File filename, String extension) {
if (filename == null) {
return false; // depends on control dependency: [if], data = [none]
}
assert extension != null;
String extent = extension;
if (!"".equals(extent) && !extent.startsWith(EXTENSION_S... |
public class class_name {
@Override
public EEnum getIfcOccupantTypeEnum() {
if (ifcOccupantTypeEnumEEnum == null) {
ifcOccupantTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1023);
}
return ifcOccupantTypeEnumEEnum;
} } | public class class_name {
@Override
public EEnum getIfcOccupantTypeEnum() {
if (ifcOccupantTypeEnumEEnum == null) {
ifcOccupantTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1023);
// depends on control dependency: [if], data = [none]
}
r... |
public class class_name {
public ProtoNetwork buildProtoNetwork() {
ProtoNetwork pn = new ProtoNetwork();
// handle document header
DocumentTable dt = pn.getDocumentTable();
dt.addDocumentHeader(new DocumentHeader(doc.getHeader()));
// handle namespaces
NamespaceGroup ... | public class class_name {
public ProtoNetwork buildProtoNetwork() {
ProtoNetwork pn = new ProtoNetwork();
// handle document header
DocumentTable dt = pn.getDocumentTable();
dt.addDocumentHeader(new DocumentHeader(doc.getHeader()));
// handle namespaces
NamespaceGroup ... |
public class class_name {
protected void recalculateData() {
Node currentChild = this.getChild();
if (currentChild != null) {
ClusKernel currentData = this.getData();
currentData.clear();
Entry[] entries = currentChild.getEntries();
for (int i = 0; i < en... | public class class_name {
protected void recalculateData() {
Node currentChild = this.getChild();
if (currentChild != null) {
ClusKernel currentData = this.getData();
currentData.clear(); // depends on control dependency: [if], data = [none]
Entry[] entries = current... |
public class class_name {
@EventHandler
public void playerJoinEvent(PlayerJoinEvent event) {
if (Common.getInstance().getMainConfig().getBoolean("System.CheckNewVersion") && Common.getInstance().getServerCaller().getPlayerCaller().isOp(event.getP().getName()) && Common.getInstance().getVersionChecker().get... | public class class_name {
@EventHandler
public void playerJoinEvent(PlayerJoinEvent event) {
if (Common.getInstance().getMainConfig().getBoolean("System.CheckNewVersion") && Common.getInstance().getServerCaller().getPlayerCaller().isOp(event.getP().getName()) && Common.getInstance().getVersionChecker().get... |
public class class_name {
static boolean isModern(Class<? extends LoadStatistics> clazz) {
// cannot use Util.isOverridden as these are protected methods.
boolean hasGetNodes = false;
boolean hasMatches = false;
while (clazz != LoadStatistics.class && clazz != null && !(hasGetNodes && h... | public class class_name {
static boolean isModern(Class<? extends LoadStatistics> clazz) {
// cannot use Util.isOverridden as these are protected methods.
boolean hasGetNodes = false;
boolean hasMatches = false;
while (clazz != LoadStatistics.class && clazz != null && !(hasGetNodes && h... |
public class class_name {
private synchronized void submitToExecutor(final Runnable command)
{
if ( state.get() == State.STARTED )
{
executorService.submit(command);
}
} } | public class class_name {
private synchronized void submitToExecutor(final Runnable command)
{
if ( state.get() == State.STARTED )
{
executorService.submit(command); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void addBody(final GVRRigidBody gvrBody) {
mPhysicsContext.runOnPhysicsThread(new Runnable() {
@Override
public void run() {
if (contains(gvrBody)) {
return;
}
if (gvrBody.getCollisionG... | public class class_name {
public void addBody(final GVRRigidBody gvrBody) {
mPhysicsContext.runOnPhysicsThread(new Runnable() {
@Override
public void run() {
if (contains(gvrBody)) {
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public AT_Row setPaddingLeftRight(int padding){
if(this.hasCells()){
for(AT_Cell cell : this.getCells()){
cell.getContext().setPaddingLeftRight(padding);
}
}
return this;
} } | public class class_name {
public AT_Row setPaddingLeftRight(int padding){
if(this.hasCells()){
for(AT_Cell cell : this.getCells()){
cell.getContext().setPaddingLeftRight(padding);
// depends on control dependency: [for], data = [cell]
}
}
return this;
} } |
public class class_name {
public DescribeClustersRequest withClusterNames(String... clusterNames) {
if (this.clusterNames == null) {
setClusterNames(new java.util.ArrayList<String>(clusterNames.length));
}
for (String ele : clusterNames) {
this.clusterNames.add(ele);
... | public class class_name {
public DescribeClustersRequest withClusterNames(String... clusterNames) {
if (this.clusterNames == null) {
setClusterNames(new java.util.ArrayList<String>(clusterNames.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : clust... |
public class class_name {
public Map<Integer, List<HeronTuples.HeronTupleSet>> getCache() {
Map<Integer, List<HeronTuples.HeronTupleSet>> res =
new HashMap<>();
for (Map.Entry<Integer, TupleList> entry : cache.entrySet()) {
res.put(entry.getKey(), entry.getValue().getTuplesList());
}
ret... | public class class_name {
public Map<Integer, List<HeronTuples.HeronTupleSet>> getCache() {
Map<Integer, List<HeronTuples.HeronTupleSet>> res =
new HashMap<>();
for (Map.Entry<Integer, TupleList> entry : cache.entrySet()) {
res.put(entry.getKey(), entry.getValue().getTuplesList()); // depends on ... |
public class class_name {
public int[] getIC()
{
int[] ic = new int[nzmax];
int i = 0;
for ( IndexMN index : indexSet )
{
ic[i++] = index.n;
}
return ic;
} } | public class class_name {
public int[] getIC()
{
int[] ic = new int[nzmax];
int i = 0;
for ( IndexMN index : indexSet )
{
ic[i++] = index.n; // depends on control dependency: [for], data = [index]
}
return ic;
} } |
public class class_name {
private String extractIdUnescaped(String id) {
if (!id.isEmpty() && !Character.isDigit(id.charAt(0))) {
return org.unbescape.css.CssEscape.unescapeCss(id);
}
return null;
} } | public class class_name {
private String extractIdUnescaped(String id) {
if (!id.isEmpty() && !Character.isDigit(id.charAt(0))) {
return org.unbescape.css.CssEscape.unescapeCss(id); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
protected void setupCurrentSqlExp(StringBuilder sb, RomanticTransaction tx) {
final TransactionCurrentSqlBuilder currentSqlBuilder = tx.getCurrentSqlBuilder();
if (currentSqlBuilder != null) {
final String currentSql = currentSqlBuilder.buildSql();
sb.a... | public class class_name {
protected void setupCurrentSqlExp(StringBuilder sb, RomanticTransaction tx) {
final TransactionCurrentSqlBuilder currentSqlBuilder = tx.getCurrentSqlBuilder();
if (currentSqlBuilder != null) {
final String currentSql = currentSqlBuilder.buildSql();
sb.a... |
public class class_name {
@Reference(title = "Fast and accurate computation of binomial probabilities", //
authors = "C. Loader", booktitle = "", //
url = "http://projects.scipy.org/scipy/raw-attachment/ticket/620/loader2000Fast.pdf", //
bibkey = "web/Loader00")
private static double devianceTerm(d... | public class class_name {
@Reference(title = "Fast and accurate computation of binomial probabilities", //
authors = "C. Loader", booktitle = "", //
url = "http://projects.scipy.org/scipy/raw-attachment/ticket/620/loader2000Fast.pdf", //
bibkey = "web/Loader00")
private static double devianceTerm(d... |
public class class_name {
void add(TouchPipeline pipeline) {
for (int i = 0; i < pipeline.filters.size(); i++) {
addFilter(pipeline.filters.get(i));
}
} } | public class class_name {
void add(TouchPipeline pipeline) {
for (int i = 0; i < pipeline.filters.size(); i++) {
addFilter(pipeline.filters.get(i)); // depends on control dependency: [for], data = [i]
}
} } |
public class class_name {
public static void fitCannyEdges( GrayF32 input ) {
BufferedImage displayImage = new BufferedImage(input.width,input.height,BufferedImage.TYPE_INT_RGB);
// Finds edges inside the image
CannyEdge<GrayF32,GrayF32> canny =
FactoryEdgeDetectors.canny(2, true, true, GrayF32.class, Gray... | public class class_name {
public static void fitCannyEdges( GrayF32 input ) {
BufferedImage displayImage = new BufferedImage(input.width,input.height,BufferedImage.TYPE_INT_RGB);
// Finds edges inside the image
CannyEdge<GrayF32,GrayF32> canny =
FactoryEdgeDetectors.canny(2, true, true, GrayF32.class, Gray... |
public class class_name {
@Override
public void destroy() {
final String sourceMethod = "destroy"; //$NON-NLS-1$
boolean isTraceLogging = log.isLoggable(Level.FINER);
if (isTraceLogging) {
log.entering(AbstractAggregatorImpl.class.getName(), sourceMethod);
}
shutdown();
super.destroy();
... | public class class_name {
@Override
public void destroy() {
final String sourceMethod = "destroy"; //$NON-NLS-1$
boolean isTraceLogging = log.isLoggable(Level.FINER);
if (isTraceLogging) {
log.entering(AbstractAggregatorImpl.class.getName(), sourceMethod);
// depends on control dependency: [if], data =... |
public class class_name {
protected IOException copyRange(Reader reader, PrintWriter writer, long start, long end) {
try {
reader.skip(start);
} catch (IOException e) {
return e;
}
IOException exception = null;
long bytesToRead = (end - start) + 1;
... | public class class_name {
protected IOException copyRange(Reader reader, PrintWriter writer, long start, long end) {
try {
reader.skip(start); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
return e;
} // depends on control dependency: ... |
public class class_name {
@SuppressWarnings("unchecked")
public static Map deepMerge(Map dst, Map src) {
if (dst != null && src != null) {
for (Object key : src.keySet()) {
if (src.get(key) instanceof Map && dst.get(key) instanceof Map) {
Map originalChild = ... | public class class_name {
@SuppressWarnings("unchecked")
public static Map deepMerge(Map dst, Map src) {
if (dst != null && src != null) {
for (Object key : src.keySet()) {
if (src.get(key) instanceof Map && dst.get(key) instanceof Map) {
Map originalChild = ... |
public class class_name {
private void traverseFunction(Node function, Scope parentScope) {
checkState(function.getChildCount() == 3, function);
checkState(function.isFunction(), function);
final Node paramlist = NodeUtil.getFunctionParameters(function);
final Node body = function.getLastChild();
... | public class class_name {
private void traverseFunction(Node function, Scope parentScope) {
checkState(function.getChildCount() == 3, function);
checkState(function.isFunction(), function);
final Node paramlist = NodeUtil.getFunctionParameters(function);
final Node body = function.getLastChild();
... |
public class class_name {
private void init(){
// Create the Empty Layout
LinearLayout container = new LinearLayout(getContext());
mIcon = new ImageView(getContext());
mMessage = new TextView(getContext());
mAction = new TextView(getContext());
mProgress = new ProgressB... | public class class_name {
private void init(){
// Create the Empty Layout
LinearLayout container = new LinearLayout(getContext());
mIcon = new ImageView(getContext());
mMessage = new TextView(getContext());
mAction = new TextView(getContext());
mProgress = new ProgressB... |
public class class_name {
public void end(Point p) {
lastPt.x = endPt.x = p.x;
lastPt.y = endPt.y = p.y;
Graphics2D g = (Graphics2D) component.getGraphics();
if(g != null) {
try {
g.setXORMode(component.getBackground());
drawLast(g);
}
finally {
g.dispose();
}
... | public class class_name {
public void end(Point p) {
lastPt.x = endPt.x = p.x;
lastPt.y = endPt.y = p.y;
Graphics2D g = (Graphics2D) component.getGraphics();
if(g != null) {
try {
g.setXORMode(component.getBackground()); // depends on control dependency: [try], data = [none]
drawLas... |
public class class_name {
@Override
public <T> void cache(final Object key, final Object object, Class<T> clas) {
this.logger.debug("@cache v2 ");
if (object == null && !isAllowNullable()) {
return;
} else {
this.logger.debug("logging key :", key, " with object : ", object, " with Class : ", clas)... | public class class_name {
@Override
public <T> void cache(final Object key, final Object object, Class<T> clas) {
this.logger.debug("@cache v2 ");
if (object == null && !isAllowNullable()) {
return;
// depends on control dependency: [if], data = [none]
} else {
this.logger.debug("logging key :", k... |
public class class_name {
public final boolean contains(char a) {
for (int i = off; i < (off + len); ++i) {
if (fb[i] == a) {
return true;
}
}
return false;
} } | public class class_name {
public final boolean contains(char a) {
for (int i = off; i < (off + len); ++i) {
if (fb[i] == a) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
public void writeSilenceForced(long tick) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "writeSilenceForced", Long.valueOf(tick) );
// Details of the new silence
long startTick = -1;
long endTi... | public class class_name {
public void writeSilenceForced(long tick) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "writeSilenceForced", Long.valueOf(tick) );
// Details of the new silence
long startTick = -1;
long endTi... |
public class class_name {
private void log(final String message) {
if (this.optionalParams.isPresent()) {
logger.log(logLevel, message, params);
} else {
logger.log(logLevel, message);
}
} } | public class class_name {
private void log(final String message) {
if (this.optionalParams.isPresent()) {
logger.log(logLevel, message, params); // depends on control dependency: [if], data = [none]
} else {
logger.log(logLevel, message); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public final BaseDescr andExpression() throws RecognitionException {
BaseDescr result = null;
BaseDescr left =null;
BaseDescr right =null;
try {
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:273:3: (left= equalityExpression ( AMPER right= equalityExpression )*... | public class class_name {
public final BaseDescr andExpression() throws RecognitionException {
BaseDescr result = null;
BaseDescr left =null;
BaseDescr right =null;
try {
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:273:3: (left= equalityExpression ( AMPER right= equalityExpression )*... |
public class class_name {
private String extractErrorMessageFromResponse(HttpResponse response) {
String contentType = response.getEntity().getContentType().getValue();
if(contentType.contains("application/json")) {
Gson gson = GsonResponseParser.getDefaultGsonParser(false);
Str... | public class class_name {
private String extractErrorMessageFromResponse(HttpResponse response) {
String contentType = response.getEntity().getContentType().getValue();
if(contentType.contains("application/json")) {
Gson gson = GsonResponseParser.getDefaultGsonParser(false);
Str... |
public class class_name {
public static float[] stddev (int[] values, int start, int length)
{
// first we need the mean
float mean = 0f;
for (int ii = start, end = start + length; ii < end; ii++) {
mean += values[ii];
}
mean /= length;
// next we comput... | public class class_name {
public static float[] stddev (int[] values, int start, int length)
{
// first we need the mean
float mean = 0f;
for (int ii = start, end = start + length; ii < end; ii++) {
mean += values[ii]; // depends on control dependency: [for], data = [ii]
... |
public class class_name {
public static String trimTextDown(String text, int sizeMinusAppend, String append) {
Assert.notNull(append, "Missing append!");
if (text == null || text.length() <= sizeMinusAppend) {
return text;
}
sizeMinusAppend = sizeMinusAppend - append.length();
int pos = text.lastIndex... | public class class_name {
public static String trimTextDown(String text, int sizeMinusAppend, String append) {
Assert.notNull(append, "Missing append!");
if (text == null || text.length() <= sizeMinusAppend) {
return text; // depends on control dependency: [if], data = [none]
}
sizeMinusAppend = sizeMinu... |
public class class_name {
@Override
public void printGroundtruth(final Long user, final PrintStream out, final OUTPUT_FORMAT format) {
for (Long i : getTest().getUserItems(user)) {
Double d = getTest().getUserItemPreference(user, i);
if (d >= getThreshold()) {
final ... | public class class_name {
@Override
public void printGroundtruth(final Long user, final PrintStream out, final OUTPUT_FORMAT format) {
for (Long i : getTest().getUserItems(user)) {
Double d = getTest().getUserItemPreference(user, i);
if (d >= getThreshold()) {
final ... |
public class class_name {
public static String translateSize(String size, boolean strict) {
if (strict) {
boolean found=false;
for (String s: validValues) {
if (s.equals(size)) {
found=true;
break;
}
}
if (!found) {
throw new FacesException("The size of b:panel must be one of the va... | public class class_name {
public static String translateSize(String size, boolean strict) {
if (strict) {
boolean found=false;
for (String s: validValues) {
if (s.equals(size)) {
found=true; // depends on control dependency: [if], data = [none]
break;
}
}
if (!found) {
throw new Fac... |
public class class_name {
public static Tuple<String, String> split(String strColumn, String pattern, int index, String valueName) {
String name = "split_" + random();
String script = "";
if (valueName == null) {
script = "def " + name + " = doc['" + strColumn + "'].value.split('" +... | public class class_name {
public static Tuple<String, String> split(String strColumn, String pattern, int index, String valueName) {
String name = "split_" + random();
String script = "";
if (valueName == null) {
script = "def " + name + " = doc['" + strColumn + "'].value.split('" +... |
public class class_name {
protected int getDefaultMonthInYear(int extendedYear)
{
int era = internalGet(ERA, CURRENT_ERA);
//computeFields(status); // No need to compute fields here - expect the caller already did so.
// Find out if we are at the edge of an era
if(extendedYear == ERAS[era*... | public class class_name {
protected int getDefaultMonthInYear(int extendedYear)
{
int era = internalGet(ERA, CURRENT_ERA);
//computeFields(status); // No need to compute fields here - expect the caller already did so.
// Find out if we are at the edge of an era
if(extendedYear == ERAS[era*... |
public class class_name {
public EJSHome getHomeByInterface(String application,
String module,
String beanInterface)
throws EJBNotFoundException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
... | public class class_name {
public EJSHome getHomeByInterface(String application,
String module,
String beanInterface)
throws EJBNotFoundException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
... |
public class class_name {
public void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressDetails> privateIpAddresses) {
if (privateIpAddresses == null) {
this.privateIpAddresses = null;
return;
}
this.privateIpAddresses = new java.util.ArrayList<PrivateIpAddress... | public class class_name {
public void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressDetails> privateIpAddresses) {
if (privateIpAddresses == null) {
this.privateIpAddresses = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependenc... |
public class class_name {
public void setBundleList(java.util.Collection<BundleDetails> bundleList) {
if (bundleList == null) {
this.bundleList = null;
return;
}
this.bundleList = new java.util.ArrayList<BundleDetails>(bundleList);
} } | public class class_name {
public void setBundleList(java.util.Collection<BundleDetails> bundleList) {
if (bundleList == null) {
this.bundleList = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
static boolean nodeTypeMayHaveSideEffects(Node n, AbstractCompiler compiler) {
if (isAssignmentOp(n)) {
return true;
}
switch (n.getToken()) {
case DELPROP:
case DEC:
case INC:
case YIELD:
case THROW:
case AWAIT:
case FOR_IN: // ass... | public class class_name {
static boolean nodeTypeMayHaveSideEffects(Node n, AbstractCompiler compiler) {
if (isAssignmentOp(n)) {
return true; // depends on control dependency: [if], data = [none]
}
switch (n.getToken()) {
case DELPROP:
case DEC:
case INC:
case YIELD:
c... |
public class class_name {
public static void setMetaClass(Class self, MetaClass metaClass) {
final MetaClassRegistry metaClassRegistry = GroovySystem.getMetaClassRegistry();
if (metaClass == null)
metaClassRegistry.removeMetaClass(self);
else {
if (metaClass instanceof H... | public class class_name {
public static void setMetaClass(Class self, MetaClass metaClass) {
final MetaClassRegistry metaClassRegistry = GroovySystem.getMetaClassRegistry();
if (metaClass == null)
metaClassRegistry.removeMetaClass(self);
else {
if (metaClass instanceof H... |
public class class_name {
public AwsSecurityFindingFilters withResourceAwsEc2InstanceImageId(StringFilter... resourceAwsEc2InstanceImageId) {
if (this.resourceAwsEc2InstanceImageId == null) {
setResourceAwsEc2InstanceImageId(new java.util.ArrayList<StringFilter>(resourceAwsEc2InstanceImageId.length... | public class class_name {
public AwsSecurityFindingFilters withResourceAwsEc2InstanceImageId(StringFilter... resourceAwsEc2InstanceImageId) {
if (this.resourceAwsEc2InstanceImageId == null) {
setResourceAwsEc2InstanceImageId(new java.util.ArrayList<StringFilter>(resourceAwsEc2InstanceImageId.length... |
public class class_name {
public boolean accept(File f) {
if (f != null) {
if (f.isDirectory()) {
return false;
}
String extension = getExtension(f);
if (extension != null && filters.get(getExtension(f)) != null) {
return true;
... | public class class_name {
public boolean accept(File f) {
if (f != null) {
if (f.isDirectory()) {
return false; // depends on control dependency: [if], data = [none]
}
String extension = getExtension(f);
if (extension != null && filters.get(getExt... |
public class class_name {
@SuppressWarnings({"SuspiciousSystemArraycopy"})
@Override
public void setTo(T orig) {
if (orig.width != width || orig.height != height || orig.numBands != numBands )
reshape(orig.width,orig.height,orig.numBands);
if (!orig.isSubimage() && !isSubimage()) {
System.arraycopy(orig._... | public class class_name {
@SuppressWarnings({"SuspiciousSystemArraycopy"})
@Override
public void setTo(T orig) {
if (orig.width != width || orig.height != height || orig.numBands != numBands )
reshape(orig.width,orig.height,orig.numBands);
if (!orig.isSubimage() && !isSubimage()) {
System.arraycopy(orig._... |
public class class_name {
@SuppressWarnings("ThrowFromFinallyBlock")
private void updateByXml(final P project, Source source) throws IOException {
project.checkPermission(Item.CONFIGURE);
final String projectName = project.getName();
XmlFile configXmlFile = project.getConfigFile();
... | public class class_name {
@SuppressWarnings("ThrowFromFinallyBlock")
private void updateByXml(final P project, Source source) throws IOException {
project.checkPermission(Item.CONFIGURE);
final String projectName = project.getName();
XmlFile configXmlFile = project.getConfigFile();
... |
public class class_name {
private void recurChildrenToWffBinaryMessageOutputStream(
final Set<AbstractHtml> children, final boolean rebuild)
throws IOException {
if (children != null && children.size() > 0) {
for (final AbstractHtml child : children) {
child.... | public class class_name {
private void recurChildrenToWffBinaryMessageOutputStream(
final Set<AbstractHtml> children, final boolean rebuild)
throws IOException {
if (children != null && children.size() > 0) {
for (final AbstractHtml child : children) {
child.... |
public class class_name {
@Override
public void run() {
try {
VoltTable partitionKeys = null;
partitionKeys = m_client.callProcedure("@GetPartitionKeys", "INTEGER").getResults()[0];
while (partitionKeys.advanceRow()) {
m_client.callProcedure(new NullCall... | public class class_name {
@Override
public void run() {
try {
VoltTable partitionKeys = null;
partitionKeys = m_client.callProcedure("@GetPartitionKeys", "INTEGER").getResults()[0]; // depends on control dependency: [try], data = [none]
while (partitionKeys.advanceRow()... |
public class class_name {
public void setSenderId(String senderId) {
try {
JSONObject sender;
if (!isNull((KEY_SENDER))) {
sender = getJSONObject(KEY_SENDER);
} else {
sender = new JSONObject();
put(KEY_SENDER, sender);
}
sender.put(KEY_SENDER_ID, senderId);
} catch (JSONException e) {
... | public class class_name {
public void setSenderId(String senderId) {
try {
JSONObject sender;
if (!isNull((KEY_SENDER))) {
sender = getJSONObject(KEY_SENDER); // depends on control dependency: [if], data = [none]
} else {
sender = new JSONObject(); // depends on control dependency: [if], data = [non... |
public class class_name {
public void setBinaryListValues(java.util.Collection<java.nio.ByteBuffer> binaryListValues) {
if (binaryListValues == null) {
this.binaryListValues = null;
return;
}
this.binaryListValues = new com.amazonaws.internal.SdkInternalList<java.nio.By... | public class class_name {
public void setBinaryListValues(java.util.Collection<java.nio.ByteBuffer> binaryListValues) {
if (binaryListValues == null) {
this.binaryListValues = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], dat... |
public class class_name {
public void removeWindow(View view) {
mWindowsLock.writeLock().lock();
try {
mWindows.remove(view.getRootView());
} finally {
mWindowsLock.writeLock().unlock();
}
fireWindowsChangedEvent();
} } | public class class_name {
public void removeWindow(View view) {
mWindowsLock.writeLock().lock();
try {
mWindows.remove(view.getRootView()); // depends on control dependency: [try], data = [none]
} finally {
mWindowsLock.writeLock().unlock();
}
fireWindows... |
public class class_name {
@Override
public String resolve(
String mid,
Features features,
Set<String> dependentFeatures,
StringBuffer sb,
boolean resolveAliases,
boolean evaluateHasPluginConditionals) {
final String sourceMethod = "resolve"; //$NON-NLS-1$
boolean isTraceLogging = log.is... | public class class_name {
@Override
public String resolve(
String mid,
Features features,
Set<String> dependentFeatures,
StringBuffer sb,
boolean resolveAliases,
boolean evaluateHasPluginConditionals) {
final String sourceMethod = "resolve"; //$NON-NLS-1$
boolean isTraceLogging = log.is... |
public class class_name {
private int edgeAngleCompare_(/* const */Edge edge1, /* const */Edge edge2) {
if (edge1.equals(edge2))
return 0;
Point2D v1 = edge1.m_segment._getTangent(edge1.getReversed() ? 1.0
: 0.0);
if (edge1.getReversed())
v1.negate();
Point2D v2 = edge2.m_segment._getTangent(edge2.g... | public class class_name {
private int edgeAngleCompare_(/* const */Edge edge1, /* const */Edge edge2) {
if (edge1.equals(edge2))
return 0;
Point2D v1 = edge1.m_segment._getTangent(edge1.getReversed() ? 1.0
: 0.0);
if (edge1.getReversed())
v1.negate();
Point2D v2 = edge2.m_segment._getTangent(edge2.g... |
public class class_name {
public void shallowCopy(ITuple tupleDest) {
for(Field field: this.getSchema().getFields()) {
tupleDest.set(field.getName(), this.get(field.getName()));
}
} } | public class class_name {
public void shallowCopy(ITuple tupleDest) {
for(Field field: this.getSchema().getFields()) {
tupleDest.set(field.getName(), this.get(field.getName())); // depends on control dependency: [for], data = [field]
}
} } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.