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
b719022f008431cbdfcd0e0b
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMFile.java
IIMFile.add
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMFile.java#L79-L88
train
java
Adds a data set to IIM file. @param ds data set id (see constants in IIM class) @param value data set value. Null values are silently ignored. @throws SerializationException if value can't be serialized by data set's serializer @throws InvalidDataSetException if data set isn't defined
public void add(int ds, Object value) throws SerializationException, InvalidDataSetException { if (value == null) { return; } DataSetInfo dsi = dsiFactory.create(ds); byte[] data = dsi.getSerializer().serialize(value, activeSerializationContext); DataSet dataSet = new DefaultDataSet(dsi, data); ...
Adds a data set to IIM file. @param ds data set id (see constants in IIM class) @param value data set value. Null values are silently ignored. @throws SerializationException if value can't be serialized by data set's serializer @throws InvalidDataSetException if data set isn't defined public void add(int ds, Object v...
149
286
346
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
1f7213573753b48e782d11ee0677429507c724343bd52d213de4d91669cde129
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
e1234f00110884bc6e034b40
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMFile.java
IIMFile.addDateTimeHelper
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMFile.java#L102-L114
train
java
Adds a data set with date-time value to IIM file. @param ds data set id (see constants in IIM class) @param date date to set. Null values are silently ignored. @throws SerializationException if value can't be serialized by data set's serializer @throws InvalidDataSetException if data set isn't defined
public void addDateTimeHelper(int ds, Date date) throws SerializationException, InvalidDataSetException { if (date == null) { return; } DataSetInfo dsi = dsiFactory.create(ds); SimpleDateFormat df = new SimpleDateFormat(dsi.getSerializer().toString()); String value = df.format(date); byte[] da...
Adds a data set with date-time value to IIM file. @param ds data set id (see constants in IIM class) @param date date to set. Null values are silently ignored. @throws SerializationException if value can't be serialized by data set's serializer @throws InvalidDataSetException if data set isn't defined public void add...
175
303
463
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2d4775d7477ab055bce3819d42bff7b4f9f86fafa2fdcaddd5b8e5147f2e7f44
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
f1fa59d4f24b9284f2acdf68
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMFile.java
IIMFile.get
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMFile.java#L148-L159
train
java
Gets a first data set value. @param dataSet IIM record and dataset code (See constants in {@link IIM}) @return data set value @throws SerializationException if value can't be deserialized from binary representation
public Object get(int dataSet) throws SerializationException { Object result = null; for (Iterator<DataSet> i = dataSets.iterator(); i.hasNext();) { DataSet ds = i.next(); DataSetInfo info = ds.getInfo(); if (info.getDataSetNumber() == dataSet) { result = getData(ds); break; } } re...
Gets a first data set value. @param dataSet IIM record and dataset code (See constants in {@link IIM}) @return data set value @throws SerializationException if value can't be deserialized from binary representation public Object get(int dataSet) throws SerializationException { Object result = null; for (Iterato...
129
215
336
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2134995f8d637c2a2f3b13feeef80dba2a0c64bada090c9fbbe2822415bb92bd
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
1ada63e6f509ae712a37d50d
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMFile.java
IIMFile.getAll
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMFile.java#L170-L180
train
java
Gets all data set values. @param dataSet IIM record and dataset code (See constants in {@link IIM}) @return data set value @throws SerializationException if value can't be deserialized from binary representation
public List<Object> getAll(int dataSet) throws SerializationException { List<Object> result = new ArrayList<Object>(); for (Iterator<DataSet> i = dataSets.iterator(); i.hasNext();) { DataSet ds = i.next(); DataSetInfo info = ds.getInfo(); if (info.getDataSetNumber() == dataSet) { result.add(getDa...
Gets all data set values. @param dataSet IIM record and dataset code (See constants in {@link IIM}) @return data set value @throws SerializationException if value can't be deserialized from binary representation public List<Object> getAll(int dataSet) throws SerializationException { List<Object> result = new Array...
132
212
361
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b7e4bf62d6b9c4e618400a5c934eea1c40fcafb4672861e3a77c2c5a43d9f203
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
56cd84783c5878625e5234ce
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMFile.java
IIMFile.getDateTimeHelper
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMFile.java#L203-L233
train
java
Gets combined date/time value from two data sets. @param dateDataSet data set containing date value @param timeDataSet data set containing time value @return date/time instance @throws SerializationException if data sets can't be deserialized from binary format or can't be parsed
public Date getDateTimeHelper(int dateDataSet, int timeDataSet) throws SerializationException { DataSet dateDS = null; DataSet timeDS = null; for (Iterator<DataSet> i = dataSets.iterator(); (dateDS == null || timeDS == null) && i.hasNext();) { DataSet ds = i.next(); DataSetInfo info = ds.getInfo(); ...
Gets combined date/time value from two data sets. @param dateDataSet data set containing date value @param timeDataSet data set containing time value @return date/time instance @throws SerializationException if data sets can't be deserialized from binary format or can't be parsed public Date getDateTimeHelper(int dat...
334
281
1,103
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4f42a7563cdf7e0fa6ab4d919c5e0190ed4362467407cb91eae8b7319e97ff55
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
49c3d2ca37e458be3f06bff7
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMFile.java
IIMFile.readFrom
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMFile.java#L288-L357
train
java
Reads data sets from a passed reader. @param reader data sets source @param recover max number of errors reading process will try to recover from. Set to 0 to fail immediately @throws IOException if reader can't read underlying stream @throws InvalidDataSetException if invalid/undefined data set is encountered
public void readFrom(IIMReader reader, int recover) throws IOException, InvalidDataSetException { final boolean doLog = log != null; for (;;) { try { DataSet ds = reader.read(); if (ds == null) { break; } if (doLog) { log.debug("Read data set " + ds); } DataSetInf...
Reads data sets from a passed reader. @param reader data sets source @param recover max number of errors reading process will try to recover from. Set to 0 to fail immediately @throws IOException if reader can't read underlying stream @throws InvalidDataSetException if invalid/undefined data set is encountered public...
581
312
1,832
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ed62a6621664d36f6c788eca97b24fd1293ba60bc778479e9775050cde1c58eb
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
e7e968524de30fb2781407dd
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMFile.java
IIMFile.writeTo
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMFile.java#L469-L478
train
java
Writes this IIMFile to writer. @param writer writer to write to @throws IOException if file can't be written to
public void writeTo(IIMWriter writer) throws IOException { final boolean doLog = log != null; for (Iterator<DataSet> i = dataSets.iterator(); i.hasNext();) { DataSet ds = i.next(); writer.write(ds); if (doLog) { log.debug("Wrote data set " + ds); } } }
Writes this IIMFile to writer. @param writer writer to write to @throws IOException if file can't be written to public void writeTo(IIMWriter writer) throws IOException { final boolean doLog = log != null; for (Iterator<DataSet> i = dataSets.iterator(); i.hasNext();) { DataSet ds = i.next(); writer.writ...
106
112
284
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
81b03ce029a1662a9f5d9497f9eb0336bcfb077b9265b80af3e03a73b29ad46c
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
3b3a9f06d38edc7b09955c66
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMFile.java
IIMFile.validate
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMFile.java#L500-L513
train
java
Checks if data set is mandatory but missing or non repeatable but having multiple values in this IIM instance. @param info IIM data set to check @return list of constraint violations, empty set if data set is valid
public Set<ConstraintViolation> validate(DataSetInfo info) { Set<ConstraintViolation> errors = new LinkedHashSet<ConstraintViolation>(); try { if (info.isMandatory() && get(info.getDataSetNumber()) == null) { errors.add(new ConstraintViolation(info, ConstraintViolation.MANDATORY_MISSING)); } if (...
Checks if data set is mandatory but missing or non repeatable but having multiple values in this IIM instance. @param info IIM data set to check @return list of constraint violations, empty set if data set is valid public Set<ConstraintViolation> validate(DataSetInfo info) { Set<ConstraintViolation> errors = new L...
189
215
633
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
525d4c5b02023dfe18d61b54dcea90a4736ed16ace15d371b54dbdd17e8b5a5d
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
6ddfdc4f24b7f2254787d8e0
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMFile.java
IIMFile.validate
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMFile.java#L523-L534
train
java
Checks all data sets in a given record for constraint violations. @param record IIM record (1,2,3, ...) to check @return list of constraint violations, empty set if IIM file is valid
public Set<ConstraintViolation> validate(int record) { Set<ConstraintViolation> errors = new LinkedHashSet<ConstraintViolation>(); for (int ds = 0; ds < 250; ++ds) { try { DataSetInfo dataSetInfo = dsiFactory.create(IIM.DS(record, ds)); errors.addAll(validate(dataSetInfo)); } catch (InvalidDataS...
Checks all data sets in a given record for constraint violations. @param record IIM record (1,2,3, ...) to check @return list of constraint violations, empty set if IIM file is valid public Set<ConstraintViolation> validate(int record) { Set<ConstraintViolation> errors = new LinkedHashSet<ConstraintViolation>(); ...
158
184
442
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
23b88ec3a95410b716c6a0fe8b79244f2dc2e81b2c0c38b72bcd9c3450072f99
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
86cc071820b21997379def37
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMFile.java
IIMFile.validate
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMFile.java#L541-L547
train
java
Checks all data sets in IIM records 1, 2 and 3 for constraint violations. @return list of constraint violations, empty set if IIM file is valid
public Set<ConstraintViolation> validate() { Set<ConstraintViolation> errors = new LinkedHashSet<ConstraintViolation>(); for (int record = 1; record <= 3; ++record) { errors.addAll(validate(record)); } return errors; }
Checks all data sets in IIM records 1, 2 and 3 for constraint violations. @return list of constraint violations, empty set if IIM file is valid public Set<ConstraintViolation> validate() { Set<ConstraintViolation> errors = new LinkedHashSet<ConstraintViolation>(); for (int record = 1; record <= 3; ++record) { ...
92
144
236
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
46b754243aae8b7af6d74857a08af13c3e836cc589999d13dd6d269931f19669
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
d0a01aa9bf8d6e1b77bdcaa4
Harium/keel
src/main/java/com/harium/keel/effect/Grayscale.java
Grayscale.apply
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/effect/Grayscale.java#L188-L210
train
java
Apply filter to a FastBitmap. @param input Image to be processed.
@Override public ImageSource apply(ImageSource input) { if (input.isGrayscale()) { return input; } if (!isAlgorithm) { double r, g, b, gray; for (int i = 0; i < EffectHelper.getSize(input); i++) { r = EffectHelper.getRed(i, input)...
Apply filter to a FastBitmap. @param input Image to be processed. @Override public ImageSource apply(ImageSource input) { if (input.isGrayscale()) { return input; } if (!isAlgorithm) { double r, g, b, gray; for (int i = 0; i < EffectHelper.getSi...
189
66
797
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
88824c42700382bb62845e9e0b4fbd1ec8576e44175e94109613d774012be889
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
31f376c090d788d5c864b33a
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DevicesStatusApi.java
DevicesStatusApi.getDeviceStatus
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DevicesStatusApi.java#L132-L135
train
java
Get Device Status Get Device Status @param deviceId Device ID. (required) @param includeSnapshot Include device snapshot into the response (optional) @param includeSnapshotTimestamp Include device snapshot timestamp into the response (optional) @return DeviceStatus @throws ApiException If fail to call the API, e.g. ser...
public DeviceStatus getDeviceStatus(String deviceId, Boolean includeSnapshot, Boolean includeSnapshotTimestamp) throws ApiException { ApiResponse<DeviceStatus> resp = getDeviceStatusWithHttpInfo(deviceId, includeSnapshot, includeSnapshotTimestamp); return resp.getData(); }
Get Device Status Get Device Status @param deviceId Device ID. (required) @param includeSnapshot Include device snapshot into the response (optional) @param includeSnapshotTimestamp Include device snapshot timestamp into the response (optional) @return DeviceStatus @throws ApiException If fail to call the API, e.g. ser...
120
369
293
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
feaf5de7ba12baba2e84d8e6ed6f9058384a8b0f929be762be8c187eb0149d32
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
7444a4597c406fd2b1a29f24
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DevicesStatusApi.java
DevicesStatusApi.getDeviceStatusWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DevicesStatusApi.java#L146-L150
train
java
Get Device Status Get Device Status @param deviceId Device ID. (required) @param includeSnapshot Include device snapshot into the response (optional) @param includeSnapshotTimestamp Include device snapshot timestamp into the response (optional) @return ApiResponse&lt;DeviceStatus&gt; @throws ApiException If fail to cal...
public ApiResponse<DeviceStatus> getDeviceStatusWithHttpInfo(String deviceId, Boolean includeSnapshot, Boolean includeSnapshotTimestamp) throws ApiException { com.squareup.okhttp.Call call = getDeviceStatusValidateBeforeCall(deviceId, includeSnapshot, includeSnapshotTimestamp, null, null); Type localVar...
Get Device Status Get Device Status @param deviceId Device ID. (required) @param includeSnapshot Include device snapshot into the response (optional) @param includeSnapshotTimestamp Include device snapshot timestamp into the response (optional) @return ApiResponse&lt;DeviceStatus&gt; @throws ApiException If fail to cal...
154
388
441
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
bf4b94cd6bd91722b2bde8eeb80a3a52c49644bdefb965ae0846ac68d5d0653e
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
662a41c2e97118f989991561
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DevicesStatusApi.java
DevicesStatusApi.getDeviceStatusAsync
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DevicesStatusApi.java#L162-L187
train
java
Get Device Status (asynchronously) Get Device Status @param deviceId Device ID. (required) @param includeSnapshot Include device snapshot into the response (optional) @param includeSnapshotTimestamp Include device snapshot timestamp into the response (optional) @param callback The callback to be executed when the API c...
public com.squareup.okhttp.Call getDeviceStatusAsync(String deviceId, Boolean includeSnapshot, Boolean includeSnapshotTimestamp, final ApiCallback<DeviceStatus> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener pro...
Get Device Status (asynchronously) Get Device Status @param deviceId Device ID. (required) @param includeSnapshot Include device snapshot into the response (optional) @param includeSnapshotTimestamp Include device snapshot timestamp into the response (optional) @param callback The callback to be executed when the API c...
312
452
1,372
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
655d6622ebe091a083ae3f0de0466cc98d830ec1fa1453d4fcd0d6de91095290
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
7d45746b4ce6dadfe3b318f2
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DevicesStatusApi.java
DevicesStatusApi.getDevicesStatus
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DevicesStatusApi.java#L262-L265
train
java
Get Devices Status Get Devices Status @param dids List of device ids (comma-separated) for which the statuses are requested. (required) @param includeSnapshot Include device snapshot into the response (optional) @param includeSnapshotTimestamp Include device snapshot timestamp into the response (optional) @return Devic...
public DeviceStatusBatch getDevicesStatus(String dids, Boolean includeSnapshot, Boolean includeSnapshotTimestamp) throws ApiException { ApiResponse<DeviceStatusBatch> resp = getDevicesStatusWithHttpInfo(dids, includeSnapshot, includeSnapshotTimestamp); return resp.getData(); }
Get Devices Status Get Devices Status @param dids List of device ids (comma-separated) for which the statuses are requested. (required) @param includeSnapshot Include device snapshot into the response (optional) @param includeSnapshotTimestamp Include device snapshot timestamp into the response (optional) @return Devic...
137
436
297
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
64ee115d146e45ba21568585153df098cde91f0e32e3ea6054d6df1a537b70c0
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
fa48c3345e4b348e75991e34
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DevicesStatusApi.java
DevicesStatusApi.getDevicesStatusWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DevicesStatusApi.java#L276-L280
train
java
Get Devices Status Get Devices Status @param dids List of device ids (comma-separated) for which the statuses are requested. (required) @param includeSnapshot Include device snapshot into the response (optional) @param includeSnapshotTimestamp Include device snapshot timestamp into the response (optional) @return ApiRe...
public ApiResponse<DeviceStatusBatch> getDevicesStatusWithHttpInfo(String dids, Boolean includeSnapshot, Boolean includeSnapshotTimestamp) throws ApiException { com.squareup.okhttp.Call call = getDevicesStatusValidateBeforeCall(dids, includeSnapshot, includeSnapshotTimestamp, null, null); Type localVarR...
Get Devices Status Get Devices Status @param dids List of device ids (comma-separated) for which the statuses are requested. (required) @param includeSnapshot Include device snapshot into the response (optional) @param includeSnapshotTimestamp Include device snapshot timestamp into the response (optional) @return ApiRe...
171
455
445
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
91429d9018bf92bd75f2df2283640a9b91584092710ad8eb93da020574b49ccd
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
43a73f6378cd425b2bfe3e04
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DevicesStatusApi.java
DevicesStatusApi.putDeviceStatus
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DevicesStatusApi.java#L386-L389
train
java
Update Device Status Update Device Status @param deviceId Device ID. (required) @param body Body (optional) @return DeviceStatus @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public DeviceStatus putDeviceStatus(String deviceId, DeviceStatusPut body) throws ApiException { ApiResponse<DeviceStatus> resp = putDeviceStatusWithHttpInfo(deviceId, body); return resp.getData(); }
Update Device Status Update Device Status @param deviceId Device ID. (required) @param body Body (optional) @return DeviceStatus @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public DeviceStatus putDeviceStatus(String deviceId, DeviceStatusPut body) throws ApiE...
91
232
219
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
426742baabc5559eab3ed619f6d50f2dc2e74411ff1dba3610cf43d85ffda270
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
15ecd46e38225b65454c53ed
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DevicesStatusApi.java
DevicesStatusApi.putDeviceStatusWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DevicesStatusApi.java#L399-L403
train
java
Update Device Status Update Device Status @param deviceId Device ID. (required) @param body Body (optional) @return ApiResponse&lt;DeviceStatus&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<DeviceStatus> putDeviceStatusWithHttpInfo(String deviceId, DeviceStatusPut body) throws ApiException { com.squareup.okhttp.Call call = putDeviceStatusValidateBeforeCall(deviceId, body, null, null); Type localVarReturnType = new TypeToken<DeviceStatus>(){}.getType(); return api...
Update Device Status Update Device Status @param deviceId Device ID. (required) @param body Body (optional) @return ApiResponse&lt;DeviceStatus&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ApiResponse<DeviceStatus> putDeviceStatusWithHttpInfo(String...
125
251
367
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5fe3eae0a3065a95905f0003bf3e597b12fc0f438c4bd3feab3c9b6e31b0055f
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
f4713791963b1c5f2b785d91
Harium/keel
src/main/java/jdt/triangulation/PointComparator.java
PointComparator.compare
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/jdt/triangulation/PointComparator.java#L15-L41
train
java
compare between two points.
public int compare(Vector3 o1, Vector3 o2) { int ans = 0; if (o1 != null && o2 != null) { Vector3 d1 = o1; Vector3 d2 = o2; if (d1.x > d2.x) return 1; if (d1.x < d2.x) return -1; // x1 == x2 if (d1.y > d2.y) return 1; if (d1.y < d2.y) return -1; } else { if (o1 == null &&...
compare between two points. public int compare(Vector3 o1, Vector3 o2) { int ans = 0; if (o1 != null && o2 != null) { Vector3 d1 = o1; Vector3 d2 = o2; if (d1.x > d2.x) return 1; if (d1.x < d2.x) return -1; // x1 == x2 if (d1.y > d2.y) return 1; if (d1.y < d2.y) return -1; ...
200
27
465
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f1cb17a4f665aac958473911aac7f900e532084ed67a7b828ca984f69c9f31aa
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
f4c5da960cccf2c69f127642
Harium/keel
src/main/java/com/harium/keel/catalano/math/random/Random.java
Random.nextDouble
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/random/Random.java#L92-L101
train
java
Generate a uniform random number in the range [lo, hi) @param lo lower limit of range @param hi upper limit of range @return a uniform random real in the range [lo, hi)
public double nextDouble(double lo, double hi) { if (lo < 0) { if (nextInt(2) == 0) return -nextDouble(0, -lo); else return nextDouble(0, hi); } else { return (lo + (hi - lo) * nextDouble()); } }
Generate a uniform random number in the range [lo, hi) @param lo lower limit of range @param hi upper limit of range @return a uniform random real in the range [lo, hi) public double nextDouble(double lo, double hi) { if (lo < 0) { if (nextInt(2) == 0) return -nextDouble(0, -lo); ...
116
169
291
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
69cb22891ec102383e52884c47e89ffb898573080eecff3b0585f1e85c034cd6
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
a92db441a53c6209fe428969
Harium/keel
src/main/java/com/harium/keel/catalano/math/random/Random.java
Random.permutate
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/random/Random.java#L156-L163
train
java
Generates a permutation of given array.
public void permutate(int[] x) { for (int i = 0; i < x.length; i++) { int j = i + nextInt(x.length - i); int s = x[i]; x[i] = x[j]; x[j] = s; } }
Generates a permutation of given array. public void permutate(int[] x) { for (int i = 0; i < x.length; i++) { int j = i + nextInt(x.length - i); int s = x[i]; x[i] = x[j]; x[j] = s; } }
74
39
213
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8729252a81fe76463f5bc33bc989c0d049feb83e1b39450ff54ede33169a67e7
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
d6194ae03f1f40ba460dda77
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/TagsApi.java
TagsApi.getTagCategoriesWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/TagsApi.java#L128-L132
train
java
Get all categories Get all tags marked as categories @return ApiResponse&lt;TagsEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<TagsEnvelope> getTagCategoriesWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = getTagCategoriesValidateBeforeCall(null, null); Type localVarReturnType = new TypeToken<TagsEnvelope>(){}.getType(); return apiClient.execute(call, localVarReturnType); }
Get all categories Get all tags marked as categories @return ApiResponse&lt;TagsEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ApiResponse<TagsEnvelope> getTagCategoriesWithHttpInfo() throws ApiException { com.squareup.okhttp.Call cal...
102
196
316
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
fe043ee0dc70595458d2196ae2ae3432b093af3238841b92b717a482fab50130
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
2644e5fcc96c49f7d734440a
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/TagsApi.java
TagsApi.getTagSuggestions
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/TagsApi.java#L239-L242
train
java
Get tag suggestions Get tag suggestions for applications, device types that have been most used with a group of tags. @param entityType Entity type name. (optional) @param tags Comma separated list of tags. (optional) @param name Name of tags used for type ahead. (optional) @param count Number of results to return. Max...
public TagsEnvelope getTagSuggestions(String entityType, String tags, String name, Integer count) throws ApiException { ApiResponse<TagsEnvelope> resp = getTagSuggestionsWithHttpInfo(entityType, tags, name, count); return resp.getData(); }
Get tag suggestions Get tag suggestions for applications, device types that have been most used with a group of tags. @param entityType Entity type name. (optional) @param tags Comma separated list of tags. (optional) @param name Name of tags used for type ahead. (optional) @param count Number of results to return. Max...
149
460
259
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b5fc58a0b2d1e39e72d640dc8231b6efa8fd8208f0b78e1046eeb0a8e3130a4b
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
9deb6dc05a5087fd39aef724
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/TagsApi.java
TagsApi.getTagSuggestionsWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/TagsApi.java#L254-L258
train
java
Get tag suggestions Get tag suggestions for applications, device types that have been most used with a group of tags. @param entityType Entity type name. (optional) @param tags Comma separated list of tags. (optional) @param name Name of tags used for type ahead. (optional) @param count Number of results to return. Max...
public ApiResponse<TagsEnvelope> getTagSuggestionsWithHttpInfo(String entityType, String tags, String name, Integer count) throws ApiException { com.squareup.okhttp.Call call = getTagSuggestionsValidateBeforeCall(entityType, tags, name, count, null, null); Type localVarReturnType = new TypeToken<TagsEnv...
Get tag suggestions Get tag suggestions for applications, device types that have been most used with a group of tags. @param entityType Entity type name. (optional) @param tags Comma separated list of tags. (optional) @param name Name of tags used for type ahead. (optional) @param count Number of results to return. Max...
183
479
407
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
67f604ab81d3000a81055e9ff1a5b7b204cc2c01e0b3f031286da0900fb49633
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
a1733518db75d6ac410f35df
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/TagsApi.java
TagsApi.getTagsByCategories
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/TagsApi.java#L360-L363
train
java
Get all tags of categories Get all tags related to the list of categories @param categories Comma separated list of categories. (optional) @return TagsEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public TagsEnvelope getTagsByCategories(String categories) throws ApiException { ApiResponse<TagsEnvelope> resp = getTagsByCategoriesWithHttpInfo(categories); return resp.getData(); }
Get all tags of categories Get all tags related to the list of categories @param categories Comma separated list of categories. (optional) @return TagsEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public TagsEnvelope getTagsByCategories(String categori...
91
263
203
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
51f91303050bc2bdb721d26bea1612393423bab82cdf2e25b97bb8821131d9b5
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
ce106ea2b49e1e80d660a730
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/TagsApi.java
TagsApi.getTagsByCategoriesWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/TagsApi.java#L372-L376
train
java
Get all tags of categories Get all tags related to the list of categories @param categories Comma separated list of categories. (optional) @return ApiResponse&lt;TagsEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<TagsEnvelope> getTagsByCategoriesWithHttpInfo(String categories) throws ApiException { com.squareup.okhttp.Call call = getTagsByCategoriesValidateBeforeCall(categories, null, null); Type localVarReturnType = new TypeToken<TagsEnvelope>(){}.getType(); return apiClient.execute(c...
Get all tags of categories Get all tags related to the list of categories @param categories Comma separated list of categories. (optional) @return ApiResponse&lt;TagsEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ApiResponse<TagsEnvelope> get...
125
282
351
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
68e96173032c2659f550d624c12699e7b4b866531a4283baec194e8171e73c02
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
4cb47c5f4c219e9629669829
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/RulesApi.java
RulesApi.createRule
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/RulesApi.java#L133-L136
train
java
Create Rule Create a new Rule @param ruleInfo Rule object that needs to be added (required) @param userId User ID (required) @return RuleEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public RuleEnvelope createRule(RuleCreationInfo ruleInfo, String userId) throws ApiException { ApiResponse<RuleEnvelope> resp = createRuleWithHttpInfo(ruleInfo, userId); return resp.getData(); }
Create Rule Create a new Rule @param ruleInfo Rule object that needs to be added (required) @param userId User ID (required) @return RuleEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public RuleEnvelope createRule(RuleCreationInfo ruleInfo, String user...
97
249
214
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
76a4bd3a2bd54b26300636e66b53a86d3141249b2ca0e73e1ec3c95b9ed3ff7a
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
ab5a3486b1c55fc403b1f8b0
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/RulesApi.java
RulesApi.createRuleWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/RulesApi.java#L146-L150
train
java
Create Rule Create a new Rule @param ruleInfo Rule object that needs to be added (required) @param userId User ID (required) @return ApiResponse&lt;RuleEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<RuleEnvelope> createRuleWithHttpInfo(RuleCreationInfo ruleInfo, String userId) throws ApiException { com.squareup.okhttp.Call call = createRuleValidateBeforeCall(ruleInfo, userId, null, null); Type localVarReturnType = new TypeToken<RuleEnvelope>(){}.getType(); return apiClien...
Create Rule Create a new Rule @param ruleInfo Rule object that needs to be added (required) @param userId User ID (required) @return ApiResponse&lt;RuleEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ApiResponse<RuleEnvelope> createRuleWithHtt...
131
268
362
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3f059692730d102c460c8455b4b5563682593c5793ea088a235e6468bb23c0e1
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
2dcb5edfad9b838cb642b4e3
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/RulesApi.java
RulesApi.deleteRule
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/RulesApi.java#L254-L257
train
java
Delete Rule Delete a Rule @param ruleId Rule ID. (required) @return RuleEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public RuleEnvelope deleteRule(String ruleId) throws ApiException { ApiResponse<RuleEnvelope> resp = deleteRuleWithHttpInfo(ruleId); return resp.getData(); }
Delete Rule Delete a Rule @param ruleId Rule ID. (required) @return RuleEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public RuleEnvelope deleteRule(String ruleId) throws ApiException { ApiResponse<RuleEnvelope> resp = deleteRuleWithHttpInfo(ru...
77
184
177
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
17153a491d9d0fe1529ff3aa86b2668d78f4e441fe1af1f4b5464faa5546bd8b
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
06b8d5daafd630617d84bf76
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/RulesApi.java
RulesApi.deleteRuleWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/RulesApi.java#L266-L270
train
java
Delete Rule Delete a Rule @param ruleId Rule ID. (required) @return ApiResponse&lt;RuleEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<RuleEnvelope> deleteRuleWithHttpInfo(String ruleId) throws ApiException { com.squareup.okhttp.Call call = deleteRuleValidateBeforeCall(ruleId, null, null); Type localVarReturnType = new TypeToken<RuleEnvelope>(){}.getType(); return apiClient.execute(call, localVarReturnType); ...
Delete Rule Delete a Rule @param ruleId Rule ID. (required) @return ApiResponse&lt;RuleEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ApiResponse<RuleEnvelope> deleteRuleWithHttpInfo(String ruleId) throws ApiException { com.squareup.o...
111
203
325
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
674584e26371e011cd91c1cfa549348548aa8dd4cbbbb17c8b7cdf3545302000
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
9746eb774924dd4c6e30ffae
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/RulesApi.java
RulesApi.getRule
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/RulesApi.java#L373-L376
train
java
Get Rule Get a rule using the Rule ID @param ruleId Rule ID. (required) @return RuleEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public RuleEnvelope getRule(String ruleId) throws ApiException { ApiResponse<RuleEnvelope> resp = getRuleWithHttpInfo(ruleId); return resp.getData(); }
Get Rule Get a rule using the Rule ID @param ruleId Rule ID. (required) @return RuleEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public RuleEnvelope getRule(String ruleId) throws ApiException { ApiResponse<RuleEnvelope> resp = getRuleWithHttpI...
81
196
171
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
13bf8af5171754eedf8bb637871b4268402c3203b217c3e7b36d325d6d838b62
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
9971b46b77cc4e2486a62426
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/RulesApi.java
RulesApi.updateRule
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/RulesApi.java#L498-L501
train
java
Update Rule Update an existing Rule @param ruleId Rule ID. (required) @param ruleInfo Rule object that needs to be updated (required) @return RuleEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public RuleEnvelope updateRule(String ruleId, RuleUpdateInfo ruleInfo) throws ApiException { ApiResponse<RuleEnvelope> resp = updateRuleWithHttpInfo(ruleId, ruleInfo); return resp.getData(); }
Update Rule Update an existing Rule @param ruleId Rule ID. (required) @param ruleInfo Rule object that needs to be updated (required) @return RuleEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public RuleEnvelope updateRule(String ruleId, RuleUpdateInfo...
100
258
212
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2674262af455e44230dc6804e7480c6bdb1297f9b51c04abf2b3fc0d3897eea7
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
d0f51a52c176cee8fff80d5b
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/RulesApi.java
RulesApi.updateRuleWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/RulesApi.java#L511-L515
train
java
Update Rule Update an existing Rule @param ruleId Rule ID. (required) @param ruleInfo Rule object that needs to be updated (required) @return ApiResponse&lt;RuleEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<RuleEnvelope> updateRuleWithHttpInfo(String ruleId, RuleUpdateInfo ruleInfo) throws ApiException { com.squareup.okhttp.Call call = updateRuleValidateBeforeCall(ruleId, ruleInfo, null, null); Type localVarReturnType = new TypeToken<RuleEnvelope>(){}.getType(); return apiClient....
Update Rule Update an existing Rule @param ruleId Rule ID. (required) @param ruleInfo Rule object that needs to be updated (required) @return ApiResponse&lt;RuleEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ApiResponse<RuleEnvelope> updateRu...
134
277
360
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
37d6ef3b00e31d9276d33c192fc67ea634635382f625cfc13b4b25daf2439c3c
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
538d8dd90dcc28afb11eaccc
vnesek/nmote-iim4j
src/main/java/com/nmote/iim4j/IIMReader.java
IIMReader.recover
https://github.com/vnesek/nmote-iim4j/blob/ec55b02fc644cd722e93051ac0bdb96b00cb42a8/src/main/java/com/nmote/iim4j/IIMReader.java#L119-L143
train
java
Tries to recover from errors that occured during last call to read. Searches for next start or record tag (0x1C) in input stream. Can be called only on cached inputs @return true if IIMReader has recovered from error and you can use read to read next dataset @throws IOException if stream can't be read @throws IllegalS...
public boolean recover() throws IOException { if (!input.isCached()) { throw new IllegalStateException("can't recover using input that isn't cached"); } synchronized (input) { // Seek a byte after last position input.seek(pos + 1); int tag = input.read(); while (tag != 28) { if (ta...
Tries to recover from errors that occured during last call to read. Searches for next start or record tag (0x1C) in input stream. Can be called only on cached inputs @return true if IIMReader has recovered from error and you can use read to read next dataset @throws IOException if stream can't be read @throws IllegalS...
222
355
541
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c03f5d2cb1d530b858b520780ae68347a5dc5caa5fa924430480e50939b24059
BSD-3-Clause
permissive
https://github.com/vnesek/nmote-iim4j/blob/master/LICENSE.txt
cf5e2d6b155e9156d0ed0b62
Harium/keel
src/main/java/com/harium/keel/filter/search/flood/FloodFillSearch.java
FloodFillSearch.addNeighbor
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/filter/search/flood/FloodFillSearch.java#L137-L145
train
java
May have to be changed to let multiple touch
protected void addNeighbor(Queue<ColorPoint> queue, int px, int py, int color, Feature component) { if (!inBoundary(px, py, component)) { return; } if (!mask.isTouched(px, py)) { queue.add(new ColorPoint(px, py, color)); } }
May have to be changed to let multiple touch protected void addNeighbor(Queue<ColorPoint> queue, int px, int py, int color, Feature component) { if (!inBoundary(px, py, component)) { return; } if (!mask.isTouched(px, py)) { queue.add(new ColorPoint(px, py, color)); ...
79
44
285
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8cc1d679c4a20a6a1d1d9b58bb2908771c302a3b7e129030d6d7cba9bf52b239
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
0848139ec366fe07db5298f6
Harium/keel
src/main/java/com/harium/keel/catalano/math/function/Gaussian.java
Gaussian.Function1D
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Gaussian.java#L80-L82
train
java
1-D Gaussian function. @param x value. @return Function's value at point x.
public double Function1D(double x) { return Math.exp(x * x / (-2 * sqrSigma)) / (Math.sqrt(2 * Math.PI) * sigma); }
1-D Gaussian function. @param x value. @return Function's value at point x. public double Function1D(double x) { return Math.exp(x * x / (-2 * sqrSigma)) / (Math.sqrt(2 * Math.PI) * sigma); }
55
76
127
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b023d75a8ccba809f8fb818e94d379aabd06b549b31c275a1402baa538ef0baf
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
0d5e029b6e5da1973ea1508c
Harium/keel
src/main/java/com/harium/keel/catalano/math/function/Gaussian.java
Gaussian.Function2D
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Gaussian.java#L91-L93
train
java
2-D Gaussian function. @param x value. @param y value. @return Function's value at point (x,y).
public double Function2D(double x, double y) { return Math.exp(-(x * x + y * y) / (2 * sqrSigma)) / (2 * Math.PI * sqrSigma); }
2-D Gaussian function. @param x value. @param y value. @return Function's value at point (x,y). public double Function2D(double x, double y) { return Math.exp(-(x * x + y * y) / (2 * sqrSigma)) / (2 * Math.PI * sqrSigma); }
67
96
139
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
805b7d0b2384601a737c44e6aa8b97770174e1d4e94e792f0f8ccd98a95b3c93
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
646e61aaeb16b2c5516e7730
Harium/keel
src/main/java/com/harium/keel/catalano/math/function/Gaussian.java
Gaussian.Kernel1D
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Gaussian.java#L101-L119
train
java
1-D Gaussian kernel. @param size Kernel size (should be odd), [3, 101]. @return Returns 1-D Gaussian kernel of the specified size.
public double[] Kernel1D(int size) { if (((size % 2) == 0) || (size < 3) || (size > 101)) { try { throw new Exception("Wrong size"); } catch (Exception e) { e.printStackTrace(); } } int r = size / 2; // kernel do...
1-D Gaussian kernel. @param size Kernel size (should be odd), [3, 101]. @return Returns 1-D Gaussian kernel of the specified size. public double[] Kernel1D(int size) { if (((size % 2) == 0) || (size < 3) || (size > 101)) { try { throw new Exception("Wrong size"); } catc...
164
131
513
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
600127cd1b030b7aaa3fd11c540c5012229eeaebe7bbcd9eb55ba907e066d51d
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
825f0f1071f88330753daeba
Harium/keel
src/main/java/com/harium/keel/catalano/math/function/Gaussian.java
Gaussian.Kernel2D
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/function/Gaussian.java#L127-L155
train
java
2-D Gaussian kernel. @param size Kernel size (should be odd), [3, 101]. @return Returns 2-D Gaussian kernel of specified size.
public double[][] Kernel2D(int size) { if (((size % 2) == 0) || (size < 3) || (size > 101)) { try { throw new Exception("Wrong size"); } catch (Exception e) { e.printStackTrace(); } } int r = size / 2; double[][] kernel...
2-D Gaussian kernel. @param size Kernel size (should be odd), [3, 101]. @return Returns 2-D Gaussian kernel of specified size. public double[][] Kernel2D(int size) { if (((size % 2) == 0) || (size < 3) || (size > 101)) { try { throw new Exception("Wrong size"); } catch ...
255
127
818
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5b7af4a20721bc66111517c1575489e7ed8d167c585733bb8a00cda3364af987
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
baebaf0b0d38e9e5ad7f6839
Harium/keel
src/main/java/com/harium/keel/effect/ExtractBoundary.java
ExtractBoundary.process
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/effect/ExtractBoundary.java#L94-L120
train
java
Get points after extract boundary. @param fastBitmap Image to be processed. @return List of points.
public ArrayList<IntPoint> process(ImageSource fastBitmap) { //FastBitmap l = new FastBitmap(fastBitmap); if (points == null) { apply(fastBitmap); } int width = fastBitmap.getWidth(); int height = fastBitmap.getHeight(); points = new ArrayList<IntPoin...
Get points after extract boundary. @param fastBitmap Image to be processed. @return List of points. public ArrayList<IntPoint> process(ImageSource fastBitmap) { //FastBitmap l = new FastBitmap(fastBitmap); if (points == null) { apply(fastBitmap); } int width = fastBi...
235
100
927
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c2fc69847c0319a3982faddfbb84fb160195ad998db2cb9ef2af0ccb3121ef89
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
afc004baf0aae8795ad20aa0
Harium/keel
src/main/java/com/harium/keel/catalano/core/DoublePoint.java
DoublePoint.Add
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/DoublePoint.java#L139-L143
train
java
Adds values of two points. @param point1 DoublePoint. @param point2 DoublePoint. @return A new DoublePoint with the add operation.
public DoublePoint Add(DoublePoint point1, DoublePoint point2) { DoublePoint result = new DoublePoint(point1); result.Add(point2); return result; }
Adds values of two points. @param point1 DoublePoint. @param point2 DoublePoint. @return A new DoublePoint with the add operation. public DoublePoint Add(DoublePoint point1, DoublePoint point2) { DoublePoint result = new DoublePoint(point1); result.Add(point2); return result; }
66
131
179
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
545d52ce13f6a1edc33ec7a6de29a421c084f6337289b8246ea5f0f97a5a299c
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
616b76dbeb6e02a5dd6c69d9
Harium/keel
src/main/java/com/harium/keel/catalano/core/DoublePoint.java
DoublePoint.Subtract
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/DoublePoint.java#L172-L176
train
java
Subtract values of two points. @param point1 DoublePoint. @param point2 DoublePoint. @return A new DoublePoint with the subtraction operation.
public DoublePoint Subtract(DoublePoint point1, DoublePoint point2) { DoublePoint result = new DoublePoint(point1); result.Subtract(point2); return result; }
Subtract values of two points. @param point1 DoublePoint. @param point2 DoublePoint. @return A new DoublePoint with the subtraction operation. public DoublePoint Subtract(DoublePoint point1, DoublePoint point2) { DoublePoint result = new DoublePoint(point1); result.Subtract(point2); return ...
68
143
189
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8b6e66625aba22010eb31b72f3d3ab9310f1a0bad75f8b5ea7d8341cd50f70d8
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
ec617627f606552aac124c05
Harium/keel
src/main/java/com/harium/keel/catalano/core/DoublePoint.java
DoublePoint.Multiply
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/DoublePoint.java#L205-L209
train
java
Multiply values of two points. @param point1 DoublePoint. @param point2 DoublePoint. @return A new DoublePoint with the multiplication operation.
public DoublePoint Multiply(DoublePoint point1, DoublePoint point2) { DoublePoint result = new DoublePoint(point1); result.Multiply(point2); return result; }
Multiply values of two points. @param point1 DoublePoint. @param point2 DoublePoint. @return A new DoublePoint with the multiplication operation. public DoublePoint Multiply(DoublePoint point1, DoublePoint point2) { DoublePoint result = new DoublePoint(point1); result.Multiply(point2); retu...
67
146
189
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c2f373bddb32bf8d812286c91096772262b777542b3c6668cecef6cdaccf0f2d
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
8b0748c2de21daa47e0a4efd
Harium/keel
src/main/java/com/harium/keel/catalano/core/DoublePoint.java
DoublePoint.Divide
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/DoublePoint.java#L238-L242
train
java
Divides values of two points. @param point1 DoublePoint. @param point2 DoublePoint. @return A new DoublePoint with the division operation.
public DoublePoint Divide(DoublePoint point1, DoublePoint point2) { DoublePoint result = new DoublePoint(point1); result.Divide(point2); return result; }
Divides values of two points. @param point1 DoublePoint. @param point2 DoublePoint. @return A new DoublePoint with the division operation. public DoublePoint Divide(DoublePoint point1, DoublePoint point2) { DoublePoint result = new DoublePoint(point1); result.Divide(point2); return result; ...
68
139
185
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4bbbde51317cc4239e4a2a8bebd4c9ed3d033aa2dfd7288dbbe39611f4c891e4
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
0ccf92f19045e7301d057532
Harium/keel
src/main/java/com/harium/keel/catalano/math/transform/DiscreteHartleyTransform.java
DiscreteHartleyTransform.Forward
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/transform/DiscreteHartleyTransform.java#L46-L62
train
java
1-D Forward Discrete Hartley Transform. @param data Data.
public static void Forward(double[] data) { double[] result = new double[data.length]; for (int k = 0; k < result.length; k++) { double sum = 0; for (int n = 0; n < data.length; n++) { double theta = ((2.0 * Math.PI) / data.length) * k * n; sum +=...
1-D Forward Discrete Hartley Transform. @param data Data. public static void Forward(double[] data) { double[] result = new double[data.length]; for (int k = 0; k < result.length; k++) { double sum = 0; for (int n = 0; n < data.length; n++) { double theta = ((2...
155
58
529
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
db7d7cd674b9ed3fdb786f3e1bf61218b3f526b9d4699526c6bfd90d058373e8
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
5d4f0c6fc3a747bff194a46d
Harium/keel
src/main/java/com/harium/keel/catalano/math/transform/DiscreteHartleyTransform.java
DiscreteHartleyTransform.Forward
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/math/transform/DiscreteHartleyTransform.java#L78-L98
train
java
2-D Forward Discrete Hartley Transform. @param data Data.
public static void Forward(double[][] data) { double[][] result = new double[data.length][data[0].length]; for (int m = 0; m < data.length; m++) { for (int n = 0; n < data[0].length; n++) { double sum = 0; for (int i = 0; i < result.length; i++) { ...
2-D Forward Discrete Hartley Transform. @param data Data. public static void Forward(double[][] data) { double[][] result = new double[data.length][data[0].length]; for (int m = 0; m < data.length; m++) { for (int n = 0; n < data[0].length; n++) { double sum = 0; ...
229
58
771
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
60d466a135daa80706dd6820026d6f7d46d1a0d5a018e253d4cb3706fd8cdb75
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
4ea1bcbb5776b6e3832e8d30
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.createUserProperties
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L139-L142
train
java
Create User Application Properties Create application properties for a user @param userId User Id (required) @param properties Properties to be updated (required) @param aid Application ID (optional) @return PropertiesEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the res...
public PropertiesEnvelope createUserProperties(String userId, AppProperties properties, String aid) throws ApiException { ApiResponse<PropertiesEnvelope> resp = createUserPropertiesWithHttpInfo(userId, properties, aid); return resp.getData(); }
Create User Application Properties Create application properties for a user @param userId User Id (required) @param properties Properties to be updated (required) @param aid Application ID (optional) @return PropertiesEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the res...
105
330
264
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
af0d4356510aae832ecf7c1711263a77c33635424e174eaaeaf055a9cd2490cb
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
51b1bfea53ff4c1991faf4cc
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.deleteUserProperties
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L265-L268
train
java
Delete User Application Properties Deletes a user&#39;s application properties @param userId User Id (required) @param aid Application ID (optional) @return PropertiesEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public PropertiesEnvelope deleteUserProperties(String userId, String aid) throws ApiException { ApiResponse<PropertiesEnvelope> resp = deleteUserPropertiesWithHttpInfo(userId, aid); return resp.getData(); }
Delete User Application Properties Deletes a user&#39;s application properties @param userId User Id (required) @param aid Application ID (optional) @return PropertiesEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public PropertiesEnvelope deleteUserPro...
92
279
226
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b5baeb00e33ebfc3d3366f855ff94cae5e3cb269ee2a5fda6966c090b6442979
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
5f08a4b49c55fcf45ccb61e9
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.deleteUserPropertiesWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L278-L282
train
java
Delete User Application Properties Deletes a user&#39;s application properties @param userId User Id (required) @param aid Application ID (optional) @return ApiResponse&lt;PropertiesEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<PropertiesEnvelope> deleteUserPropertiesWithHttpInfo(String userId, String aid) throws ApiException { com.squareup.okhttp.Call call = deleteUserPropertiesValidateBeforeCall(userId, aid, null, null); Type localVarReturnType = new TypeToken<PropertiesEnvelope>(){}.getType(); ret...
Delete User Application Properties Deletes a user&#39;s application properties @param userId User Id (required) @param aid Application ID (optional) @return ApiResponse&lt;PropertiesEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ApiResponse<P...
126
298
374
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
27692dc5a474a14e2eaccf88413049f2e2e935b39edb7e95476af93872c8165b
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
de0183ba07e9223c555d51cf
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.getSelfWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L390-L394
train
java
Get Current User Profile Get&#39;s the current user&#39;s profile @return ApiResponse&lt;UserEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<UserEnvelope> getSelfWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = getSelfValidateBeforeCall(null, null); Type localVarReturnType = new TypeToken<UserEnvelope>(){}.getType(); return apiClient.execute(call, localVarReturnType); }
Get Current User Profile Get&#39;s the current user&#39;s profile @return ApiResponse&lt;UserEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ApiResponse<UserEnvelope> getSelfWithHttpInfo() throws ApiException { com.squareup.okhttp.Call...
104
209
298
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
265093fc7b3c38ef1d6ccdd23c11cdf7020033c5dc814760daaccc387d0921ff
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
2b51a556556d1b44e454f986
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.getUserDeviceTypes
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L505-L508
train
java
Get User Device Types Retrieve User&#39;s Device Types @param userId User ID. (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param includeShared Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If true, also...
public DeviceTypesEnvelope getUserDeviceTypes(String userId, Integer offset, Integer count, Boolean includeShared) throws ApiException { ApiResponse<DeviceTypesEnvelope> resp = getUserDeviceTypesWithHttpInfo(userId, offset, count, includeShared); return resp.getData(); }
Get User Device Types Retrieve User&#39;s Device Types @param userId User ID. (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param includeShared Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If true, also...
163
506
291
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2a17ade56d922fb2c7c88c4c742907d16878eadddc5a8bef55092a7db8dcf366
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
9965c682454e589f05b2e348
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.getUserDeviceTypesWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L520-L524
train
java
Get User Device Types Retrieve User&#39;s Device Types @param userId User ID. (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param includeShared Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If true, also...
public ApiResponse<DeviceTypesEnvelope> getUserDeviceTypesWithHttpInfo(String userId, Integer offset, Integer count, Boolean includeShared) throws ApiException { com.squareup.okhttp.Call call = getUserDeviceTypesValidateBeforeCall(userId, offset, count, includeShared, null, null); Type localVarReturnTyp...
Get User Device Types Retrieve User&#39;s Device Types @param userId User ID. (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param includeShared Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If true, also...
197
525
439
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5744667e1ea4504625bed163fd44eb7be16a337efb305534aea7d335aff2d384
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
de0ab0e2c4381824dbee601b
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.getUserDevices
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L648-L651
train
java
Get User Devices Retrieve User&#39;s Devices @param userId User ID (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param includeProperties Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If true, also return...
public DevicesEnvelope getUserDevices(String userId, Integer offset, Integer count, Boolean includeProperties, String owner, Boolean includeShareInfo, String dtid) throws ApiException { ApiResponse<DevicesEnvelope> resp = getUserDevicesWithHttpInfo(userId, offset, count, includeProperties, owner, includeShareIn...
Get User Devices Retrieve User&#39;s Devices @param userId User ID (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param includeProperties Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If true, also return...
228
754
367
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2ebca7ac17a34fafe2827537373be6ca4e06337905a61c1f1a4eb24dbed1ff33
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
a32db801ed8f6fc7bb861b0e
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.getUserDevicesWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L666-L670
train
java
Get User Devices Retrieve User&#39;s Devices @param userId User ID (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param includeProperties Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If true, also return...
public ApiResponse<DevicesEnvelope> getUserDevicesWithHttpInfo(String userId, Integer offset, Integer count, Boolean includeProperties, String owner, Boolean includeShareInfo, String dtid) throws ApiException { com.squareup.okhttp.Call call = getUserDevicesValidateBeforeCall(userId, offset, count, includeProper...
Get User Devices Retrieve User&#39;s Devices @param userId User ID (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param includeProperties Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If true, also return...
262
773
515
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
628fb1935f8293731afbe52597ae826d1bd1167fe39400d1551a0623df00ab6e
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
c02189b01e23474b3fdc79ab
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.getUserDevicesAsync
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L686-L711
train
java
Get User Devices (asynchronously) Retrieve User&#39;s Devices @param userId User ID (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param includeProperties Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If ...
public com.squareup.okhttp.Call getUserDevicesAsync(String userId, Integer offset, Integer count, Boolean includeProperties, String owner, Boolean includeShareInfo, String dtid, final ApiCallback<DevicesEnvelope> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ...
Get User Devices (asynchronously) Retrieve User&#39;s Devices @param userId User ID (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param includeProperties Optional. Boolean (true/false) - If false, only return the user&#39;s device types. If ...
420
834
1,446
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
23f34c9d832b127be3724f132248a33f16dd61ce96a9d6554e3d0c51fc072c79
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
ebe1f61b38e54f1a3d0f6082
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.getUserProperties
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L782-L785
train
java
Get User application properties Get application properties of a user @param userId User Id (required) @param aid Application ID (optional) @return PropertiesEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public PropertiesEnvelope getUserProperties(String userId, String aid) throws ApiException { ApiResponse<PropertiesEnvelope> resp = getUserPropertiesWithHttpInfo(userId, aid); return resp.getData(); }
Get User application properties Get application properties of a user @param userId User Id (required) @param aid Application ID (optional) @return PropertiesEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public PropertiesEnvelope getUserProperties(Strin...
90
269
220
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
699686b4ebeb6bf2452a37ee2f995a3a575c10e0afaf909546f53ec6ecdd07ab
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
609ca89f585a9aeef7273362
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.getUserRules
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L915-L918
train
java
Get User Rules Retrieve User&#39;s Rules @param userId User ID. (required) @param excludeDisabled Exclude disabled rules in the result. (optional) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @param owner Rule owner (optional) @return RulesEnvelope @t...
public RulesEnvelope getUserRules(String userId, Boolean excludeDisabled, Integer count, Integer offset, String owner) throws ApiException { ApiResponse<RulesEnvelope> resp = getUserRulesWithHttpInfo(userId, excludeDisabled, count, offset, owner); return resp.getData(); }
Get User Rules Retrieve User&#39;s Rules @param userId User ID. (required) @param excludeDisabled Exclude disabled rules in the result. (optional) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @param owner Rule owner (optional) @return RulesEnvelope @t...
143
421
292
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ac3ef91d8300725141d559dab08cf1fc4a4ea3298f8eae9fed7d194d0d806fce
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
2af17f504a53ef9fc7d735be
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.getUserRulesWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L931-L935
train
java
Get User Rules Retrieve User&#39;s Rules @param userId User ID. (required) @param excludeDisabled Exclude disabled rules in the result. (optional) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @param owner Rule owner (optional) @return ApiResponse&lt;R...
public ApiResponse<RulesEnvelope> getUserRulesWithHttpInfo(String userId, Boolean excludeDisabled, Integer count, Integer offset, String owner) throws ApiException { com.squareup.okhttp.Call call = getUserRulesValidateBeforeCall(userId, excludeDisabled, count, offset, owner, null, null); Type localVarRe...
Get User Rules Retrieve User&#39;s Rules @param userId User ID. (required) @param excludeDisabled Exclude disabled rules in the result. (optional) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @param owner Rule owner (optional) @return ApiResponse&lt;R...
177
440
440
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2e8127499fe8f054892fe68e556e00302998b5e94adab6293976438e972f055e
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
177be975cda601a4355704a8
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.listAllSharesForUser
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L1056-L1059
train
java
Get User shares Get User shares @param userId User ID. (required) @param filter filter (required) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @return DeviceSharingEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot dese...
public DeviceSharingEnvelope listAllSharesForUser(String userId, String filter, Integer count, Integer offset) throws ApiException { ApiResponse<DeviceSharingEnvelope> resp = listAllSharesForUserWithHttpInfo(userId, filter, count, offset); return resp.getData(); }
Get User shares Get User shares @param userId User ID. (required) @param filter filter (required) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @return DeviceSharingEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot dese...
128
345
284
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
07eea801757244a06a4198b3deae57ae0c4e86324922cc27448af8dd675574d9
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
07e78b0a292f68f667375771
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.listAllSharesForUserWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L1071-L1075
train
java
Get User shares Get User shares @param userId User ID. (required) @param filter filter (required) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @return ApiResponse&lt;DeviceSharingEnvelope&gt; @throws ApiException If fail to call the API, e.g. server e...
public ApiResponse<DeviceSharingEnvelope> listAllSharesForUserWithHttpInfo(String userId, String filter, Integer count, Integer offset) throws ApiException { com.squareup.okhttp.Call call = listAllSharesForUserValidateBeforeCall(userId, filter, count, offset, null, null); Type localVarReturnType = new T...
Get User shares Get User shares @param userId User ID. (required) @param filter filter (required) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @return ApiResponse&lt;DeviceSharingEnvelope&gt; @throws ApiException If fail to call the API, e.g. server e...
162
364
432
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
4c712757540b7445f9600a9378fdd0128bc3f80539449e40d5f955f30a139741
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
80b04f6d20c8824b6927a1bc
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.updateUserProperties
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L1190-L1193
train
java
Update User Application Properties Updates application properties of a user @param userId User Id (required) @param properties Properties to be updated (required) @param aid Application ID (optional) @return PropertiesEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the res...
public PropertiesEnvelope updateUserProperties(String userId, AppProperties properties, String aid) throws ApiException { ApiResponse<PropertiesEnvelope> resp = updateUserPropertiesWithHttpInfo(userId, properties, aid); return resp.getData(); }
Update User Application Properties Updates application properties of a user @param userId User Id (required) @param properties Properties to be updated (required) @param aid Application ID (optional) @return PropertiesEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the res...
105
330
264
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
fa91f81df900e8ab4717c9987963a8db30e10e4f1de80c575fe5f2f63d442791
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
e9cfaa16de485a960f08c2ed
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/UsersApi.java
UsersApi.updateUserPropertiesWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/UsersApi.java#L1204-L1208
train
java
Update User Application Properties Updates application properties of a user @param userId User Id (required) @param properties Properties to be updated (required) @param aid Application ID (optional) @return ApiResponse&lt;PropertiesEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot ...
public ApiResponse<PropertiesEnvelope> updateUserPropertiesWithHttpInfo(String userId, AppProperties properties, String aid) throws ApiException { com.squareup.okhttp.Call call = updateUserPropertiesValidateBeforeCall(userId, properties, aid, null, null); Type localVarReturnType = new TypeToken<Properti...
Update User Application Properties Updates application properties of a user @param userId User Id (required) @param properties Properties to be updated (required) @param aid Application ID (optional) @return ApiResponse&lt;PropertiesEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot ...
139
349
412
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
18e9c63c75585e024a8100225ff4ecfa700787a9aa930e4140a15d0b24c65f85
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
1953994d4e4d6ba121ca2a1e
Harium/keel
src/main/java/com/harium/keel/core/helper/ColorHelper.java
ColorHelper.fromYCbCr
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/core/helper/ColorHelper.java#L185-L202
train
java
YCbCr conversion from: https://en.wikipedia.org/wiki/YUV @param y - Y channel @param cb - CB channel @param cr - CR channel @return rgb
public static int fromYCbCr(int y, int cb, int cr, int alpha) { int cbc = cb - YUV_OFFSET; int crc = cr - YUV_OFFSET; int r = y + crc + (crc >> 2) + (crc >> 3) + (crc >> 5); int g = y - ((cbc >> 2) + (cbc >> 4) + (cbc >> 5)) - ((crc >> 1) + (crc >> 3) + (crc >> 4) + (crc >> 5)); ...
YCbCr conversion from: https://en.wikipedia.org/wiki/YUV @param y - Y channel @param cb - CB channel @param cr - CR channel @return rgb public static int fromYCbCr(int y, int cb, int cr, int alpha) { int cbc = cb - YUV_OFFSET; int crc = cr - YUV_OFFSET; int r = y + crc + (crc >> 2) + (crc >> ...
309
137
727
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
90ac33562e09802070eb805ac749b706c399951e783a8e109a9fc29a04a4a9fc
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
fe2a29bc2eb4d06ecdc07839
Harium/keel
src/main/java/com/harium/keel/core/helper/ColorHelper.java
ColorHelper.getHSVArray
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/core/helper/ColorHelper.java#L230-L258
train
java
Code from: http://www.javascripter.net/faq/rgb2hsv.htm @param r @param g @param b @return
public static float[] getHSVArray(int r, int g, int b) { float[] hsv = new float[3]; float rf = r / MAX; float gf = g / MAX; float bf = b / MAX; float minRGB = Math.min(rf, Math.min(gf, bf)); float maxRGB = Math.max(rf, Math.max(gf, bf)); float computedH = 0; ...
Code from: http://www.javascripter.net/faq/rgb2hsv.htm @param r @param g @param b @return public static float[] getHSVArray(int r, int g, int b) { float[] hsv = new float[3]; float rf = r / MAX; float gf = g / MAX; float bf = b / MAX; float minRGB = Math.min(rf, Math.min(gf, ...
297
90
912
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9245790ac3bffbf37feb654646da3224bccfbef10bf9da75ecb160af24eb2bf3
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
d0907b1769cb19cf144f5d7b
Harium/keel
src/main/java/com/harium/keel/core/helper/ColorHelper.java
ColorHelper.fromHSV
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/core/helper/ColorHelper.java#L299-L302
train
java
Method to transform from HSV to RGB (this method sets alpha as 0xff) @param h - hue @param s - saturation @param v - brightness @return rgb color
public static int fromHSV(float h, float s, float v) { int a = MAX_INT; return fromHSV(h, s, v, a); }
Method to transform from HSV to RGB (this method sets alpha as 0xff) @param h - hue @param s - saturation @param v - brightness @return rgb color public static int fromHSV(float h, float s, float v) { int a = MAX_INT; return fromHSV(h, s, v, a); }
72
146
121
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
fa0d5f248ee1c8493dd4fe8964b55e71150b079b0c461b097965bcb98c36a54c
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
6f95f50cc9ce931142f84505
Harium/keel
src/main/java/com/harium/keel/core/helper/ColorHelper.java
ColorHelper.fromHSV
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/core/helper/ColorHelper.java#L314-L377
train
java
Method to transform from HSV to ARGB Source from: https://www.cs.rit.edu/~ncs/color/t_convert.html @param h - hue @param s - saturation @param v - brightness @param a - alpha @return rgb color
public static int fromHSV(float h, float s, float v, int a) { float r = v; float g = v; float b = v; int i; float f, p, q, t; if (s == 0) { // achromatic (grey) int ri = (int) (r * 0xff); int gi = (int) (g * 0xff); int bi ...
Method to transform from HSV to ARGB Source from: https://www.cs.rit.edu/~ncs/color/t_convert.html @param h - hue @param s - saturation @param v - brightness @param a - alpha @return rgb color public static int fromHSV(float h, float s, float v, int a) { float r = v; float g = v; float b = v; ...
456
193
1,490
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3740566e955ffdfec9c93bde7f8e401ef0e24a17b49b75b91ed5e9b87d7aeb7d
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
8e4c65d4dc937e8bf45a83e2
Harium/keel
src/main/java/com/harium/keel/core/helper/ColorHelper.java
ColorHelper.getHSLArray
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/core/helper/ColorHelper.java#L396-L441
train
java
Get HSL Color from RGB https://www.programmingalgorithms.com/algorithm/rgb-to-hsl?lang=C%2B%2B @param r @param g @param b @return
public static float[] getHSLArray(int r, int g, int b) { float[] hsl = new float[3]; float h, s, l; float rf = r / MAX; float gf = g / MAX; float bf = b / MAX; float minRGB = Math.min(rf, Math.min(gf, bf)); float maxRGB = Math.max(rf, Math.max(gf, bf)); ...
Get HSL Color from RGB https://www.programmingalgorithms.com/algorithm/rgb-to-hsl?lang=C%2B%2B @param r @param g @param b @return public static float[] getHSLArray(int r, int g, int b) { float[] hsl = new float[3]; float h, s, l; float rf = r / MAX; float gf = g / MAX; float b...
402
130
1,124
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7ae7833b632c62642cfe052878958e32f759fe6ca71dad103fbd4d2a2b1d9563
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
5082e14346f394537c924e75
Harium/keel
src/main/java/com/harium/keel/core/helper/ColorHelper.java
ColorHelper.fromHSL
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/core/helper/ColorHelper.java#L451-L454
train
java
Method to transform from HSL to RGB (this method sets alpha as 0xff) @param h - hue @param s - saturation @param l - lightness @return rgb
public static int fromHSL(float h, float s, float l) { int alpha = MAX_INT; return fromHSL(h, s, l, alpha); }
Method to transform from HSL to RGB (this method sets alpha as 0xff) @param h - hue @param s - saturation @param l - lightness @return rgb public static int fromHSL(float h, float s, float l) { int alpha = MAX_INT; return fromHSL(h, s, l, alpha); }
75
139
129
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2dc98f828d05f9b24a6370e68528e879f163d7aa5bfb9c5c200056a4a6f11e3d
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
0c9a86ef170d4b86fe69695f
Harium/keel
src/main/java/com/harium/keel/core/helper/ColorHelper.java
ColorHelper.fromHSL
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/core/helper/ColorHelper.java#L467-L485
train
java
Method to transform from HSL to ARGB <p> Source from: https://www.programmingalgorithms.com/algorithm/hsl-to-rgb?lang=C%2B%2B @param h - hue @param s - saturation @param l - lightness @param a - alpha @return rgb
public static int fromHSL(float h, float s, float l, int a) { int r, g, b; if (s == 0) { r = g = b = (int) (l * MAX); } else { float v1, v2; float hue = h / 360f; v2 = (l < 0.5) ? (l * (1 + s)) : ((l + s) - (l * s)); v1 = 2 * l - v2; ...
Method to transform from HSL to ARGB <p> Source from: https://www.programmingalgorithms.com/algorithm/hsl-to-rgb?lang=C%2B%2B @param h - hue @param s - saturation @param l - lightness @param a - alpha @return rgb public static int fromHSL(float h, float s, float l, int a) { int r, g, b; if (s == 0) {...
277
213
558
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
68d97dc33729a0481f5a17b556d006a6b1a544184e87e5ed172e34bb3b86eb60
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
fecea18972e75c1238b5f71f
Harium/keel
src/main/java/com/harium/keel/core/helper/ColorHelper.java
ColorHelper.mix
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/core/helper/ColorHelper.java#L531-L549
train
java
Alpha Blend Source from: https://gist.github.com/JordanDelcros/518396da1c13f75ee057 @param a @param b @return
public static int mix(int base, int added) { float bAlpha = ColorHelper.getAlpha(base) / 255f; float aAlpha = ColorHelper.getAlpha(added) / 255f; float alpha = 1 - (1 - bAlpha) * (1 - aAlpha); // alpha int bR = ColorHelper.getRed(base); int bG = ColorHelper.getGreen(base); ...
Alpha Blend Source from: https://gist.github.com/JordanDelcros/518396da1c13f75ee057 @param a @param b @return public static int mix(int base, int added) { float bAlpha = ColorHelper.getAlpha(base) / 255f; float aAlpha = ColorHelper.getAlpha(added) / 255f; float alpha = 1 - (1 - bAlpha) * (1 - ...
298
110
855
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2515465e19e377651f07b539cf7d4c33072ec31c080fc3772777b9dc03a01b2d
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
6ab894d0055095482cf9d3ad
skuzzle/jeve
jeve/src/main/java/de/skuzzle/jeve/stores/AbstractListenerStore.java
AbstractListenerStore.copyList
https://github.com/skuzzle/jeve/blob/42cc18947c9c8596c34410336e4e375e9fcd7c47/jeve/src/main/java/de/skuzzle/jeve/stores/AbstractListenerStore.java#L66-L74
train
java
Creates a collection from the given stream, casting each object to the provided listener class. The returned collection must not necessarily be mutable. @param <T> Type of the listeners in the given list. @param listenerClass The class of the objects in the provided list. @param listeners The stream to obtain the list...
protected <T extends Listener> Collection<T> copyList(Class<T> listenerClass, Stream<Object> listeners, int sizeHint) { if (sizeHint == 0) { return Collections.emptyList(); } return listeners .map(listenerClass::cast) .collect(Collectors.to...
Creates a collection from the given stream, casting each object to the provided listener class. The returned collection must not necessarily be mutable. @param <T> Type of the listeners in the given list. @param listenerClass The class of the objects in the provided list. @param listeners The stream to obtain the list...
160
445
371
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
668782d67481d5c1451dbcec0ea63d715002b353c0bde54a188080d5dbbb49a8
MIT
permissive
https://github.com/skuzzle/jeve/blob/master/LICENSE.md
10a9280297b90bd64709be5b
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getAvailableManifestVersions
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L127-L130
train
java
Get Available Manifest Versions Get a Device Type&#39;s available manifest versions @param deviceTypeId deviceTypeId (required) @return ManifestVersionsEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ManifestVersionsEnvelope getAvailableManifestVersions(String deviceTypeId) throws ApiException { ApiResponse<ManifestVersionsEnvelope> resp = getAvailableManifestVersionsWithHttpInfo(deviceTypeId); return resp.getData(); }
Get Available Manifest Versions Get a Device Type&#39;s available manifest versions @param deviceTypeId deviceTypeId (required) @return ManifestVersionsEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ManifestVersionsEnvelope getAvailableManifestVe...
92
264
249
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
f1f4c360e8a0062e7d51b7ac49ccbd9b3e86c661bca5bca8d5001eb39f7c36a4
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
6835b517fc70e5eff729b473
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getAvailableManifestVersionsWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L139-L143
train
java
Get Available Manifest Versions Get a Device Type&#39;s available manifest versions @param deviceTypeId deviceTypeId (required) @return ApiResponse&lt;ManifestVersionsEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<ManifestVersionsEnvelope> getAvailableManifestVersionsWithHttpInfo(String deviceTypeId) throws ApiException { com.squareup.okhttp.Call call = getAvailableManifestVersionsValidateBeforeCall(deviceTypeId, null, null); Type localVarReturnType = new TypeToken<ManifestVersionsEnvelope>(){}...
Get Available Manifest Versions Get a Device Type&#39;s available manifest versions @param deviceTypeId deviceTypeId (required) @return ApiResponse&lt;ManifestVersionsEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ApiResponse<ManifestVersions...
126
283
397
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
24eef21e90768ba14331cce86d10f258e1e4f88cb554947d7b959af6593d4dd2
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
cb79b28b6bcd7e4370efe333
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getDeviceType
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L246-L249
train
java
Get Device Type Retrieves a Device Type @param deviceTypeId deviceTypeId (required) @return DeviceTypeEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public DeviceTypeEnvelope getDeviceType(String deviceTypeId) throws ApiException { ApiResponse<DeviceTypeEnvelope> resp = getDeviceTypeWithHttpInfo(deviceTypeId); return resp.getData(); }
Get Device Type Retrieves a Device Type @param deviceTypeId deviceTypeId (required) @return DeviceTypeEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public DeviceTypeEnvelope getDeviceType(String deviceTypeId) throws ApiException { ApiResponse<D...
85
214
207
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
3f3e038c65342f136e6adbb8cd35b49b53f8632878e118cff62a24ec24e0bd28
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
8386da999c9f234ad3971873
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getDeviceTypeWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L258-L262
train
java
Get Device Type Retrieves a Device Type @param deviceTypeId deviceTypeId (required) @return ApiResponse&lt;DeviceTypeEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
public ApiResponse<DeviceTypeEnvelope> getDeviceTypeWithHttpInfo(String deviceTypeId) throws ApiException { com.squareup.okhttp.Call call = getDeviceTypeValidateBeforeCall(deviceTypeId, null, null); Type localVarReturnType = new TypeToken<DeviceTypeEnvelope>(){}.getType(); return apiClient.execu...
Get Device Type Retrieves a Device Type @param deviceTypeId deviceTypeId (required) @return ApiResponse&lt;DeviceTypeEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body public ApiResponse<DeviceTypeEnvelope> getDeviceTypeWithHttpInfo(String deviceTypeId)...
119
233
355
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
cc6503190e5740c148d261f91364328792b60f120bd53da6381e38432cd97bd8
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
147828615270b3b21ad03ca4
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getDeviceTypes
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L375-L378
train
java
Get Device Types Retrieves Device Types @param name Device Type name (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param tags Elements tagged with the list of tags. (comma separated) (optional) @return DeviceTypesEnvelope @throws ApiExceptio...
public DeviceTypesEnvelope getDeviceTypes(String name, Integer offset, Integer count, String tags) throws ApiException { ApiResponse<DeviceTypesEnvelope> resp = getDeviceTypesWithHttpInfo(name, offset, count, tags); return resp.getData(); }
Get Device Types Retrieves Device Types @param name Device Type name (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param tags Elements tagged with the list of tags. (comma separated) (optional) @return DeviceTypesEnvelope @throws ApiExceptio...
136
404
260
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8a03653a2820c37a233849d64b0f4d89b36acb926a947fa5bf2b7b99a9ed0394
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
b09d04690dae0992ef56ae43
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getDeviceTypesWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L390-L394
train
java
Get Device Types Retrieves Device Types @param name Device Type name (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param tags Elements tagged with the list of tags. (comma separated) (optional) @return ApiResponse&lt;DeviceTypesEnvelope&gt; ...
public ApiResponse<DeviceTypesEnvelope> getDeviceTypesWithHttpInfo(String name, Integer offset, Integer count, String tags) throws ApiException { com.squareup.okhttp.Call call = getDeviceTypesValidateBeforeCall(name, offset, count, tags, null, null); Type localVarReturnType = new TypeToken<DeviceTypesEn...
Get Device Types Retrieves Device Types @param name Device Type name (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param tags Elements tagged with the list of tags. (comma separated) (optional) @return ApiResponse&lt;DeviceTypesEnvelope&gt; ...
170
423
408
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
fd5eeaa696cd87f8dc45d750cc8dff9f27774d87392c2d4cbfb92eb5e57ae034
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
0e5b3942bcd989dbb3f7a0ff
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getDeviceTypesAsync
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L407-L432
train
java
Get Device Types (asynchronously) Retrieves Device Types @param name Device Type name (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param tags Elements tagged with the list of tags. (comma separated) (optional) @param callback The callback t...
public com.squareup.okhttp.Call getDeviceTypesAsync(String name, Integer offset, Integer count, String tags, final ApiCallback<DeviceTypesEnvelope> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestL...
Get Device Types (asynchronously) Retrieves Device Types @param name Device Type name (required) @param offset Offset for pagination. (optional) @param count Desired count of items in the result set (optional) @param tags Elements tagged with the list of tags. (comma separated) (optional) @param callback The callback t...
327
480
1,339
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e152a1e1a245a5c8b361ae014488c60d08742c549b75871a6d21b53d717740f6
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
448dd3836de3fd45a9029385
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getDeviceTypesByApplication
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L509-L512
train
java
Get Device Types by Application Get Device Types by Application @param appId Application ID. (required) @param productInfo Flag to include the associated ProductInfo if present (optional) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @return DeviceType...
public DeviceTypesEnvelope getDeviceTypesByApplication(String appId, Boolean productInfo, Integer count, Integer offset) throws ApiException { ApiResponse<DeviceTypesEnvelope> resp = getDeviceTypesByApplicationWithHttpInfo(appId, productInfo, count, offset); return resp.getData(); }
Get Device Types by Application Get Device Types by Application @param appId Application ID. (required) @param productInfo Flag to include the associated ProductInfo if present (optional) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @return DeviceType...
144
433
303
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
d47bef9a463f452cda8371d8d7dff13cc51496c16206708c2628bf3fc350d3c5
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
616b98f02ba3e137836d3705
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getDeviceTypesByApplicationWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L524-L528
train
java
Get Device Types by Application Get Device Types by Application @param appId Application ID. (required) @param productInfo Flag to include the associated ProductInfo if present (optional) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @return ApiRespons...
public ApiResponse<DeviceTypesEnvelope> getDeviceTypesByApplicationWithHttpInfo(String appId, Boolean productInfo, Integer count, Integer offset) throws ApiException { com.squareup.okhttp.Call call = getDeviceTypesByApplicationValidateBeforeCall(appId, productInfo, count, offset, null, null); Type local...
Get Device Types by Application Get Device Types by Application @param appId Application ID. (required) @param productInfo Flag to include the associated ProductInfo if present (optional) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @return ApiRespons...
178
452
451
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e767a1af012449cff87fc9c0ec2f501ac24ae90cfe516920c51830c17c8977b2
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
5180acad237355684fe10f80
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getDeviceTypesByApplicationAsync
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L541-L566
train
java
Get Device Types by Application (asynchronously) Get Device Types by Application @param appId Application ID. (required) @param productInfo Flag to include the associated ProductInfo if present (optional) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @...
public com.squareup.okhttp.Call getDeviceTypesByApplicationAsync(String appId, Boolean productInfo, Integer count, Integer offset, final ApiCallback<DeviceTypesEnvelope> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestLis...
Get Device Types by Application (asynchronously) Get Device Types by Application @param appId Application ID. (required) @param productInfo Flag to include the associated ProductInfo if present (optional) @param count Desired count of items in the result set. (optional) @param offset Offset for pagination. (optional) @...
335
509
1,382
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
1e3d59af350e2015fb850aeeaf51b76415d28a5192166f8a3fa4620e72b9f3a3
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
05c61d830cfd1942ea024342
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getManifestProperties
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L760-L763
train
java
Get manifest properties Get a Device Type&#39;s manifest properties for a specific version. @param deviceTypeId Device Type ID. (required) @param version Manifest Version. (required) @return ManifestPropertiesEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response bod...
public ManifestPropertiesEnvelope getManifestProperties(String deviceTypeId, String version) throws ApiException { ApiResponse<ManifestPropertiesEnvelope> resp = getManifestPropertiesWithHttpInfo(deviceTypeId, version); return resp.getData(); }
Get manifest properties Get a Device Type&#39;s manifest properties for a specific version. @param deviceTypeId Device Type ID. (required) @param version Manifest Version. (required) @return ManifestPropertiesEnvelope @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response bod...
107
321
264
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b9b9187534124eaee627a7fcc895853e94f50df7e2bc620c2259364569296cc9
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
c790ba2bb9132ec3f66f958e
artikcloud/artikcloud-java
src/main/java/cloud/artik/api/DeviceTypesApi.java
DeviceTypesApi.getManifestPropertiesWithHttpInfo
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/api/DeviceTypesApi.java#L773-L777
train
java
Get manifest properties Get a Device Type&#39;s manifest properties for a specific version. @param deviceTypeId Device Type ID. (required) @param version Manifest Version. (required) @return ApiResponse&lt;ManifestPropertiesEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deseriali...
public ApiResponse<ManifestPropertiesEnvelope> getManifestPropertiesWithHttpInfo(String deviceTypeId, String version) throws ApiException { com.squareup.okhttp.Call call = getManifestPropertiesValidateBeforeCall(deviceTypeId, version, null, null); Type localVarReturnType = new TypeToken<ManifestProperti...
Get manifest properties Get a Device Type&#39;s manifest properties for a specific version. @param deviceTypeId Device Type ID. (required) @param version Manifest Version. (required) @return ApiResponse&lt;ManifestPropertiesEnvelope&gt; @throws ApiException If fail to call the API, e.g. server error or cannot deseriali...
141
340
412
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
9b83e48af7e7adb2dce3cec7363378624998e65ef6d8cc4448b62fbcea7337a5
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
f90321a14c7609948f178fcb
skuzzle/jeve
jeve/src/main/java/de/skuzzle/jeve/stores/DefaultListenerStoreImpl.java
DefaultListenerStoreImpl.removeInternal
https://github.com/skuzzle/jeve/blob/42cc18947c9c8596c34410336e4e375e9fcd7c47/jeve/src/main/java/de/skuzzle/jeve/stores/DefaultListenerStoreImpl.java#L142-L150
train
java
Internal method for removing a single listener and notifying it about the removal. Prior to calling this method, the passed iterators {@link Iterator#hasNext() hasNext} method must hold <code>true</code>. @param <T> Type of the listener to remove @param listenerClass The class of the listener to remove. @param it Iter...
@Deprecated protected <T extends Listener> void removeInternal(Class<T> listenerClass, Iterator<Object> it) { final Object next = it.next(); final T listener = listenerClass.cast(next); it.remove(); final RegistrationEvent e = new RegistrationEvent(this, listenerClass); ...
Internal method for removing a single listener and notifying it about the removal. Prior to calling this method, the passed iterators {@link Iterator#hasNext() hasNext} method must hold <code>true</code>. @param <T> Type of the listener to remove @param listenerClass The class of the listener to remove. @param it Iter...
179
472
358
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
126fe82b86435c0d1865e2c56108e1251babfebd0d8fa35482d1cb47e1104818
MIT
permissive
https://github.com/skuzzle/jeve/blob/master/LICENSE.md
e3d2df4199cd088458ac3d78
artikcloud/artikcloud-java
src/main/java/cloud/artik/websocket/JSON.java
JSON.deserialize
https://github.com/artikcloud/artikcloud-java/blob/412f447573e7796ab4f685c0bdd5eb76185a365c/src/main/java/cloud/artik/websocket/JSON.java#L40-L57
train
java
Deserialize the given JSON string to Java object. @param body The JSON string @param returnType The type to deserialize inot @return The deserialized Java object
@SuppressWarnings("unchecked") public <T> T deserialize(String body, Type returnType) { try { return gson.fromJson(body, returnType); } catch (JsonParseException e) { // Fallback processing when failed to parse JSON form response body: // return the response body ...
Deserialize the given JSON string to Java object. @param body The JSON string @param returnType The type to deserialize inot @return The deserialized Java object @SuppressWarnings("unchecked") public <T> T deserialize(String body, Type returnType) { try { return gson.fromJson(body, returnType)...
173
162
736
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
5e3a9ff928b17ff2b8d32b8606438e7bbe99c88b2e40b9892c725120e1bc66b0
Apache-2.0
permissive
https://github.com/artikcloud/artikcloud-java/blob/master/LICENSE
86252ad9fb32720739130f40
Harium/keel
src/main/java/com/harium/keel/cluster/DBScan.java
DBScan.cluster
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/cluster/DBScan.java#L71-L102
train
java
Performs DBSCAN cluster analysis. @param points the points to cluster @return the list of clusters @throws NullArgumentException if the data points are null
public List<Cluster> cluster(final Collection<Point2D> points) { final List<Cluster> clusters = new ArrayList<Cluster>(); final Map<Point2D, PointStatus> visited = new HashMap<Point2D, DBScan.PointStatus>(); KDTree<Point2D> tree = new KDTree<Point2D>(2); // Populate the kdTree ...
Performs DBSCAN cluster analysis. @param points the points to cluster @return the list of clusters @throws NullArgumentException if the data points are null public List<Cluster> cluster(final Collection<Point2D> points) { final List<Cluster> clusters = new ArrayList<Cluster>(); final Map<Point2D, PointSt...
277
157
1,166
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2c6a9a1214ddc0c1deef972950b71c41a1147934af786dcd1a5580a76e3e44cc
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
130415a55e117f2f83adc96b
Harium/keel
src/main/java/com/harium/keel/cluster/DBScan.java
DBScan.expandCluster
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/cluster/DBScan.java#L114-L143
train
java
Expands the cluster to include density-reachable items. @param cluster Cluster to expand @param point Point to add to cluster @param neighbors List of neighbors @param points the data set @param visited the set of already visited points @return the expanded cluster
private Cluster expandCluster(final Cluster cluster, final Point2D point, final List<Point2D> neighbors, final KDTree<Point2D> points, final Map<Point2D, PointStatus> visit...
Expands the cluster to include density-reachable items. @param cluster Cluster to expand @param point Point to add to cluster @param neighbors List of neighbors @param points the data set @param visited the set of already visited points @return the expanded cluster private Cluster expandCluster(final Cluster cluster,...
273
266
1,210
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
fb589b9b58fc3488b42f1746d77b5b63f6b044a53db89dd592a633aa19f5e1c0
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
d81f75980bf02fd8dd0f2275
Harium/keel
src/main/java/com/harium/keel/cluster/DBScan.java
DBScan.getNeighbors
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/cluster/DBScan.java#L152-L159
train
java
Returns a list of density-reachable neighbors of a {@code point}. @param point the point to look for @param points possible neighbors @return the List of neighbors
private List<Point2D> getNeighbors(final Point2D point, KDTree<Point2D> points) { double[] key = {point.x, point.y}; final List<Point2D> neighbors = new ArrayList<Point2D>(); neighbors.addAll(points.nearestEuclidean(key, eps)); return neighbors; }
Returns a list of density-reachable neighbors of a {@code point}. @param point the point to look for @param points possible neighbors @return the List of neighbors private List<Point2D> getNeighbors(final Point2D point, KDTree<Point2D> points) { double[] key = {point.x, point.y}; final List<Point2D> neig...
105
164
299
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
6c8203007f81781560fd6556daa69f24bc097cde059291ae339ac5cb46044bde
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
ecc59febecfe55f4323072aa
Harium/keel
src/main/java/com/harium/keel/cluster/DBScan.java
DBScan.merge
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/cluster/DBScan.java#L168-L176
train
java
Merges two lists together. @param one first list @param two second list @return merged lists
private List<Point2D> merge(final List<Point2D> one, final List<Point2D> two) { final Set<Point2D> oneSet = new HashSet<Point2D>(one); for (Point2D item : two) { if (!oneSet.contains(item)) { one.add(item); } } return one; }
Merges two lists together. @param one first list @param two second list @return merged lists private List<Point2D> merge(final List<Point2D> one, final List<Point2D> two) { final Set<Point2D> oneSet = new HashSet<Point2D>(one); for (Point2D item : two) { if (!oneSet.contains(item)) { ...
98
93
300
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
c642a8b23a39b5aeaf3c5dce1ab9061ca5368267f150b25e7a095b5001ade772
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
313971f11f102c0b1ded19c7
Harium/keel
src/main/java/com/harium/keel/effect/neuroph/LetterSeparation.java
LetterSeparation.apply
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/effect/neuroph/LetterSeparation.java#L25-L81
train
java
radi otsu da dobije spojena crna slova i ra @param input @return the processed image
public ImageSource apply(ImageSource input) { ImageSource originalImage = input; int width = originalImage.getWidth(); int height = originalImage.getHeight(); boolean[][] matrix = new boolean[width][height]; // black n white boolean matrix; true = blck, false = white // Copy ...
radi otsu da dobije spojena crna slova i ra @param input @return the processed image public ImageSource apply(ImageSource input) { ImageSource originalImage = input; int width = originalImage.getWidth(); int height = originalImage.getHeight(); boolean[][] matrix = new boolean[width][...
389
85
1,651
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
7032a481d25602458e818d013029f53173d5f6cca8ffe5b96d3b545cc14d00a4
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
ca70223c37a3d2a886de1e6c
Harium/keel
src/main/java/com/harium/keel/catalano/core/ArraysUtil.java
ArraysUtil.Argsort
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/ArraysUtil.java#L105-L117
train
java
Returns the indices that would sort an array. @param array Array. @param ascending Ascending order. @return Array of indices.
public static int[] Argsort(final float[] array, final boolean ascending) { Integer[] indexes = new Integer[array.length]; for (int i = 0; i < indexes.length; i++) { indexes[i] = i; } Arrays.sort(indexes, new Comparator<Integer>() { @Override public in...
Returns the indices that would sort an array. @param array Array. @param ascending Ascending order. @return Array of indices. public static int[] Argsort(final float[] array, final boolean ascending) { Integer[] indexes = new Integer[array.length]; for (int i = 0; i < indexes.length; i++) { ...
142
130
515
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
6be0ad2d745d1428a743670223092f05e082fa3b23d5a28830731eff134fae16
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
08b87668ca655f8f1585531f
Harium/keel
src/main/java/com/harium/keel/catalano/core/ArraysUtil.java
ArraysUtil.Concatenate
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/ArraysUtil.java#L126-L139
train
java
Concatenate the arrays. @param array First array. @param array2 Second array. @return Concatenate between first and second array.
public static int[] Concatenate(int[] array, int[] array2) { int[] all = new int[array.length + array2.length]; int idx = 0; //First array for (int i = 0; i < array.length; i++) all[idx++] = array[i]; //Second array for (int i = 0; i < array2.length; i++) ...
Concatenate the arrays. @param array First array. @param array2 Second array. @return Concatenate between first and second array. public static int[] Concatenate(int[] array, int[] array2) { int[] all = new int[array.length + array2.length]; int idx = 0; //First array for (int i = 0;...
129
131
380
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
67b023fd21d673598f5ef8bde9ba70813998a6804625babaaf54e3def3f29cc7
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
1b6e1c70198a23b8f010a113
Harium/keel
src/main/java/com/harium/keel/catalano/core/ArraysUtil.java
ArraysUtil.ConcatenateInt
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/ArraysUtil.java#L191-L209
train
java
Concatenate all the arrays in the list into a vector. @param arrays List of arrays. @return Vector.
public static int[] ConcatenateInt(List<int[]> arrays) { int size = 0; for (int i = 0; i < arrays.size(); i++) { size += arrays.get(i).length; } int[] all = new int[size]; int idx = 0; for (int i = 0; i < arrays.size(); i++) { int[] v = arrays.g...
Concatenate all the arrays in the list into a vector. @param arrays List of arrays. @return Vector. public static int[] ConcatenateInt(List<int[]> arrays) { int size = 0; for (int i = 0; i < arrays.size(); i++) { size += arrays.get(i).length; } int[] all = new int[size]; ...
146
100
461
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
b8ff792b4afd3ff65d633efb3654611cde82d457e1cd0dbce7883b0c55f49c29
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
e81735774b501e2afb6281ca
Harium/keel
src/main/java/com/harium/keel/catalano/core/ArraysUtil.java
ArraysUtil.asArray
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/ArraysUtil.java#L270-L276
train
java
Convert any number class to array of integer. @param <T> Type. @param array Array. @return Integer array.
public static <T extends Number> int[] asArray(final T... array) { int[] b = new int[array.length]; for (int i = 0; i < b.length; i++) { b[i] = array[i].intValue(); } return b; }
Convert any number class to array of integer. @param <T> Type. @param array Array. @return Integer array. public static <T extends Number> int[] asArray(final T... array) { int[] b = new int[array.length]; for (int i = 0; i < b.length; i++) { b[i] = array[i].intValue(); } ...
86
108
226
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
17c2d42436651c8ed0e1db8687d9517c5cd7b968bfcc1638fb8d5b21baa74fd3
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
f7f6f415dcd72dc7d9943a05
Harium/keel
src/main/java/com/harium/keel/catalano/core/ArraysUtil.java
ArraysUtil.Shuffle
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/ArraysUtil.java#L293-L303
train
java
Shuffle an array. @param array Array. @param seed Random seed.
public static void Shuffle(double[] array, long seed) { Random random = new Random(); if (seed != 0) random.setSeed(seed); for (int i = array.length - 1; i > 0; i--) { int index = random.nextInt(i + 1); double temp = array[index]; array[index] = array[i]; ...
Shuffle an array. @param array Array. @param seed Random seed. public static void Shuffle(double[] array, long seed) { Random random = new Random(); if (seed != 0) random.setSeed(seed); for (int i = array.length - 1; i > 0; i--) { int index = random.nextInt(i + 1); do...
104
64
361
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
8d55c06b07635dcd1e93ad2191a5b2a0315e1475063daa7ee343ce58be3a8587
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
89084c1726e709ec0a36b4d6
Harium/keel
src/main/java/com/harium/keel/catalano/core/ArraysUtil.java
ArraysUtil.toFloat
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/ArraysUtil.java#L393-L399
train
java
1-D Integer array to float array. @param array Integer array. @return Float array.
public static float[] toFloat(int[] array) { float[] n = new float[array.length]; for (int i = 0; i < array.length; i++) { n[i] = (float) array[i]; } return n; }
1-D Integer array to float array. @param array Integer array. @return Float array. public static float[] toFloat(int[] array) { float[] n = new float[array.length]; for (int i = 0; i < array.length; i++) { n[i] = (float) array[i]; } return n; }
74
83
209
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
ffe24f943cd99d8f97d10d7a652a0a8e8c10d7bca793006e9fcf0d5cf931562f
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
026ebc07fa43fa6b1fe307bb
Harium/keel
src/main/java/com/harium/keel/catalano/core/ArraysUtil.java
ArraysUtil.toFloat
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/ArraysUtil.java#L407-L415
train
java
2-D Integer array to float array. @param array Integer array. @return Float array.
public static float[][] toFloat(int[][] array) { float[][] n = new float[array.length][array[0].length]; for (int i = 0; i < array.length; i++) { for (int j = 0; j < array[0].length; j++) { n[i][j] = (float) array[i][j]; } } return n; }
2-D Integer array to float array. @param array Integer array. @return Float array. public static float[][] toFloat(int[][] array) { float[][] n = new float[array.length][array[0].length]; for (int i = 0; i < array.length; i++) { for (int j = 0; j < array[0].length; j++) { n...
106
83
312
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
e1d775c49beeaa6f93bc2557169ea2884433884ff18dfdf83aa0ae42e4b10644
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
411a468ea18388b6dbdd9251
Harium/keel
src/main/java/com/harium/keel/catalano/core/ArraysUtil.java
ArraysUtil.toInt
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/ArraysUtil.java#L453-L459
train
java
1-D Double array to integer array. @param array Double array. @return Integer array.
public static int[] toInt(double[] array) { int[] n = new int[array.length]; for (int i = 0; i < array.length; i++) { n[i] = (int) array[i]; } return n; }
1-D Double array to integer array. @param array Double array. @return Integer array. public static int[] toInt(double[] array) { int[] n = new int[array.length]; for (int i = 0; i < array.length; i++) { n[i] = (int) array[i]; } return n; }
74
85
202
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
2e64c3465f68ae38eea1fb06f9643952c499c1a233f53c832075ff12e6ca9218
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
7f2fe4b02a78f511d1356f8c
Harium/keel
src/main/java/com/harium/keel/catalano/core/ArraysUtil.java
ArraysUtil.toInt
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/ArraysUtil.java#L467-L475
train
java
2-D Double array to integer array. @param array Double array. @return Integer array.
public static int[][] toInt(double[][] array) { int[][] n = new int[array.length][array[0].length]; for (int i = 0; i < array.length; i++) { for (int j = 0; j < array[0].length; j++) { n[i][j] = (int) array[i][j]; } } return n; }
2-D Double array to integer array. @param array Double array. @return Integer array. public static int[][] toInt(double[][] array) { int[][] n = new int[array.length][array[0].length]; for (int i = 0; i < array.length; i++) { for (int j = 0; j < array[0].length; j++) { n[i]...
106
85
305
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
75a3e01a4364c4c4b958aefe652e88a47dd29347ca20bb910d73086267ddf490
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE
5ed4d12b76fe58b5069c5d38
Harium/keel
src/main/java/com/harium/keel/catalano/core/ArraysUtil.java
ArraysUtil.toDouble
https://github.com/Harium/keel/blob/0369ae674f9e664bccc5f9e161ae7e7a3b949a1e/src/main/java/com/harium/keel/catalano/core/ArraysUtil.java#L513-L519
train
java
1-D Integer array to double array. @param array Integer array. @return Double array.
public static double[] toDouble(int[] array) { double[] n = new double[array.length]; for (int i = 0; i < array.length; i++) { n[i] = (double) array[i]; } return n; }
1-D Integer array to double array. @param array Integer array. @return Double array. public static double[] toDouble(int[] array) { double[] n = new double[array.length]; for (int i = 0; i < array.length; i++) { n[i] = (double) array[i]; } return n; }
74
85
214
CodeSearchNet permissive-repo filter (dataset-level; per-row license absent)
code_search_net
2026-12-05
903c23970bc5e3fa5d8561f6108b6b2e80a255d003ca1e3f80ad1e96e631fdc5
LGPL-3.0
weak-copyleft
https://github.com/Harium/keel/blob/master/LICENSE