text
stringlengths
93
16.4k
id
stringlengths
20
40
metadata
dict
input_ids
listlengths
45
2.05k
attention_mask
listlengths
45
2.05k
complexity
int64
1
9
#[test] fn test_authority_form() { extern crate pretty_env_logger; let _ = pretty_env_logger::try_init(); let mut uri = "http://hyper.rs".parse().unwrap(); authority_form(&mut uri); assert_eq!(uri.to_string(), "hyper.rs"); let mut uri = "hyper.rs".parse().unwrap...
rust_cleaned_test_functions.jsonl/108420
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22938, 487, 7915, 368, 341, 286, 15637, 17717, 5020, 15879, 27413, 280, 286, 1077, 716, 284, 5020, 15879, 27413, 486, 1539, 6137, 1428, 286, 1077, 5206, 13071, 284, 330, 1254, 1110, 68192, 25638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_extended_value_with_encoding_and_language_tag() { let expected_language_tag = "en".parse::<LanguageTag>().unwrap(); let result = parse_extended_value("iso-8859-1'en'%A3%20rates"); assert!(result.is_ok()); let extended_value = result.unwrap(...
rust_cleaned_test_functions.jsonl/24908
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 286 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 61678, 3142, 6615, 37613, 8378, 29021, 9372, 368, 341, 286, 1077, 3601, 29021, 9372, 284, 330, 268, 3263, 6400, 27638, 13806, 5668, 10483, 15454, 543, 16885, 286, 1077, 1102, 284, 4715, 61678...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_aligned_mem() { let kb: usize = 1024; let mb: usize = 1024 * kb; struct TestProps { pub mem_size: usize, pub mem_align: usize, pub offset: usize, }; let tests = vec![ TestProps { mem_size: 1...
rust_cleaned_test_functions.jsonl/113497
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1083 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66385, 12976, 368, 341, 286, 1077, 38653, 25, 22301, 284, 220, 16, 15, 17, 19, 280, 286, 1077, 10016, 25, 22301, 284, 220, 16, 15, 17, 19, 353, 38653, 401, 286, 2036, 3393, 5992, 341, 310, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_txa() { let mut r = Register::new(); r.set_X(0xFF); txa(&mut r); assert_eq!(r.get_A(),0xFF) }
rust_cleaned_test_functions.jsonl/14191
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 76 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 9591, 368, 341, 262, 1077, 5206, 435, 284, 8451, 486, 931, 543, 262, 435, 980, 6859, 7, 15, 9264, 317, 262, 259, 9591, 2099, 6984, 435, 317, 262, 2060, 10714, 10297, 81, 670, 1566, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_token_bucket_create() { let before = time::precise_time_ns(); let tb = TokenBucket::new(1000, None, 1000); assert_eq!(tb.get_capacity(), 1000); assert_eq!(tb.get_current_budget(), 1000); assert!(tb.get_last_update() >= before); assert!(tb.get_last_...
rust_cleaned_test_functions.jsonl/52866
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 227 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6458, 38749, 8657, 368, 341, 286, 1077, 1573, 284, 882, 486, 10645, 1064, 3009, 34728, 543, 286, 1077, 16363, 284, 9660, 36018, 486, 931, 7, 16, 15, 15, 15, 11, 2240, 11, 220, 16, 15, 15, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_drain_sorted() { let mut q: BinaryHeap<_> = [9, 8, 7, 6, 5, 4, 3, 2, 1].iter().cloned().collect(); assert_eq!(q.drain_sorted().take(5).collect::<Vec<_>>(), vec![9, 8, 7, 6, 5]); assert!(q.is_empty()); }
rust_cleaned_test_functions.jsonl/62367
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26680, 466, 41277, 368, 341, 262, 1077, 5206, 2804, 25, 17718, 27909, 32399, 29, 284, 508, 24, 11, 220, 23, 11, 220, 22, 11, 220, 21, 11, 220, 20, 11, 220, 19, 11, 220, 18, 11, 220, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_progress_status() { let format = Format { style: ProgressStyle::Ratio, max_print: 40, max_width: 60, }; assert_eq!( format.progress_status(0, 4, ""), Some("[ ] 0/4".to_string()) ); assert_eq!( format.progress_s...
rust_cleaned_test_functions.jsonl/10090
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1834 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27200, 4773, 368, 341, 262, 1077, 3561, 284, 15042, 341, 286, 1707, 25, 16033, 2323, 486, 22777, 345, 286, 1932, 10064, 25, 220, 19, 15, 345, 286, 1932, 7927, 25, 220, 21, 15, 345, 262, 2605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_sign_change_underflow() { // floating point underflow breaks naive a*b<0 check assert_eq!( is_sign_change(1e-120, -2e-300), true, "sign change with float underflow" ); }
rust_cleaned_test_functions.jsonl/7162
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 11172, 15947, 58228, 4965, 368, 341, 286, 442, 19057, 1459, 1212, 4965, 18303, 49665, 264, 33279, 27, 15, 1779, 198, 286, 2060, 10714, 33673, 310, 374, 11172, 15947, 7, 16, 68, 12, 16, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_source_code_version_hash() { assert_eq!( "0185b42de0686b4c93c314daaa8dee159f768a9e9a336c2a5e3d5b8ca6c4208c", source_code_version_hash(b"1+2", "0.4.0", b"{}") ); // Different source_code should result in different hash. assert_eq!( "e58631f1b6b6ce2b300b133ec2ad16...
rust_cleaned_test_functions.jsonl/656
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 438 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10347, 4136, 9438, 8950, 368, 341, 262, 2060, 10714, 33673, 414, 330, 15, 16, 23, 20, 65, 19, 17, 450, 15, 21, 23, 21, 65, 19, 66, 24, 18, 66, 18, 16, 19, 3235, 5305, 23, 57894, 16, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_partial_comparison_dot() -> TestResult { let p = Polar::new(); p.load_str("a_positive(x) if x.a > 0 and 0 < x.a;")?; let mut q = p.new_query_from_term(term!(call!("a_positive", [sym!("x")])), false); assert_partial_expression!(next_binding(&mut q)?, "x", ...
rust_cleaned_test_functions.jsonl/63013
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 52068, 90797, 30941, 368, 1464, 3393, 2077, 341, 286, 1077, 281, 284, 55896, 486, 931, 543, 286, 281, 5104, 2895, 445, 64, 54160, 2075, 8, 421, 856, 5849, 861, 220, 15, 323, 220, 15, 366, 856,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_create_account_with_seed_separate_base_account() { let new_owner = Pubkey::new(&[9; 32]); let from = solana_sdk::pubkey::new_rand(); let base = solana_sdk::pubkey::new_rand(); let seed = "shiny pepper"; let to = Pubkey::create_with_seed(&base, seed, &new_o...
rust_cleaned_test_functions.jsonl/73037
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 780 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 13500, 6615, 33809, 3453, 67598, 7651, 13500, 368, 341, 286, 1077, 501, 29027, 284, 22611, 792, 486, 931, 2099, 58, 24, 26, 220, 18, 17, 2558, 286, 1077, 504, 284, 2048, 3362, 61783, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_convert_syscall_id() { assert_eq!( convert_syscall_id(&format!("aaaaaa:NR {} ", libc::SYS_accept)), Some("accept".to_string()) ); }
rust_cleaned_test_functions.jsonl/121860
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 87 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 20344, 6659, 842, 368, 341, 262, 2060, 10714, 33673, 286, 5508, 20344, 6659, 842, 2099, 2243, 17223, 28458, 5305, 25, 26319, 4687, 3670, 42142, 486, 37931, 35728, 6965, 286, 4329, 445, 10330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_parse_msg_uid() { let test_val = "devin"; let response = SendResponse { uid: None, uids: vec![test_val.to_string()], }; let uid = response.get_msg_uid().unwrap(); assert_eq!(test_val, uid); let test_val = "devin"; ...
rust_cleaned_test_functions.jsonl/75278
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 282 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 6483, 25396, 368, 341, 286, 1077, 1273, 6189, 284, 330, 3583, 258, 876, 286, 1077, 2033, 284, 11000, 2582, 341, 310, 14617, 25, 2240, 345, 310, 575, 3365, 25, 7486, 20703, 1944, 6189, 238...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_with_bls12() { fn naive_multiexp<G: CurveProjective>( bases: Arc<Vec<<G as CurveProjective>::Affine>>, exponents: Arc<Vec<G::Scalar>>, ) -> G { assert_eq!(bases.len(), exponents.len()); let mut acc = G::zero(); for (base, exp) in bases.iter().zip...
rust_cleaned_test_functions.jsonl/131106
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 555 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 880, 4730, 16, 17, 368, 341, 262, 5168, 49665, 25133, 4580, 59727, 25, 53677, 7849, 533, 17055, 286, 23092, 25, 19689, 50439, 2442, 38, 438, 53677, 7849, 533, 6831, 25841, 482, 61340, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_and_with_multiple_mixed_to_string() { let name1 = _random_vector(10); let value1 = _random_string(10); let name2 = _random_vector(10); let value2 = _random_string(10); let name3 = _random_vector(10); let value3 = _random_string(10); let nam...
rust_cleaned_test_functions.jsonl/11907
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2171 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8378, 6615, 45233, 717, 3286, 2346, 3904, 368, 341, 286, 1077, 829, 16, 284, 716, 11463, 12247, 7, 16, 15, 317, 286, 1077, 897, 16, 284, 716, 11463, 3904, 7, 16, 15, 317, 286, 1077, 829, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_running_task_count() { let pool = Builder::new(DefaultTicker {}) .name_prefix("future_pool_for_running_task_test") // The name is important .thread_count(2, 2) .build_future_pool(); assert_eq!(pool.get_running_task_count(), 0); spawn_...
rust_cleaned_test_functions.jsonl/27991
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 453 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37333, 12184, 3180, 368, 341, 286, 1077, 7314, 284, 20626, 486, 931, 87874, 87278, 35248, 310, 659, 606, 13974, 445, 21055, 15709, 5478, 37333, 12184, 4452, 899, 442, 576, 829, 374, 2989, 198, 310...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_fields() -> TestResult { assert_eq!( parse_fields(b"003@ \x1f0123456789X\x1e012A/00 \x1fa123\x1e012A/01 \x1fa456\x1e") ? .1, vec![ Field::new( Tag::new("003@")?, None, ...
rust_cleaned_test_functions.jsonl/93459
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 583 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 12132, 368, 1464, 3393, 2077, 341, 286, 2060, 10714, 33673, 310, 4715, 12132, 1883, 1, 15, 15, 18, 31, 1124, 87, 16, 69, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 55, 3462, 16, 68, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_set_swap() { let limit = 512; let tmp = create_temp_dir("test_set_swap").expect("create temp directory for test"); set_fixture(&tmp, CGROUP_MEMORY_SWAP_LIMIT, "0").expect("Set fixure for swap limit"); Memory::set_swap(limit, &tmp).expect("Set swap limit"); ...
rust_cleaned_test_functions.jsonl/51329
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 40991, 368, 341, 286, 1077, 3930, 284, 220, 20, 16, 17, 280, 286, 1077, 4174, 284, 1855, 11771, 4334, 445, 1944, 2602, 40991, 1827, 17119, 445, 3182, 2730, 6220, 369, 1273, 797, 286, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_late_cancel() { // test that late cancellation will work (meaning the internal timer let mut executor = fasync::Executor::new_with_fake_time().unwrap(); let time1 = nanos_from_now(1); let time2 = nanos_from_now(2); let time3 = nanos_fro...
rust_cleaned_test_functions.jsonl/52880
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 811 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 349, 28895, 368, 341, 286, 442, 1273, 429, 3309, 35835, 686, 975, 320, 56765, 279, 5306, 9021, 8945, 23459, 286, 1077, 5206, 31558, 284, 282, 7692, 486, 25255, 486, 931, 6615, 56881, 3009, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stored_kex_rng_round_trip_protobuf() { run_with_several_seeds(|mut rng| { let mut test_val = kex_rng::StoredRng::new(); test_val.set_secret(<[u8; 32]>::sample(&mut rng).to_vec()); test_val.set_buffer(<[u8; 16]>::sample(&mut rng).to_vec()); test_val.counter = r...
rust_cleaned_test_functions.jsonl/52326
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 3018, 4698, 327, 66849, 29896, 63883, 22357, 18464, 368, 341, 262, 1598, 6615, 3453, 17539, 3453, 6767, 22428, 6984, 28422, 91, 341, 286, 1077, 5206, 1273, 6189, 284, 595, 327, 66849, 486, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_destroy_duplex_stream_after_unplugging_a_default_output_device() { test_unplug_a_device_on_an_active_stream(StreamType::DUPLEX, Scope::Output, true, 0); }
rust_cleaned_test_functions.jsonl/23859
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 75 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18066, 51932, 2571, 12673, 19844, 4907, 500, 35268, 4306, 9993, 7645, 9204, 368, 341, 262, 1273, 4907, 47474, 4306, 9204, 4470, 12008, 12930, 12673, 52011, 929, 486, 35, 3124, 35245, 11, 34920, 486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_genotypes() { let mut vcf = Reader::from_path(&"test/test_string.vcf").expect("Error opening file."); let expected = ["./1", "1|1", "0/1", "0|1", "1|.", "1/1"]; for (rec, exp_gt) in vcf.records().zip(expected.iter()) { let mut rec = rec.expect("Error reading r...
rust_cleaned_test_functions.jsonl/8766
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16322, 21830, 368, 341, 286, 1077, 5206, 348, 9792, 284, 25166, 486, 1499, 2638, 2099, 1, 1944, 12697, 3904, 3133, 9792, 1827, 17119, 445, 1454, 8568, 1034, 7320, 286, 1077, 3601, 284, 4383, 1725,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_hover_infer_associated_method_result() { check( r#" struct Thing { x: u32 } impl Thing { fn new() -> Thing { Thing { x: 0 } } } fn main() { let foo_<|>test = Thing::new(); } "#, expect![[r#" *foo_test* ```rust ...
rust_cleaned_test_functions.jsonl/66116
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 239 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 1243, 802, 58665, 657, 9032, 5287, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1235, 37200, 314, 856, 25, 575, 18, 17, 555, 6383, 37200, 341, 262, 5168, 501, 368, 1464, 37200, 314, 372...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_binary_array_from_u8_slice() { let values: Vec<&[u8]> = vec![ &[b'h', b'e', b'l', b'l', b'o'], &[], &[b'p', b'a', b'r', b'q', b'u', b'e', b't'], ]; let binary_array = BinaryArray::from(values); assert_eq!(3, binary_ar...
rust_cleaned_test_functions.jsonl/19352
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 582 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31761, 3858, 5673, 7300, 23, 26488, 368, 341, 286, 1077, 2750, 25, 11312, 52244, 58, 84, 23, 25669, 284, 7486, 90515, 310, 44590, 65, 38882, 516, 293, 47868, 516, 293, 63866, 516, 293, 63866, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_floor() { let tests = vec![ (ScalarFuncSig::FloorReal, Datum::F64(3.45), Datum::F64(3f64)), ( ScalarFuncSig::FloorReal, Datum::F64(-3.45), Datum::F64(-4f64), ), ( ScalarFuncSig...
rust_cleaned_test_functions.jsonl/13163
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1623 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60044, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 320, 20639, 9626, 47246, 486, 51444, 12768, 11, 68459, 486, 37, 21, 19, 7, 18, 13, 19, 20, 701, 68459, 486, 37, 21, 19, 7, 18, 69, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_empty_add_front() { let mut assr = Assembler::new(16); assert_eq!(assr.add(0, 4), Ok(())); assert_eq!(assr, contigs![(0, 4), (12, 0)]); }
rust_cleaned_test_functions.jsonl/52002
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 2891, 22926, 368, 341, 286, 1077, 5206, 1071, 81, 284, 1634, 35401, 486, 931, 7, 16, 21, 317, 286, 2060, 10714, 10297, 395, 81, 1364, 7, 15, 11, 220, 19, 701, 7622, 5065, 1106, 286, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_relaxed_naf_usefulness() { let vec = find_naf(&[12u64]); assert_eq!(vec.len(), 5); let vec = find_relaxed_naf(&[12u64]); assert_eq!(vec.len(), 4); }
rust_cleaned_test_functions.jsonl/53241
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 13557, 51451, 1089, 2577, 15951, 30414, 368, 341, 262, 1077, 7486, 284, 1477, 1089, 2577, 2099, 58, 16, 17, 84, 21, 19, 2558, 262, 2060, 10714, 10297, 4083, 19406, 1507, 220, 20, 626, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pkcs_hash_id() { assert!(botan::pkcs_hash_id("SHA-192").is_err()); let id = botan::pkcs_hash_id("SHA-384").unwrap(); assert_eq!(botan::hex_encode(&id).unwrap(), "3041300D060960864801650304020205000430"); }
rust_cleaned_test_functions.jsonl/95310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33321, 4837, 8950, 842, 368, 341, 262, 2060, 10297, 6331, 276, 486, 20819, 4837, 8950, 842, 445, 33145, 12, 16, 24, 17, 1827, 285, 9266, 5231, 262, 1077, 877, 284, 10924, 276, 486, 20819, 4837, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extract_var_return() { check_assist( extract_variable, " fn foo() -> u32 { $0return 2 + 2$0; } ", " fn foo() -> u32 { let $0var_name = 2 + 2; return var_name; } ", ); }
rust_cleaned_test_functions.jsonl/132839
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 4612, 12511, 368, 341, 286, 1779, 12083, 380, 1006, 310, 8649, 14635, 345, 310, 6228, 8822, 15229, 368, 1464, 575, 18, 17, 341, 262, 400, 15, 689, 220, 17, 488, 220, 17, 3, 15, 280, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_append_slice() { let mut b = UInt8BufferBuilder::new(0); b.append_slice(b"Hello, "); b.append_slice(b"World!"); let buffer = b.finish(); assert_eq!(13, buffer.len()); let mut b = Int32BufferBuilder::new(0); b.append_slice(&[32, 54]); ...
rust_cleaned_test_functions.jsonl/74111
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26041, 26488, 368, 341, 286, 1077, 5206, 293, 284, 22275, 23, 4095, 3297, 486, 931, 7, 15, 317, 286, 293, 2057, 26488, 1883, 1, 9707, 11, 7318, 286, 293, 2057, 26488, 1883, 1, 10134, 11142, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lowest_cleanup_slot_and_special_cfs_without_compact_without_ledger_cleanup_service_simulation( ) { do_test_lowest_cleanup_slot_and_special_cfs(false, false); }
rust_cleaned_test_functions.jsonl/9563
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23767, 477, 42444, 27563, 8378, 41629, 666, 3848, 39904, 18177, 531, 39904, 38367, 1389, 42444, 12267, 82487, 1006, 262, 873, 341, 286, 653, 4452, 23767, 477, 42444, 27563, 8378, 41629, 666, 3848, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_extract_ht_vht_op_success() { let mut buf = Vec::<u8>::new(); ie::write_ht_operation(&mut buf, &ie::fake_ht_operation()).expect("valid HT Op"); ie::write_vht_operation(&mut buf, &ie::fake_vht_operation()).expect("valid VHT Op"); let (ht_bytes, vht_bytes) = extract...
rust_cleaned_test_functions.jsonl/72586
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 49086, 2273, 426, 10287, 18632, 368, 341, 286, 1077, 5206, 6607, 284, 11312, 27638, 84, 23, 6831, 931, 543, 286, 29858, 486, 4934, 49086, 32565, 2099, 6984, 6607, 11, 609, 645, 486, 30570, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_new_free() { let container = [0u8; constants::MIN_ORDER_SIZE]; assert!(Block::new_free(&container[..], 3, constants::NUM_ORDERS, 1).is_err()); let res = Block::new_free(&container[..], 0, 3, 1); assert!(res.is_ok()); let block = res.unwrap(); asse...
rust_cleaned_test_functions.jsonl/100143
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 8905, 368, 341, 286, 1077, 5476, 284, 508, 15, 84, 23, 26, 18021, 486, 16413, 26677, 4098, 935, 286, 2060, 10297, 4713, 486, 931, 8905, 2099, 3586, 95874, 1125, 220, 18, 11, 18021, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_simple() { let mut d = VecDeque::new(); assert_eq!(d.len(), 0); d.push_front(17); d.push_front(42); d.push_back(137); assert_eq!(d.len(), 3); d.push_back(137); assert_eq!(d.len(), 4); assert_eq!(*d.front().unwrap(), 42); assert_eq!(*d.back().unwrap(), 137)...
rust_cleaned_test_functions.jsonl/73689
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 455 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 368, 341, 262, 1077, 5206, 294, 284, 11312, 73891, 486, 931, 543, 262, 2060, 10714, 10297, 67, 19406, 1507, 220, 15, 317, 262, 294, 2552, 22926, 7, 16, 22, 317, 262, 294, 2552, 22926, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_new_record_with_no_tag() { let _setup = SetupLibraryWallet::init(); let (record_type, id, record) = _record(); add_record(record_type, id, record, None).unwrap(); }
rust_cleaned_test_functions.jsonl/118718
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 5921, 14192, 6615, 6536, 9372, 368, 341, 286, 1077, 716, 15188, 284, 18626, 16915, 38259, 486, 2327, 1428, 286, 1077, 320, 8548, 1819, 11, 877, 11, 3255, 8, 284, 716, 8548, 1428, 286, 912,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_conversions() { let _reset = set_time_zone(); let time = Timespec::new(1234567890, 54321); let utc = at_utc(time); let local = at(time); assert!(local.to_local() == local); assert!(local.to_utc() == utc); assert!(local.to_utc().to_local()...
rust_cleaned_test_functions.jsonl/7340
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3382, 28290, 368, 341, 286, 1077, 716, 9716, 284, 738, 3009, 28692, 1428, 286, 1077, 882, 284, 8523, 992, 486, 931, 7, 16, 17, 18, 19, 20, 21, 22, 23, 24, 15, 11, 220, 20, 19, 18, 17, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_struct_array_from_vec() { let strings: ArrayRef = Arc::new(StringArray::from(vec![ Some("joe"), None, None, Some("mark"), ])); let ints: ArrayRef = Arc::new(Int32Array::from(vec![Some(1), Some(2), None, Some(4)])...
rust_cleaned_test_functions.jsonl/685
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 737 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 3858, 5673, 13251, 368, 341, 286, 1077, 9069, 25, 2910, 3945, 284, 19689, 486, 931, 2242, 1857, 486, 1499, 25592, 90515, 310, 4329, 445, 73, 4644, 4461, 310, 2240, 345, 310, 2240, 345, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_empty_key_in_object_pattern_with_default_value_maybe_removed() { test("const {f: {} = 0} = {};", ""); // complicated to implement for object patterns with multiple keys with side // effects. Instead the pass backs off for any default with a possible side // effect test_s...
rust_cleaned_test_functions.jsonl/482
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 3097, 1243, 5314, 21260, 6615, 9993, 3142, 717, 49791, 68248, 368, 341, 262, 1273, 445, 1024, 314, 69, 25, 4687, 284, 220, 15, 92, 284, 4687, 32503, 14498, 1066, 262, 442, 16965, 311, 421...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_grammar_with_undefined_symbols() { let result = intern_symbols(&build_grammar(vec![Variable::named("x", Rule::named("y"))])); match result { Err(e) => assert_eq!(e.message(), "Undefined symbol `y`"), _ => panic!("Expected an error but got none"), ...
rust_cleaned_test_functions.jsonl/99559
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 41094, 6615, 62, 9614, 55752, 368, 341, 286, 1077, 1102, 284, 2590, 55752, 2099, 5834, 62, 41094, 25592, 20703, 7827, 486, 30245, 445, 87, 497, 18100, 486, 30245, 445, 88, 2761, 58157, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_stmt_addition() { let code = String::from(" var x: int = 4; y = 1 + 2 * 3 + x; "); let mut lexer = Token::lexer(code.as_str()); let parser = Parser::new(code.clone()); let stmt_list_res = parser.parse_statement_list(&mut lexer); assert!(stmt_list_r...
rust_cleaned_test_functions.jsonl/43203
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 21824, 2891, 680, 368, 341, 262, 1077, 2038, 284, 923, 486, 1499, 70576, 286, 762, 856, 25, 526, 284, 220, 19, 280, 286, 379, 284, 220, 16, 488, 220, 17, 353, 220, 18, 488, 856, 280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_int_array() { parse_code( "test_int_array", r#" foreigner_class!(class Utils { static_method f(_: &[i32]) -> &[i32]; }); "#, &[ForeignLang::Java], ); }
rust_cleaned_test_functions.jsonl/71613
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4042, 3858, 368, 341, 262, 4715, 4136, 1006, 286, 330, 1944, 4042, 3858, 756, 286, 435, 2, 698, 28443, 261, 4790, 10297, 1040, 17954, 341, 262, 1099, 9032, 282, 73834, 44590, 72, 18, 17, 2467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_parse_type() { assert_eq!(parse_type(&[116][..]), Ok((EMPTY, AMQPType::Boolean))); assert_eq!(parse_type(&[102][..]), Ok((EMPTY, AMQPType::Float))); }
rust_cleaned_test_functions.jsonl/25446
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 1819, 368, 341, 286, 2060, 10714, 10297, 6400, 1819, 2099, 58, 16, 16, 21, 1457, 496, 9719, 7622, 1188, 32858, 11, 6769, 66520, 929, 486, 6890, 4945, 286, 2060, 10714, 10297, 6400, 1819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_escape_debug() { // Note that there are subtleties with the number of backslashes assert_eq!("abc".escape_debug().to_string(), "abc"); assert_eq!("a c".escape_debug().to_string(), "a c"); assert_eq!("éèê".escape_debug().to_string(), "éèê"); assert_eq!...
rust_cleaned_test_functions.jsonl/119409
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 466 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21832, 15446, 368, 341, 262, 442, 7036, 429, 1052, 525, 41029, 1149, 550, 448, 279, 1372, 315, 1182, 47629, 7213, 80719, 262, 2060, 10714, 17223, 13683, 3263, 12998, 15446, 1005, 983, 3904, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_slice() { fn check(slice: &[BigDigit], data: &[BigDigit]) { assert!(data == BigUint::from_slice(slice).data.as_slice()); } check([1], [1]); check([0, 0, 0], []); check([1, 2, 0, 0], [1, 2]); check([0, 0, 1, 2], [0, 0, 1, 2]); ...
rust_cleaned_test_functions.jsonl/96888
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 26488, 368, 341, 286, 5168, 1779, 75282, 25, 44590, 15636, 36420, 1125, 821, 25, 44590, 15636, 36420, 2467, 341, 310, 2060, 10297, 691, 621, 6164, 21570, 486, 1499, 26488, 75282, 568, 691, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_required_unless_invalid_other_blank() { let mut params = Map::new(); params.assign("required", Value::String("".to_owned())).ok(); let mut rules = BTreeMap::new(); rules.insert("required", vec![Rule::RequiredUnless("other", Value::Boolean(true))]); let resu...
rust_cleaned_test_functions.jsonl/108928
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18743, 4907, 1717, 31433, 30456, 56103, 368, 341, 262, 1077, 5206, 3628, 284, 5027, 486, 931, 543, 262, 3628, 17870, 445, 6279, 497, 5162, 486, 703, 445, 3263, 983, 51973, 34670, 562, 1428, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_body_debug() { assert!(format!("{:?}", Body::None).contains("Body::None")); assert!(format!("{:?}", Body::Empty).contains("Body::Empty")); assert!(format!("{:?}", Body::Bytes(Bytes::from_static(b"1"))).contains("1")); }
rust_cleaned_test_functions.jsonl/82694
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 126 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14114, 15446, 368, 341, 286, 2060, 10297, 2243, 88928, 25, 52652, 13958, 486, 4064, 568, 13372, 445, 5444, 486, 4064, 4010, 286, 2060, 10297, 2243, 88928, 25, 52652, 13958, 486, 3522, 568, 13372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extract_vht_op_too_short() { let mut buf = Vec::<u8>::new(); ie::write_ht_operation(&mut buf, &ie::fake_ht_operation()).expect("valid HT Op"); let ht_end = buf.len(); ie::write_vht_operation(&mut buf, &ie::fake_vht_operation()).expect("valid VHT Op"); buf[...
rust_cleaned_test_functions.jsonl/72588
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 2273, 426, 10287, 2346, 78, 16673, 368, 341, 286, 1077, 5206, 6607, 284, 11312, 27638, 84, 23, 6831, 931, 543, 286, 29858, 486, 4934, 49086, 32565, 2099, 6984, 6607, 11, 609, 645, 486, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_traceback_outside_band() { let x = b"TTGTGGGTGGGGGGAAAAAAAAA"; let y = b"GACAAGAGCCCAAGGAAAGAAAA"; let base_score = Scoring::from_scores(-5, 0, 1, -3); let scoring = Scoring { xclip_prefix: 0, xclip_suffix: 0, yclip_suffix: 0, ...
rust_cleaned_test_functions.jsonl/126766
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23575, 1419, 6068, 2929, 45344, 368, 341, 286, 1077, 856, 284, 293, 1, 14903, 25388, 22254, 25388, 22254, 22254, 22254, 57905, 32, 876, 286, 1077, 379, 284, 293, 89199, 62538, 1890, 1890, 3706, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unary() { test_roundtrip("+x"); test_roundtrip("-x"); test_roundtrip("!x"); test_roundtrip("~x"); test_roundtrip("-(-x)"); test_roundtrip("-(-5)"); test_roundtrip("--x"); test_roundtrip("x--"); test_roundtrip("++x"); test_roundtrip("x++"); test_roundtr...
rust_cleaned_test_functions.jsonl/102600
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 658, 368, 341, 262, 1273, 29896, 32981, 34973, 87, 797, 262, 1273, 29896, 32981, 13645, 87, 797, 262, 1273, 29896, 32981, 85166, 87, 797, 262, 1273, 29896, 32981, 81012, 87, 797, 262, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_opttxndb_prefix_iterator() { let db_path = "stupid_test_db"; DBTool::destroy(&Options::default(), db_path).unwrap(); eprintln!("Opening {}", db_path); let db = OptimisticTransactionDB::open_default(db_path).unwrap(); put(&db, "foobar", "baz"); pu...
rust_cleaned_test_functions.jsonl/89270
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 482 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 3998, 303, 65, 13974, 13491, 368, 341, 286, 1077, 2927, 2638, 284, 330, 267, 15884, 4452, 8685, 876, 286, 5952, 7740, 486, 15518, 2099, 3798, 486, 2258, 1507, 2927, 2638, 568, 15454, 1428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_region_to_bin() { assert_eq!(region_to_bin(7, 13), 4681); assert_eq!(region_to_bin(63245985, 63255986), 8541); }
rust_cleaned_test_functions.jsonl/27214
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20627, 2346, 21816, 368, 341, 1789, 286, 2060, 10714, 10297, 3943, 2346, 21816, 7, 22, 11, 220, 16, 18, 701, 220, 19, 21, 23, 16, 317, 1789, 286, 2060, 10714, 10297, 3943, 2346, 21816, 7, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_components_crud() { let mut world = World::default(); world.register::<A>(); world.register::<B>(); world.register::<C>(); // Insert let e0 = world.create_entity((A(0), B(0))); { let (a, b) = world.borrow::<(Comp<A>, Comp<B>)>(); assert_eq!(a.get(e0)...
rust_cleaned_test_functions.jsonl/32643
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 646 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23258, 32331, 661, 368, 341, 262, 1077, 5206, 1879, 284, 4337, 486, 2258, 543, 262, 1879, 9929, 27638, 32, 3913, 262, 1879, 9929, 27638, 33, 3913, 262, 1879, 9929, 27638, 34, 10448, 262, 442, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_groth16_aggregation() { const NUM_PUBLIC_INPUTS: usize = 50; const NUM_PROOFS: usize = 8; let mut rng = rand_chacha::ChaChaRng::seed_from_u64(0u64); println!("Creating parameters..."); // Generate parameters for inner product aggregation let generic = setup_fake_srs(&...
rust_cleaned_test_functions.jsonl/2137
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2427 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 299, 339, 16, 21, 20587, 34442, 368, 341, 262, 733, 15943, 36209, 21022, 50, 25, 22301, 284, 220, 20, 15, 26, 715, 262, 733, 15943, 5756, 46, 8485, 25, 22301, 284, 220, 23, 26, 715, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_args_min_count_label() { let mut args = Args::new(); assert_eq!(0, args.min_count_label()); args.set_min_count_label(10); assert_eq!(10, args.min_count_label()); }
rust_cleaned_test_functions.jsonl/118618
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 111 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8384, 7260, 3180, 6106, 368, 341, 286, 1077, 5206, 2827, 284, 17693, 486, 931, 543, 286, 2060, 10714, 10297, 15, 11, 2827, 4358, 3180, 6106, 5231, 286, 2827, 980, 7260, 3180, 6106, 7, 16, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_check_txn_status_with_max_ts() { fn must_check_txn_status( client: &TikvClient, ctx: Context, key: &[u8], lock_ts: u64, caller_start_ts: u64, current_ts: u64, ) -> CheckTxnStatusResponse { let mut req = CheckTxnStatusRequest::defaul...
rust_cleaned_test_functions.jsonl/113468
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 758 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 92299, 4773, 6615, 6345, 25023, 368, 341, 262, 5168, 1969, 7200, 92299, 4773, 1006, 286, 2943, 25, 609, 51, 1579, 85, 2959, 345, 286, 5635, 25, 9608, 345, 286, 1376, 25, 44590, 84, 23, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_collect_stats() { let mut pd_worker = FutureWorker::new("test-pd-worker"); let store_stat = Arc::new(Mutex::new(StoreStat::default())); let runner = RunnerTest::new(1, pd_worker.scheduler(), Arc::clone(&store_stat)); pd_worker.start(runner).unwrap(); let ...
rust_cleaned_test_functions.jsonl/20282
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68140, 15381, 368, 341, 286, 1077, 5206, 7744, 40385, 284, 12498, 21936, 486, 931, 445, 1944, 2268, 67, 65516, 797, 286, 1077, 3553, 16271, 284, 19689, 486, 931, 3189, 9371, 486, 931, 7, 6093, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_reached_leader_tick() { panoptes_logger::setup(); let ledger_path = get_tmp_ledger_path!(); { let blockstore = Blockstore::open(&ledger_path) .expect("Expected to be able to open database ledger"); let GenesisConfigInfo { genesis_c...
rust_cleaned_test_functions.jsonl/39787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1300 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 3854, 79991, 43612, 368, 341, 286, 7215, 2912, 288, 27413, 486, 15188, 1428, 286, 1077, 46933, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 341, 310, 1077, 2504, 4314, 284, 8362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_empty_add_mid() { let mut assr = Assembler::new(16); assert_eq!(assr.add(4, 8), Ok(())); assert_eq!(assr, contigs![(4, 8), (4, 0)]); }
rust_cleaned_test_functions.jsonl/52004
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 2891, 43733, 368, 341, 286, 1077, 5206, 1071, 81, 284, 1634, 35401, 486, 931, 7, 16, 21, 317, 286, 2060, 10714, 10297, 395, 81, 1364, 7, 19, 11, 220, 23, 701, 7622, 5065, 1106, 286, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_once_check_count_fail_zero() { let occurence: Occurences<u32> = Occurences::Once; occurence.check_count(0).unwrap(); }
rust_cleaned_test_functions.jsonl/4430
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7630, 7200, 3180, 22121, 19359, 368, 341, 286, 1077, 2983, 86937, 25, 19927, 552, 98162, 34837, 18, 17, 29, 284, 19927, 552, 98162, 486, 12522, 280, 286, 2983, 86937, 9093, 3180, 7, 15, 568, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_read_block_as_array() { let band_index = 1; let block_index = (0, 0); let dataset = Dataset::open(fixture!("tinymarble.png")).unwrap(); let rasterband = dataset.rasterband(band_index).unwrap(); let result = rasterband.read_block::<u8>(block_index); assert!(result.is_ok())...
rust_cleaned_test_functions.jsonl/83446
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 7113, 11898, 3858, 368, 341, 262, 1077, 7055, 3560, 284, 220, 16, 280, 262, 1077, 2504, 3560, 284, 320, 15, 11, 220, 15, 317, 262, 1077, 10337, 284, 39183, 486, 2508, 94886, 17223, 55971, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_peer_collect_capabilities_get_capability_fails() { let mut exec = fasync::TestExecutor::new().expect("failed to create an executor"); let (remote, _, _, peer) = setup_peer_test(); let collect_future = peer.collect_capabilities(); pin_mut!(collect_future); ...
rust_cleaned_test_functions.jsonl/91779
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1465 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45159, 68140, 92092, 3062, 89686, 761, 6209, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 2271, 25255, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 458, 31558, 3071, 286, 1077, 320, 1814...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_clock_tick() { let time = TimeStd::from(Arc::new(ContextData::new())).unwrap(); let mut clock = time.new_clock(); let ticks = clock.tick(); assert_eq!(0.0, ticks); ::std::thread::sleep(Duration::from_millis(10)); let ticks = clock.tick(); a...
rust_cleaned_test_functions.jsonl/52808
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23062, 43612, 368, 341, 286, 1077, 882, 284, 4120, 22748, 486, 1499, 4346, 1287, 486, 931, 14001, 1043, 486, 931, 34670, 15454, 543, 286, 1077, 5206, 8866, 284, 882, 4618, 23062, 543, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_pub_sub_vm_publishing_option() { let (subscription, mut reconfig_receiver) = ReconfigSubscription::subscribe_all("", vec![VMPublishingOption::CONFIG_ID], vec![]); let (validators, mut block_executor, mut executor_proxy) = bootstrap_genesis_and_set_subscrip...
rust_cleaned_test_functions.jsonl/36646
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 506 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34014, 5228, 39008, 58779, 287, 9672, 368, 341, 286, 1077, 320, 34404, 11, 5206, 312, 1676, 65691, 8, 4035, 310, 1032, 1676, 33402, 486, 9384, 5705, 19814, 7486, 20703, 53, 5781, 2538, 287, 5341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_memchr_both_last() { let pos = memchr_both_last(b'\n', b'-', &b"test\n-this"[..]); assert_eq!(pos, Some(4)); let pos = memchr_both_last(b'\n', b'-', &b"te\nst\n-this"[..]); assert_eq!(pos, Some(5)); let pos = memchr_both_last(b'\n', b'-', &b"-te\nst\n-th...
rust_cleaned_test_functions.jsonl/13582
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12976, 16789, 88819, 12195, 368, 341, 286, 1077, 1133, 284, 1833, 16789, 88819, 12195, 1883, 15777, 77, 516, 293, 24293, 516, 609, 65, 1, 1944, 1699, 60191, 36864, 496, 2558, 286, 2060, 10714, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_overlaps() { assert!(Z2::overlaps( ZRange { min: 0, max: 1 }, ZRange { min: 1, max: 4 } )); // Smaller overlaps larger assert!(Z2::overlaps( ZRange { min: Z2::new(1, 0).z(), max: Z2::new(2, 0).z()...
rust_cleaned_test_functions.jsonl/85857
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 522 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15431, 89722, 368, 341, 286, 2060, 10297, 57, 17, 486, 1975, 89722, 1006, 310, 1863, 6046, 314, 1308, 25, 220, 15, 11, 1932, 25, 220, 16, 1153, 310, 1863, 6046, 314, 1308, 25, 220, 16, 11, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_f64_le() { test_codec!( get_f64_samples(), encode_f64_le, decode_f64_le, write_f64_le, read_f64_le, ); }
rust_cleaned_test_functions.jsonl/56920
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 21, 19, 11751, 368, 341, 286, 1273, 51084, 33673, 310, 633, 761, 21, 19, 18297, 3148, 310, 16164, 761, 21, 19, 11751, 345, 310, 16895, 761, 21, 19, 11751, 345, 310, 3270, 761, 21, 19, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_secp256k1() { solana_logger::setup(); let offsets = SecpSignatureOffsets::default(); assert_eq!( bincode::serialized_size(&offsets).unwrap() as usize, SIGNATURE_OFFSETS_SERIALIZED_SIZE ); let secp_privkey = libsecp256k1::SecretKey:...
rust_cleaned_test_functions.jsonl/36813
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 762 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3453, 4672, 17, 20, 21, 74, 16, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 35046, 284, 4520, 79, 25088, 81095, 486, 2258, 543, 286, 2060, 10714, 33673, 310, 9544, 1851, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prefixes_dup() { let mut a = CodeAssembler::new(64).unwrap(); a.xacquire().xacquire().lock().lock().add(byte_ptr(rcx), dl).unwrap(); a.xrelease().xrelease().lock().lock().add(byte_ptr(rcx), dl).unwrap(); a.lock().lock().add(byte_ptr(rcx), dl).unwrap(); a.rep().rep().stosb().unwrap(); a.rep...
rust_cleaned_test_functions.jsonl/71802
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 379 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13974, 288, 51932, 368, 341, 10217, 5206, 264, 284, 6119, 77858, 486, 931, 7, 21, 19, 568, 15454, 543, 11323, 1993, 580, 984, 1005, 52642, 984, 1005, 1023, 1005, 1023, 1005, 718, 19738, 4348, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_opalkelly_xem_7010_synth_download32() { let mut uut = OpalKellyDownload32FIFOTest::new::<XEM7010>(); uut.hi.link_connect_dest(); uut.connect_all(); XEM7010::synth(uut, target_path!("xem_7010/download32")); test_opalkelly_download32_runtime(target_path!("xem_7010/download32/to...
rust_cleaned_test_functions.jsonl/72675
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 154 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10287, 1692, 11896, 3212, 336, 62, 22, 15, 16, 15, 643, 45809, 35939, 18, 17, 368, 341, 262, 1077, 5206, 575, 332, 284, 10672, 278, 69072, 11377, 18, 17, 37, 2773, 1793, 477, 486, 931, 27638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_handle_ihave_subscribed_and_msg_not_cached() { let (mut gs, peers, topic_hashes) = inject_nodes1() .peer_no(20) .topics(vec![String::from("topic1")]) .to_subscribe(true) .create_network(); gs.handle_ihave( &peers[7], ...
rust_cleaned_test_functions.jsonl/66889
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 539 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 5318, 19016, 5228, 49785, 8378, 6483, 7913, 64369, 368, 341, 286, 1077, 320, 6984, 28081, 11, 25029, 11, 8544, 91616, 8, 284, 15551, 14896, 16, 741, 310, 659, 16537, 6536, 7, 17, 15, 340,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_derived_abstract_class_no_make_unique() { let hdr = indoc! {" class A { public: A(); virtual void foo() const = 0; }; class B : public A { public: B(); }; "}; let rs = quote! {}; run_test("", hdr...
rust_cleaned_test_functions.jsonl/9884
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35345, 2221, 85939, 4790, 6536, 28230, 21218, 368, 341, 262, 1077, 36615, 284, 1257, 509, 0, 314, 698, 286, 536, 362, 341, 286, 584, 510, 310, 362, 543, 310, 4108, 737, 15229, 368, 733, 284, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_strings() { let mut map = PolyMap::new(); map.insert("a".to_string(), "a".to_string()); map.insert("b".to_string(), "b".to_string()); assert_eq!(map.get::<_, String>("a"), Some(&"a".to_string())); assert_eq!(map.get::<_, String>("b"), Some(&"b".to_string...
rust_cleaned_test_functions.jsonl/18705
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33500, 368, 341, 286, 1077, 5206, 2415, 284, 18767, 2227, 486, 931, 1428, 286, 2415, 7030, 445, 64, 3263, 983, 3904, 1507, 330, 64, 3263, 983, 3904, 1423, 286, 2415, 7030, 445, 65, 3263, 983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reset_receive_window() { assert_eq!(65530, Receiver::calculate_current_in_window(65530, 100)); assert_eq!(0, Receiver::calculate_current_in_window(0, 512)); assert_eq!(10, Receiver::calculate_current_in_window(0, 512 + 10)); assert_eq!(1, Receiver::calculate_curre...
rust_cleaned_test_functions.jsonl/111898
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 188 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18983, 38557, 12571, 368, 341, 286, 2060, 10714, 10297, 21, 20, 20, 18, 15, 11, 50952, 486, 35597, 11080, 1243, 12571, 7, 21, 20, 20, 18, 15, 11, 220, 16, 15, 15, 1106, 286, 2060, 10714, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_label_compression_regression() { // https://github.com/bluejekyll/trust-dns/issues/339 let data: Vec<u8> = vec![154, 50, 129, 128, 0, 1, 0, 0, 0, 1, 0, 1, 7, 98, 108, 117, 101, 100, 111, 116, 2, 105, 115, 8, 97, 117, 116, 111, 110, 97, 118, 105, 3, 99, 111, 109, 3, 103, ...
rust_cleaned_test_functions.jsonl/62751
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 360 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6106, 2965, 4011, 91144, 368, 341, 286, 442, 3703, 1110, 5204, 905, 97916, 73, 96809, 21485, 590, 1737, 4412, 38745, 14, 18, 18, 24, 8945, 286, 1077, 821, 25, 11312, 34837, 23, 29, 284, 7486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transport_message_undersized_output_buffer() { let params: NoiseParams = "Noise_N_25519_AESGCM_SHA256".parse().unwrap(); let mut noise = Builder::new(params).remote_public_key(&[0u8; 32]).build_initiator().unwrap(); let mut buffer_out = [0u8; 200]; noise.write_message(&[0u8; 0],...
rust_cleaned_test_functions.jsonl/27111
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 46398, 6462, 62, 31009, 1506, 7645, 7776, 368, 341, 262, 1077, 3628, 25, 50523, 4870, 284, 330, 61819, 1604, 62, 17, 20, 20, 16, 24, 69381, 38, 9985, 38096, 17, 20, 21, 3263, 6400, 1005, 15454...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_random() { test(vec3(1.0, 2.0, 3.0), vec3(-4.0, 5.0, -6.0)); }
rust_cleaned_test_functions.jsonl/38257
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 63 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22644, 368, 341, 286, 1273, 25592, 18, 7, 16, 13, 15, 11, 220, 17, 13, 15, 11, 220, 18, 13, 15, 701, 7486, 18, 4080, 19, 13, 15, 11, 220, 20, 13, 15, 11, 481, 21, 13, 15, 1106, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_sigaction() { use libc; extern fn test_sigaction_handler(_: libc::c_int) {} extern fn test_sigaction_action(_: libc::c_int, _: *mut libc::siginfo_t, _: *mut libc::c_void) {} let handler_sig = SigHandler::Handler(test_sigaction_handler); let ...
rust_cleaned_test_functions.jsonl/10345
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 574 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29252, 1311, 368, 341, 286, 990, 42142, 401, 286, 15637, 5168, 1273, 29252, 1311, 10183, 73834, 42142, 486, 66, 4042, 8, 5613, 286, 15637, 5168, 1273, 29252, 1311, 7931, 73834, 42142, 486, 66, 404...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cbtc_conversion() { TEST_AMOUNTS .iter() .for_each(|amounts| test_from_cbtc(amounts.centi_bit, BitcoinAmount(amounts.satoshi))); }
rust_cleaned_test_functions.jsonl/131266
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16450, 10413, 64132, 368, 341, 310, 13602, 59993, 50, 198, 394, 659, 2015, 741, 394, 659, 1958, 32046, 22428, 6045, 82, 91, 1273, 5673, 16450, 10413, 33989, 82, 520, 22396, 13996, 11, 13127, 10093...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_writer_read_from_one_buf() { let mut writer = test_writer(1, 2); assert_eq!(writer.write(&[]).unwrap(), 0); assert_eq!(writer.write_vectored(&[]).unwrap(), 0); // Read at most 2 bytes. assert_eq!(writer.write(&[1, 1, 1]).unwrap(), 2); let bufs = ...
rust_cleaned_test_functions.jsonl/8688
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28908, 6443, 5673, 11667, 10363, 368, 341, 286, 1077, 5206, 6916, 284, 1273, 28908, 7, 16, 11, 220, 17, 626, 286, 2060, 10714, 10297, 18189, 3836, 2099, 1294, 568, 15454, 1507, 220, 15, 317, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eq_ignore_ascii_case() { assert!(Atom::from("").eq_ignore_ascii_case(&Atom::from(""))); assert!(Atom::from("aZ9").eq_ignore_ascii_case(&Atom::from("aZ9"))); assert!(Atom::from("aZ9").eq_ignore_ascii_case(&Atom::from("Az9"))); assert!(Atom::from("The Quick Brown Fo...
rust_cleaned_test_functions.jsonl/80902
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 443 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10714, 58493, 50238, 19096, 368, 341, 286, 2060, 10297, 35836, 486, 1499, 80821, 11006, 58493, 50238, 19096, 2099, 35836, 486, 1499, 445, 17621, 286, 2060, 10297, 35836, 486, 1499, 445, 64, 57, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_select() { use crate::query::ast::helper::assert_parse_result; use crate::query::ast::*; let location = Location::pos(0); assert_parse_result( "Select * from Test AS t WHERE t.id >= 100 GROUP BY t.ty HAVING t.ty != 3 Order By COUNT(t.id) DESC LIMIT 10 OFFSET 1", ...
rust_cleaned_test_functions.jsonl/49026
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2905 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13051, 368, 341, 262, 990, 17717, 486, 1631, 486, 559, 486, 18764, 486, 2207, 21039, 5287, 280, 262, 990, 17717, 486, 1631, 486, 559, 79304, 262, 1077, 3728, 284, 9866, 486, 966, 7, 15, 626, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ber_read_null_ok() { let value = parse_ber(&[5, 0], |reader| { reader.read_null() }).unwrap(); assert_eq!(value, ()); }
rust_cleaned_test_functions.jsonl/111146
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88165, 6443, 15162, 19817, 368, 341, 262, 1077, 897, 284, 4715, 88165, 2099, 58, 20, 11, 220, 15, 1125, 760, 11149, 91, 341, 286, 6604, 4125, 15162, 741, 262, 8533, 15454, 543, 262, 2060, 10714,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_strip_one_ci_prefix() { assert_eq!( strip_one_ci_prefix("GitHub:url goes here", ["issue:", "github:"].into_iter()), Some(String::from("url goes here")) ); assert_eq!( strip_one_ci_prefix("GITHUB: url goes here", ["issue:", "github:"].in...
rust_cleaned_test_functions.jsonl/31457
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66130, 11667, 43514, 13974, 368, 341, 286, 2060, 10714, 33673, 310, 13316, 11667, 43514, 13974, 445, 75615, 35730, 5780, 1588, 497, 4383, 11159, 12147, 330, 5204, 2974, 936, 18122, 11723, 14702, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_block_encoder_invalid_packet_size() { let packet_size: u16 = 1337; let data_size: usize = packet_size as usize * MAX_SYMBOLS_IN_BLOCK as usize; let data = gen_data(data_size); match BlockEncoder::new(0, packet_size, data.clone(), None) { Ok(_) => panic!( "Sho...
rust_cleaned_test_functions.jsonl/96422
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7113, 39068, 31433, 21078, 2368, 368, 341, 262, 1077, 10151, 2368, 25, 575, 16, 21, 284, 220, 16, 18, 18, 22, 280, 262, 1077, 821, 2368, 25, 22301, 284, 10151, 2368, 438, 22301, 353, 8334, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_week_of_year() { let cases = vec![ ("2018-01-01", Some(1i64)), ("2018-02-28", Some(9i64)), ("2018-06-01", Some(22i64)), ("2018-07-31", Some(31i64)), ("2018-11-01", Some(44i64)), ("2018-12-30", Some(52i64)), ...
rust_cleaned_test_functions.jsonl/36234
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 656 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31277, 3575, 14645, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 17, 15, 16, 23, 12, 15, 16, 12, 15, 16, 497, 4329, 7, 16, 72, 21, 19, 6965, 310, 3489, 17, 15, 16, 23, 12, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_manual_fast_iterate() { let inputs = read_lines("data/day_14_sample.txt"); let (mut template, rules) = parse_inputs(&inputs); let rules_map = rules_as_map(&rules); fast_expand(&mut template, &rules_map); assert_eq!(template, vec!["N", "C", "N", "B", "C", "H", "B"]); fas...
rust_cleaned_test_functions.jsonl/105367
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75428, 35743, 11723, 349, 368, 341, 262, 1077, 11127, 284, 1349, 18323, 445, 691, 44739, 62, 16, 19, 17491, 3909, 797, 262, 1077, 320, 6984, 3811, 11, 5601, 8, 284, 4715, 28557, 2099, 24941, 317...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_no_dereference_no_file() { new_ucmd!() .args(&["-h", "not-a-file"]) .fails() .stderr_contains("setting times of 'not-a-file': No such file or directory"); new_ucmd!() .args(&["-h", "not-a-file-1", "not-a-file-2"]) .fails() .stderr_contains(...
rust_cleaned_test_functions.jsonl/96657
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 814, 485, 2202, 6536, 2458, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 71, 497, 330, 1921, 7409, 14203, 14108, 286, 659, 59631, 741, 286, 659, 36422, 63598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_gives_error_for_incorrect_type() { // String let query = parse(&serde_json::from_str(" \"hello\" ").unwrap()); assert_eq!(query.err(), Some(QueryParseError::ExpectedObject)); // Array let query = parse(&serde_json::from_str(" [ ...
rust_cleaned_test_functions.jsonl/121946
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 389 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 1886, 4096, 5478, 1243, 19928, 1819, 368, 341, 286, 442, 923, 198, 286, 1077, 3239, 284, 4715, 2099, 47024, 9455, 486, 1499, 2895, 70576, 286, 7245, 14990, 59, 698, 286, 27510, 15454, 5231, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rsplit_once() { assert_eq!("".rsplit_once("->"), None); assert_eq!("-".rsplit_once("->"), None); assert_eq!("->".rsplit_once("->"), Some(("", ""))); assert_eq!("a->".rsplit_once("->"), Some(("a", ""))); assert_eq!("->b".rsplit_once("->"), Some(("", "b"))); assert_eq!("a->...
rust_cleaned_test_functions.jsonl/119434
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 6960, 7630, 368, 341, 262, 2060, 10714, 17223, 3263, 5428, 2292, 7630, 445, 405, 3975, 2240, 317, 262, 2060, 10714, 0, 13645, 3263, 5428, 2292, 7630, 445, 405, 3975, 2240, 317, 262, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_max_hashes() { solana_logger::setup(); use std::path::PathBuf; use tempfile::TempDir; let keypair = Keypair::new(); let contact_info = ContactInfo::new_localhost(&keypair.pubkey(), 0); let cluster_info = new_test_cluster_info(contact_info); ...
rust_cleaned_test_functions.jsonl/79116
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 91616, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 990, 1460, 486, 2343, 486, 1820, 15064, 280, 286, 990, 54819, 486, 12151, 6184, 280, 286, 1077, 1376, 12670, 284, 6569, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_qos_exactly_once() { let input_qos = "2"; let expected_qos = QoS::ExactlyOnce; assert_eq!(parse_qos(input_qos).unwrap(), expected_qos); }
rust_cleaned_test_functions.jsonl/15144
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 98 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 78960, 2702, 32739, 7630, 368, 341, 286, 1077, 1946, 78960, 284, 330, 17, 876, 286, 1077, 3601, 78960, 284, 1207, 72743, 486, 65357, 12522, 280, 286, 2060, 10714, 10297, 6400, 78960, 5384, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_assert_near_fail_high() { assert_near!(1.0f32, (1.0f32 + f32::EPSILON + f32::EPSILON), f32::EPSILON); }
rust_cleaned_test_functions.jsonl/83475
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 71 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16553, 76340, 22121, 22680, 368, 341, 262, 2060, 76340, 10297, 16, 13, 15, 69, 18, 17, 11, 320, 16, 13, 15, 69, 18, 17, 488, 282, 18, 17, 486, 45177, 55016, 488, 282, 18, 17, 486, 45177, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_make_message_id() { let mut ids = std::collections::HashSet::with_capacity(10); for _ in 0..1000 { ids.insert(make_message_id()); } // Ensure there are no duplicates assert_eq!(1000, ids.len()); // Ensure correct length for id...
rust_cleaned_test_functions.jsonl/81354
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 6462, 842, 368, 341, 286, 1077, 5206, 14151, 284, 1460, 486, 51137, 486, 44601, 486, 4197, 35603, 7, 16, 15, 317, 286, 369, 716, 304, 220, 15, 496, 16, 15, 15, 15, 341, 310, 14151, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_deposits_allowed_single_token() { let trade_fee_numerator = 1; let trade_fee_denominator = 10; let owner_trade_fee_numerator = 1; let owner_trade_fee_denominator = 30; let owner_withdraw_fee_numerator = 0; let owner_withdraw_fee_denominator = 30; ...
rust_cleaned_test_functions.jsonl/31973
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2259, 966, 1199, 42155, 19487, 6458, 368, 341, 286, 1077, 6559, 34305, 1089, 60969, 284, 220, 16, 280, 286, 1077, 6559, 34305, 49522, 30206, 284, 220, 16, 15, 280, 286, 1077, 6372, 52162, 34305, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_memload_opcode() { let default_code = vec![0x60, 0x05, 0x60, 0x01, 0x52, 0x01, 0x51]; let mut vm = VM::new(default_code).with_simple_memory(); let result = vm.execute_one(); assert!(result.is_ok()); let result = vm.execute_one(); assert!(result.is_...
rust_cleaned_test_functions.jsonl/125707
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 225 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12976, 1078, 71319, 368, 341, 286, 1077, 1638, 4136, 284, 7486, 20703, 15, 87, 21, 15, 11, 220, 15, 87, 15, 20, 11, 220, 15, 87, 21, 15, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 20, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_collect_vote_lockouts_root() { let votes: Vec<u64> = (0..MAX_LOCKOUT_HISTORY as u64).collect(); let mut accounts = gen_stakes(&[(1, &votes), (1, &votes)]); accounts.sort_by_key(|(pk, _)| *pk); let account_latest_votes: PubkeyVotes = accounts ....
rust_cleaned_test_functions.jsonl/77020
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 992 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68140, 54360, 9818, 11672, 12993, 368, 341, 286, 1077, 12684, 25, 11312, 34837, 21, 19, 29, 284, 320, 15, 496, 10586, 27661, 3656, 63823, 438, 575, 21, 19, 568, 17384, 543, 1789, 286, 1077, 5206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_double() { let a = Jacobian::from(Affine::new( field_element!("01ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca"), field_element!("005668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"), )); let b = Jacobian::from(Affine...
rust_cleaned_test_functions.jsonl/38965
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24598, 368, 341, 286, 1077, 264, 284, 24521, 1103, 486, 1499, 4346, 542, 482, 486, 931, 1006, 310, 2070, 7894, 17223, 15, 16, 823, 16, 20, 66, 16, 23, 20, 24, 24, 24, 22, 16, 65, 22, 16692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fn_signature_for_method_with_arg() { check( r#" struct S; impl S { fn foo(&self, x: i32) {} } fn main() { S.foo(<|>); } "#, expect![[r#" fn foo(&self, x: i32) (<x: i32>) "#]], ); }
rust_cleaned_test_functions.jsonl/21223
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15246, 39859, 5478, 9032, 6615, 6057, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1235, 328, 280, 6383, 328, 341, 262, 5168, 15229, 2099, 721, 11, 856, 25, 600, 18, 17, 8, 5613, 630, 8822, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_byte_buf_ser() { let bytes = ByteBuf::new(); assert_eq!(to_string(&bytes).unwrap(), "[]".to_string()); let bytes = ByteBuf::from(vec![1, 2, 3]); assert_eq!(to_string(&bytes).unwrap(), "[1,2,3]".to_string()); }
rust_cleaned_test_functions.jsonl/29854
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19737, 10363, 75861, 368, 341, 262, 1077, 5820, 284, 10906, 15064, 486, 931, 543, 262, 2060, 10714, 10297, 983, 3904, 2099, 9651, 568, 15454, 1507, 330, 1294, 3263, 983, 3904, 5231, 262, 1077, 582...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fun_to_str() { let abba_ident = token::str_to_ident("abba"); let decl = ast::FnDecl { inputs: Vec::new(), output: ast::P(ast::Ty {id: 0, node: ast::TyNil, span: codemap::DUMMY_SP}), ...
rust_cleaned_test_functions.jsonl/2692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 367 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28315, 2346, 2895, 368, 341, 286, 1077, 668, 4645, 38399, 284, 3950, 486, 495, 2346, 38399, 445, 370, 4645, 3071, 286, 1077, 3963, 284, 11763, 486, 24911, 21629, 341, 310, 11127, 25, 11312, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1