unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
39,010
0
poly_right(PG_FUNCTION_ARGS) { POLYGON *polya = PG_GETARG_POLYGON_P(0); POLYGON *polyb = PG_GETARG_POLYGON_P(1); bool result; result = polya->boundbox.low.x > polyb->boundbox.high.x; /* * Avoid leaking memory for toasted inputs ... needed for rtree indexes */ PG_FREE_IF_COPY(polya, 0); PG_FREE_IF_CO...
5,400
96,505
0
static void AppLayerProtoDetectProbingParserPortAppend(AppLayerProtoDetectProbingParserPort **head_port, AppLayerProtoDetectProbingParserPort *new_port) { SCEnter(); if (*head_port == NULL) { *head_port = new_port; goto end; } if (...
5,401
147,102
0
WebRemoteFrame* WebLocalFrameImpl::ToWebRemoteFrame() { NOTREACHED(); return 0; }
5,402
113,864
0
void SelectFileDialogImpl::MultiFilesSelected( const std::vector<FilePath>& selected_files, void* params, RunState run_state) { if (listener_) listener_->MultiFilesSelected(selected_files, params); EndRun(run_state); }
5,403
74,198
0
free_config_vars( config_tree *ptree ) { FREE_ATTR_VAL_FIFO(ptree->vars); }
5,404
117,197
0
void WebInspectorProxy::platformOpen() { ASSERT(!m_inspectorWindow); ASSERT(m_inspectorView); if (m_isAttached) platformAttach(); else createInspectorWindow(); g_signal_connect(m_inspectorView, "destroy", G_CALLBACK(inspectorViewDestroyed), this); }
5,405
173,543
0
static const effect_descriptor_t *get_descriptor(const effect_uuid_t *uuid) { size_t i; for (i = 0; i < NUM_ID; i++) if (memcmp(&descriptors[i]->uuid, uuid, sizeof(effect_uuid_t)) == 0) return descriptors[i]; return NULL; }
5,406
51,273
0
static ZIPARCHIVE_METHOD(getCommentName) { struct zip *intern; zval *this = getThis(); int name_len, idx; long flags = 0; int comment_len = 0; const char * comment; char *name; if (!this) { RETURN_FALSE; } ZIP_FROM_OBJECT(intern, this); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &nam...
5,407
20,980
0
static int gather_hugetbl_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) { return 0; }
5,408
127,853
0
static bool AdvanceToStartCode(const uint8* buffer, int buffer_size, int* offset, int bytes_needed, int num_bits, uint32 start_code) { DCHECK_GE(bytes_needed, 3); ...
5,409
8,475
0
void CSoundFile::FrequencyToTranspose(MODINSTRUMENT *psmp) { int f2t = FrequencyToTranspose(psmp->nC4Speed); int transp = f2t >> 7; int ftune = f2t & 0x7F; if (ftune > 80) { transp++; ftune -= 128; } if (transp > 127) transp = 127; if (transp < -127) transp = -127; psmp->RelativeTone = transp; psmp->nFine...
5,410
42,418
0
void md_check_recovery(struct mddev *mddev) { if (mddev->suspended) return; if (mddev->bitmap) bitmap_daemon_work(mddev); if (signal_pending(current)) { if (mddev->pers->sync_request && !mddev->external) { printk(KERN_INFO "md: %s in immediate safe mode\n", mdname(mddev)); mddev->safemode = 2...
5,411
163,996
0
base::string16 ServiceWorkerPaymentInstrument::GetMissingInfoLabel() const { NOTREACHED(); return base::string16(); }
5,412
162,593
0
bool ParamTraits<gfx::Transform>::Read(const base::Pickle* m, base::PickleIterator* iter, param_type* r) { const char* column_major_data; if (!iter->ReadBytes(&column_major_data, sizeof(SkMScalar) * 16)) return false; r->matrix().se...
5,413
147,191
0
void V8TestObject::ActivityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_activityLoggingSetterForAllWorldsLongAttribute_Getter"); test_object_v8_internal::ActivityLog...
5,414
55,066
0
static void end_packfile(void) { static int running; if (running || !pack_data) return; running = 1; clear_delta_base_cache(); if (object_count) { struct packed_git *new_p; unsigned char cur_pack_sha1[20]; char *idx_name; int i; struct branch *b; struct tag *t; close_pack_windows(pack_data); s...
5,415
87,063
0
static int oidc_delete_oldest_state_cookies(request_rec *r, int number_of_valid_state_cookies, int max_number_of_state_cookies, oidc_state_cookies_t *first) { oidc_state_cookies_t *cur = NULL, *prev = NULL, *prev_oldest = NULL, *oldest = NULL; while (number_of_valid_state_cookies >= max_number_of_state_cookies...
5,416
185,005
1
void NetworkReaderProxy::OnGetContent(scoped_ptr<std::string> data) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); DCHECK(data && !data->empty()); pending_data_.push_back(data.release()); if (!buffer_) { return; } int result = ReadInternal(&pending_data_, buffer_.get(), buffer_length_);...
5,417
150,130
0
LayerTreeHostTestStartPageScaleAnimation() {}
5,418
74,162
0
create_sim_node( attr_val_fifo * init_opts, server_info_fifo * servers ) { sim_node *my_node; my_node = emalloc(sizeof(*my_node)); my_node->init_opts = init_opts; my_node->servers = servers; return my_node; }
5,419
54,380
0
static PHP_MSHUTDOWN_FUNCTION(zip) { zend_hash_destroy(&zip_prop_handlers); php_unregister_url_stream_wrapper("zip"); return SUCCESS; }
5,420
147,461
0
void V8TestObject::ItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_item"); test_object_v8_internal::ItemMethod(info); }
5,421
30,338
0
void vsock_enqueue_accept(struct sock *listener, struct sock *connected) { struct vsock_sock *vlistener; struct vsock_sock *vconnected; vlistener = vsock_sk(listener); vconnected = vsock_sk(connected); sock_hold(connected); sock_hold(listener); list_add_tail(&vconnected->accept_queue, &vlistener->accept_queue)...
5,422
124,256
0
static const AtomicString& orientationToString(blink::WebScreenOrientation orientation) { unsigned length = 0; ScreenOrientationInfo* orientationMap = orientationsMap(length); for (unsigned i = 0; i < length; ++i) { if (orientationMap[i].orientation == orientation) return orientationMap[...
5,423
64,708
0
bitset_invert_to(BitSetRef from, BitSetRef to) { int i; for (i = 0; i < (int )BITSET_SIZE; i++) { to[i] = ~(from[i]); } }
5,424
133,095
0
bool HWNDMessageHandler::IsActive() const { return GetActiveWindow() == hwnd(); }
5,425
153,609
0
void GLES2Implementation::DeleteFramebuffersHelper(GLsizei n, const GLuint* framebuffers) { helper_->DeleteFramebuffersImmediate(n, framebuffers); IdAllocator* id_allocator = GetIdAllocator(IdNamespaces::kFramebuffers); for (GLsizei ii = 0; ii < n; ++ii) { id...
5,426
90,459
0
struct ib_ucontext *ib_uverbs_get_ucontext_file(struct ib_uverbs_file *ufile) { /* * We do not hold the hw_destroy_rwsem lock for this flow, instead * srcu is used. It does not matter if someone races this with * get_context, we get NULL or valid ucontext. */ struct ib_ucontext *ucontext = smp_load_acquire(&u...
5,427
145,378
0
std::unique_ptr<NativeHandler> V8SchemaRegistry::AsNativeHandler() { std::unique_ptr<ScriptContext> context( new ScriptContext(GetOrCreateContext(v8::Isolate::GetCurrent()), NULL, // no frame NULL, // no extension Feature::UNSPECIFIED_CON...
5,428
26,757
0
void nl80211_send_sta_event(struct cfg80211_registered_device *rdev, struct net_device *dev, const u8 *mac_addr, struct station_info *sinfo, gfp_t gfp) { struct sk_buff *msg; msg = nlmsg_new(NLMSG_GOODSIZE, gfp); if (!msg) return; if (nl80211_send_station(msg, 0, 0, 0, dev, mac_addr, sinfo) < 0) {...
5,429
171,247
0
void SoundTriggerHwService::Module::onCallbackEvent(const sp<CallbackEvent>& event) { ALOGV("onCallbackEvent type %d", event->mType); sp<IMemory> eventMemory = event->mMemory; if (eventMemory == 0 || eventMemory->pointer() == NULL) { return; } if (mClient == 0) { ALOGI("%s mClient == 0", __func__)...
5,430
110,242
0
NaClDesc* NaClIPCAdapter::MakeNaClDesc() { return MakeNaClDescCustom(this); }
5,431
144,499
0
void WebContentsImpl::Find(int request_id, const base::string16& search_text, const blink::WebFindOptions& options) { if (search_text.empty()) { NOTREACHED(); return; } if (browser_plugin_embedder_ && browser_plugin_embedder_->Find(request_id, s...
5,432
66,321
0
static void gen_add_A0_im(DisasContext *s, int val) { tcg_gen_addi_tl(cpu_A0, cpu_A0, val); if (!CODE64(s)) { tcg_gen_ext32u_tl(cpu_A0, cpu_A0); } }
5,433
162,731
0
void BaseRenderingContext2D::fillRect(double x, double y, double width, double height) { if (!ValidateRectForCanvas(x, y, width, height)) return; if (!DrawingCanvas()) return; SkRect rect = ...
5,434
34,592
0
pkinit_server_get_flags(krb5_context kcontext, krb5_preauthtype patype) { if (patype == KRB5_PADATA_PKINIT_KX) return PA_INFO; return PA_SUFFICIENT | PA_REPLACES_KEY | PA_TYPED_E_DATA; }
5,435
36,487
0
static int snd_ctl_release(struct inode *inode, struct file *file) { unsigned long flags; struct snd_card *card; struct snd_ctl_file *ctl; struct snd_kcontrol *control; unsigned int idx; ctl = file->private_data; file->private_data = NULL; card = ctl->card; write_lock_irqsave(&card->ctl_files_rwlock, flags); ...
5,436
17,962
0
kex_prop2buf(struct sshbuf *b, char *proposal[PROPOSAL_MAX]) { u_int i; int r; sshbuf_reset(b); /* * add a dummy cookie, the cookie will be overwritten by * kex_send_kexinit(), each time a kexinit is set */ for (i = 0; i < KEX_COOKIE_LEN; i++) { if ((r = sshbuf_put_u8(b, 0)) != 0) return r; } for (i...
5,437
94,854
0
MagickExport void SetImageInfoFile(ImageInfo *image_info,FILE *file) { assert(image_info != (ImageInfo *) NULL); assert(image_info->signature == MagickCoreSignature); if (image_info->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", image_info->filename); image_info->file=...
5,438
6,935
0
FT_Stream_New( FT_Library library, const FT_Open_Args* args, FT_Stream *astream ) { FT_Error error; FT_Memory memory; FT_Stream stream = NULL; *astream = 0; if ( !library ) return FT_THROW( Invalid_Library_Handle ); if ( !a...
5,439
61,497
0
static MagickBooleanType ApplyPSDOpacityMask(Image *image,const Image *mask, Quantum background,MagickBooleanType revert,ExceptionInfo *exception) { Image *complete_mask; MagickBooleanType status; MagickPixelPacket color; ssize_t y; if (image->debug != MagickFalse) (void) LogMagickEv...
5,440
145,766
0
BrotliState* BrotliCreateState( brotli_alloc_func alloc_func, brotli_free_func free_func, void* opaque) { BrotliState* state = 0; if (!alloc_func && !free_func) { state = (BrotliState*)malloc(sizeof(BrotliState)); } else if (alloc_func && free_func) { state = (BrotliState*)alloc_func(opaque, sizeof(Br...
5,441
119,184
0
void XMLHttpRequest::open(const String& method, const KURL& url, bool async, ExceptionState& es) { internalAbort(); State previousState = m_state; m_state = UNSENT; m_error = false; m_uploadComplete = false; clearResponse(); clearRequest(); ASSERT(m_state == UNSENT); if (!isValidH...
5,442
122,722
0
bool Extension::ShouldDisplayInNewTabPage() const { return is_app() && display_in_new_tab_page_; }
5,443
3,736
0
_dbus_flush_caches (void) { _dbus_user_database_flush_system (); }
5,444
107,060
0
void QQuickWebViewExperimental::setAlertDialog(QDeclarativeComponent* alertDialog) { Q_D(QQuickWebView); if (d->alertDialog == alertDialog) return; d->alertDialog = alertDialog; emit alertDialogChanged(); }
5,445
63,286
0
static int midi_setup_sequenceno(struct _mdi *mdi, uint32_t setting) { MIDI_EVENT_DEBUG(__FUNCTION__,0, setting); _WM_CheckEventMemoryPool(mdi); mdi->events[mdi->event_count].do_event = *_WM_do_meta_sequenceno; mdi->events[mdi->event_count].event_data.channel = 0; mdi->events[mdi->event_count].event...
5,446
47,621
0
static int ap_queue_enable_interruption(ap_qid_t qid, void *ind) { #ifdef CONFIG_64BIT struct ap_queue_status status; int t_depth, t_device_type, rc, i; rc = -EBUSY; status = ap_queue_interruption_control(qid, ind); for (i = 0; i < AP_MAX_RESET; i++) { switch (status.response_code) { case AP_RESPONSE_NORMAL:...
5,447
74,695
0
static int fmt_mp_to_sp(const struct v4l2_format *f_mp, struct v4l2_format *f_sp) { const struct v4l2_pix_format_mplane *pix_mp = &f_mp->fmt.pix_mp; struct v4l2_pix_format *pix = &f_sp->fmt.pix; if (f_mp->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f_sp->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; else if (f_mp->type...
5,448
86,502
0
modify_environment (const struct passwd *pw, const char *shell) { if (simulate_login) { /* Leave TERM unchanged. Set HOME, SHELL, USER, LOGNAME, PATH. Unset all other environment variables. */ char *term = getenv ("TERM"); if (term) term = xstrdup (term); environ = xmalloc ((6 ...
5,449
82,291
0
JsVar *jspGetConstructor(JsVar *object) { if (!jsvIsObject(object)) return 0; JsVar *proto = jsvObjectGetChild(object, JSPARSE_INHERITS_VAR, 0); if (jsvIsObject(proto)) { JsVar *constr = jsvObjectGetChild(proto, JSPARSE_CONSTRUCTOR_VAR, 0); if (jsvIsFunction(constr)) { jsvUnLock(proto); return...
5,450
125,293
0
void RenderViewImpl::willSendRequest(WebFrame* frame, unsigned identifier, WebURLRequest& request, const WebURLResponse& redirect_response) { WebFrame* top_frame = frame->top(); if (!top_frame) top_fra...
5,451
181,928
1
jas_image_t *bmp_decode(jas_stream_t *in, char *optstr) { jas_image_t *image; bmp_hdr_t hdr; bmp_info_t *info; uint_fast16_t cmptno; jas_image_cmptparm_t cmptparms[3]; jas_image_cmptparm_t *cmptparm; uint_fast16_t numcmpts; long n; if (optstr) { jas_eprintf("warning: ignoring BMP decoder options\n"); } jas_eprintf( "...
5,452
120,576
0
int Element::offsetTop() { document()->updateLayoutIgnorePendingStylesheets(); if (RenderBoxModelObject* renderer = renderBoxModelObject()) return adjustForLocalZoom(renderer->pixelSnappedOffsetTop(), renderer); return 0; }
5,453
4,697
0
void php_wddx_packet_end(wddx_packet *packet) { php_wddx_add_chunk_static(packet, WDDX_DATA_E); php_wddx_add_chunk_static(packet, WDDX_PACKET_E); }
5,454
3,358
0
zexecfile(i_ctx_t *i_ctx_p) { os_ptr op = osp; check_type_access(*op, t_file, a_executable | a_read | a_execute); check_estack(4); /* cleanup, file, finish, file */ push_mark_estack(es_other, execfile_cleanup); *++esp = *op; push_op_estack(execfile_finish); return zexec(i_ctx_p);...
5,455
111,796
0
void SyncBackendHost::FinishConfigureDataTypesOnFrontendLoop() { DCHECK_EQ(MessageLoop::current(), frontend_loop_); SDVLOG(1) << "Syncer in config mode. SBH executing " << "FinishConfigureDataTypesOnFrontendLoop"; ModelSafeRoutingInfo routing_info; registrar_->GetModelSafeRoutingInfo(&routing_inf...
5,456
6,017
0
e1000e_parse_rxbufsize(E1000ECore *core) { uint32_t rctl = core->mac[RCTL]; memset(core->rxbuf_sizes, 0, sizeof(core->rxbuf_sizes)); if (rctl & E1000_RCTL_DTYP_MASK) { uint32_t bsize; bsize = core->mac[PSRCTL] & E1000_PSRCTL_BSIZE0_MASK; core->rxbuf_sizes[0] = (bsize >> E1000_PSRC...
5,457
172,744
0
static u32 Mmcop2(dpbStorage_t *dpb, u32 longTermPicNum) { /* Variables */ i32 index; /* Code */ index = FindDpbPic(dpb, (i32)longTermPicNum, HANTRO_FALSE); if (index < 0) return(HANTRO_NOK); SET_UNUSED(dpb->buffer[index]); dpb->numRefFrames--; if (!dpb->buffer[index].toBeDisplayed) dpb-...
5,458
173,639
0
status_t DRMSource::start(MetaData *params) { int32_t val; if (params && params->findInt32(kKeyWantsNALFragments, &val) && val != 0) { mWantsNALFragments = true; } else { mWantsNALFragments = false; } return mOriginalMediaSource->start(params); }
5,459
113,479
0
void WebPagePrivate::contentsSizeChanged(const IntSize& contentsSize) { if (m_previousContentsSize == contentsSize) return; m_contentsSizeChanged = true; #if DEBUG_WEBPAGE_LOAD Platform::logAlways(Platform::LogLevelInfo, "WebPagePrivate::contentsSizeChanged %s", Platform::IntSize(contentsSize).toS...
5,460
40,685
0
static inline int __sock_recvmsg_nosec(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t size, int flags) { struct sock_iocb *si = kiocb_to_siocb(iocb); si->sock = sock; si->scm = NULL; si->msg = msg; si->size = size; si->flags = flags; return sock->ops->recvmsg(iocb, sock, msg, si...
5,461
134,727
0
void GuestViewBase::GuestSizeChanged(const gfx::Size& new_size) { if (!auto_size_enabled_) return; GuestSizeChangedDueToAutoSize(guest_size_, new_size); DispatchOnResizeEvent(guest_size_, new_size); guest_size_ = new_size; }
5,462
158,985
0
bool PDFiumEngine::OnKeyDown(const pp::KeyboardInputEvent& event) { if (last_page_mouse_down_ == -1) return false; bool rv = !!FORM_OnKeyDown(form_, pages_[last_page_mouse_down_]->GetPage(), event.GetKeyCode(), event.GetModifiers()); if (event.GetKeyCode() == ui::VKEY_BACK || ...
5,463
81,956
0
static void findBigKeys(void) { unsigned long long biggest[TYPE_COUNT] = {0}, counts[TYPE_COUNT] = {0}, totalsize[TYPE_COUNT] = {0}; unsigned long long sampled = 0, total_keys, totlen=0, *sizes=NULL, it=0; sds maxkeys[TYPE_COUNT] = {0}; char *typename[] = {"string","list","set","hash","zset","stream","n...
5,464
124,758
0
void RenderBlockFlow::repaintOverhangingFloats(bool paintAllDescendants) { if (!hasOverhangingFloats()) return; LayoutStateDisabler layoutStateDisabler(*this); const FloatingObjectSet& floatingObjectSet = m_floatingObjects->set(); FloatingObjectSetIterator end = floatingObjectSet.end(); for...
5,465
114,350
0
int WebGraphicsContext3DCommandBufferImpl::width() { return cached_width_; }
5,466
41,401
0
void kvm_vcpu_kick(struct kvm_vcpu *vcpu) { int me; int cpu = vcpu->cpu; if (waitqueue_active(&vcpu->wq)) { wake_up_interruptible(&vcpu->wq); ++vcpu->stat.halt_wakeup; } me = get_cpu(); if (cpu != me && (unsigned)cpu < nr_cpu_ids && cpu_online(cpu)) if (atomic_xchg(&vcpu->guest_mode, 0)) smp_send_resch...
5,467
44,312
0
static void build_skb_flow_key(struct flowi4 *fl4, const struct sk_buff *skb, const struct sock *sk) { const struct iphdr *iph = ip_hdr(skb); int oif = skb->dev->ifindex; u8 tos = RT_TOS(iph->tos); u8 prot = iph->protocol; u32 mark = skb->mark; __build_flow_key(fl4, sk, iph, oif, tos, prot, mark, 0); }...
5,468
47,051
0
static int sha384_ssse3_init(struct shash_desc *desc) { struct sha512_state *sctx = shash_desc_ctx(desc); sctx->state[0] = SHA384_H0; sctx->state[1] = SHA384_H1; sctx->state[2] = SHA384_H2; sctx->state[3] = SHA384_H3; sctx->state[4] = SHA384_H4; sctx->state[5] = SHA384_H5; sctx->state[6] = SHA384_H6; sctx->st...
5,469
95,086
0
static inline void SetPSDPixel(Image *image,const size_t channels, const ssize_t type,const size_t packet_size,const Quantum pixel,Quantum *q, ExceptionInfo *exception) { if (image->storage_class == PseudoClass) { PixelInfo *color; if (type == 0) { if (packet_size == 1) ...
5,470
131,497
0
static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); v8SetReturnValueInt(info, imp->notEnumerableLongAttribute()); }
5,471
146,414
0
bool WebGLRenderingContextBase::ValidateReadBufferAndGetInfo( const char* function_name, WebGLFramebuffer*& read_framebuffer_binding) { read_framebuffer_binding = GetReadFramebufferBinding(); if (read_framebuffer_binding) { const char* reason = "framebuffer incomplete"; if (read_framebuffer_binding-...
5,472
7,391
0
file_signextend(struct magic_set *ms, struct magic *m, uint64_t v) { if (!(m->flag & UNSIGNED)) { switch(m->type) { /* * Do not remove the casts below. They are * vital. When later compared with the data, * the sign extension must have happened. */ case FILE_BYTE: v = (signed char) v; break; ...
5,473
112,439
0
void Document::didAssociateFormControlsTimerFired(Timer<Document>* timer) { ASSERT_UNUSED(timer, timer == &m_didAssociateFormControlsTimer); if (!frame() || !frame()->page()) return; Vector<RefPtr<Element> > associatedFormControls; copyToVector(m_associatedFormControls, associatedFormControls);...
5,474
26,141
0
static void perf_pmu_cancel_txn(struct pmu *pmu) { perf_pmu_enable(pmu); }
5,475
115,393
0
void InjectedBundlePage::didFinishLoadForFrame(WKBundleFrameRef frame) { if (!InjectedBundle::shared().isTestRunning()) return; if (InjectedBundle::shared().testRunner()->shouldDumpFrameLoadCallbacks()) dumpLoadEvent(frame, "didFinishLoadForFrame"); frameDidChangeLocation(frame, /*shouldDu...
5,476
84,070
0
void __rds_put_mr_final(struct rds_mr *mr) { rds_destroy_mr(mr); kfree(mr); }
5,477
185,966
1
void ProcessControlLaunched() { base::ScopedAllowBlockingForTesting allow_blocking; base::ProcessId service_pid; EXPECT_TRUE(GetServiceProcessData(NULL, &service_pid)); EXPECT_NE(static_cast<base::ProcessId>(0), service_pid); #if defined(OS_WIN) service_process_ = base::Process::OpenWithAccess(service_pid, SYNCHRONIZE ...
5,478
82,571
0
void jswrap_graphics_fillRect(JsVar *parent, int x1, int y1, int x2, int y2) { JsGraphics gfx; if (!graphicsGetFromVar(&gfx, parent)) return; graphicsFillRect(&gfx, (short)x1,(short)y1,(short)x2,(short)y2); graphicsSetVar(&gfx); // gfx data changed because modified area }
5,479
164,441
0
static void SortByDimension( Rtree *pRtree, int *aIdx, int nIdx, int iDim, RtreeCell *aCell, int *aSpare ){ if( nIdx>1 ){ int iLeft = 0; int iRight = 0; int nLeft = nIdx/2; int nRight = nIdx-nLeft; int *aLeft = aIdx; int *aRight = &aIdx[nLeft]; SortByDimension(pRtree, aLeft,...
5,480
12,306
0
uiserver_reset (void *engine) { engine_uiserver_t uiserver = engine; /* We must send a reset because we need to reset the list of signers. Note that RESET does not reset OPTION commands. */ return uiserver_assuan_simple_command (uiserver->assuan_ctx, "RESET", NULL, NULL); }
5,481
139,766
0
void OffscreenCanvasSurfaceImpl::Create( mojo::InterfaceRequest<blink::mojom::OffscreenCanvasSurface> request) { mojo::MakeStrongBinding(base::MakeUnique<OffscreenCanvasSurfaceImpl>(), std::move(request)); }
5,482
10,167
0
Ins_SFVFS( INS_ARG ) { DO_SFVFS }
5,483
124,557
0
bool hasMore() const { return m_colIndex >= 0; }
5,484
127,161
0
DownloadPathReservationTrackerTest::GetLongNamePathInDownloadsDirectory( size_t repeat, const base::FilePath::CharType* suffix) { return GetPathInDownloadsDirectory( (base::FilePath::StringType(repeat, FILE_PATH_LITERAL('a')) + suffix).c_str()); }
5,485
119,262
0
void HTMLFormElement::removeImgElement(HTMLImageElement* e) { ASSERT(m_imageElements.find(e) != kNotFound); removeFromPastNamesMap(*e); removeFromVector(m_imageElements, e); }
5,486
151,240
0
void InspectorPageAgent::FrameClearedScheduledNavigation(LocalFrame* frame) { GetFrontend()->frameClearedScheduledNavigation( IdentifiersFactory::FrameId(frame)); }
5,487
60,134
0
R_API RBinObject *r_bin_file_object_get_cur(RBinFile *binfile) { return binfile? binfile->o: NULL; }
5,488
102,122
0
void SyncManager::EnableEncryptEverything() { { WriteTransaction trans(FROM_HERE, GetUserShare()); Cryptographer* cryptographer = trans.GetCryptographer(); if (cryptographer->is_ready()) cryptographer->set_encrypt_everything(); } data_->EncryptDataTypes(syncable::ModelTypeSet()); }
5,489
7,546
0
tm_diff (struct tm const *a, struct tm const *b) { /* Compute intervening leap days correctly even if year is negative. Take care to avoid int overflow in leap day calculations. */ int a4 = SHR (a->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (a->tm_year & 3); int b4 = SHR (b->tm_year, 2) + SHR (TM_YEAR_BASE, 2)...
5,490
187,397
1
status_t SampleTable::setCompositionTimeToSampleParams( off64_t data_offset, size_t data_size) { ALOGI("There are reordered frames present."); if (mCompositionTimeDeltaEntries != NULL || data_size < 8) { return ERROR_MALFORMED; } uint8_t header[8]; if (mDataSource->readAt( data_offset, heade...
5,491
8,361
0
static void mptsas_free_request(MPTSASRequest *req) { MPTSASState *s = req->dev; if (req->sreq != NULL) { req->sreq->hba_private = NULL; scsi_req_unref(req->sreq); req->sreq = NULL; QTAILQ_REMOVE(&s->pending, req, next); } qemu_sglist_destroy(&req->qsg); g_free(req);...
5,492
14,373
0
static int build_filter(ResampleContext *c, double factor) { int ph, i; double x, y, w; double *tab; int tap_count = c->filter_length; int phase_count = 1 << c->phase_shift; const int center = (tap_count - 1) / 2; tab = av_malloc(tap_count * sizeof(*tab)); if (!tab) return A...
5,493
155,005
0
WebGLTexture* WebGLRenderingContextBase::ValidateTextureBinding( const char* function_name, GLenum target) { WebGLTexture* tex = nullptr; switch (target) { case GL_TEXTURE_2D: tex = texture_units_[active_texture_unit_].texture2d_binding_.Get(); break; case GL_TEXTURE_CUBE_MAP: tex ...
5,494
67,872
0
aiff_rewrite_header (SF_PRIVATE *psf) { /* Assuming here that the header has already been written and just ** needs to be corrected for new data length. That means that we ** only change the length fields of the FORM and SSND chunks ; ** everything else can be skipped over. */ int k, ch, comm_size, comm_frames ; ...
5,495
50,109
0
static CURLcode nss_load_ca_certificates(struct connectdata *conn, int sockindex) { struct Curl_easy *data = conn->data; const char *cafile = data->set.ssl.CAfile; const char *capath = data->set.ssl.CApath; if(cafile) { CURLcode result = nss_load_cert(&conn->ssl[soc...
5,496
28,478
0
static inline int qeth_alloc_cq(struct qeth_card *card) { int rc; if (card->options.cq == QETH_CQ_ENABLED) { int i; struct qdio_outbuf_state *outbuf_states; QETH_DBF_TEXT(SETUP, 2, "cqon"); card->qdio.c_q = kzalloc(sizeof(struct qeth_qdio_q), GFP_KERNEL); if (!card->qdio.c_q) { rc = -1; goto k...
5,497
144,029
0
png_start_read_image(png_structp png_ptr) { png_debug(1, "in png_start_read_image"); if (png_ptr == NULL) return; if (!(png_ptr->flags & PNG_FLAG_ROW_INIT)) png_read_start_row(png_ptr); }
5,498
175,697
0
MediaBuffer *readBuffer(FLAC__uint64 sample) { return readBuffer(true, sample); }
5,499