File size: 4,008 Bytes
234f07a
 
 
 
fa26615
 
 
234f07a
 
 
 
fa26615
 
 
234f07a
 
 
 
fa26615
234f07a
 
 
 
 
 
fa26615
234f07a
 
 
 
 
 
fa26615
 
 
234f07a
 
 
 
fa26615
 
 
234f07a
 
 
 
fa26615
 
 
234f07a
 
 
 
fa26615
 
 
234f07a
 
 
 
fa26615
 
 
234f07a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[
  {
    "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"
  }
]