code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private boolean checkBodyValidity() throws IOException { // LI4335 - allow response body reading if early reads are in place if (isImmediateReadEnabled() || this.bEarlyReads) { if (!headersParsed()) { // this means they are requesting body buffers p...
public class class_name { private boolean checkBodyValidity() throws IOException { // LI4335 - allow response body reading if early reads are in place if (isImmediateReadEnabled() || this.bEarlyReads) { if (!headersParsed()) { // this means they are requesting body buffers p...
public class class_name { @Override @Trivial public String dump() { assertNotClosed(); StringBuilder sb = new StringBuilder(); Set<String> keys = getKeySet(); keys = new TreeSet<String>(keys); Iterator<String> keyItr = keys.iterator(); while (keyItr.hasNext()) { ...
public class class_name { @Override @Trivial public String dump() { assertNotClosed(); StringBuilder sb = new StringBuilder(); Set<String> keys = getKeySet(); keys = new TreeSet<String>(keys); Iterator<String> keyItr = keys.iterator(); while (keyItr.hasNext()) { ...
public class class_name { public Optional<String> getMajorUrlParameter() { if (customMajorParam != null) { return Optional.of(customMajorParam); } Optional<Integer> majorParameterPosition = endpoint.getMajorParameterPosition(); if (!majorParameterPosition.isPresent()) { ...
public class class_name { public Optional<String> getMajorUrlParameter() { if (customMajorParam != null) { return Optional.of(customMajorParam); // depends on control dependency: [if], data = [(customMajorParam] } Optional<Integer> majorParameterPosition = endpoint.getMajorParameter...
public class class_name { protected void removeRareFeatures(Map<Object, Double> featureCounts, int rareFeatureThreshold) { logger.debug("removeRareFeatures()"); Iterator<Map.Entry<Object, Double>> it = featureCounts.entrySet().iterator(); while(it.hasNext()) { Map.Entry<Object, Dou...
public class class_name { protected void removeRareFeatures(Map<Object, Double> featureCounts, int rareFeatureThreshold) { logger.debug("removeRareFeatures()"); Iterator<Map.Entry<Object, Double>> it = featureCounts.entrySet().iterator(); while(it.hasNext()) { Map.Entry<Object, Dou...
public class class_name { public CommandResponse execute(GwtCommand request) { if (request != null) { return commandDispatcher.execute(request.getCommandName(), request.getCommandRequest(), request.getUserToken(), request.getLocale()); } return null; } }
public class class_name { public CommandResponse execute(GwtCommand request) { if (request != null) { return commandDispatcher.execute(request.getCommandName(), request.getCommandRequest(), request.getUserToken(), request.getLocale()); // depends on control dependency: [if], data = [(request] } return nu...
public class class_name { public static List<Group> getUnalignedGroups(Atom[] ca) { Set<Chain> chains = new HashSet<Chain>(); Set<Group> caGroups = new HashSet<Group>(); // Create list of all chains in this structure Structure s = null; if (ca.length > 0) { Group g = ca[0].getGroup(); if (g != null) {...
public class class_name { public static List<Group> getUnalignedGroups(Atom[] ca) { Set<Chain> chains = new HashSet<Chain>(); Set<Group> caGroups = new HashSet<Group>(); // Create list of all chains in this structure Structure s = null; if (ca.length > 0) { Group g = ca[0].getGroup(); if (g != null) {...
public class class_name { private void purge() { if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled()) SibTr.entry(this, _tc, "purge"); Iterator<Map.Entry<K,TimedValue<V>>> it = _realMap.entrySet().iterator(); while (it.hasNext()) { Map.Entry<K,TimedValue<V>> entry = it.next(); ...
public class class_name { private void purge() { if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled()) SibTr.entry(this, _tc, "purge"); Iterator<Map.Entry<K,TimedValue<V>>> it = _realMap.entrySet().iterator(); while (it.hasNext()) { Map.Entry<K,TimedValue<V>> entry = it.next(); ...
public class class_name { public static Unmarshaller createUnmarshaller(Class clazz) { try { JAXBContext jaxbContext = getJaxbContext(clazz); return jaxbContext.createUnmarshaller(); } catch (JAXBException e) { throw ExceptionUtil.unchecked(e); } } }
public class class_name { public static Unmarshaller createUnmarshaller(Class clazz) { try { JAXBContext jaxbContext = getJaxbContext(clazz); return jaxbContext.createUnmarshaller(); // depends on control dependency: [try], data = [none] } catch (JAXBException e) { throw ExceptionUtil.unchecked(e); } //...
public class class_name { public static void deleteMetadata(GeoPackageCore geoPackage, String table) { MetadataReferenceDao metadataReferenceDao = geoPackage .getMetadataReferenceDao(); try { if (metadataReferenceDao.isTableExists()) { metadataReferenceDao.deleteByTableName(table); } } catch (SQLE...
public class class_name { public static void deleteMetadata(GeoPackageCore geoPackage, String table) { MetadataReferenceDao metadataReferenceDao = geoPackage .getMetadataReferenceDao(); try { if (metadataReferenceDao.isTableExists()) { metadataReferenceDao.deleteByTableName(table); // depends on contro...
public class class_name { public void setDomain(Vec2 ... verts){ dom = new Vertex(this); vertexCount = verts.length; this.setOrient(0.0f); getPosition().set( getCentroid(orderVertex(verts)).x, getCentroid(orderVertex(verts)).y ); Vec2[] halfPoly = new Vec2[verts.length]; for (int i = 0; i < verts.length; i...
public class class_name { public void setDomain(Vec2 ... verts){ dom = new Vertex(this); vertexCount = verts.length; this.setOrient(0.0f); getPosition().set( getCentroid(orderVertex(verts)).x, getCentroid(orderVertex(verts)).y ); Vec2[] halfPoly = new Vec2[verts.length]; for (int i = 0; i < verts.length; i...
public class class_name { @SuppressWarnings("static-method") public ITextReplacerContext fix(final ITextReplacerContext context, IComment comment) { final IHiddenRegion hiddenRegion = comment.getHiddenRegion(); if (detectBugSituation(hiddenRegion) && fixBug(hiddenRegion)) { // Indentation of the first comment ...
public class class_name { @SuppressWarnings("static-method") public ITextReplacerContext fix(final ITextReplacerContext context, IComment comment) { final IHiddenRegion hiddenRegion = comment.getHiddenRegion(); if (detectBugSituation(hiddenRegion) && fixBug(hiddenRegion)) { // Indentation of the first comment ...
public class class_name { @SuppressWarnings("unchecked") public T setSheet(int sheetIndex) { try { this.sheet = this.workbook.getSheetAt(sheetIndex); } catch (IllegalArgumentException e) { this.sheet = this.workbook.createSheet(); } if (null == this.sheet) { this.sheet = this.workbook.createS...
public class class_name { @SuppressWarnings("unchecked") public T setSheet(int sheetIndex) { try { this.sheet = this.workbook.getSheetAt(sheetIndex); // depends on control dependency: [try], data = [none] } catch (IllegalArgumentException e) { this.sheet = this.workbook.createSheet(); } // depends ...
public class class_name { @Override public void dropSchema() { if (operation != null && ("create-drop").equalsIgnoreCase(operation)) { for (TableInfo tableInfo : tableInfos) { removeBucket(tableInfo.getTableName()); } } cluster...
public class class_name { @Override public void dropSchema() { if (operation != null && ("create-drop").equalsIgnoreCase(operation)) { for (TableInfo tableInfo : tableInfos) { removeBucket(tableInfo.getTableName()); // depends on control dependency: [for]...
public class class_name { public WebACL withRules(ActivatedRule... rules) { if (this.rules == null) { setRules(new java.util.ArrayList<ActivatedRule>(rules.length)); } for (ActivatedRule ele : rules) { this.rules.add(ele); } return this; } }
public class class_name { public WebACL withRules(ActivatedRule... rules) { if (this.rules == null) { setRules(new java.util.ArrayList<ActivatedRule>(rules.length)); // depends on control dependency: [if], data = [none] } for (ActivatedRule ele : rules) { this.rules.add(...
public class class_name { private Tenant getTenant(Map<String, String> variableMap) { String tenantName = variableMap.get("tenant"); if (Utils.isEmpty(tenantName)) { tenantName = TenantService.instance().getDefaultTenantName(); } Tenant tenant = TenantService.instance()...
public class class_name { private Tenant getTenant(Map<String, String> variableMap) { String tenantName = variableMap.get("tenant"); if (Utils.isEmpty(tenantName)) { tenantName = TenantService.instance().getDefaultTenantName(); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public void close () throws IOException { try { SmbFileHandleImpl h = this.handle; if ( h != null ) { h.close(); } } catch ( SmbException se ) { throw seToIoe(se); } finally {...
public class class_name { @Override public void close () throws IOException { try { SmbFileHandleImpl h = this.handle; if ( h != null ) { h.close(); } } catch ( SmbException se ) { throw seToIoe(se); } finally {...
public class class_name { public long offer(final DirectBufferVector[] vectors) { if (headerVector != vectors[0]) { vectors[0] = headerVector; } return publication.offer(vectors, null); } }
public class class_name { public long offer(final DirectBufferVector[] vectors) { if (headerVector != vectors[0]) { vectors[0] = headerVector; // depends on control dependency: [if], data = [none] } return publication.offer(vectors, null); } }
public class class_name { private static void buildNodeName(Node node, StringBuffer buffer) { if (node.getParentNode() == null) { return; } buildNodeName(node.getParentNode(), buffer); if (node.getParentNode() != null && node.getParentNode().getParentNode()...
public class class_name { private static void buildNodeName(Node node, StringBuffer buffer) { if (node.getParentNode() == null) { return; // depends on control dependency: [if], data = [none] } buildNodeName(node.getParentNode(), buffer); if (node.getParentNode() != null ...
public class class_name { public PipelineConfig withFunctions(String... functions) { if (this.functions == null) { setFunctions(new java.util.ArrayList<String>(functions.length)); } for (String ele : functions) { this.functions.add(ele); } return this; ...
public class class_name { public PipelineConfig withFunctions(String... functions) { if (this.functions == null) { setFunctions(new java.util.ArrayList<String>(functions.length)); // depends on control dependency: [if], data = [none] } for (String ele : functions) { this...
public class class_name { public Multimap<String, String> getOrCreate(String index) { Multimap<String, String> mmap = storeMap.get(index); if (mmap == null) { SetMultimap<String, String> multimap = Multimaps.newSetMultimap(new HashMap<String, Collection<String>>(), ...
public class class_name { public Multimap<String, String> getOrCreate(String index) { Multimap<String, String> mmap = storeMap.get(index); if (mmap == null) { SetMultimap<String, String> multimap = Multimaps.newSetMultimap(new HashMap<String, Collection<String>>(), ...
public class class_name { public UNode toDoc() { UNode paramNode = UNode.createMapNode(m_name); if (!Utils.isEmpty(m_type)) { paramNode.addValueNode("_type", m_type); } if (m_isRequired) { paramNode.addValueNode("_required", Boolean.toString(m_isRequired)); ...
public class class_name { public UNode toDoc() { UNode paramNode = UNode.createMapNode(m_name); if (!Utils.isEmpty(m_type)) { paramNode.addValueNode("_type", m_type); // depends on control dependency: [if], data = [none] } if (m_isRequired) { paramNode.addValueNo...
public class class_name { private Triangle insertPointSimple(Set<Vector3> vertices, Vector3 p) { if (!allCollinear) { return insertNonColinear(p); } else { return insertColinear(vertices, p); } } }
public class class_name { private Triangle insertPointSimple(Set<Vector3> vertices, Vector3 p) { if (!allCollinear) { return insertNonColinear(p); // depends on control dependency: [if], data = [none] } else { return insertColinear(vertices, p); // depends on control dependency: [if], data = [none] } ...
public class class_name { private static BeanDefinition buildRetryOperationDefinition(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder .rootBeanDefinition(RETRY_OPERATIONS_CLASS_NAME); builder.addPropertyValue("retryPolicy", buildRetryPolicyDefinition...
public class class_name { private static BeanDefinition buildRetryOperationDefinition(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder .rootBeanDefinition(RETRY_OPERATIONS_CLASS_NAME); builder.addPropertyValue("retryPolicy", buildRetryPolicyDefinition...
public class class_name { protected boolean orderByColumnsCoverUniqueKeys() { // In theory, if EVERY table in the query has a uniqueness constraint // (primary key or other unique index) on columns that are all listed in the ORDER BY values, // the result is deterministic. // This holds...
public class class_name { protected boolean orderByColumnsCoverUniqueKeys() { // In theory, if EVERY table in the query has a uniqueness constraint // (primary key or other unique index) on columns that are all listed in the ORDER BY values, // the result is deterministic. // This holds...
public class class_name { public void sendToUsers(String topicURI, Object event, Set<String> eligibleUsers) { Set<String> eligibleSessionIds = null; if (eligibleUsers != null && !eligibleUsers.isEmpty()) { eligibleSessionIds = new HashSet<>(eligibleUsers.size()); for (String user : eligibleUsers) { for...
public class class_name { public void sendToUsers(String topicURI, Object event, Set<String> eligibleUsers) { Set<String> eligibleSessionIds = null; if (eligibleUsers != null && !eligibleUsers.isEmpty()) { eligibleSessionIds = new HashSet<>(eligibleUsers.size()); // depends on control dependency: [if], data = ...
public class class_name { private void crossSecond1withNValues(T2 val1, T1 firstValN, Iterator<T1> valsN, GenericJoiner<T1, T2, O> matchFunction, Collector<O> collector) throws Exception { this.copy2 = this.serializer2.copy(val1, this.copy2); matchFunction.join(firstValN, this.copy2, collector); // set c...
public class class_name { private void crossSecond1withNValues(T2 val1, T1 firstValN, Iterator<T1> valsN, GenericJoiner<T1, T2, O> matchFunction, Collector<O> collector) throws Exception { this.copy2 = this.serializer2.copy(val1, this.copy2); matchFunction.join(firstValN, this.copy2, collector); // set c...
public class class_name { private static void printGroupInfo(final PrintWriter out, final ThreadGroup group, final String indent) { if (group == null) { return; } final int numThreads = group.activeCount(); final int numGroups = group.activeGroupCount(); fina...
public class class_name { private static void printGroupInfo(final PrintWriter out, final ThreadGroup group, final String indent) { if (group == null) { return; // depends on control dependency: [if], data = [none] } final int numThreads = group.activeCount(); final i...
public class class_name { public static void deleteIfExists(File file) throws IOException { if (file.exists()) { if (file.isFile()) { if (!file.delete()) { throw new IOException("Delete file failure,path:" + file.getAbsolutePath()); } } else { File[] files = file.listF...
public class class_name { public static void deleteIfExists(File file) throws IOException { if (file.exists()) { if (file.isFile()) { if (!file.delete()) { throw new IOException("Delete file failure,path:" + file.getAbsolutePath()); } } else { File[] files = file.listF...
public class class_name { @Override public void normalise(ProjectCalendar calendar, LinkedList<TimephasedWork> list) { if (!list.isEmpty()) { //dumpList(list); splitDays(calendar, list); //dumpList(list); mergeSameDay(calendar, list); //dumpList(list); ...
public class class_name { @Override public void normalise(ProjectCalendar calendar, LinkedList<TimephasedWork> list) { if (!list.isEmpty()) { //dumpList(list); splitDays(calendar, list); // depends on control dependency: [if], data = [none] //dumpList(list); mergeSame...
public class class_name { public static boolean isAlpha(String in) { char c = 0; for (int i = in.length(); i > 0; i--) { c = in.charAt(i - 1); if (!Character.isLetter(c)) { return false; } } return true; } }
public class class_name { public static boolean isAlpha(String in) { char c = 0; for (int i = in.length(); i > 0; i--) { c = in.charAt(i - 1); // depends on control dependency: [for], data = [i] if (!Character.isLetter(c)) { return false; // depends on control dependency: [if], data = [none] } } r...
public class class_name { public void execute(InterpreterSelector interpreterSelector) { AbstractSpecification spec = new FilteredSpecification( start ); while (spec.hasMoreExamples() && canContinue( stats )) { Interpreter interpreter = interpreterSelector.selectInterpreter( sp...
public class class_name { public void execute(InterpreterSelector interpreterSelector) { AbstractSpecification spec = new FilteredSpecification( start ); while (spec.hasMoreExamples() && canContinue( stats )) { Interpreter interpreter = interpreterSelector.selectInterpreter( sp...
public class class_name { @Override protected void handleEvents(final String EVENT_TYPE) { if ("REDRAW".equals(EVENT_TYPE)) { pane.setEffect(gauge.isShadowsEnabled() ? mainInnerShadow1 : null); shadowGroup.setEffect(gauge.isShadowsEnabled() ? FOREGROUND_SHADOW : null); updat...
public class class_name { @Override protected void handleEvents(final String EVENT_TYPE) { if ("REDRAW".equals(EVENT_TYPE)) { pane.setEffect(gauge.isShadowsEnabled() ? mainInnerShadow1 : null); // depends on control dependency: [if], data = [none] shadowGroup.setEffect(gauge.isShadowsEn...
public class class_name { private void bubbleUpNodeTable(DAGraph<DataT, NodeT> from, LinkedList<String> path) { if (path.contains(from.rootNode.key())) { path.push(from.rootNode.key()); // For better error message throw new IllegalStateException("Detected circular dependency: " + String...
public class class_name { private void bubbleUpNodeTable(DAGraph<DataT, NodeT> from, LinkedList<String> path) { if (path.contains(from.rootNode.key())) { path.push(from.rootNode.key()); // For better error message // depends on control dependency: [if], data = [none] throw new IllegalSt...
public class class_name { public static <T> List<T> subList(final List<T> list, int pageSize, int page) { if (pageSize <= 0 || page == 0) { return Collections.EMPTY_LIST; } int size = list.size(); int fromIndex = page > 0 ? (page - 1) * pageSize : size + (page * pageSize); int ...
public class class_name { public static <T> List<T> subList(final List<T> list, int pageSize, int page) { if (pageSize <= 0 || page == 0) { return Collections.EMPTY_LIST; // depends on control dependency: [if], data = [none] } int size = list.size(); int fromIndex = page > 0 ? (page - 1)...
public class class_name { protected boolean is4YearTerm(Term<?> term) { if(!(term instanceof DateTerm.YearTerm)) { return false; } DateTerm.YearTerm yearTerm = (DateTerm.YearTerm)term; if(yearTerm.getFormat().length() == 4) { return true; } ...
public class class_name { protected boolean is4YearTerm(Term<?> term) { if(!(term instanceof DateTerm.YearTerm)) { return false; // depends on control dependency: [if], data = [none] } DateTerm.YearTerm yearTerm = (DateTerm.YearTerm)term; if(yearTerm.getFormat().len...
public class class_name { public void start(Xid xid, int flags) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "start", new Object[] { ivManagedConnection, AdapterUtil.toString(xid), Adapt...
public class class_name { public void start(Xid xid, int flags) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "start", new Object[] { ivManagedConnection, AdapterUtil.toString(xid), Adapt...
public class class_name { @Override public void index(ByteBuffer key, ColumnFamily columnFamily) { Log.debug("Indexing row %s in index %s ", key, logName); lock.readLock().lock(); try { if (rowService != null) { long timestamp = System.currentTimeMillis(); ...
public class class_name { @Override public void index(ByteBuffer key, ColumnFamily columnFamily) { Log.debug("Indexing row %s in index %s ", key, logName); lock.readLock().lock(); try { if (rowService != null) { long timestamp = System.currentTimeMillis(); ...
public class class_name { int guessFluffedDataSize() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "guessFluffedDataSize"); int total = 0; // If we have a fluffed up in memory map ... if (bodyMap != null) { // Add the overhead for the map itself. ...
public class class_name { int guessFluffedDataSize() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "guessFluffedDataSize"); int total = 0; // If we have a fluffed up in memory map ... if (bodyMap != null) { // Add the overhead for the map itself. ...
public class class_name { private void search(double[] q, Node node, Neighbor<double[], E> neighbor) { if (node.isLeaf()) { // look at all the instances in this leaf for (int idx = node.index; idx < node.index + node.count; idx++) { if (q == keys[index[idx]] && identical...
public class class_name { private void search(double[] q, Node node, Neighbor<double[], E> neighbor) { if (node.isLeaf()) { // look at all the instances in this leaf for (int idx = node.index; idx < node.index + node.count; idx++) { if (q == keys[index[idx]] && identical...
public class class_name { private static List<String> resolveValues(final Iterable<? extends String> values) { final List<String> valuesList = new ArrayList<String>(); for(final String value : values) { Validate.notNull(value, "One of the specified values was null"); valuesList...
public class class_name { private static List<String> resolveValues(final Iterable<? extends String> values) { final List<String> valuesList = new ArrayList<String>(); for(final String value : values) { Validate.notNull(value, "One of the specified values was null"); // depends on control ...
public class class_name { public void marshall(GetRelationalDatabaseRequest getRelationalDatabaseRequest, ProtocolMarshaller protocolMarshaller) { if (getRelationalDatabaseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(GetRelationalDatabaseRequest getRelationalDatabaseRequest, ProtocolMarshaller protocolMarshaller) { if (getRelationalDatabaseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void addMessage(String key, String value) { if (m_bundleMap != null) { m_bundleMap.put(key, value); } } }
public class class_name { public void addMessage(String key, String value) { if (m_bundleMap != null) { m_bundleMap.put(key, value); // depends on control dependency: [if], data = [none] } } }
public class class_name { private OMMapBufferEntry[] acquire(final OFileMMap iFile, final long iBeginOffset, final int iSize, final boolean iForce, final OMMapManager.OPERATION_TYPE iOperationType, final OMMapManager.ALLOC_STRATEGY iStrategy) { if (iStrategy == OMMapManager.ALLOC_STRATEGY.MMAP_NEVER) ...
public class class_name { private OMMapBufferEntry[] acquire(final OFileMMap iFile, final long iBeginOffset, final int iSize, final boolean iForce, final OMMapManager.OPERATION_TYPE iOperationType, final OMMapManager.ALLOC_STRATEGY iStrategy) { if (iStrategy == OMMapManager.ALLOC_STRATEGY.MMAP_NEVER) ...
public class class_name { @Reference(authors = "T. Ooura", // title = "Gamma / Error Functions", booktitle = "", // url = "http://www.kurims.kyoto-u.ac.jp/~ooura/gamerf.html", // bibkey = "web/Ooura96") public static double erfc(double x) { if(Double.isNaN(x)) { return Double.NaN; } ...
public class class_name { @Reference(authors = "T. Ooura", // title = "Gamma / Error Functions", booktitle = "", // url = "http://www.kurims.kyoto-u.ac.jp/~ooura/gamerf.html", // bibkey = "web/Ooura96") public static double erfc(double x) { if(Double.isNaN(x)) { return Double.NaN; // depe...
public class class_name { public BinarySparseDataset parse(String name, InputStream stream) throws IOException, ParseException { try (BufferedReader reader = new BufferedReader(new InputStreamReader(stream))) { BinarySparseDataset sparse = new BinarySparseDataset(name); String l...
public class class_name { public BinarySparseDataset parse(String name, InputStream stream) throws IOException, ParseException { try (BufferedReader reader = new BufferedReader(new InputStreamReader(stream))) { BinarySparseDataset sparse = new BinarySparseDataset(name); String l...
public class class_name { public AccessLogOption prepareAccessLogOption(BootLogger logger, Properties props, List<String> readConfigList) { // null allowed if (props == null) { return null; } final String enabled = props.getProperty("tomcat.accesslog.enabled"); if (enabled =...
public class class_name { public AccessLogOption prepareAccessLogOption(BootLogger logger, Properties props, List<String> readConfigList) { // null allowed if (props == null) { return null; // depends on control dependency: [if], data = [none] } final String enabled = props.getPrope...
public class class_name { public static Point2d get2DCenter(Iterator<IAtom> atoms) { IAtom atom; double xsum = 0; double ysum = 0; int length = 0; while (atoms.hasNext()) { atom = (IAtom) atoms.next(); if (atom.getPoint2d() != null) { xsum...
public class class_name { public static Point2d get2DCenter(Iterator<IAtom> atoms) { IAtom atom; double xsum = 0; double ysum = 0; int length = 0; while (atoms.hasNext()) { atom = (IAtom) atoms.next(); // depends on control dependency: [while], data = [none] ...
public class class_name { public void marshall(SubModule subModule, ProtocolMarshaller protocolMarshaller) { if (subModule == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(subModule.getCommitId(), ...
public class class_name { public void marshall(SubModule subModule, ProtocolMarshaller protocolMarshaller) { if (subModule == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(subModule.getCommitId(), ...
public class class_name { public void marshall(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest, ProtocolMarshaller protocolMarshaller) { if (updateFunctionConfigurationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest, ProtocolMarshaller protocolMarshaller) { if (updateFunctionConfigurationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { private void createOrUpdateColumnFamily(TableInfo tableInfo, KsDef ksDef) throws Exception { MetaDataHandler handler = new MetaDataHandler(); if (containsCompositeKey(tableInfo)) { validateCompoundKey(tableInfo); createOrUpdateUsingCQL3(tab...
public class class_name { private void createOrUpdateColumnFamily(TableInfo tableInfo, KsDef ksDef) throws Exception { MetaDataHandler handler = new MetaDataHandler(); if (containsCompositeKey(tableInfo)) { validateCompoundKey(tableInfo); createOrUpdateUsingCQL3(tab...
public class class_name { @Override public synchronized void rollback(boolean chain) { // tempActionHistory.add("rollback " + actionTimestamp); if (isClosed) { return; } if (!isTransaction) { isReadOnly = isReadOnlyDefault; isolationMo...
public class class_name { @Override public synchronized void rollback(boolean chain) { // tempActionHistory.add("rollback " + actionTimestamp); if (isClosed) { return; // depends on control dependency: [if], data = [none] } if (!isTransaction) { isRe...
public class class_name { public static <C extends Comparable> boolean isLessThan(final Range<C> range, final C value) { checkNotNull(range); checkNotNull(value); if (!range.hasUpperBound()) { return false; } if (range.upperBoundType() == BoundType.OPEN && range.upp...
public class class_name { public static <C extends Comparable> boolean isLessThan(final Range<C> range, final C value) { checkNotNull(range); checkNotNull(value); if (!range.hasUpperBound()) { return false; // depends on control dependency: [if], data = [none] } if ...
public class class_name { public static String getExtensionFromMimeType(String mimeType) { if (mimeType == null || mimeType.length() == 0) { return null; } return mimeTypeToExtensionMap.get(mimeType); } }
public class class_name { public static String getExtensionFromMimeType(String mimeType) { if (mimeType == null || mimeType.length() == 0) { return null; // depends on control dependency: [if], data = [none] } return mimeTypeToExtensionMap.get(mimeType); } }
public class class_name { public static String breakTextAtWords(String text, String insert, int lineSize) { StringBuilder buff = new StringBuilder(); StringTokenizer stoker = new StringTokenizer(text); int lineCount = 0; while (stoker.hasMoreTokens()) { String tok = stoker.nextToken(); ...
public class class_name { public static String breakTextAtWords(String text, String insert, int lineSize) { StringBuilder buff = new StringBuilder(); StringTokenizer stoker = new StringTokenizer(text); int lineCount = 0; while (stoker.hasMoreTokens()) { String tok = stoker.nextToken(); ...
public class class_name { private Producer<EncodedImage> newEncodedCacheMultiplexToTranscodeSequence( Producer<EncodedImage> inputProducer) { if (WebpSupportStatus.sIsWebpSupportRequired && (!mWebpSupportEnabled || WebpSupportStatus.sWebpBitmapFactory == null)) { inputProducer = mProducerFactor...
public class class_name { private Producer<EncodedImage> newEncodedCacheMultiplexToTranscodeSequence( Producer<EncodedImage> inputProducer) { if (WebpSupportStatus.sIsWebpSupportRequired && (!mWebpSupportEnabled || WebpSupportStatus.sWebpBitmapFactory == null)) { inputProducer = mProducerFactor...
public class class_name { final public void And() throws ParseException { Equality(); label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND0: case AND1: ; break; default: jj_la1[12] = jj_gen; break label_8; } switch ((jj...
public class class_name { final public void And() throws ParseException { Equality(); label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND0: case AND1: ; break; default: jj_la1[12] = jj_gen; break label_8; } switch ((jj...
public class class_name { protected static boolean fetchAnonymousAccessTokenIfNeeded(final String userId, final ResponseHandler onFetchedHandler) { if (!WonderPush.isInitialized()) { // Note: Could use WonderPush.safeDefer() here but as we require consent to proceed, // let's use Wonder...
public class class_name { protected static boolean fetchAnonymousAccessTokenIfNeeded(final String userId, final ResponseHandler onFetchedHandler) { if (!WonderPush.isInitialized()) { // Note: Could use WonderPush.safeDefer() here but as we require consent to proceed, // let's use Wonder...
public class class_name { public static Stream<Record> decode(final Stream<Statement> stream, @Nullable final Iterable<? extends URI> types, @Nullable final Boolean chunked) { Preconditions.checkNotNull(stream); if (types != null) { stream.setProperty("types", types); } ...
public class class_name { public static Stream<Record> decode(final Stream<Statement> stream, @Nullable final Iterable<? extends URI> types, @Nullable final Boolean chunked) { Preconditions.checkNotNull(stream); if (types != null) { stream.setProperty("types", types); // depends...
public class class_name { @Override public void reset(boolean shuffle) { this.position.set(0); if (shuffle) { logger.debug("Calling shuffle() on entries..."); // https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm for (int i = order.le...
public class class_name { @Override public void reset(boolean shuffle) { this.position.set(0); if (shuffle) { logger.debug("Calling shuffle() on entries..."); // depends on control dependency: [if], data = [none] // https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#...
public class class_name { public static <S, I, O> LYResult<S, I, O> compute(final MealyMachine<S, I, ?, O> automaton, final Alphabet<I> input) { final SplitTreeResult<S, I, O> str = computeSplitTree(automaton, input); if (str.isPresent()) { ...
public class class_name { public static <S, I, O> LYResult<S, I, O> compute(final MealyMachine<S, I, ?, O> automaton, final Alphabet<I> input) { final SplitTreeResult<S, I, O> str = computeSplitTree(automaton, input); if (str.isPresent()) { ...
public class class_name { static HSL toHSL( double color ) { long argb = Double.doubleToRawLongBits( color ); double a = alpha( color ); double r = clamp( ((argb >> 32) & 0xFFFF) / (double)0xFF00 ); double g = clamp( ((argb >> 16) & 0xFFFF) / (double)0xFF00 ); double b = clamp( ...
public class class_name { static HSL toHSL( double color ) { long argb = Double.doubleToRawLongBits( color ); double a = alpha( color ); double r = clamp( ((argb >> 32) & 0xFFFF) / (double)0xFF00 ); double g = clamp( ((argb >> 16) & 0xFFFF) / (double)0xFF00 ); double b = clamp( ...
public class class_name { public double computeAnomalySupervised(RuleClassification rl, int ruleIndex, Instance inst) { //Not supervised ArrayList<Integer> caseAnomalyTemp = new ArrayList<Integer>(); ArrayList<ArrayList<Double>> AttribAnomalyStatisticTemp2 = new ArrayList<ArrayList<Double>>(); double D ...
public class class_name { public double computeAnomalySupervised(RuleClassification rl, int ruleIndex, Instance inst) { //Not supervised ArrayList<Integer> caseAnomalyTemp = new ArrayList<Integer>(); ArrayList<ArrayList<Double>> AttribAnomalyStatisticTemp2 = new ArrayList<ArrayList<Double>>(); double D ...
public class class_name { public ServiceCall<ListCollectionFieldsResponse> listCollectionFields( ListCollectionFieldsOptions listCollectionFieldsOptions) { Validator.notNull(listCollectionFieldsOptions, "listCollectionFieldsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collectio...
public class class_name { public ServiceCall<ListCollectionFieldsResponse> listCollectionFields( ListCollectionFieldsOptions listCollectionFieldsOptions) { Validator.notNull(listCollectionFieldsOptions, "listCollectionFieldsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collectio...
public class class_name { private static boolean isValidStandardOperator(final Element e) { if (e.getKind() == ElementKind.FIELD) { return e.getModifiers().containsAll(EnumSet.of(Modifier.PUBLIC, Modifier.STATIC, Modifier.FINAL)); } if (e.getKind() == ElementKind.METHOD) { ...
public class class_name { private static boolean isValidStandardOperator(final Element e) { if (e.getKind() == ElementKind.FIELD) { return e.getModifiers().containsAll(EnumSet.of(Modifier.PUBLIC, Modifier.STATIC, Modifier.FINAL)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public String getPoolName() { if (CmsStringUtil.isEmpty(m_poolName)) { // use default pool as pool name m_poolName = OpenCms.getSqlManager().getDefaultDbPoolName(); } return m_poolName; } }
public class class_name { public String getPoolName() { if (CmsStringUtil.isEmpty(m_poolName)) { // use default pool as pool name m_poolName = OpenCms.getSqlManager().getDefaultDbPoolName(); // depends on control dependency: [if], data = [none] } return m_poolName; ...
public class class_name { public void marshall(ListClustersRequest listClustersRequest, ProtocolMarshaller protocolMarshaller) { if (listClustersRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(ListClustersRequest listClustersRequest, ProtocolMarshaller protocolMarshaller) { if (listClustersRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { Map<Archive, Set<Archive>> dependences() { Map<Archive, Set<Archive>> map = new HashMap<>(); parsedArchives.values().stream() .flatMap(Deque::stream) .filter(a -> !a.isEmpty()) .forEach(source -> { Set<Archive> deps = getDepe...
public class class_name { Map<Archive, Set<Archive>> dependences() { Map<Archive, Set<Archive>> map = new HashMap<>(); parsedArchives.values().stream() .flatMap(Deque::stream) .filter(a -> !a.isEmpty()) .forEach(source -> { Set<Archive> deps = getDepe...
public class class_name { private void createTasksForTable(Table table, List<DataTargetInfo> dataTargets, AtomicInteger numTables, SnapshotRegistry.Snapshot snapshotRecord, ...
public class class_name { private void createTasksForTable(Table table, List<DataTargetInfo> dataTargets, AtomicInteger numTables, SnapshotRegistry.Snapshot snapshotRecord, ...
public class class_name { private static Platform determinePlatformReflectively() { if (System.getProperty("com.google.appengine.runtime.environment") == null) { return Platform.STANDARD; } // GAE_LONG_APP_ID is only set in the GAE Flexible Environment, where we want standard thread...
public class class_name { private static Platform determinePlatformReflectively() { if (System.getProperty("com.google.appengine.runtime.environment") == null) { return Platform.STANDARD; // depends on control dependency: [if], data = [none] } // GAE_LONG_APP_ID is only set in the G...
public class class_name { @Override protected Object getOptionValue(Queue<String> argq) { String name = argq.remove(); File file = new File(name); if (mustExist && !file.isFile()) { System.err.println("File does not exist: '" + name + "'"); System.exit(1); } return file; } }
public class class_name { @Override protected Object getOptionValue(Queue<String> argq) { String name = argq.remove(); File file = new File(name); if (mustExist && !file.isFile()) { System.err.println("File does not exist: '" + name + "'"); // depends on control dependency: [if], data = [none] ...
public class class_name { @SuppressWarnings("UnusedDeclaration") public void init() throws Exception { initBuilderSpecific(); resetFields(); if (!UserPluginInfo.NO_PLUGIN_KEY.equals(getSelectedStagingPluginName())) { PluginSettings selectedStagingPluginSettings = getSelectedStag...
public class class_name { @SuppressWarnings("UnusedDeclaration") public void init() throws Exception { initBuilderSpecific(); resetFields(); if (!UserPluginInfo.NO_PLUGIN_KEY.equals(getSelectedStagingPluginName())) { PluginSettings selectedStagingPluginSettings = getSelectedStag...
public class class_name { public void mergeDuplicate() { for(int i = 0; i < labels.size(); i++) for(int j = i + 1; j < labels.size(); j++){ T tagi = labels.get(i); T tagj = labels.get(j); if(tagi.equals(tagj)){ scores.set(i, scores.get(i) + scores.get(j)); labels.remove(j); scor...
public class class_name { public void mergeDuplicate() { for(int i = 0; i < labels.size(); i++) for(int j = i + 1; j < labels.size(); j++){ T tagi = labels.get(i); T tagj = labels.get(j); if(tagi.equals(tagj)){ scores.set(i, scores.get(i) + scores.get(j)); // depends on control dependency:...
public class class_name { public Date getStart() { Date result = (Date) getCachedValue(AssignmentField.START); if (result == null) { result = getTask().getStart(); } return result; } }
public class class_name { public Date getStart() { Date result = (Date) getCachedValue(AssignmentField.START); if (result == null) { result = getTask().getStart(); // depends on control dependency: [if], data = [none] } return result; } }
public class class_name { @Override public void ready(VirtualConnection inVC) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "ready, vc=" + getVCHash()); } // Double check for error condition where close already happened. Protective measure. ...
public class class_name { @Override public void ready(VirtualConnection inVC) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "ready, vc=" + getVCHash()); // depends on control dependency: [if], data = [none] } // Double check for error conditio...
public class class_name { public void marshall(StartSelector startSelector, ProtocolMarshaller protocolMarshaller) { if (startSelector == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(startSelector...
public class class_name { public void marshall(StartSelector startSelector, ProtocolMarshaller protocolMarshaller) { if (startSelector == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(startSelector...
public class class_name { public TimelineEvent merge(TimelineEvent event, Collection<TimelineEvent> events, TimelineUpdater timelineUpdater) { if (event == null) { // nothing to merge return null; } if (events == null || events.isEmpty()) { // nothing to mer...
public class class_name { public TimelineEvent merge(TimelineEvent event, Collection<TimelineEvent> events, TimelineUpdater timelineUpdater) { if (event == null) { // nothing to merge return null; // depends on control dependency: [if], data = [none] } if (events == nul...
public class class_name { public Node getLastChild() { ElemTemplateElement lastChild = null; for (ElemTemplateElement node = m_firstChild; node != null; node = node.m_nextSibling) { lastChild = node; } return lastChild; } }
public class class_name { public Node getLastChild() { ElemTemplateElement lastChild = null; for (ElemTemplateElement node = m_firstChild; node != null; node = node.m_nextSibling) { lastChild = node; // depends on control dependency: [for], data = [node] } return lastChild; ...
public class class_name { public static void javaMethodParam2WhereConditions(MethodSpec.Builder methodBuilder, SQLiteModelMethod method, String methodParamName, String paramName, TypeName paramType) { if (method.hasAdapterForParam(methodParamName)) { checkTypeAdapterForParam(method, methodParamName, BindSq...
public class class_name { public static void javaMethodParam2WhereConditions(MethodSpec.Builder methodBuilder, SQLiteModelMethod method, String methodParamName, String paramName, TypeName paramType) { if (method.hasAdapterForParam(methodParamName)) { checkTypeAdapterForParam(method, methodParamName, BindSq...
public class class_name { public static Collection<?> createEmptyCollectionForType(Class<?> fieldType, int initialSize) { rejectUnsupportedTypes(fieldType); Collection<?> collection; try { collection = (Collection<?>) fieldType.newInstance(); } catch (InstantiationException ...
public class class_name { public static Collection<?> createEmptyCollectionForType(Class<?> fieldType, int initialSize) { rejectUnsupportedTypes(fieldType); Collection<?> collection; try { collection = (Collection<?>) fieldType.newInstance(); // depends on control dependency: [try],...
public class class_name { @Override public CPOption fetchByGroupId_Last(long groupId, OrderByComparator<CPOption> orderByComparator) { int count = countByGroupId(groupId); if (count == 0) { return null; } List<CPOption> list = findByGroupId(groupId, count - 1, count, orderByComparator); if (!lis...
public class class_name { @Override public CPOption fetchByGroupId_Last(long groupId, OrderByComparator<CPOption> orderByComparator) { int count = countByGroupId(groupId); if (count == 0) { return null; // depends on control dependency: [if], data = [none] } List<CPOption> list = findByGroupId(groupId,...
public class class_name { static boolean isWifi(Context context) { if (context == null) { return false; } ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (manager == null) { return false; } NetworkInfo info = ma...
public class class_name { static boolean isWifi(Context context) { if (context == null) { return false; // depends on control dependency: [if], data = [none] } ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (manager == null)...
public class class_name { public void marshall(SubscribeToDatasetRequest subscribeToDatasetRequest, ProtocolMarshaller protocolMarshaller) { if (subscribeToDatasetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public void marshall(SubscribeToDatasetRequest subscribeToDatasetRequest, ProtocolMarshaller protocolMarshaller) { if (subscribeToDatasetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { void logInfo(final String message) { if(logger != null) { try { StringBuilder buf = new StringBuilder(name); buf.append(": "); buf.append(message); logger.info(buf.toString()); } catch(Throwable t) { ...
public class class_name { void logInfo(final String message) { if(logger != null) { try { StringBuilder buf = new StringBuilder(name); buf.append(": "); // depends on control dependency: [try], data = [none] buf.append(message); // depends on control dependency: [try]...
public class class_name { public S transform(TypeDescription instrumentedType, S target) { for (Transformer<S> transformer : transformers) { target = transformer.transform(instrumentedType, target); } return target; } }
public class class_name { public S transform(TypeDescription instrumentedType, S target) { for (Transformer<S> transformer : transformers) { target = transformer.transform(instrumentedType, target); // depends on control dependency: [for], data = [transformer] } retu...
public class class_name { private MessageItem getMessageItem() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMessageItem"); MessageItem msg = null; try { msg = (MessageItem) getReferredItem(); } catch (Message...
public class class_name { private MessageItem getMessageItem() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMessageItem"); MessageItem msg = null; try { msg = (MessageItem) getReferredItem(); // depends on control de...
public class class_name { public boolean sendJoinRequest(Address toAddress, boolean withCredentials) { if (toAddress == null) { toAddress = clusterService.getMasterAddress(); } JoinRequestOp joinRequest = new JoinRequestOp(node.createJoinRequest(withCredentials)); return nod...
public class class_name { public boolean sendJoinRequest(Address toAddress, boolean withCredentials) { if (toAddress == null) { toAddress = clusterService.getMasterAddress(); // depends on control dependency: [if], data = [none] } JoinRequestOp joinRequest = new JoinRequestOp(node.c...
public class class_name { public static SimpleTransaction beginTransaction(javax.sql.DataSource dataSource, IsolationLevel isolationLevel) throws UncheckedSQLException { N.checkArgNotNull(dataSource); N.checkArgNotNull(isolationLevel); final String ttid = SimpleTransaction.getTransactionTh...
public class class_name { public static SimpleTransaction beginTransaction(javax.sql.DataSource dataSource, IsolationLevel isolationLevel) throws UncheckedSQLException { N.checkArgNotNull(dataSource); N.checkArgNotNull(isolationLevel); final String ttid = SimpleTransaction.getTransactionTh...
public class class_name { public static int compareVersions(String v1, String v2) { String[] components1 = split(v1); String[] components2 = split(v2); int diff; int length = Math.min(components1.length, components2.length); for (int i = 0; i < length; i++) { String ...
public class class_name { public static int compareVersions(String v1, String v2) { String[] components1 = split(v1); String[] components2 = split(v2); int diff; int length = Math.min(components1.length, components2.length); for (int i = 0; i < length; i++) { String ...
public class class_name { protected URI doPostCreateMultipart(String path, InputStream inputStream, MultivaluedMap<String, String> headers) throws ClientException { this.readLock.lock(); try { WebResource.Builder requestBuilder = getResourceWrapper().rewritten(path, HttpMethod.POST).getRequ...
public class class_name { protected URI doPostCreateMultipart(String path, InputStream inputStream, MultivaluedMap<String, String> headers) throws ClientException { this.readLock.lock(); try { WebResource.Builder requestBuilder = getResourceWrapper().rewritten(path, HttpMethod.POST).getRequ...
public class class_name { public boolean hasMoreElements() { try { return hasMoreElementsR(); } catch (NoMoreElementsException e) { // FFDCFilter.processException(e, CLASS_NAME + ".hasMoreElements", "131", this); return false; } catch (EnumeratorException...
public class class_name { public boolean hasMoreElements() { try { return hasMoreElementsR(); // depends on control dependency: [try], data = [none] } catch (NoMoreElementsException e) { // FFDCFilter.processException(e, CLASS_NAME + ".hasMoreElements", "131", this); ...
public class class_name { void feedback(Object from, String from_out, Object to, String to_in) { // add them to the set of commands if (from == to) { throw new ComponentException("src == dest."); } if (to_in == null || from_out == null) { throw new ComponentExcep...
public class class_name { void feedback(Object from, String from_out, Object to, String to_in) { // add them to the set of commands if (from == to) { throw new ComponentException("src == dest."); } if (to_in == null || from_out == null) { throw new ComponentExcep...
public class class_name { public void loadPictureInThread( URL imageUrl, int priority, double rotation ) { if ( pictureStatusCode == LOADING ) { stopLoadingExcept( imageUrl ); } this.imageUrl = imageUrl; this.rotation = rotation; LoadThread t = new LoadThread( this ); t.setPriority( priority ); t.s...
public class class_name { public void loadPictureInThread( URL imageUrl, int priority, double rotation ) { if ( pictureStatusCode == LOADING ) { stopLoadingExcept( imageUrl ); // depends on control dependency: [if], data = [none] } this.imageUrl = imageUrl; this.rotation = rotation; LoadThread t = new ...
public class class_name { private String unexternalizeImageRef(String ref) { String unexternalizedRef = ref; if (StringUtils.isNotEmpty(unexternalizedRef)) { // decode if required unexternalizedRef = decodeIfEncoded(unexternalizedRef); // TODO: implementation has to be aligned with MediaSo...
public class class_name { private String unexternalizeImageRef(String ref) { String unexternalizedRef = ref; if (StringUtils.isNotEmpty(unexternalizedRef)) { // decode if required unexternalizedRef = decodeIfEncoded(unexternalizedRef); // depends on control dependency: [if], data = [none] ...
public class class_name { public static String getAt(String list, String delimiter, int position, boolean ignoreEmpty, String defaultValue) { if (delimiter.length() == 1) return getAt(list, delimiter.charAt(0), position, ignoreEmpty, defaultValue); int len = list.length(); if (len == 0) return defaultValue; int l...
public class class_name { public static String getAt(String list, String delimiter, int position, boolean ignoreEmpty, String defaultValue) { if (delimiter.length() == 1) return getAt(list, delimiter.charAt(0), position, ignoreEmpty, defaultValue); int len = list.length(); if (len == 0) return defaultValue; int l...
public class class_name { public static List<URL> getResources(String resourceName, Class<?> callingClass) { Enumeration<URL> em = null; try { em = Thread.currentThread().getContextClassLoader().getResources(resourceName); if (!em.hasMoreElements()) { em = ClassLoaders.class.getClassLoader(...
public class class_name { public static List<URL> getResources(String resourceName, Class<?> callingClass) { Enumeration<URL> em = null; try { em = Thread.currentThread().getContextClassLoader().getResources(resourceName); // depends on control dependency: [try], data = [none] if (!em.hasMoreElemen...
public class class_name { public void marshall(FaultRootCause faultRootCause, ProtocolMarshaller protocolMarshaller) { if (faultRootCause == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(faultRootC...
public class class_name { public void marshall(FaultRootCause faultRootCause, ProtocolMarshaller protocolMarshaller) { if (faultRootCause == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(faultRootC...
public class class_name { public static DMatrixRMaj extractColumn(DMatrixRMaj a , int column , DMatrixRMaj out ) { if( out == null) out = new DMatrixRMaj(a.numRows,1); else if( !MatrixFeatures_DDRM.isVector(out) || out.getNumElements() != a.numRows ) throw new MatrixDimensionExc...
public class class_name { public static DMatrixRMaj extractColumn(DMatrixRMaj a , int column , DMatrixRMaj out ) { if( out == null) out = new DMatrixRMaj(a.numRows,1); else if( !MatrixFeatures_DDRM.isVector(out) || out.getNumElements() != a.numRows ) throw new MatrixDimensionExc...
public class class_name { private Criteria buildCriteria(QueryModel queryModel) { Criteria criteria = getCurrentSession().createCriteria(persistentClass); if (queryModel.getConditions() != null) { for (Condition condition : queryModel.getConditions()) { criteria.add((Criter...
public class class_name { private Criteria buildCriteria(QueryModel queryModel) { Criteria criteria = getCurrentSession().createCriteria(persistentClass); if (queryModel.getConditions() != null) { for (Condition condition : queryModel.getConditions()) { criteria.add((Criter...
public class class_name { public static List<Field> sortSuperTypesLast(Collection<? extends Field> unsortedFields) { List<Field> fields = new ArrayList<Field>(unsortedFields); Collections.sort(fields, compareFieldsByName); int i = 0; while (i < fields.size() - 1) { Field ...
public class class_name { public static List<Field> sortSuperTypesLast(Collection<? extends Field> unsortedFields) { List<Field> fields = new ArrayList<Field>(unsortedFields); Collections.sort(fields, compareFieldsByName); int i = 0; while (i < fields.size() - 1) { Field ...
public class class_name { @Override public final void setItem(final ServiceToSale pService) { this.item = pService; if (this.itsId == null) { this.itsId = new ServicePlaceId(); } this.itsId.setItem(this.item); } }
public class class_name { @Override public final void setItem(final ServiceToSale pService) { this.item = pService; if (this.itsId == null) { this.itsId = new ServicePlaceId(); // depends on control dependency: [if], data = [none] } this.itsId.setItem(this.item); } }