Download wp-calypso/desktop/app/lib/state/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/state/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/desktop/app/lib/state/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/state/index.js
305 Bytes
| /** | |
| * Module variables | |
| */ | |
| let state = false; | |
| function State() { | |
| this.loggedIn = false; | |
| } | |
| State.prototype.setLogPath = function ( path ) { | |
| this.logPath = path; | |
| }; | |
| State.prototype.getLogPath = function () { | |
| return this.logPath; | |
| }; | |
| if ( ! state ) { | |
| state = new State(); | |
| } | |
| module.exports = state; | |