code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public void configure(Configuration parameters) {
super.configure(parameters);
// the if() clauses are to prevent the configure() method from
// overwriting the values set by the setters
if (Arrays.equals(delimiter, new byte[] {'\n'})) {
String delimString = parameters... | public class class_name {
@Override
public void configure(Configuration parameters) {
super.configure(parameters);
// the if() clauses are to prevent the configure() method from
// overwriting the values set by the setters
if (Arrays.equals(delimiter, new byte[] {'\n'})) {
String delimString = parameters... |
public class class_name {
@SuppressWarnings("unchecked")
protected void initExportObject() {
try {
if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
// create a new list
setGroups(new ArrayList<CmsGroup>());
... | public class class_name {
@SuppressWarnings("unchecked")
protected void initExportObject() {
try {
if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
// create a new list
setGroups(new ArrayList<CmsGroup>()); // d... |
public class class_name {
@SuppressWarnings("unchecked")
public HashMap<String, HashMap<String, String>> getMetaData() {
HashMap<String, HashMap<String, String>> result = new HashMap<String, HashMap<String, String>>();
for (MetaRecord mr : meta) {
result.put((String) mr.get(FieldName.ME... | public class class_name {
@SuppressWarnings("unchecked")
public HashMap<String, HashMap<String, String>> getMetaData() {
HashMap<String, HashMap<String, String>> result = new HashMap<String, HashMap<String, String>>();
for (MetaRecord mr : meta) {
result.put((String) mr.get(FieldName.ME... |
public class class_name {
public Observable<ServiceResponse<CertificateWithNonceDescriptionInner>> generateVerificationCodeWithServiceResponseAsync(String resourceGroupName, String resourceName, String certificateName, String ifMatch) {
if (this.client.subscriptionId() == null) {
throw new IllegalA... | public class class_name {
public Observable<ServiceResponse<CertificateWithNonceDescriptionInner>> generateVerificationCodeWithServiceResponseAsync(String resourceGroupName, String resourceName, String certificateName, String ifMatch) {
if (this.client.subscriptionId() == null) {
throw new IllegalA... |
public class class_name {
@Override
public long getDateHeader(String hdr) {
try {
String value = this.request.getHeader(hdr);
if (null == value) {
return -1L;
}
Date rc = connection.getDateFormatter().parseTime(value);
if (null != ... | public class class_name {
@Override
public long getDateHeader(String hdr) {
try {
String value = this.request.getHeader(hdr);
if (null == value) {
return -1L; // depends on control dependency: [if], data = [none]
}
Date rc = connection.getDate... |
public class class_name {
public void drawLine(Object parent, String name, LineString line, ShapeStyle style) {
if (isAttached()) {
Element element = helper.createOrUpdateElement(parent, name, "shape", style);
if (line != null) {
Dom.setElementAttribute(element, "path", VmlPathDecoder.decode(line));
Do... | public class class_name {
public void drawLine(Object parent, String name, LineString line, ShapeStyle style) {
if (isAttached()) {
Element element = helper.createOrUpdateElement(parent, name, "shape", style);
if (line != null) {
Dom.setElementAttribute(element, "path", VmlPathDecoder.decode(line)); // dep... |
public class class_name {
public void marshall(UpdateBusinessReportScheduleRequest updateBusinessReportScheduleRequest, ProtocolMarshaller protocolMarshaller) {
if (updateBusinessReportScheduleRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(UpdateBusinessReportScheduleRequest updateBusinessReportScheduleRequest, ProtocolMarshaller protocolMarshaller) {
if (updateBusinessReportScheduleRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
@Override
public <T> List<Binding<T>> bindings(Key<T> key)
{
BindingSet<T> set = (BindingSet) _bindingSetMap.get(key.rawClass());
if (set != null) {
return set.bindings(key);
}
else {
return Collections.EMPTY_LIST;
}
} } | public class class_name {
@Override
public <T> List<Binding<T>> bindings(Key<T> key)
{
BindingSet<T> set = (BindingSet) _bindingSetMap.get(key.rawClass());
if (set != null) {
return set.bindings(key); // depends on control dependency: [if], data = [none]
}
else {
return Collections.EMP... |
public class class_name {
private static boolean isValidJavaIdentifier(final String identifier) {
Contracts.assertNotNull(identifier, "identifier param cannot be null");
if (identifier.length() == 0 || !isJavaIdentifierStart(identifier.charAt(0))) {
return false;
}
for (int i = 1; i < identifie... | public class class_name {
private static boolean isValidJavaIdentifier(final String identifier) {
Contracts.assertNotNull(identifier, "identifier param cannot be null");
if (identifier.length() == 0 || !isJavaIdentifierStart(identifier.charAt(0))) {
return false; // depends on control dependency: [if], ... |
public class class_name {
public void handleInitiateResponseMessage(InitiateResponseMessage message)
{
final VoltTrace.TraceEventBatch traceLog = VoltTrace.log(VoltTrace.Category.MPI);
if (traceLog != null) {
traceLog.add(() -> VoltTrace.endAsync("initmp", message.getTxnId()));
... | public class class_name {
public void handleInitiateResponseMessage(InitiateResponseMessage message)
{
final VoltTrace.TraceEventBatch traceLog = VoltTrace.log(VoltTrace.Category.MPI);
if (traceLog != null) {
traceLog.add(() -> VoltTrace.endAsync("initmp", message.getTxnId())); // depen... |
public class class_name {
public static UIComponent getCompositeComponentBasedOnLocation(final FacesContext facesContext,
final Location location, int ccLevel)
{
//1 Use getCurrentComponent and getCurrentCompositeComponent to look on the component stack
UIComponent currentCompositeComp... | public class class_name {
public static UIComponent getCompositeComponentBasedOnLocation(final FacesContext facesContext,
final Location location, int ccLevel)
{
//1 Use getCurrentComponent and getCurrentCompositeComponent to look on the component stack
UIComponent currentCompositeComp... |
public class class_name {
protected long showRunning(String keyword) {
if (logger.isDebugEnabled()) {
logger.debug("#flow #async ...Running asynchronous call as {}", keyword);
}
return System.currentTimeMillis();
} } | public class class_name {
protected long showRunning(String keyword) {
if (logger.isDebugEnabled()) {
logger.debug("#flow #async ...Running asynchronous call as {}", keyword); // depends on control dependency: [if], data = [none]
}
return System.currentTimeMillis();
} } |
public class class_name {
public FeatureCollectionConfig readConfigFromFile(String filename) {
org.jdom2.Document doc;
try {
SAXBuilder builder = new SAXBuilder();
doc = builder.build(filename);
} catch (Exception e) {
System.out.printf("Error parsing featureCollection %s err = %s", file... | public class class_name {
public FeatureCollectionConfig readConfigFromFile(String filename) {
org.jdom2.Document doc;
try {
SAXBuilder builder = new SAXBuilder();
doc = builder.build(filename); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
System.out.pri... |
public class class_name {
@Override
public void setAsText(String text) {
if (BeanUtils.isNull(text)) {
setValue(null);
return;
}
setValue(getAsDocument(text).getDocumentElement());
} } | public class class_name {
@Override
public void setAsText(String text) {
if (BeanUtils.isNull(text)) {
setValue(null); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
setValue(getAsDocument(text).g... |
public class class_name {
public static String readResource(Class<?> clazz, String path)
{
File targetFile = resolve(clazz, path);
if (targetFile == null)
{
return null;
}
String result;
try
{
result = FileUtils.readFileToString(targ... | public class class_name {
public static String readResource(Class<?> clazz, String path)
{
File targetFile = resolve(clazz, path);
if (targetFile == null)
{
return null; // depends on control dependency: [if], data = [none]
}
String result;
try
... |
public class class_name {
private void removeDataNode(DiffEntry change) {
if (checkFilePath(change.getOldPath(), NODE_FILE_DEPTH)) {
Path nodeFilePath = new Path(this.repositoryDir, change.getOldPath());
Config config = getNodeConfigWithOverrides(ConfigFactory.empty(), nodeFilePath);
String nodeI... | public class class_name {
private void removeDataNode(DiffEntry change) {
if (checkFilePath(change.getOldPath(), NODE_FILE_DEPTH)) {
Path nodeFilePath = new Path(this.repositoryDir, change.getOldPath());
Config config = getNodeConfigWithOverrides(ConfigFactory.empty(), nodeFilePath);
String nodeI... |
public class class_name {
public static Shell createConsoleShell(String prompt, String appName, Object mainHandler,
BufferedReader in, PrintStream out, PrintStream err,
ConsoleIO.PromptListener promptListener) {
ConsoleIO io ... | public class class_name {
public static Shell createConsoleShell(String prompt, String appName, Object mainHandler,
BufferedReader in, PrintStream out, PrintStream err,
ConsoleIO.PromptListener promptListener) {
ConsoleIO io ... |
public class class_name {
public String get(String key)
{
String urlKey = urlEncode(key);
ApiResponseReader<String> reader = new ApiResponseReader<String>()
{
public String parse(InputStream in) throws Exception
{
InputStreamReader isr = new InputStreamReader(in, OsmConnection.CHARSET);
BufferedRe... | public class class_name {
public String get(String key)
{
String urlKey = urlEncode(key);
ApiResponseReader<String> reader = new ApiResponseReader<String>()
{
public String parse(InputStream in) throws Exception
{
InputStreamReader isr = new InputStreamReader(in, OsmConnection.CHARSET);
BufferedRe... |
public class class_name {
public void marshall(UpdateServerEngineAttributesRequest updateServerEngineAttributesRequest, ProtocolMarshaller protocolMarshaller) {
if (updateServerEngineAttributesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(UpdateServerEngineAttributesRequest updateServerEngineAttributesRequest, ProtocolMarshaller protocolMarshaller) {
if (updateServerEngineAttributesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
protected List<Principal> createRolePrincipals(UnixUser username) {
ArrayList<Principal> principals = new ArrayList<Principal>();
if (null != supplementalRoles) {
for (String supplementalRole : supplementalRoles) {
Principal rolePrincipal = createRo... | public class class_name {
protected List<Principal> createRolePrincipals(UnixUser username) {
ArrayList<Principal> principals = new ArrayList<Principal>();
if (null != supplementalRoles) {
for (String supplementalRole : supplementalRoles) {
Principal rolePrincipal = createRo... |
public class class_name {
public Set<Explanation<OWLAxiom>> getExplanations(OWLAxiom entailment, int limit) throws ExplanationException {
final Set<OWLEntity> signature = new HashSet<OWLEntity>();
for(OWLAxiom ax : inputAxioms) {
signature.addAll(ax.getSignature());
}
final ... | public class class_name {
public Set<Explanation<OWLAxiom>> getExplanations(OWLAxiom entailment, int limit) throws ExplanationException {
final Set<OWLEntity> signature = new HashSet<OWLEntity>();
for(OWLAxiom ax : inputAxioms) {
signature.addAll(ax.getSignature());
}
final ... |
public class class_name {
@Override
public EClass getIfcMappedItem() {
if (ifcMappedItemEClass == null) {
ifcMappedItemEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(355);
}
return ifcMappedItemEClass;
} } | public class class_name {
@Override
public EClass getIfcMappedItem() {
if (ifcMappedItemEClass == null) {
ifcMappedItemEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(355);
// depends on control dependency: [if], data = [none]
}
return ifcMapped... |
public class class_name {
private void freeCompactedSegments() {
SegmentManager segManager = _dataArray.getSegmentManager();
if(segManager == null) return;
while(!_freeQueue.isEmpty()) {
Segment seg = _freeQueue.remove();
try {
segManager.freeSeg... | public class class_name {
private void freeCompactedSegments() {
SegmentManager segManager = _dataArray.getSegmentManager();
if(segManager == null) return;
while(!_freeQueue.isEmpty()) {
Segment seg = _freeQueue.remove();
try {
segManager.freeSeg... |
public class class_name {
public SwaptionDataLattice append(SwaptionDataLattice other, AnalyticModel model) {
SwaptionDataLattice combined = new SwaptionDataLattice(referenceDate, quotingConvention, displacement,
forwardCurveName, discountCurveName, floatMetaSchedule, fixMetaSchedule);
combined.entryMap.p... | public class class_name {
public SwaptionDataLattice append(SwaptionDataLattice other, AnalyticModel model) {
SwaptionDataLattice combined = new SwaptionDataLattice(referenceDate, quotingConvention, displacement,
forwardCurveName, discountCurveName, floatMetaSchedule, fixMetaSchedule);
combined.entryMap.p... |
public class class_name {
public final void cleanup() throws ResourceException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "cleanup");
// Save the first exception to occur, continue processing, and thro... | public class class_name {
public final void cleanup() throws ResourceException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "cleanup");
// Save the first exception to occur, continue processing, and thro... |
public class class_name {
public void init(String chainId, ChannelFramework cfw) {
tcpName = "TCP-" + chainId;
sslName = "SSL-" + chainId;
httpName = "HTTP-" + chainId;
chainName = chainId;
this.cfw = cfw;
// If there is a chain that is in the CFW with this name, it wa... | public class class_name {
public void init(String chainId, ChannelFramework cfw) {
tcpName = "TCP-" + chainId;
sslName = "SSL-" + chainId;
httpName = "HTTP-" + chainId;
chainName = chainId;
this.cfw = cfw;
// If there is a chain that is in the CFW with this name, it wa... |
public class class_name {
private <T> void registerProcessor(T processor, String model,
boolean onlyCurrentRevisions,
Map<ListenerRegistration, List<T>> processors) {
this.preferCurrent = this.preferCurrent && onlyCurrentRevisions;
ListenerRegistration listenerRegistration = new ListenerRegistration(
mo... | public class class_name {
private <T> void registerProcessor(T processor, String model,
boolean onlyCurrentRevisions,
Map<ListenerRegistration, List<T>> processors) {
this.preferCurrent = this.preferCurrent && onlyCurrentRevisions;
ListenerRegistration listenerRegistration = new ListenerRegistration(
mo... |
public class class_name {
protected List<String> translateSarlFormalParametersForSyntheticOperation(JvmExecutable owner, JvmGenericType actionContainer,
boolean varargs, List<InferredStandardParameter> signature) {
final List<String> arguments = CollectionLiterals.newArrayList();
for (final InferredStandardPara... | public class class_name {
protected List<String> translateSarlFormalParametersForSyntheticOperation(JvmExecutable owner, JvmGenericType actionContainer,
boolean varargs, List<InferredStandardParameter> signature) {
final List<String> arguments = CollectionLiterals.newArrayList();
for (final InferredStandardPara... |
public class class_name {
public void incrementRemoved() {
if (removed == false && rctxt != null) {
rctxt.removeWrapper(jspUri);
}
removed = true;
} } | public class class_name {
public void incrementRemoved() {
if (removed == false && rctxt != null) {
rctxt.removeWrapper(jspUri);
// depends on control dependency: [if], data = [none]
}
removed = true;
} } |
public class class_name {
public RecordedQuery fromJSON(String json) {
RecordedQuery ret = new RecordedQuery(false);
StringReader sr = new StringReader(json);
JsonReader reader = Json.createReader(sr);
JsonObject jsonResult = reader.readObject();
ret.setGeneric(jsonResult.getBoolean(GENERIC));
JsonArray... | public class class_name {
public RecordedQuery fromJSON(String json) {
RecordedQuery ret = new RecordedQuery(false);
StringReader sr = new StringReader(json);
JsonReader reader = Json.createReader(sr);
JsonObject jsonResult = reader.readObject();
ret.setGeneric(jsonResult.getBoolean(GENERIC));
JsonArray... |
public class class_name {
public Collection<String> getAvailablePriorities() {
// FIXME: l10n
ArrayList<String> priorities = new ArrayList<String>();
if (StringUtils.isNotEmpty(high)) {
priorities.add(StringUtils.capitalize(StringUtils.lowerCase(Priority.HIGH.name())));
}
... | public class class_name {
public Collection<String> getAvailablePriorities() {
// FIXME: l10n
ArrayList<String> priorities = new ArrayList<String>();
if (StringUtils.isNotEmpty(high)) {
priorities.add(StringUtils.capitalize(StringUtils.lowerCase(Priority.HIGH.name()))); // depends o... |
public class class_name {
protected List<MethodHelpDto> describeMethods() {
List<MethodHelpDto> result = new LinkedList<>();
Path endpointPath = getClass().getAnnotation(Path.class);
for (Method method : getClass().getDeclaredMethods()) {
String parentPath = endpointPath == null ? ... | public class class_name {
protected List<MethodHelpDto> describeMethods() {
List<MethodHelpDto> result = new LinkedList<>();
Path endpointPath = getClass().getAnnotation(Path.class);
for (Method method : getClass().getDeclaredMethods()) {
String parentPath = endpointPath == null ? ... |
public class class_name {
@Override
public boolean validate(IAcceptor<? super AbstractDiagnostic> result) {
XAbstractFeatureCall featureCall = getFeatureCall();
if (isReassignFirstArgument(featureCall)) {
XBinaryOperation binaryOperation = (XBinaryOperation) featureCall;
LightweightTypeReference actualT... | public class class_name {
@Override
public boolean validate(IAcceptor<? super AbstractDiagnostic> result) {
XAbstractFeatureCall featureCall = getFeatureCall();
if (isReassignFirstArgument(featureCall)) {
XBinaryOperation binaryOperation = (XBinaryOperation) featureCall;
LightweightTypeReference actualT... |
public class class_name {
static GVRPickedObject makeHitMesh(long colliderPointer, float distance, float hitx, float hity, float hitz,
int faceIndex, float barycentricx, float barycentricy, float barycentricz,
float texu, float texv, float normalx,... | public class class_name {
static GVRPickedObject makeHitMesh(long colliderPointer, float distance, float hitx, float hity, float hitz,
int faceIndex, float barycentricx, float barycentricy, float barycentricz,
float texu, float texv, float normalx,... |
public class class_name {
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
String target=null;
Log l = LogFactory.getLog(Debug.class);
if (!(l instanceof LogImpl))
retur... | public class class_name {
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
String target=null;
Log l = LogFactory.getLog(Debug.class);
if (!(l instanceof LogImpl))
retur... |
public class class_name {
@Deprecated
public List<Map<String, Object>> getQueryArgsList() {
// simulate old implementation behavior
List<Map<String, Object>> result = new ArrayList<Map<String, Object>>();
for (List<ParameterSetOperation> paramsList : this.parametersList) {
Map<S... | public class class_name {
@Deprecated
public List<Map<String, Object>> getQueryArgsList() {
// simulate old implementation behavior
List<Map<String, Object>> result = new ArrayList<Map<String, Object>>();
for (List<ParameterSetOperation> paramsList : this.parametersList) {
Map<S... |
public class class_name {
public void changeSite(String siteRoot, String path, boolean force) {
CmsObject cms = A_CmsUI.getCmsObject();
String currentSiteRoot = cms.getRequestContext().getSiteRoot();
if (force || !currentSiteRoot.equals(siteRoot)) {
CmsAppWorkplaceUi.get().changeSi... | public class class_name {
public void changeSite(String siteRoot, String path, boolean force) {
CmsObject cms = A_CmsUI.getCmsObject();
String currentSiteRoot = cms.getRequestContext().getSiteRoot();
if (force || !currentSiteRoot.equals(siteRoot)) {
CmsAppWorkplaceUi.get().changeSi... |
public class class_name {
public void marshall(PullRequestMergedStateChangedEventMetadata pullRequestMergedStateChangedEventMetadata, ProtocolMarshaller protocolMarshaller) {
if (pullRequestMergedStateChangedEventMetadata == null) {
throw new SdkClientException("Invalid argument passed to marshall... | public class class_name {
public void marshall(PullRequestMergedStateChangedEventMetadata pullRequestMergedStateChangedEventMetadata, ProtocolMarshaller protocolMarshaller) {
if (pullRequestMergedStateChangedEventMetadata == null) {
throw new SdkClientException("Invalid argument passed to marshall... |
public class class_name {
public boolean contains(ChronoInterval<T> interval) {
// trivial case
if (interval.isEmpty()) {
return false;
}
T low = interval.getStart().getTemporal();
if ((low != null) && interval.getStart().isOpen()) {
low = this.timeLin... | public class class_name {
public boolean contains(ChronoInterval<T> interval) {
// trivial case
if (interval.isEmpty()) {
return false; // depends on control dependency: [if], data = [none]
}
T low = interval.getStart().getTemporal();
if ((low != null) && interval... |
public class class_name {
public void changeParameters()
{
//Get the session object
String string = null;
String strPreferences = this.getProperty(DBParams.PREFERENCES); // Changing parameters
boolean bSetDefault = true;
if ((strPreferences == null) || (strPreferences.leng... | public class class_name {
public void changeParameters()
{
//Get the session object
String string = null;
String strPreferences = this.getProperty(DBParams.PREFERENCES); // Changing parameters
boolean bSetDefault = true;
if ((strPreferences == null) || (strPreferences.leng... |
public class class_name {
public X509CertChainValidatorExt build() {
RevocationParametersExt revocationParameters = new RevocationParametersExt(
crlChecks, new CRLParameters(), new OCSPParametes(ocspChecks));
ValidatorParamsExt validationParams = new ValidatorParamsExt(
revocationParameters, Prox... | public class class_name {
public X509CertChainValidatorExt build() {
RevocationParametersExt revocationParameters = new RevocationParametersExt(
crlChecks, new CRLParameters(), new OCSPParametes(ocspChecks));
ValidatorParamsExt validationParams = new ValidatorParamsExt(
revocationParameters, Prox... |
public class class_name {
public OperaOptions addExtensions(List<File> paths) {
for (File path : paths) {
checkNotNull(path);
checkArgument(path.exists(), "%s does not exist", path.getAbsolutePath());
checkArgument(!path.isDirectory(), "%s is a directory",
path.getAbsolutePath());
}... | public class class_name {
public OperaOptions addExtensions(List<File> paths) {
for (File path : paths) {
checkNotNull(path); // depends on control dependency: [for], data = [path]
checkArgument(path.exists(), "%s does not exist", path.getAbsolutePath()); // depends on control dependency: [for], data =... |
public class class_name {
public AttributeStatement newAttributeStatement(final Map<String, Object> attributes,
final Map<String, String> attributeFriendlyNames,
final Map<String, String> attributeValueTypes,
... | public class class_name {
public AttributeStatement newAttributeStatement(final Map<String, Object> attributes,
final Map<String, String> attributeFriendlyNames,
final Map<String, String> attributeValueTypes,
... |
public class class_name {
private double slotsUsedWithWeightToSlotRatio(double w2sRatio, TaskType type) {
double slotsTaken = 0;
for (JobInfo info : infos.values()) {
slotsTaken += computeShare(info, w2sRatio, type);
}
return slotsTaken;
} } | public class class_name {
private double slotsUsedWithWeightToSlotRatio(double w2sRatio, TaskType type) {
double slotsTaken = 0;
for (JobInfo info : infos.values()) {
slotsTaken += computeShare(info, w2sRatio, type); // depends on control dependency: [for], data = [info]
}
return slotsTaken;
} ... |
public class class_name {
public static void __gmpz_import(mpz_t rop, int count, int order, int size, int endian, int nails,
Pointer buffer) {
if (SIZE_T_CLASS == SizeT4.class) {
SizeT4.__gmpz_import(rop, count, order, size, endian, nails, buffer);
} else {
SizeT8.__gmpz_import(rop, count, or... | public class class_name {
public static void __gmpz_import(mpz_t rop, int count, int order, int size, int endian, int nails,
Pointer buffer) {
if (SIZE_T_CLASS == SizeT4.class) {
SizeT4.__gmpz_import(rop, count, order, size, endian, nails, buffer); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void sendAsync(SendCallback callback) {
List<ImportService.Submit> reqs;
try {
reqs = prepareDataRequests();
} catch (ApiException e) {
IobeamException ie = new IobeamException(e);
if (callback == null) {
throw... | public class class_name {
public void sendAsync(SendCallback callback) {
List<ImportService.Submit> reqs;
try {
reqs = prepareDataRequests(); // depends on control dependency: [try], data = [none]
} catch (ApiException e) {
IobeamException ie = new IobeamException(e);
... |
public class class_name {
public ListClustersResult withClusters(String... clusters) {
if (this.clusters == null) {
setClusters(new java.util.ArrayList<String>(clusters.length));
}
for (String ele : clusters) {
this.clusters.add(ele);
}
return this;
}... | public class class_name {
public ListClustersResult withClusters(String... clusters) {
if (this.clusters == null) {
setClusters(new java.util.ArrayList<String>(clusters.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : clusters) {
this.c... |
public class class_name {
protected boolean internalEquals(ValueData another)
{
if (another instanceof ByteArrayValueData)
{
return Arrays.equals(((ByteArrayValueData)another).value, value);
}
return false;
} } | public class class_name {
protected boolean internalEquals(ValueData another)
{
if (another instanceof ByteArrayValueData)
{
return Arrays.equals(((ByteArrayValueData)another).value, value); // depends on control dependency: [if], data = [none]
}
return false;
} } |
public class class_name {
public void highlightElement() {
if (m_highlighting == null) {
m_highlighting = new CmsHighlightingBorder(m_position, CmsHighlightingBorder.BorderColor.red);
RootPanel.get().add(m_highlighting);
} else {
m_highlighting.setPosition(CmsPositi... | public class class_name {
public void highlightElement() {
if (m_highlighting == null) {
m_highlighting = new CmsHighlightingBorder(m_position, CmsHighlightingBorder.BorderColor.red); // depends on control dependency: [if], data = [none]
RootPanel.get().add(m_highlighting); // depends ... |
public class class_name {
private void initEmbeddedServices(String[] requestedServices) {
Set<String> serviceSet = new LinkedHashSet<>();
if (requestedServices != null) {
serviceSet.addAll(Arrays.asList(requestedServices));
}
addRequiredServices(serviceSet);
in... | public class class_name {
private void initEmbeddedServices(String[] requestedServices) {
Set<String> serviceSet = new LinkedHashSet<>();
if (requestedServices != null) {
serviceSet.addAll(Arrays.asList(requestedServices));
// depends on control dependency: [if], data = [(requestedServi... |
public class class_name {
public static boolean specificToDay(String eventDate) {
boolean result = false;
if (!isEmpty(eventDate)) {
Interval eventDateInterval = extractInterval(eventDate);
logger.debug(eventDateInterval);
logger.debug(eventDateInterval.toDuration());
if... | public class class_name {
public static boolean specificToDay(String eventDate) {
boolean result = false;
if (!isEmpty(eventDate)) {
Interval eventDateInterval = extractInterval(eventDate);
logger.debug(eventDateInterval); // depends on control dependency: [if], data = [none]
log... |
public class class_name {
public static String[] split(CharSequence self) {
StringTokenizer st = new StringTokenizer(self.toString());
String[] strings = new String[st.countTokens()];
for (int i = 0; i < strings.length; i++) {
strings[i] = st.nextToken();
}
return st... | public class class_name {
public static String[] split(CharSequence self) {
StringTokenizer st = new StringTokenizer(self.toString());
String[] strings = new String[st.countTokens()];
for (int i = 0; i < strings.length; i++) {
strings[i] = st.nextToken(); // depends on control depen... |
public class class_name {
public Optional<MediaType> match(MediaType range) {
requireNonNull(range, "range");
for (MediaType candidate : mediaTypes) {
if (candidate.belongsTo(range)) {
// With only one specified range, there is no way for candidates to have priority over eac... | public class class_name {
public Optional<MediaType> match(MediaType range) {
requireNonNull(range, "range");
for (MediaType candidate : mediaTypes) {
if (candidate.belongsTo(range)) {
// With only one specified range, there is no way for candidates to have priority over eac... |
public class class_name {
public SearchCriteria setProjections(
final List<? extends Projection> projections
)
{
if (projections == null || projections.size() == 0) {
clearProjections();
return this;
}
synchronized (projecti... | public class class_name {
public SearchCriteria setProjections(
final List<? extends Projection> projections
)
{
if (projections == null || projections.size() == 0) {
clearProjections(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void remove()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "remove");
}
if (msgIterator.hasNext())
{
msgIterator.remove();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
S... | public class class_name {
public void remove()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "remove"); // depends on control dependency: [if], data = [none]
}
if (msgIterator.hasNext())
{
msgIterator.remove(); // depends on control dependency: [if... |
public class class_name {
public void warn( String msg, Throwable t )
{
if( m_delegate.isWarnEnabled() )
{
m_delegate.warn( msg, t );
}
} } | public class class_name {
public void warn( String msg, Throwable t )
{
if( m_delegate.isWarnEnabled() )
{
m_delegate.warn( msg, t ); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
CipherLite createCipherLite(SecretKey cek, byte[] iv, int cipherMode,
Provider provider, boolean alwaysUseProvider) {
try {
Cipher cipher = createCipher(provider, alwaysUseProvider);
cipher.init(cipherMode, cek, new IvParameterSpec(iv));
... | public class class_name {
CipherLite createCipherLite(SecretKey cek, byte[] iv, int cipherMode,
Provider provider, boolean alwaysUseProvider) {
try {
Cipher cipher = createCipher(provider, alwaysUseProvider);
cipher.init(cipherMode, cek, new IvParameterSpec(iv)); // depends... |
public class class_name {
private KNNHeap linearScan(Relation<? extends O> relation, DBIDIter iter, final O obj, KNNHeap heap) {
final PrimitiveDistanceFunction<? super O> rawdist = this.rawdist;
double max = Double.POSITIVE_INFINITY;
while(iter.valid()) {
final double dist = rawdist.distance(obj, re... | public class class_name {
private KNNHeap linearScan(Relation<? extends O> relation, DBIDIter iter, final O obj, KNNHeap heap) {
final PrimitiveDistanceFunction<? super O> rawdist = this.rawdist;
double max = Double.POSITIVE_INFINITY;
while(iter.valid()) {
final double dist = rawdist.distance(obj, re... |
public class class_name {
private Node<E> _get_or_create_root_set(E e) {
Node<E> node = elmap.get(e);
if(node == null) {
// no node yet; create one now
node = new Node<E>(e);
elmap.put(e, node);
return node;
}
return _find_root(node);
} } | public class class_name {
private Node<E> _get_or_create_root_set(E e) {
Node<E> node = elmap.get(e);
if(node == null) {
// no node yet; create one now
node = new Node<E>(e); // depends on control dependency: [if], data = [none]
elmap.put(e, node); // depends on control dependency: [if], data = [none]... |
public class class_name {
@Override
public int mkdir(String path, @mode_t long mode) {
final AlluxioURI turi = mPathResolverCache.getUnchecked(path);
LOG.trace("mkdir({}) [Alluxio: {}]", path, turi);
try {
mFileSystem.createDirectory(turi);
} catch (FileAlreadyExistsException e) {
LOG.deb... | public class class_name {
@Override
public int mkdir(String path, @mode_t long mode) {
final AlluxioURI turi = mPathResolverCache.getUnchecked(path);
LOG.trace("mkdir({}) [Alluxio: {}]", path, turi);
try {
mFileSystem.createDirectory(turi); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public void closeLater(ErrorCode errorCode) {
if (!closeInternal(errorCode, null)) {
return; // Already closed.
}
connection.writeSynResetLater(id, errorCode);
} } | public class class_name {
public void closeLater(ErrorCode errorCode) {
if (!closeInternal(errorCode, null)) {
return; // Already closed. // depends on control dependency: [if], data = [none]
}
connection.writeSynResetLater(id, errorCode);
} } |
public class class_name {
public void intercept(Execution execution) {
if(log.isInfoEnabled()) {
for(Task task : execution.getTasks()) {
StringBuffer buffer = new StringBuffer(100);
buffer.append("创建任务[标识=").append(task.getId());
buffer.append(",名称=").append(task.getDisplayName());
buffer.append("... | public class class_name {
public void intercept(Execution execution) {
if(log.isInfoEnabled()) {
for(Task task : execution.getTasks()) {
StringBuffer buffer = new StringBuffer(100);
buffer.append("创建任务[标识=").append(task.getId()); // depends on control dependency: [for], data = [task]
buffer.append(",名... |
public class class_name {
public int precision(int recall) {
int optimum = 0;
for (int right = 0; right <= recall; right++) {
int candidate = numpositive[right] + numnegative[recall - right];
if (candidate > optimum) {
optimum = candidate;
}
}
return optimum;
} } | public class class_name {
public int precision(int recall) {
int optimum = 0;
for (int right = 0; right <= recall; right++) {
int candidate = numpositive[right] + numnegative[recall - right];
if (candidate > optimum) {
optimum = candidate;
// depends on control dependency: [if], data ... |
public class class_name {
@Override
public synchronized void removeChainEventListener(ChainEventListener cel, String chainName) throws InvalidChainNameException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "removeChainEventListener: chainName=" + chainName +... | public class class_name {
@Override
public synchronized void removeChainEventListener(ChainEventListener cel, String chainName) throws InvalidChainNameException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "removeChainEventListener: chainName=" + chainName +... |
public class class_name {
public RequestContext renderFalseResult() {
if (renderer instanceof JsonRenderer) {
final JsonRenderer r = (JsonRenderer) renderer;
final JSONObject ret = r.getJSONObject();
ret.put(Keys.STATUS_CODE, false);
}
return this;
} } | public class class_name {
public RequestContext renderFalseResult() {
if (renderer instanceof JsonRenderer) {
final JsonRenderer r = (JsonRenderer) renderer;
final JSONObject ret = r.getJSONObject();
ret.put(Keys.STATUS_CODE, false); // depends on control dependency: [if], ... |
public class class_name {
private CachingPojoPath getPath(Object pojo, String pojoPath, PojoPathMode mode, PojoPathContext context) {
if (pojo == null) {
if (mode == PojoPathMode.RETURN_IF_NULL) {
return null;
} else if (mode == PojoPathMode.RETURN_IF_NULL) {
throw new PojoPathCreation... | public class class_name {
private CachingPojoPath getPath(Object pojo, String pojoPath, PojoPathMode mode, PojoPathContext context) {
if (pojo == null) {
if (mode == PojoPathMode.RETURN_IF_NULL) {
return null; // depends on control dependency: [if], data = [none]
} else if (mode == PojoPathMod... |
public class class_name {
private void updateGlue(final CLClause c) {
if (!this.config.glueupdate) { return; }
if (!this.config.gluered) {
assert c.glue() == 0;
return;
}
assert this.frames.empty();
for (int i = 0; i < c.lits().size(); i++) { markFrame(c.... | public class class_name {
private void updateGlue(final CLClause c) {
if (!this.config.glueupdate) { return; } // depends on control dependency: [if], data = [none]
if (!this.config.gluered) {
assert c.glue() == 0;
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public boolean hasModelGroupParent() {
boolean result = false;
Element parent = getElement().getParentElement();
while (parent != null) {
if (parent.getPropertyBoolean(PROP_IS_MODEL_GROUP)) {
result = true;
break;
... | public class class_name {
public boolean hasModelGroupParent() {
boolean result = false;
Element parent = getElement().getParentElement();
while (parent != null) {
if (parent.getPropertyBoolean(PROP_IS_MODEL_GROUP)) {
result = true; // depends on control dependency:... |
public class class_name {
public ColumnSpec getLastSpec() {
if (this.joinSpec == null) {
return this;
} else {
List<ColumnSpec> l = asList();
return l.get(l.size() - 1);
}
} } | public class class_name {
public ColumnSpec getLastSpec() {
if (this.joinSpec == null) {
return this; // depends on control dependency: [if], data = [none]
} else {
List<ColumnSpec> l = asList();
return l.get(l.size() - 1); // depends on control dependency: [if], dat... |
public class class_name {
private void initializeShowWizardDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_wizard_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
pub... | public class class_name {
private void initializeShowWizardDialogPreference() {
Preference preference =
findPreference(getString(R.string.show_wizard_dialog_preference_key));
preference.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
pub... |
public class class_name {
@Override
public String buildDialogForm() {
StringBuffer result = new StringBuffer(1024);
try {
// create the dialog HTML
result.append(createDialogHtml(getParamPage()));
} catch (Throwable t) {
// TODO: Error handling
... | public class class_name {
@Override
public String buildDialogForm() {
StringBuffer result = new StringBuffer(1024);
try {
// create the dialog HTML
result.append(createDialogHtml(getParamPage())); // depends on control dependency: [try], data = [none]
} catch (Th... |
public class class_name {
public void marshall(BatchDetachObject batchDetachObject, ProtocolMarshaller protocolMarshaller) {
if (batchDetachObject == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(b... | public class class_name {
public void marshall(BatchDetachObject batchDetachObject, ProtocolMarshaller protocolMarshaller) {
if (batchDetachObject == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(b... |
public class class_name {
public static boolean isOfClass(Type type, Class<?> clazz) {
if(isSimple(type)) {
logger.trace("simple: {}", ((Class<?>)type));
return ((Class<?>)type) == clazz;
} else if(isGeneric(type)) {
logger.trace("generic: {}", (((ParameterizedType)type).getRawType()));
return (((Param... | public class class_name {
public static boolean isOfClass(Type type, Class<?> clazz) {
if(isSimple(type)) {
logger.trace("simple: {}", ((Class<?>)type)); // depends on control dependency: [if], data = [none]
return ((Class<?>)type) == clazz; // depends on control dependency: [if], data = [none]
} else if(isG... |
public class class_name {
@Override
public Predicate or(Expression<Boolean> arg0, Expression<Boolean> arg1)
{
// TODO Auto-generated method stub
if (arg0 != null && arg1 != null)
{
if (arg0.getClass().isAssignableFrom(ComparisonPredicate.class) && arg1.getClass().isAssignabl... | public class class_name {
@Override
public Predicate or(Expression<Boolean> arg0, Expression<Boolean> arg1)
{
// TODO Auto-generated method stub
if (arg0 != null && arg1 != null)
{
if (arg0.getClass().isAssignableFrom(ComparisonPredicate.class) && arg1.getClass().isAssignabl... |
public class class_name {
public static void fixDisplayedText(final RESTTextContentSpecV1 source) {
if (source.getFailedContentSpec() != null) {
source.setText(source.getFailedContentSpec());
}
} } | public class class_name {
public static void fixDisplayedText(final RESTTextContentSpecV1 source) {
if (source.getFailedContentSpec() != null) {
source.setText(source.getFailedContentSpec()); // depends on control dependency: [if], data = [(source.getFailedContentSpec()]
}
} } |
public class class_name {
private void addJobJarToClassPath(String localJarFile, StringBuffer classPath) {
File jobCacheDir = new File
(new Path(localJarFile).getParent().toString());
File[] libs = new File(jobCacheDir, "lib").listFiles();
String sep = System.getProperty("path.separator");
if (l... | public class class_name {
private void addJobJarToClassPath(String localJarFile, StringBuffer classPath) {
File jobCacheDir = new File
(new Path(localJarFile).getParent().toString());
File[] libs = new File(jobCacheDir, "lib").listFiles();
String sep = System.getProperty("path.separator");
if (l... |
public class class_name {
public static boolean[] updateRanges(boolean[] range, GrammarRules grammar) {
boolean[] res = Arrays.copyOf(range, range.length);
for (GrammarRuleRecord r : grammar) {
if (0 == r.getRuleNumber()) {
continue;
}
res = updateRanges(res, r.getRuleIntervals());
... | public class class_name {
public static boolean[] updateRanges(boolean[] range, GrammarRules grammar) {
boolean[] res = Arrays.copyOf(range, range.length);
for (GrammarRuleRecord r : grammar) {
if (0 == r.getRuleNumber()) {
continue;
}
res = updateRanges(res, r.getRuleIntervals()); //... |
public class class_name {
public boolean assertValidPkForDelete(ClassDescriptor cld, Object obj)
{
if(!ProxyHelper.isProxy(obj))
{
FieldDescriptor fieldDescriptors[] = cld.getPkFields();
int fieldDescriptorSize = fieldDescriptors.length;
for(int i = 0; i < ... | public class class_name {
public boolean assertValidPkForDelete(ClassDescriptor cld, Object obj)
{
if(!ProxyHelper.isProxy(obj))
{
FieldDescriptor fieldDescriptors[] = cld.getPkFields();
int fieldDescriptorSize = fieldDescriptors.length;
for(int i = 0; i < ... |
public class class_name {
public Instant minusMillis(long millisToSubtract) {
if (millisToSubtract == Long.MIN_VALUE) {
return plusMillis(Long.MAX_VALUE).plusMillis(1);
}
return plusMillis(-millisToSubtract);
} } | public class class_name {
public Instant minusMillis(long millisToSubtract) {
if (millisToSubtract == Long.MIN_VALUE) {
return plusMillis(Long.MAX_VALUE).plusMillis(1); // depends on control dependency: [if], data = [none]
}
return plusMillis(-millisToSubtract);
} } |
public class class_name {
private void setSystemProperties()
{
if ( systemProperties != null )
{
originalSystemProperties = System.getProperties();
for ( Property systemProperty : systemProperties )
{
String value = systemProperty.getValue();
... | public class class_name {
private void setSystemProperties()
{
if ( systemProperties != null )
{
originalSystemProperties = System.getProperties(); // depends on control dependency: [if], data = [none]
for ( Property systemProperty : systemProperties )
{
... |
public class class_name {
private void inflateContentView() {
contentContainer = rootView.findViewById(R.id.content_container);
contentContainer.removeAllViews();
if (customView != null) {
contentContainer.setVisibility(View.VISIBLE);
contentContainer.addView(customView... | public class class_name {
private void inflateContentView() {
contentContainer = rootView.findViewById(R.id.content_container);
contentContainer.removeAllViews();
if (customView != null) {
contentContainer.setVisibility(View.VISIBLE); // depends on control dependency: [if], data = ... |
public class class_name {
private ConciseSet convert(IntSet c)
{
if (c instanceof ConciseSet && simulateWAH == ((ConciseSet) c).simulateWAH) {
return (ConciseSet) c;
}
if (c == null) {
return empty();
}
ConciseSet res = empty();
IntIterator itr = c.iterator();
whil... | public class class_name {
private ConciseSet convert(IntSet c)
{
if (c instanceof ConciseSet && simulateWAH == ((ConciseSet) c).simulateWAH) {
return (ConciseSet) c;
// depends on control dependency: [if], data = [none]
}
if (c == null) {
return empty();
// depends on control dependenc... |
public class class_name {
public boolean keyspaceExists(DBConn dbConn, String keyspace) {
try {
dbConn.getClientSession().describe_keyspace(keyspace);
return true;
} catch (Exception e) {
return false; // Notfound
}
} } | public class class_name {
public boolean keyspaceExists(DBConn dbConn, String keyspace) {
try {
dbConn.getClientSession().describe_keyspace(keyspace);
// depends on control dependency: [try], data = [none]
return true;
// depends on control dependency: [try], data = [none]
}... |
public class class_name {
@GET
@Path("{uuid}/repair")
@Produces("text/html")
public String repairView(@PathParam("uuid") String uuid) {
MigrationFeature.checkMigrationId(uuid);
if (failMigrations.isEmpty()) {
throw new NotFoundException();
}
//REPAIR
Map... | public class class_name {
@GET
@Path("{uuid}/repair")
@Produces("text/html")
public String repairView(@PathParam("uuid") String uuid) {
MigrationFeature.checkMigrationId(uuid);
if (failMigrations.isEmpty()) {
throw new NotFoundException();
}
//REPAIR
Map... |
public class class_name {
@Override
@SuppressWarnings({ "unchecked" })
public synchronized Enumeration<Object> keys() {
Enumeration<Object> keysEnum = super.keys();
@SuppressWarnings("rawtypes")
Vector keyList = new Vector<>(); // NOPMD - vector used on purpose here...
while (keysEnum.hasMoreElements()) {
... | public class class_name {
@Override
@SuppressWarnings({ "unchecked" })
public synchronized Enumeration<Object> keys() {
Enumeration<Object> keysEnum = super.keys();
@SuppressWarnings("rawtypes")
Vector keyList = new Vector<>(); // NOPMD - vector used on purpose here...
while (keysEnum.hasMoreElements()) {
... |
public class class_name {
private static boolean isConjWithNoPrep(TreeGraphNode node, Collection<TypedDependency> list) {
for (TypedDependency td : list) {
if (td.gov() == node && td.reln() == CONJUNCT) {
// we have a conjunct
// check the POS of the dependent
String tdDepPOS = t... | public class class_name {
private static boolean isConjWithNoPrep(TreeGraphNode node, Collection<TypedDependency> list) {
for (TypedDependency td : list) {
if (td.gov() == node && td.reln() == CONJUNCT) {
// we have a conjunct
// check the POS of the dependent
String tdDepPOS = t... |
public class class_name {
public static NotificationDto transformToDto(Notification notification) {
if (notification == null) {
throw new WebApplicationException("Null entity object cannot be converted to Dto object.", Status.INTERNAL_SERVER_ERROR);
}
NotificationDto result = creat... | public class class_name {
public static NotificationDto transformToDto(Notification notification) {
if (notification == null) {
throw new WebApplicationException("Null entity object cannot be converted to Dto object.", Status.INTERNAL_SERVER_ERROR);
}
NotificationDto result = creat... |
public class class_name {
protected boolean isSarlResource(Object resource) {
if (resource instanceof IFile) {
final IFile file = (IFile) resource;
return getFileExtensions().contains(file.getFileExtension());
}
return false;
} } | public class class_name {
protected boolean isSarlResource(Object resource) {
if (resource instanceof IFile) {
final IFile file = (IFile) resource;
return getFileExtensions().contains(file.getFileExtension()); // depends on control dependency: [if], data = [none]
}
return false;
} } |
public class class_name {
public String hashSystemEnv() {
List<String> system = new ArrayList<String>();
for (Entry<Object, Object> el : System.getProperties().entrySet()) {
system.add(el.getKey() + " " + el.getValue());
}
Map<String, String> env = System.getenv();
... | public class class_name {
public String hashSystemEnv() {
List<String> system = new ArrayList<String>();
for (Entry<Object, Object> el : System.getProperties().entrySet()) {
system.add(el.getKey() + " " + el.getValue()); // depends on control dependency: [for], data = [el]
}
... |
public class class_name {
private void addPortIfValid(Map<String, Integer> map, String key, String port) {
if (StringUtils.isNotBlank(port)) {
String t = port.trim();
if (t.matches(NUMBER_REGEX)) {
map.put(key, Integer.parseInt(t));
}
}
} } | public class class_name {
private void addPortIfValid(Map<String, Integer> map, String key, String port) {
if (StringUtils.isNotBlank(port)) {
String t = port.trim();
if (t.matches(NUMBER_REGEX)) {
map.put(key, Integer.parseInt(t)); // depends on control dependency: [if]... |
public class class_name {
public String getConditionalUrl(RestOperationTypeEnum theOperationType) {
if (theOperationType == RestOperationTypeEnum.CREATE) {
String retVal = this.getHeader(Constants.HEADER_IF_NONE_EXIST);
if (isBlank(retVal)) {
return null;
}
if (retVal.startsWith(this.getFhirServerBas... | public class class_name {
public String getConditionalUrl(RestOperationTypeEnum theOperationType) {
if (theOperationType == RestOperationTypeEnum.CREATE) {
String retVal = this.getHeader(Constants.HEADER_IF_NONE_EXIST);
if (isBlank(retVal)) {
return null; // depends on control dependency: [if], data = [non... |
public class class_name {
private void prepareNext()
{
hasNext = false;
while (delegate.hasNext())
{
next = delegate.next();
if (predicate.test(next))
{
hasNext = true;
break;
}
}
} } | public class class_name {
private void prepareNext()
{
hasNext = false;
while (delegate.hasNext())
{
next = delegate.next();
// depends on control dependency: [while], data = [none]
if (predicate.test(next))
{
hasNext = true;
// d... |
public class class_name {
private HashMap<DensityGrid, CharacteristicVector> recluster (GridCluster gc)
{
HashMap<DensityGrid, CharacteristicVector> glNew = new HashMap<DensityGrid, CharacteristicVector>();
Iterator<Map.Entry<DensityGrid,Boolean>> gcIter = gc.getGrids().entrySet().iterator();
newClusterList = n... | public class class_name {
private HashMap<DensityGrid, CharacteristicVector> recluster (GridCluster gc)
{
HashMap<DensityGrid, CharacteristicVector> glNew = new HashMap<DensityGrid, CharacteristicVector>();
Iterator<Map.Entry<DensityGrid,Boolean>> gcIter = gc.getGrids().entrySet().iterator();
newClusterList = n... |
public class class_name {
public Field createFieldDateTimeDate(Field routeFieldParam) {
if(routeFieldParam != null && this.serviceTicket != null) {
routeFieldParam.setServiceTicket(this.serviceTicket);
}
if(routeFieldParam != null) {
routeFieldParam.setTypeAsEnum(Field.Type.DateTime);
routeFieldParam.s... | public class class_name {
public Field createFieldDateTimeDate(Field routeFieldParam) {
if(routeFieldParam != null && this.serviceTicket != null) {
routeFieldParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [if], data = [none]
}
if(routeFieldParam != null) {
routeFieldParam.se... |
public class class_name {
@SuppressWarnings("rawtypes")
public ManagedConnection matchManagedConnections(Set connectionSet,
Subject subject, ConnectionRequestInfo cxRequestInfo)
throws ResourceException {
for(Object result : connectionSet){
if (result instanceof VertxManagedConnection)... | public class class_name {
@SuppressWarnings("rawtypes")
public ManagedConnection matchManagedConnections(Set connectionSet,
Subject subject, ConnectionRequestInfo cxRequestInfo)
throws ResourceException {
for(Object result : connectionSet){
if (result instanceof VertxManagedConnection)... |
public class class_name {
public void showStatus(String strMessage, ImageIcon icon, int iWarningLevel)
{
if (strMessage == null)
strMessage = Constants.BLANK;
if (m_textArea != null)
m_textArea.setText(strMessage);
if (iWarningLevel == Constants.WARNING)
{
... | public class class_name {
public void showStatus(String strMessage, ImageIcon icon, int iWarningLevel)
{
if (strMessage == null)
strMessage = Constants.BLANK;
if (m_textArea != null)
m_textArea.setText(strMessage);
if (iWarningLevel == Constants.WARNING)
{
... |
public class class_name {
protected void validateJsonBeanIfNeeds(Object jsonBean, JsonResponse<?> response) {
if (response.isValidatorSuppressed()) { // by individual requirement
logger.debug("...Suppressing JSON bean validator by response option: {}", response);
return;
}
... | public class class_name {
protected void validateJsonBeanIfNeeds(Object jsonBean, JsonResponse<?> response) {
if (response.isValidatorSuppressed()) { // by individual requirement
logger.debug("...Suppressing JSON bean validator by response option: {}", response); // depends on control dependency: [... |
public class class_name {
private void handleApplicationCommandRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Application Command Request");
int nodeId = incomingMessage.getMessagePayloadByte(1);
logger.debug("Application Command Request from Node " + nodeId);
ZWaveNode node = getNode(no... | public class class_name {
private void handleApplicationCommandRequest(SerialMessage incomingMessage) {
logger.trace("Handle Message Application Command Request");
int nodeId = incomingMessage.getMessagePayloadByte(1);
logger.debug("Application Command Request from Node " + nodeId);
ZWaveNode node = getNode(no... |
public class class_name {
public static String fromDuration(Duration duration) {
if (duration == null) {
return null;
}
return humanize(duration.get(ChronoUnit.MILLIS));
} } | public class class_name {
public static String fromDuration(Duration duration) {
if (duration == null) {
return null; // depends on control dependency: [if], data = [none]
}
return humanize(duration.get(ChronoUnit.MILLIS));
} } |
public class class_name {
protected boolean fail(List<ValidationMessage> errors, IssueType type, int line, int col, String path, boolean thePass, String msg) {
if (!thePass) {
addValidationMessage(errors, type, line, col, path, msg, IssueSeverity.FATAL);
}
return thePass;
} } | public class class_name {
protected boolean fail(List<ValidationMessage> errors, IssueType type, int line, int col, String path, boolean thePass, String msg) {
if (!thePass) {
addValidationMessage(errors, type, line, col, path, msg, IssueSeverity.FATAL); // depends on control dependency: [if], data = [none]
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.