hash
int64
-9,197,960,073,880,366,000
9,199,363,627B
project
stringclasses
2 values
size
int64
2
5.68k
label
int64
0
1
functionSource
stringlengths
31
235k
8,461,782,184,979,846,000
chrome
8
0
TEST_F ( ProtocolHandlerRegistryTest , TestReplaceHandler ) { ProtocolHandler ph1 = CreateProtocolHandler ( "mailto" , GURL ( "http://test.com/%s" ) ) ; ProtocolHandler ph2 = CreateProtocolHandler ( "mailto" , GURL ( "http://test.com/updated-url/%s" ) ) ; registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ; AS...
-2,386,031,673,786,599,400
debian
37
0
static gpgme_error_t gpgsm_sign ( void * engine , gpgme_data_t in , gpgme_data_t out , gpgme_sig_mode_t mode , int use_armor , int use_textmode , int include_certs , gpgme_ctx_t ctx ) { engine_gpgsm_t gpgsm = engine ; gpgme_error_t err ; char * assuan_cmd ; int i ; gpgme_key_t key ; if ( ! gpgsm ) return gpg_erro...
6,511,303,611,138,191,000
debian
66
1
static void parse_mb_skip ( Wmv2Context * w ) { int mb_x , mb_y ; MpegEncContext * const s = & w -> s ; uint32_t * const mb_type = s -> current_picture_ptr -> f . mb_type ; w -> skip_type = get_bits ( & s -> gb , 2 ) ; switch ( w -> skip_type ) { case SKIP_TYPE_NONE : for ( mb_y = 0 ; mb_y < s -> mb_height ; mb...
8,206,514,580,434,226,000
chrome
13
0
IN_PROC_BROWSER_TEST_F ( HttpsEngagementPageLoadMetricsBrowserTest , Simple_Http ) { StartHttpServer ( ) ; base : : TimeDelta upper_bound = NavigateInForegroundAndCloseWithTiming ( http_test_server_ -> GetURL ( "/simple.html" ) ) ; histogram_tester_ . ExpectTotalCount ( internal : : kHttpEngagementHistogram , 1 ) ; ...
-3,337,205,971,666,909,000
debian
155
0
int qtmd_decompress ( struct qtmd_stream * qtm , off_t out_bytes ) { unsigned int frame_todo , frame_end , window_posn , match_offset , range ; unsigned char * window , * i_ptr , * i_end , * runsrc , * rundest ; int i , j , selector , extra , sym , match_length ; unsigned short H , L , C , symf ; register unsigned...
7,092,216,800,726,730,000
debian
5
0
static int dissect_h245_MasterSlaveDeterminationReject ( 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_MasterSlaveDeterminationReject , MasterSlaveDeterminationReject_sequence )...
1,414,661,670,117,003,800
debian
15
0
static int should_include ( struct commit * commit , void * _data ) { struct include_data * data = _data ; int bitmap_pos ; bitmap_pos = bitmap_position ( commit -> object . oid . hash ) ; if ( bitmap_pos < 0 ) bitmap_pos = ext_index_add_object ( ( struct object * ) commit , NULL ) ; if ( ! add_to_include_set ( da...
-4,136,373,206,107,992,600
chrome
8
0
static void U_CALLCONV _ISCIIClose ( UConverter * cnv ) { if ( cnv -> extraInfo != NULL ) { if ( ! cnv -> isExtraLocal ) { uprv_free ( cnv -> extraInfo ) ; } cnv -> extraInfo = NULL ; } }
-1,111,775,978,048,960,300
chrome
10
0
TEST_F ( BrowsingDataRemoverImplTest , RemoveQuotaManagedDataForLastHour ) { BlockUntilBrowsingDataRemoved ( AnHourAgo ( ) , base : : Time : : Max ( ) , BrowsingDataRemover : : REMOVE_FILE_SYSTEMS | BrowsingDataRemover : : REMOVE_WEBSQL | BrowsingDataRemover : : REMOVE_APPCACHE | BrowsingDataRemover : : REMOVE_SERVICE...
-2,908,211,205,972,632,000
debian
41
0
static int try_shrink_upper ( MAIN_WINDOW_REC * window , int count ) { MAIN_WINDOW_REC * shrink_win ; shrink_win = mainwindows_find_upper ( 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 ...
1,414,661,670,117,003,800
debian
41
0
int rebuild_existing_bitmaps ( struct packing_data * mapping , khash_sha1 * reused_bitmaps , int show_progress ) { uint32_t i , num_objects ; uint32_t * reposition ; struct bitmap * rebuild ; struct stored_bitmap * stored ; struct progress * progress = NULL ; khiter_t hash_pos ; int hash_ret ; if ( prepare_bitm...
-3,591,633,859,713,840,600
debian
3
0
static inline int get_bitsz ( GetBitContext * s , int n ) { return n ? get_bits ( s , n ) : 0 ; }
7,092,216,800,726,730,000
debian
4
0
static int dissect_h245_MultiplexEntrySendAck ( 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_MultiplexEntrySendAck , MultiplexEntrySendAck_sequence ) ; return offset ; }
6,249,489,553,242,543,000
debian
16
0
static void config_logconfig ( config_tree * ptree ) { attr_val * my_lc ; my_lc = HEAD_PFIFO ( ptree -> logconfig ) ; for ( ; my_lc != NULL ; my_lc = my_lc -> link ) { switch ( my_lc -> attr ) { case '+' : ntp_syslogmask |= get_logmask ( my_lc -> value . s ) ; break ; case '-' : ntp_syslogmask &= ~ get_logmask...
-6,527,276,140,940,489,000
chrome
22
1
TEST_F ( TransportSecurityPersisterTest , SerializeData2 ) { TransportSecurityState : : DomainState domain_state ; const base : : Time current_time ( base : : Time : : Now ( ) ) ; const base : : Time expiry = current_time + base : : TimeDelta : : FromSeconds ( 1000 ) ; static const char kYahooDomain [ ] = "yahoo.co...
1,896,723,564,367,514,400
debian
8
0
static VALUE ossl_cipher_iv_length ( VALUE self ) { EVP_CIPHER_CTX * ctx ; int len = 0 ; GetCipher ( self , ctx ) ; # if defined ( HAVE_AUTHENTICATED_ENCRYPTION ) if ( EVP_CIPHER_CTX_flags ( ctx ) & EVP_CIPH_FLAG_AEAD_CIPHER ) len = ( int ) ( VALUE ) EVP_CIPHER_CTX_get_app_data ( ctx ) ; # endif if ( ! len ) len =...
8,484,475,213,808,847,000
debian
13
0
void qbus_free ( BusState * bus ) { DeviceState * dev ; while ( ( dev = QLIST_FIRST ( & bus -> children ) ) != NULL ) { qdev_free ( dev ) ; } if ( bus -> parent ) { QLIST_REMOVE ( bus , sibling ) ; bus -> parent -> num_child_bus -- ; } if ( bus -> qdev_allocated ) { qemu_free ( bus ) ; } }
-5,706,788,925,640,467,000
chrome
10
0
static void encode_b ( VP9_COMP * cpi , const TileInfo * const tile , TOKENEXTRA * * tp , int mi_row , int mi_col , int output_enabled , BLOCK_SIZE bsize , PICK_MODE_CONTEXT * ctx ) { set_offsets ( cpi , tile , mi_row , mi_col , bsize ) ; update_state ( cpi , ctx , mi_row , mi_col , bsize , output_enabled ) ; encode...
8,588,713,512,322,174,000
debian
39
0
static int tgq_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) { const uint8_t * buf = avpkt -> data ; int buf_size = avpkt -> size ; TgqContext * s = avctx -> priv_data ; AVFrame * frame = data ; int x , y , ret ; int big_endian = AV_RL32 ( & buf [ 4 ] ) > 0x000FFFFF ; ...
3,192,165,150,896,245,000
debian
91
0
unsigned long # endif # undef mul # undef mul_add # define mul_add ( r , a , word , carry ) do { \ register BN_ULONG high , low ; \ asm ( "mulq %3" \ : "=a" ( low ) , "=d" ( high ) \ : "a" ( word ) , "m" ( a ) \ : "cc" ) ; \ asm ( "addq %2,%0; adcq %3,%1" \ : "+r" ( carry ) , "+d" ( high ) \ : "a" ( low ) , "g" ( 0...
6,336,384,260,629,386,000
debian
24
0
static void dissect_zcl_scenes_view_scene_response ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) { guint8 status , * attr_string ; guint attr_uint ; status = tvb_get_guint8 ( tvb , * offset ) ; proto_tree_add_item ( tree , hf_zbee_zcl_scenes_status , tvb , * offset , 1 , ENC_LITTLE_ENDIAN ) ; * offset +=...
9,176,142,195,250,516,000
debian
11
0
static void prplcb_blist_new ( PurpleBlistNode * node ) { if ( node -> type == PURPLE_BLIST_BUDDY_NODE ) { PurpleBuddy * bud = ( PurpleBuddy * ) node ; struct im_connection * ic = purple_ic_by_pa ( bud -> account ) ; if ( ic == NULL ) { return ; } imcb_add_buddy ( ic , bud -> name , NULL ) ; prplcb_blist_update...
1,182,028,467,273,265,000
debian
29
0
REP_SET * make_new_set ( REP_SETS * sets ) { uint i , count , * bit_buffer ; REP_SET * set ; if ( sets -> extra ) { sets -> extra -- ; set = sets -> set + sets -> count ++ ; bzero ( ( char * ) set -> bits , sizeof ( uint ) * sets -> size_of_bits ) ; bzero ( ( char * ) & set -> next [ 0 ] , sizeof ( set -> next [...
-6,154,134,138,260,772,000
debian
40
1
static int tmv_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) { TMVContext * tmv = avctx -> priv_data ; const uint8_t * src = avpkt -> data ; uint8_t * dst ; unsigned char_cols = avctx -> width >> 3 ; unsigned char_rows = avctx -> height >> 3 ; unsigned x , y , fg , bg ...
7,549,435,794,356,072,000
debian
10
0
static ASN1_BIT_STRING * obj_to_asn1bstr ( VALUE obj , long unused_bits ) { ASN1_BIT_STRING * bstr ; if ( unused_bits < 0 ) unused_bits = 0 ; StringValue ( obj ) ; if ( ! ( bstr = ASN1_BIT_STRING_new ( ) ) ) ossl_raise ( eASN1Error , NULL ) ; ASN1_BIT_STRING_set ( bstr , ( unsigned char * ) RSTRING_PTR ( obj ) , R...
-7,136,186,224,744,988,000
debian
33
0
CURLcode Curl_http_done ( struct connectdata * conn , CURLcode status , bool premature ) { struct Curl_easy * data = conn -> data ; struct HTTP * http = data -> req . protop ; infof ( data , "Curl_http_done: called premature == %d\n" , premature ) ; Curl_unencode_cleanup ( conn ) ; # ifdef USE_SPNEGO if ( data -> ...
-2,901,388,205,723,537,400
debian
39
0
VALUE rb_dlhandle_initialize ( int argc , VALUE argv [ ] , VALUE self ) { void * ptr ; struct dl_handle * dlhandle ; VALUE lib , flag ; char * clib ; int cflag ; const char * err ; switch ( rb_scan_args ( argc , argv , "02" , & lib , & flag ) ) { case 0 : clib = NULL ; cflag = RTLD_LAZY | RTLD_GLOBAL ; break ...
-7,855,974,557,509,681,000
debian
12
0
char get_typtype ( Oid typid ) { HeapTuple tp ; tp = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( typid ) ) ; if ( HeapTupleIsValid ( tp ) ) { Form_pg_type typtup = ( Form_pg_type ) GETSTRUCT ( tp ) ; char result ; result = typtup -> typtype ; ReleaseSysCache ( tp ) ; return result ; } else return '\0' ; }
-2,648,356,651,055,439,400
debian
94
0
void dissect_geographical_description ( tvbuff_t * tvb , packet_info * pinfo _U_ , proto_tree * tree ) { proto_item * lat_item , * long_item , * major_item , * minor_item , * alt_item , * uncer_item ; guint8 type_of_shape ; int offset = 0 ; int length ; guint8 value ; guint32 uvalue32 ; gint32 svalue32 ; length...
-6,252,714,751,027,238,000
debian
3
0
static int gs_heap_register_root ( gs_memory_t * mem , gs_gc_root_t * rp , gs_ptr_type_t ptype , void * * up , client_name_t cname ) { return 0 ; }
-4,136,373,206,107,992,600
chrome
19
1
static void _ISCIIReset ( UConverter * cnv , UConverterResetChoice choice ) { UConverterDataISCII * data = ( UConverterDataISCII * ) ( cnv -> extraInfo ) ; if ( choice <= UCNV_RESET_TO_UNICODE ) { cnv -> toUnicodeStatus = missingCharMarker ; cnv -> mode = 0 ; data -> currentDeltaToUnicode = data -> defDeltaToUnico...
3,599,206,110,384,554,500
debian
21
0
static ossl_inline int sk_ ## t1 ## _find_ex ( STACK_OF ( t1 ) * sk , t2 * ptr ) { return OPENSSL_sk_find_ex ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ; } static ossl_inline void sk_ ## t1 ## _sort ( STACK_OF ( t1 ) * sk ) { OPENSSL_sk_sort ( ( OPENSSL_STACK * ) sk ) ; } static ossl_inline int sk_ ## t1 #...
-1,929,262,071,302,712,000
debian
5
0
static void * Type_Curve_Dup ( struct _cms_typehandler_struct * self , const void * Ptr , cmsUInt32Number n ) { return ( void * ) cmsDupToneCurve ( ( cmsToneCurve * ) Ptr ) ; cmsUNUSED_PARAMETER ( n ) ; cmsUNUSED_PARAMETER ( self ) ; }
1,859,256,631,654,517,000
chrome
113
0
static int decode_slice ( struct AVCodecContext * avctx , void * arg ) { H264Context * h = * ( void * * ) arg ; int lf_x_start = h -> mb_x ; h -> mb_skip_run = - 1 ; av_assert0 ( h -> block_offset [ 15 ] == ( 4 * ( ( scan8 [ 15 ] - scan8 [ 0 ] ) & 7 ) << h -> pixel_shift ) + 4 * h -> linesize * ( ( scan8 [ 15 ] - s...
3,599,206,110,384,554,500
debian
24
0
int X509_REQ_check_private_key ( X509_REQ * x , EVP_PKEY * k ) { EVP_PKEY * xk = NULL ; int ok = 0 ; xk = X509_REQ_get_pubkey ( x ) ; switch ( EVP_PKEY_cmp ( xk , k ) ) { case 1 : ok = 1 ; break ; case 0 : X509err ( X509_F_X509_REQ_CHECK_PRIVATE_KEY , X509_R_KEY_VALUES_MISMATCH ) ; break ; case - 1 : X509err (...
-2,922,528,420,890,432,000
debian
31
0
static void wma_window ( WMACodecContext * s , float * out ) { float * in = s -> output ; int block_len , bsize , n ; if ( s -> block_len_bits <= s -> prev_block_len_bits ) { block_len = s -> block_len ; bsize = s -> frame_len_bits - s -> block_len_bits ; s -> fdsp . vector_fmul_add ( out , in , s -> windows [ bs...
-482,717,283,558,482,300
debian
103
0
static int mpc7_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) { AVFrame * frame = data ; const uint8_t * buf = avpkt -> data ; int buf_size ; MPCContext * c = avctx -> priv_data ; GetBitContext gb ; int i , ch ; int mb = - 1 ; Band * bands = c -> bands ; int off...
6,632,536,031,698,733,000
debian
5
0
static void show_usage ( void ) { av_log ( NULL , AV_LOG_INFO , "Simple multimedia streams analyzer\n" ) ; av_log ( NULL , AV_LOG_INFO , "usage: %s [OPTIONS] [INPUT_FILE]\n" , program_name ) ; av_log ( NULL , AV_LOG_INFO , "\n" ) ; }
-8,745,685,032,143,263,000
debian
51
0
int upx_inflate2b ( const char * src , uint32_t ssize , char * dst , uint32_t * dsize , uint32_t upx0 , uint32_t upx1 , uint32_t ep ) { int32_t backbytes , unp_offset = - 1 ; uint32_t backsize , myebx = 0 , scur = 0 , dcur = 0 , i , magic [ ] = { 0x108 , 0x110 , 0xd5 , 0 } ; int oob ; while ( 1 ) { while ( ( oob...
-5,420,171,864,670,539,000
debian
12
0
void qtest_clock_warp ( int64_t dest ) { int64_t clock = qemu_get_clock_ns ( vm_clock ) ; assert ( qtest_enabled ( ) ) ; while ( clock < dest ) { int64_t deadline = qemu_clock_deadline ( vm_clock ) ; int64_t warp = MIN ( dest - clock , deadline ) ; qemu_icount_bias += warp ; qemu_run_timers ( vm_clock ) ; clock...
-1,929,262,071,302,712,000
debian
3
0
static void Type_Signature_Free ( struct _cms_typehandler_struct * self , void * Ptr ) { _cmsFree ( self -> ContextID , Ptr ) ; }
-6,552,851,419,396,579,000
debian
4
0
static int SpoolssStartPagePrinter_r ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep ) { offset = dissect_doserror ( tvb , offset , pinfo , tree , di , drep , hf_rc , NULL ) ; return offset ; }
7,072,059,544,915,634,000
chrome
9
0
static UChar GetUniFromLMBCSUni ( char const * * ppLMBCSin ) { uint8_t HighCh = * ( * ppLMBCSin ) ++ ; uint8_t LowCh = * ( * ppLMBCSin ) ++ ; if ( HighCh == ULMBCS_UNICOMPATZERO ) { HighCh = LowCh ; LowCh = 0 ; } return ( UChar ) ( ( HighCh << 8 ) | LowCh ) ; }
7,191,899,184,788,440,000
debian
37
1
char * get_arg ( char * line , my_bool get_next_arg ) { char * ptr , * start ; my_bool quoted = 0 , valid_arg = 0 ; char qtype = 0 ; ptr = line ; if ( get_next_arg ) { for ( ; * ptr ; ptr ++ ) ; if ( * ( ptr + 1 ) ) ptr ++ ; } else { while ( my_isspace ( charset_info , * ptr ) ) ptr ++ ; if ( * ptr == '\\'...
8,637,588,907,624,250,000
debian
14
0
static int dissect_pcp_message_error ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , int offset ) { gint32 error_num ; pcp_conv_info_t * pcp_conv_info ; col_append_str ( pinfo -> cinfo , COL_INFO , "[ERROR] " ) ; proto_tree_add_item ( tree , hf_pcp_pdu_error , tvb , offset , 4 , ENC_BIG_ENDIAN ) ; err...
7,424,930,167,238,098,000
debian
13
0
static int claimintf ( struct usb_dev_state * ps , unsigned int ifnum ) { struct usb_device * dev = ps -> dev ; struct usb_interface * intf ; int err ; if ( ifnum >= 8 * sizeof ( ps -> ifclaimed ) ) return - EINVAL ; if ( test_bit ( ifnum , & ps -> ifclaimed ) ) return 0 ; if ( ps -> privileges_dropped && ! test_...
1,825,251,920,369,138,400
debian
88
1
int dtls1_get_record ( SSL * s ) { int ssl_major , ssl_minor ; int i , n ; SSL3_RECORD * rr ; unsigned char * p = NULL ; unsigned short version ; DTLS1_BITMAP * bitmap ; unsigned int is_next_epoch ; rr = RECORD_LAYER_get_rrec ( & s -> rlayer ) ; again : if ( dtls1_process_buffered_records ( s ) < 0 ) return - ...
7,092,216,800,726,730,000
debian
4
0
int dissect_h245_T38FaxProfile ( 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_T38FaxProfile , T38FaxProfile_sequence ) ; return offset ; }
-5,456,913,190,944,845,000
chrome
146
0
TEST_F ( TemplateURLTest , ReplaceSearchTerms ) { struct TestData { const std : : string url ; const std : : string expected_result ; } test_data [ ] = { { "http://foo/{ language} { searchTerms} { inputEncoding} " , "http://foo/{ language} XUTF-8" } , { "http://foo/{ language} { inputEncoding} { searchTerms} "...
-7,422,764,464,424,761,000
chrome
46
0
TEST_F ( ExtensionServiceSyncTest , DontSelfNotify ) { base : : FilePath source_install_dir = data_dir ( ) . AppendASCII ( "good" ) . AppendASCII ( "Extensions" ) ; base : : FilePath pref_path = source_install_dir . DirName ( ) . Append ( chrome : : kPreferencesFilename ) ; InitializeInstalledExtensionService ( pref...
5,357,882,892,791,796,000
debian
15
0
void e1000e_core_pre_save ( E1000ECore * core ) { int i ; NetClientState * nc = qemu_get_queue ( core -> owner_nic ) ; if ( nc -> link_down && e1000e_have_autoneg ( core ) ) { core -> phy [ 0 ] [ PHY_STATUS ] |= MII_SR_AUTONEG_COMPLETE ; e1000e_update_flowctl_status ( core ) ; } for ( i = 0 ; i < ARRAY_SIZE ( c...
4,489,017,523,191,997,000
debian
4
0
static int dissect_h225_TBCD_STRING_SIZE_1_4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_size_constrained_type ( tvb , offset , actx , tree , hf_index , dissect_h225_TBCD_STRING , "TBCD_STRING" , 1 , 4 , FALSE ) ; return offset ; }
-5,706,788,925,640,467,000
chrome
7
0
static BLOCK_SIZE get_rd_var_based_fixed_partition ( VP9_COMP * cpi , int mi_row , int mi_col ) { unsigned int var = get_sby_perpixel_diff_variance ( cpi , & cpi -> mb . plane [ 0 ] . src , mi_row , mi_col , BLOCK_64X64 ) ; if ( var < 8 ) return BLOCK_64X64 ; else if ( var < 128 ) return BLOCK_32X32 ; else if ( var...
3,557,739,556,029,059,000
chrome
7
0
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 ( ...
6,790,518,433,053,241,000
debian
104
0
static void gtkui_connection_data_split ( void ) { GtkWidget * vbox , * scrolled , * label , * child ; GtkWidget * hbox_big , * hbox_small , * button ; GtkTextIter iter ; char tmp [ MAX_ASCII_ADDR_LEN ] ; char title [ MAX_ASCII_ADDR_LEN + 6 ] ; static gint scroll_split = 1 ; DEBUG_MSG ( "gtk_connection_data_spli...
-341,028,540,041,678,100
debian
3
0
int main ( int argc , char * argv [ ] ) { return ntpqmain ( argc , argv ) ; }
1,676,654,288,894,940,700
debian
10
0
void kadmin_lock ( int argc , char * argv [ ] ) { kadm5_ret_t retval ; if ( locked ) return ; retval = kadm5_lock ( handle ) ; if ( retval ) { com_err ( "lock" , retval , "" ) ; return ; } locked = 1 ; }
8,460,430,819,945,784,000
debian
14
0
int load_initrd ( const char * filename , uint8_t * addr ) { int fd , size ; printf ( "Load initrd\n" ) ; fd = open ( filename , O_RDONLY ) ; if ( fd < 0 ) return - 1 ; size = read ( fd , addr , 16 * 1024 * 1024 ) ; if ( size < 0 ) goto fail ; close ( fd ) ; printf ( "Load initrd: %d\n" , size ) ; return size ...
5,838,244,232,542,872,000
chrome
28
0
TEST_F ( ScoredHistoryMatchTest , CullSearchResults ) { scoped_ptr < TemplateURLService > template_url_service = make_scoped_ptr ( new TemplateURLService ( nullptr , make_scoped_ptr ( new SearchTermsData ) , nullptr , scoped_ptr < TemplateURLServiceClient > ( ) , nullptr , nullptr , base : : Closure ( ) ) ) ; base : ...
-2,654,475,221,056,024,000
debian
36
1
void traverse_commit_list ( struct rev_info * revs , show_commit_fn show_commit , show_object_fn show_object , void * data ) { int i ; struct commit * commit ; struct strbuf base ; strbuf_init ( & base , PATH_MAX ) ; while ( ( commit = get_revision ( revs ) ) != NULL ) { if ( commit -> tree ) add_pending_tree ( r...
-3,616,725,510,139,109,000
chrome
31
0
static unsigned int do_16x16_motion_iteration ( VP9_COMP * cpi , const MV * ref_mv , MV * dst_mv , int mb_row , int mb_col ) { MACROBLOCK * const x = & cpi -> mb ; MACROBLOCKD * const xd = & x -> e_mbd ; const MV_SPEED_FEATURES * const mv_sf = & cpi -> sf . mv ; const vp9_variance_fn_ptr_t v_fn_ptr = cpi -> fn_ptr ...
3,649,198,920,984,613,400
debian
4
0
static void vmsvga_index_write ( void * opaque , uint32_t address , uint32_t index ) { struct vmsvga_state_s * s = opaque ; s -> index = index ; }
-866,921,002,076,081,900
debian
24
0
EXCLUSIVE_REGRESSION_TEST ( SDK_API_TSHttpConnectIntercept ) ( RegressionTest * test , int , int * pstatus ) { * pstatus = REGRESSION_TEST_INPROGRESS ; TSDebug ( UTDBG_TAG , "Starting test TSHttpConnectIntercept" ) ; TSCont cont_test = TSContCreate ( cont_test_handler , TSMutexCreate ( ) ) ; ConnectTestData * data ...
-6,024,601,983,167,899,000
debian
39
0
static ActivationAction get_activation_action ( NautilusFile * file ) { ActivationAction action ; char * activation_uri ; gboolean can_extract ; can_extract = g_settings_get_boolean ( nautilus_preferences , NAUTILUS_PREFERENCES_AUTOMATIC_DECOMPRESSION ) ; if ( can_extract && nautilus_file_is_archive ( file ) ) { ...
5,651,124,822,185,018,000
debian
14
0
static VALUE ossl_x509name_add_entry ( int argc , VALUE * argv , VALUE self ) { X509_NAME * name ; VALUE oid , value , type ; const char * oid_name ; rb_scan_args ( argc , argv , "21" , & oid , & value , & type ) ; oid_name = StringValueCStr ( oid ) ; StringValue ( value ) ; if ( NIL_P ( type ) ) type = rb_aref ...
-6,105,298,668,491,047,000
debian
50
0
static int msmpeg4_decode_dc ( MpegEncContext * s , int n , int * dir_ptr ) { int level , pred ; if ( s -> msmpeg4_version <= 2 ) { if ( n < 4 ) { level = get_vlc2 ( & s -> gb , v2_dc_lum_vlc . table , DC_VLC_BITS , 3 ) ; } else { level = get_vlc2 ( & s -> gb , v2_dc_chroma_vlc . table , DC_VLC_BITS , 3 ) ; } ...
-3,591,633,859,713,840,600
debian
30
0
static void reorder_block ( MPADecodeContext * s , GranuleDef * g ) { int i , j , len ; INTFLOAT * ptr , * dst , * ptr1 ; INTFLOAT tmp [ 576 ] ; if ( g -> block_type != 2 ) return ; if ( g -> switch_point ) { if ( s -> sample_rate_index != 8 ) ptr = g -> sb_hybrid + 36 ; else ptr = g -> sb_hybrid + 72 ; } else...
1,760,449,185,745,615,400
debian
10
0
TSReturnCode TSHttpHdrUrlGet ( TSMBuffer bufp , TSMLoc obj , TSMLoc * locp ) { sdk_assert ( sdk_sanity_check_mbuffer ( bufp ) == TS_SUCCESS ) ; sdk_assert ( sdk_sanity_check_http_hdr_handle ( obj ) == TS_SUCCESS ) ; HTTPHdrImpl * hh = ( HTTPHdrImpl * ) obj ; if ( hh -> m_polarity != HTTP_TYPE_REQUEST ) { return TS...
6,323,824,267,898,511,000
debian
3
0
void fz_cmm_fin_profile ( fz_context * ctx , fz_iccprofile * profile ) { if ( ctx && ctx -> colorspace && ctx -> colorspace -> cmm && ctx -> cmm_instance ) if ( profile && profile -> cmm_handle != NULL ) ctx -> colorspace -> cmm -> fin_profile ( ctx -> cmm_instance , profile ) ; }
3,599,206,110,384,554,500
debian
74
0
void name ## _free ( type * a ) ; # define DECLARE_ASN1_PRINT_FUNCTION ( stname ) DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , stname ) # define DECLARE_ASN1_PRINT_FUNCTION_fname ( stname , fname ) int fname ## _print_ctx ( BIO * out , stname * x , int indent , const ASN1_PCTX * pctx ) ; # define D2I_OF ( type ) type...
-1,672,864,273,235,910,400
debian
21
0
static void _slurm_rpc_get_priority_factors ( slurm_msg_t * msg ) { DEF_TIMERS ; priority_factors_request_msg_t * req_msg = ( priority_factors_request_msg_t * ) msg -> data ; priority_factors_response_msg_t resp_msg ; slurm_msg_t response_msg ; uid_t uid = g_slurm_auth_get_uid ( msg -> auth_cred , slurmctld_config...
-6,068,976,579,504,841,000
debian
8
0
int ctlclrtrap ( sockaddr_u * raddr , struct interface * linter , int traptype ) { register struct ctl_trap * tp ; if ( ( tp = ctlfindtrap ( raddr , linter ) ) == NULL ) return ( 0 ) ; if ( tp -> tr_flags & TRAP_CONFIGURED && traptype != TRAP_TYPE_CONFIG ) return ( 0 ) ; tp -> tr_flags = 0 ; num_ctl_traps -- ; re...
3,487,622,904,170,815,000
debian
30
1
static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) { Indeo3DecodeContext * ctx = avctx -> priv_data ; const uint8_t * buf = avpkt -> data ; int buf_size = avpkt -> size ; int res ; res = decode_frame_headers ( ctx , avctx , buf , buf_size ) ; if ( res < 0 ) retur...
4,489,017,523,191,997,000
debian
4
0
static int dissect_h225_T_cic_2_4 ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h225_T_cic_2_4 , T_cic_2_4_sequence_of ) ; return offset ; }
1,760,449,185,745,615,400
debian
6
0
inline TSReturnCode sdk_sanity_check_cachekey ( TSCacheKey key ) { if ( nullptr == key ) { return TS_ERROR ; } return TS_SUCCESS ; }
-2,385,618,084,223,928,300
debian
87
1
static int decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) { RALFContext * ctx = avctx -> priv_data ; AVFrame * frame = data ; int16_t * samples0 ; int16_t * samples1 ; int ret ; GetBitContext gb ; int table_size , table_bytes , i ; const uint8_t * src , * block_po...
-2,740,750,333,757,361,000
debian
26
0
static void truespeech_apply_twopoint_filter ( TSContext * dec , int quart ) { int16_t tmp [ 146 + 60 ] , * ptr0 , * ptr1 ; const int16_t * filter ; int i , t , off ; t = dec -> offset2 [ quart ] ; if ( t == 127 ) { memset ( dec -> newvec , 0 , 60 * sizeof ( * dec -> newvec ) ) ; return ; } for ( i = 0 ; i < ...
4,206,838,170,759,624,700
debian
8
0
static void nbd_client_closed ( NBDClient * client , bool negotiated ) { nb_fds -- ; if ( negotiated && nb_fds == 0 && ! persistent && state == RUNNING ) { state = TERMINATE ; } nbd_update_server_watch ( ) ; nbd_client_put ( client ) ; }
-5,280,794,106,681,745,000
debian
48
0
static GstFlowReturn gst_asf_demux_process_metadata ( GstASFDemux * demux , guint8 * data , guint64 size ) { guint16 blockcount , i ; GST_INFO_OBJECT ( demux , "object is a metadata object" ) ; if ( size < 2 ) goto not_enough_data ; blockcount = gst_asf_demux_get_uint16 ( & data , & size ) ; for ( i = 0 ; i < blo...
5,360,072,031,850,966,000
debian
190
0
static void ppc_prep_init ( QEMUMachineInitArgs * args ) { ram_addr_t ram_size = args -> ram_size ; const char * cpu_model = args -> cpu_model ; const char * kernel_filename = args -> kernel_filename ; const char * kernel_cmdline = args -> kernel_cmdline ; const char * initrd_filename = args -> initrd_filename ; ...
7,092,216,800,726,730,000
debian
4
0
static int dissect_h245_INTEGER_1_19200 ( 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 , 19200U , NULL , FALSE ) ; return offset ; }
-7,076,754,245,473,579,000
chrome
4
0
static int evhttp_valid_response_code ( int code ) { if ( code == 0 ) return ( 0 ) ; return ( 1 ) ; }
-3,591,633,859,713,840,600
debian
10
0
static void switch_buffer ( MPADecodeContext * s , int * pos , int * end_pos , int * end_pos2 ) { if ( s -> in_gb . buffer && * pos >= s -> gb . size_in_bits ) { s -> gb = s -> in_gb ; s -> in_gb . buffer = NULL ; assert ( ( get_bits_count ( & s -> gb ) & 7 ) == 0 ) ; skip_bits_long ( & s -> gb , * pos - * end_pos...
-2,222,463,888,415,250,000
chrome
6
0
static void alloc_util_frame_buffers ( VP9_COMP * cpi ) { VP9_COMMON * const cm = & cpi -> common ; if ( vp9_realloc_frame_buffer ( & cpi -> last_frame_uf , cm -> width , cm -> height , cm -> subsampling_x , cm -> subsampling_y , # if CONFIG_VP9_HIGHBITDEPTH cm -> use_highbitdepth , # endif VP9_ENC_BORDER_IN_PIXELS ,...
-6,024,601,983,167,899,000
debian
3
0
gint nautilus_mime_types_get_number_of_groups ( void ) { return G_N_ELEMENTS ( mimetype_groups ) ; }
-5,260,094,338,219,890,000
debian
6
0
static void stroke_terminate_srcip ( private_stroke_socket_t * this , stroke_msg_t * msg , FILE * out ) { pop_string ( msg , & msg -> terminate_srcip . start ) ; pop_string ( msg , & msg -> terminate_srcip . end ) ; DBG1 ( DBG_CFG , "received stroke: terminate-srcip %s-%s" , msg -> terminate_srcip . start , msg -> t...
4,876,100,961,671,883,000
debian
4
0
static int dissect_pvfs_pdu ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , void * data _U_ ) { dissect_pvfs_common ( tvb , pinfo , tree , FALSE ) ; return tvb_reported_length ( tvb ) ; }
378,220,832,151,730,900
debian
31
0
int qemuMonitorTextAddDevice ( qemuMonitorPtr mon , const char * devicestr ) { char * cmd = NULL ; char * reply = NULL ; char * safedev ; int ret = - 1 ; if ( ! ( safedev = qemuMonitorEscapeArg ( devicestr ) ) ) { virReportOOMError ( ) ; goto cleanup ; } if ( virAsprintf ( & cmd , "device_add %s" , safedev ) <...
-2,591,112,946,600,337,000
debian
19
0
static void residual_interp ( int16_t * buf , int16_t * out , int lag , int gain , int * rseed ) { int i ; if ( lag ) { int16_t * vector_ptr = buf + PITCH_MAX ; for ( i = 0 ; i < lag ; i ++ ) out [ i ] = vector_ptr [ i - lag ] * 3 >> 2 ; av_memcpy_backptr ( ( uint8_t * ) ( out + lag ) , lag * sizeof ( * out ) , ...
4,876,100,961,671,883,000
debian
5
0
static int dissect_pvfs2_mgmt_get_dirdata_handle_request ( tvbuff_t * tvb , proto_tree * tree , int offset , packet_info * pinfo ) { offset = dissect_pvfs_fh ( tvb , offset , pinfo , tree , "handle" , NULL ) ; offset = dissect_pvfs_fs_id ( tvb , tree , offset ) ; return offset ; }
-7,137,859,843,679,923,000
chrome
26
0
static void build_inter_predictors_for_planes ( MACROBLOCKD * xd , BLOCK_SIZE bsize , int mi_row , int mi_col , int plane_from , int plane_to ) { int plane ; const int mi_x = mi_col * MI_SIZE ; const int mi_y = mi_row * MI_SIZE ; for ( plane = plane_from ; plane <= plane_to ; ++ plane ) { const BLOCK_SIZE plane_...
-5,300,415,683,778,647,000
chrome
3
0
IN_PROC_BROWSER_TEST_F ( ExtensionMessageBubbleViewBrowserTest , TestClickingDismissButton ) { TestClickingDismissButton ( ) ; }
2,713,698,759,296,604,700
debian
44
0
void ff_draw_horiz_band ( AVCodecContext * avctx , DSPContext * dsp , Picture * cur , Picture * last , int y , int h , int picture_structure , int first_field , int draw_edges , int low_delay , int v_edge_pos , int h_edge_pos ) { const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get ( avctx -> pix_fmt ) ; int hshift ...
4,180,964,683,905,831,000
debian
9
0
static inline void take_option ( char * * to , char * from , int * first , int len ) { if ( ! * first ) { * * to = ',' ; * to += 1 ; } else * first = 0 ; memcpy ( * to , from , len ) ; * to += len ; }
914,926,989,019,402,500
debian
12
0
static void main_external_compression_cleanup ( void ) { int i ; for ( i = 0 ; i < num_subprocs ; i += 1 ) { if ( ! ext_subprocs [ i ] ) { continue ; } kill ( ext_subprocs [ i ] , SIGTERM ) ; ext_subprocs [ i ] = 0 ; } }
-5,706,788,925,640,467,000
chrome
196
1
static void rd_use_partition ( VP9_COMP * cpi , const TileInfo * const tile , MODE_INFO * * mi_8x8 , TOKENEXTRA * * tp , int mi_row , int mi_col , BLOCK_SIZE bsize , int * rate , int64_t * dist , int do_recon , PC_TREE * pc_tree ) { VP9_COMMON * const cm = & cpi -> common ; MACROBLOCK * const x = & cpi -> mb ; MACRO...
7,651,945,086,108,393,000
debian
3
0
static void qemuMonitorJSONHandleVNCConnect ( qemuMonitorPtr mon , virJSONValuePtr data ) { qemuMonitorJSONHandleVNC ( mon , data , VIR_DOMAIN_EVENT_GRAPHICS_CONNECT ) ; }
-8,620,097,311,326,519,000
chrome
6
0
err_status_t srtp_shutdown ( ) { err_status_t status ; status = crypto_kernel_shutdown ( ) ; if ( status ) return status ; return err_status_ok ; }
3,728,341,105,073,176,600
debian
23
1
static ossl_inline void lh_ ## type ## _node_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) { OPENSSL_LH_node_stats_bio ( ( const OPENSSL_LHASH * ) lh , out ) ; } static ossl_inline void lh_ ## type ## _node_usage_stats_bio ( const LHASH_OF ( type ) * lh , BIO * out ) { OPENSSL_LH_node_usage_stats_bio ( ( c...
-8,933,711,118,846,966,000
debian
63
0
static void cirrus_init_common ( CirrusVGAState * s , Object * owner , int device_id , int is_pci , MemoryRegion * system_memory , MemoryRegion * system_io ) { int i ; static int inited ; if ( ! inited ) { inited = 1 ; for ( i = 0 ; i < 256 ; i ++ ) rop_to_index [ i ] = CIRRUS_ROP_NOP_INDEX ; rop_to_index [ CIR...