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_pack() { let v: Vec<u64> = vec![1, 2, 3]; let component_bitsize = 64; let packed = pack(&*v, component_bitsize); assert_eq!( packed, BigInt::from(1) * (BigInt::from(1) << (2 * component_bitsize)) + BigInt::from(2) * (BigInt::from(1) << component_bits...
rust_cleaned_test_functions.jsonl/41590
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 231 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32995, 368, 341, 262, 1077, 348, 25, 11312, 34837, 21, 19, 29, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 4821, 262, 1077, 3692, 20034, 551, 284, 220, 21, 19, 401, 262, 1077, 19375, 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_pci_iommu_group() { let testdir = tempdir().expect("failed to create tmpdir"); // mock /sys let syspci = testdir.path().join("bus").join("pci"); let dev0 = pci::Address::new(0, 0, pci::SlotFn::new(0, 0).unwrap()); let dev0path = syspci.join("devices").jo...
rust_cleaned_test_functions.jsonl/66443
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 647 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 76384, 5318, 316, 15128, 6288, 368, 341, 286, 1077, 1273, 3741, 284, 2730, 3741, 1005, 17119, 445, 16091, 311, 1855, 4174, 3741, 5038, 442, 7860, 608, 7791, 198, 286, 1077, 5708, 55387, 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_measurement() { let mut engine = create_measurement_engine(); let measurement = create_measurement(&mut engine); assert!(!measurement.cpu_utilization.is_nan()); assert!(!measurement.mem_utilization.is_nan()); assert_le!(measurement.cpu_utilization, 1.0); ...
rust_cleaned_test_functions.jsonl/53382
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 87342, 368, 341, 286, 1077, 5206, 4712, 284, 1855, 87342, 24823, 543, 286, 1077, 18662, 284, 1855, 87342, 2099, 6984, 4712, 317, 286, 2060, 0, 3471, 81425, 42387, 18974, 2022, 2079, 73936, 1423, 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_parse_all_samples() { let mut text = SAMPLES_CAM.to_string(); text.push_str(SAMPLES_NVR); text.push_str(SAMPLES_PTZ); let mut all_parsed = Vec::new(); for sample in text.lines() { #[derive(Deserialize)] struct Line { ...
rust_cleaned_test_functions.jsonl/41841
{ "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, 21039, 5705, 18297, 368, 341, 286, 1077, 5206, 1467, 284, 62420, 50, 39446, 2389, 3904, 543, 286, 1467, 2552, 2895, 3759, 18918, 50, 1604, 18800, 317, 286, 1467, 2552, 2895, 3759, 18918, 50, 65061...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unique_common_handle_global_index() { const TABLE_ID: i64 = 3; const INDEX_ID: i64 = 42; let columns_info = vec![ { let mut ci = ColumnInfo::default(); ci.set_column_id(1); ci.as_mut_accessor().set_tp(FieldTypeTp...
rust_cleaned_test_functions.jsonl/12235
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2415 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21218, 21107, 10630, 19296, 3560, 368, 341, 286, 733, 14363, 3450, 25, 600, 21, 19, 284, 220, 18, 280, 286, 733, 39300, 3450, 25, 600, 21, 19, 284, 220, 19, 17, 280, 286, 1077, 8147, 3109, 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_echo_deconstruct() { let packet = Packet::new_unchecked(&ECHO_PACKET_BYTES[..]); assert_eq!(packet.msg_type(), Message::EchoRequest); assert_eq!(packet.msg_code(), 0); assert_eq!(packet.checksum(), 0x8efe); assert_eq!(packet.echo_ident(), 0x1234); ...
rust_cleaned_test_functions.jsonl/70646
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68628, 2259, 7596, 368, 341, 286, 1077, 10151, 284, 28889, 486, 931, 4907, 7549, 2099, 36, 30498, 40328, 40705, 95874, 2558, 286, 2060, 10714, 10297, 24829, 15137, 1819, 1507, 4856, 486, 74994, 1900...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_chained_lookup_depth() { let resp_query = Query::query(Name::from_str("www.example.com.").unwrap(), RecordType::A); let cname_record1 = cname_record( Name::from_str("www.example.com.").unwrap(), Name::from_str("cname2.example.com.").unwrap(), ); let cname_reco...
rust_cleaned_test_functions.jsonl/21992
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1659 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 4138, 2627, 27464, 19061, 368, 341, 262, 1077, 9039, 5738, 284, 11361, 486, 1631, 21182, 486, 1499, 2895, 445, 2136, 7724, 905, 98401, 15454, 1507, 13583, 929, 486, 32, 317, 262, 1077, 78514...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_runnables_in_macro() { check( r#" //- /lib.rs $0 macro_rules! gen { () => { #[test] fn foo_test() {} } } macro_rules! gen2 { () => { mod tests2 { #[test] fn foo_test2() {} } } } mod tests { gen!(); } ...
rust_cleaned_test_functions.jsonl/22199
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3112 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 77, 4788, 1243, 58810, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 61463, 608, 2740, 25638, 198, 3, 15, 198, 32606, 21407, 0, 4081, 341, 262, 1719, 589, 341, 286, 11506, 1944, 921, 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_compile_shift_left_wrap_hl() { let compiled = bitwise::compile_shift_left_wrap("HL".to_string()); assert_eq!(compiled.len(), 1); assert_eq!(compiled[0], 0b11000111); }
rust_cleaned_test_functions.jsonl/100612
{ "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, 74170, 22230, 9579, 38550, 1523, 75, 368, 341, 262, 1077, 19697, 284, 97970, 486, 20433, 22230, 9579, 38550, 445, 13485, 3263, 983, 3904, 5231, 262, 2060, 10714, 10297, 50845, 19406, 1507, 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
#[test] fn test_ser_de_empty() { let b = bytes::Bytes::new(); assert_tokens(&b, &[Token::Bytes(b"")]); let b = bytes::BytesMut::with_capacity(0); assert_tokens(&b, &[Token::Bytes(b"")]); }
rust_cleaned_test_functions.jsonl/20253
{ "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, 75861, 2259, 15124, 368, 341, 262, 1077, 293, 284, 5820, 486, 7078, 486, 931, 543, 262, 2060, 28838, 2099, 65, 11, 44590, 3323, 486, 7078, 1883, 1, 899, 2558, 262, 1077, 293, 284, 5820, 486, 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_chunked_payload() { let chunk_sizes = vec![32768, 32, 32768]; let total_size: usize = chunk_sizes.iter().sum(); let srv = TestServer::new(|| { HttpService::build().h1(|mut request: Request| { request .take_payload() .map_err(|e| pa...
rust_cleaned_test_functions.jsonl/102535
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 845 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30539, 291, 32813, 368, 341, 262, 1077, 11879, 32159, 284, 7486, 20703, 18, 17, 22, 21, 23, 11, 220, 18, 17, 11, 220, 18, 17, 22, 21, 23, 935, 262, 1077, 2790, 2368, 25, 22301, 284, 11879, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_remove_ref_err() { let mut ref_map: RefMap<String> = RefMap::new(); if let Ok(_) = ref_map.remove_ref("test_id") { panic!("remove_ref should have returned an error"); } }
rust_cleaned_test_functions.jsonl/506
{ "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, 18193, 7793, 9266, 368, 341, 286, 1077, 5206, 2053, 5376, 25, 8550, 2227, 3464, 29, 284, 8550, 2227, 486, 931, 543, 286, 421, 1077, 7622, 48139, 284, 2053, 5376, 4850, 7793, 445, 1944, 842, 899,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_one_in_to_string() { let name1 = _random_vector(10); let value1 = _random_string(10); let query = Operator::And( vec![ Operator::In( TagName::PlainTagName(name1.clone()), vec![TargetValue::Unenc...
rust_cleaned_test_functions.jsonl/11896
{ "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, 8378, 6615, 11667, 1243, 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, 626, 286, 1077, 3239, 284, 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_stake_delegation_force() { let mint_keypair = Keypair::new(); let mint_pubkey = mint_keypair.pubkey(); let faucet_addr = run_local_faucet(mint_keypair, None); let test_validator = TestValidator::with_no_fees(mint_pubkey, Some(faucet_addr)); let rpc_client = RpcClient...
rust_cleaned_test_functions.jsonl/45359
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 726, 2259, 87566, 40739, 368, 341, 262, 1077, 28337, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 543, 262, 1077, 28337, 34014, 792, 284, 28337, 3097, 12670, 47773, 792, 543, 262, 1077, 714...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bpf_upgradeable_loader_write_ix() { let offset = 4242; let bytes = vec![8; 99]; let buffer_address = Pubkey::new_unique(); let authority_address = Pubkey::new_unique(); let instruction = bpf_loader_upgradeable::write( &buffer_address, ...
rust_cleaned_test_functions.jsonl/23416
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 794 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 880, 15897, 67794, 480, 22139, 9165, 62686, 368, 341, 286, 1077, 4347, 284, 220, 19, 17, 19, 17, 280, 286, 1077, 5820, 284, 7486, 20703, 23, 26, 220, 24, 24, 4821, 286, 1077, 4147, 6744...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_take_list_with_list_nulls() { let value_data = Int32Array::from(vec![ Some(0), None, Some(0), Some(-1), Some(-2), Some(3), Some(5), None, ]) .data(); // Constr...
rust_cleaned_test_functions.jsonl/4074
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73261, 2019, 6615, 2019, 15162, 82, 368, 341, 1789, 286, 1077, 897, 1769, 284, 1333, 18, 17, 1857, 486, 1499, 25592, 90515, 310, 4329, 7, 15, 1326, 310, 2240, 345, 310, 4329, 7, 15, 1326, 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_new_pull_request() { let thread_pool = ThreadPoolBuilder::new().build().unwrap(); let mut crds = Crds::default(); let node_keypair = Keypair::new(); let entry = CrdsValue::new_unsigned(CrdsData::ContactInfo(ContactInfo::new_localhost( &node_keypair.pub...
rust_cleaned_test_functions.jsonl/112072
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 65693, 7893, 368, 341, 286, 1077, 4516, 15709, 284, 72716, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 5206, 1560, 5356, 284, 4553, 5356, 486, 2258, 543, 286, 1077, 2436, 3097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let helper = StorageHelper::new(); let namespace = "verify"; let output = helper .verify(namespace) .unwrap() .split("Key not set") .count(); // 11 KeyNotSet results in 12 splits assert_eq!(output...
rust_cleaned_test_functions.jsonl/8047
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 294 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 368, 341, 286, 1077, 13137, 284, 14693, 5511, 486, 931, 543, 286, 1077, 4473, 284, 330, 12446, 3302, 286, 1077, 2550, 284, 13137, 198, 310, 659, 12446, 52397, 340, 310, 659, 15454, 741, 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_single_json_expr_is_valid() { eval!("true ", Value::from(true)); eval!("true;", Value::from(true)); eval!( "{ \"snot\": \"badger\" }", Value::from(hashmap! { "snot".into() => "badger".into() }) ); }
rust_cleaned_test_functions.jsonl/45678
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 9455, 21915, 6892, 8337, 368, 341, 286, 5603, 17223, 1866, 3670, 5162, 486, 1499, 3715, 1106, 286, 5603, 17223, 1866, 32503, 5162, 486, 1499, 3715, 1106, 286, 5603, 33673, 310, 13868, 7245, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_icmpv6_in_ipv4() { let ip_config = get_dummy_config::<Ipv4Addr>(); let mut ctx = DummyEventDispatcherBuilder::from_config(ip_config.clone()) .build::<DummyEventDispatcher>(); // First possible device id. let device = DeviceId::new_ethernet(0); ...
rust_cleaned_test_functions.jsonl/94419
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 865 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 32747, 1307, 85, 21, 1243, 49378, 19, 368, 341, 286, 1077, 5997, 5332, 284, 633, 60321, 5332, 27638, 80656, 19, 13986, 3913, 286, 1077, 5206, 5635, 284, 50567, 1556, 21839, 3297, 486, 1499,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_value() { let obj1: Object = Object::new(&[]).unwrap(); let v = obj1.to_value(); let obj2 = v.get::<&Object>().unwrap(); assert_eq!(obj1.as_ptr(), obj2.as_ptr()); }
rust_cleaned_test_functions.jsonl/21707
{ "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, 3142, 368, 341, 286, 1077, 2839, 16, 25, 3002, 284, 3002, 486, 931, 2099, 1294, 568, 15454, 543, 286, 1077, 348, 284, 2839, 16, 2389, 3142, 543, 286, 1077, 2839, 17, 284, 348, 670, 27638, 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
#[test] fn test_ping_frame() { let frame = Frame::message(Vec::from("data"), OpCode::Ping, true, false); let mut v = vec![137u8, 4u8]; v.extend(b"data"); assert_eq!(frame.0, v.into()); }
rust_cleaned_test_functions.jsonl/55894
{ "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, 71661, 8929, 368, 341, 286, 1077, 4034, 284, 16321, 486, 1994, 49923, 486, 1499, 445, 691, 3975, 97779, 486, 69883, 11, 830, 11, 895, 626, 286, 1077, 5206, 348, 284, 7486, 20703, 16, 18, 22, 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_hover_trait_show_qualifiers() { check_actions( r"unsafe trait foo$0() {}", expect![[r#" [ Implementation( FilePosition { file_id: FileId( 0, ...
rust_cleaned_test_functions.jsonl/66652
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 366 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 78491, 15267, 64391, 11836, 368, 341, 286, 1779, 25368, 1006, 310, 435, 1, 38157, 17567, 15229, 3, 15, 368, 4687, 756, 310, 1720, 0, 15505, 81, 2, 698, 394, 2278, 503, 30813, 1006, 664, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pool_sol_usdc() { pool_actions::run_test( "RDM.SOL-USDC-V4", vec![utils::Swap { protocol: "RDM", from_token: "SOL", to_token: "USDC", amount: 0.10000001, }], vec![], true, ); }
rust_cleaned_test_functions.jsonl/120680
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15709, 53668, 11306, 7628, 368, 341, 262, 7314, 25368, 486, 6108, 4452, 1006, 286, 330, 49, 8395, 808, 1930, 32340, 5626, 19625, 19, 756, 286, 7486, 20703, 6031, 486, 46179, 341, 310, 11507, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vec_conversions_f16() { let numbers = vec![f16::E, f16::PI, f16::EPSILON, f16::FRAC_1_SQRT_2]; let bits = vec![ f16::E.to_bits(), f16::PI.to_bits(), f16::EPSILON.to_bits(), f16::FRAC_1_SQRT_2.to_bits(), ]; let bits_c...
rust_cleaned_test_functions.jsonl/128732
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 339 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 3382, 28290, 761, 16, 21, 368, 341, 286, 1077, 5109, 284, 7486, 20703, 69, 16, 21, 486, 36, 11, 282, 16, 21, 486, 1893, 11, 282, 16, 21, 486, 45177, 55016, 11, 282, 16, 21, 486, 105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_try_from_robj() { test! { assert_eq!(<bool>::try_from(Robj::from(true)), Ok(true)); assert_eq!(<u8>::try_from(Robj::from(1)), Ok(1)); assert_eq!(<u16>::try_from(Robj::from(1)), Ok(1)); assert_eq!(<u32>::try_from(Robj::from(1)), Ok(1)); assert_eq!(<u64>...
rust_cleaned_test_functions.jsonl/59509
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3263 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 62, 22740, 73, 368, 341, 262, 1273, 0, 341, 286, 2060, 10714, 10297, 27, 2641, 6831, 1539, 5673, 2785, 2295, 486, 1499, 3715, 5731, 7622, 3715, 1106, 286, 2060, 10714, 10297, 27, 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
#[test] fn test_config_format() { let toml_str = r#" [services] [services.user.transport] type = "HTTP" [services.user.transport.info] endpoint = "http://truc.io:9009" [services.user.transport.info.method.test] route = "api/v3/testMethod" ...
rust_cleaned_test_functions.jsonl/27215
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 324 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 8955, 368, 341, 286, 1077, 311, 1014, 2895, 284, 435, 2, 698, 286, 508, 12779, 2533, 286, 508, 12779, 3324, 52553, 921, 286, 943, 284, 330, 9230, 1837, 286, 508, 12779, 3324, 52553, 5391, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_consistent_hashing() { const NUM_TESTS: usize = 10_000; const NUM_SHARDS: usize = 10; let hasher = JumpHash::new(0..NUM_SHARDS); let mappings = (0..NUM_TESTS) .map(|v| { let shard = hasher.hash(v); (v, shard) ...
rust_cleaned_test_functions.jsonl/40755
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 599 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31971, 18128, 8950, 287, 368, 341, 286, 733, 15943, 80312, 25, 22301, 284, 220, 16, 15, 62, 15, 15, 15, 280, 286, 733, 15943, 6834, 59894, 25, 22301, 284, 220, 16, 15, 401, 286, 1077, 90819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_name_eq() { assert_eq!(TEXT, TEXT); assert_eq!(TEXT, "text"); assert_eq!("text", TEXT); assert_eq!(TEXT, "TEXT"); }
rust_cleaned_test_functions.jsonl/99132
{ "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, 1269, 10714, 368, 341, 286, 2060, 10714, 10297, 12708, 11, 15762, 317, 286, 2060, 10714, 10297, 12708, 11, 330, 1318, 797, 286, 2060, 10714, 17223, 1318, 497, 15762, 317, 286, 2060, 10714, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_encode_block() { assert_eq!("".to_string(), encode_block(b"")); assert_eq!("Zg==".to_string(), encode_block(b"f")); assert_eq!("Zm8=".to_string(), encode_block(b"fo")); assert_eq!("Zm9v".to_string(), encode_block(b"foo")); assert_eq!("Zm9vYg==".to_string()...
rust_cleaned_test_functions.jsonl/51043
{ "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, 11224, 7113, 368, 341, 286, 2060, 10714, 17223, 3263, 983, 3904, 1507, 16164, 7113, 1883, 1, 4010, 286, 2060, 10714, 17223, 57, 70, 418, 3263, 983, 3904, 1507, 16164, 7113, 1883, 96171, 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_base_case() { check_assist( toggle_ignore, r#" #[test$0] fn test() {} "#, r#" #[test] #[ignore] fn test() {} "#, ) }
rust_cleaned_test_functions.jsonl/49061
{ "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, 7651, 19096, 368, 341, 286, 1779, 12083, 380, 1006, 310, 14999, 58493, 345, 310, 435, 2, 698, 310, 11506, 1944, 3, 15, 921, 310, 5168, 1273, 368, 5613, 310, 5869, 345, 310, 435, 2, 698, 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
#[test] fn test_ciphertext_commitment_equality_proof_correctness() { // success case let source_keypair = ElGamalKeypair::new_rand(); let message: u64 = 55; let source_ciphertext = source_keypair.public.encrypt(message); let (destination_commitment, destination_opening) ...
rust_cleaned_test_functions.jsonl/133877
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 912 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 45043, 36346, 478, 2204, 10473, 86757, 31550, 2090, 368, 341, 286, 442, 2393, 1142, 198, 286, 1077, 2530, 3097, 12670, 284, 3984, 78884, 278, 6608, 1082, 1310, 486, 931, 33864, 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...
1
#[test] fn test_prepare_if_nonce_account_not_nonce_pubkey() { let ( pre_account_pubkey, pre_account, mut post_account, last_blockhash, last_fee_calculator, maybe_fee_account, ) = create_accounts_prepare_if_nonce_account(); ...
rust_cleaned_test_functions.jsonl/82612
{ "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, 47460, 11119, 48508, 13500, 7913, 48508, 34014, 792, 368, 341, 286, 1077, 2399, 310, 855, 13500, 34014, 792, 345, 310, 855, 13500, 345, 310, 5206, 1736, 13500, 345, 310, 1537, 7113, 8296, 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_scan_with_no_ifaces() { let mut exec = fuchsia_async::Executor::new().expect("failed to create an executor"); // Create a PhyManager with no knowledge of any client ifaces. let test_values = test_setup(&mut exec); let phy_manager = create_empty_phy_ma...
rust_cleaned_test_functions.jsonl/62684
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 472 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28857, 6615, 6536, 11119, 2434, 368, 341, 286, 1077, 5206, 3883, 284, 282, 73391, 28346, 486, 25255, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 458, 31558, 3071, 286, 442, 4230, 264, 92582, 204...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_matrix() { let gate = RZ::new(::std::f64::consts::PI); let z = crate::cmatrix::COMPLEX_ZERO; let i = crate::cmatrix::COMPLEX_I; assert_complex_matrix_eq!(gate.matrix(), array![[-i, z], [z, i]]); }
rust_cleaned_test_functions.jsonl/7272
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10193, 741, 262, 341, 286, 1077, 18126, 284, 431, 57, 486, 931, 38732, 1834, 486, 69, 21, 19, 486, 95773, 486, 1893, 317, 286, 1077, 1147, 284, 17717, 486, 6226, 2555, 486, 8696, 42136, 39370, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_name() { let doc = r#"{ human(id: "1000") { name } }"#; let database = Database::new(); let schema = RootNode::new(&database, EmptyMutation::<Database>::new()); assert_eq!( ::execute(doc, None, &schema, &Variables::new(), &database), Ok(( Value:...
rust_cleaned_test_functions.jsonl/35465
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 421 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 1269, 368, 341, 262, 1077, 4629, 284, 435, 2, 14129, 3738, 3724, 25, 330, 16, 15, 15, 15, 899, 314, 829, 335, 335, 57676, 280, 262, 1077, 4625, 284, 9994, 486, 931, 543, 262, 1077, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_lsr_reg() { match decode_16(0x40e1) { Instruction::LSR_reg { params, thumb32 } => { assert_eq!(params.rd, Reg::R1); assert_eq!(params.rn, Reg::R1); assert_eq!(params.rm, Reg::R4); assert!(params.setflags == SetFlags::NotInIT...
rust_cleaned_test_functions.jsonl/64764
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 907, 15094, 4920, 368, 341, 1066, 262, 2432, 16895, 62, 16, 21, 7, 15, 87, 19, 15, 68, 16, 8, 341, 286, 29051, 486, 7268, 49, 4920, 314, 3628, 11, 24050, 18, 17, 335, 589, 341, 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...
2
#[test] fn test_relay_avrcp_ends() -> Result<(), Error> { let mut exec = fasync::Executor::new().expect("executor needed"); let (player_client, avrcp_requests, relay_fut) = setup_media_relay()?; pin_mut!(relay_fut); let res = exec.run_until_stalled(&mut relay_fut); ass...
rust_cleaned_test_functions.jsonl/31039
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 431 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 6651, 26173, 1287, 79, 90729, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 25255, 486, 931, 1005, 17119, 445, 80787, 4362, 3071, 286, 1077, 320, 3434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_macro_customintkind_path() { let v: &std::any::Any = &bindings::TESTMACRO_CUSTOMINTKIND_PATH; assert!(v.is::<MacroInteger>()) }
rust_cleaned_test_functions.jsonl/28010
{ "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, 58810, 15875, 396, 15314, 2638, 368, 341, 262, 1077, 348, 25, 609, 1834, 486, 3767, 486, 8610, 284, 609, 65495, 486, 10033, 25788, 1285, 36314, 3221, 42, 5245, 7944, 280, 262, 2060, 10297, 85, 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
#[test] fn test_sub() { fn test(a: Rational, b: Rational, c: Rational) { assert_eq!(a - b, c); assert_eq!(to_big(a) - to_big(b), to_big(c)) } test(_1, _1_2, _1_2); test(_3_2, _1_2, _1); test(_1, _neg1_2, _3_2); ...
rust_cleaned_test_functions.jsonl/47157
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 213 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 368, 341, 310, 5168, 1273, 2877, 25, 54525, 11, 293, 25, 54525, 11, 272, 25, 54525, 8, 341, 394, 2060, 10714, 10297, 64, 481, 293, 11, 272, 317, 394, 2060, 10714, 10297, 983, 36386, 2877...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_subnet_of() { let mut test_cases: HashMap<(Ipv6Network, Ipv6Network), bool> = HashMap::new(); test_cases.insert( ( "2000:999::/56".parse().unwrap(), "2000:aaa::/48".parse().unwrap(), ), false, ); ...
rust_cleaned_test_functions.jsonl/41648
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 743 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 95681, 3575, 368, 341, 286, 1077, 5206, 1273, 41427, 25, 10528, 28706, 80656, 21, 12320, 11, 358, 30168, 21, 12320, 701, 1807, 29, 284, 10528, 486, 931, 1428, 286, 1273, 41427, 7030, 1006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_utimes() { let tempdir = tempfile::tempdir().unwrap(); let fullpath = tempdir.path().join("file"); drop(File::create(&fullpath).unwrap()); utimes(&fullpath, &TimeVal::seconds(9990), &TimeVal::seconds(5550)).unwrap(); assert_times_eq(9990, 5550, &fs::metadata(&fullpath).unwra...
rust_cleaned_test_functions.jsonl/48643
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60363, 1733, 368, 341, 262, 1077, 2730, 3741, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 262, 1077, 2480, 2343, 284, 2730, 3741, 3875, 1005, 5987, 445, 1192, 797, 262, 5943, 19821, 486, 3182, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_multi_octet_length_to_ea_format() { let multi_octet_length = 0b100000001100001001000; let expected = [0b10010000, 0b01100000, 0b10000001]; assert_eq!(length_to_ea_format(multi_octet_length), expected); }
rust_cleaned_test_functions.jsonl/107786
{ "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, 25133, 70135, 295, 5118, 2346, 2204, 64, 8955, 368, 341, 286, 1077, 7299, 70135, 295, 5118, 284, 220, 15, 65, 16, 15, 15, 15, 15, 15, 15, 15, 16, 16, 15, 15, 15, 15, 16, 15, 15, 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...
1
#[test] fn test_get_account_state_missing() { let mock_db = create_empty_mock_db(); let (client, _server) = create_client_and_server(mock_db, true); // Ensure the client returns an error for a missing AccountState let account = AccountAddress::random(); let result = clie...
rust_cleaned_test_functions.jsonl/927
{ "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, 3062, 13500, 4387, 40447, 368, 341, 286, 1077, 7860, 8685, 284, 1855, 15124, 34134, 8685, 543, 286, 1077, 320, 2972, 11, 716, 4030, 8, 284, 1855, 8179, 8378, 12015, 30389, 8685, 11, 830, 626, 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_map_array_bad_write_index() { let array_size: u64 = 10; let map: ArrayMap = unsafe { ArrayMap::new( "mymap", std::mem::size_of::<u64>() as u32, array_size as u32, ) .expect("Failed to create new m...
rust_cleaned_test_functions.jsonl/40486
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 565 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5376, 3858, 34199, 9165, 3560, 368, 341, 286, 1077, 1334, 2368, 25, 575, 21, 19, 284, 220, 16, 15, 280, 286, 1077, 2415, 25, 2910, 2227, 284, 19860, 341, 310, 2910, 2227, 486, 931, 1006, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_simple_inversion3() { let a: Secp256r1Scalar = ECScalar::from(&BigInt::from(1234567890)); let a_inv = a.invert().to_big_int(); assert_eq!( a_inv, BigInt::from_hex("93a24a3b7e3b3a49a5acf862e8360bdd456e4c095dec9b97772bb758f725715a") ....
rust_cleaned_test_functions.jsonl/12364
{ "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, 30015, 1243, 4366, 18, 368, 341, 286, 1077, 264, 25, 4520, 79, 17, 20, 21, 81, 16, 20639, 284, 20633, 20639, 486, 1499, 2099, 87474, 486, 1499, 7, 16, 17, 18, 19, 20, 21, 22, 23, 24, 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_http_post_request() { let port = start_server(); // Check that POST requests return a BadRequest status let client = reqwest::blocking::Client::new(); let resp = client .post(&format!("http://127.0.0.1:{}/test", port)) .send() ...
rust_cleaned_test_functions.jsonl/126000
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25888, 6333, 7893, 368, 341, 286, 1077, 2635, 284, 1191, 12015, 1428, 286, 442, 4248, 429, 12869, 7388, 470, 264, 36403, 2639, 198, 286, 1077, 2943, 284, 4232, 11039, 486, 70356, 486, 2959, 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_from_environment_full_iso() { std::env::set_var("TIME_STYLE", "full-iso"); assert_eq!( Some(DateFlag::Formatted("%F %T.%f %z".into())), DateFlag::from_environment() ); }
rust_cleaned_test_functions.jsonl/1312
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 51774, 16372, 49660, 368, 341, 286, 1460, 486, 3160, 486, 746, 4612, 445, 18129, 41775, 497, 330, 8878, 12, 15420, 797, 286, 2060, 10714, 33673, 310, 4329, 19987, 12135, 486, 43500, 4430, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_book() { delay(); let client: Public<Sync> = Public::new(SANDBOX_URL); let book_l1 = client.get_book::<BookRecordL1>("BTC-USD").unwrap(); let str1 = format!("{:?}", book_l1); assert_eq!(1, book_l1.bids.len()); assert!(book_l1.bids.len() > 0); assert!(book_l1.asks....
rust_cleaned_test_functions.jsonl/50632
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 366 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 26421, 368, 341, 262, 7626, 543, 262, 1077, 2943, 25, 3066, 27, 12154, 29, 284, 3066, 486, 931, 3759, 1093, 3506, 60155, 8000, 317, 262, 1077, 2311, 907, 16, 284, 2943, 670, 26421, 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_4() { use std::error::Error; assert_eq!( parse("nominate") .unwrap_err() .source() .unwrap() .downcast_ref(), Some(&ParseError::NoTeam), ); }
rust_cleaned_test_functions.jsonl/41755
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 141 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 19, 368, 341, 262, 990, 1460, 486, 841, 486, 1454, 280, 262, 2060, 10714, 33673, 286, 4715, 445, 16687, 3277, 1138, 310, 659, 15454, 9266, 741, 310, 659, 2427, 741, 310, 659, 15454, 741, 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
#[test] fn test_write_single_frame() { let frames: Vec<HttpFrame> = vec![ HttpFrame::HeadersFrame(HeadersFrame::new(vec![], 1)), ]; let expected = frames.clone(); let mut conn = build_mock_http_conn(); let mut sender = MockSendFrame::new(); for frame ...
rust_cleaned_test_functions.jsonl/131332
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 19487, 8929, 368, 341, 286, 1077, 14087, 25, 11312, 27, 2905, 4369, 29, 284, 7486, 90515, 310, 4823, 4369, 486, 10574, 4369, 7, 10574, 4369, 486, 931, 25592, 0, 12995, 220, 16, 6965, 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_collect() { test_a_collect(vec![]); test_a_collect(vec![0]); test_a_collect(vec![0,1<<29]); test_a_collect(vec![0,1<<30,1<<30]); test_a_collect((0..1024).collect()); }
rust_cleaned_test_functions.jsonl/14587
{ "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, 68140, 368, 341, 262, 1273, 4306, 68140, 25592, 0, 56703, 262, 1273, 4306, 68140, 25592, 20703, 15, 2558, 262, 1273, 4306, 68140, 25592, 20703, 15, 11, 16, 2442, 17, 24, 2558, 262, 1273, 4306, 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_extract_var_path_method() { check_assist( extract_variable, " fn main() { let v = $0bar.foo()$0; } ", " fn main() { let $0foo = bar.foo(); let v = foo; } ", ); }
rust_cleaned_test_functions.jsonl/132838
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 149 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 4612, 2638, 9032, 368, 341, 286, 1779, 12083, 380, 1006, 310, 8649, 14635, 345, 310, 6228, 8822, 1887, 368, 341, 262, 1077, 348, 284, 400, 15, 2257, 58432, 368, 3, 15, 280, 532, 756, 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_mvcc_resolve_lock_gc_and_delete() { use kvproto::kvrpcpb::*; let (cluster, client, ctx) = must_new_cluster_and_kv_client(); let (k, v) = (b"key".to_vec(), b"value".to_vec()); let mut ts = 0; // Prewrite ts += 1; let prewrite_start_version = ts; let mut mutation...
rust_cleaned_test_functions.jsonl/61686
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2039 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73187, 638, 77291, 9818, 49423, 8378, 11353, 368, 341, 262, 990, 16178, 15110, 486, 74, 18920, 3992, 16650, 79304, 262, 1077, 320, 18855, 11, 2943, 11, 5635, 8, 284, 1969, 5921, 28441, 8378, 97066...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_memory() { let region_size = 0x400; let regions = vec![ (GuestAddress(0x0), region_size), (GuestAddress(0x1000), region_size), ]; let mut iterated_regions = Vec::new(); let gm = Arc::new(GuestMemoryMmap::from_ranges(&regions).unwrap...
rust_cleaned_test_functions.jsonl/63923
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 457 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19195, 368, 341, 286, 1077, 5537, 2368, 284, 220, 15, 87, 19, 15, 15, 280, 286, 1077, 13604, 284, 7486, 90515, 310, 320, 37804, 4286, 7, 15, 87, 15, 701, 5537, 2368, 1326, 310, 320, 37804, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_try_from_record_for_reference_sequence_with_missing_name( ) -> Result<(), record::value::TryFromIteratorError> { let record = Record::new( record::Kind::ReferenceSequence, record::Value::try_from_iter(vec![ ("LN", "1"), ("M5", "...
rust_cleaned_test_functions.jsonl/23397
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 285 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 14192, 5478, 25433, 23735, 6615, 40447, 1269, 1006, 262, 873, 1464, 5714, 68843, 3255, 486, 957, 486, 21453, 3830, 11951, 1454, 29, 341, 286, 1077, 3255, 284, 13583, 486, 931, 1006, 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...
2
#[test] fn test_report_parse_response_error() { block_on(async { let config = config_generator(); let http = MockHttpRequest::new(hyper::Response::new("invalid response".into())); let mut state_machine = StateMachine::new( StubPolicyEngine, ...
rust_cleaned_test_functions.jsonl/94213
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 730 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14813, 21039, 9655, 4096, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 2193, 284, 2193, 25813, 543, 310, 1077, 1758, 284, 14563, 26362, 486, 931, 3203, 39252, 486, 2582, 486, 931, 445, 11808,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_public_data_conversions_withdraw() { let expected_op = { let tx = Withdraw::new( 42, Address::from_str("2a0a81e257a2f5d6ed4f07b81dbda09f107bd026").unwrap(), Address::from_str("21abaed8712072e918632259780e587698ef58da").unwrap(),...
rust_cleaned_test_functions.jsonl/130112
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 422 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27074, 1769, 3382, 28290, 6615, 7633, 368, 341, 286, 1077, 3601, 10287, 284, 341, 310, 1077, 9854, 284, 67381, 486, 931, 1006, 394, 220, 19, 17, 345, 394, 9177, 486, 1499, 2895, 445, 17, 64, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_two_pair() { for (rank1, rank2, rank3) in Rank::ALL.iter().copied().tuple_combinations() { for (suit1, suit2, suit3) in Suit::ALL.iter().copied().tuple_combinations() { let card1 = Card { rank: rank1, suit: suit1, ...
rust_cleaned_test_functions.jsonl/3085
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 637 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 14445, 368, 341, 286, 369, 320, 13129, 16, 11, 7077, 17, 11, 7077, 18, 8, 304, 19298, 486, 3919, 19471, 1005, 37728, 1122, 1005, 24590, 34454, 12634, 368, 341, 310, 369, 320, 72040, 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...
3
#[test] fn test_can_close() { let empty: Vec<&str> = vec![]; assert_can_close_after(&empty); assert_can_close_after(""); assert_can_close_after("2 + 2;\n"); assert_can_close_after("// seems ok\n"); }
rust_cleaned_test_functions.jsonl/7974
{ "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, 27421, 12704, 368, 341, 262, 1077, 4287, 25, 11312, 52244, 495, 29, 284, 7486, 0, 15078, 262, 2060, 27421, 12704, 19844, 2099, 3194, 317, 262, 2060, 27421, 12704, 19844, 13056, 262, 2060, 27421, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_udp_ipv4() { let mut io_loop = Runtime::new().unwrap(); let addr: SocketAddr = ("8.8.8.8", 53).to_socket_addrs().unwrap().next().unwrap(); let stream = UdpClientStream::<TokioUdpSocket>::new(addr); let (bg, mut client) = ClientFuture::connect(stream); io_loop.spawn(bg);...
rust_cleaned_test_functions.jsonl/33930
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 199 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 69432, 49378, 19, 368, 341, 262, 1077, 5206, 6399, 17198, 284, 10954, 486, 931, 1005, 15454, 543, 262, 1077, 10789, 25, 20954, 13986, 284, 3489, 23, 13, 23, 13, 23, 13, 23, 497, 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
#[test] fn test_add_length() { let mut enc = (u64::MAX as u128) << 64 | 50; add_in_length(&mut enc, u64::MAX); assert_eq!(enc >> 64, u64::MAX as u128); assert_eq!(enc as u64, 49); }
rust_cleaned_test_functions.jsonl/109545
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 5118, 368, 341, 286, 1077, 5206, 3209, 284, 320, 84, 21, 19, 486, 10586, 438, 575, 16, 17, 23, 8, 1115, 220, 21, 19, 760, 220, 20, 15, 280, 286, 912, 1243, 5118, 2099, 6984, 3209, 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_author_id() -> Result<(), TimestampParseError> { const USER_ID: Id<UserMarker> = Id::new(7); let timestamp = Timestamp::from_str("2020-02-02T02:02:02.020000+00:00")?; let in_guild = MessageComponentInteraction { application_id: Id::new(1), channe...
rust_cleaned_test_functions.jsonl/6469
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1572 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22938, 842, 368, 1464, 5714, 68843, 32758, 14463, 1454, 29, 341, 286, 733, 13872, 3450, 25, 5223, 16761, 20613, 29, 284, 5223, 486, 931, 7, 22, 626, 286, 1077, 11441, 284, 32758, 486, 1499, 2895...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_date() { run_test_parse_date("000203", NaiveDate::from_ymd(2000, 2, 3)); run_test_parse_date("690203", NaiveDate::from_ymd(2069, 2, 3)); run_test_parse_date("700203", NaiveDate::from_ymd(1970, 2, 3)); run_test_parse_date("010203", NaiveDate::from_ymd(2001, 2, 3)); run_t...
rust_cleaned_test_functions.jsonl/55834
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 395 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 4164, 368, 341, 262, 1598, 4452, 21039, 4164, 445, 15, 15, 15, 17, 15, 18, 497, 12812, 533, 1916, 486, 1499, 62, 1600, 67, 7, 17, 15, 15, 15, 11, 220, 17, 11, 220, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eval_single_fn_call_node() { #[derive(Debug, Clone, Copy)] struct FnFoo; impl_template_fn! { 0 arg @ FnFoo } impl FnFoo { fn call(_ctx: &mut EvalContext, _payload: RpnFnCallPayload<'_>) -> Result<Option<i64>> { Ok(Some(42)) ...
rust_cleaned_test_functions.jsonl/121509
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 593 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 19487, 15246, 13429, 5084, 368, 341, 286, 11506, 27098, 42618, 11, 27913, 11, 14540, 5563, 286, 2036, 50182, 40923, 401, 286, 11605, 8693, 15246, 0, 314, 220, 15, 1392, 569, 50182, 40923, 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_do_not_remove_too_many_outbound_peers() { //use an extreme case to catch errors with high probability let m = 50; let n = 2 * m; let config = GossipsubConfigBuilder::default() .mesh_n_high(n) .mesh_n(n) .mesh_n_low(n) ...
rust_cleaned_test_functions.jsonl/66906
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 734 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26309, 7913, 18193, 2346, 78, 22101, 6068, 10891, 36367, 388, 368, 341, 286, 442, 810, 458, 14226, 1142, 311, 2287, 5975, 448, 1550, 18927, 198, 286, 1077, 296, 284, 220, 20, 15, 280, 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...
3
#[test] fn test_dim_extended_inside_sub_name_clashing_param_name() { let program = r#" SUB Hello(Oops) Dim Oops AS STRING END SUB "#; assert_linter_err!(program, QError::DuplicateDefinition, 3, 17); }
rust_cleaned_test_functions.jsonl/122464
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10791, 61678, 72860, 5228, 1269, 6794, 19049, 4090, 1269, 368, 341, 262, 1077, 2025, 284, 435, 2, 698, 310, 16140, 21927, 19238, 3721, 340, 310, 8126, 95252, 5752, 35255, 198, 310, 11176, 16140, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fr_double() { let mut rng = XorShiftRng::from_seed([ 0x59, 0x62, 0xbe, 0x5d, 0x76, 0x3d, 0x31, 0x8d, 0x17, 0xdb, 0x37, 0x32, 0x54, 0x06, 0xbc, 0xe5, ]); for _ in 0..1000 { // Ensure doubling a is equivalent to adding a to itself. let a = Fr::random(&m...
rust_cleaned_test_functions.jsonl/100652
{ "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, 41537, 24598, 368, 341, 262, 1077, 5206, 28422, 284, 1599, 269, 24841, 49, 968, 486, 1499, 33809, 8956, 286, 220, 15, 87, 20, 24, 11, 220, 15, 87, 21, 17, 11, 220, 15, 42459, 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...
2
#[test] fn test_no_line_terminator_here() { // Parse `code` as a Script and compute some function of the resulting AST. fn parse_then<F, R>(code: &str, f: F) -> R where F: FnOnce(&Script) -> R, { let allocator = &Bump::new(); match try_parse(allocator, code) { ...
rust_cleaned_test_functions.jsonl/7983
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 976 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 6528, 62, 22969, 850, 73271, 368, 341, 262, 442, 14775, 1565, 1851, 63, 438, 264, 13710, 323, 12564, 1045, 729, 315, 279, 12942, 22465, 624, 262, 5168, 4715, 68367, 30499, 11, 431, 2235, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_iter_non_contiguous() { let mut list = SongList::new_from_initial_batch(batch(0)); list.add(batch(2)); assert_eq!(list.partial_len(), 4); let mut list_iter = list.iter(); assert_eq!(list_iter.next().unwrap().id, "song0"); assert_eq!(list_iter.nex...
rust_cleaned_test_functions.jsonl/101859
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 242 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 21637, 10260, 27029, 368, 341, 286, 1077, 5206, 1140, 284, 18971, 852, 486, 931, 5673, 15809, 14534, 30139, 7, 15, 1106, 286, 1140, 1364, 30139, 7, 17, 3237, 286, 2060, 10714, 10297, 1607, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_resolve_module_4() { let (_temp_dir, deno_dir) = test_setup(); let specifier = "./util"; let referrer_ = deno_dir.deps_http.join("unpkg.com/liltest@0.0.5/index.ts"); let referrer = referrer_.to_str().unwrap(); // http containing files -> load relative import with http l...
rust_cleaned_test_functions.jsonl/72755
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 320 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77291, 10750, 62, 19, 368, 341, 262, 1077, 5453, 3888, 4334, 11, 3371, 78, 4334, 8, 284, 1273, 21363, 1428, 262, 1077, 97616, 284, 5924, 1314, 876, 262, 1077, 2053, 30929, 62, 284, 3371, 78, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vectors_cross_product() { let vector_a = Vector { x: 2.0, y: 3.0, z: 4.0, }; let vector_b = Vector { x: 5.0, y: 6.0, z: 7.0, }; let expected_result = Vector { x: -3.0, ...
rust_cleaned_test_functions.jsonl/134059
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 293 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49158, 35284, 9840, 368, 341, 286, 1077, 4621, 4306, 284, 4196, 341, 310, 856, 25, 220, 17, 13, 15, 345, 310, 379, 25, 220, 18, 13, 15, 345, 310, 1147, 25, 220, 19, 13, 15, 345, 286, 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_node_split_region_diff_check() { let count = 1; let mut cluster = new_node_cluster(0, count); test_split_region_diff_check(&mut cluster); }
rust_cleaned_test_functions.jsonl/25778
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 17052, 20627, 15850, 7200, 368, 341, 262, 1077, 1760, 284, 220, 16, 280, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 1760, 317, 262, 1273, 17052, 20627, 15850, 7200, 2099, 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
#[test] fn test_add_referenced_cell() { let mut sheet = Spreadsheet::new(); sheet.set_formula(&CellRef::new('A', 1), "= B2"); assert_eq!(sheet.cells.len(), 2); let cell_a1 = sheet.cells.get(&CellRef::new('A', 1)).unwrap(); assert_eq!(cell_a1.get_dependencies().len(), 1)...
rust_cleaned_test_functions.jsonl/83546
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 269 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 73386, 5767, 16648, 368, 341, 286, 1077, 5206, 10834, 284, 98501, 486, 931, 1428, 286, 10834, 980, 63869, 2099, 3599, 3945, 486, 931, 492, 32, 516, 220, 16, 701, 37827, 425, 17, 797, 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_config() { let mut c = super::config::Config::new("".to_string(), false, "".to_string()); assert!(c.config().is_err()); let mut c = super::config::Config::new("config.txt".to_string(), false, "".to_string()); assert!(c.config().is_err()); let mut c = super::config::Config::...
rust_cleaned_test_functions.jsonl/116610
{ "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, 5332, 368, 341, 262, 1077, 5206, 272, 284, 2256, 486, 1676, 486, 2648, 486, 931, 445, 3263, 983, 3904, 1507, 895, 11, 44907, 983, 3904, 1423, 262, 2060, 10297, 66, 5423, 1005, 285, 9266, 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_event_target() { run_in_task(|mut cx| { let mut isolate = setup(); isolate .execute("event_target_test.js", include_str!("event_target_test.js")) .unwrap(); if let Poll::Ready(Err(_)) = isolate.poll_event_loop(&mut cx) { unreachable!(); } }...
rust_cleaned_test_functions.jsonl/12654
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6748, 11123, 368, 341, 262, 1598, 1243, 12184, 22428, 6984, 20716, 91, 341, 414, 1077, 5206, 42123, 284, 6505, 543, 414, 42123, 198, 286, 659, 10257, 445, 3087, 11123, 4452, 2857, 497, 2924, 2895,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_write_info_field_value_with_flag_value() -> io::Result<()> { use vcf::record::info::field; let mut buf = Vec::new(); let value = field::Value::Flag; write_info_field_value(&mut buf, Some(&value))?; let expected = [0x00]; assert_eq!(buf, expected...
rust_cleaned_test_functions.jsonl/6247
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 3109, 5013, 3142, 6615, 10933, 3142, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 990, 348, 9792, 486, 8548, 486, 2733, 486, 2566, 401, 286, 1077, 5206, 6607, 284, 11312, 486, 931, 543, 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...
2
#[test] fn test_split_check() { test_split_check_impl(&[CF_DEFAULT, CF_WRITE], CF_DEFAULT); test_split_check_impl(&[CF_DEFAULT, CF_WRITE], CF_WRITE); for cf in LARGE_CFS { test_split_check_impl(LARGE_CFS, cf); } }
rust_cleaned_test_functions.jsonl/23781
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 7200, 368, 341, 286, 1273, 17052, 7200, 21007, 2099, 58, 9650, 13811, 11, 20795, 17475, 1125, 20795, 13811, 317, 286, 1273, 17052, 7200, 21007, 2099, 58, 9650, 13811, 11, 20795, 17475, 1125, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_is_list_item() { assert!(ListItem::parse("1. Test").is_some()); assert!(ListItem::parse("A) Test").is_some()); assert!(ListItem::parse(" * Test").is_some()); assert!(ListItem::parse(" - Test").is_some()); assert!(ListItem::parse("Test").is_none()); ...
rust_cleaned_test_functions.jsonl/6468
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 2019, 5634, 368, 341, 286, 2060, 10297, 19045, 486, 6400, 445, 16, 13, 3393, 1827, 285, 61855, 1423, 286, 2060, 10297, 19045, 486, 6400, 445, 32, 8, 3393, 1827, 285, 61855, 1423, 286, 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_simplify_expr() { // Test if expression containing literals is simplified let df = get_df(); let plan = df .lazy() .select(&[lit(1.0f32) + lit(1.0f32) + col("sepal.width")]) .logical_plan; let mut expr_arena = Arena::new(); let mut lp_arena = Arena::...
rust_cleaned_test_functions.jsonl/127
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 382 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 70206, 21915, 368, 341, 262, 442, 3393, 421, 7493, 8482, 75275, 374, 43799, 198, 262, 1077, 6764, 284, 633, 10894, 1428, 262, 1077, 3119, 284, 6764, 198, 286, 659, 49013, 741, 286, 659, 174...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_detection_of_rejected_wep_credentials() { let failure = ConnectFailure::AssociationFailure(AssociationFailure { bss_protection: BssProtection::Wep, code: fidl_ieee80211::StatusCode::RefusedUnauthenticatedAccessNotSupported, }); assert!(failure.like...
rust_cleaned_test_functions.jsonl/33060
{ "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, 57505, 3575, 1288, 28303, 1670, 747, 47396, 368, 341, 286, 1077, 7901, 284, 13015, 17507, 486, 63461, 17507, 4346, 778, 2119, 367, 17507, 341, 310, 293, 778, 2540, 39141, 25, 425, 778, 78998, 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_form() { let mut req = TestRequest::with_header( header::CONTENT_TYPE, "application/x-www-form-urlencoded", ).header(header::CONTENT_LENGTH, "11") .finish(); req.payload_mut() .unread_data(Bytes::from_static(b"hello=world"))...
rust_cleaned_test_functions.jsonl/75109
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 322 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7915, 368, 341, 286, 1077, 5206, 4232, 284, 3393, 1900, 486, 4197, 8757, 1006, 310, 4247, 486, 67872, 4189, 345, 310, 330, 5132, 10776, 41242, 8460, 44557, 756, 286, 7457, 2708, 25534, 486, 67872,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ingress_payload_deserialization() { // serialization/deserialization of empty payload. let payload = IngressPayload::default(); let bytes = bincode::serialize(&payload).unwrap(); assert_eq!( bincode::deserialize::<IngressPayload>(&bytes).unwrap(), ...
rust_cleaned_test_functions.jsonl/57728
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59112, 673, 32813, 15768, 50563, 368, 341, 286, 442, 47443, 3446, 288, 50563, 315, 4287, 7729, 624, 286, 1077, 7729, 284, 758, 2483, 29683, 486, 2258, 543, 286, 1077, 5820, 284, 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...
3
#[test] fn test_parse_proposal() { let time = SystemTime::now(); let proposal = parse_proposal( &get_msg_proposal("my_circuit"), time.clone(), to_hex(&public_key()), ); assert_eq!(proposal, get_gameroom_proposal("my_circuit", time.clone())); ...
rust_cleaned_test_functions.jsonl/131059
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 21663, 32556, 368, 341, 286, 1077, 882, 284, 739, 1462, 486, 3328, 543, 286, 1077, 13734, 284, 4715, 21663, 32556, 1006, 310, 609, 455, 6483, 21663, 32556, 445, 2408, 666, 37268, 4461, 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_syn_received_window_scaling() { for scale in 0..14 { let mut s = socket_listen(); send!(s, TcpRepr { control: TcpControl::Syn, seq_number: REMOTE_SEQ, ack_number: None, window_scale: Some(scale), ...
rust_cleaned_test_functions.jsonl/91820
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 679 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51393, 40783, 12571, 79216, 368, 341, 286, 369, 5452, 304, 220, 15, 496, 16, 19, 341, 310, 1077, 5206, 274, 284, 7575, 79286, 543, 310, 3624, 10297, 82, 11, 64876, 693, 649, 341, 394, 2524, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_query_udp_edns() { let addr: SocketAddr = ("8.8.8.8", 53).to_socket_addrs().unwrap().next().unwrap(); let conn = UdpClientConnection::new(addr).unwrap(); let client = SyncClient::new(conn); test_query_edns(client); }
rust_cleaned_test_functions.jsonl/36153
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 69432, 32370, 4412, 368, 341, 262, 1077, 10789, 25, 20954, 13986, 284, 3489, 23, 13, 23, 13, 23, 13, 23, 497, 220, 20, 18, 568, 983, 19555, 2891, 5428, 1005, 15454, 1005, 3600, 1005, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bounty_lifecycle() { let mut context = VMContextBuilder::new(); testing_env!(context.predecessor_account_id(accounts(1)).build()); let mut contract = Contract::new( Config::test_config(), VersionedPolicy::Default(vec![accounts(1).into()]), ...
rust_cleaned_test_functions.jsonl/133947
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 36725, 907, 19517, 368, 341, 286, 1077, 5206, 2266, 284, 17792, 1972, 3297, 486, 931, 543, 286, 7497, 15879, 10297, 2147, 6225, 26911, 269, 13500, 842, 91868, 7, 16, 4579, 5834, 1423, 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_mainnet_beta_cluster_type() { solana_logger::setup_with_default(RUST_LOG_FILTER); let mut config = ClusterConfig { cluster_type: ClusterType::MainnetBeta, node_stakes: vec![100; 1], cluster_lamports: 1_000, validator_configs: make_identical_validator_conf...
rust_cleaned_test_functions.jsonl/31903
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 902 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11027, 4711, 49292, 28441, 1819, 368, 341, 262, 2048, 3362, 27413, 486, 15188, 6615, 9993, 2785, 8553, 8419, 23728, 626, 262, 1077, 5206, 2193, 284, 35380, 2648, 341, 286, 10652, 1819, 25, 35380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_terminal_in_each_set() { let test_str = "123999m11p11179s 8s"; let test = Hand::from(test_str); let test_analyzer = HandAnalyzer::new(&test).unwrap(); let mut status = Status::new(); let settings = Settings::new(); status.has_claimed_open = false; ...
rust_cleaned_test_functions.jsonl/91436
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64309, 1243, 32046, 2602, 368, 341, 286, 1077, 1273, 2895, 284, 330, 16, 17, 18, 24, 24, 24, 76, 16, 16, 79, 16, 16, 16, 22, 24, 82, 220, 23, 82, 876, 286, 1077, 1273, 284, 8536, 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_copy() { let mut r = MemReader::new(vec!(0, 1, 2, 3, 4)); let mut w = MemWriter::new(); copy(&mut r, &mut w).unwrap(); assert_eq!(vec!(0, 1, 2, 3, 4), w.unwrap()); }
rust_cleaned_test_functions.jsonl/119362
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 120 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16096, 368, 341, 286, 1077, 5206, 435, 284, 13550, 5062, 486, 931, 25592, 10297, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 1106, 286, 1077, 5206, 289, 284, 13550, 6492, 486, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_anything_goes() { let expression = "* * * * * * *"; let schedule = Schedule::from_str(expression).unwrap(); println!("All stars: Upcoming fire times for '{}':", expression); for datetime in schedule.upcoming(Utc).take(10) { println!("All stars: -> {}",...
rust_cleaned_test_functions.jsonl/50803
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37248, 1596, 1889, 7072, 368, 341, 286, 1077, 7493, 284, 15630, 353, 353, 353, 353, 353, 353, 876, 286, 1077, 9700, 284, 23512, 486, 1499, 2895, 48330, 568, 15454, 543, 286, 13751, 17223, 2403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_f32x4_basic_ops() { let a = F32x4::new(1.0, 3.0, 5.0, 7.0); let b = F32x4::new(2.0, 2.0, 6.0, 6.0); assert_eq!(a.approx_recip(), F32x4::new(0.99975586, 0.33325195, 0.19995117, 0.14282227)); assert_eq!(a.min(b), F32x4::new(1.0, 2.0, 5.0, 6.0)); assert_eq!(a.max(b), F32x4::new(...
rust_cleaned_test_functions.jsonl/66183
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 514 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 18, 17, 87, 19, 34729, 21959, 368, 341, 262, 1077, 264, 284, 434, 18, 17, 87, 19, 486, 931, 7, 16, 13, 15, 11, 220, 18, 13, 15, 11, 220, 20, 13, 15, 11, 220, 22, 13, 15, 317, 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_valid_chunk_from_bytes() { let data_length: u32 = 42; let chunk_type = "RuSt".as_bytes(); let message_bytes = "This is where your secret message will be!".as_bytes(); let crc: u32 = 2882656334; let chunk_data: Vec<u8> = data_length .to_be_byte...
rust_cleaned_test_functions.jsonl/95804
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 458 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8337, 30539, 5673, 12524, 368, 341, 286, 1077, 821, 5118, 25, 575, 18, 17, 284, 220, 19, 17, 280, 286, 1077, 11879, 1819, 284, 330, 98625, 623, 3263, 300, 12524, 543, 286, 1077, 1943, 12524, 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_stretch_key() { // These example stretched keys were generated using go-ipfs. let sk1 = StretchedKey { iv: vec![0x81, 0xa1, 0x18, 0x8f, 0xd4, 0x42, 0xf, 0x36, 0x2a, 0xe8, 0x9c, 0xb3, 0xde, 0xc8, 0x37, 0xbe], hmac_key: vec![0x26, 0x77, ...
rust_cleaned_test_functions.jsonl/113839
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1255 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 10209, 3097, 368, 341, 286, 442, 4220, 3110, 40298, 6894, 1033, 7907, 1667, 728, 74732, 3848, 624, 286, 1077, 1901, 16, 284, 794, 61737, 1592, 341, 310, 17509, 25, 7486, 20703, 15, 87, 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_network_update() { let os = set_up(); let mut network = os .new_network() .with_admin_state_up(false) .with_name("rust-openstack-integration-new") .with_mtu(1400) .with_description("New network for testing") .create() .expect("Coul...
rust_cleaned_test_functions.jsonl/84686
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 668 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20966, 8882, 368, 341, 262, 1077, 2643, 284, 738, 8237, 1428, 262, 1077, 5206, 3922, 284, 2643, 198, 286, 659, 931, 20966, 741, 286, 659, 4197, 12207, 4387, 8237, 3576, 340, 286, 659, 4197, 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_borrow() { use std::borrow::Borrow; let mut a: SmallVec<[u32; 2]> = SmallVec::new(); a.push(1); assert_eq!(a.borrow(), [1]); a.push(2); assert_eq!(a.borrow(), [1, 2]); a.push(3); assert_eq!(a.borrow(), [1, 2, 3]); }
rust_cleaned_test_functions.jsonl/88161
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 7768, 368, 341, 286, 990, 1460, 486, 71141, 486, 33, 7768, 401, 286, 1077, 5206, 264, 25, 14994, 10050, 66746, 84, 18, 17, 26, 220, 17, 25669, 284, 14994, 10050, 486, 931, 543, 286, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_std_dev() { let mut data = testing::load_data("nist/lottery.txt"); assert_almost_eq!((&data).std_dev(), 291.699727470969, 1e-13); data = testing::load_data("nist/lew.txt"); assert_almost_eq!((&data).std_dev(), 277.332168044316, 1e-12); data = testing::lo...
rust_cleaned_test_functions.jsonl/55243
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 485 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15656, 10433, 368, 341, 286, 1077, 5206, 821, 284, 7497, 486, 1078, 1769, 445, 64759, 14, 9184, 17615, 3909, 797, 286, 2060, 94418, 10714, 0, 42902, 691, 568, 1834, 10433, 1507, 220, 17, 24, 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_decode_str() { let s = [("\"\"", ""), ("\"foo\"", "foo"), ("\"\\\"\"", "\""), ("\"\\b\"", "\x08"), ("\"\\n\"", "\n"), ("\"\\r\"", "\r"), ("\"\\t\"", "\t"), ("\"\\u12ab\"...
rust_cleaned_test_functions.jsonl/6546
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 2895, 368, 341, 286, 1077, 274, 284, 508, 38915, 55853, 72712, 338, 3489, 2105, 7975, 55853, 330, 7975, 4461, 338, 3489, 2105, 3422, 2105, 55853, 15898, 4461, 338, 3489, 2105, 3422, 65, 558...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_printf_special_types() { use std::os::unix::{net::UnixListener, prelude::OsStrExt}; let temp_dir = Builder::new().prefix("example").tempdir().unwrap(); let temp_dir_path = temp_dir.path().to_string_lossy(); let fifo_name = "fifo"; let fifo_path = temp_di...
rust_cleaned_test_functions.jsonl/69251
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 533 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21823, 41629, 9763, 368, 341, 286, 990, 1460, 486, 436, 486, 56646, 22964, 4711, 486, 55832, 2743, 11, 855, 52538, 486, 28867, 2580, 6756, 2315, 286, 1077, 2730, 4334, 284, 20626, 486, 931, 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_vcx_credential_create_with_offer_fails() { settings::set_defaults(); settings::set_config_value(settings::CONFIG_ENABLE_TEST_MODE,"true"); assert_eq!(vcx_credential_create_with_offer( 0, CString::new("test_create").unwrap().into_raw(), ...
rust_cleaned_test_functions.jsonl/7544
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 25844, 666, 30320, 8657, 6615, 67814, 761, 6209, 368, 341, 286, 5003, 486, 746, 42290, 543, 286, 5003, 486, 746, 5332, 3142, 23369, 486, 24652, 14379, 11641, 8414, 1335, 1866, 797, 286, 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