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_assign() { let new_owner = Pubkey::new(&[9; 32]); let pubkey = Pubkey::new_unique(); let account = AccountSharedData::new(100, 0, &system_program::id()); process_instruction( &bincode::serialize(&SystemInstruction::Assign { ow...
rust_cleaned_test_functions.jsonl/95881
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1080 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20688, 368, 341, 286, 1077, 501, 29027, 284, 22611, 792, 486, 931, 2099, 58, 24, 26, 220, 18, 17, 2558, 286, 1077, 95116, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 2692, 284, 8615, 169...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_valid_redshift_modify_cluster_parameter_group() { let mock_response = MockResponseReader::read_response( "test_resources/generated/valid", "redshift-modify-cluster-parameter-group.xml", ); let mock = MockRequestDispatcher::with_status(200).wi...
rust_cleaned_test_functions.jsonl/12121
{ "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, 21039, 8337, 26058, 13418, 57725, 28441, 24899, 6288, 368, 341, 286, 1077, 7860, 9655, 284, 14563, 2582, 5062, 486, 878, 9655, 1006, 310, 330, 1944, 35569, 79372, 14, 1891, 756, 310, 330, 1151, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tree_update() { let (creator_kp, _) = get_fake_keypackage(); let (to_be_added, _) = get_fake_keypackage(); let (to_be_updated, _) = get_fake_keypackage(); let mut tree = Tree::new(creator_kp); tree.update( &[Add { key_package: t...
rust_cleaned_test_functions.jsonl/25584
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 669 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11663, 8882, 368, 341, 286, 1077, 320, 32398, 4698, 79, 11, 27439, 284, 633, 56881, 3097, 1722, 543, 286, 1077, 320, 983, 21263, 37653, 11, 27439, 284, 633, 56881, 3097, 1722, 543, 286, 1077, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_key_manager_rotate_master_key_rewrite_failure() { // create initial dictionaries. let (tmp, manager) = new_tmp_key_manager(None, None, None, None); let manager = manager.unwrap().unwrap(); manager.new_file("foo").unwrap(); drop(manager); let curre...
rust_cleaned_test_functions.jsonl/32258
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 487 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 12144, 60834, 24582, 3097, 74052, 43618, 368, 341, 286, 442, 1855, 2856, 57514, 624, 286, 1077, 320, 5173, 11, 6645, 8, 284, 501, 16125, 3097, 12144, 26717, 11, 2240, 11, 2240, 11, 2240, 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_eq() { let mut m1 = HashMap::new(); m1.insert(1, 2); m1.insert(2, 3); m1.insert(3, 4); let mut m2 = HashMap::new(); m2.insert(1, 2); m2.insert(2, 3); assert!(m1 != m2); m2.insert(3, 4); assert_eq!(m1, m2); }
rust_cleaned_test_functions.jsonl/8515
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10714, 368, 341, 286, 1077, 5206, 296, 16, 284, 10528, 486, 931, 543, 286, 296, 16, 7030, 7, 16, 11, 220, 17, 317, 286, 296, 16, 7030, 7, 17, 11, 220, 18, 317, 286, 296, 16, 7030, 7, 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_schlick_internal_reflection() { let glas: Box<dyn Shape + Sync> = Box::new(get_glass_sphere()); let ray = Ray { origin: Tuple::point(0.0, 0.0, 2.0f64.sqrt() / 2.0), direction: Tuple::vector(0.0, 1.0, 0.0), }; let mut intersections = &mut gl...
rust_cleaned_test_functions.jsonl/45916
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 331, 1206, 23472, 7793, 1170, 368, 341, 286, 1077, 2770, 300, 25, 8261, 92846, 22526, 488, 28937, 29, 284, 8261, 486, 931, 5433, 1889, 447, 86973, 1423, 286, 1077, 18299, 284, 13255, 341, 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_builder() { let expected = EmbedFooter { icon_url: Some("https://example.com/1.png".to_owned()), proxy_icon_url: None, text: "a footer".to_owned(), }; let image = ImageSource::url("https://example.com/1.png").unwrap(); let actua...
rust_cleaned_test_functions.jsonl/25442
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28532, 368, 341, 286, 1077, 3601, 284, 37068, 19445, 341, 310, 4603, 2903, 25, 4329, 445, 2428, 1110, 8687, 905, 14, 16, 3508, 3263, 983, 51973, 14702, 310, 13291, 15648, 2903, 25, 2240, 345, 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_recv_logout_send_logout_recv_resend_request() { define_dictionary!( Heartbeat, Logon, Logout, ResendRequest, SequenceReset, TestRequest, ); //Connect and Logon. let (mut test_server, mut client, connection) = TestStream::se...
rust_cleaned_test_functions.jsonl/19
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 836 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36118, 69386, 13565, 69386, 36118, 4918, 408, 7893, 368, 341, 262, 6979, 42605, 33673, 286, 17965, 22227, 345, 286, 2835, 263, 345, 286, 46285, 345, 286, 1800, 408, 1900, 345, 286, 28871, 14828, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_copy_expand_with_type_params() { let expanded = expand_builtin_derive( r#" #[derive(Copy)] struct Foo<A, B>; "#, known::Copy, ); assert_eq!( expanded, "impl<T0:std::marker::Copy,T1:std::marker::Copy>std::mar...
rust_cleaned_test_functions.jsonl/10554
{ "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, 16096, 67875, 6615, 1819, 6745, 368, 341, 286, 1077, 17183, 284, 9225, 73829, 35345, 533, 1006, 310, 435, 2, 698, 286, 11506, 27098, 3025, 1266, 5563, 286, 2036, 33428, 30192, 11, 425, 10133, 5767...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_monospace() -> Result<(), strum::ParseError> { assert_eq!("0", Monospace::Normal.to_string()); assert_eq!(Monospace::Normal, Monospace::from_str("0")?); assert_eq!("1", Monospace::Monospace.to_string()); assert_eq!(Monospace::Monospace, Monospace::from_str("1")?);...
rust_cleaned_test_functions.jsonl/92483
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20737, 80014, 368, 1464, 5714, 68843, 607, 372, 486, 14463, 1454, 29, 341, 286, 2060, 10714, 17223, 15, 497, 3128, 80014, 486, 12206, 2389, 3904, 1423, 286, 2060, 10714, 10297, 11095, 80014, 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...
3
#[test] fn test_add_node_pubkey_internal() { let num_vote_accounts = 10; let staked_vote_accounts = 5; let vote_account_pubkeys: Vec<_> = std::iter::repeat_with(paychains_sdk::pubkey::new_rand) .take(num_vote_accounts) .collect(); let epoch_vote_accounts: ...
rust_cleaned_test_functions.jsonl/64319
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 5084, 34014, 792, 23472, 368, 341, 286, 1077, 1629, 54360, 55665, 284, 220, 16, 15, 280, 286, 1077, 357, 7741, 54360, 55665, 284, 220, 20, 280, 286, 1077, 6910, 13500, 34014, 10563, 25, 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_get_hash() { let a = "Ted".to_string(); assert_eq!(2_646_829_031_758_483_623, get_hash(&a)); }
rust_cleaned_test_functions.jsonl/31600
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 76 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 8950, 368, 341, 286, 1077, 264, 284, 330, 78653, 3263, 983, 3904, 1428, 286, 2060, 10714, 10297, 17, 62, 21, 19, 21, 62, 23, 17, 24, 62, 15, 18, 16, 62, 22, 20, 23, 62, 19, 23, 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
#[test] fn test_file() { let mut foo = FunctionSpec::new("foo"); let m = Name::imported("foo", "hello"); foo.push(stmt!["return ", m, "();"]); let mut file = FileSpec::new(); file.push(foo); let result = file.to_string(); assert_eq!( "import...
rust_cleaned_test_functions.jsonl/4464
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 211 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 368, 341, 286, 1077, 5206, 15229, 284, 5712, 8327, 486, 931, 445, 7975, 797, 286, 1077, 296, 284, 3988, 486, 474, 291, 445, 7975, 497, 330, 14990, 797, 286, 15229, 2552, 47895, 0, 1183, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reverse_scan() { let table_id = 1; let key_number = 10; let mut data = prepare_table_data(key_number, table_id); let mut test_store = TestStore::new(&data.kv_data); let (snapshot, start_ts) = test_store.get_snapshot(); let store = SnapshotStore::ne...
rust_cleaned_test_functions.jsonl/121695
{ "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, 43277, 28857, 368, 341, 286, 1077, 1965, 842, 284, 220, 16, 280, 286, 1077, 1376, 5500, 284, 220, 16, 15, 280, 286, 1077, 5206, 821, 284, 10549, 5237, 1769, 4857, 5500, 11, 1965, 842, 317, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_entry() { let xs = [(1, 10), (2, 20), (3, 30), (4, 40), (5, 50), (6, 60)]; let mut map: HashMap<_, _> = xs.iter().cloned().collect(); match map.entry(1) { Vacant(_) => unreachable!(), Occupied(mut view) => { assert_eq!(vi...
rust_cleaned_test_functions.jsonl/8525
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 805 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9078, 368, 341, 286, 1077, 11943, 284, 17826, 16, 11, 220, 16, 15, 701, 320, 17, 11, 220, 17, 15, 701, 320, 18, 11, 220, 18, 15, 701, 320, 19, 11, 220, 19, 15, 701, 320, 20, 11, 220, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_should_sample() { let mut logger = LogEntryLogger::new( slog::Logger::root(slog::Discard, slog::o!()), slog::Level::Critical, vec![], HashMap::new(), vec![], ); logger.sampling_rates = [ ("ten".into(...
rust_cleaned_test_functions.jsonl/88449
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 420 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43378, 17491, 368, 341, 286, 1077, 5206, 5925, 284, 2835, 5874, 7395, 486, 931, 1006, 310, 34949, 486, 7395, 486, 2888, 1141, 839, 486, 23477, 567, 11, 34949, 486, 78, 0, 14702, 310, 34949, 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...
2
#[test] fn test_transfer_all_native() { new_test_ext().execute_with(|| { Pallet::<Test>::transfer_all_native(Origin::signed(FROM_ACCOUNT), TO_ACCOUNT, true) .expect("transfer_all_native should work"); assert_eq!(Pallet::<Test>::total_balance(ASSET_ID, &FROM_ACCOUNT), 1); assert_eq!(Pallet::<Test>::tot...
rust_cleaned_test_functions.jsonl/9171
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35403, 5705, 44494, 368, 341, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 197, 10025, 7464, 27638, 2271, 6831, 24188, 5705, 44494, 7, 13298, 486, 2215, 7832, 3361, 38831, 701, 5146, 38831, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_msg_no_reply() { let subject = "topic1"; let message = format!("MSG {} 47 18\r\n", subject); let result = parse_line(&message); let expected = MessageArg { subject: &subject, sid: 47, reply: None, size: 18, ...
rust_cleaned_test_functions.jsonl/5700
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 6483, 6536, 15323, 368, 341, 286, 1077, 3832, 284, 330, 16411, 16, 876, 286, 1077, 1943, 284, 3561, 17223, 19575, 4687, 220, 19, 22, 220, 16, 23, 12016, 1699, 497, 3832, 317, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_empty_missing_message() { let mut logentry = LogEntry { params: Value::U64(0).into(), // Ensure the logentry is not empty ..LogEntry::default() }; let mut meta = Meta::default(); assert_eq_dbg!( normalize_logentry(&mut logentry, &mut meta), Err(Pr...
rust_cleaned_test_functions.jsonl/84681
{ "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, 15124, 40447, 6462, 368, 341, 262, 1077, 5206, 1487, 4085, 284, 2835, 5874, 341, 286, 3628, 25, 5162, 486, 52, 21, 19, 7, 15, 568, 18122, 1507, 442, 29279, 279, 1487, 4085, 374, 537, 4287, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_height() { fn test(text: &str, indent: usize, max_width: usize, height: u16) { let mut layout = Layout::new(indent as u16, (max_width as u16, 40).into()); let mut input = StringInput::default(); input.set_value(text.into()); assert_eq!(inpu...
rust_cleaned_test_functions.jsonl/63669
{ "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, 9561, 368, 341, 286, 5168, 1273, 7235, 25, 609, 495, 11, 17504, 25, 22301, 11, 1932, 7927, 25, 22301, 11, 2608, 25, 575, 16, 21, 8, 341, 310, 1077, 5206, 6789, 284, 13821, 486, 931, 76788, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_if_file_exist() { cfg_if! { if #[cfg(feature = "crossbeam_channel")] { let (tx, rx) = bounded(ZERO); } else if #[cfg(feature = "flume_channel")] { let (tx, rx) = bounded(ZERO); } else { let (tx, rx) = std:...
rust_cleaned_test_functions.jsonl/27185
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 497 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11119, 2458, 35906, 368, 341, 286, 13286, 11119, 0, 341, 310, 421, 220, 11506, 14072, 27062, 284, 330, 28842, 53871, 14571, 30917, 341, 2290, 1077, 320, 3998, 11, 19111, 8, 284, 61115, 27855, 1729...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_poll_async_delayed_ops() { run_in_task(|cx| { let (mut runtime, dispatch_count) = setup(Mode::Async); runtime .execute( "setup2.js", r#" let nrecv = 0; Deno.core.setAsyncHandler(1, (buf) => { nrecv++; }); ...
rust_cleaned_test_functions.jsonl/4855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 767 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40002, 28346, 22198, 291, 21959, 368, 341, 262, 1598, 1243, 12184, 22428, 25844, 91, 341, 414, 1077, 320, 6984, 15592, 11, 6845, 3180, 8, 284, 6505, 3189, 534, 486, 6525, 626, 414, 15592, 198, 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_hover_generic_dyn_arg_has_goto_type_action() { check_actions( r#" trait Foo<T> {} struct S {} fn foo(ar<|>g: &dyn Foo<S>) {} "#, expect![[r#" [ GoToType( [ HoverGotoTypeData { ...
rust_cleaned_test_functions.jsonl/66176
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1769 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 41232, 69213, 6057, 21778, 97732, 1819, 7931, 368, 341, 286, 1779, 25368, 1006, 310, 435, 2, 698, 29432, 33428, 3125, 29, 5613, 1235, 328, 5613, 8822, 15229, 37544, 27, 91, 29, 70, 25, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_key_replay_counter_updated_after_msg3() { let mut supplicant = test_util::get_wpa2_supplicant(); supplicant.start().expect("Failed starting Supplicant"); let (result, updates) = send_fourway_msg1(&mut supplicant, |msg1| { msg1.key_frame_fields.key_replay_coun...
rust_cleaned_test_functions.jsonl/21799
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 776 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 1288, 1363, 15730, 33492, 19844, 6483, 18, 368, 341, 286, 1077, 5206, 90035, 35237, 284, 1273, 18974, 486, 455, 1670, 6595, 17, 91480, 35237, 543, 286, 90035, 35237, 4962, 1005, 17119, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_entry() { let entries = &[ make_entry("github", Some("foo"), None), make_entry("gitlab", Some("foo"), None), make_entry("gitlab", Some("bar"), None), make_entry("gitter", Some("baz"), None), make_entry("git", Some("foo"), N...
rust_cleaned_test_functions.jsonl/36579
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 9078, 368, 341, 286, 1077, 10695, 284, 609, 9640, 310, 1281, 9078, 445, 5204, 497, 4329, 445, 7975, 3975, 2240, 1326, 310, 1281, 9078, 445, 12882, 14380, 497, 4329, 445, 7975, 3975, 2240, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pipe_fail() { // pipe fail on stdout processing block_on(assert_commands_error( "echo okay | (cat; false) | cat; exec 1>&-; cat | (cat; true) | cat > /dev/null", )); // pipe fail on stdin processing block_on(assert_commands_error( "echo okay | (cat; true) | ca...
rust_cleaned_test_functions.jsonl/86516
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41862, 22121, 368, 341, 262, 442, 13647, 3690, 389, 20075, 8692, 198, 262, 2504, 4470, 75846, 44151, 4096, 1006, 286, 330, 3047, 16910, 760, 320, 4616, 26, 895, 8, 760, 8251, 26, 3883, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_default() { let b = TableRowProperty::new().build(); assert_eq!(str::from_utf8(&b).unwrap(), r#"<w:trPr />"#); }
rust_cleaned_test_functions.jsonl/38678
{ "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, 9993, 368, 341, 286, 1077, 293, 284, 80217, 3052, 486, 931, 1005, 5834, 543, 286, 2060, 10714, 10297, 495, 486, 1499, 39453, 23, 2099, 65, 568, 15454, 1507, 435, 2, 22476, 86, 25, 376, 3533, 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
#[test] fn test_simple_votes() { // Init state let mut vote_simulator = VoteSimulator::new(1); let node_pubkey = vote_simulator.node_pubkeys[0]; let mut tower = Tower::new_with_key(&node_pubkey); // Create the tree of banks let forks = tr(0) / (tr(1) / (tr(2) / (...
rust_cleaned_test_functions.jsonl/77015
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 482 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 65116, 368, 341, 286, 442, 15690, 1584, 198, 286, 1077, 5206, 6910, 18314, 10511, 284, 34034, 14027, 10511, 486, 931, 7, 16, 317, 286, 1077, 2436, 34014, 792, 284, 6910, 18314, 10511, 12097...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_find_sig_with_ancestor_fork() { let sig = Signature::default(); let mut status_cache = BankStatusCache::default(); let blockhash = hash(Hash::default().as_ref()); let ancestors = vec![(0, 1)].into_iter().collect(); status_cache.insert(&blockhash, &sig, 0, ...
rust_cleaned_test_functions.jsonl/23939
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 285 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 29252, 6615, 62, 66878, 761, 669, 368, 341, 286, 1077, 8366, 284, 32232, 486, 2258, 543, 286, 1077, 5206, 2639, 11529, 284, 8547, 2522, 8233, 486, 2258, 543, 286, 1077, 2504, 8296, 284, 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_tuple_variant() { let bser_v2 = b"\x00\x02\x00\x00\x00\x00\x05\x1e\x00\x00\x00\x01\x03\x01\x02\x03\tTestTuple\ \x00\x03\x02\x02\x03\x03foo\x02\x03\x03bar"; let decoded = from_slice::<BytestringVariant>(bser_v2).unwrap(); assert_eq!( decoded, B...
rust_cleaned_test_functions.jsonl/34069
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21773, 46112, 368, 341, 1066, 262, 1077, 293, 799, 2273, 17, 284, 293, 11934, 87, 15, 15, 3462, 15, 17, 3462, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 15, 20, 3462, 16, 68, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_min_depth() { assert_eq!(Solution::min_depth(tree![3, 9, 20, null, null, 15, 7]), 2); assert_eq!( Solution::min_depth(tree![2, null, 3, null, 4, null, 5, null, 6]), 5 ); }
rust_cleaned_test_functions.jsonl/63151
{ "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, 7260, 19061, 368, 341, 286, 2060, 10714, 10297, 36842, 486, 1065, 19061, 21298, 20703, 18, 11, 220, 24, 11, 220, 17, 15, 11, 845, 11, 845, 11, 220, 16, 20, 11, 220, 22, 9719, 220, 17, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_bytes_incomplete() { let data: Vec<u8> = vec![]; let err = HeaderIdentOsAbi::from_bytes((&data, 0)); assert!(matches!(err, Err(_))); }
rust_cleaned_test_functions.jsonl/4088
{ "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, 5673, 12524, 1243, 14737, 368, 341, 286, 1077, 821, 25, 11312, 34837, 23, 29, 284, 7486, 0, 40901, 286, 1077, 1848, 284, 12104, 28301, 28867, 5830, 72, 486, 1499, 12524, 42902, 691, 11, 220, 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
#[test] fn test_swimlanes() { let config: ConfigBuilder = toml::from_str( r#" [transforms.foo] inputs = ["ignored"] type = "swimlanes" [transforms.foo.lanes.first] type = "check_fields" "message.eq" = "test swimlane 1" [transforms.foo.lanes.second] type = "check_fields" ...
rust_cleaned_test_functions.jsonl/75160
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 606 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32581, 318, 10715, 288, 368, 341, 286, 1077, 2193, 25, 5532, 3297, 284, 311, 1014, 486, 1499, 2895, 1006, 310, 435, 2, 698, 58, 94833, 58432, 921, 220, 11127, 284, 4383, 58471, 7026, 220, 943, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_paths() { let dir = TempDir::new("slang_wrapper_tests").unwrap(); let file_path_1 = dir.path().join("test1.sv"); let file_path_1_c = CString::new(file_path_1.to_str().unwrap()).unwrap(); let mut f = File::create(&file_path_1).unwrap(); f.write_all(b"module...
rust_cleaned_test_functions.jsonl/96202
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1020 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24152, 368, 341, 286, 1077, 5419, 284, 19944, 6184, 486, 931, 445, 3226, 524, 23561, 32509, 1827, 15454, 543, 286, 1077, 1034, 2638, 62, 16, 284, 5419, 3875, 1005, 5987, 445, 1944, 16, 514, 85, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_drop_nulls_optimization() -> Result<()> { let mut rules: Vec<Box<dyn OptimizationRule>> = vec![Box::new(ReplaceDropNulls {})]; let df = fruits_cars(); for subset in [ Some(vec![col("fruits")]), Some(vec![col("fruits"), col("cars")]), S...
rust_cleaned_test_functions.jsonl/104063
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 315 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29584, 15162, 82, 15032, 65964, 368, 1464, 5714, 71698, 341, 286, 1077, 5206, 5601, 25, 11312, 79852, 92846, 57739, 11337, 2452, 284, 7486, 20703, 1611, 486, 931, 7, 23107, 19871, 3280, 82, 4687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sort_multiple_types() { let v = to_value(vec![Value::Number(12.into()), Value::Array(vec![])]).unwrap(); let args = HashMap::new(); let result = sort(&v, &args); assert!(result.is_err()); assert_eq!(result.unwrap_err().to_string(), "expected number got []...
rust_cleaned_test_functions.jsonl/62053
{ "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, 18435, 45233, 9763, 368, 341, 286, 1077, 348, 284, 311, 3142, 25592, 20703, 1130, 486, 2833, 7, 16, 17, 39860, 11858, 5162, 486, 1857, 25592, 0, 1294, 7252, 568, 15454, 543, 286, 1077, 2827, 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_override_existing_license_with_no_license() { let toml = r#"license_template_path = "tests/license-template/lt.txt""#; let mut config = Config::from_toml(toml, Path::new("")).unwrap(); assert!(config.license_template.is_some()); config.override_value("license_temp...
rust_cleaned_test_functions.jsonl/130636
{ "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, 48576, 62630, 63839, 6615, 6536, 63839, 368, 341, 286, 1077, 311, 1014, 284, 435, 55543, 13266, 8693, 2638, 284, 330, 23841, 43986, 33409, 14, 4832, 3909, 3014, 2, 280, 286, 1077, 5206, 2193, 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_with_totals() { let ddl = " CREATE TABLE clickhouse_test_with_totals ( country String ) Engine=Memory"; let query = " SELECT country, COUNT(*) FROM clickhouse_test_with_totals GROUP BY country WITH T...
rust_cleaned_test_functions.jsonl/30933
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 473 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 96892, 368, 341, 262, 1077, 55780, 284, 6228, 286, 30776, 14363, 4205, 7675, 4452, 6615, 96892, 2399, 310, 3146, 923, 198, 286, 873, 8200, 28, 10642, 3302, 262, 1077, 3239, 284, 6228, 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_check_update_vote_state_slot_not_on_fork() { let slot_hashes = build_slot_hashes(vec![2, 4, 6, 8]); let vote_state = build_vote_state(vec![2, 4, 6], &slot_hashes); // Test with a `vote_state_update` where there: // 1) Exists a slot not in the slot hashes history ...
rust_cleaned_test_functions.jsonl/6139
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 847 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 8882, 54360, 4387, 27563, 7913, 4470, 761, 669, 368, 341, 286, 1077, 9446, 91616, 284, 1936, 27563, 91616, 25592, 20703, 17, 11, 220, 19, 11, 220, 21, 11, 220, 23, 2558, 286, 1077, 6910, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_demangling() { fn test(original: &str, expect: &str) { assert_eq!(demangle(original).unwrap().to_owned(), expect); } test("hi", "hi"); test("hi__Fv", "hi()"); test("hi__Fv_b", "hi() -> bool"); test("hi__3FooFv_b", "Foo::hi() -> bool"); test("hi__Q24Okok3FooFv...
rust_cleaned_test_functions.jsonl/65900
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 212 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69403, 90104, 368, 341, 262, 5168, 1273, 39809, 25, 609, 495, 11, 1720, 25, 609, 495, 8, 341, 286, 2060, 10714, 10297, 27431, 4044, 39809, 568, 15454, 1005, 983, 51973, 1507, 1720, 317, 262, 555...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_sorted() { let empty: [i32; 0] = []; assert!([1, 2, 2, 9].is_sorted()); assert!(![1, 3, 2].is_sorted()); assert!([0].is_sorted()); assert!(empty.is_sorted()); assert!(![0.0, 1.0, f32::NAN].is_sorted()); assert!([-2, -1, 0, 3].is_sorted()); assert!(![-2i32, -1,...
rust_cleaned_test_functions.jsonl/9711
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 41277, 368, 341, 262, 1077, 4287, 25, 508, 72, 18, 17, 26, 220, 15, 60, 284, 15436, 262, 2060, 0, 2561, 16, 11, 220, 17, 11, 220, 17, 11, 220, 24, 936, 285, 41277, 1423, 262, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multiple_statements_insert_insert() { assert_eq!( test_sql( " INSERT INTO a.a VALUES(1,2); INSERT INTO b.b VALUES(1,2); " ), SqlMeta { in_tables: vec![], out_tables: tables(vec!["a.a", "b.b"]), ...
rust_cleaned_test_functions.jsonl/64037
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 16271, 3723, 17678, 17678, 368, 341, 262, 2060, 10714, 33673, 286, 1273, 18063, 1006, 310, 6228, 310, 39518, 12496, 264, 5849, 14710, 7, 16, 11, 17, 317, 310, 39518, 12496, 293, 948, 14710,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deserialize_duration_minutes() { #[derive(Deserialize)] struct Test { #[serde(deserialize_with = "deserialize_duration_minutes")] v: Duration, } let expected = Duration::minutes(36); let data = json!({ "v": 36, ...
rust_cleaned_test_functions.jsonl/131362
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 314 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 25454, 67655, 368, 341, 286, 11506, 27098, 7, 64465, 5563, 286, 2036, 3393, 341, 310, 11506, 47024, 34590, 9050, 6615, 284, 330, 66777, 25454, 67655, 5422, 310, 348, 25, 21045, 345, 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_approve() { let program_id = crate::id(); let account_key = Pubkey::new_unique(); let mut account_account = SolanaAccount::new( account_minimum_balance(), Account::get_packed_len(), &program_id, ); let account2_key = Pub...
rust_cleaned_test_functions.jsonl/44633
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3649 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36057, 586, 368, 341, 286, 1077, 2025, 842, 284, 17717, 486, 307, 543, 286, 1077, 2692, 3097, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 5206, 2692, 13500, 284, 11473, 3362, 7365, 486, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_batch_sumcheck_correctness() { let rng = &mut ark_std::test_rng(); let d = 1 << (5); let f = DensePolynomial::<F>::rand(d, rng).coeffs().to_vec(); let g = DensePolynomial::<F>::rand(d, rng).coeffs().to_vec(); let twist = F::rand(rng); let twist_powers = powers(twist, d +...
rust_cleaned_test_functions.jsonl/118310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 683 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14534, 10160, 2028, 31550, 2090, 368, 341, 262, 1077, 28422, 284, 609, 6984, 55217, 15656, 486, 1944, 66849, 543, 262, 1077, 294, 284, 220, 16, 1115, 320, 20, 626, 262, 1077, 282, 284, 42522, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_layer_options() { use gdal_sys::OGRwkbGeometryType::wkbPoint; let (_temp_path, mut ds) = open_gpkg_for_update(fixture!("poly.gpkg")); let mut options = LayerOptions { name: "new", ty: wkbPoint, ..Default::default() }; ...
rust_cleaned_test_functions.jsonl/67897
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 12680, 8743, 368, 341, 286, 990, 32630, 278, 20344, 486, 46, 8626, 86, 21310, 20787, 929, 486, 86, 21310, 2609, 280, 286, 1077, 5453, 3888, 2638, 11, 5206, 11472, 8, 284, 1787, 1889, 30069...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_blake2s() { let data = [ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x2...
rust_cleaned_test_functions.jsonl/123260
{ "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, 13141, 726, 17, 82, 368, 341, 262, 1077, 821, 284, 2278, 286, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 17, 11, 220, 15, 87, 15, 18, 11, 220, 15, 87, 15, 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_maybe_owned_into_string() { assert_eq!(Slice("abcde").into_string(), String::from_str("abcde")); assert_eq!(Owned(String::from_str("abcde")).into_string(), String::from_str("abcde")); }
rust_cleaned_test_functions.jsonl/56868
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 120 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 49791, 51973, 45514, 3904, 368, 341, 286, 2060, 10714, 10297, 33236, 445, 13683, 450, 1827, 18122, 3904, 1507, 923, 486, 1499, 2895, 445, 13683, 450, 4010, 286, 2060, 10714, 10297, 57641, 2242,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_rand() { let mut rng = thread_rng(); let _n: BigInt = rng.gen_bigint(137); assert!(rng.gen_bigint(0).is_zero()); }
rust_cleaned_test_functions.jsonl/90180
{ "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, 33864, 368, 341, 286, 1077, 5206, 28422, 284, 4516, 66849, 543, 286, 1077, 716, 77, 25, 62608, 284, 28422, 22822, 36386, 396, 7, 16, 18, 22, 317, 286, 2060, 10297, 69890, 22822, 36386, 396, 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
#[test] fn test_case_sensitive_glob_searches() { let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES); te.assert_output(&["--glob", "--case-sensitive", "c.foo*"], "one/two/c.foo"); }
rust_cleaned_test_functions.jsonl/10858
{ "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, 19096, 65324, 95133, 10716, 288, 368, 341, 262, 1077, 1013, 284, 3393, 14359, 486, 931, 43175, 90560, 11, 11955, 48010, 626, 262, 1013, 3713, 7645, 2099, 1183, 313, 58926, 497, 14482, 5638, 56667, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_invalid_include() { let ctx = TestContext::new(); let cmx_path = ctx.new_include( "some.cmx", json!({ "include": ["doesnt_exist.cmx"], "program": { "binary": "bin/hello_world" } ...
rust_cleaned_test_functions.jsonl/50692
{ "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, 31433, 37878, 368, 341, 286, 1077, 5635, 284, 3393, 1972, 486, 931, 543, 286, 1077, 9961, 87, 2638, 284, 5635, 4618, 37878, 1006, 310, 330, 14689, 520, 18085, 756, 310, 2951, 0, 2262, 394, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_parse_capture() { let pos = PositionBuilder::new() .place(Square::E3, Piece::Bishop, Color::White) .place(Square::D4, Piece::Knight, Color::Black) .build(); assert_eq!( Ok(Move { kind: MoveKind::Capture, from: Square::E3, to: Square::D4 }), MoveGenerator::ne...
rust_cleaned_test_functions.jsonl/134618
{ "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, 21039, 55148, 368, 341, 262, 1077, 1133, 284, 12380, 3297, 486, 931, 741, 414, 659, 2007, 3759, 5151, 486, 36, 18, 11, 28930, 486, 33, 20158, 11, 3478, 486, 14075, 340, 414, 659, 2007, 3759, 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_example_hash() { let code_string = read_file("examples/map-reduce.mk".to_owned()).ok().unwrap(); let mut evaluator = Evaluator::new(); let (_, lex_tokens) = Lexer::lex_tokens(code_string.as_bytes()).unwrap(); let tokens = Tokens::new(&lex_tokens); let (_, program) = Parser::p...
rust_cleaned_test_functions.jsonl/111690
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 180 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39304, 8950, 368, 341, 262, 1077, 2038, 3904, 284, 1349, 2458, 445, 51668, 41081, 5504, 13373, 35011, 3263, 983, 51973, 6011, 562, 1005, 15454, 543, 262, 1077, 5206, 69810, 284, 468, 52389, 486, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pruned_null() { test_helpers::maybe_start_logging(); // column1 > 100 where let observer = TestObserver::new(); let c1 = Arc::new(TestChunk::new("chunk1").with_i64_field_column_with_stats( "column1", Non...
rust_cleaned_test_functions.jsonl/47397
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 575 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5294, 48883, 15162, 368, 341, 286, 1273, 54473, 486, 36760, 4906, 59982, 543, 286, 442, 3250, 16, 861, 220, 16, 15, 15, 1380, 8945, 16885, 23459, 286, 1077, 22067, 284, 3393, 17151, 486, 931, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_number_failure_edge_cases() { let parsed: JsonParseResult = r#"01"#.parse(); parsed.unwrap_err(); let parsed: JsonParseResult = r#"0."#.parse(); parsed.unwrap_err(); let parsed: JsonParseResult = r#".0"#.parse(); parsed.unwrap_err(); let parsed: JsonParseResult = r#"0...
rust_cleaned_test_functions.jsonl/88100
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 396 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5500, 43618, 17932, 41427, 368, 341, 262, 1077, 15676, 25, 8308, 14463, 2077, 284, 435, 55543, 15, 16, 57676, 13, 6400, 543, 262, 15676, 55395, 9266, 543, 262, 1077, 15676, 25, 8308, 14463, 2077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_signatures_nil() { let vp_calculator = ProdVotingPowerCalculator::default(); let trust_threshold = TrustThreshold::default(); let validator_set = ValidatorSet::new(vec!["a", "b"]); let vals = validator_set.clone().validators.unwrap(); let header = Hea...
rust_cleaned_test_functions.jsonl/35059
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 395 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 11172, 2789, 36175, 368, 341, 286, 1077, 34823, 24005, 20022, 284, 71272, 53, 11519, 14986, 55743, 486, 2258, 543, 286, 1077, 6950, 21858, 284, 16816, 37841, 486, 2258, 1428, 286, 1077, 22935,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wide() { let instruction = &[0xc4, 0x15, 0xaa, 0xbb]; assert_eq!(Ok((&[][..], Instruction::IloadWide(0xaabb))), instruction_parser(instruction, 0)); }
rust_cleaned_test_functions.jsonl/62169
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1670, 577, 368, 341, 262, 1077, 7600, 284, 44590, 15, 8148, 19, 11, 220, 15, 87, 16, 20, 11, 220, 15, 43300, 11, 220, 15, 48939, 935, 262, 2060, 10714, 10297, 11578, 42902, 63449, 496, 1125, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ansi_codepoints() { for byte in 0..128 { match byte { b'\"' | b'\\' => { /* Ignore string close and backslash */ } _ => assert_valid_str(&(byte as char).to_string()), } } for byte in 128..=255u8 { assert...
rust_cleaned_test_functions.jsonl/4160
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 52067, 4136, 7706, 368, 341, 286, 369, 4922, 304, 220, 15, 496, 16, 17, 23, 341, 310, 2432, 4922, 341, 394, 293, 6, 2105, 6, 760, 293, 6, 3422, 6, 589, 314, 1391, 38971, 914, 3265, 323...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_spaces() { assert_eq!(eol(&b"\nx"[..]), Done(&b"x"[..], ())); assert_eq!(eol(&b"\r\nx"[..]), Done(&b"x"[..], ())); assert_eq!(eol(&b"\nx"[..]), Done(&b"x"[..], ())); assert_eq!(whitespace(&b"x"[..]), Error(Err::Position(ErrorKind::TakeWhile1, &b"x"[..]))); assert_eq!(whitesp...
rust_cleaned_test_functions.jsonl/11384
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 648 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 67883, 368, 341, 262, 2060, 10714, 10297, 68, 337, 2099, 65, 11934, 23357, 36864, 496, 9719, 27357, 2099, 65, 65438, 36864, 496, 1125, 320, 4945, 262, 2060, 10714, 10297, 68, 337, 2099, 65, 11934,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_breaks_label_no_value() { 'loop1: loop { break 'loop1; } 'loop2: loop { 'loop3: loop { break 'loop3; } break; } 'loop4: loop { 'loop5: loop { break 'loop4; } } }
rust_cleaned_test_functions.jsonl/76115
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39494, 82, 6106, 6536, 3142, 368, 341, 262, 364, 10498, 16, 25, 6337, 341, 286, 1438, 364, 10498, 16, 280, 262, 555, 262, 364, 10498, 17, 25, 6337, 341, 286, 364, 10498, 18, 25, 6337, 341, 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_response_serialize_str() { let expected = r#"{"id":"1","method":"login","jsonrpc":"2.0","params":null}"#; let rpc = RpcResponse { id: JsonId::StrId(String::from("1")), method: String::from("login"), jsonrpc: String::from("2.0"), result: None, error: None, }; let json_actua...
rust_cleaned_test_functions.jsonl/49211
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9655, 88686, 2895, 368, 341, 197, 10217, 3601, 284, 435, 55543, 4913, 307, 3252, 16, 2198, 4393, 3252, 3673, 2198, 2236, 29414, 3252, 17, 13, 15, 2198, 3519, 788, 2921, 9863, 2, 280, 197, 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_unlinkat_dir_noremovedir() { let tempdir = tempfile::tempdir().unwrap(); let dirname = "foo_dir"; let dirpath = tempdir.path().join(dirname); // Create dir DirBuilder::new().recursive(true).create(&dirpath).unwrap(); // Get file descriptor for base directory let dir...
rust_cleaned_test_functions.jsonl/30619
{ "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, 4907, 2080, 266, 4334, 1089, 13173, 4941, 404, 368, 341, 262, 1077, 2730, 3741, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 262, 1077, 29908, 284, 330, 7975, 4334, 876, 262, 1077, 5419, 2343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_receiving_router_advertisement_fixed_message() { let config = get_dummy_config::<Ipv6Addr>(); let mut ctx = DummyEventDispatcherBuilder::from_config(config.clone()) .build::<DummyEventDispatcher>(); let device = Some(DeviceId::new_ethernet(0)); let dev...
rust_cleaned_test_functions.jsonl/16143
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3667 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 46344, 55587, 10027, 44424, 37839, 6462, 368, 341, 286, 1077, 2193, 284, 633, 60321, 5332, 27638, 80656, 21, 13986, 3913, 286, 1077, 5206, 5635, 284, 50567, 1556, 21839, 3297, 486, 1499, 5332,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_batched_uploads() { let uploads: Vec<_> = (0..=MAX_CONCURRENT_UPLOADS + 1) .map(|i| Blob { mime: "text/rust".into(), content: "fn main() {}".into(), path: format!("{}.rs", i), date_updated: Timespec::new(42, 0), ...
rust_cleaned_test_functions.jsonl/70550
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14534, 291, 62, 19374, 368, 341, 286, 1077, 66563, 25, 11312, 32399, 29, 284, 320, 15, 496, 28, 10586, 4307, 44690, 63036, 50, 488, 220, 16, 340, 310, 659, 2186, 22428, 72, 91, 49439, 341, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_supported_ext_fmt() { assert!(!is_supported_ext_fmt(Path::new("tests/subdir/redirects"))); assert!(is_supported_ext_fmt(Path::new("README.md"))); assert!(is_supported_ext_fmt(Path::new("readme.MD"))); assert!(is_supported_ext_fmt(Path::new("readme.mkd"))); assert!(is_suppo...
rust_cleaned_test_functions.jsonl/79108
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 647 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 57885, 9927, 38128, 368, 341, 262, 2060, 0, 3471, 285, 57885, 9927, 38128, 33030, 486, 931, 445, 23841, 37885, 3741, 14, 8117, 82, 17621, 262, 2060, 10297, 285, 57885, 9927, 38128, 33030, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_circle_from_bbox() { let cords = BBox::new((0, 10), (10, 20)); let circle_orig = Circle::new((5, 15), 5, Color::Black); let circle = Circle::from_bbox(cords, Color::Black); assert_eq!(circle_orig, circle); let cords = BBox::new((0, 10), (10, 16)); ...
rust_cleaned_test_functions.jsonl/18435
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42222, 5673, 59390, 368, 341, 286, 1077, 79617, 284, 425, 1611, 486, 931, 1188, 15, 11, 220, 16, 15, 701, 320, 16, 15, 11, 220, 17, 15, 1106, 286, 1077, 12671, 35328, 284, 21224, 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, 1...
1
#[test] fn test_normalized() { let modules = stdlib::load_latest_stable_compiled_modules().unwrap().1; let dao = modules .iter() .find(|m| { m.self_id() == ModuleId::new(genesis_address(), Identifier::new("Dao").unwrap()) }) .unwrap...
rust_cleaned_test_functions.jsonl/17491
{ "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, 80006, 368, 341, 286, 1077, 13454, 284, 1460, 2740, 486, 1078, 64880, 1261, 480, 18177, 2181, 15848, 1005, 15454, 1005, 16, 280, 286, 1077, 24775, 284, 13454, 198, 310, 659, 2015, 741, 310, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iny_dey() { let code = vec![0xC8, 0x88]; let mut nes = Cpu::new(); let mut memory = new_memory(code); nes.next(&mut memory).unwrap(); assert_eq!(1, nes.Y); nes.next(&mut memory).unwrap(); assert_eq!(0, nes.Y); }
rust_cleaned_test_functions.jsonl/38730
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 88, 2259, 88, 368, 341, 286, 1077, 2038, 284, 7486, 20703, 15, 12125, 23, 11, 220, 15, 87, 23, 23, 935, 286, 1077, 5206, 308, 288, 284, 356, 5584, 486, 931, 543, 286, 1077, 5206, 4938,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_radial_grad() { let fcenter = Point::new(0.25, 0.0); let center = Point::new(0.5, 0.0); let grad = GradRadial::new( vec![], Units::BoundingBox, true, GradSpread::Pad, Transform::identity(), center, ...
rust_cleaned_test_functions.jsonl/97806
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 345 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39764, 530, 18352, 368, 341, 286, 1077, 282, 3057, 284, 5126, 486, 931, 7, 15, 13, 17, 20, 11, 220, 15, 13, 15, 317, 286, 1077, 4126, 284, 5126, 486, 931, 7, 15, 13, 20, 11, 220, 15, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_init_db() { let mut conn = connect(); init_db(&mut conn).expect("db init went oof"); conn.execute( "INSERT INTO test (test_name) VALUES (?) ;", params!["english"], ) .expect("inserting into test"); conn.execute( ...
rust_cleaned_test_functions.jsonl/18128
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 387 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6137, 8685, 368, 341, 286, 1077, 5206, 4534, 284, 4564, 543, 286, 2930, 8685, 2099, 6984, 4534, 568, 17119, 445, 1999, 2930, 3937, 297, 1055, 3071, 286, 4534, 7769, 1006, 310, 330, 12698, 12496, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_gestures() { use rpc::GestureType::*; let initial_text = "\ this is a string\n\ that has three\n\ lines."; let harness = ContextHarness::new(initial_text); let mut ctx = harness.make_context(); ctx.do_edit(EditNotification::Gesture ...
rust_cleaned_test_functions.jsonl/125914
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1717 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 477, 1413, 368, 341, 286, 990, 35596, 486, 22682, 929, 56162, 286, 1077, 2856, 4326, 284, 93317, 286, 419, 374, 264, 914, 1699, 5661, 286, 429, 702, 2326, 1699, 5661, 286, 5128, 15297, 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_bank_update_vote_stake_rewards() { solana_logger::setup(); let bank0 = Arc::new(Bank::new_for_tests(&GenesisConfig { accounts: (0..42) .map(|_| { ( solana_sdk::pubkey::new_rand(), ...
rust_cleaned_test_functions.jsonl/70948
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3032 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35733, 8882, 54360, 1261, 726, 77997, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 1789, 286, 1077, 6073, 15, 284, 19689, 486, 931, 5349, 1180, 486, 931, 5478, 32509, 2099, 84652, 2648, 341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parser_error() { let data = "\"ab"; let parser = parser::YamlByteParser::init(data.as_bytes(), YamlUtf8Encoding); let mut stream = parser.parse(); let stream_start = stream.next(); match stream_start { Some(Ok(evt)) => assert_eq!(YamlStreamSta...
rust_cleaned_test_functions.jsonl/58259
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18517, 4096, 368, 341, 286, 1077, 821, 284, 15898, 370, 876, 286, 1077, 6729, 284, 6729, 486, 56, 9467, 7153, 6570, 486, 2327, 2592, 5357, 12524, 1507, 809, 9467, 38980, 23, 14690, 317, 286, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_export_multi() { let descriptor = "wsh(multi(2,\ [73756c7f/48'/0'/0'/2']tpubDCKxNyM3bLgbEX13Mcd8mYxbVg9ajDkWXMh29hMWBurKfVmBfWAM96QVP3zaUcN51HvkZ3ar4VwP82kC8JZhhux8vFQoJintSpVBwpFvyU3/0/*,\ [f9f62194/48'/0'/0'/2']tpubDDp3ZSH...
rust_cleaned_test_functions.jsonl/21476
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27114, 25133, 368, 341, 286, 1077, 16414, 284, 330, 86, 927, 1255, 7068, 7, 17, 42871, 1383, 508, 22, 18, 22, 20, 21, 66, 22, 69, 14, 19, 23, 20177, 15, 20177, 15, 20177, 17, 660, 790, 392...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tail_bytes_for_funny_files() { // gnu/tests/tail-2/tail-c.sh let ts = TestScenario::new(util_name!()); let at = &ts.fixtures; for &file in &["/proc/version", "/sys/kernel/profiling"] { if !at.file_exists(file) { continue; } let args = ["--bytes...
rust_cleaned_test_functions.jsonl/39310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35471, 12524, 5478, 761, 27297, 10931, 368, 341, 262, 442, 342, 8933, 62468, 5523, 604, 12, 17, 5523, 604, 1786, 2395, 198, 262, 1077, 10591, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_transaction_with_sys_signers() { let tx = Transaction::try_from(&include_bytes!("assets/artifacts/transactions/rt_signers.mvt")[..]) .unwrap(); assert_eq!(tx.signers_count(), 0); assert!(tx.has_root_signer()); assert!(!tx.has_treasury_signer()); let scrip...
rust_cleaned_test_functions.jsonl/13989
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 6615, 20344, 11172, 388, 368, 341, 262, 1077, 9854, 4035, 286, 17869, 486, 1539, 5673, 2099, 997, 12524, 17223, 5160, 55549, 26401, 14, 41844, 14, 3342, 11172, 388, 744, 9708, 17135, 496, 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...
5
#[test] fn test_indices_size_hint() { let mut list = VecList::new(); list.push_back(0); list.push_back(1); list.push_back(-1); list.push_back(2); list.push_back(-2); let mut indices = list.indices(); assert_eq!(indices.size_hint(), (5, Some(5)));...
rust_cleaned_test_functions.jsonl/11496
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 376 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18333, 2368, 45825, 368, 341, 286, 1077, 5206, 1140, 284, 11312, 852, 486, 931, 543, 286, 1140, 2552, 3895, 7, 15, 317, 286, 1140, 2552, 3895, 7, 16, 317, 286, 1140, 2552, 3895, 4080, 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, 1, 1...
1
#[test] fn test_new() { let request = StatusesRequest::new(); assert_eq!( request, StatusesRequest { only_media: false, exclude_replies: false, pinned: false, max_id: None, since_id: None, ...
rust_cleaned_test_functions.jsonl/6365
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 278 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 368, 341, 286, 1077, 1681, 284, 8104, 288, 1900, 486, 931, 543, 286, 2060, 10714, 33673, 310, 1681, 345, 310, 8104, 288, 1900, 341, 394, 1172, 29173, 25, 895, 345, 394, 21687, 1288, 7202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_address() { let keypair = KeyPair::gen_keypair(); let address = pubkey_to_address(keypair.pubkey()); let msg = Message::from_slice(&MESSAGE[..]); let sig = Signature::sign(keypair.privkey(), &msg).unwrap(); assert!(sig.verify_address(&address, &msg)...
rust_cleaned_test_functions.jsonl/46137
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 6744, 368, 341, 286, 1077, 1376, 12670, 284, 5309, 12443, 486, 4370, 3097, 12670, 543, 286, 1077, 2621, 284, 95116, 2346, 6744, 4857, 12670, 47773, 792, 1423, 286, 1077, 3750, 284, 4856, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_co64() { let src_box = Co64Box { version: 0, flags: 0, entries: vec![267, 1970, 2535, 2803, 11843, 22223, 33584], }; let mut buf = Vec::new(); src_box.write_box(&mut buf).unwrap(); assert_eq!(buf.len(), src_box.box_size(...
rust_cleaned_test_functions.jsonl/51359
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11393, 21, 19, 368, 341, 286, 1077, 2286, 10194, 284, 3539, 21, 19, 1611, 341, 310, 2319, 25, 220, 15, 345, 310, 8042, 25, 220, 15, 345, 310, 10695, 25, 7486, 20703, 17, 21, 22, 11, 220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_panic_api_req_builder_not_set_api() { let n = crate::Context::new().unwrap(); let _ = ApiRequestBuilder::new(&n).path("info/info"); }
rust_cleaned_test_functions.jsonl/14807
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 31270, 11697, 17644, 28532, 7913, 2602, 11697, 368, 341, 286, 1077, 308, 284, 17717, 486, 1972, 486, 931, 1005, 15454, 543, 286, 1077, 716, 284, 13443, 1900, 3297, 486, 931, 2099, 77, 568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_memcmp() { use randombytes::randombytes; for i in 0usize..256 { let x = randombytes(i); assert!(memcmp(&x, &x)); let mut y = x.clone(); assert!(memcmp(&x, &y)); y.push(0); assert!(!memcmp(&x, &y)); ...
rust_cleaned_test_functions.jsonl/20151
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12976, 7293, 368, 341, 286, 990, 4194, 9651, 486, 11463, 9651, 401, 286, 369, 600, 304, 220, 15, 51878, 496, 17, 20, 21, 341, 310, 1077, 856, 284, 4194, 9651, 1956, 317, 310, 2060, 10297, 6153...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_read_timeout() { let server = server! { request: b"\ GET /read-timeout HTTP/1.1\r\n\ Host: $HOST\r\n\ User-Agent: $USERAGENT\r\n\ Accept: */*\r\n\ Accept-Encoding: gzip\r\n\ \r\n\ ", response:...
rust_cleaned_test_functions.jsonl/28043
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 575 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 20537, 368, 341, 262, 1077, 3538, 284, 3538, 0, 341, 286, 1681, 25, 293, 83383, 310, 7890, 608, 878, 7246, 411, 10130, 14, 16, 13, 16, 12016, 1699, 5661, 310, 16102, 25, 400, 28687, 1201...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_remove_branch_committed_block() { let mut block_tree = create_block_tree(); block_tree.mark_as_committed(id(2), ()).unwrap(); block_tree.remove_branch(id(1)); }
rust_cleaned_test_functions.jsonl/87728
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 28031, 2965, 5483, 7113, 368, 341, 262, 1077, 5206, 2504, 11663, 284, 1855, 7113, 11663, 543, 262, 2504, 11663, 18406, 11898, 2965, 5483, 3724, 7, 17, 701, 1719, 568, 15454, 543, 262, 2504,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_tz_res_loading_with_validation_valid() -> Result<(), Error> { let _loader = Loader::new_with_tz_resources_and_validation( "/config/data/tzdata/icu/44/le", "/config/data/tzdata/revision.txt", ) .expect("loader is constructed successfully"); ...
rust_cleaned_test_functions.jsonl/22255
{ "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, 528, 89, 4918, 57726, 6615, 19416, 8337, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 716, 8355, 284, 27811, 486, 931, 6615, 528, 89, 35569, 8378, 19416, 1006, 310, 3521, 1676, 13167, 5523, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_trim() { assert_eq!("".trim(), ""); assert_eq!("a".trim(), "a"); assert_eq!(" ".trim(), ""); assert_eq!(" blah ".trim(), "blah"); assert_eq!("\nwut \u{3000} ".trim(), "wut"); assert_eq!(" hey dude ".trim(), "hey dude"); }
rust_cleaned_test_functions.jsonl/2445
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70025, 368, 341, 286, 2060, 10714, 17223, 3263, 10666, 1507, 14498, 286, 2060, 10714, 17223, 64, 3263, 10666, 1507, 330, 64, 797, 286, 2060, 10714, 17223, 262, 5933, 10666, 1507, 14498, 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_duplicate_field_enum() { assert_de_tokens_error::<Enum>( &[ Token::StructVariant { name: "Enum", variant: "Map", len: 3, }, Token::Str("a"), Token::I32(1), Token::Str("a"), ...
rust_cleaned_test_functions.jsonl/129522
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70434, 5013, 31054, 368, 341, 262, 2060, 2259, 28838, 4096, 27638, 10766, 17055, 286, 609, 9640, 310, 9660, 486, 9422, 20746, 341, 394, 829, 25, 330, 10766, 756, 394, 11424, 25, 330, 2227, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_attribute_loclistx() { let mut buf = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; let bytes_written = { let mut writable = &mut buf[..]; leb128::write::unsigned(&mut writable, 4097).expect("should write ok") }; let unit = test_parse_attribute_un...
rust_cleaned_test_functions.jsonl/102059
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 16791, 5560, 84009, 87, 368, 341, 286, 1077, 5206, 6607, 284, 508, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 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_column_writer_default_encoding_support_byte_array() { check_encoding_write_support::<ByteArrayType>( WriterVersion::PARQUET_1_0, true, &[ByteArray::from(vec![1u8])], Some(0), &[Encoding::PLAIN, Encoding::RLE_DICTIONARY, Encoding...
rust_cleaned_test_functions.jsonl/30529
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 608 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8744, 28908, 9993, 37613, 25827, 19737, 3858, 368, 341, 286, 1779, 37613, 9165, 25827, 27638, 18394, 929, 17055, 310, 29404, 5637, 486, 16567, 5757, 1348, 62, 16, 62, 15, 345, 310, 830, 345, 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_get_cred_def() { set_default_and_enable_test_mode(); let (id, cred_def_json) = retrieve_credential_def(CRED_DEF_ID).unwrap(); assert_eq!(&id, CRED_DEF_ID); assert_eq!(&cred_def_json, CRED_DEF_JSON); }
rust_cleaned_test_functions.jsonl/67961
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 73475, 7844, 368, 341, 286, 738, 9993, 8378, 18988, 4452, 7302, 1428, 286, 1077, 320, 307, 11, 4187, 7844, 9455, 8, 284, 17179, 666, 30320, 7844, 3025, 6504, 21736, 3450, 568, 15454, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_assign_ops_early_2() { fold("({a:1}).a = ({a:1}).a + 1", "({a:1}).a = 2"); }
rust_cleaned_test_functions.jsonl/122210
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 66 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20688, 21959, 62, 22140, 62, 17, 368, 341, 1066, 262, 11555, 445, 2306, 64, 25, 16, 16630, 64, 284, 9469, 64, 25, 16, 16630, 64, 488, 220, 16, 497, 330, 2306, 64, 25, 16, 16630, 64, 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
#[test] fn test_signature() -> Result<(), Box<dyn std::error::Error>> { let mut tmp_dir = env::temp_dir(); tmp_dir.push("rpm-builder-test-signature"); fs::create_dir_all(&tmp_dir)?; let mut out_file = tmp_dir.clone(); out_file.push("test.rpm"); let workspace_path = PathBuf::from(env!("C...
rust_cleaned_test_functions.jsonl/134564
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 849 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39859, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 262, 1077, 5206, 4174, 4334, 284, 6105, 486, 3888, 4334, 543, 262, 4174, 4334, 2552, 445, 73782, 71814, 16839, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_convert_key1() { let secret: [u8; 32] = [ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01, ]; let expected: &[u8] = &[ 0x04,0x79,0xbe,0x66,0x7e,...
rust_cleaned_test_functions.jsonl/129811
{ "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, 34910, 3097, 16, 368, 341, 262, 1077, 6234, 25, 508, 84, 23, 26, 220, 18, 17, 60, 284, 2278, 286, 220, 15, 87, 15, 15, 11, 15, 87, 15, 15, 11, 15, 87, 15, 15, 11, 15, 87, 15, 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_transaction_iterator() { let mut blockchain = create_blockchain(); let txs = tx_generator(); create_block(&mut blockchain, txs.take(5).collect()); { let explorer = BlockchainExplorer::new(&blockchain); let block = explorer.block(Height(1)).unwrap(); for t...
rust_cleaned_test_functions.jsonl/70356
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 13491, 368, 341, 262, 1077, 5206, 17944, 284, 1855, 7113, 8819, 543, 262, 1077, 9854, 82, 284, 9854, 25813, 543, 262, 1855, 7113, 2099, 6984, 17944, 11, 9854, 82, 40161, 7, 20, 568, 17384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_display() { use std::str::FromStr; gst::init().unwrap(); format!("{}", crate::VideoColorimetry::from_str("sRGB").unwrap()); format!("{}", crate::VideoFieldOrder::TopFieldFirst); format!("{}", crate::VideoInterlaceMode::Progressive); }
rust_cleaned_test_functions.jsonl/113672
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14825, 368, 341, 286, 990, 1460, 486, 495, 486, 3830, 2580, 401, 286, 43769, 486, 2327, 1005, 15454, 1428, 286, 3561, 79878, 17717, 486, 10724, 1636, 318, 15149, 486, 1499, 2895, 445, 82, 18184, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reverse_in_groups() -> Result<()> { let df = fruits_cars(); let out = df .lazy() .sort("fruits", false) .select(vec![col("B") .reverse() .over(vec![col("fruits")]) .explode() .alias("rev")]) .collect()?; ...
rust_cleaned_test_functions.jsonl/22412
{ "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, 43277, 1243, 21148, 368, 1464, 5714, 71698, 341, 262, 1077, 6764, 284, 25322, 666, 1561, 1428, 262, 1077, 700, 284, 6764, 198, 286, 659, 49013, 741, 286, 659, 6860, 445, 1626, 11797, 497, 895, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_find_roots_cubic() { assert_eq!(find_roots_cubic(1f32, 0f32, 0f32, 0f32), Roots::One([0f32])); match find_roots_cubic(1f64, 0f64, -1f64, 0f64) { Roots::Three(x) => { assert_float_array_eq!(1e-15, x, [-1f64, 0f64, 1f64]); } _ =>...
rust_cleaned_test_functions.jsonl/38613
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 26608, 2412, 666, 41181, 368, 341, 286, 2060, 10714, 10297, 3903, 26608, 2412, 666, 41181, 7, 16, 69, 18, 17, 11, 220, 15, 69, 18, 17, 11, 220, 15, 69, 18, 17, 11, 220, 15, 69, 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_sign_full_profile() -> Result<(), Error> { let store = get_fake_store(); let mut profile: Profile = serde_json::from_str(include_str!("../data/user_profile_null.json"))?; sign_full_profile(&mut profile, &store)?; Ok(()) }
rust_cleaned_test_functions.jsonl/80440
{ "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, 11172, 16372, 13789, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 3553, 284, 633, 56881, 14809, 543, 286, 1077, 5206, 5526, 25, 12329, 4035, 310, 61570, 9455, 486, 1499, 2895, 77863, 2895, 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...
3
#[test] fn test_slave_req_handler_new() { let (p1, _p2) = UnixStream::pair().unwrap(); let endpoint = SocketEndpoint::<MasterReq>::from_stream(p1); let backend = Arc::new(Mutex::new(DummySlaveReqHandler::new())); let mut handler = SlaveReqHandler::new(endpoint, backend); ...
rust_cleaned_test_functions.jsonl/85409
{ "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, 65320, 17644, 10183, 5921, 368, 341, 286, 1077, 320, 79, 16, 11, 716, 79, 17, 8, 284, 46995, 3027, 486, 12670, 1005, 15454, 543, 286, 1077, 14887, 284, 20954, 27380, 27638, 18041, 27234, 6831, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_varargs_function() { let db = Connection::open_in_memory().unwrap(); db.create_scalar_function("my_concat", -1, true, |ctx| { let mut ret = String::new(); for idx in 0..ctx.len() { let s = ctx.get::<String>(idx)?; ret.push_...
rust_cleaned_test_functions.jsonl/41669
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4612, 2116, 9174, 368, 341, 286, 1077, 2927, 284, 11032, 486, 2508, 1243, 19195, 1005, 15454, 543, 286, 2927, 2520, 41652, 9174, 445, 2408, 57478, 497, 481, 16, 11, 830, 11, 760, 3773, 91, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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