Facdbe commited on
Commit
406a8a0
·
verified ·
1 Parent(s): c25c294

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. .gitattributes +4 -59
  2. README.md +35 -0
  3. archives/community_0.tar.zst +3 -0
  4. archives/community_10.tar.zst +3 -0
  5. archives/community_11.tar.zst +3 -0
  6. archives/community_12.tar.zst +3 -0
  7. archives/community_13.tar.zst +3 -0
  8. archives/community_14.tar.zst +3 -0
  9. archives/community_15.tar.zst +3 -0
  10. archives/community_16.tar.zst +3 -0
  11. archives/community_18.tar.zst +3 -0
  12. archives/community_19.tar.zst +3 -0
  13. archives/community_2.tar.zst +3 -0
  14. archives/community_20.tar.zst +3 -0
  15. archives/community_21.tar.zst +3 -0
  16. archives/community_22.tar.zst +3 -0
  17. archives/community_23.tar.zst +3 -0
  18. archives/community_24.tar.zst +3 -0
  19. archives/community_25.tar.zst +3 -0
  20. archives/community_27.tar.zst +3 -0
  21. archives/community_28.tar.zst +3 -0
  22. archives/community_3.tar.zst +3 -0
  23. archives/community_32.tar.zst +3 -0
  24. archives/community_33.tar.zst +3 -0
  25. archives/community_35.tar.zst +3 -0
  26. archives/community_36.tar.zst +3 -0
  27. archives/community_38.tar.zst +3 -0
  28. archives/community_39.tar.zst +3 -0
  29. archives/community_4.tar.zst +3 -0
  30. archives/community_40.tar.zst +3 -0
  31. archives/community_41.tar.zst +3 -0
  32. archives/community_42.tar.zst +3 -0
  33. archives/community_43.tar.zst +3 -0
  34. archives/community_45.tar.zst +3 -0
  35. archives/community_46.tar.zst +3 -0
  36. archives/community_47.tar.zst +3 -0
  37. archives/community_48.tar.zst +3 -0
  38. archives/community_51.tar.zst +3 -0
  39. archives/community_52.tar.zst +3 -0
  40. archives/community_6.tar.zst +3 -0
  41. archives/community_7.tar.zst +3 -0
  42. archives/community_8.tar.zst +3 -0
  43. archives/community_9.tar.zst +3 -0
  44. archives_manifest.json +383 -0
  45. datasets/codabench-hard.json +0 -0
  46. datasets/codabench.json +0 -0
  47. release_manifest.json +391 -0
  48. scripts/build_release.py +169 -0
  49. scripts/extract_archives.py +64 -0
  50. scripts/package_archives.py +147 -0
.gitattributes CHANGED
@@ -1,60 +1,5 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.avro filter=lfs diff=lfs merge=lfs -text
4
- *.bin filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ckpt filter=lfs diff=lfs merge=lfs -text
7
- *.ftz filter=lfs diff=lfs merge=lfs -text
8
- *.gz filter=lfs diff=lfs merge=lfs -text
9
- *.h5 filter=lfs diff=lfs merge=lfs -text
10
- *.joblib filter=lfs diff=lfs merge=lfs -text
11
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
- *.lz4 filter=lfs diff=lfs merge=lfs -text
13
- *.mds filter=lfs diff=lfs merge=lfs -text
14
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
- *.model filter=lfs diff=lfs merge=lfs -text
16
- *.msgpack filter=lfs diff=lfs merge=lfs -text
17
- *.npy filter=lfs diff=lfs merge=lfs -text
18
- *.npz filter=lfs diff=lfs merge=lfs -text
19
- *.onnx filter=lfs diff=lfs merge=lfs -text
20
- *.ot filter=lfs diff=lfs merge=lfs -text
21
- *.parquet filter=lfs diff=lfs merge=lfs -text
22
- *.pb filter=lfs diff=lfs merge=lfs -text
23
- *.pickle filter=lfs diff=lfs merge=lfs -text
24
- *.pkl filter=lfs diff=lfs merge=lfs -text
25
- *.pt filter=lfs diff=lfs merge=lfs -text
26
- *.pth filter=lfs diff=lfs merge=lfs -text
27
- *.rar filter=lfs diff=lfs merge=lfs -text
28
- *.safetensors filter=lfs diff=lfs merge=lfs -text
29
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
- *.tar.* filter=lfs diff=lfs merge=lfs -text
31
- *.tar filter=lfs diff=lfs merge=lfs -text
32
- *.tflite filter=lfs diff=lfs merge=lfs -text
33
- *.tgz filter=lfs diff=lfs merge=lfs -text
34
- *.wasm filter=lfs diff=lfs merge=lfs -text
35
- *.xz filter=lfs diff=lfs merge=lfs -text
36
  *.zip filter=lfs diff=lfs merge=lfs -text
37
- *.zst filter=lfs diff=lfs merge=lfs -text
38
- *tfevents* filter=lfs diff=lfs merge=lfs -text
39
- # Audio files - uncompressed
40
- *.pcm filter=lfs diff=lfs merge=lfs -text
41
- *.sam filter=lfs diff=lfs merge=lfs -text
42
- *.raw filter=lfs diff=lfs merge=lfs -text
43
- # Audio files - compressed
44
- *.aac filter=lfs diff=lfs merge=lfs -text
45
- *.flac filter=lfs diff=lfs merge=lfs -text
46
- *.mp3 filter=lfs diff=lfs merge=lfs -text
47
- *.ogg filter=lfs diff=lfs merge=lfs -text
48
- *.wav filter=lfs diff=lfs merge=lfs -text
49
- # Image files - uncompressed
50
- *.bmp filter=lfs diff=lfs merge=lfs -text
51
- *.gif filter=lfs diff=lfs merge=lfs -text
52
- *.png filter=lfs diff=lfs merge=lfs -text
53
- *.tiff filter=lfs diff=lfs merge=lfs -text
54
- # Image files - compressed
55
- *.jpg filter=lfs diff=lfs merge=lfs -text
56
- *.jpeg filter=lfs diff=lfs merge=lfs -text
57
- *.webp filter=lfs diff=lfs merge=lfs -text
58
- # Video files - compressed
59
- *.mp4 filter=lfs diff=lfs merge=lfs -text
60
- *.webm filter=lfs diff=lfs merge=lfs -text
 
1
+ *.tar.zst filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  *.zip filter=lfs diff=lfs merge=lfs -text
3
+ *.parquet filter=lfs diff=lfs merge=lfs -text
4
+ *.sqlite filter=lfs diff=lfs merge=lfs -text
5
+ *.db filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Benchmark Hugging Face Release
2
+
3
+ This directory contains the current benchmark release split into question JSON files and per-community data archives.
4
+
5
+ - `datasets/codabench.json`: full benchmark questions.
6
+ - `datasets/codabench-hard.json`: hard subset questions.
7
+ - `archives/community_*.tar.zst`: compressed data archives for Hugging Face Git LFS upload.
8
+ - `archives_manifest.json`: archive size, SHA256, and extraction target metadata.
9
+ - `release_manifest.json`: source-to-release community mapping and copy statistics.
10
+ - `scripts/extract_archives.py`: verifies archive SHA256 values and extracts data.
11
+
12
+ Each question row has `release_community` and `data_path`. After extracting an archive, its contents land at that `data_path`, for example:
13
+
14
+ ```bash
15
+ python scripts/extract_archives.py --community community_0
16
+ ```
17
+
18
+ For all archives:
19
+
20
+ ```bash
21
+ python scripts/extract_archives.py
22
+ ```
23
+
24
+ The data copy dereferences the symlinks produced by `stage1_setup`, so the archives contain actual file contents rather than symlink placeholders.
25
+
26
+ Recommended Hugging Face layout:
27
+
28
+ ```text
29
+ datasets/
30
+ archives/
31
+ archives_manifest.json
32
+ release_manifest.json
33
+ README.md
34
+ scripts/
35
+ ```
archives/community_0.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ccaa0fab5743bf0f6713a0ef340a7011de2df713d8fea3d632f31bf5d7f74bea
3
+ size 2140331673
archives/community_10.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db0295cadeede1d8eb79855f745ac55f254d8a45b245bd9e5bb0cd80d6775ac6
3
+ size 14624961
archives/community_11.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71686abfea5e09c7c8d8f452a7ee8d621407100306b4cc24f278dfe881de6a18
3
+ size 316367879
archives/community_12.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e746d123c464bd52c207f1b93b1524bd7cb5cc33d6c5405927d1b6407ead350
3
+ size 822159405
archives/community_13.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38bc2130f14e099cf43bab04dbb445aedf217297da7e6495a22c01c153642587
3
+ size 132266365
archives/community_14.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24b6c1ab36205018f635f075641f6e30b018c01000bcbaced9cdb44dd511a853
3
+ size 1306629520
archives/community_15.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cf92e21703171e6c7d3cc937cac8bc89f8d054404ffe4fa398c8a428d3804a9
3
+ size 1172655
archives/community_16.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d343448013f70f93c5c0046e952210f509cc4a89ec4016fc23bbc103edb3ec8
3
+ size 12493804
archives/community_18.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abbd060ce26085198300fe088c00fd9ab56c2874b40fbf86634785837bb61d75
3
+ size 6674814
archives/community_19.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6858f88922f52e5f1d24f05ced1a8949b670205f6242097c512a3edc15741d4d
3
+ size 22422286
archives/community_2.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7f79dcc575e15f57c181f723f1c0025669fe047d86cc5a53efae89cbec1507f
3
+ size 1850158229
archives/community_20.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:578494fe567d0f7a7c6e52814cd90dbaf47b4d79ced15932e620b7fab85d1321
3
+ size 11180232
archives/community_21.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a356433dd1ec02f6f8bcec3a968f57bf89f39d029ce9dd5ccb36890ccec38220
3
+ size 14635559
archives/community_22.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcf4436095998ce8e7ea49657d141a93d7471c540fe0156d171fa8d44e9f73bd
3
+ size 14318087
archives/community_23.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e605ad5b95a86343e6f8fe7741b554f793a1ad84300e884bbf908402217f2bc2
3
+ size 94226483
archives/community_24.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4046741ce680bb0852639bfbfa0f371c8a04dd75baaccfea5d1be1b7be2b7cd
3
+ size 1232558736
archives/community_25.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb3e0de60e4074b8fb81f8e6b78b1354fe01297cd0279891362b03dfd2ab444
3
+ size 271119772
archives/community_27.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8787f622ea18a88c386376bd866871740c6e68f92116f5862725ea069b559fbf
3
+ size 1975388492
archives/community_28.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffdc9f8a8efe5f63898a51b4ba18a03d0ac91be72ef01bc80f93b537d6b3967d
3
+ size 1872609553
archives/community_3.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12bd71a4ad8143c88ac5ea52a49534bda5645edb6624dc931cd5b34215518537
3
+ size 1168016078
archives/community_32.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea64f85b554f74082824294bbc9ab85b5000bda82c900b1f9cc4706f7027eda8
3
+ size 789727398
archives/community_33.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8cc887f6e8a0c4a3379a07a8d1359fcc9e7de81881c417b2b5db9ee430c8b26d
3
+ size 368105038
archives/community_35.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c69eb25d3e50345a6ec10b93d47adfd069d84febc7a44d1c138b3299751a41d
3
+ size 362728055
archives/community_36.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e888f3d59ef30a2522a88fb9835dd4321f833ec90fafa8c038a4731cf07d0490
3
+ size 1597775284
archives/community_38.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cfb300340a1893fa36b2af09ec35ffe846aa8b591a56c1aa0a7f9a8fe887539
3
+ size 330745452
archives/community_39.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:653c6e1972fb4d54b128c9ff84a09990ee74e29e1243846ad01423a7faff88d4
3
+ size 832611534
archives/community_4.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7cd8c958f282822b0803837a704e491d1653b031014fcb0d3701a384d58417b
3
+ size 823185095
archives/community_40.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a11374cc490ad282ce28422447786beb993f10cb89d7748026c4c5b21e81063
3
+ size 312897942
archives/community_41.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4c14eab5454b8d747f194770a10b696426fdfbbc2c3b0e91b98ac627c6ba005
3
+ size 1226435900
archives/community_42.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d28ed0faa6d5276ea06ad6c1a4529670de3a2d56cabc6c6660153c297471badb
3
+ size 1306530429
archives/community_43.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30771af71c5a37c110b91f5e443e9c2f971ad50e6847bcb8385bee69a2a61aa0
3
+ size 5144617
archives/community_45.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:756b7c3cdd7ca207186d98cc8bbba6e86913f1a360893611c2052ba892768280
3
+ size 11166232
archives/community_46.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d11d476ed3e3cbd1f64144de148a5f24f1933857cb6aa0c1e99118e49a723a79
3
+ size 1282037972
archives/community_47.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de5752d062e893b7f386d2912829ca66c94b232ed8f609110583a125bf75ad17
3
+ size 2588688
archives/community_48.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f88f916d090b4c4656e50bee4f2faaa465b46f562dec3697bf3ffd7bd1534276
3
+ size 914225987
archives/community_51.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0da77126eaa6e48cac987eca59d574cc9212a5ac5bd00d5ca15346cd9db65d2
3
+ size 21751
archives/community_52.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:522fb6a3881d68e12787e7570709376923b234f26758d62337c333dfefbf2def
3
+ size 84441
archives/community_6.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab65a2e8d0545066e37b8f2da07b191fb4a22223fe139944a68671cfe8680699
3
+ size 789238193
archives/community_7.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6dc033bce578a9df30c0ada70b9880586ea75389adfc7dfc6b2c24bf415802b5
3
+ size 422604509
archives/community_8.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dabb4e6e6c693014b6620941b329ab8ad6695158b83165c0567670960530283
3
+ size 592127640
archives/community_9.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d9e7be325483e1e05381ee60d822954882602849304090f94822f10ef6e05d8
3
+ size 273560927
archives_manifest.json ADDED
@@ -0,0 +1,383 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "created_at": "2026-05-05T14:50:07.954299+00:00",
3
+ "compression": {
4
+ "format": "tar.zst",
5
+ "zstd_level": 6,
6
+ "command_template": "tar --use-compress-program 'zstd -T0 -LEVEL' -cf archives/community_N.tar.zst data/community_N"
7
+ },
8
+ "num_archives": 53,
9
+ "total_size_bytes": 67718781751,
10
+ "archives": [
11
+ {
12
+ "community_id": "community_0",
13
+ "archive_path": "archives/community_0.tar.zst",
14
+ "extracts_to": "data/community_0",
15
+ "size_bytes": 2140331673,
16
+ "sha256": "ccaa0fab5743bf0f6713a0ef340a7011de2df713d8fea3d632f31bf5d7f74bea"
17
+ },
18
+ {
19
+ "community_id": "community_1",
20
+ "archive_path": "archives/community_1.tar.zst",
21
+ "extracts_to": "data/community_1",
22
+ "size_bytes": 1214463244,
23
+ "sha256": "0598dd4c23b24038a8bfec865797deb03ef529c050d112bb98943a57b02bf13a"
24
+ },
25
+ {
26
+ "community_id": "community_2",
27
+ "archive_path": "archives/community_2.tar.zst",
28
+ "extracts_to": "data/community_2",
29
+ "size_bytes": 1850158229,
30
+ "sha256": "e7f79dcc575e15f57c181f723f1c0025669fe047d86cc5a53efae89cbec1507f"
31
+ },
32
+ {
33
+ "community_id": "community_3",
34
+ "archive_path": "archives/community_3.tar.zst",
35
+ "extracts_to": "data/community_3",
36
+ "size_bytes": 1168016078,
37
+ "sha256": "12bd71a4ad8143c88ac5ea52a49534bda5645edb6624dc931cd5b34215518537"
38
+ },
39
+ {
40
+ "community_id": "community_4",
41
+ "archive_path": "archives/community_4.tar.zst",
42
+ "extracts_to": "data/community_4",
43
+ "size_bytes": 823185095,
44
+ "sha256": "d7cd8c958f282822b0803837a704e491d1653b031014fcb0d3701a384d58417b"
45
+ },
46
+ {
47
+ "community_id": "community_5",
48
+ "archive_path": "archives/community_5.tar.zst",
49
+ "extracts_to": "data/community_5",
50
+ "size_bytes": 8860477756,
51
+ "sha256": "57a753ef4927ce5ba47ca67ee0a1ea6ad2c7d96b4b69486f93d8c7ee72326c8c"
52
+ },
53
+ {
54
+ "community_id": "community_6",
55
+ "archive_path": "archives/community_6.tar.zst",
56
+ "extracts_to": "data/community_6",
57
+ "size_bytes": 789238193,
58
+ "sha256": "ab65a2e8d0545066e37b8f2da07b191fb4a22223fe139944a68671cfe8680699"
59
+ },
60
+ {
61
+ "community_id": "community_7",
62
+ "archive_path": "archives/community_7.tar.zst",
63
+ "extracts_to": "data/community_7",
64
+ "size_bytes": 422604509,
65
+ "sha256": "6dc033bce578a9df30c0ada70b9880586ea75389adfc7dfc6b2c24bf415802b5"
66
+ },
67
+ {
68
+ "community_id": "community_8",
69
+ "archive_path": "archives/community_8.tar.zst",
70
+ "extracts_to": "data/community_8",
71
+ "size_bytes": 592127640,
72
+ "sha256": "2dabb4e6e6c693014b6620941b329ab8ad6695158b83165c0567670960530283"
73
+ },
74
+ {
75
+ "community_id": "community_9",
76
+ "archive_path": "archives/community_9.tar.zst",
77
+ "extracts_to": "data/community_9",
78
+ "size_bytes": 273560927,
79
+ "sha256": "7d9e7be325483e1e05381ee60d822954882602849304090f94822f10ef6e05d8"
80
+ },
81
+ {
82
+ "community_id": "community_10",
83
+ "archive_path": "archives/community_10.tar.zst",
84
+ "extracts_to": "data/community_10",
85
+ "size_bytes": 14624961,
86
+ "sha256": "db0295cadeede1d8eb79855f745ac55f254d8a45b245bd9e5bb0cd80d6775ac6"
87
+ },
88
+ {
89
+ "community_id": "community_11",
90
+ "archive_path": "archives/community_11.tar.zst",
91
+ "extracts_to": "data/community_11",
92
+ "size_bytes": 316367879,
93
+ "sha256": "71686abfea5e09c7c8d8f452a7ee8d621407100306b4cc24f278dfe881de6a18"
94
+ },
95
+ {
96
+ "community_id": "community_12",
97
+ "archive_path": "archives/community_12.tar.zst",
98
+ "extracts_to": "data/community_12",
99
+ "size_bytes": 822159405,
100
+ "sha256": "2e746d123c464bd52c207f1b93b1524bd7cb5cc33d6c5405927d1b6407ead350"
101
+ },
102
+ {
103
+ "community_id": "community_13",
104
+ "archive_path": "archives/community_13.tar.zst",
105
+ "extracts_to": "data/community_13",
106
+ "size_bytes": 132266365,
107
+ "sha256": "38bc2130f14e099cf43bab04dbb445aedf217297da7e6495a22c01c153642587"
108
+ },
109
+ {
110
+ "community_id": "community_14",
111
+ "archive_path": "archives/community_14.tar.zst",
112
+ "extracts_to": "data/community_14",
113
+ "size_bytes": 1306629520,
114
+ "sha256": "24b6c1ab36205018f635f075641f6e30b018c01000bcbaced9cdb44dd511a853"
115
+ },
116
+ {
117
+ "community_id": "community_15",
118
+ "archive_path": "archives/community_15.tar.zst",
119
+ "extracts_to": "data/community_15",
120
+ "size_bytes": 1172655,
121
+ "sha256": "9cf92e21703171e6c7d3cc937cac8bc89f8d054404ffe4fa398c8a428d3804a9"
122
+ },
123
+ {
124
+ "community_id": "community_16",
125
+ "archive_path": "archives/community_16.tar.zst",
126
+ "extracts_to": "data/community_16",
127
+ "size_bytes": 12493804,
128
+ "sha256": "7d343448013f70f93c5c0046e952210f509cc4a89ec4016fc23bbc103edb3ec8"
129
+ },
130
+ {
131
+ "community_id": "community_17",
132
+ "archive_path": "archives/community_17.tar.zst",
133
+ "extracts_to": "data/community_17",
134
+ "size_bytes": 4277326272,
135
+ "sha256": "5f1e13b03c28581c5e0b102a312330c3359dec83babef84d504e9f9290d6718b"
136
+ },
137
+ {
138
+ "community_id": "community_18",
139
+ "archive_path": "archives/community_18.tar.zst",
140
+ "extracts_to": "data/community_18",
141
+ "size_bytes": 6674814,
142
+ "sha256": "abbd060ce26085198300fe088c00fd9ab56c2874b40fbf86634785837bb61d75"
143
+ },
144
+ {
145
+ "community_id": "community_19",
146
+ "archive_path": "archives/community_19.tar.zst",
147
+ "extracts_to": "data/community_19",
148
+ "size_bytes": 22422286,
149
+ "sha256": "6858f88922f52e5f1d24f05ced1a8949b670205f6242097c512a3edc15741d4d"
150
+ },
151
+ {
152
+ "community_id": "community_20",
153
+ "archive_path": "archives/community_20.tar.zst",
154
+ "extracts_to": "data/community_20",
155
+ "size_bytes": 11180232,
156
+ "sha256": "578494fe567d0f7a7c6e52814cd90dbaf47b4d79ced15932e620b7fab85d1321"
157
+ },
158
+ {
159
+ "community_id": "community_21",
160
+ "archive_path": "archives/community_21.tar.zst",
161
+ "extracts_to": "data/community_21",
162
+ "size_bytes": 14635559,
163
+ "sha256": "a356433dd1ec02f6f8bcec3a968f57bf89f39d029ce9dd5ccb36890ccec38220"
164
+ },
165
+ {
166
+ "community_id": "community_22",
167
+ "archive_path": "archives/community_22.tar.zst",
168
+ "extracts_to": "data/community_22",
169
+ "size_bytes": 14318087,
170
+ "sha256": "bcf4436095998ce8e7ea49657d141a93d7471c540fe0156d171fa8d44e9f73bd"
171
+ },
172
+ {
173
+ "community_id": "community_23",
174
+ "archive_path": "archives/community_23.tar.zst",
175
+ "extracts_to": "data/community_23",
176
+ "size_bytes": 94226483,
177
+ "sha256": "e605ad5b95a86343e6f8fe7741b554f793a1ad84300e884bbf908402217f2bc2"
178
+ },
179
+ {
180
+ "community_id": "community_24",
181
+ "archive_path": "archives/community_24.tar.zst",
182
+ "extracts_to": "data/community_24",
183
+ "size_bytes": 1232558736,
184
+ "sha256": "d4046741ce680bb0852639bfbfa0f371c8a04dd75baaccfea5d1be1b7be2b7cd"
185
+ },
186
+ {
187
+ "community_id": "community_25",
188
+ "archive_path": "archives/community_25.tar.zst",
189
+ "extracts_to": "data/community_25",
190
+ "size_bytes": 271119772,
191
+ "sha256": "aeb3e0de60e4074b8fb81f8e6b78b1354fe01297cd0279891362b03dfd2ab444"
192
+ },
193
+ {
194
+ "community_id": "community_26",
195
+ "archive_path": "archives/community_26.tar.zst",
196
+ "extracts_to": "data/community_26",
197
+ "size_bytes": 2153525686,
198
+ "sha256": "178e49437be7112e80e0a0494229720a88def17d430bbac91e177ea3658dc4bc"
199
+ },
200
+ {
201
+ "community_id": "community_27",
202
+ "archive_path": "archives/community_27.tar.zst",
203
+ "extracts_to": "data/community_27",
204
+ "size_bytes": 1975388492,
205
+ "sha256": "8787f622ea18a88c386376bd866871740c6e68f92116f5862725ea069b559fbf"
206
+ },
207
+ {
208
+ "community_id": "community_28",
209
+ "archive_path": "archives/community_28.tar.zst",
210
+ "extracts_to": "data/community_28",
211
+ "size_bytes": 1872609553,
212
+ "sha256": "ffdc9f8a8efe5f63898a51b4ba18a03d0ac91be72ef01bc80f93b537d6b3967d"
213
+ },
214
+ {
215
+ "community_id": "community_29",
216
+ "archive_path": "archives/community_29.tar.zst",
217
+ "extracts_to": "data/community_29",
218
+ "size_bytes": 1202296599,
219
+ "sha256": "36693d4efa0b8b62e8e67150bb791937800f49eb53b59461630b6c53bf6e7440"
220
+ },
221
+ {
222
+ "community_id": "community_30",
223
+ "archive_path": "archives/community_30.tar.zst",
224
+ "extracts_to": "data/community_30",
225
+ "size_bytes": 882675641,
226
+ "sha256": "ac973a974f7eec56eb3461c25d641034752f6e196971384aa50aab7fe21dfccd"
227
+ },
228
+ {
229
+ "community_id": "community_31",
230
+ "archive_path": "archives/community_31.tar.zst",
231
+ "extracts_to": "data/community_31",
232
+ "size_bytes": 9056083509,
233
+ "sha256": "031b56aaaf8c24960a79662a07ff0af7f69ec29188ae18a0ee8c0831d7f8bbdb"
234
+ },
235
+ {
236
+ "community_id": "community_32",
237
+ "archive_path": "archives/community_32.tar.zst",
238
+ "extracts_to": "data/community_32",
239
+ "size_bytes": 789727398,
240
+ "sha256": "ea64f85b554f74082824294bbc9ab85b5000bda82c900b1f9cc4706f7027eda8"
241
+ },
242
+ {
243
+ "community_id": "community_33",
244
+ "archive_path": "archives/community_33.tar.zst",
245
+ "extracts_to": "data/community_33",
246
+ "size_bytes": 368105038,
247
+ "sha256": "8cc887f6e8a0c4a3379a07a8d1359fcc9e7de81881c417b2b5db9ee430c8b26d"
248
+ },
249
+ {
250
+ "community_id": "community_34",
251
+ "archive_path": "archives/community_34.tar.zst",
252
+ "extracts_to": "data/community_34",
253
+ "size_bytes": 692689992,
254
+ "sha256": "4d5963e41fd49463f41bb391ccf0bf87af9a2a5509576673cf4ce0f0c05c5da4"
255
+ },
256
+ {
257
+ "community_id": "community_35",
258
+ "archive_path": "archives/community_35.tar.zst",
259
+ "extracts_to": "data/community_35",
260
+ "size_bytes": 362728055,
261
+ "sha256": "0c69eb25d3e50345a6ec10b93d47adfd069d84febc7a44d1c138b3299751a41d"
262
+ },
263
+ {
264
+ "community_id": "community_36",
265
+ "archive_path": "archives/community_36.tar.zst",
266
+ "extracts_to": "data/community_36",
267
+ "size_bytes": 1597775284,
268
+ "sha256": "e888f3d59ef30a2522a88fb9835dd4321f833ec90fafa8c038a4731cf07d0490"
269
+ },
270
+ {
271
+ "community_id": "community_37",
272
+ "archive_path": "archives/community_37.tar.zst",
273
+ "extracts_to": "data/community_37",
274
+ "size_bytes": 17728529,
275
+ "sha256": "ee199ec11635d04717fe08bd3cd435e77b52c3bb747916c07191227a4c5e2dda"
276
+ },
277
+ {
278
+ "community_id": "community_38",
279
+ "archive_path": "archives/community_38.tar.zst",
280
+ "extracts_to": "data/community_38",
281
+ "size_bytes": 330745452,
282
+ "sha256": "9cfb300340a1893fa36b2af09ec35ffe846aa8b591a56c1aa0a7f9a8fe887539"
283
+ },
284
+ {
285
+ "community_id": "community_39",
286
+ "archive_path": "archives/community_39.tar.zst",
287
+ "extracts_to": "data/community_39",
288
+ "size_bytes": 832611534,
289
+ "sha256": "653c6e1972fb4d54b128c9ff84a09990ee74e29e1243846ad01423a7faff88d4"
290
+ },
291
+ {
292
+ "community_id": "community_40",
293
+ "archive_path": "archives/community_40.tar.zst",
294
+ "extracts_to": "data/community_40",
295
+ "size_bytes": 312897942,
296
+ "sha256": "1a11374cc490ad282ce28422447786beb993f10cb89d7748026c4c5b21e81063"
297
+ },
298
+ {
299
+ "community_id": "community_41",
300
+ "archive_path": "archives/community_41.tar.zst",
301
+ "extracts_to": "data/community_41",
302
+ "size_bytes": 1226435900,
303
+ "sha256": "b4c14eab5454b8d747f194770a10b696426fdfbbc2c3b0e91b98ac627c6ba005"
304
+ },
305
+ {
306
+ "community_id": "community_42",
307
+ "archive_path": "archives/community_42.tar.zst",
308
+ "extracts_to": "data/community_42",
309
+ "size_bytes": 1306530429,
310
+ "sha256": "d28ed0faa6d5276ea06ad6c1a4529670de3a2d56cabc6c6660153c297471badb"
311
+ },
312
+ {
313
+ "community_id": "community_43",
314
+ "archive_path": "archives/community_43.tar.zst",
315
+ "extracts_to": "data/community_43",
316
+ "size_bytes": 5144617,
317
+ "sha256": "30771af71c5a37c110b91f5e443e9c2f971ad50e6847bcb8385bee69a2a61aa0"
318
+ },
319
+ {
320
+ "community_id": "community_44",
321
+ "archive_path": "archives/community_44.tar.zst",
322
+ "extracts_to": "data/community_44",
323
+ "size_bytes": 103870426,
324
+ "sha256": "7d8524b2b8fe52a2ba4ca276f3dc00f24a007f482e21ad01a59fa65144745c7b"
325
+ },
326
+ {
327
+ "community_id": "community_45",
328
+ "archive_path": "archives/community_45.tar.zst",
329
+ "extracts_to": "data/community_45",
330
+ "size_bytes": 11166232,
331
+ "sha256": "756b7c3cdd7ca207186d98cc8bbba6e86913f1a360893611c2052ba892768280"
332
+ },
333
+ {
334
+ "community_id": "community_46",
335
+ "archive_path": "archives/community_46.tar.zst",
336
+ "extracts_to": "data/community_46",
337
+ "size_bytes": 1282037972,
338
+ "sha256": "d11d476ed3e3cbd1f64144de148a5f24f1933857cb6aa0c1e99118e49a723a79"
339
+ },
340
+ {
341
+ "community_id": "community_47",
342
+ "archive_path": "archives/community_47.tar.zst",
343
+ "extracts_to": "data/community_47",
344
+ "size_bytes": 2588688,
345
+ "sha256": "de5752d062e893b7f386d2912829ca66c94b232ed8f609110583a125bf75ad17"
346
+ },
347
+ {
348
+ "community_id": "community_48",
349
+ "archive_path": "archives/community_48.tar.zst",
350
+ "extracts_to": "data/community_48",
351
+ "size_bytes": 914225987,
352
+ "sha256": "f88f916d090b4c4656e50bee4f2faaa465b46f562dec3697bf3ffd7bd1534276"
353
+ },
354
+ {
355
+ "community_id": "community_49",
356
+ "archive_path": "archives/community_49.tar.zst",
357
+ "extracts_to": "data/community_49",
358
+ "size_bytes": 116883879,
359
+ "sha256": "2250ffd503ee09a25e22d69ee300dcf619951fb26154f4104b0d1a854410bcab"
360
+ },
361
+ {
362
+ "community_id": "community_50",
363
+ "archive_path": "archives/community_50.tar.zst",
364
+ "extracts_to": "data/community_50",
365
+ "size_bytes": 13617862551,
366
+ "sha256": "2d8a4f3f4d70f088334f546c3dd3cbdd28d011cd6d92aaa933b8fac72fa9f000"
367
+ },
368
+ {
369
+ "community_id": "community_51",
370
+ "archive_path": "archives/community_51.tar.zst",
371
+ "extracts_to": "data/community_51",
372
+ "size_bytes": 21751,
373
+ "sha256": "d0da77126eaa6e48cac987eca59d574cc9212a5ac5bd00d5ca15346cd9db65d2"
374
+ },
375
+ {
376
+ "community_id": "community_52",
377
+ "archive_path": "archives/community_52.tar.zst",
378
+ "extracts_to": "data/community_52",
379
+ "size_bytes": 84441,
380
+ "sha256": "522fb6a3881d68e12787e7570709376923b234f26758d62337c333dfefbf2def"
381
+ }
382
+ ]
383
+ }
datasets/codabench-hard.json ADDED
The diff for this file is too large to render. See raw diff
 
datasets/codabench.json ADDED
The diff for this file is too large to render. See raw diff
 
release_manifest.json ADDED
@@ -0,0 +1,391 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "huggingface_release_current_benchmark",
3
+ "source_eval_environment": "/public/home/datalabzyx/DataDiscovery/Kaggle/analyze_code/eval_stages/eval_environment/eval_run_260118_finalset_AGENT_swe-agent-gpt-5.2_20260331",
4
+ "question_files": [
5
+ "codabench.json",
6
+ "codabench-hard.json"
7
+ ],
8
+ "num_release_communities": 53,
9
+ "num_full_questions": 1202,
10
+ "num_hard_questions": 152,
11
+ "copied_community_roots": 53,
12
+ "copied_instance_full_community_dirs": 1204,
13
+ "copied_dataset_entries_before_dedup": 1110,
14
+ "missing_env_dirs": [],
15
+ "community_map": {
16
+ "da_expand_communities/community_0": {
17
+ "community_id": "community_0",
18
+ "source_type": "da_expand_communities",
19
+ "source_community": "community_0",
20
+ "source_env_dir": "da_expand_communities_community_0",
21
+ "data_path": "data/community_0/full_community"
22
+ },
23
+ "da_expand_communities/community_2": {
24
+ "community_id": "community_1",
25
+ "source_type": "da_expand_communities",
26
+ "source_community": "community_2",
27
+ "source_env_dir": "da_expand_communities_community_2",
28
+ "data_path": "data/community_1/full_community"
29
+ },
30
+ "da_expand_communities/community_4": {
31
+ "community_id": "community_2",
32
+ "source_type": "da_expand_communities",
33
+ "source_community": "community_4",
34
+ "source_env_dir": "da_expand_communities_community_4",
35
+ "data_path": "data/community_2/full_community"
36
+ },
37
+ "da_expand_communities/community_8": {
38
+ "community_id": "community_3",
39
+ "source_type": "da_expand_communities",
40
+ "source_community": "community_8",
41
+ "source_env_dir": "da_expand_communities_community_8",
42
+ "data_path": "data/community_3/full_community"
43
+ },
44
+ "da_expand_communities/community_15": {
45
+ "community_id": "community_4",
46
+ "source_type": "da_expand_communities",
47
+ "source_community": "community_15",
48
+ "source_env_dir": "da_expand_communities_community_15",
49
+ "data_path": "data/community_4/full_community"
50
+ },
51
+ "da_expand_communities/community_24": {
52
+ "community_id": "community_5",
53
+ "source_type": "da_expand_communities",
54
+ "source_community": "community_24",
55
+ "source_env_dir": "da_expand_communities_community_24",
56
+ "data_path": "data/community_5/full_community"
57
+ },
58
+ "da_expand_communities/community_25": {
59
+ "community_id": "community_6",
60
+ "source_type": "da_expand_communities",
61
+ "source_community": "community_25",
62
+ "source_env_dir": "da_expand_communities_community_25",
63
+ "data_path": "data/community_6/full_community"
64
+ },
65
+ "da_expand_communities/community_27": {
66
+ "community_id": "community_7",
67
+ "source_type": "da_expand_communities",
68
+ "source_community": "community_27",
69
+ "source_env_dir": "da_expand_communities_community_27",
70
+ "data_path": "data/community_7/full_community"
71
+ },
72
+ "da_expand_communities/community_33": {
73
+ "community_id": "community_8",
74
+ "source_type": "da_expand_communities",
75
+ "source_community": "community_33",
76
+ "source_env_dir": "da_expand_communities_community_33",
77
+ "data_path": "data/community_8/full_community"
78
+ },
79
+ "da_expand_communities/community_40": {
80
+ "community_id": "community_9",
81
+ "source_type": "da_expand_communities",
82
+ "source_community": "community_40",
83
+ "source_env_dir": "da_expand_communities_community_40",
84
+ "data_path": "data/community_9/full_community"
85
+ },
86
+ "da_expand_communities/community_43": {
87
+ "community_id": "community_10",
88
+ "source_type": "da_expand_communities",
89
+ "source_community": "community_43",
90
+ "source_env_dir": "da_expand_communities_community_43",
91
+ "data_path": "data/community_10/full_community"
92
+ },
93
+ "da_expand_communities/community_44": {
94
+ "community_id": "community_11",
95
+ "source_type": "da_expand_communities",
96
+ "source_community": "community_44",
97
+ "source_env_dir": "da_expand_communities_community_44",
98
+ "data_path": "data/community_11/full_community"
99
+ },
100
+ "da_expand_communities/community_49": {
101
+ "community_id": "community_12",
102
+ "source_type": "da_expand_communities",
103
+ "source_community": "community_49",
104
+ "source_env_dir": "da_expand_communities_community_49",
105
+ "data_path": "data/community_12/full_community"
106
+ },
107
+ "da_expand_communities/community_50": {
108
+ "community_id": "community_13",
109
+ "source_type": "da_expand_communities",
110
+ "source_community": "community_50",
111
+ "source_env_dir": "da_expand_communities_community_50",
112
+ "data_path": "data/community_13/full_community"
113
+ },
114
+ "da_expand_communities/community_60": {
115
+ "community_id": "community_14",
116
+ "source_type": "da_expand_communities",
117
+ "source_community": "community_60",
118
+ "source_env_dir": "da_expand_communities_community_60",
119
+ "data_path": "data/community_14/full_community"
120
+ },
121
+ "da_expand_communities/community_64": {
122
+ "community_id": "community_15",
123
+ "source_type": "da_expand_communities",
124
+ "source_community": "community_64",
125
+ "source_env_dir": "da_expand_communities_community_64",
126
+ "data_path": "data/community_15/full_community"
127
+ },
128
+ "da_expand_communities/community_65": {
129
+ "community_id": "community_16",
130
+ "source_type": "da_expand_communities",
131
+ "source_community": "community_65",
132
+ "source_env_dir": "da_expand_communities_community_65",
133
+ "data_path": "data/community_16/full_community"
134
+ },
135
+ "da_expand_communities/community_73": {
136
+ "community_id": "community_17",
137
+ "source_type": "da_expand_communities",
138
+ "source_community": "community_73",
139
+ "source_env_dir": "da_expand_communities_community_73",
140
+ "data_path": "data/community_17/full_community"
141
+ },
142
+ "da_expand_communities/community_84": {
143
+ "community_id": "community_18",
144
+ "source_type": "da_expand_communities",
145
+ "source_community": "community_84",
146
+ "source_env_dir": "da_expand_communities_community_84",
147
+ "data_path": "data/community_18/full_community"
148
+ },
149
+ "da_expand_communities/community_85": {
150
+ "community_id": "community_19",
151
+ "source_type": "da_expand_communities",
152
+ "source_community": "community_85",
153
+ "source_env_dir": "da_expand_communities_community_85",
154
+ "data_path": "data/community_19/full_community"
155
+ },
156
+ "da_expand_communities/community_103": {
157
+ "community_id": "community_20",
158
+ "source_type": "da_expand_communities",
159
+ "source_community": "community_103",
160
+ "source_env_dir": "da_expand_communities_community_103",
161
+ "data_path": "data/community_20/full_community"
162
+ },
163
+ "da_expand_communities/community_123": {
164
+ "community_id": "community_21",
165
+ "source_type": "da_expand_communities",
166
+ "source_community": "community_123",
167
+ "source_env_dir": "da_expand_communities_community_123",
168
+ "data_path": "data/community_21/full_community"
169
+ },
170
+ "da_expand_communities/community_143": {
171
+ "community_id": "community_22",
172
+ "source_type": "da_expand_communities",
173
+ "source_community": "community_143",
174
+ "source_env_dir": "da_expand_communities_community_143",
175
+ "data_path": "data/community_22/full_community"
176
+ },
177
+ "da_expand_communities/community_154": {
178
+ "community_id": "community_23",
179
+ "source_type": "da_expand_communities",
180
+ "source_community": "community_154",
181
+ "source_env_dir": "da_expand_communities_community_154",
182
+ "data_path": "data/community_23/full_community"
183
+ },
184
+ "da_expand_communities/community_171": {
185
+ "community_id": "community_24",
186
+ "source_type": "da_expand_communities",
187
+ "source_community": "community_171",
188
+ "source_env_dir": "da_expand_communities_community_171",
189
+ "data_path": "data/community_24/full_community"
190
+ },
191
+ "da_expand_communities/community_211": {
192
+ "community_id": "community_25",
193
+ "source_type": "da_expand_communities",
194
+ "source_community": "community_211",
195
+ "source_env_dir": "da_expand_communities_community_211",
196
+ "data_path": "data/community_25/full_community"
197
+ },
198
+ "da_filter_communities/community_0": {
199
+ "community_id": "community_26",
200
+ "source_type": "da_filter_communities",
201
+ "source_community": "community_0",
202
+ "source_env_dir": "da_filter_communities_community_0",
203
+ "data_path": "data/community_26/full_community"
204
+ },
205
+ "da_filter_communities/community_2": {
206
+ "community_id": "community_27",
207
+ "source_type": "da_filter_communities",
208
+ "source_community": "community_2",
209
+ "source_env_dir": "da_filter_communities_community_2",
210
+ "data_path": "data/community_27/full_community"
211
+ },
212
+ "da_filter_communities/community_4": {
213
+ "community_id": "community_28",
214
+ "source_type": "da_filter_communities",
215
+ "source_community": "community_4",
216
+ "source_env_dir": "da_filter_communities_community_4",
217
+ "data_path": "data/community_28/full_community"
218
+ },
219
+ "da_filter_communities/community_8": {
220
+ "community_id": "community_29",
221
+ "source_type": "da_filter_communities",
222
+ "source_community": "community_8",
223
+ "source_env_dir": "da_filter_communities_community_8",
224
+ "data_path": "data/community_29/full_community"
225
+ },
226
+ "da_filter_communities/community_15": {
227
+ "community_id": "community_30",
228
+ "source_type": "da_filter_communities",
229
+ "source_community": "community_15",
230
+ "source_env_dir": "da_filter_communities_community_15",
231
+ "data_path": "data/community_30/full_community"
232
+ },
233
+ "da_filter_communities/community_24": {
234
+ "community_id": "community_31",
235
+ "source_type": "da_filter_communities",
236
+ "source_community": "community_24",
237
+ "source_env_dir": "da_filter_communities_community_24",
238
+ "data_path": "data/community_31/full_community"
239
+ },
240
+ "da_filter_communities/community_25": {
241
+ "community_id": "community_32",
242
+ "source_type": "da_filter_communities",
243
+ "source_community": "community_25",
244
+ "source_env_dir": "da_filter_communities_community_25",
245
+ "data_path": "data/community_32/full_community"
246
+ },
247
+ "da_filter_communities/community_27": {
248
+ "community_id": "community_33",
249
+ "source_type": "da_filter_communities",
250
+ "source_community": "community_27",
251
+ "source_env_dir": "da_filter_communities_community_27",
252
+ "data_path": "data/community_33/full_community"
253
+ },
254
+ "da_filter_communities/community_33": {
255
+ "community_id": "community_34",
256
+ "source_type": "da_filter_communities",
257
+ "source_community": "community_33",
258
+ "source_env_dir": "da_filter_communities_community_33",
259
+ "data_path": "data/community_34/full_community"
260
+ },
261
+ "da_filter_communities/community_37": {
262
+ "community_id": "community_35",
263
+ "source_type": "da_filter_communities",
264
+ "source_community": "community_37",
265
+ "source_env_dir": "da_filter_communities_community_37",
266
+ "data_path": "data/community_35/full_community"
267
+ },
268
+ "da_filter_communities/community_40": {
269
+ "community_id": "community_36",
270
+ "source_type": "da_filter_communities",
271
+ "source_community": "community_40",
272
+ "source_env_dir": "da_filter_communities_community_40",
273
+ "data_path": "data/community_36/full_community"
274
+ },
275
+ "da_filter_communities/community_43": {
276
+ "community_id": "community_37",
277
+ "source_type": "da_filter_communities",
278
+ "source_community": "community_43",
279
+ "source_env_dir": "da_filter_communities_community_43",
280
+ "data_path": "data/community_37/full_community"
281
+ },
282
+ "da_filter_communities/community_44": {
283
+ "community_id": "community_38",
284
+ "source_type": "da_filter_communities",
285
+ "source_community": "community_44",
286
+ "source_env_dir": "da_filter_communities_community_44",
287
+ "data_path": "data/community_38/full_community"
288
+ },
289
+ "da_filter_communities/community_49": {
290
+ "community_id": "community_39",
291
+ "source_type": "da_filter_communities",
292
+ "source_community": "community_49",
293
+ "source_env_dir": "da_filter_communities_community_49",
294
+ "data_path": "data/community_39/full_community"
295
+ },
296
+ "da_filter_communities/community_50": {
297
+ "community_id": "community_40",
298
+ "source_type": "da_filter_communities",
299
+ "source_community": "community_50",
300
+ "source_env_dir": "da_filter_communities_community_50",
301
+ "data_path": "data/community_40/full_community"
302
+ },
303
+ "da_filter_communities/community_54": {
304
+ "community_id": "community_41",
305
+ "source_type": "da_filter_communities",
306
+ "source_community": "community_54",
307
+ "source_env_dir": "da_filter_communities_community_54",
308
+ "data_path": "data/community_41/full_community"
309
+ },
310
+ "da_filter_communities/community_60": {
311
+ "community_id": "community_42",
312
+ "source_type": "da_filter_communities",
313
+ "source_community": "community_60",
314
+ "source_env_dir": "da_filter_communities_community_60",
315
+ "data_path": "data/community_42/full_community"
316
+ },
317
+ "da_filter_communities/community_65": {
318
+ "community_id": "community_43",
319
+ "source_type": "da_filter_communities",
320
+ "source_community": "community_65",
321
+ "source_env_dir": "da_filter_communities_community_65",
322
+ "data_path": "data/community_43/full_community"
323
+ },
324
+ "da_filter_communities/community_90": {
325
+ "community_id": "community_44",
326
+ "source_type": "da_filter_communities",
327
+ "source_community": "community_90",
328
+ "source_env_dir": "da_filter_communities_community_90",
329
+ "data_path": "data/community_44/full_community"
330
+ },
331
+ "da_filter_communities/community_103": {
332
+ "community_id": "community_45",
333
+ "source_type": "da_filter_communities",
334
+ "source_community": "community_103",
335
+ "source_env_dir": "da_filter_communities_community_103",
336
+ "data_path": "data/community_45/full_community"
337
+ },
338
+ "da_filter_communities/community_129": {
339
+ "community_id": "community_46",
340
+ "source_type": "da_filter_communities",
341
+ "source_community": "community_129",
342
+ "source_env_dir": "da_filter_communities_community_129",
343
+ "data_path": "data/community_46/full_community"
344
+ },
345
+ "da_filter_communities/community_136": {
346
+ "community_id": "community_47",
347
+ "source_type": "da_filter_communities",
348
+ "source_community": "community_136",
349
+ "source_env_dir": "da_filter_communities_community_136",
350
+ "data_path": "data/community_47/full_community"
351
+ },
352
+ "da_filter_communities/community_153": {
353
+ "community_id": "community_48",
354
+ "source_type": "da_filter_communities",
355
+ "source_community": "community_153",
356
+ "source_env_dir": "da_filter_communities_community_153",
357
+ "data_path": "data/community_48/full_community"
358
+ },
359
+ "da_filter_communities/community_154": {
360
+ "community_id": "community_49",
361
+ "source_type": "da_filter_communities",
362
+ "source_community": "community_154",
363
+ "source_env_dir": "da_filter_communities_community_154",
364
+ "data_path": "data/community_49/full_community"
365
+ },
366
+ "da_filter_communities/community_175": {
367
+ "community_id": "community_50",
368
+ "source_type": "da_filter_communities",
369
+ "source_community": "community_175",
370
+ "source_env_dir": "da_filter_communities_community_175",
371
+ "data_path": "data/community_50/full_community"
372
+ },
373
+ "da_filter_communities/community_194": {
374
+ "community_id": "community_51",
375
+ "source_type": "da_filter_communities",
376
+ "source_community": "community_194",
377
+ "source_env_dir": "da_filter_communities_community_194",
378
+ "data_path": "data/community_51/full_community"
379
+ },
380
+ "da_filter_communities/community_200": {
381
+ "community_id": "community_52",
382
+ "source_type": "da_filter_communities",
383
+ "source_community": "community_200",
384
+ "source_env_dir": "da_filter_communities_community_200",
385
+ "data_path": "data/community_52/full_community"
386
+ }
387
+ },
388
+ "copy_policy": "All data files are copied with symlinks dereferenced; root result.txt and task_description.txt are excluded.",
389
+ "archives_manifest": "archives_manifest.json",
390
+ "archive_policy": "Data is published as one tar.zst archive per release community. Each archive extracts to the data_path referenced by the question JSON."
391
+ }
scripts/build_release.py ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Build the Hugging Face release layout for the current benchmark."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import json
7
+ import shutil
8
+ from pathlib import Path
9
+
10
+
11
+ ROOT = Path(__file__).resolve().parents[5]
12
+ EVAL_STAGES = ROOT / "Kaggle" / "analyze_code" / "eval_stages"
13
+ HF_DIR = EVAL_STAGES / "huggingface_version"
14
+ QUESTION_SRC = EVAL_STAGES / "supplementmaterial" / "datasets"
15
+ ENV_DIR = (
16
+ EVAL_STAGES
17
+ / "eval_environment"
18
+ / "eval_run_260118_finalset_AGENT_swe-agent-gpt-5.2_20260331"
19
+ )
20
+
21
+ QUESTION_FILES = ("codabench.json", "codabench-hard.json")
22
+ SKIP_ROOT_FILES = {"result.txt", "task_description.txt"}
23
+
24
+
25
+ def community_sort_key(pair: tuple[str, str]) -> tuple[str, int]:
26
+ source_type, community = pair
27
+ return source_type, int(community.rsplit("_", 1)[1])
28
+
29
+
30
+ def load_questions() -> dict[str, list[dict]]:
31
+ return {
32
+ name: json.loads((QUESTION_SRC / name).read_text(encoding="utf-8"))
33
+ for name in QUESTION_FILES
34
+ }
35
+
36
+
37
+ def write_json(path: Path, data: object) -> None:
38
+ path.parent.mkdir(parents=True, exist_ok=True)
39
+ path.write_text(
40
+ json.dumps(data, ensure_ascii=False, indent=2) + "\n",
41
+ encoding="utf-8",
42
+ )
43
+
44
+
45
+ def copy_tree_deref(src: Path, dst: Path) -> None:
46
+ """Copy a file or directory while dereferencing symlinks."""
47
+ if src.is_dir():
48
+ shutil.copytree(src, dst, symlinks=False, dirs_exist_ok=True)
49
+ elif src.is_file():
50
+ dst.parent.mkdir(parents=True, exist_ok=True)
51
+ shutil.copy2(src, dst, follow_symlinks=True)
52
+
53
+
54
+ def build() -> dict:
55
+ questions_by_file = load_questions()
56
+ all_pairs = sorted(
57
+ {
58
+ (item["source_type"], item["community"])
59
+ for rows in questions_by_file.values()
60
+ for item in rows
61
+ },
62
+ key=community_sort_key,
63
+ )
64
+
65
+ community_map = {
66
+ f"{source_type}/{community}": {
67
+ "community_id": f"community_{idx}",
68
+ "source_type": source_type,
69
+ "source_community": community,
70
+ "source_env_dir": f"{source_type}_{community}",
71
+ "data_path": f"data/community_{idx}/full_community",
72
+ }
73
+ for idx, (source_type, community) in enumerate(all_pairs)
74
+ }
75
+
76
+ datasets_dir = HF_DIR / "datasets"
77
+ data_dir = HF_DIR / "data"
78
+ datasets_dir.mkdir(parents=True, exist_ok=True)
79
+ data_dir.mkdir(parents=True, exist_ok=True)
80
+
81
+ for name, rows in questions_by_file.items():
82
+ enriched = []
83
+ for item in rows:
84
+ key = f"{item['source_type']}/{item['community']}"
85
+ mapped = community_map[key]
86
+ enriched.append(
87
+ {
88
+ **item,
89
+ "release_community": mapped["community_id"],
90
+ "data_path": mapped["data_path"],
91
+ }
92
+ )
93
+ write_json(datasets_dir / name, enriched)
94
+
95
+ copied_roots = 0
96
+ copied_instances = 0
97
+ copied_dataset_entries = 0
98
+ missing_env_dirs: list[str] = []
99
+
100
+ for community_index, (source_key, mapped) in enumerate(community_map.items(), start=1):
101
+ env_comm_dir = ENV_DIR / mapped["source_env_dir"]
102
+ dst_full = HF_DIR / mapped["data_path"]
103
+ dst_full.mkdir(parents=True, exist_ok=True)
104
+ copied_entry_names: set[str] = set()
105
+ print(
106
+ f"[{community_index}/{len(community_map)}] {source_key} -> {mapped['community_id']}",
107
+ flush=True,
108
+ )
109
+
110
+ if not env_comm_dir.is_dir():
111
+ missing_env_dirs.append(str(env_comm_dir))
112
+ continue
113
+
114
+ instance_dirs = sorted(
115
+ (p for p in env_comm_dir.glob("instance_*") if p.is_dir()),
116
+ key=lambda p: int(p.name.rsplit("_", 1)[1]),
117
+ )
118
+ for instance_dir in instance_dirs:
119
+ full_dir = instance_dir / "full_community"
120
+ if not full_dir.is_dir():
121
+ continue
122
+ copied_instances += 1
123
+ for entry in full_dir.iterdir():
124
+ if entry.name in SKIP_ROOT_FILES:
125
+ continue
126
+ if entry.name in copied_entry_names:
127
+ continue
128
+ if (dst_full / entry.name).exists():
129
+ copied_entry_names.add(entry.name)
130
+ continue
131
+ copy_tree_deref(entry, dst_full / entry.name)
132
+ copied_entry_names.add(entry.name)
133
+ copied_dataset_entries += 1
134
+ copied_roots += 1
135
+
136
+ manifest = {
137
+ "name": "huggingface_release_current_benchmark",
138
+ "source_eval_environment": str(ENV_DIR),
139
+ "question_files": list(QUESTION_FILES),
140
+ "num_release_communities": len(community_map),
141
+ "num_full_questions": len(questions_by_file["codabench.json"]),
142
+ "num_hard_questions": len(questions_by_file["codabench-hard.json"]),
143
+ "copied_community_roots": copied_roots,
144
+ "copied_instance_full_community_dirs": copied_instances,
145
+ "copied_dataset_entries_before_dedup": copied_dataset_entries,
146
+ "missing_env_dirs": missing_env_dirs,
147
+ "community_map": community_map,
148
+ "copy_policy": "All data files are copied with symlinks dereferenced; root result.txt and task_description.txt are excluded.",
149
+ }
150
+ write_json(HF_DIR / "release_manifest.json", manifest)
151
+
152
+ readme = """# Hugging Face Benchmark Release
153
+
154
+ This directory contains the current benchmark release split into question JSON files and copied data files.
155
+
156
+ - `datasets/codabench.json`: full benchmark questions.
157
+ - `datasets/codabench-hard.json`: hard subset questions.
158
+ - `data/community_*/full_community`: data directories referenced by the JSON `data_path` field.
159
+ - `release_manifest.json`: source-to-release community mapping and copy statistics.
160
+
161
+ The data copy dereferences the symlinks produced by `stage1_setup`, so the release contains actual file contents rather than symlink placeholders.
162
+ """
163
+ (HF_DIR / "README.md").write_text(readme, encoding="utf-8")
164
+ return manifest
165
+
166
+
167
+ if __name__ == "__main__":
168
+ result = build()
169
+ print(json.dumps(result, ensure_ascii=False, indent=2))
scripts/extract_archives.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Verify and extract benchmark data archives."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import hashlib
8
+ import json
9
+ import subprocess
10
+ from pathlib import Path
11
+
12
+
13
+ HF_DIR = Path(__file__).resolve().parents[1]
14
+ ARCHIVES_MANIFEST = HF_DIR / "archives_manifest.json"
15
+
16
+
17
+ def sha256_file(path: Path, chunk_size: int = 1024 * 1024 * 16) -> str:
18
+ digest = hashlib.sha256()
19
+ with path.open("rb") as handle:
20
+ for chunk in iter(lambda: handle.read(chunk_size), b""):
21
+ digest.update(chunk)
22
+ return digest.hexdigest()
23
+
24
+
25
+ def main() -> None:
26
+ parser = argparse.ArgumentParser()
27
+ parser.add_argument(
28
+ "--community",
29
+ action="append",
30
+ help="community id to extract, e.g. community_0. Can be repeated. Defaults to all.",
31
+ )
32
+ parser.add_argument("--skip-existing", action="store_true")
33
+ parser.add_argument("--no-verify", action="store_true")
34
+ args = parser.parse_args()
35
+
36
+ manifest = json.loads(ARCHIVES_MANIFEST.read_text(encoding="utf-8"))
37
+ wanted = set(args.community or [])
38
+
39
+ for record in manifest["archives"]:
40
+ community_id = record["community_id"]
41
+ if wanted and community_id not in wanted:
42
+ continue
43
+
44
+ archive_path = HF_DIR / record["archive_path"]
45
+ extract_path = HF_DIR / record["extracts_to"]
46
+ if args.skip_existing and extract_path.exists():
47
+ print(f"skip existing {community_id}")
48
+ continue
49
+
50
+ if not args.no_verify:
51
+ digest = sha256_file(archive_path)
52
+ if digest != record["sha256"]:
53
+ raise SystemExit(f"sha256 mismatch for {archive_path}")
54
+
55
+ print(f"extract {community_id}")
56
+ subprocess.run(
57
+ ["tar", "--use-compress-program", "zstd", "-xf", str(archive_path.relative_to(HF_DIR))],
58
+ cwd=HF_DIR,
59
+ check=True,
60
+ )
61
+
62
+
63
+ if __name__ == "__main__":
64
+ main()
scripts/package_archives.py ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Package release data directories into per-community tar.zst archives."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import hashlib
8
+ import json
9
+ import shutil
10
+ import subprocess
11
+ from datetime import datetime, timezone
12
+ from pathlib import Path
13
+
14
+
15
+ HF_DIR = Path(__file__).resolve().parents[1]
16
+ DATA_DIR = HF_DIR / "data"
17
+ ARCHIVES_DIR = HF_DIR / "archives"
18
+ ARCHIVES_MANIFEST = HF_DIR / "archives_manifest.json"
19
+ RELEASE_MANIFEST = HF_DIR / "release_manifest.json"
20
+
21
+
22
+ def community_key(path: Path) -> int:
23
+ return int(path.name.rsplit("_", 1)[1])
24
+
25
+
26
+ def sha256_file(path: Path, chunk_size: int = 1024 * 1024 * 16) -> str:
27
+ digest = hashlib.sha256()
28
+ with path.open("rb") as handle:
29
+ for chunk in iter(lambda: handle.read(chunk_size), b""):
30
+ digest.update(chunk)
31
+ return digest.hexdigest()
32
+
33
+
34
+ def load_json(path: Path) -> dict:
35
+ if not path.exists():
36
+ return {}
37
+ return json.loads(path.read_text(encoding="utf-8"))
38
+
39
+
40
+ def write_json(path: Path, data: object) -> None:
41
+ path.write_text(
42
+ json.dumps(data, ensure_ascii=False, indent=2) + "\n",
43
+ encoding="utf-8",
44
+ )
45
+
46
+
47
+ def archive_is_current(record: dict | None, archive_path: Path) -> bool:
48
+ return (
49
+ bool(record)
50
+ and archive_path.exists()
51
+ and record.get("size_bytes") == archive_path.stat().st_size
52
+ and bool(record.get("sha256"))
53
+ )
54
+
55
+
56
+ def build_archive(community_dir: Path, archive_path: Path, compression_level: int) -> None:
57
+ archive_path.parent.mkdir(parents=True, exist_ok=True)
58
+ tmp_path = archive_path.with_suffix(archive_path.suffix + ".tmp")
59
+ if tmp_path.exists():
60
+ tmp_path.unlink()
61
+
62
+ compressor = f"zstd -T0 -{compression_level}"
63
+ cmd = [
64
+ "tar",
65
+ "--use-compress-program",
66
+ compressor,
67
+ "-cf",
68
+ str(tmp_path.relative_to(HF_DIR)),
69
+ str(community_dir.relative_to(HF_DIR)),
70
+ ]
71
+ subprocess.run(cmd, cwd=HF_DIR, check=True)
72
+ tmp_path.replace(archive_path)
73
+
74
+
75
+ def main() -> None:
76
+ parser = argparse.ArgumentParser()
77
+ parser.add_argument("--level", type=int, default=6, help="zstd compression level")
78
+ parser.add_argument("--force", action="store_true", help="rebuild existing archives")
79
+ args = parser.parse_args()
80
+
81
+ if not shutil.which("zstd"):
82
+ raise SystemExit("zstd is required but was not found on PATH")
83
+
84
+ community_dirs = sorted(
85
+ (path for path in DATA_DIR.glob("community_*") if path.is_dir()),
86
+ key=community_key,
87
+ )
88
+ existing_manifest = load_json(ARCHIVES_MANIFEST)
89
+ existing_records = {
90
+ record["community_id"]: record
91
+ for record in existing_manifest.get("archives", [])
92
+ if "community_id" in record
93
+ }
94
+
95
+ records = []
96
+ for index, community_dir in enumerate(community_dirs, start=1):
97
+ community_id = community_dir.name
98
+ archive_path = ARCHIVES_DIR / f"{community_id}.tar.zst"
99
+ existing_record = existing_records.get(community_id)
100
+
101
+ print(f"[{index}/{len(community_dirs)}] {community_id}", flush=True)
102
+ if args.force or not archive_is_current(existing_record, archive_path):
103
+ build_archive(community_dir, archive_path, args.level)
104
+
105
+ size_bytes = archive_path.stat().st_size
106
+ digest = (
107
+ existing_record["sha256"]
108
+ if archive_is_current(existing_record, archive_path)
109
+ else sha256_file(archive_path)
110
+ )
111
+ records.append(
112
+ {
113
+ "community_id": community_id,
114
+ "archive_path": f"archives/{archive_path.name}",
115
+ "extracts_to": f"data/{community_id}",
116
+ "size_bytes": size_bytes,
117
+ "sha256": digest,
118
+ }
119
+ )
120
+
121
+ manifest = {
122
+ "created_at": datetime.now(timezone.utc).isoformat(),
123
+ "compression": {
124
+ "format": "tar.zst",
125
+ "zstd_level": args.level,
126
+ "command_template": "tar --use-compress-program 'zstd -T0 -LEVEL' -cf archives/community_N.tar.zst data/community_N",
127
+ },
128
+ "num_archives": len(records),
129
+ "total_size_bytes": sum(record["size_bytes"] for record in records),
130
+ "archives": records,
131
+ }
132
+ write_json(ARCHIVES_MANIFEST, manifest)
133
+
134
+ release_manifest = load_json(RELEASE_MANIFEST)
135
+ if release_manifest:
136
+ release_manifest["archives_manifest"] = "archives_manifest.json"
137
+ release_manifest["archive_policy"] = (
138
+ "Data is published as one tar.zst archive per release community. "
139
+ "Each archive extracts to the data_path referenced by the question JSON."
140
+ )
141
+ write_json(RELEASE_MANIFEST, release_manifest)
142
+
143
+ print(json.dumps(manifest, ensure_ascii=False, indent=2), flush=True)
144
+
145
+
146
+ if __name__ == "__main__":
147
+ main()