unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
115,257
0
void OmniboxViewWin::OnPaint(HDC bogus_hdc) { CRect paint_clip_rect; if (!GetUpdateRect(&paint_clip_rect, true)) return; CPaintDC paint_dc(m_hWnd); CDC memory_dc(CreateCompatibleDC(paint_dc)); CRect rect; GetClientRect(&rect); CBitmap memory_bitmap(CreateCompatibleBitmap(paint_dc, rect.Width(), ...
6,300
170,374
0
status_t MPEG4Source::parseTrackFragmentHeader(off64_t offset, off64_t size) { if (size < 8) { return -EINVAL; } uint32_t flags; if (!mDataSource->getUInt32(offset, &flags)) { // actually version + flags return ERROR_MALFORMED; } if (flags & 0xff000000) { return -EINVAL; } if (!mDataSource->getUInt32(off...
6,301
34,042
0
static int xen_netbk_tx_check_gop(struct xen_netbk *netbk, struct sk_buff *skb, struct gnttab_copy **gopp) { struct gnttab_copy *gop = *gopp; u16 pending_idx = *((u16 *)skb->data); struct pending_tx_info *pending_tx_info = netbk->pending_tx_info; struct xenvif *vif = pending_tx_info[pending_idx].vif; s...
6,302
105,472
0
static gboolean webkit_web_view_motion_event(GtkWidget* widget, GdkEventMotion* event) { WebKitWebView* webView = WEBKIT_WEB_VIEW(widget); Frame* frame = core(webView)->mainFrame(); if (!frame->view()) return FALSE; return frame->eventHandler()->mouseMoved(PlatformMouseEvent(event)); }
6,303
183,800
1
void RTCSessionDescriptionRequestImpl::requestFailed(const String& error) { if (m_errorCallback) m_errorCallback->handleEvent(error); clear(); }
6,304
46,259
0
struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, void *holder) { struct block_device *bdev; int err; bdev = lookup_bdev(path); if (IS_ERR(bdev)) return bdev; err = blkdev_get(bdev, mode, holder); if (err) return ERR_PTR(err); if ((mode & FMODE_WRITE) && bdev_read_only(bdev)) { ...
6,305
148,440
0
bool WebContentsImpl::IsWidgetForMainFrame( RenderWidgetHostImpl* render_widget_host) { return render_widget_host == GetMainFrame()->GetRenderWidgetHost(); }
6,306
184,681
1
void ResourceDispatcherHostImpl::OnSSLCertificateError( net::URLRequest* request, const net::SSLInfo& ssl_info, bool is_hsts_host) { DCHECK(request); ResourceRequestInfoImpl* info = ResourceRequestInfoImpl::ForRequest(request); DCHECK(info); GlobalRequestID request_id(info->GetChildID(), info->GetRequestID()); int rend...
6,307
126,202
0
void Browser::MarkHomePageAsChanged(PrefService* pref_service) { pref_service->SetBoolean(prefs::kHomePageChanged, true); }
6,308
937
0
void CairoOutputDev::updateStrokeColor(GfxState *state) { state->getStrokeRGB(&stroke_color); cairo_pattern_destroy(stroke_pattern); stroke_pattern = cairo_pattern_create_rgba(stroke_color.r / 65535.0, stroke_color.g / 65535.0, stroke_color.b / 65535.0, stroke_opacity); LOG(pri...
6,309
126,970
0
AudioInputRendererHost::~AudioInputRendererHost() { DCHECK(audio_entries_.empty()); }
6,310
57,987
0
static struct nft_rule *nf_tables_rule_lookup(const struct nft_chain *chain, const struct nlattr *nla) { if (nla == NULL) return ERR_PTR(-EINVAL); return __nf_tables_rule_lookup(chain, be64_to_cpu(nla_get_be64(nla))); }
6,311
165,993
0
LocalRTCStatsRequest::LocalRTCStatsRequest(blink::WebRTCStatsRequest impl) : impl_(impl) { }
6,312
9,387
0
int ssl3_client_hello(SSL *s) { unsigned char *buf; unsigned char *p, *d; int i; unsigned long l; #ifndef OPENSSL_NO_COMP int j; SSL_COMP *comp; #endif buf = (unsigned char *)s->init_buf->data; if (s->state == SSL3_ST_CW_CLNT_HELLO_A) { SSL_SESSION *sess = s->session; if...
6,313
77,349
0
ofproto_port_dump_next(struct ofproto_port_dump *dump, struct ofproto_port *port) { const struct ofproto *ofproto = dump->ofproto; if (dump->error) { return false; } dump->error = ofproto->ofproto_class->port_dump_next(ofproto, dump->state, ...
6,314
143,061
0
DefaultAudioDestinationNode* DefaultAudioDestinationNode::Create( BaseAudioContext* context, const WebAudioLatencyHint& latency_hint) { return MakeGarbageCollected<DefaultAudioDestinationNode>(*context, latency_hint); }
6,315
633
0
static bool ldap_encode_control(void *mem_ctx, struct asn1_data *data, const struct ldap_control_handler *handlers, struct ldb_control *ctrl) { DATA_BLOB value; int i; if (!handlers) { return false; } for (i = 0; handlers[i].oid != NULL; i++) { if (!ctrl->oid) { /* not encoding this control, the O...
6,316
28,492
0
static void qeth_clear_dbf_list(void) { struct qeth_dbf_entry *entry, *tmp; mutex_lock(&qeth_dbf_list_mutex); list_for_each_entry_safe(entry, tmp, &qeth_dbf_list, dbf_list) { list_del(&entry->dbf_list); debug_unregister(entry->dbf_info); kfree(entry); } mutex_unlock(&qeth_dbf_list_mutex); }
6,317
141,445
0
GraphicsLayer* PaintLayerScrollableArea::LayerForScrolling() const { return Layer()->HasCompositedLayerMapping() ? Layer()->GetCompositedLayerMapping()->ScrollingContentsLayer() : nullptr; }
6,318
153,051
0
void PDFiumEngine::SelectionChangeInvalidator::GetVisibleSelectionsScreenRects( std::vector<pp::Rect>* rects) { pp::Rect visible_rect = engine_->GetVisibleRect(); for (auto& range : engine_->selection_) { int page_index = range.page_index(); if (!engine_->IsPageVisible(page_index)) continue; // T...
6,319
162,264
0
gpu::CommandBufferNamespace CommandBufferProxyImpl::GetNamespaceID() const { return gpu::CommandBufferNamespace::GPU_IO; }
6,320
50,573
0
static inline loff_t blk_to_logical(struct inode *inode, sector_t blk) { return (blk << inode->i_blkbits); }
6,321
21,321
0
void mpol_fix_fork_child_flag(struct task_struct *p) { if (p->mempolicy) p->flags |= PF_MEMPOLICY; else p->flags &= ~PF_MEMPOLICY; }
6,322
67,930
0
long jas_stream_seek(jas_stream_t *stream, long offset, int origin) { long newpos; JAS_DBGLOG(100, ("jas_stream_seek(%p, %ld, %d)\n", stream, offset, origin)); /* The buffer cannot be in use for both reading and writing. */ assert(!((stream->bufmode_ & JAS_STREAM_RDBUF) && (stream->bufmode_ & JAS_STREAM_WRB...
6,323
70,681
0
request_swap_ns(struct request *req, struct nameserver *ns) { if (ns && req->ns != ns) { EVUTIL_ASSERT(req->ns->requests_inflight > 0); req->ns->requests_inflight--; ns->requests_inflight++; req->ns = ns; } }
6,324
146,494
0
void WebGLRenderingContextBase::framebufferRenderbuffer( GLenum target, GLenum attachment, GLenum renderbuffertarget, WebGLRenderbuffer* buffer) { if (isContextLost() || !ValidateFramebufferFuncParameters( "framebufferRenderbuffer", target, attachment)) return; if (r...
6,325
9,496
0
int ntpd_main(int argc UNUSED_PARAM, char **argv) { #undef G struct globals G; struct pollfd *pfd; peer_t **idx2peer; unsigned cnt; memset(&G, 0, sizeof(G)); SET_PTR_TO_GLOBALS(&G); ntp_init(argv); /* If ENABLE_FEATURE_NTPD_SERVER, + 1 for listen_fd: */ cnt = G.peer_cnt + ENABLE_FEATURE_NTPD_SERVER; idx2pe...
6,326
62,531
0
static OPJ_BOOL bmp_read_rle8_data(FILE* IN, OPJ_UINT8* pData, OPJ_UINT32 stride, OPJ_UINT32 width, OPJ_UINT32 height) { OPJ_UINT32 x, y; OPJ_UINT8 *pix; const OPJ_UINT8 *beyond; beyond = pData + stride * height; pix = pData; x = y = 0U; while (y < height...
6,327
157,692
0
explicit MockScreenshotManager(content::NavigationControllerImpl* owner) : content::NavigationEntryScreenshotManager(owner), encoding_screenshot_in_progress_(false) { }
6,328
55,335
0
static int atl2_resume(struct pci_dev *pdev) { struct net_device *netdev = pci_get_drvdata(pdev); struct atl2_adapter *adapter = netdev_priv(netdev); u32 err; pci_set_power_state(pdev, PCI_D0); pci_restore_state(pdev); err = pci_enable_device(pdev); if (err) { printk(KERN_ERR "atl2: Cannot enable PCI devi...
6,329
22,903
0
int nfs4_proc_setclientid_confirm(struct nfs_client *clp, struct rpc_cred *cred) { long timeout = 0; int err; do { err = _nfs4_proc_setclientid_confirm(clp, cred); switch (err) { case 0: return err; case -NFS4ERR_RESOURCE: /* The IBM lawyers misread another document! */ case -NFS4ERR_DELAY: ...
6,330
162,516
0
bool ClassicPendingScript::WasCanceled() const { if (!is_external_) return false; return GetResource()->WasCanceled(); }
6,331
138,860
0
TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { return static_cast<TestRenderViewHost*>(active_rvh()); }
6,332
74,283
0
void prep_exit() { }
6,333
93,826
0
virDomainGetVcpuPinInfo(virDomainPtr domain, int ncpumaps, unsigned char *cpumaps, int maplen, unsigned int flags) { virConnectPtr conn; VIR_DOMAIN_DEBUG(domain, "ncpumaps=%d, cpumaps=%p, maplen=%d, flags=%x", ncpumaps, cpumaps, maplen, flags); virResetLastErro...
6,334
140,940
0
void Document::ActiveChainNodeDetached(Element& element) { if (active_element_ && element == active_element_) { active_element_ = SkipDisplayNoneAncestorsOrReturnNullIfFlatTreeIsDirty(element); } }
6,335
22,001
0
raptor_rdfxml_characters_handler(void *user_data, raptor_xml_element* xml_element, const unsigned char *s, int len) { raptor_parser* rdf_parser = (raptor_parser*)user_data; raptor_rdfxml_cdata_grammar(rdf_parser, s, len, 0); }
6,336
17,427
0
AddFragment(struct xorg_list *frags, int bytes) { FragmentList *f = malloc(sizeof(FragmentList) + bytes); if (!f) { return NULL; } else { f->bytes = bytes; xorg_list_add(&f->l, frags->prev); return (char*) f + sizeof(*f); } }
6,337
70,856
0
static int http_get_line(HTTPContext *s, char *line, int line_size) { int ch; char *q; q = line; for (;;) { ch = http_getc(s); if (ch < 0) return ch; if (ch == '\n') { /* process line */ if (q > line && q[-1] == '\r') q--; ...
6,338
55,070
0
static void file_change_m(const char *p, struct branch *b) { static struct strbuf uq = STRBUF_INIT; const char *endp; struct object_entry *oe; unsigned char sha1[20]; uint16_t mode, inline_data = 0; p = get_mode(p, &mode); if (!p) die("Corrupt mode: %s", command_buf.buf); switch (mode) { case 0644: case 07...
6,339
73,403
0
MagickPrivate MagickBooleanType SyncImageProfiles(Image *image) { MagickBooleanType status; StringInfo *profile; status=MagickTrue; profile=(StringInfo *) GetImageProfile(image,"8BIM"); if (profile != (StringInfo *) NULL) if (Sync8BimProfile(image,profile) == MagickFalse) status=MagickFals...
6,340
83,249
0
void __noreturn do_exit(long code) { struct task_struct *tsk = current; int group_dead; TASKS_RCU(int tasks_rcu_i); profile_task_exit(tsk); kcov_task_exit(tsk); WARN_ON(blk_needs_flush_plug(tsk)); if (unlikely(in_interrupt())) panic("Aiee, killing interrupt handler!"); if (unlikely(!tsk->pid)) panic("Att...
6,341
21,872
0
int drm_framebuffer_init(struct drm_device *dev, struct drm_framebuffer *fb, const struct drm_framebuffer_funcs *funcs) { int ret; ret = drm_mode_object_get(dev, &fb->base, DRM_MODE_OBJECT_FB); if (ret) { return ret; } fb->dev = dev; fb->funcs = funcs; dev->mode_config.num_fb++; list_add(&fb->head, &dev...
6,342
138,109
0
void AXNodeObject::setSequentialFocusNavigationStartingPoint() { if (!getNode()) return; getNode()->document().clearFocusedElement(); getNode()->document().setSequentialFocusNavigationStartingPoint(getNode()); }
6,343
53,404
0
iperf_new_stream(struct iperf_test *test, int s) { int i; struct iperf_stream *sp; char template[] = "/tmp/iperf3.XXXXXX"; h_errno = 0; sp = (struct iperf_stream *) malloc(sizeof(struct iperf_stream)); if (!sp) { i_errno = IECREATESTREAM; return NULL; } memset(sp, 0, s...
6,344
46,920
0
static int xts_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) { struct cast6_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); return glue_xts_crypt_128bit(&cast6_dec_xts, desc, dst, src, nbytes, XTS_TWEAK_CAST(__cast6_encrypt), &c...
6,345
73,393
0
static void GetProfilesFromResourceBlock(Image *image, const StringInfo *resource_block,ExceptionInfo *exception) { const unsigned char *datum; register const unsigned char *p; size_t length; ssize_t count; StringInfo *profile; unsigned char length_byte; unsigned int ...
6,346
110,386
0
bool LoadEntryPointsFromLibrary(const base::NativeLibrary& library, PluginModule::EntryPoints* entry_points) { entry_points->get_interface = reinterpret_cast<PluginModule::GetInterfaceFunc>( base::GetFunctionPointerFromNativeLibrary(library, ...
6,347
162,949
0
int GetConsoleErrorCount() const { blink::mojom::ManifestManagerAssociatedPtr ptr; shell() ->web_contents() ->GetMainFrame() ->GetRemoteAssociatedInterfaces() ->GetInterface(&ptr); ptr.FlushForTesting(); return console_error_count_; }
6,348
56,517
0
static int ext4_ext_split(handle_t *handle, struct inode *inode, unsigned int flags, struct ext4_ext_path *path, struct ext4_extent *newext, int at) { struct buffer_head *bh = NULL; int depth = ext_depth(inode); struct ext4_extent_header *neh; struct ext4_extent_idx *fidx; int i = at, k, m, a; ext4...
6,349
94,647
0
X509_SIG *d2i_PKCS8_fp(FILE *fp, X509_SIG **p8) { return ASN1_d2i_fp_of(X509_SIG,X509_SIG_new,d2i_X509_SIG,fp,p8); }
6,350
103,994
0
void GLES2DecoderImpl::DoBindFramebuffer(GLenum target, GLuint client_id) { FramebufferManager::FramebufferInfo* info = NULL; GLuint service_id = 0; if (client_id != 0) { info = GetFramebufferInfo(client_id); if (!info) { if (!group_->bind_generates_resource()) { SetGLError(GL_INVALID_VALUE,...
6,351
12,949
0
ssh_packet_backup_state(struct ssh *ssh, struct ssh *backup_state) { struct ssh *tmp; close(ssh->state->connection_in); ssh->state->connection_in = -1; close(ssh->state->connection_out); ssh->state->connection_out = -1; if (backup_state) tmp = backup_state; else tmp = ssh_alloc_session_state(); backup_...
6,352
101,579
0
void Browser::BrowserRenderWidgetShowing() { RenderWidgetShowing(); }
6,353
87,896
0
PAM_EXTERN int pam_sm_chauthtok(pam_handle_t * pamh, int flags, int argc, const char **argv) { int r; PKCS11_CTX *ctx; unsigned int nslots; PKCS11_KEY *authkey; PKCS11_SLOT *slots, *authslot; const char *user, *pin_regex; r = module_refresh(pamh, flags, argc, argv, &user, &ctx, &slots, &nslots, &pin_regex)...
6,354
86,556
0
void jpc_ns_invlift_row(jpc_fix_t *a, int numcols, int parity) { register jpc_fix_t *lptr; register jpc_fix_t *hptr; register int n; int llen; llen = (numcols + 1 - parity) >> 1; if (numcols > 1) { /* Apply the scaling step. */ #if defined(WT_DOSCALE) lptr = &a[0]; n = llen; while (n-- > 0) { lptr[...
6,355
43,839
0
_load_ucode_intel_bsp(struct mc_saved_data *mc_saved_data, unsigned long *mc_saved_in_initrd, unsigned long initrd_start_early, unsigned long initrd_end_early, struct ucode_cpu_info *uci) { enum ucode_state ret; collect_cpu_info_early(uci); scan_microcode(initrd_start_early, initrd_e...
6,356
34,191
0
int __net_init ip_vs_control_net_init_sysctl(struct net *net) { int idx; struct netns_ipvs *ipvs = net_ipvs(net); struct ctl_table *tbl; atomic_set(&ipvs->dropentry, 0); spin_lock_init(&ipvs->dropentry_lock); spin_lock_init(&ipvs->droppacket_lock); spin_lock_init(&ipvs->securetcp_lock); if (!net_eq(net, &init...
6,357
170,944
0
static vpx_codec_err_t vp8_get_last_ref_frame(vpx_codec_alg_priv_t *ctx, va_list args) { int *ref_info = va_arg(args, int *); if (ref_info && !ctx->yv12_frame_buffers.use_frame_threads) { VP8D_COMP *pbi = (VP8D_COMP *)ctx->yv12_frame_buffers.pbi[0]; VP8_...
6,358
10,669
0
Ins_SHP( TT_ExecContext exc ) { TT_GlyphZoneRec zp; FT_UShort refp; FT_F26Dot6 dx, dy; FT_UShort point; if ( exc->top < exc->GS.loop ) { if ( exc->pedantic_hinting ) exc->error = FT_THROW( Invalid_Reference ); goto Fail; } if ( Compute_Po...
6,359
152,967
0
void EnumFonts(struct _FPDF_SYSFONTINFO* sysfontinfo, void* mapper) { FPDF_AddInstalledFont(mapper, "Arial", FXFONT_DEFAULT_CHARSET); const FPDF_CharsetFontMap* font_map = FPDF_GetDefaultTTFMap(); for (; font_map->charset != -1; ++font_map) { FPDF_AddInstalledFont(mapper, font_map->fontname, font_map->charse...
6,360
120,486
0
PassRefPtr<Node> Element::cloneNode(bool deep) { return deep ? cloneElementWithChildren() : cloneElementWithoutChildren(); }
6,361
87,748
0
static int hns_roce_register_device(struct hns_roce_dev *hr_dev) { int ret; struct hns_roce_ib_iboe *iboe = NULL; struct ib_device *ib_dev = NULL; struct device *dev = hr_dev->dev; iboe = &hr_dev->iboe; spin_lock_init(&iboe->lock); ib_dev = &hr_dev->ib_dev; strlcpy(ib_dev->name, "hns_%d", IB_DEVICE_NAME_MAX);...
6,362
105,136
0
Node* Range::pastLastNode() const { if (!m_start.container() || !m_end.container()) return 0; if (m_end.container()->offsetInCharacters()) return m_end.container()->traverseNextSibling(); if (Node* child = m_end.container()->childNode(m_end.offset())) return child; return m_end.c...
6,363
21,132
0
static void mem_cgroup_swap_statistics(struct mem_cgroup *memcg, bool charge) { int val = (charge) ? 1 : -1; this_cpu_add(memcg->stat->count[MEM_CGROUP_STAT_SWAPOUT], val); }
6,364
151,343
0
void InspectorTraceEvents::DidReceiveResourceResponse( unsigned long identifier, DocumentLoader* loader, const ResourceResponse& response, Resource*) { LocalFrame* frame = loader ? loader->GetFrame() : nullptr; TRACE_EVENT_INSTANT1( "devtools.timeline", "ResourceReceiveResponse", TRACE_EVENT_S...
6,365
167,165
0
void HTMLMediaElement::PlaybackStateChanged() { BLINK_MEDIA_LOG << "playbackStateChanged(" << (void*)this << ")"; if (!GetWebMediaPlayer()) return; if (GetWebMediaPlayer()->Paused()) PauseInternal(); else PlayInternal(); }
6,366
76,430
0
static int update_stack_depth(struct bpf_verifier_env *env, const struct bpf_func_state *func, int off) { u16 stack = env->subprog_info[func->subprogno].stack_depth; if (stack >= -off) return 0; /* update known max for given subprogram */ env->subprog_info[func->subprogno].stack_depth = -off; ...
6,367
39,725
0
static int vfs_rename_other(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) { struct inode *target; int error; error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry); if (error) return error; dget(new_dentry); target = new_dentry->d_i...
6,368
10,053
0
Render_All( int num_indices, int first_index ) { int start_x, start_y, step_x, step_y, x, y; int i; FT_Size size; error = FTDemo_Get_Size( handle, &size ); if ( error ) { /* probably a non-existent bitmap font size */ return error; } INIT_SI...
6,369
32,921
0
static struct dentry *ext3_fh_to_dentry(struct super_block *sb, struct fid *fid, int fh_len, int fh_type) { return generic_fh_to_dentry(sb, fid, fh_len, fh_type, ext3_nfs_get_inode); }
6,370
7,505
0
simple_method_return (void) { DBusMessage *message; message = dbus_message_new (DBUS_MESSAGE_TYPE_METHOD_RETURN); if (message == NULL) _dbus_assert_not_reached ("oom"); set_reply_serial (message); return message; }
6,371
36,323
0
getname(const char __user * filename) { return getname_flags(filename, 0, NULL); }
6,372
140,112
0
void HTMLMediaElement::setVolume(double vol, ExceptionState& exceptionState) { BLINK_MEDIA_LOG << "setVolume(" << (void*)this << ", " << vol << ")"; if (m_volume == vol) return; if (vol < 0.0f || vol > 1.0f) { exceptionState.throwDOMException( IndexSizeError, ExceptionMessages::indexOuts...
6,373
160,515
0
void WebContentsImpl::OnAudioStateChanged(bool is_audible) { SendPageMessage(new PageMsg_AudioStateChanged(MSG_ROUTING_NONE, is_audible)); NotifyNavigationStateChanged(INVALIDATE_TYPE_TAB); was_ever_audible_ = was_ever_audible_ || is_audible; if (delegate_) delegate_->OnAudioStateChanged(this, is_audible...
6,374
46,777
0
static bool __init sparc64_has_des_opcode(void) { unsigned long cfr; if (!(sparc64_elf_hwcap & HWCAP_SPARC_CRYPTO)) return false; __asm__ __volatile__("rd %%asr26, %0" : "=r" (cfr)); if (!(cfr & CFR_DES)) return false; return true; }
6,375
34,463
0
int btrfs_clean_old_snapshots(struct btrfs_root *root) { LIST_HEAD(list); struct btrfs_fs_info *fs_info = root->fs_info; spin_lock(&fs_info->trans_lock); list_splice_init(&fs_info->dead_roots, &list); spin_unlock(&fs_info->trans_lock); while (!list_empty(&list)) { int ret; root = list_entry(list.next, stru...
6,376
63,176
0
void MSG_WriteShort( msg_t *sb, int c ) { #ifdef PARANOID if (c < ((short)0x8000) || c > (short)0x7fff) Com_Error (ERR_FATAL, "MSG_WriteShort: range error"); #endif MSG_WriteBits( sb, c, 16 ); }
6,377
101,199
0
void SetEntrySpecifics(MutableEntry* meta_entry, SyncEntity* sync_entry) { sync_entry->mutable_specifics()->CopyFrom(meta_entry->Get(SPECIFICS)); sync_entry->set_folder(meta_entry->Get(syncable::IS_DIR)); DCHECK(meta_entry->GetModelType() == sync_entry->GetModelType()); }
6,378
103,929
0
RenderView::~RenderView() { history_page_ids_.clear(); if (decrement_shared_popup_at_destruction_) shared_popup_counter_->data--; while (!file_chooser_completions_.empty()) { if (file_chooser_completions_.front()->completion) { file_chooser_completions_.front()->completion->didChooseFile( ...
6,379
139,549
0
static TriState StateOrderedList(LocalFrame& frame, Event*) { return SelectionListState(frame.Selection(), olTag); }
6,380
38,156
0
find_option(name) const char *name; { option_t *opt; struct option_list *list; int i, dowild; for (dowild = 0; dowild <= 1; ++dowild) { for (opt = general_options; opt->name != NULL; ++opt) if (match_option(name, opt, dowild)) return opt; for (opt = auth_options; opt->name != NULL; ++opt) if (mat...
6,381
109,832
0
void Document::setXMLStandalone(bool standalone, ExceptionState& es) { if (!implementation()->hasFeature("XML", String())) { es.throwUninformativeAndGenericDOMException(NotSupportedError); return; } m_xmlStandalone = standalone ? Standalone : NotStandalone; }
6,382
126,782
0
bool BrowserView::GetSavedWindowPlacement( gfx::Rect* bounds, ui::WindowShowState* show_state) const { if (!ShouldSaveOrRestoreWindowPos()) return false; chrome::GetSavedWindowBoundsAndShowState(browser_.get(), bounds, show_state); #if defined(USE_ASH) if (browser_->is_type_popup() || browser_->is_ty...
6,383
130,778
0
static void enumAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectV8Internal::enumAttrAttributeGetter(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); }
6,384
159,368
0
void SetExpectedResponse(const std::string& expected_response) { expected_response_ = expected_response; }
6,385
176,820
0
bool isJavaPackageName(const StringPiece16& str) { if (str.empty()) { return false; } size_t pieces = 0; for (const StringPiece16& piece : tokenize(str, u'.')) { pieces++; if (piece.empty()) { return false; } if (piece.data()[0] == u'_' || piece.data()[piece.size() - 1] == u'_') { return false; } ...
6,386
34,157
0
static u32 ccid3_hc_tx_idle_rtt(struct ccid3_hc_tx_sock *hc, ktime_t now) { u32 delta = ktime_us_delta(now, hc->tx_t_last_win_count); return delta / hc->tx_rtt; }
6,387
23,593
0
static void multipath_dtr(struct dm_target *ti) { struct multipath *m = ti->private; flush_multipath_work(m); free_multipath(m); }
6,388
48,905
0
static int netif_alloc_rx_queues(struct net_device *dev) { unsigned int i, count = dev->num_rx_queues; struct netdev_rx_queue *rx; size_t sz = count * sizeof(*rx); BUG_ON(count < 1); rx = kzalloc(sz, GFP_KERNEL | __GFP_NOWARN | __GFP_REPEAT); if (!rx) { rx = vzalloc(sz); if (!rx) return -ENOMEM; } dev-...
6,389
79,553
0
static struct ImapCommand *cmd_new(struct ImapData *idata) { struct ImapCommand *cmd = NULL; if (cmd_queue_full(idata)) { mutt_debug(3, "IMAP command queue full\n"); return NULL; } cmd = idata->cmds + idata->nextcmd; idata->nextcmd = (idata->nextcmd + 1) % idata->cmdslots; snprintf(cmd->seq, si...
6,390
87,634
0
LIBOPENMPT_MODPLUG_API char* ModPlug_GetMessage(ModPlugFile* file) { if(!file) return NULL; return file->message; }
6,391
140,029
0
bool HTMLMediaElement::loop() const { return fastHasAttribute(loopAttr); }
6,392
40,995
0
void CMSEXPORT cmsMLUfree(cmsMLU* mlu) { if (mlu) { if (mlu -> Entries) _cmsFree(mlu ->ContextID, mlu->Entries); if (mlu -> MemPool) _cmsFree(mlu ->ContextID, mlu->MemPool); _cmsFree(mlu ->ContextID, mlu); } }
6,393
110,032
0
int HTMLSelectElement::nextSelectableListIndex(int startIndex) const { return nextValidIndex(startIndex, SkipForwards, 1); }
6,394
7,029
0
Init_Linked( TProfileList* l ) { *l = NULL; }
6,395
25,603
0
fmov_reg_idx(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m, int n) { if (FPSCR_SZ) { FMOV_EXT(m); WRITE(FRm, Rn + R0 + 4); m++; WRITE(FRm, Rn + R0); } else { WRITE(FRm, Rn + R0); } return 0; }
6,396
21,706
0
address_mask(struct x86_emulate_ctxt *ctxt, unsigned long reg) { if (ctxt->ad_bytes == sizeof(unsigned long)) return reg; else return reg & ad_mask(ctxt); }
6,397
84,675
0
kadm5_modify_principal(void *server_handle, kadm5_principal_ent_t entry, long mask) { int ret, ret2, i; kadm5_policy_ent_rec pol; krb5_boolean have_pol = FALSE; krb5_db_entry *kdb; krb5_tl_data *tl_data_orig; osa_princ...
6,398
179,705
1
int hashtable_set(hashtable_t *hashtable, const char *key, size_t serial, json_t *value) { pair_t *pair; bucket_t *bucket; size_t hash, index; /* rehash if the load ratio exceeds 1 */ if(hashtable->size >= num_buckets(hashtable)) if(hashtable_do_rehash(hashtable)) return -1; hash = hash_str(key); index = hash...
6,399