unique_id int64 13 189k | target int64 0 1 | code stringlengths 20 241k | __index_level_0__ int64 0 18.9k |
|---|---|---|---|
104,810 | 0 | void ExtensionService::NotifyExtensionUnloaded(
const Extension* extension, UnloadedExtensionInfo::Reason reason) {
UnloadedExtensionInfo details(extension, reason);
NotificationService::current()->Notify(
NotificationType::EXTENSION_UNLOADED,
Source<Profile>(profile_),
Details<UnloadedExtensi... | 3,500 |
96,359 | 0 | NDIS_STATUS ParaNdis6_ReceivePauseRestart(
PARANDIS_ADAPTER *pContext,
BOOLEAN bPause,
ONPAUSECOMPLETEPROC Callback
)
{
NDIS_STATUS status = NDIS_STATUS_SUCCESS;
if (bPause)
{
CNdisPassiveWriteAutoLock tLock(pContext->m_PauseLock);
ParaNdis_DebugHistory(pContext, hopInterna... | 3,501 |
122,254 | 0 | void HTMLFormControlElement::attach(const AttachContext& context)
{
HTMLElement::attach(context);
if (!renderer())
return;
renderer()->updateFromElement();
if (shouldAutofocusOnAttach(this)) {
setAutofocused();
document().setAutofocusElement(this);
}
}
| 3,502 |
142,870 | 0 | void HTMLMediaElement::RemoveVideoTrack(WebMediaPlayer::TrackId track_id) {
BLINK_MEDIA_LOG << "removeVideoTrack(" << (void*)this << ")";
videoTracks().Remove(track_id);
}
| 3,503 |
19,569 | 0 | static int ep_modify(struct eventpoll *ep, struct epitem *epi, struct epoll_event *event)
{
int pwake = 0;
unsigned int revents;
poll_table pt;
init_poll_funcptr(&pt, NULL);
/*
* Set the new event interest mask before calling f_op->poll();
* otherwise we might miss an event that happens between the
* f_op-... | 3,504 |
151,205 | 0 | void InspectorNetworkAgent::WillLoadXHR(XMLHttpRequest* xhr,
ThreadableLoaderClient* client,
const AtomicString& method,
const KURL& url,
bool async,
... | 3,505 |
173,907 | 0 | const Block* Track::EOSBlock::GetBlock() const { return NULL; }
| 3,506 |
149,980 | 0 | void LayerTreeHostImpl::NotifyReadyToDraw() {
is_likely_to_require_a_draw_ = false;
client_->NotifyReadyToDraw();
}
| 3,507 |
114,449 | 0 | void DXVAVideoDecodeAccelerator::StopOnError(
media::VideoDecodeAccelerator::Error error) {
DCHECK(CalledOnValidThread());
if (client_)
client_->NotifyError(error);
client_ = NULL;
if (state_ != kUninitialized) {
Invalidate();
}
}
| 3,508 |
144,337 | 0 | void ShowLoginWizardFinish(
chromeos::OobeScreen first_screen,
const chromeos::StartupCustomizationDocument* startup_manifest) {
TRACE_EVENT0("chromeos", "ShowLoginWizard::ShowLoginWizardFinish");
chromeos::LoginDisplayHost* display_host = nullptr;
if (chromeos::LoginDisplayHost::default_host()) {
d... | 3,509 |
156,049 | 0 | void OverlayWindowViews::TogglePlayPause() {
bool is_active = controller_->TogglePlayPause();
play_pause_controls_view_->SetToggled(is_active);
}
| 3,510 |
69,619 | 0 | rend_service_intro_has_opened(origin_circuit_t *circuit)
{
rend_service_t *service;
char buf[RELAY_PAYLOAD_SIZE];
char serviceid[REND_SERVICE_ID_LEN_BASE32+1];
unsigned int expiring_nodes_len, num_ip_circuits, valid_ip_circuits = 0;
int reason = END_CIRC_REASON_TORPROTOCOL;
const char *rend_pk_digest;
to... | 3,511 |
32,438 | 0 | static struct mount *clone_mnt(struct mount *old, struct dentry *root,
int flag)
{
struct super_block *sb = old->mnt.mnt_sb;
struct mount *mnt;
int err;
mnt = alloc_vfsmnt(old->mnt_devname);
if (!mnt)
return ERR_PTR(-ENOMEM);
if (flag & (CL_SLAVE | CL_PRIVATE | CL_SHARED_TO_SLAVE))
mnt->mnt_group_id = ... | 3,512 |
152,947 | 0 | EnumTraits<media::mojom::VideoCaptureApi, media::VideoCaptureApi>::ToMojom(
media::VideoCaptureApi input) {
switch (input) {
case media::VideoCaptureApi::LINUX_V4L2_SINGLE_PLANE:
return media::mojom::VideoCaptureApi::LINUX_V4L2_SINGLE_PLANE;
case media::VideoCaptureApi::WIN_MEDIA_FOUNDATION:
r... | 3,513 |
184,592 | 1 | void BackgroundContentsService::Observe(
int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
switch (type) {
case chrome::NOTIFICATION_EXTENSIONS_READY:
LoadBackgroundContentsFromManifests(
content::Source<Profile>(source).ptr());
LoadBackgroundContentsFromPrefs(content::... | 3,514 |
164,978 | 0 | IntSize HTMLCanvasElement::BitmapSourceSize() const {
return IntSize(width(), height());
}
| 3,515 |
62,643 | 0 | _zip_cdir_free(zip_cdir_t *cd)
{
zip_uint64_t i;
if (!cd)
return;
for (i=0; i<cd->nentry; i++)
_zip_entry_finalize(cd->entry+i);
free(cd->entry);
_zip_string_free(cd->comment);
free(cd);
}
| 3,516 |
49,523 | 0 | s32 hid_snto32(__u32 value, unsigned n)
{
return snto32(value, n);
}
| 3,517 |
116,054 | 0 | void ExtensionSettingsHandler::ExtensionUninstallAccepted() {
DCHECK(!extension_id_prompting_.empty());
bool was_terminated = false;
const Extension* extension =
extension_service_->GetExtensionById(extension_id_prompting_, true);
if (!extension) {
extension = extension_service_->GetTerminatedExtens... | 3,518 |
175,513 | 0 | void ihevcd_copy_slice_hdr(codec_t *ps_codec, WORD32 slice_idx, WORD32 slice_idx_ref)
{
slice_header_t *ps_slice_hdr, *ps_slice_hdr_ref;
WORD32 *pu4_entry_offset_backup;
ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr_base + slice_idx;
ps_slice_hdr_ref = ps_codec->s_parse.ps_slice_hdr_base + slice_idx_ref;
... | 3,519 |
117,010 | 0 | bool GestureSequence::ScrollEnd(const TouchEvent& event,
GesturePoint& point, Gestures* gestures) {
DCHECK(state_ == GS_SCROLL);
if (point.IsInFlickWindow(event)) {
AppendScrollGestureEnd(point, point.last_touch_position(), gestures,
point.XVelocity(), point.YVelocity());
} else {
AppendScroll... | 3,520 |
42,892 | 0 | static int compute_selinux_con_for_new_file(pid_t pid, int dir_fd, security_context_t *newcon)
{
security_context_t srccon;
security_context_t dstcon;
const int r = is_selinux_enabled();
if (r == 0)
{
*newcon = NULL;
return 1;
}
else if (r == -1)
{
perror_msg("Co... | 3,521 |
118,199 | 0 | views::Combobox* AutofillDialogViews::ComboboxForType(
ServerFieldType type) {
for (DetailGroupMap::iterator iter = detail_groups_.begin();
iter != detail_groups_.end(); ++iter) {
const DetailsGroup& group = iter->second;
if (!delegate_->SectionIsActive(group.section))
continue;
Combobox... | 3,522 |
100,533 | 0 | void GrantUploadFile(const FilePath& file) {
uploadable_files_.insert(file);
}
| 3,523 |
78,378 | 0 | des_encrypt_cbc(const unsigned char *key, int keysize, unsigned char iv[EVP_MAX_IV_LENGTH],
const unsigned char *input, size_t length, unsigned char *output)
{
return openssl_enc(EVP_des_cbc(), key, iv, input, length, output);
}
| 3,524 |
33,747 | 0 | static void hidp_process_intr_transmit(struct hidp_session *session)
{
struct sk_buff *skb;
BT_DBG("session %p", session);
while ((skb = skb_dequeue(&session->intr_transmit))) {
if (hidp_send_frame(session->intr_sock, skb->data, skb->len) < 0) {
skb_queue_head(&session->intr_transmit, skb);
break;
}
h... | 3,525 |
16,133 | 0 | GahpClient::clear_pending()
{
if ( pending_reqid ) {
if (server->requestTable->remove(pending_reqid) == 0) {
server->requestTable->insert(pending_reqid,NULL);
}
}
pending_reqid = 0;
if (pending_result) delete pending_result;
pending_result = NULL;
free(pending_command);
pending_command = NULL;
if (pendin... | 3,526 |
139,213 | 0 | void RenderProcessHostImpl::ResumeDeferredNavigation(
const GlobalRequestID& request_id) {
widget_helper_->ResumeDeferredNavigation(request_id);
}
| 3,527 |
73,009 | 0 | int jas_image_readcmpt(jas_image_t *image, int cmptno, jas_image_coord_t x,
jas_image_coord_t y, jas_image_coord_t width, jas_image_coord_t height,
jas_matrix_t *data)
{
jas_image_cmpt_t *cmpt;
jas_image_coord_t i;
jas_image_coord_t j;
int k;
jas_seqent_t v;
int c;
jas_seqent_t *dr;
jas_seqent_t *d;
int dr... | 3,528 |
169,890 | 0 | xsltUnregisterAllExtModuleElement(void)
{
xmlMutexLock(xsltExtMutex);
xmlHashFree(xsltElementsHash, (xmlHashDeallocator) xsltFreeExtElement);
xsltElementsHash = NULL;
xmlMutexUnlock(xsltExtMutex);
}
| 3,529 |
31,900 | 0 | static int __perf_event_enable(void *info)
{
struct perf_event *event = info;
struct perf_event_context *ctx = event->ctx;
struct perf_event *leader = event->group_leader;
struct perf_cpu_context *cpuctx = __get_cpu_context(ctx);
int err;
if (WARN_ON_ONCE(!ctx->is_active))
return -EINVAL;
raw_spin_lock(&ctx-... | 3,530 |
96,613 | 0 | static int bin_signature(RCore *r, int mode) {
RBinFile *cur = r_bin_cur (r->bin);
RBinPlugin *plg = r_bin_file_cur_plugin (cur);
if (plg && plg->signature) {
const char *signature = plg->signature (cur, IS_MODE_JSON (mode));
r_cons_println (signature);
free ((char*) signature);
return true;
}
return false... | 3,531 |
116,814 | 0 | WebRTCAudioDeviceTest::~WebRTCAudioDeviceTest() {}
| 3,532 |
11,493 | 0 | fbStore_x4r4g4b4 (FbBits *bits, const CARD32 *values, int x, int width, miIndexedPtr indexed)
{
int i;
CARD16 *pixel = ((CARD16 *) bits) + x;
for (i = 0; i < width; ++i) {
Split(READ(values + i));
WRITE(pixel++, ((r << 4) & 0x0f00) |
((g ) & 0x00f0) |
((b >> 4) ));... | 3,533 |
123,128 | 0 | void RenderWidgetHostViewAndroid::SetCachedPageScaleFactorLimits(
float minimum_scale,
float maximum_scale) {
if (content_view_core_)
content_view_core_->UpdatePageScaleLimits(minimum_scale, maximum_scale);
}
| 3,534 |
147,163 | 0 | static void ActivityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterForMainWorld(
v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) {
v8::Isolate* isolate = info.GetIsolate();
ALLOW_UNUSED_LOCAL(isolate);
v8::Local<v8::Object> holder = info.Holder();
ALLOW_UNUSED_LOCA... | 3,535 |
61,703 | 0 | int migrate_page_move_mapping(struct address_space *mapping,
struct page *newpage, struct page *page,
struct buffer_head *head, enum migrate_mode mode,
int extra_count)
{
struct zone *oldzone, *newzone;
int dirty;
int expected_count = 1 + extra_count;
void **pslot;
if (!mapping) {
/* Anonymous page withou... | 3,536 |
96,433 | 0 | void mp_encode_lua_table_as_map(lua_State *L, mp_buf *buf, int level) {
size_t len = 0;
/* First step: count keys into table. No other way to do it with the
* Lua API, we need to iterate a first time. Note that an alternative
* would be to do a single run, and then hack the buffer to insert the
... | 3,537 |
110,034 | 0 | int HTMLSelectElement::nextValidIndex(int listIndex, SkipDirection direction, int skip) const
{
ASSERT(direction == -1 || direction == 1);
const Vector<HTMLElement*>& listItems = this->listItems();
int lastGoodIndex = listIndex;
int size = listItems.size();
for (listIndex += direction; listIndex >= ... | 3,538 |
36,844 | 0 | static struct inode *find_inode_fast(struct super_block *sb,
struct hlist_head *head, unsigned long ino)
{
struct inode *inode = NULL;
repeat:
hlist_for_each_entry(inode, head, i_hash) {
if (inode->i_ino != ino)
continue;
if (inode->i_sb != sb)
continue;
spin_lock(&inode->i_lock);
if (inode->i_stat... | 3,539 |
63,232 | 0 | void _WM_do_control_data_entry_course(struct _mdi *mdi,
struct _event_data *data) {
uint8_t ch = data->channel;
int data_tmp;
MIDI_EVENT_DEBUG(__FUNCTION__,ch, data->data.value);
if ((mdi->channel[ch].reg_non == 0)
&& (mdi->channel[ch].reg_data == 0x0000... | 3,540 |
102,944 | 0 | void TabStripModel::AddSelectionFromAnchorTo(int index) {
int old_active = active_index();
selection_model_.AddSelectionFromAnchorTo(index);
NotifySelectionChanged(old_active);
}
| 3,541 |
27,413 | 0 | static void __net_exit ip6_tnl_exit_net(struct net *net)
{
struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
rtnl_lock();
ip6_tnl_destroy_tunnels(ip6n);
rtnl_unlock();
}
| 3,542 |
19,145 | 0 | static int tcp_v6_md5_hash_skb(char *md5_hash, struct tcp_md5sig_key *key,
struct sock *sk, struct request_sock *req,
struct sk_buff *skb)
{
const struct in6_addr *saddr, *daddr;
struct tcp_md5sig_pool *hp;
struct hash_desc *desc;
struct tcphdr *th = tcp_hdr(skb);
if (sk) {
saddr = &inet6_sk... | 3,543 |
53,859 | 0 | void acpi_os_printf(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
acpi_os_vprintf(fmt, args);
va_end(args);
}
| 3,544 |
110,469 | 0 | void GLES2DecoderImpl::DoCopyTexSubImage2D(
GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height) {
TextureManager::TextureInfo* info = GetTextureInfoForTarget(target);
if (!info) {
SetGLError(GL_INVALID_OPERATION,
... | 3,545 |
115,882 | 0 | static inline Evas_Smart* _ewk_frame_smart_class_new(void)
{
static Evas_Smart_Class smartClass = EVAS_SMART_CLASS_INIT_NAME_VERSION(EWK_FRAME_TYPE_STR);
static Evas_Smart* smart = 0;
if (EINA_UNLIKELY(!smart)) {
evas_object_smart_clipped_smart_set(&_parent_sc);
_ewk_frame_smart_set(&smartC... | 3,546 |
140,585 | 0 | JNI_ChromeFeatureList_GetFieldTrialParamByFeature(
JNIEnv* env,
const JavaParamRef<jclass>& clazz,
const JavaParamRef<jstring>& jfeature_name,
const JavaParamRef<jstring>& jparam_name) {
const base::Feature* feature =
FindFeatureExposedToJava(ConvertJavaStringToUTF8(env, jfeature_name));
const... | 3,547 |
98,791 | 0 | void WebPluginDelegateProxy::OnDeferResourceLoading(unsigned long resource_id,
bool defer) {
plugin_->SetDeferResourceLoading(resource_id, defer);
}
| 3,548 |
134,778 | 0 | void EventConverterEvdevImpl::ProcessEvents(const input_event* inputs,
int count) {
for (int i = 0; i < count; ++i) {
const input_event& input = inputs[i];
switch (input.type) {
case EV_KEY:
ConvertKeyEvent(input);
break;
case EV_REL:
... | 3,549 |
66,390 | 0 | static CCPrepare gen_prepare_eflags_c(DisasContext *s, TCGv reg)
{
TCGv t0, t1;
int size, shift;
switch (s->cc_op) {
case CC_OP_SUBB ... CC_OP_SUBQ:
/* (DATA_TYPE)CC_SRCT < (DATA_TYPE)CC_SRC */
size = s->cc_op - CC_OP_SUBB;
t1 = gen_ext_tl(cpu_tmp0, cpu_cc_src, size, false);
... | 3,550 |
112,474 | 0 | PassRefPtr<NodeList> Document::handleZeroPadding(const HitTestRequest& request, HitTestResult& result) const
{
renderView()->hitTest(request, result);
Node* node = result.innerNode();
if (!node)
return 0;
node = node->deprecatedShadowAncestorNode();
ListHashSet<RefPtr<Node> > list;
lis... | 3,551 |
23,459 | 0 | static void nfs4_xdr_enc_destroy_session(struct rpc_rqst *req,
struct xdr_stream *xdr,
struct nfs4_session *session)
{
struct compound_hdr hdr = {
.minorversion = session->clp->cl_mvops->minor_version,
};
encode_compound_hdr(xdr, req, &hdr);
encode_destroy_session(xdr, session, &hdr);
encode_nops(&h... | 3,552 |
95,609 | 0 | void QDECL Com_Printf( const char *fmt, ... ) {
va_list argptr;
char msg[MAXPRINTMSG];
static qboolean opening_qconsole = qfalse;
va_start( argptr,fmt );
Q_vsnprintf( msg, sizeof( msg ), fmt, argptr );
va_end( argptr );
if ( rd_buffer ) {
if ( ( strlen( msg ) + strlen( rd_buffer ) ) > ( rd_buffersize - 1 ) )... | 3,553 |
152,200 | 0 | void RenderFrameImpl::BindMhtmlFileWriter(
mojom::MhtmlFileWriterAssociatedRequest request) {
mhtml_file_writer_binding_.Bind(
std::move(request), GetTaskRunner(blink::TaskType::kInternalDefault));
}
| 3,554 |
39,130 | 0 | mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir,
const unsigned char *s, uint32_t offset, size_t nbytes, size_t linecnt)
{
/*
* Note: FILE_SEARCH and FILE_REGEX do not actually copy
* anything, but setup pointers into the source
*/
if (indir == 0) {
switch (type) {
case FILE_SEARCH:
... | 3,555 |
84,390 | 0 | flatpak_proxy_set_sloppy_names (FlatpakProxy *proxy,
gboolean sloppy_names)
{
proxy->sloppy_names = sloppy_names;
}
| 3,556 |
33,287 | 0 | int kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4)
{
unsigned long old_cr4 = kvm_read_cr4(vcpu);
unsigned long pdptr_bits = X86_CR4_PGE | X86_CR4_PSE |
X86_CR4_PAE | X86_CR4_SMEP;
if (cr4 & CR4_RESERVED_BITS)
return 1;
if (!guest_cpuid_has_xsave(vcpu) && (cr4 & X86_CR4_OSXSAVE))
return 1;
if (!... | 3,557 |
70,621 | 0 | evdns_nameserver_ip_add_line(struct evdns_base *base, const char *ips) {
const char *addr;
char *buf;
int r;
ASSERT_LOCKED(base);
while (*ips) {
while (isspace(*ips) || *ips == ',' || *ips == '\t')
++ips;
addr = ips;
while (isdigit(*ips) || *ips == '.' || *ips == ':' ||
*ips=='[' || *ips==']')
++... | 3,558 |
89,795 | 0 | char *converse(pam_handle_t *pamh, int echocode, const char *prompt) {
const struct pam_message msg = {.msg_style = echocode, .msg = (char *)prompt};
const struct pam_message *msgs = &msg;
struct pam_response *resp = NULL;
int retval = _converse(pamh, 1, &msgs, &resp);
char *ret = NULL;
if (retval != PAM_S... | 3,559 |
954 | 0 | GfxGouraudTriangleShading::GfxGouraudTriangleShading(
int typeA,
GfxGouraudVertex *verticesA, int nVerticesA,
int (*trianglesA)[3], int nTrianglesA,
Function **funcsA, int nFuncsA):
GfxShading(typeA)
{
int i;
vertices = verticesA;
nVertices = nVerticesA;
triangles = tr... | 3,560 |
181,304 | 1 | int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr)
{
u16 offset = sizeof(struct ipv6hdr);
struct ipv6_opt_hdr *exthdr =
(struct ipv6_opt_hdr *)(ipv6_hdr(skb) + 1);
unsigned int packet_len = skb_tail_pointer(skb) -
skb_network_header(skb);
int found_rhdr = 0;
*nexthdr = &ipv6_hdr(skb)->nexthdr;
while (off... | 3,561 |
162,208 | 0 | VideoCaptureImpl::~VideoCaptureImpl() {
DCHECK(io_thread_checker_.CalledOnValidThread());
if ((state_ == VIDEO_CAPTURE_STATE_STARTING ||
state_ == VIDEO_CAPTURE_STATE_STARTED) &&
GetVideoCaptureHost())
GetVideoCaptureHost()->Stop(device_id_);
}
| 3,562 |
59,241 | 0 | make_pa_enc_challange(krb5_context context, METHOD_DATA *md,
krb5_crypto crypto)
{
PA_ENC_TS_ENC p;
unsigned char *buf;
size_t buf_size;
size_t len;
EncryptedData encdata;
krb5_error_code ret;
int32_t usec;
int usec2;
krb5_us_timeofday (context, &p.patimestamp, &usec);
u... | 3,563 |
46,675 | 0 | static int xts_aes_crypt(struct blkcipher_desc *desc, long func,
struct s390_xts_ctx *xts_ctx,
struct blkcipher_walk *walk)
{
unsigned int offset = (xts_ctx->key_len >> 1) & 0x10;
int ret = blkcipher_walk_virt(desc, walk);
unsigned int nbytes = walk->nbytes;
unsigned int n;
u8 *in, *out;
struct pcc_param ... | 3,564 |
25,193 | 0 | static void get_tcp4_sock(struct sock *sk, struct seq_file *f, int i, int *len)
{
int timer_active;
unsigned long timer_expires;
struct tcp_sock *tp = tcp_sk(sk);
const struct inet_connection_sock *icsk = inet_csk(sk);
struct inet_sock *inet = inet_sk(sk);
__be32 dest = inet->inet_daddr;
__be32 src = inet->inet_... | 3,565 |
2,070 | 0 | static void mini_header_set_msg_size(SpiceDataHeaderOpaque *header, uint32_t size)
{
((SpiceMiniDataHeader *)header->data)->size = size;
}
| 3,566 |
116,886 | 0 | WebKit::WebFileSystem* TestWebKitPlatformSupport::fileSystem() {
return &file_system_;
}
| 3,567 |
18,872 | 0 | void inet_csk_clear_xmit_timers(struct sock *sk)
{
struct inet_connection_sock *icsk = inet_csk(sk);
icsk->icsk_pending = icsk->icsk_ack.pending = icsk->icsk_ack.blocked = 0;
sk_stop_timer(sk, &icsk->icsk_retransmit_timer);
sk_stop_timer(sk, &icsk->icsk_delack_timer);
sk_stop_timer(sk, &sk->sk_timer);
}
| 3,568 |
44,123 | 0 | xpath_search(xmlNode * xml_top, const char *path)
{
xmlDocPtr doc = NULL;
xmlXPathObjectPtr xpathObj = NULL;
xmlXPathContextPtr xpathCtx = NULL;
const xmlChar *xpathExpr = (const xmlChar *)path;
CRM_CHECK(path != NULL, return NULL);
CRM_CHECK(xml_top != NULL, return NULL);
CRM_CHECK(strlen(... | 3,569 |
99,428 | 0 | void Channel::Close() {
channel_impl_->Close();
}
| 3,570 |
166,524 | 0 | void AppendBlinkSettingsSwitch(const char* value) {
command_line_.AppendSwitchASCII(switches::kBlinkSettings, value);
}
| 3,571 |
170,831 | 0 | static void ToColor_S32_Raw(SkColor dst[], const void* src, int width,
SkColorTable*) {
SkASSERT(width > 0);
const SkPMColor* s = (const SkPMColor*)src;
do {
SkPMColor c = *s++;
*dst++ = SkColorSetARGB(SkGetPackedA32(c), SkGetPackedR32(c),
SkGetPackedG32(c), SkGetPackedB32(c));
} while (--width != 0);
}
| 3,572 |
28,905 | 0 | int kvm_vm_ioctl_irq_line(struct kvm *kvm, struct kvm_irq_level *irq_event,
bool line_status)
{
if (!irqchip_in_kernel(kvm))
return -ENXIO;
irq_event->status = kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID,
irq_event->irq, irq_event->level,
line_status);
return 0;
}
| 3,573 |
139,170 | 0 | void Hold(const SessionStorageNamespaceMap& sessions, int view_route_id) {
(*session_storage_namespaces_awaiting_close_)[view_route_id] = sessions;
}
| 3,574 |
26,721 | 0 | static bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info,
int attr)
{
struct nlattr *rate;
u16 bitrate;
rate = nla_nest_start(msg, attr);
if (!rate)
goto nla_put_failure;
/* cfg80211_calculate_bitrate will return 0 for mcs >= 32 */
bitrate = cfg80211_calculate_bitrate(info);
if (bitr... | 3,575 |
17,696 | 0 | DGAAvailable(int index)
{
ScreenPtr pScreen;
assert(index < MAXSCREENS);
pScreen = screenInfo.screens[index];
return DGAScreenAvailable(pScreen);
}
| 3,576 |
134,090 | 0 | InputMethodBase::~InputMethodBase() {
FOR_EACH_OBSERVER(InputMethodObserver,
observer_list_,
OnInputMethodDestroyed(this));
}
| 3,577 |
96,622 | 0 | MagickExport ChannelFeatures *GetImageFeatures(const Image *image,
const size_t distance,ExceptionInfo *exception)
{
typedef struct _ChannelStatistics
{
PixelInfo
direction[4]; /* horizontal, vertical, left and right diagonals */
} ChannelStatistics;
CacheView
*image_view;
ChannelFeatures
... | 3,578 |
168,637 | 0 | static Status UpdateKeyGenerator(IndexedDBBackingStore* backing_store,
IndexedDBTransaction* transaction,
int64_t database_id,
int64_t object_store_id,
const IndexedDBKey& key,
... | 3,579 |
8,684 | 0 | full_path_write (const struct url *url, char *where)
{
#define FROB(el, chr) do { \
char *f_el = url->el; \
if (f_el) { \
int l = strlen (f_el); \
*where++ = chr; \
memcpy (whe... | 3,580 |
173,727 | 0 | static void derive_permissions_recursive_locked(struct fuse* fuse, struct node *parent) {
struct node *node;
for (node = parent->child; node; node = node->next) {
derive_permissions_locked(fuse, parent, node);
if (node->child) {
derive_permissions_recursive_locked(fuse, node);
}
}
}
| 3,581 |
104,956 | 0 | void GraphicsContext::drawEllipse(const IntRect& rect)
{
if (paintingDisabled())
return;
m_data->context->SetPen(wxPen(strokeColor(), strokeThickness(), strokeStyleToWxPenStyle(strokeStyle())));
m_data->context->DrawEllipse(rect.x(), rect.y(), rect.width(), rect.height());
}
| 3,582 |
17,831 | 0 | generate_std (RSA_secret_key *sk, unsigned int nbits, unsigned long use_e,
int transient_key)
{
gcry_mpi_t p, q; /* the two primes */
gcry_mpi_t d; /* the private key */
gcry_mpi_t u;
gcry_mpi_t t1, t2;
gcry_mpi_t n; /* the public key */
gcry_mpi_t e; /* the exponent */
gcry_mpi_t p... | 3,583 |
115,889 | 0 | Ewk_Certificate_Status ewk_frame_certificate_status_get(Evas_Object* ewkFrame)
{
EWK_FRAME_SD_GET_OR_RETURN(ewkFrame, smartData, EWK_CERTIFICATE_STATUS_NO_CERTIFICATE);
EINA_SAFETY_ON_NULL_RETURN_VAL(smartData->frame, EWK_CERTIFICATE_STATUS_NO_CERTIFICATE);
const WebCore::FrameLoader* frameLoader = smartDa... | 3,584 |
116,442 | 0 | const SkBitmap* BrowserNonClientFrameViewAura::GetThemeFrameBitmap() const {
bool is_incognito = browser_view()->IsOffTheRecord();
int resource_id;
if (browser_view()->IsBrowserTypeNormal()) {
if (ShouldPaintAsActive()) {
if (is_incognito) {
return GetCustomBitmap(IDR_THEME_FRAME_INCOGNITO,
... | 3,585 |
142,104 | 0 | bool MdmEnrollmentEnabled() {
base::string16 mdm_url = GetMdmUrl();
return !mdm_url.empty();
}
| 3,586 |
137,171 | 0 | bool Textfield::DrawsHandles() {
return false;
}
| 3,587 |
2,932 | 0 | pdf14_begin_typed_image(gx_device * dev, const gs_gstate * pgs,
const gs_matrix *pmat, const gs_image_common_t *pic,
const gs_int_rect * prect,
const gx_drawing_color * pdcolor,
const gx_clip_path * pcpath, gs_me... | 3,588 |
155,602 | 0 | AuthenticatorClientPinEntrySheetModel::GetStepIllustration(
ImageColorScheme color_scheme) const {
return color_scheme == ImageColorScheme::kDark ? kWebauthnUsbDarkIcon
: kWebauthnUsbIcon;
}
| 3,589 |
165,820 | 0 | void SVGElement::ReportAttributeParsingError(SVGParsingError error,
const QualifiedName& name,
const AtomicString& value) {
if (error == SVGParseStatus::kNoError)
return;
if (value.IsNull())
return;
GetDocument().Add... | 3,590 |
56,498 | 0 | static int __ext4_ext_check(const char *function, unsigned int line,
struct inode *inode, struct ext4_extent_header *eh,
int depth, ext4_fsblk_t pblk)
{
const char *error_msg;
int max = 0, err = -EFSCORRUPTED;
if (unlikely(eh->eh_magic != EXT4_EXT_MAGIC)) {
error_msg = "invalid magic";
goto corrup... | 3,591 |
31,535 | 0 | rad_cvt_string(const void *data, size_t len)
{
char *s;
s = malloc(len + 1);
if (s != NULL) {
memcpy(s, data, len);
s[len] = '\0';
}
return s;
}
| 3,592 |
97,311 | 0 | static bool shouldAllowExternalLoad(const KURL& url)
{
String urlString = url.string();
if (urlString == "file:///etc/xml/catalog")
return false;
if (urlString.startsWith("file:///", false) && urlString.endsWith("/etc/catalog", false))
return false;
if (urlString.startsWith("http://ww... | 3,593 |
143,639 | 0 | RenderWidgetHostImpl::GetRootBrowserAccessibilityManager() {
return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL;
}
| 3,594 |
93,482 | 0 | static int l_channel_read (lua_State *L) {
return channel_read(L, 0, 0);
}
| 3,595 |
160,133 | 0 | void BackendIO::ExecuteEntryOperation() {
switch (operation_) {
case OP_READ:
result_ =
entry_->ReadDataImpl(index_, offset_, buf_.get(), buf_len_,
base::Bind(&BackendIO::OnIOComplete, this));
break;
case OP_WRITE:
result_ =
entry_->WriteDat... | 3,596 |
72,800 | 0 | int jas_stream_ungetc(jas_stream_t *stream, int c)
{
if (!stream->ptr_ || stream->ptr_ == stream->bufbase_) {
return -1;
}
/* Reset the EOF indicator (since we now have at least one character
to read). */
stream->flags_ &= ~JAS_STREAM_EOF;
--stream->rwcnt_;
--stream->ptr_;
++stream->cnt_;
*stream->ptr_ =... | 3,597 |
154,389 | 0 | explicit Vec4f(const Vec4& data) {
data.GetValues(v);
}
| 3,598 |
86,164 | 0 | static void amd_gpio_irq_mask(struct irq_data *d)
{
u32 pin_reg;
unsigned long flags;
struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
struct amd_gpio *gpio_dev = gpiochip_get_data(gc);
spin_lock_irqsave(&gpio_dev->lock, flags);
pin_reg = readl(gpio_dev->base + (d->hwirq)*4);
pin_reg &= ~BIT(INTERRUPT_MASK... | 3,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.