text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: test/functional/treesitter/language_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local eq = t.eq local command = n.command local exec_lua = n.exec_lua local pcall_err = t.pcall_err local matches = t.matches local insert = n.insert before_e...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/treesitter/language_spec.lua", "license": "mit", "size": 4405}
### File: test/functional/treesitter/node_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local eq = t.eq local exec_lua = n.exec_lua local insert = n.insert local assert_alive = n.assert_alive before_each(clear) local function lua_eval(lua_expr) re...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/treesitter/node_spec.lua", "license": "mit", "size": 4423}
### File: test/functional/treesitter/parser_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local dedent = t.dedent local eq = t.eq local insert = n.insert local exec_lua = n.exec_lua local pcall_err = t.pcall_err local feed = n.feed describe('treesitt...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/treesitter/parser_spec.lua", "license": "mit", "size": 29602}
### File: test/functional/treesitter/query_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local dedent = t.dedent local eq = t.eq local insert = n.insert local exec_lua = n.exec_lua local pcall_err = t.pcall_err local api = n.api local fn = n.fn local...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/treesitter/query_spec.lua", "license": "mit", "size": 24761}
### File: test/functional/treesitter/utils_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local insert = n.insert local eq = t.eq local exec_lua = n.exec_lua before_each(clear) describe('treesitter utils', function() before_each(clear) it('can f...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/treesitter/utils_spec.lua", "license": "mit", "size": 1208}
### File: test/functional/ui/bufhl_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed, insert = n.clear, n.feed, n.insert local command, neq = n.command, t.neq local api = n.api local eq = t.eq local pcall_er...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/bufhl_spec.lua", "license": "mit", "size": 32034}
### File: test/functional/ui/cmdline_highlight_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local eq = t.eq local feed = n.feed local clear = n.clear local api = n.api local fn = n.fn local source = n.source local exec_c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/cmdline_highlight_spec.lua", "license": "mit", "size": 27493}
### File: test/functional/ui/cmdline_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed = n.clear, n.feed local source = n.source local command = n.command local assert_alive = n.assert_alive local poke_event...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/cmdline_spec.lua", "license": "mit", "size": 41964}
### File: test/functional/ui/cursor_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, api = n.clear, n.api local eq = t.eq local command = n.command describe('ui/cursor', function() local screen before_each...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/cursor_spec.lua", "license": "mit", "size": 9143}
### File: test/functional/ui/decorations_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear = n.clear local feed = n.feed local insert = n.insert local exec_lua = n.exec_lua local exec = n.exec local expect_events ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/decorations_spec.lua", "license": "mit", "size": 244784}
### File: test/functional/ui/diff_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local feed = n.feed local clear = n.clear local command = n.command local insert = n.insert local write_file = t.write_file local dedent = t....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/diff_spec.lua", "license": "mit", "size": 60909}
### File: test/functional/ui/embed_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local uv = vim.uv local api = n.api local feed = n.feed local eq = t.eq local neq = t.neq local clear = n.clear local ok = t.ok local fn = n...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/embed_spec.lua", "license": "mit", "size": 11455}
### File: test/functional/ui/float_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local os = require('os') local clear, feed = n.clear, n.feed local assert_alive = n.assert_alive local command, feed_command = n.command, n....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/float_spec.lua", "license": "mit", "size": 374106}
### File: test/functional/ui/fold_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed, eq = n.clear, n.feed, t.eq local command = n.command local feed_command = n.feed_command local insert = n.insert local fn ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/fold_spec.lua", "license": "mit", "size": 106548}
### File: test/functional/ui/highlight_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local os = require('os') local clear, feed, insert = n.clear, n.feed, n.insert local command, exec = n.command, n.exec local eval = n.ev...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/highlight_spec.lua", "license": "mit", "size": 86027}
### File: test/functional/ui/hlstate_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local tt = require('test.functional.terminal.testutil') local clear, insert = n.clear, n.insert local command = n.command local api = n.ap...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/hlstate_spec.lua", "license": "mit", "size": 20109}
### File: test/functional/ui/inccommand_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear = n.clear local command = n.command local eq = t.eq local eval = n.eval local expect = n.expect local feed = n.feed local i...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/inccommand_spec.lua", "license": "mit", "size": 83818}
### File: test/functional/ui/inccommand_user_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local api = n.api local clear = n.clear local eq = t.eq local exec_lua = n.exec_lua local insert = n.insert local feed = n.feed lo...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/inccommand_user_spec.lua", "license": "mit", "size": 19181}
### File: test/functional/ui/input_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed_command = n.clear, n.feed_command local feed, next_msg, eq = n.feed, n.next_msg, t.eq local command = n.command local expe...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/input_spec.lua", "license": "mit", "size": 15140}
### File: test/functional/ui/linematch_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local feed = n.feed local clear = n.clear local write_file = t.write_file describe('Diff mode screen with 3 diffs open', function() l...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/linematch_spec.lua", "license": "mit", "size": 89248}
### File: test/functional/ui/messages_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed = n.clear, n.feed local eval = n.eval local eq = t.eq local neq = t.neq local command = n.command local set_method_erro...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/messages_spec.lua", "license": "mit", "size": 94935}
### File: test/functional/ui/mode_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed, insert = n.clear, n.feed, n.insert local command = n.command local retry = t.retry describe('ui mode_change event', funct...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/mode_spec.lua", "license": "mit", "size": 6166}
### File: test/functional/ui/mouse_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed, api = n.clear, n.feed, n.api local insert, feed_command = n.insert, n.feed_command local eq, fn = t.eq, n.fn local poke_e...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/mouse_spec.lua", "license": "mit", "size": 70635}
### File: test/functional/ui/multibyte_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear = n.clear local command = n.command local feed = n.feed local feed_command = n.feed_command local insert = n.insert local fn...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/multibyte_spec.lua", "license": "mit", "size": 71081}
### File: test/functional/ui/multigrid_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear = n.clear local feed, command, insert = n.feed, n.command, n.insert local eq = t.eq local fn = n.fn local api = n.api local ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/multigrid_spec.lua", "license": "mit", "size": 106898}
### File: test/functional/ui/options_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear = n.clear local command = n.command local eq = t.eq local shallowcopy = t.shallowcopy local eval = n.eval describe('UI receiv...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/options_spec.lua", "license": "mit", "size": 5992}
### File: test/functional/ui/output_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local tt = require('test.functional.terminal.testutil') local assert_alive = n.assert_alive local mkdir, write_file, rmdir = t.mkdir, t.wri...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/output_spec.lua", "license": "mit", "size": 10548}
### File: test/functional/ui/popupmenu_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local assert_alive = n.assert_alive local clear, feed = n.clear, n.feed local source = n.source local insert = n.insert local api = n.ap...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/popupmenu_spec.lua", "license": "mit", "size": 193002}
### File: test/functional/ui/quickfix_spec.lua local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed, api = n.clear, n.feed, n.api local insert, command = n.insert, n.command describe('quickfix selection highlight', function() local screen before_ea...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/quickfix_spec.lua", "license": "mit", "size": 5656}
### File: test/functional/ui/screen.lua -- This module contains the Screen class, a complete Nvim UI implementation -- designed for functional testing (verifying screen state, in particular). -- -- Screen:expect() takes a string representing the expected screen state and an -- optional set of attribute identifiers for ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/screen.lua", "license": "mit", "size": 56574}
### File: test/functional/ui/screen_basic_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local spawn, set_session, clear = n.spawn, n.set_session, n.clear local feed, command = n.feed, n.command local exec = n.exec local i...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/screen_basic_spec.lua", "license": "mit", "size": 31931}
### File: test/functional/ui/searchhl_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed, insert = n.clear, n.feed, n.insert local command = n.command local feed_command = n.feed_command local eq = t.eq local...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/searchhl_spec.lua", "license": "mit", "size": 25387}
### File: test/functional/ui/sign_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local api, clear, eq = n.api, n.clear, t.eq local eval, exec, feed = n.eval, n.exec, n.feed describe('Signs', function() local screen b...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/sign_spec.lua", "license": "mit", "size": 27804}
### File: test/functional/ui/spell_spec.lua -- Test for scenarios involving 'spell' local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear = n.clear local exec = n.exec local feed = n.feed local insert = n.insert local api = n...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/spell_spec.lua", "license": "mit", "size": 21799}
### File: test/functional/ui/statuscolumn_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear = n.clear local command = n.command local eq = t.eq local exec = n.exec local eval = n.eval local exec_lua = n.exec_lua l...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/statuscolumn_spec.lua", "license": "mit", "size": 51211}
### File: test/functional/ui/statusline_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local assert_alive = n.assert_alive local clear = n.clear local command = n.command local feed = n.feed local eq = t.eq local fn = n.fn...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/statusline_spec.lua", "license": "mit", "size": 33893}
### File: test/functional/ui/syntax_conceal_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed, command = n.clear, n.feed, n.command local eq = t.eq local insert = n.insert local poke_eventloop = n.poke_event...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/syntax_conceal_spec.lua", "license": "mit", "size": 36280}
### File: test/functional/ui/tabline_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, command, eq = n.clear, n.command, t.eq local insert = n.insert local api = n.api local assert_alive = n.assert_alive describ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/tabline_spec.lua", "license": "mit", "size": 5648}
### File: test/functional/ui/title_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear = n.clear local command = n.command local curwin = n.api.nvim_get_current_win local eq = t.eq local exec_lua = n.exec_lua local ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/title_spec.lua", "license": "mit", "size": 4187}
### File: test/functional/ui/wildmode_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear, feed, command = n.clear, n.feed, n.command local fn = n.fn local api = n.api local eq = t.eq local eval = n.eval local retry...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/wildmode_spec.lua", "license": "mit", "size": 19238}
### File: test/functional/ui/winbar_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear = n.clear local command = n.command local insert = n.insert local api = n.api local eq = t.eq local poke_eventloop = n.poke_eve...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/ui/winbar_spec.lua", "license": "mit", "size": 29273}
### File: test/functional/vimscript/api_functions_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local neq, eq, command = t.neq, t.eq, n.command local clear = n.clear local exc_exec, expect, eval = n.exc_exec, n.expect, n....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/api_functions_spec.lua", "license": "mit", "size": 8478}
### File: test/functional/vimscript/buf_functions_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq = t.eq local clear = n.clear local fn = n.fn local api = n.api local command = n.command local exc_exec = n.exc_exec local get_pathsep = n.get_pathsep local rmdir = n.r...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/buf_functions_spec.lua", "license": "mit", "size": 10986}
### File: test/functional/vimscript/changedtick_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq = t.eq local eval = n.eval local feed = n.feed local clear = n.clear local fn = n.fn local api = n.api local command = n.command local exc_exec = n.exc_exec local pcall_e...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/changedtick_spec.lua", "license": "mit", "size": 5692}
### File: test/functional/vimscript/container_functions_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq = t.eq local eval = n.eval local api = n.api local clear = n.clear before_each(clear) describe('extend()', function() it('succeeds to extend list with itself'...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/container_functions_spec.lua", "license": "mit", "size": 684}
### File: test/functional/vimscript/ctx_functions_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local call = n.call local clear = n.clear local command = n.command local eq = t.eq local eval = n.eval local feed = n.feed local map = vim.tbl_map local api = n.api local parse...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/ctx_functions_spec.lua", "license": "mit", "size": 13108}
### File: test/functional/vimscript/environ_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local eq = t.eq local environ = n.fn.environ local exists = n.fn.exists local system = n.fn.system local nvim_prog = n.nvim_prog local command = n.command local ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/environ_spec.lua", "license": "mit", "size": 2369}
### File: test/functional/vimscript/errorlist_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local command = n.command local eq = t.eq local exc_exec = n.exc_exec local get_win_var = n.api.nvim_win_get_var describe('setqflist()', function() local se...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/errorlist_spec.lua", "license": "mit", "size": 2798}
### File: test/functional/vimscript/eval_spec.lua -- Tests for core Vimscript "eval" behavior. -- -- See also: -- let_spec.lua -- null_spec.lua -- operators_spec.lua -- -- Tests for the Vimscript |builtin-functions| library should live in: -- test/functional/vimscript/<funcname>_spec.lua -- test/function...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/eval_spec.lua", "license": "mit", "size": 10304}
### File: test/functional/vimscript/executable_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq, clear, call, write_file, command = t.eq, n.clear, n.call, t.write_file, n.command local exc_exec = n.exc_exec local eval = n.eval local is_os = t.is_os describe('executa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/executable_spec.lua", "license": "mit", "size": 9030}
### File: test/functional/vimscript/execute_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local eq = t.eq local eval = n.eval local clear = n.clear local source = n.source local exc_exec = n.exc_exec local pcall_err = t.p...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/execute_spec.lua", "license": "mit", "size": 10593}
### File: test/functional/vimscript/exepath_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq, clear, call = t.eq, n.clear, n.call local command = n.command local exc_exec = n.exc_exec local matches = t.matches local is_os = t.is_os local set_shell_powershell = n.set_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/exepath_spec.lua", "license": "mit", "size": 2362}
### File: test/functional/vimscript/fnamemodify_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local eq = t.eq local fnamemodify = n.fn.fnamemodify local getcwd = n.fn.getcwd local command = n.command local write_file = t.write_file local alter_slashes...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/fnamemodify_spec.lua", "license": "mit", "size": 5186}
### File: test/functional/vimscript/functions_spec.lua -- Tests for misc Vimscript |builtin-functions|. -- -- If a function is non-trivial, consider moving its spec to: -- test/functional/vimscript/<funcname>_spec.lua -- -- Core "eval" tests live in eval_spec.lua. local t = require('test.testutil') local n = requir...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/functions_spec.lua", "license": "mit", "size": 533}
### File: test/functional/vimscript/getline_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local call = n.call local clear = n.clear local eq = t.eq local expect = n.expect describe('getline()', function() before_each(function() clear() call('setline', 1, { 'a', ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/getline_spec.lua", "license": "mit", "size": 928}
### File: test/functional/vimscript/glob_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear, command, eval, eq = n.clear, n.command, n.eval, t.eq local mkdir = t.mkdir before_each(function() clear() mkdir('test-glob') -- Long path might cause "Press ENTER" p...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/glob_spec.lua", "license": "mit", "size": 857}
### File: test/functional/vimscript/has_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local clear = n.clear local connect = n.connect local eq = t.eq local fn = n.fn local is_os = t.is_os local nvim_prog = n.nvim_prog de...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/has_spec.lua", "license": "mit", "size": 2735}
### File: test/functional/vimscript/hostname_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq = t.eq local ok = t.ok local call = n.call local clear = n.clear local is_os = t.is_os describe('hostname()', function() before_each(clear) it('returns hostname string...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/hostname_spec.lua", "license": "mit", "size": 619}
### File: test/functional/vimscript/input_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local eq = t.eq local feed = n.feed local api = n.api local clear = n.clear local source = n.source local command = n.command local e...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/input_spec.lua", "license": "mit", "size": 16358}
### File: test/functional/vimscript/json_functions_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local fn = n.fn local api = n.api local eq = t.eq local eval = n.eval local command = n.command local exc_exec = n.exc_exec local pcall_err = t.pcall_err ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/json_functions_spec.lua", "license": "mit", "size": 33676}
### File: test/functional/vimscript/lang_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear, eval, eq = n.clear, n.eval, t.eq local exc_exec, source = n.exc_exec, n.source describe('vimscript', function() before_each(clear) it('parses `<SID>` with turkish loca...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/lang_spec.lua", "license": "mit", "size": 913}
### File: test/functional/vimscript/let_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq = t.eq local clear = n.clear local command = n.command local eval = n.eval local api = n.api local exec = n.exec local exec_capture = n.exec_capture local expect_exit = n.expect_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/let_spec.lua", "license": "mit", "size": 4336}
### File: test/functional/vimscript/map_functions_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local eq = t.eq local eval = n.eval local exec = n.exec local exec_lua = n.exec_lua local expect = n.expect local feed = n.feed local fn = n.fn local api =...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/map_functions_spec.lua", "license": "mit", "size": 8116}
### File: test/functional/vimscript/match_functions_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local eq = t.eq local clear = n.clear local fn = n.fn local command = n.command local exc_exec = n.exc_exec before_each(cl...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/match_functions_spec.lua", "license": "mit", "size": 4961}
### File: test/functional/vimscript/minmax_functions_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq = t.eq local eval = n.eval local command = n.command local clear = n.clear local fn = n.fn local pcall_err = t.pcall_err before_each(clear) for _, func in ipairs({ ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/minmax_functions_spec.lua", "license": "mit", "size": 2050}
### File: test/functional/vimscript/modeline_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local assert_alive = n.assert_alive local clear, command, write_file = n.clear, n.command, t.write_file describe('modeline', function() local tempfile = t.tmpname() before_each(...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/modeline_spec.lua", "license": "mit", "size": 511}
### File: test/functional/vimscript/msgpack_functions_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local fn = n.fn local eval, eq = n.eval, t.eq local command = n.command local api = n.api local exc_exec = n.exc_exec local is_os = t.is_os describe('...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/msgpack_functions_spec.lua", "license": "mit", "size": 31342}
### File: test/functional/vimscript/null_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local exc_exec = n.exc_exec local command = n.command local clear = n.clear local api = n.api local fn = n.fn local eq = t.eq local function redir_exec(cmd) api.nvim_set_var('__redir_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/null_spec.lua", "license": "mit", "size": 9492}
### File: test/functional/vimscript/operators_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq = t.eq local eval = n.eval local clear = n.clear describe('Division operator', function() before_each(clear) it('returns infinity on {positive}/0.0', function() e...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/operators_spec.lua", "license": "mit", "size": 1009}
### File: test/functional/vimscript/printf_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local eq = t.eq local eval = n.eval local fn = n.fn local api = n.api local exc_exec = n.exc_exec describe('printf()', function() before_each(clear) it('wor...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/printf_spec.lua", "license": "mit", "size": 3214}
### File: test/functional/vimscript/reltime_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear, eq, ok = n.clear, t.eq, t.ok local neq, command, fn = t.neq, n.command, n.fn local matches = t.matches local reltime, reltimestr, reltimefloat = fn.reltime, fn.reltimestr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/reltime_spec.lua", "license": "mit", "size": 1827}
### File: test/functional/vimscript/screenchar_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear, eq, neq = n.clear, t.eq, t.neq local command, api, fn = n.command, n.api, n.fn local tbl_deep_extend = vim.tbl_deep_extend -- Set up two overlapping floating windows ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/screenchar_spec.lua", "license": "mit", "size": 2097}
### File: test/functional/vimscript/screenpos_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear, eq, api = n.clear, t.eq, n.api local command, fn = n.command, n.fn local feed = n.feed before_each(clear) describe('screenpos() function', function() it('works in f...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/screenpos_spec.lua", "license": "mit", "size": 2972}
### File: test/functional/vimscript/server_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local assert_log = t.assert_log local eq, neq, eval = t.eq, t.neq, n.eval local clear, fn, api = n.clear, n.fn, n.api local ok = t.ok local matches = t.matches local pcall_err = t.pcal...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/server_spec.lua", "license": "mit", "size": 6432}
### File: test/functional/vimscript/setpos_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local setpos = n.fn.setpos local getpos = n.fn.getpos local insert = n.insert local clear = n.clear local command = n.command local eval = n.eval local eq = t.eq local exc_exec = n.exc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/setpos_spec.lua", "license": "mit", "size": 1873}
### File: test/functional/vimscript/sort_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq = t.eq local NIL = vim.NIL local eval = n.eval local clear = n.clear local api = n.api local fn = n.fn local command = n.command local exc_exec = n.exc_exec local pcall_err = t....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/sort_spec.lua", "license": "mit", "size": 1875}
### File: test/functional/vimscript/special_vars_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local exc_exec = n.exc_exec local command = n.command local fn = n.fn local clear = n.clear local eval = n.eval local eq = t.eq local api = n.api local NIL = vim.NIL describe('S...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/special_vars_spec.lua", "license": "mit", "size": 5783}
### File: test/functional/vimscript/state_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local eq = t.eq local exec = n.exec local exec_lua = n.exec_lua local feed = n.feed local api = n.api local poke_eventloop = n.poke_eventloop before_each(clear) ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/state_spec.lua", "license": "mit", "size": 2606}
### File: test/functional/vimscript/string_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear = n.clear local eq = t.eq local command = n.command local api = n.api local eval = n.eval local exc_exec = n.exc_exec local pcall_err = t.pcall_err local fn = n.fn local NI...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/string_spec.lua", "license": "mit", "size": 9689}
### File: test/functional/vimscript/system_spec.lua -- Tests for system() and :! shell. local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local assert_alive = n.assert_alive local testprg = n.testprg local eq, call, clear, eval, feed...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/system_spec.lua", "license": "mit", "size": 21008}
### File: test/functional/vimscript/timer_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local Screen = require('test.functional.ui.screen') local feed, eq, eval, ok = n.feed, t.eq, n.eval, t.ok local source, async_meths, run = n.source, n.async_meths, n.run local clear, co...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/timer_spec.lua", "license": "mit", "size": 8199}
### File: test/functional/vimscript/uniq_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local eq = t.eq local clear = n.clear local command = n.command local exc_exec = n.exc_exec local pcall_err = t.pcall_err before_each(clear) describe('uniq()', function() it('errors ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/uniq_spec.lua", "license": "mit", "size": 855}
### File: test/functional/vimscript/vvar_event_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local clear, eval, eq = n.clear, n.eval, t.eq local command = n.command describe('v:event', function() before_each(clear) it('is empty before any autocommand', function() e...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/vvar_event_spec.lua", "license": "mit", "size": 445}
### File: test/functional/vimscript/wait_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local call = n.call local clear = n.clear local command = n.command local eval = n.eval local eq = t.eq local feed = n.feed local feed_command = n.feed_command local next_msg = n.next_ms...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/wait_spec.lua", "license": "mit", "size": 2289}
### File: test/functional/vimscript/writefile_spec.lua local t = require('test.testutil') local n = require('test.functional.testnvim')() local mkdir = t.mkdir local clear = n.clear local eq = t.eq local fn = n.fn local api = n.api local exc_exec = n.exc_exec local read_file = t.read_file local write_file = t.write_fi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/functional/vimscript/writefile_spec.lua", "license": "mit", "size": 6707}
### File: test/includes/pre/fcntl.h #include <fcntl.h> static const mode_t kO_RDONLY = O_RDONLY; static const mode_t kO_WRONLY = O_WRONLY; static const mode_t kO_RDWR = O_RDWR; static const mode_t kO_CREAT = O_CREAT; static const mode_t kO_EXCL = O_EXCL;
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "test/includes/pre/fcntl.h", "license": "mit", "size": 225}
### File: test/includes/pre/sys/stat.h #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include <sys/stat.h> static const mode_t kS_IFMT = S_IFMT; static const mode_t kS_IFSOCK = S_IFSOCK; static const mode_t kS_IFLNK = S_IFLNK; static const mode_t kS_IFREG = S_IFREG; static const mode_t kS_IFBLK = S_IFBLK; static con...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "test/includes/pre/sys/stat.h", "license": "mit", "size": 991}
### File: test/lua_runner.lua local platform = vim.uv.os_uname() local deps_install_dir = table.remove(_G.arg, 1) local subcommand = table.remove(_G.arg, 1) local suffix = (platform and platform.sysname:lower():find 'windows') and '.dll' or '.so' package.path = deps_install_dir .. '/share/lua/5.1/?.lua;' .. deps_in...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Lua", "repo_name": "minhanghuang/neovim", "path": "test/lua_runner.lua", "license": "mit", "size": 2019}
### File: test/old/memfile_test.c /* vi:set ts=8 sts=4 sw=4 noet: * * VIM - Vi IMproved by Bram Moolenaar * * Do ":help uganda" in Vim to read copying and usage conditions. * Do ":help credits" in Vim to see a list of people who contributed. * See README.txt for an overview of the Vim source code. */ /* * mem...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/neovim", "path": "test/old/memfile_test.c", "license": "mit", "size": 3079}
### File: test/old/testdir/Make_all.mak # Tests may depend on the existence of this file.
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/Make_all.mak", "license": "mit", "size": 50}
### File: test/old/testdir/Makefile # vim: noet ts=8 # Makefile to run all tests for Vim # ifeq ($(OS),Windows_NT) NVIM_PRG ?= ../../../build/bin/nvim.exe else NVIM_PRG ?= ../../../build/bin/nvim endif ROOT := ../../.. export SHELL := sh export NVIM_PRG := $(NVIM_PRG) export TMPDIR := $(abspath X-test-tmpdir) if...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/Makefile", "license": "mit", "size": 4657}
### File: test/old/testdir/check.vim source shared.vim source term_util.vim command -nargs=1 MissingFeature throw 'Skipped: ' .. <args> .. ' feature missing' " Command to check for the presence of a feature. command -nargs=1 CheckFeature call CheckFeature(<f-args>) func CheckFeature(name) " if !has(a:name, 1) " ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/check.vim", "license": "mit", "size": 6514}
### File: test/old/testdir/crash/poc_tagfunc.vim fu Tagfunc(t,f,o) bw endf set tagfunc=Tagfunc n0 sil0norm0i
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/crash/poc_tagfunc.vim", "license": "mit", "size": 63}
### File: test/old/testdir/load.vim " Also used by: test/functional/testnvim.lua function! s:load_factor() abort let timeout = 200 let times = [] for _ in range(5) let g:val = 0 let start = reltime() call timer_start(timeout, {-> nvim_set_var('val', 1)}) while 1 sleep 10m if g:val ==...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/load.vim", "license": "mit", "size": 723}
### File: test/old/testdir/mouse.vim " Helper functions for generating mouse events let g:Ttymouse_values = ['sgr'] let g:Ttymouse_dec = [] let g:Ttymouse_netterm = [] func MouseLeftClick(row, col) call nvim_input_mouse('left', 'press', '', 0, a:row - 1, a:col - 1) call getchar(1) call feedkeys('', 'x!') endfun...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Vim Script", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/mouse.vim", "license": "mit", "size": 2506}
### File: test/old/testdir/pyxfile/py2_magic.py # requires python 2.x import sys print(sys.version)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/pyxfile/py2_magic.py", "license": "mit", "size": 53}
### File: test/old/testdir/pyxfile/py2_shebang.py #!/usr/bin/python2 import sys print(sys.version)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/pyxfile/py2_shebang.py", "license": "mit", "size": 50}
### File: test/old/testdir/pyxfile/py3_magic.py # requires python 3.x import sys print(sys.version)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/pyxfile/py3_magic.py", "license": "mit", "size": 53}
### File: test/old/testdir/pyxfile/py3_shebang.py #!/usr/bin/python3 import sys print(sys.version)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/pyxfile/py3_shebang.py", "license": "mit", "size": 50}
### File: test/old/testdir/pyxfile/pyx.py import sys print(sys.version)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/neovim", "path": "test/old/testdir/pyxfile/pyx.py", "license": "mit", "size": 30}