Skip to content

fix(diff-filter): add remaining binary extensions (bytecode, compression, ML, data) (#160) - #161

Open
aagear wants to merge 1 commit into
Ghbounty:mainfrom
aagear:fix/diff-filter-binary-ext-2
Open

aagear wants to merge 1 commit into
Ghbounty:mainfrom
aagear:fix/diff-filter-binary-ext-2

Conversation

@aagear

@aagear aagear commented Aug 13, 2026

Copy link
Copy Markdown

Summary

Adds 15 missing binary extensions to packages/diff-filter's BINARY_EXTENSIONS set, complementing #156 (which covers image/design/mobile/3D + safetensors/onnx/pkl) without overlap.

Fixes #160

Changes

Bytecode and compiled (4)

Extension Description
pyc Python bytecode
beam Erlang/Elixir BEAM bytecode
dex Android Dalvik executable
aar Android Archive

Compression (2)

Extension Description
zst Zstandard compressed file
lz4 LZ4 compressed file

ML models not in #156 (5)

Extension Description
pt PyTorch model checkpoint
pth PyTorch model (alt extension)
gguf GGUF model format (llama.cpp)
tflite TensorFlow Lite model
mlmodel Apple Core ML model

Scientific data (4)

Extension Description
h5 HDF5 / Keras model
npy NumPy array
npz NumPy compressed archive
pcap Packet capture

Tests

Added 15 new test cases to the existing classifyPath binaries parameterized test, covering all new extensions. Each verifies { ignore: true, reason: "binary" }.

…ion, ML, data) (Ghbounty#160)

Add 15 BINARY_EXTENSIONS: pyc, beam, dex, aar (bytecode/mobile),
zst, lz4 (compression), pt, pth, gguf, tflite, mlmodel (ML models),
h5, npy, npz (scientific data), pcap (packet capture)

Fixes Ghbounty#160
@aagear
aagear requested a review from tomazzi14 as a code owner August 13, 2026 09:16
@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

@aagear is attempting to deploy a commit to the weareghbounty-6269's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diff-filter: add remaining binary extensions (bytecode, compression, ML models, NumPy/HDF5 data)

1 participant