code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private SearchNode getSearchNode() { Object x = _searchNode.get(); SearchNode g = null; if (x != null) { g = (SearchNode) x; g.reset(); } else { g = new SearchNode(); x = (Object) g; ...
public class class_name { private SearchNode getSearchNode() { Object x = _searchNode.get(); SearchNode g = null; if (x != null) { g = (SearchNode) x; // depends on control dependency: [if], data = [none] g.reset(); // depends on control dependency: [if], dat...
public class class_name { public void invalidate() { if (transitionLength <= 0f) { currentColor.set(targetColor); redNeedsUpdate = greenNeedsUpdate = blueNeedsUpdate = alphaNeedsUpdate = false; transitionInProgress = false; } else { redNeedsUpdate = initi...
public class class_name { public void invalidate() { if (transitionLength <= 0f) { currentColor.set(targetColor); // depends on control dependency: [if], data = [none] redNeedsUpdate = greenNeedsUpdate = blueNeedsUpdate = alphaNeedsUpdate = false; // depends on control dependency: [if],...
public class class_name { public void marshall(InstanceFleetProvisioningSpecifications instanceFleetProvisioningSpecifications, ProtocolMarshaller protocolMarshaller) { if (instanceFleetProvisioningSpecifications == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { public void marshall(InstanceFleetProvisioningSpecifications instanceFleetProvisioningSpecifications, ProtocolMarshaller protocolMarshaller) { if (instanceFleetProvisioningSpecifications == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { private Object findAndGetFieldValueInHierarchy(Object instance) { Class<?> clazz = instance.getClass(); String fieldname = theField.getName(); String searchName = typeDescriptor.getName().replace('/', '.'); while (clazz != null && !clazz.getName().equals(searchName)) { clazz = claz...
public class class_name { private Object findAndGetFieldValueInHierarchy(Object instance) { Class<?> clazz = instance.getClass(); String fieldname = theField.getName(); String searchName = typeDescriptor.getName().replace('/', '.'); while (clazz != null && !clazz.getName().equals(searchName)) { clazz = claz...
public class class_name { public static List<Geometry> featureCollectionToGeometriesList( SimpleFeatureCollection collection, boolean doSubGeoms, String userDataField ) { List<Geometry> geometriesList = new ArrayList<Geometry>(); if (collection == null) { return geometriesList; ...
public class class_name { public static List<Geometry> featureCollectionToGeometriesList( SimpleFeatureCollection collection, boolean doSubGeoms, String userDataField ) { List<Geometry> geometriesList = new ArrayList<Geometry>(); if (collection == null) { return geometriesList; ...
public class class_name { public long getDateExpires() { int pos = m_flexContextInfoList.size() - 1; if (pos < 0) { // ensure a valid position is used return CmsResource.DATE_EXPIRED_DEFAULT; } return (m_flexContextInfoList.get(pos)).getDateExpires(); } }
public class class_name { public long getDateExpires() { int pos = m_flexContextInfoList.size() - 1; if (pos < 0) { // ensure a valid position is used return CmsResource.DATE_EXPIRED_DEFAULT; // depends on control dependency: [if], data = [none] } return (m_flex...
public class class_name { public String toGroupByString(Criteria criteria, CriteriaQueryBuilder queryBuilder) { // query builder StringBuilder builder = new StringBuilder(); // iterate over all projections from the list Iterator<Projection> iter = projectionList.iterator(); while( iter.hasNex...
public class class_name { public String toGroupByString(Criteria criteria, CriteriaQueryBuilder queryBuilder) { // query builder StringBuilder builder = new StringBuilder(); // iterate over all projections from the list Iterator<Projection> iter = projectionList.iterator(); while( iter.hasNex...
public class class_name { public ContextDestroyer initiate() { validateScanners(); // Making sure scanners are properly defined. final Context context = new Context(); context.setCreateMissingDependencies(createMissingDependencies); final ContextDestroyer contextDestroyer = new ContextD...
public class class_name { public ContextDestroyer initiate() { validateScanners(); // Making sure scanners are properly defined. final Context context = new Context(); context.setCreateMissingDependencies(createMissingDependencies); final ContextDestroyer contextDestroyer = new ContextD...
public class class_name { public void augmentDataset(NetcdfDataset ds, CancelTask cancelTask) throws IOException { Attribute leoAtt = ds.findGlobalAttribute("leoId"); if (leoAtt == null) { if (ds.findVariable("time") == null) { // create a time variable - ass...
public class class_name { public void augmentDataset(NetcdfDataset ds, CancelTask cancelTask) throws IOException { Attribute leoAtt = ds.findGlobalAttribute("leoId"); if (leoAtt == null) { if (ds.findVariable("time") == null) { // create a time variable - ass...
public class class_name { public static <K, V> Map<K, V> asHashMap(List<V> list, ListExtractor<K, V> extractor) { if (list == null || extractor == null || list.isEmpty()) { return Collections.<K, V>emptyMap(); } Map<K, V> map = new LinkedHashMap<>(list.size()); for (V node :...
public class class_name { public static <K, V> Map<K, V> asHashMap(List<V> list, ListExtractor<K, V> extractor) { if (list == null || extractor == null || list.isEmpty()) { return Collections.<K, V>emptyMap(); // depends on control dependency: [if], data = [none] } Map<K, V> map = n...
public class class_name { public <T> List<T> search(Class<T> managedClass, Name base, String filter, SearchControls scope) { Filter searchFilter = null; if(StringUtils.hasText(filter)) { searchFilter = new HardcodedFilter(filter); } return ldapTemplate.find(base, sear...
public class class_name { public <T> List<T> search(Class<T> managedClass, Name base, String filter, SearchControls scope) { Filter searchFilter = null; if(StringUtils.hasText(filter)) { searchFilter = new HardcodedFilter(filter); // depends on control dependency: [if], data = [none] ...
public class class_name { public final void bind(SocketAddress firstLocalAddress, SocketAddress... otherLocalAddresses) throws IOException { if (firstLocalAddress == null) { bind(getDefaultLocalAddresses()); return; } List<SocketAddress> localAddresses = new Arr...
public class class_name { public final void bind(SocketAddress firstLocalAddress, SocketAddress... otherLocalAddresses) throws IOException { if (firstLocalAddress == null) { bind(getDefaultLocalAddresses()); // depends on control dependency: [if], data = [none] return; // depends on con...
public class class_name { @SuppressWarnings("VariableNotUsedInsideIf") public Stage stage() { if (sortProject != null) { return Stage.SORT_PROJECT; } else if (sort != null) { return Stage.SORT; } else if (aggregateProject != null) { return Stage.AGGREGATE_PROJECT; } else if (havin...
public class class_name { @SuppressWarnings("VariableNotUsedInsideIf") public Stage stage() { if (sortProject != null) { return Stage.SORT_PROJECT; // depends on control dependency: [if], data = [none] } else if (sort != null) { return Stage.SORT; // depends on control dependency: [if], data = ...
public class class_name { public static MultiLanguageText.Builder format(final MultiLanguageText.Builder multiLanguageText) { for (final MapFieldEntry.Builder entryBuilder : multiLanguageText.getEntryBuilderList()) { final String value = entryBuilder.getValue(); entryBuilder.clearValue(...
public class class_name { public static MultiLanguageText.Builder format(final MultiLanguageText.Builder multiLanguageText) { for (final MapFieldEntry.Builder entryBuilder : multiLanguageText.getEntryBuilderList()) { final String value = entryBuilder.getValue(); entryBuilder.clearValue(...
public class class_name { private boolean checkFetchingTasks(Map<URI, Future<Boolean>> concurrentTasks) { boolean result = true; Boolean fetched; for (URI modelUri : concurrentTasks.keySet()) { Future<Boolean> f = concurrentTasks.get(modelUri); try { fetc...
public class class_name { private boolean checkFetchingTasks(Map<URI, Future<Boolean>> concurrentTasks) { boolean result = true; Boolean fetched; for (URI modelUri : concurrentTasks.keySet()) { Future<Boolean> f = concurrentTasks.get(modelUri); try { fetc...
public class class_name { public static List<File> findFiles(final String start, final String[] extensions) { final List<File> files = new ArrayList<>(); final Stack<File> dirs = new Stack<>(); final File startdir = new File(start); if (startdir.isDirectory()) { dirs.push(new File(start)); } while (d...
public class class_name { public static List<File> findFiles(final String start, final String[] extensions) { final List<File> files = new ArrayList<>(); final Stack<File> dirs = new Stack<>(); final File startdir = new File(start); if (startdir.isDirectory()) { dirs.push(new File(start)); // depends on ...
public class class_name { public <E> E findById(final Class<E> entityClass, final Object primaryKey) { E e = find(entityClass, primaryKey); if (e == null) { return null; } // Return a copy of this entity return (E) (e); } }
public class class_name { public <E> E findById(final Class<E> entityClass, final Object primaryKey) { E e = find(entityClass, primaryKey); if (e == null) { return null; // depends on control dependency: [if], data = [none] } // Return a copy of this entity ...
public class class_name { @Override protected void onAttach() { super.onAttach(); // Adding styles to the heading depending on the parent if (getParent() != null) { if (getParent() instanceof LinkedGroupItem) { addStyleName(Styles.LIST_GROUP_ITEM_HEADING); ...
public class class_name { @Override protected void onAttach() { super.onAttach(); // Adding styles to the heading depending on the parent if (getParent() != null) { if (getParent() instanceof LinkedGroupItem) { addStyleName(Styles.LIST_GROUP_ITEM_HEADING); // de...
public class class_name { public static final int bytesToInt( byte[] data, int[] offset ) { /** * TODO: We use network-order within OceanStore, but temporarily * supporting intel-order to work with some JNI code until JNI code is * set to interoperate with network-order. */ ...
public class class_name { public static final int bytesToInt( byte[] data, int[] offset ) { /** * TODO: We use network-order within OceanStore, but temporarily * supporting intel-order to work with some JNI code until JNI code is * set to interoperate with network-order. */ ...
public class class_name { private void addCssHeadlines(final PrintWriter writer, final List cssHeadlines) { if (cssHeadlines == null || cssHeadlines.isEmpty()) { return; } writer.write("<!-- Start css headlines -->" + "\n<style type=\"" + WebUtilities.CONTENT_TYPE_CSS + "\" media=\"screen\">"); for (O...
public class class_name { private void addCssHeadlines(final PrintWriter writer, final List cssHeadlines) { if (cssHeadlines == null || cssHeadlines.isEmpty()) { return; // depends on control dependency: [if], data = [none] } writer.write("<!-- Start css headlines -->" + "\n<style type=\"" + WebUtilities...
public class class_name { public void setValueSelected(T value, boolean selected) { int idx = getIndex(value); if (idx >= 0) { setItemSelectedInternal(idx, selected); } } }
public class class_name { public void setValueSelected(T value, boolean selected) { int idx = getIndex(value); if (idx >= 0) { setItemSelectedInternal(idx, selected); // depends on control dependency: [if], data = [(idx] } } }
public class class_name { public User updateUser(User userParam) { if(userParam != null && this.serviceTicket != null) { userParam.setServiceTicket(this.serviceTicket); } return new User(this.postJson( userParam, WS.Path.User.Version1.userUpdate())); ...
public class class_name { public User updateUser(User userParam) { if(userParam != null && this.serviceTicket != null) { userParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [if], data = [none] } return new User(this.postJson( ...
public class class_name { private String appendRequestPath(String uri, Map<String, Object> headers) { if (!headers.containsKey(REQUEST_PATH_HEADER_NAME)) { return uri; } String requestUri = uri; String path = headers.get(REQUEST_PATH_HEADER_NAME).toString(); while ...
public class class_name { private String appendRequestPath(String uri, Map<String, Object> headers) { if (!headers.containsKey(REQUEST_PATH_HEADER_NAME)) { return uri; // depends on control dependency: [if], data = [none] } String requestUri = uri; String path = headers.get...
public class class_name { public void marshall(ListSizeConstraintSetsRequest listSizeConstraintSetsRequest, ProtocolMarshaller protocolMarshaller) { if (listSizeConstraintSetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ListSizeConstraintSetsRequest listSizeConstraintSetsRequest, ProtocolMarshaller protocolMarshaller) { if (listSizeConstraintSetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { @Override public void notifyEntryChange(ArtifactNotification added, ArtifactNotification removed, ArtifactNotification modified, String filter) { if (listener != null) { if (isListenerFilterable()) { ((com.ibm.ws.artifact.ArtifactNotifierExtension.Artif...
public class class_name { @Override public void notifyEntryChange(ArtifactNotification added, ArtifactNotification removed, ArtifactNotification modified, String filter) { if (listener != null) { if (isListenerFilterable()) { ((com.ibm.ws.artifact.ArtifactNotifierExtension.Artif...
public class class_name { public static EndpointRef getSourceEndpoint(Trace fragment) { Node rootNode = fragment.getNodes().isEmpty() ? null : fragment.getNodes().get(0); if (rootNode == null) { return null; } // Create endpoint reference. If initial fragment and root node i...
public class class_name { public static EndpointRef getSourceEndpoint(Trace fragment) { Node rootNode = fragment.getNodes().isEmpty() ? null : fragment.getNodes().get(0); if (rootNode == null) { return null; // depends on control dependency: [if], data = [none] } // Create e...
public class class_name { public void fireAction(Action a) { for (Event e : a.getEvents(Action.Hook.PRE)) { e.visit(notificationDispatcher); } a.visit(notificationDispatcher); for (Event e : a.getEvents(Action.Hook.POST)) { e.visit(notificationDispatcher); ...
public class class_name { public void fireAction(Action a) { for (Event e : a.getEvents(Action.Hook.PRE)) { e.visit(notificationDispatcher); // depends on control dependency: [for], data = [e] } a.visit(notificationDispatcher); for (Event e : a.getEvents(Action.Hook.POST))...
public class class_name { public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder getTextEntityExtractionDetailsOrBuilder() { if (detailsCase_ == 13) { return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_; ...
public class class_name { public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder getTextEntityExtractionDetailsOrBuilder() { if (detailsCase_ == 13) { return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_; ...
public class class_name { public void debug(Object message, Throwable t) { if (IS12) { getLogger().log(FQCN, Level.DEBUG, message, t); } else { getLogger().log(FQCN, Level.DEBUG, message, t); } } }
public class class_name { public void debug(Object message, Throwable t) { if (IS12) { getLogger().log(FQCN, Level.DEBUG, message, t); // depends on control dependency: [if], data = [none] } else { getLogger().log(FQCN, Level.DEBUG, message, t); // de...
public class class_name { private static Point computeGridSize( Container container, int numComponents, double aspect) { double containerSizeX = container.getWidth(); double containerSizeY = container.getHeight(); double minTotalWastedSpace = Double.MAX_VALUE; int minW...
public class class_name { private static Point computeGridSize( Container container, int numComponents, double aspect) { double containerSizeX = container.getWidth(); double containerSizeY = container.getHeight(); double minTotalWastedSpace = Double.MAX_VALUE; int minW...
public class class_name { private void initParams() { Object o; if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) { // read params from config o = null; } else { // this is not the initial call, get params fro...
public class class_name { private void initParams() { Object o; if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) { // read params from config o = null; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { private void initClassPath() { /* Classpath can be specified in one of two ways, depending on whether the compilation is embedded or invoked from Jspc. 1. Calculated by the web container, and passed to Jasper in the context attribute. 2....
public class class_name { private void initClassPath() { /* Classpath can be specified in one of two ways, depending on whether the compilation is embedded or invoked from Jspc. 1. Calculated by the web container, and passed to Jasper in the context attribute. 2....
public class class_name { public void marshall(AssociateTargetsWithJobRequest associateTargetsWithJobRequest, ProtocolMarshaller protocolMarshaller) { if (associateTargetsWithJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(AssociateTargetsWithJobRequest associateTargetsWithJobRequest, ProtocolMarshaller protocolMarshaller) { if (associateTargetsWithJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public synchronized void addSSLPropertiesFromKeyStore(WSKeyStore wsks, SSLConfig sslprops) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "addSSLPropertiesFromKeyStore"); for (Enumeration<?> e = wsks.propertyNames(); e.hasMoreEleme...
public class class_name { public synchronized void addSSLPropertiesFromKeyStore(WSKeyStore wsks, SSLConfig sslprops) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "addSSLPropertiesFromKeyStore"); for (Enumeration<?> e = wsks.propertyNames(); e.hasMoreEleme...
public class class_name { @ObjectiveCName("checkCall:withAttempt:") public void checkCall(long callId, int attempt) { if (modules.getCallsModule() != null) { modules.getCallsModule().checkCall(callId, attempt); } } }
public class class_name { @ObjectiveCName("checkCall:withAttempt:") public void checkCall(long callId, int attempt) { if (modules.getCallsModule() != null) { modules.getCallsModule().checkCall(callId, attempt); // depends on control dependency: [if], data = [none] } } }
public class class_name { public ListInventoryEntriesResult withEntries(java.util.Map<String, String>... entries) { if (this.entries == null) { setEntries(new com.amazonaws.internal.SdkInternalList<java.util.Map<String, String>>(entries.length)); } for (java.util.Map<String, String>...
public class class_name { public ListInventoryEntriesResult withEntries(java.util.Map<String, String>... entries) { if (this.entries == null) { setEntries(new com.amazonaws.internal.SdkInternalList<java.util.Map<String, String>>(entries.length)); // depends on control dependency: [if], data = [none...
public class class_name { @Override public InputSource resolveNormalized(String identifier) { String fileName = identifier; if (!fileName.endsWith(".css")) { fileName += ".scss"; } List<Class<?>> excluded = new ArrayList<>(); excluded.add(ISassResourceGenerator.class); Reader rd = null; try { rd ...
public class class_name { @Override public InputSource resolveNormalized(String identifier) { String fileName = identifier; if (!fileName.endsWith(".css")) { fileName += ".scss"; // depends on control dependency: [if], data = [none] } List<Class<?>> excluded = new ArrayList<>(); excluded.add(ISassResour...
public class class_name { void doLoad(XMLReader r) throws KNXMLException { boolean main = false; while (r.getPosition() == XMLReader.START_TAG) { final String tag = r.getCurrent().getName(); if (tag.equals(TAG_EXPIRATION)) { final String a = r.getCurrent().getAttribute(ATTR_TIMEOUT); if (a !=...
public class class_name { void doLoad(XMLReader r) throws KNXMLException { boolean main = false; while (r.getPosition() == XMLReader.START_TAG) { final String tag = r.getCurrent().getName(); if (tag.equals(TAG_EXPIRATION)) { final String a = r.getCurrent().getAttribute(ATTR_TIMEOUT); if (a !=...
public class class_name { public static String getClassPath(Class clazz){ CodeSource codeSource = clazz.getProtectionDomain().getCodeSource(); if(codeSource!=null) return URLUtil.toSystemID(codeSource.getLocation()); else{ URL url = clazz.getResource(clazz.getSimpleName(...
public class class_name { public static String getClassPath(Class clazz){ CodeSource codeSource = clazz.getProtectionDomain().getCodeSource(); if(codeSource!=null) return URLUtil.toSystemID(codeSource.getLocation()); else{ URL url = clazz.getResource(clazz.getSimpleName(...
public class class_name { private int preparedStatement(Cassandra.Client client) { Integer itemId = preparedStatements.get(client); if (itemId == null) { CqlPreparedResult result; try { result = client.prepa...
public class class_name { private int preparedStatement(Cassandra.Client client) { Integer itemId = preparedStatements.get(client); if (itemId == null) { CqlPreparedResult result; try { result = client.prepa...
public class class_name { static ResourceAddress getLowestTransportLayer(ResourceAddress transport) { if (transport.getTransport() != null) { return getLowestTransportLayer(transport.getTransport()); } return transport; } }
public class class_name { static ResourceAddress getLowestTransportLayer(ResourceAddress transport) { if (transport.getTransport() != null) { return getLowestTransportLayer(transport.getTransport()); // depends on control dependency: [if], data = [(transport.getTransport()] } return...
public class class_name { public Collection<String> getHasPluginPrefixes(Map<?, ?> formulaCache) { formula = formula.simplify(formulaCache); if (formula.isTrue()) { return null; } if (formula.isFalse()) { return Collections.emptySet(); } Set<String> result = new HashSet<String>(); for (Boo...
public class class_name { public Collection<String> getHasPluginPrefixes(Map<?, ?> formulaCache) { formula = formula.simplify(formulaCache); if (formula.isTrue()) { return null; // depends on control dependency: [if], data = [none] } if (formula.isFalse()) { return Collections.emptySet(); // depen...
public class class_name { private BaseEntity<?> marshal() { marshalKey(); if (key instanceof Key) { entityBuilder = Entity.newBuilder((Key) key); } else { entityBuilder = FullEntity.newBuilder(key); } marshalFields(); marshalAutoTimestampFields(); if (intent == Intent.UPDATE) { ...
public class class_name { private BaseEntity<?> marshal() { marshalKey(); if (key instanceof Key) { entityBuilder = Entity.newBuilder((Key) key); // depends on control dependency: [if], data = [none] } else { entityBuilder = FullEntity.newBuilder(key); // depends on control dependency: [if], da...
public class class_name { public static Date string2DateISO(String st) { try { return new SimpleDateFormat("yyyy-MM-dd").parse(st); } catch (ParseException e) { throw new InvalidArgumentException(st); } } }
public class class_name { public static Date string2DateISO(String st) { try { return new SimpleDateFormat("yyyy-MM-dd").parse(st); // depends on control dependency: [try], data = [none] } catch (ParseException e) { throw new InvalidArgumentException(st); } // depends on...
public class class_name { private void moveIndexesToNextCombination() { for (int i = currentIndexes.length - 1, j = list.size() - 1; i >= 0; i--, j--) { if (currentIndexes[i] != j) { currentIndexes[i]++; for (int k = i + 1; k < currentIndexes....
public class class_name { private void moveIndexesToNextCombination() { for (int i = currentIndexes.length - 1, j = list.size() - 1; i >= 0; i--, j--) { if (currentIndexes[i] != j) { currentIndexes[i]++; // depends on control dependency: [if], data = [none] ...
public class class_name { private NameInfo getNameInfoForName(String name, SymbolType type) { Map<String, NameInfo> map = type == PROPERTY ? propertyNameInfo : varNameInfo; if (map.containsKey(name)) { return map.get(name); } else { NameInfo nameInfo = new NameInfo(name); map.put(name, na...
public class class_name { private NameInfo getNameInfoForName(String name, SymbolType type) { Map<String, NameInfo> map = type == PROPERTY ? propertyNameInfo : varNameInfo; if (map.containsKey(name)) { return map.get(name); // depends on control dependency: [if], data = [none] } else { NameInfo...
public class class_name { public void deleteObject(Object object) { PersistenceBroker broker = null; try { broker = getBroker(); broker.delete(object); } finally { if (broker != null) broker.close(); } } }
public class class_name { public void deleteObject(Object object) { PersistenceBroker broker = null; try { broker = getBroker(); // depends on control dependency: [try], data = [none] broker.delete(object); // depends on control dependency: [try], data = [none...
public class class_name { private RandomVariable getValueUnderlyingNumeraireRelative(LIBORModelMonteCarloSimulationModel model, Schedule legSchedule, boolean paysFloat, double swaprate, double notional) throws CalculationException { RandomVariable value = model.getRandomVariableForConstant(0.0); for(int period...
public class class_name { private RandomVariable getValueUnderlyingNumeraireRelative(LIBORModelMonteCarloSimulationModel model, Schedule legSchedule, boolean paysFloat, double swaprate, double notional) throws CalculationException { RandomVariable value = model.getRandomVariableForConstant(0.0); for(int period...
public class class_name { private static void convertLastReturnToStatement( Node block, String resultName) { Node ret = block.getLastChild(); checkArgument(ret.isReturn()); Node resultNode = getReplacementReturnStatement(ret, resultName); if (resultNode == null) { block.removeChild(ret); ...
public class class_name { private static void convertLastReturnToStatement( Node block, String resultName) { Node ret = block.getLastChild(); checkArgument(ret.isReturn()); Node resultNode = getReplacementReturnStatement(ret, resultName); if (resultNode == null) { block.removeChild(ret); /...
public class class_name { public GetLoadBalancerTlsCertificatesResult withTlsCertificates(LoadBalancerTlsCertificate... tlsCertificates) { if (this.tlsCertificates == null) { setTlsCertificates(new java.util.ArrayList<LoadBalancerTlsCertificate>(tlsCertificates.length)); } for (Load...
public class class_name { public GetLoadBalancerTlsCertificatesResult withTlsCertificates(LoadBalancerTlsCertificate... tlsCertificates) { if (this.tlsCertificates == null) { setTlsCertificates(new java.util.ArrayList<LoadBalancerTlsCertificate>(tlsCertificates.length)); // depends on control depen...
public class class_name { private List<ViewProperty> getViewPropertiesExcludingField(Bean bean, String excludedFieldName) { List<ViewProperty> result = new ArrayList<>(); for (Property property:bean.properties) { if (!property.relation.isComponentLink() && !property.name.equals(excludedFieldName)) { ...
public class class_name { private List<ViewProperty> getViewPropertiesExcludingField(Bean bean, String excludedFieldName) { List<ViewProperty> result = new ArrayList<>(); for (Property property:bean.properties) { if (!property.relation.isComponentLink() && !property.name.equals(excludedFieldName)) { ...
public class class_name { @Override public void start() { initLogger(); log.info("PROPS start ----------"); props = createProps(); props.loadSystemProperties("sys"); props.loadEnvironment("env"); log.debug("Loaded sys&env props: " + props.countTotalProperties() + " properties."); props.setActivePro...
public class class_name { @Override public void start() { initLogger(); log.info("PROPS start ----------"); props = createProps(); props.loadSystemProperties("sys"); props.loadEnvironment("env"); log.debug("Loaded sys&env props: " + props.countTotalProperties() + " properties."); props.setActivePro...
public class class_name { public static String streamToString(InputStream is, String charsetName) { try { Reader r = null; try { r = new BufferedReader(new InputStreamReader(is, charsetName)); return readerToString(r); } finally { if (r != null) { try { r.close(); } cat...
public class class_name { public static String streamToString(InputStream is, String charsetName) { try { Reader r = null; try { r = new BufferedReader(new InputStreamReader(is, charsetName)); // depends on control dependency: [try], data = [none] return readerToString(r); // depends on control d...
public class class_name { public static Status[] getStatus(String[] pdbIds) { Status[] statuses = new Status[pdbIds.length]; List<Map<String,String>> attrList = getStatusIdRecords(pdbIds); //Expect a single record if(attrList == null || attrList.size() != pdbIds.length) { logger.error("Error getting Status...
public class class_name { public static Status[] getStatus(String[] pdbIds) { Status[] statuses = new Status[pdbIds.length]; List<Map<String,String>> attrList = getStatusIdRecords(pdbIds); //Expect a single record if(attrList == null || attrList.size() != pdbIds.length) { logger.error("Error getting Status...
public class class_name { public ArrayObject make1DStringArray() { int nelems = (getRank() == 0) ? 1 : (int) getSize() / indexCalc.getShape(getRank()-1); Array sarr = Array.factory(DataType.STRING, new int[]{nelems}); IndexIterator newsiter = sarr.getIndexIterator(); ArrayChar.StringIterator site...
public class class_name { public ArrayObject make1DStringArray() { int nelems = (getRank() == 0) ? 1 : (int) getSize() / indexCalc.getShape(getRank()-1); Array sarr = Array.factory(DataType.STRING, new int[]{nelems}); IndexIterator newsiter = sarr.getIndexIterator(); ArrayChar.StringIterator site...
public class class_name { private void updateDisplay(boolean allowEmptyDisplay) { if (!allowEmptyDisplay && mTypedTimes.isEmpty()) { int hour = mTimePicker.getHours(); int minute = mTimePicker.getMinutes(); int second = mTimePicker.getSeconds(); setHour(hour, tru...
public class class_name { private void updateDisplay(boolean allowEmptyDisplay) { if (!allowEmptyDisplay && mTypedTimes.isEmpty()) { int hour = mTimePicker.getHours(); int minute = mTimePicker.getMinutes(); int second = mTimePicker.getSeconds(); setHour(hour, tru...
public class class_name { @Pure public IntegerProperty heightProperty() { if (this.height == null) { this.height = new ReadOnlyIntegerWrapper(this, MathFXAttributeNames.HEIGHT); this.height.bind(Bindings.subtract(maxYProperty(), minYProperty())); } return this.height; } }
public class class_name { @Pure public IntegerProperty heightProperty() { if (this.height == null) { this.height = new ReadOnlyIntegerWrapper(this, MathFXAttributeNames.HEIGHT); // depends on control dependency: [if], data = [none] this.height.bind(Bindings.subtract(maxYProperty(), minYProperty())); // depend...
public class class_name { @PUT @Produces({ MediaType.TEXT_PLAIN }) public Response reportStartup(@QueryParam("bpid") String bpId, @QueryParam("url4cc") String urlForCc, @QueryParam("url4bpc") String urlForBpc) { if (!monitoringService...
public class class_name { @PUT @Produces({ MediaType.TEXT_PLAIN }) public Response reportStartup(@QueryParam("bpid") String bpId, @QueryParam("url4cc") String urlForCc, @QueryParam("url4bpc") String urlForBpc) { if (!monitoringService...
public class class_name { public boolean isDisjunct() { for (int i = 0, n = this.intervals.size() - 1; i < n; i++) { ChronoInterval<T> current = this.intervals.get(i); ChronoInterval<T> next = this.intervals.get(i + 1); if (current.getEnd().isInfinite() || next.getStart().i...
public class class_name { public boolean isDisjunct() { for (int i = 0, n = this.intervals.size() - 1; i < n; i++) { ChronoInterval<T> current = this.intervals.get(i); ChronoInterval<T> next = this.intervals.get(i + 1); if (current.getEnd().isInfinite() || next.getStart().i...
public class class_name { @SuppressWarnings("WeakerAccess") public ApiFuture<List<Instance>> listInstancesAsync() { com.google.bigtable.admin.v2.ListInstancesRequest request = com.google.bigtable.admin.v2.ListInstancesRequest.newBuilder() .setParent(NameUtil.formatProjectName(projectId)) ...
public class class_name { @SuppressWarnings("WeakerAccess") public ApiFuture<List<Instance>> listInstancesAsync() { com.google.bigtable.admin.v2.ListInstancesRequest request = com.google.bigtable.admin.v2.ListInstancesRequest.newBuilder() .setParent(NameUtil.formatProjectName(projectId)) ...
public class class_name { @Override public void afterPropertiesSet() throws Exception { // NOPMD final boolean isQCEnabld = isQCEnabled(); // iterator over the list of possible external resources // only one of the resources should exist // this is to support special locations on ...
public class class_name { @Override public void afterPropertiesSet() throws Exception { // NOPMD final boolean isQCEnabld = isQCEnabled(); // iterator over the list of possible external resources // only one of the resources should exist // this is to support special locations on ...
public class class_name { private static void run(String[] args) { try { LOG.debug("All environment variables: {}", ENV); final String currDir = ENV.get(Environment.PWD.key()); LOG.info("Current working Directory: {}", currDir); final Configuration configuration = GlobalConfiguration.loadConfiguration(...
public class class_name { private static void run(String[] args) { try { LOG.debug("All environment variables: {}", ENV); // depends on control dependency: [try], data = [none] final String currDir = ENV.get(Environment.PWD.key()); LOG.info("Current working Directory: {}", currDir); // depends on control d...
public class class_name { public List<MessageValidator<? extends ValidationContext>> findMessageValidators(String messageType, Message message) { List<MessageValidator<? extends ValidationContext>> matchingValidators = new ArrayList<>(); for (MessageValidator<? extends ValidationContext> validator : m...
public class class_name { public List<MessageValidator<? extends ValidationContext>> findMessageValidators(String messageType, Message message) { List<MessageValidator<? extends ValidationContext>> matchingValidators = new ArrayList<>(); for (MessageValidator<? extends ValidationContext> validator : m...
public class class_name { public void auditProvideAndRegisterDocumentSetEvent(RFC3881EventOutcomeCodes eventOutcome, String repositoryEndpointUri, String userName, String submissionSetUniqueId, String patientId) { if (!isAuditorEnabled()) { return; } auditProvideAndRegisterEvent( new I...
public class class_name { public void auditProvideAndRegisterDocumentSetEvent(RFC3881EventOutcomeCodes eventOutcome, String repositoryEndpointUri, String userName, String submissionSetUniqueId, String patientId) { if (!isAuditorEnabled()) { return; // depends on control dependency: [if], d...
public class class_name { private void obtainStyledAttributes(@Nullable final AttributeSet attributeSet, @AttrRes final int defaultStyle, @StyleRes final int defaultStyleResource) { TypedArray typedArray = getContext() ...
public class class_name { private void obtainStyledAttributes(@Nullable final AttributeSet attributeSet, @AttrRes final int defaultStyle, @StyleRes final int defaultStyleResource) { TypedArray typedArray = getContext() ...
public class class_name { private void fireOnError(ChannelEvent e) { List<EventListener> listeners = changes.getListenerList(AMQP); for (EventListener listener : listeners) { ChannelListener amqpListener = (ChannelListener)listener; amqpListener.onError(e); } } }
public class class_name { private void fireOnError(ChannelEvent e) { List<EventListener> listeners = changes.getListenerList(AMQP); for (EventListener listener : listeners) { ChannelListener amqpListener = (ChannelListener)listener; amqpListener.onError(e); // depends on control...
public class class_name { @Override public Map<String, Collection<String>> getRequireFeatureWithTolerates() { // The feature may be an older feature which never had the tolerates information // stored, in which case, look in the older requireFeature field and massage // that info into the r...
public class class_name { @Override public Map<String, Collection<String>> getRequireFeatureWithTolerates() { // The feature may be an older feature which never had the tolerates information // stored, in which case, look in the older requireFeature field and massage // that info into the r...
public class class_name { public boolean accept(String slashedTypeName, ClassLoader classLoader, ProtectionDomain protectionDomain, byte[] bytes) { if (slashedTypeName == null) { return false; } // Sometimes the package prefix for cglib types is changed, for example: // net/sf/cglib/core/AbstractClassGen...
public class class_name { public boolean accept(String slashedTypeName, ClassLoader classLoader, ProtectionDomain protectionDomain, byte[] bytes) { if (slashedTypeName == null) { return false; // depends on control dependency: [if], data = [none] } // Sometimes the package prefix for cglib types is changed...
public class class_name { public Criteria in(Iterable<?> values) { Assert.notNull(values, "Collection of 'in' values must not be null"); for (Object value : values) { if (value instanceof Collection) { in((Collection<?>) value); } else { is(value); } } return this; } }
public class class_name { public Criteria in(Iterable<?> values) { Assert.notNull(values, "Collection of 'in' values must not be null"); for (Object value : values) { if (value instanceof Collection) { in((Collection<?>) value); // depends on control dependency: [if], data = [none] } else { is(value)...
public class class_name { @Override public JsonObject deepCopy() { JsonObject result = new JsonObject(); for (Map.Entry<String, JsonElement> entry : members.entrySet()) { result.add(entry.getKey(), entry.getValue().deepCopy()); } return result; } }
public class class_name { @Override public JsonObject deepCopy() { JsonObject result = new JsonObject(); for (Map.Entry<String, JsonElement> entry : members.entrySet()) { result.add(entry.getKey(), entry.getValue().deepCopy()); // depends on control dependency: [for], data = [entry] } return re...
public class class_name { public final hqlParser.fromClassOrOuterQueryPath_return fromClassOrOuterQueryPath() throws RecognitionException { hqlParser.fromClassOrOuterQueryPath_return retval = new hqlParser.fromClassOrOuterQueryPath_return(); retval.start = input.LT(1); CommonTree root_0 = null; ParserRuleRet...
public class class_name { public final hqlParser.fromClassOrOuterQueryPath_return fromClassOrOuterQueryPath() throws RecognitionException { hqlParser.fromClassOrOuterQueryPath_return retval = new hqlParser.fromClassOrOuterQueryPath_return(); retval.start = input.LT(1); CommonTree root_0 = null; ParserRuleRet...
public class class_name { @Override public void waveHandled(final Wave wave) { this.index++; // Run next command if any if (this.waveList.size() > this.index) { // Try to run the next wave unqueueWaves(); } else { // No more wave to process, we ca...
public class class_name { @Override public void waveHandled(final Wave wave) { this.index++; // Run next command if any if (this.waveList.size() > this.index) { // Try to run the next wave unqueueWaves(); // depends on control dependency: [if], data = [none] ...
public class class_name { public static void setFloat(MemorySegment[] segments, int offset, float value) { if (inFirstSegment(segments, offset, 4)) { segments[0].putFloat(offset, value); } else { setFloatMultiSegments(segments, offset, value); } } }
public class class_name { public static void setFloat(MemorySegment[] segments, int offset, float value) { if (inFirstSegment(segments, offset, 4)) { segments[0].putFloat(offset, value); // depends on control dependency: [if], data = [none] } else { setFloatMultiSegments(segments, offset, value); // depends ...
public class class_name { @Nullable public static com.linecorp.centraldogma.common.EntryType convertEntryType(EntryType type) { if (type == null) { return null; } switch (type) { case JSON: return com.linecorp.centraldogma.common.EntryType.JSON; ...
public class class_name { @Nullable public static com.linecorp.centraldogma.common.EntryType convertEntryType(EntryType type) { if (type == null) { return null; // depends on control dependency: [if], data = [none] } switch (type) { case JSON: return...
public class class_name { static String pullFontPathFromStyle(Context context, AttributeSet attrs, int[] attributeId) { if (attributeId == null || attrs == null) return null; final TypedArray typedArray = context.obtainStyledAttributes(attrs, attributeId); if (typedArray != null) { ...
public class class_name { static String pullFontPathFromStyle(Context context, AttributeSet attrs, int[] attributeId) { if (attributeId == null || attrs == null) return null; final TypedArray typedArray = context.obtainStyledAttributes(attrs, attributeId); if (typedArray != null) { ...
public class class_name { public String getRequiredSymbol(String key) { String result = null; Object symbol = getSymbol(key); if (symbol == null) { throw new FitFailureException("No Symbol defined with key: " + key); } else { result = symbol.toString(); }...
public class class_name { public String getRequiredSymbol(String key) { String result = null; Object symbol = getSymbol(key); if (symbol == null) { throw new FitFailureException("No Symbol defined with key: " + key); } else { result = symbol.toString(); // depend...
public class class_name { public static Date string2DateLocal(String date) { Date ret; try { ret = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).parse(date); } catch (Exception e) { throw new InvalidArgumentException(date); } return ...
public class class_name { public static Date string2DateLocal(String date) { Date ret; try { ret = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()).parse(date); // depends on control dependency: [try], data = [none] } catch (Exception e) { throw new Inv...
public class class_name { public void marshall(UpdateDefaultBranchRequest updateDefaultBranchRequest, ProtocolMarshaller protocolMarshaller) { if (updateDefaultBranchRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public void marshall(UpdateDefaultBranchRequest updateDefaultBranchRequest, ProtocolMarshaller protocolMarshaller) { if (updateDefaultBranchRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { private String extractAttributes(SoyMsg msg) { StringBuilder attributes = new StringBuilder(); Matcher matcher = MESSAGE_ATTRIBUTE_PATTERN.matcher(msg.getDesc()); while (matcher.find()) { attributes.append(matcher.group()); } return attributes.toString(); } }
public class class_name { private String extractAttributes(SoyMsg msg) { StringBuilder attributes = new StringBuilder(); Matcher matcher = MESSAGE_ATTRIBUTE_PATTERN.matcher(msg.getDesc()); while (matcher.find()) { attributes.append(matcher.group()); // depends on control dependency: [while], data = [...
public class class_name { public NodeList validate(Document xmlEntity, String schemaRef, String phase) { if (xmlEntity == null || xmlEntity.getDocumentElement() == null) throw new IllegalArgumentException("No XML entity supplied (null)."); InputSource xmlInputSource = null; tr...
public class class_name { public NodeList validate(Document xmlEntity, String schemaRef, String phase) { if (xmlEntity == null || xmlEntity.getDocumentElement() == null) throw new IllegalArgumentException("No XML entity supplied (null)."); InputSource xmlInputSource = null; tr...
public class class_name { private Object doPrivileged(final String methodName, final Class<?>[] clazz, Object[] params) { try { Method method = context.getClass().getMethod(methodName, clazz); return executeMethod(method, context, params); } catch (Exception ex) { t...
public class class_name { private Object doPrivileged(final String methodName, final Class<?>[] clazz, Object[] params) { try { Method method = context.getClass().getMethod(methodName, clazz); return executeMethod(method, context, params); // depends on control dependency: [try], data ...
public class class_name { public final @NotNull S is(@NotNull Condition<A> condition) { if (matches(condition)) { return myself(); } failIfCustomMessageIsSet(); throw failure(errorMessageIfIsNot(condition)); } }
public class class_name { public final @NotNull S is(@NotNull Condition<A> condition) { if (matches(condition)) { return myself(); // depends on control dependency: [if], data = [none] } failIfCustomMessageIsSet(); throw failure(errorMessageIfIsNot(condition)); } }
public class class_name { public static List<Field> getAllFields(Class<?> clas) { JK.fixMe("add caching.."); List<Field> list = new Vector<>(); // start by fields from the super class if (clas.getSuperclass() != null) { list.addAll(getAllFields(clas.getSuperclass())); } Field[] fields = clas.getD...
public class class_name { public static List<Field> getAllFields(Class<?> clas) { JK.fixMe("add caching.."); List<Field> list = new Vector<>(); // start by fields from the super class if (clas.getSuperclass() != null) { list.addAll(getAllFields(clas.getSuperclass())); // depends on control dependency:...
public class class_name { protected void parseTypeDefs(Document doc) { // Parse type definitions. Handy to match against defined AVP types // and to fill AVPs with generic function. // Format: <typedefn type-name="Integer32" /> // <typedefn type-name="Enumerated" type-parent="Integer32" />...
public class class_name { protected void parseTypeDefs(Document doc) { // Parse type definitions. Handy to match against defined AVP types // and to fill AVPs with generic function. // Format: <typedefn type-name="Integer32" /> // <typedefn type-name="Enumerated" type-parent="Integer32" />...
public class class_name { private void expandDirNodes(SpatialPrimitiveDistanceFunction<V> distFunction, DeLiCluNode node1, DeLiCluNode node2) { if(LOG.isDebuggingFinest()) { LOG.debugFinest("ExpandDirNodes: " + node1.getPageID() + " + " + node2.getPageID()); } int numEntries_1 = node1.getNumEntries()...
public class class_name { private void expandDirNodes(SpatialPrimitiveDistanceFunction<V> distFunction, DeLiCluNode node1, DeLiCluNode node2) { if(LOG.isDebuggingFinest()) { LOG.debugFinest("ExpandDirNodes: " + node1.getPageID() + " + " + node2.getPageID()); // depends on control dependency: [if], data = [no...
public class class_name { public static String generateJobTableWithResourceInfo(String label, Collection<JobInProgress> jobs, int refresh, int rowId, JobTracker tracker) throws IOException { ResourceReporter reporter = tracker.getResourceReporter(); if (reporter == null) { return gen...
public class class_name { public static String generateJobTableWithResourceInfo(String label, Collection<JobInProgress> jobs, int refresh, int rowId, JobTracker tracker) throws IOException { ResourceReporter reporter = tracker.getResourceReporter(); if (reporter == null) { return gen...
public class class_name { private String getParameter(String paramKey, String defaultValue) { String paramValue = defaultValue; if (StringUtils.isNotBlank(paramKey) && args != null && args.length > 0) { for (String arg : args) { String[] parameter = arg.split("="); ...
public class class_name { private String getParameter(String paramKey, String defaultValue) { String paramValue = defaultValue; if (StringUtils.isNotBlank(paramKey) && args != null && args.length > 0) { for (String arg : args) { String[] parameter = arg.split("="); ...
public class class_name { public void setSessionBackupAsync( final boolean sessionBackupAsync ) { final boolean oldSessionBackupAsync = _sessionBackupAsync; _sessionBackupAsync = sessionBackupAsync; if ( ( oldSessionBackupAsync != sessionBackupAsync ) && _manager.isInitialized() ) { ...
public class class_name { public void setSessionBackupAsync( final boolean sessionBackupAsync ) { final boolean oldSessionBackupAsync = _sessionBackupAsync; _sessionBackupAsync = sessionBackupAsync; if ( ( oldSessionBackupAsync != sessionBackupAsync ) && _manager.isInitialized() ) { ...
public class class_name { private JPanel getPaneSelect() { if (paneSelect == null) { paneSelect = new JPanel(); paneSelect.setLayout(new BorderLayout(0,0)); paneSelect.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); paneSelect.add(getTabbedSelect()); } return paneSelect; } }
public class class_name { private JPanel getPaneSelect() { if (paneSelect == null) { paneSelect = new JPanel(); // depends on control dependency: [if], data = [none] paneSelect.setLayout(new BorderLayout(0,0)); // depends on control dependency: [if], data = [none] paneSelect.setBorder(BorderFactory.crea...
public class class_name { public int convexHullSize() { int ans = 0; Iterator<Vector3> it = this.getConvexHullVerticesIterator(); while (it.hasNext()) { ans++; it.next(); } return ans; } }
public class class_name { public int convexHullSize() { int ans = 0; Iterator<Vector3> it = this.getConvexHullVerticesIterator(); while (it.hasNext()) { ans++; // depends on control dependency: [while], data = [none] it.next(); // depends on control dependency: [while], data = [none] } return an...
public class class_name { @SneakyThrows protected Ticket encodeTicket(final Ticket ticket) { if (!isCipherExecutorEnabled()) { LOGGER.trace(MESSAGE); return ticket; } if (ticket == null) { LOGGER.debug("Ticket passed is null and cannot be encoded"); ...
public class class_name { @SneakyThrows protected Ticket encodeTicket(final Ticket ticket) { if (!isCipherExecutorEnabled()) { LOGGER.trace(MESSAGE); // depends on control dependency: [if], data = [none] return ticket; // depends on control dependency: [if], data = [none] } ...
public class class_name { public String getReadMethod() { if ( getterName != null ) { return getterName; } String prefix; if ( "boolean".equals( this.type ) ) { prefix = "is"; } else { prefix = "get"; } return prefix + this.name.substring(...
public class class_name { public String getReadMethod() { if ( getterName != null ) { return getterName; // depends on control dependency: [if], data = [none] } String prefix; if ( "boolean".equals( this.type ) ) { prefix = "is"; // depends on control dependency: [if], data ...
public class class_name { @SuppressWarnings("rawtypes") @Override public List<Handler> getHandlerChain(PortInfo paramPortInfo) { List<Handler> handlers = handlersMap.get(paramPortInfo); if (handlers == null) { handlers = createHandlerFromHandlerInfo(paramPortInfo); hand...
public class class_name { @SuppressWarnings("rawtypes") @Override public List<Handler> getHandlerChain(PortInfo paramPortInfo) { List<Handler> handlers = handlersMap.get(paramPortInfo); if (handlers == null) { handlers = createHandlerFromHandlerInfo(paramPortInfo); // depends on co...
public class class_name { public static Token[] convertToRPN(final String expression, final Map<String, Function> userFunctions, final Map<String, Operator> userOperators, final Set<String> variableNames, final boolean implicitMultiplication){ final Stack<Token> stack = new Stack<Token>(); ...
public class class_name { public static Token[] convertToRPN(final String expression, final Map<String, Function> userFunctions, final Map<String, Operator> userOperators, final Set<String> variableNames, final boolean implicitMultiplication){ final Stack<Token> stack = new Stack<Token>(); ...
public class class_name { @Override public void cacheResult( List<CommerceTaxFixedRateAddressRel> commerceTaxFixedRateAddressRels) { for (CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel : commerceTaxFixedRateAddressRels) { if (entityCache.getResult( CommerceTaxFixedRateAddressRelModelImpl.E...
public class class_name { @Override public void cacheResult( List<CommerceTaxFixedRateAddressRel> commerceTaxFixedRateAddressRels) { for (CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel : commerceTaxFixedRateAddressRels) { if (entityCache.getResult( CommerceTaxFixedRateAddressRelModelImpl.E...
public class class_name { public static void transformMessage(String strXMLIn, String strXMLOut, String strTransformer) { try { Reader reader = new FileReader(strXMLIn); Writer stringWriter = new FileWriter(strXMLOut); Reader readerxsl = new FileReader(strT...
public class class_name { public static void transformMessage(String strXMLIn, String strXMLOut, String strTransformer) { try { Reader reader = new FileReader(strXMLIn); Writer stringWriter = new FileWriter(strXMLOut); Reader readerxsl = new FileReader(strT...
public class class_name { public ProjectionCT makeCoordinateTransform(AttributeContainer ctv, String units) { int[] area = getIntArray(ctv, McIDASAreaProjection.ATTR_AREADIR); int[] nav = getIntArray(ctv, McIDASAreaProjection.ATTR_NAVBLOCK); int[] aux = null; if (ctv.findAttributeIgnoreCase(McIDA...
public class class_name { public ProjectionCT makeCoordinateTransform(AttributeContainer ctv, String units) { int[] area = getIntArray(ctv, McIDASAreaProjection.ATTR_AREADIR); int[] nav = getIntArray(ctv, McIDASAreaProjection.ATTR_NAVBLOCK); int[] aux = null; if (ctv.findAttributeIgnoreCase(McIDA...
public class class_name { @Override public int compare(ProposalPersonContract person1, ProposalPersonContract person2) { int retval = 0; if (person1.isInvestigator() || person2.isInvestigator()) { if (person1.isPrincipalInvestigator() || person2.isPr...
public class class_name { @Override public int compare(ProposalPersonContract person1, ProposalPersonContract person2) { int retval = 0; if (person1.isInvestigator() || person2.isInvestigator()) { if (person1.isPrincipalInvestigator() || person2.isPr...
public class class_name { @Override public void clear() { final ReentrantLock lock = this.lock; lock.lock(); try { setArray(new Object[0]); } finally { lock.unlock(); } } }
public class class_name { @Override public void clear() { final ReentrantLock lock = this.lock; lock.lock(); try { setArray(new Object[0]); // depends on control dependency: [try], data = [none] } finally { lock.unlock(); } } }
public class class_name { public void makeScoreHashMethod(CtClass scClass) { // Map of previously extracted PMML names, and their java equivs HashMap<String,String> vars = new HashMap<String,String>(); StringBuilder sb = new StringBuilder(); sb.append("double score( java.util.HashMap row ) {\n"+ ...
public class class_name { public void makeScoreHashMethod(CtClass scClass) { // Map of previously extracted PMML names, and their java equivs HashMap<String,String> vars = new HashMap<String,String>(); StringBuilder sb = new StringBuilder(); sb.append("double score( java.util.HashMap row ) {\n"+ ...