Download examples/base-prompts.json from dotlabs/smolscript: direct link, hf CLI and curl.
- Browser
- Download file 4.01 kB
-
https://huggingface.co/datasets/dotlabs/smolscript/resolve/main/examples/base-prompts.json
- Command line
-
hf download hf://datasets/dotlabs/smolscript/examples/base-prompts.json
-
curl -L -o base-prompts.json https://huggingface.co/datasets/dotlabs/smolscript/resolve/main/examples/base-prompts.json
4.01 kB
| [ | |
| { | |
| "id": "smolscript-python-0015", | |
| "language": "python", | |
| "prompt_version": "smolscript-base-completion-v3", | |
| "completion_prompt": "# Starting with n, double it, then take the last decimal digit of its absolute value. Return the result.\n# Integer n from -120 to 120.\ndef solve(n):\n", | |
| "supplied_prefix": "def solve(n):\n" | |
| }, | |
| { | |
| "id": "smolscript-javascript-0010", | |
| "language": "javascript", | |
| "prompt_version": "smolscript-base-completion-v3", | |
| "completion_prompt": "// Starting with ASCII string s, replace each run of spaces with one space, then keep the first floor(length/2) characters. Return the result.\n// ASCII s of at most 80 characters, without newlines.\nfunction solve(s) {\n", | |
| "supplied_prefix": "function solve(s) {\n" | |
| }, | |
| { | |
| "id": "smolscript-html-0003", | |
| "language": "html", | |
| "prompt_version": "smolscript-base-completion-v3", | |
| "completion_prompt": "<!-- Create an h1 heading reading Welcome. On its outer element, set right-to-left direction via dir. -->\n<", | |
| "supplied_prefix": "<" | |
| }, | |
| { | |
| "id": "smolscript-css-0010", | |
| "language": "css", | |
| "prompt_version": "smolscript-base-completion-v3", | |
| "completion_prompt": "/* HTML fixture: <div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div> Existing CSS: * { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; } Style every element with class target: set font-weight to 700. Leave other elements unchanged. */\n", | |
| "supplied_prefix": "" | |
| }, | |
| { | |
| "id": "smolscript-cpp-0003", | |
| "language": "cpp", | |
| "prompt_version": "smolscript-base-completion-v3", | |
| "completion_prompt": "// Starting with n, clamp it to the inclusive range -5 to 5, then subtract it from ten. Return the result.\n// Integer n from -120 to 120.\n#include <iostream>\n#include <string>\n#include <vector>\n#include <algorithm>\n#include <cstdlib>\nlong long solve(long long n) {\n", | |
| "supplied_prefix": "long long solve(long long n) {\n" | |
| }, | |
| { | |
| "id": "smolscript-c-0001", | |
| "language": "c", | |
| "prompt_version": "smolscript-base-completion-v3", | |
| "completion_prompt": "// Starting with n, replace it with 1 if negative, otherwise 0, then add one. Return the result.\n// Integer n from -120 to 120.\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\nlong long solve(long long n) {\n", | |
| "supplied_prefix": "long long solve(long long n) {\n" | |
| }, | |
| { | |
| "id": "smolscript-lua-0001", | |
| "language": "lua", | |
| "prompt_version": "smolscript-base-completion-v3", | |
| "completion_prompt": "-- Starting with n, replace it with 1 if negative, otherwise 0, then add one. Return the result.\n-- Integer n from -120 to 120.\nfunction solve(n)\n", | |
| "supplied_prefix": "function solve(n)\n" | |
| }, | |
| { | |
| "id": "smolscript-csharp-0003", | |
| "language": "csharp", | |
| "prompt_version": "smolscript-base-completion-v3", | |
| "completion_prompt": "// Starting with n, clamp it to the inclusive range -5 to 5, then subtract it from ten. Return the result.\n// Integer n from -120 to 120.\nusing System;\nusing System.Linq;\nusing System.Collections.Generic;\npublic class Solution {\npublic static long Solve(long n) {\n", | |
| "supplied_prefix": "public class Solution {\npublic static long Solve(long n) {\n" | |
| }, | |
| { | |
| "id": "smolscript-rust-0002", | |
| "language": "rust", | |
| "prompt_version": "smolscript-base-completion-v3", | |
| "completion_prompt": "// Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then convert uppercase ASCII letters to lowercase. Return the result.\n// ASCII s of at most 80 characters, without newlines.\nuse std::io::{self, Read};\nfn solve(mut s: String) -> String {\n", | |
| "supplied_prefix": "fn solve(mut s: String) -> String {\n" | |
| } | |
| ] | |