Examples of Counts


Examples of fit.Counts

    String fitPage = "<table><tr><td>" + MaxTime.class.getName() + "</td><td>19</td><td>milliseconds</td>"
      + "</tr><tr><td>eg.Division</td></tr>"
      + "<tr><td>numerator</td><td>denominator</td><td>quotient()</td></tr>"
      + "<tr><td>10</td><td>2</td><td>5</td></tr><tr><td>12.6</td><td>3</td><td>4.2</td></tr>"
      + "<tr><td>100</td><td>4</td><td>25</td></tr></table>";
    Counts expected = TestCaseHelper.counts(3, 1, 0, 0);
    executeAndAssert(expected, fitPage, new MaxTime(stopWatch));
  }
View Full Code Here

Examples of fit.Counts

    String fitPage = "<table><tr><td>" + MaxTime.class.getName()
      + "</td><td>20</td><td>milliseconds</td></tr><tr><td>eg.Division</td></tr>"
      + "<tr><td>numerator</td><td>denominator</td><td>quotient()</td></tr>"
      + "<tr><td>10</td><td>2</td><td>5</td></tr><tr><td>12.6</td><td>3</td><td>4.2</td></tr>"
      + "<tr><td>100</td><td>4</td><td>25</td></tr></table>";
    Counts expected = TestCaseHelper.counts(4, 0, 0, 0);
    executeAndAssert(expected, fitPage, new MaxTime(stopWatch));
  }
View Full Code Here

Examples of fit.Counts

    String fitPage = "<table><tr><td>" + MaxTime.class.getName()
      + "</td><td>80</td><td>milliseconds</td></tr><tr><td>eg.Division</td></tr>"
      + "<tr><td>numerator</td><td>denominator</td><td>quotient()</td></tr>"
      + "<tr><td>10</td><td>2</td><td>5</td></tr><tr><td>12.6</td><td>3</td><td>4.2</td></tr>"
      + "<tr><td>100</td><td>4</td><td>25</td></tr></table>";
    Counts expected = TestCaseHelper.counts(4, 0, 0, 0);
    executeAndAssert(expected, fitPage, new MaxTime(stopWatch));
  }
View Full Code Here

Examples of fit.Counts

      + "</td><td>3</td><td>time</td></tr><tr><td>" + MaxTime.class.getName()
      + "</td><td>80</td><td>milliseconds</td></tr><tr><td>eg.Division</td></tr>"
      + "<tr><td>numerator</td><td>denominator</td><td>quotient()</td></tr>"
      + "<tr><td>10</td><td>2</td><td>5</td></tr><tr><td>12.6</td><td>3</td><td>4.2</td></tr>"
      + "<tr><td>100</td><td>4</td><td>25</td></tr></table>";
    Counts expected = TestCaseHelper.counts(13, 0, 0, 0);
    executeAndAssert(expected, fitPage, new MaxTime(stopWatch));
  }
View Full Code Here

Examples of fit.Counts

  }

  private final static String ERR_MESSAGE = "Run Wiki Page[%s.wiki],right=%d; wrong=%d;exceptions=%d.\nclass path url[%s].\nResult['file://%s']";

  private void isSuccess(TestResult tr, String name, WikiFile wikiFile) throws FitRunException {
    Counts count = tr.getCounts();
    int right = count.right;
    int wrong = count.wrong;
    int exception = count.exceptions;

    if (wrong + exception != 0) {
View Full Code Here

Examples of info.jtrac.domain.Counts

                + " where item.loggedBy.id = ? and item.space.id = ? group by item.status", new Object[] {user.getId(), space.getId()});
        List<Object[]> assignedToList = ht.find("select status, count(item) from Item item"
                + " where item.assignedTo.id = ? and item.space.id = ? group by item.status", new Object[] {user.getId(), space.getId()});
        List<Object[]> statusList = ht.find("select status, count(item) from Item item"
                + " where item.space.id = ? group by item.status", space.getId());
        Counts c = new Counts(true);
        for(Object[] oa : loggedByList) {
            c.addLoggedByMe((Integer) oa[0], (Long) oa[1]);
        }
        for(Object[] oa : assignedToList) {
            c.addAssignedToMe((Integer) oa[0], (Long) oa[1]);
        }
        for(Object[] oa : statusList) {
            c.addTotal((Integer) oa[0], (Long) oa[1]);
        }
        return c;
    }
View Full Code Here

Examples of info.jtrac.domain.Counts

        CountsHolder ch = jtrac.loadCountsForUser(u);
        assertEquals(1, ch.getTotalAssignedToMe());
        assertEquals(1, ch.getTotalLoggedByMe());
        assertEquals(1, ch.getTotalTotal());
       
        Counts c = ch.getCounts().get(s.getId());
        assertEquals(1, c.getLoggedByMe());
        assertEquals(1, c.getAssignedToMe());
        assertEquals(1, c.getTotal());
    }
View Full Code Here

Examples of info.jtrac.domain.Counts

            table.add(hideAssigned);

            table.add(new ListView("dashboardRows", spaceRoles) {
                protected void populateItem(final ListItem listItem) {
                    UserSpaceRole usr = (UserSpaceRole) listItem.getModelObject();
                    Counts counts = countsHolder.getCounts().get(usr.getSpace().getId());
                    if (counts == null) {
                        counts = new Counts(false); // this can happen if fresh space
                    }
                    DashboardRowPanel dashboardRow = new DashboardRowPanel("dashboardRow", usr, counts);                   
                    listItem.add(dashboardRow);
                }
            });
View Full Code Here

Examples of info.jtrac.domain.Counts

            }
        });       
       
        add(new IndicatingAjaxLink("link") {
            public void onClick(AjaxRequestTarget target) {
                Counts tempCounts = counts;               
                // avoid hitting the database again if re-expanding
                if (!tempCounts.isDetailed()) {                   
                    tempCounts = getJtrac().loadCountsForUserSpace(user, space);                   
                }
                DashboardRowExpandedPanel dashboardRow = new DashboardRowExpandedPanel("dashboardRow", usr, tempCounts);
                DashboardRowPanel.this.replaceWith(dashboardRow);
                target.addComponent(dashboardRow);
View Full Code Here

Examples of org.dmg.pmml31.CountsDocument.Counts

       
        UnivariateStats[] stats =
            pmml.getMiningModelArray(0).getModelStats().getUnivariateStatsArray();       
        for (int i=0; i<columnCount; i++)
        {
            Counts counts = stats[i].getCounts();
            totalFreq[i] = counts.getTotalFreq().longValue();
            missingData[i] = counts.getMissingFreq().longValue();
            invalidFreq[i] = 0;
            distinctValue[i] = Integer.valueOf(counts.getExtensionArray(0).getValue()).intValue();
            String type = colInfo[i].getDataType();
            OPTYPE.Enum optype = pmml.getDataDictionary().getDataFieldArray(i).getOptype();
            if (optype == OPTYPE.CATEGORICAL)
            {
                // init discrete statistic for categorical optype
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.