code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public int attemptToSetFileChannelCapable(int value) {
// Can't go from Disabled to enabled.
// Can't go from disabled/enabled to NOT_SET
if (value == FILE_CHANNEL_CAPABLE_DISABLED) {
fileChannelCapable = FILE_CHANNEL_CAPABLE_DISABLED;
... | public class class_name {
@Override
public int attemptToSetFileChannelCapable(int value) {
// Can't go from Disabled to enabled.
// Can't go from disabled/enabled to NOT_SET
if (value == FILE_CHANNEL_CAPABLE_DISABLED) {
fileChannelCapable = FILE_CHANNEL_CAPABLE_DISABLED; // depe... |
public class class_name {
@RequestMapping(value = "{accountId}/update", method = RequestMethod.GET)
public Form getUpdateForm(@PathVariable ID accountId) {
Account account = accountService.getAccount(accountId);
Form form = getCreationForm();
// Name in read-only mode for the default admin
... | public class class_name {
@RequestMapping(value = "{accountId}/update", method = RequestMethod.GET)
public Form getUpdateForm(@PathVariable ID accountId) {
Account account = accountService.getAccount(accountId);
Form form = getCreationForm();
// Name in read-only mode for the default admin
... |
public class class_name {
private static Iterator<int[]> initializeValueIterator(VariableNumMap vars) {
int[] dimensionSizes = new int[vars.size()];
List<DiscreteVariable> discreteVars = vars.getDiscreteVariables();
for (int i = 0; i < discreteVars.size(); i++) {
dimensionSizes[i] = discreteVars.get(i).nu... | public class class_name {
private static Iterator<int[]> initializeValueIterator(VariableNumMap vars) {
int[] dimensionSizes = new int[vars.size()];
List<DiscreteVariable> discreteVars = vars.getDiscreteVariables();
for (int i = 0; i < discreteVars.size(); i++) {
dimensionSizes[i] = discreteVars.get(i).nu... |
public class class_name {
public static List<IIOImage> getIIOImageList(File inputFile) throws IOException {
// convert to TIFF if PDF
File imageFile = getImageFile(inputFile);
List<IIOImage> iioImageList = new ArrayList<IIOImage>();
String imageFormat = getImageFileFormat(imageFile);
... | public class class_name {
public static List<IIOImage> getIIOImageList(File inputFile) throws IOException {
// convert to TIFF if PDF
File imageFile = getImageFile(inputFile);
List<IIOImage> iioImageList = new ArrayList<IIOImage>();
String imageFormat = getImageFileFormat(imageFile);
... |
public class class_name {
private void addCmsPropertyDefinitions(AbstractTypeDefinition type) {
for (CmsPropertyDefinition propDef : m_cmsPropertyDefinitions) {
type.addPropertyDefinition(createOpenCmsPropertyDefinition(propDef));
type.addPropertyDefinition(
createPropD... | public class class_name {
private void addCmsPropertyDefinitions(AbstractTypeDefinition type) {
for (CmsPropertyDefinition propDef : m_cmsPropertyDefinitions) {
type.addPropertyDefinition(createOpenCmsPropertyDefinition(propDef)); // depends on control dependency: [for], data = [propDef]
... |
public class class_name {
private void completeCommits(long previousCommitIndex, long commitIndex) {
for (long i = previousCommitIndex + 1; i <= commitIndex; i++) {
CompletableFuture<Long> future = appendFutures.remove(i);
if (future != null) {
future.complete(i);
}
}
} } | public class class_name {
private void completeCommits(long previousCommitIndex, long commitIndex) {
for (long i = previousCommitIndex + 1; i <= commitIndex; i++) {
CompletableFuture<Long> future = appendFutures.remove(i);
if (future != null) {
future.complete(i); // depends on control dependen... |
public class class_name {
public String getUrl() {
if (StringUtils.isBlank(url) && !StringUtils.isBlank(name)) {
this.url = AWSQueueUtils.createQueue(name);
}
return url;
} } | public class class_name {
public String getUrl() {
if (StringUtils.isBlank(url) && !StringUtils.isBlank(name)) {
this.url = AWSQueueUtils.createQueue(name); // depends on control dependency: [if], data = [none]
}
return url;
} } |
public class class_name {
public List<String> getList(String key) {
List<String> list = this.parameters.get(key);
if (list == null) {
list = Collections.emptyList();
}
return list;
} } | public class class_name {
public List<String> getList(String key) {
List<String> list = this.parameters.get(key);
if (list == null) {
list = Collections.emptyList(); // depends on control dependency: [if], data = [none]
}
return list;
} } |
public class class_name {
public void setPosition(String position)
{
if (position == null)
{
String message = Logging.getMessage("nullValue.PositionIsNull");
Logging.logger().severe(message);
throw new IllegalArgumentException(message);
}
this.pos... | public class class_name {
public void setPosition(String position)
{
if (position == null)
{
String message = Logging.getMessage("nullValue.PositionIsNull");
Logging.logger().severe(message); // depends on control dependency: [if], data = [none]
throw new Illegal... |
public class class_name {
public static ScannerSupplier fromBugCheckerInfos(Iterable<BugCheckerInfo> checkers) {
ImmutableBiMap.Builder<String, BugCheckerInfo> builder = ImmutableBiMap.builder();
for (BugCheckerInfo checker : checkers) {
builder.put(checker.canonicalName(), checker);
}
ImmutableB... | public class class_name {
public static ScannerSupplier fromBugCheckerInfos(Iterable<BugCheckerInfo> checkers) {
ImmutableBiMap.Builder<String, BugCheckerInfo> builder = ImmutableBiMap.builder();
for (BugCheckerInfo checker : checkers) {
builder.put(checker.canonicalName(), checker); // depends on contro... |
public class class_name {
public synchronized static void destroy() {
if (isInitialized()) {
Map<String, ProcessEngine> engines = new HashMap<String, ProcessEngine>(processEngines);
processEngines = new HashMap<String, ProcessEngine>();
for (String processEngineName : engines.keySet()) {
... | public class class_name {
public synchronized static void destroy() {
if (isInitialized()) {
Map<String, ProcessEngine> engines = new HashMap<String, ProcessEngine>(processEngines);
processEngines = new HashMap<String, ProcessEngine>(); // depends on control dependency: [if], data = [none]
for (... |
public class class_name {
public static void main(String[] args) {
int port = 9990;
String host = "localhost";
String protocol = "remote+http";
String config = null;
try {
CommandLine line = parser.parse(options, args, false);
if (line.hasOption("help"))... | public class class_name {
public static void main(String[] args) {
int port = 9990;
String host = "localhost";
String protocol = "remote+http";
String config = null;
try {
CommandLine line = parser.parse(options, args, false);
if (line.hasOption("help"))... |
public class class_name {
public void removeServerNotificationListener(RESTRequest request, ServerNotificationRegistration removedRegistration, final boolean removeAll,
JSONConverter converter, boolean cleanupHttpIDs) {
NotificationTargetInformation nti = toNoti... | public class class_name {
public void removeServerNotificationListener(RESTRequest request, ServerNotificationRegistration removedRegistration, final boolean removeAll,
JSONConverter converter, boolean cleanupHttpIDs) {
NotificationTargetInformation nti = toNoti... |
public class class_name {
public List<Set<K>> repeatedBisection(int nclusters, double limit_eval)
{
Cluster<K> cluster = new Cluster<K>();
List<Cluster<K>> clusters_ = new ArrayList<Cluster<K>>(nclusters > 0 ? nclusters : 16);
for (Document<K> document : documents_.values())
{
... | public class class_name {
public List<Set<K>> repeatedBisection(int nclusters, double limit_eval)
{
Cluster<K> cluster = new Cluster<K>();
List<Cluster<K>> clusters_ = new ArrayList<Cluster<K>>(nclusters > 0 ? nclusters : 16);
for (Document<K> document : documents_.values())
{
... |
public class class_name {
public void move(Robot robot) {
if (!robotsPosition.containsKey(robot)) {
throw new IllegalArgumentException("Robot doesn't exist");
}
if (!robot.getData().isMobile()) {
throw new IllegalArgumentException("Robot can't move");
}
Point newPosition = getReferenceField(robot, 1);
... | public class class_name {
public void move(Robot robot) {
if (!robotsPosition.containsKey(robot)) {
throw new IllegalArgumentException("Robot doesn't exist");
}
if (!robot.getData().isMobile()) {
throw new IllegalArgumentException("Robot can't move");
}
Point newPosition = getReferenceField(robot, 1);
... |
public class class_name {
@VisibleForTesting
static String doExtractResponse(int statusCode, HttpEntity entity) {
String message = null;
if (entity != null) {
try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
entity.writeTo(baos);
message = baos.toString("UTF-8");
}
catch (IOExcep... | public class class_name {
@VisibleForTesting
static String doExtractResponse(int statusCode, HttpEntity entity) {
String message = null;
if (entity != null) {
try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
entity.writeTo(baos);
message = baos.toString("UTF-8"); // depends on control ... |
public class class_name {
public void setConfigurationTemplates(java.util.Collection<String> configurationTemplates) {
if (configurationTemplates == null) {
this.configurationTemplates = null;
return;
}
this.configurationTemplates = new com.amazonaws.internal.SdkInterna... | public class class_name {
public void setConfigurationTemplates(java.util.Collection<String> configurationTemplates) {
if (configurationTemplates == null) {
this.configurationTemplates = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency... |
public class class_name {
public WorkflowTypeInfos withTypeInfos(WorkflowTypeInfo... typeInfos) {
if (this.typeInfos == null) {
setTypeInfos(new java.util.ArrayList<WorkflowTypeInfo>(typeInfos.length));
}
for (WorkflowTypeInfo ele : typeInfos) {
this.typeInfos.add(ele);
... | public class class_name {
public WorkflowTypeInfos withTypeInfos(WorkflowTypeInfo... typeInfos) {
if (this.typeInfos == null) {
setTypeInfos(new java.util.ArrayList<WorkflowTypeInfo>(typeInfos.length)); // depends on control dependency: [if], data = [none]
}
for (WorkflowTypeInfo el... |
public class class_name {
Level getLevelProperty(String name, Level defaultValue) {
String val = getProperty(name);
if (val == null) {
return defaultValue;
}
Level l = Level.findLevel(val.trim());
return l != null ? l : defaultValue;
} } | public class class_name {
Level getLevelProperty(String name, Level defaultValue) {
String val = getProperty(name);
if (val == null) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
Level l = Level.findLevel(val.trim());
return l != null... |
public class class_name {
public EClass getIfcFailureConnectionCondition() {
if (ifcFailureConnectionConditionEClass == null) {
ifcFailureConnectionConditionEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(227);
}
return ifcFailureConnectionCo... | public class class_name {
public EClass getIfcFailureConnectionCondition() {
if (ifcFailureConnectionConditionEClass == null) {
ifcFailureConnectionConditionEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(227);
// depends on control dependency: [i... |
public class class_name {
public void getOffset(long date, boolean local, int[] offsets) {
offsets[0] = getRawOffset();
if (!local) {
date += offsets[0]; // now in local standard millis
}
// When local == true, date might not be in local standard
// millis. getOffs... | public class class_name {
public void getOffset(long date, boolean local, int[] offsets) {
offsets[0] = getRawOffset();
if (!local) {
date += offsets[0]; // now in local standard millis // depends on control dependency: [if], data = [none]
}
// When local == true, date migh... |
public class class_name {
public void incrementCounter(String name, int increment) {
if (monitorActive) {
String escapedName = keyHandler.handle(name);
for (MonitorPlugin p : getPlugins()) {
p.incrementCounter(escapedName, increment);
}
}
} } | public class class_name {
public void incrementCounter(String name, int increment) {
if (monitorActive) {
String escapedName = keyHandler.handle(name);
for (MonitorPlugin p : getPlugins()) {
p.incrementCounter(escapedName, increment);
// depends on control dependency: [for], data = [p]
... |
public class class_name {
public void onMouseUp(MouseUpEvent event) {
Coordinate worldPosition = getWorldPosition(event);
Point point = mapWidget.getMapModel().getGeometryFactory().createPoint(worldPosition);
SearchByLocationRequest request = new SearchByLocationRequest();
request.setLocation(GeometryConverte... | public class class_name {
public void onMouseUp(MouseUpEvent event) {
Coordinate worldPosition = getWorldPosition(event);
Point point = mapWidget.getMapModel().getGeometryFactory().createPoint(worldPosition);
SearchByLocationRequest request = new SearchByLocationRequest();
request.setLocation(GeometryConverte... |
public class class_name {
@Override
public int compareTo(MonetaryAmount o) {
Objects.requireNonNull(o);
int compare;
if (currency.equals(o.getCurrency())) {
compare = asNumberStripped().compareTo(RoundedMoney.from(o).asNumberStripped());
} else {
compare = cu... | public class class_name {
@Override
public int compareTo(MonetaryAmount o) {
Objects.requireNonNull(o);
int compare;
if (currency.equals(o.getCurrency())) {
compare = asNumberStripped().compareTo(RoundedMoney.from(o).asNumberStripped()); // depends on control dependency: [if], d... |
public class class_name {
@Nullable
private static EntropyInjectingFileSystem getEntropyFs(FileSystem fs) {
if (fs instanceof EntropyInjectingFileSystem) {
return (EntropyInjectingFileSystem) fs;
}
else if (fs instanceof SafetyNetWrapperFileSystem) {
FileSystem delegate = ((SafetyNetWrapperFileSystem) fs)... | public class class_name {
@Nullable
private static EntropyInjectingFileSystem getEntropyFs(FileSystem fs) {
if (fs instanceof EntropyInjectingFileSystem) {
return (EntropyInjectingFileSystem) fs; // depends on control dependency: [if], data = [none]
}
else if (fs instanceof SafetyNetWrapperFileSystem) {
F... |
public class class_name {
public boolean needsSystemTree() {
LocationStepQueryNode[] pathSteps = getPathSteps();
if (pathSteps == null || pathSteps.length == 0) {
return true;
}
InternalQName firstPathStepName = pathSteps[0].getNameTest();
if (firstPathStepName == ... | public class class_name {
public boolean needsSystemTree() {
LocationStepQueryNode[] pathSteps = getPathSteps();
if (pathSteps == null || pathSteps.length == 0) {
return true; // depends on control dependency: [if], data = [none]
}
InternalQName firstPathStepName = pathSte... |
public class class_name {
private <X> AbstractManagedType<X> buildManagedType(Class<X> clazz, boolean isIdClass)
{
AbstractManagedType<X> managedType = null;
if (clazz.isAnnotationPresent(Embeddable.class))
{
validate(clazz, true);
if (!embeddables.containsKey(clazz... | public class class_name {
private <X> AbstractManagedType<X> buildManagedType(Class<X> clazz, boolean isIdClass)
{
AbstractManagedType<X> managedType = null;
if (clazz.isAnnotationPresent(Embeddable.class))
{
validate(clazz, true); // depends on control dependency: [if], data =... |
public class class_name {
protected String createResponseBody(TemplateEngine engine, WebContext context, ActionRuntime runtime, NextJourney journey) {
try {
return engine.process(journey.getRoutingPath(), context);
} catch (RuntimeException e) {
return throwRequestForwardFailure... | public class class_name {
protected String createResponseBody(TemplateEngine engine, WebContext context, ActionRuntime runtime, NextJourney journey) {
try {
return engine.process(journey.getRoutingPath(), context); // depends on control dependency: [try], data = [none]
} catch (RuntimeExcep... |
public class class_name {
private URI toUri(final String path) {
try {
return new URI(null, null, path, null);
} catch (URISyntaxException e) {
throw new IllegalArgumentException(e);
}
} } | public class class_name {
private URI toUri(final String path) {
try {
return new URI(null, null, path, null);
// depends on control dependency: [try], data = [none]
} catch (URISyntaxException e) {
throw new IllegalArgumentException(e);
}
// depends on control dep... |
public class class_name {
public void marshall(VirtualRouterData virtualRouterData, ProtocolMarshaller protocolMarshaller) {
if (virtualRouterData == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(v... | public class class_name {
public void marshall(VirtualRouterData virtualRouterData, ProtocolMarshaller protocolMarshaller) {
if (virtualRouterData == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(v... |
public class class_name {
public void swapSubstring(BitString other, int start, int length)
{
assertValidIndex(start);
other.assertValidIndex(start);
int word = start / WORD_LENGTH;
int partialWordSize = (WORD_LENGTH - start) % WORD_LENGTH;
if (partialWordSize > 0)... | public class class_name {
public void swapSubstring(BitString other, int start, int length)
{
assertValidIndex(start);
other.assertValidIndex(start);
int word = start / WORD_LENGTH;
int partialWordSize = (WORD_LENGTH - start) % WORD_LENGTH;
if (partialWordSize > 0)... |
public class class_name {
private <T> void runProcessorsOnInlineContent(ProxyBuilder<T> proxyBuilder,
ParagraphCoordinates paragraphCoordinates) {
ParagraphWrapper paragraph = new ParagraphWrapper(paragraphCoordinates.getParagraph());
List<String> processorExpre... | public class class_name {
private <T> void runProcessorsOnInlineContent(ProxyBuilder<T> proxyBuilder,
ParagraphCoordinates paragraphCoordinates) {
ParagraphWrapper paragraph = new ParagraphWrapper(paragraphCoordinates.getParagraph());
List<String> processorExpre... |
public class class_name {
public void alarm(Object thandle)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "alarm", thandle);
synchronized (this)
{
if (expiryAlarmHandle != null)
{
expiryAlarmHandle = null;
close();
// call in... | public class class_name {
public void alarm(Object thandle)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "alarm", thandle);
synchronized (this)
{
if (expiryAlarmHandle != null)
{
expiryAlarmHandle = null; // depends on control dependency: [... |
public class class_name {
public void removeByKey(Object key)
{
Object value = keyTable.remove(key);
if (value != null)
{
valueTable.remove(value);
}
} } | public class class_name {
public void removeByKey(Object key)
{
Object value = keyTable.remove(key);
if (value != null)
{
valueTable.remove(value);
// depends on control dependency: [if], data = [(value]
}
} } |
public class class_name {
protected static void writeIterator(Output out, Iterator<Object> it) {
log.trace("writeIterator");
// Create LinkedList of collection we iterate thru and write it out later
LinkedList<Object> list = new LinkedList<Object>();
while (it.hasNext()) {
l... | public class class_name {
protected static void writeIterator(Output out, Iterator<Object> it) {
log.trace("writeIterator");
// Create LinkedList of collection we iterate thru and write it out later
LinkedList<Object> list = new LinkedList<Object>();
while (it.hasNext()) {
l... |
public class class_name {
private List<CmsGitConfiguration> readConfigFiles() {
List<CmsGitConfiguration> configurations = new LinkedList<CmsGitConfiguration>();
// Default configuration file for backwards compatibility
addConfigurationIfValid(configurations, new File(DEFAULT_CONFIG_FILE));
... | public class class_name {
private List<CmsGitConfiguration> readConfigFiles() {
List<CmsGitConfiguration> configurations = new LinkedList<CmsGitConfiguration>();
// Default configuration file for backwards compatibility
addConfigurationIfValid(configurations, new File(DEFAULT_CONFIG_FILE));
... |
public class class_name {
public static float getFloat(String name, float defaultVal){
if(getConfiguration().containsKey(name)){
return getConfiguration().getFloat(name);
} else {
return defaultVal;
}
} } | public class class_name {
public static float getFloat(String name, float defaultVal){
if(getConfiguration().containsKey(name)){
return getConfiguration().getFloat(name); // depends on control dependency: [if], data = [none]
} else {
return defaultVal; // depends on control depe... |
public class class_name {
public boolean containsNone(UnicodeSet b) {
// The specified set is a subset if some of its pairs overlap with some of this set's pairs.
// This implementation accesses the lists directly for speed.
int[] listB = b.list;
boolean needA = true;
boolean ne... | public class class_name {
public boolean containsNone(UnicodeSet b) {
// The specified set is a subset if some of its pairs overlap with some of this set's pairs.
// This implementation accesses the lists directly for speed.
int[] listB = b.list;
boolean needA = true;
boolean ne... |
public class class_name {
public void startGui(final Stage mainStage) {
try {
onStageCreated(mainStage);
final Scene mainScene = getScene(mainComponent());
onSceneCreated(mainScene);
mainStage.setScene(mainScene);
mainStage.setTitle(title());
... | public class class_name {
public void startGui(final Stage mainStage) {
try {
onStageCreated(mainStage); // depends on control dependency: [try], data = [none]
final Scene mainScene = getScene(mainComponent());
onSceneCreated(mainScene); // depends on control dependency: [tr... |
public class class_name {
@SuppressWarnings("unused") // called through reflection by RequestServer
public MetadataV3 fetchSchemaMetadata(int version, MetadataV3 docs) {
if ("void".equals(docs.schemaname)) {
docs.schemas = new SchemaMetadataV3[0];
return docs;
}
docs.schemas = new SchemaMeta... | public class class_name {
@SuppressWarnings("unused") // called through reflection by RequestServer
public MetadataV3 fetchSchemaMetadata(int version, MetadataV3 docs) {
if ("void".equals(docs.schemaname)) {
docs.schemas = new SchemaMetadataV3[0]; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@Override
boolean checkNodes(final INodeReadTrx paramNewRtx, final INodeReadTrx paramOldRtx) {
boolean found = false;
if (paramNewRtx.getNode().getDataKey() == paramOldRtx.getNode().getDataKey()) {
if (paramNewRtx.getNode().getKind() == paramOldRtx.getNode().ge... | public class class_name {
@Override
boolean checkNodes(final INodeReadTrx paramNewRtx, final INodeReadTrx paramOldRtx) {
boolean found = false;
if (paramNewRtx.getNode().getDataKey() == paramOldRtx.getNode().getDataKey()) {
if (paramNewRtx.getNode().getKind() == paramOldRtx.getNode().ge... |
public class class_name {
public java.time.Duration toTemporalAmount() {
if (this.scale == TimeScale.POSIX) {
return java.time.Duration.ofSeconds(this.seconds, this.nanos);
} else {
throw new IllegalStateException(
"Can only convert based on "java.util.conc... | public class class_name {
public java.time.Duration toTemporalAmount() {
if (this.scale == TimeScale.POSIX) {
return java.time.Duration.ofSeconds(this.seconds, this.nanos); // depends on control dependency: [if], data = [none]
} else {
throw new IllegalStateException(
... |
public class class_name {
@Override
public void cacheResult(
List<CPRuleAssetCategoryRel> cpRuleAssetCategoryRels) {
for (CPRuleAssetCategoryRel cpRuleAssetCategoryRel : cpRuleAssetCategoryRels) {
if (entityCache.getResult(
CPRuleAssetCategoryRelModelImpl.ENTITY_CACHE_ENABLED,
CPRuleAssetCategoryRe... | public class class_name {
@Override
public void cacheResult(
List<CPRuleAssetCategoryRel> cpRuleAssetCategoryRels) {
for (CPRuleAssetCategoryRel cpRuleAssetCategoryRel : cpRuleAssetCategoryRels) {
if (entityCache.getResult(
CPRuleAssetCategoryRelModelImpl.ENTITY_CACHE_ENABLED,
CPRuleAssetCategoryRe... |
public class class_name {
public byte[] getBytes(int key) {
PebbleTuple tuple = getTuple(key, PebbleTuple.TupleType.BYTES);
if (tuple == null) {
return null;
}
return (byte[]) tuple.value;
} } | public class class_name {
public byte[] getBytes(int key) {
PebbleTuple tuple = getTuple(key, PebbleTuple.TupleType.BYTES);
if (tuple == null) {
return null; // depends on control dependency: [if], data = [none]
}
return (byte[]) tuple.value;
} } |
public class class_name {
public void fireRelationWrittenEvent(Relation relation)
{
if (m_projectListeners != null)
{
for (ProjectListener listener : m_projectListeners)
{
listener.relationWritten(relation);
}
}
} } | public class class_name {
public void fireRelationWrittenEvent(Relation relation)
{
if (m_projectListeners != null)
{
for (ProjectListener listener : m_projectListeners)
{
listener.relationWritten(relation); // depends on control dependency: [for], data = [listener]
... |
public class class_name {
public List<GridFSDBFile> find(final DBObject query, final DBObject sort, final int firstResult,
final int maxResult)
{
List<GridFSDBFile> files = new ArrayList<GridFSDBFile>();
DBCursor c = null;
try
{
c = getFilesCollection().find... | public class class_name {
public List<GridFSDBFile> find(final DBObject query, final DBObject sort, final int firstResult,
final int maxResult)
{
List<GridFSDBFile> files = new ArrayList<GridFSDBFile>();
DBCursor c = null;
try
{
c = getFilesCollection().find... |
public class class_name {
public static void setFileHandler(Object target, Method fileHandler) {
setHandler(new OSXAdapter("handleOpenFile", target, fileHandler) {
// Override OSXAdapter.callTarget to send information on the
// file to be opened
public boolean callTarget(Obj... | public class class_name {
public static void setFileHandler(Object target, Method fileHandler) {
setHandler(new OSXAdapter("handleOpenFile", target, fileHandler) {
// Override OSXAdapter.callTarget to send information on the
// file to be opened
public boolean callTarget(Obj... |
public class class_name {
public static Object invokeMethod(Object obj, String name, Object... args) {
if (obj == null)
throw new NullPointerException("Object cannot be null");
if (name == null)
throw new NullPointerException("Method name cannot be null");
Class<?> objClass = obj.getClass();
for (Metho... | public class class_name {
public static Object invokeMethod(Object obj, String name, Object... args) {
if (obj == null)
throw new NullPointerException("Object cannot be null");
if (name == null)
throw new NullPointerException("Method name cannot be null");
Class<?> objClass = obj.getClass();
for (Metho... |
public class class_name {
@ApiOperation(value="Schedules a job and returns the ID for the new job.",
response=Long.class, code=201)
@ApiResponses(value = { @ApiResponse(code = 500, message = "Unexpected error"),
@ApiResponse(code = 201, message = "Successfull response", examples=@Example(v... | public class class_name {
@ApiOperation(value="Schedules a job and returns the ID for the new job.",
response=Long.class, code=201)
@ApiResponses(value = { @ApiResponse(code = 500, message = "Unexpected error"),
@ApiResponse(code = 201, message = "Successfull response", examples=@Example(v... |
public class class_name {
private void handleHttpQuery(final TSDB tsdb, final Channel chan, final HttpRequest req) {
AbstractHttpQuery abstractQuery = null;
try {
abstractQuery = createQueryInstance(tsdb, req, chan);
if (!tsdb.getConfig().enable_chunked_requests() && req.isChunked()) {
logE... | public class class_name {
private void handleHttpQuery(final TSDB tsdb, final Channel chan, final HttpRequest req) {
AbstractHttpQuery abstractQuery = null;
try {
abstractQuery = createQueryInstance(tsdb, req, chan); // depends on control dependency: [try], data = [none]
if (!tsdb.getConfig().enabl... |
public class class_name {
public static CmsImageScaler getScaler(CmsImageScaler scaler, CmsImageScaler original, String scaleParam) {
if (scaleParam != null) {
CmsImageScaler cropScaler = null;
// use cropped image as a base for scaling
cropScaler = new CmsImageScaler(scale... | public class class_name {
public static CmsImageScaler getScaler(CmsImageScaler scaler, CmsImageScaler original, String scaleParam) {
if (scaleParam != null) {
CmsImageScaler cropScaler = null;
// use cropped image as a base for scaling
cropScaler = new CmsImageScaler(scale... |
public class class_name {
public static double getSwapAnnuity(double evaluationTime, ScheduleInterface schedule, DiscountCurveInterface discountCurve, AnalyticModelInterface model) {
double value = 0.0;
for(int periodIndex=0; periodIndex<schedule.getNumberOfPeriods(); periodIndex++) {
double paymentDate = sche... | public class class_name {
public static double getSwapAnnuity(double evaluationTime, ScheduleInterface schedule, DiscountCurveInterface discountCurve, AnalyticModelInterface model) {
double value = 0.0;
for(int periodIndex=0; periodIndex<schedule.getNumberOfPeriods(); periodIndex++) {
double paymentDate = sche... |
public class class_name {
public void addCc(String cc) {
if (this.cc.length() > 0) {
this.cc.append(",");
}
this.cc.append(cc);
} } | public class class_name {
public void addCc(String cc) {
if (this.cc.length() > 0) {
this.cc.append(","); // depends on control dependency: [if], data = [none]
}
this.cc.append(cc);
} } |
public class class_name {
public OvhOptionsBuilder smsCoding(String... smsCoding) {
for (String s : smsCoding) {
if (s != null) {
smsCodings.add(s);
}
}
return this;
} } | public class class_name {
public OvhOptionsBuilder smsCoding(String... smsCoding) {
for (String s : smsCoding) {
if (s != null) {
smsCodings.add(s); // depends on control dependency: [if], data = [(s]
}
}
return this;
} } |
public class class_name {
@Override
protected void onReset() {
if (DEBUG) { Log.v(TAG, "onReset " + this); }
super.onReset();
onStopLoading();
if (receivedResponse != null) {
onReleaseData(receivedResponse);
receivedResponse = null;
}
} } | public class class_name {
@Override
protected void onReset() {
if (DEBUG) { Log.v(TAG, "onReset " + this); } // depends on control dependency: [if], data = [none]
super.onReset();
onStopLoading();
if (receivedResponse != null) {
onReleaseData(receivedResponse); // depends on control dependency... |
public class class_name {
public List<LDAPEntry> search(LDAPConnection ldapConnection,
String baseDN, String query) throws GuacamoleException {
logger.debug("Searching \"{}\" for objects matching \"{}\".", baseDN, query);
try {
// Search within subtree of given base DN
... | public class class_name {
public List<LDAPEntry> search(LDAPConnection ldapConnection,
String baseDN, String query) throws GuacamoleException {
logger.debug("Searching \"{}\" for objects matching \"{}\".", baseDN, query);
try {
// Search within subtree of given base DN
... |
public class class_name {
public <S extends AddressSegment> void getSplitSegments(S segs[], int index, AddressSegmentCreator<S> creator) {
if(!isMultiple()) {
int bitSizeSplit = IPv6Address.BITS_PER_SEGMENT >>> 1;
Integer myPrefix = getSegmentPrefixLength();
Integer highPrefixBits = getSplitSegmentPrefi... | public class class_name {
public <S extends AddressSegment> void getSplitSegments(S segs[], int index, AddressSegmentCreator<S> creator) {
if(!isMultiple()) {
int bitSizeSplit = IPv6Address.BITS_PER_SEGMENT >>> 1;
Integer myPrefix = getSegmentPrefixLength();
Integer highPrefixBits = getSplitSegmentPrefi... |
public class class_name {
private boolean hasDelimiter(String word, String[] delimiters) {
boolean delim = false;
for (int i = 0; i < delimiters.length; i++) {
if (word.indexOf(delimiters[i]) > -1) {
delim = true;
break;
}
}
retur... | public class class_name {
private boolean hasDelimiter(String word, String[] delimiters) {
boolean delim = false;
for (int i = 0; i < delimiters.length; i++) {
if (word.indexOf(delimiters[i]) > -1) {
delim = true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public EpollServerSocketChannelConfig setTcpDeferAccept(int deferAccept) {
try {
((EpollServerSocketChannel) channel).socket.setTcpDeferAccept(deferAccept);
return this;
} catch (IOException e) {
throw new ChannelException(e);
}
... | public class class_name {
public EpollServerSocketChannelConfig setTcpDeferAccept(int deferAccept) {
try {
((EpollServerSocketChannel) channel).socket.setTcpDeferAccept(deferAccept); // depends on control dependency: [try], data = [none]
return this; // depends on control dependency: [t... |
public class class_name {
public static ExpressionInfo expressionInfo(String code, JShell state) {
if (code == null || code.isEmpty()) {
return null;
}
try {
OuterWrap codeWrap = state.outerMap.wrapInTrialClass(Wrap.methodReturnWrap(code));
AnalyzeTask at = s... | public class class_name {
public static ExpressionInfo expressionInfo(String code, JShell state) {
if (code == null || code.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
try {
OuterWrap codeWrap = state.outerMap.wrapInTrialClass(Wrap.m... |
public class class_name {
public boolean pollResource() throws AmazonServiceException, WaiterTimedOutException, WaiterUnrecoverableException {
int retriesAttempted = 0;
while (true) {
switch (getCurrentState()) {
case SUCCESS:
return true;
... | public class class_name {
public boolean pollResource() throws AmazonServiceException, WaiterTimedOutException, WaiterUnrecoverableException {
int retriesAttempted = 0;
while (true) {
switch (getCurrentState()) {
case SUCCESS:
return true;
... |
public class class_name {
public List<JavaInformations> getJavaInformationsByApplication(String application) {
// application peut être null
if (application == null) {
return null;
}
final RemoteCollector remoteCollector = remoteCollectorsByApplication.get(application);
if (remoteCollector == null) ... | public class class_name {
public List<JavaInformations> getJavaInformationsByApplication(String application) {
// application peut être null
if (application == null) {
return null;
// depends on control dependency: [if], data = [none]
}
final RemoteCollector remoteCollector = remoteCollectorsByApplicat... |
public class class_name {
public static List<MtgSet> getAllSetsWithCards() {
List<MtgSet> returnList = getList(RESOURCE_PATH, "sets", MtgSet.class);
for(MtgSet set : returnList){
set.setCards(CardAPI.getAllCards(new LinkedList<>(Collections.singletonList("set=" + set.getCode()))));
}
return returnList;
} } | public class class_name {
public static List<MtgSet> getAllSetsWithCards() {
List<MtgSet> returnList = getList(RESOURCE_PATH, "sets", MtgSet.class);
for(MtgSet set : returnList){
set.setCards(CardAPI.getAllCards(new LinkedList<>(Collections.singletonList("set=" + set.getCode())))); // depends on control depende... |
public class class_name {
private static void encodeTabAnchorTag(FacesContext context, ResponseWriter writer, Tab tab,
String hiddenInputFieldID, int tabindex, boolean disabled) throws IOException {
writer.startElement("a", tab);
writer.writeAttribute("id", tab.getClientId().replace(":", "_") + "_tab", "id");
... | public class class_name {
private static void encodeTabAnchorTag(FacesContext context, ResponseWriter writer, Tab tab,
String hiddenInputFieldID, int tabindex, boolean disabled) throws IOException {
writer.startElement("a", tab);
writer.writeAttribute("id", tab.getClientId().replace(":", "_") + "_tab", "id");
... |
public class class_name {
public DeleteMessageResult deleteMessage(DeleteMessageRequest deleteMessageRequest) {
if (deleteMessageRequest == null) {
String errorMessage = "deleteMessageRequest cannot be null.";
LOG.error(errorMessage);
throw new AmazonClientException(errorMessage);
}
deleteMessageReque... | public class class_name {
public DeleteMessageResult deleteMessage(DeleteMessageRequest deleteMessageRequest) {
if (deleteMessageRequest == null) {
String errorMessage = "deleteMessageRequest cannot be null.";
LOG.error(errorMessage); // depends on control dependency: [if], data = [none]
throw new AmazonCl... |
public class class_name {
public List<org.openprovenance.prov.model.LangString> getLabel() {
if (label == null) {
label = new ArrayList<org.openprovenance.prov.model.LangString>();
}
return this.label;
} } | public class class_name {
public List<org.openprovenance.prov.model.LangString> getLabel() {
if (label == null) {
label = new ArrayList<org.openprovenance.prov.model.LangString>(); // depends on control dependency: [if], data = [none]
}
return this.label;
} } |
public class class_name {
public void setVideoDecoderConfiguration(IRTMPEvent decoderConfig) {
if (decoderConfig instanceof IStreamData) {
IoBuffer data = ((IStreamData<?>) decoderConfig).getData().asReadOnlyBuffer();
videoConfigurationTag = ImmutableTag.build(decoderConfig.getDataTy... | public class class_name {
public void setVideoDecoderConfiguration(IRTMPEvent decoderConfig) {
if (decoderConfig instanceof IStreamData) {
IoBuffer data = ((IStreamData<?>) decoderConfig).getData().asReadOnlyBuffer();
videoConfigurationTag = ImmutableTag.build(decoderConfig.getDataTy... |
public class class_name {
public void validateConfiguration(String configuration) {
try {
JSONObject json = new JSONObject(configuration);
String className = json.optString(CmsDataViewConstants.CONFIG_VIEW_CLASS);
Class<?> cls = Class.forName(className, false, getClass().g... | public class class_name {
public void validateConfiguration(String configuration) {
try {
JSONObject json = new JSONObject(configuration);
String className = json.optString(CmsDataViewConstants.CONFIG_VIEW_CLASS);
Class<?> cls = Class.forName(className, false, getClass().g... |
public class class_name {
Table SYSTEM_PROPERTIES() {
Table t = sysTables[SYSTEM_PROPERTIES];
if (t == null) {
t = createBlankTable(sysTableHsqlNames[SYSTEM_PROPERTIES]);
addColumn(t, "PROPERTY_SCOPE", CHARACTER_DATA);
addColumn(t, "PROPERTY_NAMESPACE", CHARACTER_... | public class class_name {
Table SYSTEM_PROPERTIES() {
Table t = sysTables[SYSTEM_PROPERTIES];
if (t == null) {
t = createBlankTable(sysTableHsqlNames[SYSTEM_PROPERTIES]); // depends on control dependency: [if], data = [none]
addColumn(t, "PROPERTY_SCOPE", CHARACTER_DATA); // ... |
public class class_name {
public void createImage(OutputStream stream, int format) {
SWTGraphics g = null;
GC gc = null;
Image image = null;
LayerManager layerManager = (LayerManager)
getGraphicalViewer().getEditPartRegistry().get(LayerManager.ID);
IFigure figure = l... | public class class_name {
public void createImage(OutputStream stream, int format) {
SWTGraphics g = null;
GC gc = null;
Image image = null;
LayerManager layerManager = (LayerManager)
getGraphicalViewer().getEditPartRegistry().get(LayerManager.ID);
IFigure figure = l... |
public class class_name {
private <C> Iterator<Column<C>> columnScan(final ByteBuffer rowKey,
final DeltaPlacement placement,
final ColumnFamily<ByteBuffer, C> columnFamily,
fina... | public class class_name {
private <C> Iterator<Column<C>> columnScan(final ByteBuffer rowKey,
final DeltaPlacement placement,
final ColumnFamily<ByteBuffer, C> columnFamily,
fina... |
public class class_name {
public void marshall(Instance instance, ProtocolMarshaller protocolMarshaller) {
if (instance == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(instance.getName(), NAME_BIN... | public class class_name {
public void marshall(Instance instance, ProtocolMarshaller protocolMarshaller) {
if (instance == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(instance.getName(), NAME_BIN... |
public class class_name {
private boolean checkForVariables(List<Map<String, String>> values) {
if (values == null || values.isEmpty()) {
return false;
} else {
for (Map<String, String> list : values) {
if (list.containsKey("type") && list.get("type")
.equals(MtasParserMapping.P... | public class class_name {
private boolean checkForVariables(List<Map<String, String>> values) {
if (values == null || values.isEmpty()) {
return false; // depends on control dependency: [if], data = [none]
} else {
for (Map<String, String> list : values) {
if (list.containsKey("type") && li... |
public class class_name {
public String getOriginalString() {
if (this.string != null) {
this.string = new String(this.buffer, this.initialOffset, getLength());
}
return this.string;
} } | public class class_name {
public String getOriginalString() {
if (this.string != null) {
this.string = new String(this.buffer, this.initialOffset, getLength());
// depends on control dependency: [if], data = [none]
}
return this.string;
} } |
public class class_name {
@GuardedBy("writeLock")
private void updateFileList(FileListCacheValue fileList) {
if (writeAsync) {
cacheNoRetrieve.putAsync(fileListCacheKey, fileList);
}
else {
if (trace) {
log.tracef("Updating file listing view from %s", getAddress(cache... | public class class_name {
@GuardedBy("writeLock")
private void updateFileList(FileListCacheValue fileList) {
if (writeAsync) {
cacheNoRetrieve.putAsync(fileListCacheKey, fileList); // depends on control dependency: [if], data = [none]
}
else {
if (trace) {
log.tracef(... |
public class class_name {
private void changeEntityValue(String value, int valueIndex) {
if (getEntityType().isChoice()) {
CmsEntity choice = m_entity.getAttribute(CmsType.CHOICE_ATTRIBUTE_NAME).getComplexValues().get(valueIndex);
String attributeName = getChoiceName(valueIndex);
... | public class class_name {
private void changeEntityValue(String value, int valueIndex) {
if (getEntityType().isChoice()) {
CmsEntity choice = m_entity.getAttribute(CmsType.CHOICE_ATTRIBUTE_NAME).getComplexValues().get(valueIndex);
String attributeName = getChoiceName(valueIndex);
... |
public class class_name {
@SuppressWarnings("unchecked")
private List<Class<? extends FeatureInstaller>> findInstallers() {
if (scanner != null) {
final List<Class<? extends FeatureInstaller>> installers = Lists.newArrayList();
scanner.scan(new ClassVisitor() {
@Over... | public class class_name {
@SuppressWarnings("unchecked")
private List<Class<? extends FeatureInstaller>> findInstallers() {
if (scanner != null) {
final List<Class<? extends FeatureInstaller>> installers = Lists.newArrayList();
scanner.scan(new ClassVisitor() {
@Over... |
public class class_name {
public static <T> T flattenOption(scala.Option<T> option) {
if (option.isEmpty()) {
return null;
} else {
return option.get();
}
} } | public class class_name {
public static <T> T flattenOption(scala.Option<T> option) {
if (option.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
} else {
return option.get(); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private Icon getEditIcon() {
Icon icon = null;
if (getFormId() != null) {
icon = getApplicationConfig().iconSource().getIcon(getFormId() + ".shuttleList.edit");
}
if (icon == null) {
icon = getApplicationConfig().iconSource().getIcon("shuttleList.edit");
}
return icon;
} ... | public class class_name {
private Icon getEditIcon() {
Icon icon = null;
if (getFormId() != null) {
icon = getApplicationConfig().iconSource().getIcon(getFormId() + ".shuttleList.edit"); // depends on control dependency: [if], data = [(getFormId()]
}
if (icon == null) {
icon = getApplicationConfig().ic... |
public class class_name {
@Override
public MultipleObjectsBundle filter(MultipleObjectsBundle objects) {
if(objects.dataLength() == 0) {
return objects;
}
MultipleObjectsBundle bundle = new MultipleObjectsBundle();
final Logging logger = getLogger();
for(int r = 0; r < objects.metaLength()... | public class class_name {
@Override
public MultipleObjectsBundle filter(MultipleObjectsBundle objects) {
if(objects.dataLength() == 0) {
return objects; // depends on control dependency: [if], data = [none]
}
MultipleObjectsBundle bundle = new MultipleObjectsBundle();
final Logging logger = ge... |
public class class_name {
public void prunePoints(int count ) {
// Remove all observations of the Points which are going to be removed
for (int viewIndex = observations.views.length-1; viewIndex >= 0; viewIndex--) {
SceneObservations.View v = observations.views[viewIndex];
for(int pointIndex = v.point.size-... | public class class_name {
public void prunePoints(int count ) {
// Remove all observations of the Points which are going to be removed
for (int viewIndex = observations.views.length-1; viewIndex >= 0; viewIndex--) {
SceneObservations.View v = observations.views[viewIndex];
for(int pointIndex = v.point.size-... |
public class class_name {
void appendString(JCTree tree) {
Type t = tree.type.baseType();
if (!t.isPrimitive() && t.tsym != syms.stringType.tsym) {
t = syms.objectType;
}
items.makeMemberItem(getStringBufferAppend(tree, t), false).invoke();
} } | public class class_name {
void appendString(JCTree tree) {
Type t = tree.type.baseType();
if (!t.isPrimitive() && t.tsym != syms.stringType.tsym) {
t = syms.objectType; // depends on control dependency: [if], data = [none]
}
items.makeMemberItem(getString... |
public class class_name {
public String remainderValue()
{
if (isCharCommand())
{
if (getValue().length() == 1)
return null;
return getValue().substring(1);
}
if (isWordCommand())
return null;
return getValue();
} } | public class class_name {
public String remainderValue()
{
if (isCharCommand())
{
if (getValue().length() == 1)
return null;
return getValue().substring(1); // depends on control dependency: [if], data = [none]
}
if (isWordCommand())
... |
public class class_name {
@Override
public double divide(double w1, double w2) {
if (!isMember(w1) || !isMember(w2)) {
return Double.NEGATIVE_INFINITY;
}
if (w2 == zero) {
return Double.NEGATIVE_INFINITY;
} else if (w1 == zero) {
return zero;
}
return w1 - w2;
} } | public class class_name {
@Override
public double divide(double w1, double w2) {
if (!isMember(w1) || !isMember(w2)) {
return Double.NEGATIVE_INFINITY; // depends on control dependency: [if], data = [none]
}
if (w2 == zero) {
return Double.NEGATIVE_INFINITY; // depends on control dependency:... |
public class class_name {
protected void addClassEditors (BuilderModel model, String cprefix)
{
List<ComponentClass> classes = model.getComponentClasses();
int size = classes.size();
for (int ii = 0; ii < size; ii++) {
ComponentClass cclass = classes.get(ii);
if (!cc... | public class class_name {
protected void addClassEditors (BuilderModel model, String cprefix)
{
List<ComponentClass> classes = model.getComponentClasses();
int size = classes.size();
for (int ii = 0; ii < size; ii++) {
ComponentClass cclass = classes.get(ii);
if (!cc... |
public class class_name {
public void marshall(AddFacetToObjectRequest addFacetToObjectRequest, ProtocolMarshaller protocolMarshaller) {
if (addFacetToObjectRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(AddFacetToObjectRequest addFacetToObjectRequest, ProtocolMarshaller protocolMarshaller) {
if (addFacetToObjectRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
@Nonnull
public BugInstance addClassAndMethod(MethodGen methodGen, String sourceFile) {
addClass(methodGen.getClassName());
addMethod(methodGen, sourceFile);
if (!MemberUtils.isUserGenerated(methodGen)) {
foundInAutogeneratedMethod();
}
... | public class class_name {
@Nonnull
public BugInstance addClassAndMethod(MethodGen methodGen, String sourceFile) {
addClass(methodGen.getClassName());
addMethod(methodGen, sourceFile);
if (!MemberUtils.isUserGenerated(methodGen)) {
foundInAutogeneratedMethod(); // depends on cont... |
public class class_name {
public boolean addVertex(Vertex<T> v)
{
if( verticies.containsValue(v) == false )
{
verticies.put(v.getName(), v);
return true;
}
return false;
} } | public class class_name {
public boolean addVertex(Vertex<T> v)
{
if( verticies.containsValue(v) == false )
{
verticies.put(v.getName(), v); // depends on control dependency: [if], data = [none]
return true; // depends on control dependency: [if], data = [none]
}
return fal... |
public class class_name {
public Map<Integer,Integer> getVertexMapping() {
Map<Integer,Integer> vertexMapping = new HashMap<Integer,Integer>();
for (int i = 0, j = 0; i < n1; ++i) {
if (core1[i] != NULL_NODE) {
vertexMapping.put(i, core1[i]);
}
}
... | public class class_name {
public Map<Integer,Integer> getVertexMapping() {
Map<Integer,Integer> vertexMapping = new HashMap<Integer,Integer>();
for (int i = 0, j = 0; i < n1; ++i) {
if (core1[i] != NULL_NODE) {
vertexMapping.put(i, core1[i]); // depends on control dependency... |
public class class_name {
@Descriptor("Gets the importer available in the platform")
public void importer(@Descriptor("importer [importer name]") String... parameters) {
Map<ServiceReference, ImporterService> importerRefsAndServices = getAllServiceRefsAndServices(ImporterService.class);
StringBuild... | public class class_name {
@Descriptor("Gets the importer available in the platform")
public void importer(@Descriptor("importer [importer name]") String... parameters) {
Map<ServiceReference, ImporterService> importerRefsAndServices = getAllServiceRefsAndServices(ImporterService.class);
StringBuild... |
public class class_name {
private Asset getAsset(Object id, String assetTypeToken) {
Asset result = assetCache.get(id);
if (result == null) {
try {
IAssetType assetType = getMetaModel().getAssetType(
assetTypeToken);
if (id instanceo... | public class class_name {
private Asset getAsset(Object id, String assetTypeToken) {
Asset result = assetCache.get(id);
if (result == null) {
try {
IAssetType assetType = getMetaModel().getAssetType(
assetTypeToken);
if (id instanceo... |
public class class_name {
public FilterSpec addExpression(FilterSpec expr) {
if (expressions == null) {
expressions = new ArrayList<>();
}
expressions.add((FilterSpec) expr);
return this;
} } | public class class_name {
public FilterSpec addExpression(FilterSpec expr) {
if (expressions == null) {
expressions = new ArrayList<>(); // depends on control dependency: [if], data = [none]
}
expressions.add((FilterSpec) expr);
return this;
} } |
public class class_name {
public Integer getSelectedRow() {
final Object result = getStateHelper().eval(PropertyKeys.selectedRow);
if (result == null) {
return null;
}
return Integer.valueOf(result.toString());
} } | public class class_name {
public Integer getSelectedRow() {
final Object result = getStateHelper().eval(PropertyKeys.selectedRow);
if (result == null) {
return null; // depends on control dependency: [if], data = [none]
}
return Integer.valueOf(result.toString());
} } |
public class class_name {
public Map<?, ?> formatJSON2Map(String json) {
Map<?, ?> map = null;
try {
map = MAPPER.readValue(json, Map.class);
} catch (Exception e) {
LOGGER.error("formatJsonToMap error, json = " + json, e);
}
return map;
} } | public class class_name {
public Map<?, ?> formatJSON2Map(String json) {
Map<?, ?> map = null;
try {
map = MAPPER.readValue(json, Map.class); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
LOGGER.error("formatJsonToMap error, json = " + json, e);
} // depends on control de... |
public class class_name {
@Override
public void fireValueNodeAdded(IValueNode valueNode) {
for (IDatabaseListener iDatabaseListener : listeners) {
iDatabaseListener.valueNodeAdded(valueNode);
}
} } | public class class_name {
@Override
public void fireValueNodeAdded(IValueNode valueNode) {
for (IDatabaseListener iDatabaseListener : listeners) {
iDatabaseListener.valueNodeAdded(valueNode); // depends on control dependency: [for], data = [iDatabaseListener]
}
} } |
public class class_name {
protected static boolean uninstallAddOnExtension(
AddOn addOn,
Extension extension,
AddOnUninstallationProgressCallback callback) {
boolean uninstalledWithoutErrors = true;
if (extension.isEnabled()) {
String extUiName = extensio... | public class class_name {
protected static boolean uninstallAddOnExtension(
AddOn addOn,
Extension extension,
AddOnUninstallationProgressCallback callback) {
boolean uninstalledWithoutErrors = true;
if (extension.isEnabled()) {
String extUiName = extensio... |
public class class_name {
public static void main(String[] args) {
try {
if (args.length != 7) {
Utils.exitWithFailure();
}
String cluster = args[0];
Properties clustersProperties = PropertiesHelper
.stringToProperties(args[1]);
long timeout = Long.parseLong(args[2]);
String regionName = a... | public class class_name {
public static void main(String[] args) {
try {
if (args.length != 7) {
Utils.exitWithFailure(); // depends on control dependency: [if], data = [none]
}
String cluster = args[0];
Properties clustersProperties = PropertiesHelper
.stringToProperties(args[1]);
long timeo... |
public class class_name {
public void marshall(PutBotAliasRequest putBotAliasRequest, ProtocolMarshaller protocolMarshaller) {
if (putBotAliasRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(PutBotAliasRequest putBotAliasRequest, ProtocolMarshaller protocolMarshaller) {
if (putBotAliasRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
static String toLowerCamelCaseWithNumericSuffixes(String input) {
// Determine where the numeric suffixes begin
int suffixStart = input.length();
while (suffixStart > 0) {
char ch = '\0';
int numberStart = suffixStart;
while (numberStart > 0) {
ch = input... | public class class_name {
static String toLowerCamelCaseWithNumericSuffixes(String input) {
// Determine where the numeric suffixes begin
int suffixStart = input.length();
while (suffixStart > 0) {
char ch = '\0';
int numberStart = suffixStart;
while (numberStart > 0) {
ch = input... |
public class class_name {
private void driveRegisteredCallbacks(
RegisteredCallbacks rMonitor,
boolean isEmpty)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"driveRegisteredCallbacks",
new Object[] { rMonitor, new Boolean(isEmpt... | public class class_name {
private void driveRegisteredCallbacks(
RegisteredCallbacks rMonitor,
boolean isEmpty)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"driveRegisteredCallbacks",
new Object[] { rMonitor, new Boolean(isEmpt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.