unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
186,788
1
bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::SubmitFrameMetadata( const H264SPS* sps, const H264PPS* pps, const H264DPB& dpb, const H264Picture::Vector& ref_pic_listp0, const H264Picture::Vector& ref_pic_listb0, const H264Picture::Vector& ref_pic_listb1, const scoped_refptr<H26...
2,600
51,378
0
PHP_FUNCTION(mb_ereg_replace) { _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0, 0); }
2,601
158,090
0
ContentSettingsClient& LocalFrameClientImpl::GetContentSettingsClient() { return web_frame_->GetContentSettingsClient(); }
2,602
130,034
0
std::string SerializeSeedBase64(const variations::VariationsSeed& seed) { std::string serialized_seed = SerializeSeed(seed); std::string base64_serialized_seed; base::Base64Encode(Compress(serialized_seed), &base64_serialized_seed); return base64_serialized_seed; }
2,603
7,791
0
static inline __maybe_unused void h2c_error(struct h2c *h2c, enum h2_err err) { h2c->errcode = err; h2c->st0 = H2_CS_ERROR; }
2,604
115,046
0
TestingAutomationProvider::TestingAutomationProvider(Profile* profile) : AutomationProvider(profile), #if defined(TOOLKIT_VIEWS) popup_menu_waiter_(NULL), #endif #if defined(OS_CHROMEOS) power_manager_observer_(NULL), #endif redirect_query_(0) { BrowserList::AddObserver(this); registrar_.Add(t...
2,605
129,888
0
PassRefPtrWillBeRawPtr<SpeechSynthesis> SpeechSynthesis::create(ExecutionContext* context) { return adoptRefWillBeRefCountedGarbageCollected(new SpeechSynthesis(context)); }
2,606
34,132
0
static int hci_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) { struct sock *sk = sock->sk; void __user *argp = (void __user *) arg; int err; BT_DBG("cmd %x arg %lx", cmd, arg); switch (cmd) { case HCIGETDEVLIST: return hci_get_dev_list(argp); case HCIGETDEVINFO: return hci_get_...
2,607
71,430
0
MagickExport void GetMagickMemoryMethods( AcquireMemoryHandler *acquire_memory_handler, ResizeMemoryHandler *resize_memory_handler, DestroyMemoryHandler *destroy_memory_handler) { assert(acquire_memory_handler != (AcquireMemoryHandler *) NULL); assert(resize_memory_handler != (ResizeMemoryHandler *) NULL); ...
2,608
165,711
0
void FileReaderLoader::Failed(FileErrorCode error_code, FailureType type) { DEFINE_THREAD_SAFE_STATIC_LOCAL(EnumerationHistogram, failure_histogram, ("Storage.Blob.FileReaderLoader.FailureType", static_cast<int>(FailureType::kCount))); if (error_c...
2,609
57,606
0
long keyctl_keyring_clear(key_serial_t ringid) { key_ref_t keyring_ref; long ret; keyring_ref = lookup_user_key(ringid, KEY_LOOKUP_CREATE, KEY_NEED_WRITE); if (IS_ERR(keyring_ref)) { ret = PTR_ERR(keyring_ref); /* Root is permitted to invalidate certain special keyrings */ if (capable(CAP_SYS_ADMIN)) { k...
2,610
45,902
0
static u64 l3hash(u64 p1, u64 p2, u64 k1, u64 k2, u64 len) { u64 rh, rl, t, z = 0; /* fully reduce (p1,p2)+(len,0) mod p127 */ t = p1 >> 63; p1 &= m63; ADD128(p1, p2, len, t); /* At this point, (p1,p2) is at most 2^127+(len<<64) */ t = (p1 > m63) + ((p1 == m63) && (p2 == m64)); ADD128(p1, p2, z, t); p1 &= m63...
2,611
117,048
0
void WriteString16ToPickle(Pickle& pickle, int* bytes_written, int max_bytes, const string16& str) { int num_bytes = str.size() * sizeof(char16); if (*bytes_written + num_bytes < max_bytes) { *bytes_written += num_bytes; pickle.WriteString16(str); } else { pickle.WriteString...
2,612
85,640
0
static void hns_xgmac_init(void *mac_drv) { struct mac_driver *drv = (struct mac_driver *)mac_drv; struct dsaf_device *dsaf_dev = (struct dsaf_device *)dev_get_drvdata(drv->dev); u32 port = drv->mac_id; dsaf_dev->misc_op->xge_srst(dsaf_dev, port, 0); mdelay(100); dsaf_dev->misc_op->xge_srst(dsaf_dev, port, 1);...
2,613
168,337
0
void PaintBackgroundAttachedMode(gfx::Canvas* canvas, const ui::ThemeProvider* theme_provider, const gfx::Rect& bounds, const gfx::Point& background_origin) { canvas->DrawColor(theme_provider->GetColor(ThemeProperties::...
2,614
148,541
0
void WebContentsImpl::RequestFindMatchRects(int current_version) { GetOrCreateFindRequestManager()->RequestFindMatchRects(current_version); }
2,615
95,802
0
static pack_t *FS_LoadZipFile(const char *zipfile, const char *basename ) { fileInPack_t *buildBuffer; pack_t *pack; unzFile uf; int err; unz_global_info gi; char filename_inzip[MAX_ZPATH]; unz_file_info file_info; int i, len; long hash; int fs_numHeaderLongs; int *fs_headerLongs; ch...
2,616
181,793
1
static Image *ReadWMFImage(const ImageInfo *image_info,ExceptionInfo *exception) { double bounding_height, bounding_width, image_height, image_height_inch, image_width, image_width_inch, resolution_y, resolution_x, units_per_inch; float wmf_width, wmf_height; Image ...
2,617
181,311
1
static struct svc_serv *nfs_callback_create_svc(int minorversion) { struct nfs_callback_data *cb_info = &nfs_callback_info[minorversion]; struct svc_serv *serv; struct svc_serv_ops *sv_ops; /* * Check whether we're already up and running. */ if (cb_info->serv) { /* * Note: increase service usage, because later in case...
2,618
174,217
0
status_t Camera3Device::RequestThread::flush() { ATRACE_CALL(); Mutex::Autolock l(mFlushLock); if (mHal3Device->common.version >= CAMERA_DEVICE_API_VERSION_3_1) { return mHal3Device->ops->flush(mHal3Device); } return -ENOTSUP; }
2,619
95,131
0
static void cmd_append(char *tag, char *name, const char *cur_name) { int c; static struct buf arg; time_t now = time(NULL); quota_t qdiffs[QUOTA_NUMRESOURCES] = QUOTA_DIFFS_INITIALIZER; unsigned size; int sync_seen = 0; int r; int i; struct appendstate appendstate; unsigned long...
2,620
137,149
0
bool Textfield::AcceleratorPressed(const ui::Accelerator& accelerator) { ui::KeyEvent event( accelerator.key_state() == ui::Accelerator::KeyState::PRESSED ? ui::ET_KEY_PRESSED : ui::ET_KEY_RELEASED, accelerator.key_code(), accelerator.modifiers()); ExecuteTextEditCommand(GetCommandFo...
2,621
136,538
0
DisplayItem& PaintController::MoveItemFromCurrentListToNewList(size_t index) { items_moved_into_new_list_.resize( current_paint_artifact_.GetDisplayItemList().size()); items_moved_into_new_list_[index] = new_display_item_list_.size(); return new_display_item_list_.AppendByMoving( current_paint_artifac...
2,622
137,272
0
bool Textfield::PasteSelectionClipboard() { DCHECK(performing_user_action_); DCHECK(!read_only()); const base::string16 selection_clipboard_text = GetSelectionClipboardText(); if (selection_clipboard_text.empty()) return false; model_->InsertText(selection_clipboard_text); return true; }
2,623
26,257
0
int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent) { struct rt_rq *rt_rq; struct sched_rt_entity *rt_se; int i; tg->rt_rq = kzalloc(sizeof(rt_rq) * nr_cpu_ids, GFP_KERNEL); if (!tg->rt_rq) goto err; tg->rt_se = kzalloc(sizeof(rt_se) * nr_cpu_ids, GFP_KERNEL); if (!tg->rt_se) goto err...
2,624
48,031
0
static int handle_invvpid(struct kvm_vcpu *vcpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); u32 vmx_instruction_info; unsigned long type, types; gva_t gva; struct x86_exception e; int vpid; if (!(vmx->nested.nested_vmx_secondary_ctls_high & SECONDARY_EXEC_ENABLE_VPID) || !(vmx->nested.nested_vmx_vpid_caps...
2,625
169,912
0
xsltFreeKeyTable(xsltKeyTablePtr keyt) { if (keyt == NULL) return; if (keyt->name != NULL) xmlFree(keyt->name); if (keyt->nameURI != NULL) xmlFree(keyt->nameURI); if (keyt->keys != NULL) xmlHashFree(keyt->keys, (xmlHashDeallocator) xmlXPathFreeNodeSet); memset(keyt, -1, sizeof(xsltKeyTable...
2,626
68,467
0
int ip_cmsg_send(struct sock *sk, struct msghdr *msg, struct ipcm_cookie *ipc, bool allow_ipv6) { int err, val; struct cmsghdr *cmsg; struct net *net = sock_net(sk); for_each_cmsghdr(cmsg, msg) { if (!CMSG_OK(msg, cmsg)) return -EINVAL; #if IS_ENABLED(CONFIG_IPV6) if (allow_ipv6 && cmsg->cmsg_level...
2,627
106,812
0
IntRect RenderBox::absoluteContentBox() const { IntRect rect = contentBoxRect(); FloatPoint absPos = localToAbsolute(FloatPoint()); rect.move(absPos.x(), absPos.y()); return rect; }
2,628
20,941
0
cdf_read_summary_info(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) { size_t i; const cdf_directory_t *d; static const char name[] = "\05SummaryInformation"; for (i = dir->dir_len; i > 0; i--) ...
2,629
136,568
0
CreateTransformWithCompositorElementId( const CompositorElementId& compositor_element_id) { TransformPaintPropertyNode::State state; state.compositor_element_id = compositor_element_id; return TransformPaintPropertyNode::Create(TransformPaintPropertyNode::Root(), ...
2,630
108,580
0
void FontCache::getTraitsInFamily(const AtomicString& familyName, Vector<unsigned>& traitsMasks) { HWndDC hdc(0); LOGFONT logFont; logFont.lfCharSet = DEFAULT_CHARSET; unsigned familyLength = min(familyName.length(), static_cast<unsigned>(LF_FACESIZE - 1)); familyName.string().copyTo(logFont.lfFace...
2,631
49,673
0
static ssize_t disk_capability_show(struct device *dev, struct device_attribute *attr, char *buf) { struct gendisk *disk = dev_to_disk(dev); return sprintf(buf, "%x\n", disk->flags); }
2,632
26,831
0
static ssize_t oom_adjust_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { struct task_struct *task; char buffer[PROC_NUMBUF]; int oom_adjust; unsigned long flags; int err; memset(buffer, 0, sizeof(buffer)); if (count > sizeof(buffer) - 1) count = sizeof(buffer) - 1; if (cop...
2,633
103,753
0
bool RenderThread::IsRegisteredExtension( const std::string& v8_extension_name) const { return v8_extensions_.find(v8_extension_name) != v8_extensions_.end(); }
2,634
60,021
0
static struct tty_driver *usb_console_device(struct console *co, int *index) { struct tty_driver **p = (struct tty_driver **)co->data; if (!*p) return NULL; *index = co->index; return *p; }
2,635
137,873
0
MediaControlOverlayEnclosureElement::preDispatchEventHandler(Event* event) { if (event && (event->type() == EventTypeNames::click || event->type() == EventTypeNames::touchstart)) mediaControls().showOverlayCastButtonIfNeeded(); return MediaControlDivElement::preDispatchEventHandler(event); }
2,636
138,525
0
void WorkerThread::terminateV8Execution() { ASSERT(isMainThread()); m_workerGlobalScope->script()->willScheduleExecutionTermination(); v8::V8::TerminateExecution(m_isolate); }
2,637
80,656
0
GF_Err uuid_Read(GF_Box *s, GF_BitStream *bs) { u32 bytesToRead; GF_UnknownUUIDBox *ptr = (GF_UnknownUUIDBox *)s; if (ptr->size > 0xFFFFFFFF) return GF_ISOM_INVALID_FILE; bytesToRead = (u32) (ptr->size); if (bytesToRead) { ptr->data = (char*)gf_malloc(bytesToRead); if (ptr->data == NULL ) return GF_OUT_OF_MEM...
2,638
50,400
0
static struct posix_acl *reiserfs_posix_acl_from_disk(const void *value, size_t size) { const char *end = (char *)value + size; int n, count; struct posix_acl *acl; if (!value) return NULL; if (size < sizeof(reiserfs_acl_header)) return ERR_PTR(-EINVAL); if (((reiserfs_acl_header *) value)->a_version != ...
2,639
142,807
0
bool HTMLMediaElement::HasClosedCaptions() const { if (!text_tracks_) return false; for (unsigned i = 0; i < text_tracks_->length(); ++i) { if (text_tracks_->AnonymousIndexedGetter(i)->CanBeRendered()) return true; } return false; }
2,640
124,346
0
MessageService::MessageService( LazyBackgroundTaskQueue* queue) : lazy_background_task_queue_(queue), weak_factory_(this) { registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_TERMINATED, content::NotificationService::AllBrowserContextsAndSources()); registrar_.Add(this, conte...
2,641
39,589
0
void aio_complete(struct kiocb *iocb, long res, long res2) { struct kioctx *ctx = iocb->ki_ctx; struct aio_ring *ring; struct io_event *ev_page, *event; unsigned long flags; unsigned tail, pos; /* * Special case handling for sync iocbs: * - events go directly into the iocb for fast handling * - the sync ...
2,642
166,045
0
void RTCPeerConnectionHandler::getStats( const scoped_refptr<LocalRTCStatsRequest>& request) { DCHECK(task_runner_->RunsTasksInCurrentSequence()); TRACE_EVENT0("webrtc", "RTCPeerConnectionHandler::getStats"); rtc::scoped_refptr<webrtc::StatsObserver> observer( new rtc::RefCountedObject<StatsResponse>(r...
2,643
69,196
0
ZEND_API uint32_t ZEND_FASTCALL zend_hash_iterator_add(HashTable *ht, HashPosition pos) { HashTableIterator *iter = EG(ht_iterators); HashTableIterator *end = iter + EG(ht_iterators_count); uint32_t idx; if (EXPECTED(ht->u.v.nIteratorsCount != 255)) { ht->u.v.nIteratorsCount++; } while (iter != end) { if (i...
2,644
42,026
0
static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) { struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); if (IS_ERR(ipcp)) return ERR_CAST(ipcp); return container_of(ipcp, struct shmid_kernel, shm_perm); }
2,645
67,491
0
static int fsmMkdirs(rpmfiles files, rpmfs fs, rpmPlugins plugins) { DNLI_t dnli = dnlInitIterator(files, fs, 0); struct stat sb; const char *dpath; int dc = rpmfilesDC(files); int rc = 0; int i; int ldnlen = 0; int ldnalloc = 0; char * ldn = NULL; short * dnlx = NULL; dnlx...
2,646
187,311
1
_exsltDateAdd (exsltDateValPtr dt, exsltDateValPtr dur) { exsltDateValPtr ret; long carry, tempdays, temp; exsltDateValDatePtr r, d; exsltDateValDurationPtr u; if ((dt == NULL) || (dur == NULL)) return NULL; ret = exsltDateCreateDate(dt->type); if (ret == NULL) return NULL; r = &(ret->value.date); d = &(dt->value.da...
2,647
36,282
0
SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode) { struct dentry *dentry; struct path path; int error; unsigned int lookup_flags = LOOKUP_DIRECTORY; retry: dentry = user_path_create(dfd, pathname, &path, lookup_flags); if (IS_ERR(dentry)) return PTR_ERR(dentry); if (!IS_POSIXA...
2,648
140,229
0
const WTF::AtomicString& BluetoothRemoteGATTCharacteristic::interfaceName() const { return EventTargetNames::BluetoothRemoteGATTCharacteristic; }
2,649
25,487
0
void ptrace_disable(struct task_struct *child) { /* make sure the single step bit is not set. */ user_disable_single_step(child); }
2,650
65,654
0
nfsd_forget_delegations(struct list_head *reaplist) { struct nfs4_client *clp; struct nfs4_delegation *dp, *next; list_for_each_entry_safe(dp, next, reaplist, dl_recall_lru) { list_del_init(&dp->dl_recall_lru); clp = dp->dl_stid.sc_client; revoke_delegation(dp); put_client(clp); } }
2,651
92,273
0
XML_SetDefaultHandlerExpand(XML_Parser parser, XML_DefaultHandler handler) { if (parser == NULL) return; parser->m_defaultHandler = handler; parser->m_defaultExpandInternalEntities = XML_TRUE; }
2,652
17,258
0
CatalogueStartListFontsWithInfo(pointer client, FontPathElementPtr fpe, char *pat, int len, int max, pointer *privatep) { return CatalogueStartListFonts(client, fpe, pat, len, max, privatep, 0); }
2,653
86,313
0
void unregister_pernet_subsys(struct pernet_operations *ops) { mutex_lock(&net_mutex); unregister_pernet_operations(ops); mutex_unlock(&net_mutex); }
2,654
153,246
0
bool DesktopWindowTreeHostX11::IsActive() const { bool is_active = (has_window_focus_ || has_pointer_focus_) && !ignore_keyboard_input_; DCHECK(!is_active || window_mapped_in_server_); DCHECK(!has_window_focus_ || !has_pointer_focus_); return is_active; }
2,655
149,354
0
void BinaryUploadService::OnGetResponse(Request* request, DeepScanningClientResponse response) { if (!IsActive(request)) return; if (response.has_dlp_scan_verdict()) { received_dlp_verdicts_[request].reset(response.release_dlp_scan_verdict()); } if (response.has...
2,656
184,312
1
IPC::PlatformFileForTransit ProxyChannelDelegate::ShareHandleWithRemote( base::PlatformFile handle, const IPC::SyncChannel& channel, bool should_close_source) { return content::BrokerGetFileHandleForProcess(handle, channel.peer_pid(), should_close_source); }...
2,657
187,936
1
WORD32 ih264d_cavlc_4x4res_block_totalcoeff_2to10(UWORD32 u4_isdc, UWORD32 u4_total_coeff_trail_one, /*!<TotalCoefficients<<16+trailingones*/ dec_bit_stream_t *ps_bitstrm) { UWORD32 u4_total_zeroes; WORD32 i; UWORD32 *pu4_bitstrm_buf = ps_bitstrm->pu4_buffer; UWORD32 u4_bitstream_offset = ps_bitstrm->u4_ofst; UWORD32 ...
2,658
121,208
0
String HTMLInputElement::localizeValue(const String& proposedValue) const { if (proposedValue.isNull()) return proposedValue; return m_inputType->localizeValue(proposedValue); }
2,659
124,567
0
void RenderBlock::insertIntoTrackedRendererMaps(RenderBox* descendant, TrackedDescendantsMap*& descendantsMap, TrackedContainerMap*& containerMap) { if (!descendantsMap) { descendantsMap = new TrackedDescendantsMap; containerMap = new TrackedContainerMap; } TrackedRendererListHashSet* desce...
2,660
87,515
0
unsigned char lodepng_chunk_safetocopy(const unsigned char* chunk) { return((chunk[7] & 32) != 0); }
2,661
118,161
0
void WebContentsAndroid::ShowImeIfNeeded(JNIEnv* env, jobject obj) { RenderViewHost* host = web_contents_->GetRenderViewHost(); if (!host) return; host->Send(new ViewMsg_ShowImeIfNeeded(host->GetRoutingID())); }
2,662
159,194
0
void DownloadItemImpl::SetLastAccessTime(base::Time last_access_time) { last_access_time_ = last_access_time; UpdateObservers(); }
2,663
40,332
0
static void atrtr_device_down(struct net_device *dev) { struct atalk_route **r = &atalk_routes; struct atalk_route *tmp; write_lock_bh(&atalk_routes_lock); while ((tmp = *r) != NULL) { if (tmp->dev == dev) { *r = tmp->next; dev_put(dev); kfree(tmp); } else r = &tmp->next; } write_unlock_bh(&atalk...
2,664
73,532
0
static inline MagickOffsetType *ReadPSDRLEOffsets(Image *image, const PSDInfo *psd_info,const size_t size) { MagickOffsetType *offsets; ssize_t y; offsets=(MagickOffsetType *) AcquireQuantumMemory(size,sizeof(*offsets)); if(offsets != (MagickOffsetType *) NULL) { for (y=0; y < (ssize_t) si...
2,665
17,201
0
void BrowserContextDelegateTraits::Destruct(const BrowserContextDelegate* x) { if (content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)) { delete x; return; } if (!content::BrowserThread::DeleteSoon(content::BrowserThread::UI, FROM_HERE, x)) { LOG(...
2,666
148,849
0
bool RenderFrameHostManager::CanSubframeSwapProcess( const GURL& dest_url, SiteInstance* source_instance, SiteInstance* dest_instance, bool was_server_redirect) { DCHECK(!source_instance || !dest_instance); if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) return false; GURL resolve...
2,667
176,861
0
static bool initNative(JNIEnv* env, jobject obj) { ALOGV("%s:",__FUNCTION__); sJniAdapterServiceObj = env->NewGlobalRef(obj); sJniCallbacksObj = env->NewGlobalRef(env->GetObjectField(obj, sJniCallbacksField)); if (sBluetoothInterface) { int ret = sBluetoothInterface->init(&sBluetoothCallbacks); if (ret...
2,668
19,808
0
static int _nfs4_do_fsinfo(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fsinfo *fsinfo) { struct nfs4_fsinfo_arg args = { .fh = fhandle, .bitmask = server->attr_bitmask, }; struct nfs4_fsinfo_res res = { .fsinfo = fsinfo, }; struct rpc_message msg = { .rpc_proc = &nfs4_procedures[NFSPROC...
2,669
59,273
0
static struct mm_struct *dup_mm(struct task_struct *tsk) { struct mm_struct *mm, *oldmm = current->mm; int err; mm = allocate_mm(); if (!mm) goto fail_nomem; memcpy(mm, oldmm, sizeof(*mm)); if (!mm_init(mm, tsk, mm->user_ns)) goto fail_nomem; err = dup_mmap(mm, oldmm); if (err) goto free_pt; mm->hiw...
2,670
114,647
0
void WebPluginDelegateProxy::Paint(WebKit::WebCanvas* canvas, const gfx::Rect& damaged_rect) { gfx::Rect rect = damaged_rect.Intersect(plugin_rect_); if (!channel_host_ || !channel_host_->channel_valid()) { PaintSadPlugin(canvas, rect); return; } if (!uses_shared_bit...
2,671
5,264
0
void zend_shared_alloc_unlock(void) { /* Destroy translation table */ zend_hash_destroy(&xlat_table); ZCG(locked) = 0; #ifndef ZEND_WIN32 if (fcntl(lock_file, F_SETLK, &mem_write_unlock) == -1) { zend_accel_error(ACCEL_LOG_ERROR, "Cannot remove lock - %s (%d)", strerror(errno), errno); } #ifdef ZTS tsrm_mutex...
2,672
5,996
0
e1000e_intrmgr_stop_timer(E1000IntrDelayTimer *timer) { if (timer->running) { timer_del(timer->timer); timer->running = false; } }
2,673
182,950
1
static void setup_remaining_vcs(int src_fd, unsigned src_idx, bool utf8) { struct console_font_op cfo = { .op = KD_FONT_OP_GET, .width = UINT_MAX, .height = UINT_MAX, .charcount = UINT_MAX, }; struct unimapinit adv = {}; struct unimapdesc unimapd; _cleanup_free_ struct unipair* unipairs = NULL; _cleanup_free_ void *fon...
2,674
140,881
0
ControllerConnectionProxy::ControllerConnectionProxy( blink::WebPresentationConnection* controller_connection) : PresentationConnectionProxy(controller_connection) {}
2,675
9,054
0
static inline void vmxnet3_ring_init(PCIDevice *d, Vmxnet3Ring *ring, hwaddr pa, size_t size, size_t cell_size, bool zero_region) { ring->pa = pa; ring->si...
2,676
37,246
0
static void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) { u32 ar = vmx_read_guest_seg_ar(to_vmx(vcpu), VCPU_SREG_CS); *db = (ar >> 14) & 1; *l = (ar >> 13) & 1; }
2,677
51,460
0
static int gdImageTileGet (gdImagePtr im, int x, int y) { int srcx, srcy; int tileColor,p; if (!im->tile) { return -1; } srcx = x % gdImageSX(im->tile); srcy = y % gdImageSY(im->tile); p = gdImageGetPixel(im->tile, srcx, srcy); if (im->trueColor) { if (im->tile->trueColor) { tileColor = p; } else { ...
2,678
68,496
0
server_http_authenticate(struct server_config *srv_conf, struct client *clt) { char decoded[1024]; FILE *fp = NULL; struct http_descriptor *desc = clt->clt_descreq; const struct auth *auth = srv_conf->auth; struct kv *ba, key; size_t linesize = 0; ssize_t linelen; int ret = -1; char *line = NU...
2,679
147,563
0
static void NamedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& info) { ExceptionState exception_state( info.GetIsolate(), ExceptionState::kEnumerationContext, "TestObject"); TestObject* impl = V8TestObject::ToImpl(info.Holder()); Vector<String> names; impl->NamedPropertyEnume...
2,680
153,704
0
GLint GLES2Implementation::GetProgramResourceLocation( GLuint program, GLenum program_interface, const char* name) { GPU_CLIENT_SINGLE_THREAD_CHECK(); GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetProgramResourceLocation(" << program << ", " << program_interface << ", " << name ...
2,681
17,469
0
ProcXvQueryEncodings(ClientPtr client) { xvEncodingInfo einfo; xvQueryEncodingsReply rep; int totalSize; int nameSize; XvPortPtr pPort; int ne; XvEncodingPtr pe; REQUEST(xvQueryEncodingsReq); REQUEST_SIZE_MATCH(xvQueryEncodingsReq); VALIDATE_XV_PORT(stuff->port, pPort, DixReadA...
2,682
107,153
0
WebCore::IntRect LayerTreeHostQt::visibleContentsRect() const { return m_visibleContentsRect; }
2,683
133,902
0
bool FormAssociatedElement::stepMismatch() const { return false; }
2,684
34,173
0
static void __ip_vs_del_service(struct ip_vs_service *svc) { struct ip_vs_dest *dest, *nxt; struct ip_vs_scheduler *old_sched; struct ip_vs_pe *old_pe; struct netns_ipvs *ipvs = net_ipvs(svc->net); pr_info("%s: enter\n", __func__); /* Count only IPv4 services for old get/setsockopt interface */ if (svc->af == ...
2,685
100,295
0
static std::string SafeString(const char* s) { return s ? std::string(s) : std::string(); }
2,686
147,274
0
void V8TestObject::CallWithThisValueMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_callWithThisValue"); test_object_v8_internal::CallWithThisValueMethod(info); }
2,687
35,930
0
int net_ratelimit(void) { return __ratelimit(&net_ratelimit_state); }
2,688
95,913
0
int FS_FindVM(void **startSearch, char *found, int foundlen, const char *name, int enableDll) { searchpath_t *search, *lastSearch; directory_t *dir; pack_t *pack; char dllName[MAX_OSPATH], qvmName[MAX_OSPATH]; char *netpath; if(!fs_searchpaths) Com_Error(ERR_FATAL, "Filesystem call made without initialization"...
2,689
84,132
0
static struct blkcg_gq *blkg_alloc(struct blkcg *blkcg, struct request_queue *q, gfp_t gfp_mask) { struct blkcg_gq *blkg; int i; /* alloc and init base part */ blkg = kzalloc_node(sizeof(*blkg), gfp_mask, q->node); if (!blkg) return NULL; if (blkg_rwstat_init(&blkg->stat_bytes, gfp_mask) || blkg_r...
2,690
46,433
0
xfs_dir_open( struct inode *inode, struct file *file) { struct xfs_inode *ip = XFS_I(inode); int mode; int error; error = xfs_file_open(inode, file); if (error) return error; /* * If there are any blocks, read-ahead block 0 as we're almost * certain to have the next operation be a read there. */ mo...
2,691
3,789
0
_dbus_get_autolaunch_address (const char *scope, DBusString *address, DBusError *error) { HANDLE mutex; STARTUPINFOA si; PROCESS_INFORMATION pi; dbus_bool_t retval = FALSE; LPSTR lpFile; char dbus_exe_path[MAX_PATH]; char dbus_args[MAX_PATH * 2]; const char * daemon_name = ...
2,692
47,467
0
static void adf_chr_drv_destroy(void) { device_destroy(adt_ctl_drv.drv_class, MKDEV(adt_ctl_drv.major, 0)); cdev_del(&adt_ctl_drv.drv_cdev); class_destroy(adt_ctl_drv.drv_class); unregister_chrdev_region(MKDEV(adt_ctl_drv.major, 0), 1); }
2,693
65,558
0
void nfsd4_bump_seqid(struct nfsd4_compound_state *cstate, __be32 nfserr) { struct nfs4_stateowner *so = cstate->replay_owner; if (nfserr == nfserr_replay_me) return; if (!seqid_mutating_err(ntohl(nfserr))) { nfsd4_cstate_clear_replay(cstate); return; } if (!so) return; if (so->so_is_open_owner) relea...
2,694
45,906
0
static u64 vmac(unsigned char m[], unsigned int mbytes, const unsigned char n[16], u64 *tagl, struct vmac_ctx_t *ctx) { u64 *in_n, *out_p; u64 p, h; int i; in_n = ctx->__vmac_ctx.cached_nonce; out_p = ctx->__vmac_ctx.cached_aes; i = n[15] & 1; if ((*(u64 *)(n+8) != in_n[1]) || (*(u64 *)(n) != in_n[0])) {...
2,695
61,342
0
static av_cold int json_init(WriterContext *wctx) { JSONContext *json = wctx->priv; json->item_sep = json->compact ? ", " : ",\n"; json->item_start_end = json->compact ? " " : "\n"; return 0; }
2,696
30,530
0
static void __exit llc2_exit(void) { llc_station_exit(); llc_remove_pack(LLC_DEST_SAP); llc_remove_pack(LLC_DEST_CONN); sock_unregister(PF_LLC); llc_proc_exit(); llc_sysctl_exit(); proto_unregister(&llc_proto); }
2,697
35,098
0
struct page *follow_trans_huge_pmd(struct mm_struct *mm, unsigned long addr, pmd_t *pmd, unsigned int flags) { struct page *page = NULL; assert_spin_locked(&mm->page_table_lock); if (flags & FOLL_WRITE && !pmd_write(*pmd)) goto out; page = pmd_page(*pmd); VM_BUG_ON(!PageHead(page)); if (...
2,698
17,852
0
static int local_closedir(FsContext *ctx, V9fsFidOpenState *fs) { return closedir(fs->dir.stream); }
2,699