Download spectrum/api/queries/user/githubProfile.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 253 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/user/githubProfile.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/queries/user/githubProfile.js
-
curl -L -o githubProfile.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/user/githubProfile.js
253 Bytes
| // @flow | |
| import type { DBUser } from 'shared/types'; | |
| export default ({ githubProviderId, githubUsername }: DBUser) => { | |
| if (!githubProviderId || !githubUsername) return null; | |
| return { | |
| id: githubProviderId, | |
| username: githubUsername, | |
| }; | |
| }; | |