input
stringlengths
31
235k
output
class label
2 classes
static void dissect_rtp_hext_rfc5215_twobytes ( tvbuff_t * parent_tvb , guint id_offset , guint8 id , tvbuff_t * tvb , packet_info * pinfo , proto_tree * rtp_hext_tree ) { proto_item * ti = NULL ; proto_tree * rtp_hext_rfc5285_tree = NULL ; guint ext_offset = 0 , start_ext_offset ; while ( ext_offset + 2 < tvb_leng...
0False
static uint get_table_structure ( char * table , char * db , char * table_type , char * ignore_flag ) { my_bool init = 0 , delayed , write_data , complete_insert ; my_ulonglong num_fields ; char * result_table , * opt_quoted_table ; const char * insert_option ; char name_buff [ NAME_LEN + 3 ] , table_buff [ NAME_L...
1True
static void gsm_a_dtap_cc_stat_init ( new_stat_tap_ui * new_stat , new_stat_tap_gui_init_cb gui_callback , void * gui_data ) { gsm_a_stat_init ( new_stat , gui_callback , gui_data , "GSM A-I/F DTAP Call Control Statistics" , gsm_a_dtap_msg_cc_strings ) ; }
0False
static void timeout_correct ( struct event_base * base , struct timeval * tv ) { struct event * * pev ; unsigned int size ; struct timeval off ; if ( use_monotonic ) return ; gettime ( base , tv ) ; if ( evutil_timercmp ( tv , & base -> event_tv , >= ) ) { base -> event_tv = * tv ; return ; } event_debug ( ( ...
0False
static size_t read_uncompressed_header ( VP9Decoder * pbi , struct vp9_read_bit_buffer * rb ) { VP9_COMMON * const cm = & pbi -> common ; size_t sz ; int i ; cm -> last_frame_type = cm -> frame_type ; if ( vp9_rb_read_literal ( rb , 2 ) != VP9_FRAME_MARKER ) vpx_internal_error ( & cm -> error , VPX_CODEC_UNSUP_BIT...
0False
static Dwarf_Unsigned dwarf_elf_object_access_get_section_count ( void * obj_in ) { dwarf_elf_object_access_internals_t * obj = ( dwarf_elf_object_access_internals_t * ) obj_in ; return obj -> section_count ; }
0False
static int vlc_decode_block ( MimicContext * ctx , int num_coeffs , int qscale ) { int16_t * block = ctx -> dct_block ; unsigned int pos ; ctx -> dsp . clear_block ( block ) ; block [ 0 ] = get_bits ( & ctx -> gb , 8 ) << 3 ; for ( pos = 1 ; pos < num_coeffs ; pos ++ ) { uint32_t vlc , num_bits ; int value ; ...
0False
static int dissect_h225_FeatureDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { # line 852 "./asn1/h225/h225.cnf" void * priv_data = actx -> private_data ; actx -> private_data = gef_ctx_alloc ( NULL , "FeatureDescriptor" ) ; offset = dissect_h22...
0False
static int connect_to_db ( char * host , char * user , char * passwd ) { char buff [ 20 + FN_REFLEN ] ; DBUG_ENTER ( "connect_to_db" ) ; verbose_msg ( "-- Connecting to %s...\n" , host ? host : "localhost" ) ; mysql_init ( & mysql_connection ) ; if ( opt_compress ) mysql_options ( & mysql_connection , MYSQL_OPT_CO...
0False
static int dissect_h245_T_h223AnnexADoubleFlag ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_T_h223AnnexADoubleFlag , T_h223AnnexADoubleFlag_choice , NULL ) ; return offset ; ...
0False
void crypto_policy_set_rtcp_default ( crypto_policy_t * p ) { p -> cipher_type = AES_ICM ; p -> cipher_key_len = 30 ; p -> auth_type = HMAC_SHA1 ; p -> auth_key_len = 20 ; p -> auth_tag_len = 10 ; p -> sec_serv = sec_serv_conf_and_auth ; }
0False
SplineChar * PSCharStringToSplines ( uint8 * type1 , int len , struct pscontext * context , struct pschars * subrs , struct pschars * gsubrs , const char * name ) { int is_type2 = context -> is_type2 ; real stack [ 50 ] ; int sp = 0 , v ; real transient [ 32 ] ; SplineChar * ret = SplineCharCreate ( 2 ) ; SplineP...
1True
static KeydbResourceType rt_from_file ( const char * filename , int * r_found , int * r_openpgp ) { u32 magic ; unsigned char verbuf [ 4 ] ; FILE * fp ; KeydbResourceType rt = KEYDB_RESOURCE_TYPE_NONE ; * r_found = * r_openpgp = 0 ; fp = fopen ( filename , "rb" ) ; if ( fp ) { * r_found = 1 ; if ( fread ( & ma...
0False
static void nonrd_pick_partition ( VP9_COMP * cpi , const TileInfo * const tile , TOKENEXTRA * * tp , int mi_row , int mi_col , BLOCK_SIZE bsize , int * rate , int64_t * dist , int do_recon , int64_t best_rd , PC_TREE * pc_tree ) { const SPEED_FEATURES * const sf = & cpi -> sf ; const VP9EncoderConfig * const oxcf = ...
1True
int xmlHashRemoveEntry ( xmlHashTablePtr table , const xmlChar * name , xmlHashDeallocator f ) { return ( xmlHashRemoveEntry3 ( table , name , NULL , NULL , f ) ) ; }
0False
static void exsltNodeSetFunction ( xmlXPathParserContextPtr ctxt , int nargs ) { if ( nargs != 1 ) { xmlXPathSetArityError ( ctxt ) ; return ; } if ( xmlXPathStackIsNodeSet ( ctxt ) ) { xsltFunctionNodeSet ( ctxt , nargs ) ; return ; } else { xmlDocPtr fragment ; xsltTransformContextPtr tctxt = xsltXPathGetT...
1True
static void pk_transaction_install_signature ( PkTransaction * transaction , GVariant * params , GDBusMethodInvocation * context ) { gboolean ret ; const gchar * key_id ; const gchar * package_id ; PkSigTypeEnum sig_type ; g_autoptr ( GError ) error = NULL ; g_return_if_fail ( PK_IS_TRANSACTION ( transaction ) ) ...
0False
static cmsBool WriteMPECurve ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , void * Cargo , cmsUInt32Number n , cmsUInt32Number SizeOfTag ) { _cmsStageToneCurvesData * Curves = ( _cmsStageToneCurvesData * ) Cargo ; return WriteSegmentedCurve ( io , Curves -> TheCurves [ n ] ) ; cmsUNUSED_PARAMETER ( Si...
0False
static void super_block_yrd ( VP9_COMP * cpi , MACROBLOCK * x , int * rate , int64_t * distortion , int * skip , int64_t * psse , BLOCK_SIZE bs , int64_t txfm_cache [ TX_MODES ] , int64_t ref_best_rd ) { MACROBLOCKD * xd = & x -> e_mbd ; int64_t sse ; int64_t * ret_sse = psse ? psse : & sse ; assert ( bs == xd -> m...
0False
IN_PROC_BROWSER_TEST_F ( PrefsFunctionalTest , TestImageContentSettings ) { ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ; ui_test_utils : : NavigateToURL ( browser ( ) , embedded_test_server ( ) -> GetURL ( "/settings/image_page.html" ) ) ; bool result = false ; std : : string script = "for (i=0; i < doc...
0False
static int get_file_info ( const char * filename , OUT UpnpFileInfo * info ) { int code ; struct stat s ; FILE * fp ; int rc = 0 ; time_t aux_LastModified ; struct tm date ; char buffer [ ASCTIME_R_BUFFER_SIZE ] ; UpnpFileInfo_set_ContentType ( info , NULL ) ; code = stat ( filename , & s ) ; if ( code == - 1...
0False
static void dumpnames ( struct alltabs * at , SplineFont * sf , enum fontformat format ) { int i , j ; struct ttflangname dummy , * cur , * useng = NULL ; struct macname * mn ; struct other_names * on , * onn ; NamTab nt ; struct otfname * otfn ; struct otffeatname * fn ; memset ( & nt , 0 , sizeof ( nt ) ) ; ...
0False
static inline unsigned long realpath_cache_key ( const char * path , int path_len ) { register unsigned long h ; const char * e = path + path_len ; for ( h = 2166136261U ; path < e ; ) { h *= 16777619 ; h ^= * path ++ ; } return h ; }
0False
PHP_FUNCTION ( locale_get_display_script ) { get_icu_disp_value_src_php ( LOC_SCRIPT_TAG , INTERNAL_FUNCTION_PARAM_PASSTHRU ) ; }
0False
void do_chmod_file ( struct st_command * command ) { long mode = 0 ; int err_code ; static DYNAMIC_STRING ds_mode ; static DYNAMIC_STRING ds_file ; const struct command_arg chmod_file_args [ ] = { { "mode" , ARG_STRING , TRUE , & ds_mode , "Mode of file(octal) ex. 0660" } , { "filename" , ARG_STRING , TRUE , &...
0False
static int dissect_pvfs_meta_attr_dfiles ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) { guint32 dfile_count , i ; dfile_count = tvb_get_letohl ( tvb , offset ) ; proto_tree_add_uint ( tree , hf_pvfs_dfile_count , tvb , offset , 4 , dfile_count ) ; offset += 4 ; for ( i = 0 ; i < dfile...
0False
static inline guint32 gst_asf_demux_get_uint32 ( guint8 * * p_data , guint64 * p_size ) { guint32 ret ; g_assert ( * p_size >= 4 ) ; ret = GST_READ_UINT32_LE ( * p_data ) ; * p_data += sizeof ( guint32 ) ; * p_size -= sizeof ( guint32 ) ; return ret ; }
0False
static int archive_read_format_ar_bid ( struct archive_read * a , int best_bid ) { const void * h ; ( void ) best_bid ; if ( ( h = __archive_read_ahead ( a , 8 , NULL ) ) == NULL ) return ( - 1 ) ; if ( memcmp ( h , "!<arch>\n" , 8 ) == 0 ) { return ( 64 ) ; } return ( - 1 ) ; }
0False
static int try_shrink_lower ( MAIN_WINDOW_REC * window , int count ) { MAIN_WINDOW_REC * shrink_win ; shrink_win = mainwindows_find_lower ( window ) ; if ( shrink_win != NULL ) { int ok ; GSList * shrink_list , * tmp ; MAIN_WINDOW_REC * win ; ok = TRUE ; shrink_list = mainwindows_get_line ( shrink_win ) ; for ...
0False
QEMU_BUILD_BUG_ON ( XSAVE_BYTE_OFFSET ( word_offset ) != offsetof ( X86XSaveArea , field ) ) ASSERT_OFFSET ( XSAVE_FCW_FSW , legacy . fcw ) ; ASSERT_OFFSET ( XSAVE_FTW_FOP , legacy . ftw ) ; ASSERT_OFFSET ( XSAVE_CWD_RIP , legacy . fpip ) ; ASSERT_OFFSET ( XSAVE_CWD_RDP , legacy . fpdp ) ; ASSERT_OFFSET ( XSAVE_MXC...
0False
static void read_bundle ( GetBitContext * gb , BinkContext * c , int bundle_num ) { int i ; if ( bundle_num == BINK_SRC_COLORS ) { for ( i = 0 ; i < 16 ; i ++ ) read_tree ( gb , & c -> col_high [ i ] ) ; c -> col_lastval = 0 ; } if ( bundle_num != BINK_SRC_INTRA_DC && bundle_num != BINK_SRC_INTER_DC ) read_tree...
0False
static bool pickoneauth ( struct auth * pick ) { bool picked ; unsigned long avail = pick -> avail & pick -> want ; picked = TRUE ; if ( avail & CURLAUTH_NEGOTIATE ) pick -> picked = CURLAUTH_NEGOTIATE ; else if ( avail & CURLAUTH_DIGEST ) pick -> picked = CURLAUTH_DIGEST ; else if ( avail & CURLAUTH_NTLM ) pick ...
0False
int vp9_get_qindex ( const struct segmentation * seg , int segment_id , int base_qindex ) { if ( vp9_segfeature_active ( seg , segment_id , SEG_LVL_ALT_Q ) ) { const int data = vp9_get_segdata ( seg , segment_id , SEG_LVL_ALT_Q ) ; const int seg_qindex = seg -> abs_delta == SEGMENT_ABSDATA ? data : base_qindex + dat...
0False
mbfl_string * mbfl_buffer_converter_feed_result ( mbfl_buffer_converter * convd , mbfl_string * string , mbfl_string * result ) { if ( convd == NULL || string == NULL || result == NULL ) { return NULL ; } mbfl_buffer_converter_feed ( convd , string ) ; if ( convd -> filter1 != NULL ) { mbfl_convert_filter_flush (...
1True
static spl_filesystem_object * spl_filesystem_object_create_type ( int ht , spl_filesystem_object * source , int type , zend_class_entry * ce , zval * return_value TSRMLS_DC ) { spl_filesystem_object * intern ; zend_bool use_include_path = 0 ; zval * arg1 , * arg2 ; zend_error_handling error_handling ; zend_replac...
1True
static void Pass2Encode ( VP9_COMP * cpi , size_t * size , uint8_t * dest , unsigned int * frame_flags ) { cpi -> allow_encode_breakout = ENCODE_BREAKOUT_ENABLED ; vp9_rc_get_second_pass_params ( cpi ) ; encode_frame_to_data_rate ( cpi , size , dest , frame_flags ) ; vp9_twopass_postencode_update ( cpi ) ; }
1True
static int dvvideo_close ( AVCodecContext * c ) { DVVideoContext * s = c -> priv_data ; if ( s -> picture . data [ 0 ] ) c -> release_buffer ( c , & s -> picture ) ; return 0 ; }
1True
struct qemud_client_stream * remoteFindClientStream ( struct qemud_client * client , virStreamPtr st ) { struct qemud_client_stream * stream = client -> streams ; while ( stream ) { if ( stream -> st == st ) return stream ; stream = stream -> next ; } return NULL ; }
0False
static void init_error_log_mutex ( ) { mysql_mutex_init ( key_LOCK_error_log , & LOCK_error_log , MY_MUTEX_INIT_FAST ) ; }
0False
static gint dissect_sep ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , guint32 interface_id , guint32 adapter_id , guint32 chandle ) { proto_tree * sep_tree ; proto_item * sep_item ; guint i_sep = 1 ; guint media_type ; guint type ; guint seid ; guint in_use ; guint items ; guint32 ...
1True
static int dissect_pvfs2_mgmt_event_mon_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo _U_ ) { proto_tree_add_item ( tree , hf_pvfs_mgmt_perf_mon_request_event_count , tvb , offset , 4 , ENC_LITTLE_ENDIAN ) ; offset += 4 ; return offset ; }
0False
static guint16 de_tp_ue_test_loop_mode ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) { guint32 curr_offset ; guchar oct ; guint8 lb_setup_length , i , j ; guint16 value ; proto_tree * subtree ; curr_offset = offset ;...
0False
static int put_info ( const char * str , INFO_TYPE info_type , uint error , const char * sqlstate ) { FILE * file = ( info_type == INFO_ERROR ? stderr : stdout ) ; static int inited = 0 ; if ( status . batch ) { if ( info_type == INFO_ERROR ) { ( void ) fflush ( file ) ; fprintf ( file , "ERROR" ) ; if ( error )...
0False
static int dissect_pbb_tlvblock ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , guint offset , guint maxoffset , gint8 addrCount , guint tlvCat ) { guint16 tlvblockLength ; guint tlvblockEnd ; proto_tree * tlvblock_tree = NULL ; proto_tree * tlv_tree = NULL ; proto_tree * tlv_flags_tree = NULL ; prot...
0False
static int main_secondary_decompress_check ( main_file * file , uint8_t * input_buf , size_t input_size , size_t * nread ) { int ret ; usize_t i ; usize_t try_read = min ( input_size , XD3_ALLOCSIZE ) ; size_t check_nread = 0 ; uint8_t check_buf [ XD3_ALLOCSIZE ] ; const main_extcomp * decompressor = NULL ; if (...
0False
static int parse_CAggregSpec ( tvbuff_t * tvb , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) { proto_item * item ; proto_tree * tree ; va_list ap ; guint8 type ; guint32 ccAlias , idColumn ; const char * txt ; va_start ( ap , fmt ) ; txt = wmem_strdup_vprintf ( wmem_p...
0False
static void lsp2lpc ( int16_t * lpc ) { int f1 [ LPC_ORDER / 2 + 1 ] ; int f2 [ LPC_ORDER / 2 + 1 ] ; int i , j ; for ( j = 0 ; j < LPC_ORDER ; j ++ ) { int index = lpc [ j ] >> 7 ; int offset = lpc [ j ] & 0x7f ; int temp1 = cos_tab [ index ] << 16 ; int temp2 = ( cos_tab [ index + 1 ] - cos_tab [ index ] ) ...
0False
extern int name ( int , locale_t ) __THROW __exctype_l ( isalnum_l ) ; __exctype_l ( isalpha_l ) ; __exctype_l ( iscntrl_l ) ; __exctype_l ( isdigit_l ) ; __exctype_l ( islower_l ) ; __exctype_l ( isgraph_l ) ; __exctype_l ( isprint_l ) ; __exctype_l ( ispunct_l ) ; __exctype_l ( isspace_l ) ; __exctype_l ( is...
1True
static bool misc_enable_needed ( void * opaque ) { X86CPU * cpu = opaque ; CPUX86State * env = & cpu -> env ; return env -> msr_ia32_misc_enable != MSR_IA32_MISC_ENABLE_DEFAULT ; }
0False
void calcrdslopes ( jpc_enc_cblk_t * cblk ) { jpc_enc_pass_t * endpasses ; jpc_enc_pass_t * pass0 ; jpc_enc_pass_t * pass1 ; jpc_enc_pass_t * pass2 ; jpc_flt_t slope0 ; jpc_flt_t slope ; jpc_flt_t dd ; long dr ; endpasses = & cblk -> passes [ cblk -> numpasses ] ; pass2 = cblk -> passes ; slope0 = 0 ; while...
0False
static ulmbcs_byte_t FindLMBCSUniRange ( UChar uniChar ) { const struct _UniLMBCSGrpMap * pTable = UniLMBCSGrpMap ; while ( uniChar > pTable -> uniEndRange ) { pTable ++ ; } if ( uniChar >= pTable -> uniStartRange ) { return pTable -> GrpType ; } return ULMBCS_GRP_UNICODE ; }
0False
static int com_nowarnings ( String * buffer __attribute__ ( ( unused ) ) , char * line __attribute__ ( ( unused ) ) ) { show_warnings = 0 ; put_info ( "Show warnings disabled." , INFO_INFO ) ; return 0 ; }
0False
int quit ( ) { kadm5_ret_t retval ; if ( locked ) { retval = kadm5_unlock ( handle ) ; if ( retval ) { com_err ( "quit" , retval , _ ( "while unlocking locked database" ) ) ; return 1 ; } locked = 0 ; } kadm5_destroy ( handle ) ; if ( ccache_name != NULL ) { fprintf ( stderr , "\n\a\a\a%s" , _ ( "Administra...
0False
static void i_defer_frees ( gs_memory_t * mem , int defer ) { }
0False
static ssize_t usbdev_read ( struct file * file , char __user * buf , size_t nbytes , loff_t * ppos ) { struct usb_dev_state * ps = file -> private_data ; struct usb_device * dev = ps -> dev ; ssize_t ret = 0 ; unsigned len ; loff_t pos ; int i ; pos = * ppos ; usb_lock_device ( dev ) ; if ( ! connected ( ps )...
0False
static bool parse_otherName ( chunk_t * blob , int level0 , id_type_t * type ) { asn1_parser_t * parser ; chunk_t object ; int objectID ; int oid = OID_UNKNOWN ; bool success = FALSE ; parser = asn1_parser_create ( otherNameObjects , * blob ) ; parser -> set_top_level ( parser , level0 ) ; while ( parser -> ite...
0False
static void vga_draw_line8 ( VGACommonState * s1 , uint8_t * d , const uint8_t * s , int width ) { uint32_t * palette ; int x ; palette = s1 -> last_palette ; width >>= 3 ; for ( x = 0 ; x < width ; x ++ ) { ( ( uint32_t * ) d ) [ 0 ] = palette [ s [ 0 ] ] ; ( ( uint32_t * ) d ) [ 1 ] = palette [ s [ 1 ] ] ; ...
1True
static void dissect_zcl_appl_stats_log_queue_rsp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) { gint list_len ; proto_tree_add_item ( tree , hf_zbee_zcl_appl_stats_log_queue_size , tvb , * offset , 1 , ENC_NA ) ; * offset += 1 ; list_len = tvb_reported_length_remaining ( tvb , * offset ) ; if ( list_len...
0False
static int test_copy_to ( const char * from , const char * to ) { char buf [ TESTBUFSIZE ] ; int ret ; snprintf_func ( buf , TESTBUFSIZE , "cp -f %s %s" , from , to ) ; if ( ( ret = system ( buf ) ) != 0 ) { return XD3_INTERNAL ; } return 0 ; }
0False
int evdns_resolv_conf_parse ( int flags , const char * const filename ) { struct stat st ; int fd , n , r ; u8 * resolv ; char * start ; int err = 0 ; log ( EVDNS_LOG_DEBUG , "Parsing resolv.conf file %s" , filename ) ; fd = open ( filename , O_RDONLY ) ; if ( fd < 0 ) { evdns_resolv_set_defaults ( flags ) ; ...
0False
static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) { const uint8_t * buf = avpkt -> data ; int buf_size = avpkt -> size ; H264Context * h = avctx -> priv_data ; AVFrame * pict = data ; int buf_index = 0 ; Picture * out ; int i , out_idx ; int ret ; h -> flags ...
0False
static int nntp_date ( struct NntpServer * nserv , time_t * now ) { if ( nserv -> hasDATE ) { struct NntpData nntp_data ; char buf [ LONG_STRING ] ; struct tm tm ; memset ( & tm , 0 , sizeof ( tm ) ) ; nntp_data . nserv = nserv ; nntp_data . group = NULL ; mutt_str_strfcpy ( buf , "DATE\r\n" , sizeof ( buf ) ) ...
0False
static int dissect_h245_MultiplePayloadStreamCapability ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_sequence ( tvb , offset , actx , tree , hf_index , ett_h245_MultiplePayloadStreamCapability , MultiplePayloadStreamCapability_sequenc...
0False
static gpgme_error_t gpgsm_delete ( void * engine , gpgme_key_t key , int allow_secret ) { engine_gpgsm_t gpgsm = engine ; gpgme_error_t err ; char * fpr = key -> subkeys ? key -> subkeys -> fpr : NULL ; char * linep = fpr ; char * line ; int length = 8 ; if ( ! fpr ) return gpg_error ( GPG_ERR_INV_VALUE ) ; wh...
0False
int gdev_x_close ( gx_device_X * xdev ) { if ( xdev -> ghostview ) gdev_x_send_event ( xdev , xdev -> DONE ) ; if ( xdev -> vinfo ) { XFree ( ( char * ) xdev -> vinfo ) ; xdev -> vinfo = NULL ; } gdev_x_free_colors ( xdev ) ; if ( xdev -> cmap != DefaultColormapOfScreen ( xdev -> scr ) ) XFreeColormap ( xdev -> ...
0False
void kvm_put_apicbase ( X86CPU * cpu , uint64_t value ) { int ret ; ret = kvm_put_one_msr ( cpu , MSR_IA32_APICBASE , value ) ; assert ( ret == 1 ) ; }
0False
TEST_F ( TemplateURLParserTest , TestPostSuggestion ) { ParamFilterImpl filter ( std : : string ( ) , "Mozilla" ) ; ASSERT_NO_FATAL_FAILURE ( ParseFile ( "post_suggestion.xml" , & filter ) ) ; ASSERT_TRUE ( template_url_ ) ; EXPECT_EQ ( ASCIIToUTF16 ( "Yahoo" ) , template_url_ -> short_name ( ) ) ; EXPECT_TRUE ( t...
0False
static int sunrast_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) { const uint8_t * buf = avpkt -> data ; const uint8_t * buf_end = avpkt -> data + avpkt -> size ; AVFrame * const p = data ; unsigned int w , h , depth , type , maptype , maplength , stride , x , y , len , ...
0False
void nautilus_file_operations_extract_files ( GList * files , GFile * destination_directory , GtkWindow * parent_window , NautilusExtractCallback done_callback , gpointer done_callback_data ) { ExtractJob * extract_job ; g_autoptr ( GTask ) task = NULL ; extract_job = op_job_new ( ExtractJob , parent_window ) ; ext...
0False
static void fts_build_parse_content_type ( struct fts_mail_build_context * ctx , const struct message_header_line * hdr ) { struct rfc822_parser_context parser ; string_t * content_type ; if ( ctx -> content_type != NULL ) return ; rfc822_parser_init ( & parser , hdr -> full_value , hdr -> full_value_len , NULL ) ;...
0False
void vp9_set_rd_speed_thresholds ( VP9_COMP * cpi ) { int i ; RD_OPT * const rd = & cpi -> rd ; SPEED_FEATURES * const sf = & cpi -> sf ; for ( i = 0 ; i < MAX_MODES ; ++ i ) rd -> thresh_mult [ i ] = cpi -> oxcf . mode == BEST ? - 500 : 0 ; if ( sf -> adaptive_rd_thresh ) { rd -> thresh_mult [ THR_NEARESTMV ] ...
0False
proto_item * proto_tree_add_item ( proto_tree * tree , int hfindex , tvbuff_t * tvb , const gint start , gint length , const guint encoding ) { register header_field_info * hfinfo ; PROTO_REGISTRAR_GET_NTH ( hfindex , hfinfo ) ; return proto_tree_add_item_new ( tree , hfinfo , tvb , start , length , encoding ) ; }
0False
unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) { uint16_t fdata3 [ ( H + 1 ) * W ] ; uint8_t temp2 [ H * W ] ; var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 ,...
0False
static void test_left_join_view ( ) { MYSQL_STMT * stmt ; int rc , i ; const char * query = "select t1.a, v1.x from t1 left join v1 on (t1.a= v1.x); " ; myheader ( "test_left_join_view" ) ; rc = mysql_query ( mysql , "DROP TABLE IF EXISTS t1,v1" ) ; myquery ( rc ) ; rc = mysql_query ( mysql , "DROP VIEW IF EXIST...
0False
void var_set ( const char * var_name , const char * var_name_end , const char * var_val , const char * var_val_end ) { int digit , env_var = 0 ; VAR * v ; DBUG_ENTER ( "var_set" ) ; DBUG_PRINT ( "enter" , ( "var_name: '%.*s' = '%.*s' (length: %d)" , ( int ) ( var_name_end - var_name ) , var_name , ( int ) ( var_val...
0False
static inline char * w_newword ( size_t * actlen , size_t * maxlen ) { * actlen = * maxlen = 0 ; return NULL ; }
0False
static inline uint16_t cpu_to_be16 ( uint16_t v ) { return bswap16 ( v ) ; }
0False
int mime_parse_rfc822_date_fastcase ( const char * buf , int length , struct tm * tp ) { unsigned int three_char_wday , three_char_mon ; ink_assert ( length >= 29 ) ; ink_assert ( ! is_ws ( buf [ 0 ] ) ) ; ink_assert ( buf [ 3 ] == ',' ) ; tp -> tm_wday = - 1 ; three_char_wday = ( buf [ 0 ] << 16 ) | ( buf [ 1 ] ...
0False
static int in_bitmapped_pack ( struct object_list * roots ) { while ( roots ) { struct object * object = roots -> item ; roots = roots -> next ; if ( find_pack_entry_one ( object -> oid . hash , bitmap_git . pack ) > 0 ) return 1 ; } return 0 ; }
0False
static void rv34_mc_2mv ( RV34DecContext * r , const int block_type ) { int weighted = ! r -> rv30 && block_type != RV34_MB_B_BIDIR && r -> weight1 != 8192 ; rv34_mc ( r , block_type , 0 , 0 , 0 , 2 , 2 , 0 , r -> rv30 , weighted , r -> rdsp . put_pixels_tab , r -> rdsp . put_chroma_pixels_tab ) ; if ( ! weighted ) ...
0False
static inline void int8x8_fmul_int32 ( float * dst , const int8_t * src , int scale ) { float fscale = scale / 16.0 ; int i ; for ( i = 0 ; i < 8 ; i ++ ) dst [ i ] = src [ i ] * fscale ; }
0False
static int32_t u_sprintf_pad_and_justify ( void * context , const u_printf_spec_info * info , const UChar * result , int32_t resultLen ) { u_localized_print_string * output = ( u_localized_print_string * ) context ; int32_t written = 0 ; int32_t lengthOfResult = resultLen ; resultLen = ufmt_min ( resultLen , output...
0False
unsigned int vp9_sub_pixel_variance ## W ## x ## H ## _c ( const uint8_t * src , int src_stride , int xoffset , int yoffset , const uint8_t * dst , int dst_stride , unsigned int * sse ) { uint16_t fdata3 [ ( H + 1 ) * W ] ; uint8_t temp2 [ H * W ] ; var_filter_block2d_bil_first_pass ( src , fdata3 , src_stride , 1 ,...
0False
IN_PROC_BROWSER_TEST_F ( FullscreenControllerInteractiveTest , DISABLED_BrowserFullscreenExit ) { ASSERT_NO_FATAL_FAILURE ( ToggleBrowserFullscreen ( true ) ) ; AddTabAtIndex ( 0 , GURL ( url : : kAboutBlankURL ) , PAGE_TRANSITION_TYPED ) ; ASSERT_NO_FATAL_FAILURE ( ToggleTabFullscreen ( true ) ) ; ASSERT_NO_FATAL_...
0False
void vp9_sad ## m ## x ## n ## x4d_c ( const uint8_t * src , int src_stride , const uint8_t * const refs [ ] , int ref_stride , unsigned int * sads ) { int i ; for ( i = 0 ; i < 4 ; ++ i ) sads [ i ] = vp9_sad ## m ## x ## n ## _c ( src , src_stride , refs [ i ] , ref_stride ) ; \ } sadMxN ( 64 , 64 ) sadMxNxK ( ...
0False
static const gchar * get_register_name_from_address ( guint64 addr , gboolean * is_custom_register , u3v_conv_info_t * u3v_conv_info ) { const gchar * address_string = NULL ; guint32 offset_address ; if ( is_custom_register != NULL ) { * is_custom_register = FALSE ; } if ( addr < 0x10000 ) { offset_address = ( g...
0False
int ReadInt ( ArchiveHandle * AH ) { int res = 0 ; int bv , b ; int sign = 0 ; int bitShift = 0 ; if ( AH -> version > K_VERS_1_0 ) sign = ( * AH -> ReadBytePtr ) ( AH ) ; for ( b = 0 ; b < AH -> intSize ; b ++ ) { bv = ( * AH -> ReadBytePtr ) ( AH ) & 0xFF ; if ( bv != 0 ) res = res + ( bv << bitShift ) ; b...
0False
void vp8_set_speed_features ( VP8_COMP * cpi ) { SPEED_FEATURES * sf = & cpi -> sf ; int Mode = cpi -> compressor_speed ; int Speed = cpi -> Speed ; int i ; VP8_COMMON * cm = & cpi -> common ; int last_improved_quant = sf -> improved_quant ; int ref_frames ; for ( i = 0 ; i < MAX_MODES ; i ++ ) { cpi -> mode...
0False
static void * spl_ptr_llist_pop ( spl_ptr_llist * llist TSRMLS_DC ) { void * data ; spl_ptr_llist_element * tail = llist -> tail ; if ( tail == NULL ) { return NULL ; } if ( tail -> prev ) { tail -> prev -> next = NULL ; } else { llist -> head = NULL ; } llist -> tail = tail -> prev ; llist -> count -- ; ...
0False
static void dissect_zcl_appl_ctrl_signal_state_rsp ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) { static const int * flags [ ] = { & hf_zbee_zcl_appl_ctrl_rem_en_flags , & hf_zbee_zcl_appl_ctrl_status2 , NULL } ; proto_tree_add_item ( tree , hf_zbee_zcl_appl_ctrl_appl_status , tvb , * offset , 1 , ENC_NA...
0False
static int dissect_h225_ServiceControlDescriptor ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h225_ServiceControlDescriptor , ServiceControlDescriptor_choice , NULL ) ; return offs...
0False
int action_cancel_handler ( TSCont contp , TSEvent event , void * ) { if ( event == TS_EVENT_IMMEDIATE ) { SDK_RPRINT ( SDK_ActionCancel_test , "TSActionCancel" , "TestCase1" , TC_PASS , "ok" ) ; * SDK_ActionCancel_pstatus = REGRESSION_TEST_PASSED ; } else if ( event == TS_EVENT_TIMEOUT ) { SDK_RPRINT ( SDK_Actio...
0False
static gboolean nbd_accept ( QIOChannel * ioc , GIOCondition cond , gpointer opaque ) { QIOChannelSocket * cioc ; cioc = qio_channel_socket_accept ( QIO_CHANNEL_SOCKET ( ioc ) , NULL ) ; if ( ! cioc ) { return TRUE ; } if ( state >= TERMINATE ) { object_unref ( OBJECT ( cioc ) ) ; return TRUE ; } nb_fds ++ ; ...
0False
int uwsgi_php_request ( struct wsgi_request * wsgi_req ) { char real_filename [ PATH_MAX + 1 ] ; char * path_info = NULL ; size_t real_filename_len = 0 ; struct stat php_stat ; char * filename = NULL ; int force_empty_script_name = 0 ; zend_file_handle file_handle ; # ifdef ZTS TSRMLS_FETCH ( ) ; # endif SG ( ...
0False
static int user_cert_trusted_ca ( struct ssh * ssh , struct passwd * pw , struct sshkey * key , struct sshauthopt * * authoptsp ) { char * ca_fp , * principals_file = NULL ; const char * reason ; struct sshauthopt * principals_opts = NULL , * cert_opts = NULL ; struct sshauthopt * final_opts = NULL ; int r , ret =...
0False
static void qemu_tcg_init_vcpu ( CPUState * cpu ) { if ( ! tcg_cpu_thread ) { cpu -> thread = g_malloc0 ( sizeof ( QemuThread ) ) ; cpu -> halt_cond = g_malloc0 ( sizeof ( QemuCond ) ) ; qemu_cond_init ( cpu -> halt_cond ) ; tcg_halt_cond = cpu -> halt_cond ; qemu_thread_create ( cpu -> thread , qemu_tcg_cpu_thre...
0False
static void relocate_doit ( void * a ) { struct relocate_args * args = ( struct relocate_args * ) a ; _dl_relocate_object ( args -> l , args -> l -> l_scope , args -> reloc_mode , 0 ) ; }
0False
IN_PROC_BROWSER_TEST_F ( BookmarkBubbleSignInDelegateTest , OnSignInLinkClicked ) { ReplaceBlank ( browser ( ) ) ; int starting_tab_count = browser ( ) -> tab_strip_model ( ) -> count ( ) ; scoped_ptr < BookmarkBubbleDelegate > delegate ; delegate . reset ( new BookmarkBubbleSignInDelegate ( browser ( ) ) ) ; dele...
0False
int evdns_server_request_respond ( struct evdns_server_request * _req , int err ) { struct server_request * req = TO_SERVER_REQUEST ( _req ) ; struct evdns_server_port * port = req -> port ; int r ; if ( ! req -> response ) { if ( ( r = evdns_server_request_format_response ( req , err ) ) < 0 ) return r ; } r = ...
0False
static int matroska_aac_profile ( char * codec_id ) { static const char * const aac_profiles [ ] = { "MAIN" , "LC" , "SSR" } ; int profile ; for ( profile = 0 ; profile < FF_ARRAY_ELEMS ( aac_profiles ) ; profile ++ ) if ( strstr ( codec_id , aac_profiles [ profile ] ) ) break ; return profile + 1 ; }
0False