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 |
|---|---|---|---|---|---|---|
nettle-3.9.1#ctr16_prep#_nettle_ctr_crypt16.c | nettle-3.9.1 | ctr16.c | _nettle_ctr_crypt16 | 51 | void
_nettle_ctr_crypt16(const void *ctx, nettle_cipher_func *f,
nettle_fill16_func *fill, uint8_t *ctr,
size_t length, uint8_t *dst,
const uint8_t *src)
{
if (dst != src && !((uintptr_t) dst % sizeof(uint64_t)))
{
size_t blocks = length / 16u;
size_t done;
fill (ctr, blocks, (... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 1,
"if_statement": 6,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
bc-1.07.1#storage_prep#store_array.c | bc-1.07.1 | storage.c | store_array | 24 | void
store_array (int var_name)
{
bc_num *num_ptr;
long idx;
if (!check_stack(2)) return;
idx = bc_num2long (ex_stack->s_next->s_num);
if (idx < 0 || idx > 16777215 ||
(idx == 0 && !bc_is_zero(ex_stack->s_next->s_num)))
rt_error ("Array %s subscript out of bounds.", a_names[var_name]);
else
{
... | {
"array_type": 1,
"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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
nettle-3.9.1#ocb-aes128_prep#nettle_ocb_aes128_set_encrypt_key.c | nettle-3.9.1 | ocb-aes128.c | nettle_ocb_aes128_set_encrypt_key | 6 | void
nettle_ocb_aes128_set_encrypt_key (struct ocb_aes128_encrypt_key *ocb_key, const uint8_t *key)
{
nettle_aes128_set_encrypt_key (&ocb_key->encrypt, key);
nettle_ocb_set_key (&ocb_key->ocb, &ocb_key->encrypt, (nettle_cipher_func *) nettle_aes128_encrypt);
}
| {
"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,... |
tulipindicators-0.9.1#sub_prep#ti_sub.c | tulipindicators-0.9.1 | sub.c | ti_sub | 1 | int ti_sub(int size, double const *const *inputs, double const *options, double *const *outputs) { const double *in1 = inputs[0]; const double *in2 = inputs[1]; (void)options; double *output = outputs[0]; int i; for (i = 0; i < size; ++i) { output[i] = (in1[i] - in2[i]); } return 0; }
| {
"array_type": 5,
"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": 4,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#FIND_THE_ELEMENT_THAT_APPEARS_ONCE_prep#sort.c | transcoder-set | FIND_THE_ELEMENT_THAT_APPEARS_ONCE.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#SMALLEST_POWER_OF_2_GREATER_THAN_OR_EQUAL_TO_N_prep#f_gold.c | transcoder-set | SMALLEST_POWER_OF_2_GREATER_THAN_OR_EQUAL_TO_N.c | f_gold | 9 | unsigned int f_gold ( unsigned int n ) {
unsigned count = 0;
if ( n && ! ( n & ( n - 1 ) ) ) return n;
while ( n != 0 ) {
n >>= 1;
count += 1;
}
return 1 << count;
}
| {
"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,... |
nettle-3.9.1#ocb-aes128_prep#nettle_ocb_aes128_encrypt.c | nettle-3.9.1 | ocb-aes128.c | nettle_ocb_aes128_encrypt | 7 | void
nettle_ocb_aes128_encrypt(struct ocb_ctx *ctx, const struct ocb_aes128_encrypt_key *key,
size_t length, uint8_t *dst, const uint8_t *src)
{
nettle_ocb_encrypt (ctx, &key->ocb, &key->encrypt, (nettle_cipher_func *) nettle_aes128_encrypt,
length, dst, src);
}
| {
"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,... |
optipng-0.7.8#gzlib_prep#gzoffset64.c | optipng-0.7.8 | gzlib.c | gzoffset64 | 15 | off_t gzoffset64(gzFile file) {
off_t offset;
gz_statep state;
if (file == ((void *)0))
return -1;
state = (gz_statep)file;
if (state->mode != 7247 && state->mode != 31153)
return -1;
offset = lseek(state->fd, 0, 1);
if (offset == -1)
return -1;
if (state->mode ==... | {
"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": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#DYNAMIC_PROGRAMMING_SET_8_MATRIX_CHAIN_MULTIPLICATION_1_prep#main.c | transcoder-set | DYNAMIC_PROGRAMMING_SET_8_MATRIX_CHAIN_MULTIPLICATION_1.c | main | 25 | int main(void) {
int n_success = 0;
int param0_0[] = {1,4,11,17,26,33,37,51,62,70,71,73,74,74,81,82,83,90,95,98,98};
int param0_1[] = {-50,74,-8,2,-24,28,-86,34,-36,92,-70,-98};
int param0_2[] = {0,0,0,1,1,1,1};
int param0_3[] = {4,73,3,88,79,40,25,58,39,53,32,20,95,60,60,98,23,95,42,26,95,14,43,97,30,83,29,37,... | {
"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": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#FIND_MAXIMUM_PRODUCT_OF_A_TRIPLET_IN_ARRAY_prep#f_gold.c | transcoder-set | FIND_MAXIMUM_PRODUCT_OF_A_TRIPLET_IN_ARRAY.c | f_gold | 12 | int f_gold ( int arr [ ], int n ) {
if ( n < 3 ) return - 1;
int max_product = (-0x7fffffff - 1);
for ( int i = 0;
i < n - 2;
i ++ ) for ( int j = i + 1;
j < n - 1;
j ++ ) for ( int k = j + 1;
k < n;
k ++ ) max_product = max ( max_product, arr [ i ] * arr [ j ] * arr [ k ] );
return max_product;
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 3,
"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,... |
nettle-3.9.1#ecc-secp521r1_prep#nettle_get_secp_521r1.c | nettle-3.9.1 | ecc-secp521r1.c | nettle_get_secp_521r1 | 4 | const struct ecc_curve *nettle_get_secp_521r1(void)
{
return &_nettle_secp_521r1;
}
| {
"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,... |
make-4.4.1#default_prep#install_default_suffix_rules.c | make-4.4.1 | default.c | install_default_suffix_rules | 20 | void
install_default_suffix_rules ()
{
const char **s;
if (no_builtin_rules_flag)
return;
for (s = default_suffix_rules; *s != 0; s += 2)
{
struct file *f = enter_file (strcache_add (s[0]));
if (!f->cmds)
{
f->cmds = xmalloc (sizeof (struct commands));
f->cmds->file... | {
"array_type": 1,
"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": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 3,... |
findutils-4.9.0#exec_prep#impl_pred_exec.c | findutils-4.9.0 | exec.c | impl_pred_exec | 84 | _Bool
impl_pred_exec (const char *pathname,
struct stat *stat_buf,
struct predicate *pred_ptr)
{
struct exec_val *execp = &pred_ptr->args.exec_vec;
char *buf = ((void *)0);
const char *target;
_Bool result;
const _Bool local = is_exec_in_local_dir (pred_ptr->pred_func);
const... | {
"array_type": 2,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 11,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 4,
"return_statement": 1,
"struct_type": 3,
"switch_statement": 0,
"type_casting": 7... |
libxml2#pattern_prep#xmlPatternMatch.c | libxml2 | pattern.c | xmlPatternMatch | 14 | int
xmlPatternMatch(xmlPatternPtr comp, xmlNodePtr node)
{
int ret = 0;
if ((comp == ((void *)0)) || (node == ((void *)0)))
return(-1);
while (comp != ((void *)0)) {
ret = xmlPatMatch(comp, node);
if (ret != 0)
return(ret);
comp = comp->next;
}
return(ret);
}
| {
"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": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
libosip2-5.3.1#osip_via_prep#osip_via_get_host.c | libosip2-5.3.1 | osip_via.c | osip_via_get_host | 5 | char *osip_via_get_host(osip_via_t *via) {
if (via == ((void *)0))
return ((void *)0);
return via->host;
}
| {
"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,... |
transcoder-set#COUNT_TOTAL_SET_BITS_IN_ALL_NUMBERS_FROM_1_TO_N_prep#f_filled.c | transcoder-set | COUNT_TOTAL_SET_BITS_IN_ALL_NUMBERS_FROM_1_TO_N.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,... |
transcoder-set#SUM_FACTORS_NUMBER_prep#len.c | transcoder-set | SUM_FACTORS_NUMBER.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#SUM_DIVISORS_1_N_1_prep#sort.c | transcoder-set | SUM_DIVISORS_1_N_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,... |
gprolog-1.5.0#os_interf_c_prep#Pl_Select_5.c | gprolog-1.5.0 | os_interf_c.c | Pl_Select_5 | 28 | Bool
Pl_Select_5(WamWord reads_word, WamWord ready_reads_word,
WamWord writes_word, WamWord ready_writes_word,
WamWord time_out_word)
{
double time_out;
struct timeval *p, t;
fd_set read_set, write_set;
int max, n;
max = Select_Init_Set(reads_word, &read_set, 2);
Pl_Check_For_Un_List(ready_reads_word);
... | {
"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": 2,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 2,... |
tar-1.34#xheader_prep#xheader_finish.c | tar-1.34 | xheader.c | xheader_finish | 8 | void
xheader_finish (struct xheader *xhdr)
{
struct keyword_list *kp;
for (kp = keyword_override_list; kp; kp = kp->next)
code_string (kp->value, kp->pattern, xhdr);
xhdr->buffer = __extension__ ({ struct obstack *__o1 = (xhdr->stk); void *__value = (void *) __o1->object_base; if (__o1->next_free == __value) ... | {
"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": 3,
"switch_statement": 0,
"type_casting": 1,... |
uucp-1.07#chmod_prep#fsysdep_change_mode.c | uucp-1.07 | chmod.c | fsysdep_change_mode | 12 | boolean
fsysdep_change_mode (zfile, imode)
const char *zfile;
unsigned int imode;
{
if (chmod ((char *) zfile, imode) < 0)
{
ulog (LOG_ERROR, "chmod (%s): %s", zfile, strerror ((*__errno_location ())));
return (0);
}
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": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
grep-3.11#searchutils_prep#wordinit.c | grep-3.11 | searchutils.c | wordinit | 6 | void
wordinit (void)
{
for (int i = 0; i < NCHAR; i++)
sbwordchar[i] = wordchar (localeinfo.sbctowc[i]);
}
| {
"array_type": 2,
"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": 1,... |
cpio-2.14#rtapelib_prep#rmt_ioctl__.c | cpio-2.14 | rtapelib.c | rmt_ioctl__ | 55 | int
rmt_ioctl__ (int handle, unsigned long int operation, void *argument)
{
switch (operation)
{
default:
(*__errno_location ()) = 95;
return -1;
case (((1U) << (((0 +8)+8)+14)) | ((('m')) << (0 +8)) | (((1)) << 0) | ((((sizeof(struct mtop)))) << ((0 +8)+8))):
{
struct mtop *mtop = argu... | {
"array_type": 2,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 4,
"return_statement": 8,
"struct_type": 2,
"switch_statement": 1,
"type_casting": 4,... |
gawk-5.2.2#eval_prep#elem_new_to_scalar.c | gawk-5.2.2 | eval.c | elem_new_to_scalar | 12 | NODE *
elem_new_to_scalar(NODE *n)
{
if (n->type != Node_elem_new)
return n;
if (n->valref > 1) {
unref(n);
return dupnode(Nnull_string);
}
n->type = Node_val;
return n;
}
| {
"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": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json.h#allow_json5_prep#json_extract_copy_value.c | json.h | allow_json5.c | json_extract_copy_value | 81 | void json_extract_copy_value(struct json_extract_state_s *const state,
const struct json_value_s *const value) {
struct json_string_s *string;
struct json_number_s *number;
struct json_object_s *object;
struct json_array_s *array;
struct json_value_s *new_value;
memcpy(state->do... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 6,
"memory_management": 0,
"memory_operation": 11,
"pointer_type": 8,
"return_statement": 0,
"struct_type": 13,
"switch_statement": 0,
"type_casting": ... |
transcoder-set#FIND_SUM_MODULO_K_FIRST_N_NATURAL_NUMBER_prep#cmpfunc.c | transcoder-set | FIND_SUM_MODULO_K_FIRST_N_NATURAL_NUMBER.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,... |
json-c#json_util_prep#json_util_get_last_err.c | json-c | json_util.c | json_util_get_last_err | 6 | const char *json_util_get_last_err(void)
{
if (_last_err[0] == '\0')
return ((void *)0);
return _last_err;
}
| {
"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": 2,... |
buffer-0.4.0#test_prep#test_buffer_slice__end.c | buffer-0.4.0 | test.c | test_buffer_slice__end | 15 | void
test_buffer_slice__end() {
buffer_t *buf = buffer_new_with_copy("Tobi Ferret");
buffer_t *a = buffer_slice(buf, 5, -1);
equal("Tobi Ferret", (buf->data));
equal("Ferret", (a->data));
buffer_t *b = buffer_slice(buf, 5, -3);
equal("Ferr", (b->data));
buffer_t *c = buffer_slice(buf, 8, -1);
equal("ret... | {
"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": 4,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#libxml2-py_prep#libxml_xmlNewParserCtxt.c | libxml2 | libxml2-py.c | libxml_xmlNewParserCtxt | 8 | PyObject *
libxml_xmlNewParserCtxt(PyObject *self __attribute__ ((__unused__)), PyObject *args __attribute__ ((__unused__))) {
PyObject *py_retval;
xmlParserCtxtPtr c_retval;
c_retval = xmlNewParserCtxt();
py_retval = libxml_xmlParserCtxtPtrWrap((xmlParserCtxtPtr) c_retval);
return(py_retval);
}
| {
"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,... |
transcoder-set#CHECK_LARGE_NUMBER_DIVISIBLE_9_NOT_prep#len.c | transcoder-set | CHECK_LARGE_NUMBER_DIVISIBLE_9_NOT.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,... |
binn-3.0#binn_prep#binn_type.c | binn-3.0 | binn.c | binn_type | 12 | int binn_type(void *ptr) {
binn *item;
switch (binn_get_ptr_type(ptr)) {
case 1:
item = (binn*) ptr;
return item->type;
case 2:
return binn_buf_type(ptr);
default:
return -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": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 1,
"type_casting": 0,... |
libosip2-5.3.1#osip_www_authenticate_prep#osip_www_authenticate_free.c | libosip2-5.3.1 | osip_www_authenticate.c | osip_www_authenticate_free | 16 | void osip_www_authenticate_free(osip_www_authenticate_t *www_authenticate) {
if (www_authenticate == ((void *)0))
return;
{ if (www_authenticate->auth_type != ((void *)0)) { if (osip_free_func) osip_free_func(www_authenticate->auth_type); else free(www_authenticate->auth_type); } };
{ if (www_authenticate->re... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 13,
"memory_management": 12,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": ... |
cpio-2.14#tar_prep#tar_checksum.c | cpio-2.14 | tar.c | tar_checksum | 18 | unsigned int
tar_checksum (struct tar_header *tar_hdr)
{
unsigned int sum = 0;
char *p = (char *) tar_hdr;
char *q = p + 512;
int i;
while (p < tar_hdr->chksum)
sum += *p++ & 0xff;
for (i = 0; i < 8; ++i)
{
sum += ' ';
++p;
}
while (p < q)
sum += *p++ & 0xff;
return sum;
}
| {
"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": 2,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
optipng-0.7.8#pngerror_prep#png_formatted_warning.c | optipng-0.7.8 | pngerror.c | png_formatted_warning | 31 | void
png_formatted_warning(png_const_structrp png_ptr, png_warning_parameters p,
png_const_charp message)
{
size_t i = 0;
char msg[192];
while (i<(sizeof msg)-1 && *message != '\0')
{
if (p != ((void *)0) && *message == '@' && message[1] != '\0')
{
int parameter_char = *++message;
... | {
"array_type": 4,
"break_continue_statement": 1,
"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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
gprolog-1.5.0#c_supp_prep#Pl_Rd_Codes_Str_Check.c | gprolog-1.5.0 | c_supp.c | Pl_Rd_Codes_Str_Check | 25 | int
Pl_Rd_Codes_Str_Check(WamWord start_word, char *str)
{
WamWord word, tag_mask;
WamWord save_start_word;
WamWord *lst_adr;
int n = 0;
save_start_word = start_word;
for (;;)
{
do { WamWord deref_last_word; word = start_word; ; do { ; deref_last_word = word; tag_mask = ((PlLong) (word) & ((PlULon... | {
"array_type": 0,
"break_continue_statement": 2,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#FIND_A_ROTATION_WITH_MAXIMUM_HAMMING_DISTANCE_prep#cmpfunc.c | transcoder-set | FIND_A_ROTATION_WITH_MAXIMUM_HAMMING_DISTANCE.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,... |
libxml2#xmlunicode_prep#xmlUCSIsDingbats.c | libxml2 | xmlunicode.c | xmlUCSIsDingbats | 4 | int
xmlUCSIsDingbats(int code) {
return(((code >= 0x2700) && (code <= 0x27BF)));
}
| {
"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,... |
optipng-0.7.8#trees_prep#_tr_tally.c | optipng-0.7.8 | trees.c | _tr_tally | 15 | int _tr_tally(deflate_state *s, unsigned dist, unsigned lc) {
s->sym_buf[s->sym_next++] = (uch)dist;
s->sym_buf[s->sym_next++] = (uch)(dist >> 8);
s->sym_buf[s->sym_next++] = (uch)lc;
if (dist == 0) {
s->dyn_ltree[lc].fc.freq++;
} else {
s->matches++;
dist--;
;
... | {
"array_type": 3,
"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,... |
gawk-5.2.2#eval_prep#opcode2str.c | gawk-5.2.2 | eval.c | opcode2str | 8 | const char *
opcode2str(OPCODE op)
{
if (op >= Op_illegal && op < Op_final)
return optypes[(int) op].desc;
(*(set_loc("eval.c", 416), r_fatal))(gettext("unknown opcode %d"), (int) op);
return ((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": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
transcoder-set#AREA_SQUARE_CIRCUMSCRIBED_CIRCLE_prep#f_gold.c | transcoder-set | AREA_SQUARE_CIRCUMSCRIBED_CIRCLE.c | f_gold | 3 | int f_gold ( int r ) {
return ( 2 * r * r );
}
| {
"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,... |
gawk-5.2.2#msg_prep#err.c | gawk-5.2.2 | msg.c | err | 59 | void
err(_Bool isfatal, const char *s, const char *emsg, va_list argp)
{
char *file;
const char *me;
static _Bool first = 1;
static _Bool add_src_info = 0;
static long lineno_val = 0;
if (first) {
first = 0;
add_src_info = (getenv("GAWK_MSG_SRC") != ((void *)0));
if (! (do_flags & DO_TRADITIONAL)) {
NODE... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 12,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 4,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2... |
transcoder-set#PROGRAM_TO_FIND_THE_VOLUME_OF_A_TRIANGULAR_PRISM_prep#sort.c | transcoder-set | PROGRAM_TO_FIND_THE_VOLUME_OF_A_TRIANGULAR_PRISM.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,... |
dap-3.10#sbstrans_prep#findvar.c | dap-3.10 | sbstrans.c | findvar | 12 | int findvar(char *varname, char var[][127 + 1], int nvars)
{
int v;
for (v = 0; v < nvars; v++)
{
if (!linecmp(varname, var[v]))
break;
}
if (v < 512 - 1)
strcpy(var[v], varname);
return v;
}
| {
"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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#globals_prep#xmlCleanupGlobals.c | libxml2 | globals.c | xmlCleanupGlobals | 2 | void xmlCleanupGlobals(void) {
}
| {
"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#CHECK_TWO_GIVEN_CIRCLES_TOUCH_INTERSECT_prep#len.c | transcoder-set | CHECK_TWO_GIVEN_CIRCLES_TOUCH_INTERSECT.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,... |
make-4.4.1#variable_prep#merge_variable_set_lists.c | make-4.4.1 | variable.c | merge_variable_set_lists | 34 | void
merge_variable_set_lists (struct variable_set_list **setlist0,
struct variable_set_list *setlist1)
{
struct variable_set_list *to = *setlist0;
struct variable_set_list *last0 = 0;
if (!setlist1 || setlist1 == &global_setlist)
return;
if (to)
{
while (to != &global_se... | {
"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": 3,
"return_statement": 2,
"struct_type": 4,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#TOTAL_NUMBER_OF_NON_DECREASING_NUMBERS_WITH_N_DIGITS_prep#cmpfunc.c | transcoder-set | TOTAL_NUMBER_OF_NON_DECREASING_NUMBERS_WITH_N_DIGITS.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,... |
libxml2#libxml2-py_prep#libxml_xmlXPathNsLookup.c | libxml2 | libxml2-py.c | libxml_xmlXPathNsLookup | 14 | PyObject *
libxml_xmlXPathNsLookup(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
const xmlChar * c_retval;
xmlXPathContextPtr ctxt;
PyObject *pyobj_ctxt;
xmlChar * prefix;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"Oz:xmlXPathNsLookup", &pyobj_ctxt, &prefix... | {
"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": 3,... |
transcoder-set#FIND_LARGEST_PRIME_FACTOR_NUMBER_prep#min.c | transcoder-set | FIND_LARGEST_PRIME_FACTOR_NUMBER.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#osip_contact_prep#osip_message_set_contact.c | libosip2-5.3.1 | osip_contact.c | osip_message_set_contact | 17 | int osip_message_set_contact(osip_message_t *sip, const char *hvalue) {
int i;
osip_contact_t *contact;
if (hvalue == ((void *)0) || hvalue[0] == '\0')
return 0;
i = osip_contact_init(&contact);
if (i != 0)
return i;
i = osip_contact_parse(contact, hvalue);
if (i != 0) {
osip_contact_free(cont... | {
"array_type": 1,
"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": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#N_TH_TERM_SERIES_2_12_36_80_150_prep#f_gold.c | transcoder-set | N_TH_TERM_SERIES_2_12_36_80_150.c | f_gold | 3 | int f_gold ( int n ) {
return ( n * n ) + ( n * n * 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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlsave_prep#xmlBufAttrSerializeTxtContent.c | libxml2 | xmlsave.c | xmlBufAttrSerializeTxtContent | 9 | void
xmlBufAttrSerializeTxtContent(xmlOutputBufferPtr buf, xmlDocPtr doc,
const xmlChar *string)
{
int flags = (1u << 0);
if ((doc == ((void *)0)) || (doc->encoding == ((void *)0)))
flags |= (1u << 1);
xmlSerializeText(buf, string, flags);
}
| {
"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": 1,... |
transcoder-set#INTEGER_POSITIVE_VALUE_POSITIVE_NEGATIVE_VALUE_ARRAY_1_prep#main.c | transcoder-set | INTEGER_POSITIVE_VALUE_POSITIVE_NEGATIVE_VALUE_ARRAY_1.c | main | 25 | int main(void) {
int n_success = 0;
int param0_0[] = {49,98};
int param0_1[] = {82,66,-68,24,-10};
int param0_2[] = {0,0,0,0,0,0,0,1,1,1,1,1,1,1};
int param0_3[] = {56,3,18,5,20,56,47,29,60,98,60,40,42,2,54,56,91,8,93,14,31,27,61,49,23,12,71};
int param0_4[] = {-94,-94,-92,-86,-50,-48,-6,8,28,40,44,58,62,72,94}... | {
"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": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
gprolog-1.5.0#c_supp_prep#Pl_Rd_Integer_Check.c | gprolog-1.5.0 | c_supp.c | Pl_Rd_Integer_Check | 11 | PlLong
Pl_Rd_Integer_Check(WamWord start_word)
{
WamWord word, tag_mask;
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); } while (0);... | {
"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,... |
tulipindicators-0.9.1#lag_prep#ti_lag_start.c | tulipindicators-0.9.1 | lag.c | ti_lag_start | 3 | int ti_lag_start(double const *options) {
return (int)options[0];
}
| {
"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,... |
screen-4.9.0#acls_prep#AclLinkUser.c | screen-4.9.0 | acls.c | AclLinkUser | 20 | int
AclLinkUser(from, to)
char *from, *to;
{
struct acluser **u1, **u2;
struct aclusergroup **g;
if (!*(u1 = FindUserPtr(from)) && UserAdd(from, ((void *)0), u1))
return -1;
if (!*(u2 = FindUserPtr(to)) && UserAdd(to, ((void *)0), u2))
return -1;
if (*FindGroupPtr(&(*u2)->u_group, *u1, 1))
return ... | {
"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": 6,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
gprolog-1.5.0#wam2ma_prep#F_put_list.c | gprolog-1.5.0 | wam2ma.c | F_put_list | 7 | void
F_put_list(ArgVal arg[])
{
ArgVal *top = arg; PlLong a; ((a) = *((PlLong *) (top)) , (top)++);
Inst_Printf("call_c", "Pl_Put_List()");
Inst_Printf("move_ret", "X(%" "l" "d" ")", a);
}
| {
"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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
nano-7.2#winio_prep#convert_to_control.c | nano-7.2 | winio.c | convert_to_control | 16 | int convert_to_control(int kbinput)
{
if ('@' <= kbinput && kbinput <= '_')
return kbinput - '@';
if ('`' <= kbinput && kbinput <= '~')
return kbinput - '`';
if ('3' <= kbinput && kbinput <= '7')
return kbinput - 24;
if (kbinput == '?' || kbinput == '8')
return 0x7F;
if (kbinput == ' ' || kbinput == '2')
... | {
"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": 7,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
rcs-5.10.1#rcsutil_prep#redefined.c | rcs-5.10.1 | rcsutil.c | redefined | 5 | void
redefined (int c)
{
generic_warn (((void *)0), "redefinition of -%c option", c);
}
| {
"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,... |
grep-3.11#dfasearch_prep#dfawarn.c | grep-3.11 | dfasearch.c | dfawarn | 5 | void
dfawarn (char const *mesg)
{
error (0, 0, gettext("warning: %s"), mesg);
}
| {
"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,... |
tar-1.34#misc_prep#savedir_diag.c | tar-1.34 | misc.c | savedir_diag | 11 | void
savedir_diag (char const *name)
{
if (ignore_failed_read_option)
{
if ((warning_option & (0x00800000)))
savedir_warn (name);
}
else
savedir_error (name);
}
| {
"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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
gprolog-1.5.0#arith_inl_c_prep#Pl_Fct_Fast_Not.c | gprolog-1.5.0 | arith_inl_c.c | Pl_Fct_Fast_Not | 6 | WamWord
Pl_Fct_Fast_Not(WamWord x)
{
PlLong vx = ((PlLong) ((x) << 0) >> 3);
return (((PlULong) (~vx) << 3) | (PlULong)0x7);
}
| {
"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#K_NUMBERS_DIFFERENCE_MAXIMUM_MINIMUM_K_NUMBER_MINIMIZED_prep#min.c | transcoder-set | K_NUMBERS_DIFFERENCE_MAXIMUM_MINIMUM_K_NUMBER_MINIMIZED.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,... |
tinycc#tccgen_prep#gaddrof.c | tinycc | tccgen.c | gaddrof | 6 | void gaddrof(void)
{
vtop->r &= ~0x0100;
if ((vtop->r & 0x003f) == 0x0031)
vtop->r = (vtop->r & ~(0x003f | (0x1000 | 0x2000 | 0x4000))) | 0x0032 | 0x0100;
}
| {
"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": 1,... |
heman#vec2_prep#kmVec2Normalize.c | heman | vec2.c | kmVec2Normalize | 12 | kmVec2* kmVec2Normalize(kmVec2* pOut, const kmVec2* pIn)
{
if (!pIn->x && !pIn->y)
return kmVec2Assign(pOut, pIn);
float l = 1.0f / kmVec2Length(pIn);
kmVec2 v;
v.x = pIn->x * l;
v.y = pIn->y * l;
pOut->x = v.x;
pOut->y = v.y;
return pOut;
}
| {
"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,... |
gprolog-1.5.0#c_supp_prep#Pl_Mk_In_Code.c | gprolog-1.5.0 | c_supp.c | Pl_Mk_In_Code | 5 | WamWord
Pl_Mk_In_Code(int value)
{
return Pl_Put_Integer(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": 0,... |
libxml2#debugXML_prep#xmlDebugDumpOneNode.c | libxml2 | debugXML.c | xmlDebugDumpOneNode | 11 | void
xmlDebugDumpOneNode(FILE * output, xmlNodePtr node, int depth)
{
xmlDebugCtxt ctxt;
if (output == ((void *)0)) return;
xmlCtxtDumpInitCtxt(&ctxt);
ctxt.output = output;
ctxt.depth = depth;
xmlCtxtDumpOneNode(&ctxt, node);
xmlCtxtDumpCleanCtxt(&ctxt);
}
| {
"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,... |
transcoder-set#WRITE_A_C_PROGRAM_TO_FIND_THE_PARITY_OF_AN_UNSIGNED_INTEGER_prep#f_filled.c | transcoder-set | WRITE_A_C_PROGRAM_TO_FIND_THE_PARITY_OF_AN_UNSIGNED_INTEGER.c | f_filled | 1 | _Bool f_filled ( unsigned 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,... |
tulipindicators-0.9.1#sin_prep#ti_sin.c | tulipindicators-0.9.1 | sin.c | ti_sin | 1 | int ti_sin(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] = (sin(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,... |
binn-3.0#binn_prep#binn_map_get_value.c | binn-3.0 | binn.c | binn_map_get_value | 13 | BOOL binn_map_get_value(void* ptr, int id, binn *value) {
int type, count, size=0, header_size;
unsigned char *p;
ptr = binn_ptr(ptr);
if ((ptr == 0) || (value == 0)) return 0;
if (IsValidBinnHeader(ptr, &type, &count, &size, &header_size) == 0) return 0;
if (type != 0xE1) return 0;
if (count == 0) return... | {
"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": 6,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#GCD_ELEMENTS_GIVEN_RANGE_prep#f_filled.c | transcoder-set | GCD_ELEMENTS_GIVEN_RANGE.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,... |
indent-2.2.13#output_prep#count_columns.c | indent-2.2.13 | output.c | count_columns | 26 | int count_columns (
int column,
char *bp,
int stop_char)
{
while (*bp != stop_char && *bp != '\0')
{
switch (*bp++)
{
case '\n':
case '\f':
column = 1;
break;
case '\t':
column += settings.tabsize - (column - 1) % settings.t... | {
"array_type": 0,
"break_continue_statement": 4,
"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": 1,
"type_casting": 0,... |
libxml2#buf_prep#xmlBufferCreateStatic.c | libxml2 | buf.c | xmlBufferCreateStatic | 6 | xmlBufferPtr
xmlBufferCreateStatic(void *mem, size_t size) {
xmlBufferPtr buf = xmlBufferCreateSize(size);
xmlBufferAdd(buf, mem, size);
return(buf);
}
| {
"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,... |
ed-1.19#main_loop_prep#unmark_line_node.c | ed-1.19 | main_loop.c | unmark_line_node | 7 | void unmark_line_node( const line_t * const lp )
{
int i;
for( i = 0; markno && i < 26; ++i )
if( mark[i] == lp )
{ mark[i] = 0; --markno; }
}
| {
"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,... |
transcoder-set#PROGRAM_OCTAL_DECIMAL_CONVERSION_prep#f_gold.c | transcoder-set | PROGRAM_OCTAL_DECIMAL_CONVERSION.c | f_gold | 13 | int f_gold ( int n ) {
int num = n;
int dec_value = 0;
int base = 1;
int temp = num;
while ( temp ) {
int last_digit = temp % 10;
temp = temp / 10;
dec_value += last_digit * base;
base = base * 8;
}
return dec_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": 0,... |
tar-1.34#rmt_prep#xalloc_die.c | tar-1.34 | rmt.c | xalloc_die | 6 | void
xalloc_die (void)
{
rmt_error (12);
exit (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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
mcsim-6.2.0#mh_prep#SetFixedVars.c | mcsim-6.2.0 | mh.c | SetFixedVars | 12 | void SetFixedVars (PLEVEL plevel)
{
long n;
PVARMOD pFVar;
for (n = 0; n < plevel->nFixedVars; n++) {
pFVar = plevel->rgpFixedVars[n];
if (IsInput (pFVar->hvar))
SetInput (pFVar->hvar, pFVar->uvar.pifn);
else
SetVar (pFVar->hvar, pFVar->uvar.dVal);
}
}
| {
"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,... |
optipng-0.7.8#trees_prep#_tr_stored_block.c | optipng-0.7.8 | trees.c | _tr_stored_block | 10 | void _tr_stored_block(deflate_state *s, charf *buf,
ulg stored_len, int last) {
{ int len = 3; if (s->bi_valid > (int)16 - len) { int val = (int)(0<<1) + last; s->bi_buf |= (ush)val << s->bi_valid; { {s->pending_buf[s->pending++] = (Bytef)((uch)((s->bi_buf) & 0xff));}; {s->pendin... | {
"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": 1,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#globals_prep#xmlThrDefBufferAllocScheme.c | libxml2 | globals.c | xmlThrDefBufferAllocScheme | 4 | xmlBufferAllocationScheme
xmlThrDefBufferAllocScheme(xmlBufferAllocationScheme v __attribute__((unused))) {
return xmlBufferAllocScheme;
}
| {
"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,... |
wget-1.21.4#utils_prep#vec_append.c | wget-1.21.4 | utils.c | vec_append | 17 | char **
vec_append (char **vec, const char *str)
{
int cnt;
if (vec != ((void *)0))
{
for (cnt = 0; vec[cnt]; cnt++)
;
++cnt;
}
else
cnt = 1;
vec = xrealloc (vec, (cnt + 1) * sizeof (char *));
vec[cnt - 1] = xstrdup (str);
vec[cnt] = ((void *)0);
return vec;
}
| {
"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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
uucp-1.07#prote_prep#festart.c | uucp-1.07 | prote.c | festart | 14 | boolean
festart (qdaemon, pzlog)
struct sdaemon *qdaemon;
char **pzlog;
{
*pzlog = ((void *)0);
if (! fconn_set (qdaemon->qconn, PARITYSETTING_NONE,
STRIPSETTING_EIGHTBITS, XONXOFF_OFF))
return (0);
zEbuf = (char *) xmalloc (((16384) / 2));
fEfile = (0);
usysdep_sleep (2);
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": 2,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 2,... |
tmux#colour_prep#colour_find_rgb.c | tmux | colour.c | colour_find_rgb | 24 | int
colour_find_rgb(u_char r, u_char g, u_char b)
{
static const int q2c[6] = { 0x00, 0x5f, 0x87, 0xaf, 0xd7, 0xff };
int qr, qg, qb, cr, cg, cb, d, idx;
int grey_avg, grey_idx, grey;
qr = colour_to_6cube(r); cr = q2c[qr];
qg = colour_to_6cube(g); cg = q2c[qg];
qb = colour_to_6cube(b); cb = q2c[qb];
if (cr == r ... | {
"array_type": 1,
"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": 0,... |
nettle-3.9.1#ecc-secp384r1_prep#nettle_get_secp_384r1.c | nettle-3.9.1 | ecc-secp384r1.c | nettle_get_secp_384r1 | 4 | const struct ecc_curve *nettle_get_secp_384r1(void)
{
return &_nettle_secp_384r1;
}
| {
"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,... |
tmux#session_prep#session_detach.c | tmux | session.c | session_detach | 18 | int
session_detach(struct session *s, struct winlink *wl)
{
if (s->curw == wl &&
session_last(s) != 0 &&
session_previous(s, 0) != 0)
session_next(s, 0);
wl->flags &= ~(0x1|0x2|0x4);
notify_session_window("window-unlinked", s, wl->window);
winlink_stack_remove(&s->lastw, wl);
winlink_remove(&s->windows... | {
"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": 2,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#FIND_THE_MISSING_NUMBER_1_prep#sort.c | transcoder-set | FIND_THE_MISSING_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,... |
nettle-3.9.1#base64-decode_prep#nettle_base64_decode_final.c | nettle-3.9.1 | base64-decode.c | nettle_base64_decode_final | 5 | int
nettle_base64_decode_final(struct base64_decode_ctx *ctx)
{
return ctx->bits == 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,... |
gawk-5.2.2#regex_prep#re_match.c | gawk-5.2.2 | regex.c | re_match | 6 | regoff_t
re_match (struct re_pattern_buffer *bufp, const char *string, Idx length,
Idx start, struct re_registers *regs)
{
return re_search_stub (bufp, string, length, start, 0, length, regs, 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": 2,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#WRITE_A_C_PROGRAM_TO_FIND_THE_PARITY_OF_AN_UNSIGNED_INTEGER_prep#max.c | transcoder-set | WRITE_A_C_PROGRAM_TO_FIND_THE_PARITY_OF_AN_UNSIGNED_INTEGER.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,... |
less-633#ifile_prep#getoff_ifile.c | less-633 | ifile.c | getoff_ifile | 9 | void* getoff_ifile(void* ifile)
{
void* newifile;
if ((newifile = prev_ifile(ifile)) != ((void*)((void *)0)))
return (newifile);
if ((newifile = next_ifile(ifile)) != ((void*)((void *)0)))
return (newifile);
return (((void*)((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": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
patch-2.7.6#fd-safer_prep#fd_safer.c | patch-2.7.6 | fd-safer.c | fd_safer | 13 | int
fd_safer (int fd)
{
if (0 <= fd && fd <= 2)
{
int f = dup_safer (fd);
int e = (*__errno_location ());
close (fd);
(*__errno_location ()) = e;
fd = f;
}
return fd;
}
| {
"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,... |
libosip2-5.3.1#osip_www_authenticate_prep#osip_www_authenticate_set_nonce.c | libosip2-5.3.1 | osip_www_authenticate.c | osip_www_authenticate_set_nonce | 3 | void osip_www_authenticate_set_nonce(osip_www_authenticate_t *www_authenticate, char *nonce) {
www_authenticate->nonce = (char *) nonce;
}
| {
"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#layout_prep#layout_fix_offsets.c | tmux | layout.c | layout_fix_offsets | 25 | void
layout_fix_offsets(struct layout_cell *lc)
{
struct layout_cell *lcchild;
u_int xoff, yoff;
if (lc->type == LAYOUT_LEFTRIGHT) {
xoff = lc->xoff;
for((lcchild) = ((&lc->cells)->tqh_first); (lcchild) != ((void *)0); (lcchild) = ((lcchild)->entry.tqe_next)) {
lcchild->xoff = xoff;
lcchild->yoff = lc->yof... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 0,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 2,... |
less-633#main_prep#skipsp.c | less-633 | main.c | skipsp | 6 | char * skipsp(char *s)
{
while (*s == ' ' || *s == '\t')
s++;
return (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,... |
optipng-0.7.8#ratio_prep#opng_ulratio_to_factor_string.c | optipng-0.7.8 | ratio.c | opng_ulratio_to_factor_string | 8 | int
opng_ulratio_to_factor_string(char *buffer, size_t buffer_size,
const struct opng_ulratio *ratio)
{
opng_uxlong_impl_t num = ratio->num;
opng_uxlong_impl_t denom = ratio->denom;
return opng_sprint_uratio_impl(buffer, buffer_size, num, denom, 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,... |
brotli-1.0.9#cluster_prep#BrotliCompareAndPushToQueueDistance.c | brotli-1.0.9 | cluster.c | BrotliCompareAndPushToQueueDistance | 4 | __attribute__ ((visibility ("hidden"))) void BrotliCompareAndPushToQueueDistance(
const HistogramDistance* out, const uint32_t* cluster_size, uint32_t idx1,
uint32_t idx2, size_t max_num_pairs, HistogramPair* pairs,
size_t* num_pairs) { int is_good_pair = 0; HistogramPair p; p.idx1 = p.idx2 = 0; p.cost_diff... | {
"array_type": 3,
"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#lex_prep#GetOptPunct.c | mcsim-6.2.0 | lex.c | GetOptPunct | 10 | int GetOptPunct (PINPUTBUF pibIn, PSTR szLex, char chPunct)
{
int iReturn, iType;
iReturn = SkipWhitespace (pibIn);
if (NextChar (pibIn) == chPunct) {
iReturn = 1;
NextLex (pibIn, szLex, &iType);
}
return (iReturn);
}
| {
"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,... |
transcoder-set#LARGEST_SUBARRAY_WITH_EQUAL_NUMBER_OF_0S_AND_1S_prep#main.c | transcoder-set | LARGEST_SUBARRAY_WITH_EQUAL_NUMBER_OF_0S_AND_1S.c | main | 25 | int main(void) {
int n_success = 0;
int param0_0[] = {56,8,67,35,19,82,81,66,10,24,82,2,42,48,18,63,48,74,60,64,64,95,95,20,95,55,63,96,54};
int param0_1[] = {78,67,1,78,48,83,17,19,21,44,99,68,16,54,9};
int param0_2[] = {3,69,97,21,12,67,45,53,77,70,26,43};
int param0_3[] = {21,80,29,22,77,64,42,4,71,75,62,27,... | {
"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": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
lil#lil_prep#lil_set_error_at.c | lil | lil.c | lil_set_error_at | 8 | void lil_set_error_at(lil_t lil, size_t pos, const char* msg)
{
if (lil->error) return;
free(lil->err_msg);
lil->error = 1;
lil->err_head = pos;
lil->err_msg = strclone(msg ? msg : "");
}
| {
"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": 0,... |
cpio-2.14#copyout_prep#to_ascii_or_error.c | cpio-2.14 | copyout.c | to_ascii_or_error | 12 | int
to_ascii_or_error (char *where, uintmax_t n, size_t digits,
unsigned logbase,
const char *filename, const char *fieldname)
{
if (to_ascii (where, n, digits, logbase, 0))
{
field_width_error (filename, fieldname, n, digits, 0);
return 1;
}
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": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
heman#points_prep#heman_points_from_grid.c | heman | points.c | heman_points_from_grid | 24 | heman_points* heman_points_from_grid(float width, float height,
float cellsize, float jitter)
{
int cols = width / cellsize;
int rows = height / cellsize;
int ncells = cols * rows;
heman_points* result = heman_image_create(ncells, 1, 2);
float rscale = 2.0 * jitter / (float) 2147483647;
int ... | {
"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": 0,
"pointer_type": 0,
"return_statement": 1,
"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.