idx
int64
func
string
target
int64
296,858
static int vidioc_s_input(struct file *file, void *fh, unsigned int i) { struct v4l2_loopback_device *dev = v4l2loopback_getdevice(file); if (!dev->announce_all_caps && !dev->ready_for_capture) return -ENOTTY; if (i == 0) return 0; return -EINVAL; }
0
303,882
TEST_F(QuicUnencryptedServerTransportTest, FirstPacketProcessedCallback) { getFakeHandshakeLayer()->allowZeroRttKeys(); EXPECT_CALL(connCallback, onFirstPeerPacketProcessed()).Times(1); recvClientHello(); loopForWrites(); AckBlocks acks; acks.insert(0); auto aead = getInitialCipher(); auto headerCipher ...
0
216,730
bool doReadUintHelper(T* value) { *value = 0; uint8_t currentByte; int shift = 0; do { if (m_position >= m_length) return false; currentByte = m_buffer[m_position++]; *value |= ((currentByte & varIntMask) << shift); ...
0
98,052
static void out_string(conn *c, const char *str) { size_t len; assert(c != NULL); if (c->noreply) { if (settings.verbose > 1) fprintf(stderr, ">%d NOREPLY %s\n", c->sfd, str); c->noreply = false; conn_set_state(c, conn_new_cmd); return; } if (settings.v...
0
348,759
void Downstream::inspect_http1_request() { if (req_.method == HTTP_CONNECT) { req_.upgrade_request = true; } else if (req_.http_minor > 0) { auto upgrade = req_.fs.header(http2::HD_UPGRADE); if (upgrade) { const auto &val = upgrade->value; // TODO Perform more strict checking for upgrade hea...
1
192,526
RenderRegion* RenderBlock::regionAtBlockOffset(LayoutUnit blockOffset) const { RenderFlowThread* flowThread = flowThreadContainingBlock(); if (!flowThread || !flowThread->hasValidRegionInfo()) return 0; return flowThread->regionAtBlockOffset(offsetFromLogicalTopOfFirstPage() + blockOffset, true); }...
0
486,181
usage (void) { printf ("Usage: %s [OPTIONS]\n", prog); }
0
297,441
sixel_allocator_calloc( sixel_allocator_t /* in */ *allocator, /* allocator object */ size_t /* in */ nelm, /* number of elements */ size_t /* in */ elsize) /* size of element */ { size_t n; /* precondition */ assert(allocator); assert(allocator->fn_...
0
351,094
Init_date_core(void) { #ifdef HAVE_RB_EXT_RACTOR_SAFE RB_EXT_RACTOR_SAFE(true); #endif id_cmp = rb_intern_const("<=>"); id_le_p = rb_intern_const("<="); id_ge_p = rb_intern_const(">="); id_eqeq_p = rb_intern_const("=="); half_days_in_day = rb_rational_new2(INT2FIX(1), INT2FIX(2)); #if (LO...
1
447,174
void aarp_cleanup_module(void) { del_timer_sync(&aarp_timer); unregister_netdevice_notifier(&aarp_notifier); unregister_snap_client(aarp_dl); aarp_purge(); }
0
364,227
ExtendSolidArea(rfbClientPtr cl, int x, int y, int w, int h, uint32_t colorValue, int *x_ptr, int *y_ptr, int *w_ptr, int *h_ptr) { int cx, cy; /* Try to extend the ar...
0
5,664
static int read_data(void *opaque, uint8_t *buf, int buf_size) { struct playlist *v = opaque; HLSContext *c = v->parent->priv_data; int ret, i; int just_opened = 0; restart: if (!v->needed) return AVERROR_EOF; if (!v->input) { int64_t reload_interval; struct segment *se...
1
198,484
int BackendImpl::OpenEntry(const std::string& key, Entry** entry, const CompletionCallback& callback) { DCHECK(!callback.is_null()); background_queue_.OpenEntry(key, entry, callback); return net::ERR_IO_PENDING; }
0
211,085
MetricsWebContentsObserver* MetricsWebContentsObserver::CreateForWebContents( content::WebContents* web_contents, std::unique_ptr<PageLoadMetricsEmbedderInterface> embedder_interface) { DCHECK(web_contents); MetricsWebContentsObserver* metrics = FromWebContents(web_contents); if (!metrics) { metrics ...
0
490,036
static int coolkey_get_serial_nr_from_CUID(sc_card_t* card, sc_serial_number_t* serial) { coolkey_private_data_t * priv = COOLKEY_DATA(card); SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_NORMAL); memcpy(serial->value, &priv->cuid, sizeof(priv->cuid)); serial->len = sizeof(priv->cuid); SC_FUNC_RETURN(card->ctx, SC_LOG_D...
0
246,094
int RenderLayerScrollableArea::pageStep(ScrollbarOrientation orientation) const { int length = (orientation == HorizontalScrollbar) ? box().pixelSnappedClientWidth() : box().pixelSnappedClientHeight(); int minPageStep = static_cast<float>(length) * ScrollableArea::minFractionToStepWhenPaging(); int ...
0
162,349
lys_container_free(struct ly_ctx *ctx, struct lys_node_container *cont, void (*private_destructor)(const struct lys_node *node, void *priv)) { int i; /* handle only specific parts for LY_NODE_CONTAINER */ lydict_remove(ctx, cont->presence); for (i = 0; i < cont->tpdf_size; i++) { ...
0
432,194
static bool toneport_has_led(struct usb_line6_toneport *toneport) { switch (toneport->type) { case LINE6_GUITARPORT: case LINE6_TONEPORT_GX: /* add your device here if you are missing support for the LEDs */ return true; default: return false; } }
0
381,759
UpdateChangedParamSet(PlanState *node, Bitmapset *newchg) { Bitmapset *parmset; /* * The plan node only depends on params listed in its allParam set. Don't * include anything else into its chgParam set. */ parmset = bms_intersect(node->plan->allParam, newchg); /* * Keep node->chgParam == NULL if there's ...
0
50,775
int kvm_apic_match_physical_addr(struct kvm_lapic *apic, u16 dest) { return dest == 0xff || kvm_apic_id(apic) == dest; }
0
178,261
const SSL_CIPHER *dtls1_get_cipher(unsigned int u) { const SSL_CIPHER *ciph = ssl3_get_cipher(u); if (ciph != NULL) { if (ciph->algorithm_enc == SSL_RC4) return NULL; } return ciph; }
0
87,280
build_oid_noalloc(oid * in, size_t in_len, size_t * out_len, oid * prefix, size_t prefix_len, netsnmp_variable_list * indexes) { netsnmp_variable_list *var; if (prefix) { if (in_len < prefix_len) return SNMPERR_GENERR; memcpy(in, prefix, prefix_le...
0
390,555
X509_STORE* X509_STORE_new(void) { // TODO: return 0; }
0
271,184
MagickPrivate NexusInfo **AcquirePixelCacheNexus(const size_t number_threads) { NexusInfo **magick_restrict nexus_info; register ssize_t i; nexus_info=(NexusInfo **) MagickAssumeAligned(AcquireAlignedMemory( number_threads,sizeof(*nexus_info))); if (nexus_info == (NexusInfo **) NULL) ThrowFata...
0
205,434
void DevToolsUIBindings::ShowDevToolsConfirmInfoBar( const base::string16& message, const InfoBarCallback& callback) { if (!delegate_->GetInfoBarService()) { callback.Run(false); return; } std::unique_ptr<DevToolsConfirmInfoBarDelegate> delegate( new DevToolsConfirmInfoBarDelegate(callback, ...
0
413,492
void slurmctld_req(slurm_msg_t *msg, connection_arg_t *arg) { DEF_TIMERS; int i, rpc_type_index = -1, rpc_user_index = -1; uint32_t rpc_uid; if (arg && (arg->newsockfd >= 0)) fd_set_nonblocking(arg->newsockfd); #ifndef NDEBUG if ((msg->flags & SLURM_DROP_PRIV)) drop_priv = true; #endif /* Just to validate ...
0
262,145
static inline int is_timeval_eq(const struct timeval *i1, const struct timeval *i2) { return i1->tv_sec == i2->tv_sec && i1->tv_usec == i2->tv_usec; }
0
377,134
bool bdrv_is_first_non_filter(BlockDriverState *candidate) { BlockDriverState *bs; /* walk down the bs forest recursively */ QTAILQ_FOREACH(bs, &bdrv_states, device_list) { bool perm; /* try to recurse in this top level bs */ perm = bdrv_recurse_is_first_non_filter(bs, candidate); ...
0
229,091
void CL_Disconnect( qboolean showMainMenu ) { if ( !com_cl_running || !com_cl_running->integer ) { return; } Cvar_Set("r_uiFullScreen", "1"); if ( clc.demorecording ) { CL_StopRecord_f (); } if (clc.download) { FS_FCloseFile( clc.download ); clc.download = 0; } *clc.downloadTempName = *clc.downloadNa...
0
462,426
static void lo_lookup(fuse_req_t req, fuse_ino_t parent, const char *name) { struct fuse_entry_param e; int err; fuse_log(FUSE_LOG_DEBUG, "lo_lookup(parent=%" PRIu64 ", name=%s)\n", parent, name); /* * Don't use is_safe_path_component(), allow "." and ".." for NFS export * suppo...
0
55,348
static void rpmsg_upref_sleepers(struct virtproc_info *vrp) { /* support multiple concurrent senders */ mutex_lock(&vrp->tx_lock); /* are we the first sleeping context waiting for tx buffers ? */ if (atomic_inc_return(&vrp->sleepers) == 1) /* enable "tx-complete" interrupts before dozing off */ virtqueue_enabl...
0
261,174
size_t mobi_get_aid_offset(const MOBIPart *html, const char *aid) { size_t length = html->size; const char *data = (char *) html->data; const size_t aid_length = strlen(aid); const size_t attr_length = 5; /* "aid='" length */ do { if (length > (aid_length + attr_length) && memcmp(data, "aid=...
0
53,384
static int dwc3_gadget_set_ep_config(struct dwc3 *dwc, struct dwc3_ep *dep, bool modify, bool restore) { const struct usb_ss_ep_comp_descriptor *comp_desc; const struct usb_endpoint_descriptor *desc; struct dwc3_gadget_ep_cmd_params params; if (dev_WARN_ONCE(dwc->dev, modify && restore, "Can't modify and re...
0
271,506
BOOL JavascriptArray::SetAccessors(PropertyId propertyId, Var getter, Var setter, PropertyOperationFlags flags) { ScriptContext* scriptContext = this->GetScriptContext(); uint32 index; if (scriptContext->IsNumericPropertyId(propertyId, &index)) { return GetTypeHandle...
0
29,397
static void * prplcb_account_request_authorize ( PurpleAccount * account , const char * remote_user , const char * id , const char * alias , const char * message , gboolean on_list , PurpleAccountRequestAuthorizationCb authorize_cb , PurpleAccountRequestAuthorizationCb deny_cb , void * user_data ) { struct im_connecti...
0
288,206
XSharedMemoryId AttachSharedMemory(Display* display, int shared_memory_key) { DCHECK(QuerySharedMemorySupport(display)); XShmSegmentInfo shminfo; memset(&shminfo, 0, sizeof(shminfo)); shminfo.shmid = shared_memory_key; if (!XShmAttach(display, &shminfo)) NOTREACHED(); return shminfo.shmseg; }
1
488,825
static gboolean avdtp_reconf_cmd(struct avdtp *session, uint8_t transaction, struct seid_req *req, int size) { struct conf_rej rej; rej.error = AVDTP_NOT_SUPPORTED_COMMAND; rej.category = 0x00; return avdtp_send(session, transaction, AVDTP_MSG_TYPE_REJECT, AVDTP_RECONFIGURE, &rej, sizeof(rej)); }
0
429,818
smpl_t aubio_onset_get_thresholded_descriptor(const aubio_onset_t * o) { fvec_t * thresholded = aubio_peakpicker_get_thresholded_input(o->pp); return thresholded->data[0]; }
0
188,098
static inline int s16(byte *p) { return (signed short)( (p[0] << 8) | p[1] ); }
0
219,375
ProfileChooserView::ProfileChooserView(views::Button* anchor_button, Browser* browser, profiles::BubbleViewMode view_mode, signin::GAIAServiceType service_type, sig...
0
144,476
static inline u64 vmx_control_msr(u32 low, u32 high) { return low | ((u64)high << 32); }
0
55,088
PJ_DEF(pjsip_dialog*) pjsip_tdata_get_dlg( pjsip_tx_data *tdata ) { return (pjsip_dialog*) tdata->mod_data[mod_ua.mod.id]; }
0
362,854
static __inline__ void sk_add_bind_node(struct sock *sk, struct hlist_head *list) { hlist_add_head(&sk->sk_bind_node, list); }
0
295,785
cib_remote_connection_destroy(gpointer user_data) { crm_err("Connection destroyed"); #ifdef HAVE_GNUTLS_GNUTLS_H cib_tls_close(user_data); #endif return; }
0
157,271
mono_image_create_pefile (MonoReflectionModuleBuilder *mb, HANDLE file) { MonoMSDOSHeader *msdos; MonoDotNetHeader *header; MonoSectionTable *section; MonoCLIHeader *cli_header; guint32 size, image_size, virtual_base, text_offset; guint32 header_start, section_start, file_offset, virtual_offset; MonoDynamicImage...
0
513,083
virtual void dump() {}
0
300,198
int af9005_read_ofdm_register(struct dvb_usb_device *d, u16 reg, u8 * value) { int ret; deb_reg("read register %x ", reg); ret = af9005_generic_read_write(d, reg, AF9005_CMD_READ, AF9005_OFDM_REG, value, 1); if (ret) deb_reg("failed\n"); else deb_reg("value %x\n", *value); return ret; }
0
62,223
void ASC_getUserIdentAC(T_ASC_Parameters* params, UserIdentityNegotiationSubItemAC** usrIdentAC) { *usrIdentAC = params->DULparams.ackUserIdentNeg; }
0
442,024
vhost_user_set_log_base(struct virtio_net **pdev, struct VhostUserMsg *msg, int main_fd __rte_unused) { struct virtio_net *dev = *pdev; int fd = msg->fds[0]; uint64_t size, off; void *addr; if (validate_msg_fds(msg, 1) != 0) return RTE_VHOST_MSG_RESULT_ERR; if (fd < 0) { VHOST_LOG_CONFIG(ERR, "invalid lo...
0
386,577
/* {{{ PHP_RSHUTDOWN_FUNCTION */ PHP_RSHUTDOWN_FUNCTION(date) { if (DATEG(timezone)) { efree(DATEG(timezone)); } DATEG(timezone) = NULL; if(DATEG(tzcache)) { zend_hash_destroy(DATEG(tzcache)); FREE_HASHTABLE(DATEG(tzcache)); DATEG(tzcache) = NULL; } if (DATEG(last_errors)) { timelib_error_container_dto...
0
102,246
R_API RBuffer *r_buf_new_with_bytes(const ut8 *bytes, ut64 len) { struct buf_bytes_user u = { 0 }; u.data = bytes; u.length = len; return new_buffer (R_BUFFER_BYTES, &u); }
0
505,106
static int append_ia5(STACK_OF(OPENSSL_STRING) **sk, ASN1_IA5STRING *email) { char *emtmp; /* First some sanity checks */ if(email->type != V_ASN1_IA5STRING) return 1; if(!email->data || !email->length) return 1; if(!*sk) *sk = sk_OPENSSL_STRING_new(sk_strcmp); if(!*sk) return 0; /* Don't add duplicates */ if(s...
0
137,557
static void kvm_sched_yield(struct kvm_vcpu *vcpu, unsigned long dest_id) { struct kvm_vcpu *target = NULL; struct kvm_apic_map *map; vcpu->stat.directed_yield_attempted++; if (single_task_running()) goto no_yield; rcu_read_lock(); map = rcu_dereference(vcpu->kvm->arch.apic_map); if (likely(map) && dest_id...
0
315,700
CanvasResourceProvider* HTMLCanvasElement::GetOrCreateCanvasResourceProvider( AccelerationHint hint) { if (Is2d()) return GetOrCreateCanvas2DLayerBridge()->GetOrCreateResourceProvider(hint); return CanvasRenderingContextHost::GetOrCreateCanvasResourceProvider(hint); }
0
212,186
void PrintPreviewMessageHandler::OnRequestPrintPreview( content::RenderFrameHost* render_frame_host, const PrintHostMsg_RequestPrintPreview_Params& params) { if (params.webnode_only) { PrintViewManager::FromWebContents(web_contents())->PrintPreviewForWebNode( render_frame_host); } PrintPreview...
0
217,422
int BrowserActionsContainer::GetCurrentTabId() const { TabContents* tab_contents = toolbar_->browser()->GetSelectedTabContents(); if (!tab_contents) return -1; return tab_contents->controller().session_id().id(); }
0
517,276
Item_default_value(THD *thd, Name_resolution_context *context_arg, Field *a) :Item_field(thd, context_arg, (const char *)NULL, (const char *)NULL, (const char *)NULL), arg(NULL),cached_field(NULL) {}
0
459,187
MagickExport void ConvertRGBToHCLp(const Quantum red,const Quantum green, const Quantum blue,double *hue,double *chroma,double *luma) { double b, c, g, h, max, r; /* Convert RGB to HCLp colorspace. */ assert(hue != (double *) NULL); assert(chroma != (double *) NULL); assert(lu...
0
23,888
static gboolean k12_dump_finish ( wtap_dumper * wdh , int * err ) { k12_dump_t * k12 = ( k12_dump_t * ) wdh -> priv ; union { guint8 b [ sizeof ( guint32 ) ] ; guint32 u ; } d ; if ( ! wtap_dump_file_write ( wdh , k12_eof , 2 , err ) ) return FALSE ; k12 -> file_len += 2 ; if ( wtap_dump_file_seek ( wdh , K12_...
0
68,088
sampled_guards_update_from_consensus(guard_selection_t *gs) { tor_assert(gs); const int REMOVE_UNLISTED_GUARDS_AFTER = (get_remove_unlisted_guards_after_days() * 86400); const int unlisted_since_slop = REMOVE_UNLISTED_GUARDS_AFTER / 5; // It's important to use only a live consensus here; we don't want to ...
0
17,517
static void dissect_zcl_identify_identify ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) { proto_tree_add_item ( tree , hf_zbee_zcl_identify_identify_time , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ; * offset += 2 ; }
0
69,009
static int i40e_config_netdev(struct i40e_vsi *vsi) { struct i40e_pf *pf = vsi->back; struct i40e_hw *hw = &pf->hw; struct i40e_netdev_priv *np; struct net_device *netdev; u8 broadcast[ETH_ALEN]; u8 mac_addr[ETH_ALEN]; int etherdev_size; netdev_features_t hw_enc_features; netdev_features_t hw_features; ether...
0
501,435
size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx) { if (cctx==NULL) return 0; /* support free on NULL */ if (cctx->staticSize) return ERROR(memory_allocation); /* not compatible with static CCtx */ ZSTD_freeCCtxContent(cctx); ZSTD_free(cctx, cctx->customMem); return 0; }
0
245,500
blink::WebAppBannerClient* RenderFrameImpl::appBannerClient() { if (!app_banner_client_) { app_banner_client_ = GetContentClient()->renderer()->CreateAppBannerClient(this); } return app_banner_client_.get(); }
0
335,658
static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len) { unsigned int crc; unsigned char packet[TS_PACKET_SIZE]; const unsigned char *buf_ptr; unsigned char *q; int first, b, len1, left; crc = av_bswap32(av_crc(av_crc_get_table(AV_CRC_32_IEEE), ...
1
241,022
void CapturerMac::ClearInvalidRects() { helper_.ClearInvalidRects(); }
0
86,267
static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) { unsigned long alignmask = crypto_ahash_alignmask(tfm); int ret; u8 *buffer, *alignbuffer; unsigned long absize; absize = keylen + alignmask; buffer = kmalloc(absize, GFP_KERNEL); if (!buffer) return -ENOMEM; ...
0
132,219
static void process_stats_conns(ADD_STAT add_stats, void *c) { int i; char key_str[STAT_KEY_LEN]; char val_str[STAT_VAL_LEN]; size_t extras_len = sizeof("unix:") + sizeof("65535"); char addr[MAXPATHLEN + extras_len]; char svr_addr[MAXPATHLEN + extras_len]; int klen = 0, vlen = 0; assert...
0
389,794
void qemu_ram_remap(ram_addr_t addr, ram_addr_t length) { RAMBlock *block; ram_addr_t offset; int flags; void *area, *vaddr; QLIST_FOREACH_RCU(block, &ram_list.blocks, next) { offset = addr - block->offset; if (offset < block->max_length) { vaddr = ramblock_ptr(block, of...
0
13,020
gst_vorbis_tag_add_coverart (GstTagList * tags, const gchar * img_data_base64, gint base64_len) { GstBuffer *img; guchar *img_data; gsize img_len; guint save = 0; gint state = 0; if (base64_len < 2) goto not_enough_data; img_data = g_try_malloc0 (base64_len * 3 / 4); if (img_data == ...
1
198,368
HistogramBase* CustomHistogram::DeserializeInfoImpl(PickleIterator* iter) { std::string histogram_name; int flags; int declared_min; int declared_max; uint32_t bucket_count; uint32_t range_checksum; if (!ReadHistogramArguments(iter, &histogram_name, &flags, &declared_min, &d...
0
353,410
dtls1_buffer_message(SSL *s, int is_ccs) { pitem *item; hm_fragment *frag; unsigned char seq64be[8]; /* this function is called immediately after a message has * been serialized */ OPENSSL_assert(s->init_off == 0); frag = dtls1_hm_fragment_new(s->init_num); memcpy(frag->fragment, s->init_buf->data, s->ini...
1
13,683
void PlatformSensorFusion::Create( mojo::ScopedSharedBufferMapping mapping, PlatformSensorProvider* provider, std::unique_ptr<PlatformSensorFusionAlgorithm> fusion_algorithm, const PlatformSensorProviderBase::CreateSensorCallback& callback) { Factory::CreateSensorFusion(std::move(mapping), std::mo...
1
444,257
int ConnectionImpl::onMetadataFrameComplete(int32_t stream_id, bool end_metadata) { ENVOY_CONN_LOG(trace, "recv METADATA frame on stream {}, end_metadata: {}", connection_, stream_id, end_metadata); StreamImpl* stream = getStream(stream_id); if (stream == nullptr) { return 0; } bool res...
0
208,194
virtual bool livesLocally(node_id node, pid_t pid) { Parcel data, reply; data.writeInterfaceToken(IOMX::getInterfaceDescriptor()); data.writeInt32((int32_t)node); data.writeInt32(pid); remote()->transact(LIVES_LOCALLY, data, &reply); return reply.readInt32() != 0; }
0
142,125
static int ntop_change_user_host_pool(lua_State* vm) { char *username, *host_pool_id; ntop->getTrace()->traceEvent(TRACE_DEBUG, "%s() called", __FUNCTION__); if(!Utils::isUserAdministrator(vm)) return(CONST_LUA_ERROR); if(ntop_lua_check(vm, __FUNCTION__, 1, LUA_TSTRING)) return(CONST_LUA_PARAM_ERROR); if((u...
0
368,269
token_clear(directory_token_t *tok) { if (tok->key) crypto_free_pk_env(tok->key); }
0
184,293
void QuotaManager::GetGlobalUsage(StorageType type, const GlobalUsageCallback& callback) { LazyInitialize(); GetUsageTracker(type)->GetGlobalUsage(callback); }
0
503,446
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
277,489
void BaseRenderingContext2D::RestoreMatrixClipStack(PaintCanvas* c) const { if (!c) return; HeapVector<Member<CanvasRenderingContext2DState>>::const_iterator curr_state; DCHECK(state_stack_.begin() < state_stack_.end()); for (curr_state = state_stack_.begin(); curr_state < state_stack_.end(); curr_st...
0
478,444
static int _assign_xshm(Display *dpy, XErrorEvent *error) { cimg::unused(dpy,error); cimg::X11_attr().is_shm_enabled = false; return 0; }
0
285,360
gx_dc_pattern2_color_has_bbox(const gx_device_color * pdevc) { gs_pattern2_instance_t *pinst = (gs_pattern2_instance_t *)pdevc->ccolor.pattern; const gs_shading_t *psh = pinst->templat.Shading; return psh->params.have_BBox; }
0
344,701
int main( int argc, char *argv[] ) { ((void) argc); ((void) argv); printf("POLARSSL_TIMING_C not defined.\n"); return( 0 ); }
1
421,738
flatpak_load_override_keyfile (const char *app_id, gboolean user, GError **error) { g_autofree char *metadata_contents = NULL; gsize metadata_size; g_autoptr(GKeyFile) metakey = g_key_file_new (); g_autoptr(FlatpakDir) dir = NULL; dir = user ? flatpak_dir_get_user () : flatpak_dir_get_system_default (); ...
0
452,597
AuthAuthorizer* MonClient::build_authorizer(int service_id) const { std::lock_guard l(monc_lock); if (auth) { return auth->build_authorizer(service_id); } else { ldout(cct, 0) << __func__ << " for " << ceph_entity_type_name(service_id) << ", but no auth is available now" << dendl; return nullptr; ...
0
290,384
static uint8_t pfkey_proto_to_xfrm ( uint8_t proto ) { return proto == IPSEC_PROTO_ANY ? 0 : proto ; }
0
31,054
static hb_codepoint_t hb_ucdn_mirroring ( hb_unicode_funcs_t * ufuncs , hb_codepoint_t unicode , void * user_data HB_UNUSED ) { return ucdn_mirror ( unicode ) ; }
0
462,781
TEST(GtOp, MatchesDotNotationNull) { BSONObj operand = BSON("$gt" << BSONNULL); GTMatchExpression gt("a.b", operand["$gt"]); ASSERT(!gt.matchesBSON(BSONObj(), NULL)); ASSERT(!gt.matchesBSON(BSON("a" << BSONNULL), NULL)); ASSERT(!gt.matchesBSON(BSON("a" << 4), NULL)); ASSERT(!gt.matchesBSON(BSON(...
0
29,881
static inline void get_limits ( MpegEncContext * s , int x , int y ) { MotionEstContext * const c = & s -> me ; int range = c -> avctx -> me_range >> ( 1 + ! ! ( c -> flags & FLAG_QPEL ) ) ; if ( s -> unrestricted_mv ) { c -> xmin = - x - 16 ; c -> ymin = - y - 16 ; c -> xmax = - x + s -> mb_width * 16 ; c -> ym...
0
479,859
CImg<T> get_rows(const int y0, const int y1) const { return get_crop(0,y0,0,0,width() - 1,y1,depth() - 1,spectrum() - 1); }
0
93,141
static void TIFFIgnoreTags(TIFF *tiff) { char *q; const char *p, *tags; Image *image; register ssize_t i; size_t count; TIFFFieldInfo *ignore; if (TIFFGetReadProc(tiff) != TIFFReadBlob) return; image=(Image *)TIFFClientdata(tiff); tags=GetImageArtifact(image,"tiff:...
0
512,851
void Gfx::opCurveTo2(Object args[], int numArgs) { double x1, y1, x2, y2, x3, y3; if (!state->isCurPt()) { error(getPos(), "No current point in curveto2"); return; } x1 = args[0].getNum(); y1 = args[1].getNum(); x2 = args[2].getNum(); y2 = args[3].getNum(); x3 = x2; y3 = y2; state->curveTo(...
0
400,198
clear_status_flags_on_sybil(routerstatus_t *rs) { rs->is_authority = rs->is_exit = rs->is_stable = rs->is_fast = rs->is_flagged_running = rs->is_named = rs->is_valid = rs->is_hs_dir = rs->is_v2_dir = rs->is_possible_guard = 0; /* FFFF we might want some mechanism to check later on if we * missed zeroing ...
0
144,156
get_pfxmatch( char ** s, struct masks *m ) { while (m->name) { if (strncmp(*s, m->name, strlen(m->name)) == 0) { *s += strlen(m->name); return m->mask; } else { m++; } } return 0; }
0
173,824
ChromotingInstance::ChromotingInstance(PP_Instance pp_instance) : pp::Instance(pp_instance), initialized_(false), plugin_task_runner_( new PluginThreadTaskRunner(&plugin_thread_delegate_)), context_(plugin_task_runner_), input_tracker_(&mouse_input_filter_), #if defined(OS_MACOSX) ...
0
261,531
static u16 tcm_loop_get_tag(struct se_portal_group *se_tpg) { struct tcm_loop_tpg *tl_tpg = (struct tcm_loop_tpg *)se_tpg->se_tpg_fabric_ptr; /* * This Tag is used when forming SCSI Name identifier in EVPD=1 0x83 * to represent the SCSI Target Port. */ return tl_tpg->tl_tpgt; }
0
487,186
query_string& operator=(query_string&& qs) { key_value_pairs_ = std::move(qs.key_value_pairs_); char* old_data = (char*)qs.url_.c_str(); url_ = std::move(qs.url_); for (auto& p : key_value_pairs_) { p += (char*)url_.c_str() - ol...
0
508,421
int SSL_pending(const SSL *s) { /* * SSL_pending cannot work properly if read-ahead is enabled * (SSL_[CTX_]ctrl(..., SSL_CTRL_SET_READ_AHEAD, 1, NULL)), and it is * impossible to fix since SSL_pending cannot report errors that may be * observed while scanning the new data. (Note that SSL_pendin...
0
376,027
static int pxa2xx_fir_is_empty(void *opaque) { PXA2xxFIrState *s = (PXA2xxFIrState *) opaque; return (s->rx_len < 64); }
0
214,354
bool PrintRenderFrameHelper::PrintPagesNative(blink::WebLocalFrame* frame, int page_count) { const PrintMsg_PrintPages_Params& params = *print_pages_params_; const PrintMsg_Print_Params& print_params = params.params; std::vector<int> printed_pages = GetPrintedPages(p...
0