idx
int64
func
string
target
int64
404,699
void set_close_on_exec(unsigned int fd, int flag) { struct files_struct *files = current->files; struct fdtable *fdt; spin_lock(&files->file_lock); fdt = files_fdtable(files); if (flag) __set_close_on_exec(fd, fdt); else __clear_close_on_exec(fd, fdt); spin_unlock(&files->file_lock); }
0
313,144
testStorageFileGetMetadata(const char *path, int format, uid_t uid, gid_t gid) { struct stat st; g_autoptr(virStorageSource) def = NULL; if (!(def = virStorageSourceNew())) return NULL; def->type = VIR_STORAGE_TYPE_FILE; def->format = f...
0
230,454
ra_input(void) { uip_lladdr_t lladdr_aligned; LOG_INFO("Received RA from "); LOG_INFO_6ADDR(&UIP_IP_BUF->srcipaddr); LOG_INFO_(" to "); LOG_INFO_6ADDR(&UIP_IP_BUF->destipaddr); LOG_INFO_("\n"); UIP_STAT(++uip_stat.nd6.recv); #if UIP_CONF_IPV6_CHECKS if((UIP_IP_BUF->ttl != UIP_ND6_HOP_LIMIT) || (!...
0
513,276
bool JOIN::setup_subquery_caches() { DBUG_ENTER("JOIN::setup_subquery_caches"); /* We have to check all this condition together because items created in one of this clauses can be moved to another one by optimizer */ if (select_lex->expr_cache_may_be_used[IN_WHERE] || select_lex->expr_cache_may_b...
0
453,033
static int nft_chain_offload_cmd(struct nft_base_chain *basechain, struct net_device *dev, enum flow_block_command cmd) { int err; if (dev->netdev_ops->ndo_setup_tc) err = nft_block_offload_cmd(basechain, dev, cmd); else err = nft_indr_block_offload_cmd(basechain, dev, cmd); return err; }
0
229,147
static size_t write_to_port(VirtIOSerialPort *port, const uint8_t *buf, size_t size) { VirtQueueElement elem; VirtQueue *vq; size_t offset; vq = port->ivq; if (!virtio_queue_ready(vq)) { return 0; } offset = 0; while (offset < size) { size_t ...
0
210,928
void jfs_evict_inode(struct inode *inode) { struct jfs_inode_info *ji = JFS_IP(inode); jfs_info("In jfs_evict_inode, inode = 0x%p", inode); if (!inode->i_nlink && !is_bad_inode(inode)) { dquot_initialize(inode); if (JFS_IP(inode)->fileset == FILESYSTEM_I) { truncate_inode_pages_final(&inode->i_data); i...
1
333,053
state_in_list( nfa_list_T *l, // runtime state list nfa_state_T *state, // state to update regsubs_T *subs) // pointers to subexpressions { if (state->lastlist[nfa_ll_index] == l->id) { if (!rex.nfa_has_backref || has_state_with_pos(l, state, subs, NULL)) return TRUE; } return FALSE...
0
364,775
findtags_state_free(findtags_state_T *st) { vim_free(st->tag_fname); vim_free(st->lbuf); vim_regfree(st->orgpat->regmatch.regprog); vim_free(st->orgpat); #ifdef FEAT_EMACS_TAGS vim_free(st->ebuf); #endif }
0
254,880
MONGO_COMPILER_NOINLINE DocumentSource::GetNextResult DocumentSourceGroup::initializeSelf( GetNextResult input) { const size_t numAccumulators = _accumulatedFields.size(); // Barring any pausing, this loop exhausts 'pSource' and populates '_groups'. for (; input.isAdvanced(); input = pSource->getNext())...
0
229,226
std::tuple<net::inet_address, int, client_type> cql_server::connection::make_client_key(const service::client_state& cli_state) { return std::make_tuple(cli_state.get_client_address().addr(), cli_state.get_client_port(), cli_state.is_thrift() ? client_type::thrift : client_type::cql); }
0
204,073
static char ** split(const char *arg, const char *delim) { char *copy = dupstr(arg); char **result = NULL; int i = 0; for (char *cptr = strtok(copy, delim); cptr; cptr = strtok(NULL, delim)) { char **tmp = realloc (result, sizeof *result * (i + 1)); if (!tmp && result) { while (i > 0) { free(res...
1
198,117
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
265,442
static char *sqfs_resolve_symlink(struct squashfs_symlink_inode *sym, const char *base_path) { char *resolved, *target; u32 sz; sz = get_unaligned_le32(&sym->symlink_size); target = malloc(sz + 1); if (!target) return NULL; /* * There is no trailling null byte in the symlink's target path, so a * co...
0
335,415
restore_current_state(save_state_T *sst) { // Restore the previous typeahead. restore_typeahead(&sst->tabuf, FALSE); msg_scroll = sst->save_msg_scroll; restart_edit = sst->save_restart_edit; p_im = sst->save_insertmode; finish_op = sst->save_finish_op; opcount = sst->save_opcount; reg_e...
0
502,692
int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c) { return remove_session_lock(ctx, c, 1); }
0
262,027
ServiceProtoDispatchRequest(ServiceConnection *conn, ProtoRequest *req) { VGAuthError err; gchar *packet; /* * Many requests must come across a superUser owned pipe. * Verify that here. */ err = Proto_SecurityCheckRequest(conn, req); if (err != VGAUTH_E_OK) { ...
0
225,554
TfLiteStatus TfLiteTensorCopy(const TfLiteTensor* src, TfLiteTensor* dst) { if (!src || !dst) return kTfLiteOk; if (src->bytes != dst->bytes) return kTfLiteError; if (src == dst) return kTfLiteOk; dst->type = src->type; if (dst->dims) TfLiteIntArrayFree(dst->dims); dst->dims = TfLiteIntArra...
0
384,913
skipwhite_and_nl(char_u *q) { char_u *p = q; while (VIM_ISWHITE(*p) || *p == NL) ++p; return p; }
0
224,194
gen_hash(codegen_scope *s, node *tree, int val, int limit) { int slimit = GEN_VAL_STACK_MAX; if (cursp() >= GEN_LIT_ARY_MAX) slimit = INT16_MAX; int len = 0; mrb_bool update = FALSE; mrb_bool first = TRUE; while (tree) { if (nint(tree->car->car->car) == NODE_KW_REST_ARGS) { if (val && first) { ...
0
336,612
static void reds_handle_sasl_result(void *opaque, RedSaslError status) { RedLinkInfo *link = (RedLinkInfo *)opaque; switch (status) { case RED_SASL_ERROR_OK: reds_handle_link(link); break; case RED_SASL_ERROR_INVALID_DATA: reds_send_link_error(link, SPICE_LINK_ERR_INVALID_DATA);...
0
309,806
bcd_expression(const char *str) { /* leave this non-const for HPUX */ static char fmt[] = "%%p%c%%{10}%%/%%{16}%%*%%p%c%%{10}%%m%%+"; int len = 0; char ch1, ch2; if (sscanf(str, fmt, &ch1, &ch2) == 2 && isdigit(UChar(ch1)) && isdigit(UChar(ch2)) && (ch1 == ch2)) { len = 28; #ifndef NDEBUG { ...
0
430,373
void seq_hex_dump(struct seq_file *m, const char *prefix_str, int prefix_type, int rowsize, int groupsize, const void *buf, size_t len, bool ascii) { const u8 *ptr = buf; int i, linelen, remaining = len; char *buffer; size_t size; int ret; if (rowsize != 16 && rowsize != 32) rowsize = 16; for (i = 0;...
0
286,737
static int SWTPM_HMAC(unsigned char *md, unsigned int *md_len, const void *key, int key_len, const unsigned char *in, uint32_t in_length, const unsigned char *ivec, uint32_t ivec_length) { OSSL_PARAM params[2]; EVP_MAC_CTX *ctx; EVP_MAC *hmac...
0
225,806
GF_Box *tfrf_box_new() { ISOM_DECL_BOX_ALLOC(GF_MSSTimeRefBox, GF_ISOM_BOX_TYPE_UUID); tmp->internal_4cc = GF_ISOM_BOX_UUID_TFRF; return (GF_Box *)tmp; }
0
352,935
csnPretty( Syntax *syntax, struct berval *val, struct berval *out, void *ctx ) { return csnNormalize( SLAP_MR_VALUE_OF_SYNTAX, NULL, NULL, val, out, ctx ); }
0
400,756
static unsigned long iov_iter_alignment_bvec(const struct iov_iter *i) { unsigned res = 0; size_t size = i->count; unsigned skip = i->iov_offset; unsigned k; for (k = 0; k < i->nr_segs; k++, skip = 0) { size_t len = i->bvec[k].bv_len - skip; res |= (unsigned long)i->bvec[k].bv_offset + skip; if (len > size)...
0
398,514
static RzList /*<RzBinDwarfARangeSet>*/ *parse_aranges_raw(const ut8 *obuf, size_t obuf_sz, bool big_endian) { rz_return_val_if_fail(obuf, NULL); const ut8 *buf = obuf; const ut8 *buf_end = buf + obuf_sz; RzList *r = rz_list_newf((RzListFree)rz_bin_dwarf_arange_set_free); if (!r) { return NULL; } // DWARF 3 ...
0
409,473
term_replace_bs_del_keycode(char_u *ta_buf, int ta_len, int len) { int i; int c; for (i = ta_len; i < ta_len + len; ++i) { if (ta_buf[i] == CSI && len - i > 2) { c = TERMCAP2KEY(ta_buf[i + 1], ta_buf[i + 2]); if (c == K_DEL || c == K_KDEL || c == K_BS) { mch_memmove(ta_buf + i + 1,...
0
356,707
bool Statement::Bind(const Parameters & parameters) { if (parameters.size() == 0) { return true; } sqlite3_reset(_handle); sqlite3_clear_bindings(_handle); Parameters::const_iterator it = parameters.begin(); Parameters::const_iterator end = parameters.end(); for (; it < end; ++it)...
0
453,025
static void nft_flow_block_offload_init(struct flow_block_offload *bo, struct net *net, enum flow_block_command cmd, struct nft_base_chain *basechain, struct netlink_ext_ack *extack) { memset(bo, 0, sizeof(*bo)); bo->net = net; bo->block = &basechain->flow_block; bo->command = cmd; bo->binder_...
0
240,257
copy_yank_reg(yankreg_T *reg) { yankreg_T *curr = y_current; long j; y_current = reg; free_yank_all(); *y_current = *curr; y_current->y_array = lalloc_clear( sizeof(char_u *) * y_current->y_size, TRUE); if (y_current->y_array == NULL) y_current->y_size = 0; else for (j = 0; j ...
0
247,363
static int pgpVersion(const uint8_t *h, size_t hlen, uint8_t *version) { if (hlen < 1) return -1; *version = h[0]; return 0; }
0
231,026
void vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber ) { ( ( Queue_t * ) xQueue )->uxQueueNumber = uxQueueNumber; }
0
291,791
static int init_conns(struct rtrs_clt_path *clt_path) { unsigned int cid; int err; /* * On every new session connections increase reconnect counter * to avoid clashes with previous sessions not yet closed * sessions on a server side. */ clt_path->s.recon_cnt++; /* Establish all RDMA connections */ for ...
0
265,061
promptexpand(char *s, int ns, char *rs, char *Rs, zattr *txtchangep) { struct buf_vars new_vars; if(!s) return ztrdup(""); if ((termflags & TERM_UNKNOWN) && (unset(INTERACTIVE))) init_term(); if (isset(PROMPTSUBST)) { int olderr = errflag; int oldval = lastval; s = dupstring(s); if (!pa...
0
175,783
FilePath profile_path() const { return data_dir_.path(); }
0
273,407
void Compute(OpKernelContext* ctx) override { const Tensor* x_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->input("x", &x_tensor)); const Tensor* cs_prev_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx->input("cs_prev", &cs_prev_tensor)); const Tensor* h_prev_tensor = nullptr; OP_REQUIRES_OK(ctx, ctx...
0
474,000
onigenc_unicode_mbc_case_fold(OnigEncoding enc, OnigCaseFoldType flag ARG_UNUSED, const UChar** pp, const UChar* end, UChar* fold) { CodePointList3 *to; OnigCodePoint code; int i, len, rlen; const UChar *p = *pp; if (CaseFoldInited == 0) init_case_fold_table(); code = ONIGENC_MBC_TO_CODE(enc, p, e...
0
252,368
static bool DecompressRle(unsigned char *dst, const unsigned long uncompressed_size, const unsigned char *src, unsigned long src_size) { if (uncompressed_size == src_size) { // Data is not compressed(Issue 40). memcpy(dst, src, src_size); return true; ...
0
417,469
virNodeDeviceCapsListExport(virNodeDeviceDefPtr def, virNodeDevCapType **list) { virNodeDevCapsDefPtr caps = NULL; virNodeDevCapType *tmp = NULL; bool want_list = !!list; int ncaps = 0; int ret = -1; #define MAYBE_ADD_CAP(cap) \ do { \ if (want_list) \ ...
0
477,355
R_API RBinSymbol *r_bin_java_create_new_symbol_from_ref(RBinJavaObj *bin, RBinJavaCPTypeObj *obj, ut64 baddr) { RBinSymbol *sym = R_NEW0 (RBinSymbol); if (!sym) { return NULL; } char *class_name, *name, *type_name; if (obj == NULL || (obj->tag != R_BIN_JAVA_CP_METHODREF && obj->tag != R_BIN_JAVA_CP_INTERFACEMET...
0
248,264
DLLIMPORT char *cfg_searchpath(cfg_searchpath_t *p, const char *file) { char *fullpath; #ifdef HAVE_SYS_STAT_H struct stat st; int err; #endif if (!p || !file) { errno = EINVAL; return NULL; } if (file[0] == '/') { fullpath = strdup(file); if (!fullpath) return NULL; goto check; } if ((fullpath ...
0
366,207
struct mount *copy_tree(struct mount *mnt, struct dentry *dentry, int flag) { struct mount *res, *p, *q, *r, *parent; if (!(flag & CL_COPY_UNBINDABLE) && IS_MNT_UNBINDABLE(mnt)) return ERR_PTR(-EINVAL); if (!(flag & CL_COPY_MNT_NS_FILE) && is_mnt_ns_file(dentry)) return ERR_PTR(-EINVAL); res = q = clone...
0
509,518
static void _ma_check_print_msg(HA_CHECK *param, const char *msg_type, const char *fmt, va_list args) { THD *thd= (THD *) param->thd; Protocol *protocol= thd->protocol; size_t length, msg_length; char msgbuf[MYSQL_ERRMSG_SIZE]; char name[NAME_LEN * 2 + 2]; if (param->testfla...
0
413,618
static bool block_flags_stat(RFlagItem *fi, void *user) { struct block_flags_stat_t *u = (struct block_flags_stat_t *)user; int piece = (fi->offset - u->from) / u->step; u->as->block[piece].flags++; return true; }
0
226,981
IRC_PROTOCOL_CALLBACK(900) { IRC_PROTOCOL_MIN_ARGS(6); weechat_printf_date_tags ( irc_msgbuffer_get_target_buffer (server, argv[3], command, NULL, NULL), date, irc_protocol_tags (command, "irc_numeric", NULL, NULL), "%s%s %s(%s%s%s)", weechat_prefix ("network"), ...
0
273,891
static int list_printf(ctrl_t *ctrl, char *buf, size_t len, char *path, char *name) { int dirs; int mode = ctrl->list_mode; struct stat st; if (stat(path, &st)) return -1; dirs = mode & 0xF0; mode = mode & 0x0F; if (dirs && !S_ISDIR(st.st_mode)) return 1; if (!dirs && S_ISDIR(st.st_mode)) return 1; s...
0
259,322
static int mov_read_iloc(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int version, offset_size, length_size, base_offset_size, index_size; int item_count, extent_count; uint64_t base_offset, extent_offset, extent_length; uint8_t value; if (!c->is_still_picture_avif) { // * For non-avif, ...
0
224,287
gopherStart(FwdState * fwd) { GopherStateData *gopherState = new GopherStateData(fwd); debugs(10, 3, gopherState->entry->url()); ++ statCounter.server.all.requests; ++ statCounter.server.other.requests; /* Parse url. */ gopher_request_parse(fwd->request, &gopherState...
0
437,307
onig_new(regex_t** reg, const UChar* pattern, const UChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo) { int r; *reg = (regex_t* )xmalloc(sizeof(regex_t)); if (IS_NULL(*reg)) return ONIGERR_MEMORY; r = onig_reg_init(*reg, option, ONIGEN...
0
508,866
void st_select_lex_node::exclude() { /* exclude from global list */ fast_exclude(); /* exclude from other structures */ exclude_from_tree(); /* We do not need following statements, because prev pointer of first list element point to master->slave if (master->slave == this) master->slav...
0
508,800
void LEX::reset_arena_for_set_stmt(Query_arena *backup) { DBUG_ENTER("LEX::reset_arena_for_set_stmt"); DBUG_ASSERT(arena_for_set_stmt); thd->restore_active_arena(arena_for_set_stmt, backup); DBUG_PRINT("info", ("mem_root: %p arena: %p", arena_for_set_stmt->mem_root, ...
0
246,470
static RList *r_bin_wasm_get_sections_by_id(RList *sections, ut8 id) { RList *ret = r_list_newf (NULL); if (ret) { RBinWasmSection *sec; RListIter *iter; r_list_foreach (sections, iter, sec) { if (sec->id == id) { r_list_append (ret, sec); } } } return ret; }
0
293,765
static void r_kext_free(RKext *kext) { if (!kext) { return; } if (kext->mach0) { MACH0_(mach0_free) (kext->mach0); kext->mach0 = NULL; } if (kext->own_name && kext->name) { R_FREE (kext->name); kext->name = NULL; } R_FREE (kext); }
0
215,162
diff_mark_adjust_tp( tabpage_T *tp, int idx, linenr_T line1, linenr_T line2, long amount, long amount_after) { diff_T *dp; diff_T *dprev; diff_T *dnext; int i; int inserted, deleted; int n, off; linenr_T last; linenr_T lnum_deleted = line1; // lnum of remainin...
1
437,341
add_length(regex_t* reg, int len) { LengthType l = (LengthType )len; BB_ADD(reg, &l, SIZE_LENGTH); return 0; }
0
274,863
TEST(ComparisonsTest, QuantizedInt8GreaterWithBroadcastMultiplierGreaterThanOne) { const float kMin = -127.f; const float kMax = 127.f; std::vector<std::vector<int>> test_shapes = { {6}, {2, 3}, {2, 1, 3}, {1, 3, 1, 2}}; for (int i = 0; i < test_shapes.size(); ++i) { ComparisonOpModel model({Tens...
0
500,059
kssl_ctx_show(KSSL_CTX *kssl_ctx) { int i; printf("kssl_ctx: "); if (kssl_ctx == NULL) { printf("NULL\n"); return; } else printf("%p\n", (void *)kssl_ctx); printf("\tservice:\t%s\n", (kssl_ctx->service_name)? kssl_ctx->service_name: "NULL"); printf("\tclient:\t%s...
0
281,656
void CLASS packed_load_raw() { int vbits=0, bwide, rbits, bite, half, irow, row, col, val, i; UINT64 bitbuf=0; bwide = raw_width * tiff_bps / 8; bwide += bwide & load_flags >> 7; rbits = bwide * 8 - raw_width * tiff_bps; if (load_flags & 1) bwide = bwide * 16 / 15; bite = 8 + (load_flags & 24); half = ...
0
252,339
int ParseEXRHeaderFromMemory(EXRHeader *exr_header, const EXRVersion *version, const unsigned char *memory, size_t size, const char **err) { if (memory == NULL || exr_header == NULL) { tinyexr::SetErrorMessage( "Invalid argument. `memory` or `exr_h...
0
312,575
f_getloclist(typval_T *argvars UNUSED, typval_T *rettv UNUSED) { # ifdef FEAT_QUICKFIX win_T *wp; if (in_vim9script() && (check_for_number_arg(argvars, 0) == FAIL || check_for_opt_dict_arg(argvars, 1) == FAIL)) return; wp = find_win_by_nr_or_id(&argvars[0]); get_qf_loc_list(FALSE, wp, &argvars...
0
313,553
static int rose_neigh_show(struct seq_file *seq, void *v) { char buf[11]; int i; if (v == SEQ_START_TOKEN) seq_puts(seq, "addr callsign dev count use mode restart t0 tf digipeaters\n"); else { struct rose_neigh *rose_neigh = v; /* if (!rose_neigh->loopback) { */ seq_printf(seq, "%05d %-9s %-4s ...
0
281,109
static u32 xfrm_gen_index(struct net *net, int dir, u32 index) { static u32 idx_generator; for (;;) { struct hlist_head *list; struct xfrm_policy *p; u32 idx; int found; if (!index) { idx = (idx_generator | dir); idx_generator += 8; } else { idx = index; index = 0; } if (idx == 0) id...
0
222,739
s32 gf_avc_parse_nalu(GF_BitStream *bs, AVCState *avc) { u8 idr_flag; s32 slice, ret; u32 nal_hdr; AVCSliceInfo n_state; gf_bs_enable_emulation_byte_removal(bs, GF_TRUE); nal_hdr = gf_bs_read_u8(bs); slice = 0; memcpy(&n_state, &avc->s_info, sizeof(AVCSliceInfo)); avc->last_nal_type_parsed = n_state.nal_uni...
0
214,997
compileRule(FileInfo *file, TranslationTableHeader **table, DisplayTableHeader **displayTable, const MacroList **inScopeMacros) { CharsString token; TranslationTableOpcode opcode; CharsString ruleChars; CharsString ruleDots; CharsString cells; CharsString scratchPad; CharsString emphClass; TranslationTableCha...
1
231,722
void setSourceTokens(std::vector<folly::IPAddress> srcAddrs) { sourceAddrs_ = srcAddrs; }
0
317,038
static int smack_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags) { struct smack_known *skp; struct inode_smack *nsp = smack_inode(inode); struct socket_smack *ssp; struct socket *sock; int rc = 0; if (value == NULL || size > SMK_LONGLABEL || size == 0) ...
0
293,501
gif_initialise_frame_extensions(gif_animation *gif, const int frame) { const unsigned char *gif_data, *gif_end; ssize_t gif_bytes; ssize_t block_size; /* Get our buffer position etc. */ gif_data = (const unsigned char *)(gif->gif_data + gif->buffer_position); gif_end = (...
0
508,923
st_select_lex::check_cond_extraction_for_grouping_fields(Item *cond, TABLE_LIST *derived) { cond->clear_extraction_flag(); if (cond->type() == Item::COND_ITEM) { bool and_cond= ((Item_cond*) cond)->functype() == Item_func::COND_AND_FUNC; List<Item> ...
0
512,799
longlong val_int() { if (value <= (double) LONGLONG_MIN) { return LONGLONG_MIN; } else if (value >= (double) (ulonglong) LONGLONG_MAX) { return LONGLONG_MAX; } return (longlong) rint(value); }
0
255,769
create_lookup_state(apr_pool_t *result_pool) { lookup_state_t *state = apr_pcalloc(result_pool, sizeof(*state)); state->next = apr_array_make(result_pool, 4, sizeof(node_t *)); state->current = apr_array_make(result_pool, 4, sizeof(node_t *)); /* Virtually all path segments should fit into this buffer. If th...
0
512,667
virtual void print(String *str, enum_query_type query_type) { decimal_value.to_string(&str_value); str->append(str_value); }
0
405,398
static int xfrm_policy_match(const struct xfrm_policy *pol, const struct flowi *fl, u8 type, u16 family, int dir, u32 if_id) { const struct xfrm_selector *sel = &pol->selector; int ret = -ESRCH; bool match; if (pol->family != family || pol->if_id != if_id || (fl->flowi_mark & pol->mark.m)...
0
413,861
void LinkResolver::check_klass_accessibility(Klass* ref_klass, Klass* sel_klass, TRAPS) { Klass* base_klass = sel_klass; if (sel_klass->is_objArray_klass()) { base_klass = ObjArrayKlass::cast(sel_klass)->bottom_klass(); } // The element type could be a typeArray - we only need the access // check if it is...
0
278,261
get_breakindent_win( win_T *wp, char_u *line) // start of the line { static int prev_indent = 0; // cached indent value static long prev_ts = 0L; // cached tabstop value static char_u *prev_line = NULL; // cached pointer to line static varnumber_T prev_tick = 0; // changedtick of...
0
247,683
TEST_P(SslSocketTest, TestConnectionFailsWhenRejectOnExpiredAndResponseExpired) { const std::string server_ctx_yaml = R"EOF( common_tls_context: tls_certificates: - certificate_chain: filename: "{{ test_rundir }}/test/extensions/transport_sockets/tls/ocsp/test_data/good_cert.pem" private_key: ...
0
512,742
Item_func_if::fix_fields(THD *thd, Item **ref) { DBUG_ASSERT(fixed == 0); args[0]->top_level_item(); if (Item_func::fix_fields(thd, ref)) return 1; return 0; }
0
402,643
handle_sign_detached_with_file_type(context *ctx, struct pollfd *pollfd, socklen_t size) { handle_sign_helper(ctx, pollfd, size, 0, true); }
0
359,212
static struct bpf_map *ringbuf_map_alloc(union bpf_attr *attr) { struct bpf_ringbuf_map *rb_map; if (attr->map_flags & ~RINGBUF_CREATE_FLAG_MASK) return ERR_PTR(-EINVAL); if (attr->key_size || attr->value_size || !is_power_of_2(attr->max_entries) || !PAGE_ALIGNED(attr->max_entries)) return ERR_PTR(-E...
0
466,141
static void string_addr_inc(struct x86_emulate_ctxt *ctxt, unsigned seg, int reg, struct operand *op) { int df = (ctxt->eflags & EFLG_DF) ? -1 : 1; register_address_increment(ctxt, &ctxt->regs[reg], df * op->bytes); op->addr.mem.ea = register_address(ctxt, ctxt->regs[reg]); op->addr.mem.seg = seg; }
0
215,122
getvcol( win_T *wp, pos_T *pos, colnr_T *start, colnr_T *cursor, colnr_T *end) { colnr_T vcol; char_u *ptr; // points to current char char_u *posptr; // points to char at pos->col char_u *line; // start of the line int incr; int head; #ifdef FEAT_VARTABS int *vts = w...
1
437,683
static unsigned int txclk_tx_s_carrier(struct cx23885_dev *dev, unsigned int freq, u16 *divider) { *divider = carrier_freq_to_clock_divider(freq); cx23888_ir_write4(dev, CX23888_IR_TXCLK_REG, *divider); return clock_divider_to_carrier_freq(*divider); }
0
215,142
setup_secureChannel(void) { TestingPolicy(&dummyPolicy, dummyCertificate, &fCalled, &keySizes); UA_SecureChannel_init(&testChannel, &UA_ConnectionConfig_default); UA_SecureChannel_setSecurityPolicy(&testChannel, &dummyPolicy, &dummyCertificate); testingConnection = createDummyConnection(65535, &sentDat...
1
473,928
mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc ARG_UNUSED) { int firstbyte = *p++; state_t s; s = trans[0][firstbyte]; if (s < 0) return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(1) : ONIGENC_CONSTRUCT_MBCLEN_INVALID(); if (p == e) return ONIGENC_CONSTRU...
0
312,550
qf_parse_fmt_c(regmatch_T *rmp, int midx, qffields_T *fields) { if (rmp->startp[midx] == NULL) return QF_FAIL; fields->col = (int)atol((char *)rmp->startp[midx]); return QF_OK; }
0
247,533
void initialize() { TestUtility::loadFromYaml(TestEnvironment::substitute(server_ctx_yaml_), downstream_tls_context_); auto server_cfg = std::make_unique<ServerContextConfigImpl>(downstream_tls_context_, factory_context_); manager_ = std::make_unique<ContextManagerImp...
0
238,613
static int acquire_reference_state(struct bpf_verifier_env *env, int insn_idx) { struct bpf_func_state *state = cur_func(env); int new_ofs = state->acquired_refs; int id, err; err = resize_reference_state(state, state->acquired_refs + 1); if (err) return err; id = ++env->id_gen; state->refs[new_ofs].id = id; ...
0
359,288
peer_aslist_unset_vty (struct vty *vty, const char *ip_str, afi_t afi, safi_t safi, const char *direct_str) { int ret; struct peer *peer; int direct = FILTER_IN; peer = peer_and_group_lookup_vty (vty, ip_str); if (! peer) return CMD_WARNING; /* Check filter direction. ...
0
232,930
static void zstd_close_writer(struct Curl_easy *data, struct contenc_writer *writer) { struct zstd_params *zp = (struct zstd_params *)&writer->params; (void)data; if(zp->decomp) { free(zp->decomp); zp->decomp = NULL; } if(zp->zds) { ZSTD_freeDStream(zp->zds); zp-...
0
512,656
void Item_func_in::print(String *str, enum_query_type query_type) { args[0]->print_parenthesised(str, query_type, precedence()); if (negated) str->append(STRING_WITH_LEN(" not")); str->append(STRING_WITH_LEN(" in (")); print_args(str, 1, query_type); str->append(STRING_WITH_LEN(")")); }
0
231,038
BaseType_t xQueueCRSend( QueueHandle_t xQueue, const void * pvItemToQueue, TickType_t xTicksToWait ) { BaseType_t xReturn; Queue_t * const pxQueue = xQueue; /* If the queue is already full we may have to block. A critical...
0
409,506
report_default_term(char_u *term) { mch_errmsg(_("defaulting to '")); mch_errmsg((char *)term); mch_errmsg("'\r\n"); if (emsg_silent == 0 && !in_assert_fails) { screen_start(); // don't know where cursor is now out_flush(); if (!is_not_a_term()) ui_delay(2007L, TRUE); } }
0
483,492
static ssize_t systab_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) { char *str = buf; if (!kobj || !buf) return -EINVAL; if (efi.mps != EFI_INVALID_TABLE_ADDR) str += sprintf(str, "MPS=0x%lx\n", efi.mps); if (efi.acpi20 != EFI_INVALID_TABLE_ADDR) str += sprintf(str, "ACPI20=0x%lx...
0
462,551
std::string controller::prepare_message(unsigned int pos, unsigned int max) { if (max > 0) { return strprintf::fmt("(%u/%u) ", pos, max); } return ""; }
0
90,188
static std::string ToHtmlTableHeader(Network* network) { std::string str; if (network->type() == TYPE_WIFI || network->type() == TYPE_CELLULAR) { str += WrapWithTH("Name") + WrapWithTH("Auto-Connect") + WrapWithTH("Strength"); if (network->type() == TYPE_WIFI) str += WrapWithTH("Encryption") +...
0
269,322
static void Run(OpKernelContext *ctx, typename TTypes<T>::Scalar &s, const typename TTypes<T>::UnalignedVec &v) { s.device(ctx->eigen_cpu_device()) = v.maximum(); }
0
206,588
gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) { int lastBorder; /* Seek left */ int leftLimit, rightLimit; int i; leftLimit = (-1); if (border < 0) { /* Refuse to fill to a non-solid border */ return; } for (i = x; (i >= 0); i--) { if (gdImageGetPix...
1
369,228
static bool io_assign_file(struct io_kiocb *req, unsigned int issue_flags) { if (req->file || !io_op_defs[req->opcode].needs_file) return true; if (req->flags & REQ_F_FIXED_FILE) req->file = io_file_get_fixed(req, req->fd, issue_flags); else req->file = io_file_get_normal(req, req->fd); if (req->file) ret...
0
333,065
nfa_regfree(regprog_T *prog) { if (prog != NULL) { vim_free(((nfa_regprog_T *)prog)->match_text); vim_free(((nfa_regprog_T *)prog)->pattern); vim_free(prog); } }
0