Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Datasets:
unitxt
/
data
like
0
Follow
Unitxt
2
ArXiv:
arxiv:
2401.14019
Dataset card
Files
Files and versions
Community
a75c035
data
/
utils.py
Elron
Upload utils.py with huggingface_hub
b548ba5
over 1 year ago
raw
Copy download link
history
blame
Safe
246 Bytes
import
abc
class
Singleton
(abc.ABC):
_instances = {}
def
__new__
(
cls, *args, **kwargs
):
if
cls
not
in
cls._instances:
cls._instances[cls] =
super
(Singleton, cls).__new__(cls)
return
cls._instances[cls]