Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DunbrackLab/IPSAE
/ format_range
Function
format_range
ipsae.py:278–282 ·
view source on GitHub ↗
(start, end)
Source
from the content-addressed store, hash-verified
276
ranges = []
# List to store ranges
277
278
def
format_range(start, end):
279
if
start == end:
280
return
f
"{start}"
281
else
:
282
return
f
"{start}-{end}"
283
284
for
number in sorted_numbers[1:]:
285
if
number == end + 1:
Callers
1
contiguous_ranges
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected