-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MET-5960 code reorganization to be able to use with sandbox
- Loading branch information
1 parent
a316a9a
commit 45ee11c
Showing
12 changed files
with
131 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...bias/detect/rest/client/DeBiasClient.java → ...is/debias/detect/client/DeBiasClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...exceptions/DeBiasBadRequestException.java → ...exceptions/DeBiasBadRequestException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ptions/DeBiasInternalServerException.java → ...ptions/DeBiasInternalServerException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
metis-debias/metis-debias-detect-service/src/test/resources/sample_error_null_language.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"detail": [ | ||
{ | ||
"type": "string_type", | ||
"loc": [ | ||
"body", | ||
"language" | ||
], | ||
"msg": "Input should be a valid string", | ||
"input": null, | ||
"url": "https://errors.pydantic.dev/2.5/v/string_type" | ||
} | ||
] | ||
} |
51 changes: 51 additions & 0 deletions
51
metis-debias/metis-debias-detect-service/src/test/resources/sample_success_response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"metadata": { | ||
"annotator": "de-bias", | ||
"thesaurus": null, | ||
"date": "2024-08-27T12:04:17" | ||
}, | ||
"results": [ | ||
{ | ||
"language": "en", | ||
"literal": "sample title of aboriginal and addict", | ||
"tags": [ | ||
{ | ||
"uri": "http://www.example.org/debias#t_2_en", | ||
"start": 16, | ||
"end": 26, | ||
"length": 10 | ||
}, | ||
{ | ||
"uri": "http://www.example.org/debias#t_3_en", | ||
"start": 31, | ||
"end": 37, | ||
"length": 6 | ||
} | ||
] | ||
}, | ||
{ | ||
"language": "en", | ||
"literal": "a second addict sample title", | ||
"tags": [ | ||
{ | ||
"uri": "http://www.example.org/debias#t_3_en", | ||
"start": 9, | ||
"end": 15, | ||
"length": 6 | ||
} | ||
] | ||
}, | ||
{ | ||
"language": "en", | ||
"literal": "this is a demo of master and slave branch", | ||
"tags": [ | ||
{ | ||
"uri": "http://www.example.org/debias#t_198_en", | ||
"start": 29, | ||
"end": 34, | ||
"length": 5 | ||
} | ||
] | ||
} | ||
] | ||
} |