unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
43,330
0
void CLASS olympus_load_raw() { ushort huff[4096]; int row, col, nbits, sign, low, high, i, c, w, n, nw; int acarry[2][3], *carry, pred, diff; huff[n=0] = 0xc0c; for (i=12; i--; ) FORC(2048 >> i) huff[++n] = (i+1) << 8 | i; fseek (ifp, 7, SEEK_CUR); getbits(-1); for (row=0; row < height; row++) { ...
2,500
122,263
0
void HTMLFormControlElement::dispatchFormControlInputEvent() { setChangedSinceLastFormControlChangeEvent(true); HTMLElement::dispatchInputEvent(); }
2,501
156,716
0
SitePerProcessEmbedderCSPEnforcementBrowserTest() {}
2,502
41,499
0
static int dn_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) { struct sock *sk = sock->sk; struct dn_scp *scp = DN_SK(sk); size_t mss; struct sk_buff_head *queue = &scp->data_xmit_queue; int flags = msg->msg_flags; int err = 0; size_t sent = 0; int addr_len = msg->msg_namelen; DECLARE_SOCKADDR(s...
2,503
106,926
0
int RenderBox::scrollLeft() const { return hasOverflowClip() ? layer()->scrollXOffset() : 0; }
2,504
123,563
0
FilePath::StringType StripOrdinalNumber( const FilePath::StringType& pure_file_name) { FilePath::StringType::size_type r_paren_index = pure_file_name.rfind(FILE_PATH_LITERAL(')')); FilePath::StringType::size_type l_paren_index = pure_file_name.rfind(FILE_PATH_LITERAL('(')); if (l_paren_index >= r_...
2,505
92,810
0
void PrintWorldInfo(GF_Terminal *term) { u32 i; const char *title; GF_List *descs; descs = gf_list_new(); title = gf_term_get_world_info(term, NULL, descs); if (!title && !gf_list_count(descs)) { fprintf(stderr, "No World Info available\n"); } else { fprintf(stderr, "\t%s\n", title ? title : "No title availa...
2,506
72,801
0
int jas_stream_write(jas_stream_t *stream, const void *buf, int cnt) { int n; const char *bufptr; JAS_DBGLOG(100, ("jas_stream_write(%p, %p, %d)\n", stream, buf, cnt)); if (cnt < 0) { jas_deprecated("negative count for jas_stream_write"); } bufptr = buf; n = 0; while (n < cnt) { if (jas_stream_putc(stre...
2,507
78,853
0
int sc_mutex_unlock(const sc_context_t *ctx, void *mutex) { if (ctx == NULL) return SC_ERROR_INVALID_ARGUMENTS; if (ctx->thread_ctx != NULL && ctx->thread_ctx->unlock_mutex != NULL) return ctx->thread_ctx->unlock_mutex(mutex); else return SC_SUCCESS; }
2,508
174,732
0
static int lib_init() { pthread_once(&once, init_once); ALOGV("%s Called ", __func__); return init_status; }
2,509
100,392
0
bool BrowserRenderProcessHost::Send(IPC::Message* msg) { if (!channel_.get()) { delete msg; return false; } return channel_->Send(msg); }
2,510
144,670
0
void WebContentsImpl::SetDelegate(WebContentsDelegate* delegate) { if (delegate == delegate_) return; if (delegate_) delegate_->Detach(this); delegate_ = delegate; if (delegate_) { delegate_->Attach(this); if (view_) view_->SetOverscrollControllerEnabled(CanOverscrollContent()); } }
2,511
71,857
0
static MagickBooleanType CheckMemoryOverflow(const size_t count, const size_t quantum) { size_t size; size=count*quantum; if ((count == 0) || (quantum != (size/count))) { errno=ENOMEM; return(MagickTrue); } return(MagickFalse); }
2,512
40,744
0
static int unix_shutdown(struct socket *sock, int mode) { struct sock *sk = sock->sk; struct sock *other; if (mode < SHUT_RD || mode > SHUT_RDWR) return -EINVAL; /* This maps: * SHUT_RD (0) -> RCV_SHUTDOWN (1) * SHUT_WR (1) -> SEND_SHUTDOWN (2) * SHUT_RDWR (2) -> SHUTDOWN_MASK (3) */ ++mode; unix...
2,513
95,558
0
static void S_AL_StartSound( vec3_t origin, int entnum, int entchannel, sfxHandle_t sfx ) { vec3_t sorigin; srcHandle_t src; src_t *curSource; if(origin) { if(S_AL_CheckInput(0, sfx)) return; VectorCopy(origin, sorigin); } else { if(S_AL_CheckInput(entnum, sfx)) return; if(S_AL_HearingThrough...
2,514
26,505
0
static int pmcraid_reset_bringup(struct pmcraid_instance *pinstance) { pmcraid_notify_ioastate(pinstance, PMC_DEVICE_EVENT_RESET_START); return pmcraid_reset_reload(pinstance, SHUTDOWN_NONE, IOA_STATE_OPERATIONAL); }
2,515
103,865
0
WebMediaPlayer* RenderView::createMediaPlayer( WebFrame* frame, WebMediaPlayerClient* client) { FOR_EACH_OBSERVER( RenderViewObserver, observers_, WillCreateMediaPlayer(frame, client)); scoped_ptr<media::MessageLoopFactory> message_loop_factory( new media::MessageLoopFactoryImpl()); scoped_ptr<me...
2,516
153,057
0
bool InitializeSDK() { SetUpV8(); FPDF_LIBRARY_CONFIG config; config.version = 2; config.m_pUserFontPaths = nullptr; config.m_pIsolate = v8::Isolate::GetCurrent(); config.m_v8EmbedderSlot = gin::kEmbedderPDFium; FPDF_InitLibraryWithConfig(&config); #if defined(OS_LINUX) FPDF_SetSystemFontInfo(&g_font_...
2,517
106,792
0
void WebPage::platformInitialize() { m_page->settings()->setFontRenderingMode(AlternateRenderingMode); }
2,518
52,202
0
static inline int numeric_entity_is_allowed(unsigned uni_cp, int document_type) { /* less restrictive than unicode_cp_is_allowed */ switch (document_type) { case ENT_HTML_DOC_HTML401: /* all non-SGML characters (those marked with UNUSED in DESCSET) should be * representable with numeric entities */ return uni...
2,519
69,935
0
void addReplyBulkLongLong(client *c, long long ll) { char buf[64]; int len; len = ll2string(buf,64,ll); addReplyBulkCBuffer(c,buf,len); }
2,520
146,878
0
Range* Document::caretRangeFromPoint(int x, int y) { if (GetLayoutViewItem().IsNull()) return nullptr; HitTestResult result = HitTestInDocument(this, x, y); PositionWithAffinity position_with_affinity = result.GetPosition(); if (position_with_affinity.IsNull()) return nullptr; Position range_complia...
2,521
89,061
0
void __ptrace_unlink(struct task_struct *child) { const struct cred *old_cred; BUG_ON(!child->ptrace); clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); child->parent = child->real_parent; list_del_init(&child->ptrace_entry); old_cred = child->ptracer_cred; child->ptracer_cred = NULL; put_cred(old_cred); spi...
2,522
2,815
0
gx_device_retain(gx_device *dev, bool retained) { int delta = (int)retained - (int)dev->retained; if (delta) { dev->retained = retained; /* do first in case dev is freed */ rc_adjust_only(dev, delta, "gx_device_retain"); } }
2,523
186,239
1
void ResourceDispatcherHostImpl::BeginRequest( int request_id, const ResourceHostMsg_Request& request_data, IPC::Message* sync_result, // only valid for sync int route_id) { int process_type = filter_->process_type(); int child_id = filter_->child_id(); if (IsBrowserSideNavigationEnabled() &...
2,524
83,236
0
static int ptrace_signal(int signr, siginfo_t *info) { /* * We do not check sig_kernel_stop(signr) but set this marker * unconditionally because we do not know whether debugger will * change signr. This flag has no meaning unless we are going * to stop after return from ptrace_stop(). In this case it will * ...
2,525
112,209
0
explicit TestWindow(bool modal) : modal_(modal) {}
2,526
48,828
0
static void list_netdevice(struct net_device *dev) { struct net *net = dev_net(dev); ASSERT_RTNL(); write_lock_bh(&dev_base_lock); list_add_tail_rcu(&dev->dev_list, &net->dev_base_head); hlist_add_head_rcu(&dev->name_hlist, dev_name_hash(net, dev->name)); hlist_add_head_rcu(&dev->index_hlist, dev_index_ha...
2,527
183,634
1
xmlParseTryOrFinish(xmlParserCtxtPtr ctxt, int terminate) { int ret = 0; int avail, tlen; xmlChar cur, next; const xmlChar *lastlt, *lastgt; if (ctxt->input == NULL) return(0); #ifdef DEBUG_PUSH switch (ctxt->instate) { case XML_PARSER_EOF: xmlGenericError(xmlGenericErrorContext, "PP: try EOF\n"); break; case XML_PAR...
2,528
60,260
0
__releases(key_serial_lock) { spin_unlock(&key_serial_lock); }
2,529
50,480
0
static int perf_event_idx_default(struct perf_event *event) { return 0; }
2,530
89,964
0
get_ms_san(hx509_context context, hx509_cert cert, char **upn) { hx509_octet_string_list list; int ret; *upn = NULL; ret = hx509_cert_find_subjectAltName_otherName(context, cert, &asn1_oid_id_pkinit_ms_san, &list); if (ret) return 0; if (list.len > 0 && list.val[0]...
2,531
22,975
0
static int decode_access(struct xdr_stream *xdr, struct nfs4_accessres *access) { __be32 *p; uint32_t supp, acc; int status; status = decode_op_hdr(xdr, OP_ACCESS); if (status) return status; READ_BUF(8); READ32(supp); READ32(acc); access->supported = supp; access->access = acc; return 0; }
2,532
105,690
0
TypedUrlModelAssociator::TypedUrlModelAssociator( ProfileSyncService* sync_service, history::HistoryBackend* history_backend) : sync_service_(sync_service), history_backend_(history_backend), typed_url_node_id_(sync_api::kInvalidId), expected_loop_(MessageLoop::current()) { DCHECK(sync_s...
2,533
148,497
0
void WebContentsImpl::OnPepperPluginHung(RenderFrameHostImpl* source, int plugin_child_id, const base::FilePath& path, bool is_hung) { UMA_HISTOGRAM_COUNTS("Pepper.PluginHung", 1); for (auto& ...
2,534
118,065
0
OneClickSigninHelper::Offer OneClickSigninHelper::CanOfferOnIOThread( net::URLRequest* request, ProfileIOData* io_data) { return CanOfferOnIOThreadImpl(request->url(), request->referrer(), request, io_data); }
2,535
77,202
0
OVS_REQUIRES(ofproto_mutex) { struct eviction_group *evg; *rulep = NULL; if (!table->eviction) { return false; } /* In the common case, the outer and inner loops here will each be entered * exactly once: * * - The inner loop normally "return"s in its first iteration. ...
2,536
97,616
0
xmlXPathCompRelationalExpr(xmlXPathParserContextPtr ctxt) { xmlXPathCompAdditiveExpr(ctxt); CHECK_ERROR; SKIP_BLANKS; while ((CUR == '<') || (CUR == '>') || ((CUR == '<') && (NXT(1) == '=')) || ((CUR == '>') && (NXT(1) == '='))) { int inf, strict; int op1 = ctxt->comp-...
2,537
159,193
0
void DownloadItemImpl::SetHashState( std::unique_ptr<crypto::SecureHash> hash_state) { hash_state_ = std::move(hash_state); if (!hash_state_) { destination_info_.hash.clear(); return; } std::unique_ptr<crypto::SecureHash> clone_of_hash_state(hash_state_->Clone()); std::vector<char> hash_value(clo...
2,538
120,393
0
int touch_cancelled_count() const { return touch_cancelled_count_; }
2,539
110,628
0
void GLES2DecoderImpl::RestoreStateForAttrib(GLuint attrib) { const VertexAttribManager::VertexAttribInfo* info = vertex_attrib_manager_->GetVertexAttribInfo(attrib); const void* ptr = reinterpret_cast<const void*>(info->offset()); BufferManager::BufferInfo* buffer_info = info->buffer(); glBindBuffer(GL_A...
2,540
164,185
0
MockAppCacheFrontend() : error_event_was_raised_(false) {}
2,541
124,544
0
void RenderBlock::finishDelayUpdateScrollInfo() { --gDelayUpdateScrollInfo; ASSERT(gDelayUpdateScrollInfo >= 0); if (gDelayUpdateScrollInfo == 0) { ASSERT(gDelayedUpdateScrollInfoSet); OwnPtr<DelayedUpdateScrollInfoSet> infoSet(adoptPtr(gDelayedUpdateScrollInfoSet)); gDelayedUpdateS...
2,542
118,208
0
views::View* AutofillDialogViews::CreateOverlayView() { return overlay_view_; }
2,543
129,374
0
Program* GetProgram(GLuint client_id) { return program_manager()->GetProgram(client_id); }
2,544
113,106
0
void DownloadItemImpl::ShowDownloadInShell() { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); content::GetContentClient()->browser()->ShowItemInFolder(GetFullPath()); }
2,545
172,773
0
status_t MPEG4Extractor::parseTrackHeader( off64_t data_offset, off64_t data_size) { if (data_size < 4) { return ERROR_MALFORMED; } uint8_t version; if (mDataSource->readAt(data_offset, &version, 1) < 1) { return ERROR_IO; } size_t dynSize = (version == 1) ? 36 : 24; uint8_t buffer[36 + 60]; if (data_siz...
2,546
170,899
0
status_t OMXNodeInstance::getConfig( OMX_INDEXTYPE index, void *params, size_t /* size */) { Mutex::Autolock autoLock(mLock); if (isProhibitedIndex_l(index)) { android_errorWriteLog(0x534e4554, "29422020"); return BAD_INDEX; } OMX_ERRORTYPE err = OMX_GetConfig(mHandle, index, params); OMX_...
2,547
147,442
0
static void ImplementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) { TestObject* impl = V8TestObject::ToImpl(info.Holder()); impl->implementedAsMethodName(); }
2,548
62,519
0
resp_print_simple_string(netdissect_options *ndo, register const u_char *bp, int length) { return resp_print_string_error_integer(ndo, bp, length); }
2,549
911
0
void CairoImageOutputDev::saveImage(CairoImage *image) { if (numImages >= size) { size += 16; images = (CairoImage **) greallocn (images, size, sizeof (CairoImage *)); } images[numImages++] = image; }
2,550
176,341
0
static void ReconfigureImpl(Handle<JSObject> object, Handle<FixedArrayBase> store, uint32_t entry, Handle<Object> value, PropertyAttributes attributes) { Handle<SeededNumberDictionary> dictionary = JSObject::NormalizeElements(object); FixedArray::cast(*store)->set(1, *dictionary); uint32_t length = static_cast<...
2,551
139,087
0
void AudioRendererHost::OnStreamCreated( int stream_id, base::SharedMemory* shared_memory, base::CancelableSyncSocket* foreign_socket) { DCHECK_CURRENTLY_ON(BrowserThread::IO); if (!PeerHandle()) { DLOG(WARNING) << "Renderer process handle is invalid."; OnStreamError(stream_id); return; }...
2,552
46,545
0
static long unix_stream_data_wait(struct sock *sk, long timeo, struct sk_buff *last, unsigned int last_len) { struct sk_buff *tail; DEFINE_WAIT(wait); unix_state_lock(sk); for (;;) { prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); tail = skb_peek_tail(&sk->sk_receive_queue); if (tail != las...
2,553
153,766
0
void* GLES2Implementation::MapBufferCHROMIUM(GLuint target, GLenum access) { GPU_CLIENT_SINGLE_THREAD_CHECK(); GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glMapBufferCHROMIUM(" << target << ", " << GLES2Util::GetStringEnum(access) << ")"); switch (target) { case GL_PIXEL_PACK_TRANSFER_BUFF...
2,554
51,445
0
void gdImagePolygon (gdImagePtr im, gdPointPtr p, int n, int c) { int i; int lx, ly; typedef void (*image_line)(gdImagePtr im, int x1, int y1, int x2, int y2, int color); image_line draw_line; if (n <= 0) { return; } /* Let it be known that we are drawing a polygon so that the opacity * mask doesn't get cl...
2,555
144,725
0
std::vector<SiteCharacteristicsFeatureProto*> GetAllFeaturesFromProto( SiteCharacteristicsProto* proto) { std::vector<SiteCharacteristicsFeatureProto*> ret( {proto->mutable_updates_favicon_in_background(), proto->mutable_updates_title_in_background(), proto->mutable_uses_audio_in_background(),...
2,556
66,217
0
mailimf_orig_date_parse(const char * message, size_t length, size_t * indx, struct mailimf_orig_date ** result) { struct mailimf_date_time * date_time; struct mailimf_orig_date * orig_date; size_t cur_token; int r; int res; cur_token = * indx; r = mailimf_token_case_insensitive_parse(message, length,...
2,557
47,554
0
static int hmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) { return hash_setkey(tfm, key, keylen, HASH_ALGO_SHA1); }
2,558
182,180
1
static __always_inline ssize_t __mcopy_atomic_hugetlb(struct mm_struct *dst_mm, struct vm_area_struct *dst_vma, unsigned long dst_start, unsigned long src_start, unsigned long len, bool zeropage) { int vm_alloc_shared = dst_vma->vm_flags & VM_SHARED; int vm_shared = dst_vma->vm_flags & VM_SHARED; ssize_t err; pte_t *ds...
2,559
188,371
1
long Track::GetNumber() const { return m_info.number; }
2,560
116,211
0
void SSLManager::UpdateEntry(NavigationEntryImpl* entry) { if (!entry) return; SSLStatus original_ssl_status = entry->GetSSL(); // Copy! policy()->UpdateEntry(entry, controller_->web_contents()); if (!entry->GetSSL().Equals(original_ssl_status)) { content::NotificationService::current()->Notify( ...
2,561
169,244
0
WebContents* GetEmbedderForGuest(content::WebContents* guest) { CHECK(guest); return static_cast<content::WebContentsImpl*>(guest)->GetOuterWebContents(); }
2,562
152,319
0
void RenderFrameImpl::FrameFocused() { Send(new FrameHostMsg_FrameFocused(routing_id_)); }
2,563
145,312
0
void RuntimeCustomBindings::OpenChannelToExtension( const v8::FunctionCallbackInfo<v8::Value>& args) { content::RenderFrame* renderframe = context()->GetRenderFrame(); if (!renderframe) return; CHECK_EQ(args.Length(), 3); CHECK(args[0]->IsString() && args[1]->IsString() && args[2]->IsBoolean()); Ext...
2,564
9,457
0
int tls1_ec_curve_id2nid(int curve_id, unsigned int *pflags) { const tls_curve_info *cinfo; /* ECC curves from RFC 4492 and RFC 7027 */ if ((curve_id < 1) || ((unsigned int)curve_id > OSSL_NELEM(nid_list))) return 0; cinfo = nid_list + curve_id - 1; if (pflags) *pflags = cinfo->flags...
2,565
148,647
0
bool SkiaOutputSurfaceImpl::HasExternalStencilTest() const { DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); return false; }
2,566
166,160
0
RenderFrameHostImpl::TakeNavigationRequestForSameDocumentCommit( const FrameHostMsg_DidCommitProvisionalLoad_Params& params) { bool is_browser_initiated = (params.nav_entry_id != 0); if (is_browser_initiated && same_document_navigation_request_ && same_document_navigation_request_->common_params().url ==...
2,567
34,950
0
static int rpc_complete_task(struct rpc_task *task) { void *m = &task->tk_runstate; wait_queue_head_t *wq = bit_waitqueue(m, RPC_TASK_ACTIVE); struct wait_bit_key k = __WAIT_BIT_KEY_INITIALIZER(m, RPC_TASK_ACTIVE); unsigned long flags; int ret; spin_lock_irqsave(&wq->lock, flags); clear_bit(RPC_TASK_ACTIVE, &ta...
2,568
130,086
0
scoped_ptr<ConfigurationPolicyHandlerList> BuildHandlerList( const Schema& chrome_schema) { scoped_ptr<ConfigurationPolicyHandlerList> handlers( new ConfigurationPolicyHandlerList( base::Bind(&PopulatePolicyHandlerParameters), base::Bind(&GetChromePolicyDetails))); for (size_t i = 0; i...
2,569
44,277
0
static inline int arch_check_elf(struct elfhdr *ehdr, bool has_interp, struct arch_elf_state *state) { /* Dummy implementation, always proceed */ return 0; }
2,570
135,217
0
void Document::dispose() { ASSERT_WITH_SECURITY_IMPLICATION(!m_deletionHasBegun); m_docType = nullptr; m_focusedElement = nullptr; m_hoverNode = nullptr; m_activeHoverElement = nullptr; m_titleElement = nullptr; m_documentElement = nullptr; m_contextFeatures = ContextFeatures::defaultSw...
2,571
134,823
0
void GetSanitizedEnabledFlagsForCurrentPlatform( FlagsStorage* flags_storage, std::set<std::string>* result) { GetSanitizedEnabledFlags(flags_storage, result); std::set<std::string> platform_experiments; int current_platform = GetCurrentPlatform(); for (size_t i = 0; i < num_experiments; ++i) { if (exp...
2,572
182,435
1
static void sas_scsi_clear_queue_lu(struct list_head *error_q, struct scsi_cmnd *my_cmd) { struct scsi_cmnd *cmd, *n; list_for_each_entry_safe(cmd, n, error_q, eh_entry) { if (cmd->device->sdev_target == my_cmd->device->sdev_target && cmd->device->lun == my_cmd->device->lun) sas_eh_defer_cmd(cmd); } }
2,573
121,371
0
WorkerData() : worker_process_id(0), worker_route_id(0) {}
2,574
40,657
0
static void prb_retire_current_block(struct tpacket_kbdq_core *pkc, struct packet_sock *po, unsigned int status) { struct tpacket_block_desc *pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); /* retire/close the current block */ if (likely(TP_STATUS_KERNEL == BLOCK_STATUS(pbd))) { /* * Plug the case where copy_bits...
2,575
135,754
0
bool NeedsIncrementalInsertion(const LocalFrame& frame, const String& new_text) { if (!frame.GetEditor().CanEditRichly()) return false; if (frame.SelectedText().IsEmpty() || new_text.IsEmpty()) return false; return true; }
2,576
176,421
0
static bt_status_t init_src( btav_source_callbacks_t* callbacks, std::vector<btav_a2dp_codec_config_t> codec_priorities) { BTIF_TRACE_EVENT("%s", __func__); btif_av_cb.codec_priorities = codec_priorities; bt_status_t status = btif_av_init(BTA_A2DP_SOURCE_SERVICE_ID); if (status == BT_STATUS_SUCCESS) bt_av_s...
2,577
35,425
0
static inline void preempt_conditional_sti(struct pt_regs *regs) { preempt_count_inc(); if (regs->flags & X86_EFLAGS_IF) local_irq_enable(); }
2,578
130,143
0
int BlacklistSize() { int size = -1; while (blacklist::g_troublesome_dlls[++size] != NULL) {} return size; }
2,579
66,441
0
static int __maybe_unused cp2112_allocate_irq(struct cp2112_device *dev, int pin) { int ret; if (dev->desc[pin]) return -EINVAL; dev->desc[pin] = gpiochip_request_own_desc(&dev->gc, pin, "HID/I2C:Event"); if (IS_ERR(dev->desc[pin])) { dev_err(dev->gc.parent, "Failed to request GPIO\n"); ...
2,580
177,027
0
void InputDispatcher::updateDispatchStatisticsLocked(nsecs_t currentTime, const EventEntry* entry, int32_t injectionResult, nsecs_t timeSpentWaitingForApplication) { }
2,581
39,303
0
void selinux_audit_rule_free(void *vrule) { struct selinux_audit_rule *rule = vrule; if (rule) { context_destroy(&rule->au_ctxt); kfree(rule); } }
2,582
168,343
0
void BrowserView::RestoreFocus() { WebContents* selected_web_contents = GetActiveWebContents(); if (selected_web_contents) selected_web_contents->RestoreFocus(); }
2,583
60,590
0
static int snd_seq_ioctl_get_port_info(struct snd_seq_client *client, void *arg) { struct snd_seq_port_info *info = arg; struct snd_seq_client *cptr; struct snd_seq_client_port *port; cptr = snd_seq_client_use_ptr(info->addr.client); if (cptr == NULL) return -ENXIO; port = snd_seq_port_use_ptr(cptr, info->add...
2,584
171,443
0
static vpx_codec_err_t ctrl_set_reference(vpx_codec_alg_priv_t *ctx, va_list args) { vpx_ref_frame_t *const data = va_arg(args, vpx_ref_frame_t *); if (ctx->frame_parallel_decode) { set_error_detail(ctx, "Not supported in frame parallel decode"); return VPX_CODEC_INCAPA...
2,585
65,864
0
nfssvc_encode_attrstat(struct svc_rqst *rqstp, __be32 *p, struct nfsd_attrstat *resp) { p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); return xdr_ressize_check(rqstp, p); }
2,586
182,074
1
static MagickBooleanType ReadUncompressedRGB(Image *image, DDSInfo *dds_info, ExceptionInfo *exception) { PixelPacket *q; ssize_t x, y; unsigned short color; if (dds_info->pixelformat.rgb_bitcount == 8) (void) SetImageType(image,GrayscaleType); else if (dds_info->pixelformat.rgb_bitcount == 16 && !IsBitMask( dds_inf...
2,587
89,791
0
PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const char **argv) { (void)pamh; (void)flags; (void)argc; (void)argv; return PAM_SUCCESS; }
2,588
102,545
0
virtual void RunWork() { if (!base::ClosePlatformFile(file_handle_)) set_error_code(base::PLATFORM_FILE_ERROR_FAILED); }
2,589
42,203
0
static int memory_access_ok(struct vhost_dev *d, struct vhost_memory *mem, int log_all) { int i; for (i = 0; i < d->nvqs; ++i) { int ok; bool log; mutex_lock(&d->vqs[i]->mutex); log = log_all || vhost_has_feature(d->vqs[i], VHOST_F_LOG_ALL); /* If ring is inactive, will check when it's enabled. */ ...
2,590
40,193
0
static int raw6_seq_open(struct inode *inode, struct file *file) { return raw_seq_open(inode, file, &raw_v6_hashinfo, &raw6_seq_ops); }
2,591
78,641
0
piv_get_serial_nr_from_CHUI(sc_card_t* card, sc_serial_number_t* serial) { int r; int i; u8 gbits; u8 *rbuf = NULL; const u8 *body; const u8 *fascn; const u8 *guid; size_t rbuflen = 0, bodylen, fascnlen, guidlen; SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE); if (card->serialnr.len) { *serial = card->s...
2,592
77,993
0
static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, Image *image,ExceptionInfo *exception) { const char *mode, *option; CompressionType compression; EndianType endian_type; MagickBooleanType adjoin, debug, status; MagickOffsetType scene; QuantumInfo ...
2,593
5,175
0
PHP_FUNCTION(pg_escape_string) { zend_string *from = NULL, *to = NULL; zval *pgsql_link; #ifdef HAVE_PQESCAPE_CONN PGconn *pgsql; #endif int id = -1; switch (ZEND_NUM_ARGS()) { case 1: if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &from) == FAILURE) { return; } pgsql_link = NULL; id = FETCH_DE...
2,594
164,005
0
void ServiceWorkerPaymentInstrument::RecordUse() { NOTIMPLEMENTED(); }
2,595
122,059
0
void ShellAuraPlatformData::ResizeWindow(int width, int height) { root_window_->host()->SetBounds(gfx::Rect(width, height)); }
2,596
36,045
0
int8_t udf_current_aext(struct inode *inode, struct extent_position *epos, struct kernel_lb_addr *eloc, uint32_t *elen, int inc) { int alen; int8_t etype; uint8_t *ptr; struct short_ad *sad; struct long_ad *lad; struct udf_inode_info *iinfo = UDF_I(inode); if (!epos->bh) { if (!epos->offset) epos->offse...
2,597
150,519
0
std::string GetBody(Browser* browser) { std::string body; EXPECT_TRUE(content::ExecuteScriptAndExtractString( browser->tab_strip_model()->GetActiveWebContents(), "window.domAutomationController.send(document.body.textContent);", &body)); return body; }
2,598
144,286
0
explicit AnimationObserver(const base::Closure& callback) : callback_(callback) {}
2,599