Skip to content

Commit

Permalink
swap default to GAMMA10
Browse files Browse the repository at this point in the history
  • Loading branch information
Tillerino committed Jun 30, 2024
1 parent ad7c83f commit d8f7bb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public RecommendationRequest parseSamplerSettings(OsuApiUser apiUser, @Nonnull S

RecommendationRequestBuilder settingsBuilder = RecommendationRequest.builder();

settingsBuilder.model(Model.GAMMA9);
settingsBuilder.model(Model.GAMMA10);

for (int i = 0; i < remaining.length; i++) {
String param = remaining[i];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public void testGammaDefault() throws Exception {
verifyResponse(bot, message("user", "!R"), anyResponse());

verify(rec).loadRecommendations(Mockito.anyList(), any(),
eq(Model.GAMMA9), anyBoolean(), anyLong());
eq(Model.GAMMA10), anyBoolean(), anyLong());
}

private static final GameChatResponse OSUTRACK_RESPONSE_WITH_SPACE = new Success("Rank: +0 (+0.00 pp) in 0 plays. | View detailed data on [https://ameobea.me/osutrack/user/has+space osu!track].");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public void testHiding() throws Exception {
@Test
public void defaultSettings() throws Exception {
assertThat(manager.getRecommendation(user, "", new Default())).isNotNull();
verify(recommender).loadRecommendations(any(), any(), eq(Model.GAMMA9), eq(false), eq(0L));
verify(recommender).loadRecommendations(any(), any(), eq(Model.GAMMA10), eq(false), eq(0L));
}

@Test
Expand Down Expand Up @@ -194,6 +194,6 @@ private void runShift(String mode, int limit) throws IOException, SQLException,
topPlays.sort(Comparator.comparingDouble(TopPlay::getPp));

assertThat(manager.getRecommendation(user, mode, new Default())).isNotNull();
verify(recommender).loadRecommendations(argThat(l -> l.equals(topPlays.subList(0, limit))), any(), eq(Model.GAMMA9), anyBoolean(), anyLong());
verify(recommender).loadRecommendations(argThat(l -> l.equals(topPlays.subList(0, limit))), any(), eq(Model.GAMMA10), anyBoolean(), anyLong());
}
}

0 comments on commit d8f7bb7

Please sign in to comment.