Skip to content

Commit 42d0c1a

Browse files
workflows
1 parent 1daa520 commit 42d0c1a

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

src/main/java/de/tum/cit/aet/ai/service/ContributionFairnessService.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,6 @@ public FairnessReportDTO analyzeFairness(TeamRepositoryDTO repositoryDTO) {
5454
return analyzeFairnessWithUsage(repositoryDTO, null, null).report();
5555
}
5656

57-
/**
58-
* Analyses a repository with optional template author exclusion (default weights).
59-
*
60-
* @param repositoryDTO the repository to analyse
61-
* @param templateAuthorEmails emails of the template authors to exclude (lowercase), or {@code null}
62-
* @return fairness report plus token usage
63-
*/
64-
public FairnessReportWithUsageDTO analyzeFairnessWithUsage(TeamRepositoryDTO repositoryDTO,
65-
Set<String> templateAuthorEmails) {
66-
return analyzeFairnessWithUsage(repositoryDTO, templateAuthorEmails, null);
67-
}
68-
6957
/**
7058
* Analyses a repository with optional template author exclusion.
7159
*

src/main/java/de/tum/cit/aet/analysis/service/AnalysisResultPersistenceService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public ClientResponseWithUsage saveAIAnalysisResultWithUsage(TeamRepositoryDTO r
271271
boolean fairnessSucceeded = false;
272272
try {
273273
FairnessReportWithUsageDTO fairnessResult = fairnessService.analyzeFairnessWithUsage(
274-
repo, templateAuthorEmails);
274+
repo, templateAuthorEmails, null);
275275
FairnessReportDTO report = fairnessResult.report();
276276
teamTokenTotals = fairnessResult.tokenTotals();
277277

@@ -706,7 +706,7 @@ private boolean checkAndMarkFailed(TeamParticipation tp, List<Student> students)
706706
boolean hasFailed = false;
707707

708708
boolean hasFailedStudent = students.stream()
709-
.anyMatch(s -> s.getCommitCount() != null && s.getCommitCount() < 10);
709+
.anyMatch(s -> s.getCommitCount() != null && s.getCommitCount() < 3);
710710
if (hasFailedStudent) {
711711
hasFailed = true;
712712
}

src/test/java/de/tum/cit/aet/dataProcessing/service/RequestServiceApplyMappingsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void saveAIAnalysisResultWithUsage_withExistingMapping_appliesMappingToSavedChun
215215
"Team Alpha", 75.0, Map.of(), Map.of(),
216216
false, List.of(), null,
217217
List.of(externalChunkDTO), null);
218-
when(fairnessService.analyzeFairnessWithUsage(eq(repo), eq(Set.of())))
218+
when(fairnessService.analyzeFairnessWithUsage(eq(repo), eq(Set.of()), null))
219219
.thenReturn(new FairnessReportWithUsageDTO(fairnessReport, LlmTokenTotalsDTO.empty()));
220220

221221
// saveAll for chunks: capture and return the same list

0 commit comments

Comments
 (0)