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_exchange_new_account() { solana_logger::setup(); let (bank, mint_keypair) = create_bank(10_000); let (client, owner) = create_client(bank, mint_keypair); let new = create_token_account(&client, &owner); let new_account_data = client.get_account_data(&new)...
rust_cleaned_test_functions.jsonl/108509
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 291 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59212, 5921, 13500, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 320, 17033, 11, 28337, 3097, 12670, 8, 284, 1855, 35733, 7, 16, 15, 62, 15, 15, 15, 317, 286, 1077, 320, 2972,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ascii_lowercase() { assert_eq!(Atom::from("").to_ascii_lowercase(), Atom::from("")); assert_eq!(Atom::from("aZ9").to_ascii_lowercase(), Atom::from("az9")); assert_eq!(Atom::from("The Quick Brown Fox!").to_ascii_lowercase(), Atom::from("the quick brown fox!")); ass...
rust_cleaned_test_functions.jsonl/80900
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50238, 93129, 368, 341, 286, 2060, 10714, 10297, 35836, 486, 1499, 80821, 983, 50238, 93129, 1507, 39516, 486, 1499, 89744, 286, 2060, 10714, 10297, 35836, 486, 1499, 445, 64, 57, 24, 1827, 983, 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_bank_client_new_with_keypairs() { let (genesis_block, john_doe_keypair) = create_genesis_block(10_000); let john_pubkey = john_doe_keypair.pubkey(); let jane_doe_keypair = Keypair::new(); let jane_pubkey = jane_doe_keypair.pubkey(); let doe_keypairs = vec!...
rust_cleaned_test_functions.jsonl/29873
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 434 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35733, 8179, 5921, 6615, 3097, 77256, 368, 341, 286, 1077, 320, 77894, 7113, 11, 39642, 814, 4644, 3097, 12670, 8, 284, 1855, 16322, 13774, 7113, 7, 16, 15, 62, 15, 15, 15, 317, 286, 1077, 396...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_all_vectored() { #[rustfmt::skip] // Becomes unreadable otherwise. let tests: Vec<(_, &'static [u8])> = vec![ (vec![], &[]), (vec![IoSlice::new(&[1])], &[1]), (vec![IoSlice::new(&[1, 2])], &[1, 2]), (vec![IoSlice::new(&[1, 2, ...
rust_cleaned_test_functions.jsonl/8690
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 5705, 59402, 3018, 368, 341, 286, 11506, 35788, 12501, 486, 20599, 60, 442, 31046, 20347, 60291, 480, 5937, 624, 286, 1077, 7032, 25, 11312, 27, 41117, 30136, 1978, 508, 84, 23, 2467, 29, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_single_row_display_formatting() { let one_row_matrix = matrix![1, 2, 3, 4]; assert_eq!("[1 2 3 4]", format!("{}", one_row_matrix)); }
rust_cleaned_test_functions.jsonl/55918
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 8530, 14825, 8955, 1280, 368, 341, 286, 1077, 825, 8530, 10193, 284, 6172, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 286, 2060, 10714, 0, 10937, 16, 220, 17, 220, 18, 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
#[test] fn test_format_document() { if skip_slow_tests() { return; } let server = project( r#" //- /Cargo.toml [package] name = "foo" version = "0.0.0" //- /src/lib.rs mod bar; fn main() { } pub use std::collections::HashMap; "#, ) .wait_until_workspace_is_loaded(); ...
rust_cleaned_test_functions.jsonl/27494
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 628 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8955, 26231, 368, 341, 262, 421, 10706, 82447, 32509, 368, 341, 286, 470, 280, 262, 555, 262, 1077, 3538, 284, 2390, 1006, 286, 435, 2, 698, 61463, 608, 98228, 73494, 75, 198, 58, 1722, 921, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_lens() { let mut s = MyState { x: 0 }; *MyLens {}.focus_mut(&mut s) = 42; assert_eq!(*MyLens {}.focus(&s), 42); }
rust_cleaned_test_functions.jsonl/100080
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 81642, 368, 341, 286, 1077, 5206, 274, 284, 3017, 1397, 314, 856, 25, 220, 15, 2605, 286, 353, 5050, 98105, 84412, 17414, 29523, 2099, 6984, 274, 8, 284, 220, 19, 17, 280, 286, 2060, 10714, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_value_has_different_types_str_to_bool() { let deserialized: Value = serde_json::from_str(r#"{ "a": 1, "b": { "c": 2, "d": true } }"#).unwrap(); let v: Value = serde_json::from_str(r#"{ "a": 1, "b": { "c": 2, "d": "3" } }"#).unwrap(); assert!(check(&v,...
rust_cleaned_test_functions.jsonl/52335
{ "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, 3142, 21778, 82741, 9763, 2895, 2346, 22159, 368, 341, 1789, 286, 1077, 939, 67577, 25, 5162, 4035, 310, 61570, 9455, 486, 1499, 2895, 2601, 2, 14129, 330, 64, 788, 220, 16, 11, 330, 65, 788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_store_with_bad_additional_signer() { solana_logger::setup(); let (bank, mint_keypair) = create_bank(10_000); let signer0 = Keypair::new(); let signer1 = Keypair::new(); let keys = vec![(signer0.pubkey(), true)]; let (bank_client, config_keypair) = create_config_ac...
rust_cleaned_test_functions.jsonl/125667
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 458 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 14809, 6615, 34199, 81742, 11172, 261, 368, 341, 262, 2048, 3362, 27413, 486, 15188, 543, 262, 1077, 320, 17033, 11, 28337, 3097, 12670, 8, 284, 1855, 35733, 7, 16, 15, 62, 15, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_l2_snapshot() { let text = fetch_l2_snapshot("binance", MarketType::Spot, "BTCUSDT").unwrap(); assert!(text.starts_with("{")); }
rust_cleaned_test_functions.jsonl/21557
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 70 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 17, 53265, 368, 341, 262, 1077, 1467, 284, 7807, 907, 17, 53265, 445, 6863, 681, 497, 7993, 929, 486, 47049, 11, 330, 59118, 2034, 10599, 1827, 15454, 543, 262, 2060, 10297, 1318, 4962, 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
#[test] fn test_transaction_ordering() { let (mut mempool, mut consensus) = setup_mempool(); // default ordering: gas price let mut transactions = add_txns_to_mempool( &mut mempool, vec![TestTransaction::new(0, 0, 3), TestTransaction::new(1, 0, 5)], ); assert_eq!( co...
rust_cleaned_test_functions.jsonl/1794
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 671 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 7869, 287, 368, 341, 262, 1077, 320, 6984, 1833, 10285, 11, 5206, 23869, 8, 284, 6505, 717, 3262, 1749, 1428, 262, 442, 1638, 21391, 25, 6819, 3349, 198, 262, 1077, 5206, 14131, 284, 912,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_from_to_rgb() { let test_data = test::build_hwb_test_data(); for item in test_data.iter() { let rgi = Rgi::from_color(&item.rgb); let rgb = Rgb::from_color(&rgi); assert_relative_eq!(rgb, item.rgb, epsilon = 1e-6); } let rgb1 =...
rust_cleaned_test_functions.jsonl/86787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 542 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2346, 37407, 368, 341, 286, 1077, 1273, 1769, 284, 1273, 486, 5834, 1523, 20211, 4452, 1769, 543, 286, 369, 1509, 304, 1273, 1769, 19471, 368, 341, 310, 1077, 435, 8212, 284, 431, 8212, 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...
2
#[test] fn test_parse_read_write() { assert_eq!( parse( " ReAd RX0 WrItE RX0 " ) .unwrap() .body, vec![ Node( Statement::Operator(Node( ...
rust_cleaned_test_functions.jsonl/118213
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 874 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 6443, 9165, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 1006, 394, 6228, 394, 1032, 2589, 28170, 15, 198, 394, 31630, 2132, 36, 28170, 15, 198, 394, 6228, 310, 1727, 310, 659, 15454, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cookie_path() { assert_eq!( CookiePath { name: Template { quotes: false, elements: vec![TemplateElement::String { value: "LSID".to_string(), encoded: "unused".to_string(), ...
rust_cleaned_test_functions.jsonl/123030
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 466 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38663, 2638, 368, 341, 286, 2060, 10714, 33673, 310, 24356, 1820, 341, 394, 829, 25, 14355, 341, 503, 17194, 25, 895, 345, 503, 5424, 25, 7486, 20703, 7275, 1691, 486, 703, 341, 664, 897, 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_serialize() { let mut builder = new_builder(); builder.dscp(0x12); builder.ecn(3); builder.id(0x0405); builder.df_flag(true); builder.mf_flag(true); builder.fragment_offset(0x0607); let mut buf = (&[0, 1, 2, 3, 3, 4, 5, 7, 8, 9]) ...
rust_cleaned_test_functions.jsonl/31692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 603 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 368, 341, 286, 1077, 5206, 7363, 284, 501, 28532, 543, 286, 7363, 950, 63063, 7, 15, 87, 16, 17, 317, 286, 7363, 29188, 77, 7, 18, 317, 286, 7363, 1764, 7, 15, 87, 15, 19, 15, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_count() { let a: VolAddress<i32> = unsafe { VolAddress::new(4) }; let i: VolIter<i32> = unsafe { a.iter_slots(2) }; assert_eq!(i.count(), 2); }
rust_cleaned_test_functions.jsonl/116632
{ "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, 3180, 368, 341, 220, 1077, 264, 25, 10882, 4286, 21897, 18, 17, 29, 284, 19860, 314, 10882, 4286, 486, 931, 7, 19, 8, 2605, 220, 1077, 600, 25, 10882, 8537, 21897, 18, 17, 29, 284, 19860, 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
#[test] fn test_create_rm() { let ntask = 100; let ncpu = 10; let name_len = 1..20; let (dir, img_path) = gen_fat32img(); let disk = Arc::new(FileDisk::new(img_path)); let names = Arc::new(Spinlock::new(Vec::new())); // Create some files. { ...
rust_cleaned_test_functions.jsonl/130733
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 58537, 368, 341, 286, 1077, 308, 8202, 284, 220, 16, 15, 15, 280, 286, 1077, 308, 16475, 284, 220, 16, 15, 280, 286, 1077, 829, 6043, 284, 220, 16, 496, 17, 15, 401, 286, 1077, 320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
#[test] fn test_parse_binary_expression_with_mixed_binding_powers() { check( "1+2*3-4", expect![[r#" Root@0..7 Exp_Binary@0..7 Exp_Binary@0..5 Exp_Literal@0..1 Lit_Integer@0..1 "1"...
rust_cleaned_test_functions.jsonl/40933
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 574 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 31761, 28068, 6615, 717, 3286, 60815, 620, 15965, 368, 341, 286, 1779, 1006, 310, 330, 16, 10, 17, 9, 18, 12, 19, 756, 310, 1720, 0, 15505, 81, 2, 698, 394, 18854, 31, 15, 496, 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_buf() { let buf = unsafe { let ptr = libc::malloc(12) as *mut u32; *ptr = 1; *ptr.offset(1) = 2; *ptr.offset(2) = 3; MallocBuffer::new(ptr, 3).unwrap() }; assert!(*buf == [1, 2, 3]); }
rust_cleaned_test_functions.jsonl/122375
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 179 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10363, 368, 341, 286, 1077, 6607, 284, 19860, 341, 310, 1077, 10087, 284, 42142, 486, 16166, 7, 16, 17, 8, 438, 353, 6984, 575, 18, 17, 280, 310, 353, 3505, 284, 220, 16, 280, 310, 353, 3505...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_not_with_one_gt_to_string() { let name1 = _random_vector(10); let value1 = _random_string(10); let query = Operator::Not( Box::new( Operator::Gt( TagName::PlainTagName(name1.clone()), TargetValue::Unencr...
rust_cleaned_test_functions.jsonl/11929
{ "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, 7913, 6615, 11667, 37479, 2346, 3904, 368, 341, 286, 1077, 829, 16, 284, 716, 11463, 12247, 7, 16, 15, 317, 286, 1077, 897, 16, 284, 716, 11463, 3904, 7, 16, 15, 626, 286, 1077, 3239, 284, 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_add_plain() { let fv = FV::new(16, &BigInt::from(12289)); let sk = fv.generate_key(); let mut v = vec![0; fv.n]; let mut w = vec![1; fv.n]; let mut vplusw = vec![1; fv.n]; // encrypt v let mut ct = fv.encrypt_sk(&v, &sk); // ct...
rust_cleaned_test_functions.jsonl/103703
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 266 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 41015, 368, 341, 286, 1077, 61654, 284, 434, 53, 486, 931, 7, 16, 21, 11, 609, 87474, 486, 1499, 7, 16, 17, 17, 23, 24, 1106, 286, 1077, 1901, 284, 61654, 22019, 3097, 1428, 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_shrink_to_fit() { let mut tester = VecDeque::with_capacity(15); // this test isn't covering what it wants to let cap = tester.capacity(); tester.reserve(63); let max_cap = tester.capacity(); for len in 0..cap +...
rust_cleaned_test_functions.jsonl/187
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 536 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3712, 34365, 2346, 32416, 368, 341, 1789, 23459, 286, 1077, 5206, 37111, 284, 11312, 73891, 486, 4197, 35603, 7, 16, 20, 317, 16885, 286, 442, 419, 1273, 4436, 944, 18202, 1128, 432, 6801, 311, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_event_listener_background_error() { // actually trigger background error. let path = TempDir::new("_rust_rocksdb_event_listener_ingestion").expect(""); let path_str = path.path().to_str().unwrap(); let mut opts = DBOptions::new(); let counter = BackgroundErrorCounter::d...
rust_cleaned_test_functions.jsonl/86610
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6748, 46493, 24103, 4096, 368, 341, 1066, 262, 442, 3520, 8183, 4004, 1465, 624, 262, 1077, 1815, 284, 19944, 6184, 486, 931, 16975, 35788, 26608, 14553, 1999, 6748, 46493, 59112, 42498, 1827, 17119...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_reader_rng_u64() { // transmute from the target to avoid endianness concerns. let v = &[0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 3][..]; let mut rng = ReaderRng::new(v); assert_eq!(rng.next_u64(), 1u...
rust_cleaned_test_functions.jsonl/29279
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 256 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22306, 66849, 7300, 21, 19, 368, 341, 286, 442, 1356, 52214, 504, 279, 2169, 311, 5648, 835, 72, 82033, 10520, 624, 286, 1077, 348, 284, 44590, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_metrics() { let _test_guard = TEST_PROFILE_MUTEX.lock().unwrap(); let temp_dir = tempfile::TempDir::new().unwrap(); let mut status_server = StatusServer::new( 1, ConfigController::default(), Arc::new(SecurityConfig::default()), ...
rust_cleaned_test_functions.jsonl/6921
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1035 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37686, 368, 341, 286, 1077, 716, 1944, 36796, 284, 13602, 34533, 66994, 21003, 1005, 15454, 543, 286, 1077, 2730, 4334, 284, 54819, 486, 12151, 6184, 486, 931, 1005, 15454, 543, 286, 1077, 5206, 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() { for (trace_id, span_id, flag, expected) in get_extract_data() { let mut map: HashMap<String, String> = HashMap::new(); map.set( JAEGER_HEADER, format!("{}:{}:0:{}", trace_id, span_id, flag), ...
rust_cleaned_test_functions.jsonl/36040
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 298 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 368, 341, 310, 369, 320, 15067, 842, 11, 9390, 842, 11, 5181, 11, 3601, 8, 304, 633, 39123, 1769, 368, 341, 394, 1077, 5206, 2415, 25, 10528, 3464, 11, 923, 29, 284, 10528, 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...
2
#[test] fn test_d4c() { let x = vec![0.0; 256]; let x_length = x.len() as i32; let fs = 44100 as i32; let temporal_positions = vec![0.0, 0.005]; let f0 = vec![0.0, 0.0]; let f0_length = f0.len() as i32; l...
rust_cleaned_test_functions.jsonl/20842
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 524 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 19, 66, 368, 341, 10217, 856, 503, 284, 7486, 20703, 15, 13, 15, 26, 220, 17, 20, 21, 935, 10217, 856, 5118, 1797, 284, 856, 19406, 368, 438, 600, 18, 17, 280, 10217, 8619, 4293, 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_decode_test_command_with_empty_buf() { let buf = []; let expected = TestCommandParams { test_pattern: vec![] }; assert_eq!(TestCommandParams::decode(&buf[..]).unwrap(), expected); }
rust_cleaned_test_functions.jsonl/115654
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 4452, 10811, 6615, 15124, 10363, 368, 341, 286, 1077, 6607, 284, 5907, 286, 1077, 3601, 284, 3393, 4062, 4870, 314, 1273, 21260, 25, 7486, 0, 1294, 2605, 286, 2060, 10714, 10297, 2271, 4062...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_max_vote_tx_fits() { solana_logger::setup(); let node_keypair = Keypair::new(); let vote_keypair = Keypair::new(); let votes = (0..MAX_RECENT_VOTES) .map(|i| Vote::new(i as u64, Hash::default())) .collect::<Vec<_>>(); let vote_ix = ...
rust_cleaned_test_functions.jsonl/100569
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 447 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 54360, 17805, 761, 1199, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 2436, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 6910, 3097, 12670, 284, 6569, 1082,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_env_set_get_huge() { let n = make_rand_name(); let s = repeat("x").take(10000).collect::<String>(); set_var(&n, &s); eq(var_os(&n), Some(&s)); remove_var(&n); eq(var_os(&n), None); }
rust_cleaned_test_functions.jsonl/87611
{ "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, 15879, 2602, 3062, 1523, 4733, 368, 341, 286, 1077, 308, 284, 1281, 33864, 1269, 543, 286, 1077, 274, 284, 13153, 445, 87, 1827, 22769, 7, 16, 15, 15, 15, 15, 568, 17384, 27638, 703, 3913, 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_find_available_port_in_range() { assert_eq!(find_available_port_in_range((3000, 3001)).unwrap(), 3000); let port = find_available_port_in_range((3000, 3050)).unwrap(); assert!(3000 <= port && port < 3050); }
rust_cleaned_test_functions.jsonl/9051
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 112 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 26962, 8716, 1243, 9698, 368, 341, 286, 2060, 10714, 10297, 3903, 26962, 8716, 1243, 9698, 1188, 18, 15, 15, 15, 11, 220, 18, 15, 15, 16, 4579, 15454, 1507, 220, 18, 15, 15, 15, 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...
2
#[test] fn test_force_withdraw() { new_test_ext().execute_with(|| { set_block_1(); setup_workers(1); setup_pool_with_workers(1, &[1]); // pid = 0 let sub_account1: u64 = pool_sub_account(0, &worker_pubkey(1)); assert_ok!(PhalaStakePool::contribute( Origin::signed(2), 0, ...
rust_cleaned_test_functions.jsonl/60471
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 947 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40739, 6615, 7633, 368, 341, 298, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 571, 8196, 7113, 62, 16, 543, 571, 84571, 43557, 7, 16, 317, 571, 84571, 15709, 6615, 43557, 7, 16, 11, 44590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_stakes_change_delegate() { let mut stakes = Stakes::default(); stakes.epoch = 4; let ((vote_pubkey, vote_account), (stake_pubkey, stake_account)) = create_staked_node_accounts(10); let ((vote_pubkey2, vote_account2), (_stake_pubkey2, stake_account2))...
rust_cleaned_test_functions.jsonl/77856
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 821 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 2050, 15947, 55312, 368, 341, 286, 1077, 5206, 44425, 284, 794, 2050, 486, 2258, 543, 286, 44425, 92924, 284, 220, 19, 401, 286, 1077, 1781, 29358, 34014, 792, 11, 6910, 13500, 701, 320, 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_new_unknown() { let root_hash = HashValue::new([1; HashValue::LENGTH]); let smt = SparseMerkleTree::new(root_hash); assert!(smt.root_weak().is_unknown()); assert_eq!(smt.root_hash(), root_hash); }
rust_cleaned_test_functions.jsonl/63258
{ "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, 5921, 57507, 368, 341, 262, 1077, 3704, 8950, 284, 6531, 1130, 486, 931, 2561, 16, 26, 6531, 1130, 486, 65981, 2558, 262, 1077, 1525, 83, 284, 71794, 44, 16754, 273, 6533, 486, 931, 9206, 8950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_override_struct_lit_exceeds_max_width() { let mut config = Config::default(); config.override_value("struct_lit_width", "101"); assert_eq!(config.struct_lit_width(), 100); }
rust_cleaned_test_functions.jsonl/130660
{ "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, 48576, 15126, 98399, 2702, 4635, 82, 6345, 7927, 368, 341, 310, 1077, 5206, 2193, 284, 5532, 486, 2258, 543, 310, 2193, 96802, 3142, 445, 1235, 98399, 7927, 497, 330, 16, 15, 16, 797, 310, 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
#[test] fn test_navigation_pop() { let mut state = BrowserState::new(); let new_screen = ScreenName::Artist("some_id".to_string()); state.update_with(BrowserAction::NavigationPush(new_screen.clone())); assert_eq!(state.current_screen(), &new_screen); assert_eq!(state.cou...
rust_cleaned_test_functions.jsonl/32247
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 291 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58051, 17061, 368, 341, 286, 1077, 5206, 1584, 284, 16482, 1397, 486, 931, 543, 286, 1077, 501, 17649, 284, 13948, 675, 486, 40309, 445, 14689, 842, 3263, 983, 3904, 1423, 286, 1584, 5317, 6615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_directory_completions_project_root() { let input = BashCompletionInput::from("democli ./"); let completions = input.complete_directory(); assert!(completions.contains(&String::from("./src"))); assert_eq!(1, completions.len()); }
rust_cleaned_test_functions.jsonl/103209
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14846, 2965, 10819, 908, 16352, 12993, 368, 341, 286, 1077, 1946, 284, 38530, 33190, 2505, 486, 1499, 445, 27431, 509, 742, 12991, 3071, 286, 1077, 3459, 908, 284, 1946, 42928, 14846, 1428, 286, 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_copy_hash_sync() { let tmp = tempfile::tempdir().unwrap(); let dir = tmp.path(); let dest = dir.join("data"); let sri = crate::write_sync(&dir, "my-key", b"hello world").unwrap(); crate::copy_hash_sync(&dir, &sri, &dest).unwrap(); let data = fs::r...
rust_cleaned_test_functions.jsonl/64598
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 179 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16096, 8950, 23008, 368, 341, 286, 1077, 4174, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 286, 1077, 5419, 284, 4174, 3875, 543, 286, 1077, 3201, 284, 5419, 5446, 445, 691, 797, 286, 1077, 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_parser_label2() { let line = ".include:"; let stmt = parse_statement(line).expect("failed to parse statement"); let printed = format!("{}", stmt); assert_eq!(".include:", printed.trim()); }
rust_cleaned_test_functions.jsonl/77744
{ "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, 18517, 6106, 17, 368, 341, 286, 1077, 1555, 284, 5933, 997, 28669, 286, 1077, 20020, 284, 4715, 37404, 8797, 568, 17119, 445, 16091, 311, 4715, 5114, 797, 286, 1077, 16709, 284, 3561, 79878, 20020...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_leader_pending_config() { setup_for_test(); let mut tests = vec![(false, 0), (true, 1)]; for (i, (add_entry, wpending_index)) in tests.drain(..).enumerate() { let mut r = new_test_raft(1, vec![1, 2], 10, 1, new_storage()); let mut e = Entry::new(); if add_...
rust_cleaned_test_functions.jsonl/107152
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 402 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 79991, 37861, 5332, 368, 341, 262, 6505, 5478, 4452, 543, 262, 1077, 5206, 7032, 284, 7486, 0, 9697, 3849, 11, 220, 15, 701, 320, 1866, 11, 220, 16, 12587, 262, 369, 320, 72, 11, 320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_validate_config() { let content = json!({ "pool_name" : "pool1", "config_name":"config1", "wallet_name":"test_validate_config", "agency_did" : "72x8p4HubxzUK1dwxcc5FU", "remote_to_sdk_did" : "UJGjM6Cea2YVixjWwHN9wq", ...
rust_cleaned_test_functions.jsonl/1643
{ "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, 42681, 5332, 368, 341, 286, 1077, 2213, 284, 2951, 0, 2262, 310, 330, 10285, 1269, 1, 549, 330, 10285, 16, 756, 310, 330, 1676, 1269, 3252, 1676, 16, 756, 310, 330, 35735, 1269, 3252, 1944, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cstyle() { #[repr(u32)] #[derive(Clone, Copy, PeekCopy, Poke)] enum BorderStyle { None = 0, Solid = 1, Double = 2, Dotted = 3, Dashed = 4, Hidden = 5, Groove = 6, Ridge = 7, Inset = 8, Outset = 9, ...
rust_cleaned_test_functions.jsonl/24561
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 217 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31054, 666, 3528, 368, 341, 262, 11506, 30837, 8154, 18, 17, 5563, 262, 11506, 27098, 65297, 11, 14540, 11, 96587, 12106, 11, 97626, 5563, 262, 7618, 13992, 2323, 341, 286, 2240, 284, 220, 15, 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_edge_side() { let e = SimpleEdge::new(Point2::new(0f32, 0.), Point2::new(1., 1.)); assert!(e .side_query::<TrivialKernel>(&Point2::new(1.0, 0.0)) .is_on_right_side()); assert!(e .side_query::<TrivialKernel>(&Point2::new(0.0, 1.0)) ...
rust_cleaned_test_functions.jsonl/80233
{ "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, 17932, 30862, 368, 341, 286, 1077, 384, 284, 8993, 11656, 486, 931, 32737, 17, 486, 931, 7, 15, 69, 18, 17, 11, 220, 15, 24389, 5126, 17, 486, 931, 7, 16, 2572, 220, 16, 13, 1106, 286, 206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_empty_doc() { let dbname = "target/tests/testemptydoc"; let _ = Index::drop(dbname); let mut index = Index::open(dbname, Some(OpenOptions::Create)).unwrap(); let mut batch = Batch::new(); let id = index.add("{}", &mut batch).unwrap(); index.flus...
rust_cleaned_test_functions.jsonl/15064
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 291 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 18869, 368, 341, 286, 1077, 83492, 284, 330, 5657, 62468, 12697, 3194, 5236, 876, 286, 1077, 716, 284, 8008, 486, 6719, 9791, 606, 626, 286, 1077, 5206, 1922, 284, 8008, 486, 2508, 9791, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_size() { let te = TestEnv::new(&[], &[]); create_file_with_size(te.test_root().join("0_bytes.foo"), 0); create_file_with_size(te.test_root().join("11_bytes.foo"), 11); create_file_with_size(te.test_root().join("30_bytes.foo"), 30); create_file_with_size(te.test_root().join("...
rust_cleaned_test_functions.jsonl/10894
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1037 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2368, 368, 341, 262, 1077, 1013, 284, 3393, 14359, 486, 931, 2099, 12995, 609, 1294, 626, 262, 1855, 2458, 6615, 2368, 71847, 5958, 12993, 1005, 5987, 445, 15, 12524, 58432, 3975, 220, 15, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parser_examples() { let src = r#" This is the headline. This is the description. ## Examples ### Example 1 Subtraction: ``` 3 - 2 ``` ### Example 2 Addition: ``` 1 + 1 ``` "#; assert_parser( &src, vec![ Token::Headline("This is th...
rust_cleaned_test_functions.jsonl/10006
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 448 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18517, 45279, 368, 341, 286, 1077, 2286, 284, 435, 2, 698, 1986, 374, 279, 31163, 382, 1986, 374, 279, 4008, 382, 565, 25311, 271, 14374, 13383, 220, 16, 271, 3136, 26425, 1447, 13874, 3989, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_header() -> Result<(), AmqpCodecError> { let hdr = Header { durable: false, priority: 1, ttl: None, first_acquirer: false, delivery_count: 1, }; let msg = InMessage::default().set_header(hdr.clone()); le...
rust_cleaned_test_functions.jsonl/38636
{ "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, 8757, 368, 1464, 5714, 68843, 3303, 32763, 36913, 1454, 29, 341, 286, 1077, 36615, 284, 12104, 341, 310, 26128, 25, 895, 345, 310, 10619, 25, 220, 16, 345, 310, 53932, 25, 2240, 345, 310, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_default_outputs_validator() { let consensus = ckb_testnet_consensus(); let validator = WellKnownScriptsOnlyValidator::new(&consensus, &[], &[]); { let type_hash = consensus .secp256k1_blake160_sighash_all_type_hash() .unwrap(); // valid output...
rust_cleaned_test_functions.jsonl/18641
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2003 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 35189, 64959, 368, 341, 262, 1077, 23869, 284, 272, 21310, 4452, 4711, 31971, 13626, 543, 262, 1077, 22935, 284, 8325, 48206, 44942, 7308, 14256, 486, 931, 2099, 6254, 13626, 11, 609, 12995, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_version() { // version 0 record let data = [0x08]; let record = TestRequest::decode_from(&mut Cursor::new(&data),0).expect("decode"); assert_eq!(record.value,8); assert_eq!(record.value2,0); // default let data = [0x08]; assert!(TestRequest::decode_from(&m...
rust_cleaned_test_functions.jsonl/39231
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 369 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 9438, 368, 1476, 262, 442, 2319, 220, 15, 3255, 198, 262, 1077, 821, 284, 508, 15, 87, 15, 23, 935, 262, 1077, 3255, 284, 3393, 1900, 486, 18196, 5673, 2099, 6984, 28067, 486, 931, 2099...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_duplicate_operation_name() { check_error( "query=test&operation_name=op1&operation_name=op2", "Operation name parameter must not occur more than once", false, ); }
rust_cleaned_test_functions.jsonl/73207
{ "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, 70434, 32565, 1269, 368, 341, 286, 1779, 4096, 1006, 310, 330, 1631, 53538, 5, 9262, 1269, 28, 453, 16, 5, 9262, 1269, 28, 453, 17, 756, 310, 330, 8432, 829, 5733, 1969, 537, 12170, 803, 1091,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_file_expand() { check_expansion( r#" #[rustc_builtin_macro] macro_rules! file {() => {}} file!() "#, expect![[r#""""#]], ); }
rust_cleaned_test_functions.jsonl/112673
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 158 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 67875, 368, 341, 286, 1779, 14214, 10501, 1006, 310, 435, 2, 698, 310, 11506, 35788, 66, 73829, 58810, 921, 310, 18072, 21407, 0, 1034, 314, 368, 589, 4687, 532, 310, 1034, 0, 741, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_emoji_policy() -> TestResult { let p = polar(); p.load_str( r#" 👩‍🔧("👩‍🦰"); allow(👩, "🛠", "🚙") if 👩‍🔧(👩); "#, )?; qeval(&p, r#"allow("👩‍🦰","🛠","🚙")"#); qnull(&p, r#"allow("🧟","🛠","🚙")"#); Ok(...
rust_cleaned_test_functions.jsonl/68152
{ "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, 62, 37523, 22773, 368, 1464, 3393, 2077, 341, 262, 1077, 281, 284, 24660, 543, 262, 281, 5104, 2895, 1006, 286, 435, 2, 698, 503, 61804, 102, 378, 235, 147599, 445, 145233, 378, 235, 123918, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_multi_ed25519_signature_serialization() { let priv_keys_3 = generate_keys(3); // Test 1 of 3 test_successful_signature_serialization(&priv_keys_3, 1); // Test 2 of 3 test_successful_signature_serialization(&priv_keys_3, 2); // Test 3 of 3 test_successful_signature_se...
rust_cleaned_test_functions.jsonl/26226
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1506 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 32370, 17, 20, 20, 16, 24, 39859, 25602, 2022, 368, 341, 262, 1077, 6095, 12631, 62, 18, 284, 6923, 12631, 7, 18, 626, 262, 442, 3393, 220, 16, 315, 220, 18, 198, 262, 1273, 92951, 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_boolean_ops_on_binding() { Tester::new_single_source_expect_ok("apply && to binding result", " union TestUnion{ Two(u16), Four(u32), Eight(u64) } func foo() -> u32 { auto lit_2 = TestUnion::Two(2); auto lit_4 = TestUnion::Four(4); auto lit_...
rust_cleaned_test_functions.jsonl/103870
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1737 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 46642, 21959, 4470, 60815, 368, 341, 262, 76816, 486, 931, 19487, 10347, 68918, 19817, 445, 10280, 1009, 311, 10970, 1102, 497, 6228, 286, 11300, 3393, 32658, 90, 9043, 8154, 16, 21, 701, 13322, 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_report_attempts_to_succeed() { block_on(async { let config = config_generator(); let storage = Rc::new(Mutex::new(MemStorage::new())); let mut state_machine = StateMachineBuilder::new( StubPolicyEngine, StubHttpRequest, ...
rust_cleaned_test_functions.jsonl/126419
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14813, 79490, 2346, 643, 29264, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 2193, 284, 2193, 25813, 543, 310, 1077, 5819, 284, 81463, 486, 931, 3189, 9371, 486, 931, 3189, 336, 5793, 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_fn_types() { let out: Vec<String> = rune! { use std::any::type_name_of_val; fn foo() {} mod bar { pub fn foo() {} } pub fn main() { [type_name_of_val(foo), type_name_of_val(bar::foo)] } }; assert_eq!(out, vec!["foo", "bar::foo"]); }
rust_cleaned_test_functions.jsonl/60578
{ "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, 15246, 9763, 368, 341, 262, 1077, 700, 25, 11312, 3464, 29, 284, 63499, 0, 341, 286, 990, 1460, 486, 3767, 486, 1313, 1269, 3575, 6189, 280, 286, 5168, 15229, 368, 5613, 286, 1463, 3619, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vacant_entry_key() { let mut a = HashMap::new(); let key = "hello there"; let value = "value goes here"; assert!(a.is_empty()); match a.entry(key.clone()) { Occupied(_) => panic!(), Vacant(e) => { assert_eq!(key, *e...
rust_cleaned_test_functions.jsonl/8530
{ "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, 2273, 580, 517, 9078, 3097, 368, 341, 286, 1077, 5206, 264, 284, 10528, 486, 931, 543, 286, 1077, 1376, 284, 330, 14990, 1052, 876, 286, 1077, 897, 284, 330, 957, 5780, 1588, 3302, 286, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_install_git_cannot_be_a_base_url() { cargo_process("install --git github.com:rust-lang-nursery/rustfmt.git").with_status(101).with_stderr("error: invalid url `github.com:rust-lang-nursery/rustfmt.git`: cannot-be-a-base-URLs are not supported").run(); }
rust_cleaned_test_functions.jsonl/32459
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34245, 68801, 666, 3401, 21263, 4306, 7651, 2903, 368, 341, 262, 25652, 11305, 445, 12248, 1177, 12882, 31004, 905, 25, 35788, 75460, 5279, 1723, 722, 7382, 590, 12501, 32799, 1827, 4197, 4773, 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_mask_path() { let ret = mask_path("abc"); assert!( ret.is_err(), "Should fail: path doesn't start with '/'. Got: {:?}", ret ); let ret = mask_path("abc/../"); assert!( ret.is_err(), "Should fail:...
rust_cleaned_test_functions.jsonl/42578
{ "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, 9999, 2638, 368, 341, 286, 1077, 2112, 284, 6911, 2638, 445, 13683, 797, 286, 2060, 33673, 310, 2112, 2079, 9266, 3148, 310, 330, 14996, 3690, 25, 1815, 3171, 944, 1191, 448, 3353, 4427, 24528, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fx65_fill_registers() { let mut machine = Machine::new(TestContext::new()); machine.idx = 0xBCD; machine.memory_set(0xBCD, 0xC); machine.memory_set(0xBCD + 1, 4); machine.memory_set(0xBCD + 2, 123); machine.memory_set(0xBCD + 3, 98); machine.memory_set(0xBCD + 4, 12);...
rust_cleaned_test_functions.jsonl/127977
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 483 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62691, 21, 20, 30728, 78360, 368, 341, 262, 1077, 5206, 5662, 284, 12960, 486, 931, 31159, 1972, 486, 931, 1423, 262, 5662, 51806, 284, 220, 15, 80979, 35, 280, 262, 5662, 36611, 2602, 7, 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_font_matching_exact_partial() -> Result<(), Error> { fn exact_style_not_found() -> Error { format_err!("Exact style not found") } let collection = make_fake_typeface_collection(vec![ make_fake_typeface_style(Width::ExtraCondensed, Slant::Upright, ...
rust_cleaned_test_functions.jsonl/63333
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 609 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17451, 70763, 71084, 52068, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 5168, 4734, 15117, 7913, 21480, 368, 1464, 4600, 341, 310, 3561, 9266, 17223, 57954, 1707, 537, 1730, 1138, 286, 555, 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...
1
#[test] fn test_string1_event() { let data = [ 0x82, 0x2d, 0x01, 0x00, 0x0f, 0x00, 0x03, 0x00, 0x45, 0x4e, 0x47, ]; let tape = parse(&data[..]).unwrap(); assert_eq!( tape.token_tape, vec![ BinaryToken::Token(0x2d82), ...
rust_cleaned_test_functions.jsonl/109409
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 254 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3904, 16, 6748, 368, 341, 286, 1077, 821, 284, 2278, 310, 220, 15, 87, 23, 17, 11, 220, 15, 87, 17, 67, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 69, 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_footer_from_xml() { let xml = r#"<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <w:ftr xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="http://...
rust_cleaned_test_functions.jsonl/96040
{ "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, 25966, 5673, 23855, 368, 341, 262, 1077, 8396, 284, 435, 55543, 1316, 6455, 2319, 428, 16, 13, 15, 1, 11170, 428, 8561, 12, 23, 1, 43388, 428, 9693, 85990, 15889, 55477, 376, 24967, 67359, 428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_module_imported_tables_limit() { let limits = ModuleLimits { imported_tables: 0, ..Default::default() }; let mut module = Module::default(); module.table_plans.push(TablePlan { style: TableStyle::CallerChecksSignature, ...
rust_cleaned_test_functions.jsonl/48860
{ "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, 10750, 18434, 291, 35632, 14763, 368, 341, 286, 1077, 13388, 284, 13711, 94588, 341, 310, 24928, 35632, 25, 220, 15, 345, 310, 5241, 3675, 486, 2258, 741, 286, 3634, 286, 1077, 5206, 4688, 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_learner_with_slow_snapshot() { let mut cluster = new_server_cluster(0, 3); configure_for_snapshot(&mut cluster); let pd_client = Arc::clone(&cluster.pd_client); pd_client.disable_default_operator(); let r1 = cluster.run_conf_change(); (0..10).for_each(|_| cluster.must_put...
rust_cleaned_test_functions.jsonl/107622
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 93595, 6615, 82447, 53265, 368, 341, 262, 1077, 5206, 10652, 284, 501, 12015, 28441, 7, 15, 11, 220, 18, 317, 262, 14411, 5478, 53265, 2099, 6984, 10652, 317, 262, 1077, 7744, 8179, 284, 196...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_deny_send_malicious_token() { let (mut context, mut contract) = setup_contract(); let acc = ValidAccountId::try_from("test_user").unwrap(); testing_env!(context .predecessor_account_id(acc.clone()) .attached_deposit(to_yocto("1")) .buil...
rust_cleaned_test_functions.jsonl/46657
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 32395, 13565, 717, 278, 9627, 6458, 368, 341, 286, 1077, 320, 6984, 2266, 11, 5206, 5116, 8, 284, 6505, 51499, 543, 286, 1077, 1029, 284, 7818, 62545, 486, 1539, 5673, 445, 1944, 3317, 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_timer() -> () { let system = KompactConfig::default().build().expect("KompactSystem"); let trc = system.create(TimerRecvComponent::new); system.start(&trc); thread::sleep(Duration::from_millis(1000)); trc.on_definition(|c| { asse...
rust_cleaned_test_functions.jsonl/36830
{ "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, 16255, 368, 1464, 1719, 341, 286, 1077, 1849, 284, 730, 14435, 531, 2648, 486, 2258, 1005, 5834, 1005, 17119, 445, 42, 14435, 531, 2320, 797, 286, 1077, 489, 66, 284, 1849, 2520, 4140, 3134, 634...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_into_inner_1() { let mut v = ArrayVec::from([1, 2]); v.pop(); let u = v.clone(); assert_eq!(v.into_inner(), Err(u)); }
rust_cleaned_test_functions.jsonl/36778
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 79 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45514, 34345, 62, 16, 368, 341, 262, 1077, 5206, 348, 284, 2910, 10050, 486, 1499, 2561, 16, 11, 220, 17, 2558, 262, 348, 8288, 543, 262, 1077, 575, 284, 348, 15997, 543, 262, 2060, 10714, 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
#[test] fn test_stash_apply_conflict2() { let (_td, repo) = repo_init().unwrap(); let root = repo.path().parent().unwrap(); let repo_path = root.as_os_str().to_str().unwrap(); write_commit_file(&repo, "test.txt", "test", "c1"); repo_write_file(&repo, "test.txt", "test2"...
rust_cleaned_test_functions.jsonl/20970
{ "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, 1261, 988, 36551, 16059, 21242, 17, 368, 341, 286, 1077, 5453, 1296, 11, 15867, 8, 284, 15867, 6137, 1005, 15454, 543, 286, 1077, 3704, 284, 15867, 3875, 1005, 3765, 1005, 15454, 543, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_palindrome() { let text = "banana"; let pal_len = palindromes(text.as_bytes()); assert_eq!(pal_len, vec![1, 0, 1, 0, 3, 0, 5, 0, 3, 0, 1]); }
rust_cleaned_test_functions.jsonl/115514
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 105 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73310, 36058, 368, 341, 286, 1077, 1467, 284, 330, 87747, 3302, 286, 1077, 10854, 6043, 284, 10854, 484, 441, 288, 7235, 5357, 12524, 5231, 286, 2060, 10714, 10297, 19308, 6043, 11, 7486, 20703, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_derive_phy_cbw() { { let want = (fidl_common::Phy::Vht, fidl_common::Cbw::Cbw80); let got = derive_phy_cbw( &fake_vht_bss_description(), &fake_device_info_vht(fidl_mlme::ChanWidthSet::TwentyForty), &RadioConfig::defa...
rust_cleaned_test_functions.jsonl/17787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 696 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35345, 533, 50266, 16450, 86, 368, 341, 286, 341, 310, 1077, 1366, 284, 320, 32439, 75, 21107, 486, 3357, 88, 486, 53, 426, 11, 32104, 75, 21107, 486, 34, 39824, 486, 34, 39824, 23, 15, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_date() { assert_eq!( "Sun, 07 Nov 1994 08:48:37 GMT".parse::<HttpDate>().unwrap(), NOV_07 ); assert_eq!( "Sunday, 07-Nov-94 08:48:37 GMT" .parse::<HttpDate>() .unwrap(), NOV_07 ); ...
rust_cleaned_test_functions.jsonl/117353
{ "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, 4164, 368, 341, 286, 2060, 10714, 33673, 310, 330, 30092, 11, 220, 15, 22, 4620, 220, 16, 24, 24, 19, 220, 15, 23, 25, 19, 23, 25, 18, 22, 24488, 3263, 6400, 27638, 2905, 1916, 10483, 15454,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lookup3_xy() { let mut rng = XorShiftRng::from_seed([ 0x59, 0x62, 0xbe, 0x3d, 0x76, 0x3d, 0x31, 0x8d, 0x17, 0xdb, 0x37, 0x32, 0x54, 0x06, 0xbc, 0xe5, ]); for _ in 0..100 { let mut cs = TestConstraintSystem::<Bls12>::new(); ...
rust_cleaned_test_functions.jsonl/51077
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 822 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27464, 18, 40920, 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, 15, 42459, 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...
8
#[test] fn test_serialize() { ::init().unwrap(); // Some let clocktime = ClockTime::from_nseconds(42_123_456_789); let mut pretty_config = ron::ser::PrettyConfig::default(); pretty_config.new_line = "".to_string(); let res = ron::ser::to_string_pretty(&clocktim...
rust_cleaned_test_functions.jsonl/5551
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 361 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 368, 341, 286, 3504, 2327, 1005, 15454, 1428, 286, 442, 4329, 198, 286, 1077, 8866, 1678, 284, 26142, 1462, 486, 1499, 1089, 17403, 7, 19, 17, 62, 16, 17, 18, 62, 19, 20, 21, 62, 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() { let list = SongList::new_from_initial_batch(batch(0)); let mut list_iter = list.iter(); assert_eq!(list_iter.next().unwrap().id, "song0"); assert_eq!(list_iter.next().unwrap().id, "song1"); assert!(list_iter.next().is_none()); }
rust_cleaned_test_functions.jsonl/101854
{ "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, 11723, 368, 341, 286, 1077, 1140, 284, 18971, 852, 486, 931, 5673, 15809, 14534, 30139, 7, 15, 3237, 286, 1077, 5206, 1140, 11723, 284, 1140, 19471, 543, 286, 2060, 10714, 10297, 1607, 11723, 4529...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tree_edit() { let mut parser = Parser::new(); parser.set_language(get_language("javascript")).unwrap(); let tree = parser.parse(" abc !== def", None).unwrap(); assert_eq!( tree.root_node().to_sexp(), "(program (expression_statement (binary_expression (identifi...
rust_cleaned_test_functions.jsonl/131719
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3053 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11663, 13156, 368, 341, 262, 1077, 5206, 6729, 284, 21102, 486, 931, 543, 262, 6729, 980, 29021, 5433, 29021, 445, 14073, 15197, 15454, 543, 262, 1077, 4916, 284, 6729, 4632, 445, 220, 39022, 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_debug_no_value() { let mut buf = ArrayString::<20>::new(); write!(&mut buf, "{:?}", Response::Ok).expect("Can't write"); assert_eq!(&buf, "Ok"); }
rust_cleaned_test_functions.jsonl/52041
{ "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, 15446, 6536, 3142, 368, 341, 286, 1077, 5206, 6607, 284, 2910, 703, 27638, 17, 15, 6831, 931, 1428, 286, 3270, 0, 2099, 6984, 6607, 11, 13868, 25, 52652, 5949, 486, 11578, 568, 17119, 445, 6713,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_read_partial_range() { let nodes = 48u32; let graph = StackedBucketGraph::<PoseidonHasher>::new_stacked( nodes as usize, BASE_DEGREE, EXP_DEGREE, [0u8; 32], ) .unwrap(); let mut half_cache = ParentCache::new...
rust_cleaned_test_functions.jsonl/99640
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 822 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 52068, 9698, 368, 341, 286, 1077, 7798, 284, 220, 19, 23, 84, 18, 17, 280, 286, 1077, 4771, 284, 794, 11191, 36018, 11212, 27638, 46315, 90456, 6370, 261, 6831, 931, 1261, 11191, 1006, 310...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_service_group_identifier() { let dependency = ServiceDependency::from_system_identifier("+network"); assert_eq!( dependency, ServiceDependency::Group(OsString::from("network")) ); }
rust_cleaned_test_functions.jsonl/50433
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 115 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12267, 6288, 33176, 368, 341, 286, 1077, 24036, 284, 5362, 36387, 486, 1499, 17687, 33176, 34973, 17511, 797, 286, 2060, 10714, 33673, 310, 24036, 345, 310, 5362, 36387, 486, 2808, 19238, 82, 703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_offline_subscribe_to() { let id = "id1".to_string(); let client_id = ClientId::from(id); let mut session = Session::new_offline(SessionState::new(client_id, default_config())); let subscribe_to = proto::SubscribeTo { topic_filter: "topic/new".to_strin...
rust_cleaned_test_functions.jsonl/29336
{ "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, 13651, 1056, 88935, 2346, 368, 341, 286, 1077, 877, 284, 330, 307, 16, 3263, 983, 3904, 543, 286, 1077, 2943, 842, 284, 8423, 764, 486, 1499, 3724, 317, 286, 1077, 5206, 3797, 284, 9164, 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_access_unknown_field_error() { insta::assert_display_snapshot!(compilation_errors( "\n\nstruct Foo {\ni: bool\n}\n\nfn main() {\nlet a = Foo { i: false };\nlet b = a.t;\n}" )); }
rust_cleaned_test_functions.jsonl/21700
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 115 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12759, 57507, 5013, 4096, 368, 341, 286, 1761, 64, 486, 2207, 14825, 53265, 10297, 5689, 13455, 20196, 1006, 310, 2917, 77, 1699, 1235, 33428, 28152, 7751, 25, 1807, 1699, 11035, 77, 1699, 8822, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_payload_encrypts_128() { let (key, auth) = ece::generate_keypair_and_auth_secret().unwrap(); let p_key = key.raw_components().unwrap(); let p_key = p_key.public_key(); let http_ece = HttpEce::new(ContentEncoding::Aes128Gcm, p_key, &auth, None); let plaint...
rust_cleaned_test_functions.jsonl/94469
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 323 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32813, 66593, 82, 62, 16, 17, 23, 368, 341, 286, 1077, 320, 792, 11, 4166, 8, 284, 384, 346, 486, 19366, 3097, 12670, 8378, 14014, 21962, 1005, 15454, 543, 286, 1077, 281, 3097, 284, 1376, 181...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scalar_divide_inf() { let x = Complex::new(1.0,1.0); let y_double: f64 = f64::INFINITY; let y_complex = Complex::new_real(y_double); assert!(x.divide(&y_complex) == x.divide_f64(y_double)); let y_double = f64::NEG_INFINITY; let y_complex = Complex...
rust_cleaned_test_functions.jsonl/43849
{ "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, 41652, 16237, 577, 26051, 368, 341, 286, 1077, 856, 284, 22096, 486, 931, 7, 16, 13, 15, 11, 16, 13, 15, 317, 286, 1077, 379, 24598, 25, 282, 21, 19, 284, 282, 21, 19, 486, 687, 55990, 280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_children_slashdash_comment() { assert_eq!( node("node /-{}"), Ok(( "", Some(KdlNode { name: "node".into(), values: Vec::new(), properties: HashMap::new(), ...
rust_cleaned_test_functions.jsonl/118114
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 728 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31206, 11886, 988, 43519, 17638, 368, 341, 286, 2060, 10714, 33673, 310, 2436, 445, 3509, 608, 12, 6257, 4461, 310, 7622, 94702, 394, 8324, 394, 4329, 16738, 8736, 1955, 341, 503, 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_wait_signal() { let _ = ::FORK_MTX.lock().expect("Mutex got poisoned by another test"); match fork().expect("Error: Fork Failed") { Child => { pause(); unsafe { _exit(123) } }, Parent { child } => { kill(child, Some(SIGKILL)).expect("...
rust_cleaned_test_functions.jsonl/69913
{ "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, 18760, 21137, 368, 341, 262, 1077, 716, 284, 3504, 37, 10647, 1245, 22867, 21003, 1005, 17119, 445, 38099, 2684, 70498, 553, 2441, 1273, 3071, 1066, 262, 2432, 22435, 1005, 17119, 445, 1454, 25, 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...
2
#[test] fn test_ws_expr() { let p = Parser::new(); assert_eq!(p.ws_expr(" \t \t \n").1, Done("\n", Expression::new(WSSep::new_str(" \t \t ", ""), None, None, None) )); }
rust_cleaned_test_functions.jsonl/134303
{ "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, 50211, 21915, 368, 341, 262, 1077, 281, 284, 21102, 486, 931, 543, 262, 2060, 10714, 10297, 79, 22195, 21915, 445, 220, 1124, 83, 1124, 83, 1124, 77, 1827, 16, 11, 27357, 4921, 77, 756, 414, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_func_stack() { let code = String::from(system_header) + "\ (lui sp initial_sp) (addi sp sp initial_sp) (jal ra (&- DO_THING pc)) (.begin (.def r_end t3) (lui r_end end_pc_target) (addi r_end r_end end_pc_target) (jalr zero r_end 0) ) (: DO_THING) (.func (.stack ARR1 (...
rust_cleaned_test_functions.jsonl/125906
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 875 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9596, 15528, 368, 341, 262, 1077, 2038, 284, 923, 486, 1499, 46006, 8757, 8, 488, 93317, 2333, 1963, 978, 2856, 10123, 340, 25906, 72, 978, 978, 2856, 10123, 692, 3325, 278, 15122, 15899, 12, 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...
1
#[test] fn test_clear() { let mut sequence = LV2AtomSequence::new(&test_features(), 1024); sequence .push_event(&LV2AtomEventBuilder::new_full(0, 0, [1, 2, 3])) .unwrap(); assert_eq!(sequence.iter().count(), 1); sequence.clear(); assert_eq!(seque...
rust_cleaned_test_functions.jsonl/80319
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21811, 368, 341, 286, 1077, 5206, 8500, 284, 39169, 17, 35836, 14076, 486, 931, 2099, 1944, 14965, 1507, 220, 16, 15, 17, 19, 626, 286, 8500, 198, 310, 659, 9077, 6748, 2099, 40258, 17, 35836, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_expr_error() { let mut mint = Mint::new("tests/it/testdata"); let mut file = mint.new_goldenfile("expr-error.txt").unwrap(); let cases = &[ "5 * (a and ) 1", "a + +", "G.E.B IS NOT NULL AND\n\tcol1 NOT BETWEEN col2 AND\n\t\tAND 1 + col3 DIV sum(col4)", ...
rust_cleaned_test_functions.jsonl/118370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21915, 4096, 368, 341, 262, 1077, 5206, 28337, 284, 41310, 486, 931, 445, 23841, 14, 275, 12697, 691, 797, 262, 1077, 5206, 1034, 284, 28337, 4618, 54696, 268, 1192, 445, 9413, 18917, 3909, 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...
4
#[test] fn test_get_factorization() { let mut factorization_worker = FactorizationWorker::new(); let n = 120; factorization_worker.get_factorization(n); // test let result = factorization_worker.get_factorization(n); assert_eq!(result[2], 3); assert_eq!...
rust_cleaned_test_functions.jsonl/90816
{ "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, 3062, 18588, 2022, 368, 341, 286, 1077, 5206, 8168, 2022, 40385, 284, 37729, 2022, 21936, 486, 931, 543, 286, 1077, 308, 284, 220, 16, 17, 15, 401, 286, 8168, 2022, 40385, 670, 18588, 2022, 1445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_top_level_decode() { let mut input = String::new(); let _ = File::open("tests/resources/top-level.gz.eml").unwrap().read_to_string(&mut input); let x = parse_report_message(&input).unwrap(); assert_eq!(get_expected_feedback(), x); }
rust_cleaned_test_functions.jsonl/19280
{ "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, 10426, 8274, 15227, 368, 341, 262, 1077, 5206, 1946, 284, 923, 486, 931, 543, 262, 1077, 716, 284, 2887, 486, 2508, 445, 23841, 38900, 35282, 11591, 20963, 9301, 75, 1827, 15454, 1005, 878, 2346, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_no_results() { let output = Command::new(get_path()) .arg("--alpha-min=1") .arg("--alpha-max=1") .arg("--base-colors=#ffffff,#bfbfbf,#808080,#404040,#000000") .arg("--target-colors=#fabbbd,#cd8e91,#a16264,#743538,#47080b") .outp...
rust_cleaned_test_functions.jsonl/4292
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 377 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 13576, 368, 341, 286, 1077, 2550, 284, 7348, 486, 931, 5433, 2638, 2398, 310, 659, 858, 21549, 7141, 13398, 28, 16, 1138, 310, 659, 858, 21549, 7141, 44073, 28, 16, 1138, 310, 659, 858, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_merge() { logger_init(); let mut types_map = TypesConvMap::default(); let sess = ParseSess::new(); unwrap_presult!(types_map.merge( &sess, "test_merge", r#" mod swig_foreign_types_map { #![swig_foreigner_type="boolean"] ...
rust_cleaned_test_functions.jsonl/49248
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1899 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 368, 341, 286, 5925, 6137, 543, 286, 1077, 5206, 4494, 5376, 284, 20768, 34892, 2227, 486, 2258, 543, 286, 1077, 21875, 284, 14775, 50, 433, 486, 931, 543, 286, 79813, 620, 1382, 10297, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_new_pool_with_ssl_options() { let uri = Uri::new("mongodb://localhost:27017/").unwrap(); let ssl_options = SslOptions::new( Some(PathBuf::from("./README.md")), Some("password".to_string()), Some(PathBuf::from("./README.md")), Some(PathBuf::from("./README.m...
rust_cleaned_test_functions.jsonl/22221
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 231 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 15709, 6615, 48210, 8743, 368, 341, 262, 1077, 13071, 284, 17226, 486, 931, 445, 37197, 1110, 8301, 25, 17, 22, 15, 16, 22, 14, 1827, 15454, 543, 262, 1077, 33537, 8743, 284, 328, 3226, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_volume_mounts() { let container = Container { name: "test_container".into(), image: "test/image".into(), resources: Resources { cpu: Some(CPU { required: "1".into(), }), memory: Some(Memory { requi...
rust_cleaned_test_functions.jsonl/98689
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1066 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 26941, 57593, 82, 368, 341, 262, 1077, 5476, 284, 9678, 341, 286, 829, 25, 330, 1944, 15847, 3263, 18122, 3148, 286, 2168, 25, 330, 1944, 23349, 3263, 18122, 3148, 286, 4963, 25, 16209, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_request_redeem_succeeds_in_error_state() { run_test(|| { ext::security::ensure_parachain_status_has_only_specific_errors::<Test> .mock_safe(|_| MockResult::Return(Ok(()))); ext::security::is_parachain_error_liquidation::<Test> .mock_safe(|| MockResult...
rust_cleaned_test_functions.jsonl/26922
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1535 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 1288, 450, 336, 643, 29264, 82, 1243, 4096, 4387, 368, 341, 262, 1598, 4452, 79453, 341, 286, 1303, 486, 17039, 486, 27289, 22654, 610, 466, 4773, 21778, 18410, 56592, 20196, 27638, 2271, 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...
4
#[test] fn test_get_block_index_by_tx_out_index_doesnt_exist() { let mut ledger_db = create_db(); let n_blocks = 43; populate_db(&mut ledger_db, n_blocks, 1); let out_of_range = 999; match ledger_db.get_block_index_by_tx_out_index(out_of_range) { Ok(_block_i...
rust_cleaned_test_functions.jsonl/89694
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 269 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 7113, 3560, 3710, 17805, 6068, 3560, 96374, 406, 35906, 368, 341, 286, 1077, 5206, 46933, 8685, 284, 1855, 8685, 543, 286, 1077, 308, 25201, 284, 220, 19, 18, 280, 286, 30446, 8685, 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...
2
#[test] fn test_compile_shift_right_wrap_f() { let compiled = bitwise::compile_shift_right_wrap("F".to_string()); assert_eq!(compiled.len(), 1); assert_eq!(compiled[0], 0b10110111); }
rust_cleaned_test_functions.jsonl/100625
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74170, 22230, 10539, 38550, 761, 368, 341, 262, 1077, 19697, 284, 97970, 486, 20433, 22230, 10539, 38550, 445, 37, 3263, 983, 3904, 5231, 262, 2060, 10714, 10297, 50845, 19406, 1507, 220, 16, 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
#[test] fn test_timestamp_diff_mul_assign() { let mut tmsp_diff = TimestampDiff::from_millis(2000); let multiplier = 1000; let tmsp_diff_old = tmsp_diff; tmsp_diff *= multiplier; assert_eq!(tmsp_diff.as_i64(), tmsp_diff_old.as_i64() * multiplier); }
rust_cleaned_test_functions.jsonl/32120
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23073, 15850, 24944, 20688, 368, 341, 262, 1077, 5206, 259, 92545, 15850, 284, 32758, 21751, 486, 1499, 717, 56212, 7, 17, 15, 15, 15, 317, 262, 1077, 30559, 284, 220, 16, 15, 15, 15, 401, 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_statsd_format_basic_counter() -> Result<(), MetricError> { let mut buf: String = String::with_capacity(256); statsd_format( &mut buf, VALID_STR, VALID_VALUE, MetricType::Counter, None, &make_empty_tags(), ...
rust_cleaned_test_functions.jsonl/87621
{ "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, 15381, 67, 8955, 34729, 15730, 368, 1464, 5714, 68843, 52458, 1454, 29, 341, 286, 1077, 5206, 6607, 25, 923, 284, 923, 486, 4197, 35603, 7, 17, 20, 21, 317, 286, 10472, 67, 8955, 1006, 310, 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...
2