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 |
|---|---|---|---|---|---|---|
482 | [
"assumes",
"rel_ents",
"is",
"allocated",
"with",
"abc>K",
"floats,",
"and",
"heights",
"with",
"hmm>Mabc>K",
"floats"
] | [
"'int",
"hmmlogo_RelativeEntropy_all",
"(",
"P7_HMM",
"*",
"hmm",
",",
"P7_BG",
"*",
"bg",
",",
"float",
"*",
"rel_ents",
",",
"float",
"*",
"*",
"probs",
",",
"float",
"*",
"*",
"heights",
")",
"{",
"int",
"K",
"=",
"hmm",
"->",
"abc",
"->",
"K",
... | hmmlogo_RelativeEntropy_all | EddyRivasLab/hmmer | train | O3 |
483 | [
"assumes",
"heights",
"is",
"allocated",
"with",
"hmm>M",
"floats"
] | [
"'int",
"hmmlogo_ScoreHeights",
"(",
"P7_HMM",
"*",
"hmm",
",",
"P7_BG",
"*",
"bg",
",",
"float",
"*",
"*",
"heights",
")",
"{",
"int",
"K",
"=",
"hmm",
"->",
"abc",
"->",
"K",
";",
"int",
"M",
"=",
"hmm",
"->",
"M",
";",
"int",
"i",
",",
"<typ... | hmmlogo_ScoreHeights | EddyRivasLab/hmmer | train | O3 |
484 | [
"assumes",
"rel_ents",
"is",
"allocated",
"with",
"abc>K",
"floats,",
"and",
"heights",
"with",
"hmm>Mabc>K",
"floats"
] | [
"'int",
"hmmlogo_RelativeEntropy_above_bg",
"(",
"P7_HMM",
"*",
"hmm",
",",
"P7_BG",
"*",
"bg",
",",
"float",
"*",
"rel_ents",
",",
"float",
"*",
"*",
"probs",
",",
"float",
"*",
"*",
"heights",
")",
"{",
"int",
"K",
"=",
"hmm",
"->",
"abc",
"->",
"K... | hmmlogo_RelativeEntropy_above_bg | EddyRivasLab/hmmer | train | O3 |
485 | [
"Nonblocking",
"version",
"of",
"ADIOI_GEN_WriteStridedColl()"
] | [
"'void",
"ADIOI_GEN_IwriteStridedColl",
"(",
"ADIO_File",
"fd",
",",
"const",
"void",
"*",
"buf",
",",
"int",
"count",
",",
"MPI_Datatype",
"datatype",
",",
"int",
"file_ptr_type",
",",
"ADIO_Offset",
"offset",
",",
"MPI_Request",
"*",
"request",
",",
"int",
"... | ADIOI_GEN_IwriteStridedColl | pmodels/mpich | train | O1 |
486 | [
"Functions",
"with",
"Error",
"Codes"
] | [
"'int",
"gsl_sf_lambert_W0_e",
"(",
"double",
"x",
",",
"gsl_sf_result",
"*",
"result",
")",
"{",
"const",
"double",
"one_over_E",
"=",
"1.0",
"/",
"M_E",
";",
"const",
"double",
"q",
"=",
"x",
"+",
"one_over_E",
";",
"if",
"(",
"x",
"==",
"0.0",
")",
... | gsl_sf_lambert_W0_e | LSSTDESC/NaMaster | train | O4 |
487 | [
"Functions",
"related",
"to",
"ASYNC",
"via",
"script",
"functions"
] | [
"'int",
"register_async_script_handlers",
"(",
"async_script_start_function",
"*",
"f1",
",",
"async_script_resume_function",
"*",
"f2",
")",
"{",
"if",
"(",
"async_script_start_f",
")",
"{",
"LM_ERR",
"(",
"\"aync",
"script",
"handlers",
"already",
"registered\\\"",
... | register_async_script_handlers | OpenSIPS/opensips | train | O0 |
488 | [
"Functions",
"related",
"to",
"internal",
"ASYNC",
"support"
] | [
"'int",
"register_async_fd",
"(",
"int",
"fd",
",",
"async_resume_fd",
"*",
"f",
",",
"void",
"*",
"resume_param",
")",
"{",
"async_ctx",
"*",
"ctx",
"=",
"NULL",
";",
"if",
"(",
"(",
"ctx",
"=",
"shm_malloc",
"(",
"sizeof",
"(",
"async_ctx",
")",
")",... | register_async_fd | OpenSIPS/opensips | train | O0 |
493 | [
"dh_cb",
"is",
"identical",
"to",
"dsa_cb",
"in",
"apps",
"dsaparam"
] | [
"\"static",
"int",
"MS_CALLBACK",
"dh_cb",
"(",
"int",
"p",
",",
"int",
"n",
",",
"BN_GENCB",
"*",
"cb",
")",
"{",
"char",
"c",
"=",
"'*'",
";",
"if",
"(",
"p",
"==",
"0",
")",
"c",
"=",
"'.'",
";",
"if",
"(",
"p",
"==",
"1",
")",
"c",
"=",... | dh_cb | prbinu/tls-scan | train | O2 |
495 | [
"Prints",
"debugging",
"info",
"for",
"the",
"message"
] | [
"'static",
"herr_t",
"H5O__mtime_debug",
"(",
"H5F_t",
"H5_ATTR_UNUSED",
"*",
"f",
",",
"const",
"void",
"*",
"_mesg",
",",
"FILE",
"*",
"stream",
",",
"int",
"indent",
",",
"int",
"fwidth",
")",
"{",
"const",
"time_t",
"*",
"mesg",
"=",
"(",
"const",
... | H5O__mtime_debug | tbeu/matio | train | O3 |
496 | [
"Decode",
"a",
"new",
"modification",
"time",
"message",
"and",
"return",
"a",
"pointer",
"to",
"a",
"new",
"time_t",
"value"
] | [
"'static",
"void",
"*",
"H5O__mtime_new_decode",
"(",
"H5F_t",
"H5_ATTR_UNUSED",
"*",
"f",
",",
"H5O_t",
"H5_ATTR_UNUSED",
"*",
"open_oh",
",",
"unsigned",
"H5_ATTR_UNUSED",
"mesg_flags",
",",
"unsigned",
"H5_ATTR_UNUSED",
"*",
"ioflags",
",",
"size_t",
"H5_ATTR_UNU... | H5O__mtime_new_decode | tbeu/matio | train | O3 |
497 | [
"Returns",
"the",
"size",
"of",
"the",
"raw",
"message",
"in",
"bytes",
"not",
"counting",
"the",
"message",
"type",
"or",
"size",
"fields,",
"but",
"only",
"the",
"data",
"fields"
] | [
"'static",
"size_t",
"H5O_mtime_new_size",
"(",
"const",
"H5F_t",
"H5_ATTR_UNUSED",
"*",
"f",
",",
"hbool_t",
"H5_ATTR_UNUSED",
"disable_shared",
",",
"const",
"void",
"H5_ATTR_UNUSED",
"*",
"mesg",
")",
"{",
"FUNC_ENTER_NOAPI_NOINIT_NOERR",
"/*",
"check",
"args",
"... | H5O_mtime_new_size | tbeu/matio | train | O3 |
498 | [
"Returns",
"the",
"size",
"of",
"the",
"raw",
"message",
"in",
"bytes",
"not",
"counting",
"the",
"message",
"type",
"or",
"size",
"fields,",
"but",
"only",
"the",
"data",
"fields"
] | [
"'static",
"size_t",
"H5O_mtime_size",
"(",
"const",
"H5F_t",
"H5_ATTR_UNUSED",
"*",
"f",
",",
"hbool_t",
"H5_ATTR_UNUSED",
"disable_shared",
",",
"const",
"void",
"H5_ATTR_UNUSED",
"*",
"mesg",
")",
"{",
"FUNC_ENTER_NOAPI_NOINIT_NOERR",
"/*",
"check",
"args",
"*/",... | H5O_mtime_size | tbeu/matio | train | O3 |
499 | [
"Encodes",
"a",
"modification",
"time",
"message"
] | [
"'static",
"herr_t",
"H5O_mtime_encode",
"(",
"H5F_t",
"H5_ATTR_UNUSED",
"*",
"f",
",",
"hbool_t",
"H5_ATTR_UNUSED",
"disable_shared",
",",
"uint8_t",
"*",
"p",
",",
"const",
"void",
"*",
"_mesg",
")",
"{",
"const",
"time_t",
"*",
"mesg",
"=",
"(",
"const",
... | H5O_mtime_encode | tbeu/matio | train | O3 |
500 | [
"Copies",
"a",
"message",
"from",
"_MESG",
"to",
"_DEST,",
"allocating",
"_DEST",
"if",
"necessary"
] | [
"'static",
"void",
"*",
"H5O_mtime_copy",
"(",
"const",
"void",
"*",
"_mesg",
",",
"void",
"*",
"_dest",
")",
"{",
"const",
"time_t",
"*",
"mesg",
"=",
"(",
"const",
"time_t",
"*",
")",
"_mesg",
";",
"time_t",
"*",
"dest",
"=",
"(",
"time_t",
"*",
... | H5O_mtime_copy | tbeu/matio | train | O3 |
501 | [
"Decode",
"a",
"modification",
"time",
"message",
"and",
"return",
"a",
"pointer",
"to",
"a",
"new",
"time_t",
"value"
] | [
"'static",
"void",
"*",
"H5O__mtime_decode",
"(",
"H5F_t",
"H5_ATTR_UNUSED",
"*",
"f",
",",
"H5O_t",
"H5_ATTR_UNUSED",
"*",
"open_oh",
",",
"unsigned",
"H5_ATTR_UNUSED",
"mesg_flags",
",",
"unsigned",
"H5_ATTR_UNUSED",
"*",
"ioflags",
",",
"size_t",
"H5_ATTR_UNUSED"... | H5O__mtime_decode | tbeu/matio | train | O3 |
523 | [
"RCC",
"Disable",
"Peripheral",
"Clocks"
] | [
"'void",
"rcc_peripheral_disable_clock",
"(",
"volatile",
"uint32_t",
"*",
"reg",
",",
"uint32_t",
"en",
")",
"{",
"*",
"reg",
"&=",
"~",
"en",
";",
"}'"
] | rcc_peripheral_disable_clock | jeanthom/DirtyJTAG | train | Os |
524 | [
"RCC",
"Enable",
"Peripheral",
"Clocks"
] | [
"'void",
"rcc_peripheral_enable_clock",
"(",
"volatile",
"uint32_t",
"*",
"reg",
",",
"uint32_t",
"en",
")",
"{",
"*",
"reg",
"|=",
"en",
";",
"}'"
] | rcc_peripheral_enable_clock | jeanthom/DirtyJTAG | train | Os |
525 | [
"RCC",
"Remove",
"Reset",
"on",
"Peripherals"
] | [
"'void",
"rcc_peripheral_clear_reset",
"(",
"volatile",
"uint32_t",
"*",
"reg",
",",
"uint32_t",
"clear_reset",
")",
"{",
"*",
"reg",
"&=",
"~",
"clear_reset",
";",
"}'"
] | rcc_peripheral_clear_reset | jeanthom/DirtyJTAG | train | Os |
527 | [
"VICE",
"code:",
"Store",
"number",
"as",
"little",
"endian"
] | [
"'static",
"void",
"le_store",
"(",
"uint8_t",
"*",
"buf",
",",
"uint32_t",
"val",
",",
"int",
"len",
")",
"{",
"int",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"++",
")",
"{",
"buf",
"[",
"i",
"]",
"=",
"(",
"uin... | le_store | xqemu/xqemu | train | Os |
528 | [
"free",
"memorymapped",
"stack",
"storage"
] | [
"'void",
"stack_free",
"(",
"void",
"*",
"p",
",",
"int",
"size",
")",
"{",
"size_t",
"sp",
"=",
"(",
"size_t",
")",
"p",
"-",
"size",
";",
"#",
"ifdef",
"DEBUG",
"memset",
"(",
"(",
"void",
"*",
")",
"sp",
",",
"0xcd",
",",
"size",
")",
";",
... | stack_free | DynamoRIO/dynamorio | train | O3 |
529 | [
"Write",
"a",
"structured",
"index",
"to",
"a",
"file"
] | [
"'int",
"write_index_file",
"(",
"opj_codestream_info_t",
"*",
"cstr_info",
",",
"char",
"*",
"index",
")",
"{",
"int",
"tileno",
",",
"<type",
"ref=\"prev\"/>",
"compno",
",",
"<type",
"ref=\"prev\"/>",
"layno",
",",
"<type",
"ref=\"prev\"/>",
"resno",
",",
"<t... | write_index_file | uclouvain/openjpeg | train | Os |
532 | [
"updates",
"the",
"prop",
"state",
"as",
"appropriate"
] | [
"'static",
"instr_t",
"*",
"update_prop_state",
"(",
"prop_state_t",
"*",
"state",
",",
"instr_t",
"*",
"inst",
",",
"bool",
"intrace",
")",
"{",
"int",
"opcode",
"=",
"instr_get_opcode",
"(",
"inst",
")",
";",
"int",
"num_dst",
"=",
"instr_num_dsts",
"(",
... | update_prop_state | DynamoRIO/drmemory | train | Os |
533 | [
"initializes",
"all",
"the",
"trace",
"constant",
"stuff",
"and",
"add"
] | [
"'static",
"void",
"get_trace_constant",
"(",
"prop_state_t",
"*",
"state",
")",
"{",
"/*",
"can",
"add",
"all",
"dynamo",
"addresses",
"here,",
"they",
"are",
"never",
"aliased",
"so",
"always",
"*/",
"/*",
"safe",
"to",
"optimize,",
"but",
"takes",
"up",
... | get_trace_constant | DynamoRIO/drmemory | train | Os |
534 | [
"removes",
"the",
"address",
"from",
"the",
"constant",
"address",
"cache"
] | [
"'static",
"void",
"clear_address_val",
"(",
"prop_state_t",
"*",
"state",
",",
"int",
"address",
")",
"{",
"#",
"ifdef",
"DEBUG",
"dcontext_t",
"*",
"dcontext",
"=",
"state",
"->",
"dcontext",
";",
"#",
"endif",
"int",
"i",
";",
"for",
"(",
"i",
"=",
... | clear_address_val | DynamoRIO/drmemory | train | Os |
535 | [
"attempts",
"to",
"simplify",
"the",
"opnd",
"with",
"propagated",
"information"
] | [
"'static",
"opnd_t",
"propagate_opnd",
"(",
"opnd_t",
"old",
",",
"prop_state_t",
"*",
"state",
",",
"bool",
"prefix_data",
")",
"{",
"reg_id_t",
"reg",
";",
"int",
"immed",
",",
"<type",
"ref=\"prev\"/>",
"disp",
",",
"<type",
"ref=\"prev\"/>",
"i",
";",
"o... | propagate_opnd | DynamoRIO/drmemory | train | Os |
536 | [
"replaces",
"inst",
"with",
"a",
"mov",
"imm",
"of",
"value",
"to",
"the",
"same",
"dst"
] | [
"'static",
"instr_t",
"*",
"make_to_imm_store",
"(",
"instr_t",
"*",
"inst",
",",
"int",
"value",
",",
"prop_state_t",
"*",
"state",
")",
"{",
"instr_t",
"*",
"replacement",
";",
"opnd_t",
"dst",
"=",
"instr_get_dst",
"(",
"inst",
",",
"0",
")",
";",
"dc... | make_to_imm_store | DynamoRIO/drmemory | train | Os |
537 | [
"removes",
"the",
"return",
"code,",
"pattern",
"matches",
"on",
"our",
"return",
"macro"
] | [
"'static",
"instr_t",
"*",
"remove_return",
"(",
"dcontext_t",
"*",
"dcontext",
",",
"instrlist_t",
"*",
"trace",
",",
"instr_t",
"*",
"inst",
")",
"{",
"if",
"(",
"!",
"INTERNAL_OPTION",
"(",
"unsafe_ignore_eflags_trace",
")",
")",
"{",
"instr_t",
"*",
"ins... | remove_return | DynamoRIO/drmemory | train | Os |
538 | [
"removes",
"the",
"return",
"code,",
"pattern",
"matches",
"on",
"our",
"return",
"macro"
] | [
"'static",
"instr_t",
"*",
"remove_return_no_save_eflags",
"(",
"dcontext_t",
"*",
"dcontext",
",",
"instrlist_t",
"*",
"trace",
",",
"instr_t",
"*",
"inst",
")",
"{",
"instr_t",
"*",
"inst2",
";",
"int",
"to_pop",
"=",
"4",
";",
"opnd_t",
"replacement",
";"... | remove_return_no_save_eflags | DynamoRIO/drmemory | train | Os |
539 | [
"adds",
"an",
"address",
"value",
"pair",
"to",
"the",
"constant",
"address",
"cache"
] | [
"'static",
"void",
"set_address_val",
"(",
"prop_state_t",
"*",
"state",
",",
"int",
"address",
",",
"int",
"val",
",",
"byte",
"flags",
")",
"{",
"#",
"ifdef",
"DEBUG",
"dcontext_t",
"*",
"dcontext",
"=",
"state",
"->",
"dcontext",
";",
"#",
"endif",
"b... | set_address_val | DynamoRIO/drmemory | train | Os |
540 | [
"Remove",
"any",
"fallthru",
"edge",
"from",
"EV"
] | [
"'static",
"bool",
"remove_fallthru_edge",
"(",
"vec",
"<argument_list",
"type=\"generic\">",
"<",
"edge",
",",
"va_gc",
">",
"*",
"ev",
")",
"{",
"edge_iterator",
"ei",
";",
"edge",
"e",
";",
"FOR_EACH_EDGE",
"(",
"e",
",",
"ei",
",",
"ev",
")",
"if",
"... | remove_fallthru_edge | SuperHouse/esp-open-rtos | train | Oa |
541 | [
"Cleanup",
"cfg",
"and",
"repair",
"loop",
"structures"
] | [
"'bool",
"cleanup_tree_cfg",
"(",
"void",
")",
"{",
"bool",
"changed",
"=",
"cleanup_tree_cfg_noloop",
"()",
";",
"if",
"(",
"current_loops",
"!=",
"NULL",
"&&",
"loops_state_satisfies_p",
"(",
"LOOPS_NEED_FIXUP",
")",
")",
"repair_loop_structures",
"()",
";",
"re... | cleanup_tree_cfg | SuperHouse/esp-open-rtos | train | Oa |
563 | [
"Find",
"UNDI",
"ROM",
"for",
"PCI",
"device"
] | [
"'struct",
"undi_rom",
"*",
"undirom_find_pci",
"(",
"unsigned",
"int",
"vendor_id",
",",
"unsigned",
"int",
"device_id",
",",
"unsigned",
"int",
"rombase",
")",
"{",
"struct",
"undi_rom",
"*",
"undirom",
";",
"undirom_probe_all_roms",
"()",
";",
"list_for_each_en... | undirom_find_pci | ipxe/ipxe | train | Os |
565 | [
"Return",
"`nbytes`,",
"`cbytes`",
"and",
"`blocksize`",
"from",
"a",
"compressed",
"buffer"
] | [
"'void",
"blosc_cbuffer_sizes",
"(",
"const",
"void",
"*",
"cbuffer",
",",
"size_t",
"*",
"nbytes",
",",
"size_t",
"*",
"cbytes",
",",
"size_t",
"*",
"blocksize",
")",
"{",
"uint8_t",
"*",
"_src",
"=",
"(",
"uint8_t",
"*",
")",
"(",
"cbuffer",
")",
";"... | blosc_cbuffer_sizes | Blosc/bcolz | train | O3 |
566 | [
"The",
"public",
"routine",
"for",
"compression"
] | [
"'int",
"blosc_compress",
"(",
"int",
"clevel",
",",
"int",
"doshuffle",
",",
"size_t",
"typesize",
",",
"size_t",
"nbytes",
",",
"const",
"void",
"*",
"src",
",",
"void",
"*",
"dest",
",",
"size_t",
"destsize",
")",
"{",
"int",
"error",
";",
"int",
"r... | blosc_compress | Blosc/bcolz | train | O3 |
567 | [
"Decompress",
"&",
"unshuffle",
"several",
"blocks",
"in",
"a",
"single",
"thread"
] | [
"'static",
"void",
"*",
"t_blosc",
"(",
"void",
"*",
"ctxt",
")",
"{",
"struct",
"thread_context",
"*",
"context",
"=",
"(",
"struct",
"thread_context",
"*",
")",
"ctxt",
";",
"int32_t",
"cbytes",
",",
"<type",
"ref=\"prev\"/>",
"ntdest",
";",
"int32_t",
"... | t_blosc | Blosc/bcolz | train | O3 |
568 | [
"The",
"public",
"routine",
"for",
"compression",
"with",
"context"
] | [
"'int",
"blosc_compress_ctx",
"(",
"int",
"clevel",
",",
"int",
"doshuffle",
",",
"size_t",
"typesize",
",",
"size_t",
"nbytes",
",",
"const",
"void",
"*",
"src",
",",
"void",
"*",
"dest",
",",
"size_t",
"destsize",
",",
"const",
"char",
"*",
"compressor",... | blosc_compress_ctx | Blosc/bcolz | train | O3 |
569 | [
"Return",
"the",
"compressor",
"library",
"format",
"used",
"in",
"a",
"compressed",
"buffer"
] | [
"'const",
"char",
"*",
"blosc_cbuffer_complib",
"(",
"const",
"void",
"*",
"cbuffer",
")",
"{",
"uint8_t",
"*",
"_src",
"=",
"(",
"uint8_t",
"*",
")",
"(",
"cbuffer",
")",
";",
"/*",
"current",
"pos",
"for",
"source",
"buffer",
"*/",
"int",
"clibcode",
... | blosc_cbuffer_complib | Blosc/bcolz | train | O3 |
570 | [
"Get",
"the",
"compressor",
"code",
"for",
"the",
"compressor",
"name"
] | [
"'int",
"blosc_compname_to_compcode",
"(",
"const",
"char",
"*",
"compname",
")",
"{",
"int",
"code",
"=",
"-",
"1",
";",
"/*",
"-1",
"means",
"non-existent",
"compressor",
"code",
"*/",
"if",
"(",
"strcmp",
"(",
"compname",
",",
"BLOSC_BLOSCLZ_COMPNAME",
")... | blosc_compname_to_compcode | Blosc/bcolz | train | O3 |
571 | [
"Force",
"the",
"use",
"of",
"a",
"specific",
"split",
"mode"
] | [
"'void",
"blosc_set_splitmode",
"(",
"int",
"mode",
")",
"{",
"g_splitmode",
"=",
"mode",
";",
"}'"
] | blosc_set_splitmode | Blosc/bcolz | train | O3 |
572 | [
"Shuffle",
"&",
"compress",
"a",
"single",
"block"
] | [
"'static",
"int",
"blosc_c",
"(",
"const",
"struct",
"blosc_context",
"*",
"context",
",",
"int32_t",
"blocksize",
",",
"int32_t",
"leftoverblock",
",",
"int32_t",
"ntbytes",
",",
"int32_t",
"maxbytes",
",",
"const",
"uint8_t",
"*",
"src",
",",
"uint8_t",
"*",... | blosc_c | Blosc/bcolz | train | O3 |
573 | [
"The",
"public",
"routine",
"for",
"decompression"
] | [
"'int",
"blosc_decompress",
"(",
"const",
"void",
"*",
"src",
",",
"void",
"*",
"dest",
",",
"size_t",
"destsize",
")",
"{",
"int",
"result",
";",
"char",
"*",
"envvar",
";",
"long",
"nthreads",
";",
"/*",
"Check",
"if",
"should",
"initialize",
"*/",
"... | blosc_decompress | Blosc/bcolz | train | O3 |
574 | [
"The",
"public",
"routine",
"for",
"decompression",
"with",
"context"
] | [
"'int",
"blosc_decompress_ctx",
"(",
"const",
"void",
"*",
"src",
",",
"void",
"*",
"dest",
",",
"size_t",
"destsize",
",",
"int",
"numinternalthreads",
")",
"{",
"int",
"result",
";",
"struct",
"blosc_context",
"context",
";",
"context",
".",
"threads_started... | blosc_decompress_ctx | Blosc/bcolz | train | O3 |
575 | [
"Conditions",
"for",
"splitting",
"a",
"block",
"before",
"compressing",
"with",
"a",
"codec"
] | [
"'static",
"int",
"split_block",
"(",
"int",
"compcode",
",",
"int",
"typesize",
",",
"int",
"blocksize",
")",
"{",
"int",
"splitblock",
"=",
"-",
"1",
";",
"switch",
"(",
"g_splitmode",
")",
"{",
"case",
"BLOSC_ALWAYS_SPLIT",
":",
"splitblock",
"=",
"1",
... | split_block | Blosc/bcolz | train | O3 |
576 | [
"Function",
"for",
"polling",
"BLE",
"events"
] | [
"'static",
"void",
"nrf_sdh_ble_evts_poll",
"(",
"void",
"*",
"p_context",
")",
"{",
"UNUSED_VARIABLE",
"(",
"p_context",
")",
";",
"ret_code_t",
"ret_code",
";",
"if",
"(",
"!",
"m_stack_is_enabled",
")",
"{",
"return",
";",
"}",
"while",
"(",
"true",
")",
... | nrf_sdh_ble_evts_poll | Lotlab/nrf52-keyboard | train | Os |
579 | [
"Free",
"the",
"name",
"string"
] | [
"'static",
"void",
"done",
"(",
"void",
")",
"{",
"free",
"(",
"name",
")",
";",
"name",
"=",
"NULL",
";",
"}'"
] | done | Tarsnap/kivaloo | train | O2 |
580 | [
"This",
"file",
"is",
"the",
"interface",
"between",
"EFSL",
"ans",
"Host",
"massstorage",
"class"
] | [
"'void",
"DCD_Init",
"(",
"USB_OTG_CORE_HANDLE",
"*",
"pdev",
",",
"USB_OTG_CORE_ID_TypeDef",
"coreID",
")",
"{",
"uint32_t",
"i",
";",
"USB_OTG_EP",
"*",
"ep",
";",
"USB_OTG_SelectCore",
"(",
"pdev",
",",
"coreID",
")",
";",
"pdev",
"->",
"dev",
".",
"devic... | DCD_Init | librepilot/LibrePilot | train | Os |
581 | [
"Connect",
"device",
"(enable",
"internal",
"pullup)"
] | [
"'void",
"DCD_DevConnect",
"(",
"USB_OTG_CORE_HANDLE",
"*",
"pdev",
")",
"{",
"#",
"ifndef",
"USE_OTG_MODE",
"USB_OTG_DCTL_TypeDef",
"dctl",
";",
"dctl",
".",
"d32",
"=",
"USB_OTG_READ_REG32",
"(",
"&",
"pdev",
"->",
"regs",
".",
"DREGS",
"->",
"DCTL",
")",
... | DCD_DevConnect | librepilot/LibrePilot | train | Os |
582 | [
"Clear",
"stall",
"condition",
"on",
"endpoints"
] | [
"'uint32_t",
"DCD_EP_ClrStall",
"(",
"USB_OTG_CORE_HANDLE",
"*",
"pdev",
",",
"uint8_t",
"epnum",
")",
"{",
"USB_OTG_EP",
"*",
"ep",
";",
"if",
"(",
"(",
"0x80",
"&",
"epnum",
")",
"==",
"0x80",
")",
"{",
"ep",
"=",
"&",
"pdev",
"->",
"dev",
".",
"in... | DCD_EP_ClrStall | librepilot/LibrePilot | train | Os |
583 | [
"Disconnect",
"device",
"(disable",
"internal",
"pullup)"
] | [
"'void",
"DCD_DevDisconnect",
"(",
"USB_OTG_CORE_HANDLE",
"*",
"pdev",
")",
"{",
"#",
"ifndef",
"USE_OTG_MODE",
"USB_OTG_DCTL_TypeDef",
"dctl",
";",
"dctl",
".",
"d32",
"=",
"USB_OTG_READ_REG32",
"(",
"&",
"pdev",
"->",
"regs",
".",
"DREGS",
"->",
"DCTL",
")",... | DCD_DevDisconnect | librepilot/LibrePilot | train | Os |
584 | [
"returns",
"the",
"EP",
"Status"
] | [
"'uint32_t",
"DCD_GetEPStatus",
"(",
"USB_OTG_CORE_HANDLE",
"*",
"pdev",
",",
"uint8_t",
"epnum",
")",
"{",
"USB_OTG_EP",
"*",
"ep",
";",
"uint32_t",
"Status",
"=",
"0",
";",
"if",
"(",
"(",
"0x80",
"&",
"epnum",
")",
"==",
"0x80",
")",
"{",
"ep",
"=",... | DCD_GetEPStatus | librepilot/LibrePilot | train | Os |
585 | [
"Setup",
"the",
"endpoints",
"to",
"be",
"bulk",
"&",
"register",
"the",
"callbacks"
] | [
"'static",
"void",
"msc_set_config",
"(",
"usbd_device",
"*",
"usbd_dev",
",",
"uint16_t",
"wValue",
")",
"{",
"usbd_mass_storage",
"*",
"ms",
"=",
"&",
"_mass_storage",
";",
"(",
"void",
")",
"wValue",
";",
"usbd_ep_setup",
"(",
"usbd_dev",
",",
"ms",
"->",... | msc_set_config | libopencm3/libopencm3 | train | Os |
586 | [
"Parsing",
"a",
"frame",
"data",
"and",
"copy",
"the",
"payload",
"to",
"the",
"datalink",
"buffer"
] | [
"'void",
"pprz_check_and_parse",
"(",
"struct",
"link_device",
"*",
"dev",
",",
"struct",
"pprz_transport",
"*",
"trans",
",",
"uint8_t",
"*",
"buf",
",",
"bool",
"*",
"msg_available",
")",
"{",
"uint8_t",
"i",
";",
"if",
"(",
"dev",
"->",
"char_available",
... | pprz_check_and_parse | paparazzi/paparazzi | train | O7 |
587 | [
"Advances",
"to",
"state",
"0",
"if",
"counter",
"has",
"exceeded",
"threshold,",
"returns",
"otherwise"
] | [
"'static",
"inline",
"void",
"skip_unknown_instr_inc",
"(",
"int",
"reset_state",
",",
"drx_state_machine_params_t",
"*",
"params",
")",
"{",
"if",
"(",
"params",
"->",
"skip_unknown_instr_count",
"++",
">=",
"DRX_RESTORE_EVENT_SKIP_UNKNOWN_INSTR_MAX",
")",
"{",
"advanc... | skip_unknown_instr_inc | DynamoRIO/dynamorio | train | O3 |
588 | [
"Returns",
"whether",
"to",
"execute",
"the",
"system",
"call"
] | [
"'static",
"bool",
"soft_kills_pre_syscall",
"(",
"void",
"*",
"drcontext",
",",
"int",
"sysnum",
")",
"{",
"if",
"(",
"sysnum",
"==",
"SYS_kill",
")",
"{",
"process_id_t",
"pid",
"=",
"(",
"process_id_t",
")",
"dr_syscall_get_param",
"(",
"drcontext",
",",
... | soft_kills_pre_syscall | DynamoRIO/dynamorio | train | O3 |
589 | [
"ADC",
"Enable",
"Analog",
"Watchdog",
"for",
"All",
"Regular",
"and",
"or",
"Injected",
"Channels"
] | [
"'void",
"adc_enable_analog_watchdog_on_all_channels",
"(",
"uint32_t",
"adc",
")",
"{",
"ADC_CR1",
"(",
"adc",
")",
"&=",
"~",
"ADC_CR1_AWDSGL",
";",
"}'"
] | adc_enable_analog_watchdog_on_all_channels | PX4/Bootloader | train | O3 |
590 | [
"ADC",
"Disable",
"Automatic",
"Injected",
"Conversions"
] | [
"'void",
"adc_disable_automatic_injected_group_conversion",
"(",
"uint32_t",
"adc",
")",
"{",
"ADC_CR1",
"(",
"adc",
")",
"&=",
"~",
"ADC_CR1_JAUTO",
";",
"}'"
] | adc_disable_automatic_injected_group_conversion | PX4/Bootloader | train | O3 |
591 | [
"ADC",
"Set",
"the",
"Data",
"as",
"Right",
"Aligned"
] | [
"'void",
"adc_set_right_aligned",
"(",
"uint32_t",
"adc",
")",
"{",
"ADC_CR2",
"(",
"adc",
")",
"&=",
"~",
"ADC_CR2_ALIGN",
";",
"}'"
] | adc_set_right_aligned | PX4/Bootloader | train | O3 |
592 | [
"ADC",
"Disable",
"Analog",
"Watchdog",
"for",
"Injected",
"Conversions"
] | [
"'void",
"adc_disable_analog_watchdog_injected",
"(",
"uint32_t",
"adc",
")",
"{",
"ADC_CR1",
"(",
"adc",
")",
"&=",
"~",
"ADC_CR1_JAWDEN",
";",
"}'"
] | adc_disable_analog_watchdog_injected | PX4/Bootloader | train | O3 |
593 | [
"ADC",
"Read",
"the",
"EndofConversion",
"Flag"
] | [
"'bool",
"adc_eoc",
"(",
"uint32_t",
"adc",
")",
"{",
"return",
"(",
"ADC_SR",
"(",
"adc",
")",
"&",
"ADC_SR_EOC",
")",
"!=",
"0",
";",
"}'"
] | adc_eoc | PX4/Bootloader | train | O3 |
594 | [
"ADC",
"Enable",
"Continuous",
"Conversion",
"Mode"
] | [
"'void",
"adc_set_continuous_conversion_mode",
"(",
"uint32_t",
"adc",
")",
"{",
"ADC_CR2",
"(",
"adc",
")",
"|=",
"ADC_CR2_CONT",
";",
"}'"
] | adc_set_continuous_conversion_mode | PX4/Bootloader | train | O3 |
595 | [
"ADC",
"Enable",
"Single",
"Conversion",
"Mode"
] | [
"'void",
"adc_set_single_conversion_mode",
"(",
"uint32_t",
"adc",
")",
"{",
"ADC_CR2",
"(",
"adc",
")",
"&=",
"~",
"ADC_CR2_CONT",
";",
"}'"
] | adc_set_single_conversion_mode | PX4/Bootloader | train | O3 |
596 | [
"ADC",
"Enable",
"Analog",
"Watchdog",
"for",
"Injected",
"Conversions"
] | [
"'void",
"adc_enable_analog_watchdog_injected",
"(",
"uint32_t",
"adc",
")",
"{",
"ADC_CR1",
"(",
"adc",
")",
"|=",
"ADC_CR1_JAWDEN",
";",
"}'"
] | adc_enable_analog_watchdog_injected | PX4/Bootloader | train | O3 |
597 | [
"ADC",
"Disable",
"DMA",
"Transfers"
] | [
"'void",
"adc_disable_dma",
"(",
"uint32_t",
"adc",
")",
"{",
"ADC_CR2",
"(",
"adc",
")",
"&=",
"~",
"ADC_CR2_DMA",
";",
"}'"
] | adc_disable_dma | PX4/Bootloader | train | O3 |
598 | [
"ADC",
"Disable",
"Discontinuous",
"Mode",
"for",
"Regular",
"Conversions"
] | [
"'void",
"adc_disable_discontinuous_mode_regular",
"(",
"uint32_t",
"adc",
")",
"{",
"ADC_CR1",
"(",
"adc",
")",
"&=",
"~",
"ADC_CR1_DISCEN",
";",
"}'"
] | adc_disable_discontinuous_mode_regular | PX4/Bootloader | train | O3 |
599 | [
"ADC",
"Disable",
"Scan",
"Mode"
] | [
"'void",
"adc_disable_scan_mode",
"(",
"uint32_t",
"adc",
")",
"{",
"ADC_CR1",
"(",
"adc",
")",
"&=",
"~",
"ADC_CR1_SCAN",
";",
"}'"
] | adc_disable_scan_mode | PX4/Bootloader | train | O3 |
600 | [
"public",
"functions",
"Create",
"new",
"instance",
"of",
"WInput",
"object"
] | [
"'WInput",
"*",
"input_new",
"(",
"int",
"y",
",",
"int",
"x",
",",
"const",
"int",
"*",
"colors",
",",
"int",
"width",
",",
"const",
"char",
"*",
"def_text",
",",
"const",
"char",
"*",
"histname",
",",
"input_complete_t",
"completion_flags",
")",
"{",
... | input_new | MidnightCommander/mc | train | O1 |
601 | [
"Cleans",
"the",
"input",
"line",
"and",
"adds",
"the",
"current",
"text",
"to",
"the",
"history"
] | [
"\"void",
"input_clean",
"(",
"WInput",
"*",
"in",
")",
"{",
"push_history",
"(",
"in",
",",
"in",
"->",
"buffer",
")",
";",
"in",
"->",
"need_push",
"=",
"TRUE",
";",
"in",
"->",
"buffer",
"[",
"0",
"]",
"=",
"'\\\\0'",
";",
"in",
"->",
"point",
... | input_clean | MidnightCommander/mc | train | O1 |
602 | [
"verify",
"check_log",
"helper",
"can",
"detect",
"errors"
] | [
"'void",
"test_check_length_ok",
"(",
"void",
"*",
"*",
"state",
")",
"{",
"assert_int_equal",
"(",
"check_log",
"(",
"logfile",
")",
",",
"0",
")",
";",
"}'"
] | test_check_length_ok | Tlf/tlf | train | O2 |
603 | [
"verify",
"that",
"all",
"log",
"lines",
"have",
"correct",
"length"
] | [
"'int",
"check_log",
"(",
"char",
"*",
"file",
")",
"{",
"FILE",
"*",
"fp",
";",
"char",
"buffer",
"[",
"LOGLINELEN",
"+",
"5",
"]",
";",
"int",
"result",
"=",
"0",
";",
"fp",
"=",
"fopen",
"(",
"file",
",",
"\"r\"",
")",
";",
"while",
"(",
"fg... | check_log | Tlf/tlf | train | O2 |
604 | [
"A",
"variant",
"of",
"run_listbox()",
"which",
"is",
"more",
"convenient",
"to",
"use",
"when",
"we",
"need",
"to",
"select",
"arbitrary",
"'data'"
] | [
"'void",
"*",
"run_listbox_with_data",
"(",
"Listbox",
"*",
"l",
",",
"const",
"void",
"*",
"select",
")",
"{",
"void",
"*",
"val",
"=",
"NULL",
";",
"if",
"(",
"select",
"!=",
"NULL",
")",
"listbox_select_entry",
"(",
"l",
"->",
"list",
",",
"listbox_... | run_listbox_with_data | MidnightCommander/mc | train | O1 |
605 | [
"Set",
"a",
"Group",
"of",
"Pins"
] | [
"'void",
"gpio_set",
"(",
"uint16_t",
"gpios",
")",
"{",
"GPIO_ADATA",
"|=",
"gpios",
";",
"}'"
] | gpio_set | blacksphere/blackmagic | train | Og |
606 | [
"Set",
"the",
"direction",
"of",
"a",
"Group",
"of",
"Pins",
"to",
"Output"
] | [
"'void",
"gpio_output",
"(",
"uint16_t",
"gpios",
")",
"{",
"GPIO_ADIR",
"|=",
"gpios",
";",
"}'"
] | gpio_output | blacksphere/blackmagic | train | Og |
607 | [
"Read",
"a",
"Group",
"of",
"Pins"
] | [
"'uint16_t",
"gpio_get",
"(",
"uint16_t",
"gpios",
")",
"{",
"return",
"GPIO_AEXT",
"&",
"gpios",
";",
"}'"
] | gpio_get | blacksphere/blackmagic | train | Og |
608 | [
"Clear",
"the",
"specified",
"pin",
"interrupts"
] | [
"'void",
"gpio_int_clear",
"(",
"uint16_t",
"gpios",
")",
"{",
"GPIO_INTEOI_A",
"|=",
"gpios",
";",
"}'"
] | gpio_int_clear | blacksphere/blackmagic | train | Og |
609 | [
"Gets",
"the",
"raw",
"unmasked",
"interrupt",
"status"
] | [
"'uint16_t",
"gpio_int_raw_status",
"(",
"void",
")",
"{",
"return",
"GPIO_RAWINTSTAT_A",
";",
"}'"
] | gpio_int_raw_status | blacksphere/blackmagic | train | Og |
610 | [
"Toggle",
"a",
"Group",
"of",
"Pins"
] | [
"'void",
"gpio_toggle",
"(",
"uint16_t",
"gpios",
")",
"{",
"uint32_t",
"curr_status",
"=",
"GPIO_ADATA",
"&",
"gpios",
";",
"GPIO_ADATA",
"=",
"(",
"GPIO_ADATA",
"&",
"(",
"~",
"gpios",
")",
")",
"|",
"(",
"~",
"curr_status",
")",
";",
"}'"
] | gpio_toggle | blacksphere/blackmagic | train | Og |
611 | [
"Gets",
"the",
"masked",
"interrupt",
"status"
] | [
"'uint16_t",
"gpio_int_status",
"(",
"void",
")",
"{",
"return",
"GPIO_INTSTAT_A",
";",
"}'"
] | gpio_int_status | blacksphere/blackmagic | train | Og |
612 | [
"Set",
"the",
"direction",
"of",
"a",
"Group",
"of",
"Pins",
"to",
"Input"
] | [
"'void",
"gpio_input",
"(",
"uint16_t",
"gpios",
")",
"{",
"GPIO_ADIR",
"&=",
"~",
"gpios",
";",
"}'"
] | gpio_input | blacksphere/blackmagic | train | Og |
613 | [
"Clear",
"a",
"Group",
"of",
"Pins"
] | [
"'void",
"gpio_clear",
"(",
"uint16_t",
"gpios",
")",
"{",
"GPIO_ADATA",
"&=",
"~",
"gpios",
";",
"}'"
] | gpio_clear | blacksphere/blackmagic | train | Og |
614 | [
"assumes",
"that",
"r",
"and",
"c",
"are",
"good"
] | [
"'static",
"inline",
"int",
"cgc_isOnBoard",
"(",
"char",
"r",
",",
"char",
"c",
",",
"char",
"d",
",",
"int",
"num",
")",
"{",
"if",
"(",
"d",
"==",
"DIR_R",
")",
"{",
"if",
"(",
"(",
"c",
"-",
"COL_BASE",
"+",
"num",
")",
"<=",
"BOARD_SIZE",
... | cgc_isOnBoard | trailofbits/cb-multios | train | Of |
615 | [
"IS",
"variants",
"of",
"TLB",
"operations",
"must",
"affect",
"all",
"cores"
] | [
"'static",
"void",
"tlbiall_is_write",
"(",
"CPUARMState",
"*",
"env",
",",
"const",
"ARMCPRegInfo",
"*",
"ri",
",",
"uint64_t",
"value",
")",
"{",
"CPUState",
"*",
"other_cs",
";",
"CPU_FOREACH",
"(",
"other_cs",
")",
"{",
"tlb_flush",
"(",
"other_cs",
",",... | tlbiall_is_write | geohot/qira | train | O2 |
616 | [
"Common",
"wrapper",
"to",
"call",
"recip_estimate"
] | [
"'static",
"float64",
"call_recip_estimate",
"(",
"float64",
"num",
",",
"int",
"off",
",",
"float_status",
"*",
"fpst",
")",
"{",
"uint64_t",
"val64",
"=",
"float64_val",
"(",
"num",
")",
";",
"uint64_t",
"frac",
"=",
"extract64",
"(",
"val64",
",",
"0",
... | call_recip_estimate | geohot/qira | train | O2 |
617 | [
"Convert",
"ARM",
"rounding",
"mode",
"to",
"softfloat"
] | [
"'int",
"arm_rmode_to_sf",
"(",
"int",
"rmode",
")",
"{",
"switch",
"(",
"rmode",
")",
"{",
"case",
"FPROUNDING_TIEAWAY",
":",
"rmode",
"=",
"float_round_ties_away",
";",
"break;",
"case",
"FPROUNDING_ODD",
":",
"/*",
"FIXME:",
"add",
"support",
"for",
"TIEAWA... | arm_rmode_to_sf | geohot/qira | train | O2 |
618 | [
"Sort",
"alphabetically",
"by",
"type",
"name,",
"except",
"for",
"\"any\""
] | [
"'static",
"gint",
"arm_cpu_list_compare",
"(",
"gconstpointer",
"a",
",",
"gconstpointer",
"b",
")",
"{",
"ObjectClass",
"*",
"class_a",
"=",
"(",
"ObjectClass",
"*",
")",
"a",
";",
"ObjectClass",
"*",
"class_b",
"=",
"(",
"ObjectClass",
"*",
")",
"b",
";... | arm_cpu_list_compare | geohot/qira | train | O2 |
619 | [
"Set",
"the",
"SysTick",
"Clock",
"Source"
] | [
"'void",
"systick_set_clocksource",
"(",
"uint8_t",
"clocksource",
")",
"{",
"STK_CSR",
"=",
"(",
"STK_CSR",
"&",
"(",
"~",
"STK_CSR_CLKSOURCE",
")",
")",
"|",
"(",
"clocksource",
"<<",
"STK_CSR_CLKSOURCE_LSB",
")",
";",
"}'"
] | systick_set_clocksource | greatscottgadgets/greatfet | train | Os |
620 | [
"SysTick",
"Set",
"the",
"Automatic",
"Reload",
"Value"
] | [
"'void",
"systick_set_reload",
"(",
"uint32_t",
"value",
")",
"{",
"STK_RVR",
"=",
"(",
"value",
"&",
"STK_RVR_RELOAD",
")",
";",
"}'"
] | systick_set_reload | greatscottgadgets/greatfet | train | Os |
621 | [
"SysTick",
"Get",
"Calibration",
"Value"
] | [
"'uint32_t",
"systick_get_calib",
"(",
"void",
")",
"{",
"return",
"STK_CALIB",
"&",
"STK_CALIB_TENMS",
";",
"}'"
] | systick_get_calib | greatscottgadgets/greatfet | train | Os |
622 | [
"SysTick",
"Read",
"the",
"Automatic",
"Reload",
"Value"
] | [
"'uint32_t",
"systick_get_reload",
"(",
"void",
")",
"{",
"return",
"STK_RVR",
"&",
"STK_RVR_RELOAD",
";",
"}'"
] | systick_get_reload | greatscottgadgets/greatfet | train | Os |
623 | [
"Get",
"the",
"current",
"SysTick",
"counter",
"value"
] | [
"'uint32_t",
"systick_get_value",
"(",
"void",
")",
"{",
"return",
"STK_CVR",
"&",
"STK_CVR_CURRENT",
";",
"}'"
] | systick_get_value | greatscottgadgets/greatfet | train | Os |
624 | [
"USART",
"Wait",
"for",
"Transmit",
"Data",
"Buffer",
"Empty"
] | [
"'void",
"usart_wait_send_ready",
"(",
"uint32_t",
"usart",
")",
"{",
"/*",
"Wait",
"until",
"the",
"data",
"has",
"been",
"transferred",
"into",
"the",
"shift",
"register.",
"*/",
"while",
"(",
"(",
"USART_SR",
"(",
"usart",
")",
"&",
"USART_SR_TXE",
")",
... | usart_wait_send_ready | im-tomu/tomu-samples | train | Os |
625 | [
"Handle",
"DNS",
"retransmission",
"timer",
"expiry"
] | [
"'static",
"void",
"dns_timer_expired",
"(",
"struct",
"retry_timer",
"*",
"timer",
",",
"int",
"fail",
")",
"{",
"struct",
"dns_request",
"*",
"dns",
"=",
"container_of",
"(",
"timer",
",",
"struct",
"dns_request",
",",
"timer",
")",
";",
"if",
"(",
"fail... | dns_timer_expired | ipxe/ipxe | train | Os |
626 | [
"Decode",
"RFC1035encoded",
"DNS",
"name"
] | [
"\"int",
"dns_decode",
"(",
"struct",
"dns_name",
"*",
"name",
",",
"char",
"*",
"data",
",",
"size_t",
"len",
")",
"{",
"unsigned",
"int",
"recursion_limit",
"=",
"name",
"->",
"len",
";",
"/*",
"Generous",
"upper",
"bound",
"*/",
"int",
"offset",
"=",
... | dns_decode | ipxe/ipxe | train | Os |
627 | [
"Skip",
"RFC1035encoded",
"DNS",
"name",
"in",
"search",
"list"
] | [
"'static",
"int",
"dns_skip_search",
"(",
"struct",
"dns_name",
"*",
"name",
")",
"{",
"int",
"offset",
";",
"/*",
"Find",
"next",
"name",
"*/",
"offset",
"=",
"dns_skip",
"(",
"name",
")",
";",
"if",
"(",
"offset",
"<",
"0",
")",
"return",
"offset",
... | dns_skip_search | ipxe/ipxe | train | Os |
628 | [
"Settings",
"Format",
"DNS",
"search",
"list",
"setting"
] | [
"\"static",
"int",
"format_dnssl_setting",
"(",
"const",
"struct",
"setting_type",
"*",
"type",
"__unused",
",",
"const",
"void",
"*",
"raw",
",",
"size_t",
"raw_len",
",",
"char",
"*",
"buf",
",",
"size_t",
"len",
")",
"{",
"struct",
"dns_name",
"name",
"... | format_dnssl_setting | ipxe/ipxe | train | Os |
629 | [
"Skip",
"RFC1035encoded",
"DNS",
"name"
] | [
"'int",
"dns_skip",
"(",
"struct",
"dns_name",
"*",
"name",
")",
"{",
"unsigned",
"int",
"recursion_limit",
"=",
"name",
"->",
"len",
";",
"/*",
"Generous",
"upper",
"bound",
"*/",
"int",
"offset",
"=",
"name",
"->",
"offset",
";",
"int",
"prev_offset",
... | dns_skip | ipxe/ipxe | train | Os |
630 | [
"Compare",
"DNS",
"names",
"for",
"equality"
] | [
"'int",
"dns_compare",
"(",
"struct",
"dns_name",
"*",
"first",
",",
"struct",
"dns_name",
"*",
"second",
")",
"{",
"unsigned",
"int",
"recursion_limit",
"=",
"first",
"->",
"len",
";",
"/*",
"Generous",
"upper",
"bound",
"*/",
"int",
"first_offset",
"=",
... | dns_compare | ipxe/ipxe | train | Os |
631 | [
"Encode",
"a",
"DNS",
"name",
"using",
"RFC1035",
"encoding"
] | [
"\"int",
"dns_encode",
"(",
"const",
"char",
"*",
"string",
",",
"struct",
"dns_name",
"*",
"name",
")",
"{",
"uint8_t",
"*",
"start",
"=",
"(",
"name",
"->",
"data",
"+",
"name",
"->",
"offset",
")",
";",
"uint8_t",
"*",
"end",
"=",
"(",
"name",
"... | dns_encode | ipxe/ipxe | train | Os |
632 | [
"Copy",
"a",
"DNS",
"name"
] | [
"'int",
"dns_copy",
"(",
"struct",
"dns_name",
"*",
"src",
",",
"struct",
"dns_name",
"*",
"dst",
")",
"{",
"unsigned",
"int",
"recursion_limit",
"=",
"src",
"->",
"len",
";",
"/*",
"Generous",
"upper",
"bound",
"*/",
"int",
"src_offset",
"=",
"src",
"->... | dns_copy | ipxe/ipxe | train | Os |
633 | [
"Resolve",
"name",
"using",
"DNS"
] | [
"'static",
"int",
"dns_resolv",
"(",
"struct",
"interface",
"*",
"resolv",
",",
"const",
"char",
"*",
"name",
",",
"struct",
"sockaddr",
"*",
"sa",
")",
"{",
"struct",
"dns_request",
"*",
"dns",
";",
"struct",
"dns_header",
"*",
"query",
";",
"size_t",
"... | dns_resolv | ipxe/ipxe | train | Os |
634 | [
"Find",
"start",
"of",
"valid",
"label",
"within",
"an",
"RFC1035encoded",
"DNS",
"name"
] | [
"'static",
"int",
"dns_label",
"(",
"struct",
"dns_name",
"*",
"name",
",",
"size_t",
"offset",
")",
"{",
"const",
"uint8_t",
"*",
"byte",
";",
"const",
"uint16_t",
"*",
"word",
";",
"size_t",
"len",
";",
"size_t",
"ptr",
";",
"while",
"(",
"1",
")",
... | dns_label | ipxe/ipxe | train | Os |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.