Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniiMunin committed Dec 27, 2024
1 parent ed26d31 commit 5efff00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import io.netty.handler.codec.http.HttpResponseStatus;
import io.vertx.core.http.HttpClientRequest;
import io.vertx.core.http.HttpClientResponse;

import com.maxmind.db.Reader;
import io.vertx.core.Future;
import io.vertx.core.Promise;
Expand Down Expand Up @@ -53,7 +52,7 @@ private Future<DatabaseReader> downloadAndExtract() {
final String tmpPath = properties.tmpPath;
return downloadFile(downloadUrl, tmpPath)
.compose(unused -> {
DatabaseReader databaseReader;
final DatabaseReader databaseReader;
try {
databaseReader = extractMMDB(tmpPath);
} catch (RuntimeException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void setUp() throws OrtException, IOException {
public void runModelShouldReturnProbabilitiesWhenValidThrottlingInferenceRow() throws OrtException {
// given
final String[][] throttlingInferenceRow = {{
"Chrome 59", "rubicon", "adunitcodevalue", "US", "www.leparisien.fr", "PC", "10", "1"}};
"Chrome 59", "rubicon", "adunitcodevalue", "US", "www.leparisien.fr", "PC", "10", "1"}};

// when
final OrtSession.Result actualResult = target.runModel(throttlingInferenceRow);
Expand Down Expand Up @@ -58,7 +58,7 @@ public void runModelShouldReturnProbabilitiesWhenValidThrottlingInferenceRow() t
public void runModelShouldThrowOrtExceptionWhenNonValidThrottlingInferenceRow() {
// given
final String[][] throttlingInferenceRowWithMissingColumn = {{
"Chrome 59", "adunitcodevalue", "US", "www.leparisien.fr", "PC", "10", "1"}};
"Chrome 59", "adunitcodevalue", "US", "www.leparisien.fr", "PC", "10", "1"}};

// when & then
assertThatThrownBy(() -> target.runModel(throttlingInferenceRowWithMissingColumn))
Expand Down

0 comments on commit 5efff00

Please sign in to comment.