unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
30,013
0
static void br_multicast_group_expired(unsigned long data) { struct net_bridge_mdb_entry *mp = (void *)data; struct net_bridge *br = mp->br; struct net_bridge_mdb_htable *mdb; spin_lock(&br->multicast_lock); if (!netif_running(br->dev) || timer_pending(&mp->timer)) goto out; mp->mglist = false; if (mp->port...
4,000
130,106
0
MasterPreferences::MasterPreferences(const base::CommandLine& cmd_line) : distribution_(NULL), preferences_read_from_file_(false), chrome_(true), multi_install_(false) { InitializeFromCommandLine(cmd_line); }
4,001
47,825
0
static int snd_pcm_hw_rule_pow2(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule *rule) { static unsigned int pow2_sizes[] = { 1<<0, 1<<1, 1<<2, 1<<3, 1<<4, 1<<5, 1<<6, 1<<7, 1<<8, 1<<9, 1<<10, 1<<11, 1<<12, 1<<13, 1<<14, 1<<15, 1<<16, 1<<17, 1<<18, 1<<19, 1<<20, 1<<21, 1<<22, 1<<23, 1<<24, 1<<25, 1<<2...
4,002
118,136
0
WebContentsAndroid::GetJavaObject() { return base::android::ScopedJavaLocalRef<jobject>(obj_); }
4,003
45,331
0
static noinline void copy_for_split(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct extent_buffer *l, struct extent_buffer *right, int slot, int mid, int nritems) { int data_copy_size; int rt_data_off; int i; struct btrfs_disk_key di...
4,004
1,323
0
void DynamicMetadataProvider::unlock() { m_lock->unlock(); }
4,005
30,061
0
static void vhost_net_zerocopy_done_signal(struct kref *kref) { struct vhost_net_ubuf_ref *ubufs; ubufs = container_of(kref, struct vhost_net_ubuf_ref, kref); wake_up(&ubufs->wait); }
4,006
116,501
0
bool AttachDebuggerFunction::RunImpl() { if (!InitTabContents()) return false; std::string version; EXTENSION_FUNCTION_VALIDATE(args_->GetString(1, &version)); if (!webkit_glue::IsInspectorProtocolVersionSupported(version)) { error_ = ExtensionErrorUtils::FormatErrorMessage( keys::kProtocolVer...
4,007
164,356
0
ExtensionFunction::ResponseAction TabsSetZoomFunction::Run() { std::unique_ptr<tabs::SetZoom::Params> params( tabs::SetZoom::Params::Create(*args_)); EXTENSION_FUNCTION_VALIDATE(params); int tab_id = params->tab_id ? *params->tab_id : -1; std::string error; WebContents* web_contents = GetTabsAPID...
4,008
81,195
0
void __tasklet_hi_schedule(struct tasklet_struct *t) { __tasklet_schedule_common(t, &tasklet_hi_vec, HI_SOFTIRQ); }
4,009
28,142
0
static int hadamard8_intra8x8_c(/*MpegEncContext*/ void *s, uint8_t *src, uint8_t *dummy, int stride, int h){ int i; int temp[64]; int sum=0; av_assert2(h==8); for(i=0; i<8; i++){ BUTTERFLY2(temp[8*i+0], temp[8*i+1], src[stride*i+0],src[stride*i+1]); BUTTERFLY2(temp[8*i+2], temp[8*...
4,010
10,739
0
static inline void xhci_dma_write_u32s(XHCIState *xhci, dma_addr_t addr, uint32_t *buf, size_t len) { int i; uint32_t tmp[len / sizeof(uint32_t)]; assert((len % sizeof(uint32_t)) == 0); for (i = 0; i < (len / sizeof(uint32_t)); i++) { tmp[i] = cpu_to_le32...
4,011
61,136
0
scan_file (GFile *file, SourceInfo *source_info, CommonJob *job, GHashTable *scanned) { GFileInfo *info; GError *error; GQueue *dirs; GFile *dir; char *primary; char *secondary; char *details; int response; dirs = g_queue_new (); retry: er...
4,012
151,420
0
ContentSettingsClient* FrameFetchContext::GetContentSettingsClient() const { if (IsDetached()) return nullptr; return GetFrame()->GetContentSettingsClient(); }
4,013
69,344
0
static int aesni_ccm_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc) { EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,ctx); if (!iv && !key) return 1; if (key) { aesni_set_encrypt_key(key, EVP_CIPHER_CTX_key_length(c...
4,014
64,946
0
static IW_INLINE void put_raw_sample_16(struct iw_context *ctx, double s, int x, int y, int channel) { size_t z; unsigned short tmpui16; tmpui16 = (unsigned short)(0.5+s); z = y*ctx->img2.bpr + (ctx->img2_numchannels*x + channel)*2; ctx->img2.pixels[z+0] = (iw_byte)(tmpui16>>8); ctx->img2.pixels[z+1] = (iw_b...
4,015
144,352
0
void ExtensionInstallPrompt::ConfirmInstall( Delegate* delegate, const Extension* extension, const ShowDialogCallback& show_dialog_callback) { DCHECK(ui_loop_ == base::MessageLoop::current()); extension_ = extension; delegate_ = delegate; prompt_ = new Prompt(INSTALL_PROMPT); show_dialog_callback_...
4,016
64,139
0
static int _server_handle_c(libgdbr_t *g, int (*cmd_cb) (void*, const char*, char*, size_t), void *core_ptr) { char message[64]; if (send_ack (g) < 0) { return -1; } if (g->data_len > 1) { return send_msg (g, "E01"); } if (cmd_cb (core_ptr, "dc", NULL, 0) < 0) { send_msg (g, "E01"); return -1; } snprint...
4,017
155,763
0
v8::Local<v8::Value> SerializedScriptValue::deserialize(MessagePortArray* messagePorts) { return deserialize(v8::Isolate::GetCurrent(), messagePorts, 0); }
4,018
113,887
0
void HTMLDocumentParser::insert(const SegmentedString& source) { if (isStopped()) return; RefPtr<HTMLDocumentParser> protect(this); SegmentedString excludedLineNumberSource(source); excludedLineNumberSource.setExcludeLineNumbers(); m_input.insertAtCurrentInsertionPoint(excludedLineNumberSo...
4,019
50,143
0
ZEND_MM_BINS_INFO(_ZEND_BIN_ALLOCATOR, x, y) ZEND_API void* ZEND_FASTCALL _emalloc_large(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) { ZEND_MM_CUSTOM_ALLOCATOR(size); return zend_mm_alloc_large(AG(mm_heap), size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); }
4,020
22,663
0
wait_for_completion_timeout(struct completion *x, unsigned long timeout) { return wait_for_common(x, timeout, TASK_UNINTERRUPTIBLE); }
4,021
83,299
0
uint8 CSoundFile::GetBestMidiChannel(CHANNELINDEX nChn) const { if(nChn >= MAX_CHANNELS) { return 0; } const ModInstrument *ins = m_PlayState.Chn[nChn].pModInstrument; if(ins != nullptr) { if(ins->nMidiChannel == MidiMappedChannel) { return (m_PlayState.Chn[nChn].nMasterChn ? (m_PlayState.Chn[nChn].nMas...
4,022
20,321
0
static int hardware_enable_all(void) { int r = 0; raw_spin_lock(&kvm_lock); kvm_usage_count++; if (kvm_usage_count == 1) { atomic_set(&hardware_enable_failed, 0); on_each_cpu(hardware_enable_nolock, NULL, 1); if (atomic_read(&hardware_enable_failed)) { hardware_disable_all_nolock(); r = -EBUSY; } ...
4,023
148,347
0
void WebContentsImpl::DidGetRedirectForResourceRequest( const ResourceRedirectDetails& details) { for (auto& observer : observers_) observer.DidGetRedirectForResourceRequest(details); NotificationService::current()->Notify( NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, Source<WebContents>(this), ...
4,024
22,009
0
raptor_rdfxml_end_element_grammar(raptor_parser *rdf_parser, raptor_rdfxml_element *element) { raptor_rdfxml_parser *rdf_xml_parser; raptor_state state; int finished; raptor_xml_element* xml_element = element->xml_element; raptor_qname* el_qname; const unsigned char *el_na...
4,025
12,406
0
SPL_METHOD(SplObjectStorage, count) { spl_SplObjectStorage *intern = (spl_SplObjectStorage*)zend_object_store_get_object(getThis() TSRMLS_CC); if (zend_parse_parameters_none() == FAILURE) { return; } RETURN_LONG(zend_hash_num_elements(&intern->storage)); } /* }}} */ /* {{{ proto void SplObjectStorage::rewind...
4,026
73,083
0
BGD_DECLARE(void) gdImageSetBrush (gdImagePtr im, gdImagePtr brush) { int i; im->brush = brush; if ((!im->trueColor) && (!im->brush->trueColor)) { for (i = 0; (i < gdImageColorsTotal (brush)); i++) { int index; index = gdImageColorResolveAlpha (im, gdImageRed (brush, i), ...
4,027
137,753
0
HeadlessWebContentsImpl* HeadlessWebContentsImpl::From( HeadlessBrowser* browser, content::WebContents* contents) { return HeadlessWebContentsImpl::From( browser->GetWebContentsForDevToolsAgentHostId( content::DevToolsAgentHost::GetOrCreateFor(contents)->GetId())); }
4,028
181,897
1
int mif_validate(jas_stream_t *in) { uchar buf[MIF_MAGICLEN]; uint_fast32_t magic; int i; int n; assert(JAS_STREAM_MAXPUTBACK >= MIF_MAGICLEN); /* Read the validation data (i.e., the data used for detecting the format). */ if ((n = jas_stream_read(in, buf, MIF_MAGICLEN)) < 0) { return -1; } /* Put the validation da...
4,029
21,833
0
register_address_increment(struct x86_emulate_ctxt *ctxt, unsigned long *reg, int inc) { if (ctxt->ad_bytes == sizeof(unsigned long)) *reg += inc; else *reg = (*reg & ~ad_mask(ctxt)) | ((*reg + inc) & ad_mask(ctxt)); }
4,030
117,037
0
BaseSessionService::BaseSessionService(SessionType type, Profile* profile, const FilePath& path) : profile_(profile), path_(path), ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)), pending_reset_(false), command...
4,031
85,400
0
static struct sit_entry_set *grab_sit_entry_set(void) { struct sit_entry_set *ses = f2fs_kmem_cache_alloc(sit_entry_set_slab, GFP_NOFS); ses->entry_cnt = 0; INIT_LIST_HEAD(&ses->set_list); return ses; }
4,032
183,385
1
static void prefetch_dec(void) { prefetch_table((const void *)&dec_tables, sizeof(dec_tables)); }
4,033
173,496
0
OMX_ERRORTYPE omx_vdec::set_buffer_req(vdec_allocatorproperty *buffer_prop) { OMX_ERRORTYPE eRet = OMX_ErrorNone; unsigned buf_size = 0; struct v4l2_format fmt; struct v4l2_requestbuffers bufreq; int ret; DEBUG_PRINT_LOW("SetBufReq IN: ActCnt(%d) Size(%u)", buffer_prop->actualcount, (unsigned in...
4,034
18,817
0
struct cipso_v4_doi *cipso_v4_doi_getdef(u32 doi) { struct cipso_v4_doi *doi_def; rcu_read_lock(); doi_def = cipso_v4_doi_search(doi); if (doi_def == NULL) goto doi_getdef_return; if (!atomic_inc_not_zero(&doi_def->refcount)) doi_def = NULL; doi_getdef_return: rcu_read_unlock(); return doi_def; }
4,035
118,730
0
String HTMLDocument::dir() { HTMLElement* b = body(); if (!b) return String(); return b->getAttribute(dirAttr); }
4,036
105,177
0
ElementShadow* ShadowRoot::owner() const { if (host()) return host()->shadow(); return 0; }
4,037
35,570
0
static bool emulator_io_port_access_allowed(struct x86_emulate_ctxt *ctxt, u16 port, u16 len) { const struct x86_emulate_ops *ops = ctxt->ops; struct desc_struct tr_seg; u32 base3; int r; u16 tr, io_bitmap_ptr, perm, bit_idx = port & 0x7; unsigned mask = (1 << len) - 1; unsigned long base; ops->get_se...
4,038
120,301
0
void FolderHeaderView::OnPaint(gfx::Canvas* canvas) { views::View::OnPaint(canvas); gfx::Rect rect(GetContentsBounds()); if (rect.IsEmpty() || !folder_name_visible_) return; rect.set_x((rect.width() - kBottomSeparatorWidth) / 2 + rect.x()); rect.set_y(rect.y() + rect.height() - kBottomSeparatorHeight); ...
4,039
102,833
0
void OutdatedPluginInfoBarDelegate::InfoBarDismissed() { UserMetrics::RecordAction( UserMetricsAction("OutdatedPluginInfobar.Dismissed")); }
4,040
125,220
0
void RenderMessageFilter::OnOpenChannelToPpapiBroker(int routing_id, int request_id, const FilePath& path) { plugin_service_->OpenChannelToPpapiBroker( render_process_id_, path, new OpenChannelT...
4,041
34,708
0
static int br_nf_dev_queue_xmit(struct sk_buff *skb) { return br_dev_queue_push_xmit(skb); }
4,042
163,754
0
void DelegatedFrameHost::BeginFrameSubscription( std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) { frame_subscriber_ = std::move(subscriber); }
4,043
110,694
0
bool TextureManager::ValidForTarget( GLenum target, GLint level, GLsizei width, GLsizei height, GLsizei depth) { GLsizei max_size = MaxSizeForTarget(target); return level >= 0 && width >= 0 && height >= 0 && depth >= 0 && level < MaxLevelsForTarget(target) && width <...
4,044
141,648
0
V8Console::CommandLineAPIScope::CommandLineAPIScope(v8::Local<v8::Context> context, v8::Local<v8::Object> commandLineAPI, v8::Local<v8::Object> global) : m_context(context) , m_commandLineAPI(commandLineAPI) , m_global(global) , m_installedMethods(v8::Set::New(context->GetIsolate())) , m_cleanup(fal...
4,045
132,902
0
void RenderWidgetHostViewAura::AcceleratedSurfaceSuspend() { }
4,046
39,280
0
int security_load_policy(void *data, size_t len) { struct policydb *oldpolicydb, *newpolicydb; struct sidtab oldsidtab, newsidtab; struct selinux_mapping *oldmap, *map = NULL; struct convert_context_args args; u32 seqno; u16 map_size; int rc = 0; struct policy_file file = { data, len }, *fp = &file; oldpolicy...
4,047
11,737
0
linux_lvm2_lv_stop_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *st...
4,048
169,459
0
void NetworkChangeNotifierMac::Forwarder::Init() { net_config_watcher_->SetInitialConnectionType(); }
4,049
12,798
0
SSL_SESSION *SSL_get1_session(SSL *ssl) /* variant of SSL_get_session: caller really gets something */ { SSL_SESSION *sess; /* * Need to lock this all up rather than just use CRYPTO_add so that * somebody doesn't free ssl->session between when we check it's non-null * and when we up the reference...
4,050
130,688
0
static void conditionalAttr3AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAttr3", "TestObject", info.Holder(), info.GetIsolate()); TestObject* imp = V8TestObject::toNative(info.Holder()); V...
4,051
2,105
0
static void red_channel_client_on_output(void *opaque, int n) { RedChannelClient *rcc = opaque; stat_inc_counter(rcc->channel->out_bytes_counter, n); }
4,052
147,984
0
static void UnsignedLongLongAttributeAttributeSetter( v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Isolate* isolate = info.GetIsolate(); ALLOW_UNUSED_LOCAL(isolate); v8::Local<v8::Object> holder = info.Holder(); ALLOW_UNUSED_LOCAL(holder); TestObject* impl = V8Te...
4,053
64,751
0
static int dns_packet_read_type_window(DnsPacket *p, Bitmap **types, size_t *start) { uint8_t window; uint8_t length; const uint8_t *bitmap; uint8_t bit = 0; unsigned i; bool found = false; _cleanup_(rewind_dns_packet) DnsPacketRewinder rewinder; int r; ...
4,054
72,284
0
get_hostkey_public_by_type(int type, int nid, struct ssh *ssh) { return get_hostkey_by_type(type, nid, 0, ssh); }
4,055
14,125
0
findVisual (ScreenPtr pScreen, VisualID vid) { VisualPtr pVisual; int v; for (v = 0; v < pScreen->numVisuals; v++) { pVisual = pScreen->visuals + v; if (pVisual->vid == vid) return pVisual; } return 0; }
4,056
148,937
0
static int Reinsert( Rtree *pRtree, RtreeNode *pNode, RtreeCell *pCell, int iHeight ){ int *aOrder; int *aSpare; RtreeCell *aCell; RtreeDValue *aDistance; int nCell; RtreeDValue aCenterCoord[RTREE_MAX_DIMENSIONS]; int iDim; int ii; int rc = SQLITE_OK; int n; memset(aCenterCoord, 0, siz...
4,057
97,296
0
static void ignorableWhitespaceHandler(void*, const xmlChar*, int) { }
4,058
38,886
0
dist_ps(PG_FUNCTION_ARGS) { Point *pt = PG_GETARG_POINT_P(0); LSEG *lseg = PG_GETARG_LSEG_P(1); PG_RETURN_FLOAT8(dist_ps_internal(pt, lseg)); }
4,059
84,354
0
static TEMPO ConvertTempo(uint16 ciaSpeed) { return TEMPO((125.0 * 3546.0) / ciaSpeed); }
4,060
73,572
0
static size_t PSDPackbitsEncodeImage(Image *image,const size_t length, const unsigned char *pixels,unsigned char *compact_pixels, ExceptionInfo *exception) { int count; register ssize_t i, j; register unsigned char *q; unsigned char *packbits; /* Compress pixels with Packbits e...
4,061
6,156
0
int tls12_get_sigid(const EVP_PKEY *pk) { return tls12_find_id(pk->type, tls12_sig, sizeof(tls12_sig) / sizeof(tls12_lookup)); }
4,062
50,866
0
set_date_time_null(unsigned char *p) { memset(p, '0', 16); p[16] = 0; }
4,063
28,622
0
int qeth_realloc_buffer_pool(struct qeth_card *card, int bufcnt) { QETH_CARD_TEXT(card, 2, "realcbp"); if ((card->state != CARD_STATE_DOWN) && (card->state != CARD_STATE_RECOVER)) return -EPERM; /* TODO: steel/add buffers from/to a running card's buffer pool (?) */ qeth_clear_working_pool_list(card); qeth...
4,064
30,958
0
static void ptrace_unfreeze_traced(struct task_struct *task) { if (task->state != __TASK_TRACED) return; WARN_ON(!task->ptrace || task->parent != current); spin_lock_irq(&task->sighand->siglock); if (__fatal_signal_pending(task)) wake_up_state(task, __TASK_TRACED); else task->state = TASK_TRACED; spin_unl...
4,065
176,565
0
xmlCreateIOParserCtxt(xmlSAXHandlerPtr sax, void *user_data, xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, xmlCharEncoding enc) { xmlParserCtxtPtr ctxt; xmlParserInputPtr inputStream; xmlParserInputBufferPtr buf; if (ioread == NULL) return(NULL); buf = xmlParserInputBu...
4,066
136,966
0
void HTMLInputElement::SetNonDirtyValue(const String& new_value) { setValue(new_value); has_dirty_value_ = false; }
4,067
8,031
0
static void vnc_listen_regular_read(void *opaque) { vnc_listen_read(opaque, false); }
4,068
10,374
0
user_local_get_uid (User *user) { return user->uid; }
4,069
81,601
0
static int regex_match_glob(char *str, struct regex *r, int len __maybe_unused) { if (glob_match(r->pattern, str)) return 1; return 0; }
4,070
174,171
0
status_t OMX::updateGraphicBufferInMeta( node_id node, OMX_U32 port_index, const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer) { return findInstance(node)->updateGraphicBufferInMeta( port_index, graphicBuffer, buffer); }
4,071
186,502
1
error::Error GLES2DecoderPassthroughImpl::DoEndQueryEXT(GLenum target, uint32_t submit_count) { if (IsEmulatedQueryTarget(target)) { auto active_query_iter = active_queries_.find(target); if (active_query_iter == active_queries_.end()) { InsertErro...
4,072
46,161
0
long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode) { struct open_flags op; int fd = build_open_flags(flags, mode, &op); struct filename *tmp; if (fd) return fd; tmp = getname(filename); if (IS_ERR(tmp)) return PTR_ERR(tmp); fd = get_unused_fd_flags(flags); if (fd >= 0) { st...
4,073
1,143
0
GfxPattern::~GfxPattern() { }
4,074
73,830
0
static size_t parse_mb_loc(unsigned *wc, const char *ptr, const char *end) { wchar_t wchar; size_t consumed = 0; #if defined(HAVE_MBRTOWC) mbstate_t ps; memset(&ps, 0, sizeof(ps)); consumed = mbrtowc(&wchar, ptr, end - ptr, &ps); #elif defined(HAVE_MBTOWC) consumed = mbtowc(&wchar, ptr, end - ptr); #endif if (...
4,075
55,205
0
static void powermate_pulse_led(struct powermate_device *pm, int static_brightness, int pulse_speed, int pulse_table, int pulse_asleep, int pulse_awake) { unsigned long flags; if (pulse_speed < 0) pulse_speed = 0; if (pulse_table < 0) pulse_table = 0; if (pulse_speed > 510) pulse_speed = 510; if (pulse_...
4,076
7,292
0
hook_fd_set (fd_set *read_fds, fd_set *write_fds, fd_set *exception_fds) { struct t_hook *ptr_hook; int max_fd; max_fd = 0; for (ptr_hook = weechat_hooks[HOOK_TYPE_FD]; ptr_hook; ptr_hook = ptr_hook->next_hook) { if (!ptr_hook->deleted) { /* skip invalid file de...
4,077
137,217
0
int Textfield::GetTextInputFlags() const { return text_input_flags_; }
4,078
152,379
0
void RenderFrameImpl::Initialize() { is_main_frame_ = !frame_->Parent(); GetLocalRootRenderWidget()->RegisterRenderFrame(this); RenderFrameImpl* parent_frame = RenderFrameImpl::FromWebFrame(frame_->Parent()); if (parent_frame) { previews_state_ = parent_frame->GetPreviewsState(); effective_conne...
4,079
40,602
0
static void __packet_set_status(struct packet_sock *po, void *frame, int status) { union tpacket_uhdr h; h.raw = frame; switch (po->tp_version) { case TPACKET_V1: h.h1->tp_status = status; flush_dcache_page(pgv_to_page(&h.h1->tp_status)); break; case TPACKET_V2: h.h2->tp_status = status; flush_dcache_pa...
4,080
112,466
0
void Document::fullScreenRendererDestroyed() { m_fullScreenRenderer = 0; if (page()) page()->chrome()->client()->fullScreenRendererChanged(0); }
4,081
48,398
0
tsize_t t2p_write_pdf_xobject_stream_filter(ttile_t tile, T2P* t2p, TIFF* output){ tsize_t written=0; char buffer[32]; int buflen=0; if(t2p->pdf_compression==T2P_COMPRESS_NONE){ return(written); } written += t2pWriteFile(output, (tdata_t) "/Filter ", 8); switch(t2p->pdf_compression){ #ifdef CCITT_SUPPORT c...
4,082
101,434
0
virtual void TearDown() { session_.reset(); context_.reset(); }
4,083
102,349
0
string16 PolicyStatusInfo::GetSourceTypeString( PolicySourceType source_type) { static const char* strings[] = { "user", "device", "undefined" }; DCHECK(static_cast<size_t>(source_type) < arraysize(strings)); return ASCIIToUTF16(strings[source_type]); }
4,084
26,020
0
static struct perf_callchain_entry *perf_callchain(struct pt_regs *regs) { int rctx; struct perf_callchain_entry *entry; entry = get_callchain_entry(&rctx); if (rctx == -1) return NULL; if (!entry) goto exit_put; entry->nr = 0; if (!user_mode(regs)) { perf_callchain_store(entry, PERF_CONTEXT_KERNEL); ...
4,085
152,732
0
virtual std::unique_ptr<HistogramBase> HeapAlloc(const BucketRanges* ranges) { return WrapUnique(new Histogram(name_, minimum_, maximum_, ranges)); }
4,086
46,298
0
ext4_file_write_iter(struct kiocb *iocb, struct iov_iter *from) { struct file *file = iocb->ki_filp; struct inode *inode = file_inode(iocb->ki_filp); struct mutex *aio_mutex = NULL; struct blk_plug plug; int o_direct = file->f_flags & O_DIRECT; int overwrite = 0; size_t length = iov_iter_count(from); ssize_t re...
4,087
159,891
0
void TopSitesImpl::OnNavigationCommitted(const GURL& url) { DCHECK(thread_checker_.CalledOnValidThread()); if (!loaded_) return; if (can_add_url_to_history_.Run(url)) ScheduleUpdateTimer(); }
4,088
161,232
0
void DevToolsSession::SetBrowserOnly(bool browser_only) { browser_only_ = browser_only; dispatcher_->setFallThroughForNotFound(!browser_only); }
4,089
164,609
0
std::tuple<scoped_refptr<IndexedDBDatabase>, Status> IndexedDBDatabase::Create( const base::string16& name, scoped_refptr<IndexedDBBackingStore> backing_store, scoped_refptr<IndexedDBFactory> factory, std::unique_ptr<IndexedDBMetadataCoding> metadata_coding, const Identifier& unique_identifier, ...
4,090
164,722
0
WebInputElement GetInputElementById(const WebString& id) { return GetMainFrame() ->GetDocument() .GetElementById(id) .To<WebInputElement>(); }
4,091
100,506
0
Cache::LRUList* Cache::lruListFor(CachedResource* resource) { unsigned accessCount = max(resource->accessCount(), 1U); unsigned queueIndex = fastLog2(resource->size() / accessCount); #ifndef NDEBUG resource->m_lruIndex = queueIndex; #endif if (m_allResources.size() <= queueIndex) m_allResources....
4,092
162,707
0
static inline CanvasImageSource* ToImageSourceInternal( const CanvasImageSourceUnion& value, ExceptionState& exception_state) { if (value.IsCSSImageValue()) { if (RuntimeEnabledFeatures::CSSPaintAPIEnabled()) return value.GetAsCSSImageValue(); exception_state.ThrowTypeError("CSSImageValue is not...
4,093
143,215
0
bool Document::isSecureContext(String& errorMessage, const SecureContextCheck privilegeContextCheck) const { if (isSecureContextImpl(privilegeContextCheck)) return true; errorMessage = SecurityOrigin::isPotentiallyTrustworthyErrorMessage(); return false; }
4,094
161,183
0
MediaStreamType video_type() const { return video_type_; }
4,095
133,953
0
void AppListSyncableService::AddOrUpdateFromSyncItem(AppListItem* app_item) { if (app_item->id() == kOemFolderId) return; SyncItem* sync_item = FindSyncItem(app_item->id()); if (sync_item) { UpdateAppItemFromSyncItem(sync_item, app_item); return; } CreateSyncItemFromAppItem(app_item); }
4,096
73,983
0
parity_next (int parity) { switch(parity) { case P_NONE: parity = P_EVEN; break; case P_EVEN: parity = P_ODD; break; case P_ODD: parity = P_NONE; break; default: parity = P_NONE; break; } return parity; }
4,097
18,340
0
create_window () { GtkWidget* window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size (GTK_WINDOW (window), 800, 600); gtk_widget_set_name (window, "Uzbl browser"); g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy_cb), NULL); g_signal_connect (...
4,098
6,979
0
tt_cmap6_get_info( TT_CMap cmap, TT_CMapInfo *cmap_info ) { FT_Byte* p = cmap->data + 4; cmap_info->format = 6; cmap_info->language = (FT_ULong)TT_PEEK_USHORT( p ); return FT_Err_Ok; }
4,099