Upload arko_incode_dataset.json with huggingface_hub
Browse files- arko_incode_dataset.json +50 -0
arko_incode_dataset.json
CHANGED
|
@@ -28,5 +28,55 @@
|
|
| 28 |
"instruction": "Crea una funci贸n Luau que salude a un jugador.",
|
| 29 |
"input": "",
|
| 30 |
"output": "local function saludarJugador(player)\n print(\"Hola, \" .. player.Name .. \"!\")\nend"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
]
|
|
|
|
| 28 |
"instruction": "Crea una funci贸n Luau que salude a un jugador.",
|
| 29 |
"input": "",
|
| 30 |
"output": "local function saludarJugador(player)\n print(\"Hola, \" .. player.Name .. \"!\")\nend"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"instruction": "Crea una funci贸n JavaScript que compruebe si un n煤mero es par.",
|
| 34 |
+
"input": "",
|
| 35 |
+
"output": "function esPar(numero) {\n return numero % 2 === 0;\n}"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"instruction": "Crea un bucle Python que imprima los n煤meros del 1 al 10.",
|
| 39 |
+
"input": "",
|
| 40 |
+
"output": "for i in range(1, 11):\n print(i)"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"instruction": "Corrige este c贸digo Python.",
|
| 44 |
+
"input": "def sumar(a, b)\n return a + b",
|
| 45 |
+
"output": "def sumar(a, b):\n return a + b"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"instruction": "Crea un bot贸n HTML con un evento JavaScript.",
|
| 49 |
+
"input": "",
|
| 50 |
+
"output": "<button id=\"boton\">Presionar</button>\n\n<script>\ndocument.getElementById(\"boton\").addEventListener(\"click\", () => {\n console.log(\"Bot贸n presionado\");\n});\n</script>"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"instruction": "Crea una funci贸n Luau que encuentre a un jugador por nombre.",
|
| 54 |
+
"input": "",
|
| 55 |
+
"output": "local Players = game:GetService(\"Players\")\n\nlocal function buscarJugador(nombre)\n return Players:FindFirstChild(nombre)\nend"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"instruction": "Explica qu茅 hace este c贸digo JavaScript.",
|
| 59 |
+
"input": "const nombres = [\"Ana\", \"Luis\", \"Carlos\"];",
|
| 60 |
+
"output": "Crea un array llamado nombres que contiene tres cadenas de texto: Ana, Luis y Carlos."
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"instruction": "Crea una funci贸n Python que devuelva el n煤mero mayor entre dos n煤meros.",
|
| 64 |
+
"input": "",
|
| 65 |
+
"output": "def mayor(a, b):\n return max(a, b)"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"instruction": "Corrige este HTML.",
|
| 69 |
+
"input": "<button>Hola<button>",
|
| 70 |
+
"output": "<button>Hola</button>"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"instruction": "Crea una funci贸n JavaScript que convierta grados Celsius a Fahrenheit.",
|
| 74 |
+
"input": "",
|
| 75 |
+
"output": "function celsiusAFahrenheit(celsius) {\n return (celsius * 9 / 5) + 32;\n}"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"instruction": "Crea una funci贸n Luau que cree una Part.",
|
| 79 |
+
"input": "",
|
| 80 |
+
"output": "local part = Instance.new(\"Part\")\npart.Parent = workspace"
|
| 81 |
}
|
| 82 |
]
|