Skip to content

Commit

Permalink
Merge branch 'release/v14'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 25, 2024
2 parents 1d0de97 + 3af1d57 commit a4707f7
Show file tree
Hide file tree
Showing 44 changed files with 643 additions and 105 deletions.
2 changes: 1 addition & 1 deletion metis-authentication/metis-authentication-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-authentication</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-authentication-common</artifactId>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-authentication</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-authentication-rest-client</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion metis-authentication/metis-authentication-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-authentication</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-authentication-rest</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion metis-authentication/metis-authentication-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-authentication</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-authentication-service</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion metis-authentication/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-framework</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-authentication</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion metis-common/metis-common-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>eu.europeana.metis</groupId>
<artifactId>metis-common</artifactId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-common-base</artifactId>
</project>
2 changes: 1 addition & 1 deletion metis-common/metis-common-mongo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-common</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-common-mongo</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion metis-common/metis-common-network/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-common</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-common-network</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion metis-common/metis-common-solr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-common</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-common-solr</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion metis-common/metis-common-spring-properties/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>eu.europeana.metis</groupId>
<artifactId>metis-common</artifactId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-common-spring-properties</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion metis-common/metis-common-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-common</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-common-utils</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion metis-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-framework</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-common</artifactId>
<packaging>pom</packaging>
Expand Down
4 changes: 2 additions & 2 deletions metis-debias/metis-debias-detect-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-debias</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-debias-detect-rest</artifactId>
<dependencies>
Expand Down Expand Up @@ -76,7 +76,7 @@
<dependency>
<groupId>eu.europeana.metis</groupId>
<artifactId>metis-debias-detect-service</artifactId>
<version>13</version>
<version>14</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class DetectionControllerTest {

private static String getDetectionParameterJson() throws JsonProcessingException {
BiasInputLiterals biasInputLiterals = new BiasInputLiterals();
biasInputLiterals.setUseLLM(true);
biasInputLiterals.setUseNER(true);
biasInputLiterals.setValues(List.of(
"sample title of aboriginal and addict",
"a second addict sample title",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ void detection_successResponse() throws Exception {
.withBody(successResponse)
.withStatus(200)));
BiasInputLiterals biasInputLiterals = new BiasInputLiterals();
biasInputLiterals.setUseLLM(true);
biasInputLiterals.setUseNER(true);
biasInputLiterals.setValues(List.of(
"sample title of aboriginal and addict",
"a second addict sample title",
Expand Down Expand Up @@ -102,6 +104,8 @@ void detection_error_null_language_successResponse() throws Exception {
.withBody(errorResponse)
));
BiasInputLiterals biasInputLiterals = new BiasInputLiterals();
biasInputLiterals.setUseLLM(true);
biasInputLiterals.setUseNER(true);
biasInputLiterals.setValues(List.of(
"sample title of aboriginal and addict",
"a second addict sample title",
Expand Down Expand Up @@ -133,6 +137,8 @@ void detection_error_null_values_successResponse() throws Exception {
.withBody(errorResponse)
));
BiasInputLiterals biasInputLiterals = new BiasInputLiterals();
biasInputLiterals.setUseLLM(true);
biasInputLiterals.setUseNER(true);
biasInputLiterals.setValues(null);
biasInputLiterals.setLanguage("en");
ObjectMapper mapper = new ObjectMapper();
Expand Down Expand Up @@ -186,6 +192,8 @@ void detection_error_bad_gateway_successResponse() throws Exception {
.withStatus(502)
.withBody(errorAPIResponse)));
BiasInputLiterals biasInputLiterals = new BiasInputLiterals();
biasInputLiterals.setUseLLM(true);
biasInputLiterals.setUseNER(true);
biasInputLiterals.setValues(List.of(
"sample title of aboriginal and addict",
"a second addict sample title",
Expand Down
2 changes: 1 addition & 1 deletion metis-debias/metis-debias-detect-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>metis-debias</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-debias-detect-service</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
public class BiasInputLiterals {

private boolean useNER;
private boolean useLLM;
private String language;
private List<String> values;

Expand Down Expand Up @@ -49,4 +51,40 @@ public void setValues(List<String> values) {
this.values = Collections.unmodifiableList(values);
}
}

/**
* Is use ner boolean.
*
* @return the boolean
*/
public boolean isUseNER() {
return useNER;
}

/**
* Sets use ner.
*
* @param useNER the use ner
*/
public void setUseNER(boolean useNER) {
this.useNER = useNER;
}

/**
* Is use llm boolean.
*
* @return the boolean
*/
public boolean isUseLLM() {
return useLLM;
}

/**
* Sets use llm.
*
* @param useLLM the use llm
*/
public void setUseLLM(boolean useLLM) {
this.useLLM = useLLM;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ void detect_successResponse() throws IOException {
.withBody(successResponse)
.withStatus(200)));
BiasInputLiterals biasInputLiterals = new BiasInputLiterals();
biasInputLiterals.setUseLLM(true);
biasInputLiterals.setUseNER(true);
biasInputLiterals.setLanguage("en");
biasInputLiterals.setValues(List.of(
"sample title of aboriginal and addict",
Expand All @@ -103,6 +105,8 @@ void detect_errorResponse() throws IOException {
.withBody(errorResponse)
.withStatus(422)));
BiasInputLiterals biasInputLiterals = new BiasInputLiterals();
biasInputLiterals.setUseLLM(true);
biasInputLiterals.setUseNER(true);
biasInputLiterals.setLanguage(null);
biasInputLiterals.setValues(List.of(
"sample title of aboriginal and addict",
Expand All @@ -120,6 +124,8 @@ void detect_errorResponse() throws IOException {
void detect_noService_errorResponse() {

BiasInputLiterals biasInputLiterals = new BiasInputLiterals();
biasInputLiterals.setUseLLM(true);
biasInputLiterals.setUseNER(true);
biasInputLiterals.setLanguage("en");
biasInputLiterals.setValues(List.of(
"sample title of aboriginal and addict",
Expand Down
2 changes: 1 addition & 1 deletion metis-debias/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
<artifactId>metis-framework</artifactId>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion metis-dereference/metis-dereference-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-dereference</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-dereference-common</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion metis-dereference/metis-dereference-import/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-dereference</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>metis-dereference-import</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion metis-dereference/metis-dereference-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-dereference</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-dereference-rest</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion metis-dereference/metis-dereference-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-dereference</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-dereference-service</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion metis-dereference/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
<artifactId>metis-framework</artifactId>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion metis-enrichment/metis-enrichment-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-enrichment</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-enrichment-client</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion metis-enrichment/metis-enrichment-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-enrichment</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-enrichment-common</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion metis-enrichment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-framework</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-enrichment</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion metis-harvesting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-framework</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-harvesting</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion metis-indexing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>metis-framework</artifactId>
<groupId>eu.europeana.metis</groupId>
<version>13</version>
<version>14</version>
</parent>
<artifactId>metis-indexing</artifactId>
<properties>
Expand Down
Loading

0 comments on commit a4707f7

Please sign in to comment.