id stringlengths 24 24 | repo stringlengths 7 59 | path stringlengths 11 234 | func_name stringlengths 3 140 | url stringlengths 102 339 | split stringclasses 3
values | language stringclasses 1
value | docstring stringlengths 1 34k | code stringlengths 63 466k | text stringlengths 101 467k | token_count int32 22 125k | doc_chars int32 1 34k | code_chars int32 63 466k | license_basis stringclasses 1
value | source stringclasses 1
value | added stringdate 2026-12-05 00:00:00 2026-12-05 00:00:00 | record_sha256 stringlengths 64 64 | license stringclasses 18
values | license_class stringclasses 4
values | license_source stringlengths 45 101 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5abc5d2e2f6eb60df488c91c | Harium/keel | src/main/java/com/harium/keel/modifier/hull/JarvisMarchModifier.java | JarvisMarchModifier.apply | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/modifier/hull/JarvisMarchModifier.java#L48-L90 | train | java | calculates the convex hull of the specified array of points.
<br>
the array of points has to be of dimensions [n][2], <br>
which means that a point can be obtained like this: <br>
<code> double[] point = array[i]; </code><br>
and coordinates like this: <br>
<code> x= array[i][0] and y= array[i][1] </code>
@param point... | public List<Point2D> apply(PointFeature feature) {
List<Point2D> points = feature.getPoints();
if (points.size() < 4) {
return points;
}
Point2D pointOnHull = points.get(getIndexOfLeftMostPoint(points)); // leftmost point in shape
List<Point2D> hull = new ArrayLis... | calculates the convex hull of the specified array of points.
<br>
the array of points has to be of dimensions [n][2], <br>
which means that a point can be obtained like this: <br>
<code> double[] point = array[i]; </code><br>
and coordinates like this: <br>
<code> x= array[i][0] and y= array[i][1] </code>
@param point... | 398 | 385 | 1,218 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | db5ca4a305d8dbc210a2846921eb361c520e3b1a1e02d50a89aa805ddd063748 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
5407dc792b0078214665251b | artikcloud/artikcloud-java | src/main/java/cloud/artik/mqtt/MqttSession.java | MqttSession.publish | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/mqtt/MqttSession.java#L116-L125 | train | java | @param qos Quality of Service (0, 1, or 2) used for publishing a message to ARTIK Cloud
@param payload the payload of the published message
@throws ArtikCloudMqttException | public void publish(int qos, String payload) throws ArtikCloudMqttException {
MqttMessage mqttMessage = new MqttMessage(payload.getBytes());
mqttMessage.setQos(qos);
// System.out.println("****** Thread: " + Thread.currentThread().getName()+ "; MqttSession publishing : "+ "topic: " + publishTopic... | @param qos Quality of Service (0, 1, or 2) used for publishing a message to ARTIK Cloud
@param payload the payload of the published message
@throws ArtikCloudMqttException
public void publish(int qos, String payload) throws ArtikCloudMqttException {
MqttMessage mqttMessage = new MqttMessage(payload.getBytes())... | 172 | 171 | 591 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f202407d805e7b883d369a9cc70948a2e450716c181e1a9baa332a459941260a | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
14f270e541dbdfbc5c462819 | Harium/keel | src/main/java/com/harium/keel/effect/ContrastCorrection.java | ContrastCorrection.setFactor | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/effect/ContrastCorrection.java#L59-L83 | train | java | Set Contrast adjusting factor, [-127, 127].
@param factor Contrast factor. | public void setFactor(int factor) {
this.factor = factor = Math.max(-127, Math.min(127, factor));
if (factor > 1) {
baseFilter.setInRed(new IntRange(factor, 255 - factor));
baseFilter.setInGreen(new IntRange(factor, 255 - factor));
baseFilter.setInBlue(new IntR... | Set Contrast adjusting factor, [-127, 127].
@param factor Contrast factor.
public void setFactor(int factor) {
this.factor = factor = Math.max(-127, Math.min(127, factor));
if (factor > 1) {
baseFilter.setInRed(new IntRange(factor, 255 - factor));
baseFilter.setInGreen(ne... | 311 | 75 | 1,211 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 80bd8776b70836526e7e4c1e845c5918c23747d3921ae19bb3000b464313d132 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
8d07a571a6f9e0fcc3943112 | Harium/keel | src/main/java/com/harium/keel/effect/height/Sobel.java | Sobel.apply | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/effect/height/Sobel.java#L19-L47 | train | java | Expects a height mat as input
@param input - A grayscale height map
@return edges | @Override
public ImageSource apply(ImageSource input) {
final int[][] pixelMatrix = new int[3][3];
int w = input.getWidth();
int h = input.getHeight();
int[][] output = new int[h][w];
for (int j = 1; j < h - 1; j++) {
for (int i = 1; i < w - 1; i++) {
... | Expects a height mat as input
@param input - A grayscale height map
@return edges
@Override
public ImageSource apply(ImageSource input) {
final int[][] pixelMatrix = new int[3][3];
int w = input.getWidth();
int h = input.getHeight();
int[][] output = new int[h][w];
for (... | 329 | 82 | 1,069 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0b69af4ffc36108b9c272a4a721728af93444686d25a5c5889c19b2eedcb01c3 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
320e21f9fa56d1d96806da3f | skuzzle/jeve | jeve/src/main/java/de/skuzzle/jeve/providers/EventStackImpl.java | EventStackImpl.pushEvent | https://github.com/skuzzle/jeve/blob/42cc18947c9c8596c34410336e4e375e9fcd7c47/jeve/src/main/java/de/skuzzle/jeve/providers/EventStackImpl.java#L99-L103 | train | java | Pushes the event onto the event stack. This action must be performed
immediately before the event is being dispatched. Additionally, after the
event has been dispatched, it has to be {@link #popEvent(Event) popped}
off the stack again.
@param <L> Type of the listener.
@param event The event which will be dispatched.
@... | public <L extends Listener> void pushEvent(Event<?, L> event) {
synchronized (this.stack) {
this.stack.push(event);
}
} | Pushes the event onto the event stack. This action must be performed
immediately before the event is being dispatched. Additionally, after the
event has been dispatched, it has to be {@link #popEvent(Event) popped}
off the stack again.
@param <L> Type of the listener.
@param event The event which will be dispatched.
@... | 110 | 340 | 151 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | dd27a0aab25ce1c540d80386393c1c599b6c68c7a78a4d298af3677dbf3e9f05 | MIT | permissive | https://github.com/skuzzle/jeve/blob/master/LICENSE.md |
eec3b29eff668a94661ec98c | skuzzle/jeve | jeve/src/main/java/de/skuzzle/jeve/providers/EventStackImpl.java | EventStackImpl.popEvent | https://github.com/skuzzle/jeve/blob/42cc18947c9c8596c34410336e4e375e9fcd7c47/jeve/src/main/java/de/skuzzle/jeve/providers/EventStackImpl.java#L114-L123 | train | java | Pops the top event off the current event stack. This action has to be
performed immediately after the event has been dispatched to all
listeners.
@param <L> Type of the listener.
@param expected The Event which is expected at the top of the stack.
@see #pushEvent(Event) | public <L extends Listener> void popEvent(Event<?, L> expected) {
synchronized (this.stack) {
final Event<?, ?> actual = this.stack.pop();
if (actual != expected) {
throw new IllegalStateException(String.format(
"Unbalanced pop: expected '%s' but e... | Pops the top event off the current event stack. This action has to be
performed immediately after the event has been dispatched to all
listeners.
@param <L> Type of the listener.
@param expected The Event which is expected at the top of the stack.
@see #pushEvent(Event)
public <L extends Listener> void popEvent(Event... | 139 | 271 | 430 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a085abd8ee89b913f34c11645df5252a8985c77af70182c8ac70f66aef65c54f | MIT | permissive | https://github.com/skuzzle/jeve/blob/master/LICENSE.md |
876f01cf0c2cd16fd3f38b94 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/ExportApi.java | ExportApi.exportRequest | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/ExportApi.java#L126-L129 | train | java | Create Export Request
Export normalized messages. The following input combinations are supported:<br/><table><tr><th>Combination</th><th>Parameters</th><th>Description</th></tr><tr><td>Get by users</td><td>uids</td><td>Searc... | public ExportRequestResponse exportRequest(ExportRequestInfo exportRequestInfo) throws ApiException {
ApiResponse<ExportRequestResponse> resp = exportRequestWithHttpInfo(exportRequestInfo);
return resp.getData();
} | Create Export Request
Export normalized messages. The following input combinations are supported:<br/><table><tr><th>Combination</th><th>Parameters</th><th>Description</th></tr><tr><td>Get by users</td><td>uids</td><td>Searc... | 534 | 1,568 | 234 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9e21d4c43a660a8f4cdcbb1ab15916a8cfb6bdc0ade20a54b87d22f7149bce8f | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
c27fd4ca8dc76a1f39b9f58e | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/ExportApi.java | ExportApi.exportRequestWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/ExportApi.java#L138-L142 | train | java | Create Export Request
Export normalized messages. The following input combinations are supported:<br/><table><tr><th>Combination</th><th>Parameters</th><th>Description</th></tr><tr><td>Get by users</td><td>uids</td><td>Searc... | public ApiResponse<ExportRequestResponse> exportRequestWithHttpInfo(ExportRequestInfo exportRequestInfo) throws ApiException {
com.squareup.okhttp.Call call = exportRequestValidateBeforeCall(exportRequestInfo, null, null);
Type localVarReturnType = new TypeToken<ExportRequestResponse>(){}.getType();
... | Create Export Request
Export normalized messages. The following input combinations are supported:<br/><table><tr><th>Combination</th><th>Parameters</th><th>Description</th></tr><tr><td>Get by users</td><td>uids</td><td>Searc... | 568 | 1,587 | 382 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d60fdbbf6f98868c551eea9e313b7f79ed5a330738c9e7cf515629814c8f371d | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
b40346c92ad41458aa353f95 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/ExportApi.java | ExportApi.exportRequestAsync | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/ExportApi.java#L152-L177 | train | java | Create Export Request (asynchronously)
Export normalized messages. The following input combinations are supported:<br/><table><tr><th>Combination</th><th>Parameters</th><th>Description</th></tr><tr><td>Get by users</td><td>uids</td&g... | public com.squareup.okhttp.Call exportRequestAsync(ExportRequestInfo exportRequestInfo, final ApiCallback<ExportRequestResponse> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
... | Create Export Request (asynchronously)
Export normalized messages. The following input combinations are supported:<br/><table><tr><th>Combination</th><th>Parameters</th><th>Description</th></tr><tr><td>Get by users</td><td>uids</td&g... | 725 | 1,642 | 1,313 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 28fcad53823ddff8e6ca28c686738a1503b1a8c4a35566f1925aa9155c29899c | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
c845fe1e1d177bd5f6fab7fb | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/ExportApi.java | ExportApi.getExportHistory | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/ExportApi.java#L247-L250 | train | java | Get Export History
Get the history of export requests.
@param trialId Filter by trialId. (optional)
@param count Pagination count. (optional)
@param offset Pagination offset. (optional)
@return ExportHistoryResponse
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body | public ExportHistoryResponse getExportHistory(String trialId, Integer count, Integer offset) throws ApiException {
ApiResponse<ExportHistoryResponse> resp = getExportHistoryWithHttpInfo(trialId, count, offset);
return resp.getData();
} | Get Export History
Get the history of export requests.
@param trialId Filter by trialId. (optional)
@param count Pagination count. (optional)
@param offset Pagination offset. (optional)
@return ExportHistoryResponse
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
... | 115 | 319 | 255 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 126aae547bbe88b119aff43bf935ea01e0bbdbdbdefe2f0f069bea512ab8a9c4 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
6659ce11aa04c9367254e752 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/ExportApi.java | ExportApi.getExportHistoryWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/ExportApi.java#L261-L265 | train | java | Get Export History
Get the history of export requests.
@param trialId Filter by trialId. (optional)
@param count Pagination count. (optional)
@param offset Pagination offset. (optional)
@return ApiResponse<ExportHistoryResponse>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize... | public ApiResponse<ExportHistoryResponse> getExportHistoryWithHttpInfo(String trialId, Integer count, Integer offset) throws ApiException {
com.squareup.okhttp.Call call = getExportHistoryValidateBeforeCall(trialId, count, offset, null, null);
Type localVarReturnType = new TypeToken<ExportHistoryRespons... | Get Export History
Get the history of export requests.
@param trialId Filter by trialId. (optional)
@param count Pagination count. (optional)
@param offset Pagination offset. (optional)
@return ApiResponse<ExportHistoryResponse>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize... | 149 | 338 | 403 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b5829139115160211228e33c844cbdfe0115fa3987604144fddabd628ef9aeff | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
faa38e5ac10e7aa0bd1100bd | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/ExportApi.java | ExportApi.getExportResult | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/ExportApi.java#L370-L373 | train | java | Get Export Result
Retrieve result of the export query in tgz format. The tar file may contain one or more files with the results.
@param exportId Export ID of the export query. (required)
@return String
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body | public String getExportResult(String exportId) throws ApiException {
ApiResponse<String> resp = getExportResultWithHttpInfo(exportId);
return resp.getData();
} | Get Export Result
Retrieve result of the export query in tgz format. The tar file may contain one or more files with the results.
@param exportId Export ID of the export query. (required)
@return String
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public Strin... | 101 | 306 | 179 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b680a88fd76b7c3bb70ddc755d9720fcd29d212818de87e96427d461f2176f9a | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
4bc01caf6869152bea9ac793 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/ExportApi.java | ExportApi.getExportResultWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/ExportApi.java#L382-L386 | train | java | Get Export Result
Retrieve result of the export query in tgz format. The tar file may contain one or more files with the results.
@param exportId Export ID of the export query. (required)
@return ApiResponse<String>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response... | public ApiResponse<String> getExportResultWithHttpInfo(String exportId) throws ApiException {
com.squareup.okhttp.Call call = getExportResultValidateBeforeCall(exportId, null, null);
Type localVarReturnType = new TypeToken<String>(){}.getType();
return apiClient.execute(call, localVarReturnType)... | Get Export Result
Retrieve result of the export query in tgz format. The tar file may contain one or more files with the results.
@param exportId Export ID of the export query. (required)
@return ApiResponse<String>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response... | 134 | 325 | 327 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1bd6c54583c38fb0b2d764ec60d8025d3cd5b11b0148cc7276408bc2d4d8c530 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
15a65fa1ff5dc80329ab0d05 | skuzzle/jeve | jeve/src/main/java/de/skuzzle/jeve/stores/AbstractSynchronizedListenerSource.java | AbstractSynchronizedListenerSource.modify | https://github.com/skuzzle/jeve/blob/42cc18947c9c8596c34410336e4e375e9fcd7c47/jeve/src/main/java/de/skuzzle/jeve/stores/AbstractSynchronizedListenerSource.java#L48-L55 | train | java | Executes the given transaction within the context of a write lock.
@param t The transaction to execute. | protected void modify(Transaction t) {
try {
this.lock.writeLock().lock();
t.perform();
} finally {
this.lock.writeLock().unlock();
}
} | Executes the given transaction within the context of a write lock.
@param t The transaction to execute.
protected void modify(Transaction t) {
try {
this.lock.writeLock().lock();
t.perform();
} finally {
this.lock.writeLock().unlock();
}
} | 58 | 104 | 199 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a5976d8943be1fa4a1ea6f5269a616f0a5927f2a15a4038a896455890e892fd4 | MIT | permissive | https://github.com/skuzzle/jeve/blob/master/LICENSE.md |
a323956323662fb79c98b38f | skuzzle/jeve | jeve/src/main/java/de/skuzzle/jeve/stores/AbstractSynchronizedListenerSource.java | AbstractSynchronizedListenerSource.read | https://github.com/skuzzle/jeve/blob/42cc18947c9c8596c34410336e4e375e9fcd7c47/jeve/src/main/java/de/skuzzle/jeve/stores/AbstractSynchronizedListenerSource.java#L64-L71 | train | java | Executes the given supplier within the context of a read lock.
@param <E> The result type.
@param sup The supplier.
@return The result of {@link Supplier#get()}. | protected <E> E read(Supplier<E> sup) {
try {
this.lock.readLock().lock();
return sup.get();
} finally {
this.lock.readLock().unlock();
}
} | Executes the given supplier within the context of a read lock.
@param <E> The result type.
@param sup The supplier.
@return The result of {@link Supplier#get()}.
protected <E> E read(Supplier<E> sup) {
try {
this.lock.readLock().lock();
return sup.get();
} finally {
... | 81 | 162 | 203 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4bfc67898d64af1cce30e0f0ac14ab6a5878d2b4a7696b8645ebd0257db22570 | MIT | permissive | https://github.com/skuzzle/jeve/blob/master/LICENSE.md |
c1f1974a4775bed1eea18024 | vnesek/nmote-iim4j | src/main/java/com/nmote/iim4j/stream/SubIIMInputStream.java | SubIIMInputStream.setOffsetAndLength | https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/stream/SubIIMInputStream.java#L64-L72 | train | java | This should be called from a subclass constructor, if offset or length
are unknown at a time when SubIIMInputStream constructor is called. This
method shouldn't be called more than once.
@param offset
byte offset
@param length
byte length
@throws IOException
if underlying stream can't be read | protected void setOffsetAndLength(long offset, int length) throws IOException {
this.offset = offset;
this.length = length;
this.position = 0;
if (subStream.position() != offset) {
subStream.seek(offset);
}
} | This should be called from a subclass constructor, if offset or length
are unknown at a time when SubIIMInputStream constructor is called. This
method shouldn't be called more than once.
@param offset
byte offset
@param length
byte length
@throws IOException
if underlying stream can't be read
protected void setOffset... | 119 | 294 | 231 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fa843b454c31fbc419b0e996269c0628663a90a582e5b0e44888885a8c6c4324 | BSD-3-Clause | permissive | https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt |
2ae1c40ac77ae7f836c5b8cb | Harium/keel | src/main/java/com/harium/keel/catalano/math/function/Bessel.java | Bessel.J0 | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Bessel.java#L66-L90 | train | java | Bessel function of order 0.
@param x Value.
@return J0 value. | public static double J0(double x) {
double ax;
if ((ax = Math.abs(x)) < 8.0) {
double y = x * x;
double ans1 = 57568490574.0 + y * (-13362590354.0 + y * (651619640.7
+ y * (-11214424.18 + y * (77392.33017 + y * (-184.9052456)))));
double an... | Bessel function of order 0.
@param x Value.
@return J0 value.
public static double J0(double x) {
double ax;
if ((ax = Math.abs(x)) < 8.0) {
double y = x * x;
double ans1 = 57568490574.0 + y * (-13362590354.0 + y * (651619640.7
+ y * (-11214424.18 + y... | 393 | 62 | 1,082 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 90c7360977b1af7eae4b935f6984bdf53e2756c3f31021f9a5611276cfea5882 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
d7eb7cf664686216164cfda3 | Harium/keel | src/main/java/com/harium/keel/catalano/math/function/Bessel.java | Bessel.J | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Bessel.java#L134-L183 | train | java | Bessel function of order n.
@param n Order.
@param x Value.
@return J value. | public static double J(int n, double x) {
int j, m;
double ax, bj, bjm, bjp, sum, tox, ans;
boolean jsum;
double ACC = 40.0;
double BIGNO = 1.0e+10;
double BIGNI = 1.0e-10;
if (n == 0) return J0(x);
if (n == 1) return J(x);
ax = Math... | Bessel function of order n.
@param n Order.
@param x Value.
@return J value.
public static double J(int n, double x) {
int j, m;
double ax, bj, bjm, bjp, sum, tox, ans;
boolean jsum;
double ACC = 40.0;
double BIGNO = 1.0e+10;
double BIGNI = 1.0e-10;
i... | 451 | 77 | 1,443 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2e2bf8593fe891f55b3ce9301f099505ee1f82bbdb9b2215ce063c1a58015c70 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
7824709a4ee8f782c54c5da6 | Harium/keel | src/main/java/com/harium/keel/catalano/math/function/Bessel.java | Bessel.Y0 | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Bessel.java#L191-L214 | train | java | Bessel function of the second kind, of order 0.
@param x Value.
@return Y0 value. | public static double Y0(double x) {
if (x < 8.0) {
double y = x * x;
double ans1 = -2957821389.0 + y * (7062834065.0 + y * (-512359803.6
+ y * (10879881.29 + y * (-86327.92757 + y * 228.4622733))));
double ans2 = 40076544269.0 + y * (745249964.8 + y... | Bessel function of the second kind, of order 0.
@param x Value.
@return Y0 value.
public static double Y0(double x) {
if (x < 8.0) {
double y = x * x;
double ans1 = -2957821389.0 + y * (7062834065.0 + y * (-512359803.6
+ y * (10879881.29 + y * (-86327.92757 + ... | 407 | 82 | 1,078 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 553ebaa12cc1179d4377232d0c14da593bfb0c7a4e3171d8fab6b5c84537ea57 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
6dc70aab0ddeff81187eebe8 | Harium/keel | src/main/java/com/harium/keel/catalano/math/function/Bessel.java | Bessel.Y | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Bessel.java#L222-L244 | train | java | Bessel function of the second kind, of order 1.
@param x Value.
@return Y value. | public static double Y(double x) {
if (x < 8.0) {
double y = x * x;
double ans1 = x * (-0.4900604943e13 + y * (0.1275274390e13
+ y * (-0.5153438139e11 + y * (0.7349264551e9
+ y * (-0.4237922726e7 + y * 0.8511937935e4)))));
double ... | Bessel function of the second kind, of order 1.
@param x Value.
@return Y value.
public static double Y(double x) {
if (x < 8.0) {
double y = x * x;
double ans1 = x * (-0.4900604943e13 + y * (0.1275274390e13
+ y * (-0.5153438139e11 + y * (0.7349264551e9
... | 447 | 81 | 1,172 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a59d5166d75eb1ceb8af1ef9b619b8f961b1a8c5597bb5fda0ca1b3d09ecf2d5 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
bb11b2b88169427df71be31b | Harium/keel | src/main/java/com/harium/keel/catalano/math/function/Bessel.java | Bessel.Y | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Bessel.java#L253-L268 | train | java | Bessel function of the second kind, of order n.
@param n Order.
@param x Value.
@return Y value. | public static double Y(int n, double x) {
double by, bym, byp, tox;
if (n == 0) return Y0(x);
if (n == 1) return Y(x);
tox = 2.0 / x;
by = Y(x);
bym = Y0(x);
for (int j = 1; j < n; j++) {
byp = j * tox * by - bym;
bym = by;
... | Bessel function of the second kind, of order n.
@param n Order.
@param x Value.
@return Y value.
public static double Y(int n, double x) {
double by, bym, byp, tox;
if (n == 0) return Y0(x);
if (n == 1) return Y(x);
tox = 2.0 / x;
by = Y(x);
bym = Y0(x);
... | 145 | 97 | 377 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 99c18894d3aaa1337a1ed75e6442cf6e73c199f7befbd82c1e1d63c3faea3bad | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
6c373c90b08dea55142052f5 | Harium/keel | src/main/java/com/harium/keel/catalano/math/function/Bessel.java | Bessel.I0 | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Bessel.java#L276-L294 | train | java | Bessel function of the first kind, of order 0.
@param x Value.
@return I0 value. | public static double I0(double x) {
double ans;
double ax = Math.abs(x);
if (ax < 3.75) {
double y = x / 3.75;
y = y * y;
ans = 1.0 + y * (3.5156229 + y * (3.0899424 + y * (1.2067492
+ y * (0.2659732 + y * (0.360768e-1 + y * 0.4581... | Bessel function of the first kind, of order 0.
@param x Value.
@return I0 value.
public static double I0(double x) {
double ans;
double ax = Math.abs(x);
if (ax < 3.75) {
double y = x / 3.75;
y = y * y;
ans = 1.0 + y * (3.5156229 + y * (3.0899424 + y... | 284 | 81 | 718 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b11118ca2a2251fecce58e349730b48c4e888f74756abef149cb59f3fe99a42e | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
06a6332c15033a8669935f64 | Harium/keel | src/main/java/com/harium/keel/catalano/math/function/Bessel.java | Bessel.I | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Bessel.java#L328-L364 | train | java | Bessel function of the first kind, of order n.
@param n Order.
@param x Value.
@return I value. | public static double I(int n, double x) {
if (n < 0)
throw new IllegalArgumentException("the variable n out of range.");
else if (n == 0)
return I0(x);
else if (n == 1)
return I(x);
if (x == 0.0)
return 0.0;
double ACC ... | Bessel function of the first kind, of order n.
@param n Order.
@param x Value.
@return I value.
public static double I(int n, double x) {
if (n < 0)
throw new IllegalArgumentException("the variable n out of range.");
else if (n == 0)
return I0(x);
else if (n == 1)
... | 313 | 96 | 969 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 11a506907d9b96c1bb3bbd2d843f32972d299909133c5cba7bb1ad81bf3ea01f | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
7eba26589db41a0b02d3a827 | Harium/keel | src/main/java/com/harium/keel/catalano/math/decomposition/CholeskyDecomposition.java | CholeskyDecomposition.solve | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/decomposition/CholeskyDecomposition.java#L126-L160 | train | java | Solve A*X = B
@param B A Matrix with as many rows as A and any number of columns.
@return X so that L*L'*X = B
@throws IllegalArgumentException Matrix row dimensions must agree.
@throws RuntimeException Matrix is not symmetric positive definite. | public double[][] solve(double[][] B) {
if (B.length != n) {
throw new IllegalArgumentException("Matrix row dimensions must agree.");
}
if (!isspd) {
throw new RuntimeException("Matrix is not symmetric positive definite.");
}
// Copy right hand side.
... | Solve A*X = B
@param B A Matrix with as many rows as A and any number of columns.
@return X so that L*L'*X = B
@throws IllegalArgumentException Matrix row dimensions must agree.
@throws RuntimeException Matrix is not symmetric positive definite.
public double[][] solve(double[][] B) {
if (B.length !=... | 336 | 254 | 1,009 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 764f6f928a5960382041ef087107dbc73650d5e1faa1bfc29264ac211bfcc3af | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
336081fe024b1d322a2c62e5 | Harium/keel | src/main/java/com/harium/keel/effect/normal/SobelNormalMap.java | SobelNormalMap.apply | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/effect/normal/SobelNormalMap.java#L19-L57 | train | java | Sobel method to generate bump map from a height map
@param input - A height map
@return bump map | @Override
public ImageSource apply(ImageSource input) {
int w = input.getWidth();
int h = input.getHeight();
MatrixSource output = new MatrixSource(input);
Vector3 n = new Vector3(0, 0, 1);
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++) {
... | Sobel method to generate bump map from a height map
@param input - A height map
@return bump map
@Override
public ImageSource apply(ImageSource input) {
int w = input.getWidth();
int h = input.getHeight();
MatrixSource output = new MatrixSource(input);
Vector3 n = new Vector3(0, ... | 386 | 97 | 1,283 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 653252931cdb9233e3cd4310e97f9e5e669079b7f23a666d7a6e86fad329dad0 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
9ce408f11fa151a2df30c533 | Harium/keel | src/main/java/com/harium/keel/catalano/core/IntRange.java | IntRange.IsOverlapping | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/IntRange.java#L115-L118 | train | java | Check if the specified range overlaps with the range.
@param range IntRange.
@return True if the range overlaps with the range, otherwise returns false. | public boolean IsOverlapping(IntRange range) {
return ((isInside(range.min)) || (isInside(range.max)) ||
(range.isInside(min)) || (range.isInside(max)));
} | Check if the specified range overlaps with the range.
@param range IntRange.
@return True if the range overlaps with the range, otherwise returns false.
public boolean IsOverlapping(IntRange range) {
return ((isInside(range.min)) || (isInside(range.max)) ||
(range.isInside(min)) || (range.isIn... | 71 | 153 | 183 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c7a96ff9948fb8194c9d0d02f3fa32fb327725449e2945810660ec2f34348327 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
5c0444ac96e0369617a121d1 | hyleung/ratpack-zipkin | src/main/java/ratpack/zipkin/internal/RatpackCurrentTraceContext.java | RatpackCurrentTraceContext.wrap | https://github.com/hyleung/ratpack-zipkin/blob/3c9e4b05e3f5fab034c1f7832fffce8a55c311d3/src/main/java/ratpack/zipkin/internal/RatpackCurrentTraceContext.java#L64-L67 | train | java | Used by TracedParallelBatch where its used to wrap a TraceContext and puts it in the
registry for the forked execution. This is marked deprecated as we prefer not to
expose details of the RatpackCurrentTraceContext implementation.
@param traceContext a trace context.
@return a holder for the trace context, which can ... | @Deprecated
public static TraceContextHolder wrap(TraceContext traceContext) {
return (traceContext != null) ? new TraceContextHolder(traceContext) : TraceContextHolder.EMPTY;
} | Used by TracedParallelBatch where its used to wrap a TraceContext and puts it in the
registry for the forked execution. This is marked deprecated as we prefer not to
expose details of the RatpackCurrentTraceContext implementation.
@param traceContext a trace context.
@return a holder for the trace context, which can ... | 111 | 345 | 185 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9b08c9c5c4a76a9541f9ff4688ae56346c30b0e31969f5156d99ee8a6f201b06 | Apache-2.0 | permissive | https://github.com/hyleung/ratpack-zipkin/blob/master/LICENSE |
cf9f5d2468a5fbf7bb868eb2 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Sinc | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L68-L70 | train | java | Sinc function.
@param x Value.
@return Sinc of the value. | public static double Sinc(double x) {
return Math.sin(Math.PI * x) / (Math.PI * x);
} | Sinc function.
@param x Value.
@return Sinc of the value.
public static double Sinc(double x) {
return Math.sin(Math.PI * x) / (Math.PI * x);
} | 42 | 58 | 99 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8acc06ff05dbd3b954b5e611d22295d1076842eccb6a33bedc81cf30cd1bf627 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
4cb2b3fd14e428a445a27022 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Angle | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L85-L95 | train | java | Gets the angle formed by the vector [x,y].
@param x X axis coordinate.
@param y Y axis coordinate.
@return Angle formed by the vector. | public static float Angle(float x, float y) {
if (y >= 0) {
if (x >= 0)
return (float) Math.atan(y / x);
return (float) (Math.PI - Math.atan(-y / x));
} else {
if (x >= 0)
return (float) (2 * Math.PI - Math.atan(-y / x));
... | Gets the angle formed by the vector [x,y].
@param x X axis coordinate.
@param y Y axis coordinate.
@return Angle formed by the vector.
public static float Angle(float x, float y) {
if (y >= 0) {
if (x >= 0)
return (float) Math.atan(y / x);
return (float) (Math.PI - ... | 134 | 135 | 388 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2dcac8d1bf5879ebae9b63c23025657d35f78c307acfceac6a8a3809a315d414 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
41773a9f8c41af8be715b679 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Clamp | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L123-L125 | train | java | Clamp values.
@param x Value.
@param range Range.
@return Value. | public static double Clamp(double x, DoubleRange range) {
return Clamp(x, range.getMin(), range.getMax());
} | Clamp values.
@param x Value.
@param range Range.
@return Value.
public static double Clamp(double x, DoubleRange range) {
return Clamp(x, range.getMin(), range.getMax());
} | 41 | 69 | 122 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f7c1a5acef89e71b57f99645d93a1aa43e7c23c9e15ccb1debe64b848a2da473 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
314d802970529665e8f2ccd9 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Clamp | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L134-L136 | train | java | Clamp values.
@param x Value.
@param range Range.
@return Value. | public static int Clamp(int x, IntRange range) {
return Clamp(x, range.getMin(), range.getMax());
} | Clamp values.
@param x Value.
@param range Range.
@return Value.
public static int Clamp(int x, IntRange range) {
return Clamp(x, range.getMin(), range.getMax());
} | 41 | 69 | 113 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 47b2a8018960742b705467bc7b3521335359ad86cd70030735a2a67293aa6b1e | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
c976b0c430bc1b73b6464543 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Clamp | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L145-L147 | train | java | Clamp values.
@param x Value.
@param range Range.
@return Value. | public static float Clamp(float x, FloatRange range) {
return Clamp(x, range.getMin(), range.getMax());
} | Clamp values.
@param x Value.
@param range Range.
@return Value.
public static float Clamp(float x, FloatRange range) {
return Clamp(x, range.getMin(), range.getMax());
} | 41 | 69 | 119 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c0129067195555091ac816a5f5c6eac74d3f15e38c3d8f62b88f61f2c9b0ae0b | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
80bdaf6e5211871934c3d8b5 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Clamp | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L157-L163 | train | java | Clamp values.
@param x Value.
@param min Minimum value.
@param max Maximum value.
@return Value. | public static double Clamp(double x, double min, double max) {
if (x < min)
return min;
if (x > max)
return max;
return x;
} | Clamp values.
@param x Value.
@param min Minimum value.
@param max Maximum value.
@return Value.
public static double Clamp(double x, double min, double max) {
if (x < min)
return min;
if (x > max)
return max;
return x;
} | 64 | 99 | 182 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1ae9c070ae2c78e88f789ad75241f5a9d7fe3aa471c6fb1ee0af95a7679dbbf3 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
3131bb0a81f5f232cf24c572 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Mod | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L349-L353 | train | java | Gets the proper modulus operation.
@param x Integer.
@param m Modulo.
@return Modulus. | public static int Mod(int x, int m) {
if (m < 0) m = -m;
int r = x % m;
return r < 0 ? r + m : r;
} | Gets the proper modulus operation.
@param x Integer.
@param m Modulo.
@return Modulus.
public static int Mod(int x, int m) {
if (m < 0) m = -m;
int r = x % m;
return r < 0 ? r + m : r;
} | 66 | 87 | 131 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0035d2e7cb69e7cac8679f66374ff80eac0f7bc6bfcbac59888cf08ee23abd73 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
eafb4480c8a1a74fe05f69e1 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.NextPowerOf2 | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L361-L369 | train | java | Returns the next power of 2 after the input value x.
@param x Input value x.
@return Returns the next power of 2 after the input value x. | public static int NextPowerOf2(int x) {
--x;
x |= x >> 1;
x |= x >> 2;
x |= x >> 4;
x |= x >> 8;
x |= x >> 16;
return ++x;
} | Returns the next power of 2 after the input value x.
@param x Input value x.
@return Returns the next power of 2 after the input value x.
public static int NextPowerOf2(int x) {
--x;
x |= x >> 1;
x |= x >> 2;
x |= x >> 4;
x |= x >> 8;
x |= x >> 16;
return... | 95 | 138 | 192 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3a8655a3be81d4efc7108483d22e262d77f278ced200f50863581e0d3f530460 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
7f3f3518ab254f609dbadc03 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Scale | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L409-L412 | train | java | Converts the value x (which is measured in the scale 'from') to another value measured in the scale 'to'.
@param from Scale from.
@param to Scale to.
@param x Value.
@return Result. | public static int Scale(IntRange from, IntRange to, int x) {
if (from.length() == 0) return 0;
return (int) ((to.length()) * (x - from.getMin()) / from.length() + to.getMin());
} | Converts the value x (which is measured in the scale 'from') to another value measured in the scale 'to'.
@param from Scale from.
@param to Scale to.
@param x Value.
@return Result.
public static int Scale(IntRange from, IntRange to, int x) {
if (from.length() == 0) return 0;
return (int) ((to.... | 100 | 187 | 201 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c53ec548aa5a1be20340a45968efaa2330cdde39e6a1f7afbf420bdd2d6699fa | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
afd10ade4d7ded6976160f23 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Scale | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L422-L425 | train | java | Converts the value x (which is measured in the scale 'from') to another value measured in the scale 'to'.
@param from Scale from.
@param to Scale to.
@param x Value.
@return Result. | public static double Scale(DoubleRange from, DoubleRange to, int x) {
if (from.length() == 0) return 0;
return ((to.length()) * (x - from.getMin()) / from.length() + to.getMin());
} | Converts the value x (which is measured in the scale 'from') to another value measured in the scale 'to'.
@param from Scale from.
@param to Scale to.
@param x Value.
@return Result.
public static double Scale(DoubleRange from, DoubleRange to, int x) {
if (from.length() == 0) return 0;
return ((... | 97 | 187 | 204 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 81fafb2ab40e079993c27e839ffd5a5dba9690bb1d0d2d3dc9dc90e7f595bcb7 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
ca8f1929efb23864038ffce7 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Scale | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L448-L451 | train | java | Converts the value x (which is measured in the scale 'from') to another value measured in the scale 'to'.
@param from Scale from.
@param to Scale to.
@param x Value.
@return Result. | public static float Scale(FloatRange from, FloatRange to, int x) {
if (from.length() == 0) return 0;
return (float) ((to.length()) * (x - from.getMin()) / from.length() + to.getMin());
} | Converts the value x (which is measured in the scale 'from') to another value measured in the scale 'to'.
@param from Scale from.
@param to Scale to.
@param x Value.
@return Result.
public static float Scale(FloatRange from, FloatRange to, int x) {
if (from.length() == 0) return 0;
return (floa... | 100 | 187 | 209 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c94f640f4dcfbe1ff7d0eabc88d06bc4a44973b78639a65ff55167f255a1eaef | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
4b44b42e0f85271babbbbbc2 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Scale | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L463-L466 | train | java | Converts the value x (which is measured in the scale 'from') to another value measured in the scale 'to'.
@param fromMin Scale min from.
@param fromMax Scale max from.
@param toMin Scale min to.
@param toMax Scale max to.
@param x Value.
@return Result. | public static double Scale(double fromMin, double fromMax, double toMin, double toMax, double x) {
if (fromMax - fromMin == 0) return 0;
return (toMax - toMin) * (x - fromMin) / (fromMax - fromMin) + toMin;
} | Converts the value x (which is measured in the scale 'from') to another value measured in the scale 'to'.
@param fromMin Scale min from.
@param fromMax Scale max from.
@param toMin Scale min to.
@param toMax Scale max to.
@param x Value.
@return Result.
public static double Scale(double fromMin, double from... | 133 | 264 | 231 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f4d20b6cebe5b3a1e7897892383600806028b55850a40310ef6f0ae74686d17e | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
070635f40531795c6fef8df2 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Sum | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L502-L508 | train | java | Sum of the elements.
@param data Data.
@return Sum(data). | public static float Sum(float[] data) {
float sum = 0;
for (int i = 0; i < data.length; i++) {
sum += data[i];
}
return sum;
} | Sum of the elements.
@param data Data.
@return Sum(data).
public static float Sum(float[] data) {
float sum = 0;
for (int i = 0; i < data.length; i++) {
sum += data[i];
}
return sum;
} | 60 | 58 | 180 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f3611b78b6c155203a4582fe2488425419280be7b53b6fdd5fafb98e77310793 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
ae6d5364b8e5763adb143214 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.TruncatedPower | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L528-L531 | train | java | Truncated power function.
@param value Value.
@param degree Degree.
@return Result. | public static double TruncatedPower(double value, double degree) {
double x = Math.pow(value, degree);
return (x > 0) ? x : 0.0;
} | Truncated power function.
@param value Value.
@param degree Degree.
@return Result.
public static double TruncatedPower(double value, double degree) {
double x = Math.pow(value, degree);
return (x > 0) ? x : 0.0;
} | 58 | 85 | 153 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 33146541833cbf6ff3db12bef1a0e596390b8fce8f9871e7126ce9e2b04d84d8 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
9545521b30fd18a4ac491149 | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Unique | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L539-L552 | train | java | Get unique values form the array.
@param values Array of values.
@return Unique values. | public static int[] Unique(int[] values) {
HashSet<Integer> lst = new HashSet<Integer>();
for (int i = 0; i < values.length; i++) {
lst.add(values[i]);
}
int[] v = new int[lst.size()];
Iterator<Integer> it = lst.iterator();
for (int i = 0; i < v.lengt... | Get unique values form the array.
@param values Array of values.
@return Unique values.
public static int[] Unique(int[] values) {
HashSet<Integer> lst = new HashSet<Integer>();
for (int i = 0; i < values.length; i++) {
lst.add(values[i]);
}
int[] v = new int[lst.siz... | 116 | 88 | 399 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6953eb4f81a221ce658c73ee15bf32d3c70658e5508b49920369a33bfa1a8b33 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
096a7dcc2d675053c12d046d | Harium/keel | src/main/java/com/harium/keel/catalano/math/Tools.java | Tools.Hypotenuse | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/Tools.java#L561-L575 | train | java | Hypotenuse calculus without overflow/underflow.
@param a First value.
@param b Second value.
@return The hypotenuse Sqrt(a^2 + b^2). | public static double Hypotenuse(double a, double b) {
double r = 0.0;
double absA = Math.abs(a);
double absB = Math.abs(b);
if (absA > absB) {
r = b / a;
r = absA * Math.sqrt(1 + r * r);
} else if (b != 0) {
r = a / b;
r ... | Hypotenuse calculus without overflow/underflow.
@param a First value.
@param b Second value.
@return The hypotenuse Sqrt(a^2 + b^2).
public static double Hypotenuse(double a, double b) {
double r = 0.0;
double absA = Math.abs(a);
double absB = Math.abs(b);
if (absA > absB) {
... | 149 | 133 | 389 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7781d09092c5511605a496e39e3b9c34be138a5793c16ed4364cacf626f5f6c2 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
26fdc8b09706ab40849d7130 | Harium/keel | src/main/java/com/harium/keel/effect/AlphaTrimmedMean.java | AlphaTrimmedMean.setT | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/effect/AlphaTrimmedMean.java#L60-L62 | train | java | Set trimmed value.
@param t Trimmed value. | public void setT(int t) {
this.t = Math.min((radius * 2 + 1) * (radius * 2 + 1) / 2, Math.max(0, t));
} | Set trimmed value.
@param t Trimmed value.
public void setT(int t) {
this.t = Math.min((radius * 2 + 1) * (radius * 2 + 1) / 2, Math.max(0, t));
} | 56 | 43 | 117 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8728ec6d9b599f8c778531be3d0216c974a4cc366e69c44c4d53ee0b55bb5e5c | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
55fc92500b9f584d32f04fc6 | Harium/keel | src/main/java/com/harium/keel/catalano/math/TaylorSeries.java | TaylorSeries.Sin | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/TaylorSeries.java#L47-L68 | train | java | compute Sin using Taylor Series.
@param x An angle, in radians.
@param nTerms Number of terms.
@return Result. | public static double Sin(double x, int nTerms) {
if (nTerms < 2) return x;
if (nTerms == 2) {
return x - (x * x * x) / 6D;
} else {
double mult = x * x * x;
double fact = 6;
double sign = 1;
int factS = 5;
double ... | compute Sin using Taylor Series.
@param x An angle, in radians.
@param nTerms Number of terms.
@return Result.
public static double Sin(double x, int nTerms) {
if (nTerms < 2) return x;
if (nTerms == 2) {
return x - (x * x * x) / 6D;
} else {
double mult = x... | 191 | 116 | 642 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1649fbd4b9de2b526d25b0b950d1818ff143c6196b68db7b86573307362011de | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
e7d2d5be746a417f6cbaa6af | Harium/keel | src/main/java/com/harium/keel/catalano/math/TaylorSeries.java | TaylorSeries.Sinh | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/TaylorSeries.java#L107-L126 | train | java | compute Sinh using Taylor Series.
@param x An angle, in radians.
@param nTerms Number of terms.
@return Result. | public static double Sinh(double x, int nTerms) {
if (nTerms < 2) return x;
if (nTerms == 2) {
return x + (x * x * x) / 6D;
} else {
double mult = x * x * x;
double fact = 6;
int factS = 5;
double result = x + mult / fact;
... | compute Sinh using Taylor Series.
@param x An angle, in radians.
@param nTerms Number of terms.
@return Result.
public static double Sinh(double x, int nTerms) {
if (nTerms < 2) return x;
if (nTerms == 2) {
return x + (x * x * x) / 6D;
} else {
double mult =... | 177 | 117 | 575 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2e30cd8de7955308badb9348e146c342eb9ba31d3836e6d588c2e7bc21c3fb07 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
5031c0b9c5b637c265a4fbc6 | Harium/keel | src/main/java/com/harium/keel/catalano/math/TaylorSeries.java | TaylorSeries.Cosh | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/TaylorSeries.java#L135-L154 | train | java | compute Cosh using Taylor Series.
@param x An angle, in radians.
@param nTerms Number of terms.
@return Result. | public static double Cosh(double x, int nTerms) {
if (nTerms < 2) return x;
if (nTerms == 2) {
return 1 + (x * x) / 2D;
} else {
double mult = x * x;
double fact = 2;
int factS = 4;
double result = 1 + mult / fact;
... | compute Cosh using Taylor Series.
@param x An angle, in radians.
@param nTerms Number of terms.
@return Result.
public static double Cosh(double x, int nTerms) {
if (nTerms < 2) return x;
if (nTerms == 2) {
return 1 + (x * x) / 2D;
} else {
double mult = x *... | 175 | 117 | 567 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a3896f1288336973b1d1061568d1bc596868d3c2b5c5eca8329a173c5cf3ae0a | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
d158a8f94a23f9ad122c562d | Harium/keel | src/main/java/com/harium/keel/catalano/math/TaylorSeries.java | TaylorSeries.Exp | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/TaylorSeries.java#L163-L180 | train | java | compute Exp using Taylor Series.
@param x An angle, in radians.
@param nTerms Number of terms.
@return Result. | public static double Exp(double x, int nTerms) {
if (nTerms < 2) return 1 + x;
if (nTerms == 2) {
return 1 + x + (x * x) / 2;
} else {
double mult = x * x;
double fact = 2;
double result = 1 + x + mult / fact;
for (int i = 3; ... | compute Exp using Taylor Series.
@param x An angle, in radians.
@param nTerms Number of terms.
@return Result.
public static double Exp(double x, int nTerms) {
if (nTerms < 2) return 1 + x;
if (nTerms == 2) {
return 1 + x + (x * x) / 2;
} else {
double mult ... | 154 | 116 | 498 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 839be2655b3bd4bb559c7ed9728169a78aa0df87fb66645964eb474f27c80d42 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
adb36353b523d913ba316766 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.deleteVdid | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L137-L140 | train | java | Delete a vdid from the devicetype whitelist.
Delete a vdid from the devicetype whitelist.
@param dtid Device Type ID. (required)
@param vdid Vendor Device ID. (required)
@return WhitelistEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body | public WhitelistEnvelope deleteVdid(String dtid, String vdid) throws ApiException {
ApiResponse<WhitelistEnvelope> resp = deleteVdidWithHttpInfo(dtid, vdid);
return resp.getData();
} | Delete a vdid from the devicetype whitelist.
Delete a vdid from the devicetype whitelist.
@param dtid Device Type ID. (required)
@param vdid Vendor Device ID. (required)
@return WhitelistEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public WhitelistEnv... | 115 | 299 | 202 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6d9e093bf9c23e3a71d1139b61c7e81afe593853bc0207136cff1abbd66d2f17 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
9f007c084c5b5b7468ad15f6 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.deleteVdidWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L150-L154 | train | java | Delete a vdid from the devicetype whitelist.
Delete a vdid from the devicetype whitelist.
@param dtid Device Type ID. (required)
@param vdid Vendor Device ID. (required)
@return ApiResponse<WhitelistEnvelope>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body | public ApiResponse<WhitelistEnvelope> deleteVdidWithHttpInfo(String dtid, String vdid) throws ApiException {
com.squareup.okhttp.Call call = deleteVdidValidateBeforeCall(dtid, vdid, null, null);
Type localVarReturnType = new TypeToken<WhitelistEnvelope>(){}.getType();
return apiClient.execute(ca... | Delete a vdid from the devicetype whitelist.
Delete a vdid from the devicetype whitelist.
@param dtid Device Type ID. (required)
@param vdid Vendor Device ID. (required)
@return ApiResponse<WhitelistEnvelope>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
... | 149 | 318 | 350 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ae254ad434fa87c154882a82a3e924707ecc3577f40c27f3521ac34750a2caca | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
ab82fff045ed54dff72cd17e | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.deleteWhitelistCertificate | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L265-L268 | train | java | Delete a whitelist certificate associated with a devicetype.
Delete a whitelist certificate associated with a devicetype.
@param dtid Device Type ID. (required)
@param cid Certificate ID. (required)
@return WhitelistEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the respo... | public WhitelistEnvelope deleteWhitelistCertificate(String dtid, String cid) throws ApiException {
ApiResponse<WhitelistEnvelope> resp = deleteWhitelistCertificateWithHttpInfo(dtid, cid);
return resp.getData();
} | Delete a whitelist certificate associated with a devicetype.
Delete a whitelist certificate associated with a devicetype.
@param dtid Device Type ID. (required)
@param cid Certificate ID. (required)
@return WhitelistEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the respo... | 113 | 328 | 232 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 96bd2f3f0f0bc34d570e0b8457588f1a3a8cce95e39a8acd43d20c38706df2d2 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
4edcf09d20f1bbd9de150ebb | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.deleteWhitelistCertificateWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L278-L282 | train | java | Delete a whitelist certificate associated with a devicetype.
Delete a whitelist certificate associated with a devicetype.
@param dtid Device Type ID. (required)
@param cid Certificate ID. (required)
@return ApiResponse<WhitelistEnvelope>
@throws ApiException If fail to call the API, e.g. server error or cannot de... | public ApiResponse<WhitelistEnvelope> deleteWhitelistCertificateWithHttpInfo(String dtid, String cid) throws ApiException {
com.squareup.okhttp.Call call = deleteWhitelistCertificateValidateBeforeCall(dtid, cid, null, null);
Type localVarReturnType = new TypeToken<WhitelistEnvelope>(){}.getType();
... | Delete a whitelist certificate associated with a devicetype.
Delete a whitelist certificate associated with a devicetype.
@param dtid Device Type ID. (required)
@param cid Certificate ID. (required)
@return ApiResponse<WhitelistEnvelope>
@throws ApiException If fail to call the API, e.g. server error or cannot de... | 147 | 347 | 380 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5132874da423ea05bcd453307d984466fdc624018adb99fb3ed23049075d64ac | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
edccbff2ccb02f5325c21c9f | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.enableWhitelist | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L392-L395 | train | java | Enable or disble whitelist feature of a device type
Enable or disble whitelist feature of a device type
@param dtid Device Type ID. (required)
@param deviceTypeUpdateInfo Device type update input. (required)
@return WhitelistEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize ... | public WhitelistEnvelope enableWhitelist(String dtid, DeviceTypeUpdateInput deviceTypeUpdateInfo) throws ApiException {
ApiResponse<WhitelistEnvelope> resp = enableWhitelistWithHttpInfo(dtid, deviceTypeUpdateInfo);
return resp.getData();
} | Enable or disble whitelist feature of a device type
Enable or disble whitelist feature of a device type
@param dtid Device Type ID. (required)
@param deviceTypeUpdateInfo Device type update input. (required)
@return WhitelistEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize ... | 125 | 337 | 259 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2c5e5caa21d51c37d062687307c2e8d8d5a55c0009727bd2fb0792d78b476a4d | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
5709f23743ef9e101bb85db0 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.enableWhitelistWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L405-L409 | train | java | Enable or disble whitelist feature of a device type
Enable or disble whitelist feature of a device type
@param dtid Device Type ID. (required)
@param deviceTypeUpdateInfo Device type update input. (required)
@return ApiResponse<WhitelistEnvelope>
@throws ApiException If fail to call the API, e.g. server error or ... | public ApiResponse<WhitelistEnvelope> enableWhitelistWithHttpInfo(String dtid, DeviceTypeUpdateInput deviceTypeUpdateInfo) throws ApiException {
com.squareup.okhttp.Call call = enableWhitelistValidateBeforeCall(dtid, deviceTypeUpdateInfo, null, null);
Type localVarReturnType = new TypeToken<WhitelistEnv... | Enable or disble whitelist feature of a device type
Enable or disble whitelist feature of a device type
@param dtid Device Type ID. (required)
@param deviceTypeUpdateInfo Device type update input. (required)
@return ApiResponse<WhitelistEnvelope>
@throws ApiException If fail to call the API, e.g. server error or ... | 159 | 356 | 407 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 6886f29a10eb3760a2ccea667787e9ed80d7e0220394803507f95c52bd481478 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
7ceed7e79fd9d594aae91af2 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.getRejectedRowList | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L526-L529 | train | java | Get the list of rejected rows for an uploaded CSV file.
Get the list of rejected rows for an uploaded CSV file.
@param dtid Device type id related to the uploaded CSV file. (required)
@param uploadId Upload id related to the uploaded CSV file. (required)
@param count Max results count. (optional)
@param offset Result s... | public RejectedCSVRowsEnvelope getRejectedRowList(String dtid, String uploadId, Integer count, Integer offset) throws ApiException {
ApiResponse<RejectedCSVRowsEnvelope> resp = getRejectedRowListWithHttpInfo(dtid, uploadId, count, offset);
return resp.getData();
} | Get the list of rejected rows for an uploaded CSV file.
Get the list of rejected rows for an uploaded CSV file.
@param dtid Device type id related to the uploaded CSV file. (required)
@param uploadId Upload id related to the uploaded CSV file. (required)
@param count Max results count. (optional)
@param offset Result s... | 163 | 482 | 284 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4061707b66291fafa3a8353f371dce8480a344093b14cf6f7367bb8218fd5b66 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
b8516f4700b58616f3127690 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.getRejectedRowListWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L541-L545 | train | java | Get the list of rejected rows for an uploaded CSV file.
Get the list of rejected rows for an uploaded CSV file.
@param dtid Device type id related to the uploaded CSV file. (required)
@param uploadId Upload id related to the uploaded CSV file. (required)
@param count Max results count. (optional)
@param offset Result s... | public ApiResponse<RejectedCSVRowsEnvelope> getRejectedRowListWithHttpInfo(String dtid, String uploadId, Integer count, Integer offset) throws ApiException {
com.squareup.okhttp.Call call = getRejectedRowListValidateBeforeCall(dtid, uploadId, count, offset, null, null);
Type localVarReturnType = new Typ... | Get the list of rejected rows for an uploaded CSV file.
Get the list of rejected rows for an uploaded CSV file.
@param dtid Device type id related to the uploaded CSV file. (required)
@param uploadId Upload id related to the uploaded CSV file. (required)
@param count Max results count. (optional)
@param offset Result s... | 195 | 501 | 432 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3e6fbfa47805445b5a772c7ec4009a9b130e9fb2f793658a036c9baac17cedec | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
7fb94a3ce281d8fa9dcf131b | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.getUploadStatus | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L658-L661 | train | java | Get the status of a uploaded CSV file.
Get the status of a uploaded CSV file.
@param dtid Device type id related to the uploaded CSV file. (required)
@param uploadId Upload id related to the uploaded CSV file. (required)
@return UploadStatusEnvelope
@throws ApiException If fail to call the API, e.g. server error or can... | public UploadStatusEnvelope getUploadStatus(String dtid, String uploadId) throws ApiException {
ApiResponse<UploadStatusEnvelope> resp = getUploadStatusWithHttpInfo(dtid, uploadId);
return resp.getData();
} | Get the status of a uploaded CSV file.
Get the status of a uploaded CSV file.
@param dtid Device type id related to the uploaded CSV file. (required)
@param uploadId Upload id related to the uploaded CSV file. (required)
@return UploadStatusEnvelope
@throws ApiException If fail to call the API, e.g. server error or can... | 122 | 353 | 226 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 35c138741d9e6b95f4874f66b384062284edf052c2510a73d8971fcd2c2a4ca0 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
db40b98cad2c3f3ffb1b1c9d | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.getUploadStatusWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L671-L675 | train | java | Get the status of a uploaded CSV file.
Get the status of a uploaded CSV file.
@param dtid Device type id related to the uploaded CSV file. (required)
@param uploadId Upload id related to the uploaded CSV file. (required)
@return ApiResponse<UploadStatusEnvelope>
@throws ApiException If fail to call the API, e.g. ... | public ApiResponse<UploadStatusEnvelope> getUploadStatusWithHttpInfo(String dtid, String uploadId) throws ApiException {
com.squareup.okhttp.Call call = getUploadStatusValidateBeforeCall(dtid, uploadId, null, null);
Type localVarReturnType = new TypeToken<UploadStatusEnvelope>(){}.getType();
ret... | Get the status of a uploaded CSV file.
Get the status of a uploaded CSV file.
@param dtid Device type id related to the uploaded CSV file. (required)
@param uploadId Upload id related to the uploaded CSV file. (required)
@return ApiResponse<UploadStatusEnvelope>
@throws ApiException If fail to call the API, e.g. ... | 156 | 372 | 374 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0f878761e060473dc785c9ca6120f0d1db6619067bd8f586b7f46c63fa852500 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
ae8e6c5ca08faf07509bbbe6 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.getWhitelist | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L785-L788 | train | java | Get whitelisted vdids of a device type.
Get whitelisted vdids of a device type.
@param dtid Device Type ID. (required)
@param count Max results count. (optional)
@param offset Result starting offset. (optional)
@return WhitelistResultEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot des... | public WhitelistResultEnvelope getWhitelist(String dtid, Integer count, Integer offset) throws ApiException {
ApiResponse<WhitelistResultEnvelope> resp = getWhitelistWithHttpInfo(dtid, count, offset);
return resp.getData();
} | Get whitelisted vdids of a device type.
Get whitelisted vdids of a device type.
@param dtid Device Type ID. (required)
@param count Max results count. (optional)
@param offset Result starting offset. (optional)
@return WhitelistResultEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot des... | 129 | 346 | 245 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 55176000a14f79b96fd5772bd24dae6f52daa92732a92b85d9f322140d5fb9c1 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
dd988e917163bc2a549a01ff | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.getWhitelistWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L799-L803 | train | java | Get whitelisted vdids of a device type.
Get whitelisted vdids of a device type.
@param dtid Device Type ID. (required)
@param count Max results count. (optional)
@param offset Result starting offset. (optional)
@return ApiResponse<WhitelistResultEnvelope>
@throws ApiException If fail to call the API, e.g. server ... | public ApiResponse<WhitelistResultEnvelope> getWhitelistWithHttpInfo(String dtid, Integer count, Integer offset) throws ApiException {
com.squareup.okhttp.Call call = getWhitelistValidateBeforeCall(dtid, count, offset, null, null);
Type localVarReturnType = new TypeToken<WhitelistResultEnvelope>(){}.get... | Get whitelisted vdids of a device type.
Get whitelisted vdids of a device type.
@param dtid Device Type ID. (required)
@param count Max results count. (optional)
@param offset Result starting offset. (optional)
@return ApiResponse<WhitelistResultEnvelope>
@throws ApiException If fail to call the API, e.g. server ... | 163 | 365 | 393 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e215961e769526e69fe84ce2882898fbebdbe515b488ecfbb8a1456e1784d1e1 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
514a542a6608d36e5580682a | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.getWhitelistCertificate | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L908-L911 | train | java | Get whitelist certificate of device type.
Get whitelist certificate of device type.
@param dtid Device Type ID. (required)
@return CertificateEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body | public CertificateEnvelope getWhitelistCertificate(String dtid) throws ApiException {
ApiResponse<CertificateEnvelope> resp = getWhitelistCertificateWithHttpInfo(dtid);
return resp.getData();
} | Get whitelist certificate of device type.
Get whitelist certificate of device type.
@param dtid Device Type ID. (required)
@return CertificateEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public CertificateEnvelope getWhitelistCertificate(String dtid) ... | 89 | 254 | 213 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 71bf4acf5558e3dda2c82a53cdde2c3ec3d8603cfd0d761a71fa29f588690ddc | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
4690a45d99d9c459fdddde41 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.getWhitelistCertificateWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L920-L924 | train | java | Get whitelist certificate of device type.
Get whitelist certificate of device type.
@param dtid Device Type ID. (required)
@return ApiResponse<CertificateEnvelope>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body | public ApiResponse<CertificateEnvelope> getWhitelistCertificateWithHttpInfo(String dtid) throws ApiException {
com.squareup.okhttp.Call call = getWhitelistCertificateValidateBeforeCall(dtid, null, null);
Type localVarReturnType = new TypeToken<CertificateEnvelope>(){}.getType();
return apiClient... | Get whitelist certificate of device type.
Get whitelist certificate of device type.
@param dtid Device Type ID. (required)
@return ApiResponse<CertificateEnvelope>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<CertificateEnvelope> getWh... | 123 | 273 | 361 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 662912e0a2f71e4cba0934a75774387f970b60075adf261bdc98217d9f711140 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
3b33544dfa37f0b90b140f90 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.getWhitelistStatus | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L1027-L1030 | train | java | Get the status of whitelist feature (enabled/disabled) of a device type.
Get the status of whitelist feature (enabled/disabled) of a device type.
@param dtid Device Type ID. (required)
@return WhitelistEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body | public WhitelistEnvelope getWhitelistStatus(String dtid) throws ApiException {
ApiResponse<WhitelistEnvelope> resp = getWhitelistStatusWithHttpInfo(dtid);
return resp.getData();
} | Get the status of whitelist feature (enabled/disabled) of a device type.
Get the status of whitelist feature (enabled/disabled) of a device type.
@param dtid Device Type ID. (required)
@return WhitelistEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
publ... | 110 | 314 | 199 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 048996d16cd142c33d199b6bfb1fde60a2406a50be3a508e174bb178b1887ae1 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
06c952a0fc9301b0b637c0ae | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.getWhitelistStatusWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L1039-L1043 | train | java | Get the status of whitelist feature (enabled/disabled) of a device type.
Get the status of whitelist feature (enabled/disabled) of a device type.
@param dtid Device Type ID. (required)
@return ApiResponse<WhitelistEnvelope>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the ... | public ApiResponse<WhitelistEnvelope> getWhitelistStatusWithHttpInfo(String dtid) throws ApiException {
com.squareup.okhttp.Call call = getWhitelistStatusValidateBeforeCall(dtid, null, null);
Type localVarReturnType = new TypeToken<WhitelistEnvelope>(){}.getType();
return apiClient.execute(call,... | Get the status of whitelist feature (enabled/disabled) of a device type.
Get the status of whitelist feature (enabled/disabled) of a device type.
@param dtid Device Type ID. (required)
@return ApiResponse<WhitelistEnvelope>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the ... | 144 | 333 | 347 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5f97f0c7c247889b1f19e89a76b2e76559970e0dad3aacc2f69aaaf703fcc4e2 | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
1790703833e9c9569548e66c | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.uploadCSV | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L1152-L1155 | train | java | Upload a CSV file related to the Device Type.
Upload a CSV file related to the Device Type.
@param dtid Device Type ID. (required)
@param file Device Type ID. (required)
@return UploadIdEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body | public UploadIdEnvelope uploadCSV(String dtid, byte[] file) throws ApiException {
ApiResponse<UploadIdEnvelope> resp = uploadCSVWithHttpInfo(dtid, file);
return resp.getData();
} | Upload a CSV file related to the Device Type.
Upload a CSV file related to the Device Type.
@param dtid Device Type ID. (required)
@param file Device Type ID. (required)
@return UploadIdEnvelope
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public UploadIdEnvel... | 109 | 298 | 198 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b5c2e94d709072ebba7f9f4ad75cfb1cefc87a1e70cd77a2411f499aa6d5a93d | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
314bd9881d6e956a2f30dae3 | artikcloud/artikcloud-java | src/main/java/cloud/artik/api/WhitelistingApi.java | WhitelistingApi.uploadCSVWithHttpInfo | https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/WhitelistingApi.java#L1165-L1169 | train | java | Upload a CSV file related to the Device Type.
Upload a CSV file related to the Device Type.
@param dtid Device Type ID. (required)
@param file Device Type ID. (required)
@return ApiResponse<UploadIdEnvelope>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body | public ApiResponse<UploadIdEnvelope> uploadCSVWithHttpInfo(String dtid, byte[] file) throws ApiException {
com.squareup.okhttp.Call call = uploadCSVValidateBeforeCall(dtid, file, null, null);
Type localVarReturnType = new TypeToken<UploadIdEnvelope>(){}.getType();
return apiClient.execute(call, ... | Upload a CSV file related to the Device Type.
Upload a CSV file related to the Device Type.
@param dtid Device Type ID. (required)
@param file Device Type ID. (required)
@return ApiResponse<UploadIdEnvelope>
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
p... | 143 | 317 | 346 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c46c1cb1ccc1b115849d1cbe0384958713bd99f03526351dcc47657ce6dc30bf | Apache-2.0 | permissive | https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE |
3e249e1bbb9da4a0c5f9f72c | skuzzle/jeve | jeve/src/main/java/de/skuzzle/jeve/ExceptionCallbacks.java | ExceptionCallbacks.ignore | https://github.com/skuzzle/jeve/blob/42cc18947c9c8596c34410336e4e375e9fcd7c47/jeve/src/main/java/de/skuzzle/jeve/ExceptionCallbacks.java#L28-L35 | train | java | The default {@link ExceptionCallback} which simply logs any failure but
takes no further action.
@return The callback. | public static ExceptionCallback ignore() {
return new ExceptionCallback() {
@Override
public void exception(FailedEventInvocation invocation) {
FailedEventInvocation.log(LOG, invocation);
}
};
} | The default {@link ExceptionCallback} which simply logs any failure but
takes no further action.
@return The callback.
public static ExceptionCallback ignore() {
return new ExceptionCallback() {
@Override
public void exception(FailedEventInvocation invocation) {
FailedE... | 67 | 119 | 266 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3d1097125705f8ef4154d037c34c8fec65affc87fa06dd9833768fbed473253b | MIT | permissive | https://github.com/skuzzle/jeve/blob/master/LICENSE.md |
2f6110412a262150e67e477f | skuzzle/jeve | jeve/src/main/java/de/skuzzle/jeve/ExceptionCallbacks.java | ExceptionCallbacks.stopOnError | https://github.com/skuzzle/jeve/blob/42cc18947c9c8596c34410336e4e375e9fcd7c47/jeve/src/main/java/de/skuzzle/jeve/ExceptionCallbacks.java#L44-L52 | train | java | The callback will set the Event's {@link Event#isHandled() handled} flag
to <code>true</code> to gracefully stop the delegation process when an
exception occurs. Like {@link #ignore()}, the exception will be logged.
@return The callback. | public static ExceptionCallback stopOnError() {
return new ExceptionCallback() {
@Override
public void exception(FailedEventInvocation invocation) {
FailedEventInvocation.log(LOG, invocation);
invocation.getEvent().setHandled(true);
}
}... | The callback will set the Event's {@link Event#isHandled() handled} flag
to <code>true</code> to gracefully stop the delegation process when an
exception occurs. Like {@link #ignore()}, the exception will be logged.
@return The callback.
public static ExceptionCallback stopOnError() {
return new ExceptionCall... | 107 | 238 | 327 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | df300f072e64838178613ba2c4e339823a697305f236c301bc4151ff59fad346 | MIT | permissive | https://github.com/skuzzle/jeve/blob/master/LICENSE.md |
1fc7c4cf2ba6bdd09f6b780f | skuzzle/jeve | jeve/src/main/java/de/skuzzle/jeve/ExceptionCallbacks.java | ExceptionCallbacks.failOnError | https://github.com/skuzzle/jeve/blob/42cc18947c9c8596c34410336e4e375e9fcd7c47/jeve/src/main/java/de/skuzzle/jeve/ExceptionCallbacks.java#L61-L68 | train | java | The callback will convert the occurred exception into an
{@link AbortionException} and then throw it. This stops the delegation
process with delegating the exception to the dispatcher of the event.
@return The callback. | public static ExceptionCallback failOnError() {
return new ExceptionCallback() {
@Override
public void exception(FailedEventInvocation invocation) {
throw new AbortionException(invocation.getException());
}
};
} | The callback will convert the occurred exception into an
{@link AbortionException} and then throw it. This stops the delegation
process with delegating the exception to the dispatcher of the event.
@return The callback.
public static ExceptionCallback failOnError() {
return new ExceptionCallback() {
... | 90 | 220 | 283 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9238730ff7d0d7944ca51c119f5a783d3a320104b985fa93a8bf2bcd5f79229c | MIT | permissive | https://github.com/skuzzle/jeve/blob/master/LICENSE.md |
13f8fc056f929218c1a761e6 | Harium/keel | src/main/java/com/harium/keel/catalano/math/decomposition/LUDecomposition.java | LUDecomposition.getU | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/decomposition/LUDecomposition.java#L194-L207 | train | java | Get the Upper triangular factor.
@return U. | public double[][] getU() {
double[][] X = new double[n][n];
double[][] U = X;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
if (i <= j) {
U[i][j] = LU[i][j];
} else {
U[i][j] = 0.0;
... | Get the Upper triangular factor.
@return U.
public double[][] getU() {
double[][] X = new double[n][n];
double[][] U = X;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
if (i <= j) {
U[i][j] = LU[i][j];
} else {
... | 114 | 44 | 369 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2f59e07b1d6bbf23e1ad4a79a9de4c240623b1f84b05c3dd5449bf3d58cfcaf7 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
2cd449cf4a5f018334342a77 | Harium/keel | src/main/java/com/harium/keel/catalano/math/decomposition/LUDecomposition.java | LUDecomposition.determinant | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/decomposition/LUDecomposition.java#L244-L253 | train | java | Calculate the determinant.
@return Determinant. | public double determinant() {
if (m != n) {
throw new IllegalArgumentException("Matrix must be square.");
}
double d = (double) pivsign;
for (int j = 0; j < n; j++) {
d *= LU[j][j];
}
return d;
} | Calculate the determinant.
@return Determinant.
public double determinant() {
if (m != n) {
throw new IllegalArgumentException("Matrix must be square.");
}
double d = (double) pivsign;
for (int j = 0; j < n; j++) {
d *= LU[j][j];
}
return d;
... | 75 | 48 | 271 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | aed13fb8c350b10231ba16e0968680cc3d2b0f93cea6c03096286c4be07db8d9 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
6a60b1125f7676be7642ffa8 | Harium/keel | src/main/java/com/harium/keel/catalano/math/decomposition/LUDecomposition.java | LUDecomposition.solve | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/decomposition/LUDecomposition.java#L263-L295 | train | java | Solve A*X = B
@param B A Matrix with as many rows as A and any number of columns.
@return X so that L*U*X = B(piv,:)
@throws IllegalArgumentException Matrix row dimensions must agree.
@throws RuntimeException Matrix is singular. | public double[][] solve(double[][] B) {
if (B.length != m) {
throw new IllegalArgumentException("Matrix row dimensions must agree.");
}
if (!this.isNonsingular()) {
throw new RuntimeException("Matrix is singular.");
}
// Copy right hand side with pivoting... | Solve A*X = B
@param B A Matrix with as many rows as A and any number of columns.
@return X so that L*U*X = B(piv,:)
@throws IllegalArgumentException Matrix row dimensions must agree.
@throws RuntimeException Matrix is singular.
public double[][] solve(double[][] B) {
if (B.length != m) {
... | 351 | 237 | 1,036 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fc5aefb897e5c411c797c963bd8de2f9289d0b06de091cad72040c3c391e5a93 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
950e323bf9409448c2a6681e | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.getReal | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L104-L110 | train | java | Get real part from the complex numbers.
@param cn Complex numbers.
@return Real part. | public static double[] getReal(ComplexNumber[] cn) {
double[] n = new double[cn.length];
for (int i = 0; i < n.length; i++) {
n[i] = cn[i].real;
}
return n;
} | Get real part from the complex numbers.
@param cn Complex numbers.
@return Real part.
public static double[] getReal(ComplexNumber[] cn) {
double[] n = new double[cn.length];
for (int i = 0; i < n.length; i++) {
n[i] = cn[i].real;
}
return n;
} | 76 | 86 | 212 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | be829c11521bfa4733eff6200b20703aeacd115221e1ee85e64f150e4ea7770c | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
ca03831a4f376b5fe76f4c36 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.getImaginary | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L118-L124 | train | java | Get imaginary part from the complex numbers.
@param cn Complex numbers.
@return Imaginary part. | public static double[] getImaginary(ComplexNumber[] cn) {
double[] n = new double[cn.length];
for (int i = 0; i < n.length; i++) {
n[i] = cn[i].imaginary;
}
return n;
} | Get imaginary part from the complex numbers.
@param cn Complex numbers.
@return Imaginary part.
public static double[] getImaginary(ComplexNumber[] cn) {
double[] n = new double[cn.length];
for (int i = 0; i < n.length; i++) {
n[i] = cn[i].imaginary;
}
return n;
} | 80 | 96 | 222 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b650a394ba2c778f578fcfb82acac92da480dcaf4262ba4431d138e080ac48b2 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
436b394488aa45190dbd6600 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.getReal | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L132-L140 | train | java | Get real part from the complex numbers.
@param cn Complex numbers.
@return Real part. | public static double[][] getReal(ComplexNumber[][] cn) {
double[][] n = new double[cn.length][cn[0].length];
for (int i = 0; i < n.length; i++) {
for (int j = 0; j < n[0].length; j++) {
n[i][j] = cn[i][j].real;
}
}
return n;
} | Get real part from the complex numbers.
@param cn Complex numbers.
@return Real part.
public static double[][] getReal(ComplexNumber[][] cn) {
double[][] n = new double[cn.length][cn[0].length];
for (int i = 0; i < n.length; i++) {
for (int j = 0; j < n[0].length; j++) {
... | 108 | 86 | 310 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7d0312ca279624ab1da3b69dbd8229345ef8e87b6e640cba7ca58aa1f01f7ee1 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
a8ebfd7d23de16d8ab6038a7 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.getImaginary | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L148-L156 | train | java | Get imaginary part from the complex numbers.
@param cn Complex numbers.
@return Imaginary part. | public static double[][] getImaginary(ComplexNumber[][] cn) {
double[][] n = new double[cn.length][cn[0].length];
for (int i = 0; i < n.length; i++) {
for (int j = 0; j < n[0].length; j++) {
n[i][j] = cn[i][j].imaginary;
}
}
return n;
} | Get imaginary part from the complex numbers.
@param cn Complex numbers.
@return Imaginary part.
public static double[][] getImaginary(ComplexNumber[][] cn) {
double[][] n = new double[cn.length][cn[0].length];
for (int i = 0; i < n.length; i++) {
for (int j = 0; j < n[0].length; j++) {
... | 112 | 96 | 320 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 06aba6586f82ff3552efe303c2c2f26637024711d87c05c816f3777faa41fd21 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
5b10e85df3bf53437d6cf517 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Swap | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L163-L167 | train | java | Swap values between real and imaginary.
@param z1 Complex number. | public static void Swap(ComplexNumber z1) {
double t = z1.real;
z1.real = z1.imaginary;
z1.imaginary = t;
} | Swap values between real and imaginary.
@param z1 Complex number.
public static void Swap(ComplexNumber z1) {
double t = z1.real;
z1.real = z1.imaginary;
z1.imaginary = t;
} | 52 | 66 | 139 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 53a3d2f16fd344058f97b7ae3c7d5e46883bc947180ae4f02702f66542315940 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
fc011f4b684613f506f27ea1 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Swap | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L174-L178 | train | java | Swap values between real and imaginary.
@param z Complex number. | public static void Swap(ComplexNumber[] z) {
for (int i = 0; i < z.length; i++) {
z[i] = new ComplexNumber(z[i].imaginary, z[i].real);
}
} | Swap values between real and imaginary.
@param z Complex number.
public static void Swap(ComplexNumber[] z) {
for (int i = 0; i < z.length; i++) {
z[i] = new ComplexNumber(z[i].imaginary, z[i].real);
}
} | 63 | 65 | 174 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ae8f324754ba978fd1281ebdff89d71781cbd8c0abbca5803a186838b939bb8b | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
4b876e8f6f10b7ec7af1f52a | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Swap | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L185-L191 | train | java | Swap values between real and imaginary.
@param z Complex number. | public static void Swap(ComplexNumber[][] z) {
for (int i = 0; i < z.length; i++) {
for (int j = 0; j < z[0].length; j++) {
z[i][j] = new ComplexNumber(z[i][j].imaginary, z[i][j].real);
}
}
} | Swap values between real and imaginary.
@param z Complex number.
public static void Swap(ComplexNumber[][] z) {
for (int i = 0; i < z.length; i++) {
for (int j = 0; j < z[0].length; j++) {
z[i][j] = new ComplexNumber(z[i][j].imaginary, z[i][j].real);
}
}
... | 91 | 65 | 257 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9374ba43a5d4811836b66934c37049e23ef6d0176b0dd355dfa5908af8e66f1c | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
43341ea0b5e6ae57fe1a9a44 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Abs | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L210-L216 | train | java | Absolute value of complex number.
@param z Complex Numbers.
@return Absolute number. | public static double[] Abs(ComplexNumber[] z) {
double[] values = new double[z.length];
for (int i = 0; i < values.length; i++) {
values[i] = z[i].getMagnitude();
}
return values;
} | Absolute value of complex number.
@param z Complex Numbers.
@return Absolute number.
public static double[] Abs(ComplexNumber[] z) {
double[] values = new double[z.length];
for (int i = 0; i < values.length; i++) {
values[i] = z[i].getMagnitude();
}
return values;
... | 73 | 85 | 235 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b2a576f0196d6d3e0ff3c41860dbb415bb998e9582839948ec5c0fd966901e4d | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
4b1c2ad8075d12c6fb95496d | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Abs | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L224-L232 | train | java | Absolute value of complex number.
@param z Complex numbers.
@return Absolute number. | public static double[][] Abs(ComplexNumber[][] z) {
double[][] values = new double[z.length][z[0].length];
for (int i = 0; i < values.length; i++) {
for (int j = 0; j < values[0].length; j++) {
values[i][j] = z[i][j].getMagnitude();
}
}
retu... | Absolute value of complex number.
@param z Complex numbers.
@return Absolute number.
public static double[][] Abs(ComplexNumber[][] z) {
double[][] values = new double[z.length][z[0].length];
for (int i = 0; i < values.length; i++) {
for (int j = 0; j < values[0].length; j++) {
... | 105 | 85 | 337 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 252943113b586e9208073e89762a535d3bf6dbbf78b7075e1506c0ef5ccb3af1 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
88d4ca7ac72ad118ff5107e2 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Add | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L241-L243 | train | java | Adds two complex numbers.
@param z1 Complex Number.
@param z2 Complex Number.
@return Returns new ComplexNumber instance containing the sum of specified complex numbers. | public static ComplexNumber Add(ComplexNumber z1, ComplexNumber z2) {
return new ComplexNumber(z1.real + z2.real, z1.imaginary + z2.imaginary);
} | Adds two complex numbers.
@param z1 Complex Number.
@param z2 Complex Number.
@return Returns new ComplexNumber instance containing the sum of specified complex numbers.
public static ComplexNumber Add(ComplexNumber z1, ComplexNumber z2) {
return new ComplexNumber(z1.real + z2.real, z1.imaginary + z2.imagina... | 73 | 170 | 159 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bcb04bf84a70c105ab19198667d6149c7b1cf3dc35d3665f4dc30f3e076fc4ad | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
5c8c51d3b821c5a35a4d38f9 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Add | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L252-L254 | train | java | Adds the complex number with a scalar value.
@param z1 Complex Number.
@param scalar Scalar value.
@return Returns new ComplexNumber instance containing the add of specified complex number with scalar value. | public static ComplexNumber Add(ComplexNumber z1, double scalar) {
return new ComplexNumber(z1.real + scalar, z1.imaginary);
} | Adds the complex number with a scalar value.
@param z1 Complex Number.
@param scalar Scalar value.
@return Returns new ComplexNumber instance containing the add of specified complex number with scalar value.
public static ComplexNumber Add(ComplexNumber z1, double scalar) {
return new ComplexNumber(z1.re... | 71 | 212 | 140 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d151f8937cb80ca3041d7660e28ce6d2d5f7f888c3396878e99fe47c0ac16242 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
f5ac93459e572a8f4d710d4f | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Subtract | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L272-L274 | train | java | Subtract two complex numbers.
@param z1 Complex Number.
@param z2 Complex Number.
@return Returns new ComplexNumber instance containing the subtract of specified complex numbers. | public static ComplexNumber Subtract(ComplexNumber z1, ComplexNumber z2) {
return new ComplexNumber(z1.real - z2.real, z1.imaginary - z2.imaginary);
} | Subtract two complex numbers.
@param z1 Complex Number.
@param z2 Complex Number.
@return Returns new ComplexNumber instance containing the subtract of specified complex numbers.
public static ComplexNumber Subtract(ComplexNumber z1, ComplexNumber z2) {
return new ComplexNumber(z1.real - z2.real, z1.imaginar... | 74 | 179 | 164 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 90c5685e8e1075fbcd759f5efc707315476fb4905a4bba1ab84ab8738e388071 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
c45aa82d4209b57fc418673a | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Subtract | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L283-L285 | train | java | Subtract a complex number.
@param z1 Complex Number.
@param scalar Scalar value.
@return Returns new ComplexNumber instance containing the subtract of specified complex number with a scalar value. | public static ComplexNumber Subtract(ComplexNumber z1, double scalar) {
return new ComplexNumber(z1.real - scalar, z1.imaginary);
} | Subtract a complex number.
@param z1 Complex Number.
@param scalar Scalar value.
@return Returns new ComplexNumber instance containing the subtract of specified complex number with a scalar value.
public static ComplexNumber Subtract(ComplexNumber z1, double scalar) {
return new ComplexNumber(z1.real - s... | 69 | 201 | 145 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 36a4256dd0a5e0ece03d860bd14215daa8315a4f7d6f085c88f3e4b86320ae42 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
b03e26f32027cf17151394cb | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Magnitude | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L302-L304 | train | java | Magnitude of complex number.
@param z Complex number.
@return Magnitude of complex number. | public static double Magnitude(ComplexNumber z) {
return Math.sqrt(z.real * z.real + z.imaginary * z.imaginary);
} | Magnitude of complex number.
@param z Complex number.
@return Magnitude of complex number.
public static double Magnitude(ComplexNumber z) {
return Math.sqrt(z.real * z.real + z.imaginary * z.imaginary);
} | 48 | 91 | 128 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 14aa52285546f8d2251a31735a3d6fab9c03411503d587bfe79fddcc501c4240 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
c9886c22d1b40b489c41d8ee | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Multiply | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L313-L318 | train | java | Multiply two complex numbers.
@param z1 Complex Number.
@param z2 Complex Number.
@return Returns new ComplexNumber instance containing the multiply of specified complex numbers. | public static ComplexNumber Multiply(ComplexNumber z1, ComplexNumber z2) {
double z1R = z1.real, z1I = z1.imaginary;
double z2R = z2.real, z2I = z2.imaginary;
return new ComplexNumber(z1R * z2R - z1I * z2I, z1R * z2I + z1I * z2R);
} | Multiply two complex numbers.
@param z1 Complex Number.
@param z2 Complex Number.
@return Returns new ComplexNumber instance containing the multiply of specified complex numbers.
public static ComplexNumber Multiply(ComplexNumber z1, ComplexNumber z2) {
double z1R = z1.real, z1I = z1.imaginary;
doub... | 125 | 179 | 266 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 93163ede8c17b708dabbf0504037bdb23eb023805a36498f03a27dfbe38c0c47 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
e2f7d1db85bf5f4553eb195c | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Multiply | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L327-L329 | train | java | Multiply scalar value to a complex number.
@param z1 Complex Number.
@param scalar Scalar value.
@return Returns new ComplexNumber instance containing the multiply of specified complex number with the scalar value. | public static ComplexNumber Multiply(ComplexNumber z1, double scalar) {
return new ComplexNumber(z1.real * scalar, z1.imaginary * scalar);
} | Multiply scalar value to a complex number.
@param z1 Complex Number.
@param scalar Scalar value.
@return Returns new ComplexNumber instance containing the multiply of specified complex number with the scalar value.
public static ComplexNumber Multiply(ComplexNumber z1, double scalar) {
return new Complex... | 73 | 219 | 154 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0a8bc6d8d6f83448d4fb4379964857b718d1608827e132f17a5d7b0c5cc7d836 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
7e5f9892aab4863e5d890f26 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Divide | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L348-L358 | train | java | Divide two complex numbers.
@param z1 Complex Number.
@param z2 Complex Number.
@return Returns new ComplexNumber instance containing the divide of specified complex numbers. | public static ComplexNumber Divide(ComplexNumber z1, ComplexNumber z2) {
ComplexNumber conj = ComplexNumber.Conjugate(z2);
double a = z1.real * conj.real + ((z1.imaginary * conj.imaginary) * -1);
double b = z1.real * conj.imaginary + (z1.imaginary * conj.real);
double c = z2.re... | Divide two complex numbers.
@param z1 Complex Number.
@param z2 Complex Number.
@return Returns new ComplexNumber instance containing the divide of specified complex numbers.
public static ComplexNumber Divide(ComplexNumber z1, ComplexNumber z2) {
ComplexNumber conj = ComplexNumber.Conjugate(z2);
... | 148 | 175 | 434 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9e4f94a4801ce3d8a19d2076493f906ce18ea91b956835ff963c4f06408c4d05 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
70deee346128bc7efb6d963e | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Divide | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L384-L386 | train | java | Divides scalar value to a complex number.
@param z1 Complex Number.
@param scalar Scalar value.
@return Returns new ComplexNumber instance containing the divide of specified complex number with the scalar value. | public static ComplexNumber Divide(ComplexNumber z1, double scalar) {
return new ComplexNumber(z1.real / scalar, z1.imaginary / scalar);
} | Divides scalar value to a complex number.
@param z1 Complex Number.
@param scalar Scalar value.
@return Returns new ComplexNumber instance containing the divide of specified complex number with the scalar value.
public static ComplexNumber Divide(ComplexNumber z1, double scalar) {
return new ComplexNumbe... | 74 | 216 | 152 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 89891b32acb92da0309b129fb9ae59c1ff9c41287d36baa9fc041bba63c4d995 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
84f8bacffa7932867e11db47 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Divide | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L393-L405 | train | java | Divides scalar value to a complex number.
@param scalar Scalar value. | public void Divide(double scalar) {
if (scalar == 0) {
try {
throw new ArithmeticException("Can not divide by zero.");
} catch (Exception e) {
e.printStackTrace();
}
}
this.real /= scalar;
this.imaginary /= ... | Divides scalar value to a complex number.
@param scalar Scalar value.
public void Divide(double scalar) {
if (scalar == 0) {
try {
throw new ArithmeticException("Can not divide by zero.");
} catch (Exception e) {
e.printStackTrace();
... | 76 | 70 | 334 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 87c778f493bac0f56b099829daa6f110be4646ec78bfb52b22b1d3d4a6a92022 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
805a52989099b47dfbf9f03a | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Pow | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L414-L426 | train | java | Calculate power of a complex number.
@param z1 Complex Number.
@param n Power.
@return Returns a new complex number containing the power of a specified number. | public static ComplexNumber Pow(ComplexNumber z1, double n) {
double norm = Math.pow(z1.getMagnitude(), n);
double angle = 360 - Math.abs(Math.toDegrees(Math.atan(z1.imaginary / z1.real)));
double common = n * angle;
double r = norm * Math.cos(Math.toRadians(common));
... | Calculate power of a complex number.
@param z1 Complex Number.
@param n Power.
@return Returns a new complex number containing the power of a specified number.
public static ComplexNumber Pow(ComplexNumber z1, double n) {
double norm = Math.pow(z1.getMagnitude(), n);
double angle = 360 - Math.abs... | 129 | 161 | 423 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 08de81eeb4ca26ad8726e3b5624e1d95faba33f9de81f2265828ea0399aabd94 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
0a8992d0b15d0bec09651b4f | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Log | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L449-L469 | train | java | Calculates natural (base <b>e</b>) logarithm of a complex number.
@param z1 Complex Number instance.
@return Returns new ComplexNumber instance containing the natural logarithm of the specified complex number. | public static ComplexNumber Log(ComplexNumber z1) {
ComplexNumber result = new ComplexNumber();
if ((z1.real > 0.0) && (z1.imaginary == 0.0)) {
result.real = Math.log(z1.real);
result.imaginary = 0.0;
} else if (z1.real == 0.0) {
if (z1.imaginary > 0.0... | Calculates natural (base <b>e</b>) logarithm of a complex number.
@param z1 Complex Number instance.
@return Returns new ComplexNumber instance containing the natural logarithm of the specified complex number.
public static ComplexNumber Log(ComplexNumber z1) {
ComplexNumber result = new ComplexNumber();
... | 233 | 210 | 761 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2c0845f7f8828c4411c2fd13ede86ec1f35b34bc5ecfc313d658b8f65870cd63 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
b08dde35d47a973b7bc076f7 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Exp | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L477-L483 | train | java | Calculates exponent (e raised to the specified power) of a complex number.
@param z1 A Complex Number instance.
@return Returns new ComplexNumber instance containing the exponent of the specified complex number. | public static ComplexNumber Exp(ComplexNumber z1) {
ComplexNumber x, y;
x = new ComplexNumber(Math.exp(z1.real), 0.0);
y = new ComplexNumber(Math.cos(z1.imaginary), Math.sin(z1.imaginary));
return Multiply(x, y);
} | Calculates exponent (e raised to the specified power) of a complex number.
@param z1 A Complex Number instance.
@return Returns new ComplexNumber instance containing the exponent of the specified complex number.
public static ComplexNumber Exp(ComplexNumber z1) {
ComplexNumber x, y;
x = new ComplexN... | 104 | 212 | 257 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3b3ac9efc10b56aa4da0c0aaddd469f9b675999c7889316b51673df63f9fe351 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
0cc50e3fd3445a4db8677b70 | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Sin | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L491-L503 | train | java | Calculates Sine value of the complex number.
@param z1 A Complex Number instance.
@return Returns new ComplexNumber instance containing the Sine value of the specified complex number. | public static ComplexNumber Sin(ComplexNumber z1) {
ComplexNumber result = new ComplexNumber();
if (z1.imaginary == 0.0) {
result.real = Math.sin(z1.real);
result.imaginary = 0.0;
} else {
result.real = Math.sin(z1.real) * Math.cosh(z1.imaginary);
... | Calculates Sine value of the complex number.
@param z1 A Complex Number instance.
@return Returns new ComplexNumber instance containing the Sine value of the specified complex number.
public static ComplexNumber Sin(ComplexNumber z1) {
ComplexNumber result = new ComplexNumber();
if (z1.imaginary =... | 141 | 184 | 436 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a1abbd687aafeaed71d03db3db1e9fd2a401183a2a103e0b1fe6a8f096dcb605 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
0dd584220c63c4d0d433026a | Harium/keel | src/main/java/com/harium/keel/catalano/math/ComplexNumber.java | ComplexNumber.Tan | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/ComplexNumber.java#L531-L547 | train | java | Calculates Tangent value of the complex number.
@param z1 A ComplexNumber instance.
@return Returns new ComplexNumber instance containing the Tangent value of the specified complex number. | public static ComplexNumber Tan(ComplexNumber z1) {
ComplexNumber result = new ComplexNumber();
if (z1.imaginary == 0.0) {
result.real = Math.tan(z1.real);
result.imaginary = 0.0;
} else {
double real2 = 2 * z1.real;
double imag2 = 2 * z1.... | Calculates Tangent value of the complex number.
@param z1 A ComplexNumber instance.
@return Returns new ComplexNumber instance containing the Tangent value of the specified complex number.
public static ComplexNumber Tan(ComplexNumber z1) {
ComplexNumber result = new ComplexNumber();
if (z1.imagin... | 171 | 189 | 550 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1c82427663a57c73c32857350b5cc3438e89d556dd66f69457ee2ea1118827ce | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
521900aa8a905c49785c7f04 | Harium/keel | src/main/java/com/harium/keel/catalano/math/random/UniversalGenerator.java | UniversalGenerator.srand | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/random/UniversalGenerator.java#L85-L128 | train | java | Initialize the random generator with a seed. | private void srand(int ijkl) {
u = new double[97];
int ij = ijkl / 30082;
int kl = ijkl % 30082;
// Handle the seed range errors
// First random number seed must be between 0 and 31328
// Second seed must have a value between 0 and 30081
if (ij < 0 || ij > 31328... | Initialize the random generator with a seed.
private void srand(int ijkl) {
u = new double[97];
int ij = ijkl / 30082;
int kl = ijkl % 30082;
// Handle the seed range errors
// First random number seed must be between 0 and 31328
// Second seed must have a value betwee... | 408 | 44 | 1,195 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2125f21067227c645e544040efb144b76b61be6006e6886cdd7c5037f01362ff | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
7aaeebfeb1a5d9ed48ecec22 | Harium/keel | src/main/java/com/harium/keel/catalano/core/IntPoint.java | IntPoint.Add | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/IntPoint.java#L139-L143 | train | java | Adds values of two points.
@param point1 IntPoint.
@param point2 IntPoint.
@return IntPoint that contains X and Y axis coordinate. | public static IntPoint Add(IntPoint point1, IntPoint point2) {
IntPoint result = new IntPoint(point1);
result.Add(point2);
return result;
} | Adds values of two points.
@param point1 IntPoint.
@param point2 IntPoint.
@return IntPoint that contains X and Y axis coordinate.
public static IntPoint Add(IntPoint point1, IntPoint point2) {
IntPoint result = new IntPoint(point1);
result.Add(point2);
return result;
} | 68 | 131 | 171 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3a9920e64c757f31f2f30967840ecd78dda4c0d62772418f2d8034bdd651bf74 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
993099c86b76814c4161403c | Harium/keel | src/main/java/com/harium/keel/catalano/core/IntPoint.java | IntPoint.Subtract | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/IntPoint.java#L172-L176 | train | java | Subtract values of two points.
@param point1 IntPoint.
@param point2 IntPoint.
@return IntPoint that contains X and Y axis coordinate. | public static IntPoint Subtract(IntPoint point1, IntPoint point2) {
IntPoint result = new IntPoint(point1);
result.Subtract(point2);
return result;
} | Subtract values of two points.
@param point1 IntPoint.
@param point2 IntPoint.
@return IntPoint that contains X and Y axis coordinate.
public static IntPoint Subtract(IntPoint point1, IntPoint point2) {
IntPoint result = new IntPoint(point1);
result.Subtract(point2);
return result;
} | 70 | 135 | 181 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b8dd04f064437177ff729909b1ad8189aaff1e2be90498b5e6d838dfd8b1f786 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
dc6a05e17afdedc9b2c08ba0 | Harium/keel | src/main/java/com/harium/keel/catalano/core/IntPoint.java | IntPoint.Multiply | https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/IntPoint.java#L205-L209 | train | java | Multiply values of two points.
@param point1 IntPoint.
@param point2 IntPoint.
@return IntPoint that contains X and Y axis coordinate. | public static IntPoint Multiply(IntPoint point1, IntPoint point2) {
IntPoint result = new IntPoint(point1);
result.Multiply(point2);
return result;
} | Multiply values of two points.
@param point1 IntPoint.
@param point2 IntPoint.
@return IntPoint that contains X and Y axis coordinate.
public static IntPoint Multiply(IntPoint point1, IntPoint point2) {
IntPoint result = new IntPoint(point1);
result.Multiply(point2);
return result;
} | 69 | 135 | 181 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f8998aab9672e6f322c9ad14ed2a724385621e58e869c71eb15cf5994e4a6a44 | LGPL-3.0 | weak-copyleft | https://github.com/Harium/keel/blob/master/LICENSE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.