idx
int64
func
string
target
int64
329,879
_fill32_spans (void *abstract_renderer, int y, int h, const cairo_half_open_span_t *spans, unsigned num_spans) { cairo_image_span_renderer_t *r = abstract_renderer; if (num_spans == 0) return CAIRO_STATUS_SUCCESS; if (likely(h == 1)) { do { if (spans[0].coverage) { int len = spans[1].x - ...
0
397,645
static long ToL(unsigned char *puffer) { return (puffer[0] | puffer[1] << 8 | puffer[2] << 16 | puffer[3] << 24); }
0
301,377
static void vfswrap_rewinddir(vfs_handle_struct *handle, DIR *dirp) { START_PROFILE(syscall_rewinddir); rewinddir(dirp); END_PROFILE(syscall_rewinddir); }
0
212,403
find_start_brace(void) // XXX { pos_T cursor_save; pos_T *trypos; pos_T *pos; static pos_T pos_copy; cursor_save = curwin->w_cursor; while ((trypos = findmatchlimit(NULL, '{', FM_BLOCKSTOP, 0)) != NULL) { pos_copy = *trypos; // copy pos_T, next findmatch will change it trypos = &pos_c...
1
220,840
inline void CopyDimsToDesc(const RuntimeShape& input_shape, NdArrayDesc<N>* desc_out) { int desc_stride = 1; for (int i = N - 1; i >= 0; --i) { desc_out->extents[i] = input_shape.Dims(i); desc_out->strides[i] = desc_stride; desc_stride *= input_shape.Dims(i); } }
0
328,853
R_API void r_bin_java_print_double_cp_summary(RBinJavaCPTypeObj *obj) { ut8 *b = NULL; if (!obj) { eprintf ("Attempting to print an invalid RBinJavaCPTypeObj* Double.\n"); return; } b = obj->info.cp_double.bytes.raw; printf ("Double ConstantPool Type (%d) ", obj->metas->ord); printf (" Offset: 0x%08"PFMT64x...
0
317,339
static int selinux_inode_copy_up(struct dentry *src, struct cred **new) { u32 sid; struct task_security_struct *tsec; struct cred *new_creds = *new; if (new_creds == NULL) { new_creds = prepare_creds(); if (!new_creds) return -ENOMEM; } tsec = selinux_cred(new_creds); /* Get label from overlay inode and...
0
402,596
handle_is_token_unlocked(context *ctx, struct pollfd *pollfd, socklen_t size) { struct msghdr msg; struct iovec iov; ssize_t n; int rc = cms_context_alloc(&ctx->cms); if (rc < 0) { send_response(ctx, ctx->backup_cms, pollfd, rc); return; } steal_from_cms(ctx->backup_cms, ctx->cms); char *buffer = malloc(...
0
267,845
vm_construct_literal_object (vm_frame_ctx_t *frame_ctx_p, /**< frame context */ ecma_value_t lit_value) /**< literal */ { ecma_compiled_code_t *bytecode_p; #if JERRY_SNAPSHOT_EXEC if (JERRY_LIKELY (!(frame_ctx_p->shared_p->bytecode_header_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTIO...
0
272,350
generate_ava(cms_context *cms, SECItem *der, CERTAVA *certava) { ava ava; SECOidData *oid; void *arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE); if (arena == NULL) cnreterr(-1, cms, "could not create arena"); void *real_arena = cms->arena; cms->arena = arena; oid = SECOID_FindOID(&certava->type); if (!oid) ...
0
356,703
void Statement::Work_Run(napi_env e, void* data) { STATEMENT_INIT(RunBaton); STATEMENT_MUTEX(mtx); sqlite3_mutex_enter(mtx); // Make sure that we also reset when there are no parameters. if (!baton->parameters.size()) { sqlite3_reset(stmt->_handle); } if (stmt->Bind(baton->paramet...
0
404,720
static struct fdtable * alloc_fdtable(unsigned int nr) { struct fdtable *fdt; void *data; /* * Figure out how many fds we actually want to support in this fdtable. * Allocation steps are keyed to the size of the fdarray, since it * grows far faster than any of the other dynamic data. We try to fit * the fda...
0
255,936
Status ShapeRefiner::EvaluateConstantTensorForEdge( const Node* node, int dst_idx, bool* evaluated, Tensor* result, InferenceContext* outer_context) { *evaluated = false; const Edge* input_edge; TF_RETURN_IF_ERROR(node->input_edge(dst_idx, &input_edge)); OutputTensor tensor(input_edge->src(), input_edge...
0
256,442
JANET_CORE_FN(cfun_array_new_filled, "(array/new-filled count &opt value)", "Creates a new array of `count` elements, all set to `value`, which defaults to nil. Returns the new array.") { janet_arity(argc, 1, 2); int32_t count = janet_getinteger(argv, 0); if (count < 0) janet_pan...
0
223,090
static size_t PCLPackbitsCompressImage(const size_t length, const unsigned char *pixels,unsigned char *compress_pixels) { int count; ssize_t x; unsigned char *q; ssize_t j; unsigned char packbits[128]; /* Compress pixels with Packbits encoding. */ q=compress_pixels; for ...
0
455,328
glob_testdir (dir, flags) char *dir; int flags; { struct stat finfo; int r; /*itrace("glob_testdir: testing %s" flags = %d, dir, flags);*/ #if defined (HAVE_LSTAT) r = (flags & GX_ALLDIRS) ? lstat (dir, &finfo) : stat (dir, &finfo); #else r = stat (dir, &finfo); #endif if (r < 0) return (-1); ...
0
404,725
void fd_install(unsigned int fd, struct file *file) { struct files_struct *files = current->files; struct fdtable *fdt; rcu_read_lock_sched(); if (unlikely(files->resize_in_progress)) { rcu_read_unlock_sched(); spin_lock(&files->file_lock); fdt = files_fdtable(files); BUG_ON(fdt->fd[fd] != NULL); rcu_as...
0
366,268
struct ns_common *from_mnt_ns(struct mnt_namespace *mnt) { return &mnt->ns; }
0
247,136
struct _gf_ft_mgr *gf_filter_get_font_manager(GF_Filter *filter) { if (!filter) return NULL; return gf_fs_get_font_manager(filter->session); }
0
454,756
static void ismt_mstr_reg_dump(struct ismt_priv *priv) { struct device *dev = &priv->pci_dev->dev; dev_dbg(dev, "Dump of the iSMT Master Registers\n"); dev_dbg(dev, " MDBA..... : (0x%p)=0x%016llX\n", priv->smba + ISMT_MSTR_MDBA, (long long unsigned int)readq(priv->smba + ISMT_MSTR_MDBA)); dev_dbg(dev, " MCTR...
0
369,425
static void io_eventfd_signal(struct io_ring_ctx *ctx) { struct io_ev_fd *ev_fd; rcu_read_lock(); /* * rcu_dereference ctx->io_ev_fd once and use it for both for checking * and eventfd_signal */ ev_fd = rcu_dereference(ctx->io_ev_fd); /* * Check again if ev_fd exists incase an io_eventfd_unregister call ...
0
139,242
void OverlayWindowViews::SetPictureInPictureCustomControls( const std::vector<blink::PictureInPictureControlInfo>& controls) { first_custom_controls_view_.reset(); second_custom_controls_view_.reset(); if (controls.size() > 0) CreateCustomControl(first_custom_controls_view_, controls[0], ...
0
436,159
static int io_uring_alloc_task_context(struct task_struct *task, struct io_ring_ctx *ctx) { struct io_uring_task *tctx; int ret; tctx = kzalloc(sizeof(*tctx), GFP_KERNEL); if (unlikely(!tctx)) return -ENOMEM; ret = percpu_counter_init(&tctx->inflight, 0, GFP_KERNEL); if (unlikely(ret)) { kfree(t...
0
245,720
static int strip_return_port (char *host) { char *ptr1; char *ptr2; int port; ptr1 = strrchr (host, ':'); if (ptr1 == NULL) return 0; /* Check for IPv6 style literals */ ptr2 = strchr (ptr1, ']'); if (ptr2 != NULL) return ...
0
282,976
LJ_NOINLINE void lj_err_callermsg(lua_State *L, const char *msg) { TValue *frame = L->base-1; TValue *pframe = NULL; if (frame_islua(frame)) { pframe = frame_prevl(frame); } else if (frame_iscont(frame)) { #if LJ_HASFFI if ((frame-1)->u32.lo == LJ_CONT_FFI_CALLBACK) { pframe = frame; frame =...
0
195,067
StatusOr<FullTypeDef> SpecializeType(const AttrSlice& attrs, const OpDef& op_def) { FullTypeDef ft; ft.set_type_id(TFT_PRODUCT); for (int i = 0; i < op_def.output_arg_size(); i++) { auto* t = ft.add_args(); *t = op_def.output_arg(i).experimental_full_type(); // ...
1
312,508
vgr_qflist_valid( win_T *wp, qf_info_T *qi, int_u qfid, char_u *title) { // Verify that the quickfix/location list was not freed by an autocmd if (!qflist_valid(wp, qfid)) { if (wp != NULL) { // An autocmd has freed the location list. emsg(_(e_current_location_list_was_changed)...
0
244,041
GF_Err saio_box_read(GF_Box *s, GF_BitStream *bs) { GF_SampleAuxiliaryInfoOffsetBox *ptr = (GF_SampleAuxiliaryInfoOffsetBox *)s; if (ptr->flags & 1) { ISOM_DECREASE_SIZE(ptr, 8); ptr->aux_info_type = gf_bs_read_u32(bs); ptr->aux_info_type_parameter = gf_bs_read_u32(bs); } ISOM_DECREASE_SIZE(ptr, 4); ptr->en...
0
442,805
static void main_free(void) { curl_global_cleanup(); #if defined(CURL_DOES_CONVERSIONS) && defined(HAVE_ICONV) /* close iconv conversion descriptor */ if(inbound_cd != (iconv_t)-1) iconv_close(inbound_cd); if(outbound_cd != (iconv_t)-1) iconv_close(outbound_cd); #endif /* CURL_DOES_CONVERSIONS && HAVE_I...
0
512,349
Field *create_table_field_from_handler(TABLE *table) { const Type_handler *h= type_handler(); return h->make_and_init_table_field(&name, Record_addr(maybe_null), *this, table); }
0
329,938
composite_traps (void *_dst, cairo_operator_t op, cairo_surface_t *abstract_src, int src_x, int src_y, int dst_x, int dst_y, const cairo_rectangle_int_t *extents, cairo_antialias_t antialias, cairo_traps_t *traps) { cairo_image_surface_t *dst = (cairo_image_surface_t *) _dst; ...
0
405,326
static unsigned int xfrm_mtu(const struct dst_entry *dst) { unsigned int mtu = dst_metric_raw(dst, RTAX_MTU); return mtu ? : dst_mtu(xfrm_dst_path(dst)); }
0
462,273
PJ_DEF(pj_status_t) pj_stun_sockaddr_attr_init( pj_stun_sockaddr_attr *attr, int attr_type, pj_bool_t xor_ed, const pj_sockaddr_t *addr, unsigned addr_len) { unsigned attr_len; PJ_ASSERT_RETURN(attr && addr_len && addr, PJ_EINVAL); PJ_ASSERT_RETURN(addr_len == sizeof(pj_sockaddr_in...
0
289,288
static int snd_pcm_oss_period_size(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *oss_params, struct snd_pcm_hw_params *slave_params) { ssize_t s; ssize_t oss_buffer_size; ssize_t oss_period_size, oss_periods; ssize_t min_period_size, max_period_size; struct snd_pcm_runtime *runtime ...
0
417,480
virNodeDeviceDefFormat(const virNodeDeviceDef *def) { g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER; virNodeDevCapsDefPtr caps; size_t i = 0; virBufferAddLit(&buf, "<device>\n"); virBufferAdjustIndent(&buf, 2); virBufferEscapeString(&buf, "<name>%s</name>\n", def->name); virBufferEscapeStr...
0
200,320
static NTSTATUS vfswrap_fsctl(struct vfs_handle_struct *handle, struct files_struct *fsp, TALLOC_CTX *ctx, uint32_t function, uint16_t req_flags, /* Needed for UNICODE ... */ const uint8_t *_in_data, uint32_t in_len, uint8_t **_out_data, uint32_t m...
1
225,544
void TfLiteFloatArrayFree(TfLiteFloatArray* a) { free(a); }
0
472,121
int cgroup1_get_tree(struct fs_context *fc) { struct cgroup_fs_context *ctx = cgroup_fc2context(fc); int ret; /* Check if the caller has permission to mount. */ if (!ns_capable(ctx->ns->user_ns, CAP_SYS_ADMIN)) return -EPERM; cgroup_lock_and_drain_offline(&cgrp_dfl_root.cgrp); ret = cgroup1_root_to_use(fc); ...
0
369,859
static int proc_exe_link(struct dentry *dentry, struct path *exe_path) { struct task_struct *task; struct mm_struct *mm; struct file *exe_file; task = get_proc_task(dentry->d_inode); if (!task) return -ENOENT; mm = get_task_mm(task); put_task_struct(task); if (!mm) return -ENOENT; exe_file = get_mm_exe_fi...
0
281,067
static struct xfrm_policy *clone_policy(const struct xfrm_policy *old, int dir) { struct xfrm_policy *newp = xfrm_policy_alloc(xp_net(old), GFP_ATOMIC); struct net *net = xp_net(old); if (newp) { newp->selector = old->selector; if (security_xfrm_policy_clone(old->security, &newp->security)) { kfr...
0
437,678
static u32 txclk_tx_s_max_pulse_width(struct cx23885_dev *dev, u32 ns, u16 *divider) { u64 pulse_clocks; if (ns > IR_MAX_DURATION) ns = IR_MAX_DURATION; pulse_clocks = ns_to_pulse_clocks(ns); *divider = pulse_clocks_to_clock_divider(pulse_clocks); cx23888_ir_write4(dev, CX23888_IR_TXCLK_REG, *divider)...
0
450,322
void vnc_zlib_clear(VncState *vs) { if (vs->zlib.stream.opaque) { deflateEnd(&vs->zlib.stream); } buffer_free(&vs->zlib.zlib); }
0
309,961
parse_ti_delay(const char *ti, double *delays) { *delays = 0.0; while (*ti != '\0') { if (*ti == '\\') { ++ti; } if (ti[0] == '$' && ti[1] == '<' && IsDelay(UChar(ti[2]))) { int ignored; const char *last = parse_delay_value(ti + 2, delays, &ignored); if (*last == '>') { ti = l...
0
299,986
static void elo_remove(struct hid_device *hdev) { struct elo_priv *priv = hid_get_drvdata(hdev); usb_put_dev(priv->usbdev); hid_hw_stop(hdev); cancel_delayed_work_sync(&priv->work); kfree(priv); }
0
452,387
static MagickBooleanType ReadProfile(Image *image,const char *name, const unsigned char *datum,ssize_t length) { MagickBooleanType status; StringInfo *profile; if (length < 4) return(MagickFalse); profile=BlobToStringInfo(datum,(size_t) length); if (profile == (StringInfo *) NULL) ThrowBin...
0
256,955
static void MapToLabels(const string& subscript, Labels* labels, absl::flat_hash_map<char, int>* label_mapping) { for (int i = 0; i < subscript.size(); ++i) { const char label_char = subscript[i]; if (label_char == '.') { labels->push_back(kEllipsisLabel); i +...
0
473,835
st_copy(st_table *old_table) { st_table *new_table; st_table_entry *ptr, *entry, *prev, **tail; st_index_t num_bins = old_table->num_bins; st_index_t hash_val; new_table = alloc(st_table); if (new_table == 0) { return 0; } *new_table = *old_table; new_table->bins = (st_table_entry...
0
437,333
swap_node(Node* a, Node* b) { Node c; c = *a; *a = *b; *b = c; if (NODE_TYPE(a) == NODE_STRING) { StrNode* sn = STR_(a); if (sn->capa == 0) { int len = (int )(sn->end - sn->s); sn->s = sn->buf; sn->end = sn->s + len; } } if (NODE_TYPE(b) == NODE_STRING) { StrNode* sn = S...
0
225,392
static char *fourcc2str(unsigned int fourcc, char buf[4]) { buf[0] = (fourcc >> 0) & 0xFF; buf[1] = (fourcc >> 8) & 0xFF; buf[2] = (fourcc >> 16) & 0xFF; buf[3] = (fourcc >> 24) & 0xFF; return buf; }
0
326,631
set_times(struct archive_write_disk *a, int fd, int mode, const char *name, time_t atime, long atime_nanos, time_t birthtime, long birthtime_nanos, time_t mtime, long mtime_nanos, time_t cctime, long ctime_nanos) { /* Note: set_time doesn't use libarchive return conventions! * It uses syscall con...
0
369,895
static struct dentry *proc_pident_instantiate(struct inode *dir, struct dentry *dentry, struct task_struct *task, const void *ptr) { const struct pid_entry *p = ptr; struct inode *inode; struct proc_inode *ei; struct dentry *error = ERR_PTR(-ENOENT); inode = proc_pid_make_inode(dir->i_sb, task); if (!inode) g...
0
261,949
njs_string_prototype_substring(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { int64_t start, end, length; njs_int_t ret; njs_value_t *value; njs_slice_prop_t slice; njs_string_prop_t string; ret = njs_string_object_validate(vm, njs_arg...
0
224,227
static void _delete_submaps_from_bank_tree(RIO *io, RIOBank *bank, RListIter *prio, RIOMap *map) { RIOSubMap fake_sm; fake_sm.itv = map->itv; fake_sm.mapref.id = map->id; RRBNode *entry = _find_entry_submap_node (bank, &fake_sm); if (!entry) { return; } RIOSubMap *bd = (RIOSubMap *)entry->data; while (bd && r...
0
517,454
static void do_home_program(HttpResponse res) { char buf[STRLEN]; boolean_t on = true; boolean_t header = true; for (Service_T s = servicelist_conf; s; s = s->next_conf) { if (s->type != Service_Program) continue; if (header) { ...
0
314,758
cdf_swap_dir(cdf_directory_t *d) { d->d_namelen = CDF_TOLE2(d->d_namelen); d->d_left_child = CDF_TOLE4((uint32_t)d->d_left_child); d->d_right_child = CDF_TOLE4((uint32_t)d->d_right_child); d->d_storage = CDF_TOLE4((uint32_t)d->d_storage); d->d_storage_uuid[0] = CDF_TOLE8(d->d_storage_uuid[0]); d->d_storage_uuid[1...
0
301,503
spell_suggest_list( garray_T *gap, char_u *word, int maxcount, // maximum nr of suggestions int need_cap, // 'spellcapcheck' matched int interactive) { suginfo_T sug; int i; suggest_T *stp; char_u *wcopy; spell_find_suggest(word, 0, &sug, maxcount, FALSE, need_cap, interacti...
0
508,373
find_field_in_view(THD *thd, TABLE_LIST *table_list, const char *name, uint length, const char *item_name, Item **ref, bool register_tree_change) { DBUG_ENTER("find_field_in_view"); DBUG_PRINT("enter", ("view: '%s', field name: '%s', item name: '...
0
500,687
static sftp_status_message parse_status_msg(sftp_message msg){ sftp_status_message status; if (msg->packet_type != SSH_FXP_STATUS) { ssh_set_error(msg->sftp->session, SSH_FATAL, "Not a ssh_fxp_status message passed in!"); return NULL; } status = malloc(sizeof(struct sftp_status_message_struct)...
0
432,267
void cpu_flush_icache_range(AddressSpace *as, hwaddr start, hwaddr len) { }
0
212,433
do_tag( char_u *tag, // tag (pattern) to jump to int type, int count, int forceit, // :ta with ! int verbose) // print "tag not found" message { taggy_T *tagstack = curwin->w_tagstack; int tagstackidx = curwin->w_tagstackidx; int tagstacklen = curwin->w_tagstacklen; int cur_m...
1
437,317
check_type_tree(Node* node, int type_mask, int enclosure_mask, int anchor_mask) { NodeType type; int r = 0; type = NODE_TYPE(node); if ((NODE_TYPE2BIT(type) & type_mask) == 0) return 1; switch (type) { case NODE_LIST: case NODE_ALT: do { r = check_type_tree(NODE_CAR(node), type_mask, enclo...
0
386,522
bool DL_Dxf::stripWhiteSpace(char** s, bool stripSpace) { // last non-NULL char: int lastChar = strlen(*s) - 1; // Is last character CR or LF? while ( (lastChar >= 0) && (((*s)[lastChar] == 10) || ((*s)[lastChar] == 13) || (stripSpace && ((*s)[lastChar] == ' ' || ((*s)[lastChar...
0
384,879
vim_tolower(int c) { if (c <= '@') return c; if (c >= 0x80 || !(cmp_flags & CMP_KEEPASCII)) { if (enc_utf8) return utf_tolower(c); if (c >= 0x100) { #ifdef HAVE_TOWLOWER if (has_mbyte) return towlower(c); #endif // tolower() can't handle these chars and may crash return c; } if (...
0
197,796
static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len) { int i; uint16_t limit; VncDisplay *vd = vs->vd; if (data[0] > 3) { update_displaychangelistener(&vd->dcl, VNC_REFRESH_INTERVAL_BASE); } switch (data[0]) { case VNC_MSG_CLIENT_SET_PIXEL_FORMAT: if (len...
1
289,270
static int snd_pcm_oss_set_subdivide(struct snd_pcm_oss_file *pcm_oss_file, int subdivide) { int err = -EINVAL, idx; for (idx = 1; idx >= 0; --idx) { struct snd_pcm_substream *substream = pcm_oss_file->streams[idx]; struct snd_pcm_runtime *runtime; if (substream == NULL) continue; runtime = substream->ru...
0
225,489
Status MutableGraphView::UpdateAllRegularFaninsToControlling( absl::string_view node_name) { auto error_status = [node_name](absl::string_view msg) { string params = absl::Substitute("node_name='$0'", node_name); return MutationError("UpdateAllRegularFaninsToControlling", params, msg); }; NodeDef* no...
0
221,689
int Socket::bind(const std::string &ip, int port) { int len = sizeof my_adr; int i = 1; setsockopt(sck, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i)); my_adr.sin_port = htons(port); my_adr.sin_addr.s_addr = inet_addr(ip.c_str()); my_port = port; return ::bind(sck, (struct sockaddr *) &my_adr, ...
0
198,452
void ComparisonQuantized(const TfLiteTensor* input1, const TfLiteTensor* input2, TfLiteTensor* output, bool requires_broadcast) { if (input1->type == kTfLiteUInt8 || input1->type == kTfLiteInt8) { auto input1_offset = -input1->params.zero_point; auto input2_offset = -input2->params.ze...
1
254,728
njs_typed_array_prototype_reverse(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, njs_index_t unused) { double *f64; uint8_t *u8; int64_t i, length; uint16_t *u16; uint32_t *u32; njs_value_t *this; njs_typed_array_t ...
0
291,846
int rtrs_clt_remove_path_from_sysfs(struct rtrs_clt_path *clt_path, const struct attribute *sysfs_self) { enum rtrs_clt_state old_state; bool changed; /* * Continue stopping path till state was changed to DEAD or * state was observed as DEAD: * 1. State was changed to DEAD - we were fast and nobody ...
0
90,842
void DidGetHostQuota(QuotaStatusCode status, const std::string& host, StorageType type, int64 quota) { quota_status_ = status; host_ = host; type_ = type; quota_ = quota; }
0
210,520
get_lisp_indent(void) { pos_T *pos, realpos, paren; int amount; char_u *that; colnr_T col; colnr_T firsttry; int parencount, quotecount; int vi_lisp; // Set vi_lisp to use the vi-compatible method vi_lisp = (vim_strchr(p_cpo, CPO_LISP) != NULL); realpos = curwin->w_cursor; ...
1
313,735
normal_cmd_get_count( cmdarg_T *cap, int c, int toplevel UNUSED, int set_prevcount UNUSED, int *ctrl_w, int *need_flushbuf UNUSED) { getcount: if (!(VIsual_active && VIsual_select)) { // Handle a count before a command and compute ca.count0. // Note that '0' is a command and not the start of a coun...
0
242,116
int LuaSettings::gc_object(lua_State* L) { LuaSettings* o = *(LuaSettings **)(lua_touserdata(L, 1)); delete o; return 0; }
0
463,167
static void annotate_state_finish(annotate_state_t *state) { /* Free the entry list */ while (state->entry_list) { struct annotate_entry_list *ee = state->entry_list; state->entry_list = ee->next; buf_free(&ee->shared); buf_free(&ee->priv); free(ee->name); free(ee...
0
220,452
static bool Run(OpKernelContext* ctx, const Tensor& input, const Tensor& filter, int batch, int input_rows, int input_cols, int in_depth, int filter_rows, int filter_cols, int pad_rows, int pad_cols, int out_rows, int out_cols, int out_depth, int...
0
393,521
static SQInteger class_instance(HSQUIRRELVM v) { return SQ_SUCCEEDED(sq_createinstance(v,-1))?1:SQ_ERROR; }
0
455,177
MOBI_RET mobi_parse_huffdic(const MOBIData *m, MOBIHuffCdic *huffcdic) { MOBI_RET ret; const size_t offset = mobi_get_kf8offset(m); if (m->mh == NULL || m->mh->huff_rec_index == NULL || m->mh->huff_rec_count == NULL) { debug_print("%s", "HUFF/CDIC records metadata not found in MOBI header\n"); ...
0
252,430
static int mz_zip_reader_locate_file_binary_search(mz_zip_archive *pZip, const char *pFilename) { mz_zip_internal_state *pState = pZip->m_pState; const mz_zip_array *pCentral_dir_offsets = &pState->m_central_dir_offsets; const mz_zip_array *pCentral_dir = &pState...
0
221,475
check_sudo (GError **error) { const char *sudo_command_env = g_getenv ("SUDO_COMMAND"); g_auto(GStrv) split_command = NULL; /* This check exists to stop accidental usage of `sudo flatpak run` and is not to prevent running as root. */ if (!sudo_command_env) return TRUE; /* SUDO_COMMAND could be ...
0
445,872
name_column_sort_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data) { FileData *fdata1; FileData *fdata2; GtkSortType sort_order; int result; gtk_tree_sortable_get_sort_column_id (GTK_TREE_SORTABLE (model), NULL, &sort_order); gtk_tre...
0
309,960
_nc_outch(int ch) { putc(ch, stdout); return OK; }
0
233,822
void fmtutil_read_boxes_format(deark *c, struct de_boxesctx *bctx) { if(!bctx->f || !bctx->handle_box_fn) return; // Internal error if(bctx->curbox) return; // Internal error do_box_sequence(c, bctx, 0, bctx->f->len, -1, 0); }
0
195,343
void Compute(OpKernelContext* context) override { // Here's the basic idea: // Batch and depth dimension are independent from row and col dimension. And // because FractionalAvgPool currently only support pooling along row and // col, we can basically think of this 4D tensor backpropagation as // ...
1
262,021
ServiceProtoHandleSessionRequest(ServiceConnection *conn, ProtoRequest *req) { VGAuthError err; gchar *packet; gchar *pipeName = NULL; /* * Do any argument checking. For now, the version number must * match. */ if (req->reqData.sessionReq.version != atoi(VG...
0
338,070
void WasmBinaryWriter::initializeDebugInfo() { lastDebugLocation = {0, /* lineNumber = */ 1, 0}; }
0
369,147
static inline bool io_alloc_req_refill(struct io_ring_ctx *ctx) { if (unlikely(!ctx->submit_state.free_list.next)) return __io_alloc_req_refill(ctx); return true; }
0
400,123
PortForwardHandler::PortForwardHandler( shared_ptr<SocketHandler> _networkSocketHandler, shared_ptr<SocketHandler> _pipeSocketHandler) : networkSocketHandler(_networkSocketHandler), pipeSocketHandler(_pipeSocketHandler) {}
0
498,084
void cgit_diff_link(const char *name, const char *title, const char *class, const char *head, const char *new_rev, const char *old_rev, const char *path) { char *delim; delim = repolink(title, class, "diff", head, path); if (new_rev && ctx.qry.head != NULL && strcmp(new_rev, ctx.qry.head)) { html(deli...
0
261,994
static void bundle_add_conn(struct connectbundle *bundle, struct connectdata *conn) { Curl_llist_insert_next(&bundle->conn_list, bundle->conn_list.tail, conn, &conn->bundle_node); conn->bundle = bundle; bundle->num_connections++; }
0
413,583
R_API void r_core_recover_vars(RCore *core, RAnalFunction *fcn, bool argonly) { r_return_if_fail (core && core->anal && fcn); if (core->anal->opt.bb_max_size < 1) { return; } BlockRecurseCtx ctx = { 0, {{ 0 }}, argonly, fcn, core }; r_pvector_init (&ctx.reg_set, free); int *reg_set = R_NEWS0 (int, REG_SET_SIZE)...
0
468,359
on_timer (GCancellable *cancel) { g_cancellable_cancel (cancel); return G_SOURCE_REMOVE; }
0
247,132
Bool gf_fs_is_supported_mime(GF_FilterSession *fsess, const char *mime) { u32 i, count; //first pass on explicit mimes count = gf_list_count(fsess->registry); for (i=0; i<count; i++) { u32 j; const GF_FilterRegister *freg = gf_list_get(fsess->registry, i); for (j=0; j<freg->nb_caps; j++) { const GF_FilterC...
0
430,399
static bool actions_may_change_flow(const struct nlattr *actions) { struct nlattr *nla; int rem; nla_for_each_nested(nla, actions, rem) { u16 action = nla_type(nla); switch (action) { case OVS_ACTION_ATTR_OUTPUT: case OVS_ACTION_ATTR_RECIRC: case OVS_ACTION_ATTR_TRUNC: case OVS_ACTION_ATTR_USERSPACE: ...
0
333,088
list1( nfa_state_T **outp) { Ptrlist *l; l = (Ptrlist *)outp; l->next = NULL; return l; }
0
468,339
g_socket_client_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { GSocketClient *client = G_SOCKET_CLIENT (object); switch (prop_id) { case PROP_FAMILY: g_value_set_enum (value, client->priv->family); break; case PROP_TYPE: ...
0
292,193
inbound_open_dialog (server *serv, char *from, const message_tags_data *tags_data) { session *sess; sess = new_ircwindow (serv, from, SESS_DIALOG, 0); /* for playing sounds */ EMIT_SIGNAL_TIMESTAMP (XP_TE_OPENDIALOG, sess, NULL, NULL, NULL, NULL, 0, tags_data->timestamp); return sess; }
0
222,671
static int check_owned_directory_mode(const char *path, mode_t expected_mode) { struct stat stat; if (lstat(path, &stat)) return -1; if (!S_ISDIR(stat.st_mode)) return -1; if (stat.st_uid != getuid()) return -1; if ((stat.st_mode & 07777) != expected_mode) return -1; return 0; }
0
498,628
query (void) { static const GimpParamDef load_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_STRING, "filename", "The name of the file to load" }, { GIMP_PDB_STRING, "raw-filename", "The name entered" } }; s...
0
261,391
bool read_pred_weight_table(bitreader* br, slice_segment_header* shdr, decoder_context* ctx) { int vlc; pic_parameter_set* pps = ctx->get_pps((int)shdr->slice_pic_parameter_set_id); assert(pps); seq_parameter_set* sps = ctx->get_sps((int)pps->seq_parameter_set_id); assert(sps); shdr->luma_log2_weight_deno...
0