Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
MLCommons
/
croissant-editor
like
22
Running
App
Files
Files
Community
6a31b9a
croissant-editor
/
core
/
names.py
marcenacp
Initial commit
cb5b71d
about 1 year ago
raw
Copy download link
history
blame
Safe
211 Bytes
"""Module to handle naming of RecordSets and distribution."""
def
find_unique_name
(
names:
set
[
str
], name:
str
):
"""Find a unique UID."""
while
name
in
names:
name =
f"
{name}
_0"
return
name