unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
144,767
0
std::unique_ptr<KeyedService> BuildMockDataStoreForContext( content::BrowserContext* browser_context) { return std::make_unique<MockDataStore>(); }
17,000
81,169
0
static int hash(struct signal_struct *sig, unsigned int nr) { return hash_32(hash32_ptr(sig) ^ nr, HASH_BITS(posix_timers_hashtable)); }
17,001
121,979
0
static AppListController* GetInstance() { return Singleton<AppListController, LeakySingletonTraits<AppListController> >::get(); }
17,002
13,741
0
ZEND_API int add_next_index_double(zval *arg, double d) /* {{{ */ { zval *tmp; MAKE_STD_ZVAL(tmp); ZVAL_DOUBLE(tmp, d); return zend_hash_next_index_insert(Z_ARRVAL_P(arg), &tmp, sizeof(zval *), NULL); } /* }}} */
17,003
55,711
0
archive_read_support_format_zip_streamable(struct archive *_a) { struct archive_read *a = (struct archive_read *)_a; struct zip *zip; int r; archive_check_magic(_a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_NEW, "archive_read_support_format_zip"); zip = (struct zip *)calloc(1, sizeof(*zip)); if (zip == NULL) { a...
17,004
114,124
0
on_javascript_confirm(Ewk_View_Smart_Data *smartData, const char *message) { Browser_Window *window = browser_view_find(smartData->self); Eina_Bool ok = EINA_FALSE; Evas_Object *confirm_popup = elm_popup_add(window->window); evas_object_size_hint_weight_set(confirm_popup, EVAS_HINT_EXPAND, EVAS_HINT_E...
17,005
81,671
0
get_http_method_info(const char *method) { /* Check if the method is known to the server. The list of all known * HTTP methods can be found here at * http://www.iana.org/assignments/http-methods/http-methods.xhtml */ const struct mg_http_method_info *m = http_methods; while (m->name) { if (!strcmp(m->name, ...
17,006
79,952
0
xfs_iflag_for_tag( int tag) { switch (tag) { case XFS_ICI_EOFBLOCKS_TAG: return XFS_IEOFBLOCKS; case XFS_ICI_COWBLOCKS_TAG: return XFS_ICOWBLOCKS; default: ASSERT(0); return 0; } }
17,007
133,148
0
void HWNDMessageHandler::OnWindowPosChanging(WINDOWPOS* window_pos) { if (ignore_window_pos_changes_) { if (!(window_pos->flags & ((IsVisible() ? SWP_HIDEWINDOW : SWP_SHOWWINDOW) | SWP_FRAMECHANGED)) && (window_pos->flags & (SWP_NOZORDER | SWP_NOACTIVATE))) { window_pos->flags |= SWP_NOSIZE ...
17,008
159,347
0
ChromeExtensionsAPIClient::CreateGuestViewManagerDelegate( content::BrowserContext* context) const { return base::MakeUnique<ChromeGuestViewManagerDelegate>(context); }
17,009
77,126
0
OVS_EXCLUDED(ofproto_mutex) { enum ofperr error = ofproto_flow_mod_learn_refresh(ofm); struct rule *rule = ofm->temp_rule; /* Do we need to insert the rule? */ if (!error && rule->state == RULE_INITIALIZED) { ovs_mutex_lock(&ofproto_mutex); ofm->version = rule->ofproto->tables_versi...
17,010
98,676
0
void BuildCharEvent(const WebInputEvent* event, NPPepperEvent* npevent) { const WebKeyboardEvent* key_event = reinterpret_cast<const WebKeyboardEvent*>(event); npevent->u.character.modifier = key_event->modifiers; DCHECK(sizeof(npevent->u.character.text) == sizeof(key_event->text)); DCHECK(sizeof(npevent-...
17,011
113,054
0
DownloadItem::SafetyState DownloadItemImpl::GetSafetyState() const { return safety_state_; }
17,012
87,900
0
static int pam_vprompt(pam_handle_t *pamh, int style, char **response, const char *fmt, va_list args) { int r = PAM_CRED_INSUFFICIENT; const struct pam_conv *conv; struct pam_message msg; struct pam_response *resp = NULL; struct pam_message *(msgp[1]); char text[128]; vsnprintf(text, sizeof text, fmt, args); ...
17,013
20,961
0
static inline int get_and_reset_irq(int irqnumber) { int bit; unsigned long flags; int ret = 0; if (invalid_vm86_irq(irqnumber)) return 0; if (vm86_irqs[irqnumber].tsk != current) return 0; spin_lock_irqsave(&irqbits_lock, flags); bit = irqbits & (1 << irqnumber); irqbits &= ~bit; if (bit) { enable_irq(irqn...
17,014
39,273
0
int security_get_bool_value(int bool) { int rc; int len; read_lock(&policy_rwlock); rc = -EFAULT; len = policydb.p_bools.nprim; if (bool >= len) goto out; rc = policydb.bool_val_to_struct[bool]->state; out: read_unlock(&policy_rwlock); return rc; }
17,015
107,792
0
FindBarController* Browser::GetFindBarController() { if (!find_bar_controller_.get()) { FindBar* find_bar = BrowserWindow::CreateFindBar(this); find_bar_controller_.reset(new FindBarController(find_bar)); find_bar->SetFindBarController(find_bar_controller_.get()); find_bar_controller_->ChangeTabConten...
17,016
186,250
1
void ExtensionOptionsGuest::DidNavigateMainFrame( const content::LoadCommittedDetails& details, const content::FrameNavigateParams& params) { if (attached()) { auto guest_zoom_controller = ui_zoom::ZoomController::FromWebContents(web_contents()); guest_zoom_controller->SetZoomMode( ui_zoom::ZoomController::ZOOM_MODE_IS...
17,017
79,478
0
static int fetch_uidl(char *line, void *data) { int i, index; struct Context *ctx = (struct Context *) data; struct PopData *pop_data = (struct PopData *) ctx->data; char *endp = NULL; errno = 0; index = strtol(line, &endp, 10); if (errno) return -1; while (*endp == ' ') endp++; memmove(line,...
17,018
60,097
0
static void list_xtr_archs(RBin *bin, int mode) { RBinFile *binfile = r_bin_cur (bin); if (binfile->xtr_data) { RListIter *iter_xtr; RBinXtrData *xtr_data; int bits, i = 0; char *arch, *machine; r_list_foreach (binfile->xtr_data, iter_xtr, xtr_data) { if (!xtr_data || !xtr_data->metadata || !xtr_d...
17,019
73,635
0
MagickExport const IndexPacket *GetVirtualIndexesFromNexus(const Cache cache, NexusInfo *nexus_info) { CacheInfo *restrict cache_info; assert(cache != (Cache) NULL); cache_info=(CacheInfo *) cache; assert(cache_info->signature == MagickSignature); if (cache_info->storage_class == UndefinedClass) re...
17,020
77,878
0
test_bson_append_decimal128 (void) { bson_t *b; bson_t *b2; bson_decimal128_t value; value.high = 0; value.low = 1; b = bson_new (); BSON_ASSERT (bson_append_decimal128 (b, "a", -1, &value)); b2 = get_bson ("test58.bson"); BSON_ASSERT_BSON_EQUAL (b, b2); bson_destroy (b); bson_destroy ...
17,021
31,149
0
static int fb_seq_show(struct seq_file *m, void *v) { int i = *(loff_t *)v; struct fb_info *fi = registered_fb[i]; if (fi) seq_printf(m, "%d %s\n", fi->node, fi->fix.id); return 0; }
17,022
77,792
0
static bool extract_if_dead(struct connectdata *conn, struct Curl_easy *data) { size_t pipeLen = conn->send_pipe.size + conn->recv_pipe.size; if(!pipeLen && !CONN_INUSE(conn)) { /* The check for a dead socket makes sense only if there are no handles in pipeline and the connect...
17,023
74,457
0
static struct regulator *_regulator_get(struct device *dev, const char *id, bool exclusive, bool allow_dummy) { struct regulator_dev *rdev; struct regulator *regulator = ERR_PTR(-EPROBE_DEFER); const char *devname = NULL; int ret; if (id == NULL) { pr_err("get() with no identifier\n"); return ERR_PTR(-EI...
17,024
73,969
0
int cput(int fd, char c) { return write(fd, &c, 1); }
17,025
74,721
0
void __attribute__ ((weak)) WatchdogHandler(struct pt_regs *regs) { /* Generic WatchdogHandler, implement your own */ mtspr(SPRN_TCR, mfspr(SPRN_TCR)&(~TCR_WIE)); return; }
17,026
76,880
0
encode_PUSH_VLAN(const struct ofpact_null *null OVS_UNUSED, enum ofp_version ofp_version, struct ofpbuf *out) { if (ofp_version == OFP10_VERSION) { /* PUSH is a side effect of a SET_VLAN_VID/PCP, which should * follow this action. */ } else { /* XXX ETH_TYPE_VLAN_8021AD...
17,027
110,605
0
error::Error GLES2DecoderImpl::HandleTexSubImage2D( uint32 immediate_data_size, const gles2::TexSubImage2D& c) { TRACE_EVENT0("gpu", "GLES2DecoderImpl::HandleTexSubImage2D"); GLboolean internal = static_cast<GLboolean>(c.internal); if (internal == GL_TRUE && tex_image_2d_failed_) return error::kNoError; ...
17,028
50,006
0
_archive_read_close(struct archive *_a) { struct archive_read *a = (struct archive_read *)_a; int r = ARCHIVE_OK, r1 = ARCHIVE_OK; archive_check_magic(&a->archive, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_ANY | ARCHIVE_STATE_FATAL, "archive_read_close"); if (a->archive.state == ARCHIVE_STATE_CLOSED) return (ARCHIV...
17,029
184,062
1
static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod6(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSTestObj::s_info)) return throwVMTypeError(exec); JSTestObj* castedThis = jsCast<JSTestObj*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis,...
17,030
149,215
0
const views::ProgressBar* MediaControlsProgressView::progress_bar_for_testing() const { return progress_bar_; }
17,031
139,623
0
size_t AudioContext::cachedSampleFrame() const { ASSERT(isMainThread()); return m_cachedSampleFrame; }
17,032
135,831
0
const SelectionInDOMTree& SelectionEditor::GetSelectionInDOMTree() const { AssertSelectionValid(); return selection_; }
17,033
94,928
0
static void wait_skb_queue_empty(struct sk_buff_head *q) { unsigned long flags; spin_lock_irqsave(&q->lock, flags); while (!skb_queue_empty(q)) { spin_unlock_irqrestore(&q->lock, flags); schedule_timeout(msecs_to_jiffies(UNLINK_TIMEOUT_MS)); set_current_state(TASK_UNINTERRUPTIBLE); spin_lock_irqsave(&q->loc...
17,034
3,983
0
GBool FlateStream::isBinary(GBool last) { return str->isBinary(gTrue); }
17,035
47,505
0
static int hw_crypt_noxts(struct cryp_ctx *ctx, struct cryp_device_data *device_data) { int ret = 0; const u8 *indata = ctx->indata; u8 *outdata = ctx->outdata; u32 datalen = ctx->datalen; u32 outlen = datalen; pr_debug(DEV_DBG_NAME " [%s]", __func__); ctx->outlen = ctx->datalen; if (unlikely(!IS_ALIGN...
17,036
160,843
0
void WebViewTestClient::PrintPage(blink::WebLocalFrame* frame) { blink::WebSize page_size_in_pixels = frame->View()->Size(); if (page_size_in_pixels.IsEmpty()) return; blink::WebPrintParams printParams(page_size_in_pixels); frame->PrintBegin(printParams); frame->PrintEnd(); }
17,037
109,073
0
WebStorageNamespace* RenderViewImpl::createSessionStorageNamespace( unsigned quota) { CHECK(session_storage_namespace_id_ != dom_storage::kInvalidSessionStorageNamespaceId); return new WebStorageNamespaceImpl(session_storage_namespace_id_); }
17,038
51,069
0
static int ovl_rmdir(struct inode *dir, struct dentry *dentry) { return ovl_do_remove(dentry, true); }
17,039
166,851
0
~ExpectNoWriteBarrierFires() { EXPECT_TRUE(marking_worklist_->IsGlobalEmpty()); for (const auto& pair : headers_) { EXPECT_EQ(pair.second, pair.first->IsMarked()); pair.first->Unmark(); } }
17,040
164,065
0
void DownloadManagerImpl::SetNextId(uint32_t next_id) { if (next_id > next_download_id_) next_download_id_ = next_id; if (!IsNextIdInitialized()) return; for (auto& callback : id_callbacks_) std::move(*callback).Run(next_download_id_++); id_callbacks_.clear(); }
17,041
7,236
0
static inline void php_rinit_session_globals(TSRMLS_D) /* {{{ */ { PS(mod_data) = NULL; PS(mod_user_is_open) = 0; /* Do NOT init PS(mod_user_names) here! */ PS(http_session_vars) = NULL; } /* }}} */
17,042
92,941
0
lspci_send(const char *output) { STREAM s; size_t len; len = strlen(output); s = channel_init(lspci_channel, len); out_uint8p(s, output, len) s_mark_end(s); channel_send(s, lspci_channel); }
17,043
114,163
0
bool VolumeSupportsACLs(const wchar_t* any_path) { wchar_t expand[MAX_PATH +1]; DWORD len =::ExpandEnvironmentStringsW(any_path, expand, _countof(expand)); if (0 == len) return false; if (len > _countof(expand)) return false; if (!::PathStripToRootW(expand)) return false; DWORD fs_flags = 0; if (!::GetVo...
17,044
162,942
0
ResourceCoordinatorService::~ResourceCoordinatorService() { ref_factory_.reset(); }
17,045
132,877
0
void SetContentsScaleOnBothLayers(float contents_scale, float device_scale_factor, float page_scale_factor, float maximum_animation_contents_scale, bool animating_transform) ...
17,046
62,369
0
wb_drawop(netdissect_options *ndo, const struct pkt_dop *dop, u_int len) { ND_PRINT((ndo, " wb-dop:")); if (len < sizeof(*dop) || !ND_TTEST(*dop)) return (-1); len -= sizeof(*dop); ND_PRINT((ndo, " %s:%u<%u:%u>", ipaddr_string(ndo, &dop->pd_page.p_sid), EXTRACT_32BITS(&dop->pd_page.p_uid), ...
17,047
145,194
0
void ChromeExtensionsDispatcherDelegate::PopulateSourceMap( extensions::ResourceBundleSourceMap* source_map) { source_map->RegisterSource("app", IDR_APP_CUSTOM_BINDINGS_JS); source_map->RegisterSource("automation", IDR_AUTOMATION_CUSTOM_BINDINGS_JS); source_map->RegisterSource("automationEvent", IDR_AUTOMATI...
17,048
9,213
0
hwaddr virtio_queue_get_avail_addr(VirtIODevice *vdev, int n) { return vdev->vq[n].vring.avail; }
17,049
57,880
0
static int numa_migrate_prep(struct page *page, struct vm_area_struct *vma, unsigned long addr, int page_nid, int *flags) { get_page(page); count_vm_numa_event(NUMA_HINT_FAULTS); if (page_nid == numa_node_id()) { count_vm_numa_event(NUMA_HINT_FAULTS_LOCAL); *flags |= TNF_FAULT_LOCAL; } return mpol_mi...
17,050
74,358
0
InitializeMAC(PPARANDIS_ADAPTER pContext, PUCHAR pCurrentMAC) { pContext->bCfgMACAddrSupported = AckFeature(pContext, VIRTIO_NET_F_MAC); pContext->bCtrlMACAddrSupported = AckFeature(pContext, VIRTIO_NET_F_CTRL_MAC_ADDR); if (pContext->bCfgMACAddrSupported) { VirtIODeviceGet(pContext->IODevice, ...
17,051
30,200
0
static int ftrace_process_regex(struct ftrace_hash *hash, char *buff, int len, int enable) { char *func, *command, *next = buff; struct ftrace_func_command *p; int ret = -EINVAL; func = strsep(&next, ":"); if (!next) { ret = ftrace_match_records(hash, func, len); if (!ret) ret = -EINVAL; if (ret < 0...
17,052
45,155
0
static req_table_t* req_subprocess_env(request_rec *r) { req_table_t* t = apr_palloc(r->pool, sizeof(req_table_t)); t->r = r; t->t = r->subprocess_env; t->n = "subprocess_env"; return t; }
17,053
26,824
0
static unsigned mounts_poll(struct file *file, poll_table *wait) { struct proc_mounts *p = file->private_data; unsigned res = POLLIN | POLLRDNORM; poll_wait(file, &p->ns->poll, wait); if (mnt_had_events(p)) res |= POLLERR | POLLPRI; return res; }
17,054
133,156
0
void HWNDMessageHandler::Restore() { ExecuteSystemMenuCommand(SC_RESTORE); }
17,055
101,017
0
void QuotaManager::GetCachedOrigins( StorageType type, std::set<GURL>* origins) { DCHECK(origins); LazyInitialize(); switch (type) { case kStorageTypeTemporary: DCHECK(temporary_usage_tracker_.get()); temporary_usage_tracker_->GetCachedOrigins(origins); return; case kStorageTypePersi...
17,056
28,855
0
int kvm_arch_vcpu_postcreate(struct kvm_vcpu *vcpu) { int r; struct msr_data msr; r = vcpu_load(vcpu); if (r) return r; msr.data = 0x0; msr.index = MSR_IA32_TSC; msr.host_initiated = true; kvm_write_tsc(vcpu, &msr); vcpu_put(vcpu); return r; }
17,057
138,100
0
static LayoutBlockFlow* nonInlineBlockFlow(LayoutObject* object) { LayoutObject* current = object; while (current) { if (current->isLayoutBlockFlow()) { LayoutBlockFlow* blockFlow = toLayoutBlockFlow(current); if (!blockFlow->inlineBoxWrapper()) return blockFlow; } current = current-...
17,058
60,083
0
static int read_reloc(ELFOBJ *bin, RBinElfReloc *r, int is_rela, ut64 offset) { ut8 *buf = bin->b->buf; int j = 0; if (offset + sizeof (Elf_ (Rela)) > bin->size || offset + sizeof (Elf_(Rela)) < offset) { return -1; } if (is_rela == DT_RELA) { Elf_(Rela) rela; #if R_BIN_ELF64 rela.r_offset = READ64 (bu...
17,059
161,688
0
VaapiPicture* VaapiVideoDecodeAccelerator::PictureById( int32_t picture_buffer_id) { Pictures::iterator it = pictures_.find(picture_buffer_id); if (it == pictures_.end()) { VLOGF(4) << "Picture id " << picture_buffer_id << " does not exist"; return NULL; } return it->second.get(); }
17,060
141,341
0
const AtomicString& Document::linkColor() const { return BodyAttributeValue(kLinkAttr); }
17,061
27,840
0
static int __init default_policy_setup(char *str) { ima_use_tcb = 1; return 1; }
17,062
4,924
0
SProcXSendExtensionEvent(ClientPtr client) { CARD32 *p; int i; xEvent eventT = { .u.u.type = 0 }; xEvent *eventP; EventSwapPtr proc; REQUEST(xSendExtensionEventReq); swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xSendExtensionEventReq); swapl(&stuff->destination); swaps(&stuff->c...
17,063
12,455
0
BIGNUM *SRP_Calc_server_key(BIGNUM *A, BIGNUM *v, BIGNUM *u, BIGNUM *b, BIGNUM *N) { BIGNUM *tmp = NULL, *S = NULL; BN_CTX *bn_ctx; if (u == NULL || A == NULL || v == NULL || b == NULL || N == NULL) return NULL; if ((bn_ctx = BN_CTX_new()) == NULL || (tmp = BN_new()) == NULL || (S = BN_new()) == NULL ) ...
17,064
168,751
0
mojom::WidgetInputHandler* RenderWidgetHostImpl::GetWidgetInputHandler() { if (associated_widget_input_handler_) return associated_widget_input_handler_.get(); if (widget_input_handler_) return widget_input_handler_.get(); return legacy_widget_input_handler_.get(); }
17,065
81,842
0
static int find_hole(void) { unsigned x; int y, z; for (z = -1, y = INT_MAX, x = 0; x < FP_ENTRIES; x++) { if (fp_cache[x].lru_count < y && fp_cache[x].lock == 0) { z = x; y = fp_cache[x].lru_count; } } /* decrease all */ for (x = 0; x < FP_ENTRIES; x++) { ...
17,066
93,679
0
static ssize_t cqspi_read(struct spi_nor *nor, loff_t from, size_t len, u_char *buf) { int ret; ret = cqspi_set_protocol(nor, 1); if (ret) return ret; ret = cqspi_indirect_read_setup(nor, from); if (ret) return ret; ret = cqspi_indirect_read_execute(nor, buf, len); if (ret) return ret; return (re...
17,067
113,757
0
void PrintPreviewMessageHandler::OnPrintPreviewCancelled(int document_cookie) { StopWorker(document_cookie); }
17,068
136,809
0
int LocalDOMWindow::innerWidth() const { if (!GetFrame()) return 0; return AdjustForAbsoluteZoom::AdjustInt(GetViewportSize().Width(), GetFrame()->PageZoomFactor()); }
17,069
107,315
0
TabContents* Browser::OpenApplicationTab(Profile* profile, const Extension* extension, TabContents* existing_tab) { Browser* browser = BrowserList::FindBrowserWithType(profile, Browser::TYPE_NORMAL, false); TabContents* contents...
17,070
118,657
0
void UserCloudPolicyManagerChromeOS::StartRefreshSchedulerIfReady() { if (core()->refresh_scheduler()) return; // Already started. if (wait_for_policy_fetch_) return; // Still waiting for the initial, blocking fetch. if (!service() || !local_state_) return; // Not connected. if (component_poli...
17,071
7,915
0
static void cstmlist(JF, js_Ast *list) { while (list) { cstm(J, F, list->a); list = list->b; } }
17,072
84,279
0
static int unqueue_me(struct futex_q *q) { spinlock_t *lock_ptr; int ret = 0; /* In the common case we don't take the spinlock, which is nice. */ retry: /* * q->lock_ptr can change between this read and the following spin_lock. * Use READ_ONCE to forbid the compiler from reloading q->lock_ptr and * optimizin...
17,073
93,986
0
static size_t check_sep(php_http_params_state_t *state, php_http_params_token_t **separators) { php_http_params_token_t **sep = separators; if (state->quotes || state->escape) { return 0; } if (sep) while (*sep) { if (check_str(state->input.str, state->input.len, (*sep)->str, (*sep)->len)) { return (*sep)...
17,074
14,116
0
SProcRenderReferenceGlyphSet (ClientPtr client) { register int n; REQUEST(xRenderReferenceGlyphSetReq); swaps(&stuff->length, n); swapl(&stuff->gsid, n); swapl(&stuff->existing, n); return (*ProcRenderVector[stuff->renderReqType]) (client); }
17,075
52,540
0
static void close_connection_now(h2o_http2_conn_t *conn) { h2o_http2_stream_t *stream; assert(!h2o_timeout_is_linked(&conn->_write.timeout_entry)); kh_foreach_value(conn->streams, stream, { h2o_http2_stream_close(conn, stream); }); assert(conn->num_streams.pull.open == 0); assert(conn->num_streams...
17,076
106,245
0
void setJSTestObjWithScriptExecutionContextAttributeRaises(ExecState* exec, JSObject* thisObject, JSValue value) { JSTestObj* castedThis = jsCast<JSTestObj*>(thisObject); TestObj* impl = static_cast<TestObj*>(castedThis->impl()); ExceptionCode ec = 0; ScriptExecutionContext* scriptContext = jsCast<JSDOM...
17,077
146,676
0
void PageInfoBubbleView::RenderFrameDeleted( content::RenderFrameHost* render_frame_host) { if (render_frame_host == web_contents()->GetMainFrame()) { GetWidget()->Close(); } }
17,078
179,451
1
static inline int mk_vhost_fdt_open(int id, unsigned int hash, struct session_request *sr) { int i; int fd; struct vhost_fdt_hash_table *ht = NULL; struct vhost_fdt_hash_chain *hc; if (config->fdt == MK_FALSE) { return open(sr->real_path.data, sr->file_in...
17,079
12,845
0
static int asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out, const ASN1_TEMPLATE *tt, int tag, int iclass) { int i, ret, flags, ttag, tclass, ndef; flags = tt->flags; /* * Work out tag and class to use: tagging may come either from the * template or the a...
17,080
47,359
0
static int sha224_init(struct shash_desc *desc) { struct sha256_state *sctx = shash_desc_ctx(desc); sctx->state[0] = SHA224_H0; sctx->state[1] = SHA224_H1; sctx->state[2] = SHA224_H2; sctx->state[3] = SHA224_H3; sctx->state[4] = SHA224_H4; sctx->state[5] = SHA224_H5; sctx->state[6] = SHA224_H6; sctx->state[7] ...
17,081
59,641
0
uriCommonTest(const char *filename, const char *result, const char *err, const char *base) { char *temp; FILE *o, *f; char str[1024]; int res = 0, i, ret; temp = resultFilename(filename, "", ".res"); if (temp == NULL) { fprintf(stderr, "Out of memo...
17,082
131,615
0
static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", ...
17,083
23,662
0
isdn_net_reset(struct net_device *dev) { #ifdef CONFIG_ISDN_X25 struct concap_device_ops * dops = ((isdn_net_local *) netdev_priv(dev))->dops; struct concap_proto * cprot = ((isdn_net_local *) netdev_priv(dev))->netdev->cprot; #endif #ifdef CONFIG_ISDN_X25 if( cprot && cprot -> pops && dops ) cprot -> pops -> ...
17,084
65,329
0
nfsd4_getattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_getattr *getattr) { __be32 status; status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); if (status) return status; if (getattr->ga_bmval[1] & NFSD_WRITEONLY_ATTRS_WORD1) return nfserr_inval; getattr->g...
17,085
126,984
0
void AudioRendererHost::OnCreated(media::AudioOutputController* controller) { BrowserThread::PostTask( BrowserThread::IO, FROM_HERE, base::Bind( &AudioRendererHost::DoCompleteCreation, this, make_scoped_refptr(controller))); }
17,086
91,410
0
static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) { struct bpf_reg_state *regs = cur_regs(env); u8 mode = BPF_MODE(insn->code); int i, err; if (!may_access_skb(env->prog->type)) { verbose(env, "BPF_LD_[ABS|IND] instructions not allowed for this program type\n"); return -EINVAL; } ...
17,087
65,093
0
static inline size_t ColorTo565(const DDSVector3 point) { size_t r = ClampToLimit(31.0f*point.x,31); size_t g = ClampToLimit(63.0f*point.y,63); size_t b = ClampToLimit(31.0f*point.z,31); return (r << 11) | (g << 5) | b; }
17,088
9,501
0
root_distance(peer_t *p) { /* The root synchronization distance is the maximum error due to * all causes of the local clock relative to the primary server. * It is defined as half the total delay plus total dispersion * plus peer jitter. */ return MAXD(MINDISP, p->lastpkt_rootdelay + p->lastpkt_delay) / 2 +...
17,089
173,139
0
main(void) { fprintf(stderr, " test ignored: no support to find out about unknown chunks\n"); /* So the test is skipped: */ return 77; }
17,090
109,382
0
void InspectorResourceAgent::frameScheduledNavigation(Frame* frame, double) { RefPtr<TypeBuilder::Network::Initiator> initiator = buildInitiatorObject(frame->document(), FetchInitiatorInfo()); m_frameNavigationInitiatorMap.set(m_pageAgent->frameId(frame), initiator); }
17,091
146,726
0
void Document::DecrementPasswordCount() { DCHECK_GT(password_count_, 0u); --password_count_; if (IsSecureContext() || password_count_ > 0) return; SendSensitiveInputVisibility(); }
17,092
169,353
0
void TitleWatcher::TestTitle() { const base::string16& current_title = web_contents()->GetTitle(); if (base::ContainsValue(expected_titles_, current_title)) { observed_title_ = current_title; run_loop_.Quit(); } }
17,093
58,104
0
int snd_compress_new(struct snd_card *card, int device, int dirn, struct snd_compr *compr) { static struct snd_device_ops ops = { .dev_free = NULL, .dev_register = snd_compress_dev_register, .dev_disconnect = snd_compress_dev_disconnect, }; compr->card = card; compr->device = device; compr->direction = d...
17,094
86,610
0
void fpm_children_bury() /* {{{ */ { int status; pid_t pid; struct fpm_child_s *child; while ( (pid = waitpid(-1, &status, WNOHANG | WUNTRACED)) > 0) { char buf[128]; int severity = ZLOG_NOTICE; int restart_child = 1; child = fpm_child_find(pid); if (WIFEXITED(status)) { snprintf(buf, sizeof(buf), ...
17,095
116,090
0
bool InitialSyncEndedForTypes(syncable::ModelTypeSet types, sync_api::UserShare* share) { syncable::ScopedDirLookup lookup(share->dir_manager.get(), share->name); if (!lookup.good()) { DCHECK(false) << "ScopedDirLookup failed when checking initial...
17,096
1,222
0
GBool PSOutputDev::checkPageSlice(Page *page, double /*hDPI*/, double /*vDPI*/, int rotateA, GBool useMediaBox, GBool crop, int sliceX, int sliceY, int sliceW, int sliceH, GBool printing, Catalog *catalog, GBool (*abortCheckCbk)(void *data), void *abortCheckCbkData) { #if HAVE_SPLASH...
17,097
10,434
0
static void megasas_encode_lba(uint8_t *cdb, uint64_t lba, uint32_t len, bool is_write) { memset(cdb, 0x0, 16); if (is_write) { cdb[0] = WRITE_16; } else { cdb[0] = READ_16; } cdb[2] = (lba >> 56) & 0xff; cdb[3] = (lba >> 48) & 0xff; cdb[4] = (l...
17,098
42,788
0
static void add_widget_to_warning_area(GtkWidget *widget) { g_warning_issued = true; gtk_box_pack_start(g_box_warning_labels, widget, false, false, 0); gtk_widget_show_all(widget); }
17,099