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_unconfirmed_duplicate_slots_and_lockouts() { /* Build fork structure: slot 0 | slot 1 / \ slot 2 | | | slot 3 | | | slot...
rust_cleaned_test_functions.jsonl/11069
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2563 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 41028, 70434, 54161, 8378, 9818, 11672, 368, 341, 286, 9049, 310, 7854, 22435, 5944, 1447, 338, 9446, 220, 15, 198, 4293, 9248, 338, 9446, 220, 16, 198, 338, 608, 262, 3044, 310, 9446, 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_nonce_initialize_with_empty_recent_blockhashes_fail() { let nonce_address = Pubkey::new_unique(); let nonce_account = nonce_account::create_account(1_000_000).into_inner(); #[allow(deprecated)] let blockhash_id = sysvar::recent_blockhashes::id(); #[allow(d...
rust_cleaned_test_functions.jsonl/95909
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 847 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48508, 40889, 6615, 15124, 62361, 7113, 8296, 288, 22121, 368, 341, 286, 1077, 39676, 6744, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 39676, 13500, 284, 39676, 13500, 486, 3182, 13500, 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_run_config() { let root = TempDir::new("test_run_config"); let root = root.ok().expect("Should have created a temp directory"); let base_path = root.path().join("base"); let config_path = root.path().join("config.lua"); std::fs::create_dir(base_path).unw...
rust_cleaned_test_functions.jsonl/48569
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 371 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 5332, 368, 341, 286, 1077, 3704, 284, 19944, 6184, 486, 931, 445, 1944, 14007, 5332, 797, 286, 1077, 3704, 284, 3704, 18165, 1005, 17119, 445, 14996, 614, 3465, 264, 2730, 6220, 3071, 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_startup_encoder_index_search_setter() { let mut odrive = init_odrive(); odrive .set_startup_encoder_index_search(AxisID::Zero, true) .unwrap(); assert_eq!( b"w axis0.config.startup_encoder_index_search 1\n".to_vec(), odrive.io_stream.get_mut().write_bu...
rust_cleaned_test_functions.jsonl/82652
{ "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, 80858, 39068, 3560, 10716, 2602, 465, 368, 341, 262, 1077, 5206, 297, 31967, 284, 2930, 51797, 56935, 543, 262, 297, 31967, 198, 286, 659, 746, 80858, 39068, 3560, 10716, 4346, 7191, 915, 486, 179...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_setfsuid() { use std::os::unix::fs::PermissionsExt; use std::{fs, thread}; require_capability!(CAP_SETUID); // get the UID of the "nobody" user let nobody = User::from_name("nobody").unwrap().unwrap(); // create a temporary file with permissions '-rw-r-----' let fil...
rust_cleaned_test_functions.jsonl/30624
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 489 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 3848, 2423, 368, 341, 262, 990, 1460, 486, 436, 486, 56646, 486, 3848, 486, 23851, 6756, 280, 262, 990, 1460, 22964, 3848, 11, 4516, 2440, 262, 1373, 89686, 10297, 31400, 8481, 6463, 626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_compute_1() { let input = &[1, 2, 3, 4]; pollster::block_on(assert_execute_gpu(input, &[0, 1, 7, 2])); }
rust_cleaned_test_functions.jsonl/113620
{ "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, 57028, 62, 16, 368, 341, 286, 1077, 1946, 284, 44590, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 286, 7085, 3667, 486, 4574, 4470, 75846, 44329, 35628, 5384, 11, 44590, 15, 11, 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
#[test] fn test_symbol_index_collection() { let (db, _) = RootDatabase::with_many_files( r#" //- /main.rs macro_rules! macro_rules_macro { () => {} }; macro_rules! define_struct { () => { struct StructFromMacro; } }; define_struct!(); macro Macro { } struct Struct; e...
rust_cleaned_test_functions.jsonl/69151
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 562 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21179, 3560, 25019, 368, 341, 286, 1077, 320, 1999, 11, 27439, 284, 18854, 5988, 486, 4197, 22101, 10931, 1006, 310, 435, 2, 698, 61463, 608, 3817, 25638, 271, 32606, 21407, 0, 18072, 21407, 58810...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cancelled() { match run_async_local(|tx, l| { let c = crate::Cancellable::new(); let t = crate::Task::new( None, Some(&c), move |a: &AsyncResult, _b: Option<&glib::Object>| { let t = a.downcast_re...
rust_cleaned_test_functions.jsonl/102158
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 462 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28895, 832, 368, 341, 286, 2432, 1598, 28346, 13564, 22428, 3998, 11, 326, 91, 341, 310, 1077, 272, 284, 17717, 486, 34, 83603, 486, 931, 543, 310, 1077, 259, 284, 17717, 486, 6262, 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...
3
#[test] fn test_new_unaligned_oversized() { // they return the remainder and prefix of the slice respectively. Test let mut buf = [0u8; 16]; { // in a block so that lv and suffix don't live too long let (lv, suffix) = La...
rust_cleaned_test_functions.jsonl/18897
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 821 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 4907, 47142, 62, 8969, 1506, 368, 341, 16885, 286, 442, 807, 470, 279, 26313, 323, 9252, 315, 279, 15983, 15576, 13, 3393, 198, 23459, 286, 1077, 5206, 6607, 284, 508, 15, 84, 23, 26, 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_versionize_struct_with_array() { #[derive(Debug, PartialEq, Versionize)] struct TestStruct { a: [u32; SIZE], b: [u8; dummy_mod::SIZE], c: Option<[i16; SIZE]>, } let test_struct = TestStruct { a: [1; SIZE], b: [2; dummy_mod::SIZE], ...
rust_cleaned_test_functions.jsonl/11258
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 322 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9438, 551, 15126, 6615, 3858, 368, 341, 262, 11506, 27098, 42618, 11, 55039, 11, 6079, 551, 5563, 262, 2036, 3393, 9422, 341, 286, 264, 25, 508, 84, 18, 17, 26, 25341, 1259, 286, 293, 25, 508,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { // test that the Deref and DerefMut implementations return a reference which // points to the right region of memory let buf = [0]; let lv = LayoutVerified::<_, u8>::new(&buf[..]).unwrap(); let buf_ptr = buf.as_ptr(); let deref_ptr = l...
rust_cleaned_test_functions.jsonl/18893
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 293 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6744, 368, 341, 286, 442, 1273, 429, 279, 422, 43970, 323, 422, 43970, 51440, 38337, 470, 264, 5785, 892, 198, 286, 442, 3501, 311, 279, 1290, 5537, 315, 4938, 271, 286, 1077, 6607, 284, 508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_try_from() { let data: Vec<u8> = vec![0x01]; let val = HeaderIdentAbiVersion::try_from(data.as_ref()).unwrap(); println!("value: {:?}", val); let expected = HeaderIdentAbiVersion::new(); assert_eq!(expected, val); let value: Vec<u8> = val.try_in...
rust_cleaned_test_functions.jsonl/112407
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 177 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 368, 341, 286, 1077, 821, 25, 11312, 34837, 23, 29, 284, 7486, 20703, 15, 87, 15, 16, 4821, 286, 1077, 1044, 284, 12104, 28301, 5830, 72, 5637, 486, 1539, 5673, 2592, 5357, 7793, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_merge_sort() { let mut v = vec![1; 200_000]; merge_sort(&mut v[..]); let sorted: Vec<u32> = (1..1_000_000).collect(); let mut v = sorted.clone(); merge_sort(&mut v[..]); assert_eq!(sorted, v); v.reverse(); merge_sort(&mut v[..]); assert_eq!(sorted, v); }
rust_cleaned_test_functions.jsonl/84110
{ "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, 20888, 18435, 368, 341, 262, 1077, 5206, 348, 284, 7486, 20703, 16, 26, 220, 17, 15, 15, 62, 15, 15, 15, 935, 262, 10880, 18435, 2099, 6984, 348, 95874, 10149, 262, 1077, 10615, 25, 11312, 348...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vec_sanitize_len_and_size_full_and_same_as_current_len() { const LEN: usize = 1024 * 1024; const SIZE: usize = 1024 * 1024; let result = AppendVec::sanitize_len_and_size(LEN, SIZE); assert_matches!(result, Ok(_)); }
rust_cleaned_test_functions.jsonl/5415
{ "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, 26041, 13251, 643, 58652, 6043, 8378, 2368, 16372, 8378, 33574, 11898, 11080, 6043, 368, 341, 286, 733, 83099, 25, 22301, 284, 220, 16, 15, 17, 19, 353, 220, 16, 15, 17, 19, 280, 286, 733, 253...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_verify_leader_entries() { let dummy_leader_id = Keypair::new().pubkey(); let dummy_leader_tokens = 1; let entries = Mint::new_with_leader(100, dummy_leader_id, dummy_leader_tokens).create_entries(); assert!(entries[..].verify(&entries[0].id)); }
rust_cleaned_test_functions.jsonl/7368
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 79991, 26092, 368, 341, 286, 1077, 17292, 79991, 842, 284, 6569, 1082, 1310, 486, 931, 1005, 9585, 792, 543, 286, 1077, 17292, 79991, 28838, 284, 220, 16, 280, 286, 1077, 10695, 4035, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rwlock_try_write() { let lock = RwLock::new(0isize); { let read_guard = lock.read(); let write_result = lock.try_write(); assert!( write_result.is_none(), "try_write should fail while read_guard is in scope" ...
rust_cleaned_test_functions.jsonl/15754
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 538 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 98850, 53283, 9165, 368, 341, 286, 1077, 5296, 284, 55294, 11989, 486, 931, 7, 15, 285, 551, 317, 286, 341, 310, 1077, 1349, 36796, 284, 5296, 4125, 1428, 310, 1077, 3270, 5287, 284, 5296, 48779...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_raw_bytes() { let (sql, params) = Postgres::build(Select::default().value(Value::bytes(vec![1, 2, 3]).raw())).unwrap(); assert_eq!("SELECT E'010203'", sql); assert!(params.is_empty()); }
rust_cleaned_test_functions.jsonl/6459
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 12524, 368, 341, 286, 1077, 320, 3544, 11, 3628, 8, 284, 3877, 17818, 486, 5834, 7, 3379, 486, 2258, 1005, 957, 25346, 486, 9651, 25592, 20703, 16, 11, 220, 17, 11, 220, 18, 10697, 1041...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_detect_many() { let filter = PathFilter::new("/users/<id>/emails"); let mut state = PathState::new("/users/29/emails"); assert!(filter.detect(&mut state)); assert_eq!( format!("{:?}", state), r#"PathState { url_path: "users/29/emails", curs...
rust_cleaned_test_functions.jsonl/63612
{ "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, 56457, 22101, 368, 341, 286, 1077, 4051, 284, 7933, 5632, 486, 931, 4283, 4218, 23012, 307, 18105, 51376, 797, 286, 1077, 5206, 1584, 284, 7933, 1397, 486, 931, 4283, 4218, 14, 17, 24, 14, 51376...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_connection() { let connection = UdpConnection::new(UdpConnectionConfig::default()); assert_eq!(connection.is_new(), true); assert_eq!(connection.is_bound(), false); assert_eq!(connection.is_connected(), false); assert_eq!(connection.is_disconnected(),...
rust_cleaned_test_functions.jsonl/54772
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 15866, 368, 341, 286, 1077, 3633, 284, 547, 9796, 4526, 486, 931, 12317, 9796, 4526, 2648, 486, 2258, 5231, 286, 2060, 10714, 10297, 7742, 2079, 5921, 1507, 830, 317, 286, 2060, 10714, 10297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_str_from_utf8() { let xs = b"hello"; assert_eq!(from_utf8(xs), Ok("hello")); let xs = "ศไทย中华Việt Nam".as_bytes(); assert_eq!(from_utf8(xs), Ok("ศไทย中华Việt Nam")); let xs = b"hello\xFF"; assert!(from_utf8(xs).is_err()); }
rust_cleaned_test_functions.jsonl/17651
{ "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, 2895, 5673, 39453, 23, 368, 341, 262, 1077, 11943, 284, 293, 1, 14990, 876, 262, 2060, 10714, 10297, 1499, 39453, 23, 53322, 701, 7622, 445, 14990, 14929, 262, 1077, 11943, 284, 330, 123863, 12545...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multiline_errors() { test_parse_err::<BTreeMap<String, String>>(&[( "{\n \"foo\":\n \"bar\"", "EOF while parsing an object at line 3 column 6", )]); }
rust_cleaned_test_functions.jsonl/29846
{ "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, 26290, 26560, 20196, 368, 341, 262, 1273, 21039, 9266, 27638, 33, 6533, 2227, 3464, 11, 923, 2452, 2099, 58, 1006, 286, 13868, 59, 77, 220, 7245, 7975, 11693, 59, 77, 7245, 2257, 95901, 286, 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
#[test] fn test_validator_exit_default_config_should_panic() { solana_logger::setup(); error!("test_validator_exit_default_config_should_panic"); let num_nodes = 2; let local = LocalCluster::new_with_equal_stakes(num_nodes, 10_000, 100); cluster_tests::validator_exit(&local.entry_point_info,...
rust_cleaned_test_functions.jsonl/35983
{ "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, 64959, 16880, 9993, 5332, 43378, 620, 31270, 368, 341, 262, 2048, 3362, 27413, 486, 15188, 543, 262, 1465, 17223, 1944, 64959, 16880, 9993, 5332, 43378, 620, 31270, 797, 262, 1077, 1629, 14896, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_saturating_mul() { assert_eq!(from_str("9223372036854775808d"), Ok(Duration::MAX)); }
rust_cleaned_test_functions.jsonl/7179
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 61 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 2628, 1095, 24944, 368, 341, 286, 2060, 10714, 10297, 1499, 2895, 445, 24, 17, 17, 18, 18, 22, 17, 15, 18, 21, 23, 20, 19, 22, 22, 20, 23, 15, 23, 67, 3975, 7622, 64114, 486, 10586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_empty_input_errors() { let ciphersuite = &Config::supported_ciphersuites()[0]; let group_id = GroupId::from_slice(b"Test Group"); // Define credential bundles let alice_credential_bundle = CredentialBundle::new( "Alice".into(), CredentialType::Basic, ciph...
rust_cleaned_test_functions.jsonl/129464
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 659 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 5898, 20196, 368, 341, 262, 1077, 272, 82077, 9302, 284, 609, 2648, 486, 18216, 666, 82077, 3083, 288, 10116, 15, 935, 262, 1077, 1874, 842, 284, 5737, 764, 486, 1499, 26488, 1883, 1, 227...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_circle_distance() { // 2D let o = Point2::new(0f32, 0.); let c = SimpleCircle::new(o, 1.0); let p1 = Point2::new(2., 0.); let p2 = Point2::new(0., 2.); let p3 = Point2::new(3., 4.); assert_eq!(c.distance2(&p1), 1.0); assert_eq!(c.di...
rust_cleaned_test_functions.jsonl/80239
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 497 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42222, 19464, 368, 341, 286, 442, 220, 17, 35, 198, 286, 1077, 297, 284, 5126, 17, 486, 931, 7, 15, 69, 18, 17, 11, 220, 15, 58957, 286, 1077, 272, 284, 8993, 25199, 486, 931, 10108, 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_escaped_backslash_string_2() { assert_eq!( apply( r#" "\\" + "# .trim() ), Ok(vec![ Token::String(span(1, 1, "\"\\\\\"")), Token::Symbol(span(1, 6, "+")) ]) ) }
rust_cleaned_test_functions.jsonl/27565
{ "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, 62, 65826, 3895, 50256, 3904, 62, 17, 368, 341, 286, 2060, 10714, 33673, 310, 3796, 1006, 394, 435, 2, 698, 11934, 2105, 3610, 1, 4956, 503, 659, 10666, 741, 310, 2837, 310, 7622, 25592, 90515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_description_error() { assert!(matches!( EmbedBuilder::new().description("").build().unwrap_err().kind(), EmbedErrorType::DescriptionEmpty { description } if description.is_empty() )); let description_too_long = EmbedBuilder::DESCRIPTION...
rust_cleaned_test_functions.jsonl/50085
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11448, 4096, 368, 341, 286, 2060, 10297, 19914, 33673, 310, 37068, 3297, 486, 931, 1005, 4684, 80821, 5834, 1005, 15454, 9266, 1005, 15314, 3148, 310, 37068, 1454, 929, 486, 5009, 3522, 314, 4008, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_credential_complete() { assert_eq!( BasicAuthCredential::new( Some("username".to_owned()), Some("password".to_owned()) ) .is_complete(), true ); }
rust_cleaned_test_functions.jsonl/101748
{ "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, 666, 30320, 27675, 368, 341, 197, 6948, 10714, 33673, 298, 12791, 5971, 5087, 48265, 486, 931, 1006, 571, 7568, 635, 445, 5113, 3263, 983, 51973, 14702, 571, 7568, 635, 445, 3833, 3263, 983, 51973...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_package_with_contents() -> Result<()> { let tempdir = tempfile::tempdir().unwrap(); let root = tempdir.path(); let build_manifest_path = root.join("build.manifest"); let meta_package_path = root.join("package"); let empty_file_path = root.join("file"...
rust_cleaned_test_functions.jsonl/104043
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1322 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 26328, 6615, 16682, 368, 1464, 5714, 71698, 341, 286, 1077, 2730, 3741, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 286, 1077, 3704, 284, 2730, 3741, 3875, 543, 286, 1077, 1936, 74269, 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_parse_client_first_success() { let (authcid, authzid, nonce) = parse_client_first("n,,n=user,r=abcdefghijk").unwrap(); assert_eq!(authcid, "user"); assert!(authzid.is_none()); assert_eq!(nonce, "abcdefghijk"); let (authcid, authzid, nonce) = p...
rust_cleaned_test_functions.jsonl/10291
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 356 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8179, 12978, 18632, 368, 341, 286, 1077, 320, 3242, 20558, 11, 4166, 89, 307, 11, 39676, 8, 284, 4715, 8179, 12978, 445, 77, 10631, 77, 30164, 15883, 28, 56747, 18750, 1827, 15454, 543, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_receiving_mux_sabm_after_mux_startup_is_rejected() { let mut exec = fasync::Executor::new().unwrap(); let (mut session, mut outgoing_frames, _rfcomm_channels) = setup_session(); assert!(session.multiplexer().start(Role::Responder).is_ok()); // Remote sends us a ...
rust_cleaned_test_functions.jsonl/14927
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 319 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 46344, 80363, 643, 370, 76, 19844, 80363, 80858, 6892, 1288, 28303, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 25255, 486, 931, 1005, 15454, 1428, 286, 1077, 320, 6984, 3797, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_validators_to_config() { let mut testkit = TestKitBuilder::validator() .with_validators(3) .with_service(ConfigurationService { config: ConfigurationServiceConfig::default(), }) .create(); let cfg_change_height = Height(5); let new_cfg...
rust_cleaned_test_functions.jsonl/106406
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 303 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 8337, 2973, 2346, 5332, 368, 341, 262, 1077, 5206, 1273, 8226, 284, 3393, 7695, 3297, 486, 16112, 741, 286, 659, 4197, 8337, 2973, 7, 18, 340, 286, 659, 4197, 12267, 45443, 1860, 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...
1
#[test] fn test_insertion() { let x = b"AGCACACGTGTGCGCTATACAGTAAGTAGTAGTACACGTGTCACAGTTGTACTAGCATGAC"; let y = b"AGCACACGTGTGCGCTATACAGTACACGTGTCACAGTTGTACTAGCATGAC"; compare_to_full_alignment_local(x, y); compare_to_full_alignment_global(x, y); compare_to_full_alignment...
rust_cleaned_test_functions.jsonl/126729
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 290, 368, 341, 286, 1077, 856, 284, 293, 1, 1890, 92832, 1706, 25388, 25388, 38, 8798, 1162, 828, 1706, 1890, 15204, 1890, 32144, 32144, 51, 1706, 1706, 25388, 38, 7749, 1706, 1890, 14903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_if_ors() { let code = compile_exec("if True or False or False:\n pass\n"); assert_eq!( vec![ LoadConst { value: Boolean { value: true } }, JumpIfTrue { target: 1 }, LoadConst { ...
rust_cleaned_test_functions.jsonl/85616
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 441 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11119, 62, 1087, 368, 341, 286, 1077, 2038, 284, 19192, 18430, 445, 333, 3007, 476, 3557, 476, 3557, 7190, 77, 1494, 1699, 797, 286, 2060, 10714, 33673, 310, 7486, 90515, 394, 8893, 19167, 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_merge_both_created_tree() -> BitResult<()> { BitRepo::with_minimal_repo(|repo| { let ours = commit! { dir { foo < "foo" } }; let theirs = commit! { dir { foo < "foo" bar < "bar" ...
rust_cleaned_test_functions.jsonl/94182
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 308 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 88819, 27288, 11663, 368, 1464, 6495, 2077, 71698, 341, 262, 6495, 25243, 486, 4197, 7260, 2861, 37784, 22428, 23476, 91, 341, 286, 1077, 11350, 284, 5266, 0, 341, 310, 5419, 341, 394, 1522...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_argument_into_iter() { // Needs type annotation or ascription let raw: Argument<ArgData> = arg!(Raw("value")); let unknown: Argument<ArgData> = arg!(UnknownFlag("-foo")); assert_eq!(Vec::from_iter(raw.iter_os_strings()), ovec!["value"]); assert_eq!(Vec::fr...
rust_cleaned_test_functions.jsonl/16232
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 734 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9025, 45514, 11723, 368, 341, 286, 442, 43140, 943, 21223, 476, 438, 1453, 198, 286, 1077, 7112, 25, 13818, 27, 2735, 1043, 29, 284, 1392, 10297, 20015, 445, 957, 4010, 286, 1077, 9788, 25, 1381...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pr_assignees() { let mut pr = PullRequest::new(); let users = vec![User::new("user1"), User::new("user2")]; pr.assignees = users.clone(); pr.requested_reviewers = None; assert_eq!(users, (&pr).assignees()); let reviewers = vec![User::new("userC"...
rust_cleaned_test_functions.jsonl/8026
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 571 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5294, 20688, 5516, 368, 341, 286, 1077, 5206, 548, 284, 31828, 1900, 486, 931, 1428, 286, 1077, 3847, 284, 7486, 20703, 1474, 486, 931, 445, 872, 16, 3975, 2657, 486, 931, 445, 872, 17, 899, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_generate_unique_signers() { let matches = ArgMatches::default(); let default_keypair = Keypair::new(); let default_keypair_file = make_tmp_path("keypair_file"); write_keypair_file(&default_keypair, &default_keypair_file).unwrap(); let default_signer = De...
rust_cleaned_test_functions.jsonl/30952
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1681 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 21218, 11172, 388, 368, 341, 286, 1077, 9071, 284, 7638, 42470, 486, 2258, 1428, 286, 1077, 1638, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 1638, 3097, 12670, 2458, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stake_is_updated_for_entire_branch() { let mut voted_stakes = HashMap::new(); let account = AccountSharedData::from(Account { lamports: 1, ..Account::default() }); let set: HashSet<u64> = vec![0u64, 1u64].into_iter().collect(); let ...
rust_cleaned_test_functions.jsonl/61144
{ "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, 1261, 726, 6892, 33492, 5478, 27425, 554, 28031, 368, 341, 286, 1077, 5206, 16228, 1261, 2050, 284, 10528, 486, 931, 543, 286, 1077, 2692, 284, 8615, 16997, 1043, 486, 1499, 65360, 341, 310, 31603...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prune_beyond() { let (mut test_tree, _) = spatial_tree(); test_tree.prune_beyond_distance(3.0); let existing: HashSet<_> = test_tree .root() .unwrap() .traverse_pre_order() .map(|n| n.data().0) .collect(); ...
rust_cleaned_test_functions.jsonl/2846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5294, 2886, 880, 22650, 368, 341, 286, 1077, 320, 6984, 1273, 11663, 11, 27439, 284, 27979, 11663, 543, 286, 1273, 11663, 10367, 2886, 880, 22650, 19464, 7, 18, 13, 15, 317, 286, 1077, 6350, 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...
3
#[test] fn test_create_tx_with_default_rbf_csv() { let (wallet, _, _) = get_funded_wallet(get_test_single_sig_csv()); let addr = wallet.get_new_address().unwrap(); let (psbt, _) = wallet .create_tx( TxBuilder::with_recipients(vec![(addr.script_pubkey(), 25_000...
rust_cleaned_test_functions.jsonl/11318
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 17805, 6615, 9993, 1710, 13233, 14020, 368, 341, 286, 1077, 320, 35735, 11, 8358, 27439, 284, 633, 761, 36053, 62308, 5433, 4452, 19487, 29252, 14020, 1423, 286, 1077, 10789, 284, 15085, 670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_chunked_early_eof() { let mut bytes = &b"\ 9\r\n\ foo bar\ "[..]; let mut decoder = Decoder::chunked(); assert_eq!(decoder.decode(&mut bytes).unwrap().len(), 7); let e = decoder.decode(&mut bytes).unwrap_err(); assert_e...
rust_cleaned_test_functions.jsonl/32028
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 213 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 30539, 291, 62, 22140, 90792, 368, 341, 286, 1077, 5206, 5820, 284, 609, 65, 83383, 310, 220, 24, 12016, 1699, 5661, 310, 15229, 3619, 5661, 286, 10545, 496, 935, 286, 1077, 5206, 24551, 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_starting_non_zero_offset() -> SimpleResult<()> { let data = b"AAAABBBBCCCCDDDD".to_vec(); let offset = Offset::Dynamic(Context::new(&data)); let t = H2Array::new(4, H2String::new(4, CharacterReader::ASCII, CharacterFormatter::pretty_str_character())?)?; assert_e...
rust_cleaned_test_functions.jsonl/102196
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4906, 287, 21637, 19359, 6917, 368, 1464, 8993, 2077, 71698, 341, 286, 1077, 821, 284, 293, 1, 50107, 1867, 10098, 33, 47932, 4103, 4103, 3263, 983, 13251, 543, 286, 1077, 4347, 284, 16861, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_ssl_off() { let url = Gravatar::new("email@example.com") .set_ssl(false) .image_url(); assert_eq!( url.as_str(), "http://www.gravatar.com/avatar/5658ffccee7f0ebfda2b226238b1eb6e" ); }
rust_cleaned_test_functions.jsonl/61382
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 139 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48210, 13651, 368, 341, 262, 1077, 2515, 284, 2825, 11962, 486, 931, 445, 2332, 35487, 905, 1138, 286, 659, 746, 48210, 3576, 340, 286, 659, 1805, 2903, 543, 262, 2060, 10714, 33673, 286, 2515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vdf_post_circuit_with_bls12_381() { let params = &JubjubBls12::new(); let rng = &mut XorShiftRng::from_seed([0x3dbe6259, 0x8d313d76, 0x3237db17, 0xe5bc0654]); let lambda = 32; let sp = vdf_post::SetupParams::<PedersenDomain, vdf_sloth::Sloth> { chall...
rust_cleaned_test_functions.jsonl/62640
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2551 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 2940, 6333, 666, 37268, 6615, 880, 4730, 16, 17, 62, 18, 23, 16, 368, 341, 286, 1077, 3628, 284, 609, 41, 392, 73, 392, 33, 4730, 16, 17, 486, 931, 543, 286, 1077, 28422, 284, 609, 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_get_terminator() { let context = Context::create(); let module = context.create_module("test"); let builder = context.create_builder(); let void_type = context.void_type(); let fn_type = void_type.fn_type(&[], false); let function = module.add_function("testing", fn_typ...
rust_cleaned_test_functions.jsonl/125602
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 462 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 62, 22969, 850, 368, 341, 262, 1077, 2266, 284, 9608, 486, 3182, 543, 262, 1077, 4688, 284, 2266, 2520, 10750, 445, 1944, 797, 262, 1077, 7363, 284, 2266, 2520, 28532, 1428, 262, 1077, 737...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_highest_confirmed_root() { assert_eq!(get_highest_confirmed_root(vec![], 10), 0); let mut rooted_stake = vec![]; rooted_stake.push((0, 5)); rooted_stake.push((1, 5)); assert_eq!(get_highest_confirmed_root(rooted_stake, 10), 0); let mut rooted_s...
rust_cleaned_test_functions.jsonl/44594
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 271 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 1523, 7504, 16059, 8434, 12993, 368, 341, 286, 2060, 10714, 10297, 455, 1523, 7504, 16059, 8434, 12993, 25592, 0, 12995, 220, 16, 15, 701, 220, 15, 317, 286, 1077, 5206, 40876, 1261, 726, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_infinite() { let nan: f64 = NAN; let inf: f64 = INFINITY; let neg_inf: f64 = NEG_INFINITY; assert!(!nan.is_infinite()); assert!(inf.is_infinite()); assert!(neg_inf.is_infinite()); assert!(!0.0f64.is_infinite()); assert!(!42.8f64....
rust_cleaned_test_functions.jsonl/7821
{ "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, 6892, 1243, 25722, 368, 341, 286, 1077, 20021, 25, 282, 21, 19, 284, 92129, 280, 286, 1077, 4132, 25, 282, 21, 19, 284, 1964, 55990, 280, 286, 1077, 4184, 26051, 25, 282, 21, 19, 284, 84065, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let specifier = resolve_url_or_path("https://deno.land/x/mod.ts") .expect("could not resolve specifier"); let source = r#" enum D { A, B, C, } export class A { private b: string; protected c: number = 1; e: "foo"; ...
rust_cleaned_test_functions.jsonl/2738
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 392 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7965, 12192, 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, 8830, 97616, 797, 262, 1077, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_updating_in_place() { let mut manager = ConfigManager::new(None, None); let buf_id = BufferId(1); manager.add_buffer(buf_id, None); assert_eq!(manager.get_buffer_config(buf_id).items.font_size, 14.); let changes = json!({"font_size": 69, "font_face": "nice...
rust_cleaned_test_functions.jsonl/105408
{ "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, 8237, 14110, 1243, 34548, 368, 341, 286, 1077, 5206, 6645, 284, 5532, 2043, 486, 931, 26717, 11, 2240, 317, 286, 1077, 6607, 842, 284, 10312, 764, 7, 16, 317, 286, 6645, 1364, 7776, 10731, 842, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_key_wrap_params_valid() { #[derive(Debug)] struct TestData { ec: Option<Ec>, opts: Option<String>, result: Result<()>, } let tests = &[ TestData { ec: None, opts: None, ...
rust_cleaned_test_functions.jsonl/83239
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1380 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 38550, 6745, 8337, 368, 341, 286, 11506, 27098, 42618, 5563, 286, 2036, 93200, 341, 310, 11942, 25, 6959, 23835, 66, 12520, 310, 12185, 25, 6959, 3464, 12520, 310, 1102, 25, 5714, 27, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_device_config() { let mut config = DeviceConfig::new(5); let invalid_addr = (MAX_I2C_VDEV + 1) as u16; config.push(5).unwrap(); config.push(6).unwrap(); assert_eq!( config.push(invalid_addr).unwrap_err(), Error::ClientAddressInval...
rust_cleaned_test_functions.jsonl/59864
{ "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, 9204, 5332, 368, 341, 286, 1077, 5206, 2193, 284, 13903, 2648, 486, 931, 7, 20, 317, 286, 1077, 8318, 7387, 284, 320, 10586, 7959, 17, 34, 2334, 31819, 488, 220, 16, 8, 438, 575, 16, 21, 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...
1
#[test] fn test_move() { let mut state = PlaybackState::default(); state.queue(song("1")); state.queue(song("2")); state.queue(song("3")); state.play("2"); assert!(state.is_playing()); state.move_down("1"); assert_eq!(state.song_id(), Some("2"));...
rust_cleaned_test_functions.jsonl/20829
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 478 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17134, 368, 341, 286, 1077, 5206, 1584, 284, 95301, 1397, 486, 2258, 543, 286, 1584, 29598, 60873, 445, 16, 4010, 286, 1584, 29598, 60873, 445, 17, 4010, 286, 1584, 29598, 60873, 445, 18, 14929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_integer_decode() { assert_eq!(3.14159265359f64.integer_decode(), (7074237752028906, -51, 1)); assert_eq!((-8573.5918555f64).integer_decode(), (4713381968463931, -39, -1)); assert_eq!(2f64.powf(100.0).integer_decode(), (4503599627370496, 48, 1)); assert_eq!(0f64.in...
rust_cleaned_test_functions.jsonl/7431
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 324 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31725, 15227, 368, 341, 286, 2060, 10714, 10297, 18, 13, 16, 19, 16, 20, 24, 17, 21, 20, 18, 20, 24, 69, 21, 19, 27593, 15227, 1507, 320, 22, 15, 22, 19, 17, 18, 22, 22, 20, 17, 15, 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_parse_partial_max() { let range = LineRange::from("40:").expect("Shouldn't fail on test!"); assert_eq!(40, range.lower); assert_eq!(usize::max_value(), range.upper); }
rust_cleaned_test_functions.jsonl/35925
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 52068, 6345, 368, 341, 262, 1077, 2088, 284, 7083, 6046, 486, 1499, 445, 19, 15, 25, 1827, 17119, 445, 14996, 77, 944, 3690, 389, 1273, 11142, 262, 2060, 10714, 10297, 19, 15, 11, 2088, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ecdsa_duplicate_support_from_node() { ic_test_utilities::artifact_pool_config::with_test_pool_config(|pool_config| { with_test_replica_logger(|logger| { let (mut ecdsa_pool, pre_signer) = create_pre_signer_dependencies(pool_config, logger);...
rust_cleaned_test_functions.jsonl/86721
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1081 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36844, 96780, 70434, 25827, 5673, 5084, 368, 341, 286, 17902, 4452, 94044, 486, 63722, 15709, 5332, 486, 4197, 4452, 15709, 5332, 22428, 10285, 5332, 91, 341, 310, 448, 4452, 25533, 15317, 27413, 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_get_pw_entry() { let mut buf: [i8; 1024] = [0; 1024]; let _pw = get_pw_entry(&mut buf); }
rust_cleaned_test_functions.jsonl/28507
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 63 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 60181, 9078, 368, 341, 262, 1077, 5206, 6607, 25, 508, 72, 23, 26, 220, 16, 15, 17, 19, 60, 284, 508, 15, 26, 220, 16, 15, 17, 19, 935, 262, 1077, 716, 31862, 284, 633, 60181, 9078, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ack_and_payload_error() { let mut frame = SettingsFrame::ack(); frame.add_setting(Setting::EnablePush(true)); let mut b = Vec::new(); b.write_frame(frame).unwrap(); assert_eq!(b, [0, 0, 6, 4, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1]); let mut sl = &b[..]; ...
rust_cleaned_test_functions.jsonl/93807
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 197 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48447, 8378, 32813, 4096, 368, 341, 286, 1077, 5206, 4034, 284, 11296, 4369, 486, 473, 543, 286, 4034, 1364, 20313, 7, 15400, 486, 11084, 16644, 3715, 1106, 286, 1077, 5206, 293, 284, 11312, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_serial_num_config() { let serial_num = "fldXlNNdCeqMvoIfEFogBxlL"; let serial_num_arr = serial_num.as_bytes(); let id_bytes = get_serial_num_config(&serial_num); assert_eq!(id_bytes[..], serial_num_arr[..20]); assert_eq!(id_bytes.len(), 20); let s...
rust_cleaned_test_functions.jsonl/102130
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 362 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25602, 4273, 5332, 368, 341, 286, 1077, 6146, 4273, 284, 330, 48311, 55, 75, 9745, 67, 34, 11006, 44, 3334, 2679, 14884, 538, 33, 24310, 43, 876, 286, 1077, 6146, 4273, 11210, 284, 6146, 4273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_open_exist_stream() { let rt = tokio::runtime::Runtime::new().unwrap(); rt.block_on(async { let (remote, local) = MockSocket::new(); let config = Config { enable_keepalive: false, ..Default::default() }; ...
rust_cleaned_test_functions.jsonl/74920
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 959 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11311, 35906, 12673, 368, 341, 286, 1077, 16677, 284, 9628, 815, 486, 22255, 486, 15123, 486, 931, 1005, 15454, 1428, 286, 16677, 15697, 4470, 18285, 341, 310, 1077, 320, 18147, 11, 2205, 8, 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...
2
#[test] fn test_parse_input_item() { let res_in = input_item(to_input(b"IN:1 -> 3")); assert_full_result( res_in, InputMapping { from: Port::new(Node::In, 1.into()), to: 3.into(), }, ); let res_node = input_item...
rust_cleaned_test_functions.jsonl/41388
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 330 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5898, 5634, 368, 341, 286, 1077, 592, 1243, 284, 1946, 5634, 12186, 5898, 1883, 1, 687, 25, 16, 1464, 220, 18, 4010, 286, 2060, 16372, 5287, 1006, 310, 592, 1243, 345, 310, 5571, 6807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_os() { let ua_parser = UserAgentParser::from_path("uap-core/regexes.yaml").unwrap(); let yaml = fs::read_to_string("uap-core/tests/test_os.yaml").unwrap(); let yamls = YamlLoader::load_from_str(&yaml).unwrap(); let yaml = &yamls[0]; let test_cases = yaml .as_hash()...
rust_cleaned_test_functions.jsonl/111011
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 754 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29387, 368, 341, 262, 1077, 45559, 18517, 284, 2657, 16810, 6570, 486, 1499, 2638, 445, 84, 391, 23460, 14, 26387, 288, 33406, 1827, 15454, 1428, 262, 1077, 32246, 284, 8619, 486, 878, 2346, 3904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cdf_upper_bound() { let cdf = |arg: u64| move |x: Binomial| x.cdf(arg); test_case(0.5, 3, 1.0, cdf(5)); }
rust_cleaned_test_functions.jsonl/114735
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 86 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 2940, 34445, 19447, 368, 341, 286, 1077, 272, 2940, 284, 760, 858, 25, 575, 21, 19, 91, 3271, 760, 87, 25, 29344, 20855, 91, 856, 520, 2940, 9404, 317, 286, 1273, 19096, 7, 15, 13, 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
#[test] fn test_create_entity_double_fails_with_same_pubkey() { ExternalityBuilder::build().execute_with(|| { create_entity(); let name = "barfoo".as_bytes().to_vec(); let country = "Belgium".as_bytes().to_vec(); let city = "Ghent".as_bytes().to_vec(); let signature...
rust_cleaned_test_functions.jsonl/35344
{ "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, 8657, 19169, 24598, 761, 6209, 6615, 33574, 34014, 792, 368, 341, 262, 1374, 4160, 2719, 3297, 486, 5834, 1005, 10257, 6615, 79453, 341, 286, 1855, 19169, 1428, 286, 1077, 829, 284, 330, 2257, 797...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_extract_var_in_closure_no_block() { check_assist( extract_variable, " fn main() { let lambda = |x: u32| $0x * 2$0; } ", " fn main() { let lambda = |x: u32| { let $0var_name = x * 2; var_name }; } ", ); }
rust_cleaned_test_functions.jsonl/132835
{ "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, 39123, 4612, 1243, 72823, 6536, 7113, 368, 341, 286, 1779, 12083, 380, 1006, 310, 8649, 14635, 345, 310, 6228, 8822, 1887, 368, 341, 262, 1077, 12459, 284, 760, 87, 25, 575, 18, 17, 91, 400, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_negate_disjunctions() -> TestResult { let p = Polar::new(); p.load_str( r#"f(x) if not (x.foo = 1 or 2 = x.foo); g(x) if not (1 = x or x = 2); h(x) if not (x.foo.bar = 1 or 2 = x.foo.bar);"#, )?; let mut q = p.new_query_fr...
rust_cleaned_test_functions.jsonl/63029
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 505 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28209, 349, 9932, 72428, 82, 368, 1464, 3393, 2077, 341, 286, 1077, 281, 284, 55896, 486, 931, 543, 286, 281, 5104, 2895, 1006, 310, 435, 55543, 69, 2075, 8, 421, 537, 320, 87, 58432, 284, 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_any_isinstance() { Python::with_gil(|py| { let x = 5.to_object(py).into_ref(py); assert!(x.is_instance::<PyLong>().unwrap()); let l = vec![x, x].to_object(py).into_ref(py); assert!(l.is_instance::<PyList>().unwrap()); }); }
rust_cleaned_test_functions.jsonl/93720
{ "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, 37248, 6892, 4851, 368, 341, 286, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 310, 1077, 856, 284, 220, 20, 2389, 5314, 46827, 568, 18122, 7793, 46827, 317, 310, 2060, 10297, 87, 2079, 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_reduce() { let relation_type = RelationType::new(vec![ ScalarType::Int64.nullable(true), ScalarType::Int64.nullable(true), ScalarType::Int64.nullable(false), ]); let col = MirScalarExpr::Column; let err = |e| MirScalarExpr::lite...
rust_cleaned_test_functions.jsonl/12656
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2353 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64596, 368, 341, 286, 1077, 12687, 1819, 284, 50024, 929, 486, 931, 25592, 90515, 310, 35176, 929, 486, 1072, 21, 19, 59266, 480, 3715, 1326, 310, 35176, 929, 486, 1072, 21, 19, 59266, 480, 3715...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_split_by_chars_long_word() { let lines = "sh\nverylongwordverylongwordverylongwordverylongword\nend".split_by_chars(5); assert_eq!(3, lines.len()); }
rust_cleaned_test_functions.jsonl/80447
{ "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, 17052, 3710, 37418, 17799, 13533, 368, 341, 262, 1077, 5128, 284, 330, 927, 1699, 1204, 4825, 1158, 1204, 4825, 1158, 1204, 4825, 1158, 1204, 4825, 1158, 1699, 408, 3263, 6960, 3710, 37418, 7, 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
#[test] fn test_prime_sec_collection(){ let some_primes = [ 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199]; let test_primes: ...
rust_cleaned_test_functions.jsonl/50971
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 288 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38217, 17242, 25019, 3032, 286, 1077, 1045, 5294, 1733, 284, 508, 220, 16, 15, 16, 345, 999, 220, 16, 15, 18, 11, 220, 16, 15, 22, 11, 220, 16, 15, 24, 11, 220, 16, 16, 18, 11, 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...
2
#[test] fn test_server_stale_peer_without_data_left_derive_when_split() { let count = 3; let mut cluster = new_server_cluster(0, count); test_stale_peer_without_data(&mut cluster, false); }
rust_cleaned_test_functions.jsonl/26894
{ "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, 12015, 1261, 1574, 45159, 39904, 1769, 9579, 35345, 533, 47636, 17052, 368, 341, 262, 1077, 1760, 284, 220, 18, 280, 262, 1077, 5206, 10652, 284, 501, 12015, 28441, 7, 15, 11, 1760, 317, 262, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_accountsdb_handle_one_loaded_account() { solana_logger::setup(); let account_maps: DashMap<Pubkey, CalculateHashIntermediate> = DashMap::new(); let key = Pubkey::new_unique(); let hash = Hash::new_unique(); let val = CalculateHashIntermediate::new(1, hash...
rust_cleaned_test_functions.jsonl/115972
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 660 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55665, 1999, 10630, 11667, 49205, 13500, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 2692, 46512, 25, 36670, 2227, 21604, 392, 792, 11, 20517, 6370, 98961, 29, 284, 36670, 2227, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cancel_long_running_query() -> Result<(), Box<dyn Error>> { let config = util::Config::default(); let server = util::start_server(config)?; let mut client = server.connect(postgres::NoTls)?; let cancel_token = client.cancel_token(); thread::spawn(move || { // Abort ...
rust_cleaned_test_functions.jsonl/14880
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28895, 17799, 37333, 5738, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 262, 1077, 2193, 284, 4094, 486, 2648, 486, 2258, 543, 262, 1077, 3538, 284, 4094, 486, 2468, 12015, 8754, 89720, 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...
7
#[test] fn test_abstract_sun_path() { let name = String::from("nix\0abstract\0test"); let addr = UnixAddr::new_abstract(name.as_bytes()).unwrap(); let sun_path1 = unsafe { &(*addr.as_ptr()).sun_path[..addr.path_len()] }; let sun_path2 = [0, 110, 105, 120, 0, 97, 98, 115, 116, 11...
rust_cleaned_test_functions.jsonl/92898
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 85939, 86623, 2638, 368, 341, 286, 1077, 829, 284, 923, 486, 1499, 445, 77, 941, 59, 15, 16249, 59, 15, 1944, 797, 286, 1077, 10789, 284, 46995, 13986, 486, 931, 85939, 3153, 5357, 12524, 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_difference() { fn slice_difference(a: &[u32], b: &[u32]) -> Vec<u32> { difference(a, b).cloned().collect() } assert_eq!(slice_difference(&[1, 2], &[1, 2]), vec![]); assert_eq!(slice_difference(&[1, 2], &[1]), vec![2]); assert_eq!(slice_difference(&[1, 2, 3], &[1, 2])...
rust_cleaned_test_functions.jsonl/11481
{ "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, 47525, 368, 341, 262, 5168, 15983, 47525, 2877, 25, 44590, 84, 18, 17, 1125, 293, 25, 44590, 84, 18, 17, 2467, 1464, 11312, 34837, 18, 17, 29, 341, 286, 6672, 2877, 11, 293, 568, 564, 19684, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_config_classic_mode() { let yaml_string = "classic: true\ncolor:\n when: always"; let yaml = YamlLoader::load_from_str(yaml_string).unwrap()[0].clone(); assert_eq!( Some(ColorOption::Never), ColorOption::from_config(&Config::with_yaml(yaml)) ...
rust_cleaned_test_functions.jsonl/86435
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 5332, 4790, 292, 7302, 368, 341, 286, 1077, 32246, 3904, 284, 330, 79709, 25, 830, 59, 1016, 789, 7190, 77, 220, 979, 25, 2677, 876, 286, 1077, 32246, 284, 809, 9467, 9181, 486, 1078, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_integer() { assert_eq!(read_integer(&cbor_int!(123)), Ok(123)); assert_eq!(read_integer(&cbor_int!(-123)), Ok(-123)); assert_eq!( read_integer(&cbor_bool!(true)), Err(CTAP2_ERR_CBOR_UNEXPECTED_TYPE) ); assert_eq!( r...
rust_cleaned_test_functions.jsonl/51435
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 471 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 31725, 368, 341, 286, 2060, 10714, 10297, 878, 31725, 2099, 7221, 269, 4042, 10297, 16, 17, 18, 5731, 7622, 7, 16, 17, 18, 1106, 286, 2060, 10714, 10297, 878, 31725, 2099, 7221, 269, 4042,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_de() { let s = r##" <designspace format="2"> <axes> <axis default="1" maximum="1000" minimum="0" name="weight" tag="wght"> <labelname xml:lang="fa-IR">قطر</labelname> <labelname xml:lang="en">Wéíght</labelname> </axis> <axis default="100" maxim...
rust_cleaned_test_functions.jsonl/98889
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 715 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2259, 368, 341, 286, 1077, 274, 284, 435, 565, 698, 286, 366, 24852, 8746, 3561, 428, 17, 881, 286, 366, 19992, 397, 262, 366, 7184, 1638, 428, 16, 1, 7192, 428, 16, 15, 15, 15, 1, 8028, 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_encode0() { let mut chunk = Chunk::new("no_file", 0); chunk.encode0(RET, 1).unwrap(); chunk.encode0(CAR, 1).unwrap(); chunk.encode0(RET, 1).unwrap(); let mut code = chunk.code.iter(); assert!(*code.next().unwrap() == RET); assert!(*code.ne...
rust_cleaned_test_functions.jsonl/101213
{ "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, 11224, 15, 368, 341, 286, 1077, 5206, 11879, 284, 45513, 486, 931, 445, 2152, 2458, 497, 220, 15, 317, 286, 11879, 17313, 15, 7, 38064, 11, 220, 16, 568, 15454, 543, 286, 11879, 17313, 15, 302...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mul_n3_33() { let vs = [ [1.0, 1.0, 5.0], [0.0, 1.0, 5.0], [1.0, 5.0, 2.0], [2.0, 2.0, 0.0], ]; let m = [ [5.0, 5.0, 5.0], [2.0, 1.0, 5.0], [6.0, 4.0, 5.0], ]; let prod = [...
rust_cleaned_test_functions.jsonl/39729
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 394 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24944, 1089, 18, 62, 18, 18, 368, 341, 286, 1077, 6165, 284, 2278, 310, 508, 16, 13, 15, 11, 220, 16, 13, 15, 11, 220, 20, 13, 15, 1259, 310, 508, 15, 13, 15, 11, 220, 16, 13, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scale_transform() { assert_eq!(apply(scale_transform(2.0, 3.0), [5.0, 7.0]), [10.0, 21.0]); }
rust_cleaned_test_functions.jsonl/39371
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16727, 18449, 368, 341, 286, 2060, 10714, 10297, 10280, 42073, 18449, 7, 17, 13, 15, 11, 220, 18, 13, 15, 701, 508, 20, 13, 15, 11, 220, 22, 13, 15, 17036, 4293, 508, 16, 15, 13, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_equality() { assert_eq!(Scalar::zero(), Scalar::zero()); assert_eq!(Scalar::one(), Scalar::one()); assert_eq!(R2, R2); assert!(Scalar::zero() != Scalar::one()); assert!(Scalar::one() != R2); }
rust_cleaned_test_functions.jsonl/5567
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 10473, 368, 972, 262, 2060, 10714, 10297, 20639, 486, 14154, 1507, 35176, 486, 14154, 6201, 262, 2060, 10714, 10297, 20639, 486, 603, 1507, 35176, 486, 603, 6201, 262, 2060, 10714, 10297, 49, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tabs_mixed_style_list() { new_ucmd!() .args(&["--tabs", ", 3,6 9"]) .pipe_in("a\tb\tc\td\te") .succeeds() .stdout_is("a b c d e"); }
rust_cleaned_test_functions.jsonl/121792
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 121 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57953, 717, 3286, 15117, 2019, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 313, 30993, 497, 3670, 220, 18, 11, 21, 220, 24, 14108, 286, 659, 13768, 1243, 445, 64, 4955...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decompress_block() { let expected = Block::<Simple>::new().column("s", vec!["abc"]); let source = vec![ 245_u8, 5, 222, 235, 225, 158, 59, 108, 225, 31, 65, 215, 66, 66, 36, 92, 130, 34, 0, 0, 0, 23, 0, 0, 0, 240, 8, 1, 0, 2, 255, 255, 255, 255, 0, 1, 1, ...
rust_cleaned_test_functions.jsonl/52582
{ "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, 2259, 38360, 7113, 368, 341, 286, 1077, 3601, 284, 8362, 27638, 16374, 6831, 931, 1005, 6229, 445, 82, 497, 7486, 0, 1183, 13683, 55919, 286, 1077, 2530, 284, 7486, 90515, 310, 220, 17, 19, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_accumulate_batched_transaction_costs() { let tx_costs = vec![ TransactionCost { signature_cost: 1, write_lock_cost: 2, data_bytes_cost: 3, execution_cost: 10, ..TransactionCost::default() ...
rust_cleaned_test_functions.jsonl/45492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 988 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75837, 6334, 14534, 291, 28884, 85946, 368, 341, 286, 1077, 9854, 85946, 284, 7486, 90515, 310, 17869, 14940, 341, 394, 11957, 15890, 25, 220, 16, 345, 394, 3270, 9818, 15890, 25, 220, 17, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_merge_same_section() { let mut some = document(json!({ "use": [{ "protocol": "foo" }] })); let mut other = document(json!({ "use": [{ "protocol": "bar" }] })); some.merge_from(&mut other, &Path::new("some/path")).unwrap(); let uses = some.r#use.as_ref().unwrap(); ...
rust_cleaned_test_functions.jsonl/34910
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 323 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 33574, 16221, 368, 341, 286, 1077, 5206, 1045, 284, 2197, 9304, 0, 2306, 330, 810, 788, 18466, 330, 17014, 788, 330, 7975, 1, 58592, 17830, 286, 1077, 5206, 1008, 284, 2197, 9304, 0, 2306...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_range_borrowed_key() { let mut map = BTreeMap::new(); map.insert("aardvark".to_string(), 1); map.insert("baboon".to_string(), 2); map.insert("coyote".to_string(), 3); map.insert("dingo".to_string(), 4); let mut iter = map.range::<str, _>((Included("b"),Excluded("d"))...
rust_cleaned_test_functions.jsonl/49391
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 218 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 880, 7768, 291, 3097, 368, 341, 262, 1077, 5206, 2415, 284, 425, 6533, 2227, 486, 931, 543, 262, 2415, 7030, 445, 64, 567, 85, 838, 3263, 983, 3904, 1507, 220, 16, 317, 262, 2415, 7030, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_h_0() { test_add( TimeGranularity::Hours, 0, "2000-01-01T00:00:00.0", "2000-01-01T00:00:00.0", ); }
rust_cleaned_test_functions.jsonl/134030
{ "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, 2891, 1523, 62, 15, 368, 341, 286, 1273, 2891, 1006, 310, 4120, 90723, 28979, 486, 23235, 345, 310, 220, 15, 345, 310, 330, 17, 15, 15, 15, 12, 15, 16, 12, 15, 16, 51, 15, 15, 25, 15, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_list_keys() { let mut yubikey = YUBIKEY.lock().unwrap(); let keys_result = Key::list(&mut yubikey); assert!(keys_result.is_ok()); trace!("keys: {:?}", keys_result.unwrap()); }
rust_cleaned_test_functions.jsonl/33333
{ "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, 2019, 12631, 368, 341, 262, 1077, 5206, 379, 54233, 792, 284, 809, 4493, 40, 4784, 21003, 1005, 15454, 543, 262, 1077, 6894, 5287, 284, 5309, 486, 1607, 2099, 6984, 379, 54233, 792, 317, 262, 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
#[test] fn test_node_types_with_multiple_rules_same_alias_name() { let node_types = get_node_types(InputGrammar { name: String::new(), extra_symbols: Vec::new(), external_tokens: Vec::new(), expected_conflicts: Vec::new(), variables_to_inline: ...
rust_cleaned_test_functions.jsonl/8324
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3666 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 9763, 6615, 45233, 21407, 33574, 35947, 1269, 368, 341, 286, 1077, 2436, 9763, 284, 633, 5084, 9763, 29773, 97178, 341, 310, 829, 25, 923, 486, 931, 3148, 310, 4960, 55752, 25, 11312, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_store_lru_cache() -> crate::Result<()> { let directory = RAMDirectory::create(); let path = Path::new("store"); let writer = directory.open_write(path)?; let schema = write_lorem_ipsum_store(writer, 500); let title = schema.get_field("title").unwrap(); ...
rust_cleaned_test_functions.jsonl/101821
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14809, 907, 2672, 11529, 368, 1464, 17717, 486, 2077, 71698, 341, 286, 1077, 6220, 284, 22038, 9310, 486, 3182, 543, 286, 1077, 1815, 284, 7933, 486, 931, 445, 4314, 797, 286, 1077, 6916, 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...
7
#[test] fn test_compute_vote_index_empty() { for i in 0..MAX_VOTES { let votes = vec![]; assert!(CrdsValue::compute_vote_index(i as usize, votes) < MAX_VOTES); } }
rust_cleaned_test_functions.jsonl/5326
{ "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, 57028, 54360, 3560, 15124, 368, 341, 286, 369, 600, 304, 220, 15, 496, 10586, 2334, 43905, 341, 310, 1077, 12684, 284, 7486, 0, 15078, 310, 2060, 10297, 16001, 5356, 1130, 486, 27706, 54360, 3560,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rw_arc_no_poison_rr() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); let _: Result<(), _> = thread::spawn(move || { let _lock = arc2.read().unwrap(); panic!(); }).join(); let lock = arc.read().unwrap(); assert...
rust_cleaned_test_functions.jsonl/5880
{ "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, 49566, 62914, 6536, 61814, 3335, 56285, 368, 341, 286, 1077, 15580, 284, 19689, 486, 931, 2785, 86, 11989, 486, 931, 7, 16, 1106, 286, 1077, 15580, 17, 284, 15580, 15997, 543, 286, 1077, 58536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cleanup() { let storage = TestStorageBuilder::new(DummyLockManager {}, false) .build() .unwrap(); let cm = storage.concurrency_manager.clone(); let (tx, rx) = channel(); storage .sched_txn_command( commands::Prew...
rust_cleaned_test_functions.jsonl/2078
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 733 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42444, 368, 341, 286, 1077, 5819, 284, 3393, 5793, 3297, 486, 931, 5432, 8574, 11989, 2043, 16452, 895, 340, 310, 659, 5834, 741, 310, 659, 15454, 543, 286, 1077, 9961, 284, 5819, 2862, 15973, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hover_function_show_qualifiers() { check( r#"async fn foo$0() {}"#, expect![[r#" *foo* ```rust test ``` ```rust async fn foo() ``` "#]], ...
rust_cleaned_test_functions.jsonl/66651
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 692 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 9174, 15267, 64391, 11836, 368, 341, 286, 1779, 1006, 310, 435, 55543, 7692, 5168, 15229, 3, 15, 368, 4687, 57676, 345, 310, 1720, 0, 15505, 81, 2, 698, 394, 353, 7975, 21518, 394, 54275,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_gen_weighted_bool() { let mut r = thread_rng(); assert_eq!(r.gen_weighted_bool(0), true); assert_eq!(r.gen_weighted_bool(1), true); }
rust_cleaned_test_functions.jsonl/76075
{ "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, 16322, 15876, 291, 22159, 368, 341, 286, 1077, 5206, 435, 284, 4516, 66849, 543, 286, 2060, 10714, 10297, 81, 22822, 15876, 291, 22159, 7, 15, 701, 830, 317, 286, 2060, 10714, 10297, 81, 22822, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_schema_put_get() { let db = TestDB::new(); db.put::<TestSchema1>(&TestField(0), &TestField(0)).unwrap(); db.put::<TestSchema1>(&TestField(1), &TestField(1)).unwrap(); db.put::<TestSchema1>(&TestField(2), &TestField(2)).unwrap(); db.put::<TestSchema2>(&TestField(2), &TestFiel...
rust_cleaned_test_functions.jsonl/18721
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 606 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25371, 15557, 3062, 368, 341, 262, 1077, 2927, 284, 3393, 3506, 486, 931, 1428, 262, 2927, 3597, 27638, 2271, 8632, 16, 44784, 2271, 1877, 7, 15, 701, 609, 2271, 1877, 7, 15, 4579, 15454, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_clear_config() { let content = json!({ "pool_name" : "pool1", "config_name":"config1", "wallet_name":"test_clear_config", "institution_name" : "evernym enterprise", "genesis_path":"/tmp/pool1.txn", "wallet_key":"key"...
rust_cleaned_test_functions.jsonl/115828
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 705 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21811, 5332, 368, 341, 286, 1077, 2213, 284, 2951, 0, 2262, 310, 330, 10285, 1269, 1, 549, 330, 10285, 16, 756, 310, 330, 1676, 1269, 3252, 1676, 16, 756, 310, 330, 35735, 1269, 3252, 1944, 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...
1
#[test] fn test_add_lifetime_ref() { let input = quote! { &Int }; let x = parse2::<RpnFnRefEvaluableType>(input).unwrap(); let parsed_type = x.get_type_with_lifetime(quote! { 'arg_ }); let expected = quote! { &'arg_ Int }; assert_eq!(expected.to_string(), parsed_type.to_s...
rust_cleaned_test_functions.jsonl/17095
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 98827, 7793, 368, 341, 286, 1077, 1946, 284, 12641, 0, 314, 609, 1072, 2605, 286, 1077, 856, 284, 4715, 17, 27638, 49, 19958, 24911, 3945, 54469, 13128, 929, 2235, 1355, 568, 15454, 543, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_numbers() { assert_eq!(tokenize("123"), ["123"]); assert_eq!(tokenize("123 456"), ["123", " ", "456"]); }
rust_cleaned_test_functions.jsonl/79727
{ "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, 32964, 368, 341, 286, 2060, 10714, 10297, 5839, 551, 445, 16, 17, 18, 3975, 4383, 16, 17, 18, 15049, 286, 2060, 10714, 10297, 5839, 551, 445, 16, 17, 18, 220, 19, 20, 21, 3975, 4383, 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