Download pool/shard002/JavaScript/0012708_Context.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard002/JavaScript/0012708_Context.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard002/JavaScript/0012708_Context.js
-
curl -L -o 0012708_Context.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard002/JavaScript/0012708_Context.js
537 Bytes
| /** | |
| * 执行上下文 | |
| * @returns {Function} | |
| * @constructor | |
| * @require System,Object; | |
| */ | |
| function Context( name ) | |
| { | |
| var current = function(name){ | |
| var children = current.children || (current.children={}); | |
| var c = children[name]; | |
| if( !c ) | |
| { | |
| c= children[name] = Context(name); | |
| c.parent = current; | |
| c.root = current.root || current; | |
| } | |
| return c; | |
| }; | |
| current.label = name; | |
| current.parent = null; | |
| current.scope = {}; | |
| return current; | |
| } |