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_seq_contains() { let gil = Python::acquire_gil(); let py = gil.python(); let v: Vec<i32> = vec![1, 1, 2, 3, 5, 8]; let ob = v.to_object(py); let seq = ob.cast_as::<PySequence>(py).unwrap(); assert_eq!(6, seq.len().unwrap()); let bad_needle...
rust_cleaned_test_functions.jsonl/47411
{ "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, 14486, 63598, 368, 341, 286, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 286, 1077, 4510, 284, 342, 321, 43193, 543, 286, 1077, 348, 25, 11312, 21897, 18, 17, 29, 284, 7486, 207...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_new_descriptor_chain() { let m = &GuestMemoryMmap::from_ranges(&[ (GuestAddress(0), 0x10000), (GuestAddress(0x20000), 0x2000), ]) .unwrap(); let vq = VirtQueue::new(GuestAddress(0), m, 16); assert!(vq.end().0 < 0x1000); ...
rust_cleaned_test_functions.jsonl/3575
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 916 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56456, 5921, 33774, 30583, 368, 341, 286, 1077, 296, 284, 609, 37804, 10642, 44, 2186, 486, 1499, 58748, 2099, 9640, 310, 320, 37804, 4286, 7, 15, 701, 220, 15, 87, 16, 15, 15, 15, 15, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_assembly_input_bundle_from_json5() { let json5 = r#" { // json5 files can have comments in them. system: ["package0"], base: ["package1", "package2"], cache: ["package3", "package4"], kernel: { ...
rust_cleaned_test_functions.jsonl/5932
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1389 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11898, 5642, 5898, 60986, 5673, 9455, 20, 368, 341, 286, 1077, 2951, 20, 284, 435, 2, 698, 310, 341, 394, 442, 2951, 20, 3542, 646, 614, 6042, 304, 1105, 624, 394, 1849, 25, 4383, 1722, 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_primitive_types() { let mut driver = TestDriver::new( r#" struct Primitives { a:u8, b:u16, c:u32, d:u64, e:u128, f:i8, g:i16, h:i32, i:i64, j:i128, k:f32, l:f64, } pub fn ne...
rust_cleaned_test_functions.jsonl/64449
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1062 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 9763, 368, 341, 262, 1077, 5206, 5579, 284, 3393, 11349, 486, 931, 1006, 286, 435, 2, 698, 262, 2036, 2340, 35209, 341, 286, 264, 25, 84, 23, 345, 286, 293, 25, 84, 16, 21, 345, 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_sm3() { // A.1 示例1 // h let digest = sm3(b"abc"); assert_eq!(&digest[..], &[ 0x66, 0xc7, 0xf0, 0xf4, 0x62, 0xee, 0xed, 0xd9, 0xd1, 0xf2, 0xd4, 0x6b, 0xdc, 0x10, 0xe4, 0xe2, 0x41, 0x67, 0xc4, 0x87, 0x5c, 0xf2, 0xf7, 0xa2, 0x29, 0x7d, 0xa0, 0x2b,...
rust_cleaned_test_functions.jsonl/57510
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 503 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15874, 18, 368, 341, 262, 442, 362, 13, 16, 80426, 16, 198, 262, 442, 305, 1077, 20882, 284, 1525, 18, 1883, 1, 13683, 797, 1066, 262, 2060, 10714, 0, 2099, 36339, 95874, 1125, 609, 9640, 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_vcx_credential_deserialize_succeeds() { settings::set_defaults(); settings::set_config_value(settings::CONFIG_ENABLE_TEST_MODE,"true"); let string = DEFAULT_SERIALIZED_CREDENTIAL; vcx_credential_deserialize(0,CString::new(string).unwrap().into_raw(), Some(deserial...
rust_cleaned_test_functions.jsonl/7547
{ "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, 2273, 25844, 666, 30320, 15768, 9050, 643, 29264, 82, 368, 341, 286, 5003, 486, 746, 42290, 543, 286, 5003, 486, 746, 5332, 3142, 23369, 486, 24652, 14379, 11641, 8414, 1335, 1866, 797, 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_228() { assert_eq!(Solution::summary_ranges(vec![0,1,2,3,4,5,6]), vec_string!["0->6"]); }
rust_cleaned_test_functions.jsonl/122720
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 69 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 17, 17, 23, 368, 341, 286, 2060, 10714, 10297, 36842, 486, 1708, 58748, 25592, 20703, 15, 11, 16, 11, 17, 11, 18, 11, 19, 11, 20, 11, 21, 9719, 7486, 3904, 0, 1183, 15, 405, 21, 15049,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_creation_bad_range() { let body = r#"{ "range" : { "test_u64" : { "gte" : -1 } } }"#; let mut schema = SchemaBuilder::new(); schema.add_u64_field("test_u64", FAST); let built = schema.build(); let req = serde_json::from_str::<RangeQuery>(body).unwrap...
rust_cleaned_test_functions.jsonl/76133
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 260 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 46163, 34199, 9698, 368, 341, 286, 1077, 2487, 284, 435, 2, 14129, 330, 9669, 1, 549, 314, 330, 1944, 7300, 21, 19, 1, 549, 314, 330, 55067, 1, 549, 481, 16, 335, 335, 335, 57676, 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_identifier() { fn raw(is_unterminated: bool, has_invalid_escape: bool) -> Token { Token::RawIdentifier { is_unterminated, has_invalid_escape, } } assert_eq!(lex("foo"), (Token::Identifier, 3)); assert_eq!(lex...
rust_cleaned_test_functions.jsonl/80517
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 359 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33176, 368, 341, 286, 5168, 7112, 9623, 4907, 68659, 25, 1807, 11, 702, 31433, 21832, 25, 1807, 8, 1464, 9660, 341, 310, 9660, 486, 20015, 8714, 341, 394, 374, 4907, 68659, 345, 394, 702, 31433,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_config_xml() { let config = SpeedTestConfig::parse(include_str!("../tests/config/config.php.xml")).unwrap(); assert_eq!("174.79.12.26", config.client.ip.to_string()); assert_eq!( EarthLocation { latitude: 32.9954, ...
rust_cleaned_test_functions.jsonl/5179
{ "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, 21039, 5332, 23855, 368, 341, 286, 1077, 2193, 4035, 310, 15181, 2271, 2648, 486, 6400, 77863, 2895, 17223, 1244, 23841, 14730, 14730, 2296, 9028, 15197, 15454, 543, 286, 2060, 10714, 17223, 16, 22,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_convert_to_f64() { let cases = vec![ ("2012-12-31 11:30:45.123456", 4, 20121231113045.1235f64), ("2012-12-31 11:30:45.123456", 6, 20121231113045.123456f64), ("2012-12-31 11:30:45.123456", 0, 20121231113045f64), ("2012-12-31 11:30:45.999999"...
rust_cleaned_test_functions.jsonl/93956
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 536 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 2346, 761, 21, 19, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 17, 15, 16, 17, 12, 16, 17, 12, 18, 16, 220, 16, 16, 25, 18, 15, 25, 19, 20, 13, 16, 17, 18, 19, 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...
2
#[test] fn test_clone_from_slice() { #[derive(Clone, Debug, Eq, PartialEq)] struct X(u32); let s: &[X] = &[X(1), X(2), X(3)]; let r: Arc<[X]> = Arc::from(s); assert_eq!(&r[..], s); }
rust_cleaned_test_functions.jsonl/42727
{ "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, 54742, 5673, 26488, 368, 341, 262, 11506, 27098, 65297, 11, 11091, 11, 33122, 11, 55039, 5563, 262, 2036, 1599, 8154, 18, 17, 626, 262, 1077, 274, 25, 44590, 55, 60, 284, 44590, 55, 7, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_times_in_sequence() { let mock = new_mock!(TestTrait); given! { <mock as TestTrait>::{ func |_| true then_return 12 times(1); func |_| true then_return 24 times(1); } } assert_eq!(mock.func(1), 12); assert_eq!(mock.func(2), 24); }
rust_cleaned_test_functions.jsonl/84811
{ "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, 22353, 1243, 23735, 368, 341, 262, 1077, 7860, 284, 501, 34134, 10297, 2271, 49257, 626, 262, 2661, 0, 341, 286, 366, 16712, 438, 3393, 49257, 6831, 515, 310, 2915, 66091, 830, 1221, 12511, 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_from_hex_conversion() { let sk = SecretKey::new(&mut thread_rng()); let pk = PublicKey::from(&sk); let pk_hex = pk.get_point_hex_string().unwrap(); let pk_from_hex = PublicKey::from_hex_string(pk_hex).unwrap(); assert_eq!(pk, pk_from_hex); let sc...
rust_cleaned_test_functions.jsonl/768
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 32655, 64132, 368, 341, 286, 1077, 1901, 284, 8599, 1592, 486, 931, 2099, 6984, 4516, 66849, 1423, 286, 1077, 22458, 284, 70280, 486, 1499, 2099, 4886, 317, 286, 1077, 22458, 32655, 284, 224...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_supplicant_no_gtk_reinstallation_from_4way() { // Create ESS Security Association let mut supplicant = test_util::get_wpa2_supplicant(); supplicant.start().expect("Failed starting Supplicant"); // Complete 4-Way Handshake. let updates = send_fourway_msg1(...
rust_cleaned_test_functions.jsonl/21805
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 91480, 35237, 6536, 1889, 6242, 1288, 80816, 5673, 62, 19, 3117, 368, 341, 286, 442, 4230, 468, 1220, 8234, 10024, 198, 286, 1077, 5206, 90035, 35237, 284, 1273, 18974, 486, 455, 1670, 6595, 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_resource_guards() { let mut srv = init_service( App::new() .service( web::resource("/test/{p}") .guard(guard::Get()) .to(|| HttpResponse::Ok()), ) .service( ...
rust_cleaned_test_functions.jsonl/4939
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 778 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17962, 1889, 54608, 368, 341, 286, 1077, 5206, 43578, 284, 2930, 12267, 1006, 310, 1845, 486, 931, 741, 394, 659, 7936, 1006, 503, 3482, 486, 9233, 4283, 1944, 9388, 79, 14451, 664, 659, 26098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_hc128_ecrypt_set_2_vector_0() { let key = hex::decode("00000000000000000000000000000000").unwrap(); let nonce = hex::decode("00000000000000000000000000000000").unwrap(); let input = [0u8; 64]; let expected_output_hex = "82001573A003FD3B7FD72FFB0EAF63AAC62F12DEB62...
rust_cleaned_test_functions.jsonl/2189
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 350 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 66, 16, 17, 23, 36844, 3571, 2602, 62, 17, 12247, 62, 15, 368, 341, 286, 1077, 1376, 284, 12371, 486, 18196, 445, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 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_effectful_default_parameter_not_removed() { test_same("function f(x = void console.log(1)) { }"); test_same("function f(x = void f()) { alert(x); }"); }
rust_cleaned_test_functions.jsonl/488
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 77 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27125, 1262, 9993, 24899, 7913, 68248, 368, 341, 262, 1273, 33574, 445, 1688, 282, 2075, 284, 737, 2339, 1665, 7, 16, 593, 314, 220, 335, 797, 262, 1273, 33574, 445, 1688, 282, 2075, 284, 737, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_all_previously_failed_homestead_blocks() { let cached: serde_json::Value = serde_json::from_str(include_str!("../../res/homestead_records.json")).unwrap(); let numbers: Vec<usize> = serde_json::from_str(include_str!("../../res/homestead_numbers.json")).unwrap(); let mut client = Cach...
rust_cleaned_test_functions.jsonl/53436
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 180 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 10442, 18281, 35060, 57105, 72337, 25201, 368, 341, 262, 1077, 20579, 25, 61570, 9455, 486, 1130, 284, 61570, 9455, 486, 1499, 2895, 77863, 2895, 17223, 2748, 416, 7530, 316, 72337, 31279, 432...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_header_view_value_string() { let mut headers = Headers::new(); headers.set_raw("foo", vec![b"one".to_vec(), b"two".to_vec()]); for header in headers.iter() { assert_eq!(header.name(), "foo"); assert_eq!(header.value_string(), "one, two"); }...
rust_cleaned_test_functions.jsonl/108109
{ "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, 8757, 7122, 3142, 3904, 368, 341, 286, 1077, 5206, 7102, 284, 21426, 486, 931, 543, 286, 7102, 980, 16067, 445, 7975, 497, 7486, 20703, 65, 1, 603, 3263, 983, 13251, 1507, 293, 1, 19789, 3263, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_tuples() { check_as_bytes(&(42u32, true, 'x'), &mut ()); check_as_bytes(&(true,), &mut ()); unsafe { <(u32, bool, char)>::check_bytes( bytes![ 0u8, 0u8, 0u8, 0u8, 1u8, 255u8, 255u8, 255u8, 0x78u8, 0u8, 0u8, 0u8...
rust_cleaned_test_functions.jsonl/28472
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1531 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 89269, 368, 341, 286, 1779, 11898, 12524, 29089, 19, 17, 84, 18, 17, 11, 830, 11, 364, 87, 4567, 609, 6984, 49323, 286, 1779, 11898, 12524, 29089, 1866, 59564, 609, 6984, 89684, 286, 19860, 341,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_info_abi_compatible() { let abi_type = abi::ModuleInfo { path: std::ptr::null(), functions: std::ptr::null(), num_functions: 0, types: std::ptr::null(), num_types: 0, }; super::ModuleInfo::test(&abi_type); }
rust_cleaned_test_functions.jsonl/98926
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10750, 3109, 22885, 72, 2965, 37079, 368, 341, 262, 1077, 61050, 1819, 284, 61050, 486, 3332, 1731, 341, 286, 1815, 25, 1460, 486, 3505, 486, 2921, 3148, 286, 5746, 25, 1460, 486, 3505, 486, 292...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_write_timestamp_microsecond() { let expected = vec![ "+----------------------------+", "| f |", "+----------------------------+", "| 1970-01-01 00:00:11.111111 |", "| |", ...
rust_cleaned_test_functions.jsonl/39716
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 23073, 73003, 5569, 368, 341, 286, 1077, 3601, 284, 7486, 90515, 310, 6630, 27814, 10, 756, 310, 25203, 282, 3502, 760, 756, 310, 6630, 27814, 10, 756, 310, 25203, 220, 16, 24, 22, 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...
1
#[test] fn test_check_program_subscribe() { let GenesisConfigInfo { genesis_config, mint_keypair, .. } = create_genesis_config(100); let bank = Bank::new(&genesis_config); let blockhash = bank.last_blockhash(); let bank_forks = Arc::new...
rust_cleaned_test_functions.jsonl/74724
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1776 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 25096, 88935, 368, 341, 286, 1077, 40788, 2648, 1731, 341, 310, 59366, 5332, 345, 310, 28337, 3097, 12670, 345, 310, 54538, 286, 335, 284, 1855, 16322, 13774, 5332, 7, 16, 15, 15, 317, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_supervisor_restart() { let starts = Arc::new(AtomicUsize::new(0)); let restarts = Arc::new(AtomicUsize::new(0)); let messages = Arc::new(AtomicUsize::new(0)); let starts2 = Arc::clone(&starts); let restarts2 = Arc::clone(&restarts); let messages2 = Arc::clone(&messages); ...
rust_cleaned_test_functions.jsonl/74001
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 429 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23723, 31396, 69392, 368, 341, 262, 1077, 8471, 284, 19689, 486, 931, 7, 65857, 52, 2141, 486, 931, 7, 15, 1106, 262, 1077, 17024, 82, 284, 19689, 486, 931, 7, 65857, 52, 2141, 486, 931, 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...
2
#[test] fn test_runtime_args() { let arg1 = CLValue::from_t(1).unwrap(); let arg2 = CLValue::from_t("Foo").unwrap(); let arg3 = CLValue::from_t(Some(1)).unwrap(); let args = { let mut map = BTreeMap::new(); map.insert("bar".into(), arg2.clone()); ...
rust_cleaned_test_functions.jsonl/65113
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 480 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33232, 8384, 368, 341, 286, 1077, 1392, 16, 284, 6976, 1130, 486, 1499, 528, 7, 16, 568, 15454, 543, 286, 1077, 1392, 17, 284, 6976, 1130, 486, 1499, 528, 445, 40923, 1827, 15454, 543, 286, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_merge_fake_stake_source() { let stake_address = solana_sdk::pubkey::new_rand(); let merge_from_address = solana_sdk::pubkey::new_rand(); let authorized_address = solana_sdk::pubkey::new_rand(); let stake_lamports = 42; let stake_account = AccountSharedData...
rust_cleaned_test_functions.jsonl/31669
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1299 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 56881, 1261, 726, 10347, 368, 341, 286, 1077, 18279, 6744, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 10880, 5673, 6744, 284, 2048, 3362, 61783, 486, 9585, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reset_untracked_in_subdir_and_index() { let (_td, repo) = repo_init().unwrap(); let root = repo.path().parent().unwrap(); let repo_path = root.as_os_str().to_str().unwrap(); let file = "foo/bar.txt"; { fs::create_dir(&root.join("foo")).unwrap(...
rust_cleaned_test_functions.jsonl/82915
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 566 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18983, 4907, 58381, 1243, 5228, 3741, 8378, 3560, 368, 341, 286, 1077, 5453, 1296, 11, 15867, 8, 284, 15867, 6137, 1005, 15454, 543, 286, 1077, 3704, 284, 15867, 3875, 1005, 3765, 1005, 15454, 543...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_verify() { let mut c = Claims::new(); c.iss = Some("sea".to_owned()); let mut t = Token::with_payload(c); let t = t.sign(&Key::new(b"secret", Algorithm::HS256)).unwrap(); println!("{}", t); // verify let _verified: Token<Claims> = Token::verify_with_key_resolver(&t,...
rust_cleaned_test_functions.jsonl/133974
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 179 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 368, 341, 262, 1077, 5206, 272, 284, 50098, 486, 931, 543, 262, 272, 13, 1038, 284, 4329, 445, 36441, 3263, 983, 51973, 5231, 262, 1077, 5206, 259, 284, 9660, 486, 4197, 32813, 1337, 317,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_double() { DoubleType::test(Encoding::PLAIN, TEST_SET_SIZE, -1); DoubleType::test(Encoding::PLAIN_DICTIONARY, TEST_SET_SIZE, -1); }
rust_cleaned_test_functions.jsonl/45125
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24598, 368, 341, 262, 7093, 929, 486, 1944, 85177, 486, 90889, 11, 13602, 8481, 4098, 11, 481, 16, 317, 262, 7093, 929, 486, 1944, 85177, 486, 90889, 44663, 3580, 8642, 11, 13602, 8481, 4098, 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
#[test] fn test_derive_deserialize() { let test: TestStruct = serde_plain::from_str("42").unwrap(); assert_eq!(TestStruct(42).0, test.0); }
rust_cleaned_test_functions.jsonl/80460
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 68 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35345, 533, 15768, 9050, 368, 341, 262, 1077, 1273, 25, 3393, 9422, 284, 61570, 41015, 486, 1499, 2895, 445, 19, 17, 1827, 15454, 543, 262, 2060, 10714, 10297, 2271, 9422, 7, 19, 17, 568, 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
#[test] fn test_acceptance_with_qasmbackend() { let backend = Backend::new(Some("qr".to_string())); let mut circuit = Circuit::new(); circuit += RotateX::new(0, std::f64::consts::FRAC_PI_2.into()); circuit += RotateY::new(0, std::f64::consts::FRAC_PI_2.into()); circuit += RotateZ::new(0, st...
rust_cleaned_test_functions.jsonl/49437
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 791 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35728, 681, 6615, 8976, 10530, 20942, 368, 341, 262, 1077, 19163, 284, 55260, 486, 931, 65405, 445, 23004, 3263, 983, 3904, 25138, 262, 1077, 5206, 16224, 284, 27218, 486, 931, 543, 262, 16224, 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_insert_into_email_table() { #[derive(Deserialize)] struct R { user: EncodablePrivateUser, } let (_b, app, middle) = app(); let mut req = req(Method::Get, "/me"); { let conn = app.diesel_database.get().unwrap(); let user = NewUser { gh_...
rust_cleaned_test_functions.jsonl/29161
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 640 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 45514, 9172, 5237, 368, 341, 262, 11506, 27098, 7, 64465, 5563, 262, 2036, 431, 341, 286, 1196, 25, 10751, 69129, 16787, 1474, 345, 262, 555, 262, 1077, 5453, 65, 11, 906, 11, 6149, 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_in_op() -> TestResult { let p = polar(); p.load_str("f(x, y) if x in y;")?; qeval(&p, "f(1, [1,2,3])"); qvar(&p, "f(x, [1,2,3])", "x", values![1, 2, 3]); // Failure. qnull(&p, "4 in [1,2,3]"); qeval(&p, "4 in [1,2,3] or 1 in [1,2,3]"); // Make sure we scan the w...
rust_cleaned_test_functions.jsonl/68143
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 814 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 10287, 368, 1464, 3393, 2077, 341, 262, 1077, 281, 284, 24660, 543, 262, 281, 5104, 2895, 445, 69, 2075, 11, 379, 8, 421, 856, 304, 379, 26, 899, 37445, 262, 2804, 14170, 2099, 79, 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_replace_links() { let actual = replace_links(r"test {@link http://deno.land/x/mod.ts} test"); assert_eq!( actual, r"test [http://deno.land/x/mod.ts](http://deno.land/x/mod.ts) test" ); let actual = replace_links(r"test {@link http://deno.land/x/mod.ts a link} te...
rust_cleaned_test_functions.jsonl/23617
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 263 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10633, 25258, 368, 341, 262, 1077, 5042, 284, 8290, 25258, 2601, 1, 1944, 6418, 2080, 1758, 1110, 5183, 78, 87627, 10776, 38479, 21288, 92, 1273, 797, 262, 2060, 10714, 33673, 414, 5042, 345, 414,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_calculate_fee() { let fee_calculator = FeeCalculator::new(1); assert_eq!(calculate_fee(&fee_calculator, &[]), 0); let message = Message::default(); assert_eq!(calculate_fee(&fee_calculator, &[&message, &message]), 0); let pubke...
rust_cleaned_test_functions.jsonl/38827
{ "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, 24005, 11207, 34305, 368, 341, 286, 1077, 11060, 24005, 20022, 284, 40458, 55743, 486, 931, 7, 16, 317, 1789, 286, 2060, 10714, 10297, 35597, 34305, 2099, 30017, 24005, 20022, 11, 609, 1294, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_crypto_core_salsa2012_constbytes() { assert!( unsafe { crypto_core_salsa2012_constbytes() } == crypto_core_salsa2012_CONSTBYTES as usize ) }
rust_cleaned_test_functions.jsonl/108142
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 78298, 15467, 643, 41826, 17, 15, 16, 17, 13610, 9651, 368, 341, 262, 2060, 33673, 286, 19860, 314, 19028, 15467, 643, 41826, 17, 15, 16, 17, 13610, 9651, 368, 335, 621, 19028, 15467, 643, 41826...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_duplicate_fields() { let message_type = " message test_schema { REQUIRED BOOLEAN boolean; REQUIRED INT32 int8 (INT_8); } "; let parquet_group_type = parse_message_type(message_type).unwrap(); let parquet_schema = SchemaDes...
rust_cleaned_test_functions.jsonl/130362
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 471 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70434, 12132, 368, 341, 286, 1077, 1943, 1819, 284, 6228, 286, 1943, 1273, 25371, 341, 310, 66577, 59393, 2710, 280, 310, 66577, 9221, 18, 17, 526, 23, 320, 3221, 62, 23, 317, 286, 456, 286, 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_try_from_put_shutdown() { let (mut sender, receiver) = UnixStream::pair().unwrap(); let mut connection = HttpConnection::new(receiver); sender .write_all(http_request("PUT", "/shutdown-internal", None).as_bytes()) .unwrap(); assert!(connect...
rust_cleaned_test_functions.jsonl/106587
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 15557, 54804, 368, 341, 286, 1077, 320, 6984, 4646, 11, 13964, 8, 284, 46995, 3027, 486, 12670, 1005, 15454, 543, 286, 1077, 5206, 3633, 284, 4823, 4526, 486, 931, 78126, 317, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_generate_type_check_native() { let provider = "provider"; let probe = "probe"; let types = &[ DataType::Native(dtrace_parser::DataType::U8), DataType::Native(dtrace_parser::DataType::I64), ]; let expected = quote! { let ...
rust_cleaned_test_functions.jsonl/8787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 493 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 1819, 7200, 44494, 368, 341, 286, 1077, 9109, 284, 330, 19979, 876, 286, 1077, 21730, 284, 330, 52329, 876, 286, 1077, 4494, 284, 609, 9640, 310, 33172, 486, 20800, 1500, 15067, 18517, 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_checkout_unmodified_blob() -> BitResult<()> { BitRepo::with_minimal_repo(|repo| { bit_checkout!(repo: "master")?; assert_eq!(cat!(repo: "foo"), "default foo contents"); bit_checkout!(repo: --force "master")?; assert_eq!(cat!(repo: "foo"), "default foo contents...
rust_cleaned_test_functions.jsonl/62959
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68186, 4907, 27162, 45908, 368, 1464, 6495, 2077, 71698, 341, 262, 6495, 25243, 486, 4197, 7260, 2861, 37784, 22428, 23476, 91, 341, 286, 2699, 68186, 10297, 23476, 25, 330, 13629, 899, 37445, 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_introduce_var_for_break_not_applicable() { check_assist_not_applicable(introduce_variable, "fn main() { loop { <|>break<|>; }; }"); }
rust_cleaned_test_functions.jsonl/108767
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 77 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4042, 47845, 4612, 5478, 39494, 7913, 8191, 46114, 368, 341, 286, 1779, 12083, 380, 7913, 8191, 46114, 1548, 47845, 14635, 11, 330, 8822, 1887, 368, 314, 6337, 314, 82639, 29, 8960, 27, 91, 65795,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_instructions() { let mut bytecode: Vec<u8> = BIND_HEADER.to_vec(); append_section_header(&mut bytecode, SYMB_MAGIC_NUM, 0); let instructions = [0x30, 0x01, 0x01, 0, 0, 0, 0x05, 0x10, 0, 0, 0x10]; append_section_header(&mut bytecode, INSTRUCTION_MAGIC_NUM, instruc...
rust_cleaned_test_functions.jsonl/67994
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 234 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82427, 368, 341, 286, 1077, 5206, 75129, 25, 11312, 34837, 23, 29, 284, 91370, 20330, 2389, 13251, 543, 286, 8737, 16221, 8757, 2099, 6984, 75129, 11, 16079, 8412, 49194, 9631, 11, 220, 15, 626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_xflow_to_json() { let _ = env_logger::try_init(); let xfs_a = XFlowDocument::default(); if let Ok(xfs_b) = XFlowDocument::from_json(&xfs_a.to_json()) { assert_eq!(xfs_a.id, xfs_b.id); } else { assert!(false); } }
rust_cleaned_test_functions.jsonl/34311
{ "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, 3212, 4965, 2346, 9455, 368, 341, 262, 1077, 716, 284, 6105, 27413, 486, 1539, 6137, 1428, 262, 1077, 856, 3848, 4306, 284, 1599, 18878, 7524, 486, 2258, 543, 262, 421, 1077, 7622, 2075, 3848, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_cell_live() { let brd = testing_board(0); assert!(!brd.cell_live(0, 0)); assert!(brd.cell_live(2, 2)); }
rust_cleaned_test_functions.jsonl/24655
{ "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, 16648, 55203, 368, 341, 262, 1077, 1411, 67, 284, 7497, 23919, 7, 15, 317, 262, 2060, 0, 3471, 1323, 67, 24587, 55203, 7, 15, 11, 220, 15, 1106, 262, 2060, 10297, 1323, 67, 24587, 55203, 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
#[test] fn test_dummy_network_timers() { set_logger_for_test(); let mut net = new_dummy_network_from_config(1, 2, DUMMY_CONFIG_V4); net.context(1) .dispatcher .schedule_timeout(Duration::from_secs(1), TimerId(TimerIdInner::Nop(1))); net.context(2) ...
rust_cleaned_test_functions.jsonl/29515
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1267 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60321, 20966, 29087, 388, 368, 341, 286, 738, 27413, 5478, 4452, 543, 286, 1077, 5206, 4179, 284, 501, 60321, 20966, 5673, 5332, 7, 16, 11, 220, 17, 11, 422, 58673, 12568, 2334, 19, 626, 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_dummy_device() { let mut dummy = DummyDevice { dummy: 0 }; assert_eq!(dummy.device_type(), 0); assert_eq!(dummy.queue_max_sizes(), QUEUE_SIZES); // test activate let m = GuestMemory::new(&[(GuestAddress(0), 0x1000)]).unwrap(); let ievt = EventFd::...
rust_cleaned_test_functions.jsonl/32342
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60321, 9204, 368, 341, 286, 1077, 5206, 17292, 284, 50567, 6985, 314, 17292, 25, 220, 15, 2605, 286, 2060, 10714, 10297, 31390, 18355, 1819, 1507, 220, 15, 317, 286, 2060, 10714, 10297, 31390, 295...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_blake2s() { let mut rng = XorShiftRng::seed_from_u64(1231275789u64); for input_len in (0..32).chain((32..256).filter(|a| a % 8 == 0)) { use digest::*; let mut h = VarBlake2s::new_keyed(&[], 32); let data: Vec<u8> = (0..input_len).map(|_| rng....
rust_cleaned_test_functions.jsonl/101939
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13141, 726, 17, 82, 368, 341, 286, 1077, 5206, 28422, 284, 1599, 269, 24841, 49, 968, 486, 22602, 5673, 7300, 21, 19, 7, 16, 17, 18, 16, 17, 22, 20, 22, 23, 24, 84, 21, 19, 626, 286, 369...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
#[test] fn test_block() { check( r#" macro_rules! m { ($b:block) => { fn foo() $b } } m! { { 1; } } "#, expect![[r#" macro_rules! m { ($b:block) => { fn foo() $b } } fn foo() { 1; } "#]], ); }
rust_cleaned_test_functions.jsonl/85233
{ "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, 7113, 368, 341, 262, 1779, 1006, 286, 435, 2, 698, 32606, 21407, 0, 296, 314, 1711, 65, 57628, 8, 589, 314, 5168, 15229, 368, 400, 65, 335, 456, 76, 0, 314, 314, 220, 16, 26, 335, 456, 576...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_column_writer_default_encoding_support_fixed_len_byte_array() { check_encoding_write_support::<FixedLenByteArrayType>( WriterVersion::PARQUET_1_0, true, &[ByteArray::from(vec![1u8]).into()], None, &[Encoding::PLAIN, Encoding::RL...
rust_cleaned_test_functions.jsonl/54355
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 615 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8744, 28908, 9993, 37613, 25827, 37839, 6043, 19737, 3858, 368, 341, 286, 1779, 37613, 9165, 25827, 27638, 13520, 11271, 18394, 929, 17055, 310, 29404, 5637, 486, 16567, 5757, 1348, 62, 16, 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_match_mime_type() { assert_eq!( mime::TEXT_PLAIN, get_mime_type( &[MimeMatcher { mime: String::from("text/plain"), regex: Regex::new("^.*\\.test$").ok(), }], String::from("mime...
rust_cleaned_test_functions.jsonl/321
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 632 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10708, 83624, 1819, 368, 341, 286, 2060, 10714, 33673, 310, 45270, 486, 12708, 11082, 6836, 345, 310, 633, 83624, 1819, 1006, 394, 44590, 44, 545, 37554, 341, 503, 45270, 25, 923, 486, 1499, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_gt_eq_scalar_nulls() { cmp_i64_scalar!( gt_eq_scalar, vec![None, Some(1), Some(2), None, Some(2), Some(3), None, Some(3), Some(4)], 2, vec![None, Some(false), Some(true), None, Some(true), Some(true), None, Some(true), Some(...
rust_cleaned_test_functions.jsonl/36033
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 37479, 10714, 41652, 15162, 82, 368, 341, 286, 26089, 5318, 21, 19, 41652, 33673, 310, 25161, 10714, 41652, 345, 310, 7486, 20703, 4064, 11, 4329, 7, 16, 701, 4329, 7, 17, 701, 2240...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_commit_tx_hook_use_panic_tx() { let toml_str = include_str!("./genesis_services.toml"); let genesis: Genesis = toml::from_str(toml_str).unwrap(); let db = Arc::new(MemoryDB::new(false)); let root = ServiceExecutor::create_genesis( genesis.services, Arc::clone(&d...
rust_cleaned_test_functions.jsonl/50152
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 675 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36346, 17805, 32005, 15951, 620, 31270, 17805, 368, 341, 262, 1077, 311, 1014, 2895, 284, 2924, 2895, 0, 13988, 77894, 39846, 73494, 75, 797, 262, 1077, 59366, 25, 40788, 284, 311, 1014, 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_hash_age_kind_is_durable_nonce() { assert!( HashAgeKind::DurableNonce(Pubkey::default(), Account::default()).is_durable_nonce() ); assert!(!HashAgeKind::Extant.is_durable_nonce()); }
rust_cleaned_test_functions.jsonl/42363
{ "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, 8950, 32053, 33162, 6892, 814, 18329, 48508, 368, 341, 286, 2060, 33673, 310, 6531, 16749, 10629, 486, 35, 18329, 90528, 5304, 392, 792, 486, 2258, 1507, 8615, 486, 2258, 6011, 285, 814, 18329, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_fit() { START.call_once(|| { magick_wand_genesis(); }); let wand = MagickWand::new(); assert!(wand.read_image("tests/data/IMG_5745.JPG").is_ok()); assert_eq!(512, wand.get_image_width()); assert_eq!(384, wand.get_image_height()); wand.fit(240, 240); assert...
rust_cleaned_test_functions.jsonl/57696
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32416, 368, 341, 262, 20998, 8524, 7630, 79453, 341, 286, 4878, 865, 1670, 437, 16322, 13774, 543, 262, 1625, 262, 1077, 28710, 284, 87154, 54, 437, 486, 931, 543, 262, 2060, 10297, 79810, 4125, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_maximum() { let max = maximum(&array![2., 3., 4.], &array![1., 5., 2.]); assert_eq!(max, array![2., 5., 4.]); }
rust_cleaned_test_functions.jsonl/75001
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 69 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 93581, 368, 341, 197, 10217, 1932, 284, 7192, 2099, 1653, 20703, 17, 2572, 220, 18, 2572, 220, 19, 13, 1125, 609, 1653, 20703, 16, 2572, 220, 20, 2572, 220, 17, 13, 2558, 197, 6948, 10714, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_dirent_metadata() { let data_offset = 12; let data = vec![1, 2, 3, 4, 5]; let mut out: Vec<u8> = vec![]; let name = "test_name".as_bytes(); let dirent = DirectoryEntry { name: name.to_owned(), data }; assert_matches!(dirent.serialize_metadata(&mu...
rust_cleaned_test_functions.jsonl/29298
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 204 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 554, 406, 22220, 368, 341, 286, 1077, 821, 6917, 284, 220, 16, 17, 280, 286, 1077, 821, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 4821, 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...
1
#[test] fn test_region_read_progress() { fn pending_items_num(rrp: &RegionReadProgress) -> usize { rrp.core.lock().unwrap().pending_items.len() } let cap = 10; let rrp = RegionReadProgress::new(10, cap); for i in 1..=20 { rrp.update_safe_...
rust_cleaned_test_functions.jsonl/14643
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 995 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20627, 6443, 27200, 368, 341, 1789, 286, 5168, 15280, 12134, 4273, 80818, 79, 25, 609, 14091, 4418, 9496, 8, 1464, 22301, 341, 310, 435, 22252, 4871, 21003, 1005, 15454, 1005, 28210, 12134, 19406, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_z2_decoding() { assert_eq!(Z2::new(23, 13).decode(), (23, 13)); assert_eq!( Z2::new(Z2::MAX_MASK as u32, 0).decode(), (Z2::MAX_MASK as u32, 0) ); assert_eq!( Z2::new(0, Z2::MAX_MASK as u32).decode(), (0, Z2::MAX_MASK...
rust_cleaned_test_functions.jsonl/85853
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 424 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6415, 17, 13783, 3700, 368, 341, 286, 2060, 10714, 10297, 57, 17, 486, 931, 7, 17, 18, 11, 220, 16, 18, 568, 18196, 1507, 320, 17, 18, 11, 220, 16, 18, 1106, 286, 2060, 10714, 33673, 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_ping_resp() { let mut data: &[u8] = &[0b11010000, 0b00000000]; assert_eq!(Ok(Some(Packet::Pingresp)), decode_slice(&mut data)); }
rust_cleaned_test_functions.jsonl/77901
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71661, 35160, 368, 341, 262, 1077, 5206, 821, 25, 44590, 84, 23, 60, 284, 44590, 15, 65, 16, 16, 15, 16, 15, 15, 15, 15, 11, 220, 15, 65, 15, 15, 15, 15, 15, 15, 15, 15, 935, 262, 2060...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_display_impls() { let hex = "ca843279e3427144cead5e4d5999a3d0"; let upper_hex = "CA843279E3427144CEAD5E4D5999A3D0"; let address = AccountAddress::from_hex(hex).unwrap(); assert_eq!(format!("{}", address), upper_hex); assert_eq!(format!("{:?}", address), ...
rust_cleaned_test_functions.jsonl/38746
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 288 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14825, 21007, 82, 368, 341, 286, 1077, 12371, 284, 330, 924, 23, 19, 18, 17, 22, 24, 68, 18, 19, 17, 22, 16, 19, 19, 346, 329, 20, 68, 19, 67, 20, 24, 24, 24, 64, 18, 67, 15, 876, 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_bank_filter_valid_transaction_indexes() { assert_eq!( BankingStage::filter_valid_transaction_indexes( &[ (Err(TransactionError::BlockhashNotFound), None), (Err(TransactionError::BlockhashNotFound), None), ...
rust_cleaned_test_functions.jsonl/2932
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 681 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35733, 8727, 8337, 28884, 50161, 368, 341, 286, 2060, 10714, 33673, 310, 49499, 19398, 486, 5315, 8337, 28884, 50161, 1006, 394, 609, 9640, 503, 320, 7747, 76627, 1454, 486, 4713, 8296, 10372, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multiple_generate_enum_is_from_variant() { check_assist( generate_enum_is_method, r#" enum Variant { Undefined, Minor, Major$0, } impl Variant { /// Returns `true` if the variant is [`Minor`]. /// /// [`Minor`]: Variant::Minor #[must_u...
rust_cleaned_test_functions.jsonl/117718
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 423 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 48851, 31054, 6892, 5673, 46112, 368, 341, 286, 1779, 12083, 380, 1006, 310, 6923, 31054, 6892, 9032, 345, 310, 435, 2, 698, 9018, 39292, 341, 262, 62370, 345, 262, 29793, 345, 262, 17121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_diff_no_dups() { let from = Point3::new(2, 0, -3); let to = from + Vector3::new(-1, 2, 0); let radius = 2; let expected = cube_diff(&from, &to, radius); let actual: HashSet<Point3<i32>> = expected.iter().cloned().collect(); assert_eq!(expected.len(), actual.len()); }
rust_cleaned_test_functions.jsonl/5976
{ "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, 15850, 6536, 814, 8602, 368, 341, 262, 1077, 504, 284, 5126, 18, 486, 931, 7, 17, 11, 220, 15, 11, 481, 18, 317, 262, 1077, 311, 284, 504, 488, 4196, 18, 486, 931, 4080, 16, 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_bank_hash_consistency() { solana_logger::setup(); let mut genesis_config = GenesisConfig::new( &[( Pubkey::new(&[42; 32]), Account::new(1_000_000_000_000, 0, &system_program::id()), )], &[], ); g...
rust_cleaned_test_functions.jsonl/116329
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1019 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35733, 8950, 31971, 47094, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 5206, 59366, 5332, 284, 40788, 2648, 486, 931, 1006, 310, 44590, 1006, 394, 22611, 792, 486, 931, 2099, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_disbursing_maturity_with_no_maturity_fails() { local_test_on_sns_subnet(|runtime| async move { let user = Sender::from_keypair(&TEST_USER1_KEYPAIR); let account_identifier = AccountIdentifier::from(user.get_principal_id()); let alloc = Tokens::from_tokens(1000).unwrap...
rust_cleaned_test_functions.jsonl/107253
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1231 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9932, 65, 1723, 287, 717, 37854, 6615, 6536, 717, 37854, 761, 6209, 368, 341, 262, 2205, 4452, 4470, 643, 4412, 95681, 22428, 22255, 91, 3312, 3271, 341, 286, 1077, 1196, 284, 54610, 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...
2
#[test] fn test_request_authorization_with_a_signer() { let signer = Signer::new( PRIVATE_KEY.as_bytes(), "89AFRD1X22", "ASDFQWERTY", Duration::from_secs(100), ) .unwrap(); let builder = PlainNotificationBuilder::new("test"); ...
rust_cleaned_test_functions.jsonl/109648
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 275 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 22938, 2022, 6615, 4306, 11172, 261, 368, 341, 286, 1077, 70039, 284, 7075, 261, 486, 931, 1006, 310, 57793, 6600, 5357, 12524, 3148, 310, 330, 23, 24, 8276, 36690, 16, 55, 17, 17, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_all_refs_decl_module() { check( r#" //- /lib.rs mod foo$0; use foo::Foo; fn f() { let i = Foo { n: 5 }; } //- /foo.rs pub struct Foo { pub n: u32, } "#, expect![[r#" foo Module FileId(0) 0..8 4..7 FileId(0) 14..17 ...
rust_cleaned_test_functions.jsonl/60649
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 5705, 60638, 35814, 10750, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 61463, 608, 2740, 25638, 198, 2593, 15229, 3, 15, 401, 810, 15229, 486, 40923, 401, 8822, 282, 368, 341, 262, 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_regex_replace_failing() { let mut output = String::new(); let method = StringMethod { method: "regex_replace", variable: "$FOO", pattern: "[\"^f\" \"F\"]", selection: Select::All, }; method.handle(&mut output, ...
rust_cleaned_test_functions.jsonl/85286
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41832, 10633, 761, 14277, 368, 341, 286, 1077, 5206, 2550, 284, 923, 486, 931, 543, 286, 1077, 1714, 284, 923, 3523, 341, 310, 1714, 25, 262, 330, 26387, 10633, 756, 310, 3890, 25, 220, 5201, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_server_shutdown() { let server_port = utils::get_available_port(); let server_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::LOCALHOST), server_port); let mut server = NetworkServer::new(server_addr); let mut client = NetworkClient::new(server_addr); let dat...
rust_cleaned_test_functions.jsonl/52047
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 368 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12015, 54804, 368, 341, 286, 1077, 3538, 8716, 284, 12439, 486, 455, 26962, 8716, 543, 286, 1077, 3538, 7387, 284, 20954, 13986, 486, 931, 8972, 79, 13986, 486, 53, 19, 8972, 30168, 19, 13986, 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...
2
#[test] fn test_rx_packet_assembly() { // Test case: successful RX packet assembly. { create_context!(test_ctx, handler_ctx); let pkt = VsockPacket::from_rx_virtq_head( &handler_ctx.handler.rxvq.pop(&test_ctx.mem).unwrap(), ) .unwra...
rust_cleaned_test_functions.jsonl/17730
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 817 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24330, 21078, 11898, 5642, 368, 341, 286, 442, 3393, 1142, 25, 6849, 28170, 10151, 14614, 624, 286, 341, 310, 1855, 8467, 10297, 1944, 15147, 11, 7013, 15147, 317, 310, 1077, 34654, 284, 647, 1319...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_durable_nonce_transaction() { let (mut bank, _mint_keypair, custodian_keypair, nonce_keypair) = setup_nonce_with_bank(10_000_000, |_| {}, 5_000_000, 250_000, None).unwrap(); let alice_keypair = Keypair::new(); let alice_pubkey = alice_keypair.pubkey(); ...
rust_cleaned_test_functions.jsonl/2623
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 18329, 48508, 28884, 368, 341, 286, 1077, 320, 6984, 6073, 11, 716, 67791, 3097, 12670, 11, 16564, 63849, 3097, 12670, 11, 39676, 3097, 12670, 8, 4035, 310, 6505, 48508, 6615, 35733, 7, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_server_after_remove_itself() { let count = 3; let mut cluster = new_server_cluster(0, count); test_after_remove_itself(&mut cluster); }
rust_cleaned_test_functions.jsonl/107614
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 70 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12015, 19844, 18193, 14631, 721, 368, 341, 262, 1077, 1760, 284, 220, 18, 280, 262, 1077, 5206, 10652, 284, 501, 12015, 28441, 7, 15, 11, 1760, 317, 262, 1273, 19844, 18193, 14631, 721, 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_epsilon_search_zero() { let left_image = vec![vec![0u32; 2]; 1]; let right_image = vec![vec![0u32; 2]; 1]; let max_disparity = 2; let diffusion_graph = DiffusionGraph::initialize(left_image, right_image, max_disparity, 1.); let vertices = vec![...
rust_cleaned_test_functions.jsonl/106307
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 362 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 98983, 10716, 19359, 368, 341, 286, 1077, 2115, 4954, 284, 7486, 20703, 4083, 20703, 15, 84, 18, 17, 26, 220, 17, 5265, 220, 16, 935, 286, 1077, 1290, 4954, 284, 7486, 20703, 4083, 20703, 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_dmesg() { // a dummy test func with_kernel_module(|| { // ok strings let test_strs2 = [String::from("client ok"), String::from("Dev ok")]; assert_dmesg_contains(&test_strs2); }); }
rust_cleaned_test_functions.jsonl/37527
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 112 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 8828, 70, 368, 341, 262, 442, 264, 17292, 1273, 2915, 198, 262, 448, 26876, 10750, 79453, 341, 286, 442, 5394, 9069, 198, 286, 1077, 1273, 2895, 82, 17, 284, 508, 703, 486, 1499, 445, 297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ability_to_read_move_data() { // Test the mock libra interface implementation let (config, _genesis_key) = config_builder::test_config(); let node = setup_node_using_test_mocks(&config); verify_ability_to_read_move_data(node); // Test the json libra interface implementation ...
rust_cleaned_test_functions.jsonl/87527
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 95763, 2346, 6443, 17134, 1769, 368, 341, 262, 442, 3393, 279, 7860, 3051, 956, 3749, 8129, 198, 262, 1077, 320, 1676, 11, 716, 77894, 3097, 8, 284, 2193, 28532, 486, 1944, 5332, 543, 262, 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_openrr_formatter() { let config = LogConfig { directory: tempfile::tempdir().unwrap().path().to_path_buf(), ..Default::default() }; { let _guard = init_tracing_with_file_appender(config.clone(), "prefix".to_string()); tracin...
rust_cleaned_test_functions.jsonl/65306
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11311, 634, 73965, 368, 341, 286, 1077, 2193, 284, 2835, 2648, 341, 310, 6220, 25, 54819, 486, 3888, 3741, 1005, 15454, 1005, 2343, 1005, 983, 2638, 10363, 3148, 310, 5241, 3675, 486, 2258, 741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_nonce_get_from() -> Result<()> { let mut m = Message::new(); let v = "example.org".to_owned(); m.add(ATTR_NONCE, v.as_bytes()); m.write_header(); let mut m2 = Message { raw: Vec::with_capacity(256), ..Default::default() }; let result = TextAttribute:...
rust_cleaned_test_functions.jsonl/57160
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 505 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48508, 3062, 5673, 368, 1464, 5714, 71698, 341, 262, 1077, 5206, 296, 284, 4856, 486, 931, 543, 262, 1077, 348, 284, 330, 8687, 2659, 3263, 983, 51973, 543, 262, 296, 1364, 7, 27880, 22128, 2104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_empty_needle() { rsearch_test!("", "", Some(0)); rsearch_test!("1", "", Some(1)); let haystack = "111 a 111b"; rsearch_test!(haystack, "", Some(10)); }
rust_cleaned_test_functions.jsonl/19412
{ "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, 15124, 71506, 273, 368, 341, 286, 435, 1836, 4452, 17223, 497, 7342, 4329, 7, 15, 5905, 715, 286, 435, 1836, 4452, 17223, 16, 497, 7342, 4329, 7, 16, 5905, 715, 286, 1077, 88447, 284, 330, 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_doc_url_struct() { check( r#" pub struct Fo$0o; "#, expect![[r#"https://docs.rs/test/*/test/struct.Foo.html"#]], ); }
rust_cleaned_test_functions.jsonl/61955
{ "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, 18869, 2903, 15126, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 9585, 2036, 31657, 3, 15, 78, 280, 57676, 345, 310, 1720, 0, 15505, 81, 55543, 2428, 1110, 14120, 25638, 12697, 91537, 1944, 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
#[test] fn test_difficulty() { let test_array1 = gen_difficulty_array(8); assert_eq!(0, test_array1[0]); assert_eq!(255, test_array1[1]); assert_eq!(255, test_array1[31]); let test_array1 = gen_difficulty_array(9); assert_eq!(0, test_array1[0]); assert_eq...
rust_cleaned_test_functions.jsonl/18472
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 493 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15850, 25990, 368, 341, 286, 1077, 1273, 3858, 16, 284, 4081, 15850, 25990, 3858, 7, 23, 317, 286, 2060, 10714, 10297, 15, 11, 1273, 3858, 16, 58, 15, 2558, 286, 2060, 10714, 10297, 17, 20, 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_stats_string() { let harness = TestHarness::new(); let allocator = harness.create_allocator(); let allocation_info = vk_mem::AllocationCreateInfo { usage: vk_mem::MemoryUsage::GpuOnly, ..Default::default() }; let stats_1 = allocator.build_stats_string...
rust_cleaned_test_functions.jsonl/51071
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 583 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15381, 3904, 368, 972, 262, 1077, 32408, 284, 3393, 74248, 486, 931, 1647, 262, 1077, 43655, 284, 32408, 2520, 56910, 1647, 262, 1077, 23757, 3109, 284, 34283, 12976, 486, 78316, 61101, 972, 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_is_locked_out_root_slot_child_pass() { let mut tower = Tower::new_for_tests(0, 0.67); let ancestors: HashSet<Slot> = vec![0].into_iter().collect(); tower.vote_state.root_slot = Some(0); assert!(!tower.is_locked_out(1, &ancestors)); }
rust_cleaned_test_functions.jsonl/61131
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 60271, 6068, 12993, 27563, 17268, 15464, 368, 341, 286, 1077, 5206, 21271, 284, 21938, 486, 931, 5478, 32509, 7, 15, 11, 220, 15, 13, 21, 22, 317, 286, 1077, 37518, 25, 18931, 27, 19877, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_contiguous_neg_strides() { let s = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; let a = ArrayView::from_shape((2, 3, 2).strides((1, 4, 2)), &s).unwrap(); assert_eq!( a, arr3(&[[[0, 2], [4, 6], [8, 10]], [[1, 3], [5, 7], [9, 11]]]) ); assert!(a.as_slice_memo...
rust_cleaned_test_functions.jsonl/92623
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1017 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10260, 27029, 28209, 2895, 3341, 368, 341, 262, 1077, 274, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 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_content() { let mut wheel = LocalTimer::<i32, 1000, 60, 60, 24>::new(1, 0); for i in 0..10000 { wheel.insert(i, 10000 ); } for i in 0..10000 { let time = i; while wheel.check_sleep(time) == 0 { if let Some(item) = wheel.pop(time) ...
rust_cleaned_test_functions.jsonl/24003
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 226 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7495, 368, 8022, 262, 1077, 5206, 13284, 284, 8774, 10105, 27638, 72, 18, 17, 11, 220, 16, 15, 15, 15, 11, 220, 21, 15, 11, 220, 21, 15, 11, 220, 17, 19, 6831, 931, 7, 16, 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...
5
#[test] fn test_pass() { let mut runner = TestRunner::default(); let result = runner.run(&(1u32..), |v| { assert!(v > 0); Ok(()) }); assert_eq!(Ok(()), result); }
rust_cleaned_test_functions.jsonl/38549
{ "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, 15464, 368, 341, 286, 1077, 5206, 22259, 284, 3393, 19486, 486, 2258, 543, 286, 1077, 1102, 284, 22259, 7634, 29089, 16, 84, 18, 17, 496, 701, 760, 85, 91, 314, 2060, 10297, 85, 861, 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
#[test] fn test_vertices_as_typecheck() { let width = 2.0; let verticies_test_original_1: Vec<[f32; 3]> = vec![ [-width, -width, -width], [width, -width, -width], [width, width, -width], [-width, width, -width], [-width, -width, width]...
rust_cleaned_test_functions.jsonl/15029
{ "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, 37720, 11898, 1819, 2028, 368, 341, 286, 1077, 2374, 284, 220, 17, 13, 15, 401, 286, 1077, 5198, 44339, 4452, 39556, 62, 16, 25, 11312, 66746, 69, 18, 17, 26, 220, 18, 25669, 284, 7486, 90515,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_username_password_from_url() { assert_eq!( extract_cred_from_url("https://user:pwd@github.com"), BasicAuthCredential::new( Some("user".to_owned()), Some("pwd".to_owned()) ) ); }
rust_cleaned_test_functions.jsonl/101751
{ "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, 39123, 21588, 10122, 5673, 2903, 368, 341, 197, 6948, 10714, 33673, 298, 8122, 2144, 73475, 5673, 2903, 445, 2428, 1110, 872, 25, 25565, 31, 5204, 905, 4461, 298, 12791, 5971, 5087, 48265, 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_unconditional_branch() { let context = Context::create(); let builder = context.create_builder(); let module = context.create_module("my_mod"); let void_type = context.void_type(); let fn_type = void_type.fn_type(&[], false); let fn_value = module.add_function("my_fn", fn...
rust_cleaned_test_functions.jsonl/39116
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 254 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 45368, 28031, 368, 341, 262, 1077, 2266, 284, 9608, 486, 3182, 543, 262, 1077, 7363, 284, 2266, 2520, 28532, 543, 262, 1077, 4688, 284, 2266, 2520, 10750, 445, 2408, 7480, 797, 262, 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_drop() { let mut a = 0; let mut b = 0; let mut c = 0; { let mut fixed = FixedVecDeque::<[Foo; 2]>::new(); fixed.push_back().value = Some(&mut a); fixed.push_back().value = Some(&mut b); fixed.push_back().value = Som...
rust_cleaned_test_functions.jsonl/3286
{ "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, 29584, 368, 341, 286, 1077, 5206, 264, 284, 220, 15, 280, 286, 1077, 5206, 293, 284, 220, 15, 280, 286, 1077, 5206, 272, 284, 220, 15, 401, 286, 341, 310, 1077, 5206, 8356, 284, 20149, 10050, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_writer_properties_default_settings() { let props = WriterProperties::builder().build(); assert_eq!(props.data_pagesize_limit(), DEFAULT_PAGE_SIZE); assert_eq!( props.dictionary_pagesize_limit(), DEFAULT_DICTIONARY_PAGE_SIZE_LIMIT ); ...
rust_cleaned_test_functions.jsonl/56722
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 586 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28908, 25158, 9993, 10853, 368, 341, 286, 1077, 6914, 284, 29404, 7903, 486, 17850, 1005, 5834, 543, 286, 2060, 10714, 10297, 4761, 2196, 21655, 551, 14763, 1507, 11955, 19971, 4098, 317, 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_basic() { let mut stack = Stack::new(); // The stack is empty assert!(stack.empty()); // Fill the stack stack.push(5i32); stack.push(8); stack.push(9); // The stack is not empty assert!(!stack.empty()); // The element at the top is 9 assert!(stack....
rust_cleaned_test_functions.jsonl/57397
{ "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, 34729, 368, 341, 262, 1077, 5206, 5611, 284, 14284, 486, 931, 1428, 262, 442, 576, 5611, 374, 4287, 198, 262, 2060, 10297, 7693, 9178, 5231, 262, 442, 21979, 279, 5611, 198, 262, 5611, 2552, 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_find_file_rel_path() { let sf = FindFile::new(".".to_string(), "finder.rs".to_string(), FileType::Code); assert_eq!(sf.filepath(), "./finder.rs"); }
rust_cleaned_test_functions.jsonl/118671
{ "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, 21814, 2458, 13557, 2638, 368, 341, 286, 1077, 13124, 284, 7379, 1703, 486, 931, 445, 36911, 983, 3904, 1507, 330, 33339, 25638, 3263, 983, 3904, 1507, 93238, 486, 2078, 317, 286, 2060, 10714, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_into_async_read() { let stream = stream::iter(1..=3).map(|_| Ok(vec![1, 2, 3, 4, 5])); let mut reader = stream.into_async_read(); let mut buf = vec![0; 3]; assert_read!(reader, &mut buf, 3); assert_eq!(&buf, &[1, 2, 3]); assert_read!(reader, &mut...
rust_cleaned_test_functions.jsonl/65291
{ "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, 45514, 28346, 6443, 368, 341, 286, 1077, 4269, 284, 4269, 486, 2015, 7, 16, 496, 28, 18, 568, 2186, 22428, 35395, 7622, 25592, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_store_nonexistant_path() { let interface_config = FileBackedConfig::load(&"not/a/real/path") .expect("failed to load the interface config"); assert_eq!( interface_config.store().unwrap_err().downcast_ref::<io::Error>().unwrap().kind(), io::Erro...
rust_cleaned_test_functions.jsonl/49775
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14809, 21637, 327, 11202, 2638, 368, 341, 286, 1077, 3749, 5332, 284, 2887, 3707, 291, 2648, 486, 1078, 2099, 1, 1921, 14186, 14, 7951, 50976, 1138, 310, 659, 17119, 445, 16091, 311, 2795, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidator { server, leader_data, alice, ledger_path, .. } = TestValidator::run(); let (sender, receiver) = channel(); run_local_faucet(alice, sender, None); let faucet_addr = receiver.recv().unwrap(); ...
rust_cleaned_test_functions.jsonl/60554
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 726, 2259, 87566, 40739, 368, 341, 262, 1077, 3393, 14256, 341, 286, 3538, 345, 286, 7653, 1769, 345, 286, 70433, 345, 286, 46933, 2638, 345, 286, 54538, 262, 335, 284, 3393, 14256, 486, 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_reject_stale_term_message() { let _guard = setup(); let mut r = new_test_raft(1, vec![1, 2, 3], 10, 1, new_storage()); fail::cfg("before_step", "panic").unwrap(); r.load_state(&hard_state(2, 0, 0)); let mut m = new_message(0, 0, MessageType::MsgAppend, 0); m.set_term(r.t...
rust_cleaned_test_functions.jsonl/121609
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 583, 1261, 1574, 17464, 6462, 368, 341, 262, 1077, 716, 26098, 284, 6505, 543, 262, 1077, 5206, 435, 284, 501, 4452, 62, 2944, 7, 16, 11, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_and_put_duplicate_key() { let mut token_cache = TokenCache::new(CACHE_SIZE); let key = build_test_key("", "key"); let original_token = build_test_token(LONG_EXPIRY, "original"); token_cache.put(key.clone(), original_token.clone()); assert_eq!(token_cac...
rust_cleaned_test_functions.jsonl/88810
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 338 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 8378, 15557, 70434, 3097, 368, 341, 286, 1077, 5206, 3950, 11529, 284, 9660, 8233, 486, 931, 3025, 17810, 4098, 317, 286, 1077, 1376, 284, 1936, 4452, 3097, 19814, 330, 792, 797, 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_verify_two_element_accumulator() { let element0_hash = b"hello".test_only_hash(); let element1_hash = b"world".test_only_hash(); let root_hash = TestAccumulatorInternalNode::new(element0_hash, element1_hash).hash(); assert!(TestAccumulatorProof::new(vec![element1_hash]) ...
rust_cleaned_test_functions.jsonl/33620
{ "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, 35638, 23241, 7894, 75837, 10511, 368, 341, 262, 1077, 2392, 15, 8950, 284, 293, 1, 14990, 3263, 1944, 18410, 8950, 543, 262, 1077, 2392, 16, 8950, 284, 293, 1, 14615, 3263, 1944, 18410, 8950, 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_f64() { test_mem_compare!( get_f64_samples(), true, encode_f64, decode_f64, write_f64, read_f64, ); }
rust_cleaned_test_functions.jsonl/56912
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 21, 19, 368, 341, 286, 1273, 12976, 32235, 33673, 310, 633, 761, 21, 19, 18297, 3148, 310, 830, 345, 310, 16164, 761, 21, 19, 345, 310, 16895, 761, 21, 19, 345, 310, 3270, 761, 21, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1