Dataset Viewer
Auto-converted to Parquet Duplicate
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,690,690,140,780,653,000
debian
8
0
OM_uint32 kg_sync_ccache_name ( krb5_context context , OM_uint32 * minor_status ) { OM_uint32 err = 0 ; if ( ! err ) { err = krb5_cc_set_default_name ( context , ( char * ) k5_getspecific ( K5_KEY_GSS_KRB5_CCACHE_NAME ) ) ; } * minor_status = err ; return ( * minor_status == 0 ) ? GSS_S_COMPLETE : GSS_S_FAILURE ;...
-6,245,610,163,896,160,000
debian
94
0
static void write_bootloader ( CPUMIPSState * env , uint8_t * base , int64_t kernel_entry ) { uint32_t * p ; p = ( uint32_t * ) base ; stl_raw ( p ++ , 0x0bf00160 ) ; stl_raw ( p ++ , 0x00000000 ) ; stl_raw ( base + 0x500 , 0xbfc00580 ) ; stl_raw ( base + 0x504 , 0xbfc0083c ) ; stl_raw ( base + 0x520 , 0xbfc0058...
7,324,112,841,603,622,000
debian
6
0
static bool search_header ( struct message_search_context * ctx , const struct message_header_line * hdr ) { static const unsigned char crlf [ 2 ] = { '\r' , '\n' } ; return str_find_more ( ctx -> str_find_ctx , ( const unsigned char * ) hdr -> name , hdr -> name_len ) || str_find_more ( ctx -> str_find_ctx , hdr -...
-3,299,391,226,809,811,500
debian
53
0
static int qemuAgentIOProcessLine ( qemuAgentPtr mon , const char * line , qemuAgentMessagePtr msg ) { virJSONValuePtr obj = NULL ; int ret = - 1 ; VIR_DEBUG ( "Line [%s]" , line ) ; if ( ! ( obj = virJSONValueFromString ( line ) ) ) { if ( msg && msg -> sync && msg -> first ) { VIR_DEBUG ( "Received garbage on s...
-6,580,451,576,689,963,000
debian
6
0
static char * default_opaque_literal_tag ( tvbuff_t * tvb , guint32 offset , const char * token _U_ , guint8 codepage _U_ , guint32 * length ) { guint32 data_len = tvb_get_guintvar ( tvb , offset , length ) ; char * str = wmem_strdup_printf ( wmem_packet_scope ( ) , "(%d bytes of opaque data)" , data_len ) ; * lengt...
-1,123,689,860,280,933,400
debian
70
0
static void auth_server_send_new_request ( struct auth_server_connection * conn , struct auth_client_request * request , const struct auth_request_info * info ) { string_t * str ; str = t_str_new ( 512 ) ; str_printfa ( str , "AUTH\t%u\t" , request -> id ) ; str_append_tabescaped ( str , info -> mech ) ; str_appen...
1,458,662,858,915,721,500
debian
21
0
void tb_invalidate_phys_page_fast ( tb_page_addr_t start , int len ) { PageDesc * p ; int offset , b ; # if 0 if ( 1 ) { qemu_log ( "modifying code at 0x%x size=%d EIP=%x PC=%08x\n" , cpu_single_env -> mem_io_vaddr , len , cpu_single_env -> eip , cpu_single_env -> eip + ( intptr_t ) cpu_single_env -> segs [ R_CS ] ...
-7,455,544,248,455,991,000
debian
44
0
int kvm_arch_process_async_events ( CPUState * cs ) { X86CPU * cpu = X86_CPU ( cs ) ; CPUX86State * env = & cpu -> env ; if ( cs -> interrupt_request & CPU_INTERRUPT_MCE ) { assert ( env -> mcg_cap ) ; cs -> interrupt_request &= ~ CPU_INTERRUPT_MCE ; kvm_cpu_synchronize_state ( cs ) ; if ( env -> exception_injec...
5,347,874,611,477,979,000
chrome
15
0
static void test_simplesignal ( void ) { struct event ev ; struct itimerval itv ; setup_test ( "Simple signal: " ) ; signal_set ( & ev , SIGALRM , signal_cb , & ev ) ; signal_add ( & ev , NULL ) ; signal_del ( & ev ) ; signal_add ( & ev , NULL ) ; memset ( & itv , 0 , sizeof ( itv ) ) ; itv . it_value . tv_sec...
1,760,449,185,745,615,400
debian
5
0
int TSHttpTxnIsWebsocket ( TSHttpTxn txnp ) { sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ; HttpSM * sm = ( HttpSM * ) txnp ; return sm -> t_state . is_websocket ; }
-8,925,552,398,357,902,000
chrome
6
0
static void is_skippable ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * argv ) { struct is_skippable_args * args = argv ; ( void ) plane_bsize ; ( void ) tx_size ; args -> skippable [ 0 ] &= ( ! args -> x -> plane [ plane ] . eobs [ block ] ) ; }
9,040,629,826,477,850,000
debian
23
0
static inline void decode2x2 ( GetBitContext * gb , uint8_t * dst , int linesize ) { int i , j , v [ 2 ] ; switch ( get_bits ( gb , 2 ) ) { case 1 : v [ 0 ] = get_bits ( gb , 8 ) ; for ( j = 0 ; j < 2 ; j ++ ) memset ( dst + j * linesize , v [ 0 ] , 2 ) ; break ; case 2 : v [ 0 ] = get_bits ( gb , 8 ) ; v [ 1 ...
3,599,206,110,384,554,500
debian
27
0
int PEM_write_bio_ ## name ( BIO * bp , type * x ) ; # define DECLARE_PEM_write_bio_const ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , const type * x ) ; # define DECLARE_PEM_write_cb_bio ( name , type ) int PEM_write_bio_ ## name ( BIO * bp , type * x , const EVP_CIPHER * enc , unsigned char * kstr , int ...
2,895,622,461,494,525,400
debian
17
0
static void test_list_fields ( ) { MYSQL_RES * result ; int rc ; myheader ( "test_list_fields" ) ; rc = mysql_query ( mysql , "drop table if exists t1" ) ; myquery ( rc ) ; rc = mysql_query ( mysql , "create table t1(c1 int primary key auto_increment, c2 char(10) default 'mysql')" ) ; myquery ( rc ) ; result = ...
2,064,081,176,034,684,200
debian
24
0
static int matroska_probe ( AVProbeData * p ) { uint64_t total = 0 ; int len_mask = 0x80 , size = 1 , n = 1 , i ; if ( AV_RB32 ( p -> buf ) != EBML_ID_HEADER ) return 0 ; total = p -> buf [ 4 ] ; while ( size <= 8 && ! ( total & len_mask ) ) { size ++ ; len_mask >>= 1 ; } if ( size > 8 ) return 0 ; total &= (...
-398,565,394,354,770,750
debian
4
0
static void ohci_eof_timer ( OHCIState * ohci ) { ohci -> sof_time = qemu_clock_get_ns ( QEMU_CLOCK_VIRTUAL ) ; timer_mod ( ohci -> eof_timer , ohci -> sof_time + usb_frame_time ) ; }
7,092,216,800,726,730,000
debian
4
0
static int dissect_h245_H261VideoMode ( 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_H261VideoMode , H261VideoMode_sequence ) ; return offset ; }
7,399,683,071,036,019,000
debian
17
0
static void pdo_stmt_iter_move_forwards ( zend_object_iterator * iter TSRMLS_DC ) { struct php_pdo_iterator * I = ( struct php_pdo_iterator * ) iter -> data ; if ( I -> fetch_ahead ) { zval_ptr_dtor ( & I -> fetch_ahead ) ; I -> fetch_ahead = NULL ; } MAKE_STD_ZVAL ( I -> fetch_ahead ) ; if ( ! do_fetch ( I -> s...
794,575,292,121,248,500
debian
31
1
static void voutf ( struct GlobalConfig * config , const char * prefix , const char * fmt , va_list ap ) { size_t width = ( 79 - strlen ( prefix ) ) ; if ( ! config -> mute ) { size_t len ; char * ptr ; char * print_buffer ; print_buffer = curlx_mvaprintf ( fmt , ap ) ; if ( ! print_buffer ) return ; len = strl...
313,627,013,719,508,800
debian
3
0
static inline PixelTrait GetPixelGreenTraits ( const Image * restrict image ) { return ( image -> channel_map [ GreenPixelChannel ] . traits ) ; }
5,357,882,892,791,796,000
debian
3
0
static void e1000e_set_fcrth ( E1000ECore * core , int index , uint32_t val ) { core -> mac [ FCRTH ] = val & 0xFFF8 ; }
355,220,887,711,506,900
debian
43
0
double get_variable_numdistinct ( VariableStatData * vardata , bool * isdefault ) { double stadistinct ; double stanullfrac = 0.0 ; double ntuples ; * isdefault = false ; if ( HeapTupleIsValid ( vardata -> statsTuple ) ) { Form_pg_statistic stats ; stats = ( Form_pg_statistic ) GETSTRUCT ( vardata -> statsTuple ...
-1,335,877,942,018,854,400
chrome
3
0
IN_PROC_BROWSER_TEST_F ( UnloadTest , BrowserCloseInfiniteBeforeUnload ) { LoadUrlAndQuitBrowser ( INFINITE_BEFORE_UNLOAD_HTML , "infinitebeforeunload" ) ; }
-6,024,601,983,167,899,000
debian
13
0
static LaunchLocation * find_launch_location_for_file ( GList * list , NautilusFile * file ) { LaunchLocation * location ; GList * l ; for ( l = list ; l != NULL ; l = l -> next ) { location = l -> data ; if ( location -> file == file ) { return location ; } } return NULL ; }
3,599,206,110,384,554,500
debian
24
1
static ossl_inline int sk_ ## t1 ## _find ( STACK_OF ( t1 ) * sk , t2 * ptr ) { return OPENSSL_sk_find ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ; } 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 ) ...
6,336,384,260,629,386,000
debian
90
0
void proto_register_zbee_zcl_part ( void ) { guint8 i , j ; static hf_register_info hf [ ] = { { & hf_zbee_zcl_part_attr_id , { "Attribute" , "zbee_zcl_general.part.attr_id" , FT_UINT16 , BASE_HEX , VALS ( zbee_zcl_part_attr_names ) , 0x0 , NULL , HFILL } } , { & hf_zbee_zcl_part_srv_tx_cmd_id , { "Command" , ...
2,895,622,461,494,525,400
debian
96
0
static void test_bug17667 ( ) { int rc ; MYSQL_STMT * stmt ; enum query_type { QT_NORMAL , QT_PREPARED } ; struct buffer_and_length { enum query_type qt ; const char * buffer ; const uint length ; } statements [ ] = { { QT_NORMAL , "drop table if exists bug17667" , 29 } , { QT_NORMAL , "create table bug1...
1,760,449,185,745,615,400
debian
18
0
TSReturnCode TSHttpTxnCacheLookupStatusGet ( TSHttpTxn txnp , int * lookup_status ) { sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ; sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) lookup_status ) == TS_SUCCESS ) ; HttpSM * sm = ( HttpSM * ) txnp ; switch ( sm -> t_state . cache_lookup_result ) { ...
-2,242,211,406,757,466,600
debian
266
1
static gint parse_arg ( tvbuff_t * tvb , packet_info * pinfo , proto_item * header_item , guint encoding , gint offset , proto_tree * field_tree , gboolean is_reply_to , guint8 type_id , guint8 field_code , guint8 * * signature , guint8 * signature_length , gint field_starting_offset ) { gint length ; gint padding_st...
8,849,962,823,026,424,000
debian
18
0
static gboolean qio_channel_websock_flush ( QIOChannel * ioc , GIOCondition condition , gpointer user_data ) { QIOChannelWebsock * wioc = QIO_CHANNEL_WEBSOCK ( user_data ) ; ssize_t ret ; if ( condition & G_IO_OUT ) { ret = qio_channel_websock_write_wire ( wioc , & wioc -> io_err ) ; if ( ret < 0 ) { goto cleanup...
-6,351,630,154,286,607,000
debian
20
0
static void unfold_conds ( struct condition * cnd , u_int32 a , u_int32 b ) { struct unfold_elm * ue = NULL ; do { ef_debug ( 1 , "?" ) ; SAFE_CALLOC ( ue , 1 , sizeof ( struct unfold_elm ) ) ; memcpy ( & ue -> fop , & cnd -> fop , sizeof ( struct filter_op ) ) ; TAILQ_INSERT_TAIL ( & unfolded_tree , ue , next ) ...
4,489,017,523,191,997,000
debian
4
0
static int dissect_h225_SEQUENCE_OF_DisplayName ( 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_SEQUENCE_OF_DisplayName , SEQUENCE_OF_DisplayName_sequence_of ) ; return offs...
-4,525,941,100,783,780,000
debian
3
0
static cmsBool isfirstidchar ( int c ) { return ! isdigit ( c ) && ismiddle ( c ) ; }
-1,102,844,685,921,778,700
debian
26
0
static int best_effort_strncat_from_utf16 ( struct archive_string * as , const void * _p , size_t bytes , struct archive_string_conv * sc , int be ) { const char * utf16 = ( const char * ) _p ; char * mbs ; uint32_t uc ; int n , ret ; ( void ) sc ; ret = 0 ; if ( archive_string_ensure ( as , as -> length + bytes...
6,667,142,528,452,942,000
debian
7
0
static FILE * open_sql_file_for_table ( const char * table , int flags ) { FILE * res ; char filename [ FN_REFLEN ] , tmp_path [ FN_REFLEN ] ; convert_dirname ( tmp_path , path , NullS ) ; res = my_fopen ( fn_format ( filename , table , tmp_path , ".sql" , 4 ) , flags , MYF ( MY_WME ) ) ; return res ; }
6,879,275,573,700,338,000
debian
16
0
static void flac_set_bps ( FLACContext * s ) { enum AVSampleFormat req = s -> avctx -> request_sample_fmt ; int need32 = s -> bps > 16 ; int want32 = av_get_bytes_per_sample ( req ) > 2 ; int planar = av_sample_fmt_is_planar ( req ) ; if ( need32 || want32 ) { if ( planar ) s -> avctx -> sample_fmt = AV_SAMPLE_FM...
-2,222,463,888,415,250,000
chrome
77
0
static void configure_static_seg_features ( VP9_COMP * cpi ) { VP9_COMMON * const cm = & cpi -> common ; const RATE_CONTROL * const rc = & cpi -> rc ; struct segmentation * const seg = & cm -> seg ; int high_q = ( int ) ( rc -> avg_q > 48.0 ) ; int qi_delta ; if ( cm -> frame_type == KEY_FRAME ) { vpx_memset ( c...
-1,919,011,628,477,389,000
debian
11
0
static int output_to_inttgt ( int output ) { int i ; for ( i = 0 ; i < ARRAY_SIZE ( inttgt_output ) ; i ++ ) { if ( inttgt_output [ i ] [ 1 ] == output ) { return inttgt_output [ i ] [ 0 ] ; } } abort ( ) ; }
6,336,384,260,629,386,000
debian
21
0
static void dissect_zcl_ota_imagepagereq ( tvbuff_t * tvb , proto_tree * tree , guint * offset ) { guint8 field_ctrl ; field_ctrl = dissect_zcl_ota_field_ctrl_field ( tvb , tree , offset ) ; proto_tree_add_item ( tree , hf_zbee_zcl_ota_manufacturer_code , tvb , * offset , 2 , ENC_LITTLE_ENDIAN ) ; * offset += 2 ; ...
7,839,247,307,514,698,000
debian
100
0
static Image * ReadLABELImage ( const ImageInfo * image_info , ExceptionInfo * exception ) { char geometry [ MaxTextExtent ] , * property ; const char * label ; DrawInfo * draw_info ; Image * image ; MagickBooleanType status ; TypeMetric metrics ; size_t height , width ; assert ( image_info != ( const ImageInfo...
6,250,095,321,513,210,000
debian
17
0
void rfbSendBell ( rfbScreenInfoPtr rfbScreen ) { rfbClientIteratorPtr i ; rfbClientPtr cl ; rfbBellMsg b ; i = rfbGetClientIterator ( rfbScreen ) ; while ( ( cl = rfbClientIteratorNext ( i ) ) ) { b . type = rfbBell ; LOCK ( cl -> sendMutex ) ; if ( rfbWriteExact ( cl , ( char * ) & b , sz_rfbBellMsg ) < 0 ) {...
-7,614,722,514,335,376,000
chrome
14
0
TEST_F ( ProfileInfoCacheTest , CreateSupervisedTestingProfile ) { testing_profile_manager_ . CreateTestingProfile ( "default" ) ; base : : string16 supervised_user_name = ASCIIToUTF16 ( "Supervised User" ) ; testing_profile_manager_ . CreateTestingProfile ( "test1" , scoped_ptr < PrefServiceSyncable > ( ) , supervi...
7,651,945,086,108,393,000
debian
12
0
int qemuMonitorJSONSetMigrationSpeed ( qemuMonitorPtr mon , unsigned long bandwidth ) { int ret ; virJSONValuePtr cmd ; virJSONValuePtr reply = NULL ; cmd = qemuMonitorJSONMakeCommand ( "migrate_set_speed" , "U:value" , bandwidth * 1024ULL * 1024ULL , NULL ) ; if ( ! cmd ) return - 1 ; ret = qemuMonitorJSONComman...
7,092,216,800,726,730,000
debian
6
0
static int dissect_h245_T_al3_sendBufferSize ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { # line 332 "../../asn1/h245/h245.cnf" guint32 value ; offset = dissect_per_constrained_integer ( tvb , offset , actx , tree , hf_index , 0U , 16777215U , & value , ...
3,599,206,110,384,554,500
debian
44
0
static ossl_inline LHASH_OF ( type ) * lh_ ## type ## _new ( unsigned long ( * hfn ) ( const type * ) , int ( * cfn ) ( const type * , const type * ) ) { return ( LHASH_OF ( type ) * ) OPENSSL_LH_new ( ( OPENSSL_LH_HASHFUNC ) hfn , ( OPENSSL_LH_COMPFUNC ) cfn ) ; } static ossl_inline void lh_ ## type ## _free ( LHAS...
-3,337,205,971,666,909,000
debian
42
0
static void qtmd_update_model ( struct qtmd_model * model ) { struct qtmd_modelsym tmp ; int i , j ; if ( -- model -> shiftsleft ) { for ( i = model -> entries - 1 ; i >= 0 ; i -- ) { model -> syms [ i ] . cumfreq >>= 1 ; if ( model -> syms [ i ] . cumfreq <= model -> syms [ i + 1 ] . cumfreq ) { model -> syms...
4,208,859,344,475,021,000
chrome
19
0
static void get_symbols ( const UDateFormat * fmt , UDateFormatSymbolType type , UChar * array [ ] , int32_t arrayLength , int32_t lowestIndex , int32_t firstIndex , UErrorCode * status ) { int32_t count , i ; if ( U_FAILURE ( * status ) ) { return ; } count = udat_countSymbols ( fmt , type ) ; if ( count != arra...
7,364,333,987,762,520,000
chrome
24
1
static void print_mi_data ( VP9_COMMON * cm , FILE * file , const char * descriptor , size_t member_offset ) { int mi_row , mi_col ; int mi_index = 0 ; MODE_INFO * * mi = cm -> mi_grid_visible ; int rows = cm -> mi_rows ; int cols = cm -> mi_cols ; char prefix = descriptor [ 0 ] ; log_frame_info ( cm , descripto...
3,804,373,597,256,531,000
debian
4
0
static uchar * check_get_key ( ACL_USER * buff , size_t * length , my_bool not_used __attribute__ ( ( unused ) ) ) { * length = buff -> hostname_length ; return ( uchar * ) buff -> host . hostname ; }
2,895,622,461,494,525,400
debian
63
0
static void test_long_data_str ( ) { MYSQL_STMT * stmt ; int rc , i ; char data [ 255 ] ; long length ; ulong length1 ; MYSQL_RES * result ; MYSQL_BIND my_bind [ 2 ] ; my_bool is_null [ 2 ] ; char query [ MAX_TEST_QUERY_LENGTH ] ; myheader ( "test_long_data_str" ) ; rc = mysql_autocommit ( mysql , TRUE ) ; ...
-8,178,805,850,432,685,000
debian
8
0
static guint32 pad_offset ( struct tcpinfo * tcpinfo , guint32 fpdu_total_len , guint8 pad_len ) { if ( ( tcpinfo -> nxtseq - MPA_CRC_LEN - MPA_MARKER_LEN ) % MPA_MARKER_INTERVAL == 0 ) { return fpdu_total_len - MPA_CRC_LEN - MPA_MARKER_LEN - pad_len ; } else { return fpdu_total_len - MPA_CRC_LEN - pad_len ; } }
-4,271,192,073,087,307,000
debian
61
1
static int cavs_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) { AVSContext * h = avctx -> priv_data ; const uint8_t * buf = avpkt -> data ; int buf_size = avpkt -> size ; AVFrame * picture = data ; uint32_t stc = - 1 ; int input_size ; const uint8_t * buf_end ; const...
-6,068,399,010,699,046,000
debian
160
1
static int dca_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame_ptr , AVPacket * avpkt ) { AVFrame * frame = data ; const uint8_t * buf = avpkt -> data ; int buf_size = avpkt -> size ; int lfe_samples ; int num_core_channels = 0 ; int i , ret ; float * * samples_flt ; DCAContext * s = avctx...
-6,068,399,010,699,046,000
debian
3
0
static int dca_exss_mask2count ( int mask ) { return av_popcount ( mask ) + av_popcount ( mask & ( DCA_EXSS_CENTER_LEFT_RIGHT | DCA_EXSS_FRONT_LEFT_RIGHT | DCA_EXSS_FRONT_HIGH_LEFT_RIGHT | DCA_EXSS_WIDE_LEFT_RIGHT | DCA_EXSS_SIDE_LEFT_RIGHT | DCA_EXSS_SIDE_HIGH_LEFT_RIGHT | DCA_EXSS_SIDE_REAR_LEFT_RIGHT | DCA_EXSS_REA...
-2,423,144,171,479,607,000
debian
5
0
static void pdf_copy_gstate ( fz_context * ctx , pdf_gstate * gs , pdf_gstate * old ) { pdf_drop_gstate ( ctx , gs ) ; * gs = * old ; pdf_keep_gstate ( ctx , gs ) ; }
-4,534,372,572,324,105,700
debian
17
0
static int get_riff ( AVFormatContext * s , AVIOContext * pb ) { AVIContext * avi = s -> priv_data ; char header [ 8 ] = { 0 } ; int i ; avio_read ( pb , header , 4 ) ; avi -> riff_end = avio_rl32 ( pb ) ; avi -> riff_end += avio_tell ( pb ) ; avio_read ( pb , header + 4 , 4 ) ; for ( i = 0 ; avi_headers [ i...
3,599,206,110,384,554,500
debian
36
0
static ossl_inline t2 * sk_ ## t1 ## _shift ( STACK_OF ( t1 ) * sk ) { return ( t2 * ) OPENSSL_sk_shift ( ( OPENSSL_STACK * ) sk ) ; } static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) { OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) fr...
-7,777,644,912,037,189,000
debian
559
0
static void dissect_udvm_bytecode ( tvbuff_t * udvm_tvb , packet_info * pinfo , proto_tree * sigcomp_udvm_tree , guint start_address ) { guint instruction ; gint offset = 0 ; gint start_offset = 0 ; gint len ; gint n ; guint instruction_no = 0 ; guint16 value = 0 ; proto_item * item , * item2 ; guint UDVM_addr...
-8,365,810,778,652,022,000
debian
23
0
static void virtio_net_set_status ( struct VirtIODevice * vdev , uint8_t status ) { VirtIONet * n = to_virtio_net ( vdev ) ; virtio_net_vhost_status ( n , status ) ; if ( ! n -> tx_waiting ) { return ; } if ( virtio_net_started ( n , status ) && ! n -> vhost_started ) { if ( n -> tx_timer ) { qemu_mod_timer ( n...
-6,068,976,579,504,841,000
debian
13
0
static void ctl_putint ( const char * tag , long ival ) { register char * cp ; register const char * cq ; char buffer [ 200 ] ; cp = buffer ; cq = tag ; while ( * cq != '\0' ) * cp ++ = * cq ++ ; * cp ++ = '=' ; INSIST ( ( cp - buffer ) < ( int ) sizeof ( buffer ) ) ; snprintf ( cp , sizeof ( buffer ) - ( cp -...
1,312,888,211,311,687,000
debian
10
0
static guint64 lbmpdm_fetch_uint64_encoded ( tvbuff_t * tvb , int offset , int encoding ) { guint64 value = 0 ; if ( encoding == ENC_BIG_ENDIAN ) { value = tvb_get_ntoh64 ( tvb , offset ) ; } else { value = tvb_get_letoh64 ( tvb , offset ) ; } return ( value ) ; }
-192,019,917,869,801,250
debian
22
0
static void steamdiscover_dissect_body_proofresponse ( tvbuff_t * tvb , packet_info * pinfo , proto_tree * tree , gint offset , gint bytes_left ) { gint len ; gint64 value ; protobuf_desc_t pb = { tvb , offset , bytes_left } ; protobuf_tag_t tag = { 0 , 0 , 0 } ; while ( protobuf_iter_next ( & pb , & tag ) ) {...
-7,470,076,990,396,875,000
chrome
2
0
static void kq_sighandler ( int sig ) { }
7,909,110,399,479,437,000
chrome
3
0
void hb_set_add_range ( hb_set_t * set , hb_codepoint_t first , hb_codepoint_t last ) { set -> add_range ( first , last ) ; }
-2,943,582,541,244,388,000
chrome
48
0
unsigned int vp9_variance ## W ## x ## H ## _c ( const uint8_t * a , int a_stride , const uint8_t * b , int b_stride , unsigned int * sse ) { int sum ; variance ( a , a_stride , b , b_stride , W , H , sse , & sum ) ; return * sse - ( ( ( int64_t ) sum * sum ) / ( W * H ) ) ; \ } # define SUBPIX_VAR ( W , H ) unsig...
-5,615,323,818,347,734,000
debian
10
0
void flush_thread_cache ( ) { mysql_mutex_lock ( & LOCK_thread_count ) ; kill_cached_threads ++ ; while ( cached_thread_count ) { mysql_cond_broadcast ( & COND_thread_cache ) ; mysql_cond_wait ( & COND_flush_thread_cache , & LOCK_thread_count ) ; } kill_cached_threads -- ; mysql_mutex_unlock ( & LOCK_thread_cou...
8,323,148,621,905,689,000
chrome
49
0
int vp8_denoiser_allocate ( VP8_DENOISER * denoiser , int width , int height , int num_mb_rows , int num_mb_cols , int mode ) { int i ; assert ( denoiser ) ; denoiser -> num_mb_cols = num_mb_cols ; for ( i = 0 ; i < MAX_REF_FRAMES ; i ++ ) { denoiser -> yv12_running_avg [ i ] . flags = 0 ; if ( vp8_yv12_alloc_f...
-4,765,077,557,530,511,000
chrome
35
0
static int ogg_read_header ( AVFormatContext * s ) { struct ogg * ogg = s -> priv_data ; int ret , i ; ogg -> curidx = - 1 ; do { ret = ogg_packet ( s , NULL , NULL , NULL , NULL ) ; if ( ret < 0 ) { ogg_read_close ( s ) ; return ret ; } } while ( ! ogg -> headers ) ; av_log ( s , AV_LOG_TRACE , "found head...
455,172,021,572,601,150
debian
7
0
static int hextoint ( int c ) { if ( ! isascii ( ( int ) c ) ) return ( - 1 ) ; if ( isdigit ( ( int ) c ) ) return ( c - '0' ) ; if ( ( c >= 'a' ) && ( c <= 'f' ) ) return ( c + 10 - 'a' ) ; if ( ( c >= 'A' ) && ( c <= 'F' ) ) return ( c + 10 - 'A' ) ; return ( - 1 ) ; }
-8,556,362,624,908,896,000
debian
73
0
static void generate_joint_tables ( HYuvContext * s ) { uint16_t symbols [ 1 << VLC_BITS ] ; uint16_t bits [ 1 << VLC_BITS ] ; uint8_t len [ 1 << VLC_BITS ] ; if ( s -> bitstream_bpp < 24 ) { int p , i , y , u ; for ( p = 0 ; p < 3 ; p ++ ) { for ( i = y = 0 ; y < 256 ; y ++ ) { int len0 = s -> len [ 0 ] [ ...
3,649,198,920,984,613,400
debian
11
0
static inline int vmsvga_fifo_length ( struct vmsvga_state_s * s ) { int num ; if ( ! s -> config || ! s -> enable ) { return 0 ; } num = CMD ( next_cmd ) - CMD ( stop ) ; if ( num < 0 ) { num += CMD ( max ) - CMD ( min ) ; } return num >> 2 ; }
-6,351,630,154,286,607,000
debian
22
1
size_t compile_tree ( struct filter_op * * fop ) { int i = 1 ; struct filter_op * array = NULL ; struct unfold_elm * ue ; BUG_IF ( tree_root == NULL ) ; fprintf ( stdout , " Unfolding the meta-tree " ) ; fflush ( stdout ) ; unfold_blk ( & tree_root ) ; fprintf ( stdout , " done.\n\n" ) ; labels_to_offsets ( ) ...
-5,780,611,388,839,126,000
chrome
11
0
xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault ( xmlParserInputBufferCreateFilenameFunc func ) { xmlParserInputBufferCreateFilenameFunc old ; xmlMutexLock ( xmlThrDefMutex ) ; old = xmlParserInputBufferCreateFilenameValueThrDef ; if ( old == NULL ) { old = __xmlParserInputBu...
7,092,216,800,726,730,000
debian
4
0
static int dissect_h245_CertSelectionCriteria ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) { offset = dissect_per_constrained_sequence_of ( tvb , offset , actx , tree , hf_index , ett_h245_CertSelectionCriteria , CertSelectionCriteria_sequence_of , 1 , 16 ,...
6,862,887,795,439,011,000
chrome
27
0
TEST_F ( SSLErrorAssistantTest , DynamicInterstitialListMatch ) { ASSERT_TRUE ( embedded_test_server ( ) -> Start ( ) ) ; EXPECT_EQ ( 1u , ssl_info ( ) . public_key_hashes . size ( ) ) ; auto config_proto = std : : make_unique < chrome_browser_ssl : : SSLErrorAssistantConfig > ( ) ; config_proto -> set_version_id (...
7,092,216,800,726,730,000
debian
4
0
static int dissect_h245_T_mobileOperationTransmitCapability ( 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_T_mobileOperationTransmitCapability , T_mobileOperationTransmitCapabi...
4,511,225,370,772,574,700
debian
17
0
static int sapi_uwsgi_read_post ( char * buffer , uint count_bytes TSRMLS_DC ) # endif { uint read_bytes = 0 ; struct wsgi_request * wsgi_req = ( struct wsgi_request * ) SG ( server_context ) ; count_bytes = MIN ( count_bytes , wsgi_req -> post_cl - SG ( read_post_bytes ) ) ; while ( read_bytes < count_bytes ) { s...
6,336,384,260,629,386,000
debian
50
0
void dissect_zcl_power_config_attr_data ( proto_tree * tree , tvbuff_t * tvb , guint * offset , guint16 attr_id , guint data_type ) { proto_item * it ; static const int * mains_alarm_mask [ ] = { & hf_zbee_zcl_power_config_mains_alarm_mask_low , & hf_zbee_zcl_power_config_mains_alarm_mask_high , & hf_zbee_zcl_power_...
4,980,785,414,205,851,000
chrome
14
0
IN_PROC_BROWSER_TEST_F ( FramebustBlockBrowserTest , AllowRadioButtonSelected ) { const GURL url = embedded_test_server ( ) -> GetURL ( "/iframe.html" ) ; ui_test_utils : : NavigateToURL ( browser ( ) , url ) ; auto * helper = GetFramebustTabHelper ( ) ; helper -> AddBlockedUrl ( url , base : : BindOnce ( & Framebu...
-3,819,889,754,140,204,000
debian
20
0
static bool parse_policyConstraints ( chunk_t blob , int level0 , private_x509_cert_t * this ) { asn1_parser_t * parser ; chunk_t object ; int objectID ; bool success ; parser = asn1_parser_create ( policyConstraintsObjects , blob ) ; parser -> set_top_level ( parser , level0 ) ; while ( parser -> iterate ( pars...
-6,872,005,221,209,485,000
chrome
11
0
static void decStatus ( decNumber * dn , uInt status , decContext * set ) { if ( status & DEC_NaNs ) { if ( status & DEC_sNaN ) status &= ~ DEC_sNaN ; else { uprv_decNumberZero ( dn ) ; dn -> bits = DECNAN ; } } uprv_decContextSetStatus ( set , status ) ; return ; }
-7,237,039,260,294,671,000
debian
20
0
static int dissect_nlm_test ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , int version , rpc_call_info_value * rpc_call ) { if ( nlm_match_msgres ) { if ( rpc_call -> proc == 6 ) { if ( ( ! pinfo -> fd -> flags . visited ) ) { nlm_register_unmatched_msg ( pinfo , tvb , offset ) ; } else...
-3,740,862,514,502,467,000
debian
19
0
static void dumpcffcidset ( struct alltabs * at ) { int gid , start ; putc ( 2 , at -> charset ) ; start = - 1 ; for ( gid = 1 ; gid < at -> gi . gcnt ; ++ gid ) { if ( start == - 1 ) start = gid ; else if ( at -> gi . bygid [ gid ] - at -> gi . bygid [ start ] != gid - start ) { putshort ( at -> charset , at ...
-5,268,859,819,325,808,000
debian
3
0
static gboolean lacks_extension_info ( NautilusFile * file ) { return file -> details -> pending_info_providers != NULL ; }
-1,929,262,071,302,712,000
debian
21
0
static void * Type_Data_Read ( struct _cms_typehandler_struct * self , cmsIOHANDLER * io , cmsUInt32Number * nItems , cmsUInt32Number SizeOfTag ) { cmsICCData * BinData ; cmsUInt32Number LenOfData ; * nItems = 0 ; if ( SizeOfTag < sizeof ( cmsUInt32Number ) ) return NULL ; LenOfData = SizeOfTag - sizeof ( cmsUInt3...
2,578,089,348,587,614,000
debian
3
0
EVP_PKEY * d2i_PrivateKey_fp ( FILE * fp , EVP_PKEY * * a ) { return ASN1_d2i_fp_of ( EVP_PKEY , EVP_PKEY_new , d2i_AutoPrivateKey , fp , a ) ; }
4,489,017,523,191,997,000
debian
4
0
static int dissect_h225_T_invalidTerminalAliases ( 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_T_invalidTerminalAliases , T_invalidTerminalAliases_sequence ) ; return offset ...
7,749,168,290,238,235,000
debian
38
0
static int test_streaming ( xd3_stream * in_stream , uint8_t * encbuf , uint8_t * decbuf , uint8_t * delbuf , usize_t megs ) { xd3_stream estream , dstream ; int ret ; usize_t i , delsize , decsize ; xd3_config cfg ; xd3_init_config ( & cfg , in_stream -> flags ) ; cfg . flags |= XD3_COMPLEVEL_6 ; if ( ( ret = x...
7,072,059,544,915,634,000
chrome
404
0
static void U_CALLCONV _LMBCSOpen ## n ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err ) \ { _LMBCSOpenWorker ( _this , pArgs , err , n ) ; } static void _LMBCSOpenWorker ( UConverter * _this , UConverterLoadArgs * pArgs , UErrorCode * err , ulmbcs_byte_t OptGroup ) { UConverterDataLMBCS * extr...
-7,136,186,224,744,988,000
debian
5
0
static bool checkprotoprefix ( struct Curl_easy * data , struct connectdata * conn , const char * s ) { # ifndef CURL_DISABLE_RTSP if ( conn -> handler -> protocol & CURLPROTO_RTSP ) return checkrtspprefix ( data , s ) ; # else ( void ) conn ; # endif return checkhttpprefix ( data , s ) ; }
7,424,930,167,238,098,000
debian
16
0
static void snoop_urb_data ( struct urb * urb , unsigned len ) { int i , size ; len = min ( len , usbfs_snoop_max ) ; if ( ! usbfs_snoop || len == 0 ) return ; if ( urb -> num_sgs == 0 ) { print_hex_dump ( KERN_DEBUG , "data: " , DUMP_PREFIX_NONE , 32 , 1 , urb -> transfer_buffer , len , 1 ) ; return ; } for ( ...
5,918,484,636,148,311,000
debian
39
0
gx_color_index mem_mapped_map_rgb_color ( gx_device * dev , const gx_color_value cv [ ] ) { gx_device_memory * const mdev = ( gx_device_memory * ) dev ; byte br = gx_color_value_to_byte ( cv [ 0 ] ) ; register const byte * pptr = mdev -> palette . data ; int cnt = mdev -> palette . size ; const byte * which = 0 ; ...
-2,607,754,285,145,856,500
debian
11
0
static void idr_set_num ( unsigned char * p , int num ) { static const char xdig [ ] = { '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , 'M' , 'N' , 'O' , 'P' , 'Q' , 'R' , 'S' , 'T' , 'U' , 'V' , 'W' , 'X' , 'Y' , 'Z' } ; num %= si...
-3,203,201,540,003,796,000
debian
2
0
static inline void tswap32s ( uint32_t * s ) { }
-7,990,991,774,694,156,000
debian
103
0
static int unpack_superblocks ( Vp3DecodeContext * s , GetBitContext * gb ) { int superblock_starts [ 3 ] = { 0 , s -> u_superblock_start , s -> v_superblock_start } ; int bit = 0 ; int current_superblock = 0 ; int current_run = 0 ; int num_partial_superblocks = 0 ; int i , j ; int current_fragment ; int plan...
-5,456,913,190,944,845,000
chrome
42
0
TEST_F ( TemplateURLTest , Suggestions ) { struct TestData { const int accepted_suggestion ; const base : : string16 original_query_for_suggestion ; const std : : string expected_result ; } test_data [ ] = { { TemplateURLRef : : NO_SUGGESTIONS_AVAILABLE , base : : string16 ( ) , "http://bar/foo?q=foobar" } , {...
8,484,475,213,808,847,000
debian
11
0
static void qdev_print_props ( Monitor * mon , DeviceState * dev , Property * props , const char * prefix , int indent ) { char buf [ 64 ] ; if ( ! props ) return ; while ( props -> name ) { if ( props -> info -> print ) { props -> info -> print ( dev , props , buf , sizeof ( buf ) ) ; qdev_printf ( "%s-prop: %s ...
1,760,449,185,745,615,400
debian
3
0
void TSStatIntDecrement ( int id , TSMgmtInt amount ) { RecDecrRawStat ( api_rsb , nullptr , id , amount ) ; }
3,919,646,340,804,521,500
debian
3
0
static int pbase_tree_cache_ix_incr ( int ix ) { return ( ix + 1 ) % ARRAY_SIZE ( pbase_tree_cache ) ; }
2,755,982,813,601,945,000
debian
10
0
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 ; } }
End of preview. Expand in Data Studio

This is an unofficial HuggingFace version of "ReVeal" dataset from "Deep Learning based Vulnerability Detection: Are We There Yet? ".

Downloads last month
90

Paper for claudios/ReVeal