commit stringlengths 40 40 | old_file stringlengths 6 181 | new_file stringlengths 6 181 | old_contents stringlengths 448 7.17k | new_contents stringlengths 449 7.17k | subject stringlengths 0 450 | message stringlengths 6 4.92k | lang stringclasses 1
value | license stringclasses 12
values | repos stringlengths 9 33.9k |
|---|---|---|---|---|---|---|---|---|---|
0ae2da23a9af1bd2f973d53969170cf2bde51599 | MMOCoreORB/bin/scripts/screenplays/racetracks/mosespa.lua | MMOCoreORB/bin/scripts/screenplays/racetracks/mosespa.lua | local ObjectManager = require("managers.object.object_manager")
RaceTrackManager = require("screenplays.racetracks.racetrackengine")
mosespa_racetrack_screenplay = RaceTrack:new {
trackConfig={
planetName = "tatooine", -- The planet the Track is on
badgeToAward=BDG_RACING_MOS_ESPA, -- Badge to be awarded for be... | local ObjectManager = require("managers.object.object_manager")
RaceTrackManager = require("screenplays.racetracks.racetrackengine")
mosespa_racetrack_screenplay = RaceTrack:new {
trackConfig={
planetName = "tatooine", -- The planet the Track is on
badgeToAward=BDG_RACING_MOS_ESPA, -- Badge to be awarded for be... | [Fixed] Waypoints on Mos Espa racetrack Mantis #4557 | [Fixed] Waypoints on Mos Espa racetrack Mantis #4557
Change-Id: I1ae47f31f82f592df692cf3c189edc1ba91562ee
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2... |
e8c25e5a0ddc1317d077d7db6d9c4990daa44e9a | lua/entities/gmod_wire_digitalscreen/cl_init.lua | lua/entities/gmod_wire_digitalscreen/cl_init.lua | if (not EmuFox) then
include('shared.lua')
end
function ENT:Initialize()
self.Memory1 = {}
self.Memory2 = {}
self.LastClk = true
self.NewClk = true
self.Memory1[1048575] = 1
self.Memory2[1048575] = 1
self.NeedRefresh = true
self.IsClear = true
self.ClearQueued = false
self.RefreshPixels = {}
self.RefreshR... | if (not EmuFox) then
include('shared.lua')
end
function ENT:Initialize()
self.Memory1 = {}
self.Memory2 = {}
self.LastClk = true
self.NewClk = true
self.Memory1[1048575] = 1
self.Memory2[1048575] = 1
self.NeedRefresh = true
self.IsClear = true
self.ClearQueued = false
self.RefreshPixels = {}
self.RefreshR... | Digital Screen: Fixed clk not updating the whole screen | Digital Screen: Fixed clk not updating the whole screen
| Lua | apache-2.0 | CaptainPRICE/wire,Python1320/wire,mms92/wire,NezzKryptic/Wire,sammyt291/wire,thegrb93/wire,plinkopenguin/wiremod,Grocel/wire,rafradek/wire,mitterdoo/wire,immibis/wiremod,garrysmodlua/wire,wiremod/wire,dvdvideo1234/wire,notcake/wire,bigdogmat/wire |
e65b80499530b2b977da5828d862f7a8b5db1bd9 | kong/templates/nginx_kong_stream.lua | kong/templates/nginx_kong_stream.lua | return [[
log_format basic '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time';
lua_shared_dict stream_kong 5m;
lua_shared_dict stream_kong_db_cache ${{MEM_CACHE_SIZE}};
lua_shared_dict stream_kong_db_cache_miss 12m;
lua_... | return [[
log_format basic '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time';
lua_package_path '${{LUA_PACKAGE_PATH}};;';
lua_package_cpath '${{LUA_PACKAGE_CPATH}};;';
lua_shared_dict stream_kong 5m;
lua_shared_dict stream_ko... | hotfix(templates) set lua_package_path in stream module | hotfix(templates) set lua_package_path in stream module
Make the stream module honor `lua_package_path` and `lua_package_cpath`
as set in `kong.conf`, so that plugins installed in custom paths can be
found.
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong,Mashape/kong |
db43a820ea09079586736b8175d126b4ce4ee705 | src/kong/plugins/authentication/schema.lua | src/kong/plugins/authentication/schema.lua | local constants = require "kong.constants"
local utils = require "kong.tools.utils"
local stringy = require "stringy"
local function check_authentication_key_names(names, plugin_value)
if plugin_value.authentication_type == constants.AUTHENTICATION.BASIC and names then
return false, "This field is not available ... | local constants = require "kong.constants"
local utils = require "kong.tools.utils"
local stringy = require "stringy"
local function check_authentication_key_names(names, plugin_value)
if plugin_value.authentication_type == constants.AUTHENTICATION.BASIC and names then
return false, "This field is not available ... | fixing logic in authentication schema | fixing logic in authentication schema
| Lua | mit | bbalu/kong,vmercierfr/kong,ropik/kong,AnsonSmith/kong,paritoshmmmec/kong,puug/kong,wakermahmud/kong,Skyscanner/kong,skynet/kong,chourobin/kong,ChristopherBiscardi/kong,sbuettner/kong,peterayeni/kong |
ddf69ca7c510e5eb982f20378572f333a176e046 | config.lua | config.lua | -- For details on configuration values, see README.md#configuration.
return {
-- Your authorization token from the botfather.
bot_api_key = '',
-- Your Telegram ID
admin = 00000000,
-- Two-letter language code.
-- Fetches it from the system if available, or defaults to English.
lang = os.g... | -- For details on configuration values, see README.md#configuration.
return {
-- Your authorization token from the botfather. (string, put quotes)
bot_api_key = os.getenv('OTOUTO_BOT_API_KEY'),
-- Your Telegram ID (number).
admin = os.getenv('ADMIN_ID'),
-- Two-letter language code.
-- Fetches... | fixed docker stuff in config | fixed docker stuff in config
| Lua | agpl-3.0 | topkecleon/otouto |
0e412312985079ab5b1e80f301d82830391f0371 | lualib/skynet/datasheet/dump.lua | lualib/skynet/datasheet/dump.lua | --[[ file format
document :
int32 strtbloffset
int32 n
int32*n index table
table*n
strings
table:
int32 array
int32 dict
int8*(array+dict) type (align 4)
value*array
kvpair*dict
kvpair:
string k
value v
value: (union)
int32 integer
float real
int32 boolean
int32 table index
int32 st... | --[[ file format
document :
int32 strtbloffset
int32 n
int32*n index table
table*n
strings
table:
int32 array
int32 dict
int8*(array+dict) type (align 4)
value*array
kvpair*dict
kvpair:
string k
value v
value: (union)
int32 integer
float real
int32 boolean
int32 table index
int32 st... | fix #857 | fix #857
| Lua | mit | bttscut/skynet,hongling0/skynet,cloudwu/skynet,korialuo/skynet,hongling0/skynet,great90/skynet,bigrpg/skynet,Ding8222/skynet,pigparadise/skynet,zhangshiqian1214/skynet,bigrpg/skynet,great90/skynet,pigparadise/skynet,wangyi0226/skynet,firedtoad/skynet,JiessieDawn/skynet,firedtoad/skynet,korialuo/skynet,xjdrew/skynet,Din... |
0ed6176ebf058afaba5e22424d6c65e76112a09f | core/args.lua | core/args.lua | -- Copyright 2007-2018 Mitchell mitchell.att.foicica.com. See LICENSE.
local M = {}
--[[ This comment is for LuaDoc.
---
-- Processes command line arguments for Textadept.
-- @field _G.events.ARG_NONE (string)
-- Emitted when no command line arguments are passed to Textadept on startup.
module('args')]]
events.ARG... | -- Copyright 2007-2018 Mitchell mitchell.att.foicica.com. See LICENSE.
local M = {}
--[[ This comment is for LuaDoc.
---
-- Processes command line arguments for Textadept.
-- @field _G.events.ARG_NONE (string)
-- Emitted when no command line arguments are passed to Textadept on startup.
module('args')]]
events.ARG... | Fixed bug in remote-controlled Textadept when no args were initially given. | Fixed bug in remote-controlled Textadept when no args were initially given.
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
5cc835e507585b33d47ab310a044245da0a792b9 | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
requ... | modules/admin-full: fix last commit | modules/admin-full: fix last commit
| Lua | apache-2.0 | urueedi/luci,deepak78/new-luci,jchuang1977/luci-1,florian-shellfire/luci,openwrt/luci,981213/luci-1,kuoruan/lede-luci,schidler/ionic-luci,chris5560/openwrt-luci,lcf258/openwrtcn,dwmw2/luci,sujeet14108/luci,dwmw2/luci,ReclaimYourPrivacy/cloak-luci,kuoruan/luci,Hostle/luci,joaofvieira/luci,taiha/luci,slayerrensky/luci,nm... |
d4e1d385cfc35f7cacb480169a7ba3353382e460 | focuspoints.lrdevplugin/PointsRendererFactory.lua | focuspoints.lrdevplugin/PointsRendererFactory.lua | --[[
Copyright 2016 Joshua Musselwhite, Whizzbang Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | --[[
Copyright 2016 Joshua Musselwhite, Whizzbang Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | fixed spelling mistake crashing app | fixed spelling mistake crashing app
| Lua | apache-2.0 | philmoz/Focus-Points,rderimay/Focus-Points,project802/Focus-Points,philmoz/Focus-Points,musselwhizzle/Focus-Points,project802/Focus-Points,mkjanke/Focus-Points,musselwhizzle/Focus-Points,project802/Focus-Points,project802/Focus-Points,rderimay/Focus-Points,mkjanke/Focus-Points |
50eb33d1313f73c5134d46474b24ea5772a541c5 | tests/testutils.lua | tests/testutils.lua | local table = require("Quadtastic/tableplus")
local testutils = {}
-- Returns a stub function and a function that returns how often the stub
-- function was called. If a function is given, then that function will be
-- wrapped by the stub function
function testutils.call_spy(f)
local n = 0 -- the number of times th... | local table = require("Quadtastic/tableplus")
local testutils = {}
-- Returns a stub function and a function that returns how often the stub
-- function was called. If a function is given, then that function will be
-- wrapped by the stub function
function testutils.call_spy(f)
local n = 0 -- the number of times th... | Fix busted test logic for comparing tables | Fix busted test logic for comparing tables
guess I should have tested my testutils.......
| Lua | mit | 25A0/Quadtastic,25A0/Quadtastic |
194ff68e57fe91a410d6eb8070c4c6eb2d1891ed | contrib/package/ffluci-splash/src/luci-splash.lua | contrib/package/ffluci-splash/src/luci-splash.lua | #!/usr/bin/lua
package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path
package.cpath = "/usr/lib/lua/?.so;" .. package.cpath
require("ffluci.http")
require("ffluci.sys")
require("ffluci.model.uci")
-- Init state session
uci = ffluci.model.uci.StateSession()
function main(argv)
local cmd = arg... | #!/usr/bin/lua
package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path
package.cpath = "/usr/lib/lua/?.so;" .. package.cpath
require("ffluci.http")
require("ffluci.sys")
require("ffluci.model.uci")
-- Init state session
uci = ffluci.model.uci.StateSession()
function main(argv)
local cmd = arg... | ffluci-splash: Minor fixes | ffluci-splash: Minor fixes
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@1963 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | projectbismark/luci-bismark,phi-psi/luci,jschmidlapp/luci,Flexibity/luci,gwlim/luci,eugenesan/openwrt-luci,ThingMesh/openwrt-luci,freifunk-gluon/luci,ReclaimYourPrivacy/cloak-luci,zwhfly/openwrt-luci,gwlim/luci,Flexibity/luci,phi-psi/luci,freifunk-gluon/luci,dtaht/cerowrt-luci-3.3,freifunk-gluon/luci,stephank/luci,Thin... |
1e22b5db32ca37832ff134ed59a07a50cd82921f | Peripherals/WEB/init.lua | Peripherals/WEB/init.lua | if (not love.thread) or (not jit) then error("WEB peripherals requires love.thread and luajit") end
local perpath = select(1,...) --The path to the web folder
local bit = require("bit")
local events = require("Engine.events")
local json = require("Engine.JSON")
local thread = love.thread.newThread(perpath.."webthre... | if (not love.thread) or (not jit) then error("WEB peripherals requires love.thread and luajit") end
local perpath = select(1,...) --The path to the web folder
local bit = require("bit")
local events = require("Engine.events")
local json = require("Engine.JSON")
local thread = love.thread.newThread(perpath.."webthre... | Bugfix a bug in WEB.urlEncode which existed since long time ago, WITHOUT BEING NOTICED ! | Bugfix a bug in WEB.urlEncode which existed since long time ago, WITHOUT BEING NOTICED !
Former-commit-id: 61969af46d4f902cfd966117b1dad7053bcd40ae | Lua | mit | RamiLego4Game/LIKO-12 |
ca03576e926a66549a8245cbc4238de91de1ea92 | GuemUICastingBarFrame.lua | GuemUICastingBarFrame.lua |
local AddonName, AddonTable = ...
local LSM = LibStub("LibSharedMedia-3.0")
_G[AddonName] = _G[AddonName] or LibStub("AceAddon-3.0"):NewAddon(AddonName)
local Addon = _G[AddonName]
local assert = assert
local type = type
local getmetatable = getmetatable
local CreateFrame = CreateFrame
local GetSpellInfo = GetSpellI... |
local AddonName, AddonTable = ...
local LSM = LibStub("LibSharedMedia-3.0")
_G[AddonName] = _G[AddonName] or LibStub("AceAddon-3.0"):NewAddon(AddonName)
local Addon = _G[AddonName]
local assert = assert
local type = type
local getmetatable = getmetatable
local CreateFrame = CreateFrame
local GetSpellInfo = GetSpellI... | Multiple bug fixes, and now support channelings. | Multiple bug fixes, and now support channelings.
| Lua | unlicense | Guema/gCastBars,Guema/GuemUICastBars |
065fb2fd632bf8e81b3f556e8069956f371d1582 | Hydra/API/window.lua | Hydra/API/window.lua | --- window
---
--- Functions for managing any window.
---
--- To get windows, see `window.focusedwindow` and `window.visiblewindows`.
---
--- To get window geometrical attributes, see `window.{frame,size,topleft}`.
---
--- To move and resize windows, see `window.set{frame,size,topleft}`.
---
--- It may be handy to get ... | --- window
---
--- Functions for managing any window.
---
--- To get windows, see `window.focusedwindow` and `window.visiblewindows`.
---
--- To get window geometrical attributes, see `window.{frame,size,topleft}`.
---
--- To move and resize windows, see `window.set{frame,size,topleft}`.
---
--- It may be handy to get ... | Fix window:focuswindow_* and window:windows_to_* methods. | Fix window:focuswindow_* and window:windows_to_* methods.
| Lua | mit | latenitefilms/hammerspoon,ocurr/hammerspoon,wvierber/hammerspoon,heptal/hammerspoon,wsmith323/hammerspoon,zzamboni/hammerspoon,kkamdooong/hammerspoon,CommandPost/CommandPost-App,dopcn/hammerspoon,ocurr/hammerspoon,cmsj/hammerspoon,TimVonsee/hammerspoon,Stimim/hammerspoon,cmsj/hammerspoon,wvierber/hammerspoon,emoses/ham... |
8fa906a132133820c97a49b94d5fffb6c8d5737f | lua/quicDetect.lua | lua/quicDetect.lua | local ffi = require "ffi"
local lm = require "libmoon"
local pktLib = require "packet"
local eth = require "proto.ethernet"
local ip4 = require "proto.ip4"
local ip6 = require "proto.ip6"
local tuple = require "tuple"
local log = require "log"
local hmap = require "hmap"
local namespace = require "namespaces"
local ban... | local ffi = require "ffi"
local lm = require "libmoon"
local pktLib = require "packet"
local eth = require "proto.ethernet"
local ip4 = require "proto.ip4"
local ip6 = require "proto.ip6"
local tuple = require "tuple"
local log = require "log"
local hmap = require "hmap"
local namespace = require "namespaces"
local ban... | Fix key compare in quic module. Cleanup small errors. | Fix key compare in quic module.
Cleanup small errors.
| Lua | mit | emmericp/FlowScope |
61254d035643de23013b8995a7385ac79a673cbd | MCServer/Plugins/APIDump/Hooks/OnPluginsLoaded.lua | MCServer/Plugins/APIDump/Hooks/OnPluginsLoaded.lua | return
{
HOOK_PLUGINS_LOADED =
{
CalledWhen = "All the enabled plugins have been loaded",
DefaultFnName = "OnPluginsLoaded", -- also used as pagename
Desc = [[
This callback gets called when the server finishes loading and initializing plugins. This is the
perfect occasion for a plugin to query other plu... | return
{
HOOK_PLUGINS_LOADED =
{
CalledWhen = "All the enabled plugins have been loaded",
DefaultFnName = "OnPluginsLoaded", -- also used as pagename
Desc = [[
This callback gets called when the server finishes loading and initializing plugins. This is the
perfect occasion for a plugin to query other plu... | APIDump: Fixed a factual error in OnPluginsLoaded description. | APIDump: Fixed a factual error in OnPluginsLoaded description.
| Lua | apache-2.0 | Tri125/MCServer,Frownigami1/cuberite,Haxi52/cuberite,thetaeo/cuberite,bendl/cuberite,marvinkopf/cuberite,nichwall/cuberite,guijun/MCServer,guijun/MCServer,nicodinh/cuberite,electromatter/cuberite,QUSpilPrgm/cuberite,Schwertspize/cuberite,kevinr/cuberite,kevinr/cuberite,kevinr/cuberite,linnemannr/MCServer,nicodinh/cuber... |
eb71045c38360caa713bba9b6cc8f1db66944de6 | tests/base/test_aliasing.lua | tests/base/test_aliasing.lua | --
-- tests/base/test_aliasing.lua
-- Verify handling of function aliases.
-- Copyright (c) 2015 Jason Perkins and the Premake project
--
local suite = test.declare("premake_alias")
local p = premake
function suite.setup()
suite.testfunc = function()
return 48
end
suite.aliased = nil
suite.aliased2 = ... | --
-- tests/base/test_aliasing.lua
-- Verify handling of function aliases.
-- Copyright (c) 2015 Jason Perkins and the Premake project
--
local suite = test.declare("premake_alias")
local m = {}
local p = premake
function suite.setup()
m.testfunc = function()
return 48
end
m.aliased = nil
m.aliased2 ... | Fixed bug with alias tests that caused one to three extra tests to be run | Fixed bug with alias tests that caused one to three extra tests to be run
| Lua | bsd-3-clause | mandersan/premake-core,soundsrc/premake-core,noresources/premake-core,premake/premake-core,soundsrc/premake-core,sleepingwit/premake-core,dcourtois/premake-core,LORgames/premake-core,LORgames/premake-core,TurkeyMan/premake-core,mandersan/premake-core,Zefiros-Software/premake-core,tvandijck/premake-core,premake/premake-... |
22e41ee2fe7266218b1619a782d43034e0355be0 | otouto/plugins/blacklist.lua | otouto/plugins/blacklist.lua | -- This plugin will allow the admin to blacklist users who will be unable to
-- use the bot. This plugin should be at the top of your plugin list in config.
local blacklist = {}
local utilities = require('otouto.utilities')
local bindings = require('otouto.bindings')
function blacklist:init()
if not self.database... | -- This plugin will allow the admin to blacklist users who will be unable to
-- use the bot. This plugin should be at the top of your plugin list in config.
local blacklist = {}
local utilities = require('otouto.utilities')
local bindings = require('otouto.bindings')
function blacklist:init()
if not self.database... | blacklist.lua bugfix | blacklist.lua bugfix
| Lua | agpl-3.0 | topkecleon/otouto,barreeeiroo/BarrePolice,bb010g/otouto,Brawl345/Brawlbot-v2 |
380ddd079a3616332dd0c1ff4876f465156d37ce | access.lua | access.lua |
-- import requirements
-- allow either ccjsonjson, or th-LuaJSON
local has_cjson, jsonmod = pcall(require, "cjson")
if not has_cjson then
jsonmod = require "json"
end
-- Ubuntu broke the install. Puts the source in /usr/share/lua/5.1/https.lua,
-- but since the source defines itself as the module "ssl.https", aft... |
-- import requirements
-- allow either ccjsonjson, or th-LuaJSON
local has_cjson, jsonmod = pcall(require, "cjson")
if not has_cjson then
jsonmod = require "json"
end
-- Ubuntu broke the install. Puts the source in /usr/share/lua/5.1/https.lua,
-- but since the source defines itself as the module "ssl.https", aft... | Fixed bug where substring match could lead to accidentally triggering whitelist or blacklist (i.e. whitelist for "c@a.org" matches "abc@a.org") | Fixed bug where substring match could lead to accidentally triggering whitelist or blacklist (i.e. whitelist for "c@a.org" matches "abc@a.org")
| Lua | mit | milliwayslabs/nginx-google-oauth,milliwayslabs/nginx-google-oauth,agoragames/nginx-google-oauth,agoragames/nginx-google-oauth,ivan1986/nginx-google-oauth,ivan1986/nginx-google-oauth |
70f2e099be4c11754bd358c3657794279f7c65e0 | nvim/lua/treesitter_config.lua | nvim/lua/treesitter_config.lua | local max_lines = 1000
require('nvim-treesitter.configs').setup {
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
ensure_installed = "maintained",
sync_install = false,
ignore_install = {},
highlight = {
enable = true,
disable = function(lang, bufnr)
return vi... | local max_lines = 1000
require('nvim-treesitter.configs').setup {
-- One of "all", "maintained" (parsers with maintainers), or a list of languages
ensure_installed = {
'bash',
'c', 'cpp', 'rust',
'javascript', 'typescript',
'json', 'toml',
'vim', 'lua',
},
sync_install = false,
ignore_ins... | nvim: fix treesitter config after upstream changes | nvim: fix treesitter config after upstream changes
| Lua | unlicense | aqrln/dotfiles,aqrln/dotfiles |
6160010cbc434e02ab3b8f2c414afd96a5fb2c30 | SpatialLPPooling.lua | SpatialLPPooling.lua | local SpatialLPPooling, parent = torch.class('nn.SpatialLPPooling', 'nn.Sequential')
function SpatialLPPooling:__init(nInputPlane, pnorm, kW, kH, dW, dH)
parent.__init(self)
dW = dW or kW
dH = dH or kH
self.kW = kW
self.kH = kH
self.dW = dW
self.dH = dH
self.nInputPlane = nInputPlane
s... | local SpatialLPPooling, parent = torch.class('nn.SpatialLPPooling', 'nn.Sequential')
function SpatialLPPooling:__init(nInputPlane, pnorm, kW, kH, dW, dH)
parent.__init(self)
dW = dW or kW
dH = dH or kH
self.kW = kW
self.kH = kH
self.dW = dW
self.dH = dH
self.nInputPlane = nInputPlane
... | Fixed some GPU modules ; made SpatialLPPooling compat with CUDA. | Fixed some GPU modules ; made SpatialLPPooling compat with CUDA.
| Lua | bsd-3-clause | nicholas-leonard/nn,Moodstocks/nn,eriche2016/nn,andreaskoepf/nn,jzbontar/nn,jhjin/nn,witgo/nn,eulerreich/nn,caldweln/nn,boknilev/nn,vgire/nn,bartvm/nn,hery/nn,abeschneider/nn,colesbury/nn,forty-2/nn,elbamos/nn,ivendrov/nn,jonathantompson/nn,douwekiela/nn,ominux/nn,zchengquan/nn,davidBelanger/nn,adamlerer/nn,aaiijmrtt/n... |
b7fbfcde8441ec712cf8d2e54d0c4c3cffc11073 | src/db.lua | src/db.lua | -- Imports / module wrapper
local Pkg = {}
local std = _G
local error = error
local print = print
local type = type
local tostring = tostring
local getmetatable = getmetatable
local setmetatable = setmetatable
local pairs = pairs
local ipairs = ipairs
local string = string
local table = table
local util = require("util... | -- Imports / module wrapper
local Pkg = {}
local std = _G
local error = error
local print = print
local type = type
local tostring = tostring
local getmetatable = getmetatable
local setmetatable = setmetatable
local pairs = pairs
local ipairs = ipairs
local string = string
local table = table
local util = require("util... | Fix schema matching (broken from STRONG_IN) and add variadic support to getArgs | Fix schema matching (broken from STRONG_IN) and add variadic support to getArgs
| Lua | apache-2.0 | shamrin/Eve,witheve/lueve,nmsmith/Eve,witheve/Eve,witheve/Eve,witheve/lueve,shamrin/Eve,witheve/Eve,nmsmith/Eve,nmsmith/Eve,shamrin/Eve |
62d4f1408ed8262b86f3d85795524cddba81db23 | factions/server/factions.lua | factions/server/factions.lua | --[[
The MIT License (MIT)
Copyright (c) 2014 Socialz (+ soc-i-alz GitHub organization)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... | --[[
The MIT License (MIT)
Copyright (c) 2014 Socialz (+ soc-i-alz GitHub organization)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... | factions: added few parameters + fix | factions: added few parameters + fix
Added type parameter to createFaction (and hooked with the SQL query);
addCharacterToFaction now defaults rank and isLeader to the 1/0
respectively;
loadFaction returned error when nilling a nil table child;
loadFaction now returns the faction that was loaded.
| Lua | mit | smile-tmb/lua-mta-fairplay-roleplay |
0506b476bfd2ac51d64f57c81e1e7291488a5c0e | mock/common/PrefabAsset.lua | mock/common/PrefabAsset.lua | module 'mock'
--------------------------------------------------------------------
CLASS: Prefab ()
function Prefab:__init( data, id )
self.data = data
self.id = id
end
function Prefab:createInstance()
local instance
local data = self.data
if not data.entities then
_stat('loading empty prefab')
instance = E... | module 'mock'
--------------------------------------------------------------------
CLASS: Prefab ()
function Prefab:__init( data, id )
self.data = data
self.id = id
self.rootId = data.entities[1]['id']
local rootData = data.map[ self.rootId ]
self.rootName = rootData['body']['name']
end
function Prefab:getR... | fixed Prefab guid issue | fixed Prefab guid issue
| Lua | mit | tommo/mock |
0a24560291d9a6720d6bab52fc57bd2db791aad4 | src/api-umbrella/proxy/jobs/distributed_rate_limit_pusher.lua | src/api-umbrella/proxy/jobs/distributed_rate_limit_pusher.lua | local _M = {}
local distributed_rate_limit_queue = require "api-umbrella.proxy.distributed_rate_limit_queue"
local interval_lock = require "api-umbrella.utils.interval_lock"
local mongo = require "api-umbrella.utils.mongo"
local types = require "pl.types"
local is_empty = types.is_empty
local delay = 0.25 -- in sec... | local _M = {}
local distributed_rate_limit_queue = require "api-umbrella.proxy.distributed_rate_limit_queue"
local mongo = require "api-umbrella.utils.mongo"
local types = require "pl.types"
local is_empty = types.is_empty
local delay = 0.25 -- in seconds
local new_timer = ngx.timer.at
local indexes_created = fals... | Fix the distributed rate limit pusher not firing as often as needed. | Fix the distributed rate limit pusher not firing as often as needed.
This was causing some test failures, since each worker process was not
syncing its local data as frequently as expected. The rate limit pusher
is a bit of an odd case amongst our background workers, since it's the
one place where we don't actually wa... | Lua | mit | apinf/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella |
19884146f09b89699209063f1e19c9ec818ab506 | pud/system/CollisionSystem.lua | pud/system/CollisionSystem.lua | local Class = require 'lib.hump.class'
local ListenerBag = getClass 'pud.kit.ListenerBag'
local property = require 'pud.component.property'
local message = require 'pud.component.message'
local match = string.match
-- CollisionSystem
--
local CollisionSystem = Class{name='CollisionSystem',
function(self, level)
sel... | local Class = require 'lib.hump.class'
local ListenerBag = getClass 'pud.kit.ListenerBag'
local property = require 'pud.component.property'
local message = require 'pud.component.message'
local match = string.match
-- CollisionSystem
--
local CollisionSystem = Class{name='CollisionSystem',
function(self, level)
sel... | fix CollisionSystem to register a component's mediator | fix CollisionSystem to register a component's mediator
instead of the component itself. This is probably wrong.
| Lua | mit | scottcs/wyx |
2c4886d598b26771a65122abe39937ec0e434e83 | vrp/modules/survival.lua | vrp/modules/survival.lua | local lang = vRP.lang
local Survival = class("Survival", vRP.Extension)
-- SUBCLASS
Survival.User = class("User")
-- return vital value (0-1) or nil
function Survival.User:getVital(name)
return self.cdata.vitals[name]
end
-- set vital
-- value: 0-1
function Survival.User:setVital(name, value)
if vRP.EXT.Surviv... | local lang = vRP.lang
local Survival = class("Survival", vRP.Extension)
-- SUBCLASS
Survival.User = class("User")
-- return vital value (0-1) or nil
function Survival.User:getVital(name)
return self.cdata.vitals[name]
end
-- set vital
-- value: 0-1
function Survival.User:setVital(name, value)
if vRP.EXT.Surviv... | Fix survival display and overflow issues. | Fix survival display and overflow issues.
| Lua | mit | ImagicTheCat/vRP,ImagicTheCat/vRP |
6697ecb8d0dc8fa2ad1710f8d97a6e5a17f78f34 | src/cqueues.lua | src/cqueues.lua | local loader = function(loader, ...)
local core = require"_cqueues"
local errno = require"_cqueues.errno"
local monotime = core.monotime
local running = core.running
local strerror = errno.strerror
-- lazily load auxlib to prevent circular or unused dependencies
local auxlib = setmetatable({}, { __index = funct... | local loader = function(loader, ...)
local core = require"_cqueues"
local errno = require"_cqueues.errno"
local monotime = core.monotime
local running = core.running
local strerror = errno.strerror
-- lazily load auxlib to prevent circular or unused dependencies
local auxlib = setmetatable({}, { __index = funct... | another fix to our non-coroutine cqueues.poll hack | another fix to our non-coroutine cqueues.poll hack
| Lua | mit | daurnimator/cqueues,bigcrush/cqueues,wahern/cqueues,daurnimator/cqueues,bigcrush/cqueues,wahern/cqueues |
4b99130f3d585e1928a12e85d6fe699c653608aa | config/sipi.init-knora-test.lua | config/sipi.init-knora-test.lua |
--
-- Copyright © 2016 Lukas Rosenthaler, Andrea Bianco, Benjamin Geer,
-- Ivan Subotic, Tobias Schweizer, André Kilchenmann, and André Fatton.
-- This file is part of Sipi.
-- Sipi is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published
-- by... |
--
-- Copyright © 2016 Lukas Rosenthaler, Andrea Bianco, Benjamin Geer,
-- Ivan Subotic, Tobias Schweizer, André Kilchenmann, and André Fatton.
-- This file is part of Sipi.
-- Sipi is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published
-- by... | fix: Use prefix if provided in sipi.init-knora-test.lua. | fix: Use prefix if provided in sipi.init-knora-test.lua.
| Lua | agpl-3.0 | dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi,dhlab-basel/Sipi |
de032f448758a5f29a800a94e689105084cc6db9 | applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | applications/luci-ddns: fix selection of custom update_url | applications/luci-ddns: fix selection of custom update_url
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@6588 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI,mzguanglin/LuCI |
0e35a9bd38304b23fe866acd3ab4900fcc94df0d | lua/entities/gmod_wire_expression2/core/selfaware.lua | lua/entities/gmod_wire_expression2/core/selfaware.lua | /******************************************************************************\
Selfaware support
\******************************************************************************/
__e2setcost(1) -- temporary
e2function entity entity()
return self.entity
end
e2function entity owner()
return self.player
end
__e2s... | /******************************************************************************\
Selfaware support
\******************************************************************************/
__e2setcost(1) -- temporary
e2function entity entity()
return self.entity
end
e2function entity owner()
return self.player
end
__e2s... | setName character limit | setName character limit
Fixes some issues with net messages and server freezes due to large strings ( over 300 million characters ). Sets a limit of 12,000 characters.
| Lua | apache-2.0 | dvdvideo1234/wire,Grocel/wire,wiremod/wire,bigdogmat/wire,thegrb93/wire,sammyt291/wire,garrysmodlua/wire,NezzKryptic/Wire |
0900aeb9b3ec21026705918d1bc591bbfb18012a | MMOCoreORB/bin/scripts/mobile/dantooine/serverobjects.lua | MMOCoreORB/bin/scripts/mobile/dantooine/serverobjects.lua | includeFile("dantooine/abandoned_rebel_private.lua")
includeFile("dantooine/adwan_turoldine.lua")
includeFile("dantooine/ancient_graul.lua")
includeFile("dantooine/baby_bol.lua")
includeFile("dantooine/bek_rabor.lua")
includeFile("dantooine/bile_drenched_quenker.lua")
includeFile("dantooine/bol_be.lua")
includeFile("da... | includeFile("dantooine/abandoned_rebel_private.lua")
includeFile("dantooine/adwan_turoldine.lua")
includeFile("dantooine/ancient_graul.lua")
includeFile("dantooine/baby_bol.lua")
includeFile("dantooine/bek_rabor.lua")
includeFile("dantooine/bile_drenched_quenker.lua")
includeFile("dantooine/bol_be.lua")
includeFile("da... | (unstable) [fixed] missing npc template for mon mothma mission 4. | (unstable) [fixed] missing npc template for mon mothma mission 4.
git-svn-id: e4cf3396f21da4a5d638eecf7e3b4dd52b27f938@5948 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/... |
a7bcddaaacb1dfc040ed61ac0fa4028680088e9f | frlib/loaders/meshes.lua | frlib/loaders/meshes.lua | -- Import relevant base types.
local types = require "base.types"
require "base.vec2"
require "base.vec3"
require "base.vec4"
-- Import utility functions.
local transform = require "base.transform"
-- Module aliases.
local vec2 = types.vec2
local vec3 = types.vec3
local vec4 = types.vec4
local scale = transform.scale... | -- Import relevant base types.
local types = require "base.types"
require "base.vec2"
require "base.vec3"
require "base.vec4"
-- Import utility functions.
local transform = require "base.transform"
-- Module aliases.
local vec2 = types.vec2
local vec3 = types.vec3
local vec4 = types.vec4
local scale = transform.scale... | Fixed OBJ loading for indexed face sets. Makes some assumptions about the format of the OBJ file. | Fixed OBJ loading for indexed face sets. Makes some assumptions about the format of the OBJ file.
| Lua | mit | bobsomers/flexrender,bobsomers/flexrender |
5a244f631846b42306213bb43397ff41d98fbc00 | .config/nvim/lua/user/cmp.lua | .config/nvim/lua/user/cmp.lua | local cmp_status_ok, cmp = pcall(require, "cmp")
if not cmp_status_ok then
return
end
local luasnip_ok, luasnip = pcall(require, "luasnip")
if not luasnip_ok then
return
end
local lspkind_ok, lspkind = pcall(require, "lspkind")
if not lspkind_ok then
return
end
-- https://github.com/LunarVim/Neovim-from-scratch/b... | local cmp_status_ok, cmp = pcall(require, "cmp")
if not cmp_status_ok then
return
end
local luasnip_ok, luasnip = pcall(require, "luasnip")
if not luasnip_ok then
return
end
local lspkind_ok, lspkind = pcall(require, "lspkind")
if not lspkind_ok then
return
end
-- https://github.com/LunarVim/Neovim-from-scratch/b... | Fix https://github.com/hrsh7th/nvim-cmp/issues/231#issuecomment-1098175017 | Fix https://github.com/hrsh7th/nvim-cmp/issues/231#issuecomment-1098175017
| Lua | isc | tarebyte/dotfiles,tarebyte/dotfiles |
fc4535f7b43defdadffe6c787248cd3f772221fe | hammerspoon/tap-modifier-for-hotkey.lua | hammerspoon/tap-modifier-for-hotkey.lua | local eventtap = require('hs.eventtap')
local events = eventtap.event.types
local modal={}
-- Return an object whose behavior is inspired by hs.hotkey.modal. In this case,
-- the modal state is entered when the specified modifier key is tapped (i.e.,
-- pressed and then released in quick succession).
modal.new = func... | local eventtap = require('hs.eventtap')
local events = eventtap.event.types
local modal={}
-- Return an object whose behavior is inspired by hs.hotkey.modal. In this case,
-- the modal state is entered when the specified modifier key is tapped (i.e.,
-- pressed and then released in quick succession).
modal.new = func... | 🐛 Fix bug where certain sequence would wrongly enter Hyper Mode | 🐛 Fix bug where certain sequence would wrongly enter Hyper Mode
Fixes the following bug:
1. Hold down option+shift
2. Press left arrow
3. Release shift
4. Release option
5. Observe that it wrongly enters Hyper Mode
| Lua | mit | jasonrudolph/keyboard,jasonrudolph/keyboard |
8b3aafa658610e2f6ecccf3fe4d61ea33c5a202c | applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua | applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
loc... | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | applications/luci-firewall: fix datatype validation for masq src/dest; allow list of negated ucinames, hostnames, ip-ranges or -addresses | applications/luci-firewall: fix datatype validation for masq src/dest; allow list of negated ucinames, hostnames, ip-ranges or -addresses
| Lua | apache-2.0 | deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci |
e17b5ef40f5b5e386363ea0db38d888552a5f6de | MMOCoreORB/bin/scripts/screenplays/poi/naboo_gungan_temple.lua | MMOCoreORB/bin/scripts/screenplays/poi/naboo_gungan_temple.lua | GunganTempleScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "GunganTempleScreenPlay",
lootContainers = {
6336300,
261337,
261336
},
lootLevel = 17,
lootGroups = {
{
groups = {
{group = "junk", chance = 8600000},
{group = "rifles", chance = 500000},
... | GunganTempleScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "GunganTempleScreenPlay",
lootContainers = {
6336300,
261337,
261336
},
lootLevel = 17,
lootGroups = {
{
groups = {
{group = "color_crystals", chance = 3500000},
{group = "junk", chance = 35000... | [Fixed] Naboo Gungan Temple lootgroups. | [Fixed] Naboo Gungan Temple lootgroups.
Change-Id: I26b84bd2003bef3a1c940bba2d962d202b5ba85f
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/... |
39000670269bcdc02d6d1069b58477ff0c6e3755 | lualib/skynet/cluster.lua | lualib/skynet/cluster.lua | local skynet = require "skynet"
local clusterd
local cluster = {}
local sender = {}
local task_queue = {}
local function request_sender(q, node)
local ok, c = pcall(skynet.call, clusterd, "lua", "sender", node)
if not ok then
skynet.error(c)
c = nil
end
-- run tasks in queue
local confirm = coroutine.running... | local skynet = require "skynet"
local clusterd
local cluster = {}
local sender = {}
local task_queue = {}
local function repack(address, ...)
return address, skynet.pack(...)
end
local function request_sender(q, node)
local ok, c = pcall(skynet.call, clusterd, "lua", "sender", node)
if not ok then
skynet.error(... | bugfix:params changed when cluster sender is connecting (#1420) | bugfix:params changed when cluster sender is connecting (#1420)
Co-authored-by: LiuYang <85643b79448ff954b27e65db9f04fb610bf84c45@alibaba-inc.com> | Lua | mit | xjdrew/skynet,xjdrew/skynet,cloudwu/skynet,wangyi0226/skynet,korialuo/skynet,cloudwu/skynet,hongling0/skynet,sanikoyes/skynet,hongling0/skynet,korialuo/skynet,cloudwu/skynet,icetoggle/skynet,wangyi0226/skynet,icetoggle/skynet,sanikoyes/skynet,sanikoyes/skynet,xjdrew/skynet,icetoggle/skynet,korialuo/skynet,wangyi0226/sk... |
6c10d80dcfa1318aeb1f64a97bfd28caa06f4761 | src/core.lua | src/core.lua | -- return truthy if we're in a coroutine
local function in_coroutine()
local current_routine, main = coroutine.running()
-- need check to the main variable for 5.2, it's nil for 5.1
return current_routine and (main == nil or main == false)
end
local busted = {
root_context = { type = "describe", description = ... | -- return truthy if we're in a coroutine
local function in_coroutine()
local current_routine, main = coroutine.running()
-- need check to the main variable for 5.2, it's nil for 5.1
return current_routine and (main == nil or main == false)
end
local busted = {
root_context = { type = "describe", description = ... | fix: setup log info showed up in output, even in case of success | fix: setup log info showed up in output, even in case of success
| Lua | mit | sobrinho/busted,o-lim/busted,DorianGray/busted,istr/busted,xyliuke/busted,Olivine-Labs/busted,leafo/busted,mpeterv/busted,azukiapp/busted,nehz/busted,ryanplusplus/busted |
1bb887b550a8c61128c0504cebd00024de5c086c | luapak/luarocks/init.lua | luapak/luarocks/init.lua | ---------
-- Facade for interaction with LuaRocks.
----
require 'luapak.luarocks.site_config'
require 'luapak.luarocks.cfg_extra'
package.loaded['luarocks.build.builtin'] = require 'luapak.build.builtin'
local cfg = require 'luarocks.cfg'
local build = require 'luarocks.build'
local fetch = require 'luarocks.fetch'
lo... | ---------
-- Facade for interaction with LuaRocks.
----
require 'luapak.luarocks.site_config'
require 'luapak.luarocks.cfg_extra'
package.loaded['luarocks.build.builtin'] = require 'luapak.build.builtin'
local cfg = require 'luarocks.cfg'
local build = require 'luarocks.build'
local fetch = require 'luarocks.fetch'
lo... | Fix duplication of LUAJIT_MACOS_LDFLAGS | Fix duplication of LUAJIT_MACOS_LDFLAGS
| Lua | mit | jirutka/luapak,jirutka/luapak |
153ca3e83eee84e48da0eddd2451f10282fa5bc2 | plugins/database.lua | plugins/database.lua | local function callback_group_database(extra, success, result)
local database = extra.database
local chat_id = result.peer_id
-- save group info
if database["groups"][tostring(chat_id)] then
database["groups"][tostring(chat_id)] = {
print_name = result.print_name:gsub("_"," "... | local function callback_group_database(extra, success, result)
local database = extra.database
local chat_id = result.peer_id
-- save group info
if database["groups"][tostring(chat_id)] then
database["groups"][tostring(chat_id)] = {
print_name = result.print_name:gsub("_"," "... | fix database | fix database
| Lua | agpl-3.0 | xsolinsx/AISasha |
e35cad3053cd68e6bf64c19f93090f711f974e49 | lualib/http/tlshelper.lua | lualib/http/tlshelper.lua | local socket = require "http.sockethelper"
local c = require "ltls.c"
local tlshelper = {}
function tlshelper.init_requestfunc(fd, tls_ctx)
local readfunc = socket.readfunc(fd)
local writefunc = socket.writefunc(fd)
return function ()
local ds1 = tls_ctx:handshake()
writefunc(ds1)
... | local socket = require "http.sockethelper"
local c = require "ltls.c"
local tlshelper = {}
function tlshelper.init_requestfunc(fd, tls_ctx)
local readfunc = socket.readfunc(fd)
local writefunc = socket.writefunc(fd)
return function ()
local ds1 = tls_ctx:handshake()
writefunc(ds1)
... | fix #1494 socket read阻塞问题 (#1495) | fix #1494 socket read阻塞问题 (#1495)
* fix #1494 socket read阻塞问题
* 优化readfunc
Co-authored-by: zixun <1c4f76f41f033c1ac87f9def94f616e7a591e78d@alibaba-inc.com> | Lua | mit | wangyi0226/skynet,xjdrew/skynet,cloudwu/skynet,korialuo/skynet,xjdrew/skynet,sanikoyes/skynet,wangyi0226/skynet,cloudwu/skynet,korialuo/skynet,sanikoyes/skynet,wangyi0226/skynet,korialuo/skynet,cloudwu/skynet,sanikoyes/skynet,xjdrew/skynet |
cee11c7d2bb2b57449bbdd62abf261a988b04d6a | hammerspoon/init.lua | hammerspoon/init.lua | local log = hs.logger.new('init.lua', 'debug')
keyUpDown = function(modifiers, key)
log.d('Sending keystroke:', hs.inspect(modifiers), key)
hs.eventtap.event.newKeyEvent(modifiers, key, true):post()
hs.eventtap.event.newKeyEvent(modifiers, key, false):post()
end
-- Subscribe to the necessary events on the given... | local log = hs.logger.new('init.lua', 'debug')
-- Use Control+` to reload Hammerspoon config
hs.hotkey.bind({'ctrl'}, '`', nil, function()
hs.reload()
end)
keyUpDown = function(modifiers, key)
log.d('Sending keystroke:', hs.inspect(modifiers), key)
hs.eventtap.event.newKeyEvent(modifiers, key, true):post()
hs... | Define keybinding earlier | Define keybinding earlier
When working on these configs, if there's an error in the code, it
will prevent the subsequent code from getting executed. In those cases,
we need to fix the issue and reload the config. To make it easier to
reload the config, it's helpful to bind the hotkey for reloading the
config *before* ... | Lua | mit | jasonrudolph/keyboard,jasonrudolph/keyboard |
af20bba3469a18802d29481ef0a14668c3c14cc7 | lua/geohash.lua | lua/geohash.lua | local GeoHash = {}
--[[
-- Private Attributes
]]--
local _map = {}
_map['0'] = '00000'
_map['1'] = '00001'
_map['2'] = '00010'
_map['3'] = '00011'
_map['4'] = '00100'
_map['5'] = '00101'
_map['6'] = '00110'
_map['7'] = '00111'
_map['8'] = '01000'
_map['9'] =... | local GeoHash = {}
--[[
-- Private Attributes
]]--
local _map = {}
_map['0'] = '00000'
_map['1'] = '00001'
_map['2'] = '00010'
_map['3'] = '00011'
_map['4'] = '00100'
_map['5'] = '00101'
_map['6'] = '00110'
_map['7'] = '00111'
_map['8'] = '01000'
_map['9'] =... | Fixed issue when lat, long has no decimals | Fixed issue when lat, long has no decimals
Fx. the lat, long coordinate (55, 12)
| Lua | mit | dauer/geohash,irr/geohash,dauer/geohash,irr/geohash |
06fd2351546f74f679a1f06aa001cbee141bf802 | agents/monitoring/lua/lib/client/connection_stream.lua | agents/monitoring/lua/lib/client/connection_stream.lua | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | fix getLatency | fix getLatency
| Lua | apache-2.0 | kans/zirgo,kans/zirgo,kans/zirgo |
e1473139468da410b2e6b964c098399bdcac261d | hymn/spawnportal.lua | hymn/spawnportal.lua | local Building = require "shared.building"
local LogicCore = require "hymn.logiccore"
local EntityStatics = require "hymn.staticdata.entitystatics"
local SpawnPortal = Building:subclass("SpawnPortal")
function SpawnPortal:initialize(entityStatic, player)
Building.initialize(self, entityStatic, player)
self:s... | local Building = require "shared.building"
local LogicCore = require "hymn.logiccore"
local EntityStatics = require "hymn.staticdata.entitystatics"
local SpawnPortal = Building:subclass("SpawnPortal")
function SpawnPortal:initialize(entityStatic, player)
Building.initialize(self, entityStatic, player)
self:s... | Fix: more resources == faster spawn | Fix: more resources == faster spawn
| Lua | mit | ExcelF/project-navel |
44d7d6cd2963d58168e2dcd84f3fe81d1e6336e5 | inputbox.lua | inputbox.lua | require "rendertext"
require "keys"
require "graphics"
InputBox = {
-- Class vars:
h = 100,
input_slot_w = nil,
input_start_x = 145,
input_start_y = nil,
input_cur_x = nil, -- points to the start of next input pos
input_bg = 0,
input_string = "",
shiftmode = false,
altmode = false,
cursor = nil,
-- fo... | require "rendertext"
require "keys"
require "graphics"
InputBox = {
-- Class vars:
h = 100,
input_slot_w = nil,
input_start_x = 145,
input_start_y = nil,
input_cur_x = nil, -- points to the start of next input pos
input_bg = 0,
input_string = "",
shiftmode = false,
altmode = false,
cursor = nil,
-- fo... | fix: handle -1 index when deleting characters in inputbox | fix: handle -1 index when deleting characters in inputbox
| Lua | agpl-3.0 | Hzj-jie/koreader-base,apletnev/koreader-base,houqp/koreader-base,koreader/koreader-base,frankyifei/koreader-base,NiLuJe/koreader,NiLuJe/koreader-base,chrox/koreader,Hzj-jie/koreader-base,poire-z/koreader,houqp/koreader-base,ashhher3/koreader,frankyifei/koreader-base,koreader/koreader-base,houqp/koreader-base,Frenzie/ko... |
6f33ff6515128a3a0b5a3d94d525e5cc5ca2555c | lua/rima/operators/pow.lua | lua/rima/operators/pow.lua | -- Copyright (c) 2009-2011 Incremental IP Limited
-- see LICENSE for license information
local math = require("math")
local error, type = error, type
local object = require("rima.lib.object")
local proxy = require("rima.lib.proxy")
local lib = require("rima.lib")
local core = require("rima.core")
local expression = r... | -- Copyright (c) 2009-2011 Incremental IP Limited
-- see LICENSE for license information
local math = require("math")
local error, require, type =
error, require, type
local object = require("rima.lib.object")
local proxy = require("rima.lib.proxy")
local lib = require("rima.lib")
local core = require("rima.cor... | fixed a bug in pow.lua - it needed to require rima.operators.math to use rima.log | fixed a bug in pow.lua - it needed to require rima.operators.math to use rima.log
| Lua | mit | geoffleyland/rima,geoffleyland/rima,geoffleyland/rima |
28d636c474d6076d2d394e3fe9f420b2fa93ff02 | spec/spec_helper.lua | spec/spec_helper.lua | --- nasty monkey patch to create new notification for the whole it block
--- busted does not have builtin way of having a hook around a test with its before/after hooks
do
local function getlocal(fn, var)
local i = 1
while true do
local name, val = debug.getlocal(fn + 1, i)
if name == var then
... | --- nasty monkey patch to create new notification for the whole it block
--- busted does not have builtin way of having a hook around a test with its before/after hooks
do
local function getlocal(fn, var)
local i = 1
while true do
local name, val = debug.getlocal(fn + 1, i)
if name == var then
... | [busted] load integration fixtures too | [busted] load integration fixtures too
| Lua | mit | 3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/apicast |
fb65fc13cd59784b0acf2e7468e6e9ff8cb388a2 | packages/ubus-lime-utils/tests/test_hotspot_wwan.lua | packages/ubus-lime-utils/tests/test_hotspot_wwan.lua | local utils = require "lime.utils"
local test_utils = require "tests.utils"
local config = require 'lime.config'
local hotspot_wwan = require "lime.hotspot_wwan"
local iwinfo = require "iwinfo"
local uci
stub(hotspot_wwan, "_apply_change", function () return '' end)
function config_uci_hotspot_radio()
uci:set('w... | local utils = require "lime.utils"
local test_utils = require "tests.utils"
local config = require 'lime.config'
local hotspot_wwan = require "lime.hotspot_wwan"
local iwinfo = require "iwinfo"
local uci
stub(hotspot_wwan, "_apply_change", function () return '' end)
function config_uci_hotspot_radio()
uci:set('w... | hotspot-wwan: fix tests | hotspot-wwan: fix tests
| Lua | agpl-3.0 | libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages |
48199b8357e6f8d29157a89a68eca45a2b46c507 | modules/atf/util.lua | modules/atf/util.lua | local utils = require("atf.stdlib.argument_parser")
config = require('config')
xmlReporter = require("reporter")
local module = { }
local script_files = {}
RequiredArgument = utils.RequiredArgument
OptionalArgument = utils.OptionalArgument
NoArgument = utils.NoArgument
function table2str(o)
if type(o) == 'table' t... | local utils = require("atf.stdlib.argument_parser")
config = require('config')
xmlReporter = require("reporter")
local module = { }
local script_files = {}
RequiredArgument = utils.RequiredArgument
OptionalArgument = utils.OptionalArgument
NoArgument = utils.NoArgument
function table2str(o)
if type(o) == 'table' t... | Fix path to sdl Now after starting with flag it will find and execute SDL bin | Fix path to sdl
Now after starting with flag it will find and execute SDL bin
Relates to APPLINK-23697
| Lua | bsd-3-clause | aderiabin/sdl_atf,aderiabin/sdl_atf,aderiabin/sdl_atf |
af5e309e47292da83473ee8d2da231d01921a1c4 | spec/helper.lua | spec/helper.lua | local helper = {}
local dir_sep = package.config:sub(1, 1)
-- Return path to root directory when run from `path`.
local function antipath(path)
local _, level = path:gsub(dir_sep, "")
return (".."..dir_sep):rep(level)
end
function helper.luacov_config(prefix)
return {
statsfile = prefix.."luacov.stats... | local helper = {}
local dir_sep = package.config:sub(1, 1)
-- Return path to root directory when run from `path`.
local function antipath(path)
local _, level = path:gsub(dir_sep, "")
return (".."..dir_sep):rep(level)
end
function helper.luacov_config(prefix)
return {
statsfile = prefix.."luacov.stats... | Fix Windows compat in spec/helper | Fix Windows compat in spec/helper
Have to use double quotes.
| Lua | mit | mpeterv/luacheck,xpol/luacheck,mpeterv/luacheck,xpol/luacheck,mpeterv/luacheck,xpol/luacheck,linuxmaniac/luacheck,linuxmaniac/luacheck |
d3e1d17893243ae3b3f0c9e65ce6d79da96eaf71 | spec/helper.lua | spec/helper.lua | local helper = {}
local function get_lua()
local index = -1
local res = "lua"
while arg[index] do
res = arg[index]
index = index - 1
end
return res
end
local lua = get_lua()
local dir_sep = package.config:sub(1, 1)
-- Return path to root directory when run from `path`.
local function an... | local helper = {}
local function get_lua()
local index = -1
local res = "lua"
while arg[index] do
res = arg[index]
index = index - 1
end
return res
end
local dir_sep = package.config:sub(1, 1)
-- Return path to root directory when run from `path`.
local function antipath(path)
local _... | Fix busted failing when collecting coverage | Fix busted failing when collecting coverage
| Lua | mit | mpeterv/luacheck,mpeterv/luacheck,xpol/luacheck,xpol/luacheck,mpeterv/luacheck,xpol/luacheck |
c9d88a1e09b41d21d626aaa1a744856713e46946 | lua/entities/gmod_wire_turret.lua | lua/entities/gmod_wire_turret.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Turret"
ENT.WireDebugName = "Turret"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:DrawShadow( false ... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Turret"
ENT.WireDebugName = "Turret"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:DrawShadow( false ... | Fixed wire turret's spread not duplicating | Fixed wire turret's spread not duplicating
Fixes #657
| Lua | apache-2.0 | garrysmodlua/wire,rafradek/wire,sammyt291/wire,NezzKryptic/Wire,thegrb93/wire,mitterdoo/wire,notcake/wire,wiremod/wire,mms92/wire,bigdogmat/wire,Python1320/wire,dvdvideo1234/wire,plinkopenguin/wiremod,immibis/wiremod,CaptainPRICE/wire,Grocel/wire |
2062188a2a0455ee0b35d827c97f2294a06d06b8 | src/cosy/loader.lua | src/cosy/loader.lua | local version = tonumber (_VERSION:match "Lua%s*(%d%.%d)")
if version < 5.1
or (version == 5.1 and type (_G.jit) ~= "table") then
error "Cosy requires Luajit >= 2 or Lua >= 5.2 to run."
end
local Loader = {}
local loader = {}
if _G.js then
_G.loadhttp = function (url)
local co = coroutine.running ()
local... | local version = tonumber (_VERSION:match "Lua%s*(%d%.%d)")
if version < 5.1
or (version == 5.1 and type (_G.jit) ~= "table") then
error "Cosy requires Luajit >= 2 or Lua >= 5.2 to run."
end
local Loader = {}
Loader.__index = function (loader, key)
return loader.hotswap ("cosy." .. tostring (key))
end
Loader.__cal... | Fix warnings. | Fix warnings.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
6d45bc1e01025dd04a150fbdfb38efd227258932 | remote/ping.lua | remote/ping.lua | local ffi = require 'ffi'
local uv = require 'uv'
local getaddrinfo = require('./utils').getaddrinfo
local AF_INET = 2
local AF_INET6 = jit.os == "OSX" and 30 or
jit.os == "Linux" and 10 or error("Unknown OS")
local SOCK_RAW = 3
local IPPROTO_ICMP = 1
local IPPROTO_ICMP6 = 58
ffi.cdef[[
int socket(i... | local ffi = require 'ffi'
local uv = require 'uv'
local getaddrinfo = require('./utils').getaddrinfo
local AF_INET = 2
local AF_INET6 = jit.os == "OSX" and 30 or
jit.os == "Linux" and 10 or error("Unknown OS")
local SOCK_RAW = 3
local IPPROTO_ICMP = 1
local IPPROTO_ICMP6 = 58
ffi.cdef[[
int socket(i... | Lint fixes | Lint fixes
| Lua | apache-2.0 | virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent |
703f7a0b23ddcd7d9cd122fa3a50ce109788d2a3 | GameServer/Content/Data/LeagueSandbox-Default/Champions/Graves/E.lua | GameServer/Content/Data/LeagueSandbox-Default/Champions/Graves/E.lua | Vector2 = require 'Vector2' -- include 2d vector lib
function onFinishCasting()
addParticleTarget("Graves_Move_OnBuffActivate.troy", getOwner())
local current = Vector2:new(getOwnerX(), getOwnerY())
local to = (Vector2:new(getSpellToX(), getSpellToY()) - current):normalize()
local range = to * 425
... | Vector2 = require 'Vector2' -- include 2d vector lib
function onFinishCasting()
local current = Vector2:new(getOwnerX(), getOwnerY())
local to = (Vector2:new(getSpellToX(), getSpellToY()) - current):normalize()
local range = to * 425
local trueCoords = current + range
dashTo(getOwner(), trueC... | A little fix | A little fix
| Lua | agpl-3.0 | LeagueSandbox/GameServer |
7eb57d58026b171e8b08799126a631c67aba7649 | modules/outfit/outfit.lua | modules/outfit/outfit.lua | Outfit = {}
-- private variables
local window = nil
local m_creature = nil
local m_outfit = nil
local m_outfits = nil
local m_currentOutfit = 1
local m_currentColor = nil
local m_currentClothe = nil
-- private functions
local function onAddonCheckChange(addon, value)
if addon:isChecked() then
m_outfit.addons = ... | Outfit = {}
-- private variables
local window = nil
local m_creature = nil
local m_outfit = nil
local m_outfits = nil
local m_currentOutfit = 1
local m_currentColor = nil
local m_currentClothe = nil
-- private functions
local function onAddonCheckChange(addon, value)
if addon:isChecked() then
m_outfit.addons = ... | outfit fixes | outfit fixes
| Lua | mit | EvilHero90/otclient,Cavitt/otclient_mapgen,Radseq/otclient,gpedro/otclient,Cavitt/otclient_mapgen,dreamsxin/otclient,gpedro/otclient,Radseq/otclient,gpedro/otclient,kwketh/otclient,dreamsxin/otclient,kwketh/otclient,dreamsxin/otclient,EvilHero90/otclient |
559c0c6eeaf45115cdbe477b23659fdcac078ead | plugins/database.lua | plugins/database.lua | local function callback_group_database(extra, success, result)
local database = extra.database
local chat_id = result.peer_id
-- save group info
if database["groups"][tostring(chat_id)] then
database["groups"][tostring(chat_id)] = {
print_name = result.print_name:gsub("_"," "... | local function callback_group_database(extra, success, result)
local database = extra.database
local chat_id = result.peer_id
-- save group info
if database["groups"][tostring(chat_id)] then
database["groups"][tostring(chat_id)] = {
print_name = result.print_name:gsub("_"," "... | fix database | fix database
| Lua | agpl-3.0 | xsolinsx/AISasha |
d55ea181d4fa2763a3192584bbc43f6969f18e91 | game_view.lua | game_view.lua | -- imports
grid_state = require 'grid_state'
glitch_gen = require 'glitchGen'
directions = require 'directions'
glider = require 'glider'
watcher = require 'watcher'
player_state = require 'player_state'
stack_trace = require 'stackTrace'
active_screen = require 'active_screen'
game_over_view = require 'game_over_view'... | -- imports
grid_state = require 'grid_state'
glitch_gen = require 'glitchGen'
directions = require 'directions'
glider = require 'glider'
watcher = require 'watcher'
player_state = require 'player_state'
stack_trace = require 'stackTrace'
active_screen = require 'active_screen'
game_over_view = require 'game_over_view'... | Fixed glider placement bug | Fixed glider placement bug
Glider was automatically placed at the beginning, but not anymore.
| Lua | mit | NamefulTeam/PortoGameJam2015 |
ee9bef10231e85b47266b87da6a60c6a03052fb5 | mrimoff.lua | mrimoff.lua | -- mrimoff.lua
--
-- Stored procedures for Mail.Ru Agent offline messages storage.
--
--
-- index0 - { userid, msgid } (TREE, unique)
--
local function get_key_cardinality_and_max_msgid(index_no, ...)
local key = ...
-- TODO: optimize (replace by calculation cardinality of a key in the index)
local data = { box.s... | -- mrimoff.lua
--
-- Stored procedures for Mail.Ru Agent offline messages storage.
--
--
-- index0 - { userid, msgid } (TREE, unique)
--
local function get_key_cardinality_and_max_msgid(index_no, ...)
local key = ...
-- TODO: optimize (replace by calculation cardinality of a key in the index)
local data = { box.s... | mrimoff.lua: fix race condition on mrim_add | mrimoff.lua: fix race condition on mrim_add
| Lua | bsd-2-clause | derElektrobesen/tntlua,grechkin-pogrebnyakov/tntlua,spectrec/tntlua,mailru/tntlua,BHYCHIK/tntlua |
61a3593e2d9a4ebcab388fd204bec025836a1a6a | packages/luci-mod-status/files/usr/lib/lua/luci/controller/status/bmx6.lua | packages/luci-mod-status/files/usr/lib/lua/luci/controller/status/bmx6.lua | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
Contributors Jo-Philipp Wich <xm@subsignal.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License... | --[[
Copyright (C) 2011 Pau Escrich <pau@dabax.net>
Contributors Jo-Philipp Wich <xm@subsignal.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License... | fixup 'pull controller/bmx6.lua', check if bmx6json.lua exists before trying to require it | fixup 'pull controller/bmx6.lua', check if bmx6json.lua exists before trying to require it
| Lua | agpl-3.0 | libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,libremesh/lime-packages,p4u/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages,libremesh/lime-packages,p4u/lime-packages |
e63918f99050d4b0601294e06c9fc3f92d1fa704 | otouto/plugins/admin/setrules.lua | otouto/plugins/admin/setrules.lua | --[[
setrules.lua
Copyright 2018 topkecleon <drew@otou.to>
This code is licensed under the GNU AGPLv3. See /LICENSE for details.
]]--
local utilities = require('otouto.utilities')
local P = {}
function P:init(bot)
self.triggers = utilities.triggers(bot.info.username, bot.config.cmd_pat)
:t('s... | --[[
setrules.lua
Copyright 2018 topkecleon <drew@otou.to>
This code is licensed under the GNU AGPLv3. See /LICENSE for details.
]]--
local utilities = require('otouto.utilities')
local P = {}
function P:init(bot)
self.triggers = utilities.triggers(bot.info.username, bot.config.cmd_pat)
:t('s... | setrules bugfix | setrules bugfix
| Lua | agpl-3.0 | topkecleon/otouto |
61cb343d98df74f4dfd28b566aad3fccc30e2cd0 | state/load-libraries.lua | state/load-libraries.lua | local Node = require "node.Node"
local Directory = require "node.Directory"
local function liberror(message)
local node = new "node.Node" { name = message }
node.icon = emufun.images.error
node:add_command("Quit EmuFun", emufun.quit)
return node
end
local root = new "node.Node" { name = "EmuFun" }
r... | local Node = require "node.Node"
local Directory = require "node.Directory"
local function liberror(message)
local node = new "node.Node" { name = message }
node.icon = emufun.images.error
node:add_command {
name = "Quit Emufun";
run = emufun.quit;
}
return node
end
local root = ... | Fix error message when no media libraries could be opened | Fix error message when no media libraries could be opened
| Lua | mit | ToxicFrog/EmuFun |
79ff21798a52922175122e2425c36a5e12827629 | api.lua | api.lua | local api = {}
local http = require("socket.http")
local https = require("ssl.https")
local ltn12 = require("ltn12")
local cjson = require("cjson")
local encode = require("multipart-post").encode
https.TIMEOUT = 5
local utils = require("utils")
---@param method string
---@param parameters table
function api.makeRe... | local api = {}
local http = require("socket.http")
local https = require("ssl.https")
local ltn12 = require("ltn12")
local cjson = require("cjson")
local encode = require("multipart-post").encode
https.TIMEOUT = 5
local utils = require("utils")
---@param method string
---@param parameters table
function api.makeRe... | fix: wrong metatable function paramaeters | fix: wrong metatable function paramaeters
| Lua | apache-2.0 | SJoshua/Project-Small-R |
f1c9fd4895fe107683488c501bc07d4e22f46a4f | spec/config_spec.lua | spec/config_spec.lua | local test_env = require("test/test_environment")
local lfs = require("lfs")
local run = test_env.run
local testing_paths = test_env.testing_paths
local env_variables = test_env.env_variables
local site_config
test_env.unload_luarocks()
describe("LuaRocks config tests #blackbox #b_config", function()
before_ea... | local test_env = require("test/test_environment")
local lfs = require("lfs")
local run = test_env.run
local testing_paths = test_env.testing_paths
local env_variables = test_env.env_variables
local site_config
test_env.unload_luarocks()
describe("LuaRocks config tests #blackbox #b_config", function()
before_ea... | Fix of config test | Fix of config test
| Lua | mit | tarantool/luarocks,luarocks/luarocks,xpol/luainstaller,robooo/luarocks,xpol/luainstaller,xpol/luainstaller,keplerproject/luarocks,xpol/luavm,xpol/luavm,xpol/luainstaller,keplerproject/luarocks,xpol/luavm,robooo/luarocks,keplerproject/luarocks,xpol/luarocks,xpol/luavm,xpol/luarocks,luarocks/luarocks,tarantool/luarocks,x... |
2f00aed95de616e2f0bb3d6ec5d845d42eb451cd | themes/eigengrau.lua | themes/eigengrau.lua | local view, colors, styles = view, lexer.colors, lexer.styles
-- required colors
colors.yellow = 0x66bab2 -- highlight color from editing.lua
colors.orange = 0x222222 -- highlight color from editing.lua
colors.red = 0x6161c2 -- diff lexer
colors.green = 0x81cc81 -- diff lexer
colors.base0 = 0x1d1616
co... | local view, colors, styles = view, lexer.colors, lexer.styles
-- required colors
colors.yellow = 0x66bab2 -- highlight color from editing.lua
colors.orange = 0x222222 -- highlight color from editing.lua
colors.red = 0x6161c2 -- diff lexer
colors.green = 0x81cc81 -- diff lexer
colors.base0 = 0x1d1616
co... | Fix refrences to colors that were not defined | Fix refrences to colors that were not defined
| Lua | mit | Hackerpilot/TextadeptModules |
5816ba68bdd9875844c045872c41954be877fdeb | src/ui/MainMenuView.lua | src/ui/MainMenuView.lua | local class = require 'lib/30log'
local GameObject = require 'src/GameObject'
local Transform = require 'src/component/Transform'
local Renderable = require 'src/component/Renderable'
local Interfaceable = require 'src/component/Interfaceable'
local Polygon = require 'src/datatype/Polygon'
local TouchDelegate = require... | local class = require 'lib/30log'
local GameObject = require 'src/GameObject'
local Transform = require 'src/component/Transform'
local Renderable = require 'src/component/Renderable'
local Interfaceable = require 'src/component/Interfaceable'
local Polygon = require 'src/datatype/Polygon'
local TouchDelegate = require... | fixed scaling on left arrow | fixed scaling on left arrow
| Lua | mit | Sewerbird/Helios2400,Sewerbird/Helios2400,Sewerbird/Helios2400 |
5be3c72a23c3236f30ee17aa5c6aeb24cdf09a8f | premake5.lua | premake5.lua | newoption {
trigger = "inst_prefix",
value = "PATH",
description = "[inst_prefix]/(bin or include or lib)"
}
local instPrefix = _OPTIONS["inst_prefix"] or ""
--[[
newoption {
trigger = "inst_bin_suffix",
value = "PATH",
description = "/bin[inst_bin_suffix]"
}
local instBinSuffix = _OPTIONS["inst_bin_suffix"] or ... | newoption {
trigger = "inst_prefix",
value = "PATH",
description = "[inst_prefix]/(bin or include or lib)"
}
local instPrefix = _OPTIONS["inst_prefix"] or ""
--[[
newoption {
trigger = "inst_bin_suffix",
value = "PATH",
description = "/bin[inst_bin_suffix]"
}
local instBinSuffix = _OPTIONS["inst_bin_suffix"] or ... | Fixed premake5.lua | Fixed premake5.lua
| Lua | mit | yulon/pwre |
4a91d8f19403e54a151bfa9706c05534e84c70fc | premake5.lua | premake5.lua | workspace "Cerberus"
configurations { "Debug", "Release" }
filter "language:C++"
buildoptions "-std=c++11"
project "Cerberus"
kind "ConsoleApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
files { "*.h", "*.c", "*.cpp" }
includedirs { "Utils", "Engine" }
links { "Engine", "Utils" }
filter "configuration... | workspace "Cerberus"
configurations { "Debug", "Release" }
filter "language:C++"
buildoptions "-std=c++11"
targetdir "bin/%{cfg.buildcfg}"
project "Cerberus"
kind "ConsoleApp"
language "C++"
files { "*.h", "*.c", "*.cpp" }
includedirs { "Utils", "Engine" }
libdirs { "$(VK_SDK_PATH)/Lib" }
links { "Engine",... | Fixed premake file so it can compile the project | Fixed premake file so it can compile the project
| Lua | mit | ebithril/Cerberus,ebithril/Cerberus |
30e498b39bb7cb6a01b8ddfc7a00006093f9ff43 | dotfiles/config/nvim/lua/colorscheme.lua | dotfiles/config/nvim/lua/colorscheme.lua | vim.g["nightflyUnderlineMatchParen"] = 1
vim.cmd("colorscheme nightfly")
vim.api.nvim_set_hl(0, "CustomModifiedFlag", {bg = "Red", fg = "White"})
vim.api.nvim_set_hl(0, "Pmenu", {fg = 0, bg = 13, fg = "fg", bg = "#1d3b53"})
-- For focused windows, use the "default" background color (from tmux). This
-- means the curr... | vim.g["nightflyUnderlineMatchParen"] = 1
vim.cmd("colorscheme nightfly")
vim.api.nvim_set_hl(0, "CustomModifiedFlag", {bg = "Red", fg = "White"})
vim.api.nvim_set_hl(0, "Pmenu", {bg = "#1d3b53"})
-- For focused windows, use the "default" background color (from tmux). This
-- means the current Vim window will be highl... | Fix duplicate key in colorscheme | Fix duplicate key in colorscheme
| Lua | mit | davidxmoody/dotfiles,davidxmoody/dotfiles,davidxmoody/dotfiles,davidxmoody/dotfiles |
02de943b727ae3101f42cb96f91c013af85c6b51 | mod_statistics/prosodytop.lua | mod_statistics/prosodytop.lua | local curses = require "curses";
local server = require "net.server_select";
local timer = require "util.timer";
assert(curses.timeout, "Incorrect version of curses library. Try 'sudo luarocks install luaposix'");
local top = require "top";
function main()
local stdscr = curses.stdscr() -- it's a userdatum
--stds... | local curses = require "curses";
local server = require "net.server_select";
local timer = require "util.timer";
assert(curses.timeout, "Incorrect version of curses library. Try 'sudo luarocks install luaposix'");
local top = require "top";
function main()
local stdscr = curses.stdscr() -- it's a userdatum
--stds... | mod_statistics/prosodytop.lua: Simplify and fix buffering and line separation (thanks Ge0rG) | mod_statistics/prosodytop.lua: Simplify and fix buffering and line separation (thanks Ge0rG)
| Lua | mit | prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2 |
6f2569306ce83afd36b7d6f95b4342f50015e344 | shared/cm/config.lua | shared/cm/config.lua | -- This is a partly implemented next step in the channel manager to
-- make an object which can load and save a configuration file so that
-- we don't need to edit the source code of the channel manager to show
-- the configuration directory.
-- We're using some fancy parts of Lua called metatables which give us
-- th... | -- This is a partly implemented next step in the channel manager to
-- make an object which can load and save a configuration file so that
-- we don't need to edit the source code of the channel manager to show
-- the configuration directory.
-- We're using some fancy parts of Lua called metatables which give us
-- th... | Fix by Wade to when the config file does not exist. | Fix by Wade to when the config file does not exist.
| Lua | mit | interfaceware/iguana-web-apps,interfaceware/iguana-web-apps |
c8b7fd521845d4082985c4a8a38bbaf23b497f6c | examples/graphics/bmfont-graphic-design/DisplayBmtext.lua | examples/graphics/bmfont-graphic-design/DisplayBmtext.lua | local DisplayObject = DisplayObject
local DisplayImage = DisplayImage
local Image = Image
local Xfs = Xfs
local M = Class(DisplayObject)
local function startsWith(str1, str2)
return str1:sub(1, #str2) == str2
end
local function lineToTable(line)
local result = {}
for pair in line:gmatch("%a+=[-%d]+")... | local DisplayObject = DisplayObject
local DisplayImage = DisplayImage
local Image = Image
local Xfs = Xfs
local M = Class(DisplayObject)
local function startsWith(str1, str2)
return str1:sub(1, #str2) == str2
end
local function lineToTable(line)
local result = {}
for pair in line:gmatch("%a+=[-%d]+")... | [bmfont-graphic-design]fix bmfont-graphic-design | [bmfont-graphic-design]fix bmfont-graphic-design
| Lua | mit | xboot/xboot,xboot/xboot |
6be767cc00a01b144b0d1cc0c5f609c47f982075 | generator/json-generator.lua | generator/json-generator.lua | local json = require 'dkjson'
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local OUTPUT_FILE = 'love-completions.json'
local WIKI_URL = 'https://love2d.org/wiki/'
local LOVE_MODULE_STRING = 'love.'
-- JSON Output control
local DEBUG = false
loc... | local json = require 'dkjson'
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local OUTPUT_FILE = 'love-completions.json'
local WIKI_URL = 'https://love2d.org/wiki/'
local LOVE_MODULE_STRING = 'love.'
-- JSON Output control
local DEBUG = false
loc... | Fix methods with no arguments (#18) | Fix methods with no arguments (#18)
* Fix methods with no arguments
Methods with no arguments should still have an argument table which only has self included. Fixes #16.
Renamed includeDummy to isMethod in the process
* Remove unnecessary if checks
createArguments doesn't need to check if the description ... | Lua | mit | rm-code/love-atom,rm-code/love-atom |
90af6a9ecbff915a88d22886f6c76a1ad6ff6945 | spec/02-integration/09-hybrid_mode/02-start_stop_spec.lua | spec/02-integration/09-hybrid_mode/02-start_stop_spec.lua | local helpers = require "spec.helpers"
local confs = helpers.get_clustering_protocols()
for cluster_protocol, conf in pairs(confs) do
describe("invalid config are rejected, protocol " .. cluster_protocol, function()
describe("role is control_plane", function()
it("can not disable admin_listen", function... | local helpers = require "spec.helpers"
local confs = helpers.get_clustering_protocols()
for cluster_protocol, conf in pairs(confs) do
describe("invalid config are rejected, protocol " .. cluster_protocol, function()
describe("role is control_plane", function()
it("can not disable admin_listen", function... | fix test | fix test
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
ff4dbfe45e1273dcfc3c5870c65120fda865d439 | src/json/decode.lua | src/json/decode.lua | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local lpeg = require("lpeg")
local jsonutil = require("json.util")
local error = error
local number = require("json.decode.number")
local strings = require("json.decode.strings")
local object = require("json... | --[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local lpeg = require("lpeg")
local jsonutil = require("json.util")
local error = error
local number = require("json.decode.number")
local strings = require("json.decode.strings")
local object = require("json... | decoder: Fixed decoder generation to return cached versions | decoder: Fixed decoder generation to return cached versions
| Lua | mit | renchunxiao/luajson |
81950fbc46a009e24257ef5d742475c9858a3684 | item/id_310_mug_with_lid.lua | item/id_310_mug_with_lid.lua | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope th... | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope th... | fix borgates mug | fix borgates mug
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content,LaFamiglia/Illarion-Content |
9d00cb585ee2dc606909d7c33ce6815761b796a3 | share/lua/sd/librivox.lua | share/lua/sd/librivox.lua | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Rémi Duraffort <ivoire at videolan dot org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at ... | --[[
$Id$
Copyright © 2010 VideoLAN and AUTHORS
Authors: Rémi Duraffort <ivoire at videolan dot org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at ... | LUA SD: Fix Librivox duration parser. | LUA SD: Fix Librivox duration parser.
| Lua | lgpl-2.1 | xkfz007/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,shyamalschandra/vlc,xkfz007/vlc,xkfz007/vlc,krichter722/vlc,vlc-mirror/vlc-2.1,krichter722/vlc,shyamalschandra/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,krichter722/vlc,krichter722/vlc,krichter722/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,xkfz007/vlc,krichter72... |
5fc292a3a20f18c1bd18e3ea836443add03c17af | .hammerspoon/init.lua | .hammerspoon/init.lua | -- [[
-- Other stuff
-- ]]
-- Automatically reload config when init is saved
function reloadConfig(files)
doReload = false
for _, file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = true
end
end
if doReload then
hs.reload()
end
end
hs.hotkey.bind({"cmd", "ctrl"}, "R", func... | -- [[
-- Other stuff
-- ]]
-- Automatically reload config when init is saved
function reloadConfig(files)
doReload = false
for _, file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = true
end
end
if doReload then
reloadHammerspoon()
end
end
function reloadHammerspoon()
if... | Fix: Better caffeine reloading with hammerspoon | Fix: Better caffeine reloading with hammerspoon
| Lua | mit | tscheffe/dotfiles,tscheffe/dotfiles,tscheffe/dotfiles |
7db57350dff1e6b79aded20628b7447738fb8dcb | tests/dbus.lua | tests/dbus.lua | di.load_plugin("./plugins/dbus/di_dbus.so")
di.env.DBUS_SESSION_BUS_PID = nil
di.env.DBUS_SESSION_BUS_ADDRESS = nil
local dbusl = di.spawn.run({"dbus-daemon", "--print-address=1", "--print-pid=2", "--session", "--fork"}, false)
dbusl.on("stdout_line", function(l)
print(l)
di.env.DBUS_SESSION_BUS_ADDRESS = l
end... | di.load_plugin("./plugins/dbus/di_dbus.so")
di.env.DBUS_SESSION_BUS_PID = nil
di.env.DBUS_SESSION_BUS_ADDRESS = nil
di.env.DISPLAY = nil
local dbusl = di.spawn.run({"dbus-daemon", "--print-address=1", "--print-pid=2", "--session", "--fork"}, false)
dbusl.on("stdout_line", function(l)
-- remove new line
if l == ... | Fix dbus ci test | Fix dbus ci test
| Lua | mpl-2.0 | yshui/deai,yshui/deai,yshui/deai |
36a5673651f800eb2d18085fc65edccc71ea9f6a | src/extensions/cp/apple/finalcutpro/ids/v/10.4.0.lua | src/extensions/cp/apple/finalcutpro/ids/v/10.4.0.lua | return {
Inspector = {
DetailsPanel = "_NS:139",
},
LogicPlugins = {
PitchShifter = "Pitch Shifter",
},
EffectsBrowser = {
Sidebar = "_NS:90",
Contents = "_NS:53",
Sidebar = "_NS:90",
},
TimelineAppearance = {
ClipHeight = "_NS:62",
},
ColorBoard = {
ColorBoard... | return {
Inspector = {
DetailsPanel = "_NS:139",
},
LogicPlugins = {
PitchShifter = "Pitch Shifter",
},
EffectsBrowser = {
Sidebar = "_NS:90",
Contents = "_NS:53",
Sidebar = "_NS:90",
},
LibrariesBrowser = {
ToggleViewMode = "_NS:89",
AppearanceAndFiltering = "... | #869 Fixed som 10.4 `_NS:ID` values. | #869 Fixed som 10.4 `_NS:ID` values.
| Lua | mit | fcpxhacks/fcpxhacks,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,cailyoung/CommandPost,cailyoung/CommandPost,cailyoung/CommandPost |
abf52784c253fbf70efd64a73686fd152301be71 | resource-count_0.0.1/control.lua | resource-count_0.0.1/control.lua | require "defines"
script.on_init(function()
initPlayers()
end)
script.on_event(defines.events.on_player_created, function(event)
playerCreated(event)
end)
script.on_event(defines.events.on_tick, function(event)
if event.tick % 10 ~= 0 then
return
end
for index, player in ipairs(game.playe... | require "defines"
script.on_init(function()
initPlayers()
end)
script.on_event(defines.events.on_player_created, function(event)
playerCreated(event)
end)
script.on_event(defines.events.on_tick, function(event)
if event.tick % 10 ~= 0 then
return
end
for index, player in ipairs(game.playe... | Fix #12 Resources should be connected but aren't considered as such | Fix #12 Resources should be connected but aren't considered as such
| Lua | mit | Zomis/FactorioMods |
24e916440676a24de6915d5ed078950cb5156175 | skillfeed.lua | skillfeed.lua | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
downloaded["https://fast.wistia.com/btnfr'.indexOf(c)>-1)d+=l[c],r++;else if(c=="] = true
downloaded["htt... | dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
downloaded["https://fast.wistia.com/btnfr'.indexOf(c)>-1)d+=l[c],r++;else if(c=="] = true
downloaded["htt... | skillfeed.lua: important fix | skillfeed.lua: important fix | Lua | unlicense | ArchiveTeam/skillfeed-grab,ArchiveTeam/skillfeed-grab |
f7c0b0d49aa6fe8e5e5fe73eccb9c8cfb73c0694 | lua/starfall/libs_sh/net.lua | lua/starfall/libs_sh/net.lua | -------------------------------------------------------------------------------
-- Networking library.
-------------------------------------------------------------------------------
local net = net
--- Net message library. Used for sending data from the server to the client and back
local net_library, _ = SF.Librari... | -------------------------------------------------------------------------------
-- Networking library.
-------------------------------------------------------------------------------
local net = net
--- Net message library. Used for sending data from the server to the client and back
local net_library, _ = SF.Librari... | [Changed] Net messages now have a burst instead of a fixed timer | [Changed] Net messages now have a burst instead of a fixed timer
Before, you could send 1 net message per second. End of story.
Now, it uses a "burst" instead. This means that every time you send a
net message, your counter decreases by one. When it reaches 0, you can't
send any messages. Every 0.5 seconds, all SF ch... | Lua | bsd-3-clause | Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,Jazzelhawk/Starfall,Ingenious-Gaming/Starfall,Xandaros/Starfall,Xandaros/Starfall,INPStarfall/Starfall,INPStarfall/Starfall |
8ae475efe2ccc5563e7846976c9ba69624c8e8b5 | nonsence/log.lua | nonsence/log.lua | --[[
Nonsence Asynchronous event based Lua Web server.
Author: John Abrahamsen < JhnAbrhmsn@gmail.com >
This module "IOLoop" is a part of the Nonsence Web server.
< https://github.com/JohnAbrahamsen/nonsence-ng/ >
Nonsence is licensed under the MIT license < http://www.opensource.org/licenses/mit-license.php... | --[[
Nonsence Asynchronous event based Lua Web server.
Author: John Abrahamsen < JhnAbrhmsn@gmail.com >
This module "IOLoop" is a part of the Nonsence Web server.
< https://github.com/JohnAbrahamsen/nonsence-ng/ >
Nonsence is licensed under the MIT license < http://www.opensource.org/licenses/mit-license.php... | Opps, bug there. | Opps, bug there.
| Lua | apache-2.0 | kernelsauce/turbo,YuanPeir-Chen/turbo-support-mipsel,ddysher/turbo,luastoned/turbo,luastoned/turbo,zcsteele/turbo,YuanPeir-Chen/turbo-support-mipsel,zcsteele/turbo,mniestroj/turbo,ddysher/turbo |
bbe7261f70e0082d70b98f8df24f2557d54d5065 | src/dao/cassandra/plugins.lua | src/dao/cassandra/plugins.lua | local constants = require "kong.constants"
local BaseDao = require "kong.dao.cassandra.base_dao"
local cjson = require "cjson"
local function load_value_schema(plugin_t)
local status, plugin_schema = pcall(require, "kong.plugins."..plugin_t.name..".schema")
if not status then
return nil, "Plugin \""..plugin_t.... | local constants = require "kong.constants"
local BaseDao = require "kong.dao.cassandra.base_dao"
local cjson = require "cjson"
local function load_value_schema(plugin_t)
if plugin_t.name then
local status, plugin_schema = pcall(require, "kong.plugins."..plugin_t.name..".schema")
if status then
return p... | Fixing nil concatenation in Plugins | Fixing nil concatenation in Plugins
| Lua | apache-2.0 | kyroskoh/kong,Kong/kong,ccyphers/kong,rafael/kong,smanolache/kong,beauli/kong,Vermeille/kong,ind9/kong,isdom/kong,vzaramel/kong,streamdataio/kong,xvaara/kong,ejoncas/kong,ejoncas/kong,li-wl/kong,icyxp/kong,kyroskoh/kong,vzaramel/kong,ajayk/kong,isdom/kong,rafael/kong,jebenexer/kong,akh00/kong,jerizm/kong,streamdataio/k... |
a979e88c1c7ba8b2fe9e220c53a681a081b951bb | src/system/RenderableSystem.lua | src/system/RenderableSystem.lua | --RenderableSystem.lua
--[[
The RenderableSystem maintains references to several game-objects, each called a Scene.
This facilitates the swapping of viewscreens such as different maps, interface screens, and so on.
The RenderableSystem draws the root game object, then its children in sequence, recursively
]]--
l... | --RenderableSystem.lua
--[[
The RenderableSystem maintains references to several game-objects, each called a Scene.
This facilitates the swapping of viewscreens such as different maps, interface screens, and so on.
The RenderableSystem draws the root game object, then its children in sequence, recursively
]]--
l... | Fix flicker | Fix flicker
| Lua | mit | Sewerbird/Helios2400,Sewerbird/Helios2400,Sewerbird/Helios2400 |
5b04475acdf2df5add895108247e2b13ec882ba1 | src/nodes/floor.lua | src/nodes/floor.lua | local Floor = {}
Floor.__index = Floor
Floor.isFloor = true
function Floor.new(node, collider)
local floor = {}
setmetatable(floor, Floor)
--If the node is a polyline, we need to draw a polygon rather than rectangle
if node.polyline or node.polygon then
local polygon = node.polyline or node.po... | local Floor = {}
Floor.__index = Floor
Floor.isFloor = true
function Floor.new(node, collider)
local floor = {}
setmetatable(floor, Floor)
--If the node is a polyline, we need to draw a polygon rather than rectangle
if node.polyline or node.polygon then
local polygon = node.polyline or node.po... | check if floorpushup is over 100 and ignore it, in case it is, DEBUG SOLUTION ONLY, NOT A REAL FIX | check if floorpushup is over 100 and ignore it, in case it is, DEBUG SOLUTION ONLY, NOT A REAL FIX
| Lua | mit | hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua |
5661de59c6947c3b8a8c13d833f9138ef41ff8a8 | plugins/mod_saslauth.lua | plugins/mod_saslauth.lua | -- Prosody IM
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local sm_bind_resource = require "core.sessionmanager".bind_resource;
... | -- Prosody IM
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
local sm_bind_resource = require "core.sessionmanager".bind_resource;
... | added comment to remind us to fix binary output breaking the terminal later | added comment to remind us to fix binary output breaking the terminal
later
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
cc036b1f829d762ce900570e80fdc0283e23c9a6 | Peripherals/WEB/init.lua | Peripherals/WEB/init.lua | local perpath = select(1,...) --The path to the web folder
local bit = require("bit")
local events = require("Engine.events")
local json = require("Engine.JSON")
local thread = love.thread.newThread(perpath.."webthread.lua")
local to_channel = love.thread.getChannel("To_WebThread")
local from_channel = love.thread.g... | local perpath = select(1,...) --The path to the web folder
local bit = require("bit")
local events = require("Engine.events")
local json = require("Engine.JSON")
local thread = love.thread.newThread(perpath.."webthread.lua")
local to_channel = love.thread.getChannel("To_WebThread")
local from_channel = love.thread.g... | Bugfixed "+" is converted to a space when uploading to the internet | Bugfixed "+" is converted to a space when uploading to the internet
| Lua | mit | RamiLego4Game/LIKO-12 |
401f2ac0df05c9754bdc98cd99d25601eb4f289c | CCLib/src/java/lang/native/Computer.lua | CCLib/src/java/lang/native/Computer.lua | natives["cc.Computer"] = natives["cc.Computer"] or {}
natives["cc.Computer"]["shutdown()V"] = function()
os.shutdown()
end
natives["cc.Computer"]["restart()V"] = function()
os.restart()
end
natives["cc.Computer"]["sleep(D)V"] = function(s)
sleep(s)
end
natives["cc.Computer"]["isTurtle()Z"] = function()
... | natives["cc.Computer"] = natives["cc.Computer"] or {}
natives["cc.Computer"]["shutdown()V"] = function()
os.shutdown()
end
natives["cc.Computer"]["restart()V"] = function()
os.restart()
end
natives["cc.Computer"]["sleep(D)V"] = function(s)
sleep(s)
end
natives["cc.Computer"]["isTurtle()Z"] = function()
... | Fixed pullEvent | Fixed pullEvent
New array system, didn't see this.
| Lua | mit | Team-CC-Corp/JVML-JIT,apemanzilla/JVML-JIT |
2c21fecead35daf22107cc8f47c7ec510aced200 | src/luarocks/doc.lua | src/luarocks/doc.lua |
--- Module implementing the LuaRocks "doc" command.
-- Shows documentation for an installed rock.
module("luarocks.doc", package.seeall)
local util = require("luarocks.util")
local show = require("luarocks.show")
local path = require("luarocks.path")
local dir = require("luarocks.dir")
local fetch = require("luarocks... |
--- Module implementing the LuaRocks "doc" command.
-- Shows documentation for an installed rock.
module("luarocks.doc", package.seeall)
local util = require("luarocks.util")
local show = require("luarocks.show")
local path = require("luarocks.path")
local dir = require("luarocks.dir")
local fetch = require("luarocks... | Fix bug when docs are missing | Fix bug when docs are missing
| Lua | mit | keplerproject/luarocks,starius/luarocks,xpol/luainstaller,keplerproject/luarocks,aryajur/luarocks,tst2005/luarocks,ignacio/luarocks,lxbgit/luarocks,aryajur/luarocks,xiaq/luarocks,starius/luarocks,xpol/luainstaller,coderstudy/luarocks,ignacio/luarocks,xpol/luainstaller,xpol/luavm,keplerproject/luarocks,xpol/luainstaller... |
94487a3d3168ba69f2fff5c19ffd7de21534fef4 | libs/core/luasrc/init.lua | libs/core/luasrc/init.lua | --[[
LuCI - Lua Configuration Interface
Description:
Main class
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | --[[
LuCI - Lua Configuration Interface
Description:
Main class
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www... | libs/core: make sure that bitlib is loaded, fixes some sdk problems | libs/core: make sure that bitlib is loaded, fixes some sdk problems
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@4537 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | alxhh/piratenluci,vhpham80/luci,vhpham80/luci,gwlim/luci,vhpham80/luci,Canaan-Creative/luci,zwhfly/openwrt-luci,gwlim/luci,saraedum/luci-packages-old,vhpham80/luci,Flexibity/luci,ch3n2k/luci,Canaan-Creative/luci,saraedum/luci-packages-old,phi-psi/luci,zwhfly/openwrt-luci,ReclaimYourPrivacy/cloak-luci,projectbismark/luc... |
005015bccd9f5110f8fd60e118e535fd31797581 | UCDutil/confirmation_c.lua | UCDutil/confirmation_c.lua | function createConfirmationWindow(event, arg, isServerEvent, title, text)
local confirmation = {window={}, label={}, button={}}
local calledResource = tostring(Resource.getName(sourceResource))
-- Replace 'UCD' with blank and capitalise the first letter
if (not title) then
calledResource = calledResource:gsub("... | confirmation = {window={}, label={}, button={}}
confirmation.window[1] = nil
function createConfirmationWindow(event, arugment, serverOrClient, title, text)
calledResource = tostring(Resource.getName(sourceResource))
-- Replace 'UCD' with blank and capitalise the first letter
if (not title) then
calledResource =... | UCDutil | UCDutil
- Fixed confirmation window sometimes not responding or spawning multiple instances.
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
33e088dd9d84edecca2df8d2682260d55ea9056a | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | protocols/6x4/luasrc/model/cbi/admin_network/proto_6to4.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
local ma... | protocols/6x4: fix turning off 6ro4 advertising on all interfaces | protocols/6x4: fix turning off 6ro4 advertising on all interfaces
| Lua | apache-2.0 | male-puppies/luci,tobiaswaldvogel/luci,Wedmer/luci,obsy/luci,thess/OpenWrt-luci,Sakura-Winkey/LuCI,ReclaimYourPrivacy/cloak-luci,shangjiyu/luci-with-extra,RuiChen1113/luci,sujeet14108/luci,ReclaimYourPrivacy/cloak-luci,maxrio/luci981213,palmettos/cnLuCI,urueedi/luci,ReclaimYourPrivacy/cloak-luci,ollie27/openwrt_luci,op... |
390cc935dce9080c9b186fab9c9c7443bc4f62aa | core/world/Actor.lua | core/world/Actor.lua | local assert = assert
local class = require 'middleclass'
local Object = class.Object
local Control = require 'core/Control'
local Controllable = require 'core/Controllable'
local WorldObject = require 'core/world/WorldObject'
local CameraManifold = require 'core/graphics/CameraManifold... | local assert = assert
local class = require 'middleclass'
local Object = class.Object
local Vec = require 'core/Vector'
local Control = require 'core/Control'
local Controllable = require 'core/Controllable'
local WorldObject = require 'core/world/WorldObject'
local CameraManifold = ... | Fixed camera view transformation. | Fixed camera view transformation.
| Lua | mit | henry4k/apoapsis,henry4k/konstrukt,henry4k/konstrukt,henry4k/apoapsis,henry4k/apoapsis,henry4k/konstrukt |
296f4bacbeb18093842f308da104e65f9439e282 | genie/assimp.lua | genie/assimp.lua | --
-- Copyright (c) 2015 Jonathan Howard
-- MIT License
--
function assimp_library()
project "assimp"
-- location (build_dir)
-- targetdir (lib_dir)
targetname "assimp"
language "C++"
kind "StaticLib"
includedirs
{
ASSIMP_DIR .. "include/",
ASSIMP_DIR .. "code/BoostWorkarou... | --
-- Copyright (c) 2015 Jonathan Howard
-- MIT License
--
function assimp_library()
project "assimp"
-- location (build_dir)
-- targetdir (lib_dir)
targetname "assimp"
language "C++"
kind "StaticLib"
removeflags { "NoExceptions", "NoRTTI" }
includedirs
{
ASSIMP_DIR .. "includ... | Fixed assimp build on OS X...why didn't this break on Windows? | Fixed assimp build on OS X...why didn't this break on Windows?
| Lua | mit | v3n/altertum,v3n/altertum,NathanaelThompson/altertum,v3n/altertum,NathanaelThompson/altertum,NathanaelThompson/altertum |
f7142cfcbec27362a61ca65ede573e282f9574fd | frontend/ui/widget/filechooser.lua | frontend/ui/widget/filechooser.lua | local lfs = require("libs/libkoreader-lfs")
local UIManager = require("ui/uimanager")
local Menu = require("ui/widget/menu")
local Screen = require("device").screen
local Device = require("device")
local util = require("ffi/util")
local DEBUG = require("dbg")
local _ = require("gettext")
local ffi = require("ffi")
ffi.... | local lfs = require("libs/libkoreader-lfs")
local UIManager = require("ui/uimanager")
local Menu = require("ui/widget/menu")
local Screen = require("device").screen
local Device = require("device")
local util = require("ffi/util")
local DEBUG = require("dbg")
local _ = require("gettext")
local ffi = require("ffi")
ffi.... | fix filechooser crash on entering folder contains nil symlink | fix filechooser crash on entering folder contains nil symlink
| Lua | agpl-3.0 | apletnev/koreader,koreader/koreader,chrox/koreader,Hzj-jie/koreader,houqp/koreader,NiLuJe/koreader,ashhher3/koreader,mwoz123/koreader,ashang/koreader,NickSavage/koreader,chihyang/koreader,poire-z/koreader,poire-z/koreader,noname007/koreader,robert00s/koreader,lgeek/koreader,Frenzie/koreader,koreader/koreader,Markismus/... |
cb15dabd04d75c268ebe74135c7faf7898f2f922 | hammerspoon/apps/iterm.lua | hammerspoon/apps/iterm.lua |
local tmux_prefix = {{'ctrl'}, 'c'}
local function isTmuxWindow()
return function ()
hs.window.focusedWindow():title():find("tmux")
end
end
local function tmuxpresskey(mod, key)
if isTmuxWindow() then
hs.eventtap.keyStroke({'ctrl'}, 'c')
hs.eventtap.keyStroke(mod, key)
return true
end
retur... |
local tmux_prefix = {{'ctrl'}, 'c'}
-- Helpers
local function isTmuxWindow()
local win = hs.window.focusedWindow()
if win then
return win:title():find("tmux")
end
return false
end
local function tmuxPressKey(mod, key)
if isTmuxWindow() then
hs.eventtap.keyStroke({'ctrl'}, 'c')
hs.eventtap.keySt... | hs: fix iterm/tmux keybinds | hs: fix iterm/tmux keybinds
| Lua | mit | hlissner/dotfiles,cthachuk/dotfiles,hlissner/dotfiles,hlissner/dotfiles,hlissner/dotfiles,hlissner/dotfiles,cthachuk/dotfiles |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.