Team Ai
Datasetpublic

tfcbhop/lua_code_dataset

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
1likes25downloads
data.json12 linesDownload Raw Back to root
1[2  {3    "instruction": "You are a Developer and you are tasked to do the task bellow",4    "input": "Generate LUA Code that generates Fibonacci sequence up to n=10.",5    "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), ', '))"6  },7  {8    "instruction": "You are a Developer and you are tasked to do the task bellow",9    "input": "Check if the string 'radar' is a palindrome using python.",10    "output": "def is_palindrome(s):\n    return s == s[::-1]\n\nprint(is_palindrome('radar'))"11  }12]