id stringlengths 21 132 | codebase stringclasses 57
values | c_file stringlengths 3 108 | function stringlengths 3 74 | sloc stringclasses 134
values | c_code stringlengths 25 52.1k | c_constructs dict |
|---|---|---|---|---|---|---|
transcoder-set#WRITE_A_C_PROGRAM_TO_FIND_THE_PARITY_OF_AN_UNSIGNED_INTEGER_prep#min.c | transcoder-set | WRITE_A_C_PROGRAM_TO_FIND_THE_PARITY_OF_AN_UNSIGNED_INTEGER.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#MINIMUM_NUMBER_PLATFORMS_REQUIRED_RAILWAYBUS_STATION_prep#min.c | transcoder-set | MINIMUM_NUMBER_PLATFORMS_REQUIRED_RAILWAYBUS_STATION.c | min | 1 | int min(int x, int y) { return (x < y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#libxml2-py_prep#libxml_xmlUCSIsEnclosedAlphanumerics.c | libxml2 | libxml2-py.c | libxml_xmlUCSIsEnclosedAlphanumerics | 13 | PyObject *
libxml_xmlUCSIsEnclosedAlphanumerics(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
int code;
if (libxml_deprecationWarning("xmlUCSIsEnclosedAlphanumerics") == -1)
return(((void *)0));
if (!_PyArg_ParseTuple_SizeT(args, (char *)"i... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
transcoder-set#MAXIMUM_TRIPLET_SUM_ARRAY_prep#f_filled.c | transcoder-set | MAXIMUM_TRIPLET_SUM_ARRAY.c | f_filled | 1 | int f_filled ( int arr [ ], 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,... |
dap-3.10#ps_prep#pict_rectangle.c | dap-3.10 | ps.c | pict_rectangle | 9 | void pict_rectangle(pict *p, double llx, double lly, double sx, double sy)
{
strcpy(p->pict_type, "LINE");
pict_point(p, llx, lly);
pict_point(p, llx + sx, lly);
pict_point(p, llx + sx, lly + sy);
pict_point(p, llx, lly + sy);
pict_point(p, llx, lly);
}
| {
"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,... |
json.h#allow_inf_and_nan_prep#json_get_key_size.c | json.h | allow_inf_and_nan.c | json_get_key_size | 31 | int json_get_key_size(struct json_parse_state_s *state) {
const size_t flags_bitset = state->flags_bitset;
if (json_parse_flags_allow_unquoted_keys & flags_bitset) {
size_t offset = state->offset;
const size_t size = state->size;
const char *const src = state->src;
size_t data_size = state->data_siz... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 4,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 2,... |
nettle-3.9.1#hmac-gosthash94_prep#nettle_hmac_gosthash94_update.c | nettle-3.9.1 | hmac-gosthash94.c | nettle_hmac_gosthash94_update | 6 | void
nettle_hmac_gosthash94_update(struct hmac_gosthash94_ctx *ctx,
size_t length, const uint8_t *data)
{
nettle_gosthash94_update(&ctx->state, length, data);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#PROGRAM_PRINT_SUM_GIVEN_NTH_TERM_prep#min.c | transcoder-set | PROGRAM_PRINT_SUM_GIVEN_NTH_TERM.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.h#allow_hexadecimal_numbers_prep#json_skip_all_skippables.c | json.h | allow_hexadecimal_numbers.c | json_skip_all_skippables | 31 | int json_skip_all_skippables(struct json_parse_state_s *state) {
int did_consume = 0;
const size_t size = state->size;
if (json_parse_flags_allow_c_style_comments & state->flags_bitset) {
do {
if (state->offset == size) {
state->error = json_parse_error_premature_end_of_buffer;
return 1;... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 5,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
grep-3.11#grep_prep#main.c | grep-3.11 | grep.c | main | 441 | int
main (int argc, char **argv)
{
char *keys = ((void *)0);
idx_t keycc = 0, keyalloc = 0;
int matcher = -1;
int opt;
int prev_optind, last_recursive;
intmax_t default_context;
FILE *fp;
exit_failure = EXIT_TROUBLE;
;
int filename_option = 0;
eolbyte = '\n';
filename_mask = ~0;
max_count = (9... | {
"array_type": 7,
"break_continue_statement": 50,
"enum_type": 0,
"for_loop": 5,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 57,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 7,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 2,
"type_casting": ... |
nano-7.2#files_prep#input_tab.c | nano-7.2 | files.c | input_tab | 95 | char *input_tab(char *morsel, size_t *place, void (*refresh_func)(void), _Bool *listed)
{
size_t num_matches = 0;
char **matches = ((void *)0);
if (morsel[*place] != '\0') {
beep();
return morsel;
}
if (morsel[0] == '~' && strchr(morsel, '/') == ((void *)0))
matches = username_completion(morsel, *place, &num... | {
"array_type": 5,
"break_continue_statement": 3,
"enum_type": 0,
"for_loop": 3,
"function_pointer": 1,
"goto_statement": 0,
"if_statement": 16,
"memory_management": 3,
"memory_operation": 0,
"pointer_type": 5,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 8... |
transcoder-set#COMPUTE_AVERAGE_TWO_NUMBERS_WITHOUT_OVERFLOW_prep#f_filled.c | transcoder-set | COMPUTE_AVERAGE_TWO_NUMBERS_WITHOUT_OVERFLOW.c | f_filled | 1 | int f_filled ( 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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
optipng-0.7.8#pngxrtif_prep#pngx_sig_is_tiff.c | optipng-0.7.8 | pngxrtif.c | pngx_sig_is_tiff | 16 | int
pngx_sig_is_tiff(png_bytep sig, size_t sig_size,
png_const_charpp fmt_name_ptr,
png_const_charpp fmt_long_name_ptr)
{
if (sig_size < 8)
return -1;
if (memcmp(sig, minitiff_sig_m, 4) != 0 &&
memcmp(sig, minitiff_sig_i, 4) != 0)
return 0;
if (fmt_name_ptr ... | {
"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": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
dap-3.10#dapruns_prep#parseopts.c | dap-3.10 | dapruns.c | parseopts | 38 | int parseopts(char *opts, char **arg)
{
static char *optcpy = ((void *)0);
static int optlen = 0;
int i;
int a;
if (!opts)
return 0;
if (strlen(opts) > optlen)
{
if (optcpy)
free(optcpy);
optlen = strlen(opts);
if (!(optcpy = malloc(optlen + 1)))
{
perror("dap");
exit(1);
... | {
"array_type": 2,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 3,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 7,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
dap-3.10#dap1_prep#dap_mnsparse.c | dap-3.10 | dap1.c | dap_mnsparse | 113 | int dap_mnsparse(char *varlist, char *outlist, int *varv, int *wtvar, int stats[])
{
int v;
int i;
int j;
int k;
char *vname;
char *tmplist;
int vn;
int wn;
int nvar;
int s;
int nonly;
if (!varlist)
{
fputs("(meansparse) Missing variable list.\n", dap_err);
exit(1);
}
vname... | {
"array_type": 8,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 13,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 9,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0... |
optipng-0.7.8#png_prep#png_info_init_3.c | optipng-0.7.8 | png.c | png_info_init_3 | 17 | void png_info_init_3 (png_infopp ptr_ptr, size_t png_info_struct_size)
{
png_inforp info_ptr = *ptr_ptr;
((void)0);
if (info_ptr == ((void *)0))
return;
if ((sizeof (png_info)) > png_info_struct_size)
{
*ptr_ptr = ((void *)0);
free(info_ptr);
info_ptr = (png_malloc_base(((void *)0... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 1,
"memory_operation": 1,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 5,... |
libxml2#parser_prep#xmlParserNsCreate.c | libxml2 | parser.c | xmlParserNsCreate | 9 | xmlParserNsData *
xmlParserNsCreate(void) {
xmlParserNsData *nsdb = xmlMalloc(sizeof(*nsdb));
if (nsdb == ((void *)0))
return(((void *)0));
memset(nsdb, 0, sizeof(*nsdb));
nsdb->defaultNsIndex = 0x7fffffff;
return(nsdb);
}
| {
"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": 1,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
libxml2#encoding_prep#xmlDelEncodingAlias.c | libxml2 | encoding.c | xmlDelEncodingAlias | 19 | int
xmlDelEncodingAlias(const char *alias) {
int i;
if (alias == ((void *)0))
return(-1);
if (xmlCharEncodingAliases == ((void *)0))
return(-1);
for (i = 0;i < xmlCharEncodingAliasesNb;i++) {
if (!strcmp(xmlCharEncodingAliases[i].alias, alias)) {
xmlFree((char *) xmlCharEncodingAliases[i].name);... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 1,
"pointer_type": 0,
"return_statement": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
libxml2#parser_prep#inputPush.c | libxml2 | parser.c | inputPush | 38 | int
inputPush(xmlParserCtxtPtr ctxt, xmlParserInputPtr value)
{
char *directory = ((void *)0);
if ((ctxt == ((void *)0)) || (value == ((void *)0)))
return(-1);
if (ctxt->inputNr >= ctxt->inputMax) {
size_t newSize = ctxt->inputMax * 2;
xmlParserInputPtr *tmp;
tmp = (xmlParser... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 7,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 5,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 5,... |
transcoder-set#LONGEST_PREFIX_ALSO_SUFFIX_1_prep#main.c | transcoder-set | LONGEST_PREFIX_ALSO_SUFFIX_1.c | main | 14 | int main(void) {
int n_success = 0;
char param0[][100] = {"aabcdaabc","1372494598","110000100001","abcab","488938","011010101011","aaaa","3356203205","1010","kkXiiTZkGeh"};
for(int i = 0; i < len(param0); ++i)
{
if(f_filled(param0[i]) == f_gold(param0[i]))
{
n_success+=1;
... | {
"array_type": 1,
"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,... |
nettle-3.9.1#ccm_prep#nettle_ccm_encrypt_message.c | nettle-3.9.1 | ccm.c | nettle_ccm_encrypt_message | 14 | void
nettle_ccm_encrypt_message(const void *cipher, nettle_cipher_func *f,
size_t nlength, const uint8_t *nonce,
size_t alength, const uint8_t *adata, size_t tlength,
size_t clength, uint8_t *dst, const uint8_t *src)
{
struct ccm_ctx ctx;
uint8_t *tag = dst + (clength-tlength);
((void) sizeof ((... | {
"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": 1,... |
transcoder-set#NUMBER_UNIQUE_RECTANGLES_FORMED_USING_N_UNIT_SQUARES_prep#f_filled.c | transcoder-set | NUMBER_UNIQUE_RECTANGLES_FORMED_USING_N_UNIT_SQUARES.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,... |
libxml2#libxml2-py_prep#libxml_xmlTextReaderReadString.c | libxml2 | libxml2-py.c | libxml_xmlTextReaderReadString | 13 | PyObject *
libxml_xmlTextReaderReadString(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
xmlChar * c_retval;
xmlTextReaderPtr reader;
PyObject *pyobj_reader;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"O:xmlTextReaderReadString", &pyobj_reader))
return(((... | {
"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,... |
tinycc#tccgen_prep#free_inline_functions.c | tinycc | tccgen.c | free_inline_functions | 10 | void free_inline_functions(TCCState *s)
{
int i;
for (i = 0; i < s->nb_inline_fns; ++i) {
struct InlineFunc *fn = s->inline_fns[i];
if (fn->sym)
tok_str_free(fn->func_str);
}
dynarray_reset(&s->inline_fns, &s->nb_inline_fns);
}
| {
"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": 1,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
optipng-0.7.8#png_prep#png_get_io_ptr.c | optipng-0.7.8 | png.c | png_get_io_ptr | 7 | png_voidp
png_get_io_ptr(png_const_structrp png_ptr)
{
if (png_ptr == ((void *)0))
return (((void *)0));
return (png_ptr->io_ptr);
}
| {
"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,... |
json.h#allow_leading_or_trailing_decimal_point_prep#json_value_as_number.c | json.h | allow_leading_or_trailing_decimal_point.c | json_value_as_number | 6 | struct json_number_s *json_value_as_number(struct json_value_s *const value) {
if (value->type != json_type_number) {
return 0;
}
return (struct json_number_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,... |
libxml2#list_prep#xmlListAppend.c | libxml2 | list.c | xmlListAppend | 16 | int xmlListAppend(xmlListPtr l, void *data)
{
xmlLinkPtr lkPlace, lkNew;
if (l == ((void *)0))
return(1);
lkPlace = xmlListHigherSearch(l, data);
lkNew = (xmlLinkPtr) xmlMalloc(sizeof(xmlLink));
if (lkNew == ((void *)0))
return (1);
lkNew->data = data;
lkNew->next = lkPlace->... | {
"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,... |
json.h#allow_location_information_prep#json_extract_copy_value.c | json.h | allow_location_information.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": ... |
gprolog-1.5.0#arith_inl_c_prep#Pl_Fct_Fast_Inc.c | gprolog-1.5.0 | arith_inl_c.c | Pl_Fct_Fast_Inc | 6 | WamWord
Pl_Fct_Fast_Inc(WamWord x)
{
PlLong vx = ((PlLong) ((x) << 0) >> 3);
return (((PlULong) (vx + 1) << 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,... |
uucp-1.07#rec_prep#frec_discard_temp.c | uucp-1.07 | rec.c | frec_discard_temp | 13 | boolean
frec_discard_temp (qdaemon, qtrans)
struct sdaemon *qdaemon;
struct stransfer *qtrans;
{
struct srecinfo *qinfo = (struct srecinfo *) qtrans->pinfo;
if ((qdaemon->ifeatures & (02)) == 0
|| qtrans->s.ztemp == ((void *)0)
|| qtrans->s.ztemp[0] != 'D'
|| strcmp (qtrans->s.ztemp, "D.... | {
"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": 1,
"return_statement": 1,
"struct_type": 3,
"switch_statement": 0,
"type_casting": 3,... |
optipng-0.7.8#pngerror_prep#png_longjmp.c | optipng-0.7.8 | pngerror.c | png_longjmp | 6 | __attribute__((__noreturn__)) void png_longjmp (png_const_structrp png_ptr, int val)
{
(void)png_ptr;
(void)val;
abort();
}
| {
"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": 2,... |
screen-4.9.0#socket_prep#ReceiveMsg.c | screen-4.9.0 | socket.c | ReceiveMsg | 233 | void
ReceiveMsg()
{
int left, len;
static struct msg m;
char *p;
int ns = ServerSocket;
struct win *wi;
int recvfd = -1;
struct acluser *user;
_Bool is_socket;
struct sockaddr_un a;
struct msghdr msg;
struct iovec iov;
char control[1024];
is_socket = IsSocket(SockPath);
if (!is_socket)
{... | {
"array_type": 1,
"break_continue_statement": 18,
"enum_type": 0,
"for_loop": 3,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 35,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 6,
"return_statement": 6,
"struct_type": 3,
"switch_statement": 1,
"type_casting": ... |
transcoder-set#FIND_ROTATION_COUNT_ROTATED_SORTED_ARRAY_prep#cmpfunc.c | transcoder-set | FIND_ROTATION_COUNT_ROTATED_SORTED_ARRAY.c | cmpfunc | 1 | int cmpfunc (const void * a, const void * b) {return ( *(int*)a - *(int*)b );}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
units-2.22#parse.tab_prep#logunit.c | units-2.22 | parse.tab.c | logunit | 15 | int
logunit(struct unittype *theunit, int base)
{
if ((err=unit2num(theunit)))
return err;
if (base==2)
theunit->factor = log2(theunit->factor);
else if (base==10)
theunit->factor = log10(theunit->factor);
else
theunit->factor = log(theunit->factor)/log((double)base);
if ((*__errno_location ()... | {
"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": 3,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
wget-1.21.4#log_prep#escnonprint_uri.c | wget-1.21.4 | log.c | escnonprint_uri | 5 | const char *
escnonprint_uri (const char *str)
{
return escnonprint_internal (str, '%', 16);
}
| {
"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#COUNT_PAIRS_WHOSE_PRODUCTS_EXIST_IN_ARRAY_prep#main.c | transcoder-set | COUNT_PAIRS_WHOSE_PRODUCTS_EXIST_IN_ARRAY.c | main | 24 | int main(void) {
int n_success = 0;
int param0_0[] = {3,7,26,40,46,89,99};
int param0_1[] = {98,42,-24,-60,74,86,6,8,72,-58,38,-20,6,-6,8,48,-34,30,60,66,38,-54,8,-94,-8,0,-64,-94,-94,-72,-84,-36,88,-62,-88,46,-4,88};
int param0_2[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,... | {
"array_type": 2,
"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": 0,
"switch_statement": 0,
"type_casting": 1,... |
less-633#search_prep#clr_hilite.c | less-633 | search.c | clr_hilite | 4 | void clr_hilite(void)
{
clr_hlist(&hilite_anchor);
}
| {
"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,... |
tinycc#libtcc_prep#tcc_set_error_func.c | tinycc | libtcc.c | tcc_set_error_func | 6 | void tcc_set_error_func(TCCState *s, void *error_opaque,
void (*error_func)(void *opaque, const char *msg))
{
s->error_opaque = error_opaque;
s->error_func = error_func;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 1,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlIO_prep#xmlParserInputBufferCreateFilenameDefault.c | libxml2 | xmlIO.c | xmlParserInputBufferCreateFilenameDefault | 13 | xmlParserInputBufferCreateFilenameFunc
xmlParserInputBufferCreateFilenameDefault(
xmlParserInputBufferCreateFilenameFunc func)
{
xmlParserInputBufferCreateFilenameFunc old;
old = (*__xmlParserInputBufferCreateFilenameValue());
if (old == ((void *)0))
old = __xmlParserInputBufferCreateFilenam... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
which-2.21#which_prep#main.c | which-2.21 | which.c | main | 206 | int main(int argc, char *argv[])
{
const char *path_list = getenv("PATH");
int short_option, fail_count = 0;
static int long_option;
struct option longopts[] = {
{"help", 0, &long_option, opt_help},
{"version", 0, &long_option, opt_version},
{"skip-dot", 0, &long_option, opt_skip_dot},
{"skip-ti... | {
"array_type": 4,
"break_continue_statement": 14,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 24,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 4,
"return_statement": 5,
"struct_type": 1,
"switch_statement": 2,
"type_casting": ... |
libosip2-5.3.1#osip_content_length_prep#osip_message_get_content_length.c | libosip2-5.3.1 | osip_content_length.c | osip_message_get_content_length | 3 | osip_content_length_t *osip_message_get_content_length(const osip_message_t *sip) {
return sip->content_length;
}
| {
"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#ccm-aes192_prep#nettle_ccm_aes192_decrypt.c | nettle-3.9.1 | ccm-aes192.c | nettle_ccm_aes192_decrypt | 7 | void
nettle_ccm_aes192_decrypt(struct ccm_aes192_ctx *ctx,
size_t length, uint8_t *dst, const uint8_t *src)
{
nettle_ccm_decrypt(&ctx->ccm, &ctx->cipher, (nettle_cipher_func *) nettle_aes192_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,... |
tmux#options_prep#options_empty.c | tmux | options.c | options_empty | 8 | struct options_entry *
options_empty(struct options *oo, const struct options_table_entry *oe)
{
struct options_entry *o;
o = options_add(oo, oe->name);
o->tableentry = oe;
return (o);
}
| {
"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": 2,
"switch_statement": 0,
"type_casting": 0,... |
tar-1.34#xattrs_prep#xattrs_xattrs_set.c | tar-1.34 | xattrs.c | xattrs_xattrs_set | 24 | void
xattrs_xattrs_set (struct tar_stat_info const *st,
char const *file_name, char typeflag, int later_run)
{
if (xattrs_option > 0)
{
size_t scan = 0;
if (!st->xattr_map_size)
return;
for (; scan < st->xattr_map_size; ++scan)
{
char *keyword = st->x... | {
"array_type": 1,
"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,... |
tar-1.34#paxerror_prep#open_warn.c | tar-1.34 | paxerror.c | open_warn | 5 | void
open_warn (char const *name)
{
call_arg_warn ("open", name);
}
| {
"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,... |
rcs-5.10.1#rcsgen_prep#yesorno.c | rcs-5.10.1 | rcsgen.c | yesorno | 25 | _Bool
yesorno (_Bool default_answer, char const *question, ...)
{
va_list args;
register int c, r;
if (!(top->behavior. quiet) && ttystdin ())
{
char *ans = default_answer
? "yn"
: "ny";
oflush ();
__builtin_va_start(args,question);
vcomplain (question, args);
__b... | {
"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": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlunicode_prep#xmlUCSIsSinhala.c | libxml2 | xmlunicode.c | xmlUCSIsSinhala | 4 | int
xmlUCSIsSinhala(int code) {
return(((code >= 0x0D80) && (code <= 0x0DFF)));
}
| {
"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,... |
tmux#utf8_prep#utf8_padcstr.c | tmux | utf8.c | utf8_padcstr | 17 | char *
utf8_padcstr(const char *s, u_int width)
{
size_t slen;
char *out;
u_int n, i;
n = utf8_cstrwidth(s);
if (n >= width)
return (xstrdup(s));
slen = strlen(s);
out = xmalloc(slen + 1 + (width - n));
memcpy(out, s, slen);
for (i = n; i < width; i++)
out[slen++] = ' ';
out[slen] = '\0';
return (out);
}... | {
"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": 1,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#ADD_TWO_NUMBERS_WITHOUT_USING_ARITHMETIC_OPERATORS_prep#sort.c | transcoder-set | ADD_TWO_NUMBERS_WITHOUT_USING_ARITHMETIC_OPERATORS.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,... |
json.h#allow_multi_line_strings_prep#json_write_pretty_array.c | json.h | allow_multi_line_strings.c | json_write_pretty_array | 41 | char *json_write_pretty_array(const struct json_array_s *array, size_t depth,
const char *indent, const char *newline,
char *data) {
size_t k, m;
struct json_array_element_s *element;
*data++ = '[';
if (0 < array->length) {
for (k = 0; '\0' != newl... | {
"array_type": 2,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 8,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlreader_prep#xmlTextReaderConstString.c | libxml2 | xmlreader.c | xmlTextReaderConstString | 6 | const xmlChar *
xmlTextReaderConstString(xmlTextReaderPtr reader, const xmlChar *str) {
if (reader == ((void *)0))
return(((void *)0));
return(constString(reader, str));
}
| {
"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,... |
heman#aabb3_prep#kmAABB3IntersectsAABB.c | heman | aabb3.c | kmAABB3IntersectsAABB | 3 | unsigned char kmAABB3IntersectsAABB(const kmAABB3* box, const kmAABB3* other) {
return kmAABB3ContainsAABB(box, other) != (unsigned int)0;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
gprolog-1.5.0#stream_c_prep#Pl_Flush_Output_0.c | gprolog-1.5.0 | stream_c.c | Pl_Flush_Output_0 | 5 | void
Pl_Flush_Output_0(void)
{
Pl_Flush_Output_1(((PlLong) (0) + ((PlULong)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": 1,... |
libxml2#xpath_prep#xmlXPathNextAncestorOrSelf.c | libxml2 | xpath.c | xmlXPathNextAncestorOrSelf | 7 | xmlNodePtr
xmlXPathNextAncestorOrSelf(xmlXPathParserContextPtr ctxt, xmlNodePtr cur) {
if ((ctxt == ((void *)0)) || (ctxt->context == ((void *)0))) return(((void *)0));
if (cur == ((void *)0))
return(ctxt->context->node);
return(xmlXPathNextAncestor(ctxt, cur));
}
| {
"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,... |
transcoder-set#FIND_INDEX_GIVEN_FIBONACCI_NUMBER_CONSTANT_TIME_prep#cmpfunc.c | transcoder-set | FIND_INDEX_GIVEN_FIBONACCI_NUMBER_CONSTANT_TIME.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,... |
nettle-3.9.1#gcm_prep#nettle_gcm_decrypt.c | nettle-3.9.1 | gcm.c | nettle_gcm_decrypt | 10 | void
nettle_gcm_decrypt(struct gcm_ctx *ctx, const struct gcm_key *key,
const void *cipher, nettle_cipher_func *f,
size_t length, uint8_t *dst, const uint8_t *src)
{
((void) sizeof ((ctx->data_size % 16 == 0) ? 1 : 0), __extension__ ({ if (ctx->data_size % 16 == 0) ; else __assert_fail ("ctx->data_size % GC... | {
"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,... |
optipng-0.7.8#example_prep#test_gzio.c | optipng-0.7.8 | example.c | test_gzio | 3 | void test_gzio(const char *fname, Byte *uncompr, uLong uncomprLen) {
fprintf(stderr, "NO_GZCOMPRESS -- gz* functions cannot compress\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,... |
patch-2.7.6#hash_prep#hash_get_first.c | patch-2.7.6 | hash.c | hash_get_first | 12 | void *
hash_get_first (const Hash_table *table)
{
struct hash_entry const *bucket;
if (table->n_entries == 0)
return ((void *)0);
for (bucket = table->bucket; ; bucket++)
if (! (bucket < table->bucket_limit))
abort ();
else if (bucket->data)
return bucket->data;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tinycc#tccgen_prep#vpushi.c | tinycc | tccgen.c | vpushi | 6 | void vpushi(int v)
{
CValue cval;
cval.i = v;
vsetc(&int_type, 0x0030, &cval);
}
| {
"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,... |
gprolog-1.5.0#c_supp_prep#Pl_Rd_Codes_Check.c | gprolog-1.5.0 | c_supp.c | Pl_Rd_Codes_Check | 6 | char *
Pl_Rd_Codes_Check(WamWord start_word)
{
Pl_Rd_Codes_Str_Check(start_word, pl_glob_buff);
return pl_glob_buff;
}
| {
"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-md5_prep#nettle_hmac_md5_digest.c | nettle-3.9.1 | hmac-md5.c | nettle_hmac_md5_digest | 6 | void
nettle_hmac_md5_digest(struct hmac_md5_ctx *ctx,
size_t length, uint8_t *digest)
{
nettle_hmac_digest( &(ctx)->outer, &(ctx)->inner, &(ctx)->state, (&nettle_md5), (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#quotearg_prep#quotearg_buffer.c | tar-1.34 | quotearg.c | quotearg_buffer | 13 | size_t
quotearg_buffer (char *buffer, size_t buffersize,
char const *arg, size_t argsize,
struct quoting_options const *o)
{
struct quoting_options const *p = o ? o : &default_quoting_options;
int e = (*__errno_location ());
size_t r = quotearg_buffer_restyled (buffer, buffersize... | {
"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,... |
libxml2#libxml2-py_prep#libxml_xmlUCSIsCyrillic.c | libxml2 | libxml2-py.c | libxml_xmlUCSIsCyrillic | 13 | PyObject *
libxml_xmlUCSIsCyrillic(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
int code;
if (libxml_deprecationWarning("xmlUCSIsCyrillic") == -1)
return(((void *)0));
if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsCyrillic", &code)... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
transcoder-set#MINIMUM_OPERATIONS_MAKE_GCD_ARRAY_MULTIPLE_K_prep#cmpfunc.c | transcoder-set | MINIMUM_OPERATIONS_MAKE_GCD_ARRAY_MULTIPLE_K.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,... |
tmux#window-copy_prep#window_copy_init_from_pane.c | tmux | window-copy.c | window_copy_init_from_pane | 21 | void
window_copy_init_from_pane(struct window_pane *wp, int scroll_exit)
{
struct window_copy_mode_data *data = wp->modedata;
struct screen *s = &data->screen;
struct screen_write_ctx ctx;
u_int i;
if (wp->mode != &window_copy_mode)
fatalx("not in copy mode");
data->backing = &wp->base;
data->cx = data->backin... | {
"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": 2,
"return_statement": 0,
"struct_type": 3,
"switch_statement": 0,
"type_casting": 1,... |
tulipindicators-0.9.1#tiamalgamation_prep#ti_edecay.c | tulipindicators-0.9.1 | tiamalgamation.c | ti_edecay | 13 | int ti_edecay(int size, double const *const *inputs, double const *options, double *const *outputs) {
const double *input = inputs[0];
const int period = (int)options[0];
double *output = outputs[0];
const double scale = 1.0 - 1.0 / period;
*output++ = input[0];
int i;
for (i = 1; i < size; ... | {
"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": 2,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libosip2-5.3.1#osip_authorization_prep#osip_authorization_clone.c | libosip2-5.3.1 | osip_authorization.c | osip_authorization_clone | 131 | int osip_authorization_clone(const osip_authorization_t *auth, osip_authorization_t **dest) {
int i;
osip_authorization_t *au;
*dest = ((void *)0);
if (auth == ((void *)0))
return -2;
i = osip_authorization_init(&au);
if (i != 0)
return i;
if (auth->auth_type != ((void *)0)) {
au->auth_type = ... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 36,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 20,
"struct_type": 0,
"switch_statement": 0,
"type_casting": ... |
transcoder-set#NTH_PENTAGONAL_NUMBER_prep#min.c | transcoder-set | NTH_PENTAGONAL_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,... |
mtools-4.0.43#scsi_prep#scsi_max_length.c | mtools-4.0.43 | scsi.c | scsi_max_length | 4 | unsigned int scsi_max_length(void)
{
return 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": 1,... |
tar-1.34#get-permissions_prep#get_permissions.c | tar-1.34 | get-permissions.c | get_permissions | 8 | int
get_permissions (const char *name, int desc, mode_t mode,
struct permission_context *ctx)
{
memset (ctx, 0, sizeof *ctx);
ctx->mode = mode;
return 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": 1,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
pth-2.0.7#pth_pqueue_prep#__pth_pqueue_insert.c | pth-2.0.7 | pth_pqueue.c | __pth_pqueue_insert | 39 | void __pth_pqueue_insert(pth_pqueue_t *q, int prio, pth_t t)
{
pth_t c;
int p;
if (q == ((void *)0))
return;
if (q->q_head == ((void *)0) || q->q_num == 0) {
t->q_prev = t;
t->q_next = t;
t->q_prio = prio;
q->q_head = t;
}
else if (q->q_head->q_prio < prio... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
libxml2#xmlunicode_prep#xmlUCSIsCatPc.c | libxml2 | xmlunicode.c | xmlUCSIsCatPc | 11 | int
xmlUCSIsCatPc(int code) {
return((code == 0x5f) ||
((code >= 0x203f) && (code <= 0x2040)) ||
(code == 0x2054) ||
(code == 0x30fb) ||
((code >= 0xfe33) && (code <= 0xfe34)) ||
((code >= 0xfe4d) && (code <= 0xfe4f)) ||
(code == 0xff3f) ||
... | {
"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#ioutil_prep#opng_path_replace_ext.c | optipng-0.7.8 | ioutil.c | opng_path_replace_ext | 26 | char *
opng_path_replace_ext(char *buffer, size_t bufsize,
const char *old_path, const char *new_extname)
{
size_t i, pos;
if (new_extname[0] != '.')
return ((void *)0);
for (i = 0, pos = (size_t)(-1); old_path[i] != '\0'; ++i)
{
if (i >= bufsize)
return... | {
"array_type": 3,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 6,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
transcoder-set#MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE_prep#len.c | transcoder-set | MINIMUM_TIME_TO_FINISH_TASKS_WITHOUT_SKIPPING_TWO_CONSECUTIVE.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,... |
units-2.22#units_prep#replacectrlchars.c | units-2.22 | units.c | replacectrlchars | 7 | void
replacectrlchars(char *string)
{
for(;*string;string++)
if (((*__ctype_b_loc ())[(int) ((*string))] & (unsigned short int) _IScntrl))
*string = ' ';
}
| {
"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": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#COUNT_DISTINCT_OCCURRENCES_AS_A_SUBSEQUENCE_prep#sort.c | transcoder-set | COUNT_DISTINCT_OCCURRENCES_AS_A_SUBSEQUENCE.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,... |
patch-2.7.6#xmalloc_prep#xrealloc.c | patch-2.7.6 | xmalloc.c | xrealloc | 13 | void *
xrealloc (void *p, size_t n)
{
if (!n && p)
{
free (p);
return ((void *)0);
}
p = realloc (p, n);
if (!p && n)
xalloc_die ();
return p;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#SQUARE_ROOT_OF_AN_INTEGER_1_prep#f_gold.c | transcoder-set | SQUARE_ROOT_OF_AN_INTEGER_1.c | f_gold | 14 | int f_gold ( int x ) {
if ( x == 0 || x == 1 ) return x;
int start = 1, end = x, ans;
while ( start <= end ) {
int mid = ( start + end ) / 2;
if ( mid * mid == x ) return mid;
if ( mid * mid < x ) {
start = mid + 1;
ans = mid;
}
else end = mid - 1;
}
return ans;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlwriter_prep#xmlNewTextWriter.c | libxml2 | xmlwriter.c | xmlNewTextWriter | 43 | xmlTextWriterPtr
xmlNewTextWriter(xmlOutputBufferPtr out)
{
xmlTextWriterPtr ret;
ret = (xmlTextWriterPtr) xmlMalloc(sizeof(xmlTextWriter));
if (ret == ((void *)0)) {
xmlWriterErrMsg(((void *)0), XML_ERR_NO_MEMORY,
"xmlNewTextWriter : out of memory!\n");
return ((void... | {
"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": 1,
"pointer_type": 0,
"return_statement": 5,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 12... |
pexec-1.0rc8#numhash_prep#numhash_first_wdata.c | pexec-1.0rc8 | numhash.c | numhash_first_wdata | 7 | int numhash_first_wdata(numhashtable *nt,void **dret)
{
int c;
c=numhash_get_terminal_used(nt,+1);
if ( c>=0 && dret != ((void *)0) ) numhash_search(nt,c,dret);
return(c);
}
| {
"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#EULERS_CRITERION_CHECK_IF_SQUARE_ROOT_UNDER_MODULO_P_EXISTS_prep#min.c | transcoder-set | EULERS_CRITERION_CHECK_IF_SQUARE_ROOT_UNDER_MODULO_P_EXISTS.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,... |
gprolog-1.5.0#hash_fct_prep#Hash_Buffer.c | gprolog-1.5.0 | hash_fct.c | Hash_Buffer | 7 | uint32_t
Hash_Buffer(const void *key, int len, uint32_t seed)
{
if (((uintptr_t) key & 3) == 0)
return Hash_Buffer_Aligned(key, len, seed);
return Hash_Buffer_Unaligned(key, len, seed);
}
| {
"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#sha256_prep#nettle_sha224_init.c | nettle-3.9.1 | sha256.c | nettle_sha224_init | 12 | void
nettle_sha224_init(struct sha256_ctx *ctx)
{
static const uint32_t H0[8] =
{
0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4,
};
memcpy(ctx->state, H0, sizeof(H0));
ctx->count = 0;
ctx->index = 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": 1,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#parserInternals_prep#xmlCtxtGetStatus.c | libxml2 | parserInternals.c | xmlCtxtGetStatus | 19 | int
xmlCtxtGetStatus(xmlParserCtxt *ctxt) {
int bits = 0;
if (xmlCtxtIsCatastrophicError(ctxt)) {
bits |= (1 << 3) |
(1 << 0) |
(1 << 1);
if ((ctxt != ((void *)0)) && (ctxt->validate))
bits |= (1 << 2);
return(bits);
}
if (!ctxt->wellFo... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
heman#generate_prep#heman_generate_archipelago_political_3.c | heman | generate.c | heman_generate_archipelago_political_3 | 40 | heman_image* heman_generate_archipelago_political_3(int width, int height,
const heman_color* colors, int ncolors, heman_color ocean, int seed,
heman_image* political)
{
heman_image** elevations = malloc(sizeof(heman_image*) * ncolors);
for (int cindex = 0; cindex < ncolors; cindex++) {
elevatio... | {
"array_type": 2,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 6,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#parserInternals_prep#xmlParserInputGrow.c | libxml2 | parserInternals.c | xmlParserInputGrow | 27 | int
xmlParserInputGrow(xmlParserInputPtr in, int len) {
int ret;
size_t indx;
if ((in == ((void *)0)) || (len < 0)) return(-1);
if (in->buf == ((void *)0)) return(-1);
if (in->base == ((void *)0)) return(-1);
if (in->cur == ((void *)0)) return(-1);
if (in->buf->buffer == ((void *)0)) return(... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 8,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 9,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 7,... |
binn-3.0#binn_prep#binn_list_map.c | binn-3.0 | binn.c | binn_list_map | 5 | void * binn_list_map(void *list, int pos) {
void *value;
binn_list_get(list, pos, 0xE1, &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": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#libxml2-py_prep#libxml_xmlSchemaValidateSetFilename.c | libxml2 | libxml2-py.c | libxml_xmlSchemaValidateSetFilename | 12 | PyObject *
libxml_xmlSchemaValidateSetFilename(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
xmlSchemaValidCtxtPtr vctxt;
PyObject *pyobj_vctxt;
char * filename;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"Oz:xmlSchemaValidateSetFilename", &pyobj_vctxt, &filename))
return(((void... | {
"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,... |
tar-1.34#regex_prep#rpl_re_compile_fastmap.c | tar-1.34 | regex.c | rpl_re_compile_fastmap | 16 | int
rpl_re_compile_fastmap (struct re_pattern_buffer *bufp)
{
re_dfa_t *dfa = bufp->buffer;
char *fastmap = bufp->fastmap;
memset (fastmap, '\0', sizeof (char) * ((0x7f * 2 + 1) + 1));
re_compile_fastmap_iter (bufp, dfa->init_state, fastmap);
if (dfa->init_state != dfa->init_state_word)
re_compile_fastmap... | {
"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": 1,
"pointer_type": 2,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#libxml2-py_prep#libxml_xmlUCSIsGeometricShapes.c | libxml2 | libxml2-py.c | libxml_xmlUCSIsGeometricShapes | 13 | PyObject *
libxml_xmlUCSIsGeometricShapes(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
int code;
if (libxml_deprecationWarning("xmlUCSIsGeometricShapes") == -1)
return(((void *)0));
if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsGeo... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
transcoder-set#DYNAMIC_PROGRAMMING_SET_36_CUT_A_ROPE_TO_MAXIMIZE_PRODUCT_1_prep#sort.c | transcoder-set | DYNAMIC_PROGRAMMING_SET_36_CUT_A_ROPE_TO_MAXIMIZE_PRODUCT_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#SUM_FACTORS_NUMBER_prep#main.c | transcoder-set | SUM_FACTORS_NUMBER.c | main | 14 | int main(void) {
int n_success = 0;
int param0[] = {76,21,4,49,35,55,43,39,36,5};
for(int i = 0; i < len(param0); ++i)
{
if(f_filled(param0[i]) == f_gold(param0[i]))
{
n_success+=1;
}
break;
}
printf("#Results:", " ", n_success, ", ", len(param0));
return 0;... | {
"array_type": 1,
"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_www_authenticate_prep#osip_www_authenticate_get_opaque.c | libosip2-5.3.1 | osip_www_authenticate.c | osip_www_authenticate_get_opaque | 3 | char *osip_www_authenticate_get_opaque(osip_www_authenticate_t *www_authenticate) {
return www_authenticate->opaque;
}
| {
"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,... |
tmux#window_prep#window_pane_get_palette.c | tmux | window.c | window_pane_get_palette | 17 | int
window_pane_get_palette(const struct window_pane *wp, int c)
{
int new;
if (wp == ((void *)0) || wp->palette == ((void *)0))
return (-1);
new = -1;
if (c < 8)
new = wp->palette[c];
else if (c >= 90 && c <= 97)
new = wp->palette[8 + c - 90];
else if (c & 0x01000000)
new = wp->palette[c & ~0x01000000];
... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
tar-1.34#extract_prep#extract_finish.c | tar-1.34 | extract.c | extract_finish | 7 | void
extract_finish (void)
{
apply_nonancestor_delayed_set_stat ("", 0);
apply_delayed_links ();
apply_nonancestor_delayed_set_stat ("", 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,... |
nano-7.2#move_prep#to_last_line.c | nano-7.2 | move.c | to_last_line | 10 | void to_last_line(void)
{
openfile->current = openfile->filebot;
openfile->current_x = (inhelp) ? 0 : strlen(openfile->filebot->data);
openfile->placewewant = xplustabs();
openfile->current_y = editwinrows - 1;
refresh_needed = 1;
recook |= perturbed;
focusing = 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": 1,... |
transcoder-set#EQUILIBRIUM_INDEX_OF_AN_ARRAY_1_prep#main.c | transcoder-set | EQUILIBRIUM_INDEX_OF_AN_ARRAY_1.c | main | 25 | int main(void) {
int n_success = 0;
int param0_0[] = {24,31,44,52,78,95};
int param0_1[] = {-78,-38,22,58,68,-60,-30,6,58,20,-64,-40,-14,80,-2,-88,-68,-16,-4,78,-38,-74,78,-72,46,-12,82,-76,-98,-28,-32,88,72,72,64,-10,98,-24,-96};
int param0_2[] = {0,0,0,0,0,0,0,0,1,1,1,1};
int param0_3[] = {98,69,41,48,40,90,7... | {
"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,... |
mtools-4.0.43#dirCache_prep#addFreeEntry.c | mtools-4.0.43 | dirCache.c | addFreeEntry | 6 | dirCacheEntry_t *addFreeEntry(dirCache_t *cache,
unsigned int beginSlot,
unsigned int endSlot)
{
return addFreeEndEntry(cache, beginSlot, endSlot, 0);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
less-633#forwback_prep#eof_bell.c | less-633 | forwback.c | eof_bell | 12 | void eof_bell(void)
{
static time_t last_eof_bell = 0;
time_t now = get_time();
if (now == last_eof_bell)
return;
last_eof_bell = now;
if (quiet == 0)
bell();
else
vbell();
}
| {
"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#COUNT_OFDIFFERENT_WAYS_EXPRESS_N_SUM_1_3_4_prep#f_gold.c | transcoder-set | COUNT_OFDIFFERENT_WAYS_EXPRESS_N_SUM_1_3_4.c | f_gold | 9 | int f_gold ( int n ) {
int DP [ n + 1 ];
DP [ 0 ] = DP [ 1 ] = DP [ 2 ] = 1;
DP [ 3 ] = 2;
for ( int i = 4;
i <= n;
i ++ ) DP [ i ] = DP [ i - 1 ] + DP [ i - 3 ] + DP [ i - 4 ];
return DP [ n ];
}
| {
"array_type": 1,
"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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.