unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
173,029
0
test_one_file(struct display *dp, const char *filename) { /* First cache the file and update the display original file * information for the new file. */ dp->operation = "cache file"; dp->transforms = 0; display_cache_file(dp, filename); update_display(dp); /* First test: if there are options tha...
16,000
131,393
0
static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); TestObjectPythonV8Internal::floatArrayAttributeAttributeSetter(jsValue, info); TRACE_EVENT_SET_SAMPL...
16,001
148,072
0
void V8TestObject::VoidMethodDefaultUndefinedStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodDefaultUndefinedStringArg"); test_object_v8_internal::VoidMethodDefaultUndefinedStringArgMethod(info); ...
16,002
109,063
0
WebURLError RenderViewImpl::cannotHandleRequestError( WebFrame* frame, const WebURLRequest& request) { NOTREACHED(); // Since we said we can handle all requests. return WebURLError(); }
16,003
99,114
0
void ResourceDispatcherHost::RemoveObserver(Observer* obs) { observer_list_.RemoveObserver(obs); }
16,004
159,481
0
void Pack<WebGLImageConversion::kDataFormatRGB8, WebGLImageConversion::kAlphaDoPremultiply, uint8_t, uint8_t>(const uint8_t* source, uint8_t* destination, unsigned pixels_per_row) { for (unsigned i = 0; i < pixels_per_row; ++i) { float scale_fact...
16,005
23,065
0
static int encode_getattr_one(struct xdr_stream *xdr, uint32_t bitmap) { __be32 *p; RESERVE_SPACE(12); WRITE32(OP_GETATTR); WRITE32(1); WRITE32(bitmap); return 0; }
16,006
121,285
0
void HTMLInputElement::subtreeHasChanged() { m_inputType->subtreeHasChanged(); calculateAndAdjustDirectionality(); }
16,007
172,204
0
virtual void SetUp() { AllocationTestHarness::SetUp(); pipe(pipefd); done = semaphore_new(0); }
16,008
56,813
0
struct usb_device *usb_hub_find_child(struct usb_device *hdev, int port1) { struct usb_hub *hub = usb_hub_to_struct_hub(hdev); if (port1 < 1 || port1 > hdev->maxchild) return NULL; return hub->ports[port1 - 1]->child; }
16,009
143,453
0
void setUrlToLoad(const String& value, URLReplacement replacement) { if (replacement == DisallowURLReplacement && !m_urlToLoad.isEmpty()) return; String url = stripLeadingAndTrailingHTMLSpaces(value); if (url.isEmpty()) return; m_urlToLoad = url; }
16,010
154,007
0
void GLES2DecoderImpl::DoGetBufferParameteriv(GLenum target, GLenum pname, GLint* params, GLsizei params_size) { buffer_manager()->ValidateAndDoGetBufferParameteriv( &state_,...
16,011
142,455
0
void ShelfLayoutManager::MaybeUpdateShelfBackground(AnimationChangeType type) { const ShelfBackgroundType new_background_type(GetShelfBackgroundType()); if (new_background_type == shelf_background_type_) return; shelf_background_type_ = new_background_type; for (auto& observer : observers_) observer.O...
16,012
17,961
0
kex_new(struct ssh *ssh, char *proposal[PROPOSAL_MAX], struct kex **kexp) { struct kex *kex; int r; *kexp = NULL; if ((kex = calloc(1, sizeof(*kex))) == NULL) return SSH_ERR_ALLOC_FAIL; if ((kex->peer = sshbuf_new()) == NULL || (kex->my = sshbuf_new()) == NULL) { r = SSH_ERR_ALLOC_FAIL; goto out; } i...
16,013
13,553
0
static HB_Error Get_Anchor( GPOS_Instance* gpi, HB_Anchor* an, HB_UShort glyph_index, HB_Fixed* x_value, HB_Fixed* y_value ) { HB_Error error = HB_Err_Ok; #ifdef HB_SUPPORT_MULTIPLE_MASTER HB_GPOSHeader* gpos = gpi->gpos; #endif HB_UShort ...
16,014
188,517
1
static void die(const char *fmt, ...) { va_list ap; va_start(ap, fmt); vprintf(fmt, ap); if(fmt[strlen(fmt)-1] != '\n') printf("\n"); exit(EXIT_FAILURE); }
16,015
39,753
0
static struct dentry *proc_fdinfo_instantiate(struct inode *dir, struct dentry *dentry, struct task_struct *task, const void *ptr) { unsigned fd = *(unsigned *)ptr; struct inode *inode; struct proc_inode *ei; struct dentry *error = ERR_PTR(-ENOENT); inode = proc_pid_make_inode(dir->i_sb, task); if (!inode) ...
16,016
107,310
0
void Browser::OnStartDownload(DownloadItem* download, TabContents* tab) { if (!window()) return; #if defined(OS_CHROMEOS) if (download->is_extension_install()) { ExtensionService* service = profile_->GetExtensionService(); if (service && service->IsDownloadFromGallery(download->url(), ...
16,017
83,376
0
static void ssl_write_extended_ms_ext( mbedtls_ssl_context *ssl, unsigned char *buf, size_t *olen ) { unsigned char *p = buf; const unsigned char *end = ssl->out_msg + MBEDTLS_SSL_MAX_CONTENT_LEN; *olen = 0; if( ssl->conf->extended_ms == MBEDTLS_SSL_EXTENDED_MS_D...
16,018
48,988
0
void brcmf_abort_scanning(struct brcmf_cfg80211_info *cfg) { struct escan_info *escan = &cfg->escan_info; set_bit(BRCMF_SCAN_STATUS_ABORT, &cfg->scan_status); if (cfg->scan_request) { escan->escan_state = WL_ESCAN_STATE_IDLE; brcmf_notify_escan_complete(cfg, escan->ifp, true, true); } clear_bit(BRCMF_SCAN_STA...
16,019
11,735
0
linux_lvm2_lv_set_name_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
16,020
185,268
1
void LinkChangeSerializerMarkupAccumulator::appendAttribute(StringBuilder& result, Element* element, const Attribute& attribute, Namespaces* namespaces) { if (m_replaceLinks && element->isURLAttribute(attribute) && !element->isJavaScriptURLAttribute(attribute)) { String completeURL = m_document->completeURL...
16,021
36,710
0
get_req_flags(unsigned char **buff_in, OM_uint32 bodysize, OM_uint32 *req_flags) { unsigned int len; if (**buff_in != (CONTEXT | 0x01)) return (0); if (g_get_tag_and_length(buff_in, (CONTEXT | 0x01), bodysize, &len) < 0) return GSS_S_DEFECTIVE_TOKEN; if (*(*buff_in)++ != BIT_STRING) return GSS_S...
16,022
131,194
0
static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); TestObjectPythonV8Internal::activityLoggingG...
16,023
2,494
0
bool smbXcli_session_is_authenticated(struct smbXcli_session *session) { const DATA_BLOB *application_key; if (session->conn == NULL) { return false; } /* * If we have an application key we had a session key negotiated * at auth time. */ if (session->conn->protocol >= PROTOCOL_SMB2_02) { application_ke...
16,024
114,755
0
void OutOfProcessPPAPITest::SetUpCommandLine(CommandLine* command_line) { PPAPITest::SetUpCommandLine(command_line); command_line->AppendSwitch(switches::kPpapiOutOfProcess); }
16,025
167,593
0
int32_t SiteInstanceImpl::GetId() { return id_; }
16,026
126,723
0
void BrowserView::ChildPreferredSizeChanged(View* child) { Layout(); }
16,027
75,310
0
int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples) { float **output; int len = stb_vorbis_get_frame_float(f, NULL, &output); if (len > num_samples) len = num_samples; if (len) convert_samples_short(num_c, buffer, 0, f->channels, output, 0, len); return len; }
16,028
112
0
PHP_FUNCTION(openssl_pkey_export_to_file) { struct php_x509_request req; zval ** zpkey, * args = NULL; char * passphrase = NULL; int passphrase_len = 0; char * filename = NULL; int filename_len = 0; long key_resource = -1; EVP_PKEY * key; BIO * bio_out = NULL; const EVP_CIPHER * cipher; if (zend_parse_parame...
16,029
184,799
1
static v8::Handle<v8::Value> acceptTransferListCallback(const v8::Arguments& args) { INC_STATS("DOM.TestSerializedScriptValueInterface.acceptTransferList"); if (args.Length() < 1) return V8Proxy::throwNotEnoughArgumentsError(); TestSerializedScriptValueInterface* imp = V8TestSerializedScriptValueInterface::toNa...
16,030
126,923
0
void BrowserTabStripController::SetTabDataAt(content::WebContents* web_contents, int model_index) { TabRendererData data; SetTabRendererDataFromModel(web_contents, model_index, &data, EXISTING_TAB); tabstrip_->SetTabData(model_index, data); }
16,031
69,022
0
static void FLTReplacePropertyName(FilterEncodingNode *psFilterNode, const char *pszOldName, const char *pszNewName) { if (psFilterNode && pszOldName && pszNewName) { if (psFilterNode->eType == FILTER_NODE_TYPE_PROPERTYNAME) { if (psFilte...
16,032
148,636
0
void SkiaOutputSurfaceImpl::DiscardBackbuffer() { DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); auto callback = base::BindOnce(&SkiaOutputSurfaceImplOnGpu::DiscardBackbuffer, base::Unretained(impl_on_gpu_.get())); task_sequence_->ScheduleOrRetainTask(std::move(callback), ...
16,033
181,622
1
entry_guard_obeys_restriction(const entry_guard_t *guard, const entry_guard_restriction_t *rst) { tor_assert(guard); if (! rst) return 1; // No restriction? No problem. return tor_memneq(guard->identity, rst->exclude_id, DIGEST_LEN); }
16,034
127,802
0
void PepperMediaDeviceManager::CloseDevice(const std::string& label) { #if defined(ENABLE_WEBRTC) GetMediaStreamDispatcher()->CloseDevice(label); #endif }
16,035
32,968
0
static int sctp_autobind(struct sock *sk) { union sctp_addr autoaddr; struct sctp_af *af; __be16 port; /* Initialize a local sockaddr structure to INADDR_ANY. */ af = sctp_sk(sk)->pf->af; port = htons(inet_sk(sk)->inet_num); af->inaddr_any(&autoaddr, port); return sctp_do_bind(sk, &autoaddr, af->sockaddr_len...
16,036
50,526
0
static int __init perf_workqueue_init(void) { perf_wq = create_singlethread_workqueue("perf"); WARN(!perf_wq, "failed to create perf workqueue\n"); return perf_wq ? 0 : -1; }
16,037
17,981
0
ssh_packet_log_type(u_char type) { switch (type) { case SSH2_MSG_CHANNEL_DATA: case SSH2_MSG_CHANNEL_EXTENDED_DATA: case SSH2_MSG_CHANNEL_WINDOW_ADJUST: return 0; default: return 1; } }
16,038
158,844
0
bool Browser::PreHandleGestureEvent(content::WebContents* source, const blink::WebGestureEvent& event) { #if defined(OS_MACOSX) if (event.GetType() == blink::WebInputEvent::kGestureDoubleTap) { content::BrowserPluginGuestManager* guest_manager = source->GetBrowserContex...
16,039
60,592
0
static int snd_seq_ioctl_get_queue_info(struct snd_seq_client *client, void *arg) { struct snd_seq_queue_info *info = arg; struct snd_seq_queue *q; q = queueptr(info->queue); if (q == NULL) return -EINVAL; memset(info, 0, sizeof(*info)); info->queue = q->queue; info->owner = q->owner; info->locked = q-...
16,040
19,605
0
void exit_creds(struct task_struct *tsk) { struct cred *cred; kdebug("exit_creds(%u,%p,%p,{%d,%d})", tsk->pid, tsk->real_cred, tsk->cred, atomic_read(&tsk->cred->usage), read_cred_subscribers(tsk->cred)); cred = (struct cred *) tsk->real_cred; tsk->real_cred = NULL; validate_creds(cred); alter_c...
16,041
17,317
0
cpl_flush () { struct cpelement *cpe, *p; for (cpe = coproc_list.head; cpe; ) { p = cpe; cpe = cpe->next; coproc_dispose (p->coproc); cpe_dispose (p); } coproc_list.head = coproc_list.tail = 0; coproc_list.ncoproc = 0; }
16,042
54,470
0
static int do_move_page_to_node_array(struct mm_struct *mm, struct page_to_node *pm, int migrate_all) { int err; struct page_to_node *pp; LIST_HEAD(pagelist); down_read(&mm->mmap_sem); /* * Build a list of pages to migrate */ for (pp = pm; pp->node != MAX_NUMNODES; pp++) { struct vm_ar...
16,043
113,046
0
bool DownloadItemImpl::GetOpenWhenComplete() const { return open_when_complete_; }
16,044
164,110
0
bool AppCacheDatabase::FindOnlineWhiteListForCache( int64_t cache_id, std::vector<OnlineWhiteListRecord>* records) { DCHECK(records && records->empty()); if (!LazyOpen(kDontCreate)) return false; static const char kSql[] = "SELECT cache_id, namespace_url, is_pattern FROM OnlineWhiteLists" ...
16,045
96,788
0
void fuse_abort_conn(struct fuse_conn *fc) { struct fuse_iqueue *fiq = &fc->iq; spin_lock(&fc->lock); if (fc->connected) { struct fuse_dev *fud; struct fuse_req *req, *next; LIST_HEAD(to_end); unsigned int i; /* Background queuing checks fc->connected under bg_lock */ spin_lock(&fc->bg_lock); fc->con...
16,046
136,268
0
static void parseSourceList(CSPSourceList& sourceList, String& sources) { Vector<UChar> characters; sources.appendTo(characters); sourceList.parse(characters.data(), characters.data() + characters.size()); }
16,047
62,172
0
void BrowseForFolder(void) { BROWSEINFOW bi; LPITEMIDLIST pidl; WCHAR *wpath; size_t i; HRESULT hr; IShellItem *psi = NULL; IShellItem *si_path = NULL; // Automatically freed IFileOpenDialog *pfod = NULL; WCHAR *fname; char* tmp_path = NULL; dialog_showing++; if (nWindowsVersion >= WINDOWS_VISTA) { INIT...
16,048
103,798
0
void RenderView::OnAccessibilityDoDefaultAction(int acc_obj_id) { if (!accessibility_.get()) return; WebAccessibilityObject obj = accessibility_->getObjectById(acc_obj_id); if (!obj.isValid()) return; obj.performDefaultAction(); }
16,049
110,677
0
bool TextureManager::TextureInfo::MarkMipmapsGenerated( const FeatureInfo* feature_info) { if (!CanGenerateMipmaps(feature_info)) { return false; } for (size_t ii = 0; ii < level_infos_.size(); ++ii) { const TextureInfo::LevelInfo& info1 = level_infos_[ii][0]; GLsizei width = info1.width; GLsi...
16,050
187,525
1
OMX_ERRORTYPE omx_video::use_input_buffer( OMX_IN OMX_HANDLETYPE hComp, OMX_INOUT OMX_BUFFERHEADERTYPE** bufferHdr, OMX_IN OMX_U32 port, OMX_IN OMX_PTR appData, OMX_IN OMX_U32 bytes, OMX_IN OMX_U8* buffer) { (void) hComp; OMX_ERRORTYPE ...
16,051
137,533
0
bool PrintWebViewHelper::GetPrintFrame(blink::WebLocalFrame** frame) { DCHECK(frame); blink::WebView* webView = render_view()->GetWebView(); DCHECK(webView); if (!webView) return false; blink::WebLocalFrame* focusedFrame = webView->focusedFrame()->toWebLocalFrame(); *frame = focusedFrame->hasSele...
16,052
125,799
0
void LogBytes(const std::vector<CharType>& data, std::string* out) { #if defined(OS_WIN) for (size_t i = 0; i < data.size(); ++i) out->push_back(data[i]); #else static const size_t kMaxBytesToLog = 100; for (size_t i = 0; i < std::min(data.size(), kMaxBytesToLog); ++i) { if (isprint(data[i])) out->p...
16,053
123,610
0
void InspectorPageAgent::didResizeMainFrame() { #if !OS(ANDROID) if (m_enabled && m_state->getBoolean(PageAgentState::showSizeOnResize)) m_overlay->showAndHideViewSize(m_state->getBoolean(PageAgentState::showGridOnResize)); #endif m_frontend->frameResized(); }
16,054
142,504
0
void EndScroll(bool is_fling, float velocity_y) { IncreaseTimestamp(); ui::GestureEventDetails event_details = is_fling ? ui::GestureEventDetails(ui::ET_SCROLL_FLING_START, 0, velocity_y) : ui::GestureEventDetails(ui::ET_GESTURE_SCROLL_END); ui::GestureEvent event = ...
16,055
133,725
0
static bool semicolonSeparatedValueContainsJavaScriptURL(const String& value) { Vector<String> valueList; value.split(';', valueList); for (size_t i = 0; i < valueList.size(); ++i) { if (protocolIsJavaScript(valueList[i])) return true; } return false; }
16,056
69,162
0
ZEND_API void ZEND_FASTCALL zend_hash_apply(HashTable *ht, apply_func_t apply_func) { uint32_t idx; Bucket *p; int result; IS_CONSISTENT(ht); HT_ASSERT(GC_REFCOUNT(ht) == 1); HASH_PROTECT_RECURSION(ht); for (idx = 0; idx < ht->nNumUsed; idx++) { p = ht->arData + idx; if (UNEXPECTED(Z_TYPE(p->val) == IS_UND...
16,057
54,476
0
int migrate_huge_page_move_mapping(struct address_space *mapping, struct page *newpage, struct page *page) { int expected_count; void **pslot; spin_lock_irq(&mapping->tree_lock); pslot = radix_tree_lookup_slot(&mapping->page_tree, page_index(page)); expected_count = 2 + page_has_private(page); if (...
16,058
95,327
0
psf_d2s_clip_array (const double *src, short *dest, int count, int normalize) { double normfact, scaled_value ; normfact = normalize ? (1.0 * 0x8000) : 1.0 ; while (--count >= 0) { scaled_value = src [count] * normfact ; if (CPU_CLIPS_POSITIVE == 0 && scaled_value >= (1.0 * 0x7FFF)) { dest [count] = 0x7FFF ;...
16,059
91,748
0
COMPS_HSList * comps_mrtree_get(COMPS_MRTree * rt, const char * key) { COMPS_HSList * subnodes; COMPS_HSListItem * it = NULL; COMPS_MRTreeData * rtdata; unsigned int offset, len, x; char found, ended; len = strlen(key); offset = 0; subnodes = rt->subnodes; while (offset != len) { ...
16,060
78,371
0
aes128_encrypt_ecb(const unsigned char *key, int keysize, const unsigned char *input, size_t length, unsigned char *output) { unsigned char iv[EVP_MAX_IV_LENGTH] = { 0 }; return openssl_enc(EVP_aes_128_ecb(), key, iv, input, length, output); }
16,061
374
0
fz_drop_link_key(fz_context *ctx, void *key_) { fz_link_key *key = (fz_link_key *)key_; if (fz_drop_imp(ctx, key, &key->refs)) fz_free(ctx, key); }
16,062
83,501
0
int is_valid_bugaddr(unsigned long addr) { unsigned short ud; if (addr < TASK_SIZE_MAX) return 0; if (probe_kernel_address((unsigned short *)addr, ud)) return 0; return ud == INSN_UD0 || ud == INSN_UD2; }
16,063
110,225
0
bool NaClProcessHost::Send(IPC::Message* msg) { return process_->Send(msg); }
16,064
38,577
0
void ieee80211_sta_expire(struct ieee80211_sub_if_data *sdata, unsigned long exp_time) { struct ieee80211_local *local = sdata->local; struct sta_info *sta, *tmp; mutex_lock(&local->sta_mtx); list_for_each_entry_safe(sta, tmp, &local->sta_list, list) { if (sdata != sta->sdata) continue; if (time_afte...
16,065
68,171
0
static void ip_cmsg_recv_retopts(struct msghdr *msg, struct sk_buff *skb) { unsigned char optbuf[sizeof(struct ip_options) + 40]; struct ip_options *opt = (struct ip_options *)optbuf; if (IPCB(skb)->opt.optlen == 0) return; if (ip_options_echo(opt, skb)) { msg->msg_flags |= MSG_CTRUNC; return; } ip_option...
16,066
12,496
0
bus_activation_ref (BusActivation *activation) { _dbus_assert (activation->refcount > 0); activation->refcount += 1; return activation; }
16,067
54,382
0
static PHP_NAMED_FUNCTION(zif_zip_close) { zval * zip; zip_rsrc *z_rsrc = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &zip) == FAILURE) { return; } if ((z_rsrc = (zip_rsrc *)zend_fetch_resource(Z_RES_P(zip), le_zip_dir_name, le_zip_dir)) == NULL) { RETURN_FALSE; } /* really close the zip will br...
16,068
64,424
0
incremental_gc_step(mrb_state *mrb, mrb_gc *gc) { size_t limit = 0, result = 0; limit = (GC_STEP_SIZE/100) * gc->step_ratio; while (result < limit) { result += incremental_gc(mrb, gc, limit); if (gc->state == MRB_GC_STATE_ROOT) break; } gc->threshold = gc->live + GC_STEP_SIZE; }
16,069
107,552
0
void ewk_view_load_show(Evas_Object* ewkView) { DBG("ewkView=%p", ewkView); evas_object_smart_callback_call(ewkView, "load,newwindow,show", 0); }
16,070
27,408
0
ip6_tnl_dev_uninit(struct net_device *dev) { struct ip6_tnl *t = netdev_priv(dev); struct net *net = dev_net(dev); struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id); if (dev == ip6n->fb_tnl_dev) { spin_lock_bh(&ip6_tnl_lock); ip6n->tnls_wc[0] = NULL; spin_unlock_bh(&ip6_tnl_lock); } else { ip6_t...
16,071
172,085
0
static inline void set_poll(poll_slot_t* ps, int fd, int type, int flags, uint32_t user_id) { ps->pfd.fd = fd; ps->user_id = user_id; if(ps->type != 0 && ps->type != type) APPL_TRACE_ERROR("poll socket type should not changed! type was:%d, type now:%d", ps->type, type); ps->type = type; ps->fla...
16,072
62,119
0
static MagickBooleanType IsMNG(const unsigned char *magick,const size_t length) { if (length < 8) return(MagickFalse); if (memcmp(magick,"\212MNG\r\n\032\n",8) == 0) return(MagickTrue); return(MagickFalse); }
16,073
124,763
0
void RenderBlockFlow::setCollapsedBottomMargin(const MarginInfo& marginInfo) { if (marginInfo.canCollapseWithMarginAfter() && !marginInfo.canCollapseWithMarginBefore()) { if (marginInfo.discardMargin()) { setMustDiscardMarginAfter(); return; } setMaxMarginAfterValues...
16,074
20,890
0
static void vapic_exit(struct kvm_vcpu *vcpu) { struct kvm_lapic *apic = vcpu->arch.apic; int idx; if (!apic || !apic->vapic_addr) return; idx = srcu_read_lock(&vcpu->kvm->srcu); kvm_release_page_dirty(apic->vapic_page); mark_page_dirty(vcpu->kvm, apic->vapic_addr >> PAGE_SHIFT); srcu_read_unlock(&vcpu->kvm-...
16,075
87,376
0
Mat_VarRead4(mat_t *mat,matvar_t *matvar) { int err; size_t nelems = 1; err = SafeMulDims(matvar, &nelems); if ( err ) { Mat_Critical("Integer multiplication overflow"); return; } (void)fseek((FILE*)mat->fp,matvar->internal->datapos,SEEK_SET); switch ( matvar->class_type )...
16,076
112,616
0
void Document::webkitDidEnterFullScreenForElement(Element*) { if (!m_fullScreenElement) return; if (!attached() || inPageCache()) return; m_fullScreenElement->didBecomeFullscreenElement(); m_fullScreenChangeDelayTimer.startOneShot(0); }
16,077
138,797
0
void RenderFrameHostImpl::SendJavaScriptDialogReply( IPC::Message* reply_msg, bool success, const base::string16& user_input) { FrameHostMsg_RunJavaScriptDialog::WriteReplyParams(reply_msg, success, user_input); Send(reply_msg); }
16,078
170,745
0
void OMXNodeInstance::onMessage(const omx_message &msg) { const sp<GraphicBufferSource>& bufferSource(getGraphicBufferSource()); if (msg.type == omx_message::FILL_BUFFER_DONE) { OMX_BUFFERHEADERTYPE *buffer = findBufferHeader(msg.u.extended_buffer_data.buffer); { Mutex::Autolock _l(mDebugLock)...
16,079
66,027
0
int yr_arena_create( size_t initial_size, int flags, YR_ARENA** arena) { YR_ARENA* new_arena; YR_ARENA_PAGE* new_page; *arena = NULL; new_arena = (YR_ARENA*) yr_malloc(sizeof(YR_ARENA)); if (new_arena == NULL) return ERROR_INSUFFICIENT_MEMORY; new_page = _yr_arena_new_page(initial_size); ...
16,080
179,191
1
static void br_multicast_del_pg(struct net_bridge *br, struct net_bridge_port_group *pg) { struct net_bridge_mdb_htable *mdb; struct net_bridge_mdb_entry *mp; struct net_bridge_port_group *p; struct net_bridge_port_group __rcu **pp; mdb = mlock_dereference(br->mdb, br); mp = br_mdb_ip_get(mdb, &pg->addr); if (WARN_ON...
16,081
39,406
0
static void print_errors(void) { DPRINT(""); if (ST0 & ST0_ECE) { pr_cont("Recalibrate failed!"); } else if (ST2 & ST2_CRC) { pr_cont("data CRC error"); tell_sector(); } else if (ST1 & ST1_CRC) { pr_cont("CRC error"); tell_sector(); } else if ((ST1 & (ST1_MAM | ST1_ND)) || (ST2 & ST2_MAM)) { if (!...
16,082
17,026
0
void OxideQQuickWebViewPrivate::CloseRequested() { Q_Q(OxideQQuickWebView); emit q->closeRequested(); }
16,083
59,664
0
static int csnmp_config_add_data_values(data_definition_t *dd, oconfig_item_t *ci) { if (ci->values_num < 1) { WARNING("snmp plugin: `Values' needs at least one argument."); return (-1); } for (int i = 0; i < ci->values_num; i++) if (ci->values[i].type != OCONF...
16,084
80,691
0
GF_Err blnk_dump(GF_Box *a, FILE * trace) { GF_TextBlinkBox*p = (GF_TextBlinkBox*)a; gf_isom_box_dump_start(a, "TextBlinkBox", trace); fprintf(trace, "start_charoffset=\"%d\" end_charoffset=\"%d\">\n", p->startcharoffset, p->endcharoffset); gf_isom_box_dump_done("TextBlinkBox", a, trace); return GF_OK; }
16,085
55,861
0
static void do_SAK_work(struct work_struct *work) { struct tty_struct *tty = container_of(work, struct tty_struct, SAK_work); __do_SAK(tty); }
16,086
97,949
0
void RenderView::OnExecuteCode(const ViewMsg_ExecuteCode_Params& params) { WebFrame* main_frame = webview() ? webview()->mainFrame() : NULL; if (!main_frame) { Send(new ViewMsg_ExecuteCodeFinished(routing_id_, params.request_id, false)); return; } WebDataSource*...
16,087
56,981
0
static void fuse_writepage_end(struct fuse_conn *fc, struct fuse_req *req) { struct inode *inode = req->inode; struct fuse_inode *fi = get_fuse_inode(inode); mapping_set_error(inode->i_mapping, req->out.h.error); spin_lock(&fc->lock); while (req->misc.write.next) { struct fuse_conn *fc = get_fuse_conn(inode); ...
16,088
20,998
0
static void smaps_pte_entry(pte_t ptent, unsigned long addr, unsigned long ptent_size, struct mm_walk *walk) { struct mem_size_stats *mss = walk->private; struct vm_area_struct *vma = mss->vma; struct page *page; int mapcount; if (is_swap_pte(ptent)) { mss->swap += ptent_size; return; } if (!pte_present(...
16,089
97,054
0
static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, struct bpf_insn *insn, struct bpf_reg_state *dst_reg, struct bpf_reg_state src_reg) { struct bpf_reg_state *regs = cur_regs(env); u8 opcode = BPF_OP(insn->code); bool src_known, dst_known; s64 smin_val, smax_val; u64 ...
16,090
34,238
0
static void ip_vs_unlink_service(struct ip_vs_service *svc) { /* * Unhash it from the service table */ write_lock_bh(&__ip_vs_svc_lock); ip_vs_svc_unhash(svc); /* * Wait until all the svc users go away. */ IP_VS_WAIT_WHILE(atomic_read(&svc->usecnt) > 0); __ip_vs_del_service(svc); write_unlock_bh(&__i...
16,091
45,694
0
static int crypto_rfc3686_init_tfm(struct crypto_tfm *tfm) { struct crypto_instance *inst = (void *)tfm->__crt_alg; struct crypto_skcipher_spawn *spawn = crypto_instance_ctx(inst); struct crypto_rfc3686_ctx *ctx = crypto_tfm_ctx(tfm); struct crypto_ablkcipher *cipher; unsigned long align; cipher = crypto_spawn_s...
16,092
68,687
0
vc4_free_hang_state(struct drm_device *dev, struct vc4_hang_state *state) { unsigned int i; for (i = 0; i < state->user_state.bo_count; i++) drm_gem_object_unreference_unlocked(state->bo[i]); kfree(state); }
16,093
60,459
0
int wasm_asm(const char *str, unsigned char *buf, int buf_len) { int i = 0, len = -1; char tmp[R_ASM_BUFSIZE]; while (str[i] != ' ' && i < buf_len) { tmp[i] = str[i]; i++; } tmp[i] = 0; for (i = 0; i < 0xff; i++) { WasmOpDef *opdef = &opcodes[i]; if (opdef->txt) { if (!strcmp (opdef->txt, tmp)) { b...
16,094
153,860
0
GLES2Implementation::SingleThreadChecker::~SingleThreadChecker() { --gles2_implementation_->use_count_; CHECK_EQ(0, gles2_implementation_->use_count_); }
16,095
96,602
0
static int bin_libs(RCore *r, int mode) { RList *libs; RListIter *iter; char* lib; int i = 0; if (!(libs = r_bin_get_libs (r->bin))) { return false; } if (IS_MODE_JSON (mode)) { r_cons_print ("["); } else if (IS_MODE_NORMAL (mode)) { r_cons_println ("[Linked libraries]"); } r_list_foreach (libs, iter, ...
16,096
78,225
0
static int cac_card_ctl(sc_card_t *card, unsigned long cmd, void *ptr) { cac_private_data_t * priv = CAC_DATA(card); LOG_FUNC_CALLED(card->ctx); sc_log(card->ctx, "cmd=%ld ptr=%p", cmd, ptr); if (priv == NULL) { LOG_FUNC_RETURN(card->ctx, SC_ERROR_INTERNAL); } switch(cmd) { case SC_CARDCTL_CAC_GET_ACA_PATH:...
16,097
18,675
0
static ssize_t sock_aio_read(struct kiocb *iocb, const struct iovec *iov, unsigned long nr_segs, loff_t pos) { struct sock_iocb siocb, *x; if (pos != 0) return -ESPIPE; if (iocb->ki_left == 0) /* Match SYS5 behaviour */ return 0; x = alloc_sock_iocb(iocb, &siocb); if (!x) return -ENOMEM; return do_s...
16,098
78,739
0
static void print_serial(sc_card_t *in_card) { int r; sc_serial_number_t serial; r = sc_lock(card); if (r == SC_SUCCESS) r = sc_card_ctl(in_card, SC_CARDCTL_GET_SERIALNR, &serial); sc_unlock(card); if (r) fprintf(stderr, "sc_card_ctl(*, SC_CARDCTL_GET_SERIALNR, *) failed\n"); else util_hex_dump_asc(stdout...
16,099