unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
154,800
0
error::Error GLES2DecoderPassthroughImpl::DoStencilFillPathInstancedCHROMIUM( GLsizei numPaths, GLenum pathNameType, const GLvoid* paths, GLsizei pathsBufsize, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat* transformValues, GLsizei transformVa...
2,100
58,662
0
BOOL security_key_update(BYTE* key, BYTE* update_key, int key_len) { BYTE sha1h[CRYPTO_SHA1_DIGEST_LENGTH]; CryptoMd5 md5; CryptoSha1 sha1; CryptoRc4 rc4; BYTE salt40[] = { 0xD1, 0x26, 0x9E }; sha1 = crypto_sha1_init(); crypto_sha1_update(sha1, update_key, key_len); crypto_sha1_update(sha1, pad1, sizeof(pad1))...
2,101
50,560
0
static inline void ModulateHSI(const double percent_hue, const double percent_saturation,const double percent_intensity,double *red, double *green,double *blue) { double intensity, hue, saturation; /* Increase or decrease color intensity, saturation, or hue. */ ConvertRGBToHSI(*red,*green,*...
2,102
4,723
0
user_change_shell_authorized_cb (Daemon *daemon, User *user, GDBusMethodInvocation *context, gpointer data) { gchar *shell = data; g_autoptr(GError) error = N...
2,103
32,238
0
int unregister_netdevice_notifier(struct notifier_block *nb) { int err; rtnl_lock(); err = raw_notifier_chain_unregister(&netdev_chain, nb); rtnl_unlock(); return err; }
2,104
107,547
0
void ewk_view_load_document_finished(Evas_Object* ewkView, Evas_Object* frame) { evas_object_smart_callback_call(ewkView, "load,document,finished", frame); }
2,105
111,322
0
IntPoint WebPagePrivate::scrollPosition() const { return m_backingStoreClient->scrollPosition(); }
2,106
77,074
0
parse_SET_L4_SRC_PORT(char *arg, struct ofpbuf *ofpacts, enum ofputil_protocol *usable_protocols OVS_UNUSED) { return str_to_u16(arg, "source port", &ofpact_put_SET_L4_SRC_PORT(ofpacts)->port); }
2,107
37,604
0
static void walk_shadow_page_lockless_begin(struct kvm_vcpu *vcpu) { /* * Prevent page table teardown by making any free-er wait during * kvm_flush_remote_tlbs() IPI to all active vcpus. */ local_irq_disable(); vcpu->mode = READING_SHADOW_PAGE_TABLES; /* * Make sure a following spte read is not reordered ah...
2,108
88,396
0
static uint8_t spectral_data(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld, int16_t *spectral_data) { int8_t i; uint8_t g; uint16_t inc, k, p = 0; uint8_t groups = 0; uint8_t sect_cb; uint8_t result; uint16_t nshort = hDecoder->frameLength/8; #ifdef PROF...
2,109
155,347
0
void ChromeContentBrowserClient::GetHardwareSecureDecryptionCaps( const std::string& key_system, const base::flat_set<media::CdmProxy::Protocol>& cdm_proxy_protocols, base::flat_set<media::VideoCodec>* video_codecs, base::flat_set<media::EncryptionMode>* encryption_schemes) { #if defined(OS_WIN) && BUIL...
2,110
9,185
0
void virtio_config_modern_writel(VirtIODevice *vdev, uint32_t addr, uint32_t data) { VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); uint32_t val = data; if (addr + sizeof(val) > vdev->config_len) { return; } stl_le_p(vdev->config + addr, val); i...
2,111
19,681
0
static ssize_t free_hugepages_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) { struct hstate *h; unsigned long free_huge_pages; int nid; h = kobj_to_hstate(kobj, &nid); if (nid == NUMA_NO_NODE) free_huge_pages = h->free_huge_pages; else free_huge_pages = h->free_huge_pages_node[nid];...
2,112
61,227
0
static Image *ExtractPostscript(Image *image,const ImageInfo *image_info, MagickOffsetType PS_Offset,ssize_t PS_Size,ExceptionInfo *exception) { char postscript_file[MaxTextExtent]; const MagicInfo *magic_info; FILE *ps_file; ImageInfo *clone_info; Image *image2; unsigned char ...
2,113
46,594
0
static inline void writeit(int f, void *buf, size_t len) { ssize_t res; while (len > 0) { DEBUG("+"); if ((res = write(f, buf, len)) <= 0) err("Send failed: %m"); len -= res; buf += res; } }
2,114
143,110
0
DEFINE_TRACE(Document) { visitor->trace(m_importsController); visitor->trace(m_docType); visitor->trace(m_implementation); visitor->trace(m_autofocusElement); visitor->trace(m_focusedElement); visitor->trace(m_sequentialFocusNavigationStartingPoint); visitor->trace(m_hoverNode); visitor-...
2,115
52,938
0
static int qib_get_base_info(struct file *fp, void __user *ubase, size_t ubase_size) { struct qib_ctxtdata *rcd = ctxt_fp(fp); int ret = 0; struct qib_base_info *kinfo = NULL; struct qib_devdata *dd = rcd->dd; struct qib_pportdata *ppd = rcd->ppd; unsigned subctxt_cnt; int shared, master; size_t sz; s...
2,116
41,081
0
static int __init futex_init(void) { u32 curval; int i; /* * This will fail and we want it. Some arch implementations do * runtime detection of the futex_atomic_cmpxchg_inatomic() * functionality. We want to know that before we call in any * of the complex code paths. Also we want to prevent * registratio...
2,117
148,152
0
void V8TestObject::VoidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodShortArg"); test_object_v8_internal::VoidMethodShortArgMethod(info); }
2,118
187,060
1
bool ReceiverWasAdded(const RtpTransceiverState& transceiver_state) { uintptr_t receiver_id = RTCRtpReceiver::getId( transceiver_state.receiver_state()->webrtc_receiver().get()); for (const auto& receiver : handler_->rtp_receivers_) { if (receiver->Id() == receiver_id) return false; ...
2,119
115,258
0
void OmniboxViewWin::OnPaste() { const string16 text(GetClipboardText()); if (!text.empty()) { model_->on_paste(); text_before_change_.clear(); ReplaceSel(text.c_str(), true); } }
2,120
153,772
0
void GLES2Implementation::MultiDrawArraysWEBGL(GLenum mode, const GLint* firsts, const GLsizei* counts, GLsizei drawcount) { GPU_CLIENT_SINGLE_THREAD_CHECK(); GPU_CLIENT_LOG("...
2,121
117,172
0
virtual bool detach() { m_events.append(Detach); return TRUE; }
2,122
116,769
0
void RenderViewTest::SendContentStateImmediately() { RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); impl->set_send_content_state_immediately(true); }
2,123
92,422
0
static int font_load_and_wait(const char *vc, const char *font, const char *map, const char *unimap) { const char *args[9]; unsigned i = 0; pid_t pid; int r; /* Any part can be set independently */ if (isempty(font) && isempty(map) && isempty(unimap)) ret...
2,124
20,851
0
static int kvm_vm_ioctl_set_nr_mmu_pages(struct kvm *kvm, u32 kvm_nr_mmu_pages) { if (kvm_nr_mmu_pages < KVM_MIN_ALLOC_MMU_PAGES) return -EINVAL; mutex_lock(&kvm->slots_lock); spin_lock(&kvm->mmu_lock); kvm_mmu_change_mmu_pages(kvm, kvm_nr_mmu_pages); kvm->arch.n_requested_mmu_pages = kvm_nr_mmu_pages; ...
2,125
154,614
0
error::Error GLES2DecoderPassthroughImpl::DoCreateShader(GLenum type, GLuint client_id) { return CreateHelper(client_id, &resources_->shader_id_map, [this, type]() { return api()->glCreateShaderFn(type); }); }
2,126
95,177
0
static void cmd_undump(char *tag, char *name) { int r = 0; char *intname = mboxname_from_external(name, &imapd_namespace, imapd_userid); /* administrators only please */ if (!imapd_userisadmin) r = IMAP_PERMISSION_DENIED; if (!r) r = mlookup(tag, name, intname, NULL); if (!r) r = undu...
2,127
152,070
0
void RenderFrameHostImpl::ResetNavigationRequests() { navigation_request_.reset(); same_document_navigation_request_.reset(); navigation_requests_.clear(); }
2,128
6,536
0
kwsalloc (char const *trans) { struct kwset *kwset; kwset = (struct kwset *) malloc(sizeof (struct kwset)); if (!kwset) return NULL; obstack_init(&kwset->obstack); kwset->words = 0; kwset->trie = (struct trie *) obstack_alloc(&kwset->obstack, sizeof (struct trie)); if (!kwset->trie) { ...
2,129
131,402
0
static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectPythonV8Internal::htmlCollectionAttributeAttributeGetter(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Executi...
2,130
169,032
0
void OfflinePageModelImpl::AddPage(const OfflinePageItem& page, const AddPageCallback& callback) { RunWhenLoaded(base::Bind(&OfflinePageModelImpl::AddPageWhenLoadDone, weak_ptr_factory_.GetWeakPtr(), page, callback)); }
2,131
155,880
0
views::Link* CreateLink(const base::string16& link_text, views::LinkListener* listener) { views::Link* link_button = new views::Link(link_text); link_button->SetHorizontalAlignment(gfx::ALIGN_LEFT); link_button->SetUnderline(false); link_button->set_listener(listener); return link_butt...
2,132
176,737
0
status_t Parcel::readByteVector(std::vector<int8_t>* val) const { return readByteVectorInternal(this, val); }
2,133
93,794
0
virDomainGetBlkioParameters(virDomainPtr domain, virTypedParameterPtr params, int *nparams, unsigned int flags) { virConnectPtr conn; VIR_DOMAIN_DEBUG(domain, "params=%p, nparams=%d, flags=%x", params, (nparams) ? *nparams : -1, flags...
2,134
23,189
0
struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp) { struct nfs4_session *session; struct nfs4_slot_table *tbl; session = kzalloc(sizeof(struct nfs4_session), GFP_NOFS); if (!session) return NULL; tbl = &session->fc_slot_table; tbl->highest_used_slotid = -1; spin_lock_init(&tbl->slot_tbl_lock); ...
2,135
139,229
0
RenderProcessHostImpl::TakeMetricsAllocator() { return std::move(metrics_allocator_); }
2,136
7,255
0
static void php_cgi_ini_activate_user_config(char *path, int path_len, const char *doc_root, int doc_root_len, int start TSRMLS_DC) { char *ptr; user_config_cache_entry *new_entry, *entry; time_t request_time = sapi_get_request_time(TSRMLS_C); /* Find cached config entry: If not found, create one */ if (zend_hash...
2,137
140,677
0
base::string16 GetDisplaySize(int64_t display_id) { display::DisplayManager* display_manager = GetDisplayManager(); const display::Display* display = &display_manager->GetDisplayForId(display_id); bool mirroring = display_manager->mirroring_display_id() == display_id; DCHECK(!mirroring); if (mirroring...
2,138
118,816
0
bool WebContentsImpl::AddMessageToConsole(int32 level, const string16& message, int32 line_no, const string16& source_id) { if (!delegate_) return false; return delegate_->AddMessageToCo...
2,139
115,808
0
FakeMalwareDetails* get_details() { return details_; }
2,140
113,822
0
void AddPluginDllEvictionPolicy(sandbox::TargetPolicy* policy) { for (int ix = 0; ix != arraysize(kTroublesomePluginDlls); ++ix) BlacklistAddOneDll(kTroublesomePluginDlls[ix], false, policy); }
2,141
107,093
0
QQuickWebViewPrivate::~QQuickWebViewPrivate() { webPageProxy->close(); }
2,142
68,240
0
read_object (FILE *in) { Attr *attr = NULL; /* peek to see if there is more to read from this stream */ int tmp_char = fgetc(in); if (tmp_char == -1) return NULL; ungetc(tmp_char, in); attr = attr_read (in); return attr; }
2,143
114,715
0
NetworkActionPredictor::TransitionalMatch::~TransitionalMatch() { }
2,144
5,779
0
static void ehci_caps_write(void *ptr, hwaddr addr, uint64_t val, unsigned size) { }
2,145
33,173
0
static int xfrm_send_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, __be16 sport) { struct net *net = xs_net(x); struct sk_buff *skb; if (x->id.proto != IPPROTO_ESP) return -EINVAL; if (!x->encap) return -EINVAL; skb = nlmsg_new(xfrm_mapping_msgsize(), GFP_ATOMIC); if (skb == NULL) return ...
2,146
157,878
0
void WebContentsImpl::UpdateRenderViewSizeForRenderManager(bool is_main_frame) { gfx::Size size = GetSizeForNewRenderView(is_main_frame); if (!size.IsEmpty()) view_->SizeContents(size); }
2,147
164,272
0
ActiveTabManagedSessionTest() {}
2,148
84,401
0
get_ping_buffer_for_header (Header *header) { Buffer *buffer; GDBusMessage *dummy; dummy = g_dbus_message_new_method_call (NULL, "/", "org.freedesktop.DBus.Peer", "Ping"); g_dbus_message_set_serial (dummy, header->serial); g_dbus_message_set_flags (dummy, header->flags); buffer = message_to_buffer (dummy)...
2,149
80,329
0
GF_Err pdin_Size(GF_Box *s) { GF_ProgressiveDownloadBox *ptr = (GF_ProgressiveDownloadBox *)s; ptr->size += 8*ptr->count; return GF_OK; }
2,150
127,479
0
void JPEGImageDecoder::decode(bool onlySize) { if (failed()) return; if (!m_reader) m_reader = adoptPtr(new JPEGImageReader(this)); if (!m_reader->decode(*m_data, onlySize) && isAllDataReceived()) setFailed(); else if (!m_frameBufferCache.isEmpty() && (m_frameBufferCache[0].sta...
2,151
103,067
0
virtual ~TabStripDummyDelegate() {}
2,152
31,259
0
int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err) { unsigned int alignmask = walk->alignmask; unsigned int nbytes = walk->entrylen; walk->data -= walk->offset; if (nbytes && walk->offset & alignmask && !err) { walk->offset = ALIGN(walk->offset, alignmask + 1); walk->data += walk->offset; nb...
2,153
164,783
0
static bool CheckCaf(const uint8_t* buffer, int buffer_size) { RCHECK(buffer_size >= 52); BitReader reader(buffer, buffer_size); RCHECK(ReadBits(&reader, 32) == TAG('c', 'a', 'f', 'f')); RCHECK(ReadBits(&reader, 16) == 1); reader.SkipBits(16); RCHECK(ReadBits(&reader, 32) == TAG('d', 'e', 's', 'c')); ...
2,154
15,316
0
static PHP_FUNCTION(xmlwriter_start_dtd) { zval *pind; xmlwriter_object *intern; xmlTextWriterPtr ptr; char *name, *pubid = NULL, *sysid = NULL; int name_len, pubid_len, sysid_len, retval; #ifdef ZEND_ENGINE_2 zval *this = getThis(); if (this) { if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s!s!", ...
2,155
122,638
0
void Extension::GetBasicInfo(bool enabled, DictionaryValue* info) const { info->SetString(info_keys::kIdKey, id()); info->SetString(info_keys::kNameKey, name()); info->SetBoolean(info_keys::kEnabledKey, enabled); info->SetBoolean(info_keys::kOfflineEnabledKey, offline_enabled()); ...
2,156
93,543
0
static int ip6mr_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh, struct nlattr **tb) { return 1; }
2,157
173,606
0
status_t NuPlayer::GenericSource::seekTo(int64_t seekTimeUs) { sp<AMessage> msg = new AMessage(kWhatSeek, this); msg->setInt64("seekTimeUs", seekTimeUs); sp<AMessage> response; status_t err = msg->postAndAwaitResponse(&response); if (err == OK && response != NULL) { CHECK(response->findInt32("err...
2,158
9,349
0
int SSL_in_init(SSL *s) { return s->statem.in_init; }
2,159
40,009
0
cifs_relock_file(struct cifsFileInfo *cfile) { struct cifs_sb_info *cifs_sb = CIFS_SB(cfile->dentry->d_sb); struct cifsInodeInfo *cinode = CIFS_I(cfile->dentry->d_inode); struct cifs_tcon *tcon = tlink_tcon(cfile->tlink); int rc = 0; down_read(&cinode->lock_sem); if (cinode->can_cache_brlcks) { /* can cache lo...
2,160
136,814
0
void LocalDOMWindow::moveBy(int x, int y) const { if (!GetFrame() || !GetFrame()->IsMainFrame()) return; Page* page = GetFrame()->GetPage(); if (!page) return; IntRect window_rect = page->GetChromeClient().RootWindowRect(); window_rect.SaturatedMove(x, y); page->GetChromeClient().SetWindowRectWith...
2,161
93,846
0
virDomainMemoryPeek(virDomainPtr dom, unsigned long long start /* really 64 bits */, size_t size, void *buffer, unsigned int flags) { virConnectPtr conn; VIR_DOMAIN_DEBUG(dom, "start=%lld, size=%zi, buffer=%p, flags=%x", ...
2,162
92,465
0
static void attach_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags) { u32 divider = LOAD_AVG_MAX - 1024 + cfs_rq->avg.period_contrib; /* * When we attach the @se to the @cfs_rq, we must align the decay * window because without that, really weird and wonderful things can * happen. * ...
2,163
33,013
0
static int sctp_getsockopt_peer_addr_info(struct sock *sk, int len, char __user *optval, int __user *optlen) { struct sctp_paddrinfo pinfo; struct sctp_transport *transport; int retval = 0; if (len < sizeof(pinfo)) { retval = -EINVAL; goto out; } len = sizeof(pinfo); if (copy_from_user(&pinfo...
2,164
14,198
0
static zend_object_value zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces TSRMLS_DC) /* {{{ */ { zval obj; zend_object *object; zval *trace; Z_OBJVAL(obj) = zend_objects_new(&object, class_type TSRMLS_CC); Z_OBJ_HT(obj) = &default_exception_handlers; object_properties_init(object,...
2,165
83,462
0
X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t) { param->check_time = t; param->flags |= X509_V_FLAG_USE_CHECK_TIME; }
2,166
187,271
1
void RenderFrameDevToolsAgentHost::DestroyOnRenderFrameGone() { scoped_refptr<RenderFrameDevToolsAgentHost> protect(this); if (IsAttached()) RevokePolicy(); ForceDetachAllClients(); frame_host_ = nullptr; agent_ptr_.reset(); SetFrameTreeNode(nullptr); Release(); }
2,167
67,828
0
void DefragTrackerFree(DefragTracker *dt) { if (dt != NULL) { DefragTrackerClearMemory(dt); SCMutexDestroy(&dt->lock); SCFree(dt); (void) SC_ATOMIC_SUB(defrag_memuse, sizeof(DefragTracker)); } }
2,168
148,936
0
static void Cleanup(Vdbe *p){ sqlite3 *db = p->db; #ifdef SQLITE_DEBUG /* Execute assert() statements to ensure that the Vdbe.apCsr[] and ** Vdbe.aMem[] arrays have already been cleaned up. */ int i; if( p->apCsr ) for(i=0; i<p->nCursor; i++) assert( p->apCsr[i]==0 ); if( p->aMem ){ for(i=0; i<p->nMe...
2,169
174,549
0
void BTM_PasskeyReqReply(tBTM_STATUS res, BD_ADDR bd_addr, UINT32 passkey) { tBTM_SEC_DEV_REC *p_dev_rec; BTM_TRACE_API ("BTM_PasskeyReqReply: State: %s res:%d", btm_pair_state_descr(btm_cb.pairing_state), res); if ( (btm_cb.pairing_state == BTM_PAIR_STATE_IDLE) || (memcmp (btm_cb.pairi...
2,170
36,823
0
int inode_newsize_ok(const struct inode *inode, loff_t offset) { if (inode->i_size < offset) { unsigned long limit; limit = rlimit(RLIMIT_FSIZE); if (limit != RLIM_INFINITY && offset > limit) goto out_sig; if (offset > inode->i_sb->s_maxbytes) goto out_big; } else { /* * truncation of in-use swapf...
2,171
170,306
0
UsbChooserContext::GetGrantedObjects(const GURL& requesting_origin, const GURL& embedding_origin) { std::vector<std::unique_ptr<base::DictionaryValue>> objects = ChooserContextBase::GetGrantedObjects(requesting_origin, embedding_or...
2,172
143,582
0
void OomInterventionTabHelper::StopMonitoring() { if (OomInterventionConfig::GetInstance()->should_detect_in_renderer()) { ResetInterfaces(); } else { subscription_.reset(); } }
2,173
60,891
0
extension_info_start (NautilusDirectory *directory, NautilusFile *file, gboolean *doing_io) { NautilusInfoProvider *provider; NautilusOperationResult result; NautilusOperationHandle *handle; GClosure *update_complete; if (directory->details-...
2,174
59,902
0
static void uas_free_unsubmitted_urbs(struct scsi_cmnd *cmnd) { struct uas_cmd_info *cmdinfo; if (!cmnd) return; cmdinfo = (void *)&cmnd->SCp; if (cmdinfo->state & SUBMIT_CMD_URB) usb_free_urb(cmdinfo->cmd_urb); /* data urbs may have never gotten their submit flag set */ if (!(cmdinfo->state & DATA_IN_URB...
2,175
107,574
0
void ewk_view_paint_context_clip(Ewk_View_Paint_Context* context, const Eina_Rectangle* area) { EINA_SAFETY_ON_NULL_RETURN(context); EINA_SAFETY_ON_NULL_RETURN(area); context->graphicContext->clip(WebCore::IntRect(area->x, area->y, area->w, area->h)); }
2,176
41,337
0
static void emulator_set_cached_descriptor(struct desc_struct *desc, int seg, struct kvm_vcpu *vcpu) { struct kvm_segment var; /* needed to preserve selector */ kvm_get_segment(vcpu, &var, seg); var.base = get_desc_base(desc); var.limit = get_desc_limit(desc); if (desc->g) var.limit = (var.limit << 12...
2,177
135,275
0
void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change) { ASSERT(inStyleRecalc()); ASSERT(documentElement()); bool didRecalcDocumentElement = false; RefPtr<ComputedStyle> documentElementStyle = documentElement()->mutableComputedStyle(); if (change == Force) documentElement(...
2,178
98,521
0
GdkColor NormalURLColor(GdkColor foreground) { color_utils::HSL fg_hsl; color_utils::SkColorToHSL(gfx::GdkColorToSkColor(foreground), &fg_hsl); color_utils::HSL hue_hsl; color_utils::SkColorToHSL(gfx::GdkColorToSkColor(kURLTextColor), &hue_hsl); double s = std::max(0.5, fg_hsl.s); double l; if (fg_hsl....
2,179
154,666
0
error::Error GLES2DecoderPassthroughImpl::DoGenRenderbuffers( GLsizei n, volatile GLuint* renderbuffers) { return GenHelper(n, renderbuffers, &resources_->renderbuffer_id_map, [this](GLsizei n, GLuint* renderbuffers) { api()->glGenRenderbuffersEXTFn(n, renderbuffers); ...
2,180
117,333
0
xmlXPtrNewRangePointNode(xmlXPathObjectPtr start, xmlNodePtr end) { xmlXPathObjectPtr ret; if (start == NULL) return(NULL); if (end == NULL) return(NULL); if (start->type != XPATH_POINT) return(NULL); ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); if (ret == NULL) { xm...
2,181
148,506
0
void WebContentsImpl::OnShowValidationMessage( RenderViewHostImpl* source, const gfx::Rect& anchor_in_root_view, const base::string16& main_text, const base::string16& sub_text) { if (delegate_) delegate_->ShowValidationMessage( this, anchor_in_root_view, main_text, sub_text); }
2,182
132,595
0
void WebKitTestResultPrinter::PrintAudioHeader() { DCHECK_EQ(state_, DURING_TEST); if (!capture_text_only_) *output_ << "Content-Type: audio/wav\n"; state_ = IN_AUDIO_BLOCK; }
2,183
154,320
0
void GLES2DecoderImpl::PerformIdleWork() { gpu_tracer_->ProcessTraces(); ProcessPendingReadPixels(false); }
2,184
104,001
0
void GLES2DecoderImpl::DoClear(GLbitfield mask) { if (CheckFramebufferComplete("glClear")) { ApplyDirtyState(); glClear(mask); } }
2,185
7,080
0
t42_parse_sfnts( T42_Face face, T42_Loader loader ) { T42_Parser parser = &loader->parser; FT_Memory memory = parser->root.memory; FT_Byte* cur; FT_Byte* limit = parser->root.limit; FT_Error error; FT_Int num_tables = 0; FT_ULong count; FT...
2,186
52,276
0
static int compat_calc_entry(const struct ipt_entry *e, const struct xt_table_info *info, const void *base, struct xt_table_info *newinfo) { const struct xt_entry_match *ematch; const struct xt_entry_target *t; unsigned int entry_offset; int off, i, ret; off = sizeof(struct ipt_entry) - sizeof(str...
2,187
55,855
0
void console_sysfs_notify(void) { if (consdev) sysfs_notify(&consdev->kobj, NULL, "active"); }
2,188
69,131
0
ZEND_API zval* ZEND_FASTCALL _zend_hash_add_or_update(HashTable *ht, zend_string *key, zval *pData, uint32_t flag ZEND_FILE_LINE_DC) { return _zend_hash_add_or_update_i(ht, key, pData, flag ZEND_FILE_LINE_RELAY_CC); }
2,189
142,970
0
void HTMLMediaElement::setPlaybackRate(double rate, ExceptionState& exception_state) { BLINK_MEDIA_LOG << "setPlaybackRate(" << (void*)this << ", " << rate << ")"; if (GetLoadType() == WebMediaPlayer::kLoadTypeMediaStream) return; if (rate != 0.0 && (rate < kMinRate || ...
2,190
143,182
0
void Document::enforceInsecureRequestPolicy(WebInsecureRequestPolicy policy) { setInsecureRequestPolicy(getInsecureRequestPolicy() | policy); if (frame()) frame()->loader().client()->didEnforceInsecureRequestPolicy(getInsecureRequestPolicy()); }
2,191
130,739
0
static void enabledAtRuntimeMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); TestObjectV8Internal::enabledAtRuntimeMethodMethod(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); }
2,192
146,799
0
void Document::NodeWillBeRemoved(Node& n) { for (NodeIterator* ni : node_iterators_) ni->NodeWillBeRemoved(n); for (Range* range : ranges_) range->NodeWillBeRemoved(n); NotifyNodeWillBeRemoved(n); if (ContainsV1ShadowTree()) n.CheckSlotChangeBeforeRemoved(); if (n.InActiveDocument() && n.IsEle...
2,193
155,599
0
const gfx::VectorIcon& AuthenticatorBleActivateSheetModel::GetStepIllustration( ImageColorScheme color_scheme) const { return color_scheme == ImageColorScheme::kDark ? kWebauthnBleTapDarkIcon : kWebauthnBleTapIcon; }
2,194
4,840
0
GetSpriteCursor(DeviceIntPtr pDev) { return pDev->spriteInfo->sprite->current; }
2,195
53,906
0
ndp_find_msgrcv_handler_item(struct ndp *ndp, ndp_msgrcv_handler_func_t func, enum ndp_msg_type msg_type, uint32_t ifindex, void *priv) { struct ndp_msgrcv_handler_item *handler_item; list_for_each_node_entry(handler_item, &ndp->msgrcv_handler_list, list) if (handler_item->func == func && ...
2,196
118,779
0
void ContainerNode::setHovered(bool over) { if (over == hovered()) return; Node::setHovered(over); if (!renderer()) { if (!over) setNeedsStyleRecalc(); return; } if (renderer()) { if (renderStyle()->affectedByHover() || (isElementNode() && toElement(this)->chi...
2,197
134,789
0
void EventReaderLibevdevCros::OnLogMessage(void* data, int level, const char* fmt, ...) { va_list args; va_start(args, fmt); if (level >= LOGLEVEL_ERROR) LOG(ERROR) << "libevdev: " ...
2,198
178,988
1
asmlinkage void do_sparc_fault(struct pt_regs *regs, int text_fault, int write, unsigned long address) { struct vm_area_struct *vma; struct task_struct *tsk = current; struct mm_struct *mm = tsk->mm; unsigned int fixup; unsigned long g2; int from_user = !(regs->psr & PSR_PS); int fault, code; if(text_fault) address = ...
2,199