code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public boolean getCritical() { Boolean critical = (Boolean) getCachedValue(TaskField.CRITICAL); if (critical == null) { Duration totalSlack = getTotalSlack(); ProjectProperties props = getParentFile().getProjectProperties(); int criticalSlackLim...
public class class_name { public boolean getCritical() { Boolean critical = (Boolean) getCachedValue(TaskField.CRITICAL); if (critical == null) { Duration totalSlack = getTotalSlack(); ProjectProperties props = getParentFile().getProjectProperties(); int criticalSlackLim...
public class class_name { public DataProviderContext on(final Trigger... triggers) { final List<Trigger> registeredTriggers = new ArrayList<Trigger>(); if (triggers != null) { Collections.addAll(registeredTriggers, triggers); } return new DataProviderContext(registeredTrigge...
public class class_name { public DataProviderContext on(final Trigger... triggers) { final List<Trigger> registeredTriggers = new ArrayList<Trigger>(); if (triggers != null) { Collections.addAll(registeredTriggers, triggers); // depends on control dependency: [if], data = [none] } ...
public class class_name { private void rewriteReturns(Node fnNode) { checkState(fnNode.isFunction()); final Node body = fnNode.getLastChild(); NodeUtil.visitPostOrder( body, new NodeUtil.Visitor() { @Override public void visit(Node n) { if (n.isReturn() && n.hasOneChil...
public class class_name { private void rewriteReturns(Node fnNode) { checkState(fnNode.isFunction()); final Node body = fnNode.getLastChild(); NodeUtil.visitPostOrder( body, new NodeUtil.Visitor() { @Override public void visit(Node n) { if (n.isReturn() && n.hasOneChil...
public class class_name { public void loadConfiguration(String file) { if(configFile == null) try { Properties props = Util.readProperties(file); Set<String> environments = props.stringPropertyNames().stream().map(n -> n.substring(0, n.lastIndexOf("."))).collect(toSet()); ...
public class class_name { public void loadConfiguration(String file) { if(configFile == null) try { Properties props = Util.readProperties(file); Set<String> environments = props.stringPropertyNames().stream().map(n -> n.substring(0, n.lastIndexOf("."))).collect(toSet()); ...
public class class_name { public static <T> T createInstance(Class<?> rawClass, Class<T> superclass) { try { return rawClass.asSubclass(superclass).getConstructor().newInstance(); } catch (Exception e) { throw new ServiceConfigurationError( "Provider " + rawClass.getName() + " could not b...
public class class_name { public static <T> T createInstance(Class<?> rawClass, Class<T> superclass) { try { return rawClass.asSubclass(superclass).getConstructor().newInstance(); // depends on control dependency: [try], data = [none] } catch (Exception e) { throw new ServiceConfigurationError( ...
public class class_name { private Object getPropertyValue(Object pObj, String pProperty) { Method m = null; Class[] cl = new Class[0]; try { //return Util.getPropertyValue(pObj, pProperty); // Find method m = pObj.getClass(). ...
public class class_name { private Object getPropertyValue(Object pObj, String pProperty) { Method m = null; Class[] cl = new Class[0]; try { //return Util.getPropertyValue(pObj, pProperty); // Find method m = pObj.getClass(). ...
public class class_name { public static void executorShutDown(ExecutorService executorService, long timeOutSec) { try { executorService.shutdown(); executorService.awaitTermination(timeOutSec, TimeUnit.SECONDS); } catch(Exception e) { logger.warn("Error while stoping...
public class class_name { public static void executorShutDown(ExecutorService executorService, long timeOutSec) { try { executorService.shutdown(); // depends on control dependency: [try], data = [none] executorService.awaitTermination(timeOutSec, TimeUnit.SECONDS); // depends on contro...
public class class_name { public byte[] sign(byte[] content,PrivateKey privateKey) { try { java.security.Signature signature = java.security.Signature.getInstance(SIGN_ALGORITHMS); signature.initSign(privateKey); signature.update(content); ...
public class class_name { public byte[] sign(byte[] content,PrivateKey privateKey) { try { java.security.Signature signature = java.security.Signature.getInstance(SIGN_ALGORITHMS); signature.initSign(privateKey); // depends on control dependency: [try], data = [...
public class class_name { protected void markParseErrors(List<DroolsBuildMarker> markers, List<BaseKnowledgeBuilderResultImpl> parserErrors) { for ( Iterator<BaseKnowledgeBuilderResultImpl> iter = parserErrors.iterator(); iter.hasNext(); ) { Object error = iter.ne...
public class class_name { protected void markParseErrors(List<DroolsBuildMarker> markers, List<BaseKnowledgeBuilderResultImpl> parserErrors) { for ( Iterator<BaseKnowledgeBuilderResultImpl> iter = parserErrors.iterator(); iter.hasNext(); ) { Object error = iter.ne...
public class class_name { @SuppressWarnings("WeakerAccess") public ApiFuture<List<String>> listTablesAsync() { ListTablesRequest request = ListTablesRequest.newBuilder() .setParent(NameUtil.formatInstanceName(projectId, instanceId)) .build(); // TODO(igorbernstein2): try to u...
public class class_name { @SuppressWarnings("WeakerAccess") public ApiFuture<List<String>> listTablesAsync() { ListTablesRequest request = ListTablesRequest.newBuilder() .setParent(NameUtil.formatInstanceName(projectId, instanceId)) .build(); // TODO(igorbernstein2): try to u...
public class class_name { public void handle(Emitter e, Object data) { org.yecht.Node n = (org.yecht.Node)((IRubyObject)data).dataGetStructChecked(); switch(n.kind) { case Map: Data.Map dm = (Data.Map)n.data; e.emitMap(n.type_id, dm.style); for(int i = 0; i <...
public class class_name { public void handle(Emitter e, Object data) { org.yecht.Node n = (org.yecht.Node)((IRubyObject)data).dataGetStructChecked(); switch(n.kind) { case Map: Data.Map dm = (Data.Map)n.data; e.emitMap(n.type_id, dm.style); for(int i = 0; i <...
public class class_name { private void getPropsString(StringBuilder strProps, List<ConfigPropType> propsList, int indent) { for (ConfigPropType props : propsList) { for (int i = 0; i < indent; i++) strProps.append(" "); strProps.append("<config-property name=\""); ...
public class class_name { private void getPropsString(StringBuilder strProps, List<ConfigPropType> propsList, int indent) { for (ConfigPropType props : propsList) { for (int i = 0; i < indent; i++) strProps.append(" "); strProps.append("<config-property name=\""); // depend...
public class class_name { public final void destroyObject(Object obj) { log.debug(" !!! destroyObject... !!!" + obj); if (obj instanceof WorkerThread) { WorkerThread rt = (WorkerThread) obj; rt.setStopped(); } } }
public class class_name { public final void destroyObject(Object obj) { log.debug(" !!! destroyObject... !!!" + obj); if (obj instanceof WorkerThread) { WorkerThread rt = (WorkerThread) obj; rt.setStopped(); // depends on control dependency: [if], data = [none] } } }
public class class_name { public Object call(Object comparable1, Object comparable2) { int result = COMPARATOR.compare(comparable1, comparable2); if (result < 0) { return comparable1; } else if (result > 0) { return comparable2; } return comparable1; } }
public class class_name { public Object call(Object comparable1, Object comparable2) { int result = COMPARATOR.compare(comparable1, comparable2); if (result < 0) { return comparable1; // depends on control dependency: [if], data = [none] } else if (result > 0) { return comparable2; // depends on cont...
public class class_name { private Map<String, Object> getAnnotatedTerms(AnnotatedElement annotatedElement, String name) { final Terms annotatedTerms = findAnnotation(annotatedElement, Terms.class); final Term annotatedTerm = findAnnotation(annotatedElement, Term.class); if (annotatedTerms != n...
public class class_name { private Map<String, Object> getAnnotatedTerms(AnnotatedElement annotatedElement, String name) { final Terms annotatedTerms = findAnnotation(annotatedElement, Terms.class); final Term annotatedTerm = findAnnotation(annotatedElement, Term.class); if (annotatedTerms != n...
public class class_name { public BaseAuthorization[] getAuthorizations() { BaseAuthorization[] res = new BaseAuthorization[authorizations.length]; try { for (int i = 0; i < authorizations.length; i++) { ByteArrayInputStream bais = new ByteArrayInputStream(authorizations[i]); JBossObjectInputStream deser...
public class class_name { public BaseAuthorization[] getAuthorizations() { BaseAuthorization[] res = new BaseAuthorization[authorizations.length]; try { for (int i = 0; i < authorizations.length; i++) { ByteArrayInputStream bais = new ByteArrayInputStream(authorizations[i]); JBossObjectInputStream deser...
public class class_name { public boolean validateJMX() { if (getEdenMemoryPoolMXBean() == null || getSurvivorMemoryPoolMXBean() == null || getTenuredMemoryPoolMXBean() == null || getPermGenMemoryPoolMXBean() == null || getYoungCollectorMXBean() == null || ...
public class class_name { public boolean validateJMX() { if (getEdenMemoryPoolMXBean() == null || getSurvivorMemoryPoolMXBean() == null || getTenuredMemoryPoolMXBean() == null || getPermGenMemoryPoolMXBean() == null || getYoungCollectorMXBean() == null || ...
public class class_name { public void stepSucceeded(StepSucceededMessage stepSuccessMessage) { ExecutingStep s = executingStep.get(); if ( ! s.getExecutionUUID().equals(stepSuccessMessage.getExecutionId())) { //This could happen if chorus interpreter timed out the previous step while waitin...
public class class_name { public void stepSucceeded(StepSucceededMessage stepSuccessMessage) { ExecutingStep s = executingStep.get(); if ( ! s.getExecutionUUID().equals(stepSuccessMessage.getExecutionId())) { //This could happen if chorus interpreter timed out the previous step while waitin...
public class class_name { public synchronized void close() { if (zooKeeper != null) { try { zooKeeper.close(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); LOG.warning("Interrupted trying to close zooKeeper"); } finally { zooKeeper = null;...
public class class_name { public synchronized void close() { if (zooKeeper != null) { try { zooKeeper.close(); // depends on control dependency: [try], data = [none] } catch (InterruptedException e) { Thread.currentThread().interrupt(); LOG.warning("Interrupted trying to close z...
public class class_name { public void applyFilterChanges(Filter declarationFilter) { this.declarationFilter = declarationFilter; Set<ServiceReference<D>> added = new HashSet<ServiceReference<D>>(); Set<ServiceReference<D>> removed = new HashSet<ServiceReference<D>>(); for (Map.Entry<Se...
public class class_name { public void applyFilterChanges(Filter declarationFilter) { this.declarationFilter = declarationFilter; Set<ServiceReference<D>> added = new HashSet<ServiceReference<D>>(); Set<ServiceReference<D>> removed = new HashSet<ServiceReference<D>>(); for (Map.Entry<Se...
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 static void closeQuietly(final InputStream is, final String message) { if(is!=null) { try { is.close(); } catch (final Exception e) { if(LOGGER.isWarnEnabled()) { LOGGER.warn(message,e); } } } } }
public class class_name { private static void closeQuietly(final InputStream is, final String message) { if(is!=null) { try { is.close(); // depends on control dependency: [try], data = [none] } catch (final Exception e) { if(LOGGER.isWarnEnabled()) { LOGGER.warn(message,e); // depends on control depen...
public class class_name { @Deprecated public Object[] getValues() { @SuppressWarnings("unchecked") T[] a = (T[])EMPTY_ARRAY; T[] b = getValues(a); if (b == EMPTY_ARRAY) { return new Object[0]; } return b; } }
public class class_name { @Deprecated public Object[] getValues() { @SuppressWarnings("unchecked") T[] a = (T[])EMPTY_ARRAY; T[] b = getValues(a); if (b == EMPTY_ARRAY) { return new Object[0]; // depends on control dependency: [if], data = [none] } return...
public class class_name { private void parsePersistence(Map<Object, Object> props) { parseKeepAliveEnabled(props); if (isKeepAliveEnabled()) { parseMaxPersist(props); } } }
public class class_name { private void parsePersistence(Map<Object, Object> props) { parseKeepAliveEnabled(props); if (isKeepAliveEnabled()) { parseMaxPersist(props); // depends on control dependency: [if], data = [none] } } }
public class class_name { private void cloneExportPoints( CmsModule sourceModule, CmsModule targetModule, String sourcePathPart, String targetPathPart) { for (CmsExportPoint exp : targetModule.getExportPoints()) { if (exp.getUri().contains(sourceModule.getName())) {...
public class class_name { private void cloneExportPoints( CmsModule sourceModule, CmsModule targetModule, String sourcePathPart, String targetPathPart) { for (CmsExportPoint exp : targetModule.getExportPoints()) { if (exp.getUri().contains(sourceModule.getName())) {...
public class class_name { protected void storeOsmWayID(int edgeId, long osmWayId) { if (getOsmWayIdSet().contains(osmWayId)) { getEdgeIdToOsmWayIdMap().put(edgeId, osmWayId); } } }
public class class_name { protected void storeOsmWayID(int edgeId, long osmWayId) { if (getOsmWayIdSet().contains(osmWayId)) { getEdgeIdToOsmWayIdMap().put(edgeId, osmWayId); // depends on control dependency: [if], data = [none] } } }
public class class_name { private UserDetailsService getUserDetailsService() { Map<String, ?> beans = getBeansOfType(CachingUserDetailsService.class); if (beans.size() == 0) { beans = getBeansOfType(UserDetailsService.class); } if (beans.size() == 0) { throw new ApplicationContextException("No UserDeta...
public class class_name { private UserDetailsService getUserDetailsService() { Map<String, ?> beans = getBeansOfType(CachingUserDetailsService.class); if (beans.size() == 0) { beans = getBeansOfType(UserDetailsService.class); // depends on control dependency: [if], data = [none] } if (beans.size() == 0) {...
public class class_name { public EClass getIfcDistributionElementType() { if (ifcDistributionElementTypeEClass == null) { ifcDistributionElementTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(162); } return ifcDistributionElementTypeEClas...
public class class_name { public EClass getIfcDistributionElementType() { if (ifcDistributionElementTypeEClass == null) { ifcDistributionElementTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(162); // depends on control dependency: [if], data ...
public class class_name { public FrequentItemsetsResult run(Database db, final Relation<BitVector> relation) { // TODO: implement with resizable arrays, to not need dim. final int dim = RelationUtil.dimensionality(relation); final VectorFieldTypeInformation<BitVector> meta = RelationUtil.assumeVectorField(...
public class class_name { public FrequentItemsetsResult run(Database db, final Relation<BitVector> relation) { // TODO: implement with resizable arrays, to not need dim. final int dim = RelationUtil.dimensionality(relation); final VectorFieldTypeInformation<BitVector> meta = RelationUtil.assumeVectorField(...
public class class_name { public boolean exists(Dn dn) { try { return connection.exists(dn); } catch (LdapException e) { throw new LdapDaoException(e); } } }
public class class_name { public boolean exists(Dn dn) { try { return connection.exists(dn); // depends on control dependency: [try], data = [none] } catch (LdapException e) { throw new LdapDaoException(e); } // depends on control dependency: [catch], data = [none] }...
public class class_name { private void label(final ITetrahedralChirality element) { final IAtom focus = element.getChiralAtom(); final IAtom[] atoms = element.getLigands(); final IBond[] bonds = new IBond[4]; int p = parity(element.getStereo()); int n = 0; // unspecif...
public class class_name { private void label(final ITetrahedralChirality element) { final IAtom focus = element.getChiralAtom(); final IAtom[] atoms = element.getLigands(); final IBond[] bonds = new IBond[4]; int p = parity(element.getStereo()); int n = 0; // unspecif...
public class class_name { public Class<? extends Annotation> detectAnnotationType(final Annotation[] annotations) { for (final Annotation annotation : annotations) { if (annotation instanceof In) { return annotation.annotationType(); } else if (annotation instanceof Out) { return annotation.annotati...
public class class_name { public Class<? extends Annotation> detectAnnotationType(final Annotation[] annotations) { for (final Annotation annotation : annotations) { if (annotation instanceof In) { return annotation.annotationType(); // depends on control dependency: [if], data = [none] } else if (annot...
public class class_name { public String availability(AvailabilityCondition condition) { String description; if (condition.getContext() != null && condition.getContext().get(CONTEXT_PROPERTY_DESCRIPTION) != null) { description = condition.getContext().get(CONTEXT_PROPERTY_DESCRIPTION); ...
public class class_name { public String availability(AvailabilityCondition condition) { String description; if (condition.getContext() != null && condition.getContext().get(CONTEXT_PROPERTY_DESCRIPTION) != null) { description = condition.getContext().get(CONTEXT_PROPERTY_DESCRIPTION); // de...
public class class_name { public String getWidget() { StringBuffer result = new StringBuffer(); CmsProgressThread thread = getProgressThread(getKey()); // if the thread is finished before the widget is rendered // show directly the result if ((thread != null) && (!thread.isAl...
public class class_name { public String getWidget() { StringBuffer result = new StringBuffer(); CmsProgressThread thread = getProgressThread(getKey()); // if the thread is finished before the widget is rendered // show directly the result if ((thread != null) && (!thread.isAl...
public class class_name { public void addAllToProperties(Properties props) { synchronized (this.confData) { for (Map.Entry<String, Object> entry : this.confData.entrySet()) { props.put(entry.getKey(), entry.getValue()); } } } }
public class class_name { public void addAllToProperties(Properties props) { synchronized (this.confData) { for (Map.Entry<String, Object> entry : this.confData.entrySet()) { props.put(entry.getKey(), entry.getValue()); // depends on control dependency: [for], data = [entry] } } } }
public class class_name { private void addMessage(ValidationMessage<Origin> message) { if (message == null) { return; } if( null != defaultOrigin ) { message.addOrigin( defaultOrigin ); } this.messages.add(message); } }
public class class_name { private void addMessage(ValidationMessage<Origin> message) { if (message == null) { return; // depends on control dependency: [if], data = [none] } if( null != defaultOrigin ) { message.addOrigin( defaultOrigin ); // depends on control dependency: [if], data = [defaultOrigin )]...
public class class_name { private boolean canContain( int child, int container, int containerIndexOnStack) { Preconditions.checkArgument(containerIndexOnStack >= 0); int anc = container; int ancIndexOnStack = containerIndexOnStack; while (true) { if (METADATA.canContain(anc, child)) { ...
public class class_name { private boolean canContain( int child, int container, int containerIndexOnStack) { Preconditions.checkArgument(containerIndexOnStack >= 0); int anc = container; int ancIndexOnStack = containerIndexOnStack; while (true) { if (METADATA.canContain(anc, child)) { ...
public class class_name { protected void keyPressed(final KeyEvent event) { final int keyCode = event.getKeyCode(); final int modifiers = event.getModifiers(); if ((modifiers & Event.CTRL_MASK) != 0 && keyCode == KeyEvent.VK_ADD) { adjustColumnWidths(); } // else if (modifiers == 0) // { // fi...
public class class_name { protected void keyPressed(final KeyEvent event) { final int keyCode = event.getKeyCode(); final int modifiers = event.getModifiers(); if ((modifiers & Event.CTRL_MASK) != 0 && keyCode == KeyEvent.VK_ADD) { adjustColumnWidths(); // depends on control dependency: [if], data = [non...
public class class_name { private void initMessage() { if (message != null && message.length() > 0) { ((TextView) findViewById(R.id.dmax_spots_title)).setText(message); } } }
public class class_name { private void initMessage() { if (message != null && message.length() > 0) { ((TextView) findViewById(R.id.dmax_spots_title)).setText(message); // depends on control dependency: [if], data = [(message] } } }
public class class_name { @Override public Object getPool(Collection<Object> pools) { try { return Iterables.get(pools, getAndIncrement(pools.size())); } catch (IndexOutOfBoundsException e) { return pools.iterator().next(); } } }
public class class_name { @Override public Object getPool(Collection<Object> pools) { try { return Iterables.get(pools, getAndIncrement(pools.size())); // depends on control dependency: [try], data = [none] } catch (IndexOutOfBoundsException e) { ...
public class class_name { public void sessionAttributeSet(ISession session, Object name, Object oldValue, Boolean oldIsListener, Object newValue, Boolean newIsListener) { HttpSession httpsession = (HttpSession) _adapter.adapt(session); HttpSessionBindingEvent addEvent = null; // only init if necessary...
public class class_name { public void sessionAttributeSet(ISession session, Object name, Object oldValue, Boolean oldIsListener, Object newValue, Boolean newIsListener) { HttpSession httpsession = (HttpSession) _adapter.adapt(session); HttpSessionBindingEvent addEvent = null; // only init if necessary...
public class class_name { private static void parseRenameFile(List<String> lines, URL url, Map<Class<?>, SerDeserializer> map) { // format allows multiple [deserializers] so file can be merged boolean deserializers = false; for (String line : lines) { try { if (line....
public class class_name { private static void parseRenameFile(List<String> lines, URL url, Map<Class<?>, SerDeserializer> map) { // format allows multiple [deserializers] so file can be merged boolean deserializers = false; for (String line : lines) { try { if (line....
public class class_name { public static <N> MutableGraph<N> inducedSubgraph(Graph<N> graph, Iterable<? extends N> nodes) { MutableGraph<N> subgraph = (nodes instanceof Collection) ? GraphBuilder.from(graph).expectedNodeCount(((Collection) nodes).size()).build() : GraphBuilder.from(g...
public class class_name { public static <N> MutableGraph<N> inducedSubgraph(Graph<N> graph, Iterable<? extends N> nodes) { MutableGraph<N> subgraph = (nodes instanceof Collection) ? GraphBuilder.from(graph).expectedNodeCount(((Collection) nodes).size()).build() : GraphBuilder.from(g...
public class class_name { public static RESTParameter fromUNode(UNode paramNode) { RESTParameter param = new RESTParameter(); String name = paramNode.getName(); Utils.require(!Utils.isEmpty(name), "Missing parameter name: " + paramNode); param.setName(name); for (UNode ...
public class class_name { public static RESTParameter fromUNode(UNode paramNode) { RESTParameter param = new RESTParameter(); String name = paramNode.getName(); Utils.require(!Utils.isEmpty(name), "Missing parameter name: " + paramNode); param.setName(name); for (UNode ...
public class class_name { public final static boolean isEjbQlIdentifier(String s) { if (s == null || s.length() == 0) { return false; } for (int i = 0; i < ejbQlIdentifiers.length; i++) { if (ejbQlIdentifiers[i].equalsIgnoreCase(s)) { return true...
public class class_name { public final static boolean isEjbQlIdentifier(String s) { if (s == null || s.length() == 0) { return false; // depends on control dependency: [if], data = [none] } for (int i = 0; i < ejbQlIdentifiers.length; i++) { if (ejbQlIdentifiers[i].e...
public class class_name { public static String tmpDirName() { String tmpDirName = System.getProperty("java.io.tmpdir"); if (!tmpDirName.endsWith(File.separator)) { tmpDirName += File.separator; } return tmpDirName; } }
public class class_name { public static String tmpDirName() { String tmpDirName = System.getProperty("java.io.tmpdir"); if (!tmpDirName.endsWith(File.separator)) { tmpDirName += File.separator; // depends on control dependency: [if], data = [none] } return tmpDi...
public class class_name { public Map<String, Object> createContext(final Map<String, Object> parent, Map<String, Object> current) { return new DelegateMap<String, Object>(parent, current) { private static final long serialVersionUID = 1L; @Override public Object get(Object ...
public class class_name { public Map<String, Object> createContext(final Map<String, Object> parent, Map<String, Object> current) { return new DelegateMap<String, Object>(parent, current) { private static final long serialVersionUID = 1L; @Override public Object get(Object ...
public class class_name { public static short[] getTripletFromXSSFColor( final XSSFColor xssfColor) { short[] rgbfix = { RGB8BITS, RGB8BITS, RGB8BITS }; if (xssfColor != null) { byte[] rgb = xssfColor.getRGBWithTint(); if (rgb == null) { rgb = xssfColor.getRGB(); } // Bytes are signed,...
public class class_name { public static short[] getTripletFromXSSFColor( final XSSFColor xssfColor) { short[] rgbfix = { RGB8BITS, RGB8BITS, RGB8BITS }; if (xssfColor != null) { byte[] rgb = xssfColor.getRGBWithTint(); if (rgb == null) { rgb = xssfColor.getRGB(); // depends on control depende...
public class class_name { protected void showFinishing(LaJobRuntime runtime, long before, Throwable cause) { final String msg = buildFinishingMsg(runtime, before, cause); // also no use enabled if (noticeLogHook != null) { noticeLogHook.hookFinishing(runtime, msg, OptionalThing.ofNullable(c...
public class class_name { protected void showFinishing(LaJobRuntime runtime, long before, Throwable cause) { final String msg = buildFinishingMsg(runtime, before, cause); // also no use enabled if (noticeLogHook != null) { noticeLogHook.hookFinishing(runtime, msg, OptionalThing.ofNullable(c...
public class class_name { public boolean refresh(int duration, String eventId, long timeout) { Request req = createSubscribeMessage(duration, eventId); if (req == null) { return false; } req.removeHeader(ProxyAuthorizationHeader.NAME); return refresh(req, timeout); } }
public class class_name { public boolean refresh(int duration, String eventId, long timeout) { Request req = createSubscribeMessage(duration, eventId); if (req == null) { return false; // depends on control dependency: [if], data = [none] } req.removeHeader(ProxyAuthorizationHeader.NAME)...
public class class_name { @Override public String[] getRoles(String username) { if (user_list.containsKey(username)) { return user_list.get(username).toArray(new String[0]); } else { if (defaultRoles == null) { return new String[0]; } else { return defaultRoles; } } } }
public class class_name { @Override public String[] getRoles(String username) { if (user_list.containsKey(username)) { return user_list.get(username).toArray(new String[0]); // depends on control dependency: [if], data = [none] } else { if (defaultRoles == null) { return new String[0]; // depends on con...
public class class_name { public Observable<LifecycleState> addNode(final NetworkAddress hostname, final NetworkAddress alternate) { Node node = nodeBy(hostname); if (node != null) { LOGGER.debug("Node {} already registered, skipping.", hostname); return Observable.just(node.sta...
public class class_name { public Observable<LifecycleState> addNode(final NetworkAddress hostname, final NetworkAddress alternate) { Node node = nodeBy(hostname); if (node != null) { LOGGER.debug("Node {} already registered, skipping.", hostname); // depends on control dependency: [if], dat...
public class class_name { protected void initMojoMultiValueParameters() { // Set default values for 'checkFileSets' to "src/main/resources/*.btdesign" if (checkFileSets == null) { FileSet defaultFileSet = new FileSet(); defaultFileSet.setDirectory(project.getBasedir() + "/src/main/resources"); defaultFil...
public class class_name { protected void initMojoMultiValueParameters() { // Set default values for 'checkFileSets' to "src/main/resources/*.btdesign" if (checkFileSets == null) { FileSet defaultFileSet = new FileSet(); defaultFileSet.setDirectory(project.getBasedir() + "/src/main/resources"); // depends on...
public class class_name { public java.util.List<BundleTask> getBundleTasks() { if (bundleTasks == null) { bundleTasks = new com.amazonaws.internal.SdkInternalList<BundleTask>(); } return bundleTasks; } }
public class class_name { public java.util.List<BundleTask> getBundleTasks() { if (bundleTasks == null) { bundleTasks = new com.amazonaws.internal.SdkInternalList<BundleTask>(); // depends on control dependency: [if], data = [none] } return bundleTasks; } }
public class class_name { public ClassGraph blacklistJars(final String... jarLeafNames) { for (final String jarLeafName : jarLeafNames) { final String leafName = JarUtils.leafName(jarLeafName); if (!leafName.equals(jarLeafName)) { throw new IllegalArgumentException("Can ...
public class class_name { public ClassGraph blacklistJars(final String... jarLeafNames) { for (final String jarLeafName : jarLeafNames) { final String leafName = JarUtils.leafName(jarLeafName); if (!leafName.equals(jarLeafName)) { throw new IllegalArgumentException("Can ...
public class class_name { public void transform(List<S> transformables, long elapsedTime) { for (S transformable : transformables) transform(transformable, elapsedTime); } /** * Applies this {@link Transformation} to the {@link ITransformable} * * @param transformable the transformable * @param elapse...
public class class_name { public void transform(List<S> transformables, long elapsedTime) { for (S transformable : transformables) transform(transformable, elapsedTime); } /** * Applies this {@link Transformation} to the {@link ITransformable} * * @param transformable the transformable * @param elapse...
public class class_name { public CompletableFuture<byte[]> asByteArray(DiscordApi api) { CompletableFuture<byte[]> future = new CompletableFuture<>(); try { if (fileAsByteArray != null) { future.complete(fileAsByteArray); return future; } ...
public class class_name { public CompletableFuture<byte[]> asByteArray(DiscordApi api) { CompletableFuture<byte[]> future = new CompletableFuture<>(); try { if (fileAsByteArray != null) { future.complete(fileAsByteArray); // depends on control dependency: [if], data = [(file...
public class class_name { void robotRelease(int click) { lastClick = 0; final int button = click; if (button < clicks.length) { clicks[button] = false; clicked[button] = false; } } }
public class class_name { void robotRelease(int click) { lastClick = 0; final int button = click; if (button < clicks.length) { clicks[button] = false; // depends on control dependency: [if], data = [none] clicked[button] = false; // depends on control depen...
public class class_name { protected static Map<String, Object> eventSendPicsInfo(XMLEventReader reader) throws XMLStreamException { Map<String, Object> sendPicsInfoMap = new HashMap<String, Object>(); while (reader.hasNext()){ XMLEvent event = reader.nextEvent(); if (event.isSta...
public class class_name { protected static Map<String, Object> eventSendPicsInfo(XMLEventReader reader) throws XMLStreamException { Map<String, Object> sendPicsInfoMap = new HashMap<String, Object>(); while (reader.hasNext()){ XMLEvent event = reader.nextEvent(); if (event.isSta...
public class class_name { @PublicEvolving public static <X extends Tuple> TupleTypeInfo<X> getBasicTupleTypeInfo(Class<?>... basicTypes) { if (basicTypes == null || basicTypes.length == 0) { throw new IllegalArgumentException(); } TypeInformation<?>[] infos = new TypeInformation<?>[basicTypes.length]; f...
public class class_name { @PublicEvolving public static <X extends Tuple> TupleTypeInfo<X> getBasicTupleTypeInfo(Class<?>... basicTypes) { if (basicTypes == null || basicTypes.length == 0) { throw new IllegalArgumentException(); } TypeInformation<?>[] infos = new TypeInformation<?>[basicTypes.length]; f...
public class class_name { @Override public byte[] getBytes(K key) { if(key == null) { return null; } return _store.get(_keySerializer.serialize(key)); } }
public class class_name { @Override public byte[] getBytes(K key) { if(key == null) { return null; // depends on control dependency: [if], data = [none] } return _store.get(_keySerializer.serialize(key)); } }
public class class_name { public boolean crawlTopics() { if (prop.get(PROPERTY_LINK_CRAWLER) == null) { return true; } return prop.get(PROPERTY_LINK_CRAWLER).toString().equals(ANT_INVOKER_EXT_PARAM_CRAWL_VALUE_TOPIC); } }
public class class_name { public boolean crawlTopics() { if (prop.get(PROPERTY_LINK_CRAWLER) == null) { return true; // depends on control dependency: [if], data = [none] } return prop.get(PROPERTY_LINK_CRAWLER).toString().equals(ANT_INVOKER_EXT_PARAM_CRAWL_VALUE_TOPIC); } }
public class class_name { @SuppressWarnings("unchecked") public static <T> T getController(BaseComponent comp, Class<T> type) { while (comp != null) { Object controller = getController(comp); if (type.isInstance(controller)) { return (T) controller; ...
public class class_name { @SuppressWarnings("unchecked") public static <T> T getController(BaseComponent comp, Class<T> type) { while (comp != null) { Object controller = getController(comp); if (type.isInstance(controller)) { return (T) controller; // d...
public class class_name { void notifyReferenced(Provider provider, T instance) { notifyInstanceCreationWhenNeeded(); if (referencedListeners != null) { int len = referencedListeners.size(); for(int i = 0; i < len; i++) { referencedListeners.get(i).onReferenced(p...
public class class_name { void notifyReferenced(Provider provider, T instance) { notifyInstanceCreationWhenNeeded(); if (referencedListeners != null) { int len = referencedListeners.size(); for(int i = 0; i < len; i++) { referencedListeners.get(i).onReferenced(p...
public class class_name { @Override public int compare(String version1, String version2) { if(version1 == version2) { return 0; } if (version1 == null && version2 == null) { return 0; } else if (version1 == null) {// null视为最小版本,排在前 return -1; } else if (version2 == null) { return 1; ...
public class class_name { @Override public int compare(String version1, String version2) { if(version1 == version2) { return 0; // depends on control dependency: [if], data = [none] } if (version1 == null && version2 == null) { return 0; // depends on control dependency: [if], data = [none] } els...
public class class_name { public static Principal[] getGrantedRoles(SecurityIdentity securityIdentity) { Set<String> roles = new HashSet<>(); for (String s : securityIdentity.getRoles("ejb")) { roles.add(s); } List<Principal> list = new ArrayList<>(); Function<Strin...
public class class_name { public static Principal[] getGrantedRoles(SecurityIdentity securityIdentity) { Set<String> roles = new HashSet<>(); for (String s : securityIdentity.getRoles("ejb")) { roles.add(s); // depends on control dependency: [for], data = [s] } List<Princip...
public class class_name { public boolean hasPrivileges( SecurityContext sc, Privilege[] privileges ) { for (AccessControlEntryImpl ace : principals.values()) { // check access list for everyone if (ace.getPrincipal().getName().equals(SimplePrincipal.EVE...
public class class_name { public boolean hasPrivileges( SecurityContext sc, Privilege[] privileges ) { for (AccessControlEntryImpl ace : principals.values()) { // check access list for everyone if (ace.getPrincipal().getName().equals(SimplePrincipal.EVE...
public class class_name { protected void setDetails(HttpServletRequest request, UsernamePasswordAuthenticationToken authRequest) { try { authRequest.setDetails(authenticationDetailsSource.buildDetails(request)); } catch (Exception e) { // This would happen e.g. for LCDS NIO Endpoints, which only have a "s...
public class class_name { protected void setDetails(HttpServletRequest request, UsernamePasswordAuthenticationToken authRequest) { try { authRequest.setDetails(authenticationDetailsSource.buildDetails(request)); // depends on control dependency: [try], data = [none] } catch (Exception e) { // This would h...
public class class_name { static void setHttp2Authority(String authority, Http2Headers out) { // The authority MUST NOT include the deprecated "userinfo" subcomponent if (authority != null) { if (authority.isEmpty()) { out.authority(EMPTY_STRING); } else { ...
public class class_name { static void setHttp2Authority(String authority, Http2Headers out) { // The authority MUST NOT include the deprecated "userinfo" subcomponent if (authority != null) { if (authority.isEmpty()) { out.authority(EMPTY_STRING); // depends on control depen...
public class class_name { public boolean addSubject(String subject) { try { return add(new Meta(Element.SUBJECT, subject)); } catch (DocumentException de) { throw new ExceptionConverter(de); } } }
public class class_name { public boolean addSubject(String subject) { try { return add(new Meta(Element.SUBJECT, subject)); // depends on control dependency: [try], data = [none] } catch (DocumentException de) { throw new ExceptionConverter(de); } // depends on control depende...
public class class_name { protected boolean definePropertyBeanMethods(ClassFile cf, SyntheticProperty property) { TypeDesc propertyType = TypeDesc.forClass(property.getType()); // Add property get method. final MethodInfo mi = cf.addMetho...
public class class_name { protected boolean definePropertyBeanMethods(ClassFile cf, SyntheticProperty property) { TypeDesc propertyType = TypeDesc.forClass(property.getType()); // Add property get method. final MethodInfo mi = cf.addMetho...
public class class_name { private int transpositions(String text1, String text2) { int transpositions = 0; for (int i = 0; i < text1.length(); i++) { if (text1.charAt(i) != text2.charAt(i)) { transpositions++; } } return transpositions; } }
public class class_name { private int transpositions(String text1, String text2) { int transpositions = 0; for (int i = 0; i < text1.length(); i++) { if (text1.charAt(i) != text2.charAt(i)) { transpositions++; // depends on control dependency: [if], data = [none] ...
public class class_name { private AttributeDescr intOrChunkAttribute( AttributeSupportBuilder< ? > as, String[] key ) throws RecognitionException { AttributeDescrBuilder< ? > attribute = null; try { StringBuilder builder = new StringBuilder();...
public class class_name { private AttributeDescr intOrChunkAttribute( AttributeSupportBuilder< ? > as, String[] key ) throws RecognitionException { AttributeDescrBuilder< ? > attribute = null; try { StringBuilder builder = new StringBuilder();...
public class class_name { protected NextJourney handleJsonResponse(JsonResponse<?> response) { if (!response.isReturnAsEmptyBody() && !response.isReturnAsJsonDirectly()) { validateJsonBeanIfNeeds(response.getJsonResult(), response); // not lazy to be in action transaction } // lazy ...
public class class_name { protected NextJourney handleJsonResponse(JsonResponse<?> response) { if (!response.isReturnAsEmptyBody() && !response.isReturnAsJsonDirectly()) { validateJsonBeanIfNeeds(response.getJsonResult(), response); // not lazy to be in action transaction // depends on control depe...
public class class_name { @Override public void restore() { if (type == ChangeType.ADD) { System.clearProperty(key); } else { System.setProperty(key, originalValue); } if (log.isDebugEnabled()) { log.debug("Restored " + toString()); } ...
public class class_name { @Override public void restore() { if (type == ChangeType.ADD) { System.clearProperty(key); // depends on control dependency: [if], data = [none] } else { System.setProperty(key, originalValue); // depends on control dependency: [if], data = [none] ...
public class class_name { protected CmsMessages getMessages() { if (m_messages == null) { // initialize the localized messages m_messages = new CmsMessages(Messages.get().getBundleName(), getLocale().toString()); } return m_messages; } }
public class class_name { protected CmsMessages getMessages() { if (m_messages == null) { // initialize the localized messages m_messages = new CmsMessages(Messages.get().getBundleName(), getLocale().toString()); // depends on control dependency: [if], data = [none] } r...
public class class_name { public int getUnknownViewCount() { int total = 0; for (int i = 0; i < views.length; i++) { if( !views[i].known) { total++; } } return total; } }
public class class_name { public int getUnknownViewCount() { int total = 0; for (int i = 0; i < views.length; i++) { if( !views[i].known) { total++; // depends on control dependency: [if], data = [none] } } return total; } }
public class class_name { @Override public boolean collectionExists(String collectionName) { CollectionMetaData collectionMeta = cmdMap.get(collectionName); if(null == collectionMeta) { return false; } collectionMeta.getCollectionLock().readLock().lock(); try { return collectionsRef.g...
public class class_name { @Override public boolean collectionExists(String collectionName) { CollectionMetaData collectionMeta = cmdMap.get(collectionName); if(null == collectionMeta) { return false; // depends on control dependency: [if], data = [none] } collectionMeta.getCollectionLock().read...
public class class_name { protected void updateConfiguration(Map<String, Object> properties) { if (properties != null) { this.properties.clear(); this.properties.putAll(properties); } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug...
public class class_name { protected void updateConfiguration(Map<String, Object> properties) { if (properties != null) { this.properties.clear(); // depends on control dependency: [if], data = [none] this.properties.putAll(properties); // depends on control dependency: [if], data = [(pr...
public class class_name { @Override public void attachToLayerColorMap() { final Layer layer = getLayer(); if (null != layer) { final NFastArrayList<T> list = getChildNodes(); if (null != list) { final int size = list.size(); ...
public class class_name { @Override public void attachToLayerColorMap() { final Layer layer = getLayer(); if (null != layer) { final NFastArrayList<T> list = getChildNodes(); if (null != list) { final int size = list.size(); ...
public class class_name { public void marshall(GetApnsSandboxChannelRequest getApnsSandboxChannelRequest, ProtocolMarshaller protocolMarshaller) { if (getApnsSandboxChannelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(GetApnsSandboxChannelRequest getApnsSandboxChannelRequest, ProtocolMarshaller protocolMarshaller) { if (getApnsSandboxChannelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public final void setCurrentBalanceDate(final Date pCurrentBalanceDate) { if (pCurrentBalanceDate == null) { this.currentBalanceDate = null; } else { this.currentBalanceDate = new Date(pCurrentBalanceDate.getTime()); } } }
public class class_name { public final void setCurrentBalanceDate(final Date pCurrentBalanceDate) { if (pCurrentBalanceDate == null) { this.currentBalanceDate = null; // depends on control dependency: [if], data = [none] } else { this.currentBalanceDate = new Date(pCurrentBalanceDate.getTime()); //...
public class class_name { @SuppressWarnings({"ConstantConditions"}) private Pair<Class<?>, Class<?>[]> getGenericTypePair(Type type) { if (ParameterizedType.class.isAssignableFrom(type.getClass())) { Class<?>[] optionalValueTypes = null; @SuppressWarnings({"ConstantConditions"}) ...
public class class_name { @SuppressWarnings({"ConstantConditions"}) private Pair<Class<?>, Class<?>[]> getGenericTypePair(Type type) { if (ParameterizedType.class.isAssignableFrom(type.getClass())) { Class<?>[] optionalValueTypes = null; // depends on control dependency: [if], data = [none] ...
public class class_name { public void marshall(DescribeOrderableReplicationInstancesRequest describeOrderableReplicationInstancesRequest, ProtocolMarshaller protocolMarshaller) { if (describeOrderableReplicationInstancesRequest == null) { throw new SdkClientException("Invalid argument passed to ma...
public class class_name { public void marshall(DescribeOrderableReplicationInstancesRequest describeOrderableReplicationInstancesRequest, ProtocolMarshaller protocolMarshaller) { if (describeOrderableReplicationInstancesRequest == null) { throw new SdkClientException("Invalid argument passed to ma...
public class class_name { public Builder predicateMultiplier(int count, Predicate... predicates) { for (int i = 0; i < count; i++) { addPredicates(predicates); } return self(); } }
public class class_name { public Builder predicateMultiplier(int count, Predicate... predicates) { for (int i = 0; i < count; i++) { addPredicates(predicates); // depends on control dependency: [for], data = [none] } return self(); } }
public class class_name { public static String derivedAutomaticModuleName(final String jarPath) { // If jar path does not end in a file extension (with ".jar" most likely), strip off everything after // the last '!', in order to remove package root int endIdx = jarPath.length(); final i...
public class class_name { public static String derivedAutomaticModuleName(final String jarPath) { // If jar path does not end in a file extension (with ".jar" most likely), strip off everything after // the last '!', in order to remove package root int endIdx = jarPath.length(); final i...
public class class_name { public void marshall(DeleteLoadBalancerRequest deleteLoadBalancerRequest, ProtocolMarshaller protocolMarshaller) { if (deleteLoadBalancerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public void marshall(DeleteLoadBalancerRequest deleteLoadBalancerRequest, ProtocolMarshaller protocolMarshaller) { if (deleteLoadBalancerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { final ArrayList getLPConfigObjects() { String thisMethodName = "getLPConfigObjects"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); SibTr.exit(tc, thisMethodName, _lpConfig); } ...
public class class_name { final ArrayList getLPConfigObjects() { String thisMethodName = "getLPConfigObjects"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); // depends on control dependency: [if], data = [none] SibTr....
public class class_name { private String removeProperty(Node node, HierarchicalProperty property) { try { node.getProperty(property.getStringName()).remove(); node.save(); return WebDavConst.getStatusDescription(HTTPStatus.OK); } catch (AccessDeniedExcept...
public class class_name { private String removeProperty(Node node, HierarchicalProperty property) { try { node.getProperty(property.getStringName()).remove(); // depends on control dependency: [try], data = [none] node.save(); // depends on control dependency: [try], data = [no...
public class class_name { public ProxySettings setServer(URI uri) { if (uri == null) { return this; } String scheme = uri.getScheme(); String userInfo = uri.getUserInfo(); String host = uri.getHost(); int port = uri.getPort(); ...
public class class_name { public ProxySettings setServer(URI uri) { if (uri == null) { return this; // depends on control dependency: [if], data = [none] } String scheme = uri.getScheme(); String userInfo = uri.getUserInfo(); String host = uri.getH...
public class class_name { public GenericUser getUserForUserReference(String userReference) { GenericUser user = getReference(GenericUser.class, userReference); if (user == null) { fail("No user of type '" + userReference + "' is found. Available user references are: " + getObjectReferenceMap(G...
public class class_name { public GenericUser getUserForUserReference(String userReference) { GenericUser user = getReference(GenericUser.class, userReference); if (user == null) { fail("No user of type '" + userReference + "' is found. Available user references are: " + getObjectReferenceMap(G...
public class class_name { public boolean isGoogleTiles() { // Convert the bounding box to wgs84 BoundingBox boundingBox = tileMatrixSet.getBoundingBox(); BoundingBox wgs84BoundingBox = boundingBox.transform( projection.getTransformation( ProjectionConsta...
public class class_name { public boolean isGoogleTiles() { // Convert the bounding box to wgs84 BoundingBox boundingBox = tileMatrixSet.getBoundingBox(); BoundingBox wgs84BoundingBox = boundingBox.transform( projection.getTransformation( ProjectionConsta...
public class class_name { public static String substring(final String str, final int beginIndex) { assertStringNotNull(str); if (str.length() < beginIndex) { String msg = "The length of the string was smaller than the begin index:"; msg = msg + " str=" + str + ", beginIndex=" + ...
public class class_name { public static String substring(final String str, final int beginIndex) { assertStringNotNull(str); if (str.length() < beginIndex) { String msg = "The length of the string was smaller than the begin index:"; msg = msg + " str=" + str + ", beginIndex=" + ...
public class class_name { private void parseSeeString() { int len = text.length(); if (len == 0) { return; } switch (text.charAt(0)) { case '<': if (text.charAt(len-1) != '>') { docenv().warning(holder, ...
public class class_name { private void parseSeeString() { int len = text.length(); if (len == 0) { return; // depends on control dependency: [if], data = [none] } switch (text.charAt(0)) { case '<': if (text.charAt(len-1) != '>') { ...
public class class_name { public static QName buildQName(String namespace, String localName) { String namespaceURI = namespace; if (!isEmpty(namespace) && !namespace.trim().endsWith("/")) { namespaceURI += "/"; } return new QName(namespaceURI, localName); } ...
public class class_name { public static QName buildQName(String namespace, String localName) { String namespaceURI = namespace; if (!isEmpty(namespace) && !namespace.trim().endsWith("/")) { namespaceURI += "/"; // depends on control dependency: [if], data = [none] } ...
public class class_name { public static boolean isValidKillSessionsToken(String token) { if (token == null || token.isEmpty()) { return false; } for (String validToken:VALID_TOKENS) { if (token.equals (validToken)) { return true; } } return false; } }
public class class_name { public static boolean isValidKillSessionsToken(String token) { if (token == null || token.isEmpty()) { return false; // depends on control dependency: [if], data = [none] } for (String validToken:VALID_TOKENS) { if (token.equals (validToken)) { return true...
public class class_name { private String[] annotatedParameterNames(Method method) { Annotation[][] parameterAnnotations = method.getParameterAnnotations(); String[] names = new String[parameterAnnotations.length]; for (int i = 0; i < parameterAnnotations.length; i++) { for (Annotati...
public class class_name { private String[] annotatedParameterNames(Method method) { Annotation[][] parameterAnnotations = method.getParameterAnnotations(); String[] names = new String[parameterAnnotations.length]; for (int i = 0; i < parameterAnnotations.length; i++) { for (Annotati...
public class class_name { Collection<URL> getURLs(String path) { // Go through all of the items that match this path and get the URIs for them Collection<URL> urls = new HashSet<URL>(); for (EntryInfo ei : _entries) { if (ei.matches(path)) { urls.addAll(ei.getURLs(pa...
public class class_name { Collection<URL> getURLs(String path) { // Go through all of the items that match this path and get the URIs for them Collection<URL> urls = new HashSet<URL>(); for (EntryInfo ei : _entries) { if (ei.matches(path)) { urls.addAll(ei.getURLs(pa...
public class class_name { Expression unpack( CssFormatter formatter ) { Expression unpack = this; do { // unpack packed expressions like parenthesis or variables if( unpack.getClass() == FunctionExpression.class && ((FunctionExpression)unpack).toString().isEmpty() ) { //Parenthesis ...
public class class_name { Expression unpack( CssFormatter formatter ) { Expression unpack = this; do { // unpack packed expressions like parenthesis or variables if( unpack.getClass() == FunctionExpression.class && ((FunctionExpression)unpack).toString().isEmpty() ) { //Parenthesis ...
public class class_name { private void parseTemporalExtentForm() { // from the form if (temporal == null) { errs.format("form must have temporal=(all|range|point)%n"); fatal = true; return; } if (temporal.equalsIgnoreCase("all")) temporalSelection = TemporalSelection.all; else if (te...
public class class_name { private void parseTemporalExtentForm() { // from the form if (temporal == null) { errs.format("form must have temporal=(all|range|point)%n"); // depends on control dependency: [if], data = [none] fatal = true; // depends on control dependency: [if], data = [none] return;...