All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gui.RunWithPullRequest Maven / Gradle / Ivy

Go to download

RefactoringMiner is a library/API written in Java that can detect refactorings applied in the history of a Java project.

There is a newer version: 3.0.9
Show newest version
package gui;

import gui.webdiff.WebDiff;
import org.refactoringminer.astDiff.models.ProjectASTDiff;
import org.refactoringminer.rm1.GitHistoryRefactoringMinerImpl;

public class RunWithPullRequest {
    public static void main(String[] args) throws Exception {
    	String repo = "https://github.com/JabRef/jabref.git";
    	//https://github.com/koppor/jabref/pull/687
        //https://github.com/tsantalis/RefactoringMiner/pull/713
    	//https://github.com/tsantalis/RefactoringMiner/pull/745
    	//repo = "https://github.com/tsantalis/RefactoringMiner.git";
        //repo = "https://github.com/koppor/jabref.git";
        //https://github.com/JabRef/jabref/pull/11542
        int PR = 10847;
        PR = 11542;
        //PR = 10957;
        //PR = 11180;
        //PR = 11207;
        //PR = 8934;
        //PR = 11245;
        //PR = 719;
        //PR = 745;
        //PR = 687;
        //https://github.com/JabRef/jabref/pull/11282
        //PR = 11282;
        //PR = 11399;
        //https://github.com/JabRef/jabref/pull/11476
        //PR = 11476;
        //https://github.com/JabRef/jabref/pull/11430
        //PR = 11430;
        //https://github.com/openjdk/jfx/pull/1442/commits/974bf468c8261c61f8087aa6132824993ae89afd
        //repo = "https://github.com/openjdk/jfx.git";
        //PR = 1442;
        //https://github.com/langchain4j/langchain4j/pull/1433
        //repo = "https://github.com/langchain4j/langchain4j.git";
        //PR = 1433;
        ProjectASTDiff projectASTDiff = new GitHistoryRefactoringMinerImpl().diffAtPullRequest(repo, PR, 10000000);
        new WebDiff(projectASTDiff).run();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy