code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static boolean createBundleJar ( File target, TileSetBundle bundle, ImageProvider improv, String imageBase, boolean keepOriginalPngs, boolean uncompressed) throws IOException { // now we have to create the actual bundle file FileOutputStream ...
public class class_name { public static boolean createBundleJar ( File target, TileSetBundle bundle, ImageProvider improv, String imageBase, boolean keepOriginalPngs, boolean uncompressed) throws IOException { // now we have to create the actual bundle file FileOutputStream ...
public class class_name { public String getExpressionString() { StringBuffer buf = new StringBuffer(); buf.append("("); buf.append(mExpression.getExpressionString()); for (int i = 0; i < mOperators.size(); i++) { BinaryOperator operator = (BinaryOperator) mOperators.get(i); ...
public class class_name { public String getExpressionString() { StringBuffer buf = new StringBuffer(); buf.append("("); buf.append(mExpression.getExpressionString()); for (int i = 0; i < mOperators.size(); i++) { BinaryOperator operator = (BinaryOperator) mOperators.get(i); ...
public class class_name { ComponentTree tree() { if (tree != null) { return tree; } // Build complete tree before assigning it. ComponentTree newTree = new ComponentTree(this); newTree.setEventPipeline(new BufferingEventPipeline(newTree)); tree = newTree; ...
public class class_name { ComponentTree tree() { if (tree != null) { return tree; // depends on control dependency: [if], data = [none] } // Build complete tree before assigning it. ComponentTree newTree = new ComponentTree(this); newTree.setEventPipeline(new Bufferi...
public class class_name { private ConsumerSessionImpl findConsumerSession(long id) throws SINotAuthorizedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "findConsumerSession", Long.valueOf(id)); ConsumerSessionImpl sessionInternal = _message...
public class class_name { private ConsumerSessionImpl findConsumerSession(long id) throws SINotAuthorizedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "findConsumerSession", Long.valueOf(id)); ConsumerSessionImpl sessionInternal = _message...
public class class_name { @Override protected String getDescription(final MBeanOperationInfo op) { String descr = op.getDescription(); Method m = getMethod(op); if (m != null) { MBeanInfo d = m.getAnnotation(MBeanInfo.class); if (d != null) { descr = d.value(); } } retu...
public class class_name { @Override protected String getDescription(final MBeanOperationInfo op) { String descr = op.getDescription(); Method m = getMethod(op); if (m != null) { MBeanInfo d = m.getAnnotation(MBeanInfo.class); if (d != null) { descr = d.value(); // depends on control ...
public class class_name { @SuppressWarnings("unchecked") public static <T> Class<T> classForName(String className) { try { return (Class<T>)Class.forName(className); } catch (ClassNotFoundException | VerifyError e) { // Catching VerifyError fixes issue #147. I don't ...
public class class_name { @SuppressWarnings("unchecked") public static <T> Class<T> classForName(String className) { try { return (Class<T>)Class.forName(className); // depends on control dependency: [try], data = [none] } catch (ClassNotFoundException | VerifyError e) { ...
public class class_name { public static boolean containsWhitespace(final String string) { for (int i = 0; i < string.length(); i++) { if (Character.isWhitespace(string.charAt(i))) { return true; } } return false; } }
public class class_name { public static boolean containsWhitespace(final String string) { for (int i = 0; i < string.length(); i++) { if (Character.isWhitespace(string.charAt(i))) { return true; // depends on control dependency: [if], data = [none] } } ...
public class class_name { public List<UrlCss3Value> getUrlCss3Values() { // for security improvements for urlCss3Values without // compromising performance. // TODO the drawback of this the returning of new object each time even // if the urlCss3Values array has not been modified, as a ...
public class class_name { public List<UrlCss3Value> getUrlCss3Values() { // for security improvements for urlCss3Values without // compromising performance. // TODO the drawback of this the returning of new object each time even // if the urlCss3Values array has not been modified, as a ...
public class class_name { private boolean satisfied(final CLClause c) { if (c.satisfied()) { return true; } for (int i = 0; i < c.lits().size(); i++) { if (val(c.lits().get(i)) == VALUE_TRUE) { if (this.level == 0) { c.setSatisfied(true); } return true; ...
public class class_name { private boolean satisfied(final CLClause c) { if (c.satisfied()) { return true; } // depends on control dependency: [if], data = [none] for (int i = 0; i < c.lits().size(); i++) { if (val(c.lits().get(i)) == VALUE_TRUE) { if (this.level == 0) { c.se...
public class class_name { public void execute() throws MojoExecutionException { getLog().debug("starting packaging"); AbstractConfiguration[] configurations= (AbstractConfiguration[]) getPluginContext().get(ConfiguratorMojo.GENERATED_CONFIGURATIONS_KEY); try { for(...
public class class_name { public void execute() throws MojoExecutionException { getLog().debug("starting packaging"); AbstractConfiguration[] configurations= (AbstractConfiguration[]) getPluginContext().get(ConfiguratorMojo.GENERATED_CONFIGURATIONS_KEY); try { for(...
public class class_name { void allowedOptions(String... opts) { for (String opt : opts) { options.putIfAbsent(opt, false); } } }
public class class_name { void allowedOptions(String... opts) { for (String opt : opts) { options.putIfAbsent(opt, false); // depends on control dependency: [for], data = [opt] } } }
public class class_name { public void setApiKeyPrefix(String apiKeyPrefix) { for (Authentication auth : authentications.values()) { if (auth instanceof ApiKeyAuth) { ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix); return; } } throw new ...
public class class_name { public void setApiKeyPrefix(String apiKeyPrefix) { for (Authentication auth : authentications.values()) { if (auth instanceof ApiKeyAuth) { ((ApiKeyAuth) auth).setApiKeyPrefix(apiKeyPrefix); // depends on control dependency: [if], data = [none] ...
public class class_name { private void addHeadersToRequest(HttpRequestBase httpRequest, Request<?> request) { httpRequest.addHeader(HttpHeaders.HOST, getHostHeaderValue(request.getEndpoint())); // Copy over any other headers already in our request for (Entry<String, String> entry : request.ge...
public class class_name { private void addHeadersToRequest(HttpRequestBase httpRequest, Request<?> request) { httpRequest.addHeader(HttpHeaders.HOST, getHostHeaderValue(request.getEndpoint())); // Copy over any other headers already in our request for (Entry<String, String> entry : request.ge...
public class class_name { protected void filterTable(String search) { m_container.removeAllContainerFilters(); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(search)) { m_container.addContainerFilter( new Or( new SimpleStringFilter(PROP_CAPTION, search, tr...
public class class_name { protected void filterTable(String search) { m_container.removeAllContainerFilters(); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(search)) { m_container.addContainerFilter( new Or( new SimpleStringFilter(PROP_CAPTION, search, tr...
public class class_name { private String parseTextDecl(String encoding) throws SAXException, IOException { String encodingName = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; // Read an optional version. if (tryRead("version")) { String...
public class class_name { private String parseTextDecl(String encoding) throws SAXException, IOException { String encodingName = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; // Read an optional version. if (tryRead("version")) { String...
public class class_name { final public StringWrapper prepare(String s) { BagOfTokens bag = new BagOfTokens(s, tokenizer.tokenize(s)); double totalWeight = bag.getTotalWeight(); for (Iterator i=bag.tokenIterator(); i.hasNext(); ) { Token tok = (Token)i.next(); double freq = bag.getWeight(tok); bag.setWei...
public class class_name { final public StringWrapper prepare(String s) { BagOfTokens bag = new BagOfTokens(s, tokenizer.tokenize(s)); double totalWeight = bag.getTotalWeight(); for (Iterator i=bag.tokenIterator(); i.hasNext(); ) { Token tok = (Token)i.next(); double freq = bag.getWeight(tok); bag.setWei...
public class class_name { private String getNamespaceValue(final String value) { if (value == null || value.contains(":") || value.equals("text")) { return value; } else { return getCurrentNamespace() + ":" + value; } } }
public class class_name { private String getNamespaceValue(final String value) { if (value == null || value.contains(":") || value.equals("text")) { return value; // depends on control dependency: [if], data = [none] } else { return getCurrentNamespace() + ":" + value; // depend...
public class class_name { private static boolean checkInitialize(Method method, Object obj) { boolean isInitialized = true; try { isInitialized = (Boolean) method.invoke(null, new Object[] {obj}); } catch (IllegalArgumentException e) { // do nothing } ca...
public class class_name { private static boolean checkInitialize(Method method, Object obj) { boolean isInitialized = true; try { isInitialized = (Boolean) method.invoke(null, new Object[] {obj}); // depends on control dependency: [try], data = [none] } catch (IllegalA...
public class class_name { private final void freeByteArrayStream(ByteArrayOutputStream baos) { // If the pool is not full, then add to the pool. Note that this must // be synchronized, as multiple threads may access the pool. d175235 synchronized (svBAOSs) { if (sv...
public class class_name { private final void freeByteArrayStream(ByteArrayOutputStream baos) { // If the pool is not full, then add to the pool. Note that this must // be synchronized, as multiple threads may access the pool. d175235 synchronized (svBAOSs) { if (sv...
public class class_name { public void onResourceRequested(final ResourceRequestEvent resourceRequestEvent, final String containerId, final URI jarFileUri) { try { createAzureBatchTask(containerId, jarFileUri); this.outstandingResourceR...
public class class_name { public void onResourceRequested(final ResourceRequestEvent resourceRequestEvent, final String containerId, final URI jarFileUri) { try { createAzureBatchTask(containerId, jarFileUri); // depends on control dependenc...
public class class_name { public final ProjectionJavaScriptBuilder types(final List<TypeName> eventTypes) { for (final TypeName type : eventTypes) { type(type.asBaseType()); } return this; } }
public class class_name { public final ProjectionJavaScriptBuilder types(final List<TypeName> eventTypes) { for (final TypeName type : eventTypes) { type(type.asBaseType()); // depends on control dependency: [for], data = [type] } return this; } }
public class class_name { public List<GoogleMapShape> toShapes( GeometryCollection<Geometry> geometryCollection) { List<GoogleMapShape> shapes = new ArrayList<GoogleMapShape>(); for (Geometry geometry : geometryCollection.getGeometries()) { GoogleMapShape shape = toShape(geome...
public class class_name { public List<GoogleMapShape> toShapes( GeometryCollection<Geometry> geometryCollection) { List<GoogleMapShape> shapes = new ArrayList<GoogleMapShape>(); for (Geometry geometry : geometryCollection.getGeometries()) { GoogleMapShape shape = toShape(geome...
public class class_name { public static String concatPathAndFilename(final String path, final String filename, final String separator) { checkNotNull("filename", filename); checkNotNull("separator", separator); checkNotEmpty("separator", separator); if (path == null) { ...
public class class_name { public static String concatPathAndFilename(final String path, final String filename, final String separator) { checkNotNull("filename", filename); checkNotNull("separator", separator); checkNotEmpty("separator", separator); if (path == null) { ...
public class class_name { public RunJobFlowRequest withNewSupportedProducts(SupportedProductConfig... newSupportedProducts) { if (this.newSupportedProducts == null) { setNewSupportedProducts(new com.amazonaws.internal.SdkInternalList<SupportedProductConfig>(newSupportedProducts.length)); } ...
public class class_name { public RunJobFlowRequest withNewSupportedProducts(SupportedProductConfig... newSupportedProducts) { if (this.newSupportedProducts == null) { setNewSupportedProducts(new com.amazonaws.internal.SdkInternalList<SupportedProductConfig>(newSupportedProducts.length)); // depends...
public class class_name { public void cleanupProjectArtifacts(final int projectId) { try { this.storageCleaner.cleanupProjectArtifacts(projectId); } catch (final Exception e) { log.error("Error occured during cleanup. Ignoring and continuing...", e); } } }
public class class_name { public void cleanupProjectArtifacts(final int projectId) { try { this.storageCleaner.cleanupProjectArtifacts(projectId); // depends on control dependency: [try], data = [none] } catch (final Exception e) { log.error("Error occured during cleanup. Ignoring and continuing......
public class class_name { protected static AbatisService getInstance(Context context, String dbName, int version) { if (instance == null) { instance = new AbatisService(context, dbName, version); } return instance; } }
public class class_name { protected static AbatisService getInstance(Context context, String dbName, int version) { if (instance == null) { instance = new AbatisService(context, dbName, version); // depends on control dependency: [if], data = [none] } return instance; } }
public class class_name { public static Collection<DatasetDescriptor> findPotentialDatasets( FileSystem fs, Path path) throws IOException { List<DatasetDescriptor> descriptors = Lists.newArrayList(); Result result = visit(new FindDatasets(), fs, path); if (result instanceof Result.Table) { des...
public class class_name { public static Collection<DatasetDescriptor> findPotentialDatasets( FileSystem fs, Path path) throws IOException { List<DatasetDescriptor> descriptors = Lists.newArrayList(); Result result = visit(new FindDatasets(), fs, path); if (result instanceof Result.Table) { des...
public class class_name { private void processSnapshotResponse(ClientResponse response) { setState(State.WAITING); final long now = System.currentTimeMillis(); m_nextSnapshotTime += m_frequencyInMillis; if (m_nextSnapshotTime < now) { m_nextSnapshotTime = now - 1; } ...
public class class_name { private void processSnapshotResponse(ClientResponse response) { setState(State.WAITING); final long now = System.currentTimeMillis(); m_nextSnapshotTime += m_frequencyInMillis; if (m_nextSnapshotTime < now) { m_nextSnapshotTime = now - 1; // depends...
public class class_name { private Map<String, String> buildApplyParams(RefundApplyRequest request) { Map<String, String> refundParams = new TreeMap<>(); // 配置参数 buildConfigParams(refundParams); // 业务参数 putIfNotEmpty(refundParams, WepayField.TRANSACTION_ID, request.getTransacti...
public class class_name { private Map<String, String> buildApplyParams(RefundApplyRequest request) { Map<String, String> refundParams = new TreeMap<>(); // 配置参数 buildConfigParams(refundParams); // 业务参数 putIfNotEmpty(refundParams, WepayField.TRANSACTION_ID, request.getTransacti...
public class class_name { private List<SimulatorEvent> handleKillTaskAction(KillTaskAction action, long now) { TaskAttemptID taskId = action.getTaskID(); // we don't have a nice(r) toString() in Hadoop's TaskActions if (LOG.isDebugEnabled()) { LOG.debug("Handling kill task action, taskId=" + taskId ...
public class class_name { private List<SimulatorEvent> handleKillTaskAction(KillTaskAction action, long now) { TaskAttemptID taskId = action.getTaskID(); // we don't have a nice(r) toString() in Hadoop's TaskActions if (LOG.isDebugEnabled()) { LOG.debug("Handling kill task action, taskId=" + taskId ...
public class class_name { private Set<ConstraintViolation<?>> validateJsr303(V value) { @SuppressWarnings("rawtypes") Set set; if (this.property == null) { if (value == null) { return null; } set = this.validator.validate(value, this.groups); } else { set = this.validat...
public class class_name { private Set<ConstraintViolation<?>> validateJsr303(V value) { @SuppressWarnings("rawtypes") Set set; if (this.property == null) { if (value == null) { return null; // depends on control dependency: [if], data = [none] } set = this.validator.validate(valu...
public class class_name { @VisibleForTesting List<Long> prepareRowBaseTimesRollup() { final RollupInterval interval = rollup_query.getRollupInterval(); // standard TSDB table format, i.e. we're using the default table and schema if (interval.getUnits() == 'h') { return prepareRowBaseTimes(); }...
public class class_name { @VisibleForTesting List<Long> prepareRowBaseTimesRollup() { final RollupInterval interval = rollup_query.getRollupInterval(); // standard TSDB table format, i.e. we're using the default table and schema if (interval.getUnits() == 'h') { return prepareRowBaseTimes(); // de...
public class class_name { public void marshall(GetSnapshotLimitsRequest getSnapshotLimitsRequest, ProtocolMarshaller protocolMarshaller) { if (getSnapshotLimitsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public void marshall(GetSnapshotLimitsRequest getSnapshotLimitsRequest, ProtocolMarshaller protocolMarshaller) { if (getSnapshotLimitsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public static File getLogsRoot() { String tagsLogsPath = SystemProperties.getString(LOGS_ROOT_PATH_PROPERTY); if (tagsLogsPath == null) { return new File(Jenkins.get().getRootDir(), "logs"); } else { Level logLevel = Level.INFO; if (...
public class class_name { public static File getLogsRoot() { String tagsLogsPath = SystemProperties.getString(LOGS_ROOT_PATH_PROPERTY); if (tagsLogsPath == null) { return new File(Jenkins.get().getRootDir(), "logs"); // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public Color getColorFor( double value ) { if (value <= min) { return colors[0]; } else if (value >= max) { return colors[colors.length - 1]; } else { for( int i = 1; i < colors.length; i++ ) { double v1 = values[i - ...
public class class_name { public Color getColorFor( double value ) { if (value <= min) { return colors[0]; // depends on control dependency: [if], data = [none] } else if (value >= max) { return colors[colors.length - 1]; // depends on control dependency: [if], data = [none] ...
public class class_name { public boolean exclusiveTryLockNanos(long nanosTimeout) throws InterruptedException { final long lastTime = System.nanoTime(); // Try to acquire the lock in write-mode if (stampedLock.tryWriteLock(nanosTimeout, TimeUnit.NANOSECONDS) == 0) { return false; } // We can...
public class class_name { public boolean exclusiveTryLockNanos(long nanosTimeout) throws InterruptedException { final long lastTime = System.nanoTime(); // Try to acquire the lock in write-mode if (stampedLock.tryWriteLock(nanosTimeout, TimeUnit.NANOSECONDS) == 0) { return false; } // We can...
public class class_name { private static Throwable getWorkflowCause( Exception exception ){ Throwable e = exception; while( e instanceof WorkflowException ){ e = e.getCause(); } return e; } }
public class class_name { private static Throwable getWorkflowCause( Exception exception ){ Throwable e = exception; while( e instanceof WorkflowException ){ e = e.getCause(); // depends on control dependency: [while], data = [none] } return e; } }
public class class_name { public Collection<String> getDirectoriesToMonitor() { Collection<String> files = new HashSet<String>(); if (configDropinDefaults != null) { files.add(configDropinDefaults.toRepositoryPath()); } if (configDropinOverrides != null) { files...
public class class_name { public Collection<String> getDirectoriesToMonitor() { Collection<String> files = new HashSet<String>(); if (configDropinDefaults != null) { files.add(configDropinDefaults.toRepositoryPath()); // depends on control dependency: [if], data = [(configDropinDefaults] ...
public class class_name { public synchronized void setPlaybackState(int player, long position, boolean playing) { if (getMonitoredPlayer() != 0 && player != getMonitoredPlayer()) { throw new IllegalStateException("Cannot setPlaybackState for another player when monitoring player " + getMonitoredPla...
public class class_name { public synchronized void setPlaybackState(int player, long position, boolean playing) { if (getMonitoredPlayer() != 0 && player != getMonitoredPlayer()) { throw new IllegalStateException("Cannot setPlaybackState for another player when monitoring player " + getMonitoredPla...
public class class_name { private boolean applySnapshotToDB(EntryPosition position, boolean init) { // 获取一份快照 Map<String, String> schemaDdls = null; lock.readLock().lock(); try { if (!init && !hasNewDdl) { // 如果是持续构建,则识别一下是否有DDL变更过,如果没有就忽略了 re...
public class class_name { private boolean applySnapshotToDB(EntryPosition position, boolean init) { // 获取一份快照 Map<String, String> schemaDdls = null; lock.readLock().lock(); try { if (!init && !hasNewDdl) { // 如果是持续构建,则识别一下是否有DDL变更过,如果没有就忽略了 re...
public class class_name { @Override public void setContentType(final String type) { super.setContentType(type); contentTypeResolver = new ContentTypeHeaderResolver(type); if (bufferContentType(type, contentTypeResolver.getMimeType(), contentTypeResolver.getEncoding())) { enableBuffering(); } else { di...
public class class_name { @Override public void setContentType(final String type) { super.setContentType(type); contentTypeResolver = new ContentTypeHeaderResolver(type); if (bufferContentType(type, contentTypeResolver.getMimeType(), contentTypeResolver.getEncoding())) { enableBuffering(); // depends on co...
public class class_name { @Override public List<Object> getServices(Class<?> root,Class<?> transactionType){ Map<Class<?>, List<Object>> map = mapBusinessProvider.get(root); if(map != null){ List<Object> list = map.get(transactionType); if(list != null){ return Collections.unmodifiableList(list); ...
public class class_name { @Override public List<Object> getServices(Class<?> root,Class<?> transactionType){ Map<Class<?>, List<Object>> map = mapBusinessProvider.get(root); if(map != null){ List<Object> list = map.get(transactionType); if(list != null){ return Collections.unmodifiableList(list); ...
public class class_name { public static String toUnicodeHex(int value) { final StringBuilder builder = new StringBuilder(6); builder.append("\\u"); String hex = toHex(value); int len = hex.length(); if (len < 4) { builder.append("0000", 0, 4 - len);// 不足4位补0 } builder.append(hex); retur...
public class class_name { public static String toUnicodeHex(int value) { final StringBuilder builder = new StringBuilder(6); builder.append("\\u"); String hex = toHex(value); int len = hex.length(); if (len < 4) { builder.append("0000", 0, 4 - len);// 不足4位补0 // depends on control dependency: [if]...
public class class_name { @Override public FSDataOutputStream create(Path file, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) throws IOException { final FTPClient client = connect(); Path workDir = new Path(client.printWorkin...
public class class_name { @Override public FSDataOutputStream create(Path file, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) throws IOException { final FTPClient client = connect(); Path workDir = new Path(client.printWorkin...
public class class_name { public static FullyQualifiedJavaType getModelTypeWithBLOBs(IntrospectedTable introspectedTable) { FullyQualifiedJavaType type; if (introspectedTable.getRules().generateRecordWithBLOBsClass()) { type = new FullyQualifiedJavaType(introspectedTable.getRecordWithBLOBsT...
public class class_name { public static FullyQualifiedJavaType getModelTypeWithBLOBs(IntrospectedTable introspectedTable) { FullyQualifiedJavaType type; if (introspectedTable.getRules().generateRecordWithBLOBsClass()) { type = new FullyQualifiedJavaType(introspectedTable.getRecordWithBLOBsT...
public class class_name { public void removeValue(V value) { if (value == null) { throw new IllegalArgumentException("Method argument value must not be null."); } for (Collection<V> values : values()) { values.remove(value); } } }
public class class_name { public void removeValue(V value) { if (value == null) { throw new IllegalArgumentException("Method argument value must not be null."); } for (Collection<V> values : values()) { values.remove(value); // depends on control dependency: [for], data ...
public class class_name { Index getIndexForColumns(OrderedIntHashSet set) { int maxMatchCount = 0; Index selected = null; if (set.isEmpty()) { return null; } for (int i = 0, count = indexList.length; i < count; i++) { Index currentindex = getInd...
public class class_name { Index getIndexForColumns(OrderedIntHashSet set) { int maxMatchCount = 0; Index selected = null; if (set.isEmpty()) { return null; // depends on control dependency: [if], data = [none] } for (int i = 0, count = indexList.length; i <...
public class class_name { public List<WebAppFilterMapping> getFilterMappings(final String filterName) { final Set<WebAppFilterMapping> webAppFilterMappings = filterMappings .get(filterName); if (webAppFilterMappings == null) { return new ArrayList<>(); } return new ArrayList<>(webAppFilterMappings); } ...
public class class_name { public List<WebAppFilterMapping> getFilterMappings(final String filterName) { final Set<WebAppFilterMapping> webAppFilterMappings = filterMappings .get(filterName); if (webAppFilterMappings == null) { return new ArrayList<>(); // depends on control dependency: [if], data = [none] ...
public class class_name { public static boolean isPassivationCapableBean(Bean<?> bean) { if (bean instanceof RIBean<?>) { return ((RIBean<?>) bean).isPassivationCapableBean(); } else { return bean instanceof PassivationCapable; } } }
public class class_name { public static boolean isPassivationCapableBean(Bean<?> bean) { if (bean instanceof RIBean<?>) { return ((RIBean<?>) bean).isPassivationCapableBean(); // depends on control dependency: [if], data = [)] } else { return bean instanceof PassivationCapable; ...
public class class_name { public List<TypeLiteral<?>> getParameterTypes() { if (parameterTypes == null) { parameterTypes = getDeclaringType().getParameterTypes(getMember()); } return parameterTypes; } }
public class class_name { public List<TypeLiteral<?>> getParameterTypes() { if (parameterTypes == null) { parameterTypes = getDeclaringType().getParameterTypes(getMember()); // depends on control dependency: [if], data = [none] } return parameterTypes; } }
public class class_name { public FacesConfigApplicationResourceLibraryContractsContractMappingType<FacesConfigApplicationResourceLibraryContractsType<T>> getOrCreateContractMapping() { List<Node> nodeList = childNode.get("contract-mapping"); if (nodeList != null && nodeList.size() > 0) { ...
public class class_name { public FacesConfigApplicationResourceLibraryContractsContractMappingType<FacesConfigApplicationResourceLibraryContractsType<T>> getOrCreateContractMapping() { List<Node> nodeList = childNode.get("contract-mapping"); if (nodeList != null && nodeList.size() > 0) { ...
public class class_name { @Override public <T> T getValue(String key) { ValueObject vo = get(key); if (null == vo) { return null; } return vo.value(); } }
public class class_name { @Override public <T> T getValue(String key) { ValueObject vo = get(key); if (null == vo) { return null; // depends on control dependency: [if], data = [none] } return vo.value(); } }
public class class_name { public void addDirectoryScan(String dirName, String suffix, String regexpPatternString, String subdirsS, String olderS, Object auxInfo) { CompositeMFileFilter filters = new CompositeMFileFilter(); if (null != regexpPatternString) filters.addIncludeFilter(new RegExpMatchOnName...
public class class_name { public void addDirectoryScan(String dirName, String suffix, String regexpPatternString, String subdirsS, String olderS, Object auxInfo) { CompositeMFileFilter filters = new CompositeMFileFilter(); if (null != regexpPatternString) filters.addIncludeFilter(new RegExpMatchOnName...
public class class_name { private IRing prepareRing(List vec, IAtomContainer mol) { // add the atoms in vec to the new ring int atomCount = vec.size(); IRing ring = mol.getBuilder().newInstance(IRing.class, atomCount); IAtom[] atoms = new IAtom[atomCount]; vec.toArray(atoms); ...
public class class_name { private IRing prepareRing(List vec, IAtomContainer mol) { // add the atoms in vec to the new ring int atomCount = vec.size(); IRing ring = mol.getBuilder().newInstance(IRing.class, atomCount); IAtom[] atoms = new IAtom[atomCount]; vec.toArray(atoms); ...
public class class_name { private void copyAppConfigFiles(File appBuildDir, File appConfigDir) throws IOException { File[] files = appConfigDir.listFiles(); if (files != null) { appBuildDir.mkdirs(); for (File file : files) { File outFile = new File(appBuildDir, ...
public class class_name { private void copyAppConfigFiles(File appBuildDir, File appConfigDir) throws IOException { File[] files = appConfigDir.listFiles(); if (files != null) { appBuildDir.mkdirs(); for (File file : files) { File outFile = new File(appBuildDir, ...
public class class_name { @Override public Inet6Address toInetAddress() { if(hasZone()) { Inet6Address result; if(hasNoValueCache() || (result = valueCache.inetAddress) == null) { valueCache.inetAddress = result = (Inet6Address) toInetAddressImpl(getBytes()); } return result; } return (Inet6Addr...
public class class_name { @Override public Inet6Address toInetAddress() { if(hasZone()) { Inet6Address result; if(hasNoValueCache() || (result = valueCache.inetAddress) == null) { valueCache.inetAddress = result = (Inet6Address) toInetAddressImpl(getBytes()); // depends on control dependency: [if], data =...
public class class_name { public int getAllCookieValues(String name, List<String> list) { int added = 0; if (0 < this.parsedList.size() && null != name) { for (HttpCookie cookie : this.parsedList) { if (name.equals(cookie.getName())) { list.add(cookie.get...
public class class_name { public int getAllCookieValues(String name, List<String> list) { int added = 0; if (0 < this.parsedList.size() && null != name) { for (HttpCookie cookie : this.parsedList) { if (name.equals(cookie.getName())) { list.add(cookie.get...
public class class_name { private void addPostParams(final Request request) { if (uniqueName != null) { request.addPostParam("UniqueName", uniqueName); } if (callbackMethod != null) { request.addPostParam("CallbackMethod", callbackMethod); } if (callbac...
public class class_name { private void addPostParams(final Request request) { if (uniqueName != null) { request.addPostParam("UniqueName", uniqueName); // depends on control dependency: [if], data = [none] } if (callbackMethod != null) { request.addPostParam("CallbackMe...
public class class_name { public void replaceElement(final CmsContainerPageElementPanel elementWidget, final String elementId) { final CmsRpcAction<CmsContainerElementData> action = new CmsRpcAction<CmsContainerElementData>() { @Override public void execute() { start(...
public class class_name { public void replaceElement(final CmsContainerPageElementPanel elementWidget, final String elementId) { final CmsRpcAction<CmsContainerElementData> action = new CmsRpcAction<CmsContainerElementData>() { @Override public void execute() { start(...
public class class_name { public Optional<FileStatus> findPersistedFile(State state, CopyEntity file, Predicate<FileStatus> filter) throws IOException { if (!this.persistDir.isPresent() || !this.fs.exists(this.persistDir.get())) { return Optional.absent(); } Path guidPath = new Path(this.persi...
public class class_name { public Optional<FileStatus> findPersistedFile(State state, CopyEntity file, Predicate<FileStatus> filter) throws IOException { if (!this.persistDir.isPresent() || !this.fs.exists(this.persistDir.get())) { return Optional.absent(); } Path guidPath = new Path(this.persi...
public class class_name { protected void firePeerConnected(URI peerURI, SpaceID space) { final NetworkServiceListener[] ilisteners; synchronized (this.listeners) { ilisteners = new NetworkServiceListener[this.listeners.size()]; this.listeners.toArray(ilisteners); } ...
public class class_name { protected void firePeerConnected(URI peerURI, SpaceID space) { final NetworkServiceListener[] ilisteners; synchronized (this.listeners) { ilisteners = new NetworkServiceListener[this.listeners.size()]; this.listeners.toArray(ilisteners); } ...
public class class_name { public static File[] filesInFolderMatchingStemRegex(File file, final String stemRegex) { if (file == null) { return new File[0]; } if (!file.exists() || !file.isDirectory()) { return new File[0]; } return file.listFiles(new FilenameFilter() { publi...
public class class_name { public static File[] filesInFolderMatchingStemRegex(File file, final String stemRegex) { if (file == null) { return new File[0]; // depends on control dependency: [if], data = [none] } if (!file.exists() || !file.isDirectory()) { return new File[0]; // depends o...
public class class_name { public void onPrepareMenu(){ if(mGroupChanged || mMenuDataChanged){ mToolbar.getViewTreeObserver().addOnGlobalLayoutListener(mOnGlobalLayoutListener); Menu menu = mToolbar.getMenu(); for(int i = 0, count = menu.size(); i < count; i++){ ...
public class class_name { public void onPrepareMenu(){ if(mGroupChanged || mMenuDataChanged){ mToolbar.getViewTreeObserver().addOnGlobalLayoutListener(mOnGlobalLayoutListener); // depends on control dependency: [if], data = [none] Menu menu = mToolbar.getMenu(); for(int i =...
public class class_name { void onHeartbeat(Member member, long timestamp) { if (!heartbeatAwareQuorumFunction) { return; } ((HeartbeatAware) quorumFunction).onHeartbeat(member, timestamp); } }
public class class_name { void onHeartbeat(Member member, long timestamp) { if (!heartbeatAwareQuorumFunction) { return; // depends on control dependency: [if], data = [none] } ((HeartbeatAware) quorumFunction).onHeartbeat(member, timestamp); } }
public class class_name { public ContentPermissionManager getContentPermissionManager() { if (contentPermissionManager != null) { return contentPermissionManager; } contentPermissionManager = (ContentPermissionManager) ContainerManager.getComponent("contentPermissionManager"); ...
public class class_name { public ContentPermissionManager getContentPermissionManager() { if (contentPermissionManager != null) { return contentPermissionManager; // depends on control dependency: [if], data = [none] } contentPermissionManager = (ContentPermissionManager) ContainerM...
public class class_name { private boolean isColumnType(List<String> columnTypes, String columnName, List<String> tableNames, boolean debugPrint) { if (debugPrint) { System.out.println(" In NonVoltDBBackend.isColumnType:"); System.out.println(" column...
public class class_name { private boolean isColumnType(List<String> columnTypes, String columnName, List<String> tableNames, boolean debugPrint) { if (debugPrint) { System.out.println(" In NonVoltDBBackend.isColumnType:"); // depends on control dependency: [if], da...
public class class_name { public static String next(boolean withHyphen) { byte[] array = nextBytes(); final StringBuilder buf = new StringBuilder(withHyphen ? 26 : 24); int t; for (int i = 0; i < array.length; i++) { if (withHyphen && i % 4 == 0 && i != 0) { buf.append("-"); } t = array[i]...
public class class_name { public static String next(boolean withHyphen) { byte[] array = nextBytes(); final StringBuilder buf = new StringBuilder(withHyphen ? 26 : 24); int t; for (int i = 0; i < array.length; i++) { if (withHyphen && i % 4 == 0 && i != 0) { buf.append("-"); // depends on control...
public class class_name { private static JsonNode toJson(AggregatedHttpMessage res, @Nullable JsonNodeType expectedNodeType) { final String content = toString(res); final JsonNode node; try { node = Jackson.readTree(content); } catch (JsonParseException e) { thro...
public class class_name { private static JsonNode toJson(AggregatedHttpMessage res, @Nullable JsonNodeType expectedNodeType) { final String content = toString(res); final JsonNode node; try { node = Jackson.readTree(content); // depends on control dependency: [try], data = [none] ...
public class class_name { static Predicate<CtClass> createMatchingPredicate(final Set<PathMatcher> pathMatchers) { return ctClass -> { for (final PathMatcher pathMatcher : pathMatchers) { if (pathMatcher.matches(Paths.get(ctClass.getName()))) { return true; ...
public class class_name { static Predicate<CtClass> createMatchingPredicate(final Set<PathMatcher> pathMatchers) { return ctClass -> { for (final PathMatcher pathMatcher : pathMatchers) { if (pathMatcher.matches(Paths.get(ctClass.getName()))) { return true; // de...
public class class_name { public double compute(double[] x, double[] grad) { double val = 0.0; switch (type) { case NULL: return val; case QUADRATIC: for (int i = 0; i < x.length; i++) { val += x[i] * x[i] / 2.0 / sigmaSq; grad[i] += x[i] / sigm...
public class class_name { public double compute(double[] x, double[] grad) { double val = 0.0; switch (type) { case NULL: return val; case QUADRATIC: for (int i = 0; i < x.length; i++) { val += x[i] * x[i] / 2.0 / sigmaSq; // depends on control dependency...
public class class_name { public String createPatternString(String pattern, int length) { if (pattern == null) { return null; } int totalLength = pattern.length() * length; StringBuffer sb = new StringBuffer(totalLength); for (int i = 0; i < length; i++) { ...
public class class_name { public String createPatternString(String pattern, int length) { if (pattern == null) { return null; // depends on control dependency: [if], data = [none] } int totalLength = pattern.length() * length; StringBuffer sb = new StringBuffer(totalLength)...
public class class_name { public Observable<ServiceResponse<KeyVerifyResult>> verifyWithServiceResponseAsync(String vaultBaseUrl, String keyName, String keyVersion, JsonWebKeySignatureAlgorithm algorithm, byte[] digest, byte[] signature) { if (vaultBaseUrl == null) { throw new IllegalArgumentExcept...
public class class_name { public Observable<ServiceResponse<KeyVerifyResult>> verifyWithServiceResponseAsync(String vaultBaseUrl, String keyName, String keyVersion, JsonWebKeySignatureAlgorithm algorithm, byte[] digest, byte[] signature) { if (vaultBaseUrl == null) { throw new IllegalArgumentExcept...
public class class_name { private void stopServices() { // Stop services in reverse order of starting. m_logger.debug("Stopping all services"); ListIterator<Service> iter = m_startedServices.listIterator(m_startedServices.size()); while (iter.hasPrevious()) { Service se...
public class class_name { private void stopServices() { // Stop services in reverse order of starting. m_logger.debug("Stopping all services"); ListIterator<Service> iter = m_startedServices.listIterator(m_startedServices.size()); while (iter.hasPrevious()) { Service se...
public class class_name { public static List<TypeMirror> getComponentCustomizeOptions(Elements elementsUtil, TypeElement component) { Component componentAnnotation = component.getAnnotation(Component.class); try { Class<?>[] componentsClass = componentAnnotation.customizeOptions(); return S...
public class class_name { public static List<TypeMirror> getComponentCustomizeOptions(Elements elementsUtil, TypeElement component) { Component componentAnnotation = component.getAnnotation(Component.class); try { Class<?>[] componentsClass = componentAnnotation.customizeOptions(); return S...
public class class_name { public Query getMiniSelectQuery(Collection<String> columns, Collection<Match> matches) { int matchSize = matches == null ? 0 : matches.size(); int maxSqlLength = matches == null ? 50 : (matchSize + 3) * 10; StringBuilder sb = new StringBuilder(maxSqlLength); ...
public class class_name { public Query getMiniSelectQuery(Collection<String> columns, Collection<Match> matches) { int matchSize = matches == null ? 0 : matches.size(); int maxSqlLength = matches == null ? 50 : (matchSize + 3) * 10; StringBuilder sb = new StringBuilder(maxSqlLength); ...
public class class_name { private void loadDictionary(final InputStream dictInputStream) throws IOException { dictionary = new HashMap<String, String>(); final BufferedReader breader = new BufferedReader( new InputStreamReader(dictInputStream, Charset.forName("UTF-8"))); String line; whil...
public class class_name { private void loadDictionary(final InputStream dictInputStream) throws IOException { dictionary = new HashMap<String, String>(); final BufferedReader breader = new BufferedReader( new InputStreamReader(dictInputStream, Charset.forName("UTF-8"))); String line; whil...
public class class_name { public static Rule getRule(final String expression, final boolean isPostFix) { String postFix = expression; if (!isPostFix) { postFix = CONVERTER.convert(expression); } return new ExpressionRule(COMPILER.compileExpression(postFix)); } }
public class class_name { public static Rule getRule(final String expression, final boolean isPostFix) { String postFix = expression; if (!isPostFix) { postFix = CONVERTER.convert(expression); // depends on control dependency: [if], data = [none] } return new Express...
public class class_name { public HostName toCanonicalHostName() { HostName host = canonicalHost; if(host == null) { if(isMultiple()) { throw new IncompatibleAddressException(this, "ipaddress.error.unavailable.numeric"); } InetAddress inetAddress = toInetAddress(); String hostStr = inetAddress.getCa...
public class class_name { public HostName toCanonicalHostName() { HostName host = canonicalHost; if(host == null) { if(isMultiple()) { throw new IncompatibleAddressException(this, "ipaddress.error.unavailable.numeric"); } InetAddress inetAddress = toInetAddress(); String hostStr = inetAddress.getCa...
public class class_name { public void addJavaLibraries() { Vector packages = JavaEnvUtils.getJrePackages(); Enumeration e = packages.elements(); while (e.hasMoreElements()) { String packageName = (String) e.nextElement(); addSystemPackageRoot(packageName); } ...
public class class_name { public void addJavaLibraries() { Vector packages = JavaEnvUtils.getJrePackages(); Enumeration e = packages.elements(); while (e.hasMoreElements()) { String packageName = (String) e.nextElement(); addSystemPackageRoot(packageName); // depends on ...
public class class_name { public static String decode(String s) { if (s == null) { return null; } int i = s.indexOf('%'); if (i == -1) { return s; } StringBuilder builder = new StringBuilder(); int begin = 0; do { bu...
public class class_name { public static String decode(String s) { if (s == null) { return null; // depends on control dependency: [if], data = [none] } int i = s.indexOf('%'); if (i == -1) { return s; // depends on control dependency: [if], data = [none] ...
public class class_name { private static boolean isURIString(String p_uric) { if (p_uric == null) { return false; } int end = p_uric.length(); char testChar = '\0'; for (int i = 0; i < end; i++) { testChar = p_uric.charAt(i); if (testChar == '%') { if (...
public class class_name { private static boolean isURIString(String p_uric) { if (p_uric == null) { return false; // depends on control dependency: [if], data = [none] } int end = p_uric.length(); char testChar = '\0'; for (int i = 0; i < end; i++) { testChar = p_uric.charA...
public class class_name { @SuppressWarnings("restriction") public final void putLong(int index, long value) { if (CHECKED) { if (index >= 0 && index <= this.memory.length - 8) { UNSAFE.putLong(this.memory, BASE_OFFSET + index, value); } else { throw new IndexOutOfBoundsException(); } } else { ...
public class class_name { @SuppressWarnings("restriction") public final void putLong(int index, long value) { if (CHECKED) { if (index >= 0 && index <= this.memory.length - 8) { UNSAFE.putLong(this.memory, BASE_OFFSET + index, value); // depends on control dependency: [if], data = [none] } else { thro...
public class class_name { public static synchronized int registerTokenForUDF(String functionName, int functionId, VoltType voltReturnType, VoltType[] volt...
public class class_name { public static synchronized int registerTokenForUDF(String functionName, int functionId, VoltType voltReturnType, VoltType[] volt...
public class class_name { private void writeIfChanged(byte[] b, FileObject file) throws IOException { boolean mustWrite = false; String event = "[No need to update file "; if (force) { mustWrite = true; event = "[Forcefully writing file "; } else { I...
public class class_name { private void writeIfChanged(byte[] b, FileObject file) throws IOException { boolean mustWrite = false; String event = "[No need to update file "; if (force) { mustWrite = true; event = "[Forcefully writing file "; } else { I...
public class class_name { @Override public List<PhoneNumber> searchForNumbers(String country, PhoneNumberSearchFilters listFilters) { List<PhoneNumber> availableNumbers = new ArrayList<PhoneNumber>(); if (logger.isDebugEnabled()) { logger.debug("searchPattern: " + listFilters.getFilterP...
public class class_name { @Override public List<PhoneNumber> searchForNumbers(String country, PhoneNumberSearchFilters listFilters) { List<PhoneNumber> availableNumbers = new ArrayList<PhoneNumber>(); if (logger.isDebugEnabled()) { logger.debug("searchPattern: " + listFilters.getFilterP...
public class class_name { public EntityBuilder addSubEntities(List<Entity> entities) { if(entities == null) { throw new IllegalArgumentException("entities cannot be null."); } for (Entity entity : entities) { addSubEntity(entity); } return this; } }
public class class_name { public EntityBuilder addSubEntities(List<Entity> entities) { if(entities == null) { throw new IllegalArgumentException("entities cannot be null."); } for (Entity entity : entities) { addSubEntity(entity); // depends on control dependency: [for], data = [...
public class class_name { private void copy(ByteBuf src, ByteBuffer dst) { // This branch is necessary, because an Exception is thrown if the // destination buffer has more remaining (writable) bytes than // currently readable from the Netty ByteBuf source. if (src.isReadable()) { if (src.readableBytes() < ...
public class class_name { private void copy(ByteBuf src, ByteBuffer dst) { // This branch is necessary, because an Exception is thrown if the // destination buffer has more remaining (writable) bytes than // currently readable from the Netty ByteBuf source. if (src.isReadable()) { if (src.readableBytes() < ...
public class class_name { public static String getLocalDisplayName(String locale) { String desc = "" + locale; if (locale != null) { String[] langArray = locale.split("_"); Locale loc = null; if (langArray.length == 1) { loc = new Locale(langArray[0]); } else if (l...
public class class_name { public static String getLocalDisplayName(String locale) { String desc = "" + locale; if (locale != null) { String[] langArray = locale.split("_"); Locale loc = null; if (langArray.length == 1) { loc = new Locale(langArray[0]); // depends on control...
public class class_name { public void marshall(ResourceMetadata resourceMetadata, ProtocolMarshaller protocolMarshaller) { if (resourceMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(reso...
public class class_name { public void marshall(ResourceMetadata resourceMetadata, ProtocolMarshaller protocolMarshaller) { if (resourceMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(reso...
public class class_name { public SemanticVersion getPrevVersion() { int major = head.getMajorVersion(); int minor = head.getMinorVersion(); int patch = head.getPatchVersion(); if (patch > 0) { return new SemanticVersion(major, minor, patch - 1); } if (minor > 0) { return new Semanti...
public class class_name { public SemanticVersion getPrevVersion() { int major = head.getMajorVersion(); int minor = head.getMinorVersion(); int patch = head.getPatchVersion(); if (patch > 0) { return new SemanticVersion(major, minor, patch - 1); // depends on control dependency: [if], data = [non...
public class class_name { protected void pushBack(String str) { char[] chars = str.toCharArray(); for ( int j = chars.length - 1; j >= 0; j-- ) { reader.unread(chars[j]); } idx -= chars.length; } }
public class class_name { protected void pushBack(String str) { char[] chars = str.toCharArray(); for ( int j = chars.length - 1; j >= 0; j-- ) { reader.unread(chars[j]); // depends on control dependency: [for], data = [j] } idx -= chars.length; } }
public class class_name { private Engine executeDependencyCheck() throws ExceptionCollection { populateSettings(); final Engine engine; try { engine = new Engine(settings); } catch (DatabaseException ex) { throw new ExceptionCollection(ex, true); } ...
public class class_name { private Engine executeDependencyCheck() throws ExceptionCollection { populateSettings(); final Engine engine; try { engine = new Engine(settings); } catch (DatabaseException ex) { throw new ExceptionCollection(ex, true); } ...
public class class_name { public void add(@Nonnull DeploymentNode deploymentNode, boolean addRelationships) { if (deploymentNode == null) { throw new IllegalArgumentException("A deployment node must be specified."); } if (addContainerInstancesAndDeploymentNodes(deploymentNode, addR...
public class class_name { public void add(@Nonnull DeploymentNode deploymentNode, boolean addRelationships) { if (deploymentNode == null) { throw new IllegalArgumentException("A deployment node must be specified."); } if (addContainerInstancesAndDeploymentNodes(deploymentNode, addR...
public class class_name { private PolicyDefinitionBean updatePluginIdInPolicyDefinition(PolicyDefinitionBean policyDef) { if (pluginBeanIdMap.containsKey(policyDef.getPluginId())){ try { Map.Entry<String, String> pluginCoordinates = pluginBeanIdMap.get(policyDef.getPluginId()); ...
public class class_name { private PolicyDefinitionBean updatePluginIdInPolicyDefinition(PolicyDefinitionBean policyDef) { if (pluginBeanIdMap.containsKey(policyDef.getPluginId())){ try { Map.Entry<String, String> pluginCoordinates = pluginBeanIdMap.get(policyDef.getPluginId()); ...
public class class_name { public final void addViolation(final Status status,final String ruleName,final String ruleGroup,final String ruleDescription,final String positive) { final RuleViolation currentRuleViolation = ruleViolationMap.get(ruleName); if (currentRuleViolation == null || status.ordinal() > currentR...
public class class_name { public final void addViolation(final Status status,final String ruleName,final String ruleGroup,final String ruleDescription,final String positive) { final RuleViolation currentRuleViolation = ruleViolationMap.get(ruleName); if (currentRuleViolation == null || status.ordinal() > currentR...
public class class_name { public static base_responses add(nitro_service client, tmsessionaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { tmsessionaction addresources[] = new tmsessionaction[resources.length]; for (int i=0;i<resources.leng...
public class class_name { public static base_responses add(nitro_service client, tmsessionaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { tmsessionaction addresources[] = new tmsessionaction[resources.length]; for (int i=0;i<resources.leng...
public class class_name { public static OutputStream newOutputStream(final WritableByteChannel ch) { checkNotNull(ch, "ch"); return new OutputStream() { private ByteBuffer bb = null; private byte[] bs = null; // Invoker's previous array private by...
public class class_name { public static OutputStream newOutputStream(final WritableByteChannel ch) { checkNotNull(ch, "ch"); return new OutputStream() { private ByteBuffer bb = null; private byte[] bs = null; // Invoker's previous array private by...
public class class_name { public String toDebugString() { StringBuilder sb = new StringBuilder(); sb.append("GosuPathEntry:\n"); sb.append(" root: ").append(_root.toJavaFile().getAbsolutePath()).append("\n"); for (IDirectory src : _srcs) { sb.append(" src: ").append(src.toJavaFile().getAbsolute...
public class class_name { public String toDebugString() { StringBuilder sb = new StringBuilder(); sb.append("GosuPathEntry:\n"); sb.append(" root: ").append(_root.toJavaFile().getAbsolutePath()).append("\n"); for (IDirectory src : _srcs) { sb.append(" src: ").append(src.toJavaFile().getAbsolute...
public class class_name { protected void lookup(String lemma, String posTag, List<String> results) { synchronized (this) { // the stemmer is not thread-safe List<WordData> wordForms = stemmer.lookup(lemma + "|" + posTag); for (WordData wd : wordForms) { results.add(wd.getStem().toString()); ...
public class class_name { protected void lookup(String lemma, String posTag, List<String> results) { synchronized (this) { // the stemmer is not thread-safe List<WordData> wordForms = stemmer.lookup(lemma + "|" + posTag); for (WordData wd : wordForms) { results.add(wd.getStem().toString()); // ...
public class class_name { @Override public Object getAttribute(String arg0) { try { collaborator.preInvoke(componentMetaData); return request.getAttribute(arg0); } finally { collaborator.postInvoke(); } } }
public class class_name { @Override public Object getAttribute(String arg0) { try { collaborator.preInvoke(componentMetaData); // depends on control dependency: [try], data = [none] return request.getAttribute(arg0); // depends on control dependency: [try], data = [none] } f...