Download content/fixtures/code.rs from akunasoftware/test-corpus: direct link, hf CLI and curl.
- Browser
- Download file 616 Bytes
-
https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.rs
- Command line
-
hf download hf://datasets/akunasoftware/test-corpus/content/fixtures/code.rs
-
curl -L -o code.rs https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.rs
616 Bytes
| struct Finding { | |
| area: &'static str, | |
| severity: &'static str, | |
| detail: &'static str, | |
| } | |
| fn describe(finding: &Finding) -> String { | |
| format!("{} [{}]: {}", finding.area, finding.severity, finding.detail) | |
| } | |
| fn main() { | |
| let findings = [ | |
| Finding { area: "layout", severity: "low", detail: "spacing checked" }, | |
| Finding { area: "copy", severity: "medium", detail: "extraction fixture marker: shared code sample" }, | |
| Finding { area: "links", severity: "low", detail: "anchors valid" }, | |
| ]; | |
| for finding in findings.iter() { | |
| println!("{}", describe(finding)); | |
| } | |
| } | |