code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void register(InstanceInfo registrant, int leaseDuration, boolean isReplication) { try { read.lock(); Map<String, Lease<InstanceInfo>> gMap = registry.get(registrant.getAppName()); REGISTER.increment(isReplication); if (gMap == nu...
public class class_name { public void register(InstanceInfo registrant, int leaseDuration, boolean isReplication) { try { read.lock(); // depends on control dependency: [try], data = [none] Map<String, Lease<InstanceInfo>> gMap = registry.get(registrant.getAppName()); REGIST...
public class class_name { public OIndex<?> createIndex(final String iType) { acquireSchemaReadLock(); try { return owner.createIndex(getFullName(), iType, globalRef.getName()); } finally { releaseSchemaReadLock(); } } }
public class class_name { public OIndex<?> createIndex(final String iType) { acquireSchemaReadLock(); try { return owner.createIndex(getFullName(), iType, globalRef.getName()); // depends on control dependency: [try], data = [none] } finally { releaseSchemaReadLock(); } } }
public class class_name { public void setSize(I_CmsButton.Size size) { if (m_size != null) { removeStyleName(m_size.getCssClassName()); } if (size != null) { addStyleName(size.getCssClassName()); } m_size = size; } }
public class class_name { public void setSize(I_CmsButton.Size size) { if (m_size != null) { removeStyleName(m_size.getCssClassName()); // depends on control dependency: [if], data = [(m_size] } if (size != null) { addStyleName(size.getCssClassName()); // depends on con...
public class class_name { @SuppressWarnings("unchecked") @Override public <WB extends WaveBean> WB waveBean(final Class<WB> waveBeanClass) { if (!getWaveBeanMap().containsKey(waveBeanClass)) { try { final WB waveBean = waveBeanClass.newInstance(); getWaveBea...
public class class_name { @SuppressWarnings("unchecked") @Override public <WB extends WaveBean> WB waveBean(final Class<WB> waveBeanClass) { if (!getWaveBeanMap().containsKey(waveBeanClass)) { try { final WB waveBean = waveBeanClass.newInstance(); getWaveBea...
public class class_name { public void setTextFontFamilyName(byte[] fields, String[] fontFamilies) { if (fontFamilies == null) fontFamilies = new String[0]; for (byte field : fields) { getFieldInfos(field).m_fontFamilyNames = fontFamilies; } notifyListeners(); } }
public class class_name { public void setTextFontFamilyName(byte[] fields, String[] fontFamilies) { if (fontFamilies == null) fontFamilies = new String[0]; for (byte field : fields) { getFieldInfos(field).m_fontFamilyNames = fontFamilies; // depends on control dependency: [for], data = [f...
public class class_name { protected void onSetColumnNames() { columnNames = ReflectionExtensions.getDeclaredFieldNames(getType(), "serialVersionUID"); for(int i = 0; i < columnNames.length; i++){ columnNames[i] = StringUtils.capitalize(columnNames[i]); } } }
public class class_name { protected void onSetColumnNames() { columnNames = ReflectionExtensions.getDeclaredFieldNames(getType(), "serialVersionUID"); for(int i = 0; i < columnNames.length; i++){ columnNames[i] = StringUtils.capitalize(columnNames[i]); // depends on control dependency: [for], data = [i] } }...
public class class_name { public static String generateDigitsString(int length) { StringBuffer buf = new StringBuffer(length); SecureRandom rand = new SecureRandom(); for (int i = 0; i < length; i++) { buf.append(rand.nextInt(digits.length)); } return buf.toString();...
public class class_name { public static String generateDigitsString(int length) { StringBuffer buf = new StringBuffer(length); SecureRandom rand = new SecureRandom(); for (int i = 0; i < length; i++) { buf.append(rand.nextInt(digits.length)); // depends on control dependency: [for],...
public class class_name { public void initializeRangesEmpty(int numAtt, double[][] ranges) { for (int j = 0; j < numAtt; j++) { ranges[j][R_MIN] = Double.POSITIVE_INFINITY; ranges[j][R_MAX] = -Double.POSITIVE_INFINITY; ranges[j][R_WIDTH] = Double.POSITIVE_INFINITY; } } }
public class class_name { public void initializeRangesEmpty(int numAtt, double[][] ranges) { for (int j = 0; j < numAtt; j++) { ranges[j][R_MIN] = Double.POSITIVE_INFINITY; // depends on control dependency: [for], data = [j] ranges[j][R_MAX] = -Double.POSITIVE_INFINITY; // depends on control dependency...
public class class_name { private static int calculateWidthOfJustifiedSpaceInPixels(final Font font, final String s, final int leftWidth) { int space = 0; // hold total space; hold space width in pixel int curpos = 0; // current string position // count total space while (curpos < s.length()) { if (s.ch...
public class class_name { private static int calculateWidthOfJustifiedSpaceInPixels(final Font font, final String s, final int leftWidth) { int space = 0; // hold total space; hold space width in pixel int curpos = 0; // current string position // count total space while (curpos < s.length()) { if (s.ch...
public class class_name { public void setRecordDetails(java.util.Collection<RecordDetail> recordDetails) { if (recordDetails == null) { this.recordDetails = null; return; } this.recordDetails = new java.util.ArrayList<RecordDetail>(recordDetails); } }
public class class_name { public void setRecordDetails(java.util.Collection<RecordDetail> recordDetails) { if (recordDetails == null) { this.recordDetails = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { @Deprecated @Override public int getContentLength () { try { return (int) ( length() & 0xFFFFFFFFL ); } catch ( SmbException se ) { log.debug("getContentLength", se); } return 0; } }
public class class_name { @Deprecated @Override public int getContentLength () { try { return (int) ( length() & 0xFFFFFFFFL ); // depends on control dependency: [try], data = [none] } catch ( SmbException se ) { log.debug("getContentLength", se); } // de...
public class class_name { public static boolean isElementPresent(String locator) { logger.entering(locator); boolean flag = false; try { flag = HtmlElementUtils.locateElement(locator) != null; } catch (NoSuchElementException e) { // NOSONAR } logger.exiting(f...
public class class_name { public static boolean isElementPresent(String locator) { logger.entering(locator); boolean flag = false; try { flag = HtmlElementUtils.locateElement(locator) != null; // depends on control dependency: [try], data = [none] } catch (NoSuchElementExcep...
public class class_name { @Override public Positions merge(Positions other) { if (other instanceof SinglePosition) { SinglePosition that = (SinglePosition) other; return builder().addSinglePosition(that).build(); } else if (other instanceof LinearPositions) { Lin...
public class class_name { @Override public Positions merge(Positions other) { if (other instanceof SinglePosition) { SinglePosition that = (SinglePosition) other; return builder().addSinglePosition(that).build(); // depends on control dependency: [if], data = [none] } else i...
public class class_name { public static PebbleDictionary fromJson(String jsonString) throws JSONException { PebbleDictionary d = new PebbleDictionary(); JSONArray elements = new JSONArray(jsonString); for (int idx = 0; idx < elements.length(); ++idx) { JSONObject o = elements.getJS...
public class class_name { public static PebbleDictionary fromJson(String jsonString) throws JSONException { PebbleDictionary d = new PebbleDictionary(); JSONArray elements = new JSONArray(jsonString); for (int idx = 0; idx < elements.length(); ++idx) { JSONObject o = elements.getJS...
public class class_name { public List<SDVariable> getVariablesAssociatedWithFunctions(List<DifferentialFunction> functions) { List<SDVariable> ret = new ArrayList<>(functions.size()); for (DifferentialFunction function : functions) { ret.addAll(Arrays.asList(function.outputVariables())); ...
public class class_name { public List<SDVariable> getVariablesAssociatedWithFunctions(List<DifferentialFunction> functions) { List<SDVariable> ret = new ArrayList<>(functions.size()); for (DifferentialFunction function : functions) { ret.addAll(Arrays.asList(function.outputVariables())); //...
public class class_name { static public Collection<URI> removeRedundantPaths(Collection<URI> uris) { List<URI> result = new ArrayList<URI>(); for (URI uri : uris) { String path = uri.getPath(); if (!path.endsWith("/")) { //$NON-NLS-1$ path += "/"; //$NON-NLS-1$ } boolean addIt = true; f...
public class class_name { static public Collection<URI> removeRedundantPaths(Collection<URI> uris) { List<URI> result = new ArrayList<URI>(); for (URI uri : uris) { String path = uri.getPath(); if (!path.endsWith("/")) { //$NON-NLS-1$ path += "/"; //$NON-NLS-1$ // depends on control dependency: [i...
public class class_name { public static void clearBeanProperty(final Object bean, final String name) { Validate.notNull(bean, "Bean required"); Validate.notEmpty(name, "Not empty property name required"); final String methodName = new StringBuilder("set") .append(name.substring(0, 1).toUpperCase()) .app...
public class class_name { public static void clearBeanProperty(final Object bean, final String name) { Validate.notNull(bean, "Bean required"); Validate.notEmpty(name, "Not empty property name required"); final String methodName = new StringBuilder("set") .append(name.substring(0, 1).toUpperCase()) .app...
public class class_name { public static <K,V> AListMap<K,V> fromKeysAndValues(AEquality equality, Iterable<K> keys, Iterable<V> values) { final Iterator<K> ki = keys.iterator(); final Iterator<V> vi = values.iterator(); AListMap<K,V> result = empty (equality); while(ki.hasNext()) { ...
public class class_name { public static <K,V> AListMap<K,V> fromKeysAndValues(AEquality equality, Iterable<K> keys, Iterable<V> values) { final Iterator<K> ki = keys.iterator(); final Iterator<V> vi = values.iterator(); AListMap<K,V> result = empty (equality); while(ki.hasNext()) { ...
public class class_name { protected boolean isSendAllowed(String message, List<?> arguments) { // check internal handlers first for (ISharedObjectSecurity handler : securityHandlers) { if (!handler.isSendAllowed(this, message, arguments)) { return false; } ...
public class class_name { protected boolean isSendAllowed(String message, List<?> arguments) { // check internal handlers first for (ISharedObjectSecurity handler : securityHandlers) { if (!handler.isSendAllowed(this, message, arguments)) { return false; // depends on c...
public class class_name { public static void clearallLocalDBs() { for (final Map.Entry<MongoClient, Boolean> entry : localInstances.entrySet()) { for (final String dbName : entry.getKey().listDatabaseNames()) { entry.getKey().getDatabase(dbName).drop(); } } } }
public class class_name { public static void clearallLocalDBs() { for (final Map.Entry<MongoClient, Boolean> entry : localInstances.entrySet()) { for (final String dbName : entry.getKey().listDatabaseNames()) { entry.getKey().getDatabase(dbName).drop(); // depends on control dependency: [for], data =...
public class class_name { public boolean matches(String httpMethod, String uri) { if (this.httpMethod.equalsIgnoreCase(httpMethod)) { Matcher matcher = regex.matcher(uri); return matcher.matches(); } else { return false; } } }
public class class_name { public boolean matches(String httpMethod, String uri) { if (this.httpMethod.equalsIgnoreCase(httpMethod)) { Matcher matcher = regex.matcher(uri); return matcher.matches(); // depends on control dependency: [if], data = [none] } else { return...
public class class_name { public static Dynamic bootstrap(String name, MethodDescription.InDefinedShape bootstrapMethod, List<?> rawArguments) { if (name.length() == 0 || name.contains(".")) { throw new IllegalArgumentException("Not a valid field name: " + name); } L...
public class class_name { public static Dynamic bootstrap(String name, MethodDescription.InDefinedShape bootstrapMethod, List<?> rawArguments) { if (name.length() == 0 || name.contains(".")) { throw new IllegalArgumentException("Not a valid field name: " + name); } L...
public class class_name { public void marshall(QueryInfo queryInfo, ProtocolMarshaller protocolMarshaller) { if (queryInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(queryInfo.getSelectFields...
public class class_name { public void marshall(QueryInfo queryInfo, ProtocolMarshaller protocolMarshaller) { if (queryInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(queryInfo.getSelectFields...
public class class_name { public void marshall(DeletePolicyRequest deletePolicyRequest, ProtocolMarshaller protocolMarshaller) { if (deletePolicyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(DeletePolicyRequest deletePolicyRequest, ProtocolMarshaller protocolMarshaller) { if (deletePolicyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public Coin fiatToCoin(Fiat convertFiat) { checkArgument(convertFiat.currencyCode.equals(fiat.currencyCode), "Currency mismatch: %s vs %s", convertFiat.currencyCode, fiat.currencyCode); // Use BigInteger because it's much easier to maintain full precision witho...
public class class_name { public Coin fiatToCoin(Fiat convertFiat) { checkArgument(convertFiat.currencyCode.equals(fiat.currencyCode), "Currency mismatch: %s vs %s", convertFiat.currencyCode, fiat.currencyCode); // Use BigInteger because it's much easier to maintain full precision witho...
public class class_name { public Object put(Object key, Object value) { if (key == null) { throw new NullPointerException("Null key is not permitted"); } // Makes sure the key is not already in the HashMap. Entry tab[] = mTable; int hash = System.identityHashCode(ke...
public class class_name { public Object put(Object key, Object value) { if (key == null) { throw new NullPointerException("Null key is not permitted"); } // Makes sure the key is not already in the HashMap. Entry tab[] = mTable; int hash = System.identityHashCode(ke...
public class class_name { private void removeRange(int fromIndex, int toIndex) { final ReentrantLock lock = this.lock; lock.lock(); try { Object[] elements = getArray(); int len = elements.length; if (fromIndex < 0 || toIndex > len || toIndex < fromIndex) ...
public class class_name { private void removeRange(int fromIndex, int toIndex) { final ReentrantLock lock = this.lock; lock.lock(); try { Object[] elements = getArray(); int len = elements.length; if (fromIndex < 0 || toIndex > len || toIndex < fromIndex) ...
public class class_name { public LdapUser getUserTemplate(String uid) { LdapUser user = new LdapUser(uid, this); user.set("dn", getDNForNode(user)); for (String oc : userObjectClasses) { user.addObjectClass(oc.trim()); } user = (LdapUser) updateObjectClasses(user); ...
public class class_name { public LdapUser getUserTemplate(String uid) { LdapUser user = new LdapUser(uid, this); user.set("dn", getDNForNode(user)); for (String oc : userObjectClasses) { user.addObjectClass(oc.trim()); // depends on control dependency: [for], data = [oc] } ...
public class class_name { public void marshall(ElasticsearchVersionStatus elasticsearchVersionStatus, ProtocolMarshaller protocolMarshaller) { if (elasticsearchVersionStatus == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public void marshall(ElasticsearchVersionStatus elasticsearchVersionStatus, ProtocolMarshaller protocolMarshaller) { if (elasticsearchVersionStatus == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { @Override public void engineUndeployed() { try { if (jmxAgent != null) { jmxAgent.unregister(new ObjectName(JMXAgent.JMX_DOMAIN+":type=Engines,engine="+engine.getName()+",children=async-managers,name=notification")); ...
public class class_name { @Override public void engineUndeployed() { try { if (jmxAgent != null) { jmxAgent.unregister(new ObjectName(JMXAgent.JMX_DOMAIN+":type=Engines,engine="+engine.getName()+",children=async-managers,name=notification")); // depends on c...
public class class_name { private void cleanGlobalBlockList() { for (Iterator<Block> globalBlockListIterator=globalBlockList.keySet().iterator(); globalBlockListIterator.hasNext();) { Block block = globalBlockListIterator.next(); if(!movedBlocks.contains(block)) { globalBlockListIterator.re...
public class class_name { private void cleanGlobalBlockList() { for (Iterator<Block> globalBlockListIterator=globalBlockList.keySet().iterator(); globalBlockListIterator.hasNext();) { Block block = globalBlockListIterator.next(); if(!movedBlocks.contains(block)) { globalBlockListIterator.re...
public class class_name { int getValue() { if (this.matches(Selector.NORTHERN_COURT)) { return (this.index - NORTHERN_NENGOS.length + NENGO_OEI.index - Nengo.SHOWA.index + 1); } return (this.index - Nengo.SHOWA.index + 1); } }
public class class_name { int getValue() { if (this.matches(Selector.NORTHERN_COURT)) { return (this.index - NORTHERN_NENGOS.length + NENGO_OEI.index - Nengo.SHOWA.index + 1); // depends on control dependency: [if], data = [none] } return (this.index - Nengo.SHOWA.index + 1); ...
public class class_name { @Override public Attachment updateAttachment(String assetId, AttachmentSummary summary) throws IOException, BadVersionException, RequestFailureException { // First find the attachment to update Asset ass = getAsset(assetId); List<Attachment> attachments = ass.getAt...
public class class_name { @Override public Attachment updateAttachment(String assetId, AttachmentSummary summary) throws IOException, BadVersionException, RequestFailureException { // First find the attachment to update Asset ass = getAsset(assetId); List<Attachment> attachments = ass.getAt...
public class class_name { public java.util.List<String> getGrantTokens() { if (grantTokens == null) { grantTokens = new com.amazonaws.internal.SdkInternalList<String>(); } return grantTokens; } }
public class class_name { public java.util.List<String> getGrantTokens() { if (grantTokens == null) { grantTokens = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return grantTokens; } }
public class class_name { public static TranslatecontentResult translatecontent(String accessToken, String lfrom, String lto, File content, String charsetName) { HttpPost httpPost = new HttpPost(BASE_URI + "/cgi-bin/media/voice/translatecontent"); byte[] data; try (BufferedReader reader = ...
public class class_name { public static TranslatecontentResult translatecontent(String accessToken, String lfrom, String lto, File content, String charsetName) { HttpPost httpPost = new HttpPost(BASE_URI + "/cgi-bin/media/voice/translatecontent"); byte[] data; try (BufferedReader reader = ...
public class class_name { private String refactorString(String original) { StringBuilder sb = new StringBuilder(); int argCount = 0; for (int i = 0; i < original.length(); i++) { if (original.charAt(i) == '{' && i < original.length() - 1 && original.charAt(i + 1) == '}') { sb.appe...
public class class_name { private String refactorString(String original) { StringBuilder sb = new StringBuilder(); int argCount = 0; for (int i = 0; i < original.length(); i++) { if (original.charAt(i) == '{' && i < original.length() - 1 && original.charAt(i + 1) == '}') { sb.appe...
public class class_name { @SuppressWarnings("unused") public void destroy() { if (cacheProducers != null) { for (Entry<ProducerType, KafkaProducer<String, byte[]>> entry : cacheProducers .entrySet()) { try { KafkaProducer<String, byte[]> p...
public class class_name { @SuppressWarnings("unused") public void destroy() { if (cacheProducers != null) { for (Entry<ProducerType, KafkaProducer<String, byte[]>> entry : cacheProducers .entrySet()) { try { KafkaProducer<String, byte[]> p...
public class class_name { public void marshall(FailedRemediationBatch failedRemediationBatch, ProtocolMarshaller protocolMarshaller) { if (failedRemediationBatch == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(FailedRemediationBatch failedRemediationBatch, ProtocolMarshaller protocolMarshaller) { if (failedRemediationBatch == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public synchronized long getDataPointLimit(final String metric) { if (metric == null || metric.isEmpty()) { return default_data_points_limit; } for (final QueryLimitOverrideItem item : overrides.values()) { if (item.matches(metric)) { return item.getDataPointsL...
public class class_name { public synchronized long getDataPointLimit(final String metric) { if (metric == null || metric.isEmpty()) { return default_data_points_limit; // depends on control dependency: [if], data = [none] } for (final QueryLimitOverrideItem item : overrides.values()) { if (item...
public class class_name { public static RoaringBitmap naive_and(RoaringBitmap... bitmaps) { if (bitmaps.length == 0) { return new RoaringBitmap(); } RoaringBitmap answer = bitmaps[0].clone(); for (int k = 1; k < bitmaps.length; ++k) { answer.and(bitmaps[k]); } return answer; } }
public class class_name { public static RoaringBitmap naive_and(RoaringBitmap... bitmaps) { if (bitmaps.length == 0) { return new RoaringBitmap(); // depends on control dependency: [if], data = [none] } RoaringBitmap answer = bitmaps[0].clone(); for (int k = 1; k < bitmaps.length; ++k) { an...
public class class_name { Object insertByRightShift( int ix, Object new1) { Object old1 = null; if (isFull()) { old1 = rightMostKey(); rightMove(ix+1); _nodeKey[ix+1] = new1; } else { rightShift(ix+1); _nodeKey[ix+...
public class class_name { Object insertByRightShift( int ix, Object new1) { Object old1 = null; if (isFull()) { old1 = rightMostKey(); // depends on control dependency: [if], data = [none] rightMove(ix+1); // depends on control dependency: [if], data = [...
public class class_name { public static RouteInfo of(ActionContext context) { H.Method m = context.req().method(); String path = context.req().url(); RequestHandler handler = context.handler(); if (null == handler) { handler = UNKNOWN_HANDLER; } return new Ro...
public class class_name { public static RouteInfo of(ActionContext context) { H.Method m = context.req().method(); String path = context.req().url(); RequestHandler handler = context.handler(); if (null == handler) { handler = UNKNOWN_HANDLER; // depends on control dependenc...
public class class_name { public void traverseHierarchy() { String pdbId = "4HHB"; // download SCOP if required and load into memory ScopDatabase scop = ScopFactory.getSCOP(); List<ScopDomain> domains = scop.getDomainsForPDB(pdbId); // show the hierachy for the first domain: ScopNode node = scop.getSco...
public class class_name { public void traverseHierarchy() { String pdbId = "4HHB"; // download SCOP if required and load into memory ScopDatabase scop = ScopFactory.getSCOP(); List<ScopDomain> domains = scop.getDomainsForPDB(pdbId); // show the hierachy for the first domain: ScopNode node = scop.getSco...
public class class_name { public static void removeScopedSessionAttr( String attrName, HttpServletRequest request ) { HttpSession session = request.getSession( false ); if ( session != null ) { session.removeAttribute( getScopedSessionAttrName( attrName, request ) ); ...
public class class_name { public static void removeScopedSessionAttr( String attrName, HttpServletRequest request ) { HttpSession session = request.getSession( false ); if ( session != null ) { session.removeAttribute( getScopedSessionAttrName( attrName, request ) ); //...
public class class_name { @FFDCIgnore({ SSLPeerUnverifiedException.class, Exception.class }) private Subject tryToAuthenticate(SSLSession session) throws SASException { Subject transportSubject = null; try { transportSubject = authenticateWithCertificateChain(session); } catch (...
public class class_name { @FFDCIgnore({ SSLPeerUnverifiedException.class, Exception.class }) private Subject tryToAuthenticate(SSLSession session) throws SASException { Subject transportSubject = null; try { transportSubject = authenticateWithCertificateChain(session); } catch (...
public class class_name { public static int levenshteinDistance(CharSequence one, CharSequence another, int threshold) { int n = one.length(); int m = another.length(); // if one string is empty, the edit distance is necessarily the length of the other if (n == 0) { return ...
public class class_name { public static int levenshteinDistance(CharSequence one, CharSequence another, int threshold) { int n = one.length(); int m = another.length(); // if one string is empty, the edit distance is necessarily the length of the other if (n == 0) { return ...
public class class_name { private String checkProperty(String propName) throws AttributeNotSupportedException { final String METHODNAME = "checkProperty"; boolean inRepos = false; boolean inLA = false; if (propName.equals(xsiType)) { /* * if (trcLogger.isLoggable(Level.FINER)) { * trc...
public class class_name { private String checkProperty(String propName) throws AttributeNotSupportedException { final String METHODNAME = "checkProperty"; boolean inRepos = false; boolean inLA = false; if (propName.equals(xsiType)) { /* * if (trcLogger.isLoggable(Level.FINER)) { * trc...
public class class_name { private void preInsert(MkMaxEntry q, MkMaxEntry nodeEntry, KNNHeap knns_q) { if (LOG.isDebugging()) { LOG.debugFine("preInsert " + q + " - " + nodeEntry + "\n"); } double knnDist_q = knns_q.getKNNDistance(); MkMaxTreeNode<O> node = getNode(nodeEntry); double knnDist...
public class class_name { private void preInsert(MkMaxEntry q, MkMaxEntry nodeEntry, KNNHeap knns_q) { if (LOG.isDebugging()) { LOG.debugFine("preInsert " + q + " - " + nodeEntry + "\n"); // depends on control dependency: [if], data = [none] } double knnDist_q = knns_q.getKNNDistance(); MkMaxTre...
public class class_name { public void loadKeys(DataStructureAdapter<Object, ?> adapter) { if (!storeFile.exists()) { logger.info(format("Skipped loading keys of Near Cache %s since storage file doesn't exist (%s)", nearCacheName, storeFile.getAbsolutePath())); return...
public class class_name { public void loadKeys(DataStructureAdapter<Object, ?> adapter) { if (!storeFile.exists()) { logger.info(format("Skipped loading keys of Near Cache %s since storage file doesn't exist (%s)", nearCacheName, storeFile.getAbsolutePath())); // depends on cont...
public class class_name { public void put(ItemData item) { // There is different commit processing for NullNodeData and ordinary ItemData. if (item instanceof NullItemData) { putNullItem((NullItemData)item); return; } boolean inTransaction = cache.isTransact...
public class class_name { public void put(ItemData item) { // There is different commit processing for NullNodeData and ordinary ItemData. if (item instanceof NullItemData) { putNullItem((NullItemData)item); // depends on control dependency: [if], data = [none] return; // ...
public class class_name { public static int solveQuad (double[] eqn, double[] res) { double a = eqn[2]; double b = eqn[1]; double c = eqn[0]; int rc = 0; if (a == 0f) { if (b == 0f) { return -1; } res[rc++] = -c / b; } ...
public class class_name { public static int solveQuad (double[] eqn, double[] res) { double a = eqn[2]; double b = eqn[1]; double c = eqn[0]; int rc = 0; if (a == 0f) { if (b == 0f) { return -1; // depends on control dependency: [if], data = [none] ...
public class class_name { public String getContentTypeWithVersion() { if (!StringUtils.hasText(this.contentTypeTemplate) || !StringUtils.hasText(this.version)) { return ""; } return this.contentTypeTemplate.replaceAll(VERSION_PLACEHOLDER_REGEX, this.version); } }
public class class_name { public String getContentTypeWithVersion() { if (!StringUtils.hasText(this.contentTypeTemplate) || !StringUtils.hasText(this.version)) { return ""; // depends on control dependency: [if], data = [none] } return this.contentTypeTemplate.replaceAll(VERSION_PLACEHOLDER_REGEX, thi...
public class class_name { public void marshall(ScalingConstraints scalingConstraints, ProtocolMarshaller protocolMarshaller) { if (scalingConstraints == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(ScalingConstraints scalingConstraints, ProtocolMarshaller protocolMarshaller) { if (scalingConstraints == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { private void loadCategories(SQLiteDatabase db) throws UnknownPoiCategoryException { // Maximum ID (for root node) int maxID = 0; // Maps categories to their parent IDs Map<PoiCategory, Integer> parentMap = new HashMap<>(); Cursor cursor = null; ...
public class class_name { private void loadCategories(SQLiteDatabase db) throws UnknownPoiCategoryException { // Maximum ID (for root node) int maxID = 0; // Maps categories to their parent IDs Map<PoiCategory, Integer> parentMap = new HashMap<>(); Cursor cursor = null; ...
public class class_name { public static Inet6Address forIPv6String(String ipString) { requireNonNull(ipString); try{ InetAddress parsed = forString(ipString); if (parsed instanceof Inet6Address) return (Inet6Address) parsed; } catch(Exception ignored){...
public class class_name { public static Inet6Address forIPv6String(String ipString) { requireNonNull(ipString); try{ InetAddress parsed = forString(ipString); if (parsed instanceof Inet6Address) return (Inet6Address) parsed; } catch(Exception ignored){...
public class class_name { public static Object createInstance(Class<?> type) { Object instance=null; try { //create instance instance=type.newInstance(); } catch(Exception exception) { throw new FaxException("Unable to create new i...
public class class_name { public static Object createInstance(Class<?> type) { Object instance=null; try { //create instance instance=type.newInstance(); // depends on control dependency: [try], data = [none] } catch(Exception exception) { ...
public class class_name { private void ensureAvailable(int index) { if (data.get(index) != null) { // Already have this item. return; } if (client == null) { throw new RuntimeException("no remoting client configured"); } Object result;...
public class class_name { private void ensureAvailable(int index) { if (data.get(index) != null) { // Already have this item. return; // depends on control dependency: [if], data = [none] } if (client == null) { throw new RuntimeException("no remoting c...
public class class_name { @Override public EClass getIfcElectricChargeMeasure() { if (ifcElectricChargeMeasureEClass == null) { ifcElectricChargeMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(800); } return ifcElectricChargeMeasureEClass...
public class class_name { @Override public EClass getIfcElectricChargeMeasure() { if (ifcElectricChargeMeasureEClass == null) { ifcElectricChargeMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(800); // depends on control dependency: [if], data...
public class class_name { public int getViewType(@NonNull AdapterDelegate<T> delegate) { if (delegate == null) { throw new NullPointerException("Delegate is null"); } int index = delegates.indexOfValue(delegate); if (index == -1) { return -1; } r...
public class class_name { public int getViewType(@NonNull AdapterDelegate<T> delegate) { if (delegate == null) { throw new NullPointerException("Delegate is null"); } int index = delegates.indexOfValue(delegate); if (index == -1) { return -1; // depends on contr...
public class class_name { public static Map<String, Map<String, Map<String, Map<String, ?>>>> getCoreValidationConstraints() { if (CORE_CONSTRAINTS.isEmpty()) { for (Map.Entry<String, Class<? extends ParaObject>> e : ParaObjectUtils.getCoreClassesMap().entrySet()) { String type = e.getKey(); List<Field> f...
public class class_name { public static Map<String, Map<String, Map<String, Map<String, ?>>>> getCoreValidationConstraints() { if (CORE_CONSTRAINTS.isEmpty()) { for (Map.Entry<String, Class<? extends ParaObject>> e : ParaObjectUtils.getCoreClassesMap().entrySet()) { String type = e.getKey(); List<Field> f...
public class class_name { public static String buildPath(String first, String... parts) { StringBuilder result = new StringBuilder(first); for (String part : parts) { if (result.length() == 0) { if (part.startsWith("/")) { result.append(part.substring(1)...
public class class_name { public static String buildPath(String first, String... parts) { StringBuilder result = new StringBuilder(first); for (String part : parts) { if (result.length() == 0) { if (part.startsWith("/")) { result.append(part.substring(1)...
public class class_name { @Override public Boolean fromString(final String rawValue) { try { return PrimitiveObjectFactory.parseBoolean(rawValue); } catch (final IllegalArgumentException e) { throw new ObjectParseException(e,Boolean.class, rawValue); } } }
public class class_name { @Override public Boolean fromString(final String rawValue) { try { return PrimitiveObjectFactory.parseBoolean(rawValue); // depends on control dependency: [try], data = [none] } catch (final IllegalArgumentException e) { throw new ObjectParseException(e,Boolean.class, rawValue); ...
public class class_name { @CheckReturnValue @BackpressureSupport(BackpressureKind.SPECIAL) @SchedulerSupport(SchedulerSupport.NONE) public final <R> R to(Function<? super Flowable<T>, R> converter) { try { return ObjectHelper.requireNonNull(converter, "converter is null").apply(this); ...
public class class_name { @CheckReturnValue @BackpressureSupport(BackpressureKind.SPECIAL) @SchedulerSupport(SchedulerSupport.NONE) public final <R> R to(Function<? super Flowable<T>, R> converter) { try { return ObjectHelper.requireNonNull(converter, "converter is null").apply(this); /...
public class class_name { public JSONObject createTask(String name, String templateContent, String inputMappingFile, String outputFile, String urlPattern, HashMap<String, String> options) { AipRequest request = new AipRequest(); preOperation(request); request.addBody("name", name); ...
public class class_name { public JSONObject createTask(String name, String templateContent, String inputMappingFile, String outputFile, String urlPattern, HashMap<String, String> options) { AipRequest request = new AipRequest(); preOperation(request); request.addBody("name", name); ...
public class class_name { public void attachView(View view) { if (view == null) { throw new IllegalArgumentException("Mvp view must be not null"); } boolean isViewAdded = mViews.add(view); if (!isViewAdded) { return; } mInRestoreState.add(view); Set<ViewCommand<View>> currentState = mViewStates...
public class class_name { public void attachView(View view) { if (view == null) { throw new IllegalArgumentException("Mvp view must be not null"); } boolean isViewAdded = mViews.add(view); if (!isViewAdded) { return; // depends on control dependency: [if], data = [none] } mInRestoreState.add(view)...
public class class_name { public Quaternionf set(Quaternionfc q) { if (q instanceof Quaternionf) MemUtil.INSTANCE.copy((Quaternionf) q, this); else { this.x = q.x(); this.y = q.y(); this.z = q.z(); this.w = q.w(); } return this...
public class class_name { public Quaternionf set(Quaternionfc q) { if (q instanceof Quaternionf) MemUtil.INSTANCE.copy((Quaternionf) q, this); else { this.x = q.x(); // depends on control dependency: [if], data = [none] this.y = q.y(); // depends on control dependenc...
public class class_name { public static ExtendedEntityManager[] getDeferredEntityManagers() { List<ExtendedEntityManager> store = deferToPostConstruct.get(); try { if(store.isEmpty()) { return EMPTY; } else { return store.toArray(new ExtendedEntit...
public class class_name { public static ExtendedEntityManager[] getDeferredEntityManagers() { List<ExtendedEntityManager> store = deferToPostConstruct.get(); try { if(store.isEmpty()) { return EMPTY; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { @Override public <R> Try<R> flatMap(ThrowableFunction1<T, Try<R>> function) { try { return function.apply(value); } catch(Throwable t) { return new Failure<>(t); } } }
public class class_name { @Override public <R> Try<R> flatMap(ThrowableFunction1<T, Try<R>> function) { try { return function.apply(value); // depends on control dependency: [try], data = [none] } catch(Throwable t) { return new Failure<>(t); } // depends on ...
public class class_name { public final void ifStatement() throws RecognitionException { int ifStatement_StartIndex = input.index(); Token s=null; Token y=null; ParserRuleReturnScope x =null; ParserRuleReturnScope z =null; JavaIfBlockDescr id = null; JavaElseBlockDescr ed = null; ...
public class class_name { public final void ifStatement() throws RecognitionException { int ifStatement_StartIndex = input.index(); Token s=null; Token y=null; ParserRuleReturnScope x =null; ParserRuleReturnScope z =null; JavaIfBlockDescr id = null; JavaElseBlockDescr ed = null; ...
public class class_name { public void moveThisFile(File fileSource, File fileDestDir, String strDestName) { // Step 1 - Find the class name for this file: String className = fileSource.getPath().replace('/', '.'); if (className.endsWith(".xml")) className = className.substring(0...
public class class_name { public void moveThisFile(File fileSource, File fileDestDir, String strDestName) { // Step 1 - Find the class name for this file: String className = fileSource.getPath().replace('/', '.'); if (className.endsWith(".xml")) className = className.substring(0...
public class class_name { private void mapExecutable(ExecutableMemberDoc em) { boolean isConstructor = em.isConstructor(); Set<Type> classArgs = new TreeSet<>(utils.makeTypeComparator()); for (Parameter param : em.parameters()) { Type pcd = param.type(); // ignore primit...
public class class_name { private void mapExecutable(ExecutableMemberDoc em) { boolean isConstructor = em.isConstructor(); Set<Type> classArgs = new TreeSet<>(utils.makeTypeComparator()); for (Parameter param : em.parameters()) { Type pcd = param.type(); // ignore primit...
public class class_name { public java.util.List<ObjectId> getObjectId() { if (objectId == null) { objectId = new ArrayList<ObjectId>(); } return this.objectId; } }
public class class_name { public java.util.List<ObjectId> getObjectId() { if (objectId == null) { objectId = new ArrayList<ObjectId>(); // depends on control dependency: [if], data = [none] } return this.objectId; } }
public class class_name { public Map<String, Object> getDebugInfo() { Preconditions.checkArgument(lifecycleLock.awaitStarted(1, TimeUnit.MILLISECONDS)); Map<String, Object> result = new HashMap<>(servers.size()); for (Map.Entry<String, DruidServerHolder> e : servers.entrySet()) { DruidServerHolder...
public class class_name { public Map<String, Object> getDebugInfo() { Preconditions.checkArgument(lifecycleLock.awaitStarted(1, TimeUnit.MILLISECONDS)); Map<String, Object> result = new HashMap<>(servers.size()); for (Map.Entry<String, DruidServerHolder> e : servers.entrySet()) { DruidServerHolder...
public class class_name { public void setProxy(Proxy proxy) { if(proxy != null) { java.net.Proxy p = new java.net.Proxy(java.net.Proxy.Type.HTTP, new InetSocketAddress(proxy.getHost(), proxy.getPort())); client.setProxy(p); } else ...
public class class_name { public void setProxy(Proxy proxy) { if(proxy != null) { java.net.Proxy p = new java.net.Proxy(java.net.Proxy.Type.HTTP, new InetSocketAddress(proxy.getHost(), proxy.getPort())); client.setProxy(p); // depends on control dependenc...
public class class_name { protected void handleAppendResponseError(RaftMemberContext member, AppendRequest request, AppendResponse response) { // If we've received a greater term, update the term and transition back to follower. if (response.term() > raft.getTerm()) { log.debug("Received higher term from...
public class class_name { protected void handleAppendResponseError(RaftMemberContext member, AppendRequest request, AppendResponse response) { // If we've received a greater term, update the term and transition back to follower. if (response.term() > raft.getTerm()) { log.debug("Received higher term from...
public class class_name { private void jCheckBoxMaxPointsActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxMaxPointsActionPerformed {//GEN-HEADEREND:event_jCheckBoxMaxPointsActionPerformed if (jCheckBoxMaxPoints.isSelected()) { parent.getGraphPanelChart().getChartSetting...
public class class_name { private void jCheckBoxMaxPointsActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxMaxPointsActionPerformed {//GEN-HEADEREND:event_jCheckBoxMaxPointsActionPerformed if (jCheckBoxMaxPoints.isSelected()) { parent.getGraphPanelChart().getChartSetting...
public class class_name { public static String format(String messageFormat, Object... arguments) { for (int i = 0; i < arguments.length; i++) { arguments[i] = convert(arguments[i]); } return String.format(messageFormat, arguments); } }
public class class_name { public static String format(String messageFormat, Object... arguments) { for (int i = 0; i < arguments.length; i++) { arguments[i] = convert(arguments[i]); // depends on control dependency: [for], data = [i] } return String.format(messageFormat, arguments); } }
public class class_name { public void setCursor(Object object, String cursor) { if (object == null) { Dom.setStyleAttribute(getRootElement(), "cursor", cursor); } else { Element element = getGroup(object); if (element != null) { Dom.setStyleAttribute(element, "cursor", cursor); } } } }
public class class_name { public void setCursor(Object object, String cursor) { if (object == null) { Dom.setStyleAttribute(getRootElement(), "cursor", cursor); // depends on control dependency: [if], data = [none] } else { Element element = getGroup(object); if (element != null) { Dom.setStyleAttribu...
public class class_name { private void completeMultipart(String bucketName, String objectName, String uploadId, Part[] parts) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorRespon...
public class class_name { private void completeMultipart(String bucketName, String objectName, String uploadId, Part[] parts) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorRespon...
public class class_name { public Map<String, Double> getFMeasureForLabels() { Map<String, Double> fMeasure = new LinkedHashMap<>(); Map<String, Double> precisionForLabels = getPrecisionForLabels(); Map<String, Double> recallForLabels = getRecallForLabels(); for (String label : all...
public class class_name { public Map<String, Double> getFMeasureForLabels() { Map<String, Double> fMeasure = new LinkedHashMap<>(); Map<String, Double> precisionForLabels = getPrecisionForLabels(); Map<String, Double> recallForLabels = getRecallForLabels(); for (String label : all...
public class class_name { public void findMatchingSelectorSubs(String theTopic, Set consumerSet) throws SIDiscriminatorSyntaxException { if (tc.isEntryEnabled()) SibTr.entry( tc, "findMatchingSelectorSubs",...
public class class_name { public void findMatchingSelectorSubs(String theTopic, Set consumerSet) throws SIDiscriminatorSyntaxException { if (tc.isEntryEnabled()) SibTr.entry( tc, "findMatchingSelectorSubs",...
public class class_name { public static void logThreads( final Logger logger, final Level level, final String prefix, final String threadPrefix, final String stackElementPrefix) { if (logger.isLoggable(level)) { logger.log(level, getFormattedThreadList(prefix, threadPrefix, stackElementPrefix));...
public class class_name { public static void logThreads( final Logger logger, final Level level, final String prefix, final String threadPrefix, final String stackElementPrefix) { if (logger.isLoggable(level)) { logger.log(level, getFormattedThreadList(prefix, threadPrefix, stackElementPrefix));...
public class class_name { @SuppressWarnings({"unchecked", "checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity", "checkstyle:nestedifdepth"}) private static <P extends GISPrimitive, N extends AbstractGISTreeSetNode<P, N>> boolean addInside(AbstractGISTreeSet<P, N> tree, N insertionNode, P element,...
public class class_name { @SuppressWarnings({"unchecked", "checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity", "checkstyle:nestedifdepth"}) private static <P extends GISPrimitive, N extends AbstractGISTreeSetNode<P, N>> boolean addInside(AbstractGISTreeSet<P, N> tree, N insertionNode, P element,...
public class class_name { public CloudhopperBuilder password(String... password) { for (String p : password) { if (p != null) { passwords.add(p); } } return this; } }
public class class_name { public CloudhopperBuilder password(String... password) { for (String p : password) { if (p != null) { passwords.add(p); // depends on control dependency: [if], data = [(p] } } return this; } }
public class class_name { @Nonnull @ReturnsMutableCopy public static ICommonsList <IHCNode> getMergedInlineCSSAndJSNodes (@Nonnull final Iterable <? extends IHCNode> aNodes, @Nullable final IHCOnDocumentReadyProvider aOnDocumentReadyProvider) {...
public class class_name { @Nonnull @ReturnsMutableCopy public static ICommonsList <IHCNode> getMergedInlineCSSAndJSNodes (@Nonnull final Iterable <? extends IHCNode> aNodes, @Nullable final IHCOnDocumentReadyProvider aOnDocumentReadyProvider) {...
public class class_name { public synchronized void deregister(String id) { assert !(Thread.currentThread() instanceof PartitionOperationThread); if (!id2InterceptorMap.containsKey(id)) { return; } Map<String, MapInterceptor> tmpMap = new HashMap<>(id2InterceptorMap); ...
public class class_name { public synchronized void deregister(String id) { assert !(Thread.currentThread() instanceof PartitionOperationThread); if (!id2InterceptorMap.containsKey(id)) { return; // depends on control dependency: [if], data = [none] } Map<String, MapInterce...
public class class_name { private JTree getTreeParam() { if (treeParam == null) { treeParam = new JTree(); treeParam.setModel(getTreeModel()); treeParam.setShowsRootHandles(true); treeParam.setRootVisible(true); treeParam.addTreeSelectionListene...
public class class_name { private JTree getTreeParam() { if (treeParam == null) { treeParam = new JTree(); // depends on control dependency: [if], data = [none] treeParam.setModel(getTreeModel()); // depends on control dependency: [if], data = [none] treeParam.setShowsRo...
public class class_name { private List<double[]> calculateMeanMeasurementsForParam( int numEntriesPerPreview, int numParamValues, int paramValue) { List<double[]> paramMeasurementsSum = new ArrayList<double[]>(numEntriesPerPreview); List<double...
public class class_name { private List<double[]> calculateMeanMeasurementsForParam( int numEntriesPerPreview, int numParamValues, int paramValue) { List<double[]> paramMeasurementsSum = new ArrayList<double[]>(numEntriesPerPreview); List<double...
public class class_name { public static BigDecimal durationNs(String durationP) { if (durationP == null) { return null; } String duration = durationP.trim(); if (duration.length() == 0) { return null; } int unitPos = 1; while (unitPos < d...
public class class_name { public static BigDecimal durationNs(String durationP) { if (durationP == null) { return null; // depends on control dependency: [if], data = [none] } String duration = durationP.trim(); if (duration.length() == 0) { return null; // depen...
public class class_name { private GenericKieSessionMonitoringImpl getKnowledgeSessionBean(CBSKey cbsKey, KieRuntimeEventManager ksession) { if (mbeansRefs.get(cbsKey) != null) { return (GenericKieSessionMonitoringImpl) mbeansRefs.get(cbsKey); } else { if (ksession instanceof Sta...
public class class_name { private GenericKieSessionMonitoringImpl getKnowledgeSessionBean(CBSKey cbsKey, KieRuntimeEventManager ksession) { if (mbeansRefs.get(cbsKey) != null) { return (GenericKieSessionMonitoringImpl) mbeansRefs.get(cbsKey); // depends on control dependency: [if], data = [none] ...
public class class_name { public void callArgVisitors(XPathVisitor visitor) { for (int i = 0; i < m_argVec.size(); i++) { Expression exp = (Expression)m_argVec.elementAt(i); exp.callVisitors(new ArgExtOwner(exp), visitor); } } }
public class class_name { public void callArgVisitors(XPathVisitor visitor) { for (int i = 0; i < m_argVec.size(); i++) { Expression exp = (Expression)m_argVec.elementAt(i); exp.callVisitors(new ArgExtOwner(exp), visitor); // depends on control dependency: [for], data = [none] } ...
public class class_name { public static boolean shouldAutoCastTo(PrimitiveType from, PrimitiveType to) { InternalType[] castTypes = POSSIBLE_CAST_MAP.get(from); if (castTypes != null) { for (InternalType type : POSSIBLE_CAST_MAP.get(from)) { if (type.equals(to)) { return true; } } } return f...
public class class_name { public static boolean shouldAutoCastTo(PrimitiveType from, PrimitiveType to) { InternalType[] castTypes = POSSIBLE_CAST_MAP.get(from); if (castTypes != null) { for (InternalType type : POSSIBLE_CAST_MAP.get(from)) { if (type.equals(to)) { return true; // depends on control dep...
public class class_name { @Override public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition ignore) { // this is one of the inherited format() methods. Since it doesn't // have a way to select the rule set to us...
public class class_name { @Override public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition ignore) { // this is one of the inherited format() methods. Since it doesn't // have a way to select the rule set to us...
public class class_name { protected String getConfig(IConfigKey key) { if (configs == null) { loadConfigs(); } String value = configs.getProperty(key.getKeyString()); if (value == null && key instanceof IConfigKeyHaveDefault) { return ((IConfigKeyHaveDefaul...
public class class_name { protected String getConfig(IConfigKey key) { if (configs == null) { loadConfigs(); // depends on control dependency: [if], data = [none] } String value = configs.getProperty(key.getKeyString()); if (value == null && key instanceof IConfigKeyHav...
public class class_name { private void setVectorLayerOnWhichSearchIsHappeningVisible() { if (searchPanel.getFeatureSearchVectorLayer() != null && !searchPanel.getFeatureSearchVectorLayer().isVisible()) { searchPanel.getFeatureSearchVectorLayer().setVisible(true); } } }
public class class_name { private void setVectorLayerOnWhichSearchIsHappeningVisible() { if (searchPanel.getFeatureSearchVectorLayer() != null && !searchPanel.getFeatureSearchVectorLayer().isVisible()) { searchPanel.getFeatureSearchVectorLayer().setVisible(true); // depends on control dependency: [if], data =...
public class class_name { public static void mv(File src, File dst) throws IOException { Parameters.checkNotNull(dst); if (!src.equals(dst)) { cp(src, dst); try { rm(src); } catch (IOException e) { rm(dst); throw new IOException("Can't move " + src, e); } } } }
public class class_name { public static void mv(File src, File dst) throws IOException { Parameters.checkNotNull(dst); if (!src.equals(dst)) { cp(src, dst); try { rm(src); // depends on control dependency: [try], data = [none] } catch (IOException e) { rm(dst); throw new IOException("Can't mo...
public class class_name { public int unpackBinaryHeader() throws IOException { byte b = readByte(); if (Code.isFixedRaw(b)) { // FixRaw return b & 0x1f; } int len = tryReadBinaryHeader(b); if (len >= 0) { return len; } if ...
public class class_name { public int unpackBinaryHeader() throws IOException { byte b = readByte(); if (Code.isFixedRaw(b)) { // FixRaw return b & 0x1f; } int len = tryReadBinaryHeader(b); if (len >= 0) { return len; } if ...
public class class_name { private PrettyExpression buildPrettyExpression(Class<?> clazz, String component) { if (log.isTraceEnabled()) { log.trace("Searching name of bean: " + clazz.getName()); } // get name from internal map build from @URLBeanName annotations and // previo...
public class class_name { private PrettyExpression buildPrettyExpression(Class<?> clazz, String component) { if (log.isTraceEnabled()) { log.trace("Searching name of bean: " + clazz.getName()); // depends on control dependency: [if], data = [none] } // get name from internal map b...
public class class_name { public static Pair<Descriptor,String> fromFilename(File directory, String name, boolean skipComponent) { // tokenize the filename StringTokenizer st = new StringTokenizer(name, String.valueOf(separator)); String nexttok; // all filenames must start with ke...
public class class_name { public static Pair<Descriptor,String> fromFilename(File directory, String name, boolean skipComponent) { // tokenize the filename StringTokenizer st = new StringTokenizer(name, String.valueOf(separator)); String nexttok; // all filenames must start with ke...
public class class_name { public void marshall(CreateExportJobRequest createExportJobRequest, ProtocolMarshaller protocolMarshaller) { if (createExportJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(CreateExportJobRequest createExportJobRequest, ProtocolMarshaller protocolMarshaller) { if (createExportJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...