input stringlengths 31 235k | output class label 2
classes |
|---|---|
Oid getBaseType ( Oid typid ) {
int32 typmod = - 1 ;
return getBaseTypeAndTypmod ( typid , & typmod ) ;
} | 0False |
TEST_F ( SyncBookmarkDataTypeControllerTest , StartFirstRun ) {
CreateBookmarkModel ( LOAD_MODEL ) ;
SetStartExpectations ( ) ;
SetAssociateExpectations ( ) ;
EXPECT_CALL ( * model_associator_ , SyncModelHasUserCreatedNodes ( _ ) ) . WillRepeatedly ( DoAll ( SetArgumentPointee < 0 > ( false ) , Return ( true ) ) ) ... | 0False |
static xmlLinkPtr xmlListLowerSearch ( xmlListPtr l , void * data ) {
xmlLinkPtr lk ;
if ( l == NULL ) return ( NULL ) ;
for ( lk = l -> sentinel -> next ;
lk != l -> sentinel && l -> linkCompare ( lk -> data , data ) < 0 ;
lk = lk -> next ) ;
return lk ;
} | 1True |
static const char * c_escape_str ( AVBPrint * dst , const char * src , const char sep , void * log_ctx ) {
const char * p ;
for ( p = src ;
* p ;
p ++ ) {
switch ( * p ) {
case '\b' : av_bprintf ( dst , "%s" , "\\b" ) ;
break ;
case '\f' : av_bprintf ( dst , "%s" , "\\f" ) ;
break ;
case '\n' : av_bprintf ( d... | 0False |
static int64_t le4 ( const unsigned char * p ) {
return ( ( p [ 0 ] << 16 ) + ( ( ( int64_t ) p [ 1 ] ) << 24 ) + ( p [ 2 ] << 0 ) + ( p [ 3 ] << 8 ) ) ;
} | 0False |
static bool MakeTempFile ( const base : : FilePath & dir , const base : : FilePath & file_name , base : : FilePath * full_path ) {
* full_path = dir . Append ( file_name ) ;
return base : : WriteFile ( * full_path , "" , 0 ) == 0 ;
} | 0False |
static void interpolate ( float * out , float v1 , float v2 , int size ) {
int i ;
float step = ( v1 - v2 ) / ( size + 1 ) ;
for ( i = 0 ;
i < size ;
i ++ ) {
v2 += step ;
out [ i ] = v2 ;
}
} | 0False |
static char * _catkey ( char * buffer , int32_t set_num , int32_t msg_num ) {
int32_t i = 0 ;
i = T_CString_integerToString ( buffer , set_num , 10 ) ;
buffer [ i ++ ] = SEPARATOR ;
T_CString_integerToString ( buffer + i , msg_num , 10 ) ;
return buffer ;
} | 0False |
static int dissect_h245_IV16 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 16 , 16 , FALSE , NULL ) ;
return offset ;
} | 0False |
static void update_offset_hash_table_from_kb ( OffsetHashTable tbl , KBNODE node , off_t off ) {
for ( ;
node ;
node = node -> next ) {
if ( node -> pkt -> pkttype == PKT_PUBLIC_KEY || node -> pkt -> pkttype == PKT_PUBLIC_SUBKEY ) {
u32 aki [ 2 ] ;
keyid_from_pk ( node -> pkt -> pkt . public_key , aki ) ;
update... | 0False |
static void _UTF7Reset ( UConverter * cnv , UConverterResetChoice choice ) {
if ( choice <= UCNV_RESET_TO_UNICODE ) {
cnv -> toUnicodeStatus = 0x1000000 ;
cnv -> toULength = 0 ;
}
if ( choice != UCNV_RESET_TO_UNICODE ) {
cnv -> fromUnicodeStatus = ( cnv -> fromUnicodeStatus & 0xf0000000 ) | 0x1000000 ;
}
} | 1True |
static void vdpau_h264_set_rf ( VdpReferenceFrameH264 * rf , Picture * pic , int pic_structure ) {
VdpVideoSurface surface = ff_vdpau_get_surface_id ( pic ) ;
if ( pic_structure == 0 ) pic_structure = pic -> reference ;
rf -> surface = surface ;
rf -> is_long_term = pic -> reference && pic -> long_ref ;
rf -> top_... | 0False |
SPL_METHOD ( DirectoryIterator , key ) {
spl_filesystem_object * intern = ( spl_filesystem_object * ) zend_object_store_get_object ( getThis ( ) TSRMLS_CC ) ;
if ( zend_parse_parameters_none ( ) == FAILURE ) {
return ;
}
if ( intern -> u . dir . dirp ) {
RETURN_LONG ( intern -> u . dir . index ) ;
}
else {
RET... | 1True |
static FILE * checkdupstoredtable ( SplineFont * sf , uint32 tag , int * len , struct alltabs * all , int me ) {
int i ;
struct ttf_table * tab = SFFindTable ( sf , tag ) , * test ;
if ( tab == NULL ) {
* len = 0 ;
return ( NULL ) ;
}
for ( i = 0 ;
i < me ;
++ i ) {
test = SFFindTable ( all [ i ] . sf , tag )... | 0False |
int compare_key_tok_id ( const void * a1 , const void * a2 ) {
const struct key_tok * p1 = a1 ;
const struct key_tok * p2 = a2 ;
if ( p1 -> token == p2 -> token ) return 0 ;
if ( p1 -> token < p2 -> token ) return - 1 ;
else return 1 ;
} | 0False |
void vp9_reset_segment_features ( struct segmentation * seg ) {
seg -> enabled = 0 ;
seg -> update_map = 0 ;
seg -> update_data = 0 ;
vpx_memset ( seg -> tree_probs , 255 , sizeof ( seg -> tree_probs ) ) ;
vp9_clearall_segfeatures ( seg ) ;
} | 0False |
static void sig_window_print_info ( WINDOW_REC * win ) {
GUI_WINDOW_REC * gui ;
gui = WINDOW_GUI ( win ) ;
if ( gui -> use_scroll ) {
printformat_window ( win , MSGLEVEL_CLIENTCRAP , TXT_WINDOW_INFO_SCROLL , gui -> scroll ? "yes" : "no" ) ;
}
if ( WINDOW_MAIN ( win ) -> sticky_windows ) windows_print_sticky ( win... | 0False |
static bool tsc_adjust_needed ( void * opaque ) {
X86CPU * cpu = opaque ;
CPUX86State * env = & cpu -> env ;
return env -> tsc_adjust != 0 ;
} | 0False |
static void decode_ppc ( TwinContext * tctx , int period_coef , const float * shape , float ppc_gain , float * speech ) {
const ModeTab * mtab = tctx -> mtab ;
int isampf = tctx -> avctx -> sample_rate / 1000 ;
int ibps = tctx -> avctx -> bit_rate / ( 1000 * tctx -> avctx -> channels ) ;
int min_period = ROUNDED_DI... | 0False |
png_uint_32 PNGAPI png_permit_mng_features ( png_structp png_ptr , png_uint_32 mng_features ) {
png_debug ( 1 , "in png_permit_mng_features" ) ;
if ( png_ptr == NULL ) return ( png_uint_32 ) 0 ;
png_ptr -> mng_features_permitted = ( png_byte ) ( mng_features & PNG_ALL_MNG_FEATURES ) ;
return ( png_uint_32 ) png_ptr... | 0False |
Node * make_and_qual ( Node * qual1 , Node * qual2 ) {
if ( qual1 == NULL ) return qual2 ;
if ( qual2 == NULL ) return qual1 ;
return ( Node * ) make_andclause ( list_make2 ( qual1 , qual2 ) ) ;
} | 0False |
kadm5_ret_t kadm5_get_principal_keys ( void * server_handle , krb5_principal principal , krb5_keyblock * * keyblocks , int * n_keys ) {
krb5_db_entry * kdb ;
osa_princ_ent_rec adb ;
kadm5_ret_t ret ;
kadm5_server_handle_t handle = server_handle ;
if ( keyblocks ) * keyblocks = NULL ;
CHECK_HANDLE ( server_handle ... | 0False |
static int __attribute_noinline__ link_exists2_p ( const char * dir , size_t dirlen , const char * fname , glob_t * pglob # ifndef _LIBC , int flags # endif ) {
size_t fnamelen = strlen ( fname ) ;
char * fullname = ( char * ) __alloca ( dirlen + 1 + fnamelen + 1 ) ;
struct stat st ;
# ifndef _LIBC struct_stat64 st... | 0False |
void vp9_cyclic_refresh_setup ( VP9_COMP * const cpi ) {
VP9_COMMON * const cm = & cpi -> common ;
const RATE_CONTROL * const rc = & cpi -> rc ;
CYCLIC_REFRESH * const cr = cpi -> cyclic_refresh ;
struct segmentation * const seg = & cm -> seg ;
unsigned char * const seg_map = cpi -> segmentation_map ;
const int a... | 0False |
static void decode_band_structure ( GetBitContext * gbc , int blk , int eac3 , int ecpl , int start_subband , int end_subband , const uint8_t * default_band_struct , int * num_bands , uint8_t * band_sizes ) {
int subbnd , bnd , n_subbands , n_bands = 0 ;
uint8_t bnd_sz [ 22 ] ;
uint8_t coded_band_struct [ 22 ] ;
co... | 0False |
void vp9_rc_postencode_update_drop_frame ( VP9_COMP * cpi ) {
update_buffer_level ( cpi , 0 ) ;
cpi -> common . last_frame_type = cpi -> common . frame_type ;
cpi -> rc . frames_since_key ++ ;
cpi -> rc . frames_to_key -- ;
} | 0False |
static int find_odc_header ( struct archive_read * a ) {
const void * h ;
const char * p , * q ;
size_t skip , skipped = 0 ;
ssize_t bytes ;
for ( ;
;
) {
h = __archive_read_ahead ( a , odc_header_size , & bytes ) ;
if ( h == NULL ) return ( ARCHIVE_FATAL ) ;
p = h ;
q = p + bytes ;
if ( memcmp ( "070707" ,... | 0False |
void hmp_hostfwd_add ( Monitor * mon , const QDict * qdict ) {
const char * redir_str ;
SlirpState * s ;
const char * arg1 = qdict_get_str ( qdict , "arg1" ) ;
const char * arg2 = qdict_get_try_str ( qdict , "arg2" ) ;
const char * arg3 = qdict_get_try_str ( qdict , "arg3" ) ;
if ( arg2 ) {
s = slirp_lookup ( mo... | 0False |
static gint dissect_ac_if_input_terminal ( tvbuff_t * tvb , gint offset , packet_info * pinfo _U_ , proto_tree * tree , usb_conv_info_t * usb_conv_info _U_ ) {
gint offset_start ;
offset_start = offset ;
proto_tree_add_item ( tree , hf_ac_if_input_terminalid , tvb , offset , 1 , ENC_LITTLE_ENDIAN ) ;
offset += 1 ;
... | 0False |
static void e1000e_set_fcrth ( E1000ECore * core , int index , uint32_t val ) {
core -> mac [ FCRTH ] = val & 0xFFF8 ;
} | 0False |
void SortTocFromFile ( Archive * AHX ) {
ArchiveHandle * AH = ( ArchiveHandle * ) AHX ;
RestoreOptions * ropt = AH -> public . ropt ;
FILE * fh ;
char buf [ 100 ] ;
bool incomplete_line ;
ropt -> idWanted = ( bool * ) pg_malloc ( sizeof ( bool ) * AH -> maxDumpId ) ;
memset ( ropt -> idWanted , 0 , sizeof ( bool... | 0False |
static vpx_codec_err_t ctrl_use_reference ( vpx_codec_alg_priv_t * ctx , va_list args ) {
const int reference_flag = va_arg ( args , int ) ;
vp9_use_as_reference ( ctx -> cpi , reference_flag ) ;
return VPX_CODEC_OK ;
} | 0False |
static inline int handle_cpu_signal ( uintptr_t pc , unsigned long address , int is_write , sigset_t * old_set , void * puc ) {
int ret ;
# if defined ( DEBUG_SIGNAL ) qemu_printf ( "qemu: SIGSEGV pc=0x%08lx address=%08lx w=%d oldset=0x%08lx\n" , pc , address , is_write , * ( unsigned long * ) old_set ) ;
# endif if... | 1True |
static int dissect_h225_BOOLEAN ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_boolean ( tvb , offset , actx , tree , hf_index , NULL ) ;
return offset ;
} | 0False |
void vp9_init_second_pass_spatial_svc ( VP9_COMP * cpi ) {
SVC * const svc = & cpi -> svc ;
int i ;
for ( i = 0 ;
i < svc -> number_spatial_layers ;
++ i ) {
TWO_PASS * const twopass = & svc -> layer_context [ i ] . twopass ;
svc -> spatial_layer_id = i ;
vp9_init_second_pass ( cpi ) ;
twopass -> total_stats .... | 0False |
static const char * rsvp_host_get_filter_type ( hostlist_talker_t * host _U_ , conv_filter_type_e filter ) {
if ( ( filter == CONV_FT_ANY_ADDRESS ) && ( host -> myaddress . type == AT_IPv4 ) ) return "ip.addr" ;
return CONV_FILTER_INVALID ;
} | 0False |
static void aacsbr_func_ptr_init ( AACSBRContext * c ) {
c -> sbr_lf_gen = sbr_lf_gen ;
c -> sbr_hf_assemble = sbr_hf_assemble ;
c -> sbr_x_gen = sbr_x_gen ;
c -> sbr_hf_inverse_filter = sbr_hf_inverse_filter ;
if ( ARCH_MIPS ) ff_aacsbr_func_ptr_init_mips ( c ) ;
} | 1True |
static void SvcEncode ( VP9_COMP * cpi , size_t * size , uint8_t * dest , unsigned int * frame_flags ) {
vp9_rc_get_svc_params ( cpi ) ;
encode_frame_to_data_rate ( cpi , size , dest , frame_flags ) ;
} | 0False |
static int dump_all_tablespaces ( ) {
return dump_tablespaces ( NULL ) ;
} | 0False |
int vp8_denoiser_filter_c ( unsigned char * mc_running_avg_y , int mc_avg_y_stride , unsigned char * running_avg_y , int avg_y_stride , unsigned char * sig , int sig_stride , unsigned int motion_magnitude , int increase_denoising ) {
unsigned char * running_avg_y_start = running_avg_y ;
unsigned char * sig_start = si... | 0False |
struct event_base * event_init ( void ) {
struct event_base * base = event_base_new ( ) ;
if ( base != NULL ) current_base = base ;
return ( base ) ;
} | 0False |
static guint32 dissect_netb_receive_continue ( tvbuff_t * tvb , packet_info * pinfo _U_ , int offset , proto_tree * tree ) {
nb_xmit_corrl ( tvb , offset , tree ) ;
nb_remote_session ( tvb , offset , tree ) ;
nb_local_session ( tvb , offset , tree ) ;
return 0 ;
} | 0False |
static void lsf2lsp_3 ( AMRContext * p ) {
const uint16_t * lsf_param = p -> frame . lsf ;
int16_t lsf_r [ LP_FILTER_ORDER ] ;
float lsf_q [ LP_FILTER_ORDER ] ;
const int16_t * lsf_quantizer ;
int i , j ;
lsf_quantizer = ( p -> cur_frame_mode == MODE_7k95 ? lsf_3_1_MODE_7k95 : lsf_3_1 ) [ lsf_param [ 0 ] ] ;
mem... | 0False |
static ASN1_STRING * obj_to_asn1derstr ( VALUE obj ) {
ASN1_STRING * a1str ;
VALUE str ;
str = ossl_to_der ( obj ) ;
if ( ! ( a1str = ASN1_STRING_new ( ) ) ) ossl_raise ( eASN1Error , NULL ) ;
ASN1_STRING_set ( a1str , RSTRING_PTR ( str ) , RSTRING_LENINT ( str ) ) ;
return a1str ;
} | 0False |
static void pdf_set_shade ( fz_context * ctx , pdf_run_processor * pr , int what , fz_shade * shade ) {
pdf_gstate * gs ;
pdf_material * mat ;
gs = pdf_flush_text ( ctx , pr ) ;
mat = what == PDF_FILL ? & gs -> fill : & gs -> stroke ;
fz_drop_shade ( ctx , mat -> shade ) ;
mat -> kind = PDF_MAT_SHADE ;
mat -> sh... | 0False |
static void _HZOpen ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * errorCode ) {
UConverter * gbConverter ;
if ( pArgs -> onlyTestIsLoadable ) {
ucnv_canCreateConverter ( "GBK" , errorCode ) ;
return ;
}
gbConverter = ucnv_open ( "GBK" , errorCode ) ;
if ( U_FAILURE ( * errorCode ) ) {
return ;
... | 1True |
static int dissect_cipsafety ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) {
proto_item * ti ;
proto_tree * safety_tree ;
ti = proto_tree_add_item ( tree , proto_cipsafety , tvb , 0 , - 1 , ENC_NA ) ;
safety_tree = proto_item_add_subtree ( ti , ett_cip_safety ) ;
dissect_cip_safety... | 0False |
void vp9_remove_common ( VP9_COMMON * cm ) {
vp9_free_ref_frame_buffers ( cm ) ;
vp9_free_context_buffers ( cm ) ;
vp9_free_internal_frame_buffers ( & cm -> int_frame_buffers ) ;
} | 0False |
TEST_F ( ExtensionWelcomeNotificationTest , DismissWelcomeNotification ) {
StartPreferenceSyncing ( ) ;
EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissed ) ) ;
EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeNotificationDismissedLocal ) ) ;
EXPECT_FALSE ( GetBooleanPref ( prefs : : kWelcomeN... | 0False |
static int encode_slices ( VC2EncContext * s ) {
uint8_t * buf ;
int slice_x , slice_y , skip = 0 ;
SliceArgs * enc_args = s -> slice_args ;
avpriv_align_put_bits ( & s -> pb ) ;
flush_put_bits ( & s -> pb ) ;
buf = put_bits_ptr ( & s -> pb ) ;
for ( slice_y = 0 ;
slice_y < s -> num_y ;
slice_y ++ ) {
for ( s... | 0False |
int i2d_ ## name ( const type * a , unsigned char * * out ) ;
DECLARE_ASN1_ITEM ( name ) # define DECLARE_ASN1_NDEF_FUNCTION ( name ) int i2d_ ## name ## _NDEF ( name * a , unsigned char * * out ) ;
# define DECLARE_ASN1_FUNCTIONS_const ( name ) DECLARE_ASN1_ALLOC_FUNCTIONS ( name ) DECLARE_ASN1_ENCODE_FUNCTIONS_cons... | 0False |
static int dissect_h225_RasUsageInfoTypes ( 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_h225_RasUsageInfoTypes , RasUsageInfoTypes_sequence ) ;
return offset ;
} | 0False |
struct st_replace_regex * init_replace_regex ( char * expr ) {
struct st_replace_regex * res ;
char * buf , * expr_end ;
char * p ;
char * buf_p ;
uint expr_len = strlen ( expr ) ;
char last_c = 0 ;
struct st_regex reg ;
res = ( struct st_replace_regex * ) my_malloc ( sizeof ( * res ) + expr_len , MYF ( MY_FAE ... | 0False |
static int decode_packet ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) {
WMAProDecodeCtx * s = avctx -> priv_data ;
GetBitContext * gb = & s -> pgb ;
const uint8_t * buf = avpkt -> data ;
int buf_size = avpkt -> size ;
int num_bits_prev_frame ;
int packet_sequence_number ;
* g... | 0False |
void * xmlListReverseSearch ( xmlListPtr l , void * data ) {
xmlLinkPtr lk ;
if ( l == NULL ) return ( NULL ) ;
lk = xmlListLinkReverseSearch ( l , data ) ;
if ( lk ) return ( lk -> data ) ;
return NULL ;
} | 1True |
static int dissect_h245_Cmd_aal1 ( 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_Cmd_aal1 , Cmd_aal1_sequence ) ;
return offset ;
} | 0False |
static int roq_encode_init ( AVCodecContext * avctx ) {
RoqContext * enc = avctx -> priv_data ;
av_lfg_init ( & enc -> randctx , 1 ) ;
enc -> framesSinceKeyframe = 0 ;
if ( ( avctx -> width & 0xf ) || ( avctx -> height & 0xf ) ) {
av_log ( avctx , AV_LOG_ERROR , "Dimensions must be divisible by 16\n" ) ;
return -... | 0False |
static gboolean should_get_directory_count_now ( NautilusFile * file ) {
return lacks_directory_count ( file ) && ! file -> details -> loading_directory ;
} | 0False |
static void decApplyRound ( decNumber * dn , decContext * set , Int residue , uInt * status ) {
Int bump ;
if ( residue == 0 ) return ;
bump = 0 ;
switch ( set -> round ) {
case DEC_ROUND_05UP : {
Int lsd5 = * dn -> lsu % 5 ;
if ( residue < 0 && lsd5 != 1 ) bump = - 1 ;
else if ( residue > 0 && lsd5 == 0 ) bump... | 0False |
static gs_memory_type_ptr_t i_object_type ( const gs_memory_t * mem , const void * obj ) {
return ( ( const obj_header_t * ) obj - 1 ) -> o_type ;
} | 0False |
static int znoaccess ( i_ctx_t * i_ctx_p ) {
os_ptr op = osp ;
check_op ( 1 ) ;
if ( r_has_type ( op , t_dictionary ) ) {
ref * aop = dict_access_ref ( op ) ;
if ( ! r_has_attrs ( aop , a_write ) ) {
if ( ! r_has_attrs ( aop , a_read ) && ! r_has_attrs ( aop , a_execute ) ) {
return 0 ;
}
return_error ( gs_err... | 0False |
int file_is_raw ( struct VpxInputContext * input ) {
uint8_t buf [ 32 ] ;
int is_raw = 0 ;
vpx_codec_stream_info_t si ;
si . sz = sizeof ( si ) ;
if ( fread ( buf , 1 , 32 , input -> file ) == 32 ) {
int i ;
if ( mem_get_le32 ( buf ) < 256 * 1024 * 1024 ) {
for ( i = 0 ;
i < get_vpx_decoder_count ( ) ;
++ i )... | 0False |
static struct row_pairs * gtkui_connections_add ( struct conn_object * co , void * conn , struct row_pairs * * list ) {
GtkTreeIter iter ;
char flags [ 2 ] , src [ MAX_ASCII_ADDR_LEN ] , dst [ MAX_ASCII_ADDR_LEN ] ;
char proto [ 4 ] , status [ 8 ] , ccodes [ 8 ] ;
unsigned int src_port = 0 , dst_port = 0 , tx = 0 ,... | 0False |
static int mem_resize ( jas_stream_memobj_t * m , int bufsize ) {
unsigned char * buf ;
assert ( m -> buf_ ) ;
assert ( bufsize >= 0 ) ;
if ( ! ( buf = jas_realloc2 ( m -> buf_ , bufsize , sizeof ( unsigned char ) ) ) ) {
return - 1 ;
}
m -> buf_ = buf ;
m -> bufsize_ = bufsize ;
return 0 ;
} | 1True |
static void virtio_net_handle_rx ( VirtIODevice * vdev , VirtQueue * vq ) {
VirtIONet * n = to_virtio_net ( vdev ) ;
qemu_flush_queued_packets ( & n -> nic -> nc ) ;
qemu_notify_event ( ) ;
} | 0False |
int x_catch_free_colors ( Display * dpy , XErrorEvent * err ) {
if ( err -> request_code == X_FreeColors || x_error_handler . orighandler == x_catch_free_colors ) return 0 ;
return x_error_handler . orighandler ( dpy , err ) ;
} | 0False |
static void write_sync_code ( struct vp9_write_bit_buffer * wb ) {
vp9_wb_write_literal ( wb , VP9_SYNC_CODE_0 , 8 ) ;
vp9_wb_write_literal ( wb , VP9_SYNC_CODE_1 , 8 ) ;
vp9_wb_write_literal ( wb , VP9_SYNC_CODE_2 , 8 ) ;
} | 0False |
static bool e1000e_do_ps ( E1000ECore * core , struct NetRxPkt * pkt , size_t * hdr_len ) {
bool isip4 , isip6 , isudp , istcp ;
bool fragment ;
if ( ! e1000e_rx_use_ps_descriptor ( core ) ) {
return false ;
}
net_rx_pkt_get_protocols ( pkt , & isip4 , & isip6 , & isudp , & istcp ) ;
if ( isip4 ) {
fragment = n... | 0False |
void mime_scanner_append ( MIMEScanner * scanner , const char * data , int data_size ) {
int free_size = scanner -> m_line_size - scanner -> m_line_length ;
if ( data_size > free_size ) {
if ( scanner -> m_line_size == 0 ) {
scanner -> m_line_size = 128 ;
}
while ( free_size < data_size ) {
scanner -> m_line_siz... | 0False |
REGRESSION_TEST ( SDK_API_TSCache ) ( RegressionTest * test , int , int * pstatus ) {
* pstatus = REGRESSION_TEST_INPROGRESS ;
SDK_Cache_test = test ;
SDK_Cache_pstatus = pstatus ;
int is_ready = 0 ;
TSCacheReady ( & is_ready ) ;
if ( ! is_ready ) {
SDK_RPRINT ( test , "TSCacheReady" , "TestCase1" , TC_FAIL , "c... | 0False |
static int dissect_h245_OCTET_STRING_SIZE_1_256 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_octet_string ( tvb , offset , actx , tree , hf_index , 1 , 256 , FALSE , NULL ) ;
return offset ;
} | 0False |
Oid get_ordering_op_for_equality_op ( Oid opno , bool use_lhs_type ) {
Oid result = InvalidOid ;
CatCList * catlist ;
int i ;
catlist = SearchSysCacheList1 ( AMOPOPID , ObjectIdGetDatum ( opno ) ) ;
for ( i = 0 ;
i < catlist -> n_members ;
i ++ ) {
HeapTuple tuple = & catlist -> members [ i ] -> tuple ;
Form_p... | 0False |
void vp9_iht8x8_add ( TX_TYPE tx_type , const int16_t * input , uint8_t * dest , int stride , int eob ) {
if ( tx_type == DCT_DCT ) {
vp9_idct8x8_add ( input , dest , stride , eob ) ;
}
else {
vp9_iht8x8_64_add ( input , dest , stride , tx_type ) ;
}
} | 1True |
static void raw ( struct parse * pcmd , FILE * fp ) {
rawmode = 1 ;
( void ) fprintf ( fp , "Output set to raw\n" ) ;
} | 0False |
TSReturnCode TSUrlClone ( TSMBuffer dest_bufp , TSMBuffer src_bufp , TSMLoc src_url , TSMLoc * locp ) {
sdk_assert ( sdk_sanity_check_mbuffer ( src_bufp ) == TS_SUCCESS ) ;
sdk_assert ( sdk_sanity_check_mbuffer ( dest_bufp ) == TS_SUCCESS ) ;
sdk_assert ( sdk_sanity_check_url_handle ( src_url ) == TS_SUCCESS ) ;
sd... | 0False |
METHOD ( x509_t , create_subjectAltName_enumerator , enumerator_t * , private_x509_cert_t * this ) {
return this -> subjectAltNames -> create_enumerator ( this -> subjectAltNames ) ;
} | 0False |
static void deep_count_callback ( GObject * source_object , GAsyncResult * res , gpointer user_data ) {
DeepCountState * state ;
GFileEnumerator * enumerator ;
NautilusFile * file ;
state = user_data ;
if ( state -> directory == NULL ) {
deep_count_state_free ( state ) ;
return ;
}
file = state -> directory ->... | 0False |
static int parse_CInGroupSortAggregSets ( tvbuff_t * tvb , packet_info * pinfo , int offset , proto_tree * parent_tree , proto_tree * pad_tree , const char * fmt , ... ) {
guint32 cCount , i ;
proto_item * item ;
proto_tree * tree ;
const char * txt ;
va_list ap ;
va_start ( ap , fmt ) ;
txt = wmem_strdup_vprint... | 0False |
static int show_object_fast ( const unsigned char * sha1 , enum object_type type , int exclude , uint32_t name_hash , struct packed_git * found_pack , off_t found_offset ) {
fprintf ( stdout , "%s\n" , sha1_to_hex ( sha1 ) ) ;
return 1 ;
} | 0False |
void key_type_put ( struct key_type * ktype ) {
up_read ( & key_types_sem ) ;
} | 0False |
static void proto_tree_set_ether ( field_info * fi , const guint8 * value ) {
fvalue_set_bytes ( & fi -> value , value ) ;
} | 0False |
static void jas_image_cmpt_destroy ( jas_image_cmpt_t * cmpt ) {
if ( cmpt -> stream_ ) {
jas_stream_close ( cmpt -> stream_ ) ;
}
jas_free ( cmpt ) ;
} | 0False |
static gint handle_message_sasl ( tvbuff_t * tvb , packet_info * pinfo , gint offset , proto_tree * message_tree ) {
gint return_value = offset ;
const sasl_cmd * command ;
command = find_sasl_command ( tvb , offset ) ;
if ( command ) {
gint newline_offset = tvb_find_guint8 ( tvb , offset + command -> length , - 1... | 0False |
static int64_t rm_read_dts ( AVFormatContext * s , int stream_index , int64_t * ppos , int64_t pos_limit ) {
RMDemuxContext * rm = s -> priv_data ;
int64_t pos , dts ;
int stream_index2 , flags , len , h ;
pos = * ppos ;
if ( rm -> old_format ) return AV_NOPTS_VALUE ;
if ( avio_seek ( s -> pb , pos , SEEK_SET ) <... | 0False |
int jas_stream_isseekable ( jas_stream_t * stream ) {
if ( stream -> ops_ == & jas_stream_memops ) {
return 1 ;
}
else if ( stream -> ops_ == & jas_stream_fileops ) {
if ( ( * stream -> ops_ -> seek_ ) ( stream -> obj_ , 0 , SEEK_CUR ) < 0 ) {
return 0 ;
}
return 1 ;
}
else {
return 0 ;
}
} | 0False |
TEST_F ( ExternalProtocolHandlerTest , TestGetBlockStateDefaultBlock ) {
ExternalProtocolHandler : : BlockState block_state = ExternalProtocolHandler : : GetBlockState ( "afp" , profile_ . get ( ) ) ;
EXPECT_EQ ( ExternalProtocolHandler : : BLOCK , block_state ) ;
EXPECT_TRUE ( local_state_ -> GetDictionary ( prefs ... | 0False |
static void render_slice ( Vp3DecodeContext * s , int slice ) {
int x , y , i , j , fragment ;
int16_t * block = s -> block ;
int motion_x = 0xdeadbeef , motion_y = 0xdeadbeef ;
int motion_halfpel_index ;
uint8_t * motion_source ;
int plane , first_pixel ;
if ( slice >= s -> c_superblock_height ) return ;
for (... | 1True |
static int mp_decode_layer3 ( MPADecodeContext * s ) {
int nb_granules , main_data_begin ;
int gr , ch , blocksplit_flag , i , j , k , n , bits_pos ;
GranuleDef * g ;
int16_t exponents [ 576 ] ;
if ( s -> lsf ) {
main_data_begin = get_bits ( & s -> gb , 8 ) ;
skip_bits ( & s -> gb , s -> nb_channels ) ;
nb_gran... | 0False |
static void write_mb_modes_kf ( const VP9_COMMON * cm , const MACROBLOCKD * xd , MODE_INFO * * mi_8x8 , vp9_writer * w ) {
const struct segmentation * const seg = & cm -> seg ;
const MODE_INFO * const mi = mi_8x8 [ 0 ] ;
const MODE_INFO * const above_mi = mi_8x8 [ - xd -> mi_stride ] ;
const MODE_INFO * const left_... | 1True |
int xmlHashAddEntry ( xmlHashTablePtr table , const xmlChar * name , void * userdata ) {
return ( xmlHashAddEntry3 ( table , name , NULL , NULL , userdata ) ) ;
} | 0False |
static void loopfilter_frame ( VP9_COMP * cpi , VP9_COMMON * cm ) {
MACROBLOCKD * xd = & cpi -> mb . e_mbd ;
struct loopfilter * lf = & cm -> lf ;
if ( xd -> lossless ) {
lf -> filter_level = 0 ;
}
else {
struct vpx_usec_timer timer ;
vp9_clear_system_state ( ) ;
vpx_usec_timer_start ( & timer ) ;
vp9_pick_fi... | 0False |
static int dissect_h245_INTEGER_1_16 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 1U , 16U , NULL , FALSE ) ;
return offset ;
} | 0False |
static void process_rtp_payload ( tvbuff_t * newtvb , packet_info * pinfo , proto_tree * tree , proto_tree * rtp_tree , unsigned int payload_type ) {
struct _rtp_conversation_info * p_conv_data = NULL ;
gboolean found_match = FALSE ;
int payload_len ;
struct srtp_info * srtp_info ;
int offset = 0 ;
payload_len = ... | 1True |
static cmsBool WriteOffsetArray ( cmsIOHANDLER * io , _cmsDICarray * a , cmsUInt32Number Count , cmsUInt32Number Length ) {
cmsUInt32Number i ;
for ( i = 0 ;
i < Count ;
i ++ ) {
if ( ! WriteOneElem ( io , & a -> Name , i ) ) return FALSE ;
if ( ! WriteOneElem ( io , & a -> Value , i ) ) return FALSE ;
if ( Leng... | 0False |
TSReturnCode TSMimeHdrFieldClone ( TSMBuffer dest_bufp , TSMLoc dest_hdr , TSMBuffer src_bufp , TSMLoc src_hdr , TSMLoc src_field , TSMLoc * locp ) {
sdk_assert ( sdk_sanity_check_mbuffer ( dest_bufp ) == TS_SUCCESS ) ;
sdk_assert ( sdk_sanity_check_mbuffer ( src_bufp ) == TS_SUCCESS ) ;
sdk_assert ( ( sdk_sanity_ch... | 0False |
static int validate_raw_date ( const char * src , struct strbuf * result ) {
const char * orig_src = src ;
char * endp ;
unsigned long num ;
errno = 0 ;
num = strtoul ( src , & endp , 10 ) ;
if ( errno || endp == src || * endp != ' ' ) return - 1 ;
src = endp + 1 ;
if ( * src != '-' && * src != '+' ) return - 1... | 0False |
static int next_code ( struct archive_read_filter * self ) {
struct private_data * state = ( struct private_data * ) self -> data ;
int code , newcode ;
static int debug_buff [ 1024 ] ;
static unsigned debug_index ;
code = newcode = getbits ( self , state -> bits ) ;
if ( code < 0 ) return ( code ) ;
debug_buff ... | 0False |
static int sort_key_read ( MI_SORT_PARAM * sort_param , void * key ) {
int error ;
SORT_INFO * sort_info = sort_param -> sort_info ;
MI_INFO * info = sort_info -> info ;
DBUG_ENTER ( "sort_key_read" ) ;
if ( ( error = sort_get_next_record ( sort_param ) ) ) DBUG_RETURN ( error ) ;
if ( info -> state -> records ==... | 0False |
static ossl_inline STACK_OF ( t1 ) * sk_ ## t1 ## _new_reserve ( sk_ ## t1 ## _compfunc compare , int n ) {
return ( STACK_OF ( t1 ) * ) OPENSSL_sk_new_reserve ( ( OPENSSL_sk_compfunc ) compare , n ) ;
}
static ossl_inline int sk_ ## t1 ## _reserve ( STACK_OF ( t1 ) * sk , int n ) {
return OPENSSL_sk_reserve ( ( OP... | 0False |
static gboolean should_skip_readdir_error ( CommonJob * common , GFile * dir ) {
if ( common -> skip_readdir_error != NULL ) {
return g_hash_table_lookup ( common -> skip_readdir_error , dir ) != NULL ;
}
return FALSE ;
} | 0False |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 16