id stringlengths 21 132 | codebase stringclasses 57
values | c_file stringlengths 3 108 | function stringlengths 3 74 | sloc stringclasses 134
values | c_code stringlengths 25 52.1k | c_constructs dict |
|---|---|---|---|---|---|---|
transcoder-set#NEXT_POWER_OF_2_2_prep#min.c | transcoder-set | NEXT_POWER_OF_2_2.c | min | 1 | int min(int x, int y) { return (x < y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#COUNTING_PAIRS_PERSON_CAN_FORM_PAIR_ONE_1_prep#sort.c | transcoder-set | COUNTING_PAIRS_PERSON_CAN_FORM_PAIR_ONE_1.c | sort | 1 | void sort (int arr [ ], int n) {qsort (arr, n, sizeof(int), cmpfunc);}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
gawk-5.2.2#array_prep#indent.c | gawk-5.2.2 | array.c | indent | 7 | void
indent(int indent_level)
{
int i;
for (i = 0; i < indent_level; i++)
fprintf(output_fp, "%s", indent_char);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
uucp-1.07#debug_prep#cdebug_char.c | uucp-1.07 | debug.c | cdebug_char | 37 | size_t
cdebug_char (z, ichar)
char *z;
int ichar;
{
char b;
if (((*__ctype_b_loc ())[(int) ((((unsigned char) (ichar))))] & (unsigned short int) _ISprint)
&& ichar != '\"'
&& ichar != '\\')
{
*z++ = (char) ichar;
*z = '\0';
return 1;
}
*z++ = '\\';
switch (ichar)
... | {
"array_type": 0,
"break_continue_statement": 4,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 1,
"type_casting": 2,... |
libxml2#libxml2-py_prep#libxml_xmlFreeProp.c | libxml2 | libxml2-py.c | libxml_xmlFreeProp | 11 | PyObject *
libxml_xmlFreeProp(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
xmlAttrPtr cur;
PyObject *pyobj_cur;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"O:xmlFreeProp", &pyobj_cur))
return(((void *)0));
cur = (xmlAttrPtr) (((pyobj_cur) == (&_Py_NoneStruct)) ? ((void *)0) : (... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
json.h#allow_leading_or_trailing_decimal_point_prep#utest_run_allow_leading_or_trailing_decimal_point_read_write_minified_read.c | json.h | allow_leading_or_trailing_decimal_point.c | utest_run_allow_leading_or_trailing_decimal_point_read_write_minified_read | 7 | void utest_run_allow_leading_or_trailing_decimal_point_read_write_minified_read(int *utest_result, struct allow_leading_or_trailing_decimal_point *utest_fixture) {
size_t size = 0;
void *json = json_write_minified(utest_fixture->value, &size);
free(utest_fixture->value);
utest_fixture->value = json_parse(json, ... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#WAYS_TRANSFORMING_ONE_STRING_REMOVING_0_CHARACTERS_prep#len.c | transcoder-set | WAYS_TRANSFORMING_ONE_STRING_REMOVING_0_CHARACTERS.c | len | 1 | int len (int arr [ ]) {return ((int) (sizeof (arr) / sizeof (arr)[0]));}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#MINIMUM_XOR_VALUE_PAIR_1_prep#max.c | transcoder-set | MINIMUM_XOR_VALUE_PAIR_1.c | max | 1 | int max(int x, int y) { return (x > y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#allow_location_information_prep#utest_should_filter_test.c | json.h | allow_location_information.c | utest_should_filter_test | 42 | __attribute__((weak)) int utest_should_filter_test(const char *filter,
const char *testcase) {
if (filter) {
const char *filter_cur = filter;
const char *testcase_cur = testcase;
const char *filter_wildcard = 0;
while (('\0' != *filter_cur) && ('\0' != *testcase... | {
"array_type": 0,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 8,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 3,
"return_statement": 5,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
enscript-1.6.6#gram_prep#yyparse.c | enscript-1.6.6 | gram.c | yyparse | 459 | int
yyparse (void)
{
int yystate;
int yyerrstatus;
yytype_int16 yyssa[200];
yytype_int16 *yyss;
yytype_int16 *yyssp;
YYSTYPE yyvsa[200];
YYSTYPE *yyvs;
YYSTYPE *yyvsp;
long unsigned int yystacksize;
int yyn;
int yyresult;
int yytoken;
YYSTYPE yyval;
int yylen = 0;
yytoken... | {
"array_type": 10,
"break_continue_statement": 75,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 22,
"if_statement": 27,
"memory_management": 3,
"memory_operation": 0,
"pointer_type": 6,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 1,
"type_casting"... |
less-633#optfunc_prep#opt_o.c | less-633 | optfunc.c | opt_o | 45 | void opt_o(int type, char *s)
{
PARG parg;
char *filename;
if (secure)
{
error("log file support is not available", ((PARG *)((void *)0)));
return;
}
switch (type)
{
case 0:
namelogfile = save(s);
break;
case 2:
if (ch_getflags() & 001)
{
error("Input is not a pipe", ((PARG *)((void *)0)));
r... | {
"array_type": 0,
"break_continue_statement": 3,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 1,
"type_casting": 5,... |
libxml2#libxml2-py_prep#libxml_xmlXIncludeProcessTree.c | libxml2 | libxml2-py.c | libxml_xmlXIncludeProcessTree | 13 | PyObject *
libxml_xmlXIncludeProcessTree(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
xmlNodePtr tree;
PyObject *pyobj_tree;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"O:xmlXIncludeProcessTree", &pyobj_tree))
return(((void *)0));
tree... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
wget-1.21.4#ftp-basic_prep#ftp_process_type.c | wget-1.21.4 | ftp-basic.c | ftp_process_type | 10 | char
ftp_process_type (const char *params)
{
if (params
&& 0 == strncasecmp (params, "type=", 5)
&& params[5] != '\0')
return c_toupper (params[5]);
else
return 'I';
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#DYNAMIC_PROGRAMMING_SET_14_MAXIMUM_SUM_INCREASING_SUBSEQUENCE_prep#len.c | transcoder-set | DYNAMIC_PROGRAMMING_SET_14_MAXIMUM_SUM_INCREASING_SUBSEQUENCE.c | len | 1 | int len (int arr [ ]) {return ((int) (sizeof (arr) / sizeof (arr)[0]));}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
nano-7.2#chars_prep#has_blank_char.c | nano-7.2 | chars.c | has_blank_char | 6 | _Bool has_blank_char(const char *string)
{
while (*string != '\0' && !is_blank_char(string))
string += char_length(string);
return *string;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#NUMBER_RECTANGLES_NM_GRID_prep#f_filled.c | transcoder-set | NUMBER_RECTANGLES_NM_GRID.c | f_filled | 1 | int f_filled ( int n, int m ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
nettle-3.9.1#ocb-aes128_prep#nettle_ocb_aes128_update.c | nettle-3.9.1 | ocb-aes128.c | nettle_ocb_aes128_update | 7 | void
nettle_ocb_aes128_update (struct ocb_ctx *ctx, const struct ocb_aes128_encrypt_key *key,
size_t length, const uint8_t *data)
{
nettle_ocb_update (ctx, &key->ocb, &key->encrypt, (nettle_cipher_func *) nettle_aes128_encrypt,
length, data);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
json-c#arraylist_prep#array_list_new2.c | json-c | arraylist.c | array_list_new2 | 18 | struct array_list *array_list_new2(array_list_free_fn *free_fn, int initial_size)
{
struct array_list *arr;
if (initial_size < 0 || (size_t)initial_size >= (0x7fffffffffffffffL * 2UL + 1UL) / sizeof(void *))
return ((void *)0);
arr = (struct array_list *)malloc(sizeof(struct array_list));
if (!arr)
return ((voi... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 3,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 4,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 6,... |
libxml2#xmlregexp_prep#xmlRegNewExecCtxt.c | libxml2 | xmlregexp.c | xmlRegNewExecCtxt | 46 | xmlRegExecCtxtPtr
xmlRegNewExecCtxt(xmlRegexpPtr comp, xmlRegExecCallbacks callback, void *data) {
xmlRegExecCtxtPtr exec;
if (comp == ((void *)0))
return(((void *)0));
if ((comp->compact == ((void *)0)) && (comp->states == ((void *)0)))
return(((void *)0));
exec = (xmlRegExecCtxtPtr) xmlMalloc... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 6,
"memory_management": 0,
"memory_operation": 2,
"pointer_type": 0,
"return_statement": 5,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 17... |
transcoder-set#PROGRAM_AREA_SQUARE_prep#f_filled.c | transcoder-set | PROGRAM_AREA_SQUARE.c | f_filled | 1 | int f_filled ( int side ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#SUM_MANHATTAN_DISTANCES_PAIRS_POINTS_prep#f_filled.c | transcoder-set | SUM_MANHATTAN_DISTANCES_PAIRS_POINTS.c | f_filled | 1 | int f_filled ( int x [ ], int y [ ], int n ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
nano-7.2#utils_prep#nrealloc.c | nano-7.2 | utils.c | nrealloc | 7 | void *nrealloc(void *section, size_t howmuch)
{
section = realloc(section, howmuch);
if (section == ((void *)0))
die(gettext("Nano is out of memory!\n"));
return section;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
lodepng#lodepng_prep#lodepng_info_copy.c | lodepng | lodepng.c | lodepng_info_copy | 14 | unsigned lodepng_info_copy(LodePNGInfo* dest, const LodePNGInfo* source) {
lodepng_info_cleanup(dest);
lodepng_memcpy(dest, source, sizeof(LodePNGInfo));
lodepng_color_mode_init(&dest->color);
{ unsigned error = lodepng_color_mode_copy(&dest->color, &source->color); if(error) return error;};
{ unsigned error ... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 6,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 6,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
make-4.4.1#misc_prep#make_pid.c | make-4.4.1 | misc.c | make_pid | 4 | pid_t make_pid ()
{
return getpid ();
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#PROGRAM_BINARY_DECIMAL_CONVERSION_prep#max.c | transcoder-set | PROGRAM_BINARY_DECIMAL_CONVERSION.c | max | 1 | int max(int x, int y) { return (x > y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#FREQUENT_ELEMENT_ARRAY_prep#cmpfunc.c | transcoder-set | FREQUENT_ELEMENT_ARRAY.c | cmpfunc | 1 | int cmpfunc (const void * a, const void * b) {return ( *(int*)a - *(int*)b );}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
less-633#mark_prep#badmark.c | less-633 | mark.c | badmark | 4 | int badmark(LWCHAR c)
{
return (getmark(c) == ((void *)0));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#FIND_ONE_EXTRA_CHARACTER_STRING_1_prep#len.c | transcoder-set | FIND_ONE_EXTRA_CHARACTER_STRING_1.c | len | 1 | int len (int arr [ ]) {return ((int) (sizeof (arr) / sizeof (arr)[0]));}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
heman#plane_prep#kmPlaneExtractFromMat4.c | heman | plane.c | kmPlaneExtractFromMat4 | 9 | kmPlane* kmPlaneExtractFromMat4(kmPlane* pOut, const struct kmMat4* pIn, int row) {
int scale = (row < 0) ? -1 : 1;
row = abs(row) - 1;
pOut->a = pIn->mat[3] + scale * pIn->mat[row];
pOut->b = pIn->mat[7] + scale * pIn->mat[row + 4];
pOut->c = pIn->mat[11] + scale * pIn->mat[row + 8];
pOut->d = pIn->mat[15] + ... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
dap-3.10#ps1_prep#pict_axes.c | dap-3.10 | ps1.c | pict_axes | 122 | void pict_axes(pict *p, double minx, double maxx, tick xtick[], int nxticks,
double miny, double maxy, tick ytick[], int nyticks,
char style[], double bpos, double lpos, double tpos, double rpos)
{
double xpos, ypos;
int rmarks, tmarks;
xpos = 0.0;
ypos = 0.0;
rmarks = 0;
tmarks = 0;
if (s... | {
"array_type": 1,
"break_continue_statement": 16,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 6,
"type_casting": 0... |
libosip2-5.3.1#ict_prep#__osip_ict_init.c | libosip2-5.3.1 | ict.c | __osip_ict_init | 74 | int __osip_ict_init(osip_ict_t **ict, osip_t *osip, osip_message_t *invite) {
osip_route_t *route;
int i;
osip_trace("ict.c", 30, TRACE_LEVEL5, ((void *)0), "allocating ICT context\n");
*ict = (osip_ict_t *) (osip_malloc_func ? osip_malloc_func(sizeof(osip_ict_t)) : malloc(sizeof(osip_ict_t)));
if (*ict == ((... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 14,
"memory_management": 3,
"memory_operation": 1,
"pointer_type": 7,
"return_statement": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1... |
tar-1.34#exclist_prep#exclude_vcs_ignores.c | tar-1.34 | exclist.c | exclude_vcs_ignores | 7 | void
exclude_vcs_ignores (void)
{
struct vcs_ignore_file *p;
for (p = vcs_ignore_files; p->filename; p++)
excfile_add (p->filename, 0x00);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#globals_prep#__oldXMLWDcompatibility.c | libxml2 | globals.c | __oldXMLWDcompatibility | 4 | const int *
__oldXMLWDcompatibility(void) {
return &oldXMLWDcompatibility;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#valid_prep#xmlIsMixedElement.c | libxml2 | valid.c | xmlIsMixedElement | 20 | int
xmlIsMixedElement(xmlDocPtr doc, const xmlChar *name) {
xmlElementPtr elemDecl;
if ((doc == ((void *)0)) || (doc->intSubset == ((void *)0))) return(-1);
elemDecl = xmlGetDtdElementDesc(doc->intSubset, name);
if ((elemDecl == ((void *)0)) && (doc->extSubset != ((void *)0)))
elemDecl = xmlGetDtdEleme... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 6,
"struct_type": 0,
"switch_statement": 1,
"type_casting": 3,... |
nano-7.2#nano_prep#delete_node.c | nano-7.2 | nano.c | delete_node | 10 | void delete_node(linestruct *line)
{
if (line == openfile->edittop)
openfile->edittop = line->prev;
if (line == openfile->spillage_line)
openfile->spillage_line = ((void *)0);
free(line->data);
free(line->multidata);
free(line);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 3,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tar-1.34#timespec-sub_prep#timespec_sub.c | tar-1.34 | timespec-sub.c | timespec_sub | 34 | struct timespec
timespec_sub (struct timespec a, struct timespec b)
{
time_t rs = a.tv_sec;
time_t bs = b.tv_sec;
int ns = a.tv_nsec - b.tv_nsec;
int rns = ns;
if (ns < 0)
{
rns = ns + TIMESPEC_HZ;
time_t bs1;
if (!__builtin_add_overflow (bs, 1, &bs1))
bs = bs1;
else if (- ... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 1,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#WRITE_YOU_OWN_POWER_WITHOUT_USING_MULTIPLICATION_AND_DIVISION_prep#f_gold.c | transcoder-set | WRITE_YOU_OWN_POWER_WITHOUT_USING_MULTIPLICATION_AND_DIVISION.c | f_gold | 17 | int f_gold ( int a, int b ) {
if ( b == 0 ) return 1;
int answer = a;
int increment = a;
int i, j;
for ( i = 1;
i < b;
i ++ ) {
for ( j = 1;
j < a;
j ++ ) {
answer += increment;
}
increment = answer;
}
return answer;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#MINIMUM_ROTATIONS_UNLOCK_CIRCULAR_LOCK_prep#f_gold.c | transcoder-set | MINIMUM_ROTATIONS_UNLOCK_CIRCULAR_LOCK.c | f_gold | 12 | int f_gold ( int input, int unlock_code ) {
int rotation = 0;
int input_digit, code_digit;
while ( input || unlock_code ) {
input_digit = input % 10;
code_digit = unlock_code % 10;
rotation += min ( abs ( input_digit - code_digit ), 10 - abs ( input_digit - code_digit ) );
input /= 10;
unlock_... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#libxml2-py_prep#libxml_xmlUCSIsCombiningDiacriticalMarksforSymbols.c | libxml2 | libxml2-py.c | libxml_xmlUCSIsCombiningDiacriticalMarksforSymbols | 13 | PyObject *
libxml_xmlUCSIsCombiningDiacriticalMarksforSymbols(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
int code;
if (libxml_deprecationWarning("xmlUCSIsCombiningDiacriticalMarksforSymbols") == -1)
return(((void *)0));
if (!_PyArg_Parse... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
tar-1.34#renameatu_prep#renameatu.c | tar-1.34 | renameatu.c | renameatu | 67 | int
renameatu (int fd1, char const *src, int fd2, char const *dst,
unsigned int flags)
{
int ret_val = -1;
int err = 22;
ret_val = renameat2 (fd1, src, fd2, dst, flags);
err = (*__errno_location ());
if (! (ret_val < 0 && (err == 22 || err == 38 || err == 95)))
return ret_val;
{
size_t src_... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 1,
"if_statement": 16,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 12,
"struct_type": 0,
"switch_statement": 0,
"type_casting": ... |
transcoder-set#COUNT_NUMBER_WAYS_REACH_GIVEN_SCORE_GAME_prep#cmpfunc.c | transcoder-set | COUNT_NUMBER_WAYS_REACH_GIVEN_SCORE_GAME.c | cmpfunc | 1 | int cmpfunc (const void * a, const void * b) {return ( *(int*)a - *(int*)b );}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
nano-7.2#history_prep#history_init.c | nano-7.2 | history.c | history_init | 15 | void history_init(void)
{
search_history = make_new_node(((void *)0));
search_history->data = copy_of("");
searchtop = search_history;
searchbot = search_history;
replace_history = make_new_node(((void *)0));
replace_history->data = copy_of("");
replacetop = replace_history;
replacebot = replace_history;
execu... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
gprolog-1.5.0#stream_supp_prep#Pl_Make_Stream_Tagged_Word.c | gprolog-1.5.0 | stream_supp.c | Pl_Make_Stream_Tagged_Word | 8 | WamWord
Pl_Make_Stream_Tagged_Word(int stm)
{
static WamWord h[2];
h[0] = stream_1;
h[1] = (((PlULong) (stm) << 3) | (PlULong)0x7);
return ((PlLong) (h) + ((PlULong)0x2));
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
gprolog-1.5.0#error_supp_prep#Pl_Set_Last_Syntax_Error.c | gprolog-1.5.0 | error_supp.c | Pl_Set_Last_Syntax_Error | 9 | void
Pl_Set_Last_Syntax_Error(char *file_name, int err_line, int err_col,
char *err_msg)
{
last_err_file = file_name;
last_err_line = err_line;
last_err_col = err_col;
last_err_msg = err_msg;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
optipng-0.7.8#trees_prep#_tr_init.c | optipng-0.7.8 | trees.c | _tr_init | 12 | void _tr_init(deflate_state *s) {
tr_static_init();
s->l_desc.dyn_tree = s->dyn_ltree;
s->l_desc.stat_desc = &static_l_desc;
s->d_desc.dyn_tree = s->dyn_dtree;
s->d_desc.stat_desc = &static_d_desc;
s->bl_desc.dyn_tree = s->bl_tree;
s->bl_desc.stat_desc = &static_bl_desc;
s->bi_buf = 0;
... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xpath_prep#xmlXPathNextFollowingSibling.c | libxml2 | xpath.c | xmlXPathNextFollowingSibling | 12 | xmlNodePtr
xmlXPathNextFollowingSibling(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) {
if ((ctxt == ((void *)0)) || (ctxt->context == ((void *)0))) return(((void *)0));
if ((ctxt->context->node->type == XML_ATTRIBUTE_NODE) ||
(ctxt->context->node->type == XML_NAMESPACE_DECL))
return(((void *)0));
if (cu... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 5,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
json.h#allow_inf_and_nan_prep#json_skip_all_skippables.c | json.h | allow_inf_and_nan.c | json_skip_all_skippables | 31 | int json_skip_all_skippables(struct json_parse_state_s *state) {
int did_consume = 0;
const size_t size = state->size;
if (json_parse_flags_allow_c_style_comments & state->flags_bitset) {
do {
if (state->offset == size) {
state->error = json_parse_error_premature_end_of_buffer;
return 1;... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 5,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
cflow-1.7#hash_prep#hash_lookup.c | cflow-1.7 | hash.c | hash_lookup | 12 | void *
hash_lookup (const Hash_table *table, const void *entry)
{
struct hash_entry const *bucket = safe_hasher (table, entry);
struct hash_entry const *cursor;
if (bucket->data == ((void *)0))
return ((void *)0);
for (cursor = bucket; cursor; cursor = cursor->next)
if (entry == cursor->data || table->c... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
nano-7.2#winio_prep#full_refresh.c | nano-7.2 | winio.c | full_refresh | 4 | void full_refresh(void)
{
wrefresh(curscr);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
json.h#test_prep#json_write_minified_object.c | json.h | test.c | json_write_minified_object | 21 | char *json_write_minified_object(const struct json_object_s *object,
char *data) {
struct json_object_element_s *element = 0;
*data++ = '{';
for (element = object->start; 0 != element; element = element->next) {
if (element != object->start) {
*data++ = ',';
}
da... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#NEWMAN_CONWAY_SEQUENCE_1_prep#len.c | transcoder-set | NEWMAN_CONWAY_SEQUENCE_1.c | len | 1 | int len (int arr [ ]) {return ((int) (sizeof (arr) / sizeof (arr)[0]));}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
gawk-5.2.2#debug_prep#do_finish.c | gawk-5.2.2 | debug.c | do_finish | 18 | int
do_finish(CMDARG *arg __attribute__ ((__unused__)), int cmd)
{
do { if (! prog_running) { d_error(gettext("program not running")); return 0; } } while (0);
if (cur_frame == fcall_count) {
fprintf(out_fp,
gettext("'finish' not meaningful in the outermost frame main()\n"));
return 0;
}
stop.fcall_count = f... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
ed-1.19#regex_prep#next_matching_node_addr.c | ed-1.19 | regex.c | next_matching_node_addr | 21 | int next_matching_node_addr( const char ** const ibufpp )
{
const bool forward = ( **ibufpp == '/' );
const regex_t * const exp = get_compiled_regex( ibufpp );
int addr = current_addr();
if( !exp ) return -1;
do {
addr = ( forward ? inc_addr( addr ) : dec_addr( addr ) );
if( addr )
{
con... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
tmux#server-fn_prep#server_status_session_group.c | tmux | server-fn.c | server_status_session_group | 11 | void
server_status_session_group(struct session *s)
{
struct session_group *sg;
if ((sg = session_group_contains(s)) == ((void *)0))
server_status_session(s);
else {
for((s) = ((&sg->sessions)->tqh_first); (s) != ((void *)0); (s) = ((s)->gentry.tqe_next))
server_status_session(s);
}
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 0,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 2,... |
libosip2-5.3.1#osip_www_authenticate_prep#osip_www_authenticate_get_targetname.c | libosip2-5.3.1 | osip_www_authenticate.c | osip_www_authenticate_get_targetname | 3 | char *osip_www_authenticate_get_targetname(osip_www_authenticate_t *www_authenticate) {
return www_authenticate->targetname;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
screen-4.9.0#encoding_prep#EncodeChar.c | screen-4.9.0 | encoding.c | EncodeChar | 167 | int
EncodeChar(bp, c, encoding, fontp)
char *bp;
int c;
int encoding;
int *fontp;
{
int t, f, l;
do {} while (0);
if (c == -1 && fontp)
{
if (*fontp == 0)
return 0;
if (bp)
{
*bp++ = 033;
*bp++ = '(';
*bp++ = 'B';
}
return 3;
}
f = (c >> 16) & 0xff;
if (encoding == 8)
... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 36,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 11,
"struct_type": 0,
"switch_statement": 0,
"type_casting": ... |
mtools-4.0.43#misc_prep#str_to_offset_with_end.c | mtools-4.0.43 | misc.c | str_to_offset_with_end | 19 | off_t str_to_offset_with_end(const char *str, char **endp) {
char s;
off_t ofs;
*endp = ((void *)0);
ofs = strtol(str, endp, 0);
s = **endp;
if (s == 's' || s == 'S')
ofs <<= 9;
else if (s == 'k' || s == 'K')
ofs <<= 10;
else if (s == 'm' || s == 'M')
ofs <<= 20;
else if (s == 'g' || s == 'G')
ofs <<= ... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tulipindicators-0.9.1#candles_prep#tc_engulfing_bear.c | tulipindicators-0.9.1 | candles.c | tc_engulfing_bear | 5 | int tc_engulfing_bear(int size, TC_REAL const *const *inputs, tc_config const *options, tc_result *output) {
const TC_REAL *open = inputs[0]; const TC_REAL *high = inputs[1]; const TC_REAL *low = inputs[2]; const TC_REAL *close = inputs[3]; const int period = options->period; const TC_REAL div = 1.0 / period; T... | {
"array_type": 3,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 4,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
enscript-1.6.6#strhash_prep#strhash_get.c | enscript-1.6.6 | strhash.c | strhash_get | 25 | int
strhash_get (StringHashPtr hash, const char *key, int keylen, void **data)
{
HashList *list;
int pos, cmp_val;
if (!hash || !key || keylen <= 0 || !data)
return 0;
*data = ((void *)0);
pos = count_hash (key, keylen);
for (list = hash->hash_table[pos]; list; list = list->next)
if (list->keylen ==... | {
"array_type": 1,
"break_continue_statement": 2,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tmux#xmalloc_prep#xmalloc.c | tmux | xmalloc.c | xmalloc | 12 | void *
xmalloc(size_t size)
{
void *ptr;
if (size == 0)
fatalx("xmalloc: zero size");
ptr = malloc(size);
if (ptr == ((void *)0))
fatalx("xmalloc: allocating %zu bytes: %s",
size, strerror((*__errno_location ())));
return ptr;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tulipindicators-0.9.1#tiamalgamation_prep#ti_fisher_start.c | tulipindicators-0.9.1 | tiamalgamation.c | ti_fisher_start | 3 | int ti_fisher_start(double const *options) {
return (int)options[0]-1;
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#FIND_EQUAL_POINT_STRING_BRACKETS_prep#min.c | transcoder-set | FIND_EQUAL_POINT_STRING_BRACKETS.c | min | 1 | int min(int x, int y) { return (x < y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#libxml2-py_prep#libxml_xmlReaderForDoc.c | libxml2 | libxml2-py.c | libxml_xmlReaderForDoc | 14 | PyObject *
libxml_xmlReaderForDoc(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
xmlTextReaderPtr c_retval;
xmlChar * cur;
char * URL;
char * encoding;
int options;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"zzzi:xmlReaderForDoc", &cur, &URL, &encoding, ... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
libxml2#xmlunicode_prep#xmlUCSIsSupplementaryPrivateUseAreaA.c | libxml2 | xmlunicode.c | xmlUCSIsSupplementaryPrivateUseAreaA | 4 | int
xmlUCSIsSupplementaryPrivateUseAreaA(int code) {
return(((code >= 0xF0000) && (code <= 0xFFFFF)));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
nettle-3.9.1#ecc-size_prep#nettle_ecc_size.c | nettle-3.9.1 | ecc-size.c | nettle_ecc_size | 5 | mp_size_t
nettle_ecc_size (const struct ecc_curve *ecc)
{
return ecc->p.size;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
cflow-1.7#wordsplit_prep#wordsplit_free_envbuf.c | cflow-1.7 | wordsplit.c | wordsplit_free_envbuf | 15 | void
wordsplit_free_envbuf (struct wordsplit *ws)
{
if (!(ws->ws_flags & 0x00080000))
return;
if (ws->ws_envbuf)
{
size_t i;
for (i = 0; ws->ws_envbuf[i]; i++)
free (ws->ws_envbuf[i]);
free (ws->ws_envbuf);
ws->ws_envidx = ws->ws_envsiz = 0;
ws->ws_envbuf = ((void *)0);
}
... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#CHECK_IF_A_NUMBER_IS_JUMBLED_OR_NOT_prep#max.c | transcoder-set | CHECK_IF_A_NUMBER_IS_JUMBLED_OR_NOT.c | max | 1 | int max(int x, int y) { return (x > y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
findutils-4.9.0#fstype_prep#is_used_fs_type.c | findutils-4.9.0 | fstype.c | is_used_fs_type | 26 | _Bool
is_used_fs_type(const char *name)
{
if (0 == strcmp("afs", name))
{
return 1;
}
else
{
const struct mount_entry *entries = get_file_system_list(0);
if (entries)
{
const struct mount_entry *entry;
for (entry = entries; entry; entry = entry->me_next)
{
if (0 == s... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 4,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#QUERIES_COUNTS_ARRAY_ELEMENTS_VALUES_GIVEN_RANGE_prep#main.c | transcoder-set | QUERIES_COUNTS_ARRAY_ELEMENTS_VALUES_GIVEN_RANGE.c | main | 27 | int main(void) {
int n_success = 0;
int param0_0[] = {9,16,19,24,36,38,42,49,51,53,53,57,57,58,71,78,78,92,92,93};
int param0_1[] = {28,-74,-18,10,26,28,-96,-80,82,94,22,50,72,-90,76,50,20,-44,-80};
int param0_2[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
int param0_... | {
"array_type": 4,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libzahl-1.0#zrsh_prep#zrsh.c | libzahl-1.0 | zrsh.c | zrsh | 34 | void
zrsh(z_t a, z_t b, size_t bits)
{
size_t i, chars, cbits;
if (!bits) {
do { if ((a) != (b)) zset(a, b); } while (0);
return;
}
chars = ((bits) >> 5);
if (zzero(b) || chars >= b->used || zbits(b) <= bits) {
((a)->sign = (0));
return;
}
bits = ((bits) & (32 - 1));
cbits = 32 - bits;
if (chars && a =... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 7,
"memory_management": 0,
"memory_operation": 2,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#FIND_THE_FIRST_MISSING_NUMBER_prep#f_filled.c | transcoder-set | FIND_THE_FIRST_MISSING_NUMBER.c | f_filled | 1 | int f_filled ( int array [ ], int start, int end ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
diffutils-3.10#dtotimespec_prep#dtotimespec.c | diffutils-3.10 | dtotimespec.c | dtotimespec | 23 | struct timespec
dtotimespec (double sec)
{
if (! (((time_t) ~ ((time_t) (! (! ((time_t) 0 < (time_t) -1)) ? (time_t) -1 : ((((time_t) 1 << ((sizeof (time_t) * 8) - 2)) - 1) * 2 + 1)))) < sec))
return make_timespec (((time_t) ~ ((time_t) (! (! ((time_t) 0 < (time_t) -1)) ? (time_t) -1 : ((((time_t) 1 << ((sizeof (... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
lodepng#lodepng_prep#lodepng_get_raw_size.c | lodepng | lodepng.c | lodepng_get_raw_size | 3 | size_t lodepng_get_raw_size(unsigned w, unsigned h, const LodePNGColorMode* color) {
return lodepng_get_raw_size_lct(w, h, color->colortype, color->bitdepth);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
gprolog-1.5.0#c_supp_prep#Pl_Rd_Boolean_Check.c | gprolog-1.5.0 | c_supp.c | Pl_Rd_Boolean_Check | 13 | int
Pl_Rd_Boolean_Check(WamWord start_word)
{
WamWord word, tag_mask;
int atom;
do { WamWord deref_last_word; word = start_word; ; do { ; deref_last_word = word; tag_mask = ((PlLong) (word) & ((PlULong)0x7)); if (tag_mask != (PlULong)0) break; word = *(((WamWord *) (word))); } while (word != deref_last_word); } w... | {
"array_type": 0,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#allow_simplified_json_prep#json_get_key_size.c | json.h | allow_simplified_json.c | json_get_key_size | 31 | int json_get_key_size(struct json_parse_state_s *state) {
const size_t flags_bitset = state->flags_bitset;
if (json_parse_flags_allow_unquoted_keys & flags_bitset) {
size_t offset = state->offset;
const size_t size = state->size;
const char *const src = state->src;
size_t data_size = state->data_siz... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 4,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 2,... |
nano-7.2#prompt_prep#do_statusbar_delete.c | nano-7.2 | prompt.c | do_statusbar_delete | 10 | void do_statusbar_delete(void)
{
if (answer[typing_x] != '\0') {
int charlen = char_length(answer + typing_x);
memmove(answer + typing_x, answer + typing_x + charlen,
strlen(answer) - typing_x - charlen + 1);
if (is_zerowidth(answer + typing_x))
do_statusbar_delete();
}
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 1,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
gawk-5.2.2#re_prep#refree.c | gawk-5.2.2 | re.c | refree | 17 | void
refree(Regexp *rp)
{
if (rp == ((void *)0))
return;
rp->pat.translate = ((void *)0);
regfree(& rp->pat);
if (rp->regs.start)
pma_free(rp->regs.start);
if (rp->regs.end)
pma_free(rp->regs.end);
if (rp->dfareg != ((void *)0)) {
dfafree(rp->dfareg);
pma_free(rp->dfareg);
}
pma_free(rp);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
wget-1.21.4#convert_prep#register_download.c | wget-1.21.4 | convert.c | register_download | 27 | void
register_download (const char *url, const char *file)
{
char *old_file, *old_url;
do { if (!dl_file_url_map) dl_file_url_map = make_string_hash_table (0); if (!dl_url_file_map) dl_url_file_map = make_string_hash_table (0); } while (0);
if (hash_table_get_pair (dl_file_url_map, file, &old_file, &old_url))
... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 1,
"if_statement": 5,
"memory_management": 4,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
transcoder-set#FIND_LAST_DIGIT_FACTORIAL_DIVIDES_FACTORIAL_B_prep#f_gold.c | transcoder-set | FIND_LAST_DIGIT_FACTORIAL_DIVIDES_FACTORIAL_B.c | f_gold | 11 | int f_gold ( long long int A, long long int B ) {
int variable = 1;
if ( A == B ) return 1;
else if ( ( B - A ) >= 5 ) return 0;
else {
for ( long long int i = A + 1;
i <= B;
i ++ ) variable = ( variable * ( i % 10 ) ) % 10;
return variable % 10;
}
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#parser_prep#xmlParseContent.c | libxml2 | parser.c | xmlParseContent | 9 | void
xmlParseContent(xmlParserCtxtPtr ctxt) {
if ((ctxt == ((void *)0)) || (ctxt->input == ((void *)0)))
return;
xmlCtxtInitializeLate(ctxt);
xmlParseContentInternal(ctxt);
if (ctxt->input->cur < ctxt->input->end)
xmlFatalErr(ctxt, XML_ERR_NOT_WELL_BALANCED, ((void *)0));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
nettle-3.9.1#der-iterator_prep#nettle_asn1_der_iterator_next.c | nettle-3.9.1 | der-iterator.c | nettle_asn1_der_iterator_next | 47 | enum asn1_iterator_result
nettle_asn1_der_iterator_next(struct asn1_der_iterator *i)
{
uint8_t tag;
if (!((i)->buffer_length - (i)->pos))
return ASN1_ITERATOR_END;
tag = ((i)->buffer[(i)->pos++]);
if (!((i)->buffer_length - (i)->pos))
return ASN1_ITERATOR_ERROR;
if ( (tag & TAG_MASK) == TAG_MASK)
... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 10,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 10,
"struct_type": 1,
"switch_statement": 0,
"type_casting": ... |
tinycc#tccelf_prep#put_stabs_r.c | tinycc | tccelf.c | put_stabs_r | 8 | void put_stabs_r(const char *str, int type, int other, int desc,
unsigned long value, Section *sec, int sym_index)
{
put_stabs(str, type, other, desc, value);
put_elf_reloc(symtab_section, stab_section,
stab_section->data_offset - sizeof(unsigned int),
... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
less-633#lesskey_prep#homefile.c | less-633 | lesskey.c | homefile | 13 | char * homefile(char *filename)
{
char *p;
char *pathname;
if ((p = getenv("HOME")) != ((void *)0) && *p != '\0')
pathname = mkpathname(p, filename);
else
{
fprintf(stderr, "cannot find $HOME - using current directory\n");
pathname = mkpathname(".", filename);
}
return (pathname);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
mtools-4.0.43#strtonum_prep#atou8.c | mtools-4.0.43 | strtonum.c | atou8 | 3 | uint8_t atou8(const char *str) {
return strtou8(str, 0, 0);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#allow_leading_plus_sign_prep#json_get_value_size.c | json.h | allow_leading_plus_sign.c | json_get_value_size | 94 | int json_get_value_size(struct json_parse_state_s *state,
int is_global_object) {
const size_t flags_bitset = state->flags_bitset;
const char *const src = state->src;
size_t offset;
const size_t size = state->size;
if (json_parse_flags_allow_location_information & flags_bitset) {
s... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 11,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 18,
"struct_type": 1,
"switch_statement": 1,
"type_casting": ... |
cflow-1.7#c_prep#yy_flush_buffer.c | cflow-1.7 | c.c | yy_flush_buffer | 13 | void yy_flush_buffer (YY_BUFFER_STATE b )
{
if ( ! b )
return;
b->yy_n_chars = 0;
b->yy_ch_buf[0] = 0;
b->yy_ch_buf[1] = 0;
b->yy_buf_pos = &b->yy_ch_buf[0];
b->yy_at_bol = 1;
b->yy_buffer_status = 0;
if ( b == ( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : ((void *)0)) )
yy_load_buffe... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tar-1.34#exclude_prep#new_exclude.c | tar-1.34 | exclude.c | new_exclude | 5 | struct exclude *
new_exclude (void)
{
return xzalloc (sizeof *new_exclude ());
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tulipindicators-0.9.1#benchmark_prep#vidya_option_setter.c | tulipindicators-0.9.1 | benchmark.c | vidya_option_setter | 6 | void vidya_option_setter(double period, double *options, int ti) {
(void)ti;
options[0] = period;
options[1] = period + 10;
options[2] = .2;
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libosip2-5.3.1#osip_prep#osip_get_application_context.c | libosip2-5.3.1 | osip.c | osip_get_application_context | 5 | void *osip_get_application_context(osip_t *osip) {
if (osip == ((void *)0))
return ((void *)0);
return osip->application_context;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
pth-2.0.7#pth_fork_prep#pth_atfork_push.c | pth-2.0.7 | pth_fork.c | pth_atfork_push | 12 | int pth_atfork_push(void (*prepare)(void *), void (*parent)(void *),
void (*child)(void *), void *arg)
{
if (pth_atfork_idx > 128 -1)
return ((*__errno_location ()) = (12), ((0)));
pth_atfork_list[pth_atfork_idx].prepare = prepare;
pth_atfork_list[pth_atfork_idx].parent = parent;... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 2,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
binn-3.0#binn_prep#binn_list_bool.c | binn-3.0 | binn.c | binn_list_bool | 5 | BOOL binn_list_bool(void *list, int pos) {
BOOL value;
binn_list_get(list, pos, 0x80061, &value, ((void *)0));
return value;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
patch-2.7.6#patch_prep#fatal_exit.c | patch-2.7.6 | patch.c | fatal_exit | 8 | void
fatal_exit (int sig)
{
cleanup ();
if (sig)
exit_with_signal (sig);
exit (2);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
optipng-0.7.8#tiffutil_prep#minitiff_validate_info.c | optipng-0.7.8 | tiffutil.c | minitiff_validate_info | 15 | void minitiff_validate_info(const struct minitiff_info *info_ptr)
{
if (info_ptr->width == 0 || info_ptr->height == 0)
minitiff_error(info_ptr, "Invalid image dimensions in TIFF file");
if (info_ptr->bits_per_sample == 0 || info_ptr->samples_per_pixel == 0)
minitiff_error(info_ptr, "Invalid pixe... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
nano-7.2#utils_prep#actual_x.c | nano-7.2 | utils.c | actual_x | 12 | size_t actual_x(const char *text, size_t column)
{
const char *start = text;
size_t width = 0;
while (*text != '\0') {
int charlen = advance_over(text, &width);
if (width > column)
break;
text += charlen;
}
return (text - start);
}
| {
"array_type": 0,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#SUM_SERIES_555555_N_TERMS_prep#f_filled.c | transcoder-set | SUM_SERIES_555555_N_TERMS.c | f_filled | 1 | int f_filled ( int n ) {}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
optipng-0.7.8#inffast_prep#inflate_fast.c | optipng-0.7.8 | inffast.c | inflate_fast | 211 | void inflate_fast(z_streamp strm, unsigned start) {
struct inflate_state *state;
const unsigned char *in;
const unsigned char *last;
unsigned char *out;
unsigned char *beg;
unsigned char *end;
unsigned wsize;
unsigned whave;
unsigned wnext;
unsigned char *window;
unsigned lon... | {
"array_type": 0,
"break_continue_statement": 4,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 2,
"if_statement": 25,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 11,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": ... |
libxml2#relaxng_prep#xmlRelaxNGValidatePushCData.c | libxml2 | relaxng.c | xmlRelaxNGValidatePushCData | 21 | int
xmlRelaxNGValidatePushCData(xmlRelaxNGValidCtxtPtr ctxt,
const xmlChar * data, int len __attribute__((unused)))
{
int ret = 1;
if ((ctxt == ((void *)0)) || (ctxt->elem == ((void *)0)) || (data == ((void *)0)))
return (-1);
while (*data != 0) {
if (!(((*data) =... | {
"array_type": 0,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
enscript-1.6.6#util_prep#is_ungetc.c | enscript-1.6.6 | util.c | is_ungetc | 11 | int
is_ungetc (int ch, InputStream *is)
{
if (is->unget_pos >= is->unget_alloc)
{
is->unget_alloc += 1024;
is->unget_ch = xrealloc (is->unget_ch, is->unget_alloc);
}
is->unget_ch[is->unget_pos++] = ch;
return 1;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
mcsim-6.2.0#random_prep#NormalRandom.c | mcsim-6.2.0 | random.c | NormalRandom | 18 | double NormalRandom (double dMean, double dSD)
{
double dRacine, dTemp1, dTemp2, dTemp3;
static double memGauss;
if (vbSwitchGauss) {
vbSwitchGauss = 0;
return (dMean + dSD * memGauss);
}
do {
dTemp1 = 2 * Randoms() - 1;
dTemp2 = 2 * Randoms() - 1;
dRacine = dTemp1 * dTemp1 + dTemp2 * dTem... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
grep-3.11#offtostr_prep#offtostr.c | grep-3.11 | offtostr.c | offtostr | 20 | __attribute__ ((__warn_unused_result__)) char *
offtostr (off_t i, char *buf)
{
char *p = buf + (((((sizeof (off_t) * 8) - (! ((__typeof__ (off_t)) 0 < (__typeof__ (off_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (off_t)) 0 < (__typeof__ (off_t)) -1)));
*p = 0;
if (i < 0)
{
do
*--p = '0' - i... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.