AI Slop Code RIsk Monitor

deeplearning4j/deeplearning4j

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...

12.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for deeplearning4j/deeplearning4j, a Java project with 14,269 GitHub stars. SynthScan examined 1,250,322 lines of code across 6255 source files, recording 2955 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 12.6 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

12.6
Adjusted Signal
12.6
Raw Pattern Score
100%
Time Factor
2026-10-05
Last Push
14.3K
Stars
Java
Language
1.3M
Lines of Code
6.3K
Files
3.0K
Pattern Hits
2026-10-12
Scan Date
0.34
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 3.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 744 finding(s).

Hallucinated Dependency & Supply Chain Risk 45.0/100 · MEDIUM

Are imports declared and package/API names verified? 2175 finding(s).

Agent Over-Engineering Ratio 0.5/100 · LOW

Are wrappers, guards, and repeated structures necessary? 44 finding(s).

PR Review Velocity Impact 59.3/100 · HIGH

Which changes need focused human review? 2955 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2153HIGH 0MEDIUM 63LOW 739

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

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 detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators2153 hits · 14905 pts
SeverityFileLineSnippetContext
CRITICAL…api/records/reader/impl/ConcatenatingRecordReader.java124 return new org.datavec.api.records.impl.Record(next(), null);CODE
CRITICAL…/datavec/api/records/reader/impl/LineRecordReader.java249 return new org.datavec.api.records.impl.Record(next, meta);CODE
CRITICAL…/datavec/api/records/reader/impl/LineRecordReader.java370 out.add(new org.datavec.api.records.impl.Record(t.getThird(), t.getSecond()));CODE
CRITICAL…/datavec/api/records/reader/impl/FileRecordReader.java101 String s = org.apache.commons.io.IOUtils.toString(next, charset);CODE
CRITICAL…/datavec/api/records/reader/impl/FileRecordReader.java214 return new org.datavec.api.records.impl.Record(ret,new RecordMetaDataURI(next, FileRecordReader.class));CODE
CRITICAL…/datavec/api/records/reader/impl/FileRecordReader.java236 out.add(new org.datavec.api.records.impl.Record(list, meta));CODE
CRITICAL…ec/api/records/reader/impl/ComposableRecordReader.java130 return new org.datavec.api.records.impl.Record(next(), null);CODE
CRITICAL…api/records/reader/impl/misc/SVMLightRecordReader.java273 return new org.datavec.api.records.impl.Record(next, meta);CODE
CRITICAL…ader/impl/filebatch/FileBatchSequenceRecordReader.java81 return new org.datavec.api.records.impl.SequenceRecord(sequenceRecord(), null);CODE
CRITICAL…cords/reader/impl/filebatch/FileBatchRecordReader.java126 return new org.datavec.api.records.impl.Record(next(), null);CODE
CRITICAL…rds/reader/impl/collection/CollectionRecordReader.java111 return new org.datavec.api.records.impl.Record(next(),CODE
CRITICAL…rds/reader/impl/collection/CollectionRecordReader.java140 Record r = new org.datavec.api.records.impl.Record(l,CODE
CRITICAL…rds/reader/impl/collection/CollectionRecordReader.java153 Record r = new org.datavec.api.records.impl.Record(l,CODE
CRITICAL…rds/reader/impl/collection/ListStringRecordReader.java140 return new org.datavec.api.records.impl.Record(next(), null);CODE
CRITICAL…er/impl/collection/CollectionSequenceRecordReader.java114 return new org.datavec.api.records.impl.Record(next(), null);CODE
CRITICAL…er/impl/collection/CollectionSequenceRecordReader.java145 return new org.datavec.api.records.impl.SequenceRecord(sequenceRecord(),CODE
CRITICAL…er/impl/collection/CollectionSequenceRecordReader.java178 SequenceRecord r = new org.datavec.api.records.impl.SequenceRecord(record,CODE
CRITICAL…i/records/reader/impl/regex/RegexLineRecordReader.java112 return new org.datavec.api.records.impl.Record(next, meta);CODE
CRITICAL…cords/reader/impl/regex/RegexSequenceRecordReader.java160 return new org.datavec.api.records.impl.SequenceRecord(sequence, new RecordMetaDataURI(next, RegexSequenceRecordCODE
CRITICAL…cords/reader/impl/regex/RegexSequenceRecordReader.java176 out.add(new org.datavec.api.records.impl.SequenceRecord(sequence, meta));CODE
CRITICAL…records/reader/impl/inmemory/InMemoryRecordReader.java152 return new org.datavec.api.records.impl.Record(iter.next(), null);CODE
CRITICAL…reader/impl/inmemory/InMemorySequenceRecordReader.java112 return new org.datavec.api.records.impl.SequenceRecord(sequenceRecord(), null);CODE
CRITICAL…tavec/api/records/reader/impl/csv/CSVRecordReader.java202 return new org.datavec.api.records.impl.Record(next, meta);CODE
CRITICAL…rds/reader/impl/csv/CSVNLinesSequenceRecordReader.java106 return new org.datavec.api.records.impl.SequenceRecord(record, meta);CODE
CRITICAL…rds/reader/impl/csv/CSVNLinesSequenceRecordReader.java180 out.add(new org.datavec.api.records.impl.SequenceRecord(t.getThird(), t.getSecond()));CODE
CRITICAL…cords/reader/impl/csv/CSVLineSequenceRecordReader.java105 return new org.datavec.api.records.impl.SequenceRecord(out, r.getMetaData());CODE
CRITICAL…ords/reader/impl/csv/CSVMultiSequenceRecordReader.java126 return new org.datavec.api.records.impl.SequenceRecord(out, new RecordMetaDataInterval(firstLine, lastLine, uri)CODE
CRITICAL…i/records/reader/impl/csv/CSVSequenceRecordReader.java78 return new org.datavec.api.records.impl.SequenceRecord(out, new RecordMetaDataURI(next));CODE
CRITICAL…i/records/reader/impl/csv/CSVSequenceRecordReader.java125 out.add(new org.datavec.api.records.impl.SequenceRecord(sequence, meta));CODE
CRITICAL…der/impl/csv/CSVVariableSlidingWindowRecordReader.java176 return new org.datavec.api.records.impl.SequenceRecord(record, meta);CODE
CRITICAL…eader/impl/transform/TransformProcessRecordReader.java130 next = new org.datavec.api.records.impl.Record(temp, r.getMetaData());CODE
CRITICAL…i/records/reader/impl/jackson/JacksonRecordReader.java201 return new org.datavec.api.records.impl.Record(writables, meta);CODE
CRITICAL…i/records/reader/impl/jackson/JacksonRecordReader.java224 out.add(new org.datavec.api.records.impl.Record(writables, metaData));CODE
CRITICAL…ader/impl/jackson/JacksonLineSequenceRecordReader.java74 return new org.datavec.api.records.impl.SequenceRecord(out, new RecordMetaDataURI(next));CODE
CRITICAL…rc/main/java/org/datavec/api/util/ReflectionUtils.java51 T result = org.nd4j.common.io.ReflectionUtils.newInstance(theClass);CODE
CRITICAL…main/java/org/datavec/poi/excel/ExcelRecordReader.java107 Record record = new org.datavec.api.records.impl.Record(ret,CODE
CRITICAL…main/java/org/datavec/poi/excel/ExcelRecordReader.java119 Record record = new org.datavec.api.records.impl.Record(rowToRecord(currRow),CODE
CRITICAL…main/java/org/datavec/poi/excel/ExcelRecordReader.java142 Record record = new org.datavec.api.records.impl.Record(rowToRecord(currRow),CODE
CRITICAL⚡…rc/main/java/org/datavec/image/loader/ImageLoader.java47 registry.registerServiceProvider(new com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReaderSpi());CODE
CRITICAL⚡…rc/main/java/org/datavec/image/loader/ImageLoader.java48 registry.registerServiceProvider(new com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageWriterSpi());CODE
CRITICAL⚡…rc/main/java/org/datavec/image/loader/ImageLoader.java49 registry.registerServiceProvider(new com.twelvemonkeys.imageio.plugins.psd.PSDImageReaderSpi());CODE
CRITICAL⚡…rc/main/java/org/datavec/image/loader/ImageLoader.java50 registry.registerServiceProvider(Arrays.asList(new com.twelvemonkeys.imageio.plugins.bmp.BMPImageReaderSpi(),CODE
CRITICAL⚡…rc/main/java/org/datavec/image/loader/ImageLoader.java51 new com.twelvemonkeys.imageio.plugins.bmp.CURImageReaderSpi(),CODE
CRITICAL⚡…rc/main/java/org/datavec/image/loader/ImageLoader.java52 new com.twelvemonkeys.imageio.plugins.bmp.ICOImageReaderSpi()));CODE
CRITICAL…/datavec/image/recordreader/BaseImageRecordReader.java513 return new org.datavec.api.records.impl.Record(list, new RecordMetaDataURI(uri, BaseImageRecordReader.class));CODE
CRITICAL…/datavec/image/recordreader/BaseImageRecordReader.java532 out.add(new org.datavec.api.records.impl.Record(next, meta));CODE
CRITICAL…ecordreader/objdetect/ObjectDetectionRecordReader.java303 return new org.datavec.api.records.impl.Record(list, new RecordMetaDataImageURI(uri, BaseImageRecordReader.classCODE
CRITICAL…/org/datavec/image/transform/RotateImageTransform.java127 org.bytedeco.opencv.global.opencv_core.transform(src, dst, M);CODE
CRITICAL…ow/src/main/java/org/datavec/arrow/ArrowConverter.java403 return new org.apache.arrow.vector.types.pojo.Schema(fields);CODE
CRITICAL…/org/datavec/arrow/recordreader/ArrowRecordReader.java118 byte[] arr = org.apache.commons.io.IOUtils.toByteArray(inputStream);CODE
CRITICAL…ec/jdbc/records/reader/impl/jdbc/JDBCRecordReader.java265 return new org.datavec.api.records.impl.Record(toWritable(next), rmd);CODE
CRITICAL…ec/jdbc/records/reader/impl/jdbc/JDBCRecordReader.java306 ret.add(new org.datavec.api.records.impl.Record(toWritable(item), rmd));CODE
CRITICAL⚡…nchmarking_nd4j/src/main/java/org/nd4j/Flattening.java33 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.java34 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.java39 org.nd4j.linalg.factory.Nd4j.toFlattened('c', state.small_c);CODE
CRITICAL⚡…nchmarking_nd4j/src/main/java/org/nd4j/Flattening.java44 org.nd4j.linalg.factory.Nd4j.toFlattened('f', state.small_c);CODE
CRITICAL⚡…nchmarking_nd4j/src/main/java/org/nd4j/Flattening.java49 org.nd4j.linalg.factory.Nd4j.toFlattened('f', state.small_f);CODE
CRITICAL⚡…nchmarking_nd4j/src/main/java/org/nd4j/Flattening.java54 org.nd4j.linalg.factory.Nd4j.toFlattened('c', state.small_f);CODE
CRITICALcodegen/op-codegen/README.md206 return Nd4j.exec(new org.nd4j.linalg.api.ops.random.custom.BinomialOp(nTrials, p, shape))[0];CODE
CRITICALcodegen/op-codegen/README.md249 return Nd4j.exec(new org.nd4j.linalg.api.ops.impl.transforms.custom.AndOp(x, y))[0];CODE
2093 more matches not shown…
Over-Commented Block653 hits · 584 pts
SeverityFileLineSnippetContext
LOWrelease-specified-component.sh1#!/bin/bashCOMMENT
LOWchange-cuda-versions.sh1#!/usr/bin/env bashCOMMENT
LOWdatavec/buildmultiplescalaversions.sh1#! /bin/bashCOMMENT
LOW…atavec-jdbc/datavecTests/README_DO_NOT_TOUCH_FILES.txt1COMMENT
LOW…c-jdbc/datavecTests/seg0/README_DO_NOT_TOUCH_FILES.txt1COMMENT
LOW…ec-jdbc/datavecTests/log/README_DO_NOT_TOUCH_FILES.txt1COMMENT
LOWlibnd4j/flatc-generate.sh1#!/bin/bashCOMMENT
LOWlibnd4j/pi_build.sh1#!/usr/bin/env bashCOMMENT
LOWlibnd4j/buildnativeoperations.sh1#!/usr/bin/env bashCOMMENT
LOWlibnd4j/buildnativeoperations.sh21# PREFLIGHT CHECK OPTIONS:COMMENT
LOWlibnd4j/copy-flatc-java.sh1#!/bin/bashCOMMENT
LOWlibnd4j/include/cblas.h21//COMMENT
LOWlibnd4j/include/cblas.h41#endifCOMMENT
LOWlibnd4j/include/build_info.cpp81 // Boolean typeCOMMENT
LOWlibnd4j/include/build_info.cpp101#endifCOMMENT
LOWlibnd4j/include/build_info.cpp121#endifCOMMENT
LOWlibnd4j/include/ConstMessages.h21COMMENT
LOWlibnd4j/include/samediff.h21//COMMENT
LOWlibnd4j/include/blas/cblas.h21//COMMENT
LOWlibnd4j/include/blas/cblas.h41#endifCOMMENT
LOWlibnd4j/include/types/safe_type_access.h21#ifndef LIBND4J_SAFE_TYPE_ACCESS_HCOMMENT
LOWlibnd4j/include/types/types.h21// Modified by AbdelRaufCOMMENT
LOWlibnd4j/include/types/types.h141#define FILE_LINE_LINK __FILE__ "(" STRINGIZE(__LINE__) ") : "COMMENT
LOWlibnd4j/include/types/types.h161#define HAS_FLOAT16 1COMMENT
LOWlibnd4j/include/types/types.h181#define HAS_FLOAT32COMMENT
LOWlibnd4j/include/types/types.h201// - uint8_t -> unsigned charCOMMENT
LOWlibnd4j/include/types/types.h221 // Only define if not already defined by type_boiler_plate_expansions.hCOMMENT
LOWlibnd4j/include/types/types.h241#elseCOMMENT
LOWlibnd4j/include/types/types.h261 #define HAS_HALF2 1COMMENT
LOWlibnd4j/include/types/types.h281#if SD_SINGLE_TYPE_7_COMPILEDCOMMENT
LOWlibnd4j/include/types/types.h301 #define TTYPE_INT32COMMENT
LOWlibnd4j/include/types/types.h321#if SD_SINGLE_TYPE_12_COMPILEDCOMMENT
LOWlibnd4j/include/types/types.h341#elseCOMMENT
LOWlibnd4j/include/types/types.h361 #define TTYPE_BFLOATCOMMENT
LOWlibnd4j/include/types/types.h381// UTF32 typeCOMMENT
LOWlibnd4j/include/types/types.h401#endifCOMMENT
LOWlibnd4j/include/types/types.h421 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
LOWlibnd4j/include/types/types.h441#elseCOMMENT
LOWlibnd4j/include/types/types.h461#define GET_ELEMENT_17(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, ...) _17COMMENT
LOWlibnd4j/include/types/types.h481#if defined(__LP64__)COMMENT
LOWlibnd4j/include/types/types.h501COMMENT
LOWlibnd4j/include/types/types.h521#endifCOMMENT
LOWlibnd4j/include/types/types.h541#define SD_NUMERIC_TYPES (FLOAT32, float)COMMENT
LOWlibnd4j/include/types/types.h561// Without this fallback, BUILD_SINGLE_SELECTOR in runtime methods would have no cases and crash.COMMENT
LOWlibnd4j/include/types/types.h581#endifCOMMENT
LOWlibnd4j/include/types/types.h601 #define ORIGINAL_HAS_INT8 1COMMENT
LOWlibnd4j/include/types/types.h621#ifdef HAS_UNSIGNEDLONGCOMMENT
LOWlibnd4j/include/types/types.h641#endifCOMMENT
LOWlibnd4j/include/types/types.h661#undef HAS_BFLOAT16COMMENT
LOWlibnd4j/include/types/types.h681#undef TTYPE_UTF8COMMENT
LOWlibnd4j/include/types/types.h701 #define HAS_FLOAT16 1COMMENT
LOWlibnd4j/include/types/types.h721 #define TTYPE_DOUBLE , (DOUBLE, double)COMMENT
LOWlibnd4j/include/types/types.h741 #define HAS_INT32 1COMMENT
LOWlibnd4j/include/types/types.h761#if SD_SINGLE_TYPE_12_COMPILEDCOMMENT
LOWlibnd4j/include/types/types.h781#endifCOMMENT
LOWlibnd4j/include/types/types.h801 #define HAS_UTF8 1COMMENT
LOWlibnd4j/include/types/types.h821// Define SD_STRING_TYPES after selective rendering has adjusted TTYPE_UTF* macrosCOMMENT
LOWlibnd4j/include/types/types.h841#define TTYPE_BFLOAT16_DOUBLE_BFLOAT16 , (bfloat16, double, bfloat16)COMMENT
LOWlibnd4j/include/types/types.h861#if defined(HAS_INT16)COMMENT
LOWlibnd4j/include/types/types.h881#endifCOMMENT
593 more matches not shown…
Decorative Section Separators35 hits · 108 pts
SeverityFileLineSnippetContext
MEDIUMlibnd4j/CMakeLists.txt3# ============================================================================COMMENT
MEDIUMlibnd4j/CMakeLists.txt5# ============================================================================COMMENT
MEDIUMlibnd4j/CMakeLists.txt30# ============================================================================COMMENT
MEDIUMlibnd4j/CMakeLists.txt32# ============================================================================COMMENT
MEDIUMlibnd4j/test_output.txt2877 # ===================================================================COMMENT
MEDIUMlibnd4j/test_output.txt2881 # ===================================================================COMMENT
MEDIUMlibnd4j/test_output.txt3029 # ===================================================================COMMENT
MEDIUM⚡libnd4j/buildnativeoperations.sh147# =============================================================================COMMENT
MEDIUM⚡libnd4j/buildnativeoperations.sh149# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh57# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh59# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh76# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh78# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh465# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh467# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh491# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh493# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh562# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh564# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh794# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh796# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh1687# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh1689# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh1731# =============================================================================COMMENT
MEDIUMlibnd4j/buildnativeoperations.sh1733# =============================================================================COMMENT
MEDIUMlibnd4j/include/legacy/NativeOps.h645// ═══════════════════════════════════════════════════════════════COMMENT
MEDIUMlibnd4j/include/legacy/NativeOps.h649// ═══════════════════════════════════════════════════════════════COMMENT
MEDIUM…ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp563// ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp567// ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp893// ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp897// ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp1459// ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…ude/legacy/impl/NativeOpsHelpers_LifecycleTracking.cpp1462// ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUM…j-api/src/main/java/org/nd4j/nativeblas/NativeOps.java656 // ═══════════════════════════════════════════════════════════════COMMENT
MEDIUM…j-api/src/main/java/org/nd4j/nativeblas/NativeOps.java660 // ═══════════════════════════════════════════════════════════════COMMENT
AI Slop Vocabulary22 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMlibnd4j/buildnativeoperations.sh254# Function to validate types list with comprehensive checkingCOMMENT
MEDIUMlibnd4j/include/array/DataTypeValidation.cpp20// Implementation of robust data type validation and error reportingCOMMENT
MEDIUMlibnd4j/include/array/DataTypeValidation.h20// Created for robust data type validation and error reportingCOMMENT
MEDIUMlibnd4j/include/helpers/unicode.h617 // A more robust check isn't possible without knowing the output buffer size here.COMMENT
MEDIUM⚡…va/org/deeplearning4j/ui/module/train/TrainModule.java663 continue; //TODO: more robust "weights only" approach...CODE
MEDIUM⚡…va/org/deeplearning4j/ui/module/train/TrainModule.java672 continue; //TODO: more robust "weights only" approach...CODE
MEDIUM⚡…va/org/deeplearning4j/ui/module/train/TrainModule.java681 continue; //TODO: more robust "weights only" approach...CODE
MEDIUM…eplearning4j/nn/layers/pooling/GlobalPoolingLayer.java155 //TODO optimize without leverageCOMMENT
MEDIUM…eplearning4j/nn/layers/pooling/GlobalPoolingLayer.java258 //TODO optimize without leverageCOMMENT
MEDIUM…rg/deeplearning4j/nn/layers/recurrent/LSTMHelpers.java308 toReturn.oa[time] = workspaceMgr.leverageTo(ArrayType.BP_WORKING_MEM, outputGateActivations); CODE
MEDIUM…rg/deeplearning4j/nn/layers/recurrent/LSTMHelpers.java343 currentMemoryCellState = workspaceMgr.leverageTo(ArrayType.FF_WORKING_MEM, currentMemoryCellState); //TOCODE
MEDIUM…rg/deeplearning4j/nn/layers/recurrent/LSTMHelpers.java543 nablaCellStateNext = workspaceMgr.leverageTo(ArrayType.BP_WORKING_MEM, nablaCellState); //TODO optimize CODE
MEDIUM…/deeplearning4j/nn/layers/recurrent/FwdPassReturn.java114 //Don't want to leverage previous activations if present - assume that has already happened (either passedCOMMENT
MEDIUM…org/deeplearning4j/nn/workspace/LayerWorkspaceMgr.java82 return array; //OK - leverage overrideCODE
MEDIUM…java/org/deeplearning4j/nn/graph/ComputationGraph.java1942 //Don't leverage out of async DataMultiSetIterator workspacesCOMMENT
MEDIUM…java/org/deeplearning4j/nn/graph/ComputationGraph.java2104 //Don't leverage out of async DataMultiSetIterator workspacesCOMMENT
MEDIUM…java/org/deeplearning4j/nn/graph/ComputationGraph.java2329 //Don't leverage out of async MultiDataSetIterator workspacesCOMMENT
MEDIUM…rg/deeplearning4j/nn/multilayer/MultiLayerNetwork.java1009 //Don't leverage out of async DataSetIterator workspacesCOMMENT
MEDIUM…rg/deeplearning4j/nn/multilayer/MultiLayerNetwork.java1110 //Don't leverage out of async DataSetIterator workspacesCOMMENT
MEDIUM…rg/deeplearning4j/nn/multilayer/MultiLayerNetwork.java1302 //Don't leverage out of async DataSetIterator workspacesCOMMENT
MEDIUM…rc/main/java/org/nd4j/linalg/api/ndarray/INDArray.java2681 * INDArray is returned unmodified (same as {@link #leverage()}COMMENT
MEDIUM…/nd4j/autodiff/samediff/internal/InferenceSession.java444 // Using opName() is more robust than instanceof for control flow opsCOMMENT
Structural Annotation Overuse17 hits · 27 pts
SeverityFileLineSnippetContext
LOWADRs/0036 - Namespace refactoring.md53# Step 1: Handle Specific Component Moves (More Specific Rules First) #COMMENT
LOWADRs/0036 - Namespace refactoring.md173# Step 2: Apply General Re-basing Rules (Less Specific Rules Last) #COMMENT
LOWADRs/0036 - Namespace refactoring.md195# Step 3: Exclusions / Manual Handling (Commented Out for Safety) #COMMENT
LOWADRs/0036 - Namespace refactoring.md214# Step 4: Potential Cleanup (Run Separately After Migration) #COMMENT
LOW…ng4j/integration/IntegrationTestBaselineGenerator.java117 //Step 0: collect metadata for the current machine, and write it (in case we need to debug anything related COMMENT
LOW…optimize/optimizations/CuDNNFunctionOptimizations.java72 //Step 1 - replace activationsCOMMENT
LOW…optimize/optimizations/CuDNNFunctionOptimizations.java90 //Step 2 - replace YXIO weights (default) with OYXI weightsCOMMENT
LOW…g/nd4j/autodiff/samediff/internal/AbstractSession.java256 // Step 0: validation - that variables exist, placeholders have arrays, etcCOMMENT
LOW…g/nd4j/autodiff/samediff/internal/AbstractSession.java304 // Step 1: determine subgraph structure we actually need to executeCOMMENT
LOW…g/nd4j/autodiff/samediff/internal/AbstractSession.java322 // Step 2: Check that we have required placeholdersCOMMENT
LOW…g/nd4j/autodiff/samediff/internal/AbstractSession.java379 // Step 3: Mark the (required) variables, constants and placeholders asCOMMENT
LOW…g/nd4j/autodiff/samediff/internal/AbstractSession.java416 // Step 4: execute in any order, but not switching to new frame/iteration untilCOMMENT
LOW…4j/autodiff/samediff/transform/GraphTransformUtil.java65 //Step 1: replace the old outputs with new outputsCOMMENT
LOW…4j/autodiff/samediff/transform/GraphTransformUtil.java131 //Step 2: Update input variables: if X -> (subgraph) exists, then X.inputsForOp needs to be updatedCOMMENT
LOW…4j/autodiff/samediff/transform/GraphTransformUtil.java152 //Step 3: Remove the old variables and old functionsCOMMENT
LOW⚡…g/nd4j/autodiff/samediff/serde/SameDiffSerializer.java2142 // Step 1: Call the main method to associate the arrayCOMMENT
LOW⚡…g/nd4j/autodiff/samediff/serde/SameDiffSerializer.java2146 // Step 2: Explicitly set in the correct ArrayHolderCOMMENT
Redundant / Tautological Comments18 hits · 24 pts
SeverityFileLineSnippetContext
LOWlibnd4j/flatc-generate.sh61 # Check if source and destination are the sameCOMMENT
LOWlibnd4j/flatc-generate.sh67 # Check if destination is a subdirectory of source to avoid infinite recursionCOMMENT
LOWlibnd4j/flatc-generate.sh113# Check if required .fbs files exist before proceedingCOMMENT
LOW⚡libnd4j/buildnativeoperations.sh156 # Check if stdout is a terminal and colors are supportedCOMMENT
LOWlibnd4j/buildnativeoperations.sh1540 # Set CMAKE_ONLY to exit after CMake completes (and run validation then)COMMENT
LOWlibnd4j/buildnativeoperations.sh1819 # Check if build directory and objects existCOMMENT
LOWlibnd4j/buildnativeoperations.sh1828 # Check if object files existCOMMENT
LOWlibnd4j/buildnativeoperations.sh1892 # Check if we're in the parent deeplearning4j directoryCOMMENT
LOWlibnd4j/copy-flatc-java.sh35 # Check if we're in the parent deeplearning4j directoryCOMMENT
LOWlibnd4j/copy-flatc-java.sh62# Check if source directory exists and has contentCOMMENT
LOWlibnd4j/copy-flatc-java.sh94# Check if any Java files exist in source directoryCOMMENT
LOW.github/workflows/build-deploy-linux-cuda-12.3.yml214 # Check if nvcc exists in alternative locationCOMMENT
LOW.github/workflows/build-deploy-linux-x86_64.yml146 # Check if swap is already enabledCOMMENT
LOW.github/workflows/build-deploy-linux-cuda-12.6.yml136 # Check if swap is already enabledCOMMENT
LOW.github/workflows/build-deploy-android-x86_64.yml118 # Check if swap is already enabledCOMMENT
LOW.github/workflows/build-deploy-windows-cuda-12.6.yml455 # Check if CUDA was installed in a different locationCOMMENT
LOW.github/workflows/build-deploy-linux-arm64.yml159 # Set ARMCOMPUTE_ROOT to the explicit path of the extracted contentsCOMMENT
LOWplatform-tests/run-benchmarks.sh47 # Check if "--suppressions" already exists in TEST_RUNNER_PREFIXCOMMENT
Verbosity Indicators12 hits · 20 pts
SeverityFileLineSnippetContext
LOW…ng4j/integration/IntegrationTestBaselineGenerator.java117 //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.java82 //Because ops might disappear from previous optimization steps, we need to check if the previousCOMMENT
LOW…g/nd4j/autodiff/samediff/internal/AbstractSession.java256 // Step 0: validation - that variables exist, placeholders have arrays, etcCOMMENT
LOW…g/nd4j/autodiff/samediff/internal/AbstractSession.java304 // Step 1: determine subgraph structure we actually need to executeCOMMENT
LOW…g/nd4j/autodiff/samediff/internal/AbstractSession.java322 // Step 2: Check that we have required placeholdersCOMMENT
LOW…g/nd4j/autodiff/samediff/internal/AbstractSession.java379 // Step 3: Mark the (required) variables, constants and placeholders asCOMMENT
LOW…g/nd4j/autodiff/samediff/internal/AbstractSession.java416 // Step 4: execute in any order, but not switching to new frame/iteration untilCOMMENT
LOW…4j/autodiff/samediff/transform/GraphTransformUtil.java65 //Step 1: replace the old outputs with new outputsCOMMENT
LOW…4j/autodiff/samediff/transform/GraphTransformUtil.java131 //Step 2: Update input variables: if X -> (subgraph) exists, then X.inputsForOp needs to be updatedCOMMENT
LOW…4j/autodiff/samediff/transform/GraphTransformUtil.java152 //Step 3: Remove the old variables and old functionsCOMMENT
LOW⚡…g/nd4j/autodiff/samediff/serde/SameDiffSerializer.java2142 // Step 1: Call the main method to associate the arrayCOMMENT
LOW⚡…g/nd4j/autodiff/samediff/serde/SameDiffSerializer.java2146 // Step 2: Explicitly set in the correct ArrayHolderCOMMENT
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMlibnd4j/buildnativeoperations.sh1617 # Create a simple report even if no data was collectedCOMMENT
MEDIUM.github/workflows/build-deploy-android-x86_64.yml207 # Define the specific OpenBLAS JAR for android-x86_64COMMENT
MEDIUM.github/workflows/build-deploy-windows.yml119 # Create a new pagefile with a static size of 12 GB (12288 MB).COMMENT
MEDIUM.github/workflows/build-deploy-windows-cuda-12.6.yml251 # Create a temporary directory for CUDA installer logs and temp filesCOMMENT
MEDIUMplatform-tests/run-benchmarks.sh23 # Create a file to store the suppression informationCOMMENT
Unused Imports14 hits · 14 pts
SeverityFileLineSnippetContext
LOWcontrib/omnihub/omnihub_bootstrap.py1CODE
LOWcontrib/omnihub/src/omnihub/frameworks/keras.py4CODE
LOWcontrib/omnihub/src/omnihub/frameworks/huggingface.py9CODE
LOWcodegen/onnx-def-gen/convert_model_upgrade.py2CODE
LOWcodegen/onnx-def-gen/test_op_def_gen.py19CODE
LOWcodegen/onnx-def-gen/test_op_def_gen.py19CODE
LOWcodegen/onnx-def-gen/test_op_def_gen.py20CODE
LOWcodegen/onnx-def-gen/test_op_def_gen.py21CODE
LOWcodegen/onnx-def-gen/test_op_def_gen.py22CODE
LOWcodegen/onnx-def-gen/test_op_def_gen.py24CODE
LOWcodegen/onnx-def-gen/test_op_def_gen.py25CODE
LOW…n/resources/org/nd4j/python4j/pythonexec/pythonexec.py21CODE
LOW…n/resources/org/nd4j/python4j/pythonexec/pythonexec.py22CODE
LOW…ow/src/main/resources/cast_graph/ai/konduit/casting.py23CODE
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOW…gen/src/main/java/org/nd4j/descriptor/ParseOpFile.java197 .setName("placeholder")CODE
LOW…workimport/keras/preprocessing/text/TokenizerTest.java80 String[] itemsArray = new String[] { "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod teCODE
LOW…workimport/keras/preprocessing/text/TokenizerTest.java80 String[] itemsArray = new String[] { "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod teCODE
LOW…kimport/frameworkimport/tensorflow/TestTensorflowIR.kt462 val controlFlowOps = setOf("Switch","While","placeholder","next_iteration","enter","exit","loop_cond")CODE
LOW…eeplearning4jUiAssets/js/samediff/flatbuffers-utils.js118 return "placeholder";CODE
LOW…ort/tensorflow/definitions/TensorflowOpDeclarations.kt1667val placeHolder = mapTensorNamesWithOp(inputFrameworkOpName = "Placeholder",opName = "placeholder",CODE
LOW…ort/tensorflow/definitions/TensorflowOpDeclarations.kt1672val placeHolderWithDefault = mapTensorNamesWithOp(inputFrameworkOpName = "PlaceholderWithDefault",opName = "placeholder"CODE
LOW…otlin/org/nd4j/samediff/frameworkimport/ImportGraph.kt399 VariableOriginTracer.traceVariableResolution(nodeName, "placeholder", sd.getVariable(nodeName), nullCODE
Hyper-Verbose Identifiers7 hits · 7 pts
SeverityFileLineSnippetContext
LOWcodegen/onnx-def-gen/convert_model_upgrade.py6def add_value_info_for_constants(model : onnx.ModelProto):CODE
LOWcodegen/onnx-def-gen/convert_model_upgrade.py18 def add_const_value_infos_to_graph(graph : onnx.GraphProto):CODE
LOWcodegen/onnx-def-gen/onnx_def_gen.py42def convert_attr_type_to_enum(attr_value):CODE
LOW…/resources/deeplearning4jUiAssets/js/train/overview.js218function renderModelPerformanceTable(data) {CODE
LOW…ain/resources/deeplearning4jUiAssets/js/train/model.js496function renderParametersHistogram(data) {CODE
LOW…ain/resources/deeplearning4jUiAssets/js/train/train.js44function doUpdateSessionWorkerSelect() {CODE
LOW…ain/resources/deeplearning4jUiAssets/js/train/train.js156function updateSessionWorkerSelect(){CODE
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWlibnd4j/include/execution/impl/ThreadPool.cpp106 // TODO: implement this one properlyCOMMENT
LOWlibnd4j/include/helpers/mman.h90 // TODO: implementCOMMENT
LOW…sequencevectors/graph/walkers/impl/WeightedWalker.java93 // TODO: implement paddingCOMMENT
LOW…common/src/main/java/org/nd4j/common/util/NioUtil.java53 // TODO: implement shape copy for cases where stride == 1COMMENT
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWcontrib/omnihub/src/omnihub/frameworks/keras.py42CODE
LOWcodegen/onnx-def-gen/convert_model_upgrade.py6CODE
LOWcodegen/onnx-def-gen/convert_model_upgrade.py18CODE
LOWcodegen/onnx-def-gen/onnx_def_gen.py42CODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…gen/src/test/kotlin/org/nd4j/codegen/dsl/ConfigTest.kt57 // Just for demonstration purposesCOMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcodegen/onnx-def-gen/save_test.py25CODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…n/resources/org/nd4j/python4j/pythonexec/pythonexec.py29except Exception as ex:CODE