idx
int64
func
string
target
int64
441,424
void RGWPostObj_ObjStore_S3::send_response() { if (op_ret == 0 && parts.count("success_action_redirect")) { string redirect; part_str(parts, "success_action_redirect", &redirect); string tenant; string bucket; string key; string etag_str = "\""; etag_str.append(etag); etag_str.appen...
0
67,067
void test_checkout_nasty__dotgit_alternate_data_stream(void) { test_checkout_fails("refs/heads/dotgit_alternate_data_stream", ".git/dummy-file"); test_checkout_fails("refs/heads/dotgit_alternate_data_stream", ".git::$INDEX_ALLOCATION/dummy-file"); }
0
426,894
static Image *ReadXWDImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define CheckOverflowException(length,width,height) \ (((height) != 0) && ((length)/((size_t) height) != ((size_t) width))) char *comment; Image *image; int x_status; MagickBooleanType authentic_colormap; ...
0
470,330
const char *__get_arch(r_bin_le_obj_t *bin) { switch (bin->header->cpu) { case 1: case 2: case 3: return "x86"; case 0x20: case 0x21: return "i860"; case 0x40: case 0x41: case 0x42: return "mips"; default: return "Unknown"; } }
0
33,462
static pyc_object *get_ref_object(RBuffer *buffer) { bool error = false; ut32 index = get_ut32 (buffer, &error); if (error) { return NULL; } if (index >= r_list_length (refs)) { return NULL; } pyc_object *obj = r_list_get_n (refs, index); return obj? copy_object (obj): NULL; }
0
136,445
juniper_mlppp_print(netdissect_options *ndo, const struct pcap_pkthdr *h, register const u_char *p) { struct juniper_l2info_t l2info; l2info.pictype = DLT_JUNIPER_MLPPP; if (juniper_parse_header(ndo, p, h, &l2info) == 0) return l2info.header_len; /* supp...
0
413,144
catch(std::exception& e) { cerr<<"Receiver function died: "<<e.what()<<endl; exit(1); }
0
378,811
static SC_HTMLState sc_html_parse_tag(SC_HTMLParser *parser) { gchar buf[SC_HTMLBUFSIZE]; SC_HTMLTag *tag; sc_html_get_parenthesis(parser, buf, sizeof(buf)); tag = sc_html_get_tag(buf); parser->state = SC_HTML_UNKNOWN; if (!tag) return SC_HTML_UNKNOWN; if (!strcmp(tag->name, "br")) { parser->space = FALSE;...
0
123,886
static void ov518_configure(struct gspca_dev *gspca_dev) { struct sd *sd = (struct sd *) gspca_dev; /* For 518 and 518+ */ static const struct ov_regvals init_518[] = { { R51x_SYS_RESET, 0x40 }, { R51x_SYS_INIT, 0xe1 }, { R51x_SYS_RESET, 0x3e }, { R51x_SYS_INIT, 0xe1 }, { R51x_SYS_RESET, 0x00 }, { R51x_...
0
276,377
bool Document::needsLayoutTreeUpdateForNode(const Node& node) const { if (!node.canParticipateInFlatTree()) return false; if (!needsLayoutTreeUpdate()) return false; if (!node.inShadowIncludingDocument()) return false; if (needsFullLayoutTreeUpdate() || node.needsStyleRecalc() |...
0
95,935
u32 cdk_sk_get_keyid(cdk_pkt_seckey_t sk, u32 * keyid) { u32 lowbits = 0; if (sk && sk->pk) { lowbits = cdk_pk_get_keyid(sk->pk, keyid); sk->keyid[0] = sk->pk->keyid[0]; sk->keyid[1] = sk->pk->keyid[1]; } return lowbits; }
0
224,752
XvImageFormatValues * XvMCListSubpictureTypes ( Display * dpy, XvPortID port, int surface_type_id, int *count_return ) { XExtDisplayInfo *info = xvmc_find_display(dpy); xvmcListSubpictureTypesReply rep; xvmcListSubpictureTypesReq *req; XvImageFormatValues *ret = NULL; *count_return = 0; ...
0
416,503
c_pdf14trans_is_closing(const gs_composite_t * composite_action, gs_composite_t ** ppcte, gx_device *dev) { gs_pdf14trans_t *pct0 = (gs_pdf14trans_t *)composite_action; int op0 = pct0->params.pdf14_op; switch (op0) { default: return_error(gs_error_unregistered); /* Must not ...
0
484,364
void JBIG2Stream::resetGenericStats(unsigned int templ, JArithmeticDecoderStats *prevStats) { int size; size = contextSize[templ]; if (prevStats && prevStats->getContextSize() == size) { if (genericRegionStats->getContextSize() == size) { genericRegionStats->copyFrom(prevStats); ...
0
227,093
void StackTrace::OutputToStream(std::ostream* os) const { StreamBacktraceOutputHandler handler(os); ProcessBacktrace(trace_, count_, &handler); }
0
24,431
void main_file_cleanup ( main_file * xfile ) { XD3_ASSERT ( xfile != NULL ) ; if ( main_file_isopen ( xfile ) ) { main_file_close ( xfile ) ; } if ( xfile -> snprintf_buf != NULL ) { main_free ( xfile -> snprintf_buf ) ; xfile -> snprintf_buf = NULL ; } if ( xfile -> filename_copy != NULL ) { main_free ( xfil...
0
307,612
CompositingReasons RenderLayerCompositor::directReasonsForCompositing(const RenderLayer* layer) const { RenderObject* renderer = layer->renderer(); CompositingReasons directReasons = CompositingReasonNone; if (requiresCompositingForTransform(renderer)) directReasons |= CompositingReason3DTransform;...
0
138,474
static HuffReader *get_huffman_group(WebPContext *s, ImageContext *img, int x, int y) { ImageContext *gimg = &s->image[IMAGE_ROLE_ENTROPY]; int group = 0; if (gimg->size_reduction > 0) { int group_x = x >> gimg->size_reduction; int group_y = y >> gimg->s...
0
214,203
TopSitesImpl* top_sites() { return top_sites_impl_.get(); }
0
105,582
void DeallocatorWrapperFunc(void* data, size_t len, void* dlmt_vptr) { TFE_CallDLManagedTensorDeleter(dlmt_vptr); }
0
87,965
static void MSLIgnorableWhitespace(void *context,const xmlChar *c,int length) { MSLInfo *msl_info; /* Receiving some ignorable whitespaces from the parser. */ (void) LogMagickEvent(CoderEvent,GetMagickModule(), " SAX.ignorableWhitespace(%.30s, %d)",c,length); msl_info=(MSLInfo *) context; (voi...
0
230,818
bool ID3::removeUnsynchronizationV2_4(bool iTunesHack) { size_t oldSize = mSize; size_t offset = 0; while (mSize >= 10 && offset <= mSize - 10) { if (!memcmp(&mData[offset], "\0\0\0\0", 4)) { break; } size_t dataSize; if (iTunesHack) { dataSize = U32_AT(&mData[offset + 4]); } else if (!ParseSyncs...
0
184,190
static void checkMutexEnter(sqlite3_mutex *p){ CheckMutex *pCheck = (CheckMutex*)p; if( pCheck->iType==SQLITE_MUTEX_WARNONCONTENTION ){ if( SQLITE_OK==pGlobalMutexMethods->xMutexTry(pCheck->mutex) ){ return; } sqlite3_log(SQLITE_MISUSE, "illegal multi-threaded access to database connection...
0
218,350
static v8::Persistent<v8::FunctionTemplate> ConfigureV8Float64ArrayTemplate(v8::Persistent<v8::FunctionTemplate> desc) { desc->ReadOnlyPrototype(); v8::Local<v8::Signature> defaultSignature; defaultSignature = configureTemplate(desc, "Float64Array", V8ArrayBufferView::GetTemplate(), V8Float64Array::interna...
0
16,927
int ff_MPV_frame_start ( MpegEncContext * s , AVCodecContext * avctx ) { int i , ret ; Picture * pic ; s -> mb_skipped = 0 ; if ( s -> out_format != FMT_H264 || s -> codec_id == AV_CODEC_ID_SVQ3 ) { if ( s -> pict_type != AV_PICTURE_TYPE_B && s -> last_picture_ptr && s -> last_picture_ptr != s -> next_picture_ptr ...
0
231,599
bool ScriptOnly(const Extension* extension, const GURL& url, const GURL& top_url, int tab_id) { return AllowedScript(extension, url, top_url, tab_id) && !extension->permissions_data()->CanCaptureVisiblePage(tab_id, NULL); }
0
264,719
DEFUN(deletePrevBuf, DELETE_PREVBUF, "Delete previous buffer (mainly for local CGI-scripts)") { Buffer *buf = Currentbuf->nextBuffer; if (buf) delBuffer(buf); }
0
117,310
void streamEncodeID(void *buf, streamID *id) { uint64_t e[2]; e[0] = htonu64(id->ms); e[1] = htonu64(id->seq); memcpy(buf,e,sizeof(e)); }
0
190,231
Tab::Tab(TabController* controller) : controller_(controller), title_(new views::Label()), title_animation_(this) { DCHECK(controller); tab_style_ = TabStyleViews::CreateForTab(this); set_notify_enter_exit_on_child(true); SetID(VIEW_ID_TAB); SetBorder(views::CreateEmptyBorder(tab_style()->...
0
420,455
void CLASS process_Sony_0x9403(uchar *buf, ushort len) { if (len < 6) return; uchar bufx = SonySubstitution[buf[4]]; if ((bufx == 0x00) || (bufx == 0x94)) return; imgdata.other.SensorTemperature = (float)((short)SonySubstitution[buf[5]]); return; }
0
508,734
_set_source_rsvg_solid_colour (RsvgDrawingCtx * ctx, RsvgSolidColour * colour, guint8 opacity, guint32 current_colour) { RsvgCairoRender *render = RSVG_CAIRO_RENDER (ctx->render); cairo_t *cr = render->cr; guint32 argb = colour->argb; double r, g, b, a; if (colour->cu...
0
153,777
stack_double(int is_alloca, char** arg_alloc_base, StackType** arg_stk_base, StackType** arg_stk_end, StackType** arg_stk, MatchArg* msa) { unsigned int n; int used; size_t size; size_t new_size; char* alloc_base; char* new_alloc_base; StackType *stk_base, *stk_end, *stk; allo...
0
381,480
set_debug (void) { int numok = (debug_level && digitp (debug_level)); int numlvl = numok? atoi (debug_level) : 0; if (!debug_level) ; else if (!strcmp (debug_level, "none") || (numok && numlvl < 1)) opt.debug = 0; else if (!strcmp (debug_level, "basic") || (numok && numlvl <= 2)) opt.debug = DBG_...
0
287,798
bool asn1_read_BOOLEAN(struct asn1_data *data, bool *v) { uint8_t tmp = 0; asn1_start_tag(data, ASN1_BOOLEAN); asn1_read_uint8(data, &tmp); if (tmp == 0xFF) { *v = true; } else { *v = false; } asn1_end_tag(data); return !data->h...
1
41,276
static void rfcomm_tty_throttle(struct tty_struct *tty) { struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; BT_DBG("tty %p dev %p", tty, dev); rfcomm_dlc_throttle(dev->dlc); }
0
233,976
static bool ExecuteJustifyRight(LocalFrame& frame, Event*, EditorCommandSource source, const String&) { return ExecuteApplyParagraphStyle(frame, source, InputEvent::InputType::kFormatJus...
0
120,066
void ByteCodeGenerator::EmitClassConstructorEndCode(FuncInfo *funcInfo) { if (funcInfo->thisPointerRegister != Js::Constants::NoRegister) { // We need to try and load 'this' from the scope slot, if there is one. EmitScopeSlotLoadThis(funcInfo, funcInfo->thisPointerRegister); this->Writer...
0
412,022
relpTcpSetRemHost(relpTcp_t *pThis, struct sockaddr *pAddr) { relpEngine_t *pEngine; int error; unsigned char szIP[NI_MAXHOST] = ""; unsigned char szHname[NI_MAXHOST] = ""; struct addrinfo hints, *res; size_t len; ENTER_RELPFUNC; RELPOBJ_assert(pThis, Tcp); pEngine = pThis->pEngine; assert(pAddr != NULL); ...
0
415,708
char *put_dec_full8(char *buf, unsigned r) { unsigned q; /* 0 <= r < 10^8 */ q = (r * (u64)0x28f5c29) >> 32; *((u16 *)buf) = decpair[r - 100*q]; buf += 2; /* 0 <= q < 10^6 */ r = (q * (u64)0x28f5c29) >> 32; *((u16 *)buf) = decpair[q - 100*r]; buf += 2; /* 0 <= r < 10^4 */ q = (r * 0x147b) >> 19; *((u16 *...
0
31,578
GraphConstructor(const Options& opts, Graph* g, ShapeRefiner* refiner, std::vector<std::pair<Node*, int>>* return_tensors, std::vector<Node*>* return_nodes, std::vector<SafeTensorId>* missing_unused_input_map_keys) : opts_(opts), g_(g), or...
0
167,826
static int ssh_comp_none_block(void *handle, unsigned char *block, int len, unsigned char **outblock, int *outlen) { return 0; }
0
209,757
bool RenderBox::sizesLogicalWidthToFitContent(const Length& logicalWidth) const { if (isFloating() || (isInlineBlockOrInlineTable() && !isMarquee())) return true; if (logicalWidth.type() == Intrinsic) return true; if (parent()->isMarquee()) { EMarqueeDirection dir = parent()->style...
0
318,776
static AVFilterBufferRef *copy_buffer_ref(AVFilterContext *ctx, AVFilterBufferRef *ref) { AVFilterLink *outlink = ctx->outputs[0]; AVFilterBufferRef *buf; int channels, data_size, i; switch (outlink->type) { case AVMEDIA_TYPE_VIDEO: buf =...
1
57,205
static QSvgNode *createTextAreaNode(QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler) { QSvgText *node = static_cast<QSvgText *>(createTextNode(parent, attributes, handler)); if (node) { QSvgHandler::Le...
0
196,691
ofproto_group_lookup__(const struct ofproto *ofproto, uint32_t group_id, ovs_version_t version) { struct ofgroup *group; CMAP_FOR_EACH_WITH_HASH (group, cmap_node, hash_int(group_id, 0), &ofproto->groups) { if (group->group_id == group_id ...
0
301,874
static int dn_accept(struct socket *sock, struct socket *newsock, int flags) { struct sock *sk = sock->sk, *newsk; struct sk_buff *skb = NULL; struct dn_skb_cb *cb; unsigned char menuver; int err = 0; unsigned char type; long timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK); struct dst_entry *dst; lock_sock(sk);...
0
11,698
void ResetPaddingKeyForTesting() { *GetPaddingKey() = SymmetricKey::GenerateRandomKey(kPaddingKeyAlgorithm, 128); }
1
520,548
Field *tmp_table_field_from_field_type(TABLE *table) { DBUG_ASSERT(is_fixed()); const Type_handler *h= type_handler()->type_handler_for_tmp_table(this); return h->make_and_init_table_field(&name, Record_addr(maybe_null), *this, table); }
0
124,443
CModule::EModRet CModule::OnUserCTCPMessage(CCTCPMessage& Message) { CString sTarget = Message.GetTarget(); CString sText = Message.GetText(); EModRet ret = OnUserCTCP(sTarget, sText); Message.SetTarget(sTarget); Message.SetText(sText); return ret; }
0
139,876
f_byteidx(typval_T *argvars, typval_T *rettv) { byteidx(argvars, rettv, FALSE); }
0
444,022
Http::Status ServerConnectionImpl::dispatch(Buffer::Instance& data) { // TODO(#10878): Remove this wrapper when exception removal is complete. innerDispatch may either // throw an exception or return an error status. The utility wrapper catches exceptions and // converts them to error statuses. return Http::Uti...
0
358,943
static int tc_fill_qdisc(struct sk_buff *skb, struct Qdisc *q, u32 clid, u32 pid, u32 seq, u16 flags, int event) { struct tcmsg *tcm; struct nlmsghdr *nlh; unsigned char *b = skb_tail_pointer(skb); struct gnet_dump d; nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags); tcm = NLMSG_DATA(nlh); tcm->t...
0
331,353
static int enable_write_target(BDRVVVFATState *s, Error **errp) { BlockDriver *bdrv_qcow; QEMUOptionParameter *options; int ret; int size = sector2cluster(s, s->sector_count); s->used_clusters = calloc(size, 1); array_init(&(s->commits), sizeof(commit_t)); s->qcow_filename = g_ma...
1
344,376
goa_ews_client_autodiscover (GoaEwsClient *client, const gchar *email, const gchar *password, const gchar *username, const gchar *server, ...
1
59,262
static int update_eth_regs_async(pegasus_t *pegasus) { int ret = -ENOMEM; struct urb *async_urb; struct usb_ctrlrequest *req; req = kmalloc(sizeof(struct usb_ctrlrequest), GFP_ATOMIC); if (req == NULL) return ret; async_urb = usb_alloc_urb(0, GFP_ATOMIC); if (async_urb == NULL) { kfree(req); return ret; ...
0
265,844
static int attach_auth_trunc(struct xfrm_algo_auth **algpp, u8 *props, struct nlattr *rta) { struct xfrm_algo_auth *p, *ualg; struct xfrm_algo_desc *algo; if (!rta) return 0; ualg = nla_data(rta); algo = xfrm_aalg_get_byname(ualg->alg_name, 1); if (!algo) return -ENOSYS; if (ualg->alg_trunc_len > ...
0
2,326
nvmet_fc_find_target_queue(struct nvmet_fc_tgtport *tgtport, u64 connection_id) { struct nvmet_fc_tgt_assoc *assoc; struct nvmet_fc_tgt_queue *queue; u64 association_id = nvmet_fc_getassociationid(connection_id); u16 qid = nvmet_fc_getqueueid(connection_id); unsigned long flags; spin_lock_irqsave(&tgtport->l...
1
196,660
get_reply_key_win(krb5_context context, const krb5_data *content, unsigned nonce, krb5_keyblock **key) { ReplyKeyPack_Win2k key_pack; krb5_error_code ret; size_t size; ret = decode_ReplyKeyPack_Win2k(content->data, content->length, &key_pack, &size); if (ret) { ...
0
247,488
void CL_ShellExecute_URL_f( void ) { qboolean doexit; Com_DPrintf( "CL_ShellExecute_URL_f\n" ); if ( Q_stricmp( Cmd_Argv( 1 ),"open" ) ) { Com_DPrintf( "invalid CL_ShellExecute_URL_f syntax (shellExecute \"open\" <url> <doExit>)\n" ); return; } if ( Cmd_Argc() < 4 ) { doexit = qtrue; } else { doexit = ...
0
43,886
int imap_cmd_start(struct ImapAccountData *adata, const char *cmdstr) { return cmd_start(adata, cmdstr, IMAP_CMD_NO_FLAGS); }
0
485,506
static void nf_tables_unregister_hook(struct net *net, const struct nft_table *table, struct nft_chain *chain) { return __nf_tables_unregister_hook(net, table, chain, false); }
0
109,521
TfLiteRegistration* Register_DEPTH_TO_SPACE_REF() { static TfLiteRegistration r = { nullptr, nullptr, depth_to_space::Prepare, depth_to_space::Eval<depth_to_space::kReference>}; return &r; }
0
420,693
static int h2c_handle_goaway(struct h2c *h2c) { int error; int last; if (h2c->dsi != 0) { error = H2_ERR_PROTOCOL_ERROR; goto conn_err; } if (h2c->dfl < 8) { error = H2_ERR_FRAME_SIZE_ERROR; goto conn_err; } /* process full frame only */ if (b_data(&h2c->dbuf) < h2c->dfl) return 0; last = h2_get_...
0
126,373
static int fr_ioctl(struct net_device *dev, struct ifreq *ifr) { fr_proto __user *fr_s = ifr->ifr_settings.ifs_ifsu.fr; const size_t size = sizeof(fr_proto); fr_proto new_settings; hdlc_device *hdlc = dev_to_hdlc(dev); fr_proto_pvc pvc; int result; switch (ifr->ifr_settings.type) { case IF_GET_PROTO: if (dev...
0
229,262
void RenderFrameImpl::SendFailedProvisionalLoad( const blink::WebURLRequest& request, const WebURLError& error, blink::WebLocalFrame* frame) { bool show_repost_interstitial = (error.reason() == net::ERR_CACHE_MISS && base::EqualsASCII(request.HttpMethod().Utf16(), "POST")); FrameHostMsg_Di...
0
24,150
static void _setWithOids ( ArchiveHandle * AH , TocEntry * te ) { if ( AH -> currWithOids != te -> withOids ) { _doSetWithOids ( AH , te -> withOids ) ; AH -> currWithOids = te -> withOids ; } }
0
345,969
SMBC_attr_server(TALLOC_CTX *ctx, SMBCCTX *context, const char *server, uint16_t port, const char *share, char **pp_workgroup, char **pp_username, char **pp_password) { int flags; struct cli_s...
1
241,527
bool ResourceDispatcherHost::Read(URLRequest* request, int* bytes_read) { ResourceDispatcherHostRequestInfo* info = InfoForRequest(request); DCHECK(!info->is_paused()); net::IOBuffer* buf; int buf_size; if (!info->resource_handler()->OnWillRead(info->request_id(), ...
0
42,606
COMPS_HSList* comps_objmrtree_keys(COMPS_ObjMRTree * rt) { return __comps_objmrtree_all(rt, 0); }
0
257,288
TEST ( DownloadPrefsTest , AutoOpenPrefSkipsDangerousFileTypesInPrefs ) { const base : : FilePath kDangerousFilePath ( FILE_PATH_LITERAL ( "/b/very-bad.swf" ) ) ; const base : : FilePath kSafeFilePath ( FILE_PATH_LITERAL ( "/goodothing-wrong.txt" ) ) ; content : : TestBrowserThreadBundle threads_are_required_for_tes...
0
259,061
static int l_session_open (lua_State *L) { int rc; ssh_userdata *state = NULL; luaL_checkinteger(L, 2); lua_settop(L, 2); state = (ssh_userdata *)lua_newuserdata(L, sizeof(ssh_userdata)); /* index 3 */ assert(lua_gettop(L) == 3); state->session = NULL; state->sp[0] = -1; state->sp...
0
459,226
gst_h264_create_sei_memory_avc (guint8 nal_length_size, GArray * messages) { g_return_val_if_fail (nal_length_size > 0 && nal_length_size < 5, NULL); g_return_val_if_fail (messages != NULL, NULL); g_return_val_if_fail (messages->len > 0, NULL); return gst_h264_create_sei_memory_internal (nal_length_size, TRUE,...
0
514,190
span_renderer_init (cairo_abstract_span_renderer_t *_r, const cairo_composite_rectangles_t *composite, cairo_antialias_t antialias, cairo_bool_t needs_clip) { cairo_image_span_renderer_t *r = (cairo_image_span_renderer_t *)_r; cairo_image_surface_t *dst = (cairo_image_surface_t *)composi...
0
169,827
bool HTMLFormElement::rendererIsNeeded(const RenderStyle& style) { if (!m_wasDemoted) return HTMLElement::rendererIsNeeded(style); ContainerNode* node = parentNode(); RenderObject* parentRenderer = node->renderer(); bool parentIsTableElementPart = (parentRenderer->isTable() && isHTMLTableElemen...
0
275,298
bool OSExchangeDataProviderWin::GetFilenames( std::vector<OSExchangeData::FileInfo>* filenames) const { std::vector<base::string16> filenames_local; bool success = ClipboardUtil::GetFilenames(source_object_, &filenames_local); if (success) { for (size_t i = 0; i < filenames_local.size(); ++i) filena...
0
191,028
static SRP_gN_cache *SRP_gN_new_init(const char *ch) { unsigned char tmp[MAX_LEN]; int len; SRP_gN_cache *newgN = (SRP_gN_cache *)OPENSSL_malloc(sizeof(SRP_gN_cache)); if (newgN == NULL) return NULL; if ((newgN->b64_bn = BUF_strdup(ch)) == NULL) goto err; len = t_fromb...
0
95,397
static int __init ip_vs_genl_register(void) { return genl_register_family_with_ops(&ip_vs_genl_family, ip_vs_genl_ops, ARRAY_SIZE(ip_vs_genl_ops)); }
0
487,601
breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( const std::string& process_type) { base::FilePath dumps_path; base::PathService::Get(electron::DIR_CRASH_DUMPS, &dumps_path); { ANNOTATE_SCOPED_MEMORY_LEAK; bool upload = ElectronCrashReporterClient::Get()->GetCollectStatsConsent(); breakpad...
0
204,037
static views::View* AddPaddedTitleCard(views::View* view, TitleCard* title_card, int width) { views::View* titled_view = new views::View(); views::GridLayout* layout = titled_view->SetLayoutManager( std::make_unique<view...
0
273,192
suggest_trie_walk( suginfo_T *su, langp_T *lp, char_u *fword, int soundfold) { char_u tword[MAXWLEN]; // good word collected so far trystate_T stack[MAXWLEN]; char_u preword[MAXWLEN * 3]; // word found with proper case; // concatenation of prefix compound // words an...
0
233,845
static void ServerNameToSyncAPIName(const std::string& server_name, std::string* out) { CHECK(out); int length_to_copy = server_name.length(); if (IsNameServerIllegalAfterTrimming(server_name) && EndsWithSpace(server_name)) { --length_to_copy; } *out = std::string...
0
489,427
GF_Err nhmldump_process(GF_Filter *filter) { GF_NHMLDumpCtx *ctx = gf_filter_get_udta(filter); GF_FilterPacket *pck; char *data; u32 pck_size; if (!ctx->side_streams_config) { return nhmldump_config_side_stream(filter, ctx); } pck = gf_filter_pid_get_packet(ctx->ipid); if (!pck) { if (gf_filter_pid_is_eos...
0
359,460
lt_dlmakeresident (lt_dlhandle handle) { int errors = 0; if (!handle) { LT__SETERROR (INVALID_HANDLE); ++errors; } else { handle->info.is_resident = 1; } return errors; }
0
199,062
LogLuvEncodeStrip(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s) { tmsize_t rowlen = TIFFScanlineSize(tif); if (rowlen == 0) return 0; assert(cc%rowlen == 0); while (cc && (*tif->tif_encoderow)(tif, bp, rowlen, s) == 1) { bp += rowlen; cc -= rowlen; } return (cc == 0); }
0
296,613
EC_Group::EC_Group(const std::string& str) { if(str == "") return; // no initialization / uninitialized try { OID oid = OIDS::lookup(str); if(oid.empty() == false) m_data = ec_group_data().lookup(oid); } catch(Invalid_OID&) { } if(m_data == nullptr) ...
0
107,928
openlog (const char *ident, int logstat, int logfac) { /* Protect against multiple users. */ __libc_cleanup_region_start ((void (*) __P ((void *))) __libc_mutex_unlock, &syslog_lock); __libc_lock_lock (syslog_lock); openlog_internal (ident, logstat, logfac); /* Free the lock. */ __libc_cleanup...
0
265,182
static void udf_write_failed(struct address_space *mapping, loff_t to) { struct inode *inode = mapping->host; struct udf_inode_info *iinfo = UDF_I(inode); loff_t isize = inode->i_size; if (to > isize) { truncate_pagecache(inode, isize); if (iinfo->i_alloc_type != ICBTAG_FLAG_AD_IN_ICB) { down_write(&iinfo->...
0
515,327
int smtp_server_connection_flush(struct smtp_server_connection *conn) { struct ostream *output = conn->conn.output; int ret; if ((ret = o_stream_flush(output)) <= 0) { if (ret < 0) smtp_server_connection_handle_output_error(conn); return ret; } return 1; }
0
244,817
mcid_char_imp(fz_context *ctx, pdf_filter_processor *p, tag_record *tr, int uni, int remove) { if (tr->mcid_obj == NULL) /* No object, or already deleted */ return; if (remove) { /* Remove the expanded abbreviation, if there is one. */ pdf_dict_del(ctx, tr->mcid_obj, PDF_NAME(E)); /* Remove ...
0
94,283
SYSCALL_DEFINE5(keyctl, int, option, unsigned long, arg2, unsigned long, arg3, unsigned long, arg4, unsigned long, arg5) { switch (option) { case KEYCTL_GET_KEYRING_ID: return keyctl_get_keyring_ID((key_serial_t) arg2, (int) arg3); case KEYCTL_JOIN_SESSION_KEYRING: return keyctl_join_session_keyring...
0
176,685
bool SelectFileDialogImpl::IsRunning(HWND owning_hwnd) const { return listener_ && IsRunningDialogForOwner(owning_hwnd); }
0
7,032
int cli_scanpe(cli_ctx *ctx) { uint16_t e_magic; /* DOS signature ("MZ") */ uint16_t nsections; uint32_t e_lfanew; /* address of new exe header */ uint32_t ep, vep; /* entry point (raw, virtual) */ uint8_t polipos = 0; time_t timestamp; struct pe_image_file_hdr file_hdr; union { struct pe_image_optional_h...
1
324,252
static void virtio_ccw_scsi_realize(VirtioCcwDevice *ccw_dev, Error **errp) { VirtIOSCSICcw *dev = VIRTIO_SCSI_CCW(ccw_dev); DeviceState *vdev = DEVICE(&dev->vdev); DeviceState *qdev = DEVICE(ccw_dev); Error *err = NULL; char *bus_name; /* * For command line compatibility, this se...
0
372,385
cmsFloat32Number CMSEXPORT cmsEvalToneCurveFloat(const cmsToneCurve* Curve, cmsFloat32Number v) { _cmsAssert(Curve != NULL); // Check for 16 bits table. If so, this is a limited-precision tone curve if (Curve ->nSegments == 0) { cmsUInt16Number In, Out; In = (cmsUInt16Number) _cmsQuickSat...
0
129,415
void CLASS sony_arw2_load_raw() { uchar *data, *dp; ushort pix[16]; int row, col, val, max, min, imax, imin, sh, bit, i; data = (uchar *) malloc (raw_width); merror (data, "sony_arw2_load_raw()"); for (row=0; row < height; row++) { fread (data, 1, raw_width, ifp); for (dp=data, col=0; col < raw_wid...
0
491,216
TPMI_DH_PERSISTENT_Unmarshal(TPMI_DH_PERSISTENT *target, BYTE **buffer, INT32 *size) { TPM_RC rc = TPM_RC_SUCCESS; TPMI_DH_PERSISTENT orig_target = *target; // libtpms added if (rc == TPM_RC_SUCCESS) { rc = TPM_HANDLE_Unmarshal(target, buffer, size); } if (rc == TPM_RC_SUCCESS) { BOOL isNotPers...
0
277,414
bool CSSComputedStyleDeclaration::useFixedFontDefaultSize() const { if (!m_node) return false; RefPtr<RenderStyle> style = m_node->computedStyle(m_pseudoElementSpecifier); if (!style) return false; return style->fontDescription().useFixedDefaultSize(); }
0
492,608
gimp_channel_all (GimpChannel *channel, gboolean push_undo) { g_return_if_fail (GIMP_IS_CHANNEL (channel)); if (! gimp_item_is_attached (GIMP_ITEM (channel))) push_undo = FALSE; GIMP_CHANNEL_GET_CLASS (channel)->all (channel, push_undo); }
0
54,666
static inline void evmcs_load(u64 phys_addr) {}
0
191,094
void RenderView::didExecuteCommand(const WebString& command_name) { const std::string& name = UTF16ToUTF8(command_name); if (StartsWithASCII(name, "Move", true) || StartsWithASCII(name, "Insert", true) || StartsWithASCII(name, "Delete", true)) return; RenderThread::current()->Send( new ViewH...
0