Buckets:

download
raw
279 Bytes
# BSD 2-Clause License
# Short utility: clamp a value to [lo, hi].
def clamp(value: float, lo: float, hi: float) -> float:
"""Return value clamped to [lo, hi]."""
if lo > hi:
raise ValueError(f'lo ({lo}) must be <= hi ({hi})')
return max(lo, min(value, hi))

Xet Storage Details

Size:
279 Bytes
·
Xet hash:
037f6d9c9e69a5f66488b97eac951927d9466e39f5ea47d0e4495ad9f32586a4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.