lua_code_dataset / data.json
tfcbhop's picture
Updated „instruction“ to be uniform across all data
b055b9c verified
[
{
"instruction": "You are a Developer and you are tasked to do the task bellow",
"input": "Generate LUA Code that generates Fibonacci sequence up to n=10.",
"output": "function fibonacci(n)\n local fib = {0, 1}\n for i = 3, n do\n fib[i] = fib[i - 1] + fib[i - 2]\n end\n return fib\nend\n\nprint(table.concat(fibonacci(10), ', '))"
},
{
"instruction": "You are a Developer and you are tasked to do the task bellow",
"input": "Check if the string 'radar' is a palindrome using python.",
"output": "def is_palindrome(s):\n return s == s[::-1]\n\nprint(is_palindrome('radar'))"
}
]