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_random() { let sudoku0 = Sudoku::random(42); let sudoku1 = Sudoku::random(42); let sudoku2 = Sudoku::random(100); assert_eq!(sudoku0.grid, sudoku1.grid); assert_ne!(sudoku0.grid, sudoku2.grid); }
rust_cleaned_test_functions.jsonl/58578
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 139 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22644, 368, 341, 286, 1077, 90809, 15, 284, 94254, 486, 11463, 7, 19, 17, 317, 286, 1077, 90809, 16, 284, 94254, 486, 11463, 7, 19, 17, 317, 286, 1077, 90809, 17, 284, 94254, 486, 11463, 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_get_mmds() { let vmm_shared_info = Arc::new(RwLock::new(InstanceInfo { started: false, id: "test_get_mmds".to_string(), vmm_version: "version 0.1.0".to_string(), app_name: "app name".to_string(), })); let to_vmm_fd = EventF...
rust_cleaned_test_functions.jsonl/23175
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 717, 2277, 82, 368, 341, 286, 1077, 348, 3821, 20405, 3109, 284, 19689, 486, 931, 2785, 86, 11989, 486, 931, 7, 2523, 1731, 341, 310, 3855, 25, 895, 345, 310, 877, 25, 330, 1944, 3062, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_train_no_data() { let inputs = Matrix::new(0, 1, vec![]); let targets = Vector::new(vec![]); let mut lin_mod = LinRegressor::default(); let res = lin_mod.train(&inputs, &targets); assert!(res.is_err()); }
rust_cleaned_test_functions.jsonl/69355
{ "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, 7591, 6536, 1769, 368, 341, 262, 1077, 11127, 284, 11631, 486, 931, 7, 15, 11, 220, 16, 11, 7486, 0, 56703, 262, 1077, 11550, 284, 4196, 486, 931, 25592, 0, 1294, 626, 262, 1077, 5206, 9805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_new_entity_table_patient() { let res = ModificationResult { id: "foobar".to_string(), patient_id: "bazqux".to_string(), path: "long_and_rocky".to_string(), entity: EntityKind::Patient, }; let expected_table = " New Pa...
rust_cleaned_test_functions.jsonl/76491
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 204 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 5921, 19169, 5237, 70310, 368, 341, 286, 1077, 592, 284, 73855, 2077, 341, 310, 877, 25, 330, 50267, 3263, 983, 3904, 3148, 310, 8720, 842, 25, 330, 42573, 446, 87, 3263, 983, 3904, 3148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_filetype_debug() { macro_rules! check { ($mask:expr, $s:expr) => { assert_eq!(format!("{:?}", StatFileType { mask: $mask as u32 }), $s); }; } check!(libc::S_IFDIR, "Directory"); check!(libc::S_IFREG, "File"); check!...
rust_cleaned_test_functions.jsonl/43164
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 312 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 1313, 15446, 368, 341, 286, 18072, 21407, 0, 1779, 341, 310, 1711, 11258, 96011, 11, 400, 82, 96011, 8, 589, 341, 394, 2060, 10714, 10297, 2243, 88928, 25, 52652, 12166, 71873, 314, 6911, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_serialization() { use super::FloatCDT; use serde_json; let mut cdt = FloatCDT::with_walk_locate(); cdt.insert([0.1, 12.]); let json = serde_json::to_string(&cdt).unwrap(); let parsed: FloatCDT<[f32; 2], DelaunayWalkLocate> = serde_json::from_str(&...
rust_cleaned_test_functions.jsonl/70763
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25602, 2022, 368, 341, 286, 990, 2256, 486, 5442, 6484, 51, 280, 286, 990, 61570, 9455, 401, 286, 1077, 5206, 272, 8047, 284, 13001, 6484, 51, 486, 4197, 56131, 13400, 349, 543, 286, 272, 8047, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_join_with_array() { let mut output = String::new(); let method = StringMethod { method: "join", variable: "[\"FOO\" \"BAR\"]", pattern: "[\"-\" \"-\"]", selection: Select::All, }; method.handle(&mut output, &Va...
rust_cleaned_test_functions.jsonl/85288
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 197 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31017, 6615, 3858, 368, 341, 286, 1077, 5206, 2550, 284, 923, 486, 931, 543, 286, 1077, 1714, 284, 923, 3523, 341, 310, 1714, 25, 262, 330, 5987, 756, 310, 3890, 25, 220, 10545, 2105, 3788, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_part2_example1() { let input = r#" COM)B B)C C)D D)E E)F B)G G)H D)I E)J J)K K)L K)YOU I)SAN "#; assert_eq!(part2(&to_lines(input)), 4); }
rust_cleaned_test_functions.jsonl/90092
{ "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, 10495, 17, 39304, 16, 368, 341, 286, 1077, 1946, 284, 435, 2, 698, 8696, 8, 33, 198, 33, 8, 34, 198, 34, 8, 35, 198, 35, 8, 36, 198, 36, 8, 37, 198, 33, 8, 38, 198, 38, 8, 39, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_48() { let mut matrix = vec![vec![1, 2, 3], vec![4, 5, 6], vec![7, 8, 9]]; Solution::rotate(&mut matrix); assert_eq!(matrix, vec![vec![7, 4, 1], vec![8, 5, 2], vec![9, 6, 3]]); matrix = vec![ vec![5, 1, 9, 11], vec![2, 4, 8, 10], ...
rust_cleaned_test_functions.jsonl/62382
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 568 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 19, 23, 368, 341, 286, 1077, 5206, 6172, 284, 7486, 20703, 4083, 20703, 16, 11, 220, 17, 11, 220, 18, 1125, 7486, 20703, 19, 11, 220, 20, 11, 220, 21, 1125, 7486, 20703, 22, 11, 220, 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_parse_readable_size() { #[derive(Serialize, Deserialize)] struct SizeHolder { s: ReadableSize, } let legal_cases = vec![ (0, "0KiB"), (2 * KIB, "2KiB"), (4 * MIB, "4MiB"), (5 * GIB, "5GiB"), ...
rust_cleaned_test_functions.jsonl/1553
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1701 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 91232, 2368, 368, 341, 286, 11506, 27098, 3759, 9050, 11, 48440, 5563, 286, 2036, 8478, 8589, 341, 310, 274, 25, 4457, 480, 1695, 345, 286, 555, 286, 1077, 5777, 41427, 284, 7486, 90515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_server_message() { let mut ctx: CCPContext = CCPContext::new(); let mut buf: [u8; CCP_MAX_PACKET_SIZE] = [0; CCP_MAX_PACKET_SIZE]; let msg = String::from("TESTTESTTESTTEST").into_bytes(); let msg = msg.as_slice(); let mut ret = ctx.mk_server_message(&mut b...
rust_cleaned_test_functions.jsonl/100576
{ "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, 12015, 6462, 368, 341, 286, 1077, 5206, 5635, 25, 75921, 1972, 284, 75921, 1972, 486, 931, 543, 286, 1077, 5206, 6607, 25, 508, 84, 23, 26, 75921, 6806, 40328, 4098, 60, 284, 508, 15, 26, 7592...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_lifting() { let mut m = Module::new(); let (before, to_lift) = { let u32_t = m.add(Node::Const(Constant::IntType(Width::W32)), None); let enclosing = m.reserve(None); // TODO working forward references let param_0 = m.add(Node::Para...
rust_cleaned_test_functions.jsonl/121552
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 627 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 17680, 368, 341, 286, 1077, 5206, 296, 284, 13711, 486, 931, 543, 286, 1077, 320, 14801, 11, 311, 87004, 8, 284, 341, 310, 1077, 575, 18, 17, 528, 284, 296, 1364, 22078, 486, 19167, 50989...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_native_libs_tracking_hash_different_order() { let mut v1 = super::basic_options(); let mut v2 = super::basic_options(); let mut v3 = super::basic_options(); // Reference v1.libs = vec![(String::from("a"), cstore::NativeStatic), (Str...
rust_cleaned_test_functions.jsonl/122250
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 612 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44494, 16142, 82, 66105, 8950, 82741, 7869, 368, 341, 286, 1077, 5206, 348, 16, 284, 2256, 486, 22342, 8743, 543, 286, 1077, 5206, 348, 17, 284, 2256, 486, 22342, 8743, 543, 286, 1077, 5206, 348...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_message_unique_keys_both_signed() { let program_id = Pubkey::default(); let id0 = Pubkey::default(); let keys = get_keys( &[ Instruction::new_with_bincode(program_id, &0, vec![AccountMeta::new(id0, true)]), Instruction::new_with...
rust_cleaned_test_functions.jsonl/55517
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6462, 21218, 12631, 88819, 55617, 368, 341, 286, 1077, 2025, 842, 284, 22611, 792, 486, 2258, 543, 286, 1077, 877, 15, 284, 22611, 792, 486, 2258, 543, 286, 1077, 6894, 284, 633, 12631, 1006, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transfer_to_nonexisting_wallet() { let (mut testkit, api) = create_testkit(); let (tx_alice, key_alice) = api.create_wallet(ALICE_NAME); let (tx_bob, _) = api.create_wallet(BOB_NAME); // when a transfer occurs. testkit.create_block_with_tx_hashes(&[tx_alice.hash()]); ...
rust_cleaned_test_functions.jsonl/12387
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35403, 2346, 21637, 36895, 62308, 368, 341, 262, 1077, 320, 6984, 1273, 8226, 11, 6330, 8, 284, 1855, 4452, 8226, 1428, 262, 1077, 320, 3998, 8418, 558, 11, 1376, 8418, 558, 8, 284, 6330, 2520, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vega_time_service_with_7_validators() { let mut testkit = create_testkit_with_validators(7); let validators = testkit.network().validators().to_vec(); let mut validators_times = vec![None; 7]; assert_storage_times_eq(&testkit.snapshot(), &validators, None, &validators_times); ...
rust_cleaned_test_functions.jsonl/21885
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 540 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73285, 6743, 3009, 12267, 6615, 62, 22, 8337, 2973, 368, 341, 262, 1077, 5206, 1273, 8226, 284, 1855, 4452, 8226, 6615, 8337, 2973, 7, 22, 317, 262, 1077, 38588, 284, 1273, 8226, 20573, 1005, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_gauge_vec_with_labels() { let vec = GaugeVec::new( Opts::new("test_gauge_vec", "test gauge vec help"), &["l1", "l2"], ).unwrap(); let mut labels = HashMap::new(); labels.insert("l1", "v1"); labels.insert("l2", "v2"); assert...
rust_cleaned_test_functions.jsonl/7404
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 331 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 19392, 13251, 6615, 14547, 368, 341, 286, 1077, 7486, 284, 72060, 10050, 486, 931, 1006, 310, 506, 12754, 486, 931, 445, 1944, 1889, 19392, 13251, 497, 330, 1944, 30890, 7486, 1492, 4461, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_embedding_similarity() { let f = File::open("testdata/similarity.bin").unwrap(); let mut reader = BufReader::new(f); let embeddings = Embeddings::read_word2vec_binary(&mut reader).unwrap(); let embedding = embeddings.embedding("Berlin").unwrap(); let resul...
rust_cleaned_test_functions.jsonl/22002
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51502, 76236, 368, 341, 286, 1077, 282, 284, 2887, 486, 2508, 445, 92425, 2687, 318, 48225, 29394, 1827, 15454, 543, 286, 1077, 5206, 6604, 284, 69013, 5062, 486, 931, 955, 317, 286, 1077, 70547, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_window_functions_2() { assert_display_snapshot!((resolve_and_translate(parse(r###" from foo derive [a = sum b] group c ( derive [d = sum b] ) "###, ).unwrap()).unwrap()), @r###" SELECT foo.*, ...
rust_cleaned_test_functions.jsonl/62569
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1263 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12571, 31708, 62, 17, 368, 341, 1789, 286, 2060, 14825, 53265, 0, 1188, 17325, 8378, 66381, 27762, 2601, 14374, 698, 286, 504, 15229, 198, 286, 42430, 508, 64, 284, 2629, 293, 921, 286, 1874, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_xmas_tree() { let mut buf = [0xffu8; Packet::SIZE]; buf[0] = Packet::SYNC_BYTE; buf[4] = 28; // adaptation_field_length buf[19] = 1; // transport_private_data_length buf[21] = 11; // adaptation_field_extension_length let pk = Packet::new(&buf[..]);...
rust_cleaned_test_functions.jsonl/83757
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1112 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3212, 6899, 11663, 368, 341, 286, 1077, 5206, 6607, 284, 508, 15, 9020, 84, 23, 26, 28889, 486, 20494, 935, 286, 6607, 58, 15, 60, 284, 28889, 486, 47176, 27349, 280, 286, 6607, 58, 19, 60, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_field_to_column_desc() { let message_type = " message arrow_schema { REQUIRED BOOLEAN boolean; REQUIRED INT32 int8 (INT_8); REQUIRED INT32 int16 (INTEGER(16,true)); REQUIRED INT32 int32; REQUIRED INT64 int64; ...
rust_cleaned_test_functions.jsonl/130370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2845 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5013, 2346, 8744, 10986, 368, 341, 286, 1077, 1943, 1819, 284, 6228, 286, 1943, 17921, 25371, 341, 310, 66577, 59393, 2710, 280, 310, 66577, 9221, 18, 17, 256, 526, 23, 220, 320, 3221, 62, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_assignment() { let mut p = Polar::new(); qeval(&mut p, "x := 5 and x == 5"); qruntime!( "x := 5 and x := 6", RuntimeError::TypeError { msg: s, .. }, s == "Can only assign to unbound variables, x is not unbound." ); qnull(&mut p, "x := 5 and x > 6"); ...
rust_cleaned_test_functions.jsonl/97657
{ "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, 51891, 368, 341, 262, 1077, 5206, 281, 284, 55896, 486, 931, 543, 262, 2804, 14170, 2099, 6984, 281, 11, 330, 87, 1669, 220, 20, 323, 856, 621, 220, 20, 797, 262, 2804, 22255, 33673, 286, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fold_at_tab() { new_ucmd!() .arg("-w8") .pipe_in("a\tbbb\n") .succeeds() .stdout_is("a\t\nbbb\n"); }
rust_cleaned_test_functions.jsonl/23283
{ "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, 61187, 3752, 17344, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 13645, 86, 23, 1138, 286, 659, 13768, 1243, 445, 64, 4955, 53151, 1699, 1138, 286, 659, 82, 29264, 82, 741, 286, 659...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_f64(){ let json_value = from_str("12.0").unwrap(); let json_num = json_value.as_f64(); assert_eq!(json_num, Some(12f64)); }
rust_cleaned_test_functions.jsonl/6577
{ "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, 11898, 761, 21, 19, 3032, 286, 1077, 2951, 3142, 284, 504, 2895, 445, 16, 17, 13, 15, 1827, 15454, 543, 286, 1077, 2951, 4273, 284, 2951, 3142, 5357, 761, 21, 19, 543, 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_for_overflow() -> Result<(), Box<EvalAltResult>> { let engine = Engine::new(); #[cfg(not(feature = "only_i32"))] let script = " let sum = 0; for x in range(9223372036854775807, 0, 9223372036854775807) { sum += 1; } sum "; #[cfg(f...
rust_cleaned_test_functions.jsonl/62650
{ "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, 5478, 79073, 368, 1464, 5714, 68843, 8261, 23835, 831, 26017, 2077, 2452, 341, 262, 1077, 4712, 284, 8200, 486, 931, 1428, 262, 11506, 14072, 24772, 27062, 284, 330, 3243, 5318, 18, 17, 2761, 921,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_package_extractor_invalid_url() { let store_dir = tempdir().unwrap(); let uri = store_dir.into_path().into_os_string().into_string().unwrap(); let model = Arc::new(DataModel::connect(uri).unwrap()); let package_controller = PackageExtractController::default(); ...
rust_cleaned_test_functions.jsonl/25972
{ "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, 26328, 89821, 31433, 2903, 368, 341, 286, 1077, 3553, 4334, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 13071, 284, 3553, 4334, 39860, 2638, 1005, 18122, 29387, 3904, 1005, 18122, 3904, 1005, 1545...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_panic_hook() { use gag::BufferRedirect; use nix::sys::wait::{wait, WaitStatus}; use nix::unistd::{fork, ForkResult}; use slog::{self, Drain, OwnedKVList, Record}; struct DelayDrain<D>(D); impl<D> Drain for DelayDrain<D> where ...
rust_cleaned_test_functions.jsonl/52558
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 31270, 32005, 368, 341, 286, 990, 45592, 486, 4095, 17725, 280, 286, 990, 308, 941, 486, 7791, 486, 11489, 22964, 11489, 11, 13824, 2522, 2440, 286, 990, 308, 941, 486, 27483, 22964, 44738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_satoshi_conversion() { TEST_AMOUNTS .iter() .for_each(|amounts| test_from_satoshi(amounts.satoshi, BitcoinAmount(amounts.satoshi))); }
rust_cleaned_test_functions.jsonl/131263
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 14030, 6023, 64132, 368, 341, 310, 13602, 59993, 50, 198, 394, 659, 2015, 741, 394, 659, 1958, 32046, 22428, 6045, 82, 91, 1273, 5673, 643, 14030, 6023, 33989, 82, 514, 14030, 6023, 11, 131...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_codecs_from_media_description() -> Result<()> { //"Codec Only" { let codecs = codecs_from_media_description(&MediaDescription { media_name: MediaName { media: "audio".to_owned(), formats: vec!["111".to_owned()], ..Defaul...
rust_cleaned_test_functions.jsonl/12075
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1874 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4136, 4837, 5673, 29173, 11448, 368, 1464, 5714, 71698, 341, 262, 58393, 36913, 8278, 698, 262, 341, 286, 1077, 56152, 284, 56152, 5673, 29173, 11448, 2099, 12661, 5009, 341, 310, 3687, 1269, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_9XY0() { // 0x9XY0 - Skip the following instruction if the value of register VX is not equal to the value of register VY let opcode = 0x9AB0; let mut vm = get_vm(); //equal vm.v[0xA] = 0x1; vm.v[0xB] = 0x1; vm.program_counter = 0x0; vm.execute_instruction(decode...
rust_cleaned_test_functions.jsonl/257
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 272 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 24, 16356, 15, 368, 341, 262, 442, 220, 15, 87, 24, 16356, 15, 481, 25784, 279, 2701, 7600, 421, 279, 897, 315, 4161, 78177, 374, 537, 6144, 311, 279, 897, 315, 4161, 647, 56, 271, 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_opt_get_default() { let mut opts = Options::new(); opts.optflag("h", "help", "Description"); opts.optflagopt("i", "ignore", "Description", "true | false"); opts.optflagopt("r", "run", "Description", "0 .. 10"); opts.optflagopt("p", "percent", "Description", "0.0 .. 10.0"); ...
rust_cleaned_test_functions.jsonl/52408
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 388 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 3062, 9993, 368, 341, 262, 1077, 5206, 12185, 284, 14566, 486, 931, 543, 262, 12185, 28102, 9903, 445, 71, 497, 330, 8653, 497, 330, 5009, 797, 262, 12185, 28102, 9903, 2912, 445, 72, 497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_keys() { let dict = sample_dict("abcd"); let keys = dict.keys(); assert_eq!(keys.len(), 1); autoreleasepool(|pool| { assert_eq!(keys[0].as_str(pool), "abcd"); }); }
rust_cleaned_test_functions.jsonl/108468
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12631, 368, 341, 286, 1077, 6451, 284, 6077, 5243, 445, 68644, 797, 286, 1077, 6894, 284, 6451, 9123, 1428, 286, 2060, 10714, 10297, 10563, 19406, 1507, 220, 16, 317, 286, 74566, 10285, 22428, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_FCMPL() { let frame = create_frame(0.03, 0.042); let thread = Thread::new().push_frame(frame); let (ExecuteResult { thread, offset: _ }, _) = FCMPL(CodeReader::new(Rc::new(vec![])), thread); let (frame, _) = thread.pop_frame(); let (val, _) = f...
rust_cleaned_test_functions.jsonl/74084
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1400, 9985, 2916, 368, 341, 286, 1077, 4034, 284, 1855, 8929, 7, 15, 13, 15, 18, 11, 220, 15, 13, 15, 19, 17, 317, 286, 1077, 4516, 284, 8752, 486, 931, 1005, 9077, 8929, 15046, 317, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_show_highlight() { let mut pane = gen_pane!(OpenOptions::new().write(true).open("/dev/null").unwrap()); pane.show_highlight(true); assert_eq!(pane.show_highlight, true); pane.show_highlight(false); assert_eq!(pane.show_highlight, false); }
rust_cleaned_test_functions.jsonl/1684
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15267, 74546, 368, 341, 286, 1077, 5206, 37322, 284, 4081, 620, 2145, 10297, 5002, 3798, 486, 931, 1005, 4934, 3715, 568, 2508, 4283, 3583, 19293, 1827, 15454, 1423, 286, 37322, 5460, 74546, 3715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_optflagmulti_short1() { let args = vec!["-v".to_string()]; match Options::new() .optflagmulti("v", "verbose", "verbosity") .parse(&args) { Ok(ref m) => { assert_eq!(m.opt_count("v"), 1); } _ => panic!(), } }
rust_cleaned_test_functions.jsonl/52369
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 9903, 26268, 16673, 16, 368, 341, 262, 1077, 2827, 284, 7486, 0, 1183, 12, 85, 3263, 983, 3904, 33800, 262, 2432, 14566, 486, 931, 741, 286, 659, 2912, 9903, 26268, 445, 85, 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, 1...
2
#[test] fn test_doc_to_opstamp_mapping_with_map() { let doc_to_opstamp_mapping = DocToOpstampMapping::WithMap(&[5u64, 1u64, 0u64, 4u64, 3u64]); assert_eq!(doc_to_opstamp_mapping.is_deleted(0u32, 2u64), false); assert_eq!(doc_to_opstamp_mapping.is_deleted(1u32, 2u64), true); asser...
rust_cleaned_test_functions.jsonl/53520
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 282 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18869, 2346, 10287, 49113, 26930, 6615, 5376, 368, 341, 286, 1077, 4629, 2346, 10287, 49113, 26930, 284, 21709, 1249, 7125, 49113, 6807, 486, 2354, 2227, 2099, 58, 20, 84, 21, 19, 11, 220, 16, 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_archive_unpack_snapshot_bad_unpack() { let result = check_unpack_result(false, "abc".to_string()); assert_matches!(result, Err(UnpackError::Archive(ref message)) if message == "failed to unpack: \"abc\""); }
rust_cleaned_test_functions.jsonl/18334
{ "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, 42873, 54889, 53265, 34199, 54889, 368, 341, 286, 1077, 1102, 284, 1779, 54889, 5287, 3576, 11, 330, 13683, 3263, 983, 3904, 1423, 286, 2060, 38344, 10297, 1382, 11, 15495, 49289, 4748, 1454, 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 ]
2
#[test] fn test_lex_with_ident() { let tokens = Lexer::new().lex("abc 100").unwrap(); assert_eq!(tokens, vec![Token::Ident("abc".to_string()), Token::Integer(100)]); }
rust_cleaned_test_functions.jsonl/33560
{ "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, 74547, 6615, 38399, 368, 341, 286, 1077, 11211, 284, 85082, 486, 931, 1005, 2571, 445, 13683, 220, 16, 15, 15, 1827, 15454, 543, 286, 2060, 10714, 10297, 30566, 345, 4293, 7486, 20703, 3323, 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
#[test] fn test_ecdsa_validate_dealings() { ic_test_utilities::artifact_pool_config::with_test_pool_config(|pool_config| { with_test_replica_logger(|logger| { let (mut ecdsa_pool, pre_signer) = create_pre_signer_dependencies(pool_config, logger); ...
rust_cleaned_test_functions.jsonl/86713
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1797 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36844, 96780, 42681, 2259, 278, 819, 368, 341, 286, 17902, 4452, 94044, 486, 63722, 15709, 5332, 486, 4197, 4452, 15709, 5332, 22428, 10285, 5332, 91, 341, 310, 448, 4452, 25533, 15317, 27413, 22428...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_param_stack_failure_conditions() { let mut varstruct = Variables::new(); let vars = &mut varstruct; fn get_res( fmt: &str, cap: &str, params: &[Param], vars: &mut Variables, ) -> Result<Vec<u8>, String> { let mut u8v: Vec<_> = fmt.bytes().c...
rust_cleaned_test_functions.jsonl/35446
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 660 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4090, 15528, 43618, 54099, 368, 341, 262, 1077, 5206, 762, 1235, 284, 21419, 486, 931, 543, 262, 1077, 19942, 284, 609, 6984, 762, 1235, 280, 262, 5168, 633, 4918, 1006, 286, 8879, 25, 609, 495,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_strings() { let mut what = "roman ( ziemniak ) ".to_string(); get_approximate_conversion(&mut what); assert_eq!(what, "roman"); let mut what = " HH) ".to_string(); get_approximate_conversion(&mut what); assert_eq!(what, "HH"); let mut...
rust_cleaned_test_functions.jsonl/129768
{ "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, 33500, 368, 341, 286, 1077, 5206, 1128, 284, 330, 62014, 320, 1147, 26862, 7751, 585, 873, 5933, 983, 3904, 543, 286, 633, 90425, 3426, 64132, 2099, 6984, 1128, 317, 286, 2060, 10714, 10297, 12555...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_accountsdb_count_stores() { solana_logger::setup(); let db = AccountsDB::new_single(); let mut pubkeys: Vec<Pubkey> = vec![]; create_account(&db, &mut pubkeys, 0, 2, DEFAULT_FILE_SIZE as usize / 3, 0); assert!(check_storage(&db, 0, 2)); let pubke...
rust_cleaned_test_functions.jsonl/58292
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 700 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55665, 1999, 3180, 1261, 4589, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 2927, 284, 40655, 3506, 486, 931, 19487, 1428, 286, 1077, 5206, 6675, 10563, 25, 11312, 21604, 392, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_native_libs_tracking_hash_different_order() { let mut v1 = Options::default(); let mut v2 = Options::default(); let mut v3 = Options::default(); // Reference v1.libs = vec![ NativeLib { name: String::from("a"), new_name: None, kind...
rust_cleaned_test_functions.jsonl/100722
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1110 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44494, 16142, 82, 66105, 8950, 82741, 7869, 368, 341, 262, 1077, 5206, 348, 16, 284, 14566, 486, 2258, 543, 262, 1077, 5206, 348, 17, 284, 14566, 486, 2258, 543, 262, 1077, 5206, 348, 18, 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_accountsdb_flatten_hashes() { solana_logger::setup(); const COUNT: usize = 4; let hashes: Vec<_> = (0..COUNT) .into_iter() .map(|i| Hash::new(&[(i) as u8; 32])) .collect(); let expected = hashes.clone(); assert_eq!(Acco...
rust_cleaned_test_functions.jsonl/60846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 411 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55665, 1999, 5081, 14456, 91616, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 733, 23989, 25, 22301, 284, 220, 19, 280, 286, 1077, 50257, 25, 11312, 32399, 29, 284, 320, 15, 496, 3814...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sender() { let mut event_loop = EventLoop::new().unwrap(); let sendch = &SendCh::new(event_loop.channel(), "test-sender"); let t = thread::spawn(move || { event_loop.run(&mut TestHandler).unwrap(); }); let mut request = RaftCmdRequest::new();...
rust_cleaned_test_functions.jsonl/114480
{ "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, 54356, 368, 341, 286, 1077, 5206, 1538, 17198, 284, 3665, 14620, 486, 931, 1005, 15454, 543, 286, 1077, 3624, 331, 284, 609, 11505, 1143, 486, 931, 6235, 17198, 16195, 1507, 330, 1944, 1331, 1659,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_defer_fires_even_with_panic() { supress_panic_err(); let obj = Cell::new(1); let _ = catch_unwind(AssertUnwindSafe(|| { defer!(obj.set(2)); panic!(); })); assert_eq!(obj.get(), 2); }
rust_cleaned_test_functions.jsonl/56951
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 156 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7844, 261, 761, 3861, 68347, 6615, 620, 31270, 741, 262, 341, 286, 1026, 673, 620, 31270, 9266, 1428, 286, 1077, 2839, 284, 13972, 486, 931, 7, 16, 317, 286, 1077, 716, 284, 2287, 4907, 19154, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_inline_let_bind_bin_expr() { check_assist( inline_local_variable, r" fn bar(a: usize) {} fn foo() { let a$0 = 1 + 1; a + 1; if a > 10 { } while a > 10 { } let b = a * 10; bar(a); }", r" fn bar(a: usize) {} fn foo() { ...
rust_cleaned_test_functions.jsonl/3222
{ "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, 41871, 62, 1149, 27461, 21816, 21915, 368, 341, 286, 1779, 12083, 380, 1006, 310, 7381, 13564, 14635, 345, 310, 435, 698, 8822, 3619, 2877, 25, 22301, 8, 5613, 8822, 15229, 368, 341, 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_undefined_var() { let stmt = Stmt::Expr(var("x")); assert_eq!( interpret(stmt), Err(CalcError::UndefinedVar(String::from("x"))) ); }
rust_cleaned_test_functions.jsonl/103400
{ "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, 62, 9614, 4612, 368, 341, 286, 1077, 20020, 284, 97023, 486, 16041, 7537, 445, 87, 14929, 286, 2060, 10714, 33673, 310, 14198, 47895, 1326, 310, 15495, 3025, 16927, 1454, 486, 30571, 3962, 2242, 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
#[test] fn test_round_trips() { let testcases = vec![ Op { action: OpType::Set(ScalarValue::Uint(12)), obj: ObjectId::Root, key: "somekey".into(), insert: false, pred: Vec::new(), }, Op { ...
rust_cleaned_test_functions.jsonl/45058
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29896, 3547, 3077, 368, 341, 286, 1077, 1273, 23910, 284, 7486, 90515, 310, 10672, 341, 394, 1917, 25, 10672, 929, 486, 1649, 7, 20639, 1130, 486, 21570, 7, 16, 17, 6965, 394, 2839, 25, 50090, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_slots_to_secs() { let mut genesis_block = GenesisBlock::default(); genesis_block.poh_config.target_tick_duration = Duration::from_millis(500); genesis_block.ticks_per_slot = 10; assert_eq!(slots_to_secs(2, &genesis_block), 10); genesis_block.ticks_per_sl...
rust_cleaned_test_functions.jsonl/33731
{ "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, 54161, 2346, 68718, 368, 341, 286, 1077, 5206, 59366, 7113, 284, 40788, 4713, 486, 2258, 543, 286, 59366, 7113, 556, 2267, 5332, 6539, 43612, 25454, 284, 21045, 486, 1499, 717, 56212, 7, 20, 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_test_stmt() { test_walk( "test a = 1", vec![ "File", "TestStmt", "VariableAssgn", "Identifier", "IntegerLit", ], ) }
rust_cleaned_test_functions.jsonl/3339
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4452, 21824, 368, 341, 310, 1273, 56131, 1006, 394, 330, 1944, 264, 284, 220, 16, 756, 394, 7486, 90515, 503, 330, 1703, 756, 503, 330, 2271, 31063, 756, 503, 330, 7827, 5615, 4905, 756, 503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_multi_line() { let env = env_1!(); let (r, sioe) = do_execute!( &env, &["-e", "a", "-f", "1", "--color", "always"], "abcabca\noooooo\nabcabca\n" ); assert_eq!(buff!(sioe, serr), ""); assert_eq!( buff!(sioe, s...
rust_cleaned_test_functions.jsonl/76273
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 304 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 6528, 368, 341, 286, 1077, 6105, 284, 6105, 62, 16, 0, 543, 286, 1077, 320, 81, 11, 274, 815, 68, 8, 284, 653, 44329, 33673, 310, 609, 3160, 345, 310, 609, 1183, 12, 68, 497, 330, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deposit_with_same_proof() { let (_master_account, contract) = init(CUSTODIAN_ADDRESS); assert_proof_was_not_used(&contract, CONTRACT_ACC, PROOF_DATA_NEAR); let promises = call_deposit_eth_to_near(&contract, CONTRACT_ACC); for p in promises.iter() { assert!(p.is_some());...
rust_cleaned_test_functions.jsonl/112872
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 330 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 85798, 6615, 33574, 86757, 368, 341, 262, 1077, 5453, 13629, 13500, 11, 5116, 8, 284, 2930, 3025, 8553, 2069, 22002, 20135, 626, 262, 2060, 86757, 91612, 7913, 27803, 2099, 20257, 11, 17126, 25666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_full_viewing_key() { use crate::paper::get_address; use hex::FromHex; let hdseed = "023241db228975d6703d34e1cc900c66f63fa4b512894c10faeadbf42e109fc4"; // Seed is 32 bytes long. let hdseed_decoded = <[u8; 32]>::from_hex(hdseed).expect("Decoding failed"); ...
rust_cleaned_test_functions.jsonl/83245
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 528 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16372, 7122, 287, 3097, 368, 341, 286, 990, 17717, 486, 19166, 486, 455, 6744, 280, 286, 990, 12371, 486, 3830, 20335, 280, 286, 1077, 17907, 22602, 284, 330, 15, 17, 18, 17, 19, 16, 1999, 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_config_save_and_load() -> Result<()> { let container_id = "sample"; let tmp = create_temp_dir("test_config_save_and_load").expect("create test directory"); let spec = Spec::default(); let config = YoukiConfig::from_spec(&spec, container_id)?; config.save(&...
rust_cleaned_test_functions.jsonl/91275
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 15376, 8378, 12411, 368, 1464, 5714, 71698, 341, 286, 1077, 5476, 842, 284, 330, 13611, 876, 286, 1077, 4174, 284, 1855, 11771, 4334, 445, 1944, 5332, 15376, 8378, 12411, 1827, 17119, 445, 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...
4
#[test] fn test_two() { // Two box are overlapped let box1 = &[10, 15, 50, 40]; let box2 = &[10, 15, 50, 40]; assert_eq!(overlaps(&box1, &box2), true); }
rust_cleaned_test_functions.jsonl/71428
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 368, 341, 286, 442, 9043, 3745, 525, 28104, 5677, 198, 286, 1077, 3745, 16, 284, 44590, 16, 15, 11, 220, 16, 20, 11, 220, 20, 15, 11, 220, 19, 15, 935, 286, 1077, 3745, 17, 284, 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_nth_recent_vote() { let voter_pubkey = solana_sdk::pubkey::new_rand(); let mut vote_state = VoteState::new_for_test(&voter_pubkey); for i in 0..MAX_LOCKOUT_HISTORY { vote_state.process_slot_vote_unchecked(i as u64); } for i in 0..(MAX_LOCKOUT_H...
rust_cleaned_test_functions.jsonl/6091
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 306 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 78342, 62361, 54360, 368, 341, 286, 1077, 25323, 34014, 792, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 5206, 6910, 4387, 284, 34034, 1397, 486, 931, 5478, 4452, 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...
3
#[test] fn test_zst_get_0_uninitialized_private_type() { use zst_private::CannotConstructZstInner; let array = AtomicOnceCell::new(); let _val: &CannotConstructZstInner = array.get(); }
rust_cleaned_test_functions.jsonl/13520
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6415, 267, 3062, 62, 15, 4907, 36161, 26249, 1819, 368, 341, 286, 990, 1147, 267, 26249, 486, 17444, 28468, 57, 267, 31597, 401, 286, 1077, 1334, 284, 30316, 12522, 3599, 486, 931, 1428, 16885, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_valid_importexport_list_jobs() { let mock_response = MockResponseReader::read_response( "test_resources/generated/valid", "importexport-list-jobs.xml", ); let mock = MockRequestDispatcher::with_status(200).with_body(&mock_response); l...
rust_cleaned_test_functions.jsonl/61954
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 252 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8337, 18434, 1533, 2019, 37247, 368, 341, 286, 1077, 7860, 9655, 284, 14563, 2582, 5062, 486, 878, 9655, 1006, 310, 330, 1944, 35569, 79372, 14, 1891, 756, 310, 330, 474, 1533, 9029, 13333,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_send_request() { settings::set_defaults(); settings::set_config_value(settings::CONFIG_ENABLE_TEST_MODE,"true"); let handle = credential::credential_create_with_offer("test_send_request",::utils::constants::CREDENTIAL_OFFER_JSON).unwrap(); assert_eq...
rust_cleaned_test_functions.jsonl/7546
{ "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, 2273, 25844, 666, 30320, 13565, 7893, 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, 3705, 284, 4020...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_node_slashdash_comment() { assert_eq!(node("/-node"), Ok(("", None))); assert_eq!(node("/- node"), Ok(("", None))); assert_eq!(node("/- node\n"), Ok(("", None))); assert_eq!(node("/-node 1 2 3"), Ok(("", None))); assert_eq!(node("/-node key=false"), Ok((""...
rust_cleaned_test_functions.jsonl/118111
{ "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, 5084, 11886, 988, 43519, 17638, 368, 341, 286, 2060, 10714, 10297, 3509, 4283, 12, 3509, 3975, 7622, 7, 19814, 2240, 4945, 286, 2060, 10714, 10297, 3509, 4283, 12, 2436, 3975, 7622, 7, 19814, 2240...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decode_decimal_with_bigger_than_necessary_size() { use crate::{encode::encode, schema::Name}; use num_bigint::ToBigInt; let inner = Box::new(Schema::Fixed { size: 13, name: Name::new("decimal"), }); let schema = Schema::Decimal { ...
rust_cleaned_test_functions.jsonl/56204
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 382 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 74429, 6615, 880, 4500, 51613, 1089, 20122, 2368, 368, 341, 286, 990, 17717, 22964, 6180, 486, 6180, 11, 10802, 486, 675, 2440, 286, 990, 1629, 36386, 396, 486, 1249, 87474, 280, 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_parse() { let mut config = Config::new("test_data/testini.ini").expect("failed to open test file"); // default section assert_eq!(config.bool("debug", None).unwrap(), true); assert_eq!(config.string("url", None).unwrap(), "act.wiki"); // redis and mysql ...
rust_cleaned_test_functions.jsonl/1872
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 523 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 368, 341, 286, 1077, 5206, 2193, 284, 5532, 486, 931, 445, 1944, 1769, 12697, 6591, 34958, 1827, 17119, 445, 16091, 311, 1787, 1273, 1034, 3071, 286, 442, 1638, 3772, 198, 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_curve25519_kx() { use rand::rngs::OsRng; use curve25519::*; let (mut out1, mut out2) = ([0; 32], [0; 32]); let (sk1, pk1) = keypair(OsRng::new().unwrap()); let (sk2, pk2) = keypair(OsRng::new().unwrap()); sk1.exchange(&pk2, &mut out1); sk2.exchange(&pk1, &mut out2)...
rust_cleaned_test_functions.jsonl/513
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43407, 17, 20, 20, 16, 24, 4698, 87, 368, 341, 262, 990, 10382, 486, 69890, 82, 486, 28867, 49, 968, 280, 262, 990, 15655, 17, 20, 20, 16, 24, 79304, 262, 1077, 320, 6984, 700, 16, 11, 520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_blake2s() { use crate::encoding::hex; // Appendix A. Example of BLAKE2b Computation assert_eq!( &blake2s_256(b"abc"), &[ 0x50, 0x8C, 0x5E, 0x8C, 0x32, 0x7C, 0x14, 0xE2, 0xE1, 0xA7, 0x2B, 0xA3, 0x4E, 0xEB, 0x45, 0x2F, 0x37, 0x45, 0x8B, 0x...
rust_cleaned_test_functions.jsonl/59367
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 604 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13141, 726, 17, 82, 368, 341, 262, 990, 17717, 486, 17159, 486, 17308, 401, 262, 442, 64714, 362, 13, 220, 13383, 315, 14850, 25474, 17, 65, 1198, 13320, 7213, 262, 2060, 10714, 33673, 286, 609,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_inner() { let test_params = vec![ (true, Inner::Single(Tester(true))), (false, Inner::Single(Tester(false))), // CombinatorInner::Multiple should AND all items ( true, Inner::Multiple(vec![Tester(true), Teste...
rust_cleaned_test_functions.jsonl/529
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 441 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34345, 368, 341, 286, 1077, 1273, 6745, 284, 7486, 90515, 310, 320, 1866, 11, 36356, 486, 10888, 31159, 261, 3715, 41749, 310, 320, 3849, 11, 36356, 486, 10888, 31159, 261, 3576, 41749, 310, 442, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cloned_side_effects() { let mut count = 0; { let iter = [1, 2, 3] .iter() .map(|x| { count += 1; x }) .cloned() .zip(&[1]); for _ in iter {} } assert_eq!(count, 2); }
rust_cleaned_test_functions.jsonl/54137
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6794, 19684, 30862, 83171, 368, 341, 262, 1077, 5206, 1760, 284, 220, 15, 280, 262, 341, 286, 1077, 5367, 284, 508, 16, 11, 220, 17, 11, 220, 18, 921, 310, 659, 2015, 741, 310, 659, 2186, 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...
2
#[test] fn test_continuous_3() { let capsule = Capsule::new(2., 1.); let ray = Ray3::new( Point3::new(0., 4., 0.), Vector3::new(0.1, -1., 0.1).normalize(), ); assert_eq!( Some(Point3::new( 0.10102588514869944, 2....
rust_cleaned_test_functions.jsonl/18395
{ "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, 94400, 62, 18, 368, 341, 286, 1077, 47639, 284, 43365, 1111, 486, 931, 7, 17, 2572, 220, 16, 58957, 286, 1077, 18299, 284, 13255, 18, 486, 931, 1006, 310, 5126, 18, 486, 931, 7, 15, 2572, 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_iter_reverse() { let mut ll = LinkedList::<u8>::with_capacity(10); for i in 0..10 { ll.push_head(i); } let mut iter = ll.iter().reverse(); let mut count = 0; while let Some(val) = iter.next() { assert_eq!(*val, count); ...
rust_cleaned_test_functions.jsonl/59890
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 415 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 43277, 368, 341, 286, 1077, 5206, 9323, 284, 22917, 27638, 84, 23, 6831, 4197, 35603, 7, 16, 15, 317, 286, 369, 600, 304, 220, 15, 496, 16, 15, 341, 310, 9323, 2552, 13138, 1956, 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...
6
#[test] fn test_serialize_complex() { let (s1, s2) = zx::Socket::create(zx::SocketOpts::STREAM).unwrap(); let event = test_protocol::TestInterfaceEvent::Complex { uint_arg: UINT_VALUE, int_arg: INT_VALUE, handle_arg1: s1.into_handle(), object_arg: ...
rust_cleaned_test_functions.jsonl/55810
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 408 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 41522, 368, 341, 286, 1077, 320, 82, 16, 11, 274, 17, 8, 284, 71322, 486, 10286, 486, 3182, 13174, 87, 486, 10286, 43451, 486, 54326, 568, 15454, 543, 286, 1077, 1538, 284, 1273, 34880, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_full_options() { #[rustfmt::skip] let oup = exec_target( TARGET_EXE_PATH, &[ "-d", "--verbose", "2", "-s", "123", "-c", "file.conf", "inp", "oup" ], ); assert_eq!(oup.status.success(), true); assert_eq!( oup.stdout, concat!( "CmdOpt...
rust_cleaned_test_functions.jsonl/79968
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 378 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16372, 8743, 368, 341, 262, 11506, 35788, 12501, 486, 20599, 921, 262, 1077, 5908, 79, 284, 3883, 11123, 1006, 286, 41033, 4966, 36, 7944, 345, 286, 44590, 6523, 67, 497, 14482, 14883, 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...
1
#[test] fn test_replace() { let cases = vec![ ( vec![ Datum::Bytes(b"www.mysql.com".to_vec()), Datum::Bytes(b"mysql".to_vec()), Datum::Bytes(b"pingcap".to_vec()), ], Datum::Bytes(b"www...
rust_cleaned_test_functions.jsonl/9100
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1956 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10633, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 2399, 394, 7486, 90515, 503, 68459, 486, 7078, 1883, 1, 2136, 50986, 905, 3263, 983, 13251, 14702, 503, 68459, 486, 7078, 1883, 1, 12272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sobel_gradients() { fn sobel_gradients(image: &GrayImage) -> GrayImage { imageproc::map::map_subpixels(&gradients::sobel_gradients(image), <u8 as Clamp<u16>>::clamp) } compare_to_truth_grayscale("elephant.png", "elephant_gradients.png", sobel_gradients); }
rust_cleaned_test_functions.jsonl/20072
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 77106, 96972, 368, 341, 262, 5168, 11493, 301, 96972, 10075, 25, 609, 28174, 1906, 8, 1464, 23366, 1906, 341, 286, 2168, 15782, 486, 2186, 486, 2186, 5228, 53319, 2099, 901, 36318, 486, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_quality_item_from_str2() { let x: ::Result<QualityItem<Encoding>> = "chunked; q=1".parse(); assert_eq!(x.unwrap(), QualityItem{ item: Chunked, quality: Quality(1000), }); }
rust_cleaned_test_functions.jsonl/65733
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55074, 5634, 5673, 2895, 17, 368, 341, 286, 1077, 856, 25, 3504, 2077, 32380, 10733, 1234, 27, 14690, 2452, 284, 330, 25979, 291, 26, 2804, 28, 16, 3263, 6400, 543, 286, 2060, 10714, 10297, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fsm_postpone_finalize() { let steady_interval = Duration::from_secs(DEFAULT_STEADY_INTERVAL_SECS); let default_interval = Duration::from_secs(DEFAULT_REFRESH_PERIOD_SECS); let postponement_interval = Duration::from_secs(DEFAULT_POSTPONEMENT_TIME_SECS); let update ...
rust_cleaned_test_functions.jsonl/98157
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1432 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 97069, 6333, 80917, 70616, 368, 341, 286, 1077, 24020, 20541, 284, 21045, 486, 1499, 68718, 43175, 2402, 36, 1808, 56, 37353, 3620, 6412, 317, 286, 1077, 1638, 20541, 284, 21045, 486, 1499, 68718, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_replace_failing() { let mut output = String::new(); let method = StringMethod { method: "replace", variable: "$FOO", pattern: "[]", selection: Select::All, }; method.handle(&mut output, &VariableExpander); ...
rust_cleaned_test_functions.jsonl/85282
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 177 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10633, 761, 14277, 368, 341, 286, 1077, 5206, 2550, 284, 923, 486, 931, 543, 286, 1077, 1714, 284, 923, 3523, 341, 310, 1714, 25, 262, 330, 8156, 756, 310, 3890, 25, 220, 5201, 3788, 46, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lmdb_backend() { let tmp_dir = TempDir::new("/tmp/lmdb").unwrap(); let path = tmp_dir.path(); let backend = LMDBBackend::new(path).unwrap(); test_backend("lmdb", backend); }
rust_cleaned_test_functions.jsonl/29070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 78127, 40011, 368, 341, 286, 1077, 4174, 4334, 284, 19944, 6184, 486, 931, 4283, 5173, 13328, 78127, 1827, 15454, 543, 286, 1077, 1815, 284, 4174, 4334, 3875, 543, 286, 1077, 19163, 284, 4641...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vote_threshold_above_threshold() { let mut tower = Tower::new_for_tests(1, 0.67); let stakes = vec![(0, 2)].into_iter().collect(); tower.record_vote(0, Hash::default()); assert!(tower.check_vote_stake_threshold(1, &stakes, 2)); }
rust_cleaned_test_functions.jsonl/61140
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 54360, 21858, 77315, 21858, 368, 341, 286, 1077, 5206, 21271, 284, 21938, 486, 931, 5478, 32509, 7, 16, 11, 220, 15, 13, 21, 22, 317, 286, 1077, 44425, 284, 7486, 0, 9697, 15, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_smalltalk() { let cx = mk_ctxt(); roundtrip(quote_item!(cx, fn foo() -> int { 3 + 4 } // first smalltalk program ever executed. )); }
rust_cleaned_test_functions.jsonl/24822
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31966, 35241, 368, 341, 262, 1077, 20716, 284, 23789, 93285, 543, 262, 4778, 32981, 7, 2949, 5634, 10297, 25844, 345, 286, 5168, 15229, 368, 1464, 526, 314, 220, 18, 488, 220, 19, 335, 442, 1156...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_reserve() { let mut d = VecDeque::new(); d.push_back(0); d.reserve(50); assert!(d.capacity() >= 51); }
rust_cleaned_test_functions.jsonl/73700
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 71 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 89591, 368, 341, 262, 1077, 5206, 294, 284, 11312, 73891, 486, 931, 543, 262, 294, 2552, 3895, 7, 15, 317, 262, 294, 48520, 7, 20, 15, 317, 262, 2060, 10297, 67, 59168, 368, 2604, 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
#[test] fn test_vget_lane_u8() { unsafe { let v: [u8; 8] = [1, 2, 3, 4, 5, 6, 7, 8]; let r = vget_lane_u8(transmute(v), 1); assert_eq!(r, 2); } }
rust_cleaned_test_functions.jsonl/33017
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 455, 60302, 7300, 23, 368, 341, 286, 19860, 341, 310, 1077, 348, 25, 508, 84, 23, 26, 220, 23, 60, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fq_repr_sub_noborrow() { let mut rng = XorShiftRng::from_seed([ 0x59, 0x62, 0xbe, 0x5d, 0x76, 0x3d, 0x31, 0x8d, 0x17, 0xdb, 0x37, 0x32, 0x54, 0x06, 0xbc, 0xe5, ]); let mut t = FqRepr([ 0x827a4a08041ebd9, 0x3c239f3dcc8f0d6b,...
rust_cleaned_test_functions.jsonl/2321
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1725 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 68535, 5228, 1089, 674, 7768, 368, 341, 286, 1077, 5206, 28422, 284, 1599, 269, 24841, 49, 968, 486, 1499, 33809, 8956, 310, 220, 15, 87, 20, 24, 11, 220, 15, 87, 21, 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...
4
#[test] fn test_transaction_instruction_with_duplicate_keys() { let program_id = Pubkey::default(); let keypair0 = Keypair::new(); let id0 = keypair0.pubkey(); let id1 = solana_sdk::pubkey::new_rand(); let ix = Instruction::new_with_bincode( program_id, ...
rust_cleaned_test_functions.jsonl/11243
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 469 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 54923, 6615, 70434, 12631, 368, 341, 286, 1077, 2025, 842, 284, 22611, 792, 486, 2258, 543, 286, 1077, 1376, 12670, 15, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 877, 15, 284, 1376...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_all_triplet_hand() { let test_str = "777m333p22z 555m 999s"; let test = Hand::from(test_str); let test_analyzer = HandAnalyzer::new(&test).unwrap(); let status = Status::new(); let settings = Settings::new(); assert_eq!( check_all_tripl...
rust_cleaned_test_functions.jsonl/5173
{ "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, 5705, 63883, 1149, 23194, 368, 341, 286, 1077, 1273, 2895, 284, 330, 22, 22, 22, 76, 18, 18, 18, 79, 17, 17, 89, 220, 20, 20, 20, 76, 220, 24, 24, 24, 82, 876, 286, 1077, 1273, 284, 8536...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mut_iterator() { use iter::*; let mut xs = [1, 2, 3, 4, 5]; for x in xs.mut_iter() { *x += 1; } assert!(xs == [2, 3, 4, 5, 6]) }
rust_cleaned_test_functions.jsonl/75625
{ "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, 29523, 13491, 368, 341, 286, 990, 5367, 56162, 286, 1077, 5206, 11943, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 286, 369, 856, 304, 11943, 744, 332, 11723, 368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_diff_real_case_write_fmt() { // need for recursion into the range at the end: after splitting at "Arguments" assert_eq!(diff( b" pub fn write_fmt(&mut self, fmt: fmt::Arguments<\'_>) {\n self.styler().write_fmt(fmt).un...
rust_cleaned_test_functions.jsonl/89266
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 500 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15850, 15266, 19096, 9165, 38128, 368, 341, 1789, 286, 442, 1184, 369, 50262, 1119, 279, 2088, 518, 279, 835, 25, 1283, 44373, 518, 330, 19139, 698, 73363, 286, 2060, 10714, 10297, 13490, 1006, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_next_utc() { let expression = "1 2 3 4 10 Fri"; let schedule = Schedule::from_str(expression).unwrap(); let next = schedule .upcoming(Utc) .next() .expect("There was no upcoming fire time."); println!("Next fire time: {}", next....
rust_cleaned_test_functions.jsonl/50811
{ "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, 11257, 84259, 368, 341, 286, 1077, 7493, 284, 330, 16, 220, 17, 220, 18, 220, 19, 220, 16, 15, 30402, 876, 286, 1077, 9700, 284, 23512, 486, 1499, 2895, 48330, 568, 15454, 543, 286, 1077, 1790...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_memtable_compact() { let region_id = 8; let mut memtable = MemTable::new(region_id, Arc::new(GlobalStats::default())); // After appending: memtable.append(generate_entry_indexes( 0, 10, FileId::new(Lo...
rust_cleaned_test_functions.jsonl/18141
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1318 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12976, 2005, 18177, 531, 368, 341, 286, 1077, 5537, 842, 284, 220, 23, 280, 286, 1077, 5206, 1833, 2005, 284, 13550, 2556, 486, 931, 48059, 842, 11, 19689, 486, 931, 46744, 16635, 486, 2258, 251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_stop_sending() { let f = Frame::StopSending { stream_id: 63.into(), application_error_code: 0x77, }; enc_dec(&f, "053F4077") }
rust_cleaned_test_functions.jsonl/30419
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19039, 643, 2459, 368, 341, 286, 1077, 282, 284, 16321, 486, 10674, 49282, 341, 310, 4269, 842, 25, 220, 21, 18, 39860, 3148, 310, 3766, 4096, 4136, 25, 220, 15, 87, 22, 22, 345, 286, 3634, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_reconnect() { struct MockClient { reconnect_count: Mutex<usize>, } impl Reconnect for MockClient { type Cl = (); fn reconnect(&self, _: u64) -> Result<()> { *self.reconnect_count.lock().unwrap() += 1; ...
rust_cleaned_test_functions.jsonl/25139
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 595 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 6459, 368, 341, 286, 2036, 14563, 2959, 341, 310, 50036, 3180, 25, 66215, 90244, 12520, 286, 555, 286, 11605, 1032, 6459, 369, 14563, 2959, 341, 310, 943, 2435, 284, 25162, 310, 5168, 50036,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_symbol_relocation() { test_interpreter_and_jit_asm!( " mov64 r1, r10 sub64 r1, 0x1 mov64 r2, 0x1 syscall BpfSyscallString mov64 r0, 0x0 exit", [72, 101, 108, 108, 111], ( b"BpfSyscallString" => syscalls::BpfS...
rust_cleaned_test_functions.jsonl/59067
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 264 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21179, 1288, 2527, 368, 341, 262, 1273, 15318, 28637, 8378, 5374, 275, 67529, 33673, 286, 6228, 286, 1974, 21, 19, 435, 16, 11, 435, 16, 15, 198, 286, 1186, 21, 19, 435, 16, 11, 220, 15, 87,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_class_definition() { ok("class Foo"); ok("class Foo()"); ok("class Foo(let a: Int)"); ok("class Foo(let a: Int, let b:Int)"); ok("class Foo(let a: Foo)"); ok("class Foo(let a: Bar) class Bar"); err( "class Foo(let a: Unknown)", ...
rust_cleaned_test_functions.jsonl/84183
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 303 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4790, 31698, 368, 341, 286, 5394, 445, 1040, 33428, 797, 286, 5394, 445, 1040, 33428, 45961, 286, 5394, 445, 1040, 33428, 22025, 264, 25, 1333, 20996, 286, 5394, 445, 1040, 33428, 22025, 264, 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_matching_pattern() { let t = "2010-10-10"; let p = LPattern::new("%dddd-%dd-%dd"); let caps = p.apply_to(&t); assert_eq!(p.is_match(caps, &t), true); }
rust_cleaned_test_functions.jsonl/81364
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70763, 21260, 368, 341, 262, 1077, 259, 284, 330, 17, 15, 16, 15, 12, 16, 15, 12, 16, 15, 876, 262, 1077, 281, 284, 444, 15760, 486, 931, 4430, 64100, 11069, 631, 11069, 631, 797, 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_log_config_default() { let default = LogConfig::default(); assert_eq!(default.level, LogLevel::default()); assert_eq!(default.rotation, LogRotation::default()); assert_eq!(default.prefix, default_log_prefix()); }
rust_cleaned_test_functions.jsonl/65305
{ "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, 5224, 5332, 9993, 368, 341, 286, 1077, 1638, 284, 2835, 2648, 486, 2258, 543, 286, 2060, 10714, 10297, 2258, 20099, 11, 63321, 486, 2258, 1423, 286, 2060, 10714, 10297, 2258, 23255, 11, 2835, 1844...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_hash_state_empty() { // hash of empty string unwrap!(::init()); let h_expected = [0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b...
rust_cleaned_test_functions.jsonl/26310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 281 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8950, 4387, 15124, 368, 341, 286, 442, 5175, 315, 4287, 914, 198, 286, 79813, 10297, 486, 2327, 1423, 286, 1077, 305, 32190, 284, 508, 15, 8371, 18, 11, 220, 15, 7929, 15, 11, 220, 15, 8148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ignore_environment() { let scene = TestScenario::new(util_name!()); let out = scene.ucmd().arg("-i").run().stdout; assert_eq!(out, ""); let out = scene.ucmd().arg("-").run().stdout; assert_eq!(out, ""); }
rust_cleaned_test_functions.jsonl/1545
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58493, 51774, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 5231, 262, 1077, 700, 284, 6109, 56334, 2277, 1005, 858, 13645, 72, 1827, 6108, 1005, 36358, 401, 262, 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_conn_str_with_endpoint_suffix_only() { let conn = "DefaultEndpointsProtocol=https;AccountName=foo;EndpointSuffix=core.windows.net;AccountKey=bar;"; let creds = parse_connection_string(conn, "container".to_string()).unwrap(); assert_eq!( "https://foo.blob.core...
rust_cleaned_test_functions.jsonl/106115
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17241, 2895, 6615, 36699, 37151, 18410, 368, 341, 286, 1077, 4534, 284, 330, 3675, 80786, 20689, 51999, 26, 7365, 675, 28, 7975, 26, 27380, 40177, 28, 2153, 68113, 5071, 26, 7365, 1592, 28, 2257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transpose() { let mut matrix = Matrix::new(2, 4, &[11, 12, 13, 14, 21, 22, 23, 24]); matrix.transpose(); let expected = Matrix::new(4, 2, &[11, 21, 12, 22, 13, 23, 14, 24]); assert!(matrix.equal(&expected)); }
rust_cleaned_test_functions.jsonl/56108
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7965, 2900, 368, 341, 286, 1077, 5206, 6172, 284, 11631, 486, 931, 7, 17, 11, 220, 19, 11, 44590, 16, 16, 11, 220, 16, 17, 11, 220, 16, 18, 11, 220, 16, 19, 11, 220, 17, 16, 11, 220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_range_compress() { let queries = vec![(0, 10), (10, 19), (20, 29)]; let coords = queries.iter().flat_map(|&(i, j)| vec![i, j + 1]).collect(); let index = SparseIndex::new(coords); assert_eq!(index.coords, vec![0, 10, 11, 20, 30]); }
rust_cleaned_test_functions.jsonl/133818
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 87845, 368, 341, 286, 1077, 19556, 284, 7486, 0, 9697, 15, 11, 220, 16, 15, 701, 320, 16, 15, 11, 220, 16, 24, 701, 320, 17, 15, 11, 220, 17, 24, 12587, 286, 1077, 23897, 284, 19556,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_arg_matches_sort() { let argv = vec!["lsd", "--sort", "time"]; let matches = app::build().get_matches_from_safe(argv).unwrap(); assert_eq!( Some(SortColumn::Time), SortColumn::from_arg_matches(&matches) ); let argv = vec!["lsd...
rust_cleaned_test_functions.jsonl/54294
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 519 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 6057, 38344, 18435, 368, 341, 286, 1077, 10213, 284, 7486, 0, 1183, 4730, 67, 497, 14482, 6860, 497, 330, 1678, 6332, 286, 1077, 9071, 284, 906, 486, 5834, 1005, 455, 38344, 5673, 34067, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1