Examples of advance()


Examples of cc.mallet.grmm.types.AssignmentIterator.advance()

        while (assnIt.hasNext ()) {
          double marginal = Math.exp (ptl.logValue (assnIt) - logZ);
          expectations [tidx][i].plusEqualsSparse (clique.getFv (), marginal);
          if (defaultExpectations[tidx].location (i) != -1)
            defaultExpectations [tidx].incrementValue (i, marginal);
          assnIt.advance (); i++;
        }

        value += (ptl.logValue (observations) - logZ);
      }
      return value;
View Full Code Here

Examples of com.facebook.presto.client.StatementClient.advance()

                }
                if (results.getData() != null) {
                    rows.addAll(transform(results.getData(), dataToTuple(types)));
                }

                client.advance();
            }

            if (!client.isFailed()) {
                return new MaterializedResult(rows.build(), types);
            }
View Full Code Here

Examples of com.floreysoft.jmte.token.ForEachToken.advance()

    token1.setIterable((Iterable) token1.evaluate(context));
    context.model.enterScope();
    context.push(token1);
    try {
      while (token1.iterator().hasNext()) {
        context.model.put(token1.getVarName(), token1.advance());
        addSpecialVariables(token1, context.model);

        // ${foreach item.list item2}
        ForEachToken token2 = new ForEachToken(Arrays
            .asList(new String[] { "item", "list" }), "item.list",
View Full Code Here

Examples of com.google.common.testing.FakeTicker.advance()

    assertEquals(1, stats.missCount());
    assertEquals(1, stats.loadSuccessCount());
    assertEquals(0, stats.loadExceptionCount());
    assertEquals(0, stats.hitCount());

    ticker.advance(1, MILLISECONDS);
    assertSame(one, cache.getUnchecked(key));
    stats = cache.stats();
    assertEquals(1, stats.missCount());
    assertEquals(1, stats.loadSuccessCount());
    assertEquals(0, stats.loadExceptionCount());
View Full Code Here

Examples of com.intellij.lexer.FlexAdapter.advance()

    ArrayList<CoffeeScriptLexerTestToken> tokens = new ArrayList<CoffeeScriptLexerTestToken>();
    while (lexer.getCurrentPosition().getOffset() < lexer.getBufferEnd()) {
      CoffeeScriptLexerTestToken token = new CoffeeScriptLexerTestToken(lexer.getTokenType(), lexer.getTokenSequence());
      tokens.add(token);
      lexer.advance();
    }

    return tokens;
  }
View Full Code Here

Examples of com.intellij.lexer.Lexer.advance()

        Lexer merge = new LatteLexer();
        merge.start(str);

        while((el = merge.getTokenType()) != null) {
            System.out.printf("%s: %d %d '%s'\n", el.toString(), merge.getTokenStart(), merge.getTokenEnd(), str.substring(merge.getTokenStart(), merge.getTokenEnd()));
            merge.advance();
        }
    }
}
View Full Code Here

Examples of com.intellij.openapi.editor.highlighter.HighlighterIterator.advance()

      if (tokenType == CfmlTokenTypes.LSLASH_ANGLEBRACKET) return false;
      if (tokenType == CfmlTokenTypes.OPENER) break;
      ++retrieveCount;
      iterator.retreat();
    }
    for (int i = 0; i < retrieveCount; ++i) iterator.advance();
    iterator.advance();
    return !iterator.atEnd() && iterator.getTokenType() == CfmlTokenTypes.LSLASH_ANGLEBRACKET;
  }
}
View Full Code Here

Examples of com.sun.star.wizards.ui.event.Task.advance()

       
        CGSession session = new CGSession();
        session.setRoot(settings);
        session.readConfiguration(view, CONFIG_READ_PARAM);
        task.setMax(session.cp_Content.cp_Documents.getSize() * 5 + 7);
        task.advance(true);
       
        if (sessionToLoad.equals(""))
              setSaveSessionName(session);
       
        mount(session, task, false, sd.xControl);
View Full Code Here

Examples of com.twitter.common.util.testing.FakeClock.advance()

  public ExpectedException expectedException = ExpectedException.none();

  @Before
  public void setUp() throws Exception {
    FakeClock clock = new FakeClock();
    clock.advance(Amount.of(12345L, Time.SECONDS));
    timestampMs = clock.nowMillis();

    UUIDGenerator tokenGenerator = createMock(UUIDGenerator.class);
    EasyMock.expect(tokenGenerator.createNew()).andReturn(TOKEN).anyTimes();
View Full Code Here

Examples of de.esoco.j2me.ui.ProgressView.advance()

              sleep(10);
            }
            catch (InterruptedException e)
            {
            }
            aProgress.advance(1);
          }
        }
      }.start();
  }
}
View Full Code Here
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.