unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
144,398
0
void ExtensionInstallPrompt::ShowConfirmation() { scoped_ptr<const PermissionSet> permissions_wrapper; const PermissionSet* permissions_to_display = nullptr; if (custom_permissions_.get()) { permissions_to_display = custom_permissions_.get(); } else if (extension_) { extensions::PermissionsUpdater( ...
4,700
109,726
0
PassRefPtr<HTMLCollection> Document::links() { return ensureCachedCollection(DocLinks); }
4,701
84,724
0
loop_get_status64(struct loop_device *lo, struct loop_info64 __user *arg) { struct loop_info64 info64; int err = 0; if (!arg) err = -EINVAL; if (!err) err = loop_get_status(lo, &info64); if (!err && copy_to_user(arg, &info64, sizeof(info64))) err = -EFAULT; return err; }
4,702
125,661
0
void RenderViewHostImpl::OnFrameTreeUpdated(const std::string& frame_tree) { DCHECK(false); frame_tree_ = frame_tree; delegate_->DidUpdateFrameTree(this); }
4,703
34,988
0
static int __sctp_connect(struct sock* sk, struct sockaddr *kaddrs, int addrs_size) { struct sctp_sock *sp; struct sctp_endpoint *ep; struct sctp_association *asoc = NULL; struct sctp_association *asoc2; struct sctp_transport *transport; union sctp_addr to; struct sctp_af *af; sctp_scope_t scope; lon...
4,704
114,692
0
UserResponse user_response() const { return user_response_; }
4,705
174,091
0
BpGraphicBufferConsumer::~BpGraphicBufferConsumer() {}
4,706
47,724
0
bool __netlink_ns_capable(const struct netlink_skb_parms *nsp, struct user_namespace *user_ns, int cap) { return ((nsp->flags & NETLINK_SKB_DST) || file_ns_capable(nsp->sk->sk_socket->file, user_ns, cap)) && ns_capable(user_ns, cap); }
4,707
56,494
0
static long setup_trampoline(unsigned int syscall, unsigned int __user *tramp) { int i; long err = 0; /* addi r1, r1, __SIGNAL_FRAMESIZE # Pop the dummy stackframe */ err |= __put_user(0x38210000UL | (__SIGNAL_FRAMESIZE & 0xffff), &tramp[0]); /* li r0, __NR_[rt_]sigreturn| */ err |= __put_user(0x38000000UL | (s...
4,708
98,166
0
void AutoFillManager::FillFormField(const AutoFillProfile* profile, AutoFillType type, webkit_glue::FormField* field) { DCHECK(profile); DCHECK(field); if (type.subgroup() == AutoFillType::PHONE_NUMBER) { FillPhoneNumberField(profile, fi...
4,709
81,409
0
static inline void trace_insert_eval_map_file(struct module *mod, struct trace_eval_map **start, int len) { }
4,710
75,950
0
dbus_object_create_path_vrrp(void) { return g_strconcat(DBUS_VRRP_OBJECT_ROOT, #if HAVE_DECL_CLONE_NEWNET global_data->network_namespace ? "/" : "", global_data->network_namespace ? global_data->network_namespace : "", #endif global_data->instance_name ? "/" : "", global_data->instance_name ? global_data->in...
4,711
57,650
0
store_tabletExecute(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct aiptek *aiptek = dev_get_drvdata(dev); /* We do not care what you write to this file. Merely the action * of writing to this file triggers a tablet reprogramming. */ memcpy(&aiptek->curSetting, &aiptek...
4,712
1,909
0
static void reds_mig_target_client_free(RedsMigTargetClient *mig_client) { RingItem *now, *next; ring_remove(&mig_client->link); reds->num_mig_target_clients--; RING_FOREACH_SAFE(now, next, &mig_client->pending_links) { RedsMigPendingLink *mig_link = SPICE_CONTAINEROF(now, RedsMigPendingLink, ...
4,713
42,962
0
static void free_receive_page_frags(struct virtnet_info *vi) { int i; for (i = 0; i < vi->max_queue_pairs; i++) if (vi->rq[i].alloc_frag.page) put_page(vi->rq[i].alloc_frag.page); }
4,714
102,776
0
virtual WebGLId createProgram() { return 1; }
4,715
69,768
0
init_nodelist(void) { if (PREDICT_UNLIKELY(the_nodelist == NULL)) { the_nodelist = tor_malloc_zero(sizeof(nodelist_t)); HT_INIT(nodelist_map, &the_nodelist->nodes_by_id); the_nodelist->nodes = smartlist_new(); } }
4,716
152,742
0
std::unique_ptr<HistogramBase> BooleanHistogram::PersistentCreate( const std::string& name, const BucketRanges* ranges, HistogramBase::AtomicCount* counts, HistogramBase::AtomicCount* logged_counts, HistogramSamples::Metadata* meta, HistogramSamples::Metadata* logged_meta) { return WrapUnique(...
4,717
17,683
0
ProcXFixesCreateRegionFromWindow(ClientPtr client) { RegionPtr pRegion; Bool copy = TRUE; WindowPtr pWin; int rc; REQUEST(xXFixesCreateRegionFromWindowReq); REQUEST_SIZE_MATCH(xXFixesCreateRegionFromWindowReq); LEGAL_NEW_RESOURCE(stuff->region, client); rc = dixLookupResourceByType((vo...
4,718
37,794
0
static void nested_svm_unmap(struct page *page) { kunmap(page); kvm_release_page_dirty(page); }
4,719
25,356
0
do_translation_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) { unsigned int index; pgd_t *pgd, *pgd_k; pud_t *pud, *pud_k; pmd_t *pmd, *pmd_k; if (addr < TASK_SIZE) return do_page_fault(addr, fsr, regs); if (user_mode(regs)) goto bad_area; index = pgd_index(addr); /* * FIXME...
4,720
58,534
0
static BOOL freerdp_peer_check_fds(freerdp_peer* client) { int status; rdpRdp* rdp; rdp = client->context->rdp; status = rdp_check_fds(rdp); if (status < 0) return FALSE; return TRUE; }
4,721
181,537
1
static int search_old_relocation(struct reloc_struct_t *reloc_table, ut32 addr_to_patch, int n_reloc) { int i; for (i = 0; i < n_reloc; i++) { if (addr_to_patch == reloc_table[i].data_offset) { return i; } } return -1; }
4,722
97,015
0
long get_user_pages_longterm(unsigned long start, unsigned long nr_pages, unsigned int gup_flags, struct page **pages, struct vm_area_struct **vmas_arg) { struct vm_area_struct **vmas = vmas_arg; struct vm_area_struct *vma_prev = NULL; long rc, i; if (!pages) return -EINVAL; if (!vmas) { vmas = kcalloc(n...
4,723
71,157
0
static int ceph_aes_encrypt2(const void *key, int key_len, void *dst, size_t *dst_len, const void *src1, size_t src1_len, const void *src2, size_t src2_len) { struct scatterlist sg_in[3], prealloc_sg; struct sg_table sg_out; struct crypto_skcipher *tfm = ceph_crypto_alloc_cipher(); SKCIPHER_...
4,724
165,372
0
void ClearShaderCacheOnIOThread(const base::FilePath& path, const base::Time begin, const base::Time end, base::OnceClosure callback) { DCHECK_CURRENTLY_ON(BrowserThread::IO); GetShaderCacheFactorySingleton()->ClearByPat...
4,725
4,212
0
cff_fd_select_get( CFF_FDSelect fdselect, FT_UInt glyph_index ) { FT_Byte fd = 0; switch ( fdselect->format ) { case 0: fd = fdselect->data[glyph_index]; break; case 3: /* first, compare to cache */ if ( (FT_UInt)( glyph_index - fdselect->c...
4,726
46,387
0
ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd, splice_direct_actor *actor) { struct pipe_inode_info *pipe; long ret, bytes; umode_t i_mode; size_t len; int i, flags; /* * We require the input being a regular file, as we don't want to * randomly drop data for eg socket -> so...
4,727
29,500
0
SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf) { struct msg_queue *msq; int err, version; struct ipc_namespace *ns; if (msqid < 0 || cmd < 0) return -EINVAL; version = ipc_parse_version(&cmd); ns = current->nsproxy->ipc_ns; switch (cmd) { case IPC_INFO: case MSG_INFO: { st...
4,728
110,805
0
void AutocompleteEditModel::OnWillKillFocus( gfx::NativeView view_gaining_focus) { SetSuggestedText(string16(), INSTANT_COMPLETE_NOW); InstantController* instant = controller_->GetInstant(); if (instant) instant->OnAutocompleteLostFocus(view_gaining_focus); }
4,729
119,309
0
void TranslateInfoBarDelegate::ToggleSiteBlacklist() { if (ui_delegate_.IsSiteBlacklisted()) { ui_delegate_.SetSiteBlacklist(false); } else { ui_delegate_.SetSiteBlacklist(true); infobar()->RemoveSelf(); } }
4,730
11,687
0
drive_eject_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, gpointer u...
4,731
182,006
1
php_http_url_t *php_http_url_parse(const char *str, size_t len, unsigned flags TSRMLS_DC) { size_t maxlen = 3 * len; struct parse_state *state = ecalloc(1, sizeof(*state) + maxlen); state->end = str + len; state->ptr = str; state->flags = flags; state->maxlen = maxlen; TSRMLS_SET_CTX(state->ts); if (!parse_scheme(st...
4,732
114,880
0
void TestingAutomationProvider::ExecuteJavascriptInRenderView( DictionaryValue* args, IPC::Message* reply_message) { string16 frame_xpath, javascript, extension_id, url_text; std::string error; int render_process_id, render_view_id; if (!args->GetString("frame_xpath", &frame_xpath)) { AutomationJSON...
4,733
154,953
0
DrawingBuffer* WebGLRenderingContextBase::GetDrawingBuffer() const { return drawing_buffer_.get(); }
4,734
114,026
0
virtual ~DummyVolumeControlDelegate() {}
4,735
23,940
0
static void age_mic_context(miccntx *cur, miccntx *old, u8 *key, int key_len, struct crypto_cipher *tfm) { /* If the current MIC context is valid and its key is the same as * the MIC register, there's nothing to do. */ if (cur->valid && (memcmp(cur->key, key, key_len) == 0)) return; /* Age current mic ...
4,736
129,075
0
base::string16 ExtensionDevToolsInfoBarDelegate::GetMessageText() const { return l10n_util::GetStringFUTF16(IDS_DEV_TOOLS_INFOBAR_LABEL, base::UTF8ToUTF16(client_name_)); }
4,737
121,681
0
void ChangeListLoader::LoadDirectoryFromServerAfterRefresh( const DirectoryFetchInfo& directory_fetch_info, const FileOperationCallback& callback, const base::FilePath* directory_path, FileError error) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); DCHECK(!callback.is_null()); DVLOG(1) ...
4,738
103,195
0
void Browser::ShowCollectedCookiesDialog(TabContents *tab_contents) { window()->ShowCollectedCookiesDialog(tab_contents); }
4,739
125,375
0
void GetLocalFileInfoOnBlockingPool( const FilePath& local_file, GDataFileError* error, int64* file_size, std::string* content_type) { DCHECK(error); DCHECK(file_size); DCHECK(content_type); if (!net::GetMimeTypeFromExtension(local_file.Extension(), content_type)) *content_type = kMimeTypeO...
4,740
88,376
0
static void decode_sce_lfe(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld, uint8_t id_syn_ele) { uint8_t channels = hDecoder->fr_channels; uint8_t tag = 0; if (channels+1 > MAX_CHANNELS) { hInfo->error = 12; return; ...
4,741
70,504
0
void re_yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner) { struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; yylval = yylval_param; }
4,742
102,461
0
bool LayerTreeCoordinator::flushPendingLayerChanges() { if (m_waitingForUIProcess) return false; m_shouldSyncFrame = false; bool didSync = m_webPage->corePage()->mainFrame()->view()->syncCompositingStateIncludingSubframes(); m_nonCompositedContentLayer->syncCompositingStateForThisLayerOnly(); ...
4,743
90,830
0
void gf_prompt_set_echo_off(Bool echo_off) { DWORD flags; HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE); BOOL ret = GetConsoleMode(hStdin, &flags); if (!ret) { DWORD err = GetLastError(); GF_LOG(GF_LOG_ERROR, GF_LOG_CONSOLE, ("[Console] GetConsoleMode() return with the following error code: %d\n", err)); } i...
4,744
87,536
0
void lodepng_decompress_settings_init(LodePNGDecompressSettings* settings) { settings->ignore_adler32 = 0; settings->custom_zlib = 0; settings->custom_inflate = 0; settings->custom_context = 0; }
4,745
118,791
0
GURL GetWindowOpenURL() { return ui_test_utils::GetTestUrl( base::FilePath(kTestDir), base::FilePath(FILE_PATH_LITERAL("window_open.html"))); }
4,746
109,642
0
void Document::didRemoveText(Node* text, unsigned offset, unsigned length) { if (!m_ranges.isEmpty()) { HashSet<Range*>::const_iterator end = m_ranges.end(); for (HashSet<Range*>::const_iterator it = m_ranges.begin(); it != end; ++it) (*it)->didRemoveText(text, offset, length); } ...
4,747
16,095
0
cdio_generic_unimplemented_eject_media (void *p_user_data) { /* Sort of a stub here. Perhaps log a message? */ return DRIVER_OP_UNSUPPORTED; }
4,748
144,014
0
png_push_restore_buffer(png_structp png_ptr, png_bytep buffer, png_size_t buffer_length) { png_ptr->current_buffer = buffer; png_ptr->current_buffer_size = buffer_length; png_ptr->buffer_size = buffer_length + png_ptr->save_buffer_size; png_ptr->current_buffer_ptr = png_ptr->current_buffer; }
4,749
106,355
0
void SyncBackendHost::SetAutofillMigrationDebugInfo( syncable::AutofillMigrationDebugInfo::PropertyToSet property_to_set, const syncable::AutofillMigrationDebugInfo& info) { return core_->syncapi()->SetAutofillMigrationDebugInfo(property_to_set, info); }
4,750
145,999
0
DrawingBufferClientRestorePixelUnpackBufferBinding() { if (!ContextGL()) return; ContextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER, ObjectOrZero(bound_pixel_unpack_buffer_.Get())); }
4,751
146,650
0
DrawingBuffer::TextureColorBufferParameters() { ColorBufferParameters parameters; parameters.target = GL_TEXTURE_2D; if (want_alpha_channel_) { parameters.allocate_alpha_channel = true; } else if (ContextProvider() ->GetCapabilities() .emulate_rgb_buffer_with_rgba) { pa...
4,752
28,937
0
static int arm_init(void) { int rc = kvm_init(NULL, sizeof(struct kvm_vcpu), 0, THIS_MODULE); return rc; }
4,753
61,629
0
static int64_t mxf_timestamp_to_int64(uint64_t timestamp) { struct tm time = { 0 }; time.tm_year = (timestamp >> 48) - 1900; time.tm_mon = (timestamp >> 40 & 0xFF) - 1; time.tm_mday = (timestamp >> 32 & 0xFF); time.tm_hour = (timestamp >> 24 & 0xFF); time.tm_min = (timestamp >> 16 & 0xFF); ...
4,754
134,320
0
views::View* ConvertPointToViewAndGetTooltipHandler( views::View* source, views::View* dest, const gfx::Point& point_in_source) { gfx::Point dest_point(point_in_source); views::View::ConvertPointToTarget(source, dest, &dest_point); return dest->GetTooltipHandlerForPoint(dest_point); }
4,755
39,834
0
static inline void put_tty_queue(unsigned char c, struct n_tty_data *ldata) { *read_buf_addr(ldata, ldata->read_head++) = c; }
4,756
39,708
0
void path_put(struct path *path) { dput(path->dentry); mntput(path->mnt); }
4,757
27,180
0
static void xt_client_event_handler(Widget w, XtPointer client_data, XEvent *event, Boolean *cont) { XtData *toolkit = (XtData *)client_data; switch (event->type) { case ClientMessage: if (event->xclient.message_type == XInternAtom(x_display, "_XEMBED", False)) { switch (event->xclient.data.l[1]) { case X...
4,758
177,881
1
struct edid *drm_load_edid_firmware(struct drm_connector *connector) { const char *connector_name = connector->name; char *edidname, *last, *colon, *fwstr, *edidstr, *fallback = NULL; struct edid *edid; if (edid_firmware[0] == '\0') return ERR_PTR(-ENOENT); /* * If there are multiple edid files specified and...
4,759
184,981
1
xmlParseEntityRef(xmlParserCtxtPtr ctxt) { const xmlChar *name; xmlEntityPtr ent = NULL; GROW; if (RAW != '&') return(NULL); NEXT; name = xmlParseName(ctxt); if (name == NULL) { xmlFatalErrMsg(ctxt, XML_ERR_NAME_REQUIRED, "xmlParseEntityRef: no name\n"); ret...
4,760
69,923
0
void _addReplySdsToList(client *c, sds s) { robj *tail; if (c->flags & CLIENT_CLOSE_AFTER_REPLY) { sdsfree(s); return; } if (listLength(c->reply) == 0) { listAddNodeTail(c->reply,createObject(OBJ_STRING,s)); c->reply_bytes += sdsZmallocSize(s); } else { tail...
4,761
170,630
0
void AecEnable(preproc_effect_t *effect) { webrtc::EchoControlMobile *aec = static_cast<webrtc::EchoControlMobile *>(effect->engine); ALOGV("AecEnable aec %p", aec); aec->Enable(true); }
4,762
46,243
0
static struct inode *bdev_alloc_inode(struct super_block *sb) { struct bdev_inode *ei = kmem_cache_alloc(bdev_cachep, GFP_KERNEL); if (!ei) return NULL; return &ei->vfs_inode; }
4,763
61,730
0
static int __init set_thash_entries(char *str) { ssize_t ret; if (!str) return 0; ret = kstrtoul(str, 0, &thash_entries); if (ret) return 0; return 1; }
4,764
139,551
0
static TriState StateStyle(LocalFrame& frame, CSSPropertyID property_id, const char* desired_value) { frame.GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets(); if (frame.GetEditor().Behavior().ShouldToggleStyleBasedOnStartOfSelection()) return fra...
4,765
169,006
0
void OfflinePageModelTaskified::GetPagesByNamespace( const std::string& name_space, const MultipleOfflinePageItemCallback& callback) { auto task = GetPagesTask::CreateTaskMatchingNamespace(store_.get(), callback, name_space); task_queue_.AddTask(std::m...
4,766
126,976
0
void AudioRendererHost::DoCompleteCreation( media::AudioOutputController* controller) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); AudioEntry* entry = LookupByController(controller); if (!entry) return; if (!peer_handle()) { NOTREACHED() << "Renderer process handle is invalid."; De...
4,767
150,136
0
void OnDraw(bool resourceless_software_draw) { gfx::Transform identity; gfx::Rect empty_rect; client_->OnDraw(identity, empty_rect, resourceless_software_draw); }
4,768
47,429
0
static inline struct aes_ctx *blk_aes_ctx(struct crypto_blkcipher *tfm) { return aes_ctx_common(crypto_blkcipher_ctx(tfm)); }
4,769
68,127
0
static void oidc_copy_tokens_to_request_state(request_rec *r, oidc_session_t *session, const char **s_id_token, const char **s_claims) { const char *id_token = NULL, *claims = NULL; oidc_session_get(r, session, OIDC_IDTOKEN_CLAIMS_SESSION_KEY, &id_token); oidc_session_get(r, session, OIDC_CLAIMS_SESSION_KEY, &cl...
4,770
125,121
0
void PluginServiceImpl::ForwardGetAllowedPluginForOpenChannelToPlugin( const PluginServiceFilterParams& params, const GURL& url, const std::string& mime_type, PluginProcessHost::Client* client, const std::vector<webkit::WebPluginInfo>&) { GetAllowedPluginForOpenChannelToPlugin(params.render_proces...
4,771
167,651
0
void OnSetIsInertOnUI(bool is_inert) { is_inert_ = is_inert; if (!msg_received_) { msg_received_ = true; message_loop_runner_->Quit(); } }
4,772
129,716
0
void ResourceFetcher::garbageCollectDocumentResourcesTimerFired(Timer<ResourceFetcher>* timer) { ASSERT_UNUSED(timer, timer == &m_garbageCollectDocumentResourcesTimer); garbageCollectDocumentResources(); }
4,773
38,239
0
void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size) { u8 *ptr = NULL; if (k >= SKF_NET_OFF) ptr = skb_network_header(skb) + k - SKF_NET_OFF; else if (k >= SKF_LL_OFF) ptr = skb_mac_header(skb) + k - SKF_LL_OFF; if (ptr >= skb->head && ptr + size <= skb_tail_pointer(...
4,774
20,173
0
static int __net_init sock_inuse_init_net(struct net *net) { net->core.inuse = alloc_percpu(struct prot_inuse); return net->core.inuse ? 0 : -ENOMEM; }
4,775
123,631
0
void InspectorPageAgent::setShowScrollBottleneckRects(ErrorString* errorString, bool show) { m_state->setBoolean(PageAgentState::pageAgentShowScrollBottleneckRects, show); if (show && !forceCompositingMode(errorString)) return; m_client->setShowScrollBottleneckRects(show); }
4,776
73,719
0
BGD_DECLARE(gdImagePtr) gdImageCreateFromWebpCtx (gdIOCtx * infile) { int width, height; uint8_t *filedata = NULL; uint8_t *argb = NULL; unsigned char *read, *temp; size_t size = 0, n; gdImagePtr im; int x, y; uint8_t *p; do { temp = gdRealloc(filedata, size+GD_WEBP_ALLOC_STEP); if (temp) { f...
4,777
179,017
1
static void sample_hbp_handler(struct perf_event *bp, int nmi, struct perf_sample_data *data, struct pt_regs *regs) { printk(KERN_INFO "%s value is changed\n", ksym_name); dump_stack(); printk(KERN_INFO "Dump stack from sample_hbp_handler\n"); }
4,778
155,833
0
SupervisedUserSettingsService* SupervisedUserService::GetSettingsService() { return SupervisedUserSettingsServiceFactory::GetForProfile(profile_); }
4,779
134,059
0
ExtensionRegistry* ExtensionRegistry::Get(content::BrowserContext* context) { return ExtensionRegistryFactory::GetForBrowserContext(context); }
4,780
152,106
0
void RenderFrameHostImpl::UpdateFrameFrozenState() { if (!base::FeatureList::IsEnabled(features::kFreezeFramesOnVisibility)) return; if (is_loading_) return; if (visibility_ == blink::mojom::FrameVisibility::kNotRendered) { frame_->SetLifecycleState(blink::mojom::FrameLifecycleState::kFrozen); } e...
4,781
183,158
1
static int ext4_fill_super(struct super_block *sb, void *data, int silent) { char *orig_data = kstrdup(data, GFP_KERNEL); struct buffer_head *bh; struct ext4_super_block *es = NULL; struct ext4_sb_info *sbi; ext4_fsblk_t block; ext4_fsblk_t sb_block = get_sb_block(&data); ext4_fsblk_t logical_sb_block; unsigned long of...
4,782
76,300
0
static noinline int mmc_ioctl_cdrom_read_audio(struct cdrom_device_info *cdi, void __user *arg) { struct cdrom_read_audio ra; int lba; if (copy_from_user(&ra, (struct cdrom_read_audio __user *)arg, sizeof(ra))) return -EFAULT; if (ra.addr_format == CDROM_MSF) lba = msf_to_lba(ra.addr.msf.min...
4,783
95,586
0
void Com_AppendCDKey( const char *filename ) { fileHandle_t f; char buffer[33]; char fbuffer[MAX_OSPATH]; Com_sprintf(fbuffer, sizeof(fbuffer), "%s/rtcwkey", filename); FS_SV_FOpenFileRead( fbuffer, &f ); if ( !f ) { Q_strncpyz( &cl_cdkey[16], " ", 17 ); return; } Com_Memset( buffer, 0, si...
4,784
141,304
0
const AtomicString& Document::bgColor() const { return BodyAttributeValue(kBgcolorAttr); }
4,785
171,113
0
static uint8_t *get_data(const camera_metadata_t *metadata) { return (uint8_t*)metadata + metadata->data_start; }
4,786
41,713
0
static int insert_inline_extent(struct btrfs_trans_handle *trans, struct btrfs_path *path, int extent_inserted, struct btrfs_root *root, struct inode *inode, u64 start, size_t size, size_t compressed_size, int compress_type, struct page **compressed_pages) { struct extent_buffer *leaf; struct page...
4,787
61,593
0
static int mxf_read_content_storage(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) { MXFContext *mxf = arg; switch (tag) { case 0x1901: if (mxf->packages_refs) av_log(mxf->fc, AV_LOG_VERBOSE, "Multiple packages_refs\n"); av_free(mxf->packages_refs); ...
4,788
17,465
0
ProcXvPutStill(ClientPtr client) { DrawablePtr pDraw; XvPortPtr pPort; GCPtr pGC; int status; REQUEST(xvPutStillReq); REQUEST_SIZE_MATCH(xvPutStillReq); VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); if (!(pPo...
4,789
11,918
0
BIO *cms_EnvelopedData_init_bio(CMS_ContentInfo *cms) { CMS_EncryptedContentInfo *ec; STACK_OF(CMS_RecipientInfo) *rinfos; CMS_RecipientInfo *ri; int i, ok = 0; BIO *ret; /* Get BIO first to set up key */ ec = cms->d.envelopedData->encryptedContentInfo; ret = cms_EncryptedContent_init_...
4,790
116,085
0
syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( syncable::ModelTypeSet types, sync_api::UserShare* share) { syncable::ScopedDirLookup lookup(share->dir_manager.get(), share->name); if (!lookup.good()) { NOTREACHED() << "ScopedDirLookup failed for " ...
4,791
12,599
0
static int rndis_reset_response(USBNetState *s, rndis_reset_msg_type *buf) { rndis_reset_cmplt_type *resp = rndis_queue_response(s, sizeof(rndis_reset_cmplt_type)); if (!resp) return USB_RET_STALL; resp->MessageType = cpu_to_le32(RNDIS_RESET_CMPLT); resp->MessageLength = cpu_to_le3...
4,792
4,715
0
on_user_changed_timeout (User *user) { user->changed_timeout_id = 0; accounts_user_emit_changed (ACCOUNTS_USER (user)); return G_SOURCE_REMOVE; }
4,793
120,419
0
void PopulateForm(const std::string& field_id) { std::string js("document.getElementById('" + field_id + "').focus();"); ASSERT_TRUE(content::ExecuteScript(GetRenderViewHost(), js)); SendKeyToPageAndWait(ui::VKEY_DOWN); SendKeyToPopupAndWait(ui::VKEY_DOWN); SendKeyToPopupAndWait(ui::VKEY_RETURN);...
4,794
164,081
0
GURL AppCache::GetNamespaceEntryUrl( const std::vector<AppCacheNamespace>& namespaces, const GURL& namespace_url) const { size_t count = namespaces.size(); for (size_t i = 0; i < count; ++i) { if (namespaces[i].namespace_url == namespace_url) return namespaces[i].target_url; } NOTREACHED(); ...
4,795
129,093
0
const std::string& extension_id() { return extension_id_; }
4,796
95,394
0
static int _do_auth(pool *p, xaset_t *conf, char *u, char *pw) { char *cpw = NULL; config_rec *c; if (conf) { c = find_config(conf, CONF_PARAM, "UserPassword", FALSE); while (c) { if (strcmp(c->argv[0], u) == 0) { cpw = (char *) c->argv[1]; break; } c = find_config_nex...
4,797
156,179
0
void RendererSchedulerImpl::CreateTraceEventObjectSnapshotLocked() const { TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID( TRACE_DISABLED_BY_DEFAULT("renderer.scheduler.debug"), "RendererScheduler", this, AsValueLocked(helper_.NowTicks())); }
4,798
108,940
0
void RenderViewImpl::OnFindMatchRects(int current_version) { if (!webview()) return; WebFrame* main_frame = webview()->mainFrame(); std::vector<gfx::RectF> match_rects; int rects_version = main_frame->findMatchMarkersVersion(); if (current_version != rects_version) { WebVector<WebFloatRect> web_ma...
4,799