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 |
|---|---|---|---|---|---|---|---|---|---|
ddb2c83a64fbf5ac2a3b0bd6060df62a28977ed0 | controller/FlangChip.lua | controller/FlangChip.lua | require("lang.base.flang_import")
FlangChip = {}
FlangChip.__index = FlangChip
function FlangChip:new(o)
if not o then
error("nil constructor!")
end
o = {
entity = o.entity,
source = o.source or "",
interpreter = nil,
is_running = o.is_running or false,
-- debug shit
-- optional s... | require("lang.base.flang_import")
FlangChip = {}
FlangChip.__index = FlangChip
function FlangChip:new(o)
if not o then
error("nil constructor!")
end
o = {
entity = o.entity,
source = o.source or "",
interpreter = nil,
is_running = o.is_running or false,
-- debug shit
-- optional s... | fixed table printing issue | fixed table printing issue
| Lua | mit | radixdev/flang |
02a9d0876614d0b882a5dba3cb1ea4701becda7f | share/lua/playlist/vimeo.lua | share/lua/playlist/vimeo.lua | --[[
$Id$
Copyright © 2009-2013 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
François Revol (revol@free.fr)
Pierre Ynard
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 S... | --[[
$Id$
Copyright © 2009-2013 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
François Revol (revol@free.fr)
Pierre Ynard
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 S... | vimeo.lua: fix video quality selection | vimeo.lua: fix video quality selection
Fixes #15778
| Lua | lgpl-2.1 | xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc,xkfz007/vlc |
77ef9215fbee22b5e29e3e847073d63564f0ad6c | patch.lua | patch.lua | --- @module patch
local patch = {}
local function shallow_copy(t)
local new = {}
for k, v in pairs(t) do
new[k] = v
end
setmetatable(new, getmetatable(t))
return new
end
local visit
local function merge(orig, diff, mutate)
if not next(diff) then -- empty diff
return orig, nil
end
... | --- @module patch
local patch = {}
local function shallow_copy(t)
local new = {}
for k, v in pairs(t) do
new[k] = v
end
setmetatable(new, getmetatable(t))
return new
end
local visit
local function merge(orig, diff, mutate)
if not next(diff) then -- empty diff
return orig, nil
end
local new = orig
if mut... | Backport fixes from private repo | Backport fixes from private repo
oops indentation
| Lua | mit | Alloyed/patch.lua |
71cadc8a0e3e8b662346ad61b7f80a79f0c26f21 | AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua | AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua | local AceGUI = LibStub("AceGUI-3.0")
--------------------------
-- Edit box --
--------------------------
--[[
Events :
OnTextChanged
OnEnterPressed
]]
do
local Type = "EditBox"
local Version = 8
local function OnAcquire(self)
self:SetDisabled(false)
self.showbutton = true
end
local function OnRel... | local AceGUI = LibStub("AceGUI-3.0")
--------------------------
-- Edit box --
--------------------------
--[[
Events :
OnTextChanged
OnEnterPressed
]]
do
local Type = "EditBox"
local Version = 9
local function OnAcquire(self)
self:SetDisabled(false)
self.showbutton = true
end
local function OnRel... | AceGUI-3.0: Fix EditBox alignment if the label is disabled. | AceGUI-3.0:
Fix EditBox alignment if the label is disabled.
Closes Ticket #13
git-svn-id: e768786be8df873dac9515156656ebbdc6d77160@720 5debad98-a965-4143-8383-f471b3509dcf
| Lua | bsd-3-clause | sarahgerweck/Ace3 |
fc06688c19a7ece6f9af70a3f10631c170f00955 | rules/regexp/upstream_spam_filters.lua | rules/regexp/upstream_spam_filters.lua | --[[
Copyright (c) 2011-2016, 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-2016, 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 upstream_spam_filters | Fix upstream_spam_filters | Lua | apache-2.0 | minaevmike/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,minaevmike/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspam... |
c4a95b2f5c11828970ecf266e910cd24e6df87ed | hostinfo/misc.lua | hostinfo/misc.lua | --[[
Copyright 2015 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | --[[
Copyright 2015 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | feat(hostinfo/misc): Added a reusable async spawn and data gather function in misc | feat(hostinfo/misc): Added a reusable async spawn and data gather function in misc
fix(hostinfo/misc): remove redundant fireonce from execfiletobuffers and rewrite asyncspawn to rely on execfiletobuffers
| Lua | apache-2.0 | kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent |
bdde6ae161db2b717574547c20f7095363ff5320 | kong/api/routes/kong.lua | kong/api/routes/kong.lua | local singletons = require "kong.singletons"
local conf_loader = require "kong.conf_loader"
local cjson = require "cjson"
local api_helpers = require "kong.api.api_helpers"
local Schema = require "kong.db.schema"
local Errors = require "kong.db.errors"
local process = require "ngx.process"
local kong = kong
local knod... | local singletons = require "kong.singletons"
local conf_loader = require "kong.conf_loader"
local cjson = require "cjson"
local api_helpers = require "kong.api.api_helpers"
local Schema = require "kong.db.schema"
local Errors = require "kong.db.errors"
local process = require "ngx.process"
local kong = kong
local knod... | fix(api) metadata represent infinity and non-numbers (#8833) | fix(api) metadata represent infinity and non-numbers (#8833)
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
611ccde8ff7a2a342255ed93b2a706208a6c545f | core/ext/mime_types.lua | core/ext/mime_types.lua | -- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE.
local textadept = _G.textadept
local locale = _G.locale
---
-- Handles file-specific settings.
module('textadept.mime_types', package.seeall)
-- Markdown:
-- ## Overview
--
-- Files can be recognized and associated with programming language lex... | -- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE.
local textadept = _G.textadept
local locale = _G.locale
---
-- Handles file-specific settings.
module('textadept.mime_types', package.seeall)
-- Markdown:
-- ## Overview
--
-- Files can be recognized and associated with programming language lex... | Fixed bug in core/ext/mime_types.lua caused during textadept.reset(). | Fixed bug in core/ext/mime_types.lua caused during textadept.reset().
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
4fedc05339b7f5cecd75a5e37f2519780452de0e | agents/monitoring/tests/schedule/init.lua | agents/monitoring/tests/schedule/init.lua | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | fix race condition in test, improve general test stability | fix race condition in test, improve general test stability
| Lua | apache-2.0 | kans/zirgo,kans/zirgo,kans/zirgo |
af3181f28049721f7445002b5dc84f6de37a9fc7 | tests/wow_api.lua | tests/wow_api.lua | local _G = getfenv(0)
local donothing = function() end
local frames = {} -- Stores globally created frames, and their internal properties.
local FrameClass = {} -- A class for creating frames.
FrameClass.methods = { "SetScript", "RegisterEvent", "UnregisterEvent", "UnregisterAllEvents", "Show", "Hide", "IsShown" }
f... | local _G = getfenv(0)
local donothing = function() end
local frames = {} -- Stores globally created frames, and their internal properties.
local FrameClass = {} -- A class for creating frames.
FrameClass.methods = { "SetScript", "RegisterEvent", "UnregisterEvent", "UnregisterAllEvents", "Show", "Hide", "IsShown" }
f... | Ace3 - tests: wow_api.lua bench fixes/additions: - Add GetFrameRate() - always returns 60 - Make hooksecurefunc() actually return the ORIGINAL return values, not those of the hook - Also set _G.arg1..argn in events - Also set _G.arg1 in OnUpdates | Ace3 - tests:
wow_api.lua bench fixes/additions:
- Add GetFrameRate() - always returns 60
- Make hooksecurefunc() actually return the ORIGINAL return values, not those of the hook
- Also set _G.arg1..argn in events
- Also set _G.arg1 in OnUpdates
git-svn-id: d324031ee001e5fbb202928c503a4bc65708d41c@320 5debad98-a965-4... | Lua | bsd-3-clause | sarahgerweck/Ace3 |
3e4abe2e41d8f77fa0c06f7df03291143fd1ade7 | SafeLuaAPI/generator.lua | SafeLuaAPI/generator.lua | ---
-- ## SafeLuaAPI compiler, generate the C code needed for the library
--
-- @author Demi Marie Obenour
-- @copyright 2016
-- @license MIT/X11
-- @module generator
local generator = {}
local require = require
local concat = table.concat
local assert = assert
local sub, find, match = string.sub, string.find, string.... | ---
-- ## SafeLuaAPI compiler, generate the C code needed for the library
--
-- @author Demi Marie Obenour
-- @copyright 2016
-- @license MIT/X11
-- @module generator
local generator = {}
local require = require
local concat = table.concat
local assert = assert
local sub, find, match = string.sub, string.find, string.... | Fix C prototype emitter | Fix C prototype emitter
Fix the C prototype emitter so that it did not try to read an argument that did
not exist.
| Lua | apache-2.0 | drbo/safer-lua-api,drbo/safer-lua-api |
46b0f0d9919ca086bc0b27694af87f569a6a9458 | src_trunk/resources/global/chat_globals.lua | src_trunk/resources/global/chat_globals.lua | oocState = 1
function getOOCState()
return oocState
end
function setOOCState(state)
oocState = state
end
function sendMessageToAdmins(message)
local players = exports.pool:getPoolElementsByType("player")
for k, thePlayer in ipairs(players) do
if (exports.global:isPlayerAdmin(thePlayer)) then
... | oocState = 1
function getOOCState()
return oocState
end
function setOOCState(state)
oocState = state
end
function sendMessageToAdmins(message)
local players = exports.pool:getPoolElementsByType("player")
for k, thePlayer in ipairs(players) do
if (exports.global:isPlayerAdmin(thePlayer)) then
... | chat fix | chat fix
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1704 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
0511421f2df3d2a015986de292b4e39af65ea298 | Module.lua | Module.lua | local Module = torch.class('nn.Module')
function Module:__init()
self.gradInput = torch.Tensor()
self.output = torch.Tensor()
end
function Module:parameters()
if self.weight and self.bias then
return {self.weight, self.bias}, {self.gradWeight, self.gradBias}
elseif self.weight then
return {sel... | local Module = torch.class('nn.Module')
function Module:__init()
self.gradInput = torch.Tensor()
self.output = torch.Tensor()
end
function Module:parameters()
if self.weight and self.bias then
return {self.weight, self.bias}, {self.gradWeight, self.gradBias}
elseif self.weight then
return {sel... | Attempt to fix getParameters. | Attempt to fix getParameters.
| Lua | bsd-3-clause | EnjoyHacking/nn,sagarwaghmare69/nn,GregSatre/nn,andreaskoepf/nn,diz-vara/nn,elbamos/nn,Djabbz/nn,davidBelanger/nn,kmul00/nn,hughperkins/nn,caldweln/nn,rickyHong/nn_lib_torch,mys007/nn,sbodenstein/nn,ominux/nn,soumith/nn,joeyhng/nn,apaszke/nn,jzbontar/nn,lvdmaaten/nn,adamlerer/nn,nicholas-leonard/nn,hery/nn,bartvm/nn,Ay... |
ac4ae88a32ef5028de804dee17de893963e240b6 | crop.lua | crop.lua | SILE.require("packages/cropmarks");
if not sheetsize then
local papersize = SILE.documentState.paperSize
local w = papersize[1] + 57
local h = papersize[2] + 57
sheetsize = w .. "pt x " .. h .. "pt"
end
local outcounter = 1
SILE.registerCommand("crop:header", function (options, content)
SILE.call("meta:sur... | local bleed = 3 * 2.83465
local trim = 10 * 2.83465
local len = trim - bleed * 2
SILE.require("packages/cropmarks")
-- Use our own version of SILE packgage
local outcounter = 1
local date = SILE.require("packages.date").exports
local outputMarks = function()
local page = SILE.getFrame("page")
SILE.outputter.rul... | Add hacked version of SILE's crop marks to dodge math bug | Add hacked version of SILE's crop marks to dodge math bug
| Lua | agpl-3.0 | alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile |
2a88978e96421c2537e1171eb4b483e778c7e489 | kong/resolver/access.lua | kong/resolver/access.lua | local url = require "socket.url"
local cache = require "kong.tools.database_cache"
local constants = require "kong.constants"
local responses = require "kong.tools.responses"
local _M = {}
local function get_backend_url(api)
local result = api.target_url
-- Checking if the target url ends with a final slash
lo... | local url = require "socket.url"
local cache = require "kong.tools.database_cache"
local constants = require "kong.constants"
local responses = require "kong.tools.responses"
local _M = {}
local function get_backend_url(api)
local result = api.target_url
-- Checking if the target url ends with a final slash
lo... | fix(resolver) handling edgecase resulting in wrong URI | fix(resolver) handling edgecase resulting in wrong URI
- If querying `/path/foo` with `strip_path=true`, then the resolver
would replace the URI with `//foo`.
| Lua | apache-2.0 | peterayeni/kong,AnsonSmith/kong,paritoshmmmec/kong,bbalu/kong,ChristopherBiscardi/kong,sbuettner/kong,wakermahmud/kong,Skyscanner/kong,skynet/kong,puug/kong,chourobin/kong,vmercierfr/kong |
7f133166ea3345718bc7e2e3ac2e2a92379187cc | orange/utils/headers.lua | orange/utils/headers.lua | --
-- Created by IntelliJ IDEA.
-- User: soul11201 <soul11201@gmail.com>
-- Date: 2017/4/26
-- Time: 20:50
-- To change this template use File | Settings | File Templates.
--
local handle_util = require("orange.utils.handle")
local extractor_util = require("orange.utils.extractor")
local _M = {}
local function set_h... | --
-- Created by IntelliJ IDEA.
-- User: soul11201 <soul11201@gmail.com>
-- Date: 2017/4/26
-- Time: 20:50
-- To change this template use File | Settings | File Templates.
--
local handle_util = require("orange.utils.handle")
local extractor_util = require("orange.utils.extractor")
local _M = {}
local function set_h... | refactor: headers.lua del log && fix info | refactor: headers.lua del log && fix info
| Lua | mit | sumory/orange,sumory/orange,sumory/orange |
c62b5524663ea5bccb4a0032ff0ee58bd971648c | src/lua-factory/sources/grl-metrolyrics.lua | src/lua-factory/sources/grl-metrolyrics.lua | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Victor Toso <me@victortoso.com>
*
* 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 Free Software Foundation; version 2.1 of
* the License, or (at your opt... | --[[
* Copyright (C) 2014 Victor Toso.
*
* Contact: Victor Toso <me@victortoso.com>
*
* 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 Free Software Foundation; version 2.1 of
* the License, or (at your opt... | metrolyrics: fix initial check up | metrolyrics: fix initial check up
Artist and Title must be non empty strings.
Return after callback.
https://bugzilla.gnome.org/show_bug.cgi?id=726677
| Lua | lgpl-2.1 | jasuarez/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins,MathieuDuponchelle/grilo-plugins,vrutkovs/grilo-plugins,vrutkovs/grilo-plugins,MathieuDuponchelle/grilo-plugins,MathieuDuponchelle/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,MathieuDuponchelle/grilo-plugin... |
21f7dd4fad6c053faa4e210b1cdacfef9d516e46 | app/views/language_select_box.lua | app/views/language_select_box.lua | local widget = require "widget"
local composer = require "composer"
local class = require "lib.middleclass"
local MessageBox = require "app.views.message_box"
local Button = require "app.views.button"
local LanguageSelectBox = class("LanguageSelectBox", MessageBox)
function LanguageSelectBox:selectLang... | local widget = require "widget"
local composer = require "composer"
local class = require "lib.middleclass"
local MessageBox = require "app.views.message_box"
local Button = require "app.views.button"
local LanguageSelectBox = class("LanguageSelectBox", MessageBox)
function LanguageSelectBox:selectLang... | Fix: preklad nadpisu volby jazyka | Fix: preklad nadpisu volby jazyka
| Lua | mit | jhysek/Minimal-Corona-SDK-Template,jhysek/Minimal-Corona-SDK-Template |
f1f5eaccd332c9622ca3387f94ecc7c0b16a009a | interface/flow/init.lua | interface/flow/init.lua | local lfs = require "lfs"
local log = require "log"
local configenv = require "configenv"
local options = require "options"
local errors = require "errors"
local Flow = require "flow.instance"
local Packet = require "flow.packet"
local mod = { flows = {} }
local env = configenv.env
function env.Flow(tbl)
if type(... | local lfs = require "lfs"
local log = require "log"
local configenv = require "configenv"
local options = require "options"
local errors = require "errors"
local Flow = require "flow.instance"
local Packet = require "flow.packet"
local mod = { flows = {} }
local env = configenv.env
function env.Flow(tbl)
if type(... | Always inherit instance packet (fixes cloning). | Always inherit instance packet (fixes cloning).
| Lua | mit | gallenmu/MoonGen,scholzd/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,dschoeffm/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,emmericp/MoonGen |
9e4b8a91384562e3baee724a52b72e30b1aa006d | modules/luci-mod-admin-full/luasrc/controller/admin/status.lua | modules/luci-mod-admin-full/luasrc/controller/admin/status.lua | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.status", package.seeall)
function index()
entry({"admin", "status"}, alias("admin", "status", "overview"), _("Status"), 20).ind... | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.status", package.seeall)
function index()
entry({"admin", "status"}, alias("admin", "status", "overview"), _("Status"), 20).ind... | luci-mod-admin-full: fix possible shell injection in bandwith status | luci-mod-admin-full: fix possible shell injection in bandwith status
Signed-off-by: Jo-Philipp Wich <bd73d35759d75cc215150d1bbc94f1b1078bee01@mein.io>
| Lua | apache-2.0 | openwrt-es/openwrt-luci,openwrt-es/openwrt-luci,remakeelectric/luci,tobiaswaldvogel/luci,wongsyrone/luci-1,openwrt/luci,artynet/luci,wongsyrone/luci-1,remakeelectric/luci,chris5560/openwrt-luci,hnyman/luci,rogerpueyo/luci,tobiaswaldvogel/luci,nmav/luci,Noltari/luci,openwrt/luci,kuoruan/luci,openwrt-es/openwrt-luci,rema... |
6e8098106f604b6e4c4d7a094dec737bdda24d9b | kong/cmd/migrations.lua | kong/cmd/migrations.lua | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local tty = require "kong.cmd.utils.tty"
local meta = require "kong.meta"
local conf_loader = require "kong.conf_loader"
local kong_global = require "kong.global"
local migrations_utils = require "kong.cmd.utils.migrations"
local lapp = [[
Usage: k... | local DB = require "kong.db"
local log = require "kong.cmd.utils.log"
local tty = require "kong.cmd.utils.tty"
local meta = require "kong.meta"
local conf_loader = require "kong.conf_loader"
local kong_global = require "kong.global"
local migrations_utils = require "kong.cmd.utils.migrations"
local lapp = [[
Usage: k... | fix(cli) do not ask for confirmation if nothing to reset | fix(cli) do not ask for confirmation if nothing to reset
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
05ceb9c0260c5019c59efc52a5d47fe8cb137d73 | hash.lua | hash.lua | local ffi = require 'ffi'
local tds = require 'tds.env'
local elem = require 'tds.elem'
local C = tds.C
local hash = {}
function hash.__new()
local self = C.tds_hash_new()
if self == nil then
error('unable to allocate hash')
end
self = ffi.cast('tds_hash&', self)
ffi.gc(self, C.tds_hash_free)
... | local ffi = require 'ffi'
local tds = require 'tds.env'
local elem = require 'tds.elem'
local C = tds.C
local hash = {}
function hash.__new()
local self = C.tds_hash_new()
if self == nil then
error('unable to allocate hash')
end
self = ffi.cast('tds_hash&', self)
ffi.gc(self, C.tds_hash_free)
... | hash: fixed issue of <pairs> (or other metatable members) seen as key values | hash: fixed issue of <pairs> (or other metatable members) seen as key values
| Lua | bsd-3-clause | torch/tds,jakezhaojb/tds,Moodstocks/tds,jakezhaojb/tds,jakezhaojb/tds,jakezhaojb/tds |
1a9fe9cd77e70674270101c9566efea6fd7c11bb | libs/web/luasrc/http.lua | libs/web/luasrc/http.lua | --[[
LuCI - HTTP-Interaction
Description:
HTTP-Header manipulator and form variable preprocessor
FileId:
$Id$
ToDo:
- Cookie handling
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lic... | --[[
LuCI - HTTP-Interaction
Description:
HTTP-Header manipulator and form variable preprocessor
FileId:
$Id$
ToDo:
- Cookie handling
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lic... | libs/web: Fixed bug where the environment table gets returned in case of an undefined variable | libs/web: Fixed bug where the environment table gets returned in case of an undefined variable
| Lua | apache-2.0 | Noltari/luci,db260179/openwrt-bpi-r1-luci,RedSnake64/openwrt-luci-packages,remakeelectric/luci,981213/luci-1,palmettos/cnLuCI,fkooman/luci,thesabbir/luci,shangjiyu/luci-with-extra,male-puppies/luci,Wedmer/luci,rogerpueyo/luci,oneru/luci,jorgifumi/luci,oyido/luci,oneru/luci,urueedi/luci,openwrt/luci,Wedmer/luci,remakeel... |
ab3b4404048aee45c5175ffd7be8a64a9ec6a167 | boss.lua | boss.lua | local mod = EPGP:NewModule("boss", "AceEvent-3.0", "AceTimer-3.0")
local Debug = LibStub("LibDebug-1.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local BOSSES = {
-- The Obsidian Sanctum
[28860] = "Sartharion",
-- Eye of Eternity
[28859] = "Malygos",
-- Naxxramas
[15956] = "Anub'Rekhan",
[1... | local mod = EPGP:NewModule("boss", "AceEvent-3.0", "AceTimer-3.0")
local Debug = LibStub("LibDebug-1.0")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local BOSSES = {
-- The Obsidian Sanctum
[28860] = "Sartharion",
-- Eye of Eternity
[28859] = "Malygos",
-- Naxxramas
[15956] = "Anub'Rekhan",
[1... | Add Ulduar bosses and new Vault of Archavon boss. This fixes issue 408. | Add Ulduar bosses and new Vault of Archavon boss. This fixes issue 408.
| Lua | bsd-3-clause | ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,ceason/epgp-tfatf,sheldon/epgp,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,hayword/tfatf_epgp |
a4d515aea8df2c3d9eef11e75d7588f8140bcbc7 | LibGuildStorage-1.0.lua | LibGuildStorage-1.0.lua | -- This library handles storing information in officer notes. It
-- streamlines and optimizes access to these notes. The API is as
-- follows:
--
-- GetNote(name): Returns the officer note of member 'name'
--
-- SetNote(name, note): Sets the officer note of member 'name' to
-- 'note'
--
-- GetGuildInfo(): Returns the g... | -- This library handles storing information in officer notes. It
-- streamlines and optimizes access to these notes. The API is as
-- follows:
--
-- GetNote(name): Returns the officer note of member 'name'
--
-- SetNote(name, note): Sets the officer note of member 'name' to
-- 'note'
--
-- GetGuildInfo(): Returns the g... | Small bug fix for PLAYER_GUILD_UPDATE event. We do not want to stop updating the cache when we get this event unless we left the guild. | Small bug fix for PLAYER_GUILD_UPDATE event. We do not want to stop
updating the cache when we get this event unless we left the guild.
| Lua | bsd-3-clause | protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp,ceason/epgp-tfatf,ceason/epgp-tfatf,protomech/epgp-dkp-reloaded,hayword/tfatf_epgp,sheldon/epgp |
faec0ac3165fcf6d59586dcf7d166606acaaf247 | nyagos.d/suffix.lua | nyagos.d/suffix.lua | share._suffixes={}
share._setsuffix = function(suffix,cmdline)
local suffix=string.lower(suffix)
if string.sub(suffix,1,1)=='.' then
suffix = string.sub(suffix,2)
end
if not share._suffixes[suffix] then
local orgpathext = nyagos.getenv("PATHEXT")
local newext="."..suffi... | share._suffixes={}
share._setsuffix = function(suffix,cmdline)
local suffix=string.lower(suffix)
if string.sub(suffix,1,1)=='.' then
suffix = string.sub(suffix,2)
end
if not share._suffixes[suffix] then
local orgpathext = nyagos.getenv("PATHEXT")
local newext="."..suffi... | suffix.lua supports .wsf | suffix.lua supports .wsf
| Lua | bsd-3-clause | hattya/nyagos,hattya/nyagos,tyochiai/nyagos,tsuyoshicho/nyagos,nocd5/nyagos,hattya/nyagos,zetamatta/nyagos |
d3cee5b5fec48a8261c2811e41a7f3d41a71fec1 | test/unit/worksheet/test_write_dimension.lua | test/unit/worksheet/test_write_dimension.lua | ----
-- Tests for the xlsxwriter.lua worksheet class.
--
-- Copyright 2014, John McNamara, jmcnamara@cpan.org
--
require "Test.More"
plan(10)
----
-- Tests setup.
--
local expected
local got
local caption
local Worksheet = require "xlsxwriter.worksheet"
local worksheet
local cell_ref
----
-- 1. Test the _write_dime... | ----
-- Tests for the xlsxwriter.lua worksheet class.
--
-- Copyright 2014, John McNamara, jmcnamara@cpan.org
--
require "Test.More"
plan(10)
----
-- Tests setup.
--
local expected
local got
local caption
local Worksheet = require "xlsxwriter.worksheet"
local Sharedstrings = require "xlsxwriter.sharedstrings"
lo... | Fix tests with string table. | Fix tests with string table.
| Lua | mit | moteus/xlsxwriter.lua,moteus/xlsxwriter.lua,moteus/xlsxwriter.lua,moteus/xlsxwriter.lua |
ae70b6bf21b0a159f442b9ec035db51a38428940 | mumbledj/mumbledj.lua | mumbledj/mumbledj.lua | -------------------------
-- MumbleDJ --
-- By Matthieu Grieger --
------------------------------------------------------------------
-- mumbledj.lua --
-- The main file which defines most of MumbleDJ's behavior. All --
-- commands are found here, and most of t... | -------------------------
-- MumbleDJ --
-- By Matthieu Grieger --
------------------------------------------------------------------
-- mumbledj.lua --
-- The main file which defines most of MumbleDJ's behavior. All --
-- commands are found here, and most of t... | Fixed a crash related to messages | Fixed a crash related to messages
| Lua | mit | fiveofeight/mumbledj,pzduniak/mumbledj,RichardNysater/mumbledj,Gamah/mumbledj,MrKrucible/mumbledj,r3valkyrie/mumbledj,GabrielPlassard/mumbledj,matthieugrieger/mumbledj |
28a7334f5c02ea1468ebd75254bb03cd38abcec2 | src/xenia/gpu/vulkan/premake5.lua | src/xenia/gpu/vulkan/premake5.lua | project_root = "../../../.."
include(project_root.."/tools/build")
group("src")
project("xenia-gpu-vulkan")
uuid("717590b4-f579-4162-8f23-0624e87d6cca")
kind("StaticLib")
language("C++")
links({
"volk",
"xenia-base",
"xenia-gpu",
"xenia-ui",
"xenia-ui-spirv",
"xenia-ui-vulkan",
"xxh... | project_root = "../../../.."
include(project_root.."/tools/build")
group("src")
project("xenia-gpu-vulkan")
uuid("717590b4-f579-4162-8f23-0624e87d6cca")
kind("StaticLib")
language("C++")
links({
"volk",
"xenia-base",
"xenia-gpu",
"xenia-ui",
"xenia-ui-spirv",
"xenia-ui-vulkan",
"xxh... | [Vulkan] Fix missing aes_128 link for trace viewer/dumper. | [Vulkan] Fix missing aes_128 link for trace viewer/dumper.
| Lua | bsd-3-clause | sephiroth99/xenia,sephiroth99/xenia,sephiroth99/xenia |
6b73779b6a6c1d35b8b22d79bedc8f13390c5d44 | extensions/battery/init.lua | extensions/battery/init.lua | --- === hs.battery ===
---
--- Battery/power information
--- All functions here may return nil, if the information requested is not available.
---
--- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/).
local module = require("hs.battery.i... | --- === hs.battery ===
---
--- Battery/power information
--- All functions here may return nil, if the information requested is not available.
---
--- This module is based primarily on code from the previous incarnation of Mjolnir by [Steven Degutis](https://github.com/sdegutis/).
local module = require("hs.battery.i... | CL: *BugFix* - getAll should ignore non-functions | CL: *BugFix* - getAll should ignore non-functions | Lua | mit | CommandPost/CommandPost-App,Hammerspoon/hammerspoon,cmsj/hammerspoon,Habbie/hammerspoon,cmsj/hammerspoon,Habbie/hammerspoon,asmagill/hammerspoon,cmsj/hammerspoon,cmsj/hammerspoon,Habbie/hammerspoon,Habbie/hammerspoon,Hammerspoon/hammerspoon,asmagill/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,bradparks... |
6ba38be621a44599c85a79940fc9ec1895aa32b9 | PPAndroid/assets/Core.lua | PPAndroid/assets/Core.lua |
cfuns = require("ffi")
cfuns.cdef[[
typedef struct { float x; float y; } vec2f;
typedef struct { float x; float y; float z; } vec3f;
typedef void (*touchHandler) (int x, int y, int pointerIndex);
typedef void (*tapHandler) (int x, int y);
typedef struct
{
vec3f acceleration;
vec3f gyroscope;
} ... |
cfuns = require("ffi")
cfuns.cdef[[
typedef struct { float x; float y; } vec2f;
typedef struct { float x; float y; float z; } vec3f;
typedef void (*touchHandler) (int x, int y, int pointerIndex);
typedef void (*tapHandler) (int x, int y);
typedef struct
{
vec3f acceleration;
vec3f gyroscope;
} ... | Fix for vector math | Fix for vector math
| Lua | apache-2.0 | ponpal/ProjectParty-for-Android,ponpal/ProjectParty-for-Android,ponpal/ProjectParty-for-Android |
36c2e212f4e5aa3f6fda901a0ee20b8da44a73cd | otherplatforms/emscripten-webgl/premake4.lua | otherplatforms/emscripten-webgl/premake4.lua | ------------------------------------------------------------------
-- premake 4 Pyros3D solution
------------------------------------------------------------------
solution "Pyros3D"
-- Make Directories
os.mkdir("bin");
os.mkdir("build");
os.mkdir("include");
os.mkdir("libs");
newoption {
... | ------------------------------------------------------------------
-- premake 4 Pyros3D solution
------------------------------------------------------------------
solution "Pyros3D"
-- Make Directories
os.mkdir("bin");
os.mkdir("build");
os.mkdir("include");
os.mkdir("libs");
newoption {
... | Fixed emscripten premake file | Fixed emscripten premake file
| Lua | mit | Peixinho/Pyros3D,Peixinho/Pyros3D,Peixinho/Pyros3D |
e30b563a3b75604cb111a98ecdde8b0f29201885 | Peripherals/Keyboard.lua | Peripherals/Keyboard.lua | local events = require("Engine.events")
return function(config) --A function that creates a new Keyboard peripheral.
local OSX = (love.system.getOS() == "OS X")
if config._SpaceWalkthrough then
events.register("love:keypressed",function(key,sc,isrepeat)
if key == "space" then
events.trigger("lo... | local events = require("Engine.events")
return function(config) --A function that creates a new Keyboard peripheral.
local OSX = (love.system.getOS() == "OS X")
if config._SpaceWalkthrough then
events.register("love:keypressed",function(key,sc,isrepeat)
if key == "space" then
events.trigger("lo... | fixed if conditions | fixed if conditions | Lua | mit | RamiLego4Game/LIKO-12 |
98973775e85db5fd2a49ddeb1bcbce949a35f43b | src/rxbinderutils/src/Shared/RxBinderUtils.lua | src/rxbinderutils/src/Shared/RxBinderUtils.lua | --[=[
Utility methods to observe bound objects on instances. This is what makes the Rx library with
binders really good.
:::info
Using this API, you can query most game-state in very efficient ways, and react to the world
changing in real-time. This makes programming streaming and other APIs really nice.
:::
@... | --[=[
Utility methods to observe bound objects on instances. This is what makes the Rx library with
binders really good.
:::info
Using this API, you can query most game-state in very efficient ways, and react to the world
changing in real-time. This makes programming streaming and other APIs really nice.
:::
@... | fix: Better errors when not passing a binder into RxBinderUtils | fix: Better errors when not passing a binder into RxBinderUtils
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
035b3b770a0e1d2e3dcad40ddadd04a15d81dce7 | src/lunajson/encode.lua | src/lunajson/encode.lua | local byte = string.byte
local find = string.find
local format = string.format
local gsub = string.gsub
local match = string.match
local rawequal = rawequal
local tostring = tostring
local pairs = pairs
local type = type
local function encode(v, nullv)
local i = 1
local builder = {}
local visited = {}
local funct... | local byte = string.byte
local find = string.find
local format = string.format
local gsub = string.gsub
local match = string.match
local rawequal = rawequal
local tostring = tostring
local pairs = pairs
local type = type
local function encode(v, nullv)
local i = 1
local builder = {}
local visited = {}
local funct... | fix loop detection | fix loop detection
| Lua | mit | bigcrush/lunajson,tst2005/lunajson,csteddy/lunajson,csteddy/lunajson,grafi-tt/lunajson,tst2005/lunajson,grafi-tt/lunajson,grafi-tt/lunajson,bigcrush/lunajson |
41dcd79c05c611f95d5cb0bd8af8882f49ef735a | applications/luci-vnstat/luasrc/model/cbi/vnstat.lua | applications/luci-vnstat/luasrc/model/cbi/vnstat.lua | --[[
LuCI - Lua Configuration Interface
Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
loc... | --[[
LuCI - Lua Configuration Interface
Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
loc... | applications/luci-vnstat: fix crash if dbdir is defined but not existing yet | applications/luci-vnstat: fix crash if dbdir is defined but not existing yet
| Lua | apache-2.0 | deepak78/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci |
b0d1f6bb0d2fe3164f412cfdbc792e8798063c93 | app/object.lua | app/object.lua | --[[
file: app/object.lua
desc: Manage object storage
]]
--localize luawa
local database, user = luawa.database, luawa.user
--oxy.object
local object = {
cache = {}
}
--new object 'factory'
function object:new( type )
if not oxy.config.objects[type] then return false end
--create new object, se... | --[[
file: app/object.lua
desc: Manage object storage
]]
--localize luawa
local database, user = luawa.database, luawa.user
--oxy.object
local object = {}
--new object 'factory'
function object:new( type )
if not oxy.config.objects[type] then return false end
--create new object, set type
local... | Add object:_edit and object:_delete helper functions, remove object cache (bug on updates as not shared between workers) | Add object:_edit and object:_delete helper functions, remove object cache (bug on updates as not shared between workers)
| Lua | mit | Oxygem/Oxycore,Oxygem/Oxycore,Oxygem/Oxycore |
7446da88a7f9e0feb5d21f55e061673d26cbd701 | spec/area/surface_spec.lua | spec/area/surface_spec.lua | require 'spec/defines'
require 'stdlib/area/surface'
describe('Surface Spec', function()
describe('Surface lookups', function()
it('should work with no parameters', function()
assert.same({ }, Surface.lookup())
end)
it('should work with string parameters', function()
... | require 'spec/defines'
require 'stdlib/area/surface'
describe('Surface Spec', function()
describe('Surface lookups', function()
it('should work with no parameters', function()
assert.same({ }, Surface.lookup())
end)
it('should work with string parameters', function()
... | Fix surface spec test to correctly mock factorio objects | Fix surface spec test to correctly mock factorio objects
| Lua | isc | Afforess/Factorio-Stdlib |
76ff4b7dcdbd0ee9300fffc179af50d992b59b01 | deployment_scripts/puppet/modules/lma_collector/files/plugins/filters/influxdb_accumulator.lua | deployment_scripts/puppet/modules/lma_collector/files/plugins/filters/influxdb_accumulator.lua | -- Copyright 2015 Mirantis, 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 ... | -- Copyright 2015 Mirantis, 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 ... | Prevent empty tag names and values for InfluxDB | Prevent empty tag names and values for InfluxDB
Change-Id: Ide0a52d63f5e6385997455e81899f76f8b5a0829
Closes-Bug: #1572631
| Lua | apache-2.0 | stackforge/fuel-plugin-lma-collector,stackforge/fuel-plugin-lma-collector,stackforge/fuel-plugin-lma-collector,stackforge/fuel-plugin-lma-collector,stackforge/fuel-plugin-lma-collector |
7207dfe4aa31ed3396789a48f516e27fc70c703e | lua/entities/gmod_wire_expression2/core/http.lua | lua/entities/gmod_wire_expression2/core/http.lua | /*
Simple HTTP Extension
(McLovin)
*/
E2Lib.RegisterExtension( "http", true )
local cvar_delay = CreateConVar( "wire_expression2_http_delay", "3", FCVAR_ARCHIVE )
local cvar_timeout = CreateConVar( "wire_expression2_http_timeout", "15", FCVAR_ARCHIVE )
local requests = {}
local run_on = {
clk = 0... | /*
Simple HTTP Extension
(McLovin)
*/
E2Lib.RegisterExtension( "http", true )
local cvar_delay = CreateConVar( "wire_expression2_http_delay", "3", FCVAR_ARCHIVE )
local cvar_timeout = CreateConVar( "wire_expression2_http_timeout", "15", FCVAR_ARCHIVE )
local requests = {}
local run_on = {
clk = 0... | [E2] http.lua: Fixed the new line character to be compatible with lua in order to prevent future problems with fileWrite(). | [E2] http.lua: Fixed the new line character to be compatible with lua in order to prevent future problems with fileWrite().
| Lua | apache-2.0 | mitterdoo/wire,thegrb93/wire,rafradek/wire,dvdvideo1234/wire,CaptainPRICE/wire,bigdogmat/wire,notcake/wire,NezzKryptic/Wire,immibis/wiremod,mms92/wire,Grocel/wire,Python1320/wire,garrysmodlua/wire,plinkopenguin/wiremod,sammyt291/wire,wiremod/wire |
4c4935d32c28267f6a7a10853d32a8e76055445f | helper.lua | helper.lua | -- Helper Module
--
local setup = require "setup"
local dbmodule = require "dbmodule"
local config = require "config"
scriptdb = config.scriptdb
local helper = {}
helper.mainMenu = {"Help (h)", "Initial Setup (i)", "Search by Name of Script (s)", "Search by Category (c)", "Create script.db backup (b)", "Exit (q)"}
fu... | -- Helper Module
--
local setup = require "setup"
local dbmodule = require "dbmodule"
local config = require "config"
scriptdb = config.scriptdb
local helper = {}
helper.mainMenu = {"Help (h)", "Initial Setup (i)", "Search by Name of Script (s)", "Search by Category (c)", "Create script.db backup (b)", "Exit (q)"}
fu... | Fixing double string | Fixing double string
| Lua | apache-2.0 | JKO/nsearch,JKO/nsearch |
a56be783deb188f24590a104038ccef9e0472e8d | tests/base/test_http.lua | tests/base/test_http.lua | --
-- tests/base/test_http.lua
-- Tests the http API
-- Copyright (c) 2016 Jason Perkins and the Premake project
--
local p = premake
-- only declare the suite as a test if http.get is an existing method.
local suite = {}
if http.get ~= nil then
suite = test.declare("premake_http")
end
function suite.http_ge... | --
-- tests/base/test_http.lua
-- Tests the http API
-- Copyright (c) 2016 Jason Perkins and the Premake project
--
local p = premake
-- only declare the suite as a test if http.get is an existing method.
local suite = {}
if http.get ~= nil then
suite = test.declare("premake_http")
end
function suite.http_ge... | Disable redirect test until HTTP endpoint is fixed | Disable redirect test until HTTP endpoint is fixed
| Lua | bsd-3-clause | starkos/premake-core,premake/premake-core,starkos/premake-core,noresources/premake-core,dcourtois/premake-core,dcourtois/premake-core,premake/premake-core,starkos/premake-core,dcourtois/premake-core,premake/premake-core,noresources/premake-core,starkos/premake-core,starkos/premake-core,noresources/premake-core,starkos/... |
9fcb71c3db72495966e5ad305e81b8ef2b2ecbef | lua/zbe/keyfix.lua | lua/zbe/keyfix.lua | return {
name = "Home/End modified",
description = "Modified Ctrl-Left and Ctrl-right to behave as Home/End.",
author = "Paul Kulchenko",
version = 0.1,
onRegister = function()
end,
onEditorCharAdded = function(self, editor, event)
end,
onEditorFocusSet = function(self, editor, event)
end,
--[... |
return {
name = "Zemacsy",
description = "Xcode and Emacs type keybindings",
author = "Sean Levin",
version = 0.1,
onRegister = function()
end,
onEditorCharAdded = function(self, editor, event)
end,
onEditorFocusSet = function(self, editor, event)
end,
--[[
This page is helpful for com... | fix version info | fix version info
| Lua | unlicense | slevin/experiements,slevin/experiements,slevin/experiements,slevin/experiements,slevin/experiements,slevin/experiements,slevin/experiements,slevin/experiements,slevin/experiements |
ea385663779cd523c0921b230a4b7056a8b82e50 | scripts/ovale_items.lua | scripts/ovale_items.lua | local _, Ovale = ...
local OvaleScripts = Ovale.OvaleScripts
do
local name = "ovale_items"
local desc = "[5.4.7] Ovale: Items & Trinkets"
local code = [[
###
### Potions (Mists of Pandaria only)
###
Define(jade_serpent_potion 76093)
Define(jade_serpent_potion_buff 105702)
SpellInfo(jade_serpent_potion_buff durati... | local _, Ovale = ...
local OvaleScripts = Ovale.OvaleScripts
do
local name = "ovale_items"
local desc = "[5.4.7] Ovale: Items & Trinkets"
local code = [[
###
### Potions (Mists of Pandaria only)
###
Define(jade_serpent_potion 76093)
Define(jade_serpent_potion_buff 105702)
SpellInfo(jade_serpent_potion_buff durati... | Fix spell IDs for trinket proc buffs. | Fix spell IDs for trinket proc buffs.
This corrects the lists for intellect, strength and crit rating.
git-svn-id: b2bb544abab4b09d60f88077ac82407cb244c9c9@1349 d5049fe3-3747-40f7-a4b5-f36d6801af5f
| Lua | mit | Xeltor/ovale,eXhausted/Ovale,ultijlam/ovale,ultijlam/ovale,ultijlam/ovale,eXhausted/Ovale,eXhausted/Ovale |
9aa765434d87037ed872ce0db8ce342af4589c1a | extensions/image/init.lua | extensions/image/init.lua | local module = {
--- === hs.image ===
---
--- A module for capturing and manipulating image objects from other modules for use with hs.drawing.
---
}
local fnutils = require("hs.fnutils")
local module = require("hs.image.internal")
local objectMT = hs.getObjectMetatable("hs.image")
require("hs.drawing.color") -- ... | --- === hs.image ===
---
--- A module for capturing and manipulating image objects from other modules for use with hs.drawing.
---
local module = require("hs.image.internal")
local objectMT = hs.getObjectMetatable("hs.image")
require("hs.drawing.color") -- make sure that the conversion helpers required to support col... | Cleanup hs.image | Cleanup hs.image
- Fixed @stickler-ci errors
| Lua | mit | cmsj/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,Hammerspoon/hammerspoon,CommandPost/CommandPost-App,Habbie/hammerspoon,Hammerspoon/hammerspoon,Habbie/hammerspoon,Habbie/hammerspoon,Habbie/hammerspoon,CommandPost/CommandPost-App,asmagill/hammerspoon,asmagill/hammerspoon,cmsj/hammerspoon,Hammerspoon/ham... |
f2e878dbe784a0f81bca5ae4d9b51c62a16f6b2e | tests/lua/res1.lua | tests/lua/res1.lua | -- Create names for commonly used constants
local Or = Const("or")
local Not = Const("not")
local False = Const("false")
function init_env(env)
-- Populate environment when declarations used by resolve_macro.
-- This is a 'fake' environment used only for testing.
local a = Local("a", Prop)
local b ... | -- Create names for commonly used constants
local Or = Const("or")
local Not = Const("not")
local False = Const("false")
function init_env(env)
-- Populate environment when declarations used by resolve_macro.
-- This is a 'fake' environment used only for testing.
local a = Local("a", Prop)
local b ... | fix(tests/lua/res1): adjust test to recent modifications | fix(tests/lua/res1): adjust test to recent modifications
| Lua | apache-2.0 | fpvandoorn/lean,leodemoura/lean,sp3ctum/lean,fgdorais/lean,soonhokong/lean-windows,fpvandoorn/lean2,soonhokong/lean-osx,c-cube/lean,leanprover-community/lean,johoelzl/lean,fgdorais/lean,eigengrau/lean,avigad/lean,leanprover-community/lean,eigengrau/lean,digama0/lean,sp3ctum/lean,johoelzl/lean,soonhokong/lean-osx,eigeng... |
7a7ce8947895423b0e7456e335c9a55a912023bb | src/extensions/cp/apple/finalcutpro/browser/Columns.lua | src/extensions/cp/apple/finalcutpro/browser/Columns.lua | --- === cp.apple.finalcutpro.browser.Columns ===
---
--- Final Cut Pro Browser List View Columns
local require = require
--local log = require("hs.logger").new("Columns")
local ax = require("hs._asm.axuielement")
local geometry = require("hs.geometry")
... | --- === cp.apple.finalcutpro.browser.Columns ===
---
--- Final Cut Pro Browser List View Columns
local require = require
--local log = require("hs.logger").new("Columns")
local ax = require("hs._asm.axuielement")
local geometry = require("hs.geometry")
... | #1701 | #1701
- Fixed a bug where `cp.apple.finalcutpro.browser.Columns:show()` would
fail if you had a really massive amount of content in list view.
- Closes #1701
| Lua | mit | fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks |
68ea2078c736761a3e58de8bc71dd5c0ba690f27 | share/lua/website/spiegel.lua | share/lua/website/spiegel.lua |
-- libquvi-scripts
-- Copyright (C) 2010-2011,2013 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 t... |
-- libquvi-scripts
-- Copyright (C) 2010-2011,2013 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 t... | FIX: website/spiegel.lua: choose_default | FIX: website/spiegel.lua: choose_default
Choosing to use the "lowest quality" stream (3gp) as the 'default'
stream would cause HTTP/404 when the stream was accessed. Although this
stream is listed among those available ones, it appears to be missing
for most videos (if not all).
Spiegel.choose_default:
Return the f... | Lua | agpl-3.0 | legatvs/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts |
615b4b66575a5b74a0608864f97c9a0f34ce3979 | Modules/Utility/os.lua | Modules/Utility/os.lua | -- to use: local os = require(this_script)
-- @author Narrev
-- Please message Narrev (on Roblox) for any functionality you would like added
--[[
This adds os.date back to Roblox! It functions just like Lua's built-in os.date, but with a few additions.
Note: Padding can be toggled by inserting a '_' like so: os.date... | -- to use: local os = require(this_script)
-- @author Narrev
-- Please message Narrev (on Roblox) for any functionality you would like added
--[[
This adds os.date back to Roblox! It functions just like Lua's built-in os.date, but with a few additions.
Note: Padding can be toggled by inserting a '_' like so: os.date... | Re-added compatibility to "*t" and no arguments | Re-added compatibility to "*t" and no arguments
Also fixed erroring for invalid strings | Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
495ae59c054c7f62fff84abcc3504cac2f2d0c66 | OS/CartOS/terminal.lua | OS/CartOS/terminal.lua | --The terminal !--
local PATH = "C://Programs/;"
local curdrive, curdir, curpath = "C", "/", "C://"
local function nextPath(p)
if p:sub(-1)~=";" then p=p..";" end
return p:gmatch("(.-);")
end
printCursor(1,1,1)
color(9) print("LIKO-12 V0.6.0 DEV")
color(8) print("CartOS DEV B1")
flip() sleep(0.5)
color(7) print("... | --The terminal !--
local PATH = "C://Programs/;"
local curdrive, curdir, curpath = "C", "/", "C:///"
local function nextPath(p)
if p:sub(-1)~=";" then p=p..";" end
return p:gmatch("(.-);")
end
printCursor(1,1,1)
color(9) print("LIKO-12 V0.6.0 DEV")
color(8) print("CartOS DEV B1")
flip() sleep(0.5)
color(7) print(... | Bugfix | Bugfix | Lua | mit | RamiLego4Game/LIKO-12 |
ca6d5134983a1f60e89cc11cfe49506773051956 | check/plugin.lua | check/plugin.lua | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | --[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | Fix: add unix executable filter to agent.plugin targets | Fix: add unix executable filter to agent.plugin targets
Only return agent.plugin files available that match:
* files only
* executable on unix
| Lua | apache-2.0 | kaustavha/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-m... |
9dd10787dc56c2a01d8ded687f5b94855e13b646 | apicast/src/module.lua | apicast/src/module.lua | local setmetatable = setmetatable
local pcall = pcall
local require = require
local pairs = pairs
local _M = {
_VERSION = '0.1'
}
local mt = { __index = _M }
function _M.new(name)
name = name or os.getenv('APICAST_MODULE') or 'apicast'
ngx.log(ngx.DEBUG, 'init plugin ', name)
return setmetatable({
name ... | local setmetatable = setmetatable
local pcall = pcall
local require = require
local pairs = pairs
local _M = {
_VERSION = '0.1'
}
local mt = { __index = _M }
function _M.new(name)
name = name or os.getenv('APICAST_MODULE') or 'apicast'
ngx.log(ngx.DEBUG, 'init plugin ', name)
return setmetatable({
name ... | cache modules | cache modules
prevents weird bug when require would not return proper module
| Lua | mit | 3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/docker-gateway,3scale/apicast |
a2cbd72c3cda553a3bbafb0f20f2e676cb3cac3a | onmt/Model.lua | onmt/Model.lua | --[[ Generic Model class. ]]
local Model = torch.class('Model')
local options = {
{
'-model_type', 'seq2seq',
[[Type of model to train. This option impacts all options choices.]],
{
enum = {'lm', 'seq2seq', 'seqtagger'},
structural = 0
}
},
{
'-param_init', 0.1,
[[Parameters a... | --[[ Generic Model class. ]]
local Model = torch.class('Model')
local options = {
{
'-model_type', 'seq2seq',
[[Type of model to train. This option impacts all options choices.]],
{
enum = {'lm', 'seq2seq', 'seqtagger'},
structural = 0
}
},
{
'-param_init', 0.1,
[[Parameters a... | Do not store empty parameters set | Do not store empty parameters set
Fixes #248.
| Lua | mit | da03/OpenNMT,jsenellart/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,jungikim/OpenNMT,OpenNMT/OpenNMT,OpenNMT/OpenNMT,jungikim/OpenNMT,jsenellart-systran/OpenNMT,jsenellart/OpenNMT,jsenellart-systran/OpenNMT,jungikim/OpenNMT,monsieurzhang/OpenNMT,monsieurzhang/OpenNMT,jsenellart/OpenNMT,jsene... |
40cee997006a976acdf89dc610d8ac15232c3645 | worldedit_commands/cuboid.lua | worldedit_commands/cuboid.lua | dofile(minetest.get_modpath("worldedit_commands") .. "/cuboidapi.lua")
minetest.register_chatcommand("/outset", {
params = "<amount> [h|v]",
description = "outset the selection",
privs = {worldedit=true},
func = function(name, param)
local find, _, amount, dir = param:find("^(%d+)[%s+]?([hv]?)$")
if find =... | dofile(minetest.get_modpath("worldedit_commands") .. "/cuboidapi.lua")
minetest.register_chatcommand("/outset", {
params = "<amount> [h|v]",
description = "outset the selection",
privs = {worldedit=true},
func = function(name, param)
local find, _, amount, dir = param:find("^(%d+)[%s+]?([hv]?)$")
if find =... | Fix a crash that happened when trying to shift the cuboid using relative direction while looking straight up or down | Fix a crash that happened when trying to shift the cuboid using relative direction while looking straight up or down
| Lua | agpl-3.0 | Uberi/Minetest-WorldEdit |
27c1e6d2d8cc6f291ae9e7852d6dd9a712f33dae | src/lib/hardware/pci.lua | src/lib/hardware/pci.lua | module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
require("lib.hardware.pci_h")
--- ### Hardware device information
devices = {}
--- Array of all supported hardware devices.
---
--- Each entry is a "device info" table with these attributes:
---
--- * `pciaddress... | module(...,package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
require("lib.hardware.pci_h")
--- ### Hardware device information
devices = {}
--- Array of all supported hardware devices.
---
--- Each entry is a "device info" table with these attributes:
---
--- * `pciaddress... | lib.pci: Support short/canonical ("01:00.0") addresses | lib.pci: Support short/canonical ("01:00.0") addresses
Adds these two functions:
pci.canonical(address) => returns address in short canonical format
pci.qualified(address) => returns address in fully qualified format
with the intention that users can specify either format and Snabb
Switch will prefer the canonic... | Lua | apache-2.0 | Igalia/snabb,wingo/snabb,hb9cwp/snabbswitch,aperezdc/snabbswitch,mixflowtech/logsensor,snabbnfv-goodies/snabbswitch,kbara/snabb,andywingo/snabbswitch,dpino/snabb,mixflowtech/logsensor,alexandergall/snabbswitch,snabbco/snabb,Igalia/snabbswitch,Igalia/snabb,dpino/snabb,wingo/snabb,aperezdc/snabbswitch,eugeneia/snabb,wing... |
cd45b48e8b9ff3e30fa13ea9b17b6d5a01a4b9d5 | src/luarocks/fs/unix.lua | src/luarocks/fs/unix.lua |
local assert, type, table, io, package, math, os, ipairs =
assert, type, table, io, package, math, os, ipairs
--- Unix implementation of filesystem and platform abstractions.
module("luarocks.fs.unix", package.seeall)
local fs = require("luarocks.fs")
local cfg = require("luarocks.cfg")
local dir = require("l... |
local assert, type, table, io, package, math, os, ipairs =
assert, type, table, io, package, math, os, ipairs
--- Unix implementation of filesystem and platform abstractions.
module("luarocks.fs.unix", package.seeall)
local fs = require("luarocks.fs")
local cfg = require("luarocks.cfg")
local dir = require("l... | Add sanity check to is_actual_binary. Should fix crash in 'luarocks pack' reported by Alexander Gladysh, or at least give better diagnostics. | Add sanity check to is_actual_binary.
Should fix crash in 'luarocks pack' reported by Alexander Gladysh,
or at least give better diagnostics.
| Lua | mit | tst2005/luarocks,xpol/luainstaller,robooo/luarocks,coderstudy/luarocks,xpol/luavm,rrthomas/luarocks,starius/luarocks,xpol/luainstaller,xpol/luavm,xiaq/luarocks,leafo/luarocks,aryajur/luarocks,xpol/luarocks,xpol/luavm,tst2005/luarocks,xiaq/luarocks,tarantool/luarocks,luarocks/luarocks,tst2005/luarocks,usstwxy/luarocks,x... |
df1ab2901904d7cbfea59ef3533c6f502dacb8fa | utils.lua | utils.lua | -- UTILS
function trim(s)
local from = s:match"^%s*()"
return s:match"^%s*()" > #s and "" or s:match(".*%S", s:match"^%s*()")
end
function trim_table_strings(t)
assert(type(t) == 'table', "You must provide a table")
for index,value in pairs(t) do
if(type(value) == 'string') then
t[index] = trim(value)
end... | -- UTILS
function trim(s)
local from = s:match"^%s*()"
return s:match"^%s*()" > #s and "" or s:match(".*%S", s:match"^%s*()")
end
function trim_table_strings(t)
assert(type(t) == 'table', "You must provide a table")
for index,value in pairs(t) do
if(type(value) == 'string') then
t[index] = trim(value)
end... | Indentation fixes | Indentation fixes
| Lua | mit | AlexMili/torch-dataframe |
b470ddf3d3723a700a97f73f8599696d21198bfb | xmake/modules/detect/tools/link/has_flags.lua | xmake/modules/detect/tools/link/has_flags.lua | --!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | --!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | fix link.has_flags | fix link.has_flags
| Lua | apache-2.0 | tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake |
11c4a7964ee509ae7aa96f39d80b46cc6939d3ff | tools/utils/unicode.lua | tools/utils/unicode.lua | -- for lua < 5.3 compatibility
local bit32 = nil
if not bit32 then
bit32 = require 'bit32'
end
local unidata = require './unidata'
local unicode = {}
-- convert the next utf8 character to ucs
-- returns codepoint and utf-8 character
function unicode._utf8_to_cp(s, idx)
if idx > #s then return end
idx = idx or ... | -- for lua < 5.3 compatibility
local bit32 = nil
if not bit32 then
bit32 = require 'bit32'
end
local unidata = require './unidata'
local unicode = {}
-- convert the next utf8 character to ucs
-- returns codepoint and utf-8 character
function unicode._utf8_to_cp(s, idx)
if idx > #s then return end
idx = idx or ... | fix unicode lower table reverse | fix unicode lower table reverse
| Lua | mit | jungikim/OpenNMT,OpenNMT/OpenNMT,da03/OpenNMT,OpenNMT/OpenNMT,da03/OpenNMT,da03/OpenNMT,jsenellart-systran/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,monsieurzhang/OpenNMT,jsenellart/OpenNMT,monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,jsenellart/OpenNMT,jungikim/OpenNMT,srush/OpenNMT,jungikim/OpenNMT,monsi... |
6c0029df469e89ce809ff833a3fa631eee14f77e | core/libtexpdf-output.lua | core/libtexpdf-output.lua | local pdf = require("justenoughlibtexpdf")
if (not SILE.outputters) then SILE.outputters = {} end
local cursorX = 0
local cursorY = 0
local font = 0
local started = false
local lastkey
local function ensureInit ()
if not started then
pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1], SILE.documentSta... | local pdf = require("justenoughlibtexpdf")
if (not SILE.outputters) then SILE.outputters = {} end
local cursorX = 0
local cursorY = 0
local font = 0
local started = false
local lastkey
local function ensureInit ()
if not started then
pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1], SILE.documentSta... | fix(debug): Fix math in hbox debugging | fix(debug): Fix math in hbox debugging
| Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
4b294d2588b098c70cdd316838806dd32c647dc8 | src_trunk/resources/lvpd-system/s_backup.lua | src_trunk/resources/lvpd-system/s_backup.lua | backupBlip = false
backupPlayer = nil
function removeBackup(thePlayer, commandName)
if (exports.global:isPlayerAdmin(thePlayer)) then
if (backupPlayer~=nil) then
for k,v in ipairs(getPlayersInTeam ( getTeamFromName("Los Santos Police Department") )) do
triggerClientEvent(v, "destroyBackupBlip", b... | backupBlip = false
backupPlayer = nil
function removeBackup(thePlayer, commandName)
if (exports.global:isPlayerAdmin(thePlayer)) then
if (backupPlayer~=nil) then
for k,v in ipairs(getPlayersInTeam ( getTeamFromName("Los Santos Police Department") )) do
triggerClientEvent(v, "destroyBackupBlip", g... | Fixed backup | Fixed backup
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1210 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
cee1083cbbb1f98a3156e6c0a410148296e0177e | src/lua-factory/sources/grl-spotify-cover.lua | src/lua-factory/sources/grl-spotify-cover.lua | --[[
* Copyright (C) 2015 Bastien Nocera.
*
* Contact: Bastien Nocera <hadess@hadess.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 Free Software Foundation; version 2.1 of
* the License, or (at yo... | --[[
* Copyright (C) 2015 Bastien Nocera.
*
* Contact: Bastien Nocera <hadess@hadess.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 Free Software Foundation; version 2.1 of
* the License, or (at yo... | Revert "lua-factory: port grl-spotify-cover.lua to the new lua system" | Revert "lua-factory: port grl-spotify-cover.lua to the new lua system"
This reverts commit 9b329f3e5246477f039a1fb2b129706370237c89.
But keeps grl.fetch callback as function instead of string
https://bugzilla.gnome.org/show_bug.cgi?id=763046
| Lua | lgpl-2.1 | MikePetullo/grilo-plugins,GNOME/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,grilofw/grilo-plugins,jasuarez/grilo-plugins |
c2c491ab4bedea3be7b1a6aca8bb4e65a9d763db | xmake/modules/detect/tools/nvcc/has_flags.lua | xmake/modules/detect/tools/nvcc/has_flags.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... | Support cudart flags | Support cudart flags
Fix check failed of "-cudart none"
```
checking for the flags (-cudart none ) ... no
> nvcc -cudart none -m64 -LC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\lib
checkinfo: C:\Program Files (x86)\xmake/core/base/os.lua:715: nvcc_has_flags.cu
tmpxft_00003f20_00000000-18_nvcc_has_fla... | Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
e3316c4e1086e75aa24d73d2f28175fb57abbc33 | build/scripts/common.lua | build/scripts/common.lua | -- Configuration gnrale
configurations
{
-- "DebugStatic",
-- "ReleaseStatic",
"DebugDLL",
"ReleaseDLL"
}
defines "NAZARA_BUILD"
language "C++"
location(_ACTION)
includedirs
{
"../include",
"../src/",
"../extlibs/include"
}
libdirs "../lib"
if (_OPTIONS["x64"]) then
libdirs "../extlibs/lib/x64"
end
libdirs ... | -- Configuration gnrale
configurations
{
-- "DebugStatic",
-- "ReleaseStatic",
"DebugDLL",
"ReleaseDLL"
}
defines "NAZARA_BUILD"
language "C++"
location(_ACTION)
includedirs
{
"../include",
"../src/",
"../extlibs/include"
}
libdirs "../lib"
if (_OPTIONS["x64"]) then
libdirs "../extlibs/lib/x64"
end
libdirs ... | Fixed SSE warning in debug with GCC | Fixed SSE warning in debug with GCC
Former-commit-id: 3632988311795547ccf59a66606b3faccff1a1b1 | Lua | mit | DigitalPulseSoftware/NazaraEngine |
665dfcbab6ee25cab99b103afdbc1a952c650ce2 | busted/outputHandlers/base.lua | busted/outputHandlers/base.lua | return function(busted)
local handler = {
successes = {},
successesCount = 0,
pendings = {},
pendingsCount = 0,
failures = {},
failuresCount = 0,
errors = {},
errorsCount = 0,
inProgress = {}
}
handler.subscribe = function(handler, options)
require('busted.languages.en')
... | return function(busted)
local handler = {
successes = {},
successesCount = 0,
pendings = {},
pendingsCount = 0,
failures = {},
failuresCount = 0,
errors = {},
errorsCount = 0,
inProgress = {}
}
handler.subscribe = function(handler, options)
require('busted.languages.en')
... | Handle errors in describe blocks | Handle errors in describe blocks
Fixes part of #260
Also, cc @kbambz :P | Lua | mit | sobrinho/busted,DorianGray/busted,Olivine-Labs/busted,leafo/busted,xyliuke/busted,ryanplusplus/busted,o-lim/busted,mpeterv/busted,istr/busted,nehz/busted |
a37128f891bca7336f4dff2809d18cf3304e50b2 | mods/farming/melon.lua | mods/farming/melon.lua |
local S = farming.intllib
-- melon
minetest.register_craftitem("farming:melon_slice", {
description = S("Melon Slice"),
inventory_image = "farming_melon_slice.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:melon_1")
end,
on_use =... |
local S = farming.intllib
-- melon
minetest.register_craftitem("farming:melon_slice", {
description = S("Melon Slice"),
inventory_image = "farming_melon_slice.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:melon_1")
end,
on_use =... | fix melon textures | fix melon textures
| Lua | lgpl-2.1 | maikerumine/grieftest |
36380b29167900162880718b54682f65549242be | aspects/vim/files/.vim/lua/wincent/init.lua | aspects/vim/files/.vim/lua/wincent/init.lua | local wincent = {}
-- +0,+1,+2, ... +254
local focused_colorcolumn = '+' .. table.concat({
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12',
'13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23',
'24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34',
'35', '36', '37', '3... | local wincent = {}
-- +0,+1,+2, ... +254
local focused_colorcolumn = '+' .. table.concat({
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12',
'13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23',
'24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34',
'35', '36', '37', '3... | fix(vim): make sure spell settings are correctly saved/restored | fix(vim): make sure spell settings are correctly saved/restored
I couldn't remember what all this stuff was for when I was porting from
Vimscript to Lua in 0cc3b34b, but I noticed that spelling mistakes were
being highlighted in blurred Markdown windows.
So, I did a bit of digging and I am not sure this was working b... | Lua | unlicense | wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent |
177b1cbc8127d0916f8c847ca4a8dfe515aaa43d | plugins/mod_roster.lua | plugins/mod_roster.lua |
local st = require "util.stanza"
local send = require "core.sessionmanager".send_to_session
add_iq_handler("c2s", "jabber:iq:roster",
function (session, stanza)
if stanza.attr.type == "get" then
local roster = st.reply(stanza)
:query("jabber:iq:roster");
for jid in pairs(session.roster) do
r... |
local st = require "util.stanza"
local send = require "core.sessionmanager".send_to_session
add_iq_handler("c2s", "jabber:iq:roster",
function (session, stanza)
if stanza.attr.type == "get" then
local roster = st.reply(stanza)
:query("jabber:iq:roster");
for jid in pairs(session.roster) do
l... | Fixed: mod_roster now outputs all roster data (instead of just the JIDs) | Fixed: mod_roster now outputs all roster data (instead of just the JIDs)
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
64a7a23d9df6133e0f17a40de5f0d6cc79774fba | lua/encoders/signalfx.lua | lua/encoders/signalfx.lua | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
--[=[
Extracts data from message fields in messages.
Generates JSON suitable for send to datapoint SignalFx API.
(C... | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
--[=[
Extracts data from message fields in messages.
Generates JSON suitable for send to datapoint SignalFx API.
(C... | signalfx encoder (bugfix): timestamp in milliseconds | signalfx encoder (bugfix): timestamp in milliseconds
| Lua | apache-2.0 | wxdublin/heka-clever-plugins |
22e77171f0bbad871250d7d3ac40cf97b84c6c91 | Nncache.lua | Nncache.lua | -- Nncache.lua
-- nearest neighbors cache
-- API overview
if false then
-- construction
nnc = Nncache()
-- setter and getter
nnc:setLine(obsIndex, tensor1D)
tensor1D = nnc:getLine(obsIndex) -- may return null
-- apply a function to each key-value pair
local function f(key,value)
end
... | -- Nncache.lua
-- nearest neighbors cache
-- API overview
if false then
-- construction
nnc = Nncache()
-- setter and getter
nnc:setLine(obsIndex, tensor1D)
tensor1D = nnc:getLine(obsIndex) -- may return null
-- apply a function to each key-value pair
local function f(key,value)
end
... | Fix verbose code | Fix verbose code
| Lua | bsd-3-clause | rlowrance/kernel-smoothers |
283f486676eb62394dd060b13e277f83c77fa2f9 | deps/coro-wrapper.lua | deps/coro-wrapper.lua | --[[lit-meta
name = "creationix/coro-wrapper"
version = "3.0.1"
homepage = "https://github.com/luvit/lit/blob/master/deps/coro-wrapper.lua"
description = "An adapter for applying decoders to coro-streams."
tags = {"coro", "decoder", "adapter"}
license = "MIT"
author = { name = "Tim Caswell" }
]]
local co... | --[[lit-meta
name = "creationix/coro-wrapper"
version = "3.0.1"
homepage = "https://github.com/luvit/lit/blob/master/deps/coro-wrapper.lua"
description = "An adapter for applying decoders to coro-streams."
tags = {"coro", "decoder", "adapter"}
license = "MIT"
author = { name = "Tim Caswell" }
]]
local co... | Fixed infinite loop in coro-wrapper decoder - If the buffer is empty, nil is returned to signal the end of the loop | Fixed infinite loop in coro-wrapper decoder
- If the buffer is empty, nil is returned to signal the end of the loop
| Lua | apache-2.0 | luvit/lit,zhaozg/lit |
cb8a7c5094f37d94638974b67dc92256aaef70c5 | plugins/webshot.lua | plugins/webshot.lua | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param, psize)
local response_body = { }
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(re... | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param, psize)
local response_body = { }
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(re... | fix full page | fix full page
| Lua | agpl-3.0 | xsolinsx/AISasha |
3f090656ff810a7c87c334978f49790e109846aa | src_trunk/resources/phone-system/c_phone_system.lua | src_trunk/resources/phone-system/c_phone_system.lua | local wPhoneMenu, gRingtones, ePhoneNumber, bCall, bOK, bCancel
local sx, sy = guiGetScreenSize()
local p_Sound = {}
local stopTimer = {}
function showPhoneGui(itemValue)
wPhoneMenu = guiCreateWindow(sx/2 - 125,sy/2 - 175,250,310,"Phone Menu",false)
bCall = guiCreateButton(0.0424,0.0831,0.2966,0.0855,"Call"... | local wPhoneMenu, gRingtones, ePhoneNumber, bCall, bOK, bCancel
local sx, sy = guiGetScreenSize()
local p_Sound = {}
local stopTimer = {}
function showPhoneGui(itemValue)
wPhoneMenu = guiCreateWindow(sx/2 - 125,sy/2 - 175,250,310,"Phone Menu",false)
bCall = guiCreateButton(0.0424,0.0831,0.2966,0.0855,"Call"... | fixed #1006: Ringtone - Too Loud | fixed #1006: Ringtone - Too Loud
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@1216 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
02d68d1d8fbba5b9685c29c503520796c55fa3fa | src/camera/src/Client/CameraStackService.lua | src/camera/src/Client/CameraStackService.lua | --[=[
Holds camera states and allows for the last camera state to be retrieved. Also
initializes an impulse and default camera as the bottom of the stack. Is a singleton.
@class CameraStackService
]=]
local require = require(script.Parent.loader).load(script)
local RunService = game:GetService("RunService")
local... | --[=[
Holds camera states and allows for the last camera state to be retrieved. Also
initializes an impulse and default camera as the bottom of the stack. Is a singleton.
@class CameraStackService
]=]
local require = require(script.Parent.loader).load(script)
local RunService = game:GetService("RunService")
local... | fix: Delay CameraStackService starting until start method so that configuration has time to be set | fix: Delay CameraStackService starting until start method so that configuration has time to be set
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
ca543dec8306c2c32ed5956539061d5cfae7f680 | includes/server/nginx.lua | includes/server/nginx.lua | local time, ngx_print, ngx_var, ngx_req = os.time, ngx.print, ngx.var, ngx.req
local explode, unescape = seawolf.text.explode, socket.url.unescape
local trim = seawolf.text.trim
env._SERVER = function (v)
if v == 'QUERY_STRING' then
return ngx_var.args
elseif v == 'SCRIPT_NAME' then
return ngx_var.uri
el... | local seawolf = require 'seawolf'.__build('text')
local time, ngx_print, ngx_var, ngx_req = os.time, ngx.print, ngx.var, ngx.req
local explode, unescape = seawolf.text.explode, socket.url.unescape
local trim = seawolf.text.trim
env._SERVER = function (v)
if v == 'QUERY_STRING' then
return ngx_var.args
elseif v... | Bug fix: 505 when calling explode() on nginx. | Bug fix: 505 when calling explode() on nginx.
| Lua | agpl-3.0 | ophal/core,coinzen/coinage,ophal/core,coinzen/coinage,coinzen/coinage,ophal/core |
05b0bb2e6a6589092084615e9a961ea45a75d8c0 | access.lua | access.lua |
-- import requirements
-- allow either cjson, or th-LuaJSON
local has_cjson, jsonmod = pcall(require, "cjson")
if not has_cjson then
jsonmod = require "json"
end
-- Ubuntu broke the install. Puts the source in /usr/share/lua/5.1/https.lua,
-- but since the source defines itself as the module "ssl.https", after we... |
-- import requirements
-- allow either cjson, or th-LuaJSON
local has_cjson, jsonmod = pcall(require, "cjson")
if not has_cjson then
jsonmod = require "json"
end
-- Ubuntu broke the install. Puts the source in /usr/share/lua/5.1/https.lua,
-- but since the source defines itself as the module "ssl.https", after we... | WIP prevent timing attacks on access token verification. Fixes #5 | WIP prevent timing attacks on access token verification. Fixes #5
| Lua | mit | agoragames/nginx-google-oauth,agoragames/nginx-google-oauth |
58ab17704dc56dbcd02e0af5bb6c00dbf5becfff | test_scripts/Polices/Policy_Table_Update/029_ATF_P_TC_Notifying_HMI_via_OnAppPermissionChanged.lua | test_scripts/Polices/Policy_Table_Update/029_ATF_P_TC_Notifying_HMI_via_OnAppPermissionChanged.lua | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [PolicyTableUpdate] Notifying HMI via OnAppPermissionChanged about the affected application
--
-- Description:
-- PoliciesManager must initiate sending SDL.OnAppPermissionChanged{appID} notification ... | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [PolicyTableUpdate] Notifying HMI via OnAppPermissionChanged about the affected application
--
-- Description:
-- PoliciesManager must initiate sending SDL.OnAppPermissionChanged{appID} notification ... | Fix issues | Fix issues
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
bbc0cb555ed4787b2016000df4eb418a4e898aeb | lua/plugins/telescope.lua | lua/plugins/telescope.lua | local nvim = require'nvim'
local utils = require'utils'
local executable = require'utils.files'.executable
local load_module = require'utils.helpers'.load_module
local set_autocmd = require'nvim.autocmds'.set_autocmd
local set_mapping = require'nvim.mappings'.set_mapping
local set_command = require'nvim.commands'.s... | local nvim = require'nvim'
local utils = require'utils'
local executable = require'utils.files'.executable
local load_module = require'utils.helpers'.load_module
local set_autocmd = require'nvim.autocmds'.set_autocmd
local set_mapping = require'nvim.mappings'.set_mapping
local set_command = require'nvim.commands'.s... | fix: Update telescope settings | fix: Update telescope settings
| Lua | mit | Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim,Mike325/.vim |
780b34fc9ff915305921de551016032a71e049ef | lua/entities/gmod_wire_freezer.lua | lua/entities/gmod_wire_freezer.lua | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Freezer"
ENT.WireDebugName = "Freezer"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.State = false
se... | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Freezer"
ENT.WireDebugName = "Freezer"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.State = false
se... | Fix #545. Freezer now obeys prop protection. | Fix #545. Freezer now obeys prop protection.
| Lua | apache-2.0 | NezzKryptic/Wire,notcake/wire,plinkopenguin/wiremod,CaptainPRICE/wire,Python1320/wire,rafradek/wire,immibis/wiremod,wiremod/wire,mitterdoo/wire,thegrb93/wire,dvdvideo1234/wire,bigdogmat/wire,garrysmodlua/wire,mms92/wire,Grocel/wire,sammyt291/wire |
8899bd346f29636ffaf508a889df8ef059dd31d3 | mods/00_bt_armor/throwing/init.lua | mods/00_bt_armor/throwing/init.lua | arrows = {
{"throwing:arrow", "throwing:arrow_entity"},
{"throwing:arrow_mithril", "throwing:arrow_mithril_entity"},
{"throwing:arrow_fire", "throwing:arrow_fire_entity"},
{"throwing:arrow_teleport", "throwing:arrow_teleport_entity"},
{"throwing:arrow_dig", "throwing:arrow_dig_entity"},
{"throwing:arrow_build", "... | local playerCooldown = {}
minetest.register_on_joinplayer(function(player)
playerCooldown[player:get_player_name()] = 0.0
end)
minetest.register_on_leaveplayer(function(player)
playerCooldown[player:get_player_name()] = nil
end)
arrows = {
{"throwing:arrow", "throwing:arrow_entity"},
{"throwing:arrow_mithril", "... | Fixed out of bounds bug and added a cooldown so you can no longer spam fire arrows | Fixed out of bounds bug and added a cooldown so you can no longer
spam fire arrows
| Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
625567775e43677b305df3da0fbbe6c7361a2b3e | nvim/lua/lsp.lua | nvim/lua/lsp.lua | vim.api.nvim_command('echo "Hello, Nvim!"')
local nvim_lsp = require('lspconfig')
local on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
buf_set_option('omnifunc', 'v:... | vim.api.nvim_command('echo "Hello, Nvim!"')
local nvim_lsp = require('lspconfig')
local on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
buf_set_option('omnifunc', 'v:... | +fix: improve LSP config a bit | +fix: improve LSP config a bit
Add flow and remove some stuff that was more annoying than helpful
| Lua | mit | franciscoj/dot-files,franciscoj/dot-files,franciscoj/dot-files |
35eec07d55e7ed36e05f894bf6f7f65162841ff9 | modules/title/post/olds.lua | modules/title/post/olds.lua | local sql = require'lsqlite3'
local date = require'date'
local patterns = {
-- X://Y url
"^(https?://%S+)",
"^<(https?://%S+)>",
"%f[%S](https?://%S+)",
-- www.X.Y url
"^(www%.[%w_-%%]+%.%S+)",
"%f[%S](www%.[%w_-%%]+%.%S+)",
}
local openDB = function()
local dbfilename = string.format("cache/urls.%s.sql", iva... | local sql = require'lsqlite3'
local date = require'date'
local uri = require"handler.uri"
local uri_parse = uri.parse
local patterns = {
-- X://Y url
"^(https?://%S+)",
"^<(https?://%S+)>",
"%f[%S](https?://%S+)",
-- www.X.Y url
"^(www%.[%w_-%%]+%.%S+)",
"%f[%S](www%.[%w_-%%]+%.%S+)",
}
local openDB = functio... | title/olds: Don't lookup rooth path URLs. | title/olds: Don't lookup rooth path URLs.
Fixes #46.
| Lua | mit | torhve/ivar2,torhve/ivar2,haste/ivar2,torhve/ivar2 |
0a9a0bc02ee2133b440920a475c88a4f2c64c483 | fbtorch.lua | fbtorch.lua | -- Copyright 2004-present Facebook. All Rights Reserved.
-- Always line-buffer stdout because we want our logs not to be slow, even
-- if they are redirected.
io.stdout:setvbuf('line')
local pl = require('pl.import_into')()
local util = require('fb.util')
require 'totem'
-- Compatibility stuff, LuaJIT in 5.2 compat ... | -- Copyright 2004-present Facebook. All Rights Reserved.
-- Always line-buffer stdout because we want our logs not to be slow, even
-- if they are redirected.
io.stdout:setvbuf('line')
local pl = require('pl.import_into')()
local util = require('fb.util')
require 'totem'
-- Compatibility stuff, LuaJIT in 5.2 compat ... | fix torch Tester integration with fbtorch/luaunit (which OSS pull broke) | fix torch Tester integration with fbtorch/luaunit (which OSS pull broke)
Summary:torch.Tester was rewritten; needed to fix fbtorch integration.
FYI I think the new torch Tester regressed my changes that put tests in alphabetical order; need to fix in OSS.
Reviewed By: soumith
Differential Revision: D3121559
fb-gh-... | Lua | bsd-3-clause | facebook/fbtorch |
00b7d21f165195ecc556ebd3524b67939b85aed3 | spec/util/fromFasta_spec.lua | spec/util/fromFasta_spec.lua | -- lua-npge, Nucleotide PanGenome explorer (Lua module)
-- Copyright (C) 2014-2015 Boris Nagaev
-- See the LICENSE file for terms of use.
describe("npge.util.fromFasta", function()
it("parses fasta representation", function()
local fromFasta = require 'npge.util.fromFasta'
local fasta = [[
>foo des... | -- lua-npge, Nucleotide PanGenome explorer (Lua module)
-- Copyright (C) 2014-2015 Boris Nagaev
-- See the LICENSE file for terms of use.
describe("npge.util.fromFasta", function()
it("parses fasta representation", function()
local fromFasta = require 'npge.util.fromFasta'
local fasta = [[
>foo des... | fix test (assert.equal instead of asset.truthy) | fix test (assert.equal instead of asset.truthy)
| Lua | mit | npge/lua-npge,npge/lua-npge,starius/lua-npge,npge/lua-npge,starius/lua-npge,starius/lua-npge |
2c446cbe7da4bda4cd5913daaa06b0dd99b6a90e | packages/pirania/files/usr/lib/lua/voucher/vouchera.lua | packages/pirania/files/usr/lib/lua/voucher/vouchera.lua | #!/bin/lua
local store = require('voucher.store')
local config = require('voucher.config')
local utils = require('voucher.utils')
local vouchera = {}
local ID_SIZE = 6
--! Simplify the comparison of vouchers using a metatable for the == operator
local voucher_metatable = {
__eq = function(self, value)
r... | #!/bin/lua
local store = require('voucher.store')
local config = require('voucher.config')
local utils = require('voucher.utils')
local vouchera = {}
local ID_SIZE = 6
--! Simplify the comparison of vouchers using a metatable for the == operator
local voucher_metatable = {
__eq = function(self, value)
r... | pirania: fix pruning | pirania: fix pruning
| Lua | agpl-3.0 | libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages,libremesh/lime-packages |
6aaefa0f24d4a44b6e8a37e3dba76876d24879f3 | tweak/scripts/rweichler/include/icon_random.lua | tweak/scripts/rweichler/include/icon_random.lua |
local rand = nil
local view_order = nil
local function randomize(tbl)
--use the same random seed every time
if not rand then
rand = math.random(1, 8297094)
end
for i=1,#tbl-1 do
local rand_index = i + rand % (#tbl - i + 1)
local tmp = tbl[i]
tbl[i] = tbl[rand_index]
... |
local rand = nil
local view_order = nil
local function randomize(tbl)
--use the same random seed every time
if not rand then
rand = math.random(1, 8297094)
end
for i=1,#tbl-1 do
local rand_index = i + rand % (#tbl - i + 1)
local tmp = tbl[i]
tbl[i] = tbl[rand_index]
... | small bugfix for icon_random | small bugfix for icon_random
| Lua | mit | rweichler/cylinder,rweichler/cylinder,rweichler/cylinder |
68611204180b92c046a93b17dc217a8dff9211a6 | nvim/nvim/lua/_/statusline.lua | nvim/nvim/lua/_/statusline.lua | local utils = require '_.utils'
local M = {}
---------------------------------------------------------------------------------
-- Helpers
---------------------------------------------------------------------------------
-- display lineNoIndicator (from drzel/vim-line-no-indicator)
local function line_no_indicator()
... | local utils = require '_.utils'
local M = {}
---------------------------------------------------------------------------------
-- Helpers
---------------------------------------------------------------------------------
-- display lineNoIndicator (from drzel/vim-line-no-indicator)
local function line_no_indicator()
... | fix(nvim): lsp status info position | fix(nvim): lsp status info position
| Lua | mit | skyuplam/dotfiles,skyuplam/dotfiles |
8dde1203348ff4408ced269a307ece98705a3a29 | core/servermanager.lua | core/servermanager.lua |
local st = require "util.stanza";
local send = require "core.sessionmanager".send_to_session;
local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
require "modulemanager"
-- Handle stanzas that were addressed to the server (whether they came from c2s, s2s, etc.)
function handle_stanza(origin, stanza)
-- Use ... |
local st = require "util.stanza";
local send = require "core.sessionmanager".send_to_session;
local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
require "modulemanager"
-- Handle stanzas that were addressed to the server (whether they came from c2s, s2s, etc.)
function handle_stanza(origin, stanza)
-- Use ... | Fixed: Unhandled stanza handling | Fixed: Unhandled stanza handling
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
84c5f57efab1b75a591ccbfb8db4fb71dbe8c17f | lua/entities/gmod_wire_expression2/core/sound.lua | lua/entities/gmod_wire_expression2/core/sound.lua | /******************************************************************************\
Built-in Sound support v1.18
\******************************************************************************/
E2Lib.RegisterExtension("sound", true)
local wire_expression2_maxsounds = CreateConVar( "wire_expression2_maxsounds", 16 )
lo... | /******************************************************************************\
Built-in Sound support v1.18
\******************************************************************************/
E2Lib.RegisterExtension("sound", true)
local wire_expression2_maxsounds = CreateConVar( "wire_expression2_maxsounds", 16 )
lo... | Fixed sounds not stopping | Fixed sounds not stopping
Fixed sounds not stopping if you remove the entity while the sound is
fading
| Lua | apache-2.0 | plinkopenguin/wiremod,Python1320/wire,bigdogmat/wire,mms92/wire,Grocel/wire,garrysmodlua/wire,wiremod/wire,mitterdoo/wire,thegrb93/wire,dvdvideo1234/wire,sammyt291/wire,immibis/wiremod,CaptainPRICE/wire,NezzKryptic/Wire,notcake/wire,rafradek/wire |
e406a527593379df572b203b4299ffa5d21c446e | applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua | applications/luci-siitwizard/luasrc/model/cbi/siitwizard.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
ht... | --[[
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
ht... | applications/siitwizard: - fix default lan ip - make ip and netmask depend on client mode | applications/siitwizard:
- fix default lan ip
- make ip and netmask depend on client mode
| Lua | apache-2.0 | deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,deepak78/luci,8devices/luci,8devices/luci,8devices/luci,deepak78/luci,deepak78/luci,deepak78/luci,deepak78/luci,8devices/luci,deepak78/luci |
e8ce4657ee558e7d59ee1228aa947704b91a4b36 | nyagos.d/catalog/git.lua | nyagos.d/catalog/git.lua | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
-- hub exists, replace git command
local hubpath=nyagos.which("hub.exe")
if hubpath then
nyagos.alias.git = "hub.exe"
end
share.git = {}
local getcommits = function(args)
local fd=io.popen("git log --format=... | if not nyagos then
print("This is a script for nyagos not lua.exe")
os.exit()
end
-- hub exists, replace git command
local hubpath=nyagos.which("hub.exe")
if hubpath then
nyagos.alias.git = "hub.exe"
end
share.git = {}
local getcommits = function(args)
local fd=io.popen("git log --format=... | Fix: git.lua: `git add` could not complete files when git status is `file1 -> file2` | Fix: git.lua: `git add` could not complete files when git status is `file1 -> file2`
| Lua | bsd-3-clause | zetamatta/nyagos,tsuyoshicho/nyagos |
10f2ef7935908e98d17577c0635561685d7e262f | covers.lua | covers.lua | local color = "#FFFFFF"
SILE.registerCommand("frontcover", function ()
local options = {}
options["first-content-frame"] = "front"
SILE.call("pagetemplate", options, function ()
SILE.call("frame", {
id = "front",
top = "0",
bottom = "100%ph",
left = "15%pw",
right = "8... | local color = "#FFFFFF"
SILE.registerCommand("frontcover", function ()
local options = {}
options["first-content-frame"] = "front"
SILE.call("pagetemplate", options, function ()
SILE.call("frame", {
id = "front",
top = "0",
bottom = "100%ph",
left = "15%pw",
right = "8... | fix: Remove hard coded TR language tag from back cover template | fix: Remove hard coded TR language tag from back cover template
| Lua | agpl-3.0 | alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile |
a2cf7eb3d84544c0f9e3e2d22b1a41ef4f8ce36b | cpaste.lua | cpaste.lua | -- CPaste, micro pastebin running on Carbon
print("Morning, Ladies and Gentlemen, CPaste here.")
-- Settings:
ret = assert(loadfile("settings.lua")())
-- Web Paste
webpaste = assert(loadfile("webpaste.lua")(ret))
-- Load css
local css = ""
local f = io.open("thirdparty/highlight.css")
if f then
print("Read thirdparty/... | -- CPaste, micro pastebin running on Carbon
print("Morning, Ladies and Gentlemen, CPaste here.")
-- Settings:
ret = assert(loadfile("settings.lua")())
-- Web Paste
webpaste_f, err = loadfile("webpaste.lua")
if not err then
webpaste = webpaste_f(ret)
else
error(err)
end
-- Load css
local css = ""
local f = io.open("th... | Fixing error message if the error was in webpaste.lua | Fixing error message if the error was in webpaste.lua
| Lua | mit | vifino/cpaste,carbonsrv/cpaste |
0a9456826bdd9d0a25dc8d4311e8b5faa9522607 | config/wezterm/wezterm.lua | config/wezterm/wezterm.lua | local wezterm = require 'wezterm'
local sys = require 'sys'
require 'patch_runtime'
wezterm.on('update-right-status', function(window, _)
-- "Wed Mar 3 08:14"
local date = wezterm.strftime '%a %b %-d %H:%M '
local bat = ''
for _, b in ipairs(wezterm.battery_info()) do
bat = '🔋 ' .. string.for... | require 'patch_runtime'
local wezterm = require 'wezterm'
local sys = require 'sys'
-- local split = require('utils.strings').split
-- local list_extend = require('utils.tables').list_extend
-- local version_date = tonumber(split(wezterm.version, '-')[1])
wezterm.on('update-right-status', function(window, _)
-- ... | feat: Add new mappings, options and fix windows error | feat: Add new mappings, options and fix windows error
Add replace_current option for key_table mappings, missing this option in windows caused startup errors
Add color_scheme = 'tokyonight' and set opacity to 0.1
Add new <S-_> font reduction mapping
New Reload mapping
| Lua | mit | Mike325/dotfiles,Mike325/dotfiles |
81d33d33bb519dcbcbfde92e851c2786f6233dbc | core/hyphenator-liang.lua | core/hyphenator-liang.lua | local function addPattern(hyphenator, pattern)
local trie = hyphenator.trie
local bits = SU.splitUtf8(pattern)
for i = 1, #bits do
local char = bits[i]
if not char:find("%d") then
if not(trie[char]) then trie[char] = {} end
trie = trie[char]
end
end
trie["_"] = {}
local lastWasDigit ... | local function addPattern(hyphenator, pattern)
local trie = hyphenator.trie
local bits = SU.splitUtf8(pattern)
for i = 1, #bits do
local char = bits[i]
if not char:find("%d") then
if not(trie[char]) then trie[char] = {} end
trie = trie[char]
end
end
trie["_"] = {}
local lastWasDigit ... | fix(languages): Make sure hyphenator doesn't ever think language is nil | fix(languages): Make sure hyphenator doesn't ever think language is nil
| Lua | mit | alerque/sile,alerque/sile,alerque/sile,alerque/sile |
b4e8d5229543b1c945f2e0fe3efd8ea558deaaf5 | src/azk/cli/shell.lua | src/azk/cli/shell.lua | local io = require('io')
local colors = require('ansicolors')
local S = require('syscall')
local tablex = require('pl.tablex')
local shell = {}
local logs_format="%%{reset}%%{%s}azk %s%%{reset}: %s%%{reset}"
local logs_type = {
['error'] = "red",
info = "blue",
warning = "yellow"
}
local _, err... | local io = require('io')
local colors = require('ansicolors')
local S = require('syscall')
local tablex = require('pl.tablex')
local shell = {}
local logs_format="%%{reset}%%{%s}azk %s%%{reset}: %s%%{reset}"
local logs_type = {
['error'] = "red",
info = "blue",
warning = "yellow"
}
local _, err... | Fixing shell.capture_io to guard of raise errors and propagate then. | Fixing shell.capture_io to guard of raise errors and propagate then. | Lua | apache-2.0 | azukiapp/azk,heitortsergent/azk,saitodisse/azk-travis-test,marcusgadbem/azk,nuxlli/azk,teodor-pripoae/azk,agendor/azk,slobo/azk,nuxlli/azk,renanmpimentel/azk,saitodisse/azk,agendor/azk,Klaudit/azk,renanmpimentel/azk,marcusgadbem/azk,fearenales/azk,slobo/azk,Klaudit/azk,teodor-pripoae/azk,azukiapp/azk,juniorribeiro/azk,... |
a4b360074654140afa7aa85474197b56ffa30ba3 | ios-icons/icons.lua | ios-icons/icons.lua | local icons_mt = {}
icons_mt.__tostring = function(i)
local result = "Icon Set\n\n"
for _, p in ipairs(i) do
result = result .. tostring(p)
end
result = result .. "\n"
return result
end
local icons = {}
icons.__meta = icons_mt
icons.flatten = function(tab)
local insert = table.insert
lo... | local icons_mt = {}
icons_mt.__tostring = function(i)
local result = "Icon Set\n\n"
for _, p in ipairs(i) do
result = result .. tostring(p)
end
result = result .. "\n"
return result
end
local icons = {}
icons.__meta = icons_mt
icons.flatten = function(tab)
local insert = table.insert
lo... | fixed flatten function to handle folders | fixed flatten function to handle folders
| Lua | mit | profburke/ios-icons,profburke/ios-icons,profburke/ios-icons |
a8039b2e0e34c1c48e129b3b815fb62da9a0ccb3 | scheduled/spawnpoint.lua | scheduled/spawnpoint.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 spawnPoint | Fix spawnPoint
| Lua | agpl-3.0 | LaFamiglia/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content |
ec78031251b3f5e7cc343144141d92dfbe51fa7e | src/cosy/cli/test.lua | src/cosy/cli/test.lua | -- These lines are required to correctly run tests:
require "cosy.loader.busted"
require "busted.runner" ()
local File = require "cosy.file"
describe ("Module cosy.cli", function ()
local Cli
local Configuration
before_each (function ()
package.loaded ["cosy.cli"] = nil -- reload to reset
Cli = requir... | -- These lines are required to correctly run tests:
require "cosy.loader.busted"
require "busted.runner" ()
local File = require "cosy.file"
describe ("Module cosy.cli", function ()
local Cli
local Configuration
before_each (function ()
package.loaded ["cosy.cli"] = nil -- reload to reset
Cli = requir... | Fix comments. | Fix comments.
| Lua | mit | CosyVerif/library,CosyVerif/library,CosyVerif/library |
b5e08529c5257589df14cea7942bacf634f7ba54 | share/luaplaylist/youtube.lua | share/luaplaylist/youtube.lua | -- $Id$
-- Helper function to get a parameter's value in a URL
function get_url_param( url, name )
return string.gsub( vlc.path, "^.*"..name.."=([^&]*).*$", "%1" )
end
-- Probe function.
function probe()
return vlc.access == "http"
and string.match( vlc.path, "youtube.com" )
and ( string.mat... | -- $Id$
-- Helper function to get a parameter's value in a URL
function get_url_param( url, name )
return string.gsub( vlc.path, "^.*"..name.."=([^&]*).*$", "%1" )
end
-- Probe function.
function probe()
return vlc.access == "http"
and string.match( vlc.path, "youtube.com" )
and ( string.mat... | Fixes youtube parsing on www.youtube.com website | Fixes youtube parsing on www.youtube.com website
| Lua | lgpl-2.1 | jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,shyamalschandra/vlc,vlc-mirror/vlc-2.1,vlc-mirror/vlc,vlc-mirror/vlc,jomanmuk/vlc-2.1,shyamalschandra/vlc,shyamalschandra/vlc,shyamalschandra/vlc,jomanmuk/vlc-2.2,vlc-mirror/vlc,vlc-mirror/vlc,vlc-mirror/vlc-2.1,jomanmuk/vlc-2.2,jomanmuk/vlc-2.1,xkfz007/vlc,vlc-mirror/vlc,jomanmuk/vlc-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.