Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.11.7
v2.12.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>ai.reveng</groupId>
<artifactId>sdk</artifactId>
<version>2.11.7</version>
<version>2.12.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:2.11.7"
implementation "ai.reveng:sdk:2.12.0"
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'ai.reveng'
version = '2.11.7'
version = '2.12.0'



Expand Down Expand Up @@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()

coordinates("ai.reveng", "sdk", "2.11.7")
coordinates("ai.reveng", "sdk", "2.12.0")

pom {
name = "sdk"
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ai.reveng",
name := "sdk",
version := "2.11.7",
version := "2.12.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions docs/AnalysisFunctionMatchingRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
|**resultsPerFunction** | **Integer** | Maximum number of matches to return per function, default is 1, max is 10 | [optional] |
|**page** | **Integer** | Page number for paginated results, default is 1 (first page) | [optional] |
|**pageSize** | **Integer** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] |
|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] |



1 change: 1 addition & 0 deletions docs/AutoUnstripRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
|**apply** | **Boolean** | Whether to apply the matched function names to the target binary, default is False | [optional] |
|**confidenceThreshold** | **BigDecimal** | Confidence threshold for applying function names as a percentage, default is 90 | [optional] |
|**minGroupSize** | **Integer** | Minimum number of matching functions required to consider for a match, default is 10 | [optional] |
|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] |



1 change: 1 addition & 0 deletions docs/FunctionMatchingRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
|**resultsPerFunction** | **Integer** | Maximum number of matches to return per function, default is 1, max is 50 | [optional] |
|**page** | **Integer** | Page number for paginated results, default is 1 (first page) | [optional] |
|**pageSize** | **Integer** | Number of functions to return per page, default is 0 (all functions), max is 1000 | [optional] |
|**noCache** | **Boolean** | If set to true, forces the system to bypass any cached results and perform a fresh computation | [optional] |



2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>sdk</artifactId>
<packaging>jar</packaging>
<name>sdk</name>
<version>2.11.7</version>
<version>2.12.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/2.11.7/java");
setUserAgent("OpenAPI-Generator/2.12.0/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "2.11.7";
public static final String VERSION = "2.12.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ public class AnalysisFunctionMatchingRequest {
@javax.annotation.Nullable
private Integer pageSize = 0;

public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
@SerializedName(SERIALIZED_NAME_NO_CACHE)
@javax.annotation.Nullable
private Boolean noCache = false;

public AnalysisFunctionMatchingRequest() {
}

Expand Down Expand Up @@ -183,6 +188,25 @@ public void setPageSize(@javax.annotation.Nullable Integer pageSize) {
this.pageSize = pageSize;
}


public AnalysisFunctionMatchingRequest noCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
return this;
}

/**
* If set to true, forces the system to bypass any cached results and perform a fresh computation
* @return noCache
*/
@javax.annotation.Nullable
public Boolean getNoCache() {
return noCache;
}

public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -242,7 +266,8 @@ public boolean equals(Object o) {
Objects.equals(this.filters, analysisFunctionMatchingRequest.filters) &&
Objects.equals(this.resultsPerFunction, analysisFunctionMatchingRequest.resultsPerFunction) &&
Objects.equals(this.page, analysisFunctionMatchingRequest.page) &&
Objects.equals(this.pageSize, analysisFunctionMatchingRequest.pageSize)&&
Objects.equals(this.pageSize, analysisFunctionMatchingRequest.pageSize) &&
Objects.equals(this.noCache, analysisFunctionMatchingRequest.noCache)&&
Objects.equals(this.additionalProperties, analysisFunctionMatchingRequest.additionalProperties);
}

Expand All @@ -252,7 +277,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(minSimilarity, filters, resultsPerFunction, page, pageSize, additionalProperties);
return Objects.hash(minSimilarity, filters, resultsPerFunction, page, pageSize, noCache, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -271,6 +296,7 @@ public String toString() {
sb.append(" resultsPerFunction: ").append(toIndentedString(resultsPerFunction)).append("\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -293,7 +319,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("min_similarity", "filters", "results_per_function", "page", "page_size"));
openapiFields = new HashSet<String>(Arrays.asList("min_similarity", "filters", "results_per_function", "page", "page_size", "no_cache"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(0);
Expand Down
32 changes: 29 additions & 3 deletions src/main/java/ai/reveng/model/AutoUnstripRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public class AutoUnstripRequest {
@javax.annotation.Nullable
private Integer minGroupSize = 10;

public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
@SerializedName(SERIALIZED_NAME_NO_CACHE)
@javax.annotation.Nullable
private Boolean noCache = false;

public AutoUnstripRequest() {
}

Expand Down Expand Up @@ -156,6 +161,25 @@ public void setMinGroupSize(@javax.annotation.Nullable Integer minGroupSize) {
this.minGroupSize = minGroupSize;
}


public AutoUnstripRequest noCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
return this;
}

/**
* If set to true, forces the system to bypass any cached results and perform a fresh computation
* @return noCache
*/
@javax.annotation.Nullable
public Boolean getNoCache() {
return noCache;
}

public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -214,13 +238,14 @@ public boolean equals(Object o) {
return Objects.equals(this.minSimilarity, autoUnstripRequest.minSimilarity) &&
Objects.equals(this.apply, autoUnstripRequest.apply) &&
Objects.equals(this.confidenceThreshold, autoUnstripRequest.confidenceThreshold) &&
Objects.equals(this.minGroupSize, autoUnstripRequest.minGroupSize)&&
Objects.equals(this.minGroupSize, autoUnstripRequest.minGroupSize) &&
Objects.equals(this.noCache, autoUnstripRequest.noCache)&&
Objects.equals(this.additionalProperties, autoUnstripRequest.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(minSimilarity, apply, confidenceThreshold, minGroupSize, additionalProperties);
return Objects.hash(minSimilarity, apply, confidenceThreshold, minGroupSize, noCache, additionalProperties);
}

@Override
Expand All @@ -231,6 +256,7 @@ public String toString() {
sb.append(" apply: ").append(toIndentedString(apply)).append("\n");
sb.append(" confidenceThreshold: ").append(toIndentedString(confidenceThreshold)).append("\n");
sb.append(" minGroupSize: ").append(toIndentedString(minGroupSize)).append("\n");
sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -253,7 +279,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("min_similarity", "apply", "confidence_threshold", "min_group_size"));
openapiFields = new HashSet<String>(Arrays.asList("min_similarity", "apply", "confidence_threshold", "min_group_size", "no_cache"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(0);
Expand Down
32 changes: 29 additions & 3 deletions src/main/java/ai/reveng/model/FunctionMatchingRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public class FunctionMatchingRequest {
@javax.annotation.Nullable
private Integer pageSize = 0;

public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
@SerializedName(SERIALIZED_NAME_NO_CACHE)
@javax.annotation.Nullable
private Boolean noCache = false;

public FunctionMatchingRequest() {
}

Expand Down Expand Up @@ -241,6 +246,25 @@ public void setPageSize(@javax.annotation.Nullable Integer pageSize) {
this.pageSize = pageSize;
}


public FunctionMatchingRequest noCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
return this;
}

/**
* If set to true, forces the system to bypass any cached results and perform a fresh computation
* @return noCache
*/
@javax.annotation.Nullable
public Boolean getNoCache() {
return noCache;
}

public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -302,7 +326,8 @@ public boolean equals(Object o) {
Objects.equals(this.filters, functionMatchingRequest.filters) &&
Objects.equals(this.resultsPerFunction, functionMatchingRequest.resultsPerFunction) &&
Objects.equals(this.page, functionMatchingRequest.page) &&
Objects.equals(this.pageSize, functionMatchingRequest.pageSize)&&
Objects.equals(this.pageSize, functionMatchingRequest.pageSize) &&
Objects.equals(this.noCache, functionMatchingRequest.noCache)&&
Objects.equals(this.additionalProperties, functionMatchingRequest.additionalProperties);
}

Expand All @@ -312,7 +337,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(modelId, functionIds, minSimilarity, filters, resultsPerFunction, page, pageSize, additionalProperties);
return Objects.hash(modelId, functionIds, minSimilarity, filters, resultsPerFunction, page, pageSize, noCache, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -333,6 +358,7 @@ public String toString() {
sb.append(" resultsPerFunction: ").append(toIndentedString(resultsPerFunction)).append("\n");
sb.append(" page: ").append(toIndentedString(page)).append("\n");
sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n");
sb.append(" noCache: ").append(toIndentedString(noCache)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -355,7 +381,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("model_id", "function_ids", "min_similarity", "filters", "results_per_function", "page", "page_size"));
openapiFields = new HashSet<String>(Arrays.asList("model_id", "function_ids", "min_similarity", "filters", "results_per_function", "page", "page_size", "no_cache"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("model_id", "function_ids"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,12 @@ public void pageSizeTest() {
// TODO: test pageSize
}

/**
* Test the property 'noCache'
*/
@Test
public void noCacheTest() {
// TODO: test noCache
}

}
8 changes: 8 additions & 0 deletions src/test/java/ai/reveng/model/AutoUnstripRequestTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,12 @@ public void minGroupSizeTest() {
// TODO: test minGroupSize
}

/**
* Test the property 'noCache'
*/
@Test
public void noCacheTest() {
// TODO: test noCache
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,12 @@ public void pageSizeTest() {
// TODO: test pageSize
}

/**
* Test the property 'noCache'
*/
@Test
public void noCacheTest() {
// TODO: test noCache
}

}