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_proto_schema_parsing() -> Result<(), anyhow::Error> { let mut descriptors = Descriptors::new(); let mut m1 = MessageDescriptor::new(".test.message1"); m1.add_field(FieldDescriptor::new( "name", 1, FieldLabel::Optional, Inter...
rust_cleaned_test_functions.jsonl/122290
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 961 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37689, 25371, 620, 28598, 368, 1464, 5714, 68843, 88964, 486, 1454, 29, 341, 286, 1077, 5206, 47517, 284, 3874, 25705, 486, 931, 543, 286, 1077, 5206, 296, 16, 284, 4856, 11709, 486, 931, 5680, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_33() { assert_eq!(Solution::search(vec![7, 8, 1, 2, 3, 4, 5, 6], 2), 3); assert_eq!( Solution::search( vec![ 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 0, 1, 2, 3, 4, 5, 6, 7, 8 ], 0 ...
rust_cleaned_test_functions.jsonl/108354
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 490 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 18, 18, 368, 341, 286, 2060, 10714, 10297, 36842, 486, 1836, 25592, 20703, 22, 11, 220, 23, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 1125, 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...
1
#[test] fn test_diskwriteable_failure() { struct FailingWriteable {} impl DiskWriteable for FailingWriteable { fn write_to_file(&self, _writer: &mut fs::File) -> Result<(), std::io::Error> { Err(std::io::Error::new(std::io::ErrorKind::Other, "expected failure")) } } let filename = "test_diskw...
rust_cleaned_test_functions.jsonl/125737
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 298 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41687, 4934, 480, 43618, 368, 341, 197, 6472, 434, 14277, 7985, 480, 5613, 197, 197, 6383, 38868, 7985, 480, 369, 434, 14277, 7985, 480, 341, 298, 40095, 3270, 2346, 2458, 2099, 721, 11, 716, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_build_upload_policy_with_file_size_max_limit() -> Result<(), Box<dyn Error>> { let policy = UploadPolicyBuilder::new_policy_for_bucket("test_bucket", &Config::default()) .file_size_limitation(..20) .build(); assert_eq!(policy.file_size_limitation(), (None,...
rust_cleaned_test_functions.jsonl/2364
{ "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, 20801, 21691, 22773, 6615, 2458, 2368, 6345, 14763, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 286, 1077, 4842, 284, 24996, 13825, 3297, 486, 931, 22773, 5478, 38749, 445, 1944, 38749, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_i2c_mock_cloned_done_error() { let expectations = [Transaction::read(0xaa, vec![1, 2])]; let i2c = Mock::new(&expectations); let mut i2c_clone = i2c.clone(); i2c_clone.done(); }
rust_cleaned_test_functions.jsonl/49261
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 121 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5318, 17, 66, 34134, 6794, 19684, 24390, 4096, 368, 341, 286, 1077, 16665, 284, 508, 8070, 486, 878, 7, 15, 43300, 11, 7486, 20703, 16, 11, 220, 17, 2467, 935, 286, 1077, 600, 17, 66, 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...
1
#[test] fn test_bank_update_rewards_determinism() { solana_logger::setup(); // The same reward should be distributed given same credits let expected_capitalization = do_test_bank_update_rewards_determinism(); // Repeat somewhat large number of iterations to expose possible diffe...
rust_cleaned_test_functions.jsonl/2553
{ "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, 35733, 8882, 77997, 814, 16483, 2142, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 442, 576, 1852, 11313, 1265, 387, 4237, 2661, 1852, 20141, 198, 286, 1077, 3601, 16388, 2174, 2022, 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_serialize_info_cpuload() { let attributes: Vec<UciInfoAttribute> = vec![ UciInfoAttribute::CpuLoad(823) ]; let m = UciMessage::Info(attributes); assert_eq!(m.serialize(), "info cpuload 823"); }
rust_cleaned_test_functions.jsonl/19066
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 3109, 39811, 360, 2731, 368, 341, 286, 1077, 8201, 25, 11312, 36397, 5855, 1731, 3907, 29, 284, 7486, 90515, 310, 547, 5855, 1731, 3907, 486, 34, 5584, 5879, 7, 23, 17, 18, 340, 286, 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_cp_with_dirs_t() { let (at, mut ucmd) = at_and_ucmd!(); ucmd.arg("-t") .arg(TEST_COPY_TO_FOLDER) .arg(TEST_HELLO_WORLD_SOURCE) .succeeds(); assert_eq!(at.read(TEST_COPY_TO_FOLDER_FILE), "Hello, World!\n"); }
rust_cleaned_test_functions.jsonl/21237
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 156 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39811, 6615, 44869, 528, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 575, 8710, 21186, 13645, 83, 1138, 286, 659, 858, 50320, 35556, 8650, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_por_circuit_poseidon_top_8_2_4() { // We can handle top-heavy trees with a non-zero subtree arity. test_por_circuit::<TreeTop<PoseidonHasher, U8, U2, U4>>(3, 1_764); }
rust_cleaned_test_functions.jsonl/108259
{ "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, 76628, 666, 37268, 33201, 90456, 10426, 62, 23, 62, 17, 62, 19, 368, 341, 262, 442, 1205, 646, 3705, 1909, 73566, 12408, 448, 264, 2477, 36929, 53464, 79932, 624, 1066, 262, 1273, 76628, 666, 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, 1, 1...
1
#[test] fn test_sync_state_reset_queue() { let m = &GuestMemoryMmap::<()>::from_ranges(&[(GuestAddress(0), 0x10000)]).unwrap(); let mut q = QueueStateSync::new(0x100); q.set_desc_table_address(Some(0x1000), None); q.set_avail_ring_address(Some(0x2000), None); q.set_used_...
rust_cleaned_test_functions.jsonl/103665
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1050 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23008, 4387, 18983, 10841, 368, 341, 286, 1077, 296, 284, 609, 37804, 10642, 44, 2186, 27638, 368, 6831, 1499, 58748, 2099, 9697, 37804, 4286, 7, 15, 701, 220, 15, 87, 16, 15, 15, 15, 15, 7252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_modification_behavior_order() { let tests = vec![ ( ModificationBehavior::Append, ModificationBehavior::Default, Ordering::Less, ), ( ModificationBehavior::Append, Modifica...
rust_cleaned_test_functions.jsonl/36434
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 576 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7480, 2404, 74540, 7869, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 2399, 394, 73855, 22753, 486, 23877, 345, 394, 73855, 22753, 486, 3675, 345, 394, 68621, 486, 27451, 345, 310, 2837, 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_debug_primitive() { // int assert_eq!( format!("{:?}", UnevalCow::<u64>::Borrowed(&1)), "UnevalCow::Borrowed( &1 )" ); assert_eq!( format!("{:?}", UnevalCow::<u64>::Owned(1)), "UnevalCow::Borrowed( &1 )" ); // float assert_eq!( ...
rust_cleaned_test_functions.jsonl/122379
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 465 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15446, 84087, 368, 341, 262, 442, 526, 198, 262, 2060, 10714, 33673, 286, 3561, 88928, 25, 52652, 38683, 831, 89915, 27638, 84, 21, 19, 6831, 33, 7768, 291, 2099, 16, 6965, 286, 330, 55848, 831,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_errors() { let mut router = Router::<()>::build(); router.path("/{value}/", ()); let router = router.finish(); let mut path = Path::new("/name/"); assert!(router.recognize(&mut path).is_some()); let s: Result<Test1, de::value::Error> = ...
rust_cleaned_test_functions.jsonl/36508
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 528 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 20196, 368, 341, 286, 1077, 5206, 9273, 284, 10554, 27638, 368, 6831, 5834, 543, 286, 9273, 3875, 65871, 957, 4472, 497, 49323, 286, 1077, 9273, 284, 9273, 40086, 1428, 286, 1077, 5206, 181...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_incorrect_ciphertext_a() { let sealed_b = seal(Keypolicy::MRENCLAVE, b"MRENCLAVE", b"Mr. Enclave"); unseal(Keypolicy::MRENCLAVE, b"MRENCLAVE", &sealed_b[..2]); }
rust_cleaned_test_functions.jsonl/21554
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 19928, 666, 45043, 4306, 368, 341, 286, 1077, 19046, 880, 284, 25349, 7, 6608, 1082, 8018, 486, 44, 40892, 3140, 9493, 11, 293, 73527, 40892, 3140, 9493, 497, 293, 1, 12275, 13, 2925, 4053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_launch() { let target = input_generator(TEST_INPUT); assert_eq!(launch(Vector2D::new(7, 2), &target), Some(3)); assert_eq!(launch(Vector2D::new(6, 3), &target), Some(6)); assert_eq!(launch(Vector2D::new(9, 0), &target), Some(0)); assert_eq!(launch(Vector2D...
rust_cleaned_test_functions.jsonl/85953
{ "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, 51617, 368, 341, 286, 1077, 2169, 284, 1946, 25813, 50320, 21022, 317, 286, 2060, 10714, 10297, 33499, 20258, 17, 35, 486, 931, 7, 22, 11, 220, 17, 701, 609, 5657, 701, 4329, 7, 18, 1106, 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_bpf_loader_upgradeable_close() { let instruction = bincode::serialize(&UpgradeableLoaderInstruction::Close).unwrap(); let loader_id = bpf_loader_upgradeable::id(); let invalid_authority_address = Pubkey::new_unique(); let authority_address = Pubkey::new_unique(); ...
rust_cleaned_test_functions.jsonl/55716
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3429 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 15897, 22139, 67794, 480, 12704, 368, 341, 286, 1077, 7600, 284, 9544, 1851, 486, 24166, 2099, 43861, 480, 9181, 16664, 486, 7925, 568, 15454, 543, 286, 1077, 16047, 842, 284, 293, 15897, 221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_preferred_vertical_position3() { let area = gdk::Rectangle { x: 0, y: 0, width: 300, height: 35, }; let pos = gdk::Rectangle { x: 0, y: 0, width: 300, hei...
rust_cleaned_test_functions.jsonl/14598
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 308 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 10442, 5554, 61203, 9661, 18, 368, 341, 16885, 286, 1077, 3082, 284, 89939, 486, 21095, 341, 310, 856, 25, 220, 15, 345, 310, 379, 25, 220, 15, 345, 310, 2374, 25, 220, 18, 15, 15, 345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_both_set() { let toml = r#" unstable_features = true merge_imports = true imports_granularity = "Preserve" "#; let config = Config::from_toml(toml, Path::new("")).unwrap(); assert_eq!(config.imports_g...
rust_cleaned_test_functions.jsonl/130642
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88819, 2602, 368, 341, 310, 1077, 311, 1014, 284, 435, 2, 698, 394, 44211, 14965, 284, 830, 198, 394, 10880, 18434, 82, 284, 830, 198, 394, 15202, 15682, 276, 28979, 284, 330, 14367, 5852, 698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_hunk_header_style_omit() { let config = integration_test_utils::make_config_from_args(&["--hunk-header-style", "omit"]); let output = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, &config); let output = strip_ansi_codes(&output); assert!(!out...
rust_cleaned_test_functions.jsonl/70093
{ "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, 1523, 3122, 8757, 15117, 62, 77968, 368, 341, 286, 1077, 2193, 4035, 310, 17590, 4452, 17309, 486, 6927, 5332, 5673, 8384, 2099, 1183, 313, 71, 3122, 9351, 11297, 497, 330, 77968, 15049, 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_from_affine_shear_x_does_not_change_last_coordinate() { let shear_x_with_y = 5; let shear_x_with_z = 11; let matrix = Matrix4x4::from_affine_shear_x(shear_x_with_y, shear_x_with_z); let unit_w = Vector4::unit_w(); let expected = unit_w; let result ...
rust_cleaned_test_functions.jsonl/129111
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 48914, 482, 643, 86060, 3212, 96374, 7913, 15947, 12195, 68649, 368, 341, 286, 1077, 64244, 3212, 6615, 4178, 284, 220, 20, 280, 286, 1077, 64244, 3212, 6615, 6415, 284, 220, 16, 16, 280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_two_transposes() { let mut input_data = HashMap::new(); let data = (0..2 * 3 * 4).map(|x| x as f32).collect::<Vec<f32>>(); input_data.insert("X".to_string(), data.as_slice().into()); // Model: X -> Transpose -> Y -> Transpose -> Z; X==Z let model = model(graph( vec![...
rust_cleaned_test_functions.jsonl/59611
{ "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, 23241, 7965, 8285, 368, 341, 262, 1077, 5206, 1946, 1769, 284, 10528, 486, 931, 543, 262, 1077, 821, 284, 320, 15, 496, 17, 353, 220, 18, 353, 220, 19, 568, 2186, 22428, 87, 91, 856, 438, 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_unpack_bits_by_bit() { let data = [0x00u8, 0x01, 0x00, 0x11]; let ret = [false, false, false, true, false, false, true, true]; let buf = unpack_bits_by_bit(&data).unwrap(); assert_eq!(buf.as_slice(), ret) }
rust_cleaned_test_functions.jsonl/62507
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54889, 20034, 3710, 13996, 368, 341, 286, 1077, 821, 284, 508, 15, 87, 15, 15, 84, 23, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 16, 16, 935, 286, 1077, 2112, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vec3_ops() { let a = vec3(1.0, 2.0, 3.0); assert_eq!((2.0, 4.0, 6.0), (a + a).into()); assert_eq!((0.0, 0.0, 0.0), (a - a).into()); assert_eq!((1.0, 4.0, 9.0), (a * a).into()); assert_eq!((2.0, 4.0, 6.0), (a * 2.0).into()); assert_eq!((1.0, 1.0, 1.0), (a / a).into()); ...
rust_cleaned_test_functions.jsonl/48586
{ "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, 13251, 18, 21959, 368, 341, 262, 1077, 264, 284, 7486, 18, 7, 16, 13, 15, 11, 220, 17, 13, 15, 11, 220, 18, 13, 15, 317, 262, 2060, 10714, 0, 1188, 17, 13, 15, 11, 220, 19, 13, 15, 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_path_to_relative() { let root = "/tmp"; assert_eq!( &format!("{}", path_to_relative("/tmp/satu/dua", &root).display()), "satu/dua" ); assert_eq!( &format!( "{}", path_to_relative("/tmp/satu/dua/ti...
rust_cleaned_test_functions.jsonl/49960
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 252 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2638, 2346, 29286, 368, 341, 286, 1077, 3704, 284, 3521, 5173, 876, 286, 2060, 10714, 33673, 310, 609, 2243, 79878, 1815, 2346, 29286, 4283, 5173, 2687, 35309, 14, 1054, 64, 497, 609, 2888, 568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_request_parser_bad_method() { let mut buf = BytesMut::from("!12%()+=~$ /get HTTP/1.1\r\n\r\n"); expect_parse_err!(&mut buf); }
rust_cleaned_test_functions.jsonl/22284
{ "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, 25888, 7893, 18517, 34199, 9032, 368, 341, 286, 1077, 5206, 6607, 284, 30024, 51440, 486, 1499, 85166, 16, 17, 4, 368, 8496, 93, 3, 608, 455, 10130, 14, 16, 13, 16, 12016, 1699, 12016, 1699, 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
#[test] fn test_matches_table_name_predicate() { let mut chunk = Chunk::new(42); let dictionary = &mut chunk.dictionary; let mut table = Table::new(dictionary.lookup_value_or_insert("h2o")); let lp_lines = vec![ "h2o,state=MA,city=Boston temp=70.4 100", "...
rust_cleaned_test_functions.jsonl/13915
{ "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, 38344, 5237, 1269, 97474, 368, 341, 286, 1077, 5206, 11879, 284, 45513, 486, 931, 7, 19, 17, 317, 286, 1077, 10997, 284, 609, 6984, 11879, 82136, 280, 286, 1077, 5206, 1965, 284, 6633, 486, 931,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_0507_example_1() { let num = 28; let result = true; assert_eq!(Solution::check_perfect_number(num), result); }
rust_cleaned_test_functions.jsonl/47236
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 15, 20, 15, 22, 39304, 62, 16, 368, 341, 286, 1077, 1629, 284, 220, 17, 23, 280, 286, 1077, 1102, 284, 830, 401, 286, 2060, 10714, 10297, 36842, 486, 2028, 5678, 3751, 5500, 8068, 701, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_color_sequence_wrappers() { let test0 = "\x1b2mhellomynamekeyes\x1b2m"; // BEGIN: \x1b END: m let test1 = "\x1b]330;mlol\x1b]0m"; // BEGIN: \x1b END: m let test2 = "\u{1b}J"; // BEGIN: \x1b END: J let test3 = "OH NO"; // BEGIN: O END: O let ...
rust_cleaned_test_functions.jsonl/1882
{ "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, 6714, 23735, 44074, 27821, 368, 341, 286, 1077, 1273, 15, 284, 2917, 87, 16, 65, 17, 51916, 613, 5533, 606, 792, 288, 3462, 16, 65, 17, 76, 5123, 442, 22203, 25, 1124, 87, 16, 65, 257, 11176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fork() { let rpc_url = std::env::var("ETH_RPC_URL"); if rpc_url.is_err() { eprintln!("Skipping test, ETH_RPC_URL is not set."); return } let mut runner = forked_runner(&(rpc_url.unwrap())); let suite_result = runner.test(&Filter::ne...
rust_cleaned_test_functions.jsonl/48983
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 469 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 669, 368, 341, 286, 1077, 35596, 2903, 284, 1460, 486, 3160, 486, 947, 445, 7625, 76022, 8000, 797, 286, 421, 35596, 2903, 2079, 9266, 368, 341, 310, 384, 33655, 17223, 85945, 1273, 11, 377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parse_host() { parse_host("localhost:1234").unwrap_err(); parse_host("localhost").unwrap(); parse_host("127.0.0.0:1234").unwrap_err(); parse_host("127.0.0.0").unwrap(); }
rust_cleaned_test_functions.jsonl/3524
{ "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, 21039, 12848, 368, 341, 286, 4715, 12848, 445, 8301, 25, 16, 17, 18, 19, 1827, 15454, 9266, 543, 286, 4715, 12848, 445, 8301, 1827, 15454, 543, 286, 4715, 12848, 445, 16, 17, 22, 13, 15, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_numeric_invalid_string() { let mut params = Map::new(); params.assign("numeric", Value::String("foo".to_owned())).ok(); let mut rules = BTreeMap::new(); rules.insert("numeric", vec![Rule::Numeric]); let result = validate(&rules, params); assert!(result.is_err()); a...
rust_cleaned_test_functions.jsonl/74440
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29418, 31433, 3904, 368, 341, 262, 1077, 5206, 3628, 284, 5027, 486, 931, 543, 262, 3628, 17870, 445, 19600, 497, 5162, 486, 703, 445, 7975, 3263, 983, 51973, 34670, 562, 1428, 262, 1077, 5206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_read_beyond_max_offset_returns_error() { let (_ramdisk, remote_block_device) = make_ramdisk(); let mut cache = Cache::new(remote_block_device).expect("Cache::new failed"); let mut buf = [0u8; 2]; cache.read_at(&mut buf, RAMDISK_SIZE).expect_err("read_at succeeded"...
rust_cleaned_test_functions.jsonl/96359
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 880, 22650, 6345, 6917, 58900, 4096, 368, 341, 286, 1077, 5453, 2396, 30496, 11, 8699, 7113, 9204, 8, 284, 1281, 62124, 30496, 543, 286, 1077, 5206, 6500, 284, 19479, 486, 931, 61381, 7113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { assert_eq!( parse("v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com").unwrap(), vec![ Tag { name: "v".to_string(), value: "DMARC1".to_string(), raw_value: "DMARC1".to_string() ...
rust_cleaned_test_functions.jsonl/127877
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 511 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 445, 85, 28, 8395, 46472, 16, 26, 281, 28, 6697, 26, 89910, 28, 38526, 40422, 5612, 66, 31, 21732, 12204, 905, 1827, 15454, 3148, 310, 7486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_error_enums() { let ix_index = 1; let custom_error = 42; for error in tx_by_addr::TransactionErrorType::into_enum_iter() { if error != tx_by_addr::TransactionErrorType::InstructionError { let tx_by_addr_error = tx_by_addr::TransactionError { ...
rust_cleaned_test_functions.jsonl/38909
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1548 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4096, 6205, 6237, 368, 341, 286, 1077, 26864, 3560, 284, 220, 16, 280, 286, 1077, 2526, 4096, 284, 220, 19, 17, 280, 286, 369, 1465, 304, 9854, 3710, 7387, 486, 8070, 1454, 929, 486, 18122, 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...
5
#[test] fn test_push() { let (tx_out_store, env) = init_tx_out_store(); let tx_outs = get_tx_outs(100); let mut rw_transaction: RwTransaction = env.begin_rw_txn().unwrap(); assert_eq!(0, tx_out_store.num_tx_outs(&rw_transaction).unwrap()); for (i, tx_out) in tx_outs.ite...
rust_cleaned_test_functions.jsonl/5271
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 501 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14218, 368, 341, 286, 1077, 320, 3998, 6068, 14809, 11, 6105, 8, 284, 2930, 17805, 6068, 14809, 543, 286, 1077, 9854, 6068, 82, 284, 633, 17805, 6068, 82, 7, 16, 15, 15, 626, 286, 1077, 5206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_term_scorer_max_score() -> crate::Result<()> { let bm25_weight = Bm25Weight::for_one_term(3, 6, 10.0); let mut term_scorer = TermScorer::create_for_test( &[(2, 3), (3, 12), (7, 8)], &[0, 0, 10, 12, 0, 0, 0, 100], bm25_weight, ); ...
rust_cleaned_test_functions.jsonl/94101
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 582 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17464, 643, 6005, 261, 6345, 10405, 368, 1464, 17717, 486, 2077, 71698, 341, 286, 1077, 34868, 17, 20, 15876, 284, 425, 76, 17, 20, 8295, 486, 1958, 11667, 17464, 7, 18, 11, 220, 21, 11, 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_works_as_the_old_naive_implementation() { let filter = FilterList::All; let texts = [ "Tyrkiske språk eller turkotatariske språk er en språkgruppe bestående av minst 35 språk", "René Descartes est un mathématicien, physicien et philosophe français, né le 3...
rust_cleaned_test_functions.jsonl/34308
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11498, 82, 11898, 16068, 21108, 58631, 533, 62, 14369, 368, 341, 286, 1077, 4051, 284, 12339, 852, 486, 2403, 280, 286, 1077, 21984, 284, 2278, 310, 330, 51, 10920, 74, 32209, 8151, 3785, 74, 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...
4
#[test] fn test_sha1_to_hex_neon() { use super::sha1_to_hex_neon; let data: &[u8; 20] = b"0123456789ABCDEFGHIJ"; let mut result: Vec<u8> = vec![0x0; 40]; unsafe { sha1_to_hex_neon(data, &mut result); } let hex_string = unsafe { String::from_utf8_unchec...
rust_cleaned_test_functions.jsonl/110921
{ "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, 48836, 16, 2346, 32655, 13925, 263, 368, 341, 286, 990, 2256, 486, 15247, 16, 2346, 32655, 13925, 263, 280, 286, 1077, 821, 25, 44590, 84, 23, 26, 220, 17, 15, 60, 284, 293, 1, 15, 16, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fuzz() { let mut runner = runner(); let suite_result = runner.test(&Filter::new(".*", ".*", ".*fuzz"), None, true).unwrap(); for (_, SuiteResult { test_results, .. }) in suite_result { for (test_name, result) in test_results { let logs = decod...
rust_cleaned_test_functions.jsonl/48981
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 662 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 8889, 368, 341, 286, 1077, 5206, 22259, 284, 22259, 543, 286, 1077, 16182, 5287, 284, 22259, 5958, 2099, 5632, 486, 931, 445, 4908, 497, 330, 4908, 497, 330, 4908, 69, 8889, 3975, 2240, 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...
4
#[test] fn test_parse_formatted_text() { let p = DefaultTelegramParser::new(); let tests = vec![ ( r#"{"@type":"formattedText","@extra":"","text":"Изображение из пятидесяти линий.\nНаткнулся на скрипт, который генерирует такие изображения вот тут.\nЛожите рядом со скр...
rust_cleaned_test_functions.jsonl/91264
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1580 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 86610, 4326, 368, 341, 286, 1077, 281, 284, 7899, 72244, 6570, 486, 931, 543, 286, 1077, 7032, 284, 7486, 90515, 310, 2399, 394, 435, 55543, 4913, 31, 1313, 3252, 49878, 1178, 2198, 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...
2
#[test] fn test_unit_littleendian() { let mut storage = vec![0; 1024]; type Field1 = PrimitiveField<(), LittleEndian, 5>; type Field2 = PrimitiveField<(), LittleEndian, 20>; Field1::write(&mut storage, ()); Field2::write(&mut storage, ()); assert_eq!((), Field1...
rust_cleaned_test_functions.jsonl/35742
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14832, 907, 2377, 408, 1103, 368, 341, 286, 1077, 5206, 5819, 284, 7486, 20703, 15, 26, 220, 16, 15, 17, 19, 4821, 286, 943, 8601, 16, 284, 51460, 1877, 68843, 14671, 43231, 11, 220, 20, 10133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_checked_sum_for_capitalization_overflow() { assert_eq!( AccountsDb::checked_sum_for_capitalization(vec![1, u64::max_value()].into_iter()), 3 ); }
rust_cleaned_test_functions.jsonl/1405
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56456, 10160, 5478, 16388, 2174, 2022, 79073, 368, 341, 286, 2060, 10714, 33673, 310, 40655, 7994, 486, 7549, 10160, 5478, 16388, 2174, 2022, 25592, 20703, 16, 11, 575, 21, 19, 486, 2810, 3142, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_for_each() { let desc = "tr(acc0, { multi_a(3, acc10, acc11, acc12), { and_v( v:multi_a(2, acc10, acc11, acc12), after(10) ), and_v( v:multi_a(1, acc10, acc11, ac12), aft...
rust_cleaned_test_functions.jsonl/101544
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 428 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5478, 32046, 368, 341, 286, 1077, 6560, 284, 330, 376, 48455, 15, 11, 341, 310, 7299, 4306, 7, 18, 11, 1029, 16, 15, 11, 1029, 16, 16, 11, 1029, 16, 17, 701, 341, 1060, 323, 2273, 1006, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_eval_string_concatenation() { let input = "\"Hello\" + \" \" + \"World!\""; assert_eq!(eval(input), Object::String(String::from("Hello World!"))); }
rust_cleaned_test_functions.jsonl/84226
{ "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, 21296, 3904, 57478, 268, 367, 368, 341, 262, 1077, 1946, 284, 15898, 9707, 2105, 488, 7245, 7245, 488, 7245, 10134, 0, 95349, 262, 2060, 10714, 10297, 14170, 5384, 701, 3002, 486, 703, 2242, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_char_at() { let s = "ศไทย中华Việt Nam"; let v = vec!['ศ','ไ','ท','ย','中','华','V','i','ệ','t',' ','N','a','m']; let mut pos = 0; for ch in v.iter() { assert!(s.char_at(pos) == *ch); pos += ch.to_string().len(); } }
rust_cleaned_test_functions.jsonl/2458
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9232, 3752, 368, 341, 286, 1077, 274, 284, 330, 123863, 125451, 100849, 35544, 124382, 29974, 876, 286, 1077, 348, 284, 7486, 0, 677, 123863, 1844, 49756, 1844, 35884, 1844, 34509, 1844, 15946, 1844...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_matrix_multiplication() { test_cases().iter().for_each(|test| { let result = test.a_mat * test.b_mat; let expected = test.expected; assert_eq!(result, expected); }) }
rust_cleaned_test_functions.jsonl/128962
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 124 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10193, 91802, 1693, 368, 341, 286, 1273, 41427, 1005, 2015, 1005, 1958, 32046, 22428, 1944, 91, 341, 310, 1077, 1102, 284, 1273, 5849, 16610, 353, 1273, 948, 16610, 280, 310, 1077, 3601, 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
#[test] fn test_connection_reconnect_timeout() { let transport_builder = TestTransport::new(); let timeout = Duration::from_secs(10); ConnectionBuilder::with_transport(Box::new(transport_builder.clone())) .reconnect_timeout(timeout); assert_eq!(*transport_builder.re...
rust_cleaned_test_functions.jsonl/126116
{ "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, 15866, 1288, 6459, 20537, 368, 341, 286, 1077, 7557, 28532, 284, 3393, 27560, 486, 931, 543, 286, 1077, 9632, 284, 21045, 486, 1499, 68718, 7, 16, 15, 626, 286, 11032, 3297, 486, 4197, 46398, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_key_provider_input() { #[derive(Debug)] struct TestData { input: Vec<u8>, result: Result<KeyProviderInput>, } let serde_eof_error = "EOF while parsing a value at line 1 column 0"; let default_input = KeyProviderInput::default(); ...
rust_cleaned_test_functions.jsonl/83241
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 29518, 5898, 368, 341, 286, 11506, 27098, 42618, 5563, 286, 2036, 93200, 341, 310, 1946, 25, 11312, 34837, 23, 12520, 310, 1102, 25, 5714, 42003, 5179, 2505, 12520, 286, 555, 286, 1077, 6157...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_matrix() { let mut m = Matrix::new(3, 4, 0.0); m[(0, 0)] = 1.0; m[(1, 0)] = 2.0; m[(2, 3)] = 3.0; assert_eq!(m[(0, 0)], 1.0); assert_eq!(m[(0, 1)], 0.0); assert_eq!(m[(1, 0)], 2.0); assert_eq!(m[(2, 3)], 3.0); assert_eq!(...
rust_cleaned_test_functions.jsonl/3713
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 318 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10193, 368, 341, 286, 1077, 5206, 296, 284, 11631, 486, 931, 7, 18, 11, 220, 19, 11, 220, 15, 13, 15, 626, 286, 296, 9697, 15, 11, 220, 15, 7252, 284, 220, 16, 13, 15, 280, 286, 296, 969...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_t() { let mut t = StudentT::new(11.0); let mut rng = task_rng(); for _ in range(0, 1000) { t.sample(&mut rng); t.ind_sample(&mut rng); } }
rust_cleaned_test_functions.jsonl/89953
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 368, 341, 286, 1077, 5206, 259, 284, 11726, 51, 486, 931, 7, 16, 16, 13, 15, 317, 286, 1077, 5206, 28422, 284, 3383, 66849, 543, 286, 369, 716, 304, 2088, 7, 15, 11, 220, 16, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_part1() { assert_eq!(part1(18), Cell(33, 45)); assert_eq!(part1(42), Cell(21, 61)); }
rust_cleaned_test_functions.jsonl/32461
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 60 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 16, 368, 341, 262, 2060, 10714, 10297, 4480, 16, 7, 16, 23, 701, 13972, 7, 18, 18, 11, 220, 19, 20, 1106, 262, 2060, 10714, 10297, 4480, 16, 7, 19, 17, 701, 13972, 7, 17, 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
#[test] fn test_banks_leak() { fn add_lotsa_stake_accounts(genesis_config: &mut GenesisConfig) { const LOTSA: usize = 4_096; (0..LOTSA).for_each(|_| { let pubkey = solana_sdk::pubkey::new_rand(); genesis_config.add_account( pub...
rust_cleaned_test_functions.jsonl/2616
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1339 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 4039, 11751, 585, 368, 341, 286, 5168, 912, 907, 2412, 64, 1261, 726, 55665, 36884, 13774, 5332, 25, 609, 6984, 40788, 2648, 8, 341, 310, 733, 53360, 7778, 25, 22301, 284, 220, 19, 62, 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_as_master_with_invalid_block() { let sender_id = sender_id(); // invalid block let candidate_block = Block::new(hex::decode("00000020ed658cc40670cceda23bb0b614821fe6d48a41d107d19f3f3a5608ad3d483092b151160ab71133b428e1f62eaeb598ae858ff66017c99601f29088b7c64a481d6284e145d29...
rust_cleaned_test_functions.jsonl/99675
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 561 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11898, 24582, 6615, 31433, 7113, 368, 341, 286, 1077, 4646, 842, 284, 4646, 842, 543, 286, 442, 8318, 2504, 198, 286, 1077, 9144, 7113, 284, 8362, 486, 931, 44660, 486, 18196, 445, 15, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_verify_padded_pieces() { let sector_size = SectorSize(32 * 128); let pad = zero_padding(UnpaddedBytesAmount(127)).unwrap(); let pieces = vec![ PieceInfo::new([1u8; 32], UnpaddedBytesAmou...
rust_cleaned_test_functions.jsonl/12284
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1921 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 620, 16828, 83479, 368, 341, 16885, 16885, 73363, 23459, 286, 1077, 10486, 2368, 284, 40724, 1695, 7, 18, 17, 353, 220, 16, 17, 23, 317, 286, 1077, 11016, 284, 7168, 40726, 49289, 79, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_type_empty() { let te = TestEnv::new(&["dir_empty", "dir_nonempty"], &[]); create_file_with_size(te.test_root().join("0_bytes.foo"), 0); create_file_with_size(te.test_root().join("5_bytes.foo"), 5); create_file_with_size(te.test_root().join("dir_nonempty").join("2_bytes.foo"), ...
rust_cleaned_test_functions.jsonl/10882
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 327 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1819, 15124, 368, 341, 262, 1077, 1013, 284, 3393, 14359, 486, 931, 2099, 1183, 3741, 15124, 497, 330, 3741, 21637, 3194, 7914, 609, 1294, 626, 262, 1855, 2458, 6615, 2368, 71847, 5958, 12993, 100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_lz4_compress_decompress_1_byte() { let buf = vec![0x1u8]; let compressed = lz4_compress(&buf).unwrap(); let mut decompressed = vec![0; buf.len()]; let sz = decompress( &compressed, None, decompressed.as_mut_slice(), ...
rust_cleaned_test_functions.jsonl/106791
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 244 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 89, 19, 87845, 2259, 38360, 62, 16, 19737, 368, 341, 286, 1077, 6607, 284, 7486, 20703, 15, 87, 16, 84, 23, 935, 286, 1077, 30649, 284, 95982, 19, 87845, 2099, 5909, 568, 15454, 543, 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_url_2() { test_url("/fileadmin/bestanden-2016/_processed_/5/5/csm_Echte_vriendschap_Vanaf_de_eerste_dag_van_hun_studie_zijn_Inge_en_Julia_vrjendinnep_2_8260<c0281.jtg"); }
rust_cleaned_test_functions.jsonl/23710
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2903, 62, 17, 368, 341, 286, 1273, 2903, 4283, 1192, 2882, 3470, 477, 61700, 12, 17, 15, 16, 21, 19632, 34022, 50295, 20, 14, 20, 2899, 3563, 2089, 38486, 2273, 12067, 92319, 2334, 276, 2577, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sanitize_unsupported_transaction_version() { let versioned_tx = VersionedTransaction { signatures: vec![Signature::default()], message: VersionedMessage::V0(v0::Message { header: MessageHeader { num_required_signatures: 1, ...
rust_cleaned_test_functions.jsonl/6343
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 396 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 58652, 4907, 18216, 28884, 9438, 368, 341, 286, 1077, 2319, 291, 17805, 284, 6079, 291, 8070, 341, 310, 32628, 25, 7486, 20703, 25088, 486, 2258, 73845, 310, 1943, 25, 6079, 291, 2052, 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_txn_store_rawkv_api_version() { let test_data = vec![ (ApiVersion::V1, ApiVersion::V1, TIDB_KEY_CASE, true), (ApiVersion::V1, ApiVersion::V1, TXN_KEY_CASE, true), (ApiVersion::V1, ApiVersion::V1, RAW_KEY_CASE, true), (ApiVersion::V1ttl, ApiVersion::V1...
rust_cleaned_test_functions.jsonl/37893
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 92299, 14809, 16067, 43408, 11697, 9438, 368, 341, 262, 1077, 1273, 1769, 284, 7486, 90515, 1789, 286, 320, 6563, 5637, 486, 53, 16, 11, 13443, 5637, 486, 53, 16, 11, 350, 915, 33, 6600, 28540, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_lazy_melt() { let df = get_df(); let args = MeltArgs { id_vars: vec!["petal.width".to_string(), "petal.length".to_string()], value_vars: vec!["sepal.length".to_string(), "sepal.width".to_string()], variable_name: None, value_name: None, }; let ou...
rust_cleaned_test_functions.jsonl/13780
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49646, 717, 3818, 368, 341, 262, 1077, 6764, 284, 633, 10894, 1428, 262, 1077, 2827, 284, 386, 3818, 4117, 341, 286, 877, 11168, 25, 7486, 0, 1183, 6862, 278, 5441, 3263, 983, 3904, 1507, 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_single_incorrect_case_diagnostic_in_function_name_issue_6970() { let input = r#"fn FOO$0() {}"#; let expected = r#"fn foo() {}"#; let (analysis, file_position) = fixture::position(input); let diagnostics = analysis .diagnostics(&DiagnosticsConfig::def...
rust_cleaned_test_functions.jsonl/34401
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 1243, 19928, 19096, 29477, 11953, 1243, 9174, 1269, 53340, 62, 21, 24, 22, 15, 368, 341, 286, 1077, 1946, 284, 435, 55543, 8822, 434, 19499, 3, 15, 368, 4687, 57676, 280, 286, 1077, 3601,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_read_ndarray() { let dir = tempdir::TempDir::new("rust_n5_ndarray_tests").unwrap(); let n = N5Filesystem::open_or_create(dir.path()) .expect("Failed to create N5 filesystem"); let block_size = smallvec![3, 4, 2, 1]; let data_attrs = DatasetAttributes::new( ...
rust_cleaned_test_functions.jsonl/2696
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 652 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 6443, 43544, 1653, 368, 1476, 262, 1077, 5419, 284, 2730, 3741, 486, 12151, 6184, 486, 931, 445, 35788, 1089, 20, 43544, 1653, 32509, 1827, 15454, 1428, 262, 1077, 308, 284, 451, 20, 1703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rng_seeded() { let s = task_rng().gen_vec::<uint>(256); let mut ra: StdRng = SeedableRng::from_seed(s.as_slice()); let mut rb: StdRng = SeedableRng::from_seed(s.as_slice()); assert_eq!(ra.gen_ascii_str(100u), rb.gen_ascii_str(100u)); }
rust_cleaned_test_functions.jsonl/46784
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 158 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15656, 66849, 3453, 29935, 368, 341, 286, 1077, 274, 284, 3383, 66849, 1005, 4370, 13251, 27638, 2496, 2235, 17, 20, 21, 317, 286, 1077, 5206, 15122, 25, 42517, 49, 968, 284, 35822, 480, 49, 968...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_string_handling() { let gen_code = parse_code( "test_string_handling", r#" foreigner_class!(class Foo { self_type Foo; constructor Foo::new(_: i32) -> Foo; method Foo::f(&self, _: i32, _: i32, _: String) -> String; }); "#, &[ForeignLang::Java, ForeignLang:...
rust_cleaned_test_functions.jsonl/71642
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 438 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3904, 75642, 368, 341, 262, 1077, 4081, 4136, 284, 4715, 4136, 1006, 286, 330, 1944, 3904, 75642, 756, 286, 435, 2, 698, 28443, 261, 4790, 10297, 1040, 33428, 341, 262, 656, 1819, 33428, 280, 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_fr_from_into_repr() { // r + 1 should not be in the field assert!(Fr::from_repr(FrRepr([0xffffffff00000002, 0x53bda402fffe5bfe, 0x3339d80809a1d805, 0x73eda753299d7d48])).is_err()); // r should not be in the field assert!(Fr::from_repr(Fr::char()).is_err()); // Multiply some...
rust_cleaned_test_functions.jsonl/66333
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 670 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41537, 5673, 45514, 68535, 368, 341, 262, 442, 435, 488, 220, 16, 1265, 537, 387, 304, 279, 2070, 198, 262, 2060, 10297, 22560, 486, 1499, 68535, 7832, 81, 693, 649, 2561, 15, 41798, 15, 15, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_eval_let() -> Result<(), EvalError> { let source_code = "let a = 2 in let b = 4 in if a < b then if a > b then 1 else (b - a) * 4 else 4;;"; let result = interpret(source_code, false, false); assert_eq!(result, vec![ExprVal::I64(8)],); Ok(()) }
rust_cleaned_test_functions.jsonl/41115
{ "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, 21296, 62, 1149, 368, 1464, 5714, 68843, 58239, 1454, 29, 341, 286, 1077, 2530, 4136, 4035, 310, 330, 1149, 264, 284, 220, 17, 304, 1077, 293, 284, 220, 19, 304, 421, 264, 366, 293, 1221, 421,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_simple_before_sunrise() { let before_sunrise_at_local = NaiveDateTime::new( NaiveDate::from_ymd(2020, 3, 18), NaiveTime::from_hms(3, 28, 33)); let sun_position_times = sun_position_times(&before_sunrise_at_local); assert_eq!(false, ...
rust_cleaned_test_functions.jsonl/134728
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 267 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 23708, 86623, 31509, 368, 341, 286, 1077, 1573, 86623, 31509, 3752, 13564, 284, 12812, 533, 7689, 486, 931, 1006, 310, 12812, 533, 1916, 486, 1499, 62, 1600, 67, 7, 17, 15, 17, 15, 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_add_n_inplace() { let mut v = vec![1]; add_n_inplace(&mut v, 2); assert_eq!(v, vec![3]); }
rust_cleaned_test_functions.jsonl/6482
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 1089, 1243, 2007, 368, 972, 286, 1077, 5206, 348, 284, 7486, 20703, 16, 5960, 286, 912, 1089, 1243, 2007, 2099, 6984, 348, 11, 220, 17, 736, 286, 2060, 10714, 10297, 85, 11, 7486, 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
#[test] fn test_bytes_into_fr_into_bytes() { bytes_fr_test( [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, ], true, ); bytes_fr_test( /...
rust_cleaned_test_functions.jsonl/19231
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 900 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12524, 45514, 41537, 45514, 12524, 368, 341, 286, 5820, 41537, 4452, 1006, 310, 2278, 394, 220, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 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_basic_auth_no_password() { let mut headers = Headers::new(); headers.set(Authorization(Basic { username: "Aladdin".to_owned(), password: None })); assert_eq!(headers.to_string(), "Authorization: Basic QWxhZGRpbjo=\r\n".to_owned()); }
rust_cleaned_test_functions.jsonl/31564
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 14014, 6536, 10122, 368, 341, 286, 1077, 5206, 7102, 284, 21426, 486, 931, 543, 286, 7102, 980, 4346, 1553, 2022, 5349, 5971, 314, 5934, 25, 330, 2101, 97006, 3263, 983, 51973, 1507, 3552, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_schema_deserialize_succeeds() { let _setup = SetupMocks::init(); let cb = return_types_u32::Return_U32_U32::new().unwrap(); let err = vcx_schema_deserialize(cb.command_handle, CString::new(SCHEMA_WITH_VERSION).unwrap().into_raw(), Some(cb.get_callback())); as...
rust_cleaned_test_functions.jsonl/118203
{ "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, 2273, 25844, 25371, 15768, 9050, 643, 29264, 82, 368, 341, 286, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 1428, 286, 1077, 9858, 284, 470, 9763, 7300, 18, 17, 486, 5598, 6665, 18, 17, 6665...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_g1_projective_curve() { curve_tests::<G1Projective>(); let byte_size = <G1Affine as Zero>::zero().serialized_size(); sw_curve_serialization_test::<g1::Parameters>(byte_size); }
rust_cleaned_test_functions.jsonl/89535
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 16, 16352, 533, 43407, 368, 341, 262, 15655, 32509, 27638, 38, 16, 7849, 533, 10448, 262, 1077, 4922, 2368, 284, 366, 38, 16, 25841, 482, 438, 18306, 6831, 14154, 1005, 75277, 2368, 543, 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
#[test] fn test_filter_qemu_cmdline_ko_no_guest_token() { let cmdline = "file=/var/lib/libvirt/qemu/domain-1-fedora33/master-key.aes-object-Sfuest=fedora33,debug-threads=on-name/usr/bin/qemu-system-x86_64"; assert_eq!(filter_qemu_cmdline(cmdline), None); }
rust_cleaned_test_functions.jsonl/121124
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 8976, 33063, 11684, 1056, 4698, 78, 6536, 62739, 6458, 368, 341, 286, 1077, 94106, 284, 330, 1192, 23286, 947, 8194, 8194, 47381, 33894, 33063, 71972, 12, 16, 78000, 6215, 18, 18, 23303, 161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_os2_family_class() { let c1 = OS2FamilyClass { class_id: 14, subclass_id: 15 }; assert_tokens( &c1, &[Token::Seq { len: Some(2) }, Token::U8(14), Token::U8(15), Token::SeqEnd], ); }
rust_cleaned_test_functions.jsonl/126997
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75861, 450, 29387, 17, 26823, 4790, 368, 341, 286, 1077, 272, 16, 284, 10085, 17, 15192, 1957, 314, 536, 842, 25, 220, 16, 19, 11, 37190, 842, 25, 220, 16, 20, 2605, 286, 2060, 28838, 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...
1
#[test] fn test_deserialize_v1_0_account() { let token_owner_record_v1_0 = TokenOwnerRecordV1 { account_type: GovernanceAccountType::TokenOwnerRecord, realm: Pubkey::new_unique(), governing_token_mint: Pubkey::new_unique(), governing_token_owner: Pubkey::n...
rust_cleaned_test_functions.jsonl/6148
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 621 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 2273, 16, 62, 15, 13500, 368, 341, 286, 1077, 3950, 29027, 14192, 2273, 16, 62, 15, 284, 9660, 13801, 6471, 53, 16, 341, 310, 2692, 1819, 25, 80589, 7365, 929, 486, 3323, 13801, 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_module_builder() { let mut b = ModuleBuilder::new(); // OpNop b.inst(spirv::Op::Nop, vec![]); // OpCapability Int16 b.inst(spirv::Op::Capability, vec![22]); // OpMemoryModel Logical GLSL450 b.inst(spirv::Op::MemoryModel, vec![0, 1]); ...
rust_cleaned_test_functions.jsonl/85729
{ "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, 10750, 28532, 368, 341, 286, 1077, 5206, 293, 284, 13711, 3297, 486, 931, 543, 286, 442, 10672, 45, 453, 198, 286, 293, 27201, 1141, 5565, 85, 486, 7125, 486, 45, 453, 11, 7486, 0, 56703, 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_github() { let path = diem_temppath::TempPath::new(); path.create_as_file().unwrap(); let mut file = File::create(path.path()).unwrap(); file.write_all(b"disk_token").unwrap(); let path_str = path.path().to_str().unwrap(); let github = format!( ...
rust_cleaned_test_functions.jsonl/32310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 3827, 368, 341, 286, 1077, 1815, 284, 1853, 336, 28613, 602, 587, 486, 12151, 1820, 486, 931, 543, 286, 1815, 2520, 11898, 2458, 1005, 15454, 543, 286, 1077, 5206, 1034, 284, 2887, 486, 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_roundtrip() -> Result<(), Box<dyn Error>> { let mut comp = Component::default(); comp.strings.push(StrRef::Borrowed("test😵")); let mut buf: Cursor<Vec<u8>> = Cursor::new(vec![]); comp.encode(&ComponentHeader::DART_2_16_0_134, &mut buf)?; buf.set_positio...
rust_cleaned_test_functions.jsonl/103888
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 316 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29896, 32981, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 286, 1077, 5206, 1367, 284, 5578, 486, 2258, 543, 286, 1367, 96949, 2552, 92084, 3945, 486, 33, 7768, 291, 445, 1944, 146133, 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...
6
#[test] fn test_counter_from_iter() { let it = (0..).step_by(5).take(10); let xs: Vec<isize> = FromIterator::from_iter(it); assert_eq!(xs, [0, 5, 10, 15, 20, 25, 30, 35, 40, 45]); }
rust_cleaned_test_functions.jsonl/25887
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15730, 5673, 11723, 368, 341, 262, 1077, 432, 284, 320, 15, 496, 568, 9520, 3710, 7, 20, 568, 22769, 7, 16, 15, 317, 262, 1077, 11943, 25, 11312, 27, 285, 551, 29, 284, 5542, 11951, 486, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_stdbuf_unbuffered_stdout() { // This is a basic smoke test let mut cmd = Command::new(PROGNAME); let result = run_piped_stdin(&mut cmd.args(&["-o0", "head"]), "The quick brown fox jumps over the lazy dog."); assert_eq!(result.stdout, "The quick brown fox jumps over the lazy dog."...
rust_cleaned_test_functions.jsonl/21687
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 122 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 87314, 4907, 7573, 291, 67416, 368, 341, 262, 442, 1096, 374, 264, 6770, 16205, 1273, 198, 262, 1077, 5206, 5439, 284, 7348, 486, 931, 55681, 38, 7535, 317, 262, 1077, 1102, 284, 1598, 620...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_nfc_chars() { macro_rules! t { ($input: expr, $expected: expr) => { assert_eq!($input.nfc_chars().collect::<String>(), $expected); } } t!("abc", "abc"); t!("\u{1e0b}\u{1c4}", "\u{1e0b}\u{1c4}"); t!("\u{2026}", "\u{20...
rust_cleaned_test_functions.jsonl/2478
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 463 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 8316, 37418, 368, 341, 286, 18072, 21407, 0, 259, 341, 310, 1711, 1355, 25, 15169, 11, 400, 7325, 25, 15169, 8, 589, 341, 394, 2060, 10714, 0, 699, 1355, 1253, 8316, 37418, 1005, 17384, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_basic() { // Empty let mut c = RangesIterator::new(vec![]); assert_eq!(c.next(), IterStatus::Drained); assert_eq!(c.next(), IterStatus::Drained); c.notify_drained(); assert_eq!(c.next(), IterStatus::Drained); assert_eq!(c.next(), IterStatus...
rust_cleaned_test_functions.jsonl/56214
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 538 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 368, 341, 286, 442, 22228, 198, 286, 1077, 5206, 272, 284, 431, 5520, 11951, 486, 931, 25592, 0, 56703, 286, 2060, 10714, 10297, 66, 4529, 1507, 13704, 2522, 486, 8847, 2627, 317, 286, 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_decode_invalid_windows_1257_to_cow_with_bom_removal() { let (cow, had_errors) = WINDOWS_1257.decode_with_bom_removal(b"abc\x80\xA1\xE4"); match cow { Cow::Borrowed(_) => unreachable!(), Cow::Owned(s) => { assert_eq!(s, "abc\u{20AC}\u{FFFD}\...
rust_cleaned_test_functions.jsonl/90254
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 31433, 58220, 62, 16, 17, 20, 22, 2346, 666, 363, 6615, 880, 316, 1288, 6355, 831, 368, 341, 286, 1077, 320, 18921, 11, 1030, 20196, 8, 284, 75165, 62, 16, 17, 20, 22, 15922, 6615, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ordered_vocab_iter() { let vocab_r: VocabR = [ (0, "a".into()), (1, "b".into()), (2, "c".into()), (3, "ab".into()), ] .iter() .cloned() .collect(); let order_vocab_iter = OrderedVocabIter::new(&vocab_...
rust_cleaned_test_functions.jsonl/43350
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 272 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75272, 52823, 11723, 368, 341, 286, 1077, 23820, 1710, 25, 647, 20497, 49, 284, 2278, 310, 320, 15, 11, 330, 64, 3263, 18122, 14702, 310, 320, 16, 11, 330, 65, 3263, 18122, 14702, 310, 320, 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_private_por_compound_poseidon_top_8_4_2() { private_por_test_compound::<TestTree3<PoseidonHasher, U8, U4, U2>>(); }
rust_cleaned_test_functions.jsonl/88205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 76 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26249, 76628, 18177, 795, 33201, 90456, 10426, 62, 23, 62, 19, 62, 17, 368, 341, 286, 869, 76628, 4452, 18177, 795, 27638, 2271, 6533, 18, 21604, 960, 90456, 6370, 261, 11, 547, 23, 11, 547, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sum_backward() { let mut left = LinkedList::<i32>::new(); left.append(7); left.append(1); left.append(6); let mut right = LinkedList::<i32>::new(); right.append(5); right.append(9); right.append(2); let result = sum_backwa...
rust_cleaned_test_functions.jsonl/103821
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10160, 70477, 368, 341, 286, 1077, 5206, 2115, 284, 22917, 27638, 72, 18, 17, 6831, 931, 543, 286, 2115, 2057, 7, 22, 317, 286, 2115, 2057, 7, 16, 317, 286, 2115, 2057, 7, 21, 626, 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_secret_length_err() { let key = SecretKey::generate(31).unwrap(); let plaintext = "Secret message".as_bytes(); assert!(seal(&key, plaintext).is_err()); assert!(open(&key, plaintext).is_err()); }
rust_cleaned_test_functions.jsonl/104190
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21962, 5118, 9266, 368, 341, 310, 1077, 1376, 284, 8599, 1592, 486, 19366, 7, 18, 16, 568, 15454, 543, 310, 1077, 60847, 284, 330, 19773, 1943, 3263, 300, 12524, 1428, 310, 2060, 10297, 325, 278...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_no_scan_for_docker_files() -> io::Result<()> { let cfg_dir = tempfile::tempdir()?; let cfg_file = cfg_dir.path().join("config.json"); let config_content = serde_json::json!({ "currentContext": "starship" }); let mut docker_config = File::crea...
rust_cleaned_test_functions.jsonl/18771
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 425 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 28857, 5478, 814, 13659, 10931, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 13286, 4334, 284, 54819, 486, 3888, 3741, 94136, 286, 1077, 13286, 2458, 284, 13286, 4334, 3875, 1005, 5987, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_avro_3374_preserve_namespace_for_primitive() { let schema = Schema::parse_str( r#" { "type" : "record", "name" : "ns.int", "fields" : [ {"name" : "value", "type" : "int"}, {"name" : "next", ...
rust_cleaned_test_functions.jsonl/116709
{ "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, 26173, 299, 62, 18, 18, 22, 19, 32116, 5852, 41571, 5478, 84087, 368, 341, 286, 1077, 10802, 284, 12539, 486, 6400, 2895, 1006, 310, 435, 2, 698, 310, 341, 1060, 330, 1313, 1, 549, 330, 8548, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_wrq_ok() { let s = [ 0x00, 0x02, 0x43, 0x61, 0x72, 0x67, 0x6f, 0x2e, 0x74, 0x6f, 0x6d, 0x6c, 0x00, 0x6e, 0x65, 0x74, 0x61, 0x73, 0x63, 0x69, 0x69, 0x00, ]; let res = WritePacket::parse(&s).unwrap(); assert_eq!(res.filename, "...
rust_cleaned_test_functions.jsonl/104024
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 244 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 44074, 80, 19817, 368, 341, 1789, 286, 1077, 274, 284, 2278, 310, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 17, 11, 220, 15, 87, 19, 18, 11, 220, 15, 87, 21, 16, 11, 220, 15, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_gamma_multiple_perms_multiple_agents() { let context = MockTransactionContext::default(); let pc = PermissionChecker::new(&context); let alpha_role_builder = RoleBuilder::new(); let alpha_role = alpha_role_builder .with_org_id(ORG_ID_ALPHA.to_string()...
rust_cleaned_test_functions.jsonl/86333
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61179, 45233, 98043, 45233, 76347, 368, 341, 286, 1077, 2266, 284, 14563, 8070, 1972, 486, 2258, 543, 286, 1077, 13312, 284, 18135, 35188, 486, 931, 2099, 2147, 626, 286, 1077, 8287, 19792, 28532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ldxw() { test_interpreter_and_jit_asm!( " ldxw r0, [r1+2] exit", [ 0xaa, 0xbb, 0x11, 0x22, 0x33, 0x44, 0xcc, 0xdd, ], (), { |_vm, res: Result| { res.unwrap() == 0x44332211 } }, 2 ); }
rust_cleaned_test_functions.jsonl/58983
{ "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, 50573, 87, 86, 368, 341, 262, 1273, 15318, 28637, 8378, 5374, 275, 67529, 33673, 286, 6228, 286, 326, 12719, 86, 435, 15, 11, 508, 81, 16, 10, 17, 921, 286, 4869, 756, 286, 2278, 310, 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...
1
#[test] fn test_decode_fixed_header() { let stream = b"\x10\xc1\x02"; let mut cursor = Cursor::new(&stream[..]); let header = FixedHeader::decode(&mut cursor).unwrap(); assert_eq!(header.packet_type, PacketType::with_default(ControlType::Connect)); assert_eq!(header.remai...
rust_cleaned_test_functions.jsonl/126819
{ "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, 15227, 37839, 8757, 368, 341, 286, 1077, 4269, 284, 293, 11934, 87, 16, 15, 47746, 16, 3462, 15, 17, 876, 286, 1077, 5206, 8128, 284, 28067, 486, 931, 2099, 4027, 95874, 2558, 286, 1077, 4247, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_f32x4_except_third_not_all() { let x1 = f32x4::new(2.0, 2.0, 1.0, 2.0); let x2 = f32x4::splat(2.0); assert!(!(x1.eq(x2)).all()); }
rust_cleaned_test_functions.jsonl/43328
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 115 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 18, 17, 87, 19, 54633, 79519, 7913, 5705, 368, 341, 286, 1077, 856, 16, 284, 282, 18, 17, 87, 19, 486, 931, 7, 17, 13, 15, 11, 220, 17, 13, 15, 11, 220, 16, 13, 15, 11, 220, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_retry(){ assert_eq!(retry_3(&mut -1).is_ok(), false); assert_eq!(retry_3(&mut 0).is_ok(), true); let mut should_be_100 = 0; retry_100(&mut should_be_100).unwrap(); assert_eq!(should_be_100, 100); }
rust_cleaned_test_functions.jsonl/55489
{ "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, 62745, 3032, 262, 2060, 10714, 10297, 44848, 62, 18, 2099, 6984, 481, 16, 568, 285, 19817, 1507, 895, 317, 262, 2060, 10714, 10297, 44848, 62, 18, 2099, 6984, 220, 15, 568, 285, 19817, 1507, 830...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_primitive_array_min_max_with_nulls() { let a = Int32Array::from(&[Some(5), None, None, Some(8), Some(9)]); assert_eq!(5, min_primitive(&a).unwrap()); assert_eq!(9, max_primitive(&a).unwrap()); }
rust_cleaned_test_functions.jsonl/112091
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 7260, 6345, 6615, 15162, 82, 368, 341, 262, 1077, 264, 284, 1333, 18, 17, 1857, 486, 1499, 2099, 58, 8373, 7, 20, 701, 2240, 11, 2240, 11, 4329, 7, 23, 701, 4329, 7, 24, 41958, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_list_proposals_determinism() { local_test_on_sns_subnet(|runtime| async move { // Initialize the ledger with an account for a user. let user = Sender::from_keypair(&TEST_USER1_KEYPAIR); let alloc = Tokens::from_tokens(1000).unwrap(); let params = NervousSystem...
rust_cleaned_test_functions.jsonl/93509
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1285 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2019, 21663, 85975, 814, 16483, 2142, 368, 341, 262, 2205, 4452, 4470, 643, 4412, 95681, 22428, 22255, 91, 3312, 3271, 341, 286, 442, 9008, 279, 46933, 448, 458, 2692, 369, 264, 1196, 624, 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...
3
#[test] fn test_now_expr() { let compiled = compile_expression( &parse_expr_from_projection(&"SELECT NOW()".to_string(), DatabaseProtocol::MySQL), &QueryContext::new(&get_test_meta()[0]), ) .unwrap(); match compiled { CompiledExpression::DateL...
rust_cleaned_test_functions.jsonl/59260
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20813, 21915, 368, 341, 286, 1077, 19697, 284, 19192, 28068, 1006, 310, 609, 6400, 21915, 5673, 72738, 2099, 1, 4858, 22407, 368, 3263, 983, 3904, 1507, 9994, 20689, 486, 59224, 1326, 310, 609, 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_compiler_get_cached_or_compile_dist() { drop(env_logger::try_init()); let creator = new_creator(); let f = TestFixture::new(); let pool = CpuPool::new(1); let mut runtime = Runtime::new().unwrap(); let storage = DiskCache::new(&f.tempdir.path().joi...
rust_cleaned_test_functions.jsonl/32358
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2047 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80910, 3062, 64369, 8734, 74170, 16031, 368, 341, 286, 5943, 16978, 27413, 486, 1539, 6137, 1423, 286, 1077, 19919, 284, 501, 68532, 543, 286, 1077, 282, 284, 3393, 18930, 486, 931, 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...
5
#[test] fn test_insert_smaller() { let mut root = tree!(); for content in ['Z', 'Y', 'X', 'W', 'V'].iter() { assert!(root.insert(*content)); } let expected = tree!('W' => [2, 'V', ('Y' => [2, 'X', 'Z'])]); assert_eq!(root, expected); }
rust_cleaned_test_functions.jsonl/9212
{ "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, 17678, 15874, 13956, 368, 341, 197, 10217, 5206, 3704, 284, 4916, 0, 543, 197, 2023, 2213, 304, 2509, 57, 516, 364, 56, 516, 364, 55, 516, 364, 54, 516, 364, 53, 7204, 2015, 368, 341, 298, 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...
2