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_colors() { let c = Config::get_tcolor("red on blue"); assert_eq!(c.fg.unwrap(), Color::Indexed(1)); assert_eq!(c.bg.unwrap(), Color::Indexed(4)); let c = Config::get_tcolor("bold red"); assert_eq!(c.fg.unwrap(), Color::Indexed(9)); assert!(c.bg.is...
rust_cleaned_test_functions.jsonl/77074
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2288 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33670, 368, 341, 286, 1077, 272, 284, 5532, 486, 455, 528, 3423, 445, 1151, 389, 6303, 797, 286, 2060, 10714, 10297, 66, 833, 70, 55395, 1507, 3478, 486, 69941, 7, 16, 1106, 286, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_into_iter_drop_leak_height_1() { let size = MIN_INSERTS_HEIGHT_1; static DROPS: AtomicUsize = AtomicUsize::new(0); static PANIC_POINT: AtomicUsize = AtomicUsize::new(0); struct D; impl Drop for D { fn drop(&mut self) { if DROPS.fetch_add(1, Ordering::SeqC...
rust_cleaned_test_functions.jsonl/53968
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 398 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45514, 11723, 29584, 11751, 585, 9561, 62, 16, 368, 341, 262, 1077, 1379, 284, 16701, 47924, 50, 17355, 62, 16, 280, 262, 1099, 422, 1285, 5012, 25, 30316, 52, 2141, 284, 30316, 52, 2141, 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...
2
#[test] fn test_abs() { let very_small: Int256 = Int256::min_value(); let _very_large: Uint256 = very_small.abs().to_uint256().unwrap(); }
rust_cleaned_test_functions.jsonl/118556
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 66 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31170, 368, 341, 262, 1077, 1602, 31966, 25, 1333, 17, 20, 21, 284, 1333, 17, 20, 21, 486, 1065, 3142, 543, 262, 1077, 716, 1204, 45228, 25, 27883, 17, 20, 21, 284, 1602, 31966, 14572, 1005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_finalize_account_transfer_unimplemented() { request_stream_test( AccountLifetime::Ephemeral, create_clean_pre_auth_manager(), None, Arc::new(Inspector::new()), |proxy| async move { proxy.prepare_for_account_trans...
rust_cleaned_test_functions.jsonl/105846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 347 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70616, 13500, 35403, 4907, 54071, 368, 341, 286, 1681, 12673, 4452, 1006, 310, 8615, 74579, 486, 36, 59941, 3253, 345, 310, 1855, 19573, 10442, 14014, 12144, 3148, 310, 2240, 345, 310, 19689, 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...
6
#[test] fn test_remove_unrooted_scan_then_recreate_same_slot_before_scan() { for accounts_db_caching_enabled in &[false, true] { test_store_scan_consistency( *accounts_db_caching_enabled, |bank0, bank_to_scan_sender, scan_fini...
rust_cleaned_test_functions.jsonl/2669
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1962 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 4907, 2888, 291, 28857, 68367, 1288, 3182, 33574, 27563, 23708, 28857, 368, 341, 286, 369, 9618, 8685, 666, 11829, 18220, 304, 44590, 3849, 11, 830, 60, 341, 310, 1273, 14809, 28857, 31971, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_update_can_start() { let policy_data = PolicyData::builder().use_timesource(&MockTimeSource::new_from_now()).build(); let result = StubPolicy::update_can_start(&policy_data, &StubPlan); assert_eq!(result, UpdateDecision::Ok); }
rust_cleaned_test_functions.jsonl/32502
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 27421, 4906, 368, 341, 286, 1077, 4842, 1769, 4035, 310, 10974, 1043, 486, 17850, 1005, 810, 22353, 919, 2099, 11571, 1462, 3608, 486, 931, 5673, 20813, 6011, 5834, 543, 286, 1077, 1102, 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_gjk_3d_hit() { let left = Cuboid::new(10., 10., 10.); let left_transform = transform_3d(15., 0., 0., 0.); let right = Cuboid::new(10., 10., 10.); let right_transform = transform_3d(7., 2., 0., 0.); let gjk = GJK3::new(); let simplex = gjk.intersect...
rust_cleaned_test_functions.jsonl/90905
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 431 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 41808, 62, 18, 67, 37697, 368, 341, 286, 1077, 2115, 284, 18030, 588, 486, 931, 7, 16, 15, 2572, 220, 16, 15, 2572, 220, 16, 15, 58957, 286, 1077, 2115, 18449, 284, 5165, 62, 18, 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_arginfo_process_take_concat_arg_delim_doesnt_crash() { let _ = take_arg!("-foo", OsString, Concatenated('='), Foo) .process("-foo", || None); }
rust_cleaned_test_functions.jsonl/16233
{ "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, 6057, 2733, 11305, 73261, 57478, 6057, 18029, 318, 96374, 406, 32331, 988, 368, 341, 286, 1077, 716, 284, 1896, 6057, 0, 13645, 7975, 497, 15433, 703, 11, 78195, 268, 657, 78286, 701, 33428, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_convert_utf16_to_utf8() { let reference = "abcdefghijklmnopqrstu\u{1F4A9}v\u{2603}w\u{00B6}xyzz"; let src: Vec<u16> = reference.encode_utf16().collect(); let mut dst: Vec<u8> = Vec::with_capacity(src.len() * 3 + 1); dst.resize(src.len() * 3 + 1, 0); let le...
rust_cleaned_test_functions.jsonl/27310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 234 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 39453, 16, 21, 2346, 39453, 23, 368, 341, 286, 1077, 5785, 284, 330, 65102, 23004, 60682, 3770, 90, 16, 37, 19, 32, 24, 92, 85, 3770, 90, 17, 21, 15, 18, 92, 86, 3770, 90, 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_command_line_cursor() { let mut cli = CommandLine::new("/dev/null", "/dev/null", &[]); cli.puts(":echo"); cli.delc(); assert_eq!(cli.input(), ":ech"); cli.delc(); assert_eq!(cli.input(), ":ec"); cli.delc(); assert_eq!(cli.input(), ...
rust_cleaned_test_functions.jsonl/95930
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 437 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10811, 6528, 28601, 368, 341, 286, 1077, 5206, 21348, 284, 78218, 486, 931, 4283, 3583, 19293, 497, 3521, 3583, 19293, 497, 609, 1294, 626, 286, 21348, 71410, 18893, 3047, 797, 286, 21348, 33012, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_domain_type_object_object() { let ty = DomainType { annotation: Default::default(), id: "ty".to_string(), r#type: Type::Object(vec![Property { annotation: Default::default(), name: "object".into(), r#type: Type::Object(vec![]), ...
rust_cleaned_test_functions.jsonl/26907
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 719 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20111, 1819, 5314, 5314, 368, 341, 262, 1077, 13580, 284, 21070, 929, 341, 286, 21223, 25, 7899, 486, 2258, 3148, 286, 877, 25, 330, 1881, 3263, 983, 3904, 3148, 286, 435, 2, 1313, 25, 3990, 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_import_refs_reimport_head_removed() { // Test that re-importing refs doesn't cause a deleted head to come back let settings = testutils::user_settings(); let test_repo = testutils::init_repo(&settings, true); let repo = &test_repo.repo; let git_repo = repo.store().git_repo()....
rust_cleaned_test_functions.jsonl/96055
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 384 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18434, 60638, 1288, 474, 13138, 68248, 368, 341, 262, 442, 3393, 429, 312, 53315, 287, 43143, 3171, 944, 5240, 264, 11062, 1968, 311, 2525, 1182, 198, 262, 1077, 5003, 284, 1273, 6031, 486, 872, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cowarc_clone_make_mut() { let mut cow0 = Arc::new(75); let mut cow1 = cow0.clone(); let mut cow2 = cow1.clone(); assert!(75 == *Arc::make_mut(&mut cow0)); assert!(75 == *Arc::make_mut(&mut cow1)); assert!(75 == *Arc::make_mut(&mut cow2)); ...
rust_cleaned_test_functions.jsonl/35113
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 363, 8198, 54742, 28230, 29523, 368, 341, 286, 1077, 5206, 19362, 15, 284, 19689, 486, 931, 7, 22, 20, 317, 286, 1077, 5206, 19362, 16, 284, 19362, 15, 15997, 543, 286, 1077, 5206, 19362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_status() { let mut status = if cfg!(target_os = "windows") { Command::new("cmd").args(&["/C", "exit 1"]).status().unwrap() } else { Command::new("false").status().unwrap() }; assert!(status.code() == Some(1)); status = if c...
rust_cleaned_test_functions.jsonl/5479
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 261 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 4773, 368, 341, 286, 1077, 5206, 2639, 284, 421, 13286, 10297, 5657, 29387, 284, 330, 27077, 899, 341, 310, 7348, 486, 931, 445, 8710, 1827, 2116, 2099, 1183, 14, 34, 497, 330, 13652, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_storage_block_insert() { let storage = ImplStorage::new(Arc::new(MemoryAdapter::new())); let height = 100; let block = mock_block(height, Hash::digest(get_random_bytes(10))); let block_hash = Hash::digest(block.encode_fixed().unwrap()); exec!(storage.insert_block(block)); ...
rust_cleaned_test_functions.jsonl/5467
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23310, 7113, 17678, 368, 341, 262, 1077, 5819, 284, 88092, 5793, 486, 931, 4346, 1287, 486, 931, 3189, 4731, 5940, 486, 931, 25138, 262, 1077, 2608, 284, 220, 16, 15, 15, 280, 262, 1077, 2504, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { use ed25519; use chrono::Timelike; use chrono::UTC; use chrono::duration::Duration; use meta::Meta; use certificate::Certificate; use root_validator::RootValidator; use revoker::NoRevoker; let (mpk, msk) = ed25519::generate_keypair(); let c...
rust_cleaned_test_functions.jsonl/112011
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 358 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64959, 368, 341, 262, 990, 1578, 17, 20, 20, 16, 24, 280, 262, 990, 80372, 486, 20217, 301, 2970, 280, 262, 990, 80372, 486, 21183, 280, 262, 990, 80372, 486, 17021, 486, 12945, 280, 262, 990,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deserialize_unknown_typo() { let value = toml::toml! { food = "bar" }; let deserializer = ValueDeserializer::new(&value); #[derive(Debug, Deserialize)] #[allow(dead_code)] struct Sample { foo: String, } let...
rust_cleaned_test_functions.jsonl/67388
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 267 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 57507, 42111, 78, 368, 341, 286, 1077, 897, 284, 311, 1014, 486, 37401, 75, 0, 341, 310, 3607, 284, 330, 2257, 698, 286, 2605, 286, 1077, 939, 41939, 284, 5162, 80097, 486, 931, 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_second() { assert_eq!(Ok((&[][..], 0)), second(b"00")); assert_eq!(Ok((&[][..], 1)), second(b"01")); assert_eq!(Ok((&[][..], 30)), second(b"30")); assert_eq!(Ok((&[][..], 59)), second(b"59")); assert_eq!(Ok((&[][..], 60)), second(b"60")); assert!(second(b"61").is_err());...
rust_cleaned_test_functions.jsonl/58591
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29644, 368, 341, 262, 2060, 10714, 10297, 11578, 42902, 63449, 496, 1125, 220, 15, 5731, 2086, 1883, 1, 15, 15, 4010, 262, 2060, 10714, 10297, 11578, 42902, 63449, 496, 1125, 220, 16, 5731, 2086, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_give() { let he = 0; let she = 1; let mut room = Room::new(vec![He, She, It]); room.action(&He.gives_item(She, It)).unwrap(); assert!(room.objects[she].has(It)); assert!(!room.objects[he].has(It)); room.action(&She.gives_item(He, It)).unwra...
rust_cleaned_test_functions.jsonl/38382
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 529 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 533, 368, 341, 286, 1077, 566, 284, 220, 15, 280, 286, 1077, 1340, 284, 220, 16, 280, 286, 1077, 5206, 3054, 284, 10420, 486, 931, 25592, 20703, 1519, 11, 2932, 11, 1084, 2558, 286, 3054...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_url_update() { let url_builder = ElasticsearchUrlBuilder::new("http://server".to_string(), "INDEX_NAME".to_string()); assert_that(&url_builder.update("die id".to_string())) .is_equal_to("http://server/INDEX_NAME/_doc/die+id/_update".to_string()); }
rust_cleaned_test_functions.jsonl/35096
{ "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, 20801, 2903, 8882, 368, 341, 220, 1077, 2515, 28532, 284, 58887, 2864, 3297, 486, 931, 445, 1254, 1110, 4030, 3263, 983, 3904, 1507, 330, 44331, 4708, 3263, 983, 3904, 5231, 220, 2060, 70197, 2099...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_value() { assert_eq!( parse_value(&[84, 42, 42, 42, 42, 42, 42, 42, 42][..]), Ok((EMPTY, AMQPValue::Timestamp(3038287259199220266))) ); assert_eq!( parse_value(&[83, 0, 0, 0, 4, 116, 101, 115, 116][..]), Ok((EMPTY, AMQ...
rust_cleaned_test_functions.jsonl/25444
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 3142, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 3142, 2099, 58, 23, 19, 11, 220, 19, 17, 11, 220, 19, 17, 11, 220, 19, 17, 11, 220, 19, 17, 11, 220, 19, 17, 11, 220, 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_eq_slice() { assert!((eq_slice("foobar".slice(0, 3), "foo"))); assert!((eq_slice("barfoo".slice(3, 6), "foo"))); assert!((!eq_slice("foo1", "foo2"))); }
rust_cleaned_test_functions.jsonl/56789
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10714, 26488, 368, 341, 286, 2060, 0, 1188, 11006, 26488, 445, 50267, 3263, 24963, 7, 15, 11, 220, 18, 701, 330, 7975, 17621, 286, 2060, 0, 1188, 11006, 26488, 445, 2257, 7975, 3263, 24963, 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_combine_keys() { assert_eq!( &combine_keys(false, "path", &Some("somepath/anotherpath".to_owned())), "somepath/anotherpath/path", ); assert_eq!( &combine_keys(true, "path", &Some("somepath/anotherpath".to_owned())), "somepat...
rust_cleaned_test_functions.jsonl/124530
{ "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, 72374, 12631, 368, 341, 286, 2060, 10714, 33673, 310, 609, 63136, 12631, 3576, 11, 330, 2343, 497, 609, 8373, 445, 14689, 2343, 14, 41963, 2343, 3263, 983, 51973, 73727, 310, 330, 14689, 2343, 14,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_seals() { use rustix::fd::FromFd; use rustix::fs::{ fcntl_add_seals, fcntl_get_seals, ftruncate, memfd_create, MemfdFlags, SealFlags, }; use std::fs::File; use std::io::Write; let fd = match memfd_create("test", MemfdFlags::CLOEXEC | MemfdFlags::ALLOW_SEALING) { ...
rust_cleaned_test_functions.jsonl/22176
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 509 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3453, 1127, 368, 341, 262, 990, 23071, 941, 486, 6902, 486, 3830, 74476, 280, 262, 990, 23071, 941, 486, 3848, 74843, 286, 282, 75017, 2891, 3453, 1127, 11, 282, 75017, 3062, 3453, 1127, 11, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_encrypt_decrypt_bad_hmac() { let mut rng = ThreadRng256 {}; let user_immediately_present = |_| Ok(()); let private_key = crypto::ecdsa::SecKey::gensk(&mut rng); let mut ctap_state = CtapState::new(&mut rng, user_immediately_present); // Same as above. ...
rust_cleaned_test_functions.jsonl/35321
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 410 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66593, 80764, 34199, 1523, 11948, 368, 341, 286, 1077, 5206, 28422, 284, 8752, 49, 968, 17, 20, 21, 9321, 286, 1077, 1196, 17895, 43187, 36976, 284, 66091, 7622, 7, 1423, 286, 1077, 869, 3097, 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_is_mate_to_sente() { let kinds:Vec<Vec<KomaKind>> = vec![ vec![ SFu ], vec![ SKei ], vec![ SGin ], vec![ SKin, SFuN, SKyouN, SKeiN, SGinN ], vec![ SKaku ], vec![ SHisha ], vec![ SKakuN ], vec![ SHishaN ], vec![ SOu ] ]; let positions:Vec<Vec<(u32,u32)>> = vec![...
rust_cleaned_test_functions.jsonl/72945
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1368 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 717, 349, 2346, 643, 6817, 368, 972, 10217, 12829, 25, 10050, 50439, 28239, 7786, 10629, 2452, 284, 7486, 20703, 319, 197, 40213, 20703, 23463, 84, 34341, 197, 40213, 20703, 328, 6608, 72, 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...
6
#[test] fn test_jump_non_zero() { let mut program = Program{ code: vec![1, 0, 42], ip: 0, move_ip: true, rel_base: 0, param_indices: vec![1, 2], finish: false }; // Don't jump jump_non_zero(&mut program); ...
rust_cleaned_test_functions.jsonl/52446
{ "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, 65436, 21637, 19359, 368, 341, 286, 1077, 5206, 2025, 284, 6687, 515, 310, 2038, 25, 7486, 20703, 16, 11, 220, 15, 11, 220, 19, 17, 1259, 310, 5997, 25, 220, 15, 345, 310, 3271, 10385, 25, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_account_set_data_from_slice() { let key = Pubkey::new_unique(); let (_, mut account) = make_two_accounts(&key); assert_eq!(account.data(), &vec![0, 0]); account.set_data_from_slice(&[1, 2]); assert_eq!(account.data(), &vec![1, 2]); account.set_data...
rust_cleaned_test_functions.jsonl/48197
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 434 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13500, 2602, 1769, 5673, 26488, 368, 341, 286, 1077, 1376, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 39464, 5206, 2692, 8, 284, 1281, 23241, 55665, 2099, 792, 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_requesting_bin_requests() { run_with_server(|mut test_env| { let new_bin = test_env.create_bin().unwrap(); let bin_id = new_bin.id; let mut headers = Headers::new(); headers.set(XFlubble("yep".to_owned())); headers.set(XDoodle("nope".to_owned())); ...
rust_cleaned_test_functions.jsonl/56480
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 687 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 287, 21816, 37216, 368, 341, 262, 1598, 6615, 12015, 22428, 6984, 1273, 15879, 91, 341, 286, 1077, 501, 21816, 284, 1273, 15879, 2520, 21816, 1005, 15454, 543, 286, 1077, 9544, 842, 284, 501...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_map_ascending_available() { let mut aid_map: Map = Default::default(); for i in 1..=1000u16 { assert_eq!(aid_map.assign_aid().unwrap(), i); } aid_map.release_aid(157); aid_map.release_aid(792); aid_map.release_aid(533); assert_e...
rust_cleaned_test_functions.jsonl/42227
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 506 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5376, 62, 71900, 26962, 368, 341, 286, 1077, 5206, 12296, 5376, 25, 5027, 284, 7899, 486, 2258, 543, 286, 369, 600, 304, 220, 16, 496, 28, 16, 15, 15, 15, 84, 16, 21, 341, 310, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rchunks_last() { let v: &[i32] = &[0, 1, 2, 3, 4, 5]; let c = v.rchunks(2); assert_eq!(c.last().unwrap()[1], 1); let v2: &[i32] = &[0, 1, 2, 3, 4]; let c2 = v2.rchunks(2); assert_eq!(c2.last().unwrap()[0], 0); }
rust_cleaned_test_functions.jsonl/9665
{ "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, 1710, 84263, 12195, 368, 341, 262, 1077, 348, 25, 44590, 72, 18, 17, 60, 284, 44590, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 262, 1077, 272, 284, 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...
1
#[test] fn test_regression_from_variant_panics() { let variant = "text".to_variant(); let hashmap: Option<HashMap<u64, u64>> = FromVariant::from_variant(&variant); assert!(hashmap.is_none()); let variant = HashMap::<u64, u64>::new().to_variant(); let hashmap: Option<HashMap<u64, u64>> = Fro...
rust_cleaned_test_functions.jsonl/30211
{ "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, 91144, 5673, 46112, 71099, 1211, 368, 341, 262, 1077, 11424, 284, 330, 1318, 3263, 983, 46112, 543, 262, 1077, 92148, 25, 6959, 95020, 34837, 21, 19, 11, 575, 21, 19, 2452, 284, 5542, 20746, 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_smallest_difference() { let test_cases = [ (vec![1, 3, 15, 11, 2], vec![23, 127, 235, 19, 8], (3, 11, 8)), ( vec![2, 11, 15, 1], vec![12, 4, 235, 19, 127, 23], (1, 11, 12), ), ( vec![32, 1, 5, -31], v...
rust_cleaned_test_functions.jsonl/83010
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 354 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15874, 19236, 47525, 368, 341, 262, 1077, 1273, 41427, 284, 2278, 286, 320, 4083, 20703, 16, 11, 220, 18, 11, 220, 16, 20, 11, 220, 16, 16, 11, 220, 17, 1125, 7486, 20703, 17, 18, 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...
6
#[test] fn test_chan_block_still_works() { // check that even after getting a channel the blocking still works let a = Async::run(crate::logging::test_logger(), move || 42); let c = a.chan(); assert_eq!(a.block(), 42); // and the async went out of scope. ...
rust_cleaned_test_functions.jsonl/42284
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 242 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45552, 7113, 1261, 483, 11498, 82, 368, 341, 286, 442, 1779, 429, 1496, 1283, 3709, 264, 5496, 279, 22188, 2058, 4278, 198, 286, 1077, 264, 284, 21433, 486, 6108, 54907, 486, 25263, 486, 1944, 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_keys_array() { let mut s = KeysArray::new(); for i in 0..KEYS_ARRAY_LENGTH + 10 { s.push("a"); let bytes = &*s; assert_eq!(bytes.len(), i + 1); } }
rust_cleaned_test_functions.jsonl/28272
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12631, 3858, 368, 341, 286, 1077, 5206, 274, 284, 24133, 1857, 486, 931, 1428, 286, 369, 600, 304, 220, 15, 496, 4784, 50, 17724, 15023, 488, 220, 16, 15, 341, 310, 274, 2552, 445, 64, 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_search() { fn count_matches(mut s: SearchResult) -> usize { let mut num = 0; while let Some(n) = s.next() { println!("{:?}", n.path()); num += 1; } num } let c = DirTree::new("test_data").unwr...
rust_cleaned_test_functions.jsonl/78945
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 449 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10716, 368, 341, 286, 5168, 1760, 38344, 70305, 274, 25, 96597, 8, 1464, 22301, 341, 310, 1077, 5206, 1629, 284, 220, 15, 280, 310, 1393, 1077, 4329, 1445, 8, 284, 274, 4529, 368, 341, 394, 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_time_type_from_str() { // when valid let cases = vec![ ("2s", TimeType::S(2)), ("5s", TimeType::S(5)), ("2m", TimeType::M(2)), ("2h", TimeType::H(2)), ("2d", TimeType::D(2)), ("2w", TimeType::W(2)), ]; for (case, expect) in cases {...
rust_cleaned_test_functions.jsonl/31391
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3009, 1819, 5673, 2895, 368, 341, 262, 442, 979, 2697, 198, 262, 1077, 5048, 284, 7486, 90515, 286, 3489, 17, 82, 497, 4120, 929, 486, 50, 7, 17, 6965, 286, 3489, 20, 82, 497, 4120, 929, 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...
4
#[test] fn test_wildcards() { assert!(Pattern::new("a*b").unwrap().matches("a_b")); assert!(Pattern::new("a*b*c").unwrap().matches("abc")); assert!(!Pattern::new("a*b*c").unwrap().matches("abcd")); assert!(Pattern::new("a*b*c").unwrap().matches("a_b_c")); assert!(Pattern:...
rust_cleaned_test_functions.jsonl/40571
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 424 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1670, 695, 25024, 368, 341, 286, 2060, 10297, 15760, 486, 931, 445, 64, 33279, 1827, 15454, 1005, 19914, 445, 64, 880, 4010, 286, 2060, 10297, 15760, 486, 931, 445, 64, 33279, 39091, 1827, 15454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_insert_at_leaf_with_multiple_internals_created() { let db = MockTreeStore::default(); let tree = JellyfishMerkleTree::new(&db); // 1. Insert the first leaf into empty tree let key1 = HashValue::new([0x00u8; HashValue::LENGTH]); let value1 = ValueBlob::from(vec![1u8, 2u8]); ...
rust_cleaned_test_functions.jsonl/46371
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1737 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 3752, 38909, 6615, 45233, 4042, 89320, 27288, 368, 341, 262, 1077, 2927, 284, 14563, 6533, 6093, 486, 2258, 543, 262, 1077, 4916, 284, 73139, 18170, 44, 16754, 273, 6533, 486, 931, 2099, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_size() { assert_eq!(std::mem::size_of::<PackedStorage>(), 1 + 7); assert_eq!(std::mem::size_of::<IndexEntry>(), 32 + 8 + 8 + 8); }
rust_cleaned_test_functions.jsonl/61656
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 87 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2368, 368, 341, 286, 2060, 10714, 10297, 1834, 486, 10536, 486, 2141, 3575, 27638, 47, 11191, 5793, 39019, 220, 16, 488, 220, 22, 317, 286, 2060, 10714, 10297, 1834, 486, 10536, 486, 2141, 3575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_lines() { let m = tobj::load_obj("lines.obj"); assert!(m.is_ok()); let (models, mats) = m.unwrap(); // We expect a single model with no materials assert_eq!(models.len(), 1); assert!(mats.is_empty()); // Confirm our line list is loaded correctly assert_eq!(models[...
rust_cleaned_test_functions.jsonl/131089
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 342 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18323, 368, 341, 262, 1077, 296, 284, 24406, 73, 486, 1078, 7328, 445, 7969, 21232, 797, 262, 2060, 10297, 76, 2079, 19817, 1423, 262, 1077, 320, 6507, 11, 61056, 8, 284, 296, 55395, 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_get_payment_txn() { settings::set_defaults(); settings::set_config_value(settings::CONFIG_ENABLE_TEST_MODE,"true"); let handle = credential::from_string(::utils::constants::FULL_CREDENTIAL_SERIALIZED).unwrap(); let cb = return_types_u32::Return_U32_STR::new().unw...
rust_cleaned_test_functions.jsonl/58641
{ "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, 3062, 26696, 92299, 368, 341, 286, 5003, 486, 746, 42290, 543, 286, 5003, 486, 746, 5332, 3142, 23369, 486, 24652, 14379, 11641, 8414, 1335, 1866, 3071, 286, 1077, 3705, 284, 40207, 486, 1499, 390...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_endpoint_sawtooth_prefix() { let endpoint = Endpoint::from("sawtooth:tcp://localhost:8080"); assert_eq!( endpoint, Endpoint { backend: Backend::Sawtooth, url: "tcp://localhost:8080".into() } ); }
rust_cleaned_test_functions.jsonl/38557
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36699, 643, 672, 983, 8767, 13974, 368, 341, 286, 1077, 14887, 284, 47269, 486, 1499, 445, 82, 672, 983, 8767, 25, 27161, 1110, 8301, 25, 23, 15, 23, 15, 797, 286, 2060, 10714, 33673, 310, 148...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_meta_variable() { const FORMAT_STR: &str = r"(\[$all\]) "; let formatter = StringFormatter::new(FORMAT_STR) .unwrap() .map_meta(|var, _| match var { "all" => Some("$some"), _ => None, }); let...
rust_cleaned_test_functions.jsonl/71891
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24433, 3005, 13381, 14635, 368, 341, 286, 733, 52225, 7159, 25, 609, 495, 284, 435, 1, 11520, 3442, 541, 59, 2467, 41620, 286, 1077, 24814, 284, 923, 14183, 486, 931, 7832, 98084, 7159, 340, 310...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_filter_all_false_data_block() -> Result<()> { let schema = DataSchemaRefExt::create(vec![ DataField::new("a", i8::to_data_type()), DataField::new("b", Vu8::to_data_type()), ]); let block = DataBlock::create(schema, vec![ Series::from_data(vec![1i8, 1, 2, 1, 2...
rust_cleaned_test_functions.jsonl/132727
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 327 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 5705, 36015, 1769, 7113, 368, 1464, 5714, 71698, 341, 262, 1077, 10802, 284, 2885, 8632, 3945, 6756, 486, 3182, 25592, 90515, 286, 2885, 1877, 486, 931, 445, 64, 497, 600, 23, 486, 983, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_logic_and_function() -> Result<()> { let tests = vec![ ScalarFunction2Test { name: "and", columns: vec![ Series::from_data(vec![true, true, true, false]), Series::from_data(vec![true, false, true, true]), ], ...
rust_cleaned_test_functions.jsonl/38915
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 635 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54335, 8378, 9174, 368, 1464, 5714, 71698, 341, 262, 1077, 7032, 284, 7486, 90515, 286, 35176, 5152, 17, 2271, 341, 310, 829, 25, 330, 437, 756, 310, 8147, 25, 7486, 90515, 394, 11131, 486, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_load_initrd_unaligned() { let image = vec![1, 2, 3, 4]; let gm = create_guest_mem_at(GuestAddress(arch::PAGE_SIZE as u64 + 1), image.len() * 2); let res = load_initrd(&gm, &mut Cursor::new(&image)); assert!(res.is_err()); assert_eq!( StartMicr...
rust_cleaned_test_functions.jsonl/4349
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 6137, 6498, 4907, 47142, 368, 341, 286, 1077, 2168, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 286, 1077, 37879, 284, 1855, 62739, 12976, 3752, 6699, 3045, 4286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_success_validate_qualified_address_from_verkey() { let address = gen_random_qualified_address(); // pay:sov:gzidfrdJtvgUh4jZTtGvTZGU5ebuGMoNCbofXGazFa91234 // break it up into the individual parts we expect to find and // test the validity of the parts ...
rust_cleaned_test_functions.jsonl/72547
{ "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, 18632, 42681, 62, 36335, 6744, 5673, 26042, 792, 368, 341, 286, 1077, 2621, 284, 4081, 22644, 62, 36335, 6744, 1428, 1789, 286, 442, 2291, 25, 84293, 25, 46589, 307, 1626, 67, 41, 83, 7239, 7179...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_txs_fees() { let db = RocksDB::open_tmp(COLUMNS); let store = ChainDB::new(db, Default::default()); let consensus = Consensus::default(); let block = BlockBuilder::default().build(); let ext_tx_fees = vec![ 100u32.as_capacity(), ...
rust_cleaned_test_functions.jsonl/38418
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 619 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17805, 82, 761, 5516, 368, 341, 286, 1077, 2927, 284, 68031, 3506, 486, 2508, 16125, 3025, 48770, 317, 286, 1077, 3553, 284, 28525, 3506, 486, 931, 9791, 11, 7899, 486, 2258, 5231, 1789, 286, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vcx_credential_update_state() { settings::set_defaults(); settings::set_config_value(settings::CONFIG_ENABLE_TEST_MODE,"true"); let cxn = ::connection::build_connection("test_credential_update_state").unwrap(); let handle = credential::from_string(DEFAULT_SERIALIZ...
rust_cleaned_test_functions.jsonl/58639
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 437 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 25844, 666, 30320, 8882, 4387, 368, 341, 286, 5003, 486, 746, 42290, 543, 286, 5003, 486, 746, 5332, 3142, 23369, 486, 24652, 14379, 11641, 8414, 1335, 1866, 797, 286, 1077, 20716, 77, 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_transaction_pool_block_reconciliation() { let keychain: ExtKeychain = Keychain::from_random_seed(false).unwrap(); let db_root = ".grin_block_reconciliation".to_string(); clean_output_dir(db_root.clone()); let chain = Arc::new(ChainAdapter::init(db_root.clone()).unwrap()); let verifier_cac...
rust_cleaned_test_functions.jsonl/29444
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1873 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 15709, 7113, 1288, 98240, 368, 341, 10217, 1376, 8819, 25, 9447, 1592, 8819, 284, 5309, 8819, 486, 1499, 22644, 33809, 3576, 568, 15454, 1428, 10217, 2927, 12993, 284, 5933, 901, 258, 7113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_which_relative_non_executable() { // Shouldn't return non-executable files. let f = TestFixture::new(); f.touch("b/another", "").unwrap(); assert!(_which(&f, "b/another").is_err()); }
rust_cleaned_test_functions.jsonl/13416
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 91 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 8206, 29286, 21637, 18430, 5922, 368, 341, 262, 442, 12260, 77, 944, 470, 2477, 70721, 5922, 3542, 624, 262, 1077, 282, 284, 3393, 18930, 486, 931, 543, 262, 282, 42129, 445, 65, 14, 41963, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_reset_tree_response() { let data = vec![ 0x00, 0x25, /* Subcommand::Pinweaver */ 0x01, /* Protocol version */ 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, /* Root hash 0-7 */ ...
rust_cleaned_test_functions.jsonl/64315
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 686 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18983, 11663, 9655, 368, 341, 286, 1077, 821, 284, 7486, 90515, 310, 220, 15, 87, 15, 15, 11, 220, 15, 87, 17, 20, 11, 1391, 3719, 5631, 486, 19861, 896, 7255, 735, 310, 220, 15, 87, 15, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_half_word_read_write() { const ADDR: u32 = 0x02; let mut mem = Memory::new(1024); for data in 0..0xFFFF { mem.write_half_word(ADDR, data).unwrap(); assert_eq!(data, mem.read_half_word(ADDR).unwrap()); } }
rust_cleaned_test_functions.jsonl/92781
{ "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, 40626, 13533, 6443, 9165, 368, 341, 286, 733, 80514, 25, 575, 18, 17, 284, 220, 15, 87, 15, 17, 280, 286, 1077, 5206, 1833, 284, 13850, 486, 931, 7, 16, 15, 17, 19, 317, 286, 369, 821, 304...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_struct_value() { let input = b"\x12\x34"; let res = S4::parse(input); assert_eq!( res, Ok(( &input[1..], S4 { a: 0x12, b: 0x13, s: "19".to_string() } )) ); }
rust_cleaned_test_functions.jsonl/18971
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 3142, 368, 341, 262, 1077, 1946, 284, 293, 11934, 87, 16, 17, 3462, 18, 19, 876, 262, 1077, 592, 284, 328, 19, 486, 6400, 5384, 317, 262, 2060, 10714, 33673, 286, 592, 345, 286, 7622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_task_valid() -> AnyResult<()> { use super::{Frequency, Task, TaskBuilder}; use crate::utils::convenience::functions::create_default_delay_task_handler; let mut task_builder = TaskBuilder::default(); //The third run returns to an invalid state. task_builde...
rust_cleaned_test_functions.jsonl/79307
{ "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, 12184, 8337, 368, 1464, 5765, 2077, 71698, 341, 286, 990, 2256, 22964, 38614, 11, 5430, 11, 5430, 3297, 2440, 286, 990, 17717, 486, 6031, 486, 443, 39547, 486, 21409, 486, 3182, 9993, 22198, 12184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_startup_sync_state() { let mut swarm = new_local_swarm(4); let validator_peer_ids = swarm.validators().map(|v| v.peer_id()).collect::<Vec<_>>(); let client_1 = swarm .validator(validator_peer_ids[1]) .unwrap() .rest_client(); let transaction_factory = swar...
rust_cleaned_test_functions.jsonl/29247
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80858, 23008, 4387, 368, 341, 262, 1077, 5206, 60841, 284, 501, 13564, 32581, 2178, 7, 19, 317, 262, 1077, 22935, 45159, 8077, 284, 60841, 82728, 1005, 2186, 22428, 85, 91, 348, 72864, 842, 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_snap_mgr_create_dir() { // Ensure `mgr` creates the specified directory when it does not exist. let temp_dir = TempDir::new("test-snap-mgr-create-dir").unwrap(); let temp_path = temp_dir.path().join("snap1"); let path = temp_path.to_str().unwrap().to_owned(); ...
rust_cleaned_test_functions.jsonl/9601
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 333 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74175, 42438, 8657, 4334, 368, 341, 286, 442, 29279, 1565, 48292, 63, 11450, 279, 5189, 6220, 979, 432, 1558, 537, 3000, 624, 286, 1077, 2730, 4334, 284, 19944, 6184, 486, 931, 445, 1944, 1331, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_summary_raw_path() { assert_eq!(summary_raw_path("a"), "1/a"); assert_eq!(summary_raw_path("ab"), "2/ab"); assert_eq!(summary_raw_path("abc"), "3/a/abc"); assert_eq!(summary_raw_path("abcd"), "ab/cd/abcd"); assert_eq!(summary_raw_path("abcdefg"), "ab/cd/abcdefg"); assert_...
rust_cleaned_test_functions.jsonl/35036
{ "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, 27251, 16067, 2638, 368, 341, 262, 2060, 10714, 10297, 1708, 16067, 2638, 445, 64, 3975, 330, 16, 14186, 797, 262, 2060, 10714, 10297, 1708, 16067, 2638, 445, 370, 3975, 330, 17, 14, 370, 797, 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_trim_utf8_bom_from_str() { // UTF-8 BOM + "xyz" let bom_str = str::from_utf8(b"\xef\xbb\xbfxyz").unwrap(); assert_eq!("xyz", trim_utf8_bom(bom_str)); assert_eq!("xyz", trim_utf8_bom("xyz")); }
rust_cleaned_test_functions.jsonl/52110
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70025, 39453, 23, 880, 316, 5673, 2895, 368, 341, 286, 442, 20076, 12, 23, 425, 1898, 488, 330, 28854, 698, 286, 1077, 18167, 2895, 284, 607, 486, 1499, 39453, 23, 1883, 11934, 47510, 3462, 6066...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sort_insertion_sort() { for size in [0, 1, 5_000].iter() { helper_sort(false, &|a| insertion_sort(a), generators_bool(), *size); helper_sort(false, &|a| insertion_sort(a), generators_char(), *size); helper_sort(false, &|a| insertion_sort(a), generators_f32(), *size); ...
rust_cleaned_test_functions.jsonl/43397
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1084 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 17678, 290, 18435, 368, 341, 262, 369, 1379, 304, 508, 15, 11, 220, 16, 11, 220, 20, 62, 15, 15, 15, 936, 2015, 368, 341, 286, 13137, 18435, 3576, 11, 609, 91, 64, 91, 35927, 18435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mask_apply() { let m = Mask::from_str("XXXXXXXXXXXXXXXXXXXXXXXXXXXXX1XXXX0X").unwrap(); assert_eq!(m.apply(11), 73); assert_eq!(m.apply(101), 101); assert_eq!(m.apply(0), 64); }
rust_cleaned_test_functions.jsonl/120540
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 120 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9999, 36551, 368, 341, 286, 1077, 296, 284, 19924, 486, 1499, 2895, 445, 61516, 61516, 61516, 23830, 55, 16, 23830, 15, 55, 1827, 15454, 543, 286, 2060, 10714, 10297, 76, 13045, 7, 16, 16, 701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_127() { assert_eq!( Solution::ladder_length( "hit".to_string(), "cog".to_string(), vec![ "hot".to_string(), "dot".to_string(), "dog".to_string(), "l...
rust_cleaned_test_functions.jsonl/54866
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 620 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 16, 17, 22, 368, 341, 286, 2060, 10714, 33673, 310, 12478, 486, 75, 20808, 5118, 1006, 394, 330, 22492, 3263, 983, 3904, 3148, 394, 330, 66, 538, 3263, 983, 3904, 3148, 394, 7486, 90515, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_module_with_functions() { let gil = Python::acquire_gil(); let py = gil.python(); let d = PyDict::new(py); d.set_item("module_with_functions", unsafe { PyObject::from_owned_ptr(py, PyInit_module_with_functions()) }) .unwrap(); let run = |code| py.run(code, N...
rust_cleaned_test_functions.jsonl/235
{ "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, 10750, 6615, 31708, 368, 341, 262, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 262, 1077, 4510, 284, 342, 321, 43193, 1428, 262, 1077, 294, 284, 5355, 13448, 486, 931, 46827, 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_take_primitive_nullable_indices_non_null_values_with_offset() { let index = UInt32Array::from(vec![Some(0), Some(1), Some(2), Some(3), None, None]); let index = index.slice(2, 4); let index = index.as_any().downcast_ref::<UInt32Array>().unwrap(); asse...
rust_cleaned_test_functions.jsonl/27043
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 346 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73261, 84087, 69743, 18333, 21637, 15162, 9146, 6615, 6917, 368, 341, 286, 1077, 1922, 4035, 310, 22275, 18, 17, 1857, 486, 1499, 25592, 20703, 8373, 7, 15, 701, 4329, 7, 16, 701, 4329, 7, 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_as_ptr() { let c_str = "hello".to_c_str(); let len = unsafe { libc::strlen(c_str.as_ptr()) }; assert_eq!(len, 5); }
rust_cleaned_test_functions.jsonl/76018
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 91 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11898, 4348, 368, 341, 286, 1077, 272, 2895, 284, 330, 14990, 3263, 983, 666, 2895, 543, 286, 1077, 2422, 284, 19860, 314, 42142, 486, 20877, 1337, 2895, 5357, 4348, 2140, 2605, 286, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_min_aggregation() { let aggs: Aggregations = ("min_test", Min::field("blah")).into(); assert_eq!( "{\"min_test\":{\"min\":{\"field\":\"blah\"}}}", serde_json::to_string(&aggs).unwrap() ); }
rust_cleaned_test_functions.jsonl/51186
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7260, 20587, 34442, 368, 341, 286, 1077, 933, 5857, 25, 4598, 7998, 804, 284, 3489, 1065, 4452, 497, 3386, 486, 2566, 445, 70614, 15197, 18122, 1428, 286, 2060, 10714, 33673, 310, 54734, 1065, 445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_symlink_existing_file() { let (at, mut ucmd) = at_and_ucmd!(); let file = "test_symlink_existing_file"; let link = "test_symlink_existing_file_link"; at.touch(file); ucmd.args(&["-s", file, link]).succeeds().no_stderr(); assert!(at.file_exists(file)); assert!(at.is...
rust_cleaned_test_functions.jsonl/4877
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 175 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58530, 44243, 62630, 2458, 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, 62630, 2458, 876, 262, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_key_type() { let method = test_method(); let mut new = method.clone(); *new.key_type_mut() = MethodType::MerkleKeyCollection2021; let diff = method.diff(&new).unwrap(); assert!(diff.id.is_none()); assert!(diff.controller.is_none()); assert!(diff.key_data.is_none()); ...
rust_cleaned_test_functions.jsonl/124421
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 1819, 368, 341, 262, 1077, 1714, 284, 1273, 9032, 543, 262, 1077, 5206, 501, 284, 1714, 15997, 543, 262, 353, 931, 4735, 1819, 29523, 368, 284, 6730, 929, 486, 44, 16754, 273, 1592, 6482, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_buffer_data_equality() { let buf1 = Buffer::from(&[0, 1, 2, 3, 4]); let mut buf2 = Buffer::from(&[0, 1, 2, 3, 4]); assert_eq!(buf1, buf2); // slice with same offset should still preserve equality let buf3 = buf1.slice(2); assert_ne!(buf1, buf3); ...
rust_cleaned_test_functions.jsonl/20560
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7776, 1769, 2204, 10473, 368, 341, 286, 1077, 6607, 16, 284, 10312, 486, 1499, 2099, 58, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 2558, 286, 1077, 5206, 6607, 17, 284, 10312, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_arg() { fn test(c: Complex64, arg: f64) { assert!((c.arg() - arg).abs() < 1.0e-6) } test(_1_0i, 0.0); test(_1_1i, 0.25 * f64::consts::PI); test(_neg1_1i, 0.75 * f64::consts::PI); test(_05_05i, 0.25 * f64::con...
rust_cleaned_test_functions.jsonl/105677
{ "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, 6057, 368, 341, 310, 5168, 1273, 1337, 25, 22096, 21, 19, 11, 1392, 25, 282, 21, 19, 8, 341, 394, 2060, 0, 1188, 66, 21186, 368, 481, 1392, 568, 3435, 368, 366, 220, 16, 13, 15, 68, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dist_nobuilder() { let tmpdir = TempDir::new("sccache_dist_test").unwrap(); let tmpdir = tmpdir.path(); let sccache_dist = harness::sccache_dist_path(); let mut system = harness::DistSystem::new(&sccache_dist, tmpdir); system.add_scheduler(); let sccache_cfg = dist_test...
rust_cleaned_test_functions.jsonl/8082
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 486 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16031, 1089, 674, 2511, 368, 341, 262, 1077, 4174, 3741, 284, 19944, 6184, 486, 931, 445, 82, 638, 1777, 16031, 4452, 1827, 15454, 543, 262, 1077, 4174, 3741, 284, 4174, 3741, 3875, 543, 262, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_microvmstate_versionize() { let mut event_manager = EventManager::new().expect("Cannot create EventManager"); let vmm = default_vmm_with_devices(&mut event_manager); let states = vmm.mmio_device_manager.save(); // is tested by that device's tests. ...
rust_cleaned_test_functions.jsonl/28547
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 619 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73003, 7338, 2454, 9438, 551, 368, 341, 286, 1077, 5206, 1538, 12144, 284, 3665, 2043, 486, 931, 1005, 17119, 445, 17444, 1855, 3665, 2043, 797, 286, 1077, 348, 3821, 284, 1638, 2273, 3821, 6615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_uncleaned_roots_with_account() { solana_logger::setup(); let accounts = AccountsDB::new(Vec::new()); let pubkey = Pubkey::new_rand(); let account = Account::new(1, 0, &Account::default().owner); //store an account accounts.store(0, &[(&pubkey, &ac...
rust_cleaned_test_functions.jsonl/33678
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 284 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 76576, 2675, 291, 26608, 2412, 6615, 13500, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 9618, 284, 40655, 3506, 486, 931, 49923, 486, 931, 1423, 286, 1077, 95116, 284, 22611, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_let_collect() { let t = LetCollectTemplate { a: vec![0, 1] }; // instantiate your struct assert_eq!("13", t.call().unwrap()); // then call it. }
rust_cleaned_test_functions.jsonl/92843
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 70 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 1149, 68140, 368, 341, 262, 1077, 259, 284, 6771, 47504, 7275, 314, 264, 25, 7486, 20703, 15, 11, 220, 16, 60, 20066, 442, 40902, 697, 2036, 198, 262, 2060, 10714, 17223, 16, 18, 497, 259,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_timeout_not_expired() { Runtime::builder() .build() .expect("build runtime failed") .block_on(async { assert_eq!( timeout(Duration::from_secs(1), async { 1 }).await.unwrap(), 1 ) ...
rust_cleaned_test_functions.jsonl/16036
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20537, 7913, 80221, 368, 341, 286, 10954, 486, 17850, 741, 310, 659, 5834, 741, 310, 659, 17119, 445, 5834, 15592, 4641, 1138, 310, 659, 4574, 4470, 18285, 341, 394, 2060, 10714, 33673, 503, 9632,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prf_test_case_65_1() { let key = Vec::from_hex("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b").unwrap(); let actual = prf(&key[..], "prefix", "Hi There".as_bytes(), 192); assert_eq!(actual.is_ok(), true); let expected = Vec::from_hex("bcd4c650b30b9684951829e0d75f9d54...
rust_cleaned_test_functions.jsonl/132283
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5294, 69, 4452, 19096, 62, 21, 20, 62, 16, 368, 341, 286, 1077, 1376, 284, 11312, 486, 1499, 32655, 445, 15, 65, 15, 65, 15, 65, 15, 65, 15, 65, 15, 65, 15, 65, 15, 65, 15, 65, 15, 65,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stack_uses_custom_base() { let (_dir, repo) = init_repo(); let commits = empty_commit_chain(&repo, "HEAD", &[], 3); repo.branch("hide", &commits[1], false).unwrap(); assert_stack_matches_chain( 2, &working_stack( &repo, ...
rust_cleaned_test_functions.jsonl/21467
{ "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, 15528, 62, 4776, 15875, 7651, 368, 341, 286, 1077, 5453, 3741, 11, 15867, 8, 284, 2930, 37784, 543, 286, 1077, 41535, 284, 4287, 36346, 30583, 2099, 23476, 11, 330, 35433, 497, 609, 12995, 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_rule_index() -> TestResult { let mut p = Polar::new(); p.load_str( r#"f(1, 1, "x"); f(1, 1, "y"); f(1, x, "y") if x = 2; f(1, 2, {b: "y"}); f(1, 3, {c: "z"});"#, )?; // Exercise the index. qeval(&mut p, r#"f(1, 1, "x")"#); ...
rust_cleaned_test_functions.jsonl/97658
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 376 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21124, 3560, 368, 1464, 3393, 2077, 341, 262, 1077, 5206, 281, 284, 55896, 486, 931, 543, 262, 281, 5104, 2895, 1006, 286, 435, 55543, 69, 7, 16, 11, 220, 16, 11, 330, 87, 797, 1843, 282, 7,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_boolean_buffer_builder_unset_several_bits() { let mut buffer = BooleanBufferBuilder::new(5); buffer.append(true); buffer.append(true); buffer.append(true); buffer.append(false); buffer.append(true); buffer.set_bit(1, false); buffer....
rust_cleaned_test_functions.jsonl/87775
{ "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, 46642, 7776, 28532, 98109, 3453, 17539, 20034, 368, 341, 286, 1077, 5206, 4147, 284, 6992, 4095, 3297, 486, 931, 7, 20, 317, 286, 4147, 2057, 3715, 317, 286, 4147, 2057, 3715, 317, 286, 4147, 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_penalty_four_pixels() { let left_image = [[1, 1].to_vec(), [0, 0].to_vec()].to_vec(); let right_image = [[1, 0].to_vec(), [0, 0].to_vec()].to_vec(); let disparity_map = [[0, 1].to_vec(), [0, 1].to_vec()].to_vec(); let mut diffusion_graph = DiffusionGraph::initiali...
rust_cleaned_test_functions.jsonl/70574
{ "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, 82286, 56142, 49745, 368, 341, 286, 1077, 2115, 4954, 284, 4318, 16, 11, 220, 16, 936, 983, 13251, 1507, 508, 15, 11, 220, 15, 936, 983, 13251, 57590, 983, 13251, 543, 286, 1077, 1290, 4954, 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_debug_printing() { assert_eq!( format!("{:?}", ErrorCode::F00_BAD_REQUEST), String::from("ErrorCode(\"F00 (Bad Request)\")") ); assert_eq!( format!("{:?}", ErrorCode::F01_INVALID_PACKET), String::from("ErrorCode(\"F01 (Inval...
rust_cleaned_test_functions.jsonl/3927
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1899 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15446, 10064, 287, 368, 341, 286, 2060, 10714, 33673, 310, 3561, 88928, 25, 52652, 60084, 486, 37, 15, 15, 30666, 14454, 1326, 310, 923, 486, 1499, 445, 30748, 36014, 37, 15, 15, 320, 17082, 614...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_custom_format_supports_nanos_with_length() { let dir = tempdir(); dir.child("one").touch().unwrap(); dir.child("two").touch().unwrap(); cmd() .arg("-l") .arg("--date") .arg("+testDateFormat%.3f") .arg("--ignore-config") .arg(dir.path(...
rust_cleaned_test_functions.jsonl/72430
{ "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, 4164, 15875, 8955, 25827, 82, 1089, 43605, 6615, 5118, 368, 341, 262, 1077, 5419, 284, 2730, 3741, 543, 262, 5419, 17531, 445, 603, 1827, 22020, 1005, 15454, 543, 262, 5419, 17531, 445, 19789, 182...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_resource_block_declaration_keywords_are_not_reserved_words() { let p = Polar::new(); p.load_str( "on(actor, resource, roles, permissions, relations) if on(actor, resource, roles, permissions, relations);", ) .unwrap(); }
rust_cleaned_test_functions.jsonl/31751
{ "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, 17962, 7113, 77926, 51354, 56855, 7913, 74913, 18981, 368, 341, 286, 1077, 281, 284, 55896, 486, 931, 543, 286, 281, 5104, 2895, 1006, 310, 330, 263, 65451, 11, 5101, 11, 12783, 11, 8541, 11, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_usb_read_failures() { let device_config = fake_device::DeviceConfiguration { shunt_resistance: 0.01, v_shunt_scale: 1e-5, v_bus_scale: 0.025, }; let test_duration = Duration::from_secs(1); let raw_data_interval = Duration::from_...
rust_cleaned_test_functions.jsonl/90580
{ "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, 50863, 6443, 22121, 1413, 368, 341, 286, 1077, 3671, 5332, 284, 12418, 9204, 486, 6985, 7688, 341, 310, 557, 3850, 4918, 3924, 25, 220, 15, 13, 15, 16, 345, 310, 348, 3712, 3850, 16727, 25, 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_equality() { let mut p = Polar::new(); qeval(&mut p, "1 = 1"); qnull(&mut p, "1 = 2"); }
rust_cleaned_test_functions.jsonl/97620
{ "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, 2204, 10473, 368, 341, 262, 1077, 5206, 281, 284, 55896, 486, 931, 543, 262, 2804, 14170, 2099, 6984, 281, 11, 330, 16, 284, 220, 16, 797, 262, 2804, 2921, 2099, 6984, 281, 11, 330, 16, 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
#[test] fn test_vec3a_ceil() { assert_eq!( Vec3A::new(1.35, 1.5, -1.5).ceil(), Vec3A::new(2.0, 2.0, -1.0) ); assert_eq!( Vec3A::new(f32::INFINITY, f32::NEG_INFINITY, 0.0).ceil(), Vec3A::new(f32::INFINITY, f32::NEG_INFINITY, 0.0) ); assert!(Vec3A::new(f32::NAN,...
rust_cleaned_test_functions.jsonl/23508
{ "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, 13251, 18, 64, 62, 22058, 368, 341, 262, 2060, 10714, 33673, 286, 11312, 18, 32, 486, 931, 7, 16, 13, 18, 20, 11, 220, 16, 13, 20, 11, 481, 16, 13, 20, 568, 22058, 3148, 286, 11312, 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_seq_string() { check(Vec::<String>::new(), Some(4)); check( vec!["".to_string(), "a".to_string(), "b".to_string()], Some(4 + 4 + 1 + 3 + 4 + 2 + 2 + 4 + 2), ); }
rust_cleaned_test_functions.jsonl/79666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 110 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14486, 3904, 368, 341, 262, 1779, 49923, 27638, 703, 6831, 931, 1507, 4329, 7, 19, 1106, 262, 1779, 1006, 286, 7486, 0, 1183, 3263, 983, 3904, 1507, 330, 64, 3263, 983, 3904, 1507, 330, 65, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_chain_5() { let src = Hash { h: *b"\x00\x01\x02\x03\x04\x05\x06\x07\ \x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\ \x10\x11\x12\x13\x14\x15\x16\x17\ \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", }; let expect = Hash { ...
rust_cleaned_test_functions.jsonl/127328
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 477 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30583, 62, 20, 368, 341, 286, 1077, 2286, 284, 6531, 341, 310, 305, 25, 353, 65, 11934, 87, 15, 15, 3462, 15, 16, 3462, 15, 17, 3462, 15, 18, 3462, 15, 19, 3462, 15, 20, 3462, 15, 21, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_trailing_characters() { assert_eq!(from_str("nulla"), Err(SyntaxError(TrailingCharacters, 1, 5))); assert_eq!(from_str("truea"), Err(SyntaxError(TrailingCharacters, 1, 5))); assert_eq!(from_str("falsea"), Err(SyntaxError(TrailingCharacters, 1, 6))); assert_eq!(f...
rust_cleaned_test_functions.jsonl/6540
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 249 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 14277, 79060, 368, 341, 286, 2060, 10714, 10297, 1499, 2895, 445, 2921, 64, 3975, 220, 15495, 93549, 1454, 7, 1282, 14277, 37489, 11, 220, 16, 11, 220, 20, 4945, 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...
1
#[test] fn test_check_relayed_message() { let runner = actix::System::new(); runner.block_on(async move { let eth_full_node_url = "https://eth.althea.net"; let eth_web3 = Web3::new(eth_full_node_url, TIMEOUT); let own_address = "0xB5E7AcD8f1D5F8f8EA2DEf72C34F...
rust_cleaned_test_functions.jsonl/21540
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 777 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 1288, 6651, 291, 6462, 368, 341, 286, 1077, 22259, 284, 1160, 941, 486, 2320, 486, 931, 543, 286, 22259, 15697, 4470, 18285, 3271, 341, 310, 1077, 8372, 16372, 5084, 2903, 284, 330, 2428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vm_save_restore_state() { let kvm_fd = Kvm::new().unwrap(); let vm = Vm::new(&kvm_fd).expect("new vm failed"); assert!(vm.save_state().is_err()); let (vm, _mem) = setup_vm(0x1000); vm.setup_irqchip().unwrap(); let vm_state = vm.save_stat...
rust_cleaned_test_functions.jsonl/64718
{ "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, 39008, 15376, 62677, 4387, 368, 341, 286, 1077, 94748, 17676, 284, 730, 7338, 486, 931, 1005, 15454, 543, 286, 1077, 10995, 284, 647, 76, 486, 931, 2099, 74, 7338, 17676, 568, 17119, 445, 931, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_zero_continuity_counter() { let mut packet = PacketInfo::null_packet(); packet.set_continuity_counter(5); assert_eq!(packet.continuity_counter(), 5); packet.zero_continuity_counter(); assert_eq!(packet.continuity_counter(), 0); }
rust_cleaned_test_functions.jsonl/47184
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19359, 68948, 34494, 15730, 368, 341, 286, 1077, 5206, 10151, 284, 28889, 1731, 486, 2921, 21078, 543, 286, 10151, 980, 68948, 34494, 15730, 7, 20, 317, 286, 2060, 10714, 10297, 24829, 5345, 258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_typedef_duplicate() -> Result<()> { let ir = ir_from_cc( r#" struct MyStruct {}; // First doc comment. using MyTypeAlias = MyStruct; // Second doc comment. using MyTypeAlias = MyStruct; "#, )?; // commen...
rust_cleaned_test_functions.jsonl/37170
{ "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, 42111, 4219, 70434, 368, 1464, 5714, 71698, 341, 262, 1077, 6216, 284, 6216, 5673, 28955, 1006, 286, 435, 2, 698, 310, 2036, 3017, 9422, 9321, 310, 442, 5512, 4629, 3980, 624, 310, 1667, 3017, 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...
2
#[test] fn test_copy() { let buf = Buffer::from(&[0, 1, 2, 3, 4]); let buf2 = buf.clone(); assert_eq!(5, buf2.len()); assert_eq!(64, buf2.capacity()); assert!(!buf2.raw_data().is_null()); assert_eq!([0, 1, 2, 3, 4], buf2.data()); }
rust_cleaned_test_functions.jsonl/47242
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16096, 368, 341, 286, 1077, 6607, 284, 10312, 486, 1499, 2099, 58, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 2558, 286, 1077, 6607, 17, 284, 6607, 15997, 543, 286, 2060, 10714,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_minimum() { use core::ops::Deref; let data = vec![1, 2, 3, 4, 5, 6, 7]; let sifter = |_: &u32, delta: &u32, _| *delta; let mut tree = LazySegmentTree::construct_implicit(data.into_iter(), ::operator::minimum(), sifter); assert_eq!(*tree.query(0, 3).deref(), 1); assert_eq!(*tree.query...
rust_cleaned_test_functions.jsonl/109229
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84855, 368, 341, 197, 41819, 6200, 486, 3721, 486, 35, 43970, 280, 197, 10217, 821, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 935,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eval_single_column_node_normal() { let (columns, logical_rows, schema) = new_single_column_node_fixture(); let mut c = columns.clone(); let exp = RpnExpressionBuilder::new_for_test() .push_column_ref_for_test(1) .build_for_test(); let mut ...
rust_cleaned_test_functions.jsonl/92659
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 19487, 8744, 5084, 13973, 368, 341, 286, 1077, 320, 16369, 11, 19819, 10949, 11, 10802, 8, 284, 501, 19487, 8744, 5084, 74409, 1428, 286, 1077, 5206, 272, 284, 8147, 15997, 543, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_try_from_patch_drives() { let (mut sender, receiver) = UnixStream::pair().unwrap(); let mut connection = HttpConnection::new(receiver); sender .write_all( b"PATCH /drives/string HTTP/1.1\r\n\ Content-Type: application/json\r\n\ ...
rust_cleaned_test_functions.jsonl/43154
{ "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, 53283, 5673, 39643, 26680, 1886, 368, 341, 286, 1077, 320, 6984, 4646, 11, 13964, 8, 284, 46995, 3027, 486, 12670, 1005, 15454, 543, 286, 1077, 5206, 3633, 284, 4823, 4526, 486, 931, 78126, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_artists_albums() { let spotify = Spotify::default() .client_credentials_manager(CLIENT_CREDENTIAL.lock().unwrap().clone()) .build(); let birdy_uri = "spotify:artist:2WX2uTcsvV5OnS0inACecP"; let albums = spotify.artist_albums(birdy_uri, ...
rust_cleaned_test_functions.jsonl/96516
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 339 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36932, 1671, 53241, 82, 368, 341, 1066, 262, 1077, 87790, 284, 40537, 486, 2258, 741, 286, 659, 2972, 47396, 12144, 52991, 10757, 920, 81509, 21003, 1005, 15454, 1005, 19982, 2398, 286, 659, 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...
1
#[test] fn test_to_string_pretty() { let in_out = vec![ (0.99999, 0.0, "0.99999 ≈ 1"), (-0.99999, 0.0, "-0.99999 ≈ -1"), (0.0, 0.99999, "0.99999i ≈ i"), (0.000000001, 0.0, "10^-9 ≈ 0"), (0.0, 0.000000001, "10^-9 i ≈ 0"), (0.99999, 0...
rust_cleaned_test_functions.jsonl/132412
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 968 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 3904, 620, 21322, 368, 341, 286, 1077, 304, 6068, 284, 7486, 90515, 310, 320, 15, 13, 24, 24, 24, 24, 24, 11, 220, 15, 13, 15, 11, 330, 15, 13, 24, 24, 24, 24, 24, 21103, 230, 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...
2