idx int64 | func string | target int64 |
|---|---|---|
512,452 | void in_double::set(uint pos,Item *item)
{
((double*) base)[pos]= item->val_real();
} | 0 |
221,179 | GF_Err gf_odf_get_laser_config(GF_DefaultDescriptor *dsi, GF_LASERConfig *cfg)
{
u32 to_skip;
GF_BitStream *bs;
if (!cfg) return GF_BAD_PARAM;
memset(cfg, 0, sizeof(GF_LASERConfig));
if (!dsi || !dsi->data || !dsi->dataLength) return GF_BAD_PARAM;
bs = gf_bs_new(dsi->data, dsi->dataLength, GF_BITSTREAM_READ);
... | 0 |
273,895 | static void handle_OPTS(ctrl_t *ctrl, char *arg)
{
/* OPTS MLST type;size;modify;perm; */
if (strstr(arg, "MLST")) {
size_t i = 0;
char *ptr;
char buf[42] = "200 MLST OPTS ";
char facts[10] = { 0 };
ptr = strtok(arg + 4, " \t;");
while (ptr && i < sizeof(facts) - 1) {
if (!strcmp(ptr, "modify") ||
... | 0 |
393,485 | static SQInteger default_delegate_tofloat(HSQUIRRELVM v)
{
SQObjectPtr &o=stack_get(v,1);
switch(sq_type(o)){
case OT_STRING:{
SQObjectPtr res;
if(str2num(_stringval(o),res,10)){
v->Push(SQObjectPtr(tofloat(res)));
break;
}}
return sq_throwerror(v, _SC... | 0 |
338,065 | void WasmBinaryBuilder::readDataSegments() {
BYN_TRACE("== readDataSegments\n");
auto num = getU32LEB();
for (size_t i = 0; i < num; i++) {
Memory::Segment curr;
uint32_t flags = getU32LEB();
if (flags > 2) {
throwError("bad segment flags, must be 0, 1, or 2, not " +
std::to_str... | 0 |
387,722 | void InstanceKlass::remove_java_mirror() {
Klass::remove_java_mirror();
// do array classes also.
if (array_klasses() != NULL) {
array_klasses()->remove_java_mirror();
}
} | 0 |
445,970 | extract_data_new (FrWindow *window,
GList *file_list,
GFile *destination,
const char *base_dir,
gboolean skip_older,
FrOverwrite overwrite,
gboolean junk_paths,
gboolean extract_here,
gboolean ask_to_open_destination)
{
ExtractData *edata;
edata = g_ne... | 0 |
227,027 | IRC_PROTOCOL_CALLBACK(345)
{
IRC_PROTOCOL_MIN_ARGS(5);
weechat_printf_date_tags (
irc_msgbuffer_get_target_buffer (server, NULL, command, "reop", NULL),
date,
irc_protocol_tags (command, "irc_numeric", NULL, NULL),
"%s%s%s%s: %s",
weechat_prefix ("network"),
IRC_... | 0 |
513,228 | void plugin_shutdown(void)
{
uint i, count= plugin_array.elements;
struct st_plugin_int **plugins, *plugin;
struct st_plugin_dl **dl;
DBUG_ENTER("plugin_shutdown");
if (initialized)
{
mysql_mutex_lock(&LOCK_plugin);
reap_needed= true;
/*
We want to shut down plugins in a reasonable orde... | 0 |
219,021 | bool MaybeRemoveControlInput(const string& old_input, NodeDef* node,
GraphDef* graph, NodeMap* node_map) {
bool removed_input = false;
bool update_node_map = true;
const string old_input_ctrl_dep = AsControlDependency(NodeName(old_input));
for (int i = 0; i < node->input_size(); ++i... | 0 |
221,139 | GF_VPConfig *gf_odf_vp_cfg_read_bs(GF_BitStream *bs, Bool is_v0)
{
GF_VPConfig *cfg = gf_odf_vp_cfg_new();
cfg->profile = gf_bs_read_int(bs, 8);
cfg->level = gf_bs_read_int(bs, 8);
cfg->bit_depth = gf_bs_read_int(bs, 4);
cfg->chroma_subsampling = gf_bs_read_int(bs, 3);
cfg->video_fullRange_flag = gf_bs_read_int... | 0 |
283,748 | static uint64_t zynq_slcr_read(void *opaque, hwaddr offset,
unsigned size)
{
ZynqSLCRState *s = opaque;
offset /= 4;
uint32_t ret = s->regs[offset];
if (!zynq_slcr_check_offset(offset, true)) {
qemu_log_mask(LOG_GUEST_ERROR, "zynq_slcr: Invalid read access to "
" addr ... | 0 |
413,631 | static int fcn_list_json(RCore *core, RList *fcns, bool quiet) {
RListIter *iter;
RAnalFunction *fcn;
PJ *pj = r_core_pj_new (core);
if (!pj) {
r_cons_println ("[]");
return -1;
}
pj_a (pj);
r_list_foreach (fcns, iter, fcn) {
if (quiet) {
pj_n (pj, fcn->addr);
} else {
fcn_print_json (core, fcn, pj... | 0 |
508,833 | void st_select_lex_node::init_query()
{
options= 0;
sql_cache= SQL_CACHE_UNSPECIFIED;
linkage= UNSPECIFIED_TYPE;
no_table_names_allowed= 0;
uncacheable= 0;
} | 0 |
445,915 | fr_window_close (FrWindow *window)
{
if (window->priv->activity_ref > 0)
return;
if (window->priv->closing)
return;
window->priv->closing = TRUE;
if (gtk_widget_get_realized (GTK_WIDGET (window))) {
int width, height;
width = gtk_widget_get_allocated_width (GTK_WIDGET (window));
height = gtk_widget_ge... | 0 |
229,260 | const char* what() const throw () override {
return "bad cql binary frame";
} | 0 |
308,194 | static int fastrpc_invoke(struct fastrpc_user *fl, char __user *argp)
{
struct fastrpc_invoke_args *args = NULL;
struct fastrpc_invoke inv;
u32 nscalars;
int err;
if (copy_from_user(&inv, argp, sizeof(inv)))
return -EFAULT;
/* nscalars is truncated here to max supported value */
nscalars = REMOTE_SCALARS_LEN... | 0 |
462,317 | pcl_echo(pcl_args_t * pargs, pcl_state_t * pcs)
{
stream st;
status_begin(&st, pcs);
stprintf(&st, "ECHO %d\r\n", int_arg(pargs));
status_end(&st, pcs);
return 0;
} | 0 |
218,770 | static size_t WriteCompressionStart(const PSDInfo *psd_info,Image *image,
const Image *next_image,const ssize_t channels)
{
ssize_t
i,
offset,
y;
if (next_image->compression == RLECompression)
{
offset=WriteBlobMSBShort(image,RLE);
for (i=0; i < channels; i++)
for (y=0; y < (s... | 0 |
286,730 | size_t SWTPM_NVRAM_MigrationKey_Size(void)
{
return migrationkey.symkey.userKeyLength;
} | 0 |
369,216 |
static int io_rsrc_node_switch_start(struct io_ring_ctx *ctx)
{
if (ctx->rsrc_backup_node)
return 0;
ctx->rsrc_backup_node = io_rsrc_node_alloc();
return ctx->rsrc_backup_node ? 0 : -ENOMEM; | 0 |
444,900 | add_mtab(char *devname, char *mountpoint, unsigned long flags, const char *fstype)
{
int rc = 0, tmprc, fd;
uid_t uid;
char *mount_user = NULL;
struct mntent mountent;
struct stat statbuf;
FILE *pmntfile;
sigset_t mask, oldmask;
uid = getuid();
if (uid != 0)
mount_user = getusername(uid);
/*
* Set the r... | 0 |
312,592 | ex_helpgrep(exarg_T *eap)
{
regmatch_T regmatch;
char_u *save_cpo;
int save_cpo_allocated;
qf_info_T *qi = &ql_info;
int new_qi = FALSE;
char_u *au_name = NULL;
char_u *lang = NULL;
int updated = FALSE;
switch (eap->cmdidx)
{
case CMD_helpgrep: au_name = (char_u *)"helpgre... | 0 |
220,166 | explicit DecodeImageV2Op(OpKernelConstruction* context) : OpKernel(context) {
// Keep track of op string information because:
// [1] Currently by the API, PNG, JPEG and GIF can decode each other and
// depending on the op type, we need to return either 3-D or 4-D shapes.
// [2] Different ops have ... | 0 |
317,051 | static int file_has_perm(const struct cred *cred,
struct file *file,
u32 av)
{
struct file_security_struct *fsec = selinux_file(file);
struct inode *inode = file_inode(file);
struct common_audit_data ad;
u32 sid = cred_sid(cred);
int rc;
ad.type = LSM_AUDIT_DATA_FILE;
ad.u.file = file;
if (sid != fsec... | 0 |
199,841 | static bool load_buffer(RBinFile *bf, void **bin_obj, RBuffer *buf, ut64 loadaddr, Sdb *sdb) {
RBuffer *fbuf = r_buf_ref (buf);
struct MACH0_(opts_t) opts;
MACH0_(opts_set_default) (&opts, bf);
struct MACH0_(obj_t) *main_mach0 = MACH0_(new_buf) (fbuf, &opts);
if (!main_mach0) {
return false;
}
RRebaseInfo *re... | 1 |
273,062 | keyval_add(struct keyval *kv, const char *name, const char *value)
{
return keyval_add_size(kv, name, value, strlen(value));
} | 0 |
218,785 | static MagickBooleanType ReadPSDChannelPixels(Image *image,
const size_t channels,const ssize_t row,const ssize_t type,
const unsigned char *pixels,ExceptionInfo *exception)
{
Quantum
pixel;
const unsigned char
*p;
IndexPacket
*indexes;
PixelPacket
*q;
ssize_t
x;
size_t
pack... | 0 |
387,787 | void InstanceKlass::clean_method_data() {
for (int m = 0; m < methods()->length(); m++) {
MethodData* mdo = methods()->at(m)->method_data();
if (mdo != NULL) {
MutexLockerEx ml(SafepointSynchronize::is_at_safepoint() ? NULL : mdo->extra_data_lock());
mdo->clean_method_data(/*always_clean*/false);
... | 0 |
415,184 | scd_update_reader_status_file (void)
{
int err;
err = npth_mutex_lock (&status_file_update_lock);
if (err)
return; /* locked - give up. */
update_reader_status_file (1);
err = npth_mutex_unlock (&status_file_update_lock);
if (err)
log_error ("failed to release status_file_update lock: %s\n",
... | 0 |
359,839 | static inline void ReadTIM2ImageHeader(Image *image,TIM2ImageHeader *header)
{
header->total_size=ReadBlobLSBLong(image);
header->clut_size=ReadBlobLSBLong(image);
header->image_size=ReadBlobLSBLong(image);
header->header_size=ReadBlobLSBShort(image);
header->clut_color_count=ReadBlobLSBShort(image);
heade... | 0 |
252,301 | mz_bool mz_zip_writer_finalize_heap_archive(mz_zip_archive *pZip, void **pBuf,
size_t *pSize) {
if ((!pZip) || (!pZip->m_pState) || (!pBuf) || (!pSize)) return MZ_FALSE;
if (pZip->m_pWrite != mz_zip_heap_write_func) return MZ_FALSE;
if (!mz_zip_writer_finalize_archive(p... | 0 |
500,643 | void sftp_free(sftp_session sftp){
sftp_request_queue ptr;
if (sftp == NULL) {
return;
}
ssh_channel_send_eof(sftp->channel);
ptr = sftp->queue;
while(ptr) {
sftp_request_queue old;
sftp_message_free(ptr->message);
old = ptr->next;
SAFE_FREE(ptr);
ptr = old;
}
ssh_channel_free... | 0 |
212,688 | int hci_conn_check_link_mode(struct hci_conn *conn)
{
BT_DBG("hcon %p", conn);
/* In Secure Connections Only mode, it is required that Secure
* Connections is used and the link is encrypted with AES-CCM
* using a P-256 authenticated combination key.
*/
if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) {
if (!... | 1 |
472,371 | bool ciEnv::cache_jvmti_state() {
VM_ENTRY_MARK;
// Get Jvmti capabilities under lock to get consistant values.
MutexLocker mu(JvmtiThreadState_lock);
_jvmti_redefinition_count = JvmtiExport::redefinition_count();
_jvmti_can_hotswap_or_post_breakpoint = JvmtiExport::can_hotswap_or_post_breakpoint(... | 0 |
243,007 | int mbedtls_ssl_handle_message_type( mbedtls_ssl_context *ssl )
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
/*
* Handle particular types of records
*/
if( ssl->in_msgtype == MBEDTLS_SSL_MSG_HANDSHAKE )
{
if( ( ret = mbedtls_ssl_prepare_handshake_record( ssl ) ) != 0 )
{... | 0 |
512,709 | void in_datetime::set(uint pos,Item *item)
{
struct packed_longlong *buff= &((packed_longlong*) base)[pos];
buff->val= item->val_datetime_packed(current_thd);
buff->unsigned_flag= 1L;
} | 0 |
450,820 | prefix_array (const char *dirname, char **array, size_t n)
{
size_t i;
size_t dirlen = strlen (dirname);
char dirsep_char = '/';
if (dirlen == 1 && dirname[0] == '/')
/* DIRNAME is just "/", so normal prepending would get us "//foo".
We want "/foo" instead, so don't prepend any chars from DIRNAME. ... | 0 |
453,027 | static void nft_indr_block_cleanup(struct flow_block_cb *block_cb)
{
struct nft_base_chain *basechain = block_cb->indr.data;
struct net_device *dev = block_cb->indr.dev;
struct netlink_ext_ack extack = {};
struct nftables_pernet *nft_net;
struct net *net = dev_net(dev);
struct flow_block_offload bo;
nft_flow_bl... | 0 |
248,751 | static int cookie_sort(const void *p1, const void *p2)
{
struct Cookie *c1 = *(struct Cookie **)p1;
struct Cookie *c2 = *(struct Cookie **)p2;
size_t l1, l2;
/* 1 - compare cookie path lengths */
l1 = c1->path ? strlen(c1->path) : 0;
l2 = c2->path ? strlen(c2->path) : 0;
if(l1 != l2)
return (l2 > l1... | 0 |
274,675 | analyze_window_size_restore(GtkWidget *win)
{
GVariant *var;
const gint32 *xy;
gsize num;
if (!screen.settings)
return;
var = g_settings_get_value (screen.settings, "analyze-window-size");
xy = g_variant_get_fixed_array (var, &num, sizeof (*xy));
if (num == 2)
gtk_window_set_default_size (GTK_WINDOW (win),... | 0 |
513,174 | static st_bookmark *find_bookmark(const char *plugin, const char *name,
int flags)
{
st_bookmark *result= NULL;
uint namelen, length, pluginlen= 0;
char *varname, *p;
if (!(flags & PLUGIN_VAR_THDLOCAL))
return NULL;
namelen= strlen(name);
if (plugin)
pluginlen= st... | 0 |
256,954 | static Status RecordLabelToDimension(const int label, const int axis,
const Tensor& input,
LabelToDimSizes* label_to_dim_sizes) {
const int64_t input_dim = input.dim_size(axis);
// We know that label_to_dim_sizes has the size to acc... | 0 |
256,456 | Janet janet_array_pop(JanetArray *array) {
if (array->count) {
return array->data[--array->count];
} else {
return janet_wrap_nil();
}
} | 0 |
229,266 | cql_server::response::placeholder<int32_t> cql_server::response::write_int_placeholder() {
return placeholder<int32_t>(_body.write_place_holder(sizeof(int32_t)));
} | 0 |
476,094 | static int config_buf(struct usb_configuration *config,
enum usb_device_speed speed, void *buf, u8 type)
{
struct usb_config_descriptor *c = buf;
void *next = buf + USB_DT_CONFIG_SIZE;
int len;
struct usb_function *f;
int status;
len = USB_COMP_EP0_BUFSIZ - USB_DT_CONFIG_SIZE;
/* write the config de... | 0 |
459,508 | static inline bool stack_map_use_build_id(struct bpf_map *map)
{
return (map->map_flags & BPF_F_STACK_BUILD_ID);
} | 0 |
409,500 | term_cursor_shape(int shape, int blink)
{
if (*T_CSH != NUL)
{
OUT_STR(tgoto((char *)T_CSH, 0, shape * 2 - blink));
out_flush();
}
else
{
int do_blink = blink;
// t_SH is empty: try setting just the blink state.
// The blink flags are XORed together, if the initial blinking from
// style and ... | 0 |
234,848 | static int read_one_chunk(struct btrfs_key *key, struct extent_buffer *leaf,
struct btrfs_chunk *chunk)
{
struct btrfs_fs_info *fs_info = leaf->fs_info;
struct extent_map_tree *map_tree = &fs_info->mapping_tree;
struct map_lookup *map;
struct extent_map *em;
u64 logical;
u64 length;
u64 devid;
u64 type;
u... | 0 |
195,037 | void Compute(OpKernelContext* context) override {
const Tensor* input_indices;
const Tensor* input_values;
const Tensor* input_shape;
SparseTensorsMap* map;
OP_REQUIRES_OK(context, context->input("sparse_indices", &input_indices));
OP_REQUIRES_OK(context, context->input("sparse_values", &inpu... | 1 |
310,064 | is_sgr_string(char *value)
{
bool result = FALSE;
if (VALID_STRING(value)) {
int skip = csi_length(value);
if (skip) {
int ch;
result = TRUE;
value += skip;
while ((ch = UChar(*value++)) != '\0') {
if (isdigit(ch) || ch == ';') {
;
} else if (ch == 'm' && *value == '\0') {
... | 0 |
254,731 | njs_typed_array_prototype_buffer(njs_vm_t *vm, njs_value_t *args,
njs_uint_t nargs, njs_index_t unused)
{
njs_value_t *this;
njs_typed_array_t *array;
this = njs_argument(args, 0);
if (!njs_is_typed_array(this) && !njs_is_data_view(this)) {
njs_type_error(vm, "Method TypedArray.prot... | 0 |
226,234 | GF_Box *tssy_box_new()
{
ISOM_DECL_BOX_ALLOC(GF_TimeStampSynchronyBox, GF_ISOM_BOX_TYPE_TSSY);
return (GF_Box *)tmp;
} | 0 |
359,419 | DEFUN (clear_ip_bgp_peer_group_soft_out,
clear_ip_bgp_peer_group_soft_out_cmd,
"clear ip bgp peer-group WORD soft out",
CLEAR_STR
IP_STR
BGP_STR
"Clear all members of peer-group\n"
"BGP peer-group name\n"
"Soft reconfig\n"
"Soft reconfig outbound update\n"... | 0 |
508,797 | void LEX::set_trg_event_type_for_tables()
{
uint8 new_trg_event_map= 0;
DBUG_ENTER("LEX::set_trg_event_type_for_tables");
/*
Some auxiliary operations
(e.g. GRANT processing) create TABLE_LIST instances outside
the parser. Additionally, some commands (e.g. OPTIMIZE) change
the lock type for a tab... | 0 |
359,407 | DEFUN (no_ip_extcommunity_list_name_expanded_all,
no_ip_extcommunity_list_name_expanded_all_cmd,
"no ip extcommunity-list expanded WORD",
NO_STR
IP_STR
EXTCOMMUNITY_LIST_STR
"Specify expanded extcommunity-list\n"
"Extended Community list name\n")
{
return extcommunity_... | 0 |
211,877 | addBinding(XML_Parser parser, PREFIX *prefix, const ATTRIBUTE_ID *attId,
const XML_Char *uri, BINDING **bindingsPtr) {
static const XML_Char xmlNamespace[]
= {ASCII_h, ASCII_t, ASCII_t, ASCII_p, ASCII_COLON,
ASCII_SLASH, ASCII_SLASH, ASCII_w, ASCII_w, ASCII_w,
... | 1 |
240,610 | explicit VarIsInitializedOp(OpKernelConstruction* c) : OpKernel(c) {} | 0 |
397,643 | static short ToS(unsigned char *puffer)
{
return ((short)(puffer[0] | puffer[1] << 8));
} | 0 |
225,499 | const MutableGraphView::OutputPort MutableGraphView::GetRegularFanin(
const GraphView::InputPort& port) const {
return GetRegularFanin(MutableGraphView::InputPort(
const_cast<NodeDef*>(port.node), port.port_id));
} | 0 |
432,199 | uint64_t memory_region_size(MemoryRegion *mr)
{
if (int128_eq(mr->size, int128_2_64())) {
return UINT64_MAX;
}
return int128_get64(mr->size);
} | 0 |
281,664 | void CLASS parse_riff()
{
unsigned i, size, end;
char tag[4], date[64], month[64];
static const char mon[12][4] =
{ "Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec" };
struct tm t;
order = 0x4949;
fread (tag, 4, 1, ifp);
size = get4();
#ifdef LIBRAW_LIBRARY_BUILD
if((int)size<0... | 0 |
500,651 | static sftp_request_queue request_queue_new(sftp_message msg) {
sftp_request_queue queue = NULL;
queue = malloc(sizeof(struct sftp_request_queue_struct));
if (queue == NULL) {
ssh_set_error_oom(msg->sftp->session);
return NULL;
}
ZERO_STRUCTP(queue);
queue->message = msg;
return queue;
} | 0 |
195,237 | static Image *ReadPCLImage(const ImageInfo *image_info,ExceptionInfo *exception)
{
#define CropBox "CropBox"
#define DeviceCMYK "DeviceCMYK"
#define MediaBox "MediaBox"
#define RenderPCLText " Rendering PCL... "
char
command[MagickPathExtent],
*density,
filename[MagickPathExtent],
geometry[Magi... | 1 |
139,244 | void OverlayWindowViews::SetUpViews() {
gfx::Rect larger_window_bounds = GetBounds();
larger_window_bounds.Inset(-1, -1);
window_background_view_->SetSize(larger_window_bounds.size());
window_background_view_->SetPaintToLayer(ui::LAYER_SOLID_COLOR);
GetWindowBackgroundLayer()->SetColor(SK_ColorBLACK);
cont... | 0 |
261,441 | bool alloc_and_init_significant_coeff_ctxIdx_lookupTable()
{
int tableSize = 4*4*(2) + 8*8*(2*2*4) + 16*16*(2*4) + 32*32*(2*4);
uint8_t* p = (uint8_t*)malloc(tableSize);
if (p==NULL) {
return false;
}
memset(p,0xFF,tableSize); // just for debugging
// --- Set pointers to memory areas. Note that som... | 0 |
281,133 | static void xfrm_init_pmtu(struct dst_entry *dst)
{
do {
struct xfrm_dst *xdst = (struct xfrm_dst *)dst;
u32 pmtu, route_mtu_cached;
pmtu = dst_mtu(dst->child);
xdst->child_mtu_cached = pmtu;
pmtu = xfrm_state_mtu(dst->xfrm, pmtu);
route_mtu_cached = dst_mtu(xdst->route);
xdst->route_mtu_cached = rout... | 0 |
336,505 | static void reds_set_one_channel_security(RedsState *reds, int id, uint32_t security)
{
ChannelSecurityOptions *security_options;
if ((security_options = reds_find_channel_security(reds, id))) {
security_options->options = security;
return;
}
security_options = g_new(ChannelSecurityOpti... | 0 |
508,852 | void lex_end(LEX *lex)
{
DBUG_ENTER("lex_end");
DBUG_PRINT("enter", ("lex: %p", lex));
lex_unlock_plugins(lex);
lex_end_nops(lex);
DBUG_VOID_RETURN;
} | 0 |
259,083 | bool should_run_in_pool(BundleReader* reader) const {
TensorShape restored_full_shape;
// Ignore status here; we'll catch the error later.
if (!reader->LookupTensorShape(tensor_name, &restored_full_shape).ok()) {
return false;
}
return restored_full_shape.num_elements() > kLargeShapeThresh... | 0 |
338,101 | bool WasmBinaryBuilder::maybeVisitMemoryFill(Expression*& out, uint32_t code) {
if (code != BinaryConsts::MemoryFill) {
return false;
}
auto* curr = allocator.alloc<MemoryFill>();
curr->size = popNonVoidExpression();
curr->value = popNonVoidExpression();
curr->dest = popNonVoidExpression();
if (getInt... | 0 |
225,496 | Status MutableGraphView::AddControllingFanin(absl::string_view node_name,
const TensorId& fanin) {
auto error_status = [node_name, fanin](absl::string_view msg) {
string params = absl::Substitute("node_name='$0', fanin='$1'", node_name,
... | 0 |
512,267 | int Arg_comparator::compare_e_str_json()
{
return compare_e_json_str_basic(*b, *a);
} | 0 |
409,441 | req_codes_from_term(void)
{
xt_index_out = 0;
xt_index_in = 0;
req_more_codes_from_term();
} | 0 |
255,939 | ShapeRefiner::ShapeRefiner(int graph_def_version,
const OpRegistryInterface* ops)
: graph_def_version_(graph_def_version),
ops_registry_(ops),
graph_runner_(Env::Default()) {} | 0 |
317,329 | static void smack_file_set_fowner(struct file *file)
{
struct smack_known **blob = smack_file(file);
*blob = smk_of_current();
} | 0 |
430,437 | static void __ovs_nla_free_flow_actions(struct rcu_head *head)
{
ovs_nla_free_flow_actions(container_of(head, struct sw_flow_actions, rcu));
} | 0 |
226,120 |
void extr_box_del(GF_Box *s)
{
GF_ExtraDataBox *ptr = (GF_ExtraDataBox *)s;
if (ptr == NULL) return;
if (ptr->feci) gf_isom_box_del((GF_Box*)ptr->feci);
if (ptr->data) gf_free(ptr->data);
gf_free(ptr); | 0 |
216,945 | bool Item_equal::create_pushable_equalities(THD *thd,
List<Item> *equalities,
Pushdown_checker checker,
uchar *arg,
bool clone_const)
{
Item *... | 1 |
513,101 | void Item_func_not::print(String *str, enum_query_type query_type)
{
str->append('!');
args[0]->print_parenthesised(str, query_type, precedence());
} | 0 |
387,644 | static inline void add_hash_entries(struct snd_card *card,
struct snd_kcontrol *kcontrol)
{
} | 0 |
436,152 |
void __io_uring_cancel(struct files_struct *files)
{
io_uring_cancel_generic(!files, NULL); | 0 |
139,210 | gfx::Rect OverlayWindowViews::CalculateAndUpdateWindowBounds() {
gfx::Rect work_area =
display::Screen::GetScreen()
->GetDisplayNearestWindow(
controller_->GetInitiatorWebContents()->GetTopLevelNativeWindow())
.work_area();
max_size_ = gfx::Size(work_area.width() / 2, work_a... | 0 |
224,173 | std::size_t get_tuple_bytes(const OptionalTuple& tuple) {
return std::accumulate(
tuple.begin(), tuple.end(), static_cast<std::size_t>(0),
[](const std::size_t& lhs, const OptionalTensor& rhs) {
return (lhs + rhs.has_value()) ? rhs.value().TotalBytes() : 0;
});
} | 0 |
247,340 | pgpDig pgpFreeDig(pgpDig dig)
{
if (dig != NULL) {
/* DUmp the signature/pubkey data. */
pgpCleanDig(dig);
dig = _free(dig);
}
return dig;
} | 0 |
253,560 | smb2_negotiate_rsize(struct cifs_tcon *tcon, struct smb3_fs_context *ctx)
{
struct TCP_Server_Info *server = tcon->ses->server;
unsigned int rsize;
/* start with specified rsize, or default */
rsize = ctx->rsize ? ctx->rsize : CIFS_DEFAULT_IOSIZE;
rsize = min_t(unsigned int, rsize, server->max_read);
if (!(serv... | 0 |
463,066 | static void sungem_eval_irq(SunGEMState *s)
{
uint32_t stat, mask;
mask = s->gregs[GREG_IMASK >> 2];
stat = s->gregs[GREG_STAT >> 2] & ~GREG_STAT_TXNR;
if (stat & ~mask) {
pci_set_irq(PCI_DEVICE(s), 1);
} else {
pci_set_irq(PCI_DEVICE(s), 0);
}
} | 0 |
462,222 | PJ_DEF(pj_status_t) pj_stun_msg_decode(pj_pool_t *pool,
const pj_uint8_t *pdu,
pj_size_t pdu_len,
unsigned options,
pj_stun_msg **p_msg,
pj_size_t *p_parsed_len,
pj_stun_msg **p_response)
{
pj_stun_msg *msg;
const pj_uint8_t *start_pdu = pdu... | 0 |
221,414 | void svm_free_nested(struct vcpu_svm *svm)
{
if (!svm->nested.initialized)
return;
svm_vcpu_free_msrpm(svm->nested.msrpm);
svm->nested.msrpm = NULL;
__free_page(virt_to_page(svm->nested.vmcb02.ptr));
svm->nested.vmcb02.ptr = NULL;
/*
* When last_vmcb12_gpa matches the current vmcb12 gpa,
* some vmcb12 fi... | 0 |
220,447 | ary_dup(mrb_state *mrb, struct RArray *a)
{
return ary_new_from_values(mrb, ARY_LEN(a), ARY_PTR(a));
} | 0 |
232,941 | char *Curl_all_content_encodings(void)
{
return strdup(CONTENT_ENCODING_DEFAULT); /* Satisfy caller. */
} | 0 |
233,935 | void DocumentSourceUnionWith::recordPlanSummaryStats(const Pipeline& pipeline) {
for (auto&& source : pipeline.getSources()) {
if (auto specificStats = source->getSpecificStats()) {
specificStats->accumulate(_stats.planSummaryStats);
}
}
} | 0 |
293,762 | static void sections_from_mach0(RList *ret, struct MACH0_(obj_t) *mach0, RBinFile *bf, ut64 paddr, char *prefix, RKernelCacheObj *obj) {
struct section_t *sections = NULL;
if (!(sections = MACH0_(get_sections) (mach0))) {
return;
}
int i;
for (i = 0; !sections[i].last; i++) {
RBinSection *ptr;
if (!(ptr = R_... | 0 |
240,288 | get_expr_line_src(void)
{
if (expr_line == NULL)
return NULL;
return vim_strsave(expr_line);
} | 0 |
436,058 | static int io_write(struct io_kiocb *req, unsigned int issue_flags)
{
struct iovec inline_vecs[UIO_FASTIOV], *iovec = inline_vecs;
struct kiocb *kiocb = &req->rw.kiocb;
struct iov_iter __iter, *iter = &__iter;
struct io_async_rw *rw = req->async_data;
ssize_t ret, ret2, io_size;
bool force_nonblock = issue_flags ... | 0 |
275,514 | njs_vm_retval_set(njs_vm_t *vm, const njs_value_t *value)
{
vm->retval = *value;
} | 0 |
246,457 | static bool consume_encoded_name_new(RBuffer *b, ut64 bound, ut32 *len_out, char **str_out) {
ut32 len;
char *orig = NULL;
if (!consume_str_new (b, bound, &len, &orig)) {
return false;
}
// room for even every character getting encoded
size_t maxsize = (len * 4) + 2;
char *sout = malloc (maxsize);
if (!sout)... | 0 |
222,513 | uint64 FunctionDefHash(const FunctionDef& fdef) {
// signature
uint64 h = OpDefHash(fdef.signature());
// attrs
std::map<string, AttrValue> attrs = GetSetAttrs(fdef);
for (const auto& p : attrs) {
h = Hash64(p.first.data(), p.first.size(), h);
h = Hash64Combine(AttrValueHash(p.second), h);
}
// ... | 0 |
224,157 | Status pop(const KeyType* key, const Tensor* indices, Tuple* tuple) {
tensorflow::mutex_lock lock(mu_);
// Sanity check the indices
TF_RETURN_IF_ERROR(check_index_ordering(*indices));
typename MapType::iterator it;
// Wait until the element with the requested key is present
while ((it = map... | 0 |
436,150 |
static int io_files_update(struct io_kiocb *req, unsigned int issue_flags)
{
struct io_ring_ctx *ctx = req->ctx;
struct io_uring_rsrc_update2 up;
int ret;
if (issue_flags & IO_URING_F_NONBLOCK)
return -EAGAIN;
up.offset = req->rsrc_update.offset;
up.data = req->rsrc_update.arg;
up.nr = 0;
up.tags = 0;
up.... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.