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 |
|---|---|---|---|---|---|---|
635 | [
"rootsStepClosureCheck",
"check",
"a",
"rootsStepClosure"
] | [
"'ATTRIBUTE_UNUSED",
"static",
"Bool",
"rootsStepClosureCheck",
"(",
"rootsStepClosure",
"rsc",
")",
"{",
"CHECKS",
"(",
"rootsStepClosure",
",",
"rsc",
")",
";",
"CHECKD",
"(",
"ScanState",
",",
"&",
"rsc",
"->",
"ssStruct",
")",
";",
"CHECKL",
"(",
"FUNCHECK... | rootsStepClosureCheck | Ravenbrook/mps | train | O2 |
636 | [
"rootWalk",
"the",
"step",
"function",
"for",
"ArenaRootsWalk"
] | [
"'static",
"Res",
"rootWalk",
"(",
"Root",
"root",
",",
"void",
"*",
"p",
")",
"{",
"ScanState",
"ss",
"=",
"(",
"ScanState",
")",
"p",
";",
"AVERT",
"(",
"ScanState",
",",
"ss",
")",
";",
"if",
"(",
"RootRank",
"(",
"root",
")",
"==",
"ss",
"->"... | rootWalk | Ravenbrook/mps | train | O2 |
637 | [
"ArenaRootsWalk",
"walks",
"all",
"the",
"root",
"in",
"the",
"arena"
] | [
"\"static",
"Res",
"ArenaRootsWalk",
"(",
"Globals",
"arenaGlobals",
",",
"mps_roots_stepper_t",
"f",
",",
"void",
"*",
"p",
",",
"size_t",
"s",
")",
"{",
"Arena",
"arena",
";",
"rootsStepClosureStruct",
"rscStruct",
";",
"rootsStepClosure",
"rsc",
"=",
"&",
"... | ArenaRootsWalk | Ravenbrook/mps | train | O2 |
638 | [
"mps_arena_roots_walk",
"Client",
"interface",
"for",
"walking"
] | [
"\"void",
"mps_arena_roots_walk",
"(",
"mps_arena_t",
"mps_arena",
",",
"mps_roots_stepper_t",
"f",
",",
"void",
"*",
"p",
",",
"size_t",
"s",
")",
"{",
"Arena",
"arena",
"=",
"(",
"Arena",
")",
"mps_arena",
";",
"Res",
"res",
";",
"ArenaEnter",
"(",
"aren... | mps_arena_roots_walk | Ravenbrook/mps | train | O2 |
639 | [
"rootWalkGrey",
"make",
"the",
"root",
"grey",
"for",
"the",
"trace",
"passed",
"as",
"p"
] | [
"'static",
"Res",
"rootWalkGrey",
"(",
"Root",
"root",
",",
"void",
"*",
"p",
")",
"{",
"Trace",
"trace",
"=",
"p",
";",
"AVERT",
"(",
"Root",
",",
"root",
")",
";",
"AVERT",
"(",
"Trace",
",",
"trace",
")",
";",
"RootGrey",
"(",
"root",
",",
"tr... | rootWalkGrey | Ravenbrook/mps | train | O2 |
640 | [
"Clear",
"a",
"Group",
"of",
"Pins",
"Atomic"
] | [
"'void",
"gpio_clear",
"(",
"uint32_t",
"gpioport",
",",
"uint16_t",
"gpios",
")",
"{",
"GPIO_BSRR",
"(",
"gpioport",
")",
"=",
"(",
"gpios",
"<<",
"16",
")",
";",
"}'"
] | gpio_clear | im-tomu/tomu-samples | train | Os |
641 | [
"Update",
"a",
"CRC",
"with",
"a",
"data",
"buffer"
] | [
"'uint8_t",
"PIOS_CRC_updateCRC",
"(",
"uint8_t",
"crc",
",",
"const",
"uint8_t",
"*",
"data",
",",
"int32_t",
"length",
")",
"{",
"//",
"use",
"registers",
"for",
"speed",
"register",
"int32_t",
"len",
"=",
"length",
";",
"register",
"uint8_t",
"crc8",
"=",... | PIOS_CRC_updateCRC | librepilot/LibrePilot | train | Os |
642 | [
"Update",
"a",
"CRC",
"with",
"a",
"data",
"buffer"
] | [
"'uint16_t",
"PIOS_CRC16_updateCRC",
"(",
"uint16_t",
"crc",
",",
"const",
"uint8_t",
"*",
"data",
",",
"int32_t",
"length",
")",
"{",
"register",
"uint8_t",
"*",
"p",
"=",
"(",
"uint8_t",
"*",
")",
"data",
";",
"register",
"uint16_t",
"_crc",
"=",
"crc",
... | PIOS_CRC16_updateCRC | librepilot/LibrePilot | train | Os |
643 | [
"returns",
"the",
"piece",
"at",
"the",
"given",
"location"
] | [
"'char",
"cgc_getPiece",
"(",
"Location",
"loc",
")",
"{",
"return",
"(",
"*",
"ptr_array",
")",
"[",
"loc",
".",
"x",
"]",
"[",
"loc",
".",
"y",
"]",
";",
"}'"
] | cgc_getPiece | trailofbits/cb-multios | train | Of |
644 | [
"place",
"all",
"the",
"pieces",
"on",
"the",
"board"
] | [
"\"void",
"cgc_initboard",
"()",
"{",
"//",
"all",
"the",
"empty",
"squares",
"get",
"a",
"'.'",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"HEIGHT",
";",
"i",
"++",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"WIDTH",
";... | cgc_initboard | trailofbits/cb-multios | train | Of |
645 | [
"display",
"contents",
"of",
"board"
] | [
"'void",
"cgc_displayboard",
"(",
"void",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"HEIGHT",
"-",
"1",
";",
"i",
">=",
"0",
";",
"i",
"--",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"WIDTH",
";",
"j",
"++",
")",
"{",
"cgc_tra... | cgc_displayboard | trailofbits/cb-multios | train | Of |
646 | [
"swap",
"two",
"array",
"locations"
] | [
"'void",
"cgc_swap",
"(",
"Move",
"move",
")",
"{",
"char",
"tmp",
";",
"tmp",
"=",
"(",
"*",
"ptr_array",
")",
"[",
"move",
".",
"dst",
".",
"x",
"]",
"[",
"move",
".",
"dst",
".",
"y",
"]",
";",
"(",
"*",
"ptr_array",
")",
"[",
"move",
".",... | cgc_swap | trailofbits/cb-multios | train | Of |
647 | [
"Determine",
"if",
"the",
"aircraft",
"is",
"forced",
"to",
"disarm",
"by",
"an",
"explicit",
"alarm"
] | [
"'static",
"bool",
"forcedDisArm",
"(",
"void",
")",
"{",
"//",
"read",
"alarms",
"SystemAlarmsAlarmData",
"alarms",
";",
"SystemAlarmsAlarmGet",
"(",
"&",
"alarms",
")",
";",
"if",
"(",
"alarms",
".",
"Guidance",
"==",
"SYSTEMALARMS_ALARM_CRITICAL",
")",
"{",
... | forcedDisArm | librepilot/LibrePilot | train | Os |
648 | [
"Handler",
"to",
"interprete",
"Command",
"inputs",
"in",
"regards",
"to",
"arming",
"disarming"
] | [
"'void",
"armHandler",
"(",
"bool",
"newinit",
",",
"FrameType_t",
"frameType",
")",
"{",
"static",
"ArmState_t",
"armState",
";",
"if",
"(",
"newinit",
")",
"{",
"AccessoryDesiredInitialize",
"()",
";",
"setArmedIfChanged",
"(",
"FLIGHTSTATUS_ARMED_DISARMED",
")",
... | armHandler | librepilot/LibrePilot | train | Os |
649 | [
"Update",
"the",
"flightStatus",
"object",
"only",
"if",
"value",
"changed"
] | [
"'static",
"void",
"setArmedIfChanged",
"(",
"uint8_t",
"val",
")",
"{",
"FlightStatusData",
"flightStatus",
";",
"FlightStatusGet",
"(",
"&",
"flightStatus",
")",
";",
"if",
"(",
"flightStatus",
".",
"Armed",
"!=",
"val",
")",
"{",
"flightStatus",
".",
"Armed... | setArmedIfChanged | librepilot/LibrePilot | train | Os |
650 | [
"Determine",
"if",
"the",
"aircraft",
"is",
"safe",
"to",
"arm"
] | [
"'static",
"bool",
"okToArm",
"(",
"void",
")",
"{",
"//",
"update",
"checks",
"configuration_check",
"()",
";",
"//",
"read",
"alarms",
"SystemAlarmsData",
"alarms",
";",
"SystemAlarmsGet",
"(",
"&",
"alarms",
")",
";",
"//",
"Check",
"each",
"alarm",
"for"... | okToArm | librepilot/LibrePilot | train | Os |
651 | [
"The",
"`long'",
"version",
"of",
"`xwcstoi'"
] | [
"\"bool",
"xwcstol",
"(",
"const",
"wchar_t",
"*",
"s",
",",
"int",
"base",
",",
"long",
"*",
"resultp",
")",
"{",
"wchar_t",
"*",
"endp",
";",
"if",
"(",
"*",
"s",
"==",
"L",
"'\\\\0'",
")",
"{",
"errno",
"=",
"EINVAL",
";",
"return",
"false",
"... | xwcstol | magicant/yash | train | O1 |
652 | [
"fake",
"cpubind",
"for",
"when",
"nbprocs1",
"and",
"no",
"binding",
"support"
] | [
"'static",
"int",
"fake_get_cpubind",
"(",
"hwloc_topology_t",
"topology",
"__hwloc_attribute_unused",
",",
"hwloc_cpuset_t",
"set",
"__hwloc_attribute_unused",
",",
"int",
"flags",
"__hwloc_attribute_unused",
")",
"{",
"return",
"0",
";",
"}'"
] | fake_get_cpubind | hpc/mpifileutils | train | O2 |
653 | [
"Scale",
"base",
"by",
"mult",
"div",
"checking",
"for",
"overflow"
] | [
"'static",
"int",
"scale64_check_overflow",
"(",
"u64",
"mult",
",",
"u64",
"div",
",",
"u64",
"*",
"base",
")",
"{",
"u64",
"tmp",
",",
"<type",
"ref=\"prev\"/>",
"rem",
";",
"tmp",
"=",
"div64_u64_rem",
"(",
"*",
"base",
",",
"div",
",",
"&",
"rem",
... | scale64_check_overflow | lsds/sgx-lkl | train | O3 |
654 | [
"Compares",
"two",
"strings",
"byte",
"by",
"byte",
"and",
"ignores",
"the",
"character's",
"case"
] | [
"\"static",
"int",
"case_insensitive_strncmp",
"(",
"const",
"char",
"*",
"string1",
",",
"const",
"char",
"*",
"string2",
",",
"size_t",
"n",
")",
"{",
"if",
"(",
"(",
"string1",
"==",
"NULL",
")",
"&&",
"(",
"string2",
"==",
"NULL",
")",
")",
"{",
... | case_insensitive_strncmp | tpm2-software/tpm2-tss-engine | train | O3 |
655 | [
"Calculates",
"the",
"number",
"of",
"TCP",
"transmissions",
"based",
"on",
"SQNR",
"range"
] | [
"'u_int32_t",
"mops_tcp_complexity_sqnr",
"(",
"struct",
"mops",
"*",
"mp",
")",
"{",
"u_int32_t",
"a",
",",
"<type",
"ref=\"prev\"/>",
"b",
",",
"<type",
"ref=\"prev\"/>",
"t",
",",
"<type",
"ref=\"prev\"/>",
"result",
";",
"a",
"=",
"mp",
"->",
"tcp_seq_star... | mops_tcp_complexity_sqnr | netsniff-ng/netsniff-ng | train | O2 |
669 | [
"return",
"zero",
"for",
"success,",
"nonzero",
"for",
"error"
] | [
"'int",
"flint_restore_thread_affinity",
"()",
"{",
"if",
"(",
"!",
"global_thread_pool_initialized",
")",
"return",
"1",
";",
"return",
"thread_pool_restore_affinity",
"(",
"global_thread_pool",
")",
";",
"}'"
] | flint_restore_thread_affinity | fredrik-johansson/flint2 | train | Os |
670 | [
"return",
"zero",
"for",
"success,",
"nonzero",
"for",
"error"
] | [
"'int",
"flint_set_thread_affinity",
"(",
"int",
"*",
"cpus",
",",
"slong",
"length",
")",
"{",
"if",
"(",
"!",
"global_thread_pool_initialized",
")",
"return",
"1",
";",
"return",
"thread_pool_set_affinity",
"(",
"global_thread_pool",
",",
"cpus",
",",
"length",
... | flint_set_thread_affinity | fredrik-johansson/flint2 | train | Os |
673 | [
"clears",
"the",
"rainbow",
"effect",
"for",
"musical",
"notes"
] | [
"'void",
"AnimTask_MusicNotesClearRainbowBlend",
"(",
"u8",
"taskId",
")",
"{",
"u16",
"i",
";",
"for",
"(",
"i",
"=",
"1",
";",
"i",
"<",
"NELEMS",
"(",
"sParticlesColorBlendTable",
")",
";",
"i",
"++",
")",
"FreeSpritePaletteByTag",
"(",
"sParticlesColorBlen... | AnimTask_MusicNotesClearRainbowBlend | pret/pokefirered | train | O2 |
674 | [
"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/drmemory | train | Os |
675 | [
"Returns",
"the",
"index",
"of",
"a",
"member",
"in",
"a",
"compound",
"or",
"enumeration",
"datatype",
"by",
"given",
"name"
] | [
"'int",
"H5Tget_member_index",
"(",
"hid_t",
"type_id",
",",
"const",
"char",
"*",
"name",
")",
"{",
"H5T_t",
"*",
"dt",
"=",
"NULL",
";",
"int",
"ret_value",
"=",
"FAIL",
";",
"unsigned",
"i",
";",
"FUNC_ENTER_API",
"(",
"FAIL",
")",
"H5TRACE2",
"(",
... | H5Tget_member_index | CGNS/CGNS | train | Og |
676 | [
"Sorts",
"members",
"of",
"a",
"compound",
"or",
"enumeration",
"datatype",
"by",
"their",
"names"
] | [
"'herr_t",
"H5T__sort_name",
"(",
"const",
"H5T_t",
"*",
"dt",
",",
"int",
"*",
"map",
")",
"{",
"unsigned",
"i",
",",
"<type",
"ref=\"prev\"/>",
"j",
",",
"<type",
"ref=\"prev\"/>",
"nmembs",
";",
"size_t",
"size",
";",
"hbool_t",
"swapped",
";",
"uint8_t... | H5T__sort_name | CGNS/CGNS | train | Og |
677 | [
"Sorts",
"the",
"members",
"of",
"a",
"compound",
"datatype",
"by",
"their",
"offsets;",
"sorts",
"the",
"members",
"of",
"an",
"enum",
"type",
"by",
"their",
"values"
] | [
"'herr_t",
"H5T__sort_value",
"(",
"const",
"H5T_t",
"*",
"dt",
",",
"int",
"*",
"map",
")",
"{",
"unsigned",
"nmembs",
";",
"/*",
"Number",
"of",
"members",
"for",
"datatype",
"*/",
"size_t",
"size",
";",
"hbool_t",
"swapped",
";",
"/*",
"Whether",
"we\... | H5T__sort_value | CGNS/CGNS | train | Og |
678 | [
"Returns",
"the",
"name",
"of",
"a",
"member",
"of",
"a",
"compound",
"or",
"enumeration",
"datatype"
] | [
"'char",
"*",
"H5Tget_member_name",
"(",
"hid_t",
"type_id",
",",
"unsigned",
"membno",
")",
"{",
"H5T_t",
"*",
"dt",
"=",
"NULL",
";",
"char",
"*",
"ret_value",
";",
"FUNC_ENTER_API",
"(",
"NULL",
")",
"H5TRACE2",
"(",
"\"*s\"",
",",
"\"iIu\"",
",",
"ty... | H5Tget_member_name | CGNS/CGNS | train | Og |
679 | [
"Private",
"function",
"for",
"H5Tget_member_name"
] | [
"'char",
"*",
"H5T__get_member_name",
"(",
"H5T_t",
"const",
"*",
"dt",
",",
"unsigned",
"membno",
")",
"{",
"char",
"*",
"ret_value",
";",
"FUNC_ENTER_PACKAGE",
"HDassert",
"(",
"dt",
")",
";",
"switch",
"(",
"dt",
"->",
"shared",
"->",
"type",
")",
"{"... | H5T__get_member_name | CGNS/CGNS | train | Og |
680 | [
"Private",
"function",
"for",
"H5Tget_nmembers"
] | [
"'int",
"H5T_get_nmembers",
"(",
"const",
"H5T_t",
"*",
"dt",
")",
"{",
"int",
"ret_value",
";",
"FUNC_ENTER_NOAPI",
"(",
"FAIL",
")",
"HDassert",
"(",
"dt",
")",
";",
"if",
"(",
"H5T_COMPOUND",
"==",
"dt",
"->",
"shared",
"->",
"type",
")",
"ret_value",... | H5T_get_nmembers | CGNS/CGNS | train | Og |
681 | [
"Determines",
"how",
"many",
"members",
"TYPE_ID",
"has"
] | [
"'int",
"H5Tget_nmembers",
"(",
"hid_t",
"type_id",
")",
"{",
"H5T_t",
"*",
"dt",
";",
"/*",
"Datatype",
"to",
"query",
"*/",
"int",
"ret_value",
";",
"/*",
"Return",
"value",
"*/",
"FUNC_ENTER_API",
"(",
"FAIL",
")",
"H5TRACE1",
"(",
"\"Is\"",
",",
"\"i... | H5Tget_nmembers | CGNS/CGNS | train | Og |
682 | [
"Load",
"Lua",
"source",
"code",
"and",
"bytecode"
] | [
"\"static",
"TValue",
"*",
"cpparser",
"(",
"lua_State",
"*",
"L",
",",
"lua_CFunction",
"dummy",
",",
"void",
"*",
"ud",
")",
"{",
"LexState",
"*",
"ls",
"=",
"(",
"LexState",
"*",
")",
"ud",
";",
"GCproto",
"*",
"pt",
";",
"GCfunc",
"*",
"fn",
";... | cpparser | openresty/redis2-nginx-module | train | O3 |
683 | [
"must",
"have",
"the",
"close",
"too"
] | [
"'int",
"ff_tee_parse_slave_options",
"(",
"void",
"*",
"log",
",",
"char",
"*",
"slave",
",",
"AVDictionary",
"*",
"*",
"options",
",",
"char",
"*",
"*",
"filename",
")",
"{",
"const",
"char",
"*",
"p",
";",
"char",
"*",
"key",
",",
"<type",
"ref=\"pr... | ff_tee_parse_slave_options | FFmpeg/FFmpeg | train | O1 |
684 | [
"check",
"if",
"report",
"have",
"to",
"be",
"sent",
"after",
"data",
"model",
"update"
] | [
"'void",
"Reporting_processReportEventsAfterUnlock",
"(",
"MmsMapping",
"*",
"self",
")",
"{",
"LinkedList",
"element",
"=",
"self",
"->",
"reportControls",
";",
"uint64_t",
"currentTime",
"=",
"Hal_getTimeInMs",
"()",
";",
"while",
"(",
"(",
"element",
"=",
"Link... | Reporting_processReportEventsAfterUnlock | mz-automation/libiec61850 | train | Os |
685 | [
"So",
"the",
"player",
"can",
"safely",
"go",
"back",
"through",
"defeated",
"floors",
"to",
"use",
"the",
"Poke",
"Center",
"(or",
"exit",
"challenge)"
] | [
"'static",
"void",
"GetFloorAlreadyCleared",
"(",
"void",
")",
"{",
"u16",
"mapLayoutId",
"=",
"gMapHeader",
".",
"mapLayoutId",
";",
"if",
"(",
"mapLayoutId",
"-",
"LAYOUT_TRAINER_TOWER_1F",
"==",
"TRAINER_TOWER",
".",
"floorsCleared",
"&&",
"mapLayoutId",
"-",
"... | GetFloorAlreadyCleared | pret/pokefirered | train | O2 |
686 | [
"Implementation",
"of",
"ostream_t",
"methods"
] | [
"'static",
"void",
"term_styled_ostream__write_mem",
"(",
"term_styled_ostream_t",
"stream",
",",
"const",
"void",
"*",
"data",
",",
"size_t",
"len",
")",
"{",
"term_ostream_set_color",
"(",
"stream",
"->",
"destination",
",",
"stream",
"->",
"curr_attr",
"->",
"c... | term_styled_ostream__write_mem | dspinellis/dgsh | train | O2 |
687 | [
"Be",
"to",
"keep",
"vec",
"examples",
"ex21"
] | [
"'PETSC_EXTERN",
"void",
"vecrestorearray_",
"(",
"Vec",
"*",
"x",
",",
"PetscScalar",
"*",
"fa",
",",
"size_t",
"*",
"ia",
",",
"PetscErrorCode",
"*",
"ierr",
")",
"{",
"PetscInt",
"m",
";",
"PetscScalar",
"*",
"lx",
";",
"*",
"ierr",
"=",
"VecGetLocalS... | vecrestorearray_ | petsc/petsc | train | O1 |
688 | [
"Prepare",
"an",
"OCSP",
"test"
] | [
"'static",
"void",
"ocsp_prepare_test",
"(",
"struct",
"ocsp_test",
"*",
"test",
")",
"{",
"struct",
"x509_certificate",
"*",
"cert",
"=",
"test",
"->",
"cert",
"->",
"cert",
";",
"struct",
"x509_certificate",
"*",
"issuer",
"=",
"test",
"->",
"issuer",
"->"... | ocsp_prepare_test | ipxe/ipxe | train | Os |
689 | [
"Handle",
"various",
"control",
"requests",
"related",
"to",
"the",
"msc",
"storage"
] | [
"'static",
"enum",
"usbd_request_return_codes",
"msc_control_request",
"(",
"usbd_device",
"*",
"usbd_dev",
",",
"struct",
"usb_setup_data",
"*",
"req",
",",
"uint8_t",
"*",
"*",
"buf",
",",
"uint16_t",
"*",
"len",
",",
"usbd_control_complete_callback",
"*",
"comple... | msc_control_request | PX4/Bootloader | train | O3 |
690 | [
"Handle",
"the",
"USB",
"'OUT'",
"requests"
] | [
"'static",
"void",
"msc_data_rx_cb",
"(",
"usbd_device",
"*",
"usbd_dev",
",",
"uint8_t",
"ep",
")",
"{",
"usbd_mass_storage",
"*",
"ms",
";",
"struct",
"usb_msc_trans",
"*",
"trans",
";",
"int",
"len",
",",
"<type",
"ref=\"prev\"/>",
"max_len",
",",
"<type",
... | msc_data_rx_cb | PX4/Bootloader | train | O3 |
691 | [
"Initializes",
"the",
"USB",
"Mass",
"Storage",
"subsystem"
] | [
"'usbd_mass_storage",
"*",
"usb_msc_init",
"(",
"usbd_device",
"*",
"usbd_dev",
",",
"uint8_t",
"ep_in",
",",
"uint8_t",
"ep_in_size",
",",
"uint8_t",
"ep_out",
",",
"uint8_t",
"ep_out_size",
",",
"const",
"char",
"*",
"vendor_id",
",",
"const",
"char",
"*",
"... | usb_msc_init | PX4/Bootloader | train | O3 |
692 | [
"Run",
"the",
"fast",
"dce",
"as",
"a",
"side",
"effect",
"of",
"building",
"LR"
] | [
"'static",
"void",
"df_lr_finalize",
"(",
"bitmap",
"all_blocks",
")",
"{",
"df_lr",
"->",
"solutions_dirty",
"=",
"false",
";",
"if",
"(",
"df",
"->",
"changeable_flags",
"&",
"DF_LR_RUN_DCE",
")",
"{",
"run_fast_df_dce",
"()",
";",
"/*",
"If",
"dce",
"dele... | df_lr_finalize | SuperHouse/esp-open-rtos | train | Oa |
693 | [
"Compute",
"local",
"uninitialized",
"register",
"info"
] | [
"'static",
"void",
"df_live_local_compute",
"(",
"bitmap",
"all_blocks",
"ATTRIBUTE_UNUSED",
")",
"{",
"unsigned",
"int",
"bb_index",
";",
"bitmap_iterator",
"bi",
";",
"df_grow_insn_info",
"()",
";",
"EXECUTE_IF_SET_IN_BITMAP",
"(",
"df_live->out_of_date_transfer_functions... | df_live_local_compute | SuperHouse/esp-open-rtos | train | Oa |
694 | [
"Simulate",
"the",
"forwards",
"effects",
"of",
"INSN",
"on",
"the",
"bitmap",
"LIVE"
] | [
"'void",
"df_simulate_one_insn_forwards",
"(",
"basic_block",
"bb",
",",
"rtx",
"insn",
",",
"bitmap",
"live",
")",
"{",
"rtx",
"link",
";",
"if",
"(",
"!",
"INSN_P",
"(",
"insn",
")",
")",
"return",
";",
"/*",
"Make",
"sure",
"that",
"DF_NOTE",
"really"... | df_simulate_one_insn_forwards | SuperHouse/esp-open-rtos | train | Oa |
695 | [
"Transfer",
"function",
"for",
"the",
"forwards",
"mustinitialized",
"problem"
] | [
"'static",
"bool",
"df_live_transfer_function",
"(",
"int",
"bb_index",
")",
"{",
"struct",
"df_live_bb_info",
"*",
"bb_info",
"=",
"df_live_get_bb_info",
"(",
"bb_index",
")",
";",
"struct",
"df_lr_bb_info",
"*",
"bb_lr_info",
"=",
"df_lr_get_bb_info",
"(",
"bb_ind... | df_live_transfer_function | SuperHouse/esp-open-rtos | train | Oa |
696 | [
"Compute",
"local",
"live",
"register",
"info",
"for",
"basic",
"block",
"BB"
] | [
"'static",
"void",
"df_lr_bb_local_compute",
"(",
"unsigned",
"int",
"bb_index",
")",
"{",
"basic_block",
"bb",
"=",
"BASIC_BLOCK",
"(",
"bb_index",
")",
";",
"struct",
"df_lr_bb_info",
"*",
"bb_info",
"=",
"df_lr_get_bb_info",
"(",
"bb_index",
")",
";",
"rtx",
... | df_lr_bb_local_compute | SuperHouse/esp-open-rtos | train | Oa |
697 | [
"Compute",
"local",
"reaching",
"def",
"info",
"for",
"each",
"basic",
"block",
"within",
"BLOCKS"
] | [
"'static",
"void",
"df_rd_local_compute",
"(",
"bitmap",
"all_blocks",
")",
"{",
"unsigned",
"int",
"bb_index",
";",
"bitmap_iterator",
"bi",
";",
"unsigned",
"int",
"regno",
";",
"struct",
"df_rd_problem_data",
"*",
"problem_data",
"=",
"(",
"struct",
"df_rd_prob... | df_rd_local_compute | SuperHouse/esp-open-rtos | train | Oa |
698 | [
"Delete",
"a",
"du",
"or",
"ud",
"chain",
"that",
"leave",
"or",
"point",
"to",
"REF"
] | [
"'void",
"df_chain_unlink",
"(",
"df_ref",
"ref",
")",
"{",
"struct",
"df_link",
"*",
"chain",
"=",
"DF_REF_CHAIN",
"(",
"ref",
")",
";",
"while",
"(",
"chain",
")",
"{",
"struct",
"df_link",
"*",
"next",
"=",
"chain",
"->",
"next",
";",
"/*",
"Delete"... | df_chain_unlink | SuperHouse/esp-open-rtos | train | Oa |
699 | [
"Remove",
"this",
"problem",
"from",
"the",
"stack",
"of",
"dataflow",
"problems"
] | [
"'static",
"void",
"df_chain_remove_problem",
"(",
"void",
")",
"{",
"bitmap_iterator",
"bi",
";",
"unsigned",
"int",
"bb_index",
";",
"/*",
"Wholesale",
"destruction",
"of",
"the",
"old",
"chains.",
"*/",
"if",
"(",
"df_chain",
"->",
"block_pool",
")",
"free_... | df_chain_remove_problem | SuperHouse/esp-open-rtos | train | Oa |
700 | [
"Initialize",
"the",
"solution",
"bit",
"vectors",
"for",
"problem"
] | [
"'static",
"void",
"df_rd_init_solution",
"(",
"bitmap",
"all_blocks",
")",
"{",
"unsigned",
"int",
"bb_index",
";",
"bitmap_iterator",
"bi",
";",
"EXECUTE_IF_SET_IN_BITMAP",
"(",
"all_blocks",
",",
"0",
",",
"bb_index",
",",
"bi",
")",
"{",
"struct",
"df_rd_bb_... | df_rd_init_solution | SuperHouse/esp-open-rtos | train | Oa |
701 | [
"Simulate",
"the",
"effects",
"of",
"the",
"uses",
"of",
"INSN",
"on",
"LIVE"
] | [
"'void",
"df_word_lr_simulate_uses",
"(",
"rtx",
"insn",
",",
"bitmap",
"live",
")",
"{",
"df_ref",
"*",
"use_rec",
";",
"unsigned",
"int",
"uid",
"=",
"INSN_UID",
"(",
"insn",
")",
";",
"for",
"(",
"use_rec",
"=",
"DF_INSN_UID_USES",
"(",
"uid",
")",
";... | df_word_lr_simulate_uses | SuperHouse/esp-open-rtos | train | Oa |
702 | [
"Free",
"all",
"storage",
"associated",
"with",
"the",
"problem"
] | [
"'static",
"void",
"df_lr_free",
"(",
"void",
")",
"{",
"struct",
"df_lr_problem_data",
"*",
"problem_data",
"=",
"(",
"struct",
"df_lr_problem_data",
"*",
")",
"df_lr",
"->",
"problem_data",
";",
"if",
"(",
"df_lr",
"->",
"block_info",
")",
"{",
"df_lr",
"-... | df_lr_free | SuperHouse/esp-open-rtos | train | Oa |
703 | [
"Debugging",
"info",
"at",
"top",
"of",
"bb"
] | [
"'static",
"void",
"df_rd_top_dump",
"(",
"basic_block",
"bb",
",",
"FILE",
"*",
"file",
")",
"{",
"struct",
"df_rd_bb_info",
"*",
"bb_info",
"=",
"df_rd_get_bb_info",
"(",
"bb",
"->",
"index",
")",
";",
"if",
"(",
"!",
"bb_info",
")",
"return",
";",
"df... | df_rd_top_dump | SuperHouse/esp-open-rtos | train | Oa |
704 | [
"Compute",
"local",
"uninitialized",
"register",
"info",
"for",
"basic",
"block",
"BB"
] | [
"'static",
"void",
"df_live_bb_local_compute",
"(",
"unsigned",
"int",
"bb_index",
")",
"{",
"basic_block",
"bb",
"=",
"BASIC_BLOCK",
"(",
"bb_index",
")",
";",
"struct",
"df_live_bb_info",
"*",
"bb_info",
"=",
"df_live_get_bb_info",
"(",
"bb_index",
")",
";",
"... | df_live_bb_local_compute | SuperHouse/esp-open-rtos | train | Oa |
705 | [
"Free",
"all",
"storage",
"associated",
"with",
"the",
"problem"
] | [
"'static",
"void",
"df_chain_free",
"(",
"void",
")",
"{",
"free_alloc_pool",
"(",
"df_chain",
"->",
"block_pool",
")",
";",
"BITMAP_FREE",
"(",
"df_chain",
"->",
"out_of_date_transfer_functions",
")",
";",
"free",
"(",
"df_chain",
")",
";",
"}'"
] | df_chain_free | SuperHouse/esp-open-rtos | train | Oa |
706 | [
"Create",
"defuse",
"or",
"usedef",
"chains"
] | [
"'static",
"void",
"df_chain_alloc",
"(",
"bitmap",
"all_blocks",
"ATTRIBUTE_UNUSED",
")",
"{",
"df_chain_remove_problem",
"()",
";",
"df_chain",
"->",
"block_pool",
"=",
"create_alloc_pool",
"(",
"\"df_chain_block",
"pool\"",
",",
"sizeof",
"(",
"struct",
"df_link",
... | df_chain_alloc | SuperHouse/esp-open-rtos | train | Oa |
707 | [
"In",
"of",
"target",
"gets",
"or",
"of",
"out",
"of",
"source"
] | [
"'static",
"bool",
"df_rd_confluence_n",
"(",
"edge",
"e",
")",
"{",
"bitmap",
"op1",
"=",
"&",
"df_rd_get_bb_info",
"(",
"e",
"->",
"dest",
"->",
"index",
")",
"->",
"in",
";",
"bitmap",
"op2",
"=",
"&",
"df_rd_get_bb_info",
"(",
"e",
"->",
"src",
"->... | df_rd_confluence_n | SuperHouse/esp-open-rtos | train | Oa |
708 | [
"Compute",
"local",
"live",
"register",
"info",
"for",
"each",
"basic",
"block",
"within",
"BLOCKS"
] | [
"'static",
"void",
"df_lr_local_compute",
"(",
"bitmap",
"all_blocks",
"ATTRIBUTE_UNUSED",
")",
"{",
"unsigned",
"int",
"bb_index",
",",
"<type",
"ref=\"prev\"/>",
"i",
";",
"bitmap_iterator",
"bi",
";",
"bitmap_clear",
"(",
"&",
"df",
"->",
"hardware_regs_used",
... | df_lr_local_compute | SuperHouse/esp-open-rtos | train | Oa |
709 | [
"Print",
"some",
"basic",
"block",
"info",
"as",
"part",
"of",
"df_dump"
] | [
"'void",
"df_print_bb_index",
"(",
"basic_block",
"bb",
",",
"FILE",
"*",
"file",
")",
"{",
"edge",
"e",
";",
"edge_iterator",
"ei",
";",
"fprintf",
"(",
"file",
",",
"\"\\(",
"\"",
")",
";",
"FOR_EACH_EDGE",
"(",
"e",
",",
"ei",
",",
"bb->preds",
")",... | df_print_bb_index | SuperHouse/esp-open-rtos | train | Oa |
710 | [
"Reset",
"the",
"global",
"solution",
"for",
"recalculation"
] | [
"'static",
"void",
"df_word_lr_reset",
"(",
"bitmap",
"all_blocks",
")",
"{",
"unsigned",
"int",
"bb_index",
";",
"bitmap_iterator",
"bi",
";",
"EXECUTE_IF_SET_IN_BITMAP",
"(",
"all_blocks",
",",
"0",
",",
"bb_index",
",",
"bi",
")",
"{",
"struct",
"df_word_lr_b... | df_word_lr_reset | SuperHouse/esp-open-rtos | train | Oa |
711 | [
"Confluence",
"function",
"that",
"ignores",
"fake",
"edges"
] | [
"'static",
"bool",
"df_lr_confluence_n",
"(",
"edge",
"e",
")",
"{",
"bitmap",
"op1",
"=",
"&",
"df_lr_get_bb_info",
"(",
"e",
"->",
"src",
"->",
"index",
")",
"->",
"out",
";",
"bitmap",
"op2",
"=",
"&",
"df_lr_get_bb_info",
"(",
"e",
"->",
"dest",
"-... | df_lr_confluence_n | SuperHouse/esp-open-rtos | train | Oa |
712 | [
"And",
"the",
"LR",
"info",
"with",
"the",
"mustinitialized",
"registers,",
"to",
"produce",
"the",
"LIVE",
"info"
] | [
"'static",
"void",
"df_live_finalize",
"(",
"bitmap",
"all_blocks",
")",
"{",
"if",
"(",
"df_live",
"->",
"solutions_dirty",
")",
"{",
"bitmap_iterator",
"bi",
";",
"unsigned",
"int",
"bb_index",
";",
"EXECUTE_IF_SET_IN_BITMAP",
"(",
"all_blocks",
",",
"0",
",",... | df_live_finalize | SuperHouse/esp-open-rtos | train | Oa |
713 | [
"Simulate",
"the",
"effects",
"of",
"the",
"uses",
"of",
"INSN",
"on",
"LIVE"
] | [
"'void",
"df_simulate_uses",
"(",
"rtx",
"insn",
",",
"bitmap",
"live",
")",
"{",
"df_ref",
"*",
"use_rec",
";",
"unsigned",
"int",
"uid",
"=",
"INSN_UID",
"(",
"insn",
")",
";",
"if",
"(",
"DEBUG_INSN_P",
"(",
"insn",
")",
")",
"return",
";",
"for",
... | df_simulate_uses | SuperHouse/esp-open-rtos | train | Oa |
714 | [
"Initialize",
"the",
"solution",
"vectors"
] | [
"'static",
"void",
"df_live_init",
"(",
"bitmap",
"all_blocks",
")",
"{",
"unsigned",
"int",
"bb_index",
";",
"bitmap_iterator",
"bi",
";",
"EXECUTE_IF_SET_IN_BITMAP",
"(",
"all_blocks",
",",
"0",
",",
"bb_index",
",",
"bi",
")",
"{",
"struct",
"df_live_bb_info"... | df_live_init | SuperHouse/esp-open-rtos | train | Oa |
715 | [
"Simulate",
"the",
"backwards",
"effects",
"of",
"INSN",
"on",
"the",
"bitmap",
"LIVE"
] | [
"'void",
"df_simulate_one_insn_backwards",
"(",
"basic_block",
"bb",
",",
"rtx",
"insn",
",",
"bitmap",
"live",
")",
"{",
"if",
"(",
"!",
"NONDEBUG_INSN_P",
"(",
"insn",
")",
")",
"return",
";",
"df_simulate_defs",
"(",
"insn",
",",
"live",
")",
";",
"df_s... | df_simulate_one_insn_backwards | SuperHouse/esp-open-rtos | train | Oa |
716 | [
"Compute",
"local",
"reaching",
"def",
"info",
"for",
"each",
"basic",
"block",
"within",
"BLOCKS"
] | [
"'static",
"void",
"df_md_local_compute",
"(",
"bitmap",
"all_blocks",
")",
"{",
"unsigned",
"int",
"bb_index",
",",
"<type",
"ref=\"prev\"/>",
"df_bb_index",
";",
"bitmap_iterator",
"bi1",
",",
"<type",
"ref=\"prev\"/>",
"bi2",
";",
"basic_block",
"bb",
";",
"bit... | df_md_local_compute | SuperHouse/esp-open-rtos | train | Oa |
717 | [
"Initialize",
"the",
"solution",
"bit",
"vectors",
"for",
"problem"
] | [
"'static",
"void",
"df_md_init",
"(",
"bitmap",
"all_blocks",
")",
"{",
"unsigned",
"int",
"bb_index",
";",
"bitmap_iterator",
"bi",
";",
"EXECUTE_IF_SET_IN_BITMAP",
"(",
"all_blocks",
",",
"0",
",",
"bb_index",
",",
"bi",
")",
"{",
"struct",
"df_md_bb_info",
... | df_md_init | SuperHouse/esp-open-rtos | train | Oa |
718 | [
"Create",
"the",
"chains",
"for",
"a",
"list",
"of",
"USEs"
] | [
"'static",
"void",
"df_chain_create_bb_process_use",
"(",
"bitmap",
"local_rd",
",",
"df_ref",
"*",
"use_rec",
",",
"int",
"top_flag",
")",
"{",
"bitmap_iterator",
"bi",
";",
"unsigned",
"int",
"def_index",
";",
"while",
"(",
"*",
"use_rec",
")",
"{",
"df_ref"... | df_chain_create_bb_process_use | SuperHouse/esp-open-rtos | train | Oa |
719 | [
"Compute",
"local",
"live",
"register",
"info",
"for",
"each",
"basic",
"block",
"within",
"BLOCKS"
] | [
"'static",
"void",
"df_word_lr_local_compute",
"(",
"bitmap",
"all_blocks",
"ATTRIBUTE_UNUSED",
")",
"{",
"unsigned",
"int",
"bb_index",
";",
"bitmap_iterator",
"bi",
";",
"EXECUTE_IF_SET_IN_BITMAP",
"(",
"df_word_lr->out_of_date_transfer_functions",
",",
"0",
",",
"bb_in... | df_word_lr_local_compute | SuperHouse/esp-open-rtos | train | Oa |
720 | [
"Debugging",
"info",
"at",
"bottom",
"of",
"bb"
] | [
"'static",
"void",
"df_md_bottom_dump",
"(",
"basic_block",
"bb",
",",
"FILE",
"*",
"file",
")",
"{",
"struct",
"df_md_bb_info",
"*",
"bb_info",
"=",
"df_md_get_bb_info",
"(",
"bb",
"->",
"index",
")",
";",
"if",
"(",
"!",
"bb_info",
")",
"return",
";",
... | df_md_bottom_dump | SuperHouse/esp-open-rtos | train | Oa |
721 | [
"Find",
"the",
"set",
"of",
"real",
"DEFs,",
"which",
"are",
"not",
"clobbers,",
"for",
"INSN"
] | [
"'void",
"df_simulate_find_noclobber_defs",
"(",
"rtx",
"insn",
",",
"bitmap",
"defs",
")",
"{",
"df_ref",
"*",
"def_rec",
";",
"unsigned",
"int",
"uid",
"=",
"INSN_UID",
"(",
"insn",
")",
";",
"for",
"(",
"def_rec",
"=",
"DF_INSN_UID_DEFS",
"(",
"uid",
")... | df_simulate_find_noclobber_defs | SuperHouse/esp-open-rtos | train | Oa |
722 | [
"Debugging",
"info",
"at",
"top",
"of",
"bb"
] | [
"'static",
"void",
"df_md_top_dump",
"(",
"basic_block",
"bb",
",",
"FILE",
"*",
"file",
")",
"{",
"struct",
"df_md_bb_info",
"*",
"bb_info",
"=",
"df_md_get_bb_info",
"(",
"bb",
"->",
"index",
")",
";",
"if",
"(",
"!",
"bb_info",
")",
"return",
";",
"fp... | df_md_top_dump | SuperHouse/esp-open-rtos | train | Oa |
723 | [
"Compute",
"register",
"info:",
"lifetime,",
"bb,",
"and",
"number",
"of",
"defs",
"and",
"uses"
] | [
"'static",
"void",
"df_note_compute",
"(",
"bitmap",
"all_blocks",
")",
"{",
"unsigned",
"int",
"bb_index",
";",
"bitmap_iterator",
"bi",
";",
"bitmap_head",
"live",
",",
"<type",
"ref=\"prev\"/>",
"do_not_gen",
",",
"<type",
"ref=\"prev\"/>",
"artificial_uses",
";"... | df_note_compute | SuperHouse/esp-open-rtos | train | Oa |
724 | [
"Free",
"basic",
"block",
"info"
] | [
"'static",
"void",
"df_rd_free_bb_info",
"(",
"basic_block",
"bb",
"ATTRIBUTE_UNUSED",
",",
"void",
"*",
"vbb_info",
")",
"{",
"struct",
"df_rd_bb_info",
"*",
"bb_info",
"=",
"(",
"struct",
"df_rd_bb_info",
"*",
")",
"vbb_info",
";",
"if",
"(",
"bb_info",
")",... | df_rd_free_bb_info | SuperHouse/esp-open-rtos | train | Oa |
725 | [
"Debugging",
"info",
"at",
"bottom",
"of",
"bb"
] | [
"'static",
"void",
"df_lr_bottom_dump",
"(",
"basic_block",
"bb",
",",
"FILE",
"*",
"file",
")",
"{",
"struct",
"df_lr_bb_info",
"*",
"bb_info",
"=",
"df_lr_get_bb_info",
"(",
"bb",
"->",
"index",
")",
";",
"struct",
"df_lr_problem_data",
"*",
"problem_data",
... | df_lr_bottom_dump | SuperHouse/esp-open-rtos | train | Oa |
726 | [
"Create",
"a",
"du",
"or",
"ud",
"chain",
"from",
"SRC",
"to",
"DST",
"and",
"link",
"it",
"into",
"SRC"
] | [
"'struct",
"df_link",
"*",
"df_chain_create",
"(",
"df_ref",
"src",
",",
"df_ref",
"dst",
")",
"{",
"struct",
"df_link",
"*",
"head",
"=",
"DF_REF_CHAIN",
"(",
"src",
")",
";",
"struct",
"df_link",
"*",
"link",
"=",
"(",
"struct",
"df_link",
"*",
")",
... | df_chain_create | SuperHouse/esp-open-rtos | train | Oa |
727 | [
"Remove",
"the",
"chain",
"problem",
"completely"
] | [
"'static",
"void",
"df_chain_fully_remove_problem",
"(",
"void",
")",
"{",
"df_chain_remove_problem",
"()",
";",
"BITMAP_FREE",
"(",
"df_chain",
"->",
"out_of_date_transfer_functions",
")",
";",
"free",
"(",
"df_chain",
")",
";",
"}'"
] | df_chain_fully_remove_problem | SuperHouse/esp-open-rtos | train | Oa |
740 | [
"Convert",
"lla",
"to",
"utm",
"(float)"
] | [
"'void",
"utm_of_lla_f",
"(",
"struct",
"UtmCoor_f",
"*",
"utm",
",",
"struct",
"LlaCoor_f",
"*",
"lla",
")",
"{",
"//",
"compute",
"zone",
"if",
"not",
"initialised",
"if",
"(",
"utm",
"->",
"zone",
"==",
"0",
")",
"{",
"utm",
"->",
"zone",
"=",
"Ut... | utm_of_lla_f | paparazzi/paparazzi | train | O7 |
741 | [
"Convert",
"utm",
"to",
"lla",
"(float)"
] | [
"'void",
"lla_of_utm_f",
"(",
"struct",
"LlaCoor_f",
"*",
"lla",
",",
"struct",
"UtmCoor_f",
"*",
"utm",
")",
"{",
"float",
"scale",
"=",
"1",
"/",
"N",
"/",
"serie_coeff_proj_mercator",
"[",
"0",
"]",
";",
"float",
"real",
"=",
"(",
"utm",
"->",
"nort... | lla_of_utm_f | paparazzi/paparazzi | train | O7 |
742 | [
"Same",
"as",
"UI_add_input_string(),",
"excepts",
"it",
"takes",
"a",
"copy",
"of",
"the",
"prompt"
] | [
"'int",
"UI_dup_input_string",
"(",
"UI",
"*",
"ui",
",",
"const",
"char",
"*",
"prompt",
",",
"int",
"flags",
",",
"char",
"*",
"result_buf",
",",
"int",
"minsize",
",",
"int",
"maxsize",
")",
"{",
"char",
"*",
"prompt_copy",
"=",
"NULL",
";",
"if",
... | UI_dup_input_string | sba1/simplegit | train | O2 |
743 | [
"cleanup:",
"only",
"called",
"for",
"threadshared",
"itimer",
"for",
"last",
"thread",
"in",
"group"
] | [
"\"void",
"pcprofile_thread_exit",
"(",
"dcontext_t",
"*",
"dcontext",
")",
"{",
"int",
"size",
";",
"thread_pc_info_t",
"*",
"info",
"=",
"(",
"thread_pc_info_t",
"*",
")",
"dcontext",
"->",
"pcprofile_field",
";",
"/*",
"don't",
"want",
"any",
"alarms",
"whi... | pcprofile_thread_exit | DynamoRIO/drmemory | train | Os |
744 | [
"CAN",
"Initialize",
"a",
"16bit",
"Message",
"ID",
"List",
"Filter"
] | [
"'void",
"can_filter_id_list_16bit_init",
"(",
"uint32_t",
"nr",
",",
"uint16_t",
"id1",
",",
"uint16_t",
"id2",
",",
"uint16_t",
"id3",
",",
"uint16_t",
"id4",
",",
"uint32_t",
"fifo",
",",
"bool",
"enable",
")",
"{",
"can_filter_init",
"(",
"nr",
",",
"fal... | can_filter_id_list_16bit_init | im-tomu/tomu-samples | train | Os |
745 | [
"Returns:",
"count",
"of",
"1",
"bits"
] | [
"'COMPILER_RT_ABI",
"si_int",
"__popcountdi2",
"(",
"di_int",
"a",
")",
"{",
"du_int",
"x2",
"=",
"(",
"du_int",
")",
"a",
";",
"x2",
"=",
"x2",
"-",
"(",
"(",
"x2",
">>",
"1",
")",
"&",
"0x5555555555555555uLL",
")",
";",
"/*",
"Every",
"2",
"bits",
... | __popcountdi2 | rumpkernel/rumprun | train | Oa |
746 | [
"Executes",
"periodic",
"maintenance",
"activities",
"required",
"by",
"the",
"process",
"module"
] | [
"'void",
"process_run",
"(",
"void",
")",
"{",
"#",
"ifndef",
"_WIN32",
"char",
"buf",
"[",
"_POSIX_PIPE_BUF",
"]",
";",
"if",
"(",
"!",
"ovs_list_is_empty",
"(",
"&",
"all_processes",
")",
"&&",
"read",
"(",
"fds",
"[",
"0",
"]",
",",
"buf",
",",
"s... | process_run | openvswitch/ovs | train | O2 |
747 | [
"Skip",
"len",
"uncompressed",
"bytes",
"of",
"output"
] | [
"'local",
"int",
"gz_skip",
"(",
"state",
",",
"len",
")",
"gz_statep",
"state",
";",
"z_off64_t",
"len",
";",
"{",
"unsigned",
"n",
";",
"/*",
"skip",
"over",
"len",
"bytes",
"or",
"reach",
"end-of-file,",
"whichever",
"comes",
"first",
"*/",
"while",
"... | gz_skip | Blosc/bcolz | train | O3 |
761 | [
"called",
"via",
"clean",
"call",
"at",
"return",
"address(es)",
"of",
"callee"
] | [
"'static",
"void",
"drwrap_after_callee",
"(",
"app_pc",
"retaddr",
",",
"reg_t",
"xsp",
")",
"{",
"void",
"*",
"drcontext",
"=",
"dr_get_current_drcontext",
"()",
";",
"per_thread_t",
"*",
"pt",
"=",
"(",
"per_thread_t",
"*",
")",
"drmgr_get_tls_field",
"(",
... | drwrap_after_callee | DynamoRIO/drmemory | train | Os |
762 | [
"event",
"for",
"function",
"replacing"
] | [
"'static",
"dr_emit_flags_t",
"drwrap_event_bb_app2app",
"(",
"void",
"*",
"drcontext",
",",
"void",
"*",
"tag",
",",
"instrlist_t",
"*",
"bb",
",",
"bool",
"for_trace",
",",
"bool",
"translating",
")",
"{",
"instr_t",
"*",
"inst",
";",
"app_pc",
"pc",
",",
... | drwrap_event_bb_app2app | DynamoRIO/drmemory | train | Os |
763 | [
"i#1713:",
"redirect",
"execution",
"from",
"a",
"postfunction",
"callback"
] | [
"'drext_status_t",
"drwrap_redirect_execution",
"(",
"void",
"*",
"wrapcxt_opaque",
")",
"{",
"drwrap_context_t",
"*",
"wrapcxt",
"=",
"(",
"drwrap_context_t",
"*",
")",
"wrapcxt_opaque",
";",
"if",
"(",
"wrapcxt_opaque",
"==",
"NULL",
")",
"{",
"NOTIFY",
"(",
"... | drwrap_redirect_execution | DynamoRIO/drmemory | train | Os |
764 | [
"Set",
"the",
"Program",
"Parallelism",
"Size"
] | [
"'static",
"inline",
"void",
"flash_set_program_size",
"(",
"uint32_t",
"psize",
")",
"{",
"FLASH_CR",
"&=",
"~",
"(",
"FLASH_CR_PROGRAM_MASK",
"<<",
"FLASH_CR_PROGRAM_SHIFT",
")",
";",
"FLASH_CR",
"|=",
"psize",
"<<",
"FLASH_CR_PROGRAM_SHIFT",
";",
"}'"
] | flash_set_program_size | libopencm3/libopencm3 | train | Os |
765 | [
"Clear",
"the",
"Programming",
"Alignment",
"Error",
"Flag"
] | [
"'void",
"flash_clear_pgaerr_flag",
"(",
"void",
")",
"{",
"FLASH_SR",
"|=",
"FLASH_SR_PGAERR",
";",
"}'"
] | flash_clear_pgaerr_flag | libopencm3/libopencm3 | train | Os |
766 | [
"Lock",
"the",
"Option",
"Byte",
"Access"
] | [
"'void",
"flash_lock_option_bytes",
"(",
"void",
")",
"{",
"FLASH_OPTCR",
"|=",
"FLASH_OPTCR_OPTLOCK",
";",
"}'"
] | flash_lock_option_bytes | libopencm3/libopencm3 | train | Os |
767 | [
"Clear",
"the",
"Write",
"Protect",
"Error",
"Flag"
] | [
"'void",
"flash_clear_wrperr_flag",
"(",
"void",
")",
"{",
"FLASH_SR",
"|=",
"FLASH_SR_WRPERR",
";",
"}'"
] | flash_clear_wrperr_flag | libopencm3/libopencm3 | train | Os |
775 | [
"Get",
"cos(angle)",
"using",
"the",
"sine",
"lookup",
"table"
] | [
"'float",
"cos_lookup_deg",
"(",
"float",
"angle",
")",
"{",
"return",
"sin_lookup_deg",
"(",
"angle",
"+",
"90",
")",
";",
"}'"
] | cos_lookup_deg | librepilot/LibrePilot | train | Os |
776 | [
"Use",
"the",
"lookup",
"table",
"to",
"return",
"sine(angle)",
"where",
"angle",
"is",
"in",
"radians"
] | [
"'float",
"sin_lookup_rad",
"(",
"float",
"angle",
")",
"{",
"int",
"degrees",
"=",
"RAD2DEG",
"(",
"angle",
")",
";",
"return",
"sin_lookup_deg",
"(",
"degrees",
")",
";",
"}'"
] | sin_lookup_rad | librepilot/LibrePilot | train | Os |
777 | [
"ifdef",
"FLASH_TABLE",
"Use",
"the",
"lookup",
"table",
"to",
"return",
"sine(angle)",
"where",
"angle",
"is",
"in",
"radians",
"to",
"save",
"flash",
"this",
"cheats",
"and",
"uses",
"trig",
"functions",
"to",
"only",
"save",
"90",
"values"
] | [
"'float",
"sin_lookup_deg",
"(",
"float",
"angle",
")",
"{",
"if",
"(",
"sin_table",
"==",
"NULL",
")",
"{",
"return",
"0",
";",
"}",
"//",
"<bug,",
"was>",
"int",
"i_ang",
"=",
"((int32_t)angle)",
"%",
"360;",
"//",
"1073741760",
"is",
"a",
"multiple",
... | sin_lookup_deg | librepilot/LibrePilot | train | Os |
778 | [
"Get",
"exit",
"status",
"of",
"executed",
"programs"
] | [
"'int",
"pex_get_status",
"(",
"struct",
"pex_obj",
"*",
"obj",
",",
"int",
"count",
",",
"int",
"*",
"vector",
")",
"{",
"if",
"(",
"obj",
"->",
"status",
"==",
"NULL",
")",
"{",
"const",
"char",
"*",
"errmsg",
";",
"int",
"err",
";",
"if",
"(",
... | pex_get_status | SuperHouse/esp-open-rtos | train | Oa |
779 | [
"end",
"is",
"openended",
"(so",
"pass",
"pos,pos+1",
"to",
"remove",
"just",
"the",
"posth",
"src)"
] | [
"'void",
"instr_remove_srcs",
"(",
"dcontext_t",
"*",
"dcontext",
",",
"instr_t",
"*",
"instr",
",",
"uint",
"start",
",",
"uint",
"end",
")",
"{",
"opnd_t",
"*",
"new_srcs",
";",
"CLIENT_ASSERT",
"(",
"!",
"TEST",
"(",
"INSTR_IS_NOALLOC_STRUCT",
",",
"instr... | instr_remove_srcs | DynamoRIO/drmemory | train | Os |
780 | [
"returns",
"the",
"4",
"bytes",
"starting",
"at",
"position",
"pos"
] | [
"'uint",
"instr_get_raw_word",
"(",
"instr_t",
"*",
"instr",
",",
"uint",
"pos",
")",
"{",
"CLIENT_ASSERT",
"(",
"pos",
">=",
"0",
"&&",
"pos",
"+",
"3",
"<",
"instr",
"->",
"length",
"&&",
"instr",
"->",
"bytes",
"!=",
"NULL",
",",
"\"instr_get_raw_word... | instr_get_raw_word | DynamoRIO/drmemory | train | Os |
781 | [
"end",
"is",
"openended",
"(so",
"pass",
"pos,pos+1",
"to",
"remove",
"just",
"the",
"posth",
"dst)"
] | [
"'void",
"instr_remove_dsts",
"(",
"dcontext_t",
"*",
"dcontext",
",",
"instr_t",
"*",
"instr",
",",
"uint",
"start",
",",
"uint",
"end",
")",
"{",
"opnd_t",
"*",
"new_dsts",
";",
"CLIENT_ASSERT",
"(",
"!",
"TEST",
"(",
"INSTR_IS_NOALLOC_STRUCT",
",",
"instr... | instr_remove_dsts | DynamoRIO/drmemory | train | Os |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.