code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public Variable declareVariable(Variable var, boolean isPrivate) {
if (mVariables.containsKey(var)) {
var = mVariables.get(var);
}
else {
mVariables.put(var, var);
}
mDeclared.put(var.getName(), var);
if (isPrivate) {
... | public class class_name {
public Variable declareVariable(Variable var, boolean isPrivate) {
if (mVariables.containsKey(var)) {
var = mVariables.get(var); // depends on control dependency: [if], data = [none]
}
else {
mVariables.put(var, var); // depends on control depen... |
public class class_name {
public static void putAllIfNotNull(Map<String, String> ret, Map<String, String> toPut) {
if (toPut != null) {
ret.putAll(toPut);
}
} } | public class class_name {
public static void putAllIfNotNull(Map<String, String> ret, Map<String, String> toPut) {
if (toPut != null) {
ret.putAll(toPut); // depends on control dependency: [if], data = [(toPut]
}
} } |
public class class_name {
@Override
public void initialize(String name, final Scheduler scheduler) throws SchedulerException {
logger.info("Registering Quartz shutdown hook.");
Thread t =
new Thread("Quartz Shutdown-Hook") {
@Override
public void run() {
logger.inf... | public class class_name {
@Override
public void initialize(String name, final Scheduler scheduler) throws SchedulerException {
logger.info("Registering Quartz shutdown hook.");
Thread t =
new Thread("Quartz Shutdown-Hook") {
@Override
public void run() {
logger.inf... |
public class class_name {
public String extractModel(XLog log) {
XAttribute attribute = log.getAttributes().get(KEY_MODEL);
if (attribute == null) {
return null;
} else {
return ((XAttributeLiteral) attribute).getValue();
}
} } | public class class_name {
public String extractModel(XLog log) {
XAttribute attribute = log.getAttributes().get(KEY_MODEL);
if (attribute == null) {
return null; // depends on control dependency: [if], data = [none]
} else {
return ((XAttributeLiteral) attribute).getValue(); // depends on control dependenc... |
public class class_name {
public static Integer safeAdd(final Integer v1, final Integer v2) {
Integer total = v1;
if (v1 != null && v2 != null) {
total = v1 + v2;
} else if (v2 != null) {
total = v2;
}
return total;
} } | public class class_name {
public static Integer safeAdd(final Integer v1, final Integer v2) {
Integer total = v1;
if (v1 != null && v2 != null) {
total = v1 + v2;
// depends on control dependency: [if], data = [none]
} else if (v2 != null) {
total = v2;
// depends ... |
public class class_name {
protected int getNextAttributeIdentity(int identity) {
// Assume that attributes and namespace nodes immediately follow the element
while (DTM.NULL != (identity = getNextNodeIdentity(identity))) {
int type = _type(identity);
if (type == DTM.ATTRIBUTE_NODE) {
retur... | public class class_name {
protected int getNextAttributeIdentity(int identity) {
// Assume that attributes and namespace nodes immediately follow the element
while (DTM.NULL != (identity = getNextNodeIdentity(identity))) {
int type = _type(identity);
if (type == DTM.ATTRIBUTE_NODE) {
retur... |
public class class_name {
public void setInstanceFleets(java.util.Collection<InstanceFleet> instanceFleets) {
if (instanceFleets == null) {
this.instanceFleets = null;
return;
}
this.instanceFleets = new com.amazonaws.internal.SdkInternalList<InstanceFleet>(instanceFlee... | public class class_name {
public void setInstanceFleets(java.util.Collection<InstanceFleet> instanceFleets) {
if (instanceFleets == null) {
this.instanceFleets = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
@FFDCIgnore(value = { Throwable.class })
// Liberty Change for CXF End
protected static Object createProvider(String className, Bus bus) {
try {
Class<?> cls = ClassLoaderUtils.loadClass(className, ProviderFactory.class);
for (Constructor<?> c : cls.ge... | public class class_name {
@FFDCIgnore(value = { Throwable.class })
// Liberty Change for CXF End
protected static Object createProvider(String className, Bus bus) {
try {
Class<?> cls = ClassLoaderUtils.loadClass(className, ProviderFactory.class);
for (Constructor<?> c : cls.ge... |
public class class_name {
private static Optional<String[]> getTrimmedStrings(final YarnConfiguration configuration, final String key) {
final String[] result = configuration.getTrimmedStrings(key);
if (null == result || result.length == 0) {
return Optional.empty();
} else {
return Optional.of... | public class class_name {
private static Optional<String[]> getTrimmedStrings(final YarnConfiguration configuration, final String key) {
final String[] result = configuration.getTrimmedStrings(key);
if (null == result || result.length == 0) {
return Optional.empty(); // depends on control dependency: [if... |
public class class_name {
private void forIterator(Env env, Scope scope, Writer writer) {
Ctrl ctrl = scope.getCtrl();
Object outer = scope.get("for");
ctrl.setLocalAssignment();
ForIteratorStatus forIteratorStatus = new ForIteratorStatus(outer, forCtrl.getExpr().eval(scope), location);
ctrl.setWisdomAs... | public class class_name {
private void forIterator(Env env, Scope scope, Writer writer) {
Ctrl ctrl = scope.getCtrl();
Object outer = scope.get("for");
ctrl.setLocalAssignment();
ForIteratorStatus forIteratorStatus = new ForIteratorStatus(outer, forCtrl.getExpr().eval(scope), location);
ctrl.setWisdomAs... |
public class class_name {
public INDArray inferVector(@NonNull List<VocabWord> document, double learningRate, double minLearningRate,
int iterations) {
if (this.vocab == null || this.vocab.numWords() == 0)
reassignExistingModel();
SequenceLearningAlgorithm<VocabWord> l... | public class class_name {
public INDArray inferVector(@NonNull List<VocabWord> document, double learningRate, double minLearningRate,
int iterations) {
if (this.vocab == null || this.vocab.numWords() == 0)
reassignExistingModel();
SequenceLearningAlgorithm<VocabWord> l... |
public class class_name {
@Override
public String getIndexName() {
final NoteLink noteLink = noteLinkRenderer
.getGedObject();
if (!noteLink.isSet()) {
return "";
}
final Note note =
(Note) noteLink.find(noteLink.getToString());
if... | public class class_name {
@Override
public String getIndexName() {
final NoteLink noteLink = noteLinkRenderer
.getGedObject();
if (!noteLink.isSet()) {
return ""; // depends on control dependency: [if], data = [none]
}
final Note note =
(N... |
public class class_name {
public void confirm(final int title, final int message,
final DialogInterface.OnClickListener onClickListener) {
final AlertDialog.Builder builder = new AlertDialog.Builder(
getContext());
builder.setTitle(title).setIcon(android.R.drawab... | public class class_name {
public void confirm(final int title, final int message,
final DialogInterface.OnClickListener onClickListener) {
final AlertDialog.Builder builder = new AlertDialog.Builder(
getContext());
builder.setTitle(title).setIcon(android.R.drawab... |
public class class_name {
private void cleanWorkArea() {
File workareaDir = new File(serverOutputDir.getAbsolutePath(), "workarea");
if (workareaDir.exists()) {
cleanDir(workareaDir);
log(MessageFormat.format(messages.getString("info.element.cleaned"), "workarea"));
} el... | public class class_name {
private void cleanWorkArea() {
File workareaDir = new File(serverOutputDir.getAbsolutePath(), "workarea");
if (workareaDir.exists()) {
cleanDir(workareaDir); // depends on control dependency: [if], data = [none]
log(MessageFormat.format(messages.getStri... |
public class class_name {
public EClass getIfcBuildingStorey() {
if (ifcBuildingStoreyEClass == null) {
ifcBuildingStoreyEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(61);
}
return ifcBuildingStoreyEClass;
} } | public class class_name {
public EClass getIfcBuildingStorey() {
if (ifcBuildingStoreyEClass == null) {
ifcBuildingStoreyEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(61);
// depends on control dependency: [if], data = [none]
}
return ifcBu... |
public class class_name {
private boolean updateMinMaxValues() {
double min_x_value_new;
double max_x_value_new;
double max_y_value_new;
if (this.measures == null) {
// no values received yet -> reset axes
min_x_value_new = 0;
max_x_value_new = 1;
... | public class class_name {
private boolean updateMinMaxValues() {
double min_x_value_new;
double max_x_value_new;
double max_y_value_new;
if (this.measures == null) {
// no values received yet -> reset axes
min_x_value_new = 0; // depends on control dependency: ... |
public class class_name {
private boolean isRecursive(HttpRequestHeader header) {
try {
if (header.getHostPort() == inSocket.getLocalPort()) {
String targetDomain = header.getHostName();
if (API.API_DOMAIN.equals(targetDomain)) {
return true;... | public class class_name {
private boolean isRecursive(HttpRequestHeader header) {
try {
if (header.getHostPort() == inSocket.getLocalPort()) {
String targetDomain = header.getHostName();
if (API.API_DOMAIN.equals(targetDomain)) {
return true;... |
public class class_name {
public String toMinimizedJsonString() {
try {
final Map<String, Object> json = new LinkedHashMap<>();
json.put("alert", this.message.getAlert());
if (this.getMessage().getBadge()>0) {
json.put("badge", Integer.toString(this.getMessag... | public class class_name {
public String toMinimizedJsonString() {
try {
final Map<String, Object> json = new LinkedHashMap<>();
json.put("alert", this.message.getAlert()); // depends on control dependency: [try], data = [none]
if (this.getMessage().getBadge()>0) {
... |
public class class_name {
@Override
public CommerceNotificationTemplate remove(Serializable primaryKey)
throws NoSuchNotificationTemplateException {
Session session = null;
try {
session = openSession();
CommerceNotificationTemplate commerceNotificationTemplate = (CommerceNotificationTemplate)session.ge... | public class class_name {
@Override
public CommerceNotificationTemplate remove(Serializable primaryKey)
throws NoSuchNotificationTemplateException {
Session session = null;
try {
session = openSession();
CommerceNotificationTemplate commerceNotificationTemplate = (CommerceNotificationTemplate)session.ge... |
public class class_name {
private static Method getMethod(String methodName, Class<?> clazz, Class<?>... args) {
Method method;
try {
method = clazz.getMethod(methodName, args);
} catch (NoSuchMethodException e1) {
method = null;
}
return method;
} } | public class class_name {
private static Method getMethod(String methodName, Class<?> clazz, Class<?>... args) {
Method method;
try {
method = clazz.getMethod(methodName, args); // depends on control dependency: [try], data = [none]
} catch (NoSuchMethodException e1) {
m... |
public class class_name {
private Object convertStrToObjTree(String s) {
Object contentObj = null;
if (s != null) {
s = s.trim();
try {
if (s.startsWith("{")) {
contentObj = Config.getInstance().getMapper().readValue(s, new TypeReference<HashM... | public class class_name {
private Object convertStrToObjTree(String s) {
Object contentObj = null;
if (s != null) {
s = s.trim(); // depends on control dependency: [if], data = [none]
try {
if (s.startsWith("{")) {
contentObj = Config.getInsta... |
public class class_name {
public static Point2D_F64 transform( Affine2D_F64 se, Point2D_F64 orig, Point2D_F64 result ) {
if( result == null ) {
result = new Point2D_F64();
}
// copy the values so that no errors happen if orig and result are the same instance
double x = orig.x;
double y = orig.y;
resu... | public class class_name {
public static Point2D_F64 transform( Affine2D_F64 se, Point2D_F64 orig, Point2D_F64 result ) {
if( result == null ) {
result = new Point2D_F64(); // depends on control dependency: [if], data = [none]
}
// copy the values so that no errors happen if orig and result are the same inst... |
public class class_name {
public static Function<DeploymentUnit, Boolean> abortUnitActiveProcessInstances(final RuntimeDataService runtimeDataService, final DeploymentService deploymentService) {
return unit -> {
Collection<ProcessInstanceDesc> activeProcesses = runtimeDataService.getProcessInstanc... | public class class_name {
public static Function<DeploymentUnit, Boolean> abortUnitActiveProcessInstances(final RuntimeDataService runtimeDataService, final DeploymentService deploymentService) {
return unit -> {
Collection<ProcessInstanceDesc> activeProcesses = runtimeDataService.getProcessInstanc... |
public class class_name {
@Override
public Configuration getDefault() {
return new Configuration() {
@Override
public HttpClient httpClient() {
try {
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http", 80, PlainSocketFactory.getSocketFac... | public class class_name {
@Override
public Configuration getDefault() {
return new Configuration() {
@Override
public HttpClient httpClient() {
try {
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http", 80, PlainSocketFactory.getSocketFac... |
public class class_name {
@Nonnull
public static String encodeFromFile (@Nonnull final String filename) throws IOException
{
// Setup some useful variables
final File file = new File (filename);
// Open a stream
try (final Base64InputStream bis = new Base64InputStream (FileHelper.getBufferedInputS... | public class class_name {
@Nonnull
public static String encodeFromFile (@Nonnull final String filename) throws IOException
{
// Setup some useful variables
final File file = new File (filename);
// Open a stream
try (final Base64InputStream bis = new Base64InputStream (FileHelper.getBufferedInputS... |
public class class_name {
public void marshall(MailFromAttributes mailFromAttributes, ProtocolMarshaller protocolMarshaller) {
if (mailFromAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(MailFromAttributes mailFromAttributes, ProtocolMarshaller protocolMarshaller) {
if (mailFromAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public final void mStringLiteral() throws RecognitionException {
try {
int _type = StringLiteral;
int _channel = DEFAULT_TOKEN_CHANNEL;
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1347:5: ( '\"' ( EscapeSequence |~ ( '\\\\' | '\"' ) )* '\"' )
// src/ma... | public class class_name {
public final void mStringLiteral() throws RecognitionException {
try {
int _type = StringLiteral;
int _channel = DEFAULT_TOKEN_CHANNEL;
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1347:5: ( '\"' ( EscapeSequence |~ ( '\\\\' | '\"' ) )* '\"' )
// src/ma... |
public class class_name {
public SMethod findMethod(String methodName) {
for (SService sService : servicesByName.values()) {
SMethod method = sService.getSMethod(methodName);
if (method != null) {
return method;
}
}
return null;
} } | public class class_name {
public SMethod findMethod(String methodName) {
for (SService sService : servicesByName.values()) {
SMethod method = sService.getSMethod(methodName);
if (method != null) {
return method; // depends on control dependency: [if], data = [none]
}
}
return null;
} } |
public class class_name {
protected void init(DMatrixRMaj A ) {
UBV = A;
m = UBV.numRows;
n = UBV.numCols;
min = Math.min(m,n);
int max = Math.max(m,n);
if( b.length < max+1 ) {
b = new double[ max+1 ];
u = new double[ max+1 ];
}
... | public class class_name {
protected void init(DMatrixRMaj A ) {
UBV = A;
m = UBV.numRows;
n = UBV.numCols;
min = Math.min(m,n);
int max = Math.max(m,n);
if( b.length < max+1 ) {
b = new double[ max+1 ]; // depends on control dependency: [if], data = [none]... |
public class class_name {
@SuppressWarnings (
value = {"fallthrough"}
)
static
public Map<FieldName, ?> evaluate(Map<FieldName, ?> predictions, ModelEvaluationContext context){
ModelEvaluator<?> modelEvaluator = context.getModelEvaluator();
Model model = modelEvaluator.getModel();
Output output = model.ge... | public class class_name {
@SuppressWarnings (
value = {"fallthrough"}
)
static
public Map<FieldName, ?> evaluate(Map<FieldName, ?> predictions, ModelEvaluationContext context){
ModelEvaluator<?> modelEvaluator = context.getModelEvaluator();
Model model = modelEvaluator.getModel();
Output output = model.ge... |
public class class_name {
public synchronized void updateStorageInfo() {
Map<String, Long> tierCapacities = mBlockWorker.getStoreMeta().getCapacityBytesOnTiers();
long lastTierReservedBytes = 0;
for (int ordinal = 0; ordinal < mStorageTierAssoc.size(); ordinal++) {
String tierAlias = mStorageTierAsso... | public class class_name {
public synchronized void updateStorageInfo() {
Map<String, Long> tierCapacities = mBlockWorker.getStoreMeta().getCapacityBytesOnTiers();
long lastTierReservedBytes = 0;
for (int ordinal = 0; ordinal < mStorageTierAssoc.size(); ordinal++) {
String tierAlias = mStorageTierAsso... |
public class class_name {
private boolean startsWithCustomRoot(String path) {
for (Enumeration<String> it = customRoots.elements(); it != null
&& it.hasMoreElements();) {
if (path.startsWith(it.nextElement())) {
return true;
}
}
return false;
} } | public class class_name {
private boolean startsWithCustomRoot(String path) {
for (Enumeration<String> it = customRoots.elements(); it != null
&& it.hasMoreElements();) {
if (path.startsWith(it.nextElement())) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
}... |
public class class_name {
private boolean isCurrentStageCompleted() {
if (this.indexToCurrentExecutionStage >= this.stages.size()) {
return true;
}
final ExecutionGraphIterator it = new ExecutionGraphIterator(this, this.indexToCurrentExecutionStage, true,
true);
while (it.hasNext()) {
final Executio... | public class class_name {
private boolean isCurrentStageCompleted() {
if (this.indexToCurrentExecutionStage >= this.stages.size()) {
return true; // depends on control dependency: [if], data = [none]
}
final ExecutionGraphIterator it = new ExecutionGraphIterator(this, this.indexToCurrentExecutionStage, true... |
public class class_name {
public BreakIterator getBreakIterator(int type) {
if (type < BI_CHARACTER || type >= BI_LIMIT) {
throw new IllegalArgumentException("Illegal break iterator type");
}
if (breakIterators == null || breakIterators[type] == null) {
return guessBreak... | public class class_name {
public BreakIterator getBreakIterator(int type) {
if (type < BI_CHARACTER || type >= BI_LIMIT) {
throw new IllegalArgumentException("Illegal break iterator type");
}
if (breakIterators == null || breakIterators[type] == null) {
return guessBreak... |
public class class_name {
private void handleException(final Throwable e) {
if (e instanceof ServiceException) {
final ServiceException se = (ServiceException) e;
// Only log with warn level to let the application continue its workflow even in developer mode
LOGGER.log(SERV... | public class class_name {
private void handleException(final Throwable e) {
if (e instanceof ServiceException) {
final ServiceException se = (ServiceException) e;
// Only log with warn level to let the application continue its workflow even in developer mode
LOGGER.log(SERV... |
public class class_name {
@Override
public double getPercentageOfIdentity(boolean countGaps) {
double seqid = getNumIdenticals();
double length = getLength();
if (!countGaps) {
length = length - getAlignedSequence(1).getNumGapPositions()
- getAlignedSequence(2).getNumGapPositions();
}
return seqid /... | public class class_name {
@Override
public double getPercentageOfIdentity(boolean countGaps) {
double seqid = getNumIdenticals();
double length = getLength();
if (!countGaps) {
length = length - getAlignedSequence(1).getNumGapPositions()
- getAlignedSequence(2).getNumGapPositions(); // depends on contro... |
public class class_name {
@SuppressWarnings("WeakerAccess")
public static Object parse(final ChainedHttpConfig config, final FromServer fromServer) {
try {
final ObjectMapper mapper = (ObjectMapper) config.actualContext(fromServer.getContentType(), OBJECT_MAPPER_ID);
return mapper.r... | public class class_name {
@SuppressWarnings("WeakerAccess")
public static Object parse(final ChainedHttpConfig config, final FromServer fromServer) {
try {
final ObjectMapper mapper = (ObjectMapper) config.actualContext(fromServer.getContentType(), OBJECT_MAPPER_ID);
return mapper.r... |
public class class_name {
public void marshall(CreateVpcPeeringAuthorizationRequest createVpcPeeringAuthorizationRequest, ProtocolMarshaller protocolMarshaller) {
if (createVpcPeeringAuthorizationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}... | public class class_name {
public void marshall(CreateVpcPeeringAuthorizationRequest createVpcPeeringAuthorizationRequest, ProtocolMarshaller protocolMarshaller) {
if (createVpcPeeringAuthorizationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}... |
public class class_name {
public EClass getIfcFontVariant() {
if (ifcFontVariantEClass == null) {
ifcFontVariantEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(677);
}
return ifcFontVariantEClass;
} } | public class class_name {
public EClass getIfcFontVariant() {
if (ifcFontVariantEClass == null) {
ifcFontVariantEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(677);
// depends on control dependency: [if], data = [none]
}
return ifcFontVarian... |
public class class_name {
@SafeVarargs
public static <T> T coalesceNonEmpty( final T ... things )
{
if( things == null || things.length == 0 )
{
return null;
}
for( T thing : things )
{
if( thing instanceof CharSequence )
{
... | public class class_name {
@SafeVarargs
public static <T> T coalesceNonEmpty( final T ... things )
{
if( things == null || things.length == 0 )
{
return null; // depends on control dependency: [if], data = [none]
}
for( T thing : things )
{
if(... |
public class class_name {
public void setItemTouchable(boolean enabled) {
if (enabled != mItemTouchable) {
mItemTouchable = enabled;
Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "mItemTouchable(%s): item touch enabled: %b", getName(), enabled);
for (Widget view: getAllViews()) {
... | public class class_name {
public void setItemTouchable(boolean enabled) {
if (enabled != mItemTouchable) {
mItemTouchable = enabled; // depends on control dependency: [if], data = [none]
Log.d(Log.SUBSYSTEM.LAYOUT, TAG, "mItemTouchable(%s): item touch enabled: %b", getName(), enabled); ... |
public class class_name {
public void authenticateConnection (Invoker invoker, final AuthingConnection conn,
final ResultListener<AuthingConnection> onComplete)
{
final AuthRequest req = conn.getAuthRequest();
final AuthResponseData rdata = createResponseData... | public class class_name {
public void authenticateConnection (Invoker invoker, final AuthingConnection conn,
final ResultListener<AuthingConnection> onComplete)
{
final AuthRequest req = conn.getAuthRequest();
final AuthResponseData rdata = createResponseData... |
public class class_name {
public void put(String identifier, ActiveConnectionRecord record) {
synchronized (records) {
// Get set of active connection records, creating if necessary
Set<ActiveConnectionRecord> connections = records.get(identifier);
if (connections == null) ... | public class class_name {
public void put(String identifier, ActiveConnectionRecord record) {
synchronized (records) {
// Get set of active connection records, creating if necessary
Set<ActiveConnectionRecord> connections = records.get(identifier);
if (connections == null) ... |
public class class_name {
private Map<URI, Set<URI>> addMapFilePrefix(final Map<URI, Set<URI>> map) {
final Map<URI, Set<URI>> res = new HashMap<>();
for (final Map.Entry<URI, Set<URI>> e: map.entrySet()) {
final URI key = e.getKey();
final Set<URI> newSet = new HashSet<>(e.getV... | public class class_name {
private Map<URI, Set<URI>> addMapFilePrefix(final Map<URI, Set<URI>> map) {
final Map<URI, Set<URI>> res = new HashMap<>();
for (final Map.Entry<URI, Set<URI>> e: map.entrySet()) {
final URI key = e.getKey();
final Set<URI> newSet = new HashSet<>(e.getV... |
public class class_name {
private String createListFilter(FilterableAttribute attribute, Collection<String> values) {
/*
* This is more complicated than you'd think... Some attribute values caused incompatible changes to the JSON data model so are actually stored in a different object in the
... | public class class_name {
private String createListFilter(FilterableAttribute attribute, Collection<String> values) {
/*
* This is more complicated than you'd think... Some attribute values caused incompatible changes to the JSON data model so are actually stored in a different object in the
... |
public class class_name {
@Override
public List<Token> tokenize(String s) {
List<Token> result = new ArrayList<Token>();
result.add(new UndefinedToken(s));
for (PredefinedTokenDefinition predefinedTokenDefinition : _predefinedTokenDefitions) {
Set<Pattern> patterns = predefinedTokenDefinition.getTokenRegexP... | public class class_name {
@Override
public List<Token> tokenize(String s) {
List<Token> result = new ArrayList<Token>();
result.add(new UndefinedToken(s));
for (PredefinedTokenDefinition predefinedTokenDefinition : _predefinedTokenDefitions) {
Set<Pattern> patterns = predefinedTokenDefinition.getTokenRegexP... |
public class class_name {
public synchronized static String getSetupJavaScript(String cdnPrefix, String urlPrefix) {
if (requireConfigJavaScriptCdn == null) {
List<String> prefixes = new ArrayList<>();
prefixes.add(cdnPrefix);
prefixes.add(urlPrefix);
requireCon... | public class class_name {
public synchronized static String getSetupJavaScript(String cdnPrefix, String urlPrefix) {
if (requireConfigJavaScriptCdn == null) {
List<String> prefixes = new ArrayList<>();
prefixes.add(cdnPrefix); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void fireEvent(String locator, String eventName) {
WebElement element = getElement(locator);
JavascriptLibrary javascript = new JavascriptLibrary();
if (runningInIE()) {
String script = String.format("$('#%s').trigger('%s');", locator, eventName);
javascript.executeScri... | public class class_name {
public void fireEvent(String locator, String eventName) {
WebElement element = getElement(locator);
JavascriptLibrary javascript = new JavascriptLibrary();
if (runningInIE()) {
String script = String.format("$('#%s').trigger('%s');", locator, eventName);
javascript.executeScri... |
public class class_name {
private <T> Collection<Integer> transformSelect(SelectTransformation<T> select) {
StreamTransformation<T> input = select.getInput();
Collection<Integer> resultIds = transform(input);
// the recursive transform might have already transformed this
if (alreadyTransformed.containsKey(sel... | public class class_name {
private <T> Collection<Integer> transformSelect(SelectTransformation<T> select) {
StreamTransformation<T> input = select.getInput();
Collection<Integer> resultIds = transform(input);
// the recursive transform might have already transformed this
if (alreadyTransformed.containsKey(sel... |
public class class_name {
@Override
public void copyFrom(final CopyFrom obj) {
final GeoRSSModule geoRSSModule = (GeoRSSModule) obj;
geometry = geoRSSModule.getGeometry();
try {
geometry = (AbstractGeometry) geometry.clone();
} catch (final CloneNotSupportedException ex)... | public class class_name {
@Override
public void copyFrom(final CopyFrom obj) {
final GeoRSSModule geoRSSModule = (GeoRSSModule) obj;
geometry = geoRSSModule.getGeometry();
try {
geometry = (AbstractGeometry) geometry.clone(); // depends on control dependency: [try], data = [none... |
public class class_name {
public static <T> CompletableFuture<T> asyncFuture(CompletableFuture<T> future, Executor executor) {
CompletableFuture<T> newFuture = new AtomixFuture<>();
future.whenComplete((result, error) -> {
executor.execute(() -> {
if (error == null) {
newFuture.complete... | public class class_name {
public static <T> CompletableFuture<T> asyncFuture(CompletableFuture<T> future, Executor executor) {
CompletableFuture<T> newFuture = new AtomixFuture<>();
future.whenComplete((result, error) -> {
executor.execute(() -> {
if (error == null) {
newFuture.complete... |
public class class_name {
public DescribeEventAggregatesResult withEventAggregates(EventAggregate... eventAggregates) {
if (this.eventAggregates == null) {
setEventAggregates(new java.util.ArrayList<EventAggregate>(eventAggregates.length));
}
for (EventAggregate ele : eventAggregate... | public class class_name {
public DescribeEventAggregatesResult withEventAggregates(EventAggregate... eventAggregates) {
if (this.eventAggregates == null) {
setEventAggregates(new java.util.ArrayList<EventAggregate>(eventAggregates.length)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void buildUI() {
// Create the layout:
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
logicalOperatorRadio = new RadioGroupItem("logicalOperator");
logicalOperatorRadio.setValueMap(I18nProvider.getSearch().radioOperatorOr(), I18nProvider.getS... | public class class_name {
private void buildUI() {
// Create the layout:
VLayout layout = new VLayout();
layout.setWidth100();
layout.setHeight100();
logicalOperatorRadio = new RadioGroupItem("logicalOperator");
logicalOperatorRadio.setValueMap(I18nProvider.getSearch().radioOperatorOr(), I18nProvider.getS... |
public class class_name {
protected Object executeCQLQuery(String cqlQuery, boolean isCql3Enabled) {
Cassandra.Client conn = null;
Object pooledConnection = null;
pooledConnection = getConnection();
conn = (org.apache.cassandra.thrift.Cassandra.Client) getConnection(pooledConnection);
... | public class class_name {
protected Object executeCQLQuery(String cqlQuery, boolean isCql3Enabled) {
Cassandra.Client conn = null;
Object pooledConnection = null;
pooledConnection = getConnection();
conn = (org.apache.cassandra.thrift.Cassandra.Client) getConnection(pooledConnection);
... |
public class class_name {
public Map<String, Collection<String>> headers() {
Map<String, Collection<String>> headerMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
this.headers.forEach((key, headerTemplate) -> {
List<String> values = new ArrayList<>(headerTemplate.getValues());
/* add the expan... | public class class_name {
public Map<String, Collection<String>> headers() {
Map<String, Collection<String>> headerMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
this.headers.forEach((key, headerTemplate) -> {
List<String> values = new ArrayList<>(headerTemplate.getValues());
/* add the expan... |
public class class_name {
public long getKeyMemoryUsageBytes() {
long total = 0;
for (int i = 0; i < maps_.length; i++) {
if (maps_[i] != null) {
total += (long) (maps_[i].getActiveEntries()) * keySizeBytes_;
}
}
return total;
} } | public class class_name {
public long getKeyMemoryUsageBytes() {
long total = 0;
for (int i = 0; i < maps_.length; i++) {
if (maps_[i] != null) {
total += (long) (maps_[i].getActiveEntries()) * keySizeBytes_; // depends on control dependency: [if], data = [(maps_[i]]
}
}
return tota... |
public class class_name {
private static String resolveCompositeKey(String key, Properties props) {
String value = null;
// Look for the comma
int comma = key.indexOf(',');
if (comma > -1) {
// If we have a first part, try resolve it
if (comma > 0) {
... | public class class_name {
private static String resolveCompositeKey(String key, Properties props) {
String value = null;
// Look for the comma
int comma = key.indexOf(',');
if (comma > -1) {
// If we have a first part, try resolve it
if (comma > 0) {
... |
public class class_name {
public List getMulti(String attribute) {
NameOpValue nv = rslTree.getParam(attribute);
if (nv == null || nv.getOperator() != NameOpValue.EQ) return null;
List values = nv.getValues();
List list = new LinkedList();
Iterator iter = values.iterator();
Object obj;
while( iter.hasNext() ) {... | public class class_name {
public List getMulti(String attribute) {
NameOpValue nv = rslTree.getParam(attribute);
if (nv == null || nv.getOperator() != NameOpValue.EQ) return null;
List values = nv.getValues();
List list = new LinkedList();
Iterator iter = values.iterator();
Object obj;
while( iter.hasNext() ) {... |
public class class_name {
private double getMinStringSize(String[] tTokens, String[] uTokens) {
double tSize = 0, uSize = 0;
for (int i = 0; i < tTokens.length; i++) {
tSize += tTokens[i].length();
}
for (int i = 0; i < uTokens.length; i++) {
uSize += uTokens[i].length();
}
... | public class class_name {
private double getMinStringSize(String[] tTokens, String[] uTokens) {
double tSize = 0, uSize = 0;
for (int i = 0; i < tTokens.length; i++) {
tSize += tTokens[i].length();
// depends on control dependency: [for], data = [i]
}
for (int i = 0; i < uTokens.length; i++)... |
public class class_name {
protected void processSipContextParameters(JBossConvergedSipMetaData metaData) {
if (metaData.getSipContextParams() != null) {
for (ParamValueMetaData param : metaData.getSipContextParams()) {
context.addParameter(param.getParamName(), param.getParamValue()... | public class class_name {
protected void processSipContextParameters(JBossConvergedSipMetaData metaData) {
if (metaData.getSipContextParams() != null) {
for (ParamValueMetaData param : metaData.getSipContextParams()) {
context.addParameter(param.getParamName(), param.getParamValue()... |
public class class_name {
public static String chopNewline(String str) {
int lastIdx = str.length() - 1;
if (lastIdx <= 0) {
return EMPTY;
}
char last = str.charAt(lastIdx);
if (last == '\n') {
if (str.charAt(lastIdx - 1) == '\r') {
lastIdx--;
}... | public class class_name {
public static String chopNewline(String str) {
int lastIdx = str.length() - 1;
if (lastIdx <= 0) {
return EMPTY; // depends on control dependency: [if], data = [none]
}
char last = str.charAt(lastIdx);
if (last == '\n') {
if (str.charAt(lastId... |
public class class_name {
private void addXMLAttributes(Map<String, String> attrMap) {
if (m_children != null) {
for (UNode childNode : m_children) {
// A child node must not contain a tag name to be considered an attribute.
if (childNode.m_type == NodeType.VALUE... | public class class_name {
private void addXMLAttributes(Map<String, String> attrMap) {
if (m_children != null) {
for (UNode childNode : m_children) {
// A child node must not contain a tag name to be considered an attribute.
if (childNode.m_type == NodeType.VALUE... |
public class class_name {
protected void invokeMethod(Method method, D bean, R value)
{
assert bean != null;
try
{
method.invoke(domain.cast(bean), value);
}
catch (ClassCastException e)
{
String message = "Failed to set property: " + property;
if (!domain.isAssignableFrom(bean.getClass()))
{
... | public class class_name {
protected void invokeMethod(Method method, D bean, R value)
{
assert bean != null;
try
{
method.invoke(domain.cast(bean), value); // depends on control dependency: [try], data = [none]
}
catch (ClassCastException e)
{
String message = "Failed to set property: " + property;
... |
public class class_name {
public Bundle saveInstanceState(Bundle savedInstanceState) {
if (savedInstanceState != null) {
if (!mDrawerBuilder.mAppended) {
savedInstanceState = mDrawerBuilder.mAdapter.saveInstanceState(savedInstanceState, BUNDLE_SELECTION);
savedInstan... | public class class_name {
public Bundle saveInstanceState(Bundle savedInstanceState) {
if (savedInstanceState != null) {
if (!mDrawerBuilder.mAppended) {
savedInstanceState = mDrawerBuilder.mAdapter.saveInstanceState(savedInstanceState, BUNDLE_SELECTION); // depends on control depen... |
public class class_name {
public static AceObjectFlags parseValue(final int value) {
final AceObjectFlags res = new AceObjectFlags();
res.others = value;
for (AceObjectFlags.Flag type : AceObjectFlags.Flag.values()) {
if ((value & type.getValue()) == type.getValue()) {
... | public class class_name {
public static AceObjectFlags parseValue(final int value) {
final AceObjectFlags res = new AceObjectFlags();
res.others = value;
for (AceObjectFlags.Flag type : AceObjectFlags.Flag.values()) {
if ((value & type.getValue()) == type.getValue()) {
... |
public class class_name {
public void endInterval(int lastIndex) {
if (isOpen) {
currentDetail.setLast(lastIndex);
pathDetails.add(currentDetail);
}
isOpen = false;
} } | public class class_name {
public void endInterval(int lastIndex) {
if (isOpen) {
currentDetail.setLast(lastIndex); // depends on control dependency: [if], data = [none]
pathDetails.add(currentDetail); // depends on control dependency: [if], data = [none]
}
isOpen = false... |
public class class_name {
public void setEndTimes(java.util.Collection<DateTimeRange> endTimes) {
if (endTimes == null) {
this.endTimes = null;
return;
}
this.endTimes = new java.util.ArrayList<DateTimeRange>(endTimes);
} } | public class class_name {
public void setEndTimes(java.util.Collection<DateTimeRange> endTimes) {
if (endTimes == null) {
this.endTimes = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.end... |
public class class_name {
public ElementCollection<EmbeddableAttributes<T>> getOrCreateElementCollection()
{
List<Node> nodeList = childNode.get("element-collection");
if (nodeList != null && nodeList.size() > 0)
{
return new ElementCollectionImpl<EmbeddableAttributes<T>>(this, "element-... | public class class_name {
public ElementCollection<EmbeddableAttributes<T>> getOrCreateElementCollection()
{
List<Node> nodeList = childNode.get("element-collection");
if (nodeList != null && nodeList.size() > 0)
{
return new ElementCollectionImpl<EmbeddableAttributes<T>>(this, "element-... |
public class class_name {
public static float bound( float ang ) {
ang %= GrlConstants.F_PI2;
if( ang > GrlConstants.F_PI ) {
return ang - GrlConstants.F_PI2;
} else if( ang < -GrlConstants.F_PI ) {
return ang + GrlConstants.F_PI2;
}
return ang;
} } | public class class_name {
public static float bound( float ang ) {
ang %= GrlConstants.F_PI2;
if( ang > GrlConstants.F_PI ) {
return ang - GrlConstants.F_PI2; // depends on control dependency: [if], data = [none]
} else if( ang < -GrlConstants.F_PI ) {
return ang + GrlConstants.F_PI2; // depends on contro... |
public class class_name {
public boolean printData(PrintWriter out, int iHtmlAttributes)
{
boolean bFieldsFound = false;
String strXmlFilename = this.getProperty(DBParams.XML); // Html page
if (strXmlFilename == null)
strXmlFilename = this.getProperty(DBParams.TEM... | public class class_name {
public boolean printData(PrintWriter out, int iHtmlAttributes)
{
boolean bFieldsFound = false;
String strXmlFilename = this.getProperty(DBParams.XML); // Html page
if (strXmlFilename == null)
strXmlFilename = this.getProperty(DBParams.TEM... |
public class class_name {
@Override
public String getColumnName(int column) {
try {
java.util.List<String> signature = results.getSignature();
if (signature != null && column < signature.size()) {
return results.getSignature().get(column);
} else {
return "";
}
} catch (Exception e) {
e.... | public class class_name {
@Override
public String getColumnName(int column) {
try {
java.util.List<String> signature = results.getSignature();
if (signature != null && column < signature.size()) {
return results.getSignature().get(column); // depends on control dependency: [if], data = [none]
} else... |
public class class_name {
protected Map<String, String> getElementAttributes() {
// Preserve order of attributes
Map<String, String> attrs = new HashMap<>();
if (this.getParticipantidentity() != null) {
attrs.put("participantidentity", this.getParticipantidentity());
}
... | public class class_name {
protected Map<String, String> getElementAttributes() {
// Preserve order of attributes
Map<String, String> attrs = new HashMap<>();
if (this.getParticipantidentity() != null) {
attrs.put("participantidentity", this.getParticipantidentity()); // depends on ... |
public class class_name {
boolean undoChanges() {
final State state = stateUpdater.getAndSet(this, State.ROLLBACK_ONLY);
if (state == State.COMPLETED || state == State.ROLLBACK_ONLY) {
// Was actually completed already
return false;
}
PatchingTaskContext.Mode cur... | public class class_name {
boolean undoChanges() {
final State state = stateUpdater.getAndSet(this, State.ROLLBACK_ONLY);
if (state == State.COMPLETED || state == State.ROLLBACK_ONLY) {
// Was actually completed already
return false; // depends on control dependency: [if], data =... |
public class class_name {
@Override
public void setStatusCode(int code) {
StatusCodes val = null;
try {
val = StatusCodes.getByOrdinal(code);
} catch (IndexOutOfBoundsException e) {
// no FFDC required
// nothing to do, just make the undefined value below... | public class class_name {
@Override
public void setStatusCode(int code) {
StatusCodes val = null;
try {
val = StatusCodes.getByOrdinal(code); // depends on control dependency: [try], data = [none]
} catch (IndexOutOfBoundsException e) {
// no FFDC required
... |
public class class_name {
public void addModifier(String modifier) {
if (!Strings.isEmpty(modifier)) {
this.sarlBehavior.getModifiers().add(modifier);
}
} } | public class class_name {
public void addModifier(String modifier) {
if (!Strings.isEmpty(modifier)) {
this.sarlBehavior.getModifiers().add(modifier); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public EventQueueDefinition getQueueForClass(Class<? extends Event> clazz) {
for (EventQueueDefinition d : definitions) {
if (d.getEventType() == clazz) {
return d;
}
}
return null;
} } | public class class_name {
public EventQueueDefinition getQueueForClass(Class<? extends Event> clazz) {
for (EventQueueDefinition d : definitions) {
if (d.getEventType() == clazz) {
return d; // depends on control dependency: [if], data = [none]
}
}
return null;
} } |
public class class_name {
public boolean recordExpose() {
if (!currentInfo.isExpose()) {
currentInfo.setExpose(true);
populated = true;
return true;
} else {
return false;
}
} } | public class class_name {
public boolean recordExpose() {
if (!currentInfo.isExpose()) {
currentInfo.setExpose(true); // depends on control dependency: [if], data = [none]
populated = true; // depends on control dependency: [if], data = [none]
return true; // depends on control dependency: [if], ... |
public class class_name {
@Override
public String stem(String token) {
if (token != null && token.length() > 3 && token.endsWith("s")) {
return token.substring(0, token.length() - 1);
}
return token;
} } | public class class_name {
@Override
public String stem(String token) {
if (token != null && token.length() > 3 && token.endsWith("s")) {
return token.substring(0, token.length() - 1); // depends on control dependency: [if], data = [none]
}
return token;
} } |
public class class_name {
@Override
public void setDefinition(PluginDefinition definition) {
super.setDefinition(definition);
if (definition != null) {
container.addClass("cwf-plugin-" + definition.getId());
shell.registerPlugin(this);
}
} } | public class class_name {
@Override
public void setDefinition(PluginDefinition definition) {
super.setDefinition(definition);
if (definition != null) {
container.addClass("cwf-plugin-" + definition.getId()); // depends on control dependency: [if], data = [none]
shell.regist... |
public class class_name {
public void marshall(Logging logging, ProtocolMarshaller protocolMarshaller) {
if (logging == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(logging.getClusterLogging(), CL... | public class class_name {
public void marshall(Logging logging, ProtocolMarshaller protocolMarshaller) {
if (logging == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(logging.getClusterLogging(), CL... |
public class class_name {
@Override
public synchronized void start() {
if (monitorActive) {
return;
}
lastTime.set(milliSecondFromNano());
long localCheckInterval = checkInterval.get();
if (localCheckInterval > 0) {
monitorActive = true;
m... | public class class_name {
@Override
public synchronized void start() {
if (monitorActive) {
return; // depends on control dependency: [if], data = [none]
}
lastTime.set(milliSecondFromNano());
long localCheckInterval = checkInterval.get();
if (localCheckInterval ... |
public class class_name {
private boolean addHisoricalRecord(HistoricalRecord historicalRecord) {
final boolean added = mHistoricalRecords.add(historicalRecord);
if (added) {
mHistoricalRecordsChanged = true;
pruneExcessiveHistoricalRecordsIfNeeded();
persistHistoric... | public class class_name {
private boolean addHisoricalRecord(HistoricalRecord historicalRecord) {
final boolean added = mHistoricalRecords.add(historicalRecord);
if (added) {
mHistoricalRecordsChanged = true; // depends on control dependency: [if], data = [none]
pruneExcessiveHi... |
public class class_name {
private static String extractArguments( final ProfileOption[] profiles )
{
final StringBuilder argument = new StringBuilder();
if( profiles != null && profiles.length > 0 )
{
for( ProfileOption profile : profiles )
{
if( prof... | public class class_name {
private static String extractArguments( final ProfileOption[] profiles )
{
final StringBuilder argument = new StringBuilder();
if( profiles != null && profiles.length > 0 )
{
for( ProfileOption profile : profiles )
{
if( prof... |
public class class_name {
private boolean isTryRecoverSucceeded(ConcurrentMap<Integer, Long> brokenSequences) {
int numberOfBrokenSequences = brokenSequences.size();
InvokerWrapper invokerWrapper = context.getInvokerWrapper();
SubscriberContext subscriberContext = context.getSubscriberContext()... | public class class_name {
private boolean isTryRecoverSucceeded(ConcurrentMap<Integer, Long> brokenSequences) {
int numberOfBrokenSequences = brokenSequences.size();
InvokerWrapper invokerWrapper = context.getInvokerWrapper();
SubscriberContext subscriberContext = context.getSubscriberContext()... |
public class class_name {
public static void fire(final HasRefreshedHandlers source) {
if (TYPE != null) {
RefreshedEvent event = new RefreshedEvent();
source.fireEvent(event);
}
} } | public class class_name {
public static void fire(final HasRefreshedHandlers source) {
if (TYPE != null) {
RefreshedEvent event = new RefreshedEvent();
source.fireEvent(event); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public EClass getIfcConstraintClassificationRelationship() {
if (ifcConstraintClassificationRelationshipEClass == null) {
ifcConstraintClassificationRelationshipEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(109);
}
... | public class class_name {
public EClass getIfcConstraintClassificationRelationship() {
if (ifcConstraintClassificationRelationshipEClass == null) {
ifcConstraintClassificationRelationshipEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(109);
// dep... |
public class class_name {
private void boundaryAreaInteriorPoint_(int cluster, int id_a, int id_b) {
if (m_matrix[MatrixPredicate.BoundaryInterior] == 0)
return;
int clusterParentage = m_topo_graph.getClusterParentage(cluster);
if ((clusterParentage & id_a) != 0 && (clusterParentage & id_b) != 0) {
m_mat... | public class class_name {
private void boundaryAreaInteriorPoint_(int cluster, int id_a, int id_b) {
if (m_matrix[MatrixPredicate.BoundaryInterior] == 0)
return;
int clusterParentage = m_topo_graph.getClusterParentage(cluster);
if ((clusterParentage & id_a) != 0 && (clusterParentage & id_b) != 0) {
m_mat... |
public class class_name {
private static void addUniqueIdAndGroupsForUser(String securityName,
Hashtable<String, Object> credData, String appRealm) // 675924
throws WSSecurityException, RemoteException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEn... | public class class_name {
private static void addUniqueIdAndGroupsForUser(String securityName,
Hashtable<String, Object> credData, String appRealm) // 675924
throws WSSecurityException, RemoteException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEn... |
public class class_name {
public void redirectToApplicationPath(String path) {
if ("".equals(applicationPath)) {
// application path is the root
redirect(path);
} else {
redirect(applicationPath + StringUtils.addStart(path, "/"));
}
} } | public class class_name {
public void redirectToApplicationPath(String path) {
if ("".equals(applicationPath)) {
// application path is the root
redirect(path); // depends on control dependency: [if], data = [none]
} else {
redirect(applicationPath + StringUtils.addS... |
public class class_name {
public static String loadFileFromFTPServer(String hostName, Integer port,
String userName, String password, String filePath, int numberOfLines) {
String result = null;
FTPClient ftpClient = new FTPClient();
InputStream inputStream = null;
String er... | public class class_name {
public static String loadFileFromFTPServer(String hostName, Integer port,
String userName, String password, String filePath, int numberOfLines) {
String result = null;
FTPClient ftpClient = new FTPClient();
InputStream inputStream = null;
String er... |
public class class_name {
public void marshall(DescribeFileSystemsRequest describeFileSystemsRequest, ProtocolMarshaller protocolMarshaller) {
if (describeFileSystemsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... | public class class_name {
public void marshall(DescribeFileSystemsRequest describeFileSystemsRequest, ProtocolMarshaller protocolMarshaller) {
if (describeFileSystemsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... |
public class class_name {
@VisibleForTesting
static String makeTargetStringForDirectAddress(SocketAddress address) {
try {
return new URI(DIRECT_ADDRESS_SCHEME, "", "/" + address, null).toString();
} catch (URISyntaxException e) {
// It should not happen.
throw new RuntimeException(e);
... | public class class_name {
@VisibleForTesting
static String makeTargetStringForDirectAddress(SocketAddress address) {
try {
return new URI(DIRECT_ADDRESS_SCHEME, "", "/" + address, null).toString(); // depends on control dependency: [try], data = [none]
} catch (URISyntaxException e) {
// It shoul... |
public class class_name {
public void apply(Mutation mutation, boolean writeCommitLog, boolean updateIndexes)
{
try (OpOrder.Group opGroup = writeOrder.start())
{
// write the mutation to the commitlog and memtables
ReplayPosition replayPosition = null;
if (write... | public class class_name {
public void apply(Mutation mutation, boolean writeCommitLog, boolean updateIndexes)
{
try (OpOrder.Group opGroup = writeOrder.start())
{
// write the mutation to the commitlog and memtables
ReplayPosition replayPosition = null;
if (write... |
public class class_name {
public static IAuditManager getInstance() {
IAuditManager result = auditManager;
if(result == null) {
synchronized (AuditManager.class) {
result = auditManager;
if(result == null) {
Context.init();
... | public class class_name {
public static IAuditManager getInstance() {
IAuditManager result = auditManager;
if(result == null) {
synchronized (AuditManager.class) { // depends on control dependency: [if], data = [none]
result = auditManager;
if(result == null)... |
public class class_name {
protected void incrementRequestCount(ResourceType type, int delta) {
Context c = getContext(type);
int newRequestCount = c.requestCount + delta;
c.requestCount = newRequestCount;
if (newRequestCount > c.maxConcurrentRequestCount) {
c.maxConcurrentRequestCount = newReques... | public class class_name {
protected void incrementRequestCount(ResourceType type, int delta) {
Context c = getContext(type);
int newRequestCount = c.requestCount + delta;
c.requestCount = newRequestCount;
if (newRequestCount > c.maxConcurrentRequestCount) {
c.maxConcurrentRequestCount = newReques... |
public class class_name {
public List<JAXBElement<? extends AbstractCurveType>> get_Curve() {
if (_Curve == null) {
_Curve = new ArrayList<JAXBElement<? extends AbstractCurveType>>();
}
return this._Curve;
} } | public class class_name {
public List<JAXBElement<? extends AbstractCurveType>> get_Curve() {
if (_Curve == null) {
_Curve = new ArrayList<JAXBElement<? extends AbstractCurveType>>(); // depends on control dependency: [if], data = [none]
}
return this._Curve;
} } |
public class class_name {
protected final List<ExtensionFunction> initExtensions(final WebSocketHttpExchange exchange) {
String extHeader = exchange.getResponseHeaders().get(Headers.SEC_WEB_SOCKET_EXTENSIONS_STRING) != null ?
exchange.getResponseHeaders().get(Headers.SEC_WEB_SOCKET_EXTENSIONS_S... | public class class_name {
protected final List<ExtensionFunction> initExtensions(final WebSocketHttpExchange exchange) {
String extHeader = exchange.getResponseHeaders().get(Headers.SEC_WEB_SOCKET_EXTENSIONS_STRING) != null ?
exchange.getResponseHeaders().get(Headers.SEC_WEB_SOCKET_EXTENSIONS_S... |
public class class_name {
public void marshall(ContextDataType contextDataType, ProtocolMarshaller protocolMarshaller) {
if (contextDataType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(context... | public class class_name {
public void marshall(ContextDataType contextDataType, ProtocolMarshaller protocolMarshaller) {
if (contextDataType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(context... |
public class class_name {
public static Boolean castBoolean(Object o) {
if (o == null) {
return null;
}
if (o instanceof Boolean) {
return (Boolean) o;
} else if (o instanceof String) {
try {
return Boolean.parseBoolean((String) o);
... | public class class_name {
public static Boolean castBoolean(Object o) {
if (o == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (o instanceof Boolean) {
return (Boolean) o; // depends on control dependency: [if], data = [none]
} e... |
public class class_name {
public static Bitmap cropBitmap(Bitmap sourceBitmap, Rect bounds) {
if ((bounds == null) || bounds.isEmpty()) {
return null;
}
return cropBitmap(sourceBitmap, bounds.left, bounds.top, bounds.width(), bounds.height());
} } | public class class_name {
public static Bitmap cropBitmap(Bitmap sourceBitmap, Rect bounds) {
if ((bounds == null) || bounds.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
return cropBitmap(sourceBitmap, bounds.left, bounds.top, bounds.width(), b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.