Download next.js/.github/actions/next-stats-action/src/constants.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/.github/actions/next-stats-action/src/constants.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/.github/actions/next-stats-action/src/constants.js
-
curl -L -o constants.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/.github/actions/next-stats-action/src/constants.js
624 Bytes
| const path = require('path') | |
| const os = require('os') | |
| const fs = require('fs') | |
| const benchTitle = 'Page Load Tests' | |
| const workDir = fs.mkdtempSync(path.join(os.tmpdir(), 'next-stats')) | |
| const mainRepoDir = path.join(workDir, 'main-repo') | |
| const diffRepoDir = path.join(workDir, 'diff-repo') | |
| const statsAppDir = path.join(workDir, 'stats-app') | |
| const diffingDir = path.join(workDir, 'diff') | |
| const allowedConfigLocations = [ | |
| './', | |
| '.stats-app', | |
| 'test/.stats-app', | |
| '.github/.stats-app', | |
| ] | |
| module.exports = { | |
| benchTitle, | |
| workDir, | |
| diffingDir, | |
| mainRepoDir, | |
| diffRepoDir, | |
| statsAppDir, | |
| allowedConfigLocations, | |
| } | |