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 |
|---|---|---|---|---|---|---|---|---|---|
bb595a1cbe8d4a4fe7e09e3884fe0fc9734a7d12 | util/stanza.lua | util/stanza.lua | local t_insert = table.insert;
local t_remove = table.remove;
local s_format = string.format;
local tostring = tostring;
local setmetatable = setmetatable;
local pairs = pairs;
local ipairs = ipairs;
local type = type;
local unpack = ... | local t_insert = table.insert;
local t_remove = table.remove;
local s_format = string.format;
local tostring = tostring;
local setmetatable = setmetatable;
local pairs = pairs;
local ipairs = ipairs;
local type = type;
local unpack = ... | Fixed: util.stanza.deserialize now handles nil stanzas | Fixed: util.stanza.deserialize now handles nil stanzas
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
28414516c931d2e87ee268a4a0444ef7765bcf45 | resources/stdlibrary/stdfuncs.lua | resources/stdlibrary/stdfuncs.lua | function assert(v, message) end
function collectgarbage(opt, arg) end
function dofile(filename) end
function error(message, level) end
function getfenv(f) end
function getmetatable(object) end
function ipairs (t) end
function load(func, optChunkname) end
function loadfile (filename) end
function loadstring (st... | function assert(v, message) end
function collectgarbage(opt, arg) end
function dofile(filename) end
function error(message, level) end
function getfenv(f) end
function getmetatable(object) end
function ipairs (t) end
function load(func, optChunkname) end
function loadfile (filename) end
function loadstring (st... | add io.stdin/io.stdout to stdfuncs (fix #64) | add io.stdin/io.stdout to stdfuncs (fix #64)
| Lua | apache-2.0 | internetisalie/lua-for-idea,internetisalie/lua-for-idea,internetisalie/lua-for-idea,internetisalie/lua-for-idea |
2740edee75c63f485e213dc0280ec52af4898b82 | pud/entity/EntityRegistry.lua | pud/entity/EntityRegistry.lua | local Class = require 'lib.hump.class'
-- EntityRegistry
--
local EntityRegistry = Class{name='EntityRegistry',
function(self)
self._registry = {}
self._byname = {}
self._bytype = {}
end
}
-- destructor
function EntityRegistry:destroy()
for k in pairs(self._registry) do
self._registry[k]:destroy()
self._... | local Class = require 'lib.hump.class'
-- EntityRegistry
--
local EntityRegistry = Class{name='EntityRegistry',
function(self)
self._registry = {}
self._byname = {}
self._bytype = {}
end
}
-- destructor
function EntityRegistry:destroy()
for k in pairs(self._registry) do
self._registry[k]:destroy()
self._... | fix dumpEntities when entities don't exist | fix dumpEntities when entities don't exist
| Lua | mit | scottcs/wyx |
1c5d07414e8455b8ef1df6e86b0e3cc71d5865a6 | src/main/resources/moe/lymia/mppatch/data/patch/hooks/before_stagingroom.lua | src/main/resources/moe/lymia/mppatch/data/patch/hooks/before_stagingroom.lua | if _mpPatch and _mpPatch.enabled then
Modding = _mpPatch.hookTable(Modding, {ActivateAllowedDLC = function(...)
_mpPatch.overrideModsFromPreGame()
return Modding._super.ActivateAllowedDLC(...)
end})
Matchmaking = _mpPatch.hookTable(Matchmaking, {LaunchMultiplayerGame = function(...)
... | if _mpPatch and _mpPatch.enabled then
Modding = _mpPatch.hookTable(Modding, {ActivateAllowedDLC = function(...)
_mpPatch.overrideModsFromPreGame()
return Modding._super.ActivateAllowedDLC(...)
end})
Matchmaking = _mpPatch.hookTable(Matchmaking, {LaunchMultiplayerGame = function(...)
... | ... more patch fixing. | ... more patch fixing.
| Lua | mit | Lymia/MPPatch,Lymia/MultiverseModManager,Lymia/MPPatch,Lymia/MPPatch,Lymia/MPPatch,Lymia/CivV_Mod2DLC,Lymia/MultiverseModManager |
22a20e104e3d8d9e800f452398d33e18cfadcb9d | lua/entities/gmod_wire_expression2/core/cl_hologram.lua | lua/entities/gmod_wire_expression2/core/cl_hologram.lua | -- Replicated from serverside, same function as the one below except this takes precedence
local holoDisplayCVar = GetConVar("wire_holograms_display_owners_maxdist")
local holoDisplayCVarCL = CreateClientConVar( "wire_holograms_display_owners_maxdist_cl" , "-1", true, false,
"The maximum distance that wire_holograms_d... | -- Replicated from serverside, same function as the one below except this takes precedence
local holoDisplayCVar = CreateConVar("wire_holograms_display_owners_maxdist", "-1", {FCVAR_REPLICATED})
local holoDisplayCVarCL = CreateClientConVar( "wire_holograms_display_owners_maxdist_cl" , "-1", true, false,
"The maximum d... | Fix for cvar not replicating (#2274) | Fix for cvar not replicating (#2274)
Made the required cvar actually get created on the clientside so it has something to replicate to | Lua | apache-2.0 | Grocel/wire,wiremod/wire,dvdvideo1234/wire |
3f1ce3b2a9034d1045047a4ed13380ab7a4c1ca8 | docker/notelauncher.lua | docker/notelauncher.lua | --
-- Module for managing notebook container instances running with the docker module
--
-- author: Steve Chan sychan@lbl.gov
--
-- Copyright 2013 The Regents of the University of California,
-- Lawrence Berkeley National Laboratory
-- United States Department of Energy
-- The D... | --
-- Module for managing notebook container instances running with the docker module
--
-- author: Steve Chan sychan@lbl.gov
--
-- Copyright 2013 The Regents of the University of California,
-- Lawrence Berkeley National Laboratory
-- United States Department of Energy
-- The D... | Added Shane's possible fix to notelauncher | Added Shane's possible fix to notelauncher
| Lua | mit | psnovichkov/narrative,briehl/narrative,pranjan77/narrative,rsutormin/narrative,jmchandonia/narrative,jmchandonia/narrative,pranjan77/narrative,nlharris/narrative,aekazakov/narrative,jmchandonia/narrative,msneddon/narrative,jmchandonia/narrative,psnovichkov/narrative,kbase/narrative,pranjan77/narrative,pranjan77/narrati... |
f3cc92434ae14b4630aec4bc7b995e74ecd1ebe1 | src/lua-factory/sources/grl-acoustid.lua | src/lua-factory/sources/grl-acoustid.lua | --[[
* Copyright (C) 2016 Grilo Project
*
* 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 op... | --[[
* Copyright (C) 2016 Grilo Project
*
* 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 op... | grl-acoustid: Fix indentation | grl-acoustid: Fix indentation
| Lua | lgpl-2.1 | jasuarez/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,grilofw/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins |
69d2b6824ee18b672132661e9e162e88af6f8c6b | SpatialBatchNormalization.lua | SpatialBatchNormalization.lua | local SpatialBatchNormalization, parent = torch.class('cudnn.SpatialBatchNormalization', 'nn.SpatialBatchNormalization')
local ffi = require 'ffi'
local errcheck = cudnn.errcheck
function SpatialBatchNormalization:__init(nFeature, eps, momentum, affine)
parent.__init(self, nFeature, eps, momentum, affine)
self.m... | local SpatialBatchNormalization, parent = torch.class('cudnn.SpatialBatchNormalization', 'nn.Module')
local ffi = require 'ffi'
local errcheck = cudnn.errcheck
function SpatialBatchNormalization:__init(nFeature, eps, momentum, affine)
parent.__init(self)
assert(nFeature and type(nFeature) == 'number',
'Mi... | Fix cudnn.SpatialBatchNormalization after nn change | Fix cudnn.SpatialBatchNormalization after nn change
| Lua | bsd-3-clause | phunghx/phnn.torch,phunghx/phnn.torch,phunghx/phnn.torch |
70005feff95d55de2e4ec31aee80ef788f86fe24 | core/utilities.lua | core/utilities.lua | local utilities = { }
function utilities.required(t, name, context)
if not t[name] then utilities.error(context.." needs a "..name.." parameter") end
return t[name]
end
function utilities.error(message)
print("\n! "..message)
os.exit(1)
end
function utilities.debugging(category)
return SILE.debugFlags[cate... | local utilities = { }
function utilities.required(t, name, context)
if not t[name] then utilities.error(context.." needs a "..name.." parameter") end
return t[name]
end
function utilities.error(message)
print("\n! "..message)
os.exit(1)
end
function utilities.warn(message)
print("\n! "..message)
print(de... | Warning function for internal bugs. | Warning function for internal bugs. | Lua | mit | shirat74/sile,Nathan22Miles/sile,WAKAMAZU/sile_fe,Nathan22Miles/sile,WAKAMAZU/sile_fe,Nathan22Miles/sile,simoncozens/sile,anthrotype/sile,anthrotype/sile,Nathan22Miles/sile,Nathan22Miles/sile,alerque/sile,anthrotype/sile,WAKAMAZU/sile_fe,neofob/sile,simoncozens/sile,neofob/sile,simoncozens/sile,neofob/sile,shirat74/sil... |
83abc7b0701e5f0e5f58eadbb830e6d771c153ca | alchemy/lte/id_59_attribs.lua | alchemy/lte/id_59_attribs.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 variables usage | fix variables usage
| Lua | agpl-3.0 | KayMD/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content,Baylamon/Illarion-Content |
a7fd6596da16774ab93939f8ba59cb0fbd48cd27 | scripts/before_install.lua | scripts/before_install.lua | import("core.platform.platform")
import("core.base.option")
function main(target)
if target:isphony() then
return
end
local targetname = target:name()
if "_hikyuu" ~= targetname then
return
end
local installdir = option.get("installdir") or os.getenv("INSTALLDIR") or os.g... | import("core.platform.platform")
import("core.base.option")
function main(target)
if target:isphony() then
return
end
local targetname = target:name()
if "_hikyuu" ~= targetname then
return
end
local installdir = option.get("installdir") or os.getenv("INSTALLDIR") or os.g... | fixed #IVH02 安装目标路径如果带有空格导致安装失败 | fixed #IVH02 安装目标路径如果带有空格导致安装失败
| Lua | mit | fasiondog/hikyuu |
df4534d8591750aef1c053143d0ffa47e5855b82 | mod/mpi/config/scripts/image_statusbar.lua | mod/mpi/config/scripts/image_statusbar.lua | local on = mp.get_opt('images-statusbar') == 'yes'
-- lua-filesize, generate a human readable string describing the file size
-- Copyright (c) 2016 Boris Nagaev
-- See the LICENSE file for terms of use.
local si = {"B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}
local function isNan(num)
-- http://lua-users... | local on = mp.get_opt('images-statusbar') == 'yes'
-- lua-filesize, generate a human readable string describing the file size
-- Copyright (c) 2016 Boris Nagaev
-- See the LICENSE file for terms of use.
local si = {"B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"}
local function isNan(num)
-- http://lua-users... | mod/mpi: fix statusbar showing/hiding | mod/mpi: fix statusbar showing/hiding
The force_redraw() trick, every time a file was loaded, discarded all
messages that were shown at that time.
This behavior, for example, was the cause behind "Slide show started"
message (which is provided by the slideshow script) disappearing as soon
as the file has been loaded ... | Lua | mit | rr-/dotfiles,rr-/dotfiles,rr-/dotfiles |
0b68b2aec676e737930743e7136e21c97f0ff292 | worldedit_commands/cuboid.lua | worldedit_commands/cuboid.lua | dofile(minetest.get_modpath("worldedit_commands") .. "/cuboidapi.lua")
minetest.register_chatcommand("/outset", {
params = "[h|v] <amount>",
description = "outset the selection",
privs = {worldedit=true},
func = function(name, param)
local find, _, dir, amount = param:find("(%a*)%s*([+-]?%d+)")
if find == ... | dofile(minetest.get_modpath("worldedit_commands") .. "/cuboidapi.lua")
minetest.register_chatcommand("/outset", {
params = "[h|v] <amount>",
description = "outset the selection",
privs = {worldedit=true},
func = function(name, param)
local find, _, dir, amount = param:find("(%a*)%s*([+-]?%d+)")
if find == ... | Fix //shift with absolute axis (x/y/z) | Fix //shift with absolute axis (x/y/z)
| Lua | agpl-3.0 | Uberi/Minetest-WorldEdit |
a492fa546117bf76d5ec9d3e484920551e106948 | testserver/item/signpost.lua | testserver/item/signpost.lua | -- Wegweiserskript
-- Nitram
require("base.common")
require("content.signpost")
module("item.signpost", package.seeall)
-- UPDATE common SET com_script='item.signpost' WHERE com_itemid IN (1817,1809,1808,1807,308,1804,586,3084,3081,3082,3083,519,520,521,337,1914,1915,2046,2069,512,2924,2925,2926,2927);
function Look... | -- Wegweiserskript
-- Nitram
require("base.common")
require("content.signpost")
module("item.signpost", package.seeall)
-- UPDATE common SET com_script='item.signpost' WHERE com_itemid IN (1817,1809,1808,1807,308,1804,586,3084,3081,3082,3083,519,520,521,337,1914,1915,2046,2069,512,2924,2925,2926,2927);
function Look... | Fix signpost lookat | Fix signpost lookat
| Lua | agpl-3.0 | Baylamon/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content,LaFamiglia/Illarion-Content |
1b07c4d6e5deb6af713572460abdada6c35792ec | modules/textadept/run.lua | modules/textadept/run.lua | -- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE.
local L = _G.locale.localize
---
-- Module for running/executing source files.
-- Typically, language-specific modules populate the 'compile_command',
-- 'run_command', and 'error_detail' tables for a particular language's file
-- extension.
mod... | -- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE.
local L = _G.locale.localize
---
-- Module for running/executing source files.
-- Typically, language-specific modules populate the 'compile_command',
-- 'run_command', and 'error_detail' tables for a particular language's file
-- extension.
mod... | Fixed bug in modules/textadept/run.lua from localization changes. | Fixed bug in modules/textadept/run.lua from localization changes.
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
17196beda6029808f36294a126d9c2547c5329ee | mod_s2s_reload_newcomponent/mod_s2s_reload_newcomponent.lua | mod_s2s_reload_newcomponent/mod_s2s_reload_newcomponent.lua | local modulemanager = require "core.modulemanager";
local config = require "core.configmanager";
module.host = "*";
local function reload_components()
module:log ("debug", "reload_components");
local defined_hosts = config.getconfig();
for host in pairs(defined_hosts) do
modu... | local modulemanager = require "core.modulemanager";
local config = require "core.configmanager";
module.host = "*";
local function reload_components()
local defined_hosts = config.getconfig();
for host in pairs(defined_hosts) do
if (not hosts[host] and host ~= "*") then
... | mod_s2s_reload_newcomponent: fix debug logs | mod_s2s_reload_newcomponent: fix debug logs
| Lua | mit | mardraze/prosody-modules,softer/prosody-modules,crunchuser/prosody-modules,stephen322/prosody-modules,obelisk21/prosody-modules,brahmi2/prosody-modules,dhotson/prosody-modules,NSAKEY/prosody-modules,heysion/prosody-modules,LanceJenkinZA/prosody-modules,iamliqiang/prosody-modules,jkprg/prosody-modules,LanceJenkinZA/pros... |
9a06498dbdf5f5878d2ce86a4b9ac8abc9173bdc | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/memory.lua | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/memory.lua | --[[
(c) 2011 Manuel Munz <freifunk at somakoma dot de>
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
]]--
module("luci.statistics.rrdtool.def... | --[[
(c) 2011 Manuel Munz <freifunk at somakoma dot de>
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
]]--
module("luci.statistics.rrdtool.def... | statistics: memory plugin - improve graph by better scaling of y-axis | statistics: memory plugin - improve graph by better scaling of y-axis
Utilise alt_autoscale_max to make the memory chart y-axis to scale better
for devices with e.g. 128 MB RAM.
Also fix the axis min value to 0.
Signed-off-by: Hannu Nyman <ab53a3387de93e31696058c104e6f769cd83fd1b@iki.fi>
| Lua | apache-2.0 | forward619/luci,oyido/luci,openwrt/luci,zhaoxx063/luci,oyido/luci,chris5560/openwrt-luci,dwmw2/luci,kuoruan/luci,jorgifumi/luci,cshore-firmware/openwrt-luci,daofeng2015/luci,thesabbir/luci,bright-things/ionic-luci,teslamint/luci,taiha/luci,bittorf/luci,rogerpueyo/luci,aa65535/luci,openwrt/luci,lbthomsen/openwrt-luci,br... |
7fa9b042017afb0af17e3db15c99d46c7619624b | lib/drivers/abbott/tools/fslibre_usb_dissector.lua | lib/drivers/abbott/tools/fslibre_usb_dissector.lua | --
-- Wireshark plugin to dissect the USB HID packets of the Abbott FreeStyle Libre
--
-- TODO: does not yet handle AAP frame reassembly
local fslibre_usb = Proto("fslibre_usb", "Abbott FreeStyle Libre USB Protocol")
local fslibre_dump = ProtoField.new("FSLibre Dump", "fslibre_usb.dump", ftypes.BYTES)
local comman... | --
-- Wireshark plugin to dissect the USB HID packets of the Abbott FreeStyle Libre
--
-- TODO: does not yet handle AAP frame reassembly
local fslibre_usb = Proto("fslibre_usb", "Abbott FreeStyle Libre USB Protocol")
local fslibre_dump = ProtoField.new("FSLibre Dump", "fslibre_usb.dump", ftypes.BYTES)
local comman... | small fixes to wireshark protocol dissector | small fixes to wireshark protocol dissector
| Lua | bsd-2-clause | tidepool-org/chrome-uploader,tidepool-org/chrome-uploader,tidepool-org/chrome-uploader |
9ffa7f1ca4417fb1835fcd942d7c950058dcfc5e | src/rspamadm/stat_convert.lua | src/rspamadm/stat_convert.lua | local sqlite3 = require "rspamd_sqlite3"
local redis = require "rspamd_redis"
local _ = require "fun"
local function send_redis(server, symbol, tokens)
local ret = true
local args = {}
_.each(function(t)
if not args[t[3]] then
args[t[3]] = {symbol .. t[3]}
end
table.insert(args[t[3]], t[1])
... | local sqlite3 = require "rspamd_sqlite3"
local redis = require "rspamd_redis"
local _ = require "fun"
local function send_redis(server, symbol, tokens)
local ret = true
local args = {}
_.each(function(t)
if not args[t[3]] then
args[t[3]] = {symbol .. t[3]}
end
table.insert(args[t[3]], t[1])
... | Fix stat migration script | Fix stat migration script
| Lua | bsd-2-clause | AlexeySa/rspamd,AlexeySa/rspamd,minaevmike/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,minaevmike/rspamd,minaevmike/rspamd,minaevmike/rspamd,minaevmike/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,minaevmike/rspamd,minaevmike/rspamd,AlexeySa/rspamd,andrejzverev/rspamd,... |
de71b820558479920842537ad6a0f914e80fabb5 | kong/plugins/filelog/log.lua | kong/plugins/filelog/log.lua | -- Copyright (C) Mashape, Inc.
local ffi = require "ffi"
local bit = require "bit"
local cjson = require "cjson"
local fd_util = require "kong.plugins.filelog.fd_util"
local basic_serializer = require "kong.plugins.log_serializers.basic"
ffi.cdef[[
int open(char * filename, int flags, int mode);
int write(int fd, voi... | -- Copyright (C) Mashape, Inc.
local ffi = require "ffi"
local bit = require "bit"
local cjson = require "cjson"
local fd_util = require "kong.plugins.filelog.fd_util"
local basic_serializer = require "kong.plugins.log_serializers.basic"
ffi.cdef[[
int open(char * filename, int flags, int mode);
int write(int fd, voi... | Fixing file permissions, closes #461 | Fixing file permissions, closes #461
Former-commit-id: 47692e9b4f9c72e331df3a164eeb6b247b2fe83c | Lua | apache-2.0 | jebenexer/kong,akh00/kong,ind9/kong,vzaramel/kong,icyxp/kong,vzaramel/kong,kyroskoh/kong,rafael/kong,ajayk/kong,kyroskoh/kong,Kong/kong,Vermeille/kong,shiprabehera/kong,ind9/kong,beauli/kong,li-wl/kong,isdom/kong,ccyphers/kong,ejoncas/kong,smanolache/kong,Mashape/kong,jerizm/kong,xvaara/kong,Kong/kong,Kong/kong,ejoncas... |
4a83d3a188e22728bafa2c428212ff95efc1929e | plugins/weather.lua | plugins/weather.lua | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
local url = BASE_URL
url = url.."?q="..location
url = url.."&units=metric"
url = url.."&appid=61cc78f1feb326ba7f3d3948ad690671"
print(url)
local b, c, h = htt... | do
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local API_KEY = ""
local function get_weather(location)
print("Finding weather in ", location)
local url = BASE_URL
url = url.."?q="..location
url = url.."&units=metric"
url = url.."&appid="..API_KEY
print(url)
local b, c, h = http.re... | Bug fix | Bug fix
| Lua | mit | KevinGuarnati/controllore,KevinGuarnati/controllore |
39c68c3d90c7c7ddaff4fd37f3f81e503670d19e | testserver/npc/base/talk.lua | testserver/npc/base/talk.lua | --- Base NPC script for talking NPCs
--
-- This script offers all functions needed to get NPCs to talk.
--
-- Author: Martin Karing
require("base.common")
require("base.messages")
require("base.class")
require("npc.base.basic")
require("npc.base.responses")
module("npc.base.talk", package.seeall)
talkNPC = base.clas... | --- Base NPC script for talking NPCs
--
-- This script offers all functions needed to get NPCs to talk.
--
-- Author: Martin Karing
require("base.common")
require("base.messages")
require("base.class")
require("npc.base.basic")
require("npc.base.responses")
module("npc.base.talk", package.seeall)
talkNPC = base.clas... | Added talking mode support to easyNPC | Added talking mode support to easyNPC
EasyNPCs now support whispered, shouted and ooc text properly by using the
same prefix tags like the players in the game.
| Lua | agpl-3.0 | vilarion/Illarion-Content,Illarion-eV/Illarion-Content,LaFamiglia/Illarion-Content,KayMD/Illarion-Content,Baylamon/Illarion-Content |
89c738d1b366bd112e89a10d283788497635d3fa | monster/base/behaviour/hostileWildlife.lua | monster/base/behaviour/hostileWildlife.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... | Fixing running away for monsters | Fixing running away for monsters
| Lua | agpl-3.0 | Baylamon/Illarion-Content,vilarion/Illarion-Content,KayMD/Illarion-Content,Illarion-eV/Illarion-Content |
3327bb7f82e0fed1d90e18e4fe49464a59e03c85 | lualib/socket.lua | lualib/socket.lua | local driver = require "socketdriver"
local skynet = require "skynet"
local assert = assert
local socket = {} -- api
local buffer_pool = {} -- store all message buffer object
local socket_pool = setmetatable( -- store all socket object
{},
{ __gc = function(p)
for id,v in pairs(p) do
driver.close(id)
-- don'... | local driver = require "socketdriver"
local skynet = require "skynet"
local assert = assert
local socket = {} -- api
local buffer_pool = {} -- store all message buffer object
local socket_pool = setmetatable( -- store all socket object
{},
{ __gc = function(p)
for id,v in pairs(p) do
driver.close(id)
-- don'... | queue lock request in socket, fix issue #51 | queue lock request in socket, fix issue #51
| Lua | mit | great90/skynet,liuxuezhan/skynet,sanikoyes/skynet,zhangshiqian1214/skynet,puXiaoyi/skynet,KittyCookie/skynet,czlc/skynet,your-gatsby/skynet,wangyi0226/skynet,MRunFoss/skynet,peimin/skynet,plsytj/skynet,lawnight/skynet,cmingjian/skynet,zzh442856860/skynet,firedtoad/skynet,sundream/skynet,sundream/skynet,qyli/test,microc... |
fb298aaf2c1ca7c64cbcc3078141334f9850c8fe | lualib/socket.lua | lualib/socket.lua | local buffer = require "socketbuffer"
local skynet = require "skynet"
local table = table
local next = next
local assert = assert
local coroutine = coroutine
local type = type
local READBUF = {} -- fd:buffer
local READREQUEST = {} -- fd:request_size
local READSESSION = {} -- fd:session
local READLOCK = {} -- fd:queue(... | local buffer = require "socketbuffer"
local skynet = require "skynet"
local table = table
local next = next
local assert = assert
local coroutine = coroutine
local type = type
local READBUF = {} -- fd:buffer
local READREQUEST = {} -- fd:request_size
local READSESSION = {} -- fd:session
local READLOCK = {} -- fd:queue(... | bugfix: socket read lock/unlock | bugfix: socket read lock/unlock
| Lua | mit | icetoggle/skynet,LiangMa/skynet,zhangshiqian1214/skynet,Markal128/skynet,zhangshiqian1214/skynet,bttscut/skynet,jxlczjp77/skynet,wangyi0226/skynet,boyuegame/skynet,MRunFoss/skynet,cuit-zhaxin/skynet,pichina/skynet,fztcjjl/skynet,togolwb/skynet,chfg007/skynet,kyle-wang/skynet,winglsh/skynet,QuiQiJingFeng/skynet,kyle-wan... |
f572340e58ee910973ded0d72df9dcb69e00d851 | src_trunk/resources/job-system/c_job_framework.lua | src_trunk/resources/job-system/c_job_framework.lua | job = 0
localPlayer = getLocalPlayer()
function playerSpawn()
local logged = getElementData(source, "loggedin")
if (logged==1) then
job = tonumber(getElementData(source, "job"))
outputDebugString(tostring(job))
if (job==1) then -- TRUCKER
resetTruckerJob()
setTimer(displayTruckerJob, 1000, 1)... | job = 0
localPlayer = getLocalPlayer()
function playerSpawn()
local logged = getElementData(source, "loggedin")
if (logged==1) then
job = tonumber(getElementData(source, "job"))
if (job==1) then -- TRUCKER
resetTruckerJob()
setTimer(displayTruckerJob, 1000, 1)
elseif (job==2) then -- TAXI... | Few tiny bug fixes | Few tiny bug fixes
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@598 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
d61847e7b1206298a440311cffca15db7d2dcc0e | premake5.lua | premake5.lua | workspace("qor")
targetdir("bin")
configurations {"Debug", "Release"}
defines { "GLM_FORCE_RADIANS" }
-- Debug Config
configuration "Debug"
defines { "DEBUG" }
symbols "On"
linkoptions { }
configuration "linux"
... | workspace("qor")
targetdir("bin")
configurations {"Debug", "Release"}
defines { "GLM_FORCE_RADIANS" }
-- Debug Config
configuration "Debug"
defines { "DEBUG" }
symbols "On"
linkoptions { }
configuration "linux"
... | windows compilation fixes | windows compilation fixes
| Lua | mit | flipcoder/qor,flipcoder/qor,flipcoder/qor,flipcoder/qor |
806ca4d8f19c3613eba56b1e6b0d07e81bdac51e | plugins/mod_version.lua | plugins/mod_version.lua | -- Prosody IM
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local prosody = prosody;
local st = require "util.stanza";
local xmlns_version = "jabber:iq:version"
m... | -- Prosody IM
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local st = require "util.stanza";
module:add_feature("jabber:iq:version");
local version = "the best op... | mod_version: Rewritten to use new API. Added reply caching, and fixed some issues. | mod_version: Rewritten to use new API. Added reply caching, and fixed some issues.
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
dabadc7b229419989b2f36d6a4019354404c20ca | attack-on-deadline/RoomSelect.lua | attack-on-deadline/RoomSelect.lua | --[[
ルーム選択画面
概要:
・サーバから取得したルーム一覧を表示
・新規にルーム作成もできる
・既存ルーム選択、新規ルーム作成をサーバに要求する
・サーバから正常な結果が返ってきたら、ルーム確認画面に遷移する
]]
function setup()
if not rootTbl then
rootTbl = {}
end
local x = 0
local y = 0
local pForm = UI_Form(nil, -- arg[1]: 親となるUIタスクのポインタ
7000, -- arg[2]: 基準表示プライオリティ
x, y, -- arg[3,4]: 表示位置
"asset:... | --[[
ルーム選択画面
概要:
・サーバから取得したルーム一覧を表示
・新規にルーム作成もできる
・既存ルーム選択、新規ルーム作成をサーバに要求する
・サーバから正常な結果が返ってきたら、ルーム確認画面に遷移する
]]
function setup()
if not rootTbl then
rootTbl = {}
end
local x = 0
local y = 0
local pForm = UI_Form(nil, -- arg[1]: 親となるUIタスクのポインタ
7000, -- arg[2]: 基準表示プライオリティ
x, y, -- arg[3,4]: 表示位置
"asset:... | fix typo | fix typo
| Lua | apache-2.0 | mhidaka/playgroundthon,mhidaka/playgroundthon,mhidaka/playgroundthon,mhidaka/playgroundthon,mhidaka/playgroundthon,mhidaka/playgroundthon,mhidaka/playgroundthon |
5344b9c1af64b1d16539f8844e1e890587c84d44 | OS/DiskOS/APIS/RamUtils.lua | OS/DiskOS/APIS/RamUtils.lua | --RAM Utilities.
--Variabes.
local sw,sh = screenSize()
--Localized Lua Library
local unpack = unpack
local floor, ceil, min = math.floor, math.ceil, math.min
local strChar, strByte = string.char, string.byte
local lshift, rshift, bor, band = bit.lshift, bit,rshift, bit.bor, bit.band
--The API
local RamUtils = {}
R... | --RAM Utilities.
--Variabes.
local sw,sh = screenSize()
--Localized Lua Library
local unpack = unpack
local floor, ceil, min = math.floor, math.ceil, math.min
local strChar, strByte = string.char, string.byte
local lshift, rshift, bor, band = bit.lshift, bit.rshift, bit.bor, bit.band
--The API
local RamUtils = {}
R... | Trying to fix (bin <-> num) functions | Trying to fix (bin <-> num) functions | Lua | mit | RamiLego4Game/LIKO-12 |
e2b9137420b3444766d28ca8b773bfee7e978c68 | spec/resty/concurrent/timer_task_spec.lua | spec/resty/concurrent/timer_task_spec.lua | local TimerTask = require('resty.concurrent.timer_task')
local ngx_timer = ngx.timer
describe('TimerTask', function()
local test_task = function() end
before_each(function()
TimerTask.active_tasks = {}
end)
describe('.register_task', function()
it('adds an ID to the list of active tasks', function()
... | local TimerTask = require('resty.concurrent.timer_task')
local ngx_timer = ngx.timer
describe('TimerTask', function()
local test_task = function() end
before_each(function()
TimerTask.active_tasks = {}
end)
after_each(function()
-- We need to trigger a GC cycle after each test.
-- Instances of Ti... | spec/resty/concurrent/timer_task: run the GC after each test | spec/resty/concurrent/timer_task: run the GC after each test
This fixes a flaky test.
| Lua | mit | 3scale/docker-gateway,3scale/apicast,3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/apicast |
e34b843e61c14e8526b3b18a958a81d53994a5ff | gwen/Projects/premake4.lua | gwen/Projects/premake4.lua | dofile( "inc/include.lua" )
solution "GWEN"
language "C++"
location ( os.get() .. "/" .. _ACTION )
flags { "Unicode", "Symbols", "NoEditAndContinue", "NoPCH",
"No64BitChecks", "StaticRuntime", "EnableSSE" } -- "NoRTTI"
targetdir ( "../lib/" .. os.get() .. "/" .. _ACTION )
libdirs { "../lib/", "../lib... | dofile( "inc/include.lua" )
solution "GWEN"
language "C++"
location ( os.get() .. "/" .. _ACTION )
flags { "Unicode", "Symbols", "NoEditAndContinue", "NoPCH",
"No64BitChecks", "StaticRuntime", "EnableSSE" } -- "NoRTTI"
targetdir ( "../lib/" .. os.get() .. "/" .. _ACTION )
libdirs { "../lib/", "../lib... | Visual Studio multi-processor compilation fix | Visual Studio multi-processor compilation fix
- Fixed premake script to disable Minimal Rebuild (/Gm) in order
to build with multi-processor compilation
| Lua | mit | garrynewman/GWEN,garrynewman/GWEN,garrynewman/GWEN |
fe14180a6b5ba8ef1caa61c50dba11be848ff011 | Modules/Events/TimeSyncManager.lua | Modules/Events/TimeSyncManager.lua | local MasterClock = {}
MasterClock.__index = MasterClock
MasterClock.ClassName = "MasterClock"
-- MasterClock sends time to client.
function MasterClock.new(SyncEvent, DelayedRequestFunction)
local self = {}
setmetatable(self, MasterClock)
self.SyncEvent = SyncEvent
self.DelayedRequestFunction = DelayedRequestF... |
local MasterClock = {}
MasterClock.__index = MasterClock
MasterClock.ClassName = "MasterClock"
-- MasterClock sends time to client.
function MasterClock.new(SyncEvent, DelayedRequestFunction)
local self = {}
setmetatable(self, MasterClock)
self.SyncEvent = SyncEvent
self.DelayedRequestFunction = DelayedRequest... | Edge case fix | Edge case fix
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
85811b2b3f03914a7183f967c6b476e0a722caee | src/rules.lua | src/rules.lua | require 'Target'
local system = require 'system'
local mkpath = system.mkpath
local P = {}
local Rule = {
init_stages = { 'unpack', 'patch' }
}
Rule.__index = Rule
local function import_paths(filename)
local o = {}
table.insert(o, mkpath(jagen.dir, 'lib', filename))
for _, overlay in ipairs(string.... | require 'Target'
local system = require 'system'
local mkpath = system.mkpath
local P = {}
local Rule = {
init_stages = { 'unpack', 'patch' }
}
Rule.__index = Rule
local function import_paths(filename)
local o = {}
table.insert(o, mkpath(jagen.dir, 'lib', filename))
for _, overlay in ipairs(string.... | Fix adding stages for all configs | Fix adding stages for all configs
| Lua | mit | bazurbat/jagen |
fdd2c13b91bd1df68ee2f5150de4e0fdcd402ebc | packages/ruby.lua | packages/ruby.lua | SILE.registerCommand("ruby", function (o,c)
local reading = SU.required(o, "reading", "\\ruby")
SILE.call("hbox", {}, function()
SILE.settings.temporarily(function ()
SILE.call("noindent")
SILE.call("font", {size = "0.5zw"})
SILE.typesetter:typeset(reading)
end)
end)
local rubybox = SI... | SILE.registerCommand("ruby", function (o,c)
local reading = SU.required(o, "reading", "\\ruby")
SILE.call("hbox", {}, function()
SILE.settings.temporarily(function ()
SILE.call("noindent")
SILE.call("font", {size = "0.6zw", weight = 800 })
SILE.typesetter:typeset(reading)
end)
end)
loc... | Ruby fixes. | Ruby fixes. | Lua | mit | simoncozens/sile,neofob/sile,simoncozens/sile,alerque/sile,neofob/sile,alerque/sile,alerque/sile,simoncozens/sile,neofob/sile,alerque/sile,simoncozens/sile,neofob/sile |
df7f03853317cc954ecb9765c823fa32e59851f8 | tests/test-http-post-1mb.lua | tests/test-http-post-1mb.lua | --[[
Copyright 2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | --[[
Copyright 2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | fix tests/test-http-post-1mb.lua to pass | fix tests/test-http-post-1mb.lua to pass
| Lua | apache-2.0 | bsn069/luvit,kaustavha/luvit,zhaozg/luvit,luvit/luvit,kaustavha/luvit,luvit/luvit,kaustavha/luvit,bsn069/luvit,bsn069/luvit,zhaozg/luvit |
120f7b02529f25491e97ae3b849a9fdbab6f6872 | frontend/ui/reader/readerview.lua | frontend/ui/reader/readerview.lua | ReaderView = WidgetContainer:new{
document = nil,
state = {
page = 0,
pos = 0,
zoom = 1.0,
rotation = 0,
offset = {},
bbox = nil,
},
outer_page_color = 7,
-- DjVu page rendering mode (used in djvu.c:drawPage())
render_mode = 0, -- default to COLOR
-- Crengine view mode
view_mode = "page", -- defaul... | ReaderView = WidgetContainer:new{
document = nil,
state = {
page = 0,
pos = 0,
zoom = 1.0,
rotation = 0,
offset = {},
bbox = nil,
},
outer_page_color = 7,
-- DjVu page rendering mode (used in djvu.c:drawPage())
render_mode = 0, -- default to COLOR
-- Crengine view mode
view_mode = "page", -- defaul... | bug fix: signal ViewRecalculate event after panning | bug fix: signal ViewRecalculate event after panning
This make sure ReaderPaging get correct visible_area when
turnning to previous page.
| Lua | agpl-3.0 | apletnev/koreader-base,ashang/koreader,NiLuJe/koreader-base,frankyifei/koreader,houqp/koreader-base,noname007/koreader,Hzj-jie/koreader-base,Hzj-jie/koreader-base,Frenzie/koreader,apletnev/koreader-base,frankyifei/koreader-base,koreader/koreader-base,chihyang/koreader,apletnev/koreader-base,NiLuJe/koreader-base,NickSav... |
a37ddb1b49896cb6d1ba7865b808a8bb6e977f3c | modules/title/sites/komplett.lua | modules/title/sites/komplett.lua | local simplehttp = require'simplehttp'
local html2unicode = require'html'
local trim = function(s)
if(not s) then return end
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
end
local handler = function(queue, info)
local query = info.query
local path = info.path
if((query and query:match('sku=%d+')) or (path and ... | local simplehttp = require'simplehttp'
local html2unicode = require'html'
local trim = function(s)
if(not s) then return end
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
end
local handler = function(queue, info)
local query = info.query
local path = info.path
if((query and query:match('sku=%d+')) or (path and ... | title/komplett: fix site plugin | title/komplett: fix site plugin
| Lua | mit | torhve/ivar2,torhve/ivar2,torhve/ivar2,haste/ivar2 |
115c0f92e26e67e8fb6054bc109a050cee527707 | src/lua-factory/sources/grl-guardianvideos.lua | src/lua-factory/sources/grl-guardianvideos.lua | --[[
* Copyright (C) 2014 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 you... | --[[
* Copyright (C) 2014 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 you... | guardianvideos: Update for new API | guardianvideos: Update for new API
https://bugzilla.gnome.org/show_bug.cgi?id=737176
| Lua | lgpl-2.1 | MikePetullo/grilo-plugins,grilofw/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins,jasuarez/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,MathieuDuponchelle/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,MathieuDuponchelle/grilo-plugins,MathieuDuponchelle/grilo-plugins,MathieuDuponc... |
f7ecd723e64db34f59b627f6bf7e108046ec4f6f | mods/BeardLib-Editor/Classes/Map/Elements/lootbagelement.lua | mods/BeardLib-Editor/Classes/Map/Elements/lootbagelement.lua | EditorLootBag = EditorLootBag or class(MissionScriptEditor)
EditorLootBag.USES_POINT_ORIENTATION = true
function EditorLootBag:create_element()
self.super.create_element(self)
self._element.class = "ElementLootBag"
self._element.values.spawn_dir = Vector3(0, 0, 1)
self._element.values.push_multiplier = 0
se... | EditorLootBag = EditorLootBag or class(MissionScriptEditor)
EditorLootBag.USES_POINT_ORIENTATION = true
function EditorLootBag:create_element()
self.super.create_element(self)
self._element.class = "ElementLootBag"
self._element.values.spawn_dir = Vector3(0, 0, 1)
self._element.values.push_multiplier = 0
se... | Fixed #206 | Fixed #206 | Lua | mit | simon-wh/PAYDAY-2-BeardLib-Editor |
7a17e716f8776231c3e19f86e041366819cf8471 | openwrt/package/linkmeter/luasrc/controller/linkmeter/lm.lua | openwrt/package/linkmeter/luasrc/controller/linkmeter/lm.lua | module("luci.controller.linkmeter.lm", package.seeall)
function index()
local root = node()
root.target = call("rootredirect")
local page = node("lm")
page.target = template("linkmeter/index")
page.order = 10
page.sysauth = { "anon", "root" }
page.sysauth_authenticator = require "luci.controller.linkme... | module("luci.controller.linkmeter.lm", package.seeall)
function index()
local root = node()
root.target = call("rootredirect")
local page = node("lm")
page.target = template("linkmeter/index")
page.order = 10
page.sysauth = { "anon", "root" }
page.sysauth_authenticator = require "luci.controller.linkme... | [lm] Fix cross-site request forgery by using the url token | [lm] Fix cross-site request forgery by using the url token
| Lua | mit | CapnBry/HeaterMeter,CapnBry/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,kdakers80/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,shmick/HeaterMeter,dwright134/HeaterMeter,kdakers80/HeaterMeter,CapnBry/HeaterMeter,dwright134/HeaterMeter,dwright134/HeaterMeter,shmick/HeaterMeter,kd... |
00e548062a89cc34da37470b3ebde46601abc181 | src/game/StarterPlayer/StarterPlayerScripts/CameraScript.lua | src/game/StarterPlayer/StarterPlayerScripts/CameraScript.lua | -- ClassName: LocalScript
local OFFSET = Vector3.new(-45, 45, 45)
local FIELD_OF_VIEW = 25
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local run = game:GetService("RunService")
camera.FieldOfView = FIELD_OF_VIEW
local function onRenderStep()
local playerPosition = player.Charact... | -- ClassName: LocalScript
local OFFSET = Vector3.new(-45, 45, 45)
local FIELD_OF_VIEW = 25
local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local run = game:GetService("RunService")
camera.FieldOfView = FIELD_OF_VIEW
local function lookAt(pos)
local cameraPos = pos + OFFSET
camera.... | Fix camera errors when the player dies | Fix camera errors when the player dies
We didn't check to make sure that the character actually exists before
continuing, so when the player drops into the void and their character is
deleted, we got constant errors from RenderStepped. This fixes that.
| Lua | mit | VoxelDavid/echo-ridge |
1e68f15550c448f4c546b04ffd9deaeecdf6715d | mod_extauth/mod_extauth.lua | mod_extauth/mod_extauth.lua |
local nodeprep = require "util.encodings".stringprep.nodeprep;
local process = require "process";
local script_type = module:get_option("extauth_type");
assert(script_type == "ejabberd");
local command = module:get_option("extauth_command");
assert(type(command) == "string");
local host = module.host;
assert(not hos... | --
-- NOTE: currently this uses lpc; when waqas fixes process, it can go back to that
--
-- Prosody IM
-- Copyright (C) 2010 Waqas Hussain
-- Copyright (C) 2010 Jeff Mitchell
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local nodeprep = require ... | Add "generic" script support to mod_extauth, as well as lpc support until waqas fixes process | Add "generic" script support to mod_extauth, as well as lpc support until waqas fixes process
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
f025436a162776c2fbf04bdbd9c41ab310d388b6 | Quadtastic/Exporters.lua | Quadtastic/Exporters.lua | local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or ''
local common = require(current_folder .. ".common")
local exporters = {}
-- Creates the empty exporters directory and copies the Readme file to it.
function exporters.init(dirname)
if not love.filesystem.exists(dirname) then
love.filesystem.creat... | local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or ''
local common = require(current_folder .. ".common")
local exporters = {}
-- Creates the empty exporters directory and copies the Readme file to it.
function exporters.init(dirname)
if not love.filesystem.exists(dirname) then
love.filesystem.creat... | Fix error that would fail to handle lua files that return nothing | Fix error that would fail to handle lua files that return nothing
| Lua | mit | 25A0/Quadtastic,25A0/Quadtastic |
c01c33bfb1d850188f6d90cd63372202cb0c7c54 | Modules/Events/Promise.lua | Modules/Events/Promise.lua | --- Promises, but without error handling as this screws with stack traces, using Roblox signals
-- @classmod Promise
-- See: https://promisesaplus.com/
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Maid = require("Maid")
local function _isSignal(value)
if typeof(value... | --- Promises, but without error handling as this screws with stack traces, using Roblox signals
-- @classmod Promise
-- See: https://promisesaplus.com/
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Maid = require("Maid")
local function _isSignal(value)
if typeof(value... | Fix promise:Wait() dropping threads | Fix promise:Wait() dropping threads
| Lua | mit | Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine |
38018c1347bef0ec6bff1b59ea1054eb27a012f5 | src/plugins/lua/rbl.lua | src/plugins/lua/rbl.lua | -- Configuration:
-- rbl {
-- default_ipv4 = true;
-- default_ipv6 = false;
-- default_received = true;
-- default_from = false;
-- rbls {
-- xbl {
-- rbl = "xbl.spamhaus.org";
-- symbol = "RBL_SPAMHAUSXBL";
-- ipv4 = true;
-- ipv6 = false;
-- }
-- }
-- }
local rbls = {}
f... | -- Configuration:
-- rbl {
-- default_ipv4 = true;
-- default_ipv6 = false;
-- default_received = true;
-- default_from = false;
-- rbls {
-- xbl {
-- rbl = "xbl.spamhaus.org";
-- symbol = "RBL_SPAMHAUSXBL";
-- ipv4 = true;
-- ipv6 = false;
-- }
-- }
-- }
local rbls = {}
l... | Fix rbl plugin. | Fix rbl plugin.
| Lua | apache-2.0 | minaevmike/rspamd,amohanta/rspamd,andrejzverev/rspamd,andrejzverev/rspamd,AlexeySa/rspamd,awhitesong/rspamd,dark-al/rspamd,amohanta/rspamd,amohanta/rspamd,AlexeySa/rspamd,AlexeySa/rspamd,dark-al/rspamd,andrejzverev/rspamd,minaevmike/rspamd,AlexeySa/rspamd,amohanta/rspamd,minaevmike/rspamd,andrejzverev/rspamd,AlexeySa/r... |
cc747f4988f409a601366881817eba7cb5bcc83f | SVUI_Skins/components/blizzard/orderhall.lua | SVUI_Skins/components/blizzard/orderhall.lua | --[[
##############################################################################
S V U I By: Failcoder
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
local tinsert = _G.tinsert;
--[[ ADDON ]]... | --[[
##############################################################################
S V U I By: Failcoder
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
local tinsert = _G.tinsert;
--[[ ADDON ]]... | Multiple fixes: #3 and #108 | Multiple fixes: #3 and #108 | Lua | mit | FailcoderAddons/supervillain-ui,finalsliver/supervillain-ui |
692c21ee76d982f0ce2ae64b721a4b82e8290cc3 | MMOCoreORB/bin/scripts/object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_gen1.lua | MMOCoreORB/bin/scripts/object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_gen1.lua | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program 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; either version 2 of the License,
--or (at your option) any lat... | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program 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; either version 2 of the License,
--or (at your option) any lat... | [Fixed] 1h generation 1 saber inventory. | [Fixed] 1h generation 1 saber inventory.
git-svn-id: c34995188cc7e843f8a799edec2d9d4b36f36456@4580 c3d1530f-68f5-4bd0-87dc-8ef779617e40
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,Ta... |
1c41fb0a9c674f1a4dcb18d9c27b45a181ffb040 | scripts/tcp-connect.lua | scripts/tcp-connect.lua | local syn_table = {}
print(string.format("\n Time IP:Port Retries Conenct Cost(s)"))
print(string.format("-------------------------- ---------------------------------------------- -------------- ---------------------"))
function process(packet)
... | local syn_table = {}
print(string.format("\n Time IP:Port Retries Conenct Cost(s)"))
print(string.format("-------------------------- ---------------------------------------------- -------------- ---------------------"))
function process(packet)
... | FIX: tcp connect script usec maybe negative number | FIX: tcp connect script usec maybe negative number
| Lua | mit | git-hulk/tcpkit,git-hulk/tcpkit |
bb1c4e9db6b920b1b0c99e4da0f6bb06784f3646 | scripts/tundra/util.lua | scripts/tundra/util.lua | -- Copyright 2010 Andreas Fredriksson
--
-- This file is part of Tundra.
--
-- Tundra is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version... | -- Copyright 2010 Andreas Fredriksson
--
-- This file is part of Tundra.
--
-- Tundra is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version... | Fixed bug with value options. | Fixed bug with value options.
| Lua | mit | bmharper/tundra,deplinenoise/tundra,bmharper/tundra,bmharper/tundra,deplinenoise/tundra,bmharper/tundra,deplinenoise/tundra |
eaa5d5be5dae28896f1624eee09ccb75552fe1e9 | agents/monitoring/tests/check/filesystem.lua | agents/monitoring/tests/check/filesystem.lua | local math = require('math')
local os = require('os')
local FileSystemCheck = require('monitoring/default/check').FileSystemCheck
local exports = {}
exports['test_filesystem_check'] = function(test, asserts)
if os.type() == "win32" then
fs_target = 'C:\\'
else
fs_target = '/'
end
local check = FileSy... | local math = require('math')
local os = require('os')
local FileSystemCheck = require('monitoring/default/check').FileSystemCheck
local exports = {}
exports['test_filesystem_check'] = function(test, asserts)
if os.type() == "win32" then
fs_target = 'C:\\'
else
fs_target = '/'
end
local check = FileSy... | fixes(windows): filesystem test | fixes(windows): filesystem test
| Lua | apache-2.0 | AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-m... |
4163c9b01f6c0f9b5e46833582ddcc338e6628b9 | kong/api/routes/upstreams.lua | kong/api/routes/upstreams.lua | local endpoints = require "kong.api.endpoints"
local utils = require "kong.tools.utils"
local kong = kong
local escape_uri = ngx.escape_uri
local unescape_uri = ngx.unescape_uri
local null = ngx.null
local fmt = string.format
local function post_health(self, db, is_healthy)
local upstream, _, err_t = endpoints.se... | local endpoints = require "kong.api.endpoints"
local utils = require "kong.tools.utils"
local kong = kong
local escape_uri = ngx.escape_uri
local unescape_uri = ngx.unescape_uri
local null = ngx.null
local tostring = tostring
local fmt = string.format
local function post_health(self, db, is_healthy)
local upstrea... | fix(api) upstream targets endpoints fixes | fix(api) upstream targets endpoints fixes
### Summary
1. disallow (405) PATCH on /upstreams/:upstreams/targets/:targets
2. make GET to do proper pre-checks on /upstreams/:upstreams/targets/:targets
3. make PUT to do proper pre-checks on /upstreams/:upstreams/targets/:targets
| Lua | apache-2.0 | Kong/kong,Kong/kong,Kong/kong |
2e0d1c87812865434e5c549b2c1824b5b8bf500d | src/lua-factory/sources/grl-radiofrance.lua | src/lua-factory/sources/grl-radiofrance.lua | --[[
* Copyright (C) 2014 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 you... | --[[
* Copyright (C) 2014 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 you... | Revert "lua-factory: port grl-radiofrance.lua to the new lua system" | Revert "lua-factory: port grl-radiofrance.lua to the new lua system"
This reverts commit 93547ac94797cdea6670b0d458e838bcdb578f77.
But keeps grl.fetch callback as function instead of string
https://bugzilla.gnome.org/show_bug.cgi?id=763046
| Lua | lgpl-2.1 | GNOME/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,MikePetullo/grilo-plugins,grilofw/grilo-plugins,jasuarez/grilo-plugins,jasuarez/grilo-plugins,grilofw/grilo-plugins |
a7e7c31f8c659b55c1adb0863a8f2f66d3452d2b | 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: whitespace and typo fixes, svn property fixup | applications/siitwizard: whitespace and typo fixes, svn property fixup
| Lua | apache-2.0 | lcf258/openwrtcn,palmettos/cnLuCI,obsy/luci,deepak78/new-luci,oyido/luci,teslamint/luci,harveyhu2012/luci,jlopenwrtluci/luci,db260179/openwrt-bpi-r1-luci,ReclaimYourPrivacy/cloak-luci,chris5560/openwrt-luci,ReclaimYourPrivacy/cloak-luci,NeoRaider/luci,zhaoxx063/luci,nwf/openwrt-luci,deepak78/new-luci,joaofvieira/luci,k... |
70f455a2d61d343da1376619579400e98700130d | src/plugins/core/commands/commandaction.lua | src/plugins/core/commands/commandaction.lua | --- A `action` which will execute a command with matching group/id values.
---------------------------------------------------------------------------------
--
-- THE PLUGIN:
--
-------------------------------------------------------------------------------- registers itself with the `cp.plugins.actions.actionmanager`.... | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- C O M M A N D A C T I O N --
-----------------------------------------------------------------------------... | Bug Fix | Bug Fix
- Fixed missing cp.dialog in commandaction
| Lua | mit | cailyoung/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,fcpxhacks/fcpxhacks,CommandPost/CommandPost,cailyoung/CommandPost,cailyoung/CommandPost,CommandPost/CommandPost |
2e73111a50846a6d15b7e22659dd842fd149115f | src_trunk/resources/boatshop-system/s_boatshop_system.lua | src_trunk/resources/boatshop-system/s_boatshop_system.lua | -- ////////////////////////////////////
-- // MYSQL //
-- ////////////////////////////////////
sqlUsername = exports.mysql:getMySQLUsername()
sqlPassword = exports.mysql:getMySQLPassword()
sqlDB = exports.mysql:getMySQLDBName()
sqlHost = exports.mysql:getMySQLHost()
sqlPort = exports.mysql:getMySQLPort()... | -- ////////////////////////////////////
-- // MYSQL //
-- ////////////////////////////////////
sqlUsername = exports.mysql:getMySQLUsername()
sqlPassword = exports.mysql:getMySQLPassword()
sqlDB = exports.mysql:getMySQLDBName()
sqlHost = exports.mysql:getMySQLHost()
sqlPort = exports.mysql:getMySQLPort()... | Boat shop fix | Boat shop fix
git-svn-id: 8769cb08482c9977c94b72b8e184ec7d2197f4f7@734 64450a49-1f69-0410-a0a2-f5ebb52c4f5b
| Lua | bsd-3-clause | valhallaGaming/uno,valhallaGaming/uno,valhallaGaming/uno |
712a2b44f09baeb6a70c5dbf83ed68ea9d5d1aee | module/admin-core/src/controller/admin/index.lua | module/admin-core/src/controller/admin/index.lua | module("ffluci.controller.admin.index", package.seeall)
function action_wizard()
if ffluci.http.formvalue("ip") then
return configure_freifunk()
end
local ifaces = {}
local wldevs = ffluci.model.uci.show("wireless")
if wldevs then
for k, v in pairs(wldevs.wireless) do
if v[".type"] == "wifi-device" the... | module("ffluci.controller.admin.index", package.seeall)
function action_wizard()
if ffluci.http.formvalue("ip") then
return configure_freifunk()
end
local ifaces = {}
local wldevs = ffluci.model.uci.show("wireless")
if wldevs then
for k, v in pairs(wldevs.wireless) do
if v[".type"] == "wifi-device" the... | * Fixed Freifunk wizard | * Fixed Freifunk wizard
git-svn-id: edf5ee79c2c7d29460bbb5b398f55862cc26620d@1959 ab181a69-ba2e-0410-a84d-ff88ab4c47bc
| Lua | apache-2.0 | ThingMesh/openwrt-luci,freifunk-gluon/luci,gwlim/luci,alxhh/piratenluci,stephank/luci,Canaan-Creative/luci,Flexibity/luci,ReclaimYourPrivacy/cloak-luci,yeewang/openwrt-luci,jschmidlapp/luci,ThingMesh/openwrt-luci,freifunk-gluon/luci,zwhfly/openwrt-luci,saraedum/luci-packages-old,ThingMesh/openwrt-luci,Flexibity/luci,8d... |
bfb5a3dd96bf505cd16745566a9f5c2d33a24a0d | vim/lua/madx-config.lua | vim/lua/madx-config.lua | --------------------------------------------------------------------------------
-- Utils
local buf_map = function(bufnr, mode, lhs, rhs, opts)
vim.api.nvim_buf_set_keymap(bufnr, mode, lhs, rhs, opts or {
silent = true,
})
end
local has_words_before = function()
local line, col = unpack(vim.api.nvim_win_get... | --------------------------------------------------------------------------------
-- Utils
local buf_map = function(bufnr, mode, lhs, rhs, opts)
vim.api.nvim_buf_set_keymap(bufnr, mode, lhs, rhs, opts or {
silent = true,
})
end
local has_words_before = function()
local line, col = unpack(vim.api.nvim_win_get... | fix(vim): Update deprecacted cmp-nvim-lsp config | fix(vim): Update deprecacted cmp-nvim-lsp config
| Lua | mit | madx/propane |
1ef19f7b56c665a38b64b518789e89a93030f383 | onmt/translate/DecoderAdvancer.lua | onmt/translate/DecoderAdvancer.lua | --[[ DecoderAdvancer is an implementation of the interface Advancer for
specifyinghow to advance one step in decoder.
--]]
local DecoderAdvancer = torch.class('DecoderAdvancer', 'Advancer')
--[[ Constructor.
Parameters:
* `decoder` - an `onmt.Decoder` object.
* `batch` - an `onmt.data.Batch` object.
* `conte... | --[[ DecoderAdvancer is an implementation of the interface Advancer for
specifyinghow to advance one step in decoder.
--]]
local DecoderAdvancer = torch.class('DecoderAdvancer', 'Advancer')
--[[ Constructor.
Parameters:
* `decoder` - an `onmt.Decoder` object.
* `batch` - an `onmt.data.Batch` object.
* `conte... | Fix tensor type mismatch when attention is not used | Fix tensor type mismatch when attention is not used
Fixes #229.
| Lua | mit | jsenellart/OpenNMT,monsieurzhang/OpenNMT,da03/OpenNMT,da03/OpenNMT,da03/OpenNMT,jungikim/OpenNMT,jungikim/OpenNMT,jsenellart/OpenNMT,monsieurzhang/OpenNMT,jsenellart-systran/OpenNMT,OpenNMT/OpenNMT,jungikim/OpenNMT,jsenellart-systran/OpenNMT,jsenellart-systran/OpenNMT,jsenellart/OpenNMT,monsieurzhang/OpenNMT,OpenNMT/Op... |
a2d8bbab46b3db0124cab8e1fc8dcbf9406a5845 | check/network.lua | check/network.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... | add a nil check within the network check (#954) | add a nil check within the network check (#954)
fixes #937 | Lua | apache-2.0 | virgo-agent-toolkit/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent |
60a109909b177ca3db2d0b2f4867932090920ff6 | 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.... | Push stack arguments passed to the function | Push stack arguments passed to the function
before calling the function.
Fixes #1.
| Lua | apache-2.0 | drbo/safer-lua-api,drbo/safer-lua-api |
45a646bf3c00d86594bfbde1fdb19f5763a2beeb | src/lua/redis.lua | src/lua/redis.lua | package.path = package.path .. ";lua/?.lua;../?.lua"
print ("Script Init Begin")
local pool = require("pool")
function parse(body)
local lines = body:strip():split("\n")
table.remove(lines, 1)
local configs = {}
-- parse
for i,line in ipairs(lines) do
local xs = line:split(" ")
local add... | package.path = package.path .. ";lua/?.lua;../?.lua"
print ("Script Init Begin")
local pool = require("pool")
function parse(body)
local lines = body:strip():split("\n")
table.remove(lines, 1)
local configs = {}
-- parse
for i,line in ipairs(lines) do
local xs = line:split(" ")
local add... | fix range parsing | fix range parsing
| Lua | apache-2.0 | jxwr/r3proxy,jxwr/r3proxy,jxwr/r3proxy |
3a24152e3d999bd6b0ba16ffacee1ce8c3b95904 | src/single-dir.lua | src/single-dir.lua | -- lua-round-up, Gather all dependencies of Lua module together
-- Copyright (C) 2015 Boris Nagaev
-- See the LICENSE file for terms of use.
local function fileExists(name)
local f = io.open(name, "r")
if f ~= nil then
io.close(f)
return true
else
return false
end
end
local fun... | -- lua-round-up, Gather all dependencies of Lua module together
-- Copyright (C) 2015 Boris Nagaev
-- See the LICENSE file for terms of use.
local function fileExists(name)
local f = io.open(name, "r")
if f ~= nil then
io.close(f)
return true
else
return false
end
end
local fun... | fix for lua >= 5.2 | fix for lua >= 5.2
The table package.loaders was renamed package.searchers.
| Lua | mit | starius/single-dir.lua |
a074c91995d1920495c5365a0c442cadf19e3865 | Ndex.lua | Ndex.lua | --[[
This module prints an entry in a list of Pokémon.
The interface allow for printing from WikiCode, and expose the class for other
modules to use it.
Example call from WikiCode:
{{#invoke: ndex | list | 396 397 398 487 487O 422E | color = alola }}
Takes a list of space separated ndexes and print the relative ent... | --[[
This module prints an entry in a list of Pokémon.
The interface allow for printing from WikiCode, and expose the class for other
modules to use it.
Example call from WikiCode:
{{#invoke: ndex | list | 396 397 398 487 487O 422E | color = alola }}
Takes a list of space separated ndexes and print the relative ent... | Fixing problems in ndex with MS increased size | Fixing problems in ndex with MS increased size
| Lua | cc0-1.0 | pokemoncentral/wiki-lua-modules |
0392d4429b939d15a95341aed850d91041ad7d3d | Engine/sandbox.lua | Engine/sandbox.lua | --A function that creates new sandboxed global environment.
local basexx = require("Engine.basexx")
local bit = require("bit")
local _LuaBCHeader = string.char(0x1B).."LJ"
return function(parent)
local GLOB = {
assert=assert,
error=error,
ipairs=ipairs,
pairs=pairs,
next=next,
pcall=pcall,
... | --A function that creates new sandboxed global environment.
local basexx = require("Engine.basexx")
local bit = require("bit")
local _LuaBCHeader = string.char(0x1B).."LJ"
return function(parent)
local GLOB = {
assert=assert,
error=error,
ipairs=ipairs,
pairs=pairs,
next=next,
pcall=pcall,
... | Typofix (Repeated math.noise) | Typofix (Repeated math.noise)
Former-commit-id: b41be74ac3884efdcc0066d5c3c7e404815ee0df | Lua | mit | RamiLego4Game/LIKO-12 |
8cf6f2364ef5c31f71b1e1366d91120a56cec0f2 | test_scripts/Polices/build_options/ATF_PolicyManager_changes_status_to_UPDATING_PROPRIETARY.lua | test_scripts/Polices/build_options/ATF_PolicyManager_changes_status_to_UPDATING_PROPRIETARY.lua | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [PolicyTableUpdate] PoliciesManager changes status to "UPDATING"
-- [HMI API] OnStatusUpdate
--
-- Description:
-- SDL is built with "-DEXTENDED_POLICY: PROPRIETARY" flag
-- PoliciesManager must chan... | ---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [PolicyTableUpdate] PoliciesManager changes status to "UPDATING"
-- [HMI API] OnStatusUpdate
--
-- Description:
-- SDL is built with "-DEXTENDED_POLICY: PROPRIETARY" flag
-- PoliciesManager must chan... | Fix issues | Fix issues
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts |
b405f1d083b9d2355138780ad4fcf768b4f565e7 | src/lib/configure/lang/c/compiler/msvc.lua | src/lib/configure/lang/c/compiler/msvc.lua | --- MSVC compiler implementation
-- @classmod configure.lang.c.compiler.msvc
local Super = require('configure.lang.c.compiler.base')
local tools = require('configure.tools')
local Compiler = table.update({}, Super)
Compiler.name = 'msvc'
Compiler.binary_names = {'cl.exe', }
Compiler.lang = 'c'
Compiler._language_flag... | --- MSVC compiler implementation
-- @classmod configure.lang.c.compiler.msvc
local Super = require('configure.lang.c.compiler.base')
local tools = require('configure.tools')
local Compiler = table.update({}, Super)
Compiler.name = 'msvc'
Compiler.binary_names = {'cl.exe', }
Compiler.lang = 'c'
Compiler._language_flag... | lang.c.compiler.msvc: Fix link flags when linking a library. | lang.c.compiler.msvc: Fix link flags when linking a library.
| Lua | bsd-3-clause | hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure |
f3612a683217537c81566051bb78977b63ebbe96 | Render.lua | Render.lua | --[[
Modulo per ridurre le chiamate a lua in caso di molti entry
This module is used when there's the need to invoke the same module
function many times in a row (for instance when each call is an entry
of a list). The goal of this module is to squash all calls in a single
#invoke in order to make it much more lightw... | --[[
Modulo per ridurre le chiamate a lua in caso di molti entry
This module is used when there's the need to invoke the same module
function many times in a row (for instance when each call is an entry
of a list). The goal of this module is to squash all calls in a single
#invoke in order to make it much more lightw... | Fixed trim call in render (can't be called as object method on MW) | Fixed trim call in render (can't be called as object method on MW)
| Lua | cc0-1.0 | pokemoncentral/wiki-lua-modules |
8ae7c792b6c6b1eda268d8953fa8737a9ad7dc91 | item/id_1206_claypit.lua | item/id_1206_claypit.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 custom lookAt for claypits | Fix custom lookAt for claypits
| Lua | agpl-3.0 | Illarion-eV/Illarion-Content |
bbc6057f9602787119d3654c58b3d62ca54c9852 | tests/projects/static_library_go/xmake.lua | tests/projects/static_library_go/xmake.lua | -- the debug mode
if is_mode("debug") then
-- enable the debug symbols
set_symbols("debug")
-- disable optimization
set_optimize("none")
end
-- the release mode
if is_mode("release") then
-- set the symbols visibility: hidden
set_symbols("hidden")
-- enable fastest optimization
... | -- the debug mode
if is_mode("debug") then
-- enable the debug symbols
set_symbols("debug")
-- disable optimization
set_optimize("none")
end
-- the release mode
if is_mode("release") then
-- set the symbols visibility: hidden
set_symbols("hidden")
-- enable fastest optimization
... | fix go test | fix go test
| Lua | apache-2.0 | tboox/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,tboox/xmake |
a6562b56fc7b7a9dc3a643fc234ec98236b5d126 | stdlib/event/surface.lua | stdlib/event/surface.lua | --- Surface global creation.
-- <p>All surfaces will be added to the `global.forces` table.
-- <p>This modules events should be registered after any other Init functions but before any scripts needing `global.surfaces`.
-- <p>This modules can register the following events:
-- @module Event.Surface
-- @usage
-- local su... | --- Surface global creation.
-- <p>All surfaces will be added to the `global.surfaces` table.
-- <p>This modules events should be registered after any other Init functions but before any scripts needing `global.surfaces`.
-- <p>This modules can register the following events:
-- @module Event.Surface
-- @usage
-- local ... | Doc Copypasta fix | Doc Copypasta fix
| Lua | isc | Afforess/Factorio-Stdlib |
aa254e28354ded1a09916905eeb0ede2bf76450d | mods/default/craftitems.lua | mods/default/craftitems.lua | -- mods/default/craftitems.lua
minetest.register_craftitem("default:stick", {
description = "Stick",
inventory_image = "default_stick.png",
groups = {stick=1},
})
minetest.register_craftitem("default:paper", {
description = "Paper",
inventory_image = "default_paper.png",
})
local function book_on_use(itemstack,... | -- mods/default/craftitems.lua
minetest.register_craftitem("default:stick", {
description = "Stick",
inventory_image = "default_stick.png",
groups = {stick=1},
})
minetest.register_craftitem("default:paper", {
description = "Paper",
inventory_image = "default_paper.png",
})
local function book_on_use(itemstack,... | Fix book formspec to word-wrap lines | Fix book formspec to word-wrap lines
Books still don't wrap long lines of text properly so until this has been sorted out I suggest reverting back to a previous working formspec which lets players read books properly until a fix is found (and maybe scrollbars added to texarea's). Also adding a recipe to blank written... | Lua | lgpl-2.1 | evrooije/beerarchy,evrooije/beerarchy,evrooije/beerarchy |
ab06f654a77137f9fa063937d4a2707252dc2557 | src/premake/PGTA.lua | src/premake/PGTA.lua |
-- Procedurally Generated Transitional Audio Build --
if (os.get() ~= "windows") then
include "compilationunit.lua"
end
function run_include(script, rel_dir)
local external_dir = path.getabsolute("../external")
local repo_dir = path.join(external_dir, rel_dir)
local script_full = external_dir.."/buil... |
-- Procedurally Generated Transitional Audio Build --
include "compilationunit.lua"
function run_include(script, rel_dir)
local external_dir = path.getabsolute("../external")
local repo_dir = path.join(external_dir, rel_dir)
local script_full = external_dir.."/build-tools/premake_scripts/"..script
lo... | Fixed windows premake generation error | Fixed windows premake generation error
| Lua | mit | PGTA/PGTA,PGTA/PGTA,PGTA/PGTA |
4f19f3b5664c1bb9e12a21966459590b97488c28 | build/premake4.lua | build/premake4.lua | -- This is the starting point of the build scripts for the project.
-- It defines the common build settings that all the projects share
-- and calls the build scripts of all the sub-projects.
config = {}
dofile "Helpers.lua"
dofile "Tests.lua"
-- Setup the LLVM dependency
dofile "LLVM.lua"
newoption {
trigger ... | -- This is the starting point of the build scripts for the project.
-- It defines the common build settings that all the projects share
-- and calls the build scripts of all the sub-projects.
config = {}
dofile "Helpers.lua"
dofile "Tests.lua"
-- Setup the LLVM dependency
dofile "LLVM.lua"
newoption {
trigger ... | Fixed the parser build setup code to work with the new options. | Fixed the parser build setup code to work with the new options.
| Lua | mit | u255436/CppSharp,ktopouzi/CppSharp,zillemarco/CppSharp,txdv/CppSharp,KonajuGames/CppSharp,mohtamohit/CppSharp,mono/CppSharp,SonyaSa/CppSharp,mohtamohit/CppSharp,ddobrev/CppSharp,imazen/CppSharp,mohtamohit/CppSharp,KonajuGames/CppSharp,nalkaro/CppSharp,nalkaro/CppSharp,genuinelucifer/CppSharp,txdv/CppSharp,u255436/CppSh... |
ec717c42631c3af49ba20116a53a1e460e4ef63c | xmake/rules/utils/inherit_links/inherit_links.lua | xmake/rules/utils/inherit_links/inherit_links.lua | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | --!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | fix inherit links | fix inherit links
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake,waruqi/xmake |
0c7957113b53be2485cd0b8b3200f11cd371b7fd | core/init.lua | core/init.lua | -- Copyright 2007-2013 Mitchell mitchell.att.foicica.com. See LICENSE.
_RELEASE = "Textadept 7.0 beta 3"
package.path = _HOME..'/core/?.lua;'..package.path
_SCINTILLA = require('iface')
_L = require('locale')
events = require('events')
args = require('args')
require('file_io')
require('lfs_ext')
require('ui')
keys =... | -- Copyright 2007-2013 Mitchell mitchell.att.foicica.com. See LICENSE.
_RELEASE = "Textadept 7.0 beta 3"
package.path = _HOME..'/core/?.lua;'..package.path
_SCINTILLA = require('iface')
events = require('events')
args = require('args')
_L = require('locale')
require('file_io')
require('lfs_ext')
require('ui')
keys =... | Fixed bug with previous commit. | Fixed bug with previous commit.
| Lua | mit | rgieseke/textadept,rgieseke/textadept |
0e43a7f6721d9e0c9c66d08f0b041791daded9e0 | game/main.lua | game/main.lua | -- The screen size isn't communicated between Lua and C yet
SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480
NUM_ENTITIES = 2048
function rect_t(x, y, w, h)
local temp = {x=x, y=y, w=w, h=h,__type="__RECT__"}
return temp
end
function animation_t()
local temp = {delays={}, rects={},
cur_frame=1,cur_delay=0,cur_... | -- The screen size isn't communicated between Lua and C yet
SCREEN_WIDTH = 640
SCREEN_HEIGHT = 480
NUM_ENTITIES = 2048
function rect_t(x, y, w, h)
local temp = {x=x, y=y, w=w, h=h,__type="__RECT__"}
return temp
end
function animation_t()
local temp = {delays={}, rects={},
cur_frame=1,cur_delay=0,cur_... | Added support for non-animated sprites Fixed problem in sprite_t:update | Added support for non-animated sprites
Fixed problem in sprite_t:update
| Lua | mit | ZedZull/zull_engine |
318017e4c676dc2586af50a403a6b9cb9d84db31 | modules/urbandict.lua | modules/urbandict.lua | local simplehttp = require'simplehttp'
local json = require'json'
local trim = function(s)
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
end
local urlEncode = function(str)
return str:gsub(
'([^%w ])',
function (c)
return string.format ("%%%02X", string.byte(c))
end
):gsub(' ', '+')
end
local parseJSON =... | local simplehttp = require'simplehttp'
local json = require'json'
local trim = function(s)
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
end
local urlEncode = function(str)
return str:gsub(
'([^%w ])',
function (c)
return string.format ("%%%02X", string.byte(c))
end
):gsub(' ', '+')
end
local parseJSON =... | urbandict: Fix fail. :-( | urbandict: Fix fail. :-(
| Lua | mit | haste/ivar2,torhve/ivar2,torhve/ivar2,torhve/ivar2 |
67b7ccc94639adb9216aa2053c4fa450ebefc066 | SVUI_!Core/system/_reports/reputation_new.lua | SVUI_!Core/system/_reports/reputation_new.lua | --[[
##############################################################################
S V U I By: Munglunch
##############################################################################
##########################################################
LOCALIZED LUA FUNCTIONS
#################################################... | --[[
##############################################################################
S V U I By: Munglunch
##############################################################################
##########################################################
LOCALIZED LUA FUNCTIONS
#################################################... | Fix #45 and re-initialisation post SVUI_Config changes | Fix #45 and re-initialisation post SVUI_Config changes
Needed to call a LibReputationData:ForceUpdate() as the old bar/panel
essentially went away but new one couldn't get a cache of the factions
as the FACTIONS_LOADED had already fired in the session and wouldn't
again unless there was a faction update.
| Lua | mit | joev/SVUI-Temp |
f4dd177e5e70d16d2ab7687e6fb39f980d299119 | UCDchat/instantMessaging_c.lua | UCDchat/instantMessaging_c.lua | -- People will use /sms
addCommandHandler("sms",
function (plr)
exports.UCDdx:new(plr, "This function is depracated. Use /im <player> <message> instead.", 255, 174, 0)
end
)
local antiSpam = {}
local antiSpamTimer = 1000
-- This is the function we use to send the IM
function instantMessage(_, target, ...)
-- Ac... | -- People will use /sms
addCommandHandler("sms",
function ()
exports.UCDdx:new("Syntax is: /im <player> <message>", 255, 174, 0)
end
)
local antiSpam = {}
local antiSpamTimer = 1000
-- This is the function we use to send the IM
function instantMessage(_, target, ...)
-- Actual messaging function
if (not target... | UCDchat | UCDchat
- Fixed some misc bugs.
| Lua | mit | nokizorque/ucd,nokizorque/ucd |
eac0c654f84fecbf32d6797d85e75588c9ea7853 | tests/test_gmake_cpp.lua | tests/test_gmake_cpp.lua | --
-- tests/test_gmake_cpp.lua
-- Automated test suite for GNU Make C/C++ project generation.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.gmake_cpp = { }
--
-- Configure a solution for testing
--
local sln, prj
function T.gmake_cpp.setup()
_ACTION = "gmake"
_OPTIONS.os = "linux"
sln = ... | --
-- tests/test_gmake_cpp.lua
-- Automated test suite for GNU Make C/C++ project generation.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.gmake_cpp = { }
--
-- Configure a solution for testing
--
local sln, prj
function T.gmake_cpp.setup()
_ACTION = "gmake"
_OPTIONS.os = "linux"
sln = ... | Fixed failing GMake C++ tests | Fixed failing GMake C++ tests
| Lua | bsd-3-clause | starkos/premake-core,bravnsgaard/premake-core,Meoo/premake-core,sleepingwit/premake-core,lizh06/premake-core,resetnow/premake-core,sleepingwit/premake-core,alarouche/premake-core,tritao/premake-core,kankaristo/premake-core,LORgames/premake-core,saberhawk/premake-core,felipeprov/premake-core,jstewart-amd/premake-core,li... |
364ad53c0cda4baf6e1d508e0a46b679bce80c45 | share/media/funnyordie.lua | share/media/funnyordie.lua | -- libquvi-scripts
-- Copyright (C) 2011,2013 Toni Gundogdu <legatvs@gmail.com>
-- Copyright (C) 2010 quvi project
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This program is free software: you can redistribute it and/or
-- modify it under the terms of the GNU Affero General Public... | -- libquvi-scripts
-- Copyright (C) 2011,2013 Toni Gundogdu <legatvs@gmail.com>
-- Copyright (C) 2010 quvi project
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This program is free software: you can redistribute it and/or
-- modify it under the terms of the GNU Affero General Public... | FIX: media/funnyordie.lua: Media stream URL pattern | FIX: media/funnyordie.lua: Media stream URL pattern
This was fixed by 41a7516647, which removed the pattern that appears to
work again. Keep both patterns.
Other changes:
* Insert only those media URLs that match the quality-container pattern
Signed-off-by: Toni Gundogdu <eac2284b3c43676907b96f08de9d3d52d5df0361@gma... | Lua | agpl-3.0 | alech/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts |
6addb504e4c956dbbb22fb9e3ed1ed1e87972986 | lualib/snax/loginserver.lua | lualib/snax/loginserver.lua | local skynet = require "skynet"
require "skynet.manager"
local socket = require "skynet.socket"
local crypt = require "skynet.crypt"
local table = table
local string = string
local assert = assert
--[[
Protocol:
line (\n) based text protocol
1. Server->Client : base64(8bytes random challenge)
2. Client->Server :... | local skynet = require "skynet"
require "skynet.manager"
local socket = require "skynet.socket"
local crypt = require "skynet.crypt"
local table = table
local string = string
local assert = assert
--[[
Protocol:
line (\n) based text protocol
1. Server->Client : base64(8bytes random challenge)
2. Client->Server :... | fix #1012 | fix #1012
| Lua | mit | ag6ag/skynet,korialuo/skynet,cloudwu/skynet,hongling0/skynet,xcjmine/skynet,jxlczjp77/skynet,sanikoyes/skynet,cloudwu/skynet,icetoggle/skynet,hongling0/skynet,xjdrew/skynet,xjdrew/skynet,bigrpg/skynet,hongling0/skynet,pigparadise/skynet,korialuo/skynet,cloudwu/skynet,xcjmine/skynet,bigrpg/skynet,ag6ag/skynet,icetoggle/... |
46cf04efdd73e3a7df274c77731ff031838abccb | asset/src/framework/system.lua | asset/src/framework/system.lua | --[[
Description: Internal objects extensions
Author: M.Wan
Date: 04/26/2014
]]
-- Copy k-v from source table to the target table.
function table.shallowCopy(targetTable, sourceTable)
if type(targetTable) == "table" and type(sourceTable) == "table" then
for k, v in pairs(sourceTable) do
targetTable[k] = v
e... | --[[
Description: Internal objects extensions
Author: M.Wan
Date: 04/26/2014
]]
-- Copy k-v from source table to the target table.
function table.shallowCopy(targetTable, sourceTable)
if type(targetTable) == "table" and type(sourceTable) == "table" then
for k, v in pairs(sourceTable) do
targetTable[k] = v
e... | fix some system apis | fix some system apis
| Lua | apache-2.0 | wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua,wanmaple/MWFrameworkForCocosLua |
03509bb551e7b5491a8ed08f9fc7241d39beb215 | xmake/plugins/project/clang/compile_commands.lua | xmake/plugins/project/clang/compile_commands.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 arguments escape for compile_commands | fix arguments escape for compile_commands
| Lua | apache-2.0 | waruqi/xmake,waruqi/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,tboox/xmake,waruqi/xmake,tboox/xmake,waruqi/xmake,waruqi/xmake |
18af9307886479cb0095a6095ccfd71d1cedb369 | bin/batchTomo.lua | bin/batchTomo.lua | #!/usr/bin/env lua
--[[===========================================================================#
# This is a program to run tomoAuto in batch to align and reconstruct a large #
# number of raw image stacks. #
#---------------------------------------------------------... | #!/usr/bin/env lua
--[[===========================================================================#
# This is a program to run tomoAuto in batch to align and reconstruct a large #
# number of raw image stacks. #
#---------------------------------------------------------... | fix package path some more | fix package path some more
| Lua | mit | DustinMorado/tomoauto |
6ab0139532fa359c3536097b4d5d1ad336cbe1ea | userspace/falco/lua/output.lua | userspace/falco/lua/output.lua | local mod = {}
levels = {"Emergency", "Alert", "Critical", "Error", "Warning", "Notice", "Informational", "Debug"}
mod.levels = levels
local outputs = {}
function mod.stdout(level, msg)
print (msg)
end
function mod.file_validate(options)
if (not type(options.filename) == 'string') then
error("File outp... | local mod = {}
levels = {"Emergency", "Alert", "Critical", "Error", "Warning", "Notice", "Informational", "Debug"}
mod.levels = levels
local outputs = {}
function mod.stdout(level, msg)
print (msg)
end
function mod.file_validate(options)
if (not type(options.filename) == 'string') then
error("File outp... | Fix output methods that take configurations. | Fix output methods that take configurations.
The falco engine changes broke the output methods that take
configuration (like the filename for file output, or the program for
program output). Fix that by properly passing the options argument to
each method's output function.
| Lua | apache-2.0 | draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco |
a7ff576f2c7f5a835ca2d2e2de8c3b16b7f8fb44 | contrib/statusd/statusd_inetaddr2/statusd_inetaddr2.lua | contrib/statusd/statusd_inetaddr2/statusd_inetaddr2.lua | -- Authors: Guillermo Bonvehí <gbonvehi@gmail.com>
-- License: Public domain
--
-- statusd_inetaddr2.lua -- show IP address for Notion's statusbar
-- Shows assigned IP address for each configured interface.
-- Uses `ip addr show` or `ifconfig` to fetch current iface's data
-- Configuration:
-- `template' string con... | -- Authors: Guillermo Bonvehí <gbonvehi@gmail.com>
-- License: Public domain
--
-- statusd_inetaddr2.lua -- show IP address for Notion's statusbar
-- Shows assigned IP address for each configured interface.
-- Uses `ip addr show` or `ifconfig` to fetch current iface's data
-- Configuration:
-- `template' string con... | Fixed reading using get_output_tool | Fixed reading using get_output_tool
I guess I tested an old version before uploading latest change, sorry
about that.
| Lua | lgpl-2.1 | raboof/notion,knixeur/notion,raboof/notion,raboof/notion,knixeur/notion,knixeur/notion,knixeur/notion,knixeur/notion,raboof/notion |
1e2f690aa2b8f265c1aab5a6d4acd6a2593f52c7 | mod_auth_ldap/mod_auth_ldap.lua | mod_auth_ldap/mod_auth_ldap.lua | -- mod_auth_ldap
local new_sasl = require "util.sasl".new;
local lualdap = require "lualdap";
local function ldap_filter_escape(s) return (s:gsub("[*()\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
-- Config options
local ldap_server = module:get_option_string("ldap_server", "localhost");
local lda... | -- mod_auth_ldap
local new_sasl = require "util.sasl".new;
local lualdap = require "lualdap";
local function ldap_filter_escape(s) return (s:gsub("[*()\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
-- Config options
local ldap_server = module:get_option_string("ldap_server", "localhost");
local lda... | mod_auth_ldap: Fix use of ldap_search, and generalize it to support password modification as well. | mod_auth_ldap: Fix use of ldap_search, and generalize it to support password modification as well.
| Lua | mit | Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules,Contatta/prosody-modules |
2a81d75ae02c2c5ad8b52dc9b6f57b749aac88e2 | hostinfo/init.lua | hostinfo/init.lua | --[[
Copyright 2014 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 2014 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: NilInfo was missing from the host_info refactor | fix: NilInfo was missing from the host_info refactor
| Lua | apache-2.0 | AlphaStaxLLC/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-m... |
4a7a63dd8b7b35f8a52b7fd15f4be91542cd5e69 | src/plugins/finalcutpro/browser/insertvertical.lua | src/plugins/finalcutpro/browser/insertvertical.lua | --- === plugins.finalcutpro.browser.insertvertical ===
---
--- Insert Clips Vertically from Browser to Timeline.
local require = require
local log = require "hs.logger".new "addnote"
local fcp = require "cp.apple.finalcutpro"
local dialog = require "cp.dialog"
local i18n ... | --- === plugins.finalcutpro.browser.insertvertical ===
---
--- Insert Clips Vertically from Browser to Timeline.
local require = require
local log = require "hs.logger".new "addnote"
local fcp = require "cp.apple.finalcutpro"
local dialog = require "cp.dialog"
local i18n ... | #1671 | #1671
- Fixed bugs in “Insert Clips Vertically from Browser to Timeline”.
Closes #1671
| Lua | mit | fcpxhacks/fcpxhacks,CommandPost/CommandPost,CommandPost/CommandPost,fcpxhacks/fcpxhacks,CommandPost/CommandPost |
ccab7c1176f6bf743818f0794a82cb138fe8678d | src/lua-factory/sources/grl-radiofrance.lua | src/lua-factory/sources/grl-radiofrance.lua | --[[
* Copyright (C) 2014 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 you... | --[[
* Copyright (C) 2014 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 you... | radiofrance: Fix for backend changes | radiofrance: Fix for backend changes
The old Radio France APIs stopped working when they deployed a new iOS
application, so move over to the new URLs. We're losing France Bleu
support for now.
https://bugzilla.gnome.org/show_bug.cgi?id=734234
| Lua | lgpl-2.1 | grilofw/grilo-plugins,jasuarez/grilo-plugins,GNOME/grilo-plugins,MikePetullo/grilo-plugins,GNOME/grilo-plugins,MathieuDuponchelle/grilo-plugins,jasuarez/grilo-plugins,grilofw/grilo-plugins,MikePetullo/grilo-plugins,MathieuDuponchelle/grilo-plugins,MikePetullo/grilo-plugins,MathieuDuponchelle/grilo-plugins,MathieuDuponc... |
52283b80d349dc404ce9b3cff2bf58407bd733d1 | plugins/mod_http.lua | plugins/mod_http.lua | -- Prosody IM
-- Copyright (C) 2008-2012 Matthew Wild
-- Copyright (C) 2008-2012 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
module:set_global();
module:depends("http_errors");
local portmanager = require "core.portmanager";
loca... | -- Prosody IM
-- Copyright (C) 2008-2012 Matthew Wild
-- Copyright (C) 2008-2012 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
module:set_global();
module:depends("http_errors");
local portmanager = require "core.portmanager";
loca... | mod_http: Fix http_external_url setting without an explicit port | mod_http: Fix http_external_url setting without an explicit port
| Lua | mit | sarumjanuch/prosody,sarumjanuch/prosody |
9c33bbb697f16833c184a687d255144484e73b91 | lib/table.lua | lib/table.lua | do -- table.show, table.print
--[[
Author: Julio Manuel Fernandez-Diaz
Date: January 12, 2007
(For Lua 5.1)
Modified slightly by RiciLake to avoid the unnecessary table traversal in tablecount()
Formats tables with cycles recursively to any depth.
The output is returned as a str... | do -- table.show, table.print
--[[
Author: Julio Manuel Fernandez-Diaz
Date: January 12, 2007
(For Lua 5.1)
Modified slightly by RiciLake to avoid the unnecessary table traversal in tablecount()
Formats tables with cycles recursively to any depth.
The output is returned as a str... | Fixed table.show/table.print with userdata | Fixed table.show/table.print with userdata
| Lua | mit | Quit/jelly |
6cb0220ba03ea1494fdde006d8c7deaf862e7544 | MMOCoreORB/bin/scripts/screenplays/themepark/imperial/emperors_retreat.lua | MMOCoreORB/bin/scripts/screenplays/themepark/imperial/emperors_retreat.lua | local ObjectManager = require("managers.object.object_manager")
EmperorsRetreatScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "EmperorsRetreatScreenPlay",
}
registerScreenPlay("EmperorsRetreatScreenPlay", true)
function EmperorsRetreatScreenPlay:start()
if (isZoneEnabled("naboo")) then
self:s... | local ObjectManager = require("managers.object.object_manager")
EmperorsRetreatScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "EmperorsRetreatScreenPlay",
}
registerScreenPlay("EmperorsRetreatScreenPlay", true)
function EmperorsRetreatScreenPlay:start()
if (isZoneEnabled("naboo")) then
self:s... | [fixed] Tweaked some Emperor's Retreat spawns | [fixed] Tweaked some Emperor's Retreat spawns
Change-Id: I9881582c7f02b20384c86b8f0253f62b8088e704
| Lua | agpl-3.0 | Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,Tatwi/legend-of-hondo,lasko2112/legend-of-hondo,lasko2112/legend-of-hondo,lasko2... |
e5d4d4e8e88667e9f8741865d242b7087c17cb2b | testserver/item/id_2874_mirror.lua | testserver/item/id_2874_mirror.lua | require("base.common")
require("content.chardescription")
module("item.id_2874_mirror", package.seeall)
-- belongs also to item id 2873
-- UPDATE common SET com_script='item.id_2874_mirror' WHERE com_itemid = 2874;
function init()
lpos = position(-32,193,-8);
mpos = position(-28,193,-8);
end
function LookAtIt... | require("base.common")
require("content.chardescription")
module("item.id_2874_mirror", package.seeall)
-- belongs also to item id 2873
-- UPDATE common SET com_script='item.id_2874_mirror' WHERE com_itemid = 2874;
ladderPosition = position(-32,193,-8)
mirrorPosition = position(-28,193,-8)
function LookAtItem(User,... | Fix mirror lookat | Fix mirror lookat
| Lua | agpl-3.0 | Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,vilarion/Illarion-Content,Illarion-eV/Illarion-Content,KayMD/Illarion-Content |
ec59a23bea13d21030cb5a985ff332cdda994b63 | worker.lua | worker.lua | #!/usr/bin/luajit
local io = require("io")
local os = require("os")
local string = require("string")
local http = require("socket.http")
local json = require("dkjson")
local memcache = require("memcached")
local nonblock = require("nonblock")
-- check effective uid
if io.popen("whoami"):read("*l") ~= "root" then
... | #!/usr/bin/luajit
local io = require("io")
local os = require("os")
local string = require("string")
local http = require("socket.http")
local json = require("dkjson")
local memcache = require("memcached")
local nonblock = require("nonblock")
-- check effective uid
if io.popen("whoami"):read("*l") ~= "root" then
... | fix task.id precision problem | fix task.id precision problem
| Lua | mit | wizawu/meeci-worker |
03f90b74b8724c3f1a373bbfa58233e01dc1cbc4 | lua/starfall/libs_sh/color.lua | lua/starfall/libs_sh/color.lua | SF.Color = {}
--- Color type
--@shared
local color_methods, color_metatable = SF.Typedef( "Color" )
local wrap, unwrap = SF.CreateWrapper( color_metatable, true, false, debug.getregistry().Color )
SF.Color.Methods = color_methods
SF.Color.Metatable = color_metatable
SF.Color.Wrap = wrap
SF.Color.Unwrap = unwrap
---... | SF.Color = {}
--- Color type
--@shared
local color_methods, color_metatable = SF.Typedef( "Color" )
local wrap, unwrap = SF.CreateWrapper( color_metatable, true, false, debug.getregistry().Color )
SF.Color.Methods = color_methods
SF.Color.Metatable = color_metatable
SF.Color.Wrap = wrap
SF.Color.Unwrap = unwrap
---... | Fixed Color type __index & __newindex metamethods. | Fixed Color type __index & __newindex metamethods.
Fixes #282
| Lua | bsd-3-clause | Ingenious-Gaming/Starfall,Jazzelhawk/Starfall,INPStarfall/Starfall,Xandaros/Starfall,Jazzelhawk/Starfall,Xandaros/Starfall,INPStarfall/Starfall,Ingenious-Gaming/Starfall |
9f0610eedce8eb1c344b5ff0b522cf15cf670cf5 | tests/insteadose5/main3.lua | tests/insteadose5/main3.lua | --$Name: Инстедоз 5$
--$Version: 0.23$
--$Author: http://instead.syscall.ru$
--$Info: Сборник коротких игр$
require 'fmt'
require 'snd'
require 'timer'
local old_timer = timer.callback
std.timer = function()
_'@mplayer':timer()
return old_timer(timer)
end
obj {
nam = '@mplayer';
{
tracks = {};
};
pos = 1;
t... | --$Name: Инстедоз 5$
--$Version: 0.23$
--$Author: http://instead.syscall.ru$
--$Info: Сборник коротких игр$
require 'fmt'
require 'snd'
require 'timer'
local old_timer = timer.callback
std.timer = function()
_'@mplayer':timer()
return old_timer(timer)
end
obj {
nam = '@mplayer';
{
tracks = {};
};
pos = 1;
t... | tracks fix | tracks fix
| Lua | mit | gl00my/stead3 |
186b41ebeba7170499d061c226a1c2a763cc98b6 | share/lua/website/gaskrank.lua | share/lua/website/gaskrank.lua |
-- libquvi-scripts
-- Copyright (C) 2010 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free So... |
-- libquvi-scripts
-- Copyright (C) 2010,2012 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Fr... | FIX: media/gaskrank.lua: Media ID, stream URL patterns | FIX: media/gaskrank.lua: Media ID, stream URL patterns
Update the media stream URL pattern. Parse media ID from
the media stream URL, instead. Croak if media title was
not found.
| Lua | agpl-3.0 | legatvs/libquvi-scripts,DangerCove/libquvi-scripts,alech/libquvi-scripts,alech/libquvi-scripts,DangerCove/libquvi-scripts,legatvs/libquvi-scripts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.