verifiers 0.3.2.dev96__py3-none-any.whl → 0.3.2.dev97__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- verifiers/v1/utils/format.py +16 -5
- {verifiers-0.3.2.dev96.dist-info → verifiers-0.3.2.dev97.dist-info}/METADATA +1 -1
- {verifiers-0.3.2.dev96.dist-info → verifiers-0.3.2.dev97.dist-info}/RECORD +6 -6
- {verifiers-0.3.2.dev96.dist-info → verifiers-0.3.2.dev97.dist-info}/WHEEL +0 -0
- {verifiers-0.3.2.dev96.dist-info → verifiers-0.3.2.dev97.dist-info}/entry_points.txt +0 -0
- {verifiers-0.3.2.dev96.dist-info → verifiers-0.3.2.dev97.dist-info}/licenses/LICENSE +0 -0
verifiers/v1/utils/format.py
CHANGED
|
@@ -34,13 +34,24 @@ def format_count(n: int) -> str:
|
|
|
34
34
|
return f"{n / 1e6:.1f}M"
|
|
35
35
|
|
|
36
36
|
|
|
37
|
+
MAX_OVERRIDE_CHARS = 72
|
|
38
|
+
|
|
39
|
+
|
|
37
40
|
def format_override(value: object) -> str:
|
|
38
|
-
"""A value as one compact segment: dict `{k=v,k=v}`, list/tuple `[a,b]`, else `str
|
|
41
|
+
"""A value as one compact segment: dict `{k=v,k=v}`, list/tuple `[a,b]`, else `str`;
|
|
42
|
+
whitespace collapsed and cut to MAX_OVERRIDE_CHARS."""
|
|
39
43
|
if isinstance(value, dict):
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
text = "{" + ",".join(f"{k}={v}" for k, v in value.items()) + "}"
|
|
45
|
+
elif isinstance(value, (list, tuple)):
|
|
46
|
+
text = "[" + ",".join(str(v) for v in value) + "]"
|
|
47
|
+
else:
|
|
48
|
+
text = str(value)
|
|
49
|
+
text = " ".join(text.split())
|
|
50
|
+
return (
|
|
51
|
+
text
|
|
52
|
+
if len(text) <= MAX_OVERRIDE_CHARS
|
|
53
|
+
else text[: MAX_OVERRIDE_CHARS - 1] + "…"
|
|
54
|
+
)
|
|
44
55
|
|
|
45
56
|
|
|
46
57
|
def format_mean(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: verifiers
|
|
3
|
-
Version: 0.3.2.
|
|
3
|
+
Version: 0.3.2.dev97
|
|
4
4
|
Summary: Verifiers: Environments for LLM Reinforcement Learning
|
|
5
5
|
Project-URL: Homepage, https://github.com/primeintellect-ai/verifiers
|
|
6
6
|
Project-URL: Documentation, https://github.com/primeintellect-ai/verifiers
|
|
@@ -174,7 +174,7 @@ verifiers/v1/utils/aio.py,sha256=0yNFOqB2oO6Qktc6NI_ZSAGuo1aHsIK_wuT1BtmoZ3I,153
|
|
|
174
174
|
verifiers/v1/utils/artifacts.py,sha256=PFrSkwAyvzHyT6JjlFeGOPIXDmS-uRajaN3am4HZ0TI,9263
|
|
175
175
|
verifiers/v1/utils/compile.py,sha256=5pxy31wx2Q-3pQjOO5B9SH6OT-wwb8r4F1LAl6HMeQA,5835
|
|
176
176
|
verifiers/v1/utils/decorators.py,sha256=vhoN6YoKb15-Fkqmc9RaNlUIbt9WRvNK4zAn2bAxfS4,5367
|
|
177
|
-
verifiers/v1/utils/format.py,sha256=
|
|
177
|
+
verifiers/v1/utils/format.py,sha256=yX160sGewMMZn9iJqTHRbYYt4Z9pHasjMlFT1dXrKD8,2446
|
|
178
178
|
verifiers/v1/utils/generic.py,sha256=2VIN9RapMO9pVkFHB1UKUHck1vlTJ1pjfad2NzxuuXA,2055
|
|
179
179
|
verifiers/v1/utils/git.py,sha256=MTRinOvG4EddfjdahHkFZUihHmhJ37n5ROtgjzjE1NA,8366
|
|
180
180
|
verifiers/v1/utils/image.py,sha256=OFw_wdwVtbdwa8uJ3X3vYfhpUAi0CTH5HMBupjVsRRQ,282
|
|
@@ -188,8 +188,8 @@ verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,9
|
|
|
188
188
|
verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
|
|
189
189
|
verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
|
|
190
190
|
verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
|
|
191
|
-
verifiers-0.3.2.
|
|
192
|
-
verifiers-0.3.2.
|
|
193
|
-
verifiers-0.3.2.
|
|
194
|
-
verifiers-0.3.2.
|
|
195
|
-
verifiers-0.3.2.
|
|
191
|
+
verifiers-0.3.2.dev97.dist-info/METADATA,sha256=c7d5Cu1K-DvmYxjrcfVVCXROLK8U9sn9YgGJcz7ffCo,4237
|
|
192
|
+
verifiers-0.3.2.dev97.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
193
|
+
verifiers-0.3.2.dev97.dist-info/entry_points.txt,sha256=uqQje0TMsr7k6nXlWxlPs13Si0evb3pVCEDF6c-YL80,241
|
|
194
|
+
verifiers-0.3.2.dev97.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
|
|
195
|
+
verifiers-0.3.2.dev97.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|