Package br.edu.utfpr.cm.JGitMinerWeb.model.matrix

Examples of br.edu.utfpr.cm.JGitMinerWeb.model.matrix.EntityMatrixNode


        entityMatrix.setRepository(getRepository() + "");
        entityMatrix.setClassServicesName(this.getClass().getName());
        entityMatrix.setLog(out.getLog().toString());
        dao.insert(entityMatrix);
        for (Iterator<EntityMatrixNode> it = matrixNodes.iterator(); it.hasNext();) {
            EntityMatrixNode node = it.next();
            node.setMatrix(entityMatrix);
            entityMatrix.getNodes().add(node);
            dao.insert(node);
            it.remove();
        }
        entityMatrix.setStoped(new Date());
View Full Code Here


        entityMatrix.setRepository(getRepository() + "");
        entityMatrix.setClassServicesName(this.getClass().getName());
        entityMatrix.setLog(out.getLog().toString());
        dao.insert(entityMatrix);
        for (Iterator<EntityMatrixNode> it = matrixNodes.iterator(); it.hasNext();) {
            EntityMatrixNode node = it.next();
            node.setMatrix(entityMatrix);
            entityMatrix.getNodes().add(node);
            dao.insert(node);
            it.remove();
        }
        entityMatrix.setStoped(new Date());
View Full Code Here

        final Set<String> distinctFiles = new HashSet<>();
       
        Set<AuxFileFile> pairFiles = new HashSet<>();
        Map<String, AuxFileFile> edgeFiles = new HashMap<>();
        for (int i = 0; i < getMatrix().getNodes().size(); i++) {
            EntityMatrixNode node = getMatrix().getNodes().get(i);
            String[] columns = node.getLine().split(JsfUtil.TOKEN_SEPARATOR);
           
            AuxFileFile pairFile = new AuxFileFile(columns[1], columns[2]);
            AuxUserUser pairUser = new AuxUserUser(columns[0], columns[3]);
           
            // to count unique developers
View Full Code Here

        System.out.println("Selecionado matrix com " + getMatrix().getNodes().size() + " nodes.");
        UndirectedSparseMultigraph<String, String> graphMulti = new UndirectedSparseMultigraph<>();
        UndirectedSparseGraph<String, String> graph = new UndirectedSparseGraph<>();
        List<String> files = new ArrayList<>();
        for (int i = 0; i < getMatrix().getNodes().size(); i++) {
            EntityMatrixNode node = getMatrix().getNodes().get(i);
            String[] coluns = node.getLine().split(JsfUtil.TOKEN_SEPARATOR);
            colectFile(files, coluns[2]);
            graph.addEdge(
                    coluns[2] + "(" + i + ")",
                    coluns[1],
                    coluns[0],
View Full Code Here

       
        Map<AuxFileFile, Long> futurePullRequest = new HashMap<>();
       
        // construindo a rede de comunicação para cada par de arquivo (desenvolvedores que comentaram)
        for (int i = 0; i < getMatrix().getNodes().size(); i++) {
            EntityMatrixNode node = getMatrix().getNodes().get(i);
            String[] columns = node.getLine().split(JsfUtil.TOKEN_SEPARATOR);

            AuxFileFile pairFile = new AuxFileFile(columns[1], columns[2]);
           
            // ignora %README%, %Rakefile, %CHANGELOG%, %Gemfile%, %.gitignore
            if (isIgnored(pairFile.getFileName())
View Full Code Here

    public abstract String getHeadCSV();

    protected List<EntityMatrixNode> objectsToNodes(Collection list) {
        List<EntityMatrixNode> nodes = new ArrayList<>();
        for (Object obj : list) {
            nodes.add(new EntityMatrixNode(obj));
        }
        return nodes;
    }
View Full Code Here

        System.out.println(params.get("dataFinal"));
       
       
       
        EntityMatrix matrix = new EntityMatrix();
        matrix.getNodes().add(new EntityMatrixNode("eduaro;carro.java;5"));
        matrix.getNodes().add(new EntityMatrixNode("douglas;pessoa.java;6"));
       
        matricesToSave.add(matrix);
    }
View Full Code Here

       
        Map<AuxFileFile, Long> futurePullRequest = new HashMap<>();
       
        // construindo a rede de comunicação para cada par de arquivo (desenvolvedores que comentaram)
        for (int i = 0; i < getMatrix().getNodes().size(); i++) {
            EntityMatrixNode node = getMatrix().getNodes().get(i);
            String[] columns = node.getLine().split(JsfUtil.TOKEN_SEPARATOR);

            AuxFileFile pairFile = new AuxFileFile(columns[1], columns[2]);
           
            // ignora %README%, %Rakefile, %CHANGELOG%, %Gemfile%, %.gitignore
            if (isIgnored(pairFile.getFileName())
View Full Code Here

        final Set<String> distinctFiles = new HashSet<>();

        Set<AuxFileFile> pairFiles = new HashSet<>();
        Map<String, AuxFileFile> edgeFiles = new HashMap<>();
        for (int i = 0; i < getMatrix().getNodes().size(); i++) {
            EntityMatrixNode node = getMatrix().getNodes().get(i);
            String[] columns = node.getLine().split(JsfUtil.TOKEN_SEPARATOR);

            AuxFileFile pairFile = new AuxFileFile(columns[1], columns[2]);
            AuxUserUser pairUser = new AuxUserUser(columns[0], columns[3]);

            // to count unique developers
View Full Code Here

        System.out.println("Selecionado matriz com " + getMatrix().getNodes().size() + " nodes.");
        UndirectedSparseMultigraph<String, String> graphMulti = new UndirectedSparseMultigraph<>();
        UndirectedSparseGraph<String, String> graph = new UndirectedSparseGraph<>();
        List<String> files = new ArrayList<>();
        for (int i = 0; i < getMatrix().getNodes().size(); i++) {
            EntityMatrixNode node = getMatrix().getNodes().get(i);
            String[] coluns = node.getLine().split(JsfUtil.TOKEN_SEPARATOR);
            colectFile(files, coluns[2]);
            graph.addEdge(
                    coluns[2] + "(" + i + ")",
                    coluns[1],
                    coluns[0],
View Full Code Here

TOP

Related Classes of br.edu.utfpr.cm.JGitMinerWeb.model.matrix.EntityMatrixNode

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.