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
131
[ "@func", "GPS_D1011b_Get", "Convert", "packet", "D906,", "D1001,", "D1011,", "D1015", "to", "lap", "structure" ]
[ "'void", "GPS_D1011b_Get", "(", "GPS_PLap", "*", "Lap", ",", "UC", "*", "p", ")", "{", "uint32", "t", ";", "/*", "Lap", "index", "(not", "in", "D906)", "*/", "switch", "(", "gps_lap_type", ")", "{", "case", "pD906", ":", "(", "*", "Lap", ")", "->",...
GPS_D1011b_Get
OpenCPN/OpenCPN
train
Os
132
[ "@funcstatic", "GPS_D150_Get", "Get", "waypoint", "data" ]
[ "'static", "void", "GPS_D150_Get", "(", "GPS_PWay", "*", "way", ",", "UC", "*", "s", ")", "{", "UC", "*", "p", ";", "int32", "i", ";", "p", "=", "s", ";", "(", "*", "way", ")", "->", "prot", "=", "150", ";", "for", "(", "i", "=", "0", ";", ...
GPS_D150_Get
OpenCPN/OpenCPN
train
Os
133
[ "@func", "GPS_A100_Get", "Get", "waypoint", "data", "from", "GPS" ]
[ "'int32", "GPS_A100_Get", "(", "const", "char", "*", "port", ",", "GPS_PWay", "*", "*", "way", ",", "int", "(", "*", "cb", ")", "(", "int", ",", "GPS_PWay", "*", ")", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", "...
GPS_A100_Get
OpenCPN/OpenCPN
train
Os
134
[ "@func", "GPS_A906_Get", "Get", "lap", "data", "from", "GPS" ]
[ "'int32", "GPS_A906_Get", "(", "const", "char", "*", "port", ",", "GPS_PLap", "*", "*", "lap", ",", "pcb_fn", "cb", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "trapkt", ";", "GPS_PPacket", "recpkt", ...
GPS_A906_Get
OpenCPN/OpenCPN
train
Os
135
[ "@funcstatic", "GPS_D106_Get", "Get", "waypoint", "data" ]
[ "'void", "GPS_D106_Get", "(", "GPS_PWay", "*", "way", ",", "UC", "*", "s", ")", "{", "UC", "*", "p", ";", "UC", "*", "q", ";", "int32", "i", ";", "p", "=", "s", ";", "(", "*", "way", ")", "->", "prot", "=", "106", ";", "(", "*", "way", ")...
GPS_D106_Get
OpenCPN/OpenCPN
train
Os
136
[ "@func", "GPS_A400_Get", "Get", "proximity", "waypoint", "data", "from", "GPS" ]
[ "'int32", "GPS_A400_Get", "(", "const", "char", "*", "port", ",", "GPS_PWay", "*", "*", "way", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "int32", "n", ";", ...
GPS_A400_Get
OpenCPN/OpenCPN
train
Os
137
[ "@func", "GPS_A600_Get", "Get", "time", "from", "GPS" ]
[ "'time_t", "GPS_A600_Get", "(", "const", "char", "*", "port", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "time_t", "ret", ";", "if", "(", "!", "GPS_Device_On", ...
GPS_A600_Get
OpenCPN/OpenCPN
train
Os
138
[ "@func", "GPS_A300_Send", "Send", "track", "log", "to", "GPS" ]
[ "'int32", "GPS_A300_Send", "(", "const", "char", "*", "port", ",", "GPS_PTrack", "*", "trk", ",", "int32", "n", ")", "{", "UC", "data", "[", "GPS_ARB_LEN", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "int3...
GPS_A300_Send
OpenCPN/OpenCPN
train
Os
139
[ "@func", "GPS_D300b_Get", "Get", "track", "data", "(A301", "protocol)" ]
[ "'void", "GPS_D300b_Get", "(", "GPS_PTrack", "*", "trk", ",", "UC", "*", "data", ")", "{", "GPS_A300_Translate", "(", "data", ",", "trk", ")", ";", "return", ";", "}'" ]
GPS_D300b_Get
OpenCPN/OpenCPN
train
Os
140
[ "@func", "GPS_D600_Send", "make", "a", "time", "packet", "for", "sending", "to", "the", "GPS" ]
[ "'void", "GPS_D600_Send", "(", "GPS_PPacket", "*", "packet", ",", "time_t", "Time", ")", "{", "UC", "data", "[", "10", "]", ";", "UC", "*", "p", ";", "struct", "tm", "*", "ts", ";", "p", "=", "data", ";", "ts", "=", "localtime", "(", "&", "Time",...
GPS_D600_Send
OpenCPN/OpenCPN
train
Os
141
[ "@func", "GPS_Init", "Initialise", "GPS", "communication", "Get", "capabilities", "and", "store", "time", "lat", "lon", "in", "case", "GPS", "requests", "it", "later" ]
[ "'int32", "GPS_Init", "(", "const", "char", "*", "port", ")", "{", "int32", "ret", ";", "(", "void", ")", "GPS_Util_Little", "()", ";", "ret", "=", "GPS_A000", "(", "port", ")", ";", "if", "(", "ret", "<", "0", ")", "return", "ret", ";", "gps_save_...
GPS_Init
OpenCPN/OpenCPN
train
Os
142
[ "@func", "GPS_A200_Get", "Get", "route", "data", "from", "GPS" ]
[ "'int32", "GPS_A200_Get", "(", "const", "char", "*", "port", ",", "GPS_PWay", "*", "*", "way", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "int32", "n", ";", ...
GPS_A200_Get
OpenCPN/OpenCPN
train
Os
143
[ "@func", "GPS_A700_Send", "Send", "position", "to", "GPS" ]
[ "'int32", "GPS_A700_Send", "(", "const", "char", "*", "port", ",", "double", "lat", ",", "double", "lon", ")", "{", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "if", "(", "!", "GPS_Device_On", "(", "port", ",", "&",...
GPS_A700_Send
OpenCPN/OpenCPN
train
Os
144
[ "@funcstatic", "GPS_D105_Send", "Form", "waypoint", "data", "string" ]
[ "'static", "void", "GPS_D105_Send", "(", "UC", "*", "data", ",", "GPS_PWay", "way", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "UC", "*", "q", ";", "p", "=", "data", ";", "GPS_Util_Put_Int", "(", "p", ",", "(", "int32", ")", "GPS_Ma...
GPS_D105_Send
OpenCPN/OpenCPN
train
Os
145
[ "@func", "GPS_Prepare_Track_For_Device", "Perform", "devicespecific", "adjustments", "on", "a", "track", "before", "upload" ]
[ "'void", "GPS_Prepare_Track_For_Device", "(", "GPS_PTrack", "*", "*", "trk", ",", "int32", "*", "n", ")", "{", "int32", "i", ",", "<type", "ref=\"prev\"/>", "j", ";", "/*", "D303/304", "marks", "track", "segments", "with", "two", "consecutive", "invalid", "t...
GPS_Prepare_Track_For_Device
OpenCPN/OpenCPN
train
Os
146
[ "@func", "GPS_A1007_Send", "Send", "Course", "Lap", "to", "GPS" ]
[ "'int32", "GPS_A1007_Send", "(", "const", "char", "*", "port", ",", "GPS_PCourse_Lap", "*", "clp", ",", "int32", "n_clp", ",", "gpsdevh", "*", "fd", ")", "{", "UC", "data", "[", "GPS_ARB_LEN", "]", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";...
GPS_A1007_Send
OpenCPN/OpenCPN
train
Os
147
[ "@func", "GPS_A200_Send", "Send", "routes", "to", "GPS" ]
[ "'int32", "GPS_A200_Send", "(", "const", "char", "*", "port", ",", "GPS_PWay", "*", "way", ",", "int32", "n", ")", "{", "UC", "data", "[", "GPS_ARB_LEN", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "int32"...
GPS_A200_Send
OpenCPN/OpenCPN
train
Os
148
[ "@func", "GPS_A500_Get", "Get", "almanac", "from", "GPS" ]
[ "'int32", "GPS_A500_Get", "(", "const", "char", "*", "port", ",", "GPS_PAlmanac", "*", "*", "alm", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "trapkt", ";", "GPS_PPacket", "recpkt", ";", "int32", "i"...
GPS_A500_Get
OpenCPN/OpenCPN
train
Os
149
[ "@funcstatic", "GPS_D1007_Send", "Form", "course", "lap", "data", "string" ]
[ "'void", "GPS_D1007_Send", "(", "UC", "*", "data", ",", "GPS_PCourse_Lap", "clp", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "p", "=", "data", ";", "GPS_Util_Put_Short", "(", "p", ",", "(", "US", ")", "clp", "->", "course_index", ")", ...
GPS_D1007_Send
OpenCPN/OpenCPN
train
Os
150
[ "@func", "GPS_D300_Send", "Form", "track", "data", "string" ]
[ "'void", "GPS_D300_Send", "(", "UC", "*", "data", ",", "GPS_PTrack", "trk", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "p", "=", "data", ";", "GPS_A300_Encode", "(", "p", ",", "trk", ")", ";", "*", "len", "=", "13", ";", "return", ...
GPS_D300_Send
OpenCPN/OpenCPN
train
Os
151
[ "@funcstatic", "GPS_D101_Get", "Get", "waypoint", "data" ]
[ "'static", "void", "GPS_D101_Get", "(", "GPS_PWay", "*", "way", ",", "UC", "*", "s", ")", "{", "UC", "*", "p", ";", "int32", "i", ";", "p", "=", "s", ";", "(", "*", "way", ")", "->", "prot", "=", "101", ";", "for", "(", "i", "=", "0", ";", ...
GPS_D101_Get
OpenCPN/OpenCPN
train
Os
152
[ "@funcstatic", "GPS_D154_Get", "Get", "waypoint", "data" ]
[ "'static", "void", "GPS_D154_Get", "(", "GPS_PWay", "*", "way", ",", "UC", "*", "s", ")", "{", "UC", "*", "p", ";", "int32", "i", ";", "p", "=", "s", ";", "(", "*", "way", ")", "->", "prot", "=", "154", ";", "for", "(", "i", "=", "0", ";", ...
GPS_D154_Get
OpenCPN/OpenCPN
train
Os
153
[ "@funcstatic", "GPS_D100_Send", "Form", "waypoint", "data", "string" ]
[ "'static", "void", "GPS_D100_Send", "(", "UC", "*", "data", ",", "GPS_PWay", "way", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "p", "=", "data", ";", "copy_char_array", "(", "&", "p", ",", "way", "->", "ident", ",", "6", ",", "Upper...
GPS_D100_Send
OpenCPN/OpenCPN
train
Os
154
[ "@funcstatic", "GPS_D1006_Send", "Form", "course", "data", "string" ]
[ "'void", "GPS_D1006_Send", "(", "UC", "*", "data", ",", "GPS_PCourse", "crs", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "int", "j", ";", "p", "=", "data", ";", "GPS_Util_Put_Short", "(", "p", ",", "(", "US", ")", "crs", "->", "inde...
GPS_D1006_Send
OpenCPN/OpenCPN
train
Os
155
[ "@funcstatic", "GPS_D107_Send", "Form", "waypoint", "data", "string" ]
[ "'static", "void", "GPS_D107_Send", "(", "UC", "*", "data", ",", "GPS_PWay", "way", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "p", "=", "data", ";", "copy_char_array", "(", "&", "p", ",", "way", "->", "ident", ",", "6", ",", "Upper...
GPS_D107_Send
OpenCPN/OpenCPN
train
Os
156
[ "@func", "GPS_A201_Send", "Send", "routes", "to", "GPS" ]
[ "'int32", "GPS_A201_Send", "(", "const", "char", "*", "port", ",", "GPS_PWay", "*", "way", ",", "int32", "n", ")", "{", "UC", "data", "[", "GPS_ARB_LEN", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "int32"...
GPS_A201_Send
OpenCPN/OpenCPN
train
Os
157
[ "@funcstatic", "GPS_D105_Get", "Get", "waypoint", "data" ]
[ "'static", "void", "GPS_D105_Get", "(", "GPS_PWay", "*", "way", ",", "UC", "*", "s", ")", "{", "UC", "*", "p", ";", "UC", "*", "q", ";", "p", "=", "s", ";", "(", "*", "way", ")", "->", "prot", "=", "105", ";", "(", "*", "way", ")", "->", ...
GPS_D105_Get
OpenCPN/OpenCPN
train
Os
158
[ "@funcstatic", "GPS_D103_Send", "Form", "waypoint", "data", "string" ]
[ "'static", "void", "GPS_D103_Send", "(", "UC", "*", "data", ",", "GPS_PWay", "way", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "p", "=", "data", ";", "copy_char_array", "(", "&", "p", ",", "way", "->", "ident", ",", "6", ",", "Upper...
GPS_D103_Send
OpenCPN/OpenCPN
train
Os
159
[ "@func", "GPS_A500_Send", "Send", "almanac", "to", "GPS" ]
[ "'int32", "GPS_A500_Send", "(", "const", "char", "*", "port", ",", "GPS_PAlmanac", "*", "alm", ",", "int32", "n", ")", "{", "UC", "data", "[", "GPS_ARB_LEN", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "in...
GPS_A500_Send
OpenCPN/OpenCPN
train
Os
160
[ "@func", "GPS_A800_Off", "Turn", "off", "GPS", "PVT" ]
[ "'int32", "GPS_A800_Off", "(", "const", "char", "*", "port", ",", "gpsdevh", "*", "*", "fd", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "if", "(", "!", "(", "tra", "=", "GPS_Packet_New"...
GPS_A800_Off
OpenCPN/OpenCPN
train
Os
161
[ "@funcstatic", "GPS_D151_Send", "Form", "waypoint", "data", "string" ]
[ "'static", "void", "GPS_D151_Send", "(", "UC", "*", "data", ",", "GPS_PWay", "way", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "int32", "i", ";", "p", "=", "data", ";", "copy_char_array", "(", "&", "p", ",", "way", "->", "ident", ",...
GPS_D151_Send
OpenCPN/OpenCPN
train
Os
162
[ "@func", "GPS_A301_Get", "Get", "track", "data", "from", "GPS", "(A301", "A302)" ]
[ "'int32", "GPS_A301_Get", "(", "const", "char", "*", "port", ",", "GPS_PTrack", "*", "*", "trk", ",", "pcb_fn", "cb", ",", "int", "protoid", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", ...
GPS_A301_Get
OpenCPN/OpenCPN
train
Os
163
[ "@funcstatic", "GPS_A300_Translate", "Translate", "track", "packet", "to", "track", "structure" ]
[ "'static", "void", "GPS_A300_Translate", "(", "UC", "*", "s", ",", "GPS_PTrack", "*", "trk", ")", "{", "UC", "*", "p", ";", "uint32", "t", ";", "p", "=", "s", ";", "(", "*", "trk", ")", "->", "lat", "=", "GPS_Math_Semi_To_Deg", "(", "GPS_Util_Get_Int...
GPS_A300_Translate
OpenCPN/OpenCPN
train
Os
164
[ "@func", "GPS_D310_Send", "Form", "track", "header", "data", "string" ]
[ "'void", "GPS_D310_Send", "(", "UC", "*", "data", ",", "GPS_PTrack", "trk", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "UC", "*", "q", ";", "p", "=", "data", ";", "*", "p", "++", "=", "(", "UC", ")", "trk", "->", "dspl", ";", ...
GPS_D310_Send
OpenCPN/OpenCPN
train
Os
165
[ "@funcstatic", "GPS_D109_Get", "Get", "waypoint", "data" ]
[ "'static", "void", "GPS_D109_Get", "(", "GPS_PWay", "*", "way", ",", "UC", "*", "s", ",", "int", "protoid", ")", "{", "UC", "*", "p", ";", "UC", "*", "q", ";", "int32", "i", ";", "p", "=", "s", ";", "(", "*", "way", ")", "->", "prot", "=", ...
GPS_D109_Get
OpenCPN/OpenCPN
train
Os
166
[ "@func", "GPS_A800_Get", "make", "a", "position", "packet", "for", "sending", "to", "the", "GPS" ]
[ "'int32", "GPS_A800_Get", "(", "gpsdevh", "*", "*", "fd", ",", "GPS_PPvt_Data", "*", "packet", ")", "{", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "if", "(", "!", "(", "tra", "=", "GPS_Packet_New", "()", ")", "||", "!", "(", "rec", "=", "...
GPS_A800_Get
OpenCPN/OpenCPN
train
Os
167
[ "@func", "GPS_A600_Send", "Send", "time", "to", "GPS" ]
[ "'int32", "GPS_A600_Send", "(", "const", "char", "*", "port", ",", "time_t", "Time", ")", "{", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "int32", "posnsent", "=", "0", ";", "int32", "ret", "=", "0", ";", "if", "...
GPS_A600_Send
OpenCPN/OpenCPN
train
Os
168
[ "@funcstatic", "GPS_D1012_Send", "Form", "course", "point", "data", "string" ]
[ "'void", "GPS_D1012_Send", "(", "UC", "*", "data", ",", "GPS_PCourse_Point", "cpt", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "int", "j", ";", "p", "=", "data", ";", "for", "(", "j", "=", "0", ";", "j", "<", "11", ";", "++", "j...
GPS_D1012_Send
OpenCPN/OpenCPN
train
Os
169
[ "@funcstatic", "GPS_A500_Translate", "Translate", "almanac", "packet", "to", "almanac", "structure" ]
[ "'static", "void", "GPS_A500_Translate", "(", "UC", "*", "s", ",", "GPS_PAlmanac", "*", "alm", ")", "{", "UC", "*", "p", ";", "p", "=", "s", ";", "(", "*", "alm", ")", "->", "wn", "=", "GPS_Util_Get_Short", "(", "p", ")", ";", "p", "+=", "sizeof"...
GPS_A500_Translate
OpenCPN/OpenCPN
train
Os
170
[ "@funcstatic", "GPS_D155_Send", "Form", "waypoint", "data", "string" ]
[ "'static", "void", "GPS_D155_Send", "(", "UC", "*", "data", ",", "GPS_PWay", "way", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "p", "=", "data", ";", "copy_char_array", "(", "&", "p", ",", "way", "->", "ident", ",", "6", ",", "Upper...
GPS_D155_Send
OpenCPN/OpenCPN
train
Os
171
[ "@func", "GPS_A1006_Send", "Send", "Courses", "to", "GPS" ]
[ "'int32", "GPS_A1006_Send", "(", "const", "char", "*", "port", ",", "GPS_PCourse", "*", "crs", ",", "int32", "n_crs", ",", "gpsdevh", "*", "fd", ")", "{", "UC", "data", "[", "GPS_ARB_LEN", "]", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", ...
GPS_A1006_Send
OpenCPN/OpenCPN
train
Os
172
[ "@funcstatic", "GPS_D106_Send", "Form", "waypoint", "data", "string" ]
[ "'static", "void", "GPS_D106_Send", "(", "UC", "*", "data", ",", "GPS_PWay", "way", ",", "int32", "*", "len", ")", "{", "UC", "*", "p", ";", "UC", "*", "q", ";", "int32", "i", ";", "p", "=", "data", ";", "*", "p", "++", "=", "way", "->", "wpt...
GPS_D106_Send
OpenCPN/OpenCPN
train
Os
173
[ "@func", "GPS_D310_Get", "Get", "track", "header", "data", "(A301", "protocol)" ]
[ "'void", "GPS_D310_Get", "(", "GPS_PTrack", "*", "trk", ",", "UC", "*", "s", ")", "{", "UC", "*", "p", ";", "UC", "*", "q", ";", "p", "=", "s", ";", "(", "*", "trk", ")", "->", "dspl", "=", "*", "p", "++", ";", "(", "*", "trk", ")", "->",...
GPS_D310_Get
OpenCPN/OpenCPN
train
Os
174
[ "@funcstatic", "GPS_D102_Get", "Get", "waypoint", "data" ]
[ "'static", "void", "GPS_D102_Get", "(", "GPS_PWay", "*", "way", ",", "UC", "*", "s", ")", "{", "UC", "*", "p", ";", "int32", "i", ";", "p", "=", "s", ";", "(", "*", "way", ")", "->", "prot", "=", "102", ";", "for", "(", "i", "=", "0", ";", ...
GPS_D102_Get
OpenCPN/OpenCPN
train
Os
175
[ "@func", "GPS_D301_Send", "Form", "track", "data", "string", "(D301", "or", "D302,", "depending", "on", "type", "value)" ]
[ "'void", "GPS_D301_Send", "(", "UC", "*", "data", ",", "GPS_PTrack", "trk", ",", "int32", "*", "len", ",", "int", "type", ")", "{", "UC", "*", "p", ";", "p", "=", "data", ";", "GPS_A300_Encode", "(", "p", ",", "trk", ")", ";", "p", "=", "data", ...
GPS_D301_Send
OpenCPN/OpenCPN
train
Os
176
[ "@funcstatic", "GPS_A500_Encode", "Encode", "almanac", "structure", "to", "almanac", "packet" ]
[ "'static", "void", "GPS_A500_Encode", "(", "UC", "*", "s", ",", "GPS_PAlmanac", "alm", ")", "{", "UC", "*", "p", ";", "p", "=", "s", ";", "GPS_Util_Put_Short", "(", "p", ",", "alm", "->", "wn", ")", ";", "p", "+=", "sizeof", "(", "int16", ")", ";...
GPS_A500_Encode
OpenCPN/OpenCPN
train
Os
177
[ "@func", "GPS_A1009_Get", "Get", "course", "limits", "from", "GPS" ]
[ "'int32", "GPS_A1009_Get", "(", "const", "char", "*", "port", ",", "GPS_PCourse_Limits", "limits", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "trapkt", ";", "GPS_PPacket", "recpkt", ";", "if", "(", "gp...
GPS_A1009_Get
OpenCPN/OpenCPN
train
Os
178
[ "@func", "GPS_A400_Send", "Send", "proximity", "waypoints", "to", "GPS" ]
[ "'int32", "GPS_A400_Send", "(", "const", "char", "*", "port", ",", "GPS_PWay", "*", "way", ",", "int32", "n", ")", "{", "UC", "data", "[", "GPS_ARB_LEN", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "int32"...
GPS_A400_Send
OpenCPN/OpenCPN
train
Os
179
[ "@func", "GPS_D1007_Get", "Convert", "packet", "D1007", "to", "course", "lap", "structure" ]
[ "'void", "GPS_D1007_Get", "(", "GPS_PCourse_Lap", "*", "clp", ",", "UC", "*", "p", ")", "{", "(", "*", "clp", ")", "->", "course_index", "=", "GPS_Util_Get_Short", "(", "p", ")", ";", "p", "+=", "sizeof", "(", "uint16", ")", ";", "(", "*", "clp", "...
GPS_D1007_Get
OpenCPN/OpenCPN
train
Os
180
[ "@func", "GPS_D700_Send", "make", "a", "position", "packet", "for", "sending", "to", "the", "GPS" ]
[ "'void", "GPS_D700_Send", "(", "GPS_PPacket", "*", "packet", ",", "double", "lat", ",", "double", "lon", ")", "{", "UC", "data", "[", "16", "]", ";", "UC", "*", "p", ";", "lat", "=", "GPS_Math_Deg_To_Rad", "(", "lat", ")", ";", "lon", "=", "GPS_Math_...
GPS_D700_Send
OpenCPN/OpenCPN
train
Os
181
[ "@funcstatic", "GPS_D108_Get", "Get", "waypoint", "data" ]
[ "'static", "void", "GPS_D108_Get", "(", "GPS_PWay", "*", "way", ",", "UC", "*", "s", ")", "{", "UC", "*", "p", ";", "UC", "*", "q", ";", "int32", "i", ";", "p", "=", "s", ";", "(", "*", "way", ")", "->", "prot", "=", "108", ";", "(", "*", ...
GPS_D108_Get
OpenCPN/OpenCPN
train
Os
182
[ "@func", "GPS_D311_Get", "Get", "track", "header", "data", "(A301", "protocol)" ]
[ "'void", "GPS_D311_Get", "(", "GPS_PTrack", "*", "trk", ",", "UC", "*", "s", ")", "{", "UC", "*", "p", ";", "short", "identifier", ";", "p", "=", "s", ";", "/*", "Forerunner", "*/", "identifier", "=", "GPS_Util_Get_Short", "(", "s", ")", ";", "sprint...
GPS_D311_Get
OpenCPN/OpenCPN
train
Os
183
[ "@func", "GPS_A1007_Get", "Get", "course", "lap", "data", "from", "GPS" ]
[ "'int32", "GPS_A1007_Get", "(", "const", "char", "*", "port", ",", "GPS_PCourse_Lap", "*", "*", "clp", ",", "pcb_fn", "cb", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "trapkt", ";", "GPS_PPacket", "r...
GPS_A1007_Get
OpenCPN/OpenCPN
train
Os
184
[ "@func", "GPS_A100_Send", "Send", "waypoints", "to", "GPS" ]
[ "'int32", "GPS_A100_Send", "(", "const", "char", "*", "port", ",", "GPS_PWay", "*", "way", ",", "int32", "n", ",", "int", "(", "*", "cb", ")", "(", "GPS_PWay", "*", ")", ")", "{", "UC", "data", "[", "GPS_ARB_LEN", "]", ";", "gpsdevh", "*", "fd", ...
GPS_A100_Send
OpenCPN/OpenCPN
train
Os
185
[ "@func", "GPS_A1008_Get", "Get", "course", "points", "from", "GPS" ]
[ "'int32", "GPS_A1008_Get", "(", "const", "char", "*", "port", ",", "GPS_PCourse_Point", "*", "*", "cpt", ",", "pcb_fn", "cb", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "trapkt", ";", "GPS_PPacket", ...
GPS_A1008_Get
OpenCPN/OpenCPN
train
Os
186
[ "@func", "GPS_A700_Get", "Get", "position", "from", "GPS" ]
[ "'int32", "GPS_A700_Get", "(", "const", "char", "*", "port", ",", "double", "*", "lat", ",", "double", "*", "lon", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", ...
GPS_A700_Get
OpenCPN/OpenCPN
train
Os
187
[ "@funcstatic", "GPS_D109_Send", "Form", "waypoint", "data", "string" ]
[ "'static", "void", "GPS_D109_Send", "(", "UC", "*", "data", ",", "GPS_PWay", "way", ",", "int32", "*", "len", ",", "int", "protoid", ")", "{", "UC", "*", "p", ";", "UC", "*", "q", ";", "int32", "i", ";", "p", "=", "data", ";", "*", "p", "++", ...
GPS_D109_Send
OpenCPN/OpenCPN
train
Os
188
[ "@func", "GPS_D300_Get", "Get", "track", "data" ]
[ "'int32", "GPS_D300_Get", "(", "GPS_PTrack", "*", "trk", ",", "int32", "entries", ",", "gpsdevh", "*", "fd", ")", "{", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "int32", "i", ";", "if", "(", "!", "(", "tra", "=", "GPS_Packet_New", "()", ")"...
GPS_D300_Get
OpenCPN/OpenCPN
train
Os
189
[ "@func", "GPS_D700_Get", "Convert", "position", "packet", "to", "lat", "long", "in", "degrees" ]
[ "'void", "GPS_D700_Get", "(", "GPS_PPacket", "packet", ",", "double", "*", "lat", ",", "double", "*", "lon", ")", "{", "UC", "*", "p", ";", "double", "t", ";", "p", "=", "packet", "->", "data", ";", "t", "=", "GPS_Util_Get_Double", "(", "p", ")", "...
GPS_D700_Get
OpenCPN/OpenCPN
train
Os
190
[ "@func", "GPS_A201_Get", "Get", "route", "data", "from", "GPS" ]
[ "'int32", "GPS_A201_Get", "(", "const", "char", "*", "port", ",", "GPS_PWay", "*", "*", "way", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "int32", "n", ";", ...
GPS_A201_Get
OpenCPN/OpenCPN
train
Os
191
[ "@func", "GPS_A800_On", "Turn", "on", "GPS", "PVT" ]
[ "'int32", "GPS_A800_On", "(", "const", "char", "*", "port", ",", "gpsdevh", "*", "*", "fd", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";", "if", "(", "!", "GPS_Device_On", "(", "port", ",",...
GPS_A800_On
OpenCPN/OpenCPN
train
Os
192
[ "@funcstatic", "GPS_A300_Encode", "Encode", "track", "structure", "to", "track", "packet" ]
[ "\"static", "void", "GPS_A300_Encode", "(", "UC", "*", "s", ",", "GPS_PTrack", "trk", ")", "{", "UC", "*", "p", ";", "p", "=", "s", ";", "/*", "Note:", "lat/lon", "==", "0x7fffffff", "is", "only", "valid", "for", "D303/D304,", "but", "our", "*", "cal...
GPS_A300_Encode
OpenCPN/OpenCPN
train
Os
193
[ "@func", "GPS_D1012_Get", "Convert", "packet", "D1012", "to", "course", "point", "structure" ]
[ "'void", "GPS_D1012_Get", "(", "GPS_PCourse_Point", "*", "cpt", ",", "UC", "*", "p", ")", "{", "int", "i", ";", "uint32", "t", ";", "for", "(", "i", "=", "0", ";", "i", "<", "11", ";", "++", "i", ")", "(", "*", "cpt", ")", "->", "name", "[", ...
GPS_D1012_Get
OpenCPN/OpenCPN
train
Os
194
[ "@func", "GPS_D600_Get", "Convert", "date", "time", "packet", "to", "ints" ]
[ "'time_t", "GPS_D600_Get", "(", "GPS_PPacket", "packet", ")", "{", "UC", "*", "p", ";", "static", "struct", "tm", "ts", ";", "p", "=", "packet", "->", "data", ";", "ts", ".", "tm_mon", "=", "*", "p", "++", "-", "1", ";", "ts", ".", "tm_mday", "="...
GPS_D600_Get
OpenCPN/OpenCPN
train
Os
195
[ "@func", "GPS_A301_Send", "Send", "track", "log", "to", "GPS", "(A301", "A302)" ]
[ "'int32", "GPS_A301_Send", "(", "const", "char", "*", "port", ",", "GPS_PTrack", "*", "trk", ",", "int32", "n", ",", "int", "protoid", ",", "gpsdevh", "*", "fd", ")", "{", "UC", "data", "[", "GPS_ARB_LEN", "]", ";", "GPS_PPacket", "tra", ";", "GPS_PPac...
GPS_A301_Send
OpenCPN/OpenCPN
train
Os
196
[ "@func", "GPS_D1013_Get", "Convert", "packet", "D1013", "to", "course", "limits", "structure" ]
[ "'void", "GPS_D1013_Get", "(", "GPS_PCourse_Limits", "limits", ",", "UC", "*", "p", ")", "{", "limits", "->", "max_courses", "=", "GPS_Util_Get_Uint", "(", "p", ")", ";", "p", "+=", "sizeof", "(", "uint32", ")", ";", "limits", "->", "max_course_laps", "=",...
GPS_D1013_Get
OpenCPN/OpenCPN
train
Os
197
[ "@func", "GPS_D303_Send", "Form", "track", "data", "string", "(D303", "D304)" ]
[ "'void", "GPS_D303_Send", "(", "UC", "*", "data", ",", "GPS_PTrack", "trk", ",", "int32", "*", "len", ",", "int", "protoid", ")", "{", "UC", "*", "p", ";", "p", "=", "data", ";", "GPS_A300_Encode", "(", "p", ",", "trk", ")", ";", "p", "=", "data"...
GPS_D303_Send
OpenCPN/OpenCPN
train
Os
198
[ "@func", "GPS_D800_Get", "Convert", "packet", "to", "pvt", "structure" ]
[ "'void", "GPS_D800_Get", "(", "GPS_PPacket", "packet", ",", "GPS_PPvt_Data", "*", "pvt", ")", "{", "UC", "*", "p", ";", "p", "=", "packet", "->", "data", ";", "(", "*", "pvt", ")", "->", "alt", "=", "GPS_Util_Get_Float", "(", "p", ")", ";", "p", "+...
GPS_D800_Get
OpenCPN/OpenCPN
train
Os
199
[ "@func", "GPS_A300_Get", "Get", "track", "data", "from", "GPS" ]
[ "'int32", "GPS_A300_Get", "(", "const", "char", "*", "port", ",", "GPS_PTrack", "*", "*", "trk", ",", "pcb_fn", "cb", ")", "{", "static", "UC", "data", "[", "2", "]", ";", "gpsdevh", "*", "fd", ";", "GPS_PPacket", "tra", ";", "GPS_PPacket", "rec", ";...
GPS_A300_Get
OpenCPN/OpenCPN
train
Os
200
[ "@funcstatic", "GPS_D103_Get", "Get", "waypoint", "data" ]
[ "'static", "void", "GPS_D103_Get", "(", "GPS_PWay", "*", "way", ",", "UC", "*", "s", ")", "{", "UC", "*", "p", ";", "int32", "i", ";", "p", "=", "s", ";", "(", "*", "way", ")", "->", "prot", "=", "103", ";", "for", "(", "i", "=", "0", ";", ...
GPS_D103_Get
OpenCPN/OpenCPN
train
Os
201
[ "Compute", "block", "group", "number", "from", "the", "inode", "number" ]
[ "'static", "uint32_t", "ext4_ialloc_get_bgid_of_inode", "(", "struct", "ext4_sblock", "*", "sb", ",", "uint32_t", "inode", ")", "{", "uint32_t", "inodes_per_group", "=", "ext4_get32", "(", "sb", ",", "inodes_per_group", ")", ";", "return", "(", "inode", "-", "1"...
ext4_ialloc_get_bgid_of_inode
autoas/as
train
Os
202
[ "Convert", "relative", "index", "of", "inode", "to", "absolute", "inode", "number" ]
[ "'static", "uint32_t", "ext4_ialloc_bgidx_to_inode", "(", "struct", "ext4_sblock", "*", "sb", ",", "uint32_t", "index", ",", "uint32_t", "bgid", ")", "{", "uint32_t", "inodes_per_group", "=", "ext4_get32", "(", "sb", ",", "inodes_per_group", ")", ";", "return", ...
ext4_ialloc_bgidx_to_inode
autoas/as
train
Os
203
[ "Nobody", "refers", "to", "this", "device,", "we", "may", "destroy", "it" ]
[ "'void", "in6_dev_finish_destroy", "(", "struct", "inet6_dev", "*", "idev", ")", "{", "struct", "net_device", "*", "dev", "=", "idev", "->", "dev", ";", "WARN_ON", "(", "!", "list_empty", "(", "&", "idev", "->", "addr_list", ")", ")", ";", "WARN_ON", "("...
in6_dev_finish_destroy
lsds/sgx-lkl
train
O3
204
[ "Private", "function", "to", "delete", "some", "error", "messages", "from", "the", "top", "of", "error", "stack" ]
[ "'herr_t", "H5E_pop", "(", "H5E_t", "*", "estack", ",", "size_t", "count", ")", "{", "herr_t", "ret_value", "=", "SUCCEED", ";", "/*", "Return", "value", "*/", "FUNC_ENTER_NOAPI_NOINIT", "/*", "Sanity", "check", "*/", "HDassert", "(", "estack", ")", ";", "...
H5E_pop
CGNS/CGNS
train
Og
205
[ "Private", "function", "to", "clear", "the", "error", "stack", "entries", "for", "the", "specified", "error", "stack" ]
[ "'static", "herr_t", "H5E_clear_entries", "(", "H5E_t", "*", "estack", ",", "size_t", "nentries", ")", "{", "H5E_error2_t", "*", "error", ";", "/*", "Pointer", "to", "error", "stack", "entry", "to", "clear", "*/", "unsigned", "u", ";", "/*", "Local", "inde...
H5E_clear_entries
CGNS/CGNS
train
Og
206
[ "Printflike", "wrapper", "around", "H5E_push_stack" ]
[ "\"herr_t", "H5E_printf_stack", "(", "H5E_t", "*", "estack", ",", "const", "char", "*", "file", ",", "const", "char", "*", "func", ",", "unsigned", "line", ",", "hid_t", "cls_id", ",", "hid_t", "maj_id", ",", "hid_t", "min_id", ",", "const", "char", "*",...
H5E_printf_stack
CGNS/CGNS
train
Og
207
[ "Private", "function", "to", "return", "the", "current", "settings", "for", "the", "automatic", "error", "stack", "traversal", "function", "and", "its", "data", "for", "specific", "error", "stack" ]
[ "'herr_t", "H5E_get_auto", "(", "const", "H5E_t", "*", "estack", ",", "H5E_auto_op_t", "*", "op", ",", "void", "*", "*", "client_data", ")", "{", "FUNC_ENTER_NOAPI_NOINIT_NOERR", "HDassert", "(", "estack", ")", ";", "/*", "Retrieve", "the", "requested", "infor...
H5E_get_auto
CGNS/CGNS
train
Og
208
[ "Private", "function", "to", "retrieve", "an", "error", "message" ]
[ "\"ssize_t", "H5E_get_msg", "(", "const", "H5E_msg_t", "*", "msg", ",", "H5E_type_t", "*", "type", ",", "char", "*", "msg_str", ",", "size_t", "size", ")", "{", "ssize_t", "len", ";", "/*", "Length", "of", "error", "message", "*/", "FUNC_ENTER_NOAPI_NOINIT_N...
H5E_get_msg
CGNS/CGNS
train
Og
209
[ "Pushes", "a", "new", "error", "record", "onto", "error", "stack", "for", "the", "current", "thread" ]
[ "'herr_t", "H5E_push_stack", "(", "H5E_t", "*", "estack", ",", "const", "char", "*", "file", ",", "const", "char", "*", "func", ",", "unsigned", "line", ",", "hid_t", "cls_id", ",", "hid_t", "maj_id", ",", "hid_t", "min_id", ",", "const", "char", "*", ...
H5E_push_stack
CGNS/CGNS
train
Og
210
[ "Private", "function", "to", "dump", "the", "error", "stack", "during", "an", "error", "in", "an", "API", "function", "if", "a", "callback", "function", "is", "defined", "for", "the", "current", "error", "stack" ]
[ "'herr_t", "H5E_dump_api_stack", "(", "int", "is_api", ")", "{", "herr_t", "ret_value", "=", "SUCCEED", ";", "/*", "Return", "value", "*/", "FUNC_ENTER_NOAPI", "(", "FAIL", ")", "/*", "Only", "dump", "the", "error", "stack", "during", "an", "API", "call", ...
H5E_dump_api_stack
CGNS/CGNS
train
Og
211
[ "Private", "function", "to", "clear", "the", "error", "stack", "for", "the", "specified", "error", "stack" ]
[ "'herr_t", "H5E_clear_stack", "(", "H5E_t", "*", "estack", ")", "{", "herr_t", "ret_value", "=", "SUCCEED", ";", "/*", "Return", "value", "*/", "FUNC_ENTER_NOAPI", "(", "FAIL", ")", "/*", "Check", "for", "\\'default\\'", "error", "stack", "*/", "if", "(", ...
H5E_clear_stack
CGNS/CGNS
train
Og
212
[ "This", "function", "is", "for", "backward", "compatibility" ]
[ "'static", "herr_t", "H5E_walk1_cb", "(", "int", "n", ",", "H5E_error1_t", "*", "err_desc", ",", "void", "*", "client_data", ")", "{", "H5E_print_t", "*", "eprint", "=", "(", "H5E_print_t", "*", ")", "client_data", ";", "FILE", "*", "stream", ";", "/*", ...
H5E_walk1_cb
CGNS/CGNS
train
Og
213
[ "Private", "function", "for", "H5Ewalk" ]
[ "'herr_t", "H5E_walk", "(", "const", "H5E_t", "*", "estack", ",", "H5E_direction_t", "direction", ",", "const", "H5E_walk_op_t", "*", "op", ",", "void", "*", "client_data", ")", "{", "int", "i", ";", "/*", "Local", "index", "variable", "*/", "herr_t", "sta...
H5E_walk
CGNS/CGNS
train
Og
214
[ "Private", "function", "to", "print", "the", "error", "stack", "in", "some", "default", "way" ]
[ "'herr_t", "H5E_print", "(", "const", "H5E_t", "*", "estack", ",", "FILE", "*", "stream", ",", "hbool_t", "bk_compatible", ")", "{", "H5E_print_t", "eprint", ";", "/*", "Callback", "information", "to", "pass", "to", "H5E_walk()", "*/", "H5E_walk_op_t", "walk_o...
H5E_print
CGNS/CGNS
train
Og
215
[ "Get", "the", "straight", "distance", "that", "a", "turn", "adds", "before", "a", "straight", "movement" ]
[ "'float", "get_move_turn_before", "(", "enum", "movement", "turn_type", ")", "{", "return", "turns", "[", "turn_type", "]", ".", "before", ";", "}'" ]
get_move_turn_before
Bulebots/bulebule
train
O1
216
[ "Configure", "force", "and", "search", "run", "mode" ]
[ "'void", "kinematic_configuration", "(", "float", "force", ",", "bool", "run", ")", "{", "max_force", "=", "force", ";", "if", "(", "run", ")", "max_linear_speed", "=", "get_linear_speed_limit", "()", ";", "else", "max_linear_speed", "=", "_calculate_search_linear...
kinematic_configuration
Bulebots/bulebule
train
O1
217
[ "Get", "the", "straight", "distance", "that", "a", "turn", "adds", "after", "a", "straight", "movement" ]
[ "'float", "get_move_turn_after", "(", "enum", "movement", "turn_type", ")", "{", "return", "turns", "[", "turn_type", "]", ".", "after", ";", "}'" ]
get_move_turn_after
Bulebots/bulebule
train
O1
218
[ "Execute", "a", "speed", "turn" ]
[ "'void", "speed_turn", "(", "enum", "movement", "turn_type", ",", "float", "force", ")", "{", "int32_t", "start", ";", "int32_t", "current", ";", "float", "travelled", ";", "float", "linear_velocity", ";", "float", "angular_velocity", ";", "float", "max_angular_...
speed_turn
Bulebots/bulebule
train
O1
219
[ "Get", "the", "expected", "linear", "speed", "at", "which", "to", "turn" ]
[ "'float", "get_move_turn_linear_speed", "(", "enum", "movement", "turn_type", ",", "float", "force", ")", "{", "return", "sqrt", "(", "force", "*", "2", "*", "turns", "[", "turn_type", "]", ".", "radius", "/", "MOUSE_MASS", ")", ";", "}'" ]
get_move_turn_linear_speed
Bulebots/bulebule
train
O1
220
[ "Duplicate", "all", "histograms", "associates", "with", "OSTMT", "to", "STMT" ]
[ "'void", "gimple_duplicate_stmt_histograms", "(", "struct", "function", "*", "fun", ",", "gimple", "stmt", ",", "struct", "function", "*", "ofun", ",", "gimple", "ostmt", ")", "{", "histogram_value", "val", ";", "for", "(", "val", "=", "gimple_histogram_value", ...
gimple_duplicate_stmt_histograms
SuperHouse/esp-open-rtos
train
Oa
221
[ "Lookup", "histogram", "of", "type", "TYPE", "in", "the", "STMT" ]
[ "'histogram_value", "gimple_histogram_value_of_type", "(", "struct", "function", "*", "fun", ",", "gimple", "stmt", ",", "enum", "hist_type", "type", ")", "{", "histogram_value", "hist", ";", "for", "(", "hist", "=", "gimple_histogram_value", "(", "fun", ",", "s...
gimple_histogram_value_of_type
SuperHouse/esp-open-rtos
train
Oa
222
[ "Dump", "information", "about", "HIST", "to", "DUMP_FILE" ]
[ "'static", "void", "dump_histogram_value", "(", "FILE", "*", "dump_file", ",", "histogram_value", "hist", ")", "{", "switch", "(", "hist", "->", "type", ")", "{", "case", "HIST_TYPE_INTERVAL", ":", "fprintf", "(", "dump_file", ",", "\"Interval", "counter", "ra...
dump_histogram_value
SuperHouse/esp-open-rtos
train
Oa
223
[ "Initialize", "map", "from", "FUNCDEF_NO", "to", "CGRAPH_NODE" ]
[ "'void", "init_node_map", "(", "void", ")", "{", "struct", "cgraph_node", "*", "n", ";", "if", "(", "get_last_funcdef_no", "()", ")", "cgraph_node_map", ".", "safe_grow_cleared", "(", "get_last_funcdef_no", "()", ")", ";", "FOR_EACH_FUNCTION", "(", "n", ")", "...
init_node_map
SuperHouse/esp-open-rtos
train
Oa
224
[ "Verify", "sanity", "of", "the", "histograms" ]
[ "'DEBUG_FUNCTION", "void", "verify_histograms", "(", "void", ")", "{", "basic_block", "bb", ";", "gimple_stmt_iterator", "gsi", ";", "histogram_value", "hist", ";", "struct", "pointer_set_t", "*", "visited_hists", ";", "error_found", "=", "false", ";", "visited_hist...
verify_histograms
SuperHouse/esp-open-rtos
train
Oa
225
[ "Set", "histogram", "for", "STMT" ]
[ "'static", "void", "set_histogram_value", "(", "struct", "function", "*", "fun", ",", "gimple", "stmt", ",", "histogram_value", "hist", ")", "{", "void", "*", "*", "loc", ";", "if", "(", "!", "hist", "&&", "!", "VALUE_HISTOGRAMS", "(", "fun", ")", ")", ...
set_histogram_value
SuperHouse/esp-open-rtos
train
Oa
226
[ "For", "DO", "and", "EXEC,", "find", "the", "location", "of", "the", "given", "subroutine" ]
[ "'static", "int16_t", "find_start_of_subroutine", "(", "uint8_t", "subcmd", ")", "{", "int16_t", "i", ";", "if", "(", "subcmd", "==", "0", ")", "return", "-", "1", ";", "//", "subcmd", "0", "is", "reserved", "to", "always", "mean", "the", "start", "of", ...
find_start_of_subroutine
MatrixPilot/MatrixPilot
train
O0
241
[ "XXX", "add", "non", "pthread", "specific", "lock", "routines", "here" ]
[ "'void", "_ARC4_LOCK", "(", "void", ")", "{", "}'" ]
_ARC4_LOCK
getdnsapi/getdns
train
O1
242
[ "Free", "all", "memory", "allocated", "for", "the", "given", "memory", "pool", "and", "the", "pool", "itself" ]
[ "'void", "free_alloc_pool", "(", "alloc_pool", "pool", ")", "{", "/*", "First", "empty", "the", "pool.", "*/", "empty_alloc_pool", "(", "pool", ")", ";", "#", "ifdef", "ENABLE_CHECKING", "memset", "(", "pool", ",", "0xaf", ",", "sizeof", "(", "*", "pool", ...
free_alloc_pool
SuperHouse/esp-open-rtos
train
Oa
243
[ "Frees", "the", "alloc_pool,", "if", "it", "is", "empty", "and", "zero", "POOL", "in", "this", "case" ]
[ "'void", "free_alloc_pool_if_empty", "(", "alloc_pool", "*", "pool", ")", "{", "if", "(", "(", "*", "pool", ")", "->", "elts_free", "==", "(", "*", "pool", ")", "->", "elts_allocated", ")", "{", "free_alloc_pool", "(", "*", "pool", ")", ";", "*", "pool...
free_alloc_pool_if_empty
SuperHouse/esp-open-rtos
train
Oa
244
[ "Puts", "PTR", "back", "on", "POOL's", "free", "list" ]
[ "'void", "pool_free", "(", "alloc_pool", "pool", ",", "void", "*", "ptr", ")", "{", "alloc_pool_list", "header", ";", "#", "if", "defined", "(", "ENABLE_VALGRIND_CHECKING", ")", "||", "defined", "(", "ENABLE_CHECKING", ")", "int", "size", ";", "size", "=", ...
pool_free
SuperHouse/esp-open-rtos
train
Oa