Download pool/shard001/JavaScript/0006084_main.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard001/JavaScript/0006084_main.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard001/JavaScript/0006084_main.js
-
curl -L -o 0006084_main.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard001/JavaScript/0006084_main.js
497 Bytes
| function walk(node) { | |
| 'use strict'; | |
| var child, next; | |
| switch (node.nodeType){ | |
| case 1: | |
| case 9: | |
| case 11: | |
| child = node.firstChild; | |
| while (child) { | |
| next = child.nextSibling; | |
| walk(child); | |
| child = next; | |
| } | |
| break; | |
| case 3: | |
| var assmar = node.nodeValue; | |
| assmar = assmar.replace(/asthma/g, 'ass-mar'); | |
| assmar = assmar.replace(/Asthma/g, 'Ass-mar'); | |
| assmar = assmar.replace(/ASTHMA/g, 'ASS-MAR'); | |
| node.nodeValue = assmar; | |
| break; | |
| } | |
| } | |
| walk(document.body); |