Examples of printState()


Examples of cc.mallet.topics.HierarchicalLDA.printState()

    hlda.estimate(numIterations.value());
   
    // Output results

    if (stateFile.value() != null) {
      hlda.printState(new PrintWriter(stateFile.value()));
    }

    if (testing != null) {
      double empiricalLikelihood = hlda.empiricalLikelihood(1000, testing);
      System.out.println("Empirical likelihood: " + empiricalLikelihood);
View Full Code Here

Examples of cc.mallet.topics.LDAStream.printState()

    }
    if (topicTypesFile.value != null) {
      lda.printPhi(new File(topicTypesFile.value), 1e-4);
    }
    if (stateFile.value != null) {
      lda.printState (lda.getData(), new File(stateFile.value));
    }
    if (docTopicsFile.value != null) {
      lda.printDocumentTopics(lda.getData(), new PrintWriter (new FileWriter ((new File(docTopicsFile.value)))),
                  docTopicsThreshold.value, docTopicsMax.value);
View Full Code Here

Examples of cn.wensiqun.asmsupport.utils.Stack.printState()

        mv.visitLabel(falseLbl);
       
        Stack stack = block.getMethod().getStack();
        stack.pop();
        stack.push(Type.BOOLEAN_TYPE);
        stack.printState();
    }

}
View Full Code Here

Examples of com.vaadin.sass.internal.ScssStylesheet.printState()

                try {
                    ScssStylesheet scss = ScssStylesheet.get(fileInfo
                            .getAbsolutePath());
                    if (!fileInfo.isMixin()) {
                        scss.compile();
                        InputStream is = new ByteArrayInputStream(scss
                                .printState().getBytes());

                        toReturn.add(this.emitInputStream(logger, is,
                                fileInfo.getOriginalCssPath()));
                    }
View Full Code Here

Examples of com.vaadin.sass.internal.ScssStylesheet.printState()

        if (scss == null) {
            throw new IllegalArgumentException("SASS file: " + sassFile
                    + " not found");
        }
        scss.compile();
        String filteredScss = scss.printState().replace("@version@", version);

        BufferedWriter out = new BufferedWriter(new FileWriter(stylesCssName));
        out.write(cssHeader.toString());
        out.write(filteredScss);
        out.close();
View Full Code Here

Examples of com.vaadin.sass.internal.ScssStylesheet.printState()

        } catch (Exception e) {
            getLogger().log(Level.WARNING, "Scss compilation failed", e);
            return null;
        }

        return new ScssCacheEntry(scss.printState(), scss.getSourceUris());
    }

    /**
     * Check whether a URL obtained from a classloader refers to a valid static
     * resource in the directory VAADIN.
View Full Code Here

Examples of src.Column.printState()

{
  @Test
  public void emptyColumnShouldPrintEmptyState()
  {
    Column column = new Column(0);
    assertEquals("0: ", column.printState());
  }
 
  @Test
  public void columnWithBoxAShouldPrintStateWithBoxA()
  {
View Full Code Here

Examples of src.Column.printState()

  @Test
  public void columnWithBoxAShouldPrintStateWithBoxA()
  {
    Column column = new Column(0);
    column.pileBox("a");
    assertEquals("0: a", column.printState());
  }
 
  @Test
  public void columnWithTwoBoxes()
  {
View Full Code Here

Examples of src.Column.printState()

  public void columnWithTwoBoxes()
  {
    Column column = new Column(0);
    column.pileBox("a");
    column.pileBox("b");
    assertEquals("0: a b", column.printState());
  }
 
  @Test
  public void removeBoxShould() throws Exception {
    Column column = new Column(0);
View Full Code Here

Examples of src.Column.printState()

    Column column = new Column(0);
    column.pileBox("a");
   
    column.removeBox("a");
   
    assertEquals("0: ", column.printState());
  }
}
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.