[ { "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": "\n<", "supplied_prefix": "<" }, { "id": "smolscript-css-0010", "language": "css", "prompt_version": "smolscript-base-completion-v3", "completion_prompt": "/* HTML fixture:
AlphaOneTwo
Beta
Outside
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 \n#include \n#include \n#include \n#include \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 \n#include \n#include \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" } ]