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_modified_moved() -> Result<()> { // Given let entry = given_entry("file.txt"); let mut moved_files: HashMap<PathBuf, &Entry> = HashMap::new(); moved_files.insert(PathBuf::from("old-file.txt"), &entry); // When let stats = Stats { adde...
rust_cleaned_test_functions.jsonl/4103
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 317 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37749, 717, 4941, 368, 1464, 5714, 71698, 341, 286, 442, 16246, 198, 286, 1077, 4343, 284, 2661, 9078, 445, 1192, 3909, 3071, 286, 1077, 5206, 7726, 10931, 25, 10528, 82883, 15064, 11, 609, 5874, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_numeric_floats_and_ints() { test_helper( "numeric_floats_and_ints", &["-n", "--numeric-sort", "--sort=numeric"], ); }
rust_cleaned_test_functions.jsonl/20466
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 87 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29418, 17586, 82, 8378, 4042, 82, 368, 341, 262, 1273, 10418, 1006, 286, 330, 19600, 17586, 82, 8378, 4042, 82, 756, 286, 609, 1183, 12, 77, 497, 14482, 19600, 46540, 497, 14482, 6860, 28, 19600...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_abs() { let z: Complex = Complex::new(3.0,4.0); assert_that(z.abs(), is(close_to(5.0,0.0001))) }
rust_cleaned_test_functions.jsonl/43828
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 65 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31170, 368, 341, 197, 10217, 1147, 25, 22096, 284, 22096, 486, 931, 7, 18, 13, 15, 11, 19, 13, 15, 317, 197, 6948, 70197, 13174, 14572, 1507, 374, 68890, 2346, 7, 20, 13, 15, 11, 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
#[test] fn test_random_ignore_case() { let input = "ABC\nABc\nAbC\nAbc\naBC\naBc\nabC\nabc\n"; new_ucmd!() .args(&["-fR"]) .pipe_in(input) .succeeds() .stdout_is(input); }
rust_cleaned_test_functions.jsonl/20465
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22644, 58493, 19096, 368, 341, 262, 1077, 1946, 284, 330, 25411, 1699, 1867, 66, 1699, 5830, 34, 1699, 5830, 66, 1699, 64, 4897, 1699, 64, 33, 66, 1699, 370, 34, 1699, 13683, 1699, 876, 262, 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_decode_bic() { match decode_16(0x4382) { Instruction::BIC_reg { params, thumb32 } => { assert!(params.rd == Reg::R2); assert!(params.rn == Reg::R2); assert!(params.rm == Reg::R0); assert!(params.setflags == SetFlags::NotInITBlock);...
rust_cleaned_test_functions.jsonl/64769
{ "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, 15227, 880, 292, 368, 341, 1066, 262, 2432, 16895, 62, 16, 21, 7, 15, 87, 19, 18, 23, 17, 8, 341, 286, 29051, 486, 33, 1317, 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...
2
#[test] fn test_contained_in_circumference() { let (a1, a2, a3) = (1f32, 2f32, 3f32); let offset = na::Vector2::new(0.5, 0.7); let p_offset = na::Point::from(offset); let v1 = na::Point2::new(a1.sin(), a1.cos()) * 2. + offset; let v2 = na::Point2::new(a2.sin(), a2.cos()) ...
rust_cleaned_test_functions.jsonl/74824
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 713 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10260, 2627, 1243, 666, 2437, 372, 2202, 368, 341, 286, 1077, 320, 64, 16, 11, 264, 17, 11, 264, 18, 8, 284, 320, 16, 69, 18, 17, 11, 220, 17, 69, 18, 17, 11, 220, 18, 69, 18, 17, 317,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cast_as_time() { let mut ctx = EvalContext::new(Arc::new(EvalConfig::default_for_test())); let today = Utc::now(); let t_date_str = format!("{}", today.format("%Y-%m-%d")); let t_time_str = format!("{}", today.format("%Y-%m-%d %H:%M:%S")); let t_time = Tim...
rust_cleaned_test_functions.jsonl/2963
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3910 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 11898, 3009, 368, 341, 286, 1077, 5206, 5635, 284, 58239, 1972, 486, 931, 4346, 1287, 486, 931, 10722, 831, 2648, 486, 2258, 5478, 4452, 7392, 286, 1077, 3351, 284, 547, 10413, 486, 3328, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_remove_trailing_slash() { struct TestCase { s: &'static str, expected: String, } let test_cases = vec![ TestCase { s: "http://example.com/", expected: "http://example.com".to_string(), }, ...
rust_cleaned_test_functions.jsonl/36442
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 337 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 3547, 14277, 11886, 988, 368, 341, 286, 2036, 30573, 341, 310, 274, 25, 30136, 1978, 607, 345, 310, 3601, 25, 923, 345, 286, 555, 286, 1077, 1273, 41427, 284, 7486, 90515, 310, 30573, 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...
2
#[test] fn test_grouped() { use super::grouped; ok_case!( grouped, &vec![ Token::StartGroup.spanning(Span::from(((0, 0), (1, 0)))), Token::Nonterminal("b".to_owned()).spanning(Span::from(((1, 0), (2, 0)))), Token::DefinitionSeparator.spanning(Span::fr...
rust_cleaned_test_functions.jsonl/101085
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1342 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6288, 291, 368, 341, 262, 990, 2256, 486, 4074, 291, 401, 262, 5394, 19096, 33673, 286, 40041, 345, 286, 609, 4083, 90515, 310, 9660, 486, 3479, 2808, 52869, 1229, 3759, 848, 486, 1499, 6636, 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_addition() { let mut a : felem_as_words = [11671922859260663127, 11050707557586042878, 284884720401305268, 17749945728364010941, 8613774818643959860, 145621051382923523]; let mut b : felem_as_words = [9794203289623549276, 7309342082925068282, 1139538881605221074, 15659550692327388916, 16...
rust_cleaned_test_functions.jsonl/91328
{ "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, 2891, 680, 368, 341, 262, 1077, 5206, 264, 549, 1152, 3433, 11898, 18981, 284, 508, 16, 16, 21, 22, 16, 24, 17, 17, 23, 20, 24, 17, 21, 15, 21, 21, 18, 16, 17, 22, 11, 220, 16, 16, 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_it_works_integration() { use tipb::ExprType; use tipb_helper::ExprDefBuilder; // This test creates a hash aggregation executor with the following aggregate functions: // And group by: // - col_0 + col_1 let group_by_exp...
rust_cleaned_test_functions.jsonl/15836
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2924 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14631, 11498, 82, 90250, 368, 341, 286, 990, 11552, 65, 486, 16041, 929, 280, 286, 990, 11552, 65, 10418, 486, 16041, 2620, 3297, 401, 286, 442, 1096, 1273, 11450, 264, 5175, 51629, 31558, 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...
3
#[test] fn test_index_create() { let index = sqlz::IndexCreate { name: "dev".to_owned(), table: "test".to_owned(), columns: vec![sqlz::Order { name: "i".to_owned(), ..Default::default() }], }; println!("{:?}...
rust_cleaned_test_functions.jsonl/38378
{ "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, 3560, 8657, 368, 341, 286, 1077, 1922, 284, 5704, 89, 486, 1552, 4021, 341, 310, 829, 25, 330, 3583, 3263, 983, 51973, 3148, 310, 1965, 25, 330, 1944, 3263, 983, 51973, 3148, 310, 8147, 25, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_canonicalize_path() { let tmp = Builder::new() .prefix("test-canonicalize") .tempdir() .unwrap(); let tmp_dir = tmp.path(); let res_path1 = canonicalize_sub_path(tmp_dir.to_str().unwrap(), "test1.dump").unwrap(); assert!(!Path:...
rust_cleaned_test_functions.jsonl/4781
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 544 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27421, 22391, 551, 2638, 368, 341, 286, 1077, 4174, 284, 20626, 486, 931, 741, 310, 659, 11849, 445, 1944, 71214, 22391, 551, 1138, 310, 659, 3888, 3741, 741, 310, 659, 15454, 543, 286, 1077, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_basic() { let helper = TableScanTestHelper::new(); // ranges to scan in each test case let test_ranges = vec![ helper.point_ranges(), // point scan vec![helper.whole_table_range()], // range scan helper.mixed_ranges...
rust_cleaned_test_functions.jsonl/10378
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 827 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 368, 341, 286, 1077, 13137, 284, 6633, 26570, 2271, 5511, 486, 931, 543, 286, 442, 21283, 311, 8569, 304, 1817, 1273, 1142, 198, 286, 1077, 1273, 58748, 284, 7486, 90515, 310, 13137, 23233,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bootstrap_config_from_structopt_derive() { let temp_dir = TempDir::new(string(8).as_str()).unwrap(); let dir = &temp_dir.path().to_path_buf(); // Create test folder dir_utils::create_data_directory(Some(dir)).unwrap(); #[derive(StructOpt)] /// The...
rust_cleaned_test_functions.jsonl/9034
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 681 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88424, 5332, 5673, 15126, 2912, 35345, 533, 368, 341, 286, 1077, 2730, 4334, 284, 19944, 6184, 486, 931, 3609, 7, 23, 568, 300, 2895, 6011, 15454, 543, 286, 1077, 5419, 284, 609, 3888, 4334, 387...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_stable_pointers() { /// Useful to cover both the `next` and `drop` paths of an iterator. fn next_then_drop<I: Iterator>(mut i: I) { i.next().unwrap(); drop(i); } let mut v = Vec::with_capacity(128); v.push(13); let v0 = &mut v[0];...
rust_cleaned_test_functions.jsonl/24447
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1029 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 480, 6085, 388, 368, 341, 286, 1048, 50512, 311, 3421, 2176, 279, 1565, 3600, 63, 323, 1565, 6719, 63, 12716, 315, 458, 15091, 624, 262, 5168, 1790, 68367, 29584, 13332, 25, 23023, 2235, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_supported_test_path() { assert!(is_supported_test_path(Path::new( "tests/subdir/foo_test.ts" ))); assert!(is_supported_test_path(Path::new( "tests/subdir/foo_test.tsx" ))); assert!(is_supported_test_path(Path::new( "tests/subdir/foo_test.js" ))); ...
rust_cleaned_test_functions.jsonl/79110
{ "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, 6892, 57885, 4452, 2638, 368, 341, 262, 2060, 10297, 285, 57885, 4452, 2638, 33030, 486, 931, 1006, 414, 330, 23841, 37885, 3741, 60555, 4452, 21288, 698, 262, 220, 4945, 262, 2060, 10297, 285, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_incomplet_headers_frame() { test_incomplet_frame( &[ // headers 0x01, 0x06, 0x00, 0x00, 0xd9, 0x54, 0x01, ], Error::MalformedFrame(H3_FRAME_TYPE_HEADERS), ); }
rust_cleaned_test_functions.jsonl/10939
{ "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, 1243, 874, 10819, 26719, 8929, 368, 341, 286, 1273, 1243, 874, 10819, 8929, 1006, 310, 609, 9640, 394, 442, 7102, 198, 394, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 21, 11, 220, 15, 87, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_slow_log_dispatcher() { let normal = TikvFormat::new(PlainSyncDecorator::new(NormalWriter)); let slow = TikvFormat::new(PlainSyncDecorator::new(SlowLogWriter)); let rocksdb = TikvFormat::new(PlainSyncDecorator::new(RocksdbLogWriter)); let raftdb = TikvFormat::new(...
rust_cleaned_test_functions.jsonl/20809
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1286 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82447, 5224, 92189, 368, 341, 286, 1077, 4622, 284, 72742, 85, 4061, 486, 931, 7, 26982, 12154, 47951, 486, 931, 8204, 2492, 6492, 1106, 286, 1077, 6301, 284, 72742, 85, 4061, 486, 931, 7, 26982...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_progress_status_too_short() { let format = Format { style: ProgressStyle::Percentage, max_print: 25, max_width: 25, }; assert_eq!( format.progress_status(1, 1, ""), Some("[] 100.00%".to_string()) ); let format = Format { style:...
rust_cleaned_test_functions.jsonl/10092
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 218 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27200, 4773, 2346, 78, 16673, 368, 341, 262, 1077, 3561, 284, 15042, 341, 286, 1707, 25, 16033, 2323, 486, 36167, 345, 286, 1932, 10064, 25, 220, 17, 20, 345, 286, 1932, 7927, 25, 220, 17, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_yyyymmdd_function() -> Result<()> { let tests = vec![ ScalarFunctionWithFieldTest { name: "test_toyyyymmdd_date16", columns: vec![ColumnWithField::new( Series::from_data(vec![0i32]), DataField::new("dummy_1", DateType::new_im...
rust_cleaned_test_functions.jsonl/34403
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1945 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 4178, 4807, 64320, 631, 9174, 368, 1464, 5714, 71698, 341, 262, 1077, 7032, 284, 7486, 90515, 286, 35176, 5152, 2354, 1877, 2271, 341, 310, 829, 25, 330, 1944, 528, 2253, 4807, 64320, 631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_range_float() { let float_field: Field; let schema = { let mut schema_builder = Schema::builder(); float_field = schema_builder.add_f64_field("floatfield", INDEXED); schema_builder.build() }; let index = Index::create_in_ram(sc...
rust_cleaned_test_functions.jsonl/107881
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1040 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 17586, 368, 341, 286, 1077, 2224, 5013, 25, 8601, 280, 286, 1077, 10802, 284, 341, 310, 1077, 5206, 10802, 28532, 284, 12539, 486, 17850, 543, 310, 2224, 5013, 284, 10802, 28532, 1364, 761, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mut_access() { let mut testy = Testy { a: "one".to_owned(), b: "two".to_owned(), }; *testy.b_mut() = "three".to_owned(); assert_eq!(testy.b(), &"three"); }
rust_cleaned_test_functions.jsonl/131792
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29523, 12759, 368, 341, 286, 1077, 5206, 1273, 88, 284, 3393, 88, 341, 310, 264, 25, 330, 603, 3263, 983, 51973, 3148, 310, 293, 25, 330, 19789, 3263, 983, 51973, 3148, 286, 3634, 286, 353, 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_env_set_var() { let n = make_rand_name(); let mut e = vars_os(); set_var(&n, "VALUE"); assert!(!e.any(|(k, v)| { &*k == &*n && &*v == "VALUE" })); assert!(vars_os().any(|(k, v)| { &*k == &*n && &*v == "VALUE" })); ...
rust_cleaned_test_functions.jsonl/87612
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 199 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15879, 2602, 4612, 368, 341, 286, 1077, 308, 284, 1281, 33864, 1269, 1428, 286, 1077, 5206, 384, 284, 19942, 29387, 543, 286, 738, 4612, 2099, 77, 11, 330, 23832, 797, 286, 2060, 0, 3471, 68, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_diff_neighborhood() { let ts = GSTimestamp1D::new(&[10]); let diff_neighborhood = ts.get_diff_neighborhood(); let expected_positive_neighbors = [[9]].iter().map(|values| GSTimestamp1D::new(values)).collect_vec(); assert_eq!(diff_neighborhood.0, expecte...
rust_cleaned_test_functions.jsonl/44570
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 211 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15850, 13925, 46185, 368, 341, 286, 1077, 10591, 284, 32834, 4702, 16, 35, 486, 931, 2099, 58, 16, 15, 2558, 286, 1077, 3638, 13925, 46185, 284, 10591, 670, 15850, 13925, 46185, 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_storage_tx() { let pubkey = Pubkey::new_rand(); let mut accounts = [(pubkey, Account::default())]; let mut keyed_accounts = create_keyed_accounts(&mut accounts); assert!(process_instruction(&id(), &mut keyed_accounts, &[], 42).is_err()); }
rust_cleaned_test_functions.jsonl/127030
{ "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, 23310, 17805, 368, 341, 286, 1077, 95116, 284, 22611, 792, 486, 931, 33864, 543, 286, 1077, 5206, 9618, 284, 17826, 9585, 792, 11, 8615, 486, 2258, 2140, 935, 286, 1077, 5206, 90529, 55665, 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_user_satisfaction_catch_new_metric() { let json = r#" { "type": "transaction", "transaction": "foo", "start_timestamp": "2021-04-26T08:00:00+0100", "timestamp": "2021-04-26T08:00:02+0100", "measurements": { ...
rust_cleaned_test_functions.jsonl/21933
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 682 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3317, 643, 51270, 666, 754, 5921, 41294, 368, 341, 286, 1077, 2951, 284, 435, 2, 698, 286, 341, 310, 330, 1313, 788, 330, 13528, 756, 310, 330, 13528, 788, 330, 7975, 756, 310, 330, 2468, 2307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_max_age_no_value() { let h: ::Result<StrictTransportSecurity> = Header::parse_header(&"max-age".into()); assert!(h.is_err()); }
rust_cleaned_test_functions.jsonl/19635
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 81 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 6345, 32053, 6536, 3142, 368, 341, 286, 1077, 305, 25, 3504, 2077, 27, 41857, 27560, 15352, 29, 284, 12104, 486, 6400, 8757, 2099, 1, 2810, 42941, 3263, 18122, 1423, 286, 2060, 10297, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_simple_transaction() { new_test_ext().execute_with(|| { let alice_pub_key = sp_io::crypto::sr25519_public_keys(SR25519)[0]; let mut transaction = Transaction { inputs: vec![TransactionInput{ outpoint: H256::from(GENESIS_UTXO), sigscript: H512::zero(), }], outputs: ...
rust_cleaned_test_functions.jsonl/81522
{ "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, 30015, 28884, 368, 341, 197, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 298, 10217, 70433, 34014, 3097, 284, 978, 16939, 486, 35772, 486, 15094, 17, 20, 20, 16, 24, 27074, 12631, 3759, 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_pre_commit_sh() { let (_td, repo) = repo_init().unwrap(); let root = repo.path().parent().unwrap(); let repo_path = root.as_os_str().to_str().unwrap(); let hook = b"#!/bin/sh exit 0 "; create_hook(root, HOOK_PRE_COMMIT, hook); let res = h...
rust_cleaned_test_functions.jsonl/96227
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10442, 36346, 3712, 368, 341, 286, 1077, 5453, 1296, 11, 15867, 8, 284, 15867, 6137, 1005, 15454, 543, 286, 1077, 3704, 284, 15867, 3875, 1005, 3765, 1005, 15454, 543, 286, 1077, 15867, 2638, 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_metatable() { Lua::new().context(|lua| { let table = lua.create_table().unwrap(); let metatable = lua.create_table().unwrap(); metatable .set("__index", lua.create_function(|_, ()| Ok("index_value")).unwrap()) .unwrap(); table.set_metat...
rust_cleaned_test_functions.jsonl/80282
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 401 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44517, 15086, 741, 515, 262, 37662, 486, 931, 1005, 2147, 22428, 27623, 91, 341, 286, 1077, 1965, 284, 20357, 2520, 5237, 1005, 15454, 543, 286, 1077, 2270, 15086, 284, 20357, 2520, 5237, 1005, 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...
3
#[test] fn test_wait_exit() { let _m = ::FORK_MTX.lock().expect("Mutex got poisoned by another test"); match fork().expect("Error: Fork Failed") { Child => unsafe { _exit(12); }, Parent { child } => { assert_eq!(waitpid(child, None), Ok(WaitStatus::Exited(child, 12))); ...
rust_cleaned_test_functions.jsonl/69914
{ "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, 18760, 16880, 368, 341, 262, 1077, 716, 76, 284, 3504, 37, 10647, 1245, 22867, 21003, 1005, 17119, 445, 38099, 2684, 70498, 553, 2441, 1273, 3071, 1066, 262, 2432, 22435, 1005, 17119, 445, 1454, 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_with_csv_plan() -> Result<()> { let testdata = crate::test_util::arrow_test_data(); let path = format!("{}/csv/aggregate_test_100.csv", testdata); let options = CsvReadOptions::new().schema_infer_max_records(100); let logical_plan = LogicalPlanBuilder::scan_csv(p...
rust_cleaned_test_functions.jsonl/35513
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 14020, 26564, 368, 1464, 5714, 71698, 341, 286, 1077, 1273, 691, 284, 17717, 486, 1944, 18974, 486, 6044, 4452, 1769, 543, 286, 1077, 1815, 284, 3561, 88928, 4472, 18104, 14, 59606, 4452, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_configuration_from_args() { let argv = vec!["lsd", "--ignore-glob", ".git"]; let matches = app::build().get_matches_from_safe(argv).unwrap(); assert!( match IgnoreGlobs::configure_from(&matches, &Config::with_none()) { Ok(_) => true, ...
rust_cleaned_test_functions.jsonl/62335
{ "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, 35726, 5673, 8384, 368, 341, 286, 1077, 10213, 284, 7486, 0, 1183, 4730, 67, 497, 14482, 13130, 2371, 1684, 497, 5933, 12882, 6332, 286, 1077, 9071, 284, 906, 486, 5834, 1005, 455, 38344, 5673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_stake_state_stake_from_fail() { let mut stake_account = AccountSharedData::new(0, std::mem::size_of::<StakeState>(), &id()); stake_account .set_state(&StakeState::default()) .expect("set_state"); assert_eq!(stake_from(&stake_account), None); ...
rust_cleaned_test_functions.jsonl/15283
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 726, 4387, 1261, 726, 5673, 22121, 368, 341, 286, 1077, 5206, 18279, 13500, 284, 8615, 16997, 1043, 486, 931, 7, 15, 11, 1460, 486, 10536, 486, 2141, 3575, 27638, 623, 726, 1397, 39019, 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_info_content() { let pssm = DNAMotif::from_seqs(vec![b"AAAA".to_vec()].as_ref(), Some(&[0.0, 0.0, 0.0, 0.0])) .unwrap(); // 4 bases * 2 bits per base = 8 assert_relative_eq!(pssm.info_content(), 8.0, epsilon = f32::EPSILON); }
rust_cleaned_test_functions.jsonl/17026
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3109, 7495, 368, 341, 1789, 286, 1077, 281, 778, 76, 4035, 310, 60656, 1402, 354, 333, 486, 1499, 93261, 25592, 20703, 65, 1, 25699, 3263, 983, 13251, 57590, 300, 7793, 1507, 4329, 2099, 58, 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_ignore_too_many_iwants_from_same_peer_for_same_message() { let config = GossipsubConfig::default(); //build gossipsub with full mesh let (mut gs, _, topics) = inject_nodes1() .peer_no(config.mesh_n_high()) .topics(vec!["test".into()]) ....
rust_cleaned_test_functions.jsonl/66937
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 815 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58493, 2346, 78, 22101, 5318, 86, 1783, 5673, 33574, 45159, 5478, 33574, 6462, 368, 341, 286, 1077, 2193, 284, 479, 41473, 1966, 2648, 486, 2258, 543, 286, 442, 5834, 57487, 1966, 448, 2480, 11294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_create_block_with_empty_body() { let (testkit, handler) = init_handler(Height(0)); let tx = TxTimestamp::for_str("foo"); { let mut testkit = testkit.write().unwrap(); testkit.api().send(tx.clone()); testkit.poll_events(); } ...
rust_cleaned_test_functions.jsonl/14764
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 886 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 7113, 6615, 15124, 14114, 368, 341, 286, 1077, 320, 1944, 8226, 11, 7013, 8, 284, 2930, 10183, 7, 3640, 7, 15, 3237, 286, 1077, 9854, 284, 39850, 20812, 486, 1958, 2895, 445, 7975, 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...
2
#[test] fn test_user_ip_from_remote_addr() { let mut event = Annotated::new(Event { request: Annotated::from(Request { env: Annotated::new({ let mut map = Object::new(); map.insert( "REMOTE_ADDR".to_string(), Annotat...
rust_cleaned_test_functions.jsonl/14082
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 504 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3317, 10385, 5673, 36425, 7387, 368, 341, 262, 1077, 5206, 1538, 284, 1527, 87029, 486, 931, 30469, 341, 286, 1681, 25, 1527, 87029, 486, 1499, 12951, 341, 310, 6105, 25, 1527, 87029, 486, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_disable_recursion_limit() { let brackets: String = iter::repeat('[') .take(140) .chain(iter::repeat(']').take(140)) .collect(); let mut deserializer = Deserializer::from_str(&brackets); deserializer.disable_recursion_limit(); Value::deserialize(&mut deser...
rust_cleaned_test_functions.jsonl/92387
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33842, 7080, 34280, 14763, 368, 341, 262, 1077, 38929, 25, 923, 284, 5367, 486, 30624, 492, 677, 340, 286, 659, 22769, 7, 16, 19, 15, 340, 286, 659, 8819, 27070, 486, 30624, 492, 36652, 22769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_end_sequence() { let header = make_test_header(EndianSlice::new(&[], LittleEndian)); let initial_registers = LineRow::new(&header); let opcode = LineInstruction::EndSequence; let mut expected_registers = initial_registers; expected_registers.end_sequ...
rust_cleaned_test_functions.jsonl/3384
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18430, 6213, 23735, 368, 341, 286, 1077, 4247, 284, 1281, 4452, 8757, 7, 43231, 33236, 486, 931, 2099, 12995, 14671, 43231, 1106, 286, 1077, 2856, 78360, 284, 7083, 3102, 486, 931, 2099, 2708, 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_parse_version_from_str() { let source = ron::from_str::<Source>( r#" Source( id: 0, name: "", url: "", version: "1.2.3", lib_version: "1.2.3", icon: "", ...
rust_cleaned_test_functions.jsonl/32856
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 584 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 9438, 5673, 2895, 368, 341, 286, 1077, 2530, 284, 435, 263, 486, 1499, 2895, 27638, 3608, 17055, 310, 435, 2, 698, 310, 8748, 1006, 394, 877, 25, 220, 15, 345, 394, 829, 25, 7342, 715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_string_as_unsigned_decimal() { test_none_with_ctx_and_extra(cast_string_as_unsigned_decimal); let cs = vec![ // neg and in_union ("-10", true, true, Decimal::zero()), ("-1", true, true, Decimal::zero()), ("-0.001", tru...
rust_cleaned_test_functions.jsonl/101799
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4217 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3904, 11898, 67830, 74429, 368, 341, 286, 1273, 31488, 6615, 15147, 8378, 31858, 1337, 559, 3904, 11898, 67830, 74429, 626, 286, 1077, 10532, 284, 7486, 90515, 3374, 310, 442, 4184, 323, 304, 51621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_server_catching_api_error() { let _guard = crate::setup(); let raftkv_fp = "raftkv_early_error_report"; let mut cluster = new_server_cluster(0, 1); cluster.run(); let region = cluster.get_region(b""); let leader = region.get_peers()[0].clone(); fail::cfg(raftkv_fp, "...
rust_cleaned_test_functions.jsonl/80342
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 919 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12015, 666, 31924, 11697, 4096, 368, 341, 262, 1077, 716, 26098, 284, 17717, 486, 15188, 543, 262, 1077, 52455, 43408, 34160, 284, 330, 2944, 43408, 62, 22140, 4096, 14813, 876, 262, 1077, 5206, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_match_group_pattern_with_multiple_statement() { let rules = create_rules( r#" macro_rules! foo { ($ ($ i:ident),*) => ( fn baz { $ ( $ i (); )*} ); } "#, ); assert_expansion(MacroKind::Items, &rules, "foo! { foo, bar }"...
rust_cleaned_test_functions.jsonl/14696
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10708, 6288, 21260, 6615, 45233, 37404, 368, 341, 262, 1077, 5601, 284, 1855, 21407, 1006, 286, 435, 2, 698, 286, 18072, 21407, 0, 15229, 341, 310, 1711, 1711, 600, 25, 1713, 701, 3764, 589, 320...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_python_version() { assert_eq!(parse_python_version("3.9.5"), Ok((3, 9, 5))); assert_eq!(parse_python_version("Python 3.9.5"), Ok((3, 9, 5))); assert_eq!(parse_python_version("Python 3.11.0a2"), Ok((3, 11, 0))); assert_eq!(parse_python_version("Python 3.11.0-...
rust_cleaned_test_functions.jsonl/34806
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 170 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 55869, 9438, 368, 341, 286, 2060, 10714, 10297, 6400, 55869, 9438, 445, 18, 13, 24, 13, 20, 3975, 7622, 1188, 18, 11, 220, 24, 11, 220, 20, 4945, 286, 2060, 10714, 10297, 6400, 55869, 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_issue_2520() { let macro_fixture = parse_macro( r#" macro_rules! my_macro { { ( $( $( [] $sname:ident : $stype:ty )? $( [$expr:expr] $nname:ident : $ntype:ty )? ),* ) } => { ...
rust_cleaned_test_functions.jsonl/28773
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 460 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53340, 62, 17, 20, 17, 15, 368, 341, 262, 1077, 18072, 74409, 284, 4715, 58810, 1006, 286, 435, 2, 698, 286, 18072, 21407, 0, 847, 58810, 341, 310, 341, 394, 320, 400, 1006, 503, 4930, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eulerian_path() { let g = UnweightedAdjacencyList::new_directed( 7, &[ [1, 2], [1, 3], [2, 2], [2, 4], [2, 4], [3, 1], [3, 2], [3, 5], ...
rust_cleaned_test_functions.jsonl/45334
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 559 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 8479, 1103, 2638, 368, 341, 286, 1077, 342, 284, 1230, 79796, 54866, 40624, 852, 486, 931, 32871, 291, 1006, 310, 220, 22, 345, 310, 609, 9640, 394, 508, 16, 11, 220, 17, 1259, 394, 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
#[test] fn test_arrays() { test_roundtrip("([])"); test_roundtrip("var x = [1, 2, 3, ...from]"); test_roundtrip("var x = [1, 2, 3, ...from, 4, 5, 6]"); }
rust_cleaned_test_functions.jsonl/102598
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68983, 368, 341, 262, 1273, 29896, 32981, 445, 10556, 20996, 262, 1273, 29896, 32981, 445, 947, 856, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 2503, 1499, 37389, 262, 1273, 29896, 32981, 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_option_collector_none() -> crate::Result<()> { let searcher = make_test_searcher()?; let none_collector: Option<Count> = None; let counts = searcher.search(&AllQuery, &none_collector)?; assert_eq!(counts, None); Ok(()) }
rust_cleaned_test_functions.jsonl/130048
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9672, 10211, 27669, 31488, 368, 1464, 17717, 486, 2077, 71698, 341, 262, 1077, 94674, 284, 1281, 4452, 10716, 261, 94136, 262, 1077, 6857, 10211, 27669, 25, 6959, 27, 2507, 29, 284, 2240, 280, 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...
3
#[test] fn test_record_pattern_field() { check( r#" struct S { foo: u32 } fn process(f: S) { match f { S { f<|>: 92 } => (), } } "#, expect![[r#" fd foo u32 "#]], ); }
rust_cleaned_test_functions.jsonl/60477
{ "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, 14192, 21260, 5013, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1235, 328, 314, 15229, 25, 575, 18, 17, 555, 8822, 1882, 955, 25, 328, 8, 341, 262, 2432, 282, 341, 286, 328, 314, 282, 27, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_record_first() { let input = "Message send failed to remote host: foo.bar.com".to_string(); let rec = Record::new(input); let val = rec.first().unwrap(); assert_eq!(INTERNER.read().resolve(val).unwrap(), "Message"); }
rust_cleaned_test_functions.jsonl/104492
{ "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, 14192, 12978, 368, 341, 286, 1077, 1946, 284, 330, 2052, 3624, 4641, 311, 8699, 3468, 25, 15229, 22001, 905, 3263, 983, 3904, 543, 286, 1077, 1395, 284, 13583, 486, 931, 5384, 317, 286, 1077, 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...
1
#[test] fn test_custom_signal_handler_single_instance_hostcall() -> Result<()> { let engine = Engine::new(&Config::default()); let store = Store::new(&engine); let module = Module::new(&engine, WAT1)?; let instance = Instance::new(&store, &module, &make_externs(&store, &module))...
rust_cleaned_test_functions.jsonl/19978
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 333 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15875, 21137, 10183, 19487, 11904, 12848, 6659, 368, 1464, 5714, 71698, 341, 286, 1077, 4712, 284, 8200, 486, 931, 2099, 2648, 486, 2258, 1423, 286, 1077, 3553, 284, 9129, 486, 931, 2099, 8512, 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_internal_error() { let err = InternalError::from_response(ParseError::Method, Response::Ok().into()); let resp: Response = err.error_response(); assert_eq!(resp.status(), StatusCode::OK); }
rust_cleaned_test_functions.jsonl/18016
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 107 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23472, 4096, 368, 341, 286, 1077, 1848, 4035, 310, 15412, 1454, 486, 1499, 9655, 71812, 1454, 486, 3523, 11, 5949, 486, 11578, 1005, 18122, 1423, 286, 1077, 9039, 25, 5949, 284, 1848, 4417, 9655, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_attach_legacy_devices() { let mut vmm = create_vmm_object(InstanceState::Uninitialized); vmm.setup_interrupt_controller() .expect("Failed to setup interrupt controller"); assert!(vmm.attach_legacy_devices().is_ok()); assert!(vmm.pio_device_manager.io_...
rust_cleaned_test_functions.jsonl/28160
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 402 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40719, 97555, 41334, 368, 341, 286, 1077, 5206, 348, 3821, 284, 1855, 2273, 3821, 5314, 7, 8846, 486, 1806, 36161, 317, 286, 348, 3821, 25338, 42606, 21600, 741, 310, 659, 17119, 445, 9408, 311, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cpp_gxx_compile() -> io::Result<()> { let source = Source { language: String::from("cpp.g++"), code: String::from("#include<iostream>\nint main() { return 0; }"), }; let compiler = Compiler::new(&source.language).unwrap(); let executable_file = tempfile::NamedTemp...
rust_cleaned_test_functions.jsonl/43116
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59686, 1889, 4146, 74170, 368, 1464, 6399, 486, 2077, 71698, 341, 262, 1077, 2530, 284, 8748, 341, 286, 4128, 25, 923, 486, 1499, 445, 10821, 1302, 1027, 4461, 286, 2038, 25, 923, 486, 1499, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_width_in_git_config_is_honored() { let git_config_contents = b" [delta] features = my-width-feature [delta \"my-width-feature\"] width = variable "; let git_config_path = "delta__test_width_in_git_config_is_honored.gitconfig"; let opt = integration_test_utils::m...
rust_cleaned_test_functions.jsonl/38122
{ "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, 7927, 1243, 68801, 5332, 6892, 1523, 263, 3018, 368, 341, 286, 1077, 16345, 5332, 16682, 284, 293, 698, 58, 20255, 921, 262, 4419, 284, 847, 9347, 91840, 271, 58, 20255, 7245, 2408, 9347, 91840, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_array_type() { assert_gen_type!("[32]byte", vec![8_u8], Vec<u8>); assert_gen_type!("[1000]*float64", vec![0.0_f64], Vec<f64>); assert_gen_type!("[3][5]int", vec![vec![-1_isize]], Vec<Vec<isize>>); assert_gen_type!( "[2][2][2]float64", vec![vec![vec![0.0_f64]]], ...
rust_cleaned_test_functions.jsonl/60716
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 1819, 368, 341, 262, 2060, 16322, 1819, 0, 10937, 18, 17, 90184, 497, 7486, 20703, 23, 7300, 23, 1125, 11312, 34837, 23, 42013, 262, 2060, 16322, 1819, 0, 10937, 16, 15, 15, 15, 8465, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_resize_policy() { let mut m = HashMap::new(); assert_eq!(m.len(), 0); assert_eq!(m.raw_capacity(), 0); assert!(m.is_empty()); m.insert(0, 0); m.remove(&0); assert!(m.is_empty()); let initial_raw_cap = m.raw_capacity(); ...
rust_cleaned_test_functions.jsonl/22850
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 789 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74540, 53370, 22773, 368, 341, 286, 1077, 5206, 296, 284, 10528, 486, 931, 1428, 286, 2060, 10714, 10297, 76, 19406, 1507, 220, 15, 317, 286, 2060, 10714, 10297, 76, 18152, 35603, 1507, 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...
5
#[test] fn test_read_btf_type_ptr() { let endianness = Endianness::default(); let data: &[u8] = &[ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x06, 0x00, 0x00, 0x00, ]; match unsafe { BtfType::read(data, endianness) } { Ok(BtfType::Ptr(_)) => {} ...
rust_cleaned_test_functions.jsonl/98487
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 248 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 880, 8935, 1819, 4348, 368, 341, 286, 1077, 835, 72, 82033, 284, 3972, 72, 82033, 486, 2258, 543, 286, 1077, 821, 25, 44590, 84, 23, 60, 284, 609, 9640, 310, 220, 15, 87, 15, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_column_writer_empty_column_roundtrip() { let props = WriterProperties::builder().build(); column_roundtrip::<Int32Type>("test_col_writer_rnd_1", props, &[], None, None); }
rust_cleaned_test_functions.jsonl/30532
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8744, 28908, 15124, 8744, 29896, 32981, 368, 341, 286, 1077, 6914, 284, 29404, 7903, 486, 17850, 1005, 5834, 543, 286, 3250, 29896, 32981, 27638, 1072, 18, 17, 929, 13211, 1944, 10211, 28908, 1710, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_lt_dyn_gt_dyn_dictionary_i8_array() { // Construct a value array let values = Int8Array::from_iter_values([10_i8, 11, 12, 13, 14, 15, 16, 17]); let keys1 = Int8Array::from_iter_values([3_i8, 4, 4]); let keys2 = Int8Array::from_iter_values([4_i8, 3, 4]); l...
rust_cleaned_test_functions.jsonl/98257
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 525 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39164, 69213, 37479, 69213, 42605, 5318, 23, 3858, 368, 341, 286, 442, 18678, 264, 897, 1334, 198, 286, 1077, 2750, 284, 1333, 23, 1857, 486, 1499, 11723, 9146, 2561, 16, 15, 5318, 23, 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_blue_hex() { let rgb = RGB::from_hex("#0000FF").expect("Invalid hex string"); assert!(rgb.r < std::f32::EPSILON); assert!(rgb.g < std::f32::EPSILON); assert!(f32::abs(rgb.b - 1.0) < std::f32::EPSILON); }
rust_cleaned_test_functions.jsonl/46380
{ "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, 34991, 32655, 368, 341, 286, 1077, 17993, 284, 20978, 486, 1499, 32655, 3584, 15, 15, 15, 15, 1748, 1827, 17119, 445, 7928, 12371, 914, 797, 286, 2060, 10297, 16509, 1746, 366, 1460, 486, 69, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_private_key_from_der() { let key = Rsa::generate(2048).unwrap(); let der = key.private_key_to_der().unwrap(); let (n, e, d, p, q) = private_key_from_der(&der).unwrap(); assert_eq!(key.p().unwrap().to_vec(), p); assert_eq!(key.q().unwrap().to_vec(), q); ...
rust_cleaned_test_functions.jsonl/79787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 248 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26249, 3097, 5673, 35345, 368, 341, 286, 1077, 1376, 284, 431, 9081, 486, 19366, 7, 17, 15, 19, 23, 568, 15454, 1428, 286, 1077, 2694, 284, 1376, 61603, 3097, 2346, 35345, 1005, 15454, 1428, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_make_move() { let mut game = Game::new(n!("player1").into(), n!("player2").into()); assert_eq!(game.board[0], EMPTY); game.make_move(0, 0); assert_eq!(game.board[0], HOST); assert_eq!(game.board[1], EMPTY); game.make_move(0, 1); assert_eq!(...
rust_cleaned_test_functions.jsonl/43531
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 182 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 17134, 368, 341, 286, 1077, 5206, 1809, 284, 4050, 486, 931, 1445, 17223, 3434, 16, 1827, 18122, 1507, 308, 17223, 3434, 17, 1827, 18122, 1423, 286, 2060, 10714, 10297, 5804, 25205, 58, 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_maybe_parallel_iterator() { let mut v = vec![1u32, 2, 3, 4, 5, 6]; assert_eq!(v.maybe_par_iter().sum::<u32>(), 21); assert_eq!(v.maybe_par_iter_mut().map(|v| *v * 2).sum::<u32>(), 42); assert_eq!(v.maybe_par_iter().sum::<u32>(), 42); assert_eq!(v.into_may...
rust_cleaned_test_functions.jsonl/61347
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 49791, 60625, 13491, 368, 341, 286, 1077, 5206, 348, 284, 7486, 20703, 16, 84, 18, 17, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 4821, 286, 2060, 10714, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vector() { let string = "[1 2 3 4 5 6]"; let data = parse::value(string).unwrap().without_spans(); assert_eq!(data.to_pretty(20).unwrap(), "[1 2 3 4 5 6]"); assert_eq!( data.to_pretty(10).unwrap(), "\ [1 2 3 4 5 6]" ); }
rust_cleaned_test_functions.jsonl/97799
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12247, 368, 341, 286, 1077, 914, 284, 10545, 16, 220, 17, 220, 18, 220, 19, 220, 20, 220, 21, 59757, 286, 1077, 821, 284, 4715, 486, 957, 3609, 568, 15454, 1005, 28996, 10123, 596, 1428, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_loop_backedges_one() { let mir_body = switchint_then_loop_else_return(); let basic_coverage_blocks = graph::CoverageGraph::from_mir(&mir_body); let backedges = graph::find_loop_backedges(&basic_coverage_blocks); assert_eq!( backedges.iter_enumerated().map(|(_bcb, bac...
rust_cleaned_test_functions.jsonl/68934
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 17198, 3895, 16900, 11667, 368, 341, 262, 1077, 8652, 14114, 284, 3398, 396, 68367, 17198, 62628, 12511, 543, 262, 1077, 6770, 73384, 25201, 284, 4771, 486, 66312, 11212, 486, 1499, 717, 404,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_handle_redeem_transaction_negative_balance() { let (mut contract_state, name, secret) = init_contract(); let mut redeem_transaction = init_redeem_transaction(contract_state.committee.clone(), name, secret); let funding_transaction = init_funding_transaction(); let too_muc...
rust_cleaned_test_functions.jsonl/11411
{ "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, 10630, 1288, 450, 336, 28884, 53865, 29396, 368, 341, 262, 1077, 320, 6984, 5116, 4387, 11, 829, 11, 6234, 8, 284, 2930, 51499, 543, 262, 1077, 5206, 48778, 28884, 4035, 286, 2930, 1288, 450, 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_struct_ignore() { let res = StructWithIgnore::parse(INPUT_16); assert_eq!( res, Ok((&INPUT_16[4..], StructWithIgnore { a: 1, b: None })) ); }
rust_cleaned_test_functions.jsonl/48207
{ "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, 15126, 58493, 368, 341, 262, 1077, 592, 284, 16139, 2354, 12497, 486, 6400, 57911, 62, 16, 21, 317, 262, 2060, 10714, 33673, 286, 592, 345, 286, 7622, 42902, 29421, 62, 16, 21, 58, 19, 496, 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
#[test] fn test_read_write_f32() { let f:f32 = 8.1250; let mut writer = MemWriter::new(); writer.write_be_f32_(f); writer.write_le_f32_(f); let mut reader = MemReader::new(writer.inner()); assert!(reader.read_be_f32_() == 8.1250); assert!(reader.read_le_...
rust_cleaned_test_functions.jsonl/38078
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 9165, 761, 18, 17, 368, 341, 286, 1077, 282, 55477, 18, 17, 284, 220, 23, 13, 16, 17, 20, 15, 401, 286, 1077, 5206, 6916, 284, 13550, 6492, 486, 931, 543, 286, 6916, 3836, 21263, 761, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_range_inclusive_max_value() { let max = usize::MAX; let map: BTreeMap<_, _> = vec![(max, 0)].into_iter().collect(); assert_eq!(map.range(max..=max).collect::<Vec<_>>(), &[(&max, &0)]); }
rust_cleaned_test_functions.jsonl/53939
{ "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, 9698, 1243, 8336, 6345, 3142, 368, 341, 262, 1077, 1932, 284, 22301, 486, 10586, 280, 262, 1077, 2415, 25, 425, 6533, 2227, 27, 6878, 716, 29, 284, 7486, 0, 9697, 2810, 11, 220, 15, 26169, 181...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_string_utf8() { // simple list with 3-Options let encoded = "0e0000002d436f6e73696465722074686520656e636f64696e67206f6620746865206575726f207369676e2c20e282ac3a20"; let bytes = hex::decode(encoded).unwrap(); let (_, value) = Value::from_bytes(&bytes).unwrap(); ...
rust_cleaned_test_functions.jsonl/49842
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3904, 39453, 23, 368, 341, 286, 442, 4285, 1140, 448, 220, 18, 12, 3798, 198, 286, 1077, 20498, 284, 330, 15, 68, 15, 15, 15, 15, 15, 15, 17, 67, 19, 18, 21, 69, 21, 68, 22, 18, 21, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_event_fields() { let event = Event::data("foo").id("moo"); assert_eq!(event.into_string(), "id:moo\ndata:foo\n\n"); let event = Event::data("foo").id("moo").with_retry(Duration::from_secs(45)); assert_eq!(event.into_string(), "retry:45000\nid:moo\ndata:foo\n\n");...
rust_cleaned_test_functions.jsonl/52159
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1048 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6748, 12132, 368, 341, 286, 1077, 1538, 284, 3665, 486, 691, 445, 7975, 1827, 307, 445, 76, 2624, 797, 286, 2060, 10714, 10297, 3087, 39860, 3904, 1507, 330, 307, 30286, 2624, 59, 82603, 25, 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_state_from_account() { let mut nonce_account = nonce_account::create_account(1).into_inner(); assert_eq!(state_from_account(&nonce_account), Ok(State::Uninitialized)); let data = nonce::state::Data::new(Pubkey::new(&[1u8; 32]), Hash::new(&[42u8; 32]), 42); nonce_...
rust_cleaned_test_functions.jsonl/106249
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 357 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4387, 5673, 13500, 368, 341, 286, 1077, 5206, 39676, 13500, 284, 39676, 13500, 486, 3182, 13500, 7, 16, 568, 18122, 34345, 543, 286, 2060, 10714, 10297, 2454, 5673, 13500, 2099, 39593, 13500, 701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ownershipvoucher_parsing_many() { let ov_path = TC::test_asset_path("testdevice1.ov"); let ov_path = ov_path.to_str().unwrap(); let result = TC::run_external("ownershipvoucher_many", &[&ov_path, &ov_path]); assert!(result.status.success()); result.stdout...
rust_cleaned_test_functions.jsonl/24702
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 298 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 78147, 79013, 620, 28598, 22101, 368, 341, 286, 1077, 24550, 2638, 284, 24591, 486, 1944, 42299, 2638, 445, 1944, 6111, 16, 93150, 797, 286, 1077, 24550, 2638, 284, 24550, 2638, 2389, 2895, 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...
1
#[test] fn test_message_activity_complete() { let value = MessageActivity { kind: MessageActivityType::Join, party_id: Some("test".to_owned()), }; serde_test::assert_tokens( &value, &[ Token::Struct { na...
rust_cleaned_test_functions.jsonl/21337
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 383 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6462, 30026, 27675, 368, 341, 286, 1077, 897, 284, 4856, 4052, 341, 310, 3093, 25, 4856, 4052, 929, 486, 12292, 345, 310, 4614, 842, 25, 4329, 445, 1944, 3263, 983, 51973, 14702, 286, 3634, 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_is_finite() { let nan: f64 = NAN; let inf: f64 = INFINITY; let neg_inf: f64 = NEG_INFINITY; assert!(!nan.is_finite()); assert!(!inf.is_finite()); assert!(!neg_inf.is_finite()); assert!(0.0f64.is_finite()); assert!(42.8f64.is_finite(...
rust_cleaned_test_functions.jsonl/7822
{ "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, 6892, 761, 15856, 368, 341, 286, 1077, 20021, 25, 282, 21, 19, 284, 92129, 280, 286, 1077, 4132, 25, 282, 21, 19, 284, 1964, 55990, 280, 286, 1077, 4184, 26051, 25, 282, 21, 19, 284, 84065, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_guild_news_thread_deserialization() { let timestamp = Timestamp::from_secs(1_632_074_792).expect("non zero"); let formatted = timestamp.iso_8601().to_string(); let value = Channel { application_id: None, bitrate: None, default_auto_arc...
rust_cleaned_test_functions.jsonl/76870
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1689 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 1498, 32485, 10814, 15768, 50563, 368, 341, 286, 1077, 11441, 284, 32758, 486, 1499, 68718, 7, 16, 62, 21, 18, 17, 62, 15, 22, 19, 62, 22, 24, 17, 568, 17119, 445, 6280, 7168, 797, 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_adapter() { assert_to_bytes!( Adapter { function_type: 0, instructions: vec![Instruction::ArgumentGet { index: 1 }], }, &[ 0x00, // function type 0x01, // list of 1 item 0x...
rust_cleaned_test_functions.jsonl/132566
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43682, 368, 341, 286, 2060, 2346, 12524, 33673, 310, 28807, 341, 394, 729, 1819, 25, 220, 15, 345, 394, 11221, 25, 7486, 20703, 16664, 486, 9171, 1949, 314, 1922, 25, 220, 16, 29043, 310, 1153, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_list_results() -> TestResult { let mut p = Polar::new(); p.load_str( r#"delete([x, *xs], x, ys) if delete(xs, x, ys); delete([x, *xs], z, [x, *ys]) if x != z and delete(xs, z, ys); delete([], _, []);"#, )?; qeval(&mut p, "delete([1,2,3...
rust_cleaned_test_functions.jsonl/97663
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 647 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2019, 13576, 368, 1464, 3393, 2077, 341, 262, 1077, 5206, 281, 284, 55896, 486, 931, 543, 262, 281, 5104, 2895, 1006, 286, 435, 55543, 4542, 2561, 87, 11, 353, 18561, 1125, 856, 11, 31810, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_bitcoinconsensus () { // a random segwit transaction from the blockchain using native segwit let spent = Builder::from(hex_decode("0020701a8d401c84fb13e6baf169d59684e17abd9fa216c8cc5b9fc63d622ff8c58d").unwrap()).into_script(); let spending = hex_decode("010000000001011f97548fbbe7a0db7588a6...
rust_cleaned_test_functions.jsonl/112394
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 557 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 7160, 6254, 13626, 1719, 341, 197, 197, 322, 264, 4194, 4810, 88519, 7745, 504, 279, 17944, 1667, 9867, 4810, 88519, 198, 197, 10217, 7391, 284, 20626, 486, 1499, 44660, 15227, 445, 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_esc() { test(b"\x1b", "\u{fffd}\n"); test(b"\x1b@", "\n"); test(b"\x1b@hello\x1b@world\x1b@", "helloworld\n"); }
rust_cleaned_test_functions.jsonl/36866
{ "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, 92196, 368, 341, 262, 1273, 1883, 11934, 87, 16, 65, 497, 2917, 84, 90, 542, 6902, 11035, 77, 797, 262, 1273, 1883, 11934, 87, 16, 65, 18384, 2917, 77, 797, 262, 1273, 1883, 11934, 87, 16, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_packet_buf() { create_context!(test_ctx, handler_ctx); let mut pkt = VsockPacket::from_rx_virtq_head(&handler_ctx.handler.rxvq.pop(&test_ctx.mem).unwrap()) .unwrap(); assert_eq!( pkt.buf().unwrap().len(), handler_ctx.gu...
rust_cleaned_test_functions.jsonl/17732
{ "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, 21078, 10363, 368, 341, 286, 1855, 8467, 10297, 1944, 15147, 11, 7013, 15147, 317, 286, 1077, 5206, 34654, 4035, 310, 647, 13199, 16679, 486, 1499, 24330, 2273, 2106, 80, 13138, 2099, 17905, 15147, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unix() { init(); let addr = "/tmp/rsocket-uds.sock"; let server_runtime = Runtime::new().unwrap(); // spawn a server server_runtime.spawn(async move { RSocketFactory::receive() .transport(UnixServerTransport::from(addr)) .acceptor(Box::new(|...
rust_cleaned_test_functions.jsonl/37354
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 655 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80572, 368, 341, 262, 2930, 1428, 262, 1077, 10789, 284, 3521, 5173, 7382, 9556, 12, 27988, 68171, 3302, 262, 1077, 3538, 33232, 284, 10954, 486, 931, 1005, 15454, 1428, 262, 442, 18042, 264, 3538...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_invalid_json() -> io::Result<()> { let cfg_dir = tempfile::tempdir()?; let cfg_file = cfg_dir.path().join("config.json"); let config_content = "not valid json"; let mut docker_config = File::create(&cfg_file)?; docker_config.write_all(config_content.to_s...
rust_cleaned_test_functions.jsonl/18772
{ "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, 31433, 9455, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 13286, 4334, 284, 54819, 486, 3888, 3741, 94136, 286, 1077, 13286, 2458, 284, 13286, 4334, 3875, 1005, 5987, 445, 1676, 4323, 3071, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_add_duration_and_duration() { let cases = vec![ (Some("00:01:01"), Some("00:01:01"), Some("00:02:02")), (Some("11:59:59"), Some("00:00:01"), Some("12:00:00")), (Some("23:59:59"), Some("00:00:01"), Some("24:00:00")), (Some("23:59:59"), Some(...
rust_cleaned_test_functions.jsonl/36226
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 548 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 25454, 8378, 25454, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 8373, 445, 15, 15, 25, 15, 16, 25, 15, 16, 3975, 4329, 445, 15, 15, 25, 15, 16, 25, 15, 16, 3975, 4329, 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...
2
#[test] fn test_analyze_cron_expression() -> AnyResult<()> { use super::{DelayTimerScheduleIteratorOwned, ScheduleIteratorTimeZone}; use std::thread::sleep; use std::time::Duration; let mut schedule_iterator_first = DelayTimerScheduleIteratorOwned::analyze_cron_expression( ...
rust_cleaned_test_functions.jsonl/79310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 397 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12008, 55856, 666, 2248, 28068, 368, 1464, 5765, 2077, 71698, 341, 286, 990, 2256, 22964, 20039, 10105, 32210, 11951, 57641, 11, 23512, 11951, 77786, 2440, 286, 990, 1460, 486, 4528, 486, 25809, 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...
3
#[test] fn test_query_id() { let mut chain = Chain::new(); // Transactions let (t0, t0_s) = Transaction::debug_make_register(format!("SN1337BIKE")); let (t1, _) = Transaction::debug_make_register(format!("MYCOOLBIKE")); let (t2, t2_s) = Transaction::debug_make_transfer(&...
rust_cleaned_test_functions.jsonl/102222
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 548 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 842, 368, 341, 286, 1077, 5206, 8781, 284, 28525, 486, 931, 1428, 286, 442, 55285, 198, 286, 1077, 320, 83, 15, 11, 259, 15, 643, 8, 284, 17869, 486, 8349, 28230, 14000, 20698, 17223, 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_chmod_many_options() { let _guard = UMASK_MUTEX.lock(); let original_umask = unsafe { umask(0) }; let tests = vec![TestCase { args: vec!["-r,a+w", TEST_FILE], before: 0o100444, after: 0o100222, }]; run_tests(tests); unsafe { umask(original...
rust_cleaned_test_functions.jsonl/127207
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 170 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4138, 2593, 22101, 8743, 368, 341, 262, 1077, 716, 26098, 284, 547, 49863, 66994, 21003, 1428, 262, 1077, 4024, 72063, 1073, 284, 19860, 314, 4443, 1073, 7, 15, 8, 2605, 262, 1077, 7032, 284, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_simple_scan_error() { let exec = fuchsia_async::TestExecutor::new().unwrap(); let (mut sme, _mlme_strem, _time_stream) = create_sme(&exec); let mut recv = sme.on_scan_command(fidl_sme::ScanRequest::Passive(fidl_sme::PassiveScanRequest {})); sme.on_mlm...
rust_cleaned_test_functions.jsonl/33063
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 369 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 28857, 4096, 368, 341, 286, 1077, 3883, 284, 282, 73391, 28346, 486, 2271, 25255, 486, 931, 1005, 15454, 543, 286, 1077, 320, 6984, 90467, 11, 716, 1014, 2660, 1261, 1826, 11, 716, 1678, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_record_none() { let mut transaction_context = MockTransactionContext::default(); let state = TrackAndTraceState::new(&mut transaction_context); let result = state.get_record("not_an_record").unwrap(); assert!(result.is_none()) }
rust_cleaned_test_functions.jsonl/116991
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 14192, 31488, 368, 341, 286, 1077, 5206, 7745, 8467, 284, 14563, 8070, 1972, 486, 2258, 543, 286, 1077, 1584, 284, 19785, 3036, 6550, 1397, 486, 931, 2099, 6984, 7745, 8467, 626, 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
#[test] fn test_size_of_binary_token() { let token_size = std::mem::size_of::<BinaryToken>(); let maxed = std::cmp::max(std::mem::size_of::<Scalar>(), std::mem::size_of::<Rgb>()); assert!(token_size <= 24); assert_eq!(token_size, maxed + std::mem::size_of::<usize>()); }
rust_cleaned_test_functions.jsonl/109400
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2368, 3575, 31761, 6458, 368, 341, 286, 1077, 3950, 2368, 284, 1460, 486, 10536, 486, 2141, 3575, 27638, 21338, 3323, 3913, 286, 1077, 1932, 291, 284, 1460, 486, 7293, 486, 2810, 5194, 486, 10536,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_input() { let input = get_input(Cursor::new(DATA)).unwrap(); assert_eq!( input, vec![ Password { policy_min: 1, policy_max: 3, policy_char: 'a', password: "abc...
rust_cleaned_test_functions.jsonl/3460
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 547 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5898, 368, 341, 286, 1077, 1946, 284, 633, 5898, 3025, 3823, 486, 931, 59093, 4579, 15454, 1428, 286, 2060, 10714, 33673, 310, 1946, 345, 310, 7486, 90515, 394, 12362, 341, 503, 4842, 7260, 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_offsetof() { use self::int::dec; use ast::ArraySize::VariableExpression; use ast::Expression::OffsetOf; use ast::OffsetMember::IndirectMember; use ast::TypeSpecifier::Int; use parser::expression; assert_eq!( expression( "__builtin_offsetof(struct ...
rust_cleaned_test_functions.jsonl/107562
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2243 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6917, 1055, 368, 341, 262, 990, 656, 486, 396, 486, 8169, 280, 262, 990, 11763, 486, 1857, 1695, 486, 7827, 9595, 280, 262, 990, 11763, 486, 9595, 486, 6446, 2124, 280, 262, 990, 11763, 486, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parses_doc_comments_and_ignores_line_comments() { let mut scanner = Scanner::new( "<?php // Line comment echo 'blubb'; # alternative line comment /** some multiline comment */ echo 'blabb'; // ?> ", )...
rust_cleaned_test_functions.jsonl/52937
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 271 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77113, 288, 18869, 30359, 8378, 62, 622, 4589, 6528, 30359, 368, 341, 286, 1077, 5206, 20775, 284, 17170, 486, 931, 1006, 310, 40271, 1208, 198, 310, 442, 7083, 3980, 198, 310, 1687, 364, 2024, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_zip() { let mut rng = rand::thread_rng(); let mix = Mix::with_zip(vec![ (Uniform::new_inclusive(0, 0), 2), (Uniform::new_inclusive(1, 1), 1), ]) .unwrap(); let data = mix.sample_iter(&mut rng).take(300).collect::<Vec<_>>(); ...
rust_cleaned_test_functions.jsonl/69922
{ "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, 42131, 368, 341, 286, 1077, 5206, 28422, 284, 10382, 486, 4528, 66849, 1428, 286, 1077, 6514, 284, 19219, 486, 4197, 42131, 25592, 90515, 310, 320, 20152, 486, 931, 1243, 8336, 7, 15, 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...
3
#[test] fn test_heartbeat_timeout_selected_participant() { let mut protocol = Protocol::new(get_default_fl_settings()); let client_id = ClientId::new(); let _ = protocol.rendez_vous(client_id, ClientState::Unknown); let candidates = vec![(client_id, ClientState::Waiting)]; ...
rust_cleaned_test_functions.jsonl/97768
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 534 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 72471, 20537, 23755, 10495, 21757, 368, 341, 286, 1077, 5206, 11507, 284, 24572, 486, 931, 5433, 9993, 5081, 10853, 1423, 286, 1077, 2943, 842, 284, 8423, 764, 486, 931, 543, 286, 1077, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_new_dirty_with_name_abort() { for answer in NO_ANSWERS { Tester::default() .add_input_chars("modified named file\n") .add_input_chars(answer) .set_program(Some("MEMORY:/named.bas"), "previous contents\n") .run("E...
rust_cleaned_test_functions.jsonl/112753
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 417 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 63642, 6615, 1269, 70907, 368, 341, 286, 369, 4226, 304, 5664, 67752, 54, 4321, 341, 310, 76816, 486, 2258, 741, 394, 659, 718, 5898, 37418, 445, 27162, 6941, 1034, 1699, 1138, 394, 659, 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_recover_0_share_num() { let hash = get_test_hash(); let share1 = Share { id: 0, threshold: TEST_THRESHOLD, shares_count: TEST_SHARES_COUNT, data: "1YAYwmOHqZ69jA".to_string().into_bytes(), hash: hash.clone(), metadata: None, }; let...
rust_cleaned_test_functions.jsonl/74532
{ "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, 1288, 3688, 62, 15, 38272, 4273, 368, 341, 262, 1077, 5175, 284, 633, 4452, 8950, 1428, 262, 1077, 4332, 16, 284, 11775, 341, 286, 877, 25, 220, 15, 345, 286, 12171, 25, 13602, 44405, 345, 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