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_lease_length_try_from_fidl() { let both = fidl_fuchsia_net_dhcp::LeaseLength { default: Some(42), max: Some(42), ..fidl_fuchsia_net_dhcp::LeaseLength::EMPTY }; let with_default = fidl_fuchsia_net_dhcp::LeaseLength { default:...
rust_cleaned_test_functions.jsonl/68085
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 665 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 1623, 5118, 53283, 5673, 761, 55464, 368, 341, 286, 1077, 2176, 284, 32104, 75, 761, 73391, 19722, 814, 62169, 486, 2304, 519, 4373, 341, 310, 1638, 25, 4329, 7, 19, 17, 1326, 310, 1932, 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_aff_proj_sidhex() { fn aux(a_sk: MyASc) { let a_sk = a_sk.0; let e = (a(), b()); let ab = (paxy(), qaxy()); let pab = (xpa(), xqa(), xra()); let a_steps = 4; // EA/2; let ap_steps = 2; // EA; let aff_jinv = a_sidh_isoex(a_sk, e, ab, a_steps); let jinv = a_sharedkey(pab, a_sk, ap_step...
rust_cleaned_test_functions.jsonl/11579
{ "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, 48914, 49453, 53044, 17308, 368, 341, 262, 5168, 10047, 2877, 33811, 25, 3017, 1911, 66, 8, 341, 10217, 264, 33811, 284, 264, 33811, 13, 15, 280, 10217, 384, 284, 320, 64, 1507, 293, 1423, 10217...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_verify_hash_unfrozen() { let (genesis_config, _mint_keypair) = create_genesis_config(2_000); let bank = Bank::new_for_tests(&genesis_config); assert!(bank.verify_hash()); }
rust_cleaned_test_functions.jsonl/28884
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 8950, 4907, 69, 42240, 368, 341, 286, 1077, 320, 77894, 5332, 11, 716, 67791, 3097, 12670, 8, 284, 1855, 16322, 13774, 5332, 7, 17, 62, 15, 15, 15, 317, 286, 1077, 6073, 284, 8547, 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
#[test] fn test_perm_to_cycles() { assert_eq!(perm_to_cycles(&[1, 2, 0]), tvec!(tvec!(0, 1, 2))); assert_eq!(perm_to_cycles(&[2, 0, 1]), tvec!(tvec!(0, 2, 1))); assert_eq!(perm_to_cycles(&[1, 2, 3, 0]), tvec!(tvec!(0, 1, 2, 3))); assert_eq!(perm_to_cycles(&[3, 0, 1, 2]), tvec!(tv...
rust_cleaned_test_functions.jsonl/126322
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 241 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31961, 2346, 68970, 368, 341, 286, 2060, 10714, 10297, 19913, 2346, 68970, 2099, 58, 16, 11, 220, 17, 11, 220, 15, 9719, 259, 4083, 10297, 83, 4083, 10297, 15, 11, 220, 16, 11, 220, 17, 4945, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_next_stateful() { let mut rng = Rng::new(0x2b4610ec42f20b13); assert_eq!(rng.next(), 12531479686729921902); assert_eq!(rng.next(), 0xf22b5d124ea05a84); }
rust_cleaned_test_functions.jsonl/92307
{ "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, 11257, 4387, 1262, 368, 341, 286, 1077, 5206, 28422, 284, 431, 968, 486, 931, 7, 15, 87, 17, 65, 19, 21, 16, 15, 757, 19, 17, 69, 17, 15, 65, 16, 18, 317, 286, 2060, 10714, 10297, 69890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_muxer_killq() { let mut ctx = MuxerTestContext::new("muxer_killq"); let local_port = 1026; let peer_port_first = 1025; let peer_port_last = peer_port_first + defs::MUXER_KILLQ_SIZE; let mut listener = ctx.create_local_listener(local_port); // Save...
rust_cleaned_test_functions.jsonl/37605
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1847 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80363, 261, 73327, 80, 368, 341, 286, 1077, 5206, 5635, 284, 386, 2200, 261, 2271, 1972, 486, 931, 445, 75066, 261, 73327, 80, 797, 286, 1077, 2205, 8716, 284, 220, 16, 15, 17, 21, 280, 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...
3
#[test] fn test_hover_generic_return_impl_trait_has_goto_type_action() { check_actions( r#" trait Foo<T> {} struct S; fn foo() -> impl Foo<S> {} fn main() { let s$0t = foo(); } "#, expect![[r#" [ GoToType( [ ...
rust_cleaned_test_functions.jsonl/66675
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1301 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 41232, 12511, 21007, 78491, 21778, 97732, 1819, 7931, 368, 341, 286, 1779, 25368, 1006, 310, 435, 2, 698, 29432, 33428, 3125, 29, 5613, 1235, 328, 280, 8822, 15229, 368, 1464, 11605, 33428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_euclidean_matrix_slice_metric_bad_dim() { let m = matrix![3.0, 4.0]; let m2 = matrix![1.0, 2.0, 3.0]; let m_slice = MatrixSlice::from_matrix( &m, [0; 2], 1, 1 ); let m2_slice = MatrixSlice::from_matrix( &m2, [0; 2], 1, 2 )...
rust_cleaned_test_functions.jsonl/6900
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 227 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 84, 50078, 10193, 26488, 41294, 34199, 10791, 368, 341, 286, 1077, 296, 284, 6172, 20703, 18, 13, 15, 11, 220, 19, 13, 15, 935, 286, 1077, 296, 17, 284, 6172, 20703, 16, 13, 15, 11, 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_resign_transaction() { let rpc_client = RpcClient::new_mock("succeeds".to_string()); let key = Keypair::new(); let to = Pubkey::new_rand(); let blockhash: Hash = "HUu3LwEzGRsUkuJS121jzkPJW39Kq62pXCTmTa1F9jDL" .parse() .unwrap(); le...
rust_cleaned_test_functions.jsonl/72848
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 379 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4918, 622, 28884, 368, 341, 286, 1077, 35596, 8179, 284, 79961, 2959, 486, 931, 34134, 445, 82, 29264, 82, 3263, 983, 3904, 5231, 286, 1077, 1376, 284, 6569, 1082, 1310, 486, 931, 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_mutex_guard_debug_not_recurse() { let mutex = Mutex::new(42); let guard = mutex.try_lock().unwrap(); let _ = format!("{:?}", guard); }
rust_cleaned_test_functions.jsonl/133828
{ "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, 14204, 36796, 15446, 7913, 1288, 2352, 325, 368, 341, 262, 1077, 30863, 284, 66215, 486, 931, 7, 19, 17, 317, 262, 1077, 7616, 284, 30863, 48779, 9818, 1005, 15454, 543, 262, 1077, 716, 284, 356...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_string() { assert_eq!( String::from_record(&Record::String("foo".to_string())), Ok("foo".to_string()) ); assert_eq!( String::from_record(&Record::Bool(true)), Err("not a string Bool(true)".to_string()) ); }
rust_cleaned_test_functions.jsonl/8013
{ "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, 3904, 368, 341, 262, 2060, 10714, 33673, 286, 923, 486, 1499, 14192, 2099, 6471, 486, 703, 445, 7975, 3263, 983, 3904, 73727, 286, 7622, 445, 7975, 3263, 983, 3904, 2398, 262, 1439, 262, 2060, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_connect_to_best_network() { let mut exec = fasync::Executor::new().expect("failed to create an executor"); let mut test_values = test_setup("test_client_event_with_saved_network", &mut exec, true); // Setup the IfaceManager so that it has a disconnected iface. { ...
rust_cleaned_test_functions.jsonl/42362
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1047 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15720, 2346, 33101, 20966, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 25255, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 458, 31558, 797, 286, 1077, 5206, 1273, 9146, 284, 1273, 21363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_push_updates_no_such_remote() { let settings = testutils::user_settings(); let temp_dir = tempfile::tempdir().unwrap(); let setup = set_up_push_repos(&settings, &temp_dir); let result = git::push_updates( &setup.jj_repo.store().git_repo().unwrap(), "invalid-remote...
rust_cleaned_test_functions.jsonl/96075
{ "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, 14218, 57829, 6536, 643, 1387, 36425, 368, 341, 262, 1077, 5003, 284, 1273, 6031, 486, 872, 10853, 543, 262, 1077, 2730, 4334, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 262, 1077, 6505, 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_parse_command() { let test_commands = app("test", "desc", "version"); let default_keypair = Keypair::new(); let (default_keypair_file, mut tmp_file) = make_tmp_file(); write_keypair(&default_keypair, tmp_file.as_file_mut()).unwrap(); let test_cluster_vers...
rust_cleaned_test_functions.jsonl/88389
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2413 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 10811, 368, 341, 286, 1077, 1273, 44151, 284, 906, 445, 1944, 497, 330, 8614, 497, 330, 4366, 797, 286, 1077, 1638, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 320, 2258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_incircle() { let from = vec![-1f64, -1.0]; let to = vec![1f64, 1.0]; let p_left = vec![-::std::f64::MIN_POSITIVE, ::std::f64::MIN_POSITIVE]; let p_right = vec![::std::f64::MIN_POSITIVE, -::std::f64::MIN_POSITIVE]; let p_query = vec![2.0, 2.0]; ass...
rust_cleaned_test_functions.jsonl/122548
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 246 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 25857, 368, 341, 286, 1077, 504, 284, 7486, 0, 7609, 16, 69, 21, 19, 11, 481, 16, 13, 15, 935, 286, 1077, 311, 284, 7486, 20703, 16, 69, 21, 19, 11, 220, 16, 13, 15, 935, 286, 1077...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_default() { let header = Builder::default().build(); assert_eq!(header.file_format(), FileFormat::default()); assert!(header.infos().is_empty()); assert!(header.filters().is_empty()); assert!(header.formats().is_empty()); assert!(header.alternativ...
rust_cleaned_test_functions.jsonl/89163
{ "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, 9993, 368, 341, 286, 1077, 4247, 284, 20626, 486, 2258, 1005, 5834, 1428, 286, 2060, 10714, 10297, 2708, 9715, 8955, 1507, 2887, 4061, 486, 2258, 1423, 286, 2060, 10297, 2708, 30957, 436, 1005, 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_combine_same_key() { let mut combined = super::combine( TestInterceptor { metadata_to_append: ("key", "value_0"), }, TestInterceptor { metadata_to_append: ("key", "value_1"), }, ); let initial = tonic::Request::new(()); let ...
rust_cleaned_test_functions.jsonl/65697
{ "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, 72374, 33574, 3097, 368, 341, 262, 1077, 5206, 10856, 284, 2256, 486, 63136, 1006, 286, 3393, 32786, 341, 310, 11160, 2346, 26041, 25, 3489, 792, 497, 330, 957, 62, 15, 4461, 286, 1153, 286, 339...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rule_with_from_invalid_range_1() { assert_eq!( parse_str_to_rules("pass in proto tcp from range 0:5;"), Err(Error::Invalid(InvalidReason::InvalidPortRange)) ); }
rust_cleaned_test_functions.jsonl/29480
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 111 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21124, 6615, 5673, 31433, 9698, 62, 16, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 2895, 2346, 21407, 445, 6385, 304, 18433, 28051, 504, 2088, 220, 15, 25, 20, 26, 4461, 310, 15495, 37396, 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
#[test] fn test_parse_failure() -> Result<(), Box<dyn std::error::Error>> { let mut cmd = Command::cargo_bin("jj")?; let assert = cmd.arg("_").write_stdin("}").assert(); assert.failure().code(4).stdout(""); Ok(()) }
rust_cleaned_test_functions.jsonl/43236
{ "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, 21039, 43618, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 262, 1077, 5206, 5439, 284, 7348, 486, 66715, 21816, 445, 38811, 899, 37445, 262, 1077, 2060, 284, 5439, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parsing_ends_when_input_callback_returns_empty() { let mut parser = Parser::new(); parser.set_language(get_language("javascript")).unwrap(); let mut i = 0; let source = b"abcdefghijklmnoqrs"; let tree = parser .parse_with( &mut |offset, _| { ...
rust_cleaned_test_functions.jsonl/15865
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 343 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 28598, 90729, 47636, 5898, 12519, 58900, 15124, 368, 341, 262, 1077, 5206, 6729, 284, 21102, 486, 931, 543, 262, 6729, 980, 29021, 5433, 29021, 445, 14073, 15197, 15454, 543, 262, 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...
2
#[test] fn test_everything_becomes_lowercase() { test("caSe", "cs ae"); test("cAsE", "cs ae"); test("CASE", "cs ae"); }
rust_cleaned_test_functions.jsonl/27430
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 68 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64048, 1596, 880, 757, 20347, 93129, 368, 341, 262, 1273, 445, 924, 1514, 497, 330, 4837, 41856, 797, 262, 1273, 445, 66, 2121, 36, 497, 330, 4837, 41856, 797, 262, 1273, 445, 40371, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_berlekamp_massey_fp() { for p in SMALL_PRIMES.iter().map(|&p| p as i64) { for a in 1..p { let [x, y] = berlekamp_massey_fp(a, p); assert!(0 <= x && x <= (p as f64).sqrt() as i64 && x * x != p); assert!(y.abs() <= (p as f64).sqrt...
rust_cleaned_test_functions.jsonl/57318
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 263 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88165, 75776, 1121, 81641, 8506, 34160, 368, 341, 286, 369, 281, 304, 49197, 10571, 1791, 1570, 19471, 1005, 2186, 22428, 5, 79, 91, 281, 438, 600, 21, 19, 8, 341, 310, 369, 264, 304, 220, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_default() { { let sensitive_data: SensitiveData = Default::default(); let expected: TPM2B_SENSITIVE_DATA = Default::default(); let actual = TPM2B_SENSITIVE_DATA::try_from(sensitive_data).unwrap(); assert_eq!(expected.size, actual.size); ...
rust_cleaned_test_functions.jsonl/24888
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 565 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 368, 341, 286, 341, 310, 1077, 16216, 1769, 25, 328, 18723, 1043, 284, 7899, 486, 2258, 543, 310, 1077, 3601, 25, 63644, 17, 33, 38924, 44350, 7896, 284, 7899, 486, 2258, 543, 310, 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_truncated() { let cmd = RelayCmd::TRUNCATED; assert_eq!(Into::<u8>::into(cmd), 9_u8); msg(cmd, "08", &msg::Truncated::new(8.into()).into()); }
rust_cleaned_test_functions.jsonl/66347
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 38007, 368, 341, 262, 1077, 5439, 284, 46172, 15613, 486, 2378, 12633, 9005, 280, 262, 2060, 10714, 10297, 26591, 27638, 84, 23, 6831, 18122, 14160, 701, 220, 24, 7300, 23, 626, 262, 3750, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_truncated_psk_offer() { let ext = ClientExtension::PresharedKey(PresharedKeyOffer { identities: vec![PresharedKeyIdentity::new(vec![3, 4, 5], 123456)], binders: vec![PresharedKeyBinder::new(vec![1, 2, 3])], }); let mut enc = ext.get_encoding(); println!("testing ...
rust_cleaned_test_functions.jsonl/100970
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 275 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 38007, 620, 4886, 67814, 368, 341, 262, 1077, 1303, 284, 8423, 12049, 486, 47, 2488, 1605, 1592, 5304, 2488, 1605, 1592, 39462, 341, 286, 39421, 25, 7486, 20703, 47, 2488, 1605, 1592, 18558,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_escape_comma() { let csv = r#"column_1,column_2,column_3 -86.64408227,"Autauga, Alabama, US",11 -86.64408227,"Autauga, Alabama, US",12 "#; let file = Cursor::new(csv); let df = CsvReader::new(file).finish().unwrap(); assert_eq!(df.shape(), (2, 3)); assert!...
rust_cleaned_test_functions.jsonl/57564
{ "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, 21832, 2965, 1728, 368, 341, 286, 1077, 13147, 284, 435, 55543, 6229, 62, 16, 51169, 62, 17, 51169, 62, 18, 198, 12, 23, 21, 13, 21, 19, 19, 15, 23, 17, 17, 22, 1335, 32, 15999, 36960, 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_bank_forks_descendants() { let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(10_000); let bank = Bank::new(&genesis_config); let mut bank_forks = BankForks::new(bank); let bank0 = bank_forks[0].clone(); let bank = Bank::new_from_parent(&...
rust_cleaned_test_functions.jsonl/30577
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 341 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35733, 761, 73302, 10986, 28310, 368, 341, 286, 1077, 40788, 2648, 1731, 314, 59366, 5332, 11, 5241, 335, 284, 1855, 16322, 13774, 5332, 7, 16, 15, 62, 15, 15, 15, 317, 286, 1077, 6073, 284, 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_read_object() { assert_eq!(from_str("{"), Err(SyntaxError(EOFWhileParsingObject, 1, 2))); assert_eq!(from_str("{ "), Err(SyntaxError(EOFWhileParsingObject, 1, 3))); assert_eq!(from_str("{1"), Err(SyntaxError(KeyMustBeAString, 1, 2))); assert_e...
rust_cleaned_test_functions.jsonl/41705
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1644 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 5314, 368, 341, 286, 2060, 10714, 10297, 1499, 2895, 13976, 3975, 981, 15495, 93549, 1454, 7, 23483, 7983, 68839, 1190, 11, 220, 16, 11, 220, 17, 4945, 286, 2060, 10714, 10297, 1499, 2895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_versions_from_str() { test_protoset_contains_versions!(&[], ""); test_protoset_contains_versions!(&[1], "1"); test_protoset_contains_versions!(&[1, 2], "1,2"); test_protoset_contains_versions!(&[1, 2, 3], "1-3"); test_protoset_contains_versions!(&[0, 1], "...
rust_cleaned_test_functions.jsonl/105765
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65148, 5673, 2895, 368, 341, 286, 1273, 22357, 436, 295, 63598, 65148, 0, 2099, 12995, 14498, 286, 1273, 22357, 436, 295, 63598, 65148, 0, 2099, 58, 16, 1125, 330, 16, 797, 286, 1273, 22357, 436...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_zero_eq_negative_zero() { let zero: Decimal = 0.into(); assert!(zero == zero); assert!(-zero == zero); assert!(zero == -zero); }
rust_cleaned_test_functions.jsonl/84863
{ "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, 19359, 10714, 53865, 19359, 368, 341, 262, 1077, 7168, 25, 26728, 284, 220, 15, 39860, 1428, 262, 2060, 10297, 14154, 621, 7168, 317, 262, 2060, 0, 4080, 14154, 621, 7168, 317, 262, 2060, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_len_char_add() { let input = vec![ vec!["(1".to_string()], vec!["(2a".to_string()], vec!["(3bC".to_string()], vec!["(4d f".to_string()], ]; let result = vec![ Some("(1)".to_string()), Some("(2a)".to_string()), None, None, ]; let result = run(input, res...
rust_cleaned_test_functions.jsonl/92578
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6043, 9232, 2891, 368, 341, 220, 1077, 1946, 284, 7486, 90515, 262, 7486, 0, 1183, 7, 16, 3263, 983, 3904, 73845, 262, 7486, 0, 1183, 7, 17, 64, 3263, 983, 3904, 73845, 262, 7486, 0, 1183, 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_coalesce_aio() { let mut events = Events::with_capacity(1); events.sys_events.0.push(kevent!(0x1234, libc::EVFILT_AIO, 0, 42)); events.coalesce(Token(0)); assert!(events.events[0].readiness() == UnixReady::aio().into()); assert!(events.events[0].token() == Token(42)); }
rust_cleaned_test_functions.jsonl/83357
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11393, 73250, 4306, 815, 368, 341, 262, 1077, 5206, 4357, 284, 17627, 486, 4197, 35603, 7, 16, 317, 262, 4357, 34051, 19691, 13, 15, 2552, 7, 440, 684, 10297, 15, 87, 16, 17, 18, 19, 11, 421...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_without_name() { let p = project() .file( "Cargo.toml", r#" [package] name = "syntax" version = "0.0.1" authors = [] [lib] test = false doctest = false [[test]] ...
rust_cleaned_test_functions.jsonl/95352
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 731 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39904, 1269, 368, 341, 262, 1077, 281, 284, 2390, 741, 286, 659, 1192, 1006, 310, 330, 98228, 73494, 75, 756, 310, 435, 2, 698, 310, 508, 1722, 921, 310, 829, 284, 330, 56193, 698, 310, 2319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_caps_lock() { let mut modifier_state: ModifierState = Default::default(); assert!(!modifier_state.is_caps_lock_active()); modifier_state.update( fidl_fuchsia_ui_input3::KeyEventType::Pressed, fidl_fuchsia_input::Key::CapsLock, ); a...
rust_cleaned_test_functions.jsonl/14513
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 491 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 52955, 9818, 368, 341, 286, 1077, 5206, 22739, 4387, 25, 45208, 1397, 284, 7899, 486, 2258, 543, 286, 2060, 0, 3471, 49742, 4387, 2079, 52955, 9818, 12930, 5231, 286, 22739, 4387, 5317, 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...
1
#[test] fn test_redelegate_consider_balance_changes() { let mut clock = Clock::default(); let rent = Rent::default(); let rent_exempt_reserve = rent.minimum_balance(StakeState::size_of()); let initial_lamports = 4242424242; let stake_lamports = rent_exempt_reserve + initi...
rust_cleaned_test_functions.jsonl/31640
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4025 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 28227, 31971, 1776, 29396, 47526, 368, 341, 286, 1077, 5206, 8866, 284, 26142, 486, 2258, 543, 286, 1077, 8016, 284, 29737, 486, 2258, 543, 286, 1077, 8016, 95736, 89591, 284, 8016, 57790, 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_point_equal() { assert_eq!(Point { x: 99, y: 98 }, Point { x: 99, y: 98 }); assert_ne!(Point { x: 99, y: 98 }, Point { x: 99, y: 99 }); }
rust_cleaned_test_functions.jsonl/44986
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6085, 11478, 368, 341, 286, 2060, 10714, 10297, 2609, 314, 856, 25, 220, 24, 24, 11, 379, 25, 220, 24, 23, 2470, 5126, 314, 856, 25, 220, 24, 24, 11, 379, 25, 220, 24, 23, 1625, 286, 2060,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fixed_size_list_array_unequal_children() { // Construct a value array let value_data = ArrayData::builder(DataType::Int32) .len(8) .add_buffer(Buffer::from(&[0, 1, 2, 3, 4, 5, 6, 7].to_byte_slice())) .build(); // Construct a list array...
rust_cleaned_test_functions.jsonl/11609
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 300 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37839, 2368, 2019, 3858, 62, 2886, 1751, 31206, 368, 341, 286, 442, 18678, 264, 897, 1334, 198, 286, 1077, 897, 1769, 284, 2910, 1043, 486, 17850, 63941, 486, 1072, 18, 17, 340, 310, 659, 2892, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_neuron_remove_all_permissions_of_self() { local_test_on_sns_subnet(|runtime| async move { let user = Sender::from_keypair(&TEST_USER1_KEYPAIR); let account_identifier = AccountIdentifier::from(user.get_principal_id()); let alloc = Tokens::from_tokens(1000).unwrap(); ...
rust_cleaned_test_functions.jsonl/107260
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 896 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13925, 36090, 18193, 5705, 44767, 3575, 25637, 368, 341, 262, 2205, 4452, 4470, 643, 4412, 95681, 22428, 22255, 91, 3312, 3271, 341, 286, 1077, 1196, 284, 54610, 486, 1499, 3097, 12670, 2099, 10033,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_different_graph() { let hw = RefCell::new(CpuHardware::new()); let g1 = RefCell::new(Graph::new()); let g2 = RefCell::new(Graph::new()); let x = 1f32.into_node(&g1, &hw); let y = 2f32.into_node(&g2, &hw); let _gx = grad(y, &[x])[0]; }
rust_cleaned_test_functions.jsonl/83564
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82741, 14738, 368, 341, 262, 1077, 31256, 284, 8550, 3599, 486, 931, 3025, 5584, 66862, 486, 931, 1423, 262, 1077, 342, 16, 284, 8550, 3599, 486, 931, 63779, 486, 931, 1423, 262, 1077, 342, 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_is_ascii_whitespace() { assert_all!(is_ascii_whitespace, "", " \t\n\x0c\r", ); assert_none!(is_ascii_whitespace, "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOQPRSTUVWXYZ", "0123456789", "!\"#$%&'()*+...
rust_cleaned_test_functions.jsonl/35082
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 410 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 50238, 86175, 368, 341, 286, 2060, 5705, 10297, 285, 50238, 86175, 345, 310, 8324, 310, 330, 1124, 83, 1699, 3462, 15, 66, 12016, 756, 286, 1439, 286, 2060, 31488, 10297, 285, 50238, 86175, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_detailed_user_dict() { let config = TokenizerConfig { user_dict_path: Some(&Path::new("resources/detailed_userdic.csv")), mode: Mode::Normal, ..TokenizerConfig::default() }; let mut tokenizer = Tokenizer::with_config(config).unwrap(); ...
rust_cleaned_test_functions.jsonl/61450
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 879 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 10111, 3317, 5243, 368, 341, 286, 1077, 2193, 284, 9660, 3135, 2648, 341, 310, 1196, 5243, 2638, 25, 4329, 2099, 1820, 486, 931, 445, 12745, 3446, 10111, 3317, 29680, 11219, 30154, 310, 3856,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hash_idempotent() { let val64 = 0xdeadbeef_deadbeef_u64; assert_eq!(hash(&val64), hash(&val64)); let val32 = 0xdeadbeef_u32; assert_eq!(hash(&val32), hash(&val32)); }
rust_cleaned_test_functions.jsonl/7557
{ "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, 8950, 842, 3262, 63532, 368, 341, 286, 1077, 1044, 21, 19, 284, 220, 15, 87, 33754, 1371, 823, 53427, 1371, 823, 7300, 21, 19, 280, 286, 2060, 10714, 10297, 8296, 2099, 831, 21, 19, 701, 5175,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_make_unique() { let mut cow0 = Rc::new(75); let mut cow1 = cow0.clone(); let mut cow2 = cow1.clone(); assert!(75 == *Rc::make_mut(&mut cow0)); assert!(75 == *Rc::make_mut(&mut cow1)); assert!(75 == *Rc::make_mut(&mut cow2)); *...
rust_cleaned_test_functions.jsonl/4663
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 351 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 363, 1287, 54742, 28230, 21218, 368, 341, 286, 1077, 5206, 19362, 15, 284, 81463, 486, 931, 7, 22, 20, 317, 286, 1077, 5206, 19362, 16, 284, 19362, 15, 15997, 543, 286, 1077, 5206, 19362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_num_blocks() { assert_eq!(num_blocks(0), 0); assert_eq!(num_blocks(1), 1); assert_eq!(num_blocks(10), 1); assert_eq!(num_blocks(BLOCK_SIZE - 1), 1); assert_eq!(num_blocks(BLOCK_SIZE), 1); assert_eq!(num_blocks(BLOCK_SIZE + 1), 2); }
rust_cleaned_test_functions.jsonl/29294
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4273, 25201, 368, 341, 286, 2060, 10714, 10297, 2413, 25201, 7, 15, 701, 220, 15, 317, 286, 2060, 10714, 10297, 2413, 25201, 7, 16, 701, 220, 16, 317, 286, 2060, 10714, 10297, 2413, 25201, 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_to_from_string() { let uid = Uid{position: big(0b1_010_1010), site_id: 4, counter: 83}; let serialized = uid.to_string(); let deserialized = Uid::from_str(&serialized).unwrap(); assert!(serialized == "gSoEUw"); assert!(deserialized == uid); }
rust_cleaned_test_functions.jsonl/58321
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 147 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 5673, 3904, 368, 341, 286, 1077, 14617, 284, 547, 307, 90, 3487, 25, 2409, 7, 15, 65, 16, 62, 15, 16, 15, 62, 16, 15, 16, 15, 701, 2747, 842, 25, 220, 19, 11, 5546, 25, 220, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encode_and_get_buffer_back() { let instance = create_vea_instance(); let config = create_config(); let mut session = instance .open_session(config) .expect("failed to open a session"); let fake_input_buffer_id = 12345; let fake_planes = vec![]; sessi...
rust_cleaned_test_functions.jsonl/29969
{ "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, 11224, 8378, 3062, 7776, 3895, 368, 341, 262, 1077, 2867, 284, 1855, 73285, 64, 11904, 543, 262, 1077, 2193, 284, 1855, 5332, 543, 262, 1077, 5206, 3797, 284, 2867, 198, 286, 659, 2508, 12316, 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...
2
#[test] fn test_already_logging_error() { let mut runner = Runner::new(); // Start logging. let mut query = runner.proxy.start_logging(100, 200); assert_matches!(runner.executor.run_until_stalled(&mut query), Poll::Ready(Ok(Ok(())))); // Attempting to start logging a se...
rust_cleaned_test_functions.jsonl/91284
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 499 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80772, 59982, 4096, 368, 341, 286, 1077, 5206, 22259, 284, 44946, 486, 931, 1428, 286, 442, 5145, 8392, 624, 286, 1077, 5206, 3239, 284, 22259, 41103, 4962, 59982, 7, 16, 15, 15, 11, 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_tvu_exit() { solana_logger::setup(); let leader = Node::new_localhost(); let target1_keypair = Keypair::new(); let target1 = Node::new_localhost_with_pubkey(&target1_keypair.pubkey()); let starting_balance = 10_000; let GenesisBlockInfo { genesis_...
rust_cleaned_test_functions.jsonl/84193
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 45690, 16880, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 7653, 284, 6018, 486, 931, 62, 8301, 543, 286, 1077, 2169, 16, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 543,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_escaped_string() { #[allow(unused)] use nom::Needed; // https://github.com/Geal/nom/issues/780 named!(string<StrSpan, String>, delimited!( char!('"'), escaped_transform!(call!(nom::character::complete::alpha1), '\\', nom::character::complete::anychar), char!('...
rust_cleaned_test_functions.jsonl/39133
{ "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, 62, 65826, 3904, 368, 341, 262, 11506, 7183, 18364, 2591, 5563, 262, 990, 9662, 486, 56706, 26, 442, 3703, 1110, 5204, 905, 14, 9499, 278, 9612, 316, 38745, 14, 22, 23, 15, 198, 262, 6941, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_store_fail_instruction_data_too_large() { solana_logger::setup(); let keys = vec![]; let (config_keypair, config_account) = create_config_account(keys.clone()); let config_pubkey = config_keypair.pubkey(); let my_config = MyConfig::new(42); ...
rust_cleaned_test_functions.jsonl/70769
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 352 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 14809, 22121, 54923, 1769, 2346, 78, 45228, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 6894, 284, 7486, 0, 15078, 286, 1077, 320, 1676, 3097, 12670, 11, 2193, 13500, 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_04() { let Triple(u, v, w) = Triple::from((2, "foo", 1.0e-2)); assert_eq!(u, 2); assert_eq!(v, "foo"); assert_eq!(w, 1.0e-2); }
rust_cleaned_test_functions.jsonl/133575
{ "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, 62, 15, 19, 368, 341, 286, 1077, 36649, 8154, 11, 348, 11, 289, 8, 284, 36649, 486, 1499, 1188, 17, 11, 330, 7975, 497, 220, 16, 13, 15, 68, 12, 17, 1106, 286, 2060, 10714, 10297, 84, 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_process_blame_no_parent_found() { let two_trees = MockProcInfo::with(&[ (2, 100, "-shell", None), (3, 100, "git blame src/main.rs", Some(2)), (4, 100, "call_delta.sh", None), (5, 100, "delta", Some(4)), ]); assert_eq!( ...
rust_cleaned_test_functions.jsonl/107873
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 13141, 373, 6536, 15960, 21480, 368, 341, 286, 1077, 1378, 75791, 284, 14563, 24508, 1731, 486, 4197, 2099, 9640, 310, 320, 17, 11, 220, 16, 15, 15, 11, 6523, 21384, 497, 2240, 1326, 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...
1
#[test] fn test_into_raw_fd() { let tfd = TimerFd::new().expect("failed to create timerfd"); let fd = tfd.into_raw_fd(); assert!(fd > 0); }
rust_cleaned_test_functions.jsonl/66516
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45514, 16067, 17676, 368, 341, 286, 1077, 6409, 67, 284, 17759, 74476, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 9021, 6902, 797, 286, 1077, 12414, 284, 6409, 67, 39860, 16067, 17676, 543, 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
#[test] fn test_traverse() { let mut elements = Vec::new(); Traverse::traverse(0, &mut |traverse, node| { elements.push(node); if node < 7 { traverse.push(node); traverse.push(node + 1); } }); assert_eq!(&elements, &[0, 1, 2, 3, 4, 5, 6, 7]); }
rust_cleaned_test_functions.jsonl/122447
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 22439, 368, 341, 197, 10217, 5206, 5424, 284, 11312, 486, 931, 543, 197, 197, 1282, 22439, 486, 376, 22439, 7, 15, 11, 609, 6984, 760, 376, 22439, 11, 2436, 91, 341, 298, 197, 21423, 255...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_verifier_fail() { let prog = assemble( "mov32 r0, 0xBEE exit", ).unwrap(); let mut vm = EbpfVm::new(None).unwrap(); vm.set_verifier(verifier_fail).unwrap(); vm.set_program(&prog).unwrap(); }
rust_cleaned_test_functions.jsonl/15523
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26042, 3049, 22121, 368, 341, 262, 1077, 29271, 284, 41740, 1006, 286, 330, 29961, 18, 17, 435, 15, 11, 220, 15, 14377, 7099, 198, 260, 4869, 756, 262, 7457, 15454, 543, 262, 1077, 5206, 10995, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_build_path() { let _ = env_logger::try_init(); let mut types_map = TypeMap::default(); let mut src_reg = SourceRegistry::default(); let src_id = src_reg.register(SourceCode { id_of_code: "test_try_build_path".into(), code: include_str!(...
rust_cleaned_test_functions.jsonl/92739
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1585 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 20801, 2638, 368, 341, 286, 1077, 716, 284, 6105, 27413, 486, 1539, 6137, 543, 286, 1077, 5206, 4494, 5376, 284, 3990, 2227, 486, 2258, 543, 286, 1077, 5206, 2286, 4920, 284, 8748, 15603, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_link_alias() { assert_eq!( GiDocgen::from_str("[alias@Allocation]"), Ok(GiDocgen::Alias("Allocation".to_string())) ); }
rust_cleaned_test_functions.jsonl/78464
{ "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, 7233, 35947, 368, 341, 286, 2060, 10714, 33673, 310, 15392, 9550, 4370, 486, 1499, 2895, 10937, 14956, 31, 78316, 60, 4461, 310, 7622, 6699, 72, 9550, 4370, 486, 22720, 445, 78316, 3263, 983, 3904...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_method_completion_only_fitting_impls() { check( r#" struct A<T> {} impl A<u32> { fn the_method(&self) {} } impl A<i32> { fn the_other_method(&self) {} } fn foo(a: A<u32>) { a.$0 } "#, expect![[r#" me the_method() -> () "#]], ...
rust_cleaned_test_functions.jsonl/26251
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9032, 60164, 18410, 761, 14810, 21007, 82, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1235, 362, 3125, 29, 5613, 6383, 362, 34837, 18, 17, 29, 341, 262, 5168, 279, 9032, 2099, 721, 8, 5613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_alogithm_id() { assert_eq!( Into::<TPM2_ALG_ID>::into(SignatureScheme::RsaSsa), TPM2_ALG_RSASSA ); assert_eq!( Into::<TPM2_ALG_ID>::into(SignatureScheme::RsaPss), TPM2_ALG_RSAPSS ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/41503
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 509 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45514, 8418, 538, 410, 76, 842, 368, 341, 286, 2060, 10714, 33673, 310, 31645, 27638, 4239, 44, 17, 8912, 38, 3450, 6831, 18122, 3759, 622, 1568, 28906, 486, 49, 9081, 50, 9081, 1326, 310, 63644...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_field_with_name_ref_into_dynamic_table() { let mut buf = vec![]; InsertWithNameRef::new_static(1, "serial value") .encode(&mut buf) .unwrap(); let mut table = build_table_with_size(0); let mut enc = Cursor::new(&buf); let mut...
rust_cleaned_test_functions.jsonl/37413
{ "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, 17678, 5013, 6615, 1269, 7793, 45514, 45992, 5237, 368, 341, 286, 1077, 5206, 6607, 284, 7486, 0, 15078, 286, 17101, 54523, 3945, 486, 931, 25360, 7, 16, 11, 330, 10182, 897, 1138, 310, 659, 618...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lex_sort_unaligned_rows() { let input = vec![ SortColumn { values: Arc::new(PrimitiveArray::<Int64Type>::from(vec![None, Some(-1)])) as ArrayRef, options: None, }, SortColumn { values:...
rust_cleaned_test_functions.jsonl/23902
{ "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, 74547, 18435, 4907, 47142, 10949, 368, 341, 286, 1077, 1946, 284, 7486, 90515, 310, 15967, 2933, 341, 394, 2750, 25, 19689, 486, 931, 7, 33313, 1857, 27638, 1072, 21, 19, 929, 6831, 1499, 25592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_seraizlie() { let serializer = BytesSerializer::default(); let mut buf = Vec::new(); let data = Vec::from("data"); serializer.serialize_to("topic", data.as_slice(), &mut buf).unwrap(); assert_eq!(&buf, &data); assert_eq!( serializer....
rust_cleaned_test_functions.jsonl/132228
{ "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, 643, 2416, 449, 11567, 368, 341, 286, 1077, 21759, 284, 30024, 13909, 486, 2258, 543, 286, 1077, 5206, 6607, 284, 11312, 486, 931, 543, 286, 1077, 821, 284, 11312, 486, 1499, 445, 691, 3071, 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_parameter_ordering() { let p9999 = Parameter(9999); assert_eq!(p9999, 9999); assert!(*p9999 < 10_000); assert!(*p9999 > 9998); }
rust_cleaned_test_functions.jsonl/84100
{ "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, 24899, 7869, 287, 368, 341, 286, 1077, 281, 24, 24, 24, 24, 284, 15168, 7, 24, 24, 24, 24, 317, 286, 2060, 10714, 10297, 79, 24, 24, 24, 24, 11, 220, 24, 24, 24, 24, 317, 286, 2060, 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, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_formatted_negative_rounding() { let cf = CoordinateFormat::new(6, 4); let d = CoordinateNumber { nano: -123456789099, } .gerber(&cf) .unwrap(); assert_eq!(d, "-1234567891".to_string()); }
rust_cleaned_test_functions.jsonl/16459
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86610, 53865, 29896, 287, 368, 341, 286, 1077, 24111, 284, 41035, 4061, 486, 931, 7, 21, 11, 220, 19, 317, 286, 1077, 294, 284, 41035, 2833, 341, 310, 50493, 25, 481, 16, 17, 18, 19, 20, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_image_parse_localhost() { assert_eq!( ImageRef::parse("localhost/foo"), ImageRef { registry: Some("localhost".into()), image: "foo".into(), tag: None, hash: None } ); assert_eq!( ImageRef::parse("localhost/foo:bar"), Imag...
rust_cleaned_test_functions.jsonl/17931
{ "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, 4954, 21039, 62, 8301, 368, 341, 262, 2060, 10714, 33673, 414, 4654, 3945, 486, 6400, 445, 8301, 60555, 4461, 414, 4654, 3945, 341, 286, 19424, 25, 4329, 445, 8301, 3263, 18122, 14702, 286, 2168, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cmp_memindex_reg_index_rip() { let mut buf = MacroAssembler::new(); emit_cmp_memindex_reg(&mut buf, MachineMode::Ptr, RAX, RIP, 1, 0, RAX); }
rust_cleaned_test_functions.jsonl/85471
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 87 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35193, 12976, 1252, 4920, 3560, 62, 4561, 368, 341, 286, 1077, 5206, 6607, 284, 53317, 77858, 486, 931, 543, 286, 16691, 35193, 12976, 1252, 4920, 2099, 6984, 6607, 11, 12960, 3636, 486, 5348, 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
#[test] fn test_printf_size() { let file_info = get_dir_entry_for("test_data/size", "512bytes"); let deps = FakeDependencies::new(); let matcher = Printf::new("%s").unwrap(); assert!(matcher.matches(&file_info, &mut deps.new_matcher_io())); assert_eq!("512", deps.get_out...
rust_cleaned_test_functions.jsonl/69252
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 157 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21823, 2368, 368, 341, 286, 1077, 1034, 3109, 284, 633, 4334, 9078, 5478, 445, 1944, 1769, 14, 2141, 497, 330, 20, 16, 17, 9651, 797, 286, 1077, 48178, 284, 36965, 48303, 486, 931, 1428, 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_to_decimal() { let cases = vec![ ("31 11:30:45", 0, "7553045"), ("31 11:30:45", 6, "7553045.000000"), ("31 11:30:45", 0, "7553045"), ("31 11:30:45.123", 6, "7553045.123000"), ("11:30:45", 0, "113045"), ("11:30:45", 6...
rust_cleaned_test_functions.jsonl/17461
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 584 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 74429, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 18, 16, 220, 16, 16, 25, 18, 15, 25, 19, 20, 497, 220, 15, 11, 330, 22, 20, 20, 18, 15, 19, 20, 4461, 310, 3489, 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...
2
#[test] fn test_fetch_source_2() { use crate::tokio_util; // http_util::fetch_sync_string requires tokio tokio_util::init(|| { let (_temp_dir, deno_dir) = test_setup(); let module_name = "http://localhost:4545/tests/subdir/no_ext"; let filename = deno_fs::normalize_path( de...
rust_cleaned_test_functions.jsonl/83873
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1079 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11803, 10347, 62, 17, 368, 341, 262, 990, 17717, 486, 29594, 815, 18974, 280, 262, 442, 1758, 18974, 486, 9641, 23008, 3904, 7460, 9628, 815, 198, 262, 9628, 815, 18974, 486, 2327, 79453, 341, 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_compute_presig_k1() { // need a mutex around the paillier pool to allow our assertions to hold let _shared = PAILLIER_POOL_LOCK.lock(); let paillier_pk = EncryptionKey::from(MinimalEncryptionKey{n: BigInt::from_hex("9e2f24f407914eff43b7c7df083c5cc9765c05386485e9e9aa55e7b0...
rust_cleaned_test_functions.jsonl/70913
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1487 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57028, 32116, 343, 4698, 16, 368, 341, 286, 442, 1184, 264, 30863, 2163, 279, 7106, 483, 1268, 7314, 311, 2138, 1039, 54836, 311, 3331, 198, 286, 1077, 716, 6100, 284, 393, 5965, 43, 16289, 5192...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_doc_create() { let shared_cat = create_test_catalog("test_index".into()); let body: AddDocument = serde_json::from_str( r#" {"options": {"commit": true}, "document": {"test_text": "Babbaboo!", "test_u64": 10, "test_i64": -10} }"#, ) .unwrap(); ...
rust_cleaned_test_functions.jsonl/96419
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 221 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18869, 8657, 368, 341, 286, 1077, 6094, 20825, 284, 1855, 4452, 47310, 445, 1944, 3560, 3263, 18122, 1423, 286, 1077, 2487, 25, 2691, 7524, 284, 61570, 9455, 486, 1499, 2895, 1006, 310, 435, 55543...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mutable_reserve() { let mut buf = MutableBuffer::new(1); assert_eq!(64, buf.capacity()); // Reserving a smaller capacity should have no effect. let mut new_cap = buf.reserve(10).expect("reserve should be OK"); assert_eq!(64, new_cap); assert_eq!(6...
rust_cleaned_test_functions.jsonl/20575
{ "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, 717, 5922, 89591, 368, 341, 286, 1077, 5206, 6607, 284, 31143, 4095, 486, 931, 7, 16, 317, 286, 2060, 10714, 10297, 21, 19, 11, 6607, 59168, 5231, 286, 442, 1800, 19505, 264, 9155, 8654, 1265, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dispatch_with_init_boot_request_client_on_wrong_subnet_returns_nak() { let mut req = new_test_request(); req.options.remove(0); req.options.remove(1); req.options.push(ConfigOption { code: OptionCode::RequestedIpAddr, value: vec![10, 0, 0, ...
rust_cleaned_test_functions.jsonl/61727
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 248 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42991, 6615, 6137, 52062, 7893, 8179, 4470, 75198, 95681, 58900, 1089, 585, 368, 341, 286, 1077, 5206, 4232, 284, 501, 4452, 7893, 543, 286, 4232, 10912, 4850, 7, 15, 317, 286, 4232, 10912, 4850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_daa() { let mut state = State8080::empty_state(); state.memory = vec![0x27]; state.a = 0x9b; state.cc.cy = 0; state.cc.ac = 0; emulate_8080_op(&mut state); assert_eq!(state.a, 0x01); assert_eq!(state.cc.cy, 1); assert_eq!(s...
rust_cleaned_test_functions.jsonl/7798
{ "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, 814, 5305, 368, 341, 286, 1077, 5206, 1584, 284, 3234, 23, 15, 23, 15, 486, 3194, 4387, 543, 286, 1584, 36611, 284, 7486, 20703, 15, 87, 17, 22, 935, 286, 1584, 5849, 284, 220, 15, 87, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_none() { let ca = Int32Chunked::new_from_opt_slice("", &[None, Some(2), Some(3), None, Some(4), None]); let filled = ca.fill_none(FillNoneStrategy::Forward).unwrap(); assert_eq!( Vec::from(&filled), &[None, Some(2), Some(3), Some(3...
rust_cleaned_test_functions.jsonl/57988
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 622 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30728, 31488, 368, 341, 286, 1077, 2162, 4035, 310, 1333, 18, 17, 28304, 291, 486, 931, 5673, 15032, 26488, 19814, 44590, 4064, 11, 4329, 7, 17, 701, 4329, 7, 18, 701, 2240, 11, 4329, 7, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_run_with_non_default_dfinance_dialect() { let _pool = ConstPool::new(); let module_text = r" address wallet1me0cdn52672y7feddy7tgcj6j4dkzq2su745vh { module M { resource struct T { value: u8 } public fun get_t(s: &signer, v: u8) { move_...
rust_cleaned_test_functions.jsonl/43916
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 744 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 6615, 21637, 9993, 814, 62675, 814, 55056, 368, 341, 262, 1077, 716, 10285, 284, 24522, 10551, 486, 931, 1428, 262, 1077, 4688, 4326, 284, 435, 698, 262, 2621, 15085, 16, 2660, 15, 12254, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_columns() -> Result<()> { use super::Column; let db = Connection::open_in_memory()?; let query = db.prepare("SELECT * FROM sqlite_master")?; let columns = query.columns(); let column_names: Vec<&str> = columns.iter().map(Column::name).collect(); a...
rust_cleaned_test_functions.jsonl/96471
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 324 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22590, 368, 1464, 5714, 71698, 341, 286, 990, 2256, 486, 2933, 401, 286, 1077, 2927, 284, 11032, 486, 2508, 1243, 19195, 94136, 286, 1077, 3239, 284, 2927, 21934, 445, 4858, 353, 4295, 22003, 2458...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_builder() { let obj = Object::builder::<SimpleObject>() .property("construct-name", "meh") .property("name", "initial") .build() .expect("Object::new failed"); assert_eq!( obj.property::<String>("construct-name"), ...
rust_cleaned_test_functions.jsonl/9011
{ "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, 28532, 368, 341, 286, 1077, 2839, 284, 3002, 486, 17850, 27638, 16374, 1190, 18949, 310, 659, 3699, 445, 7596, 11494, 497, 330, 76, 2636, 1138, 310, 659, 3699, 445, 606, 497, 330, 9426, 1138, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_config_load_toml() { let bad_path = Path::new("fake"); let result = ConductorConfig::load_toml(bad_path); assert_eq!( "Err(ConfigMissing(\"fake\"))".to_string(), format!("{:?}", result) ); // successful load test in conductor/inter...
rust_cleaned_test_functions.jsonl/121438
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 12411, 528, 316, 75, 368, 341, 286, 1077, 3873, 2638, 284, 7933, 486, 931, 445, 30570, 797, 286, 1077, 1102, 284, 1200, 35769, 2648, 486, 1078, 528, 316, 75, 1883, 329, 2638, 317, 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_cycle() { let mut vector_in = vec![11, 20, 21, 40, 11, 60, 5]; cycle_sort(&mut vector_in); debug_assert_eq!(vector_in, vec![5, 11, 11, 20, 21, 40, 60]); }
rust_cleaned_test_functions.jsonl/84298
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39079, 368, 341, 286, 1077, 5206, 4621, 1243, 284, 7486, 20703, 16, 16, 11, 220, 17, 15, 11, 220, 17, 16, 11, 220, 19, 15, 11, 220, 16, 16, 11, 220, 21, 15, 11, 220, 20, 935, 286, 10775,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_all_liquidity_pools_request_uri() { let account = PublicKey::from_account_id("GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA") .unwrap(); let issuer = PublicKey::from_account_id("GDPFNXAJ6R37LBQ6QYVKGBVW5ZA4QXPFJYKQUHPJSALXCUBQ7I5...
rust_cleaned_test_functions.jsonl/134525
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 568 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 62, 39993, 18518, 620, 6178, 7893, 15572, 368, 341, 286, 1077, 2692, 4035, 310, 70280, 486, 1499, 13500, 842, 445, 38, 3022, 1930, 4086, 2275, 52867, 19, 35, 57, 8412, 33, 17, 57, 88307, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_full_exit_nft_with_incorrect_content_hash() { const ERR_MSG: &str = "chunk number 6/execute_op/op_valid is true/enforce equal to one"; let mut circuit = apply_nft_mint_and_full_exit_nft_operations(); for operation_id in MintNFTOp::CHUNKS..MintNFTOp::CHUNKS + FullExitOp::CHUNKS { ...
rust_cleaned_test_functions.jsonl/45533
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 477 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16372, 16880, 1089, 723, 6615, 1243, 19928, 7495, 8950, 368, 341, 262, 733, 10165, 14372, 25, 609, 495, 284, 330, 25979, 1372, 220, 21, 14, 10257, 10287, 52000, 8337, 374, 830, 13606, 8833, 6144, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_deserialize_complex() { let (s1, s2) = zx::Socket::create(zx::SocketOpts::STREAM).unwrap(); let request = test_protocol::TestInterfaceRequest::from_args( 8, /* opcode */ vec![ Arg::Uint(UINT_VALUE), Arg::Int(INT_VALUE), ...
rust_cleaned_test_functions.jsonl/55809
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 804 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 41522, 368, 341, 286, 1077, 320, 82, 16, 11, 274, 17, 8, 284, 71322, 486, 10286, 486, 3182, 13174, 87, 486, 10286, 43451, 486, 54326, 568, 15454, 543, 286, 1077, 1681, 284, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_query_success() { let tests = [ ( &b"First.second"[..], vec!["First".to_string(), "second".to_string()], ), (b"", Vec::new()), ( b"urxvt.scrollBar_right", vec!["urxvt".to...
rust_cleaned_test_functions.jsonl/113427
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 422 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5738, 18632, 368, 341, 286, 1077, 7032, 284, 2278, 310, 2399, 394, 609, 65, 1, 5338, 13560, 36864, 496, 1259, 394, 7486, 0, 1183, 5338, 3263, 983, 3904, 1507, 330, 5569, 3263, 983, 3904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_push_pop() { let mut heap = BinaryHeap::from(vec![5, 5, 2, 1, 3]); assert_eq!(heap.len(), 5); assert_eq!(heap.push_pop(6), 6); assert_eq!(heap.len(), 5); assert_eq!(heap.push_pop(0), 5); assert_eq!(heap.len(), 5); assert_eq!(heap.push_pop(4), 5); assert_eq!(heap.l...
rust_cleaned_test_functions.jsonl/87474
{ "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, 14218, 17061, 368, 341, 262, 1077, 5206, 17364, 284, 17718, 27909, 486, 1499, 25592, 20703, 20, 11, 220, 20, 11, 220, 17, 11, 220, 16, 11, 220, 18, 2558, 262, 2060, 10714, 10297, 15961, 19406, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_list() { let store = gen_store(); assert_eq!( vec!["first".to_owned().into_bytes(), "second".to_owned().into_bytes(), "third".to_owned().into_bytes()], store.lrange("list1", 0, 100).unwrap() ); }
rust_cleaned_test_functions.jsonl/58224
{ "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, 2019, 368, 341, 286, 1077, 3553, 284, 4081, 14809, 543, 286, 2060, 10714, 33673, 310, 7486, 0, 1183, 3896, 3263, 983, 51973, 1005, 18122, 12524, 1507, 330, 5569, 3263, 983, 51973, 1005, 18122, 125...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_submit_rate_flood_all() { let vec = vec![1, 2, 3, 4, 5, 6, 7]; let flood = ConstantRate::new(std::u64::MAX, vec.into_iter()); let now = time::Instant::now(); // consume all elements flood.for_each(drop); let elapsed = now.elapsed().as_micros(); ...
rust_cleaned_test_functions.jsonl/59872
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31674, 9246, 761, 4556, 5705, 368, 341, 286, 1077, 7486, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 935, 286, 1077, 17726, 284, 193...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encoding() { let f = Foo { a: 1, b: "test".to_string(), c: "bar".to_string(), d: false, e: true, f: 0xDEADBEEF, }; assert_eq!(f.encode().unwrap().into_inner(), vec![ 1, ...
rust_cleaned_test_functions.jsonl/1824
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 362 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37613, 368, 341, 286, 1077, 282, 284, 33428, 341, 310, 264, 25, 220, 16, 345, 310, 293, 25, 330, 1944, 3263, 983, 3904, 3148, 310, 272, 25, 330, 2257, 3263, 983, 3904, 3148, 310, 294, 25, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 mut queue: Queue<u8> = Queue::new(); queue.enqueue(8); queue.enqueue(16); assert_eq!(2, queue.size()); }
rust_cleaned_test_functions.jsonl/25021
{ "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, 2368, 368, 341, 286, 1077, 5206, 7177, 25, 18745, 34837, 23, 29, 284, 18745, 486, 931, 543, 286, 7177, 47468, 7, 23, 317, 286, 7177, 47468, 7, 16, 21, 317, 286, 2060, 10714, 10297, 17, 11, 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
#[test] fn test_finitedomain_5() { // drop_before sparse let fd = FiniteDomain::from(vec![1, 2, 3, 4, 5, 6, 7, 8]); let before = fd.drop_before(|x| *x > 6).unwrap(); assert_eq!(before.min(), 7); assert_eq!(before.max(), 8); assert!(fd.drop_before(|x| *x ...
rust_cleaned_test_functions.jsonl/31711
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39737, 1608, 3121, 62, 20, 368, 341, 286, 442, 5943, 23708, 33444, 198, 286, 1077, 12414, 284, 93619, 13636, 486, 1499, 25592, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_check_tx_durable_nonce_nonce_acc_does_not_exist_fail() { let (bank, _mint_keypair, custodian_keypair, nonce_keypair) = setup_nonce_with_bank(10_000_000, |_| {}, 5_000_000, 250_000, None).unwrap(); let custodian_pubkey = custodian_keypair.pubkey(); let nonce_pu...
rust_cleaned_test_functions.jsonl/2620
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 481 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 17805, 814, 18329, 48508, 48508, 17737, 96374, 7913, 35906, 22121, 368, 341, 286, 1077, 320, 17033, 11, 716, 67791, 3097, 12670, 11, 16564, 63849, 3097, 12670, 11, 39676, 3097, 12670, 8, 4035,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_committed_entries_pagination_after_restart() { let l = default_logger(); let s = IgnoreSizeHintMemStorage::default(); s.inner .wl() .apply_snapshot(new_snapshot(1, 1, vec![1, 2, 3])) .unwrap(); let (mut entries, mut size) = (vec![], 0); for i in 2..=1...
rust_cleaned_test_functions.jsonl/120178
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 611 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2965, 5483, 26092, 82231, 19844, 69392, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 274, 284, 38971, 1695, 26987, 18816, 5793, 486, 2258, 543, 262, 274, 9398, 198, 286, 659, 26417,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_column_writer_nullable_repeated_values_roundtrip() { let props = WriterProperties::builder().build(); column_roundtrip_random::<Int32Type>( "test_col_writer_rnd_3", props, 1024, ::std::i32::MIN, ::std::i32::MAX, ...
rust_cleaned_test_functions.jsonl/30535
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8744, 28908, 69743, 1288, 41954, 9146, 29896, 32981, 368, 341, 286, 1077, 6914, 284, 29404, 7903, 486, 17850, 1005, 5834, 543, 286, 3250, 29896, 32981, 22644, 27638, 1072, 18, 17, 929, 17055, 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...
1
#[test] fn test_account_shared_data() { let key = Pubkey::new_unique(); let (account1, account2) = make_two_accounts(&key); assert!(accounts_equal(&account1, &account2)); let account = account1; assert_eq!(account.tocks, 1); assert_eq!(account.tocks(), 1); ...
rust_cleaned_test_functions.jsonl/56002
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 515 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13500, 20405, 1769, 368, 341, 286, 1077, 1376, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 320, 4608, 16, 11, 2692, 17, 8, 284, 1281, 23241, 55665, 2099, 792, 317, 286, 2060, 10297, 26206,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_overlapping_regions_size() { let mut map = MemoryMap::new(); map.push_range(0x1000.into(), 0x2000.into(), 0.into()); // should panic map.push_range(0x00ff.into(), 0x10ff.into(), 0.into()); }
rust_cleaned_test_functions.jsonl/70011
{ "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, 15431, 90619, 58035, 2368, 368, 341, 286, 1077, 5206, 2415, 284, 13850, 2227, 486, 931, 543, 286, 2415, 2552, 9698, 7, 15, 87, 16, 15, 15, 15, 39860, 1507, 220, 15, 87, 17, 15, 15, 15, 39860...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_skew_simple() { let root = tree!('T' => [2, ('L' => [2, Nil, Nil]), 'R']); println!("Input: {:?}", root); let skewed = root.skew(); let expected = tree!('L' => [2, Nil, ('T' => [2, Nil, 'R'])]); assert_eq!(skewed, expected); }
rust_cleaned_test_functions.jsonl/9205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33811, 365, 30015, 368, 341, 197, 10217, 3704, 284, 4916, 0, 492, 51, 6, 589, 508, 17, 11, 4319, 43, 6, 589, 508, 17, 11, 32274, 11, 32274, 9719, 364, 49, 5860, 197, 81168, 17223, 2505, 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_partitioned_gb_mean() -> Result<()> { // don't move these to integration tests let out = df![ "key" => (0..100).map(|_| Some(0)).collect::<Int32Chunked>().into_series(), ]? .lazy() .with_columns([lit("a").alias("str"), lit(1).alias("int")]) .groupby([col("key")]) ...
rust_cleaned_test_functions.jsonl/13858
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 319 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43840, 291, 87935, 16933, 368, 1464, 5714, 71698, 341, 262, 442, 1513, 944, 3271, 1493, 311, 17590, 7032, 198, 262, 1077, 700, 284, 6764, 90515, 286, 330, 792, 1, 589, 320, 15, 496, 16, 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...
5
#[test] fn test_reconstruct_latin() { let stop_words = Set::default(); let analyzer = Analyzer::new(AnalyzerConfig::default_with_stopwords(&stop_words)); let orig = "The quick (\"brown\") fox can't jump 32.3 feet, right? Brr, it's 29.3°F!"; let tokens = analyzer.analyze(orig); ...
rust_cleaned_test_functions.jsonl/98417
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 7596, 907, 14768, 368, 341, 286, 1077, 2936, 18981, 284, 2573, 486, 2258, 543, 286, 1077, 54660, 284, 78705, 486, 931, 7, 54911, 2648, 486, 2258, 6615, 19039, 5761, 2099, 9495, 18981, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_last_accessed() { let fs = FileSystem::default(); let file = fs .new_open_options() .write(true) .create_new(true) .open(path!("/foo.txt")) .expect("failed to create a new file"); let last_accessed_time = file.l...
rust_cleaned_test_functions.jsonl/52774
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 410 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12195, 12759, 291, 368, 341, 286, 1077, 8619, 284, 53461, 486, 2258, 1428, 286, 1077, 1034, 284, 8619, 198, 310, 659, 931, 11311, 8743, 741, 310, 659, 4934, 3715, 340, 310, 659, 3182, 5921, 3715...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_simplesliceserializer_simpledataserializer_write_fail() { let mut data: [u8; 2] = [0; 2]; let mut v = SimpleSliceSerializer::new(&mut data); assert!(matches!(v.write(SAMPLE00), Err(ErrorKind::UnableToWrite))); let mut data: [u8; 0] = []; let mut v = SimpleSliceSerializer::ne...
rust_cleaned_test_functions.jsonl/90003
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 877 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 6664, 642, 37414, 41939, 30015, 27240, 41939, 9165, 22121, 368, 341, 262, 1077, 5206, 821, 25, 508, 84, 23, 26, 220, 17, 60, 284, 508, 15, 26, 220, 17, 935, 262, 1077, 5206, 348, 284, 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