Download static/j2s/JS/ContextToken.js from patonlab/cascade: direct link, hf CLI and curl.
- Browser
- Download file 927 Bytes
-
https://huggingface.co/spaces/patonlab/cascade/resolve/main/static/j2s/JS/ContextToken.js
- Command line
-
hf download hf://spaces/patonlab/cascade/static/j2s/JS/ContextToken.js
-
curl -L -o ContextToken.js https://huggingface.co/spaces/patonlab/cascade/resolve/main/static/j2s/JS/ContextToken.js
927 Bytes
| Clazz.declarePackage ("JS"); | |
| Clazz.load (["JS.T"], "JS.ContextToken", ["java.util.Hashtable", "JS.SV"], function () { | |
| c$ = Clazz.decorateAsClass (function () { | |
| this.contextVariables = null; | |
| this.forVars = null; | |
| this.name0 = null; | |
| Clazz.instantialize (this, arguments); | |
| }, JS, "ContextToken", JS.T); | |
| c$.newContext = Clazz.defineMethod (c$, "newContext", | |
| function (isOpen) { | |
| var ct = (isOpen ? JS.ContextToken.newCmd (1275335685, "{") : JS.ContextToken.newCmd (1275334681, "}")); | |
| ct.intValue = 0; | |
| return ct; | |
| }, "~B"); | |
| c$.newCmd = Clazz.defineMethod (c$, "newCmd", | |
| function (tok, value) { | |
| var ct = new JS.ContextToken (); | |
| ct.tok = tok; | |
| ct.value = value; | |
| return ct; | |
| }, "~N,~O"); | |
| Clazz.defineMethod (c$, "addName", | |
| function (name) { | |
| if (this.contextVariables == null) this.contextVariables = new java.util.Hashtable (); | |
| this.contextVariables.put (name, JS.SV.newS ("").setName (name)); | |
| }, "~S"); | |
| }); | |