unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
71,000
0
void* Type_LUT8_Dup(struct _cms_typehandler_struct* self, const void *Ptr, cmsUInt32Number n) { return (void*) cmsPipelineDup((cmsPipeline*) Ptr); cmsUNUSED_PARAMETER(n); cmsUNUSED_PARAMETER(self); }
7,600
114,991
0
void TestingAutomationProvider::OnBrowserAdded(const Browser* browser) { }
7,601
48,548
0
static int ion_handle_add(struct ion_client *client, struct ion_handle *handle) { int id; struct rb_node **p = &client->handles.rb_node; struct rb_node *parent = NULL; struct ion_handle *entry; id = idr_alloc(&client->idr, handle, 1, 0, GFP_KERNEL); if (id < 0) return id; handle->id = id; while (*p) { pa...
7,602
41,024
0
cmsBool OptimizeMatrixShaper(cmsPipeline** Lut, cmsUInt32Number Intent, cmsUInt32Number* InputFormat, cmsUInt32Number* OutputFormat, cmsUInt32Number* dwFlags) { cmsStage* Curve1, *Curve2; cmsStage* Matrix1, *Matrix2; _cmsStageMatrixData* Data1; _cmsStageMatrixData* Data2; cmsMAT3 res; cmsBool Id...
7,603
125,072
0
void DrainMessageLoops() { MessageLoop::current()->RunUntilIdle(); message_loop_.RunUntilIdle(); }
7,604
49,079
0
bool brcmf_get_vif_state_any(struct brcmf_cfg80211_info *cfg, unsigned long state) { struct brcmf_cfg80211_vif *vif; list_for_each_entry(vif, &cfg->vif_list, list) { if (test_bit(state, &vif->sme_state)) return true; } return false; }
7,605
90,114
0
ZSTD_blockCompressor ZSTD_selectBlockCompressor(ZSTD_strategy strat, ZSTD_dictMode_e dictMode) { static const ZSTD_blockCompressor blockCompressor[3][(unsigned)ZSTD_btultra+1] = { { ZSTD_compressBlock_fast /* default for 0 */, ZSTD_compressBlock_fast, ZSTD_compressBlock_doubleFast, ...
7,606
29,884
0
void die(const char *str, struct pt_regs *regs, int err) { struct thread_info *thread = current_thread_info(); int ret; oops_enter(); raw_spin_lock_irq(&die_lock); console_verbose(); bust_spinlocks(1); ret = __die(str, err, thread, regs); if (regs && kexec_should_crash(thread->task)) crash_kexec(regs); b...
7,607
114,784
0
RegressionTestData(const char* filename, PipelineStatus init_status, PipelineStatus end_status, const char* video_md5, const char* audio_md5) : video_md5(video_md5), audio_md5(audio_md5), filename(filename), init_status(init_status), end_...
7,608
52,808
0
static ssize_t ib_ucm_send_drep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) { return ib_ucm_send_private_data(file, inbuf, in_len, ib_send_cm_drep); }
7,609
3,558
0
heap_available() { long avail = 0; void *probes[max_malloc_probes]; uint n; for (n = 0; n < max_malloc_probes; n++) { if ((probes[n] = malloc(malloc_probe_size)) == 0) break; if_debug2('a', "[a]heap_available probe[%d]=0x%lx\n", n, (ulong) probes[n]); ...
7,610
109,661
0
void Document::enqueueHashchangeEvent(const String& oldURL, const String& newURL) { enqueueWindowEvent(HashChangeEvent::create(oldURL, newURL)); }
7,611
73,067
0
BGD_DECLARE(void) gdImageFilledRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) { _gdImageFilledVRectangle(im, x1, y1, x2, y2, color); }
7,612
103,424
0
bool ExtensionService::CanCrossIncognito(const Extension* extension) { return IsIncognitoEnabled(extension->id()) && !extension->incognito_split_mode(); }
7,613
187,517
1
static int accept_server_socket(int sfd) { struct sockaddr_un remote; struct pollfd pfd; int fd; socklen_t len = sizeof(struct sockaddr_un); BTIF_TRACE_EVENT("accept fd %d", sfd); /* make sure there is data to process */ pfd.fd = sfd; pfd.events = POLLIN; if (poll(&pfd, 1, 0) == 0) { BTIF_TRACE_EVENT("accept po...
7,614
160,924
0
bool ChromeClientImpl::AcceptsLoadDrops() const { return !web_view_->Client() || web_view_->Client()->AcceptsLoadDrops(); }
7,615
80,759
0
GF_Err hnti_dump(GF_Box *a, FILE * trace) { gf_isom_box_dump_start(a, "HintTrackInfoBox", trace); fprintf(trace, ">\n"); gf_isom_box_dump_done("HintTrackInfoBox", NULL, trace); return GF_OK; }
7,616
33,486
0
static unsigned long shmem_default_max_blocks(void) { return totalram_pages / 2; }
7,617
82,786
0
static ut32 const_get_value(CPU_CONST *c) { return c ? MASK (c->size * 8) & c->value : 0; }
7,618
258
0
bgp_attr_intern (struct attr *attr) { struct attr *find; /* Intern referenced strucutre. */ if (attr->aspath) { if (! attr->aspath->refcnt) attr->aspath = aspath_intern (attr->aspath); else attr->aspath->refcnt++; } if (attr->community) { if (! attr->community->refcnt) attr->co...
7,619
74,879
0
static int asf_read_picture(AVFormatContext *s, int len) { ASFContext *asf = s->priv_data; AVPacket pkt = { 0 }; const CodecMime *mime = ff_id3v2_mime_tags; enum AVCodecID id = AV_CODEC_ID_NONE; char mimetype[64]; uint8_t *desc = NULL; AVStream *st = NULL; int ret, ...
7,620
82,949
0
static void add_metadata(RCore *r, RBinReloc *reloc, ut64 addr, int mode) { RBinFile * binfile = r->bin->cur; RBinObject *binobj = binfile ? binfile->o: NULL; RBinInfo *info = binobj ? binobj->info: NULL; RIOSection *section; int cdsz; cdsz = info? (info->bits == 64? 8: info->bits == 32? 4: info->bits == 16 ? 4:...
7,621
170,668
0
int VisualizerLib_Release(effect_handle_t handle) { VisualizerContext * pContext = (VisualizerContext *)handle; ALOGV("VisualizerLib_Release %p", handle); if (pContext == NULL) { return -EINVAL; } pContext->mState = VISUALIZER_STATE_UNINITIALIZED; delete pContext; return 0; }
7,622
186,297
1
InterstitialPage* WebContentsImpl::GetInterstitialPage() const { return GetRenderManager()->interstitial_page(); }
7,623
39,514
0
fst_enable_intr(struct fst_card_info *card) { if (card->family == FST_FAMILY_TXU) { outl(0x0f0c0900, card->pci_conf + INTCSR_9054); } else { outw(0x0543, card->pci_conf + INTCSR_9052); } }
7,624
170,282
0
void WaitForExtensionsDevModeControlsVisibility( content::WebContents* contents, const char* dev_controls_accessor_js, const char* dev_controls_visibility_check_js, bool expected_visible) { bool done = false; ASSERT_TRUE(content::ExecuteScriptAndExtractBool( contents, base::StringPrintf(...
7,625
150,358
0
EnsureCompositorIsLockedForOrientationChange() { if (!orientation_compositor_lock_) { ui::Compositor* compositor = widget_->GetNativeWindow()->layer()->GetCompositor(); orientation_compositor_lock_ = compositor->GetCompositorLock( this, base::TimeDelta::FromMilliseconds(kOrientationLockTim...
7,626
10,255
0
FT_New_Face( FT_Library library, const char* pathname, FT_Long face_index, FT_Face *aface ) { FT_Open_Args args; /* test for valid `library' and `aface' delayed to FT_Open_Face() */ if ( !pathname ) return FT_Err_Invalid_Argument; ar...
7,627
119,259
0
void HTMLFormElement::removeFormElement(FormAssociatedElement* e) { unsigned index; for (index = 0; index < m_associatedElements.size(); ++index) { if (m_associatedElements[index] == e) break; } ASSERT_WITH_SECURITY_IMPLICATION(index < m_associatedElements.size()); if (index < m_...
7,628
86,884
0
void tee_obj_attr_clear(struct tee_obj *o) { const struct tee_cryp_obj_type_props *tp; size_t n; if (!o->attr) return; tp = tee_svc_find_type_props(o->info.objectType); if (!tp) return; for (n = 0; n < tp->num_type_attrs; n++) { const struct tee_cryp_obj_type_attrs *ta = tp->type_attrs + n; attr_ops[ta...
7,629
94,246
0
static enum test_return test_binary_appendq(void) { return test_binary_concat_impl("test_binary_appendq", PROTOCOL_BINARY_CMD_APPENDQ); }
7,630
27,785
0
static inline int __br_ip6_hash(struct net_bridge_mdb_htable *mdb, const struct in6_addr *ip) { return jhash2((__force u32 *)ip->s6_addr32, 4, mdb->secret) & (mdb->max - 1); }
7,631
30,201
0
ftrace_profile_alloc(struct ftrace_profile_stat *stat, unsigned long ip) { struct ftrace_profile *rec = NULL; /* prevent recursion (from NMIs) */ if (atomic_inc_return(&stat->disabled) != 1) goto out; /* * Try to find the function again since an NMI * could have added it */ rec = ftrace_find_profiled_fun...
7,632
158,716
0
error::Error GLES2DecoderImpl::HandleGetAttachedShaders( uint32_t immediate_data_size, const volatile void* cmd_data) { const volatile gles2::cmds::GetAttachedShaders& c = *static_cast<const volatile gles2::cmds::GetAttachedShaders*>(cmd_data); uint32_t result_size = c.result_size; GLuint program_id...
7,633
126,330
0
void BrowserWindowGtk::DrawPopupFrame(cairo_t* cr, GtkWidget* widget, GdkEventExpose* event) { ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); int image_name = GetThemeFrameResource(); gfx::CairoCachedSurface* surface =...
7,634
94,944
0
static ssize_t ecryptfs_read_update_atime(struct kiocb *iocb, struct iov_iter *to) { ssize_t rc; struct path *path; struct file *file = iocb->ki_filp; rc = generic_file_read_iter(iocb, to); if (rc >= 0) { path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); touch_atime(path); } return rc; }
7,635
93,047
0
rdpdr_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv, RD_BOOL * timeout) { uint32 select_timeout = 0; /* Timeout value to be used for select() (in milliseconds). */ struct async_iorequest *iorq; char c; iorq = g_iorequest; while (iorq != NULL) { if (iorq->fd != 0) { switch (iorq->major) ...
7,636
160,273
0
MimeHandlerViewContainer::FromRenderFrame(content::RenderFrame* render_frame) { auto it = g_mime_handler_view_container_map.Get().find(render_frame); if (it == g_mime_handler_view_container_map.Get().end()) return std::vector<MimeHandlerViewContainer*>(); return std::vector<MimeHandlerViewContainer*>(it->sec...
7,637
66,959
0
AVHWAccel *av_hwaccel_next(const AVHWAccel *hwaccel) { return hwaccel ? hwaccel->next : first_hwaccel; }
7,638
184,812
1
v8::Handle<v8::Value> V8WebGLRenderingContext::getAttachedShadersCallback(const v8::Arguments& args) { INC_STATS("DOM.WebGLRenderingContext.getAttachedShaders()"); if (args.Length() < 1) return V8Proxy::throwNotEnoughArgumentsError(); ExceptionCode ec = 0; WebGLRenderingContext* context = V8WebGLRenderingCont...
7,639
6,039
0
e1000e_rss_get_hash_type(E1000ECore *core, struct NetRxPkt *pkt) { bool isip4, isip6, isudp, istcp; assert(e1000e_rss_enabled(core)); net_rx_pkt_get_protocols(pkt, &isip4, &isip6, &isudp, &istcp); if (isip4) { bool fragment = net_rx_pkt_get_ip4_info(pkt)->fragment; trace_e1000e_rx_rs...
7,640
173,898
0
bool Chapters::Edition::ExpandAtomsArray() { if (m_atoms_size > m_atoms_count) return true; // nothing else to do const int size = (m_atoms_size == 0) ? 1 : 2 * m_atoms_size; Atom* const atoms = new (std::nothrow) Atom[size]; if (atoms == NULL) return false; for (int idx = 0; idx < m_atoms_count; ++idx) { ...
7,641
61,543
0
static MagickBooleanType IsPS(const unsigned char *magick,const size_t length) { if (length < 4) return(MagickFalse); if (memcmp(magick,"%!",2) == 0) return(MagickTrue); if (memcmp(magick,"\004%!",3) == 0) return(MagickTrue); return(MagickFalse); }
7,642
98,507
0
void AutocompletePopupViewGtk::AcceptLine(size_t line, WindowOpenDisposition disposition) { const AutocompleteMatch& match = model_->result().match_at(line); const GURL url(match.destination_url); std::wstring keyword; const bool is_keyword_hint = model_->GetKeywordForM...
7,643
112,283
0
void ShellWindow::CloseContents(WebContents* contents) { Close(); }
7,644
54,875
0
static void show_edge(struct commit *commit) { add_preferred_base(commit->object.oid.hash); }
7,645
24,151
0
ar6000_ap_mode_profile_commit(struct ar6_softc *ar) { WMI_CONNECT_CMD p; unsigned long flags; /* No change in AP's profile configuration */ if(ar->ap_profile_flag==0) { A_PRINTF("COMMIT: No change in profile!!!\n"); return -ENODATA; } if(!ar->arSsidLen) { A_PRINTF("SSI...
7,646
168,273
0
gfx::Point BrowserView::GetCursorPointInParent() const { gfx::Point cursor_pos = display::Screen::GetScreen()->GetCursorScreenPoint(); views::View::ConvertPointFromScreen(GetWidget()->GetRootView(), &cursor_pos); return cursor_pos; }
7,647
91,571
0
int kvm_io_bus_write(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, int len, const void *val) { struct kvm_io_bus *bus; struct kvm_io_range range; int r; range = (struct kvm_io_range) { .addr = addr, .len = len, }; bus = srcu_dereference(vcpu->kvm->buses[bus_idx], &vcpu->kvm->srcu); if (!b...
7,648
180,542
1
mark_source_chains(const struct xt_table_info *newinfo, unsigned int valid_hooks, void *entry0) { unsigned int hook; /* No recursion; use packet counter to save back ptrs (reset to 0 as we leave), and comefrom to save source hook bitmask */ for (hook = 0; hook < NF_INET_NUMHOOKS; hook++) { unsigned int pos = newinfo->...
7,649
69,787
0
node_get_pref_dirport(const node_t *node, tor_addr_port_t *ap_out) { tor_assert(ap_out); if (node_ipv6_dir_preferred(node)) { node_get_pref_ipv6_dirport(node, ap_out); } else { /* the primary DirPort is always on IPv4 */ node_get_prim_dirport(node, ap_out); } }
7,650
91,606
0
static int vm_stat_clear(void *_offset, u64 val) { unsigned offset = (long)_offset; struct kvm *kvm; struct kvm_stat_data stat_tmp = {.offset = offset}; if (val) return -EINVAL; spin_lock(&kvm_lock); list_for_each_entry(kvm, &vm_list, vm_list) { stat_tmp.kvm = kvm; vm_stat_clear_per_vm((void *)&stat_tmp, ...
7,651
91,122
0
int ip_mc_validate_source(struct sk_buff *skb, __be32 daddr, __be32 saddr, u8 tos, struct net_device *dev, struct in_device *in_dev, u32 *itag) { int err; /* Primary sanity checks. */ if (!in_dev) return -EINVAL; if (ipv4_is_multicast(saddr) || ipv4_is_lbcast(saddr) || skb->protocol != htons(ETH_...
7,652
111,559
0
static JSValueRef setTouchModifierCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) { notImplemented(); return JSValueMakeUndefined(context); }
7,653
71,363
0
static int add_ref_from_push_spec(git_vector *refs, push_spec *push_spec) { git_pkt_ref *added = git__calloc(1, sizeof(git_pkt_ref)); GITERR_CHECK_ALLOC(added); added->type = GIT_PKT_REF; git_oid_cpy(&added->head.oid, &push_spec->loid); added->head.name = git__strdup(push_spec->refspec.dst); if (!added->head.na...
7,654
110,860
0
ui::TouchEvent* RootWindow::CreateTouchEvent(ui::EventType type, const gfx::Point& location, int touch_id, base::TimeDelta time_stamp) { return new TouchEvent(type, location, touch_id...
7,655
62,430
0
print_in_radiotap_namespace(netdissect_options *ndo, struct cpack_state *s, uint8_t *flags, uint32_t presentflags, int bit0) { #define BITNO_32(x) (((x) >> 16) ? 16 + BITNO_16((x) >> 16) : BITNO_16((x))) #define BITNO_16(x) (((x) >> 8) ? 8 + BITNO_8((x) >> 8) : BI...
7,656
61,257
0
EXPORTED int mboxlist_createsync(const char *name, int mbtype, const char *partition, const char *userid, const struct auth_state *auth_state, int options, unsigned uidvalidity, modseq_t highestmodseq, ...
7,657
31,256
0
int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) { unsigned long alignmask = crypto_ahash_alignmask(tfm); if ((unsigned long)key & alignmask) return ahash_setkey_unaligned(tfm, key, keylen); return tfm->setkey(tfm, key, keylen); }
7,658
184,649
1
void ScreenRecorder::DoAddConnection( scoped_refptr<ConnectionToClient> connection) { DCHECK(network_loop_->BelongsToCurrentThread()); connections_.push_back(connection); }
7,659
155,835
0
SupervisedUserWhitelistService* SupervisedUserService::GetWhitelistService() { return whitelist_service_.get(); }
7,660
42,403
0
level_store(struct mddev *mddev, const char *buf, size_t len) { char clevel[16]; ssize_t rv; size_t slen = len; struct md_personality *pers, *oldpers; long level; void *priv, *oldpriv; struct md_rdev *rdev; if (slen == 0 || slen >= sizeof(clevel)) return -EINVAL; rv = mddev_lock(mddev); if (rv) return r...
7,661
95,657
0
void CL_ClientDamageCommand( void ) { }
7,662
45,220
0
psf_fread (void *ptr, sf_count_t bytes, sf_count_t items, SF_PRIVATE *psf) { sf_count_t total = 0 ; ssize_t count ; if (psf->virtual_io) return psf->vio.read (ptr, bytes*items, psf->vio_user_data) / bytes ; items *= bytes ; /* Do this check after the multiplication above. */ if (items <= 0) return 0 ; whi...
7,663
70,435
0
static int jpc_dec_process_rgn(jpc_dec_t *dec, jpc_ms_t *ms) { jpc_rgn_t *rgn = &ms->parms.rgn; jpc_dec_tile_t *tile; if (JAS_CAST(int, rgn->compno) >= dec->numcomps) { jas_eprintf("invalid component number in RGN marker segment\n"); return -1; } switch (dec->state) { case JPC_MH: jpc_dec_cp_setfromrgn(dec...
7,664
67,445
0
static int lookup_open(struct nameidata *nd, struct path *path, struct file *file, const struct open_flags *op, bool got_write, int *opened) { struct dentry *dir = nd->path.dentry; struct inode *dir_inode = dir->d_inode; int open_flag = op->open_flag; struct dentry *dentry; int error, create_error = 0; u...
7,665
38,761
0
hstore_slice_to_array(PG_FUNCTION_ARGS) { HStore *hs = PG_GETARG_HS(0); HEntry *entries = ARRPTR(hs); char *ptr = STRPTR(hs); ArrayType *key_array = PG_GETARG_ARRAYTYPE_P(1); ArrayType *aout; Datum *key_datums; bool *key_nulls; Datum *out_datums; bool *out_nulls; int key_count; int ...
7,666
23,199
0
static struct nfs4_state *nfs4_do_open(struct inode *dir, struct dentry *dentry, fmode_t fmode, int flags, struct iattr *sattr, struct rpc_cred *cred) { struct nfs4_exception exception = { }; struct nfs4_state *res; int status; do { status = _nfs4_do_open(dir, dentry, fmode, flags, sattr, cred, &res); if (stat...
7,667
60,909
0
get_pixbuf_for_content (goffset file_len, char *file_contents) { gboolean res; GdkPixbuf *pixbuf, *pixbuf2; GdkPixbufLoader *loader; gsize chunk_len; pixbuf = NULL; loader = gdk_pixbuf_loader_new (); g_signal_connect (loader, "size-prepared", ...
7,668
52,979
0
static int setup_ctxt(struct file *fp) { struct hfi1_filedata *fd = fp->private_data; struct hfi1_ctxtdata *uctxt = fd->uctxt; struct hfi1_devdata *dd = uctxt->dd; int ret = 0; /* * Context should be set up only once, including allocation and * programming of eager buffers. This is done if context sharing *...
7,669
14,260
0
static void *php_libxml_streams_IO_open_wrapper(const char *filename, const char *mode, const int read_only) { php_stream_statbuf ssbuf; php_stream_context *context = NULL; php_stream_wrapper *wrapper = NULL; char *resolved_path, *path_to_open = NULL; void *ret_val = NULL; int isescaped=0; xmlURI *uri; TSRMLS_...
7,670
177,987
1
nm_ip4_config_commit (const NMIP4Config *config, int ifindex, guint32 default_route_metric) { NMIP4ConfigPrivate *priv = NM_IP4_CONFIG_GET_PRIVATE (config); guint32 mtu = nm_ip4_config_get_mtu (config); int i; g_return_val_if_fail (ifindex > 0, FALSE); g_return_val_if_fail (ifindex > 0, FALSE); g_return_val_if_fail (...
7,671
131,408
0
static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; TestObjectPythonV8Internal::idAttributeSetter(j...
7,672
23,481
0
static void nfs4_xdr_enc_pathconf(struct rpc_rqst *req, struct xdr_stream *xdr, const struct nfs4_pathconf_arg *args) { struct compound_hdr hdr = { .minorversion = nfs4_xdr_minorversion(&args->seq_args), }; encode_compound_hdr(xdr, req, &hdr); encode_sequence(xdr, &args->seq_args, &hdr); encode_putfh(xdr,...
7,673
165,486
0
bool ContentSecurityPolicy::AllowInlineStyle( Element* element, const String& context_url, const String& nonce, const WTF::OrdinalNumber& context_line, const String& style_content, InlineType inline_type, SecurityViolationReportingPolicy reporting_policy) const { DCHECK(element); if (ov...
7,674
180,736
1
void __detach_mounts(struct dentry *dentry) { struct mountpoint *mp; struct mount *mnt; namespace_lock(); mp = lookup_mountpoint(dentry); if (IS_ERR_OR_NULL(mp)) goto out_unlock; lock_mount_hash(); while (!hlist_empty(&mp->m_list)) { mnt = hlist_entry(mp->m_list.first, struct mount, mnt_mp_list); if (mnt->mnt.mnt_fla...
7,675
95,762
0
void FS_ClearPakReferences( int flags ) { searchpath_t *search; if ( !flags ) { flags = -1; } for ( search = fs_searchpaths; search; search = search->next ) { if ( search->pack ) { search->pack->referenced &= ~flags; } } }
7,676
154,550
0
error::Error DeleteHelper(GLsizei n, const volatile ClientType* client_ids, ClientServiceMap<ClientType, ServiceType>* id_map, DeleteFunction delete_function) { DCHECK(n >= 0); std::vector<ServiceType> service_ids(n, 0); for (GLsizei ii...
7,677
26,837
0
static int proc_attr_dir_readdir(struct file * filp, void * dirent, filldir_t filldir) { return proc_pident_readdir(filp,dirent,filldir, attr_dir_stuff,ARRAY_SIZE(attr_dir_stuff)); }
7,678
131,123
0
static void withActiveWindowAndFirstWindowAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectV8Internal::withActiveWindowAndFirstWindowAttributeAttributeGetter(info); TRACE_EVENT_SET_SAMPL...
7,679
89,762
0
static void sandbox_handler(int sig){ usleep(10000); // don't race to print a message fmessage("\nChild received signal %d, shutting down the sandbox...\n", sig); kill(-1, SIGTERM); sleep(1); if (monitored_pid) { int monsec = 9; char *monfile; if (asprintf(&monfile, "/proc/%d/cmdline", monitored_pid) == -1...
7,680
170,299
0
bool CanStorePersistentEntry(const device::mojom::UsbDeviceInfo& device_info) { return !device_info.serial_number->empty(); }
7,681
40,635
0
static bool packet_rcv_has_room(struct packet_sock *po, struct sk_buff *skb) { struct sock *sk = &po->sk; bool has_room; if (po->prot_hook.func != tpacket_rcv) return (atomic_read(&sk->sk_rmem_alloc) + skb->truesize) <= sk->sk_rcvbuf; spin_lock(&sk->sk_receive_queue.lock); if (po->tp_version == TPACKET_V3) ...
7,682
181,293
1
static void print_bpf_insn(struct bpf_insn *insn) { u8 class = BPF_CLASS(insn->code); if (class == BPF_ALU || class == BPF_ALU64) { if (BPF_SRC(insn->code) == BPF_X) verbose("(%02x) %sr%d %s %sr%d\n", insn->code, class == BPF_ALU ? "(u32) " : "", insn->dst_reg, bpf_alu_string[BPF_OP(insn->code) >> 4], class == BPF_ALU...
7,683
127,884
0
static bool ValidMpegAudioFrameHeader(const uint8* header, int header_size, int* framesize) { DCHECK_GE(header_size, 4); *framesize = 0; BitReader reader(header, 4); // Header can only be 4 bytes long. RCHECK(ReadBits(&reader, 11) == ...
7,684
68,877
0
static inline void fixup_objfreelist_debug(struct kmem_cache *cachep, void **list) { #if DEBUG void *next = *list; void *objp; while (next) { objp = next - obj_offset(cachep); next = *(void **)next; poison_obj(cachep, objp, POISON_FREE); } #endif }
7,685
17,379
0
ProcXineramaIsActive(ClientPtr client) { /* REQUEST(xXineramaIsActiveReq); */ xXineramaIsActiveReply rep; REQUEST_SIZE_MATCH(xXineramaIsActiveReq); rep = (xXineramaIsActiveReply) { .type = X_Reply, .sequenceNumber = client->sequence, .length = 0, #if 1 /* The following ...
7,686
105,013
0
void HttpBridge::SetUserAgent(const char* user_agent) { DCHECK_EQ(MessageLoop::current(), created_on_loop_); if (DCHECK_IS_ON()) { base::AutoLock lock(fetch_state_lock_); DCHECK(!fetch_state_.request_completed); } context_getter_for_request_->set_user_agent(user_agent); }
7,687
75,952
0
dbus_remove_object(vrrp_t *vrrp) { dbus_unregister_object(vrrp->iname); }
7,688
90,374
0
megasas_ld_list_query(struct megasas_instance *instance, u8 query_type) { int ret = 0, ld_index = 0, ids = 0; struct megasas_cmd *cmd; struct megasas_dcmd_frame *dcmd; struct MR_LD_TARGETID_LIST *ci; dma_addr_t ci_h = 0; u32 tgtid_count; ci = instance->ld_targetid_list_buf; ci_h = instance->ld_targetid_list_bu...
7,689
154,587
0
error::Error GLES2DecoderPassthroughImpl::DoClearBufferfv( GLenum buffer, GLint drawbuffers, const volatile GLfloat* value) { api()->glClearBufferfvFn(buffer, drawbuffers, const_cast<const GLfloat*>(value)); return error::kNoError; }
7,690
1,221
0
GBool PSOutputDev::axialShadedFill(GfxState *state, GfxAxialShading *shading) { double xMin, yMin, xMax, yMax; double x0, y0, x1, y1, dx, dy, mul; double tMin, tMax, t, t0, t1; int i; if (level == psLevel2Sep || level == psLevel3Sep) { if (shading->getColorSpace()->getMode() != csDeviceCMYK) { retu...
7,691
126,980
0
AudioRendererHost::AudioEntry* AudioRendererHost::LookupById(int stream_id) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); AudioEntryMap::iterator i = audio_entries_.find(stream_id); if (i != audio_entries_.end() && !i->second->pending_close) return i->second; return NULL; }
7,692
52,348
0
find_check_entry(struct ip6t_entry *e, struct net *net, const char *name, unsigned int size) { struct xt_entry_target *t; struct xt_target *target; int ret; unsigned int j; struct xt_mtchk_param mtpar; struct xt_entry_match *ematch; e->counters.pcnt = xt_percpu_counter_alloc(); if (IS_ERR_VALUE(e->counters....
7,693
174,679
0
WORD32 ih264d_do_mmco_for_gaps(dpb_manager_t *ps_dpb_mgr, UWORD8 u1_num_ref_frames /*!< num_ref_frames from active SeqParSet*/ ) { struct dpb_info_t *ps_next_dpb; UWORD8 u1_num_gaps; UWORD8 u1_st_ref_bufs, u1_lt_ref_bufs, u1_del_node; WORD8 i; WORD32 i4_frame_gaps = 1; ...
7,694
56,973
0
static int fuse_verify_ioctl_iov(struct iovec *iov, size_t count) { size_t n; u32 max = FUSE_MAX_PAGES_PER_REQ << PAGE_SHIFT; for (n = 0; n < count; n++, iov++) { if (iov->iov_len > (size_t) max) return -ENOMEM; max -= iov->iov_len; } return 0; }
7,695
160,663
0
void RenderFrameImpl::OnGetSerializedHtmlWithLocalLinks( const std::map<GURL, base::FilePath>& url_to_local_path, const std::map<int, base::FilePath>& frame_routing_id_to_local_path) { LinkRewritingDelegate delegate(url_to_local_path, frame_routing_id_to_local_path); WebFra...
7,696
181,013
1
ikev1_n_print(netdissect_options *ndo, u_char tpay _U_, const struct isakmp_gen *ext, u_int item_len, const u_char *ep, uint32_t phase _U_, uint32_t doi0 _U_, uint32_t proto0 _U_, int depth _U_) { const struct ikev1_pl_n *p; struct ikev1_pl_n n; const u_char *cp; const u_char *ep2; uint32_t doi; uint32_t proto; static ...
7,697
124,002
0
ActionBoxTest() {}
7,698
126,002
0
void NewTabObserver::Observe(int type, const content::NotificationSource& source, const content::NotificationDetails& details) { DCHECK_EQ(chrome::NOTIFICATION_TAB_PARENTED, type); NavigationController* controller = &(content::Source<content::WebConten...
7,699