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_pubrec() { let packet = Packet::Pubrec(Pid::try_from(19).unwrap()); assert_decode_slice!(Packet::Pubrec(_), &packet, 4); }
rust_cleaned_test_functions.jsonl/59350
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 75 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34014, 2758, 368, 341, 262, 1077, 10151, 284, 28889, 486, 29162, 2758, 5304, 307, 486, 1539, 5673, 7, 16, 24, 568, 15454, 1423, 1066, 262, 2060, 15227, 26488, 10297, 16679, 486, 29162, 2758, 2490,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_save_tx() { use crate::sign_tx::sign_tx; use crate::submit_tx::TxParams; use libra_types::{chain_id::ChainId, account_address::AccountAddress}; let script = transaction_builder::encode_demo_e2e_script(42); let test_path = PathBuf::from("./signed_tx.json"); let txn = sign_tx(&script...
rust_cleaned_test_functions.jsonl/23345
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 283 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15376, 17805, 368, 1476, 220, 990, 17717, 486, 7752, 17805, 486, 7752, 17805, 280, 220, 990, 17717, 486, 5955, 17805, 486, 31584, 4870, 280, 220, 990, 3051, 956, 9763, 22964, 8819, 842, 486, 18837...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_repeat_take_collect() { let v: Vec<_> = repeat(42).take(3).collect(); assert_eq!(v, vec![42, 42, 42]); }
rust_cleaned_test_functions.jsonl/54168
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 64 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41975, 73261, 68140, 368, 341, 262, 1077, 348, 25, 11312, 32399, 29, 284, 13153, 7, 19, 17, 568, 22769, 7, 18, 568, 17384, 543, 262, 2060, 10714, 10297, 85, 11, 7486, 20703, 19, 17, 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
#[test] fn test_group_window_expr_by_sort_keys() -> Result<()> { let age_asc = Expr::Sort { expr: Box::new(col("age")), asc: true, nulls_first: true, }; let name_desc = Expr::Sort { expr: Box::new(col("name")), asc: false, ...
rust_cleaned_test_functions.jsonl/24744
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6288, 12571, 21915, 3710, 18435, 12631, 368, 1464, 5714, 71698, 341, 286, 1077, 4231, 88474, 284, 28819, 486, 10231, 341, 310, 15169, 25, 8261, 486, 931, 19611, 445, 424, 30154, 310, 14601, 25, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_complex_or_join_type_projection() { let mut schemaReplicant = SchemaReplicant::default(); associate_causetId(&mut schemaReplicant, Keyword::namespaced("page", "title"), 98); add_attribute(&mut schemaReplicant, 98, Attribute { value_type: MinkowskiValueType::String, .....
rust_cleaned_test_functions.jsonl/90713
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 844 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41522, 8734, 31017, 1819, 72738, 368, 341, 262, 1077, 5206, 10802, 18327, 35237, 284, 12539, 18327, 35237, 486, 2258, 543, 262, 21946, 666, 11855, 295, 764, 2099, 6984, 10802, 18327, 35237, 11, 4897...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rename_incorrect_case_struct_method() { check_fix( r#" pub struct TestStruct; impl TestStruct { pub fn SomeFn<|>() -> TestStruct { TestStruct } } "#, r#" pub struct TestStruct; impl TestStruct { pub fn some_fn() -> TestStruct { TestSt...
rust_cleaned_test_functions.jsonl/11435
{ "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, 79399, 1243, 19928, 19096, 15126, 9032, 368, 341, 286, 1779, 36060, 1006, 310, 435, 2, 698, 9585, 2036, 3393, 9422, 401, 6383, 3393, 9422, 341, 262, 6675, 5168, 4329, 24911, 27, 91, 13555, 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_simple_interval() { let input = vec![1., 1., 5., 5., 1., 1., 5., 5.]; let distances = vec![1 as u64, 2, 3, 4, 5, 6]; let result = best_averages_for_distances(&input, &distances); assert_eq!(result.len(), distances.len()); test_result(&result[0], 5.0, 2)...
rust_cleaned_test_functions.jsonl/43996
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 20541, 368, 341, 286, 1077, 1946, 284, 7486, 20703, 16, 2572, 220, 16, 2572, 220, 20, 2572, 220, 20, 2572, 220, 16, 2572, 220, 16, 2572, 220, 20, 2572, 220, 20, 13, 935, 286, 1077, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_avro_3405_writer_add_metadata_with_builder_api_success() { let schema = Schema::parse_str(SCHEMA).unwrap(); let mut user_meta_data: HashMap<String, Value> = HashMap::new(); user_meta_data.insert( "stringKey".to_string(), Value::String("stringValue...
rust_cleaned_test_functions.jsonl/37669
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 367 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26173, 299, 62, 18, 19, 15, 20, 28908, 2891, 22220, 6615, 28532, 11697, 18632, 368, 341, 286, 1077, 10802, 284, 12539, 486, 6400, 2895, 59461, 35839, 568, 15454, 1428, 286, 1077, 5206, 1196, 13381...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_make_credential_credential_excluded() { let mut rng = ThreadRng256 {}; let excluded_private_key = crypto::ecdsa::SecKey::gensk(&mut rng); let user_immediately_present = |_| Ok(()); let mut ctap_state = CtapState::new(&mut rng, user_immediately_present); ...
rust_cleaned_test_functions.jsonl/35310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 653 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 28230, 666, 30320, 666, 30320, 2702, 10181, 368, 341, 286, 1077, 5206, 28422, 284, 8752, 49, 968, 17, 20, 21, 9321, 286, 1077, 27444, 26249, 3097, 284, 19028, 486, 757, 96780, 486, 8430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_apparently() { test_exp("and", "and apparently"); test_exp( "It was great and I have never been on live television before \ but sometimes I dont watch this.", "It was great and apparently I \ have never been on live television before but apparently somet...
rust_cleaned_test_functions.jsonl/9590
{ "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, 8191, 30127, 368, 341, 262, 1273, 14214, 445, 437, 497, 330, 437, 13812, 797, 262, 1273, 14214, 1006, 286, 330, 2132, 572, 2244, 323, 358, 614, 2581, 1012, 389, 3887, 12425, 1573, 3044, 260, 714...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_username_encoding_alphanumeric() { let name_str = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; let username = Username::new(name_str.into()).to_string(); assert_eq!( username, r#"username="1234567890abcdefghijklmnopqrstuvwxyz...
rust_cleaned_test_functions.jsonl/126197
{ "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, 21588, 37613, 8418, 65788, 368, 341, 286, 1077, 829, 2895, 284, 330, 16, 17, 18, 19, 20, 21, 22, 23, 24, 15, 67512, 75902, 3302, 286, 1077, 5934, 284, 29545, 486, 931, 3153, 2895, 39860, 6011,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_read_integers() { let input = "5 -5 789 -987"; let mut heap = Heap::new(); let results : Vec<Value> = read_from_str(input, &mut heap, "test_read_integers") .map(|(_, r)| *r.ok().expect("Should not get a read error")) .collect(); assert_eq!(...
rust_cleaned_test_functions.jsonl/62113
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 4042, 67592, 368, 341, 286, 1077, 1946, 284, 330, 20, 481, 20, 220, 22, 23, 24, 481, 24, 23, 22, 876, 286, 1077, 5206, 17364, 284, 47307, 486, 931, 543, 286, 1077, 3059, 549, 11312, 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_big_p() { if get_effective_uid() != 0 { new_ucmd!() .arg("-RP") .arg("bin") .arg("/proc/self/cwd") .fails() .stderr_contains( "chown: changing ownership of '/proc/self/cwd': Operation not permitted (os error ...
rust_cleaned_test_functions.jsonl/26599
{ "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, 36386, 620, 368, 341, 262, 421, 633, 27125, 533, 25396, 368, 961, 220, 15, 341, 286, 501, 68887, 2277, 0, 741, 310, 659, 858, 13645, 21657, 1138, 310, 659, 858, 445, 6863, 1138, 310, 659, 858,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_i8042_valid_ops() { let reset_evt = EventFd::new(libc::EFD_NONBLOCK).unwrap(); let mut i8042 = I8042Device::new(reset_evt.try_clone().unwrap()); assert_eq!(i8042.read(0), 0); // Check if reset works. i8042.write(COMMAND_OFFSET, CMD_RESET_CPU).unwrap(); ...
rust_cleaned_test_functions.jsonl/7215
{ "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, 5318, 23, 15, 19, 17, 8337, 21959, 368, 341, 286, 1077, 7585, 60019, 284, 3665, 74476, 486, 931, 44828, 66, 486, 36, 14596, 22128, 39964, 568, 15454, 543, 286, 1077, 5206, 600, 23, 15, 19, 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_submit_rate_exclude_duration() { let vec = vec![1, 2, 3, 4, 5, 6, 7, 8]; let const_rate = ConstantRate::new(2, vec.into_iter()); let mut now = time::Instant::now(); for _item in const_rate { let new_now = time::Instant::now(); let delta = ...
rust_cleaned_test_functions.jsonl/59874
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 312 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31674, 9246, 88668, 25454, 368, 341, 286, 1077, 7486, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 935, 286, 1077, 733, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_column_writer_default_encoding_support_float() { check_encoding_write_support::<FloatType>( WriterVersion::PARQUET_1_0, true, &[1.0, 2.0], Some(0), &[Encoding::PLAIN, Encoding::RLE_DICTIONARY, Encoding::RLE], ); ...
rust_cleaned_test_functions.jsonl/30527
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 575 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8744, 28908, 9993, 37613, 25827, 17586, 368, 341, 286, 1779, 37613, 9165, 25827, 27638, 5442, 929, 17055, 310, 29404, 5637, 486, 16567, 5757, 1348, 62, 16, 62, 15, 345, 310, 830, 345, 310, 44590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rng_32_rand_seeded() { let s = ::test::rng().gen_iter::<u32>().take(256).collect::<Vec<u32>>(); let mut ra: IsaacRng = SeedableRng::from_seed(&s[..]); let mut rb: IsaacRng = SeedableRng::from_seed(&s[..]); assert!(ra.gen_ascii_chars() .take(100) ...
rust_cleaned_test_functions.jsonl/42027
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 211 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66849, 62, 18, 17, 33864, 3453, 29935, 368, 341, 286, 1077, 274, 284, 3504, 1944, 486, 69890, 1005, 4370, 11723, 27638, 84, 18, 17, 10483, 22769, 7, 17, 20, 21, 568, 17384, 27638, 10050, 34837, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_negation() { let tmp = -&LARGEST; assert_eq!(tmp, Scalar::from_raw_unchecked([1, 0, 0, 0])); let tmp = -&Scalar::zero(); assert_eq!(tmp, Scalar::zero()); let tmp = -&Scalar::from_raw_unchecked([1, 0, 0, 0]); assert_eq!(tmp, LARGEST); }
rust_cleaned_test_functions.jsonl/14278
{ "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, 28209, 367, 368, 341, 286, 1077, 4174, 284, 481, 5, 43, 7581, 5177, 401, 286, 2060, 10714, 10297, 5173, 11, 35176, 486, 1499, 16067, 4907, 7549, 2561, 16, 11, 220, 15, 11, 220, 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
#[test] fn test_connection_release_returns_unit() { init!("true"); let details = r#"{"id":"njjmmdg","s":{"d":"JZho9BzVAEk8jJ1hwrrDiZ","dp":{"d":"JDF8UHPBTXigvtJWeeMJzx","k":"AP5SzUaHHhF5aLmyKHB3eTqUaREGKyVttwo5T4uwEkM4","s":"JHSvITBMZiTEhpK61EDIWjQOLnJ8iGQ3FT1nfyxNNlxSngzp1eCRKnGC/RqEWgtot9M5rmT...
rust_cleaned_test_functions.jsonl/34234
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 406 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15866, 24577, 58900, 14832, 368, 341, 286, 2930, 17223, 1866, 797, 286, 1077, 3565, 284, 435, 55543, 4913, 307, 3252, 77, 38811, 76, 2277, 70, 2198, 82, 22317, 67, 3252, 41, 57, 6161, 24, 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_from_base64_basic() { assert_eq!("".from_base64().unwrap(), b""); assert_eq!("Zg==".from_base64().unwrap(), b"f"); assert_eq!("Zm8=".from_base64().unwrap(), b"fo"); assert_eq!("Zm9v".from_base64().unwrap(), b"foo"); assert_eq!("Zm9vYg==".from_base64().unwr...
rust_cleaned_test_functions.jsonl/5190
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 7651, 21, 19, 34729, 368, 341, 286, 2060, 10714, 17223, 3263, 1499, 7651, 21, 19, 1005, 15454, 1507, 293, 1, 797, 286, 2060, 10714, 17223, 57, 70, 418, 3263, 1499, 7651, 21, 19, 1005, 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_basic_query_locations() { let querier = new_valid_db("query_locations.db"); let locations = querier.query_locations(Some("kitchen"), None, None); assert_eq!(2, locations.len()); }
rust_cleaned_test_functions.jsonl/107680
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 5738, 45032, 368, 341, 286, 1077, 29134, 1268, 284, 501, 8337, 8685, 445, 1631, 45032, 7076, 3071, 286, 1077, 10468, 284, 29134, 1268, 4786, 45032, 65405, 445, 74, 7454, 3975, 2240, 11, 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
#[test] fn test_list_dir() { let dir = tempdir().unwrap(); let mut expected = create_files(dir.path(), 2).unwrap(); let repo = LogRepository::new(dir.path()); let mut paths = repo.list().unwrap(); expected.sort(); paths.sort(); assert_eq!(paths, &expected[...
rust_cleaned_test_functions.jsonl/101105
{ "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, 2019, 4334, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 5206, 3601, 284, 1855, 10931, 14161, 3875, 1507, 220, 17, 568, 15454, 543, 286, 1077, 15867, 284, 2835, 4624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unsigned_timestamp() { let mut accounts = vec![ Account::new(1, 0, id()), Account::new(0, 512, id()), Account::new(0, 0, id()), ]; // Initialize BudgetProgram let from = Keypair::new(); let contract = Keypair::new().pub...
rust_cleaned_test_functions.jsonl/30409
{ "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, 67830, 23073, 368, 341, 286, 1077, 5206, 9618, 284, 7486, 90515, 310, 8615, 486, 931, 7, 16, 11, 220, 15, 11, 877, 14702, 310, 8615, 486, 931, 7, 15, 11, 220, 20, 16, 17, 11, 877, 14702, 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_generation() { let gen_one = Generation::ONE; let gen_two = gen_one.next(); assert_eq!(1, gen_one.get()); assert!(!gen_one.is_removed()); assert_eq!(2, gen_two.get()); assert!(!gen_two.is_removed()); let gen_three_rm = gen_two.removed(); ...
rust_cleaned_test_functions.jsonl/30747
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 210 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64191, 368, 341, 286, 1077, 4081, 11667, 284, 23470, 486, 5225, 280, 286, 1077, 4081, 23241, 284, 4081, 11667, 4529, 543, 286, 2060, 10714, 10297, 16, 11, 4081, 11667, 670, 1423, 286, 2060, 0, 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_Elf_from_dynamic_hdr() { let elf: Result<Elf<'_, LittleEndian, Elf32>, ElfError> = Elf::try_from(&ELF32_DYNAMIC_ELF_HDR[0..]); assert!(elf.is_ok()); }
rust_cleaned_test_functions.jsonl/119467
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2089, 11008, 5673, 45992, 28238, 368, 341, 262, 1077, 40745, 25, 5714, 27, 75832, 18291, 6878, 14671, 43231, 11, 43600, 18, 17, 8066, 43600, 1454, 29, 4035, 260, 43600, 486, 1539, 5673, 2099, 2749...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_set_default_route() { use crate::KI; use std::os::unix::process::ExitStatusExt; use std::process::ExitStatus; use std::process::Output; let mut counter = 0; KI.set_mock(Box::new(move |program, args| { counter += 1; match counter { 1 => { ...
rust_cleaned_test_functions.jsonl/28785
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 438 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 9993, 28109, 368, 341, 262, 990, 17717, 486, 80971, 280, 262, 990, 1460, 486, 436, 486, 56646, 486, 4630, 486, 15339, 2522, 6756, 280, 262, 990, 1460, 486, 4630, 486, 15339, 2522, 280, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_panic() { Enum::Item(Arc::new(Item { item: None, ref_to_enum: None, })) .visit_children_with(&mut Panic) }
rust_cleaned_test_functions.jsonl/38682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 31270, 368, 341, 262, 14086, 486, 1234, 4346, 1287, 486, 931, 29771, 341, 286, 1509, 25, 2240, 345, 286, 2053, 2346, 31054, 25, 2240, 345, 262, 28712, 262, 659, 27460, 31206, 6615, 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_height_and_len() { let root_hash = "8fed6b1d66ea88efd0c1b7e752334a08128791e974dce6f4c14902fa0e33d5e1".to_string(); let mut db = MerkleTree::new(); db.push("1"); db.push("2"); db.push("3"); db.push("4"); db.push("5"); db.push("6"); db.push("7"); db.push("8...
rust_cleaned_test_functions.jsonl/98831
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 370 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9561, 8378, 6043, 368, 341, 262, 1077, 3704, 8950, 284, 330, 23, 51123, 21, 65, 16, 67, 21, 21, 12508, 23, 23, 93678, 15, 66, 16, 65, 22, 68, 22, 20, 17, 18, 18, 19, 64, 15, 23, 16, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_corrupted_snapshot() { let vm = VersionMap::new(); let state_1 = Test1 { field_x: 0, field0: 0, field1: 1, }; let mut snapshot_mem = vec![0u8; 1024]; // Serialize as v1. let mut snapshot = Snapshot::new(vm.clon...
rust_cleaned_test_functions.jsonl/43357
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 446 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14734, 85954, 53265, 368, 341, 286, 1077, 10995, 284, 6079, 2227, 486, 931, 543, 286, 1077, 1584, 62, 16, 284, 3393, 16, 341, 310, 2070, 3212, 25, 220, 15, 345, 310, 2070, 15, 25, 220, 15, 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_input_file() { let mut file = NamedTempFile::new().unwrap(); file.write_all("abcdef".as_bytes()).unwrap(); file.flush().unwrap(); let output = cmd!(blake2_exe(), "--length=16", file.path()) .read() .expect("blake2 failed"); assert_eq!("2465e7ee63a17b4b307c7792...
rust_cleaned_test_functions.jsonl/14815
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 156 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5898, 2458, 368, 341, 262, 1077, 5206, 1034, 284, 40459, 12151, 1703, 486, 931, 1005, 15454, 543, 262, 1034, 3836, 5705, 445, 41202, 3263, 300, 12524, 6011, 15454, 543, 262, 1034, 23038, 1005, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_file_from_path() { let path = "/a/file/somewhere/in/a/woods/of/files/is-my-name.txt"; assert!(file_name_from_path(path) == "is-my-name.txt"); }
rust_cleaned_test_functions.jsonl/80341
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 5673, 2638, 368, 341, 286, 1077, 1815, 284, 3521, 64, 23903, 2687, 316, 60652, 17996, 14186, 14, 81029, 96745, 33220, 46427, 61496, 11494, 3909, 876, 286, 2060, 10297, 1192, 1269, 5673, 2638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_channel() { let c = MainContext::new(); let l = MainLoop::new(Some(&c), false); c.acquire(); let (sender, receiver) = MainContext::channel(Priority::default()); let sum = Rc::new(RefCell::new(0)); let sum_clone = sum.clone(); let l_clone...
rust_cleaned_test_functions.jsonl/5018
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 408 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14571, 368, 341, 286, 1077, 272, 284, 4697, 1972, 486, 931, 543, 286, 1077, 326, 284, 4697, 14620, 486, 931, 65405, 2099, 66, 701, 895, 626, 286, 272, 69627, 1428, 286, 1077, 320, 11644, 11, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_sdp_semantics_string() { let tests = vec![ (SDPSemantics::Unspecified, "Unspecified"), ( SDPSemantics::UnifiedPlanWithFallback, "unified-plan-with-fallback", ), (SDPSemantics::PlanB, "plan-b"), (S...
rust_cleaned_test_functions.jsonl/31013
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 266 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 9796, 30442, 36233, 3904, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 320, 5491, 5012, 336, 36233, 486, 1806, 53434, 11, 330, 1806, 53434, 4461, 310, 2399, 394, 8030, 5012, 336, 36233, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_trace() -> std::result::Result<(), Box<dyn std::error::Error>> { let test_path = assert_fs::NamedTempFile::new("test")?; test_path.touch()?; let child = Command::new("cat") .arg(test_path.path()) .traceme() .spawn()?; let paths...
rust_cleaned_test_functions.jsonl/102527
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 494 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23575, 368, 1464, 1460, 486, 1382, 486, 2077, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 286, 1077, 1273, 2638, 284, 2060, 34470, 486, 15810, 12151, 1703, 486, 931, 445, 1944, 899, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_sign_verify_tamper() { use randombytes::randombytes; for i in 0..32usize { let (pk, sk) = gen_keypair(); let m = randombytes(i); let mut sm = sign(&m, &sk); for j in 0..sm.len() { sm[j] ^= 0x20; asser...
rust_cleaned_test_functions.jsonl/11393
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11172, 35638, 528, 309, 712, 368, 341, 286, 990, 4194, 9651, 486, 11463, 9651, 280, 286, 369, 600, 304, 220, 15, 496, 18, 17, 51878, 341, 310, 1077, 320, 20819, 11, 1901, 8, 284, 4081, 3097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_min_max_x_y() { let p = Rect::new(Point2D::new(0u32, 0u32), Size2D::new(50u32, 40u32)); assert!(p.max_y() == 40); assert!(p.min_y() == 0); assert!(p.max_x() == 50); assert!(p.min_x() == 0); let r = Rect::new(Point2D::new(-10, -5), Size2D::new(50, ...
rust_cleaned_test_functions.jsonl/24161
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 269 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7260, 6345, 3212, 4178, 368, 341, 286, 1077, 281, 284, 11920, 486, 931, 32737, 17, 35, 486, 931, 7, 15, 84, 18, 17, 11, 220, 15, 84, 18, 17, 701, 8478, 17, 35, 486, 931, 7, 20, 15, 84, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_inside_if_conditional() { test( "var a = foo(); if (a) { alert(3); }", "var a = foo(); if (a) { alert(3); }", ); test( "var a; a = foo(); if (a) { alert(3); }", "var a; a = foo(); if (a) { alert(3); }", ); }
rust_cleaned_test_functions.jsonl/27618
{ "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, 72860, 11119, 24433, 3005, 368, 341, 262, 1273, 1006, 286, 330, 947, 264, 284, 15229, 2129, 421, 320, 64, 8, 314, 5115, 7, 18, 1215, 335, 756, 286, 330, 947, 264, 284, 15229, 2129, 421, 320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_str() -> Result<(), ParseError> { let s = r#"##fileformat=VCFv4.3 ##fileDate=20200506 ##source=noodles-vcf ##assembly=file:///assemblies.fasta ##contig=<ID=sq0,length=8> ##contig=<ID=sq1,length=13> ##contig=<ID=sq2,length=21> ##INFO=<ID=NS,Number=1,Type=Integer,Description="Number o...
rust_cleaned_test_functions.jsonl/62669
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 957 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2895, 368, 1464, 5714, 68843, 14775, 1454, 29, 341, 286, 1077, 274, 284, 435, 55543, 565, 1192, 2243, 28, 53, 9650, 85, 19, 13, 18, 198, 565, 1192, 1916, 28, 17, 15, 17, 15, 15, 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_has_columns() { let mut chunk = Chunk::new(42); let dictionary = &mut chunk.dictionary; let mut table = Table::new(dictionary.lookup_value_or_insert("table_name")); let lp_lines = vec![ "h2o,state=MA,city=Boston temp=70.4 100", "h2o,state=...
rust_cleaned_test_functions.jsonl/13914
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 648 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21778, 22590, 368, 341, 286, 1077, 5206, 11879, 284, 45513, 486, 931, 7, 19, 17, 317, 286, 1077, 10997, 284, 609, 6984, 11879, 82136, 280, 286, 1077, 5206, 1965, 284, 6633, 486, 931, 73592, 3993...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_list_in_select_context() -> Result<()> { let s = Series::new("a", &[1, 2, 3]); let mut builder = get_list_builder(s.dtype(), s.len(), 1, s.name()); builder.append_series(&s); let expected = builder.finish().into_series(); let df = DataFrame::new(vec![s])?; let out = df....
rust_cleaned_test_functions.jsonl/171
{ "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, 2019, 1243, 13051, 8467, 368, 1464, 5714, 71698, 341, 262, 1077, 274, 284, 11131, 486, 931, 445, 64, 497, 44590, 16, 11, 220, 17, 11, 220, 18, 2558, 262, 1077, 5206, 7363, 284, 633, 2019, 2853...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_puts_gets_deletes_binary() { init_logging(); let bucket_name = format!("test-bucket-{}-{}", "binary".to_owned(), get_time().sec); let test_client = TestS3Client::new(bucket_name.clone()); test_client.create_test_bucket(bucket_name.clone()); let binary_filename = format!("te...
rust_cleaned_test_functions.jsonl/112575
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 337 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88574, 3062, 82, 2259, 13881, 31761, 368, 341, 262, 2930, 59982, 1428, 262, 1077, 15621, 1269, 284, 3561, 17223, 1944, 1455, 11152, 12, 6257, 12, 42351, 330, 25891, 3263, 983, 51973, 1507, 633, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unfold_step_v2() { let client = graph_serializer(GraphSON::V2); drop_vertices(&client, "test_unfold_step").unwrap(); let vertex = create_vertex_with_label(&client, "test_unfold_step", "Count"); let g = traversal().with_remote(client); let results = g .v(vertex.id(...
rust_cleaned_test_functions.jsonl/26293
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 334 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 19961, 11946, 2273, 17, 368, 341, 262, 1077, 2943, 284, 4771, 67441, 63779, 2703, 486, 53, 17, 626, 262, 5943, 37720, 2099, 2972, 11, 330, 1944, 4907, 19961, 11946, 1827, 15454, 1428, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tree() { let tmp = tempdir(); tmp.child("one").touch().unwrap(); tmp.child("one.d").create_dir_all().unwrap(); tmp.child("one.d/two").touch().unwrap(); cmd() .arg(tmp.path()) .arg("--tree") .assert() .stdout(predicate::str::is_match("├── one\n...
rust_cleaned_test_functions.jsonl/643
{ "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, 11663, 368, 341, 262, 1077, 4174, 284, 2730, 3741, 543, 262, 4174, 17531, 445, 603, 1827, 22020, 1005, 15454, 543, 262, 4174, 17531, 445, 603, 950, 1827, 3182, 4334, 5705, 1005, 15454, 543, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_variables_encoded_json() { let result: Result<GraphQLRequest, Errors> = Form::parse_encoded(RawStr::new( r#"query=test&variables={"foo":"x%20y%26%3F+z"}"#, )); let variables = ::serde_json::from_str::<InputValue>(r#"{"foo":"x y&? z"}"#).unwrap(); let e...
rust_cleaned_test_functions.jsonl/24082
{ "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, 28182, 73069, 9455, 368, 341, 286, 1077, 1102, 25, 5714, 27, 88637, 1900, 11, 39256, 29, 284, 3377, 486, 6400, 73069, 2785, 672, 2580, 486, 931, 1006, 310, 435, 55543, 1631, 53538, 5, 18616, 157...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_regexp_like_function() -> Result<()> { let tests = vec![ ScalarFunctionTest { name: "regexp-like-two-column-passed", columns: vec![ Series::from_data(vec!["abc", "abd", "Abe", "new*\n*line", "fo\nfo", ""]), Series::from_data(vec...
rust_cleaned_test_functions.jsonl/53021
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1471 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4920, 4580, 25535, 9174, 368, 1464, 5714, 71698, 341, 262, 1077, 7032, 284, 7486, 90515, 286, 35176, 5152, 2271, 341, 310, 829, 25, 330, 55796, 12681, 37402, 24960, 46967, 291, 756, 310, 8147, 25,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_tick_multi_thread() { let tick_sequence = Arc::new(AtomicUsize::new(0)); let tick_sequence2 = tick_sequence.clone(); let (tx, rx) = mpsc::sync_channel(1000); let pool = Builder::new() .pool_size(2) .on_tick(move || { let s...
rust_cleaned_test_functions.jsonl/55771
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 584 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43612, 25133, 10814, 368, 341, 286, 1077, 9341, 23735, 284, 19689, 486, 931, 7, 65857, 52, 2141, 486, 931, 7, 15, 3237, 286, 1077, 9341, 23735, 17, 284, 9341, 23735, 15997, 543, 286, 1077, 320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_edn_macro() { // looks like an array element separator. let _ = edn!([ <Result<(), ()> as Clone>::clone(&Ok(())), <Result<(), ()> as Clone>::clone(&Err(())) ]); // Same thing but in the map values. let _ = edn!({ "ok": <Result<(), ()> as Clone>::...
rust_cleaned_test_functions.jsonl/49355
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 334 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32370, 77, 58810, 368, 341, 1066, 262, 442, 5868, 1075, 458, 1334, 2392, 24792, 624, 262, 1077, 716, 284, 1578, 77, 0, 8956, 286, 366, 2077, 68843, 1719, 29, 438, 27913, 6831, 19982, 2099, 11578...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_simple_segment() { let dir = TempDir::new("segment_dir").unwrap(); let segment = build_simple_segment( dir.path(), 100, Distance::Dot, Arc::new(SchemaStorage::new()), ) .unwrap(); eprintln!(" = {:?}", ...
rust_cleaned_test_functions.jsonl/44592
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 30015, 28061, 368, 341, 286, 1077, 5419, 284, 19944, 6184, 486, 931, 445, 23169, 4334, 1827, 15454, 543, 286, 1077, 10238, 284, 1936, 30015, 28061, 1006, 310, 5419, 3875, 3148, 310, 220, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_list_circuits() { let pool = create_connection_pool_and_migrate(); let store = DieselAdminServiceStore::new(pool); let circuit = create_circuit(); let nodes = create_nodes(); let extra_circuit = create_extra_circuit(); let extra_nodes = create_e...
rust_cleaned_test_functions.jsonl/570
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 949 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2019, 666, 2437, 11797, 368, 341, 286, 1077, 7314, 284, 1855, 15866, 15709, 8378, 717, 34479, 1428, 286, 1077, 3553, 284, 53794, 7210, 1860, 6093, 486, 931, 41838, 626, 286, 1077, 16224, 284, 1855...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_option_empty_vec() { let a: Option<Vec<int>> = Some(vec![]); match a { None => panic!("unexpected None while matching on Some(vec![])"), _ => {} } }
rust_cleaned_test_functions.jsonl/107076
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10708, 9672, 15124, 13251, 368, 341, 262, 1077, 264, 25, 6959, 50439, 4159, 2452, 284, 4329, 25592, 0, 56703, 262, 2432, 264, 341, 286, 2240, 589, 21975, 17223, 53859, 2240, 1393, 12579, 389, 4329...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fastq_write_record() { let mut out = vec![]; let mut rdr = Reader::new(FASTQ); while let Some(Ok(r)) = rdr.next() { r.write(&mut out).unwrap(); } assert_eq!(&out, &FASTQ); }
rust_cleaned_test_functions.jsonl/40344
{ "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, 35743, 80, 9165, 14192, 368, 341, 262, 1077, 5206, 700, 284, 7486, 0, 15078, 262, 1077, 5206, 66984, 284, 25166, 486, 931, 7, 59206, 48, 317, 262, 1393, 1077, 4329, 7, 11578, 2601, 593, 284, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_safe_checkout_delete_of_modified_blob() -> BitResult<()> { BitRepo::with_minimal_repo(|repo| { modify!(repo: "foo"); let conflicts = bit_checkout!(repo: &rev!(commit! {})).unwrap_err().try_into_checkout_conflict()?; assert_eq!(conflicts.len(), 1); ...
rust_cleaned_test_functions.jsonl/62951
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34067, 68186, 11353, 3575, 37749, 45908, 368, 1464, 6495, 2077, 71698, 341, 262, 6495, 25243, 486, 4197, 7260, 2861, 37784, 22428, 23476, 91, 341, 286, 5602, 10297, 23476, 25, 330, 7975, 797, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_make_filename_safe_respects_character_boundaries() { let input = "✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓"; let safe = make_filename_safe(input); assert!(safe.len() < MAX_DIRECTORY_NAME_LEN); }
rust_cleaned_test_functions.jsonl/51506
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 13323, 34067, 4918, 7973, 40988, 19447, 5431, 368, 341, 286, 1077, 1946, 4035, 310, 330, 143617, 143617, 143617, 143617, 143617, 143617, 143617, 143617, 143617, 143617, 143617, 143617, 143617, 1436...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_assert_pixels_eq_within_passes() { let image = gray_image!( 00, 01, 02; 10, 11, 12); let diff = gray_image!( 00, 02, 02; 10, 11, 12); assert_pixels_eq_within!(diff, image, 1); }
rust_cleaned_test_functions.jsonl/4651
{ "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, 16553, 49745, 10714, 72385, 15464, 288, 368, 341, 286, 1077, 2168, 284, 17545, 4954, 33673, 310, 220, 15, 15, 11, 220, 15, 16, 11, 220, 15, 17, 280, 310, 220, 16, 15, 11, 220, 16, 16, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_date_format() { use std::sync::Arc; use tidb_query_datatype::expr::{EvalConfig, EvalContext, Flag, SqlMode}; let cases = vec![ ( "2010-01-07 23:12:34.12345", "%b %M %m %c %D %d %e %j %k %h %i %p %r %T %s %f %U %u ...
rust_cleaned_test_functions.jsonl/36229
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2549 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4164, 8955, 368, 341, 286, 990, 1460, 486, 12996, 486, 36809, 401, 286, 990, 13112, 65, 5738, 15353, 20157, 486, 9413, 22964, 54469, 2648, 11, 58239, 1972, 11, 22666, 11, 7224, 3636, 2315, 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_get_coldkey_balance_with_balance() { new_test_ext().execute_with(|| { let coldkey_account_id = 5454; // arbitrary let amount = 1337; // Put the balance on the account Subtensor::add_balance_to_coldkey_account(&coldkey_account_id, amount); let result = Subtensor::get_coldkey_balance(...
rust_cleaned_test_functions.jsonl/17163
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 154 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 666, 813, 792, 29396, 6615, 29396, 368, 341, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 197, 10217, 9255, 792, 13500, 842, 284, 220, 20, 19, 20, 19, 26, 442, 24168, 198, 197, 10217, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_types_singular() { let mut message = TestTypesSingular::new(); message.set_double_field(19f64); message.set_float_field(20f32); message.set_int32_field(21); message.set_int64_field(-22); message.set_uint32_field(23); message.set_uint64_field(24); message.set_sint3...
rust_cleaned_test_functions.jsonl/2711
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 325 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9763, 93240, 368, 341, 262, 1077, 5206, 1943, 284, 3393, 4173, 50, 41880, 486, 931, 543, 262, 1943, 980, 24598, 5013, 7, 16, 24, 69, 21, 19, 317, 262, 1943, 980, 17586, 5013, 7, 17, 15, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_remove_imm() { let mut opcode = OpcodeData { name: "TestOp", immediates: vec![("field1", ImmType::BLA), ("field2", ImmType::BLA)], inputs: Inputs::NOV, outputs: Outputs::NOV, flags: InstrFlags::NF, }; let fixups...
rust_cleaned_test_functions.jsonl/54511
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 463 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 71370, 368, 341, 286, 1077, 5206, 30028, 284, 78899, 1043, 341, 310, 829, 25, 330, 2271, 7125, 756, 310, 5551, 973, 25, 7486, 20703, 445, 2566, 16, 497, 15335, 929, 486, 9389, 32, 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_append() { let mut a = BTreeSet::new(); a.insert(1); a.insert(2); a.insert(3); let mut b = BTreeSet::new(); b.insert(3); b.insert(4); b.insert(5); a.append(&mut b); assert_eq!(a.len(), 5); assert_eq!(b.len(), 0); assert_eq!(a.contains(&1), true...
rust_cleaned_test_functions.jsonl/4420
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26041, 368, 341, 262, 1077, 5206, 264, 284, 425, 6533, 1649, 486, 931, 543, 262, 264, 7030, 7, 16, 317, 262, 264, 7030, 7, 17, 317, 262, 264, 7030, 7, 18, 626, 262, 1077, 5206, 293, 284, 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_do_not_remove_getter_only_access() { test_same(concat!( "var a = {", " get property() {}", "};", "a.property;", )); test_same(concat!( "var a = {};", "Object.defineProperty(a, 'property', {", " get() {}", "});", ...
rust_cleaned_test_functions.jsonl/491
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26309, 7913, 18193, 3062, 465, 18410, 12759, 368, 341, 262, 1273, 33574, 96360, 33673, 286, 330, 947, 264, 284, 314, 497, 715, 286, 330, 220, 633, 3343, 368, 4687, 756, 286, 330, 11061, 756, 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_incompatible_server_auto_split_region() { let count = 5; let mut cluster = new_incompatible_server_cluster(0, count); test_auto_split_region(&mut cluster); }
rust_cleaned_test_functions.jsonl/25769
{ "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, 1243, 34842, 12015, 27740, 17052, 20627, 368, 341, 262, 1077, 1760, 284, 220, 20, 280, 262, 1077, 5206, 10652, 284, 501, 1243, 34842, 12015, 28441, 7, 15, 11, 1760, 317, 262, 1273, 27740, 17052, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_source_uri_from_str_git_with_git_extension() { assert_source_uri_from_str( "git@github.com:ffizer/ffizer.git", "ffizer/ffizer", Some("github.com"), ); }
rust_cleaned_test_functions.jsonl/104985
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10347, 15572, 5673, 2895, 68801, 6615, 68801, 31035, 368, 341, 286, 2060, 10347, 15572, 5673, 2895, 1006, 310, 330, 12882, 31, 5204, 905, 25, 542, 3135, 14, 542, 3135, 32799, 756, 310, 330, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_fixed_size_list_array_builder_finish() { let values_builder = Int32Array::builder(5); let mut builder = FixedSizeListBuilder::new(values_builder, 3); builder.values().append_slice(&[1, 2, 3]).unwrap(); builder.append(true).unwrap(); builder.values().appen...
rust_cleaned_test_functions.jsonl/30986
{ "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, 37839, 2368, 2019, 3858, 28532, 42980, 368, 341, 286, 1077, 2750, 28532, 284, 1333, 18, 17, 1857, 486, 17850, 7, 20, 317, 286, 1077, 5206, 7363, 284, 20149, 1695, 852, 3297, 486, 931, 20103, 285...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_correct_ri_extracted() { // Rescale Slope and Intercept exist for this scan let test_file = dicom_test_files::path("pydicom/CT_small.dcm").unwrap(); let obj = open_file(test_file).unwrap(); let pixel_data = obj.decode_pixel_data().unwrap(); assert_eq!(pixe...
rust_cleaned_test_functions.jsonl/120764
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31550, 62, 461, 39123, 291, 368, 341, 286, 442, 1800, 2246, 25603, 375, 323, 98338, 3000, 369, 419, 8569, 198, 286, 1077, 1273, 2458, 284, 21249, 316, 4452, 10931, 486, 2343, 445, 3288, 29680, 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_get_sockets_dir_path_custom_envvar() { let old_sockets_dir = env::var(SOCKETS_DIR_PATH_ENV_VAR); env::set_var(SOCKETS_DIR_PATH_ENV_VAR, TMP_DIR_STR); let sockets_dir_path_f = get_sockets_dir_path(); assert_eq!(TMP_DIR_STR, sockets_dir_path_f.as_path().to_str().u...
rust_cleaned_test_functions.jsonl/79722
{ "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, 643, 19601, 4334, 2638, 15875, 15879, 947, 368, 341, 286, 1077, 2310, 643, 19601, 4334, 284, 6105, 486, 947, 3759, 33195, 50, 8291, 7944, 22027, 25750, 317, 286, 6105, 486, 746, 4612, 3759, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_page_margin_default() { let b = PageMargin::new().build(); assert_eq!( str::from_utf8(&b).unwrap(), r#"<w:pgMar w:top="1985" w:right="1701" w:bottom="1701" w:left="1701" w:header="851" w:footer="992" w:gutter="0" />"# ); }
rust_cleaned_test_functions.jsonl/131760
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6129, 42644, 9993, 368, 341, 286, 1077, 293, 284, 5755, 21681, 486, 931, 1005, 5834, 543, 286, 2060, 10714, 33673, 310, 607, 486, 1499, 39453, 23, 2099, 65, 568, 15454, 3148, 310, 435, 2, 22476,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_at_end() { let mut ctx = EvalPtr::new("123"); assert!(!ctx.at_end()); let mut ctx = EvalPtr::new(""); assert!(ctx.at_end()); }
rust_cleaned_test_functions.jsonl/58900
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 98 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3752, 6213, 368, 341, 286, 1077, 5206, 5635, 284, 58239, 5348, 486, 931, 445, 16, 17, 18, 797, 286, 2060, 0, 3471, 3773, 6847, 6213, 5231, 286, 1077, 5206, 5635, 284, 58239, 5348, 486, 931, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_conditional_selection() { let a = Fp2 { c0: Fp::from_raw_unchecked([1, 2, 3, 4, 5, 6]), c1: Fp::from_raw_unchecked([7, 8, 9, 10, 11, 12]), }; let b = Fp2 { c0: Fp::from_raw_unchecked([13, 14, 15, 16, 17, 18]), c1: Fp::from_raw_unchecked([19, 20, 21, 22...
rust_cleaned_test_functions.jsonl/32504
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 294 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24433, 3005, 23672, 368, 341, 262, 1077, 264, 284, 434, 79, 17, 341, 286, 272, 15, 25, 434, 79, 486, 1499, 16067, 4907, 7549, 2561, 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_hex_color_good() { let h: HexColor = HexColor::try_from(SlackColor::Good).unwrap(); assert_eq!(h.to_string(), "good"); }
rust_cleaned_test_functions.jsonl/121604
{ "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, 32655, 6714, 44781, 368, 341, 286, 1077, 305, 25, 27228, 1636, 284, 27228, 1636, 486, 1539, 5673, 3759, 75, 473, 1636, 486, 15216, 568, 15454, 543, 286, 2060, 10714, 10297, 71, 2389, 3904, 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
#[test] fn test_microseconds_overflow() { let x: u128 = 18446744073709551614599999; x.micros().unwrap(); }
rust_cleaned_test_functions.jsonl/40373
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 57 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73003, 17403, 79073, 368, 341, 262, 1077, 856, 25, 575, 16, 17, 23, 284, 220, 16, 23, 19, 19, 21, 22, 19, 19, 15, 22, 18, 22, 15, 24, 20, 20, 16, 21, 16, 19, 20, 24, 24, 24, 24, 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
#[test] fn test_ffx_plugin_with_no_parameters_should_err() -> Result<(), Error> { let proxies = Default::default(); let original: ItemFn = parse_quote! { pub async fn echo() -> Result<(), Error> { Ok(()) } }; if let Ok(_) = ffx_plugin(original.clone(), proxies) { ...
rust_cleaned_test_functions.jsonl/85704
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 188 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58708, 87, 23110, 6615, 6536, 18263, 43378, 9266, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 59365, 284, 7899, 486, 2258, 543, 286, 1077, 4024, 25, 5739, 24911, 284, 4715, 45236, 0, 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_handle_iwant_msg_cached_shifted() { let (mut gs, peers, _) = inject_nodes1() .peer_no(20) .topics(Vec::new()) .to_subscribe(true) .create_network(); // perform 10 memshifts and check that it leaves the cache for shift in 1....
rust_cleaned_test_functions.jsonl/66887
{ "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, 10630, 5318, 52657, 6483, 64369, 22230, 291, 368, 341, 286, 1077, 320, 6984, 28081, 11, 25029, 11, 27439, 284, 15551, 14896, 16, 741, 310, 659, 16537, 6536, 7, 17, 15, 340, 310, 659, 55152, 4992...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_double_spend_protection() { let genesis_owner = crate::bls_dkg_id(); let genesis_key = genesis_owner.public_key_set.public_key(); let mut genesis_node = Mint::new(KeyManager::new( genesis_owner.public_key_set, (0, genesis_owner.secret_key_share), ...
rust_cleaned_test_functions.jsonl/10713
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1695 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24598, 643, 3740, 2540, 39141, 368, 341, 286, 1077, 59366, 29027, 284, 17717, 486, 2024, 82, 814, 7351, 842, 543, 286, 1077, 59366, 3097, 284, 59366, 29027, 37899, 3097, 2602, 37899, 3097, 543, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_rpc_request_processor_config_default_trait_fullnode_exit_fails() { let exit = Arc::new(AtomicBool::new(false)); let request_processor = JsonRpcRequestProcessor::new( StorageState::default(), JsonRpcConfig::default(), new_bank_forks().0, ...
rust_cleaned_test_functions.jsonl/20311
{ "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, 60799, 7893, 50127, 5332, 9993, 78491, 16372, 3509, 16880, 761, 6209, 368, 341, 286, 1077, 4869, 284, 19689, 486, 931, 7, 65857, 11233, 486, 931, 3576, 1106, 286, 1077, 1681, 50127, 284, 8308, 602...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reference_vector_l2_nonstandard_test32_size() { let test_vector = include_bytes!("../vectors/l2-nonstandard-test32-size.bit"); test_vs_minimp3(test_vector); }
rust_cleaned_test_functions.jsonl/69836
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 79 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25433, 12247, 907, 17, 21637, 20270, 4452, 18, 17, 2368, 368, 341, 262, 1077, 1273, 12247, 284, 2924, 12524, 17223, 1244, 85, 10605, 13328, 17, 98700, 20270, 16839, 18, 17, 7174, 30099, 797, 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
#[test] fn test_function_doc_missing_parameter() { let src = " // Package foo does a thing. package foo // add is a function. // // ## Parameters // - x: is any value. add = (x,y) => x + y "; let loc = Locator::new(&src[..]); ...
rust_cleaned_test_functions.jsonl/9997
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1037 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9174, 18869, 40447, 24899, 368, 341, 286, 1077, 2286, 284, 6228, 286, 442, 16906, 15229, 1558, 264, 3166, 624, 286, 6328, 15229, 271, 286, 442, 912, 374, 264, 729, 624, 286, 6475, 286, 442, 7704...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_angle_y_inverse_rotate_vector1() { let rotation = Rotation3::from_angle_y(Degrees(90_f64)); let vector = Vector3::unit_x(); let expected = Vector3::unit_z(); let result = rotation.inverse_rotate_vector(&vector); assert!(relative_eq!(result, expec...
rust_cleaned_test_functions.jsonl/70509
{ "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, 5673, 21727, 4178, 63333, 60834, 12247, 16, 368, 341, 286, 1077, 12695, 284, 47528, 18, 486, 1499, 21727, 4178, 5432, 791, 7858, 7, 24, 15, 761, 21, 19, 1106, 286, 1077, 4621, 284, 4196, 18, 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_split_100_percent_of_source_to_account_with_lamports() { let stake_pubkey = paychains_sdk::pubkey::new_rand(); let rent = Rent::default(); let rent_exempt_reserve = rent.minimum_balance(std::mem::size_of::<StakeState>()); let stake_lamports = rent_exempt_reserve *...
rust_cleaned_test_functions.jsonl/51797
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1553 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 62, 16, 15, 15, 29883, 3575, 10347, 2346, 13500, 6615, 907, 309, 3394, 368, 341, 286, 1077, 18279, 34014, 792, 284, 2291, 58358, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_verify_date_account_invalid_date_config() { let date_pubkey = Pubkey::new_rand(); let mut account = Account::new(1, 1, &solana_config_program::id()); let mut keyed_account = KeyedAccount::new(&date_pubkey, false, &mut account); assert_eq!( ve...
rust_cleaned_test_functions.jsonl/88799
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 202 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 4164, 13500, 31433, 4164, 5332, 368, 341, 1789, 286, 1077, 2400, 34014, 792, 284, 22611, 792, 486, 931, 33864, 543, 286, 1077, 5206, 2692, 284, 8615, 486, 931, 7, 16, 11, 220, 16, 11, 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_enum_endian_ctx() { let test_data = [0xdeu8, 0xad, 0xbe, 0xef, 0xff]; let ret_read = samples::EnumTypeEndian::try_from(test_data.as_ref()).unwrap(); assert_eq!( samples::EnumTypeEndian { t: samples::EnumTypeEndianCtx::VarA(0xFF) }, ret_read );...
rust_cleaned_test_functions.jsonl/123239
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 212 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31054, 87193, 15147, 368, 341, 262, 1077, 1273, 1769, 284, 508, 15, 56185, 84, 23, 11, 220, 15, 55254, 11, 220, 15, 42459, 11, 220, 15, 47510, 11, 220, 15, 9020, 935, 262, 1077, 2112, 6443, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_enum() { type TestEnum = Enum<Runtime, ImplNone, ImplNone>; let variant_0 = TestEnum::VariantUnnamed(1, 2, 3, Default::default()); let variant_0_bis = TestEnum::VariantUnnamed(1, 2, 4, Default::default()); let variant_1 = TestEnum::VariantNamed { a: 1, b: 2, c: 3, phantom: Default::default()...
rust_cleaned_test_functions.jsonl/125759
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 764 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31054, 368, 341, 13158, 3393, 10766, 284, 14086, 27, 15123, 11, 88092, 4064, 11, 88092, 4064, 10133, 10217, 11424, 62, 15, 284, 3393, 10766, 486, 20746, 78925, 7, 16, 11, 220, 17, 11, 220, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_smoke() { let manager = ODBCConnectionManager::new("DSN=PostgreSQL"); let pool = Pool::builder().max_size(2).build(manager).unwrap(); let (s1, r1) = mpsc::channel(); let (s2, r2) = mpsc::channel(); let pool1 = pool.clone(); let t1 = thread::spawn(move || { let c...
rust_cleaned_test_functions.jsonl/33312
{ "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, 15874, 4740, 368, 341, 262, 1077, 6645, 284, 506, 45053, 4526, 2043, 486, 931, 445, 5936, 45, 28, 4133, 59796, 797, 262, 1077, 7314, 284, 22728, 486, 17850, 1005, 2810, 2368, 7, 17, 568, 5834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mkdirat() { use rustix::fs::{cwd, mkdirat, openat, statat, unlinkat, AtFlags, FileType, Mode, OFlags}; let tmp = tempfile::tempdir().unwrap(); let dir = openat(&cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); mkdirat(&dir, "foo", Mode::IRWXU).unwrap(); let stat ...
rust_cleaned_test_functions.jsonl/61403
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 210 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 12438, 266, 368, 341, 262, 990, 23071, 941, 486, 3848, 22964, 32165, 11, 30073, 266, 11, 1787, 266, 11, 2793, 266, 11, 47479, 266, 11, 2411, 9195, 11, 93238, 11, 14562, 11, 3008, 22851, 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_michelso_mean() { let result = get_actual_result("test_csvs/Michelso.csv", "mean"); assert_abs_diff_eq!(result, 299.852400000000, epsilon = mean_epsilon()); }
rust_cleaned_test_functions.jsonl/80548
{ "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, 717, 90240, 704, 16933, 368, 341, 262, 1077, 1102, 284, 633, 40149, 5287, 445, 1944, 14020, 82, 10270, 90240, 704, 11219, 497, 330, 14287, 797, 262, 2060, 31170, 15850, 10714, 10297, 1382, 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_mat2_det() { assert_eq!(0.0, Mat2::zero().determinant()); assert_eq!(1.0, Mat2::identity().determinant()); assert_eq!(1.0, Mat2::from_angle(deg(90.0)).determinant()); assert_eq!(1.0, Mat2::from_angle(deg(180.0)).determinant()); assert_eq!(1.0, Mat2::from_angle(deg(270.0)).det...
rust_cleaned_test_functions.jsonl/13469
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16610, 17, 24409, 368, 341, 262, 2060, 10714, 10297, 15, 13, 15, 11, 6867, 17, 486, 14154, 1005, 67, 16483, 517, 1423, 262, 2060, 10714, 10297, 16, 13, 15, 11, 6867, 17, 486, 16912, 1005, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rule_with_proto_any() { assert_eq!( parse_str_to_rules("pass in;"), Ok(vec![filter::Rule { action: filter::Action::Pass, direction: filter::Direction::Incoming, quick: false, proto: filter::SocketProt...
rust_cleaned_test_functions.jsonl/29474
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21124, 6615, 37689, 37248, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 2895, 2346, 21407, 445, 6385, 304, 26, 4461, 310, 7622, 25592, 20703, 5315, 486, 11337, 341, 394, 1917, 25, 4051, 486, 2512...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_labels() { let mut hits = [false; 3]; // this method should cover all the possible labels for v in &CrdsValue::record_labels(Pubkey::default()) { match v { CrdsValueLabel::ContactInfo(_) => hits[0] = true, CrdsValueLabel::Vote(_...
rust_cleaned_test_functions.jsonl/80559
{ "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, 14547, 368, 341, 286, 1077, 5206, 12983, 284, 508, 3849, 26, 220, 18, 935, 286, 442, 419, 1714, 1265, 3421, 678, 279, 3204, 9201, 198, 286, 369, 348, 304, 609, 16001, 5356, 1130, 486, 8548, 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...
3
#[test] fn test_set_concurrency() -> anyhow::Result<()> { let formation = "app=2, web=3"; let pf = create_procfile(); pf.set_concurrency(formation); assert_eq!(pf.data.get("app").unwrap().concurrency.get(), 2); assert_eq!(pf.data.get("web").unwrap().concurrency.get(), 3)...
rust_cleaned_test_functions.jsonl/98628
{ "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, 2602, 3382, 15973, 368, 1464, 88964, 486, 2077, 71698, 341, 286, 1077, 18003, 284, 330, 676, 28, 17, 11, 3482, 28, 18, 876, 286, 1077, 27418, 284, 1855, 24436, 1192, 1428, 286, 27418, 980, 3382,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_frozen_account_lamport_increase() { let frozen_pubkey = Pubkey::from_str("My11111111111111111111111111111111111111111").unwrap(); let mut db = AccountsDb::new(Vec::new(), &ClusterType::Development); let mut account = AccountSharedData::new(1, 42, &frozen_pubk...
rust_cleaned_test_functions.jsonl/1370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 575 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 42240, 13500, 907, 309, 403, 73807, 368, 341, 286, 1077, 19690, 34014, 792, 4035, 310, 22611, 792, 486, 1499, 2895, 445, 5050, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 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_dot_prefixed_name() { equal_tokens! { <nodes> ".azure" -> b::token_list(vec![b::op("."), b::bare("azure")]) } }
rust_cleaned_test_functions.jsonl/5866
{ "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, 30941, 43331, 3286, 1269, 368, 341, 286, 6144, 28838, 0, 341, 310, 366, 20008, 397, 310, 5933, 39495, 1, 1464, 293, 486, 5839, 2019, 25592, 20703, 65, 486, 453, 73133, 701, 293, 486, 54102, 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
#[test] fn test_symlink_dont_overwrite() { let (at, mut ucmd) = at_and_ucmd!(); let file = "test_symlink_dont_overwrite"; let link = "test_symlink_dont_overwrite_link"; at.touch(file); at.touch(link); ucmd.args(&["-s", file, link]).fails(); assert!(at.file_exists(file)); assert...
rust_cleaned_test_functions.jsonl/4882
{ "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, 58530, 44243, 814, 544, 15431, 4934, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 1034, 284, 330, 1944, 58530, 44243, 814, 544, 15431, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_read_frames_header_blocked() { let (mut hconn, mut peer_conn, request_stream_id) = connect_and_send_request(); peer_conn.encoder.set_max_capacity(100).unwrap(); peer_conn.encoder.set_max_blocked_streams(100).unwrap(); let headers = vec![ (String::fro...
rust_cleaned_test_functions.jsonl/10950
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 29319, 8757, 89223, 368, 341, 286, 1077, 320, 6984, 305, 5148, 11, 5206, 14397, 17241, 11, 1681, 12673, 842, 8, 284, 4564, 8378, 13565, 7893, 1428, 286, 14397, 17241, 69042, 980, 6345, 35603...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_deadbeef_32k_to_12345_test_count_bytes() { new_ucmd!() .args(&[ "ibs=531", "obs=1031", "count=12345", "iflag=count_bytes", "if=deadbeef-18d99661a1de1fc9af21b0ec2cd67ba3.test", ]) .succeeds() .stdout_i...
rust_cleaned_test_functions.jsonl/99870
{ "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, 53427, 1371, 823, 62, 18, 17, 74, 2346, 62, 16, 17, 18, 19, 20, 4452, 3180, 12524, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 9640, 310, 330, 54341, 28, 20, 18, 16, 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_clean_first() { let index = AccountsIndex::<bool>::default_for_tests(); index.add_root(0, false); index.add_root(1, false); index.clean_dead_slot(0, &mut AccountsIndexRootsStats::default()); assert!(index.is_root(1)); assert!(!index.is_root(0)); ...
rust_cleaned_test_functions.jsonl/71338
{ "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, 19573, 12978, 368, 341, 286, 1077, 1922, 284, 40655, 1552, 27638, 2641, 6831, 2258, 5478, 32509, 543, 286, 1922, 1364, 12993, 7, 15, 11, 895, 317, 286, 1922, 1364, 12993, 7, 16, 11, 895, 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_num_readonly_accounts() { let key0 = Pubkey::new_unique(); let key1 = Pubkey::new_unique(); let key2 = Pubkey::new_unique(); let key3 = Pubkey::new_unique(); let key4 = Pubkey::new_unique(); let key5 = Pubkey::new_unique(); let legacy_mess...
rust_cleaned_test_functions.jsonl/119823
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 748 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4273, 6443, 3243, 55665, 368, 341, 286, 1077, 1376, 15, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 1376, 16, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 1376, 17, 284, 22611, 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_pretty_format_dictionary() -> Result<()> { // define a schema. let field_type = DataType::Dictionary(Box::new(DataType::Int32), Box::new(DataType::Utf8)); let schema = Arc::new(Schema::new(vec![Field::new("d1", field_type, true)])); let keys_builder =...
rust_cleaned_test_functions.jsonl/5238
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 545 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 21322, 8955, 42605, 368, 1464, 5714, 71698, 341, 286, 442, 6979, 264, 10802, 624, 286, 1077, 2070, 1819, 4035, 310, 33172, 486, 8517, 67758, 486, 931, 63941, 486, 1072, 18, 17, 701, 8261, 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...
6
#[test] fn test_into_inner_poison() { let m = Arc::new(Mutex::new(NonCopy(10))); let m2 = m.clone(); let _ = thread::spawn(move || { let _lock = m2.lock().unwrap(); panic!("test panic in inner thread to poison mutex"); }) .join(); assert!(...
rust_cleaned_test_functions.jsonl/8914
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45514, 34345, 61814, 3335, 368, 341, 286, 1077, 296, 284, 19689, 486, 931, 3189, 9371, 486, 931, 7, 8121, 12106, 7, 16, 15, 4945, 286, 1077, 296, 17, 284, 296, 15997, 543, 286, 1077, 716, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_get_random_peers() { // generate a default GossipsubConfig let gs_config = GossipsubConfigBuilder::default() .validation_mode(ValidationMode::Anonymous) .build() .unwrap(); // create a gossipsub struct let mut gs: Gossipsub = Go...
rust_cleaned_test_functions.jsonl/66885
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 22644, 36367, 388, 368, 341, 286, 442, 6923, 264, 1638, 479, 41473, 1966, 2648, 198, 286, 1077, 28081, 5332, 284, 479, 41473, 1966, 2648, 3297, 486, 2258, 741, 310, 659, 12284, 7302, 7, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_two_pairs_last_card_cascade() { test( &vec!["JD QH JS 8D QC", "JS QS JC 2D QD"], &vec!["JD QH JS 8D QC"], ) }
rust_cleaned_test_functions.jsonl/121267
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 36430, 12195, 16888, 666, 19977, 368, 341, 9401, 262, 1273, 1006, 286, 609, 4083, 0, 1183, 49915, 1207, 39, 12162, 220, 23, 35, 42607, 497, 330, 12545, 77746, 60583, 220, 17, 35, 1207, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_empty() { let tower = Tower::new_for_tests(0, 0.67); let ancestors = HashSet::new(); assert!(!tower.is_locked_out(0, &ancestors)); }
rust_cleaned_test_functions.jsonl/61130
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 60271, 6068, 15124, 368, 341, 286, 1077, 21271, 284, 21938, 486, 931, 5478, 32509, 7, 15, 11, 220, 15, 13, 21, 22, 317, 286, 1077, 37518, 284, 18931, 486, 931, 543, 286, 2060, 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