Download wp-calypso/client/my-sites/patterns/lib/encode-pattern-id.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 182 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/patterns/lib/encode-pattern-id.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/my-sites/patterns/lib/encode-pattern-id.ts
-
curl -L -o encode-pattern-id.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/my-sites/patterns/lib/encode-pattern-id.ts
182 Bytes
| import { PATTERN_SOURCE_SITE_ID } from 'calypso/my-sites/patterns/constants'; | |
| export const encodePatternId = ( patternId: number ) => | |
| `${ patternId }-${ PATTERN_SOURCE_SITE_ID }`; | |