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_connected() { let cmd = RelayCmd::CONNECTED; assert_eq!(Into::<u8>::into(cmd), 4_u8); msg(cmd, "", &msg::Connected::new_empty().into()); let localhost = "127.0.0.1".parse::<IpAddr>().unwrap(); msg( cmd, "7F000001 00000E10", &msg::Connected::new_with_a...
rust_cleaned_test_functions.jsonl/66340
{ "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, 43276, 368, 341, 262, 1077, 5439, 284, 46172, 15613, 486, 39521, 1479, 280, 262, 2060, 10714, 10297, 26591, 27638, 84, 23, 6831, 18122, 14160, 701, 220, 19, 7300, 23, 626, 262, 3750, 14160, 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_sort_boolean() { // boolean test_sort_to_indices_boolean_arrays( vec![None, Some(false), Some(true), Some(true), Some(false), None], None, None, vec![0, 5, 1, 4, 2, 3], ); test_sort_to_indices_boolean_array...
rust_cleaned_test_functions.jsonl/6166
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1432 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 46642, 368, 341, 286, 442, 2710, 198, 286, 1273, 18435, 2346, 18333, 46642, 68983, 1006, 310, 7486, 20703, 4064, 11, 4329, 3576, 701, 4329, 3715, 701, 4329, 3715, 701, 4329, 3576, 701, 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_description() { assert_eq!( format!( "{} - {}.{}.{}", metadata::NAME, metadata::MAJOR_VERSION, metadata::MINOR_VERSION, metadata::REVISION ), "AMQP - 0.9.1" ); ...
rust_cleaned_test_functions.jsonl/55769
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11448, 368, 341, 286, 2060, 10714, 33673, 310, 3561, 33673, 394, 35503, 481, 84412, 46391, 6257, 756, 394, 11160, 486, 7535, 345, 394, 11160, 486, 4835, 77080, 10678, 345, 394, 11160, 486, 16413, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_write_strings() { let mut writer = MemWriter::new(); writer.write_str("testing").unwrap(); writer.write_line("testing").unwrap(); writer.write_str("testing").unwrap(); let mut r = BufReader::new(writer.get_ref()); assert_eq!(r.read_to_string().unwr...
rust_cleaned_test_functions.jsonl/7093
{ "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, 9165, 33500, 368, 341, 286, 1077, 5206, 6916, 284, 13550, 6492, 486, 931, 543, 286, 6916, 3836, 2895, 445, 8840, 1827, 15454, 543, 286, 6916, 3836, 6528, 445, 8840, 1827, 15454, 543, 286, 6916, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_accounts_locks() { let keypair0 = Keypair::new(); let keypair1 = Keypair::new(); let keypair2 = Keypair::new(); let keypair3 = Keypair::new(); let account0 = AccountSharedData::new(1, 0, &Pubkey::default()); let account1 = AccountSharedData::new(2...
rust_cleaned_test_functions.jsonl/13219
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2026 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55665, 9818, 82, 368, 341, 286, 1077, 1376, 12670, 15, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 1376, 12670, 16, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 1376, 12670, 17, 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_complete_graph() -> Result<()> { let mut complete_graph = Graph::generate_complete_graph(None, Some(10), None, None, None, None, None, None).unwrap(); assert!(complete_graph.is_connected(Some(true))); let _ = graph::test_utilities::default_test_suite(&mut complete_graph, None...
rust_cleaned_test_functions.jsonl/5142
{ "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, 27675, 14738, 368, 1464, 5714, 71698, 341, 262, 1077, 5206, 4583, 14738, 4035, 286, 12165, 486, 19366, 27675, 14738, 26717, 11, 4329, 7, 16, 15, 701, 2240, 11, 2240, 11, 2240, 11, 2240, 11, 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_collect_accounts_to_store() { let keypair0 = Keypair::new(); let keypair1 = Keypair::new(); let pubkey = Pubkey::new_rand(); let rent_collector = RentCollector::default(); let instructions = vec![CompiledInstruction::new(2, &(), vec![0, 1])]; let...
rust_cleaned_test_functions.jsonl/50625
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1776 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68140, 55665, 2346, 14809, 368, 341, 286, 1077, 1376, 12670, 15, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 1376, 12670, 16, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 95116, 284, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fn_signature_with_docs_from_actix() { let info = call_info( r#" pub trait WriteHandler<E> where Self: Actor, Self::Context: ActorContext, { /// Method is called when writer emits error. /// /// If this method returns `ErrorAction::Continue` writer processi...
rust_cleaned_test_functions.jsonl/129610
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 520 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15246, 39859, 6615, 49692, 5673, 29370, 941, 368, 341, 286, 1077, 3546, 284, 1618, 3109, 1006, 310, 435, 2, 698, 9585, 17567, 9645, 3050, 23835, 397, 2870, 198, 262, 10115, 25, 24718, 345, 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_config_bad_owner() { let from_pubkey = Pubkey::new_unique(); let config_pubkey = Pubkey::new_unique(); let new_config = MyConfig::new(84); let signer0_pubkey = Pubkey::new_unique(); let signer0_account = AccountSharedData::new(0, 0, &Pubkey::new_unique());...
rust_cleaned_test_functions.jsonl/74383
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 733 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 34199, 29027, 368, 341, 286, 1077, 504, 34014, 792, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 2193, 34014, 792, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 501, 5332, 284, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_and_insert() { const SIZE: usize = 1000; let points = create_random_points(SIZE, SEED_1); let later_insertions = create_random_points(SIZE, SEED_2); let mut tree = RTree::bulk_load(points.clone()); for (point_to_remove, point_to_add) in points.iter(...
rust_cleaned_test_functions.jsonl/24148
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 373 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 8378, 17678, 368, 341, 286, 733, 25341, 25, 22301, 284, 220, 16, 15, 15, 15, 280, 286, 1077, 3501, 284, 1855, 22644, 12928, 3759, 3282, 11, 5052, 1479, 62, 16, 317, 286, 1077, 2937, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_take_till0() { init(); let p = take_till0(|c| *c == b'c').map_res(std::str::from_utf8); let result = p.parse_as_result(b"abcd"); assert!(result.is_ok()); assert_eq!(result.unwrap(), "abc"); }
rust_cleaned_test_functions.jsonl/16802
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 126 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73261, 528, 483, 15, 368, 341, 262, 2930, 543, 262, 1077, 281, 284, 1896, 528, 483, 15, 22428, 66, 91, 353, 66, 621, 293, 6, 66, 1823, 2186, 4918, 5194, 486, 495, 486, 1499, 39453, 23, 626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sort_tuple() { let v = to_value(vec![ TupleStruct(0, 1), TupleStruct(7, 0), TupleStruct(-1, 12), TupleStruct(18, 18), ]) .unwrap(); let mut args = HashMap::new(); args.insert("attribute".to_string(), to_value...
rust_cleaned_test_functions.jsonl/62055
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 406 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 21773, 368, 341, 286, 1077, 348, 284, 311, 3142, 25592, 90515, 310, 24622, 9422, 7, 15, 11, 220, 16, 1326, 310, 24622, 9422, 7, 22, 11, 220, 15, 1326, 310, 24622, 9422, 4080, 16, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_toml_serde() { let value = TiKvConfig::default(); let dump = toml::to_string_pretty(&value).unwrap(); let load = toml::from_str(&dump).unwrap(); assert_eq!(value, load); }
rust_cleaned_test_functions.jsonl/13537
{ "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, 528, 316, 75, 75861, 450, 368, 341, 262, 1077, 897, 284, 22325, 42, 85, 2648, 486, 2258, 543, 262, 1077, 10276, 284, 311, 1014, 486, 983, 3904, 620, 21322, 2099, 957, 568, 15454, 543, 262, 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...
1
#[test] fn test_process_push_timeout() { let mut contact_info_table = ContactInfoTable::default(); let mut push = NodeTbleGspPush::default(); let timeout = push.msg_timeout; let mut ci = ContactInfo::new_localhost(&BvmAddr::new_rand(), 0); // push a version to far in the...
rust_cleaned_test_functions.jsonl/120870
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 389 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 14218, 20537, 368, 341, 286, 1077, 5206, 3645, 3109, 5237, 284, 9180, 1731, 2556, 486, 2258, 543, 286, 1077, 5206, 4484, 284, 6018, 51, 891, 38, 2154, 16644, 486, 2258, 543, 286, 1077, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_step() { let mut game = Conway3D::from(SAMPLE); assert_eq!(game.get_bounds(), ((0, 0, 0).into(), (2, 2, 0).into())); game.step(); assert_eq!(game.get_bounds(), ((0, 1, -1).into(), (2, 3, 1).into())); assert_eq!(game.count_active_cells(), 11); gam...
rust_cleaned_test_functions.jsonl/90886
{ "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, 11946, 368, 341, 286, 1077, 5206, 1809, 284, 59474, 18, 35, 486, 1499, 3759, 18918, 317, 286, 2060, 10714, 10297, 5804, 670, 36878, 1507, 1781, 15, 11, 220, 15, 11, 220, 15, 568, 18122, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_behavior_withdrawal_then_redelegate_with_less_than_minimum_stake_delegation() { let mut feature_set = new_feature_set(); // stake amount meets the minimum delegation. Once the // parameter can be removed and consolidated. ...
rust_cleaned_test_functions.jsonl/106683
{ "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, 74540, 6615, 7633, 278, 68367, 1288, 28227, 6615, 50747, 51613, 84855, 1261, 726, 2259, 87566, 368, 341, 310, 1077, 5206, 4565, 2602, 284, 501, 17069, 2602, 543, 3374, 310, 442, 18279, 3311, 20027, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_zero_works() { let expect = get_datetime_zero(); assert_eq!(expect.to_string(), String::from("1970-01-01 00:00:00 UTC")); }
rust_cleaned_test_functions.jsonl/74671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28943, 19359, 11498, 82, 368, 341, 286, 1077, 1720, 284, 633, 28943, 19359, 543, 286, 2060, 10714, 10297, 17119, 2389, 3904, 1507, 923, 486, 1499, 445, 16, 24, 22, 15, 12, 15, 16, 12, 15, 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
#[test] fn test_from_base58() { for &(val, s) in super::super::TEST_CASES.iter() { assert_eq!(val.to_vec(), s.from_base58().unwrap()); } }
rust_cleaned_test_functions.jsonl/30067
{ "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, 5673, 7651, 20, 23, 368, 341, 286, 369, 22796, 831, 11, 274, 8, 304, 2256, 486, 9522, 486, 10033, 28540, 50, 19471, 368, 341, 310, 2060, 10714, 10297, 831, 2389, 13251, 1507, 274, 6387, 7651, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_process_chunk_response_messages() { // Create a coordinator for a validator node let mut validator_coordinator = test_utils::create_validator_coordinator(); // Create a peer and empty chunk responses let peer_network_id = PeerNetworkId::random_validator(); ...
rust_cleaned_test_functions.jsonl/84048
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1088 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 30539, 9655, 23428, 368, 341, 286, 442, 4230, 264, 30284, 369, 264, 22935, 2436, 198, 286, 1077, 5206, 22935, 11393, 17442, 284, 1273, 17309, 486, 3182, 64959, 11393, 17442, 1428, 286, 442, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_to_f64() { let cases = vec![ ("2012-12-31 11:30:45.123456", 4, 113045.1235f64), ("2012-12-31 11:30:45.123456", 6, 113045.123456f64), ("2012-12-31 11:30:45.123456", 0, 113045f64), ("2012-12-31 11:30:45.999999", 0, 113046f64), ("2...
rust_cleaned_test_functions.jsonl/130037
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 553 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 761, 21, 19, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 17, 15, 16, 17, 12, 16, 17, 12, 18, 16, 220, 16, 16, 25, 18, 15, 25, 19, 20, 13, 16, 17, 18, 19, 20, 21, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_lsd_stable_radixsort() { for size in [0, 1, 200, 10_000].iter() { for radix in [8].iter() { helper_sort(false, &|a| lsd_stable_radixsort(a, *radix), generators_bool(), *size); helper_sort(false, &|a| lsd_stable_radixsort(a, *radix), generators_char(), *size); ...
rust_cleaned_test_functions.jsonl/43409
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1264 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 907, 13446, 1261, 480, 39764, 941, 6860, 368, 341, 1066, 262, 369, 1379, 304, 508, 15, 11, 220, 16, 11, 220, 17, 15, 15, 11, 220, 16, 15, 62, 15, 15, 15, 936, 2015, 368, 314, 369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_compute_retransmit_peers_small() { const FANOUT: usize = 3; let index = vec![ 14, 15, 28, // 1st layer // 2nd layer 29, 4, 5, // 1st neighborhood 9, 16, 7, // 2nd neighborhood 26, 23, 2, // 3rd neighborhood /...
rust_cleaned_test_functions.jsonl/11679
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1649 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57028, 1288, 1458, 1763, 36367, 388, 31966, 368, 341, 286, 733, 434, 1093, 3656, 25, 22301, 284, 220, 18, 280, 286, 1077, 1922, 284, 7486, 90515, 310, 220, 16, 19, 11, 220, 16, 20, 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...
3
#[test] fn test_uswap() { let mut a = arr2(&[[1, 2, 3], [4, 5, 6], [7, 8, 9]]); let b = a.clone(); for i in 0..a.nrows() { for j in i + 1..a.ncols() { unsafe { a.uswap((i, j), (j, i)) }; } } assert_eq!(a, b.t()); }
rust_cleaned_test_functions.jsonl/92625
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11306, 21726, 368, 341, 262, 1077, 5206, 264, 284, 2890, 17, 2099, 15505, 16, 11, 220, 17, 11, 220, 18, 1125, 508, 19, 11, 220, 20, 11, 220, 21, 1125, 508, 22, 11, 220, 23, 11, 220, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_err_on_diff_tag() { // the StreamTag. let mut ctx = StreamXChaCha20Poly1305::new(&SecretKey::from(KEY), &Nonce::from(NONCE)); let mut dst_out_msg = [0u8; 51 + ABYTES]; ctx.seal_chunk( DEFAULT_MSG.as_ref(), None, &mut ds...
rust_cleaned_test_functions.jsonl/75563
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9266, 4470, 15850, 9372, 368, 341, 1789, 286, 442, 279, 9203, 5668, 624, 286, 1077, 5206, 5635, 284, 9203, 55, 95971, 95971, 17, 15, 38164, 16, 18, 15, 20, 486, 931, 2099, 19773, 1592, 486, 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_sub_oob_1() { let mat = ArcArray::linspace(0., 15., 16).reshape((2, 4, 2)); mat.index_axis(Axis(0), 2); }
rust_cleaned_test_functions.jsonl/92617
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 69 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 14179, 674, 62, 16, 368, 341, 262, 1077, 5517, 284, 19689, 1857, 486, 75, 30313, 7, 15, 2572, 220, 16, 20, 2572, 220, 16, 21, 568, 16137, 1188, 17, 11, 220, 19, 11, 220, 17, 1106, 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
#[test] fn test_make_read_group_aggregate() { assert_eq!( make_read_group_aggregate(Some(make_aggregate(1)), RPCGroup::None, vec![]).unwrap(), GroupByAndAggregate::Columns { agg: QueryAggregate::Sum, group_columns: vec![] } ); ...
rust_cleaned_test_functions.jsonl/79164
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 791 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 6443, 6288, 20587, 14240, 368, 341, 286, 2060, 10714, 33673, 310, 1281, 6443, 6288, 20587, 14240, 65405, 36944, 20587, 14240, 7, 16, 5731, 34008, 2808, 486, 4064, 11, 7486, 0, 1294, 568, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_woff2_regular_hmtx_table() { with_woff2_hmtx_table("tests/fonts/woff2/test-font.woff2", |hmtx| { let expected = vec![ LongHorMetric { advance_width: 1536, lsb: 0, }, LongHorMetric { advance_width: 153...
rust_cleaned_test_functions.jsonl/40131
{ "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, 62, 68585, 17, 49443, 1523, 90310, 5237, 368, 341, 262, 448, 62, 68585, 17, 1523, 90310, 5237, 445, 23841, 60667, 14, 68585, 17, 12697, 30671, 13, 68585, 17, 497, 760, 71, 90310, 91, 341, 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_table_index() { // TODO: use cache let opts = Options { block_size: 4 * 1024, bloom_false_positive: 0.01, table_size: 30 << 20, checksum_mode: crate::opt::ChecksumVerificationMode::OnTableAndBlockRead, }; let mut bu...
rust_cleaned_test_functions.jsonl/123047
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 694 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5237, 3560, 368, 341, 286, 442, 5343, 25, 990, 6500, 198, 286, 1077, 12185, 284, 14566, 341, 310, 2504, 2368, 25, 220, 19, 353, 220, 16, 15, 17, 19, 345, 310, 51454, 36015, 54160, 25, 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...
5
#[test] fn test_decode_data() { let mut image_data = Vec::new(); for x in 0..100 { for y in 0..100u8 { let val = x + y; image_data.push(val); image_data.push(val); image_data.push(val); } } let file = File::open("./tests/decodedata-...
rust_cleaned_test_functions.jsonl/75207
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 336 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 1769, 368, 341, 262, 1077, 5206, 2168, 1769, 284, 11312, 486, 931, 543, 262, 369, 856, 304, 220, 15, 496, 16, 15, 15, 341, 286, 369, 379, 304, 220, 15, 496, 16, 15, 15, 84, 23, 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_column_spec_list() { let x = "ts int, val int, s text "; let p = column_spec_list(x).unwrap(); assert_eq!(p.len(), 3); assert_eq!(p[0].name, "ts"); assert_eq!(p[1].name, "val"); assert_eq!(p[2].name, "s"); }
rust_cleaned_test_functions.jsonl/114451
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8744, 13594, 2019, 368, 341, 286, 1077, 856, 284, 330, 2576, 526, 11, 1044, 526, 11, 274, 1467, 7620, 286, 1077, 281, 284, 3250, 13594, 2019, 2075, 568, 15454, 1428, 286, 2060, 10714, 10297, 79,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_allocate() { let (genesis_config, mint_keypair) = create_genesis_config(100); let bank = Bank::new(&genesis_config); let bank_client = BankClient::new(bank); let alice_keypair = Keypair::new(); let alice_pubkey = alice_keypair.pubkey(); let seed =...
rust_cleaned_test_functions.jsonl/73054
{ "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, 77078, 368, 341, 286, 1077, 320, 77894, 5332, 11, 28337, 3097, 12670, 8, 284, 1855, 16322, 13774, 5332, 7, 16, 15, 15, 317, 286, 1077, 6073, 284, 8547, 486, 931, 2099, 77894, 5332, 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, 1...
1
#[test] fn test_select_or() { let expected_sql = "SELECT `naukio`.* FROM `naukio` WHERE ((`word` = ? OR `age` < ?) AND `paw` = ?)"; let expected_params = vec![ ParameterizedValue::Text(Cow::from("meow")), ParameterizedValue::Integer(10), Parameter...
rust_cleaned_test_functions.jsonl/80610
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 359 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13051, 8734, 368, 341, 286, 1077, 3601, 18063, 4035, 310, 330, 4858, 1565, 77, 2863, 74, 815, 63, 4908, 4295, 1565, 77, 2863, 74, 815, 63, 5288, 1781, 63, 1158, 63, 284, 937, 2726, 1565, 424, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_captcha() { let givens = vec!["1122", "1111", "1234", "91212129"]; let expected = vec![3, 4, 0, 9]; let actuals: Vec<u32> = givens.iter().map(|g| captcha(&g)).collect(); assert_eq!(expected, actuals); }
rust_cleaned_test_functions.jsonl/94740
{ "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, 666, 25431, 368, 341, 286, 1077, 342, 344, 724, 284, 7486, 0, 1183, 16, 16, 17, 17, 497, 330, 16, 16, 16, 16, 497, 330, 16, 17, 18, 19, 497, 330, 24, 16, 17, 16, 17, 16, 17, 24, 6332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_alert_uds() { let eve_config = || eve::EveConfiguration::uds(PathBuf::from("test.socket")); let outputs: Vec<Box<dyn output::Output + Send + Sync>> = vec![Box::new(output::Alert::new(eve_config()))]; let mut cfg = Config::default(); cfg.outputs = outpu...
rust_cleaned_test_functions.jsonl/28112
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 296 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35717, 62, 27988, 368, 341, 286, 1077, 48896, 5332, 284, 1369, 48896, 486, 36, 586, 7688, 486, 27988, 33030, 15064, 486, 1499, 445, 1944, 25926, 4010, 286, 1077, 16275, 25, 11312, 79852, 92846, 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_parse_move_error() { let pos = Position::startpos(); let cases = &[ ("h81", MoveParseError::TooShort), ("h7xg8q", MoveParseError::TooLong), ( "A2a4", MoveParseError::InvalidSquare(SquareParseError::InvalidFile('A')), ), ( "c2xd3", ...
rust_cleaned_test_functions.jsonl/134616
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 398 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 17134, 4096, 368, 341, 262, 1077, 1133, 284, 12380, 486, 2468, 966, 543, 262, 1077, 5048, 284, 609, 9640, 414, 3489, 71, 23, 16, 497, 14561, 14463, 1454, 486, 31246, 12472, 1326, 414, 348...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_transform() { let v = 123.to_value(); let v2 = v .transform::<String>() .expect("Failed to transform to string"); assert_eq!(v2.get::<&str>(), Ok("123")); }
rust_cleaned_test_functions.jsonl/66602
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 122 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18449, 368, 341, 286, 1077, 348, 284, 220, 16, 17, 18, 2389, 3142, 543, 286, 1077, 348, 17, 284, 348, 198, 310, 659, 4701, 27638, 703, 18949, 310, 659, 17119, 445, 9408, 311, 5165, 311, 914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_gen_netfilter_rule() { let unspecified_ip_address = "0.0.0.0"; let unspecified_prefix = 0u8; let unspecified_v4 = NetIpAddr(unspecified_ip_address.parse::<IpAddr>().unwrap()); let ssh_port = 22u16; let unspecified_subnet = Some(Box::new(fidl_fuchsia_net::S...
rust_cleaned_test_functions.jsonl/52760
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1374 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16322, 19722, 5315, 21124, 368, 341, 286, 1077, 54311, 10385, 6744, 284, 330, 15, 13, 15, 13, 15, 13, 15, 876, 286, 1077, 54311, 13974, 284, 220, 15, 84, 23, 280, 286, 1077, 54311, 2273, 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...
3
#[test] fn test_boolean_array_neq() { let a: BooleanArray = vec![Some(true), Some(false), Some(false), Some(true), Some(true), None] .into(); let b: BooleanArray = vec![Some(true), Some(true), Some(false), Some(false), None, Some(false)] .i...
rust_cleaned_test_functions.jsonl/45793
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 274 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 46642, 3858, 13925, 80, 368, 341, 286, 1077, 264, 25, 6992, 1857, 4035, 310, 7486, 20703, 8373, 3715, 701, 4329, 3576, 701, 4329, 3576, 701, 4329, 3715, 701, 4329, 3715, 701, 2240, 921, 394, 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_valid_binary_market_depth() { testing_env!(get_context(carol(), current_block_timestamp())); let mut contract = Markets::default(); contract.claim_fdai(); contract.create_market("Hi!".to_string(), empty_string(), 3, outcome_tags(3), categories(), market_end_timestamp_ms(), 0, 0, "test.com".t...
rust_cleaned_test_functions.jsonl/72457
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 281 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8337, 31761, 68725, 19061, 368, 341, 197, 8840, 15879, 10297, 455, 8467, 42078, 337, 1507, 1482, 7113, 23073, 7392, 10217, 5206, 5116, 284, 46810, 486, 2258, 543, 197, 20257, 6751, 2640, 17676, 2143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_withdraw_ix_ok() { assert_eq!( process_instruction( &Pubkey::default(), vec![ KeyedAccount::new( &Pubkey::default(), true, &nonce_account::creat...
rust_cleaned_test_functions.jsonl/73069
{ "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, 11305, 6615, 7633, 62686, 19817, 368, 341, 286, 2060, 10714, 33673, 310, 1882, 54923, 1006, 394, 609, 29162, 792, 486, 2258, 3148, 394, 7486, 90515, 503, 5309, 291, 7365, 486, 931, 1006, 664, 609,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_matrix3_conversion() { use cgmath::Matrix3; let m1 = Matrix3::new(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0); let m2 = Matrix3x3::new(1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, ...
rust_cleaned_test_functions.jsonl/28248
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10193, 18, 64132, 368, 341, 262, 990, 35740, 10374, 486, 6689, 18, 280, 262, 1077, 296, 16, 284, 11631, 18, 486, 931, 7, 16, 13, 15, 11, 220, 17, 13, 15, 11, 220, 18, 13, 15, 345, 3502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_primitive_array_lt_nulls() { cmp_i64_options!( lt, &[None, None, Some(1), Some(1), None, None, Some(2), Some(2),], &[None, Some(1), None, Some(1), None, Some(3), None, Some(3),], vec![None, None, None, Some(false), None, None, None, Some(tr...
rust_cleaned_test_functions.jsonl/38871
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 39164, 15162, 82, 368, 341, 286, 26089, 5318, 21, 19, 8743, 33673, 310, 25175, 345, 310, 44590, 4064, 11, 2240, 11, 4329, 7, 16, 701, 4329, 7, 16, 701, 2240, 11, 2240, 11, 4329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_varlist_get_variants_range1() { let vlst = generate_test_lst1(); let t = 0; let c = "chr1".to_string(); let p1 = 2500; let p2 = 8000; let interval = GenomicInterval { tid: t, chrom: c, start_pos: p1, ...
rust_cleaned_test_functions.jsonl/25103
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 360 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4612, 1607, 3062, 4612, 62278, 9698, 16, 368, 341, 286, 1077, 348, 36687, 284, 6923, 4452, 31983, 16, 543, 286, 1077, 259, 284, 220, 15, 280, 286, 1077, 272, 284, 330, 16789, 16, 3263, 983, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_query() { let derivation_path = DerivationPath::new_bip44_with_coin(TestCoin, None, None); assert_eq!(derivation_path.get_query(), "".to_string()); let derivation_path = DerivationPath::new_bip44_with_coin(TestCoin, Some(1), None); assert_eq!(derivation_path.g...
rust_cleaned_test_functions.jsonl/132681
{ "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, 3062, 5738, 368, 341, 286, 1077, 95254, 2638, 284, 12741, 39127, 1820, 486, 931, 880, 573, 19, 19, 6615, 75718, 31159, 41180, 11, 2240, 11, 2240, 317, 286, 2060, 10714, 10297, 1107, 39127, 2638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_large_window() { assert_huge_file_input_matches_output(include_bytes!("../../testdata/rnd_chunk.br"), include_bytes!("../../testdata/rnd_prefix"), include_bytes!("../../testdata/rnd_postfix"), ...
rust_cleaned_test_functions.jsonl/26479
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 338 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45228, 12571, 368, 341, 220, 2060, 1523, 4733, 2458, 5898, 38344, 7645, 77863, 12524, 17223, 2748, 92425, 7382, 303, 30539, 20937, 4461, 2559, 2924, 12524, 17223, 2748, 92425, 7382, 303, 13974, 4461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_points() -> Result<()> { assert_eq!( "R8,U5,L5,D3".parse::<Wire>()?.points(), vec![ Point(1, 0), Point(2, 0), Point(3, 0), Point(4, 0), Point(5, 0), Point(6, 0), ...
rust_cleaned_test_functions.jsonl/101733
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 585 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12928, 368, 1464, 5714, 71698, 341, 286, 2060, 10714, 33673, 310, 330, 49, 23, 50481, 20, 30114, 20, 27266, 18, 3263, 6400, 27638, 37845, 13555, 4607, 7706, 3148, 310, 7486, 90515, 394, 5126, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_finish_twice() { let mut prog = Command::new("false").spawn().unwrap(); assert!(prog.wait().unwrap().code() == Some(1)); assert!(prog.wait().unwrap().code() == Some(1)); }
rust_cleaned_test_functions.jsonl/5984
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42980, 54178, 558, 368, 341, 286, 1077, 5206, 29271, 284, 7348, 486, 931, 445, 3849, 1827, 46087, 1005, 15454, 543, 286, 2060, 10297, 32992, 16294, 1005, 15454, 1005, 1851, 368, 621, 4329, 7, 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
#[test] fn test_from_angle_x() { let angle = Degrees(72_f64); let rotation = Rotation3::from_angle_x(angle); let expected = Isometry3::from_rotation(&rotation); let result = Isometry3::from_angle_x(angle); assert_eq!(result, expected); }
rust_cleaned_test_functions.jsonl/77232
{ "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, 5673, 21727, 3212, 368, 341, 286, 1077, 9210, 284, 92901, 7, 22, 17, 761, 21, 19, 317, 286, 1077, 12695, 284, 47528, 18, 486, 1499, 21727, 3212, 29633, 317, 286, 1077, 3601, 284, 2160, 6988, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_int_any_value() { let test_cases = vec![ (vec![], None), (vec![1i64], Some(1i64)), (vec![1i64, 2i64], Some(1i64)), (vec![1i64, 2i64, 3i64], Some(1i64)), ]; for (args, expect_output) in test_cases { let output = ...
rust_cleaned_test_functions.jsonl/59406
{ "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, 4042, 37248, 3142, 368, 341, 286, 1077, 1273, 41427, 284, 7486, 90515, 310, 320, 4083, 0, 12995, 2240, 1326, 310, 320, 4083, 20703, 16, 72, 21, 19, 1125, 4329, 7, 16, 72, 21, 19, 6965, 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...
2
#[test] fn test_tracing_deserialization_for_lists() { #[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)] struct Node { data: u64, next: Option<Box<Node>>, } let samples = Samples::new(); let mut tracer = Tracer::new(TracerConfig::default()); tracer.trace_type:...
rust_cleaned_test_functions.jsonl/23931
{ "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, 3547, 4527, 15768, 50563, 5478, 37288, 368, 341, 262, 11506, 27098, 3759, 9050, 11, 48440, 11, 55039, 11, 33122, 11, 11091, 11, 27913, 5563, 262, 2036, 6018, 341, 286, 821, 25, 575, 21, 19, 345,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_compare() { let scope_base = "cap1 cap2".parse::<Scope>().unwrap(); let scope_less = "cap1".parse::<Scope>().unwrap(); let scope_uncmp = "cap1 cap3".parse::<Scope>().unwrap(); assert_eq!(scope_base.partial_cmp(&scope_less), Some(cmp::Ordering::Greater)); ...
rust_cleaned_test_functions.jsonl/92147
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 516 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32235, 368, 341, 286, 1077, 6891, 7651, 284, 330, 11346, 16, 2062, 17, 3263, 6400, 27638, 10803, 10483, 15454, 543, 286, 1077, 6891, 50747, 284, 330, 11346, 16, 3263, 6400, 27638, 10803, 10483, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_run_against_sample() { let mut child = Command::new("tests/test_sample.exe") .spawn() .expect("Failed to run child process"); std::thread::sleep(std::time::Duration::from_millis(250)); inject("test_sample.exe", "target/release/examples/hello_world.dll").unwrap(); child.wait(...
rust_cleaned_test_functions.jsonl/79312
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 62427, 267, 17491, 368, 341, 220, 1077, 5206, 1682, 284, 7348, 486, 931, 445, 23841, 12697, 17491, 19399, 1138, 262, 659, 46087, 741, 262, 659, 17119, 445, 9408, 311, 1598, 1682, 1882, 797,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fill_struct_fields_shorthand_unifies() { check_fix( r#" struct S<T> { a: &'static str, b: T } fn f() { let a = "hello"; let b = 1i32; S { $0 }; } "#, r#" struct S<T> { a: &'static str, b: T } fn f() { let a = "hello"; let b = 1i32...
rust_cleaned_test_functions.jsonl/15157
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30728, 15126, 12132, 3712, 61679, 4907, 9606, 368, 341, 286, 1779, 36060, 1006, 310, 435, 2, 698, 1235, 328, 3125, 29, 314, 264, 25, 30136, 1978, 607, 11, 293, 25, 350, 555, 8822, 282, 368, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decode_adc_reg() { match decode_16(0x4152) { Instruction::ADC_reg { params, thumb32 } => { assert!(params.rd == Reg::R2); assert!(params.rm == Reg::R2); assert!(params.rn == Reg::R2); assert!(params.setflags == SetFlags::NotInITBlo...
rust_cleaned_test_functions.jsonl/64765
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 288 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 64840, 4920, 368, 341, 1066, 262, 2432, 16895, 62, 16, 21, 7, 15, 87, 19, 16, 20, 17, 8, 341, 286, 29051, 486, 31956, 4920, 314, 3628, 11, 24050, 18, 17, 335, 589, 341, 310, 2060, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_stake_initialize_ix() { let from_pubkey = Pubkey::new_unique(); let stake_pubkey = Pubkey::new_unique(); let authorized = Authorized { staker: Pubkey::new_unique(), withdrawer: Pubkey::new_unique(), }; let lockup = Lockup { ...
rust_cleaned_test_functions.jsonl/117965
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1036 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 1261, 726, 40889, 62686, 368, 341, 286, 1077, 504, 34014, 792, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 18279, 34014, 792, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 18630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_router_detect1() { let router = Router::new().push( Router::new().path("users").push( Router::new() .path("<id>") .push(Router::new().path("emails").get(fake_handler)), ), ); let mut req = Req...
rust_cleaned_test_functions.jsonl/103070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 363 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55587, 56457, 16, 368, 341, 286, 1077, 9273, 284, 10554, 486, 931, 1005, 9077, 1006, 310, 10554, 486, 931, 1005, 2343, 445, 4218, 1827, 9077, 1006, 394, 10554, 486, 931, 741, 503, 659, 2343, 963...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_statsd_client_as_setted() { let client: Box<dyn Setted> = Box::new(StatsdClient::from_sink("myapp", NopMetricSink)); client.set("some.set", 5).unwrap(); }
rust_cleaned_test_functions.jsonl/48397
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 93 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15381, 67, 8179, 11898, 2602, 6565, 368, 341, 286, 1077, 2943, 25, 8261, 92846, 2573, 6565, 29, 284, 8261, 486, 931, 7, 16635, 67, 2959, 486, 1499, 51567, 445, 2408, 676, 497, 451, 453, 54310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_node_learner_conf_change() { let count = 5; let mut cluster = new_node_cluster(0, count); test_learner_conf_change(&mut cluster); }
rust_cleaned_test_functions.jsonl/107621
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 70 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 62, 93595, 16059, 15947, 368, 341, 262, 1077, 1760, 284, 220, 20, 280, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 1760, 317, 262, 1273, 62, 93595, 16059, 15947, 2099, 6984, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sd_3164() -> Result<()> { let mut s: Vec<u8> = r#"<46>Jan 5 15:33:03 plertrood-ThinkPad-X220 rsyslogd: [software="rsyslogd" swVersion="8.32.0"] message"#.as_bytes().to_vec(); let mut codec = test_codec(); let decoded = codec.decode(s.as_mut_slice(), 0)?.unwrap()...
rust_cleaned_test_functions.jsonl/89208
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 457 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 40168, 62, 18, 16, 21, 19, 368, 1464, 5714, 71698, 341, 286, 1077, 5206, 274, 25, 11312, 34837, 23, 29, 284, 435, 2, 22476, 19, 21, 29, 18315, 220, 220, 20, 220, 16, 20, 25, 18, 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...
4
#[test] fn test_calculate_region_cpu_records() { // region_id -> total_cpu_time_ms let mut region_cpu_records: HashMap<u64, u32> = HashMap::default(); let region_num = 3; for i in 0..region_num * 10 { let cpu_records = Arc::new(RawRecords { begin_unix...
rust_cleaned_test_functions.jsonl/64561
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24005, 11207, 20627, 21795, 31279, 368, 341, 286, 442, 5537, 842, 1464, 2790, 21795, 3009, 21416, 198, 286, 1077, 5206, 5537, 21795, 31279, 25, 10528, 34837, 21, 19, 11, 575, 18, 17, 29, 284, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_expand_lines_weird_symbol_2() { let fake_screen: Vec<&'static str> = vec!["abc ▸ <root>#efg"]; let os = get_observed_screen(&fake_screen); let hits = os.find_occurences("▸"); assert_eq!(hits.len(), 1); let hit = hits.first().unwrap(); assert_eq!...
rust_cleaned_test_functions.jsonl/69241
{ "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, 67875, 18323, 45922, 2603, 21179, 62, 17, 368, 341, 286, 1077, 12418, 17649, 25, 11312, 52244, 6, 1978, 607, 29, 284, 7486, 0, 1183, 13683, 14520, 116, 366, 2888, 61125, 823, 70, 31797, 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...
1
#[test] fn test_is_locked_out_double_vote() { let mut tower = Tower::new(EpochStakes::new_for_tests(2), 0, 0.67); let descendants = vec![(0, vec![1].into_iter().collect()), (1, HashSet::new())] .into_iter() .collect(); tower.record_vote(0, Hash::default()); ...
rust_cleaned_test_functions.jsonl/113940
{ "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, 6892, 60271, 6068, 24598, 54360, 368, 341, 286, 1077, 5206, 21271, 284, 21938, 486, 931, 10722, 79, 4953, 623, 2050, 486, 931, 5478, 32509, 7, 17, 701, 220, 15, 11, 220, 15, 13, 21, 22, 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_fmt_for_record_3() { let standard_fields = StandardFields::new("sq0", 8, 13); let record: Record<3> = Record::new(standard_fields, OptionalFields::default()); assert_eq!(record.to_string(), "sq0\t8\t13"); let standard_fields = StandardFields::new("sq0", 8, 13); ...
rust_cleaned_test_functions.jsonl/36908
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38128, 5478, 14192, 62, 18, 368, 341, 286, 1077, 5297, 12132, 284, 11766, 8941, 486, 931, 445, 28343, 15, 497, 220, 23, 11, 220, 16, 18, 317, 286, 1077, 3255, 25, 13583, 27, 18, 29, 284, 135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_low_s() { // nb this is a transaction on testnet // txid 8ccc87b72d766ab3128f03176bb1c98293f2d1f85ebfaf07b82cc81ea6891fa9 // input number 3 let sig = hex!("3046022100839c1fbc5304de944f697c9f4b1d01d1faeba32d751c0f7acb21ac8a0f436a72022100e89bd46bb3a5a62adc679f659b7ce876d83ee29...
rust_cleaned_test_functions.jsonl/129810
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 570 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23767, 643, 368, 341, 262, 442, 16649, 419, 374, 264, 7745, 389, 1273, 4711, 198, 262, 442, 9854, 307, 220, 23, 37054, 23, 22, 65, 22, 17, 67, 22, 21, 21, 370, 18, 16, 17, 23, 69, 15, 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_translation() { assert_eq_pnsat!("%c", Some("{}")); assert_eq_pnsat!("%d", Some("{}")); assert_eq_pnsat!("%u", Some("{}")); assert_eq_pnsat!("%x", Some("{:x}")); assert_eq_pnsat!("%X", Some("{:X}")); assert_eq_pnsat!("%e", S...
rust_cleaned_test_functions.jsonl/22162
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1231 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49273, 368, 341, 310, 2060, 10714, 620, 4412, 266, 0, 4430, 66, 497, 4329, 53430, 4010, 310, 2060, 10714, 620, 4412, 266, 0, 4430, 67, 497, 4329, 53430, 4010, 310, 2060, 10714, 620, 4412, 266, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_chunk_small_file() { let content_result = read("test/random.txt"); assert!(content_result.is_ok()); let contents = content_result.unwrap(); let chunk_hmap = chunk_file(&contents); for c in chunk_hmap.iter() { assert_eq!( c.0.has...
rust_cleaned_test_functions.jsonl/6680
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 243 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30539, 31966, 2458, 368, 341, 286, 1077, 2213, 5287, 284, 1349, 445, 1944, 79442, 3909, 797, 286, 2060, 10297, 1796, 5287, 2079, 19817, 1423, 286, 1077, 8794, 284, 2213, 5287, 55395, 543, 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...
2
#[test] fn test_pop() { let example = "hello"; let mut repr = Repr::new(example); assert_eq!(repr.pop(), Some('o')); assert_eq!(repr.pop(), Some('l')); assert_eq!(repr.pop(), Some('l')); assert_eq!(repr.as_str(), "he"); assert_eq!(repr.len(), 2); }
rust_cleaned_test_functions.jsonl/14392
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 167 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17061, 368, 341, 286, 1077, 3110, 284, 330, 14990, 876, 286, 1077, 5206, 30636, 284, 1032, 649, 486, 931, 66203, 626, 286, 2060, 10714, 10297, 30837, 8288, 1507, 4329, 492, 78, 6336, 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_validate_invalid_arguments() { let (config, key) = config_builder::test_config(); let (vm_validator, mut rt) = TestValidator::new(&config); let address = account_config::association_address(); let (program_script, _) = encode_transfer_script(&address, vec![], 100).into_inner(); ...
rust_cleaned_test_functions.jsonl/2306
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 31433, 43433, 368, 341, 262, 1077, 320, 1676, 11, 1376, 8, 284, 2193, 28532, 486, 1944, 5332, 543, 262, 1077, 320, 7338, 64959, 11, 5206, 16677, 8, 284, 3393, 14256, 486, 931, 2099, 1676,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_assemble_offset() -> Result<()> { // Test image assembly by explicit offsets. let mut image = ImageAssembler::with_params(16, false); image.parse(&[ testdata!("hello.txt@0").to_str().unwrap(), testdata!("world.txt@0x8").to_str().unwrap(), ]...
rust_cleaned_test_functions.jsonl/12331
{ "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, 11898, 15790, 6917, 368, 1464, 5714, 71698, 341, 286, 442, 3393, 2168, 14614, 553, 11464, 35046, 624, 286, 1077, 5206, 2168, 284, 4654, 77858, 486, 4197, 6745, 7, 16, 21, 11, 895, 317, 286, 2168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_copy_fields() -> () { let msg_orig = std_msgs::msg::String { data: "hej".into() }; let rosmsg = WrappedNativeMsg::<std_msgs::msg::String>::from(&msg_orig); let msg2 = std_msgs::msg::String::from_native(&rosmsg); assert_eq!(msg_orig, msg2); }
rust_cleaned_test_functions.jsonl/28018
{ "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, 16096, 12132, 368, 1464, 1719, 341, 286, 1077, 3750, 35328, 284, 1460, 20777, 486, 3236, 486, 703, 314, 821, 25, 330, 383, 73, 3263, 18122, 368, 2605, 286, 1077, 26190, 3236, 284, 94715, 20800, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_debug() { let (s1, _msg1) = SPAKE2::<Ed25519Group>::start_a( &Password::new(b"password"), &Identity::new(b"idA"), &Identity::new(b"idB"), ); println!("s1: {:?}", s1); assert_eq!( format!("{:?}", s1), "SPAKE2 { group: \"Ed25519\", side: A, i...
rust_cleaned_test_functions.jsonl/13892
{ "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, 15446, 368, 341, 262, 1077, 320, 82, 16, 11, 716, 3236, 16, 8, 284, 76408, 3390, 17, 27638, 2715, 17, 20, 20, 16, 24, 2808, 6831, 2468, 4306, 1006, 286, 609, 4876, 486, 931, 1883, 1, 3833, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_i64_params() { test_type( "BIGINT", &[ (Some(9_223_372_036_854_775_708i64), "9223372036854775708"), (Some(-9_223_372_036_854_775_708i64), "-9223372036854775708"), (None, "NULL"), ], ); }
rust_cleaned_test_functions.jsonl/127907
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 171 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5318, 21, 19, 6745, 368, 341, 262, 1273, 1819, 1006, 286, 330, 67017, 3221, 756, 286, 609, 9640, 310, 320, 8373, 7, 24, 62, 17, 17, 18, 62, 18, 22, 17, 62, 15, 18, 21, 62, 23, 20, 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_mv_replace_file() { let (at, mut ucmd) = at_and_ucmd!(); let file_a = "test_mv_replace_file_a"; let file_b = "test_mv_replace_file_b"; at.touch(file_a); at.touch(file_b); ucmd.arg(file_a).arg(file_b).succeeds().no_stderr(); assert!(!at.file_exists(file_a)); ass...
rust_cleaned_test_functions.jsonl/41612
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73187, 10633, 2458, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 1034, 4306, 284, 330, 1944, 73187, 10633, 2458, 4306, 876, 262, 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_padding_negotiate() { // Generated by hand since we don't have it from the Chutney run. let cmd = ChanCmd::PADDING_NEGOTIATE; assert_eq!(Into::<u8>::into(cmd), 12_u8); fbody( cmd, "00 02 0100 0200", &msg::PaddingNegotiate::new(true, 256, 512).into(), ...
rust_cleaned_test_functions.jsonl/6043
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 213 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40726, 28209, 354, 6493, 368, 341, 262, 442, 30488, 553, 1424, 2474, 582, 1513, 944, 614, 432, 504, 279, 910, 332, 3437, 1598, 624, 262, 1077, 5439, 284, 41302, 15613, 486, 47, 52478, 62368, 179...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_4_threads_bit_offset() -> Result<()> { // run this locally with a thread pool size of 4 // this was an obscure bug caused by not taking the offset of a bit into account. let n = 8i64; let mut left_a = (0..n).map(Some).collect::<Int64Chunked>(); let mut lef...
rust_cleaned_test_functions.jsonl/69998
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 573 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 19, 29725, 13996, 6917, 368, 1464, 5714, 71698, 341, 286, 442, 1598, 419, 23490, 448, 264, 4516, 7314, 1379, 315, 220, 19, 198, 286, 442, 419, 572, 458, 39534, 9876, 8881, 553, 537, 4633, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_network_max_message_len() { let first = "127.0.0.1:17202".parse().unwrap(); let second = "127.0.0.1:17303".parse().unwrap(); let max_message_length = ConsensusConfig::DEFAULT_MAX_MESSAGE_LEN as usize; let max_payload_length = max_message_length - ::messages::HEADER_LENGT...
rust_cleaned_test_functions.jsonl/76325
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 394 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20966, 6345, 6462, 6043, 368, 341, 262, 1077, 1156, 284, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 16, 22, 17, 15, 17, 3263, 6400, 1005, 15454, 543, 262, 1077, 2086, 284, 330, 16, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_generate_self_attested_proof() { let _setup = SetupLibraryWalletPoolZeroFees::init(); let indy_proof_req = json!({ "nonce":"123432421212", "name":"proof_req_1", "version":"0.1", "requested_attributes": json!({ "address1_...
rust_cleaned_test_functions.jsonl/29155
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 604 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 25637, 13356, 9980, 86757, 368, 341, 286, 1077, 716, 15188, 284, 18626, 16915, 38259, 10551, 17999, 37, 5516, 486, 2327, 1428, 286, 1077, 1257, 88, 86757, 17644, 284, 2951, 0, 2262, 1843, 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_ai() { let adam = AiPlayer::Weak; let mut adam_wins = 0; let mut adam_total_score: u64 = 0; let eve = test_ai::ExpAiPlayer{}; let mut eve_wins = 0; let mut eve_total_score: u64 = 0; let mut ties = 0; for _ in 0..50 { let mut game = Game::new(...
rust_cleaned_test_functions.jsonl/23557
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 774 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69415, 368, 1476, 262, 1077, 48966, 284, 55986, 4476, 486, 49649, 280, 262, 1077, 5206, 48966, 1670, 1330, 284, 220, 15, 280, 262, 1077, 5206, 48966, 10784, 10405, 25, 575, 21, 19, 284, 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, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_module_transitive_dependency_fails_verification() { let mut executor = FakeExecutor::from_genesis_with_options(VMPublishingOption::open()); executor.set_golden_file(current_function_name!()); // Get a module that fails verification into the store. let (bad_module, bad_module_byt...
rust_cleaned_test_functions.jsonl/38971
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 848 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10750, 7965, 3404, 62387, 761, 6209, 84245, 368, 341, 262, 1077, 5206, 31558, 284, 36965, 25255, 486, 1499, 16322, 13774, 6615, 8743, 12410, 5781, 2538, 287, 5341, 486, 2508, 1423, 262, 31558, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_from_hash() { use bitcoin_hashes; use bitcoin_hashes::Hash; let test_bytes = "Hello world!".as_bytes(); let hash = bitcoin_hashes::sha256::Hash::hash(test_bytes); let msg = Message::from(hash); assert_eq!(msg.0, hash.into_inner()); assert...
rust_cleaned_test_functions.jsonl/12681
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 8950, 368, 341, 286, 990, 17873, 91616, 280, 286, 990, 17873, 91616, 486, 6370, 401, 286, 1077, 1273, 12524, 284, 330, 9707, 1879, 92993, 300, 12524, 1428, 286, 1077, 5175, 284, 17873, 91616...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_homogenize() { let mut conf = Configuration::new(); conf.w = 60.; conf.h = 100.; conf.n = 3; conf.counts = vec![1, 2]; conf.radius = vec![10., 20.]; let p = random_init(&conf, 2); println!("{:?}", &p[0]); println!("{:?}", &p[1]); let (p1, p2) = homogenize(&conf, &p[0], &p[1...
rust_cleaned_test_functions.jsonl/61293
{ "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, 57105, 11706, 551, 368, 341, 197, 10217, 5206, 2335, 284, 12221, 486, 931, 543, 197, 67850, 1418, 284, 220, 21, 15, 15642, 2335, 860, 284, 220, 16, 15, 15, 37403, 197, 67850, 1253, 284, 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_invocation_directory() { let tmp = tempdir(); let mut justfile_path = tmp.path().to_path_buf(); justfile_path.push("justfile"); fs::write( justfile_path, "default:\n @cd {{invocation_directory()}}\n @echo {{invocation_directory()}}", ) .unwrap(); let...
rust_cleaned_test_functions.jsonl/77709
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 675 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19996, 2276, 14846, 368, 341, 262, 1077, 4174, 284, 2730, 3741, 1428, 262, 1077, 5206, 1101, 1192, 2638, 284, 4174, 3875, 1005, 983, 2638, 10363, 543, 262, 1101, 1192, 2638, 2552, 445, 4250, 1192,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_tuple_field_completion() { check_ref_completion( "tuple_field_completion", r" fn foo() { let b = (0, 3.14); b.<|> } ", ); }
rust_cleaned_test_functions.jsonl/53648
{ "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, 21773, 5013, 60164, 368, 341, 286, 1779, 7793, 60164, 1006, 310, 330, 24590, 5013, 60164, 756, 310, 435, 698, 310, 5168, 15229, 368, 341, 2290, 1077, 293, 284, 320, 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, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_home_get_latest_path() { let dir = tempdir().unwrap(); let home = Home::new(dir.path()).unwrap(); let correct_dir = dir.path().join(".shuffle/accounts/latest"); assert_eq!(correct_dir, home.get_latest_path()); }
rust_cleaned_test_functions.jsonl/123540
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 121 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21653, 3062, 64880, 2638, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 2114, 284, 5379, 486, 931, 14161, 3875, 6011, 15454, 543, 286, 1077, 4396, 4334, 284, 5419, 3875,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_primitive_schema() { assert_eq!( SchemaPieceOrNamed::Piece(SchemaPiece::Null), Schema::parse_str("\"null\"").unwrap().top ); assert_eq!( SchemaPieceOrNamed::Piece(SchemaPiece::Int), Schema::parse_str("\"int\"").unwrap().top ...
rust_cleaned_test_functions.jsonl/2978
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 263 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 25371, 368, 341, 286, 2060, 10714, 33673, 310, 12539, 31209, 2195, 15810, 486, 31209, 3759, 3416, 31209, 486, 3280, 1326, 310, 12539, 486, 6400, 2895, 38915, 2921, 2105, 1827, 15454, 1005, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_global_affine_ins() { let x = b"ACGAGAACA"; let y = b"ACGACA"; let score = |a: u8, b: u8| if a == b { 1i32 } else { -3i32 }; let mut aligner = Aligner::with_capacity(x.len(), y.len(), -5, -1, score); let alignment = aligner.global(x, y); println!(...
rust_cleaned_test_functions.jsonl/16833
{ "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, 19296, 48914, 482, 34386, 368, 341, 286, 1077, 856, 284, 293, 1, 1706, 38, 1890, 32, 62538, 876, 286, 1077, 379, 284, 293, 1, 1706, 38, 62538, 876, 286, 1077, 5456, 284, 760, 64, 25, 575, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_else_if_each_some() { let mut conditions = vec![]; for _ in 0..5 { conditions.push(Cond { cond: Some(true), check: Some(false), }) } let t = ElseIfEachSomeTemplate { conditions }; // instantiate your struct assert_eq!( "Hello, ...
rust_cleaned_test_functions.jsonl/92841
{ "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, 62628, 11119, 32046, 61855, 368, 341, 262, 1077, 5206, 4682, 284, 7486, 0, 15078, 262, 369, 716, 304, 220, 15, 496, 20, 341, 286, 4682, 2552, 7, 49696, 341, 310, 9756, 25, 4329, 3715, 1326, 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...
3
#[test] fn test_method_sorting_with_cut_and_partial() -> TestResult { let p = Polar::new(); p.load_str( r#"f(x, _) if cut and x = 1; f(x, _: 2) if x = 2;"#, )?; let mut q = p.new_query_from_term(term!(call!("f", [sym!("a"), value!(2)])), false); ...
rust_cleaned_test_functions.jsonl/63039
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9032, 18435, 287, 6615, 41317, 8378, 52068, 368, 1464, 3393, 2077, 341, 286, 1077, 281, 284, 55896, 486, 931, 543, 286, 281, 5104, 2895, 1006, 310, 435, 55543, 69, 2075, 11, 27439, 421, 3931, 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...
4
#[test] fn test_service_endpoint_invalid_query() { let did_url = did(); assert!(matches!( service_endpoint_ctor( did_url.clone().join("?query=this").unwrap(), &Url::parse("https://my-service.endpoint.net?query=this").unwrap() ), Err(Error::InvalidDIDQuery) )); ...
rust_cleaned_test_functions.jsonl/92046
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12267, 36699, 31433, 5738, 368, 341, 262, 1077, 1521, 2903, 284, 1521, 543, 262, 2060, 10297, 19914, 33673, 414, 2473, 36699, 54185, 1006, 286, 1521, 2903, 15997, 1005, 5987, 66689, 1631, 25667, 182...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_css_font_family_1() { assert_eq!(parse_css_font_family("\"Webly Sleeky UI\", monospace"), Ok(StyleFontFamily { fonts: vec![ FontId::ExternalFont("Webly Sleeky UI".into()), FontId::BuiltinFont("monospace".into()), ] }))...
rust_cleaned_test_functions.jsonl/37121
{ "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, 21039, 25924, 17451, 26823, 62, 16, 368, 341, 286, 2060, 10714, 10297, 6400, 25924, 17451, 26823, 38915, 5981, 398, 88458, 1225, 88, 3689, 16215, 1615, 80014, 3975, 7622, 7, 2323, 5447, 15192, 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...
1
#[test] fn test_subsd() { assert_emit!(0xf2, 0x0f, 0x5c, 0xc1; subsd(XMM0, XMM1)); assert_emit!(0xf2, 0x41, 0x0f, 0x5c, 0xdf; subsd(XMM3, XMM15)); assert_emit!(0xf2, 0x44, 0x0f, 0x5c, 0xc4; subsd(XMM8, XMM4)); }
rust_cleaned_test_functions.jsonl/85489
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 13446, 368, 341, 286, 2060, 69082, 10297, 15, 5848, 17, 11, 220, 15, 87, 15, 69, 11, 220, 15, 87, 20, 66, 11, 220, 15, 8148, 16, 26, 5147, 67, 7644, 8035, 15, 11, 1599, 8035, 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_use_tree_normalize() { assert_eq!(parse_use_tree("a::self").normalize(), parse_use_tree("a")); assert_eq!( parse_use_tree("a::self as foo").normalize(), parse_use_tree("a as foo") ); assert_eq!(parse_use_tree("a::{self}").normalize(), parse...
rust_cleaned_test_functions.jsonl/85156
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 371 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15951, 11663, 80807, 368, 341, 286, 2060, 10714, 10297, 6400, 15951, 11663, 445, 64, 486, 721, 1827, 30590, 1507, 4715, 15951, 11663, 445, 64, 4010, 286, 2060, 10714, 33673, 310, 4715, 15951, 11663,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_duration_construction() { let mut dur = ReadableDuration::secs(1); assert_eq!(dur.0, Duration::new(1, 0)); assert_eq!(dur.as_secs(), 1); assert_eq!(dur.as_millis(), 1000); dur = ReadableDuration::millis(1001); assert_eq!(dur.0, Duration::new(1, 1_0...
rust_cleaned_test_functions.jsonl/4779
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 403 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25454, 3382, 3024, 368, 341, 286, 1077, 5206, 10651, 284, 4457, 480, 12945, 486, 53281, 7, 16, 317, 286, 2060, 10714, 10297, 70692, 13, 15, 11, 21045, 486, 931, 7, 16, 11, 220, 15, 1106, 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_empty() { let s = ""; let mut p = Scanner::new(s.chars()); next!(p, StreamStart(..)); next!(p, StreamEnd); end!(p); }
rust_cleaned_test_functions.jsonl/91001
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 368, 341, 286, 1077, 274, 284, 5438, 286, 1077, 5206, 281, 284, 17170, 486, 931, 1141, 85062, 1423, 286, 1790, 10297, 79, 11, 9203, 3479, 56422, 1106, 286, 1790, 10297, 79, 11, 9203, 3727...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_custom_material_loader() { let m = tobj::load_obj_buf(&mut Cursor::new(CORNELL_BOX_OBJ), |p| { match p.to_str().unwrap() { "cornell_box.mtl" => tobj::load_mtl_buf(&mut Cursor::new(CORNELL_BOX_MTL1)), "cornell_box2.mtl" => tobj::load_mtl_buf(&mut Cursor::new(CO...
rust_cleaned_test_functions.jsonl/131091
{ "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, 15875, 33884, 22139, 368, 341, 262, 1077, 296, 284, 24406, 73, 486, 1078, 7328, 10363, 2099, 6984, 28067, 486, 931, 3025, 45952, 19114, 40167, 27559, 701, 760, 79, 91, 341, 286, 2432, 281, 2389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ls_hidden_windows() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; let file = "hiddenWindowsFileNoDot"; at.touch(file); // hide the file scene .cmd("attrib") .arg("+h") .arg("+S") .arg("+r") .arg(file) ...
rust_cleaned_test_functions.jsonl/71216
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 239 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53174, 26739, 58220, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785, 18513, 280, 262, 1077, 1034, 284, 330, 6263, 13164, 1703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_test_literal_format_bug_regression() -> Result<()> { let mut snot = "match %{ test ~= base64|| } of default => \"badger\" end ".to_string(); let mut snot2 = snot.clone(); let badger: Vec<_> = Tokenizer::new(&mut snot).collect(); let mut include_stack = IncludeStac...
rust_cleaned_test_functions.jsonl/45957
{ "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, 4452, 34100, 8955, 73232, 91144, 368, 1464, 5714, 71698, 341, 286, 1077, 5206, 274, 1921, 284, 330, 6347, 63737, 1273, 21684, 2331, 21, 19, 8484, 335, 315, 1638, 589, 7245, 13855, 1389, 2105, 835,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_arena_iter_reverse() { let mut arena = Arena::new(); let indices = [arena.insert(0), arena.insert(1), arena.insert(2)]; assert_eq!(3, arena.len()); for (i, (index, element)) in arena.iter().rev().enumerate() { assert_eq!(indices[2 - i], index); ...
rust_cleaned_test_functions.jsonl/30769
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 30527, 11723, 43277, 368, 341, 286, 1077, 5206, 24902, 284, 27047, 486, 931, 543, 286, 1077, 14937, 284, 508, 30527, 7030, 7, 15, 701, 24902, 7030, 7, 16, 701, 24902, 7030, 7, 17, 12587, 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_u8() { let test = assert_de_tokens_error::<u8>; // from signed test(&[Token::I8(-1)], "invalid value: integer `-1`, expected u8"); test( &[Token::I16(-1)], "invalid value: integer `-1`, expected u8", ); test( &[Token::I32(-1)], "invalid va...
rust_cleaned_test_functions.jsonl/129497
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 538 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7300, 23, 368, 341, 262, 1077, 1273, 284, 2060, 2259, 28838, 4096, 27638, 84, 23, 19421, 262, 442, 504, 8499, 198, 262, 1273, 2099, 58, 3323, 486, 40, 23, 4080, 16, 25035, 330, 11808, 897, 25,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_prune() { let mut crds = Crds::default(); let self_id = solana_sdk::pubkey::new_rand(); let mut push = CrdsGossipPush::default(); let peer = CrdsValue::new_unsigned(CrdsData::ContactInfo(ContactInfo::new_localhost( &solana_sdk::pubkey::new_rand...
rust_cleaned_test_functions.jsonl/10965
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 539 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 5294, 2886, 368, 341, 286, 1077, 5206, 1560, 5356, 284, 4553, 5356, 486, 2258, 543, 286, 1077, 656, 842, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 5206, 448...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1