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#COUNT_NUMBER_INCREASING_SUBSEQUENCES_SIZE_K_prep#f_gold.c | transcoder-set | COUNT_NUMBER_INCREASING_SUBSEQUENCES_SIZE_K.c | f_gold | 25 | int f_gold ( int arr [ ], int n, int k ) {
int dp [ k ] [ n ], sum = 0;
memset ( dp, 0, sizeof ( dp ) );
for ( int i = 0;
i < n;
i ++ ) dp [ 0 ] [ i ] = 1;
for ( int l = 1;
l < k;
l ++ ) {
for ( int i = l;
i < n;
i ++ ) {
dp [ l ] [ i ] = 0;
for ( int j = l - 1;
j < i;
... | {
"array_type": 2,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 5,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 1,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#relaxng_prep#xmlRelaxNGSetParserErrors.c | libxml2 | relaxng.c | xmlRelaxNGSetParserErrors | 12 | void
xmlRelaxNGSetParserErrors(xmlRelaxNGParserCtxtPtr ctxt,
xmlRelaxNGValidityErrorFunc err,
xmlRelaxNGValidityWarningFunc warn, void *ctx)
{
if (ctxt == ((void *)0))
return;
ctxt->error = err;
ctxt->warning = warn;
ctxt->serror = ((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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
libxml2#libxml2-py_prep#libxml_xmlUCSIsKangxiRadicals.c | libxml2 | libxml2-py.c | libxml_xmlUCSIsKangxiRadicals | 13 | PyObject *
libxml_xmlUCSIsKangxiRadicals(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
int code;
if (libxml_deprecationWarning("xmlUCSIsKangxiRadicals") == -1)
return(((void *)0));
if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsKangx... | {
"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,... |
nano-7.2#move_prep#to_para_begin.c | nano-7.2 | move.c | to_para_begin | 7 | void to_para_begin(void)
{
linestruct *was_current = openfile->current;
do_para_begin(&openfile->current);
openfile->current_x = 0;
edit_redraw(was_current, CENTERING);
}
| {
"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": 1,... |
transcoder-set#FIND_PAIR_WITH_GREATEST_PRODUCT_IN_ARRAY_prep#len.c | transcoder-set | FIND_PAIR_WITH_GREATEST_PRODUCT_IN_ARRAY.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#PYTHAGOREAN_QUADRUPLE_prep#cmpfunc.c | transcoder-set | PYTHAGOREAN_QUADRUPLE.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,... |
transcoder-set#GIVEN_A_SORTED_AND_ROTATED_ARRAY_FIND_IF_THERE_IS_A_PAIR_WITH_A_GIVEN_SUM_prep#len.c | transcoder-set | GIVEN_A_SORTED_AND_ROTATED_ARRAY_FIND_IF_THERE_IS_A_PAIR_WITH_A_GIVEN_SUM.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,... |
ed-1.19#buffer_prep#isbinary.c | ed-1.19 | buffer.c | isbinary | 1 | bool isbinary( void ) { return isbinary_; }
| {
"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#tty_prep#tty_raw.c | tmux | tty.c | tty_raw | 18 | void
tty_raw(struct tty *tty, const char *s)
{
ssize_t n, slen;
u_int i;
slen = strlen(s);
for (i = 0; i < 5; i++) {
n = write(tty->fd, s, slen);
if (n >= 0) {
s += n;
slen -= n;
if (slen == 0)
break;
} else if (n == -1 && (*__errno_location ()) != 11)
break;
usleep(100);
}
}
| {
"array_type": 0,
"break_continue_statement": 2,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#COUNT_PAIRS_WHOSE_PRODUCTS_EXIST_IN_ARRAY_prep#cmpfunc.c | transcoder-set | COUNT_PAIRS_WHOSE_PRODUCTS_EXIST_IN_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,... |
tulipindicators-0.9.1#willr_prep#ti_willr.c | tulipindicators-0.9.1 | willr.c | ti_willr | 53 | int ti_willr(int size, double const *const *inputs, double const *options, double *const *outputs) {
const double *high = inputs[0];
const double *low = inputs[1];
const double *close = inputs[2];
const int period = (int)options[0];
double *output = outputs[0];
if (period < 1) return 1;
if (... | {
"array_type": 6,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 9,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 4,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
transcoder-set#PAIR_WITH_GIVEN_PRODUCT_SET_1_FIND_IF_ANY_PAIR_EXISTS_prep#max.c | transcoder-set | PAIR_WITH_GIVEN_PRODUCT_SET_1_FIND_IF_ANY_PAIR_EXISTS.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,... |
libosip2-5.3.1#port_condv_prep#osip_cond_wait.c | libosip2-5.3.1 | port_condv.c | osip_cond_wait | 5 | int osip_cond_wait(struct osip_cond *_cond, struct osip_mutex *_mut) {
if (!_cond)
return -2;
return pthread_cond_wait(&_cond->cv, (pthread_mutex_t *) _mut);
}
| {
"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": 0,... |
gprolog-1.5.0#stream_c_prep#Pl_Set_Stream_Type_2.c | gprolog-1.5.0 | stream_c.c | Pl_Set_Stream_Type_2 | 16 | void
Pl_Set_Stream_Type_2(WamWord sora_word, WamWord is_text_word)
{
int stm;
StmInf *pstm;
int text;
stm = Pl_Get_Stream_Or_Alias(sora_word, 1);
pstm = pl_stm_tbl[stm];
text = Pl_Rd_Integer_Check(is_text_word);
if ((unsigned) text == pstm->prop.text)
return;
if (pstm->char_count)
Pl_Err_Permiss... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
pth-2.0.7#pth_data_prep#pth_key_delete.c | pth-2.0.7 | pth_data.c | pth_key_delete | 9 | int pth_key_delete(pth_key_t key)
{
if (key < 0 || key >= 256)
return ((*__errno_location ()) = (22), ((0)));
if (!pth_keytab[key].used)
return ((*__errno_location ()) = (2), ((0)));
pth_keytab[key].used = (0);
return (!(0));
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
uucp-1.07#xqtfil_prep#usysdep_get_xqt_free.c | uucp-1.07 | xqtfil.c | usysdep_get_xqt_free | 20 | void
usysdep_get_xqt_free (zsystem)
const char *zsystem __attribute__ ((__unused__));
{
if (qSxqt_topdir != ((void *)0))
{
(void) closedir (qSxqt_topdir);
qSxqt_topdir = ((void *)0);
}
if (qSxqt_dir != ((void *)0))
{
(void) closedir (qSxqt_dir);
qSxqt_dir = ((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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 8,... |
libzahl-1.0#zmodsqr_prep#zmodsqr.c | libzahl-1.0 | zmodsqr.c | zmodsqr | 12 | void
zmodsqr(z_t a, z_t b, z_t c)
{
if (a == c) {
zset(libzahl_tmp_modsqr, c);
zsqr(a, b);
zmod(a, a, libzahl_tmp_modsqr);
} else {
zsqr(a, b);
zmod(a, a, 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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#parser_prep#xmlParseEntity.c | libxml2 | parser.c | xmlParseEntity | 4 | xmlDocPtr
xmlParseEntity(const char *filename) {
return(xmlSAXParseEntity(((void *)0), filename));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tulipindicators-0.9.1#candles_prep#tc_three_black_crows.c | tulipindicators-0.9.1 | candles.c | tc_three_black_crows | 5 | int tc_three_black_crows(int size, TC_REAL const *const *inputs, tc_config const *options, tc_result *output) {
const TC_REAL *open = inputs[0]; const TC_REAL *high = inputs[1]; const TC_REAL *low = inputs[2]; const TC_REAL *close = inputs[3]; const int period = options->period; const TC_REAL div = 1.0 / period... | {
"array_type": 3,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 4,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#tree_prep#xmlGetProp.c | libxml2 | tree.c | xmlGetProp | 8 | xmlChar *
xmlGetProp(const xmlNode *node, const xmlChar *name) {
xmlAttrPtr prop;
prop = xmlHasProp(node, name);
if (prop == ((void *)0))
return(((void *)0));
return(xmlGetPropNodeValueInternal(prop));
}
| {
"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,... |
tulipindicators-0.9.1#di_prep#ti_di_start.c | tulipindicators-0.9.1 | di.c | ti_di_start | 3 | int ti_di_start(double const *options) {
return (int)options[0]-1;
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
gprolog-1.5.0#fd_range_prep#Pl_Range_Mul_Range.c | gprolog-1.5.0 | fd_range.c | Pl_Range_Mul_Range | 24 | void
Pl_Range_Mul_Range(Range *range, Range *range1)
{
Range r;
if (((range)->min > (range)->max))
return;
if (((range1)->min > (range1)->max))
{
(range)->max = (int)(1 << (sizeof(int) * 8 - 1));
return;
}
if (((range)->vec == ((void *)0)))
Pl_Range_Becomes_Sparse(range);
if (((ran... | {
"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": 4,... |
nano-7.2#move_prep#do_scroll_down.c | nano-7.2 | move.c | do_scroll_down | 10 | void do_scroll_down(void)
{
if (openfile->current_y == 0)
do_down();
if (editwinrows > 1 && (openfile->edittop->next != ((void *)0)
|| (((flags[((SOFTWRAP) / (sizeof(unsigned) * 8))] & ((unsigned)1 << ((SOFTWRAP) % (sizeof(unsigned) * 8)))) != 0) && (extra_chunks_in(openfile->edittop) >
chunk_for(openfile-... | {
"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": 3,... |
tmux#screen-write_prep#screen_write_clearscreen.c | tmux | screen-write.c | screen_write_clearscreen | 15 | void
screen_write_clearscreen(struct screen_write_ctx *ctx, u_int bg)
{
struct screen *s = ctx->s;
struct tty_ctx ttyctx;
u_int sx = ((s)->grid->sx), sy = ((s)->grid->sy);
screen_write_initctx(ctx, &ttyctx);
ttyctx.bg = bg;
if (s->grid->flags & 0x1)
grid_view_clear_history(s->grid, bg);
else
grid_view_clear(... | {
"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": 2,
"switch_statement": 0,
"type_casting": 0,... |
findutils-4.9.0#util_prep#nonfatal_nontarget_file_error.c | findutils-4.9.0 | util.c | nonfatal_nontarget_file_error | 5 | void
nonfatal_nontarget_file_error (int errno_value, const char *name)
{
report_file_err (0, errno_value, 0, 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,... |
json-c#linkhash_prep#lh_table_free.c | json-c | linkhash.c | lh_table_free | 11 | void lh_table_free(struct lh_table *t)
{
struct lh_entry *c;
if (t->free_fn)
{
for (c = t->head; c != ((void *)0); c = c->next)
t->free_fn(c);
}
free(t->table);
free(t);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 0,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 2,... |
less-633#tags_prep#gettagtype.c | less-633 | tags.c | gettagtype | 21 | int gettagtype(void)
{
int f;
if (strcmp(tags, "GTAGS") == 0)
return T_GTAGS;
if (strcmp(tags, "GRTAGS") == 0)
return T_GRTAGS;
if (strcmp(tags, "GSYMS") == 0)
return T_GSYMS;
if (strcmp(tags, "GPATH") == 0)
return T_GPATH;
if (strcmp(tags, "-") == 0)
return T_CTAGS_X;
f = open(tags, (00));
if (f >= 0... | {
"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": 1,... |
units-2.22#units_prep#showdefinition.c | units-2.22 | units.c | showdefinition | 14 | void
showdefinition(char *unitstr, struct unittype *theunit)
{
logputs(deftext);
while((unitstr = lookupunit(unitstr,1))
&& strspn(unitstr,digits) != strlen(unitstr)
&& !strchr(unitstr,'!')) {
tightprint(stdout,unitstr);
if (logfile) tightprint(logfile,unitstr);
logputs(" = ");
}
sho... | {
"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": 0,... |
patch-2.7.6#basename-lgpl_prep#base_len.c | patch-2.7.6 | basename-lgpl.c | base_len | 15 | size_t
base_len (char const *name)
{
size_t len;
size_t prefix_len = 0;
for (len = strlen (name); 1 < len && ((name[len - 1]) == '/'); len--)
continue;
if (0 && len == 1
&& ((name[0]) == '/') && ((name[1]) == '/') && ! name[2])
return 2;
if (0 && prefix_len
&& len == prefix_len && ((name[p... | {
"array_type": 1,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
mtools-4.0.43#mainloop_prep#main_loop.c | mtools-4.0.43 | mainloop.c | main_loop | 40 | int main_loop(MainParam_t *mp, char **argv, int argc)
{
int i;
int ret, Bret;
Bret = 0;
if(argc != 1 && mp->targetName) {
fprintf(stderr,
"Several file names given, but last argument (%s) not a directory\n", mp->targetName);
free_stream( (&mp->targetDir) );
return 1;
}
for (i = 0; i < argc; i++) {
if (... | {
"array_type": 1,
"break_continue_statement": 2,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 8,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 5,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json-c#json_util_prep#_json_c_set_last_err.c | json-c | json_util.c | _json_c_set_last_err | 7 | void _json_c_set_last_err(const char *err_fmt, ...)
{
va_list ap;
__builtin_va_start(ap,err_fmt);
(void)vsnprintf(_last_err, sizeof(_last_err), err_fmt, ap);
__builtin_va_end(ap);
}
| {
"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#HIGHWAY_BILLBOARD_PROBLEM_prep#f_gold.c | transcoder-set | HIGHWAY_BILLBOARD_PROBLEM.c | f_gold | 19 | int f_gold ( int m, int x [ ], int revenue [ ], int n, int t ) {
int maxRev [ m + 1 ];
memset ( maxRev, 0, sizeof ( maxRev ) );
int nxtbb = 0;
for ( int i = 1;
i <= m;
i ++ ) {
if ( nxtbb < n ) {
if ( x [ nxtbb ] != i ) maxRev [ i ] = maxRev [ i - 1 ];
else {
if ( i <= t ) maxRev [ i... | {
"array_type": 3,
"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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
tar-1.34#misc_prep#zap_slashes.c | tar-1.34 | misc.c | zap_slashes | 11 | char *
zap_slashes (char *name)
{
char *q;
if (!name || *name == 0)
return name;
q = name + strlen (name) - 1;
while (q > name && ((*q) == '/'))
*q-- = '\0';
return name;
}
| {
"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": 0,... |
bc-1.07.1#number_prep#bc_divmod.c | bc-1.07.1 | number.c | bc_divmod | 22 | int
bc_divmod (bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, int scale)
{
bc_num quotient = ((void *)0);
bc_num temp;
int rscale;
if (bc_is_zero (num2)) return -1;
rscale = ((num1->n_scale)>(num2->n_scale+scale)?(num1->n_scale):(num2->n_scale+scale));
bc_init_num(&temp);
bc_divide (num1, num2, &tem... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
nano-7.2#utils_prep#mark_is_before_cursor.c | nano-7.2 | utils.c | mark_is_before_cursor | 6 | _Bool mark_is_before_cursor(void)
{
return (openfile->mark->lineno < openfile->current->lineno ||
(openfile->mark == openfile->current &&
openfile->mark_x <= openfile->current_x));
}
| {
"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_FIBONACCI_NUMBERS_prep#sort.c | transcoder-set | SUM_FIBONACCI_NUMBERS.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,... |
libosip2-5.3.1#osip_transaction_prep#osip_transaction_set_srv_record.c | libosip2-5.3.1 | osip_transaction.c | osip_transaction_set_srv_record | 6 | int osip_transaction_set_srv_record(osip_transaction_t *transaction, osip_srv_record_t *record) {
if (transaction == ((void *)0))
return -2;
memcpy(&transaction->record, record, sizeof(osip_srv_record_t));
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": 1,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#HTMLparser_prep#UTF8ToHtml.c | libxml2 | HTMLparser.c | UTF8ToHtml | 63 | int
UTF8ToHtml(unsigned char* out, int *outlen,
const unsigned char* in, int *inlen) {
const unsigned char* instart = in;
const unsigned char* inend;
unsigned char* outstart = out;
unsigned char* outend;
int ret = XML_ENC_ERR_SPACE;
if ((out == ((void *)0)) || (outlen == ((void *)0)) ... | {
"array_type": 2,
"break_continue_statement": 2,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 2,
"if_statement": 9,
"memory_management": 0,
"memory_operation": 1,
"pointer_type": 2,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
libxml2#valid_prep#xmlFreeRefTable.c | libxml2 | valid.c | xmlFreeRefTable | 4 | void
xmlFreeRefTable(xmlRefTablePtr table) {
xmlHashFree(table, xmlFreeRefTableEntry);
}
| {
"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#dap0_prep#cleanAttributeList.c | dap-3.10 | dap0.c | cleanAttributeList | 19 | void cleanAttributeList( AttributeList *list)
{
AttributeList *actualatt=list;
do{
actualatt=list;
AttributeList *prev=list;
AttributeList *prev2=list;
do{
prev2=prev;
prev=actualatt;
actualatt=actualatt->next;
}while(actualatt!=((void *)0));
if (prev!=list){
free(prev->word);
free(prev);
... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 3,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
json.h#allow_multi_line_strings_prep#is_valid_unquoted_key_char.c | json.h | allow_multi_line_strings.c | is_valid_unquoted_key_char | 4 | int is_valid_unquoted_key_char(const char c) {
return (('0' <= c && c <= '9') || ('a' <= c && c <= 'z') ||
('A' <= c && c <= 'Z') || ('_' == 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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xmlreader_prep#xmlTextReaderSetup.c | libxml2 | xmlreader.c | xmlTextReaderSetup | 159 | int
xmlTextReaderSetup(xmlTextReaderPtr reader,
xmlParserInputBufferPtr input, const char *URL,
const char *encoding, int options)
{
if (reader == ((void *)0)) {
if (input != ((void *)0))
xmlFreeParserInputBuffer(input);
return (-1);
}
options |= XM... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 31,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 10,
"struct_type": 0,
"switch_statement": 0,
"type_casting": ... |
transcoder-set#EULERIAN_NUMBER_1_prep#main.c | transcoder-set | EULERIAN_NUMBER_1.c | main | 15 | int main(void) {
int n_success = 0;
int param0[] = {27,77,35,26,6,66,44,26,74,65};
int param1[] = {7,34,22,20,10,47,29,33,86,97};
for(int i = 0; i < len(param0); ++i)
{
if(f_filled(param0[i],param1[i]) == f_gold(param0[i],param1[i]))
{
n_success+=1;
}
break;
}
... | {
"array_type": 2,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#SQUARE_PYRAMIDAL_NUMBER_SUM_SQUARES_prep#f_gold.c | transcoder-set | SQUARE_PYRAMIDAL_NUMBER_SUM_SQUARES.c | f_gold | 10 | int f_gold ( int s ) {
int sum = 0;
for ( int n = 1;
sum < s;
n ++ ) {
sum += n * n;
if ( sum == s ) return n;
}
return - 1;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#DYNAMIC_PROGRAMMING_HIGH_EFFORT_VS_LOW_EFFORT_TASKS_PROBLEM_prep#main.c | transcoder-set | DYNAMIC_PROGRAMMING_HIGH_EFFORT_VS_LOW_EFFORT_TASKS_PROBLEM.c | main | 36 | int main(void) {
int n_success = 0;
int param0_0[] = {1,3,9,10,13,14,15,15,17,22,23,28,30,31,37,42,45,62,62,68,68,68,78,79,82,84,87,90,99};
int param0_1[] = {-78,-12,26,80,50,4,-80,86,12,-2,18,-50,-90,56,-50,88,-62,96,-44,-82,56};
int param0_2[] = {1};
int param0_3[] = {21,28,13,48,26,49,16,70,81,35,74,12,97,61... | {
"array_type": 3,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tinycc#x86_64-gen_prep#gtst.c | tinycc | x86_64-gen.c | gtst | 36 | int gtst(int inv, int t)
{
int v = vtop->r & 0x003f;
if (nocode_wanted) {
;
} else if (v == 0x0033) {
if (vtop->c.i & 0x100)
{
vtop->c.i &= ~0x100;
if (inv == (vtop->c.i == 0x95))
o(0x067a);
else
{
g(0x0f);
t = oad(0x8a,t);
}
}
g(0... | {
"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": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#parser_prep#xmlSAXParseMemory.c | libxml2 | parser.c | xmlSAXParseMemory | 5 | xmlDocPtr
xmlSAXParseMemory(xmlSAXHandlerPtr sax, const char *buffer,
int size, int recovery) {
return xmlSAXParseMemoryWithData(sax, buffer, size, recovery, ((void *)0));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#FIND_EQUAL_POINT_STRING_BRACKETS_prep#len.c | transcoder-set | FIND_EQUAL_POINT_STRING_BRACKETS.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,... |
gprolog-1.5.0#fd_math_c_prep#Pl_Fd_Set_Full_Ac_Flag_1.c | gprolog-1.5.0 | fd_math_c.c | Pl_Fd_Set_Full_Ac_Flag_1 | 5 | void
Pl_Fd_Set_Full_Ac_Flag_1(WamWord full_ac_word)
{
pl_full_ac = Pl_Rd_Integer(full_ac_word);
}
| {
"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_no_commas_prep#json_parse_key.c | json.h | allow_no_commas.c | json_parse_key | 23 | void json_parse_key(struct json_parse_state_s *state,
struct json_string_s *string) {
if (json_parse_flags_allow_unquoted_keys & state->flags_bitset) {
const char *const src = state->src;
char *const data = state->data;
size_t offset = state->offset;
if (('"' == src[offset]) || ('\... | {
"array_type": 2,
"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": 2,
"switch_statement": 0,
"type_casting": 0,... |
cpio-2.14#util_prep#set_new_media_message.c | cpio-2.14 | util.c | set_new_media_message | 29 | void
set_new_media_message (char *message)
{
char *p;
int prev_was_percent;
p = message;
prev_was_percent = 0;
while (*p != '\0')
{
if (*p == 'd' && prev_was_percent)
break;
prev_was_percent = (*p == '%');
++p;
}
if (*p == '\0')
{
new_media_message = xstrdup (message);
... | {
"array_type": 1,
"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": 1,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#xpath_prep#xmlXPathCastBooleanToString.c | libxml2 | xpath.c | xmlXPathCastBooleanToString | 9 | xmlChar *
xmlXPathCastBooleanToString (int val) {
xmlChar *ret;
if (val)
ret = xmlStrdup((const xmlChar *) "true");
else
ret = xmlStrdup((const xmlChar *) "false");
return(ret);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#encoding_prep#xmlInitCharEncodingHandlers.c | libxml2 | encoding.c | xmlInitCharEncodingHandlers | 4 | void
xmlInitCharEncodingHandlers(void) {
xmlInitParser();
}
| {
"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#iskeyword.c | dap-3.10 | sbstrans.c | iskeyword | 10 | int iskeyword(char *str)
{
int k;
for (k = 0; *keyword[k]; k++)
{
if (!linecmp(str, keyword[k]))
return 1;
}
return 0;
}
| {
"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": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
gprolog-1.5.0#arith_inl_c_prep#Pl_Blt_Fast_Eq.c | gprolog-1.5.0 | arith_inl_c.c | Pl_Blt_Fast_Eq | 5 | Bool
Pl_Blt_Fast_Eq(WamWord x, WamWord y)
{
return 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#stream_c_prep#Pl_Close_Input_Term_Stream_1.c | gprolog-1.5.0 | stream_c.c | Pl_Close_Input_Term_Stream_1 | 22 | void
Pl_Close_Input_Term_Stream_1(WamWord sora_word)
{
int stm;
StmInf *pstm;
StrSInf *str_stream;
int type;
stm = Pl_Get_Stream_Or_Alias(sora_word, 1);
pstm = pl_stm_tbl[stm];
type = pstm->prop.other;
if (type < 1 || type > 3)
Pl_Err_Domain(pl_domain_term_stream_or_alias, sora_word);
if (pstm->pr... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
optipng-0.7.8#pngget_prep#png_get_unknown_chunks.c | optipng-0.7.8 | pngget.c | png_get_unknown_chunks | 11 | int
png_get_unknown_chunks(png_const_structrp png_ptr, png_inforp info_ptr,
png_unknown_chunkpp unknowns)
{
if (png_ptr != ((void *)0) && info_ptr != ((void *)0) && unknowns != ((void *)0))
{
*unknowns = info_ptr->unknown_chunks;
return info_ptr->unknown_chunks_num;
}
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": 1,... |
tinycc#tccasm_prep#tcc_assemble.c | tinycc | tccasm.c | tcc_assemble | 12 | int tcc_assemble(TCCState *s1, int do_preprocess)
{
int ret;
tcc_debug_start(s1);
cur_text_section = text_section;
ind = cur_text_section->data_offset;
nocode_wanted = 0;
ret = tcc_assemble_internal(s1, do_preprocess, 1);
cur_text_section->data_offset = ind;
tcc_debug_end(s1);
return... | {
"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,... |
tulipindicators-0.9.1#tiamalgamation_prep#ti_ema.c | tulipindicators-0.9.1 | tiamalgamation.c | ti_ema | 17 | int ti_ema(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];
if (period < 1) return 1;
if (size <= ti_ema_start(options)) return 0;
const double per = 2 / ((dou... | {
"array_type": 4,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
transcoder-set#COUNT_DIGITS_FACTORIAL_SET_2_prep#min.c | transcoder-set | COUNT_DIGITS_FACTORIAL_SET_2.c | min | 1 | int min(int x, int y) { return (x < y)? x: y; }
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
avl#avl_prep#height.c | avl | avl.c | height | 6 | int height(struct Node *N)
{
if (N == ((void *)0))
return 0;
return N->height;
}
| {
"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,... |
transcoder-set#MAXIMUM_SUM_ALTERNATING_SUBSEQUENCE_SUM_prep#len.c | transcoder-set | MAXIMUM_SUM_ALTERNATING_SUBSEQUENCE_SUM.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,... |
libxml2#HTMLtree_prep#htmlDocDumpMemory.c | libxml2 | HTMLtree.c | htmlDocDumpMemory | 4 | void
htmlDocDumpMemory(xmlDocPtr cur, xmlChar**mem, int *size) {
htmlDocDumpMemoryFormat(cur, mem, size, 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": 0,... |
libosip2-5.3.1#osip_uri_prep#osip_uri_param_get_byname.c | libosip2-5.3.1 | osip_uri.c | osip_uri_param_get_byname | 22 | int osip_uri_param_get_byname(osip_list_t *params, char *pname, osip_uri_param_t **url_param) {
size_t pname_len;
osip_uri_param_t *u_param;
osip_list_iterator_t it;
*url_param = ((void *)0);
if (pname == ((void *)0))
return -2;
pname_len = strlen(pname);
if (pname_len <= 0)
return -2;
u_param =... | {
"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": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
gprolog-1.5.0#wam2ma_prep#F_get_current_choice.c | gprolog-1.5.0 | wam2ma.c | F_get_current_choice | 7 | void
F_get_current_choice(ArgVal arg[])
{
ArgVal *top = arg; PlLong xy; char c; ((xy) = *((PlLong *) (top)) , (top)++); if (xy < 5000) c = 'X'; else xy -= 5000, c='Y';
Inst_Printf("call_c", "Pl_Get_Current_Choice()");
Inst_Printf("move_ret", "%c(%" "l" "d" ")", c, xy);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
mtools-4.0.43#stream_prep#get_data_pass_through.c | mtools-4.0.43 | stream.c | get_data_pass_through | 5 | int get_data_pass_through(Stream_t *Stream, time_t *date, mt_off_t *size,
int *type, uint32_t *address)
{
return (Stream->Next)->Class->get_data( (Stream->Next), (date), (size), (type), (address) );
}
| {
"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#SUM_SERIES_23_45_67_89_UPTO_N_TERMS_prep#max.c | transcoder-set | SUM_SERIES_23_45_67_89_UPTO_N_TERMS.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,... |
uucp-1.07#access_prep#fsysdep_access.c | uucp-1.07 | access.c | fsysdep_access | 9 | boolean
fsysdep_access (zfile)
const char *zfile;
{
if (access (zfile, 4) == 0)
return (1);
ulog (LOG_ERROR, "%s: %s", zfile, strerror ((*__errno_location ())));
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,... |
transcoder-set#LONGEST_COMMON_INCREASING_SUBSEQUENCE_LCS_LIS_prep#f_filled.c | transcoder-set | LONGEST_COMMON_INCREASING_SUBSEQUENCE_LCS_LIS.c | f_filled | 1 | int f_filled ( int arr1 [ ], int n, int arr2 [ ], 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,... |
gprolog-1.5.0#write_c_prep#Pl_Write_1.c | gprolog-1.5.0 | write_c.c | Pl_Write_1 | 8 | void
Pl_Write_1(WamWord term_word)
{
(pl_sys_var[0]) = 4 | 8;
(pl_sys_var[1]) = -1;
(pl_sys_var[2]) = 1200;
Pl_Write_Term_2(((PlLong) (0) + ((PlULong)0)), term_word);
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#FRIENDS_PAIRING_PROBLEM_prep#main.c | transcoder-set | FRIENDS_PAIRING_PROBLEM.c | main | 14 | int main(void) {
int n_success = 0;
int param0[] = {99,62,87,87,61,88,73,62,98,57};
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 ... | {
"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,... |
cflow-1.7#c_prep#yy_create_buffer.c | cflow-1.7 | c.c | yy_create_buffer | 14 | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
if ( ! b )
yy_fatal_error( "out of dynamic memory in yy_create_buffer()" );
b->yy_buf_size = (yy_size_t)size;
b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
if ... | {
"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,... |
transcoder-set#CHOCOLATE_DISTRIBUTION_PROBLEM_prep#cmpfunc.c | transcoder-set | CHOCOLATE_DISTRIBUTION_PROBLEM.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,... |
transcoder-set#PROGRAM_TO_FIND_THE_AREA_OF_PENTAGON_prep#cmpfunc.c | transcoder-set | PROGRAM_TO_FIND_THE_AREA_OF_PENTAGON.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#ccm-aes128_prep#nettle_ccm_aes128_set_nonce.c | nettle-3.9.1 | ccm-aes128.c | nettle_ccm_aes128_set_nonce | 8 | void
nettle_ccm_aes128_set_nonce(struct ccm_aes128_ctx *ctx,
size_t length, const uint8_t *nonce,
size_t authlen, size_t msglen, size_t taglen)
{
nettle_ccm_set_nonce(&ctx->ccm, &ctx->cipher, (nettle_cipher_func *) nettle_aes128_encrypt,
length, nonce, authlen, msglen, taglen);
}
| {
"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,... |
libxml2#list_prep#xmlListReverseWalk.c | libxml2 | list.c | xmlListReverseWalk | 10 | void
xmlListReverseWalk(xmlListPtr l, xmlListWalker walker, void *user) {
xmlLinkPtr lk;
if ((l == ((void *)0)) || (walker == ((void *)0)))
return;
for(lk = l->sentinel->prev; lk != l->sentinel; lk = lk->prev) {
if((walker(lk->data, user)) == 0)
break;
}
}
| {
"array_type": 0,
"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": 1,... |
wget-1.21.4#retr_prep#set_local_file.c | wget-1.21.4 | retr.c | set_local_file | 11 | void
set_local_file (const char **file, const char *default_file)
{
if (opt.output_document)
{
if (output_stream_regular)
*file = opt.output_document;
}
else
*file = default_file;
}
| {
"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,... |
json.h#allow_unquoted_keys_prep#json_write_string.c | json.h | allow_unquoted_keys.c | json_write_string | 41 | char *json_write_string(const struct json_string_s *string, char *data) {
size_t i;
*data++ = '"';
for (i = 0; i < string->string_size; i++) {
switch (string->string[i]) {
case '"':
*data++ = '\\';
*data++ = '"';
break;
case '\\':
*data++ = '\\';
*data++ = '\\';
bre... | {
"array_type": 1,
"break_continue_statement": 8,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 1,
"type_casting": 0,... |
libxml2#libxml2-py_prep#libxml_xmlUCSIsCatZl.c | libxml2 | libxml2-py.c | libxml_xmlUCSIsCatZl | 13 | PyObject *
libxml_xmlUCSIsCatZl(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
int code;
if (libxml_deprecationWarning("xmlUCSIsCatZl") == -1)
return(((void *)0));
if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsCatZl", &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,... |
libxml2#libxml2-py_prep#libxml_xmlAddEncodingAlias.c | libxml2 | libxml2-py.c | libxml_xmlAddEncodingAlias | 12 | PyObject *
libxml_xmlAddEncodingAlias(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
char * name;
char * alias;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"zz:xmlAddEncodingAlias", &name, &alias))
return(((void *)0));
c_retval = xmlAddEn... | {
"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,... |
tulipindicators-0.9.1#cvi_prep#ti_cvi.c | tulipindicators-0.9.1 | cvi.c | ti_cvi | 25 | int ti_cvi(int size, double const *const *inputs, double const *options, double *const *outputs) {
const double *high = inputs[0];
const double *low = inputs[1];
const int period = (int)options[0];
double *output = outputs[0];
if (period < 1) return 1;
if (size <= ti_cvi_start(options)) return 0... | {
"array_type": 5,
"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": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 3,... |
nano-7.2#cut_prep#cut_text.c | nano-7.2 | cut.c | cut_text | 12 | void cut_text(void)
{
if (!is_cuttable(((flags[((CUT_FROM_CURSOR) / (sizeof(unsigned) * 8))] & ((unsigned)1 << ((CUT_FROM_CURSOR) % (sizeof(unsigned) * 8)))) != 0) && openfile->mark == ((void *)0)))
return;
if (openfile->last_action != CUT || !keep_cutbuffer) {
keep_cutbuffer = 0;
add_undo(CUT, ((void *)0));
}... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
transcoder-set#MAXIMUM_CONSECUTIVE_REPEATING_CHARACTER_STRING_prep#f_gold.c | transcoder-set | MAXIMUM_CONSECUTIVE_REPEATING_CHARACTER_STRING.c | f_gold | 21 | char f_gold ( char str [] ) {
int len = strlen(str);
int count = 0;
char res = str [ 0 ];
for ( int i = 0;
i < len;
i ++ ) {
int cur_count = 1;
for ( int j = i + 1;
j < len;
j ++ ) {
if ( str [ i ] != str [ j ] ) break;
cur_count ++;
}
if ( cur_count > count ) {
cou... | {
"array_type": 1,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 2,
"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,... |
transcoder-set#SUM_OF_ALL_ELEMENTS_UP_TO_NTH_ROW_IN_A_PASCALS_TRIANGLE_prep#sort.c | transcoder-set | SUM_OF_ALL_ELEMENTS_UP_TO_NTH_ROW_IN_A_PASCALS_TRIANGLE.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,... |
mcsim-6.2.0#lex_prep#GetNumber.c | mcsim-6.2.0 | lex.c | GetNumber | 80 | void GetNumber (PINPUTBUF pibIn, PSTR szLex, PINT piLexType)
{
int i = 0;
char c;
BOOL bHasSign = 0;
BOOL bLeadingDigits = 0;
enum States
{Start, Digits1, Point, Digits2, Exp, ExpSign, Digits3, End} eState;
if (!pibIn || !szLex || !piLexType)
return;
eState = Start;
*piLexType = 0x0000;
while (... | {
"array_type": 1,
"break_continue_statement": 8,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 16,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 1,
"type_casting": 6... |
mcsim-6.2.0#mod_prep#InitInfo.c | mcsim-6.2.0 | mod.c | InitInfo | 17 | void InitInfo (PINPUTINFO pinfo, PSTR szModGenName)
{
pinfo->wContext = 0x0001;
pinfo->bDelays = 0;
pinfo->bforR = 0;
pinfo->bTemplateInUse = 0;
pinfo->szModGenName = szModGenName;
pinfo->pvmGloVars = ((void *)0);
pinfo->pvmDynEqns = ((void *)0);
pinfo->pvmScaleEqns = ((void *)0);
pinfo->pvmJacobEqns ... | {
"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": 9,... |
findutils-4.9.0#safe-atoi_prep#safe_atoi.c | findutils-4.9.0 | safe-atoi.c | safe_atoi | 33 | int
safe_atoi (const char *s, enum quoting_style style)
{
long lval;
char *end;
(*__errno_location ()) = 0;
lval = strtol (s, &end, 10);
if ( (0x7fffffffffffffffL == lval) || ((-0x7fffffffffffffffL - 1L) == lval) )
{
if ((*__errno_location ()) == 34)
{
((!!sizeof (struct { _Static_assert (1, "ve... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 1,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 6,... |
transcoder-set#MAXIMUM_REMOVAL_FROM_ARRAY_WHEN_REMOVAL_TIME_WAITING_TIME_prep#f_filled.c | transcoder-set | MAXIMUM_REMOVAL_FROM_ARRAY_WHEN_REMOVAL_TIME_WAITING_TIME.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,... |
heman#mat3_prep#kmMat3Adjugate.c | heman | mat3.c | kmMat3Adjugate | 13 | kmMat3* kmMat3Adjugate(kmMat3* pOut, const kmMat3* pIn)
{
pOut->mat[0] = pIn->mat[4] * pIn->mat[8] - pIn->mat[5] * pIn->mat[7];
pOut->mat[1] = pIn->mat[2] * pIn->mat[7] - pIn->mat[1] * pIn->mat[8];
pOut->mat[2] = pIn->mat[1] * pIn->mat[5] - pIn->mat[2] * pIn->mat[4];
pOut->mat[3] = pIn->mat[5] * pIn->ma... | {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#parser_prep#xmlParseEntityRef.c | libxml2 | parser.c | xmlParseEntityRef | 10 | xmlEntityPtr
xmlParseEntityRef(xmlParserCtxtPtr ctxt) {
const xmlChar *name;
if (ctxt == ((void *)0))
return(((void *)0));
name = xmlParseEntityRefInternal(ctxt);
if (name == ((void *)0))
return(((void *)0));
return(xmlLookupGeneralEntity(ctxt, name, 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": 1,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
tulipindicators-0.9.1#tiamalgamation_prep#tc_black_marubozu.c | tulipindicators-0.9.1 | tiamalgamation.c | tc_black_marubozu | 5 | int tc_black_marubozu(int size, TC_REAL const *const *inputs, tc_config const *options, tc_result *output) {
const TC_REAL *open = inputs[0]; const TC_REAL *high = inputs[1]; const TC_REAL *low = inputs[2]; const TC_REAL *close = inputs[3]; const int period = options->period; const TC_REAL div = 1.0 / period; T... | {
"array_type": 3,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 4,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#libxml2-py_prep#libxml_xmlUCSIsBengali.c | libxml2 | libxml2-py.c | libxml_xmlUCSIsBengali | 13 | PyObject *
libxml_xmlUCSIsBengali(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
int code;
if (libxml_deprecationWarning("xmlUCSIsBengali") == -1)
return(((void *)0));
if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsBengali", &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_TIME_WRITE_CHARACTERS_USING_INSERT_DELETE_COPY_OPERATION_prep#len.c | transcoder-set | MINIMUM_TIME_WRITE_CHARACTERS_USING_INSERT_DELETE_COPY_OPERATION.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,... |
pth-2.0.7#test_philo_prep#main.c | pth-2.0.7 | test_philo.c | main | 65 | int main(int argc, char *argv[])
{
int i;
sigset_t ss;
int sig;
pth_event_t ev;
pth_init();
printf("This is TEST_PHILO, a Pth test showing the Five Dining Philosophers\n");
printf("\n");
printf("This is a demonstration showing the famous concurrency problem of the\n");
printf("Five D... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 3,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
transcoder-set#SUM_MATRIX_ELEMENT_ABSOLUTE_DIFFERENCE_ROW_COLUMN_NUMBERS_2_prep#sort.c | transcoder-set | SUM_MATRIX_ELEMENT_ABSOLUTE_DIFFERENCE_ROW_COLUMN_NUMBERS_2.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#assert_c_prep#Pl_Assert_5.c | gprolog-1.5.0 | assert_c.c | Pl_Assert_5 | 10 | void
Pl_Assert_5(WamWord head_word, WamWord body_word,
WamWord asserta_word, WamWord check_perm_word, WamWord pl_file_word)
{
Bool asserta = Pl_Rd_Integer(asserta_word);
Bool check_perm = Pl_Rd_Integer(check_perm_word);
int pl_file = Pl_Rd_Atom(pl_file_word);
last_clause = Pl_Add_Dynamic_Clause(head_word, ... | {
"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,... |
tmux#variadic_prep#fatalx.c | tmux | variadic.c | fatalx | 12 | __attribute__ ((__noreturn__)) void
fatalx(const char *msg, ...)
{
char *fmt;
va_list ap;
__builtin_va_start(ap,msg);
if (asprintf(&fmt, "fatal: %s", msg) == -1)
exit(1);
log_vwrite(fmt, ap);
__builtin_va_end(ap);
exit(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": 1,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#MINIMUM_SUM_SUBSEQUENCE_LEAST_ONE_EVERY_FOUR_CONSECUTIVE_ELEMENTS_PICKED_prep#len.c | transcoder-set | MINIMUM_SUM_SUBSEQUENCE_LEAST_ONE_EVERY_FOUR_CONSECUTIVE_ELEMENTS_PICKED.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_SERIES_0_6_0_06_0_006_0_0006_N_TERMS_prep#f_filled.c | transcoder-set | SUM_SERIES_0_6_0_06_0_006_0_0006_N_TERMS.c | f_filled | 1 | float 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,... |
nettle-3.9.1#nettle-hash_prep#main.c | nettle-3.9.1 | nettle-hash.c | main | 87 | int
main (int argc, char **argv)
{
const char *alg_name = ((void *)0);
const struct nettle_hash *alg;
unsigned length = 0;
int raw = 0;
int c;
enum { OPT_HELP = 0x300, OPT_RAW, OPT_LIST };
static const struct option options[] =
{
{ "help", 0, ((void *)0), OPT_HELP },
{ "version", 0, ((void... | {
"array_type": 1,
"break_continue_statement": 3,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 9,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 3,
"return_statement": 5,
"struct_type": 1,
"switch_statement": 1,
"type_casting": 9,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.