Repository Analysis

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 Low AI signal View on GitHub

Analysis Overview

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

12.6
Adjusted Score
12.6
Raw Score
100%
Time Factor
2026-07-29
Last Push
14.2K
Stars
Java
Language
1.3M
Lines of Code
6.3K
Files
3.0K
Pattern Hits
2026-08-02
Scan Date
0.34
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 2153HIGH 0MEDIUM 63LOW 739

Directory Score Breakdown

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.

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

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
MEDIUMlibnd4j/buildnativeoperations.sh147# =============================================================================COMMENT
MEDIUMlibnd4j/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
LOWlibnd4j/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