@@ -0,0 +1,1493 @@
+package fr.inria.spirals.librepair.travisfilter;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.File;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0A/**%0A * Created by urli on 07/07/2017.%0A */%0Apublic class Utils %7B%0A%0A    private static Set%3CString%3E getFileContent(String path) throws IOException %7B%0A        HashSet%3CString%3E result = new HashSet%3CString%3E();%0A        File file = new File(path);%0A        BufferedReader reader = new BufferedReader(new FileReader(file));%0A        while (reader.ready()) %7B%0A            result.add(reader.readLine().trim());%0A        %7D%0A        return result;%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        if (args.length %3C 2) %7B%0A            System.err.println(%22Usage: utils %3Cnew list%3E %3Cold list 1%3E %5Bold list 2, old list 3, ...%5D%22);%0A            System.exit(1);%0A        %7D%0A%0A        Set%3CString%3E newList = getFileContent(args%5B0%5D);%0A        Set%3CString%3E oldList = new HashSet%3CString%3E();%0A%0A        for (int i = 1; i %3C args.length; i++) %7B%0A            oldList.addAll(getFileContent(args%5Bi%5D));%0A        %7D%0A%0A        Set%3CString%3E newListWithoutDuplicates = new HashSet%3CString%3E();%0A%0A        for (String s : newList) %7B%0A            if (!oldList.contains(s)) %7B%0A                newListWithoutDuplicates.add(s);%0A            %7D%0A        %7D%0A%0A        for (String s : newListWithoutDuplicates) %7B%0A            System.out.println(s);%0A        %7D%0A%0A        System.out.printf(%22Total : %22+newListWithoutDuplicates.size());%0A    %7D%0A%7D%0A

Add a new util class to filter duplicated projects in lists