← Back to scan
File as GitHub Issue repo: tinygrad/tinygrad

Push this scan report to tinygrad/tinygrad

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Missing import: `queue` used but not imported

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED107 [MINED107] Missing import: `signal` used but not imported: The file uses `signal.somethin… tinygrad/runtime/ops_qcom.py:96
CRIT MINED107 [MINED107] Missing import: `signal` used but not imported: The file uses `signal.somethin… tinygrad/runtime/ops_nv.py:98
CRIT MINED107 [MINED107] Missing import: `signal` used but not imported: The file uses `signal.somethin… tinygrad/runtime/ops_cpu.py:64
CRIT MINED107 [MINED107] Missing import: `signal` used but not imported: The file uses `signal.somethin… tinygrad/runtime/ops_amd.py:490
CRIT MINED107 [MINED107] Missing import: `queue` used but not imported: The file uses `queue.something(… tinygrad/runtime/ops_amd.py:803
CRIT MINED107 [MINED107] Missing import: `ast` used but not imported: The file uses `ast.something(...)… tinygrad/engine/realize.py:20
CRIT MINED107 [MINED107] Missing import: `queue` used but not imported: The file uses `queue.something(… extra/hcq2/graph/hcq.py:56
CRIT MINED107 [MINED107] Missing import: `array` used but not imported: The file uses `array.something(… extra/models/mask_rcnn.py:47
CRIT MINED107 [MINED107] Missing import: `ast` used but not imported: The file uses `ast.something(...)… extra/hcq2/hcq2.py:277
CRIT MINED107 [MINED107] Missing import: `stat` used but not imported: The file uses `stat.something(..… extra/dsp/run_3.py:223
CRIT MINED107 [MINED107] Missing import: `struct` used but not imported: The file uses `struct.somethin… test/mockgpu/nv/nvdriver.py:89
CRIT MINED107 [MINED107] Missing import: `struct` used but not imported: The file uses `struct.somethin… test/mockgpu/amd/amddriver.py:34
CRIT MINED107 [MINED107] Missing import: `struct` used but not imported: The file uses `struct.somethin… test/mockgpu/amd/amdgpu.py:285
CRIT MINED107 [MINED107] Missing import: `gc` used but not imported: The file uses `gc.something(...)` … test/mockgpu/am/amgpu.py:295
HIGH MINED106 [MINED106] Phantom test coverage: test_gflops: Test function `test_gflops` runs code but … extra/archprobe.py:135
HIGH MINED106 [MINED106] Phantom test coverage: test_read_bandwidth: Test function `test_read_bandwidth… extra/archprobe.py:107
HIGH MINED106 [MINED106] Phantom test coverage: test_cacheline_size: Test function `test_cacheline_size… extra/archprobe.py:88
HIGH MINED106 [MINED106] Phantom test coverage: test_memory_latency: Test function `test_memory_latency… extra/archprobe.py:82
HIGH MINED106 [MINED106] Phantom test coverage: test_reg_count: Test function `test_reg_count` runs cod… extra/archprobe.py:57
HIGH MINED106 [MINED106] Phantom test coverage: test_warp_size: Test function `test_warp_size` runs cod… extra/archprobe.py:33
HIGH MINED108 [MINED108] `self._buffer` used but never assigned in __init__: Method `_data` of class `T… tinygrad/tensor.py:294
HIGH MINED108 [MINED108] `self.dtype` used but never assigned in __init__: Method `_buffer` of class `T… tinygrad/tensor.py:291
HIGH MINED108 [MINED108] `self.cast` used but never assigned in __init__: Method `_buffer` of class `Te… tinygrad/tensor.py:291
HIGH MINED108 [MINED108] `self.device` used but never assigned in __init__: Method `_buffer` of class `… tinygrad/tensor.py:292
HIGH MINED108 [MINED108] `self._buffer` used but never assigned in __init__: Method `assign` of class `… tinygrad/tensor.py:271
HIGH MINED108 [MINED108] `self.device` used but never assigned in __init__: Method `assign` of class `T… tinygrad/tensor.py:264
HIGH MINED108 [MINED108] `self.device` used but never assigned in __init__: Method `assign` of class `T… tinygrad/tensor.py:258
HIGH MINED108 [MINED108] `self.dtype` used but never assigned in __init__: Method `assign` of class `Te… tinygrad/tensor.py:258
HIGH MINED108 [MINED108] `self.device` used but never assigned in __init__: Method `assign` of class `T… tinygrad/tensor.py:266
HIGH MINED108 [MINED108] `self.dtype` used but never assigned in __init__: Method `assign` of class `Te… tinygrad/tensor.py:265
HIGH MINED108 [MINED108] `self.device` used but never assigned in __init__: Method `assign` of class `T… tinygrad/tensor.py:263
HIGH MINED108 [MINED108] `self.device` used but never assigned in __init__: Method `assign` of class `T… tinygrad/tensor.py:257
HIGH MINED108 [MINED108] `self.shape` used but never assigned in __init__: Method `assign` of class `Te… tinygrad/tensor.py:262
HIGH MINED108 [MINED108] `self.shape` used but never assigned in __init__: Method `assign` of class `Te… tinygrad/tensor.py:261
HIGH MINED108 [MINED108] `self.shape` used but never assigned in __init__: Method `replace` of class `T… tinygrad/tensor.py:252
HIGH MINED108 [MINED108] `self.linear_with_vars` used but never assigned in __init__: Method `schedule_… tinygrad/tensor.py:236
HIGH MINED108 [MINED108] `self.device` used but never assigned in __init__: Method `as_param` of class … tinygrad/tensor.py:208
HIGH MINED108 [MINED108] `self.shape` used but never assigned in __init__: Method `as_param` of class `… tinygrad/tensor.py:208
HIGH MINED108 [MINED108] `self.dtype` used but never assigned in __init__: Method `as_param` of class `… tinygrad/tensor.py:208
HIGH MINED108 [MINED108] `self.device` used but never assigned in __init__: Method `as_param` of class … tinygrad/tensor.py:206
HIGH MINED108 [MINED108] `self.dtype` used but never assigned in __init__: Method `as_param` of class `… tinygrad/tensor.py:206
HIGH MINED108 [MINED108] `self.shape` used but never assigned in __init__: Method `__len__` of class `T… tinygrad/tensor.py:191
HIGH MINED108 [MINED108] `self.shape` used but never assigned in __init__: Method `__len__` of class `T… tinygrad/tensor.py:190
HIGH MINED108 [MINED108] `self.device` used but never assigned in __init__: Method `__repr__` of class … tinygrad/tensor.py:182
HIGH MINED108 [MINED108] `self._apply_uop` used but never assigned in __init__: Method `alu` of class `… tinygrad/tensor.py:159
HIGH SEC113 [SEC113] SSH host-key verification disabled (MITM): Accepting any SSH host key on first c… extra/mlx_driver/connect.py:9
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… extra/usbgpu/debug.py:30
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… extra/models/retinanet.py:62
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… extra/hevc/decode.py:48
HIGH MINED006 [MINED006] Overcatch Baseexception: except BaseException: ... — prevents Ctrl+C and Syste… extra/hcqfuzz/fuzzer.py:28
HIGH MINED036 [MINED036] Python Os System Call: os.system() invokes shell with no escaping. extra/usbgpu/patch.py:44
HIGH MINED036 [MINED036] Python Os System Call: os.system() invokes shell with no escaping. extra/sqtt/install_rocprof_decoder.py:21
HIGH MINED036 [MINED036] Python Os System Call: os.system() invokes shell with no escaping. extra/hcq/hcq_smi.py:15
HIGH SEC114 [SEC114] path.join / Path() on user-controlled segment without containment check: filepat… extra/gemm/max_matmul.py:86
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). extra/usbgpu/patch.py:16
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). extra/hevc/decode.py:53
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). extra/datasets/wikipedia_download.py:30
HIGH SEC080 [SEC080] Python: tarfile.extractall without filter: tarfile.extract*() without filter='da… extra/datasets/wikipedia_download.py:17
HIGH SEC080 [SEC080] Python: tarfile.extractall without filter: tarfile.extract*() without filter='da… extra/datasets/imagenet_download.py:10
HIGH SEC078 [SEC078] Python: requests without timeout: requests.get/post without a timeout will hang … extra/huggingface_onnx/huggingface_mana…:96
HIGH SEC078 [SEC078] Python: requests without timeout: requests.get/post without a timeout will hang … examples/webgpu/stable_diffusion/compil…:75
HIGH MINED027 [MINED027] React State Array Mutation: state.X.push/splice/sort followed by setState — Re… examples/tinychat/index.js:44
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … examples/tinychat/tinychat-browser/comp…:55
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … examples/sdv2.py:150
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … examples/llm.c/export.py:57
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… extra/thunder/tiny/visualize_tile.py:123
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… examples/qwq.py:114
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… examples/gpt2.py:254
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… tinygrad/uop/upat.py:167
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… tinygrad/runtime/ops_cpu.py:59
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… examples/anthropic_challenge.py:147
HIGH COMP001 [COMP001] High cognitive complexity: Function `render` has cognitive complexity 32 (Sonar… examples/anthropic_challenge.py:89
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:736
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:706
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:672
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:635
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:589
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:560
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:526
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:507
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:484
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:461
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:428
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:410
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:381
HIGH MINED115 [MINED115] Action `actions/upload-artifact` pinned to mutable ref `@v7`: `uses: actions/u… .github/workflows/test.yml:370
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:356
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:336
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:315
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:299
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:257
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:226
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:195
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:136
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:114
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:78
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v6`: `uses: actions/checkout… .github/workflows/test.yml:30
HIGH MINED118 [MINED118] Dockerfile FROM `ubuntu:22.04` not pinned by digest: `FROM ubuntu:22.04` resol… extra/dsp/Dockerfile:2
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… examples/llm.c/train_gpt2.py:149
HIGH MINED112 [MINED112] FastAPI POST /v1/chat/completions has no auth: Handler `chat_completions` is r… examples/llama3.py:408
HIGH MINED112 [MINED112] FastAPI POST /v1/chat/token/encode has no auth: Handler `chat_token_encode` is… examples/llama3.py:397
HIGH MINED112 [MINED112] FastAPI POST /v1/completions has no auth: Handler `completions` is registered … examples/llama3.py:369
HIGH MINED112 [MINED112] FastAPI POST /v1/token/encode has no auth: Handler `token_encode` is registere… examples/llama3.py:364
HIGH MINED112 [MINED112] FastAPI POST /v1/internal/token-count has no auth: Handler `token_count` is re… examples/llama3.py:360
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… extra/thneed.py:58
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… extra/gemm/max_matmul.py:86
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… examples/webgpu/stable_diffusion/compil…:15
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… tinygrad/runtime/support/c.py:115
MED MINED109 [MINED109] Mutable default argument in `findlib` (list): `def findlib(... = []/{}/set())`… tinygrad/runtime/support/c.py:93
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… tinygrad/runtime/support/compiler_cuda.…:61
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… tinygrad/runtime/ops_qcom.py:230
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… tinygrad/runtime/ops_cl.py:41
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… extra/models/convnext.py:20
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… extra/models/retinanet.py:201
MED MINED109 [MINED109] Mutable default argument in `avg_pool` (list): `def avg_pool(... = []/{}/set()… extra/torch_backend/backend.py:316
MED MINED109 [MINED109] Mutable default argument in `step_tf` (dict): `def step_tf(... = []/{}/set())`… test/external/external_test_optim.py:63
MED MINED109 [MINED109] Mutable default argument in `step` (dict): `def step(... = []/{}/set())` — Pyt… test/external/external_test_optim.py:48
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… test/helpers.py:107
MED MINED109 [MINED109] Mutable default argument in `get_example_inputs` (dict): `def get_example_inpu… extra/onnx_helpers.py:9
MED MINED109 [MINED109] Mutable default argument in `__init__` (dict): `def __init__(... = []/{}/set()… extra/thneed.py:19
MED MINED109 [MINED109] Mutable default argument in `__init__` (list): `def __init__(... = []/{}/set()… extra/thneed.py:19
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… extra/weekly_commits_table.py:15
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… extra/weekly_commits_table.py:25
MED MINED109 [MINED109] Mutable default argument in `export_model_webgpu` (dict): `def export_model_we… extra/export_model.py:115
MED MINED109 [MINED109] Mutable default argument in `export_model_clang` (dict): `def export_model_cla… extra/export_model.py:61
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… examples/yolov3.py:244
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… examples/yolov3.py:292
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… examples/yolov3.py:218
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… examples/yolov3.py:125
MED MINED109 [MINED109] Mutable default argument in `__call__` (list): `def __call__(... = []/{}/set()… examples/sdxl.py:81
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… examples/vgg7.py:160
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… examples/vgg7.py:138
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… examples/vgg7.py:19
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tinygrad/helpers.py:146
MED MINED109 [MINED109] Mutable default argument in `fetch` (dict): `def fetch(... = []/{}/set())` — P… tinygrad/helpers.py:450
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tinygrad/device.py:370
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tinygrad/device.py:363
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tinygrad/device.py:373
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… extra/thunder/tiny/visualize_tile.py:123
MED SEC011 [SEC011] Unsafe PyTorch Model Loading: torch.load() uses pickle internally and can execut… extra/models/unet3d.py:51
MED SEC011 [SEC011] Unsafe PyTorch Model Loading: torch.load() uses pickle internally and can execut… extra/models/rnnt.py:68
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… tinygrad/mixin/reduce.py:11
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… extra/hcqfuzz/spec.py:4
MED SEC012 [SEC012] ZipSlip — Archive Path Traversal: Archive extraction without path validation all… extra/datasets/wikipedia_download.py:17
MED SEC123 [SEC123] Production stack trace / debug output exposed: Debug mode left on in production … examples/yolov8-onnx.py:13
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. extra/datasets/__init__.py:39
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. examples/openpilot/load_pickle.py:10
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. examples/openpilot/compile3.py:139
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … tinygrad/uop/upat.py:167
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … tinygrad/runtime/ops_cpu.py:59
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … examples/anthropic_challenge.py:185
MED COMP001 [COMP001] High cognitive complexity: Function `generate` has cognitive complexity 17 (Son… examples/gpt2.py:184
MED DKR007 Docker build context has no .dockerignore .dockerignore
MED DKR001 Docker final stage has no non-root USER extra/dsp/Dockerfile:2
MED AGT015 Remote install command pipes network code directly to a shell docs/tinygpu.md:22
MED SEC005 [SEC005] Command Injection Risk: Unsafe shell execution or eval of user input. extra/usbgpu/patch.py:44
MED SEC005 [SEC005] Command Injection Risk: Unsafe shell execution or eval of user input. extra/sqtt/install_rocprof_decoder.py:21
MED SEC005 [SEC005] Command Injection Risk: Unsafe shell execution or eval of user input. extra/hcq/hcq_smi.py:15
MED CORE_LARGE_FILES Average file size is 560 lines (recommend <300)
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… examples/vgg7.py:93
LOW COMP001 [COMP001] High cognitive complexity: Function `forward` has cognitive complexity 11 (Sona… examples/gpt2.py:80
LOW AIC003 Duplicated implementation block across source files tinygrad/runtime/ops_amd.py:76
LOW AIC003 Duplicated implementation block across source files test/external/mlperf_bert/preprocessing…:168
LOW AIC003 Duplicated implementation block across source files test/external/external_metal_compile_fa…:11
LOW AIC003 Duplicated implementation block across source files extra/torch_hook/hook_cuda.py:20
LOW AIC003 Duplicated implementation block across source files extra/thunder/amd/gemm_bf16_atb.cpp:1
LOW AIC003 Duplicated implementation block across source files extra/nv_gpu_driver/clcec0qmd.h:2
LOW AIC003 Duplicated implementation block across source files extra/gemm/amd_seb/kernel5_lds_optim.cpp:51
LOW AIC003 Duplicated implementation block across source files extra/gemm/amd_seb/kernel5_lds_optim.cpp:12
LOW AIC003 Duplicated implementation block across source files extra/gemm/amd_seb/kernel4_gmem_df.cpp:12
LOW AIC003 Duplicated implementation block across source files extra/dsp/run_3.py:32
LOW AIC003 Duplicated implementation block across source files extra/dsp/run_3.py:5
LOW AIC003 Duplicated implementation block across source files extra/dsp/run.py:40
LOW AIC003 Duplicated implementation block across source files extra/amdpci/headers/discovery.h:236
LOW DKR010 Dockerfile leaves apt package indexes in the image layer extra/dsp/Dockerfile:5
LOW DKR011 Dockerfile installs recommended OS packages extra/dsp/Dockerfile:25
LOW DKR011 Dockerfile installs recommended OS packages extra/dsp/Dockerfile:5
INFO MINED079 [MINED079] Off By One Slice: range(len(x)+1), arr[i+1:i+n+1], or while i<=len(arr) — off-… tinygrad/runtime/ops_null.py:38
INFO MINED079 [MINED079] Off By One Slice: range(len(x)+1), arr[i+1:i+n+1], or while i<=len(arr) — off-… tinygrad/runtime/graph/metal.py:102
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… extra/usbgpu/tbgpu/installer/TinyGPUDri…:20
INFO MINED042 [MINED042] Cpp New Without Delete: C++ raw new without RAII / unique_ptr — memory leak ri… extra/torch_backend/wrapped_tensor.cpp:110
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … extra/thunder/amd/include/ops/warp/regi…:33
INFO MINED057 [MINED057] Todo Bomb: Code path with a TODO/FIXME/HACK comment that gates correctness — l… extra/huggingface_onnx/huggingface_mana…:32
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… tinygrad/nn/datasets.py:5
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… extra/datasets/__init__.py:8
INFO MINED069 [MINED069] Debug True Prod: Django/Flask DEBUG=True or app.debug=True in non-test files. examples/yolov8-onnx.py:13
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… extra/huggingface_onnx/huggingface_mana…:96
INFO MINED067 [MINED067] Python Requests No Timeout: requests.get/post/etc. without timeout= can hang f… examples/webgpu/stable_diffusion/compil…:75
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. extra/hcqfuzz/tools.py:74
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. extra/dsp/snpe_logs/parse.py:1
INFO MINED077 [MINED077] Python Open No Context: fp = open(path) outside with-block leaks file handles. examples/vgg7.py:15
INFO MINED055 [MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versi… examples/tinychat/tinychat-browser/make…:4
INFO MINED055 [MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versi… examples/mlperf/training_submission_v5.…:23
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. extra/datasets/squad.py:147
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/olmoe.py:86
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/llm.c/train_gpt2.py:149
INFO MINED064 [MINED064] Python Input Call: input() blocks for stdin. Inappropriate in services. examples/compile_tensorflow.py:17
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… examples/qwq.py:115
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… examples/gpt2.py:255
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… examples/anthropic_challenge.py:139
Reset to top 5 200 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `tinygrad/tinygrad`

**Score: 70/100 (B)**  ·  255 findings  ·  scanned 2026-06-04 21:59 UTC  ·  474,550 LOC

| Severity | Count |
|---|---|
| CRITICAL | 28 |
| HIGH | 93 |
| MEDIUM | 52 |
| LOW | 18 |

📊 [Full filterable report](https://repobility.com/scan/7d580067-aa8f-412a-bfac-13e7cd18ddf3/)  ·  ![scorecard](https://repobility.com/scan/7d580067-aa8f-412a-bfac-13e7cd18ddf3/report.png?v=1780610356-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `signal` used but not imported
   `tinygrad/runtime/ops_qcom.py:96` · ✓ Repobility
2. **CRITICAL** `MINED107` — Missing import: `signal` used but not imported
   `tinygrad/runtime/ops_nv.py:98` · ✓ Repobility
3. **CRITICAL** `MINED107` — Missing import: `signal` used but not imported
   `tinygrad/runtime/ops_cpu.py:64` · ✓ Repobility
4. **CRITICAL** `MINED107` — Missing import: `signal` used but not imported
   `tinygrad/runtime/ops_amd.py:490` · ✓ Repobility
5. **CRITICAL** `MINED107` — Missing import: `queue` used but not imported
   `tinygrad/runtime/ops_amd.py:803` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/7d580067-aa8f-412a-bfac-13e7cd18ddf3/_
Megaproject â high spam risk
Could not determine 'tinygrad/tinygrad' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
126/269 findings (47%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.