fail = false;
progress = 0;
subProgress = 0;
final EntityMiner mineration = new EntityMiner();
final EntityRepository repositoryToMiner = dao.findByID(repositoryToMinerId, EntityRepository.class);
out.printLog("Repositorio: " + repositoryToMiner);
out.printLog("minerOpenIssues: " + minerOpenIssues);
out.printLog("minerClosedIssues: " + minerClosedIssues);
out.printLog("\tminerComments: " + minerCommentsOfIssues);
out.printLog("\tminerEventsOfIssues: " + minerEventsOfIssues);
out.printLog("minerRepositoryCommits: " + minerRepositoryCommits);
out.printLog("\tminerCommentsOfRepositoryCommits: " + minerCommentsOfRepositoryCommits);
out.printLog("\tminerStatsAndFilesOfCommits: " + minerStatsAndFilesOfCommits);
out.printLog("minerOpenPullRequests: " + minerOpenPullRequests);
out.printLog("minerClosedPullRequests: " + minerClosedPullRequests);
out.printLog("minerOpenMilestones: " + minerOpenMilestones);
out.printLog("minerClosedMilestones: " + minerClosedMilestones);
out.printLog("minerCollaborators: " + minerCollaborators);
out.printLog("minerWatchers: " + minerWatchers);
out.printLog("minerForks: " + minerForks);
out.printLog("minerTeams: " + minerTeams);
if (repositoryToMiner == null) {
message = "Erro: Escolha o repositorio desejado.";
out.printLog(message);
progress = 0;
subProgress = 0;
initialized = false;
fail = true;
} else {
mineration.setRepository(repositoryToMiner);
dao.insert(mineration);
process = new Thread() {
@Override
public void run() {
out.printLog("########### PROCESSO DE MINERAÇÃO INICIADO! ##############\n");
try {
Repository gitRepo = RepositoryServices.getGitRepository(repositoryToMiner.getOwner().getLogin(), repositoryToMiner.getName());
progress = 10;
if (!canceled && (minerOpenIssues || minerClosedIssues)) {
subProgress = 0;
out.setCurrentProcess("Minerando issues...\n");
List<Issue> gitIssues = IssueServices.getGitIssuesFromRepository(gitRepo, minerOpenIssues, minerClosedIssues, out);