unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
14,900
0
static int spl_heap_it_valid(zend_object_iterator *iter TSRMLS_DC) /* {{{ */ { spl_heap_it *iterator = (spl_heap_it *)iter; return (iterator->object->heap->count != 0 ? SUCCESS : FAILURE); } /* }}} */
6,900
148,247
0
void BrowserPpapiHostImpl::OnThrottleStateChanged(PP_Instance instance, bool is_throttled) { auto it = instance_map_.find(instance); if (it != instance_map_.end()) { it->second->is_throttled = is_throttled; for (auto& observer : it->second->observer_list) ...
6,901
139,406
0
static bool ExecuteCut(LocalFrame& frame, Event*, EditorCommandSource source, const String&) { if (!CanWriteClipboard(frame, source)) return false; frame.GetEditor().Cut(source); return true; }
6,902
97,622
0
xmlXPathCompVariableReference(xmlXPathParserContextPtr ctxt) { xmlChar *name; xmlChar *prefix; SKIP_BLANKS; if (CUR != '$') { XP_ERROR(XPATH_VARIABLE_REF_ERROR); } NEXT; name = xmlXPathParseQName(ctxt, &prefix); if (name == NULL) { XP_ERROR(XPATH_VARIABLE_REF_ERROR); } ctxt->c...
6,903
37,717
0
static void pit_do_work(struct kthread_work *work) { struct kvm_pit *pit = container_of(work, struct kvm_pit, expired); struct kvm *kvm = pit->kvm; struct kvm_vcpu *vcpu; int i; struct kvm_kpit_state *ps = &pit->pit_state; int inject = 0; /* Try to inject pending interrupts when * last one has been acked. *...
6,904
127,050
0
void ChromeClientImpl::print(Frame* frame) { if (m_webView->client()) m_webView->client()->printPage(WebFrameImpl::fromFrame(frame)); }
6,905
132,570
0
WebKitTestController* WebKitTestController::Get() { DCHECK(instance_); return instance_; }
6,906
44,085
0
string2xml(const char *input) { xmlNode *xml = NULL; xmlDocPtr output = NULL; xmlParserCtxtPtr ctxt = NULL; xmlErrorPtr last_error = NULL; if (input == NULL) { crm_err("Can't parse NULL input"); return NULL; } /* create a parser context */ ctxt = xmlNewParserCtxt(); ...
6,907
97,903
0
bool RenderView::GetAllChildFrames( WebFrame* parent_frame, std::vector<WebFrame*>* frames_vector) const { if (!parent_frame) return false; for (WebFrame* child_frame = parent_frame->firstChild(); child_frame; child_frame = child_frame->nextSibling()) { frames_vector->push_back(child_frame); ...
6,908
1,826
0
gstate_to_update(fz_context *ctx, pdf_filter_processor *p) { filter_gstate *gstate = p->gstate; /* If we're not the top, that's fine */ if (gstate->next != NULL) return gstate; /* We are the top. Push a group, so we're not */ filter_push(ctx, p); gstate = p->gstate; gstate->pushed = 1; if (p->chain->op_q) ...
6,909
137,755
0
HeadlessDevToolsTarget* HeadlessWebContentsImpl::GetDevToolsTarget() { return web_contents()->GetMainFrame()->IsRenderFrameLive() ? this : nullptr; }
6,910
3,918
0
void CCITTFaxStream::ccittReset(GBool unfiltered) { if (unfiltered) str->unfilteredReset(); else str->reset(); row = 0; nextLine2D = encoding < 0; inputBits = 0; a0i = 0; outputBits = 0; buf = EOF; }
6,911
14,785
0
ftp_cdup(ftpbuf_t *ftp) { if (ftp == NULL) { return 0; } if (ftp->pwd) { efree(ftp->pwd); ftp->pwd = NULL; } if (!ftp_putcmd(ftp, "CDUP", NULL)) { return 0; } if (!ftp_getresp(ftp) || ftp->resp != 250) { return 0; } return 1; }
6,912
23,013
0
static int decode_compound_hdr(struct xdr_stream *xdr, struct compound_hdr *hdr) { __be32 *p; READ_BUF(8); READ32(hdr->status); READ32(hdr->taglen); READ_BUF(hdr->taglen + 4); hdr->tag = (char *)p; p += XDR_QUADLEN(hdr->taglen); READ32(hdr->nops); return 0; }
6,913
169,805
0
exsltDateWeekInYear (const xmlChar *dateTime) { exsltDateValPtr dt; long diy, diw, year, ret; if (dateTime == NULL) { #ifdef WITH_TIME dt = exsltDateCurrent(); if (dt == NULL) #endif return xmlXPathNAN; } else { dt = exsltDateParse(dateTime); if (dt == NULL) return xmlXPathNAN; if ((dt->...
6,914
78,998
0
InterpCreate(xkb_keysym_t sym, ExprDef *match) { InterpDef *def = malloc(sizeof(*def)); if (!def) return NULL; def->common.type = STMT_INTERP; def->common.next = NULL; def->sym = sym; def->match = match; def->def = NULL; return def; }
6,915
84,348
0
UNCURL_EXPORT int32_t uncurl_write_body(struct uncurl_conn *ucc, char *body, uint32_t body_len) { int32_t e; e = ucc->write(ucc->ctx, body, body_len); return e; }
6,916
111,668
0
void GDataRootDirectory::UpdateCacheMap(const std::string& resource_id, const std::string& md5, CacheSubDirectoryType subdir, int cache_state) { CacheMap::iterator iter = cache_map_.find(resource_i...
6,917
61,212
0
open_with_response_cb (GtkDialog *dialog, gint response_id, gpointer user_data) { GtkWindow *parent_window; NautilusFile *file; GList files; GAppInfo *info; ActivateParametersInstall *parameters = user_data; if (response_id != GTK_RESPONSE_O...
6,918
50,295
0
static struct mt_connection *list_find_connection(unsigned short seskey, unsigned char *srcmac) { struct mt_connection *p; DL_FOREACH(connections_head, p) { if (p->seskey == seskey && memcmp(srcmac, p->srcmac, ETH_ALEN) == 0) { return p; } } return NULL; }
6,919
166,522
0
bool ChromeContentBrowserClient::WillCreateURLLoaderFactory( content::BrowserContext* browser_context, content::RenderFrameHost* frame, bool is_navigation, const url::Origin& request_initiator, network::mojom::URLLoaderFactoryRequest* factory_request, bool* bypass_redirect_checks) { DCHECK(bas...
6,920
116,404
0
void ChromeContentRendererClient::OnPurgeMemory() { DVLOG(1) << "Resetting spellcheck in renderer client"; RenderThread* thread = RenderThread::Get(); if (spellcheck_.get()) thread->RemoveObserver(spellcheck_.get()); spellcheck_.reset(new SpellCheck()); thread->AddObserver(spellcheck_.get()); }
6,921
123,603
0
void InspectorPageAgent::captureScreenshot(ErrorString*, const String*, const int*, const int*, const int*, String*, RefPtr<TypeBuilder::Page::ScreencastFrameMetadata>&) { }
6,922
181,346
1
void svc_rdma_send_error(struct svcxprt_rdma *xprt, struct rpcrdma_msg *rmsgp, int status) { struct ib_send_wr err_wr; struct page *p; struct svc_rdma_op_ctxt *ctxt; enum rpcrdma_errcode err; __be32 *va; int length; int ret; ret = svc_rdma_repost_recv(xprt, GFP_KERNEL); if (ret) return; p = alloc_page(G...
6,923
162,708
0
void BaseRenderingContext2D::Trace(blink::Visitor* visitor) { visitor->Trace(state_stack_); }
6,924
1,475
0
static uint32_t stat_to_v9mode(const struct stat *stbuf) { uint32_t mode; mode = stbuf->st_mode & 0777; if (S_ISDIR(stbuf->st_mode)) { mode |= P9_STAT_MODE_DIR; } if (S_ISLNK(stbuf->st_mode)) { mode |= P9_STAT_MODE_SYMLINK; } if (S_ISSOCK(stbuf->st_mode)) { mode |=...
6,925
137,256
0
void Textfield::OnGestureEvent(ui::GestureEvent* event) { switch (event->type()) { case ui::ET_GESTURE_TAP_DOWN: RequestFocus(); ShowImeIfNeeded(); event->SetHandled(); break; case ui::ET_GESTURE_TAP: if (controller_ && controller_->HandleGestureEvent(this, *event)) { eve...
6,926
158,408
0
explicit FullscreenLayoutManager(aura::Window* owner) : owner_(owner) {}
6,927
151,673
0
void Browser::FindReply(WebContents* web_contents, int request_id, int number_of_matches, const gfx::Rect& selection_rect, int active_match_ordinal, bool final_update) { FindTabHelper* find_tab_help...
6,928
51,078
0
static int apparmor_cred_prepare(struct cred *new, const struct cred *old, gfp_t gfp) { /* freed by apparmor_cred_free */ struct aa_task_cxt *cxt = aa_alloc_task_context(gfp); if (!cxt) return -ENOMEM; aa_dup_task_context(cxt, cred_cxt(old)); cred_cxt(new) = cxt; return 0; }
6,929
136,848
0
DOMVisualViewport* LocalDOMWindow::visualViewport() { return visualViewport_; }
6,930
151,557
0
ResourceFetcher::DetermineRevalidationPolicyInternal( Resource::Type type, const FetchParameters& fetch_params, const Resource& existing_resource, bool is_static_data) const { const ResourceRequest& request = fetch_params.GetResourceRequest(); if (IsDownloadOrStreamRequest(request)) return kRel...
6,931
182,060
1
tTcpIpPacketParsingResult ParaNdis_CheckSumVerify( tCompletePhysicalAddress *pDataPages, ULONG ulDataLength, ULONG ulStartOffset, ...
6,932
166,119
0
void RenderFrameHostImpl::CreateDedicatedWorkerHostFactory( blink::mojom::DedicatedWorkerFactoryRequest request) { content::CreateDedicatedWorkerHostFactory(process_->GetID(), routing_id_, last_committed_origin_, std::move(req...
6,933
165,065
0
CanvasRenderingContextFactory* OffscreenCanvas::GetRenderingContextFactory( int type) { DCHECK_LE(type, CanvasRenderingContext::kMaxValue); return RenderingContextFactories()[type].get(); }
6,934
188,136
1
resetLppTransposer (HANDLE_SBR_LPP_TRANS hLppTrans, /*!< Handle of lpp transposer */ UCHAR highBandStartSb, /*!< High band area: start subband */ UCHAR *v_k_master, /*!< Master table */ UCHAR numMaster, /*!< Valid entries in master table */ ...
6,935
27,071
0
g_NPN_RetainObject(NPObject *npobj) { if (!thread_check()) { npw_printf("WARNING: NPN_RetainObject not called from the main thread\n"); return NULL; } if (npobj == NULL) return NULL; D(bugiI("NPN_RetainObject npobj=%p\n", npobj)); uint32_t refcount = invoke_NPN_RetainObject(npobj); D(bugiD("NPN_Retain...
6,936
148,501
0
void WebContentsImpl::OnRegisterProtocolHandler(RenderFrameHostImpl* source, const std::string& protocol, const GURL& url, const base::string16& title, ...
6,937
120,544
0
bool Element::hasNamedNodeMap() const { return hasRareData() && elementRareData()->attributeMap(); }
6,938
87,669
0
inline bool is_hsr_master(struct net_device *dev) { return (dev->netdev_ops->ndo_start_xmit == hsr_dev_xmit); }
6,939
89,106
0
alt_merge_node_opt_info(OptNode* to, OptNode* add, OptEnv* env) { alt_merge_opt_anc_info(&to->anc, &add->anc); alt_merge_opt_exact(&to->sb, &add->sb, env); alt_merge_opt_exact(&to->sm, &add->sm, env); alt_merge_opt_exact(&to->spr, &add->spr, env); alt_merge_opt_map(env->enc, &to->map, &add->map); alt_mer...
6,940
171,480
0
WORD32 ih264d_create(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op) { ih264d_create_op_t *ps_create_op; WORD32 ret; ps_create_op = (ih264d_create_op_t *)pv_api_op; ps_create_op->s_ivd_create_op_t.u4_error_code = 0; ret = ih264d_allocate_static_bufs(&dec_hdl, pv_api_ip, pv_api_op); /* If all...
6,941
159,238
0
void DownloadManagerImpl::CreateSavePackageDownloadItemWithId( const base::FilePath& main_file_path, const GURL& page_url, const std::string& mime_type, std::unique_ptr<DownloadRequestHandleInterface> request_handle, const DownloadItemImplCreated& item_created, uint32_t id) { DCHECK_CURRENTLY_...
6,942
160,271
0
void MimeHandlerViewContainer::DidReceiveData(const char* data, int data_length) { view_id_ += std::string(data, data_length); }
6,943
98,585
0
void CaptureVisibleTabFunction::SendResultFromBitmap( const SkBitmap& screen_capture) { scoped_refptr<RefCountedBytes> image_data(new RefCountedBytes); SkAutoLockPixels screen_capture_lock(screen_capture); bool encoded = false; std::string mime_type; switch (image_format_) { case FORMAT_JPEG: en...
6,944
128,702
0
url::Parsed::ComponentType TemplateURLRef::GetSearchTermKeyLocation( const SearchTermsData& search_terms_data) const { ParseIfNecessary(search_terms_data); return search_term_key_location_; }
6,945
159,254
0
int DownloadManagerImpl::InProgressCount() const { int count = 0; for (const auto& it : downloads_) { if (it.second->GetState() == DownloadItem::IN_PROGRESS) ++count; } return count; }
6,946
70,234
0
LogLuv24toXYZ(uint32 p, float XYZ[3]) { int Ce; double L, u, v, s, x, y; /* decode luminance */ L = LogL10toY(p>>14 & 0x3ff); if (L <= 0.) { XYZ[0] = XYZ[1] = XYZ[2] = 0.; return; } /* decode color */ Ce = p & 0x3fff; if (uv_decode(&u, &v, Ce) < 0) { u = U_NEU; v = V_NEU; } s = 1./(6.*u - 16.*v...
6,947
96,705
0
static inline Image *GetImageCache(const ImageInfo *image_info,const char *path, ExceptionInfo *exception) { char key[MagickPathExtent]; ExceptionInfo *sans_exception; Image *image; ImageInfo *read_info; /* Read an image into a image cache (for repeated usage) if not already in c...
6,948
117,007
0
bool GestureSequence::PinchStart(const TouchEvent& event, const GesturePoint& point, Gestures* gestures) { DCHECK(state_ == GS_SCROLL || state_ == GS_PENDING_SYNTHETIC_CLICK); AppendTapDownGestureEvent(point, gestures); pinch_distance_current_ = points_[0].Distance(points_[1]); pinch_distance_star...
6,949
105,574
0
void Automation::DeleteCookie(const std::string& url, const std::string& cookie_name, Error** error) { std::string error_msg; if (!SendDeleteCookieJSONRequest( automation(), url, cookie_name, &error_msg)) { *error = new Error(kUnknownError, e...
6,950
34,767
0
static inline int ext4_ext_space_root(struct inode *inode, int check) { int size; size = sizeof(EXT4_I(inode)->i_data); size -= sizeof(struct ext4_extent_header); size /= sizeof(struct ext4_extent); if (!check) { #ifdef AGGRESSIVE_TEST if (size > 3) size = 3; #endif } return size; }
6,951
111,676
0
EditorClientBlackBerry::EditorClientBlackBerry(WebPagePrivate* webPagePrivate) : m_webPagePrivate(webPagePrivate) , m_waitingForCursorFocus(false) , m_spellCheckState(SpellCheckDefault) , m_inRedo(false) { }
6,952
95,530
0
static qboolean S_AL_HearingThroughEntity( int entityNum ) { float distanceSq; if( lastListenerNumber == entityNum ) { distanceSq = DistanceSquared( entityList[ entityNum ].origin, lastListenerOrigin ); if( distanceSq > THIRD_PERSON_THRESHOLD_SQ ) return qfalse; //we're the player, but third person ...
6,953
63,768
0
static nad_t _sx_sasl_challenge(sx_t s, const char *data, int dlen) { nad_t nad; int ns; nad = nad_new(); ns = nad_add_namespace(nad, uri_SASL, NULL); nad_append_elem(nad, ns, "challenge", 0); if(data != NULL) nad_append_cdata(nad, data, dlen, 1); return nad; }
6,954
93,972
0
xfs_vm_readpages( struct file *unused, struct address_space *mapping, struct list_head *pages, unsigned nr_pages) { trace_xfs_vm_readpages(mapping->host, nr_pages); return mpage_readpages(mapping, pages, nr_pages, xfs_get_blocks); }
6,955
170,416
0
RgnIterPair(const SkRegion& rgn) : fRgn(rgn) { fIter.reset(fRgn); }
6,956
20,014
0
static void nfs4_recover_open_prepare(struct rpc_task *task, void *calldata) { rpc_task_set_priority(task, RPC_PRIORITY_PRIVILEGED); nfs4_open_prepare(task, calldata); }
6,957
46,698
0
static void __exit des_s390_exit(void) { if (ctrblk) { crypto_unregister_alg(&ctr_des_alg); crypto_unregister_alg(&ctr_des3_alg); free_page((unsigned long) ctrblk); } crypto_unregister_alg(&cbc_des3_alg); crypto_unregister_alg(&ecb_des3_alg); crypto_unregister_alg(&des3_alg); crypto_unregister_alg(&cbc_des_...
6,958
39,391
0
static int invalidate_drive(struct block_device *bdev) { /* invalidate the buffer track to force a reread */ set_bit((long)bdev->bd_disk->private_data, &fake_change); process_fd_request(); check_disk_change(bdev); return 0; }
6,959
44,559
0
static bool append_ptyname(char **pp, char *name) { char *p; if (!*pp) { *pp = malloc(strlen(name) + strlen("container_ttys=") + 1); if (!*pp) return false; sprintf(*pp, "container_ttys=%s", name); return true; } p = realloc(*pp, strlen(*pp) + strlen(name) + 2); if (!p) return false; *pp = p; strca...
6,960
155,731
0
base::Optional<Gamepad> GamepadBuilder::GetGamepad() const { if (IsValid()) return gamepad_; return base::nullopt; }
6,961
109,869
0
FrameView* Document::view() const { return m_frame ? m_frame->view() : 0; }
6,962
136,104
0
void WebsiteSettingsPopupView::TabSelectedAt(int index) { switch (index) { case TAB_ID_PERMISSIONS: presenter_->RecordWebsiteSettingsAction( WebsiteSettings::WEBSITE_SETTINGS_PERMISSIONS_TAB_SELECTED); break; case TAB_ID_CONNECTION: if (presenter_) { presenter_->RecordWebsi...
6,963
117,126
0
void webkitWebViewBaseCreateWebPage(WebKitWebViewBase* webkitWebViewBase, WKContextRef context, WKPageGroupRef pageGroup) { WebKitWebViewBasePrivate* priv = webkitWebViewBase->priv; priv->pageProxy = toImpl(context)->createWebPage(priv->pageClient.get(), toImpl(pageGroup)); priv->pageProxy->initializeWebPa...
6,964
150,232
0
std::string GetPlacementOverride(aura::Window* window) { gfx::Rect* bounds = window->GetProperty(kRestoreBoundsOverrideKey); if (bounds) { gfx::Rect restore_bounds = *bounds; ui::WindowShowState restore_state = ToWindowShowState( window->GetProperty(kRestoreWindowStateTypeOverrideKey)); return G...
6,965
67,477
0
static void DeleteSession( SESSION *session ) { SESSION_LIST_ENTRY *predSession; void *newNextEntry; if( session == &local_sessions_list->session ) local_sessions_list = 0; else { for( predSession = local_sessions_list; predSession != 0 && &( ( ( SESSION_LIST_ENTRY *...
6,966
5,892
0
static int handle_cmd(AHCIState *s, int port, uint8_t slot) { IDEState *ide_state; uint64_t tbl_addr; AHCICmdHdr *cmd; uint8_t *cmd_fis; dma_addr_t cmd_len; if (s->dev[port].port.ifs[0].status & (BUSY_STAT|DRQ_STAT)) { /* Engine currently busy, try again later */ DPRINTF(port, "...
6,967
163,107
0
void BlobStorageContext::OnEnoughSpaceForCopies(const std::string& uuid, bool success) { if (!success) { CancelBuildingBlob(uuid, BlobStatus::ERR_OUT_OF_MEMORY); return; } BlobEntry* entry = registry_.GetEntry(uuid); if (!entry) return; if (entry->C...
6,968
188,245
1
OMX_ERRORTYPE SimpleSoftOMXComponent::internalSetParameter( OMX_INDEXTYPE index, const OMX_PTR params) { switch (index) { case OMX_IndexParamPortDefinition: { OMX_PARAM_PORTDEFINITIONTYPE *defParams = (OMX_PARAM_PORTDEFINITIONTYPE *)params; if (defParams->nPortIn...
6,969
164,551
0
static void constructAutomaticIndex( Parse *pParse, /* The parsing context */ WhereClause *pWC, /* The WHERE clause */ struct SrcList_item *pSrc, /* The FROM clause term to get the next index */ Bitmask notReady, /* Mask of cursors that are not available */ WhereLevel *pLevel...
6,970
109,313
0
DeviceOrientationData* InspectorPageAgent::overrideDeviceOrientation(DeviceOrientationData* deviceOrientation) { if (m_deviceOrientation) deviceOrientation = m_deviceOrientation.get(); return deviceOrientation; }
6,971
107,071
0
void QQuickWebViewPrivate::setNeedsDisplay() { Q_Q(QQuickWebView); if (renderToOffscreenBuffer()) { QImage dummyImage(1, 1, QImage::Format_ARGB32); QPainter painter(&dummyImage); q->page()->d->paint(&painter); return; } q->page()->update(); }
6,972
93,404
0
static int __init net_dev_init(void) { int i, rc = -ENOMEM; BUG_ON(!dev_boot_phase); if (dev_proc_init()) goto out; if (netdev_kobject_init()) goto out; INIT_LIST_HEAD(&ptype_all); for (i = 0; i < PTYPE_HASH_SIZE; i++) INIT_LIST_HEAD(&ptype_base[i]); INIT_LIST_HEAD(&offload_base); if (register_perne...
6,973
175,475
0
static void lock_output_stream(struct stream_out *out) { pthread_mutex_lock(&out->pre_lock); pthread_mutex_lock(&out->lock); pthread_mutex_unlock(&out->pre_lock); }
6,974
174,268
0
void Camera3Device::RequestThread::setNotificationListener( NotificationListener *listener) { Mutex::Autolock l(mRequestLock); mListener = listener; }
6,975
166,481
0
std::unique_ptr<base::Value> StringVectorToValue( const std::vector<std::string>& strings) { ListBuilder builder; for (const auto& str : strings) builder.Append(str); return builder.Build(); }
6,976
160,939
0
void ChromeClientImpl::ClearCompositedSelection(LocalFrame* frame) { LocalFrame& local_root = frame->LocalFrameRoot(); WebFrameWidgetBase* widget = WebLocalFrameImpl::FromFrame(&local_root)->FrameWidget(); WebWidgetClient* client = widget->Client(); if (!client) return; if (WebLayerTreeView* layer_...
6,977
133,944
0
void AppListControllerDelegateImpl::LaunchApp( Profile* profile, const extensions::Extension* extension, AppListSource source, int event_flags) { AppListServiceImpl::RecordAppListAppLaunch(); AppLaunchParams params(profile, extension, NEW_FOREGROUND_TAB, extensions::SOURCE_...
6,978
141,985
0
void AutofillExternalDelegate::OnAutofillAvailabilityEvent( bool has_suggestions) { if (has_suggestions) { ui::AXPlatformNode::OnInputSuggestionsAvailable(); } else { ui::AXPlatformNode::OnInputSuggestionsUnavailable(); } }
6,979
97,759
0
xmlXPathParseNCName(xmlXPathParserContextPtr ctxt) { const xmlChar *in; xmlChar *ret; int count = 0; if ((ctxt == NULL) || (ctxt->cur == NULL)) return(NULL); /* * Accelerator for simple ASCII names */ in = ctxt->cur; if (((*in >= 0x61) && (*in <= 0x7A)) || ((*in >= 0x41) && (*in ...
6,980
67,970
0
static int jp2_jp_getdata(jp2_box_t *box, jas_stream_t *in) { jp2_jp_t *jp = &box->data.jp; if (jp2_getuint32(in, &jp->magic)) { return -1; } return 0; }
6,981
3,681
0
static void lsi_do_dma(LSIState *s, int out) { uint32_t count; dma_addr_t addr; SCSIDevice *dev; assert(s->current); if (!s->current->dma_len) { /* Wait until data is available. */ trace_lsi_do_dma_unavailable(); return; } dev = s->current->req->dev; assert(dev...
6,982
109,404
0
void AsyncFileSystemChromium::createDirectory(const KURL& path, bool exclusive, PassOwnPtr<AsyncFileSystemCallbacks> callbacks) { m_webFileSystem->createDirectory(path, exclusive, new WebKit::WebFileSystemCallbacksImpl(callbacks)); }
6,983
2,401
0
uint32_t smb1cli_conn_server_session_key(struct smbXcli_conn *conn) { return conn->smb1.server.session_key; }
6,984
103,081
0
void Browser::ConfirmSetDefaultSearchProvider( TabContents* tab_contents, TemplateURL* template_url, TemplateURLModel* template_url_model) { window()->ConfirmSetDefaultSearchProvider(tab_contents, template_url, template_url_model); }
6,985
62,361
0
ip_printts(netdissect_options *ndo, register const u_char *cp, u_int length) { register u_int ptr; register u_int len; int hoplen; const char *type; if (length < 4) { ND_PRINT((ndo, "[bad length %u]", length)); return; } ND_PRINT((ndo, " TS{")); hoplen = ((cp[3]&0xF) != IPOPT_TS_TSONLY) ? 8 : 4;...
6,986
39,941
0
static bool spd_fill_page(struct splice_pipe_desc *spd, struct pipe_inode_info *pipe, struct page *page, unsigned int *len, unsigned int offset, bool linear, struct sock *sk) { if (unlikely(spd->nr_pages == MAX_SKB_FRAGS)) return true; if (linear) { page = linear_to_page(page, len, &offset, s...
6,987
109,675
0
void Document::explicitClose() { if (RefPtr<DocumentParser> parser = m_parser) parser->finish(); if (!m_frame) { implicitClose(); return; } m_frame->loader()->checkCompleted(); }
6,988
161,421
0
Response ServiceWorkerHandler::SkipWaiting(const std::string& scope_url) { if (!enabled_) return CreateDomainNotEnabledErrorResponse(); if (!context_) return CreateContextErrorResponse(); context_->SkipWaitingWorker(GURL(scope_url)); return Response::OK(); }
6,989
69,545
0
static struct key *construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) { struct key_user *user; struct key *key; int ret; kenter(""); user = key_user_lookup(current_fs...
6,990
34,593
0
pkinit_server_plugin_fini(krb5_context context, krb5_kdcpreauth_moddata moddata) { pkinit_kdc_context *realm_contexts = (pkinit_kdc_context *)moddata; int i; if (realm_contexts == NULL) return; for (i = 0; realm_contexts[i] != NULL; i++) { pkinit_server_plugin...
6,991
103,859
0
bool RenderView::SupportsAsynchronousSwapBuffers() { WebKit::WebGraphicsContext3D* context = webview()->graphicsContext3D(); if (!context) return false; std::string extensions(context->getRequestableExtensionsCHROMIUM().utf8()); return extensions.find("GL_CHROMIUM_swapbuffers_complete_callback") != st...
6,992
95,773
0
long FS_FOpenFileReadDir(const char *filename, searchpath_t *search, fileHandle_t *file, qboolean uniqueFILE, qboolean unpure) { long hash; pack_t *pak; fileInPack_t *pakFile; directory_t *dir; char *netpath; FILE *filep; int len; if(filename == NULL) Com_Error(ERR_FATAL, "FS_FOpenFileRead: NULL 'file...
6,993
131,110
0
static void unsignedShortAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); TestObjectV8Internal::unsignedShortAttrAttributeSetter(jsValue, info); TRACE_EVENT_SET_SAMPLING_STATE(...
6,994
18,800
0
static int __init init_ipv4_mibs(void) { return register_pernet_subsys(&ipv4_mib_ops); }
6,995
92,178
0
static void raw_packet_qp_copy_info(struct mlx5_ib_qp *qp, struct mlx5_ib_raw_packet_qp *raw_packet_qp) { struct mlx5_ib_sq *sq = &raw_packet_qp->sq; struct mlx5_ib_rq *rq = &raw_packet_qp->rq; sq->sq = &qp->sq; rq->rq = &qp->rq; sq->doorbell = &qp->db; rq->doorbell = &qp->db; }
6,996
38,552
0
void rdma_leave_multicast(struct rdma_cm_id *id, struct sockaddr *addr) { struct rdma_id_private *id_priv; struct cma_multicast *mc; id_priv = container_of(id, struct rdma_id_private, id); spin_lock_irq(&id_priv->lock); list_for_each_entry(mc, &id_priv->mc_list, list) { if (!memcmp(&mc->addr, addr, rdma_addr_si...
6,997
164,686
0
bool RenderFrameHostImpl::CreateRenderFrame(int proxy_routing_id, int opener_routing_id, int parent_routing_id, int previous_sibling_routing_id) { TRACE_EVENT0("navigation", "RenderFrame...
6,998
131,051
0
static void shortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttr", "TestObject", info.Holder(), info.GetIsolate()); TestObject* imp = V8TestObject::toNative(info.Holder()); V8TRYCATCH_EXCE...
6,999