Open-source atomic malware analysis

Analyze another

zhicao/dreamzero main

PYTHON
Verdict: BENIGN
Mal-ecule
H₄(CrDbFOs)
Size 6.6 KB download
First seen 17 days ago
Analyzed 3 days ago
Ecosystem huggingface
build_trex_mini_force.py python
1 #!/usr/bin/env python3
2 """Build one train-ready T-Rex Track-Force demo with fresh statistics."""
3
4 from __future__ import annotations
5
6 import argparse
7 import copy
8 import hashlib
9 import json
10 import
17:23 / "scripts" / "data"
18 if str(_DATA_SCRIPTS) not in sys.path:
19 sys.path.insert(0, str(_DATA_SCRIPTS)) Modifies module search path (sys.path)
20
21 import build_trex_track_force_v2 as force_builder # noqa: E402
22 import check_trex_dataset_ready as read
23:49 # noqa: E402
24
25
26 def _read_json(path: Path) -> dict:
27 return json.loads(path.read_text()) Parses JSON data with Python
28
29
30 def _read_jsonl(path: Path) -> list[dict]:
31 return [
32 json.loads(line)
33 for line in path.read_text().splitlines()
34 if line.strip()
35 ]
36
37
38 def _sha256_or_empty(path: Path) -> str:
39 if path.is_file():
40 return variants._sha256(path)
41 return hashlib.sha256(b"[]\n").hexdigest() Performs Python SHA-256 operation
42
43
44 def build_mini_dataset(
45 *,
46 source_root: Path,
47 output_root: Path,
48 source_episode: int,
49 workers: int,
50 ) ->
53:21 = output_root:
54 raise ValueError("source and output dataset roots must differ")
55
56 ready_check.check_dataset(source_root, require_force=Tr
90:42 {output_root.name}.staging"
91 if stage_root.exists():
92 shutil.rmtree(stage_root) Calls rmtree() to delete a directory tree
93 video_keys = variants._video_keys(source_info)
94 blacklist = source_root / "meta" / "excluded_source_episode_indices.json"

Micro-behaviors

Metadata

Identity

SHA-256 7779429b83af1d649aa72adf06ded5c0553d0532af516392dd3650697431d3af
Filename build_trex_mini_force.py
Package zhicao/dreamzero
Version main
PURL pkg:huggingface/zhicao/dreamzero@main

Origin

Source forager
Feed huggingface.co
Ecosystem huggingface
Domain huggingface.co
URL https://huggingface.co/zhicao/dreamzero

Timeline

First seen 13 Aug 2026 21:18 UTC
First analyzed 28 Aug 2026 08:41 UTC
Last analyzed 28 Aug 2026 08:41 UTC
Last updated 28 Aug 2026 08:41 UTC

Labeling

Label unknown
Label source forager
Traits version b59b7