Package br.edu.utfpr.cm.JGitMinerWeb.services.matrix.auxiliary

Examples of br.edu.utfpr.cm.JGitMinerWeb.services.matrix.auxiliary.AuxFileCountSum


    private void orderByCount(List<AuxFileCountSum> auxs) {
        Collections.sort(auxs, new Comparator() {
            @Override
            public int compare(Object o1, Object o2) {
                AuxFileCountSum v1 = (AuxFileCountSum) o1;
                AuxFileCountSum v2 = (AuxFileCountSum) o2;

                Comparable i1 = (Comparable) v1.getCount();
                Comparable i2 = (Comparable) v2.getCount();
                return i2.compareTo(i1);
            }
        });
    }
View Full Code Here


                }
            }
            baryCenterAve = baryCenterSum / dev;
            eigenvectorAve = eigenvectorSum / dev;

            AuxFileCountSum aux = calculeCodeChurnAndUpdates(file, getBeginDate(), getEndDate());
            codeChurn = (double) aux.getSum();
            updates = (double) aux.getCount();

//            aux = calculeCodeChurnAndUpdates(file, getFutureBeginDate(), getFutureEndDate());
//            futCodeChurn = (double) aux.getSum();
//            futUpdates = (double) aux.getCount();
            fileMetrics.add(new AuxFileMetrics(file,
View Full Code Here

        List<AuxFileCountSum> result = dao.selectWithParams(jpql, bdParams, bdObjects);

        if (!result.isEmpty()) {
            return result.get(0);
        } else {
            return new AuxFileCountSum(fileName, 0, 0);
        }
    }
View Full Code Here

            }
            btwAve = btwSum / dev;
            dgrAve = dgrSum / dev;
            clsAve = clsSum / dev;

            AuxFileCountSum aux = calculeCodeChurnAndUpdates(file, getBeginDate(), getEndDate());
            codeChurn = (double) aux.getSum();
            updates = (double) aux.getCount();

            aux = calculeCodeChurnAndUpdates(file, getFutureBeginDate(), getFutureEndDate());
            futCodeChurn = (double) aux.getSum();
            futUpdates = (double) aux.getCount();

            fileMetrics.add(new AuxFileMetrics(file,
                    btwMax, btwAve, btwSum,
                    dgrMax, dgrAve, dgrSum,
                    clsMax, clsAve, clsSum,
View Full Code Here

        List<AuxFileCountSum> result = dao.selectWithParams(jpql, bdParams, bdObjects);

        if (!result.isEmpty()) {
            return result.get(0);
        } else {
            return new AuxFileCountSum(fileName, 0, 0);
        }
    }
View Full Code Here

TOP

Related Classes of br.edu.utfpr.cm.JGitMinerWeb.services.matrix.auxiliary.AuxFileCountSum

Copyright © 2018 www.massapicom. 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.