idx
int64
func
string
target
int64
432,311
AddressSpace *cpu_get_address_space(CPUState *cpu, int asidx) { /* only one AddressSpace. */ return cpu->cpu_ases[0].as; }
0
432,159
Timestamp PipelineD::getLatestOplogTimestamp(const Pipeline* pipeline) { if (auto docSourceCursor = dynamic_cast<DocumentSourceCursor*>(pipeline->_sources.front().get())) { return docSourceCursor->getLatestOplogTimestamp(); } return Timestamp(); }
0
477,364
R_API RBinJavaAttrInfo *r_bin_java_signature_attr_new(RBinJavaObj *bin, ut8 *buffer, ut64 sz, ut64 buf_offset) { ut64 offset = 6; RBinJavaAttrInfo *attr = r_bin_java_default_attr_new (bin, buffer, sz, buf_offset); if (!attr) { return NULL; } attr->type = R_BIN_JAVA_ATTR_TYPE_SIGNATURE_ATTR; // attr->info.source...
0
230,395
PJ_DEF(pj_xml_attr*) pj_xml_attr_new( pj_pool_t *pool, const pj_str_t *name, const pj_str_t *value) { pj_xml_attr *attr = alloc_attr(pool); pj_strdup( pool, &attr->name, name); pj_strdup( pool, &attr->value, value); return attr; }
0
336,492
SPICE_GNUC_VISIBLE SpiceImageCompression spice_server_get_image_compression(SpiceServer *s) { return s->config->image_compression; }
0
477,295
static void tipc_crypto_key_synch(struct tipc_crypto *rx, struct sk_buff *skb) { struct tipc_ehdr *ehdr = (struct tipc_ehdr *)skb_network_header(skb); struct tipc_crypto *tx = tipc_net(rx->net)->crypto_tx; struct tipc_msg *hdr = buf_msg(skb); u32 self = tipc_own_addr(rx->net); u8 cur, new; unsigned long delay; ...
0
329,937
draw (cairo_t *cr, int width, int height) { cairo_set_source_rgb (cr, 0., 0., 0.); cairo_paint (cr); cairo_set_source_rgb (cr, 1., 1., 1.); cairo_set_line_width (cr, 1.); cairo_pattern_t *p = cairo_pattern_create_linear (0, 0, width, height); cairo_pattern_add_color_stop_rgb (p, 0, 0.99, 1, 1)...
0
373,546
ipf_expiry_list_remove(struct ipf_list *ipf_list) /* OVS_REQUIRES(ipf_lock) */ { ovs_list_remove(&ipf_list->list_node); }
0
244,293
GF_Err sdtp_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_SampleDependencyTypeBox *ptr = (GF_SampleDependencyTypeBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_data(bs, (char*)ptr->sample_info, ptr->sampleCount); return GF_OK; }
0
415,186
cmd_readkey (assuan_context_t ctx, char *line) { ctrl_t ctrl = assuan_get_pointer (ctx); int rc; unsigned char *cert = NULL; size_t ncert, n; ksba_cert_t kc = NULL; ksba_sexp_t p; unsigned char *pk; size_t pklen; if ((rc = open_card (ctrl, NULL))) return rc; line = xstrdup (line); /* Need a co...
0
390,586
SetKeyBehaviors( XkbSrvInfoPtr xkbi, xkbSetMapReq *req, xkbBehaviorWireDesc *wire, XkbChangesPtr changes) { register unsigned i; int maxRG = -1; XkbDescPtr xkb = xkbi->desc; XkbServerMapPtr server = xkb->server; unsigned first,last; first= req->firstKeyBehavior; last= req->firstK...
0
238,535
static void adjust_insn_aux_data(struct bpf_verifier_env *env, struct bpf_insn_aux_data *new_data, struct bpf_prog *new_prog, u32 off, u32 cnt) { struct bpf_insn_aux_data *old_data = env->insn_aux_data; struct bpf_insn *insn = new_prog->insnsi; u32 old_seen = old_data[off].seen; u32 prog_len; int i; /*...
0
401,590
static int proc_do_entropy(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { struct ctl_table fake_table; int entropy_count; entropy_count = *(int *)table->data >> ENTROPY_SHIFT; fake_table.data = &entropy_count; fake_table.maxlen = sizeof(entropy_count); return proc_dointve...
0
244,289
void strk_box_del(GF_Box *s) { gf_free(s); }
0
412,147
respip_set_apply_cfg(struct respip_set* set, char* const* tagname, int num_tags, struct config_strbytelist* respip_tags, struct config_str2list* respip_actions, struct config_str2list* respip_data) { struct config_strbytelist* p; struct config_str2list* pa; struct config_str2list* pd; set->tagname = tagname; s...
0
224,178
std::size_t incomplete_size() { tensorflow::mutex_lock lock(mu_); return incomplete_.size(); }
0
245,723
static void relay_connection (struct conn_s *connptr) { int ret; ssize_t bytes_received; for (;;) { pollfd_struct fds[2] = {0}; fds[0].fd = connptr->client_fd; fds[1].fd = connptr->server_fd; if (buffer_size (connptr->sbuffer) > 0...
0
522,341
int APIF77(gmfsetkwd)( int64_t *MshIdx, int *KwdIdx, int *NmbLin, int *NmbTyp, int *TypTab, int *deg, int *NmbNod) { if(!strcmp(GmfKwdFmt[ *KwdIdx ][2], "hr")) return(GmfSetKwd(*MshIdx, *KwdIdx, *NmbLin, *NmbTyp, TypTab, *deg, *NmbNod)); else if(!strcmp(GmfKwdFmt[ *KwdIdx ][2], "sr"...
0
338,079
void WasmBinaryWriter::writeLegacyDylinkSection() { if (!wasm->dylinkSection) { return; } auto start = startSection(BinaryConsts::User); writeInlineString(BinaryConsts::UserSections::Dylink); o << U32LEB(wasm->dylinkSection->memorySize); o << U32LEB(wasm->dylinkSection->memoryAlignment); o << U32LEB(...
0
359,352
DEFUN (bgp_redistribute_ipv4_rmap_metric, bgp_redistribute_ipv4_rmap_metric_cmd, "redistribute (connected|kernel|ospf|rip|static) route-map WORD metric <0-4294967295>", "Redistribute information from another routing protocol\n" "Connected\n" "Kernel routes\n" "Open Shurtest Pat...
0
345,139
static inline struct pxa3xx_gcu_priv *to_pxa3xx_gcu_priv(struct file *file) { struct miscdevice *dev = file->private_data; return container_of(dev, struct pxa3xx_gcu_priv, misc_dev); }
0
244,159
void ihdr_box_del(GF_Box *s) { gf_free(s); }
0
512,282
my_decimal *val_decimal(my_decimal *to) { return has_value() ? Date(this).to_decimal(to) : NULL; }
0
269,311
static av_always_inline void predict_plane(SnowContext *s, IDWTELEM *buf, int plane_index, int add){ const int mb_h= s->b_height << s->block_max_depth; int mb_y; for(mb_y=0; mb_y<=mb_h; mb_y++) predict_slice(s, buf, plane_index, add, mb_y); }
0
242,984
static int ssl_buffer_make_space( mbedtls_ssl_context *ssl, size_t desired ) { int offset; mbedtls_ssl_handshake_params * const hs = ssl->handshake; MBEDTLS_SSL_DEBUG_MSG( 2, ( "Attempt to free buffered messages to have %u bytes available", (...
0
299,976
static int elo_probe(struct hid_device *hdev, const struct hid_device_id *id) { struct elo_priv *priv; int ret; struct usb_device *udev; if (!hid_is_usb(hdev)) return -EINVAL; priv = kzalloc(sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; INIT_DELAYED_WORK(&priv->work, elo_work); udev = interface_...
0
294,641
date_s__valid_jd_p(int argc, VALUE *argv, VALUE klass) { VALUE vjd, vsg; VALUE argv2[2]; rb_scan_args(argc, argv, "11", &vjd, &vsg); argv2[0] = vjd; if (argc < 2) argv2[1] = DBL2NUM(GREGORIAN); else argv2[1] = vsg; return valid_jd_sub(2, argv2, klass, 1); }
0
202,810
_gcry_ecc_ecdsa_sign (gcry_mpi_t input, ECC_secret_key *skey, gcry_mpi_t r, gcry_mpi_t s, int flags, int hashalgo) { gpg_err_code_t rc = 0; int extraloops = 0; gcry_mpi_t k, dr, sum, k_1, x; mpi_point_struct I; gcry_mpi_t hash; const void *abuf; unsigned int abi...
1
445,902
archive_is_encrypted (FrWindow *window, GList *file_list) { gboolean encrypted = FALSE; if (file_list == NULL) { int i; for (i = 0; ! encrypted && i < window->archive->files->len; i++) { FileData *fdata = g_ptr_array_index (window->archive->files, i); if (fdata->encrypted) encrypted = TRUE...
0
448,554
bool bgp_notify_send_hard_reset(struct peer *peer, uint8_t code, uint8_t subcode) { /* When the "N" bit has been exchanged, a Hard Reset message is used to * indicate to the peer that the session is to be fully terminated. */ if (!bgp_has_graceful_restart_notification(peer)) return false; /* * https://d...
0
513,269
bool JOIN::rollup_init() { uint i,j; Item **ref_array; tmp_table_param.quick_group= 0; // Can't create groups in tmp table rollup.state= ROLLUP::STATE_INITED; /* Create pointers to the different sum function groups These are updated by rollup_make_fields() */ tmp_table_param.group_parts= send_gr...
0
369,100
static int io_poll_update_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) { struct io_poll_update *upd = &req->poll_update; u32 flags; if (unlikely(req->ctx->flags & IORING_SETUP_IOPOLL)) return -EINVAL; if (sqe->ioprio || sqe->buf_index || sqe->splice_fd_in) return -EINVAL; flags = READ...
0
439,056
static Image *ReadHEICImage(const ImageInfo *image_info, ExceptionInfo *exception) { heif_item_id exif_id; Image *image; int count, stride_y, stride_cb, stride_cr; MagickBooleanType status; MagickSizeType length; ssize_t y; struct heif_context *heif_context;...
0
387,818
void InstanceKlass::adjust_default_methods(InstanceKlass* holder, bool* trace_name_printed) { // search the default_methods for uses of either obsolete or EMCP methods if (default_methods() != NULL) { for (int index = 0; index < default_methods()->length(); index ++) { Method* old_method = default_methods...
0
215,073
static ssize_t cgroup_release_agent_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) { struct cgroup *cgrp; BUILD_BUG_ON(sizeof(cgrp->root->release_agent_path) < PATH_MAX); cgrp = cgroup_kn_lock_live(of->kn, false); if (!cgrp) return -ENODEV; spin_lock(&release_agent_path_lock); ...
1
359,308
DEFUN (show_ip_community_list_arg, show_ip_community_list_arg_cmd, "show ip community-list (<1-500>|WORD)", SHOW_STR IP_STR "List community-list\n" "Community-list number\n" "Community-list name\n") { struct community_list *list; list = community_list_lookup (bgp_cl...
0
253,519
smb3_handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid) { char *buf = server->large_buf ? server->bigbuf : server->smallbuf; return handle_read_data(server, mid, buf, server->pdu_size, NULL, 0, 0, false); }
0
221,145
GF_Err gf_odf_avc_cfg_write(GF_AVCConfig *cfg, u8 **outData, u32 *outSize) { GF_BitStream *bs = gf_bs_new(NULL, 0, GF_BITSTREAM_WRITE); gf_odf_avc_cfg_write_bs(cfg, bs); *outSize = 0; *outData = NULL; gf_bs_get_content(bs, outData, outSize); gf_bs_del(bs); return GF_OK; }
0
486,784
static inline unsigned tx_desc_get_length(uint32_t *desc) { return desc[1] & DESC_1_LENGTH; }
0
220,004
int callback_glewlwyd_get_module_type_list (const struct _u_request * request, struct _u_response * response, void * user_data) { UNUSED(request); struct config_elements * config = (struct config_elements *)user_data; json_t * j_module_type; j_module_type = get_module_type_list(config); if (check_result_va...
0
437,316
set_optimize_info_from_tree(Node* node, regex_t* reg, ScanEnv* scan_env) { int r; NodeOpt opt; OptEnv env; env.enc = reg->enc; env.options = reg->options; env.case_fold_flag = reg->case_fold_flag; env.scan_env = scan_env; clear_mml(&env.mmd); r = optimize_nodes(node, &opt, &e...
0
310,150
cleanup(void) { outs(t_me); if (!outs(t_oc)) outs(t_op); outs(t_cl); outs(t_ve); fflush(stdout); fprintf(stderr, "\n\n%ld total cells, rate %.2f/sec\n", total_chars, ((double) (total_chars) / (double) (time((time_t *) 0) - started))); }
0
209,801
void jsP_dumpsyntax(js_State *J, js_Ast *prog, int dominify) { minify = dominify; if (prog->type == AST_LIST) pstmlist(-1, prog); else { pstm(0, prog); nl(); } if (minify > 1) putchar('\n'); }
1
242,927
void Compute(OpKernelContext *ctx) override { const Tensor *a_indices_t, *a_values_t, *a_shape_t, *b; OP_REQUIRES_OK(ctx, ctx->input("a_indices", &a_indices_t)); OP_REQUIRES_OK(ctx, ctx->input("a_values", &a_values_t)); OP_REQUIRES_OK(ctx, ctx->input("a_shape", &a_shape_t)); OP_REQUIRES_OK(ctx, ct...
0
245,148
Status Examples::SampleAdaptiveProbabilities( const int num_loss_partitions, const Regularizations& regularization, const ModelWeights& model_weights, const TTypes<float>::Matrix example_state_data, const std::unique_ptr<DualLossUpdater>& loss_updater, const int num_weight_vectors) { if (num_weigh...
0
463,178
EXPORTED void annotate_state_set_auth(annotate_state_t *state, int isadmin, const char *userid, const struct auth_state *auth_state) { /* Note: lmtpd sometimes calls through the append code with * auth_state=NULL, so we cannot rely on it being non-NULL ...
0
344,264
int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2) { const TValue *tm; if (ttypetag(t1) != ttypetag(t2)) { /* not the same variant? */ if (ttype(t1) != ttype(t2) || ttype(t1) != LUA_TNUMBER) return 0; /* only numbers can be equal with different variants */ else { /* two numbers wi...
0
387,877
void InstanceKlass::deallocate_methods(ClassLoaderData* loader_data, Array<Method*>* methods) { if (methods != NULL && methods != Universe::the_empty_method_array() && !methods->is_shared()) { for (int i = 0; i < methods->length(); i++) { Method* method = methods...
0
294,484
test_nth_kday(int from, int to, double sg) { int j; fprintf(stderr, "test_nth_kday: %d...%d (%d) - %.0f\n", from, to, to - from, sg); for (j = from; j <= to; j++) { int y, m, n, k, rj, ns; c_jd_to_nth_kday(j, sg, &y, &m, &n, &k); c_nth_kday_to_jd(y, m, n, k, sg, &rj, &ns); if (j != rj) { fpr...
0
421,375
static void pargs(int d, js_Ast *list) { while (list) { assert(list->type == AST_LIST); pexpi(d, COMMA, list->a); list = list->b; if (list) comma(); } }
0
282,879
static int rsi_send_common_dev_params(struct rsi_common *common) { struct sk_buff *skb; u16 frame_len; struct rsi_config_vals *dev_cfgs; frame_len = sizeof(struct rsi_config_vals); rsi_dbg(MGMT_TX_ZONE, "Sending common device config params\n"); skb = dev_alloc_skb(frame_len); if (!skb) { rsi_dbg(ERR_ZONE, "%...
0
225,507
void SwapRegularFanoutsAndMaxPortValues(FanoutsMap* fanouts, MaxOutputPortsMap* max_output_ports, NodeDef* from_node, NodeDef* to_node) { auto from_max_port = max_output_ports->find(from_node); auto to_max_port = max_output_ports->find(...
0
310,254
_compare_routerinfo_by_ip_and_bw(const void **a, const void **b) { routerinfo_t *first = *(routerinfo_t **)a, *second = *(routerinfo_t **)b; int first_is_auth, second_is_auth; uint32_t bw_first, bw_second; /* we return -1 if first should appear before second... that is, * if first is a better router. */ i...
0
247,567
TEST_P(SslSocketTest, FailedClientAuthCaVerification) { const std::string client_ctx_yaml = R"EOF( common_tls_context: tls_certificates: certificate_chain: filename: "{{ test_rundir }}/test/extensions/transport_sockets/tls/test_data/selfsigned_cert.pem" private_key: filename: "{{ tes...
0
391,636
static bool share_conflict(struct share_mode_entry *entry, uint32 access_mask, uint32 share_access) { DEBUG(10,("share_conflict: entry->access_mask = 0x%x, " "entry->share_access = 0x%x, " "entry->private_options = 0x%x\n", (unsigned int)entry->access_mask, (unsigned int)entry->share_access...
0
474,051
rehash(register st_table *table) { register st_table_entry *ptr, **new_bins; st_index_t i, new_num_bins, hash_val; new_num_bins = new_size(table->num_bins+1); new_bins = (st_table_entry**) xrealloc(table->bins, new_num_bins * sizeof(st_table_entry*)); for (i = 0; i < new_num_bins; ++i) new_bins[i]...
0
233,844
void fmtutil_macbitmap_read_baseaddr(deark *c, dbuf *f, struct fmtutil_macbitmap_info *bi, i64 pos) { i64 n; de_dbg(c, "baseAddr part of PixMap, at %d", (int)pos); de_dbg_indent(c, 1); n = dbuf_getu32be(f, pos); de_dbg(c, "baseAddr: 0x%08x", (unsigned int)n); de_dbg_indent(c, -1); }
0
483,512
static int register_update_efi_random_seed(void) { if (efi.rng_seed == EFI_INVALID_TABLE_ADDR) return 0; return register_reboot_notifier(&efi_random_seed_nb); }
0
462,411
createInstance(instanceConf_t **pinst) { instanceConf_t *inst; DEFiRet; CHKmalloc(inst = MALLOC(sizeof(instanceConf_t))); inst->next = NULL; inst->pszBindPort = NULL; inst->pszBindAddr = NULL; inst->pszBindPath = NULL; inst->fileUID = -1; inst->fileGID = -1; inst->fCreateMode = 0644; inst->bFailOnPerms = 1;...
0
234,236
load_debug_section_with_follow (enum dwarf_section_display_enum sec_enum, void * handle) { if (load_debug_section (sec_enum, handle)) { if (debug_displays[sec_enum].section.filename == NULL) { /* See if we can associate a filename with this section. */ separate_info * i; for (i = first_separ...
0
219,949
int callback_glewlwyd_user_update_password (const struct _u_request * request, struct _u_response * response, void * user_data) { struct config_elements * config = (struct config_elements *)user_data; json_t * j_session, * j_password, * j_element = NULL; char * session_uid = get_session_id(config, request); con...
0
221,408
static int svm_check_nested_events(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); bool block_nested_events = kvm_event_needs_reinjection(vcpu) || svm->nested.nested_run_pending; struct kvm_lapic *apic = vcpu->arch.apic; if (lapic_in_kernel(vcpu) && test_bit(KVM_APIC_INIT, &apic->pending_event...
0
369,307
static int io_files_update(struct io_kiocb *req, unsigned int issue_flags) { struct io_ring_ctx *ctx = req->ctx; bool needs_lock = issue_flags & IO_URING_F_UNLOCKED; struct io_uring_rsrc_update2 up; int ret; up.offset = req->rsrc_update.offset; up.data = req->rsrc_update.arg; up.nr = 0; up.tags = 0; up.resv ...
0
463,064
static bool sungem_rx_full(SunGEMState *s, uint32_t kick, uint32_t done) { return kick == ((done + 1) & s->rx_mask); }
0
313,861
may_clear_cmdline(void) { if (mode_displayed) clear_cmdline = TRUE; // unshow visual mode later #ifdef FEAT_CMDL_INFO else clear_showcmd(); #endif }
0
275,953
uECC_VLI_API void uECC_vli_modSub(uECC_word_t *result, const uECC_word_t *left, const uECC_word_t *right, const uECC_word_t *mod, wordcount_t num_words) { uECC_word_t l_borrow = uE...
0
498,620
save_image (const gchar *filename, gint32 image_ID, gint32 drawable_ID, GError **error) { GeglBuffer *buffer; const Babl *format = NULL; GimpImageType dtype; gint width; gint height; FILE *fp; gint out_bp...
0
244,247
void moof_box_del(GF_Box *s) { GF_MovieFragmentBox *ptr = (GF_MovieFragmentBox *)s; if (ptr == NULL) return; gf_list_del(ptr->TrackList); if (ptr->PSSHs) gf_list_del(ptr->PSSHs); if (ptr->mdat) gf_free(ptr->mdat); //happens if error while fragmenting, the emsg boxes are not part of the moof hierarchy ! if (ptr-...
0
273,089
net_address_get(char *addr, size_t addr_len, union net_sockaddr *naddr) { const char *s; memset(addr, 0, addr_len); // Just in case caller doesn't check for errors if (naddr->sa.sa_family == AF_INET6) s = inet_ntop(AF_INET6, &naddr->sin6.sin6_addr, addr, addr_len); else s = inet_ntop(AF_INET, &naddr...
0
231,802
TEST_F(QuicServerTransportTest, TestAckStopSending) { auto streamId = server->createBidirectionalStream().value(); server->getNonConstConn().streamManager->getStream(streamId); server->stopSending(streamId, GenericApplicationErrorCode::UNKNOWN); loopForWrites(); auto match = findFrameInPacketFunc<QuicSimpleFr...
0
244,062
GF_Box *sidx_box_new() { ISOM_DECL_BOX_ALLOC(GF_SegmentIndexBox, GF_ISOM_BOX_TYPE_SIDX); return (GF_Box *)tmp; }
0
294,680
rt__valid_date_frags_p(VALUE hash, VALUE sg) { { VALUE vjd; if (!NIL_P(vjd = ref_hash("jd"))) { VALUE jd = rt__valid_jd_p(vjd, sg); if (!NIL_P(jd)) return jd; } } { VALUE year, yday; if (!NIL_P(yday = ref_hash("yday")) && !NIL_P(year = ref_hash("year"))) { VALUE jd = rt__valid_...
0
273,926
static void do_STOR(uev_t *w, void *arg, int events) { ctrl_t *ctrl = (ctrl_t *)arg; struct timeval tv; ssize_t bytes; size_t num; char buf[BUFFER_SIZE]; if (UEV_ERROR == events || UEV_HUP == events) { DBG("error on data_sd ..."); uev_io_start(w); return; } if (!ctrl->fp) { DBG("no fp for STOR, bailin...
0
353,021
bitStringValidate( Syntax *syntax, struct berval *in ) { ber_len_t i; /* very unforgiving validation, requires no normalization * before simplistic matching */ if( in->bv_len < 3 ) { return LDAP_INVALID_SYNTAX; } /* RFC 4517 Section 3.3.2 Bit String: * BitString = SQUOTE *binary-digit SQUOTE "B" *...
0
226,186
void tpyl_box_del(GF_Box *s) { gf_free((GF_NTYLBox *)s); }
0
482,489
compileGrouping(FileInfo *file, int noback, int nofor, TranslationTableHeader **table, DisplayTableHeader **displayTable) { int k; CharsString name; CharsString groupChars; CharsString groupDots; CharsString dotsParsed; if (!getToken(file, &name, "name operand")) return 0; if (!getRuleCharsText(file, &groupCha...
0
401,559
static inline void timer_base_lock_expiry(struct timer_base *base) { spin_lock(&base->expiry_lock); }
0
195,670
static pj_xml_node *xml_parse_node( pj_pool_t *pool, pj_scanner *scanner) { pj_xml_node *node; pj_str_t end_name; PJ_CHECK_STACK(); if (*scanner->curptr != '<') on_syntax_error(scanner); /* Handle Processing Instructino (PI) construct (i.e. "<?") */ if (*scanner->curptr == '<' && *(scanner->...
1
225,423
static void init_capture_param(struct v4l2_captureparm *capture_param) { MARK(); capture_param->capability = 0; capture_param->capturemode = 0; capture_param->extendedmode = 0; capture_param->readbuffers = max_buffers; capture_param->timeperframe.numerator = 1; capture_param->timeperframe.denominator = 30; }
0
244,314
GF_Err csgp_box_size(GF_Box *s) { u32 i, bits; GF_CompactSampleGroupBox *ptr = (GF_CompactSampleGroupBox*)s; u32 pattern_size = get_size_by_code( ((ptr->flags>>4) & 0x3) ); u32 scount_size = get_size_by_code( ((ptr->flags>>2) & 0x3) ); u32 index_size = get_size_by_code( (ptr->flags & 0x3) ); ptr->size += 12; //v...
0
221,488
flatpak_run_add_a11y_dbus_args (FlatpakBwrap *app_bwrap, FlatpakBwrap *proxy_arg_bwrap, FlatpakContext *context, FlatpakRunFlags flags) { static const char sandbox_socket_path[] = "/run/flatpak/at-spi-bus"; static co...
0
238,761
findmatchlimit( oparg_T *oap, int initc, int flags, int maxtravel) { static pos_T pos; // current search position int findc = 0; // matching brace int c; int count = 0; // cumulative number of braces int backwards = FALSE; // init for gcc int raw_string = FALSE; // se...
0
226,980
IRC_PROTOCOL_CALLBACK(368) { char *pos_args; struct t_irc_channel *ptr_channel; struct t_gui_buffer *ptr_buffer; struct t_irc_modelist *ptr_modelist; IRC_PROTOCOL_MIN_ARGS(4); pos_args = (argc > 4) ? ((argv_eol[4][0] == ':') ? argv_eol[4] + 1 : argv_eol[4]) : NULL; ptr_channel = i...
0
232,332
Bool gf_box_valid_in_parent(GF_Box *a, const char *parent_4cc) { if (!a || !a->registry || !a->registry->parents_4cc) return GF_FALSE; if (strstr(a->registry->parents_4cc, parent_4cc) != NULL) return GF_TRUE; return GF_FALSE;
0
233,821
void fmtutil_handle_exif(deark *c, i64 pos, i64 len) { fmtutil_handle_exif2(c, pos, len, NULL, NULL, NULL); }
0
473,931
mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower, OnigEncoding enc ARG_UNUSED) { const UChar* p = *pp; if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { *lower++ = 's'; *lower = 's'; (*pp)++; return 2; } *lo...
0
225,482
Status MutableGraphView::AddRegularFaninByPort(absl::string_view node_name, int port, const TensorId& fanin) { auto error_status = [node_name, port, fanin](absl::string_view msg) { string params = absl::Substitute("node_...
0
244,202
void clap_box_del(GF_Box *s) { GF_CleanApertureBox *ptr = (GF_CleanApertureBox*)s; if (ptr == NULL) return; gf_free(ptr); }
0
307,834
bool ciEnv::system_dictionary_modification_counter_changed() { return _system_dictionary_modification_counter != SystemDictionary::number_of_modifications(); }
0
211,700
int st21nfca_connectivity_event_received(struct nfc_hci_dev *hdev, u8 host, u8 event, struct sk_buff *skb) { int r = 0; struct device *dev = &hdev->ndev->dev; struct nfc_evt_transaction *transaction; pr_debug("connectivity gate event: %x\n", event); switch (event) { case ST21NFCA_EVT_CONNECTIVITY: r = nfc...
1
468,357
g_socket_client_enumerator_callback (GObject *object, GAsyncResult *result, gpointer user_data) { GSocketClientAsyncConnectData *data = user_data; GSocketAddress *address = NULL; GSocket *socket; ConnectionAttempt *attempt; GError *error = NULL; if (task_completed_or_cancelled (...
0
498,153
void cgit_print_docend(void) { html("</div> <!-- class=content -->\n"); if (ctx.cfg.embedded) { html("</div> <!-- id=cgit -->\n"); if (ctx.cfg.footer) html_include(ctx.cfg.footer); return; } if (ctx.cfg.footer) html_include(ctx.cfg.footer); else { htmlf("<div class='footer'>generated by <a href='http:...
0
237,878
qeh_in_on_new (void *stream_if_ctx, struct lsquic_stream *stream) { struct qpack_enc_hdl *const qeh = stream_if_ctx; qeh->qeh_dec_sm_in = stream; if (qeh->qeh_flags & QEH_INITIALIZED) lsquic_stream_wantread(qeh->qeh_dec_sm_in, 1); else qeh->qeh_conn = lsquic_stream_conn(stream); /* Or ...
0
249,516
inline unsigned int read_chunk(Reader* r, CHUNK* pChunk) { unsigned char len[4]; pChunk->size = 0; pChunk->p = 0; if (r->Read(&len, 4)) { const auto size = png_get_uint_32(len); // Check first, to avoid overflow. if (size > kMaxPNGChunkSize) { JXL_WARNING("APNG chunk size is too big"); r...
0
337,819
static struct sctp_chunk *sctp_make_asconf_ack(const struct sctp_association *asoc, __u32 serial, int vparam_len) { struct sctp_addiphdr asconf; struct sctp_chunk *retval; int length = sizeof(asconf) + vparam_len; /* Create the chunk. */ retval = sctp_make_control(asoc, SCTP_CID_ASCONF_ACK, 0, length...
0
390,625
CheckSetDeviceIndicators( char * wire, DeviceIntPtr dev, int num, int * status_rtrn, ClientPtr client) { xkbDeviceLedsWireDesc * ledWire; int i; XkbSrvLedInfoPtr sli; ledWire= (xkbDeviceLedsWireDesc *)wire; for (i=0;i<num;i++) { if (client->swapped) { register int n; swaps(&ledWi...
0
227,019
IRC_PROTOCOL_CALLBACK(341) { char *pos_channel; IRC_PROTOCOL_MIN_ARGS(5); pos_channel = (argv[4][0] == ':') ? argv[4] + 1 : argv[4]; weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer (server, argv[2], command, NULL, NULL), date, irc_protocol_tags (command, "irc_numeri...
0
195,404
void Compute(OpKernelContext* context) override { typedef Eigen::Map<const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>> ConstEigenMatrixMap; typedef Eigen::Map<Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>> EigenMatrixMap; constexpr int tensor_in_and_out_dims = 4; const Tenso...
1
313,844
nv_dollar(cmdarg_T *cap) { cap->oap->motion_type = MCHAR; cap->oap->inclusive = TRUE; // In virtual mode when off the edge of a line and an operator // is pending (whew!) keep the cursor where it is. // Otherwise, send it to the end of the line. if (!virtual_active() || gchar_cursor() != NUL ...
0
195,295
gen_assignment(codegen_scope *s, node *tree, node *rhs, int sp, int val) { int idx; int type = nint(tree->car); switch (type) { case NODE_GVAR: case NODE_ARG: case NODE_LVAR: case NODE_IVAR: case NODE_CVAR: case NODE_CONST: case NODE_NIL: case NODE_MASGN: if (rhs) { codegen(s, rhs, VAL)...
1