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_vector_1() { encode(&[1,2,3,4], "01020304"); decode(&[1,2,3,4], "01020304"); }
rust_cleaned_test_functions.jsonl/123022
{ "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, 12247, 62, 16, 368, 341, 286, 16164, 2099, 58, 16, 11, 17, 11, 18, 11, 19, 1125, 330, 15, 16, 15, 17, 15, 18, 15, 19, 797, 286, 16895, 2099, 58, 16, 11, 17, 11, 18, 11, 19, 1125, 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
#[test] fn test_clear_overlapped_regions() { let init_regions = vec![ new_region(1, b"", b"k1", 1), new_region(2, b"k1", b"k2", 1), new_region(3, b"k3", b"k4", 1), new_region(4, b"k4", b"k5", 1), new_region(5, b"k6", b"k7", 1), new_...
rust_cleaned_test_functions.jsonl/33054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1046 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21811, 15431, 75, 5677, 58035, 368, 341, 286, 1077, 2930, 58035, 284, 7486, 90515, 310, 501, 20627, 7, 16, 11, 293, 56323, 293, 62911, 16, 497, 220, 16, 1326, 310, 501, 20627, 7, 17, 11, 293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_commit_serde() { let ctx = CryptoContext::new().unwrap(); let mut seed = [0; 64]; let rng = ctx.rng(); { let mut rng = rng.lock().unwrap(); rng.fill_bytes(&mut seed); } let commit_ctx = PedersenCtx::new(&seed); let ...
rust_cleaned_test_functions.jsonl/65062
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 318 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36346, 75861, 450, 368, 341, 286, 1077, 5635, 284, 32886, 1972, 486, 931, 1005, 15454, 543, 286, 1077, 5206, 10320, 284, 508, 15, 26, 220, 21, 19, 935, 286, 1077, 28422, 284, 5635, 1746, 968, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_size() { for pair in &[ (4404019, "4.2m"), (2164785152, "2G_16.5M"), (1659790359820, "1.5t 9.8 G 248281"), ] { let result = super::parse_size(pair.1).unwrap(); assert_eq!(pair.0, result); println!("...
rust_cleaned_test_functions.jsonl/24731
{ "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, 21039, 2368, 368, 341, 286, 369, 6716, 304, 609, 9640, 310, 320, 19, 19, 15, 19, 15, 16, 24, 11, 330, 19, 13, 17, 76, 4461, 310, 320, 17, 16, 21, 19, 22, 23, 20, 16, 20, 17, 11, 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...
2
#[test] fn test_insert_in_between_semiglobal() { let x = b"GGGGG"; let y = b"GGTAGGG"; let score = |a: u8, b: u8| if a == b { 1i32 } else { -3i32 }; let mut aligner = banded::Aligner::new(-5, -1, &score, 10, 10); let alignment = aligner.semiglobal(x, y); assert_...
rust_cleaned_test_functions.jsonl/126758
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 1243, 48302, 30442, 343, 2042, 368, 341, 286, 1077, 856, 284, 293, 1, 22254, 22254, 38, 876, 286, 1077, 379, 284, 293, 1, 22254, 32144, 22254, 3302, 286, 1077, 5456, 284, 760, 64, 25, 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_purge_unconfirmed_duplicate_slot() { let (vote_simulator, _) = setup_default_forks(2); let VoteSimulator { bank_forks, mut progress, .. } = vote_simulator; let mut descendants = bank_forks.read().unwrap().descendants().clone(); ...
rust_cleaned_test_functions.jsonl/11066
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 39823, 4907, 41028, 70434, 27563, 368, 341, 286, 1077, 320, 29358, 18314, 10511, 11, 27439, 284, 6505, 9993, 761, 73302, 7, 17, 317, 286, 1077, 34034, 14027, 10511, 341, 310, 6073, 761, 73302...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_generate_msg_headers_with_signing_key() { let test_timestamp = 1614265330; let test_body = "{\"test\": 2432232314}"; let test_key = EndpointSecret(base64::decode("MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw").unwrap()); let test_message_id = MessageId("msg_p5jXN8AQM9LWM0D4lo...
rust_cleaned_test_functions.jsonl/5223
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 446 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 6483, 26719, 6615, 11172, 287, 3097, 368, 341, 286, 1077, 1273, 23073, 284, 220, 16, 21, 16, 19, 17, 21, 20, 18, 18, 15, 280, 286, 1077, 1273, 14114, 284, 54734, 1944, 11693, 220, 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_time_machine_request_builder_simple() { let mut blocks = vec![ExcludeBlock::Daily, ExcludeBlock::Alerts]; let request = TimeMachineRequestBuilder::new(API_KEY, LAT, LONG, TIME) .exclude_block(ExcludeBlock::Hourly) .exclude_blocks(&mut blocks) ...
rust_cleaned_test_functions.jsonl/24718
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 773 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3009, 38695, 7893, 28532, 30015, 368, 341, 286, 1077, 5206, 10010, 284, 7486, 20703, 95239, 4713, 486, 43553, 11, 98477, 4713, 486, 9676, 82, 4821, 286, 1077, 1681, 284, 4120, 21605, 1900, 3297, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_insert() { let mut m = HashMap::new(); assert_eq!(m.len(), 0); assert!(m.insert(1, 2).is_none()); assert_eq!(m.len(), 1); assert!(m.insert(2, 4).is_none()); assert_eq!(m.len(), 2); assert_eq!(*m.get(&1).unwrap(), 2); assert_eq!(*m.g...
rust_cleaned_test_functions.jsonl/8495
{ "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, 17678, 368, 341, 286, 1077, 5206, 296, 284, 10528, 486, 931, 543, 286, 2060, 10714, 10297, 76, 19406, 1507, 220, 15, 317, 286, 2060, 10297, 76, 7030, 7, 16, 11, 220, 17, 568, 285, 31488, 1423,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mvcc_txn_rollback() { test_mvcc_txn_rollback_imp(b"k", b"v"); let long_value = "v".repeat(SHORT_VALUE_MAX_LEN + 1).into_bytes(); test_mvcc_txn_rollback_imp(b"k2", &long_value); }
rust_cleaned_test_functions.jsonl/16076
{ "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, 73187, 638, 92299, 62, 33559, 368, 341, 286, 1273, 73187, 638, 92299, 62, 33559, 36788, 1883, 62911, 497, 293, 1, 85, 3071, 286, 1077, 1293, 3142, 284, 330, 85, 3263, 30624, 3759, 70702, 7476, 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_drain_items_zero_sized() { let mut vec = vec![(), (), ()]; let mut vec2 = vec![]; for i in vec.drain(..) { vec2.push(i); } assert_eq!(vec, []); assert_eq!(vec2, [(), (), ()]); }
rust_cleaned_test_functions.jsonl/24421
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26680, 466, 12134, 19359, 643, 1506, 368, 341, 262, 1077, 5206, 7486, 284, 7486, 20703, 1507, 38104, 1719, 935, 262, 1077, 5206, 7486, 17, 284, 7486, 0, 15078, 262, 369, 600, 304, 7486, 950, 290...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_default_samesite_cookie_option_is_correct() { let same_site_option = SameSiteCookieOption::default(); assert_eq!(same_site_option, SameSiteCookieOption::Lax); }
rust_cleaned_test_functions.jsonl/101593
{ "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, 9993, 643, 971, 632, 38663, 9672, 6892, 31550, 368, 341, 286, 1077, 1852, 24507, 9672, 284, 25739, 17597, 20616, 5341, 486, 2258, 543, 286, 2060, 10714, 10297, 24063, 24507, 9672, 11, 25739, 17597, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_raw_string() { let source = "r\"\\\\\" \"\\\\\""; let tokens = lex_source(source); assert_eq!(tokens, vec![stok("\\\\"), stok("\\"), Tok::Newline,]); }
rust_cleaned_test_functions.jsonl/95228
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 3904, 368, 341, 286, 1077, 2530, 284, 330, 81, 2105, 51007, 2105, 7245, 51007, 95349, 286, 1077, 11211, 284, 22429, 10347, 12437, 317, 286, 2060, 10714, 10297, 30566, 11, 7486, 20703, 267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_float_real_as_string() { test_none_with_ctx_and_extra(cast_float_real_as_string); let cs: Vec<(f32, Vec<u8>, String)> = vec![ ( f32::MAX, f32::MAX.to_string().into_bytes(), f32::MAX.to_string(), ), ...
rust_cleaned_test_functions.jsonl/101787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 619 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17586, 15266, 11898, 3904, 368, 341, 286, 1273, 31488, 6615, 15147, 8378, 31858, 1337, 559, 17586, 15266, 11898, 3904, 626, 286, 1077, 10532, 25, 11312, 28706, 69, 18, 17, 11, 11312, 34837, 23, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_connection_close() -> Result<()> { let conn = Connection::open_in_memory()?; conn.prepare_cached("SELECT * FROM sqlite_master;")?; conn.close().expect("connection not closed"); Ok(()) }
rust_cleaned_test_functions.jsonl/14522
{ "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, 15866, 12704, 368, 1464, 5714, 71698, 341, 286, 1077, 4534, 284, 11032, 486, 2508, 1243, 19195, 94136, 286, 4534, 21934, 64369, 445, 4858, 353, 4295, 22003, 24582, 26, 899, 69493, 286, 4534, 4653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_prune_2_executed() { let mut block_tree = create_block_tree(); set_executed(&mut block_tree, &[id(1), id(2)]); block_tree.mark_as_committed(id(2), ()).unwrap(); let to_store = block_tree.prune(); assert_to_store(&to_store, &[id(1), id(2)]); assert_eq!(block_tree.last_com...
rust_cleaned_test_functions.jsonl/87733
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5294, 2886, 62, 17, 18430, 2774, 368, 341, 262, 1077, 5206, 2504, 11663, 284, 1855, 7113, 11663, 543, 262, 738, 18430, 2774, 2099, 6984, 2504, 11663, 11, 44590, 307, 7, 16, 701, 877, 7, 17, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_table_encoding() { let table = Table::new(1, 2); let bytes =table.to_bytes(); let table2 = Table::from_bytes(&bytes).unwrap(); assert_eq!(table, table2); }
rust_cleaned_test_functions.jsonl/28808
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5237, 37613, 368, 341, 286, 1077, 1965, 284, 6633, 486, 931, 7, 16, 11, 220, 17, 317, 286, 1077, 5820, 284, 2005, 2389, 12524, 543, 286, 1077, 1965, 17, 284, 6633, 486, 1499, 12524, 2099, 9651...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_underscore_flavors() { check( r#" macro_rules! m1 { ($a:ty) => { ok!(); } } m1![_]; macro_rules! m2 { ($a:lifetime) => { ok!(); } } m2!['_]; "#, expect![[r#" macro_rules! m1 { ($a:ty) => { ok!(); } } ok!(); macro_rules! m2 { ($a:lifetime) => { ok!(); } } ok!(); "#]], );...
rust_cleaned_test_functions.jsonl/85246
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 53933, 5081, 50485, 368, 341, 262, 1779, 1006, 286, 435, 2, 698, 32606, 21407, 0, 296, 16, 314, 1711, 64, 25, 1881, 8, 589, 314, 5394, 0, 2129, 335, 456, 76, 16, 0, 13496, 4821, 32606, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_enum_key() { #[derive(Debug, Deserialize, PartialEq, Eq, Hash)] #[serde(rename_all = "lowercase")] enum Quark { Up, Down, Strange, Charm, Bottom, Top, } #[derive(Debug, Deserialize)] struct Settings { proton: Map<Qu...
rust_cleaned_test_functions.jsonl/39934
{ "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, 31054, 3097, 368, 341, 262, 11506, 27098, 42618, 11, 48440, 11, 55039, 11, 33122, 11, 6531, 5563, 262, 11506, 47024, 51787, 5705, 284, 330, 14772, 5638, 5422, 262, 7618, 3406, 838, 341, 286, 3138,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_exported_in() { let root_dir = mkdir(); assert!(!Resource::exported_in(root_dir.path())); touch(root_dir.path().join(CKB_CONFIG_FILE_NAME)); assert!(Resource::exported_in(root_dir.path())); }
rust_cleaned_test_functions.jsonl/71690
{ "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, 27114, 291, 1243, 368, 341, 286, 1077, 3704, 4334, 284, 30073, 543, 286, 2060, 0, 3471, 4783, 486, 1533, 291, 1243, 9206, 4334, 3875, 7392, 286, 5796, 9206, 4334, 3875, 1005, 5987, 7, 3021, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_only_public_channels_includes_no_channels_in_hints() { 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); ...
rust_cleaned_test_functions.jsonl/65875
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 433 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18410, 27074, 19291, 1243, 7396, 6536, 19291, 1243, 1523, 21042, 368, 341, 197, 10217, 26023, 1645, 18343, 82, 284, 1855, 45552, 1645, 18343, 82, 7, 18, 317, 197, 10217, 2436, 18343, 82, 284, 1855...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_index_mut() { let mut v = VECTOR3; v[1] = 0; assert_eq!(v, [1, 0, 3].into()); }
rust_cleaned_test_functions.jsonl/39582
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3560, 29523, 368, 341, 310, 1077, 5206, 348, 284, 71459, 18, 280, 310, 348, 58, 16, 60, 284, 220, 15, 280, 310, 2060, 10714, 10297, 85, 11, 508, 16, 11, 220, 15, 11, 220, 18, 936, 18122, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_two_rule_bodies() -> TestResult { let mut p = Polar::new(); p.load_str( r#"f(x) if x = y and g(y); g(y) if y = 1;"#, )?; qvar(&mut p, "f(x)", "x", values![1]); Ok(()) }
rust_cleaned_test_functions.jsonl/97624
{ "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, 23241, 21124, 880, 10028, 368, 1464, 3393, 2077, 341, 262, 1077, 5206, 281, 284, 55896, 486, 931, 543, 262, 281, 5104, 2895, 1006, 286, 435, 55543, 69, 2075, 8, 421, 856, 284, 379, 323, 342, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_nested_message() { let msg = r#"message A { message B { repeated int32 a = 1; optional string b = 2; } optional b = 1; }"#; let mess = message(msg.as_bytes()); if let ::nom::IResult::Done(_, mess) = mess { ...
rust_cleaned_test_functions.jsonl/90079
{ "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, 66279, 6462, 368, 341, 286, 1077, 3750, 284, 435, 55543, 1994, 362, 198, 262, 341, 286, 1943, 425, 341, 310, 11504, 526, 18, 17, 264, 284, 220, 16, 280, 310, 10101, 914, 293, 284, 220, 17, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_aes_256_ecb() { let k0 = [ 0x00u8, 0x01u8, 0x02u8, 0x03u8, 0x04u8, 0x05u8, 0x06u8, 0x07u8, 0x08u8, 0x09u8, 0x0au8, 0x0bu8, 0x0cu8, 0x0du8, 0x0eu8, 0x0fu8, 0x10u8, 0x11u8, 0x12u8, 0x13u8, 0x14u8, 0x15u8, 0x16u8, 0x17u8, 0x18u8, 0x19u8, 0x1au8, 0x1bu8, 0...
rust_cleaned_test_functions.jsonl/110531
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1096 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 90958, 62, 17, 20, 21, 36844, 65, 368, 341, 286, 1077, 595, 15, 284, 2278, 310, 220, 15, 87, 15, 15, 84, 23, 11, 220, 15, 87, 15, 16, 84, 23, 11, 220, 15, 87, 15, 17, 84, 23, 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_fq_inverse() { assert!(Fq::zero().inverse().is_none()); let mut rng = ark_std::test_rng(); let one = Fq::one(); for _ in 0..1000 { // Ensure that a * a^-1 = 1 let mut a = Fq::rand(&mut rng); let ainv = a.inverse().unwrap(); a.mul_assign(&ainv); ...
rust_cleaned_test_functions.jsonl/3546
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 63333, 368, 341, 262, 2060, 10297, 37, 80, 486, 14154, 1005, 61482, 1005, 285, 31488, 5231, 262, 1077, 5206, 28422, 284, 55217, 15656, 486, 1944, 66849, 1428, 262, 1077, 825, 284, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_observe_installation_error() { block_on(async { let response = json!({"response":{ "server": "prod", "protocol": "3.0", "app": [{ "appid": "{00000000-0000-0000-0000-000000000001}", "status": "ok", ...
rust_cleaned_test_functions.jsonl/59671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1028 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36322, 13267, 34245, 367, 4096, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 2033, 284, 2951, 0, 16864, 2322, 12602, 1060, 330, 4030, 788, 330, 19748, 756, 1060, 330, 17014, 788, 330, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_added_file_directory_path_containing_space() { let config = integration_test_utils::make_config_from_args(&[]); let output = integration_test_utils::run_delta(ADDED_FILES_DIRECTORY_PATH_CONTAINING_SPACE, &config); let output = strip_ansi_codes(&output); ...
rust_cleaned_test_functions.jsonl/70037
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37653, 2458, 14846, 2638, 10260, 2056, 14663, 368, 341, 286, 1077, 2193, 284, 17590, 4452, 17309, 486, 6927, 5332, 5673, 8384, 2099, 56703, 286, 1077, 2550, 4035, 310, 17590, 4452, 17309, 486, 6108,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_minus_tag() { assert_eq!(minus_tag("-abc").unwrap().1, tag!("abc")); assert_eq!(minus_tag("-abc123").unwrap().1, tag!("abc123")); assert!(minus_tag("+abc123").is_err()); assert!(minus_tag("-1abc").is_err()); }
rust_cleaned_test_functions.jsonl/86121
{ "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, 38457, 9372, 368, 341, 286, 2060, 10714, 10297, 38365, 9372, 13645, 13683, 1827, 15454, 1005, 16, 11, 4772, 17223, 13683, 4010, 286, 2060, 10714, 10297, 38365, 9372, 13645, 13683, 16, 17, 18, 1827, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_new_key_data_cmac_basic() { tink_mac::init(); let km = tink_core::registry::get_key_manager(tink_tests::AES_CMAC_TYPE_URL) .expect("AES CMAC key manager not found"); let test_formats = gen_valid_cmac_key_formats(); for (i, test_format) in test_formats.iter().enumerate() {...
rust_cleaned_test_functions.jsonl/37675
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 549 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 3097, 1769, 666, 11948, 34729, 368, 341, 262, 90584, 22802, 486, 2327, 543, 262, 1077, 13136, 284, 90584, 15467, 486, 29172, 486, 455, 3097, 12144, 1155, 766, 32509, 486, 69168, 920, 25788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_andq_imm_reg() { assert_emit!(0x48, 0x83, 0xe0, 0xf8; emit_andq_imm_reg(-8, RAX)); assert_emit!(0x48, 0x25, 0x80, 0, 0, 0; emit_andq_imm_reg(128, RAX)); assert_emit!(0x49, 0x83, 0xe1, 0xf8; emit_andq_imm_reg(-8, R9)); assert_...
rust_cleaned_test_functions.jsonl/85511
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8378, 80, 71370, 4920, 368, 341, 1789, 286, 2060, 69082, 10297, 15, 87, 19, 23, 11, 220, 15, 87, 23, 18, 11, 220, 15, 8371, 15, 11, 220, 15, 5848, 23, 26, 16691, 8378, 80, 71370, 4920, 408...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bank_get_account_modified_since_parent() { let pubkey = solana_sdk::pubkey::new_rand(); let (genesis_config, mint_keypair) = create_genesis_config(500); let bank1 = Arc::new(Bank::new(&genesis_config)); bank1.transfer(1, &mint_keypair, &pubkey).unwrap(); ...
rust_cleaned_test_functions.jsonl/63741
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 613 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35733, 3062, 13500, 37749, 56262, 15960, 368, 341, 286, 1077, 95116, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 1428, 286, 1077, 320, 77894, 5332, 11, 28337, 3097, 12670, 8, 284, 185...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_indexed_f64() -> crate::Result<()> { let mut schema_builder = Schema::builder(); let value_field = schema_builder.add_f64_field("value", INDEXED); let schema = schema_builder.build(); let index = Index::create_in_ram(schema); let mut index_writer = index....
rust_cleaned_test_functions.jsonl/12720
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 421 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3560, 291, 761, 21, 19, 368, 1464, 17717, 486, 2077, 71698, 341, 286, 1077, 5206, 10802, 28532, 284, 12539, 486, 17850, 543, 286, 1077, 897, 5013, 284, 10802, 28532, 1364, 761, 21, 19, 5013, 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...
6
#[test] fn test_drop_cache() { let mut cache = Cache::with_capacity(100); let key1 = Key::Rid(RID(1)); let key2 = Key::Rid(RID(2)); let key3 = Key::Rid(RID(3)); let dbs = Box::new(DivBufShared::from(vec![0u8; 5])); cache.insert(key1, dbs); let dbs = Box::new(DivBufShared::from(vec![0...
rust_cleaned_test_functions.jsonl/90036
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 320 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29584, 11529, 368, 341, 262, 1077, 5206, 6500, 284, 19479, 486, 4197, 35603, 7, 16, 15, 15, 317, 262, 1077, 1376, 16, 284, 5309, 486, 49, 307, 2785, 915, 7, 16, 1106, 262, 1077, 1376, 17, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_checked_mul() { for elm in MUL_TRIPLES.iter() { let (a_vec, b_vec, c_vec) = *elm; let a = BigInt::from_slice(Plus, a_vec); let b = BigInt::from_slice(Plus, b_vec); let c = BigInt::from_slice(Plus, c_vec); assert!(a.checked_mul(&b).unwrap() == c); ...
rust_cleaned_test_functions.jsonl/56635
{ "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, 56456, 24944, 368, 341, 262, 369, 42205, 304, 386, 1094, 6410, 3298, 14017, 19471, 368, 341, 286, 1077, 320, 64, 13251, 11, 293, 13251, 11, 272, 13251, 8, 284, 353, 23162, 280, 286, 1077, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parse_icmp_packet_in_ip_packet_in_ethernet_frame() { set_logger_for_test(); use crate::testdata::icmp_echo_ethernet::*; let (src_mac, dst_mac, src_ip, dst_ip, _, _, _) = parse_icmp_packet_in_ip_packet_in_ethernet_frame::<Ipv4, _, IcmpEchoReply, _>( ...
rust_cleaned_test_functions.jsonl/13587
{ "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, 21039, 32747, 1307, 21078, 1243, 10385, 21078, 1243, 57757, 13845, 8929, 368, 341, 286, 738, 27413, 5478, 4452, 543, 286, 990, 17717, 486, 92425, 486, 50774, 68628, 57757, 13845, 56162, 286, 1077, 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_quoted_chars() { assert_eq!( quoted_chars(r"'\u1111\u2222\U00000101' some other text"), Ok((" some other text", "\u{1111}\u{2222}\u{101}".into())) ); assert_eq!( quoted_chars(r"' \u1111hello<'"), Ok(("", " \u{1111}hello<".i...
rust_cleaned_test_functions.jsonl/21710
{ "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, 11280, 9253, 37418, 368, 341, 286, 2060, 10714, 33673, 310, 23237, 37418, 2601, 1, 15777, 84, 16, 16, 16, 16, 3770, 17, 17, 17, 17, 59, 52, 15, 15, 15, 15, 15, 16, 15, 16, 6, 1045, 1008, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fail_tag_too_long() { let src_data = b"(test) abc (tag)123"; let mut limits = yass_parser::ParserLimits::unlimited(); limits.max_tag_length = 2; let expected_error = yass_parser::ParserError::TagTooLong { pos: yass::Pos::new(0, 12) }; assert_eq!(yass_parser::parse(limits, src...
rust_cleaned_test_functions.jsonl/126509
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22121, 9372, 2346, 78, 17799, 368, 341, 262, 1077, 2286, 1769, 284, 293, 29209, 1944, 8, 39022, 320, 4578, 8, 16, 17, 18, 876, 262, 1077, 5206, 13388, 284, 379, 395, 18517, 486, 6570, 94588, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_remove_dbg_not_applicable() { check_assist_not_applicable(remove_dbg, "$0vec![1, 2, 3]"); check_assist_not_applicable(remove_dbg, "$0dbg(5, 6, 7)"); check_assist_not_applicable(remove_dbg, "$0dbg!(5, 6, 7"); }
rust_cleaned_test_functions.jsonl/13607
{ "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, 18193, 44124, 7913, 8191, 46114, 368, 341, 286, 1779, 12083, 380, 7913, 8191, 46114, 67709, 44124, 11, 5201, 15, 4083, 20703, 16, 11, 220, 17, 11, 220, 18, 37389, 286, 1779, 12083, 380, 7913, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_success() { let test_vector = vec![ (10u64, 7u64, 3u64), // Basic transfer (0, 0, 0), // Zero transfer (std::u64::MAX, 1, 1), (std::u64::MAX, 10000, 1), (std::u64::MAX, 1, 10000), // Very big fee ]; fo...
rust_cleaned_test_functions.jsonl/56186
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1004 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35403, 18632, 368, 341, 1066, 262, 1077, 1273, 12247, 284, 7486, 90515, 286, 320, 16, 15, 84, 21, 19, 11, 220, 22, 84, 21, 19, 11, 220, 18, 84, 21, 19, 701, 981, 442, 14625, 8317, 198, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_boats_needed_1() { assert_eq!(boats_needed(&[100, 200, 150, 80], 200), 3); }
rust_cleaned_test_functions.jsonl/94690
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 49 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56013, 1862, 57426, 62, 16, 368, 341, 262, 2060, 10714, 10297, 94358, 57426, 2099, 58, 16, 15, 15, 11, 220, 17, 15, 15, 11, 220, 16, 20, 15, 11, 220, 23, 15, 1125, 220, 17, 15, 15, 701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_buffer_data_equality() { let buf1 = Buffer::from(&[0, 1, 2, 3, 4]); let buf2 = Buffer::from(&[0, 1, 2, 3, 4]); assert_eq!(buf1, buf2); // slice with same offset should still preserve equality let buf3 = buf1.slice(2); assert_ne!(buf1, buf3); ...
rust_cleaned_test_functions.jsonl/25069
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 413 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7776, 1769, 2204, 10473, 368, 341, 286, 1077, 6607, 16, 284, 10312, 486, 1499, 2099, 58, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 2558, 286, 1077, 6607, 17, 284, 10312, 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_recv_truncated_packet() { let mut socket = ipv4_locals::socket(buffer(1), buffer(0)); let mut buffer = vec![0; 128]; buffer[..ipv4_locals::PACKET_BYTES.len()].copy_from_slice(&ipv4_locals::PACKET_BYTES[..]); assert!(socket.accepts(&ipv4_locals::HEADER_REPR)); ...
rust_cleaned_test_functions.jsonl/51531
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36118, 3547, 38007, 21078, 368, 341, 286, 1077, 5206, 7575, 284, 45475, 19, 94552, 486, 9556, 12584, 7, 16, 701, 4147, 7, 15, 3237, 286, 1077, 5206, 4147, 284, 7486, 20703, 15, 26, 220, 16, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_new_getters() { let v = Vec3::new(1.0f64, 2.0f64, 3.0f64); assert_eq!(v.x(), 1.0f64); assert_eq!(v.y(), 2.0f64); assert_eq!(v.z(), 3.0f64); assert_eq!(v.r(), 1.0f64); assert_eq!(v.g(), 2.0f64); assert_eq!(v.b(), 3.0f64); }
rust_cleaned_test_functions.jsonl/120471
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 3062, 5045, 368, 972, 286, 1077, 348, 284, 11312, 18, 486, 931, 7, 16, 13, 15, 69, 21, 19, 11, 220, 17, 13, 15, 69, 21, 19, 11, 220, 18, 13, 15, 69, 21, 19, 3079, 286, 2060, 1071...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eth_aggregate_verify_no_check2() { let tbl = [0, 1, 2, 15, 16, 17, 50]; for i in 0..tbl.len() { one_test_eth_aggregate_verify_no_check(tbl[i]); } }
rust_cleaned_test_functions.jsonl/8597
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57757, 20587, 14240, 35638, 6536, 7200, 17, 368, 341, 262, 1077, 21173, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 16, 20, 11, 220, 16, 21, 11, 220, 16, 22, 11, 220, 20, 15, 935, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_rev_try_folds() { let f = &|acc, x| i32::checked_add(2*acc, x); assert_eq!((1..10).rev().try_fold(7, f), (1..10).try_rfold(7, f)); assert_eq!((1..10).rev().try_rfold(7, f), (1..10).try_fold(7, f)); let a = [10, 20, 30, 40, 100, 60, 70, 80, 90]; let mut iter = a.iter().rev();...
rust_cleaned_test_functions.jsonl/54185
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38082, 53283, 761, 18431, 368, 341, 262, 1077, 282, 284, 609, 91, 4475, 11, 856, 91, 600, 18, 17, 486, 7549, 2891, 7, 17, 9, 4475, 11, 856, 317, 262, 2060, 10714, 0, 1188, 16, 496, 16, 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_tls_save() { let mut config = Config::new_with_local_cluster("localhost:9003".to_owned()); let inline_tls_config = TlsConfig::Inline(TlsCerts { key: "ABCDEFF".to_owned(), cert: "JJJJ".to_owned(), ca_cert: "XXXXX".to_owned(), domain:...
rust_cleaned_test_functions.jsonl/4388
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 394 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71262, 15376, 368, 341, 286, 1077, 5206, 2193, 284, 5532, 486, 931, 6615, 13564, 28441, 445, 8301, 25, 24, 15, 15, 18, 3263, 983, 51973, 1423, 286, 1077, 7381, 71262, 5332, 284, 350, 4730, 2648,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_single_system_reseller() { assert_eq!( parse("redssp.com, 57013, RESELLER").unwrap(), vec![Row::Record(Record { domain: "redssp.com", account_id: "57013", relation: Relation::Reseller, authority_id: None, })] ); }
rust_cleaned_test_functions.jsonl/111500
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 170 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 17687, 4918, 7073, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 445, 1151, 67233, 905, 11, 220, 20, 22, 15, 16, 18, 11, 3596, 99059, 640, 1827, 15454, 3148, 286, 7486, 20703, 3102, 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_convert_to_two_touch_string_error() { let c = Converter::new(); let result = c.convert_to_two_touch_string("筋肉".to_string()); assert!(result.is_err()); let result = c.convert_to_two_touch_string("".to_string()); assert!(result.is_err()); let result...
rust_cleaned_test_functions.jsonl/101149
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 2346, 23241, 60840, 3904, 4096, 368, 341, 286, 1077, 272, 284, 39328, 486, 931, 543, 286, 1077, 1102, 284, 272, 24012, 2346, 23241, 60840, 3904, 445, 102714, 99894, 3263, 983, 3904, 1423, 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_select_candidates_by_total_usage_no_candidates() { // no input candidates -- none should be selected solana_logger::setup(); let candidates: ShrinkCandidates = HashMap::new(); let (selected_candidates, next_candidates) = AccountsDb::select_candidates_by_total_usa...
rust_cleaned_test_functions.jsonl/40228
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13051, 73553, 3710, 10784, 31507, 6536, 73553, 368, 341, 286, 442, 902, 1946, 11178, 1177, 6857, 1265, 387, 4091, 198, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 11178, 25, 1417, 34365, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rotate_nearest_rgba() { fn rotate_nearest_about_center(image: &RgbaImage) -> RgbaImage { rotate_about_center(image, std::f32::consts::PI/4f32, Interpolation::Nearest) } compare_to_truth_rgba("elephant_rgba.png", "elephant_rotate_nearest_rgba.png", rotate_nearest_about_center)...
rust_cleaned_test_functions.jsonl/20066
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 141 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60834, 13925, 15432, 95229, 368, 341, 262, 5168, 16919, 13925, 15432, 57975, 21087, 10075, 25, 609, 49, 56380, 1906, 8, 1464, 431, 56380, 1906, 341, 286, 16919, 57975, 21087, 10075, 11, 1460, 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_ceil() { let tests = vec![ (ScalarFuncSig::CeilReal, Datum::F64(3.45), Datum::F64(4f64)), ( ScalarFuncSig::CeilReal, Datum::F64(-3.45), Datum::F64(-3f64), ), ( ScalarFuncSig::C...
rust_cleaned_test_functions.jsonl/125521
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1500 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 22058, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 320, 20639, 9626, 47246, 486, 42170, 321, 12768, 11, 68459, 486, 37, 21, 19, 7, 18, 13, 19, 20, 701, 68459, 486, 37, 21, 19, 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...
5
#[test] fn test_load_write_is_identical() { const BVH_STRING: &str = include_str!("../data/test_simple.bvh"); let bvh = bvh_anim::from_str(BVH_STRING).unwrap(); let bvh_string = WriteOptions::new() .with_indent(IndentStyle::with_spaces(4)) .with_offset_significant_figures(1) ...
rust_cleaned_test_functions.jsonl/50211
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 9165, 6892, 38399, 938, 368, 341, 262, 733, 40100, 39, 12283, 25, 609, 495, 284, 2924, 2895, 17223, 1244, 691, 12697, 30015, 948, 29919, 797, 262, 1077, 293, 29919, 284, 293, 29919, 58076, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_raw_parts() { let buf = unsafe { Buffer::from_raw_parts(null_mut(), 0, 0) }; assert_eq!(0, buf.len()); assert_eq!(0, buf.data().len()); assert_eq!(0, buf.capacity()); assert!(buf.raw_data().is_null()); let buf = Buffer::from(&[0, 1, 2, 3, 4])...
rust_cleaned_test_functions.jsonl/47240
{ "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, 5673, 16067, 33217, 368, 341, 286, 1077, 6607, 284, 19860, 314, 10312, 486, 1499, 16067, 33217, 4967, 29523, 1507, 220, 15, 11, 220, 15, 8, 2605, 286, 2060, 10714, 10297, 15, 11, 6607, 19406, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sum_f64_between_ints_that_sum_to_0() { assert_eq!([1e30, 1.2, -1e30].sum(), 1.2); }
rust_cleaned_test_functions.jsonl/83415
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 69 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10160, 761, 21, 19, 48302, 4042, 82, 70197, 10160, 2346, 62, 15, 368, 341, 286, 2060, 10714, 0, 2561, 16, 68, 18, 15, 11, 220, 16, 13, 17, 11, 481, 16, 68, 18, 15, 936, 1242, 1507, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_namespace() { let test_struct = quote! { #[avro(namespace = "namespace.testing")] struct A { a: i32, b: String } }; match syn::parse2::<DeriveInput>(test_struct) { Ok(mut input) => { ...
rust_cleaned_test_functions.jsonl/110872
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 439 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41571, 368, 341, 286, 1077, 1273, 15126, 284, 12641, 0, 341, 310, 11506, 402, 299, 52397, 284, 330, 2231, 45056, 5422, 310, 2036, 362, 341, 394, 264, 25, 600, 18, 17, 345, 394, 293, 25, 923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_look_at_lh_eye_to_origin() { let eye = Point3::new(-1.0, -1.0, -1.0); let target = Point3::new(1.0, 1.0, 1.0); let up = Vector3::unit_y(); let look_at = Matrix4x4::look_at_lh(&eye, &target, &up); let expected = Vector4::unit_w(); let result = look_...
rust_cleaned_test_functions.jsonl/129141
{ "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, 24271, 3752, 907, 71, 76087, 2346, 34043, 368, 341, 286, 1077, 7912, 284, 5126, 18, 486, 931, 4080, 16, 13, 15, 11, 481, 16, 13, 15, 11, 481, 16, 13, 15, 317, 286, 1077, 2169, 284, 5126, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_capacity() { let eallocator = EarlyAllocator::new(0x0000, 0x1000); assert_eq!(eallocator.capacity(), 0x1000); }
rust_cleaned_test_functions.jsonl/91468
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35603, 368, 341, 286, 1077, 384, 57631, 284, 22752, 42730, 486, 931, 7, 15, 87, 15, 15, 15, 15, 11, 220, 15, 87, 16, 15, 15, 15, 626, 286, 2060, 10714, 10297, 68, 57631, 59168, 1507, 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
#[test] fn test_default_sort_recent() { let (app, anon, user) = TestApp::init().with_user(); let user = user.as_model(); let (green_crate, potato_crate) = app.db(|conn| { // More than 90 days ago let green_crate = CrateBuilder::new("green_ball", user.id) .description("Fo...
rust_cleaned_test_functions.jsonl/38399
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 909 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 18435, 62361, 368, 341, 262, 1077, 320, 676, 11, 74812, 11, 1196, 8, 284, 3393, 2164, 486, 2327, 1005, 4197, 3317, 543, 262, 1077, 1196, 284, 1196, 5357, 5047, 1428, 262, 1077, 320, 13250,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_i64() { let config = Value::Integer(42); assert_eq!(<i64>::from_config(&config).unwrap(), 42); }
rust_cleaned_test_functions.jsonl/8244
{ "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, 5673, 5318, 21, 19, 368, 341, 286, 1077, 2193, 284, 5162, 486, 3486, 7, 19, 17, 317, 286, 2060, 10714, 10297, 27, 72, 21, 19, 6831, 1499, 5332, 2099, 1676, 568, 15454, 1507, 220, 19, 17, 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
#[test] fn test_blocked_index_oob() { let data = [0, 1, 2, 3, 4]; let iter = BlockedIter::<[u32; 2], _>::from_slice(&data); iter[2]; }
rust_cleaned_test_functions.jsonl/16484
{ "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, 89223, 3560, 14179, 674, 368, 341, 262, 1077, 821, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 262, 1077, 5367, 284, 63996, 8537, 27638, 58, 84, 18, 17, 26, 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
#[test] fn test_method_matches() { let mapper = ProguardMapper::new(ProguardMapping::new(MAPPING)); let mut mapped = mapper.remap_frame(&StackFrame::new("android.support.constraint.a.a", "a", 320)); assert_eq!( mapped.next().unwrap(), StackFrame::new( "android.s...
rust_cleaned_test_functions.jsonl/73311
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9032, 38344, 368, 341, 262, 1077, 24501, 284, 1298, 26098, 10989, 486, 931, 7, 1336, 26098, 6807, 486, 931, 3189, 55163, 3237, 262, 1077, 5206, 23844, 4035, 286, 24501, 1327, 2186, 8929, 2099, 433...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_print_invalid_ident() { let source = r#"roo$t { } "#; let doc = Document::parse(source); if let Err(err) = doc { let mut out: Vec<u8> = Vec::new(); format_parse_error(&mut out, source.lines(), err).unwrap(); assert_eq!( ...
rust_cleaned_test_functions.jsonl/17043
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10064, 31433, 38399, 368, 341, 286, 1077, 2530, 284, 435, 55543, 299, 78, 33118, 1476, 532, 286, 5869, 280, 286, 1077, 4629, 284, 11789, 486, 6400, 12437, 317, 286, 421, 1077, 15495, 3964, 8, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_single_node_commit() { setup_for_test(); let mut tt = Network::new(vec![None]); tt.send(vec![new_message(1, 1, MessageType::MsgHup, 0)]); tt.send(vec![new_message(1, 1, MessageType::MsgPropose, 1)]); tt.send(vec![new_message(1, 1, MessageType::MsgPropose, 1)]); assert_eq...
rust_cleaned_test_functions.jsonl/107101
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 167 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 5084, 36346, 368, 341, 262, 6505, 5478, 4452, 543, 262, 1077, 5206, 17853, 284, 8141, 486, 931, 25592, 20703, 4064, 2558, 262, 17853, 5219, 25592, 20703, 931, 6462, 7, 16, 11, 220, 16, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_switch_threshold_across_tower_reload() { solana_logger::setup(); // Init state let mut vote_simulator = VoteSimulator::new(2); let other_vote_account = vote_simulator.vote_pubkeys[1]; let bank0 = vote_simulator .bank_forks .read() ...
rust_cleaned_test_functions.jsonl/61154
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27652, 21858, 14718, 2128, 528, 1202, 79405, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 442, 15690, 1584, 198, 286, 1077, 5206, 6910, 18314, 10511, 284, 34034, 14027, 10511, 486, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_read_sync() { let tmp = tempfile::tempdir().unwrap(); let dir = tmp.path().to_owned(); crate::write_sync(&dir, "my-key", b"hello world").unwrap(); let data = crate::read_sync(&dir, "my-key").unwrap(); assert_eq!(data, b"hello world"); }
rust_cleaned_test_functions.jsonl/64595
{ "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, 6443, 23008, 368, 341, 286, 1077, 4174, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 286, 1077, 5419, 284, 4174, 3875, 1005, 983, 51973, 543, 286, 17717, 486, 4934, 23008, 2099, 3741, 11, 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_default_tuple() { assert_de_tokens( &DefaultTupleStruct(1, 2, 3), &[ Token::TupleStruct { name: "DefaultTupleStruct", len: 3, }, Token::I32(1), Token::I32(2), Token::I32(3), ...
rust_cleaned_test_functions.jsonl/59131
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 398 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 21773, 368, 341, 262, 2060, 2259, 28838, 1006, 286, 609, 3675, 28681, 9422, 7, 16, 11, 220, 17, 11, 220, 18, 1326, 286, 609, 9640, 310, 9660, 486, 28681, 9422, 341, 394, 829, 25, 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_0() { assert_eq!( BTreeSet::from_iter(Solution::top_k_frequent(vec![1, 1, 1, 2, 2, 3], 2)), BTreeSet::from_iter(vec![1, 2]) ); }
rust_cleaned_test_functions.jsonl/132602
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 15, 368, 341, 286, 2060, 10714, 33673, 310, 425, 6533, 1649, 486, 1499, 11723, 3759, 3214, 486, 3481, 4698, 761, 69691, 25592, 20703, 16, 11, 220, 16, 11, 220, 16, 11, 220, 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
#[test] fn test_bitap() { if !is_x86_feature_detected!("sse4.1") { panic!("sse4.1 feature not detected!"); } unsafe { let mut b = Bitap8x16::new(); assert_eq!(b.next(b'c'), None); assert_eq!(b.next(b'u'), None); assert_eq!(b.ne...
rust_cleaned_test_functions.jsonl/5221
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 564 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 391, 368, 341, 286, 421, 753, 285, 3212, 23, 21, 17069, 98876, 17223, 64513, 19, 13, 16, 899, 341, 310, 21975, 17223, 64513, 19, 13, 16, 4565, 537, 16507, 11142, 286, 555, 286, 19860, 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...
2
#[test] fn test_runnables_with_feature() { check( r#" //- /lib.rs crate:foo cfg:feature=foo $0 #[test] #[cfg(feature = "foo")] fn test_foo1() {} "#, &[&TEST], expect![[r#" [ Runnable { nav: NavigationTarget {...
rust_cleaned_test_functions.jsonl/2492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1048 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 77, 4788, 6615, 17069, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 61463, 608, 2740, 25638, 17717, 25, 7975, 13286, 25, 12753, 28, 7975, 198, 3, 15, 198, 13353, 1944, 921, 13353, 14072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cowrc_clone_unique2() { let mut cow0 = Rc::new(75); let cow1 = cow0.clone(); let cow2 = cow1.clone(); assert!(75 == *cow0); assert!(75 == *cow1); assert!(75 == *cow2); *Rc::make_mut(&mut cow0) += 1; assert!(76 == *cow0); ...
rust_cleaned_test_functions.jsonl/4664
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 296 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 363, 1287, 54742, 21218, 17, 368, 341, 286, 1077, 5206, 19362, 15, 284, 81463, 486, 931, 7, 22, 20, 317, 286, 1077, 19362, 16, 284, 19362, 15, 15997, 543, 286, 1077, 19362, 17, 284, 19362...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_float_32_unpack_issue_24() { // mismatch in decoded output for audio_simple_with_error.ogg // The values are taken from the codebook_delta_value and // The expected values come from stb_vorbis. assert_eq!(float32_unpack(1628434432), 255.0); assert_eq!(float32_unpack(1621655552), 17.0)...
rust_cleaned_test_functions.jsonl/33430
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 383 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17586, 62, 18, 17, 54889, 53340, 62, 17, 19, 368, 341, 1572, 197, 322, 35301, 304, 29213, 2550, 369, 7699, 30015, 6615, 4096, 69690, 17642, 197, 322, 576, 2750, 525, 4429, 504, 279, 2038, 2190, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vec4_hmin_hmax() { let a = vec4(-1.0, 4.0, -3.0, 2.0); assert_eq!(-3.0, a.min_element()); assert_eq!(4.0, a.max_element()); assert_eq!(3.0, vec4(1.0, 2.0, 3.0, 4.0).truncate().max_element()); assert_eq!(-3.0, vec4(-1.0, -2.0, -3.0, -4.0).truncate().min_element()); }
rust_cleaned_test_functions.jsonl/68865
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 19, 1523, 1065, 1523, 2810, 368, 341, 262, 1077, 264, 284, 7486, 19, 4080, 16, 13, 15, 11, 220, 19, 13, 15, 11, 481, 18, 13, 15, 11, 220, 17, 13, 15, 317, 262, 2060, 10714, 0, 408...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fill_struct_fields_no_diagnostic_on_spread() { check_diagnostics( r#" struct TestStruct { one: i32, two: i64 } fn test_fn() { let one = 1; let s = TestStruct{ ..a }; } "#, ); }
rust_cleaned_test_functions.jsonl/15153
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30728, 15126, 12132, 6536, 29477, 11953, 4470, 10123, 878, 368, 341, 286, 1779, 814, 18938, 1006, 310, 435, 2, 698, 1235, 3393, 9422, 314, 825, 25, 600, 18, 17, 11, 1378, 25, 600, 21, 19, 555,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_file_encoding() { let pwd = std::env::current_dir().unwrap(); let path = pwd.join("assets/tests/01.srt"); let rt = rocket::tokio::runtime::Runtime::new().unwrap(); let decoded_str = rt.block_on(read_text_file(path)).unwrap(); println!("Decoded string: ...
rust_cleaned_test_functions.jsonl/43175
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 2458, 37613, 368, 341, 286, 1077, 32706, 284, 1460, 486, 3160, 486, 3231, 4334, 1005, 15454, 543, 286, 1077, 1815, 284, 32706, 5446, 445, 5160, 62468, 14, 15, 16, 514, 3342, 797, 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_support_from_format_to_enum_and_back() { let e: Enum = Format::ALPHA8.into(); let f: Format = e.into(); assert_eq!(f, Format::ALPHA8); }
rust_cleaned_test_functions.jsonl/28581
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25827, 5673, 8955, 2346, 31054, 8378, 3895, 368, 341, 286, 1077, 384, 25, 14086, 284, 15042, 486, 969, 28222, 23, 39860, 543, 286, 1077, 282, 25, 15042, 284, 384, 39860, 543, 286, 2060, 10714, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_should_panic_bad_message() { use crate::tests::TrFailedMsg; fn f() { panic!("an error message"); } let expected = "foobar"; let failed_msg = r#"panic did not contain expected string panic message: `"an error message"`, expected substring: `"foobar"`"#; let ...
rust_cleaned_test_functions.jsonl/51892
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 438 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43378, 620, 31270, 34199, 6462, 368, 341, 262, 990, 17717, 486, 23841, 486, 1282, 9408, 6611, 280, 262, 5168, 282, 368, 341, 286, 21975, 17223, 276, 1465, 1943, 797, 262, 456, 262, 1077, 3601, 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_extract_gradle_version_single_quote() -> io::Result<()> { let config_name = "build.gradle"; let config_content = "plugins { id 'java' id 'test.plugin' version '0.2.0' } version '0.1.0' java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = Java...
rust_cleaned_test_functions.jsonl/19244
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 18352, 273, 9438, 19487, 45236, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 2193, 1269, 284, 330, 5834, 61483, 876, 286, 1077, 2193, 7495, 284, 330, 18716, 341, 262, 877, 364, 10042,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ancestor_iterator_inclusive() { let blockstore_path = get_tmp_ledger_path!(); let blockstore = Blockstore::open(&blockstore_path).unwrap(); let (shreds, _) = make_slot_entries(0, 0, 42); blockstore.insert_shreds(shreds, None, false).unwrap(); let (shreds,...
rust_cleaned_test_functions.jsonl/44654
{ "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, 62, 66878, 13491, 1243, 8336, 368, 341, 286, 1077, 2504, 4314, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 1077, 2504, 4314, 284, 8362, 4314, 486, 2508, 2099, 4574, 4314, 2638, 568, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_std_dev() { test_almost(1.0, 0.1, 0.1, 1e-15, |x| x.std_dev()); test_almost(1.0, 1.0, 1.0, 1e-14, |x| x.std_dev()); test_almost(10.0, 10.0, 1.1445721940300799194124723631014002560036613065794, 1e-12, |x| x.std_dev()); test_almost(10.0, 1.0, 0.114457219403007991941...
rust_cleaned_test_functions.jsonl/84305
{ "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, 15656, 10433, 368, 341, 286, 1273, 94418, 7, 16, 13, 15, 11, 220, 15, 13, 16, 11, 220, 15, 13, 16, 11, 220, 16, 68, 12, 16, 20, 11, 760, 87, 91, 856, 13091, 10433, 1423, 286, 1273, 94418...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_factors() { use super::factor; ok_case!( factor, &vec![Token::Terminal("terminal".to_owned()).spanning(Span::from(((1, 0), (11, 0))))], 1, Expression::Terminal("terminal".to_owned()).spanning(Span::from(((1, 0), (11, 0)))) ); ok_case!( fac...
rust_cleaned_test_functions.jsonl/101081
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 949 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73040, 368, 341, 262, 990, 2256, 486, 37591, 401, 262, 5394, 19096, 33673, 286, 8168, 345, 286, 609, 4083, 20703, 3323, 486, 47890, 445, 36327, 3263, 983, 51973, 6011, 1480, 1229, 3759, 848, 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_handle_new_root_ahead_of_largest_confirmed_root() { let genesis_config = create_genesis_config(10_000).genesis_config; let bank0 = Bank::new(&genesis_config); let bank_forks = Arc::new(RwLock::new(BankForks::new(0, bank0))); let confirmed_root = 1; let for...
rust_cleaned_test_functions.jsonl/91753
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 884 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 5921, 12993, 4306, 1983, 3575, 907, 32381, 16059, 8434, 12993, 368, 341, 286, 1077, 59366, 5332, 284, 1855, 16322, 13774, 5332, 7, 16, 15, 62, 15, 15, 15, 568, 77894, 5332, 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...
2
#[test] fn test_start() { let c = NumberFormat::new("decimal"); let b = c.build(); assert_eq!( str::from_utf8(&b).unwrap(), r#"<w:numFmt w:val="decimal" />"# ); }
rust_cleaned_test_functions.jsonl/127039
{ "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, 4906, 368, 341, 286, 1077, 272, 284, 5624, 4061, 486, 931, 445, 23289, 797, 286, 1077, 293, 284, 272, 13239, 543, 286, 2060, 10714, 33673, 310, 607, 486, 1499, 39453, 23, 2099, 65, 568, 15454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_softplus_f64_positive() { fn prop_positive(x: f64) -> bool { Softplus.transform(x).is_sign_positive() } quickcheck(prop_positive as fn(f64) -> bool); }
rust_cleaned_test_functions.jsonl/78488
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 86 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38326, 7138, 761, 21, 19, 54160, 368, 341, 286, 5168, 2004, 54160, 2075, 25, 282, 21, 19, 8, 1464, 1807, 314, 24079, 7138, 8134, 2075, 568, 285, 11172, 54160, 368, 555, 286, 3974, 2028, 30638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_overflow() { #[allow(dead_code)] #[derive(Copy)] #[repr(usize)] enum Bar { V00, V01, V02, V03, V04, V05, V06, V07, V08, V09, V10, V11, V12, V13, V14, V15, V16, V17, V18, V19, V20, V21, V22, V23, V24, V25, V26, V27, V28, V29, ...
rust_cleaned_test_functions.jsonl/51107
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 566 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79073, 368, 341, 286, 11506, 7183, 83207, 4136, 5563, 286, 11506, 27098, 3025, 1266, 5563, 286, 11506, 30837, 7, 51878, 5563, 286, 7618, 4716, 341, 310, 647, 15, 15, 11, 647, 15, 16, 11, 647, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_progress_flow_control() { let l = default_logger(); let mut cfg = new_test_config(1, 5, 1); cfg.max_inflight_msgs = 3; cfg.max_size_per_msg = 2048; let s = MemStorage::new_with_conf_state((vec![1, 2], vec![])); let mut r = new_test_raft_with_config(&cfg, s, &l); r.bec...
rust_cleaned_test_functions.jsonl/19084
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1030 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27200, 27441, 13436, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 5206, 13286, 284, 501, 4452, 5332, 7, 16, 11, 220, 20, 11, 220, 16, 317, 262, 13286, 6678, 1243, 38390, 20777, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_set_get() { with_object(0, |activation, object| { object.as_script_object().unwrap().define_value( activation.context.gc_context, "forced", "forced".into(), Attribute::empty(), ); object.s...
rust_cleaned_test_functions.jsonl/19713
{ "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, 2602, 3062, 368, 341, 286, 448, 5314, 7, 15, 11, 760, 23002, 11, 1633, 91, 341, 310, 1633, 5357, 14660, 5314, 1005, 15454, 1005, 1289, 3142, 1006, 394, 15099, 8681, 65554, 8467, 345, 394, 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_session_batching() { let envelopes = capture_envelopes(|| { for _ in 0..(MAX_SESSION_ITEMS * 2) { sentry::start_session(); } }); // we only want *two* envelope for all the sessions assert_eq!(envelopes.len(), 2); le...
rust_cleaned_test_functions.jsonl/115608
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 270 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12316, 14534, 287, 368, 341, 286, 1077, 86606, 284, 12322, 6205, 1813, 288, 79453, 341, 310, 369, 716, 304, 220, 15, 496, 7, 10586, 34361, 56280, 353, 220, 17, 8, 341, 394, 3208, 884, 486, 246...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_write_csv() -> Result<()> { let batch = data(); let write = Cursor::new(Vec::<u8>::new()); let mut writer = WriterBuilder::new().from_writer(write); write_header(&mut writer, batch.schema())?; let batches = vec![&batch, &batch]; let options = Ser...
rust_cleaned_test_functions.jsonl/28031
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 547 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 14020, 368, 1464, 5714, 71698, 341, 286, 1077, 7162, 284, 821, 1428, 286, 1077, 3270, 284, 28067, 486, 931, 49923, 27638, 84, 23, 6831, 931, 1423, 286, 1077, 5206, 6916, 284, 29404, 3297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_transcribes_guanine_cytosine() { assert_eq!(dna::RibonucleicAcid::new("C"), dna::DeoxyribonucleicAcid::new("G").to_rna()); }
rust_cleaned_test_functions.jsonl/36947
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 75 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7965, 55136, 1889, 10386, 482, 666, 16415, 436, 482, 368, 341, 262, 2060, 10714, 10297, 92877, 486, 98884, 263, 22147, 292, 11654, 307, 486, 931, 445, 34, 3975, 75334, 486, 1912, 60163, 1897, 263,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_output_to_client() { #[rustfmt::skip] let test_cases = [ (CoordClientSeverity::Debug1, vec![Severity::Debug, Severity::Log, Severity::Notice, Severity::Warning, Severity::Error, Severity::Fatal, Severity:: Panic, Severity::Info], true), (CoordClient...
rust_cleaned_test_functions.jsonl/60246
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43378, 7645, 2346, 8179, 368, 341, 286, 11506, 35788, 12501, 486, 20599, 921, 286, 1077, 1273, 41427, 284, 2278, 310, 320, 19437, 2959, 65594, 486, 7939, 16, 11, 7486, 20703, 65594, 486, 7939, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_recover_public_subaddress_spend_key_wrong_tx_public_key() { run_with_several_seeds(|mut rng| { let account: AccountKey = AccountKey::random(&mut rng); let (_c, _d, recipient) = get_subaddress(&account, 7); let tx_private_key = RistrettoPrivate::from_r...
rust_cleaned_test_functions.jsonl/56129
{ "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, 1288, 3688, 27074, 5228, 4995, 643, 3740, 3097, 75198, 17805, 27074, 3097, 368, 341, 286, 1598, 6615, 3453, 17539, 3453, 6767, 22428, 6984, 28422, 91, 341, 310, 1077, 2692, 25, 8615, 1592, 284, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sigev_signal() { let _ = SIGUSR2_MTX.lock().expect("Mutex got poisoned by another test"); let sa = SigAction::new(SigHandler::Handler(sigfunc), SA_RESETHAND, SigSet::empty()); SIGNALED.store(false, Ordering::Relaxed); ...
rust_cleaned_test_functions.jsonl/7360
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 777 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 29252, 5120, 21137, 368, 341, 262, 1077, 716, 284, 25038, 49558, 17, 1245, 22867, 21003, 1005, 17119, 445, 38099, 2684, 70498, 553, 2441, 1273, 797, 262, 1077, 822, 284, 41560, 2512, 486, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_macro() { let mut schema_builder = Schema::builder(); let text_field = schema_builder.add_text_field("text", TEXT); let other_text_field = schema_builder.add_text_field("text2", TEXT); let document = doc!(text_field => "tantivy", te...
rust_cleaned_test_functions.jsonl/12726
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 393 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18869, 58810, 368, 341, 286, 1077, 5206, 10802, 28532, 284, 12539, 486, 17850, 543, 286, 1077, 1467, 5013, 284, 10802, 28532, 1364, 4326, 5013, 445, 1318, 497, 15762, 317, 286, 1077, 1008, 4326, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_try_from_exact() { Python::with_gil(|py| { let list: &PyAny = vec![3, 6, 5, 4, 7].to_object(py).into_ref(py); let dict: &PyAny = vec![("reverse", true)].into_py_dict(py).as_ref(); assert!(PyList::try_from_exact(list).is_ok()); assert!(PyDi...
rust_cleaned_test_functions.jsonl/20446
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 71084, 368, 341, 286, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 310, 1077, 1140, 25, 609, 13828, 8610, 284, 7486, 20703, 18, 11, 220, 21, 11, 220, 20, 11, 220, 19, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_specifier() { let fixtures = vec![ ("file:///a/b/c.ts", MediaType::TypeScript), ("file:///a/b/c.mts", MediaType::Mts), ("file:///a/b/c.cts", MediaType::Cts), ("file:///a/b/c.js", MediaType::JavaScript), ("file:///a/b/c.mjs", MediaType::Mjs), ("file://...
rust_cleaned_test_functions.jsonl/53920
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 580 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 13594, 3049, 368, 341, 262, 1077, 37664, 284, 7486, 90515, 414, 3489, 1192, 60896, 64, 3470, 2899, 21288, 497, 50423, 486, 929, 5910, 1326, 414, 3489, 1192, 60896, 64, 3470, 2899, 744, 2576,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_incorrect_collection() { let file_name: &str = "data/collection_err_test.txt"; remove_file(file_name.to_string()); let mut all_collections = Vec::<Collection>::new(); all_collections = fetch_all_collections(file_name.to_string(), &String::new()); if !Collection::exist(&all_...
rust_cleaned_test_functions.jsonl/50015
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3877 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 19928, 25019, 368, 341, 262, 1077, 1034, 1269, 25, 609, 495, 284, 330, 691, 2899, 1908, 9266, 4452, 3909, 876, 262, 4057, 2458, 4866, 1269, 2389, 3904, 5231, 262, 1077, 5206, 678, 89742, 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...
3
#[test] fn test_pullback() { let p = ValidPrime::new(2); let A = Arc::new(SteenrodAlgebra::from(AdemAlgebra::new( p, *p != 2, false, false, ))); A.compute_basis(20); let F0 = Arc::new(FreeModule::new(Arc::clone(&A), "F0".to_...
rust_cleaned_test_functions.jsonl/51066
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2633 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65693, 1419, 368, 341, 286, 1077, 281, 284, 7818, 32306, 486, 931, 7, 17, 317, 286, 1077, 362, 284, 19689, 486, 931, 7, 623, 14911, 23505, 2101, 26083, 486, 1499, 7, 2589, 336, 2101, 26083, 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...
5
#[test] fn test_dot_lookup_with_unbound_as_field() -> TestResult { let p = Polar::new(); p.load_str("f(x) if {a: 1, b: 2}.(x) > 0;")?; let mut q = p.new_query_from_term(term!(call!("f", [sym!("x")])), false); assert_eq!(next_binding(&mut q)?[&sym!("x")], term!("a")); asse...
rust_cleaned_test_functions.jsonl/63022
{ "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, 30941, 27464, 6615, 4907, 10891, 11898, 5013, 368, 1464, 3393, 2077, 341, 286, 1077, 281, 284, 55896, 486, 931, 543, 286, 281, 5104, 2895, 445, 69, 2075, 8, 421, 314, 64, 25, 220, 16, 11, 293,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_drops() { DROP_VECTOR.with(|slot| { *slot.borrow_mut() = vec![0; 200]; }); { let mut m = HashMap::new(); DROP_VECTOR.with(|v| { for i in 0..200 { assert_eq!(v.borrow()[i], 0); } ...
rust_cleaned_test_functions.jsonl/22830
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1040 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 3702, 368, 341, 286, 56942, 47993, 18164, 22428, 21537, 91, 341, 310, 353, 21537, 83640, 29523, 368, 284, 7486, 20703, 15, 26, 220, 17, 15, 15, 935, 286, 3011, 286, 341, 310, 1077, 5206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8