unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
101,606
0
void Browser::ConvertContentsToApplication(TabContents* contents) { const GURL& url = contents->controller().GetActiveEntry()->url(); std::string app_name = web_app::GenerateApplicationNameFromURL(url); DetachContents(contents); Browser* app_browser = Browser::CreateForApp( TYPE_POPUP, app_name, gfx::Rec...
12,300
33,336
0
static void edge_release(struct usb_serial *serial) { kfree(usb_get_serial_data(serial)); }
12,301
12,067
0
EC_GROUP *EC_GROUP_dup(const EC_GROUP *a) { EC_GROUP *t = NULL; int ok = 0; if (a == NULL) return NULL; if ((t = EC_GROUP_new(a->meth)) == NULL) return (NULL); if (!EC_GROUP_copy(t, a)) goto err; ok = 1; err: if (!ok) { if (t) EC_GROUP_free(t)...
12,302
45,129
0
static const char *req_document_root(request_rec *r) { return ap_document_root(r); }
12,303
98,639
0
void RenderWidget::OnCreateVideoAck(int32 video_id) { }
12,304
45,424
0
int ecryptfs_init_crypt_ctx(struct ecryptfs_crypt_stat *crypt_stat) { char *full_alg_name; int rc = -EINVAL; ecryptfs_printk(KERN_DEBUG, "Initializing cipher [%s]; strlen = [%d]; " "key_size_bits = [%zd]\n", crypt_stat->cipher, (int)strlen(crypt_stat->cipher), crypt_stat->key_size << 3); mutex_lock(&cr...
12,305
156,674
0
void NavigateFrameAndWait(FrameTreeNode* node, const GURL& url) { NavigateFrameToURL(node, url); EXPECT_TRUE(WaitForLoadStop(shell()->web_contents())); EXPECT_EQ(url, node->current_url()); }
12,306
12,952
0
ssh_packet_connection_is_on_socket(struct ssh *ssh) { struct session_state *state = ssh->state; struct sockaddr_storage from, to; socklen_t fromlen, tolen; /* filedescriptors in and out are the same, so it's a socket */ if (state->connection_in == state->connection_out) return 1; fromlen = sizeof(from); memse...
12,307
154,452
0
size_t GLES2DecoderPassthroughImpl::GetCreatedBackTextureCountForTest() { return create_color_buffer_count_for_test_; }
12,308
24,500
0
cifs_sb_master_tlink(struct cifs_sb_info *cifs_sb) { return cifs_sb->master_tlink; }
12,309
97,585
0
xmlXPathCastNumberToBoolean (double val) { if (xmlXPathIsNaN(val) || (val == 0.0)) return(0); return(1); }
12,310
78,811
0
int sc_pkcs15emu_sc_hsm_get_curve_oid(sc_cvc_t *cvc, const struct sc_lv_data **oid) { int i; for (i = 0; curves[i].oid.value; i++) { if ((curves[i].prime.len == cvc->primeOrModuluslen) && !memcmp(curves[i].prime.value, cvc->primeOrModulus, cvc->primeOrModuluslen)) { *oid = &curves[i].oid; return SC_SUCCESS; ...
12,311
155,766
0
PassRefPtr<SerializedScriptValue> SerializedScriptValue::nullValue() { SerializedScriptValueWriter writer; writer.writeNull(); String wireData = writer.takeWireString(); return adoptRef(new SerializedScriptValue(wireData)); }
12,312
24,079
0
static u16 setup_card(struct airo_info *ai, u8 *mac, int lock) { Cmd cmd; Resp rsp; int status; SsidRid mySsid; __le16 lastindex; WepKeyRid wkr; int rc; memset( &mySsid, 0, sizeof( mySsid ) ); kfree (ai->flash); ai->flash = NULL; /* The NOP is the first step in getting the card going */ cmd.cmd = NOP; cm...
12,313
134,865
0
int GetSystemMetricsInDIP(int metric) { return static_cast<int>(GetSystemMetrics(metric) / GetDeviceScaleFactor() + 0.5); }
12,314
66,114
0
static int inet_csk_bind_conflict(const struct sock *sk, const struct inet_bind_bucket *tb, bool relax, bool reuseport_ok) { struct sock *sk2; bool reuse = sk->sk_reuse; bool reuseport = !!sk->sk_reuseport && reuseport_ok; kuid_t uid = sock_i_uid((struct sock *)sk); /* * Unlike other sk lookup place...
12,315
81,949
0
void cliSetPreferences(char **argv, int argc, int interactive) { if (!strcasecmp(argv[0],":set") && argc >= 2) { if (!strcasecmp(argv[1],"hints")) pref.hints = 1; else if (!strcasecmp(argv[1],"nohints")) pref.hints = 0; else { printf("%sunknown redis-cli preference '%s'\n", ...
12,316
182,645
1
TEE_Result tee_mmu_check_access_rights(const struct user_ta_ctx *utc, uint32_t flags, uaddr_t uaddr, size_t len) { uaddr_t a; size_t addr_incr = MIN(CORE_MMU_USER_CODE_SIZE, CORE_MMU_USER_PARAM_SIZE); if (ADD_OVERFLOW(uaddr, len, &a)) return TEE_ERROR_ACCESS_DENIED; if ((flags & TEE_MEMORY_ACCESS_NONSECURE) && (flag...
12,317
87,241
0
archive_read_format_iso9660_read_header(struct archive_read *a, struct archive_entry *entry) { struct iso9660 *iso9660; struct file_info *file; int r, rd_r = ARCHIVE_OK; iso9660 = (struct iso9660 *)(a->format->data); if (!a->archive.archive_format) { a->archive.archive_format = ARCHIVE_FORMAT_ISO9660; a-...
12,318
12,773
0
int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (SSL *ssl, SSL_SESSION *sess) { return ctx->new_session_cb; }
12,319
14,917
0
static spl_ptr_heap *spl_ptr_heap_init(spl_ptr_heap_cmp_func cmp, spl_ptr_heap_ctor_func ctor, spl_ptr_heap_dtor_func dtor) /* {{{ */ { spl_ptr_heap *heap = emalloc(sizeof(spl_ptr_heap)); heap->dtor = dtor; heap->ctor = ctor; heap->cmp = cmp; heap->elements = safe_emalloc(sizeof(spl_ptr_heap_element)...
12,320
9,120
0
static int vrend_decode_set_sample_mask(struct vrend_decode_ctx *ctx, int length) { unsigned mask; if (length != VIRGL_SET_SAMPLE_MASK_SIZE) return EINVAL; mask = get_buf_entry(ctx, VIRGL_SET_SAMPLE_MASK_MASK); vrend_set_sample_mask(ctx->grctx, mask); return 0; }
12,321
50,053
0
static OPJ_BOOL opj_pi_next_rlcp(opj_pi_iterator_t * pi) { opj_pi_comp_t *comp = NULL; opj_pi_resolution_t *res = NULL; OPJ_UINT32 index = 0; if (!pi->first) { comp = &pi->comps[pi->compno]; res = &comp->resolutions[pi->resno]; goto LABEL_SKIP; } else { pi->first = 0; } for (pi->resno = pi->poc.resno0;...
12,322
129,199
0
virtual ~FramebufferInfoFloatTest() { }
12,323
31,800
0
static int sig_task_ignored(struct task_struct *t, int sig, bool force) { void __user *handler; handler = sig_handler(t, sig); if (unlikely(t->signal->flags & SIGNAL_UNKILLABLE) && handler == SIG_DFL && !force) return 1; return sig_handler_ignored(handler, sig); }
12,324
34,386
0
static noinline int insert_inline_extent(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, u64 start, size_t size, size_t compressed_size, int compress_type, struct page **compressed_pages) { struct btrfs_key key; struct btrfs_path *path; struct extent_buffer *leaf; str...
12,325
50,986
0
void propagate_mount_unlock(struct mount *mnt) { struct mount *parent = mnt->mnt_parent; struct mount *m, *child; BUG_ON(parent == mnt); for (m = propagation_next(parent, parent); m; m = propagation_next(m, parent)) { child = __lookup_mnt_last(&m->mnt, mnt->mnt_mountpoint); if (child) child->mnt.mnt_fla...
12,326
8,076
0
void Gfx::doForm1(Object *str, Dict *resDict, double *matrix, double *bbox, GBool transpGroup, GBool softMask, GfxColorSpace *blendingColorSpace, GBool isolated, GBool knockout, GBool alpha, Function *transferFunc, GfxColor *backdropColor) { Parser *oldParser; double oldBaseMatrix[6]; int i; ...
12,327
13,158
0
xps_encode_font_char(fz_font *font, int code) { FT_Face face = font->ft_face; int gid = FT_Get_Char_Index(face, code); if (gid == 0 && face->charmap && face->charmap->platform_id == 3 && face->charmap->encoding_id == 0) gid = FT_Get_Char_Index(face, 0xF000 | code); return gid; }
12,328
59,841
0
alloc_sglist(int nents, int max, int vary, struct usbtest_dev *dev, int pipe) { struct scatterlist *sg; unsigned int n_size = 0; unsigned i; unsigned size = max; unsigned maxpacket = get_maxpacket(interface_to_usbdev(dev->intf), pipe); if (max == 0) return NULL; sg = kmalloc_array(nents, sizeof(*sg), G...
12,329
151,203
0
KURL UrlWithoutFragment(const KURL& url) { KURL result = url; result.RemoveFragmentIdentifier(); return result; }
12,330
140,904
0
const AtomicString& connectionStateToString( WebPresentationConnectionState state) { DEFINE_STATIC_LOCAL(const AtomicString, connectingValue, ("connecting")); DEFINE_STATIC_LOCAL(const AtomicString, connectedValue, ("connected")); DEFINE_STATIC_LOCAL(const AtomicString, closedValue, ("closed")); DEFINE_STAT...
12,331
2,743
0
_dbus_header_create (DBusHeader *header, int message_type, const char *destination, const char *path, const char *interface, const char *member, const char *error_name) { unsign...
12,332
34,542
0
static void nci_add_new_target(struct nci_dev *ndev, struct nci_rf_discover_ntf *ntf) { struct nfc_target *target; int i, rc; for (i = 0; i < ndev->n_targets; i++) { target = &ndev->targets[i]; if (target->logical_idx == ntf->rf_discovery_id) { /* This target already exists, add the new protocol */...
12,333
125,402
0
void GDataFileSystem::OnGetAvailableSpace( const GetAvailableSpaceCallback& callback, GDataErrorCode status, scoped_ptr<base::Value> data) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); DCHECK(!callback.is_null()); GDataFileError error = util::GDataToGDataFileError(status); if (error != G...
12,334
179,622
1
static int futex_wait_requeue_pi(u32 __user *uaddr, int fshared, u32 val, ktime_t *abs_time, u32 bitset, int clockrt, u32 __user *uaddr2) { struct hrtimer_sleeper timeout, *to = NULL; struct rt_mutex_waiter rt_waiter; struct rt_mutex *pi_mutex = NULL; struct futex_hash_bucket *hb; union futex_key key2; struct futex_q q...
12,335
111,634
0
GDataEntry* GDataDirectory::FindChild( const FilePath::StringType& file_name) const { GDataFileCollection::const_iterator it = child_files_.find(file_name); if (it != child_files_.end()) return it->second; GDataDirectoryCollection::const_iterator itd = child_directories_.find(file_name); if (itd ...
12,336
103,676
0
void BrowserRenderProcessHost::OnProcessLaunched() { if (deleting_soon_) return; if (child_process_launcher_.get()) child_process_launcher_->SetProcessBackgrounded(backgrounded_); if (max_page_id_ != -1) Send(new ViewMsg_SetNextPageID(max_page_id_ + 1)); NotificationService::current()->Notify( ...
12,337
55,877
0
void put_tty_driver(struct tty_driver *d) { tty_driver_kref_put(d); }
12,338
184,638
1
void RemoveClientSession() { context_.network_message_loop()->PostTask( FROM_HERE, base::Bind( &ClientSession::OnConnectionClosed, client_, connection_)); }
12,339
6,973
0
tt_cmap2_validate( FT_Byte* table, FT_Validator valid ) { FT_Byte* p; FT_UInt length; FT_UInt n, max_subs; FT_Byte* keys; /* keys table */ FT_Byte* subs; /* sub-headers */ FT_Byte* glyph_ids; /* glyph ID array */ if ( table + 2...
12,340
174,348
0
void Backtrace::FillInMap(uintptr_t pc, backtrace_map_t* map) { if (map_ != nullptr) { map_->FillIn(pc, map); } }
12,341
176,164
0
media_status_t AMediaCodec_delete(AMediaCodec *mData) { if (mData != NULL) { if (mData->mCodec != NULL) { mData->mCodec->release(); mData->mCodec.clear(); } if (mData->mLooper != NULL) { if (mData->mHandler != NULL) { mData->mLooper->unregisterHandler(mData->mHandler->id())...
12,342
87,288
0
static MagickBooleanType TraceArcPath(MVGInfo *mvg_info,const PointInfo start, const PointInfo end,const PointInfo arc,const double angle, const MagickBooleanType large_arc,const MagickBooleanType sweep) { double alpha, beta, delta, factor, gamma, theta; MagickStatusType status; ...
12,343
134,017
0
bool ExtensionAppItem::NeedsOverlay() const { #if defined(OS_CHROMEOS) return false; #endif extensions::LaunchType launch_type = GetExtension() ? extensions::GetLaunchType(extensions::ExtensionPrefs::Get(profile_), GetExtension()) : extensions::LAUNCH...
12,344
173,944
0
double VideoTrack::GetFrameRate() const { return m_rate; }
12,345
166,485
0
PermissionsUpdaterTestDelegate() {}
12,346
31,127
0
static int fb_check_caps(struct fb_info *info, struct fb_var_screeninfo *var, u32 activate) { struct fb_event event; struct fb_blit_caps caps, fbcaps; int err = 0; memset(&caps, 0, sizeof(caps)); memset(&fbcaps, 0, sizeof(fbcaps)); caps.flags = (activate & FB_ACTIVATE_ALL) ? 1 : 0; event.info = info; event...
12,347
162,238
0
void GamepadProvider::RemoveSourceGamepadDataFetcher(GamepadSource source) { polling_thread_->task_runner()->PostTask( FROM_HERE, base::Bind(&GamepadProvider::DoRemoveSourceGamepadDataFetcher, base::Unretained(this), source)); }
12,348
149,567
0
void ReadFromSocketWithPort(uint16_t port) { EXPECT_TRUE(base::Contains(sockets_, port)); sockets_[port] = SocketStatus::kReadFrom; first_read_loop_.Quit(); }
12,349
33,731
0
static struct hci_conn *hidp_get_connection(struct hidp_session *session) { bdaddr_t *src = &bt_sk(session->ctrl_sock->sk)->src; bdaddr_t *dst = &bt_sk(session->ctrl_sock->sk)->dst; struct hci_conn *conn; struct hci_dev *hdev; hdev = hci_get_route(dst, src); if (!hdev) return NULL; hci_dev_lock(hdev); conn ...
12,350
185,386
1
void SpeechSynthesis::handleSpeakingCompleted(SpeechSynthesisUtterance* utterance, bool errorOccurred) { ASSERT(utterance); bool didJustFinishCurrentUtterance = false; if (utterance == currentSpeechUtterance()) { m_utteranceQueue.removeFirst(); didJustFinishCurrentUtterance = true; ...
12,351
83,625
0
void zgfx_context_free(ZGFX_CONTEXT* zgfx) { free(zgfx); }
12,352
66,579
0
static void control_intr(struct virtqueue *vq) { struct ports_device *portdev; portdev = vq->vdev->priv; schedule_work(&portdev->control_work); }
12,353
170,302
0
void UsbChooserContext::EnsureConnectionWithDeviceManager() { if (device_manager_) return; device_manager_instance_ = std::make_unique<device::usb::DeviceManagerImpl>(); device_manager_instance_->AddBinding(mojo::MakeRequest(&device_manager_)); device_manager_.set_connection_error_handler( base::Bi...
12,354
123,398
0
void RenderWidgetHostViewGuest::SetCachedPageScaleFactorLimits( float minimum_scale, float maximum_scale) { NOTIMPLEMENTED(); }
12,355
72,912
0
int dump_passes(jpc_enc_pass_t *passes, int numpasses, jpc_enc_cblk_t *cblk) { jpc_enc_pass_t *pass; int i; jas_stream_memobj_t *smo; smo = cblk->stream->obj_; pass = passes; for (i = 0; i < numpasses; ++i) { jas_eprintf("start=%d end=%d type=%d term=%d lyrno=%d firstchar=%02x size=%ld pos=%ld\n", (int)pa...
12,356
73,935
0
static void process_level0_os9_area(LHAFileHeader *header, uint8_t *data, size_t data_len) { if (data_len < LEVEL_0_OS9_EXTENDED_LEN || data[9] != 0xcc || data[1] != data[17] || data[2] != data[18]) { return; } header->os_type = LHA_OS_TYPE_OS9; header->os9_perms = lha_de...
12,357
16,370
0
pseudo_get_user_info(ClassAd *&ad) { static ClassAd* user_ad = NULL; if( ! user_ad ) { user_ad = new ClassAd; #ifndef WIN32 char buf[1024]; sprintf( buf, "%s = %d", ATTR_UID, (int)get_user_uid() ); user_ad->Insert( buf ); sprintf( buf, "%s = %d", ATTR_GID, (int)get_user_gid() ); user_ad->Insert( buf ...
12,358
180,059
1
horDiff8(TIFF* tif, uint8* cp0, tmsize_t cc) { TIFFPredictorState* sp = PredictorState(tif); tmsize_t stride = sp->stride; unsigned char* cp = (unsigned char*) cp0; assert((cc%stride)==0); if (cc > stride) { cc -= stride; /* * Pipeline the most common cases. */ if (stride == 3) { unsigned int r1, g1, b1; unsigned in...
12,359
159,216
0
void DownloadItemImplDelegate::OpenDownload(DownloadItemImpl* download) {}
12,360
118,977
0
void WebContentsImpl::OnDidProgrammaticallyScroll( const gfx::Vector2d& scroll_point) { if (delegate_) delegate_->DidProgrammaticallyScroll(this, scroll_point); }
12,361
90,269
0
static unsigned char intf_mem_inb(const struct si_sm_io *io, unsigned int offset) { return readb((io->addr)+(offset * io->regspacing)); }
12,362
179,482
1
acc_ctx_cont(OM_uint32 *minstat, gss_buffer_t buf, gss_ctx_id_t *ctx, gss_buffer_t *responseToken, gss_buffer_t *mechListMIC, OM_uint32 *negState, send_token_flag *return_token) { OM_uint32 ret, tmpmin; gss_OID supportedMech; spnego_gss_ctx_id_t sc; unsigned int len; unsigned char *ptr, *bufstart; sc = (spnego_gss_ctx...
12,363
90,450
0
static ssize_t ib_uverbs_comp_event_read(struct file *filp, char __user *buf, size_t count, loff_t *pos) { struct ib_uverbs_completion_event_file *comp_ev_file = filp->private_data; return ib_uverbs_event_read(&comp_ev_file->ev_queue, comp_ev_file->uobj.ufile, filp, buf, count, pos, s...
12,364
139,684
0
void AudioContext::resolvePromisesForSuspend() { ASSERT(isAudioThread()); ASSERT(isGraphOwner()); if (m_suspendResolvers.size() > 0) callOnMainThread(bind(&AudioContext::resolvePromisesForSuspendOnMainThread, this)); }
12,365
136,494
0
FloatClipRect GeometryMapper::LocalToAncestorClipRect( const PropertyTreeState& local_state, const PropertyTreeState& ancestor_state, OverlayScrollbarClipBehavior clip_behavior) { if (local_state.Clip() == ancestor_state.Clip()) return FloatClipRect(); bool success = false; auto result = LocalToA...
12,366
158,971
0
void PDFiumEngine::LoadDocument() { if (!doc_ && !doc_loader_->IsDocumentComplete() && !FPDFAvail_IsDocAvail(fpdf_availability_, &download_hints_)) { return; } if (getting_password_) return; ScopedUnsupportedFeature scoped_unsupported_feature(this); ScopedSubstFont scoped_subst_font(this); b...
12,367
52,609
0
init_ppp_file(struct ppp_file *pf, int kind) { pf->kind = kind; skb_queue_head_init(&pf->xq); skb_queue_head_init(&pf->rq); atomic_set(&pf->refcnt, 1); init_waitqueue_head(&pf->rwait); }
12,368
28,329
0
int au1100fb_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *fbi) { struct au1100fb_device *fbdev; int dy; fbdev = to_au1100fb_device(fbi); print_dbg("fb_pan_display %p %p", var, fbi); if (!var || !fbdev) { return -EINVAL; } if (var->xoffset - fbi->var.xoffset) { /* No support for X panning...
12,369
155,522
0
void CheckMaybeActivateDataReductionProxy(bool initially_enabled, bool request_succeeded, bool expected_enabled, bool expected_restricted, boo...
12,370
52,423
0
static int xt_match_open(struct inode *inode, struct file *file) { struct nf_mttg_trav *trav; trav = __seq_open_private(file, &xt_match_seq_ops, sizeof(*trav)); if (!trav) return -ENOMEM; trav->nfproto = (unsigned long)PDE_DATA(inode); return 0; }
12,371
75,659
0
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) { struct usb_device *dev = chip->dev; struct usb_host_interface *host_iface; struct usb_interface_descriptor *altsd; int i, protocol; /* find audiocontrol interface */ host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; altsd = get...
12,372
109,426
0
BlobRegistryContext(const KURL& url, PassOwnPtr<BlobData> blobData) : url(url.copy()) , blobData(blobData) { this->blobData->detachFromCurrentThread(); }
12,373
138,127
0
void AXObject::ariaLabelledbyElementVector( HeapVector<Member<Element>>& elements) const { elementsFromAttribute(elements, aria_labelledbyAttr); if (!elements.size()) elementsFromAttribute(elements, aria_labeledbyAttr); }
12,374
42,899
0
static int save_crashing_binary(pid_t pid, struct dump_dir *dd) { char buf[sizeof("/proc/%lu/exe") + sizeof(long)*3]; sprintf(buf, "/proc/%lu/exe", (long)pid); int src_fd_binary = open(buf, O_RDONLY); /* might fail and return -1, it's ok */ if (src_fd_binary < 0) { log_notice("Failed to ope...
12,375
22,253
0
SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags) { int err = 0; struct fs_struct *fs, *new_fs = NULL; struct sighand_struct *new_sigh = NULL; struct mm_struct *mm, *new_mm = NULL, *active_mm = NULL; struct files_struct *fd, *new_fd = NULL; struct nsproxy *new_nsproxy = NULL; int do_sysvsem = 0; check_uns...
12,376
858
0
void ArthurOutputDev::saveState(GfxState *state) { m_painter->save(); }
12,377
90,060
0
size_t ZSTD_estimateCCtxSize_usingCParams(ZSTD_compressionParameters cParams) { ZSTD_CCtx_params const params = ZSTD_makeCCtxParamsFromCParams(cParams); return ZSTD_estimateCCtxSize_usingCCtxParams(&params); }
12,378
156,736
0
void WaitForElementVisible(FrameTreeNode* node, const std::string& sel) { RunCommandAndWaitForResponse( node, base::StringPrintf("notifyWhenVisible(document.querySelector('%s'));", sel.c_str()), "VISIBLE"); }
12,379
24,662
0
static void arm_timer(struct k_itimer *timer, union cpu_time_count now) { struct task_struct *p = timer->it.cpu.task; struct list_head *head, *listpos; struct cpu_timer_list *const nt = &timer->it.cpu; struct cpu_timer_list *next; unsigned long i; head = (CPUCLOCK_PERTHREAD(timer->it_clock) ? p->cpu_timers : p...
12,380
85,321
0
close_job(cupsd_client_t *con, /* I - Client connection */ ipp_attribute_t *uri) /* I - Printer URI */ { cupsd_job_t *job; /* Job */ ipp_attribute_t *attr; /* Attribute */ char job_uri[HTTP_MAX_URI], /* Job URI */ username[256]; /* User name */ cupsdLogMessage(CUPSD_LOG_DEBUG2, "clos...
12,381
36,897
0
void unlock_two_nondirectories(struct inode *inode1, struct inode *inode2) { if (inode1 && !S_ISDIR(inode1->i_mode)) mutex_unlock(&inode1->i_mutex); if (inode2 && !S_ISDIR(inode2->i_mode) && inode2 != inode1) mutex_unlock(&inode2->i_mutex); }
12,382
83,923
0
static bool dev_type_flutter(enum sas_device_type new, enum sas_device_type old) { if (old == new) return true; /* treat device directed resets as flutter, if we went * SAS_END_DEVICE to SAS_SATA_PENDING the link needs recovery */ if ((old == SAS_SATA_PENDING && new == SAS_END_DEVICE) || (old == SAS_END_...
12,383
120,846
0
bool OneClickSigninHelper::OnFormSubmitted(const content::PasswordForm& form) { if (form.origin.is_valid() && gaia::IsGaiaSignonRealm(GURL(form.signon_realm))) { VLOG(1) << "OneClickSigninHelper::DidNavigateAnyFrame: got password"; password_ = UTF16ToUTF8(form.password_value); } return true; }
12,384
8,759
0
unsigned FAST_FUNC udhcp_option_idx(const char *name, const char *option_strings) { int n = index_in_strings(option_strings, name); if (n >= 0) return n; { char *buf, *d; const char *s; s = option_strings; while (*s) s += strlen(s) + 1; d = buf = xzalloc(s - option_strings); s = option_strings; ...
12,385
86,791
0
_tiffReadProc(thandle_t fd, tdata_t buf, tsize_t size) { return (read((int) fd, buf, size)); }
12,386
133,105
0
void HWNDMessageHandler::NotifyOwnedWindowsParentClosing() { FindOwnedWindowsData data; data.window = hwnd(); EnumThreadWindows(GetCurrentThreadId(), FindOwnedWindowsCallback, reinterpret_cast<LPARAM>(&data)); for (size_t i = 0; i < data.owned_widgets.size(); ++i) data.owned_widgets[i]->...
12,387
166,259
0
base::Optional<CameraCalibration> VideoCaptureManager::GetCameraCalibration( const std::string& device_id) { media::VideoCaptureDeviceInfo* info = GetDeviceInfoById(device_id); if (!info) return base::Optional<CameraCalibration>(); return info->descriptor.camera_calibration; }
12,388
77,357
0
ofproto_port_get_stp_status(struct ofproto *ofproto, ofp_port_t ofp_port, struct ofproto_port_stp_status *s) { struct ofport *ofport = ofproto_get_port(ofproto, ofp_port); if (!ofport) { VLOG_WARN_RL(&rl, "%s: cannot get STP status on nonexistent " "port ...
12,389
131,673
0
static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; TestObjectPythonV8In...
12,390
158,356
0
void RenderWidgetHostImpl::SendCursorVisibilityState(bool is_visible) { GetWidgetInputHandler()->CursorVisibilityChanged(is_visible); }
12,391
58,178
0
void resched_task(struct task_struct *p) { int cpu; lockdep_assert_held(&task_rq(p)->lock); if (test_tsk_need_resched(p)) return; set_tsk_need_resched(p); cpu = task_cpu(p); if (cpu == smp_processor_id()) { set_preempt_need_resched(); return; } /* NEED_RESCHED must be visible before we test polling *...
12,392
171,367
0
void OMXCodec::setImageOutputFormat( OMX_COLOR_FORMATTYPE format, OMX_U32 width, OMX_U32 height) { CODEC_LOGV("setImageOutputFormat(%u, %u)", width, height); #if 0 OMX_INDEXTYPE index; status_t err = mOMX->get_extension_index( mNode, "OMX.TI.JPEG.decode.Config.OutputColorFormat", &index); ...
12,393
143,137
0
void Document::cloneDataFromDocument(const Document& other) { setCompatibilityMode(other.getCompatibilityMode()); setEncodingData(other.m_encodingData); setContextFeatures(other.contextFeatures()); setSecurityOrigin(other.getSecurityOrigin()->isolatedCopy()); setMimeType(other.contentType()); }
12,394
167,499
0
HandleSignalsState DataPipeProducerDispatcher::GetHandleSignalsState() const { base::AutoLock lock(lock_); return GetHandleSignalsStateNoLock(); }
12,395
148,913
0
std::unique_ptr<RenderFrameHostImpl> RenderFrameHostManager::SetRenderFrameHost( std::unique_ptr<RenderFrameHostImpl> render_frame_host) { std::unique_ptr<RenderFrameHostImpl> old_render_frame_host = std::move(render_frame_host_); render_frame_host_ = std::move(render_frame_host); if (frame_tree_node_-...
12,396
51
0
static char **make_subpats_table(int num_subpats, pcre_cache_entry *pce TSRMLS_DC) { pcre_extra *extra = pce->extra; int name_cnt = 0, name_size, ni = 0; int rc; char *name_table; unsigned short name_idx; char **subpat_names = (char **)ecalloc(num_subpats, sizeof(char *)); rc = pcre_fullinfo(pce->re, extra, PCR...
12,397
106,721
0
bool WebView::isViewVisible() { return m_isVisible; }
12,398
119,518
0
virtual WebNavigationPolicy decidePolicyForNavigation( WebFrame*, const WebURLRequest&, WebNavigationType, WebNavigationPolicy defaultPolicy, bool isRedirect) { EXPECT_FALSE(isRedirect); return WebNavigationPolicyCurrentTab; }
12,399