assessments dict | confidence_details dict | confidence_score float64 | contract dict | mining_run_id large_string | original_file_content large_string | original_source large_string | payload_family large_string | proprietary_justification large_string | proprietary_score int64 | provenance dict | repository_assessment null | schema_version int64 | seed_id large_string | status large_string | structural_skeleton dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{
"api_key_or_token_or_secret": false,
"deterministic_pure": true,
"distinct_memorizable": false,
"domain_specific_logic": false,
"file_path": false,
"logic_uniqueness": 2.02,
"monetary_amount": false,
"nontrivial_behaviour": true,
"numeric_identifier": false,
"organization_name": false,
"real_wor... | {
"api_key_or_token_or_secret": {
"choice": "false",
"confidence": 0.9939,
"noul": 0.0061,
"probabilities": {
"false": 0.9939,
"true": 0.0061
},
"type": "noul"
},
"deterministic_pure": {
"choice": "true",
"confidence": 0.8388,
"noul": 0.8388,
"probabilities": {
... | 0.7103 | {
"docstring": null,
"intent": null,
"signature": "def from_blob(cls, blob: bytes) -> \"FileAnalysis\":"
} | 818ea64439ab444dae87f9190f3b139d | """File-level analysis, shared by every directory and rule in a scan.
Why per file
------------
The engine asks about directories, but the expensive work -- reading a file,
tokenising it, extracting functions, winnowing -- is per file, and the same file
is asked about many times over:
* candidates nest. ESP-IDF has `... | @classmethod
def from_blob(cls, blob: bytes) -> "FileAnalysis":
values = array("Q")
values.frombytes(blob)
if sys.byteorder != "little":
values.byteswap()
nf, na, nb, total = values[:4]
if len(values) != 4 + nf + na + nb:
raise ValueError("truncate... | Protocol & Bitwise Parsing | Decider selected proprietary depth 4 with 0.267 probability. | 4 | {
"commit_hash": "4252494d25dddc7363e0a1829b59aa9fd0fa82ec",
"file_path": "src/gangmu/analysis.py",
"github_url": "https://github.com/GANGMU-SBOM/gangmu/blob/4252494d25dddc7363e0a1829b59aa9fd0fa82ec/src/gangmu/analysis.py",
"license_file_path": "LICENSE",
"license_file_url": "https://github.com/GANGMU-SBOM/ga... | null | 8 | 979f35d3bd39e9a208b678b5c87b91cfa4a13069f640cd905f323a7770b4e229 | unverified | {
"control_flow": [
{
"depth": 0,
"kind": "if"
},
{
"depth": 0,
"kind": "if"
}
],
"kind": "function"
} |
{
"api_key_or_token_or_secret": false,
"deterministic_pure": true,
"distinct_memorizable": false,
"domain_specific_logic": false,
"file_path": false,
"logic_uniqueness": 2.13,
"monetary_amount": false,
"nontrivial_behaviour": true,
"numeric_identifier": false,
"organization_name": false,
"real_wor... | {
"api_key_or_token_or_secret": {
"choice": "false",
"confidence": 0.9989,
"noul": 0.0011,
"probabilities": {
"false": 0.9989,
"true": 0.0011
},
"type": "noul"
},
"deterministic_pure": {
"choice": "true",
"confidence": 0.8893,
"noul": 0.8893,
"probabilities": {
... | 0.8095 | {
"docstring": "What the rule's author tested, so a reader sees how far the claim was checked.",
"intent": null,
"signature": "def _calibration_note(prints) -> str:"
} | 818ea64439ab444dae87f9190f3b139d | """Prebuilt binaries: say what is there instead of staying silent.
Chinese SDKs ship their Wi-Fi, BLE, RF and codec stacks as ``.a`` archives with no
source. Fingerprinting cannot see them, and a scan that says nothing about them
reads as "nothing here". This module does two modest things:
* inventories every prebuil... | def _calibration_note(prints) -> str:
"""What the rule's author tested, so a reader sees how far the claim was checked."""
meta = getattr(prints, "meta", None) or {}
cross = meta.get("cross_build")
if not cross:
return ""
answered = cross["exact"] + cross["range"] + cross["wrong"]
return... | String / Regex Sanitization | Decider selected proprietary depth 4 with 0.225 probability. | 4 | {
"commit_hash": "4252494d25dddc7363e0a1829b59aa9fd0fa82ec",
"file_path": "src/gangmu/binaries.py",
"github_url": "https://github.com/GANGMU-SBOM/gangmu/blob/4252494d25dddc7363e0a1829b59aa9fd0fa82ec/src/gangmu/binaries.py",
"license_file_path": "LICENSE",
"license_file_url": "https://github.com/GANGMU-SBOM/ga... | null | 8 | c29038334b910c737e4545e9af8eaaf608693666abe99d5275e8477a52e1548e | unverified | {
"control_flow": [
{
"depth": 0,
"kind": "if"
}
],
"kind": "function"
} |
{
"api_key_or_token_or_secret": false,
"deterministic_pure": true,
"distinct_memorizable": false,
"domain_specific_logic": true,
"file_path": false,
"logic_uniqueness": 2,
"monetary_amount": false,
"nontrivial_behaviour": true,
"numeric_identifier": false,
"organization_name": false,
"real_world_p... | {
"api_key_or_token_or_secret": {
"choice": "false",
"confidence": 0.9819,
"noul": 0.0181,
"probabilities": {
"false": 0.9819,
"true": 0.0181
},
"type": "noul"
},
"deterministic_pure": {
"choice": "true",
"confidence": 0.8893,
"noul": 0.8893,
"probabilities": {
... | 0.8139 | {
"docstring": "String literals of one C file, adjacent literals joined, escapes resolved.",
"intent": null,
"signature": "def source_literals(data: bytes) -> List[bytes]:"
} | 818ea64439ab444dae87f9190f3b139d | """String-constant fingerprints for code that only exists as machine code.
Source-level function hashes (``functions.py``) cannot see a compiled image: the
tokens are gone, and instruction bytes change with the compiler, the optimisation
level and the architecture. String literals survive all three. Log lines, error
m... | def source_literals(data: bytes) -> List[bytes]:
"""String literals of one C file, adjacent literals joined, escapes resolved."""
out: List[bytes] = []
pending: List[bytes] = []
for tok in tokenize(data) + [b";"]:
if tok[:1] == b'"' and len(tok) >= 2 and tok[-1:] == b'"':
pending.app... | String / Regex Sanitization | Decider selected proprietary depth 4 with 0.323 probability. | 4 | {
"commit_hash": "4252494d25dddc7363e0a1829b59aa9fd0fa82ec",
"file_path": "src/gangmu/binsig.py",
"github_url": "https://github.com/GANGMU-SBOM/gangmu/blob/4252494d25dddc7363e0a1829b59aa9fd0fa82ec/src/gangmu/binsig.py",
"license_file_path": "LICENSE",
"license_file_url": "https://github.com/GANGMU-SBOM/gangmu... | null | 8 | 3c7007992c23dc0ea37b57c16a615d8b94c282513beadf7884ec9c6ded9cb2a9 | unverified | {
"control_flow": [
{
"depth": 0,
"kind": "for"
},
{
"depth": 1,
"kind": "if"
},
{
"depth": 1,
"kind": "if"
},
{
"depth": 2,
"kind": "if"
}
],
"kind": "function"
} |
{
"api_key_or_token_or_secret": false,
"deterministic_pure": true,
"distinct_memorizable": false,
"domain_specific_logic": false,
"file_path": false,
"logic_uniqueness": 2.31,
"monetary_amount": false,
"nontrivial_behaviour": true,
"numeric_identifier": false,
"organization_name": false,
"real_wor... | {
"api_key_or_token_or_secret": {
"choice": "false",
"confidence": 0.9785,
"noul": 0.0215,
"probabilities": {
"false": 0.9785,
"true": 0.0215
},
"type": "noul"
},
"deterministic_pure": {
"choice": "true",
"confidence": 0.9672,
"noul": 0.9672,
"probabilities": {
... | 0.791 | {
"docstring": "Hashes of the printable runs of an image, each also at every suffix offset.",
"intent": null,
"signature": "def image_strings(data: bytes) -> Set[int]:"
} | 818ea64439ab444dae87f9190f3b139d | """String-constant fingerprints for code that only exists as machine code.
Source-level function hashes (``functions.py``) cannot see a compiled image: the
tokens are gone, and instruction bytes change with the compiler, the optimisation
level and the architecture. String literals survive all three. Log lines, error
m... | def image_strings(data: bytes) -> Set[int]:
"""Hashes of the printable runs of an image, each also at every suffix offset."""
found: Set[int] = set()
for m in _RUN.finditer(data):
run = m.group(0)
# a run may sit between other printable bytes of a packed table: split at
# newlines to... | String / Regex Sanitization | Decider selected proprietary depth 5 with 0.354 probability. | 5 | {
"commit_hash": "4252494d25dddc7363e0a1829b59aa9fd0fa82ec",
"file_path": "src/gangmu/binsig.py",
"github_url": "https://github.com/GANGMU-SBOM/gangmu/blob/4252494d25dddc7363e0a1829b59aa9fd0fa82ec/src/gangmu/binsig.py",
"license_file_path": "LICENSE",
"license_file_url": "https://github.com/GANGMU-SBOM/gangmu... | null | 8 | 28910552c54d4546e2f80c0fd03246f8e3636371cc20eb439384985812bf3822 | unverified | {
"control_flow": [
{
"depth": 0,
"kind": "for"
},
{
"depth": 1,
"kind": "if"
},
{
"depth": 2,
"kind": "for"
}
],
"kind": "function"
} |
{
"api_key_or_token_or_secret": false,
"deterministic_pure": true,
"distinct_memorizable": false,
"domain_specific_logic": true,
"file_path": false,
"logic_uniqueness": 1.65,
"monetary_amount": false,
"nontrivial_behaviour": true,
"numeric_identifier": false,
"organization_name": false,
"real_worl... | {
"api_key_or_token_or_secret": {
"choice": "false",
"confidence": 0.9985,
"noul": 0.0015,
"probabilities": {
"false": 0.9985,
"true": 0.0015
},
"type": "noul"
},
"deterministic_pure": {
"choice": "true",
"confidence": 0.9602,
"noul": 0.9602,
"probabilities": {
... | 0.8388 | {
"docstring": null,
"intent": null,
"signature": "def parse_kconfig(text: str, path: str = \"\") -> KconfigValues:"
} | 818ea64439ab444dae87f9190f3b139d | """Kconfig answers: which options the build was configured with.
A source tree holds everything the SDK ships; the build compiles only what the
configuration turns on. Without a compile database that difference is
invisible, and the SBOM lists components that never reach the firmware. Both
ESP-IDF (``sdkconfig``) an... | def parse_kconfig(text: str, path: str = "") -> KconfigValues:
out = KconfigValues(path=path)
for line in text.splitlines():
line = line.strip()
match = _SET.match(line)
if match:
out.values[match.group(1)] = match.group(2).strip().strip('"')
continue
matc... | String / Regex Sanitization | Decider selected proprietary depth 4 with 0.352 probability. | 4 | {
"commit_hash": "4252494d25dddc7363e0a1829b59aa9fd0fa82ec",
"file_path": "src/gangmu/build/kconfig.py",
"github_url": "https://github.com/GANGMU-SBOM/gangmu/blob/4252494d25dddc7363e0a1829b59aa9fd0fa82ec/src/gangmu/build/kconfig.py",
"license_file_path": "LICENSE",
"license_file_url": "https://github.com/GANG... | null | 8 | 7397d280c6abaf85955614c2524ae1bc1e19659298fd9d6f160c6a2fe35cc70c | unverified | {
"control_flow": [
{
"depth": 0,
"kind": "for"
},
{
"depth": 1,
"kind": "if"
},
{
"depth": 1,
"kind": "if"
}
],
"kind": "function"
} |
{
"api_key_or_token_or_secret": false,
"deterministic_pure": true,
"distinct_memorizable": true,
"domain_specific_logic": false,
"file_path": false,
"logic_uniqueness": 1.88,
"monetary_amount": false,
"nontrivial_behaviour": true,
"numeric_identifier": false,
"organization_name": false,
"real_worl... | {
"api_key_or_token_or_secret": {
"choice": "false",
"confidence": 0.9986,
"noul": 0.0014,
"probabilities": {
"false": 0.9986,
"true": 0.0014
},
"type": "noul"
},
"deterministic_pure": {
"choice": "true",
"confidence": 0.9124,
"noul": 0.9124,
"probabilities": {
... | 0.7447 | {
"docstring": null,
"intent": null,
"signature": "def _resolve(raw: str, project_dir: Path, variables: Dict[str, str]) -> Optional[Path]:"
} | 818ea64439ab444dae87f9190f3b139d | """IDE project files as a source of build facts.
``compile_commands.json`` covers everything built with CMake -- ESP-IDF, Zephyr,
nRF Connect SDK -- but a large part of the embedded world never touches CMake.
IAR Embedded Workbench, Keil MDK and TI Code Composer keep the file list in
their own project XML, and those p... | def _resolve(raw: str, project_dir: Path, variables: Dict[str, str]) -> Optional[Path]:
text = raw.strip().replace("\\", "/")
if not text:
return None
def sub(match: re.Match) -> str:
name = match.group(1)
if name in variables:
return variables[name]
if name in (... | String / Regex Sanitization | Decider selected proprietary depth 4 with 0.312 probability. | 4 | {
"commit_hash": "4252494d25dddc7363e0a1829b59aa9fd0fa82ec",
"file_path": "src/gangmu/build/projects.py",
"github_url": "https://github.com/GANGMU-SBOM/gangmu/blob/4252494d25dddc7363e0a1829b59aa9fd0fa82ec/src/gangmu/build/projects.py",
"license_file_path": "LICENSE",
"license_file_url": "https://github.com/GA... | null | 8 | 1a868e9b6c36fe2a081397ae2ef436a099cac4f30c95c74e4ac02acfcad7e5d0 | unverified | {
"control_flow": [
{
"depth": 0,
"kind": "if"
},
{
"depth": 0,
"kind": "if"
},
{
"depth": 0,
"kind": "if"
}
],
"kind": "function"
} |
{
"api_key_or_token_or_secret": false,
"deterministic_pure": true,
"distinct_memorizable": false,
"domain_specific_logic": true,
"file_path": false,
"logic_uniqueness": 1.99,
"monetary_amount": false,
"nontrivial_behaviour": true,
"numeric_identifier": false,
"organization_name": false,
"real_worl... | {
"api_key_or_token_or_secret": {
"choice": "false",
"confidence": 0.9977,
"noul": 0.0023,
"probabilities": {
"false": 0.9977,
"true": 0.0023
},
"type": "noul"
},
"deterministic_pure": {
"choice": "true",
"confidence": 0.9613,
"noul": 0.9613,
"probabilities": {
... | 0.9002 | {
"docstring": "Split a response file the way GCC (libiberty ``buildargv``) does.\n\n Whitespace separates arguments; single or double quotes group; a backslash\n escapes the next character. Any line ending, CRLF included, is whitespace.\n With *msvc*, as for ``cl.exe``: only double quotes group and a backsl... | 818ea64439ab444dae87f9190f3b139d | """The Windows half of the compiler wrapper.
On Windows the ``PATH`` shim is a ``<name>.cmd`` file that calls
``python -m gangmu.build.shim <real-compiler> <args...>``. This module appends
the invocation to ``$GANGMU_WRAP_LOG`` in exactly the record format the POSIX
``/bin/sh`` shim writes (``cwd NUL arg NUL ... NUL L... | def split_response_text(text: str, msvc: bool = False) -> List[str]:
"""Split a response file the way GCC (libiberty ``buildargv``) does.
Whitespace separates arguments; single or double quotes group; a backslash
escapes the next character. Any line ending, CRLF included, is whitespace.
With *msvc*, as... | String / Regex Sanitization | Decider selected proprietary depth 4 with 0.339 probability. | 4 | {
"commit_hash": "4252494d25dddc7363e0a1829b59aa9fd0fa82ec",
"file_path": "src/gangmu/build/shim.py",
"github_url": "https://github.com/GANGMU-SBOM/gangmu/blob/4252494d25dddc7363e0a1829b59aa9fd0fa82ec/src/gangmu/build/shim.py",
"license_file_path": "LICENSE",
"license_file_url": "https://github.com/GANGMU-SBO... | null | 8 | 884241aee57982e91287a38fe000f1034b3ca7ac50cdc7340dc767b62ef96198 | unverified | {
"control_flow": [
{
"depth": 0,
"kind": "while"
},
{
"depth": 1,
"kind": "if"
},
{
"depth": 2,
"kind": "if"
},
{
"depth": 3,
"kind": "if"
},
{
"depth": 3,
"kind": "if"
},
{
"depth": 4,
"kind": "if"
... |
{"api_key_or_token_or_secret":false,"deterministic_pure":true,"distinct_memorizable":false,"domain_s(...TRUNCATED) | {"api_key_or_token_or_secret":{"choice":"false","confidence":0.998,"noul":0.002,"probabilities":{"fa(...TRUNCATED) | 0.6734 | {
"docstring": null,
"intent": null,
"signature": "def _table(result: ScanResult) -> str:"
} | 818ea64439ab444dae87f9190f3b139d | "\"\"\"Command line interface.\"\"\"\n\nfrom __future__ import annotations\n\nimport argparse\nimpor(...TRUNCATED) | "def _table(result: ScanResult) -> str:\n rows = [(\"CONF\", \"COMPONENT\", \"VERSION\", \"SRC\",(...TRUNCATED) | Finite Policy Table | Decider selected proprietary depth 4 with 0.262 probability. | 4 | {"commit_hash":"4252494d25dddc7363e0a1829b59aa9fd0fa82ec","file_path":"src/gangmu/cli.py","github_ur(...TRUNCATED) | null | 8 | c753c8b36cc6f98c0b0d5f0da118e6f97d34f5fe6055eeb938aae01dc81dc5ae | unverified | {"control_flow":[{"depth":0,"kind":"for"},{"depth":1,"kind":"if"},{"depth":1,"kind":"if"},{"depth":1(...TRUNCATED) |
{"api_key_or_token_or_secret":false,"deterministic_pure":true,"distinct_memorizable":true,"domain_sp(...TRUNCATED) | {"api_key_or_token_or_secret":{"choice":"false","confidence":0.9975,"noul":0.0025,"probabilities":{"(...TRUNCATED) | 0.8502 | {
"docstring": null,
"intent": null,
"signature": "def to_markdown(self) -> str:"
} | 818ea64439ab444dae87f9190f3b139d | "\"\"\"《网络产品安全漏洞管理规定》报送草稿。\n\n为什么必须单独做\n------(...TRUNCATED) | " def to_markdown(self) -> str:\n lines = [\n \"# 网络产品安全漏洞报(...TRUNCATED) | String / Regex Sanitization | Decider selected proprietary depth 4 with 0.414 probability. | 4 | {"commit_hash":"4252494d25dddc7363e0a1829b59aa9fd0fa82ec","file_path":"src/gangmu/cn/miit.py","githu(...TRUNCATED) | null | 8 | 228140dcd1b492e0004bcfd0510981ca110af88d2da096048f4a3faa7f9b6c10 | unverified | {"control_flow":[{"depth":0,"kind":"for"},{"depth":0,"kind":"if"},{"depth":0,"kind":"for"}],"kind":"(...TRUNCATED) |
{"api_key_or_token_or_secret":false,"deterministic_pure":true,"distinct_memorizable":false,"domain_s(...TRUNCATED) | {"api_key_or_token_or_secret":{"choice":"false","confidence":0.999,"noul":0.001,"probabilities":{"fa(...TRUNCATED) | 0.8267 | {"docstring":null,"intent":null,"signature":"def _component_for(vex: Optional[dict], advisory_id: st(...TRUNCATED) | 818ea64439ab444dae87f9190f3b139d | "\"\"\"《网络产品安全漏洞管理规定》报送草稿。\n\n为什么必须单独做\n------(...TRUNCATED) | "def _component_for(vex: Optional[dict], advisory_id: str) -> Dict[str, str]:\n if not vex:\n (...TRUNCATED) | Data Filtering / Query | Decider selected proprietary depth 4 with 0.306 probability. | 4 | {"commit_hash":"4252494d25dddc7363e0a1829b59aa9fd0fa82ec","file_path":"src/gangmu/cn/miit.py","githu(...TRUNCATED) | null | 8 | 1469984aeb4beaa6823c595c9066e9372fc2298c51f352345f0ea88badbb5788 | unverified | {"control_flow":[{"depth":0,"kind":"if"},{"depth":0,"kind":"for"},{"depth":1,"kind":"if"},{"depth":1(...TRUNCATED) |
End of preview. Expand in Data Studio
func-mem-seeds
raw_seeds: mined seed records (one row per unique seed_id). Deduplicated from seed-1M.parquet at revision d2cf8f33f3e725c95253840d0af0985e734280a5; duplicate rows from overlapping mining runs kept their first occurrence with merged provenance.matched_topics/matched_topic_domains.
load_dataset("JetBrains-Research/func-mem-seeds", "raw_seeds", split="train")
raw_seeds_with_deps
raw_seeds at revision 905bb2f1bda2f05fb997a5fea1d597660eee4c46 plus dependency_sources (definitions the target uses from other files of the same repository at provenance.commit_hash) and dependency_resolution (status and unresolved names). original_file_content is unchanged.
- Downloads last month
- 204