conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Add htop float terminal to neovim config\n"
},
{
"from": "human",
"value": "require(\"toggleterm\").setup{\n size = 20,\n open_mapping = [[<c-\\>]],\n hide_numbers = true, -- hide the number column in toggleterm buffers\n shade_filetypes = {},\n shade_terminals... | lua | chosen |
[
{
"from": "system",
"value": "Add router multiple params test\n"
},
{
"from": "human",
"value": "require 'spec/spec_helper'\n\ndescribe(\"Router\", function()\n\n before_each(function()\n router = require 'core/router'\n routes = require('core/routes')\n router.dispatcher... | lua | chosen |
[
{
"from": "system",
"value": "Add findFirstChild to binder util\n"
},
{
"from": "human",
"value": "--- Utility methods for binders\n-- @module BinderUtil\n\nlocal BinderUtil = {}\n\nfunction BinderUtil.findFirstAncestor(binder, child)\n\tassert(binder)\n\tassert(typeof(child) == \"Instance\")\n\... | lua | chosen |
[
{
"from": "system",
"value": "Add test for metatable operations which combine __mode and other tags.\n"
},
{
"from": "human",
"value": "package.path = \"?.lua;src/test/res/?.lua\"\nrequire 'ids'\n\n-- The purpose of this test case is to demonstrate that\n-- basic metatable operations on non-tabl... | lua | chosen |
[
{
"from": "system",
"value": "Bump release version to v0.0.48\n"
},
{
"from": "human",
"value": "function love.conf(t)\n t.title = \"Journey to the Center of Hawkthorne v0.0.47\"\n t.author = \"Kyle Conroy\"\n t.version = \"0.8.0\"\n t.identity ... | lua | chosen |
[
{
"from": "system",
"value": "Use IBM Plex Mono font. Turn on line wrapping."
},
{
"from": "human",
"value": "-- 4 spaces FTW!\nbuffer.tab_width = 4\nbuffer.use_tabs = false\n-- Increase font size for GUI:\nbuffer:set_theme(\n 'light',\n {\n fontsize = 18\n }\n)\n-- Interpret PIC... | lua | chosen |
[
{
"from": "system",
"value": "Disable WezTerm warning about missing glyphs\n"
},
{
"from": "human",
"value": "local wezterm = require('wezterm')\n\nlocal function scheme_for_appearance(appearance)\n if appearance:find 'Dark' then\n return 'OneDark (base16)'\n else\n return 'One Light (ba... | lua | chosen |
[
{
"from": "system",
"value": "Fix the officer note warning to not allow the edit of a note unless a\nuser clicks accept.\n"
},
{
"from": "human",
"value": "local mod = EPGP:NewModule(\"EPGP_OfficerNoteWarning\", \"AceHook-3.0\")\n\nlocal L = LibStub:GetLibrary(\"AceLocale-3.0\"):GetLocale(\"EPGP... | lua | chosen |
[
{
"from": "system",
"value": "Use luvi 2.7.6-2-sigar for Windows build\n"
},
{
"from": "human",
"value": "return {\n name = \"rackspace-monitoring-agent\",\n version = \"2.6.22\",\n luvi = {\n version = \"2.9.3-sigar\",\n flavor = \"sigar\",\n url = \"https://github.com/virgo-agent-t... | lua | chosen |
[
{
"from": "system",
"value": "Add a test for nested groups, which fails.\n"
},
{
"from": "human",
"value": "local assertEq = test.assertEq\nlocal function log(x) test.log(tostring(x) .. \"\\n\") end\nlocal vi_regex = require('regex.regex')\nlocal compile = vi_regex.compile\n\nlocal pat\n\npat = ... | lua | chosen |
[
{
"from": "system",
"value": "Fix a small bug that prevented spawning of a treasure chest in the Salavesh dungeon\n"
},
{
"from": "human",
"value": "--[[\nIllarion Server\n\nThis program is free software: you can redistribute it and/or modify it under\nthe terms of the GNU Affero General Public ... | lua | chosen |
[
{
"from": "human",
"value": "Implement Paul's illustrative live statistical module\n"
},
{
"from": "gpt",
"value": "local ffi = require \"ffi\"\nlocal lm = require \"libmoon\"\nlocal pktLib = require \"packet\"\nlocal eth = require \"proto.ethernet\"\nlocal ip = require \"proto.ip4\"\nlocal tupl... | lua | chosen |
[
{
"from": "system",
"value": "Fix translation for tool models output.\n"
},
{
"from": "human",
"value": "return function (--[[loader]])\n\n return {\n [\"tool:description\"] = {\n en = \"run a tool in standalone mode\",\n },\n [\"tool:tool:description\"] = {\n en = \"tool ide... | lua | chosen |
[
{
"from": "system",
"value": "Fix for vehicles ramming Smokes wall\n\ngit-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@929 64450a49-1f69-0410-a0a2-f5ebb52c4f5b\n"
},
{
"from": "human",
"value": "createObject(3059, 2522.05, -1272.9325, 35.589998626709)"
},
{
"from": "gpt",
"value"... | lua | chosen |
[
{
"from": "system",
"value": "Change physics parameters for green block\n"
},
{
"from": "human",
"value": "local o = scene.newobject()\no:set_sprite(6)\no:enable_physics(0.1, 2)\nlocal c = o:add_box_collider(70, 70)\nc:set_friction(12)\nc:set_elasticity(0.3)\nreturn o\n"
},
{
"from": "gp... | lua | chosen |
[
{
"from": "human",
"value": "Add no collision constraint utils\n"
},
{
"from": "gpt",
"value": "---\n-- @module NoCollisionConstraintUtils\n-- @author Quenty\n\nlocal NoCollisionConstraintUtils = {}\n\nfunction NoCollisionConstraintUtils.create(part0, part1)\n\tlocal noCollision = Instance.new(\... | lua | chosen |
[
{
"from": "human",
"value": "Add a simple Lua test program.\n"
},
{
"from": "gpt",
"value": "local begin_tran = floating_temple.begin_tran\nlocal end_tran = floating_temple.end_tran\nlocal shared = floating_temple.shared\n\nbegin_tran()\nlocal num = shared[\"num\"]\nif num == nil then\n num = 1... | lua | chosen |
[
{
"from": "system",
"value": "Bump release version to v0.0.41\n"
},
{
"from": "human",
"value": "function love.conf(t)\n t.title = \"Journey to the Center of Hawkthorne v0.0.40\"\n t.author = \"Kyle Conroy\"\n t.version = \"0.8.0\"\n t.identity ... | lua | chosen |
[
{
"from": "system",
"value": "Improve run_func_tests and make it compatible with Lua 5.1 / 5.2\n\n- report success in exit code\n- structure to support more than one functional test\n- option to not generate the xml output to be validated\n"
},
{
"from": "human",
"value": "require('os')\n\nfunct... | lua | chosen |
[
{
"from": "system",
"value": "Fix type on http server example\n"
},
{
"from": "human",
"value": "local HTTP = require(\"http\")\nlocal Utils = require(\"utils\")\n\nHTTP.create_server(\"0.0.0.0\", 8080, function (req, res)\n local body = Utils.dump({req=req,headers=headers}) .. \"\\n\"\n res:w... | lua | chosen |
[
{
"from": "system",
"value": "Use target config for android pkg by default\n"
},
{
"from": "human",
"value": "package { 'make', 'host',\n source = 'make-3.81.tar.bz2'\n}\n\npackage { 'android',\n { 'build',\n { 'make', 'build', 'host' }\n }\n}\n"
},
{
"from": "gpt",
"... | lua | chosen |
[
{
"from": "system",
"value": "Put supermariocount into a pcall to prevent any silly reboot orgies\n"
},
{
"from": "human",
"value": "config = require(\"config\") \n\nfunction load_super_mario_count()\n require(\"supermariocount\")\nend\n\nrequire(\"wifi-devlol\").start(load_super_mario_count... | lua | chosen |
[
{
"from": "system",
"value": "Change FZF file search keymap to `<leader>p`\n"
},
{
"from": "human",
"value": "require('fzf-lua').setup {\n\tgrep = {\n\t\tinput_prompt = 'Grep: '\n\t}\n}\n\nvim.api.nvim_set_keymap('n', '<leader>f', \"<cmd>lua require('fzf-lua').files()<CR>\", { noremap = true, si... | lua | chosen |
[
{
"from": "system",
"value": "Append lwAFTR version number and date to help info\n"
},
{
"from": "human",
"value": "module(..., package.seeall)\n\nlocal lib = require(\"core.lib\")\n\nlocal function show_usage(exit_code)\n print(require(\"program.lwaftr.README_inc\"))\n main.exit(exit_code)\... | lua | chosen |
[
{
"from": "system",
"value": "Enable SSL on HTTP libcurl for Windows.\n"
},
{
"from": "human",
"value": "project \"curl-lib\"\n\tlanguage \"C\"\n\tkind \"StaticLib\"\n\tincludedirs {\"include\", \"lib\"}\n\tdefines {\"BUILDING_LIBCURL\", \"CURL_STATICLIB\", \"HTTP_ONLY\", \"CURL_DI... | lua | chosen |
[
{
"from": "human",
"value": "feat(packages): Add Pandoc helper package for converted documents\n"
},
{
"from": "gpt",
"value": "SILE.require(\"packages/raiselower\")\n\n-- Process arguments that might not actually have that much to do with their\n-- immediate function but affect the document in ... | lua | chosen |
[
{
"from": "system",
"value": "Add special distribution note to A4 PDFs\n"
},
{
"from": "human",
"value": "local book = SILE.require(\"classes/book\");\nbook:loadPackage(\"masters\")\nbook:defineMaster({ id = \"right\", firstContentFrame = \"content\", frames = {\n content = {left = \"32mm\", ri... | lua | chosen |
[
{
"from": "human",
"value": "Test for desired behavior: a new screen should get a default workspace\n"
},
{
"from": "gpt",
"value": "\nmod_xinerama.refresh();\n\nif (notioncore.find_screen_id(1) == Nil) then\n return \"Number of screens should be 2, again at the start of this test\"\nend\n\nif ... | lua | chosen |
[
{
"from": "system",
"value": "Work on choreographer stuff still.\n"
},
{
"from": "human",
"value": "load_script(\"scripts/rig.lua\")\nload_script(\"scripts/tasks.lua\")\nload_script(\"scripts/drawing.lua\")\nload_script(\"scripts/filesystem.lua\")\n--load_script(\"scripts/repl.lua\")\n\nload_scr... | lua | chosen |
[
{
"from": "system",
"value": "Change project framework to 4.6.1\n"
},
{
"from": "human",
"value": "\nworkspace \"flaaffy\"\n\tconfigurations { \"Debug\", \"Release\" }\n\ttargetdir \"bin/%{cfg.buildcfg}\"\n\tstartproject \"mareep\"\n\t\n\tfilter \"configurations:Debug\"\n\t\tdefines { \"DEBUG\" ... | lua | chosen |
[
{
"from": "system",
"value": "Add git mappings for merges\n"
},
{
"from": "human",
"value": "keymap = require(\"nutils\").map\n\nrequire(\"gitsigns\").setup(\n {\n watch_index = {\n interval = 100\n }\n }\n)\n\nkeymap(\"n\", \"<leader>g\", \":vertical Git<CR>\", {silent = true})\n"
... | lua | chosen |
[
{
"from": "system",
"value": "Remove usage of deprecated self () proxy constructor.\n"
},
{
"from": "human",
"value": "local proxy = require \"cosy.util.proxy\"\nlocal raw = require \"cosy.util.raw\"\nlocal is_proxy = require \"cosy.util.is_proxy\"\n\nlocal rawify = proxy ()\n\nfunction ... | lua | chosen |
[
{
"from": "system",
"value": "Enable jit in projects using `framework.html`\n"
},
{
"from": "human",
"value": "--=========== Copyright © 2018, Planimeter, All rights reserved. =============--\n--\n-- Purpose:\n--\n--============================================================================--\n... | lua | chosen |
[
{
"from": "system",
"value": "Use GameFrame (on simulation frame) instead of Update (redraw).\n"
},
{
"from": "human",
"value": "function widget:GetInfo ()\n\treturn {\n\t\tname = \"BETS - Unit selection detector\",\n\t\tdesc = \"Prints number of selected units.\",\n\t\tauthor = \"Oskar Hybl\",\... | lua | chosen |
[
{
"from": "system",
"value": "Fix indentation in lua file\n"
},
{
"from": "human",
"value": "\n\nfunction updateClipboard(threadObj)\n\n -- ENCODING among -detect-enc, -sjis, -utf16-be, -utf16-le, -utf8\n local ENCODING = \"-detect-enc\"\n -- 0 <= DEBUG_LEVEL <= 5\n local DEBUG_LEVEL... | lua | chosen |
[
{
"from": "system",
"value": "Access correct spot in url for the project.\n"
},
{
"from": "human",
"value": "local url = ngx.var.uri\nlocal elements = url.split(\"/\")\nlocal project_index = -1\n\nfor k, v in pairs(elements) do\n if v == \"projects\" then\n project_index = k\n end\n... | lua | chosen |
[
{
"from": "system",
"value": "Fix missing return in init function\n"
},
{
"from": "human",
"value": "-- ---------------------------------------------------------\n-- fileutil.lua\n-- Copyright (C) 2015 Laurent Zubiaur, voodoocactus.com\n-- All Rights Reserved.\n-- -------------------------------... | lua | chosen |
[
{
"from": "system",
"value": "feat(Hammerspoon): Update audio switcher to auto-select usb audio when available\n"
},
{
"from": "human",
"value": "-- Define audio device names for headphone/speaker switching\nlocal headphoneDevice = \"VIA Technologies\" -- USB sound card\nlocal speakerDevice = \"... | lua | chosen |
[
{
"from": "system",
"value": "Remove braces around single query\n"
},
{
"from": "human",
"value": "local mysql = mysql\n\nlocal encode = encode\nlocal random = math.random\n\nlocal mysqlconn = {\n\thost = \"DBHOSTNAME\",\n\tport = 3306,\n\tdatabase = \"hello_world\",\n\tuser = \"benchmarkdbuser\... | lua | chosen |
[
{
"from": "system",
"value": "Add super secret __LEMUR__ global\n"
},
{
"from": "human",
"value": "local createSettings = import(\"./createSettings\")\nlocal functions = import(\"./functions\")\nlocal taskFunctions = import(\"./taskFunctions\")\nlocal types = import(\"./types\")\nlocal Enum = im... | lua | chosen |
[
{
"from": "system",
"value": "Copy the Clang builtin headers as part of the build if they are available.\n"
},
{
"from": "human",
"value": "clang_msvc_flags =\n{\n \"/wd4146\", \"/wd4244\", \"/wd4800\", \"/wd4345\",\n \"/wd4355\", \"/wd4996\", \"/wd4624\", \"/wd4291\",\n \"/wd4251\"\n}\n\nif ... | lua | chosen |
[
{
"from": "system",
"value": "Add more data to the announcement model.\n"
},
{
"from": "human",
"value": "PLUGIN.Title = \"madrust-announce\"\nPLUGIN.Description = \"Broadcast announcements using a subreddit as the source.\"\nPLUGIN.Version = \"0.1\"\nPLUGIN.Author = \"W. Brian Gourlie\"\n\nfunc... | lua | chosen |
[
{
"from": "system",
"value": "Add more game over texts\n"
},
{
"from": "human",
"value": "local GameOverState = class('GameOverState', State)\n\nlocal suit = require('lib/suit')\n\nfunction GameOverState:initialize(won)\n self.won = won\nend\n\nfunction GameOverState:update(dt)\n suit.upda... | lua | chosen |
[
{
"from": "system",
"value": "Genie: Add include dir to unit tests\n"
},
{
"from": "human",
"value": "KULMA_DIR = path.getabsolute(\"..\") .. \"/\"\nKULMA_BUILD_DIR = KULMA_DIR .. \".build/\"\nKULMA_THIRDPARTY_DIR = KULMA_DIR .. \"3rdparty/\"\n\nsolution \"kulma\"\n\tconfigurations {\n\t\t\"debu... | lua | chosen |
[
{
"from": "system",
"value": "Use lapack instead of blas for lapack libraries\n"
},
{
"from": "human",
"value": "help(\n[[\nThis module loads Python 2.7.7 with a set of popular packages for scientific\ncomputing (Numpy, matplotlib, Scipy, pandas, nltk)\n\n]])\n\nlocal version = \"2.7.7\"\nlocal ... | lua | chosen |
[
{
"from": "system",
"value": "Set the check interval for track_player mod...\n\n... to 5seconds (last change i think)"
},
{
"from": "human",
"value": "local time_interval = 30.0\nlocal fifo_path = \"/home/quentinbd/minetest/worlds/minetestforfun/mt_players_fifo\"\n\nfunction players_data()\n ... | lua | chosen |
[
{
"from": "system",
"value": "Simplify wrap and remove inline options ala Luawa\n"
},
{
"from": "human",
"value": "--[[\n file: app/template.lua\n desc: Oxypanel template class (deals w/ module templates)\n inherits from luawa.template\n]]\n\n--our template class\nlocal template = {... | lua | chosen |
[
{
"from": "system",
"value": "Move standard parameter handling to CLI\n"
},
{
"from": "human",
"value": "---@module fimbul.ui.cli\n\n-- Standard CLI functions\n--\n\nlocal cli = {}\n\nlocal repository = require('fimbul.repository')\n\nfunction cli.standard_args(opts)\n local repo\n\n if opts... | lua | chosen |
[
{
"from": "system",
"value": "Use base_speed even if it's lower/higher than the reasonable min/max\n"
},
{
"from": "human",
"value": "local math = math\n\nmodule \"Elevation\"\n\nfunction slope_speed(way_info, base_speed, forward)\n local distance\n local climb_distance\n local desc_dis... | lua | chosen |
[
{
"from": "system",
"value": "Remove the print to have clean loop\n"
},
{
"from": "human",
"value": "local gz = require \"assets/scripts/galaczy\"\n\nPlayer = {}\n\nPlayer.__index = Player\n\n\nfunction Player.create()\n local player = {}\n setmetatable(player, Player)\n\n player.name =... | lua | chosen |
[
{
"from": "human",
"value": "test(inputters): Add test for LUA inputter\n"
},
{
"from": "gpt",
"value": "SILE = require(\"core.sile\")\nSILE.backend = \"dummy\"\nSILE.init()\nSILE.utilities.error = error\n\ndescribe(\"#LUA #inputter\", function ()\n local inputter = SILE.inputters.lua()\n\n de... | lua | chosen |
[
{
"from": "system",
"value": "title: Remove bad whitespaces in gist.\n"
},
{
"from": "human",
"value": "local simplehttp = require'simplehttp'\nlocal json = require'json'\n\ncustomHosts['gist%.github%.com'] = function(queue, info)\n\tlocal query = info.query\n\tlocal path = info.path\n\tlocal fr... | lua | chosen |
[
{
"from": "system",
"value": "Increase timeout for Redis (for priority auth)\n"
},
{
"from": "human",
"value": "local redis = require 'resty.redis'\n\n-- Redis connection parameters\nlocal _M = {\n host = os.getenv(\"REDIS_HOST\") or 'xc-redis',\n port = 6379,\n timeout = 1000, -... | lua | chosen |
[
{
"from": "system",
"value": "Update CORS spec to reflect what it really does\n"
},
{
"from": "human",
"value": "local expect = require 'spec.expect'\nlocal cors = require 'cors.cors'\n\n\ndescribe(\"CORS\", function()\n describe(\"when the status is not 404\", function()\n it(\"does not... | lua | chosen |
[
{
"from": "system",
"value": "Fix test with serial dependency.\n\n- torch.rand() must be called before torch.getRNGState() to ensure the\n state is defined.\n- Added a 'local' keyword.\n"
},
{
"from": "human",
"value": "require \"totem\"\nlocal myTests = {}\nlocal tester = totem.Tester()\n\nfun... | lua | chosen |
[
{
"from": "human",
"value": "Add Heka log decoder for RabbitMQ\n\nIn the future the Heka Lua sandboxes will be moved out of Kolla, and\ninstalled in the Heka container using a deb or rpm package.\n\nPartially implements: blueprint heka\nChange-Id: I1aa27048d22f1a5ed385180696d320af9a961389\n"
},
{
"f... | lua | chosen |
[
{
"from": "human",
"value": "Add very simple text-based reverse turing test.\n"
},
{
"from": "gpt",
"value": "local Platform = require \"cosy.platform\"\n\nlocal TuringTest = {}\n\nTuringTest.questions = {}\n\nfunction TuringTest.generate ()\n math.randomseed (os.time ())\n local i = math.rand... | lua | chosen |
[
{
"from": "system",
"value": "Change freq_offset using [ and ].\n"
},
{
"from": "human",
"value": "-- Play FM radio. Has no visible interface.\n\nfunction setup()\n freq = (100.9e6 + 50000) / 1e6\n device = nrf_device_new(freq, \"../rfdata/rf-100.900-1.raw\")\n player = nrf_player_new(d... | lua | chosen |
[
{
"from": "system",
"value": "Check tiles are within bounds\n"
},
{
"from": "human",
"value": "-- grid.lua\n\nlocal grid = {} ; grid.__index = grid\n\nfunction grid.new(numX, numY, cellSize)\n\tlocal g = setmetatable({x = numX, y = numY, size = cellSize}, grid)\n\tg:clear()\n\treturn g\nend\n\nf... | lua | chosen |
[
{
"from": "system",
"value": "Create a separate function to visit children nodes\n"
},
{
"from": "human",
"value": "local checker = {}\n\nlocal symtab = require 'titan-compiler.symtab'\n\nlocal function bindvars(node, st, errors)\n if not node or type(node) ~= \"table\" then\n return\n... | lua | chosen |
[
{
"from": "system",
"value": "[build] Remove multi-platform builds, use the `--arch` build option instead.\n"
},
{
"from": "human",
"value": "-- This is the starting point of the build scripts for the project.\n-- It defines the common build settings that all the projects share\n-- and calls the... | lua | chosen |
[
{
"from": "system",
"value": "Integrate tag generation in the continuous build pipeline\n\nIgnore-this: b83dc8a4cbdf7de3f5e8076947f164de\n\ndarcs-hash:20120611234746-4d692-5a92585198b5b7c6ef97fd4bab72bd90420f77a2\n"
},
{
"from": "human",
"value": "bootstrap = require(\"bootstrap\")\n\nbootstrap.... | lua | chosen |
[
{
"from": "system",
"value": "Use digit matching instead of alphanumeric"
},
{
"from": "human",
"value": "return function(s)\n local rows = {}\n\n for line in s:gmatch('[%w ]+') do\n local row = {}\n for element in line:gmatch('%w+') do\n table.insert(row, tonumber(element))\n en... | lua | chosen |
[
{
"from": "system",
"value": "Add hyper+delete (backspace) to expand active iterm pane\n"
},
{
"from": "human",
"value": "hs.hotkey.bind({\"cmd\", \"alt\", \"ctrl\", \"shift\"}, \"Return\", function()\n local win = hs.window.focusedWindow()\n local f = win:frame()\n local max = win:screen():f... | lua | chosen |
[
{
"from": "system",
"value": "Remove line margin width code as it was added upstream. Reduce font size."
},
{
"from": "human",
"value": "-- 4 spaces FTW!\nbuffer.tab_width = 4\nbuffer.use_tabs = false\n\n-- Turn on line wrapping:\nbuffer.wrap_mode = buffer.WRAP_WORD\n\n-- https://foicica.com/tex... | lua | chosen |
[
{
"from": "system",
"value": "Set the default request page to the github URL.\n"
},
{
"from": "human",
"value": "--[[----------------------------------------------------------------------------\n\tMedia Player client configuration\n----------------------------------------------------------------... | lua | chosen |
[
{
"from": "system",
"value": "Fix path splitting for absolute path\n\nThe absolute path was not split correctly and generated a relative path.\n"
},
{
"from": "human",
"value": "-- functions used by different modules\nfunction split(str, delim)\n\tlocal ret = {}\n\tlocal last_end = 1\n\tlocal s,... | lua | chosen |
[
{
"from": "system",
"value": "Allow specifying path to the project\n"
},
{
"from": "human",
"value": "local actions = require \"apicast-cli.cmd\"\nlocal colors = require \"ansicolors\"\n\n\nlocal function call(_, parser)\n local create_cmd = parser:command(\"c create\", \"Generates apicast appl... | lua | chosen |
[
{
"from": "system",
"value": "Fix the H/M/L tests. Not sure why the results are different to TA 9.\n"
},
{
"from": "human",
"value": "-- Test the left/right keys\ntest.open('1_100.txt')\nlocal lineno = test.lineno\nlocal colno = test.colno\nlocal assertEq = test.assertEq\nlocal log = test.log\n... | lua | chosen |
[
{
"from": "system",
"value": "Fix issue with paths for finding src.\n"
},
{
"from": "human",
"value": "#!lua\n\nrequire 'conanpremake'\n\n-- A solution contains projects, and defines the available configurations\nsolution \"ember-test\"\n configurations { \"Debug\", \"Release\" }\n includedi... | lua | chosen |
[
{
"from": "system",
"value": "Add test for BC_VARG slot revival\n"
},
{
"from": "human",
"value": "do --- BC_KNIL\n local function f(x, y) end\n for i = 1,100 do\n f(i, i)\n f(nil, nil)\n end\nend\n"
},
{
"from": "gpt",
"value": "do --- BC_KNIL\n local function f(x, y) end\... | lua | chosen |
[
{
"from": "human",
"value": "Add a script for empty pits\n"
},
{
"from": "gpt",
"value": "--[[\r\nIllarion Server\r\n\r\nThis program is free software: you can redistribute it and/or modify it under\r\nthe terms of the GNU Affero General Public License as published by the Free\r\nSoftware Founda... | lua | chosen |
[
{
"from": "system",
"value": "Fix enemy not triggering game over\n"
},
{
"from": "human",
"value": "local GameOverSystem = class('GameOverSystem', System)\n\nlocal GameOverState = require('states/GameOverState')\n\nfunction GameOverSystem:update(dt)\n if player:get(\"Health\").points <= 0 the... | lua | chosen |
[
{
"from": "human",
"value": "Add simple Torch network profiling script.\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env th\n--\n-- Outputs the number of parameters in a network for a single image\n-- in evaluation mode.\n\nrequire 'torch'\nrequire 'nn'\nrequire 'dpnn'\n\ntorch.setdefaulttensorty... | lua | chosen |
[
{
"from": "system",
"value": "Print all variables and its values to the user log"
},
{
"from": "human",
"value": "-- Use Activation by Button event \"Manual (triggered by action button)\"\n\nlogf(\"-----\")\nlocal function toDebugString(a, indent)\n\t\tif type(a) == 'table' then\n\t\t\tindent = ... | lua | chosen |
[
{
"from": "system",
"value": "Remove .lua file after compile.\n"
},
{
"from": "human",
"value": "node.compile(\"led.lua\")\nnode.compile(\"time.lua\")\nnode.compile(\"soressa.lua\")\n\ndofile(\"soressa.lc\")\n"
},
{
"from": "gpt",
"value": "node.compile(\"led.lua\")\nnode.compile(\"t... | lua | chosen |
[
{
"from": "human",
"value": "Add example script to step through data.\n"
},
{
"from": "gpt",
"value": "-- Visualize IQ data as a texture from a file.\n-- Don't connect a device.\n-- Steps are deliberate.\n\nVERTEX_SHADER = [[\n#version 400\nlayout (location = 0) in vec3 vp;\nlayout (location = 1... | lua | chosen |
[
{
"from": "system",
"value": "Set CORS header in http response to allow calling the modules' API from web applications other than its built-in demo html\n"
},
{
"from": "human",
"value": "local function sendHttpResponse(connection, data)\n connection:send(\"HTTP/1.1 200 OK\\r\\nConnection: cl... | lua | chosen |
[
{
"from": "system",
"value": "Add hotkey for locking screen\n"
},
{
"from": "human",
"value": "hs.window.animationDuration = 0 -- disable animations\nrequire('microphone')\nrequire('windows')\n\nlocal message = require('status-message')\n\nfunction reloadConfig(files)\n doReload = false\n for ... | lua | chosen |
[
{
"from": "system",
"value": "extensions/experimental: Remove accidentally added unused test code\n"
},
{
"from": "human",
"value": "-- Buildat: extension/experimental/init.lua\n-- http://www.apache.org/licenses/LICENSE-2.0\n-- Copyright 2014 Perttu Ahola <celeron55@gmail.com>\nlocal log = build... | lua | chosen |
[
{
"from": "system",
"value": "Improve help message for ATLAS library module\n"
},
{
"from": "human",
"value": "help(\n[[\nThis module loads ATLAS 3.10.1\n\n]])\n\nlocal version = \"3.10.1\"\nlocal base = \"/cvmfs/oasis.opensciencegrid.org/osg/modules/atlas/\"..version\n\nprepend_path(\"LD_LIBRAR... | lua | chosen |
[
{
"from": "system",
"value": "Set sample project as ConsoleApp for see the output\n\n"
},
{
"from": "human",
"value": "\nsolution \"EasyWindow\"\n\tlocation\t\t\t\t(_ACTION)\n\tlanguage\t\t\t\t\"C++\"\n\tconfigurations\t\t\t{ \"Debug\", \"Release\" }\n\tplatforms\t\t\t\t{ \"x32\", \"x64\" }\n\to... | lua | chosen |
[
{
"from": "system",
"value": "Fix bug replacing server by generic key.\n"
},
{
"from": "human",
"value": "local Runner = require \"busted.runner\"\nrequire \"cosy.loader\"\nRunner ()\n\n\ndescribe (\"Module cosy.cli\", function ()\n\n describe(\"method configure\", function()\n\n local Cli\n... | lua | chosen |
[
{
"from": "system",
"value": "Enable passing the directory as an argument\n"
},
{
"from": "human",
"value": "-- require('mobdebug').start()\n\nio.stdout:setvbuf('no')\n\nlocal path = require 'pl.path'\nlocal emu = require 'emu'\n\n-- local dir = ...\nlocal dir = '/home/cpup/code/lua/cc-emu/dev'\... | lua | chosen |
[
{
"from": "system",
"value": "Fix consequence for gem crafting\n"
},
{
"from": "human",
"value": "require(\"base.class\")\nrequire(\"npc.base.consequence.consequence\")\nrequire(\"item.gems\")\n\nmodule(\"npc.base.consequence.gemcraft\", package.seeall)\n\ncraft = base.class.class(npc.base.conse... | lua | chosen |
[
{
"from": "system",
"value": "Revert changes to require libraries every request\n\nRevert changes to require libraries every request\n"
},
{
"from": "human",
"value": "local env = require 'resty.env'\nlocal router = require 'router'\nlocal oauth\n\nlocal _M = {\n _VERSION = '0.0.2'\n}\n\nfuncti... | lua | chosen |
[
{
"from": "system",
"value": "Add useful error message when library doesn't load\n"
},
{
"from": "human",
"value": "-- hqnes.lua\n-- Load the hqnes library and adds ffi functions.\n\nlocal core = require \"hqnes.core\"\nlocal ffi = require \"ffi\"\nlocal hqn = ffi.load(\"hqnes\")\n\nffi.cdef[[\n... | lua | chosen |
[
{
"from": "system",
"value": "Build/UnitTest: Fix linking against Network module\n\n\nFormer-commit-id: 17370ab2dbe2f9f6b6c3ec84ba2c9d45de832ee0 [formerly a07cdfb9393322e9a145b171835a4270fcf2953d]\nFormer-commit-id: c88597b66d47ecdcbc9a279b96fa840de859634b"
},
{
"from": "human",
"value": "TOOL.N... | lua | chosen |
[
{
"from": "system",
"value": "Fix fixed word embeddings condition\n"
},
{
"from": "human",
"value": "--[[ nn unit. Maps from word ids to embeddings. Slim wrapper around\nnn.LookupTable to allow fixed and pretrained embeddings.\n--]]\nlocal WordEmbedding, parent = torch.class('onmt.WordEmbedding'... | lua | chosen |
[
{
"from": "system",
"value": "Set the refresh of the player positions to 30sec\n\n(60sec is a too high value for real time status)"
},
{
"from": "human",
"value": "local time_interval = 60.0\nlocal fifo_path = \"/home/quentinbd/minetest/worlds/minetestforfun/mt_players_fifo\"\n\nfunction players... | lua | chosen |
[
{
"from": "system",
"value": "Revert \"Use unlink instead of del for better performance\"\n\nThis reverts commit 72f7fc48dfffbfbae33f99b297f78552d87eb2f5.\n"
},
{
"from": "human",
"value": "local call = redis.call\nlocal queue = KEYS[1]\nlocal messages = ARGV\nlocal queueKey = '{' .. queue .. '}... | lua | chosen |
[
{
"from": "system",
"value": "Kill the fixture server always.\n\nAs simple as process:on('error'). This will make tests go better.\n"
},
{
"from": "human",
"value": "local spawn = require('childprocess').spawn\nlocal constants = require('constants')\nlocal misc = require('monitoring/default/util... | lua | chosen |
[
{
"from": "human",
"value": "Add new motd_sequential module. This module lets you define numbered messages shown to each user in order, but only once per user, and persistent across server restarts. Useful for notifying users of added features and changes in an\nincremental fashion.\n"
},
{
"from": ... | lua | chosen |
[
{
"from": "system",
"value": "Use env for path to userhome\n"
},
{
"from": "human",
"value": "-- Theme\nif not CURSES then \n ui.set_theme('base16-solarized-dark', \n {font = 'Inconsolata', fontsize = 12}) \nend\n\n-- Snippets\nrequire(\"snippets/snippets\")\n\n-- Elastic Tabstops\nrequire... | lua | chosen |
[
{
"from": "system",
"value": "Add some Gst helper overrides.\n"
},
{
"from": "human",
"value": "------------------------------------------------------------------------------\n--\n-- LGI Gst override module.\n--\n-- Copyright (c) 2010 Pavel Holejsovsky\n-- Licensed under the MIT license:\n-- ... | lua | chosen |
[
{
"from": "human",
"value": "Add Koreus Lua playlist file\n"
},
{
"from": "gpt",
"value": "--[[\n\n Copyright 2009 the VideoLAN team\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Softwar... | lua | chosen |
[
{
"from": "system",
"value": "Put MSVC buildoptions under Windows platform filter.\n"
},
{
"from": "human",
"value": "group(\"third_party\")\nproject(\"imgui\")\n uuid(\"ed9271c4-b0a1-42ef-8403-067b11bf49d0\")\n kind(\"StaticLib\")\n language(\"C++\")\n links({\n })\n defines({\n \"_LIB... | lua | chosen |
[
{
"from": "system",
"value": "Fix reference to FFTW libraries\n"
},
{
"from": "human",
"value": "help(\n[[\nThis module loads a Gromacs 4.6.5 into the environment\n\n]])\n\nlocal version = \"4.6.5\"\nlocal base = \"/cvmfs/oasis.opensciencegrid.org/osg/modules/gromacs/\"..version\n\nprepend_path(... | lua | chosen |
[
{
"from": "human",
"value": "[example] Add example for custom error for exceeded usage limits\n"
},
{
"from": "gpt",
"value": "-- This module customizes the APIcast authorization logic, and returns a different response code \n-- and message if the authorization failed because the application rea... | lua | chosen |
[
{
"from": "system",
"value": "Use makeDistortosConfiguration.sh in tup build"
},
{
"from": "human",
"value": "--\n-- file: Tupfile.lua\n--\n-- author: Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info\n--\n-- This Source Code Form is subject to the te... | lua | chosen |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7