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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4887936926ed9699070f751 | transloadit/java-sdk | src/main/java/com/transloadit/sdk/Assembly.java | Assembly.addFile | https://github.com/transloadit/java-sdk/blob/9326c540a66f77b3d907d0b2c05bff1145ca14f7/src/main/java/com/transloadit/sdk/Assembly.java#L97-L100 | train | java | Adds a file to your assembly but automatically genarates the name of the file.
@param inputStream {@link InputStream} the file to be uploaded. | public void addFile(InputStream inputStream) {
String name = "file";
fileStreams.put(normalizeDuplicateName(name), inputStream);
} | Adds a file to your assembly but automatically genarates the name of the file.
@param inputStream {@link InputStream} the file to be uploaded.
public void addFile(InputStream inputStream) {
String name = "file";
fileStreams.put(normalizeDuplicateName(name), inputStream);
} | 58 | 143 | 150 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e4129920049307a39777a1ea55274aa201f9829030d6a1d90912431d107582db | MIT | permissive | https://github.com/transloadit/java-sdk/blob/main/LICENSE |
b23504814129be99fd5f6f69 | transloadit/java-sdk | src/main/java/com/transloadit/sdk/Assembly.java | Assembly.removeFile | https://github.com/transloadit/java-sdk/blob/9326c540a66f77b3d907d0b2c05bff1145ca14f7/src/main/java/com/transloadit/sdk/Assembly.java#L107-L115 | train | java | Removes file from your assembly.
@param name field name of the file to remove. | public void removeFile(String name) {
if(files.containsKey(name)) {
files.remove(name);
}
if(fileStreams.containsKey(name)) {
fileStreams.remove(name);
}
} | Removes file from your assembly.
@param name field name of the file to remove.
public void removeFile(String name) {
if(files.containsKey(name)) {
files.remove(name);
}
if(fileStreams.containsKey(name)) {
fileStreams.remove(name);
}
} | 57 | 79 | 216 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c7a02d4b8beefc9850f0ca630227b9410c4b8ad5ea1d49ce4b3ee6ad24aaa2ae | MIT | permissive | https://github.com/transloadit/java-sdk/blob/main/LICENSE |
734d345bb9a8f53810ea6395 | transloadit/java-sdk | src/main/java/com/transloadit/sdk/Assembly.java | Assembly.save | https://github.com/transloadit/java-sdk/blob/9326c540a66f77b3d907d0b2c05bff1145ca14f7/src/main/java/com/transloadit/sdk/Assembly.java#L155-L184 | train | java | Submits the configured assembly to Transloadit for processing.
@param isResumable boolean value that tells the assembly whether or not to use tus.
@return {@link AssemblyResponse} the response received from the Transloadit server.
@throws RequestException if request to Transloadit server fails.
@throws LocalOpe... | public AssemblyResponse save(boolean isResumable)
throws RequestException, LocalOperationException {
Request request = new Request(getClient());
options.put("steps", steps.toMap());
// only do tus uploads if files will be uploaded
if (isResumable && getFilesCount() > 0) {
... | Submits the configured assembly to Transloadit for processing.
@param isResumable boolean value that tells the assembly whether or not to use tus.
@return {@link AssemblyResponse} the response received from the Transloadit server.
@throws RequestException if request to Transloadit server fails.
@throws LocalOpe... | 315 | 394 | 1,289 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 57be15389cd7bcc09b4a0eaf5b2e18ba6feaa504cd8a9cd5d80ff1a843be3f59 | MIT | permissive | https://github.com/transloadit/java-sdk/blob/main/LICENSE |
7092ae5d3e933a88838b186b | transloadit/java-sdk | src/main/java/com/transloadit/sdk/Assembly.java | Assembly.processTusFiles | https://github.com/transloadit/java-sdk/blob/9326c540a66f77b3d907d0b2c05bff1145ca14f7/src/main/java/com/transloadit/sdk/Assembly.java#L209-L220 | train | java | Prepares all files added for tus uploads.
@param assemblyUrl the assembly url affiliated with the tus upload.
@throws IOException when there's a failure with file retrieval.
@throws ProtocolException when there's a failure with tus upload. | protected void processTusFiles(String assemblyUrl) throws IOException, ProtocolException {
tusClient.setUploadCreationURL(new URL(getClient().getHostUrl() + "/resumable/files/"));
tusClient.enableResuming(tusURLStore);
for (Map.Entry<String, File> entry : files.entrySet()) {
process... | Prepares all files added for tus uploads.
@param assemblyUrl the assembly url affiliated with the tus upload.
@throws IOException when there's a failure with file retrieval.
@throws ProtocolException when there's a failure with tus upload.
protected void processTusFiles(String assemblyUrl) throws IOException, P... | 164 | 246 | 555 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0a77caa25668b3f9bded6d05a82ed3a6ccd44d80c74962afa867a0f56a1e7a97 | MIT | permissive | https://github.com/transloadit/java-sdk/blob/main/LICENSE |
6439bea461242e4d5a99bb98 | transloadit/java-sdk | src/main/java/com/transloadit/sdk/Assembly.java | Assembly.processTusFile | https://github.com/transloadit/java-sdk/blob/9326c540a66f77b3d907d0b2c05bff1145ca14f7/src/main/java/com/transloadit/sdk/Assembly.java#L230-L241 | train | java | Prepares a file for tus upload.
@param inptStream {@link InputStream}
@param fieldName the form field name assigned to the file.
@param assemblyUrl the assembly url affiliated with the tus upload.
@throws IOException when there's a failure with reading the input stream. | protected void processTusFile(InputStream inptStream, String fieldName, String assemblyUrl) throws IOException {
TusUpload upload = getTusUploadInstance(inptStream, fieldName, assemblyUrl);
Map<String, String> metadata = new HashMap<String, String>();
metadata.put("filename", fieldName);
... | Prepares a file for tus upload.
@param inptStream {@link InputStream}
@param fieldName the form field name assigned to the file.
@param assemblyUrl the assembly url affiliated with the tus upload.
@throws IOException when there's a failure with reading the input stream.
protected void processTusFile(InputStream inptS... | 147 | 271 | 485 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 872201f733da1fa6a5e3c9ccf477a764abed38ccc5bd677a38362a7bebdc32b1 | MIT | permissive | https://github.com/transloadit/java-sdk/blob/main/LICENSE |
d305db05d3839a959dda52e6 | transloadit/java-sdk | src/main/java/com/transloadit/sdk/Assembly.java | Assembly.processTusFile | https://github.com/transloadit/java-sdk/blob/9326c540a66f77b3d907d0b2c05bff1145ca14f7/src/main/java/com/transloadit/sdk/Assembly.java#L251-L262 | train | java | Prepares a file for tus upload.
@param file {@link File}
@param fieldName the form field name assigned to the file.
@param assemblyUrl the assembly url affiliated with the tus upload.
@throws IOException when there's a failure with file retrieval. | protected void processTusFile(File file, String fieldName, String assemblyUrl) throws IOException {
TusUpload upload = getTusUploadInstance(file);
Map<String, String> metadata = new HashMap<String, String>();
metadata.put("filename", file.getName());
metadata.put("assembly_url", assembl... | Prepares a file for tus upload.
@param file {@link File}
@param fieldName the form field name assigned to the file.
@param assemblyUrl the assembly url affiliated with the tus upload.
@throws IOException when there's a failure with file retrieval.
protected void processTusFile(File file, String fieldName, String asse... | 135 | 248 | 447 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2be2c8f944ad06e014c94b1939aec1070be2aea89726a9c7a8d8051b069f7d28 | MIT | permissive | https://github.com/transloadit/java-sdk/blob/main/LICENSE |
525b2d351dd9cf99cc3faaf6 | transloadit/java-sdk | src/main/java/com/transloadit/sdk/Assembly.java | Assembly.getTusUploadInstance | https://github.com/transloadit/java-sdk/blob/9326c540a66f77b3d907d0b2c05bff1145ca14f7/src/main/java/com/transloadit/sdk/Assembly.java#L273-L280 | train | java | Returns the {@link TusUpload} instance that would be used to upload a file.
@param inputStream {@link InputStream}
@param fieldName {@link String} the field name assigned to the file
@param assemblyUrl {@link String} the assembly url
@return {@link TusUpload}
@throws IOException when there's a failure with reading the... | protected TusUpload getTusUploadInstance(InputStream inputStream, String fieldName, String assemblyUrl) throws IOException {
TusUpload tusUpload = new TusUpload();
tusUpload.setInputStream(inputStream);
tusUpload.setFingerprint(String.format("%s-%d-%s", fieldName, inputStream.available(), assemb... | Returns the {@link TusUpload} instance that would be used to upload a file.
@param inputStream {@link InputStream}
@param fieldName {@link String} the field name assigned to the file
@param assemblyUrl {@link String} the assembly url
@return {@link TusUpload}
@throws IOException when there's a failure with reading the... | 143 | 334 | 413 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 51d8a2945b2dd40684972bbe0c8d801b7a1fcea59e515752132e37415997d088 | MIT | permissive | https://github.com/transloadit/java-sdk/blob/main/LICENSE |
bfc5d6256ca452d9d58d3d4a | transloadit/java-sdk | src/main/java/com/transloadit/sdk/Assembly.java | Assembly.uploadTusFiles | https://github.com/transloadit/java-sdk/blob/9326c540a66f77b3d907d0b2c05bff1145ca14f7/src/main/java/com/transloadit/sdk/Assembly.java#L299-L318 | train | java | Does the actual uploading of files (when tus is enabled).
@throws IOException when there's a failure with file retrieval.
@throws ProtocolException when there's a failure with tus upload. | protected void uploadTusFiles() throws IOException, ProtocolException {
while (uploads.size() > 0) {
final TusUploader tusUploader = tusClient.resumeOrCreateUpload(uploads.get(0));
TusExecutor tusExecutor = new TusExecutor() {
@Override
protected void mak... | Does the actual uploading of files (when tus is enabled).
@throws IOException when there's a failure with file retrieval.
@throws ProtocolException when there's a failure with tus upload.
protected void uploadTusFiles() throws IOException, ProtocolException {
while (uploads.size() > 0) {
final Tus... | 168 | 188 | 762 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fde122197e4eccbe2464d06e33906c0e472e38f865469bedf75bced2da794a76 | MIT | permissive | https://github.com/transloadit/java-sdk/blob/main/LICENSE |
c065b7deb7a786e08f02bf20 | openEHR/adl2-core | adl2core-common/src/main/java/org/openehr/adl/util/AdlUtils.java | AdlUtils.makeClone | https://github.com/openEHR/adl2-core/blob/dd5c1c0fe7ef5e43fbfaf6a0389990ba5380e22c/adl2core-common/src/main/java/org/openehr/adl/util/AdlUtils.java#L96-L99 | train | java | Creates a clone using java serialization
@param from Object to be cloned
@param <T> type of the cloned object
@return Clone of the object | @SuppressWarnings("unchecked")
public static <T extends Serializable> T makeClone(T from) {
return (T) SerializationUtils.clone(from);
} | Creates a clone using java serialization
@param from Object to be cloned
@param <T> type of the cloned object
@return Clone of the object
@SuppressWarnings("unchecked")
public static <T extends Serializable> T makeClone(T from) {
return (T) SerializationUtils.clone(from);
} | 62 | 139 | 152 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 065447a67fbf07d9ad4d1c35ef12f6d7fccab16151881b8fadbe30467fd537fc | AGPL-3.0 | strong-copyleft | https://github.com/openEHR/adl2-core/blob/master/LICENSE |
99de1509642d28ec49f926f8 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/cudnnActivationMode.java | cudnnActivationMode.stringFor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/cudnnActivationMode.java#L55-L67 | train | java | Returns a string representation of the given constant
@return A string representation of the given constant | public static String stringFor(int n)
{
switch (n)
{
case CUDNN_ACTIVATION_SIGMOID: return "CUDNN_ACTIVATION_SIGMOID";
case CUDNN_ACTIVATION_RELU: return "CUDNN_ACTIVATION_RELU";
case CUDNN_ACTIVATION_TANH: return "CUDNN_ACTIVATION_TANH";
case C... | Returns a string representation of the given constant
@return A string representation of the given constant
public static String stringFor(int n)
{
switch (n)
{
case CUDNN_ACTIVATION_SIGMOID: return "CUDNN_ACTIVATION_SIGMOID";
case CUDNN_ACTIVATION_RELU: return "CUDNN_... | 181 | 108 | 610 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 650641ccda0824751150ed48a7e6f2a3ada9d7775798551f768383c064e0f755 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
13573d5494b971a9fbc7efaa | wcm-io/wcm-io-sling | commons/src/main/java/io/wcm/sling/commons/resource/ResourceType.java | ResourceType.makeAbsolute | https://github.com/wcm-io/wcm-io-sling/blob/90adbe432469378794b5695c72e9cdfa2b7d36f1/commons/src/main/java/io/wcm/sling/commons/resource/ResourceType.java#L65-L90 | train | java | Converts the resource type to an absolute path. If it does not start with "/" the resource is resolved
via search paths using resource resolver. If not matching resource is found it is returned unchanged.
@param resourceType Resource type
@param resourceResolver Resource resolver
@return Absolute resource type | public static @NotNull String makeAbsolute(@NotNull String resourceType, @NotNull ResourceResolver resourceResolver) {
if (StringUtils.isEmpty(resourceType) || StringUtils.startsWith(resourceType, "/")) {
return resourceType;
}
// first try to resolve path via component manager - because on publish i... | Converts the resource type to an absolute path. If it does not start with "/" the resource is resolved
via search paths using resource resolver. If not matching resource is found it is returned unchanged.
@param resourceType Resource type
@param resourceResolver Resource resolver
@return Absolute resource type
public ... | 230 | 311 | 930 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c116ffec5993bc6b7e5b5b7577f66454d367934a1ccc137842d7255b689f8bbb | Apache-2.0 | permissive | https://github.com/wcm-io/wcm-io-sling/blob/develop/LICENSE |
3204dc457ca3134b58550272 | wcm-io/wcm-io-sling | commons/src/main/java/io/wcm/sling/commons/resource/ResourceType.java | ResourceType.makeRelative | https://github.com/wcm-io/wcm-io-sling/blob/90adbe432469378794b5695c72e9cdfa2b7d36f1/commons/src/main/java/io/wcm/sling/commons/resource/ResourceType.java#L99-L107 | train | java | Makes the given resource type relative by stripping off any search path prefix.
In case the given resource type does not start with any of these prefixes it is returned unmodified.
@param resourceType The resource type to make relative.
@param resourceResolver Resource resolver
@return Relative resource type | public static @NotNull String makeRelative(@NotNull String resourceType, @NotNull ResourceResolver resourceResolver) {
String[] searchPaths = resourceResolver.getSearchPath();
for (String prefix : searchPaths) {
if (StringUtils.startsWith(resourceType, prefix)) {
return resourceType.substring(pref... | Makes the given resource type relative by stripping off any search path prefix.
In case the given resource type does not start with any of these prefixes it is returned unmodified.
@param resourceType The resource type to make relative.
@param resourceResolver Resource resolver
@return Relative resource type
public st... | 128 | 309 | 376 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7d803d8ab4878b431124a5eca05e06ed28d8aeefd554bc1b4779fc64795805ec | Apache-2.0 | permissive | https://github.com/wcm-io/wcm-io-sling/blob/develop/LICENSE |
cbad17b0fbd74ecb41608023 | wcm-io/wcm-io-sling | commons/src/main/java/io/wcm/sling/commons/resource/ResourceType.java | ResourceType.makeRelative | https://github.com/wcm-io/wcm-io-sling/blob/90adbe432469378794b5695c72e9cdfa2b7d36f1/commons/src/main/java/io/wcm/sling/commons/resource/ResourceType.java#L118-L127 | train | java | Makes the given resource type relative by stripping off an /apps/ or /libs/ prefix.
In case the given resource type does not start with any of these prefixes it is returned unmodified.
This method does not take the real configured search paths into account, but in case of AEM usually only /apps/ and
/libs/ are used.
@p... | @Deprecated
public static @NotNull String makeRelative(@NotNull String resourceType) {
if (StringUtils.startsWith(resourceType, APPS_PREFIX)) {
return resourceType.substring(APPS_PREFIX.length());
}
else if (StringUtils.startsWith(resourceType, LIBS_PREFIX)) {
return resourceType.substring(LIB... | Makes the given resource type relative by stripping off an /apps/ or /libs/ prefix.
In case the given resource type does not start with any of these prefixes it is returned unmodified.
This method does not take the real configured search paths into account, but in case of AEM usually only /apps/ and
/libs/ are used.
@p... | 178 | 484 | 374 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 61b33fc8e83b43d49b2b422688749494626d1ade0e9a224f9ef7cd269450f30e | Apache-2.0 | permissive | https://github.com/wcm-io/wcm-io-sling/blob/develop/LICENSE |
4fa16db9be068f482b203ffd | wcm-io/wcm-io-sling | commons/src/main/java/io/wcm/sling/commons/resource/ResourceType.java | ResourceType.is | https://github.com/wcm-io/wcm-io-sling/blob/90adbe432469378794b5695c72e9cdfa2b7d36f1/commons/src/main/java/io/wcm/sling/commons/resource/ResourceType.java#L169-L198 | train | java | Returns <code>true</code> if the resource type or any of the resource's super type(s) equals the given resource
type.
This implementation is equal to {@link ResourceResolver#isResourceType(Resource, String)} - but in earlier sling
version the comparison check did not take potentieal mixtures of relative and absolute re... | public static boolean is(@Nullable Resource resource, @Nullable String resourceType) {
if (resource == null || resourceType == null) {
return false;
}
ResourceResolver resolver = resource.getResourceResolver();
// Check if the resource is of the given type. This method first checks the
// reso... | Returns <code>true</code> if the resource type or any of the resource's super type(s) equals the given resource
type.
This implementation is equal to {@link ResourceResolver#isResourceType(Resource, String)} - but in earlier sling
version the comparison check did not take potentieal mixtures of relative and absolute re... | 408 | 711 | 1,241 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8699c790d1d873f48d42b121fd8a4c0694d6338c093ac44b6497663e1a55f460 | Apache-2.0 | permissive | https://github.com/wcm-io/wcm-io-sling/blob/develop/LICENSE |
769c491995bb1de3bc719687 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.checkResult | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L134-L142 | train | java | If the given result is not cudnnStatus.CUDNN_STATUS_SUCCESS
and exceptions have been enabled, this method will throw a
CudaException with an error message that corresponds to the
given result code. Otherwise, the given result is simply
returned.
@param result The result to check
@return The result that was given as th... | private static int checkResult(int result)
{
if (exceptionsEnabled && result !=
cudnnStatus.CUDNN_STATUS_SUCCESS)
{
throw new CudaException(cudnnStatus.stringFor(result));
}
return result;
} | If the given result is not cudnnStatus.CUDNN_STATUS_SUCCESS
and exceptions have been enabled, this method will throw a
CudaException with an error message that corresponds to the
given result code. Otherwise, the given result is simply
returned.
@param result The result to check
@return The result that was given as th... | 149 | 451 | 254 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e07f40173fe717995857fef176fa79ecd5ef1053619d378ddc7a783800ddd3a2 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
091c6805850f0e742da58a04 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnSetTensor4dDescriptorEx | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L285-L298 | train | java | width of input section | public static int cudnnSetTensor4dDescriptorEx(
cudnnTensorDescriptor tensorDesc,
int dataType, /** image data type */
int n, /** number of inputs (batch size) */
int c, /** number of input feature maps */
int h, /** height of input section */
int w, /** width of input s... | width of input section
public static int cudnnSetTensor4dDescriptorEx(
cudnnTensorDescriptor tensorDesc,
int dataType, /** image data type */
int n, /** number of inputs (batch size) */
int c, /** number of input feature maps */
int h, /** height of input section */
int... | 145 | 22 | 562 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b03ec9bbaeb9e1cda1c190c49de8127679215e7aadde49217ed13de7b6fb5aa2 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
66145f6c2bb847f6f0fadd87 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnTransformTensor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L439-L449 | train | java | Tensor layout conversion helper (y = alpha * x + beta * y) | public static int cudnnTransformTensor(
cudnnHandle handle,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
Pointer beta,
cudnnTensorDescriptor yDesc,
Pointer y)
{
return checkResult(cudnnTransformTensorNative(handle, alpha, xDesc, x, beta... | Tensor layout conversion helper (y = alpha * x + beta * y)
public static int cudnnTransformTensor(
cudnnHandle handle,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
Pointer beta,
cudnnTensorDescriptor yDesc,
Pointer y)
{
return checkRes... | 97 | 58 | 339 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b04e466c2d4387b246128a5471a03da11da36380e3cee8a7867ae225f3a016a2 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
964b4520967e6bee217b442f | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnAddTensor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L461-L471 | train | java | Tensor Bias addition : C = alpha * A + beta * C | public static int cudnnAddTensor(
cudnnHandle handle,
Pointer alpha,
cudnnTensorDescriptor aDesc,
Pointer A,
Pointer beta,
cudnnTensorDescriptor cDesc,
Pointer C)
{
return checkResult(cudnnAddTensorNative(handle, alpha, aDesc, A, beta, cDesc, C))... | Tensor Bias addition : C = alpha * A + beta * C
public static int cudnnAddTensor(
cudnnHandle handle,
Pointer alpha,
cudnnTensorDescriptor aDesc,
Pointer A,
Pointer beta,
cudnnTensorDescriptor cDesc,
Pointer C)
{
return checkResult(cudnnAddTenso... | 96 | 47 | 327 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 67afc35eb7036f3f3ede90288a398400a16663686dbe3ccac628d9c715620d56 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
21bf506de90a016ca5aff9e9 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnOpTensor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L532-L546 | train | java | B tensor is ignored for CUDNN_OP_TENSOR_SQRT, CUDNN_OP_TENSOR_NOT. | public static int cudnnOpTensor(
cudnnHandle handle,
cudnnOpTensorDescriptor opTensorDesc,
Pointer alpha1,
cudnnTensorDescriptor aDesc,
Pointer A,
Pointer alpha2,
cudnnTensorDescriptor bDesc,
Pointer B,
Pointer beta,
cudnnTensorDes... | B tensor is ignored for CUDNN_OP_TENSOR_SQRT, CUDNN_OP_TENSOR_NOT.
public static int cudnnOpTensor(
cudnnHandle handle,
cudnnOpTensorDescriptor opTensorDesc,
Pointer alpha1,
cudnnTensorDescriptor aDesc,
Pointer A,
Pointer alpha2,
cudnnTensorDescriptor bDesc... | 150 | 66 | 489 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8417ce6e6158e5de78d13704efcfa7dcc3e6b00302efde94b4a441882d1cf7e6 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
3bd3881af1c1b45e55d4c932 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetReductionIndicesSize | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L619-L627 | train | java | Helper function to return the minimum size of the index space to be passed to the reduction given the input and
output tensors | public static int cudnnGetReductionIndicesSize(
cudnnHandle handle,
cudnnReduceTensorDescriptor reduceTensorDesc,
cudnnTensorDescriptor aDesc,
cudnnTensorDescriptor cDesc,
long[] sizeInBytes)
{
return checkResult(cudnnGetReductionIndicesSizeNative(handle, reduceTe... | Helper function to return the minimum size of the index space to be passed to the reduction given the input and
output tensors
public static int cudnnGetReductionIndicesSize(
cudnnHandle handle,
cudnnReduceTensorDescriptor reduceTensorDesc,
cudnnTensorDescriptor aDesc,
cudnnTensorDes... | 112 | 126 | 364 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | cf1f9bb3613e2e80a0089ef85f1cd238f3ba83f9e4a28aef68425e76cd16882f | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
0865a56318e577690f227e1b | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetReductionWorkspaceSize | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L638-L646 | train | java | Helper function to return the minimum size of the workspace to be passed to the reduction given the input and output
tensors | public static int cudnnGetReductionWorkspaceSize(
cudnnHandle handle,
cudnnReduceTensorDescriptor reduceTensorDesc,
cudnnTensorDescriptor aDesc,
cudnnTensorDescriptor cDesc,
long[] sizeInBytes)
{
return checkResult(cudnnGetReductionWorkspaceSizeNative(handle, redu... | Helper function to return the minimum size of the workspace to be passed to the reduction given the input and output
tensors
public static int cudnnGetReductionWorkspaceSize(
cudnnHandle handle,
cudnnReduceTensorDescriptor reduceTensorDesc,
cudnnTensorDescriptor aDesc,
cudnnTensorDes... | 112 | 124 | 368 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e2e11ff0c721b17016ab3e7fb4a1e025ee9cc07b4065a04e437761bc060501da | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
913df70da46ba57368db910f | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnReduceTensor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L658-L673 | train | java | The indices space is ignored for reduce ops other than min or max. | public static int cudnnReduceTensor(
cudnnHandle handle,
cudnnReduceTensorDescriptor reduceTensorDesc,
Pointer indices,
long indicesSizeInBytes,
Pointer workspace,
long workspaceSizeInBytes,
Pointer alpha,
cudnnTensorDescriptor aDesc,
Point... | The indices space is ignored for reduce ops other than min or max.
public static int cudnnReduceTensor(
cudnnHandle handle,
cudnnReduceTensorDescriptor reduceTensorDesc,
Pointer indices,
long indicesSizeInBytes,
Pointer workspace,
long workspaceSizeInBytes,
... | 151 | 66 | 592 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | efa59a0ec73835174a2c6feee2a6769ac38f5888a09abff55753a33c71d12b06 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
87671aa924c42c6bf39546c8 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnSetTensor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L690-L697 | train | java | Set all values of a tensor to a given value : y[i] = value[0] | public static int cudnnSetTensor(
cudnnHandle handle,
cudnnTensorDescriptor yDesc,
Pointer y,
Pointer valuePtr)
{
return checkResult(cudnnSetTensorNative(handle, yDesc, y, valuePtr));
} | Set all values of a tensor to a given value : y[i] = value[0]
public static int cudnnSetTensor(
cudnnHandle handle,
cudnnTensorDescriptor yDesc,
Pointer y,
Pointer valuePtr)
{
return checkResult(cudnnSetTensorNative(handle, yDesc, y, valuePtr));
} | 77 | 61 | 236 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 74d09664ebf6afc6d0ac2edc2bc376f83daf119ec05439953d182c0a1c1cd480 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
9a13bf3092c5fa62f469fadf | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnScaleTensor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L706-L713 | train | java | Scale all values of a tensor by a given factor : y[i] = alpha * y[i] | public static int cudnnScaleTensor(
cudnnHandle handle,
cudnnTensorDescriptor yDesc,
Pointer y,
Pointer alpha)
{
return checkResult(cudnnScaleTensorNative(handle, yDesc, y, alpha));
} | Scale all values of a tensor by a given factor : y[i] = alpha * y[i]
public static int cudnnScaleTensor(
cudnnHandle handle,
cudnnTensorDescriptor yDesc,
Pointer y,
Pointer alpha)
{
return checkResult(cudnnScaleTensorNative(handle, yDesc, y, alpha));
} | 76 | 68 | 234 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 714224bae79e50c8a445880317185f3caa147407f937e5160c457918b4940601 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
112f7e1ec1cc1a2828322e6a | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetFilter4dDescriptor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L752-L762 | train | java | width of each input filter | public static int cudnnGetFilter4dDescriptor(
cudnnFilterDescriptor filterDesc,
int[] dataType, /** image data type */
int[] format,
int[] k, /** number of output feature maps */
int[] c, /** number of input feature maps */
int[] h, /** height of each input filter */
... | width of each input filter
public static int cudnnGetFilter4dDescriptor(
cudnnFilterDescriptor filterDesc,
int[] dataType, /** image data type */
int[] format,
int[] k, /** number of output feature maps */
int[] c, /** number of input feature maps */
int[] h, /** heig... | 124 | 27 | 484 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f67335a9fef3a85e8af3876a2f2ee6d00ee1830ad1409276a23614b62b5b83cd | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
ffedeec036a7c9b384d3693d | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnSetFilterNdDescriptor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L773-L781 | train | java | width of each input filter | public static int cudnnSetFilterNdDescriptor(
cudnnFilterDescriptor filterDesc,
int dataType, /** image data type */
int format,
int nbDims,
int[] filterDimA)
{
return checkResult(cudnnSetFilterNdDescriptorNative(filterDesc, dataType, format, nbDims, filterDimA));
... | width of each input filter
public static int cudnnSetFilterNdDescriptor(
cudnnFilterDescriptor filterDesc,
int dataType, /** image data type */
int format,
int nbDims,
int[] filterDimA)
{
return checkResult(cudnnSetFilterNdDescriptorNative(filterDesc, dataType, f... | 83 | 27 | 325 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 87489c399f4194fb59a7a4b2996a5c233c882886efa8ae0b5d2f3e16f140b197 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
357273dc8bd2a86c3ac1f807 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetConvolution2dForwardOutputDim | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L923-L933 | train | java | Helper function to return the dimensions of the output tensor given a convolution descriptor | public static int cudnnGetConvolution2dForwardOutputDim(
cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor inputTensorDesc,
cudnnFilterDescriptor filterDesc,
int[] n,
int[] c,
int[] h,
int[] w)
{
return checkResult(cudnnGetConvolution2dF... | Helper function to return the dimensions of the output tensor given a convolution descriptor
public static int cudnnGetConvolution2dForwardOutputDim(
cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor inputTensorDesc,
cudnnFilterDescriptor filterDesc,
int[] n,
int[] ... | 119 | 92 | 400 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 844b3f6cd213e5329ccba529cc7b2906e8d4038c0258b7ccd4cba3c5a2e58ad7 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
5955586713847d609936b064 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetConvolutionNdDescriptor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L965-L976 | train | java | convolution data type | public static int cudnnGetConvolutionNdDescriptor(
cudnnConvolutionDescriptor convDesc,
int arrayLengthRequested,
int[] arrayLength,
int[] padA,
int[] strideA,
int[] dilationA,
int[] mode,
int[] computeType)/** convolution data type */
{
... | convolution data type
public static int cudnnGetConvolutionNdDescriptor(
cudnnConvolutionDescriptor convDesc,
int arrayLengthRequested,
int[] arrayLength,
int[] padA,
int[] strideA,
int[] dilationA,
int[] mode,
int[] computeType)/** convolution dat... | 119 | 21 | 475 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 8c5f73e4f7084f45f1d8680e41ddc6b25257cf8f1c988bfbc443ee74712f4550 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
80ff1340c5a8df5f4cba40da | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetConvolutionNdForwardOutputDim | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L989-L997 | train | java | Helper function to return the dimensions of the output tensor given a convolution descriptor | public static int cudnnGetConvolutionNdForwardOutputDim(
cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor inputTensorDesc,
cudnnFilterDescriptor filterDesc,
int nbDims,
int[] tensorOuputDimA)
{
return checkResult(cudnnGetConvolutionNdForwardOutputDimNati... | Helper function to return the dimensions of the output tensor given a convolution descriptor
public static int cudnnGetConvolutionNdForwardOutputDim(
cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor inputTensorDesc,
cudnnFilterDescriptor filterDesc,
int nbDims,
int... | 112 | 92 | 394 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3f66d24a19133417901332dad3a6d0339ae0d22d13e480b52a867eb0bc30d903 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
76bfd4e871a7bc5357c96ec1 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetConvolutionForwardWorkspaceSize | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1133-L1143 | train | java | Helper function to return the minimum size of the workspace to be passed to the convolution given an algo | public static int cudnnGetConvolutionForwardWorkspaceSize(
cudnnHandle handle,
cudnnTensorDescriptor xDesc,
cudnnFilterDescriptor wDesc,
cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor yDesc,
int algo,
long[] sizeInBytes)
{
return chec... | Helper function to return the minimum size of the workspace to be passed to the convolution given an algo
public static int cudnnGetConvolutionForwardWorkspaceSize(
cudnnHandle handle,
cudnnTensorDescriptor xDesc,
cudnnFilterDescriptor wDesc,
cudnnConvolutionDescriptor convDesc,
... | 126 | 105 | 439 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fccada7f74358c164569636eb9ab11b022f7cac677ce591aa84631bd9f0c6e11 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
74a6290420a45fd4bf907a41 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnConvolutionForward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1156-L1172 | train | java | Function to perform the forward pass for batch convolution | public static int cudnnConvolutionForward(
cudnnHandle handle,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
cudnnFilterDescriptor wDesc,
Pointer w,
cudnnConvolutionDescriptor convDesc,
int algo,
Pointer workSpace,
long wo... | Function to perform the forward pass for batch convolution
public static int cudnnConvolutionForward(
cudnnHandle handle,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
cudnnFilterDescriptor wDesc,
Pointer w,
cudnnConvolutionDescriptor convDesc,
... | 157 | 58 | 591 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5c7e59d02365e5193da55d3ef48fa99422f8f5f028c2d27cba7864a321b755f8 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
bc81ece6db373af15f6d5d51 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnConvolutionBiasActivationForward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1190-L1211 | train | java | Fused conv/bias/activation operation : y = Act( alpha1 * conv(x) + alpha2 * z + bias ) | public static int cudnnConvolutionBiasActivationForward(
cudnnHandle handle,
Pointer alpha1,
cudnnTensorDescriptor xDesc,
Pointer x,
cudnnFilterDescriptor wDesc,
Pointer w,
cudnnConvolutionDescriptor convDesc,
int algo,
Pointer workSpace,
... | Fused conv/bias/activation operation : y = Act( alpha1 * conv(x) + alpha2 * z + bias )
public static int cudnnConvolutionBiasActivationForward(
cudnnHandle handle,
Pointer alpha1,
cudnnTensorDescriptor xDesc,
Pointer x,
cudnnFilterDescriptor wDesc,
Pointer w,
... | 232 | 86 | 840 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9fae23e9d6e3528000d15920d0c01887a934b0bd99450e8962a23b53b37e38a3 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
8fc410c45d294db087fbd138 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnConvolutionBackwardBias | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1234-L1244 | train | java | Function to compute the bias gradient for batch convolution | public static int cudnnConvolutionBackwardBias(
cudnnHandle handle,
Pointer alpha,
cudnnTensorDescriptor dyDesc,
Pointer dy,
Pointer beta,
cudnnTensorDescriptor dbDesc,
Pointer db)
{
return checkResult(cudnnConvolutionBackwardBiasNative(handle, a... | Function to compute the bias gradient for batch convolution
public static int cudnnConvolutionBackwardBias(
cudnnHandle handle,
Pointer alpha,
cudnnTensorDescriptor dyDesc,
Pointer dy,
Pointer beta,
cudnnTensorDescriptor dbDesc,
Pointer db)
{
re... | 98 | 59 | 363 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d5f6a52d032b1e8691b08451d8b675505815ea94c0558d847daf00913ff1cc3e | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
cfa66115f15bda91eb4071f3 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetConvolutionBackwardFilterWorkspaceSize | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1372-L1382 | train | java | Helper function to return the minimum size of the workspace to be passed to the convolution given an algo | public static int cudnnGetConvolutionBackwardFilterWorkspaceSize(
cudnnHandle handle,
cudnnTensorDescriptor xDesc,
cudnnTensorDescriptor dyDesc,
cudnnConvolutionDescriptor convDesc,
cudnnFilterDescriptor gradDesc,
int algo,
long[] sizeInBytes)
{
... | Helper function to return the minimum size of the workspace to be passed to the convolution given an algo
public static int cudnnGetConvolutionBackwardFilterWorkspaceSize(
cudnnHandle handle,
cudnnTensorDescriptor xDesc,
cudnnTensorDescriptor dyDesc,
cudnnConvolutionDescriptor convDe... | 130 | 105 | 461 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d40f76c4cee3a80748f2d32fee49110fe505d84293a0461830c0e36dc5afc726 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
1fa31292f44fe4fa8bb70b74 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetConvolutionBackwardDataWorkspaceSize | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1540-L1550 | train | java | Helper function to return the minimum size of the workspace to be passed to the convolution given an algo | public static int cudnnGetConvolutionBackwardDataWorkspaceSize(
cudnnHandle handle,
cudnnFilterDescriptor wDesc,
cudnnTensorDescriptor dyDesc,
cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor dxDesc,
int algo,
long[] sizeInBytes)
{
retu... | Helper function to return the minimum size of the workspace to be passed to the convolution given an algo
public static int cudnnGetConvolutionBackwardDataWorkspaceSize(
cudnnHandle handle,
cudnnFilterDescriptor wDesc,
cudnnTensorDescriptor dyDesc,
cudnnConvolutionDescriptor convDesc... | 130 | 105 | 453 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a9b99621fd5b5b3bfe35302f96200822e559bbb795f7f3b148002412f7b280b7 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
d6a9fdf1714d7a74bff79652 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnSoftmaxForward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1615-L1627 | train | java | Function to perform forward softmax | public static int cudnnSoftmaxForward(
cudnnHandle handle,
int algo,
int mode,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
Pointer beta,
cudnnTensorDescriptor yDesc,
Pointer y)
{
return checkResult(cudnnSoftmaxForward... | Function to perform forward softmax
public static int cudnnSoftmaxForward(
cudnnHandle handle,
int algo,
int mode,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
Pointer beta,
cudnnTensorDescriptor yDesc,
Pointer y)
{
r... | 104 | 35 | 387 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3472d908ca1c8980ebd40f0f0ded072dc09e2b65f8c0076eb63604bae0232a40 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
ff2e7606ee493fcd60a0d4d4 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnSoftmaxBackward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1641-L1655 | train | java | Function to perform backward softmax | public static int cudnnSoftmaxBackward(
cudnnHandle handle,
int algo,
int mode,
Pointer alpha,
cudnnTensorDescriptor yDesc,
Pointer y,
cudnnTensorDescriptor dyDesc,
Pointer dy,
Pointer beta,
cudnnTensorDescriptor dxDesc,
P... | Function to perform backward softmax
public static int cudnnSoftmaxBackward(
cudnnHandle handle,
int algo,
int mode,
Pointer alpha,
cudnnTensorDescriptor yDesc,
Pointer y,
cudnnTensorDescriptor dyDesc,
Pointer dy,
Pointer beta,
cu... | 125 | 36 | 465 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ba79dcceba4a5f36b933c966bf2e4f85e0ebb9a682786c96d2efdadc039c32c9 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
b8b131918286afffdca0666c | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnPoolingForward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1820-L1831 | train | java | Function to perform forward pooling | public static int cudnnPoolingForward(
cudnnHandle handle,
cudnnPoolingDescriptor poolingDesc,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
Pointer beta,
cudnnTensorDescriptor yDesc,
Pointer y)
{
return checkResult(cudnnPooling... | Function to perform forward pooling
public static int cudnnPoolingForward(
cudnnHandle handle,
cudnnPoolingDescriptor poolingDesc,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
Pointer beta,
cudnnTensorDescriptor yDesc,
Pointer y)
{
... | 100 | 35 | 395 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a598af515e5baf4ef7aa7dae80e2deebeba05bab5e143862212cc92380bdb520 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
762e803227da19adaa0d5842 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnPoolingBackward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1844-L1859 | train | java | Function to perform backward pooling | public static int cudnnPoolingBackward(
cudnnHandle handle,
cudnnPoolingDescriptor poolingDesc,
Pointer alpha,
cudnnTensorDescriptor yDesc,
Pointer y,
cudnnTensorDescriptor dyDesc,
Pointer dy,
cudnnTensorDescriptor xDesc,
Pointer x,
... | Function to perform backward pooling
public static int cudnnPoolingBackward(
cudnnHandle handle,
cudnnPoolingDescriptor poolingDesc,
Pointer alpha,
cudnnTensorDescriptor yDesc,
Pointer y,
cudnnTensorDescriptor dyDesc,
Pointer dy,
cudnnTensorDescrip... | 140 | 36 | 541 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0c01cdb31f8d611452d2d5eff637296ec034479b94b3445107fda85abbdec6b2 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
0543c4065b11d667400533c2 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetActivationDescriptor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1900-L1907 | train | java | ceiling for clipped RELU, alpha for ELU | public static int cudnnGetActivationDescriptor(
cudnnActivationDescriptor activationDesc,
int[] mode,
int[] reluNanOpt,
double[] coef)/** ceiling for clipped RELU, alpha for ELU */
{
return checkResult(cudnnGetActivationDescriptorNative(activationDesc, mode, reluNanOpt, co... | ceiling for clipped RELU, alpha for ELU
public static int cudnnGetActivationDescriptor(
cudnnActivationDescriptor activationDesc,
int[] mode,
int[] reluNanOpt,
double[] coef)/** ceiling for clipped RELU, alpha for ELU */
{
return checkResult(cudnnGetActivationDescriptorNa... | 90 | 39 | 331 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 16420759209ba4d0e8958dcfc7f71bf528e4aaf4ccfa4f0d008202bb638ad148 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
e44742a37745e4f56c298d2f | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnActivationForward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1925-L1936 | train | java | Function to perform forward activation | public static int cudnnActivationForward(
cudnnHandle handle,
cudnnActivationDescriptor activationDesc,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
Pointer beta,
cudnnTensorDescriptor yDesc,
Pointer y)
{
return checkResult(cud... | Function to perform forward activation
public static int cudnnActivationForward(
cudnnHandle handle,
cudnnActivationDescriptor activationDesc,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
Pointer beta,
cudnnTensorDescriptor yDesc,
Pointer... | 100 | 38 | 410 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c3a09712cfff9883b92c1ac541668cc312c330dcf9d5be00ed9ad41d07a6435c | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
87fa9661a44f368d879fdced | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnActivationBackward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L1949-L1964 | train | java | Function to perform backward activation | public static int cudnnActivationBackward(
cudnnHandle handle,
cudnnActivationDescriptor activationDesc,
Pointer alpha,
cudnnTensorDescriptor yDesc,
Pointer y,
cudnnTensorDescriptor dyDesc,
Pointer dy,
cudnnTensorDescriptor xDesc,
Pointer x... | Function to perform backward activation
public static int cudnnActivationBackward(
cudnnHandle handle,
cudnnActivationDescriptor activationDesc,
Pointer alpha,
cudnnTensorDescriptor yDesc,
Pointer y,
cudnnTensorDescriptor dyDesc,
Pointer dy,
cudnnT... | 140 | 39 | 556 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d0269d456b1e7a3bbaaba6a66e7eda31f3af3fbacf594539c4f955df043e9294 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
08c8912a2c56b1b9d3510584 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnSetLRNDescriptor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2002-L2010 | train | java | <pre>
Uses a window [center-lookBehind, center+lookAhead], where
lookBehind = floor( (lrnN-1)/2 ), lookAhead = lrnN-lookBehind-1.
Values of double parameters cast to tensor data type.
</pre> | public static int cudnnSetLRNDescriptor(
cudnnLRNDescriptor normDesc,
int lrnN,
double lrnAlpha,
double lrnBeta,
double lrnK)
{
return checkResult(cudnnSetLRNDescriptorNative(normDesc, lrnN, lrnAlpha, lrnBeta, lrnK));
} | <pre>
Uses a window [center-lookBehind, center+lookAhead], where
lookBehind = floor( (lrnN-1)/2 ), lookAhead = lrnN-lookBehind-1.
Values of double parameters cast to tensor data type.
</pre>
public static int cudnnSetLRNDescriptor(
cudnnLRNDescriptor normDesc,
int lrnN,
double lrnAlpha,
... | 139 | 190 | 279 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d6ecbb044d349e3bb2ea317e59f3cf0f6d0a3cc3bb199225f285c99f07a2b90f | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
b51c9381f6271948270c5f16 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetLRNDescriptor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2025-L2033 | train | java | <pre>
Retrieve the settings currently stored in an LRN layer descriptor
Any of the provided pointers can be NULL (no corresponding value will be returned)
</pre> | public static int cudnnGetLRNDescriptor(
cudnnLRNDescriptor normDesc,
int[] lrnN,
double[] lrnAlpha,
double[] lrnBeta,
double[] lrnK)
{
return checkResult(cudnnGetLRNDescriptorNative(normDesc, lrnN, lrnAlpha, lrnBeta, lrnK));
} | <pre>
Retrieve the settings currently stored in an LRN layer descriptor
Any of the provided pointers can be NULL (no corresponding value will be returned)
</pre>
public static int cudnnGetLRNDescriptor(
cudnnLRNDescriptor normDesc,
int[] lrnN,
double[] lrnAlpha,
double[] lrnBeta,
... | 119 | 161 | 287 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4fdcd45af53f12e7b4b9d360305d684744fe9c966d5cdd90596b6fac51fb2d53 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
a77bdedbaaa7727bae01a9a5 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnLRNCrossChannelForward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2054-L2066 | train | java | LRN cross-channel forward computation. Double parameters cast to tensor data type | public static int cudnnLRNCrossChannelForward(
cudnnHandle handle,
cudnnLRNDescriptor normDesc,
int lrnMode,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
Pointer beta,
cudnnTensorDescriptor yDesc,
Pointer y)
{
return c... | LRN cross-channel forward computation. Double parameters cast to tensor data type
public static int cudnnLRNCrossChannelForward(
cudnnHandle handle,
cudnnLRNDescriptor normDesc,
int lrnMode,
Pointer alpha,
cudnnTensorDescriptor xDesc,
Pointer x,
Pointer bet... | 127 | 81 | 432 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bc6c9b213bd0ca7f0f61dbd917b9fd8c3317a41811c1004417126a6eb23fc0ed | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
174cd125833bc496bbe2932a | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnLRNCrossChannelBackward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2080-L2096 | train | java | LRN cross-channel backward computation. Double parameters cast to tensor data type | public static int cudnnLRNCrossChannelBackward(
cudnnHandle handle,
cudnnLRNDescriptor normDesc,
int lrnMode,
Pointer alpha,
cudnnTensorDescriptor yDesc,
Pointer y,
cudnnTensorDescriptor dyDesc,
Pointer dy,
cudnnTensorDescriptor xDesc,
... | LRN cross-channel backward computation. Double parameters cast to tensor data type
public static int cudnnLRNCrossChannelBackward(
cudnnHandle handle,
cudnnLRNDescriptor normDesc,
int lrnMode,
Pointer alpha,
cudnnTensorDescriptor yDesc,
Pointer y,
cudnnTens... | 167 | 82 | 578 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ffa7c3c3a4da87211a1417d679d3dfd0c507ccaa6d9ac2de889fd3c6d299566d | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
355920a77988542630c640ce | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnDivisiveNormalizationForward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2114-L2129 | train | java | LCN/divisive normalization functions: y = alpha * normalize(x) + beta * y | public static int cudnnDivisiveNormalizationForward(
cudnnHandle handle,
cudnnLRNDescriptor normDesc,
int mode,
Pointer alpha,
cudnnTensorDescriptor xDesc, /** same desc for means, temp, temp2 */
Pointer x,
Pointer means, /** if NULL, means are assumed to be ... | LCN/divisive normalization functions: y = alpha * normalize(x) + beta * y
public static int cudnnDivisiveNormalizationForward(
cudnnHandle handle,
cudnnLRNDescriptor normDesc,
int mode,
Pointer alpha,
cudnnTensorDescriptor xDesc, /** same desc for means, temp, temp2 */
... | 171 | 73 | 612 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1d56e8fcd7484893166bf8ec06f598fe3844c24016965ceb6957e55e330a7eb4 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
c75efe08857ac90766c6a45d | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnDeriveBNTensorDescriptor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2187-L2193 | train | java | <pre>
Derives a tensor descriptor from layer data descriptor for BatchNormalization
scale, invVariance, bnBias, bnScale tensors. Use this tensor desc for
bnScaleBiasMeanVarDesc and bnScaleBiasDiffDesc in Batch Normalization forward and backward functions.
</pre> | public static int cudnnDeriveBNTensorDescriptor(
cudnnTensorDescriptor derivedBnDesc,
cudnnTensorDescriptor xDesc,
int mode)
{
return checkResult(cudnnDeriveBNTensorDescriptorNative(derivedBnDesc, xDesc, mode));
} | <pre>
Derives a tensor descriptor from layer data descriptor for BatchNormalization
scale, invVariance, bnBias, bnScale tensors. Use this tensor desc for
bnScaleBiasMeanVarDesc and bnScaleBiasDiffDesc in Batch Normalization forward and backward functions.
</pre>
public static int cudnnDeriveBNTensorDescriptor(
... | 123 | 262 | 255 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4c6efd7be54171791c695c0f5f248f3253d76f5f0c669b8fce81de4762b61739 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
968c0cdca5ff2fdc7e6654f1 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnBatchNormalizationForwardTraining | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2274-L2325 | train | java | Computes y = BN(x). Also accumulates moving averages of mean and inverse variances | public static int cudnnBatchNormalizationForwardTraining(
cudnnHandle handle,
int mode,
Pointer alpha, /** alpha[0] = result blend factor */
Pointer beta, /** beta[0] = dest layer blend factor */
cudnnTensorDescriptor xDesc,
Pointer x, /** NxCxHxW */
cudnnTenso... | Computes y = BN(x). Also accumulates moving averages of mean and inverse variances
public static int cudnnBatchNormalizationForwardTraining(
cudnnHandle handle,
int mode,
Pointer alpha, /** alpha[0] = result blend factor */
Pointer beta, /** beta[0] = dest layer blend factor */
... | 680 | 82 | 2,677 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 2e2e14a7637c3ca19b9e40aa4b982d65e52c30205fd645b355c4d110979281fe | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
ddabb59dfeddb40155f5a162 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnBatchNormalizationForwardTrainingEx | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2378-L2409 | train | java | Computes y = relu(BN(x) + z). Also accumulates moving averages of mean and inverse variances | public static int cudnnBatchNormalizationForwardTrainingEx(
cudnnHandle handle,
int mode,
int bnOps,
Pointer alpha, /** alpha[0] = result blend factor */
Pointer beta, /** beta[0] = dest layer blend factor */
cudnnTensorDescriptor xDesc,
Pointer xData,
... | Computes y = relu(BN(x) + z). Also accumulates moving averages of mean and inverse variances
public static int cudnnBatchNormalizationForwardTrainingEx(
cudnnHandle handle,
int mode,
int bnOps,
Pointer alpha, /** alpha[0] = result blend factor */
Pointer beta, /** beta[0] = d... | 389 | 92 | 1,608 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1c250b111e0d83f91aa7a869b63dfaa3287f2a19f9e3b215a6862dd1463149e0 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
e32f39aade1f4537f424d854 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnBatchNormalizationForwardInference | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2450-L2467 | train | java | <pre>
Performs Batch Normalization during Inference:
y[i] = bnScale[k]*(x[i]-estimatedMean[k])/sqrt(epsilon+estimatedVariance[k]) + bnBias[k]
with bnScale, bnBias, runningMean, runningInvVariance tensors indexed
according to spatial or per-activation mode. Refer to cudnnBatchNormalizationForwardTraining
above for notes... | public static int cudnnBatchNormalizationForwardInference(
cudnnHandle handle,
int mode,
Pointer alpha, /** alpha[0] = result blend factor */
Pointer beta, /** beta[0] = dest layer blend factor */
cudnnTensorDescriptor xDesc,
Pointer x, /** NxCxHxW */
cudnnTens... | <pre>
Performs Batch Normalization during Inference:
y[i] = bnScale[k]*(x[i]-estimatedMean[k])/sqrt(epsilon+estimatedVariance[k]) + bnBias[k]
with bnScale, bnBias, runningMean, runningInvVariance tensors indexed
according to spatial or per-activation mode. Refer to cudnnBatchNormalizationForwardTraining
above for notes... | 278 | 350 | 790 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7b84908abf19a1e37f68029d31a1e1dabf740b4cd06d8ab4cc8daefc06d19729 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
56c88a9dd3c14e16f0034a1a | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnBatchNormalizationBackward | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2487-L2514 | train | java | Performs backward pass of Batch Normalization layer. Returns x gradient,
bnScale gradient and bnBias gradient | public static int cudnnBatchNormalizationBackward(
cudnnHandle handle,
int mode,
Pointer alphaDataDiff,
Pointer betaDataDiff,
Pointer alphaParamDiff,
Pointer betaParamDiff,
cudnnTensorDescriptor xDesc, /** same desc for x, dx, dy */
Pointer x,
... | Performs backward pass of Batch Normalization layer. Returns x gradient,
bnScale gradient and bnBias gradient
public static int cudnnBatchNormalizationBackward(
cudnnHandle handle,
int mode,
Pointer alphaDataDiff,
Pointer betaDataDiff,
Pointer alphaParamDiff,
Pointe... | 312 | 109 | 1,280 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b4fd47221c09bf42bc571ed5a4c07cf472713cc9542b453f230a00acbd7d1e30 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
e8c7b1e5ec92d15de31fdf77 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnRestoreDropoutDescriptor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L2802-L2811 | train | java | Restores the dropout descriptor to a previously saved-off state | public static int cudnnRestoreDropoutDescriptor(
cudnnDropoutDescriptor dropoutDesc,
cudnnHandle handle,
float dropout,
Pointer states,
long stateSizeInBytes,
long seed)
{
return checkResult(cudnnRestoreDropoutDescriptorNative(dropoutDesc, handle, dropout... | Restores the dropout descriptor to a previously saved-off state
public static int cudnnRestoreDropoutDescriptor(
cudnnDropoutDescriptor dropoutDesc,
cudnnHandle handle,
float dropout,
Pointer states,
long stateSizeInBytes,
long seed)
{
return checkResult... | 94 | 63 | 361 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c5b5d384798b0cabc6a2c9e3dab9a5b1072a68ca58714633ef1e17a64915d9dd | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
db9d38ed54a183c3c4042364 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnCreatePersistentRNNPlan | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L3179-L3186 | train | java | Expensive. Creates the plan for the specific settings. | public static int cudnnCreatePersistentRNNPlan(
cudnnRNNDescriptor rnnDesc,
int minibatch,
int dataType,
cudnnPersistentRNNPlan plan)
{
return checkResult(cudnnCreatePersistentRNNPlanNative(rnnDesc, minibatch, dataType, plan));
} | Expensive. Creates the plan for the specific settings.
public static int cudnnCreatePersistentRNNPlan(
cudnnRNNDescriptor rnnDesc,
int minibatch,
int dataType,
cudnnPersistentRNNPlan plan)
{
return checkResult(cudnnCreatePersistentRNNPlanNative(rnnDesc, minibatch, dataTyp... | 80 | 54 | 280 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ec52f65cb74f19782a03e9793f4553e3a56e293d25e3d4098594fb8d40c6958f | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
d34f2cf3248bc9f1c2fe5b86 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetRNNWorkspaceSize | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L3336-L3344 | train | java | dataType in weight descriptors and input descriptors is used to describe storage | public static int cudnnGetRNNWorkspaceSize(
cudnnHandle handle,
cudnnRNNDescriptor rnnDesc,
int seqLength,
cudnnTensorDescriptor[] xDesc,
long[] sizeInBytes)
{
return checkResult(cudnnGetRNNWorkspaceSizeNative(handle, rnnDesc, seqLength, xDesc, sizeInBytes));
... | dataType in weight descriptors and input descriptors is used to describe storage
public static int cudnnGetRNNWorkspaceSize(
cudnnHandle handle,
cudnnRNNDescriptor rnnDesc,
int seqLength,
cudnnTensorDescriptor[] xDesc,
long[] sizeInBytes)
{
return checkResult(cud... | 96 | 80 | 321 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4b1a1347dccce4736265cff50171acb97fbcf8f22732ffae28c9911f8bf7989e | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
f25ed21c5aad0b134a65240f | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnCTCLoss | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L3673-L3690 | train | java | return the ctc costs and gradients, given the probabilities and labels | public static int cudnnCTCLoss(
cudnnHandle handle,
cudnnTensorDescriptor probsDesc, /** Tensor descriptor for probabilities, the dimensions are T,N,A (T is the timing steps, N is the
mini batch size, A is the alphabet size) */
Pointer probs, /** probabilities after s... | return the ctc costs and gradients, given the probabilities and labels
public static int cudnnCTCLoss(
cudnnHandle handle,
cudnnTensorDescriptor probsDesc, /** Tensor descriptor for probabilities, the dimensions are T,N,A (T is the timing steps, N is the
mini batch size, A is... | 311 | 70 | 1,318 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f7575f0730652a560b08797918df8a57fb97b9f76fe0a89374303debdfe73a3b | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
8c3268b24fffa645eb73f76b | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetCTCLossWorkspaceSize | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L3709-L3724 | train | java | return the workspace size needed for ctc | public static int cudnnGetCTCLossWorkspaceSize(
cudnnHandle handle,
cudnnTensorDescriptor probsDesc, /** Tensor descriptor for probabilities, the dimensions are T,N,A (T is the
timing steps, N is the mini batch size, A is the alphabet size) */
cud... | return the workspace size needed for ctc
public static int cudnnGetCTCLossWorkspaceSize(
cudnnHandle handle,
cudnnTensorDescriptor probsDesc, /** Tensor descriptor for probabilities, the dimensions are T,N,A (T is the
timing steps, N is the mini batch si... | 248 | 40 | 1,142 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f6007f79f2abcf24c18d2ac3c3919d749b48ab692fd2cf6243d665e35f25a445 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
16ee091052e0e43a5b707406 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnGetRNNDataDescriptor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L4017-L4029 | train | java | symbol for filling padding position in output | public static int cudnnGetRNNDataDescriptor(
cudnnRNNDataDescriptor RNNDataDesc,
int[] dataType,
int[] layout,
int[] maxSeqLength,
int[] batchSize,
int[] vectorSize,
int arrayLengthRequested,
int[] seqLengthArray,
Pointer paddingFill)
{... | symbol for filling padding position in output
public static int cudnnGetRNNDataDescriptor(
cudnnRNNDataDescriptor RNNDataDesc,
int[] dataType,
int[] layout,
int[] maxSeqLength,
int[] batchSize,
int[] vectorSize,
int arrayLengthRequested,
int[] seqL... | 131 | 45 | 506 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 28fd9771c3a034fea67b832f27314f8c24802843bb58167bd654737a918f97b0 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
247c87453396693913832ac2 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java | JCudnn.cudnnSetRNNDescriptor_v6 | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/JCudnn.java#L4273-L4286 | train | java | <pre>
DEPRECATED routines to be removed next release :
User should use the non-suffixed version (which has the API and functionality of _v6 version)
Routines with _v5 suffix has the functionality of the non-suffixed routines in the CUDNN V6
</pre> | public static int cudnnSetRNNDescriptor_v6(
cudnnHandle handle,
cudnnRNNDescriptor rnnDesc,
int hiddenSize,
int numLayers,
cudnnDropoutDescriptor dropoutDesc,
int inputMode,
int direction,
int mode,
int algo,
int dataType)
{
... | <pre>
DEPRECATED routines to be removed next release :
User should use the non-suffixed version (which has the API and functionality of _v6 version)
Routines with _v5 suffix has the functionality of the non-suffixed routines in the CUDNN V6
</pre>
public static int cudnnSetRNNDescriptor_v6(
cudnnHandle handle,... | 180 | 247 | 480 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | a27813eb06c1119e4e4815d489a7814f85d348cca753a44b96fce2f75508dc29 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
ca1b4ede49cffeab6e9d84a6 | resource4j/resource4j | core/src/main/java/com/github/resource4j/values/ResourceValues.java | ResourceValues.ofNullable | https://github.com/resource4j/resource4j/blob/6100443b9a78edc8a5867e1e075f7ee12e6698ca/core/src/main/java/com/github/resource4j/values/ResourceValues.java#L33-L35 | train | java | Returns new instance of OptionalValue with given value
@param value wrapped object
@param <T> type of the wrapped object
@return given object wrapped in OptionalValue | public static <T> OptionalValue<T> ofNullable(T value) {
return new GenericOptionalValue<T>(RUNTIME_SOURCE, DEFAULT_KEY, value);
} | Returns new instance of OptionalValue with given value
@param value wrapped object
@param <T> type of the wrapped object
@return given object wrapped in OptionalValue
public static <T> OptionalValue<T> ofNullable(T value) {
return new GenericOptionalValue<T>(RUNTIME_SOURCE, DEFAULT_KEY, value);
} | 67 | 166 | 142 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 1da509a896316ed98447189f1a3093a906aed87142d86486def637595c827d91 | BSD-3-Clause | permissive | https://github.com/resource4j/resource4j/blob/latest/LICENSE.txt |
0d343c8787f66cc1d65e222b | resource4j/resource4j | core/src/main/java/com/github/resource4j/values/ResourceValues.java | ResourceValues.ofNullable | https://github.com/resource4j/resource4j/blob/6100443b9a78edc8a5867e1e075f7ee12e6698ca/core/src/main/java/com/github/resource4j/values/ResourceValues.java#L44-L46 | train | java | Returns new instance of OptionalValue with given key and value
@param key resource key of the created value
@param value wrapped object
@param <T> type of the wrapped object
@return given object wrapped in OptionalValue with given key | public static <T> OptionalValue<T> ofNullable(ResourceKey key, T value) {
return new GenericOptionalValue<T>(RUNTIME_SOURCE, key, value);
} | Returns new instance of OptionalValue with given key and value
@param key resource key of the created value
@param value wrapped object
@param <T> type of the wrapped object
@return given object wrapped in OptionalValue with given key
public static <T> OptionalValue<T> ofNullable(ResourceKey key, T value) {
re... | 84 | 234 | 151 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fd607f96d632365ffb02bcae1c338fd6267fae634ff103da4a4e3dbce9d44902 | BSD-3-Clause | permissive | https://github.com/resource4j/resource4j/blob/latest/LICENSE.txt |
0dabd6b95cfa7262fe5d513b | openEHR/adl2-core | adl2core-common/src/main/java/org/openehr/adl/am/AmQuery.java | AmQuery.get | https://github.com/openEHR/adl2-core/blob/dd5c1c0fe7ef5e43fbfaf6a0389990ba5380e22c/adl2core-common/src/main/java/org/openehr/adl/am/AmQuery.java#L50-L56 | train | java | Gets the object on a path {@code path} relative to {@code obj}
If not found throws {@link IllegalStateException}.
The method returns first object found, and does not check if there are more than one matches.
@param obj Root object from which to search, Must be either an Archetype or CComplexObject
@param path path id... | public static <T extends CObject> T get(Object obj, String path) {
T result = find(obj, RmPath.valueOf(path).segments());
if (result == null) {
throw new AmObjectNotFoundException("Object " + obj + " has no child on path " + path);
}
return result;
} | Gets the object on a path {@code path} relative to {@code obj}
If not found throws {@link IllegalStateException}.
The method returns first object found, and does not check if there are more than one matches.
@param obj Root object from which to search, Must be either an Archetype or CComplexObject
@param path path id... | 173 | 500 | 298 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 53ebf32fa2429ec9c0bd3e5486bd1dc5ee1da75aa196d292656d16e9ac8499d5 | AGPL-3.0 | strong-copyleft | https://github.com/openEHR/adl2-core/blob/master/LICENSE |
254a75b7f6fa394dd82babc0 | openEHR/adl2-core | adl2core-common/src/main/java/org/openehr/adl/am/AmQuery.java | AmQuery.find | https://github.com/openEHR/adl2-core/blob/dd5c1c0fe7ef5e43fbfaf6a0389990ba5380e22c/adl2core-common/src/main/java/org/openehr/adl/am/AmQuery.java#L68-L71 | train | java | Gets the object on a path {@code path} relative to {@code obj}
If not found returns null.
The method returns first object found, and does not check if there are more than one matches.
@param obj Root object from which to search, Must be either an Archetype or CComplexObject
@param path path identifying the object to ... | @Nullable
public static <T extends CObject> T find(Object obj, String path) {
return find(obj, RmPath.valueOf(path).segments());
} | Gets the object on a path {@code path} relative to {@code obj}
If not found returns null.
The method returns first object found, and does not check if there are more than one matches.
@param obj Root object from which to search, Must be either an Archetype or CComplexObject
@param path path identifying the object to ... | 134 | 446 | 146 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 84cdef5a86eddf435c93c4feeb61d24744b773342516d1584050a692d86bc995 | AGPL-3.0 | strong-copyleft | https://github.com/openEHR/adl2-core/blob/master/LICENSE |
4d3a1c72a301c0c56f11ed62 | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/cudnnConvolutionBwdDataAlgo.java | cudnnConvolutionBwdDataAlgo.stringFor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/cudnnConvolutionBwdDataAlgo.java#L56-L69 | train | java | Returns a string representation of the given constant
@return A string representation of the given constant | public static String stringFor(int n)
{
switch (n)
{
case CUDNN_CONVOLUTION_BWD_DATA_ALGO_0: return "CUDNN_CONVOLUTION_BWD_DATA_ALGO_0";
case CUDNN_CONVOLUTION_BWD_DATA_ALGO_1: return "CUDNN_CONVOLUTION_BWD_DATA_ALGO_1";
case CUDNN_CONVOLUTION_BWD_DATA_ALGO_... | Returns a string representation of the given constant
@return A string representation of the given constant
public static String stringFor(int n)
{
switch (n)
{
case CUDNN_CONVOLUTION_BWD_DATA_ALGO_0: return "CUDNN_CONVOLUTION_BWD_DATA_ALGO_0";
case CUDNN_CONVOLUTION_B... | 282 | 108 | 907 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f59a4c12ae0d1e687642f2e5d01c1776aed219730651c7d69c3ebb15296e9765 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
decf230f0b85c94991508253 | taimos/dvalin | jaxrs/src/main/java/de/taimos/dvalin/jaxrs/providers/AuthorizationProvider.java | AuthorizationProvider.createSC | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/jaxrs/src/main/java/de/taimos/dvalin/jaxrs/providers/AuthorizationProvider.java#L144-L156 | train | java | Create a {@link SecurityContext} to return to the provider
@param user the user principal
@param roles the roles of the user
@return the {@link SecurityContext} | protected static SecurityContext createSC(String user, String... roles) {
final Subject subject = new Subject();
final Principal principal = new SimplePrincipal(user);
subject.getPrincipals().add(principal);
if (roles != null) {
for (final String role : roles) {
... | Create a {@link SecurityContext} to return to the provider
@param user the user principal
@param roles the roles of the user
@return the {@link SecurityContext}
protected static SecurityContext createSC(String user, String... roles) {
final Subject subject = new Subject();
final Principal principal ... | 126 | 162 | 473 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 67e92e338ff5c79c7550197a428bd168a1b6abf353e3a869dedeb5ed3f83e4de | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
f7547204d8db8409045c182a | taimos/dvalin | daemon/src/main/java/de/taimos/daemon/DaemonStarter.java | DaemonStarter.startDaemon | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/daemon/src/main/java/de/taimos/daemon/DaemonStarter.java#L138-L141 | train | java | Starts the daemon and provides feedback through the life-cycle listener<br>
<br>
@param _daemonName the name of this daemon
@param _lifecycleListener the {@link IDaemonLifecycleListener} to use for phase call-backs | public static void startDaemon(final String _daemonName, final IDaemonLifecycleListener _lifecycleListener) {
// Run de.taimos.daemon async
Executors.newSingleThreadExecutor().execute(() -> DaemonStarter.doStartDaemon(_daemonName, _lifecycleListener));
} | Starts the daemon and provides feedback through the life-cycle listener<br>
<br>
@param _daemonName the name of this daemon
@param _lifecycleListener the {@link IDaemonLifecycleListener} to use for phase call-backs
public static void startDaemon(final String _daemonName, final IDaemonLifecycleListener _lifecyc... | 110 | 222 | 274 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | bece7f9be20d9e8a8b7456d840688dfde48335513aacde62fe704e1371cb5bc9 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
9d0ed5a186817ace08ddaa3f | taimos/dvalin | daemon/src/main/java/de/taimos/daemon/DaemonStarter.java | DaemonStarter.stopService | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/daemon/src/main/java/de/taimos/daemon/DaemonStarter.java#L307-L327 | train | java | Stop the service and end the program | public static void stopService() {
DaemonStarter.currentPhase.set(LifecyclePhase.STOPPING);
final CountDownLatch cdl = new CountDownLatch(1);
Executors.newSingleThreadExecutor().execute(() -> {
DaemonStarter.getLifecycleListener().stopping();
DaemonStarter.daemon.stop();
... | Stop the service and end the program
public static void stopService() {
DaemonStarter.currentPhase.set(LifecyclePhase.STOPPING);
final CountDownLatch cdl = new CountDownLatch(1);
Executors.newSingleThreadExecutor().execute(() -> {
DaemonStarter.getLifecycleListener().stopping();
... | 165 | 36 | 829 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | e4a476e024d9483a2fc1bf426f686391be38b2ea273871f46d21dece28747551 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
a5435d0161ef6f6e6968e8fa | taimos/dvalin | daemon/src/main/java/de/taimos/daemon/DaemonStarter.java | DaemonStarter.handleSignals | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/daemon/src/main/java/de/taimos/daemon/DaemonStarter.java#L330-L372 | train | java | I KNOW WHAT I AM DOING | private static void handleSignals() {
if (DaemonStarter.isRunMode()) {
try {
// handle SIGHUP to prevent process to get killed when exiting the tty
Signal.handle(new Signal("HUP"), arg0 -> {
// Nothing to do here
System.out.prin... | I KNOW WHAT I AM DOING
private static void handleSignals() {
if (DaemonStarter.isRunMode()) {
try {
// handle SIGHUP to prevent process to get killed when exiting the tty
Signal.handle(new Signal("HUP"), arg0 -> {
// Nothing to do here
... | 304 | 22 | 1,704 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 78d4c2ff9c6be251dc98042e3699e09df278d9e2bc79c80993c0c088acef88e0 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
97bb8635e4d0f672f0497c55 | taimos/dvalin | daemon/src/main/java/de/taimos/daemon/DaemonStarter.java | DaemonStarter.abortSystem | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/daemon/src/main/java/de/taimos/daemon/DaemonStarter.java#L386-L401 | train | java | Abort the daemon
@param error the error causing the abortion | public static void abortSystem(final Throwable error) {
DaemonStarter.currentPhase.set(LifecyclePhase.ABORTING);
try {
DaemonStarter.getLifecycleListener().aborting();
} catch (Exception e) {
DaemonStarter.rlog.error("Custom abort failed", e);
}
if (error ... | Abort the daemon
@param error the error causing the abortion
public static void abortSystem(final Throwable error) {
DaemonStarter.currentPhase.set(LifecyclePhase.ABORTING);
try {
DaemonStarter.getLifecycleListener().aborting();
} catch (Exception e) {
DaemonStarter.rlo... | 162 | 61 | 723 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 538d051050e4e82b1215c9fc290a963756ed44bd249b0c0d87c5325037006247 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
0131c9cfaee91116417cbca4 | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBInit.java | MongoDBInit.initDatabase | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBInit.java#L67-L105 | train | java | init database with demo data | @PostConstruct
public void initDatabase() {
MongoDBInit.LOGGER.info("initializing MongoDB");
String dbName = System.getProperty("mongodb.name");
if (dbName == null) {
throw new RuntimeException("Missing database name; Set system property 'mongodb.name'");
}
MongoD... | init database with demo data
@PostConstruct
public void initDatabase() {
MongoDBInit.LOGGER.info("initializing MongoDB");
String dbName = System.getProperty("mongodb.name");
if (dbName == null) {
throw new RuntimeException("Missing database name; Set system property 'mongodb.nam... | 340 | 28 | 2,002 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 10eb9b84e54731861047167436f8cb3e4a6dd70fb83a2e336cf7366373902b68 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
423b4e3244fcb9533eec917b | jcuda/jcudnn | JCudnnJava/src/main/java/jcuda/jcudnn/cudnnOpTensorOp.java | cudnnOpTensorOp.stringFor | https://github.com/jcuda/jcudnn/blob/ce71f2fc02817cecace51a80e6db5f0c7f10cffc/JCudnnJava/src/main/java/jcuda/jcudnn/cudnnOpTensorOp.java#L55-L67 | train | java | Returns a string representation of the given constant
@return A string representation of the given constant | public static String stringFor(int n)
{
switch (n)
{
case CUDNN_OP_TENSOR_ADD: return "CUDNN_OP_TENSOR_ADD";
case CUDNN_OP_TENSOR_MUL: return "CUDNN_OP_TENSOR_MUL";
case CUDNN_OP_TENSOR_MIN: return "CUDNN_OP_TENSOR_MIN";
case CUDNN_OP_TENSOR_MAX... | Returns a string representation of the given constant
@return A string representation of the given constant
public static String stringFor(int n)
{
switch (n)
{
case CUDNN_OP_TENSOR_ADD: return "CUDNN_OP_TENSOR_ADD";
case CUDNN_OP_TENSOR_MUL: return "CUDNN_OP_TENSOR_MU... | 176 | 108 | 556 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | abefc53d03b1d2a918173c4d6ea8e86b3836eeabdaf7efa1b9d98aaefe3d5f48 | MIT | permissive | https://github.com/jcuda/jcudnn/blob/master/LICENSE |
3baf33503b7632e88a8fd86e | resource4j/resource4j | core/src/main/java/com/github/resource4j/resources/context/ResourceResolutionContext.java | ResourceResolutionContext.resolve | https://github.com/resource4j/resource4j/blob/6100443b9a78edc8a5867e1e075f7ee12e6698ca/core/src/main/java/com/github/resource4j/resources/context/ResourceResolutionContext.java#L21-L39 | train | java | Helper method to wrap varags into array with {@link #context(ResourceResolutionComponent[],Map)}
@param resolutionParams
@since 3.1
@return | public static ResourceResolutionComponent[] resolve(Object... resolutionParams) {
ResourceResolutionComponent[] components = new ResourceResolutionComponent[resolutionParams.length];
for (int i = 0; i < resolutionParams.length; i++) {
if (resolutionParams[i] == null) {
compon... | Helper method to wrap varags into array with {@link #context(ResourceResolutionComponent[],Map)}
@param resolutionParams
@since 3.1
@return
public static ResourceResolutionComponent[] resolve(Object... resolutionParams) {
ResourceResolutionComponent[] components = new ResourceResolutionComponent[resolutionPara... | 246 | 139 | 1,182 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 901ff08c385345020ffb17b32f964af8dc292d03f81f42be8f30a1de3aaa8cb5 | BSD-3-Clause | permissive | https://github.com/resource4j/resource4j/blob/latest/LICENSE.txt |
c831813e25efdf8a3eeb6aed | resource4j/resource4j | core/src/main/java/com/github/resource4j/resources/context/ResourceResolutionContext.java | ResourceResolutionContext.with | https://github.com/resource4j/resource4j/blob/6100443b9a78edc8a5867e1e075f7ee12e6698ca/core/src/main/java/com/github/resource4j/resources/context/ResourceResolutionContext.java#L46-L52 | train | java | Convenience wrapper for message parameters
@param params
@return | public static Map<String, Object> with(Object... params) {
Map<String, Object> map = new HashMap<>();
for (int i = 0; i < params.length; i++) {
map.put(String.valueOf(i), params[i]);
}
return map;
} | Convenience wrapper for message parameters
@param params
@return
public static Map<String, Object> with(Object... params) {
Map<String, Object> map = new HashMap<>();
for (int i = 0; i < params.length; i++) {
map.put(String.valueOf(i), params[i]);
}
return map;
} | 71 | 64 | 246 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | cda331960389756d553adb1a679eb6c0a28d021e7041f4f6e866758662adedd5 | BSD-3-Clause | permissive | https://github.com/resource4j/resource4j/blob/latest/LICENSE.txt |
9c0be06daed092d13dbb8dd1 | resource4j/resource4j | core/src/main/java/com/github/resource4j/resources/context/ResourceResolutionContext.java | ResourceResolutionContext.context | https://github.com/resource4j/resource4j/blob/6100443b9a78edc8a5867e1e075f7ee12e6698ca/core/src/main/java/com/github/resource4j/resources/context/ResourceResolutionContext.java#L61-L64 | train | java | Build resolution context in which message will be discovered and built
@param components resolution components, used to identify message bundle
@param messageParams message parameters will be substituted in message and used in pattern matching
@since 3.1
@return immutable resolution context instance for given parameter... | public static ResourceResolutionContext context(ResourceResolutionComponent[] components,
Map<String, Object> messageParams) {
return new ResourceResolutionContext(components, messageParams);
} | Build resolution context in which message will be discovered and built
@param components resolution components, used to identify message bundle
@param messageParams message parameters will be substituted in message and used in pattern matching
@since 3.1
@return immutable resolution context instance for given parameter... | 90 | 321 | 257 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 680d2fc8e42ee674458b161354ee718ed6804c6502b2a69ed82c63a431a8bd3f | BSD-3-Clause | permissive | https://github.com/resource4j/resource4j/blob/latest/LICENSE.txt |
d0c56e2f2cdcfbde90d79bc1 | wcm-io/wcm-io-sling | commons/src/main/java/io/wcm/sling/commons/resource/ImmutableValueMap.java | ImmutableValueMap.of | https://github.com/wcm-io/wcm-io-sling/blob/90adbe432469378794b5695c72e9cdfa2b7d36f1/commons/src/main/java/io/wcm/sling/commons/resource/ImmutableValueMap.java#L193-L195 | train | java | Returns an immutable map containing a single entry. This map behaves and
performs comparably to {@link Collections#singletonMap} but will not accept
a null key or value. It is preferable mainly for consistency and
maintainability of your code.
@param k1 Key 1
@param v1 Value 1
@return ImmutableValueMap | public static @NotNull ImmutableValueMap of(@NotNull String k1, @NotNull Object v1) {
return new ImmutableValueMap(ImmutableMap.<String, Object>of(k1, v1));
} | Returns an immutable map containing a single entry. This map behaves and
performs comparably to {@link Collections#singletonMap} but will not accept
a null key or value. It is preferable mainly for consistency and
maintainability of your code.
@param k1 Key 1
@param v1 Value 1
@return ImmutableValueMap
public static @... | 115 | 303 | 164 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | cd04bb93fde20975c31334020ec6915a5661bd26f077e47576b4fdf230214ad3 | Apache-2.0 | permissive | https://github.com/wcm-io/wcm-io-sling/blob/develop/LICENSE |
16b7e91fd4a5d67ee79487a8 | wcm-io/wcm-io-sling | commons/src/main/java/io/wcm/sling/commons/resource/ImmutableValueMap.java | ImmutableValueMap.of | https://github.com/wcm-io/wcm-io-sling/blob/90adbe432469378794b5695c72e9cdfa2b7d36f1/commons/src/main/java/io/wcm/sling/commons/resource/ImmutableValueMap.java#L222-L227 | train | java | Returns an immutable map containing the given entries, in order.
@param k1 Key 1
@param v1 Value 1
@param k2 Key 2
@param v2 Value 2
@param k3 Key 3
@param v3 Value 3
@return ImmutableValueMap
@throws IllegalArgumentException if duplicate keys are provided | public static @NotNull ImmutableValueMap of(
@NotNull String k1, @NotNull Object v1,
@NotNull String k2, @NotNull Object v2,
@NotNull String k3, @NotNull Object v3) {
return new ImmutableValueMap(ImmutableMap.<String, Object>of(k1, v1, k2, v2, k3, v3));
} | Returns an immutable map containing the given entries, in order.
@param k1 Key 1
@param v1 Value 1
@param k2 Key 2
@param v2 Value 2
@param k3 Key 3
@param v3 Value 3
@return ImmutableValueMap
@throws IllegalArgumentException if duplicate keys are provided
public static @NotNull ImmutableValueMap of(
@NotNull St... | 152 | 256 | 279 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 284d3c07aa45be00f00ed867ba69ee23567f396e4a00117ea676ea52e3e08ffc | Apache-2.0 | permissive | https://github.com/wcm-io/wcm-io-sling/blob/develop/LICENSE |
9703e91b0544b6711900c7e0 | wcm-io/wcm-io-sling | commons/src/main/java/io/wcm/sling/commons/resource/ImmutableValueMap.java | ImmutableValueMap.copyOf | https://github.com/wcm-io/wcm-io-sling/blob/90adbe432469378794b5695c72e9cdfa2b7d36f1/commons/src/main/java/io/wcm/sling/commons/resource/ImmutableValueMap.java#L297-L304 | train | java | Returns an immutable map containing the same entries as {@code map}. If {@code map} somehow contains entries with
duplicate keys (for example, if
it is a {@code SortedMap} whose comparator is not <i>consistent with
equals</i>), the results of this method are undefined.
<p>
Despite the method name, this method attempts ... | public static @NotNull ImmutableValueMap copyOf(@NotNull Map<String, Object> map) {
if (map instanceof ValueMap) {
return new ImmutableValueMap((ValueMap)map);
}
else {
return new ImmutableValueMap(map);
}
} | Returns an immutable map containing the same entries as {@code map}. If {@code map} somehow contains entries with
duplicate keys (for example, if
it is a {@code SortedMap} whose comparator is not <i>consistent with
equals</i>), the results of this method are undefined.
<p>
Despite the method name, this method attempts ... | 189 | 606 | 237 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 36089e9ac81cf52e00e56e4ea87d52c08ca9fec5fcb9845775c56f654eac6159 | Apache-2.0 | permissive | https://github.com/wcm-io/wcm-io-sling/blob/develop/LICENSE |
874e2ea6baa8474884c451ff | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java | MongoDBDataAccess.mapReduce | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java#L91-L93 | train | java | runs a map-reduce-job on the collection. same as {@link #mapReduce(String, DBObject, DBObject, Map, MapReduceResultHandler)
mapReduce(name, null, null, null, conv)}
@param <R> the type of the result class
@param name the name of the map-reduce functions
@param conv the converter to convert the result
@return an {@lin... | public final <R> Iterable<R> mapReduce(String name, final MapReduceResultHandler<R> conv) {
return this.mapReduce(name, null, null, null, conv);
} | runs a map-reduce-job on the collection. same as {@link #mapReduce(String, DBObject, DBObject, Map, MapReduceResultHandler)
mapReduce(name, null, null, null, conv)}
@param <R> the type of the result class
@param name the name of the map-reduce functions
@param conv the converter to convert the result
@return an {@lin... | 127 | 355 | 158 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | dfb40e33441dedd63f2bcfaad37d34bc7ec9d696cb60cbf3ef47128b0a266219 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
87148ad69a099470d1b1f9b0 | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java | MongoDBDataAccess.mapReduce | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java#L109-L126 | train | java | runs a map-reduce-job on the collection. The functions are read from the classpath in the folder mongodb. The systems reads them from
files called <name>.map.js, <name>.reduce.js and optionally <name>.finalize.js. After this the result is converted
using the given {@link MapReduceResultHandler}
@para... | public final <R> Iterable<R> mapReduce(String name, DBObject query, DBObject sort, Map<String, Object> scope, final MapReduceResultHandler<R> conv) {
String map = this.getMRFunction(name, "map");
String reduce = this.getMRFunction(name, "reduce");
MapReduceCommand mrc = new MapReduceCommand(thi... | runs a map-reduce-job on the collection. The functions are read from the classpath in the folder mongodb. The systems reads them from
files called <name>.map.js, <name>.reduce.js and optionally <name>.finalize.js. After this the result is converted
using the given {@link MapReduceResultHandler}
@para... | 366 | 750 | 878 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 50b3e0f3a46af082a1c48e121d9e96802f357222ff6862b08d434735e9223c77 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
cff58c0619da478a29a40f46 | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java | MongoDBDataAccess.convertIterable | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java#L156-L162 | train | java | converts the given {@link Iterable} to a {@link List}
@param <P> the element type
@param as the {@link Iterable}
@return the converted {@link List} | public final <P> List<P> convertIterable(Iterable<P> as) {
List<P> objects = new ArrayList<>();
for(P mp : as) {
objects.add(mp);
}
return objects;
} | converts the given {@link Iterable} to a {@link List}
@param <P> the element type
@param as the {@link Iterable}
@return the converted {@link List}
public final <P> List<P> convertIterable(Iterable<P> as) {
List<P> objects = new ArrayList<>();
for(P mp : as) {
objects.add(mp);
}
... | 84 | 149 | 197 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 4c66fa676a2f1d9cf127223d246cf84ace65790f8195b8c4420d1fa94e77eda1 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
6abce6ac2d16c9941d54cefb | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java | MongoDBDataAccess.findByQuery | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java#L171-L173 | train | java | finds all elements matching the given query
@param query the query to search for
@param params the parameters to replace # symbols
@return the list of elements found | public final List<T> findByQuery(String query, Object... params) {
return this.findSortedByQuery(query, null, params);
} | finds all elements matching the given query
@param query the query to search for
@param params the parameters to replace # symbols
@return the list of elements found
public final List<T> findByQuery(String query, Object... params) {
return this.findSortedByQuery(query, null, params);
} | 64 | 167 | 132 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3cdef1f6d9cd98f275326db1b0ba8136ab70dca06ea2ad05193cdd448d7891dc | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
35e5605abe4b3ac21ac3e4c1 | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java | MongoDBDataAccess.findSortedByQuery | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java#L183-L185 | train | java | finds all elements matching the given query and sorts them accordingly
@param query the query to search for
@param sort the sort query to apply
@param params the parameters to replace # symbols
@return the list of elements found | public final List<T> findSortedByQuery(String query, String sort, Object... params) {
return this.findSortedByQuery(query, sort, (Integer) null, (Integer) null, params);
} | finds all elements matching the given query and sorts them accordingly
@param query the query to search for
@param sort the sort query to apply
@param params the parameters to replace # symbols
@return the list of elements found
public final List<T> findSortedByQuery(String query, String sort, Object... params) {
... | 92 | 232 | 183 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 9a9980477369879b6da0f1bf915becf88c86894f5788650f8bde2799fec9e712 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
87e693e33786e388fceaa1da | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java | MongoDBDataAccess.findSortedByQuery | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java#L231-L233 | train | java | finds all elements matching the given query and sorts them accordingly
@param query the query to search for
@param sort the sort query to apply
@param skip the number of elements to skip
@param limit the number of elements to fetch
@param params the parameters to replace # symbols
@return the list of elements fo... | public final List<T> findSortedByQuery(String query, String sort, Integer skip, Integer limit, Object... params) {
return this.findSortedByQuery(query, sort, skip, limit, null, this.entityClass, params);
} | finds all elements matching the given query and sorts them accordingly
@param query the query to search for
@param sort the sort query to apply
@param skip the number of elements to skip
@param limit the number of elements to fetch
@param params the parameters to replace # symbols
@return the list of elements fo... | 118 | 323 | 217 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 5368347b13c35ba297b18e85a001e254ad776d7e4c74e6778103149c1c143591 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
43c89d8a38c321cea253f350 | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java | MongoDBDataAccess.findSortedByQuery | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java#L250-L253 | train | java | finds all elements matching the given query and sorts them accordingly. With this method it is possible to specify a projection to
rename or filter fields in the result elements. Instead of returning objects it returns objects of type
<code>as</code>
@param query the query to search for
@param sort the sort... | public final <P> List<P> findSortedByQuery(String query, String sort, Integer skip, Integer limit, String projection, Class<P> as, Object... params) {
Find find = this.createFind(query, sort, skip, limit, projection, params);
return this.convertIterable(find.as(as));
} | finds all elements matching the given query and sorts them accordingly. With this method it is possible to specify a projection to
rename or filter fields in the result elements. Instead of returning objects it returns objects of type
<code>as</code>
@param query the query to search for
@param sort the sort... | 202 | 667 | 289 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 358c521d502d8530fdf590e8b6338a8f451e931c3e1b05ed02cca5f9314dd63b | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
a60f4bcc34680548957c7d94 | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java | MongoDBDataAccess.findSortedByQuery | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java#L270-L273 | train | java | finds all elements matching the given query and sorts them accordingly. With this method it is possible to specify a projection to
rename or filter fields in the result elements. Instead of returning objects it returns objects converted
by the given {@link ResultHandler}
@param query the query to search for
@para... | public final <P> List<P> findSortedByQuery(String query, String sort, Integer skip, Integer limit, String projection, ResultHandler<P> handler, Object... params) {
Find find = this.createFind(query, sort, skip, limit, projection, params);
return this.convertIterable(find.map(handler));
} | finds all elements matching the given query and sorts them accordingly. With this method it is possible to specify a projection to
rename or filter fields in the result elements. Instead of returning objects it returns objects converted
by the given {@link ResultHandler}
@param query the query to search for
@para... | 203 | 691 | 308 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 10a78ae12a3ec0e1361860d59769ce283e5ac071a3dff1fa5a4e45b709deb51d | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
92f9dfe7cd36571ae2a62692 | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java | MongoDBDataAccess.searchSorted | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java#L299-L301 | train | java | finds all elements containing the given searchString in any text field and sorts them accordingly.
@param searchString the searchString to search for
@param sort the sort query to apply
@return the list of elements found | public final List<T> searchSorted(String searchString, String sort) {
return this.findSortedByQuery(FULLTEXT_QUERY, sort, searchString);
} | finds all elements containing the given searchString in any text field and sorts them accordingly.
@param searchString the searchString to search for
@param sort the sort query to apply
@return the list of elements found
public final List<T> searchSorted(String searchString, String sort) {
return t... | 74 | 232 | 150 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | d22b8e9c9983af9dee62406baf35a42ee229e4ec4fbe534d8a24473bba77ab2b | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
854e7cb41d23abdce769484e | taimos/dvalin | mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java | MongoDBDataAccess.findFirstByQuery | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/mongodb/src/main/java/de/taimos/dvalin/mongo/MongoDBDataAccess.java#L311-L322 | train | java | queries with the given string, sorts the result and returns the first element. <code>null</code> is returned if no element is found.
@param query the query string
@param sort the sort string
@param params the parameters to replace # symbols
@return the first element found or <code>null</code> if none is found | public final Optional<T> findFirstByQuery(String query, String sort, Object... params) {
Find find = this.collection.find(query, params);
if((sort != null) && !sort.isEmpty()) {
find.sort(sort);
}
Iterable<T> as = find.limit(1).as(this.entityClass);
Iterator<T> iterat... | queries with the given string, sorts the result and returns the first element. <code>null</code> is returned if no element is found.
@param query the query string
@param sort the sort string
@param params the parameters to replace # symbols
@return the first element found or <code>null</code> if none is found
publ... | 167 | 314 | 470 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | c745ed269f1bb8aa24686744dde03cdac1cc7df8690cfedcecad01229de58949 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
f78d60b5d5cc82ba26b22294 | resource4j/resource4j | core/src/main/java/com/github/resource4j/i18n/plural_rules/ldml/LDML.java | LDML.andCondition | https://github.com/resource4j/resource4j/blob/6100443b9a78edc8a5867e1e075f7ee12e6698ca/core/src/main/java/com/github/resource4j/i18n/plural_rules/ldml/LDML.java#L56-L58 | train | java | and_condition = relation ('and' relation)* | static ValueMatch<Predicate<Number>> andCondition(Cursor cursor) {
return cursor.expect(LDML::relation, LDML::and);
} | and_condition = relation ('and' relation)*
static ValueMatch<Predicate<Number>> andCondition(Cursor cursor) {
return cursor.expect(LDML::relation, LDML::and);
} | 42 | 42 | 129 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | b223d19d90988f36cc07fc26879d3cab33783f3c91c1324fa285332fcbe1df6b | BSD-3-Clause | permissive | https://github.com/resource4j/resource4j/blob/latest/LICENSE.txt |
200403dd57b655387dc144b4 | taimos/dvalin | cloud/aws/src/main/java/de/taimos/dvalin/cloud/aws/CloudFormation.java | CloudFormation.signalReady | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/cloud/aws/src/main/java/de/taimos/dvalin/cloud/aws/CloudFormation.java#L53-L62 | train | java | signal success to the given CloudFormation stack.<br>
<br>
Needed AWS actions:
<ul>
<li>cloudformation:SignalResource</li>
</ul> | public void signalReady(String stackName, String resourceName) {
Preconditions.checkArgument(stackName != null && !stackName.isEmpty());
Preconditions.checkArgument(resourceName != null && !resourceName.isEmpty());
SignalResourceRequest req = new SignalResourceRequest();
req.setLogicalRe... | signal success to the given CloudFormation stack.<br>
<br>
Needed AWS actions:
<ul>
<li>cloudformation:SignalResource</li>
</ul>
public void signalReady(String stackName, String resourceName) {
Preconditions.checkArgument(stackName != null && !stackName.isEmpty());
Preconditions.checkArgument(resourceN... | 127 | 128 | 552 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 65575a029f6d4f4bb3482067679dba86814925cab7d195f02e0d91ff81b25024 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
5243dd3209eef53bbffd2698 | taimos/dvalin | cloud/aws/src/main/java/de/taimos/dvalin/cloud/aws/CloudFormation.java | CloudFormation.signalReady | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/cloud/aws/src/main/java/de/taimos/dvalin/cloud/aws/CloudFormation.java#L75-L79 | train | java | signal success to the current CloudFormation stack.<br>
<br>
Needed AWS actions:
<ul>
<li>ec2:DescribeInstances</li>
<li>cloudformation:SignalResource</li>
</ul>
@param resourceName the resource to signal | public void signalReady(String resourceName) {
Preconditions.checkArgument(resourceName != null && !resourceName.isEmpty());
Map<String, String> hostTags = this.ec2Context.getInstanceTags();
this.signalReady(hostTags.get(TAG_CLOUDFORMATION_STACK_NAME), resourceName);
} | signal success to the current CloudFormation stack.<br>
<br>
Needed AWS actions:
<ul>
<li>ec2:DescribeInstances</li>
<li>cloudformation:SignalResource</li>
</ul>
@param resourceName the resource to signal
public void signalReady(String resourceName) {
Preconditions.checkArgument(resourceName != null && !resou... | 104 | 205 | 297 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 58b068a6f03890a1a9000355e54fb04f2f6cfed6a5dec11390f250079d78cd80 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
e25b825eafe8f656a0deb451 | taimos/dvalin | cloud/aws/src/main/java/de/taimos/dvalin/cloud/aws/CloudFormation.java | CloudFormation.signalReady | https://github.com/taimos/dvalin/blob/ff8f1bf594e43d7e8ca8de0b4da9f923b66a1a47/cloud/aws/src/main/java/de/taimos/dvalin/cloud/aws/CloudFormation.java#L91-L94 | train | java | signal success to the current CloudFormation stack.<br>
The resource is derived from the instance tags
<br>
Needed AWS actions:
<ul>
<li>ec2:DescribeInstances</li>
<li>cloudformation:SignalResource</li>
</ul> | public void signalReady() {
Map<String, String> hostTags = this.ec2Context.getInstanceTags();
this.signalReady(hostTags.get(TAG_CLOUDFORMATION_STACK_NAME), hostTags.get(TAG_CLOUDFORMATION_LOGICAL_ID));
} | signal success to the current CloudFormation stack.<br>
The resource is derived from the instance tags
<br>
Needed AWS actions:
<ul>
<li>ec2:DescribeInstances</li>
<li>cloudformation:SignalResource</li>
</ul>
public void signalReady() {
Map<String, String> hostTags = this.ec2Context.getInstanceTags();
... | 100 | 208 | 223 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 3b0e76b548a88f13542ab85a223d7c1648cc1ff96897fd37859eb922cf495a15 | Apache-2.0 | permissive | https://github.com/taimos/dvalin/blob/master/LICENSE.txt |
7800185c0db4014afb1b4061 | cenobites/struts2-json-plugin | src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java | PackageBasedActionConfigBuilder.setFileProtocols | https://github.com/cenobites/struts2-json-plugin/blob/00f948942d85b6f696d46672332ff7b3942ecb1b/src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java#L122-L127 | train | java | File URLs whose protocol are in these list will be processed as jars
containing classes
@param fileProtocols
Comma separated list of file protocols that will be considered
as jar files and scanned | @Inject("struts.json.action.fileProtocols")
public void setFileProtocols(String fileProtocols) {
if (StringUtils.isNotBlank(fileProtocols)) {
this.fileProtocols = TextParseUtil.commaDelimitedStringToSet(fileProtocols);
}
} | File URLs whose protocol are in these list will be processed as jars
containing classes
@param fileProtocols
Comma separated list of file protocols that will be considered
as jar files and scanned
@Inject("struts.json.action.fileProtocols")
public void setFileProtocols(String fileProtocols) {
if (StringUtils.isNot... | 98 | 197 | 231 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | f377b1a26875ea36d951025eb2d7466c65d9e4e69c991ce64da0deeed93a4c30 | Apache-2.0 | permissive | https://github.com/cenobites/struts2-json-plugin/blob/master/LICENSE |
d74d5a1b1d83482816a109a4 | cenobites/struts2-json-plugin | src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java | PackageBasedActionConfigBuilder.getActionAnnotations | https://github.com/cenobites/struts2-json-plugin/blob/00f948942d85b6f696d46672332ff7b3942ecb1b/src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java#L315-L326 | train | java | Locates all of the {@link Json} annotations on methods within the Action
class and its parent classes.
@param actionClass
The action class.
@return The list of annotations or an empty list if there are none. | protected Map<String, List<Json>> getActionAnnotations(Class<?> actionClass) {
Method[] methods = actionClass.getMethods();
Map<String, List<Json>> map = new HashMap<String, List<Json>>();
for (Method method : methods) {
Json ann = method.getAnnotation(Json.class);
if (ann != null) {
map.put(method.getN... | Locates all of the {@link Json} annotations on methods within the Action
class and its parent classes.
@param actionClass
The action class.
@return The list of annotations or an empty list if there are none.
protected Map<String, List<Json>> getActionAnnotations(Class<?> actionClass) {
Method[] methods = actionClas... | 139 | 208 | 374 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fbdfc52071824adabe4c7f1b896afce035d220e78693e96b2896bb8015bef2d4 | Apache-2.0 | permissive | https://github.com/cenobites/struts2-json-plugin/blob/master/LICENSE |
561b8e70381ac8b3486660db | cenobites/struts2-json-plugin | src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java | PackageBasedActionConfigBuilder.cannotInstantiate | https://github.com/cenobites/struts2-json-plugin/blob/00f948942d85b6f696d46672332ff7b3942ecb1b/src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java#L337-L340 | train | java | Interfaces, enums, annotations, and abstract classes cannot be
instantiated.
@param actionClass
class to check
@return returns true if the class cannot be instantiated or should be
ignored | protected boolean cannotInstantiate(Class<?> actionClass) {
return actionClass.isAnnotation() || actionClass.isInterface() || actionClass.isEnum()
|| (actionClass.getModifiers() & Modifier.ABSTRACT) != 0 || actionClass.isAnonymousClass();
} | Interfaces, enums, annotations, and abstract classes cannot be
instantiated.
@param actionClass
class to check
@return returns true if the class cannot be instantiated or should be
ignored
protected boolean cannotInstantiate(Class<?> actionClass) {
return actionClass.isAnnotation() || actionClass.isInterface() || a... | 94 | 189 | 247 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 72c53893b76dda112dcf9307e69c329fe6fadcbf80437a9ed447b2086e36049a | Apache-2.0 | permissive | https://github.com/cenobites/struts2-json-plugin/blob/master/LICENSE |
33dfc36732dffe370d48962f | cenobites/struts2-json-plugin | src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java | PackageBasedActionConfigBuilder.includeClassNameInActionScan | https://github.com/cenobites/struts2-json-plugin/blob/00f948942d85b6f696d46672332ff7b3942ecb1b/src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java#L384-L388 | train | java | Note that we can't include the test for {@link #actionSuffix} here
because a class is included if its name ends in {@link #actionSuffix} OR
it implements {@link com.opensymphony.xwork2.Action}. Since the whole
goal is to avoid loading the class if we don't have to, the (actionSuffix
|| implements Action) test will have... | protected boolean includeClassNameInActionScan(String className) {
String classPackageName = StringUtils.substringBeforeLast(className, ".");
return (checkActionPackages(classPackageName) || checkPackageLocators(classPackageName))
&& checkExcludePackages(classPackageName);
} | Note that we can't include the test for {@link #actionSuffix} here
because a class is included if its name ends in {@link #actionSuffix} OR
it implements {@link com.opensymphony.xwork2.Action}. Since the whole
goal is to avoid loading the class if we don't have to, the (actionSuffix
|| implements Action) test will have... | 187 | 579 | 284 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | fa34049b3a66e70e7603f790be2cdaae9189dcf03abc0c3e0a15ef8f86cafea9 | Apache-2.0 | permissive | https://github.com/cenobites/struts2-json-plugin/blob/master/LICENSE |
0030a06d500f9ac3bec04de3 | cenobites/struts2-json-plugin | src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java | PackageBasedActionConfigBuilder.checkExcludePackages | https://github.com/cenobites/struts2-json-plugin/blob/00f948942d85b6f696d46672332ff7b3942ecb1b/src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java#L397-L412 | train | java | Checks if provided class package is on the exclude list
@param classPackageName
name of class package
@return false if class package is on the {@link #excludePackages} list | protected boolean checkExcludePackages(String classPackageName) {
if (excludePackages != null && excludePackages.length > 0) {
WildcardHelper wildcardHelper = new WildcardHelper();
// we really don't care about the results, just the boolean
Map<String, String> matchMap = new HashMap<String, String>();
f... | Checks if provided class package is on the exclude list
@param classPackageName
name of class package
@return false if class package is on the {@link #excludePackages} list
protected boolean checkExcludePackages(String classPackageName) {
if (excludePackages != null && excludePackages.length > 0) {
WildcardHelpe... | 166 | 173 | 568 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 602962ff983c5606ffeb29ebcab04696e316db4966f5e33018ac119fa4b6aee7 | Apache-2.0 | permissive | https://github.com/cenobites/struts2-json-plugin/blob/master/LICENSE |
f07339489455445c0fbe5196 | cenobites/struts2-json-plugin | src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java | PackageBasedActionConfigBuilder.checkActionPackages | https://github.com/cenobites/struts2-json-plugin/blob/00f948942d85b6f696d46672332ff7b3942ecb1b/src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java#L421-L430 | train | java | Checks if class package match provided list of action packages
@param classPackageName
name of class package
@return true if class package is on the {@link #actionPackages} list | protected boolean checkActionPackages(String classPackageName) {
if (actionPackages != null) {
for (String packageName : actionPackages) {
String strictPackageName = packageName + ".";
if (classPackageName.equals(packageName) || classPackageName.startsWith(strictPackageName))
return true;
}
}
r... | Checks if class package match provided list of action packages
@param classPackageName
name of class package
@return true if class package is on the {@link #actionPackages} list
protected boolean checkActionPackages(String classPackageName) {
if (actionPackages != null) {
for (String packageName : actionPackages... | 105 | 178 | 335 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 0131627ac9caf14a2385b03d8317020164115ab0c2aff3b1a6b72a73cd3c0ae5 | Apache-2.0 | permissive | https://github.com/cenobites/struts2-json-plugin/blob/master/LICENSE |
18303b9347babbc8489de8d5 | cenobites/struts2-json-plugin | src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java | PackageBasedActionConfigBuilder.checkPackageLocators | https://github.com/cenobites/struts2-json-plugin/blob/00f948942d85b6f696d46672332ff7b3942ecb1b/src/main/java/es/cenobit/struts2/json/PackageBasedActionConfigBuilder.java#L439-L450 | train | java | Checks if class package match provided list of package locators
@param classPackageName
name of class package
@return true if class package is on the {@link #packageLocators} list | protected boolean checkPackageLocators(String classPackageName) {
if (packageLocators != null && !disablePackageLocatorsScanning && classPackageName.length() > 0
&& (packageLocatorsBasePackage == null || classPackageName.startsWith(packageLocatorsBasePackage))) {
for (String packageLocator : packageLocators) {... | Checks if class package match provided list of package locators
@param classPackageName
name of class package
@return true if class package is on the {@link #packageLocators} list
protected boolean checkPackageLocators(String classPackageName) {
if (packageLocators != null && !disablePackageLocatorsScanning && clas... | 157 | 180 | 514 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | ec10af568f85e39446ae491d9a16657d3dfac4fca4668db33d92114f800dbf95 | Apache-2.0 | permissive | https://github.com/cenobites/struts2-json-plugin/blob/master/LICENSE |
d17057566af4fd920fcd40d2 | openEHR/adl2-core | adl2core-model-rm-openehr/src/main/java/org/openehr/adl/rm/RmPath.java | RmPath.parseSegments | https://github.com/openEHR/adl2-core/blob/dd5c1c0fe7ef5e43fbfaf6a0389990ba5380e22c/adl2core-model-rm-openehr/src/main/java/org/openehr/adl/rm/RmPath.java#L163-L181 | train | java | currently does not support paths with name constrains | private static List<Segment> parseSegments(String origPathStr) {
String pathStr = origPathStr;
if (!pathStr.startsWith("/")) {
pathStr = pathStr + "/";
}
List<Segment> result = new ArrayList<>();
for (String segmentStr : PATH_SPLITTER.split(pathStr)) {
Ma... | currently does not support paths with name constrains
private static List<Segment> parseSegments(String origPathStr) {
String pathStr = origPathStr;
if (!pathStr.startsWith("/")) {
pathStr = pathStr + "/";
}
List<Segment> result = new ArrayList<>();
for (String segm... | 163 | 53 | 727 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 36567d0c23c1526caf5a0061d8c935268cca28692d2da701866448b54727b759 | AGPL-3.0 | strong-copyleft | https://github.com/openEHR/adl2-core/blob/master/LICENSE |
42db93d218dfde2be40dd421 | openEHR/adl2-core | adl2core-parser/src/main/java/org/openehr/adl/serializer/DAdlSerializer.java | DAdlSerializer.serializeBean | https://github.com/openEHR/adl2-core/blob/dd5c1c0fe7ef5e43fbfaf6a0389990ba5380e22c/adl2core-parser/src/main/java/org/openehr/adl/serializer/DAdlSerializer.java#L83-L117 | train | java | Serializes bean, without wrapping it with </>
@param obj bean to serialize
@param attributesToIgnore attributes that are not written to dadl | public void serializeBean(Object obj, Set<String> attributesToIgnore) {
builder.newIndentedline();
try {
BeanInfo info = Introspector.getBeanInfo(obj.getClass());
List<NameValue> values = new ArrayList<>();
for (PropertyDescriptor pd : info.getPropertyDescriptors()) ... | Serializes bean, without wrapping it with </>
@param obj bean to serialize
@param attributesToIgnore attributes that are not written to dadl
public void serializeBean(Object obj, Set<String> attributesToIgnore) {
builder.newIndentedline();
try {
BeanInfo info = Introsp... | 301 | 162 | 1,441 | CodeSearchNet permissive-repo filter (dataset-level; per-row license absent) | code_search_net | 2026-12-05 | 7556a644e184063879703e24ae302720a0898a46299a1a0bfe72d7ce4aa76cde | AGPL-3.0 | strong-copyleft | https://github.com/openEHR/adl2-core/blob/master/LICENSE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.