Download content/fixtures/code.js from akunasoftware/test-corpus: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.js
- Command line
-
hf download hf://datasets/akunasoftware/test-corpus/content/fixtures/code.js
-
curl -L -o code.js https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.js
510 Bytes
| const shipments = [ | |
| { id: "A-104", status: "packed", note: "labels printed" }, | |
| { id: "B-208", status: "held", note: "extraction fixture marker: shared code sample" }, | |
| { id: "C-319", status: "packed", note: "ready for dispatch" }, | |
| ]; | |
| function summarizeHeldShipments(records) { | |
| return records | |
| .filter((record) => record.status === "held") | |
| .map((record) => `${record.id}: ${record.note}`); | |
| } | |
| for (const summary of summarizeHeldShipments(shipments)) { | |
| console.log(summary); | |
| } | |