File size: 1,100 Bytes
61790a1 | 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 | {
"sampling": "Greedy; completion wrapper normalizes trailing prefix whitespace. Generated code is unedited.",
"examples": [
{
"language": "python",
"prefix": "def add(a, b):\n",
"continuation": " return a + b\n\n"
},
{
"language": "javascript",
"prefix": "function add(a, b) {\n",
"continuation": " return a + b;\n}\n\n"
},
{
"language": "typescript",
"prefix": "function add(a: number, b: number): number {\n",
"continuation": " return a + b;\n}\n\n"
},
{
"language": "html",
"prefix": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n",
"continuation": " <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>Gallery 38</title>\n</head>\n<body>\n <main>\n <form action=\"/submit\" method=\"post\">\n <label for=\"name\">Name</label>\n <input id=\"name\" name=\"name\" type=\"text\" required>\n <button type=\"submit\">Send</button>\n </form>\n </main>\n</body>\n</html>\n\n"
}
]
} |