use of aserg.gtf.dao.authorship.DeveloperDAO in project Truck-Factor by aserg-ufmg.
the class AliasesIdentifier method main.
public static void main(String[] args) {
RepositoryDAO repDAO = new RepositoryDAO();
DeveloperDAO devDAO = new DeveloperDAO();
//StringUtils.getLevenshteinDistance("", "");
for (Repository rep : repDAO.findAll()) {
if (rep.getStatus() != RepositoryStatus.REMOVED) {
joinAlias(rep.getFullName(), devDAO);
List<Developer> developers = devDAO.getAllDevelopers(rep.getFullName());
Map<Developer, List<Developer>> aliases = findAliases(developers, 1, 3);
List<Developer> devAliases = treatAliases(rep.getFullName(), aliases);
updateDeveloperAliases(devDAO, devAliases);
}
}
}
Aggregations