Download content/fixtures/code.go from akunasoftware/test-corpus: direct link, hf CLI and curl.
- Browser
- Download file 587 Bytes
-
https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.go
- Command line
-
hf download hf://datasets/akunasoftware/test-corpus/content/fixtures/code.go
-
curl -L -o code.go https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.go
587 Bytes
| package main | |
| import "fmt" | |
| type Checkpoint struct { | |
| Name string | |
| Status string | |
| Detail string | |
| } | |
| func describe(checkpoint Checkpoint) string { | |
| return fmt.Sprintf("%s: %s (%s)", checkpoint.Name, checkpoint.Status, checkpoint.Detail) | |
| } | |
| func main() { | |
| checkpoints := []Checkpoint{ | |
| {Name: "ingest", Status: "ok", Detail: "rows normalized"}, | |
| {Name: "review", Status: "hold", Detail: "extraction fixture marker: shared code sample"}, | |
| {Name: "publish", Status: "ok", Detail: "index refreshed"}, | |
| } | |
| for _, checkpoint := range checkpoints { | |
| fmt.Println(describe(checkpoint)) | |
| } | |
| } | |