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_complete_1() { let square = Square::try_new(vec![8, 1, 6, 3, 5, 7]).unwrap(); assert!(square.is_magic()); square.render(); }
rust_cleaned_test_functions.jsonl/13908
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 74 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27675, 62, 16, 368, 341, 262, 1077, 9334, 284, 15619, 486, 1539, 5921, 25592, 20703, 23, 11, 220, 16, 11, 220, 21, 11, 220, 18, 11, 220, 20, 11, 220, 22, 10697, 15454, 543, 262, 2060, 10297,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_deserialize_utc_date_time_overflows() { let _guard = LOCK.run_concurrently(); let t: i64 = 1_530_492_218 * 1_000 + 999; let mut raw0 = vec![0x09, b'A', 0x00]; raw0.write_all(&t.to_le_bytes()).unwrap(); let mut raw = vec![]; raw.write_all(&((raw0.len() + 4 + 1) as i32).t...
rust_cleaned_test_functions.jsonl/49154
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 282 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 84259, 4164, 3009, 15431, 38140, 368, 341, 262, 1077, 716, 26098, 284, 49463, 7634, 3382, 58202, 543, 262, 1077, 259, 25, 600, 21, 19, 284, 220, 16, 62, 20, 18, 15, 62, 19, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encode_decode() { let txn_info = TransactionInfo::new( HashValue::random(), HashValue::random(), HashValue::random(), 7, StatusCode::EXECUTED, ); assert_encode_decode::<TransactionInfoSchema>(&0u64, &txn_info); }
rust_cleaned_test_functions.jsonl/89280
{ "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, 11224, 15227, 368, 341, 262, 1077, 49721, 3109, 284, 17869, 1731, 486, 931, 1006, 286, 6531, 1130, 486, 11463, 3148, 286, 6531, 1130, 486, 11463, 3148, 286, 6531, 1130, 486, 11463, 3148, 286, 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_request() { use helix::*; let req = GetStreamTagsRequest::builder() .broadcaster_id("198704263".to_string()) .build(); // From twitch docs let data = "\ {\n\ \"data\": [\n\ {\n\ \"tag_id\": \"621fb5bf-5498-4d8f-b4ac-db4d40d401bf\",\n\ ...
rust_cleaned_test_functions.jsonl/96077
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1304 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 368, 341, 262, 990, 11338, 941, 56162, 262, 1077, 4232, 284, 2126, 3027, 15930, 1900, 486, 17850, 741, 286, 659, 65, 8546, 32020, 842, 445, 16, 24, 23, 22, 15, 19, 17, 21, 18, 3263, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_virtual_alloc_free() { const SIZE: SIZE_T = 0x1000; let addr = unsafe { VirtualAlloc( std::ptr::null_mut(), SIZE, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE, ) }; assert!(addr !=...
rust_cleaned_test_functions.jsonl/46650
{ "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, 58730, 14802, 8905, 368, 341, 286, 733, 25341, 25, 25341, 1139, 284, 220, 15, 87, 16, 15, 15, 15, 280, 286, 1077, 10789, 284, 19860, 341, 310, 20721, 25154, 1006, 394, 1460, 486, 3505, 486, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cond_deku() { let test_data: Vec<u8> = [0x01, 0x02].to_vec(); let ret_read = samples::CondDeku::try_from(test_data.as_ref()).unwrap(); assert_eq!( samples::CondDeku { field_a: 0x01, field_b: Some(0x02), }, ret_read ); let ret_...
rust_cleaned_test_functions.jsonl/123233
{ "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, 24433, 2259, 12133, 368, 341, 262, 1077, 1273, 1769, 25, 11312, 34837, 23, 29, 284, 508, 15, 87, 15, 16, 11, 220, 15, 87, 15, 17, 936, 983, 13251, 1428, 262, 1077, 2112, 6443, 284, 10469, 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, 1, 1...
1
#[test] fn test_statsd_client_gauge_f64() { let client = new_nop_client("client.test"); let expected = Gauge::new_f64("client.test.", "gauge.key", 5.5); assert_eq!(expected, client.gauge("gauge.key", 5.5).unwrap()); }
rust_cleaned_test_functions.jsonl/106613
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 107 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15381, 67, 8179, 1889, 19392, 761, 21, 19, 368, 341, 262, 1077, 2943, 284, 501, 1089, 453, 8179, 445, 2972, 5958, 797, 262, 1077, 3601, 284, 72060, 486, 931, 761, 21, 19, 445, 2972, 5958, 1046...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_point_addition_bad_length() -> std::result::Result<(), PrecompileFailure> { let input: Vec<u8> = [0u8; 33].to_vec(); let cost: u64 = 1; match Curve25519Add::execute(&input, cost) { Ok((_, _out)) => { panic!("Test not expected to work"); } Err(e) => { assert_eq!( e, ...
rust_cleaned_test_functions.jsonl/59618
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6085, 2891, 680, 34199, 5118, 368, 1464, 1460, 486, 1382, 486, 2077, 68843, 4968, 20433, 17507, 29, 341, 197, 10217, 1946, 25, 11312, 34837, 23, 29, 284, 508, 15, 84, 23, 26, 220, 18, 18, 936,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_internally_a_roundtrip() { let v = EnumStructInternally::VariantA { foo: 1, bar: 2, different: 3, }; test_roundtrip(v); }
rust_cleaned_test_functions.jsonl/110485
{ "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, 4042, 932, 745, 4306, 29896, 32981, 368, 341, 262, 1077, 348, 284, 14086, 9422, 67916, 745, 486, 20746, 32, 341, 286, 15229, 25, 220, 16, 345, 286, 3619, 25, 220, 17, 345, 286, 2155, 25, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ceil() { assert_eq!(ceil(0, 1), 0); assert_eq!(ceil(1, 1), 1); assert_eq!(ceil(1, 2), 1); assert_eq!(ceil(1, 8), 1); assert_eq!(ceil(7, 8), 1); assert_eq!(ceil(8, 8), 1); assert_eq!(ceil(9, 8), 2); assert_eq!(ceil(9, 9), 1); ...
rust_cleaned_test_functions.jsonl/6790
{ "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, 62, 22058, 368, 341, 286, 2060, 10714, 10297, 22058, 7, 15, 11, 220, 16, 701, 220, 15, 317, 286, 2060, 10714, 10297, 22058, 7, 16, 11, 220, 16, 701, 220, 16, 317, 286, 2060, 10714, 10297, 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_leader_sync_follower_log() { let l = default_logger(); let ents = vec![ empty_entry(1, 2), empty_entry(1, 3), empty_entry(4, 4), empty_entry(4, 5), empty_entry(5, 6), empty_entry(5, 7), empty_entry(6, 8), empty_entry(6, 9), ...
rust_cleaned_test_functions.jsonl/62309
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79991, 23008, 761, 29034, 5224, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 36852, 284, 7486, 90515, 286, 4287, 9078, 7, 16, 11, 220, 17, 1326, 286, 4287, 9078, 7, 16, 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...
3
#[test] fn test_perceptron_learn() { let mut rng = rand::thread_rng(); let random_weights: Vec<f32> = (0..2).map(|_| rng.gen()).collect(); let mut p_and = perceptron::Node { weights: random_weights, bias: rng.gen(), learning_rate: 0.1, }; let input1 = vec![0.0, 0.0];...
rust_cleaned_test_functions.jsonl/130159
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 417 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5678, 346, 94710, 98948, 368, 341, 262, 1077, 5206, 28422, 284, 10382, 486, 4528, 66849, 543, 262, 1077, 4194, 21114, 25, 11312, 63895, 18, 17, 29, 284, 320, 15, 496, 17, 568, 2186, 22428, 35395...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_call_search_with_args() { let output = Command::new("./target/release/tio") .args([ "search", "830e3f2aeb7409b27683480e6edd0fe6c1f3c503486c31b5df5a0472b395433d", ]) .output() .expect("failed to search for mes...
rust_cleaned_test_functions.jsonl/41469
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13429, 10716, 6615, 8384, 368, 341, 286, 1077, 2550, 284, 7348, 486, 931, 13988, 5657, 88648, 5523, 815, 1138, 310, 659, 2116, 8956, 394, 330, 1836, 756, 394, 330, 23, 18, 15, 68, 18, 69, 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_function_param_anon_lifetime() { check_assist( introduce_named_lifetime, r#"fn my_fun(x: X<'_<|>>)"#, r#"fn my_fun<'a>(x: X<'a>)"#, ); }
rust_cleaned_test_functions.jsonl/109558
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9174, 4090, 12008, 263, 98827, 368, 341, 286, 1779, 12083, 380, 1006, 310, 19131, 71834, 98827, 345, 310, 435, 55543, 8822, 847, 28315, 2075, 25, 1599, 18291, 41743, 91, 2452, 9940, 2, 345, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_net_hotplug() { let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string()); let guest = Guest::new(Box::new(focal)); let kernel_path = direct_kernel_boot_path(); let api_socket = temp_api_path(&guest.tmp_dir); // Boot without ne...
rust_cleaned_test_functions.jsonl/29414
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2093 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19722, 33433, 47474, 368, 341, 310, 1077, 41099, 284, 34960, 47583, 2648, 486, 931, 7, 3788, 49533, 19121, 4708, 2389, 3904, 1423, 310, 1077, 8640, 284, 26215, 486, 931, 67758, 486, 931, 955, 3683...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_generic_i64_get() { let t1 = Generic { data: 2i64 }; assert_eq!( rune_n! { make_native_module().expect("failed making native module"), (t1, ), i64 => pub fn main(v) { v.data } }, 2 ); }
rust_cleaned_test_functions.jsonl/77914
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 170 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41232, 5318, 21, 19, 3062, 368, 341, 262, 1077, 259, 16, 284, 21281, 314, 821, 25, 220, 17, 72, 21, 19, 2605, 262, 2060, 10714, 33673, 286, 63499, 1089, 0, 341, 310, 1281, 44494, 10750, 1005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_c_ns_method_calls() { let unique_ptr = ffi2::ns_c_return_unique_ptr_ns(); let old_value = unique_ptr.get(); assert_eq!(1000, old_value); }
rust_cleaned_test_functions.jsonl/50902
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 81 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 34728, 9032, 45636, 368, 341, 262, 1077, 4911, 4348, 284, 76956, 17, 486, 4412, 666, 12511, 21218, 4348, 34728, 1428, 262, 1077, 2310, 3142, 284, 4911, 4348, 670, 543, 262, 2060, 10714, 10297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_vec_segment() { let dat = vec![1u8, 2, 3, 5, 10]; assert_write_check_read(dat, 8); }
rust_cleaned_test_functions.jsonl/118840
{ "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, 13251, 28061, 368, 341, 262, 1077, 3258, 284, 7486, 20703, 16, 84, 23, 11, 220, 17, 11, 220, 18, 11, 220, 20, 11, 220, 16, 15, 935, 262, 2060, 9165, 7200, 6443, 44841, 11, 220, 23, 317, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_run_program() { init(); let mut prog = [1, 0, 0, 0, 99]; run_program(&mut prog, || 42, |_| {}); assert_eq!(prog, [2, 0, 0, 0, 99]); let mut prog = [2, 3, 0, 3, 99]; run_program(&mut prog, || 42, |_| {}); assert_eq!(prog, [2, 3, 0, 6, 99])...
rust_cleaned_test_functions.jsonl/28216
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 347 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 25096, 368, 341, 286, 2930, 1428, 286, 1077, 5206, 29271, 284, 508, 16, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 24, 24, 935, 286, 1598, 25096, 2099, 6984, 29271, 11, 1369, 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...
5
#[test] fn test_hash_ops() { let ctx = TestContext::new(); let mut con = ctx.connection(); redis::cmd("HSET") .arg("foo") .arg("key_1") .arg(1) .execute(&mut con); redis::cmd("HSET") .arg("foo") .arg("key_2") .arg(2) .execute(&mut ...
rust_cleaned_test_functions.jsonl/108945
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 378 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8950, 21959, 368, 341, 262, 1077, 5635, 284, 3393, 1972, 486, 931, 543, 262, 1077, 5206, 390, 284, 5635, 20310, 1428, 262, 20870, 486, 8710, 445, 39, 5884, 1138, 286, 659, 858, 445, 7975, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ack() { let s = [0x00, 0x04, 0x00, 0x01]; let ack = ACK::parse(&s).unwrap(); assert_eq!(ack.block(), 1); }
rust_cleaned_test_functions.jsonl/104030
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 93 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 48447, 368, 341, 286, 1077, 274, 284, 508, 15, 87, 15, 15, 11, 220, 15, 87, 15, 19, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 16, 935, 286, 1077, 10725, 284, 53763, 486, 6400,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ilrawtag_with_value_bad_id() { const SAMPLE: [u8; 5] = [0, 1, 2, 3, 4]; ILRawTag::with_value(15, &SAMPLE); }
rust_cleaned_test_functions.jsonl/25713
{ "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, 26743, 1041, 4578, 6615, 3142, 34199, 842, 368, 341, 262, 733, 62420, 25, 508, 84, 23, 26, 220, 20, 60, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 262, 11344, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_cookies_on_redirect() -> Result<(), Error> { let testserver = TestServer::new(cookie_and_redirect); let url = format!("http://localhost:{}/first", testserver.port); let agent = Agent::new(); agent.post(&url).call()?; let cookies = agent.state.cookie_tin.get_request_cookies( ...
rust_cleaned_test_functions.jsonl/73114
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 94158, 4470, 30043, 368, 1464, 5714, 68843, 4600, 29, 341, 262, 1077, 1273, 4030, 284, 3393, 5475, 486, 931, 56351, 8378, 30043, 317, 262, 1077, 2515, 284, 3561, 17223, 1254, 1110, 8301, 12547, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_identifier_json_ser_deser() { let hex = "942b6c0bd43bdcb24f3edfe7fadbc77054ecc4f2"; let identifier = Identifier::from_hex(hex).unwrap(); #[derive(Debug, Serialize, Deserialize, PartialEq)] struct HasAnIdentifier { identifier: Identifier, } let has_an_identifier = HasAnIdentifier...
rust_cleaned_test_functions.jsonl/60449
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 246 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33176, 9455, 75861, 15768, 261, 368, 341, 197, 10217, 12371, 284, 330, 24, 19, 17, 65, 21, 66, 15, 8940, 19, 18, 8940, 7221, 17, 19, 69, 18, 291, 1859, 22, 83059, 8904, 22, 22, 15, 20, 19,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_program_address() { for _ in 0..1_000 { let program_id = Pubkey::new_unique(); let (address, bump_seed) = try_find_program_address(&[b"Lil'", b"Bits"], &program_id, 100).unwrap(); assert_eq!( address, ...
rust_cleaned_test_functions.jsonl/35336
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1086 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 25096, 6744, 368, 341, 286, 369, 716, 304, 220, 15, 496, 16, 62, 15, 15, 15, 341, 310, 1077, 2025, 842, 284, 22611, 792, 486, 931, 21218, 543, 310, 1077, 320, 4995, 11, 27575, 33809, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_install_copy_file() { let (at, mut ucmd) = at_and_ucmd!(); let file1 = "source_file"; let file2 = "target_file"; at.touch(file1); ucmd.arg(file1).arg(file2).succeeds().no_stderr(); assert!(at.file_exists(file1)); assert!(at.file_exists(file2)); }
rust_cleaned_test_functions.jsonl/47030
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34245, 16096, 2458, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 1034, 16, 284, 330, 2427, 2458, 876, 262, 1077, 1034, 17, 284, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_router_alert() { let mut buffer: Vec<u8> = vec![148, 4, 0, 0]; let options = Options::<_, Ipv4OptionsImpl>::parse(buffer.as_mut()).unwrap(); let rtralt = options.iter().next().unwrap(); assert!(rtralt.copied); assert_eq!(rtralt.da...
rust_cleaned_test_functions.jsonl/31699
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 191 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 55587, 35717, 368, 341, 310, 1077, 5206, 4147, 25, 11312, 34837, 23, 29, 284, 7486, 20703, 16, 19, 23, 11, 220, 19, 11, 220, 15, 11, 220, 15, 935, 310, 1077, 2606, 284, 14566, 27638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fq_repr_num_bits() { let mut a = BigInteger256::from(0); assert_eq!(0, a.num_bits()); a = BigInteger256::from(1); for i in 1..257 { assert_eq!(i, a.num_bits()); a.mul2(); } assert_eq!(0, a.num_bits()); }
rust_cleaned_test_functions.jsonl/3541
{ "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, 761, 80, 68535, 4273, 20034, 368, 341, 262, 1077, 5206, 264, 284, 34042, 17, 20, 21, 486, 1499, 7, 15, 317, 262, 2060, 10714, 10297, 15, 11, 264, 10522, 20034, 1423, 262, 264, 284, 34042, 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...
2
#[test] fn test_path_element() { use crate::prelude::*; let da = crate::create_mocked_drawing_area(300, 300, |m| { m.check_draw_path(|c, s, path| { assert_eq!(c, BLUE.to_rgba()); assert_eq!(s, 5); assert_eq!(path, vec![(100, 101), (105, 107), (150, 157)]); ...
rust_cleaned_test_functions.jsonl/76167
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 348 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2638, 7894, 368, 341, 262, 990, 17717, 486, 1726, 52538, 56162, 262, 1077, 2994, 284, 17717, 486, 3182, 34134, 291, 814, 1696, 15030, 7, 18, 15, 15, 11, 220, 18, 15, 15, 11, 760, 76, 91, 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_scans_match_expression() { let mut scanner = Scanner::new("<?php $a = match ($x) { 2, 1 => 1, default => 0 }; ?>"); scanner.scan().unwrap(); assert_eq!( token_list!(scanner.tokens), "<?php $a = match ( $x ) { 2 , 1 => 1 , default => 0 } ; ?>" ...
rust_cleaned_test_functions.jsonl/52961
{ "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, 13171, 596, 10708, 28068, 368, 341, 286, 1077, 5206, 20775, 284, 17170, 486, 931, 98276, 1208, 400, 64, 284, 2432, 1711, 87, 8, 314, 220, 17, 11, 220, 16, 589, 220, 16, 11, 1638, 589, 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_fmindex() { let text = b"GCCTTAACATTATTACGCCTA$"; let alphabet = dna::n_alphabet(); let sa = suffix_array(text); let bwt = bwt(text, &sa); let less = less(&bwt, &alphabet); let occ = Occ::new(&bwt, 3, &alphabet); let fm = FMIndex::new(&bwt,...
rust_cleaned_test_functions.jsonl/18359
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 256 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 78694, 1252, 368, 341, 286, 1077, 1467, 284, 293, 1, 22863, 1162, 15204, 1706, 21614, 21614, 1706, 22863, 1162, 32, 3, 876, 286, 1077, 27790, 284, 75334, 486, 77, 8418, 18485, 543, 286, 1077, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_day_digit() { init(); for n in 1..=31 { if n < 10 { let s: &str = &n.to_string(); let input = s.chars().collect::<Vec<_>>(); let result: Expr = (day_digit() - end()).parse(&input).to_result().unwrap(); assert_eq!(result, ValueExpr(n)); } ...
rust_cleaned_test_functions.jsonl/106895
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 321 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16763, 48403, 368, 341, 262, 2930, 543, 262, 369, 308, 304, 220, 16, 496, 28, 18, 16, 341, 414, 421, 308, 366, 220, 16, 15, 341, 286, 1077, 274, 25, 609, 495, 284, 609, 77, 2389, 3904, 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...
3
#[test] fn test_realtime_period_not_supported() { // arrange let tmp = create_temp_dir("test_realtime_period_not_supported") .expect("create temp directory for test"); let cpu = LinuxCpuBuilder::new().with_realtime_period(5).build(); // act let result = Cpu::...
rust_cleaned_test_functions.jsonl/126565
{ "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, 15266, 1678, 20818, 7913, 57885, 368, 341, 286, 442, 30893, 198, 286, 1077, 4174, 284, 1855, 11771, 4334, 445, 1944, 15266, 1678, 20818, 7913, 57885, 1138, 310, 659, 17119, 445, 3182, 2730, 6220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_doesnt_accept_wrong_port() { let mut s = socket_established(); s.rx_buffer = SocketBuffer::new(vec![0; 6]); s.assembler = Assembler::new(s.rx_buffer.capacity()); let tcp_repr = TcpRepr { seq_number: REMOTE_SEQ + 1, ack_number: Some(LOCAL_S...
rust_cleaned_test_functions.jsonl/1791
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 410 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 96374, 406, 35728, 75198, 8716, 368, 341, 286, 1077, 5206, 274, 284, 7575, 18583, 5102, 291, 543, 286, 274, 45348, 7776, 284, 20954, 4095, 486, 931, 25592, 20703, 15, 26, 220, 21, 2558, 286, 274...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transpile_jsx_pragma() { let specifier = resolve_url_or_path("https://deno.land/x/mod.ts") .expect("could not resolve specifier"); let source = r#" /** @jsx h */ /** @jsxFrag Fragment */ import { h, Fragment } from "https://deno.land/x/mod.ts"; function App() { return ( <div...
rust_cleaned_test_functions.jsonl/65184
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 419 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7965, 12192, 26250, 87, 620, 4101, 1728, 368, 341, 262, 1077, 97616, 284, 8830, 2903, 8734, 2638, 445, 2428, 1110, 5183, 78, 87627, 10776, 38479, 21288, 1138, 414, 659, 17119, 445, 28077, 537, 883...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fn_signature_with_docs_simple() { let info = call_info( r#" /// test // non-doc-comment fn foo(j: u32) -> u32 { j } fn bar() { let _ = foo(<|>); } "#, ); assert_eq!(info.parameters(), ["j: u32"]); assert_eq!(info.active_parameter, Some(0)); ...
rust_cleaned_test_functions.jsonl/55354
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15246, 39859, 6615, 49692, 30015, 368, 341, 286, 1077, 3546, 284, 1618, 3109, 1006, 310, 435, 2, 698, 2575, 1273, 198, 322, 2477, 11527, 45666, 198, 8822, 15229, 3325, 25, 575, 18, 17, 8, 1464, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_map_array_complex_structure() { // A made up structure for this test struct TestStructure { durp0: u64, durp1: String, durp2: f64, durp3: bool, } // Create the map and initialize a vector of TestStructure le...
rust_cleaned_test_functions.jsonl/40487
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 830 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5376, 3858, 41522, 38283, 368, 341, 286, 442, 362, 1865, 705, 5944, 369, 419, 1273, 198, 286, 2036, 3393, 22952, 341, 310, 10651, 79, 15, 25, 575, 21, 19, 345, 310, 10651, 79, 16, 25, 923, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_tuple_struct() { Python::with_gil(|py| { let tup = PyTuple::new(py, &[1.into_py(py), "test".into_py(py)]); let tup = Tuple::extract(tup.as_ref()); assert!(tup.is_err()); let tup = PyTuple::new(py, &["test".into_py(py), 1.into_py(py)]); let tup = Tuple:...
rust_cleaned_test_functions.jsonl/59470
{ "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, 21773, 15126, 368, 341, 262, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 286, 1077, 57385, 284, 80824, 486, 931, 46827, 11, 44590, 16, 39860, 40291, 46827, 701, 330, 1944, 3263, 18122, 4029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_same_merkle_root() { let dir1 = TempDir::new(super::gen_tempdir_name().as_str()).unwrap(); let path1 = dir1.path(); let db1 = create_database(path1); let dir2 = TempDir::new(super::gen_tempdir_name().as_str()).unwrap(); let path2 = dir2.path(); let...
rust_cleaned_test_functions.jsonl/115567
{ "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, 33574, 717, 16754, 273, 12993, 368, 341, 286, 1077, 5419, 16, 284, 19944, 6184, 486, 931, 56040, 486, 4370, 11771, 3741, 1269, 1005, 300, 2895, 6011, 15454, 543, 286, 1077, 1815, 16, 284, 5419, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid_email() { let email_service = OhMySmtp::new(format!("API_KEY")); assert_eq!( email_service.send(&Email::new( format!("from@email.address"), format!("test@-iana.org"), format!("Body text"), )), Err(Error::InvalidEmail) ...
rust_cleaned_test_functions.jsonl/67588
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 9172, 368, 341, 262, 1077, 2551, 12267, 284, 8670, 5050, 10673, 790, 486, 931, 20698, 17223, 7082, 6600, 14929, 262, 2060, 10714, 33673, 286, 2551, 12267, 5219, 2099, 4781, 486, 931, 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_edgengram_tokenizer_max_size() { let tokenizer = NGramTokenizer::new("hello", 2, 1000, Edge::Left); let tokens = tokenizer.collect::<Vec<Token>>(); assert_eq!(tokens, vec![ Token { term: Term::from_string("he"), position: 1 }, Token { term: Term::...
rust_cleaned_test_functions.jsonl/50144
{ "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, 32370, 70, 826, 2396, 6458, 3135, 6345, 2368, 368, 341, 286, 1077, 45958, 284, 20018, 2396, 37434, 486, 931, 445, 14990, 497, 220, 17, 11, 220, 16, 15, 15, 15, 11, 10349, 486, 5415, 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_new_unaligned_sized() { // new_unaligned_from_suffix return empty slices. Test that an unaligned // buffer whose length is a multiple of the element size works for // memory. let mut buf = [0u8; 8]; test_new_helper_unal...
rust_cleaned_test_functions.jsonl/18895
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 4907, 47142, 643, 1506, 368, 341, 73363, 286, 442, 501, 4907, 47142, 5673, 37151, 470, 4287, 34254, 13, 3393, 429, 458, 650, 47142, 198, 286, 442, 4147, 6693, 3084, 374, 264, 5248, 315, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pop_push() { let mut c = ContextImpl(vec![]); c.push(wrap(10i32)); assert_eq!(1, c.len()); assert_eq!(10i32, unwrap::<i32>(c.pop().unwrap()).unwrap()); assert!(c.is_empty()); }
rust_cleaned_test_functions.jsonl/7108
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17061, 14218, 368, 341, 286, 1077, 5206, 272, 284, 9608, 9673, 25592, 0, 56703, 286, 272, 2552, 3622, 4611, 7, 16, 15, 72, 18, 17, 1106, 286, 2060, 10714, 10297, 16, 11, 272, 19406, 1423, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_txs() { let mut r = Register::new(); r.set_X(0xFF); txs(&mut r); assert_eq!(r.get_S(),0xFF) }
rust_cleaned_test_functions.jsonl/14192
{ "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, 17805, 82, 368, 341, 262, 1077, 5206, 435, 284, 8451, 486, 931, 543, 262, 435, 980, 6859, 7, 15, 9264, 317, 262, 9854, 82, 2099, 6984, 435, 317, 262, 2060, 10714, 10297, 81, 670, 1098, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_reach_thirteen_height() { let sandbox = timestamping_sandbox(); let sandbox_state = SandboxState::new(); let target_height = 13; for height in 2..target_height + 1 { add_one_height(&sandbox, &sandbox_state); sandbox.assert_state(Height(height), ROUND_ONE); }...
rust_cleaned_test_functions.jsonl/8873
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 610, 5854, 44904, 9561, 368, 341, 262, 1077, 42754, 284, 11441, 287, 643, 31536, 543, 262, 1077, 42754, 4387, 284, 96860, 1397, 486, 931, 1428, 262, 1077, 2169, 9561, 284, 220, 16, 18, 401...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_auth_change() { let mesh = Mesh::new(4, 16); let network = Network::new(mesh.clone(), 0).unwrap(); let mut transport = MockConnectingTransport::expect_connections(vec![ Ok(Box::new(MockConnection::new())), Ok(Box::new(MockConnection::new())), ...
rust_cleaned_test_functions.jsonl/124167
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1400 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14014, 15947, 368, 341, 286, 1077, 11294, 284, 25122, 486, 931, 7, 19, 11, 220, 16, 21, 317, 286, 1077, 3922, 284, 8141, 486, 931, 46341, 15997, 1507, 220, 15, 568, 15454, 543, 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_tags() { let pos_t = get::<Pos>(); let kind = pos_t.get_kind(); let new_pos_t = TaggedType::new(&pos_t, kind, Box::new(42)); assert!(new_pos_t.get_tagged_data() == Some(&42)); assert!(new_pos_t.get_tagged_type() == &*pos_t); }
rust_cleaned_test_functions.jsonl/101715
{ "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, 16333, 368, 341, 262, 1077, 1133, 528, 284, 633, 27638, 4859, 3913, 262, 1077, 3093, 284, 1133, 528, 670, 33162, 543, 262, 1077, 501, 6479, 528, 284, 12353, 3556, 929, 486, 931, 2099, 966, 528, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_api_server_cert_auth_data_valid() -> Result<()> { match get_api_server_cert_auth_data(&HeaderValue::from_static(VALID_CERT_BASE64)) { Ok(data) => { assert_eq!(data, base64::decode(VALID_CERT_BASE64.as_bytes())?); Ok(()) } ...
rust_cleaned_test_functions.jsonl/125246
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11697, 12015, 37097, 14014, 1769, 8337, 368, 1464, 5714, 71698, 341, 286, 2432, 633, 11697, 12015, 37097, 14014, 1769, 2099, 97721, 486, 1499, 25360, 7, 10044, 55298, 11762, 21, 19, 593, 341, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_target_family_shortcut() { setup_test!("CARGO_CFG_TARGET_FAMILY": "unix"); assert!(build_cfg!(target_family = "unix")); assert!(!build_cfg!(target_family = "windows")); assert!(!build_cfg!(target_family = "wasm")); assert!(build_cfg!(unix)); assert!(!build_cfg!(windows)); assert!(!build_c...
rust_cleaned_test_functions.jsonl/64893
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 389 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11123, 26823, 16673, 10242, 368, 341, 84571, 4452, 17223, 34, 7581, 46, 21760, 29299, 80828, 788, 330, 56646, 797, 6948, 10297, 5834, 18343, 10297, 5657, 26823, 284, 330, 56646, 4010, 6948, 0, 3471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pipe_lit() { test_walk( "(a=<-)=>a", vec![ "File", "ExprStmt", "FunctionExpr", "Property", "Identifier", "PipeLit", "Identifier", ], ) }
rust_cleaned_test_functions.jsonl/133866
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41862, 98399, 368, 341, 262, 1273, 56131, 1006, 286, 11993, 64, 38698, 12, 27166, 64, 756, 286, 7486, 90515, 310, 330, 1703, 756, 310, 330, 16041, 31063, 756, 310, 330, 5152, 16041, 756, 310, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_listen() { let addr = unused_addr(); let (tx, rx) = mpsc::channel(); let h = thread::spawn(move || { let sys = scrappy_rt::System::new("test"); let lst = net::TcpListener::bind(addr).unwrap(); Server::build() .disable_signals() .worker...
rust_cleaned_test_functions.jsonl/5726
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 349 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79286, 368, 341, 262, 1077, 10789, 284, 20006, 7387, 543, 262, 1077, 320, 3998, 11, 19111, 8, 284, 296, 81984, 486, 10119, 1428, 262, 1077, 305, 284, 4516, 486, 46087, 34081, 1369, 341, 286, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_majority_disk_full() { let mut cluster = new_node_cluster(0, 3); // To ensure the thread has full store disk usage infomation. cluster.cfg.raft_store.store_batch_system.pool_size = 1; cluster.pd_client.disable_default_operator(); cluster.run(); // To ensure all replicas ...
rust_cleaned_test_functions.jsonl/64928
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1522 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47916, 487, 41687, 16372, 368, 341, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 220, 18, 317, 262, 442, 2014, 5978, 279, 4516, 702, 2480, 3553, 13364, 10431, 4132, 316, 367, 624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_star_network_push_ring_200() { let mut network = ring_network_create(200); let thread_pool = build_gossip_thread_pool(); network_simulator(&thread_pool, &mut network, 0.9); }
rust_cleaned_test_functions.jsonl/2399
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31681, 20966, 14218, 34683, 62, 17, 15, 15, 368, 341, 262, 1077, 5206, 3922, 284, 10058, 20966, 8657, 7, 17, 15, 15, 317, 262, 1077, 4516, 15709, 284, 1936, 1889, 41473, 10814, 15709, 543, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_lp_vector_bad_int_p() { let v: Vector<f64> = Vector::new(vec![]); VectorNorm::norm(&Lp::Integer(0), &v); }
rust_cleaned_test_functions.jsonl/6909
{ "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, 76529, 12247, 34199, 4042, 620, 368, 341, 286, 1077, 348, 25, 4196, 63895, 21, 19, 29, 284, 4196, 486, 931, 25592, 0, 56703, 286, 4196, 24993, 486, 20011, 2099, 43, 79, 486, 3486, 7, 15, 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_ignore() { let flag = NumberFormat::IGNORE; let flag = flag | NumberFormat::from_digit_separator(b'_'); assert_eq!(flag.flags(), NumberFormat::DIGIT_SEPARATOR_FLAG_MASK); assert_eq!(flag.digit_separator(), b'_'); assert_eq!(flag.decimal_point(), b'.'); ...
rust_cleaned_test_functions.jsonl/70027
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1040 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58493, 368, 341, 286, 1077, 5181, 284, 5624, 4061, 486, 35045, 280, 286, 1077, 5181, 284, 5181, 760, 5624, 4061, 486, 1499, 48403, 58204, 1883, 36777, 1157, 286, 2060, 10714, 10297, 9903, 27203, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_strip_whitespace_block() { let text = "Hello, {{- if name -}} {name} {{- endif -}} , how are you?"; let instructions = compile(text).unwrap(); assert_eq!(6, instructions.len()); assert_eq!(&Literal("Hello,"), &instructions[0]); assert_eq!(...
rust_cleaned_test_functions.jsonl/18180
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 336 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66130, 86175, 7113, 368, 972, 286, 1077, 1467, 284, 330, 9707, 11, 257, 5867, 12, 421, 829, 481, 3417, 262, 314, 606, 92, 262, 5867, 12, 12330, 481, 3417, 256, 1154, 1246, 525, 498, 30, 3534, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_forced_checkout_of_added_blob_with_content_conflict() -> BitResult<()> { BitRepo::with_minimal_repo(|repo| { rm!(repo: "foo"); bit_commit_all!(repo); touch!(repo: "foo" < "new foo contents"); bit_checkout!(repo: --force "HEAD^")?; assert_eq!(cat!(repo...
rust_cleaned_test_functions.jsonl/62944
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5478, 1998, 68186, 3575, 37653, 45908, 6615, 7495, 16059, 21242, 368, 1464, 6495, 2077, 71698, 341, 262, 6495, 25243, 486, 4197, 7260, 2861, 37784, 22428, 23476, 91, 341, 286, 18998, 10297, 23476, 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_check_unique() { // See https://github.com/clap-rs/clap/issues/2624 new_ucmd!() .args(&["-c", "-u"]) .pipe_in("A\nA\n") .fails() .code_is(1) .stderr_only("sort: -:2: disorder: A"); }
rust_cleaned_test_functions.jsonl/20528
{ "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, 7200, 21218, 368, 341, 1066, 262, 442, 3496, 3703, 1110, 5204, 905, 55931, 391, 3795, 82, 55931, 391, 38745, 14, 17, 21, 17, 19, 198, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_missing_group() { let regex = r"^(?P<foo>\d*)$"; let input = "1"; let output: Result<Test> = from_str(input, regex); assert!(output.is_err()); }
rust_cleaned_test_functions.jsonl/133417
{ "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, 40447, 6288, 368, 341, 286, 1077, 20180, 284, 435, 1, 13268, 30, 47, 27, 7975, 8449, 67, 3764, 3, 876, 286, 1077, 1946, 284, 330, 16, 876, 286, 1077, 2550, 25, 5714, 71273, 29, 284, 504, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ip_has_changed_with_two_different_ips() { let mut results = IpResults::new(Some(false)); results.add_result(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), Utc::now()); results.add_result(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 2)), Utc::now()); assert!(results.ip_has_chang...
rust_cleaned_test_functions.jsonl/86299
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10385, 21778, 25213, 6615, 23241, 82741, 71074, 368, 341, 286, 1077, 5206, 3059, 284, 35033, 9801, 486, 931, 65405, 3576, 1106, 286, 3059, 1364, 5287, 8972, 79, 13986, 486, 53, 19, 8972, 30168, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_linear_gradient_7() { assert_eq!( parse_style_background_content( "linear-gradient(to right, rgba(255,0, 0,1) 0%,rgba(0,0,0, 0) 100%)" ), Ok(StyleBackgroundContent::LinearGradient(LinearGradient { direction: Direct...
rust_cleaned_test_functions.jsonl/114009
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 806 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 40674, 49482, 62, 22, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 15117, 24103, 7495, 1006, 394, 330, 22763, 42738, 12186, 1290, 11, 23524, 7, 17, 20, 20, 11, 15, 11, 220, 15, 11, 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_isaac_clone() { let seed = [1,0,0,0, 23,0,0,0, 200,1,0,0, 210,30,0,0, 57,48,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0]; let mut rng1 = IsaacRng::from_seed(seed); let mut rng2 = rng1.clone(); for _ in 0..16 { assert_eq!(rng1.next_u32(), rng2.n...
rust_cleaned_test_functions.jsonl/52743
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 225 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 64705, 54742, 368, 341, 286, 1077, 10320, 284, 508, 16, 11, 15, 11, 15, 11, 15, 11, 220, 17, 18, 11, 15, 11, 15, 11, 15, 11, 220, 17, 15, 15, 11, 16, 11, 15, 11, 15, 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...
2
#[test] fn test_parse_ansi_term_style_with_special_omit_attribute() { assert_eq!( parse_ansi_term_style("omit", None, false), (ansi_term::Style::new(), true, false, false) ); assert_eq!( parse_ansi_term_style("omit syntax italic white hidden",...
rust_cleaned_test_functions.jsonl/129640
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 415 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 62, 52067, 17464, 15117, 6615, 41629, 62, 77968, 16791, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 62, 52067, 17464, 15117, 445, 77968, 497, 2240, 11, 895, 1326, 310, 320, 52067, 17464, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_self_in_path_to_parameter() { test_rename( r#" struct Foo { i: i32, } impl Foo { fn f(&self) -> i32 { let self_var = 1; self<|>.i } } "#, "foo", r#" struct Foo { i: i32, ...
rust_cleaned_test_functions.jsonl/58103
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25637, 1243, 2638, 2346, 24899, 368, 341, 286, 1273, 79399, 1006, 310, 435, 2, 698, 262, 2036, 33428, 341, 286, 600, 25, 600, 18, 17, 345, 262, 555, 262, 11605, 33428, 341, 286, 5168, 282, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fieldtype_from_sample() { let example_unicode = "abc123!"; let example_int = "123"; let example_float = "1.23"; let example_date = "2019-07-10"; let example_date2 = "7/10/19"; let example_date3 = "7/10/2019"; let example_date4 = "8-Jul-2019...
rust_cleaned_test_functions.jsonl/125469
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 708 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5013, 1313, 5673, 17491, 368, 341, 286, 1077, 3110, 54662, 284, 330, 13683, 16, 17, 18, 26782, 286, 1077, 3110, 4042, 284, 330, 16, 17, 18, 876, 286, 1077, 3110, 17586, 284, 330, 16, 13, 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_draw_resource_tabs_block() { let backend = TestBackend::new(100, 7); let mut terminal = Terminal::new(backend).unwrap(); terminal .draw(|f| { let size = f.size(); let mut app = App::default(); let mut pod = KubePod::default(); pod.name = "pod na...
rust_cleaned_test_functions.jsonl/66711
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23021, 17962, 57953, 7113, 368, 341, 262, 1077, 19163, 284, 3393, 29699, 486, 931, 7, 16, 15, 15, 11, 220, 22, 317, 262, 1077, 5206, 15022, 284, 34090, 486, 931, 7, 20942, 568, 15454, 1428, 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...
4
#[test] fn test_dec_binary() { let mut d = BinaryDigit(1u8); let underflow = d.dec(); assert!(!underflow); assert_eq!(d, BinaryDigit(0)); let mut d = BinaryDigit(0xffu8); let underflow = d.dec(); assert!(!underflow); assert_eq!(d, BinaryDigit(...
rust_cleaned_test_functions.jsonl/26387
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 547 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13783, 31761, 741, 262, 341, 286, 1077, 5206, 294, 284, 17718, 36420, 7, 16, 84, 23, 317, 286, 1077, 1212, 4965, 284, 294, 28020, 543, 286, 2060, 0, 3471, 7995, 4965, 317, 286, 2060, 10714, 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_iterator_enumerate_fold() { let xs = [0, 1, 2, 3, 4, 5]; let mut it = xs.iter().enumerate(); // steal a couple to get an interesting offset assert_eq!(it.next(), Some((0, &0))); assert_eq!(it.next(), Some((1, &1))); let i = it.fold(2, |i, (j, &x)| { assert_eq!(i, ...
rust_cleaned_test_functions.jsonl/54078
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 343 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 6205, 3389, 349, 61187, 368, 341, 262, 1077, 11943, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 262, 1077, 5206, 432, 284, 11943, 19471, 1005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_binary_array_iter_round_trip() { let array = BinaryArray::from(vec![ Some(b"a" as &[u8]), None, Some(b"aaa"), None, Some(b"aaaaa"), ]); // to and from iter let result: BinaryArray = array.iter().collect(...
rust_cleaned_test_functions.jsonl/19274
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31761, 3858, 11723, 29896, 63883, 368, 341, 286, 1077, 1334, 284, 17718, 1857, 486, 1499, 25592, 90515, 310, 4329, 1883, 56693, 1, 438, 44590, 84, 23, 17036, 310, 2240, 345, 310, 4329, 1883, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_movegen() { //TODO Add more tests let mut game = Game::new(); game.create_piece(0, 0, 8); game.set_moves(); assert_eq!( game.square_moves[8][0..2], [ PieceMove { start: 8, end:...
rust_cleaned_test_functions.jsonl/120652
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 386 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17134, 4370, 368, 341, 286, 442, 14732, 2691, 803, 7032, 198, 286, 1077, 5206, 1809, 284, 4050, 486, 931, 543, 286, 1809, 2520, 48470, 7, 15, 11, 220, 15, 11, 220, 23, 317, 286, 1809, 980, 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_get_device_global_uid() { // Input device. if let Some(input) = test_get_default_device(Scope::Input) { let uid = get_device_global_uid(input).unwrap(); let uid = uid.into_string(); assert!(!uid.is_empty()); } // Output device. if let Some(output) = t...
rust_cleaned_test_functions.jsonl/113804
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 9204, 19296, 25396, 368, 341, 262, 442, 5571, 3671, 624, 262, 421, 1077, 4329, 5384, 8, 284, 1273, 3062, 9993, 9204, 3759, 2417, 486, 2505, 8, 341, 286, 1077, 14617, 284, 633, 9204, 19296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_status_service() { let config = TiKvConfig::default(); let mut status_server = StatusServer::new(1, config); let _ = status_server.start("127.0.0.1:0".to_string()); let client = Client::new(); let uri = Uri::builder() .scheme("http") ...
rust_cleaned_test_functions.jsonl/47230
{ "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, 4773, 12267, 368, 341, 286, 1077, 2193, 284, 22325, 42, 85, 2648, 486, 2258, 543, 286, 1077, 5206, 2639, 12015, 284, 8104, 5475, 486, 931, 7, 16, 11, 2193, 317, 286, 1077, 716, 284, 2639, 1201...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_batch_discard_random() { solana_logger::setup(); let mut batch = PacketBatch::default(); batch.resize(1, Packet::default()); let num_batches = 100; let mut batches = vec![batch; num_batches]; let max = 5; discard_batches_randomly(&mut batch...
rust_cleaned_test_functions.jsonl/6923
{ "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, 14534, 37745, 567, 22644, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 5206, 7162, 284, 28889, 21074, 486, 2258, 543, 286, 7162, 17382, 7, 16, 11, 28889, 486, 2258, 1423, 286, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_truthy() { assert_eq!( true, Variable::from_json(&"{\"foo\": \"bar\"}") .unwrap() .is_truthy() ); assert_eq!(false, Variable::from_json(&"{}").unwrap().is_truthy()); assert_eq!(true, Variable::from_json(&"...
rust_cleaned_test_functions.jsonl/108380
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 514 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 49186, 88, 368, 341, 286, 2060, 10714, 33673, 310, 830, 345, 310, 12407, 486, 1499, 9455, 2099, 14129, 2105, 7975, 11693, 7245, 2257, 2105, 14451, 394, 659, 15454, 741, 394, 659, 285, 49186,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_gc3() { let key = "k"; let store = AssertionStorage::default(); store.test_txn_store_gc3(key.as_bytes()[0]); let (mut cluster, mut raft_store) = AssertionStorage::new_raft_storage_with_store_count(3, key); raft_store.test_txn_store_gc3_for_cluster(&mut cluster, key....
rust_cleaned_test_functions.jsonl/63407
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 92299, 14809, 49423, 18, 368, 341, 262, 1077, 1376, 284, 330, 74, 876, 262, 1077, 3553, 284, 46730, 5793, 486, 2258, 543, 262, 3553, 5958, 92299, 14809, 49423, 18, 4857, 5357, 12524, 10116, 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_build_payload_adds_the_build_url_if_provided() { let result = TestResult::Ok; let payload = super::build_payload(result, "1".to_string(), Some("http://build-url".to_string())); expect!(payload).to(be_equal_to(json!({ "providerApplicationVersion": "1", "success": true, ...
rust_cleaned_test_functions.jsonl/67355
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 32813, 2891, 82, 16068, 20801, 2903, 11119, 2540, 42957, 368, 341, 262, 1077, 1102, 284, 3393, 2077, 486, 11578, 280, 262, 1077, 7729, 284, 2256, 486, 5834, 32813, 4456, 11, 330, 16, 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...
1
#[test] fn test_eq_member() { let member = Member { avatar: None, deaf: false, guild_id: GuildId::new(3).expect("non zero"), joined_at: None, mute: true, nick: Some("member nick".to_owned()), pending: false, ...
rust_cleaned_test_functions.jsonl/100073
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10714, 19388, 368, 341, 286, 1077, 4462, 284, 12039, 341, 310, 20701, 25, 2240, 345, 310, 46742, 25, 895, 345, 310, 26411, 842, 25, 32492, 764, 486, 931, 7, 18, 568, 17119, 445, 6280, 7168, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wordinfo_with_longword() { let lexicon = read_lexicon(); let word_info = lexicon.get_word_info(36); assert_eq!(300, word_info.surface.chars().count()); assert_eq!(300, word_info.head_word_length); assert_eq!(300, word_info.normalized_form.chars().count()); assert_eq!(-1, ...
rust_cleaned_test_functions.jsonl/113036
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13533, 2733, 6615, 17799, 1158, 368, 341, 262, 1077, 22429, 1924, 284, 1349, 74547, 1924, 543, 262, 1077, 3409, 3109, 284, 22429, 1924, 670, 13533, 3109, 7, 18, 21, 317, 262, 2060, 10714, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_transactions() { let mut transactions = Mint::new(100).create_transaction().into_iter(); let tx = transactions.next().unwrap(); assert_eq!(tx.instructions.len(), 1); assert!(system_program::check_id(tx.program_id(0))); let instruction: SystemInstruc...
rust_cleaned_test_functions.jsonl/7365
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 68182, 368, 341, 286, 1077, 5206, 14131, 284, 41310, 486, 931, 7, 16, 15, 15, 568, 3182, 28884, 1005, 18122, 11723, 543, 286, 1077, 9854, 284, 14131, 4529, 1005, 15454, 543, 286, 2060, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_serialization() { let dt = "2018-02-11T07:09:22.765Z".parse::<DateTime<Utc>>().unwrap(); let proposal = Proposal { msg_type: Type::Proposal, height: Height::from(12345_u32), round: Round::from(23456_u16), pol_round: None, ...
rust_cleaned_test_functions.jsonl/90191
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25602, 2022, 368, 341, 286, 1077, 7594, 284, 330, 17, 15, 16, 23, 12, 15, 17, 12, 16, 16, 51, 15, 22, 25, 15, 24, 25, 17, 17, 13, 22, 21, 20, 57, 3263, 6400, 27638, 7689, 36397, 10413, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_string() { let data = "\"/home/nikita/pepe.c\""; do_test_result!( data, parse_string(data), ("", String::from("/home/nikita/pepe.c")) ) }
rust_cleaned_test_functions.jsonl/74252
{ "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, 21039, 3904, 368, 341, 286, 1077, 821, 284, 15898, 14, 5117, 9612, 1579, 6255, 14, 375, 375, 520, 95349, 286, 653, 4452, 5287, 33673, 310, 821, 345, 310, 4715, 3904, 2592, 1326, 310, 3489, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_vote_unsubscribe() { let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(10_000); let bank = Bank::new(&genesis_config); let bank_forks = Arc::new(RwLock::new(BankForks::new(bank))); let rpc = RpcSolPubSubImpl::default_with_bank_forks(bank_forks);...
rust_cleaned_test_functions.jsonl/4708
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 365 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54360, 4907, 9384, 368, 341, 286, 1077, 40788, 2648, 1731, 314, 59366, 5332, 11, 5241, 335, 284, 1855, 16322, 13774, 5332, 7, 16, 15, 62, 15, 15, 15, 317, 286, 1077, 6073, 284, 8547, 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_untagged_newtype_variant_containing_unit_struct_not_map() { #[derive(Debug, PartialEq, Serialize, Deserialize)] struct Unit; #[derive(Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] enum Message { Unit(Unit), Map(BTreeMap<String, String>), }...
rust_cleaned_test_functions.jsonl/56450
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 3850, 96476, 5921, 1313, 46112, 10260, 2056, 14832, 15126, 7913, 5376, 368, 341, 262, 11506, 27098, 42618, 11, 55039, 11, 39900, 11, 48440, 5563, 262, 2036, 7954, 401, 262, 11506, 27098, 42618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_broker_pod_owner_kind_job() { let owner_references: Vec<OwnerReference> = vec![OwnerReference { kind: "Job".to_string(), controller: Some(true), ..Default::default() }]; assert_eq!( get_broker_pod_owner_kind(&make_pod_wi...
rust_cleaned_test_functions.jsonl/55236
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 880, 45985, 85337, 29027, 33162, 20298, 368, 341, 286, 1077, 6372, 92702, 25, 11312, 27, 13801, 8856, 29, 284, 7486, 20703, 13801, 8856, 341, 310, 3093, 25, 330, 12245, 3263, 983, 3904, 3148...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lazy_groupby_sort_by() { let df = df! { "a" => ["a", "a", "a", "b", "b", "c"], "b" => [1, 2, 3, 4, 5, 6], "c" => [6, 1, 4, 3, 2, 1] } .unwrap(); let out = df .lazy() .groupby(vec![col("a")]) .agg(vec![col("b").sort_by(col("c"), tru...
rust_cleaned_test_functions.jsonl/22388
{ "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, 49646, 6288, 1694, 18435, 3710, 368, 341, 262, 1077, 6764, 284, 6764, 0, 341, 286, 330, 64, 1, 589, 4383, 64, 497, 330, 64, 497, 330, 64, 497, 330, 65, 497, 330, 65, 497, 330, 66, 8097, 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_calls() { test_roundtrip("f();"); test_roundtrip("f(1);"); test_roundtrip("f(1, 2);"); test_roundtrip("(f?.(1, 2))(3);"); test_roundtrip("f?.(1, 2)?.(3)(5);"); test_roundtrip("new f();"); test_roundtrip("new f(1);"); test_roundtrip("new(a.b);"); test_roundtrip...
rust_cleaned_test_functions.jsonl/102593
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 331 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45636, 368, 341, 262, 1273, 29896, 32981, 445, 69, 2129, 797, 262, 1273, 29896, 32981, 445, 69, 7, 16, 1215, 797, 262, 1273, 29896, 32981, 445, 69, 7, 16, 11, 220, 17, 1215, 797, 262, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_address_book_init() { let config = ConfigBuilder::new().with_network(Network::Signet).build(); let result = AddressBook::new(&config, make_logger()); assert!(result.is_err()); let err = result.unwrap_err(); assert!(matches!(err, AddressBookError::NoAddress...
rust_cleaned_test_functions.jsonl/10126
{ "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, 6744, 26421, 6137, 368, 341, 286, 1077, 2193, 284, 5532, 3297, 486, 931, 1005, 4197, 20966, 77623, 486, 7264, 295, 568, 5834, 543, 286, 1077, 1102, 284, 9177, 7134, 486, 931, 2099, 1676, 11, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_runtime_config() { println!("{:?}", runtime_config::RUNTIME_CONFIG.api_endpoints); println!("{:?}", runtime_config::RUNTIME_CONFIG.internal_endpoints); println!("{:?}", runtime_config::RUNTIME_CONFIG.audit); println!("{:?}", runtime_config::RUNTIME_CONFIG.env); ...
rust_cleaned_test_functions.jsonl/60217
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 147 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33232, 5332, 368, 341, 286, 13751, 88928, 25, 52652, 15592, 5332, 486, 47390, 18129, 12568, 6183, 6213, 7706, 317, 286, 13751, 88928, 25, 52652, 15592, 5332, 486, 47390, 18129, 12568, 18264, 6213, 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_map_changed() { let method = method( ("Windows.Foundation.Collections", "IObservableMap`2"), "map_changed", ); assert!(method.kind == MethodKind::Add); assert!(method.params.len() == 1); let handler = &method.params[0]; as...
rust_cleaned_test_functions.jsonl/21659
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 524 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5376, 25213, 368, 341, 286, 1077, 1714, 284, 1714, 1006, 310, 3489, 13164, 75737, 3572, 497, 330, 3810, 8293, 2227, 63, 17, 4461, 310, 330, 2186, 25213, 756, 286, 3475, 286, 2060, 10297, 4393, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_edges_directed() { let g: MatrixGraph<char, bool> = MatrixGraph::from_edges(&[ (0, 5), (0, 2), (0, 3), (0, 1), (1, 3), (2, 3), (2, 4), (4, 0), (6, 6), ]); assert_e...
rust_cleaned_test_functions.jsonl/81969
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 678 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28026, 32871, 291, 368, 341, 286, 1077, 342, 25, 11631, 11212, 21919, 11, 1807, 29, 284, 11631, 11212, 486, 1499, 28026, 2099, 9640, 310, 320, 15, 11, 220, 20, 1326, 310, 320, 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_map() { let mut m = HashMap::new(); m.insert(4u64, "foo".to_string()); m.insert(0u64, "bar".to_string()); the_same(m); }
rust_cleaned_test_functions.jsonl/6264
{ "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, 5376, 368, 341, 262, 1077, 5206, 296, 284, 10528, 486, 931, 543, 262, 296, 7030, 7, 19, 84, 21, 19, 11, 330, 7975, 3263, 983, 3904, 1423, 262, 296, 7030, 7, 15, 84, 21, 19, 11, 330, 2257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_min_max() { let min = |x: Weibull| x.min(); let max = |x: Weibull| x.max(); test_case(1.0, 1.0, 0.0, min); test_case(1.0, 1.0, f64::INFINITY, max); }
rust_cleaned_test_functions.jsonl/122501
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7260, 6345, 368, 341, 286, 1077, 1308, 284, 760, 87, 25, 1205, 579, 617, 91, 856, 4358, 543, 286, 1077, 1932, 284, 760, 87, 25, 1205, 579, 617, 91, 856, 6678, 543, 286, 1273, 19096, 7, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bind() { let mut cx = Context::new(); let id = ViewId::default(); cx.init_state(id, &MyState::default); let s = State::new(id); let b = bind(s, MyLens {}); *b.get_mut(&mut cx) = 42; assert_eq!(*b.get(&mut cx), 42); }
rust_cleaned_test_functions.jsonl/100081
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27461, 368, 341, 286, 1077, 5206, 20716, 284, 9608, 486, 931, 543, 286, 1077, 877, 284, 2738, 764, 486, 2258, 543, 286, 20716, 8271, 4387, 3724, 11, 609, 5050, 1397, 486, 2258, 317, 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_f32x4_debug() { let a = F32x4::new(48.0, -4.0, 200.0, 7.0); assert_eq!("<48, -4, 200, 7>", format!("{:?}", a)); }
rust_cleaned_test_functions.jsonl/66190
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 85 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 18, 17, 87, 19, 15446, 368, 341, 262, 1077, 264, 284, 434, 18, 17, 87, 19, 486, 931, 7, 19, 23, 13, 15, 11, 481, 19, 13, 15, 11, 220, 17, 15, 15, 13, 15, 11, 220, 22, 13, 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_limits_no_panic() { let s = schema(&[ ("a", DataType::Int64), ("b", DataType::Int64), ("c", DataType::Int64), ("d", DataType::Int64), ("e", DataType::Int64), ]); let extract = |sql| PartitionFilter::extract(&s, &...
rust_cleaned_test_functions.jsonl/65541
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 941 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31820, 6536, 620, 31270, 368, 341, 286, 1077, 274, 284, 10802, 2099, 9640, 310, 3489, 64, 497, 33172, 486, 1072, 21, 19, 1326, 310, 3489, 65, 497, 33172, 486, 1072, 21, 19, 1326, 310, 3489, 66...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_movss_store() { assert_emit!(0xf3, 0x0f, 0x11, 0x40, 1; movss_store(Mem::Base(RAX, 1), XMM0)); assert_emit!(0xf2, 0x44, 0x0f, 0x11, 0x78, 1; movsd_store(Mem::Base(RAX, 1), XMM15)); }
rust_cleaned_test_functions.jsonl/85506
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55798, 778, 14809, 368, 341, 286, 2060, 69082, 10297, 15, 5848, 18, 11, 220, 15, 87, 15, 69, 11, 220, 15, 87, 16, 16, 11, 220, 15, 87, 19, 15, 11, 220, 16, 26, 1974, 778, 14809, 3189, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_chrono_utc_value() { let timestamp = DateTime::<Utc>::from_utc(NaiveDate::from_ymd(2022, 1, 2).and_hms(3, 4, 5), Utc); let value: Value = timestamp.into(); let out: DateTime<Utc> = value.unwrap(); assert_eq!(out, timestamp); }
rust_cleaned_test_functions.jsonl/12486
{ "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, 4138, 2248, 78, 84259, 3142, 368, 341, 286, 1077, 11441, 4035, 310, 6520, 27638, 97768, 6831, 1499, 84259, 8204, 64, 533, 1916, 486, 1499, 62, 1600, 67, 7, 17, 15, 17, 17, 11, 220, 16, 11, 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_unlink() { const TMPDIR_POSTFIX: &str = "wslcmd-unlink"; // init tmpdir let tmpdir = init_tmpdir(TMPDIR_POSTFIX).expect("Tmp dir initialize"); let (bin1, _) = copy_tmpbin(&tmpdir, None).expect("Bin initialize"); // test linking only let mut wslcm...
rust_cleaned_test_functions.jsonl/34191
{ "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, 4907, 2080, 368, 341, 286, 733, 66253, 12251, 20506, 39690, 25, 609, 495, 284, 330, 86, 3226, 8710, 19892, 2080, 3302, 286, 442, 2930, 4174, 3741, 198, 286, 1077, 4174, 3741, 284, 2930, 16125, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prop_success() -> Result<(), Box<dyn std::error::Error>> { let mut cmd = Command::cargo_bin("jj")?; let assert = cmd.arg("_.x.y").write_stdin(r#"{"x":{"y":42}}"#).assert(); assert.success().stdout("42\n").stderr(""); Ok(()) }
rust_cleaned_test_functions.jsonl/43233
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21663, 18632, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 262, 1077, 5206, 5439, 284, 7348, 486, 66715, 21816, 445, 38811, 899, 37445, 262, 1077, 2060, 284, 5439, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_ecdsa_adaptor_signature_wrong_proof() { let msg = msg_from_str("8131e6f4b45754f2c90bd06688ceeabc0c45055460729928b4eecf11026a9e2d"); let pubkey = "035be5e9478209674a96e60f1f037f6176540fd001fa1d64694770c56a7709c42c" .parse() .unwrap(); let encryption...
rust_cleaned_test_functions.jsonl/62235
{ "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, 36844, 96780, 10027, 32657, 39859, 75198, 86757, 368, 341, 286, 1077, 3750, 284, 3750, 5673, 2895, 445, 23, 16, 18, 16, 68, 21, 69, 19, 65, 19, 20, 22, 20, 19, 69, 17, 66, 24, 15, 8940, 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