id
int64
0
79.7k
docstring_tokens
listlengths
4
145
code_tokens
listlengths
5
27.3k
fun_name
stringlengths
1
108
repo
stringclasses
778 values
partition
stringclasses
3 values
opt_level
stringclasses
15 values
0
[ "DMB", "is", "supported", "on", "CM0" ]
[ "'void", "__dmb", "()", "{", "__asm__", "volatile", "(\"dmb\");", "}'" ]
__dmb
PX4/Bootloader
train
O3
1
[ "returns", "1", "if", "the", "lock", "was", "acquired" ]
[ "'uint32_t", "mutex_trylock", "(", "mutex_t", "*", "m", ")", "{", "uint32_t", "status", "=", "1", ";", "/*", "If", "the", "mutex", "is", "unlocked.", "*/", "if", "(", "__ldrex", "(", "m", ")", "==", "MUTEX_UNLOCKED", ")", "{", "/*", "Try", "to", "loc...
mutex_trylock
PX4/Bootloader
train
O3
2
[ "returns", "0", "if", "no", "more", "work", "needs", "to", "be", "been", "done,", "and", "1", "if", "time", "is", "up", "and", "more", "work", "is", "needed" ]
[ "\"int", "defragLaterStep", "(", "redisDb", "*", "db", ",", "long", "long", "endtime", ")", "{", "unsigned", "int", "iterations", "=", "0", ";", "unsigned", "long", "long", "prev_defragged", "=", "server", ".", "stat_active_defrag_hits", ";", "unsigned", "long...
defragLaterStep
repsheet/repsheet-nginx
train
O3
3
[ "returns", "0", "if", "no", "more", "work", "needs", "to", "be", "been", "done,", "and", "1", "if", "time", "is", "up", "and", "more", "work", "is", "needed" ]
[ "'int", "scanLaterStraemListpacks", "(", "robj", "*", "ob", ",", "unsigned", "long", "*", "cursor", ",", "long", "long", "endtime", ",", "long", "long", "*", "defragged", ")", "{", "static", "unsigned", "char", "last", "[", "sizeof", "(", "streamID", ")", ...
scanLaterStraemListpacks
repsheet/repsheet-nginx
train
O3
4
[ "Defrag", "a", "dict", "with", "sds", "key", "and", "optional", "value", "(either", "ptr,", "sds", "or", "robj", "string)" ]
[ "'long", "activeDefragSdsDict", "(", "dict", "*", "d", ",", "int", "val_type", ")", "{", "dictIterator", "*", "di", ";", "dictEntry", "*", "de", ";", "long", "defragged", "=", "0", ";", "di", "=", "dictGetIterator", "(", "d", ")", ";", "while", "(", ...
activeDefragSdsDict
repsheet/repsheet-nginx
train
O3
5
[ "decide", "if", "defrag", "is", "needed,", "and", "at", "what", "CPU", "effort", "to", "invest", "in", "it" ]
[ "'void", "computeDefragCycles", "()", "{", "size_t", "frag_bytes", ";", "float", "frag_pct", "=", "getAllocatorFragmentation", "(", "&", "frag_bytes", ")", ";", "/*", "If", "we\\'re", "not", "already", "running,", "and", "below", "the", "threshold,", "exit.", "*...
computeDefragCycles
repsheet/repsheet-nginx
train
O3
6
[ "Defrag", "scan", "callback", "for", "the", "main", "db", "dictionary" ]
[ "'void", "defragScanCallback", "(", "void", "*", "privdata", ",", "const", "dictEntry", "*", "de", ")", "{", "long", "defragged", "=", "defragKey", "(", "(", "redisDb", "*", ")", "privdata", ",", "(", "dictEntry", "*", ")", "de", ")", ";", "server", "....
defragScanCallback
repsheet/repsheet-nginx
train
O3
7
[ "returns", "0", "if", "no", "more", "work", "needs", "to", "be", "been", "done,", "and", "1", "if", "time", "is", "up", "and", "more", "work", "is", "needed" ]
[ "'long", "scanLaterList", "(", "robj", "*", "ob", ",", "unsigned", "long", "*", "cursor", ",", "long", "long", "endtime", ",", "long", "long", "*", "defragged", ")", "{", "quicklist", "*", "ql", "=", "ob", "->", "ptr", ";", "quicklistNode", "*", "node"...
scanLaterList
repsheet/repsheet-nginx
train
O3
8
[ "Defrag", "a", "list", "of", "sds", "values", "and", "a", "dict", "with", "the", "same", "sds", "keys" ]
[ "'long", "activeDefragSdsListAndDict", "(", "list", "*", "l", ",", "dict", "*", "d", ",", "int", "dict_val_type", ")", "{", "long", "defragged", "=", "0", ";", "sds", "newsds", ",", "<type", "ref=\"prev\"/>", "sdsele", ";", "listNode", "*", "ln", ",", "<...
activeDefragSdsListAndDict
repsheet/repsheet-nginx
train
O3
9
[ "!PARAMS_IN_REGISTRY", "around", "whole", "file" ]
[ "'void", "d_r_config_init", "(", "void", ")", "{", "}'" ]
d_r_config_init
DynamoRIO/drmemory
train
Os
10
[ "Convert", "tm", "structure", "and", "offset", "into", "julian", "day", "and", "seconds" ]
[ "'static", "int", "julian_adj", "(", "const", "struct", "tm", "*", "tm", ",", "int", "off_day", ",", "long", "offset_sec", ",", "long", "*", "pday", ",", "int", "*", "psec", ")", "{", "int", "offset_hms", ",", "<type", "ref=\"prev\"/>", "offset_day", ";"...
julian_adj
jens-maus/amissl
train
O3
11
[ "Returns", "the", "length", "in", "characters", "of", "the", "last", "element", "of", "a", "path" ]
[ "'size_t", "nameonlylength", "(", "const", "char", "*", "s", ")", "{", "size_t", "j", ",", "<type", "ref=\"prev\"/>", "len", "=", "strlen", "(", "s", ")", ";", "for", "(", "j", "=", "len", ";", "j", "!=", "(", "size_t", ")", "-", "1", ";", "j", ...
nameonlylength
STJr/SRB2
train
Oa
12
[ "Functions", "cut", "and", "pasted", "from", "Doomatic", ":)" ]
[ "'void", "nameonly", "(", "char", "*", "s", ")", "{", "size_t", "j", ",", "<type", "ref=\"prev\"/>", "len", ";", "void", "*", "ns", ";", "for", "(", "j", "=", "strlen", "(", "s", ")", ";", "j", "!=", "(", "size_t", ")", "-", "1", ";", "j", "-...
nameonly
STJr/SRB2
train
Oa
13
[ "convert", "char", ">", "6bit", "value" ]
[ "'static", "inline", "uint32_t", "b64val", "(", "char", "c", ")", "{", "if", "(", "\\'A\\'", "<=", "c", "&&", "c", "<=", "\\'Z\\'", ")", "return", "c", "-", "\\'A\\'", "+", "0", ";", "<if", "type=\"elseif\">", "else", "if", "(", "\\'a\\'", "<=", "c",...
b64val
creytiv/rem
train
O1
14
[ "Decode", "a", "Base64", "encoded", "string" ]
[ "'int", "base64_decode", "(", "const", "char", "*", "in", ",", "size_t", "ilen", ",", "uint8_t", "*", "out", ",", "size_t", "*", "olen", ")", "{", "const", "char", "*", "in_end", "=", "in", "+", "ilen", ";", "const", "uint8_t", "*", "o", "=", "out"...
base64_decode
creytiv/rem
train
O1
15
[ "Base64", "encode", "a", "buffer" ]
[ "\"int", "base64_encode", "(", "const", "uint8_t", "*", "in", ",", "size_t", "ilen", ",", "char", "*", "out", ",", "size_t", "*", "olen", ")", "{", "const", "uint8_t", "*", "in_end", "=", "in", "+", "ilen", ";", "const", "char", "*", "o", "=", "out...
base64_encode
creytiv/rem
train
O1
16
[ "CSE", "with", "explicit", "search", "limit" ]
[ "'TRef", "LJ_FASTCALL", "lj_opt_cselim", "(", "jit_State", "*", "J", ",", "IRRef", "lim", ")", "{", "IRRef", "ref", "=", "J", "->", "chain", "[", "fins", "->", "o", "]", ";", "IRRef2", "op12", "=", "(", "IRRef2", ")", "fins", "->", "op1", "+", "(",...
lj_opt_cselim
tilkinsc/LuaConsole
train
O2
17
[ "Constant", "folding", "for", "64", "bit", "integers" ]
[ "'static", "uint64_t", "kfold_int64arith", "(", "uint64_t", "k1", ",", "uint64_t", "k2", ",", "IROp", "op", ")", "{", "switch", "(", "op", ")", "{", "#", "if", "LJ_64", "||", "LJ_HASFFI", "case", "IR_ADD", ":", "k1", "+=", "k2", ";", "break;", "case", ...
kfold_int64arith
tilkinsc/LuaConsole
train
O2
18
[ "Do", "the", "first", "for", "part" ]
[ "'void", "tag_for", "(", "parser_status", "*", "st", ",", "list", "*", "l", ")", "{", "function_add_code", "(", "st", ",", "\"", "{\\\"", "\"", "onion_dict", "*loopdict=NULL;\\\"", ")", ";", "variable_solve", "(", "st", ",", "tag_value_arg", "(", "l", ",",...
tag_for
davidmoreno/onion
train
Os
19
[ "Include", "an", "external", "html" ]
[ "'void", "tag_include", "(", "parser_status", "*", "st", ",", "list", "*", "l", ")", "{", "assert", "(", "st", "!=", "NULL", ")", ";", "//", "Tell", "coverty", "that", "at", "function_new", "it", "will", "keep", "a", "pointer", "to", "the", "original,"...
tag_include
davidmoreno/onion
train
Os
20
[ "Loads", "an", "external", "handler", "set" ]
[ "'void", "tag_load", "(", "parser_status", "*", "st", ",", "list", "*", "l", ")", "{", "list_item", "*", "it", "=", "l", "->", "head", "->", "next", ";", "while", "(", "it", ")", "{", "const", "char", "*", "modulename", "=", "(", "(", "tag_token", ...
tag_load
davidmoreno/onion
train
Os
22
[ "inserts", "\"inst\"", "before", "\"where\"", "(\"inst\"", "can", "be", "a", "chain", "of", "insts)" ]
[ "'void", "instrlist_preinsert", "(", "instrlist_t", "*", "ilist", ",", "instr_t", "*", "where", ",", "instr_t", "*", "inst", ")", "{", "instr_t", "*", "whereprev", ";", "instr_t", "*", "top", "=", "inst", ";", "instr_t", "*", "bot", ";", "if", "(", "wh...
instrlist_preinsert
DynamoRIO/drmemory
train
Os
23
[ "frees", "the", "Instrs", "in", "the", "instrlist_t", "and", "the", "instrlist_t", "object", "itself" ]
[ "'void", "instrlist_clear_and_destroy", "(", "dcontext_t", "*", "dcontext", ",", "instrlist_t", "*", "ilist", ")", "{", "instrlist_clear", "(", "dcontext", ",", "ilist", ")", ";", "instrlist_destroy", "(", "dcontext", ",", "ilist", ")", ";", "}'" ]
instrlist_clear_and_destroy
DynamoRIO/drmemory
train
Os
24
[ "appends", "inst", "to", "the", "list", "(\"inst\"", "can", "be", "a", "chain", "of", "insts)" ]
[ "'void", "instrlist_append", "(", "instrlist_t", "*", "ilist", ",", "instr_t", "*", "inst", ")", "{", "instr_t", "*", "top", "=", "inst", ";", "instr_t", "*", "bot", ";", "CLIENT_ASSERT", "(", "instr_get_prev", "(", "inst", ")", "==", "NULL", ",", "\"ins...
instrlist_append
DynamoRIO/drmemory
train
Os
25
[ "returns", "the", "first", "inst", "in", "the", "list" ]
[ "'instr_t", "*", "instrlist_first", "(", "instrlist_t", "*", "ilist", ")", "{", "return", "ilist", "->", "first", ";", "}'" ]
instrlist_first
DynamoRIO/drmemory
train
Os
26
[ "removes", "\"inst\"", "from", "the", "instrlist_t", "it", "currently", "belongs", "to" ]
[ "'void", "instrlist_remove", "(", "instrlist_t", "*", "ilist", ",", "instr_t", "*", "inst", ")", "{", "if", "(", "instr_get_prev", "(", "inst", ")", ")", "instr_set_next", "(", "instr_get_prev", "(", "inst", ")", ",", "instr_get_next", "(", "inst", ")", ")...
instrlist_remove
DynamoRIO/drmemory
train
Os
27
[ "frees", "the", "Instrs", "in", "the", "instrlist_t" ]
[ "'void", "instrlist_clear", "(", "dcontext_t", "*", "dcontext", ",", "instrlist_t", "*", "ilist", ")", "{", "instr_t", "*", "instr", ";", "while", "(", "NULL", "!=", "(", "instr", "=", "instrlist_first", "(", "ilist", ")", ")", ")", "{", "instrlist_remove"...
instrlist_clear
DynamoRIO/drmemory
train
Os
28
[ "returns", "the", "first", "app", "(nonmeta)", "inst", "in", "the", "list" ]
[ "'instr_t", "*", "instrlist_first_app", "(", "instrlist_t", "*", "ilist", ")", "{", "instr_t", "*", "first", "=", "ilist", "->", "first", ";", "if", "(", "first", "==", "NULL", ")", "return", "NULL", ";", "if", "(", "instr_is_app", "(", "first", ")", "...
instrlist_first_app
DynamoRIO/drmemory
train
Os
29
[ "frees", "the", "instrlist_t", "object" ]
[ "'void", "instrlist_destroy", "(", "dcontext_t", "*", "dcontext", ",", "instrlist_t", "*", "ilist", ")", "{", "CLIENT_ASSERT", "(", "ilist", "->", "first", "==", "NULL", "&&", "ilist", "->", "last", "==", "NULL", ",", "\"instrlist_destroy:", "list", "not", "...
instrlist_destroy
DynamoRIO/drmemory
train
Os
30
[ "inserts", "\"inst\"", "after", "\"where\"", "(\"inst\"", "can", "be", "a", "chain", "of", "insts)" ]
[ "'void", "instrlist_postinsert", "(", "instrlist_t", "*", "ilist", ",", "instr_t", "*", "where", ",", "instr_t", "*", "inst", ")", "{", "instr_t", "*", "wherenext", ";", "instr_t", "*", "top", "=", "inst", ";", "instr_t", "*", "bot", ";", "if", "(", "w...
instrlist_postinsert
DynamoRIO/drmemory
train
Os
31
[ "initializes", "an", "instrlist_t", "object" ]
[ "'void", "instrlist_init", "(", "instrlist_t", "*", "ilist", ")", "{", "CLIENT_ASSERT", "(", "ilist", "!=", "NULL", ",", "\"instrlist_create:", "NULL", "parameter\"", ")", ";", "ilist", "->", "first", "=", "ilist", "->", "last", "=", "NULL", ";", "ilist", ...
instrlist_init
DynamoRIO/drmemory
train
Os
32
[ "returns", "an", "empty", "instrlist_t", "object" ]
[ "'instrlist_t", "*", "instrlist_create", "(", "dcontext_t", "*", "dcontext", ")", "{", "instrlist_t", "*", "ilist", "=", "(", "instrlist_t", "*", ")", "heap_alloc", "(", "dcontext", ",", "sizeof", "(", "instrlist_t", ")", "HEAPACCT", "(", "ACCT_IR", ")", ")"...
instrlist_create
DynamoRIO/drmemory
train
Os
33
[ "check", "assumptions", "about", "type", "sizes" ]
[ "'void", "cgc_types_check", "()", "{", "c", "(", "uint8", ",", "1", ")", ";", "c", "(", "sint8", ",", "1", ")", ";", "c", "(", "uint16", ",", "2", ")", ";", "c", "(", "sint16", ",", "2", ")", ";", "c", "(", "uint32", ",", "4", ")", ";", "...
cgc_types_check
trailofbits/cb-multios
train
Of
34
[ "Debugging", "version", "of", "struct", "sym_fns" ]
[ "'static", "void", "debug_sym_new_init", "(", "struct", "objfile", "*", "objfile", ")", "{", "const", "struct", "debug_sym_fns_data", "*", "debug_data", "=", "objfile_data", "(", "objfile", ",", "symfile_debug_objfile_data_key", ")", ";", "fprintf_filtered", "(", "g...
debug_sym_new_init
SuperHouse/esp-open-rtos
train
Oa
35
[ "Debugging", "version", "of", "struct", "quick_symbol_functions" ]
[ "'static", "int", "debug_qf_has_symbols", "(", "struct", "objfile", "*", "objfile", ")", "{", "const", "struct", "debug_sym_fns_data", "*", "debug_data", "=", "objfile_data", "(", "objfile", ",", "symfile_debug_objfile_data_key", ")", ";", "int", "retval", ";", "r...
debug_qf_has_symbols
SuperHouse/esp-open-rtos
train
Oa
36
[ "Return", "nonzero", "if", "symfile", "debug", "logging", "is", "installed" ]
[ "'static", "int", "symfile_debug_installed", "(", "struct", "objfile", "*", "objfile", ")", "{", "return", "(", "objfile", "->", "sf", "!=", "NULL", "&&", "objfile_data", "(", "objfile", ",", "symfile_debug_objfile_data_key", ")", "!=", "NULL", ")", ";", "}'" ...
symfile_debug_installed
SuperHouse/esp-open-rtos
train
Oa
37
[ "Free", "the", "copy", "of", "sym_fns", "recorded", "in", "the", "registry" ]
[ "'static", "void", "symfile_debug_free_objfile", "(", "struct", "objfile", "*", "objfile", ",", "void", "*", "datum", ")", "{", "xfree", "(", "datum", ")", ";", "}'" ]
symfile_debug_free_objfile
SuperHouse/esp-open-rtos
train
Oa
50
[ "Returns", "the", "last", "I2Cx", "Event" ]
[ "'uint32_t", "I2C_GetLastEvent", "(", "I2C_TypeDef", "*", "I2Cx", ")", "{", "uint32_t", "lastevent", "=", "0", ";", "uint32_t", "flag1", "=", "0", ",", "<type", "ref=\"prev\"/>", "flag2", "=", "0", ";", "/*", "Check", "the", "parameters", "*/", "assert_param...
I2C_GetLastEvent
librepilot/LibrePilot
train
Os
51
[ "Returns", "the", "most", "recent", "received", "data", "by", "the", "I2Cx", "peripheral" ]
[ "'uint8_t", "I2C_ReceiveData", "(", "I2C_TypeDef", "*", "I2Cx", ")", "{", "/*", "Check", "the", "parameters", "*/", "assert_param", "(", "IS_I2C_ALL_PERIPH", "(", "I2Cx", ")", ")", ";", "/*", "Return", "the", "data", "in", "the", "DR", "register", "*/", "r...
I2C_ReceiveData
librepilot/LibrePilot
train
Os
52
[ "Selects", "the", "specified", "I2C", "NACK", "position", "in", "master", "receiver", "mode" ]
[ "'void", "I2C_NACKPositionConfig", "(", "I2C_TypeDef", "*", "I2Cx", ",", "uint16_t", "I2C_NACKPosition", ")", "{", "/*", "Check", "the", "parameters", "*/", "assert_param", "(", "IS_I2C_ALL_PERIPH", "(", "I2Cx", ")", ")", ";", "assert_param", "(", "IS_I2C_NACK_POS...
I2C_NACKPositionConfig
librepilot/LibrePilot
train
Os
56
[ "Custom", "free", "function", "for", "copied", "namespace", "nodes" ]
[ "'static", "void", "rxml_xpath_namespace_free", "(", "xmlNsPtr", "xns", ")", "{", "xmlFreeNs", "(", "xns", ")", ";", "}'" ]
rxml_xpath_namespace_free
xml4r/libxml-ruby
train
O3
57
[ "add", "an", "overlay", "to", "a", "particular", "backend" ]
[ "'int", "overlay_config", "(", "BackendDB", "*", "be", ",", "const", "char", "*", "ov", ",", "int", "idx", ",", "BackendInfo", "*", "*", "res", ",", "ConfigReply", "*", "cr", ")", "{", "slap_overinst", "*", "on", "=", "NULL", ",", "<type", "ref=\"prev\...
overlay_config
erthink/ReOpenLDAP
train
Of
58
[ "DMAMUX", "Set", "Request", "Generator", "Trigger", "GNBREQ" ]
[ "'void", "dmamux_set_request_generator_trigger_gnbreq", "(", "uint32_t", "dmamux", ",", "uint8_t", "rg_channel", ",", "uint8_t", "gnbreq", ")", "{", "uint32_t", "reg32", "=", "DMAMUX_RGxCR", "(", "dmamux", ",", "rg_channel", ")", ";", "reg32", "&=", "~", "(", "D...
dmamux_set_request_generator_trigger_gnbreq
libopencm3/libopencm3
train
Os
59
[ "DMAMUX", "Set", "DMA", "Request", "Synchronization", "Event", "Polarity" ]
[ "'void", "dmamux_set_dma_request_sync_pol", "(", "uint32_t", "dmamux", ",", "uint8_t", "channel", ",", "uint8_t", "polarity", ")", "{", "uint32_t", "reg32", "=", "DMAMUX_CxCR", "(", "dmamux", ",", "channel", ")", ";", "reg32", "&=", "~", "(", "DMAMUX_CxCR_SPOL_M...
dmamux_set_dma_request_sync_pol
libopencm3/libopencm3
train
Os
60
[ "DMAMUX", "Clear", "DMA", "Request", "Synchronization", "Overrun", "Interrupt", "Flag" ]
[ "'void", "dmamux_clear_dma_request_sync_overrun", "(", "uint32_t", "dmamux", ",", "uint8_t", "channel", ")", "{", "DMAMUX_CFR", "(", "dmamux", ")", "=", "DMAMUX_CFR_CSOF", "(", "channel", ")", ";", "}'" ]
dmamux_clear_dma_request_sync_overrun
libopencm3/libopencm3
train
Os
61
[ "DMAMUX", "Get", "DMA", "Request", "Synchronization", "Overrun", "Interrupt", "Flag" ]
[ "'uint32_t", "dmamux_get_dma_request_sync_overrun", "(", "uint32_t", "dmamux", ",", "uint8_t", "channel", ")", "{", "return", "DMAMUX_CSR", "(", "dmamux", ")", "&", "DMAMUX_CSR_SOF", "(", "channel", ")", ";", "}'" ]
dmamux_get_dma_request_sync_overrun
libopencm3/libopencm3
train
Os
62
[ "DMAMUX", "Reset", "Request", "Generator", "Channel" ]
[ "'void", "dmamux_reset_request_generator_channel", "(", "uint32_t", "dmamux", ",", "uint8_t", "rg_channel", ")", "{", "DMAMUX_CxCR", "(", "dmamux", ",", "rg_channel", ")", "=", "0", ";", "dmamux_clear_request_generator_trigger_overrun_interrupt", "(", "dmamux", ",", "rg...
dmamux_reset_request_generator_channel
libopencm3/libopencm3
train
Os
63
[ "DMAMUX", "Disable", "DMA", "Request", "Event", "Generation" ]
[ "'void", "dmamux_disable_dma_request_event_generation", "(", "uint32_t", "dmamux", ",", "uint8_t", "channel", ")", "{", "DMAMUX_CxCR", "(", "dmamux", ",", "channel", ")", "&=", "~", "DMAMUX_CxCR_EGE", ";", "}'" ]
dmamux_disable_dma_request_event_generation
libopencm3/libopencm3
train
Os
64
[ "DMAMUX", "Set", "DMA", "Channel", "Request" ]
[ "'void", "dmamux_set_dma_channel_request", "(", "uint32_t", "dmamux", ",", "uint8_t", "channel", ",", "uint8_t", "request_id", ")", "{", "uint32_t", "reg32", "=", "DMAMUX_CxCR", "(", "dmamux", ",", "channel", ")", ";", "reg32", "&=", "~", "(", "DMAMUX_CxCR_DMARE...
dmamux_set_dma_channel_request
libopencm3/libopencm3
train
Os
66
[ "The", "caller", "can", "assume", "that", "this", "removes", "any", "secret", "data", "from", "the", "context" ]
[ "'int", "EVP_DigestFinal", "(", "EVP_MD_CTX", "*", "ctx", ",", "unsigned", "char", "*", "md", ",", "unsigned", "int", "*", "size", ")", "{", "int", "ret", ";", "ret", "=", "EVP_DigestFinal_ex", "(", "ctx", ",", "md", ",", "size", ")", ";", "EVP_MD_CTX_...
EVP_DigestFinal
libressl-portable/portable
train
Os
67
[ "currently", "the", "longest", "string", "is", "\"", "12", "\\0\"", "(5", "chars)" ]
[ "'int", "allowedGametype", "(", "const", "char", "*", "gametypeStr", ")", "{", "char", "tempStr", "[", "MAX_GAMETYPENAME_LENGTH", "]", ";", "int", "length", ";", "char", "voteGametypes", "[", "MAX_CVAR_VALUE_STRING", "]", ";", "trap_Cvar_VariableStringBuffer", "(", ...
allowedGametype
OpenArena/gamecode
train
O3
68
[ "Map", "synthetic", "interrupt", "controller" ]
[ "'static", "void", "hv_map_synic", "(", "struct", "hv_hypervisor", "*", "hv", ")", "{", "uint64_t", "simp", ";", "uint64_t", "siefp", ";", "uint64_t", "scontrol", ";", "/*", "Zero", "SynIC", "message", "and", "event", "pages", "*/", "memset", "(", "hv", "-...
hv_map_synic
ipxe/ipxe
train
Os
69
[ "Wait", "for", "received", "message" ]
[ "'int", "hv_wait_for_message", "(", "struct", "hv_hypervisor", "*", "hv", ",", "unsigned", "int", "sintx", ")", "{", "struct", "hv_message", "*", "msg", "=", "&", "hv", "->", "message", "->", "received", ";", "struct", "hv_message", "*", "src", "=", "&", ...
hv_wait_for_message
ipxe/ipxe
train
Os
70
[ "Delay", "for", "a", "fixed", "number", "of", "microseconds" ]
[ "'static", "void", "hv_udelay", "(", "unsigned", "long", "usecs", ")", "{", "uint32_t", "start", ";", "uint32_t", "elapsed", ";", "uint32_t", "threshold", ";", "/*", "Spin", "until", "specified", "number", "of", "10MHz", "ticks", "have", "elapsed", "*/", "st...
hv_udelay
ipxe/ipxe
train
Os
73
[ "Accumulate", "data", "with", "MD4", "algorithm" ]
[ "'static", "void", "md4_update", "(", "void", "*", "ctx", ",", "const", "void", "*", "data", ",", "size_t", "len", ")", "{", "struct", "md4_context", "*", "context", "=", "ctx", ";", "const", "uint8_t", "*", "byte", "=", "data", ";", "size_t", "offset"...
md4_update
ipxe/ipxe
train
Os
74
[ "f(b,c,d,w)", "for", "steps", "32", "to", "47" ]
[ "'static", "uint32_t", "md4_f_32_47", "(", "struct", "md4_variables", "*", "v", ",", "unsigned", "int", "i", ")", "{", "static", "const", "uint8_t", "reverse", "[", "16", "]", "=", "{", "0", ",", "8", ",", "4", ",", "12", ",", "2", ",", "10", ",", ...
md4_f_32_47
ipxe/ipxe
train
Os
75
[ "f(b,c,d,w)", "for", "steps", "16", "to", "31" ]
[ "'static", "uint32_t", "md4_f_16_31", "(", "struct", "md4_variables", "*", "v", ",", "unsigned", "int", "i", ")", "{", "return", "(", "(", "(", "v", "->", "b", "&", "v", "->", "c", ")", "|", "(", "v", "->", "b", "&", "v", "->", "d", ")", "|", ...
md4_f_16_31
ipxe/ipxe
train
Os
76
[ "f(b,c,d,w)", "for", "steps", "0", "to", "15" ]
[ "'static", "uint32_t", "md4_f_0_15", "(", "struct", "md4_variables", "*", "v", ",", "unsigned", "int", "i", ")", "{", "return", "(", "(", "(", "v", "->", "b", "&", "v", "->", "c", ")", "|", "(", "~", "v", "->", "b", "&", "v", "->", "d", ")", ...
md4_f_0_15
ipxe/ipxe
train
Os
77
[ "public", "functions", "Show", "file", "history", "and", "return", "the", "selected", "file" ]
[ "'char", "*", "show_file_history", "(", "const", "Widget", "*", "w", ",", "int", "*", "action", ")", "{", "GList", "*", "file_list", ";", "size_t", "len", ";", "history_descriptor_t", "hd", ";", "file_list", "=", "file_history_list_read", "()", ";", "if", ...
show_file_history
MidnightCommander/mc
train
O1
78
[ "teamnames", "must", "be", "static", "storage,", "pointers", "to", "it", "will", "not", "be", "freed" ]
[ "'static", "void", "q3parseteams", "(", "struct", "server", "*", "s", ",", "const", "unsigned", "numteams", ",", "char", "*", "*", "playerteamrules", ",", "//", "which", "rule", "holds", "the", "numbers", "that", "indicate", "which", "player", "is", "in", ...
q3parseteams
XQF/xqf
train
Os
79
[ "ip", "for", "hostname", "resolved" ]
[ "'static", "void", "stat_name_resolved_callback", "(", "char", "*", "id", ",", "struct", "host", "*", "h", ",", "enum", "dns_status", "status", ",", "void", "*", "data", ")", "{", "struct", "stat_job", "*", "job", "=", "(", "struct", "stat_job", "*", ")"...
stat_name_resolved_callback
XQF/xqf
train
Os
80
[ "the", "function", "should", "return", "FALSE", "if", "the", "event", "source", "should", "be", "removed" ]
[ "'static", "gboolean", "stat_master_input_callback", "(", "GIOChannel", "*", "chan", ",", "GIOCondition", "condition", ",", "struct", "stat_conn", "*", "conn", ")", "{", "struct", "stat_job", "*", "job", "=", "conn", "->", "job", ";", "gchar", "*", "buf", "=...
stat_master_input_callback
XQF/xqf
train
Os
81
[ "returns", "position", "relative", "to", "last", "mark" ]
[ "'int", "cgc_io_tell", "(", "io_t", "*", "io", ")", "{", "return", "io", "->", "pos", "-", "io", "->", "mark", ";", "}'" ]
cgc_io_tell
trailofbits/cb-multios
train
Of
82
[ "seeks", "to", "a", "position", "relative", "to", "last", "mark" ]
[ "'int", "cgc_io_seek", "(", "io_t", "*", "io", ",", "int", "pos", ")", "{", "int", "new_pos", "=", "io", "->", "mark", "+", "pos", ";", "if", "(", "new_pos", ">", "io", "->", "length", ")", "return", "0", ";", "io", "->", "pos", "=", "new_pos", ...
cgc_io_seek
trailofbits/cb-multios
train
Of
83
[ "threads", "suspended", "until", "the", "fork", "finishes" ]
[ "\"void", "scp_lock_init", "(", "void", ")", "{", "/*", "initializing", "fork", "lock", "*/", "pthread_mutexattr_init", "(", "&", "lock_fork_attr", ")", ";", "pthread_mutex_init", "(", "&", "lock_fork", ",", "&", "lock_fork_attr", ")", ";", "lock_fork_req", "=",...
scp_lock_init
neutrinolabs/xrdp
train
O2
84
[ "RCC", "Set", "the", "PLL", "Multiplication", "Factor" ]
[ "'void", "rcc_set_pll_multiplication_factor", "(", "uint32_t", "mul", ")", "{", "RCC_CFGR", "=", "(", "RCC_CFGR", "&", "~", "RCC_CFGR_PLLMUL", ")", "|", "mul", ";", "}'" ]
rcc_set_pll_multiplication_factor
Bulebots/bulebule
train
O1
85
[ "RCC", "Set", "the", "Source", "for", "the", "RTC", "clock" ]
[ "'void", "rcc_set_rtc_clock_source", "(", "enum", "rcc_osc", "clk", ")", "{", "switch", "(", "clk", ")", "{", "case", "RCC_HSE", ":", "RCC_BDCR", "=", "(", "RCC_BDCR", "&", "~", "RCC_BDCR_RTCSEL", ")", "|", "RCC_BDCR_RTCSEL_HSE", ";", "break;", "case", "RCC_...
rcc_set_rtc_clock_source
Bulebots/bulebule
train
O1
86
[ "RCC", "Turn", "off", "an", "Oscillator" ]
[ "\"void", "rcc_osc_off", "(", "enum", "rcc_osc", "osc", ")", "{", "switch", "(", "osc", ")", "{", "case", "RCC_HSI48", ":", "RCC_CR2", "&=", "~", "RCC_CR2_HSI48ON", ";", "break;", "case", "RCC_HSI14", ":", "RCC_CR2", "&=", "~", "RCC_CR2_HSI14ON", ";", "bre...
rcc_osc_off
Bulebots/bulebule
train
O1
87
[ "RCC", "Get", "the", "System", "Clock", "Source" ]
[ "'enum", "rcc_osc", "rcc_system_clock_source", "(", "void", ")", "{", "/*", "Return", "the", "clock", "source", "which", "is", "used", "as", "system", "clock.", "*/", "switch", "(", "RCC_CFGR", "&", "RCC_CFGR_SWS", ")", "{", "case", "RCC_CFGR_SWS_HSI", ":", ...
rcc_system_clock_source
Bulebots/bulebule
train
O1
88
[ "RCC", "Enable", "the", "Clock", "Security", "System" ]
[ "'void", "rcc_css_enable", "(", "void", ")", "{", "RCC_CR", "|=", "RCC_CR_CSSON", ";", "}'" ]
rcc_css_enable
Bulebots/bulebule
train
O1
89
[ "RCC", "Set", "the", "APB", "Prescale", "Factor" ]
[ "'void", "rcc_set_ppre", "(", "uint32_t", "ppre", ")", "{", "RCC_CFGR", "=", "(", "RCC_CFGR", "&", "~", "RCC_CFGR_PPRE", ")", "|", "ppre", ";", "}'" ]
rcc_set_ppre
Bulebots/bulebule
train
O1
90
[ "RCC", "Set", "the", "Source", "for", "the", "System", "Clock" ]
[ "'void", "rcc_set_sysclk_source", "(", "enum", "rcc_osc", "clk", ")", "{", "switch", "(", "clk", ")", "{", "case", "RCC_HSI", ":", "RCC_CFGR", "=", "(", "RCC_CFGR", "&", "~", "RCC_CFGR_SW", ")", "|", "RCC_CFGR_SW_HSI", ";", "break;", "case", "RCC_HSE", ":"...
rcc_set_sysclk_source
Bulebots/bulebule
train
O1
91
[ "RCC", "Set", "the", "Source", "for", "the", "USB", "Clock" ]
[ "'void", "rcc_set_usbclk_source", "(", "enum", "rcc_osc", "clk", ")", "{", "switch", "(", "clk", ")", "{", "case", "RCC_PLL", ":", "RCC_CFGR3", "|=", "RCC_CFGR3_USBSW", ";", "break;", "case", "RCC_HSI48", ":", "RCC_CFGR3", "&=", "~", "RCC_CFGR3_USBSW", ";", ...
rcc_set_usbclk_source
Bulebots/bulebule
train
O1
92
[ "RCC", "Turn", "on", "an", "Oscillator" ]
[ "'void", "rcc_osc_on", "(", "enum", "rcc_osc", "osc", ")", "{", "switch", "(", "osc", ")", "{", "case", "RCC_HSI48", ":", "RCC_CR2", "|=", "RCC_CR2_HSI48ON", ";", "break;", "case", "RCC_HSI14", ":", "RCC_CR2", "|=", "RCC_CR2_HSI14ON", ";", "break;", "case", ...
rcc_osc_on
Bulebots/bulebule
train
O1
93
[ "RCC", "Disable", "the", "Clock", "Security", "System" ]
[ "'void", "rcc_css_disable", "(", "void", ")", "{", "RCC_CR", "&=", "~", "RCC_CR_CSSON", ";", "}'" ]
rcc_css_disable
Bulebots/bulebule
train
O1
94
[ "RCC", "Disable", "the", "RTC", "clock" ]
[ "'void", "rcc_disable_rtc_clock", "(", "void", ")", "{", "RCC_BDCR", "&=", "~", "RCC_BDCR_RTCEN", ";", "}'" ]
rcc_disable_rtc_clock
Bulebots/bulebule
train
O1
95
[ "RCC", "Enable", "the", "RTC", "clock" ]
[ "'void", "rcc_enable_rtc_clock", "(", "void", ")", "{", "RCC_BDCR", "|=", "RCC_BDCR_RTCEN", ";", "}'" ]
rcc_enable_rtc_clock
Bulebots/bulebule
train
O1
96
[ "RCC", "Clear", "the", "Clock", "Security", "System", "Interrupt", "Flag" ]
[ "'void", "rcc_css_int_clear", "(", "void", ")", "{", "RCC_CIR", "|=", "RCC_CIR_CSSC", ";", "}'" ]
rcc_css_int_clear
Bulebots/bulebule
train
O1
97
[ "logs", "directly,", "returns", "EXIT_SUCCESS,", "EXIT_FAILURE,", "1" ]
[ "'int", "fill_yin_type", "(", "struct", "lys_module", "*", "module", ",", "struct", "lys_node", "*", "parent", ",", "struct", "lyxml_elem", "*", "yin", ",", "struct", "lys_type", "*", "type", ",", "int", "parenttype", ",", "struct", "unres_schema", "*", "unr...
fill_yin_type
CESNET/libnetconf2
train
Og
98
[ "Set", "the", "current", "line", "number" ]
[ "'void", "yyset_lineno", "(", "int", "line_number", ")", "{", "yylineno", "=", "line_number", ";", "}'" ]
yyset_lineno
HomerReid/scuff-em
train
O2
99
[ "Set", "the", "input", "stream" ]
[ "'void", "yyset_in", "(", "FILE", "*", "in_str", ")", "{", "yyin", "=", "in_str", ";", "}'" ]
yyset_in
HomerReid/scuff-em
train
O2
100
[ "Switch", "to", "a", "different", "input", "buffer" ]
[ "\"void", "yy_switch_to_buffer", "(", "YY_BUFFER_STATE", "new_buffer", ")", "{", "/*", "TODO.", "We", "should", "be", "able", "to", "replace", "this", "entire", "function", "body", "*", "with", "*", "yypop_buffer_state();", "*", "yypush_buffer_state(new_buffer);", "...
yy_switch_to_buffer
HomerReid/scuff-em
train
O2
101
[ "Discard", "all", "buffered", "characters" ]
[ "'void", "yy_flush_buffer", "(", "YY_BUFFER_STATE", "b", ")", "{", "if", "(", "!", "b", ")", "return", ";", "b", "->", "yy_n_chars", "=", "0", ";", "/*", "We", "always", "need", "two", "end-of-buffer", "characters.", "The", "first", "causes", "*", "a", ...
yy_flush_buffer
HomerReid/scuff-em
train
O2
102
[ "Start", "processing", "the", "queue", "if", "it", "is", "not", "running", "and", "fstorage", "is", "not", "paused" ]
[ "'static", "void", "queue_start", "(", "void", ")", "{", "if", "(", "(", "!", "nrf_atomic_flag_set_fetch", "(", "&", "m_flags", ".", "queue_running", ")", ")", "&&", "(", "!", "m_flags", ".", "paused", ")", ")", "{", "queue_process", "()", ";", "}", "}...
queue_start
Lotlab/nrf52-keyboard
train
Os
103
[ "Execute", "an", "operation", "in", "the", "queue" ]
[ "'static", "void", "queue_process", "(", "void", ")", "{", "uint32_t", "rc", ";", "if", "(", "m_flags", ".", "state", "==", "NRF_FSTORAGE_STATE_IDLE", ")", "{", "if", "(", "!", "queue_load_next", "()", ")", "{", "/*", "No", "more", "operations,", "nothing"...
queue_process
Lotlab/nrf52-keyboard
train
Os
104
[ "getdns_pp_bindata", "private", "function", "to", "pretty", "print", "bindata", "to", "a", "gldns_buffer" ]
[ "'static", "int", "getdns_pp_bindata", "(", "gldns_buffer", "*", "buf", ",", "getdns_bindata", "*", "bindata", ",", "int", "rdata_raw", ",", "int", "json", ")", "{", "size_t", "i", ",", "<type", "ref=\"prev\"/>", "p", "=", "gldns_buffer_position", "(", "buf", ...
getdns_pp_bindata
getdnsapi/getdns
train
O1
105
[ "getdns_pp_dict", "getdns_pretty_print_dict", "Return", "a", "character", "string", "containing", "a", "\"human", "readable\"", "representation", "of", "dict" ]
[ "'char", "*", "getdns_pretty_print_dict", "(", "const", "struct", "getdns_dict", "*", "dict", ")", "{", "gldns_buffer", "*", "buf", ";", "char", "*", "ret", ";", "if", "(", "!", "dict", ")", "return", "NULL", ";", "buf", "=", "gldns_buffer_new", "(", "81...
getdns_pretty_print_dict
getdnsapi/getdns
train
O1
106
[ "getdns_dict_item_free", "private", "function", "used", "to", "release", "storage", "associated", "with", "a", "dictionary", "item" ]
[ "'static", "void", "getdns_dict_item_free", "(", "_getdns_rbnode_t", "*", "node", ",", "void", "*", "arg", ")", "{", "struct", "getdns_dict_item", "*", "d", "=", "(", "struct", "getdns_dict_item", "*", ")", "node", ";", "struct", "getdns_dict", "*", "dict", ...
getdns_dict_item_free
getdnsapi/getdns
train
O1
107
[ "getdns_dict_create", "_getdns_dict_copy", "private", "function", "used", "to", "make", "a", "copy", "of", "a", "dict", "structure,", "the", "caller", "is", "responsible", "for", "freeing", "storage", "allocated", "to", "returned", "value" ]
[ "'getdns_return_t", "_getdns_dict_copy", "(", "const", "struct", "getdns_dict", "*", "srcdict", ",", "struct", "getdns_dict", "*", "*", "dstdict", ")", "{", "struct", "getdns_dict_item", "*", "item", ";", "char", "*", "key", ";", "getdns_return_t", "retval", ";"...
_getdns_dict_copy
getdnsapi/getdns
train
O1
108
[ "getdns_pp_list", "private", "function", "to", "pretty", "print", "list", "to", "a", "gldns_buffer" ]
[ "'static", "int", "getdns_pp_list", "(", "gldns_buffer", "*", "buf", ",", "size_t", "indent", ",", "const", "getdns_list", "*", "list", ",", "int", "for_literals", ",", "int", "json", ")", "{", "size_t", "i", ",", "<type", "ref=\"prev\"/>", "length", ",", ...
getdns_pp_list
getdnsapi/getdns
train
O1
109
[ "getdns_dict_set_int", "getdns_pp_dict", "private", "function", "to", "help", "with", "indenting" ]
[ "'static", "const", "char", "*", "getdns_indent", "(", "size_t", "indent", ")", "{", "static", "const", "char", "*", "spaces", "=", "\"", "\"", "\"", "\"", ";", "return", "spaces", "+", "80", "-", "(", "indent", "<", "80", "?", "indent", ":", "0", ...
getdns_indent
getdnsapi/getdns
train
O1
110
[ "getdns_pp_dict", "private", "function", "to", "pretty", "print", "dict", "to", "a", "gldns_buffer" ]
[ "'static", "int", "getdns_pp_dict", "(", "gldns_buffer", "*", "buf", ",", "size_t", "indent", ",", "const", "getdns_dict", "*", "dict", ",", "int", "json", ")", "{", "size_t", "i", ",", "<type", "ref=\"prev\"/>", "length", ",", "<type", "ref=\"prev\"/>", "p"...
getdns_pp_dict
getdnsapi/getdns
train
O1
111
[ "Reenable", "compiling", "a", "prototype", "by", "unpatching", "any", "modified", "bytecode" ]
[ "'void", "lj_trace_reenableproto", "(", "GCproto", "*", "pt", ")", "{", "if", "(", "(", "pt", "->", "flags", "&", "PROTO_ILOOP", ")", ")", "{", "BCIns", "*", "bc", "=", "proto_bc", "(", "pt", ")", ";", "BCPos", "i", ",", "<type", "ref=\"prev\"/>", "s...
lj_trace_reenableproto
openresty/stream-lua-nginx-module
train
O1
112
[ "Handle", "commands", "and", "read", "requests" ]
[ "'static", "void", "usb_control_setup_read", "(", "usbd_device", "*", "usbd_dev", ",", "struct", "usb_setup_data", "*", "req", ")", "{", "usbd_dev", "->", "control_state", ".", "ctrl_buf", "=", "usbd_dev", "->", "ctrl_buf", ";", "usbd_dev", "->", "control_state", ...
usb_control_setup_read
libopencm3/libopencm3
train
Os
118
[ "FIPS", "wrapper", "functions", "to", "block", "low", "level", "AES", "calls", "in", "FIPS", "mode" ]
[ "'int", "AES_set_encrypt_key", "(", "const", "unsigned", "char", "*", "userKey", ",", "const", "int", "bits", ",", "AES_KEY", "*", "key", ")", "{", "#", "ifdef", "OPENSSL_FIPS", "fips_cipher_abort", "(", "AES", ")", ";", "#", "endif", "return", "private_AES_...
AES_set_encrypt_key
tpm2-software/tpm2-tss-engine
train
O3
126
[ "@func", "GPS_D1006_Get", "Convert", "packet", "D1006", "to", "course", "structure" ]
[ "'void", "GPS_D1006_Get", "(", "GPS_PCourse", "*", "crs", ",", "UC", "*", "p", ")", "{", "int", "i", ";", "(", "*", "crs", ")", "->", "index", "=", "GPS_Util_Get_Short", "(", "p", ")", ";", "p", "+=", "sizeof", "(", "uint16", ")", ";", "p", "+=",...
GPS_D1006_Get
OpenCPN/OpenCPN
train
Os
127
[ "@func", "GPS_A1008_Send", "Send", "Course", "Points", "to", "GPS" ]
[ "'int32", "GPS_A1008_Send", "(", "const", "char", "*", "port", ",", "GPS_PCourse_Point", "*", "cpt", ",", "int32", "n_cpt", ",", "gpsdevh", "*", "fd", ")", "{", "UC", "data", "[", "GPS_ARB_LEN", "]", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ...
GPS_A1008_Send
OpenCPN/OpenCPN
train
Os
128
[ "@func", "GPS_D303b_Get", "Get", "track", "data", "(A302", "protocol)", "used", "in", "Forerunner", "301" ]
[ "'void", "GPS_D303b_Get", "(", "GPS_PTrack", "*", "trk", ",", "UC", "*", "data", ")", "{", "UC", "*", "p", ";", "uint32", "t", ";", "uint32", "raw_lat", ",", "<type", "ref=\"prev\"/>", "raw_lon", ";", "int", "lat_undefined", ",", "<type", "ref=\"prev\"/>",...
GPS_D303b_Get
OpenCPN/OpenCPN
train
Os
129
[ "@funcstatic", "GPS_D108_Send", "Form", "waypoint", "data", "string" ]
[ "'static", "void", "GPS_D108_Send", "(", "UC", "*", "data", ",", "GPS_PWay", "way", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "UC", "*", "q", ";", "int32", "i", ";", "p", "=", "data", ";", "*", "p", "++", "=", "way", "->", "wpt...
GPS_D108_Send
OpenCPN/OpenCPN
train
Os
130
[ "@func", "GPS_D311_Send", "Form", "track", "header", "data", "string" ]
[ "'void", "GPS_D311_Send", "(", "UC", "*", "data", ",", "GPS_PTrack", "trk", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "p", "=", "data", ";", "GPS_Util_Put_Short", "(", "p", ",", "(", "US", ")", "strtoul", "(", "trk", "->", "trk_ident...
GPS_D311_Send
OpenCPN/OpenCPN
train
Os