Provides all agregated stats about GOLD and GUESS entities (FP, TP, FP) and their categories
@return
972497
public NamedEntities entity_stats() {
		NamedEntities res = new NamedEntities();
		CoreLabel c;
		for (int classifierId = 0; classifierId < classifiers.size(); classifierId++) {
			System.err.printf("-- Classifier-%d\n", classifierId);
			
			String lastGold = "O", lastGuess = "O";
			int goldIndex = 0, guessIndex = 0;
			String goldString = "", guessString = "";
			String goldLemmaString = "", guessLemmaString = "";
			for (int i = 0; i < document.size(); i++) {
				c = document.get(i);
				String gold = c.getString(NamedEntityTagGoldAnnotation.class);
				String guess = c.get(AnswersAnnotation.class).get(classifierId);
				
				// continue current gold string
				if (lastGold.equals(gold) && !lastGold.equals("O")) {
					goldString += " " + c.word();
					goldLemmaString += " " + c.lemma();
				}
				
				// continue current guess string
				if (lastGuess.equals(guess) && !lastGuess.equals("O")) {
					guessString += " " + c.word();
					guessLemmaString += " " + c.lemma();
				}
				
				if (!lastGold.equals(gold) && !lastGold.equals("O")) {
					String t = "|" + lastGold + "|" + lastGuess;
				    if (lastGuess.equals(lastGold) && !lastGuess.equals(guess) &&
				    		goldIndex == guessIndex) {
				    	// TP 0/0 1/1 0/0
				    	//System.err.printf("TP %s\n", goldString);
				    	res.incTp(goldLemmaString + t, goldString + t);
				    } else {
				    	// FN 0/0 1/0 1/0 0/0; 0/0 1/1 1/0 0/0
						//System.err.printf("FN %s\n", goldString);
						res.incFn(goldLemmaString + t, goldString + t);
				    }
				}
				
				if (!lastGuess.equals(guess) && !lastGuess.equals("O")) {
					if (lastGuess.equals(lastGold) && !lastGuess.equals(guess) &&
							goldIndex == guessIndex && !lastGold.equals(gold)) {
						// already TP
					} else {
						// FP 
						String t = "|" + lastGold + "|" + lastGuess;
						res.incFp(guessLemmaString + t, guessString + t);
						System.err.printf("FP %s\n", guessString);
					}
				}
				
				if (!lastGold.equals(gold)) {
					lastGold = gold;
					goldIndex = i;
					goldString = c.word();
					goldLemmaString = c.lemma();
				}

				if (!lastGuess.equals(guess)) {
					lastGuess = guess;
					guessIndex = i;
					guessString = c.word();
					guessLemmaString = c.lemma();
				}
			}
				
			if (!lastGold.equals("O")) {
				String t = "|" + lastGold + "|" + lastGuess;
				if (lastGold.equals(lastGuess) && goldIndex == guessIndex) {
					// System.err.printf("TP %s\n", goldString);
					res.incTp(goldLemmaString + t, goldString + t);
				} else {
					// System.err.printf("FN %s\n", goldString);
					res.incFn(goldLemmaString + t, goldString + t);
				}
			}
			
			if (!lastGuess.equals("O")) {
				if (lastGold.equals(lastGuess) && goldIndex == guessIndex) {
					// OK
				} else {
					String t = "|" + lastGold + "|" + lastGuess;
					res.incFn(guessLemmaString + t, guessString + t);
				}
			}
		}
		return res;
	}
568157
public java.util.List<AggregateEvaluationResult> getAggregateEvaluationResults() {
        if (aggregateEvaluationResults == null) {
            aggregateEvaluationResults = new com.amazonaws.internal.SdkInternalList<AggregateEvaluationResult>();
        }
        return aggregateEvaluationResults;
    }
846883
public java.util.Map captureStatistics()
    {
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.entry(this, cclass,
                        "captureStatistics");

        java.util.Map statistics = new java.util.HashMap();
        statistics.put("maximumAvailableSize",
                       Long.toString(maximumAvailableSize));

        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.exit(this, cclass,
                       "captureStatistics",
                       new Object[] { statistics });
        return statistics;
    }
682629
public ClientAffinityStats getAggregateAffinityStats()
    {
        long afWrites = 0;
        long afReads = 0;
        long rrWrites = 0;
        long rrReads = 0;
        Map<Integer, ClientAffinityStats> affinityStats = getAffinityStats();
        for (Entry<Integer, ClientAffinityStats> e : affinityStats.entrySet()) {
            afWrites += e.getValue().getAffinityWrites();
            afReads += e.getValue().getAffinityReads();
            rrWrites += e.getValue().getRrWrites();
            rrReads += e.getValue().getRrReads();
        }
        ClientAffinityStats retval = new ClientAffinityStats(Integer.MAX_VALUE, afWrites, rrWrites,
               afReads, rrReads);
        return retval;
    }
401647
protected Set<Integer> __getCategories() {

        // TODO this should be replaced with the buffered category iterator, as it might produce an HeapSpace Overflow, if there are too many categories.
        Session session = this.__getHibernateSession();
        session.beginTransaction();
        List<Integer> idList = session.createQuery(
                "select cat.pageId from Category as cat", Integer.class).list();
        Set<Integer> categorySet = new HashSet<Integer>(idList);
        session.getTransaction().commit();

        return categorySet;
    }
1212858
public java.util.List<AggregatedSourceStatus> getAggregatedSourceStatusList() {
        if (aggregatedSourceStatusList == null) {
            aggregatedSourceStatusList = new com.amazonaws.internal.SdkInternalList<AggregatedSourceStatus>();
        }
        return aggregatedSourceStatusList;
    }
296859
public StatisticImpl getStatistic() {
        StatisticImpl aggStat = _getAggregate();
        aggStat.setLastSampleTime(System.currentTimeMillis());
        return aggStat;
    }
106706
public Collection<String> getBugCategories() {
        ArrayList<String> result = new ArrayList<>(categoryDescriptionMap.size());
        for(BugCategory c : categoryDescriptionMap.values()) {
            if (!c.isHidden()) {
                result.add(c.getCategory());
            }
        }
        return result;
    }
1166902
@Override
	public List<CPRuleAssetCategoryRel> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
940314
@Override
	public Collection<Alternative> getAlternatives() {

		List<Alternative> allSuggestions = new ArrayList<>();
		for (List<Alternative> suggestions : this.suggestions.values()) {
			allSuggestions.addAll(suggestions);
		}
		return allSuggestions;
	}
539771
public synchronized int getTotalSubscriptions()
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "getTotalSubscriptions");

    int totalSubscriptions = durableSubscriptions + nonDurableSubscriptions;

    if (tc.isEntryEnabled())
      SibTr.exit(
        tc,
        "getTotalSubscriptions",
        new Integer(totalSubscriptions));

    return totalSubscriptions;
  }
404465
public java.util.List<InventoryResultEntity> getEntities() {
        if (entities == null) {
            entities = new com.amazonaws.internal.SdkInternalList<InventoryResultEntity>();
        }
        return entities;
    }
119790
private static Bundle getAllocCounts() {
        Bundle results = new Bundle();
        results.putLong(METRIC_KEY_GLOBAL_ALLOC_COUNT, Debug.getGlobalAllocCount());
        results.putLong(METRIC_KEY_GLOBAL_ALLOC_SIZE, Debug.getGlobalAllocSize());
        results.putLong(METRIC_KEY_GLOBAL_FREED_COUNT, Debug.getGlobalFreedCount());
        results.putLong(METRIC_KEY_GLOBAL_FREED_SIZE, Debug.getGlobalFreedSize());
        results.putLong(METRIC_KEY_GC_INVOCATION_COUNT, Debug.getGlobalGcInvocationCount());
        return results;
    }
1283868
int getAllPuCount() {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isEntryEnabled())
            Tr.entry(tc, "getAllPuCount", this);
        int rtnCount = 0;

        synchronized (pxmlsInfo) {
            for (JPAPxmlInfo pxmlInfo : pxmlsInfo.values()) {
                rtnCount += pxmlInfo.getPuCount();
            }
        }

        if (isTraceOn && tc.isEntryEnabled())
            Tr.exit(tc, "getAllPuCount : " + rtnCount);
        return rtnCount;
    }
774097
public FSArray getEntity_attributes() {
    if (Entity_Type.featOkTst && ((Entity_Type)jcasType).casFeat_entity_attributes == null)
      jcasType.jcas.throwFeatMissing("entity_attributes", "de.julielab.jules.types.ace.Entity");
    return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Entity_Type)jcasType).casFeatCode_entity_attributes)));}
1252424
private java.util.Map captureStatistics()
    {
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.entry(this, cclass
                        , "captureStatistics"
                            );

        java.util.Map statistics = new java.util.HashMap();
        statistics.putAll(objectManagerState.captureStatistics());

        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.exit(this, cclass
                       , "captureStatistics"
                       , statistics
                            );
        return statistics;
    }
1153599
public List<FieldResult<EntityResult<T>>> getAllFieldResult()
   {
      List<FieldResult<EntityResult<T>>> list = new ArrayList<FieldResult<EntityResult<T>>>();
      List<Node> nodeList = childNode.get("field-result");
      for(Node node: nodeList)
      {
         FieldResult<EntityResult<T>>  type = new FieldResultImpl<EntityResult<T>>(this, "field-result", childNode, node);
         list.add(type);
      }
      return list;
   }