Map<String, AuxUserMetrics> usersMetrics = new HashMap<>();
out.printLog("Iniciando calculo das metricas.");
for (String vertexUser : graphMulti.getVertices()) {
usersMetrics.put(vertexUser, new AuxUserMetrics(vertexUser,
btwGen.getVertexScore(vertexUser), // betweeness
dgrGen.getVertexScore(vertexUser), // degree
clsGen.getVertexScore(vertexUser))); // closeness
}
graphMulti = null;
edgesWeigth.clear();
List<AuxFileFileMetrics> fileMetrics = new ArrayList<>();
out.printLog("Iniciando média, soma, updates, etc.");
for (AuxFileFile pairFile : pairFiles) {
Double btwMax = 0d, btwAve, btwSum = 0d;
Double dgrMax = 0d, dgrAve, dgrSum = 0d;
Double clsMax = 0d, clsAve, clsSum = 0d;
Long codeChurn = 0l, futUpdates = 0l, updates = 0l, dev = 0l;
Long codeChurn2 = 0l;
for (String vertexUser : commitersPairFile.get(pairFile)) {
AuxUserMetrics userMetric = usersMetrics.get(vertexUser);
Double btw = userMetric.getMetrics()[0];
btwMax = calculeMax(btw, btwMax);
btwSum += btw;
Double dgr = userMetric.getMetrics()[1];
dgrMax = calculeMax(dgr, dgrMax);
dgrSum += dgr;
Double cls = userMetric.getMetrics()[2];
clsMax = calculeMax(cls, clsMax);
clsSum += cls;
dev++;
}