unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
62,639
0
MagickExport MagickBooleanType ModulateImage(Image *image,const char *modulate, ExceptionInfo *exception) { #define ModulateImageTag "Modulate/Image" CacheView *image_view; ColorspaceType colorspace; const char *artifact; double percent_brightness, percent_hue, percent_saturation;...
14,500
156,895
0
void DocumentLoader::CancelLoadAfterCSPDenied( const ResourceResponse& response) { probe::didReceiveResourceResponse(frame_->GetDocument(), MainResourceIdentifier(), this, response, GetResource()); SetWasBlockedAfterCSP(); ClearResource...
14,501
164,644
0
void IndexedDBDatabase::ProcessRequestQueue() { if (processing_pending_requests_) return; DCHECK(!active_request_); DCHECK(!pending_requests_.empty()); base::AutoReset<bool> processing(&processing_pending_requests_, true); do { active_request_ = std::move(pending_requests_.front()); pending_requ...
14,502
133,163
0
void HWNDMessageHandler::SetAlwaysOnTop(bool on_top) { ::SetWindowPos(hwnd(), on_top ? HWND_TOPMOST : HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); }
14,503
93,954
0
xfs_init_bio_from_bh( struct bio *bio, struct buffer_head *bh) { bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); bio->bi_bdev = bh->b_bdev; }
14,504
132,440
0
void UsbDeviceImpl::Opened(PlatformUsbDeviceHandle platform_handle, const OpenCallback& callback) { DCHECK(thread_checker_.CalledOnValidThread()); scoped_refptr<UsbDeviceHandleImpl> device_handle = new UsbDeviceHandleImpl( context_, this, platform_handle, blocking_task_runner_); h...
14,505
110,436
0
bool GLES2DecoderImpl::ClearLevel( unsigned service_id, unsigned bind_target, unsigned target, int level, unsigned format, unsigned type, int width, int height, bool is_texture_immutable) { uint32 channels = GLES2Util::GetChannelsForFormat(format); if (IsAngle() && (channels & GL...
14,506
110,466
0
void GLES2DecoderImpl::DoCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei image_size, const void * data) { TextureManager::TextureInfo* info = GetTextureInfoForTarget(target); if (!info) { SetGLError(GL_INV...
14,507
1,393
0
_XcursorFindBestSize (XcursorFileHeader *fileHeader, XcursorDim size, int *nsizesp) { unsigned int n; int nsizes = 0; XcursorDim bestSize = 0; XcursorDim thisSize; if (!fileHeader || !nsizesp) return 0; for (n = 0; n < fileHeader->ntoc; n++) { if (fileHeader->toc...
14,508
102,186
0
void SyncManager::SetPassphrase(const std::string& passphrase, bool is_explicit) { data_->SetPassphrase(passphrase, is_explicit); }
14,509
152,528
0
void RenderFrameImpl::SetRenderFrameMediaPlaybackOptions( const RenderFrameMediaPlaybackOptions& opts) { renderer_media_playback_options_ = opts; }
14,510
67,909
0
int jas_stream_display(jas_stream_t *stream, FILE *fp, int n) { unsigned char buf[16]; int i; int j; int m; int c; int display; int cnt; cnt = n - (n % 16); display = 1; for (i = 0; i < n; i += 16) { if (n > 16 && i > 0) { display = (i >= cnt) ? 1 : 0; } if (display) { fprintf(fp, "%08x:", i)...
14,511
172,984
0
int writepng_encode_image(mainprog_info *mainprog_ptr) { png_structp png_ptr = (png_structp)mainprog_ptr->png_ptr; png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; /* as always, setjmp() must be called in every function that calls a * PNG-writing libpng function */ if (setjmp(mainprog_ptr->jmpb...
14,512
1,068
0
void GfxSeparationColorSpace::getRGB(GfxColor *color, GfxRGB *rgb) { double x; double c[gfxColorMaxComps]; GfxColor color2; int i; x = colToDbl(color->c[0]); func->transform(&x, c); for (i = 0; i < alt->getNComps(); ++i) { color2.c[i] = dblToCol(c[i]); } alt->getRGB(&color2, rgb); }
14,513
7,076
0
t42_parse_font_matrix( T42_Face face, T42_Loader loader ) { T42_Parser parser = &loader->parser; FT_Matrix* matrix = &face->type1.font_matrix; FT_Vector* offset = &face->type1.font_offset; FT_Face root = (FT_Face)&face->root; FT_Fixed temp[6]; FT_Fixe...
14,514
50,324
0
ext2_get_acl(struct inode *inode, int type) { int name_index; char *value = NULL; struct posix_acl *acl; int retval; switch (type) { case ACL_TYPE_ACCESS: name_index = EXT2_XATTR_INDEX_POSIX_ACL_ACCESS; break; case ACL_TYPE_DEFAULT: name_index = EXT2_XATTR_INDEX_POSIX_ACL_DEFAULT; break; default: BUG...
14,515
99,573
0
void SBEntry::SetFullHashAt(int index, const SBFullHash& full_hash) { DCHECK(!IsPrefix()); if (IsAdd()) add_full_hashes_[index] = full_hash; else sub_full_hashes_[index].prefix = full_hash; }
14,516
142,548
0
bool ShelfWidget::GetHitTestRects(aura::Window* target, gfx::Rect* hit_test_rect_mouse, gfx::Rect* hit_test_rect_touch) { DCHECK(login_shelf_view_->visible()); gfx::Rect login_view_button_bounds = login_shelf_view_->get_button_union_bounds();...
14,517
171,120
0
int update_camera_metadata_entry(camera_metadata_t *dst, size_t index, const void *data, size_t data_count, camera_metadata_entry_t *updated_entry) { if (dst == NULL) return ERROR; if (index >= dst->entry_count) return ERROR; camera_metadata_buffer_entry_t *entry = get_entries(dst) + index; size_t data_bytes ...
14,518
66,125
0
void inet_csk_reqsk_queue_hash_add(struct sock *sk, struct request_sock *req, unsigned long timeout) { reqsk_queue_hash_req(req, timeout); inet_csk_reqsk_queue_added(sk); }
14,519
89,729
0
static void nfc_llcp_socket_purge(struct nfc_llcp_sock *sock) { struct nfc_llcp_local *local = sock->local; struct sk_buff *s, *tmp; pr_debug("%p\n", &sock->sk); skb_queue_purge(&sock->tx_queue); skb_queue_purge(&sock->tx_pending_queue); if (local == NULL) return; /* Search for local pending SKBs that are ...
14,520
174,302
0
void NuPlayer::NuPlayerStreamListener::start() { for (size_t i = 0; i < kNumBuffers; ++i) { mSource->onBufferAvailable(i); } }
14,521
79,995
0
GF_Box *bloc_New() { ISOM_DECL_BOX_ALLOC(GF_BaseLocationBox, GF_ISOM_BOX_TYPE_TRIK); return (GF_Box *)tmp; }
14,522
118,719
0
Element* HTMLDocument::activeElement() { if (Element* element = treeScope().adjustedFocusedElement()) return element; return body(); }
14,523
89,548
0
static void SWFInput_dtor_close(SWFInput input) { fclose((FILE *)input->data); SWFInput_dtor(input); }
14,524
85,655
0
SYSCALL_DEFINE3(mlock2, unsigned long, start, size_t, len, int, flags) { vm_flags_t vm_flags = VM_LOCKED; if (flags & ~MLOCK_ONFAULT) return -EINVAL; if (flags & MLOCK_ONFAULT) vm_flags |= VM_LOCKONFAULT; return do_mlock(start, len, vm_flags); }
14,525
165,432
0
void StoragePartitionImpl::SetURLRequestContext( net::URLRequestContextGetter* url_request_context) { url_request_context_ = url_request_context; }
14,526
69,894
0
connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn, origin_circuit_t *circ, crypt_path_t *cpath) { socks_request_t *socks = conn->socks_request; const or_options_t *options = get_options(); connection_t *base_co...
14,527
12,334
0
SPL_METHOD(Array, offsetUnset) { zval *index; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &index) == FAILURE) { return; } spl_array_unset_dimension_ex(0, getThis(), index TSRMLS_CC); } /* }}} */ /* {{{ proto array ArrayObject::getArrayCopy()
14,528
66,283
0
IW_IMPL(double) iw_parse_number(const char *s) { double result; int charsread; iw_parse_number_internal(s, &result, &charsread); return result; }
14,529
103,237
0
void FFmpegVideoDecodeEngine::TryToFinishPendingFlush() { DCHECK(flush_pending_); if (!pending_input_buffers_ && !pending_output_buffers_) { flush_pending_ = false; event_handler_->OnFlushComplete(); } }
14,530
15,493
0
persistent_available_p (const char *host, int port, bool ssl, bool *host_lookup_failed) { /* First, check whether a persistent connection is active at all. */ if (!pconn_active) return false; /* If we want SSL and the last connection wasn't or vice versa, don't use it. Checking...
14,531
181,198
1
gss_verify_mic_iov(OM_uint32 *minor_status, gss_ctx_id_t context_handle, gss_qop_t *qop_state, gss_iov_buffer_desc *iov, int iov_count) { OM_uint32 status; gss_union_ctx_id_t ctx; gss_mechanism mech; status = val_unwrap_iov_args(minor_status, context_handle, NULL, qop_state, iov, iov_cou...
14,532
22,942
0
static struct rpc_cred *nfs4_get_setclientid_cred(struct nfs_client *clp) { struct nfs4_state_owner *sp; struct rb_node *pos; struct rpc_cred *cred; spin_lock(&clp->cl_lock); cred = nfs4_get_machine_cred_locked(clp); if (cred != NULL) goto out; pos = rb_first(&clp->cl_state_owners); if (pos != NULL) { sp =...
14,533
63,612
0
static zend_bool php_auto_globals_create_files(const char *name, uint name_len TSRMLS_DC) { zval *vars; if (PG(http_globals)[TRACK_VARS_FILES]) { vars = PG(http_globals)[TRACK_VARS_FILES]; } else { ALLOC_ZVAL(vars); array_init(vars); INIT_PZVAL(vars); PG(http_globals)[TRACK_VARS_FILES] = vars; } zend_h...
14,534
42,372
0
static ssize_t bb_store(struct md_rdev *rdev, const char *page, size_t len) { int rv = badblocks_store(&rdev->badblocks, page, len, 0); /* Maybe that ack was all we needed */ if (test_and_clear_bit(BlockedBadBlocks, &rdev->flags)) wake_up(&rdev->blocked_wait); return rv; }
14,535
63,599
0
gsm_xsmp_server_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { GsmXsmpServer *self; self = GSM_XSMP_SERVER (object); switch (prop_id) { case...
14,536
145,557
0
std::vector<uint8_t> GetTestAttestedCredentialDataBytes() { auto test_attested_data = fido_parsing_utils::Materialize(kTestAttestedCredentialDataPrefix); fido_parsing_utils::Append(&test_attested_data, test_data::kTestECPublicKeyCOSE); return test_attested_data; }
14,537
171,617
0
char16_t* utf8_to_utf16_no_null_terminator(const uint8_t* u8str, size_t u8len, char16_t* u16str) { const uint8_t* const u8end = u8str + u8len; const uint8_t* u8cur = u8str; char16_t* u16cur = u16str; while (u8cur < u8end) { size_t u8len = utf8_codepoint_len(*u8cur); uint32_t codepoint = utf8_to_utf32_codepoint(u...
14,538
81,811
0
int string2ull(const char *s, unsigned long long *value) { long long ll; if (string2ll(s,strlen(s),&ll)) { if (ll < 0) return 0; /* Negative values are out of range. */ *value = ll; return 1; } errno = 0; char *endptr = NULL; *value = strtoull(s,&endptr,10); if (errno...
14,539
77,109
0
OVS_EXCLUDED(ofproto_mutex) { const struct ofproto_class *class; struct ofproto *ofproto; int error; int i; *ofprotop = NULL; datapath_type = ofproto_normalize_type(datapath_type); class = ofproto_class_find__(datapath_type); if (!class) { VLOG_WARN("could not create datapa...
14,540
15,351
0
static PHP_RSHUTDOWN_FUNCTION(zlib) { php_zlib_cleanup_ob_gzhandler_mess(TSRMLS_C); ZLIBG(handler_registered) = 0; return SUCCESS; }
14,541
96,583
0
void mbedtls_ecp_point_init( mbedtls_ecp_point *pt ) { if( pt == NULL ) return; mbedtls_mpi_init( &pt->X ); mbedtls_mpi_init( &pt->Y ); mbedtls_mpi_init( &pt->Z ); }
14,542
114,453
0
DXVAVideoDecodeAccelerator::DXVAPictureBuffer::~DXVAPictureBuffer() { if (decoding_surface_) { eglReleaseTexImage( static_cast<EGLDisplay*>(eglGetDisplay(EGL_DEFAULT_DISPLAY)), decoding_surface_, EGL_BACK_BUFFER); eglDestroySurface( static_cast<EGLDisplay*>(eglGetDisplay(EGL_D...
14,543
62,006
0
ikev2_eap_print(netdissect_options *ndo, u_char tpay, const struct isakmp_gen *ext, u_int item_len _U_, const u_char *ep _U_, uint32_t phase _U_, uint32_t doi _U_, uint32_t proto _U_, int depth _U_) { return ikev2_gen_print(ndo, tpay, ext); }
14,544
62,169
0
char* GetSignatureName(const char* path) { static char szSubjectName[128]; char *p = NULL, *mpath = NULL; BOOL r; HMODULE hm; HCERTSTORE hStore = NULL; HCRYPTMSG hMsg = NULL; PCCERT_CONTEXT pCertContext = NULL; DWORD dwSize, dwEncoding, dwContentType, dwFormatType, dwSubjectSize; PCMSG_SIGNER_INFO pSignerInfo ...
14,545
49,758
0
static void arcmsr_hardware_reset(struct AdapterControlBlock *acb) { uint8_t value[64]; int i, count = 0; struct MessageUnit_A __iomem *pmuA = acb->pmuA; struct MessageUnit_C __iomem *pmuC = acb->pmuC; struct MessageUnit_D *pmuD = acb->pmuD; /* backup pci config data */ printk(KERN_NOTICE "arcmsr%d: executing h...
14,546
67,876
0
aiff_write_tailer (SF_PRIVATE *psf) { int k ; /* Reset the current header length to zero. */ psf->header.ptr [0] = 0 ; psf->header.indx = 0 ; psf->dataend = psf_fseek (psf, 0, SEEK_END) ; /* Make sure tailer data starts at even byte offset. Pad if necessary. */ if (psf->dataend % 2 == 1) { psf_fwrite (psf->h...
14,547
89,524
0
SWFShape_setMorphFlag(SWFShape shape) { shape->isMorph = TRUE; }
14,548
103,331
0
void ClipboardMessageFilter::OnWriteObjectsAsync( const ui::Clipboard::ObjectMap& objects) { ui::Clipboard::ObjectMap* long_living_objects = new ui::Clipboard::ObjectMap(objects); long_living_objects->erase(ui::Clipboard::CBF_SMBITMAP); BrowserThread::PostTask( BrowserThread::UI, FROM_HERE...
14,549
103,939
0
void KeyboardOverlayUIHTMLSource::StartDataRequest(const std::string& path, bool is_incognito, int request_id) { DictionaryValue localized_strings; for (size_t i = 0; i < arraysize(kI18nContentToMessage); ++i) { ...
14,550
170,547
0
int LE_process( effect_handle_t self, audio_buffer_t *inBuffer, audio_buffer_t *outBuffer) { LoudnessEnhancerContext * pContext = (LoudnessEnhancerContext *)self; if (pContext == NULL) { return -EINVAL; } if (inBuffer == NULL || inBuffer->raw == NULL || outBuffer == NULL || outBuffer->raw == NULL || ...
14,551
148,539
0
void WebContentsImpl::ReplaceMisspelling(const base::string16& word) { RenderFrameHost* focused_frame = GetFocusedFrame(); if (!focused_frame) return; focused_frame->GetFrameInputHandler()->ReplaceMisspelling(word); }
14,552
154,340
0
void GLES2DecoderImpl::RestoreAllAttributes() const { state_.RestoreVertexAttribs(nullptr); }
14,553
71,885
0
static inline const unsigned char *PushQuantumLongPixel( QuantumInfo *quantum_info,const unsigned char *magick_restrict pixels, unsigned int *quantum) { register ssize_t i; register size_t quantum_bits; *quantum=0UL; for (i=(ssize_t) quantum_info->depth; i > 0; ) { if (quantum_info->state.bi...
14,554
94,961
0
static struct dentry *ext2_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *data) { return mount_bdev(fs_type, flags, dev_name, data, ext2_fill_super); }
14,555
75,342
0
_our_safe_malloc(size_t len, const char *funcname, const int line, const char *file) { u_char *ptr; if ((ptr = malloc(len)) == NULL) { fprintf(stderr, "ERROR in %s:%s() line %d: Unable to malloc() %zu bytes/n", file, funcname, line, len); exit(-1); } /* zero memory */ ...
14,556
24,511
0
ip_connect(struct TCP_Server_Info *server) { __be16 *sport; struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&server->dstaddr; struct sockaddr_in *addr = (struct sockaddr_in *)&server->dstaddr; if (server->dstaddr.ss_family == AF_INET6) sport = &addr6->sin6_port; else sport = &addr->sin_port; if (*sport ...
14,557
169,088
0
void OfflinePageModelImpl::PostClearStorageIfNeededTask(bool delayed) { base::TimeDelta delay = delayed ? kStorageManagerStartingDelay : base::TimeDelta(); base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( FROM_HERE, base::Bind(&OfflinePageModelImpl::ClearStorageIfNeeded, ...
14,558
1,937
0
static void reds_stream_push_channel_event(RedsStream *s, int event) { main_dispatcher_channel_event(event, s->info); }
14,559
49,439
0
static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int buflen) { int error = -EACCES; struct inode *inode = d_inode(dentry); struct path path; /* Are we allowed to snoop on the tasks file descriptors? */ if (!proc_fd_access_allowed(inode)) goto out; error = PROC_I(inode)->op.proc_get_l...
14,560
44,539
0
static void cull_user_controllers(void) { int i, j; for (i = 0; i < nr_subsystems; i++) { if (strncmp(subsystems[i], "name=", 5) != 0) continue; for (j = i; j < nr_subsystems-1; j++) subsystems[j] = subsystems[j+1]; nr_subsystems--; } }
14,561
82,132
0
mrb_notimplement(mrb_state *mrb) { const char *str; mrb_int len; mrb_callinfo *ci = mrb->c->ci; if (ci->mid) { str = mrb_sym2name_len(mrb, ci->mid, &len); mrb_raisef(mrb, E_NOTIMP_ERROR, "%S() function is unimplemented on this machine", mrb_str_new_static(mrb, str, (size_t)len)); } }
14,562
162,294
0
void CommandBufferProxyImpl::SetUpdateVSyncParametersCallback( const UpdateVSyncParametersCallback& callback) { CheckLock(); update_vsync_parameters_completion_callback_ = callback; }
14,563
134,968
0
void FakeCrosDisksClient::EnumerateMountEntries( const EnumerateMountEntriesCallback& callback, const base::Closure& error_callback) { }
14,564
23,449
0
static int nfs4_xdr_dec_statfs(struct rpc_rqst *req, struct xdr_stream *xdr, struct nfs4_statfs_res *res) { struct compound_hdr hdr; int status; status = decode_compound_hdr(xdr, &hdr); if (!status) status = decode_sequence(xdr, &res->seq_res, req); if (!status) status = decode_putfh(xdr); if (!sta...
14,565
153,345
0
void Tab::OnPaint(gfx::Canvas* canvas) { SkPath clip; if (!controller_->ShouldPaintTab(this, canvas->image_scale(), &clip)) return; tab_style()->PaintTab(canvas, clip); }
14,566
152,426
0
void RenderFrameImpl::OnCopyImageAt(int x, int y) { blink::WebFloatRect viewport_position(x, y, 0, 0); GetLocalRootRenderWidget()->ConvertWindowToViewport(&viewport_position); frame_->CopyImageAt(WebPoint(viewport_position.x, viewport_position.y)); }
14,567
6,145
0
static int ssl_scan_clienthello_tlsext(SSL *s, unsigned char **p, unsigned char *d, int n, int *al) { unsigned short type; unsigned short size; unsigned short len; unsigned char *data = *p; int renegotiate_seen = 0; s->servername_done = 0; s->tlsext_st...
14,568
155,800
0
AccountInfo CreateTestAccountInfo(const std::string& name, bool is_hosted_domain, bool is_valid) { AccountInfo account_info; account_info.account_id = name; account_info.gaia = name; account_info.email = name + "@email.com"; account_info.full...
14,569
73,844
0
php_http_url_t *php_http_url_mod(const php_http_url_t *old_url, const php_http_url_t *new_url, unsigned flags TSRMLS_DC) { php_http_url_t *tmp_url = NULL; php_http_buffer_t buf; php_http_buffer_init_ex(&buf, MAX(PHP_HTTP_BUFFER_DEFAULT_SIZE, sizeof(php_http_url_t)<<2), PHP_HTTP_BUFFER_INIT_PREALLOC); php_http_buff...
14,570
144,637
0
void WebContentsImpl::RenderViewDeleted(RenderViewHost* rvh) { FOR_EACH_OBSERVER(WebContentsObserver, observers_, RenderViewDeleted(rvh)); }
14,571
126,171
0
BrowserWindow* CreateBrowserWindow(Browser* browser) { return BrowserWindow::CreateBrowserWindow(browser); }
14,572
152,884
0
PassRefPtr<Uint8Array> ImageBitmap::copyBitmapData(AlphaDisposition alphaOp, DataColorFormat format) { SkImageInfo info = SkImageInfo::Make( width(), height(), (format == RGBAColorType) ? kRGBA_8888_SkColorType : kN32_SkColorType, (alphaOp == Premul...
14,573
95,706
0
void CL_RefTagFree( void ) { Z_FreeTags( TAG_RENDERER ); return; }
14,574
162,319
0
bool MojoJpegDecodeAccelerator::IsSupported() { return true; }
14,575
143,752
0
explicit PackagedAppTest(const std::string& toolchain) : toolchain_(toolchain) { }
14,576
154,185
0
void GLES2DecoderImpl::GetTexParameterImpl( GLenum target, GLenum pname, GLfloat* fparams, GLint* iparams, const char* function_name) { TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget( &state_, target); if (!texture_ref) { LOCAL_SET_GL_ERROR( GL_INVALID_OPERATION, func...
14,577
28,119
0
void ff_avg_rv40_qpel8_mc33_c(uint8_t *dst, uint8_t *src, ptrdiff_t stride) { avg_pixels8_xy2_8_c(dst, src, stride, 8); }
14,578
67,225
0
brcmf_cfg80211_escan(struct wiphy *wiphy, struct brcmf_cfg80211_vif *vif, struct cfg80211_scan_request *request, struct cfg80211_ssid *this_ssid) { struct brcmf_if *ifp = vif->ifp; struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); struct cfg80211_ssid *ssids; u32 passive_scan; bool escan_req; b...
14,579
127,107
0
void AudioRendererAlgorithm::IncreaseQueueCapacity() { audio_buffer_.set_forward_capacity( std::min(2 * audio_buffer_.forward_capacity(), kMaxBufferSizeInBytes)); }
14,580
91,421
0
static int check_stack_boundary(struct bpf_verifier_env *env, int regno, int access_size, bool zero_size_allowed, struct bpf_call_arg_meta *meta) { struct bpf_reg_state *reg = reg_state(env, regno); struct bpf_func_state *state = func(env, reg); int off, i, slot, spi; if (reg->type != PTR_TO_STACK) { /* ...
14,581
140,157
0
void CaptivePortalDetector::OnURLFetchComplete(const net::URLFetcher* source) { DCHECK(CalledOnValidThread()); DCHECK(FetchingURL()); DCHECK_EQ(url_fetcher_.get(), source); DCHECK(!detection_callback_.is_null()); Results results; GetCaptivePortalResultFromResponse(url_fetcher_.get(), &results); Detection...
14,582
25,097
0
static struct rtable *__mkroute_output(const struct fib_result *res, const struct flowi4 *fl4, __be32 orig_daddr, __be32 orig_saddr, int orig_oif, struct net_device *dev_out, unsigned int flags) { struct fib_info *fi = res->fi; u32 tos = RT_FL_TOS(fl4); struct in_device *i...
14,583
123,863
0
SSLStatus RenderViewImpl::GetSSLStatusOfFrame(WebKit::WebFrame* frame) const { SSLStatus ssl_status; DocumentState* doc_state = DocumentState::FromDataSource(frame->dataSource()); if (doc_state && !doc_state->security_info().empty()) { DeserializeSecurityInfo(doc_state->security_info(), ...
14,584
112,801
0
~PrintPreviewRequestIdMapWithLock() {}
14,585
7,139
0
cf2_glyphpath_hintPoint( CF2_GlyphPath glyphpath, CF2_HintMap hintmap, FT_Vector* ppt, CF2_Fixed x, CF2_Fixed y ) { FT_Vector pt; /* hinted point in upright DS */ pt.x = FT_MulF...
14,586
74,277
0
char *modestr(char *str, int mode) { int i; strcpy(str, "----------"); for(i = 0; table[i].mask != 0; i++) { if((mode & table[i].mask) == table[i].value) str[table[i].position] = table[i].mode; } return str; }
14,587
39,258
0
static u16 map_class(u16 pol_value) { u16 i; for (i = 1; i < current_mapping_size; i++) { if (current_mapping[i].value == pol_value) return i; } return SECCLASS_NULL; }
14,588
55
0
static void pcre_handle_exec_error(int pcre_code TSRMLS_DC) /* {{{ */ { int preg_code = 0; switch (pcre_code) { case PCRE_ERROR_MATCHLIMIT: preg_code = PHP_PCRE_BACKTRACK_LIMIT_ERROR; break; case PCRE_ERROR_RECURSIONLIMIT: preg_code = PHP_PCRE_RECURSION_LIMIT_ERROR; break; case PCRE_ERROR_BADUTF8...
14,589
19,092
0
void udp_lib_rehash(struct sock *sk, u16 newhash) { if (sk_hashed(sk)) { struct udp_table *udptable = sk->sk_prot->h.udp_table; struct udp_hslot *hslot, *hslot2, *nhslot2; hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); nhslot2 = udp_hashslot2(udptable, newhash); udp_sk(sk)->udp_portaddr_ha...
14,590
153,910
0
bool GLES2DecoderImpl::ClearUnclearedTextures() { if (!texture_manager()->HaveUnsafeTextures()) { return true; } if (state_.current_program.get()) { const Program::SamplerIndices& sampler_indices = state_.current_program->sampler_indices(); for (size_t ii = 0; ii < sampler_indices.size(); ++i...
14,591
152,517
0
void RenderFrameImpl::SendUpdateState() { if (current_history_item_.IsNull()) return; Send(new FrameHostMsg_UpdateState( routing_id_, SingleHistoryItemToPageState(current_history_item_))); }
14,592
25,073
0
void inet_bind_bucket_destroy(struct kmem_cache *cachep, struct inet_bind_bucket *tb) { if (hlist_empty(&tb->owners)) { __hlist_del(&tb->node); release_net(ib_net(tb)); kmem_cache_free(cachep, tb); } }
14,593
79,099
0
hostbased_key_allowed(struct passwd *pw, const char *cuser, char *chost, struct sshkey *key) { struct ssh *ssh = active_state; /* XXX */ const char *resolvedname, *ipaddr, *lookup, *reason; HostStatus host_status; int len; char *fp; if (auth_key_is_revoked(key)) return 0; resolvedname = auth_get_canonica...
14,594
57,517
0
struct buffer_head *ext4_getblk(handle_t *handle, struct inode *inode, ext4_lblk_t block, int create, int *errp) { struct buffer_head dummy; int fatal = 0, err; int flags = 0; J_ASSERT(handle != NULL || create == 0); dummy.b_state = 0; dummy.b_blocknr = -1000; buffer_trace_init(&dummy.b_history); if (crea...
14,595
185,262
1
void WtsSessionProcessDelegate::Core::KillProcess(DWORD exit_code) { DCHECK(main_task_runner_->BelongsToCurrentThread()); channel_.reset(); if (launch_elevated_) { if (job_.IsValid()) { TerminateJobObject(job_, exit_code); } } else { if (worker_process_.IsValid()) { TerminatePro...
14,596
169,566
0
void CastStreamingNativeHandler::CallCreateCallback( scoped_ptr<CastRtpStream> stream1, scoped_ptr<CastRtpStream> stream2, scoped_ptr<CastUdpTransport> udp_transport) { v8::Isolate* isolate = context()->isolate(); v8::HandleScope handle_scope(isolate); v8::Context::Scope context_scope(context()->v8_co...
14,597
39,337
0
static int disk_change(int drive) { int fdc = FDC(drive); if (time_before(jiffies, UDRS->select_date + UDP->select_delay)) DPRINT("WARNING disk change called early\n"); if (!(FDCS->dor & (0x10 << UNIT(drive))) || (FDCS->dor & 3) != UNIT(drive) || fdc != FDC(drive)) { DPRINT("probing disk change on unselect...
14,598
155,572
0
base::string16 AuthenticatorBlePairingBeginSheetModel::GetStepDescription() const { return l10n_util::GetStringUTF16(IDS_WEBAUTHN_BLE_PAIRING_BEGIN_DESCRIPTION); }
14,599