unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
35,569
0
void emulator_invalidate_register_cache(struct x86_emulate_ctxt *ctxt) { invalidate_registers(ctxt); }
18,500
88,966
0
MagickExport Image *ForwardFourierTransformImage(const Image *image, const MagickBooleanType modulus,ExceptionInfo *exception) { Image *fourier_image; fourier_image=NewImageList(); #if !defined(MAGICKCORE_FFTW_DELEGATE) (void) modulus; (void) ThrowMagickException(exception,GetMagickModule(), MissingD...
18,501
168,405
0
int TestBrowserWindow::GetRenderViewHeightInsetWithDetachedBookmarkBar() { return 0; }
18,502
80,064
0
GF_Err dmed_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_DMEDBox *ptr = (GF_DMEDBox *)s; if (ptr == NULL) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_u64(bs, ptr->nbBytes); return GF_OK; }
18,503
6,335
0
static char* guess_timezone(const timelib_tzdb *tzdb TSRMLS_DC) { /* Checking configure timezone */ if (DATEG(timezone) && (strlen(DATEG(timezone))) > 0) { return DATEG(timezone); } /* Check config setting for default timezone */ if (!DATEG(default_timezone)) { /* Special case: ext/date wasn't initialized yet ...
18,504
55,344
0
static void atl2_setup_mac_ctrl(struct atl2_adapter *adapter) { u32 value; struct atl2_hw *hw = &adapter->hw; struct net_device *netdev = adapter->netdev; /* Config MAC CTRL Register */ value = MAC_CTRL_TX_EN | MAC_CTRL_RX_EN | MAC_CTRL_MACLP_CLK_PHY; /* duplex */ if (FULL_DUPLEX == adapter->link_duplex) val...
18,505
166,499
0
void ChromeContentBrowserClient::AppendExtraCommandLineSwitches( base::CommandLine* command_line, int child_process_id) { #if defined(OS_MACOSX) std::unique_ptr<metrics::ClientInfo> client_info = GoogleUpdateSettings::LoadMetricsClientInfo(); if (client_info) { command_line->AppendSwitchASCII(swit...
18,506
118,285
0
void AutofillDialogViews::OnWidgetClosing(views::Widget* widget) { observer_.Remove(widget); if (error_bubble_ && error_bubble_->GetWidget() == widget) error_bubble_ = NULL; }
18,507
56,676
0
void *ext4_kvzalloc(size_t size, gfp_t flags) { void *ret; ret = kzalloc(size, flags | __GFP_NOWARN); if (!ret) ret = __vmalloc(size, flags | __GFP_ZERO, PAGE_KERNEL); return ret; }
18,508
89,552
0
static int SWFInput_file_read(SWFInput input, unsigned char *buffer, int count) { int len = fread(buffer, 1, count, (FILE *)input->data); input->offset += len; return len; }
18,509
63,227
0
void _WM_do_control_channel_hold(struct _mdi *mdi, struct _event_data *data) { struct _note *note_data = mdi->note; uint8_t ch = data->channel; MIDI_EVENT_DEBUG(__FUNCTION__,ch, data->data.value); if (data->data.value > 63) { mdi->channel[ch].hold = 1; } else { mdi->channel[ch].hold...
18,510
149,479
0
void ContentSecurityPolicy::setOverrideURLForSelf(const KURL& url) { RefPtr<SecurityOrigin> origin = SecurityOrigin::create(url); m_selfProtocol = origin->protocol(); m_selfSource = new CSPSource(this, m_selfProtocol, origin->host(), origin->port(), String(), CSPSource::NoWildcard, CSPSo...
18,511
165,699
0
std::wstring UTF8ToUTF16(const std::string& source) { if (source.empty() || static_cast<int>(source.size()) > std::numeric_limits<int>::max()) { return std::wstring(); } int size = ::MultiByteToWideChar(CP_UTF8, 0, &source[0], static_cast<int>(source.size()), nullptr, ...
18,512
35,781
0
void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) { /* Address WBINVD may be executed by guest */ if (need_emulate_wbinvd(vcpu)) { if (kvm_x86_ops->has_wbinvd_exit()) cpumask_set_cpu(cpu, vcpu->arch.wbinvd_dirty_mask); else if (vcpu->cpu != -1 && vcpu->cpu != cpu) smp_call_function_single(vcpu->cpu, ...
18,513
162,893
0
void ProfilingService::OnStart() { ref_factory_.reset(new service_manager::ServiceContextRefFactory(base::Bind( &ProfilingService::MaybeRequestQuitDelayed, base::Unretained(this)))); registry_.AddInterface( base::Bind(&ProfilingService::OnProfilingServiceRequest, base::Unretained(this),...
18,514
40,661
0
static void prb_thaw_queue(struct tpacket_kbdq_core *pkc) { pkc->reset_pending_on_curr_blk = 0; }
18,515
103,840
0
void RenderView::OnSwapOut(const ViewMsg_SwapOut_Params& params) { if (is_swapped_out_) return; SyncNavigationState(); webview()->dispatchUnloadEvent(); SetSwappedOut(true); webview()->mainFrame()->loadHTMLString(std::string(), GURL("about:swappedout"), ...
18,516
148,925
0
RenderFrameHostManager::~RenderFrameHostManager() { if (pending_render_frame_host_) UnsetPendingRenderFrameHost(); if (speculative_render_frame_host_) UnsetSpeculativeRenderFrameHost(); ResetProxyHosts(); SetRenderFrameHost(std::unique_ptr<RenderFrameHostImpl>()); }
18,517
167,787
0
void WebRuntimeFeatures::EnableWebBluetooth(bool enable) { RuntimeEnabledFeatures::SetWebBluetoothEnabled(enable); }
18,518
101,794
0
void Browser::SaveWindowPlacement(const gfx::Rect& bounds, ui::WindowShowState show_state) { SessionService* session_service = SessionServiceFactory::GetForProfileIfExisting(profile()); if (session_service) session_service->SetWindowBounds(session_id_, bounds, show_state)...
18,519
45,535
0
static void authenc_esn_geniv_ahash_update_done(struct crypto_async_request *areq, int err) { struct aead_request *req = areq->data; struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); struct crypto_authenc_esn_ctx *ctx = crypto_aead_ctx(authenc_esn); struct authenc_esn_request_ctx *areq_ctx = aead_req...
18,520
9,981
0
void TIFF_MetaHandler::UpdateFile ( bool doSafeUpdate ) { XMP_Assert ( ! doSafeUpdate ); // This should only be called for "unsafe" updates. XMP_IO* destRef = this->parent->ioRef; XMP_AbortProc abortProc = this->parent->abortProc; void * abortArg = this->parent->abortArg; XMP_Int64 oldPacketOffset...
18,521
149,421
0
bool ContentSecurityPolicy::allowStyleFromSource( const KURL& url, const String& nonce, RedirectStatus redirectStatus, SecurityViolationReportingPolicy reportingPolicy) const { if (shouldBypassContentSecurityPolicy(url, SchemeRegistry::PolicyAreaStyle)) return true; return isAllowedByAll<&CSPDir...
18,522
138,291
0
void AXObjectCacheImpl::updateCacheAfterNodeIsAttached(Node* node) { get(node); if (node->isElementNode()) updateTreeIfElementIdIsAriaOwned(toElement(node)); }
18,523
121,597
0
static inline void foldQuoteMarksAndSoftHyphens(UChar* data, size_t length) { for (size_t i = 0; i < length; ++i) data[i] = foldQuoteMarkOrSoftHyphen(data[i]); }
18,524
95,665
0
static float CL_DemoFrameDurationSDev( void ) { int i; int numFrames; float mean = 0.0f; float variance = 0.0f; if( ( clc.timeDemoFrames - 1 ) > MAX_TIMEDEMO_DURATIONS ) numFrames = MAX_TIMEDEMO_DURATIONS; else numFrames = clc.timeDemoFrames - 1; for( i = 0; i < numFrames; i++ ) mean += clc.timeDemoDurat...
18,525
36,097
0
isofs_hash_ms(const struct dentry *dentry, struct qstr *qstr) { return isofs_hash_common(qstr, 1); }
18,526
1,378
0
XcursorFileLoadImages (FILE *file, int size) { XcursorFile f; if (!file) return NULL; _XcursorStdioFileInitialize (file, &f); return XcursorXcFileLoadImages (&f, size); }
18,527
28,405
0
static int fib6_dump_done(struct netlink_callback *cb) { fib6_dump_end(cb); return cb->done ? cb->done(cb) : 0; }
18,528
107,261
0
void PopulateProxyConfig(const DictionaryValue& dict, net::ProxyConfig* pc) { DCHECK(pc); bool no_proxy = false; if (dict.GetBoolean(automation::kJSONProxyNoProxy, &no_proxy)) { return; } bool auto_config; if (dict.GetBoolean(automation::kJSONProxyAutoconfig, &auto_config)) { pc->s...
18,529
116,083
0
void SyncManager::DoneRefreshNigori(const base::Closure& done_callback, bool is_ready) { if (is_ready) data_->RefreshEncryption(); done_callback.Run(); }
18,530
32,555
0
static void tg3_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) { struct tg3 *tp = netdev_priv(dev); strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver)); strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version)); strlcpy(info->fw_version, tp->fw_ver, sizeof(info->fw_version)); s...
18,531
126,567
0
void TabStripGtk::SchedulePaint() { gtk_widget_queue_draw(tabstrip_.get()); }
18,532
80,360
0
GF_Err rtp_hnti_Size(GF_Box *s) { GF_RTPBox *ptr = (GF_RTPBox *)s; ptr->size += 4 + strlen(ptr->sdpText); return GF_OK; }
18,533
42,997
0
static void virtnet_free_queues(struct virtnet_info *vi) { int i; for (i = 0; i < vi->max_queue_pairs; i++) { napi_hash_del(&vi->rq[i].napi); netif_napi_del(&vi->rq[i].napi); } kfree(vi->rq); kfree(vi->sq); }
18,534
123,752
0
MemoryMappedFile::MemoryMappedFile() : file_(base::kInvalidPlatformFileValue), data_(NULL), length_(0) { }
18,535
90,728
0
static void emit(JF, int value) { emitraw(J, F, F->lastline); emitraw(J, F, value); }
18,536
45,041
0
static int task_switch_16(struct x86_emulate_ctxt *ctxt, u16 tss_selector, u16 old_tss_sel, ulong old_tss_base, struct desc_struct *new_desc) { const struct x86_emulate_ops *ops = ctxt->ops; struct tss_segment_16 tss_seg; int ret; u32 new_tss_base = get_desc_base(new_desc); ret = ops->read_std(ctxt, old...
18,537
184,032
1
EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionSupplementalMethod2(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSTestInterface::s_info)) return throwVMTypeError(exec); JSTestInterface* castedThis = jsCast<JSTestInterface*>(asObject(thisValue)); ASSERT_GC_OBJECT_I...
18,538
77,558
0
ofputil_encode_bundle_ctrl_request(enum ofp_version ofp_version, struct ofputil_bundle_ctrl_msg *bc) { struct ofpbuf *request; struct ofp14_bundle_ctrl_msg *m; switch (ofp_version) { case OFP10_VERSION: case OFP11_VERSION: case OFP12_VERSION: ovs_fatal...
18,539
1,298
0
SplashError Splash::xorFill(SplashPath *path, GBool eo) { SplashPipe pipe; SplashXPath *xPath; SplashXPathScanner *scanner; int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y; SplashClipResult clipRes, clipRes2; SplashBlendFunc origBlendFunc; if (path->length == 0) { return splashErrEmptyPath; } xPath = n...
18,540
134,780
0
void EventConverterEvdevImpl::ReleaseMouseButtons() { base::TimeDelta timestamp = ui::EventTimeForNow(); for (int code = BTN_MOUSE; code < BTN_JOYSTICK; ++code) OnButtonChange(code, false /* down */, timestamp); }
18,541
143,242
0
MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& request, const LayoutPoint& documentPoint, const PlatformMouseEvent& event) { DCHECK(!layoutView() || layoutView()->isLayoutView()); if (!layoutView() || !view() || !view()->didFirstLayout()) return MouseEventWithHitTestResu...
18,542
44,847
0
static int uv__process_init_stdio(uv_stdio_container_t* container, int fds[2]) { int mask; int fd; mask = UV_IGNORE | UV_CREATE_PIPE | UV_INHERIT_FD | UV_INHERIT_STREAM; switch (container->flags & mask) { case UV_IGNORE: return 0; case UV_CREATE_PIPE: assert(container->data.stream != NULL); i...
18,543
166,413
0
void GLClearFramebufferTest::SetDrawColor(GLfloat r, GLfloat g, GLfloat b, GLfloat a) { glUniform4f(color_handle_, r, g, b, a); }
18,544
30,728
0
static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags) { DECLARE_WAITQUEUE(wait, current); struct sock *sk = sock->sk, *nsk; long timeo; int err = 0; lock_sock_nested(sk, SINGLE_DEPTH_NESTING); if (sk->sk_type != SOCK_STREAM) { err = -EINVAL; goto done; } timeo = sock_rcvti...
18,545
92,264
0
XML_ParserFree(XML_Parser parser) { TAG *tagList; OPEN_INTERNAL_ENTITY *entityList; if (parser == NULL) return; /* free m_tagStack and m_freeTagList */ tagList = parser->m_tagStack; for (;;) { TAG *p; if (tagList == NULL) { if (parser->m_freeTagList == NULL) break; tagList = ...
18,546
155,082
0
const std::string& SendTabToSelfEntry::GetGUID() const { return guid_; }
18,547
160,564
0
RenderWidgetFullscreenPepper* RenderFrameImpl::CreatePepperFullscreenContainer( PepperPluginInstanceImpl* plugin) { GURL active_url; if (render_view()->webview()) active_url = render_view()->GetURLForGraphicsContext3D(); mojom::WidgetPtr widget_channel; mojom::WidgetRequest widget_channel_request = ...
18,548
127,599
0
bool GetWindowManagerName(std::string* wm_name) { DCHECK(wm_name); int wm_window = 0; if (!GetIntProperty(GetX11RootWindow(), "_NET_SUPPORTING_WM_CHECK", &wm_window)) { return false; } gdk_error_trap_push(); int wm_window_property = 0; bool result = GetInt...
18,549
161,030
0
WebWindowFeatures GetWindowFeaturesFromString(const String& feature_string) { WebWindowFeatures window_features; if (feature_string.IsEmpty()) return window_features; window_features.menu_bar_visible = false; window_features.status_bar_visible = false; window_features.tool_bar_visible = false; window_...
18,550
136,521
0
void PaintController::EnsureRasterInvalidationTracking() { if (!raster_invalidation_tracking_info_) { raster_invalidation_tracking_info_ = std::make_unique<RasterInvalidationTrackingInfo>(); } }
18,551
44,357
0
static bool rt_cache_route(struct fib_nh *nh, struct rtable *rt) { struct rtable *orig, *prev, **p; bool ret = true; if (rt_is_input_route(rt)) { p = (struct rtable **)&nh->nh_rth_input; } else { p = (struct rtable **)raw_cpu_ptr(nh->nh_pcpu_rth_output); } orig = *p; prev = cmpxchg(p, orig, rt); if (prev ...
18,552
144,759
0
void LocalSiteCharacteristicsWebContentsObserver::OnLoadingStateChange( content::WebContents* contents, LoadingState old_loading_state, LoadingState new_loading_state) { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); if (web_contents() != contents) return; if (!writer_) return; if (ne...
18,553
55,602
0
static void sched_domains_numa_masks_set(unsigned int cpu) { int node = cpu_to_node(cpu); int i, j; for (i = 0; i < sched_domains_numa_levels; i++) { for (j = 0; j < nr_node_ids; j++) { if (node_distance(j, node) <= sched_domains_numa_distance[i]) cpumask_set_cpu(cpu, sched_domains_numa_masks[i][j]); } ...
18,554
178,650
1
static int php_stream_temp_cast(php_stream *stream, int castas, void **ret TSRMLS_DC) { php_stream_temp_data *ts = (php_stream_temp_data*)stream->abstract; php_stream *file; size_t memsize; char *membuf; off_t pos; assert(ts != NULL); if (!ts->innerstream) { return FAILURE; } if (php_stream_is(ts->innerstr...
18,555
79,167
0
mspack_create_kwaj_decompressor(struct mspack_system *sys) { struct mskwaj_decompressor_p *self = NULL; if (!sys) sys = mspack_default_system; if (!mspack_valid_system(sys)) return NULL; if ((self = (struct mskwaj_decompressor_p *) sys->alloc(sys, sizeof(struct mskwaj_decompressor_p)))) { self->base.o...
18,556
100,280
0
static NetworkRoamingState ParseRoamingState( const std::string& roaming_state) { if (roaming_state == kRoamingStateHome) return ROAMING_STATE_HOME; if (roaming_state == kRoamingStateRoaming) return ROAMING_STATE_ROAMING; if (roaming_state == kRoamingStateUnknown) return ROAMING_STATE_UNKNOWN; ...
18,557
145,758
0
ModuleSystem::~ModuleSystem() { }
18,558
31,573
0
sctp_disposition_t sctp_sf_cookie_wait_abort(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) { struct sctp_chunk *chunk = arg; unsigned int len; __be16 error = SCTP_ERROR...
18,559
126,064
0
void BrowserOpenedNotificationObserver::set_for_browser_command( bool for_browser_command) { for_browser_command_ = for_browser_command; }
18,560
166,249
0
explicit TestBrowserClient(MediaObserver* media_observer) : media_observer_(media_observer) {}
18,561
1,838
0
static void migrate_timeout(void *opaque) { spice_info(NULL); spice_assert(reds->mig_wait_connect || reds->mig_wait_disconnect); if (reds->mig_wait_connect) { /* we will fall back to the switch host scheme when migration completes */ main_channel_migrate_cancel_wait(reds->main_channel); ...
18,562
69,361
0
WORK_STATE ossl_statem_client_post_process_message(SSL *s, WORK_STATE wst) { OSSL_STATEM *st = &s->statem; switch (st->hand_state) { case TLS_ST_CR_CERT_REQ: return tls_prepare_client_certificate(s, wst); #ifndef OPENSSL_NO_SCTP case TLS_ST_CR_SRVR_DONE: /* We only get here if we are u...
18,563
44,164
0
unsigned long iov_iter_alignment(const struct iov_iter *i) { const struct iovec *iov = i->iov; unsigned long res; size_t size = i->count; size_t n; if (!size) return 0; res = (unsigned long)iov->iov_base + i->iov_offset; n = iov->iov_len - i->iov_offset; if (n >= size) return res | size; size -= n; res ...
18,564
65,442
0
find_blocked_lock(struct nfs4_lockowner *lo, struct knfsd_fh *fh, struct nfsd_net *nn) { struct nfsd4_blocked_lock *cur, *found = NULL; spin_lock(&nn->blocked_locks_lock); list_for_each_entry(cur, &lo->lo_blocked, nbl_list) { if (fh_match(fh, &cur->nbl_fh)) { list_del_init(&cur->nbl_list); list_del_init(...
18,565
80,976
0
static bool nested_cr4_valid(struct kvm_vcpu *vcpu, unsigned long val) { u64 fixed0 = to_vmx(vcpu)->nested.msrs.cr4_fixed0; u64 fixed1 = to_vmx(vcpu)->nested.msrs.cr4_fixed1; return fixed_bits_valid(val, fixed0, fixed1); }
18,566
104,496
0
GLvoid StubGLVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* ptr) { glVertexAttribPointer(indx, size, type, normalized, stride, ptr); }
18,567
160,211
0
void PDFiumEngine::KillFormFocus() { FORM_ForceToKillFocus(form_); SetInFormTextArea(false); }
18,568
3,815
0
_dbus_send_credentials_socket (int handle, DBusError *error) { /* FIXME: for the session bus credentials shouldn't matter (?), but * for the system bus they are presumably essential. A rough outline * of a way to implement the credential transfer would be this: * * client wai...
18,569
36,075
0
void __init postgresql_init(void) { dissect_add("postgresql", APP_LAYER_TCP, 5432, dissector_postgresql); }
18,570
183,907
1
static void webkit_web_view_update_settings(WebKitWebView* webView) { WebKitWebViewPrivate* priv = webView->priv; WebKitWebSettings* webSettings = priv->webSettings.get(); Settings* settings = core(webView)->settings(); gchar* defaultEncoding, *cursiveFontFamily, *defaultFontFamily, *fantasyFontFamily, *monospaceFontF...
18,571
141,290
0
void Document::UpdateTitle(const String& title) { if (raw_title_ == title) return; raw_title_ = title; String old_title = title_; if (raw_title_.IsEmpty()) title_ = String(); else if (raw_title_.Is8Bit()) title_ = CanonicalizedTitle<LChar>(this, raw_title_); else title_ = CanonicalizedTitl...
18,572
115,711
0
void ScreenRecorder::DoStart() { DCHECK_EQ(capture_loop_, MessageLoop::current()); if (is_recording_) { NOTREACHED() << "Record session already started."; return; } is_recording_ = true; DoCapture(); }
18,573
148,024
0
void V8TestObject::VoidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg"); test_object_v8_internal::VoidMethodArr...
18,574
185,338
1
FrameView::FrameView(LocalFrame* frame) : m_frame(frame) , m_canHaveScrollbars(true) , m_slowRepaintObjectCount(0) , m_hasPendingLayout(false) , m_layoutSubtreeRoot(0) , m_inSynchronousPostLayout(false) , m_postLayoutTasksTimer(this, &FrameView::postLayoutTimerFired) , m_updateWidgetsTim...
18,575
42,779
0
static int vmx_vcpu_setup(struct vcpu_vmx *vmx) { #ifdef CONFIG_X86_64 unsigned long a; #endif int i; /* I/O */ vmcs_write64(IO_BITMAP_A, __pa(vmx_io_bitmap_a)); vmcs_write64(IO_BITMAP_B, __pa(vmx_io_bitmap_b)); if (enable_shadow_vmcs) { vmcs_write64(VMREAD_BITMAP, __pa(vmx_vmread_bitmap)); vmcs_write64(VMW...
18,576
67,456
0
mountpoint_last(struct nameidata *nd) { int error = 0; struct dentry *dir = nd->path.dentry; struct path path; /* If we're in rcuwalk, drop out of it to handle last component */ if (nd->flags & LOOKUP_RCU) { if (unlazy_walk(nd)) return -ECHILD; } nd->flags &= ~LOOKUP_PARENT; if (unlikely(nd->last_type !...
18,577
104,037
0
bool GLES2DecoderImpl::DoIsTexture(GLuint client_id) { const TextureManager::TextureInfo* info = GetTextureInfo(client_id); return info && info->IsValid(); }
18,578
29,673
0
static struct pstore *get_info(struct dm_exception_store *store) { return (struct pstore *) store->context; }
18,579
123,722
0
void MemoryMappedFile::CloseHandles() { base::ThreadRestrictions::AssertIOAllowed(); if (data_ != NULL) munmap(data_, length_); if (file_ != base::kInvalidPlatformFileValue) ignore_result(HANDLE_EINTR(close(file_))); data_ = NULL; length_ = 0; file_ = base::kInvalidPlatformFileValue; }
18,580
116,583
0
explicit TestAudioRendererImpl(media::AudioRendererSink* sink) : AudioRendererImpl(sink) { }
18,581
126,087
0
ExtensionReadyNotificationObserver::~ExtensionReadyNotificationObserver() { }
18,582
123,054
0
void RenderWidgetHostImpl::SetActive(bool active) { Send(new ViewMsg_SetActive(routing_id_, active)); }
18,583
123,609
0
void InspectorPageAgent::didPaint(RenderObject*, const GraphicsLayer*, GraphicsContext* context, const LayoutRect& rect) { if (!m_enabled || m_client->overridesShowPaintRects() || !m_state->getBoolean(PageAgentState::pageAgentShowPaintRects)) return; static int colorSelector = 0; const Color colors...
18,584
116,335
0
QList<QUrl> QQuickWebViewExperimental::userScripts() const { Q_D(const QQuickWebView); return d->userScripts; }
18,585
85,511
0
void ocfs2_unlock_and_free_pages(struct page **pages, int num_pages) { int i; for(i = 0; i < num_pages; i++) { if (pages[i]) { unlock_page(pages[i]); mark_page_accessed(pages[i]); put_page(pages[i]); } } }
18,586
159,963
0
void DiskCacheBackendTest::BackendDoomMidEnumeration() { InitCache(); const int kNumEntries = 100; std::set<std::string> keys; for (int i = 0; i < kNumEntries; i++) { std::string key = GenerateKey(true); keys.insert(key); disk_cache::Entry* entry; ASSERT_THAT(CreateEntry(key, &entry), IsOk()); ...
18,587
142,372
0
void AddAllUsers() { for (size_t i = 0; i < base::size(kTestAccounts); ++i) { if (i == PRIMARY_ACCOUNT_INDEX) continue; AddUser(kTestAccounts[i], i >= SECONDARY_ACCOUNT_INDEX_START); } }
18,588
46,658
0
static int ctr_aes_crypt(struct blkcipher_desc *desc, long func, struct s390_aes_ctx *sctx, struct blkcipher_walk *walk) { int ret = blkcipher_walk_virt_block(desc, walk, AES_BLOCK_SIZE); unsigned int n, nbytes; u8 buf[AES_BLOCK_SIZE], ctrbuf[AES_BLOCK_SIZE]; u8 *out, *in, *ctrptr = ctrbuf; if (!walk->nbytes)...
18,589
134,975
0
void FakeCrosDisksClient::NotifyRenameCompleted( RenameError error_code, const std::string& device_path) { for (auto& observer : observer_list_) observer.OnRenameCompleted(error_code, device_path); }
18,590
75,915
0
usage(const char *prog) { fprintf(stderr, "Usage: %s [OPTION...]\n", prog); fprintf(stderr, " -f, --use-file=FILE Use the specified configuration file\n"); #if defined _WITH_VRRP_ && defined _WITH_LVS_ fprintf(stderr, " -P, --vrrp Only run with VRRP subsystem\n"); fprintf(stderr, " -C,...
18,591
14,879
0
SPL_METHOD(SplPriorityQueue, insert) { zval *data, *priority, *elem; spl_heap_object *intern; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &data, &priority) == FAILURE) { return; } intern = (spl_heap_object*)zend_object_store_get_object(getThis() TSRMLS_CC); if (intern->heap->flags & SPL_HEAP_C...
18,592
155,768
0
void HistoryController::CreateNewBackForwardItem( RenderFrameImpl* target_frame, const WebHistoryItem& new_item, bool clone_children_of_target) { if (!current_entry_) { current_entry_.reset(new HistoryEntry(new_item)); } else { current_entry_.reset(current_entry_->CloneAndReplace( new_it...
18,593
62,194
0
INT_PTR CALLBACK ListCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { LRESULT loc; int i, dh, r = -1; static LRESULT disabled[9] = { HTLEFT, HTRIGHT, HTTOP, HTBOTTOM, HTSIZE, HTTOPLEFT, HTTOPRIGHT, HTBOTTOMLEFT, HTBOTTOMRIGHT }; static HBRUSH background_brush, separator_brush; NONCLIENTMETRICS ...
18,594
41,398
0
static void kvm_vcpu_ioctl_x86_get_vcpu_events(struct kvm_vcpu *vcpu, struct kvm_vcpu_events *events) { events->exception.injected = vcpu->arch.exception.pending && !kvm_exception_is_soft(vcpu->arch.exception.nr); events->exception.nr = vcpu->arch.exception.nr; events->exception.has_error_code = vcpu...
18,595
134,599
0
void OSExchangeData::SetHtml(const base::string16& html, const GURL& base_url) { provider_->SetHtml(html, base_url); }
18,596
130,522
0
OutOfOrderIndexContext(DisplayItems::iterator begin) : nextItemToIndex(begin) { }
18,597
6,451
0
static MenuCache* menu_cache_new( const char* cache_file ) { MenuCache* cache; cache = g_slice_new0( MenuCache ); cache->cache_file = g_strdup( cache_file ); cache->n_ref = 1; return cache; }
18,598
17,078
0
qreal OxideQQuickWebView::contentX() const { Q_D(const OxideQQuickWebView); if (!d->proxy_) { return 0.f; } return const_cast<OxideQQuickWebViewPrivate*>( d)->proxy_->compositorFrameScrollOffset().x(); }
18,599