Download content/fixtures/code.rb from akunasoftware/test-corpus: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.rb
- Command line
-
hf download hf://datasets/akunasoftware/test-corpus/content/fixtures/code.rb
-
curl -L -o code.rb https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.rb
381 Bytes
| Task = Data.define(:queue, :priority, :detail) | |
| def format_tasks(tasks) | |
| tasks.map do |task| | |
| "#{task.queue} priority #{task.priority}: #{task.detail}" | |
| end | |
| end | |
| tasks = [ | |
| Task.new("imports", 2, "source file received"), | |
| Task.new("reviews", 1, "extraction fixture marker: shared code sample"), | |
| Task.new("exports", 3, "summary report queued") | |
| ] | |
| puts(format_tasks(tasks)) | |