unique_id int64 13 189k | target int64 0 1 | code stringlengths 20 241k | __index_level_0__ int64 0 18.9k |
|---|---|---|---|
128,145 | 0 | void TrayCast::UpdatePrimaryView() {
if (HasCastExtension() == false) {
if (default_)
default_->SetVisible(false);
if (tray_) {
base::MessageLoopForUI::current()->PostTask(
FROM_HERE, base::Bind(&tray::CastTrayView::SetVisible,
tray_->AsWeakPtr(), false));... | 2,700 |
126,628 | 0 | int TabStripModel::GetIndexOfWebContents(const WebContents* contents) const {
for (size_t i = 0; i < contents_data_.size(); ++i) {
if (contents_data_[i]->contents == contents)
return i;
}
return kNoTab;
}
| 2,701 |
91,862 | 0 | GF_Err dvcC_Size(GF_Box *s)
{
GF_DOVIConfigurationBox *ptr = (GF_DOVIConfigurationBox *)s;
ptr->size += sizeof(GF_DOVIDecoderConfigurationRecord);
return GF_OK;
}
| 2,702 |
122,116 | 0 | void RenderLayerCompositor::assignLayersToBackingsForReflectionLayer(RenderLayer* reflectionLayer, bool& layersChanged)
{
if (computeCompositedLayerUpdate(reflectionLayer) != NoCompositingStateChange) {
layersChanged = true;
allocateOrClearCompositedLayerMapping(reflectionLayer);
}
updateDir... | 2,703 |
7,869 | 0 | static int ram_save_complete(QEMUFile *f, void *opaque)
{
qemu_mutex_lock_ramlist();
migration_bitmap_sync();
ram_control_before_iterate(f, RAM_CONTROL_FINISH);
/* try transferring iterative blocks of memory */
/* flush all remaining blocks regardless of rate limiting */
while (true) {
... | 2,704 |
156,392 | 0 | Response PageHandler::Enable() {
enabled_ = true;
if (GetWebContents() && GetWebContents()->ShowingInterstitialPage())
frontend_->InterstitialShown();
return Response::FallThrough();
}
| 2,705 |
132,782 | 0 | void PepperVideoRenderer3D::OnDecodeDone(int32_t result) {
DCHECK(decode_pending_);
decode_pending_ = false;
if (result != PP_OK) {
LOG(ERROR) << "VideoDecoder::Decode() returned " << result;
event_handler_->OnVideoDecodeError();
return;
}
delete pending_packets_.front();
pending_packets_.pop_... | 2,706 |
83,121 | 0 | do_os_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type,
int swap, uint32_t namesz, uint32_t descsz,
size_t noff, size_t doff, int *flags)
{
if (namesz == 5 && strcmp((char *)&nbuf[noff], "SuSE") == 0 &&
type == NT_GNU_VERSION && descsz == 2) {
*flags |= FLAGS_DID_OS_NOTE;
file_print... | 2,707 |
162,756 | 0 | void BaseRenderingContext2D::setCurrentTransform(
SVGMatrixTearOff* matrix_tear_off) {
const AffineTransform& transform = matrix_tear_off->Value();
setTransform(transform.A(), transform.B(), transform.C(), transform.D(),
transform.E(), transform.F());
}
| 2,708 |
93,866 | 0 | virDomainMigratePrepare2(virConnectPtr dconn,
char **cookie,
int *cookielen,
const char *uri_in,
char **uri_out,
unsigned long flags,
const char *dname,
... | 2,709 |
98,911 | 0 | PassRefPtr<Element> HTMLConstructionSite::createHTMLElement(AtomicHTMLToken& token)
{
QualifiedName tagName(nullAtom, token.name(), xhtmlNamespaceURI);
RefPtr<Element> element = HTMLElementFactory::createHTMLElement(tagName, m_document, form(), true);
element->setAttributeMap(token.takeAtributes(), m_fragme... | 2,710 |
168,848 | 0 | bool TabsGetZoomFunction::RunAsync() {
std::unique_ptr<tabs::GetZoom::Params> params(
tabs::GetZoom::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
int tab_id = params->tab_id ? *params->tab_id : -1;
WebContents* web_contents = GetWebContents(tab_id);
if (!web_contents)
return false;... | 2,711 |
20,308 | 0 | struct kvm_memory_slot *gfn_to_memslot(struct kvm *kvm, gfn_t gfn)
{
return __gfn_to_memslot(kvm_memslots(kvm), gfn);
}
| 2,712 |
17,315 | 0 | coproc_reap ()
{
#if MULTIPLE_COPROCS
cpl_reap ();
#else
struct coproc *cp;
cp = &sh_coproc; /* XXX - will require changes for multiple coprocs */
if (cp && (cp->c_flags & COPROC_DEAD))
coproc_dispose (cp);
#endif
}
| 2,713 |
69,426 | 0 | exit_cifs_idmap(void)
{
key_revoke(root_cred->thread_keyring);
unregister_key_type(&cifs_idmap_key_type);
put_cred(root_cred);
cifs_dbg(FYI, "Unregistered %s key type\n", cifs_idmap_key_type.name);
}
| 2,714 |
159,327 | 0 | WebGLRenderingContextBase::WebGLRenderingContextBase(
CanvasRenderingContextHost* host,
scoped_refptr<WebTaskRunner> task_runner,
std::unique_ptr<WebGraphicsContext3DProvider> context_provider,
bool using_gpu_compositing,
const CanvasContextCreationAttributes& requested_attributes,
unsigned vers... | 2,715 |
75,377 | 0 | static int opand(RAsm *a, ut8 *data, const Opcode *op) {
if (op->operands[1].type & OT_CONSTANT) {
if (op->operands[0].type & OT_GPREG &&
op->operands[0].type & OT_WORD) {
return process_16bit_group_1 (a, data, op, 0x20);
}
if (!is_al_reg (&op->operands[0])) {
return process_group_1 (a, data, op);
... | 2,716 |
7,822 | 0 | TT_Goto_CodeRange( TT_ExecContext exec,
FT_Int range,
FT_Long IP )
{
TT_CodeRange* coderange;
FT_ASSERT( range >= 1 && range <= 3 );
coderange = &exec->codeRangeTable[range - 1];
FT_ASSERT( coderange->base != NULL );
/* NOTE: Beca... | 2,717 |
131,876 | 0 | static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
TestObjectPythonV8Internal::voidMethodByteArgMethod(info);
TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
}
| 2,718 |
148,390 | 0 | WebContentsImpl* WebContentsImpl::GetFocusedWebContents() {
return GetOutermostWebContents()->node_.focused_web_contents();
}
| 2,719 |
79,365 | 0 | static int mov_write_itunes_hdlr_tag(AVIOContext *pb, MOVMuxContext *mov,
AVFormatContext *s)
{
avio_wb32(pb, 33); /* size */
ffio_wfourcc(pb, "hdlr");
avio_wb32(pb, 0);
avio_wb32(pb, 0);
ffio_wfourcc(pb, "mdir");
ffio_wfourcc(pb, "appl");
avio_wb32(pb, 0... | 2,720 |
105,361 | 0 | void AutofillManager::set_metric_logger(
const AutofillMetrics* metric_logger) {
metric_logger_.reset(metric_logger);
}
| 2,721 |
1,056 | 0 | void GfxColorSpace::getGrayLine(Guchar *in, unsigned char *out, int length) {
int i, j, n;
GfxColor color;
GfxGray gray;
n = getNComps();
for (i = 0; i < length; i++) {
for (j = 0; j < n; j++)
color.c[j] = in[i * n + j] * 256;
getGray (&color, &gray);
out[i] = colToByte(gray);
}
}
| 2,722 |
113,987 | 0 | void NotifyRefreshClock() {
ash::ClockObserver* observer = tray_->clock_observer();
if (observer)
observer->Refresh();
}
| 2,723 |
2,487 | 0 | static size_t smbXcli_padding_helper(uint32_t offset, size_t n)
{
if ((offset & (n-1)) == 0) return 0;
return n - (offset & (n-1));
}
| 2,724 |
168,445 | 0 | int PlatformFontSkia::GetStyle() const {
return style_;
}
| 2,725 |
18,608 | 0 | SYSCALL_DEFINE2(listen, int, fd, int, backlog)
{
struct socket *sock;
int err, fput_needed;
int somaxconn;
sock = sockfd_lookup_light(fd, &err, &fput_needed);
if (sock) {
somaxconn = sock_net(sock->sk)->core.sysctl_somaxconn;
if ((unsigned int)backlog > somaxconn)
backlog = somaxconn;
err = security_soc... | 2,726 |
171,595 | 0 | int strcmp16(const char16_t *s1, const char16_t *s2)
{
char16_t ch;
int d = 0;
while ( 1 ) {
d = (int)(ch = *s1++) - (int)*s2++;
if ( d || !ch )
break;
}
return d;
}
| 2,727 |
158,487 | 0 | OverscrollSource overscroll_source() const {
return view_->overscroll_controller()->overscroll_source_;
}
| 2,728 |
46,174 | 0 | static void __put_super(struct super_block *sb)
{
if (!--sb->s_count) {
list_del_init(&sb->s_list);
destroy_super(sb);
}
}
| 2,729 |
71,515 | 0 | static const char *GetImageTransferCharacteristic(
const DPXTransferCharacteristic characteristic)
{
const char
*transfer;
/*
Get the element transfer characteristic.
*/
switch(characteristic)
{
case TransferCharacteristicUserDefined:
{
transfer="UserDefined";
break;
}
c... | 2,730 |
159,088 | 0 | bool DownloadItemImpl::AllDataSaved() const {
return destination_info_.all_data_saved;
}
| 2,731 |
162,173 | 0 | void MojoAudioOutputIPC::CloseStream() {
DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
stream_provider_.reset();
stream_.reset();
binding_.Close();
delegate_ = nullptr;
weak_factory_.InvalidateWeakPtrs();
}
| 2,732 |
77,110 | 0 | OVS_EXCLUDED(ofproto_mutex)
{
/* This skips the ofmonitor and flow-removed notifications because the
* switch is being deleted and any OpenFlow channels have been or soon will
* be killed. */
ovs_mutex_lock(&ofproto_mutex);
if (rule->state == RULE_INSERTED) {
/* Make sure there is no ... | 2,733 |
179,053 | 1 | static void xfrm6_tunnel_spi_fini(void)
{
kmem_cache_destroy(xfrm6_tunnel_spi_kmem);
}
| 2,734 |
42,221 | 0 | static long vhost_get_vring_endian(struct vhost_virtqueue *vq, u32 idx,
int __user *argp)
{
return -ENOIOCTLCMD;
}
| 2,735 |
168,794 | 0 | void RenderWidgetHostImpl::WasResized(bool scroll_focused_node_into_view) {
if (resize_ack_pending_ || !process_->HasConnection() || !view_ ||
!view_->HasSize() || !renderer_initialized_ || auto_resize_enabled_ ||
!delegate_) {
return;
}
std::unique_ptr<ResizeParams> params(new ResizeParams);
i... | 2,736 |
186,438 | 1 | String InspectorPageAgent::CachedResourceTypeJson(
const Resource& cached_resource) {
return ResourceTypeJson(CachedResourceType(cached_resource));
}
| 2,737 |
87,901 | 0 | int prompt(int flags, pam_handle_t *pamh, int style, char **response,
const char *fmt, ...)
{
int r;
if (PAM_SILENT == (flags & PAM_SILENT)
&& style != PAM_TEXT_INFO
&& style != PAM_PROMPT_ECHO_OFF) {
/* PAM_SILENT does not override the prompting of the user for passwords
* etc., it only stops informati... | 2,738 |
5,429 | 0 | static void Ins_RDTG( INS_ARG )
{ (void)args;
CUR.GS.round_state = TT_Round_Down_To_Grid;
CUR.func_round = (TRound_Function)Round_Down_To_Grid;
}
| 2,739 |
62,449 | 0 | parse_wcc_attr(netdissect_options *ndo,
const uint32_t *dp)
{
/* Our caller has already checked this */
ND_PRINT((ndo, " sz %" PRIu64, EXTRACT_64BITS(&dp[0])));
ND_PRINT((ndo, " mtime %u.%06u ctime %u.%06u",
EXTRACT_32BITS(&dp[2]), EXTRACT_32BITS(&dp[3]),
EXTRACT_32BITS(&dp[4]), EXTRAC... | 2,740 |
28,674 | 0 | void lbs_debugfs_init(void)
{
if (!lbs_dir)
lbs_dir = debugfs_create_dir("lbs_wireless", NULL);
}
| 2,741 |
131,102 | 0 | static void typedArrayAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
{
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
TestObjectV8Internal::typedArrayAttrAttributeSetter(jsValue, info);
TRACE_EVENT_SET_SAMPLING_STATE("V8", ... | 2,742 |
119,366 | 0 | bool OmniboxEditModel::query_in_progress() const {
return !autocomplete_controller()->done();
}
| 2,743 |
105,896 | 0 | JSObject* throwSyntaxError(ExecState* exec)
{
return throwError(exec, createSyntaxError(exec, "Syntax error"));
}
| 2,744 |
105,342 | 0 | void AutofillManager::OnDidFillAutofillFormData() {
NotificationService::current()->Notify(
NotificationType::AUTOFILL_DID_FILL_FORM_DATA,
Source<RenderViewHost>(tab_contents()->render_view_host()),
NotificationService::NoDetails());
}
| 2,745 |
131,636 | 0 | static void readonlyDOMTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
{
TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
v8SetReturnValue(info, static_cast<double>(imp->readonlyDOMTimeStampAttribute()));
}
| 2,746 |
166,124 | 0 | void RenderFrameHostImpl::DidCommitProvisionalLoad(
std::unique_ptr<FrameHostMsg_DidCommitProvisionalLoad_Params>
validated_params,
service_manager::mojom::InterfaceProviderRequest
interface_provider_request) {
if (GetNavigationHandle()) {
main_frame_request_ids_ = {validated_params->reque... | 2,747 |
62,781 | 0 | static int MSLHasInternalSubset(void *context)
{
MSLInfo
*msl_info;
/*
Does this document has an internal subset?
*/
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" SAX.MSLHasInternalSubset()");
msl_info=(MSLInfo *) context;
return(msl_info->document->intSubset != NULL);
}
| 2,748 |
13,795 | 0 | ZEND_API int zend_fcall_info_argv(zend_fcall_info *fci TSRMLS_DC, int argc, va_list *argv) /* {{{ */
{
int i;
zval **arg;
if (argc < 0) {
return FAILURE;
}
zend_fcall_info_args_clear(fci, !argc);
if (argc) {
fci->param_count = argc;
fci->params = (zval ***) erealloc(fci->params, fci->param_count * sizeof... | 2,749 |
129,341 | 0 | void GLES2DecoderImpl::DoVertexAttrib3fv(GLuint index, const GLfloat* v) {
GLfloat t[4] = { v[0], v[1], v[2], 1.0f, };
if (SetVertexAttribValue("glVertexAttrib3fv", index, t)) {
glVertexAttrib3fv(index, v);
}
}
| 2,750 |
178,455 | 1 | do_setup_env(Session *s, const char *shell)
{
struct ssh *ssh = active_state; /* XXX */
char buf[256];
u_int i, envsize;
char **env, *laddr;
struct passwd *pw = s->pw;
#if !defined (HAVE_LOGIN_CAP) && !defined (HAVE_CYGWIN)
char *path = NULL;
#endif
/* Initialize the environment. */
envsize = 100;
env = xcalloc(envsiz... | 2,751 |
54,531 | 0 | static int mov_read_meta(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
while (atom.size > 8) {
uint32_t tag = avio_rl32(pb);
atom.size -= 4;
if (tag == MKTAG('h','d','l','r')) {
avio_seek(pb, -8, SEEK_CUR);
atom.size += 8;
return mov_read_default(c, pb, ... | 2,752 |
53,257 | 0 | static int usbdev_notify(struct notifier_block *self,
unsigned long action, void *dev)
{
switch (action) {
case USB_DEVICE_ADD:
break;
case USB_DEVICE_REMOVE:
usbdev_remove(dev);
break;
}
return NOTIFY_OK;
}
| 2,753 |
171,485 | 0 | WORD32 ih264d_get_buf_info(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op)
{
dec_struct_t * ps_dec;
UWORD8 i = 0; // Default for 420P format
UWORD16 pic_wd, pic_ht;
ivd_ctl_getbufinfo_op_t *ps_ctl_op =
(ivd_ctl_getbufinfo_op_t*)pv_api_op;
UNUSED(pv_api_ip);
ps_ctl_op->u4_error_code = 0;
ps... | 2,754 |
85,947 | 0 | static void end_io_acct(struct dm_io *io)
{
struct mapped_device *md = io->md;
struct bio *bio = io->bio;
unsigned long duration = jiffies - io->start_time;
int pending;
int rw = bio_data_dir(bio);
generic_end_io_acct(md->queue, rw, &dm_disk(md)->part0, io->start_time);
if (unlikely(dm_stats_used(&md->stats)))... | 2,755 |
76,191 | 0 | static bool new_idmap_permitted(const struct file *file,
struct user_namespace *ns, int cap_setid,
struct uid_gid_map *new_map)
{
const struct cred *cred = file->f_cred;
/* Don't allow mappings that would allow anything that wouldn't
* be allowed without the establishment of unprivileged mappings.
*/
if ... | 2,756 |
19,236 | 0 | int netlink_has_listeners(struct sock *sk, unsigned int group)
{
int res = 0;
struct listeners *listeners;
BUG_ON(!netlink_is_kernel(sk));
rcu_read_lock();
listeners = rcu_dereference(nl_table[sk->sk_protocol].listeners);
if (group - 1 < nl_table[sk->sk_protocol].groups)
res = test_bit(group - 1, listeners->... | 2,757 |
154,013 | 0 | void GLES2DecoderImpl::DoGetIntegerv(GLenum pname,
GLint* params,
GLsizei params_size) {
DCHECK(params);
GLsizei num_written = 0;
if (state_.GetStateAsGLint(pname, params, &num_written) ||
GetHelper(pname, params, &num_written)) {
... | 2,758 |
54,682 | 0 | static int snd_seq_client_enqueue_event(struct snd_seq_client *client,
struct snd_seq_event *event,
struct file *file, int blocking,
int atomic, int hop)
{
struct snd_seq_event_cell *cell;
int err;
/* special queue values - force direct passing */
if (event->queue == SNDRV_SEQ_ADDRESS_SUBSCRIBERS) {... | 2,759 |
81,303 | 0 | static void output_printk(struct trace_event_buffer *fbuffer)
{
struct trace_event_call *event_call;
struct trace_event *event;
unsigned long flags;
struct trace_iterator *iter = tracepoint_print_iter;
/* We should never get here if iter is NULL */
if (WARN_ON_ONCE(!iter))
return;
event_call = fbuffer->trace... | 2,760 |
70,400 | 0 | jas_matrix_t *jas_seq2d_create(int xstart, int ystart, int xend, int yend)
{
jas_matrix_t *matrix;
assert(xstart <= xend && ystart <= yend);
if (!(matrix = jas_matrix_create(yend - ystart, xend - xstart))) {
return 0;
}
matrix->xstart_ = xstart;
matrix->ystart_ = ystart;
matrix->xend_ = xend;
matrix->yend_ = ... | 2,761 |
178,096 | 1 | XGetModifierMapping(register Display *dpy)
{
xGetModifierMappingReply rep;
register xReq *req;
unsigned long nbytes;
XModifierKeymap *res;
LockDisplay(dpy);
GetEmptyReq(GetModifierMapping, req);
(void) _XReply (dpy, (xReply *)&rep, 0, xFalse);
if (rep.length < (INT_MAX >> 2)) {
nbytes = (unsigned long)rep.length ... | 2,762 |
133,690 | 0 | static ReflectedXSSDisposition combineXSSProtectionHeaderAndCSP(ReflectedXSSDisposition xssProtection, ReflectedXSSDisposition reflectedXSS)
{
ReflectedXSSDisposition result = std::max(xssProtection, reflectedXSS);
if (result == ReflectedXSSInvalid || result == FilterReflectedXSS || result == ReflectedXSSUnset... | 2,763 |
157,563 | 0 | HeadlessDevToolsClientCallbackTest() : first_result_received_(false) {}
| 2,764 |
18,634 | 0 | static inline int __sock_sendmsg(struct kiocb *iocb, struct socket *sock,
struct msghdr *msg, size_t size)
{
int err = security_socket_sendmsg(sock, msg, size);
return err ?: __sock_sendmsg_nosec(iocb, sock, msg, size);
}
| 2,765 |
112,256 | 0 | void UrlFetcher::Core::Start(const UrlFetcher::DoneCallback& done_callback) {
done_callback_ = done_callback;
network_task_runner_ = request_context_getter_->GetNetworkTaskRunner();
DCHECK(network_task_runner_);
network_task_runner_->PostTask(FROM_HERE, base::Bind(
&UrlFetcher::Core::DoStart, this));
}
| 2,766 |
40,529 | 0 | static enum nl_mmap_status netlink_get_status(const struct nl_mmap_hdr *hdr)
{
smp_rmb();
flush_dcache_page(pgvec_to_page(hdr));
return hdr->nm_status;
}
| 2,767 |
108,900 | 0 | bool RenderViewImpl::IsBackForwardToStaleEntry(
const ViewMsg_Navigate_Params& params,
bool is_reload) {
bool is_back_forward = !is_reload && !params.state.empty();
if (!is_back_forward || history_list_length_ <= 0)
return false;
DCHECK_EQ(static_cast<int>(history_page_ids_.size()), history_list_len... | 2,768 |
122,659 | 0 | bool Extension::HasContentScriptAtURL(const GURL& url) const {
for (UserScriptList::const_iterator it = content_scripts_.begin();
it != content_scripts_.end(); ++it) {
if (it->MatchesURL(url))
return true;
}
return false;
}
| 2,769 |
51,561 | 0 | static inline void tcp_init_undo(struct tcp_sock *tp)
{
tp->undo_marker = tp->snd_una;
/* Retransmission still in flight may cause DSACKs later. */
tp->undo_retrans = tp->retrans_out ? : -1;
}
| 2,770 |
157,069 | 0 | void Initialize(const char* url,
bool expected,
size_t file_size = kFileSize) {
InitializeWithCORS(url, expected, UrlData::CORS_UNSPECIFIED, file_size);
}
| 2,771 |
80,452 | 0 | GF_Err stri_Size(GF_Box *s)
{
GF_SubTrackInformationBox *ptr = (GF_SubTrackInformationBox *)s;
ptr->size += 8 + 4 * ptr->attribute_count;
return GF_OK;
}
| 2,772 |
87,620 | 0 | static unsigned zlib_compress(unsigned char** out, size_t* outsize, const unsigned char* in,
size_t insize, const LodePNGCompressSettings* settings)
{
if (!settings->custom_zlib) return 87; /*no custom zlib function provided */
return settings->custom_zlib(out, outsize, in, insize, set... | 2,773 |
82,735 | 0 | INST_HANDLER (lpm) { // LPM
ut16 ins = (((ut16) buf[1]) << 8) | ((ut16) buf[0]);
__generic_ld_st (
op, "prog",
'z', // index register Y/Z
1, // use RAMP* registers
(ins & 0xfe0f) == 0x9005
? 1 // post incremented
: 0, // no increment
0, // not offset
0); // load operation (!st)
ESIL... | 2,774 |
7,891 | 0 | static void addlocal(JF, js_Ast *ident, int reuse)
{
const char *name = ident->string;
if (J->strict) {
if (!strcmp(name, "arguments"))
jsC_error(J, ident, "redefining 'arguments' is not allowed in strict mode");
if (!strcmp(name, "eval"))
jsC_error(J, ident, "redefining 'eval' is not allowed in strict mode... | 2,775 |
63,310 | 0 | ModuleExport void UnregisterPNGImage(void)
{
(void) UnregisterMagickInfo("MNG");
(void) UnregisterMagickInfo("PNG");
(void) UnregisterMagickInfo("PNG8");
(void) UnregisterMagickInfo("PNG24");
(void) UnregisterMagickInfo("PNG32");
(void) UnregisterMagickInfo("PNG48");
(void) UnregisterMagickInfo("PNG64");
... | 2,776 |
50,685 | 0 | static void srpt_queue_response(struct se_cmd *cmd)
{
struct srpt_rdma_ch *ch;
struct srpt_send_ioctx *ioctx;
enum srpt_command_state state;
unsigned long flags;
int ret;
enum dma_data_direction dir;
int resp_len;
u8 srp_tm_status;
ioctx = container_of(cmd, struct srpt_send_ioctx, cmd);
ch = ioctx->ch;
BUG_... | 2,777 |
66,761 | 0 | static int dw2102_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
p1100 = kmemdup(&s6x0_properties,
sizeof(struct dvb_usb_device_properties), GFP_KERNEL);
if (!p1100)
return -ENOMEM;
/* copy default structure */
/* fill only different fields */
p1100->firmware = P1100_FIRMWARE;
p1100->d... | 2,778 |
61,121 | 0 | parse_previous_duplicate_name (const char *name,
char **name_base,
const char **suffix,
int *count)
{
const char *tag;
g_assert (name[0] != '\0');
*suffix = eel_filename_get_extension_offset (name);... | 2,779 |
184,255 | 1 | static void addDataToStreamTask(void* context)
{
OwnPtr<BlobRegistryContext> blobRegistryContext = adoptPtr(static_cast<BlobRegistryContext*>(context));
blobRegistry().addDataToStream(blobRegistryContext->url, blobRegistryContext->streamData);
}
| 2,780 |
157,130 | 0 | int64_t ResourceMultiBufferDataProvider::byte_pos() const {
int64_t ret = pos_;
ret += fifo_.size();
ret = ret << url_data_->multibuffer()->block_size_shift();
if (!fifo_.empty()) {
ret += fifo_.back()->data_size() - block_size();
}
return ret;
}
| 2,781 |
24,779 | 0 | static ssize_t cpu_slabs_show(struct kmem_cache *s, char *buf)
{
return show_slab_objects(s, buf, SO_CPU);
}
| 2,782 |
64,651 | 0 | bm_search_backward(regex_t* reg, const UChar* target, const UChar* target_end,
const UChar* text, const UChar* adjust_text,
const UChar* text_end, const UChar* text_start)
{
const UChar *s, *t, *p;
s = text_end - (target_end - target);
if (text_start < s)
s = text_start;
else
s = ONIGENC_LEFT... | 2,783 |
125,798 | 0 | void ParamTraits<MSG>::Log(const param_type& p, std::string* l) {
l->append("<MSG>");
}
| 2,784 |
89,798 | 0 | void free_devices(device_t *devices, const unsigned n_devs) {
unsigned i;
if (!devices)
return;
for (i = 0; i < n_devs; i++) {
free(devices[i].keyHandle);
devices[i].keyHandle = NULL;
free(devices[i].publicKey);
devices[i].publicKey = NULL;
}
free(devices);
devices = NULL;
}
| 2,785 |
44,681 | 0 | char *lxc_append_paths(const char *first, const char *second)
{
size_t len = strlen(first) + strlen(second) + 1;
const char *pattern = "%s%s";
char *result = NULL;
if (second[0] != '/') {
len += 1;
pattern = "%s/%s";
}
result = calloc(1, len);
if (!result)
return NULL;
snprintf(result, len, pattern, fi... | 2,786 |
32,665 | 0 | static int tg3_phy_reset_chanpat(struct tg3 *tp)
{
int chan;
for (chan = 0; chan < 4; chan++) {
int i;
tg3_writephy(tp, MII_TG3_DSP_ADDRESS,
(chan * 0x2000) | 0x0200);
tg3_writephy(tp, MII_TG3_DSP_CONTROL, 0x0002);
for (i = 0; i < 6; i++)
tg3_writephy(tp, MII_TG3_DSP_RW_PORT, 0x000);
tg3_writep... | 2,787 |
23,273 | 0 | static int decode_attr_maxwrite(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res)
{
__be32 *p;
int status = 0;
*res = 1024;
if (unlikely(bitmap[0] & (FATTR4_WORD0_MAXWRITE - 1U)))
return -EIO;
if (likely(bitmap[0] & FATTR4_WORD0_MAXWRITE)) {
uint64_t maxwrite;
p = xdr_inline_decode(xdr, 8);
if (unl... | 2,788 |
135,780 | 0 | bool SelectionController::HandleDoubleClick(
const MouseEventWithHitTestResults& event) {
TRACE_EVENT0("blink",
"SelectionController::handleMousePressEventDoubleClick");
if (!Selection().IsAvailable())
return false;
if (!mouse_down_allows_multi_click_)
return HandleSingleClick(event);... | 2,789 |
88,587 | 0 | static const char *get_type(FILE *fp, int obj_id, const xref_t *xref)
{
int is_stream;
char *c, *obj, *endobj;
static char buf[32];
long start;
start = ftell(fp);
if (!(obj = get_object(fp, obj_id, xref, NULL, &is_stream)) ||
is_stream ... | 2,790 |
38,566 | 0 | static inline bool __bss_tim_get(u8 *tim, u16 id)
{
/*
* This format has been mandated by the IEEE specifications,
* so this line may not be changed to use the test_bit() format.
*/
return tim[id / 8] & (1 << (id % 8));
}
| 2,791 |
7,500 | 0 | iter_set_sequence (DBusMessageDataIter *iter,
int sequence)
{
_dbus_assert (sequence >= 0);
iter->sequence_nos[iter->depth] = sequence;
}
| 2,792 |
71,652 | 0 | static MagickStatusType ReadPSDChannel(Image *image,const PSDInfo *psd_info,
const LayerInfo* layer_info,const size_t channel,
const PSDCompressionType compression,ExceptionInfo *exception)
{
MagickOffsetType
offset;
MagickStatusType
status;
if (layer_info->channel_info[channel].type < -1)
{
/... | 2,793 |
154,182 | 0 | bool GLES2Decoder::GetServiceTextureId(uint32_t client_texture_id,
uint32_t* service_texture_id) {
return false;
}
| 2,794 |
125,905 | 0 | MockConnectionVisitor::~MockConnectionVisitor() {
}
| 2,795 |
105,485 | 0 | static void webkit_web_view_real_cut_clipboard(WebKitWebView* webView)
{
Frame* frame = core(webView)->focusController()->focusedOrMainFrame();
frame->editor()->command("Cut").execute();
}
| 2,796 |
186,476 | 1 | static sk_sp<SkImage> unPremulSkImageToPremul(SkImage* input) {
SkImageInfo info = SkImageInfo::Make(input->width(), input->height(),
kN32_SkColorType, kPremul_SkAlphaType);
RefPtr<Uint8Array> dstPixels = copySkImageData(input, info);
if (!dstPixels)
return nullptr;
return newSkImageFromRaster(
info, std::move(dstPixel... | 2,797 |
66,560 | 0 | static int read_eprom_word(pegasus_t *pegasus, __u8 index, __u16 *retdata)
{
int i;
__u8 tmp;
__le16 retdatai;
int ret;
set_register(pegasus, EpromCtrl, 0);
set_register(pegasus, EpromOffset, index);
set_register(pegasus, EpromCtrl, EPROM_READ);
for (i = 0; i < REG_TIMEOUT; i++) {
ret = get_registers(pegasu... | 2,798 |
3,902 | 0 | FileStream::FileStream(FILE *fA, Guint startA, GBool limitedA,
Guint lengthA, Object *dictA):
BaseStream(dictA, lengthA) {
f = fA;
start = startA;
limited = limitedA;
length = lengthA;
bufPtr = bufEnd = buf;
bufPos = start;
savePos = 0;
saved = gFalse;
}
| 2,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.