idx int64 | func string | target int64 |
|---|---|---|
513,258 | test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
bool no_changes, const key_map *map)
{
int ref_key;
uint UNINIT_VAR(ref_key_parts);
int order_direction= 0;
uint used_key_parts= 0;
TABLE *table=tab->table;
SQL_SELECT *select=tab->select;
key_map usable_keys;
QUICK_SELECT_I *sa... | 0 |
359,596 | DEFUN (clear_ip_bgp_peer_soft,
clear_ip_bgp_peer_soft_cmd,
"clear ip bgp A.B.C.D soft",
CLEAR_STR
IP_STR
BGP_STR
"BGP neighbor address to clear\n"
"Soft reconfig\n")
{
return bgp_clear_vty (vty, NULL, AFI_IP, SAFI_UNICAST, clear_peer,
BGP_CLEAR_SOFT_BOTH, argv[0]);
... | 0 |
231,053 | BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue,
const void * const pvItemToQueue,
BaseType_t * const pxHigherPriorityTaskWoken,
const BaseType_t xCopyPosition )
{
BaseType_t xReturn;
U... | 0 |
294,440 | date_s_valid_weeknum_p(int argc, VALUE *argv, VALUE klass)
{
VALUE vy, vw, vd, vf, vsg;
VALUE argv2[5];
rb_scan_args(argc, argv, "41", &vy, &vw, &vd, &vf, &vsg);
argv2[0] = vy;
argv2[1] = vw;
argv2[2] = vd;
argv2[3] = vf;
if (argc < 5)
argv2[4] = INT2FIX(DEFAULT_SG);
else
argv2[4... | 0 |
336,682 | SPICE_GNUC_VISIBLE int spice_server_set_exit_on_disconnect(SpiceServer *s, int flag)
{
s->config->exit_on_disconnect = !!flag;
return 0;
} | 0 |
238,436 | static void mark_ptr_or_null_reg(struct bpf_func_state *state,
struct bpf_reg_state *reg, u32 id,
bool is_null)
{
if (type_may_be_null(reg->type) && reg->id == id &&
!WARN_ON_ONCE(!reg->id)) {
if (WARN_ON_ONCE(reg->smin_value || reg->smax_value ||
!tnum_equals_const(reg->var_off, 0) ||
reg->... | 0 |
512,814 | static bool convert_const_to_int(THD *thd, Item_field *field_item,
Item **item)
{
Field *field= field_item->field;
int result= 0;
/*
We don't need to convert an integer to an integer,
pretend it's already converted.
But we still convert it if it is compared with a F... | 0 |
276,443 | explicit BoostedTreesGetEnsembleStatesOp(OpKernelConstruction* context)
: OpKernel(context) {} | 0 |
231,796 | void processClientInitialParams(
QuicServerConnectionState& conn,
const ClientTransportParameters& clientParams) {
// TODO validate that we didn't receive original connection ID, stateless
// reset token, or preferred address.
auto maxData = getIntegerParameter(
TransportParameterId::initial_max_dat... | 0 |
210,091 | get_password(const char *prompt, char *input, int capacity)
{
#ifdef ENABLE_SYSTEMD
int is_systemd_running;
struct stat a, b;
/* We simply test whether the systemd cgroup hierarchy is
* mounted */
is_systemd_running = (lstat("/sys/fs/cgroup", &a) == 0)
&& (lstat("/sys/fs/cgroup/systemd", &b) == 0)
&& (a.st_d... | 1 |
90,792 | void QuotaManager::NotifyOriginInUse(const GURL& origin) {
DCHECK(io_thread_->BelongsToCurrentThread());
origins_in_use_[origin]++;
}
| 0 |
293,766 | static void process_constructors(RKernelCacheObj *obj, struct MACH0_(obj_t) *mach0, RList *ret, ut64 paddr, bool is_first, int mode, const char *prefix) {
struct section_t *sections = NULL;
if (!(sections = MACH0_(get_sections) (mach0))) {
return;
}
int i, type;
for (i = 0; !sections[i].last; i++) {
if (sectio... | 0 |
353,234 | bool SplashOutputDev::checkTransparencyGroup(GfxState *state, bool knockout) {
if (state->getFillOpacity() != 1 ||
state->getStrokeOpacity() != 1 ||
state->getAlphaIsShape() ||
state->getBlendMode() != gfxBlendNormal ||
splash->getSoftMask() != nullptr ||
knockout)
return true;
return tran... | 0 |
437,324 | renumber_by_map(Node* node, GroupNumRemap* map)
{
int r = 0;
switch (NODE_TYPE(node)) {
case NODE_LIST:
case NODE_ALT:
do {
r = renumber_by_map(NODE_CAR(node), map);
} while (r == 0 && IS_NOT_NULL(node = NODE_CDR(node)));
break;
case NODE_QUANT:
r = renumber_by_map(NODE_BODY(node), map... | 0 |
90,750 | void QuotaManager::DeleteOnCorrectThread() const {
if (!io_thread_->BelongsToCurrentThread()) {
io_thread_->DeleteSoon(FROM_HERE, this);
return;
}
delete this;
}
| 0 |
252,419 | int LoadEXR(float **out_rgba, int *width, int *height, const char *filename,
const char **err) {
if (out_rgba == NULL) {
tinyexr::SetErrorMessage("Invalid argument for LoadEXR()", err);
return TINYEXR_ERROR_INVALID_ARGUMENT;
}
EXRVersion exr_version;
EXRImage exr_image;
EXRHeader exr_head... | 0 |
247,748 | void updateFilterChain(
const envoy::extensions::transport_sockets::tls::v3::DownstreamTlsContext& tls_context,
envoy::config::listener::v3::FilterChain& filter_chain) {
filter_chain.mutable_transport_socket()->mutable_typed_config()->PackFrom(tls_context);
} | 0 |
473,820 | onigenc_ascii_apply_all_case_fold(OnigCaseFoldType flag ARG_UNUSED,
OnigApplyAllCaseFoldFunc f, void* arg,
OnigEncoding enc ARG_UNUSED)
{
OnigCodePoint code;
int i, r;
for (i = 0;
i < (int )(sizeof(OnigAsciiLowerMap)/sizeof(OnigPairCaseFoldCodes));
i++) {
code = OnigAsciiLowerMap[i]... | 0 |
500,689 | int sftp_symlink(sftp_session sftp, const char *target, const char *dest) {
sftp_status_message status = NULL;
sftp_message msg = NULL;
ssh_string target_s;
ssh_string dest_s;
ssh_buffer buffer;
uint32_t id;
if (sftp == NULL)
return -1;
if (target == NULL || dest == NULL) {
ssh_set_error_invali... | 0 |
244,359 | GF_Err tsro_box_write(GF_Box *s, GF_BitStream *bs)
{
GF_Err e;
GF_TimeOffHintEntryBox *ptr = (GF_TimeOffHintEntryBox *)s;
if (ptr == NULL) return GF_BAD_PARAM;
e = gf_isom_box_write_header(s, bs);
if (e) return e;
gf_bs_write_u32(bs, ptr->TimeOffset);
return GF_OK;
} | 0 |
221,459 | flatpak_run_add_pulseaudio_args (FlatpakBwrap *bwrap)
{
g_autofree char *pulseaudio_server = flatpak_run_get_pulseaudio_server ();
g_autofree char *pulseaudio_socket = NULL;
g_autofree char *pulse_runtime_dir = flatpak_run_get_pulse_runtime_dir ();
if (pulseaudio_server)
pulseaudio_socket = flatpak_run_par... | 0 |
253,721 | ccp_run_rsa_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd)
{
struct ccp_rsa_engine *rsa = &cmd->u.rsa;
struct ccp_dm_workarea exp, src, dst;
struct ccp_op op;
unsigned int sb_count, i_len, o_len;
int ret;
/* Check against the maximum allowable size, in bits */
if (rsa->key_size > cmd_q->ccp->vdata->rsama... | 0 |
247,610 | TEST_P(SslReadBufferLimitTest, WritesLargerThanBufferLimit) { singleWriteTest(1024, 5 * 1024); } | 0 |
209,931 | static PresentationContext* PresentationContext_new(VideoClientContext* video, BYTE PresentationId,
UINT32 x, UINT32 y, UINT32 width, UINT32 height)
{
VideoClientContextPriv* priv = video->priv;
PresentationContext* ret = calloc(1, sizeof(*ret));
if (!ret)
return... | 1 |
455,332 | restore_tilde (val, directory_part)
char *val, *directory_part;
{
int l, vl, dl2, xl;
char *dh2, *expdir, *ret, *v;
vl = strlen (val);
/* We need to duplicate the expansions readline performs on the directory
portion before passing it to our completion function. */
dh2 = directory_part ? bash_dequ... | 0 |
338,124 | void WasmBinaryBuilder::throwError(std::string text) {
throw ParseException(text, 0, pos);
} | 0 |
473,849 | cp1251_apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg, OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
flag, f, arg);
} | 0 |
225,067 | PQserverVersion(const PGconn *conn)
{
if (!conn)
return 0;
if (conn->status == CONNECTION_BAD)
return 0;
return conn->sversion;
} | 0 |
299,322 | static Image *decompress_block(Image *orig, unsigned int *Size, ImageInfo *clone_info, ExceptionInfo *exception)
{
Image *image2;
void *cache_block, *decompress_block;
z_stream zip_info;
FILE *mat_file;
size_t magick_size;
size_t extent;
int file;
int status;
int zip_status;
ssize_t TotalSize = 0;
if(clone_info==N... | 0 |
220,233 | NodeDef* Node::mutable_def() { return &props_->node_def; } | 0 |
450,337 | gboolean vnc_client_io(QIOChannel *ioc G_GNUC_UNUSED,
GIOCondition condition, void *opaque)
{
VncState *vs = opaque;
assert(vs->magic == VNC_MAGIC);
if (condition & G_IO_IN) {
if (vnc_client_read(vs) < 0) {
/* vs is free()ed here */
return TRUE;
... | 0 |
90,791 | HostUsageCallback* NewWaitableHostUsageCallback() {
++waiting_callbacks_;
return callback_factory_.NewCallback(
&UsageAndQuotaDispatcherTask::DidGetHostUsage);
}
| 0 |
384,796 | getvcol(
win_T *wp,
pos_T *pos,
colnr_T *start,
colnr_T *cursor,
colnr_T *end)
{
colnr_T vcol;
char_u *ptr; // points to current char
char_u *posptr; // points to char at pos->col
char_u *line; // start of the line
int incr;
int head;
#ifdef FEAT_VARTABS
int *vts = w... | 0 |
328,949 | R_API void r_bin_java_print_code_attr_summary(RBinJavaAttrInfo *attr) {
RListIter *iter = NULL, *iter_tmp = NULL;
RBinJavaExceptionEntry *exc_entry = NULL;
RBinJavaAttrInfo *_attr = NULL;
if (!attr) {
eprintf ("Attempting to print an invalid RBinJavaAttrInfo *Code.\n");
return;
}
printf ("Code Attribute Infor... | 0 |
253,595 | smb3_notify(const unsigned int xid, struct file *pfile,
void __user *ioc_buf)
{
struct smb3_notify notify;
struct dentry *dentry = pfile->f_path.dentry;
struct inode *inode = file_inode(pfile);
struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
struct cifs_open_parms oparms;
struct cifs_fid fid;
struct ci... | 0 |
442,579 | static void test_memslot_invalid_addresses(void)
{
g_test_trap_subprocess("/server/memslot-invalid-addresses/subprocess/group_id", 0, 0);
g_test_trap_assert_stderr("*group_id too big*");
g_test_trap_subprocess("/server/memslot-invalid-addresses/subprocess/slot_id", 0, 0);
g_test_trap_assert_stderr("*sl... | 0 |
254,066 | std::vector<std::string> keys() const
{
std::vector<std::string> ret;
for (auto element : key_value_pairs_)
{
std::string str_element(element);
ret.emplace_back(str_element.substr(0, str_element.find('=')));
}
re... | 0 |
222,492 | Status FunctionLibraryDefinition::AddFunctionDef(
const FunctionDef& fdef, const StackTracesMap& stack_traces) {
mutex_lock l(mu_);
bool added;
return AddFunctionDefHelper(fdef, stack_traces, &added);
} | 0 |
345,209 | console_map_init(void)
{
int i;
for (i = 0; i < MAX_NR_CONSOLES; i++)
if (vc_cons_allocated(i) && !*vc_cons[i].d->vc_uni_pagedir_loc)
con_set_default_unimap(vc_cons[i].d);
} | 0 |
509,547 | int ha_maria::optimize(THD * thd, HA_CHECK_OPT *check_opt)
{
int error;
HA_CHECK *param= (HA_CHECK*) thd->alloc(sizeof *param);
if (!file || !param)
return HA_ADMIN_INTERNAL_ERROR;
maria_chk_init(param);
param->thd= thd;
param->op_name= "optimize";
param->testflag= (check_opt->flags | T_SILENT | T_F... | 0 |
90,835 | void DeleteClientOriginData(QuotaClient* client,
const GURL& origin,
StorageType type) {
DCHECK(client);
quota_status_ = kQuotaStatusUnknown;
client->DeleteOriginData(origin, type,
callback_factory_.NewCallback(
&QuotaManagerTest::StatusC... | 0 |
512,355 | bool check_is_evaluable_expression_or_error()
{
if (is_evaluable_expression())
return false; // Ok
raise_error_not_evaluable();
return true; // Error
} | 0 |
275,961 | unsigned uECC_curve_num_words(uECC_Curve curve) {
return curve->num_words;
} | 0 |
355,649 | eval7(
char_u **arg,
typval_T *rettv,
evalarg_T *evalarg,
int want_string) // after "." operator
{
int evaluate = evalarg != NULL
&& (evalarg->eval_flags & EVAL_EVALUATE);
int len;
char_u *s;
char_u *name_start = NULL;
char_u *start_leader, *end_leader;
int ret = OK... | 0 |
413,632 | R_API RGraph *r_core_anal_importxrefs(RCore *core) {
RBinInfo *info = r_bin_get_info (core->bin);
RBinObject *obj = r_bin_cur_object (core->bin);
bool lit = info? info->has_lit: false;
bool va = core->io->va || r_config_get_b (core->config, "cfg.debug");
RListIter *iter;
RBinImport *imp;
if (!obj) {
return NU... | 0 |
274,851 | int input2() { return input2_; } | 0 |
514,300 | static bool check_fields(THD *thd, List<Item> &items, bool update_view)
{
Item *item;
if (update_view)
{
List_iterator<Item> it(items);
Item_field *field;
while ((item= it++))
{
if (!(field= item->field_for_view_update()))
{
/* item has name, because it comes from VIEW SELECT l... | 0 |
344,807 | sanitise_stdfd(void)
{
int nullfd, dupfd;
if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
fprintf(stderr, "Couldn't open /dev/null: %s\n",
strerror(errno));
exit(1);
}
while (++dupfd <= STDERR_FILENO) {
/* Only populate closed fds. */
if (fcntl(dupfd, F_GETFL) == -1 && errno == EBADF) {
... | 0 |
457,772 | static size_t handle_returned_header (void *ptr, size_t size, size_t nmemb, void *stream)
{
auth_client *auth_user = stream;
size_t len = size * nmemb;
client_t *client = auth_user->client;
if (client) {
auth_t *auth = client->auth;
auth_url *url = auth->state;
if (url->auth_he... | 0 |
488,333 | const char *arch_vma_name(struct vm_area_struct *vma)
{
if (vma->vm_mm && vma->vm_start == vma->vm_mm->context.vdso_base)
return "[vdso]";
return NULL;
} | 0 |
232,306 | void gf_isom_box_array_del(GF_List *boxlist)
{
gf_isom_box_array_reset(boxlist);
gf_list_del(boxlist);
} | 0 |
384,126 | raptor_xml_writer_get_depth(raptor_xml_writer *xml_writer)
{
return xml_writer->depth;
} | 0 |
261,736 | void RtmpProtocol::sendInvoke(const string &cmd, const AMFValue &val) {
AMFEncoder enc;
enc << cmd << ++_send_req_id << val;
sendRequest(MSG_CMD, enc.data());
} | 0 |
225,629 |
void xtra_box_del(GF_Box *s)
{
GF_XtraBox *ptr = (GF_XtraBox *)s;
while (gf_list_count(ptr->tags)) {
GF_XtraTag *tag = gf_list_pop_back(ptr->tags);
if (tag->name) gf_free(tag->name);
if (tag->prop_value) gf_free(tag->prop_value);
gf_free(tag);
}
gf_list_del(ptr->tags);
gf_free(s); | 0 |
385,804 | int finish_no_open(struct file *file, struct dentry *dentry)
{
file->f_path.dentry = dentry;
return 1;
} | 0 |
281,635 | void CLASS parse_exif (int base)
{
unsigned kodak, entries, tag, type, len, save, c;
double expo;
kodak = !strncmp(make,"EASTMAN",7) && tiff_nifds < 3;
entries = get2();
while (entries--) {
tiff_get (base, &tag, &type, &len, &save);
switch (tag) {
case 33434: shutter = getreal(type); break;
... | 0 |
318,780 | new_state(drill_state_t *state)
{
state = g_new0(drill_state_t, 1);
if (state != NULL) {
/* Init structure */
state->curr_section = DRILL_NONE;
state->coordinate_mode = DRILL_MODE_ABSOLUTE;
state->origin_x = 0.0;
state->origin_y = 0.0;
state->unit = GERBV_UNIT_UNSPECIFIED;
state->backup_number_format = F... | 0 |
225,010 | conninfo_uri_decode(const char *str, PQExpBuffer errorMessage)
{
char *buf;
char *p;
const char *q = str;
buf = malloc(strlen(str) + 1);
if (buf == NULL)
{
appendPQExpBufferStr(errorMessage, libpq_gettext("out of memory\n"));
return NULL;
}
p = buf;
for (;;)
{
if (*q != '%')
{
/* copy and c... | 0 |
310,099 | drv_nap(TERMINAL_CONTROL_BLOCK * TCB GCC_UNUSED, int ms)
{
#if HAVE_NANOSLEEP
{
struct timespec request, remaining;
request.tv_sec = ms / 1000;
request.tv_nsec = (ms % 1000) * 1000000;
while (nanosleep(&request, &remaining) == -1
&& errno == EINTR) {
request = remaining;
}
}
#else
_nc_time... | 0 |
198,116 | void Compute(OpKernelContext *ctx) override {
const Tensor *indices_t, *values_t, *shape_t, *reduction_axes_t;
OP_REQUIRES_OK(ctx, ctx->input("input_indices", &indices_t));
OP_REQUIRES_OK(ctx, ctx->input("input_values", &values_t));
OP_REQUIRES_OK(ctx, ctx->input("input_shape", &shape_t));
OP_REQU... | 1 |
513,263 | bool instantiate_tmp_table(TABLE *table, KEY *keyinfo,
TMP_ENGINE_COLUMNDEF *start_recinfo,
TMP_ENGINE_COLUMNDEF **recinfo,
ulonglong options)
{
if (table->s->db_type() == TMP_ENGINE_HTON)
{
if (create_internal_tmp_table(table, ke... | 0 |
202,081 | do_put(
int regname,
char_u *expr_result, // result for regname "=" when compiled
int dir, // BACKWARD for 'P', FORWARD for 'p'
long count,
int flags)
{
char_u *ptr;
char_u *newp, *oldp;
int yanklen;
int totlen = 0; // init for gcc
linenr_T lnum;
colnr_T col;
long ... | 1 |
226,328 | GF_Box *drep_box_new()
{
ISOM_DECL_BOX_ALLOC(GF_DREPBox, GF_ISOM_BOX_TYPE_DREP);
return (GF_Box *)tmp;
} | 0 |
383,355 | gdImageAntialias (gdImagePtr im, int antialias)
{
if (im->trueColor){
im->antialias = antialias;
}
} | 0 |
234,784 | static bool contains_pending_extent(struct btrfs_device *device, u64 *start,
u64 len)
{
u64 physical_start, physical_end;
lockdep_assert_held(&device->fs_info->chunk_mutex);
if (!find_first_extent_bit(&device->alloc_state, *start,
&physical_start, &physical_end,
CHUNK_ALLOCATED, NULL)) {
i... | 0 |
402,586 | void cms_set_pw_data(cms_context *cms, secuPWData *pwdata)
{
ingress();
switch (cms->pwdata.source) {
case PW_SOURCE_INVALID:
case PW_PROMPT:
case PW_DEVICE:
case PW_SOURCE_MAX:
break;
case PW_FROMENV:
case PW_FROMFILEDB:
case PW_PLAINTEXT:
memset(cms->pwdata.data, 0, strlen(cms->pwdata.data));
xfree(c... | 0 |
512,937 | Item_func_regexp_instr::fix_length_and_dec()
{
if (agg_arg_charsets_for_comparison(cmp_collation, args, 2))
return TRUE;
re.init(cmp_collation.collation, 0);
re.fix_owner(this, args[0], args[1]);
max_length= MY_INT32_NUM_DECIMAL_DIGITS; // See also Item_func_locate
return FALSE;
} | 0 |
506,439 | mech_rpa_build_token4(struct rpa_auth_request *request, size_t *size)
{
buffer_t *buf;
unsigned char server_response[MD5_RESULTLEN];
unsigned int length = sizeof(rpa_oid) +
sizeof(server_response) + 1 +
sizeof(request->session_key) + 1 + 1;
buf = buffer_create_dynamic(request->pool, length + 4);
buffer_appen... | 0 |
462,307 | stputs(stream * s, const char *str)
{
uint ignore_count;
sputs(s, (const byte *)str, strlen(str), &ignore_count);
} | 0 |
512,578 | longlong Item_in_optimizer::val_int()
{
bool tmp;
DBUG_ASSERT(fixed == 1);
cache->store(args[0]);
cache->cache_value();
DBUG_ENTER(" Item_in_optimizer::val_int");
if (invisible_mode())
{
longlong res= args[1]->val_int();
null_value= args[1]->null_value;
DBUG_PRINT("info", ("pass trough"));
... | 0 |
401,589 | static inline struct timer_base *get_timer_this_cpu_base(u32 tflags)
{
struct timer_base *base = this_cpu_ptr(&timer_bases[BASE_STD]);
/*
* If the timer is deferrable and NO_HZ_COMMON is set then we need
* to use the deferrable base.
*/
if (IS_ENABLED(CONFIG_NO_HZ_COMMON) && (tflags & TIMER_DEFERRABLE))
bas... | 0 |
309,984 | usage(void)
{
static const char *msg[] =
{
"Usage: dots [options]"
,""
,"Options:"
," -T TERM override $TERM"
#if HAVE_USE_ENV
," -e allow environment $LINES / $COLUMNS"
#endif
," -f use tigetnum rather than <term.h> mapping"
," -m SIZE set margin (default: 2)"
," -r SECS self-interrupt/e... | 0 |
101,675 | void WebProcessProxy::didReceiveMessageOnConnectionWorkQueue(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::MessageDecoder& decoder, bool& didHandleMessage)
{
if (decoder.messageReceiverName() == Messages::WebProcessProxy::messageReceiverName())
didReceiveWebProcessProxyMessageOnCon... | 0 |
344,818 | safe_path(const char *name, struct stat *stp, const char *pw_dir,
uid_t uid, char *err, size_t errlen)
{
char buf[PATH_MAX], homedir[PATH_MAX];
char *cp;
int comparehome = 0;
struct stat st;
if (realpath(name, buf) == NULL) {
snprintf(err, errlen, "realpath %s failed: %s", name,
strerror(errno));
re... | 0 |
430,465 | ~GopherStateData() {if(buf) swanSong();} | 0 |
225,635 | GF_Err hnti_box_write(GF_Box *s, GF_BitStream *bs)
{
return gf_isom_box_write_header(s, bs);
} | 0 |
353,239 | void SplashOutputDev::updateTransfer(GfxState *state) {
Function **transfer;
unsigned char red[256], green[256], blue[256], gray[256];
double x, y;
int i;
transfer = state->getTransfer();
if (transfer[0] &&
transfer[0]->getInputSize() == 1 &&
transfer[0]->getOutputSize() == 1) {
if (transfe... | 0 |
474,085 | is_mbc_newline(const UChar* p, const UChar* end, OnigEncoding enc)
{
if (p < end) {
if (*p == 0x0a) return 1;
#ifdef USE_UNICODE_ALL_LINE_TERMINATORS
#ifndef USE_CRNL_AS_LINE_TERMINATOR
if (*p == 0x0d) return 1;
#endif
if (p + 1 < end) {
if (*(p+1) == 0x85 && *p == 0xc2) /* U+0085 */
return 1;
... | 0 |
234,780 | struct list_head * __attribute_const__ btrfs_get_fs_uuids(void)
{
return &fs_uuids;
} | 0 |
369,247 | static int io_async_buf_func(struct wait_queue_entry *wait, unsigned mode,
int sync, void *arg)
{
struct wait_page_queue *wpq;
struct io_kiocb *req = wait->private;
struct wait_page_key *key = arg;
wpq = container_of(wait, struct wait_page_queue, wait);
if (!wake_page_match(wpq, key))
return 0;
req->... | 0 |
343,222 | void domlst(const char * const file)
{
char line[PATH_MAX + 256U] = MLST_BEGIN;
if (modernformat(file, line + (sizeof MLST_BEGIN - 1U),
sizeof line - (sizeof MLST_BEGIN - 1U), " ") < 0) {
addreply_noformat(550, MSG_STAT_FAILURE2);
return;
}
addreply_noformat(0, line... | 0 |
313,750 | nv_ignore(cmdarg_T *cap)
{
cap->retval |= CA_COMMAND_BUSY; // don't call edit() now
} | 0 |
289,261 | static int snd_pcm_oss_change_params(struct snd_pcm_substream *substream,
bool trylock)
{
struct snd_pcm_runtime *runtime = substream->runtime;
int err;
if (trylock) {
if (!(mutex_trylock(&runtime->oss.params_lock)))
return -EAGAIN;
} else if (mutex_lock_interruptible(&runtime->oss.params_lock))
re... | 0 |
445,869 | fr_window_set_password_for_second_archive (FrWindow *window,
const char *password)
{
g_return_if_fail (window != NULL);
if (window->priv->second_password != NULL) {
g_free (window->priv->second_password);
window->priv->second_password = NULL;
}
if ((password != NULL) && (password[0] != '\0'))
wind... | 0 |
387,745 | instanceOop InstanceKlass::register_finalizer(instanceOop i, TRAPS) {
if (TraceFinalizerRegistration) {
tty->print("Registered ");
i->print_value_on(tty);
tty->print_cr(" (" INTPTR_FORMAT ") as finalizable", p2i(i));
}
instanceHandle h_i(THREAD, i);
// Pass the handle as argument, JavaCalls::call ex... | 0 |
386,599 | void DL_Dxf::writeHatch2(DL_WriterA& dw,
const DL_HatchData& data,
const DL_Attributes& /*attrib*/) {
dw.dxfInt(75, 0); // odd parity
dw.dxfInt(76, 1); // pattern type
if (data.solid==false) {
dw.dxfReal(52, data.angle)... | 0 |
432,148 | SkipThenLimit extractSkipAndLimitForPushdown(Pipeline* pipeline) {
// If the disablePipelineOptimization failpoint is enabled, then do not attempt the limit and
// skip pushdown optimization.
if (MONGO_unlikely(disablePipelineOptimization.shouldFail())) {
return {boost::none, boost::none};
}
... | 0 |
400,411 | ins_down(
int startcol) // when TRUE move to Insstart.col
{
pos_T tpos;
linenr_T old_topline = curwin->w_topline;
#ifdef FEAT_DIFF
int old_topfill = curwin->w_topfill;
#endif
undisplay_dollar();
tpos = curwin->w_cursor;
if (cursor_down(1L, TRUE) == OK)
{
if (startcol)
coladvance... | 0 |
259,304 | static int cbcs_scheme_decrypt(MOVContext *c, MOVStreamContext *sc, AVEncryptionInfo *sample, uint8_t *input, int size)
{
int i, ret, rem_bytes;
uint8_t iv[16];
uint8_t *data;
if (!sc->cenc.aes_ctx) {
/* initialize the cipher */
sc->cenc.aes_ctx = av_aes_alloc();
if (!sc->cenc.a... | 0 |
206,942 | eval_string(char_u **arg, typval_T *rettv, int evaluate, int interpolate)
{
char_u *p;
char_u *end;
int extra = interpolate ? 1 : 0;
int off = interpolate ? 0 : 1;
int len;
// Find the end of the string, skipping backslashed characters.
for (p = *arg + off; *p != NUL && *p != '"'; MB_PTR... | 1 |
312,505 | qf_get_valid_size(exarg_T *eap)
{
qf_info_T *qi;
qf_list_T *qfl;
qfline_T *qfp;
int i, sz = 0;
int prev_fnum = 0;
if ((qi = qf_cmd_get_stack(eap, FALSE)) == NULL)
return 0;
qfl = qf_get_curlist(qi);
FOR_ALL_QFL_ITEMS(qfl, qfp, i)
{
if (qfp->qf_valid)
{
if (eap->cmdidx == ... | 0 |
417,085 | bool PlayerGeneric::isEnabled(PlayModeOptions option) const
{
ASSERT(option>=PlayModeOptionFirst && option<PlayModeOptionLast);
if (!player)
return options[option];
else
return player->isEnabled(option);
} | 0 |
310,188 | NCURSES_SP_NAME(has_mouse) (NCURSES_SP_DCL0)
{
return _nc_has_mouse(SP_PARM);
} | 0 |
508,782 | void end_read_record(READ_RECORD *info)
{
/* free cache if used */
free_cache(info);
if (info->table)
{
if (info->table->db_stat) // if opened
(void) info->table->file->extra(HA_EXTRA_NO_CACHE);
if (info->read_record != rr_quick) // otherwise quick_range does it
(void) info->table->file->ha_... | 0 |
225,062 | PQconnectPoll(PGconn *conn)
{
bool reset_connection_state_machine = false;
bool need_new_connection = false;
PGresult *res;
char sebuf[PG_STRERROR_R_BUFLEN];
int optval;
if (conn == NULL)
return PGRES_POLLING_FAILED;
/* Get the new data */
switch (conn->status)
{
/*
* We really shouldn't have... | 0 |
234,833 | static int btrfs_prepare_sprout(struct btrfs_fs_info *fs_info)
{
struct btrfs_fs_devices *fs_devices = fs_info->fs_devices;
struct btrfs_fs_devices *old_devices;
struct btrfs_fs_devices *seed_devices;
struct btrfs_super_block *disk_super = fs_info->super_copy;
struct btrfs_device *device;
u64 super_flags;
lockd... | 0 |
220,461 | static bool Run(OpKernelContext* ctx, const Tensor& input,
const Tensor& filter, int batch, int input_rows,
int input_cols, int in_depth, int filter_rows,
int filter_cols, int pad_rows, int pad_cols, int out_rows,
int out_cols, int out_depth, int... | 0 |
508,877 | List<Item>* st_select_lex::get_item_list()
{
return &item_list;
} | 0 |
253,524 | smb2_mand_lock(const unsigned int xid, struct cifsFileInfo *cfile, __u64 offset,
__u64 length, __u32 type, int lock, int unlock, bool wait)
{
if (unlock && !lock)
type = SMB2_LOCKFLAG_UNLOCK;
return SMB2_lock(xid, tlink_tcon(cfile->tlink),
cfile->fid.persistent_fid, cfile->fid.volatile_fid,
current-... | 0 |
359,547 | DEFUN (no_neighbor_allowas_in,
no_neighbor_allowas_in_cmd,
NO_NEIGHBOR_CMD2 "allowas-in",
NO_STR
NEIGHBOR_STR
NEIGHBOR_ADDR_STR2
"allow local ASN appears in aspath attribute\n")
{
int ret;
struct peer *peer;
peer = peer_and_group_lookup_vty (vty, argv[0]);
if (! peer)
... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.