Download pool/shard008/Python/0071443_init__.py from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard008/Python/0071443_init__.py
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard008/Python/0071443_init__.py
-
curl -L -o 0071443_init__.py https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard008/Python/0071443_init__.py
1.16 kB
| # -*- encoding: ascii -*- | |
| """ | |
| invoke tasks | |
| ~~~~~~~~~~~~ | |
| """ | |
| def namespace(): | |
| class adict(dict): | |
| def __init__(self, *args, **kwargs): | |
| dict.__init__(self, *args, **kwargs) | |
| self.__dict__ = self | |
| import contextlib as _contextlib | |
| import os as _os | |
| import sys as _sys | |
| root = _os.path.dirname(_os.path.dirname(_os.path.abspath(__file__))) | |
| def root_dir(): | |
| old = _os.getcwd() | |
| try: | |
| _os.chdir(root) | |
| yield root | |
| finally: | |
| _os.chdir(old) | |
| env = adict( | |
| package='hod', | |
| test=adict(ignore=[]), | |
| root_dir=root_dir, | |
| ) | |
| _sys.path.insert(0, _os.path.dirname( | |
| _os.path.dirname(_os.path.abspath(__file__)) | |
| )) | |
| class Vars(object): | |
| from . import ( | |
| build, | |
| check, | |
| clean, | |
| test, | |
| ) | |
| import invoke as _invoke | |
| result = _invoke.Collection(*[value for key, value in vars(Vars).items() | |
| if not key.startswith('__')]) | |
| result.configure(env) | |
| return result | |
| namespace = namespace() | |