Download wp-calypso/client/reader/lib/site-description-blocklist/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/lib/site-description-blocklist/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/reader/lib/site-description-blocklist/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/lib/site-description-blocklist/index.js
545 Bytes
| const siteDescriptionBlocklist = new Set( [ | |
| 'Just another WordPress.com site', | |
| 'Just another WordPress site', | |
| "This WordPress.com site is the bee's knees", | |
| "This WordPress site is the bee's knees", | |
| 'A topnotch WordPress.com site', | |
| 'A topnotch WordPress site', | |
| ] ); | |
| /** | |
| * Is the provided site description name blocked? | |
| * @param {string} siteDescription Site description | |
| * @returns {boolean} True if blocked | |
| */ | |
| export const isSiteDescriptionBlocked = ( siteDescription ) => { | |
| return siteDescriptionBlocklist.has( siteDescription ); | |
| }; | |