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 |
|---|---|---|---|---|
-2,751,047,985,690,578,400 | debian | 22 | 0 | static void test_keys ( ELG_secret_key * sk , unsigned int nbits ) {
ELG_public_key pk ;
MPI test = mpi_alloc ( 0 ) ;
MPI out1_a = mpi_alloc ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;
MPI out1_b = mpi_alloc ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;
MPI out2 = mpi_alloc ( mpi_nlimb_hint_from_nbits ( nbits ) ) ;
pk ... |
-5,385,892,304,146,931,000 | debian | 16 | 0 | static void put_payload_header ( AVFormatContext * s , ASFStream * stream , int64_t presentation_time , int m_obj_size , int m_obj_offset , int payload_len , int flags ) {
ASFContext * asf = s -> priv_data ;
AVIOContext * pb = & asf -> pb ;
int val ;
val = stream -> num ;
if ( flags & AV_PKT_FLAG_KEY ) val |= ASF_... |
214,341,372,476,109,920 | debian | 10 | 0 | static void copy_subdir_files ( char * subdir ) {
char old_path [ MAXPGPATH ] ;
char new_path [ MAXPGPATH ] ;
remove_new_subdir ( subdir , true ) ;
snprintf ( old_path , sizeof ( old_path ) , "%s/%s" , old_cluster . pgdata , subdir ) ;
snprintf ( new_path , sizeof ( new_path ) , "%s/%s" , new_cluster . pgdata , su... |
3,919,646,340,804,521,500 | debian | 43 | 0 | static void get_object_list ( int ac , const char * * av ) {
struct rev_info revs ;
char line [ 1000 ] ;
int flags = 0 ;
init_revisions ( & revs , NULL ) ;
save_commit_buffer = 0 ;
setup_revisions ( ac , av , & revs , NULL ) ;
is_repository_shallow ( ) ;
while ( fgets ( line , sizeof ( line ) , stdin ) != NULL ... |
7,909,110,399,479,437,000 | chrome | 3 | 0 | hb_set_t * hb_set_reference ( hb_set_t * set ) {
return hb_object_reference ( set ) ;
} |
8,461,266,595,329,035,000 | chrome | 14 | 0 | static int gettime ( struct event_base * base , struct timeval * tp ) {
if ( base -> tv_cache . tv_sec ) {
* tp = base -> tv_cache ;
return ( 0 ) ;
}
# if defined ( HAVE_CLOCK_GETTIME ) && defined ( CLOCK_MONOTONIC ) struct timespec ts ;
if ( use_monotonic && clock_gettime ( CLOCK_MONOTONIC , & ts ) == 0 ) {
tp ... |
6,336,384,260,629,386,000 | debian | 6 | 0 | void proto_reg_handoff_zbee_zcl_basic ( void ) {
dissector_handle_t basic_handle ;
basic_handle = find_dissector ( ZBEE_PROTOABBREV_ZCL_BASIC ) ;
dissector_add_uint ( "zbee.zcl.cluster" , ZBEE_ZCL_CID_BASIC , basic_handle ) ;
zbee_zcl_init_cluster ( proto_zbee_zcl_basic , ett_zbee_zcl_basic , ZBEE_ZCL_CID_BASIC , h... |
2,713,698,759,296,604,700 | debian | 43 | 0 | static void draw_line ( uint8_t * buf , int sx , int sy , int ex , int ey , int w , int h , int stride , int color ) {
int x , y , fr , f ;
sx = av_clip ( sx , 0 , w - 1 ) ;
sy = av_clip ( sy , 0 , h - 1 ) ;
ex = av_clip ( ex , 0 , w - 1 ) ;
ey = av_clip ( ey , 0 , h - 1 ) ;
buf [ sy * stride + sx ] += color ;
i... |
-2,385,618,084,223,928,300 | debian | 4 | 0 | static void decode_flush ( AVCodecContext * avctx ) {
RALFContext * ctx = avctx -> priv_data ;
ctx -> has_pkt = 0 ;
} |
-1,055,531,103,257,174,900 | debian | 11 | 0 | static GList * completion_joinlist ( GList * list1 , GList * list2 ) {
GList * old ;
old = list2 ;
while ( list2 != NULL ) {
if ( ! glist_find_icase_string ( list1 , list2 -> data ) ) list1 = g_list_append ( list1 , list2 -> data ) ;
else g_free ( list2 -> data ) ;
list2 = list2 -> next ;
}
g_list_free ( old ) ... |
2,713,698,759,296,604,700 | debian | 22 | 0 | static void dct_unquantize_h263_inter_c ( MpegEncContext * s , int16_t * block , int n , int qscale ) {
int i , level , qmul , qadd ;
int nCoeffs ;
assert ( s -> block_last_index [ n ] >= 0 ) ;
qadd = ( qscale - 1 ) | 1 ;
qmul = qscale << 1 ;
nCoeffs = s -> inter_scantable . raster_end [ s -> block_last_index [ n... |
-3,740,862,514,502,467,000 | debian | 11 | 0 | static unsigned int hashname ( const char * name ) {
unsigned int hash = 0 ;
while ( * name ) {
unsigned int extra = ( hash >> 27 ) ;
hash <<= 5 ;
hash += * name & 0x1f ;
hash ^= extra ;
++ name ;
}
return ( hash % 257 ) ;
} |
7,039,307,292,471,245,000 | debian | 9 | 0 | static guint16 de_nw_call_ctrl_cap ( tvbuff_t * tvb , proto_tree * tree , packet_info * pinfo _U_ , guint32 offset , guint len _U_ , gchar * add_string _U_ , int string_len _U_ ) {
guint32 curr_offset ;
curr_offset = offset ;
proto_tree_add_bits_item ( tree , hf_gsm_a_spare_bits , tvb , ( curr_offset << 3 ) , 7 , EN... |
-1,055,531,103,257,174,900 | debian | 6 | 0 | static void sig_complete_unalias ( GList * * list , WINDOW_REC * window , const char * word , const char * line , int * want_space ) {
g_return_if_fail ( list != NULL ) ;
g_return_if_fail ( word != NULL ) ;
* list = completion_get_aliases ( word ) ;
if ( * list != NULL ) signal_stop ( ) ;
} |
-5,615,323,818,347,734,000 | debian | 25 | 0 | static void init_sql_statement_names ( ) {
char * first_com = ( char * ) offsetof ( STATUS_VAR , com_stat [ 0 ] ) ;
char * last_com = ( char * ) offsetof ( STATUS_VAR , com_stat [ ( uint ) SQLCOM_END ] ) ;
int record_size = ( char * ) offsetof ( STATUS_VAR , com_stat [ 1 ] ) - ( char * ) offsetof ( STATUS_VAR , com_... |
-5,640,788,001,150,418,000 | debian | 16 | 0 | void show_setup_info ( tvbuff_t * tvb , proto_tree * tree , t38_conv * p_t38_conversation ) {
proto_tree * t38_setup_tree ;
proto_item * ti ;
if ( ! p_t38_conversation || p_t38_conversation -> setup_frame_number == 0 ) {
return ;
}
ti = proto_tree_add_string_format ( tree , hf_t38_setup , tvb , 0 , 0 , "" , "Stre... |
-6,552,851,419,396,579,000 | debian | 14 | 0 | static int SpoolssSetForm_q ( tvbuff_t * tvb , int offset , packet_info * pinfo , proto_tree * tree , dcerpc_info * di , guint8 * drep _U_ ) {
char * name = NULL ;
guint32 level ;
proto_item * hidden_item ;
hidden_item = proto_tree_add_uint ( tree , hf_form , tvb , offset , 0 , 1 ) ;
PROTO_ITEM_SET_HIDDEN ( hidden... |
3,804,373,597,256,531,000 | debian | 3 | 0 | inline GRANT_COLUMN * column_hash_search ( GRANT_TABLE * t , const char * cname , uint length ) {
return ( GRANT_COLUMN * ) hash_search ( & t -> hash_columns , ( uchar * ) cname , length ) ;
} |
-2,908,211,205,972,632,000 | debian | 15 | 0 | void mainwindow_destroy ( MAIN_WINDOW_REC * window ) {
g_return_if_fail ( window != NULL ) ;
mainwindows = g_slist_remove ( mainwindows , window ) ;
signal_emit ( "mainwindow destroyed" , 1 , window ) ;
term_window_destroy ( window -> screen_win ) ;
if ( mainwindows != NULL ) {
gui_windows_remove_parent ( window ... |
6,250,095,321,513,210,000 | debian | 21 | 0 | rfbBool rfbFilenameTranslate2UNIX ( rfbClientPtr cl , char * path , char * unixPath , size_t unixPathMaxLen ) {
int x ;
char * home = NULL ;
FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN ( "" , cl , FALSE ) ;
if ( strlen ( path ) >= unixPathMaxLen ) return FALSE ;
if ( path [ 0 ] == 'C' && path [ 1 ] == ':' ) strcpy ( unix... |
-1,315,695,702,746,584,300 | debian | 21 | 0 | void proto_item_prepend_text ( proto_item * pi , const char * format , ... ) {
field_info * fi = NULL ;
char representation [ ITEM_LABEL_LENGTH ] ;
va_list ap ;
TRY_TO_FAKE_THIS_REPR_VOID ( pi ) ;
fi = PITEM_FINFO ( pi ) ;
if ( fi == NULL ) {
return ;
}
if ( ! PROTO_ITEM_IS_HIDDEN ( pi ) ) {
if ( fi -> rep ==... |
4,313,735,399,044,135,400 | debian | 23 | 1 | sf_count_t psf_fwrite ( const void * ptr , sf_count_t bytes , sf_count_t items , SF_PRIVATE * psf ) {
sf_count_t total = 0 ;
ssize_t count ;
if ( psf -> virtual_io ) return psf -> vio . write ( ptr , bytes * items , psf -> vio_user_data ) / bytes ;
items *= bytes ;
if ( items <= 0 ) return 0 ;
while ( items > 0 )... |
1,245,821,301,839,614,700 | debian | 7 | 0 | static void mark_desktop_file_executable_task_thread_func ( GTask * task , gpointer source_object , gpointer task_data , GCancellable * cancellable ) {
MarkTrustedJob * job = task_data ;
CommonJob * common ;
common = ( CommonJob * ) job ;
nautilus_progress_info_start ( job -> common . progress ) ;
mark_desktop_fil... |
4,980,785,414,205,851,000 | chrome | 22 | 0 | IN_PROC_BROWSER_TEST_F ( FramebustBlockBrowserTest , ModelAllowsRedirection ) {
const GURL blocked_urls [ ] = {
GURL ( chrome : : kChromeUIHistoryURL ) , GURL ( chrome : : kChromeUISettingsURL ) , GURL ( chrome : : kChromeUIVersionURL ) , }
;
auto * helper = GetFramebustTabHelper ( ) ;
for ( const GURL & url : blo... |
-1,315,695,702,746,584,300 | debian | 5 | 0 | gint proto_registrar_get_length ( const int n ) {
header_field_info * hfinfo ;
PROTO_REGISTRAR_GET_NTH ( n , hfinfo ) ;
return ftype_length ( hfinfo -> type ) ;
} |
-2,928,324,134,072,492,500 | debian | 12 | 0 | void VoIPcalls_init_tap ( void ) {
GString * error_string ;
if ( have_voip_tap_listener == FALSE ) {
error_string = register_tap_listener ( "voip" , & ( the_tapinfo_struct . voip_dummy ) , NULL , 0 , voip_calls_dlg_reset , VoIPcalls_packet , voip_calls_dlg_draw ) ;
if ( error_string != NULL ) {
simple_dialog ( ESD... |
-643,892,134,151,497,100 | debian | 14 | 0 | static int seqvideo_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {
const uint8_t * buf = avpkt -> data ;
int buf_size = avpkt -> size ;
int ret ;
SeqVideoContext * seq = avctx -> priv_data ;
if ( ( ret = ff_reget_buffer ( avctx , & seq -> frame ) ) < 0 ) {
av_log ( se... |
6,249,489,553,242,543,000 | debian | 17 | 0 | static void config_phone ( config_tree * ptree ) {
int i ;
string_node * sn ;
i = 0 ;
sn = HEAD_PFIFO ( ptree -> phone ) ;
for ( ;
sn != NULL ;
sn = sn -> link ) {
if ( i < COUNTOF ( sys_phone ) - 1 ) {
sys_phone [ i ++ ] = estrdup ( sn -> s ) ;
sys_phone [ i ] = NULL ;
}
else {
msyslog ( LOG_INFO , "phone... |
237,530,479,040,685,470 | chrome | 134 | 0 | static void U_CALLCONV UConverter_fromUnicode_HZ_OFFSETS_LOGIC ( UConverterFromUnicodeArgs * args , UErrorCode * err ) {
const UChar * mySource = args -> source ;
char * myTarget = args -> target ;
int32_t * offsets = args -> offsets ;
int32_t mySourceIndex = 0 ;
int32_t myTargetIndex = 0 ;
int32_t targetLength =... |
1,161,306,432,039,958,300 | chrome | 11 | 0 | static int reassociate ( struct evport_data * epdp , struct fd_info * fdip , int fd ) {
int sysevents = FDI_TO_SYSEVENTS ( fdip ) ;
if ( sysevents != 0 ) {
if ( port_associate ( epdp -> ed_port , PORT_SOURCE_FD , fd , sysevents , NULL ) == - 1 ) {
event_warn ( "port_associate" ) ;
return ( - 1 ) ;
}
}
check_evp... |
-1,102,844,685,921,778,700 | debian | 6 | 0 | static const char * default_iconv_charset ( const char * charset ) {
if ( charset != NULL && charset [ 0 ] != '\0' ) return charset ;
# if HAVE_LOCALE_CHARSET && ! defined ( __APPLE__ ) return locale_charset ( ) ;
# elif HAVE_NL_LANGINFO return nl_langinfo ( CODESET ) ;
# else return "" ;
# endif } |
-7,034,148,853,749,334,000 | debian | 70 | 0 | static YYSIZE_T yysyntax_error ( char * yyresult , int yystate , int yychar ) {
int yyn = yypact [ yystate ] ;
if ( ! ( YYPACT_NINF < yyn && yyn <= YYLAST ) ) return 0 ;
else {
int yytype = YYTRANSLATE ( yychar ) ;
YYSIZE_T yysize0 = yytnamerr ( 0 , yytname [ yytype ] ) ;
YYSIZE_T yysize = yysize0 ;
YYSIZE_T yys... |
3,599,206,110,384,554,500 | debian | 45 | 1 | static ossl_inline int sk_ ## t1 ## _push ( STACK_OF ( t1 ) * sk , t2 * ptr ) {
return OPENSSL_sk_push ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;
}
static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {
return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ... |
-2,420,110,701,634,682,000 | debian | 26 | 0 | static void test_rfc2231_parser ( void ) {
const char * input = ";
key4*=us-ascii''foo" ";
key*2=ba%" ";
key2*0=a" ";
key3*0*=us-ascii'en'xyz" ";
key*0=\"foo\"" ";
key2*1*=b%25" ";
key3*1=plop%" ";
key*1=baz" ;
const char * output [ ] = {
"key" , "foobazba%" , "key2*" , "''ab%25" , "key3*" , "us-ascii'en'xyz... |
-4,527,380,754,569,408,000 | chrome | 6 | 1 | static hb_feature_t * feature_reference ( hb_feature_t * g ) {
hb_feature_t * c = ( hb_feature_t * ) calloc ( 1 , sizeof ( hb_feature_t ) ) ;
if ( unlikely ( ! c ) ) return NULL ;
* c = * g ;
return c ;
} |
6,458,694,302,493,204,000 | debian | 31 | 0 | static Datum ExecEvalConvertRowtype ( ConvertRowtypeExprState * cstate , ExprContext * econtext , bool * isNull , ExprDoneCond * isDone ) {
ConvertRowtypeExpr * convert = ( ConvertRowtypeExpr * ) cstate -> xprstate . expr ;
HeapTuple result ;
Datum tupDatum ;
HeapTupleHeader tuple ;
HeapTupleData tmptup ;
tupDatu... |
7,651,945,086,108,393,000 | debian | 31 | 0 | static int qemuMonitorJSONGetBlockJobInfoOne ( virJSONValuePtr entry , const char * device , virDomainBlockJobInfoPtr info ) {
const char * this_dev ;
const char * type ;
unsigned long long speed_bytes ;
if ( ( this_dev = virJSONValueObjectGetString ( entry , "device" ) ) == NULL ) {
qemuReportError ( VIR_ERR_INTE... |
8,461,266,595,329,035,000 | chrome | 29 | 1 | static void event_process_active ( struct event_base * base ) {
struct event * ev ;
struct event_list * activeq = NULL ;
int i ;
short ncalls ;
for ( i = 0 ;
i < base -> nactivequeues ;
++ i ) {
if ( TAILQ_FIRST ( base -> activequeues [ i ] ) != NULL ) {
activeq = base -> activequeues [ i ] ;
break ;
}
}
a... |
8,458,201,026,073,747,000 | debian | 28 | 0 | int jbig2_decode_generic_region ( Jbig2Ctx * ctx , Jbig2Segment * segment , const Jbig2GenericRegionParams * params , Jbig2ArithState * as , Jbig2Image * image , Jbig2ArithCx * GB_stats ) {
const int8_t * gbat = params -> gbat ;
if ( image -> stride * image -> height > ( 1 << 24 ) && segment -> data_length < image ->... |
-5,511,323,081,862,746,000 | debian | 7 | 0 | static gboolean destroy_srcdsc ( gpointer k _U_ , gpointer v , gpointer p _U_ ) {
k12_src_desc_t * rec = ( k12_src_desc_t * ) v ;
g_free ( rec -> input_name ) ;
g_free ( rec -> stack_file ) ;
g_free ( rec ) ;
return TRUE ;
} |
-1,315,695,702,746,584,300 | debian | 7 | 0 | int proto_get_first_protocol ( void * * cookie ) {
protocol_t * protocol ;
if ( protocols == NULL ) return - 1 ;
* cookie = protocols ;
protocol = ( protocol_t * ) protocols -> data ;
return protocol -> proto_id ;
} |
3,599,206,110,384,554,500 | debian | 42 | 0 | static ossl_inline int sk_ ## t1 ## _unshift ( STACK_OF ( t1 ) * sk , t2 * ptr ) {
return OPENSSL_sk_unshift ( ( OPENSSL_STACK * ) sk , ( const void * ) ptr ) ;
}
static ossl_inline t2 * sk_ ## t1 ## _pop ( STACK_OF ( t1 ) * sk ) {
return ( t2 * ) OPENSSL_sk_pop ( ( OPENSSL_STACK * ) sk ) ;
}
static ossl_inline t... |
-2,127,895,299,879,503,400 | debian | 10 | 0 | void macio_ide_init_drives ( MACIOIDEState * s , DriveInfo * * hd_table ) {
int i ;
for ( i = 0 ;
i < 2 ;
i ++ ) {
if ( hd_table [ i ] ) {
ide_create_drive ( & s -> bus , i , hd_table [ i ] ) ;
}
}
} |
-2,607,754,285,145,856,500 | debian | 3 | 0 | static inline void set_num_712 ( unsigned char * p , char value ) {
* ( ( char * ) p ) = value ;
} |
-7,670,127,399,145,951,000 | debian | 18 | 0 | int gs_pop_string ( gs_main_instance * minst , gs_string * result ) {
i_ctx_t * i_ctx_p = minst -> i_ctx_p ;
ref vref ;
int code = pop_value ( i_ctx_p , & vref ) ;
if ( code < 0 ) return code ;
switch ( r_type ( & vref ) ) {
case t_name : name_string_ref ( minst -> heap , & vref , & vref ) ;
code = 1 ;
goto rst... |
-4,055,702,019,813,177,000 | debian | 15 | 0 | static call_list * call_list_append ( call_list * list , guint16 scallno ) {
call_list * node = wmem_new0 ( wmem_packet_scope ( ) , call_list ) ;
node -> scallno = scallno ;
if ( list ) {
call_list * cur = list ;
while ( cur -> next ) {
cur = cur -> next ;
}
cur -> next = node ;
return list ;
}
else {
retur... |
3,919,646,340,804,521,500 | debian | 3 | 0 | static int pack_options_allow_reuse ( void ) {
return allow_ofs_delta ;
} |
229,962,612,204,197,000 | debian | 22 | 0 | static void handle_new_lock_ctx ( struct xml_ctx * ctx , int tag_closed ) {
struct remote_lock * lock = ( struct remote_lock * ) ctx -> userData ;
git_SHA_CTX sha_ctx ;
unsigned char lock_token_sha1 [ 20 ] ;
if ( tag_closed && ctx -> cdata ) {
if ( ! strcmp ( ctx -> name , DAV_ACTIVELOCK_OWNER ) ) {
lock -> owner... |
-866,921,002,076,081,900 | debian | 116 | 0 | REGRESSION_TEST ( SDK_API_ENCODING ) ( RegressionTest * test , int , int * pstatus ) {
const char * url = "http://www.example.com/foo?fie= \"#%<>[]\\^`{
}
~&bar={
test}
&fum=Apache Traffic Server" ;
const char * url_encoded = "http://www.example.com/foo?fie=%20%22%23%25%3C%3E%5B%5D%5C%5E%60%7B%7D%7E&bar=%7Btest%7D&fu... |
6,302,861,533,225,985,000 | debian | 17 | 0 | static void pxa2xx_i2c_event ( I2CSlave * i2c , enum i2c_event event ) {
PXA2xxI2CSlaveState * slave = FROM_I2C_SLAVE ( PXA2xxI2CSlaveState , i2c ) ;
PXA2xxI2CState * s = slave -> host ;
switch ( event ) {
case I2C_START_SEND : s -> status |= ( 1 << 9 ) ;
s -> status &= ~ ( 1 << 0 ) ;
break ;
case I2C_START_RECV... |
2,100,112,064,176,019,200 | chrome | 29 | 0 | xsltDocumentPtr xsltLoadDocument ( xsltTransformContextPtr ctxt , const xmlChar * URI ) {
xsltDocumentPtr ret ;
xmlDocPtr doc ;
if ( ( ctxt == NULL ) || ( URI == NULL ) ) return ( NULL ) ;
if ( ctxt -> sec != NULL ) {
int res ;
res = xsltCheckRead ( ctxt -> sec , ctxt , URI ) ;
if ( res == 0 ) {
xsltTransformEr... |
6,298,409,723,927,571,000 | chrome | 2 | 1 | static void initial_reordering_non_myanmar_cluster ( const hb_ot_shape_plan_t * plan HB_UNUSED , hb_face_t * face HB_UNUSED , hb_buffer_t * buffer HB_UNUSED , unsigned int start HB_UNUSED , unsigned int end HB_UNUSED ) {
} |
8,461,782,184,979,846,000 | chrome | 7 | 0 | TEST_F ( ProtocolHandlerRegistryTest , TestDisablePreventsHandling ) {
ProtocolHandler ph1 = CreateProtocolHandler ( "test" , "test1" ) ;
registry ( ) -> OnAcceptRegisterProtocolHandler ( ph1 ) ;
ASSERT_TRUE ( registry ( ) -> IsHandledProtocol ( "test" ) ) ;
registry ( ) -> Disable ( ) ;
ASSERT_FALSE ( registry ( ... |
-7,795,592,811,940,875,000 | debian | 69 | 0 | static gcry_err_code_t pkcs1_encode_for_encryption ( gcry_mpi_t * r_result , unsigned int nbits , const unsigned char * value , size_t valuelen , const unsigned char * random_override , size_t random_override_len ) {
gcry_err_code_t rc = 0 ;
gcry_error_t err ;
unsigned char * frame = NULL ;
size_t nframe = ( nbits ... |
-1,102,844,685,921,778,700 | debian | 13 | 0 | struct archive_string * archive_strncat ( struct archive_string * as , const void * _p , size_t n ) {
size_t s ;
const char * p , * pp ;
p = ( const char * ) _p ;
s = 0 ;
pp = p ;
while ( s < n && * pp ) {
pp ++ ;
s ++ ;
}
if ( ( as = archive_string_append ( as , p , s ) ) == NULL ) __archive_errx ( 1 , "Out ... |
-4,341,894,042,551,388,000 | chrome | 58 | 1 | static int combined_motion_search ( VP9_COMP * cpi , MACROBLOCK * x , BLOCK_SIZE bsize , int mi_row , int mi_col , int_mv * tmp_mv , int * rate_mv , int64_t best_rd_sofar ) {
MACROBLOCKD * xd = & x -> e_mbd ;
MB_MODE_INFO * mbmi = & xd -> mi [ 0 ] -> mbmi ;
struct buf_2d backup_yv12 [ MAX_MB_PLANE ] = {
{
0 , 0 }
... |
6,453,796,474,132,806,000 | chrome | 9 | 1 | static void _UTF7Open ( UConverter * cnv , UConverterLoadArgs * pArgs , UErrorCode * pErrorCode ) {
if ( UCNV_GET_VERSION ( cnv ) <= 1 ) {
cnv -> fromUnicodeStatus = UCNV_GET_VERSION ( cnv ) << 28 ;
_UTF7Reset ( cnv , UCNV_RESET_BOTH ) ;
}
else {
* pErrorCode = U_ILLEGAL_ARGUMENT_ERROR ;
}
} |
-5,697,857,125,570,094,000 | chrome | 9 | 0 | static UBool _isPrivateuseVariantSubtag ( const char * s , int32_t len ) {
if ( len < 0 ) {
len = ( int32_t ) uprv_strlen ( s ) ;
}
if ( len >= 1 && len <= 8 && _isAlphaNumericString ( s , len ) ) {
return TRUE ;
}
return FALSE ;
} |
1,366,214,969,540,455,700 | debian | 97 | 1 | int i2d_ ## name ( type * a , unsigned char * * out ) ;
DECLARE_ASN1_ITEM ( itname ) # define DECLARE_ASN1_ENCODE_FUNCTIONS_const ( type , name ) type * d2i_ ## name ( type * * a , const unsigned char * * in , long len ) ;
int i2d_ ## name ( const type * a , unsigned char * * out ) ;
DECLARE_ASN1_ITEM ( name ) # def... |
3,557,739,556,029,059,000 | chrome | 18 | 0 | unsigned int vp9_sad ## m ## x ## n ## _avg_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , const uint8_t * second_pred ) {
uint8_t comp_pred [ m * n ] ;
vp9_comp_avg_pred ( comp_pred , second_pred , m , n , ref , ref_stride ) ;
return sad ( src , src_stride , comp_pred , m , m , n ... |
-5,861,712,607,647,761,000 | debian | 37 | 0 | void _zip_dirent_torrent_normalize ( struct zip_dirent * de ) {
static struct tm torrenttime ;
static time_t last_mod = 0 ;
if ( last_mod == 0 ) {
# ifdef HAVE_STRUCT_TM_TM_ZONE time_t now ;
struct tm * l ;
# endif torrenttime . tm_sec = 0 ;
torrenttime . tm_min = 32 ;
torrenttime . tm_hour = 23 ;
torrenttime ... |
-5,268,859,819,325,808,000 | debian | 16 | 0 | static void directory_load_cancel ( NautilusDirectory * directory ) {
NautilusFile * file ;
DirectoryLoadState * state ;
state = directory -> details -> directory_load_in_progress ;
if ( state != NULL ) {
file = state -> load_directory_file ;
file -> details -> loading_directory = FALSE ;
if ( file -> details ->... |
-4,635,544,075,321,012,000 | debian | 25 | 0 | size_t Curl_FormReader ( char * buffer , size_t size , size_t nitems , FILE * mydata ) {
struct Form * form ;
size_t wantedsize ;
size_t gotsize = 0 ;
form = ( struct Form * ) mydata ;
wantedsize = size * nitems ;
if ( ! form -> data ) return 0 ;
if ( ( form -> data -> type == FORM_FILE ) || ( form -> data -> ty... |
-6,032,494,406,888,258,000 | chrome | 72 | 0 | static int32_t U_CALLCONV lenient8IteratorGetIndex ( UCharIterator * iter , UCharIteratorOrigin origin ) {
switch ( origin ) {
case UITER_ZERO : case UITER_START : return 0 ;
case UITER_CURRENT : if ( iter -> index < 0 ) {
const uint8_t * s ;
UChar32 c ;
int32_t i , limit , index ;
s = ( const uint8_t * ) iter -... |
1,760,449,185,745,615,400 | debian | 16 | 0 | TSReturnCode TSHttpTxnServerPacketMarkSet ( TSHttpTxn txnp , int mark ) {
sdk_assert ( sdk_sanity_check_txn ( txnp ) == TS_SUCCESS ) ;
HttpSM * sm = ( HttpSM * ) txnp ;
if ( nullptr != sm -> ua_session ) {
HttpServerSession * ssn = sm -> ua_session -> get_server_session ( ) ;
if ( nullptr != ssn ) {
NetVConnectio... |
-5,706,788,925,640,467,000 | chrome | 19 | 0 | static void copy_partitioning ( VP9_COMMON * cm , MODE_INFO * mi_8x8 , MODE_INFO * prev_mi_8x8 ) {
const int mis = cm -> mi_stride ;
int block_row , block_col ;
for ( block_row = 0 ;
block_row < 8 ;
++ block_row ) {
for ( block_col = 0 ;
block_col < 8 ;
++ block_col ) {
MODE_INFO * const prev_mi = prev_mi_8x8 ... |
-4,295,537,452,468,300,300 | debian | 35 | 0 | static int ir2_decode_frame ( AVCodecContext * avctx , void * data , int * got_frame , AVPacket * avpkt ) {
Ir2Context * const s = avctx -> priv_data ;
const uint8_t * buf = avpkt -> data ;
int buf_size = avpkt -> size ;
AVFrame * picture = data ;
AVFrame * const p = & s -> picture ;
int start , ret ;
if ( ( ret... |
6,600,620,671,673,715,000 | debian | 35 | 0 | gs_ref_memory_t * ialloc_alloc_state ( gs_memory_t * parent , uint clump_size ) {
clump_t * cp ;
gs_ref_memory_t * iimem = ialloc_solo ( parent , & st_ref_memory , & cp ) ;
if ( iimem == 0 ) return 0 ;
iimem -> stable_memory = ( gs_memory_t * ) iimem ;
iimem -> procs = gs_ref_memory_procs ;
iimem -> gs_lib_ctx = ... |
4,976,989,049,001,280,000 | debian | 38 | 0 | ParseResult validate_hdr_host ( HTTPHdrImpl * hh ) {
ParseResult ret = PARSE_RESULT_DONE ;
MIMEField * host_field = mime_hdr_field_find ( hh -> m_fields_impl , MIME_FIELD_HOST , MIME_LEN_HOST ) ;
if ( host_field ) {
if ( host_field -> has_dups ( ) ) {
ret = PARSE_RESULT_ERROR ;
}
else {
int host_len = 0 ;
cons... |
-5,927,738,579,069,083,000 | debian | 173 | 1 | void xps_parse_path ( xps_document * doc , const fz_matrix * ctm , char * base_uri , xps_resource * dict , fz_xml * root ) {
fz_xml * node ;
char * fill_uri ;
char * stroke_uri ;
char * opacity_mask_uri ;
char * transform_att ;
char * clip_att ;
char * data_att ;
char * fill_att ;
char * stroke_att ;
char * o... |
6,250,095,321,513,210,000 | debian | 15 | 1 | rfbBool rfbSendXvp ( rfbClientPtr cl , uint8_t version , uint8_t code ) {
rfbXvpMsg xvp ;
xvp . type = rfbXvp ;
xvp . pad = 0 ;
xvp . version = version ;
xvp . code = code ;
LOCK ( cl -> sendMutex ) ;
if ( rfbWriteExact ( cl , ( char * ) & xvp , sz_rfbXvpMsg ) < 0 ) {
rfbLogPerror ( "rfbSendXvp: write" ) ;
rfb... |
2,917,602,761,308,156,400 | debian | 17 | 0 | static Asn1Generic * DecodeAsn1DerNull ( const unsigned char * buffer , uint32_t size , uint8_t depth , uint32_t * errcode ) {
const unsigned char * d_ptr = buffer ;
uint8_t numbytes ;
uint32_t value ;
Asn1Generic * a ;
numbytes = d_ptr [ 1 ] ;
d_ptr += 2 ;
if ( DecodeAsn1BuildValue ( & d_ptr , & value , numbyte... |
8,693,230,691,624,197,000 | chrome | 15 | 0 | IN_PROC_BROWSER_TEST_F ( ExtensionPreferenceApiTest , SessionOnlyIncognito ) {
PrefService * prefs = profile_ -> GetPrefs ( ) ;
prefs -> SetBoolean ( prefs : : kBlockThirdPartyCookies , false ) ;
EXPECT_TRUE ( RunExtensionTestIncognito ( "preference/session_only_incognito" ) ) << message_ ;
EXPECT_TRUE ( profile_ -... |
-1,894,649,941,813,935,600 | chrome | 8 | 0 | TEST_F ( BudgetManagerTest , TestInsecureOrigin ) {
const blink : : mojom : : BudgetOperationType type = blink : : mojom : : BudgetOperationType : : SILENT_PUSH ;
SetOrigin ( url : : Origin ( GURL ( "http://example.com" ) ) ) ;
SetSiteEngagementScore ( kTestSES ) ;
ASSERT_FALSE ( ReserveBudget ( type ) ) ;
ASSERT_... |
-6,704,066,512,670,389,000 | debian | 6 | 0 | static void passphrase_free ( char * ppbuff ) {
if ( ppbuff != NULL ) {
memset ( ppbuff , 0 , PPBUFF_SIZE ) ;
free ( ppbuff ) ;
}
} |
7,092,216,800,726,730,000 | debian | 4 | 0 | static int dissect_h245_Cmd_clockRecovery ( tvbuff_t * tvb _U_ , int offset _U_ , asn1_ctx_t * actx _U_ , proto_tree * tree _U_ , int hf_index _U_ ) {
offset = dissect_per_choice ( tvb , offset , actx , tree , hf_index , ett_h245_Cmd_clockRecovery , Cmd_clockRecovery_choice , NULL ) ;
return offset ;
} |
7,651,945,086,108,393,000 | debian | 11 | 0 | int qemuMonitorJSONSystemReset ( qemuMonitorPtr mon ) {
int ret ;
virJSONValuePtr cmd = qemuMonitorJSONMakeCommand ( "system_reset" , NULL ) ;
virJSONValuePtr reply = NULL ;
if ( ! cmd ) return - 1 ;
ret = qemuMonitorJSONCommand ( mon , cmd , & reply ) ;
if ( ret == 0 ) ret = qemuMonitorJSONCheckError ( cmd , rep... |
2,709,342,705,526,909,400 | debian | 27 | 0 | int ssl_choose_client_version ( SSL * s , int version ) {
const version_info * vent ;
const version_info * table ;
switch ( s -> method -> version ) {
default : if ( version != s -> version ) return SSL_R_WRONG_SSL_VERSION ;
return 0 ;
case TLS_ANY_VERSION : table = tls_version_table ;
break ;
case DTLS_ANY_VER... |
-5,268,859,819,325,808,000 | debian | 45 | 0 | static void start_or_stop_io ( NautilusDirectory * directory ) {
NautilusFile * file ;
gboolean doing_io ;
file_list_start_or_stop ( directory ) ;
file_info_stop ( directory ) ;
directory_count_stop ( directory ) ;
deep_count_stop ( directory ) ;
mime_list_stop ( directory ) ;
link_info_stop ( directory ) ;
ex... |
1,353,431,100,313,404,400 | chrome | 17 | 0 | static void predict_and_reconstruct_intra_block ( int plane , int block , BLOCK_SIZE plane_bsize , TX_SIZE tx_size , void * arg ) {
struct intra_args * const args = ( struct intra_args * ) arg ;
VP9_COMMON * const cm = args -> cm ;
MACROBLOCKD * const xd = args -> xd ;
struct macroblockd_plane * const pd = & xd -> ... |
1,760,449,185,745,615,400 | debian | 481 | 1 | TSReturnCode TSHttpTxnConfigFind ( const char * name , int length , TSOverridableConfigKey * conf , TSRecordDataType * type ) {
sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) name ) == TS_SUCCESS ) ;
sdk_assert ( sdk_sanity_check_null_ptr ( ( void * ) conf ) == TS_SUCCESS ) ;
TSOverridableConfigKey cnf = TS_CON... |
8,127,806,390,163,863,000 | debian | 4 | 0 | static void vapic_do_enable_tpr_reporting ( void * data ) {
VAPICEnableTPRReporting * info = data ;
apic_enable_tpr_access_reporting ( info -> apic , info -> enable ) ;
} |
7,320,640,583,188,909,000 | debian | 23 | 0 | static int remoteStreamHandleWrite ( struct qemud_client * client , struct qemud_client_stream * stream ) {
struct qemud_client_message * msg , * tmp ;
VIR_DEBUG ( "stream=%p" , stream ) ;
msg = stream -> rx ;
while ( msg && ! stream -> closed ) {
int ret ;
switch ( msg -> hdr . status ) {
case REMOTE_OK : ret =... |
-7,855,974,557,509,681,000 | debian | 12 | 0 | void getTypeBinaryOutputInfo ( Oid type , Oid * typSend , bool * typIsVarlena ) {
HeapTuple typeTuple ;
Form_pg_type pt ;
typeTuple = SearchSysCache1 ( TYPEOID , ObjectIdGetDatum ( type ) ) ;
if ( ! HeapTupleIsValid ( typeTuple ) ) elog ( ERROR , "cache lookup failed for type %u" , type ) ;
pt = ( Form_pg_type ) G... |
2,335,222,688,263,906,300 | debian | 26 | 0 | static int rv34_decode_intra_mb_header ( RV34DecContext * r , int8_t * intra_types ) {
MpegEncContext * s = & r -> s ;
GetBitContext * gb = & s -> gb ;
int mb_pos = s -> mb_x + s -> mb_y * s -> mb_stride ;
int t ;
r -> is16 = get_bits1 ( gb ) ;
if ( r -> is16 ) {
s -> current_picture_ptr -> mb_type [ mb_pos ] = ... |
3,557,739,556,029,059,000 | chrome | 21 | 0 | unsigned int vp9_sad ## m ## x ## n ## _c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride ) {
return sad ( src , src_stride , ref , ref_stride , m , n ) ;
\ }
unsigned int vp9_sad ## m ## x ## n ## _avg_c ( const uint8_t * src , int src_stride , const uint8_t * ref , int ref_stride , co... |
-3,740,862,514,502,467,000 | debian | 6 | 0 | static void DumpStrDouble ( char * pt , FILE * cfff , int oper ) {
real d ;
if ( * pt == '[' ) ++ pt ;
d = strtod ( pt , NULL ) ;
dumpdbloper ( cfff , d , oper ) ;
} |
-8,933,711,118,846,966,000 | debian | 34 | 0 | static void cirrus_vga_write_sr ( CirrusVGAState * s , uint32_t val ) {
switch ( s -> vga . sr_index ) {
case 0x00 : case 0x01 : case 0x02 : case 0x03 : case 0x04 : s -> vga . sr [ s -> vga . sr_index ] = val & sr_mask [ s -> vga . sr_index ] ;
if ( s -> vga . sr_index == 1 ) s -> vga . update_retrace_info ( & s -> ... |
2,626,033,973,808,493,000 | chrome | 9 | 0 | float * qcms_chain_transform ( qcms_profile * in , qcms_profile * out , float * src , float * dest , size_t lutSize ) {
struct qcms_modular_transform * transform_list = qcms_modular_transform_create ( in , out ) ;
if ( transform_list != NULL ) {
float * lut = qcms_modular_transform_data ( transform_list , src , dest... |
2,390,790,920,103,114,000 | debian | 29 | 0 | static struct subre * subre ( struct vars * v , int op , int flags , struct state * begin , struct state * end ) {
struct subre * ret = v -> treefree ;
if ( STACK_TOO_DEEP ( v -> re ) ) {
ERR ( REG_ETOOBIG ) ;
return NULL ;
}
if ( ret != NULL ) v -> treefree = ret -> left ;
else {
ret = ( struct subre * ) MALLO... |
-6,468,986,929,796,051,000 | debian | 4 | 0 | static toff_t _tiffSizeProc ( thandle_t fd ) {
_TIFF_stat_s sb ;
return ( toff_t ) ( _TIFF_fstat_f ( ( int ) fd , & sb ) < 0 ? 0 : sb . st_size ) ;
} |
7,823,043,019,110,227,000 | chrome | 3 | 0 | TEST_F ( ExternalProtocolHandlerTest , DISABLED_TestLaunchSchemeUnBlockedChromeOtherModeDefault ) {
DoTest ( ExternalProtocolHandler : : DONT_BLOCK , shell_integration : : OTHER_MODE_IS_DEFAULT , Action : : LAUNCH ) ;
} |
-1,145,838,621,747,570,400 | debian | 19 | 0 | int key_payload_reserve ( struct key * key , size_t datalen ) {
int delta = ( int ) datalen - key -> datalen ;
int ret = 0 ;
key_check ( key ) ;
if ( delta != 0 && test_bit ( KEY_FLAG_IN_QUOTA , & key -> flags ) ) {
unsigned maxbytes = uid_eq ( key -> user -> uid , GLOBAL_ROOT_UID ) ? key_quota_root_maxbytes : key... |
7,442,680,289,895,576,000 | debian | 3 | 0 | static void raw_decode ( uint8_t * dst , const int8_t * src , int src_size ) {
while ( src_size -- ) * dst ++ = * src ++ + 128 ;
} |
-7,455,544,248,455,991,000 | debian | 9 | 0 | static int kvm_get_mce_cap_supported ( KVMState * s , uint64_t * mce_cap , int * max_banks ) {
int r ;
r = kvm_check_extension ( s , KVM_CAP_MCE ) ;
if ( r > 0 ) {
* max_banks = r ;
return kvm_ioctl ( s , KVM_X86_GET_MCE_CAP_SUPPORTED , mce_cap ) ;
}
return - ENOSYS ;
} |
-7,555,034,601,056,330,000 | debian | 22 | 0 | char * virLogGetOutputs ( void ) {
size_t i ;
virBuffer outputbuf = VIR_BUFFER_INITIALIZER ;
virLogLock ( ) ;
for ( i = 0 ;
i < virLogNbOutputs ;
i ++ ) {
virLogDestination dest = virLogOutputs [ i ] -> dest ;
if ( i ) virBufferAddChar ( & outputbuf , ' ' ) ;
switch ( dest ) {
case VIR_LOG_TO_SYSLOG : case VI... |
4,489,017,523,191,997,000 | debian | 4 | 0 | static int dissect_h225_GatekeeperRequest ( 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_GatekeeperRequest , GatekeeperRequest_sequence ) ;
return offset ;
} |
6,968,788,423,709,606,000 | debian | 46 | 0 | static LZWInfo * AcquireLZWInfo ( Image * image , const size_t data_size ) {
LZWInfo * lzw_info ;
register ssize_t i ;
size_t one ;
lzw_info = ( LZWInfo * ) AcquireMagickMemory ( sizeof ( * lzw_info ) ) ;
if ( lzw_info == ( LZWInfo * ) NULL ) return ( ( LZWInfo * ) NULL ) ;
( void ) ResetMagickMemory ( lzw_info ,... |
-643,892,134,151,497,100 | debian | 11 | 0 | static const unsigned char * seq_decode_op3 ( SeqVideoContext * seq , const unsigned char * src , const unsigned char * src_end , unsigned char * dst ) {
int pos , offset ;
do {
if ( src_end - src < 2 ) return NULL ;
pos = * src ++ ;
offset = ( ( pos >> 3 ) & 7 ) * seq -> frame . linesize [ 0 ] + ( pos & 7 ) ;
ds... |
-2,443,338,381,883,395,600 | debian | 8 | 0 | void msyslog ( int level , const char * fmt , ... ) {
char buf [ 1024 ] ;
va_list ap ;
va_start ( ap , fmt ) ;
mvsnprintf ( buf , sizeof ( buf ) , fmt , ap ) ;
va_end ( ap ) ;
addto_syslog ( level , buf ) ;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.