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 |
|---|---|---|---|---|---|---|---|---|---|
81f734343bf1f54cd9eafe677c1cfbe484d45ab5 | Resources/Scripts/Modes/Demo4.lua | Resources/Scripts/Modes/Demo4.lua | import('Actions')
import('ObjectLoad')
import('GlobalVars')
import('Math')
import('Scenarios')
import('PrintRecursive')
import('KeyboardControl')
local playerShip = nil
function init()
physics.open(0.6)
start_time = mode_manager.time()
last_time = mode_manager.time()
loadingEntities = true
scen = LoadScenario(... | import('Actions')
import('ObjectLoad')
import('GlobalVars')
import('Math')
import('Scenarios')
import('PrintRecursive')
import('KeyboardControl')
local playerShip = nil
function init()
physics.open(0.6)
start_time = mode_manager.time()
last_time = mode_manager.time()
loadingEntities = true
scen = LoadScenario(... | Fixed zooming and other small changes. | Fixed zooming and other small changes.
Signed-off-by: Adam Hintz <96c833980ca266d81f358ac8bd40898278f74af6@gmail.com>
| Lua | mit | prophile/xsera,adam000/xsera,prophile/xsera,prophile/xsera,prophile/xsera,adam000/xsera,prophile/xsera,adam000/xsera,adam000/xsera |
a3d34584d02a299340836ffecad61b5dfd4e4d30 | modules/ansi_c/init.lua | modules/ansi_c/init.lua | -- Copyright 2007-2014 Mitchell mitchell.att.foicica.com. See LICENSE.
local M = {}
--[[ This comment is for LuaDoc.
---
-- The ansi_c module.
-- It provides utilities for editing C code.
--
-- ## Key Bindings
--
-- + `Ctrl+L, M` (`⌘L, M` on Mac OSX | `M-L, M` in curses)
-- Open this module for editing.
-- + `Shift... | -- Copyright 2007-2014 Mitchell mitchell.att.foicica.com. See LICENSE.
local M = {}
--[[ This comment is for LuaDoc.
---
-- The ansi_c module.
-- It provides utilities for editing C code.
--
-- ## Key Bindings
--
-- + `Ctrl+L, M` (`⌘L, M` on Mac OSX | `M-L, M` in curses)
-- Open this module for editing.
-- + `Shift... | Fixed bug in ANSI C autocompletion; modules/ansi_c/init.lua | Fixed bug in ANSI C autocompletion; modules/ansi_c/init.lua
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
dfc3b00abac21c0b39bc95896c4249707c5f33d2 | Modules/Shared/IK/Torso/TorsoIKBase.lua | Modules/Shared/IK/Torso/TorsoIKBase.lua | --- Torso resources for IK
-- @classmod TorsoIKBase
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local AccelTween = require("AccelTween")
local TorsoIKUtils = require("TorsoIKUtils")
local Signal = require("Signal")
local BaseObject = require("BaseObject")
... | --- Torso resources for IK
-- @classmod TorsoIKBase
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local AccelTween = require("AccelTween")
local TorsoIKUtils = require("TorsoIKUtils")
local Signal = require("Signal")
local BaseObject = require("BaseObject")
... | Fix inconsistency with TorsoIKBase | Fix inconsistency with TorsoIKBase
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
1cdc0118017894d17a7ee4de93ae4922091def5c | scen_edit/view/fields/numeric_field.lua | scen_edit/view/fields/numeric_field.lua | SB.Include(SB_VIEW_FIELDS_DIR .. "string_field.lua")
NumericField = StringField:extends{}
function NumericField:Update(source)
local v = string.format(self.format, self.value)
if source ~= self.editBox and not self.editBox.state.focused then
self.editBox:SetText(v)
end
if source ~= self.lblValu... | SB.Include(SB_VIEW_FIELDS_DIR .. "string_field.lua")
NumericField = StringField:extends{}
function NumericField:Update(source)
local v = string.format(self.format, self.value)
if source ~= self.editBox and not self.editBox.state.focused then
self.editBox:SetText(v)
end
if source ~= self.lblValu... | maybe fix numeric field sometimes removing the mouse cursor | maybe fix numeric field sometimes removing the mouse cursor
| Lua | mit | Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core |
a9766d122e5c148f37f5bee7f8841b31393e6eec | state/uitest.lua | state/uitest.lua |
--[[--
UI TEST STATE
----
Display some UI stuff.
--]]--
local st = RunState.new()
local Frame = getClass 'pud.ui.Frame'
local Text = getClass 'pud.ui.Text'
local Button = getClass 'pud.ui.Button'
local TextEntry = getClass 'pud.ui.TextEntry'
local Bar = getClass 'pud.ui.Bar'
local... |
--[[--
UI TEST STATE
----
Display some UI stuff.
--]]--
local st = RunState.new()
local Frame = getClass 'pud.ui.Frame'
local Text = getClass 'pud.ui.Text'
local Button = getClass 'pud.ui.Button'
local TextEntry = getClass 'pud.ui.TextEntry'
local Bar = getClass 'pud.ui.Bar'
local... | fix uitest to keep references to frames | fix uitest to keep references to frames
ListenerBag has weak tables
| Lua | mit | scottcs/wyx |
a8bc48935c9775b014aad9ba49eec5acd3b22851 | love2d/game.lua | love2d/game.lua | love.game = {}
require "world"
require "external/gui/gui"
function love.game.newGame()
local o = {}
o.state = 1
o.world = nil
o.version = "0.0.0"
o.x = 30
o.y = 20
o.xVel = 0.1
o.yVel = -0.1
o.init = function()
o.world = love.game.newWorld()
o.world.init()
o.menu = love.gui.newGui(... | love.game = {}
require "world"
require "external/gui/gui"
function love.game.newGame()
local o = {}
o.state = 1
o.world = nil
o.version = "0.0.0"
o.x = 30
o.y = 20
o.xVel = 0.1
o.yVel = -0.1
o.init = function()
o.world = love.game.newWorld()
o.world.init()
o.menu = love.gui.newGui()
o.playButto... | Added proper quit behaviour (and fixed tabs vs. whitespaces issue) | Added proper quit behaviour (and fixed tabs vs. whitespaces issue)
| Lua | mit | nczempin/lizard-journey |
d323776148266d3f8ad2e97d1fe191be25d65fda | Hydra/api.lua | Hydra/api.lua | doc.api.resourcesdir = {"api.resourcesdir -> string", "The location of the built-in lua source files."}
doc.api.userfile = {"api.userfile(name)", "Returns the full path to the file ~/.hydra/{name}.lua"}
function api.userfile(name)
return os.getenv("HOME") .. "/.hydra/" .. name .. ".lua"
end
doc.api.douserfile = {"a... | doc.api.resourcesdir = {"api.resourcesdir -> string", "The location of the built-in lua source files."}
doc.api.userfile = {"api.userfile(name)", "Returns the full path to the file ~/.hydra/{name}.lua"}
function api.userfile(name)
return os.getenv("HOME") .. "/.hydra/" .. name .. ".lua"
end
doc.api.douserfile = {"a... | Fixes error logging as part of #57, new bug mentioned in #61. | Fixes error logging as part of #57, new bug mentioned in #61.
| Lua | mit | kkamdooong/hammerspoon,junkblocker/hammerspoon,chrisjbray/hammerspoon,tmandry/hammerspoon,asmagill/hammerspoon,cmsj/hammerspoon,joehanchoi/hammerspoon,knl/hammerspoon,cmsj/hammerspoon,dopcn/hammerspoon,Hammerspoon/hammerspoon,dopcn/hammerspoon,Habbie/hammerspoon,hypebeast/hammerspoon,wvierber/hammerspoon,wvierber/hamme... |
51a77b2424744ef97a70510d5597e44262721876 | applications/luci-samba/luasrc/model/cbi/samba.lua | applications/luci-samba/luasrc/model/cbi/samba.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... | Fix samba "read only" and "guest ok" settings not applied correctly. | Fix samba "read only" and "guest ok" settings not applied correctly.
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@3972 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
4f4e54616c063efcd603800c024ee8819e832765 | modules/lua/init.lua | modules/lua/init.lua | -- Copyright 2007-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
-- The lua module.
-- It provides utilities for editing Lua code.
-- User tags are loaded from _USERHOME/modules/lua/tags and user apis are loaded
-- from _USERHOME/modules/lua/api.
module('_m.lua', package.seeall)
-- Markdown:
-- ## Key Com... | -- Copyright 2007-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
-- The lua module.
-- It provides utilities for editing Lua code.
-- User tags are loaded from _USERHOME/modules/lua/tags and user apis are loaded
-- from _USERHOME/modules/lua/api.
module('_m.lua', package.seeall)
-- Markdown:
-- ## Key Com... | Fixed bug introduced by stripping '_G' in Lua Adeptsense; modules/lua/init.lua | Fixed bug introduced by stripping '_G' in Lua Adeptsense; modules/lua/init.lua
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
9db8b6f3fa34b18537e27106beed60c6b05d4a46 | nodes/basic/node.lua | nodes/basic/node.lua | --RasPegacy v0.1
--Basic Round Gauge Child
gl.setup(720, 446)
--local res = util.auto_loader()
local gothic = resource.load_font "Exo2.otf"
util.resource_loader{
"needle.png",
}
local json = require "json"
util.file_watch("view.json", function(content)
view = json.decode(content)
cur = view.view
steps... | --RasPegacy v0.1
--Basic Round Gauge Child
gl.setup(720, 446)
--local res = util.auto_loader()
local gothic = resource.load_font "Exo2.otf"
util.resource_loader{
"needle.png",
}
local json = require "json"
util.file_watch("view.json", function(content)
view = json.decode(content)
cur = view.view
steps... | move gauge draw | move gauge draw
static text was being "overwritten" when the gauges were drawn. moved gauge drawing before static text writes, to see if it fixes the problem. | Lua | apache-2.0 | sommersoft/RasPegacy |
35a1c34da6f7e15ea591705f38a67d1dffe9dc3c | codes/boss_kullerball.lua | codes/boss_kullerball.lua | --[[
Waffenboss Kullerball
Copyright by Prismatic-Network
Copyright by Fabian Fassott aka Psykko
ScriptComplete: 85%
boss_kullerbro script missing in Phase 2
]]--
-- Local
local kullerball_id = 60000
local spell2ziel = Unit:RandomPlayer(0)
local npc_buffs = {
["buffs"] = {48469,48161,20217,25898,5... | --[[
Waffenboss Kullerball
Copyright by Prismatic-Network
Copyright by Fabian Fassott aka Psykko
ScriptComplete: 85%
boss_kullerbro script missing in Phase 2
]]--
-- Local
local kullerball_id = 60000
local spell2ziel = Unit:GetRandomEnemy()
local npc_buffs = {
["buffs"] = {48469,48161,20217,25898,... | [27] - Fix Kullerball | [27] - Fix Kullerball
| Lua | agpl-3.0 | Erotix8210/FrozenCore,Erotix8210/FrozenCore,Erotix8210/FrozenCore,Erotix8210/FrozenCore,Erotix8210/FrozenCore |
c718ce102425796d55be82c74faa28c68135399b | orange/plugins/balancer/handler.lua | orange/plugins/balancer/handler.lua | local BasePlugin = require("orange.plugins.base_handler")
local orange_db = require("orange.store.orange_db")
local balancer_execute = require("orange.utils.balancer").execute
local utils = require("orange.utils.utils")
local ngx_balancer = require "ngx.balancer"
local string_find = string.find
local get_last_failure ... | local BasePlugin = require("orange.plugins.base_handler")
local orange_db = require("orange.store.orange_db")
local balancer_execute = require("orange.utils.balancer").execute
local utils = require("orange.utils.utils")
local ngx_balancer = require "ngx.balancer"
local string_find = string.find
local get_last_failure ... | fix bug - invalid URL prefix in "" | fix bug - invalid URL prefix in ""
最开始写的时候没有给balancer开关,所以target一上来就会设置为ngx.var.upstream_url
后来加上了开关,当开关未打开的时候,target的值没有赋值,导致出现 invalid URL prefix in "" 错误
该 Patch 解决了这个问题
Signed-off-by: Zhao Junwang <09dd02a3136250300157b7d8a9042f64386668f6@gmail.com>
| Lua | mit | sumory/orange,sumory/orange,sumory/orange |
d9a2bfaae070143452ad9eca095168ef50748b69 | core/componentmanager.lua | core/componentmanager.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 prosody = prosody;
local log = require "util.logger".init("componentmanager");
local configmanager ... | -- 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 prosody = prosody;
local log = require "util.logger".init("componentmanager");
local configmanager ... | componentmanager: Use ssl_ctx of 'parent' host (should fix TLS for components) | componentmanager: Use ssl_ctx of 'parent' host (should fix TLS for components)
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
8206cfb0d6f046079fe112bb6cf8a50f5ea82c09 | CircuitsUI_0.1.0/signal_gui.lua | CircuitsUI_0.1.0/signal_gui.lua | local function out(txt)
debug = false
if debug then
game.print(txt)
end
end
function CreateSignalGuiPanel(parent, signals)
local gui = parent.add({type = "flow", direction = "horizontal", name = "signals"})
out("Create gui")
if signals ~= nil then
UpdateSignalGuiPanel(gui, signals)
end
retur... | local function out(txt)
debug = false
if debug then
game.print(txt)
end
end
function CreateSignalGuiPanel(parent, signals)
local gui = parent.add({type = "flow", direction = "horizontal", name = "signals"})
out("Create gui")
if signals ~= nil then
UpdateSignalGuiPanel(gui, signals)
end
retur... | CircuitsUI: Format string counts with suffixes | CircuitsUI: Format string counts with suffixes
| Lua | mit | Zomis/FactorioMods |
f072b7407ebb4444480c0c1dc702267d091e89ee | hammerspoon/windows.lua | hammerspoon/windows.lua | hs.window.animationDuration = 0
-- +-----------------+
-- | | |
-- | HERE | |
-- | | |
-- +-----------------+
function hs.window.left(win)
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
f.x = max.x
f.y = max.y
f.w = max.w / 2
f.h = max.h... | hs.window.animationDuration = 0
local windowMT = hs.getObjectMetatable("hs.window")
-- +-----------------+
-- | | |
-- | HERE | |
-- | | |
-- +-----------------+
function windowMT.left(win)
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
f.x =... | Fix hammerspoon window config | Fix hammerspoon window config
| Lua | mit | makenosound/dotfiles,makenosound/dotfiles |
221cb9d619169e959cbc1f9ca5e9d579914a6c0e | lunamark/writer/html.lua | lunamark/writer/html.lua | -- (c) 2009-2011 John MacFarlane. Released under MIT license.
-- See the file LICENSE in the source for details.
--- HTML writer for lunamark.
-- Extends [lunamark.writer.xml].
local M = {}
local xml = require("lunamark.writer.xml")
local util = require("lunamark.util")
local gsub = string.gsub
local intersperse, ma... | -- (c) 2009-2011 John MacFarlane. Released under MIT license.
-- See the file LICENSE in the source for details.
--- HTML writer for lunamark.
-- Extends [lunamark.writer.xml].
local M = {}
local xml = require("lunamark.writer.xml")
local util = require("lunamark.util")
local gsub = string.gsub
local flatten, inters... | Fixed footnotes. | Fixed footnotes.
| Lua | mit | simoncozens/lunamark,tst2005/lunamark,tst2005/lunamark,jgm/lunamark,jgm/lunamark,tst2005/lunamark,simoncozens/lunamark,simoncozens/lunamark,jgm/lunamark |
a760a533643f65eb463f94321432c7ed561c6879 | durden/atypes/terminal.lua | durden/atypes/terminal.lua | --
-- Terminal archetype, settings and menus specific for terminal-
-- frameserver session (e.g. keymapping, state control)
--
local res = {
dispatch = {
-- add a sub- protocol for communicating cell dimensions, this is
-- used to cut down on resize calls (as they are ** expensive in
-- terminal land) vs just using s... | --
-- Terminal archetype, settings and menus specific for terminal-
-- frameserver session (e.g. keymapping, state control)
--
local res = {
dispatch = {
-- add a sub- protocol for communicating cell dimensions, this is
-- used to cut down on resize calls (as they are ** expensive in
-- terminal land) vs just using s... | terminal font synch fix | terminal font synch fix
| Lua | bsd-3-clause | letoram/durden |
f13eb3b1b9d282609b9066c8fb7e841b7d96b18e | quest/saren_eisenfaust_81_galmair.lua | quest/saren_eisenfaust_81_galmair.lua | -- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (81, 'quest.saren_eisenfaust_81_galmair');
require("base.common")
require("base.factions")
module("quest.saren_eisenfaust_81_galmair", package.seeall)
GERMAN = Player.german
ENGLISH = Player.english
-- Insert the quest title here, in both languages
Ti... | -- INSERT INTO "quests" ("qst_id", "qst_script") VALUES (81, 'quest.saren_eisenfaust_81_galmair');
require("base.common")
require("base.factions")
module("quest.saren_eisenfaust_81_galmair", package.seeall)
GERMAN = Player.german
ENGLISH = Player.english
-- Insert the quest title here, in both languages
Ti... | fix questlog for recently adjusted items (followup to Mantis:0009401 / cleaning up my mess :S) | fix questlog for recently adjusted items
(followup to Mantis:0009401 / cleaning up my mess :S)
| Lua | agpl-3.0 | vilarion/Illarion-Content,KayMD/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content |
5fc12f0a8abe4a7e485b0fbeecb2fec778101774 | lua/plugins/orgmode.lua | lua/plugins/orgmode.lua | local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.org = {
install_info = {
url = 'https://github.com/milisims/tree-sitter-org',
revision = 'main',
files = {'src/parser.c', 'src/scanner.cc'},
},
filetype = 'org',
}
require'nvim-treesitter.configs'.setup {
-- ... | -- Load custom tree-sitter grammar for org filetype
require('orgmode').setup_ts_grammar()
local parser_config = require"nvim-treesitter.parsers".get_parser_configs()
parser_config.org = {
install_info = {url = 'https://github.com/milisims/tree-sitter-org', revision = 'main', files = {'src/parser.c', 'src/scanner.c... | fix orgmode | fix orgmode
| Lua | mit | shwsun/yavc,shwsun/yavc |
7fd8f4d2f1141146d059052649d235e60b59104e | frontend/apps/reader/modules/readerfrontlight.lua | frontend/apps/reader/modules/readerfrontlight.lua | local InputContainer = require("ui/widget/container/inputcontainer")
local InputDialog = require("ui/widget/inputdialog")
local Notification = require("ui/widget/notification")
local GestureRange = require("ui/gesturerange")
local UIManager = require("ui/uimanager")
local Geom = require("ui/geometry")
local Screen = re... | local InputContainer = require("ui/widget/container/inputcontainer")
local InputDialog = require("ui/widget/inputdialog")
local Notification = require("ui/widget/notification")
local GestureRange = require("ui/gesturerange")
local UIManager = require("ui/uimanager")
local Geom = require("ui/geometry")
local Screen = re... | Add missing util.template definition to readerfrontlight.lua | Add missing util.template definition to readerfrontlight.lua
Fixes #1302.
| Lua | agpl-3.0 | NiLuJe/koreader,mihailim/koreader,robert00s/koreader,Markismus/koreader,poire-z/koreader,chihyang/koreader,ashhher3/koreader,poire-z/koreader,chrox/koreader,NickSavage/koreader,NiLuJe/koreader,lgeek/koreader,Hzj-jie/koreader,Frenzie/koreader,noname007/koreader,apletnev/koreader,koreader/koreader,houqp/koreader,mwoz123/... |
f295ac8003953e7e7588d9e61975df81b290fbae | nyagos.d/catalog/git.lua | nyagos.d/catalog/git.lua | share.git = {}
-- setup branch detector
local branchdetect = function()
local gitbranches = {}
local gitbranch_tmp = nyagos.eval('git for-each-ref --format="%(refname:short)" refs/heads/ 2> nul')
for line in gitbranch_tmp:gmatch('[^\n]+') do
table.insert(gitbranches,line)
end
return gitbranches
end
-- ... | share.git = {}
-- setup branch detector
local branchdetect = function()
local gitbranches = {}
local gitbranch_tmp = nyagos.eval('git for-each-ref --format="%(refname:short)" refs/heads/ 2> nul')
for line in gitbranch_tmp:gmatch('[^\n]+') do
table.insert(gitbranches,line)
end
return gitbranches
end
-- ... | Fix git branch func registration | Fix git branch func registration
| Lua | bsd-3-clause | tsuyoshicho/nyagos,tyochiai/nyagos,zetamatta/nyagos,nocd5/nyagos |
350ba3e35fb313c7db305e0592ecaf87d22ec1ee | totem/asserts.lua | totem/asserts.lua | --[[ Test for tensor equality
Parameters:
- `ta` (tensor)
- `tb` (tensor)
- `condition` (number) maximum pointwise difference between `a` and `b`
Returns two values:
success (boolean), failure_message (string or nil)
Tests whether the maximum pointwise difference between `a` and `b` is less than
or equal to `condit... | --[[ Test for tensor equality
Parameters:
- `ta` (tensor)
- `tb` (tensor)
- `condition` (number) maximum pointwise difference between `a` and `b`
Returns two values:
success (boolean), failure_message (string or nil)
Tests whether the maximum pointwise difference between `a` and `b` is less than
or equal to `condit... | Fixing some comments, renaming some variables. | Fixing some comments, renaming some variables.
| Lua | bsd-3-clause | GeorgOstrovski/torch-totem,fzvinicius/torch-totem,yozw/torch-totem,mevGDM/torch-totem,dm-jrae/torch-totem,clementfarabet/torch-totem,fbesse/torch-totem,deepmind/torch-totem |
5ac13e6c854b8b68044b6204aa910b622048e3b5 | libs/weblit-router.lua | libs/weblit-router.lua | --[[lit-meta
name = "creationix/weblit-router"
version = "3.0.0"
dependencies = {
'luvit/querystring@2.0.0'
}
description = "Weblit is a webapp framework designed around routes and middleware layers."
tags = {"weblit", "router", "framework"}
license = "MIT"
author = { name = "Tim Caswell" }
homepa... | --[[lit-meta
name = "creationix/weblit-router"
version = "3.0.1"
dependencies = {
'luvit/querystring@2.0.0'
}
description = "Weblit is a webapp framework designed around routes and middleware layers."
tags = {"weblit", "router", "framework"}
license = "MIT"
author = { name = "Tim Caswell" }
homepa... | Fix case for empty handlers list | Fix case for empty handlers list
| Lua | mit | zhaozg/weblit |
b7eaa851f89e7f26eaec3df13ff546dab246a36d | otouto/plugins/unrestrict.lua | otouto/plugins/unrestrict.lua | local bindings = require('otouto.bindings')
local utilities = require('otouto.utilities')
local autils = require('otouto.administration')
local P = {}
function P:init()
P.triggers = utilities.triggers(self.info.username, self.config.cmd_pat)
:t('unrestrict', true):t('unmute', true):t('unban', true).table
... | local bindings = require('otouto.bindings')
local utilities = require('otouto.utilities')
local autils = require('otouto.administration')
local P = {}
function P:init()
P.triggers = utilities.triggers(self.info.username, self.config.cmd_pat)
:t('unrestrict', true):t('unmute', true):t('unban', true).table
... | /unban bugfix | /unban bugfix
| Lua | agpl-3.0 | topkecleon/otouto |
ab6322679a787f5e902137fe23748f667716703f | src_trunk/resources/global/admin_globals.lua | src_trunk/resources/global/admin_globals.lua | function getAdmins()
local players = exports.pool:getPoolElementsByType("player")
local admins = { }
local count = 1
for key, value in ipairs(players) do
local adminLevel = getElementData(value, "adminlevel")
if (adminLevel>0) then
admins[count] = value
count = count + 1
end
end
r... | function getAdmins()
local players = exports.pool:getPoolElementsByType("player")
local admins = { }
local count = 1
for key, value in ipairs(players) do
if isPlayerAdmin(value) then
admins[count] = value
count = count + 1
end
end
return admins
end
function isPlayerAdmin(thePlayer)
... | proper version of r1663: Error fix for isPlayerXAdmin | proper version of r1663: Error fix for isPlayerXAdmin
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1677 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
c99b9b5f908fab63d8872263cd0ad3790102f206 | devel/find-vector.lua | devel/find-vector.lua | function inRange(addr)
for _, r in pairs(dfhack.internal.getMemRanges()) do
if addr >= r.start_addr and addr < r.end_addr then
return true
end
end
return false
end
ms = require 'memscan'
data = ms.get_data_segment()
length = math.floor(tonumber(({...})[1])) or qerror('bad length... | function inRange(addr)
for _, r in pairs(dfhack.internal.getMemRanges()) do
if addr >= r.start_addr and addr < r.end_addr then
return true
end
end
return false
end
ms = require 'memscan'
data = ms.get_data_segment()
length = math.floor(tonumber(({...})[1])) or qerror('bad length... | find-vector: fix initialization issue, run memview+vectors | find-vector: fix initialization issue, run memview+vectors
| Lua | unlicense | lethosor/dfhack-scripts |
3eb435d4ed312a033b4db6363814addad9c42a0b | item/rock.lua | item/rock.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 that it wi... | --[[
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 that it wi... | fix the Recognizing Spring alchemy teacher | fix the Recognizing Spring alchemy teacher
(#0010009)
| Lua | agpl-3.0 | vilarion/Illarion-Content,LaFamiglia/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content,KayMD/Illarion-Content |
78efd42efc58c6361248d95ba698e10d531e87ef | entities/ui/map.lua | entities/ui/map.lua | local Map = Class('Map')
function Map:initialize(parent, props)
self.parent = parent
self.bgColor = {127, 127, 127}
self.inactiveColor = {255, 255, 255}
self.activeColor = {127, 127, 127}
self.position = Vector(0, 0)
self.width = 240
self.height = 240
self.tileWidth = 8
self.tileHei... | local Map = Class('Map')
function Map:initialize(parent, props)
self.parent = parent
self.bgColor = {127, 127, 127}
self.inactiveColor = {255, 255, 255}
self.activeColor = {127, 127, 127}
self.position = Vector(0, 0)
self.width = 240
self.height = 240
self.tileWidth = 8
self.tileHei... | fixed map hover crash | fixed map hover crash
| Lua | mit | Nuthen/ludum-dare-39 |
87cc25c2723db70d98ed46d4aa764e475f5335f2 | mod_mam/rsm.lib.lua | mod_mam/rsm.lib.lua | local stanza = require"util.stanza".stanza;
local tostring, tonumber = tostring, tonumber;
local type = type;
local pairs = pairs;
local xmlns_rsm = 'http://jabber.org/protocol/rsm';
local element_parsers;
do
local function xs_int(st)
return tonumber((st:get_text()));
end
local function xs_string(st)
return s... | local stanza = require"util.stanza".stanza;
local tostring, tonumber = tostring, tonumber;
local type = type;
local pairs = pairs;
local xmlns_rsm = 'http://jabber.org/protocol/rsm';
local element_parsers;
do
local function xs_int(st)
return tonumber((st:get_text()));
end
local function xs_string(st)
return s... | mod_mam/rsm.lib: Remove log statement (fixes usage in verse) | mod_mam/rsm.lib: Remove log statement (fixes usage in verse)
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
bf1e9affebb577205016b79d98076ee461de8db1 | durden/browser.lua | durden/browser.lua | -- Copyright: 2015, Björn Ståhl
-- License: 3-Clause BSD
-- Reference: http://durden.arcan-fe.com
-- Description: Brower covers a lbar- based resource picker for
-- existing resources.
local function match_ext(v, tbl)
if (tbl == nil) then
return true;
end
local ext = string.match(v, "^.+(%..+)$");
ext = ext ~= ... | -- Copyright: 2015, Björn Ståhl
-- License: 3-Clause BSD
-- Reference: http://durden.arcan-fe.com
-- Description: Brower covers a lbar- based resource picker for
-- existing resources.
local function match_ext(v, tbl)
if (tbl == nil) then
return true;
end
local ext = string.match(v, "^.+(%..+)$");
ext = ext ~= ... | browser .. search order fix | browser .. search order fix
| Lua | bsd-3-clause | letoram/durden |
164d7fd4fbfb25c349528fdbce9f3fbdac146186 | globes/tetra.lua | globes/tetra.lua | -- degrees
local d120 = tau/3
local d60 = d120 / 2
local d30 = d60 / 2
-- tetrahedron dimensions
local r = 1 -- face to vertex
local s = 2*r*sin(d60) -- side length
local h = sqrt(s*s-r*r) -- face to vertex opposite face
local theta = acos(r/s) -- face to vertex to vertex opposite face
local c = s/2/sin(theta) -- cent... | -- degrees
local d120 = tau/3
local d60 = d120 / 2
local d30 = d60 / 2
-- tetrahedron dimensions
local r = 1 -- face to vertex
local s = 2*r*sin(d60) -- side length
local h = sqrt(s*s-r*r) -- face to vertex opposite face
local theta = acos(r/s) -- face to vertex to vertex opposite face
local c = s/2/sin(theta) -- cent... | fixed tetra globe FOV math (face to vertex is longer than half side length) | fixed tetra globe FOV math (face to vertex is longer than half side length)
| Lua | mit | shaunlebron/blinky,khonkhortisan/blinky,khonkhortisan/blinky,shaunlebron/blinky,shaunlebron/blinky,khonkhortisan/blinky |
5a9bfc01f4c676b75e1b57b0446e499df2431fa8 | src_trunk/resources/global/s_animation_globals.lua | src_trunk/resources/global/s_animation_globals.lua | function applyAnimation(thePlayer, block, name, animtime, loop, updatePosition, forced)
if animtime==nil then animtime=-1 end
if loop==nil then loop=true end
if updatePosition==nil then updatePosition=true end
if forced==nil then forced=true end
if isElement(thePlayer) and getElementType(thePlayer)=="player... | function applyAnimation(thePlayer, block, name, animtime, loop, updatePosition, forced)
if animtime==nil then animtime=-1 end
if loop==nil then loop=true end
if updatePosition==nil then updatePosition=true end
if forced==nil then forced=true end
if isElement(thePlayer) and getElementType(thePlayer)=="player... | anim fix | anim fix
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1879 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
ab39109f164ba954e174fdd8e02dfad369dcd170 | src/lua/lluv/redis.lua | src/lua/lluv/redis.lua | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2015 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-redis library.
--
----... | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2015 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-redis library.
--
----... | Fix. Pass password and db as options when use server option | Fix. Pass password and db as options when use server option
| Lua | mit | moteus/lua-lluv-redis |
929f385871db676bc7a7e309f52ed8619ca10665 | lib/url.lua | lib/url.lua | local Url = {}
function Url.parse(url)
local href = url
local chunk, protocol = url:match("^(([a-z0-9+]+)://)")
url = url:sub((chunk and #chunk or 0) + 1)
local host = url:match("^([^/]+)")
if host then
local hostname = host:match("^([^:/]+)")
local port = host:match(":(%d+)$")
end
url = url:sub... | local Url = {}
function Url.parse(url)
local href = url
local chunk, protocol = url:match("^(([a-z0-9+]+)://)")
url = url:sub((chunk and #chunk or 0) + 1)
local host = url:match("^([^/]+)")
local hostname, port
if host then
hostname = host:match("^([^:/]+)")
port = host:match(":(%d+)$")
end
ur... | lua variable scope fixed | lua variable scope fixed | Lua | apache-2.0 | zhaozg/luvit,boundary/luvit,boundary/luvit,boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,AndrewTsao/luvit,DBarney/luvit,rjeli/luvit,rjeli/luvit,boundary/luvit,luvit/luvit,DBarney/luvit,bsn069/luvit,AndrewTsao/luvit,GabrielNicolasAvellaneda/luvit-upstream,sousoux/luvit,bsn069/luvit,sousoux/luvit,AndrewTsao/luvi... |
4405fef30fa044b2acf33fbc47f3516c657fd157 | core/utilities.lua | core/utilities.lua | local utilities = {}
require("bit32-compat")
function utilities.required(t, name, context)
if not t[name] then utilities.error(context.." needs a "..name.." parameter") end
return t[name]
end
function utilities.error(message,bug)
if(SILE.currentCommand and type(SILE.currentCommand) == "table") then
print("... | local utilities = {}
require("bit32-compat")
function utilities.required(t, name, context)
if not t[name] then utilities.error(context.." needs a "..name.." parameter") end
return t[name]
end
function utilities.error(message,bug)
if(SILE.currentCommand and type(SILE.currentCommand) == "table") then
print("... | Fix broken build? | Fix broken build? | Lua | mit | WAKAMAZU/sile_fe,simoncozens/sile,WAKAMAZU/sile_fe,shirat74/sile,WAKAMAZU/sile_fe,anthrotype/sile,alerque/sile,simoncozens/sile,shirat74/sile,alerque/sile,neofob/sile,anthrotype/sile,simoncozens/sile,alerque/sile,WAKAMAZU/sile_fe,alerque/sile,anthrotype/sile,shirat74/sile,anthrotype/sile,neofob/sile,shirat74/sile,neofo... |
d53080dbea39c1134a658874ff3375e2a0b3f665 | nsagent.lua | nsagent.lua | #!/usr/bin/env lua
-- flock -xn /tmp/ns-agent.lock -c "/usr/bin/lua <agent_path>"
local cjson = require "cjson"
local md5 = require "md5"
local http = require "socket.http"
local inspect = require "inspect"
local API_VERSION = "1.0"
local API_PACKAGE_CONFIG = 'http://localhost:8888/api/v1/package-config.json'
local ... | #!/usr/bin/env lua
-- flock -xn /tmp/ns-agent.lock -c "/usr/bin/lua <agent_path>"
local NS_DEBUG = true
local cjson = require "cjson"
local md5 = require "md5"
local http = require "socket.http"
local inspect = require "inspect"
local API_VERSION = "1.0"
local API_PACKAGE_CONFIG = 'http://willard.com.cn/test.html'
... | Add debug log & fix path issue | Add debug log & fix path issue
| Lua | mit | NsLib/hiwifi-appstore-proxy,NsLib/hiwifi-appstore-proxy |
92f52581fe2f3d166d26dd5bbacf946c962ab34f | SVUI_!Core/system/_reports/reputation_new.lua | SVUI_!Core/system/_reports/reputation_new.lua | --[[
##############################################################################
S V U I By: Failcoder
##############################################################################
##########################################################
LOCALIZED LUA FUNCTIONS
#################################################... | --[[
##############################################################################
S V U I By: Failcoder
##############################################################################
##########################################################
LOCALIZED LUA FUNCTIONS
#################################################... | Reputation bar - Exalted tooltip fix. | Reputation bar - Exalted tooltip fix. | Lua | mit | finalsliver/supervillain-ui,FailcoderAddons/supervillain-ui |
afa9a85ad2eb8efc957c92dd197e7b3743f2ca1c | premake.lua | premake.lua | project.name = "Premake4"
-- Project options
addoption("no-tests", "Build without automated tests")
-- Output directories
project.config["Debug"].bindir = "bin/debug"
project.config["Release"].bindir = "bin/release"
-- Packages
dopackage("src")
-- Cleanup code
function doclean(cmd,... | project.name = "Premake4"
-- Project options
addoption("no-tests", "Build without automated tests")
-- Output directories
project.config["Debug"].bindir = "bin/debug"
project.config["Release"].bindir = "bin/release"
-- Packages
dopackage("src")
-- Cleanup code
function doclean(cmd,... | Minor fixes to release script | Minor fixes to release script
--HG--
extra : convert_revision : svn%3A644ed5ae-bb15-0410-aa60-99f397bbb77a/trunk%40315
| Lua | bsd-3-clause | annulen/premake-dev-rgeary,annulen/premake,annulen/premake,annulen/premake,annulen/premake-annulen,annulen/premake-annulen,warrenseine/premake,Lusito/premake,annulen/premake,annulen/premake-annulen,Lusito/premake,annulen/premake-dev-rgeary,annulen/premake-dev-rgeary,Lusito/premake,annulen/premake-annulen,warrenseine/pr... |
f05918122ce93226f6b9e94f3048c7987146c88e | core/certmanager.lua | core/certmanager.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local configmanager = require "core.configmanager";
local log = require "util.logger".init("certmanager")... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local configmanager = require "core.configmanager";
local log = require "util.logger".init("certmanager")... | certmanager: Fix for traceback WITH LuaSec... (!) (thanks IRON) | certmanager: Fix for traceback WITH LuaSec... (!) (thanks IRON)
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
8b27e6eb0f67a33a5d2499b725f5d360bc6c1fed | lua/parse/yaml/prefix/directives.lua | lua/parse/yaml/prefix/directives.lua |
local re = require 're'
return re.compile([[
directives <- {| directive* |} end_marker {}
end_marker <- '---' !%S %s*
directive <- {|
'%'
-- name
{ns_char+}
-- parameters
( %LINESPACE+ !'#' {ns_char+} )*
-- comment(s) & line break(s)
%REST_OF_LINE+
-- if there's no space between the name/fina... |
local re = require 're'
return re.compile([[
directives <- {| directive* |} end_marker {}
end_marker <- '---' !%S %s*
directive <- {|
'%'
-- name
{:name: {ns_char+} :}
-- parameters
{:arguments: {| ( %LINESPACE+ !'#' {ns_char+} )+ |} :}?
-- comment(s) & line break(s)
%REST_OF_LINE+
-- if ther... | Fix argument capture | Fix argument capture
| Lua | mit | taxler/radish,taxler/radish,taxler/radish,taxler/radish,taxler/radish,taxler/radish |
48f3e9f9a284b6f979bc0ba770146208164e0c8e | zaqar/storage/redis/scripts/claim_messages.lua | zaqar/storage/redis/scripts/claim_messages.lua | --[[
Copyright (c) 2014 Rackspace Hosting, 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 agreed to in wri... | --[[
Copyright (c) 2014 Rackspace Hosting, 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 agreed to in wri... | Fix fail of claim after some message expire(Redis) | Fix fail of claim after some message expire(Redis)
If some messages in Redis are already expired, it's impossible to claim
any new messages.
Zaqar internally catches this error from running "claim_messages.lua":
"ResponseError: Error running script: @user_script:59: user_script:59:
attempt to compare nil with number"... | Lua | apache-2.0 | openstack/zaqar,openstack/zaqar,openstack/zaqar,openstack/zaqar |
4d42cfaa6145b12d7b7bbfa6ce2bc7a0229440c9 | libs/weblit-app.lua | libs/weblit-app.lua | --[[lit-meta
name = "creationix/weblit-app"
version = "2.1.0"
dependencies = {
'creationix/coro-net@2.2.0',
'luvit/http-codec@2.0.0',
'luvit/querystring@2.0.0',
}
description = "Weblit is a webapp framework designed around routes and middleware layers."
tags = {"weblit", "router", "framework"}
... | --[[lit-meta
name = "creationix/weblit-app"
version = "2.1.1"
dependencies = {
'creationix/coro-net@2.2.0',
'luvit/http-codec@2.0.0',
'luvit/querystring@2.0.0',
}
description = "Weblit is a webapp framework designed around routes and middleware layers."
tags = {"weblit", "router", "framework"}
... | Fix default port logic for windows | Fix default port logic for windows
| Lua | mit | zhaozg/weblit |
2851d0db33729bc50d03dd9472d8e467a2de2284 | lib/cassandra.lua | lib/cassandra.lua | -- Implementation of CQL Binary protocol V2 available at https://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=doc/native_protocol_v2.spec;hb=HEAD
local tcp = ngx.socket.tcp
local _M = {}
_M.version = "0.0.1"
local CQL_VERSION = "3.0.0"
local version_codes = {
REQUEST='\002',
RESPONSE='\13... | -- Implementation of CQL Binary protocol V2 available at https://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=doc/native_protocol_v2.spec;hb=HEAD
local tcp = ngx.socket.tcp
local _M = {}
_M.version = "0.0.1"
local CQL_VERSION = "3.0.0"
local version_codes = {
REQUEST='\002',
RESPONSE='\13... | Fix query | Fix query
| Lua | mit | Mashape/lua-resty-cassandra,thibaultCha/lua-resty-cassandra,kidaa/lua-resty-cassandra,jbochi/lua-resty-cassandra |
f733686b7f493411af2d487a86773ac7a87f9704 | upcache.lua | upcache.lua | local module = {}
local cacheScope = require "scope"
local cacheTag = require "tag"
cacheScope.publicKeys = ngx.shared.upcachePublicKeys
cacheScope.restrictions = ngx.shared.upcacheRestrictions
cacheTag.tags = ngx.shared.upcacheTags
cacheTag.variants = ngx.shared.upcacheVariants
function module.request()
local keyR... | local module = {}
local cacheScope = require "scope"
local cacheTag = require "tag"
cacheScope.publicKeys = ngx.shared.upcachePublicKeys
cacheScope.restrictions = ngx.shared.upcacheRestrictions
cacheTag.tags = ngx.shared.upcacheTags
cacheTag.variants = ngx.shared.upcacheVariants
function module.request()
local keyR... | Fix response passing | Fix response passing
| Lua | mit | kapouer/cache-protocols,kapouer/upcache |
3fce713ae69d094cff9edec340b4537237976424 | lua/autorun/resources_api.lua | lua/autorun/resources_api.lua | --
-- Created by IntelliJ IDEA.
-- User: Sam Elmer
-- Date: 8/11/12
-- Time: 9:03 AM
-- To change this template use File | Settings | File Templates.
--
RS = {}
--TODO: Complete Documentation
--TODO: For Developers: You need to fill this file out with your custom RD replacement/whatever.
if (SERVER) then
AddCSLu... | --
-- Created by IntelliJ IDEA.
-- User: Sam Elmer
-- Date: 8/11/12
-- Time: 9:03 AM
-- To change this template use File | Settings | File Templates.
--
RS = {}
--TODO: Complete Documentation
--TODO: For Developers: You need to fill this file out with your custom RD replacement/whatever.
if (SERVER) then
AddCSLu... | api typos fix | api typos fix
| Lua | apache-2.0 | N3X15/spacebuild |
bc1da210b678361d554fd2e85761b34e7d5fdf58 | projects/premake/thirdparty/string_id.lua | projects/premake/thirdparty/string_id.lua | #!lua
--
-- @file string_id.lua
-- @author PJ O Halloran
-- @date 25/09/2017
--
-- For building the string_id library.
--
local lib_name = "string_id"
local output_lib_name = "foonathan_" .. lib_name
local lib_src_dir = path.join(ember_thirdparty_src, lib_name)
local function build()
os.mkdir(lib_nam... | #!lua
--
-- @file string_id.lua
-- @author PJ O Halloran
-- @date 25/09/2017
--
-- For building the string_id library.
--
local lib_name = "string_id"
local output_lib_name = "foonathan_" .. lib_name
local lib_src_dir = path.join(ember_thirdparty_src, lib_name)
local function build()
os.mkdir(lib_nam... | Fix bug where required auto generated header was not copied to string_id install location. | Fix bug where required auto generated header was not copied to string_id install location.
| Lua | mit | pjohalloran/ember,pjohalloran/ember,pjohalloran/ember |
06e254cd1e180e3b97549f1635eb053403def72b | logout-menu-widget/logout-menu.lua | logout-menu-widget/logout-menu.lua | -------------------------------------------------
-- Logout Menu Widget for Awesome Window Manager
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/logout-menu-widget
-- @author Pavel Makhov
-- @copyright 2020 Pavel Makhov
------------------------------------------... | -------------------------------------------------
-- Logout Menu Widget for Awesome Window Manager
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/logout-menu-widget
-- @author Pavel Makhov
-- @copyright 2020 Pavel Makhov
------------------------------------------... | [logout] fix #241 - duplicated logout menu | [logout] fix #241 - duplicated logout menu
| Lua | mit | streetturtle/awesome-wm-widgets,streetturtle/awesome-wm-widgets |
3c0134c167f54ac98f39e61ec99f2a93ceb8bd82 | scripts/bgfx.lua | scripts/bgfx.lua | --
-- Copyright 2010-2015 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
function bgfxProject(_name, _kind, _defines)
project ("bgfx" .. _name)
uuid (os.uuid("bgfx" .. _name))
kind (_kind)
if _kind == "SharedLib" then
defines {
"BGFX_SHARED_LIB_BU... | --
-- Copyright 2010-2015 Branimir Karadzic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
function bgfxProject(_name, _kind, _defines)
project ("bgfx" .. _name)
uuid (os.uuid("bgfx" .. _name))
kind (_kind)
if _kind == "SharedLib" then
defines {
"BGFX_SHARED_LIB_BU... | OSX: Fixed amalgamated build. | OSX: Fixed amalgamated build.
| Lua | bsd-2-clause | 0-wiz-0/bgfx,LWJGL-CI/bgfx,mendsley/bgfx,septag/bgfx,LWJGL-CI/bgfx,MikePopoloski/bgfx,LWJGL-CI/bgfx,marco-we/bgfx,jdryg/bgfx,emoon/bgfx,Synxis/bgfx,jpcy/bgfx,bkaradzic/bgfx,kondrak/bgfx,mmicko/bgfx,jdryg/bgfx,jdryg/bgfx,emoon/bgfx,mcanthony/bgfx,mcanthony/bgfx,MikePopoloski/bgfx,v3n/bgfx,ktotheoz/bgfx,mendsley/bgfx,aon... |
8a2970632ac14fa9a61b020597ccdde72790caff | xmake/modules/package/tools/xmake.lua | xmake/modules/package/tools/xmake.lua | --!A cross-platform build utility based on Lua
--
-- 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... | --!A cross-platform build utility based on Lua
--
-- 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... | fix tools/xmake for root | fix tools/xmake for root
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
e0a19b96e8a920a37ba59f4418bf955df18b0561 | share/lua/sd/metachannels.lua | share/lua/sd/metachannels.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 y... | --[[
$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 y... | metachannels: don't crash if image tag is missing | metachannels: don't crash if image tag is missing
Fixes #6008
| Lua | lgpl-2.1 | xkfz007/vlc,vlc-mirror/vlc-2.1,shyamalschandra/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc,jomanmuk/vlc-2.2,krichter722/vlc,krichter722/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,jomanmuk/vlc-2.1,vlc-mirror/vlc-2.1,shyamalschandra/vlc,xkfz007/vlc,jomanmuk/vlc... |
c61420cefdd8dc16aa75f68cfaa5f58e1e950712 | mattata/plugins/cats.lua | mattata/plugins/cats.lua | local cats = {}
local HTTP = require('socket.http')
local functions = require('mattata.functions')
function cats:init(configuration)
cats.triggers = functions.triggers(self.info.username, configuration.command_prefix):t('cat').table
cats.command = 'cat'
cats.doc = 'A random picture of a cat!'
end
function cats:actio... | local cats = {}
local HTTP = require('socket.http')
local functions = require('mattata.functions')
function cats:init(configuration)
cats.command = 'cat'
cats.triggers = functions.triggers(self.info.username, configuration.command_prefix):t('cat').table
cats.doc = 'A random picture of a cat!'
end
function c... | Minor fixes | Minor fixes | Lua | mit | barreeeiroo/BarrePolice |
dec53bf4f1610a2baee34cb0ee2cb460d8e5676c | CosineDistance.lua | CosineDistance.lua | local CosineDistance, parent = torch.class('nn.CosineDistance', 'nn.Module')
function CosineDistance:__init()
parent.__init(self)
self.gradInput = {torch.Tensor(), torch.Tensor()}
end
function CosineDistance:updateOutput(input)
local input1, input2 = input[1], input[2]
if input1:dim() == 1 then
i... | local CosineDistance, parent = torch.class('nn.CosineDistance', 'nn.Module')
function CosineDistance:__init()
parent.__init(self)
self.gradInput = {torch.Tensor(), torch.Tensor()}
end
function CosineDistance:updateOutput(input)
local input1, input2 = input[1], input[2]
if not input1:isContiguous() then... | Fix CosineDistance to handle non-contiguous input | Fix CosineDistance to handle non-contiguous input
Thanks for the batch version of CosineDistance. Just one quick fix here so it can handle the non-contiguous input. This is for backward-compatibility purpose since the original/old CosineDistance.lua can handle non-contiguous input without problems, and also it is a li... | Lua | bsd-3-clause | elbamos/nn,clementfarabet/nn,xianjiec/nn,joeyhng/nn,jonathantompson/nn,eriche2016/nn,nicholas-leonard/nn,colesbury/nn,witgo/nn,vgire/nn,kmul00/nn,jhjin/nn,diz-vara/nn,lukasc-ch/nn,sagarwaghmare69/nn,Moodstocks/nn,apaszke/nn,andreaskoepf/nn,PraveerSINGH/nn,caldweln/nn,mlosch/nn |
6d601d11b55e8ce18190b9ff02d27e046cbd52f7 | SpatialSoftMax.lua | SpatialSoftMax.lua | local SpatialSoftMax, parent = torch.class('cudnn.SpatialSoftMax', 'nn.Module')
local errcheck = cudnn.errcheck
function SpatialSoftMax:__init(fast)
parent.__init(self)
if fast then
self.algorithm = 'CUDNN_SOFTMAX_FAST'
else
self.algorithm = 'CUDNN_SOFTMAX_ACCURATE'
end
self.mode = 'CUDNN_SO... | local SpatialSoftMax, parent = torch.class('cudnn.SpatialSoftMax', 'nn.Module')
local errcheck = cudnn.errcheck
function SpatialSoftMax:__init(fast)
parent.__init(self)
if fast then
self.algorithm = 'CUDNN_SOFTMAX_FAST'
else
self.algorithm = 'CUDNN_SOFTMAX_ACCURATE'
end
self.mode = 'CUDNN_SO... | Natalias contiguity fix | Natalias contiguity fix
| Lua | bsd-3-clause | phunghx/phnn.torch,phunghx/phnn.torch,phunghx/phnn.torch |
28bee27748ab207a67f2cbe13ed3952aef7cf64f | src/api-umbrella/cli/health.lua | src/api-umbrella/cli/health.lua | local cjson = require "cjson"
local http = require("socket.http")
local read_config = require "api-umbrella.cli.read_config"
local unistd = require "posix.unistd"
local function health(options, config)
local status = "red"
local exit_code = 1
local url = "http://127.0.0.1:" .. config["http_port"] .. "/api-umbre... | local cjson = require "cjson"
local http = require("socket.http")
local read_config = require "api-umbrella.cli.read_config"
local unistd = require "posix.unistd"
local function health(options, config)
local status = "red"
local exit_code = 1
local url = "http://127.0.0.1:" .. config["http_port"] .. "/api-umbre... | Fix waiting on health check for unexpected JSON responses. | Fix waiting on health check for unexpected JSON responses.
This fixes the case that while waiting for things to startup, the app
returns a 404 JSON response. This can happen if mongodb takes longer
than expected to startup. With this fix, the heath check cli will
continue to loop and wait for a valid health status res... | Lua | mit | NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella |
28d73a9e4fe5297453d0058c381474659860624c | lua/wire/stools/value.lua | lua/wire/stools/value.lua | WireToolSetup.setCategory( "I/O" )
WireToolSetup.open( "value", "Constant Value", "gmod_wire_value", nil, "Constant Values" )
if CLIENT then
language.Add("Tool.wire_value.name", "Value Tool (Wire)")
language.Add("Tool.wire_value.desc", "Spawns a constant value for use with the wire system.")
language.Add("Tool.wire... | WireToolSetup.setCategory( "I/O" )
WireToolSetup.open( "value", "Constant Value", "gmod_wire_value", nil, "Constant Values" )
if CLIENT then
language.Add("Tool.wire_value.name", "Value Tool (Wire)")
language.Add("Tool.wire_value.desc", "Spawns a constant value for use with the wire system.")
language.Add("Tool.wire... | Constant Value: Fixed rightclick not sending values to server | Constant Value: Fixed rightclick not sending values to server
| Lua | apache-2.0 | plinkopenguin/wiremod,thegrb93/wire,wiremod/wire,CaptainPRICE/wire,notcake/wire,mms92/wire,dvdvideo1234/wire,immibis/wiremod,garrysmodlua/wire,NezzKryptic/Wire,rafradek/wire,mitterdoo/wire,Python1320/wire,sammyt291/wire,Grocel/wire,bigdogmat/wire |
0e08c5fc1513bb036dde2bd1362ff6de521b8c78 | share/media/gaskrank.lua | share/media/gaskrank.lua | -- libquvi-scripts
-- Copyright (C) 2010-2012 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fre... | -- libquvi-scripts
-- Copyright (C) 2010-2012 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fre... | FIX: media/gaskrank.lua: Parse media ID from stream URL | FIX: media/gaskrank.lua: Parse media ID from stream URL
| Lua | agpl-3.0 | legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts |
e06f3cd6e2fb965a30b8dc0db3814f3e60686f35 | usr/product/sigma-firmware/pkg.lua | usr/product/sigma-firmware/pkg.lua | -- Sigma rules
local R = require 'rules'
require 'chicken'
-- base
R:add { 'ast-files' }
R:add { 'cmake-modules' }
R:add { 'linux' }
R:add { 'xsdk' }
R:add { 'ucode',
{ 'install' }
}
-- host
R:add { 'utils', 'host' }
R:add { 'karaoke-player', 'host',
{ 'configure',
requires = {
'c... | -- Sigma rules
local R = require 'rules'
require 'chicken'
-- base
R:add { 'ast-files' }
R:add { 'cmake-modules' }
R:add { 'linux' }
R:add { 'xsdk' }
R:add { 'ucode',
{ 'install' }
}
-- host
R:add { 'utils', 'host' }
R:add { 'karaoke-player', 'host',
{ 'configure',
requires = {
'c... | Fix sigma rules | Fix sigma rules
| Lua | mit | bazurbat/jagen |
821000f4051465fdd529232f479782073fa83297 | src/logfactory/LogCreator.lua | src/logfactory/LogCreator.lua | local LogCreator = {};
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local GIT_COMMAND = 'git log --reverse --numstat --pretty=format:"info: %an|%ae|%ct" --name-status --no-merges';
local LOG_FOLDER = 'logs/';
local LOG_FILE = '/log.txt';
local IN... | local LogCreator = {};
-- ------------------------------------------------
-- Constants
-- ------------------------------------------------
local GIT_COMMAND = 'git log --reverse --numstat --pretty=format:"info: %an|%ae|%ct" --name-status --no-merges';
local LOG_FOLDER = 'logs/';
local LOG_FILE = '/log.txt';
local IN... | Fix #24 - Use io.write instead of print to get proper console output | Fix #24 - Use io.write instead of print to get proper console output
| Lua | mit | rm-code/logivi |
bda365dd8ee7dc5f7e350516f7ed228387efcfe0 | scripts/src/h.lua | scripts/src/h.lua | require "lmkbuild"
local assert = assert
local append = lmkbuild.append_local
local cp = lmkbuild.cp
local file_newer = lmkbuild.file_newer
local ipairs = ipairs
local is_valid = lmkbuild.is_valid
local mkdir = lmkbuild.mkdir
local print = print
local resolve = lmkbuild.resolve
local rm = lmkbuild.rm
local split = lmk... | require "lmkbuild"
local assert = assert
local append = lmkbuild.append_local
local cp = lmkbuild.cp
local file_newer = lmkbuild.file_newer
local ipairs = ipairs
local is_valid = lmkbuild.is_valid
local mkdir = lmkbuild.mkdir
local print = print
local resolve = lmkbuild.resolve
local rm = lmkbuild.rm
local split = lmk... | small fix to lmk | small fix to lmk
| Lua | mit | shillcock/lmk,dmzgroup/lmk |
aa49cf041c3765beb14a05009b9f48cdec43b5fd | turbovisor.lua | turbovisor.lua | --- Turbo.lua Turbovisor, auto-reload of application on file changes.
--
-- Copyright 2013 John Abrahamsen, Deyuan Deng
--
-- 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.ap... | --- Turbo.lua Turbovisor, auto-reload of application on file changes.
--
-- Copyright 2013 John Abrahamsen, Deyuan Deng
--
-- 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.ap... | turbovisor: Fix multiple repeating arguments | turbovisor: Fix multiple repeating arguments
Running 'turbovisor -w somefile.lua -w otherdir' works now as expected.
Signed-off-by: Petr Štetiar <f0d4d86d9c7002e67e6ae7bb5596bc0afa7b4c3a@true.cz>
| Lua | apache-2.0 | ddysher/turbo,kernelsauce/turbo,zcsteele/turbo,mniestroj/turbo,ddysher/turbo,luastoned/turbo,zcsteele/turbo,YuanPeir-Chen/turbo-support-mipsel,YuanPeir-Chen/turbo-support-mipsel,luastoned/turbo |
faf255bb0be4b6fb09f6c35ddc3d0c61ef60bcef | premake5.lua | premake5.lua | local sep = "/"
local ext = ""
if os.ishost("windows") then
sep = "\\"
ext = ".exe"
end
cwd = os.getcwd()
-- Workspace definition.
workspace("Rendu")
-- Configurations
configurations({ "Release", "Dev"})
location("build")
targetdir ("build/%{prj.name}/%{cfg.longname}")
debugdir ("build/%{prj.name}/%{cfg.longna... | local sep = "/"
local ext = ""
if os.ishost("windows") then
sep = "\\"
ext = ".exe"
end
cwd = os.getcwd()
-- Workspace definition.
workspace("Rendu")
-- Configurations
configurations({ "Release", "Dev"})
location("build")
targetdir ("build/%{prj.name}/%{cfg.longname}")
debugdir ("build/%{prj.name}/%{cfg.longna... | Premake: fix access right for shader validation on Linux. | Premake: fix access right for shader validation on Linux.
| Lua | mit | kosua20/GL_Template,kosua20/GL_Template |
2b9068e5f79b444977c007eff37c9749d1e3b3bb | src/plugins/lua/once_received.lua | src/plugins/lua/once_received.lua | --[[
Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru>
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... | --[[
Copyright (c) 2011-2015, Vsevolod Stakhov <vsevolod@highsecure.ru>
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... | [Fix] Fix placement of RDNS checks | [Fix] Fix placement of RDNS checks
| Lua | bsd-2-clause | andrejzverev/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,minaevmike/rspamd,AlexeySa/rspamd,minaevmike/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,... |
df8994982e34bb6c1ce719fd8e0a8f39812cda48 | search-script.lua | search-script.lua | #!/usr/bin/env lua
local config = require "config"
local filePath = config.filePath
function printArgs()
for k,v in pairs(arg) do
print(k,v)
end
end
function countArgs()
count = 0
for _ in pairs(arg) do count = count + 1 end
return count - 2
end
function helpMenu()
print "#========================... | #!/usr/bin/env lua
local config = require "config"
local filePath = config.filePath
function printArgs()
for k,v in pairs(arg) do
print(k,v)
end
end
function countArgs()
count = 0
for _ in pairs(arg) do count = count + 1 end
return count - 2
end
function helpMenu()
print "#========================... | Fixing print all files results | Fixing print all files results
Signed-off-by: Jacobo Tibaquira <d8d2a0ed36dd5f2e41c721fffbe8af2e7e4fe993@gmail.com>
| Lua | apache-2.0 | JKO/nsearch,JKO/nsearch |
9d9cb6228c9a41194c693c76ed0936e6779cd9ce | trovebox.lua | trovebox.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 = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... | 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 = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... | trovebox.lua: fixes | trovebox.lua: fixes | Lua | unlicense | ArchiveTeam/trovebox-grab,ArchiveTeam/trovebox-grab |
39e5df2b3a110cfb29b68f22c17ad8514716e2a0 | lua/parse/char/utf8/tools.lua | lua/parse/char/utf8/tools.lua |
local strbyte, strchar = string.byte, string.char
local strsub = string.sub
local contiguous_byte_ranges = require 'parse.char.utf8.data.contiguous_byte_ranges'
local blob_tools = require 'parse.blob.tools'
local next_blob = blob_tools.next
local previous_blob = blob_tools.previous
local special_next = {}
local spec... |
local strbyte, strchar = string.byte, string.char
local strsub = string.sub
local contiguous_byte_ranges = require 'parse.char.utf8.data.contiguous_byte_ranges'
local blob_tools = require 'parse.blob.tools'
local next_blob = blob_tools.next
local previous_blob = blob_tools.previous
local special_next = {}
local spec... | Fix next char in the same way as previous was | Fix next char in the same way as previous was
| Lua | mit | taxler/radish,taxler/radish,taxler/radish,taxler/radish,taxler/radish,taxler/radish |
ba6bbd00495725097eb564fd915d2b91f0b5b971 | src/conman.lua | src/conman.lua |
--- @module conman
local conman = {}
local config = require("config")
local db = require("db")
local cjdns = require("rpc-interface.cjdns")
local threadman = require("threadman")
local rpc = require("rpc")
local conManTs = 0
local subscriberManager = function()
local sinceTimestamp = conManTs
conManTs = os.time... |
--- @module conman
local conman = {}
local config = require("config")
local db = require("db")
local cjdns = require("rpc-interface.cjdns")
local threadman = require("threadman")
local rpc = require("rpc")
local conManTs = 0
local subscriberManager = function()
local sinceTimestamp = conManTs
conManTs = os.time... | Crash fix | Crash fix
| Lua | mit | transitd/transitd,transitd/transitd,transitd/transitd,pdxmeshnet/mnigs,intermesh-networks/transitd,intermesh-networks/transitd,pdxmeshnet/mnigs |
e588f8d5f98757256ef6b248fd92d594426f90d7 | ioncore/ioncore_wd.lua | ioncore/ioncore_wd.lua | --
-- ion/share/ioncore_wd.lua
--
-- Copyright (c) Tuomo Valkonen 2004-2007.
--
-- See the included file LICENSE for details.
--
local savefile="saved_wd"
local dirs={}
local px
if pcall(function() return require('posix') end) then
px=posix
end
local function checkdir(d)
if not px then
return true
... | --
-- ion/share/ioncore_wd.lua
--
-- Copyright (c) Tuomo Valkonen 2004-2007.
--
-- See the included file LICENSE for details.
--
local savefile="saved_wd"
local dirs={}
local px
if pcall(function() return require('posix') end) then
px=posix
end
local function checkdir(d)
if not px then
return true
... | Lua-posix dir. checking support fixes. | Lua-posix dir. checking support fixes.
darcs-hash:20071109180341-4eba8-6db36f9fcf3d7a3740190cb2d247fd6a3dc863e5.gz
| Lua | lgpl-2.1 | raboof/notion,anoduck/notion,anoduck/notion,neg-serg/notion,dkogan/notion,knixeur/notion,raboof/notion,dkogan/notion.xfttest,p5n/notion,neg-serg/notion,p5n/notion,p5n/notion,neg-serg/notion,knixeur/notion,anoduck/notion,raboof/notion,neg-serg/notion,p5n/notion,dkogan/notion,dkogan/notion,p5n/notion,dkogan/notion,knixeu... |
5b9a80b0c437c439a4feb18c734fe2b1483208e2 | plugins/mod_legacyauth.lua | plugins/mod_legacyauth.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 t_concat = table.concat;
local secure_auth_only = module:get_o... | -- 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 t_concat = table.concat;
local secure_auth_only = module:get_o... | mod_legacyauth: Added a FIXME | mod_legacyauth: Added a FIXME
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
3a00f6c112270493d9738b9e1a8c3fbae1464970 | item/id_9_saw.lua | item/id_9_saw.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 that it wi... | --[[
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 that it wi... | Fix test script | Fix test script
| Lua | agpl-3.0 | KayMD/Illarion-Content,Illarion-eV/Illarion-Content,Baylamon/Illarion-Content,vilarion/Illarion-Content |
c7b1e0f4546c6ad55f0d147abe64c281fa226c55 | modules/admin-full/luasrc/controller/admin/network.lua | modules/admin-full/luasrc/controller/admin/network.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$
]]--
modu... | --[[
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$
]]--
modu... | modules/admin-full: support deleting wireless networks and fix wireless join | modules/admin-full: support deleting wireless networks and fix wireless join
git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5442 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci,fqrouter/luci |
9dd613a698ab5c79b132fff1486415ad82c7451e | lua/entities/gmod_wire_cpu/init.lua | lua/entities/gmod_wire_cpu/init.lua | if (EmuFox) then
include('gmod_wire_cpu/compiler_asm.lua')
include('gmod_wire_cpu/cpu_bitwise.lua')
include('gmod_wire_cpu/cpu_vm.lua')
include('gmod_wire_cpu/cpu_opcodes.lua')
include('gmod_wire_cpu/cpu_bus.lua')
include('gmod_wire_cpu/cpu_interrupt.lua')
else
AddCSLuaFile("cl_init.lua")
AddCSLuaFil... | if (EmuFox) then
include('gmod_wire_cpu/compiler_asm.lua')
include('gmod_wire_cpu/cpu_bitwise.lua')
include('gmod_wire_cpu/cpu_vm.lua')
include('gmod_wire_cpu/cpu_opcodes.lua')
include('gmod_wire_cpu/cpu_bus.lua')
include('gmod_wire_cpu/cpu_interrupt.lua')
else
AddCSLuaFile("cl_init.lua")
AddCSLuaFil... | [FIXED] Added some missing code for the debug mode. [CHANGED] CPU returns CPUID version of 990 now. [FIXED] CPU will now execute AT LEAST 1 opcode every cycle (even if frequency is 1) | [FIXED] Added some missing code for the debug mode.
[CHANGED] CPU returns CPUID version of 990 now.
[FIXED] CPU will now execute AT LEAST 1 opcode every cycle (even if frequency is 1)
| Lua | apache-2.0 | dvdvideo1234/wire,mms92/wire,immibis/wiremod,mitterdoo/wire,bigdogmat/wire,garrysmodlua/wire,Grocel/wire,NezzKryptic/Wire,sammyt291/wire,CaptainPRICE/wire,notcake/wire,rafradek/wire,plinkopenguin/wiremod,Python1320/wire,wiremod/wire,thegrb93/wire |
43b2514f71686b05217803d592f42f865ba40a0a | spec/unit/statics_spec.lua | spec/unit/statics_spec.lua | local spec_helper = require "spec.spec_helpers"
local constants = require "kong.constants"
local stringy = require "stringy"
local IO = require "kong.tools.io"
local fs = require "luarocks.fs"
describe("Static files", function()
describe("Constants", function()
it("version set in constants should match the one... | local spec_helper = require "spec.spec_helpers"
local constants = require "kong.constants"
local stringy = require "stringy"
local IO = require "kong.tools.io"
local fs = require "luarocks.fs"
describe("Static files", function()
describe("Constants", function()
it("version set in constants should match the one... | fix: config test broken by 5c5da4e1e70ceb | fix: config test broken by 5c5da4e1e70ceb
| Lua | apache-2.0 | chourobin/kong,AnsonSmith/kong,wakermahmud/kong,sbuettner/kong,ropik/kong,vmercierfr/kong,ChristopherBiscardi/kong,peterayeni/kong,puug/kong,paritoshmmmec/kong,skynet/kong,bbalu/kong,Skyscanner/kong |
9dd9ba6340fe8591b673f0f786b8d767da81b891 | share/lua/sd/metachannels.lua | share/lua/sd/metachannels.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 y... | --[[
$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 y... | metachannels: fix search function too | metachannels: fix search function too
| Lua | lgpl-2.1 | shyamalschandra/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,shyamalschandra/vlc,jomanmuk/vlc-2.1,shyamalschandra/vlc,shyamalschandra/vlc,krichter722/vlc,jomanmuk/vlc-2.2,shyamalschandra/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.1,xkfz007/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc-2.1,vlc-mirror/vlc-... |
4956ef91728c9a8f763dab565f56e439981b122f | src/inputobjectutils/src/Client/InputObjectRayUtils.lua | src/inputobjectutils/src/Client/InputObjectRayUtils.lua | --- Utility functions for constructing rays from input objects
-- @module InputObjectRayUtils
local Workspace = game:GetService("Workspace")
local DEFAULT_RAY_DISTANCE = 1000
local InputObjectRayUtils = {}
function InputObjectRayUtils.cameraRayFromInputObject(inputObject, distance)
assert(inputObject, "Bad inputOb... | --- Utility functions for constructing rays from input objects
-- @module InputObjectRayUtils
local Workspace = game:GetService("Workspace")
local DEFAULT_RAY_DISTANCE = 1000
local InputObjectRayUtils = {}
function InputObjectRayUtils.cameraRayFromInputObject(inputObject, distance, offset, camera)
assert(inputObje... | fix: InputObjectRayUtils allows the specification of the camera | fix: InputObjectRayUtils allows the specification of the camera
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
da2290031b22b619edbf44a4fd2f897439648b2d | scen_edit/command/set_sun_parameters_command.lua | scen_edit/command/set_sun_parameters_command.lua | SetSunParametersCommand = Command:extends{}
SetSunParametersCommand.className = "SetSunParametersCommand"
function SetSunParametersCommand:init(opts)
self.className = "SetSunParametersCommand"
self.opts = opts
self._execute_unsynced = true
end
function SetSunParametersCommand:execute()
local cmd = Wid... | SetSunParametersCommand = Command:extends{}
SetSunParametersCommand.className = "SetSunParametersCommand"
function SetSunParametersCommand:init(opts)
self.className = "SetSunParametersCommand"
self.opts = opts
self._execute_unsynced = true
end
function SetSunParametersCommand:execute()
self.old = {
--... | fix sun editing | fix sun editing
| Lua | mit | Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core |
8e159a974b6c3fa96dac4d8666f70a807e849a83 | Learnlist-entry7.lua | Learnlist-entry7.lua | -- Gli entry dei learnlist di settima generazione
local z = {}
local mw = require('mw')
local txt = require('Wikilib-strings')
local lib = require('Wikilib-learnlists')
local moves = require("Move-data")
local links = require('Links')
-- stab, mossa, notes, tipo, cat, pw, acc, pp, gara, exib, inib
local entry = fun... | -- Gli entry dei learnlist di settima generazione
local z = {}
local mw = require('mw')
local txt = require('Wikilib-strings')
local lib = require('Wikilib-learnlists')
local moves = require("Move-data")
local links = require('Links')
-- stab, mossa, notes, tipo, cat, pw, acc, pp, gara, exib, inib
local entry = fun... | Quick and dirty fix in learnlist/entry7 | Quick and dirty fix in learnlist/entry7
| Lua | cc0-1.0 | pokemoncentral/wiki-lua-modules |
59aee3404fb1d340dda323e8aa194b4203fa8d92 | spec/02-integration/06_error_handling_spec.lua | spec/02-integration/06_error_handling_spec.lua | local utils = require "spec.spec_utils"
local cassandra = require "cassandra"
describe("error handling", function()
local _hosts, _shm
setup(function()
_hosts, _shm = utils.ccm_start()
end)
describe("spawn_cluster()", function()
it("should return option errors", function()
local options = requi... | local utils = require "spec.spec_utils"
local cassandra = require "cassandra"
describe("error handling", function()
local _hosts, _shm
setup(function()
_hosts, _shm = utils.ccm_start()
end)
describe("spawn_cluster()", function()
it("should return option errors", function()
local options = requi... | fix(lint) unused var in specs | fix(lint) unused var in specs
| Lua | mit | thibaultCha/lua-cassandra,thibaultCha/lua-cassandra |
dec09bf5f31ada7b8bef852d55988a99ec34d8b6 | busted/modules/files/terra.lua | busted/modules/files/terra.lua | local ret = {}
local ok, terralib = pcall(function() return require 'terralib' end)
local getTrace = function(filename, info)
local index = info.traceback:find('\n%s*%[C]')
info.traceback = info.traceback:sub(1, index)
return info
end
ret.match = function(busted, filename)
if ok then
local path, name, ex... | local ret = {}
local ok, terralib = pcall(function() return require 'terralib' end)
local getTrace = function(filename, info)
local index = info.traceback:find('\n%s*%[C]')
info.traceback = info.traceback:sub(1, index)
return info
end
ret.match = function(busted, filename)
if ok then
local path, name, ex... | Fix error message for terra test files | Fix error message for terra test files
| Lua | mit | o-lim/busted,leafo/busted,DorianGray/busted,nehz/busted,Olivine-Labs/busted,ryanplusplus/busted,sobrinho/busted,mpeterv/busted,xyliuke/busted,istr/busted |
c68fa1513031450554acfbfff7ac47f55a097bd3 | src/modules/wms_time_service/wms_time_service.lua | src/modules/wms_time_service/wms_time_service.lua | local onearth_wms_time_service = {}
local lfs = require "lfs"
local lyaml = require "lyaml"
local request = require "http.request"
local JSON = require "JSON"
local xml = require "pl.xml"
-- Utility functions
local function split(sep, str)
local results = {}
for value in string.gmatch(str, "([^" .. sep .. "]... | local onearth_wms_time_service = {}
local lfs = require "lfs"
local lyaml = require "lyaml"
local request = require "http.request"
local JSON = require "JSON"
local xml = require "pl.xml"
-- Utility functions
local function split(sep, str)
local results = {}
for value in string.gmatch(str, "([^" .. sep .. "]... | Fixed bug to allow time=default | Fixed bug to allow time=default
| Lua | apache-2.0 | nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth |
ab44d1f7e3336d0a12e0e4cd04178cd9084bd034 | 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 item number distinction (plural forms) | fix item number distinction (plural forms)
| Lua | agpl-3.0 | houqp/koreader,mihailim/koreader,koreader/koreader,frankyifei/koreader,lgeek/koreader,pazos/koreader,chihyang/koreader,ashang/koreader,mwoz123/koreader,apletnev/koreader,Frenzie/koreader,koreader/koreader,noname007/koreader,Frenzie/koreader,ashhher3/koreader,Markismus/koreader,chrox/koreader,NiLuJe/koreader,Hzj-jie/kor... |
1049d01dc99c97822bbc833dcf9220b78c633d7b | net/http.lua | net/http.lua | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local socket = require "socket"
local mime = require "mime"
local url = require "socket.url"
local https... | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local socket = require "socket"
local mime = require "mime"
local url = require "socket.url"
local httpst... | net.http: Whitespace fixes | net.http: Whitespace fixes
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
438386ef290393dffc34f553c642cac4e8525e07 | core/portmanager.lua | core/portmanager.lua |
local multitable = require "util.multitable";
local fire_event = prosody.events.fire_event;
--- Config
local default_interfaces = { "*" };
local default_local_interfaces = { "127.0.0.1" };
if config.get("*", "use_ipv6") then
table.insert(default_interfaces, "::");
table.insert(default_local_interfaces, "::1");
end... |
local multitable = require "util.multitable";
local fire_event = prosody.events.fire_event;
--- Config
local default_interfaces = { "*" };
local default_local_interfaces = { "127.0.0.1" };
if config.get("*", "use_ipv6") then
table.insert(default_interfaces, "::");
table.insert(default_local_interfaces, "::1");
end... | portmanager: Fix log message when multiple services are configured to use the same port | portmanager: Fix log message when multiple services are configured to use the same port
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
1a9b5381c0099469a1c21190fee39b9cb47c4bba | libs/core/luasrc/model/wireless.lua | libs/core/luasrc/model/wireless.lua | --[[
LuCI - Wireless model
Copyright 2009 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
Unless required by applica... | --[[
LuCI - Wireless model
Copyright 2009 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
Unless required by applica... | libs/core: fixes luci.model.wireless | libs/core: fixes luci.model.wireless
| Lua | apache-2.0 | cshore/luci,david-xiao/luci,teslamint/luci,dwmw2/luci,oyido/luci,dwmw2/luci,hnyman/luci,palmettos/test,Noltari/luci,bright-things/ionic-luci,tcatm/luci,Wedmer/luci,cappiewu/luci,lcf258/openwrtcn,keyidadi/luci,LuttyYang/luci,aa65535/luci,ReclaimYourPrivacy/cloak-luci,jlopenwrtluci/luci,thess/OpenWrt-luci,981213/luci-1,j... |
eebffc3d0afc1d45e5d8e02e18a7887e299be63a | game/scripts/vscripts/modules/options/options.lua | game/scripts/vscripts/modules/options/options.lua | Options = Options or class({})
Options.Values = Options.Values or {}
Options.PreGameVotings = Options.PreGameVotings or {}
function Options:SetValue(name, value)
--if type(value) == "boolean" then value = value and 1 or 0 end
Options.Values[name] = value
PlayerTables:SetTableValue("options", name, value)
end
funct... | Options = Options or class({})
Options.Values = Options.Values or {}
Options.PreGameVotings = Options.PreGameVotings or {}
function Options:SetValue(name, value)
--if type(value) == "boolean" then value = value and 1 or 0 end
Options.Values[name] = value
PlayerTables:SetTableValue("options", name, value)
end
funct... | fix: ranked player team reassigning not updates team slots | fix: ranked player team reassigning not updates team slots
Fixes #456.
| Lua | mit | ark120202/aabs |
566c49bf314d6b77af07da8e53c91b015aeb5995 | model/dictionary.lua | model/dictionary.lua | ------------------------------------------------------------------------
--[[ Dictionary ]]--
-- Adapts a nn.LookupTable
-- Works on a WordTensor:context() view.
------------------------------------------------------------------------
local Dictionary, parent = torch.class("dp.Dictionary", "dp.Layer")
Dictionary.isDic... | ------------------------------------------------------------------------
--[[ Dictionary ]]--
-- Adapts a nn.LookupTable
-- Works on a WordTensor:context() view.
------------------------------------------------------------------------
local Dictionary, parent = torch.class("dp.Dictionary", "dp.Layer")
Dictionary.isDic... | fixed dp.Dictionary | fixed dp.Dictionary
| Lua | bsd-3-clause | eulerreich/dp,fiskio/dp,kracwarlock/dp,jnhwkim/dp,nicholas-leonard/dp,sagarwaghmare69/dp,rickyHong/dptorchLib |
748451fe8076376b6faafbae762583e37ca3e52a | nvim/lua/plugins.lua | nvim/lua/plugins.lua | local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd')
local g = vim.g -- a table to access global variables
cmd([[packadd packer.nvim]])
return require('packer').startup(function()
-- plugin management
use('wbthomason/packer.nvim')
-- treesitter (LSP)
use({ 'nvim-treesitter/nvim-treesitter', run = '... | local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd')
local g = vim.g -- a table to access global variables
cmd([[packadd packer.nvim]])
return require('packer').startup(function()
-- plugin management
use('wbthomason/packer.nvim')
-- treesitter (LSP)
use({ 'nvim-treesitter/nvim-treesitter', run = '... | fix: minor toggleterm tweak | fix: minor toggleterm tweak
| Lua | mit | drmohundro/dotfiles |
b1bfa0671597167d77b483c69fe7063c6044d067 | spec/integration/proxy/realip_spec.lua | spec/integration/proxy/realip_spec.lua | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local stringy = require "stringy"
local cjson = require "cjson"
local yaml = require "yaml"
local uuid = require "uuid"
local IO = require "kong.tools.io"
-- This is important to seed the UUID generator
uuid.seed()
lo... | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local stringy = require "stringy"
local cjson = require "cjson"
local yaml = require "yaml"
local uuid = require "uuid"
local IO = require "kong.tools.io"
-- This is important to seed the UUID generator
uuid.seed()
lo... | fix(tests) using the local nginx_tmp directory | fix(tests) using the local nginx_tmp directory
Former-commit-id: 415a90b0d86d0c69d6c8de44bf6206c53af3b029 | Lua | apache-2.0 | isdom/kong,Mashape/kong,rafael/kong,Kong/kong,akh00/kong,streamdataio/kong,ind9/kong,kyroskoh/kong,smanolache/kong,rafael/kong,streamdataio/kong,ejoncas/kong,beauli/kong,Kong/kong,ajayk/kong,vzaramel/kong,kyroskoh/kong,shiprabehera/kong,ejoncas/kong,vzaramel/kong,jerizm/kong,li-wl/kong,Kong/kong,ind9/kong,isdom/kong,xv... |
99095f5c163970693e92b6b98d63e20b83295b20 | base.lua | base.lua | base = {buyship = {}, mission = {}, trade = {}, talk = {}, visit = {}, info = {scrolly = 0, maxscrolly = 520}}
registerstate'base_mission'
registerstate'base_trade'
registerstate'base_buyship'
registerstate'base_talk'
registerstate'base_visit'
function base.load()
end
local rtime = 0
function base.update(dt)
if not ... | base = {buyship = {}, mission = {}, trade = {}, talk = {}, visit = {}, info = {scrolly = 0, maxscrolly = 520}}
registerstate'base_mission'
registerstate'base_trade'
registerstate'base_buyship'
registerstate'base_talk'
registerstate'base_visit'
function base.load()
end
local rtime = 0
function base.update(dt)
if not ... | Fixes mission menu | Fixes mission menu
| Lua | mit | gvx/space,gvx/space |
97d55d606bdf13130d010374a86346ba9ea2815c | 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 dir_sep = package.config:sub(1, 1)
-- Return path to root directory when run from `path`.
local function antipath(path)
local _... | 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 luacheck.stages.* modules being ignored by luacov | Fix luacheck.stages.* modules being ignored by luacov
| Lua | mit | xpol/luacheck,mpeterv/luacheck,mpeterv/luacheck,mpeterv/luacheck,xpol/luacheck,xpol/luacheck |
2b8a3a7a000baae3e084e9df07470c5280df87e8 | spec/parser.lua | spec/parser.lua | describe('Test the ini parser', function()
local ini = require 'ini'
setup(function()
end)
it('basic test', function()
assert.same(ini.parse('a_key = this is the value for this set'), {'a_key', 'this is the value for this set'})
assert.same(ini.parse('[this_is_a_section_test]'), {'this_... | describe('Test the parser', function()
local ini = require 'ini'
it('basic test', function()
assert.same({'a_key', 'this is the value for this set'}, ini.parse('a_key = this is the value for this set'))
assert.same({'this_is_a_section_test'}, ini.parse('[this_is_a_section_test]'))
asser... | Fix inverted expected and passed parameter | Fix inverted expected and passed parameter
| Lua | mit | lzubiaur/ini.lua |
dcb569ec01206f1048cceeee3ef3b7f9f71a1db0 | lds/allocator.lua | lds/allocator.lua | --[[
lds - LuaJIT Data Structures
@copyright Copyright (c) 2012-2014 Evan Wies. All rights reserved.
@license MIT License, see the COPYRIGHT file.
@module allocator
allocator_interface = {
allocate = function(self, n) -- allocates storage of n elements
deallocate = function(self, p) -- deallocates... | --[[
lds - LuaJIT Data Structures
@copyright Copyright (c) 2012-2014 Evan Wies. All rights reserved.
@license MIT License, see the COPYRIGHT file.
@module allocator
allocator_interface = {
allocate = function(self, n) -- allocates storage of n elements
deallocate = function(self, p) -- deallocates... | JemallocAllocator bug fixes | JemallocAllocator bug fixes
| Lua | mit | yurenyong123/lds,umegaya/lds,umegaya/lds,yurenyong123/lds |
6eddb6ef3250490f101de883a373c39afbecde0d | tools/utils/BPE.lua | tools/utils/BPE.lua | local unicode = require 'tools.utils.unicode'
local separators = require('tools.utils.separators')
local BPE = torch.class('BPE')
function BPE:__init(opt)
self.split = string.split
-- to be able to run the code without torch
if not self.split then
self.split = function(t, sep)
local fields = {}
... | local unicode = require 'tools.utils.unicode'
local separators = require('tools.utils.separators')
local BPE = torch.class('BPE')
function BPE:__init(opt)
self.split = string.split
-- to be able to run the code without torch
if not self.split then
self.split = function(t, sep)
local fields = {}
... | Fix typo in BPE.lua | Fix typo in BPE.lua
| Lua | mit | OpenNMT/OpenNMT,jungikim/OpenNMT,jungikim/OpenNMT,jsenellart-systran/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT |
e0b7b01048a2f8ba6e030211638f418b90b13970 | libs/handlers.lua | libs/handlers.lua | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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 o... | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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 o... | Fix race condition in publisher and make sure to sync up snapshot trees | Fix race condition in publisher and make sure to sync up snapshot trees
| Lua | apache-2.0 | squeek502/lit,luvit/lit,zhaozg/lit,james2doyle/lit,kidaa/lit,1yvT0s/lit |
33195882171850bfa3d7db8b233cdf3dd43864b2 | src_trunk/resources/gate-system/Chinatown_Gate.lua | src_trunk/resources/gate-system/Chinatown_Gate.lua | local objChinaGate = createObject(986, 2562.5, 1822, 10, 0, 0, 0)
exports.pool:allocateElement(objChinaGate)
local objChinaGate2 = createObject(986, 2562.5, 1826, 10, 0, 0, 0)
exports.pool:allocateElement(objChinaGate2)
local objChinaFence = createObject( 987, 2544.3037109375, 1840.0390625, 10, 0, 0, 0)
export... | local objChinaGate = createObject(986, 2566.45, 1822, 11, 0, 0, 180)
exports.pool:allocateElement(objChinaGate)
local objChinaGate2 = createObject(986, 2566.45, 1826, 11, 0, 0, 180)
exports.pool:allocateElement(objChinaGate2)
local objChinaFence = createObject( 987, 2544.3037109375, 1840.0390625, 10, 0, 0, 0)
... | "Fixed Yakuza HQ gate" #2 | "Fixed Yakuza HQ gate" #2
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@703 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
43eb6f2dee3c1e4550834858a31437f93245be4c | libs/luvit-websocket/libs/server.lua | libs/luvit-websocket/libs/server.lua | local net = require('net')
local b64 = require('./base64.lua')
local sha1 = require('./sha1.lua')
local table = require('table')
local math = require('math')
local bit = require('bit')
local table = require('table')
local string = require('string')
require('./table.lua')(table)
require('./string.lua')(string)
function... | local net = require('net')
local b64 = require('./base64.lua')
local sha1 = require('./sha1.lua')
local table = require('table')
local math = require('math')
local bit = require('bit')
local table = require('table')
local string = require('string')
require('./table.lua')(table)
require('./string.lua')(string)
function... | Fix a bug in luvit-websocket related to parsing long messages | Fix a bug in luvit-websocket related to parsing long messages
| Lua | bsd-2-clause | elflang/elf,elflang/elf,elflang/elf |
39bb6a8a58f1a67410f54ccbbc22b52569e8a4c9 | jwt.lua | jwt.lua | local encode = function(payload, key)
header = { typ='JWT', alg="HS256" }
segments = {
urlsafeB64Encode(jsonEncode(header)),
urlsafeB64Encode(jsonEncode(payload))
}
signing_input = table.concat(segments, ".")
signature = sign(signing_input, key)
segments[#segments+1] = urlsafeB64Encode(signature)
... | local jwt = {}
-- public
function jwt.encode(payload, key)
header = { typ='JWT', alg="HS256" }
segments = {
urlsafeB64Encode(jsonEncode(header)),
urlsafeB64Encode(jsonEncode(payload))
}
signing_input = table.concat(segments, ".")
signature = sign(signing_input, key)
segments[#segments+1] = urlsa... | Fixing reference again | Fixing reference again
| Lua | bsd-3-clause | robertbrook/lib,thejeshgn/lib |
4953c210b5ac915fc34499173a315bd0e166d511 | models/upload.lua | models/upload.lua | --- A basic lower upload API
--
module(..., package.seeall)
require 'posix'
local Model = require 'bamboo.model'
local Form = require 'bamboo.form'
local function calcNewFilename(dir, oldname)
-- separate the base name and extense name of a filename
local main, ext = oldname:match('^(.+)(%.%w+)$')
if not ext then ... | --- A basic lower upload API
--
module(..., package.seeall)
require 'posix'
local http = require 'lglib.http'
local Model = require 'bamboo.model'
local Form = require 'bamboo.form'
local function calcNewFilename(dir, oldname)
-- separate the base name and extense name of a filename
local main, ext = oldname:match... | fix a upload bug for IE6. | fix a upload bug for IE6.
in hmtl5 upload, the js should and already use encodeComponent to encode the filename;
but in html4 upload, the form doesn't encode it, so on server, bamboo should encode it once.
for html5 uploading, it is unneccessary.
Signed-off-by: Daogang Tang <6435653d2db08e7863743a16df53ecbb301fb4b0@g... | Lua | bsd-3-clause | daogangtang/bamboo,daogangtang/bamboo |
4abf23fe8ccd6c29e0f940cfbf39c231084828c3 | scen_edit/state/terrain_smooth_state.lua | scen_edit/state/terrain_smooth_state.lua | TerrainSmoothState = AbstractHeightmapEditingState:extends{}
function TerrainSmoothState:GetCommand(x, z, strength)
self.sigma = math.max(math.min(math.sqrt(math.sqrt(strength)) / 2, 1.5), 0.20)
return TerrainSmoothCommand({
x = x + self.size/2,
z = z + self.size/2,
size = self.size,
... | TerrainSmoothState = AbstractHeightmapEditingState:extends{}
function TerrainSmoothState:GetCommand(x, z, strength)
strength = math.abs(strength)
self.sigma = math.max(math.min(math.sqrt(math.sqrt(strength)) / 2, 1.5), 0.20)
return TerrainSmoothCommand({
x = x + self.size/2,
z = z + self.si... | fix RMB terrain smoothing error | fix RMB terrain smoothing error
| Lua | mit | Spring-SpringBoard/SpringBoard-Core,Spring-SpringBoard/SpringBoard-Core |
5e47af8773c16eccdee58b598f977bd1cedf8c72 | worldedit_commands/mark.lua | worldedit_commands/mark.lua | worldedit.marker1 = {}
worldedit.marker2 = {}
worldedit.marker_region = {}
--marks worldedit region position 1
worldedit.mark_pos1 = function(name)
local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name]
if pos1 ~= nil then
--make area stay loaded
local manip = minetest.get_voxel_manip()
mani... | worldedit.marker1 = {}
worldedit.marker2 = {}
worldedit.marker_region = {}
--marks worldedit region position 1
worldedit.mark_pos1 = function(name)
local pos1, pos2 = worldedit.pos1[name], worldedit.pos2[name]
if pos1 ~= nil then
--make area stay loaded
local manip = minetest.get_voxel_manip()
mani... | Make region marker entities withstand TNT explosions | Make region marker entities withstand TNT explosions
Also fixes a crash when detonating TNT near them though this is
not our fault and the proper fix is pending in minetest_game.
| Lua | agpl-3.0 | Uberi/Minetest-WorldEdit |
7c0f77383245802a21015ed3980aed81e253e869 | includes/common.lua | includes/common.lua | local pairs, tcon, rawset, date = pairs, table.concat, rawset, os.date
local base_path, lfs = base_path, lfs
local str_replace = seawolf.text.str_replace
function page_set_title(header_title, title)
if header_title then
if title == nil then title = header_title end
ophal.title = title
ophal.header_title ... | local pairs, tcon, rawset, date = pairs, table.concat, rawset, os.date
local base_path, lfs = base_path, lfs
local str_replace, is_file = seawolf.text.str_replace, seawolf.fs.is_file
function page_set_title(header_title, title)
if header_title then
if title == nil then title = header_title end
ophal.title = ... | Bug fix: get_css() and get_js() rendering missing files. | Bug fix: get_css() and get_js() rendering missing files.
| Lua | agpl-3.0 | ophal/core,coinzen/coinage,coinzen/coinage,coinzen/coinage,ophal/core,ophal/core |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.