Download task_038/tests/validate_semantics.js from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_038/tests/validate_semantics.js
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_038/tests/validate_semantics.js
-
curl -L -o validate_semantics.js https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_038/tests/validate_semantics.js
453 Bytes
| const fs=require('fs'),path=require('path'); | |
| function walk(d){return fs.readdirSync(d,{withFileTypes:true}).filter(e=>!['tests','logs','node_modules','.git'].includes(e.name)).flatMap(e=>e.isDirectory()?walk(path.join(d,e.name)):[path.join(d,e.name)])} | |
| if(!walk(process.cwd()).some(f=>/\.(html|svg|js|ts|tsx|jsx|md)$/i.test(f)))throw Error('missing candidate output'); | |
| console.log('candidate output present; requirements checked by runtime cases'); | |