Download content/fixtures/code.php from akunasoftware/test-corpus: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.php
- Command line
-
hf download hf://datasets/akunasoftware/test-corpus/content/fixtures/code.php
-
curl -L -o code.php https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.php
667 Bytes
| declare(strict_types=1); | |
| final class QueueEntry | |
| { | |
| public function __construct( | |
| public readonly string $name, | |
| public readonly string $state, | |
| public readonly string $detail, | |
| ) {} | |
| } | |
| function describeEntry(QueueEntry $entry): string | |
| { | |
| return sprintf('%s [%s]: %s', $entry->name, $entry->state, $entry->detail); | |
| } | |
| $entries = [ | |
| new QueueEntry('parse', 'complete', 'front matter loaded'), | |
| new QueueEntry('extract', 'review', 'extraction fixture marker: shared code sample'), | |
| new QueueEntry('index', 'pending', 'search document queued'), | |
| ]; | |
| foreach ($entries as $entry) { | |
| echo describeEntry($entry) . PHP_EOL; | |
| } | |