idx
int64
func
string
target
int64
224,283
GopherStateData(FwdState *aFwd) : entry(aFwd->entry), conversion(NORMAL), HTML_header_added(0), HTML_pre(0), type_id(GOPHER_FILE /* '0' */), overflowed(false), cso_recno(0), len(0), buf(NULL), fwd(aFwd) { *request = 0; ...
0
244,040
GF_Box *dmlp_box_new() { ISOM_DECL_BOX_ALLOC(GF_TrueHDConfigBox, GF_ISOM_BOX_TYPE_DMLP); return (GF_Box *)tmp; }
0
498,624
flip_line (guchar *buf, tga_info *info) { guchar temp; guchar *alt; gint x, s; alt = buf + (info->bytes * (info->width - 1)); for (x = 0; x * 2 < info->width; x++) { for (s = 0; s < info->bytes; ++s) { temp = buf[s]; buf[s] = alt[s]; alt[s] = ...
0
500,080
kssl_krb5_kt_default(krb5_context con, krb5_keytab * kt) { if (!krb5_loaded) load_krb5_dll(); if ( p_krb5_kt_default ) return(p_krb5_kt_default(con,kt)); else return KRB5KRB_ERR_GENERIC; }
0
512,801
longlong val_int() { return cached_time.to_longlong(); }
0
436,130
static int io_do_iopoll(struct io_ring_ctx *ctx, unsigned int *nr_events, long min) { struct io_kiocb *req, *tmp; LIST_HEAD(done); bool spin; int ret; /* * Only spin for completions if we don't have multiple devices hanging * off our complete list, and we're under the requested amount. */ spin = !ctx->p...
0
409,437
cursor_unsleep(void) { cursor_is_asleep = FALSE; cursor_on(); }
0
463,130
static void store_proxy(const char *server, void *data __attribute__((unused)), void *rock) { struct proxy_rock *prock = (struct proxy_rock *) rock; proxy_store_func(server, prock->mbox_pat, prock->entryatts); }
0
442,959
win_redr_status(win_T *wp, int ignore_pum UNUSED) { int row; char_u *p; int len; int fillchar; int attr; int this_ru_col; static int busy = FALSE; // It's possible to get here recursively when 'statusline' (indirectly) // invokes ":redrawstatus". Simply ignore the call then. ...
0
294,633
d_lite_england(VALUE self) { return dup_obj_with_new_start(self, ENGLAND); }
0
329,921
_cairo_image_traps_compositor_get (void) { static cairo_atomic_once_t once = CAIRO_ATOMIC_ONCE_INIT; static cairo_traps_compositor_t compositor; if (_cairo_atomic_init_once_enter(&once)) { _cairo_traps_compositor_init(&compositor, &__cairo_no_compositor); compositor.acquire = acquire; composito...
0
226,262
GF_Box *dref_box_new() { ISOM_DECL_BOX_ALLOC(GF_DataReferenceBox, GF_ISOM_BOX_TYPE_DREF); return (GF_Box *)tmp; }
0
437,318
compile_tree(Node* node, regex_t* reg, ScanEnv* env) { int n, len, pos, r = 0; switch (NODE_TYPE(node)) { case NODE_LIST: do { r = compile_tree(NODE_CAR(node), reg, env); } while (r == 0 && IS_NOT_NULL(node = NODE_CDR(node))); break; case NODE_ALT: { Node* x = node; len = 0; ...
0
218,970
Status ConstantFolding::RemoveShuffleOrTranspose( const GraphProperties& properties, bool use_shape_info, GraphDef* optimized_graph, NodeDef* node) { if (!use_shape_info || !(IsShuffle(*node) || IsTranspose(*node))) return Status::OK(); Tensor permutation_tensor; if (GetTensorFromConstNode(node->input...
0
484,768
static bool xennet_tx_buf_gc(struct netfront_queue *queue) { RING_IDX cons, prod; unsigned short id; struct sk_buff *skb; bool more_to_do; bool work_done = false; const struct device *dev = &queue->info->netdev->dev; BUG_ON(!netif_carrier_ok(queue->info->netdev)); do { prod = queue->tx.sring->rsp_prod; if...
0
224,891
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 // ...
0
247,342
int pgpDigParamsCmp(pgpDigParams p1, pgpDigParams p2) { int rc = 1; /* assume different, eg if either is NULL */ if (p1 && p2) { /* XXX Should we compare something else too? */ if (p1->tag != p2->tag) goto exit; if (p1->hash_algo != p2->hash_algo) goto exit; if (p1->pubkey_algo != p2->pubkey_algo)...
0
336,594
void reds_send_device_display_info(RedsState *reds) { if (!reds->agent_dev->priv->agent_attached) { return; } if (!reds->agent_dev->priv->agent_supports_graphics_device_info) { return; } g_debug("Sending device display info to the agent:"); SpiceMarshaller *m = spice_marshaller...
0
369,158
static int io_register_personality(struct io_ring_ctx *ctx) { const struct cred *creds; u32 id; int ret; creds = get_current_cred(); ret = xa_alloc_cyclic(&ctx->personalities, &id, (void *)creds, XA_LIMIT(0, USHRT_MAX), &ctx->pers_next, GFP_KERNEL); if (ret < 0) { put_cred(creds); return ret; } return...
0
355,652
eval3(char_u **arg, typval_T *rettv, evalarg_T *evalarg) { char_u *p; int getnext; /* * Get the first variable. */ if (eval4(arg, rettv, evalarg) == FAIL) return FAIL; /* * Handle the "&&" operator. */ p = eval_next_non_blank(*arg, evalarg, &getnext); if (p[0] == '&' ...
0
452,996
static void nft_immediate_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) { const struct nft_immediate_expr *priv = nft_expr_priv(expr); const struct nft_data *data = &priv->data; struct nft_rule *rule, *n; struct nft_ctx chain_ctx; struct nft_chain *chain; if (priv->dreg != NFT_REG_VERDICT...
0
222,530
string DebugStringWhole(const GraphDef& gdef) { string ret; for (const auto& fdef : gdef.library().function()) { strings::StrAppend(&ret, Print(fdef)); } strings::StrAppend(&ret, "\n"); for (const auto& ndef : gdef.node()) { strings::StrAppend(&ret, Print(ndef), "\n"); } return ret; }
0
393,474
static SQInteger closure_bindenv(HSQUIRRELVM v) { if(SQ_FAILED(sq_bindenv(v,1))) return SQ_ERROR; return 1; }
0
437,388
renumber_node_backref(Node* node, GroupNumRemap* map) { int i, pos, n, old_num; int *backs; BackRefNode* bn = BACKREF_(node); if (! NODE_IS_BY_NAME(node)) return ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED; old_num = bn->back_num; if (IS_NULL(bn->back_dynamic)) backs = bn->back_static; else ...
0
90,192
void UpdateSystemInfo() { if (EnsureCrosLoaded()) { UpdateNetworkManagerStatus(); } }
0
279,903
ex_global(exarg_T *eap) { linenr_T lnum; // line number according to old situation int ndone = 0; int type; // first char of cmd: 'v' or 'g' char_u *cmd; // command argument char_u delim; // delimiter, normally '/' char_u *pat; regmmatch_T regmatch; int match; int which_pat;...
0
282,984
static ptrdiff_t finderrfunc(lua_State *L) { cTValue *frame = L->base-1, *bot = tvref(L->stack); void *cf = L->cframe; while (frame > bot && cf) { while (cframe_nres(cframe_raw(cf)) < 0) { /* cframe without frame? */ if (frame >= restorestack(L, -cframe_nres(cf))) break; if (cframe_errfunc(cf) >...
0
445,987
_fr_window_notify_creation_complete (FrWindow *window) { char *basename; char *message; NotifyNotification *notification; gboolean notification_supports_actions; GList *caps; NotifyData *notify_data; basename = _g_file_get_display_basename (window->pri...
0
500,068
kssl_krb5_get_credentials(krb5_context CO, krb5_const krb5_flags F, krb5_ccache CC, krb5_creds * pCR, krb5_creds ** ppCR) { if (!krb5_loaded) load_krb5_dll(); if ( p_krb5_get_credentials ) return(p_krb5_get_cre...
0
226,239
GF_Err traf_box_size(GF_Box *s) { u32 pos=0; GF_TrackFragmentBox *ptr = (GF_TrackFragmentBox *) s; //Header first gf_isom_check_position(s, (GF_Box *)ptr->tfhd, &pos); gf_isom_check_position_list(s, ptr->sub_samples, &pos); gf_isom_check_position(s, (GF_Box *)ptr->tfdt, &pos); //cmaf-like if (ptr->truns_firs...
0
355,630
partial_unref(partial_T *pt) { if (pt != NULL) { if (--pt->pt_refcount <= 0) partial_free(pt); // If the reference count goes down to one, the funcstack may be the // only reference and can be freed if no other partials reference it. else if (pt->pt_refcount == 1 && pt->pt_funcstack != NULL) func...
0
437,688
static inline int cx23888_ir_and_or4(struct cx23885_dev *dev, u32 addr, u32 and_mask, u32 or_value) { cx_andor(addr, ~and_mask, or_value); return 0; }
0
462,436
processWorkItem(epolld_t *epd) { int continue_polling = 1; switch(epd->typ) { case epolld_lstn: /* listener never stops polling (except server shutdown) */ lstnActivity((ptcplstn_t *) epd->ptr); break; case epolld_sess: sessActivity((ptcpsess_t *) epd->ptr, &continue_polling); break; default: errmsg.L...
0
248,259
DLLIMPORT void *cfg_getnptr(cfg_t *cfg, const char *name, unsigned int index) { return cfg_opt_getnptr(cfg_getopt(cfg, name), index); }
0
437,716
static inline u16 count_to_clock_divider(unsigned int d) { if (d > RXCLK_RCD + 1) d = RXCLK_RCD; else if (d < 2) d = 1; else d--; return (u16) d; }
0
233,897
*/ static int wddx_stack_destroy(wddx_stack *stack) { register int i; if (stack->elements) { for (i = 0; i < stack->top; i++) { zval_ptr_dtor(&((st_entry *)stack->elements[i])->data); if (((st_entry *)stack->elements[i])->varname) { efree(((st_entry *)stack->elements[i])->varname); } efree(stack->...
0
402,662
generate_spc_signer_info(cms_context *cms, SpcSignerInfo *sip) { if (!sip) return -1; SpcSignerInfo si; memset(&si, '\0', sizeof (si)); if (SEC_ASN1EncodeInteger(cms->arena, &si.CMSVersion, 1) == NULL) { cms->log(cms, LOG_ERR, "could not encode CMSVersion: %s", PORT_ErrorToString(PORT_GetError())); goto ...
0
231,756
folly::Optional<ClientTransportParameters> getClientTransportParams() override { std::vector<TransportParameter> transportParams; transportParams.push_back(encodeIntegerParameter( TransportParameterId::initial_max_stream_data_bidi_local, kDefaultStreamWindowSize)); transportParams.pu...
0
256,457
void janet_lib_array(JanetTable *env) { JanetRegExt array_cfuns[] = { JANET_CORE_REG("array/new", cfun_array_new), JANET_CORE_REG("array/new-filled", cfun_array_new_filled), JANET_CORE_REG("array/fill", cfun_array_fill), JANET_CORE_REG("array/pop", cfun_array_pop), JANET_CORE...
0
384,785
read_file_or_blob(typval_T *argvars, typval_T *rettv, int always_blob) { int binary = FALSE; int blob = always_blob; int failed = FALSE; char_u *fname; FILE *fd; char_u buf[(IOSIZE/256)*256]; // rounded to avoid odd + 1 int io_size = sizeof(buf); int readlen; // size of last fread(...
0
335,434
one_letter_cmd(char_u *p, cmdidx_T *idx) { if (in_vim9script()) return FALSE; if (*p == 'k') { *idx = CMD_k; return TRUE; } if (p[0] == 's' && ((p[1] == 'c' && (p[2] == NUL || (p[2] != 's' && p[2] != 'r' && (p[3] == NUL || (p[3] != 'i' && p[4] != 'p'))))) || p[1] == 'g' || (p[1] == 'i...
0
247,720
TEST_P(SslSocketTest, GetCertDigestServerCertWithIntermediateCA) { 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/no_san_cert.pem" private_key: filename: ...
0
294,460
set_of(union DateData *x, int of) { assert(complex_dat_p(x)); get_c_jd(x); get_c_df(x); clear_civil(x); x->c.of = of; }
0
359,355
DEFUN (router_bgp, router_bgp_cmd, "router bgp <1-65535>", ROUTER_STR BGP_STR AS_STR) { int ret; as_t as; struct bgp *bgp; const char *name = NULL; VTY_GET_INTEGER_RANGE ("AS", as, argv[0], 1, 65535); if (argc == 2) name = argv[1]; ret = bgp_get (&bgp, &as, name...
0
225,103
Status AllowedTypeValue(DataType dt, const OpDef::AttrDef& attr) { const AttrValue& allowed_values(attr.allowed_values()); for (auto allowed : allowed_values.list().type()) { if (dt == allowed) { return Status::OK(); } } string allowed_str; for (int i = 0; i < allowed_values.list().type_size(); ...
0
512,640
Item *Item_func_ne::negated_item(THD *thd) /* a != b -> a = b */ { return new (thd->mem_root) Item_func_eq(thd, args[0], args[1]); }
0
491,950
int fuse_fsync_common(struct file *file, struct dentry *de, int datasync, int isdir) { struct inode *inode = de->d_inode; struct fuse_conn *fc = get_fuse_conn(inode); struct fuse_file *ff = file->private_data; struct fuse_req *req; struct fuse_fsync_in inarg; int err; if (is_bad_inode(inode)) return -...
0
344,267
static const char *varinfo (lua_State *L, const TValue *o) { CallInfo *ci = L->ci; const char *name = NULL; /* to avoid warnings */ const char *kind = NULL; if (isLua(ci)) { kind = getupvalname(ci, o, &name); /* check whether 'o' is an upvalue */ if (!kind && isinstack(ci, o)) /* no? try a register *...
0
462,559
void controller::mark_deleted(const std::string& guid, bool b) { rsscache->mark_item_deleted(guid, b); }
0
221,694
Socket *Socket::accept() { peer_adr_length = sizeof(struct sockaddr_in); s_errno = 0; errno = 0; // int newfd = this->baseAccept((struct sockaddr *)&peer_adr, &peer_adr_length); int newfd = ::accept(sck, (struct sockaddr *) &peer_adr, &peer_adr_length); if (newfd > 0) { Socket *s = new S...
0
386,550
void DL_Dxf::addLeader(DL_CreationInterface* creationInterface) { // leader (arrow) DL_LeaderData le( // arrow head flag getIntValue(71, 1), // leader path type getIntValue(72, 0), // Leader creation flag getIntValue(73, 3), // Hookline direction flag ...
0
292,605
int puma_parser_has_error(puma_parser *parser) { return parser->cs == puma_parser_error; }
0
484,754
static void xennet_poll_controller(struct net_device *dev) { /* Poll each queue */ struct netfront_info *info = netdev_priv(dev); unsigned int num_queues = dev->real_num_tx_queues; unsigned int i; if (info->broken) return; for (i = 0; i < num_queues; ++i) xennet_interrupt(0, &info->queues[i]); }
0
246,207
Status SparseCountSparseOutputShapeFn(InferenceContext *c) { ShapeHandle unused; TF_RETURN_IF_ERROR(c->WithRank(c->input(0), 2, &unused)); auto rank = c->Dim(c->input(0), 1); auto nvals = c->UnknownDim(); c->set_output(0, c->Matrix(nvals, rank)); // out.indices c->set_output(1, c->Vector(nvals)); //...
0
349,253
static void read_block_list(unsigned int *block_list, long long start, unsigned int offset, int blocks) { int res; TRACE("read_block_list: blocks %d\n", blocks); if(swap) { char *block_ptr = malloc(blocks * sizeof(unsigned int)); if(block_ptr == NULL) MEM_ERROR(); res = read_inode_data(block_ptr, &st...
0
242,637
static GF_Err isoffin_process(GF_Filter *filter) { ISOMReader *read = gf_filter_get_udta(filter); u32 i, count = gf_list_count(read->channels); Bool is_active = GF_FALSE; Bool in_is_eos = GF_FALSE; Bool check_forced_end = GF_FALSE; Bool has_new_data = GF_FALSE; u64 min_offset_plus_one = 0; u32 nb_forced_end=0; ...
0
316,992
static int selinux_netlink_send(struct sock *sk, struct sk_buff *skb) { int rc = 0; unsigned int msg_len; unsigned int data_len = skb->len; unsigned char *data = skb->data; struct nlmsghdr *nlh; struct sk_security_struct *sksec = sk->sk_security; u16 sclass = sksec->sclass; u32 perm; while (data_len >= nlmsg_...
0
254,906
intrusive_ptr<DocumentSource> DocumentSourceGroup::optimize() { // TODO: If all _idExpressions are ExpressionConstants after optimization, then we know there // will be only one group. We should take advantage of that to avoid going through the hash // table. for (size_t i = 0; i < _idExpressions.size()...
0
414,928
xmlXPathFormatNumber(double number, char buffer[], int buffersize) { switch (xmlXPathIsInf(number)) { case 1: if (buffersize > (int)sizeof("Infinity")) snprintf(buffer, buffersize, "Infinity"); break; case -1: if (buffersize > (int)sizeof("-Infinity")) snprintf(buffer, buffersize, "-Infinity");...
0
195,085
setup_seccomp (FlatpakBwrap *bwrap, const char *arch, gulong allowed_personality, FlatpakRunFlags run_flags, GError **error) { gboolean multiarch = (run_flags & FLATPAK_RUN_FLAG_MULTIARCH) != 0; gboolean devel = (run_flags & FLATPAK_R...
1
312,410
make_get_auname(cmdidx_T cmdidx) { switch (cmdidx) { case CMD_make: return (char_u *)"make"; case CMD_lmake: return (char_u *)"lmake"; case CMD_grep: return (char_u *)"grep"; case CMD_lgrep: return (char_u *)"lgrep"; case CMD_grepadd: return (char_u *)"grepadd"; case CMD_lgrepadd: retur...
0
252,295
mz_ulong mz_deflateBound(mz_streamp pStream, mz_ulong source_len) { (void)pStream; // This is really over conservative. (And lame, but it's actually pretty // tricky to compute a true upper bound given the way tdefl's blocking works.) return MZ_MAX(128 + (source_len * 110) / 100, 128 + source_le...
0
482,531
create_macro(const char *name, const widechar *definition, int definition_length, const int *substitutions, int substitution_count, int argument_count) { Macro *m = malloc(sizeof(Macro)); m->name = strdup(name); widechar *definition_copy = malloc(definition_length * sizeof(widechar)); memcpy(definition_copy, defi...
0
484,743
static int xennet_get_extras(struct netfront_queue *queue, struct xen_netif_extra_info *extras, RING_IDX rp) { struct xen_netif_extra_info extra; struct device *dev = &queue->info->netdev->dev; RING_IDX cons = queue->rx.rsp_cons; int err = 0; do { struct sk_buff *skb; grant_ref_t ref; if (...
0
487,626
int srcu_notifier_chain_unregister(struct srcu_notifier_head *nh, struct notifier_block *n) { int ret; /* * This code gets used during boot-up, when task switching is * not yet working and interrupts must remain disabled. At * such times we must not call mutex_lock(). */ if (unlikely(system_state == SYST...
0
265,044
free_colour_buffer(void) { if (--colseq_buf_allocs) return; DPUTS(!colseq_buf, "Freeing colour sequence buffer without alloc"); /* Free buffer for colour code composition */ free(colseq_buf); colseq_buf = NULL; }
0
336,643
static void reds_channel_init_auth_caps(RedLinkInfo *link, RedChannel *channel) { RedsState *reds = link->reds; if (reds->config->sasl_enabled && !link->skip_auth) { channel->set_common_cap(SPICE_COMMON_CAP_AUTH_SASL); } else { channel->set_common_cap(SPICE_COMMON_CAP_AUTH_SPICE); } }
0
369,193
static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr) __must_hold(&ctx->uring_lock) { unsigned int entries = io_sqring_entries(ctx); int submitted = 0; if (unlikely(!entries)) return 0; /* make sure SQ entry isn't read before tail */ nr = min3(nr, ctx->sq_entries, entries); io_get_task_refs(nr);...
0
512,745
void Item_is_not_null_test::update_used_tables() { if (!args[0]->maybe_null) used_tables_cache= 0; /* is always true */ else args[0]->update_used_tables(); }
0
413,842
void LinkResolver::resolve_invokedynamic(CallInfo& result, const constantPoolHandle& pool, int indy_index, TRAPS) { ConstantPoolCacheEntry* cpce = pool->invokedynamic_cp_cache_entry_at(indy_index); int pool_index = cpce->constant_pool_index(); // Resolve the bootstrap specifier (BSM + optional arguments). Boot...
0
411,913
networkstatus_parse_detached_signatures(const char *s, const char *eos) { /* XXXX there is too much duplicate shared between this function and * networkstatus_parse_vote_from_string(). */ directory_token_t *tok; memarea_t *area = NULL; digests_t *digests; smartlist_t *tokens = smartlist_create(); ns_det...
0
225,430
static int v4l2_loopback_close(struct file *file) { struct v4l2_loopback_opener *opener; struct v4l2_loopback_device *dev; int iswriter = 0; MARK(); opener = fh_to_opener(file->private_data); dev = v4l2loopback_getdevice(file); if (WRITER == opener->type) iswriter = 1; atomic_dec(&dev->open_count); if (de...
0
455,302
init_unix_command_map () { emacs_std_cmd_xmap = rl_make_bare_keymap (); emacs_std_cmd_xmap[CTRL('X')].type = ISKMAP; emacs_std_cmd_xmap[CTRL('X')].function = KEYMAP_TO_FUNCTION (rl_make_bare_keymap ()); emacs_std_cmd_xmap[ESC].type = ISKMAP; emacs_std_cmd_xmap[ESC].function = KEYMAP_TO_FUNCTION (rl_make_bare...
0
222,881
GraphProperties::GetOutputProperties(const string& node_name) const { auto it = output_properties_.find(node_name); if (it != output_properties_.end()) { return it->second; } return missing_properties_; }
0
211,506
int ZEXPORT inflate(strm, flush) z_streamp strm; int flush; { struct inflate_state FAR *state; z_const unsigned char FAR *next; /* next input */ unsigned char FAR *put; /* next output */ unsigned have, left; /* available input and output */ unsigned long hold; /* bit buffer */ ...
1
401,530
int timer_reduce(struct timer_list *timer, unsigned long expires) { return __mod_timer(timer, expires, MOD_TIMER_REDUCE); }
0
424,921
static int iwl_pcie_load_cpu_sections_8000(struct iwl_trans *trans, const struct fw_img *image, int cpu, int *first_ucode_section) { int shift_param; int i, ret = 0, sec_num = 0x1; u32 val, last_read_idx = 0; if (cpu == 1) { shift_param = 0; *first_ucode_section = 0; } else { shift_p...
0
432,197
void memory_listener_register(MemoryListener *listener, AddressSpace *as) { listener->address_space = as; QTAILQ_INSERT_TAIL(&as->uc->memory_listeners, listener, link); QTAILQ_INSERT_TAIL(&as->listeners, listener, link_as); listener_add_address_space(listener, as); }
0
474,040
gbk_left_adjust_char_head(const UChar* start, const UChar* s, const UChar* end, OnigEncoding enc) { const UChar *p; int len; if (s <= start) return (UChar* )s; p = s; if (GBK_ISMB_TRAIL(*p)) { while (p > start) { if (! GBK_ISMB_FIRST(*--p)) { p++; break; } } } len = enclen(enc, p, ...
0
338,224
bool WasmBinaryBuilder::maybeVisitSIMDLoad(Expression*& out, uint32_t code) { if (code == BinaryConsts::V128Load) { auto* curr = allocator.alloc<Load>(); curr->type = Type::v128; curr->bytes = 16; readMemoryAccess(curr->align, curr->offset); curr->isAtomic = false; curr->ptr = popNonVoidExpres...
0
308,158
static void *fastrpc_kmap(struct dma_buf *dmabuf, unsigned long pgnum) { struct fastrpc_buf *buf = dmabuf->priv; return buf->virt ? buf->virt + pgnum * PAGE_SIZE : NULL; }
0
221,645
llvh::Optional<NumericOrder> getNumericOrder(Literal *LHS, Literal *RHS) { auto *L = llvh::dyn_cast<LiteralNumber>(LHS); auto *R = llvh::dyn_cast<LiteralNumber>(RHS); if (!L || !R) return llvh::None; double l = L->getValue(); double r = R->getValue(); if (l < r) return NumericOrder::LessThan; i...
0
273,905
static int check_user_pass(ctrl_t *ctrl) { if (!ctrl->name[0]) return -1; if (!strcmp("anonymous", ctrl->name)) return 1; return 0; }
0
385,883
SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) { const struct cred *old_cred; struct cred *override_cred; struct path path; struct inode *inode; int res; unsigned int lookup_flags = LOOKUP_FOLLOW; if (mode & ~S_IRWXO) /* where's F_OK, X_OK, W_OK, R_OK? */ return -EINVAL; over...
0
508,823
TABLE_LIST *LEX::unlink_first_table(bool *link_to_local) { TABLE_LIST *first; if ((first= query_tables)) { /* Exclude from global table list */ if ((query_tables= query_tables->next_global)) query_tables->prev_global= &query_tables; else query_tables_last= &query_tables; firs...
0
226,126
GF_Err reftype_box_size(GF_Box *s) { GF_TrackReferenceTypeBox *ptr = (GF_TrackReferenceTypeBox *)s; if (ptr->trackIDCount) ptr->size += (ptr->trackIDCount * sizeof(u32)); return GF_OK;
0
225,640
void rssr_box_del(GF_Box *s) { gf_free(s); }
0
443,694
is_valid_mbc_string(const UChar* s, const UChar* end) { return onigenc_length_check_is_valid_mbc_string(ONIG_ENCODING_UTF16_BE, s, end); }
0
241,042
static int setup_transport(void) { int rv; rv = transport()->init(message_recv); if (rv < 0) { log_error("failed to init booth_transport %s", transport()->name); goto out; } rv = booth_transport[TCP].init(NULL); if (rv < 0) { log_error("failed to init booth_transport[TCP]"); goto out; } out: return r...
0
206,946
cmdopts_t *cmdopts_parse(int argc, char **argv) { enum { CMDOPT_HELP = 0, CMDOPT_VERBOSE, CMDOPT_QUIET, CMDOPT_INFILE, CMDOPT_INFMT, CMDOPT_INOPT, CMDOPT_OUTFILE, CMDOPT_OUTFMT, CMDOPT_OUTOPT, CMDOPT_VERSION, CMDOPT_DEBUG, CMDOPT_CMPTNO, CMDOPT_SRGB, CMDOPT_MAXMEM, CMDOPT_LIST_ENABLED_COD...
1
313,800
nv_bck_word(cmdarg_T *cap) { cap->oap->motion_type = MCHAR; cap->oap->inclusive = FALSE; curwin->w_set_curswant = TRUE; if (bck_word(cap->count1, cap->arg, FALSE) == FAIL) clearopbeep(cap->oap); #ifdef FEAT_FOLDING else if ((fdo_flags & FDO_HOR) && KeyTyped && cap->oap->op_type == OP_NOP) foldOpen...
0
333,060
nfa_emit_equi_class(int c) { #define EMIT2(c) EMIT(c); EMIT(NFA_CONCAT); if (enc_utf8 || STRCMP(p_enc, "latin1") == 0 || STRCMP(p_enc, "iso-8859-15") == 0) { #ifdef EBCDIC # define A_circumflex 0x62 # define A_diaeresis 0x63 # define A_grave 0x64 # define A_acute 0x65 # define A_virguilla 0x66 # defin...
0
462,435
DataRcvd(ptcpsess_t *pThis, char *pData, size_t iLen) { struct syslogTime stTime; DEFiRet; pThis->pLstn->rcvdBytes += iLen; if(pThis->compressionMode >= COMPRESS_STREAM_ALWAYS) iRet = DataRcvdCompressed(pThis, pData, iLen); else iRet = DataRcvdUncompressed(pThis, pData, iLen, &stTime, 0); RETiRet; }
0
299,981
static void __exit elo_driver_exit(void) { hid_unregister_driver(&elo_driver); destroy_workqueue(wq); }
0
344,816
strdelim_internal(char **s, int split_equals) { char *old; int wspace = 0; if (*s == NULL) return NULL; old = *s; *s = strpbrk(*s, split_equals ? WHITESPACE QUOTE "=" : WHITESPACE QUOTE); if (*s == NULL) return (old); if (*s[0] == '\"') { memmove(*s, *s + 1, strlen(*s)); /* move nul too */ /* Fi...
0
273,404
void Compute(OpKernelContext* ctx) override { const Tensor* seq_len_max_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->input("seq_len_max", &seq_len_max_tensor)); const Tensor* x; OP_REQUIRES_OK(ctx, ctx->input("x", &x)); OP_REQUIRES(ctx, x->dims() == 3, errors::InvalidArgument("x must be 3D")); ...
0
453,042
static void nft_flow_rule_offload_abort(struct net *net, struct nft_trans *trans) { struct nftables_pernet *nft_net = nft_pernet(net); int err = 0; list_for_each_entry_continue_reverse(trans, &nft_net->commit_list, list) { if (trans->ctx.family != NFPROTO_NETDEV) continue; switch (trans->msg_type) { ...
0
509,509
void ha_maria::start_bulk_insert(ha_rows rows, uint flags) { DBUG_ENTER("ha_maria::start_bulk_insert"); THD *thd= table->in_use; MARIA_SHARE *share= file->s; bool index_disabled= 0; DBUG_PRINT("info", ("start_bulk_insert: rows %lu", (ulong) rows)); /* don't enable row cache if too few rows */ if ((!rows ...
0
379,659
R_API void r_anal_extract_rarg(RAnal *anal, RAnalOp *op, RAnalFunction *fcn, int *reg_set, int *count) { int i, argc = 0; r_return_if_fail (anal && op && fcn); const char *opsreg = op->src[0] ? get_regname (anal, op->src[0]) : NULL; const char *opdreg = op->dst ? get_regname (anal, op->dst) : NULL; const int size ...
0
512,520
TYPELIB *get_typelib() const { return NULL; }
0