code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void removeProp(String key) {
this.specProperties.remove(key);
if (this.commonProperties.containsKey(key)) {
// This case should not happen.
Properties commonPropsCopy = new Properties();
commonPropsCopy.putAll(this.commonProperties);
commonPropsCopy.rem... | public class class_name {
public void removeProp(String key) {
this.specProperties.remove(key);
if (this.commonProperties.containsKey(key)) {
// This case should not happen.
Properties commonPropsCopy = new Properties();
commonPropsCopy.putAll(this.commonProperties); // depends on control dep... |
public class class_name {
protected void newRestartLimit() {
final long newInterval = this.config.restartint * luby(this.stats.restartsCount + 1);
if (newInterval > this.limits.maxRestartInterval) { this.limits.maxRestartInterval = newInterval; }
this.limits.restart = this.stats.conflicts + new... | public class class_name {
protected void newRestartLimit() {
final long newInterval = this.config.restartint * luby(this.stats.restartsCount + 1);
if (newInterval > this.limits.maxRestartInterval) { this.limits.maxRestartInterval = newInterval; } // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void launchFramework(BootstrapConfig config, LogProvider logProvider) {
if (config == null)
throw new IllegalArgumentException("bootstrap config must not be null");
boolean isClient = config.getProcessType().equals(BootstrapConstants.LOC_PROCESS_TYPE_CLIENT)... | public class class_name {
public void launchFramework(BootstrapConfig config, LogProvider logProvider) {
if (config == null)
throw new IllegalArgumentException("bootstrap config must not be null");
boolean isClient = config.getProcessType().equals(BootstrapConstants.LOC_PROCESS_TYPE_CLIENT)... |
public class class_name {
@SuppressWarnings("static-method")
@Provides
@Singleton
public HelpGenerator provideHelpGenerator(
ApplicationMetadata metadata, Injector injector, Terminal terminal) {
int maxColumns = terminal.getColumns();
if (maxColumns < TTY_MIN_COLUMNS) {
maxColumns = TTY_DEFAULT_COLUMNS;
... | public class class_name {
@SuppressWarnings("static-method")
@Provides
@Singleton
public HelpGenerator provideHelpGenerator(
ApplicationMetadata metadata, Injector injector, Terminal terminal) {
int maxColumns = terminal.getColumns();
if (maxColumns < TTY_MIN_COLUMNS) {
maxColumns = TTY_DEFAULT_COLUMNS; /... |
public class class_name {
private void addJavaFXProperty(SourceUnit source, AnnotationNode node, ClassNode declaringClass, FieldNode field) {
String fieldName = field.getName();
for (PropertyNode propertyNode : declaringClass.getProperties()) {
if (propertyNode.getName().equals(fieldName)) ... | public class class_name {
private void addJavaFXProperty(SourceUnit source, AnnotationNode node, ClassNode declaringClass, FieldNode field) {
String fieldName = field.getName();
for (PropertyNode propertyNode : declaringClass.getProperties()) {
if (propertyNode.getName().equals(fieldName)) ... |
public class class_name {
public final static String getDefaultAlgorithm() {
String type;
type = AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
return Security.getProperty(
"ssl.KeyManagerFactory... | public class class_name {
public final static String getDefaultAlgorithm() {
String type;
type = AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
return Security.getProperty(
"ssl.KeyManagerFactory... |
public class class_name {
protected List<InetSocketAddress> getAddresses(final String s) {
if (s == null) {
throw new NullPointerException("Null host list");
}
if (s.trim().isEmpty()) {
throw new IllegalArgumentException("No hosts in list: '" + s + "'");
}
... | public class class_name {
protected List<InetSocketAddress> getAddresses(final String s) {
if (s == null) {
throw new NullPointerException("Null host list");
}
if (s.trim().isEmpty()) {
throw new IllegalArgumentException("No hosts in list: '" + s + "'");
}
... |
public class class_name {
public void addPackageDescription(Content packageContentTree) {
if (packageDoc.inlineTags().length > 0) {
packageContentTree.addContent(
getMarkerAnchor(SectionName.PACKAGE_DESCRIPTION));
Content h2Content = new StringContent(
... | public class class_name {
public void addPackageDescription(Content packageContentTree) {
if (packageDoc.inlineTags().length > 0) {
packageContentTree.addContent(
getMarkerAnchor(SectionName.PACKAGE_DESCRIPTION)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static String hash(String algorithm, String str, String charsetName) {
try {
byte[] digest = MessageDigest
.getInstance(algorithm)
.digest(strToBytesWithCharset(str, charsetName));
return EncodingUtils.hex(digest);
} catch (NoSuchAlgorithmException e) {
throw new I... | public class class_name {
public static String hash(String algorithm, String str, String charsetName) {
try {
byte[] digest = MessageDigest
.getInstance(algorithm)
.digest(strToBytesWithCharset(str, charsetName));
return EncodingUtils.hex(digest); // depends on control dependency: [try], data = [none]
... |
public class class_name {
private String FCMGetFreshToken(final String senderID) {
String token = null;
try {
if(senderID != null){
getConfigLogger().verbose(getAccountId(), "FcmManager: Requesting a FCM token with Sender Id - "+senderID);
token = FirebaseIns... | public class class_name {
private String FCMGetFreshToken(final String senderID) {
String token = null;
try {
if(senderID != null){
getConfigLogger().verbose(getAccountId(), "FcmManager: Requesting a FCM token with Sender Id - "+senderID); // depends on control dependency: [... |
public class class_name {
public Double getDoubleObject(String attributeName) {
String val = get(attributeName, null);
if (val != null) {
return Double.valueOf(val);
}
return null;
} } | public class class_name {
public Double getDoubleObject(String attributeName) {
String val = get(attributeName, null);
if (val != null) {
return Double.valueOf(val); // depends on control dependency: [if], data = [(val]
}
return null;
} } |
public class class_name {
private void setLineLinePredicates_() {
m_predicates_half_edge = Predicates.LineLinePredicates;
m_predicates_cluster = Predicates.LinePointPredicates;
m_max_dim[MatrixPredicate.InteriorInterior] = 1;
m_max_dim[MatrixPredicate.InteriorBoundary] = 0;
m_m... | public class class_name {
private void setLineLinePredicates_() {
m_predicates_half_edge = Predicates.LineLinePredicates;
m_predicates_cluster = Predicates.LinePointPredicates;
m_max_dim[MatrixPredicate.InteriorInterior] = 1;
m_max_dim[MatrixPredicate.InteriorBoundary] = 0;
m_m... |
public class class_name {
public SQLiteDatabase openWritableDatabase() {
lockDb.lock();
try {
if (sqliteHelper == null)
createHelper(options);
status.set(TypeStatus.READ_AND_WRITE_OPENED);
if (openCounter.incrementAndGet() == 1) {
// open new write database
if (database == null) {
sqlit... | public class class_name {
public SQLiteDatabase openWritableDatabase() {
lockDb.lock();
try {
if (sqliteHelper == null)
createHelper(options);
status.set(TypeStatus.READ_AND_WRITE_OPENED); // depends on control dependency: [try], data = [none]
if (openCounter.incrementAndGet() == 1) {
// open ne... |
public class class_name {
public void mergeProposedItem(final InvoiceItem invoiceItem) {
Preconditions.checkState(!isBuilt, "Tree already built, unable to add new invoiceItem=%s", invoiceItem);
// Check if it was an existing item ignored for tree purposes (e.g. FIXED or $0 RECURRING, both of which are... | public class class_name {
public void mergeProposedItem(final InvoiceItem invoiceItem) {
Preconditions.checkState(!isBuilt, "Tree already built, unable to add new invoiceItem=%s", invoiceItem);
// Check if it was an existing item ignored for tree purposes (e.g. FIXED or $0 RECURRING, both of which are... |
public class class_name {
public Token scanSymbol() {
int length = 0;
while (CharType.isSymbol(charAt(offset + length))) {
length++;
}
String literals = input.substring(offset, offset + length);
Symbol symbol;
while (null == (symbol = Symbol.literalsOf(litera... | public class class_name {
public Token scanSymbol() {
int length = 0;
while (CharType.isSymbol(charAt(offset + length))) {
length++; // depends on control dependency: [while], data = [none]
}
String literals = input.substring(offset, offset + length);
Symbol symbol;
... |
public class class_name {
protected TypeCodec<?> createCodec(DataType cqlType) {
if (cqlType instanceof ListType) {
DataType elementType = ((ListType) cqlType).getElementType();
TypeCodec<Object> elementCodec = codecFor(elementType);
return TypeCodecs.listOf(elementCodec);
} else if (cqlType ... | public class class_name {
protected TypeCodec<?> createCodec(DataType cqlType) {
if (cqlType instanceof ListType) {
DataType elementType = ((ListType) cqlType).getElementType();
TypeCodec<Object> elementCodec = codecFor(elementType);
return TypeCodecs.listOf(elementCodec); // depends on control d... |
public class class_name {
public static <T> T[] toWrapperIfPrimitive(Object froms) {
if (froms == null) {
return null;
}
Class<?> type = froms.getClass().getComponentType();
if (!type.isPrimitive()) {
return (T[]) froms;
}
PrimitiveWrapperArray ... | public class class_name {
public static <T> T[] toWrapperIfPrimitive(Object froms) {
if (froms == null) {
return null; // depends on control dependency: [if], data = [none]
}
Class<?> type = froms.getClass().getComponentType();
if (!type.isPrimitive()) {
return ... |
public class class_name {
private static String getFromEnvFile(String varname, String filename)
{
try
{
String code = readFile(filename);
StringTokenizer stk = new StringTokenizer(code, "\n");
while (stk.hasMoreTokens())
{
String line = stk.nextToken().trim();
if (li... | public class class_name {
private static String getFromEnvFile(String varname, String filename)
{
try
{
String code = readFile(filename);
StringTokenizer stk = new StringTokenizer(code, "\n");
while (stk.hasMoreTokens())
{
String line = stk.nextToken().trim();
if (li... |
public class class_name {
private Option<File> findManifestInParentsDirectories() {
Option<FileHelper.FileHolder> projectRootHolderOption = fileHelper.findRootProjectHolder();
if (projectRootHolderOption.isAbsent()) {
return Option.absent();
}
FileHelper.FileHolder projectRootHolder = projectRootHol... | public class class_name {
private Option<File> findManifestInParentsDirectories() {
Option<FileHelper.FileHolder> projectRootHolderOption = fileHelper.findRootProjectHolder();
if (projectRootHolderOption.isAbsent()) {
return Option.absent(); // depends on control dependency: [if], data = [none]
}
Fi... |
public class class_name {
@Deactivate
protected void deactivate(ComponentContext context) {
lock.writeLock().lock();
try {
componentContext = null;
properties = null;
threadContextConfigurations = null;
} finally {
lock.writeLock().unlock();
... | public class class_name {
@Deactivate
protected void deactivate(ComponentContext context) {
lock.writeLock().lock();
try {
componentContext = null; // depends on control dependency: [try], data = [none]
properties = null; // depends on control dependency: [try], data = [none... |
public class class_name {
public static void waitRandomlySquared(long maxMsRoot) {
long random = (long) (Math.random() * maxMsRoot);
try {
Thread.sleep(random * random);
} catch (InterruptedException e) {
e.printStackTrace();
}
} } | public class class_name {
public static void waitRandomlySquared(long maxMsRoot) {
long random = (long) (Math.random() * maxMsRoot);
try {
Thread.sleep(random * random);
// depends on control dependency: [try], data = [none]
} catch (InterruptedException e) {
e.printStackTrace();
}
// depends on c... |
public class class_name {
public BatchImportFindingsRequest withFindings(AwsSecurityFinding... findings) {
if (this.findings == null) {
setFindings(new java.util.ArrayList<AwsSecurityFinding>(findings.length));
}
for (AwsSecurityFinding ele : findings) {
this.findings.ad... | public class class_name {
public BatchImportFindingsRequest withFindings(AwsSecurityFinding... findings) {
if (this.findings == null) {
setFindings(new java.util.ArrayList<AwsSecurityFinding>(findings.length)); // depends on control dependency: [if], data = [none]
}
for (AwsSecurity... |
public class class_name {
public XObject execute(XPathContext xctxt)
throws javax.xml.transform.TransformerException
{
if (xctxt.isSecureProcessing())
throw new javax.xml.transform.TransformerException(
XPATHMessages.createXPATHMessage(
XPATHErrorResources.ER_EXTENSION_FUNCTION_... | public class class_name {
public XObject execute(XPathContext xctxt)
throws javax.xml.transform.TransformerException
{
if (xctxt.isSecureProcessing())
throw new javax.xml.transform.TransformerException(
XPATHMessages.createXPATHMessage(
XPATHErrorResources.ER_EXTENSION_FUNCTION_... |
public class class_name {
public void marshall(DvbSubSourceSettings dvbSubSourceSettings, ProtocolMarshaller protocolMarshaller) {
if (dvbSubSourceSettings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(DvbSubSourceSettings dvbSubSourceSettings, ProtocolMarshaller protocolMarshaller) {
if (dvbSubSourceSettings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
@Override
public void processOtherContent(Wrapper<Content> content) {
if (processFirstOtherContent) {
builder.append(baseIndent).append("otherContentList=").append("\n");
processFirstOtherContent = false;
}
builder.append(content.toString(ba... | public class class_name {
@Override
public void processOtherContent(Wrapper<Content> content) {
if (processFirstOtherContent) {
builder.append(baseIndent).append("otherContentList=").append("\n"); // depends on control dependency: [if], data = [none]
processFirstOtherContent = false... |
public class class_name {
public void convert(TypeDesc fromType, TypeDesc toType) {
if (toType == TypeDesc.OBJECT) {
if (fromType.isPrimitive()) {
toType = fromType.toObjectType();
}
else {
return;
}
}
if (fromType... | public class class_name {
public void convert(TypeDesc fromType, TypeDesc toType) {
if (toType == TypeDesc.OBJECT) {
if (fromType.isPrimitive()) {
toType = fromType.toObjectType(); // depends on control dependency: [if], data = [none]
}
else {
... |
public class class_name {
void start() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "start");
synchronized (stateLock) {
// We will start each consumer inside its own catch block so that
// the failing... | public class class_name {
void start() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "start");
synchronized (stateLock) {
// We will start each consumer inside its own catch block so that
// the failing... |
public class class_name {
public static String relativePathFromResourceId(String id) {
if (id == null) {
return null;
}
String[] paths = id.split("/providers/" + resourceProviderFromResourceId(id) + "/", 2);
if (paths.length == 1) {
return "";
} else {
... | public class class_name {
public static String relativePathFromResourceId(String id) {
if (id == null) {
return null; // depends on control dependency: [if], data = [none]
}
String[] paths = id.split("/providers/" + resourceProviderFromResourceId(id) + "/", 2);
if (paths.len... |
public class class_name {
private String cutYear(String str) {
if (str.length() > 3) {
return str.substring(str.length() - 3, str.length());
} else {
return str;
}
} } | public class class_name {
private String cutYear(String str) {
if (str.length() > 3) {
return str.substring(str.length() - 3, str.length()); // depends on control dependency: [if], data = [(str.length()]
} else {
return str; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public Metadata getMetadata( String path )
throws IOException, MetadataNotFoundException
{
boolean found = false;
Metadata result = new Metadata();
Set<String> pluginArtifactIds = new HashSet<String>();
Set<String> snapshotVersions = new HashSet<Str... | public class class_name {
public Metadata getMetadata( String path )
throws IOException, MetadataNotFoundException
{
boolean found = false;
Metadata result = new Metadata();
Set<String> pluginArtifactIds = new HashSet<String>();
Set<String> snapshotVersions = new HashSet<Str... |
public class class_name {
public static InternalListenerMetadata introspect(Class<?> listenerClass) {
InternalListenerMetadata cachedMetadata = cache.get(listenerClass);
if (cachedMetadata != null) {
return cachedMetadata;
}
synchronized (listenerClass) {
cachedMetadata = cache.get(listener... | public class class_name {
public static InternalListenerMetadata introspect(Class<?> listenerClass) {
InternalListenerMetadata cachedMetadata = cache.get(listenerClass);
if (cachedMetadata != null) {
return cachedMetadata; // depends on control dependency: [if], data = [none]
}
synchronized (list... |
public class class_name {
public double getRMSRigidity(){
rigidity = new double[this.getVariables().length];
for (int i = 0; i < this.getVariables().length; i++) {
if ( ((TimePoint)this.getVariables()[i]).isUsed() ) {
rigidity[i] = (
((double)1 /
((double)(1 + ((TimePoint)this.getVariabl... | public class class_name {
public double getRMSRigidity(){
rigidity = new double[this.getVariables().length];
for (int i = 0; i < this.getVariables().length; i++) {
if ( ((TimePoint)this.getVariables()[i]).isUsed() ) {
rigidity[i] = (
((double)1 /
((double)(1 + ((TimePoint)this.getVariabl... |
public class class_name {
private LVal parseAccessLVal(int start, EnclosingScope scope) {
LVal lhs = parseLValTerm(start, scope);
Token token;
while ((token = tryAndMatchOnLine(LeftSquare)) != null
|| (token = tryAndMatch(true, Dot, MinusGreater)) != null) {
switch (token.kind) {
case LeftSquare:
... | public class class_name {
private LVal parseAccessLVal(int start, EnclosingScope scope) {
LVal lhs = parseLValTerm(start, scope);
Token token;
while ((token = tryAndMatchOnLine(LeftSquare)) != null
|| (token = tryAndMatch(true, Dot, MinusGreater)) != null) {
switch (token.kind) {
case LeftSquare:
... |
public class class_name {
@Override
public void executeEventCallback(Runnable callback) {
if (!nodeEngine.isRunning()) {
return;
}
try {
eventExecutor.execute(callback);
} catch (RejectedExecutionException e) {
rejectedCount.inc();
if... | public class class_name {
@Override
public void executeEventCallback(Runnable callback) {
if (!nodeEngine.isRunning()) {
return; // depends on control dependency: [if], data = [none]
}
try {
eventExecutor.execute(callback); // depends on control dependency: [try], da... |
public class class_name {
public PermissionsBuilder setDenied(PermissionType... types) {
for (PermissionType type : types) {
setState(type, PermissionState.DENIED);
}
return this;
} } | public class class_name {
public PermissionsBuilder setDenied(PermissionType... types) {
for (PermissionType type : types) {
setState(type, PermissionState.DENIED); // depends on control dependency: [for], data = [type]
}
return this;
} } |
public class class_name {
public void setDBModified(int mode) {
String value = MODIFIED_NO;
if (mode == FILES_MODIFIED) {
value = MODIFIED_YES;
} else if (mode == FILES_NEW) {
value = MODIFIED_NEW;
}
setProperty(db_modified, value);
save();
... | public class class_name {
public void setDBModified(int mode) {
String value = MODIFIED_NO;
if (mode == FILES_MODIFIED) {
value = MODIFIED_YES; // depends on control dependency: [if], data = [none]
} else if (mode == FILES_NEW) {
value = MODIFIED_NEW; // depends on con... |
public class class_name {
static int main2(PrintWriter out, PrintWriter err, List<String> args) {
try {
final Launcher launcher = new Launcher(args, out);
final Quidem quidem;
try {
quidem = launcher.parse();
} catch (ParseException e) {
return e.code;
}
quidem.e... | public class class_name {
static int main2(PrintWriter out, PrintWriter err, List<String> args) {
try {
final Launcher launcher = new Launcher(args, out);
final Quidem quidem;
try {
quidem = launcher.parse(); // depends on control dependency: [try], data = [none]
} catch (ParseExcep... |
public class class_name {
public Observable<ServiceResponse<Page<JobStepInner>>> listByVersionWithServiceResponseAsync(final String resourceGroupName, final String serverName, final String jobAgentName, final String jobName, final int jobVersion) {
return listByVersionSinglePageAsync(resourceGroupName, serverN... | public class class_name {
public Observable<ServiceResponse<Page<JobStepInner>>> listByVersionWithServiceResponseAsync(final String resourceGroupName, final String serverName, final String jobAgentName, final String jobName, final int jobVersion) {
return listByVersionSinglePageAsync(resourceGroupName, serverN... |
public class class_name {
public Observable<ServiceResponseWithHeaders<StreamingJobInner, StreamingJobsUpdateHeaders>> updateWithServiceResponseAsync(String resourceGroupName, String jobName, StreamingJobInner streamingJob, String ifMatch) {
if (this.client.subscriptionId() == null) {
throw new Ill... | public class class_name {
public Observable<ServiceResponseWithHeaders<StreamingJobInner, StreamingJobsUpdateHeaders>> updateWithServiceResponseAsync(String resourceGroupName, String jobName, StreamingJobInner streamingJob, String ifMatch) {
if (this.client.subscriptionId() == null) {
throw new Ill... |
public class class_name {
@Override
public void setProperty(String paramString, Object paramObject)
{
checkClosed();
if (getProperties() == null)
{
this.properties = new HashMap<String, Object>();
}
this.properties.put(paramString, paramObject);
... | public class class_name {
@Override
public void setProperty(String paramString, Object paramObject)
{
checkClosed();
if (getProperties() == null)
{
this.properties = new HashMap<String, Object>();
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private List<DocumentEntry> getDocumentEntriesFromPropertiesStream(final DocumentEntry de)
throws IOException {
final List<DocumentEntry> result = new ArrayList<>();
DocumentInputStream dstream = null;
try {
dstream = new DocumentInputStream(de);
final int headerLength = 4;
... | public class class_name {
private List<DocumentEntry> getDocumentEntriesFromPropertiesStream(final DocumentEntry de)
throws IOException {
final List<DocumentEntry> result = new ArrayList<>();
DocumentInputStream dstream = null;
try {
dstream = new DocumentInputStream(de);
final int headerLength = 4;
... |
public class class_name {
protected void mvnSetVersions(final String version) throws MojoFailureException, CommandLineException {
getLog().info("Updating version(s) to '" + version + "'.");
String newVersion = "-DnewVersion=" + version;
String g = "";
String a = "";
if (version... | public class class_name {
protected void mvnSetVersions(final String version) throws MojoFailureException, CommandLineException {
getLog().info("Updating version(s) to '" + version + "'.");
String newVersion = "-DnewVersion=" + version;
String g = "";
String a = "";
if (version... |
public class class_name {
public void setAppTitle(String title) {
if (CmsStringUtil.isEmptyOrWhitespaceOnly(title)) {
if (m_titleLabel != null) {
m_titleLabel.removeFromParent();
m_titleLabel = null;
}
} else {
if (m_titleLabel == nu... | public class class_name {
public void setAppTitle(String title) {
if (CmsStringUtil.isEmptyOrWhitespaceOnly(title)) {
if (m_titleLabel != null) {
m_titleLabel.removeFromParent(); // depends on control dependency: [if], data = [none]
m_titleLabel = null; // depends o... |
public class class_name {
@Override
public void service(RequestWeb request)
{
try {
if (! request.method().equals("OPTIONS")) {
request.ok();
return;
}
if (_crossOrigin.allowCredentials())
request.header(ALLOW_CREDENTIALS, "true");
//allow-origin
St... | public class class_name {
@Override
public void service(RequestWeb request)
{
try {
if (! request.method().equals("OPTIONS")) {
request.ok(); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
if (_cross... |
public class class_name {
private static int getFilterType(RenderingHints pHints) {
if (pHints == null) {
return FILTER_UNDEFINED;
}
if (pHints.containsKey(KEY_RESAMPLE_INTERPOLATION)) {
Object value = pHints.get(KEY_RESAMPLE_INTERPOLATION);
// NOTE: ... | public class class_name {
private static int getFilterType(RenderingHints pHints) {
if (pHints == null) {
return FILTER_UNDEFINED;
// depends on control dependency: [if], data = [none]
}
if (pHints.containsKey(KEY_RESAMPLE_INTERPOLATION)) {
Object value = pHints.g... |
public class class_name {
public static void processPath(File path, FileFilter filter, FileProcessor processor) {
if (path.isDirectory()) {
// if path is a directory, look into it
File[] directoryListing = path.listFiles(filter);
if (directoryListing == null) {
throw new IllegalArgum... | public class class_name {
public static void processPath(File path, FileFilter filter, FileProcessor processor) {
if (path.isDirectory()) {
// if path is a directory, look into it
File[] directoryListing = path.listFiles(filter);
if (directoryListing == null) {
throw new IllegalArgum... |
public class class_name {
public CoverageDataPngImage drawTile(short[][] pixelValues) {
int tileWidth = pixelValues[0].length;
int tileHeight = pixelValues.length;
CoverageDataPngImage image = createImage(tileWidth, tileHeight);
PngWriter writer = image.getWriter();
for (int y... | public class class_name {
public CoverageDataPngImage drawTile(short[][] pixelValues) {
int tileWidth = pixelValues[0].length;
int tileHeight = pixelValues.length;
CoverageDataPngImage image = createImage(tileWidth, tileHeight);
PngWriter writer = image.getWriter();
for (int y... |
public class class_name {
public static <T, U> Collector<T, ?, Seq<T>> maxAllBy(Function<? super T, ? extends U> function, Comparator<? super U> comparator) {
class Accumulator {
List<T> t = new ArrayList<>();
U u;
void set(T t, U u) {
this.t.clear();
... | public class class_name {
public static <T, U> Collector<T, ?, Seq<T>> maxAllBy(Function<? super T, ? extends U> function, Comparator<? super U> comparator) {
class Accumulator {
List<T> t = new ArrayList<>();
U u;
void set(T t, U u) {
this.t.clear();
... |
public class class_name {
public boolean containsValue(String group, String value) {
group = StrUtil.nullToEmpty(group).trim();
readLock.lock();
try {
final LinkedHashMap<String, String> valueMap = this.get(group);
if (MapUtil.isNotEmpty(valueMap)) {
return valueMap.containsValue(value);
}
... | public class class_name {
public boolean containsValue(String group, String value) {
group = StrUtil.nullToEmpty(group).trim();
readLock.lock();
try {
final LinkedHashMap<String, String> valueMap = this.get(group);
if (MapUtil.isNotEmpty(valueMap)) {
return valueMap.containsValue(value);
// depe... |
public class class_name {
static char getChecksum(String text) {
int chk = 0;
for (int k = 0; k < text.length(); ++k) {
int idx = CHARS.indexOf(text.charAt(k));
if (idx < 0)
throw new IllegalArgumentException("The character '" + text.charAt(k) + "' is illegal in ... | public class class_name {
static char getChecksum(String text) {
int chk = 0;
for (int k = 0; k < text.length(); ++k) {
int idx = CHARS.indexOf(text.charAt(k));
if (idx < 0)
throw new IllegalArgumentException("The character '" + text.charAt(k) + "' is illegal in ... |
public class class_name {
public SIDestinationAddress getDestinationAddress()
{
if (TraceComponent.isAnyTracingEnabled() && CoreSPIBrowserSession.tc.isEntryEnabled())
{
SibTr.entry(CoreSPIBrowserSession.tc, "getDestinationAddress", this);
SibTr.exit(CoreSPIBrowserSession.tc, "getDestinati... | public class class_name {
public SIDestinationAddress getDestinationAddress()
{
if (TraceComponent.isAnyTracingEnabled() && CoreSPIBrowserSession.tc.isEntryEnabled())
{
SibTr.entry(CoreSPIBrowserSession.tc, "getDestinationAddress", this); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void execute(Runnable command) {
if (command == null)
throw new NullPointerException();
/*
* Proceed in 3 steps:
*
* 1. If fewer than corePoolSize threads are running, try to
* start a new thread with the given command as ... | public class class_name {
public void execute(Runnable command) {
if (command == null)
throw new NullPointerException();
/*
* Proceed in 3 steps:
*
* 1. If fewer than corePoolSize threads are running, try to
* start a new thread with the given command as ... |
public class class_name {
private static final boolean longMultisetsEqual(long[] firstDeps, long[] secondDeps) {
if (firstDeps.length != secondDeps.length) {
return false;
}
Arrays.sort(firstDeps);
Arrays.sort(secondDeps);
for (int i = 0; i < firstDeps.length; i++) {
if (firstDeps[i] !... | public class class_name {
private static final boolean longMultisetsEqual(long[] firstDeps, long[] secondDeps) {
if (firstDeps.length != secondDeps.length) {
return false; // depends on control dependency: [if], data = [none]
}
Arrays.sort(firstDeps);
Arrays.sort(secondDeps);
for (int i = 0;... |
public class class_name {
private void captureEnvData(File dumpDir, File installDir) {
File versionsSource = new File(installDir, "lib/versions");
File fixesSource = new File(installDir, "lib/fixes");
String sharedConfigDir = AccessController.doPrivileged(new PrivilegedAction<String>() {
... | public class class_name {
private void captureEnvData(File dumpDir, File installDir) {
File versionsSource = new File(installDir, "lib/versions");
File fixesSource = new File(installDir, "lib/fixes");
String sharedConfigDir = AccessController.doPrivileged(new PrivilegedAction<String>() {
... |
public class class_name {
protected int grabFlowControlBytes(int toSend) {
synchronized (flowControlLock) {
if (toSend == 0) {
return 0;
}
int newWindowSize = this.getChannel().getInitialSendWindowSize();
int settingsDelta = newWindowSize - this.i... | public class class_name {
protected int grabFlowControlBytes(int toSend) {
synchronized (flowControlLock) {
if (toSend == 0) {
return 0; // depends on control dependency: [if], data = [none]
}
int newWindowSize = this.getChannel().getInitialSendWindowSize();
... |
public class class_name {
public boolean waitForRegistered(long timeout, TimeUnit unit) {
try {
if (this.registeredLatch.await(timeout, unit)) {
return true;
}
} catch (InterruptedException e) {
LOG.severe("Failed to wait for mesos framework got registered");
return false;
}... | public class class_name {
public boolean waitForRegistered(long timeout, TimeUnit unit) {
try {
if (this.registeredLatch.await(timeout, unit)) {
return true; // depends on control dependency: [if], data = [none]
}
} catch (InterruptedException e) {
LOG.severe("Failed to wait for mesos... |
public class class_name {
public boolean remove(SpdData data) {
if (data == null)
return false;
if (data instanceof SpdLoad) {
return super.remove(data);
} else {
return false;
}
} } | public class class_name {
public boolean remove(SpdData data) {
if (data == null)
return false;
if (data instanceof SpdLoad) {
return super.remove(data); // depends on control dependency: [if], data = [none]
} else {
return false; // depends on control depend... |
public class class_name {
public boolean logEvent(Context context) {
boolean isReqQueued = false;
String reqPath = isStandardEvent ? Defines.RequestPath.TrackStandardEvent.getPath() : Defines.RequestPath.TrackCustomEvent.getPath();
if (Branch.getInstance() != null) {
Branch.getInsta... | public class class_name {
public boolean logEvent(Context context) {
boolean isReqQueued = false;
String reqPath = isStandardEvent ? Defines.RequestPath.TrackStandardEvent.getPath() : Defines.RequestPath.TrackCustomEvent.getPath();
if (Branch.getInstance() != null) {
Branch.getInsta... |
public class class_name {
protected void initDatabase() throws NamingException, RepositoryException, IOException
{
DBInitializer dbInitializer = null;
if (containerConfig.dbDialect.equals(DBConstants.DB_DIALECT_ORACLEOCI))
{
LOG.warn(DBConstants.DB_DIALECT_ORACLEOCI + " dialect is experim... | public class class_name {
protected void initDatabase() throws NamingException, RepositoryException, IOException
{
DBInitializer dbInitializer = null;
if (containerConfig.dbDialect.equals(DBConstants.DB_DIALECT_ORACLEOCI))
{
LOG.warn(DBConstants.DB_DIALECT_ORACLEOCI + " dialect is experim... |
public class class_name {
private static int parseFraction(String v, int multiplier) {
int r = 0;
for (int i = 0; i < v.length(); i++) {
char c = v.charAt(i);
int x = c < '0' || c > '9' ? 0 : (c - '0');
r += multiplier * x;
if (multiplier < 10) {
// We're at the last digit. Check for rounding.
... | public class class_name {
private static int parseFraction(String v, int multiplier) {
int r = 0;
for (int i = 0; i < v.length(); i++) {
char c = v.charAt(i);
int x = c < '0' || c > '9' ? 0 : (c - '0');
r += multiplier * x; // depends on control dependency: [for], data = [none]
if (multiplier < 10) {
... |
public class class_name {
private void generateJMeterDirectoryTree() {
File workingDirectory = new File(jmeterDirectory, "bin");
workingDirectory.mkdirs();
JMeterConfigurationHolder.getInstance().setWorkingDirectory(workingDirectory);
customPropertiesDirectory = new File(jmeterDirectory... | public class class_name {
private void generateJMeterDirectoryTree() {
File workingDirectory = new File(jmeterDirectory, "bin");
workingDirectory.mkdirs();
JMeterConfigurationHolder.getInstance().setWorkingDirectory(workingDirectory);
customPropertiesDirectory = new File(jmeterDirectory... |
public class class_name {
public static JSONObject toJSONObject(String string) throws JSONException {
String n;
JSONObject o = new JSONObject();
Object v;
JSONTokener x = new JSONTokener(string);
o.put("name", x.nextTo('='));
x.next('=');
o.put("value", x.nextTo(';'));
x.next();
whi... | public class class_name {
public static JSONObject toJSONObject(String string) throws JSONException {
String n;
JSONObject o = new JSONObject();
Object v;
JSONTokener x = new JSONTokener(string);
o.put("name", x.nextTo('='));
x.next('=');
o.put("value", x.nextTo(';'));
x.next();
whi... |
public class class_name {
@Override
public boolean weekdayRange(String wd1, String wd2, String gmt) {
boolean useGmt = GMT.equalsIgnoreCase(wd2) || GMT.equalsIgnoreCase(gmt);
Calendar cal = getCurrentTime(useGmt);
int currentDay = cal.get(Calendar.DAY_OF_WEEK) - 1;
int from = DAYS.indexOf(wd1 == nul... | public class class_name {
@Override
public boolean weekdayRange(String wd1, String wd2, String gmt) {
boolean useGmt = GMT.equalsIgnoreCase(wd2) || GMT.equalsIgnoreCase(gmt);
Calendar cal = getCurrentTime(useGmt);
int currentDay = cal.get(Calendar.DAY_OF_WEEK) - 1;
int from = DAYS.indexOf(wd1 == nul... |
public class class_name {
public void setResourceContainerImageName(java.util.Collection<StringFilter> resourceContainerImageName) {
if (resourceContainerImageName == null) {
this.resourceContainerImageName = null;
return;
}
this.resourceContainerImageName = new java.ut... | public class class_name {
public void setResourceContainerImageName(java.util.Collection<StringFilter> resourceContainerImageName) {
if (resourceContainerImageName == null) {
this.resourceContainerImageName = null; // depends on control dependency: [if], data = [none]
return; // depends... |
public class class_name {
List<JCTree> normalizeDefs(List<JCTree> defs, ClassSymbol c) {
ListBuffer<JCStatement> initCode = new ListBuffer<JCStatement>();
ListBuffer<Attribute.TypeCompound> initTAs = new ListBuffer<Attribute.TypeCompound>();
ListBuffer<JCStatement> clinitCode = new ListBuffer<J... | public class class_name {
List<JCTree> normalizeDefs(List<JCTree> defs, ClassSymbol c) {
ListBuffer<JCStatement> initCode = new ListBuffer<JCStatement>();
ListBuffer<Attribute.TypeCompound> initTAs = new ListBuffer<Attribute.TypeCompound>();
ListBuffer<JCStatement> clinitCode = new ListBuffer<J... |
public class class_name {
public static String unescapeSpaces(String in) {
char[] chars = in.toCharArray();
int end = chars.length;
StringBuffer out = new StringBuffer(in.length());
for (int i = 0; i < end; i++) {
/*
* Remove any backslashes that precede spaces... | public class class_name {
public static String unescapeSpaces(String in) {
char[] chars = in.toCharArray();
int end = chars.length;
StringBuffer out = new StringBuffer(in.length());
for (int i = 0; i < end; i++) {
/*
* Remove any backslashes that precede spaces... |
public class class_name {
@Override
public void solvingStarted(DefaultSolverScope<Solution_> solverScope) {
// Starting bestSolution is already set by Solver.solve(Solution)
InnerScoreDirector<Solution_> scoreDirector = solverScope.getScoreDirector();
Score score = scoreDirector.calculateSc... | public class class_name {
@Override
public void solvingStarted(DefaultSolverScope<Solution_> solverScope) {
// Starting bestSolution is already set by Solver.solve(Solution)
InnerScoreDirector<Solution_> scoreDirector = solverScope.getScoreDirector();
Score score = scoreDirector.calculateSc... |
public class class_name {
@SuppressWarnings({ "unused", "unchecked" })
private static void rewriteMergeData(String key, String subKey,
NamedList<Object> snl, NamedList<Object> tnl) {
if (snl != null) {
Object o = tnl.get(key);
NamedList<Object> tnnnl;
if (o != null && o instanceof NamedLi... | public class class_name {
@SuppressWarnings({ "unused", "unchecked" })
private static void rewriteMergeData(String key, String subKey,
NamedList<Object> snl, NamedList<Object> tnl) {
if (snl != null) {
Object o = tnl.get(key);
NamedList<Object> tnnnl;
if (o != null && o instanceof NamedLi... |
public class class_name {
@Override
public byte[] transformOut(JdbcPreparedStatementFactory jpsf, byte[] attributeObject) throws CpoException {
byte[] retBytes = null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
if (attributeObject != null) {
if (attributeObject.lengt... | public class class_name {
@Override
public byte[] transformOut(JdbcPreparedStatementFactory jpsf, byte[] attributeObject) throws CpoException {
byte[] retBytes = null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
if (attributeObject != null) {
if (attributeObject.lengt... |
public class class_name {
public void clearAll() {
this.auths.clear();
this.authsByUser.clear();
File[] auths = this.authStoreDir.listFiles(new AuthFilenameFilter());
for (int i = 0; i < auths.length; i++) {
auths[i].delete();
}
} } | public class class_name {
public void clearAll() {
this.auths.clear();
this.authsByUser.clear();
File[] auths = this.authStoreDir.listFiles(new AuthFilenameFilter());
for (int i = 0; i < auths.length; i++) {
auths[i].delete();
// depends on control dependency: [for], d... |
public class class_name {
public void setTargetArns(java.util.Collection<String> targetArns) {
if (targetArns == null) {
this.targetArns = null;
return;
}
this.targetArns = new java.util.ArrayList<String>(targetArns);
} } | public class class_name {
public void setTargetArns(java.util.Collection<String> targetArns) {
if (targetArns == null) {
this.targetArns = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.ta... |
public class class_name {
public void reduce( AppendableVec nv ) {
if( this == nv ) return; // Trivially done
// Combine arrays of elements-per-chunk
long e1[] = nv._espc; // Shorter array of longs?
byte t1[] = nv._chunkTypes;
if( e1.length > _espc.length ) {
e1 = _espc; ... | public class class_name {
public void reduce( AppendableVec nv ) {
if( this == nv ) return; // Trivially done
// Combine arrays of elements-per-chunk
long e1[] = nv._espc; // Shorter array of longs?
byte t1[] = nv._chunkTypes;
if( e1.length > _espc.length ) {
e1 = _espc; ... |
public class class_name {
private void openSelector(ThreadNameDeterminer determiner) {
try {
selector = SelectorUtil.open();
} catch (Throwable t) {
throw new ChannelException("Failed to create a selector.", t);
}
// Start the worker thread with the new Selector... | public class class_name {
private void openSelector(ThreadNameDeterminer determiner) {
try {
selector = SelectorUtil.open(); // depends on control dependency: [try], data = [none]
} catch (Throwable t) {
throw new ChannelException("Failed to create a selector.", t);
} //... |
public class class_name {
protected void handleBindException(String userDn, String username, Throwable cause) {
if (logger.isDebugEnabled()) {
logger.debug("Failed to bind as " + userDn + ": " + cause);
}
} } | public class class_name {
protected void handleBindException(String userDn, String username, Throwable cause) {
if (logger.isDebugEnabled()) {
logger.debug("Failed to bind as " + userDn + ": " + cause); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public Map<Layout, Collection<XmlScope>> getXmlScopes() {
List<File> layoutDirs = layoutsFinder.findLayoutDirs();
Collection<File> layoutFiles = collectionUtils.flatMap(layoutDirs, new CollectionUtils.Function<File, Collection<File>>() {
@Override
publ... | public class class_name {
public Map<Layout, Collection<XmlScope>> getXmlScopes() {
List<File> layoutDirs = layoutsFinder.findLayoutDirs();
Collection<File> layoutFiles = collectionUtils.flatMap(layoutDirs, new CollectionUtils.Function<File, Collection<File>>() {
@Override
publ... |
public class class_name {
private void init(int port, File commandFileTmp) throws IOException {
if (port != -1) {
serverSocketChannel = SelectorProvider.provider().openServerSocketChannel();
// Open the socket for loopback only..
InetSocketAddress address = new InetSocketAd... | public class class_name {
private void init(int port, File commandFileTmp) throws IOException {
if (port != -1) {
serverSocketChannel = SelectorProvider.provider().openServerSocketChannel();
// Open the socket for loopback only..
InetSocketAddress address = new InetSocketAd... |
public class class_name {
public static Transport getInstance (Type type, int channel)
{
// were there more parameters in transport objects, it would be better to have a single map
// of instances and use Transport objects as keys (as in examples of the flyweight
// pattern). however, doin... | public class class_name {
public static Transport getInstance (Type type, int channel)
{
// were there more parameters in transport objects, it would be better to have a single map
// of instances and use Transport objects as keys (as in examples of the flyweight
// pattern). however, doin... |
public class class_name {
public BoundingBox getBoundingBox() {
GeometryEnvelope envelope = null;
long offset = 0;
boolean hasResults = true;
while (hasResults) {
hasResults = false;
FeatureResultSet resultSet = featureDao.queryForChunk(chunkLimit,
offset);
try {
while (resultSet.moveToN... | public class class_name {
public BoundingBox getBoundingBox() {
GeometryEnvelope envelope = null;
long offset = 0;
boolean hasResults = true;
while (hasResults) {
hasResults = false; // depends on control dependency: [while], data = [none]
FeatureResultSet resultSet = featureDao.queryForChunk(chunkL... |
public class class_name {
private RedisSession getSession(String id, boolean allowExpired) {
Map<Object, Object> entries = getSessionBoundHashOperations(id).entries();
if (entries.isEmpty()) {
return null;
}
MapSession loaded = loadSession(id, entries);
if (!allowExpired && loaded.isExpired()) {
return... | public class class_name {
private RedisSession getSession(String id, boolean allowExpired) {
Map<Object, Object> entries = getSessionBoundHashOperations(id).entries();
if (entries.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
MapSession loaded = loadSession(id, entries);
... |
public class class_name {
@Nullable
public static DigestAuthClientCredentials getDigestAuthClientCredentials (@Nullable final String sAuthHeader)
{
final ICommonsOrderedMap <String, String> aParams = getDigestAuthParams (sAuthHeader);
if (aParams == null)
return null;
final String sUserName = aP... | public class class_name {
@Nullable
public static DigestAuthClientCredentials getDigestAuthClientCredentials (@Nullable final String sAuthHeader)
{
final ICommonsOrderedMap <String, String> aParams = getDigestAuthParams (sAuthHeader);
if (aParams == null)
return null;
final String sUserName = aP... |
public class class_name {
public static File writeObjectToTempFileNoExceptions(Object o, String filename) {
try {
return writeObjectToTempFile(o, filename);
} catch (Exception e) {
System.err.println("Error writing object to file " + filename);
e.printStackTrace();
return null;
... | public class class_name {
public static File writeObjectToTempFileNoExceptions(Object o, String filename) {
try {
return writeObjectToTempFile(o, filename);
// depends on control dependency: [try], data = [none]
} catch (Exception e) {
System.err.println("Error writing object to file " + filena... |
public class class_name {
public static String join(Collection<? extends Object> lst, String separator) {
StringBuilder buf = new StringBuilder(lst.size() * 64);
boolean first = true;
for (Object value : lst) {
if (first) first = false; else buf.append(separator);
buf.ap... | public class class_name {
public static String join(Collection<? extends Object> lst, String separator) {
StringBuilder buf = new StringBuilder(lst.size() * 64);
boolean first = true;
for (Object value : lst) {
if (first) first = false; else buf.append(separator);
buf.ap... |
public class class_name {
public static <R> ImmutableGrid<R> copyOf(int rowCount, int columnCount, Iterable<? extends Cell<R>> cells) {
if (cells == null) {
throw new IllegalArgumentException("Cells must not be null");
}
if (!cells.iterator().hasNext()) {
return new Empt... | public class class_name {
public static <R> ImmutableGrid<R> copyOf(int rowCount, int columnCount, Iterable<? extends Cell<R>> cells) {
if (cells == null) {
throw new IllegalArgumentException("Cells must not be null");
}
if (!cells.iterator().hasNext()) {
return new Empt... |
public class class_name {
public void deleteGroup(String key, IPerson deleter) {
if (!canDeleteGroup(deleter, key)) {
throw new RuntimeAuthorizationException(
deleter, IPermission.DELETE_GROUP_ACTIVITY, key);
}
log.info("Deleting group with key " + key);
... | public class class_name {
public void deleteGroup(String key, IPerson deleter) {
if (!canDeleteGroup(deleter, key)) {
throw new RuntimeAuthorizationException(
deleter, IPermission.DELETE_GROUP_ACTIVITY, key);
}
log.info("Deleting group with key " + key);
... |
public class class_name {
void showWarnings(SQLWarning warn) {
if (warn == null) {
return;
}
if (seenWarnings.get(warn) == null) {
// don't re-display warnings we have already seen
seenWarnings.put(warn, new java.util.Date());
handleSQLException(warn);
}
SQLWarning next = ... | public class class_name {
void showWarnings(SQLWarning warn) {
if (warn == null) {
return; // depends on control dependency: [if], data = [none]
}
if (seenWarnings.get(warn) == null) {
// don't re-display warnings we have already seen
seenWarnings.put(warn, new java.util.Date()); // depe... |
public class class_name {
public void marshall(ActivityFailedEventDetails activityFailedEventDetails, ProtocolMarshaller protocolMarshaller) {
if (activityFailedEventDetails == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... | public class class_name {
public void marshall(ActivityFailedEventDetails activityFailedEventDetails, ProtocolMarshaller protocolMarshaller) {
if (activityFailedEventDetails == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... |
public class class_name {
public void accept(final WebAppVisitor visitor) {
visitor.visit(this); // First do everything else
for (WebAppListener listener : listeners) {
visitor.visit(listener);
}
if (!filters.isEmpty()) {
// first visit the filters with a filter mapping in mapping order
final List<We... | public class class_name {
public void accept(final WebAppVisitor visitor) {
visitor.visit(this); // First do everything else
for (WebAppListener listener : listeners) {
visitor.visit(listener); // depends on control dependency: [for], data = [listener]
}
if (!filters.isEmpty()) {
// first visit the filt... |
public class class_name {
protected String[] tokenizePattern(String pattern) {
String[] tokenized = null;
Boolean cachePatterns = this.cachePatterns;
if (cachePatterns == null || cachePatterns.booleanValue()) {
tokenized = this.tokenizedPatternCache.get(pattern);
}
if (tokenized == null) {
... | public class class_name {
protected String[] tokenizePattern(String pattern) {
String[] tokenized = null;
Boolean cachePatterns = this.cachePatterns;
if (cachePatterns == null || cachePatterns.booleanValue()) {
tokenized = this.tokenizedPatternCache.get(pattern); // depends on control dependency: [if... |
public class class_name {
public Observable<ServiceResponse<Page<ActivityInner>>> listByModuleWithServiceResponseAsync(final String resourceGroupName, final String automationAccountName, final String moduleName) {
return listByModuleSinglePageAsync(resourceGroupName, automationAccountName, moduleName)
... | public class class_name {
public Observable<ServiceResponse<Page<ActivityInner>>> listByModuleWithServiceResponseAsync(final String resourceGroupName, final String automationAccountName, final String moduleName) {
return listByModuleSinglePageAsync(resourceGroupName, automationAccountName, moduleName)
... |
public class class_name {
public void elemAdd(VTensor other) {
checkEqualSize(this, other);
for (int c = 0; c < this.size(); c++) {
addValue(c, other.getValue(c));
}
} } | public class class_name {
public void elemAdd(VTensor other) {
checkEqualSize(this, other);
for (int c = 0; c < this.size(); c++) {
addValue(c, other.getValue(c)); // depends on control dependency: [for], data = [c]
}
} } |
public class class_name {
private List<CmsContainerElementBean> getCachedElements(List<String> clientIds, String pageRootPath)
throws CmsException {
List<CmsContainerElementBean> result = new ArrayList<CmsContainerElementBean>();
for (String id : clientIds) {
try {
resu... | public class class_name {
private List<CmsContainerElementBean> getCachedElements(List<String> clientIds, String pageRootPath)
throws CmsException {
List<CmsContainerElementBean> result = new ArrayList<CmsContainerElementBean>();
for (String id : clientIds) {
try {
resu... |
public class class_name {
public static void addBody(Message message, XHTMLText xhtmlText) {
XHTMLExtension xhtmlExtension = XHTMLExtension.from(message);
if (xhtmlExtension == null) {
// Create an XHTMLExtension and add it to the message
xhtmlExtension = new XHTMLExtension();
... | public class class_name {
public static void addBody(Message message, XHTMLText xhtmlText) {
XHTMLExtension xhtmlExtension = XHTMLExtension.from(message);
if (xhtmlExtension == null) {
// Create an XHTMLExtension and add it to the message
xhtmlExtension = new XHTMLExtension(); /... |
public class class_name {
@Override
public void postProcessInstance(ManagedClassSPI managedClass, Object instance) {
Config config = managedClass.getConfig();
if (config == null) {
return;
}
List<Config> fields = config.findChildren("instance-field");
if (!fields.isEmpty() && !InstanceType.POJO.eq... | public class class_name {
@Override
public void postProcessInstance(ManagedClassSPI managedClass, Object instance) {
Config config = managedClass.getConfig();
if (config == null) {
return;
// depends on control dependency: [if], data = [none]
}
List<Config> fields = config.findChildren("instance-fiel... |
public class class_name {
protected List<String> buildCommand(GitBranchOptions options, Ref arg1, Ref arg2,
List<Ref> branchList) {
List<String> cmd = new ArrayList<String>();
cmd.add(JavaGitConfiguration.getGitCommand());
cmd.add("branch");
if (null != options) {
Ref commit = options.get... | public class class_name {
protected List<String> buildCommand(GitBranchOptions options, Ref arg1, Ref arg2,
List<Ref> branchList) {
List<String> cmd = new ArrayList<String>();
cmd.add(JavaGitConfiguration.getGitCommand());
cmd.add("branch");
if (null != options) {
Ref commit = options.get... |
public class class_name {
public <T> void unregisterService(Class<? super T> serviceInterface) {
Utils.notNull(serviceInterface, "serviceInterface must not be null");
ServiceValidator.validateInterface(serviceInterface, ServiceValidator.TYPE_PUBLISHED);
ServiceInterface svcInterface = serviceInterface.getAnnotat... | public class class_name {
public <T> void unregisterService(Class<? super T> serviceInterface) {
Utils.notNull(serviceInterface, "serviceInterface must not be null");
ServiceValidator.validateInterface(serviceInterface, ServiceValidator.TYPE_PUBLISHED);
ServiceInterface svcInterface = serviceInterface.getAnnotat... |
public class class_name {
public void marshall(Image image, ProtocolMarshaller protocolMarshaller) {
if (image == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(image.getName(), NAME_BINDING);
... | public class class_name {
public void marshall(Image image, ProtocolMarshaller protocolMarshaller) {
if (image == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(image.getName(), NAME_BINDING); // de... |
public class class_name {
public boolean isVersion128() {
String mwversion = "Mediawiki 1.27 or before";
try {
mwversion = this.getVersion();
} catch (Exception e) {
LOGGER.log(Level.INFO,
"Could not retrieve Mediawiki Version via API - will assume "
+ mwversion
... | public class class_name {
public boolean isVersion128() {
String mwversion = "Mediawiki 1.27 or before";
try {
mwversion = this.getVersion(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
LOGGER.log(Level.INFO,
"Could not retrieve Mediawiki Version via... |
public class class_name {
public static void writeCsv(final ResultStream<GraphObject> result, final Writer out, final String propertyView) throws IOException {
final StringBuilder row = new StringBuilder();
boolean headerWritten = false;
for (final GraphObject obj : result) {
// Write column he... | public class class_name {
public static void writeCsv(final ResultStream<GraphObject> result, final Writer out, final String propertyView) throws IOException {
final StringBuilder row = new StringBuilder();
boolean headerWritten = false;
for (final GraphObject obj : result) {
// Write column he... |
public class class_name {
private void precalculate() {
double par1r = Math.toRadians(this.par1);
double par2r = Math.toRadians(this.par2);
if (Math.abs(par2 - par1) < TOLERANCE) { // single parallel
n = Math.sin(par1r);
} else {
n = (Math.sin(par1r) + Math.sin(par2r)) / 2.0;
... | public class class_name {
private void precalculate() {
double par1r = Math.toRadians(this.par1);
double par2r = Math.toRadians(this.par2);
if (Math.abs(par2 - par1) < TOLERANCE) { // single parallel
n = Math.sin(par1r);
// depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
private Pair<Tree,Tree> copyHelper(Tree node,Map<String,Tree> newNamesToNodes) {
Tree clone;
Tree newFoot = null;
if (node.isLeaf()) {
if (node == foot) { // found the foot node; pass it up.
clone = node.treeFactory().newTreeNode(node.label(),new ArrayList<Tree>... | public class class_name {
private Pair<Tree,Tree> copyHelper(Tree node,Map<String,Tree> newNamesToNodes) {
Tree clone;
Tree newFoot = null;
if (node.isLeaf()) {
if (node == foot) { // found the foot node; pass it up.
clone = node.treeFactory().newTreeNode(node.label(),new ArrayList<Tree>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.