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 |
|---|---|---|---|---|---|---|
libxml2#libxml2-py_prep#libxml_xmlIsBlankNode.c | libxml2 | libxml2-py.c | libxml_xmlIsBlankNode | 13 | PyObject *
libxml_xmlIsBlankNode(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
xmlNode * node;
PyObject *pyobj_node;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"O:xmlIsBlankNode", &pyobj_node))
return(((void *)0));
node = (xmlNode *) ((... | {
"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,... |
tmux#window_prep#window_pane_tree_RB_PREV.c | tmux | window.c | window_pane_tree_RB_PREV | 1 | struct window_pane * window_pane_tree_RB_PREV(struct window_pane *elm) { if ((elm)->tree_entry.rbe_left) { elm = (elm)->tree_entry.rbe_left; while ((elm)->tree_entry.rbe_right) elm = (elm)->tree_entry.rbe_right; } else { if ((elm)->tree_entry.rbe_parent && (elm == ((elm)->tree_entry.rbe_parent)->tree_entry.rbe_right)) ... | {
"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": 1,
"switch_statement": 0,
"type_casting": 0,... |
less-633#mark_prep#unmark.c | less-633 | mark.c | unmark | 7 | void unmark(void* ifile)
{
int i;
for (i = 0; i < ((2*26)+2); i++)
if (marks[i].m_ifile == ifile)
marks[i].m_scrpos.pos = ((POSITION)(-1));
}
| {
"array_type": 1,
"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": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
gprolog-1.5.0#write_c_prep#Pl_Display_1.c | gprolog-1.5.0 | write_c.c | Pl_Display_1 | 8 | void
Pl_Display_1(WamWord term_word)
{
(pl_sys_var[0]) = 2;
(pl_sys_var[1]) = -1;
(pl_sys_var[2]) = 1200;
Pl_Write_Term_2(((PlLong) (0) + ((PlULong)0)), term_word);
}
| {
"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": 0,... |
transcoder-set#MAKING_ELEMENTS_OF_TWO_ARRAYS_SAME_WITH_MINIMUM_INCREMENTDECREMENT_prep#main.c | transcoder-set | MAKING_ELEMENTS_OF_TWO_ARRAYS_SAME_WITH_MINIMUM_INCREMENTDECREMENT.c | main | 36 | int main(void) {
int n_success = 0;
int param0_0[] = {1,6,6,7,10,11,13,18,19,19,19,31,34,37,37,40,41,41,47,47,53,54,55,55,56,56,60,60,62,62,66,73,75,76,78,81,81,85,88,90,91,92,93,95,97,98};
int param0_1[] = {-12,-6,78,62,86,-32};
int param0_2[] = {0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1};
int param0_3[] = {76,74};
... | {
"array_type": 3,
"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": 2,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#FIND_THE_MINIMUM_DISTANCE_BETWEEN_TWO_NUMBERS_prep#min.c | transcoder-set | FIND_THE_MINIMUM_DISTANCE_BETWEEN_TWO_NUMBERS.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,... |
libosip2-5.3.1#sdp_accessor_prep#sdp_message_m_port_get.c | libosip2-5.3.1 | sdp_accessor.c | sdp_message_m_port_get | 6 | char *sdp_message_m_port_get(sdp_message_t *sdp, int pos_media) {
sdp_media_t *med = osip_list_get(&sdp->m_medias, pos_media);
if (med == ((void *)0))
return ((void *)0);
return med->m_port;
}
| {
"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,... |
tar-1.34#getopt1_prep#rpl_getopt_long_only.c | tar-1.34 | getopt1.c | rpl_getopt_long_only | 8 | int
rpl_getopt_long_only (int argc, char *const *argv,
const char *options,
const struct rpl_option *long_options, int *opt_index)
{
return rpl_getopt_internal (argc, (char **) argv, options, long_options,
opt_index, 1, 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": 1,
"switch_statement": 0,
"type_casting": 0,... |
json-c#json_object_prep#json_object_get_boolean.c | json-c | json_object.c | json_object_get_boolean | 19 | json_bool json_object_get_boolean(const struct json_object *jso)
{
if (!jso)
return 0;
switch (jso->o_type)
{
case json_type_boolean: return JC_BOOL_C(jso)->c_boolean;
case json_type_int:
switch (JC_INT_C(jso)->cint_type)
{
case json_object_int_type_int64: return (JC_INT_C(jso)->cint.c_int64 != 0);
case ... | {
"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": 7,
"struct_type": 1,
"switch_statement": 2,
"type_casting": 0,... |
libxml2#parserInternals_prep#xmlCtxtSetCatalogs.c | libxml2 | parserInternals.c | xmlCtxtSetCatalogs | 6 | void
xmlCtxtSetCatalogs(xmlParserCtxtPtr ctxt, void *catalogs) {
if (ctxt == ((void *)0))
return;
ctxt->catalogs = catalogs;
}
| {
"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": 1,... |
cpio-2.14#defer_prep#free_deferment.c | cpio-2.14 | defer.c | free_deferment | 6 | void
free_deferment (struct deferment *d)
{
free (d->header.c_name);
free (d);
}
| {
"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": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#PROGRAM_TO_FIND_REMAINDER_WITHOUT_USING_MODULO_OR_OPERATOR_2_prep#len.c | transcoder-set | PROGRAM_TO_FIND_REMAINDER_WITHOUT_USING_MODULO_OR_OPERATOR_2.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#FIND_MINIMUM_NUMBER_DIVIDED_MAKE_NUMBER_PERFECT_SQUARE_prep#sort.c | transcoder-set | FIND_MINIMUM_NUMBER_DIVIDED_MAKE_NUMBER_PERFECT_SQUARE.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,... |
tmux#format_prep#format_create.c | tmux | format.c | format_create | 30 | struct format_tree *
format_create(struct client *c, struct cmdq_item *item, int tag, int flags)
{
struct format_tree *ft;
if (!event_initialized(&format_job_event)) {
event_set((&format_job_event), -1, 0, (format_job_timer), (((void *)0)));
format_job_timer(-1, 0, ((void *)0));
}
ft = xcalloc(1, sizeof *ft);
... | {
"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": 1,
"return_statement": 1,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 7,... |
tar-1.34#version-etc_prep#version_etc.c | tar-1.34 | version-etc.c | version_etc | 10 | void
version_etc (FILE *stream,
const char *command_name, const char *package,
const char *version, ...)
{
va_list authors;
__builtin_va_start(authors,version);
version_etc_va (stream, command_name, package, version, authors);
__builtin_va_end(authors);
}
| {
"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#SQUARE_ROOT_OF_AN_INTEGER_prep#sort.c | transcoder-set | SQUARE_ROOT_OF_AN_INTEGER.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,... |
gprolog-1.5.0#ma2asm_inst_prep#Fail_Ret.c | gprolog-1.5.0 | ma2asm_inst.c | Fail_Ret | 6 | void
Fail_Ret(void)
{
Inst_Printf("test", "%%rax, %%rax");
Inst_Printf("je", "fail");
}
| {
"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,... |
transcoder-set#COUNT_NUMBERS_THAT_DONT_CONTAIN_3_prep#f_gold.c | transcoder-set | COUNT_NUMBERS_THAT_DONT_CONTAIN_3.c | f_gold | 9 | int f_gold ( int n ) {
if ( n < 3 ) return n;
if ( n >= 3 && n < 10 ) return n - 1;
int po = 1;
while ( n / po > 9 ) po = po * 10;
int msd = n / po;
if ( msd != 3 ) return f_gold ( msd ) * f_gold ( po - 1 ) + f_gold ( msd ) + f_gold ( n % po );
else return f_gold ( msd * po - 1 );
}
| {
"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": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#allow_no_commas_prep#json_write_get_string_size.c | json.h | allow_no_commas.c | json_write_get_string_size | 22 | int json_write_get_string_size(const struct json_string_s *string,
size_t *size) {
size_t i;
for (i = 0; i < string->string_size; i++) {
switch (string->string[i]) {
case '"':
case '\\':
case '\b':
case '\f':
case '\n':
case '\r':
case '\t':
*size... | {
"array_type": 1,
"break_continue_statement": 2,
"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": 1,
"struct_type": 1,
"switch_statement": 1,
"type_casting": 0,... |
nettle-3.9.1#eax_prep#nettle_eax_encrypt.c | nettle-3.9.1 | eax.c | nettle_eax_encrypt | 8 | void
nettle_eax_encrypt (struct eax_ctx *eax, const struct eax_key *key,
const void *cipher, nettle_cipher_func *f,
size_t length, uint8_t *dst, const uint8_t *src)
{
nettle_ctr_crypt (cipher, f, 16, eax->ctr.b, length, dst, src);
omac_update (&eax->omac_message, key, cipher, f, length, dst);
}
| {
"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,... |
findutils-4.9.0#buildcmd_prep#bc_init_state.c | findutils-4.9.0 | buildcmd.c | bc_init_state | 18 | void
bc_init_state (const struct buildcmd_control *ctl,
struct buildcmd_state *state,
void *context)
{
state->cmd_argc = 0;
state->cmd_argv_chars = 0;
state->cmd_argv = ((void *)0);
state->cmd_argv_alloc = 0;
state->largest_successful_arg_count = 0;
state->smallest_failed_arg_count = 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": 0,
"return_statement": 0,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 2,... |
transcoder-set#FIND_THE_ELEMENT_BEFORE_WHICH_ALL_THE_ELEMENTS_ARE_SMALLER_THAN_IT_AND_AFTER_WHICH_ALL_ARE_GREATER_THAN_IT_prep#max.c | transcoder-set | FIND_THE_ELEMENT_BEFORE_WHICH_ALL_THE_ELEMENTS_ARE_SMALLER_THAN_IT_AND_AFTER_WHICH_ALL_ARE_GREATER_THAN_IT.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_hexadecimal_numbers_prep#json_get_array_size.c | json.h | allow_hexadecimal_numbers.c | json_get_array_size | 49 | int json_get_array_size(struct json_parse_state_s *state) {
const size_t flags_bitset = state->flags_bitset;
size_t elements = 0;
int allow_comma = 0;
const char *const src = state->src;
const size_t size = state->size;
if ('[' != src[state->offset]) {
state->error = json_parse_error_unknown;
return... | {
"array_type": 0,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 9,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 7,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 2,... |
transcoder-set#DYNAMIC_PROGRAMMING_SET_13_CUTTING_A_ROD_prep#f_filled.c | transcoder-set | DYNAMIC_PROGRAMMING_SET_13_CUTTING_A_ROD.c | f_filled | 1 | int f_filled ( int price [ ], 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,... |
nettle-3.9.1#pkcs1-decrypt_prep#nettle_pkcs1_decrypt.c | nettle-3.9.1 | pkcs1-decrypt.c | nettle_pkcs1_decrypt | 13 | int
nettle_pkcs1_decrypt (size_t key_size,
const mpz_t m,
size_t *length, uint8_t *message)
{
uint8_t *em; size_t tmp_em_size;
int ret;
do { tmp_em_size = (key_size); (em) = _nettle_gmp_alloc(sizeof (*em) * (key_size)); } while (0);
nettle_mpz_get_str_256(key_size, em, m);
ret = _nettle_pkcs1_... | {
"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": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#allow_global_object_prep#json_write_minified_get_value_size.c | json.h | allow_global_object.c | json_write_minified_get_value_size | 28 | int json_write_minified_get_value_size(const struct json_value_s *value,
size_t *size) {
switch (value->type) {
default:
return 1;
case json_type_number:
return json_write_get_number_size((struct json_number_s *)value->payload,
s... | {
"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": 8,
"struct_type": 1,
"switch_statement": 1,
"type_casting": 4,... |
uucp-1.07#syssub_prep#_uuconf_uclear_system.c | uucp-1.07 | syssub.c | _uuconf_uclear_system | 15 | void
_uuconf_uclear_system (q)
struct uuconf_system *q;
{
do { q->uuconf_zname = (char *) &_uuconf_unset; q->uuconf_zalternate = (char *) &_uuconf_unset; q->uuconf_zdebug = (char *) &_uuconf_unset; q->uuconf_zmax_remote_debug = (char *) &_uuconf_unset; q->uuconf_zphone = (char *) &_uuconf_unset; q->uuconf_zcall_... | {
"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": 7,... |
transcoder-set#NUMBER_SUBSTRINGS_STRING_prep#f_gold.c | transcoder-set | NUMBER_SUBSTRINGS_STRING.c | f_gold | 4 | int f_gold ( char str [] ) {
int n = strlen(str);
return n * ( n + 1 ) / 2;
}
| {
"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#hmac-gosthash94_prep#nettle_hmac_gosthash94_digest.c | nettle-3.9.1 | hmac-gosthash94.c | nettle_hmac_gosthash94_digest | 6 | void
nettle_hmac_gosthash94_digest(struct hmac_gosthash94_ctx *ctx,
size_t length, uint8_t *digest)
{
nettle_hmac_digest( &(ctx)->outer, &(ctx)->inner, &(ctx)->state, (&nettle_gosthash94), (length), (digest) );
}
| {
"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,... |
tar-1.34#rtapelib_prep#rmt_close__.c | tar-1.34 | rtapelib.c | rmt_close__ | 10 | int
rmt_close__ (int handle)
{
long int status;
if (do_command (handle, "C\n") == -1)
return -1;
status = get_status (handle);
_rmt_shutdown (handle, (*__errno_location ()));
return status;
}
| {
"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,... |
cflow-1.7#basename-lgpl_prep#base_len.c | cflow-1.7 | basename-lgpl.c | base_len | 15 | size_t
base_len (char const *name)
{
size_t len;
size_t prefix_len = ((void) (name), 0);
for (len = strlen (name); 1 < len && ((name[len - 1]) == '/'); len--)
continue;
if (0 && len == 1
&& ((name[0]) == '/') && ((name[1]) == '/') && ! name[2])
return 2;
if (0 && prefix_len
&& len == prefi... | {
"array_type": 1,
"break_continue_statement": 1,
"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": 1,... |
transcoder-set#K_TH_DISTINCT_OR_NON_REPEATING_ELEMENT_IN_AN_ARRAY_prep#f_gold.c | transcoder-set | K_TH_DISTINCT_OR_NON_REPEATING_ELEMENT_IN_AN_ARRAY.c | f_gold | 14 | int f_gold ( int arr [ ], int n, int k ) {
int dist_count = 0;
for ( int i = 0;
i < n;
i ++ ) {
int j;
for ( j = 0;
j < n;
j ++ ) if ( i != j && arr [ j ] == arr [ i ] ) break;
if ( j == n ) dist_count ++;
if ( dist_count == k ) return arr [ i ];
}
return - 1;
}
| {
"array_type": 1,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
rcs-5.10.1#rcsmap_prep#checksid.c | rcs-5.10.1 | rcsmap.c | checksid | 5 | void
checksid (char const *id)
{
checkid (id, 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,... |
patch-2.7.6#filenamecat-lgpl_prep#mfile_name_concat.c | patch-2.7.6 | filenamecat-lgpl.c | mfile_name_concat | 30 | char *
mfile_name_concat (char const *dir, char const *base, char **base_in_result)
{
char const *dirbase = last_component (dir);
size_t dirbaselen = base_len (dirbase);
size_t dirlen = dirbase - dir + dirbaselen;
size_t baselen = strlen (base);
char sep = '\0';
if (dirbaselen)
{
if (! ((dir[dirle... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 3,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
transcoder-set#MAXIMUM_SUM_IARRI_AMONG_ROTATIONS_GIVEN_ARRAY_1_prep#sort.c | transcoder-set | MAXIMUM_SUM_IARRI_AMONG_ROTATIONS_GIVEN_ARRAY_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,... |
tulipindicators-0.9.1#trunc_prep#ti_trunc.c | tulipindicators-0.9.1 | trunc.c | ti_trunc | 1 | int ti_trunc(int size, double const *const *inputs, double const *options, double *const *outputs) { const double *in1 = inputs[0]; (void)options; double *output = outputs[0]; int i; for (i = 0; i < size; ++i) { output[i] = ((int)(in1[i])); } return 0; }
| {
"array_type": 4,
"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": 3,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
json-c#json_object_prep#json_object_set_string.c | json-c | json_object.c | json_object_set_string | 4 | int json_object_set_string(json_object *jso, const char *s)
{
return _json_object_set_string_len(jso, s, strlen(s));
}
| {
"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,... |
tar-1.34#suffix_prep#set_compression_program_by_suffix.c | tar-1.34 | suffix.c | set_compression_program_by_suffix | 7 | void
set_compression_program_by_suffix (const char *name, const char *defprog)
{
const char *program = find_compression_program (name, defprog);
if (program)
use_compress_program_option = program;
}
| {
"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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#allow_global_object_prep#json_extract_get_number_size.c | json.h | allow_global_object.c | json_extract_get_number_size | 7 | struct json_extract_result_s
json_extract_get_number_size(const struct json_number_s *const number) {
struct json_extract_result_s result;
result.dom_size = sizeof(struct json_number_s);
result.data_size = number->number_size;
return result;
}
| {
"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": 1,... |
libxml2#libxml2-py_prep#libxml_xmlBuildURI.c | libxml2 | libxml2-py.c | libxml_xmlBuildURI | 12 | PyObject *
libxml_xmlBuildURI(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
xmlChar * c_retval;
xmlChar * URI;
xmlChar * base;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"zz:xmlBuildURI", &URI, &base))
return(((void *)0));
c_retval = xmlBuildURI(URI,... | {
"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,... |
transcoder-set#FIND_MAXIMUM_HEIGHT_PYRAMID_FROM_THE_GIVEN_ARRAY_OF_OBJECTS_prep#sort.c | transcoder-set | FIND_MAXIMUM_HEIGHT_PYRAMID_FROM_THE_GIVEN_ARRAY_OF_OBJECTS.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,... |
tulipindicators-0.9.1#tiamalgamation_prep#ti_dema_start.c | tulipindicators-0.9.1 | tiamalgamation.c | ti_dema_start | 4 | int ti_dema_start(double const *options) {
const int period = (int)options[0];
return (period-1) * 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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#COUNT_OFDIFFERENT_WAYS_EXPRESS_N_SUM_1_3_4_prep#f_filled.c | transcoder-set | COUNT_OFDIFFERENT_WAYS_EXPRESS_N_SUM_1_3_4.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,... |
diffutils-3.10#time_prep#rpl_time.c | diffutils-3.10 | time.c | rpl_time | 12 | time_t
rpl_time (time_t *tp)
{
struct timeval tv;
time_t tt;
if (gettimeofday (&tv, ((void *)0)) < 0)
abort ();
tt = tv.tv_sec;
if (tp)
*tp = tt;
return tt;
}
| {
"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": 1,... |
transcoder-set#SUM_K_TH_GROUP_ODD_POSITIVE_NUMBERS_1_prep#f_gold.c | transcoder-set | SUM_K_TH_GROUP_ODD_POSITIVE_NUMBERS_1.c | f_gold | 3 | int f_gold ( int k ) {
return k * k * k;
}
| {
"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_xmlCatalogGetSystem.c | libxml2 | libxml2-py.c | libxml_xmlCatalogGetSystem | 11 | PyObject *
libxml_xmlCatalogGetSystem(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
const xmlChar * c_retval;
xmlChar * sysID;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"z:xmlCatalogGetSystem", &sysID))
return(((void *)0));
c_retval = xmlCatalogGetSyste... | {
"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,... |
transcoder-set#COUNTS_PATHS_POINT_REACH_ORIGIN_1_prep#main.c | transcoder-set | COUNTS_PATHS_POINT_REACH_ORIGIN_1.c | main | 15 | int main(void) {
int n_success = 0;
int param0[] = {55,74,76,6,2,36,40,14,42,62};
int param1[] = {30,15,57,90,64,1,71,56,4,12};
for(int i = 0; i < len(param0); ++i)
{
if(f_filled(param0[i],param1[i]) == f_gold(param0[i],param1[i]))
{
n_success+=1;
}
break;
}
... | {
"array_type": 2,
"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": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libosip2-5.3.1#osip_cseq_prep#osip_cseq_clone.c | libosip2-5.3.1 | osip_cseq.c | osip_cseq_clone | 20 | int osip_cseq_clone(const osip_cseq_t *cseq, osip_cseq_t **dest) {
int i;
osip_cseq_t *cs;
*dest = ((void *)0);
if (cseq == ((void *)0))
return -2;
if (cseq->method == ((void *)0))
return -2;
if (cseq->number == ((void *)0))
return -2;
i = osip_cseq_init(&cs);
if (i != 0) {
osip_cseq_fre... | {
"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": 1,
"return_statement": 5,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
tar-1.34#savedir_prep#savedir.c | tar-1.34 | savedir.c | savedir | 19 | char *
savedir (char const *dir, enum savedir_option option)
{
DIR *dirp = opendir_safer (dir);
if (! dirp)
return ((void *)0);
else
{
char *name_space = streamsavedir (dirp, option);
if (closedir (dirp) != 0)
{
int closedir_errno = (*__errno_location ());
free (nam... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 1,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
transcoder-set#MAXIMUM_SUM_SUBSEQUENCE_LEAST_K_DISTANT_ELEMENTS_prep#sort.c | transcoder-set | MAXIMUM_SUM_SUBSEQUENCE_LEAST_K_DISTANT_ELEMENTS.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,... |
transcoder-set#QUICK_WAY_CHECK_CHARACTERS_STRING_prep#max.c | transcoder-set | QUICK_WAY_CHECK_CHARACTERS_STRING.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,... |
libxml2#xmlmemory_prep#xmlMemDisplay.c | libxml2 | xmlmemory.c | xmlMemDisplay | 4 | void
xmlMemDisplay(FILE *fp __attribute__((unused)))
{
}
| {
"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#PRIMALITY_TEST_SET_1_INTRODUCTION_AND_SCHOOL_METHOD_prep#min.c | transcoder-set | PRIMALITY_TEST_SET_1_INTRODUCTION_AND_SCHOOL_METHOD.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#FIND_THE_NUMBER_OCCURRING_ODD_NUMBER_OF_TIMES_prep#f_filled.c | transcoder-set | FIND_THE_NUMBER_OCCURRING_ODD_NUMBER_OF_TIMES.c | f_filled | 1 | int f_filled ( int arr [ ], int arr_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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#MINIMUM_XOR_VALUE_PAIR_1_prep#sort.c | transcoder-set | MINIMUM_XOR_VALUE_PAIR_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,... |
transcoder-set#LARGEST_SUBARRAY_WITH_EQUAL_NUMBER_OF_0S_AND_1S_prep#sort.c | transcoder-set | LARGEST_SUBARRAY_WITH_EQUAL_NUMBER_OF_0S_AND_1S.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,... |
transcoder-set#FIND_HARMONIC_MEAN_USING_ARITHMETIC_MEAN_GEOMETRIC_MEAN_prep#sort.c | transcoder-set | FIND_HARMONIC_MEAN_USING_ARITHMETIC_MEAN_GEOMETRIC_MEAN.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,... |
brotli-1.0.9#decode_prep#BrotliDecoderGetErrorCode.c | brotli-1.0.9 | decode.c | BrotliDecoderGetErrorCode | 3 | BrotliDecoderErrorCode BrotliDecoderGetErrorCode(const BrotliDecoderStateInternal* s) {
return (BrotliDecoderErrorCode)s->error_code;
}
| {
"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-c#json_object_prep#json_object_new_double_s.c | json-c | json_object.c | json_object_new_double_s | 17 | struct json_object *json_object_new_double_s(double d, const char *ds)
{
char *new_ds;
struct json_object *jso = json_object_new_double(d);
if (!jso)
return ((void *)0);
new_ds = strdup(ds);
if (!new_ds)
{
json_object_generic_delete(jso);
(*__errno_location ()) = 12;
return ((void *)0);
}
json_object_se... | {
"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": 2,
"return_statement": 3,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 2,... |
gawk-5.2.2#regex_prep#re_set_registers.c | gawk-5.2.2 | regex.c | re_set_registers | 18 | void
re_set_registers (struct re_pattern_buffer *bufp, struct re_registers *regs,
__re_size_t num_regs, regoff_t *starts, regoff_t *ends)
{
if (num_regs)
{
bufp->regs_allocated = 1;
regs->num_regs = num_regs;
regs->start = starts;
regs->end = ends;
}
else
{
bufp->regs_a... | {
"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": 1,
"switch_statement": 0,
"type_casting": 1,... |
libosip2-5.3.1#osip_from_prep#osip_from_get_displayname.c | libosip2-5.3.1 | osip_from.c | osip_from_get_displayname | 5 | char *osip_from_get_displayname(osip_from_t *from) {
if (from == ((void *)0))
return ((void *)0);
return from->displayname;
}
| {
"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,... |
libxml2#libxml2-py_prep#libxml_xmlReaderForMemory.c | libxml2 | libxml2-py.c | libxml_xmlReaderForMemory | 15 | PyObject *
libxml_xmlReaderForMemory(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
xmlTextReaderPtr c_retval;
char * buffer;
int size;
char * URL;
char * encoding;
int options;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"zizzi:xmlReaderForMemory", &b... | {
"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,... |
transcoder-set#COUNT_EVEN_LENGTH_BINARY_SEQUENCES_WITH_SAME_SUM_OF_FIRST_AND_SECOND_HALF_BITS_1_prep#min.c | transcoder-set | COUNT_EVEN_LENGTH_BINARY_SEQUENCES_WITH_SAME_SUM_OF_FIRST_AND_SECOND_HALF_BITS_1.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,... |
findutils-4.9.0#tmpdir_prep#path_search.c | findutils-4.9.0 | tmpdir.c | path_search | 51 | int
path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
_Bool try_tmpdir)
{
const char *d;
size_t dlen, plen;
_Bool add_slash;
if (!pfx || !pfx[0])
{
pfx = "file";
plen = 4;
}
else
{
plen = strlen (pfx);
if (plen > 5)
plen = 5;
... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 9,
"memory_management": 0,
"memory_operation": 1,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 5,... |
transcoder-set#MAXIMUM_HEIGHT_OF_TRIANGULAR_ARRANGEMENT_OF_ARRAY_VALUES_1_prep#min.c | transcoder-set | MAXIMUM_HEIGHT_OF_TRIANGULAR_ARRANGEMENT_OF_ARRAY_VALUES_1.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,... |
less-633#ttyin_prep#getchr.c | less-633 | ttyin.c | getchr | 23 | int getchr(void)
{
char c;
int result;
do
{
flush();
{
unsigned char uc;
result = iread(tty, &uc, sizeof(char));
c = (char) uc;
}
if (result == (-2))
return ((-2));
if (result < 0)
{
quit(1);
}
if (c == '\0')
c = '\340';
} while (result != 1);
return (c & 0xFF);
}
| {
"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": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
transcoder-set#MINIMIZE_THE_SUM_OF_DIGITS_OF_A_AND_B_SUCH_THAT_A_B_N_prep#max.c | transcoder-set | MINIMIZE_THE_SUM_OF_DIGITS_OF_A_AND_B_SUCH_THAT_A_B_N.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,... |
libxml2#HTMLtree_prep#htmlSaveFileFormat.c | libxml2 | HTMLtree.c | htmlSaveFileFormat | 21 | int
htmlSaveFileFormat(const char *filename, xmlDocPtr cur,
const char *encoding, int format) {
xmlOutputBufferPtr buf;
xmlCharEncodingHandlerPtr handler = ((void *)0);
int ret;
if ((cur == ((void *)0)) || (filename == ((void *)0)))
return(-1);
xmlInitParser();
handler = html... | {
"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": 4,... |
heman#mat4_prep#kmMat4Scaling.c | heman | mat4.c | kmMat4Scaling | 10 | kmMat4* kmMat4Scaling(kmMat4* pOut, const float x, const float y,
float z)
{
memset(pOut->mat, 0, sizeof(float) * 16);
pOut->mat[0] = x;
pOut->mat[5] = y;
pOut->mat[10] = z;
pOut->mat[15] = 1.0f;
return pOut;
}
| {
"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": 1,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
json-c#json_util_prep#json_parse_uint64.c | json-c | json_util.c | json_parse_uint64 | 19 | int json_parse_uint64(const char *buf, uint64_t *retval)
{
char *end = ((void *)0);
uint64_t val;
(*__errno_location ()) = 0;
while (*buf == ' ')
buf++;
if (*buf == '-')
return 1;
val = strtoull(buf, &end, 10);
if (end != buf)
*retval = val;
if ((val == 0 && (*__errno_location ()) != 0) || (end == buf))
... | {
"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": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
binn-3.0#binn_prep#binn_list_int8.c | binn-3.0 | binn.c | binn_list_int8 | 5 | signed char binn_list_int8(void *list, int pos) {
signed char value;
binn_list_get(list, pos, 0x21, &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,... |
transcoder-set#LARGEST_SUM_CONTIGUOUS_SUBARRAY_2_prep#max.c | transcoder-set | LARGEST_SUM_CONTIGUOUS_SUBARRAY_2.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,... |
mtools-4.0.43#plain_io_prep#SimpleFileOpen.c | mtools-4.0.43 | plain_io.c | SimpleFileOpen | 7 | Stream_t *SimpleFileOpen(struct device *dev, struct device *orig_dev,
const char *name, int mode, char *errmsg,
int mode2, int locked, mt_off_t *maxSize) {
return SimpleFileOpenWithLm(dev, orig_dev, name, mode,
errmsg, mode2, locked, mode, maxSize,
((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": 1,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#CHECK_LARGE_NUMBER_DIVISIBLE_4_NOT_prep#f_gold.c | transcoder-set | CHECK_LARGE_NUMBER_DIVISIBLE_4_NOT.c | f_gold | 8 | _Bool f_gold ( char str [] ) {
int n = strlen(str);
if ( n == 0 ) return 0;
if ( n == 1 ) return ( ( str [ 0 ] - '0' ) % 4 == 0 );
int last = str [ n - 1 ] - '0';
int second_last = str [ n - 2 ] - '0';
return ( ( second_last * 10 + last ) % 4 == 0 );
}
| {
"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": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
gprolog-1.5.0#arith_inl_c_prep#Pl_Fct_LSB.c | gprolog-1.5.0 | arith_inl_c.c | Pl_Fct_LSB | 5 | WamWord
Pl_Fct_LSB(WamWord x)
{
if ((((PlLong) (x) & ((PlULong)0x7)) == (PlULong)0x4)) Pl_Err_Type(pl_type_integer, x); return Pl_Fct_Fast_LSB(x);
}
| {
"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,... |
uucp-1.07#jobid_prep#zsfile_to_jobid.c | uucp-1.07 | jobid.c | zsfile_to_jobid | 25 | char *
zsfile_to_jobid (qsys, zfile, bgrade)
const struct uuconf_system *qsys;
const char *zfile;
int bgrade __attribute__ ((__unused__));
{
size_t clen;
char *zret;
clen = strlen (qsys->uuconf_zname);
{
size_t cseqlen;
zfile = strrchr (zfile, '/');
if (zfile == ((void *)0)
|| zfile[... | {
"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": 2,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
json.h#allow_single_quoted_strings_prep#json_hexadecimal_value.c | json.h | allow_single_quoted_strings.c | json_hexadecimal_value | 18 | int json_hexadecimal_value(const char *c, const unsigned long size,
unsigned long *result) {
const char *p;
int digit;
if (size > sizeof(unsigned long) * 2) {
return 0;
}
*result = 0;
for (p = c; (unsigned long)(p - c) < size; ++p) {
*result <<= 4;
digit = json_hexadec... | {
"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": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
less-633#xbuf_prep#xbuf_init.c | less-633 | xbuf.c | xbuf_init | 5 | void xbuf_init(struct xbuffer *xbuf)
{
xbuf->data = ((void *)0);
xbuf->size = xbuf->end = 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": 1,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#MAKING_ELEMENTS_OF_TWO_ARRAYS_SAME_WITH_MINIMUM_INCREMENTDECREMENT_prep#min.c | transcoder-set | MAKING_ELEMENTS_OF_TWO_ARRAYS_SAME_WITH_MINIMUM_INCREMENTDECREMENT.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,... |
grep-3.11#thread_prep#gl_thread_create.c | grep-3.11 | thread.c | gl_thread_create | 10 | gl_thread_t
gl_thread_create (void *(*func) (void *arg), void *arg)
{
gl_thread_t thread;
int ret;
ret = (1 ? pthread_create (&thread, ((void *)0), func, arg) : 38);
if (ret != 0)
abort ();
return thread;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 1,
"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": 1,... |
json.h#allow_simplified_json_prep#json_parse_array.c | json.h | allow_simplified_json.c | json_parse_array | 57 | void json_parse_array(struct json_parse_state_s *state,
struct json_array_s *array) {
const char *const src = state->src;
const size_t size = state->size;
size_t elements = 0;
int allow_comma = 0;
struct json_array_element_s *previous = 0;
state->offset++;
(void)json_skip_all_skippab... | {
"array_type": 0,
"break_continue_statement": 2,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 7,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 4,
"return_statement": 0,
"struct_type": 6,
"switch_statement": 0,
"type_casting": 8,... |
transcoder-set#COUNT_FREQUENCY_K_MATRIX_SIZE_N_MATRIXI_J_IJ_prep#f_filled.c | transcoder-set | COUNT_FREQUENCY_K_MATRIX_SIZE_N_MATRIXI_J_IJ.c | f_filled | 1 | int f_filled ( int n, int k ) {}
| {
"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#DYNAMIC_PROGRAMMING_SET_8_MATRIX_CHAIN_MULTIPLICATION_prep#main.c | transcoder-set | DYNAMIC_PROGRAMMING_SET_8_MATRIX_CHAIN_MULTIPLICATION.c | main | 26 | int main(void) {
int n_success = 0;
int param0_0[] = {6,12,16,30,31,31,33,34,45,48,57,63,81,83};
int param0_1[] = {30,-78,42,-6,42,56,-38,28,-96,-96,84,-18,0,20,-56,-40,-58,-74,64,62,-22,78,10,-22,16,-48,2,14,82,-92,-64,-18,42,24,22,-50,12,-76,38,-30,-86,-58,-6,-4,10,28};
int param0_2[] = {0,0,0,0,0,0,1,1,1,1,1... | {
"array_type": 3,
"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,... |
lodepng#lodepng_prep#lodepng_compute_color_stats.c | lodepng | lodepng.c | lodepng_compute_color_stats | 151 | unsigned lodepng_compute_color_stats(LodePNGColorStats* stats,
const unsigned char* in, unsigned w, unsigned h,
const LodePNGColorMode* mode_in) {
size_t i;
ColorTree tree;
size_t numpixels = (size_t)w * (size_t)h;
unsigned error = 0;
u... | {
"array_type": 1,
"break_continue_statement": 3,
"enum_type": 0,
"for_loop": 6,
"function_pointer": 0,
"goto_statement": 2,
"if_statement": 38,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1... |
transcoder-set#PROGRAM_TO_CHECK_IF_A_GIVEN_NUMBER_IS_LUCKY_ALL_DIGITS_ARE_DIFFERENT_prep#f_filled.c | transcoder-set | PROGRAM_TO_CHECK_IF_A_GIVEN_NUMBER_IS_LUCKY_ALL_DIGITS_ARE_DIFFERENT.c | f_filled | 1 | _Bool 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,... |
heman#generate_prep#heman_generate_simplex_fbm.c | heman | generate.c | heman_generate_simplex_fbm | 29 | heman_image* heman_generate_simplex_fbm(int width, int height, float frequency,
float amplitude, int octaves, float lacunarity, float gain, int seed)
{
struct osn_context* ctx;
open_simplex_noise(seed, &ctx);
heman_image* img = heman_image_create(width, height, 1);
float* data = img->data;
float... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 1,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#CHECK_LARGE_NUMBER_DIVISIBLE_6_NOT_prep#min.c | transcoder-set | CHECK_LARGE_NUMBER_DIVISIBLE_6_NOT.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,... |
json-c#test_charcase_prep#main.c | json-c | test_charcase.c | main | 6 | int main(int argc, char **argv)
{
if (0) mc_set_debug(1);
test_case_parse();
return 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": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#test_prep#json_value_as_object.c | json.h | test.c | json_value_as_object | 6 | struct json_object_s *json_value_as_object(struct json_value_s *const value) {
if (value->type != json_type_object) {
return 0;
}
return (struct json_object_s *)value->payload;
}
| {
"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": 1,
"switch_statement": 0,
"type_casting": 1,... |
nettle-3.9.1#siv-cmac-aes128_prep#nettle_siv_cmac_aes128_decrypt_message.c | nettle-3.9.1 | siv-cmac-aes128.c | nettle_siv_cmac_aes128_decrypt_message | 11 | int
nettle_siv_cmac_aes128_decrypt_message(const struct siv_cmac_aes128_ctx *ctx,
size_t nlength, const uint8_t *nonce,
size_t alength, const uint8_t *adata,
size_t mlength, uint8_t *dst, const uint8_t *src)
{
return nettle_siv_cmac_decrypt_message(&ctx->cmac_key, &ctx->cmac_cipher,
&nettle_aes128, ... | {
"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,... |
libxml2#libxml2-py_prep#libxml_xmlValidateNMToken.c | libxml2 | libxml2-py.c | libxml_xmlValidateNMToken | 12 | PyObject *
libxml_xmlValidateNMToken(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
xmlChar * value;
int space;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"zi:xmlValidateNMToken", &value, &space))
return(((void *)0));
c_retval = xmlValid... | {
"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,... |
transcoder-set#LONGEST_REPEATING_SUBSEQUENCE_prep#min.c | transcoder-set | LONGEST_REPEATING_SUBSEQUENCE.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,... |
lodepng#lodepng_prep#lodepng_decode24.c | lodepng | lodepng.c | lodepng_decode24 | 3 | unsigned lodepng_decode24(unsigned char** out, unsigned* w, unsigned* h, const unsigned char* in, size_t insize) {
return lodepng_decode_memory(out, w, h, in, insize, LCT_RGB, 8);
}
| {
"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,... |
uucp-1.07#tmpfil_prep#zstemp_file.c | uucp-1.07 | tmpfil.c | zstemp_file | 32 | char *
zstemp_file (qsys)
const struct uuconf_system *qsys __attribute__ ((__unused__));
{
static unsigned int icount;
const char *const zdigs = "0123456789abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";
char ab[14];
pid_t ime;
int iset;
ab[0] = 'T';
ab[1] = 'M';
ab[2] = '.';
ime = getpi... | {
"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": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#HTMLtree_prep#htmlSaveFileEnc.c | libxml2 | HTMLtree.c | htmlSaveFileEnc | 4 | int
htmlSaveFileEnc(const char *filename, xmlDocPtr cur, const char *encoding) {
return(htmlSaveFileFormat(filename, cur, encoding, 1));
}
| {
"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,... |
make-4.4.1#main_prep#main.c | make-4.4.1 | main.c | main | 803 | int
main (int argc, char **argv, char **envp)
{
int makefile_status = 0;
struct goaldep *read_files;
char current_directory[4096 +1];
unsigned int restarts = 0;
unsigned int syncing = 0;
int argv_slots;
initialize_variable_output ();
;
if ((((check_io_state ())&(0x0008)) != 0))
atexit (close_stdou... | {
"array_type": 10,
"break_continue_statement": 12,
"enum_type": 2,
"for_loop": 17,
"function_pointer": 0,
"goto_statement": 2,
"if_statement": 127,
"memory_management": 6,
"memory_operation": 3,
"pointer_type": 27,
"return_statement": 0,
"struct_type": 23,
"switch_statement": 2,
"type_casti... |
transcoder-set#FIND_INDEX_GIVEN_FIBONACCI_NUMBER_CONSTANT_TIME_1_prep#sort.c | transcoder-set | FIND_INDEX_GIVEN_FIBONACCI_NUMBER_CONSTANT_TIME_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,... |
mtools-4.0.43#mtools_prep#helpFlag.c | mtools-4.0.43 | mtools.c | helpFlag | 3 | int helpFlag(int argc, char **argv) {
return (argc > 1 && !strcmp(argv[1], "--help"));
}
| {
"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,... |
make-4.4.1#commands_prep#delete_child_targets.c | make-4.4.1 | commands.c | delete_child_targets | 11 | void
delete_child_targets (struct child *child)
{
struct dep *d;
if (child->deleted || child->pid < 0)
return;
delete_target (child->file, ((void *)0));
for (d = child->file->also_make; d != 0; d = d->next)
delete_target (d->file, child->file->name);
child->deleted = 1;
}
| {
"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": 1,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#FIND_SUM_MODULO_K_FIRST_N_NATURAL_NUMBER_1_prep#sort.c | transcoder-set | FIND_SUM_MODULO_K_FIRST_N_NATURAL_NUMBER_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,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.