#21 -- Clean filter

This commit is contained in:
Anton Romanov 2021-04-12 17:10:23 +04:00
parent 6c6e8fdc3b
commit b32bad1eda
2 changed files with 0 additions and 8 deletions

View File

@ -47,12 +47,6 @@ public class StatisticController {
url[i] = urlCommits.get(i)[0].toString().substring(urlCommits.get(i)[0].toString().lastIndexOf("/") + 1);
}
model.addAttribute("urls", url);
// List<Object[]> entityCommits = commitRepository.getCommitEntityStatistic().stream()
// .map(stat -> new Object[]{stat.getEntity(), stat.getCountCommit()})
// .collect(Collectors.toList());
// model.addAttribute("commitTimeData", timeCommits);
return STATISTIC;
}
}

View File

@ -31,6 +31,4 @@ public interface CommitRepository extends JpaRepository<Commit, Integer> {
@Query("SELECT new ru.ulstu.extractor.model.CommitTimeStatistic(cast(c.date as date), COUNT(DISTINCT c.hash)) FROM Commit c GROUP by cast(c.date as date) ORDER by cast(c.date as date)")
List<CommitTimeStatistic> getCommitTimeStatistic();
// @Query("SELECT new ru.ulstu.extractor.model.CommitEntityStatistic(f.containsEntity, COUNT(DISTINCT f.commit.hash)) FROM FileChange f GROUP by f.containsEntity")
// List<CommitEntityStatistic> getCommitEntityStatistic();
}