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_accessdenied_from_json() { use serde_json::from_str; let raised: Result<(), GoogleJWTError> = Err(from_str(&ACCESSDENIED_JSON).unwrap()); assert_eq!(raised.is_err(), true); match raised { Ok(_) => {} Err(error) => { assert_...
rust_cleaned_test_functions.jsonl/24085
{ "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, 12759, 5183, 1122, 5673, 9455, 368, 341, 286, 990, 61570, 9455, 486, 1499, 2895, 401, 286, 1077, 9226, 25, 5714, 68843, 5085, 55172, 1454, 29, 284, 15495, 17016, 2895, 2099, 55749, 91510, 9326, 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...
2
#[test] fn test_x86_names() { match Capstone::new().x86().mode(x86::ArchMode::Mode32).build() { Ok(cs) => { let reg_id = RegId(1); match cs.reg_name(reg_id) { Some(reg_name) => assert_eq!(reg_name, "ah"), None => assert!(false, "Couldn't get re...
rust_cleaned_test_functions.jsonl/127419
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 679 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3212, 23, 21, 9187, 368, 341, 262, 2432, 8012, 10812, 486, 931, 1005, 87, 23, 21, 1005, 8516, 2075, 23, 21, 486, 18727, 3636, 486, 3636, 18, 17, 568, 5834, 368, 341, 286, 7622, 41153, 8, 589...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sql_of_ast() -> Result<()> { let yaml: &str = r###" Query: items: - Pipeline: - From: employees - Filter: - Ident: country - Raw: "=" - String: USA - Aggregate: by: - Ident: title - Ident: country ...
rust_cleaned_test_functions.jsonl/64112
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1318 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18063, 3575, 48019, 368, 1464, 5714, 71698, 341, 286, 1077, 32246, 25, 609, 495, 284, 435, 14374, 698, 2859, 510, 220, 3589, 510, 262, 481, 40907, 510, 414, 481, 5542, 25, 8256, 198, 414, 481, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_write() { let file = NamedTempFile::new().unwrap(); let mut writer = Writer::to_file(file.path()).unwrap(); writer .write("graph 1", 2, vec![("a", "b", "c"), ("b", "c", "d")]) .unwrap(); writer.flush().unwrap(); let mut reader = ...
rust_cleaned_test_functions.jsonl/109983
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 405 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 368, 341, 286, 1077, 1034, 284, 40459, 12151, 1703, 486, 931, 1005, 15454, 543, 286, 1077, 5206, 6916, 284, 29404, 486, 983, 2458, 4866, 3875, 6011, 15454, 1428, 286, 6916, 198, 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_parse_versionstring() { let s = "1.1.1"; let (p,v) = parse_versionstring(&s.to_owned()).unwrap(); let arch = match std::env::consts::ARCH { "x86" => "x86", "x86_64" => "x64", "aarch64" => "aarch64", _ => "" }; ...
rust_cleaned_test_functions.jsonl/32196
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 519 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 9438, 917, 368, 341, 286, 1077, 274, 284, 330, 16, 13, 16, 13, 16, 876, 286, 1077, 320, 79, 14270, 8, 284, 4715, 9438, 917, 2099, 82, 2389, 51973, 6011, 15454, 543, 286, 1077, 5325, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_fs_negate() { { let mut a = Fs::zero(); a.negate(); assert!(a.is_zero()); } let mut rng = XorShiftRng::from_seed([0x5dbe6259, 0x8d313d76, 0x3237db17, 0xe5bc0654]); for _ in 0..1000 { let mut a = Fs::rand(&mut rng); let mut b = a...
rust_cleaned_test_functions.jsonl/95517
{ "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, 34470, 28209, 349, 368, 341, 262, 341, 286, 1077, 5206, 264, 284, 84619, 486, 14154, 543, 286, 264, 79219, 349, 1428, 286, 2060, 10297, 64, 2079, 19359, 1423, 262, 555, 262, 1077, 5206, 28422, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_sql_function() { use schema::users::dsl::*; let connection = connection_with_sean_and_tess_in_users_table(); connection .execute( "CREATE FUNCTION my_lower(varchar) RETURNS varchar AS $$ SELECT LOWER($1) $$ LANGUAGE SQL", ) .unwrap...
rust_cleaned_test_functions.jsonl/45052
{ "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, 18063, 9174, 368, 341, 262, 990, 10802, 486, 4218, 486, 81874, 79304, 262, 1077, 3633, 284, 3633, 6615, 3453, 276, 8378, 528, 433, 1243, 16348, 5237, 543, 262, 3633, 198, 286, 659, 10257, 1006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_data_frames() { let (mut hconn, mut peer_conn, request_stream_id) = connect_and_send_request(); // Send two data frames with fin let data = &[ // headers 0x01, 0x06, 0x00, 0x00, 0xd9, 0x54, 0x01, 0x33, // 2 complete data frames ...
rust_cleaned_test_functions.jsonl/10948
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 1769, 29319, 368, 341, 286, 1077, 320, 6984, 305, 5148, 11, 5206, 14397, 17241, 11, 1681, 12673, 842, 8, 284, 4564, 8378, 13565, 7893, 1428, 286, 442, 11000, 1378, 821, 14087, 448, 1875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_update_current_user_voice_state() { let route = Route::UpdateCurrentUserVoiceState { guild_id: GUILD_ID }; assert_eq!( route.to_string(), format!("guilds/{guild_id}/voice-states/@me", guild_id = GUILD_ID) ); }
rust_cleaned_test_functions.jsonl/119959
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 11080, 3317, 76765, 4387, 368, 341, 286, 1077, 6021, 284, 9572, 486, 4289, 78257, 51167, 1397, 314, 26411, 842, 25, 479, 18023, 3450, 2605, 286, 2060, 10714, 33673, 310, 6021, 2389, 3904, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transfer_lamports_from_nonce_account_fail() { let mut transaction_context = TransactionContext::new(Vec::new(), 1); let invoke_context = InvokeContext::new_mock(&mut transaction_context, &[]); let from = Pubkey::new_unique(); let from_account = RefCell::new( ...
rust_cleaned_test_functions.jsonl/106205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 693 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35403, 907, 309, 3394, 5673, 48508, 13500, 22121, 368, 341, 286, 1077, 5206, 7745, 8467, 284, 17869, 1972, 486, 931, 49923, 486, 931, 1507, 220, 16, 317, 286, 1077, 19873, 8467, 284, 39667, 1972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_verbose_quiet_output_formats() { #[derive(Deserialize, Serialize)] struct FallbackToDisplay {} impl std::fmt::Display for FallbackToDisplay { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { write!(f, "display") } ...
rust_cleaned_test_functions.jsonl/18441
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 838 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 67921, 11280, 3891, 7645, 68351, 368, 341, 286, 11506, 27098, 7, 64465, 11, 39900, 5563, 286, 2036, 434, 3420, 1249, 7020, 5613, 286, 11605, 1460, 486, 12501, 486, 7020, 369, 434, 3420, 1249, 7020...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_send_prevote() { let sandbox = timestamping_sandbox(); let propose = sandbox.create_propose( ValidatorId(2), Height(1), Round(1), &sandbox.last_hash(), &[], sandbox.s(ValidatorId(2)), ); sandbox.recv(&propose); sandbox.broadca...
rust_cleaned_test_functions.jsonl/75272
{ "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, 13565, 25566, 1272, 368, 341, 262, 1077, 42754, 284, 11441, 287, 643, 31536, 1428, 262, 1077, 29614, 284, 42754, 2520, 21663, 960, 1006, 286, 32566, 764, 7, 17, 1326, 286, 21432, 7, 16, 1326, 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_convert_predicate_unsupported_structure() { // which is not something we know how to do let (comparison, _) = make_host_comparison(); let unsupported = make_or_node( make_and_node(make_field_ref_node("foo"), comparison), make_measurement...
rust_cleaned_test_functions.jsonl/3666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 97474, 4907, 18216, 38283, 368, 341, 1789, 286, 442, 892, 374, 537, 2494, 582, 1414, 1246, 311, 653, 271, 286, 1077, 320, 54705, 11, 27439, 284, 1281, 12848, 90797, 1428, 286, 1077, 40409, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_set_extension_data() { let mut config = Config::new(); let cert = include_str!("../test/apiserver.pem"); let key = include_str!("../test/apiserver-key.pem"); config.add_cert_chain_and_key(cert, key).unwrap(); let data = vec![1, 2, 3]; con...
rust_cleaned_test_functions.jsonl/51682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 251 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 2602, 31035, 1769, 368, 341, 286, 1077, 5206, 2193, 284, 5532, 486, 931, 1428, 286, 1077, 2777, 284, 2924, 2895, 17223, 1244, 1944, 66152, 2836, 49373, 797, 286, 1077, 1376, 284, 2924, 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_comma_end() { assert_eq!(ron::from_str::<(i32, i32)>("(0, 1)").unwrap(), (0, 1)); assert_eq!(ron::from_str::<(i32, i32)>("(0, 1,)").unwrap(), (0, 1)); assert_eq!(ron::from_str::<()>("()"), Ok(())); }
rust_cleaned_test_functions.jsonl/103476
{ "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, 2965, 1728, 6213, 368, 341, 262, 2060, 10714, 10297, 2248, 486, 1499, 2895, 27638, 7, 72, 18, 17, 11, 600, 18, 17, 8, 13211, 7, 15, 11, 220, 16, 63554, 15454, 1507, 320, 15, 11, 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...
1
#[test] fn test_comment_and_sql_stmt() { let conn = Connection::open_in_memory().unwrap(); let stmt = conn.prepare("/*...*/ SELECT 1;").unwrap(); assert_eq!(1, stmt.column_count()); }
rust_cleaned_test_functions.jsonl/57189
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17638, 8378, 18063, 21824, 368, 341, 286, 1077, 4534, 284, 11032, 486, 2508, 1243, 19195, 1005, 15454, 543, 286, 1077, 20020, 284, 4534, 21934, 445, 1057, 1112, 1812, 19094, 220, 16, 26, 1827, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_lux_zone_types() { // Check the zone types in the built cosmogony let cosmogony = create_cosmogony_for_lux(); let zone_type_counts = &cosmogony.meta.stats.zone_type_counts; fn assert_count(counts: &BTreeMap<String, u64>, key: &str, value: u64) { assert_eq!( *c...
rust_cleaned_test_functions.jsonl/22521
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 2200, 28692, 9763, 368, 341, 262, 442, 4248, 279, 10143, 4494, 304, 279, 5798, 55654, 538, 3549, 198, 262, 1077, 55654, 538, 3549, 284, 1855, 61192, 76, 538, 3549, 5478, 907, 2200, 543, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_diff() { let before = image::open("test/before.png"); let after = image::open("test/after.png").unwrap(); let dif = diff(&before.unwrap(), &after); assert_eq!(true, dif.is_ok()); }
rust_cleaned_test_functions.jsonl/104247
{ "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, 15850, 368, 341, 286, 1077, 1573, 284, 2168, 486, 2508, 445, 1944, 3470, 4642, 3508, 797, 286, 1077, 1283, 284, 2168, 486, 2508, 445, 1944, 14, 10694, 3508, 1827, 15454, 543, 286, 1077, 1396, 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
#[test] fn test_valid_rsa_cc() { let notional_time = SystemTime::UNIX_EPOCH + Duration::new(1601000000, 0); let pk = hex!("30818902818100d38b1e6ceb946e0db0751f4cbace3dcb9688b6c25304227b4710c35afb73627e50500f5913e158b621802612d1c75827003703338375237552eb3cd3c12f6ab3604e60c1a2d26bb1fbad206ff023969a90909d6...
rust_cleaned_test_functions.jsonl/86664
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1042 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8337, 82522, 28955, 368, 341, 262, 1077, 537, 3914, 3009, 284, 739, 1462, 486, 99089, 2089, 69945, 488, 21045, 486, 931, 7, 16, 21, 15, 16, 15, 15, 15, 15, 15, 15, 11, 220, 15, 317, 262, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_orientations() { let pos = [5, 6, -4]; let mut orientations: Vec<_> = Orientation::all() .into_iter() .map(|o| o.align(pos)) .collect(); orientations.sort_unstable(); assert_eq!( 24, orientations ...
rust_cleaned_test_functions.jsonl/24728
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 924 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53493, 804, 368, 341, 286, 1077, 1133, 284, 508, 20, 11, 220, 21, 11, 481, 19, 935, 286, 1077, 5206, 88835, 25, 11312, 32399, 29, 284, 54134, 486, 541, 741, 310, 659, 18122, 11723, 741, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_expect_something_missing() { let ctx = TestContext::new(); let cmx1_path = ctx.new_include( "some1.cmx", json!({ "include": [ "foo.cmx", "bar.cmx" ], "program": { "binary": "bin/hello_world" ...
rust_cleaned_test_functions.jsonl/50697
{ "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, 68918, 643, 11532, 40447, 368, 341, 286, 1077, 5635, 284, 3393, 1972, 486, 931, 543, 286, 1077, 9961, 87, 16, 2638, 284, 5635, 4618, 37878, 1006, 310, 330, 14689, 16, 520, 18085, 756, 310, 2951,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_blake2s_mac() { let key: Vec<u8> = (0..32).map(|i| i).collect(); let mut m = Blake2s::new_keyed(32, &key[..]); m.input(&[1, 2, 4, 8]); let expected = [ 0x0e, 0x88, 0xf6, 0x8a, 0xaa, 0x5c, 0x4e, 0xd8, 0xf7, 0xed, 0x28, 0xf8, 0x04, 0x45, 0x01...
rust_cleaned_test_functions.jsonl/92932
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 332 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13141, 726, 17, 82, 22802, 368, 341, 286, 1077, 1376, 25, 11312, 34837, 23, 29, 284, 320, 15, 496, 18, 17, 568, 2186, 22428, 72, 91, 600, 568, 17384, 543, 286, 1077, 5206, 296, 284, 30894, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_quat_new() { let ytheta = deg(45.0); let q0 = Quat::from_rotation_y(ytheta); let t1 = (0.0, (ytheta * 0.5).sin(), 0.0, (ytheta * 0.5).cos()); assert_eq!(q0, t1.into()); let q1 = Quat::from(t1); assert_eq!(t1, q1.into()); assert_eq!(q0, quat(t1.0, t1.1, t1.2, t1.3));...
rust_cleaned_test_functions.jsonl/73789
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 291 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11280, 266, 5921, 368, 341, 262, 1077, 379, 15976, 284, 5254, 7, 19, 20, 13, 15, 317, 262, 1077, 2804, 15, 284, 3406, 266, 486, 1499, 44813, 4178, 7021, 15976, 626, 262, 1077, 259, 16, 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_read_number() { assert_eq!(from_str("+"), Err(SyntaxError(InvalidSyntax, 1, 1))); assert_eq!(from_str("."), Err(SyntaxError(InvalidSyntax, 1, 1))); assert_eq!(from_str("-"), Err(SyntaxError(InvalidNumber, 1, 2))); assert_eq!(from_str("00"), Err(SyntaxError(...
rust_cleaned_test_functions.jsonl/111028
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 523 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 5500, 368, 341, 286, 2060, 10714, 10297, 1499, 2895, 34973, 3975, 256, 15495, 93549, 1454, 7, 7928, 33890, 11, 220, 16, 11, 220, 16, 4945, 286, 2060, 10714, 10297, 1499, 2895, 73133, 701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lazy_agg() { let s0 = DateChunked::parse_from_str_slice( "date", &[ "2020-08-21", "2020-08-21", "2020-08-22", "2020-08-23", "2020-08-22", ], "%Y-%m-%d", ) .into_series(); let s1 = Series::...
rust_cleaned_test_functions.jsonl/13785
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 510 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49646, 83534, 368, 341, 262, 1077, 274, 15, 284, 2631, 28304, 291, 486, 6400, 5673, 2895, 26488, 1006, 286, 330, 1028, 756, 286, 609, 9640, 310, 330, 17, 15, 17, 15, 12, 15, 23, 12, 17, 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_get_mut_poison() { let m = Arc::new(Mutex::new(NonCopy(10))); let m2 = m.clone(); let _ = thread::spawn(move || { let _lock = m2.lock().unwrap(); panic!("test panic in inner thread to poison mutex"); }) .join(); assert!(m.i...
rust_cleaned_test_functions.jsonl/8916
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 29523, 61814, 3335, 368, 341, 286, 1077, 296, 284, 19689, 486, 931, 3189, 9371, 486, 931, 7, 8121, 12106, 7, 16, 15, 4945, 286, 1077, 296, 17, 284, 296, 15997, 543, 286, 1077, 716, 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...
3
#[test] fn test_blocked_index() { let data = [0, 1, 2, 3, 4]; let iter = BlockedIter::<[u32; 2], _>::from_slice(&data); assert_eq!(iter[0], [0, 1]); assert_eq!(iter[1], [2, 3]); }
rust_cleaned_test_functions.jsonl/16483
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 103 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 89223, 3560, 368, 341, 262, 1077, 821, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 262, 1077, 5367, 284, 63996, 8537, 27638, 58, 84, 18, 17, 26, 220, 17, 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, 1, 1...
1
#[test] fn test_bbox2_corner() { let bbox = BBox2::new(Point2::new(1, 0), Point2::new(0, 1)); assert!(bbox.corner(0) == Point2::new(0, 0)); assert!(bbox.corner(1) == Point2::new(1, 0)); assert!(bbox.corner(2) == Point2::new(0, 1)); assert!(bbox.corner(3) == Point2::new(1,...
rust_cleaned_test_functions.jsonl/133228
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 179 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59390, 17, 66884, 368, 341, 286, 1077, 29749, 284, 425, 1611, 17, 486, 931, 32737, 17, 486, 931, 7, 16, 11, 220, 15, 701, 5126, 17, 486, 931, 7, 15, 11, 220, 16, 1106, 286, 2060, 10297, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ping() { assert_done(move || { let request = Request::new(Method::Ping, None, None); let database = MockDatabase::default(); let data = HandlerData::new(database, Buckets::default()); let response = Response::default(); assert!(...
rust_cleaned_test_functions.jsonl/50363
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 231 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71661, 368, 341, 286, 2060, 24390, 34081, 1369, 341, 310, 1077, 1681, 284, 6145, 486, 931, 35419, 486, 69883, 11, 2240, 11, 2240, 317, 310, 1077, 4625, 284, 14563, 5988, 486, 2258, 543, 310, 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...
2
#[test] fn test_metadata_tensor_with_dataclass() { let md = blank_with_plugin_content( "rando", pb::DataClass::Tensor, Bytes::from_static(b"preserved!"), ); let v = SummaryValue(Box::new(Value::Tensor(pb::TensorProto { ...
rust_cleaned_test_functions.jsonl/6201
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 334 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22220, 23188, 6615, 1769, 1040, 368, 341, 310, 1077, 10688, 284, 10113, 6615, 23110, 7495, 1006, 394, 330, 81, 4883, 756, 394, 17310, 486, 1043, 1957, 486, 25336, 345, 394, 30024, 486, 1499, 25360...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_range_backwards_1() { let map: BTreeMap<_, _> = (0..5).map(|i| (i, i)).collect(); map.range((Included(3), Included(2))); }
rust_cleaned_test_functions.jsonl/49386
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 75 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 3895, 4014, 62, 16, 368, 341, 262, 1077, 2415, 25, 425, 6533, 2227, 27, 6878, 716, 29, 284, 320, 15, 496, 20, 568, 2186, 22428, 72, 91, 320, 72, 11, 600, 4579, 17384, 543, 262, 2415, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_snippet_with_term_not_in_text() { let text = "a b c d"; let mut terms = BTreeMap::new(); terms.insert(String::from("z"), 1.0); let fragments = search_fragments(&From::from(SimpleTokenizer), &text, &terms, 3); assert_eq!(fragments.len(), 0); let...
rust_cleaned_test_functions.jsonl/608
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28022, 21581, 6615, 17464, 7913, 1243, 4326, 368, 341, 286, 1077, 1467, 284, 330, 64, 293, 272, 294, 3302, 286, 1077, 5206, 3793, 284, 425, 6533, 2227, 486, 931, 543, 286, 3793, 7030, 2242, 486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decode_tbh() { assert_eq!( decode_32(0xe8dff013), Instruction::TBH { params: Reg2RnRmParams { rn: Reg::PC, rm: Reg::R3, } } ); }
rust_cleaned_test_functions.jsonl/64873
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 23481, 71, 368, 341, 14808, 262, 2060, 10714, 33673, 286, 16895, 62, 18, 17, 7, 15, 8371, 23, 98714, 15, 16, 18, 1326, 286, 29051, 486, 31160, 39, 341, 310, 3628, 25, 3184, 17, 49, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pay_for_credential_with_sufficient_funds() { init!("true"); let cred = create_credential_with_price(1); assert!(cred.is_payment_required()); let payment = serde_json::to_string(&cred.submit_payment().unwrap().0).unwrap(); assert!(payment.len() > 50); }
rust_cleaned_test_functions.jsonl/82313
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28925, 5478, 666, 30320, 6615, 643, 26683, 761, 42950, 368, 341, 286, 2930, 17223, 1866, 797, 286, 1077, 4187, 284, 1855, 666, 30320, 6615, 9040, 7, 16, 317, 286, 2060, 10297, 10844, 2079, 26696, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_generate_msg() { let _setup = SetupMocks::init(); let handle = _vcx_disclosed_proof_create_with_request_c_closure(::utils::constants::PROOF_REQUEST_JSON).unwrap(); let cb = return_types_u32::Return_U32_STR::new().unwrap(); assert_eq!(vcx_disclosed_proof_get_proo...
rust_cleaned_test_functions.jsonl/104427
{ "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, 48851, 6483, 368, 341, 286, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 1428, 286, 1077, 3705, 284, 716, 7362, 87, 37745, 9259, 86757, 8657, 6615, 7893, 666, 72823, 38732, 6031, 486, 15763, 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_duplicate_shred_round_trip() { let mut rng = rand::thread_rng(); let leader = Arc::new(Keypair::new()); let (slot, parent_slot, fec_rate, reference_tick, version) = (53084024, 53084023, 0.0, 0, 0); let shredder = Shredder::new( slot, ...
rust_cleaned_test_functions.jsonl/21874
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 802 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70434, 3712, 1151, 29896, 63883, 368, 341, 286, 1077, 5206, 28422, 284, 10382, 486, 4528, 66849, 543, 286, 1077, 7653, 284, 19689, 486, 931, 7, 6608, 1082, 1310, 486, 931, 1423, 286, 1077, 320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_park_timeout_unpark_called_other_thread() { for _ in 0..10 { let th = thread::current(); let _guard = thread::spawn(move || { super::sleep(Duration::from_millis(50)); th.unpark(); }); thread::park_timeout(D...
rust_cleaned_test_functions.jsonl/8574
{ "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, 620, 838, 20537, 4907, 28736, 27859, 30456, 10814, 368, 341, 286, 369, 716, 304, 220, 15, 496, 16, 15, 341, 310, 1077, 270, 284, 4516, 486, 3231, 1428, 310, 1077, 716, 26098, 284, 4516, 486, 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...
3
#[test] fn test_bitwise_xor() { let s = to_chars("^"); let cur = &mut 0; expect_next_token(&s, cur, Token::BitwiseXor); }
rust_cleaned_test_functions.jsonl/21014
{ "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, 13996, 4482, 76462, 368, 341, 286, 1077, 274, 284, 311, 37418, 48654, 797, 286, 1077, 2847, 284, 609, 6984, 220, 15, 280, 286, 1720, 11257, 6458, 2099, 82, 11, 2847, 11, 9660, 486, 8344, 4482, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_tick_hash_count() { let hashes_per_tick = 10; let tx = VersionedTransaction::default(); let no_hash_tx_entry = Entry { transactions: vec![tx.clone()], ..Entry::default() }; let single_hash_tx_entry = Entry { tran...
rust_cleaned_test_functions.jsonl/1637
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 43612, 8950, 3180, 368, 341, 286, 1077, 50257, 5678, 43612, 284, 220, 16, 15, 280, 286, 1077, 9854, 284, 6079, 291, 8070, 486, 2258, 1428, 286, 1077, 902, 8950, 17805, 9078, 284, 15788, 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_wrap_return_type() { check_fix( r#" //- /main.rs crate:main deps:core use core::result::Result::{self, Ok, Err}; fn div(x: i32, y: i32) -> Result<i32, ()> { if y == 0 { return Err(()); } x / y<|> } //- /core/lib.rs crate:core pub mod result { pub enum...
rust_cleaned_test_functions.jsonl/11417
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 294 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38550, 12511, 1819, 368, 341, 286, 1779, 36060, 1006, 310, 435, 2, 698, 61463, 608, 3817, 25638, 17717, 25, 3817, 48178, 25, 2153, 198, 810, 6200, 486, 1382, 486, 2077, 22964, 721, 11, 7622, 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_datetime_is_send() { use std::thread; // UTC is known to be `Send`. let a = Utc::now(); thread::spawn(move || { let _ = a; }).join().unwrap(); }
rust_cleaned_test_functions.jsonl/17726
{ "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, 28943, 6892, 13565, 368, 341, 286, 990, 1460, 486, 4528, 401, 286, 442, 27403, 374, 3881, 311, 387, 1565, 11505, 18639, 286, 1077, 264, 284, 547, 10413, 486, 3328, 543, 286, 4516, 486, 46087, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
#[test] fn test_can_validate_vector_fields() { let instance = ParentWithVectorOfChildren { child: vec![ Child { value: "valid".to_string() }, Child { value: String::new() }, Child { value: "valid".to_string() }, Child { value: String::new() }, ...
rust_cleaned_test_functions.jsonl/782
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 793 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27421, 42681, 12247, 12132, 368, 341, 262, 1077, 2867, 284, 17022, 2354, 3781, 2124, 11539, 341, 286, 1682, 25, 7486, 90515, 310, 9391, 314, 897, 25, 330, 1891, 3263, 983, 3904, 368, 1153, 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...
4
#[test] fn test_basics() { let mut s = ByteString::from_static("test"); s.trimdown(); assert_eq!(s, "test"); assert_eq!(s, *"test"); assert_eq!(s, "test".to_owned()); assert_eq!(s.as_slice(), b"test"); assert_eq!(s.as_bytes(), &Bytes::copy_from_slice(b"tes...
rust_cleaned_test_functions.jsonl/65280
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 67981, 368, 341, 286, 1077, 5206, 274, 284, 95302, 486, 1499, 25360, 445, 1944, 797, 286, 274, 16419, 2923, 543, 286, 2060, 10714, 10297, 82, 11, 330, 1944, 797, 286, 2060, 10714, 10297, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_compile_shift_left_wrap_f() { let compiled = bitwise::compile_shift_left_wrap("F".to_string()); assert_eq!(compiled.len(), 1); assert_eq!(compiled[0], 0b10100111); }
rust_cleaned_test_functions.jsonl/100611
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74170, 22230, 9579, 38550, 761, 368, 341, 262, 1077, 19697, 284, 97970, 486, 20433, 22230, 9579, 38550, 445, 37, 3263, 983, 3904, 5231, 262, 2060, 10714, 10297, 50845, 19406, 1507, 220, 16, 317, 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
#[test] fn test_edge_exists() { let left_image = [[244, 172, 168, 192].to_vec(), [83, 248, 38, 204].to_vec()].to_vec(); let right_image = [[218, 138, 65, 18].to_vec(), [225, 7, 114, 127].to_vec()].to_vec(); let diffusion_graph = DiffusionGraph::initialize(left_image, right_image, 4, 1.);...
rust_cleaned_test_functions.jsonl/70579
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 526 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17932, 9766, 368, 341, 286, 1077, 2115, 4954, 284, 4318, 17, 19, 19, 11, 220, 16, 22, 17, 11, 220, 16, 21, 23, 11, 220, 16, 24, 17, 936, 983, 13251, 1507, 508, 23, 18, 11, 220, 17, 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_decoding() { use rustc_serialize::json; let bytestr = "\"A099\""; let bc: BytesContainer = json::decode(bytestr).unwrap(); assert_eq!(bc.get(), &vec![160, 153]); let bytestr = "\"\""; let bc: BytesContainer = json::decode(bytestr).unwrap(); assert_eq!(bc.get(), &vec...
rust_cleaned_test_functions.jsonl/77393
{ "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, 13783, 3700, 368, 341, 262, 990, 23071, 66, 88686, 486, 2236, 401, 262, 1077, 553, 1944, 81, 284, 15898, 32, 15, 24, 24, 95349, 262, 1077, 17916, 25, 30024, 4502, 284, 2951, 486, 18196, 32028, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_brackets_match() { let expression = "(1 + 2) * 3 - [4 / (5 - 6)] * 7 + {8 - [9 * (10 + 11)] * 12}"; assert!(cdll::LinkedList::is_brackets_match(expression)); let expression = "(1 + 2) * 3 - [4 / (5 - 6)] * 7 + {8 - [9 * (10 + 11)] * 12"; assert!(!cdll::LinkedL...
rust_cleaned_test_functions.jsonl/23389
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 17682, 18382, 10708, 368, 341, 286, 1077, 7493, 284, 11993, 16, 488, 220, 17, 8, 353, 220, 18, 481, 508, 19, 608, 320, 20, 481, 220, 21, 7252, 353, 220, 22, 488, 314, 23, 481, 508, 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_protocol_to_channel_type() { let empty = ProtocolDescriptor { protocol: ProtocolIdentifier::L2Cap, params: vec![] }; assert_eq!(None, protocol_to_channel_type(&vec![empty])); let descriptor = ProtocolDescriptor { protocol: ProtocolIdentifier::L2Cap, ...
rust_cleaned_test_functions.jsonl/80558
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 471 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34880, 2346, 14571, 1819, 368, 341, 286, 1077, 4287, 284, 24572, 11709, 314, 11507, 25, 24572, 8714, 486, 43, 17, 12903, 11, 3628, 25, 7486, 0, 1294, 2605, 286, 2060, 10714, 10297, 4064, 11, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_f32() { let input: [u8; 28] = [ 0x52, 0x06, 0x9e, 0xbf, // 0xbf9e0652 -1.2345679 0x4e, 0x61, 0x3c, 0x4b, // 0x4b3c614e 12345678 0x0f, 0x9b, 0x94, 0xfe, // 0xfe949b0f -9.876543E37 0x00, 0x00, 0x00, 0x80, // 0x80000000 -0.0 0xff, 0xff, 0xff, 0x7f, // 0x7...
rust_cleaned_test_functions.jsonl/48805
{ "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, 761, 18, 17, 368, 341, 262, 1077, 1946, 25, 508, 84, 23, 26, 220, 17, 23, 60, 284, 2278, 286, 220, 15, 87, 20, 17, 11, 220, 15, 87, 15, 21, 11, 220, 15, 87, 24, 68, 11, 220, 15, 4765...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_display_fromstr() { #[serde_as] #[derive(Debug, Serialize, Deserialize, PartialEq)] struct Struct { #[serde_as(as = "DisplayFromStr")] value: u32, }; is_equal(Struct { value: 123 }, r#"{"value":"123"}"#); }
rust_cleaned_test_functions.jsonl/23041
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14825, 5673, 495, 368, 341, 262, 11506, 47024, 11898, 921, 262, 11506, 27098, 42618, 11, 39900, 11, 48440, 11, 55039, 5563, 262, 2036, 16139, 341, 286, 11506, 47024, 11898, 36951, 284, 330, 7020, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mul() { let a = Vec1::new(3.0) * 2.0; assert_eq!(a.x, 6.0); let b = 2.0f64 * Vec1::new(3.0); // TODO: Why is the f64 needed? assert_eq!(b.x, 6.0); }
rust_cleaned_test_functions.jsonl/29307
{ "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, 24944, 368, 341, 310, 1077, 264, 284, 11312, 16, 486, 931, 7, 18, 13, 15, 8, 353, 220, 17, 13, 15, 280, 310, 2060, 10714, 10297, 64, 1993, 11, 220, 21, 13, 15, 317, 310, 1077, 293, 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_xxhash32_function() -> Result<()> { let tests = vec![ScalarFunctionTest { name: "valid input", columns: vec![Series::from_data(["testing"])], expect: Series::from_data([210358520u32]), error: "", }]; test_scalar_functions("xxhash32", &tests) }
rust_cleaned_test_functions.jsonl/130774
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 95968, 8296, 18, 17, 9174, 368, 1464, 5714, 71698, 341, 262, 1077, 7032, 284, 7486, 20703, 20639, 5152, 2271, 341, 286, 829, 25, 330, 1891, 1946, 756, 286, 8147, 25, 7486, 20703, 25544, 486, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_big5_decode_all() { let input = include_bytes!("test_data/big5_in.txt"); let expectation = include_str!("test_data/big5_in_ref.txt"); let (cow, had_errors) = BIG5.decode_without_bom_handling(input); assert!(had_errors, "Should have had errors."); assert_eq...
rust_cleaned_test_functions.jsonl/20631
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 158 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36386, 20, 15227, 5705, 368, 341, 286, 1077, 1946, 284, 2924, 12524, 17223, 1944, 1769, 90936, 20, 1243, 3909, 797, 286, 1077, 30193, 284, 2924, 2895, 17223, 1944, 1769, 90936, 20, 1243, 7793, 390...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_equal_vote_quorum_validators() { const NUM_SIGNERS: u8 = 7; // Generate NUM_SIGNERS random signers. let validator_signers: Vec<ValidatorSigner> = (0..NUM_SIGNERS) .map(|i| ValidatorSigner::random([i; 32])) .collect(); let dummy_struct = Tes...
rust_cleaned_test_functions.jsonl/118881
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1763 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11478, 54360, 11280, 33006, 8337, 2973, 368, 341, 286, 733, 15943, 36727, 4321, 25, 575, 23, 284, 220, 22, 280, 286, 442, 19813, 15943, 36727, 4321, 4194, 1841, 388, 624, 286, 1077, 22935, 11172, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_4e() { let mut msg = String::new(); for _ in 0..257 { msg.push('a'); } let mut data: Vec<u8> = vec![]; data.write_u32::<byteorder::BigEndian>(msg.len() as u32); data.extend_from_slice(msg.as_bytes()); let mli: &dyn MLI = &MLI4...
rust_cleaned_test_functions.jsonl/76537
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 272 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 19, 68, 368, 341, 286, 1077, 5206, 3750, 284, 923, 486, 931, 543, 286, 369, 716, 304, 220, 15, 496, 17, 20, 22, 341, 310, 3750, 2552, 492, 64, 1157, 286, 456, 286, 1077, 5206, 821, 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...
2
#[test] fn test_now() { let pairs = vec![ (monotonic_raw_now(), monotonic_raw_now()), (monotonic_now(), monotonic_now()), (monotonic_coarse_now(), monotonic_coarse_now()), ]; for (early_time, late_time) in pairs { // The monotonic clocktime...
rust_cleaned_test_functions.jsonl/21943
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 312 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20813, 368, 341, 286, 1077, 13530, 284, 7486, 90515, 310, 320, 1645, 354, 14011, 16067, 20813, 1507, 77216, 14011, 16067, 20813, 14702, 310, 320, 1645, 354, 14011, 20813, 1507, 77216, 14011, 20813, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_command_from_comment() { assert_eq!( Command::from_comment("noqa+", &[]), Ok(Some(Command::User(UserCommand::SkipQaStatus(true)))) ); assert_eq!( Command::from_comment("noqa-", &[]), Ok(Some(Command::User(UserCommand::SkipQa...
rust_cleaned_test_functions.jsonl/122346
{ "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, 10811, 5673, 17638, 368, 341, 286, 2060, 10714, 33673, 310, 7348, 486, 1499, 17638, 445, 2152, 15445, 44056, 609, 1294, 1326, 310, 7622, 65405, 41422, 486, 1474, 13087, 4062, 486, 35134, 48, 64, 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_part1_1() { let text = "16 10 15 5 1 11 7 19 6 12 4"; let bag = Bag::from(&text); assert_eq!(bag.differences(), (7, 5)); }
rust_cleaned_test_functions.jsonl/48480
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 16, 62, 16, 368, 341, 286, 1077, 1467, 284, 330, 16, 21, 198, 16, 15, 198, 16, 20, 198, 20, 198, 16, 198, 16, 16, 198, 22, 198, 16, 24, 198, 21, 198, 16, 17, 198, 19, 876, 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_account_keys_segment_iter() { let (message, keys) = check_test_loaded_message(); let expected_segments = vec![ vec![keys[0], keys[1], keys[2], keys[3]], vec![keys[4]], vec![keys[5]], ]; let mut iter = message.account_keys_segm...
rust_cleaned_test_functions.jsonl/34138
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13500, 12631, 28061, 11723, 368, 341, 286, 1077, 320, 1994, 11, 6894, 8, 284, 1779, 4452, 49205, 6462, 1428, 286, 1077, 3601, 55735, 284, 7486, 90515, 310, 7486, 20703, 10563, 58, 15, 1125, 6894, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_generate_binary_mnt4753_mht_empty_nodes() { let merkle_arity = 2; let max_height = 32; let empty_nodes = generate_mht_empty_nodes::<Fr, MNT4PoseidonHash>(merkle_arity, max_height, Fr::zero()); assert_eq!(empty_nodes.len(), max_height); let pa...
rust_cleaned_test_functions.jsonl/5825
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 271 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 31761, 717, 406, 19, 22, 20, 18, 717, 426, 15124, 14896, 368, 341, 286, 1077, 4704, 23089, 62, 10748, 284, 220, 17, 280, 286, 1077, 1932, 9561, 284, 220, 18, 17, 401, 286, 1077, 4287, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bank_hash() { use BankHashVerificationError::*; solana_logger::setup(); let db = AccountsDB::new(Vec::new()); let key = Pubkey::default(); let some_data_len = 0; let some_slot: Slot = 0; let account = Account::new(1, some_data_len, ...
rust_cleaned_test_functions.jsonl/33691
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 662 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 35733, 8950, 368, 341, 286, 990, 8547, 6370, 62339, 1454, 56162, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 2927, 284, 40655, 3506, 486, 931, 49923, 486, 931, 5231, 286, 1077, 1376...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_half_word_read() { const ADDR: u32 = 0x02; let mut mem = Memory::new(1024); // mem[ADDR] = 0x1712; mem.mem[ADDR as usize] = 0x12; mem.mem[(ADDR + 1) as usize] = 0x17; assert_eq!(0x1712, mem.read_half_word(ADDR).unwrap()); }
rust_cleaned_test_functions.jsonl/92780
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40626, 13533, 6443, 368, 341, 286, 733, 80514, 25, 575, 18, 17, 284, 220, 15, 87, 15, 17, 280, 286, 1077, 5206, 1833, 284, 13850, 486, 931, 7, 16, 15, 17, 19, 626, 286, 442, 1833, 58, 2921...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_join() { let many = vec![1,2,3]; let one = vec![1]; let none: Vec<usize> = vec![]; assert_eq!(many.iter().join(", ").as_slice(), "1, 2, 3"); assert_eq!( one.iter().join(", ").as_slice(), "1"); assert_eq!(none.iter().join(", ").as_slice(), ""); }
rust_cleaned_test_functions.jsonl/4920
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31017, 368, 341, 220, 1077, 1657, 284, 7486, 20703, 16, 11, 17, 11, 18, 935, 220, 1077, 825, 220, 284, 7486, 20703, 16, 935, 220, 1077, 6857, 25, 11312, 90244, 29, 284, 7486, 0, 40901, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_authorizer() -> Result<()> { use super::{AuthAction, AuthContext, Authorization}; let db = Connection::open_in_memory()?; db.execute_batch("CREATE TABLE foo (public TEXT, private TEXT)") .unwrap(); let authorizer = move |ctx: AuthContext<'_>| match c...
rust_cleaned_test_functions.jsonl/34789
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 610 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22938, 3135, 368, 1464, 5714, 71698, 341, 286, 990, 2256, 22964, 5087, 2512, 11, 7366, 1972, 11, 30562, 2315, 286, 1077, 2927, 284, 11032, 486, 2508, 1243, 19195, 94136, 286, 2927, 7769, 14534, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let packet = (-1i8).to_le_bytes(); let result = Flag::parse(&packet[..]); assert_eq!(result, Ok((&[][..], Flag::Unknown))); let packet = 0i8.to_le_bytes(); let result = Flag::parse(&packet[..]); assert_eq!(result, Ok((&[][..], Flag::None...
rust_cleaned_test_functions.jsonl/5315
{ "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, 21039, 368, 341, 286, 1077, 10151, 284, 10293, 16, 72, 23, 568, 983, 11751, 12524, 543, 286, 1077, 1102, 284, 22666, 486, 6400, 2099, 24829, 95874, 2558, 286, 2060, 10714, 10297, 1382, 11, 7622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_install_mode_directories() { let (at, mut ucmd) = at_and_ucmd!(); let component = "component"; let directories_arg = "-d"; let mode_arg = "--mode=333"; ucmd.arg(directories_arg) .arg(component) .arg(mode_arg) .succeeds() .no_stderr(); ass...
rust_cleaned_test_functions.jsonl/47023
{ "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, 34245, 7302, 32871, 2433, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 3692, 284, 330, 8571, 876, 262, 1077, 28625, 6057, 284, 6523, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_float_formatting() { test_case!("{:.10}", 3.1415); test_case!("{:.*}", 10, 3.1415); }
rust_cleaned_test_functions.jsonl/2746
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 63 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17586, 8955, 1280, 368, 341, 262, 1273, 19096, 88928, 16976, 16, 15, 9545, 220, 18, 13, 16, 19, 16, 20, 317, 262, 1273, 19096, 88928, 25, 4908, 9545, 220, 16, 15, 11, 220, 18, 13, 16, 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
#[test] fn test_should_retransmit_and_persist() { let me_id = solana_sdk::pubkey::new_rand(); let leader_keypair = Arc::new(Keypair::new()); let leader_pubkey = leader_keypair.pubkey(); let bank = Arc::new(Bank::new( &create_genesis_config_with_leader(100, &leader_pub...
rust_cleaned_test_functions.jsonl/22325
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1695 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43378, 1288, 1458, 1763, 8378, 620, 4975, 368, 341, 286, 1077, 752, 842, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 7653, 3097, 12670, 284, 19689, 486, 931, 7, 6608...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nested_arrays() { let s = r#"--- a: - b - - c - d - - e - f"#; let docs = YamlLoader::load_from_str(&s).unwrap(); let doc = &docs[0]; let mut writer = String::new(); { let mut emitter = YamlEmitter::new(&mut writer); ...
rust_cleaned_test_functions.jsonl/44449
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66279, 68983, 368, 341, 286, 1077, 274, 284, 435, 55543, 10952, 64, 510, 220, 481, 293, 198, 220, 481, 481, 272, 198, 262, 481, 294, 198, 262, 481, 481, 384, 198, 414, 481, 282, 57676, 401, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bytes_into_vec() { for size in 0..ILINT_SAMPLE_BIN.len() { let mut reader = ByteArrayReader::new(&ILINT_SAMPLE_BIN); let mut vec: Vec<u8> = Vec::new(); vec.resize(1234, 1); match reader.deserialize_bytes_into_vec(size, &mut vec) { Ok((...
rust_cleaned_test_functions.jsonl/25685
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 339 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 12524, 45514, 13251, 368, 341, 262, 369, 1379, 304, 220, 15, 496, 1715, 3221, 41439, 55720, 19406, 368, 341, 286, 1077, 5206, 6604, 284, 32920, 5062, 486, 931, 2099, 1715, 3221, 41439...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bitxor() { assert_eq!(u7(0x7F) ^ u7(42), u7(85)); assert_eq!(&u7(0) ^ u7(42), u7(42)); assert_eq!(u7(0x10) ^ &u7(0x1), u7(0x11)); assert_eq!(&u7(11) ^ &u7(1), u7(10)); }
rust_cleaned_test_functions.jsonl/112540
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 71311, 368, 341, 286, 2060, 10714, 10297, 84, 22, 7, 15, 87, 22, 37, 8, 6306, 575, 22, 7, 19, 17, 701, 575, 22, 7, 23, 20, 1106, 286, 2060, 10714, 0, 2099, 84, 22, 7, 15, 8, 630...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_convert_country_from_str() { let country = Country::from_str("JP"); assert_eq!(country.unwrap(), Country::Japan); let unknown_country = Country::from_str("not exist enum"); assert_eq!(unknown_country.is_err(), true); }
rust_cleaned_test_functions.jsonl/87166
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 28106, 5673, 2895, 368, 341, 262, 1077, 3146, 284, 14106, 486, 1499, 2895, 445, 27188, 797, 262, 2060, 10714, 10297, 11141, 55395, 1507, 14106, 486, 48752, 317, 262, 1077, 9788, 28106, 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
#[test] fn test_delete_one_token() { let api = api_privilege(); let req = Request::new(Method::Delete) .with_path_segs(&["foo"]) .with_query("index=0") .with_header(Authorization(Bearer { token: "POWER!".to_owned() })); let _ = test_ok(&api, req); // The comment should be...
rust_cleaned_test_functions.jsonl/125377
{ "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, 11353, 11667, 6458, 368, 341, 262, 1077, 6330, 284, 6330, 24726, 42769, 543, 262, 1077, 4232, 284, 6145, 486, 931, 35419, 486, 6435, 340, 286, 659, 4197, 2638, 3453, 5857, 2099, 1183, 7975, 14108,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bpf_loader_upgradeable_write() { let buffer_address = Pubkey::new_unique(); let buffer_account = AccountSharedData::new_ref( 1, UpgradeableLoaderState::buffer_len(9).unwrap(), &bpf_loader_upgradeable::id(), ); // Case: Not init...
rust_cleaned_test_functions.jsonl/35382
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4158 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 15897, 22139, 67794, 480, 9165, 368, 341, 286, 1077, 4147, 6744, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 4147, 13500, 284, 8615, 16997, 1043, 486, 931, 7793, 1006, 310, 220, 16, 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_increment_three_digits_overflow() { // Given: let mut actual = Counter::from(vec![UINT_MAX, UINT_MAX, 42]); // When: actual.increment(); // Then: let expected = Counter::from(vec![UINT_MIN, UINT_MIN, 43]); asse...
rust_cleaned_test_functions.jsonl/79513
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51482, 50016, 41432, 79073, 368, 341, 310, 442, 16246, 510, 310, 1077, 5206, 5042, 284, 19735, 486, 1499, 25592, 20703, 25712, 6806, 11, 13661, 6806, 11, 220, 19, 17, 10149, 310, 442, 3197, 510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_expand() { let items = vec![ Path::new("a/b/c"), Path::new("a/d"), ]; //0 a/ //1 b/ //2 c //3 d let mut tree = FileTreeItems::new(&items, &BTreeSet::new()).unwrap(); tree.collapse(1, false); let visibles = get_visibles(&tree); assert_eq!( visibles...
rust_cleaned_test_functions.jsonl/129793
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 306 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 67875, 368, 341, 197, 10217, 3589, 284, 7486, 90515, 298, 69640, 486, 931, 445, 64, 3470, 2899, 3975, 715, 298, 69640, 486, 931, 445, 64, 3446, 3975, 5872, 197, 197, 4821, 197, 197, 322, 15, 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_loop_break_continue() { let t = BreakContinue { values: &[1, 2, 3, 4, 5], }; assert_eq!(t.render().unwrap(), "x1yx2yx3yx4yx5y"); let t = BreakContinue { values: &[1, 2, 3, 10, 4, 5], }; assert_eq!(t.render().unwrap(), "x1yx2yx3yx10"); let t = BreakCo...
rust_cleaned_test_functions.jsonl/100233
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17198, 39494, 75297, 368, 341, 262, 1077, 259, 284, 15623, 23526, 341, 286, 2750, 25, 44590, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 1259, 262, 2605, 262, 2060, 10714, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_actions() { let input = &r#"{ file "*.xml" exec "ls files" }"# .chars() .collect::<Vec<_>>(); let r = parse_actions().parse(&input); assert_eq!( r, Ok(vec![ Action::File("*.xm...
rust_cleaned_test_functions.jsonl/50001
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 25368, 368, 341, 286, 1077, 1946, 284, 609, 81, 2, 14129, 715, 310, 1034, 59128, 6455, 698, 310, 3883, 330, 4730, 3542, 1, 715, 286, 335, 1, 4956, 286, 659, 19255, 741, 286, 659, 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...
1
#[test] fn test_from_arg_matches_size() { let argv = vec!["lsd", "--sizesort"]; let matches = app::build().get_matches_from_safe(argv).unwrap(); assert_eq!( Some(SortColumn::Size), SortColumn::from_arg_matches(&matches) ); }
rust_cleaned_test_functions.jsonl/54292
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 6057, 38344, 2368, 368, 341, 286, 1077, 10213, 284, 7486, 0, 1183, 4730, 67, 497, 14482, 53155, 371, 6332, 286, 1077, 9071, 284, 906, 486, 5834, 1005, 455, 38344, 5673, 34067, 15329, 568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fs_repr_is_odd() { assert!(!FsRepr::from(0).is_odd()); assert!(FsRepr::from(0).is_even()); assert!(FsRepr::from(1).is_odd()); assert!(!FsRepr::from(1).is_even()); assert!(!FsRepr::from(324834872).is_odd()); assert!(FsRepr::from(324834872).is_even()); assert!(FsRepr::f...
rust_cleaned_test_functions.jsonl/95501
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34470, 68535, 6892, 74668, 368, 341, 262, 2060, 0, 3471, 48300, 693, 649, 486, 1499, 7, 15, 568, 285, 74668, 1423, 262, 2060, 10297, 48300, 693, 649, 486, 1499, 7, 15, 568, 285, 68347, 1423, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_zero_signatures() { solana_logger::setup(); let (genesis_block, mint_keypair) = GenesisBlock::new(500); let mut bank = Bank::new(&genesis_block); bank.fee_calculator.lamports_per_signature = 2; let key = Keypair::new(); let mut transfer_instructio...
rust_cleaned_test_functions.jsonl/41906
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 353 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19359, 11172, 2789, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 320, 77894, 7113, 11, 28337, 3097, 12670, 8, 284, 40788, 4713, 486, 931, 7, 20, 15, 15, 317, 286, 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...
1
#[test] fn test_split_first() { let mut a = vec![11]; let b: &[i32] = &[]; assert!(b.split_first().is_none()); assert_eq!(a.split_first(), Some((&11, b))); a = vec![11, 12]; let b: &[i32] = &[12]; assert_eq!(a.split_first(), Some((&11, b))); }
rust_cleaned_test_functions.jsonl/12850
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 12978, 368, 341, 262, 1077, 5206, 264, 284, 7486, 20703, 16, 16, 935, 262, 1077, 293, 25, 44590, 72, 18, 17, 60, 284, 609, 15078, 262, 2060, 10297, 65, 5289, 12978, 1005, 285, 31488, 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_lag_return_type() -> Result<()> { let fun = WindowFunction::from_str("lag")?; let observed = return_type(&fun, &[DataType::Utf8])?; assert_eq!(DataType::Utf8, observed); let observed = return_type(&fun, &[DataType::Float64])?; assert_eq!(DataType::Float64...
rust_cleaned_test_functions.jsonl/119622
{ "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, 907, 351, 12511, 1819, 368, 1464, 5714, 71698, 341, 286, 1077, 2464, 284, 13642, 5152, 486, 1499, 2895, 445, 13363, 899, 37445, 286, 1077, 13166, 284, 470, 1819, 2099, 11894, 11, 44590, 22653, 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...
4
#[test] fn test_smoke_pipeline() { let _ = pretty_env_logger::try_init(); assert_eq!( apply( pipeline, "pipeline", r#"git branch --merged | split-row "`n" | where $it != "* master""# ), build_token(b::pipeline(v...
rust_cleaned_test_functions.jsonl/46731
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1595 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15874, 4740, 45187, 368, 341, 286, 1077, 716, 284, 5020, 15879, 27413, 486, 1539, 6137, 1428, 286, 2060, 10714, 33673, 310, 3796, 1006, 394, 15301, 345, 394, 330, 51258, 756, 394, 435, 55543, 1288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_impl_traits() { #[api_v2_operation] fn index() -> impl Responder { "" } #[derive(Serialize, Deserialize, Apiv2Schema)] struct Params { limit: Option<u16>, } #[api_v2_operation] fn get_pets( _data: web::Data<String>, _q: web::Query...
rust_cleaned_test_functions.jsonl/128123
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2887 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21007, 39693, 368, 341, 262, 11506, 2068, 2273, 17, 32565, 921, 262, 5168, 1922, 368, 1464, 11605, 1800, 20328, 341, 286, 8389, 262, 555, 262, 11506, 27098, 3759, 9050, 11, 48440, 11, 5232, 344, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scroll_down_winapi() { let current_window = ScreenBuffer::current() .unwrap() .info() .unwrap() .terminal_window(); scroll_down(2).unwrap(); let new_window = ScreenBuffer::current() .unwrap() .info(...
rust_cleaned_test_functions.jsonl/47955
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 264 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41407, 13998, 25672, 2068, 368, 341, 286, 1077, 1482, 12571, 284, 13948, 4095, 486, 3231, 741, 310, 659, 15454, 741, 310, 659, 2733, 741, 310, 659, 15454, 741, 310, 659, 36327, 12571, 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_invalid_mapping_should_err() { let result: Result<ProxyMap, Error> = parse2(quote! { test, "test" }); assert!(result.is_err()); }
rust_cleaned_test_functions.jsonl/85717
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 98 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 26930, 43378, 9266, 368, 341, 286, 1077, 1102, 25, 5714, 27, 16219, 2227, 11, 4600, 29, 284, 4715, 17, 7, 2949, 0, 341, 310, 1273, 11, 330, 1944, 698, 286, 1625, 286, 2060, 10297, 1382,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_struct_complex_parse() { let res = StructWithComplexParser::parse(INPUT_16); assert_eq!( res, Ok(( &INPUT_16[12..], StructWithComplexParser { a: 1, b: Some(0x1234567812345678) } )) ); }
rust_cleaned_test_functions.jsonl/48206
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 41522, 21039, 368, 341, 262, 1077, 592, 284, 16139, 2354, 31137, 6570, 486, 6400, 57911, 62, 16, 21, 317, 262, 2060, 10714, 33673, 286, 592, 345, 286, 7622, 94702, 310, 609, 29421, 62, 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_basic() { check!(0.0); check!(-0.0); check!(1.0); check!(-1.0); assert_eq!(pretty(f32::NAN), "NaN"); assert_eq!(pretty(f32::INFINITY), "inf"); assert_eq!(pretty(f32::NEG_INFINITY), "-inf"); }
rust_cleaned_test_functions.jsonl/58234
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 368, 341, 262, 1779, 10297, 15, 13, 15, 317, 262, 1779, 0, 4080, 15, 13, 15, 317, 262, 1779, 10297, 16, 13, 15, 317, 262, 1779, 0, 4080, 16, 13, 15, 317, 262, 2060, 10714, 10297, 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_example() { test( "If man was meant to stay on the ground, god would have given us roots.", "imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau", ) }
rust_cleaned_test_functions.jsonl/27427
{ "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, 39304, 368, 341, 262, 1273, 1006, 286, 330, 2679, 883, 572, 8791, 311, 4717, 389, 279, 4910, 11, 9886, 1035, 614, 2661, 601, 19703, 10346, 286, 330, 318, 83, 28584, 11562, 8679, 6566, 73331, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cli_commands() { assert_eq!(test_cli("").unwrap().command, Command::ShowHelp); assert_eq!(test_cli("--help").unwrap().command, Command::ShowHelp); assert_eq!(test_cli("--version").unwrap().command, Command::ShowVersion); assert_eq!(test_cli("--version").unwrap().f...
rust_cleaned_test_functions.jsonl/49855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 547 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47147, 44151, 368, 341, 286, 2060, 10714, 10297, 1944, 47147, 80821, 15454, 1005, 5631, 11, 7348, 486, 7812, 12689, 317, 286, 2060, 10714, 10297, 1944, 47147, 21549, 8653, 1827, 15454, 1005, 5631, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pam200() { let score1 = pam200(b'A', b'A'); assert_eq!(score1, 3); let score2 = pam200(b'*', b'*'); assert_eq!(score2, 1); let score3 = pam200(b'A', b'*'); assert_eq!(score3, -9); let score4 = pam200(b'Y', b'Z'); assert_eq!(score4, ...
rust_cleaned_test_functions.jsonl/48126
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 280 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 309, 17, 15, 15, 368, 341, 286, 1077, 5456, 16, 284, 41190, 17, 15, 15, 1883, 51274, 516, 293, 51274, 1157, 286, 2060, 10714, 10297, 12338, 16, 11, 220, 18, 317, 286, 1077, 5456, 17, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bundle_actions() { let bun: Bundle = r#"{ "name": "aristotle", "invocationImages": [], "schemaVersion": "1.0", "version": "1.0.0", "actions": { "my_action": { "modifies": true, "stateless": true, ...
rust_cleaned_test_functions.jsonl/112261
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 401 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60986, 25368, 368, 341, 262, 1077, 44821, 25, 13182, 284, 435, 55543, 515, 286, 330, 606, 788, 330, 277, 380, 50526, 756, 286, 330, 14057, 2276, 14228, 788, 10239, 286, 330, 17349, 5637, 788, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_emit_movzx_byte() { assert_emit!(0x0f, 0xb6, 0xc0; emit_movzx_byte(0, RAX, RAX)); assert_emit!(0x48, 0x0f, 0xb6, 0xc0; emit_movzx_byte(1, RAX, RAX)); assert_emit!(0x44, 0x0f, 0xb6, 0xf9; emit_movzx_byte(0, RCX, R15)); assert_emit!(0x4d, 0x0f, 0xb6, 0xf9; emit_movz...
rust_cleaned_test_functions.jsonl/85485
{ "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, 69082, 55798, 66700, 19737, 368, 341, 286, 2060, 69082, 10297, 15, 87, 15, 69, 11, 220, 15, 7929, 21, 11, 220, 15, 8148, 15, 26, 16691, 55798, 66700, 19737, 7, 15, 11, 431, 2954, 11, 431, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tagged_template_lit_simple_template() { test_same("foo`Simple`"); // be preserved. test("Math.sin`Simple`", ""); test("1 + Math.sin`Simple`", ""); }
rust_cleaned_test_functions.jsonl/465
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 86 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9372, 3556, 8693, 98399, 30015, 8693, 368, 341, 262, 1273, 33574, 445, 7975, 63, 16374, 63, 797, 1066, 262, 442, 387, 33583, 624, 262, 1273, 445, 8815, 16318, 63, 16374, 63, 497, 14498, 262, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_source_peer_read_delegate_after_apply() { let mut cluster = new_node_cluster(0, 3); configure_for_merge(&mut cluster); let pd_client = Arc::clone(&cluster.pd_client); pd_client.disable_default_operator(); cluster.run(); cluster.must_split(&cluster.get_region(b""), b"k2...
rust_cleaned_test_functions.jsonl/56294
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 602 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10347, 45159, 6443, 55312, 19844, 36551, 368, 341, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 220, 18, 317, 262, 14411, 5478, 20888, 2099, 6984, 10652, 626, 262, 1077, 7744, 8179, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_coarsen() { assert_eq!((0 as u64).coarsen(&10), 10); assert_eq!((6 as u64).coarsen(&10), 10); assert_eq!((11 as u64).coarsen(&10), 20); assert_eq!( Duration::from_secs(0).coarsen(&Duration::from_secs(10)), Duration::from_secs(10) )...
rust_cleaned_test_functions.jsonl/89377
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 255 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11393, 1561, 268, 368, 341, 286, 2060, 10714, 0, 1188, 15, 438, 575, 21, 19, 568, 1015, 1561, 268, 2099, 16, 15, 701, 220, 16, 15, 317, 286, 2060, 10714, 0, 1188, 21, 438, 575, 21, 19, 568...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_remove_expired() { let mut cache = Cache::new(); let key: &'static str = "key"; cache.insert(key, 1, Some(Duration::default())); let res = cache.remove(&key); assert_eq!(res, None); }
rust_cleaned_test_functions.jsonl/76886
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 80221, 368, 341, 262, 1077, 5206, 6500, 284, 19479, 486, 931, 543, 262, 1077, 1376, 25, 30136, 1978, 607, 284, 330, 792, 3302, 262, 6500, 7030, 4857, 11, 220, 16, 11, 4329, 64114, 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
#[test] fn test_split_str_prefixed_chunks_by_lines() { let (at, mut ucmd) = at_and_ucmd!(); let name = "split_str_prefixed_chunks_by_lines"; RandomFile::new(&at, name).add_lines(10000); ucmd.args(&["-l", "1000", name, "d"]).succeeds(); let glob = Glob::new(&at, ".", r"d[[:alpha:]][[:alpha:]...
rust_cleaned_test_functions.jsonl/25856
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 2895, 43331, 3286, 65470, 3710, 18323, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 829, 284, 330, 6960, 2895, 43331, 3286, 65470...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_recommended_manifest_path() { super::init_log(); let path = crate::get_recommended_manifest_path().unwrap(); log::info!("Recommended manifest path: {:?}", path); }
rust_cleaned_test_functions.jsonl/114699
{ "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, 3062, 1288, 35871, 74269, 2638, 368, 341, 262, 2256, 486, 2327, 5224, 1428, 262, 1077, 1815, 284, 17717, 486, 455, 1288, 35871, 74269, 2638, 1005, 15454, 543, 262, 1487, 486, 2733, 17223, 56527, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1