Examples of Node


Examples of com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.Node

      Set<Object> seen = Sets.newIdentityHashSet();
      Iterator<? extends Node> iterator = ascending
          ? map.evictionDeque.iterator()
          : map.evictionDeque.descendingIterator();
      while (iterator.hasNext()) {
        Node node = iterator.next();
        buffer.append(nodeToString(node)).append("\n");
        boolean added = seen.add(node);
        if (!added) {
          buffer.append("Failure: Loop detected\n");
          break;

Examples of com.googlecode.gaal.suffix.api.SuffixTree.Node

        @Override
        public Node next() {
            if (next == null)
                throw new NoSuchElementException();
            Node node = next;
            advance();
            return node;
        }

Examples of com.googlecode.goclipse.go.lang.model.Node

        String[] parts = word.split("\\.");
        Import   i     = cc1.getImportForName(parts[0]);
       
        if (i != null) {
       
          Node node = cc1.getLocationForPkgAndName(i.path, parts[1]);
          if (node == null) {
            return null;
          }

          h.node   = node;

Examples of com.googlecode.gwt.test.finder.Node

      assertNotNull(processString("/toto(à)"));
      assertEquals("/toto(àéèê,)", processString("/toto(àéèê)").toString());
   }

   private Node processString(String s) {
      Node res = Node.parse(s);
      return res;
   }

Examples of com.gwtext.client.data.Node

                    }
                    for(OWLClass createdCls : createdClasses) {
                        if(!existingClasses.contains(createdCls)) {
                            final SubclassEntityData entityData = new SubclassEntityData(createdCls.getIRI().toString(), result.getBrowserText(createdCls).or(""), Collections.<EntityData>emptySet(), 0);
                            entityData.setValueType(ValueType.Cls);
                            Node n = createTreeNode(entityData);
                            node.appendChild(n);
                        }
                    }
                }

Examples of com.hazelcast.instance.Node

        return list;
    }

    @Override
    public void writeResponse(ManagementCenterService mcs, ObjectDataOutput dos) throws Exception {
        Node node = mcs.getHazelcastInstance().node;
        SystemLogService systemLogService = node.getSystemLogService();
        List<SystemLogRecord> logBundle = systemLogService.getLogBundle();
        Address address = node.getThisAddress();
        dos.writeUTF(address.getHost() + ":" + address.getPort());
        dos.writeInt(logBundle.size());
        for (SystemLogRecord systemLogRecord : logBundle) {
            systemLogRecord.writeData(dos);
        }

Examples of com.hp.hpl.jena.graph.Node

        if ( false )
        {
            for ( ; qIter.hasNext() ; )
            {
                Binding b = qIter.nextBinding() ;
                Node n = b.get(var_x) ;
                System.out.println(FmtUtils.stringForNode(n)) ;
                System.out.println(b) ;
            }
            qIter.close() ;
        }

Examples of com.hp.jena.graph.Node

public LessOrEqual( List<Node> nargs )
    { L = nargs.get( 0 ); R = nargs.get( 1 ); }

@Override public boolean evalBool( ExecContext c, Bindings<Node, Node> item )
    {
    Node lv = eval( item, L ), rv = eval( item, R );
    return
        isNumber( lv ) && isNumber( rv )
        && le( lv.getLiteralValue(), rv.getLiteralValue() );
    }

Examples of com.huaban.analysis.jieba.Node

        for (char state : states) {
            Double emP = emit.get(state).get(sentence.charAt(0));
            if (null == emP)
                emP = MIN_FLOAT;
            v.get(0).put(state, start.get(state) + emP);
            path.put(state, new Node(state, null));
        }

        for (int i = 1; i < sentence.length(); ++i) {
            Map<Character, Double> vv = new HashMap<Character, Double>();
            v.add(vv);
            Map<Character, Node> newPath = new HashMap<Character, Node>();
            for (char y : states) {
                Double emp = emit.get(y).get(sentence.charAt(i));
                if (emp == null)
                    emp = MIN_FLOAT;
                Pair<Character> candidate = null;
                for (char y0 : prevStatus.get(y)) {
                    Double tranp = trans.get(y0).get(y);
                    if (null == tranp)
                        tranp = MIN_FLOAT;
                    tranp += (emp + v.get(i - 1).get(y0));
                    if (null == candidate)
                        candidate = new Pair<Character>(y0, tranp);
                    else if (candidate.freq <= tranp) {
                        candidate.freq = tranp;
                        candidate.key = y0;
                    }
                }
                vv.put(y, candidate.freq);
                newPath.put(y, new Node(y, path.get(candidate.key)));
            }
            path = newPath;
        }
        double probE = v.get(sentence.length() - 1).get('E');
        double probS = v.get(sentence.length() - 1).get('S');
        Vector<Character> posList = new Vector<Character>(sentence.length());
        Node win;
        if (probE < probS)
            win = path.get('S');
        else
            win = path.get('E');

Examples of com.ibm.sbt.playground.assets.Node

   */
  private String toJson(HttpServletRequest request, List<Node> children) {
    StringBuilder sb = new StringBuilder();
    sb.append("{\n");
    for (int i = 0; i < children.size(); i++) {
      Node node = children.get(i);
      if (node.isAsset()) {
        JSSnippetNode snippetNode = (JSSnippetNode) node;
        sb.append("\"").append(snippetNode.getUnid()).append("\": {\n");
        sb.append("  \"level\": \"").append(snippetNode.getLevel()).append("\",\n");
        sb.append("  \"path\": \"").append(snippetNode.getPath()).append("\",\n");
        sb.append("  \"unid\": \"").append(snippetNode.getUnid()).append("\"\n");
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.