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_disconnected() { let mut exec = fasync::Executor::new().expect("executor should build"); let (proxy, _stream) = create_proxy::<ProfileMarker>().expect("Profile proxy should be created"); let (cobalt_sender, _) = fake_cobalt_sender(); let (remote, sign...
rust_cleaned_test_functions.jsonl/125259
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 419 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9932, 15288, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 25255, 486, 931, 1005, 17119, 445, 80787, 1265, 1936, 797, 286, 1077, 320, 22803, 11, 716, 4027, 8, 4035, 310, 1855, 29712, 276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bpf_loader_write() { let loader_id = bpf_loader::id(); let program_id = Pubkey::new_unique(); let mut program_account = AccountSharedData::new(1, 0, &loader_id); let instruction_data = bincode::serialize(&LoaderInstruction::Write { offset: 3, ...
rust_cleaned_test_functions.jsonl/55705
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1110 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 15897, 22139, 9165, 368, 341, 286, 1077, 16047, 842, 284, 293, 15897, 22139, 486, 307, 543, 286, 1077, 2025, 842, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 5206, 2025, 13500, 284, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_serde() { test_value(true); test_value(100i32); test_value(1.123f64); test_value(Some(100i32)); test_value(ConstValue::Null); test_value(vec![0i32, 1, 2, 3, 4, 5, 6, 7, 8, 9]); test_value(b"123456".to_vec()); #[derive(Debug, Serialize, Deserialize, Eq, PartialEq,...
rust_cleaned_test_functions.jsonl/58423
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 549 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75861, 450, 368, 341, 262, 1273, 3142, 3715, 317, 262, 1273, 3142, 7, 16, 15, 15, 72, 18, 17, 317, 262, 1273, 3142, 7, 16, 13, 16, 17, 18, 69, 21, 19, 317, 262, 1273, 3142, 65405, 7, 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_poh_recorder_clear() { 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_config, .. } = create_genesis_config(...
rust_cleaned_test_functions.jsonl/106261
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 634 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 2267, 7080, 1358, 21811, 368, 341, 286, 1077, 46933, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 341, 310, 1077, 2504, 4314, 284, 8362, 4314, 486, 2508, 2099, 50704, 2638, 340, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ubx_packet_recv_simple() { let src_code = quote! { #[ubx_packet_recv] #[ubx(class = 1, id = 2, fixed_payload_len = 16)] #[doc = "Some comment"] struct Test { itow: u32, #[doc = "this is lat"] #[ubx(map_type = f64, scale = 1e...
rust_cleaned_test_functions.jsonl/16492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66794, 87, 21078, 36118, 30015, 368, 341, 262, 1077, 2286, 4136, 284, 12641, 0, 341, 286, 11506, 392, 87, 21078, 36118, 921, 286, 11506, 392, 87, 21956, 284, 220, 16, 11, 877, 284, 220, 17, 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
#[test] fn test_istddev_sample() { static TEST_CASES: &'static [(&'static [u64], u64)] = &[(&[272601155, 1327834, 1063480], 156696093)]; for test_case in TEST_CASES { assert_eq!( test_case.1, istddev_sample(test_case.0.iter().cloned()).unwrap() ); } }
rust_cleaned_test_functions.jsonl/46710
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 380, 67, 3583, 17491, 368, 341, 262, 1099, 13602, 28540, 50, 25, 30136, 1978, 508, 2099, 6, 1978, 508, 84, 21, 19, 1125, 575, 21, 19, 7252, 4035, 286, 44590, 2099, 58, 17, 22, 17, 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...
2
#[test] fn test_from_two_lists() { let data_1 = vec![ Some(vec![Some(1i32), Some(2), Some(3)]), None, Some(vec![Some(6i32), None, Some(8)]), ]; let array_1: ListPrimitive<i32, Primitive<i32>, i32> = data_1.into_iter().collect(); let array_1 = a...
rust_cleaned_test_functions.jsonl/117057
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 712 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 23241, 37288, 368, 341, 286, 1077, 821, 62, 16, 284, 7486, 90515, 310, 4329, 25592, 20703, 8373, 7, 16, 72, 18, 17, 701, 4329, 7, 17, 701, 4329, 7, 18, 7252, 1326, 310, 2240, 345, 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_meters_pixels() { let mercator = GlobalMercator::default(); let (mx, my) = (31100.00, 42200.1); let zoom = 8; let (px, py) = mercator.meters_to_pixels(mx, my, zoom); let (mx_new, my_new) = mercator.pixels_to_meters(px, py, zoom); assert!( ...
rust_cleaned_test_functions.jsonl/63573
{ "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, 717, 2424, 49745, 368, 341, 286, 1077, 16481, 850, 284, 7962, 62130, 850, 486, 2258, 543, 286, 1077, 320, 18085, 11, 847, 8, 284, 320, 18, 16, 16, 15, 15, 13, 15, 15, 11, 220, 19, 17, 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_mul() { let ctx = FieldCtx::new(); let x = raw_mul(&ctx.modulus, &ctx.modulus); let y = ctx.fast_reduction(&x); assert!(y.is_zero()); }
rust_cleaned_test_functions.jsonl/99463
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24944, 368, 341, 286, 1077, 5635, 284, 8601, 23684, 486, 931, 543, 286, 1077, 856, 284, 7112, 24944, 2099, 3773, 10929, 19425, 11, 609, 3773, 10929, 19425, 317, 286, 1077, 379, 284, 5635, 39570, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_clip_line() { let a = CellGrid::a(); let b = CellGrid::b(); let bounds = AABB::new(*a, *b); let clip = clip_line(&bounds, a, b); println!("clip: {:#?}", clip); assert_eq!(clip, Some((a, b))); }
rust_cleaned_test_functions.jsonl/36466
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44728, 6528, 368, 341, 286, 1077, 264, 284, 13972, 3543, 486, 64, 543, 286, 1077, 293, 284, 13972, 3543, 486, 65, 543, 286, 1077, 14262, 284, 88580, 486, 931, 4071, 64, 11, 353, 65, 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_templated_path_missing_parameters() { let spec = Cursor::new( b" swagger: \"2.0\" definitions: {} info: title: \"Petstore\" version: \"1.0.0\" paths: /pets/{petId}: get: responses: \"200\": schema: type: string " as &[_], ); let...
rust_cleaned_test_functions.jsonl/12069
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 332 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 25892, 657, 2638, 40447, 18263, 368, 341, 262, 1077, 1398, 284, 28067, 486, 931, 1006, 286, 293, 698, 74755, 25, 7245, 17, 13, 15, 59, 698, 48563, 25, 5613, 2733, 510, 220, 2265, 25, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_invalid_div_modulus() { let one: ModInt = ModInt::from_value_modulus( BigInt::one(), BigInt::from(5), ); let zero: ModInt = ModInt::from_value_modulus( BigInt::zero(), BigInt::from(5), ); one / zero; }
rust_cleaned_test_functions.jsonl/126151
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 16237, 7480, 19425, 368, 341, 286, 1077, 825, 25, 5650, 1072, 284, 5650, 1072, 486, 1499, 3142, 7480, 19425, 1006, 310, 62608, 486, 603, 3148, 310, 62608, 486, 1499, 7, 20, 1326, 286, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_process_blockstore_epoch_boundary_root() { solana_logger::setup(); let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(10_000); let ticks_per_slot = genesis_config.ticks_per_slot; // Create a new ledger with slot 0 full of ticks let (led...
rust_cleaned_test_functions.jsonl/70849
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 987 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 7113, 4314, 20682, 54004, 12993, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 40788, 2648, 1731, 314, 59366, 5332, 11, 5241, 335, 284, 1855, 16322, 13774, 5332, 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, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_change_directory() { let scene = TestScenario::new(util_name!()); let temporary_directory = tempdir().unwrap(); let temporary_path = fs::canonicalize(temporary_directory.path()).unwrap(); assert_ne!(env::current_dir().unwrap(), temporary_path); // command to print out curren...
rust_cleaned_test_functions.jsonl/1549
{ "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, 15947, 14846, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 13340, 14846, 284, 2730, 3741, 1005, 15454, 543, 262, 1077, 13340, 2638, 284, 8619, 486, 77942...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_voter_registration() { let (vote_pubkey, vote_account) = create_test_account(); let vote_state: VoteState = vote_account.state().unwrap(); assert_eq!(vote_state.authorized_voter, vote_pubkey); assert!(vote_state.votes.is_empty()); }
rust_cleaned_test_functions.jsonl/69961
{ "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, 2273, 25392, 49101, 368, 341, 286, 1077, 320, 29358, 34014, 792, 11, 6910, 13500, 8, 284, 1855, 4452, 13500, 1428, 286, 1077, 6910, 4387, 25, 34034, 1397, 284, 6910, 13500, 3467, 1005, 15454, 543,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_quote_default() { let should_quote : String = (0..128) .map(|i| from_u32(i as u32).unwrap()) .filter(|&c| c != '-' && c != '.' && c != '/' && c != '_') .filter(|&c| !c.is_alphanumeric()) .collect(); for s in should_quote.chars() { let original : &s...
rust_cleaned_test_functions.jsonl/21618
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 234 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45236, 9993, 368, 341, 262, 1077, 1265, 45236, 549, 923, 284, 320, 15, 496, 16, 17, 23, 340, 286, 659, 2186, 22428, 72, 91, 504, 7300, 18, 17, 1956, 438, 575, 18, 17, 568, 15454, 2398, 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...
5
#[test] fn test_lowest_index1() { use super::LowestIndex as TestingMethod; let mut candles = RandomCandles::default(); let mut ma = TestingMethod::new(1, &candles.first().close).unwrap(); candles.take(100).for_each(|x| { assert_eq!(0, ma.next(&x.close)); }); }
rust_cleaned_test_functions.jsonl/15554
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23767, 477, 3560, 16, 368, 341, 197, 41819, 2256, 486, 24187, 477, 1552, 438, 26768, 3523, 401, 197, 10217, 5206, 51205, 284, 10612, 34, 20125, 486, 2258, 1428, 197, 10217, 5206, 7491, 284, 26768,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_raft_storage() { let (_cluster, storage, mut ctx) = new_raft_storage(); let key = make_key(b"key"); assert_eq!(storage.get(ctx.clone(), &key, 5).unwrap(), None); storage .prewrite( ctx.clone(), vec![Mutation::Put((key.clone(), b"value".to_vec()))],...
rust_cleaned_test_functions.jsonl/82477
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 548 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 2944, 23310, 368, 341, 262, 1077, 5453, 18855, 11, 5819, 11, 5206, 5635, 8, 284, 501, 62, 2944, 23310, 543, 262, 1077, 1376, 284, 1281, 3097, 1883, 1, 792, 797, 262, 2060, 10714, 10297, 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_partial_eq_should_succeed() { assert_eq!(MatrixBuf::new(42, 4.2).as_matrix(), MatrixBuf::new(42, 4.2).as_matrix()); }
rust_cleaned_test_functions.jsonl/34512
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 85 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 52068, 10714, 43378, 643, 29264, 368, 341, 262, 2060, 10714, 10297, 6689, 15064, 486, 931, 7, 19, 17, 11, 220, 19, 13, 17, 568, 300, 10193, 3148, 2290, 11631, 15064, 486, 931, 7, 19, 17, 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
#[test] fn test_count_digits() { fn assert(val: U256, count_digits: u32) { assert_eq!(val.count_digits(), count_digits); } assert(U256::from(0u128), 1); assert(U256::from(1u128), 1); assert(U256::from(10u128), 2); assert(U256::from(11u128), 2); ...
rust_cleaned_test_functions.jsonl/125769
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 476 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3180, 41432, 368, 341, 286, 5168, 2060, 9098, 25, 547, 17, 20, 21, 11, 1760, 41432, 25, 575, 18, 17, 8, 341, 310, 2060, 10714, 10297, 831, 6501, 41432, 1507, 1760, 41432, 317, 286, 555, 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_struct_transform_with_history_std140() { assert_eq!(std::mem::size_of::<TransformWithHistoryStd140>(), 128); assert_eq!(std::mem::size_of::<[[f32; 4]; 4]>(), 64); assert_eq!(std::mem::align_of::<[[f32; 4]; 4]>(), 4); assert_eq!( memoffset::offset_of!(T...
rust_cleaned_test_functions.jsonl/50157
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 337 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 18449, 6615, 19802, 15656, 16, 19, 15, 368, 341, 286, 2060, 10714, 10297, 1834, 486, 10536, 486, 2141, 3575, 27638, 8963, 2354, 13424, 22748, 16, 19, 15, 39019, 220, 16, 17, 23, 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_quantile_short() { let data = [-1.0, 5.0, 0.0, -3.0, 10.0, -0.5, 4.0, 0.2, 1.0, 6.0]; let mut data = Data::new(data); assert_eq!(data.quantile(0.0), -3.0); assert_eq!(data.quantile(1.0), 10.0); assert_almost_eq!(data.quantile(0.5), 3.0 / 5.0, 1e-15); ...
rust_cleaned_test_functions.jsonl/81930
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 383 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53346, 457, 16673, 368, 341, 286, 1077, 821, 284, 10055, 16, 13, 15, 11, 220, 20, 13, 15, 11, 220, 15, 13, 15, 11, 481, 18, 13, 15, 11, 220, 16, 15, 13, 15, 11, 481, 15, 13, 20, 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
#[test] fn test_parse_friendly_description_json() { let a: PeerEntryHashMap = peer_entry_hashmap_try_from(TEXT_JSON).unwrap(); let entry = a.get("L2UoJZN7RmEKsMmqaJgKG0m1S2Zs2wd2ptAf+kb3008="); let entry = entry.expect("this should have been Some (with json!)!"); let mut hm = Ha...
rust_cleaned_test_functions.jsonl/64387
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 497 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 761, 17784, 11448, 9455, 368, 341, 286, 1077, 264, 25, 45147, 5874, 18497, 284, 14397, 9078, 8950, 2186, 53283, 5673, 46356, 25356, 568, 15454, 1428, 286, 1077, 4343, 284, 264, 670, 445, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_multiple_top_level_values_with_comments() -> IonResult<()> { let ion_data = r#" /* Arrokoth is a trans-Neptunian object in the Kuiper belt. It is a contact binary composed of two plenetesimals joined along their major axes....
rust_cleaned_test_functions.jsonl/6507
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 541 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 45233, 10426, 8274, 9146, 6615, 30359, 368, 1464, 44805, 2077, 71698, 341, 286, 1077, 27672, 1769, 284, 435, 2, 698, 310, 9049, 394, 1644, 53561, 8767, 374, 264, 1356, 12, 8813, 417, 359, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_recursive_derived_abstract_class_no_make_unique() { let hdr = indoc! {" class A { public: A() {}; virtual void foo() const = 0; }; class B : public A { public: B() {}; }; class C : public B { ...
rust_cleaned_test_functions.jsonl/9885
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66242, 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, 368, 9321, 310, 4108, 737, 15229, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_addr_subnet_v4() { let bytes = [192, 168, 0, 1]; let prefix = 24; let (core, fidl) = create_addr_subnet(create_addr_v4(bytes), prefix); assert_eq!(fidl, core.into_fidl()); assert_eq!(core, fidl.try_into_core().unwrap()); }
rust_cleaned_test_functions.jsonl/42857
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 147 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7387, 95681, 2273, 19, 368, 341, 286, 1077, 5820, 284, 508, 16, 24, 17, 11, 220, 16, 21, 23, 11, 220, 15, 11, 220, 16, 935, 286, 1077, 9252, 284, 220, 17, 19, 280, 286, 1077, 320, 2153, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_create_list_table_patient() { test_list_table_patient( PATIENTS_LIST_HEADER, PATIENTS_LIST_DICOM_TAGS, false, include_str!("../tests/data/unit/list_patients").trim_end(), ); }
rust_cleaned_test_functions.jsonl/76473
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 147 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 2019, 5237, 70310, 368, 341, 286, 1273, 2019, 5237, 70310, 1006, 310, 44370, 10757, 50, 11899, 20330, 345, 310, 44370, 10757, 50, 11899, 1557, 1317, 1898, 84182, 345, 310, 895, 345, 310, 292...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_raw_uuid() { let uuid = uuid::Uuid::new_v4(); let (sql, params) = Postgres::build(Select::default().value(uuid.raw())).unwrap(); assert_eq!(format!("SELECT '{}'", uuid.to_hyphenated().to_string()), sql); assert!(params.is_empty()); }
rust_cleaned_test_functions.jsonl/6463
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 25540, 368, 341, 286, 1077, 16040, 284, 16040, 486, 38431, 486, 931, 2273, 19, 543, 286, 1077, 320, 3544, 11, 3628, 8, 284, 3877, 17818, 486, 5834, 7, 3379, 486, 2258, 1005, 957, 41458, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_signer_n8_t2() { let data = "Hello world".as_bytes(); let signers = Signer::generate_signers(8, 2); let identifier = SignatureIdentifier { id: 0, index: 1 }; dbg!(signers.len()); let shares = signers .iter() .take(2) ....
rust_cleaned_test_functions.jsonl/104904
{ "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, 11172, 261, 1089, 23, 528, 17, 368, 341, 286, 1077, 821, 284, 330, 9707, 1879, 3263, 300, 12524, 543, 286, 1077, 1841, 388, 284, 7075, 261, 486, 19366, 11172, 388, 7, 23, 11, 220, 17, 317, 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_pop_avail_01() { let sys_space = address_space_init(); let mut queue_config = QueueConfig::new(QUEUE_SIZE); queue_config.desc_table = GuestAddress(0); queue_config.avail_ring = GuestAddress((QUEUE_SIZE as u64) * DESCRIPTOR_LEN); queue_config.used_ring = G...
rust_cleaned_test_functions.jsonl/15192
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1653 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17061, 76967, 62, 15, 16, 368, 341, 286, 1077, 5708, 14663, 284, 2621, 14663, 6137, 1428, 286, 1077, 5206, 7177, 5332, 284, 18745, 2648, 486, 931, 7, 28945, 4098, 317, 286, 7177, 5332, 30514, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vmlinux_boot() { let mut focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string()); let guest = Guest::new(&mut focal); let mut workload_path = dirs::home_dir().unwrap(); workload_path.push("workloads"); let kernel_path = direct_kern...
rust_cleaned_test_functions.jsonl/23963
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 951 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 1014, 19559, 52062, 368, 341, 310, 1077, 5206, 41099, 284, 34960, 47583, 2648, 486, 931, 7, 3788, 49533, 19121, 4708, 2389, 3904, 1423, 310, 1077, 8640, 284, 26215, 486, 931, 2099, 6984, 410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_peer() { let mut region = metapb::Region::default(); region.set_id(1); region.mut_peers().push(new_peer(1, 1)); region.mut_peers().push(new_learner_peer(2, 2)); assert!(!is_learner(find_peer(&region, 1).unwrap())); assert!(is_learner(find_peer(&re...
rust_cleaned_test_functions.jsonl/14629
{ "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, 45159, 368, 341, 286, 1077, 5206, 5537, 284, 2270, 391, 65, 486, 14091, 486, 2258, 543, 286, 5537, 980, 842, 7, 16, 317, 286, 5537, 744, 332, 36367, 388, 1005, 9077, 1755, 45159, 7, 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
#[test] fn test_decode_ready_for_query() -> Result<(), Error> { const DATA: &[u8] = b"E"; let m = ReadyForQuery::decode(Bytes::from_static(DATA))?; assert!(matches!(m.transaction_status, TransactionStatus::Error)); Ok(()) }
rust_cleaned_test_functions.jsonl/6640
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 103 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 35456, 5478, 5738, 368, 1464, 5714, 68843, 4600, 29, 341, 262, 733, 14112, 25, 44590, 84, 23, 60, 284, 293, 77199, 3302, 262, 1077, 296, 284, 30982, 2461, 2859, 486, 18196, 76423, 486, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parsing() { assert_eq!( parse( vec!["100", "50", "a", "z3950+N2L+N2C", "", "cidserver"].into_iter(), Some(&Name::from_str("example.com.").unwrap()) ) .expect("failed to parse NAPTR"), NAPTR::new( 100, ...
rust_cleaned_test_functions.jsonl/78998
{ "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, 620, 28598, 368, 341, 9401, 14808, 262, 2060, 10714, 33673, 286, 4715, 1006, 310, 7486, 0, 1183, 16, 15, 15, 497, 330, 20, 15, 497, 330, 64, 497, 330, 89, 18, 24, 20, 15, 71722, 17, 43, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_get_required_init_account_extensions() { // Some mint extensions with no required account extensions let mint_extensions = vec![ ExtensionType::MintCloseAuthority, ExtensionType::Uninitialized, ]; assert_eq!( ExtensionType::get_...
rust_cleaned_test_functions.jsonl/90549
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 760 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 18743, 6137, 13500, 60498, 368, 341, 286, 442, 4329, 28337, 19721, 448, 902, 2567, 2692, 19721, 198, 286, 1077, 28337, 60498, 284, 7486, 90515, 310, 26473, 929, 486, 44, 396, 7925, 45532, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_dirty_propagation() { let mut root = Node::new(); style!(root, AlignItems(Align::FlexStart), Width(100 pt), Height(100 pt) ); let mut root_child_0 = Node::new(); style!(root_child_0, Width(50 pt), Height(20 pt) ); let mut root_child_1 = Node::new(); style!(root_child_1, ...
rust_cleaned_test_functions.jsonl/134641
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 353 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 63642, 21663, 27137, 368, 341, 10217, 5206, 3704, 284, 6018, 486, 931, 1428, 42551, 10297, 2888, 345, 197, 197, 10069, 4353, 7, 10069, 486, 31671, 3479, 1326, 197, 197, 3327, 7, 16, 15, 15, 1081...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bounded_variance_hamming() { let arg = vec![1., 2., 3., 4., 5.]; let transformation_sample = make_bounded_variance(0., 10., 5, 1).unwrap_test(); let ret = transformation_sample.function.eval(&arg).unwrap_test(); let expected = 2.5; assert_eq!(ret, ex...
rust_cleaned_test_functions.jsonl/122718
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 319 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 880, 13082, 77450, 1523, 309, 5311, 368, 341, 286, 1077, 1392, 284, 7486, 20703, 16, 2572, 220, 17, 2572, 220, 18, 2572, 220, 19, 2572, 220, 20, 13, 4821, 286, 1077, 17991, 17491, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_char_column_builder_large_block() { let mut builder = CharColumnBuilder::new( false, Some(233), ColumnBuilderOptions::default_for_block_test(), ); for _ in 0..10 { builder.append(&Utf8Array::from_iter([Some("2333")]...
rust_cleaned_test_functions.jsonl/14128
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9232, 8744, 28532, 45228, 7113, 368, 341, 1789, 286, 1077, 5206, 7363, 284, 4864, 2933, 3297, 486, 931, 1006, 310, 895, 345, 310, 4329, 7, 17, 18, 18, 1326, 310, 9332, 3297, 3798, 486, 2258, 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...
2
#[test] fn test_start_access_point_no_iface() { let mut exec = fasync::TestExecutor::new().expect("failed to create an executor"); let test_values = test_setup(); // Set the IfaceManager to fail when asked to start an AP. { let iface_manager_fut = test_values.iface_m...
rust_cleaned_test_functions.jsonl/59827
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 826 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4906, 12759, 6085, 6536, 67666, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 2271, 25255, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 458, 31558, 797, 286, 1077, 1273, 9146, 284, 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_alternation_with_parity_filter() { let schema = prepopulated_schema(); let known = Known::for_schema(&schema); let query = r#" [:find [?x ?name] :where [?x :foo/name ?name] (or [?x :foo/knows "John"] [?x ...
rust_cleaned_test_functions.jsonl/44227
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1398 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79728, 367, 6615, 620, 10748, 8727, 368, 341, 286, 1077, 10802, 284, 855, 8374, 7757, 25371, 543, 286, 1077, 3881, 284, 48286, 486, 1958, 25371, 2099, 17349, 317, 286, 1077, 3239, 284, 435, 2, 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...
1
#[test] fn test_all_ops_basis() { let check_all_ops = |element| { let ops = produce_ops_from_element(&element).unwrap(); let check_basis = |op: DhtOp| match (op.get_type(), op.dht_basis()) { (DhtOpType::StoreElement, basis) => { assert_eq!(basis, AnyDhtHash::from(...
rust_cleaned_test_functions.jsonl/37457
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 21959, 62696, 368, 341, 262, 1077, 1779, 5705, 21959, 284, 760, 6101, 91, 341, 286, 1077, 27132, 284, 8193, 21959, 5673, 7894, 2099, 6101, 568, 15454, 543, 286, 1077, 1779, 62696, 284, 760, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_0623_example_1() { let root = tree![4, 2, 6, 3, 1, 5]; let val = 1; let depth = 2; let result = tree![4, 1, 1, 2, null, null, 6, 3, 1, 5]; assert_eq!(Solution::add_one_row(root, val, depth), result); }
rust_cleaned_test_functions.jsonl/109640
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 15, 21, 17, 18, 39304, 62, 16, 368, 341, 286, 1077, 3704, 284, 4916, 20703, 19, 11, 220, 17, 11, 220, 21, 11, 220, 18, 11, 220, 16, 11, 220, 20, 935, 286, 1077, 1044, 284, 220, 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_rol_acc() { let mut r = Register::new(); r.set_A(0x01); rol_acc(&mut r); assert_eq!(r.get_A(), 0x02); r.set_A(0x01); r.set_status_carry(true); rol_acc(&mut r); assert_eq!(r.get_A(), 0x03); }
rust_cleaned_test_functions.jsonl/14219
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 1080, 17737, 368, 341, 262, 1077, 5206, 435, 284, 8451, 486, 931, 543, 262, 435, 980, 1566, 7, 15, 87, 15, 16, 317, 262, 17679, 17737, 2099, 6984, 435, 317, 262, 2060, 10714, 10297, 81, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sparse_commit() { let settings = testutils::user_settings(); let mut test_workspace = testutils::init_workspace(&settings, false); let repo = &test_workspace.repo; let working_copy_path = test_workspace.workspace.workspace_root().clone(); let root_file1_path = RepoPath::from...
rust_cleaned_test_functions.jsonl/16325
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1333 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71123, 36346, 368, 341, 262, 1077, 5003, 284, 1273, 6031, 486, 872, 10853, 543, 262, 1077, 5206, 1273, 75560, 284, 1273, 6031, 486, 2327, 75560, 2099, 6511, 11, 895, 317, 262, 1077, 15867, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pattern() { let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES); let expected = "a.foo e1 e2 one one/b.foo one/two one/two/c.foo one/two/C.Foo2 one/two/three one/two/three/d.foo one/two/three/directory_foo symlink"; te.assert_output(&["--...
rust_cleaned_test_functions.jsonl/10847
{ "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, 15124, 21260, 368, 341, 262, 1077, 1013, 284, 3393, 14359, 486, 931, 43175, 90560, 11, 11955, 48010, 317, 262, 1077, 3601, 284, 330, 64, 58432, 198, 262, 384, 16, 384, 17, 198, 262, 825, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_protocol_tags_unchanged() { macro_rules! assert_tag { ($variant:expr, $tag:expr, $version:expr) => {{ let mut data = Vec::new(); let mut value = ErrorCode::default(); fluvio_protocol::Encoder::encode(&$variant, &mut data, $vers...
rust_cleaned_test_functions.jsonl/49512
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34880, 16333, 62, 3185, 3726, 368, 341, 286, 18072, 21407, 0, 2060, 9372, 341, 310, 1711, 15969, 96011, 11, 400, 4578, 96011, 11, 400, 4366, 96011, 8, 589, 80505, 394, 1077, 5206, 821, 284, 1131...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_default_deserialize_from_seed() { let config = config(); let data: Vec<_> = (10..100).collect(); let bytes = config.serialize(&data).expect("Config::serialize failed"); let mut seed_data: Vec<_> = (0..10).collect(); { let seed = ExtendVec(&mut seed_data); co...
rust_cleaned_test_functions.jsonl/23835
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 220 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 15768, 9050, 5673, 33809, 368, 341, 262, 1077, 2193, 284, 2193, 1428, 262, 1077, 821, 25, 11312, 32399, 29, 284, 320, 16, 15, 496, 16, 15, 15, 568, 17384, 543, 262, 1077, 5820, 284, 2193...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_compare_digits() { use crate::compare_digits; use std::cmp::Ordering::*; assert_eq!(Equal, compare_digits("1", "1")); assert_eq!(Equal, compare_digits("1", "01")); assert_eq!(Equal, compare_digits("100", "0100")); assert_eq!(Equal, compare_digits(...
rust_cleaned_test_functions.jsonl/41473
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 569 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32235, 41432, 368, 341, 286, 990, 17717, 486, 18948, 41432, 280, 286, 990, 1460, 486, 7293, 486, 4431, 287, 79304, 286, 2060, 10714, 10297, 2993, 11, 9429, 41432, 445, 16, 497, 330, 16, 4010, 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_create_tx_policy_path_no_csv() { let (wallet, _, _) = get_funded_wallet(get_test_a_or_b_plus_csv()); let external_policy = wallet.policies(ScriptType::External).unwrap().unwrap(); let root_id = external_policy.id; // child #0 is just the key "A" let path ...
rust_cleaned_test_functions.jsonl/11348
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 383 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 17805, 22773, 2638, 6536, 14020, 368, 341, 286, 1077, 320, 35735, 11, 8358, 27439, 284, 633, 761, 36053, 62308, 5433, 4452, 4306, 8734, 880, 28043, 14020, 5231, 286, 1077, 9250, 22773, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_map_array() { let array_size: u64 = 100; let map: ArrayMap = unsafe { ArrayMap::new( "mymap", std::mem::size_of::<u64>() as u32, array_size as u32, ) .expect("Failed to create new map") };...
rust_cleaned_test_functions.jsonl/40484
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 709 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5376, 3858, 368, 341, 286, 1077, 1334, 2368, 25, 575, 21, 19, 284, 220, 16, 15, 15, 280, 286, 1077, 2415, 25, 2910, 2227, 284, 19860, 341, 310, 2910, 2227, 486, 931, 1006, 394, 330, 76, 1600...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cycle_string_by_mut_ref() { let cxx = indoc! {" std::unique_ptr<std::string> give_str() { return std::make_unique<std::string>(\"Bob\"); } uint32_t take_str(std::string& a) { return a.length(); } "}; let hdr = indoc! {" ...
rust_cleaned_test_functions.jsonl/9727
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 362 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39079, 3904, 3710, 29523, 7793, 368, 341, 262, 1077, 272, 4146, 284, 1257, 509, 0, 314, 698, 286, 1460, 486, 9587, 4348, 8050, 486, 917, 29, 2968, 2895, 368, 341, 310, 470, 1460, 486, 6927, 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_order() { let mut host = CoprocessorHost::<PanicEngine>::default(); let ob1 = TestCoprocessor::default(); host.registry .register_admin_observer(3, BoxAdminObserver::new(ob1.clone())); host.registry .register_query_observer(3, BoxQueryObse...
rust_cleaned_test_functions.jsonl/17207
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7869, 368, 341, 286, 1077, 5206, 3468, 284, 24946, 40848, 269, 9296, 27638, 47, 31270, 4571, 6831, 2258, 1428, 286, 1077, 1508, 16, 284, 3393, 56277, 40848, 269, 486, 2258, 543, 286, 3468, 55568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Npsk0_expected_value() { let params: NoiseParams = "Noise_Npsk0_25519_AESGCM_SHA256".parse().unwrap(); let mut h_i = Builder::new(params) .remote_public_key(&x25519::x25519(get_inc_key(0), x25519::X25519_BASEPOINT_BYTES)) .psk(0, &get_inc_key(1)) .fixed_ephemeral_...
rust_cleaned_test_functions.jsonl/27102
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1604, 1690, 74, 15, 32190, 3142, 368, 341, 262, 1077, 3628, 25, 50523, 4870, 284, 330, 61819, 1604, 1690, 74, 15, 62, 17, 20, 20, 16, 24, 69381, 38, 9985, 38096, 17, 20, 21, 3263, 6400, 1005...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rpc_request_processor_allow_fullnode_exit_config() { let exit = Arc::new(AtomicBool::new(false)); let mut config = JsonRpcConfig::default(); config.enable_fullnode_exit = true; let request_processor = JsonRpcRequestProcessor::new( StorageState::default...
rust_cleaned_test_functions.jsonl/20312
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60799, 7893, 50127, 55731, 16372, 3509, 16880, 5332, 368, 341, 286, 1077, 4869, 284, 19689, 486, 931, 7, 65857, 11233, 486, 931, 3576, 1106, 286, 1077, 5206, 2193, 284, 8308, 60248, 2648, 486, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_create_viewing_key() { let (init_result, mut deps) = init_helper(vec![InitialBalance { address: HumanAddr("bob".to_string()), amount: Uint128(5000), }]); assert!( init_result.is_ok(), "Init failed: {}", in...
rust_cleaned_test_functions.jsonl/69605
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 618 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 8657, 7122, 287, 3097, 368, 341, 286, 1077, 320, 2327, 5287, 11, 5206, 48178, 8, 284, 2930, 10418, 25592, 20703, 6341, 21190, 341, 310, 2621, 25, 11097, 13986, 445, 47086, 3263, 983, 3904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_connect() { let v: [Vec<i32>; 0] = []; assert_eq!(v.connect(&0), []); assert_eq!([vec![1], vec![2, 3]].connect(&0), [1, 0, 2, 3]); assert_eq!([vec![1], vec![2], vec![3]].connect(&0), [1, 0, 2, 0, 3]); let v: [&[_]; 2] = [&[1], &[2, 3]]; assert_eq!...
rust_cleaned_test_functions.jsonl/111407
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 265 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15720, 368, 341, 286, 1077, 348, 25, 508, 10050, 21897, 18, 17, 65795, 220, 15, 60, 284, 5907, 286, 2060, 10714, 10297, 85, 10800, 2099, 15, 701, 42197, 286, 2060, 10714, 0, 2561, 4083, 20703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_join_lines_option() { let test_file_1 = "hosts.log"; let test_file_2 = "test.log"; let expected_file_path = "joined.log.expected"; let mut scenario = new_ucmd!(); let start = Local::now(); scenario .args(&["+1:2", "-J", "-m", test_file_1, test_file_2]) ...
rust_cleaned_test_functions.jsonl/103061
{ "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, 6615, 31017, 18323, 9672, 368, 341, 262, 1077, 1273, 2458, 62, 16, 284, 330, 44692, 1665, 876, 262, 1077, 1273, 2458, 62, 17, 284, 330, 1944, 1665, 876, 262, 1077, 3601, 2458, 2638, 284, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_stake_create_account_checked_ix() { let from_pubkey = Pubkey::new_unique(); let stake_pubkey = Pubkey::new_unique(); let authorized = Authorized { staker: Pubkey::new_unique(), withdrawer: Pubkey::new_unique(), }; let lamport...
rust_cleaned_test_functions.jsonl/117974
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 677 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 1261, 726, 8657, 13500, 56456, 62686, 368, 341, 286, 1077, 504, 34014, 792, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 18279, 34014, 792, 284, 22611, 792, 486, 931, 21218, 1428, 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_deterministic() { // Check that the result is always deterministic. let gen = DistortedVoronoiBiomeGenerator::default(); let chunk = ChunkPosition::new(0, 0); let seed = 52; let first = gen.generate_for_chunk(chunk, seed); for _ in 0..5 { ...
rust_cleaned_test_functions.jsonl/43348
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 299 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 16483, 4532, 368, 341, 286, 442, 4248, 429, 279, 1102, 374, 2677, 72349, 624, 286, 1077, 4081, 284, 27604, 13595, 53, 84850, 6728, 36096, 635, 12561, 486, 2258, 1428, 286, 1077, 11879, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_rwlock_secondary_index() { let (key_start, key_end, secondary_indexes) = create_rwlock_secondary_index_state(); let index = AccountsIndex::<bool>::default_for_tests(); for token_id in [inline_spl_token::id(), inline_spl_token_2022::id()] { run_test_spl_token_s...
rust_cleaned_test_functions.jsonl/71350
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 98850, 77759, 3560, 368, 341, 286, 1077, 320, 792, 4906, 11, 1376, 6213, 11, 14246, 50161, 8, 284, 1855, 98850, 77759, 3560, 4387, 543, 286, 1077, 1922, 284, 40655, 1552, 27638, 2641, 6831, 2258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_generate_multi_signature() { let cycles_limit = 1024 * 1024 * 1024; let caller = Address::from_hex("0x755cdba6ae4f479f7164792b318b2a06c759833b").unwrap(); let context = mock_context(cycles_limit, caller); let mut service = new_multi_signature_service(); let owner = Address:...
rust_cleaned_test_functions.jsonl/130832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1105 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 25133, 39859, 368, 341, 262, 1077, 24484, 14763, 284, 220, 16, 15, 17, 19, 353, 220, 16, 15, 17, 19, 353, 220, 16, 15, 17, 19, 26, 715, 262, 1077, 19865, 284, 9177, 486, 1499, 32655, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_blob_container_url() { for url in invalid_container_urls() { assert!(BlobContainerUrl::new(url).is_err()); } for url in valid_container_urls() { let url = BlobContainerUrl::new(url).expect("invalid blob container URL"); assert_eq!(url....
rust_cleaned_test_functions.jsonl/81896
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 202 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45908, 15847, 2903, 368, 341, 286, 369, 2515, 304, 8318, 15847, 32822, 368, 341, 310, 2060, 10297, 37985, 4502, 2864, 486, 931, 6522, 568, 285, 9266, 1423, 286, 555, 286, 369, 2515, 304, 2697, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_logging_temperature() { let mut runner = Runner::new(); // will be waiting on its timer. let _query = runner.proxy.start_logging( "test", &mut vec![&mut Metric::Temperature(Temperature { sampling_interval_ms: 100, ...
rust_cleaned_test_functions.jsonl/66708
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1431 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59982, 53525, 368, 341, 286, 1077, 5206, 22259, 284, 44946, 486, 931, 1428, 1789, 286, 442, 686, 387, 8580, 389, 1181, 9021, 624, 286, 1077, 716, 1631, 284, 22259, 41103, 4962, 59982, 1006, 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_verify_coinbase_tran() { let key = key_pair::random(); // right coinbase tran let h160: H160 = digest::digest(&digest::SHA256, key.public_key().as_ref()).into(); let txoutput = TxOutput {rec_address: h160.clone(), val: COINBASE_REWARD}; let coinbase_tran ...
rust_cleaned_test_functions.jsonl/44588
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1063 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 75718, 3152, 98941, 368, 341, 286, 1077, 1376, 284, 1376, 14445, 486, 11463, 1428, 286, 442, 1290, 16254, 3152, 23686, 198, 286, 1077, 305, 16, 21, 15, 25, 472, 16, 21, 15, 284, 20882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_txn_store_scan() { let store = AssertionStorage::default(); store.put_ok(b"A", b"A10", 5, 10); store.put_ok(b"C", b"C10", 5, 10); store.put_ok(b"E", b"E10", 5, 10); let check_v10 = || { store.scan_ok(b"", 0, 10, vec![]); store.scan_ok(b"", 1, 10, vec![S...
rust_cleaned_test_functions.jsonl/63393
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2380 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 92299, 14809, 28857, 368, 341, 262, 1077, 3553, 284, 46730, 5793, 486, 2258, 1428, 1066, 262, 3553, 3597, 19817, 1883, 29133, 497, 293, 29133, 16, 15, 497, 220, 20, 11, 220, 16, 15, 317, 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...
5
#[test] fn test_node_value() { let node = text("x"); assert_eq!(node.node_value().unwrap(), "x"); node.set_node_value(Some("y")); assert_eq!(node.node_value().unwrap(), "y"); assert_eq!(processing_instruction("foo", "bar").node_value().unwrap(), "bar"); assert_eq...
rust_cleaned_test_functions.jsonl/33761
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 317 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 3142, 368, 341, 286, 1077, 2436, 284, 1467, 445, 87, 797, 286, 2060, 10714, 10297, 3509, 12097, 3142, 1005, 15454, 1507, 330, 87, 797, 286, 2436, 980, 5084, 3142, 65405, 445, 88, 4010, 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_body_is_streaming() { assert_eq!(Body::Empty.is_streaming(), false); assert_eq!(Body::Binary(Binary::from("")).is_streaming(), false); }
rust_cleaned_test_functions.jsonl/88994
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14114, 6892, 12673, 287, 368, 341, 286, 2060, 10714, 10297, 5444, 486, 3522, 2079, 12673, 287, 1507, 895, 317, 286, 2060, 10714, 10297, 5444, 486, 21338, 77833, 486, 1499, 445, 15197, 285, 12673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_traditional_chinese() { let stop_words = Set::default(); let analyzer = Analyzer::new(AnalyzerConfig::default_with_stopwords(&stop_words)); let traditional = "人人生而自由﹐在尊嚴和權利上一律平等。他們賦有理性和良心﹐並應以兄弟關係的精神互相對待。"; let _simplified = "人人生而自由﹐在尊严和权利上一律平等。他们赋有理性和良心﹐并应以兄弟关系的精...
rust_cleaned_test_functions.jsonl/98415
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 515 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 329, 3005, 4138, 7346, 368, 341, 286, 1077, 2936, 18981, 284, 2573, 486, 2258, 543, 286, 1077, 54660, 284, 78705, 486, 931, 7, 54911, 2648, 486, 2258, 6615, 19039, 5761, 2099, 9495, 18981, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_query_matches_with_alternatives_and_too_many_permutations_to_track() { allocations::record(|| { let language = get_language("javascript"); let query = Query::new( language, " ( (comment) @doc ; not immediate ...
rust_cleaned_test_functions.jsonl/77444
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 608 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 38344, 6615, 79728, 5859, 8378, 2346, 78, 22101, 31961, 82141, 2346, 28545, 368, 341, 262, 69642, 486, 8548, 79453, 341, 286, 1077, 4128, 284, 633, 29021, 445, 14073, 797, 286, 1077, 3239, 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...
2
#[test] fn test_expr_to_sql_string() { let pred = DeletePredicate { range: TimestampRange::new(1, 2), exprs: vec![ DeleteExpr { column: String::from("col1"), op: Op::Eq, scalar: Scalar::String(String::fro...
rust_cleaned_test_functions.jsonl/49508
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 722 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21915, 2346, 18063, 3904, 368, 341, 286, 1077, 4162, 284, 10428, 36329, 341, 310, 2088, 25, 32758, 6046, 486, 931, 7, 16, 11, 220, 17, 1326, 310, 15169, 82, 25, 7486, 90515, 394, 10428, 16041, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_str_ipv4_in_ipv6() { assert_eq!(Ok(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 49152, 545)), "::192.0.2.33".parse()); assert_eq!(Ok(Ipv6Addr::new(0, 0, 0, 0, 0, 0xFFFF, 49152, 545)), "::FFFF:192.0.2.33".parse()); assert_eq!( Ok(Ipv6Addr::new(0x64, 0xff9b, 0, 0, 0, 0, 49152, 545)), ...
rust_cleaned_test_functions.jsonl/8033
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 495 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2895, 49378, 19, 1243, 49378, 21, 368, 341, 262, 2060, 10714, 10297, 11578, 8972, 30168, 21, 13986, 486, 931, 7, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 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_adding_ok_results() { let r1: Result<String, String> = Result::Ok(String::from("hello")); let r2: Result<i32, String> = Result::Ok(1); let v = r1.into_validated() + r2; assert_eq!(v, Validated::Ok(hlist!(String::from("hello"), 1))) }
rust_cleaned_test_functions.jsonl/41654
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 287, 19817, 13576, 368, 341, 286, 1077, 435, 16, 25, 5714, 3464, 11, 923, 29, 284, 5714, 486, 11578, 2242, 486, 1499, 445, 14990, 4010, 286, 1077, 435, 17, 25, 5714, 21897, 18, 17, 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
#[test] fn test_non_existent_tag() { let template = DocumentTemplate::with_partials(&[Partial::Tag( "name".to_string(), )]); template .saturate(&[TagPair { key: "Hello".to_string(), value: "___".to_string(), }]) ...
rust_cleaned_test_functions.jsonl/48654
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 191 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21637, 2702, 18128, 9372, 368, 341, 286, 1077, 3811, 284, 11789, 7275, 486, 4197, 10495, 10309, 2099, 58, 37314, 486, 5668, 1006, 310, 330, 606, 3263, 983, 3904, 3148, 286, 873, 10149, 286, 3811, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_equal_sneaky_small() { let mut a = BitVec::from_elem(1, false); a.set(0, true); let mut b = BitVec::from_elem(1, true); b.set(0, true); assert_eq!(a, b); }
rust_cleaned_test_functions.jsonl/62084
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11478, 643, 811, 28100, 31966, 368, 341, 286, 1077, 5206, 264, 284, 6495, 10050, 486, 1499, 28179, 7, 16, 11, 895, 317, 286, 264, 980, 7, 15, 11, 830, 626, 286, 1077, 5206, 293, 284, 6495, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_merge_with_vector() { let mut context1 = ExecuteContext { actor_ids: vec![Id(0), Id(1)], ..Default::default() }; let context2 = ExecuteContext { actor_ids: vec![Id(2), Id(3)], ..Default::default() }; let cont...
rust_cleaned_test_functions.jsonl/8684
{ "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, 20888, 6615, 12247, 368, 341, 286, 1077, 5206, 2266, 16, 284, 20848, 1972, 341, 310, 12089, 8077, 25, 7486, 20703, 764, 7, 15, 701, 5223, 7, 16, 30749, 310, 5241, 3675, 486, 2258, 741, 286, 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...
1
#[test] fn test_fq_from_to_repr() { // q + 1 should not be in the field assert!(Fq::from_repr(FqRepr([ 0x1a, 0x01, 0x11, 0xea, 0x39, 0x7f, 0xe6, 0x9a, 0x4b, 0x1b, 0xa7, 0xb6, 0x43, 0x4b, 0xac, 0xd7, 0x64, 0x77, 0x4b, 0x84, 0xf3, 0x85, 0x12, 0xbf, 0x67, 0x30, 0xd2, 0xa0, 0xf6, 0xb0, ...
rust_cleaned_test_functions.jsonl/79195
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1517 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 5673, 2346, 68535, 368, 341, 262, 442, 2804, 488, 220, 16, 1265, 537, 387, 304, 279, 2070, 198, 262, 2060, 10297, 37, 80, 486, 1499, 68535, 7832, 80, 693, 649, 8956, 286, 220, 15, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_read_allocations_transfer_amount() { let pubkey0 = solana_sdk::pubkey::new_rand(); let pubkey1 = solana_sdk::pubkey::new_rand(); let pubkey2 = solana_sdk::pubkey::new_rand(); let file = NamedTempFile::new().unwrap(); let input_csv = file.path().to_str().un...
rust_cleaned_test_functions.jsonl/18257
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 716 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 14802, 804, 35403, 13471, 368, 341, 286, 1077, 95116, 15, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 95116, 16, 284, 2048, 3362, 61783, 486, 9585, 792, 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_time() -> Result<(), Box<dyn Error>> { mz_ore::test::init_logging(); let server = util::start_server(util::Config::default())?; let mut client = server.connect(postgres::NoTls)?; let row = client.query_one("SELECT now(), current_timestamp()", &[])?; let _ = row.ge...
rust_cleaned_test_functions.jsonl/8386
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 468 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3009, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 262, 95392, 62, 460, 486, 1944, 486, 2327, 59982, 1428, 262, 1077, 3538, 284, 4094, 486, 2468, 12015, 67811, 486, 2648, 486, 2258, 2140,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
#[test] fn test_stdin_5_chars() { new_ucmd!() .args(&["-c", "5"]) .pipe_in_fixture(INPUT) .run() .stdout_is_fixture("lorem_ipsum_5_chars.expected"); }
rust_cleaned_test_functions.jsonl/32757
{ "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, 15656, 258, 62, 20, 37418, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 66, 497, 330, 20, 14108, 286, 659, 13768, 1243, 74409, 57911, 340, 286, 659, 6108, 741, 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
#[test] fn test_advance_slices() { let buf1 = [1; 8]; let buf2 = [2; 16]; let buf3 = [3; 8]; let mut bufs = &mut [&buf1[..], &buf2[..], &buf3[..]][..]; advance_slices(&mut bufs, 10); assert_eq!(bufs[0], [2; 14].as_ref()); assert_eq!(bufs[1], [3; 8...
rust_cleaned_test_functions.jsonl/70438
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 197 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 98093, 87288, 368, 341, 1789, 286, 1077, 6607, 16, 284, 508, 16, 26, 220, 23, 935, 286, 1077, 6607, 17, 284, 508, 17, 26, 220, 16, 21, 935, 286, 1077, 6607, 18, 284, 508, 18, 26, 220, 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
#[test] fn test_flags_from_vec_26() { let (flags, subcommand, argv) = flags_from_vec(svec!["deno", "bundle", "source.ts", "bundle.js"]); assert_eq!( flags, DenoFlags { allow_write: true, ..DenoFlags::default() } ); assert_eq!(subcommand, DenoSubcommand::Bu...
rust_cleaned_test_functions.jsonl/112855
{ "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, 14130, 5673, 13251, 62, 17, 21, 368, 341, 262, 1077, 320, 11161, 11, 1186, 5631, 11, 10213, 8, 4035, 414, 8042, 5673, 13251, 1141, 4083, 0, 1183, 5183, 78, 497, 330, 34518, 497, 330, 2427, 212...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_special_tokens() { let mut lexer = Cursor::new("()#('`,,@."); assert_eq!(lexer.get_token(), Some(Token::new(OpenParen, 1))); assert_eq!(lexer.get_token(), Some(Token::new(CloseParen, 1))); assert_eq!(lexer.get_token(), Some(Token::new(SharpParen, 2))); ass...
rust_cleaned_test_functions.jsonl/25323
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 333 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41629, 28838, 368, 341, 286, 1077, 5206, 53259, 284, 28067, 486, 931, 445, 368, 2, 492, 7808, 31113, 7320, 286, 2060, 10714, 10297, 38815, 670, 6458, 1507, 4329, 38584, 486, 931, 7, 5002, 83997, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_stakes_highest() { let mut stakes = Stakes::default(); assert_eq!(stakes.highest_staked_node(), None); let ((vote_pubkey, vote_account), (stake_pubkey, stake_account)) = create_staked_node_accounts(10); stakes.store(&vote_pubkey, &vote_account); ...
rust_cleaned_test_functions.jsonl/4474
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 342 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 2050, 1523, 7504, 368, 341, 286, 1077, 5206, 44425, 284, 794, 2050, 486, 2258, 1428, 286, 2060, 10714, 10297, 95060, 860, 7504, 1261, 7741, 5084, 1507, 2240, 626, 286, 1077, 1781, 29358, 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...
1
#[test] fn test_query_conversion_no_key() { let sr = meta_search::SearchRequest { key: None, resource_type: Some(meta_search::ResourceType::Dataset as i32), conditions: vec![meta_search::FieldQuery { key: "fancy_key".to_owned(), query: ...
rust_cleaned_test_functions.jsonl/113860
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 416 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 64132, 6536, 3097, 368, 341, 286, 1077, 18962, 284, 8823, 10716, 486, 5890, 1900, 341, 310, 1376, 25, 2240, 345, 310, 5101, 1819, 25, 4329, 45119, 10716, 486, 4783, 929, 486, 33363, 438, 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...
1
#[test] fn test_factor1() { let mut l_colptr = [0; 11]; let mut parents = linalg::etree::ParentsOwned::new(10); let mut l_nz = [0; 10]; let mut flag_workspace = [0; 10]; let perm: Permutation<usize, &[usize]> = Permutation::identity(10); let mat = test_mat1(); ...
rust_cleaned_test_functions.jsonl/34740
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 809 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18588, 16, 368, 341, 286, 1077, 5206, 326, 10211, 3505, 284, 508, 15, 26, 220, 16, 16, 935, 286, 1077, 5206, 6562, 284, 326, 33231, 486, 295, 765, 486, 61769, 57641, 486, 931, 7, 16, 15, 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_bool_array_not() { let a = BooleanArray::from(vec![false, false, true, true]); let c = not(&a).unwrap(); assert_eq!(true, c.value(0)); assert_eq!(true, c.value(1)); assert_eq!(false, c.value(2)); assert_eq!(false, c.value(3)); }
rust_cleaned_test_functions.jsonl/118978
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22159, 3858, 7913, 368, 341, 286, 1077, 264, 284, 6992, 1857, 486, 1499, 25592, 20703, 3849, 11, 895, 11, 830, 11, 830, 2558, 286, 1077, 272, 284, 537, 2099, 64, 568, 15454, 543, 286, 2060, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_avoid_consecutive_leaders() { // Test when there is both a leader + validator in the active set run_consecutive_leader_test(1, true); run_consecutive_leader_test(2, true); run_consecutive_leader_test(10, true); // Test when there is only one node in the a...
rust_cleaned_test_functions.jsonl/18357
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26173, 588, 3382, 85780, 11751, 6393, 368, 341, 286, 442, 3393, 979, 1052, 374, 2176, 264, 7653, 488, 22935, 304, 279, 4541, 738, 198, 286, 1598, 3382, 85780, 79991, 4452, 7, 16, 11, 830, 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_storage_apply_snapshot() { let ents = vec![ new_entry(3, 3), new_entry(4, 4), new_entry(5, 5), new_entry(6, 6), ]; let mut cs = ConfState::new(); cs.set_nodes(vec![1, 2, 3]); let td1 = TempDir::new("tikv-sto...
rust_cleaned_test_functions.jsonl/121491
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1495 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23310, 36551, 53265, 368, 341, 286, 1077, 36852, 284, 7486, 90515, 310, 501, 9078, 7, 18, 11, 220, 18, 1326, 310, 501, 9078, 7, 19, 11, 220, 19, 1326, 310, 501, 9078, 7, 20, 11, 220, 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...
2
#[test] fn test_updates_a_league_successfully() { run_test!(|client, conn, jwt| { let league = gen_league(&conn); let new_name = fake!(Name.name); let body = json!({ "id": league.id, "name": new_name.clone(), "country": league.country, ...
rust_cleaned_test_functions.jsonl/94935
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 386 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57829, 4306, 11751, 4663, 18632, 3641, 368, 341, 262, 1598, 4452, 10297, 91, 2972, 11, 4534, 11, 24589, 91, 341, 286, 1077, 10734, 284, 4081, 11751, 4663, 2099, 5148, 317, 286, 1077, 501, 1269, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_code_values() { let mut iter = Code::values(); assert_eq!(iter.size_hint(), (IcedConstants::CODE_ENUM_COUNT, Some(IcedConstants::CODE_ENUM_COUNT))); assert_eq!(iter.len(), IcedConstants::CODE_ENUM_COUNT); assert!(iter.next().is_some()); assert_eq!(iter.size_hint(), (IcedConstants::CODE_ENUM...
rust_cleaned_test_functions.jsonl/133952
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 328 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4136, 9146, 368, 341, 10217, 5206, 5367, 284, 6119, 486, 3661, 543, 6948, 10714, 10297, 2015, 2486, 45825, 1507, 320, 40, 1998, 9386, 486, 14866, 31894, 14672, 11, 4329, 8972, 1998, 9386, 486, 148...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_broadcast_self_transactions() { let (mut smp, peers) = SharedMempoolNetwork::bootstrap_validator_network(2, 1); let (peer_a, peer_b) = (peers.get(0).unwrap(), peers.get(1).unwrap()); smp.add_txns(&peer_a, vec![TestTransaction::new(0, 0, 1)]); // A and B discover each other s...
rust_cleaned_test_functions.jsonl/31472
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 408 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74923, 25637, 68182, 368, 341, 262, 1077, 320, 6984, 274, 1307, 11, 25029, 8, 284, 16990, 44, 3262, 1749, 12320, 486, 6281, 64959, 20966, 7, 17, 11, 220, 16, 317, 262, 1077, 320, 16537, 4306, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sponge_gadget_rescue() { const STATE_WIDTH: usize = 3; const RATE: usize = 2; let rng = &mut init_rng(); let cs = &mut init_cs::<Bn256>(); let params = RescueParams::default(); test_sponge_gadget::<_, _, _, _, STATE_WIDTH, RATE>(cs, rng, &params); }
rust_cleaned_test_functions.jsonl/47364
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 36254, 1889, 50931, 4918, 31724, 368, 341, 262, 733, 22425, 13947, 25, 22301, 284, 220, 18, 280, 262, 733, 92470, 25, 22301, 284, 220, 17, 280, 262, 1077, 28422, 284, 609, 6984, 2930, 66849...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_buffer_dequeue_slice() { let mut ring = RingBuffer::new(vec![b'.'; 12]); assert_eq!(ring.enqueue_slice(b"abcdefghijkl"), 12); { let mut buf = [0; 8]; assert_eq!(ring.dequeue_slice(&mut buf[..]), 8); assert_eq!(&buf[..], b"abcdefgh"); ...
rust_cleaned_test_functions.jsonl/37268
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 350 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7776, 2259, 4584, 26488, 368, 341, 286, 1077, 5206, 10058, 284, 21525, 4095, 486, 931, 25592, 20703, 65, 6, 3159, 26, 220, 16, 17, 10149, 286, 2060, 10714, 10297, 12640, 47468, 26488, 1883, 1, 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...
1
#[test] fn test_solve() { let trimmer = Trimmer::build(None, None, 29).expect("can't build trimmer"); let k = [ 0x27580576fe290177, 0xf9ea9b2031f4e76e, 0x1663308c8607868f, 0xb88839b0fa180d0e, ]; let res = trimmer.run(&k).unwrap(); println!("Trimmed to {}", res.len()); let sols = Graph:...
rust_cleaned_test_functions.jsonl/100066
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 217 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86246, 368, 341, 197, 10217, 11013, 1174, 284, 1163, 18982, 486, 5834, 26717, 11, 2240, 11, 220, 17, 24, 568, 17119, 445, 4814, 944, 1936, 11013, 1174, 797, 197, 10217, 595, 284, 2278, 298, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_no_safe_json() { let valid_json = json!({"this":["is", "valid", "json"]}); let valid_json_bytes = serde_json::to_vec_pretty(&valid_json).expect("Unable to serialize JSON to string"); let parse_result: serde_json::Result<serde_json::Value> = parse_safe_json(&valid_json_bytes)...
rust_cleaned_test_functions.jsonl/14141
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 171 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 34067, 9455, 368, 341, 262, 1077, 2697, 9455, 284, 2951, 0, 16864, 574, 36799, 285, 497, 330, 1891, 497, 330, 2236, 1341, 2960, 262, 1077, 2697, 9455, 12524, 4035, 286, 61570, 9455, 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_input_handler_delete() { let mut app = App::default(); app.input = str_to_vec_char("My text"); app.input_idx = 3; app.input_cursor_position = 3; handler(Key::Delete, &mut app); assert_eq!(app.input, str_to_vec_char("My ext")); app.input = str_to_vec_char("ラスト"); ...
rust_cleaned_test_functions.jsonl/5101
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 295 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5898, 10183, 11353, 368, 341, 262, 1077, 5206, 906, 284, 1845, 486, 2258, 1428, 262, 906, 10046, 284, 607, 2346, 13251, 9232, 445, 5050, 1467, 797, 262, 906, 10046, 7258, 284, 220, 18, 280, 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_bloom_indexer_logical_and_prune() -> Result<()> { struct Test { name: &'static str, expr: Expression, expected_eval_result: BloomFilterExprEvalResult, } let tests: Vec<Test> = vec![ Test { // Both values exists in the data block ...
rust_cleaned_test_functions.jsonl/101377
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 779 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 18474, 3560, 261, 86484, 8378, 5294, 2886, 368, 1464, 5714, 71698, 341, 262, 2036, 3393, 341, 286, 829, 25, 30136, 1978, 607, 345, 286, 15169, 25, 16378, 345, 286, 3601, 21296, 5287, 25, 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_duration_add() { let mut ts = Timestamp::new(333, TimeBase::new(1, 90_000)); ts += Duration::from_millis(100); assert_eq!(ts.timestamp, 9333); }
rust_cleaned_test_functions.jsonl/119671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25454, 2891, 368, 341, 286, 1077, 5206, 10591, 284, 32758, 486, 931, 7, 18, 18, 18, 11, 4120, 3978, 486, 931, 7, 16, 11, 220, 24, 15, 62, 15, 15, 15, 3237, 286, 10591, 1421, 21045, 486, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_get_source_code_6() { let http_server_guard = crate::test_util::http_server(); let (_temp_dir, fetcher) = test_setup(); let double_redirect_url = Url::parse("http://localhost:4548/tests/subdir/redirects/redirect1.js") .unwrap(); // Test that redirections can be lim...
rust_cleaned_test_functions.jsonl/16757
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 354 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 10347, 4136, 62, 21, 368, 341, 262, 1077, 1758, 12015, 36796, 284, 17717, 486, 1944, 18974, 486, 1254, 12015, 543, 262, 1077, 5453, 3888, 4334, 11, 7807, 261, 8, 284, 1273, 21363, 543, 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_get_tips_multi_row_per_add_success() { let (mut db, _dir) = create_test_db(); let contract_address: ContractAddress = [7u8; 32].into(); let key_type_a = Stype::Delta(1); let dk_a = DeltaKey { contract_address, key_type: key_type_a }; let v_a = b"Enigma_a...
rust_cleaned_test_functions.jsonl/48695
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 373 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 528, 3077, 25133, 8530, 5678, 2891, 18632, 368, 341, 286, 1077, 320, 6984, 2927, 11, 716, 3741, 8, 284, 1855, 4452, 8685, 1428, 286, 1077, 5116, 6744, 25, 19185, 4286, 284, 508, 22, 84, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1