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_equality() { assert_eq!(Scalar::zero(), Scalar::zero()); assert_eq!(Scalar::one(), Scalar::one()); assert_ne!(Scalar::zero(), Scalar::one()); assert_ne!(Scalar::one(), R2); }
rust_cleaned_test_functions.jsonl/54651
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 10473, 368, 341, 286, 2060, 10714, 10297, 20639, 486, 14154, 1507, 35176, 486, 14154, 1423, 286, 2060, 10714, 10297, 20639, 486, 603, 1507, 35176, 486, 603, 5231, 286, 2060, 13925, 10297, 2063...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_iter_two_split() { let assr = contigs![(2, 6), (4, 1), (1, 0)]; let segments: Vec<_> = assr.iter_data(100).collect(); assert_eq!(segments, vec![(102, 108), (112, 113)]); }
rust_cleaned_test_functions.jsonl/52024
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 23241, 17052, 368, 341, 286, 1077, 1071, 81, 284, 683, 14462, 0, 9697, 17, 11, 220, 21, 701, 320, 19, 11, 220, 16, 701, 320, 16, 11, 220, 15, 12587, 286, 1077, 20632, 25, 11312, 32399...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bit_neg() { let cases = vec![ (Datum::I64(123), Datum::I64(-124)), (Datum::I64(-123), Datum::I64(122)), (Datum::Null, Datum::Null), ]; let mut ctx = EvalContext::default(); for (arg, exp) in cases { let args = &[datu...
rust_cleaned_test_functions.jsonl/16157
{ "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, 13996, 28209, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 68036, 486, 40, 21, 19, 7, 16, 17, 18, 701, 68459, 486, 40, 21, 19, 4080, 16, 17, 19, 6965, 310, 320, 68036, 486, 40, 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_download_sst_wrong_key_prefix() { let (_ext_sst_dir, backend, meta) = create_sample_external_sst_file().unwrap(); let importer_dir = tempfile::tempdir().unwrap(); let importer = SSTImporter::new(&importer_dir, None).unwrap(); let sst_writer = create_sst_writer_wit...
rust_cleaned_test_functions.jsonl/4971
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 449 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35939, 643, 267, 75198, 3097, 13974, 368, 341, 286, 1077, 5453, 427, 643, 267, 4334, 11, 19163, 11, 8823, 8, 284, 1855, 17491, 47432, 643, 267, 2458, 1005, 15454, 543, 286, 1077, 62561, 4334, 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...
2
#[test] fn test_mention_with_member() { let value = Mention { avatar: None, bot: false, discriminator: "0001".to_owned(), id: UserId(1), member: Some(PartialMember { deaf: false, joined_at: None, ...
rust_cleaned_test_functions.jsonl/67374
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1357 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26985, 290, 6615, 19388, 368, 341, 286, 1077, 897, 284, 85148, 341, 310, 20701, 25, 2240, 345, 310, 10924, 25, 895, 345, 310, 81738, 25, 330, 15, 15, 15, 16, 3263, 983, 51973, 3148, 310, 877, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vote_serialization() { let dt = "2017-12-25T03:00:01.234Z".parse::<DateTime<Utc>>().unwrap(); let vote = Vote { vote_type: Type::Prevote, height: Height::from(12345_u32), round: Round::from(2_u16), timestamp: Some(dt.into()), ...
rust_cleaned_test_functions.jsonl/113698
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1427 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54360, 25602, 2022, 368, 341, 286, 1077, 7594, 284, 330, 17, 15, 16, 22, 12, 16, 17, 12, 17, 20, 51, 15, 18, 25, 15, 15, 25, 15, 16, 13, 17, 18, 19, 57, 3263, 6400, 27638, 7689, 36397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ledger_options_override_threads() { let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(123); let (ledger_path, _blockhash) = create_new_tmp_ledger!(&genesis_config); let blockstore = Blockstore::open(&ledger_path).unwrap(); let opts = Pr...
rust_cleaned_test_functions.jsonl/70854
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 308 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 38367, 1389, 8743, 48576, 29725, 368, 341, 286, 1077, 40788, 2648, 1731, 314, 59366, 5332, 11, 5241, 335, 284, 1855, 16322, 13774, 5332, 7, 16, 17, 18, 317, 286, 1077, 320, 50704, 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...
1
#[test] fn test_partition_point() { let b: [i32; 0] = []; assert_eq!(b.partition_point(|&x| x < 5), 0); let b = [4]; assert_eq!(b.partition_point(|&x| x < 3), 0); assert_eq!(b.partition_point(|&x| x < 4), 0); assert_eq!(b.partition_point(|&x| x < 5), 1); let b = [1, 2, 4, 6, 8, 9];...
rust_cleaned_test_functions.jsonl/9611
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 747 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43840, 6085, 368, 341, 262, 1077, 293, 25, 508, 72, 18, 17, 26, 220, 15, 60, 284, 5907, 262, 2060, 10714, 10297, 65, 79009, 6085, 22428, 5, 87, 91, 856, 366, 220, 20, 701, 220, 15, 626, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sort_list() { test_sort_list_arrays::<Int8Type>( vec![ Some(vec![Some(1)]), Some(vec![Some(4)]), Some(vec![Some(2)]), Some(vec![Some(3)]), ], Some(SortOptions { descending:...
rust_cleaned_test_functions.jsonl/39274
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1367 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 2019, 368, 341, 286, 1273, 18435, 2019, 68983, 27638, 1072, 23, 929, 17055, 310, 7486, 90515, 394, 4329, 25592, 20703, 8373, 7, 16, 7252, 1326, 394, 4329, 25592, 20703, 8373, 7, 19, 7252, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lines() { let in_buf = MemReader::new(Vec::from_slice(b"a\nb\nc")); let mut reader = BufferedReader::with_capacity(2, in_buf); let mut it = reader.lines(); assert_eq!(it.next(), Some(Ok("a\n".to_string()))); assert_eq!(it.next(), Some(Ok("b\n".to_string())...
rust_cleaned_test_functions.jsonl/83710
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18323, 368, 341, 286, 1077, 304, 10363, 284, 13550, 5062, 486, 931, 49923, 486, 1499, 26488, 1883, 56693, 1699, 65, 59, 1016, 4010, 286, 1077, 5206, 6604, 284, 25568, 486, 4197, 35603, 7, 17, 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_from_ndarray4_0() { let hw = RefCell::new(CpuHardware::new()); let src = ndarray::Array4::<f32>::from_shape_vec((0, 0, 0, 0), vec![]).unwrap(); let dest = src.into_array(&hw); assert_eq!(*dest.shape(), Shape::new([0, 0, 0, 0])); assert_eq!(dest.get_values_f32(), vec![]); }
rust_cleaned_test_functions.jsonl/73993
{ "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, 5673, 43544, 1653, 19, 62, 15, 368, 341, 262, 1077, 31256, 284, 8550, 3599, 486, 931, 3025, 5584, 66862, 486, 931, 1423, 262, 1077, 2286, 284, 66883, 486, 1857, 19, 27638, 69, 18, 17, 6831, 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_possible_qualified_property_reverts_to_array() { let input = "a.b$(1)"; let eol_reader = EolReader::from(input); let mut parser = word_p(); let (_, result) = parser.parse(eol_reader).expect("Should parse"); ...
rust_cleaned_test_functions.jsonl/102682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 307 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71244, 62, 36335, 16638, 1288, 28163, 2346, 3858, 368, 341, 503, 1077, 1946, 284, 330, 64, 948, 8525, 16, 24023, 503, 1077, 384, 337, 22306, 284, 468, 337, 5062, 486, 1499, 5384, 317, 503, 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_max_vacation_days_2() { let flights = vec![ vec![0,0,0],vec![0,0,0],vec![0,0,0] ]; let days = vec![ vec![1,1,1], vec![7,7,7], vec![7,7,7] ]; assert_eq!(Solution::max_vacation_days(flights, days), 3); }
rust_cleaned_test_functions.jsonl/132369
{ "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, 6345, 2273, 580, 367, 28353, 62, 17, 368, 341, 286, 1077, 24908, 284, 7486, 90515, 310, 7486, 20703, 15, 11, 15, 11, 15, 1125, 4083, 20703, 15, 11, 15, 11, 15, 1125, 4083, 20703, 15, 11, 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_rewrite_with_pending_transaction() { let override_rule = rule!("fuchsia.com" => "fuchsia.com", "/a" => "/c"); let dynamic_config = make_rule_config(vec![rule!("fuchsia.com" => "fuchsia.com", "/a" => "/b")]); let mut manager = RewriteManagerBuilder::new(Some(&d...
rust_cleaned_test_functions.jsonl/46501
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 379 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74052, 6615, 37861, 28884, 368, 341, 286, 1077, 2812, 21124, 284, 5912, 17223, 69, 73391, 905, 1, 589, 330, 69, 73391, 905, 497, 3521, 64, 1, 589, 3521, 66, 797, 286, 1077, 8741, 5332, 4035, 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_retransmit_medium() { let num_nodes = 2000; let stakes: Vec<_> = (0..num_nodes).map(|i| i).collect(); run_simulation(&stakes, 200); }
rust_cleaned_test_functions.jsonl/36196
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 76 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 1458, 1763, 54867, 368, 341, 262, 1077, 1629, 14896, 284, 220, 17, 15, 15, 15, 280, 262, 1077, 44425, 25, 11312, 32399, 29, 284, 320, 15, 496, 2413, 14896, 568, 2186, 22428, 72, 91, 600,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_thread_list() { assert_eq!( query(&b"qfThreadInfo"[..]), Done(&b""[..], Query::ThreadList(true)) ); assert_eq!( query(&b"qsThreadInfo"[..]), Done(&b""[..], Query::ThreadList(false)) ); }
rust_cleaned_test_functions.jsonl/40120
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10814, 2019, 368, 341, 262, 2060, 10714, 33673, 286, 3239, 2099, 65, 1, 80, 69, 6855, 1731, 36864, 496, 17036, 286, 27357, 2099, 65, 3014, 95874, 1125, 11361, 486, 6855, 852, 3715, 1171, 262, 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_iltagcreatorengine_new() { let e: ILTagCreatorEngine = ILTagCreatorEngine::new(false); assert!(!e.strict()); let e: ILTagCreatorEngine = ILTagCreatorEngine::new(true); assert!(e.strict()); }
rust_cleaned_test_functions.jsonl/25704
{ "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, 62, 2963, 351, 837, 44009, 70891, 5921, 368, 341, 262, 1077, 384, 25, 11344, 5668, 31865, 4571, 284, 11344, 5668, 31865, 4571, 486, 931, 3576, 317, 262, 2060, 0, 3471, 68, 40699, 5231, 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_base58_encode() { // Basics assert_eq!(&_encode_slice(&[0][..]), "1"); assert_eq!(&_encode_slice(&[1][..]), "2"); assert_eq!(&_encode_slice(&[58][..]), "21"); assert_eq!(&_encode_slice(&[13, 36][..]), "211"); // Leading zeroes assert_eq!(&_encode_slice(&[0, 13, 36][..]), "1211"); ...
rust_cleaned_test_functions.jsonl/42585
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 293 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7651, 20, 23, 11224, 368, 341, 197, 197, 322, 67176, 198, 197, 6948, 10714, 0, 49038, 6180, 26488, 2099, 58, 15, 1457, 496, 9719, 330, 16, 797, 197, 6948, 10714, 0, 49038, 6180, 26488, 2099, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_limit_typecheck() { assert_cli::Assert::main_binary() .with_args(&["* | limit 0"]) .fails() .and() .stderr() .contains("Error: Limit must be a non-zero integer, found 0") .unwrap(); assert_cli::Assert::main_b...
rust_cleaned_test_functions.jsonl/15996
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 303 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14763, 1819, 2028, 368, 341, 286, 2060, 47147, 486, 8534, 486, 3817, 31761, 741, 310, 659, 4197, 8384, 2099, 1183, 9, 760, 3930, 220, 15, 14108, 310, 659, 59631, 741, 310, 659, 437, 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_parse_escapes() { assert_eq!( FormatString::parse("abc\\0\\t\\n\\\\\\141de\\cf") .unwrap() .components, vec![ FormatComponent::Literal("abc".to_owned()), FormatComponent::Literal("\0".to_owned()), ...
rust_cleaned_test_functions.jsonl/69243
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 455 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 92196, 9337, 368, 341, 286, 2060, 10714, 33673, 310, 15042, 703, 486, 6400, 445, 13683, 3422, 15, 3422, 83, 3422, 77, 51007, 3422, 16, 19, 16, 450, 3422, 9792, 1138, 394, 659, 15454, 741,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_memory_pool() -> Result<()> { let pool = MemoryPool::new( &ModuleLimits { imported_functions: 0, imported_tables: 0, imported_memories: 0, imported_globals: 0, types: 0, functions:...
rust_cleaned_test_functions.jsonl/48874
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 790 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19195, 15709, 368, 1464, 5714, 71698, 341, 286, 1077, 7314, 284, 13850, 10551, 486, 931, 1006, 310, 609, 3332, 94588, 341, 394, 24928, 31708, 25, 220, 15, 345, 394, 24928, 35632, 25, 220, 15, 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...
4
#[test] fn test_validate_is_bad() { assert!(phrase_is_ok( &"spark remain person kitchen mule spell knee armed position rail grid ankle park remain person kitchen mule spell knee armed position rail grid ankle".split_whitespace().collect::<Vec<&str>>() ).is_err()) }
rust_cleaned_test_functions.jsonl/44000
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 115 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 6892, 34199, 368, 341, 286, 2060, 10297, 27710, 6892, 19817, 1006, 310, 609, 1, 53782, 7146, 1697, 9780, 296, 1111, 12845, 21381, 17445, 2309, 13569, 5827, 38348, 6118, 7146, 1697, 9780, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_exclusion_list() { let crypto = OpenMlsRustCrypto::default(); for ciphersuite in Config::supported_ciphersuites() { // Number of nodes in the tree const NODES: usize = 31; // Resolution for the root node of that tree const FULL_RESOLUTION: &[usize] = ...
rust_cleaned_test_functions.jsonl/82138
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1476 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2702, 8957, 2019, 368, 341, 262, 1077, 19028, 284, 5264, 44, 4730, 49, 590, 58288, 486, 2258, 543, 262, 369, 272, 82077, 9302, 304, 5532, 486, 18216, 666, 82077, 3083, 288, 368, 341, 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...
4
#[test] fn test_sort_assemble_sorters_by_extension() { let tmp_dir = tempdir().expect("failed to create temp dir"); // Create the file with rs extension; let path_a = tmp_dir.path().join("aaa.rs"); File::create(&path_a).expect("failed to create file"); let meta_a = Meta:...
rust_cleaned_test_functions.jsonl/17866
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 667 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 11898, 15790, 18435, 388, 3710, 31035, 368, 341, 286, 1077, 4174, 4334, 284, 2730, 3741, 1005, 17119, 445, 16091, 311, 1855, 2730, 5419, 3071, 286, 442, 4230, 279, 1034, 448, 10036, 8894, 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_wallet_witness_tx() { let (server, leader_data, alice, ledger_path) = new_validator_for_tests(); let bob_pubkey = Pubkey::new_rand(); let (sender, receiver) = channel(); run_local_drone(alice, sender, None); let drone_addr = receiver.recv().unwrap(); let rpc_client = Rp...
rust_cleaned_test_functions.jsonl/38405
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 943 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62308, 1670, 8091, 17805, 368, 341, 262, 1077, 320, 4030, 11, 7653, 1769, 11, 70433, 11, 46933, 2638, 8, 284, 501, 64959, 5478, 32509, 543, 262, 1077, 35192, 34014, 792, 284, 22611, 792, 486, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iterator_empty() { let nums = &vec![]; let mut sap = SumPairs::new(&nums); assert_eq!(sap.next(), None); assert_eq!(sap.next(), None); }
rust_cleaned_test_functions.jsonl/2007
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 15124, 368, 341, 286, 1077, 10307, 284, 609, 4083, 0, 15078, 286, 1077, 5206, 34635, 284, 8116, 54228, 486, 931, 2099, 26350, 626, 286, 2060, 10714, 10297, 64613, 4529, 1507, 2240, 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
#[test] fn test_that_python_code_parses_and_passes_pyre_check() { let registry = get_diem_registry(); let abis = get_stdlib_script_abis(); let dir = tempdir().unwrap(); let src_dir_path = dir.path().join("src"); let installer = serdegen::python3::Installer::new(src_dir_path.clone(),...
rust_cleaned_test_functions.jsonl/3889
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70197, 55869, 4136, 77113, 288, 8378, 15464, 288, 40291, 265, 7200, 368, 341, 262, 1077, 19424, 284, 633, 814, 26862, 50650, 543, 262, 1077, 668, 285, 284, 633, 15656, 2740, 14660, 62, 15367, 543,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_random_bit_extraction() { // Length of the data vector we'll be extracting from. let len = 20; let rng = &mut XorShiftRng::from_seed(crate::TEST_SEED); let data: Vec<u8> = (0..len).map(|_| rng.gen()).collect(); // TODO: Evaluate designing a scattered pat...
rust_cleaned_test_functions.jsonl/32992
{ "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, 22644, 13996, 94842, 368, 341, 286, 442, 17287, 315, 279, 821, 4621, 582, 3278, 387, 59408, 504, 624, 286, 1077, 2422, 284, 220, 17, 15, 401, 286, 1077, 28422, 284, 609, 6984, 1599, 269, 24841, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parser() { let p = Commands::default().line_parser(); assert_eq!( p.parse(":set foo = value"), Ok(( Command::Set("foo".to_owned(), Value::Ident(String::from("value"))), "" )) ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/95931
{ "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, 18517, 368, 341, 286, 1077, 281, 284, 47183, 486, 2258, 1005, 1056, 18517, 1428, 286, 2060, 10714, 33673, 310, 281, 4632, 18893, 746, 15229, 284, 897, 4461, 310, 7622, 94702, 394, 7348, 486, 1649,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_persist_transaction_status() { let GenesisConfigInfo { genesis_config, mint_keypair, .. } = create_genesis_config(1000); let (ledger_path, _) = create_new_tmp_ledger!(&genesis_config); { let blockstore = Blocks...
rust_cleaned_test_functions.jsonl/11054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 620, 4975, 28884, 4773, 368, 341, 286, 1077, 40788, 2648, 1731, 341, 310, 59366, 5332, 345, 310, 28337, 3097, 12670, 345, 310, 54538, 286, 335, 284, 1855, 16322, 13774, 5332, 7, 16, 15, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_obscure_problems() { test_stdout( "[]++++++++++[>>+>+>++++++[<<+<+++>>>-]<<<<-]\"A*$\";?@![#>>+<<]>[>>]<<<<[>++<[-]]>.>.", "H\n", ); }
rust_cleaned_test_functions.jsonl/101574
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36322, 2388, 552, 2540, 21699, 368, 341, 1066, 262, 1273, 67416, 1006, 286, 330, 1294, 25393, 1027, 58, 2452, 10, 95326, 29, 14565, 1027, 58, 2442, 10, 27, 62730, 20154, 12, 60, 35684, 12, 60, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_copy() { Python::with_gil(|py| { let dict = [(7, 32)].into_py_dict(py); let ndict = dict.copy().unwrap(); assert_eq!(32, ndict.get_item(7i32).unwrap().extract::<i32>().unwrap()); assert!(ndict.get_item(8i32).is_none()); }); }
rust_cleaned_test_functions.jsonl/7717
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16096, 368, 341, 286, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 310, 1077, 6451, 284, 17826, 22, 11, 220, 18, 17, 26169, 18122, 40291, 5243, 46827, 626, 310, 1077, 15581, 849, 284, 6451...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_string() { { // Empty file assert!(read_string(&mut &Vec::new()[..]).is_err()); } { // Just the prefix let mut data = &0_i32.to_le_bytes()[..]; assert_eq!(read_string(&mut data).unwrap(), ""); } ...
rust_cleaned_test_functions.jsonl/37246
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 872 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 3904, 368, 341, 286, 341, 310, 442, 22228, 1034, 198, 310, 2060, 10297, 878, 3904, 2099, 6984, 609, 10050, 486, 931, 10116, 496, 10697, 285, 9266, 1423, 286, 456, 286, 341, 310, 442, 4599,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_serde_laporan_status() { let laporan_status = LaporanStatus::TerkirimBelumDiApprove; let laporan_status_in_json = laporan_status.to_json(); let expected_laporan_status_in_json = "\"terkirim_belum_di_approve\""; assert_eq!(laporan_status_in_json, expected_laporan_s...
rust_cleaned_test_functions.jsonl/8641
{ "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, 75861, 450, 907, 71739, 4773, 368, 341, 286, 1077, 326, 71739, 4773, 284, 444, 71739, 2522, 486, 51, 16754, 61372, 21666, 372, 21685, 28588, 586, 280, 286, 1077, 326, 71739, 4773, 1243, 9455, 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_zero_on_nonzero_integer_i64() { let bytes = &[0; 8]; assert_eq!( std::num::NonZeroI64::try_from_slice(bytes) .unwrap_err() .to_string(), ERROR_INVALID_ZERO_VALUE ); }
rust_cleaned_test_functions.jsonl/103724
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19359, 4470, 21637, 14154, 31725, 5318, 21, 19, 368, 341, 262, 1077, 5820, 284, 44590, 15, 26, 220, 23, 935, 262, 2060, 10714, 33673, 286, 1460, 486, 2413, 486, 8121, 17999, 40, 21, 19, 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...
1
#[test] fn test_valid_vm_config_cpus() { vec![ ( vec![ "cloud-hypervisor", "--kernel", "/path/to/kernel", "--cpus", "boot=1", ], r#"{ ...
rust_cleaned_test_functions.jsonl/4720
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1098 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8337, 39008, 5332, 90673, 368, 341, 286, 7486, 90515, 310, 2399, 394, 7486, 90515, 503, 330, 12361, 2832, 1082, 31396, 756, 503, 14482, 23248, 756, 503, 3521, 2343, 32429, 58343, 756, 503, 14482, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rate_limiter_configs() { const SIZE: u64 = 1024 * 1024; const ONE_TIME_BURST: u64 = 1024; const REFILL_TIME: u64 = 1000; let b: TokenBucket = TokenBucketConfig { size: SIZE, one_time_burst: Some(ONE_TIME_BURST), refill_time: RE...
rust_cleaned_test_functions.jsonl/88255
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9246, 907, 17700, 59150, 368, 341, 286, 733, 25341, 25, 575, 21, 19, 284, 220, 16, 15, 17, 19, 353, 220, 16, 15, 17, 19, 280, 286, 733, 24038, 10051, 1668, 1511, 784, 25, 575, 21, 19, 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_domain_socket() { use std::io::prelude::*; use std::thread; use tempdir::TempDir; use unix_socket::UnixListener; let dir = TempDir::new("unix_socket").expect("failed to create dir"); let socket_path = dir.path().join("sock"); let listener = UnixListener::bind(&socket...
rust_cleaned_test_functions.jsonl/90945
{ "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, 20111, 19555, 368, 341, 262, 990, 1460, 486, 815, 486, 1726, 52538, 56162, 262, 990, 1460, 486, 4528, 280, 262, 990, 2730, 3741, 486, 12151, 6184, 280, 262, 990, 51866, 19555, 486, 55832, 2743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_seek() { for &input_len in crate::test::TEST_CASES { println!(); println!("input_len {}", input_len); let input = make_test_input(input_len); let (encoded, hash) = encode::encode(&input); for &seek in crate::test::TEST_CASES { ...
rust_cleaned_test_functions.jsonl/118136
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 764 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74473, 368, 341, 286, 369, 609, 1355, 6043, 304, 17717, 486, 1944, 486, 10033, 28540, 50, 341, 310, 13751, 0, 543, 310, 13751, 17223, 1355, 6043, 24689, 1946, 6043, 317, 310, 1077, 1946, 284, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_get_rust_src_path_does_not_exist() { use std::env; let _guard = TEST_SEMAPHORE.lock().unwrap(); let original = env::var_os("RUST_SRC_PATH"); env::set_var("RUST_SRC_PATH", "test_path"); let result = get_rust_src_path(); match original { Some(path) => env::set_va...
rust_cleaned_test_functions.jsonl/126172
{ "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, 3062, 1710, 590, 16274, 2638, 96374, 7913, 35906, 368, 341, 262, 990, 1460, 486, 3160, 401, 262, 1077, 716, 26098, 284, 13602, 3620, 17617, 39, 5881, 21003, 1005, 15454, 1428, 262, 1077, 4024, 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...
2
#[test] fn test_trigger_right_hook() { let mut host = CoprocessorHost::<PanicEngine>::default(); let ob = TestCoprocessor::default(); host.registry .register_admin_observer(1, BoxAdminObserver::new(ob.clone())); host.registry .register_query_observer(1, Bo...
rust_cleaned_test_functions.jsonl/17206
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1252 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32925, 10539, 32005, 368, 341, 286, 1077, 5206, 3468, 284, 24946, 40848, 269, 9296, 27638, 47, 31270, 4571, 6831, 2258, 543, 286, 1077, 1508, 284, 3393, 56277, 40848, 269, 486, 2258, 543, 286, 346...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_origins() { let cors = Cors::build() .allowed_origin("https://example.com") .allowed_origin("https://example.org") .allowed_methods(vec![Method::GET]) .finish(); let req = TestRequest::with_header("Origin", "https://examp...
rust_cleaned_test_functions.jsonl/90073
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 641 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 35328, 1330, 368, 341, 286, 1077, 43911, 284, 52518, 486, 5834, 741, 310, 659, 20967, 34043, 445, 2428, 1110, 8687, 905, 1138, 310, 659, 20967, 34043, 445, 2428, 1110, 8687, 2659, 1138, 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_encoding() { assert_eq!( Label::from_utf8("abc").unwrap(), Label::from_raw_bytes(b"abc").unwrap() ); assert_eq!( Label::from_utf8("ABC").unwrap(), Label::from_raw_bytes(b"ABC").unwrap() ); assert_eq!...
rust_cleaned_test_functions.jsonl/5048
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 506 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37613, 368, 341, 286, 2060, 10714, 33673, 310, 9402, 486, 1499, 39453, 23, 445, 13683, 1827, 15454, 3148, 310, 9402, 486, 1499, 16067, 12524, 1883, 1, 13683, 1827, 15454, 741, 286, 1439, 1789, 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_swap() { let mut m = SmallIntMap::new(); assert_eq!(m.swap(1, 2), None); assert_eq!(m.swap(1, 3), Some(2)); assert_eq!(m.swap(1, 4), Some(3)); }
rust_cleaned_test_functions.jsonl/7536
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40991, 368, 341, 286, 1077, 5206, 296, 284, 14994, 1072, 2227, 486, 931, 543, 286, 2060, 10714, 10297, 76, 54537, 7, 16, 11, 220, 17, 701, 2240, 317, 286, 2060, 10714, 10297, 76, 54537, 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, 1, 1, 1, 1...
1
#[test] fn test_not_in_array() { let result = linear_search(&vec![1, 2, 3, 4, 5], 6); assert_eq!(result, None); }
rust_cleaned_test_functions.jsonl/50279
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7913, 1243, 3858, 368, 341, 286, 1077, 1102, 284, 13482, 10716, 2099, 4083, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 1125, 220, 21, 317, 286, 2060, 10714, 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_Py_GetVersion() { let version = unsafe { CStr::from_ptr(Py_GetVersion()) }.to_str().unwrap(); println!("Py_GetVersion: {}", version); }
rust_cleaned_test_functions.jsonl/118936
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 68 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1088, 88, 13614, 5637, 368, 341, 262, 1077, 2319, 284, 19860, 314, 356, 2580, 486, 1499, 4348, 41998, 13614, 5637, 2140, 16908, 983, 2895, 1005, 15454, 543, 262, 13751, 17223, 13828, 13614, 5637, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_eval_remember_state() { let cie = make_test_cie(); let ctx = UnwindContext::new(); let mut expected = ctx.clone(); expected.push_row().unwrap(); let instructions = [(Ok(false), CallFrameInstruction::RememberState)]; assert_eval(ctx, expected, cie, ...
rust_cleaned_test_functions.jsonl/9364
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 1288, 9597, 4387, 368, 341, 286, 1077, 272, 645, 284, 1281, 4452, 666, 645, 543, 286, 1077, 5635, 284, 1230, 19154, 1972, 486, 931, 543, 286, 1077, 5206, 3601, 284, 5635, 15997, 543, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_waypoint_parsing() { let waypoint = Waypoint { version: 123, value: HashValue::random(), }; let waypoint_str = waypoint.to_string(); let parsed_waypoint = Waypoint::from_str(&waypoint_str).unwrap(); assert_eq!(waypoint, parsed_waypo...
rust_cleaned_test_functions.jsonl/17487
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 157 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48936, 2768, 620, 28598, 368, 341, 286, 1077, 65176, 284, 12149, 2768, 341, 310, 2319, 25, 220, 16, 17, 18, 345, 310, 897, 25, 6531, 1130, 486, 11463, 3148, 286, 2605, 286, 1077, 65176, 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_parse_comment() { let res = expression(Span::new("--comment\n")); assert!(res.is_ok()); assert_eq!(res.unwrap().1, Expr::Comment("comment")) }
rust_cleaned_test_functions.jsonl/32923
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 77 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 17638, 368, 341, 262, 1077, 592, 284, 7493, 3759, 848, 486, 931, 21549, 6182, 1699, 14929, 262, 2060, 10297, 416, 2079, 19817, 5231, 262, 2060, 10714, 10297, 416, 55395, 1005, 16, 11, 28819...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_encode_datetime() { let mut buf = PgRawBuffer::default(); Encode::<Postgres>::encode(&POSTGRES_EPOCH, &mut buf); assert_eq!(&**buf, [0; 8]); buf.clear(); // one hour past epoch let date = POSTGRES_EPOCH + 1.hours(); Encode::<Postgres>::encode(&date, &mut buf); a...
rust_cleaned_test_functions.jsonl/21436
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 292 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 28943, 368, 341, 262, 1077, 5206, 6607, 284, 97265, 20015, 4095, 486, 2258, 1428, 262, 56562, 27638, 4133, 17818, 6831, 6180, 2099, 2946, 91891, 2089, 69945, 11, 609, 6984, 6607, 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
#[test] fn test_miles_to_au() { let res = Mile::new(1.0e7).convert_scalar(&DistanceUnit::AstronomicalUnit); assert!(res.is_ok()); assert!(is_close(0.107_642_264, res.unwrap()), "res was {:?}", res); }
rust_cleaned_test_functions.jsonl/111639
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 3658, 2346, 62, 2863, 368, 341, 286, 1077, 592, 284, 38597, 486, 931, 7, 16, 13, 15, 68, 22, 568, 14166, 41652, 2099, 14778, 4562, 486, 32, 495, 14274, 938, 4562, 626, 286, 2060, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_accounts_db_purge1() { solana_logger::setup(); let some_lamport = 223; let zero_lamport = 0; let no_data = 0; let owner = Account::default().owner; let account = Account::new(some_lamport, no_data, &owner); let pubkey = Pubkey::new_rand();...
rust_cleaned_test_functions.jsonl/33682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 865 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55665, 8685, 620, 39823, 16, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 1045, 907, 309, 403, 284, 220, 17, 17, 18, 280, 286, 1077, 7168, 907, 309, 403, 284, 220, 15, 280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mvcc_txn_prewrite() { test_mvcc_txn_prewrite_imp(b"k1", b"v1"); let long_value = gen_value(b'v', SHORT_VALUE_MAX_LEN + 1); test_mvcc_txn_prewrite_imp(b"k2", &long_value); }
rust_cleaned_test_functions.jsonl/23326
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73187, 638, 92299, 620, 52473, 368, 341, 286, 1273, 73187, 638, 92299, 620, 52473, 36788, 1883, 62911, 16, 497, 293, 1, 85, 16, 3071, 286, 1077, 1293, 3142, 284, 4081, 3142, 1883, 6, 85, 516, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_linking_with_period_crossing() { run_test_with_periodicity(Timestamp::new(100.0), || { let ipps1 = [ TTFPoint { at: Timestamp::ZERO, val: FlWeight::new(105.0), }, TTFPoint { ...
rust_cleaned_test_functions.jsonl/38573
{ "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, 7233, 287, 6615, 20818, 35284, 287, 368, 341, 286, 1598, 4452, 6615, 20818, 61691, 4140, 4702, 486, 931, 7, 16, 15, 15, 13, 15, 701, 1369, 341, 310, 1077, 5997, 1690, 16, 284, 2278, 394, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_iterator_peekable_rfold() { let xs = [0, 1, 2, 3, 4, 5]; let mut it = xs.iter().peekable(); assert_eq!(it.peek(), Some(&&0)); let i = it.rfold(0, |i, &x| { assert_eq!(x, xs[xs.len() - 1 - i]); i + 1 }); assert_eq!(i, xs.len()); }
rust_cleaned_test_functions.jsonl/70161
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 62, 29107, 480, 1710, 19961, 368, 341, 262, 1077, 11943, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 262, 1077, 5206, 432, 284, 11943, 19471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_breakpad_functions() -> Result<(), Error> { let view = ByteView::open(fixture("windows/crash.sym"))?; let object = Object::parse(&view)?; let session = object.debug_session()?; let functions = session.functions().collect::<Result<Vec<_>, _>>()?; insta::assert_debug_snapshot!...
rust_cleaned_test_functions.jsonl/82871
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39494, 13242, 31708, 368, 1464, 5714, 68843, 4600, 29, 341, 262, 1077, 1651, 284, 10906, 851, 486, 2508, 94886, 445, 27077, 2899, 81, 988, 50901, 2761, 37445, 262, 1077, 1633, 284, 3002, 486, 6400...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_schema_config_changes() { use storage::StorageValue; let sandbox = timestamping_sandbox(); let sandbox_state = SandboxState::new(); add_one_height(&sandbox, &sandbox_state); let (tx_cfg, following_cfg) = { let mut consensus_cfg = sandbox.cfg(); consensus_cf...
rust_cleaned_test_functions.jsonl/8888
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 961 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25371, 5332, 47526, 368, 341, 262, 990, 5819, 486, 5793, 1130, 401, 262, 1077, 42754, 284, 11441, 287, 643, 31536, 543, 262, 1077, 42754, 4387, 284, 96860, 1397, 486, 931, 1428, 262, 912, 11667, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_option() { assert_missing!(eval!("Option()"), "Every value was missing"); assert_missing!(eval!("Option(a, b, c, d)"), "Every value was missing"); assert_eq!(eval!("Option(5)"), i(5)); assert_eq!(eval!("Option(5, a)"), i(5)); assert_eq!(eval!("Option(a, 5,...
rust_cleaned_test_functions.jsonl/68260
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 356 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9672, 368, 341, 286, 2060, 40447, 10297, 14170, 17223, 5341, 368, 3975, 330, 11510, 897, 572, 7402, 797, 286, 2060, 40447, 10297, 14170, 17223, 5341, 2877, 11, 293, 11, 272, 11, 294, 8, 3975, 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_exec() { let toml_str = include_str!("./genesis_services.toml"); let genesis: Genesis = toml::from_str(toml_str).unwrap(); let db = Arc::new(MemoryDB::new(false)); let root = ServiceExecutor::create_genesis( genesis.services, Arc::clone(&db), Arc::new(Mo...
rust_cleaned_test_functions.jsonl/50147
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 578 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18430, 368, 341, 262, 1077, 311, 1014, 2895, 284, 2924, 2895, 0, 13988, 77894, 39846, 73494, 75, 797, 262, 1077, 59366, 25, 40788, 284, 311, 1014, 486, 1499, 2895, 1155, 316, 75, 2895, 568, 1545...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_instant_and_data() { // verify implementation of InstantAndData to be used as a complex type // in a BinaryHeap: let mut heap = BinaryHeap::<InstantAndData<usize>>::new(); let now = DummyInstant::default(); fn new_data(time: DummyInstant, id: usize) -> In...
rust_cleaned_test_functions.jsonl/29517
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 450 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 4706, 8378, 1769, 368, 341, 286, 442, 10146, 8129, 315, 18058, 3036, 1043, 311, 387, 1483, 438, 264, 6351, 943, 198, 286, 442, 304, 264, 17718, 27909, 510, 286, 1077, 5206, 17364, 284, 177...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_plain_into_header_value() { let challenge = Basic { realm: None, }; let value = challenge.try_into(); assert!(value.is_ok()); let value = value.unwrap(); assert_eq!(value, "Basic"); }
rust_cleaned_test_functions.jsonl/52032
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41015, 45514, 8757, 3142, 368, 341, 286, 1077, 8645, 284, 14625, 341, 310, 21889, 25, 2240, 345, 286, 3634, 286, 1077, 897, 284, 8645, 48779, 45514, 543, 286, 2060, 10297, 957, 2079, 19817, 1423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_classes_vec() { assert_eq!( sort_classes_vec( vec![ "inline", "inline-block", "random-class", "py-2", "justify-end", "px-2", "flex" ] ...
rust_cleaned_test_functions.jsonl/70801
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 385 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 16833, 13251, 368, 341, 262, 2060, 10714, 33673, 286, 3378, 16833, 13251, 1006, 310, 7486, 90515, 394, 330, 5057, 756, 394, 330, 5057, 9425, 756, 394, 330, 11463, 14800, 756, 394, 330, 3288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ipranges() { let app = app(Forwarding::trust_ips(["10.10.10.10", "192.168.0.0/16"])); assert_ok!( get("/") .with_request_header(("forwarded", "for=192.0.2.60;proto=https;host=example.com")) .with_peer_ip("10.10.10.10".parse().unwrap()) .on(&ap...
rust_cleaned_test_functions.jsonl/76808
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 628 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10385, 66562, 368, 341, 262, 1077, 906, 284, 906, 7, 25925, 287, 486, 56655, 71074, 19065, 16, 15, 13, 16, 15, 13, 16, 15, 13, 16, 15, 497, 330, 16, 24, 17, 13, 16, 21, 23, 13, 15, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_solid_field_be_empty() { let mut cmd = assert_cmd::Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap(); cmd.args(&["-s", "-d", ",", "-f", "3-", "grep", "G"]) .write_stdin("AAA,BBB,CCC,DDD\nEEE,FFF,GGG,HHH\n") .assert() .stdout("AAA,BBB,,\nEEE,F...
rust_cleaned_test_functions.jsonl/7938
{ "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, 643, 5192, 5013, 21263, 15124, 368, 341, 286, 1077, 5206, 5439, 284, 2060, 11684, 486, 4062, 486, 66715, 21816, 16978, 17223, 34, 7581, 46, 94126, 4708, 15197, 15454, 543, 286, 5439, 16365, 2099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_aead_encrypt() { const pt: [u8; AES_BLOCKSIZE] = [ 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, ]; const assocdata: [u8; 16] = [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x...
rust_cleaned_test_functions.jsonl/9068
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2035 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4306, 3149, 66593, 368, 341, 286, 733, 10817, 25, 508, 84, 23, 26, 38841, 18756, 20494, 60, 284, 2278, 310, 220, 15, 87, 19, 16, 11, 220, 15, 87, 19, 16, 11, 220, 15, 87, 19, 16, 11, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_large_sigs() { // use any large number to be misinterpreted as 2 bytes when decoded as short_vec let required_num_sigs = 214; let actual_num_sigs = 5; let packet = packet_from_num_sigs(required_num_sigs, actual_num_sigs); let unsanitized_packet_offsets =...
rust_cleaned_test_functions.jsonl/70704
{ "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, 45228, 643, 14462, 368, 341, 286, 442, 990, 894, 3460, 1372, 311, 387, 5786, 93461, 438, 220, 17, 5820, 979, 29213, 438, 2805, 13251, 198, 286, 1077, 2567, 4273, 643, 14462, 284, 220, 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_shortest_distance() { assert_eq!(Solution::shortest_distance(vec_vec_i32![[1, 0, 2, 0, 1], [0, 0, 0, 0, 0], [0, 0, 1, 0, 0]]), 7); }
rust_cleaned_test_functions.jsonl/81683
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16673, 477, 19464, 368, 341, 286, 2060, 10714, 10297, 36842, 486, 8676, 477, 19464, 25592, 13251, 5318, 18, 17, 0, 15505, 16, 11, 220, 15, 11, 220, 17, 11, 220, 15, 11, 220, 16, 1125, 508, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_valid_sqs_delete_message_batch() { let mock_response = MockResponseReader::read_response( "test_resources/generated/valid", "sqs-delete-message-batch.xml", ); let mock = MockRequestDispatcher::with_status(200).with_body(&mock_response); ...
rust_cleaned_test_functions.jsonl/49935
{ "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, 21039, 8337, 643, 26358, 11353, 6462, 14534, 368, 341, 286, 1077, 7860, 9655, 284, 14563, 2582, 5062, 486, 878, 9655, 1006, 310, 330, 1944, 35569, 79372, 14, 1891, 756, 310, 330, 82, 26358, 40904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_subkey_disposition() { let hkcu = RegKey::predef(HKEY_CURRENT_USER); let path = "Software\\WinRegRsTestCreateSubkey"; let (_subkey, disp) = hkcu.create_subkey(path).unwrap(); assert_eq!(disp, REG_CREATED_NEW_KEY); let (_subkey2, disp2) = hkcu.create_subkey(path).unwrap...
rust_cleaned_test_functions.jsonl/128083
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 5228, 792, 9932, 3487, 368, 341, 262, 1077, 83381, 20199, 284, 3184, 1592, 486, 1726, 750, 10896, 4784, 32938, 9107, 317, 262, 1077, 1815, 284, 330, 19250, 3422, 16970, 3477, 42327, 2271, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pop() { let mut list = ConcurrentList::new(); list.push("1".to_owned()); list.push("2".to_owned()); list.push("3".to_owned()); assert_eq!(list.pop().unwrap(), "3"); assert_eq!(list.pop().unwrap(), "2"); assert_eq!(list.pop().unwrap(), "1"); assert_eq!(list.pop()...
rust_cleaned_test_functions.jsonl/99284
{ "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, 17061, 368, 341, 262, 1077, 5206, 1140, 284, 42704, 852, 486, 931, 1428, 262, 1140, 2552, 445, 16, 3263, 983, 51973, 1423, 262, 1140, 2552, 445, 17, 3263, 983, 51973, 1423, 262, 1140, 2552, 445,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_verify_account_references() { let accounts = vec![( solana_sdk::pubkey::new_rand(), Rc::new(RefCell::new(AccountSharedData::default())), )]; assert!(MessageProcessor::verify_account_references(&accounts).is_ok()); let mut _borrowed = acco...
rust_cleaned_test_functions.jsonl/15691
{ "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, 35638, 13500, 92702, 368, 341, 286, 1077, 9618, 284, 7486, 20703, 1006, 310, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 3148, 310, 81463, 486, 931, 7, 3945, 3599, 486, 931, 65360, 16997, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hook10() { test("((function () {}), true) ? a() : b()", "a()"); test( "((function () {alert(x)})(), true) ? a() : b()", "(function(){alert(x)})(),a()", ); }
rust_cleaned_test_functions.jsonl/439
{ "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, 32005, 16, 15, 368, 341, 262, 1273, 445, 1188, 1688, 1719, 4687, 701, 830, 8, 937, 264, 368, 549, 293, 50514, 330, 64, 45961, 262, 1273, 1006, 286, 330, 1188, 1688, 1719, 314, 5083, 2075, 9832...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_format_docs_handles_rust_alias() { let comment = "```ignore\nlet z = 55;\n```"; assert_eq!(format_docs(comment), "```rust\nlet z = 55;\n```"); }
rust_cleaned_test_functions.jsonl/57085
{ "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, 8955, 49692, 68017, 1710, 590, 35947, 368, 341, 286, 1077, 3980, 284, 330, 73594, 13130, 1699, 1149, 1147, 284, 220, 20, 20, 17882, 77, 73594, 876, 286, 2060, 10714, 10297, 2243, 49692, 39327, 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
#[test] fn test_import_mode_timeout() { let temp_dir = Builder::new() .prefix("test_import_mode_timeout") .tempdir() .unwrap(); let db = new_test_engine(temp_dir.path().to_str().unwrap(), &["a", "b"]); let import_db_options = ImportModeDBOptions::new(...
rust_cleaned_test_functions.jsonl/29500
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 583 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18434, 7302, 20537, 368, 341, 286, 1077, 2730, 4334, 284, 20626, 486, 931, 741, 310, 659, 11849, 445, 1944, 18434, 7302, 20537, 1138, 310, 659, 3888, 3741, 741, 310, 659, 15454, 543, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_u32_bigendian() { let mut storage = vec![0; 1024]; type Field1 = PrimitiveField<u32, BigEndian, 5>; type Field2 = PrimitiveField<u32, BigEndian, 20>; Field1::write(&mut storage, 10u32.pow(8)); Field2::write(&mut storage, 10u32.pow(7)); assert_eq...
rust_cleaned_test_functions.jsonl/35732
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 430 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7300, 18, 17, 36386, 408, 1103, 368, 341, 286, 1077, 5206, 5819, 284, 7486, 20703, 15, 26, 220, 16, 15, 17, 19, 4821, 286, 943, 8601, 16, 284, 51460, 1877, 34837, 18, 17, 11, 6164, 43231, 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_write_read_many() { let mut t: Turbine<TestSlot> = Turbine::new(1024); let e1 = t.ep_new().unwrap(); let event_processor = t.ep_finalize(e1); let (tx, rx): (Sender<isize>, Receiver<isize>) = channel(); let _future = thread::spawn(move|| { let...
rust_cleaned_test_functions.jsonl/65717
{ "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, 9165, 6443, 22101, 368, 341, 286, 1077, 5206, 259, 25, 8705, 46561, 71273, 19877, 29, 284, 8705, 46561, 486, 931, 7, 16, 15, 17, 19, 317, 286, 1077, 384, 16, 284, 259, 33376, 5921, 1005, 15454...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_or_with_one_gte_to_string() { let name1 = _random_vector(10); let value1 = _random_string(10); let query = Operator::Or( vec![ Operator::Gte( TagName::PlainTagName(name1.clone()), TargetValue::Unencrypte...
rust_cleaned_test_functions.jsonl/11911
{ "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, 8734, 6615, 11667, 1889, 665, 2346, 3904, 368, 341, 286, 1077, 829, 16, 284, 716, 11463, 12247, 7, 16, 15, 317, 286, 1077, 897, 16, 284, 716, 11463, 3904, 7, 16, 15, 626, 286, 1077, 3239, 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_source_code_headers_get_and_save() { let (_temp_dir, fetcher) = test_setup(); let url = Url::parse("http://example.com/f.js").unwrap(); let headers_filepath = fetcher.deps_cache.location.join( fetcher .deps_cache .get_cache_filename_with_extension(&url, "headers...
rust_cleaned_test_functions.jsonl/16749
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 625 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10347, 4136, 26719, 3062, 8378, 15376, 368, 341, 262, 1077, 5453, 3888, 4334, 11, 7807, 261, 8, 284, 1273, 21363, 543, 262, 1077, 2515, 284, 22840, 486, 6400, 445, 1254, 1110, 8687, 905, 6663, 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_read_hash_sync() { let tmp = tempfile::tempdir().unwrap(); let dir = tmp.path().to_owned(); let sri = crate::write_sync(&dir, "my-key", b"hello world").unwrap(); let data = crate::read_hash_sync(&dir, &sri).unwrap(); assert_eq!(data, b"hello world"); ...
rust_cleaned_test_functions.jsonl/64596
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 8950, 23008, 368, 341, 286, 1077, 4174, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 286, 1077, 5419, 284, 4174, 3875, 1005, 983, 51973, 543, 286, 1077, 274, 461, 284, 17717, 486, 4934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scalar_repr_vartime_conversion() { let a = Scalar::from(1); let mut expected_bytes = [0u8; 32]; expected_bytes[0] = 1; assert_eq!(a, Scalar::from_repr_vartime(a.to_repr()).unwrap()); assert_eq!(a.to_repr(), expected_bytes); assert_eq!(a, Scalar::fr...
rust_cleaned_test_functions.jsonl/54681
{ "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, 41652, 68535, 2273, 471, 545, 64132, 368, 341, 286, 1077, 264, 284, 35176, 486, 1499, 7, 16, 317, 286, 1077, 5206, 3601, 12524, 284, 508, 15, 84, 23, 26, 220, 18, 17, 935, 286, 3601, 12524, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_g1_doubling_correctness() { let mut p = G1Projective::new( Fq::from_repr(BigInteger768([ 0x6064ee639b9adce5, 0x1149f14300102ddd, 0x395f28b5c8101bd0, 0xa764e4bdd6b33c5a, 0x51e645dfb580ecac, 0x2ca75c22f9d5b856, ...
rust_cleaned_test_functions.jsonl/52501
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1870 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 16, 814, 283, 9695, 31550, 2090, 368, 341, 262, 1077, 5206, 281, 284, 479, 16, 7849, 533, 486, 931, 1006, 286, 434, 80, 486, 1499, 68535, 91756, 22, 21, 23, 8956, 310, 220, 15, 87, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_leader_stepdown_when_quorum_active() { setup_for_test(); let mut sm = new_test_raft(1, vec![1, 2, 3], 5, 1, new_storage()); sm.check_quorum = true; sm.become_candidate(); sm.become_leader(); for _ in 0..=sm.get_election_timeout() { let mut m = new_message(2, 0, M...
rust_cleaned_test_functions.jsonl/107124
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79991, 11946, 2923, 47636, 11280, 33006, 12930, 368, 341, 262, 6505, 5478, 4452, 543, 262, 1077, 5206, 1525, 284, 501, 4452, 62, 2944, 7, 16, 11, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_handler_prefix() { let mut app = App::new() .prefix("/app") .handler("/test", |_| HttpResponse::Ok()) .finish(); let req = TestRequest::with_uri("/test").finish(); let resp = app.run(req); assert_eq!(resp.as_msg().status(), Sta...
rust_cleaned_test_functions.jsonl/24274
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 550 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10183, 13974, 368, 341, 286, 1077, 5206, 906, 284, 1845, 486, 931, 741, 310, 659, 11849, 4283, 676, 1138, 310, 659, 17905, 4283, 1944, 497, 66091, 17580, 486, 11578, 2398, 310, 659, 30150, 1428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fixed_list_offsets() { // Test the case where offset != 0 let a = create_fixed_size_list_array(&[ Some(&[1, 2, 3]), None, None, Some(&[4, 5, 6]), None, None, ]); let b = create_fixed_size_list...
rust_cleaned_test_functions.jsonl/24227
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 498 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37839, 2019, 56924, 368, 341, 286, 442, 3393, 279, 1142, 1380, 4347, 961, 220, 15, 198, 286, 1077, 264, 284, 1855, 37839, 2368, 2019, 3858, 2099, 9640, 310, 4329, 2099, 58, 16, 11, 220, 17, 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_job_lost() { fn fn_ok(_: String, _: Vec<String>) -> Result<String, Box<Error>> { sleep(Duration::from_millis(10000)); Ok("ok".to_string()) } let queue = Queue::new("redis://localhost/", "test-lost"); queue.drop().unwrap(); let uuid = queue.enqueue(vec![], 10...
rust_cleaned_test_functions.jsonl/124825
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 308 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20298, 88661, 368, 341, 262, 5168, 5168, 19817, 73834, 923, 11, 58536, 11312, 3464, 9231, 1464, 5714, 3464, 11, 8261, 27, 1454, 2452, 341, 286, 6084, 64114, 486, 1499, 717, 56212, 7, 16, 15, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pool_gc() { assert_eq!(STR_POOL.pool.len(), 0); STR_POOL.intern("asd", Arc::from); assert_eq!(STR_POOL.pool.len(), 1); let h = STR_POOL.intern("123", Arc::from); assert_eq!(STR_POOL.pool.len(), 2); STR_POOL.collect_garbage(); assert_eq!(STR...
rust_cleaned_test_functions.jsonl/38596
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15709, 49423, 368, 341, 286, 2060, 10714, 10297, 6666, 51924, 38963, 19406, 1507, 220, 15, 317, 286, 12152, 51924, 6403, 932, 445, 79102, 497, 19689, 486, 1499, 317, 286, 2060, 10714, 10297, 6666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_type_parameters_multi() { check( "<T: A, U :B>", type_parameters, TypeParameterListSyntax { open: TokenSyntax::from("<"), elements: vec![ TypeParameterElementSyntax { element: ...
rust_cleaned_test_functions.jsonl/129311
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1819, 18263, 25133, 368, 341, 286, 1779, 1006, 310, 4055, 51, 25, 362, 11, 547, 549, 33, 35452, 310, 943, 18263, 345, 310, 3990, 4971, 852, 33890, 341, 394, 1787, 25, 9660, 33890, 486, 1499, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extract_policy_for_sh_multi_partial_1of2() { let secp = Secp256k1::new(); let (prvkey0, _pubkey0, fingerprint0) = setup_keys(TPRV0_STR, PATH, &secp); let (_prvkey1, pubkey1, fingerprint1) = setup_keys(TPRV1_STR, PATH, &secp); let desc = descriptor!(sh(multi(2, prv...
rust_cleaned_test_functions.jsonl/77141
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 606 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 22773, 5478, 3712, 25133, 52068, 62, 16, 1055, 17, 368, 341, 286, 1077, 511, 4672, 284, 4520, 79, 17, 20, 21, 74, 16, 486, 931, 543, 286, 1077, 320, 649, 85, 792, 15, 11, 716, 9585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
#[test] fn test_parse_names() -> io::Result<()> { let data = b"noodles\x00tabix\x00"; let actual = parse_names(&data[..])?; let expected = vec![String::from("noodles"), String::from("tabix")]; assert_eq!(actual, expected); let data = b""; assert!(parse_names(&dat...
rust_cleaned_test_functions.jsonl/80138
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 9187, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 821, 284, 293, 1, 77, 97121, 3462, 15, 15, 6192, 941, 3462, 15, 15, 876, 286, 1077, 5042, 284, 4715, 9187, 2099, 691, 95874, 246...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_split_default() { let (at, mut ucmd) = at_and_ucmd!(); let name = "split_default"; RandomFile::new(&at, name).add_lines(2000); ucmd.args(&[name]).succeeds(); let glob = Glob::new(&at, ".", r"x[[:alpha:]][[:alpha:]]$"); assert_eq!(glob.count(), 2); assert_eq!(glob.col...
rust_cleaned_test_functions.jsonl/25851
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 9993, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 829, 284, 330, 6960, 9993, 876, 262, 10612, 1703, 486, 931, 2099, 266, 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_iterator() { let mut m = VecMap::new(); assert!(m.insert(0, 1).is_none()); assert!(m.insert(1, 2).is_none()); assert!(m.insert(3, 5).is_none()); assert!(m.insert(6, 10).is_none()); assert!(m.insert(10, 11).is_none()); let mut it = m.iter(...
rust_cleaned_test_functions.jsonl/53270
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 487 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 368, 341, 286, 1077, 5206, 296, 284, 11312, 2227, 486, 931, 1428, 286, 2060, 10297, 76, 7030, 7, 15, 11, 220, 16, 568, 285, 31488, 1423, 286, 2060, 10297, 76, 7030, 7, 16, 11, 220, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tor_version() { use super::*; use std::ffi::CString; let args = [ CString::new("tor").unwrap(), CString::new("--version").unwrap(), ]; let args_ptr = [args[0].as_ptr(), args[1].as_ptr()]; unsafe { let config = ...
rust_cleaned_test_functions.jsonl/8472
{ "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, 528, 269, 9438, 368, 341, 286, 990, 2256, 56162, 286, 990, 1460, 486, 53799, 486, 63677, 401, 286, 1077, 2827, 284, 2278, 310, 56956, 486, 931, 445, 10980, 1827, 15454, 3148, 310, 56956, 486, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_toml_encode() { let mut change = HashMap::new(); change.insert( "raftstore.pd-heartbeat-tick-interval".to_owned(), "1h".to_owned(), ); change.insert( "coprocessor.region-split-keys".to_owned(), "10000".to_owned(),...
rust_cleaned_test_functions.jsonl/31097
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 619 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 528, 316, 75, 11224, 368, 341, 286, 1077, 5206, 2297, 284, 10528, 486, 931, 543, 286, 2297, 7030, 1006, 310, 330, 2944, 4314, 556, 67, 42244, 22227, 2385, 865, 20052, 6152, 3263, 983, 5197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_update_last_wins() { let key = Keypair::new(); let index = AccountsIndex::<bool>::default(); let ancestors = vec![(0, 0)].into_iter().collect(); let mut gc = Vec::new(); index.upsert( 0, &key.pubkey(), &Pubkey::default()...
rust_cleaned_test_functions.jsonl/45177
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 581 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 12195, 1670, 1330, 368, 341, 286, 1077, 1376, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 1922, 284, 40655, 1552, 27638, 2641, 6831, 2258, 543, 286, 1077, 37518, 284, 7486, 0, 9697, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_blockstore_with_supermajority_root() { run_test_process_blockstore_with_supermajority_root(None); run_test_process_blockstore_with_supermajority_root(Some(1)) }
rust_cleaned_test_functions.jsonl/118177
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 92 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 7113, 4314, 6615, 38886, 36505, 487, 12993, 368, 341, 286, 1598, 4452, 11305, 7113, 4314, 6615, 38886, 36505, 487, 12993, 26717, 317, 286, 1598, 4452, 11305, 7113, 4314, 6615, 38886, 36505, 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
#[test] fn test_runnables() { let (analysis, pos) = analysis_and_position( r#" //- /lib.rs <|> //empty fn main() {} #[test] fn test_foo() {} #[test] #[ignore] fn test_foo() {} "#, ); let runnables = ana...
rust_cleaned_test_functions.jsonl/56179
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 438 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 77, 4788, 368, 341, 286, 1077, 320, 34484, 11, 1133, 8, 284, 6358, 8378, 9661, 1006, 310, 435, 2, 698, 286, 78406, 608, 2740, 25638, 198, 286, 82639, 29, 442, 3194, 198, 286, 5168, 1887...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_polygon_extreme_wrapper_convex() { let poly1 = polygon![ (x: 1.0, y: 0.0), (x: 2.0, y: 1.0), (x: 1.75, y: 1.75), (x: 1.0, y: 2.0), (x: 0.0, y: 1.0), (x: 1.0, y: 0.0) ]; let extremes = find_ex...
rust_cleaned_test_functions.jsonl/100479
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 367 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73542, 9927, 9634, 23561, 22716, 327, 368, 341, 1789, 286, 1077, 9861, 16, 284, 29372, 90515, 310, 320, 87, 25, 220, 16, 13, 15, 11, 379, 25, 220, 15, 13, 15, 1326, 310, 320, 87, 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
#[test] fn test_remove_or_add_edge_added() { let mut edges = vec![(1, 2), (6, 5)]; remove_or_add_edge(&mut edges, (4, 3)); assert_eq!(3, edges.len()); assert_eq!((4, 3), edges[2]); }
rust_cleaned_test_functions.jsonl/5105
{ "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, 18193, 8734, 2891, 17932, 37653, 368, 341, 286, 1077, 5206, 12822, 284, 7486, 0, 9697, 16, 11, 220, 17, 701, 320, 21, 11, 220, 20, 12587, 286, 4057, 8734, 2891, 17932, 2099, 6984, 12822, 11, 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_storage_term() { setup_for_test(); let ents = vec![new_entry(3, 3), new_entry(4, 4), new_entry(5, 5)]; let mut tests = vec![ (2, Err(RaftError::Store(StorageError::Compacted))), (3, Ok(3)), (4, Ok(4)), (5, Ok(5)), ...
rust_cleaned_test_functions.jsonl/50257
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 396 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23310, 17464, 368, 341, 286, 6505, 5478, 4452, 543, 286, 1077, 36852, 284, 7486, 20703, 931, 9078, 7, 18, 11, 220, 18, 701, 501, 9078, 7, 19, 11, 220, 19, 701, 501, 9078, 7, 20, 11, 220, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_exists() { let db = Connection::open_in_memory().unwrap(); let sql = "BEGIN; CREATE TABLE foo(x INTEGER); INSERT INTO foo VALUES(1); INSERT INTO foo VALUES(2); END;"; db.execute_batch(sql).unwrap(...
rust_cleaned_test_functions.jsonl/57181
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 293 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9766, 368, 341, 286, 1077, 2927, 284, 11032, 486, 2508, 1243, 19195, 1005, 15454, 543, 286, 1077, 5704, 284, 330, 37588, 280, 4293, 30776, 14363, 15229, 2075, 30381, 317, 4293, 39518, 12496, 15229, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1