unique_id int64 13 189k | target int64 0 1 | code stringlengths 20 241k | __index_level_0__ int64 0 18.9k |
|---|---|---|---|
29,820 | 0 | cifs_match_super(struct super_block *sb, void *data)
{
struct cifs_mnt_data *mnt_data = (struct cifs_mnt_data *)data;
struct smb_vol *volume_info;
struct cifs_sb_info *cifs_sb;
struct TCP_Server_Info *tcp_srv;
struct cifs_ses *ses;
struct cifs_tcon *tcon;
struct tcon_link *tlink;
int rc = 0;
spin_lock(&cifs_t... | 4,500 |
90,397 | 0 | static inline void megasas_remove_scsi_device(struct scsi_device *sdev)
{
sdev_printk(KERN_INFO, sdev, "SCSI device is removed\n");
scsi_remove_device(sdev);
scsi_device_put(sdev);
}
| 4,501 |
171,987 | 0 | void handle_rc_features()
{
btrc_remote_features_t rc_features = BTRC_FEAT_NONE;
bt_bdaddr_t rc_addr;
bdcpy(rc_addr.address, btif_rc_cb.rc_addr);
if (btif_rc_cb.rc_features & BTA_AV_FEAT_BROWSE)
{
rc_features |= BTRC_FEAT_BROWSE;
}
if ( (btif_rc_cb.rc_features & BTA_AV_FEAT_ADV_CTRL) &&
(btif_rc_c... | 4,502 |
143,642 | 0 | void RenderWidgetHostImpl::GetWebScreenInfo(blink::WebScreenInfo* result) {
TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::GetWebScreenInfo");
if (view_)
view_->GetScreenInfo(result);
else
RenderWidgetHostViewBase::GetDefaultScreenInfo(result);
latency_tracker_.set_device_scale_factor(result->devi... | 4,503 |
31,007 | 0 | static int do_set_master(struct net_device *dev, int ifindex)
{
struct net_device *upper_dev = netdev_master_upper_dev_get(dev);
const struct net_device_ops *ops;
int err;
if (upper_dev) {
if (upper_dev->ifindex == ifindex)
return 0;
ops = upper_dev->netdev_ops;
if (ops->ndo_del_slave) {
err = ops->ndo... | 4,504 |
69,950 | 0 | void asyncCloseClientOnOutputBufferLimitReached(client *c) {
serverAssert(c->reply_bytes < SIZE_MAX-(1024*64));
if (c->reply_bytes == 0 || c->flags & CLIENT_CLOSE_ASAP) return;
if (checkClientOutputBufferLimits(c)) {
sds client = catClientInfoString(sdsempty(),c);
freeClientAsync(c);
... | 4,505 |
181,360 | 1 | static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port)
{
struct usb_serial *serial = port->serial;
struct usb_serial_port *wport;
wport = serial->port[1];
tty_port_tty_set(&wport->port, tty);
return usb_serial_generic_open(tty, port);
}
| 4,506 |
151,954 | 0 | void RenderFrameHostImpl::GetAudioContextManager(
blink::mojom::AudioContextManagerRequest request) {
AudioContextManagerImpl::Create(this, std::move(request));
}
| 4,507 |
82,797 | 0 | static void agraph_print_edge_dot(RANode *from, RANode *to, void *user) {
r_cons_printf ("\"%s\" -> \"%s\"\n", from->title, to->title);
}
| 4,508 |
126,001 | 0 | void AllViewsStoppedLoadingObserver::Observe(
int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
if (!automation_) {
delete this;
return;
}
if (type == content::NOTIFICATION_LOAD_STOP) {
CheckIfNoMorePendingLoads();
} else if (type == chro... | 4,509 |
102,865 | 0 | Color RenderMenuList::itemBackgroundColor(unsigned listIndex) const
{
const Vector<HTMLElement*>& listItems = toHTMLSelectElement(node())->listItems();
if (listIndex >= listItems.size())
return style()->visitedDependentColor(CSSPropertyBackgroundColor);
HTMLElement* element = listItems[listIndex];
... | 4,510 |
110,009 | 0 | void HTMLSelectElement::dispatchBlurEvent(PassRefPtr<Node> newFocusedNode)
{
if (usesMenuList())
dispatchChangeEventForMenuList();
HTMLFormControlElementWithState::dispatchBlurEvent(newFocusedNode);
}
| 4,511 |
136,184 | 0 | void Document::updateLayoutTree(StyleRecalcChange change)
{
ASSERT(isMainThread());
ScriptForbiddenScope forbidScript;
if (!view() || !isActive())
return;
if (change != Force && !needsLayoutTreeUpdate())
return;
if (inStyleRecalc())
return;
RELEASE_ASSERT(!view()->is... | 4,512 |
109,634 | 0 | void Document::didAssociateFormControl(Element* element)
{
if (!frame() || !frame()->page())
return;
m_associatedFormControls.add(element);
if (!m_didAssociateFormControlsTimer.isActive())
m_didAssociateFormControlsTimer.startOneShot(0);
}
| 4,513 |
176,761 | 0 | status_t Parcel::readStrongBinder(sp<IBinder>* val) const
{
return unflatten_binder(ProcessState::self(), *this, val);
}
| 4,514 |
151,918 | 0 | void RenderFrameHostImpl::DidChangeName(const std::string& name,
const std::string& unique_name) {
if (GetParent() != nullptr) {
DCHECK(!unique_name.empty());
}
TRACE_EVENT2("navigation", "RenderFrameHostImpl::OnDidChangeName",
"frame_tree_node", frame_tr... | 4,515 |
179,355 | 1 | static int l2tp_ip6_getname(struct socket *sock, struct sockaddr *uaddr,
int *uaddr_len, int peer)
{
struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *)uaddr;
struct sock *sk = sock->sk;
struct ipv6_pinfo *np = inet6_sk(sk);
struct l2tp_ip6_sock *lsk = l2tp_ip6_sk(sk);
lsa->l2tp_family = AF_INET6;
... | 4,516 |
144,553 | 0 | gfx::Rect WebContentsImpl::GetViewBounds() {
return view_->GetViewBounds();
}
| 4,517 |
113,939 | 0 | void RegistrationManager::DoRegisterId(const invalidation::ObjectId& id) {
DCHECK(CalledOnValidThread());
invalidation_client_->Register(id);
RegistrationStatusMap::const_iterator it = registration_statuses_.find(id);
if (it == registration_statuses_.end()) {
DLOG(FATAL) << "DoRegisterId called on " << Obje... | 4,518 |
44,153 | 0 | void pipe_unlock(struct pipe_inode_info *pipe)
{
if (pipe->files)
mutex_unlock(&pipe->mutex);
}
| 4,519 |
112,985 | 0 | DownloadFileManager::DownloadFileManager(DownloadFileFactory* factory)
: download_file_factory_(factory) {
if (download_file_factory_ == NULL)
download_file_factory_.reset(new DownloadFileFactoryImpl);
}
| 4,520 |
42,471 | 0 | static void md_start_sync(struct work_struct *ws)
{
struct mddev *mddev = container_of(ws, struct mddev, del_work);
mddev->sync_thread = md_register_thread(md_do_sync,
mddev,
"resync");
if (!mddev->sync_thread) {
printk(KERN_ERR "%s: could not start resync"
" thread...\n",
mdname(mdd... | 4,521 |
147,594 | 0 | void V8TestObject::NullableLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_nullableLongMethod");
test_object_v8_internal::NullableLongMethodMethod(info);
}
| 4,522 |
94,518 | 0 | static void l2cap_sock_cleanup_listen(struct sock *parent)
{
struct sock *sk;
BT_DBG("parent %p", parent);
/* Close not yet accepted channels */
while ((sk = bt_accept_dequeue(parent, NULL))) {
struct l2cap_chan *chan = l2cap_pi(sk)->chan;
l2cap_chan_lock(chan);
__clear_chan_timer(chan);
l2cap_chan_close... | 4,523 |
108,045 | 0 | void CreateProgramInfo(GLuint client_id, GLuint service_id) {
program_manager()->CreateProgramInfo(client_id, service_id);
}
| 4,524 |
132,942 | 0 | void RenderWidgetHostViewAura::GestureEventAck(int gesture_event_type,
InputEventAckState ack_result) {
if (touch_editing_client_)
touch_editing_client_->GestureEventAck(gesture_event_type);
}
| 4,525 |
158,836 | 0 | void Browser::OnDidBlockFramebust(content::WebContents* web_contents,
const GURL& url) {
TabSpecificContentSettings* content_settings =
TabSpecificContentSettings::FromWebContents(web_contents);
DCHECK(content_settings);
content_settings->OnFramebustBlocked(
url, Fram... | 4,526 |
158,011 | 0 | blink::WebView* RenderViewImpl::webview() {
return webview_;
}
| 4,527 |
22,993 | 0 | static int decode_attr_maxread(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res)
{
__be32 *p;
int status = 0;
*res = 1024;
if (unlikely(bitmap[0] & (FATTR4_WORD0_MAXREAD - 1U)))
return -EIO;
if (likely(bitmap[0] & FATTR4_WORD0_MAXREAD)) {
uint64_t maxread;
READ_BUF(8);
READ64(maxread);
if (maxrea... | 4,528 |
92,520 | 0 | static inline u64 default_cfs_period(void)
{
return 100000000ULL;
}
| 4,529 |
116,993 | 0 | void GestureSequence::AppendClickGestureEvent(const GesturePoint& point,
Gestures* gestures) {
gestures->push_back(linked_ptr<GestureEvent>(new GestureEvent(
ui::ET_GESTURE_TAP,
point.first_touch_position().x(),
point.first_touch_position().y(),
fl... | 4,530 |
174,331 | 0 | void IPCThreadState::restoreCallingIdentity(int64_t token)
{
mCallingUid = (int)(token>>32);
mCallingPid = (int)token;
}
| 4,531 |
116,947 | 0 | void IndexedDBDispatcher::OnSuccessStringList(
int32 thread_id, int32 response_id, const std::vector<string16>& value) {
DCHECK_EQ(thread_id, CurrentWorkerId());
WebIDBCallbacks* callbacks = pending_callbacks_.Lookup(response_id);
if (!callbacks)
return;
WebDOMStringList string_list;
for (std::vector<... | 4,532 |
142,194 | 0 | explicit LocalTestVolume(const std::string& name) : TestVolume(name) {}
| 4,533 |
165,365 | 0 | void StoragePartitionImpl::QuotaManagedDataDeletionHelper::ClearDataOnIOThread(
const scoped_refptr<storage::QuotaManager>& quota_manager,
const base::Time begin,
const scoped_refptr<storage::SpecialStoragePolicy>& special_storage_policy,
const StoragePartition::OriginMatcherFunction& origin_matcher,
... | 4,534 |
157,009 | 0 | void WebMediaPlayerMS::SetSinkId(
const blink::WebString& sink_id,
blink::WebSetSinkIdCallbacks* web_callback) {
DVLOG(1) << __func__;
DCHECK(thread_checker_.CalledOnValidThread());
const media::OutputDeviceStatusCB callback =
media::ConvertToOutputDeviceStatusCB(web_callback);
if (audio_renderer_... | 4,535 |
95,269 | 0 | static int xconvfetch_lookup(struct conversations_state *statep,
conversation_id_t cid,
modseq_t ifchangedsince,
hash_table *wanted_cids,
strarray_t *folder_list)
{
const char *key = conversation_id_e... | 4,536 |
113,407 | 0 | void WebProcessProxy::pagePreferencesChanged(WebKit::WebPageProxy *page)
{
#if PLATFORM(MAC)
if (pageIsProcessSuppressible(page))
m_processSuppressiblePages.add(page->pageID());
else
m_processSuppressiblePages.remove(page->pageID());
updateProcessSuppressionState();
#else
UNUSED_PARAM(pa... | 4,537 |
158,800 | 0 | HTMLImportsController::HTMLImportsController(Document& master)
: root_(HTMLImportTreeRoot::Create(&master)) {}
| 4,538 |
157,789 | 0 | ukm::SourceId WebContentsImpl::GetUkmSourceIdForLastCommittedSource() const {
return last_committed_source_id_;
}
| 4,539 |
170,042 | 0 | xsltRegisterPersistRVT(xsltTransformContextPtr ctxt, xmlDocPtr RVT)
{
if ((ctxt == NULL) || (RVT == NULL)) return(-1);
RVT->next = (xmlNodePtr) ctxt->persistRVT;
if (ctxt->persistRVT != NULL)
ctxt->persistRVT->prev = (xmlNodePtr) RVT;
ctxt->persistRVT = RVT;
return(0);
}
| 4,540 |
17,788 | 0 | ProcCreateCursor(ClientPtr client)
{
CursorPtr pCursor;
PixmapPtr src;
PixmapPtr msk;
unsigned char *srcbits;
unsigned char *mskbits;
unsigned short width, height;
long n;
CursorMetricRec cm;
int rc;
REQUEST(xCreateCursorReq);
REQUEST_SIZE_MATCH(xCreateCursorReq);
LEGAL... | 4,541 |
96,540 | 0 | void mbedtls_ecdsa_init( mbedtls_ecdsa_context *ctx )
{
mbedtls_ecp_keypair_init( ctx );
}
| 4,542 |
44,671 | 0 | bool file_exists(const char *f)
{
struct stat statbuf;
return stat(f, &statbuf) == 0;
}
| 4,543 |
34,015 | 0 | static void xen_netbk_rx_action(struct xen_netbk *netbk)
{
struct xenvif *vif = NULL, *tmp;
s8 status;
u16 irq, flags;
struct xen_netif_rx_response *resp;
struct sk_buff_head rxq;
struct sk_buff *skb;
LIST_HEAD(notify);
int ret;
int nr_frags;
int count;
unsigned long offset;
struct skb_cb_overlay *sco;
st... | 4,544 |
72,005 | 0 | static double GetOpacityPixel(PolygonInfo *polygon_info,const double mid,
const MagickBooleanType fill,const FillRule fill_rule,const ssize_t x,
const ssize_t y,double *stroke_opacity)
{
double
alpha,
beta,
distance,
subpath_opacity;
PointInfo
delta;
register EdgeInfo
*p;
register... | 4,545 |
186,543 | 1 | void CreateOAuth2ServiceDelegate(
signin::AccountConsistencyMethod account_consistency) {
oauth2_service_delegate_.reset(new MutableProfileOAuth2TokenServiceDelegate(
client_.get(), &signin_error_controller_, &account_tracker_service_,
token_web_data_, account_consistency, revoke_all_tokens_on_load_,
true /... | 4,546 |
105,282 | 0 | DOMPatchSupport::DOMPatchSupport(DOMEditor* domEditor, Document* document)
: m_domEditor(domEditor)
, m_document(document)
{
}
| 4,547 |
41,049 | 0 | static int mk_security_check_url(mk_ptr_t url)
{
int n;
struct mk_list *head;
struct mk_secure_url_t *entry;
mk_list_foreach(head, &mk_secure_url) {
entry = mk_list_entry(head, struct mk_secure_url_t, _head);
n = mk_api->str_search_n(url.data, entry->criteria, MK_STR_INSENSITIVE, url.le... | 4,548 |
10,492 | 0 | iscsi_aio_ioctl_cb(struct iscsi_context *iscsi, int status,
void *command_data, void *opaque)
{
IscsiAIOCB *acb = opaque;
g_free(acb->buf);
acb->buf = NULL;
acb->status = 0;
if (status < 0) {
error_report("Failed to ioctl(SG_IO) to iSCSI lun. %s",
... | 4,549 |
49,099 | 0 | brcmf_notify_sched_scan_results(struct brcmf_if *ifp,
const struct brcmf_event_msg *e, void *data)
{
struct brcmf_cfg80211_info *cfg = ifp->drvr->config;
struct brcmf_pno_net_info_le *netinfo, *netinfo_start;
struct cfg80211_scan_request *request = NULL;
struct cfg80211_ssid *ssid = NULL;
struct ieee80211_chan... | 4,550 |
30,972 | 0 | static int iscsi_check_value(struct iscsi_param *param, char *value)
{
char *comma_ptr = NULL;
if (!strcmp(value, REJECT)) {
if (!strcmp(param->name, IFMARKINT) ||
!strcmp(param->name, OFMARKINT)) {
/*
* Reject is not fatal for [I,O]FMarkInt, and causes
* [I,O]FMarker to be reset to No. (See iSCS... | 4,551 |
42,963 | 0 | static void free_unused_bufs(struct virtnet_info *vi)
{
void *buf;
int i;
for (i = 0; i < vi->max_queue_pairs; i++) {
struct virtqueue *vq = vi->sq[i].vq;
while ((buf = virtqueue_detach_unused_buf(vq)) != NULL)
dev_kfree_skb(buf);
}
for (i = 0; i < vi->max_queue_pairs; i++) {
struct virtqueue *vq = vi->... | 4,552 |
138,641 | 0 | RenderFrameHostImpl::BrowserPluginInstanceIDToAXTreeID(int instance_id) {
RenderFrameHostImpl* guest = static_cast<RenderFrameHostImpl*>(
delegate()->GetGuestByInstanceID(this, instance_id));
if (!guest)
return ui::AXTreeIDRegistry::kNoAXTreeID;
guest->set_browser_plugin_embedder_ax_tree_id(GetAXTreeID... | 4,553 |
169,878 | 0 | xsltRegisterExtFunction(xsltTransformContextPtr ctxt, const xmlChar * name,
const xmlChar * URI, xmlXPathFunction function)
{
int ret;
if ((ctxt == NULL) || (name == NULL) ||
(URI == NULL) || (function == NULL))
return (-1);
if (ctxt->xpathCtxt != NULL) {
xml... | 4,554 |
119,477 | 0 | void ScriptController::disableEval(const String& errorMessage)
{
if (!m_windowShell->isContextInitialized())
return;
v8::HandleScope handleScope(m_isolate);
v8::Local<v8::Context> v8Context = m_windowShell->context();
v8Context->AllowCodeGenerationFromStrings(false);
v8Context->SetErrorMessa... | 4,555 |
59,904 | 0 | static int uas_post_reset(struct usb_interface *intf)
{
struct Scsi_Host *shost = usb_get_intfdata(intf);
struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata;
unsigned long flags;
int err;
if (devinfo->shutdown)
return 0;
err = uas_configure_endpoints(devinfo);
if (err) {
shost_printk(KER... | 4,556 |
99,600 | 0 | InterstitialPage::InterstitialPage(TabContents* tab,
bool new_navigation,
const GURL& url)
: tab_(tab),
url_(url),
new_navigation_(new_navigation),
should_discard_pending_nav_entry_(new_navigation),
enabled_(true),
a... | 4,557 |
111,468 | 0 | int32_t InputHandler::finishComposition()
{
if (!isActiveTextEdit())
return -1;
if (!compositionActive())
return 0;
removeAttributedTextMarker();
InputLog(LogLevelInfo, "InputHandler::finishComposition completed");
return 0;
}
| 4,558 |
129,503 | 0 | bool GLES2DecoderImpl::SetVertexAttribValue(
const char* function_name, GLuint index, const GLfloat* value) {
if (index >= state_.attrib_values.size()) {
LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, function_name, "index out of range");
return false;
}
Vec4& v = state_.attrib_values[index];
v.v[0] = value[0... | 4,559 |
88,788 | 0 | static void compose_addr(struct sockaddr_in *sin, char *group, int port)
{
memset(sin, 0, sizeof(*sin));
sin->sin_family = AF_INET;
sin->sin_port = htons(port);
sin->sin_addr.s_addr = inet_addr(group);
}
| 4,560 |
83,052 | 0 | void mp_buf_free(lua_State *L, mp_buf *buf) {
mp_realloc(L, buf->b, buf->len + buf->free, 0); /* realloc to 0 = free */
mp_realloc(L, buf, sizeof(*buf), 0);
}
| 4,561 |
159,091 | 0 | bool DownloadItemImpl::CanShowInFolder() {
return CanOpenDownload() && !GetFullPath().empty();
}
| 4,562 |
83,782 | 0 | static inline void hwsim_check_chanctx_magic(struct ieee80211_chanctx_conf *c)
{
struct hwsim_chanctx_priv *cp = (void *)c->drv_priv;
WARN_ON(cp->magic != HWSIM_CHANCTX_MAGIC);
}
| 4,563 |
42,056 | 0 | static void *sysvipc_proc_start(struct seq_file *s, loff_t *pos)
{
struct ipc_proc_iter *iter = s->private;
struct ipc_proc_iface *iface = iter->iface;
struct ipc_ids *ids;
ids = &iter->ns->ids[iface->ids];
/*
* Take the lock - this will be released by the corresponding
* call to stop().
*/
down_read(&ids... | 4,564 |
47,918 | 0 | static int ioapic_service(struct kvm_ioapic *ioapic, int irq, bool line_status)
{
union kvm_ioapic_redirect_entry *entry = &ioapic->redirtbl[irq];
struct kvm_lapic_irq irqe;
int ret;
if (entry->fields.mask)
return -1;
ioapic_debug("dest=%x dest_mode=%x delivery_mode=%x "
"vector=%x trig_mode=%x\n",
... | 4,565 |
43,097 | 0 | static u8 vhost_scsi_get_fabric_proto_ident(struct se_portal_group *se_tpg)
{
struct vhost_scsi_tpg *tpg = container_of(se_tpg,
struct vhost_scsi_tpg, se_tpg);
struct vhost_scsi_tport *tport = tpg->tport;
switch (tport->tport_proto_id) {
case SCSI_PROTOCOL_SAS:
return sas_get_fabric_proto_ident(se_tpg);
cas... | 4,566 |
180,776 | 1 | void* sspi_SecureHandleGetLowerPointer(SecHandle* handle)
{
void* pointer;
if (!handle)
return NULL;
pointer = (void*) ~((size_t) handle->dwLower);
return pointer;
}
| 4,567 |
145,695 | 0 | void ImageInputType::setUseFallbackContent()
{
if (m_useFallbackContent)
return;
m_useFallbackContent = true;
if (element().document().inStyleRecalc())
return;
if (ShadowRoot* root = element().userAgentShadowRoot())
root->removeChildren();
createShadowSubtree();
}
| 4,568 |
56,177 | 0 | static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, char __user *optval, unsigned int optlen)
{
struct sock *sk = sock->sk;
int err = 0;
u32 opt;
BT_DBG("sk %p", sk);
lock_sock(sk);
switch (optname) {
case RFCOMM_LM:
if (get_user(opt, (u32 __user *) optval)) {
err = -EFAULT;
break;... | 4,569 |
54,180 | 0 | static int digi_write_room(struct tty_struct *tty)
{
struct usb_serial_port *port = tty->driver_data;
struct digi_port *priv = usb_get_serial_port_data(port);
int room;
unsigned long flags = 0;
spin_lock_irqsave(&priv->dp_port_lock, flags);
if (priv->dp_write_urb_in_use)
room = 0;
else
room = port->bulk_ou... | 4,570 |
94,573 | 0 | void __d_drop(struct dentry *dentry)
{
if (!d_unhashed(dentry)) {
struct hlist_bl_head *b;
/*
* Hashed dentries are normally on the dentry hashtable,
* with the exception of those newly allocated by
* d_obtain_alias, which are always IS_ROOT:
*/
if (unlikely(IS_ROOT(dentry)))
b = &dentry->d_sb->s_... | 4,571 |
58,456 | 0 | server_read_child (GIOChannel *source, GIOCondition condition, server *serv)
{
session *sess = serv->server_session;
char tbuf[128];
char outbuf[512];
char host[100];
char ip[100];
#ifdef USE_MSPROXY
char *p;
#endif
waitline2 (source, tbuf, sizeof tbuf);
switch (tbuf[0])
{
case '0': /* print some text */
... | 4,572 |
117,864 | 0 | static v8::Handle<v8::Value> removeEventListenerCallback(const v8::Arguments& args)
{
INC_STATS("DOM.TestObj.removeEventListener()");
RefPtr<EventListener> listener = V8DOMWrapper::getEventListener(args[1], false, ListenerFindOnly);
if (listener) {
V8TestObj::toNative(args.Holder())->removeEventList... | 4,573 |
136,844 | 0 | BarProp* LocalDOMWindow::statusbar() const {
if (!statusbar_)
statusbar_ = BarProp::Create(GetFrame(), BarProp::kStatusbar);
return statusbar_.Get();
}
| 4,574 |
79,069 | 0 | int arch_prctl_spec_ctrl_set(struct task_struct *task, unsigned long which,
unsigned long ctrl)
{
switch (which) {
case PR_SPEC_STORE_BYPASS:
return ssb_prctl_set(task, ctrl);
default:
return -ENODEV;
}
}
| 4,575 |
132,792 | 0 | const VideoPacket* packet() const { return packet_.get(); }
| 4,576 |
138,779 | 0 | RenderFrameHostImpl::PassNavigationHandleOwnership() {
DCHECK(!IsBrowserSideNavigationEnabled());
if (navigation_handle_)
navigation_handle_->set_is_transferring(true);
return std::move(navigation_handle_);
}
| 4,577 |
35,642 | 0 | file_regcomp(file_regex_t *rx, const char *pat, int flags)
{
#ifdef USE_C_LOCALE
rx->c_lc_ctype = newlocale(LC_CTYPE_MASK, "C", 0);
assert(rx->c_lc_ctype != NULL);
rx->old_lc_ctype = uselocale(rx->c_lc_ctype);
assert(rx->old_lc_ctype != NULL);
#endif
rx->pat = pat;
return rx->rc = regcomp(&rx->rx, pat, flags);
}... | 4,578 |
54,707 | 0 | static int snd_seq_ioctl_get_queue_tempo(struct snd_seq_client *client,
void __user *arg)
{
struct snd_seq_queue_tempo tempo;
struct snd_seq_queue *queue;
struct snd_seq_timer *tmr;
if (copy_from_user(&tempo, arg, sizeof(tempo)))
return -EFAULT;
queue = queueptr(tempo.queue);
if (queue == NULL)
return... | 4,579 |
171,786 | 0 | bt_status_t btif_dm_start_discovery(void)
{
tBTA_DM_INQ inq_params;
tBTA_SERVICE_MASK services = 0;
tBTA_DM_BLE_PF_FILT_PARAMS adv_filt_param;
BTIF_TRACE_EVENT("%s", __FUNCTION__);
#if (defined(BLE_INCLUDED) && (BLE_INCLUDED == TRUE))
memset(&adv_filt_param, 0, sizeof(tBTA_DM_BLE_PF_FILT_PARAMS));... | 4,580 |
119,740 | 0 | ColorChooserWin* ColorChooserWin::Open(content::WebContents* web_contents,
SkColor initial_color) {
if (!current_color_chooser_)
current_color_chooser_ = new ColorChooserWin(web_contents, initial_color);
return current_color_chooser_;
}
| 4,581 |
142,574 | 0 | void ShelfWidget::DelegateView::UpdateBackgroundBlur() {
const bool should_blur_background =
opaque_background_.visible() &&
shelf_widget_->shelf_layout_manager()->ShouldBlurShelfBackground();
if (should_blur_background == background_is_currently_blurred_)
return;
opaque_background_.SetBackground... | 4,582 |
173,161 | 0 | init_standard_palette(png_store *ps, png_structp pp, png_infop pi, int npalette,
int do_tRNS)
{
store_palette_entry *ppal = make_standard_palette(ps, npalette, do_tRNS);
{
int i;
png_color palette[256];
/* Set all entries to detect overread errors. */
for (i=0; i<npalette; ++i)
{
palette[i].re... | 4,583 |
29,322 | 0 | static int kvm_device_release(struct inode *inode, struct file *filp)
{
struct kvm_device *dev = filp->private_data;
struct kvm *kvm = dev->kvm;
kvm_put_kvm(kvm);
return 0;
}
| 4,584 |
174,351 | 0 | bool Backtrace::VerifyReadWordArgs(uintptr_t ptr, word_t* out_value) {
if (ptr & (sizeof(word_t)-1)) {
BACK_LOGW("invalid pointer %p", reinterpret_cast<void*>(ptr));
*out_value = static_cast<word_t>(-1);
return false;
}
return true;
}
| 4,585 |
116,363 | 0 | static void PreserveRequestHeaders_Handler(
const net::HttpRequestInfo* request,
std::string* response_status,
std::string* response_headers,
std::string* response_data) {
EXPECT_TRUE(request->extra_headers.HasHeader(kExtraHeaderKey));
}
| 4,586 |
110,379 | 0 | bool PluginModule::InitAsInternalPlugin(const EntryPoints& entry_points) {
if (InitializeModule(entry_points)) {
entry_points_ = entry_points;
return true;
}
return false;
}
| 4,587 |
82,335 | 0 | NO_INLINE bool jspeParseFunctionCallBrackets() {
assert(!JSP_SHOULD_EXECUTE);
JSP_MATCH('(');
while (!JSP_SHOULDNT_PARSE && lex->tk != ')') {
jsvUnLock(jspeAssignmentExpression());
#ifndef SAVE_ON_FLASH
if (lex->tk==LEX_ARROW_FUNCTION) {
jsvUnLock(jspeArrowFunction(0, 0));
}
#endif
if (lex->... | 4,588 |
1,070 | 0 | void GfxPatternColorSpace::getRGB(GfxColor *color, GfxRGB *rgb) {
rgb->r = rgb->g = rgb->b = 0;
}
| 4,589 |
75,432 | 0 | static int oples(RAsm *a, ut8* data, const Opcode *op) {
int l = 0;
int offset = 0;
int mod = 0;
if (op->operands[1].type & OT_MEMORY) {
data[l++] = 0xc4;
if (op->operands[1].type & OT_GPREG) {
offset = op->operands[1].offset * op->operands[1].offset_sign;
if (offset) {
mod = 1;
if (offset > 128 ... | 4,590 |
31,528 | 0 | rad_auth_open(void)
{
struct rad_handle *h;
h = (struct rad_handle *)malloc(sizeof(struct rad_handle));
if (h != NULL) {
TSRMLS_FETCH();
php_srand(time(NULL) * getpid() * (unsigned long) (php_combined_lcg(TSRMLS_C) * 10000.0) TSRMLS_CC);
h->fd = -1;
h->num_servers = 0;
h->ident = php_rand(TSRMLS_C);
h->... | 4,591 |
103,338 | 0 | P2PSocketHost* P2PSocketDispatcherHost::LookupSocket(
int32 routing_id, int socket_id) {
SocketsMap::iterator it = sockets_.find(
ExtendedSocketId(routing_id, socket_id));
if (it == sockets_.end())
return NULL;
else
return it->second;
}
| 4,592 |
181,125 | 1 | llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
const struct lladdr_info *src, const struct lladdr_info *dst)
{
uint8_t dsap_field, dsap, ssap_field, ssap;
uint16_t control;
int hdrlen;
int is_u;
if (caplen < 3) {
ND_PRINT((ndo, "[|llc]"));
ND_DEFAULTPRINT((const u_char *)p, caplen);
re... | 4,593 |
152,750 | 0 | std::unique_ptr<HistogramSamples> Histogram::SnapshotFinalDelta() const {
DCHECK(!final_delta_created_);
final_delta_created_ = true;
std::unique_ptr<HistogramSamples> snapshot = SnapshotSampleVector();
if (logged_samples_)
snapshot->Subtract(*logged_samples_);
return snapshot;
}
| 4,594 |
71,182 | 0 | kvm_pfn_t gfn_to_pfn_memslot(struct kvm_memory_slot *slot, gfn_t gfn)
{
return __gfn_to_pfn_memslot(slot, gfn, false, NULL, true, NULL);
}
| 4,595 |
58,112 | 0 | __checkparam_dl(const struct sched_attr *attr)
{
return attr && attr->sched_deadline != 0 &&
(attr->sched_period == 0 ||
(s64)(attr->sched_period - attr->sched_deadline) >= 0) &&
(s64)(attr->sched_deadline - attr->sched_runtime ) >= 0 &&
attr->sched_runtime >= (2 << (DL_SCALE - 1));
}
| 4,596 |
157,767 | 0 | void WebContentsImpl::FullscreenFrameSetUpdated() {
if (fullscreen_frames_.empty()) {
current_fullscreen_frame_ = nullptr;
return;
}
RenderFrameHostImpl* new_fullscreen_frame = *std::max_element(
fullscreen_frames_.begin(), fullscreen_frames_.end(), FrameCompareDepth);
if (new_fullscreen_frame =... | 4,597 |
88,302 | 0 | prologInitProcessor(XML_Parser parser, const char *s, const char *end,
const char **nextPtr) {
enum XML_Error result = initializeEncoding(parser);
if (result != XML_ERROR_NONE)
return result;
parser->m_processor = prologProcessor;
return prologProcessor(parser, s, end, nextPtr);
}
| 4,598 |
32,712 | 0 | static int tg3_readphy(struct tg3 *tp, int reg, u32 *val)
{
return __tg3_readphy(tp, tp->phy_addr, reg, val);
}
| 4,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.