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_to_bool_float() { let val: ScalarCow<'_> = 42f64.into(); assert_eq!(val.to_bool(), None); let val: ScalarCow<'_> = 42.34.into(); assert_eq!(val.to_bool(), None); }
rust_cleaned_test_functions.jsonl/108137
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 22159, 17586, 368, 341, 286, 1077, 1044, 25, 35176, 89915, 18291, 98377, 284, 220, 19, 17, 69, 21, 19, 39860, 543, 286, 2060, 10714, 10297, 831, 2389, 22159, 1507, 2240, 626, 286, 1077, 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_delete_dependencies() { solana_logger::setup(); let accounts_index = AccountsIndex::default_for_tests(); let key0 = Pubkey::new_from_array([0u8; 32]); let key1 = Pubkey::new_from_array([1u8; 32]); let key2 = Pubkey::new_from_array([2u8; 32]); let i...
rust_cleaned_test_functions.jsonl/7013
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2419 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11353, 71841, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 9618, 3560, 284, 40655, 1552, 486, 2258, 5478, 32509, 543, 286, 1077, 1376, 15, 284, 22611, 792, 486, 931, 5673, 3858, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_non_printing_chars() { new_ucmd!() .pipe_in("a👦🏻aa\naaaa") // spell-checker:disable-line .arg("-i") .succeeds() .stdout_only("a👦🏻aa\naaaa\n"); // spell-checker:disable-line }
rust_cleaned_test_functions.jsonl/20481
{ "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, 21637, 10064, 287, 37418, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 13768, 1243, 445, 64, 145988, 144321, 5305, 1699, 28458, 899, 442, 12845, 15934, 261, 42066, 8447, 198, 286, 659, 858, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_branch_pop_version() { let hdr: MapxOrdRawKeyVs<usize> = MapxOrdRawKeyVs::new(); assert_eq!(false, hdr.branch_has_versions(INITIAL_BRANCH_NAME)); pnk!(hdr.version_create(VersionName(b"manster0"))); assert!(hdr.branch_has_versions(INITIAL_BRANCH_NAME)); pnk!(hdr.branch_pop_ver...
rust_cleaned_test_functions.jsonl/53979
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28031, 17061, 9438, 368, 341, 262, 1077, 36615, 25, 5027, 87, 24621, 20015, 1592, 51737, 90244, 29, 284, 5027, 87, 24621, 20015, 1592, 51737, 486, 931, 543, 262, 2060, 10714, 10297, 3849, 11, 3661...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nested_text_styles() { assert_markdown_eq( common::parts::nested_text_styles, r###" Here is some ***bold italic*** text. Here is some bold italic plain text. Here is some *bold plain italic* text. "###, ); }
rust_cleaned_test_functions.jsonl/133527
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66279, 4326, 37857, 368, 341, 262, 2060, 18924, 2923, 10714, 1006, 286, 4185, 486, 18252, 486, 59271, 4326, 37857, 345, 286, 435, 14374, 698, 8420, 374, 1045, 17160, 14824, 60763, 12210, 1467, 382, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_to_pre_genesis() { let db = MockTreeStore::default(); let key1 = HashValue::new([0x00u8; HashValue::LENGTH]); let value1 = ValueBlob::from(vec![1u8, 2u8]); let pre_genesis_root_key = NodeKey::new_empty_path(PRE_GENESIS_VERSION); db.put_node(pre_genesis_root_key, N...
rust_cleaned_test_functions.jsonl/46369
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 543 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 2346, 10442, 16322, 13774, 368, 341, 1066, 262, 1077, 2927, 284, 14563, 6533, 6093, 486, 2258, 543, 262, 1077, 1376, 16, 284, 6531, 1130, 486, 931, 2561, 15, 87, 15, 15, 84, 23, 26, 653...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_start_intersecting_activity() { let test_dir = tempdir().expect("error while creating tempdir"); let mut service = build_json_service(&test_dir); let finished = OngoingActivity::new( Local .datetime_from_str("2020-12-25T09:00:00", "%Y-%m-%dT%H:...
rust_cleaned_test_functions.jsonl/116412
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 616 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4906, 72747, 287, 30026, 368, 341, 286, 1077, 1273, 4334, 284, 2730, 3741, 1005, 17119, 445, 841, 1393, 6825, 2730, 3741, 797, 286, 1077, 5206, 2473, 284, 1936, 9455, 12267, 2099, 1944, 4334, 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_ssh_url_clone_url() { let url = "ssh://aur@aur.archlinux.org/user/repo.git"; assert_eq!( Repo::parse(url).get_clone_url(), "ssh://aur@aur.archlinux.org/user/repo.git" ); }
rust_cleaned_test_functions.jsonl/31153
{ "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, 82805, 2903, 54742, 2903, 368, 341, 286, 1077, 2515, 284, 330, 25537, 1110, 4110, 31, 4110, 38091, 14210, 2659, 11739, 10758, 5368, 32799, 876, 286, 2060, 10714, 33673, 310, 71509, 486, 6400, 6522, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_blockstream() -> () { let blockstream = MockBlockstream::new("test_stream".to_string()); let ticks_per_slot = 5; let mut blockhash = Hash::default(); let mut entries = Vec::new(); let mut expected_entries = Vec::new(); let tick_height_initial = 0...
rust_cleaned_test_functions.jsonl/100170
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1408 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7113, 4027, 368, 1464, 1719, 341, 286, 1077, 2504, 4027, 284, 14563, 4713, 4027, 486, 931, 445, 1944, 12673, 3263, 983, 3904, 1423, 286, 1077, 29957, 5678, 27563, 284, 220, 20, 401, 286, 1077, 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...
5
#[test] fn test_qualify_path_and_substitute_param() { check_assist( add_missing_impl_members, " mod foo { pub struct Bar<T>; trait Foo<T> { fn foo(&self, bar: Bar<T>); } } struct S; impl foo::Foo<u32> for S { <|> }", " mod foo { pub struct Bar<T>; trai...
rust_cleaned_test_functions.jsonl/106818
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 251 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64391, 1437, 2638, 8378, 5228, 7660, 4090, 368, 341, 286, 1779, 12083, 380, 1006, 310, 912, 40447, 21007, 30397, 345, 310, 6228, 2593, 15229, 341, 262, 6675, 2036, 4716, 3125, 10133, 262, 17567, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_addassign() { fn inner(mut bounds: Vec<f64>, lpyld: Vec<f64>, rpyld: Vec<f64>) -> TestResult { if bounds.is_empty() { return TestResult::discard(); } bounds.sort_by(|a, b| a.partial_cmp(b).unwrap()); let mut x = Histogram::...
rust_cleaned_test_functions.jsonl/38533
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1157 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 6983, 368, 341, 286, 5168, 9179, 70305, 14262, 25, 11312, 63895, 21, 19, 8066, 326, 3288, 507, 25, 11312, 63895, 21, 19, 8066, 435, 3288, 507, 25, 11312, 63895, 21, 19, 9231, 1464, 3393, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_empty_object() { let mut jbl = JBL::new_object().unwrap(); jbl.set_prop("a", true).unwrap(); jbl.set_prop("b", 12345 as f64).unwrap(); jbl.set_prop("c", JBLValue::Null).unwrap(); jbl.set_prop("d", JBLValue::EmptyArray).unwrap(); jbl.set_prop(...
rust_cleaned_test_functions.jsonl/80410
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 5314, 368, 972, 286, 1077, 5206, 502, 2024, 284, 619, 9389, 486, 931, 5314, 1005, 15454, 1647, 286, 502, 2024, 980, 21663, 445, 64, 497, 830, 568, 15454, 1647, 286, 502, 2024, 980, 21663,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encode_decode() { use crate::rr::dnssec::SupportedAlgorithms; let mut edns: Edns = Edns::new(); edns.set_dnssec_ok(true); edns.set_max_payload(0x8008); edns.set_version(0x40); edns.set_rcode_high(0x01); edns.options_mut() .insert(EdnsOption::DAU(SupportedAlg...
rust_cleaned_test_functions.jsonl/93008
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 420 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 15227, 368, 341, 262, 990, 17717, 486, 634, 486, 45226, 5024, 486, 34636, 2101, 18980, 401, 262, 1077, 5206, 1578, 4412, 25, 3199, 4412, 284, 3199, 4412, 486, 931, 1428, 262, 1578, 4412, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_no_leak_with_double_indirection() { use crate::collect::*; #[derive(Debug, Clone)] struct S { ty: Cc<Cc<i32>>, } let ty = Cc::new(5); drop(ty.clone()); let s = S { ty: Cc::new(ty) }; drop(s.ty.clone()); ...
rust_cleaned_test_functions.jsonl/110858
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 225 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 11751, 585, 6615, 24598, 9122, 2866, 368, 341, 286, 990, 17717, 486, 17384, 56162, 286, 11506, 27098, 42618, 11, 27913, 5563, 286, 2036, 328, 341, 310, 13580, 25, 356, 66, 20373, 66, 21897, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_output_to_custom_log() { let subsystem = CString::new("com.example.test").unwrap(); let category = CString::new("category").unwrap(); let log = unsafe { os_log_create(subsystem.as_ptr(), category.as_ptr()) }; let message = CString::new("Hello!").unwrap(); ...
rust_cleaned_test_functions.jsonl/125807
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 502 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7645, 2346, 15875, 5224, 368, 341, 286, 1077, 52785, 284, 56956, 486, 931, 445, 874, 7724, 5958, 1827, 15454, 543, 286, 1077, 5582, 284, 56956, 486, 931, 445, 5471, 1827, 15454, 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_get_time() { delay(); let client: Public<Sync> = Public::new(SANDBOX_URL); let time = client.get_time().unwrap(); let time_str = format!("{:?}", time); assert!(time_str.starts_with("Time {")); assert!(time_str.contains("iso:")); assert!(time_str.contains("epoch:")); ...
rust_cleaned_test_functions.jsonl/50630
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 3009, 368, 341, 262, 7626, 543, 262, 1077, 2943, 25, 3066, 27, 12154, 29, 284, 3066, 486, 931, 3759, 1093, 3506, 60155, 8000, 317, 262, 1077, 882, 284, 2943, 670, 3009, 1005, 15454, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cpuidfeature_try_from_usize() { for value in CpuidFeature::values() { let converted = <CpuidFeature as TryFrom<usize>>::try_from(value as usize).unwrap(); assert_eq!(converted, value); } assert!(<CpuidFeature as TryFrom<usize>>::try_from(IcedConstants::CPUID_FEATURE_ENUM_COUNT).is_err());...
rust_cleaned_test_functions.jsonl/5965
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39811, 2423, 12753, 53283, 5673, 11306, 551, 368, 341, 2023, 897, 304, 64256, 2423, 13859, 486, 3661, 368, 341, 197, 10217, 16099, 284, 366, 34, 79, 2423, 13859, 438, 9735, 3830, 90244, 77595, 153...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unbound_attribute_with_ground() { let causetq = r#"[:find ?x ?v :where [?x _ ?v] (not [(ground 17) ?v])]"#; let schemaReplicant = prepopulated_schemaReplicant(); let SQLCausetQ { allegrosql, .. } = translate(&schemaReplicant, causetq); assert_eq!(allegrosql, "SELECT DISTINCT `all...
rust_cleaned_test_functions.jsonl/90725
{ "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, 4907, 10891, 16791, 6615, 72492, 368, 341, 262, 1077, 2162, 18187, 80, 284, 435, 55543, 3447, 3903, 937, 87, 937, 85, 549, 2870, 508, 30, 87, 716, 937, 85, 60, 320, 1921, 17826, 1951, 220, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_day_4_2_valid() { assert_eq!( day_4_2(&vec!( String::from("pid:087499704 hgt:74in ecl:grn iyr:2012 eyr:2030 byr:1980"), String::from("hcl:#623a2f"), String::from(""), String::from("eyr:2029 ecl:blu cid:129 byr:19...
rust_cleaned_test_functions.jsonl/21949
{ "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, 16763, 62, 19, 62, 17, 8337, 368, 341, 286, 2060, 10714, 33673, 310, 1899, 62, 19, 62, 17, 2099, 4083, 33673, 394, 923, 486, 1499, 445, 10412, 25, 15, 23, 22, 19, 24, 24, 22, 15, 19, 305, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_should_fail() { fn f() { panic!(); } let desc = TestDescAndFn { desc: TestDesc { name: StaticTestName("whatever"), ignore: false, should_fail: ShouldFail::Yes(None) }, testfn: DynTestFn(Thunk::new...
rust_cleaned_test_functions.jsonl/7110
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 280 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43378, 22121, 368, 341, 286, 5168, 282, 368, 314, 21975, 0, 2129, 456, 286, 1077, 6560, 284, 3393, 11065, 3036, 24911, 341, 310, 6560, 25, 3393, 11065, 341, 394, 829, 25, 23105, 2271, 675, 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_dynamic_convert() { let j0 = json! { [{"name": "tomcat"}, {"name": "jetty"}] }; let d0 = to_dynamic(&j0).unwrap(); assert_eq!("array", d0.type_name()); let j1 = json!({ "name": "tomcat", "value": 4000, }); ...
rust_cleaned_test_functions.jsonl/111681
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45992, 34910, 368, 341, 286, 1077, 502, 15, 284, 2951, 0, 341, 310, 61753, 606, 788, 330, 37401, 4616, 14345, 5212, 606, 788, 330, 15407, 1881, 9207, 921, 286, 3634, 286, 1077, 294, 15, 284, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_packet_discard() { solana_logger::setup(); let mut batch = PacketBatch::default(); batch.packets.resize(10, Packet::default()); batch.packets[3].meta.addr = std::net::IpAddr::from([1u16; 8]); batch.packets[3].meta.set_discard(true); batch.packets[4...
rust_cleaned_test_functions.jsonl/17097
{ "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, 21078, 37745, 567, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 5206, 7162, 284, 28889, 21074, 486, 2258, 543, 286, 7162, 556, 18382, 17382, 7, 16, 15, 11, 28889, 486, 2258, 142...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lohit() { run_test( &TEST_DATA, "harfbuzz/good-lohit.or", "oriya/lohit_or.ttf", &[JOINER_GLYPH_INDEX], 24, ); }
rust_cleaned_test_functions.jsonl/91163
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5560, 22492, 368, 341, 394, 1598, 4452, 1006, 503, 609, 10033, 7896, 345, 503, 330, 12982, 10798, 8889, 4846, 1386, 26480, 22492, 24282, 756, 503, 330, 13601, 7755, 14, 385, 22492, 8734, 45192, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_banking_stage_shutdown1() { let genesis_block = create_genesis_block(2).genesis_block; let bank = Arc::new(Bank::new(&genesis_block)); let (verified_sender, verified_receiver) = channel(); let (vote_sender, vote_receiver) = channel(); let ledger_path = get...
rust_cleaned_test_functions.jsonl/53027
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 622 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 32334, 35238, 54804, 16, 368, 341, 286, 1077, 59366, 7113, 284, 1855, 16322, 13774, 7113, 7, 17, 568, 77894, 7113, 280, 286, 1077, 6073, 284, 19689, 486, 931, 5349, 1180, 486, 931, 2099, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_log_level() { assert_eq!(Some(LogLevel::Error), LogLevelFilter::Error.to_log_level()); assert_eq!(None, LogLevelFilter::Off.to_log_level()); assert_eq!(Some(LogLevel::Debug), LogLevelFilter::Debug.to_log_level()); }
rust_cleaned_test_functions.jsonl/73935
{ "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, 2346, 5224, 8274, 368, 341, 260, 2060, 10714, 10297, 8373, 94931, 486, 1454, 701, 63321, 5632, 486, 1454, 2389, 5224, 8274, 1423, 260, 2060, 10714, 10297, 4064, 11, 63321, 5632, 486, 4596, 2389, 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
#[test] fn test_median_robust_on_infinities() { let data3 = [2.0, f64::NEG_INFINITY, f64::INFINITY]; let data3 = Data::new(data3); assert_eq!(data3.median(), 2.0); assert_eq!(data3.median(), 2.0); let data3 = [f64::NEG_INFINITY, 2.0, f64::INFINITY]; let data3 = D...
rust_cleaned_test_functions.jsonl/81934
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 432 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 83003, 62, 22740, 590, 4470, 1243, 5472, 1361, 368, 341, 286, 1077, 821, 18, 284, 508, 17, 13, 15, 11, 282, 21, 19, 486, 97127, 91110, 11, 282, 21, 19, 486, 687, 55990, 935, 286, 1077, 821, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_missing_option() { let err = OptParseError::missing_option("--abc"); let thing = format!("{}", err); let expect = "Missing option: --abc"; assert_eq!(thing, expect); }
rust_cleaned_test_functions.jsonl/8271
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40447, 9672, 368, 341, 286, 1077, 1848, 284, 16554, 14463, 1454, 486, 30616, 9672, 21549, 13683, 797, 286, 1077, 3166, 284, 3561, 79878, 1848, 317, 286, 1077, 1720, 284, 330, 25080, 2999, 25, 1177...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_log_replication() { let l = default_logger(); let mut tests = vec![ ( Network::new(vec![None, None, None], &l), vec![new_message(1, 1, MessageType::MsgPropose, 1)], 2, ), ( Network::new(vec![None, None, None], &l), ...
rust_cleaned_test_functions.jsonl/19093
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1001 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5224, 25533, 1693, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 5206, 7032, 284, 7486, 90515, 286, 2399, 310, 8141, 486, 931, 25592, 20703, 4064, 11, 2240, 11, 2240, 1125, 609, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_property_sheet_with_array_by_declaring_property_multiple_times() { let sheet = generate_property_sheet( "foo.css", " a { b: 'foo'; b: 'bar'; b: 'baz'; c: f(g()); ...
rust_cleaned_test_functions.jsonl/45088
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 736 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16638, 43112, 6615, 3858, 3710, 35814, 3249, 16638, 45233, 22353, 368, 341, 286, 1077, 10834, 284, 6923, 16638, 43112, 1006, 310, 330, 7975, 4327, 756, 310, 6228, 394, 264, 341, 1698, 293, 25, 364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encode_then_decode_v1() { assert_eq!( encode_then_decode( Protocol::Status, Version::V1, RPCCodedResponse::Success(RPCResponse::Status(status_message())) ), Ok(Some(RPCResponse::Status(status_message())))...
rust_cleaned_test_functions.jsonl/57905
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1712 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 68367, 15227, 2273, 16, 368, 341, 286, 2060, 10714, 33673, 310, 16164, 68367, 15227, 1006, 394, 24572, 486, 2522, 345, 394, 6079, 486, 53, 16, 345, 394, 41461, 3706, 6737, 2582, 486, 7188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_array_out_of_range_negative() { let c: Result<Color, _> = [-10, -256, -1].try_into(); assert_eq!(c, Err(IntoColorError::IntConversion)); }
rust_cleaned_test_functions.jsonl/757
{ "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, 3858, 6068, 3575, 9698, 53865, 368, 341, 286, 1077, 272, 25, 5714, 88827, 11, 716, 29, 284, 10055, 16, 15, 11, 481, 17, 20, 21, 11, 481, 16, 936, 1539, 45514, 543, 286, 2060, 10714, 10297, 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
#[test] fn test_notify_limits() { let chanmon_cfgs = create_chanmon_cfgs(3); let node_cfgs = create_node_cfgs(3, &chanmon_cfgs); let node_chanmgrs = create_node_chanmgrs(3, &node_cfgs, &[None, None, None]); let nodes = create_network(3, &node_cfgs, &node_chanmgrs); let mut chan = create_announc...
rust_cleaned_test_functions.jsonl/79989
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 918 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36654, 31820, 368, 341, 18363, 197, 10217, 26023, 1645, 18343, 82, 284, 1855, 45552, 1645, 18343, 82, 7, 18, 317, 197, 10217, 2436, 18343, 82, 284, 1855, 5084, 18343, 82, 7, 18, 11, 609, 5658, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_remote_crate() -> Result<(), Error> { combined_keys_gen!(sender_combined_key, receiver_combined_key); let shared_key = SharedKey::generate(); mod other_crate { // Neither Serde nor the other crate provides Serialize and Deserialize // impls for this struct. ...
rust_cleaned_test_functions.jsonl/31591
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 708 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36425, 666, 7698, 368, 1464, 5714, 68843, 4600, 29, 341, 262, 10856, 12631, 16322, 10297, 11644, 89945, 3097, 11, 13964, 89945, 3097, 317, 262, 1077, 6094, 3097, 284, 16990, 1592, 486, 19366, 1428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_eval_derivative_ood() { let quad = BoundedQuadratic::new(0., 3., 1., 1., 1.); assert!(!quad.eval_derivative(-1.).is_finite()); }
rust_cleaned_test_functions.jsonl/19881
{ "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, 21296, 95930, 62, 1386, 368, 341, 286, 1077, 27082, 284, 425, 13082, 2183, 88678, 486, 931, 7, 15, 2572, 220, 18, 2572, 220, 16, 2572, 220, 16, 2572, 220, 16, 58957, 286, 2060, 0, 3471, 31610,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_write_file() { let dir = tempfile::Builder::new() .prefix("test_write_file") .tempdir() .unwrap(); let fs = SyncPoxisFileSystem {}; let mut f = fs .open_writable_file_writer(dir.path().join("sst")) .unwrap(); ...
rust_cleaned_test_functions.jsonl/86499
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 636 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 2458, 368, 341, 286, 1077, 5419, 284, 54819, 486, 3297, 486, 931, 741, 310, 659, 11849, 445, 1944, 9165, 2458, 1138, 310, 659, 3888, 3741, 741, 310, 659, 15454, 543, 286, 1077, 8619, 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_month_name() { let cases = vec![ (None, None, None), ( Some("0000-00-00 00:00:00"), Some(ERR_TRUNCATE_WRONG_VALUE), None, ), ( Some("2018-01-00 01:01:01"), Some...
rust_cleaned_test_functions.jsonl/36251
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1220 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18933, 1269, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 4064, 11, 2240, 11, 2240, 1326, 310, 2399, 394, 4329, 445, 15, 15, 15, 15, 12, 15, 15, 12, 15, 15, 220, 15, 15, 25, 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...
3
#[test] fn test_install_backup_short_no_args_file_to_dir() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; let file = "test_install_simple_backup_file_a"; let dest_dir = "test_install_dest/"; let expect = format!("{}{}", dest_dir, file); at.touch(file); at....
rust_cleaned_test_functions.jsonl/47043
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34245, 44710, 16673, 6536, 8384, 2458, 2346, 4334, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785, 18513, 401, 262, 1077, 1034,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_id_midstate() { let midstate = tagged_hash::Midstate::with(b"rgb:schema"); assert_eq!(midstate.into_inner(), MIDSTATE_SHEMA_ID); }
rust_cleaned_test_functions.jsonl/193
{ "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, 25371, 842, 43733, 2454, 368, 341, 286, 1077, 5099, 2454, 284, 37113, 8950, 486, 33648, 2454, 486, 4197, 1883, 1, 16509, 14495, 3416, 797, 286, 2060, 10714, 10297, 16106, 2454, 39860, 34345, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_consume_message() { let tests = vec![ MessageTestCase { input: "From: \"Joe Blogs\" <joe@example.org>\r\n\r\nBody", headers: vec![ ("From", "\"Joe Blogs\" <joe@example.org>"), ], body: "Body",...
rust_cleaned_test_functions.jsonl/69098
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1845 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3382, 31323, 6462, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 4856, 16458, 341, 394, 1946, 25, 330, 3830, 25, 7245, 40344, 75236, 2105, 366, 73, 4644, 35487, 2659, 8449, 81, 1699, 12016, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_get_platform_properties_missing_element() { let root = Element::from_reader(ONLY_ROOT_NODE.as_bytes()).unwrap(); assert!(Unreal4ContextPlatformProperties::from_xml(&root).is_none()); }
rust_cleaned_test_functions.jsonl/28092
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 34260, 25158, 40447, 7894, 368, 341, 262, 1077, 3704, 284, 8543, 486, 1499, 22306, 7, 31092, 16197, 19218, 5357, 12524, 6011, 15454, 543, 262, 2060, 10297, 1806, 7951, 19, 1972, 17296, 7903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_pp_types_empty() { let string = "[ [ ] ( ) #{ } { }, \"\" ]"; let data = parse::value(string).unwrap().without_spans(); assert_eq!(data.to_pretty(40).unwrap(), "[[] () #{} {} \"\"]"); }
rust_cleaned_test_functions.jsonl/97798
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 111 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31600, 9763, 15124, 368, 341, 286, 1077, 914, 284, 10545, 508, 2279, 320, 873, 11273, 335, 314, 2470, 7245, 2105, 2279, 876, 286, 1077, 821, 284, 4715, 486, 957, 3609, 568, 15454, 1005, 28996, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_set_freezer_state() { let tmp = create_temp_dir("test_set_freezer_state").expect("create temp directory for test"); set_fixture(&tmp, CGROUP_FREEZER_STATE, "").expect("Set fixure for freezer state"); // set Frozen state. { let freezer_stat...
rust_cleaned_test_functions.jsonl/55983
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 717 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 8905, 7070, 4387, 368, 341, 286, 1077, 4174, 4035, 310, 1855, 11771, 4334, 445, 1944, 2602, 8905, 7070, 4387, 1827, 17119, 445, 3182, 2730, 6220, 369, 1273, 797, 286, 738, 74409, 2099, 5173,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_syn_sent_syn_ack() { let mut s = socket_syn_sent(); recv!(s, [TcpRepr { control: TcpControl::Syn, seq_number: LOCAL_SEQ, ack_number: None, max_seg_size: Some(BASE_MSS), ..RECV_TEMPL }]); send!(s, TcpRe...
rust_cleaned_test_functions.jsonl/1715
{ "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, 51393, 24115, 51393, 48447, 368, 341, 286, 1077, 5206, 274, 284, 7575, 51393, 24115, 543, 286, 27006, 10297, 82, 11, 508, 77536, 693, 649, 341, 310, 2524, 25, 262, 64876, 3273, 486, 37134, 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_parse_normal3_parameter() { let params = match parse_normal3_parameter(FileSpan::new(Rc::new(String::from("\"normal3 test\" [20.5 10 0]")), Rc::new(String::from("input")))).unwrap().1 { Parameter::Normal3(i) => i, _ => panic!() }; assert_eq!(params.values.len(), 1); ...
rust_cleaned_test_functions.jsonl/68364
{ "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, 21039, 13973, 18, 24899, 368, 341, 262, 1077, 3628, 284, 2432, 4715, 13973, 18, 24899, 19821, 12485, 486, 931, 2785, 66, 486, 931, 2242, 486, 1499, 38915, 8252, 18, 1273, 2105, 508, 17, 15, 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...
3
#[test] fn test_vector_6() { let address = "DdzFFzCqrhsfi5fFjJUHYPSnfTYrnMohzh3PrrtrVQgwua33HWPKUdTJXo3o77pSGCmDNrjYaAiZmJddaPW9iHyUDatvU2WhX7MgnNMy".parse().unwrap(); let public_key = XPub::from_bytes([ 0x2a, 0x6a, 0xd1, 0x51, 0x09, 0x96, 0xff, 0x2d, 0x10, 0x89, 0xcb, 0x8e, 0xd5, 0x...
rust_cleaned_test_functions.jsonl/1898
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 501 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12247, 62, 21, 368, 341, 286, 1077, 2621, 284, 330, 35, 37877, 1748, 89, 34, 23004, 4997, 9983, 20, 69, 37, 73, 41, 52, 48852, 5012, 31737, 22098, 35622, 82605, 23815, 18, 47, 634, 376, 53, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_a2dp_version_check() { let p1: ProfileDescriptor = ProfileDescriptor { profile_id: ServiceClassProfileIdentifier::AdvancedAudioDistribution, major_version: 1, minor_version: 3, }; let res = a2dp_version_check(p1); assert_eq!(tru...
rust_cleaned_test_functions.jsonl/125261
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 693 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4306, 17, 9796, 9438, 7200, 368, 341, 286, 1077, 281, 16, 25, 12329, 11709, 284, 12329, 11709, 341, 310, 5526, 842, 25, 5362, 1957, 8526, 8714, 486, 35457, 14755, 62377, 345, 310, 3598, 9438, 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_errors(){ init!("false"); assert_eq!(get_sequence_num(145661).err(), Some(SchemaError::CommonError(error::INVALID_OBJ_HANDLE.code_num))); assert_eq!(to_string(13435178).err(), Some(SchemaError::CommonError(error::INVALID_OBJ_HANDLE.code_num))); let test: Result<Le...
rust_cleaned_test_functions.jsonl/29697
{ "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, 20196, 3032, 286, 2930, 17223, 3849, 797, 286, 2060, 10714, 10297, 455, 23735, 4273, 7, 16, 19, 20, 21, 21, 16, 568, 615, 1507, 4329, 3759, 3416, 1454, 486, 10839, 1454, 6390, 486, 46859, 27559,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_delta_with_no_committables() { let (genesis_block, mint_keypair) = GenesisBlock::new(8000); let bank = Bank::new(&genesis_block); bank.is_delta.store(false, Ordering::Relaxed); let keypair1 = Keypair::new(); let keypair2 = Keypair::new(); let f...
rust_cleaned_test_functions.jsonl/41914
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 615 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 26710, 6615, 6536, 2965, 23692, 4788, 368, 341, 286, 1077, 320, 77894, 7113, 11, 28337, 3097, 12670, 8, 284, 40788, 4713, 486, 931, 7, 23, 15, 15, 15, 317, 286, 1077, 6073, 284, 8547, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_f32_f64() { binary_cast_test( DataType::Float32, DataType::Float64, "CAST(#0 AS Float64) Plus #1", ); binary_cast_test( DataType::Float64, DataType::Float32, "#0 Plus CAST(#1 AS Float64)", ...
rust_cleaned_test_functions.jsonl/16558
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 761, 18, 17, 761, 21, 19, 368, 341, 286, 7868, 5303, 4452, 1006, 310, 33172, 486, 5442, 18, 17, 345, 310, 33172, 486, 5442, 21, 19, 345, 310, 330, 34163, 32735, 15, 5752, 13001, 21, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wrap_nopad_invalid_key_length() { let pt = hex!("000102030405060708090a0b0c0d0e0f").to_vec(); let key = hex!("000102030405060708090a0b0c0d0e").to_vec(); let ct = aes_wrap_with_nopadding(&pt, &key); assert!(ct.is_err(), "Invalid key length erroneously passed"); ...
rust_cleaned_test_functions.jsonl/15904
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38550, 1089, 453, 329, 31433, 3097, 5118, 368, 341, 286, 1077, 10817, 284, 12371, 17223, 15, 15, 15, 16, 15, 17, 15, 18, 15, 19, 15, 20, 15, 21, 15, 22, 15, 23, 15, 24, 15, 64, 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_rsa() { let rng = botan::RandomNumberGenerator::new_system().unwrap(); let padding = "EMSA-PKCS1-v1_5(SHA-256)"; let msg = rng.read(32).unwrap(); let privkey = botan::Privkey::create("RSA", "1024", &rng).unwrap(); let pubkey = privkey.pubkey().unwrap(); assert_eq!(priv...
rust_cleaned_test_functions.jsonl/95304
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 513 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82522, 368, 341, 262, 1077, 28422, 284, 10924, 276, 486, 13999, 2833, 12561, 486, 931, 17687, 1005, 15454, 1428, 262, 1077, 5300, 284, 330, 2716, 7778, 9299, 42, 6412, 16, 8273, 16, 62, 20, 3759...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_resolve_module_referrer_dot() { let (_temp_dir, deno_dir) = test_setup(); let specifier = "tests/001_hello.js"; let cwd = std::env::current_dir().unwrap(); let expected_path = cwd.join(specifier); let expected_module_name = deno_fs::normalize_path(&expected_path); let e...
rust_cleaned_test_functions.jsonl/72759
{ "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, 77291, 10750, 7793, 30929, 30941, 368, 341, 262, 1077, 5453, 3888, 4334, 11, 3371, 78, 4334, 8, 284, 1273, 21363, 1428, 262, 1077, 97616, 284, 330, 23841, 14, 15, 15, 16, 96724, 2857, 3302, 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_zero_terminated_negative_lines() { new_ucmd!() .args(&["-z", "-n", "-1"]) .pipe_in("x\0y\0z\0") .run() .stdout_is("x\0y\0"); }
rust_cleaned_test_functions.jsonl/32768
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19359, 62, 68659, 53865, 18323, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 89, 497, 6523, 77, 497, 6523, 16, 14108, 286, 659, 13768, 1243, 445, 87, 59, 15, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_propagation_complex() { let writer = WriterId::new(1u8); let model = &mut Model::new(); let a = model.new_bvar("a"); let b = model.new_bvar("b"); let c = model.new_bvar("c"); let d = model.new_bvar("d"); let check_values = |model: &Model, ...
rust_cleaned_test_functions.jsonl/55205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1212 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21663, 27137, 41522, 368, 341, 286, 1077, 6916, 284, 29404, 764, 486, 931, 7, 16, 84, 23, 317, 286, 1077, 1614, 284, 609, 6984, 4903, 486, 931, 543, 286, 1077, 264, 284, 1614, 4618, 880, 947, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_calc_ref_ends() { let transform_wk = arr2( &[[1., 0., 0., -2.], [0., 1., 0., 0.], [0., 0., 1., 7.], [0., 0., 0., 1.]] ); let transform_wr = arr2( &[[1., 0., 0., 6.], [0., 1., 0., 0.], ...
rust_cleaned_test_functions.jsonl/73550
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 575 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38241, 7793, 90729, 368, 341, 286, 1077, 5165, 1670, 74, 284, 2890, 17, 1006, 310, 609, 15505, 16, 2572, 220, 15, 2572, 220, 15, 2572, 481, 17, 13, 1259, 1060, 508, 15, 2572, 220, 16, 2572, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_corruption_on_size_or_checksum() { let region_id = 1; let region = gen_test_region(region_id, 1, 1); let db_dir = Builder::new() .prefix("test-snap-corruption-db") .tempdir() .unwrap(); let db = open_test_db(&db_dir.path(),...
rust_cleaned_test_functions.jsonl/41921
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2036 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74175, 14734, 14123, 4470, 2368, 8734, 64038, 368, 341, 286, 1077, 5537, 842, 284, 220, 16, 280, 286, 1077, 5537, 284, 4081, 4452, 20627, 48059, 842, 11, 220, 16, 11, 220, 16, 317, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ubx_packet_recv_dyn_len() { let src_code = quote! { #[ubx_packet_recv] #[ubx(class = 1, id = 2, max_payload_len = 38)] struct Test { #[ubx(map_type = &str, get_as_ref, from = unpack_str)] f1: [u8; 8], rest: [u8; 0], } };...
rust_cleaned_test_functions.jsonl/16493
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1445 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66794, 87, 21078, 36118, 69213, 6043, 368, 341, 262, 1077, 2286, 4136, 284, 12641, 0, 341, 286, 11506, 392, 87, 21078, 36118, 921, 286, 11506, 392, 87, 21956, 284, 220, 16, 11, 877, 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...
1
#[test] fn test_ts18661_float() { use parser::declaration; assert_eq!( declaration("_Float64 foo = 1.5;", &mut Env::new()), Ok(Declaration { specifiers: vec![TS18661FloatType { format: TS18661FloatFormat::BinaryInterchange, width: 64, ...
rust_cleaned_test_functions.jsonl/107582
{ "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, 25023, 16, 23, 21, 21, 16, 17586, 368, 341, 262, 990, 6729, 486, 80383, 280, 262, 2060, 10714, 33673, 286, 18004, 16975, 5442, 21, 19, 15229, 284, 220, 16, 13, 20, 32503, 609, 6984, 37039, 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_offline_stake_delegation_and_deactivation() { panoptes_logger::setup(); let mint_keypair = Keypair::new(); let mint_pubkey = mint_keypair.pubkey(); let faucet_addr = run_local_faucet(mint_keypair, None); let test_validator = TestValidator::with_no_fees(mint_pubkey, Some(fauc...
rust_cleaned_test_functions.jsonl/45362
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13651, 1056, 1261, 726, 2259, 87566, 8378, 2259, 23002, 368, 341, 262, 7215, 2912, 288, 27413, 486, 15188, 1428, 262, 1077, 28337, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 543, 262, 1077, 283...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_16() { use randombytes::randombytes_into; for _ in 0usize..256 { let mut x = [0; 16]; let mut y = [0; 16]; assert!(verify_16(&x, &y)); randombytes_into(&mut x); randombytes_into(&mut y); if x == y { ...
rust_cleaned_test_functions.jsonl/26521
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 62, 16, 21, 368, 341, 286, 990, 4194, 9651, 486, 11463, 9651, 45514, 401, 286, 369, 716, 304, 220, 15, 51878, 496, 17, 20, 21, 341, 310, 1077, 5206, 856, 284, 508, 15, 26, 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...
3
#[test] fn test_format_message() { let mut msg = Message::new("measurement"); msg.insert_tag("tag1", "1"); msg.insert_tag("tag2", "2"); msg.insert_metric("field1", "1"); msg.insert_metric("field2", "2"); assert_eq!( Stdout::format_message(&msg), ...
rust_cleaned_test_functions.jsonl/67351
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 275 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8955, 6462, 368, 341, 286, 1077, 5206, 3750, 284, 4856, 486, 931, 445, 81425, 797, 286, 3750, 7030, 9372, 445, 4578, 16, 497, 330, 16, 797, 286, 3750, 7030, 9372, 445, 4578, 17, 497, 330, 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_scaling_user_fee_by_two() { let provided_fee = BigDecimal::from_str("0.005").unwrap(); let provided_fee_scaled_by_two = BigDecimal::from_str("0.01").unwrap(); let scaled_fee = scale_user_fee_up(provided_fee); assert_eq!(provided_fee_scaled_by_two, scaled_fee); ...
rust_cleaned_test_functions.jsonl/19256
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 147 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79216, 3317, 34305, 3710, 23241, 368, 341, 286, 1077, 3897, 34305, 284, 20618, 486, 1499, 2895, 445, 15, 13, 15, 15, 20, 1827, 15454, 543, 286, 1077, 3897, 34305, 61715, 3710, 23241, 284, 20618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lerp() { let tol = 1e-12; let r1 = lerp(0.0, 3.0, 0.5); assert!(approx_eq(r1, 1.5, tol)); let r2 = lerp(0.0, 3.0, 0.0); assert!(approx_eq(r2, 0.0, tol)); let r3 = lerp(8.0, 9.0, 0.5); assert!(approx_eq(r3, 8.5, tol)); let r4 = l...
rust_cleaned_test_functions.jsonl/97676
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 256 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 22632, 368, 341, 286, 1077, 38574, 284, 220, 16, 68, 12, 16, 17, 401, 286, 1077, 435, 16, 284, 326, 22632, 7, 15, 13, 15, 11, 220, 18, 13, 15, 11, 220, 15, 13, 20, 317, 286, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cpx() { let mut r = Register::new(); let mut b = MockBus::new(); r.set_X(0x40); b.memory[0x80] = 0x50; cpx(0x80, &mut r, &mut b); assert_eq!(r.get_status_negative(), true); assert_eq!(r.get_status_carry(), false) }
rust_cleaned_test_functions.jsonl/14204
{ "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, 666, 1767, 368, 341, 262, 1077, 5206, 435, 284, 8451, 486, 931, 543, 262, 1077, 5206, 293, 284, 14563, 15073, 486, 931, 543, 262, 435, 980, 6859, 7, 15, 87, 19, 15, 317, 262, 293, 36611, 58,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_perspective_fov() { let vfov = Degrees(72.0); let aspect = 800 as f32 / 600 as f32; let near = 0.1; let far = 100.0; let expected = Matrix4x4::new( 1.0322863, 0.0, 0.0, 0.0, 0.0, 1.3763818, 0.0, 0.0, ...
rust_cleaned_test_functions.jsonl/129134
{ "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, 5673, 620, 85091, 761, 859, 368, 341, 286, 1077, 348, 85582, 284, 92901, 7, 22, 17, 13, 15, 317, 286, 1077, 12893, 284, 220, 23, 15, 15, 438, 282, 18, 17, 608, 220, 21, 15, 15, 438, 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...
1
#[test] fn test_scroll_up_down() { let t = [ "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ]; let texts = gen_texts(&t); let mut pane = gen_pane!(OpenOptions::new().write(true).open("/dev/null").unwrap()); pane.load(texts.clon...
rust_cleaned_test_functions.jsonl/1678
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1621 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41407, 8237, 13998, 368, 341, 286, 1077, 259, 284, 2278, 310, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 7342, 8324, 286, 9747, 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_load_app() { block_on(async { let app_set = AppSet::new(vec![App::builder( "{00000000-0000-0000-0000-000000000001}", [1, 2, 3, 4], ) .build()]); let mut storage = MemStorage::new(); let persisted_...
rust_cleaned_test_functions.jsonl/59699
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 697 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 8191, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 906, 2602, 284, 1845, 1649, 486, 931, 25592, 20703, 2164, 486, 17850, 1006, 394, 13868, 15, 15, 15, 15, 15, 15, 15, 15, 12, 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_deserialize_snapshot_data_file_extra_data() { let expected_data = 2323_u32; let expected_consumed_size = size_of::<u32>() as u64; let temp_dir = tempfile::TempDir::new().unwrap(); serialize_snapshot_data_file_capped( &temp_dir.path().join("data-file")...
rust_cleaned_test_functions.jsonl/53296
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 468 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 53265, 1769, 2458, 31858, 1769, 368, 341, 286, 1077, 3601, 1769, 284, 220, 17, 18, 17, 18, 7300, 18, 17, 280, 286, 1077, 3601, 69870, 291, 2368, 284, 1379, 3575, 27638, 84, 18, 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...
5
#[test] fn test_long_format_o_default() { assert_eq!( parse_format_flags_str(&vec!["od", "--format=o"]).unwrap(), vec![FORMAT_ITEM_OCT32] ); }
rust_cleaned_test_functions.jsonl/112176
{ "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, 17799, 8955, 14179, 9993, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 8955, 14130, 2895, 2099, 4083, 0, 1183, 347, 497, 14482, 2243, 85876, 45014, 15454, 3148, 286, 7486, 20703, 46559, 16461, 2232...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_no_headers() { let multipart = Multipart::with_body(mock_stream(&[b"--boundary", b"\r\n", b"\r\n", b"--boundary--"]), BOUNDARY); pin_mut!(multipart); ready_assert_ok_eq!(|cx| multipart.as_mut().poll_has_next_field(cx), true); until_ready!(|cx| multipart.as_mut().p...
rust_cleaned_test_functions.jsonl/118933
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 26719, 368, 341, 286, 1077, 68058, 284, 386, 18204, 486, 4197, 14114, 30389, 12673, 2099, 58, 65, 74757, 65180, 497, 293, 11934, 81, 1699, 497, 293, 11934, 81, 1699, 497, 293, 74757, 65180, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_basic_message_build_works() { let basic_message: BasicMessage = BasicMessage::default() .set_content(_content()) .set_time() .set_default_localization(); assert_eq!(_content(), basic_message.content); }
rust_cleaned_test_functions.jsonl/48425
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 126 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 6462, 20801, 11498, 82, 368, 341, 286, 1077, 6770, 6462, 25, 14625, 2052, 284, 14625, 2052, 486, 2258, 741, 310, 659, 746, 7495, 2490, 1796, 2398, 310, 659, 746, 3009, 741, 310, 659, 746,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_err() { Python::with_gil(|py| { if let Err(err) = PyByteArray::from(py, &py.None()) { assert!(err.is_instance::<exceptions::PyTypeError>(py)); } else { panic!("error"); } }); }
rust_cleaned_test_functions.jsonl/47844
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 9266, 368, 341, 286, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 310, 421, 1077, 15495, 3964, 8, 284, 5355, 18394, 486, 1499, 46827, 11, 609, 3288, 18475, 2140, 341, 394, 2060, 1029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_id_to_str() { use super::metadata::MetadataID::*; assert_eq!(metadata::id_to_str(FNM), "FNM"); assert_eq!(metadata::id_to_str(SNM), "SNM"); assert_eq!(metadata::id_to_str(FSZ), "FSZ"); assert_eq!(metadata::id_to_str(FDT), "FDT"); assert_eq!(metadata::id_to_str(SDT), "SDT...
rust_cleaned_test_functions.jsonl/24709
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 842, 2346, 2895, 368, 341, 262, 990, 2256, 486, 17637, 486, 14610, 915, 79304, 262, 2060, 10714, 10297, 17637, 486, 307, 2346, 2895, 7832, 37325, 701, 330, 37, 37325, 797, 262, 2060, 10714, 10297,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_base64() { let mut reader = Reader::init("base64, T WE=;xxx"); assert_eq!( base64(&mut reader).unwrap(), Base64 { space0: Whitespace { value: String::from(" "), source_info: SourceInfo::init(1, 8, 1...
rust_cleaned_test_functions.jsonl/119592
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 401 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7651, 21, 19, 368, 341, 286, 1077, 5206, 6604, 284, 25166, 486, 2327, 445, 3152, 21, 19, 11, 220, 350, 19677, 28, 26, 24048, 797, 286, 2060, 10714, 33673, 310, 2331, 21, 19, 2099, 6984, 6604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_linear() { assert_eq!(linear(&mut [0, 0], &[0, 0], &[200, 0], 0.25), &[50, 0]); assert_eq!(linear(&mut [0, 0], &[0, 0], &[200, 0], 0.5), &[100, 0]); assert_eq!(linear(&mut [0, 0], &[0, 0], &[200, 0], 0.75), &[150, 0]); }
rust_cleaned_test_functions.jsonl/67711
{ "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, 40674, 368, 341, 262, 2060, 10714, 10297, 22763, 2099, 6984, 508, 15, 11, 220, 15, 1125, 44590, 15, 11, 220, 15, 1125, 44590, 17, 15, 15, 11, 220, 15, 1125, 220, 15, 13, 17, 20, 701, 44590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_emit_movl_memq_reg() { assert_emit!(0x8b, 0x44, 0x24, 1; emit_movl_memq_reg(RSP, 1, RAX)); assert_emit!(0x8b, 0x04, 0x24; emit_movl_memq_reg(RSP, 0, RAX)); assert_emit!(0x44, 0x8b, 0x45, 0; emit_movl_memq_reg(RBP, 0, R8)); assert_emit!(0x8b, 0x05, 0, 0, 0, 0; em...
rust_cleaned_test_functions.jsonl/85436
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69082, 55798, 75, 12976, 80, 4920, 368, 341, 286, 2060, 69082, 10297, 15, 87, 23, 65, 11, 220, 15, 87, 19, 19, 11, 220, 15, 87, 17, 19, 11, 220, 16, 26, 16691, 55798, 75, 12976, 80, 4920, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_with_csv_plan() -> Result<()> { let testdata = arrow_testdata_path(); let path = format!("{}/csv/aggregate_test_100.csv", testdata); let options = CsvReadOptions::new().schema_infer_max_records(100); let logical_plan = LogicalPlanBuilder::scan_csv(&path, options,...
rust_cleaned_test_functions.jsonl/15408
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 14020, 26564, 368, 1464, 5714, 71698, 341, 286, 1077, 1273, 691, 284, 17921, 4452, 691, 2638, 543, 286, 1077, 1815, 284, 3561, 88928, 4472, 18104, 14, 59606, 4452, 62, 16, 15, 15, 11219, 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...
5
#[test] fn test_gcs_credential_provider() { const EXPIRE_TIME: &str = "3000-01-01T00:00:00.0Z"; let addr = ([127, 0, 0, 1], 3000).into(); let make_service = || { hyper::service::service_fn_ok(|_| { let token = serde_json::json!({ "accessToken": "1234567890", ...
rust_cleaned_test_functions.jsonl/77536
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 643 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 4837, 666, 30320, 29518, 368, 341, 262, 733, 4063, 1893, 787, 10051, 25, 609, 495, 284, 330, 18, 15, 15, 15, 12, 15, 16, 12, 15, 16, 51, 15, 15, 25, 15, 15, 25, 15, 15, 13, 15, 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...
2
#[test] fn test_array_auto_size() { compare_stderr_output( r#" package main func main() { x := [...]int{2, 3, 4, 5} println(x) println(len(x)) var y [4][4]int = [...][4]int{ [4]int{1, 2, 3, 4}, [4]int{1, 2, 5, 7}, x, x, } println(y) print...
rust_cleaned_test_functions.jsonl/32006
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 286 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 27740, 2368, 368, 341, 262, 9429, 93033, 7645, 1006, 286, 435, 2, 698, 1722, 1887, 271, 2830, 1887, 368, 341, 262, 856, 1669, 48179, 396, 90, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_error() { let mut client = RetryDnsHandle::new( TestClient { last_succeed: false, retries: 1, attempts: Arc::new(AtomicU16::new(0)), }, 2, ); let test1 = Message::new(); assert!(bl...
rust_cleaned_test_functions.jsonl/90301
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4096, 368, 341, 286, 1077, 5206, 2943, 284, 78870, 35, 4412, 6999, 486, 931, 1006, 310, 3393, 2959, 341, 394, 1537, 643, 29264, 25, 895, 345, 394, 60601, 25, 220, 16, 345, 394, 13553, 25, 1968...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_outline_lvl() { let props = ParagraphProperty::new(); let bytes = props.outline_lvl(1).build(); assert_eq!( str::from_utf8(&bytes).unwrap(), r#"<w:pPr><w:rPr /><w:outlineLvl w:val="1" /></w:pPr>"# ) }
rust_cleaned_test_functions.jsonl/67556
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 157 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 72980, 67975, 368, 341, 286, 1077, 6914, 284, 49351, 3052, 486, 931, 543, 286, 1077, 5820, 284, 6914, 2532, 1056, 67975, 7, 16, 568, 5834, 543, 286, 2060, 10714, 33673, 310, 607, 486, 1499, 3945...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_random_normal_initializer() { let mut context = Scope::new(); let init = random_normal_initializer(&mut context, 0.0_f32, 1.0, None, [2, 2].as_ref()).unwrap(); let var = context .get_variable_with_initializer(init, true, "") .unwrap(); let results = test...
rust_cleaned_test_functions.jsonl/96396
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 182 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22644, 13973, 36462, 368, 341, 262, 1077, 5206, 2266, 284, 34920, 486, 931, 1428, 262, 1077, 2930, 4035, 286, 4194, 13973, 36462, 2099, 6984, 2266, 11, 220, 15, 13, 15, 761, 18, 17, 11, 220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_repo_to_configuration() { let toml_str = r#" clone_path = "/path" repositories = [ {org = "crvshlab", name="repo1"}, {org = "crvshlab", name="repo2"}, {org = "crvshlab", regex="node-*"}, ] "#; ...
rust_cleaned_test_functions.jsonl/76834
{ "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, 2891, 37784, 2346, 35726, 368, 341, 286, 1077, 311, 1014, 2895, 284, 435, 2, 698, 310, 14715, 2638, 284, 3521, 2343, 698, 310, 49657, 284, 2278, 1060, 314, 1775, 284, 330, 5082, 85, 927, 14380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bitv_set_intersect_with() { // Explicitly 0'ed bits let mut a = BitvSet::from_bitv(Bitv::from_bytes(&[0b10100010])); let mut b = BitvSet::from_bitv(Bitv::from_bytes(&[0b00000000])); let c = a.clone(); a.intersect_with(&b); b.intersect_with(&c); ...
rust_cleaned_test_functions.jsonl/119314
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 521 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 85, 2602, 72747, 6615, 368, 341, 286, 442, 31330, 398, 220, 15, 6, 291, 9472, 198, 286, 1077, 5206, 264, 284, 6495, 85, 1649, 486, 1499, 13996, 85, 68653, 85, 486, 1499, 12524, 2099, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wrong_argument_arity() -> oso::Result<()> { common::setup(); let mut oso = OsoTest::new(); #[derive(PolarClass)] struct Foo; impl Foo { fn a(&self, x: i64) -> i64 { x } } let foo_class = Foo::get_polar_class_builder() .add_metho...
rust_cleaned_test_functions.jsonl/5010
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 494 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75198, 9025, 62, 10748, 368, 1464, 297, 704, 486, 2077, 71698, 341, 262, 4185, 486, 15188, 1428, 262, 1077, 5206, 297, 704, 284, 506, 704, 2271, 486, 931, 1428, 262, 11506, 27098, 5304, 7417, 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_get_sys_proxies_parsing() { // Stop other threads from modifying process-global ENV while we are. let _lock = ENVLOCK.lock(); // save system setting first. let _g1 = env_guard("HTTP_PROXY"); let _g2 = env_guard("http_proxy"); // to avoid ...
rust_cleaned_test_functions.jsonl/66498
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 511 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 20344, 2540, 80934, 620, 28598, 368, 341, 286, 442, 14215, 1008, 14564, 504, 46041, 1882, 73319, 32791, 1393, 582, 525, 624, 286, 1077, 716, 1023, 284, 32791, 8044, 21003, 543, 286, 442, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let cases = vec![(vec!["a", "b", "c"], 1, "a"), (vec!["a", "b", "c"], 3, "c")]; for (data, value, expect) in cases { let mut buf = BufferVec::new(); for v in data { buf.push(v) } let e = Enum { ...
rust_cleaned_test_functions.jsonl/28818
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 3904, 368, 341, 286, 1077, 5048, 284, 7486, 0, 9697, 4083, 0, 1183, 64, 497, 330, 65, 497, 330, 66, 7914, 220, 16, 11, 330, 64, 3975, 320, 4083, 0, 1183, 64, 497, 330, 65, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_new() { let vanilla_column_create = ColumnCopyCommand::new("Test".to_string(), "element".to_string(), "NewTest".to_string(), ...
rust_cleaned_test_functions.jsonl/51234
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 426 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 368, 341, 286, 1077, 32065, 8744, 8657, 284, 9332, 12106, 4062, 486, 931, 445, 2271, 3263, 983, 3904, 3148, 32678, 330, 6101, 3263, 983, 3904, 3148, 32678, 330, 3564, 2271, 3263, 983, 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...
1
#[test] fn test_0393_example_2() { let data = vec![235, 140, 4]; let result = false; assert_eq!(Solution::valid_utf8(data), result); }
rust_cleaned_test_functions.jsonl/52269
{ "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, 62, 15, 18, 24, 18, 39304, 62, 17, 368, 341, 286, 1077, 821, 284, 7486, 20703, 17, 18, 20, 11, 220, 16, 19, 15, 11, 220, 19, 935, 286, 1077, 1102, 284, 895, 401, 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
#[test] fn test_aggregate_commitment_validity() { let ancestors = vec![3, 4, 5, 7, 9, 10, 11]; let GenesisConfigInfo { mut genesis_config, .. } = create_genesis_config(10_000); let rooted_stake_amount = 40; let sk1 = solana_sdk::pubkey::new_rand(); l...
rust_cleaned_test_functions.jsonl/9080
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2475 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20587, 14240, 36346, 478, 8337, 487, 368, 341, 286, 1077, 37518, 284, 7486, 20703, 18, 11, 220, 19, 11, 220, 20, 11, 220, 22, 11, 220, 24, 11, 220, 16, 15, 11, 220, 16, 16, 935, 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...
6
#[test] fn test_genesis_transaction_spend() { let tx = TransactionBuilder::default() .witness(Script::default().into_witness()) .input(CellInput::new(OutPoint::null(), 0)) .outputs(vec![ CellOutput::new( capacity_bytes!(100_000_000), Bytes:...
rust_cleaned_test_functions.jsonl/84789
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 813 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16322, 13774, 28884, 643, 3740, 368, 341, 262, 1077, 9854, 284, 17869, 3297, 486, 2258, 741, 286, 659, 86, 8091, 3759, 1228, 486, 2258, 1005, 18122, 1670, 8091, 2398, 286, 659, 1355, 82530, 2505, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_remove() { let name = Name::from_str("www.example.com.").unwrap(); let record_type = RecordType::A; let mut rr_set = RecordSet::new(&name, record_type, 0); let insert = Record::new() .set_name(name.clone()) .set_ttl(86400) .set...
rust_cleaned_test_functions.jsonl/119980
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 553 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 368, 341, 286, 1077, 829, 284, 3988, 486, 1499, 2895, 445, 2136, 7724, 905, 98401, 15454, 543, 286, 1077, 3255, 1819, 284, 13583, 929, 486, 32, 280, 286, 1077, 5206, 34393, 2602, 284, 135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_disconnect() { let mut data: &[u8] = &[0b11100000, 0b00000000]; assert_eq!(Ok(Some(Packet::Disconnect)), decode_slice(&mut data)); }
rust_cleaned_test_functions.jsonl/77902
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 67972, 368, 341, 262, 1077, 5206, 821, 25, 44590, 84, 23, 60, 284, 44590, 15, 65, 16, 16, 16, 15, 15, 15, 15, 15, 11, 220, 15, 65, 15, 15, 15, 15, 15, 15, 15, 15, 935, 262, 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
#[test] fn test_iter_debug() { let path = Path::new("/tmp"); let mut iter = path.iter(); let expected = "Iter([\"/\", \"tmp\"])"; let actual = format!("{:?}", iter); assert_eq!(expected, actual); let _ = iter.next().unwrap(); let expected = "Iter([\"tmp...
rust_cleaned_test_functions.jsonl/19660
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 265 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 15446, 368, 341, 286, 1077, 1815, 284, 7933, 486, 931, 4283, 5173, 3071, 286, 1077, 5206, 5367, 284, 1815, 19471, 1428, 286, 1077, 3601, 284, 330, 8537, 2561, 2105, 14, 16215, 7245, 5173, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_explicit_round_robin_select() { let system = new_kompact_system(); let receivers: Vec<Arc<Component<ReceiverComponent>>> = (0..GROUP_SIZE) .map(|_i| system.create(ReceiverComponent::default)) .collect(); let group_ref = system .set_rou...
rust_cleaned_test_functions.jsonl/32532
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 904 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14214, 6026, 29896, 26608, 6863, 13051, 368, 341, 286, 1077, 1849, 284, 501, 4698, 14435, 531, 17687, 1428, 286, 1077, 39906, 25, 11312, 30192, 1287, 96689, 27, 25436, 2189, 20154, 284, 320, 15, 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...
3
#[test] fn test_dispatch_no_zero_copy_buf() { let (mut runtime, dispatch_count) = setup(Mode::AsyncZeroCopy(false)); runtime .execute_script( "filename.js", r#" Deno.core.opAsync("op_test"); "#, ) .unwrap(); assert_eq!(dispatch_count.load(Ordering::R...
rust_cleaned_test_functions.jsonl/23450
{ "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, 42991, 6536, 19359, 16096, 10363, 368, 341, 262, 1077, 320, 6984, 15592, 11, 6845, 3180, 8, 284, 6505, 3189, 534, 486, 6525, 17999, 12106, 3576, 1106, 262, 15592, 198, 414, 659, 10257, 14660, 1006...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_zero_counts_stats() { let values = vec![1.0, 2.0]; let counts = vec![0, 0]; assert!(stats(&values, &counts).is_none()); }
rust_cleaned_test_functions.jsonl/60629
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19359, 25977, 15381, 368, 341, 286, 1077, 2750, 284, 7486, 20703, 16, 13, 15, 11, 220, 17, 13, 15, 935, 286, 1077, 14579, 284, 7486, 20703, 15, 11, 220, 15, 935, 286, 2060, 10297, 16260, 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
#[test] fn test_codec_datetime() -> Result<()> { let cases = vec![ ("2010-10-10 10:11:11", 0), ("2017-01-01 00:00:00", 0), ("2004-01-01 00:00:00", UNSPECIFIED_FSP), ("2013-01-01 00:00:00.000000", MAX_FSP), ("2019-01-01 00:00:00.123456", MAX_FSP...
rust_cleaned_test_functions.jsonl/40464
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 706 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51084, 28943, 368, 1464, 5714, 71698, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 17, 15, 16, 15, 12, 16, 15, 12, 16, 15, 220, 16, 15, 25, 16, 16, 25, 16, 16, 497, 220, 15, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
#[test] fn test_parse_cie_incomplete_id_32() { let kind = debug_frame_be(); let section = Section::with_endian(kind.endian()) // The length is not large enough to contain the ID. .B32(3) .B32(0xffff_ffff); assert_parse_cie( kind, ...
rust_cleaned_test_functions.jsonl/9296
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 666, 645, 1243, 14737, 842, 62, 18, 17, 368, 341, 286, 1077, 3093, 284, 7390, 8929, 21263, 543, 286, 1077, 3772, 284, 11113, 486, 4197, 87193, 62697, 5073, 1103, 2398, 310, 442, 576, 3084...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cint_vector() { let hdr = indoc! {" #include <vector> #include <cstdint> inline std::vector<int32_t> give_vec() { return std::vector<int32_t> {1,2}; } "}; let rs = quote! { assert_eq!(ffi::give_vec().as_ref().unwrap().as_slice(), &...
rust_cleaned_test_functions.jsonl/9915
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 202 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 396, 12247, 368, 341, 262, 1077, 36615, 284, 1257, 509, 0, 314, 698, 286, 671, 997, 366, 3215, 397, 286, 671, 997, 366, 96975, 397, 286, 7381, 1460, 486, 3215, 4159, 18, 17, 528, 29, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1