depsdev-bloom / README.md
david-ar's picture
Upload README.md with huggingface_hub
1ec35b5 verified
|
Raw
History Blame Contribute Delete
1.48 kB
metadata
license: cc-by-4.0
pretty_name: deps.dev package-file bloom filters (sha1 + sha256)
tags:
  - bloom-filter
  - file-hashes

deps.dev package-file bloom filters

Membership filters over per-file hashes from Google's deps.dev public BigQuery dataset (bigquery-public-data.deps_dev_v1) — files inside npm, PyPI, Maven, Go, NuGet, and Cargo package archives. deps.dev data is CC-BY-4.0 (attribution: Google / deps.dev).

  • 172,425,526 keys each: sha1 (UPPERCASE hex) and sha256 (lowercase hex), p = 1e-4, 394 MiB each
  • Extracted from the 2026-07-20 snapshot partition via BigQuery free-tier sandbox queries ($0)
  • Package-registry coverage evolves; this is a point-in-time extract

Rebuild

EXTRACT.md in this repo documents the exact BigQuery queries and the free-tier setup (billing-free sandbox project, tabledata.list download); bq_download.py pulls the result tables, then ./dcso_bloom_build.py depsdev.sha1.bloom sha1 *.sha1.hex (and likewise sha256).

Format

DCSO bloom filter format (github.com/DCSO/bloom), the same format CIRCL publishes hashlookup in: 48-byte little-endian u64 header (version, n, p, k, m, N) followed by the bit array. Keys are hex digest strings — UPPERCASE for sha1, lowercase for sha256 (the hashlookup convention). Any DCSO-compatible reader works.

Membership answers are probabilistic: p = 1e-4 false-positive rate, no false negatives. Confirm anything important against the source.