Suite of tools for deploying and training deep learning models using the JVM. Highlights include model import for keras, tensorflow, and onnx/pytorch, a modular and tiny c++ library for running math code and a java based math library on top of the core c++ library. Also includes samediff: a pytorch/tensorflow like library for running deep learn...
This report presents the forensic synthetic code analysis of deeplearning4j/deeplearning4j, a Java project with 14,242 GitHub stars. SynthScan v2.0 examined 1,250,322 lines of code across 6255 source files, recording 2955 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 12.6 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 2955 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …api/records/reader/impl/ConcatenatingRecordReader.java | 124 | return new org.datavec.api.records.impl.Record(next(), null); | CODE |
| CRITICAL | …/datavec/api/records/reader/impl/LineRecordReader.java | 249 | return new org.datavec.api.records.impl.Record(next, meta); | CODE |
| CRITICAL | …/datavec/api/records/reader/impl/LineRecordReader.java | 370 | out.add(new org.datavec.api.records.impl.Record(t.getThird(), t.getSecond())); | CODE |
| CRITICAL | …/datavec/api/records/reader/impl/FileRecordReader.java | 101 | String s = org.apache.commons.io.IOUtils.toString(next, charset); | CODE |
| CRITICAL | …/datavec/api/records/reader/impl/FileRecordReader.java | 214 | return new org.datavec.api.records.impl.Record(ret,new RecordMetaDataURI(next, FileRecordReader.class)); | CODE |
| CRITICAL | …/datavec/api/records/reader/impl/FileRecordReader.java | 236 | out.add(new org.datavec.api.records.impl.Record(list, meta)); | CODE |
| CRITICAL | …ec/api/records/reader/impl/ComposableRecordReader.java | 130 | return new org.datavec.api.records.impl.Record(next(), null); | CODE |
| CRITICAL | …api/records/reader/impl/misc/SVMLightRecordReader.java | 273 | return new org.datavec.api.records.impl.Record(next, meta); | CODE |
| CRITICAL | …ader/impl/filebatch/FileBatchSequenceRecordReader.java | 81 | return new org.datavec.api.records.impl.SequenceRecord(sequenceRecord(), null); | CODE |
| CRITICAL | …cords/reader/impl/filebatch/FileBatchRecordReader.java | 126 | return new org.datavec.api.records.impl.Record(next(), null); | CODE |
| CRITICAL | …rds/reader/impl/collection/CollectionRecordReader.java | 111 | return new org.datavec.api.records.impl.Record(next(), | CODE |
| CRITICAL | …rds/reader/impl/collection/CollectionRecordReader.java | 140 | Record r = new org.datavec.api.records.impl.Record(l, | CODE |
| CRITICAL | …rds/reader/impl/collection/CollectionRecordReader.java | 153 | Record r = new org.datavec.api.records.impl.Record(l, | CODE |
| CRITICAL | …rds/reader/impl/collection/ListStringRecordReader.java | 140 | return new org.datavec.api.records.impl.Record(next(), null); | CODE |
| CRITICAL | …er/impl/collection/CollectionSequenceRecordReader.java | 114 | return new org.datavec.api.records.impl.Record(next(), null); | CODE |
| CRITICAL | …er/impl/collection/CollectionSequenceRecordReader.java | 145 | return new org.datavec.api.records.impl.SequenceRecord(sequenceRecord(), | CODE |
| CRITICAL | …er/impl/collection/CollectionSequenceRecordReader.java | 178 | SequenceRecord r = new org.datavec.api.records.impl.SequenceRecord(record, | CODE |
| CRITICAL | …i/records/reader/impl/regex/RegexLineRecordReader.java | 112 | return new org.datavec.api.records.impl.Record(next, meta); | CODE |
| CRITICAL | …cords/reader/impl/regex/RegexSequenceRecordReader.java | 160 | return new org.datavec.api.records.impl.SequenceRecord(sequence, new RecordMetaDataURI(next, RegexSequenceRecord | CODE |
| CRITICAL | …cords/reader/impl/regex/RegexSequenceRecordReader.java | 176 | out.add(new org.datavec.api.records.impl.SequenceRecord(sequence, meta)); | CODE |
| CRITICAL | …records/reader/impl/inmemory/InMemoryRecordReader.java | 152 | return new org.datavec.api.records.impl.Record(iter.next(), null); | CODE |
| CRITICAL | …reader/impl/inmemory/InMemorySequenceRecordReader.java | 112 | return new org.datavec.api.records.impl.SequenceRecord(sequenceRecord(), null); | CODE |
| CRITICAL | …tavec/api/records/reader/impl/csv/CSVRecordReader.java | 202 | return new org.datavec.api.records.impl.Record(next, meta); | CODE |
| CRITICAL | …rds/reader/impl/csv/CSVNLinesSequenceRecordReader.java | 106 | return new org.datavec.api.records.impl.SequenceRecord(record, meta); | CODE |
| CRITICAL | …rds/reader/impl/csv/CSVNLinesSequenceRecordReader.java | 180 | out.add(new org.datavec.api.records.impl.SequenceRecord(t.getThird(), t.getSecond())); | CODE |
| CRITICAL | …cords/reader/impl/csv/CSVLineSequenceRecordReader.java | 105 | return new org.datavec.api.records.impl.SequenceRecord(out, r.getMetaData()); | CODE |
| CRITICAL | …ords/reader/impl/csv/CSVMultiSequenceRecordReader.java | 126 | return new org.datavec.api.records.impl.SequenceRecord(out, new RecordMetaDataInterval(firstLine, lastLine, uri) | CODE |
| CRITICAL | …i/records/reader/impl/csv/CSVSequenceRecordReader.java | 78 | return new org.datavec.api.records.impl.SequenceRecord(out, new RecordMetaDataURI(next)); | CODE |
| CRITICAL | …i/records/reader/impl/csv/CSVSequenceRecordReader.java | 125 | out.add(new org.datavec.api.records.impl.SequenceRecord(sequence, meta)); | CODE |
| CRITICAL | …der/impl/csv/CSVVariableSlidingWindowRecordReader.java | 176 | return new org.datavec.api.records.impl.SequenceRecord(record, meta); | CODE |
| CRITICAL | …eader/impl/transform/TransformProcessRecordReader.java | 130 | next = new org.datavec.api.records.impl.Record(temp, r.getMetaData()); | CODE |
| CRITICAL | …i/records/reader/impl/jackson/JacksonRecordReader.java | 201 | return new org.datavec.api.records.impl.Record(writables, meta); | CODE |
| CRITICAL | …i/records/reader/impl/jackson/JacksonRecordReader.java | 224 | out.add(new org.datavec.api.records.impl.Record(writables, metaData)); | CODE |
| CRITICAL | …ader/impl/jackson/JacksonLineSequenceRecordReader.java | 74 | return new org.datavec.api.records.impl.SequenceRecord(out, new RecordMetaDataURI(next)); | CODE |
| CRITICAL | …rc/main/java/org/datavec/api/util/ReflectionUtils.java | 51 | T result = org.nd4j.common.io.ReflectionUtils.newInstance(theClass); | CODE |
| CRITICAL | …main/java/org/datavec/poi/excel/ExcelRecordReader.java | 107 | Record record = new org.datavec.api.records.impl.Record(ret, | CODE |
| CRITICAL | …main/java/org/datavec/poi/excel/ExcelRecordReader.java | 119 | Record record = new org.datavec.api.records.impl.Record(rowToRecord(currRow), | CODE |
| CRITICAL | …main/java/org/datavec/poi/excel/ExcelRecordReader.java | 142 | Record record = new org.datavec.api.records.impl.Record(rowToRecord(currRow), | CODE |
| CRITICAL⚡ | …rc/main/java/org/datavec/image/loader/ImageLoader.java | 47 | registry.registerServiceProvider(new com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReaderSpi()); | CODE |
| CRITICAL⚡ | …rc/main/java/org/datavec/image/loader/ImageLoader.java | 48 | registry.registerServiceProvider(new com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageWriterSpi()); | CODE |
| CRITICAL⚡ | …rc/main/java/org/datavec/image/loader/ImageLoader.java | 49 | registry.registerServiceProvider(new com.twelvemonkeys.imageio.plugins.psd.PSDImageReaderSpi()); | CODE |
| CRITICAL⚡ | …rc/main/java/org/datavec/image/loader/ImageLoader.java | 50 | registry.registerServiceProvider(Arrays.asList(new com.twelvemonkeys.imageio.plugins.bmp.BMPImageReaderSpi(), | CODE |
| CRITICAL⚡ | …rc/main/java/org/datavec/image/loader/ImageLoader.java | 51 | new com.twelvemonkeys.imageio.plugins.bmp.CURImageReaderSpi(), | CODE |
| CRITICAL⚡ | …rc/main/java/org/datavec/image/loader/ImageLoader.java | 52 | new com.twelvemonkeys.imageio.plugins.bmp.ICOImageReaderSpi())); | CODE |
| CRITICAL | …/datavec/image/recordreader/BaseImageRecordReader.java | 513 | return new org.datavec.api.records.impl.Record(list, new RecordMetaDataURI(uri, BaseImageRecordReader.class)); | CODE |
| CRITICAL | …/datavec/image/recordreader/BaseImageRecordReader.java | 532 | out.add(new org.datavec.api.records.impl.Record(next, meta)); | CODE |
| CRITICAL | …ecordreader/objdetect/ObjectDetectionRecordReader.java | 303 | return new org.datavec.api.records.impl.Record(list, new RecordMetaDataImageURI(uri, BaseImageRecordReader.class | CODE |
| CRITICAL | …/org/datavec/image/transform/RotateImageTransform.java | 127 | org.bytedeco.opencv.global.opencv_core.transform(src, dst, M); | CODE |
| CRITICAL | …ow/src/main/java/org/datavec/arrow/ArrowConverter.java | 403 | return new org.apache.arrow.vector.types.pojo.Schema(fields); | CODE |
| CRITICAL | …/org/datavec/arrow/recordreader/ArrowRecordReader.java | 118 | byte[] arr = org.apache.commons.io.IOUtils.toByteArray(inputStream); | CODE |
| CRITICAL | …ec/jdbc/records/reader/impl/jdbc/JDBCRecordReader.java | 265 | return new org.datavec.api.records.impl.Record(toWritable(next), rmd); | CODE |
| CRITICAL | …ec/jdbc/records/reader/impl/jdbc/JDBCRecordReader.java | 306 | ret.add(new org.datavec.api.records.impl.Record(toWritable(item), rmd)); | CODE |
| CRITICAL⚡ | …nchmarking_nd4j/src/main/java/org/nd4j/Flattening.java | 33 | public INDArray small_c = org.nd4j.linalg.factory.Nd4j.create(new int[]{1<<10, 1<<10}, 'c'); | CODE |
| CRITICAL⚡ | …nchmarking_nd4j/src/main/java/org/nd4j/Flattening.java | 34 | public INDArray small_f = org.nd4j.linalg.factory.Nd4j.create(new int[]{1<<10, 1<<10}, 'f'); | CODE |
| CRITICAL⚡ | …nchmarking_nd4j/src/main/java/org/nd4j/Flattening.java | 39 | org.nd4j.linalg.factory.Nd4j.toFlattened('c', state.small_c); | CODE |
| CRITICAL⚡ | …nchmarking_nd4j/src/main/java/org/nd4j/Flattening.java | 44 | org.nd4j.linalg.factory.Nd4j.toFlattened('f', state.small_c); | CODE |
| CRITICAL⚡ | …nchmarking_nd4j/src/main/java/org/nd4j/Flattening.java | 49 | org.nd4j.linalg.factory.Nd4j.toFlattened('f', state.small_f); | CODE |
| CRITICAL⚡ | …nchmarking_nd4j/src/main/java/org/nd4j/Flattening.java | 54 | org.nd4j.linalg.factory.Nd4j.toFlattened('c', state.small_f); | CODE |
| CRITICAL | codegen/op-codegen/README.md | 206 | return Nd4j.exec(new org.nd4j.linalg.api.ops.random.custom.BinomialOp(nTrials, p, shape))[0]; | CODE |
| CRITICAL | codegen/op-codegen/README.md | 249 | return Nd4j.exec(new org.nd4j.linalg.api.ops.impl.transforms.custom.AndOp(x, y))[0]; | CODE |
| 2093 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | release-specified-component.sh | 1 | #!/bin/bash | COMMENT |
| LOW | change-cuda-versions.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | datavec/buildmultiplescalaversions.sh | 1 | #! /bin/bash | COMMENT |
| LOW | …atavec-jdbc/datavecTests/README_DO_NOT_TOUCH_FILES.txt | 1 | COMMENT | |
| LOW | …c-jdbc/datavecTests/seg0/README_DO_NOT_TOUCH_FILES.txt | 1 | COMMENT | |
| LOW | …ec-jdbc/datavecTests/log/README_DO_NOT_TOUCH_FILES.txt | 1 | COMMENT | |
| LOW | libnd4j/flatc-generate.sh | 1 | #!/bin/bash | COMMENT |
| LOW | libnd4j/pi_build.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | libnd4j/buildnativeoperations.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | libnd4j/buildnativeoperations.sh | 21 | # PREFLIGHT CHECK OPTIONS: | COMMENT |
| LOW | libnd4j/copy-flatc-java.sh | 1 | #!/bin/bash | COMMENT |
| LOW | libnd4j/include/cblas.h | 21 | // | COMMENT |
| LOW | libnd4j/include/cblas.h | 41 | #endif | COMMENT |
| LOW | libnd4j/include/build_info.cpp | 81 | // Boolean type | COMMENT |
| LOW | libnd4j/include/build_info.cpp | 101 | #endif | COMMENT |
| LOW | libnd4j/include/build_info.cpp | 121 | #endif | COMMENT |
| LOW | libnd4j/include/ConstMessages.h | 21 | COMMENT | |
| LOW | libnd4j/include/samediff.h | 21 | // | COMMENT |
| LOW | libnd4j/include/blas/cblas.h | 21 | // | COMMENT |
| LOW | libnd4j/include/blas/cblas.h | 41 | #endif | COMMENT |
| LOW | libnd4j/include/types/safe_type_access.h | 21 | #ifndef LIBND4J_SAFE_TYPE_ACCESS_H | COMMENT |
| LOW | libnd4j/include/types/types.h | 21 | // Modified by AbdelRauf | COMMENT |
| LOW | libnd4j/include/types/types.h | 141 | #define FILE_LINE_LINK __FILE__ "(" STRINGIZE(__LINE__) ") : " | COMMENT |
| LOW | libnd4j/include/types/types.h | 161 | #define HAS_FLOAT16 1 | COMMENT |
| LOW | libnd4j/include/types/types.h | 181 | #define HAS_FLOAT32 | COMMENT |
| LOW | libnd4j/include/types/types.h | 201 | // - uint8_t -> unsigned char | COMMENT |
| LOW | libnd4j/include/types/types.h | 221 | // Only define if not already defined by type_boiler_plate_expansions.h | COMMENT |
| LOW | libnd4j/include/types/types.h | 241 | #else | COMMENT |
| LOW | libnd4j/include/types/types.h | 261 | #define HAS_HALF2 1 | COMMENT |
| LOW | libnd4j/include/types/types.h | 281 | #if SD_SINGLE_TYPE_7_COMPILED | COMMENT |
| LOW | libnd4j/include/types/types.h | 301 | #define TTYPE_INT32 | COMMENT |
| LOW | libnd4j/include/types/types.h | 321 | #if SD_SINGLE_TYPE_12_COMPILED | COMMENT |
| LOW | libnd4j/include/types/types.h | 341 | #else | COMMENT |
| LOW | libnd4j/include/types/types.h | 361 | #define TTYPE_BFLOAT | COMMENT |
| LOW | libnd4j/include/types/types.h | 381 | // UTF32 type | COMMENT |
| LOW | libnd4j/include/types/types.h | 401 | #endif | COMMENT |
| LOW | libnd4j/include/types/types.h | 421 | ND_EXPAND(COUNT_N(__VA_ARGS__, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, \ | COMMENT |
| LOW | libnd4j/include/types/types.h | 441 | #else | COMMENT |
| LOW | libnd4j/include/types/types.h | 461 | #define GET_ELEMENT_17(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, ...) _17 | COMMENT |
| LOW | libnd4j/include/types/types.h | 481 | #if defined(__LP64__) | COMMENT |
| LOW | libnd4j/include/types/types.h | 501 | COMMENT | |
| LOW | libnd4j/include/types/types.h | 521 | #endif | COMMENT |
| LOW | libnd4j/include/types/types.h | 541 | #define SD_NUMERIC_TYPES (FLOAT32, float) | COMMENT |
| LOW | libnd4j/include/types/types.h | 561 | // Without this fallback, BUILD_SINGLE_SELECTOR in runtime methods would have no cases and crash. | COMMENT |
| LOW | libnd4j/include/types/types.h | 581 | #endif | COMMENT |
| LOW | libnd4j/include/types/types.h | 601 | #define ORIGINAL_HAS_INT8 1 | COMMENT |
| LOW | libnd4j/include/types/types.h | 621 | #ifdef HAS_UNSIGNEDLONG | COMMENT |
| LOW | libnd4j/include/types/types.h | 641 | #endif | COMMENT |
| LOW | libnd4j/include/types/types.h | 661 | #undef HAS_BFLOAT16 | COMMENT |
| LOW | libnd4j/include/types/types.h | 681 | #undef TTYPE_UTF8 | COMMENT |
| LOW | libnd4j/include/types/types.h | 701 | #define HAS_FLOAT16 1 | COMMENT |
| LOW | libnd4j/include/types/types.h | 721 | #define TTYPE_DOUBLE , (DOUBLE, double) | COMMENT |
| LOW | libnd4j/include/types/types.h | 741 | #define HAS_INT32 1 | COMMENT |
| LOW | libnd4j/include/types/types.h | 761 | #if SD_SINGLE_TYPE_12_COMPILED | COMMENT |
| LOW | libnd4j/include/types/types.h | 781 | #endif | COMMENT |
| LOW | libnd4j/include/types/types.h | 801 | #define HAS_UTF8 1 | COMMENT |
| LOW | libnd4j/include/types/types.h | 821 | // Define SD_STRING_TYPES after selective rendering has adjusted TTYPE_UTF* macros | COMMENT |
| LOW | libnd4j/include/types/types.h | 841 | #define TTYPE_BFLOAT16_DOUBLE_BFLOAT16 , (bfloat16, double, bfloat16) | COMMENT |
| LOW | libnd4j/include/types/types.h | 861 | #if defined(HAS_INT16) | COMMENT |
| LOW | libnd4j/include/types/types.h | 881 | #endif | COMMENT |
| 593 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libnd4j/CMakeLists.txt | 3 | # ============================================================================ | COMMENT |
| MEDIUM | libnd4j/CMakeLists.txt | 5 | # ============================================================================ | COMMENT |
| MEDIUM | libnd4j/CMakeLists.txt | 30 | # ============================================================================ | COMMENT |
| MEDIUM | libnd4j/CMakeLists.txt | 32 | # ============================================================================ | COMMENT |
| MEDIUM | libnd4j/test_output.txt | 2877 | # =================================================================== | COMMENT |
| MEDIUM | libnd4j/test_output.txt | 2881 | # =================================================================== | COMMENT |
| MEDIUM | libnd4j/test_output.txt | 3029 | # =================================================================== | COMMENT |
| MEDIUM⚡ | libnd4j/buildnativeoperations.sh | 147 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | libnd4j/buildnativeoperations.sh | 149 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 57 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 59 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 76 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 78 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 465 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 467 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 491 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 493 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 562 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 564 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 794 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 796 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 1687 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 1689 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 1731 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/buildnativeoperations.sh | 1733 | # ============================================================================= | COMMENT |
| MEDIUM | libnd4j/include/legacy/NativeOps.h | 645 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | libnd4j/include/legacy/NativeOps.h | 649 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp | 563 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp | 567 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp | 893 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp | 897 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp | 1459 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp | 1462 | // ═══════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …j-api/src/main/java/org/nd4j/nativeblas/NativeOps.java | 656 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …j-api/src/main/java/org/nd4j/nativeblas/NativeOps.java | 660 | // ═══════════════════════════════════════════════════════════════ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libnd4j/buildnativeoperations.sh | 254 | # Function to validate types list with comprehensive checking | COMMENT |
| MEDIUM | libnd4j/include/array/DataTypeValidation.cpp | 20 | // Implementation of robust data type validation and error reporting | COMMENT |
| MEDIUM | libnd4j/include/array/DataTypeValidation.h | 20 | // Created for robust data type validation and error reporting | COMMENT |
| MEDIUM | libnd4j/include/helpers/unicode.h | 617 | // A more robust check isn't possible without knowing the output buffer size here. | COMMENT |
| MEDIUM⚡ | …va/org/deeplearning4j/ui/module/train/TrainModule.java | 663 | continue; //TODO: more robust "weights only" approach... | CODE |
| MEDIUM⚡ | …va/org/deeplearning4j/ui/module/train/TrainModule.java | 672 | continue; //TODO: more robust "weights only" approach... | CODE |
| MEDIUM⚡ | …va/org/deeplearning4j/ui/module/train/TrainModule.java | 681 | continue; //TODO: more robust "weights only" approach... | CODE |
| MEDIUM | …eplearning4j/nn/layers/pooling/GlobalPoolingLayer.java | 155 | //TODO optimize without leverage | COMMENT |
| MEDIUM | …eplearning4j/nn/layers/pooling/GlobalPoolingLayer.java | 258 | //TODO optimize without leverage | COMMENT |
| MEDIUM | …rg/deeplearning4j/nn/layers/recurrent/LSTMHelpers.java | 308 | toReturn.oa[time] = workspaceMgr.leverageTo(ArrayType.BP_WORKING_MEM, outputGateActivations); | CODE |
| MEDIUM | …rg/deeplearning4j/nn/layers/recurrent/LSTMHelpers.java | 343 | currentMemoryCellState = workspaceMgr.leverageTo(ArrayType.FF_WORKING_MEM, currentMemoryCellState); //TO | CODE |
| MEDIUM | …rg/deeplearning4j/nn/layers/recurrent/LSTMHelpers.java | 543 | nablaCellStateNext = workspaceMgr.leverageTo(ArrayType.BP_WORKING_MEM, nablaCellState); //TODO optimize | CODE |
| MEDIUM | …/deeplearning4j/nn/layers/recurrent/FwdPassReturn.java | 114 | //Don't want to leverage previous activations if present - assume that has already happened (either passed | COMMENT |
| MEDIUM | …org/deeplearning4j/nn/workspace/LayerWorkspaceMgr.java | 82 | return array; //OK - leverage override | CODE |
| MEDIUM | …java/org/deeplearning4j/nn/graph/ComputationGraph.java | 1942 | //Don't leverage out of async DataMultiSetIterator workspaces | COMMENT |
| MEDIUM | …java/org/deeplearning4j/nn/graph/ComputationGraph.java | 2104 | //Don't leverage out of async DataMultiSetIterator workspaces | COMMENT |
| MEDIUM | …java/org/deeplearning4j/nn/graph/ComputationGraph.java | 2329 | //Don't leverage out of async MultiDataSetIterator workspaces | COMMENT |
| MEDIUM | …rg/deeplearning4j/nn/multilayer/MultiLayerNetwork.java | 1009 | //Don't leverage out of async DataSetIterator workspaces | COMMENT |
| MEDIUM | …rg/deeplearning4j/nn/multilayer/MultiLayerNetwork.java | 1110 | //Don't leverage out of async DataSetIterator workspaces | COMMENT |
| MEDIUM | …rg/deeplearning4j/nn/multilayer/MultiLayerNetwork.java | 1302 | //Don't leverage out of async DataSetIterator workspaces | COMMENT |
| MEDIUM | …rc/main/java/org/nd4j/linalg/api/ndarray/INDArray.java | 2681 | * INDArray is returned unmodified (same as {@link #leverage()} | COMMENT |
| MEDIUM | …/nd4j/autodiff/samediff/internal/InferenceSession.java | 444 | // Using opName() is more robust than instanceof for control flow ops | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ADRs/0036 - Namespace refactoring.md | 53 | # Step 1: Handle Specific Component Moves (More Specific Rules First) # | COMMENT |
| LOW | ADRs/0036 - Namespace refactoring.md | 173 | # Step 2: Apply General Re-basing Rules (Less Specific Rules Last) # | COMMENT |
| LOW | ADRs/0036 - Namespace refactoring.md | 195 | # Step 3: Exclusions / Manual Handling (Commented Out for Safety) # | COMMENT |
| LOW | ADRs/0036 - Namespace refactoring.md | 214 | # Step 4: Potential Cleanup (Run Separately After Migration) # | COMMENT |
| LOW | …ng4j/integration/IntegrationTestBaselineGenerator.java | 117 | //Step 0: collect metadata for the current machine, and write it (in case we need to debug anything related | COMMENT |
| LOW | …optimize/optimizations/CuDNNFunctionOptimizations.java | 72 | //Step 1 - replace activations | COMMENT |
| LOW | …optimize/optimizations/CuDNNFunctionOptimizations.java | 90 | //Step 2 - replace YXIO weights (default) with OYXI weights | COMMENT |
| LOW | …g/nd4j/autodiff/samediff/internal/AbstractSession.java | 256 | // Step 0: validation - that variables exist, placeholders have arrays, etc | COMMENT |
| LOW | …g/nd4j/autodiff/samediff/internal/AbstractSession.java | 304 | // Step 1: determine subgraph structure we actually need to execute | COMMENT |
| LOW | …g/nd4j/autodiff/samediff/internal/AbstractSession.java | 322 | // Step 2: Check that we have required placeholders | COMMENT |
| LOW | …g/nd4j/autodiff/samediff/internal/AbstractSession.java | 379 | // Step 3: Mark the (required) variables, constants and placeholders as | COMMENT |
| LOW | …g/nd4j/autodiff/samediff/internal/AbstractSession.java | 416 | // Step 4: execute in any order, but not switching to new frame/iteration until | COMMENT |
| LOW | …4j/autodiff/samediff/transform/GraphTransformUtil.java | 65 | //Step 1: replace the old outputs with new outputs | COMMENT |
| LOW | …4j/autodiff/samediff/transform/GraphTransformUtil.java | 131 | //Step 2: Update input variables: if X -> (subgraph) exists, then X.inputsForOp needs to be updated | COMMENT |
| LOW | …4j/autodiff/samediff/transform/GraphTransformUtil.java | 152 | //Step 3: Remove the old variables and old functions | COMMENT |
| LOW⚡ | …g/nd4j/autodiff/samediff/serde/SameDiffSerializer.java | 2142 | // Step 1: Call the main method to associate the array | COMMENT |
| LOW⚡ | …g/nd4j/autodiff/samediff/serde/SameDiffSerializer.java | 2146 | // Step 2: Explicitly set in the correct ArrayHolder | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libnd4j/flatc-generate.sh | 61 | # Check if source and destination are the same | COMMENT |
| LOW | libnd4j/flatc-generate.sh | 67 | # Check if destination is a subdirectory of source to avoid infinite recursion | COMMENT |
| LOW | libnd4j/flatc-generate.sh | 113 | # Check if required .fbs files exist before proceeding | COMMENT |
| LOW⚡ | libnd4j/buildnativeoperations.sh | 156 | # Check if stdout is a terminal and colors are supported | COMMENT |
| LOW | libnd4j/buildnativeoperations.sh | 1540 | # Set CMAKE_ONLY to exit after CMake completes (and run validation then) | COMMENT |
| LOW | libnd4j/buildnativeoperations.sh | 1819 | # Check if build directory and objects exist | COMMENT |
| LOW | libnd4j/buildnativeoperations.sh | 1828 | # Check if object files exist | COMMENT |
| LOW | libnd4j/buildnativeoperations.sh | 1892 | # Check if we're in the parent deeplearning4j directory | COMMENT |
| LOW | libnd4j/copy-flatc-java.sh | 35 | # Check if we're in the parent deeplearning4j directory | COMMENT |
| LOW | libnd4j/copy-flatc-java.sh | 62 | # Check if source directory exists and has content | COMMENT |
| LOW | libnd4j/copy-flatc-java.sh | 94 | # Check if any Java files exist in source directory | COMMENT |
| LOW | .github/workflows/build-deploy-linux-cuda-12.3.yml | 214 | # Check if nvcc exists in alternative location | COMMENT |
| LOW | .github/workflows/build-deploy-linux-x86_64.yml | 146 | # Check if swap is already enabled | COMMENT |
| LOW | .github/workflows/build-deploy-linux-cuda-12.6.yml | 136 | # Check if swap is already enabled | COMMENT |
| LOW | .github/workflows/build-deploy-android-x86_64.yml | 118 | # Check if swap is already enabled | COMMENT |
| LOW | .github/workflows/build-deploy-windows-cuda-12.6.yml | 455 | # Check if CUDA was installed in a different location | COMMENT |
| LOW | .github/workflows/build-deploy-linux-arm64.yml | 159 | # Set ARMCOMPUTE_ROOT to the explicit path of the extracted contents | COMMENT |
| LOW | platform-tests/run-benchmarks.sh | 47 | # Check if "--suppressions" already exists in TEST_RUNNER_PREFIX | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ng4j/integration/IntegrationTestBaselineGenerator.java | 117 | //Step 0: collect metadata for the current machine, and write it (in case we need to debug anything related | COMMENT |
| LOW | …rg/nd4j/autodiff/samediff/optimize/GraphOptimizer.java | 82 | //Because ops might disappear from previous optimization steps, we need to check if the previous | COMMENT |
| LOW | …g/nd4j/autodiff/samediff/internal/AbstractSession.java | 256 | // Step 0: validation - that variables exist, placeholders have arrays, etc | COMMENT |
| LOW | …g/nd4j/autodiff/samediff/internal/AbstractSession.java | 304 | // Step 1: determine subgraph structure we actually need to execute | COMMENT |
| LOW | …g/nd4j/autodiff/samediff/internal/AbstractSession.java | 322 | // Step 2: Check that we have required placeholders | COMMENT |
| LOW | …g/nd4j/autodiff/samediff/internal/AbstractSession.java | 379 | // Step 3: Mark the (required) variables, constants and placeholders as | COMMENT |
| LOW | …g/nd4j/autodiff/samediff/internal/AbstractSession.java | 416 | // Step 4: execute in any order, but not switching to new frame/iteration until | COMMENT |
| LOW | …4j/autodiff/samediff/transform/GraphTransformUtil.java | 65 | //Step 1: replace the old outputs with new outputs | COMMENT |
| LOW | …4j/autodiff/samediff/transform/GraphTransformUtil.java | 131 | //Step 2: Update input variables: if X -> (subgraph) exists, then X.inputsForOp needs to be updated | COMMENT |
| LOW | …4j/autodiff/samediff/transform/GraphTransformUtil.java | 152 | //Step 3: Remove the old variables and old functions | COMMENT |
| LOW⚡ | …g/nd4j/autodiff/samediff/serde/SameDiffSerializer.java | 2142 | // Step 1: Call the main method to associate the array | COMMENT |
| LOW⚡ | …g/nd4j/autodiff/samediff/serde/SameDiffSerializer.java | 2146 | // Step 2: Explicitly set in the correct ArrayHolder | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libnd4j/buildnativeoperations.sh | 1617 | # Create a simple report even if no data was collected | COMMENT |
| MEDIUM | .github/workflows/build-deploy-android-x86_64.yml | 207 | # Define the specific OpenBLAS JAR for android-x86_64 | COMMENT |
| MEDIUM | .github/workflows/build-deploy-windows.yml | 119 | # Create a new pagefile with a static size of 12 GB (12288 MB). | COMMENT |
| MEDIUM | .github/workflows/build-deploy-windows-cuda-12.6.yml | 251 | # Create a temporary directory for CUDA installer logs and temp files | COMMENT |
| MEDIUM | platform-tests/run-benchmarks.sh | 23 | # Create a file to store the suppression information | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/omnihub/omnihub_bootstrap.py | 1 | CODE | |
| LOW | contrib/omnihub/src/omnihub/frameworks/keras.py | 4 | CODE | |
| LOW | contrib/omnihub/src/omnihub/frameworks/huggingface.py | 9 | CODE | |
| LOW | codegen/onnx-def-gen/convert_model_upgrade.py | 2 | CODE | |
| LOW | codegen/onnx-def-gen/test_op_def_gen.py | 19 | CODE | |
| LOW | codegen/onnx-def-gen/test_op_def_gen.py | 19 | CODE | |
| LOW | codegen/onnx-def-gen/test_op_def_gen.py | 20 | CODE | |
| LOW | codegen/onnx-def-gen/test_op_def_gen.py | 21 | CODE | |
| LOW | codegen/onnx-def-gen/test_op_def_gen.py | 22 | CODE | |
| LOW | codegen/onnx-def-gen/test_op_def_gen.py | 24 | CODE | |
| LOW | codegen/onnx-def-gen/test_op_def_gen.py | 25 | CODE | |
| LOW | …n/resources/org/nd4j/python4j/pythonexec/pythonexec.py | 21 | CODE | |
| LOW | …n/resources/org/nd4j/python4j/pythonexec/pythonexec.py | 22 | CODE | |
| LOW | …ow/src/main/resources/cast_graph/ai/konduit/casting.py | 23 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …gen/src/main/java/org/nd4j/descriptor/ParseOpFile.java | 197 | .setName("placeholder") | CODE |
| LOW | …workimport/keras/preprocessing/text/TokenizerTest.java | 80 | String[] itemsArray = new String[] { "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod te | CODE |
| LOW | …workimport/keras/preprocessing/text/TokenizerTest.java | 80 | String[] itemsArray = new String[] { "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod te | CODE |
| LOW | …kimport/frameworkimport/tensorflow/TestTensorflowIR.kt | 462 | val controlFlowOps = setOf("Switch","While","placeholder","next_iteration","enter","exit","loop_cond") | CODE |
| LOW | …eeplearning4jUiAssets/js/samediff/flatbuffers-utils.js | 118 | return "placeholder"; | CODE |
| LOW | …ort/tensorflow/definitions/TensorflowOpDeclarations.kt | 1667 | val placeHolder = mapTensorNamesWithOp(inputFrameworkOpName = "Placeholder",opName = "placeholder", | CODE |
| LOW | …ort/tensorflow/definitions/TensorflowOpDeclarations.kt | 1672 | val placeHolderWithDefault = mapTensorNamesWithOp(inputFrameworkOpName = "PlaceholderWithDefault",opName = "placeholder" | CODE |
| LOW | …otlin/org/nd4j/samediff/frameworkimport/ImportGraph.kt | 399 | VariableOriginTracer.traceVariableResolution(nodeName, "placeholder", sd.getVariable(nodeName), null | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | codegen/onnx-def-gen/convert_model_upgrade.py | 6 | def add_value_info_for_constants(model : onnx.ModelProto): | CODE |
| LOW | codegen/onnx-def-gen/convert_model_upgrade.py | 18 | def add_const_value_infos_to_graph(graph : onnx.GraphProto): | CODE |
| LOW | codegen/onnx-def-gen/onnx_def_gen.py | 42 | def convert_attr_type_to_enum(attr_value): | CODE |
| LOW | …/resources/deeplearning4jUiAssets/js/train/overview.js | 218 | function renderModelPerformanceTable(data) { | CODE |
| LOW | …ain/resources/deeplearning4jUiAssets/js/train/model.js | 496 | function renderParametersHistogram(data) { | CODE |
| LOW | …ain/resources/deeplearning4jUiAssets/js/train/train.js | 44 | function doUpdateSessionWorkerSelect() { | CODE |
| LOW | …ain/resources/deeplearning4jUiAssets/js/train/train.js | 156 | function updateSessionWorkerSelect(){ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libnd4j/include/execution/impl/ThreadPool.cpp | 106 | // TODO: implement this one properly | COMMENT |
| LOW | libnd4j/include/helpers/mman.h | 90 | // TODO: implement | COMMENT |
| LOW | …sequencevectors/graph/walkers/impl/WeightedWalker.java | 93 | // TODO: implement padding | COMMENT |
| LOW | …common/src/main/java/org/nd4j/common/util/NioUtil.java | 53 | // TODO: implement shape copy for cases where stride == 1 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/omnihub/src/omnihub/frameworks/keras.py | 42 | CODE | |
| LOW | codegen/onnx-def-gen/convert_model_upgrade.py | 6 | CODE | |
| LOW | codegen/onnx-def-gen/convert_model_upgrade.py | 18 | CODE | |
| LOW | codegen/onnx-def-gen/onnx_def_gen.py | 42 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …gen/src/test/kotlin/org/nd4j/codegen/dsl/ConfigTest.kt | 57 | // Just for demonstration purposes | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | codegen/onnx-def-gen/save_test.py | 25 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …n/resources/org/nd4j/python4j/pythonexec/pythonexec.py | 29 | except Exception as ex: | CODE |