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_new(){ let sys : ContCubicSystem = ContCubicSystem::new(BoundaryCond::Reflection, 3.0, 2); assert_eq!(sys.sys_type, SystemType::ContinuousRectangular); assert_eq!(sys.bctype, BoundaryCond::Reflection); assert_eq!(sys.sys_size, 3.0); assert_eq!(sys.dim, 2)...
rust_cleaned_test_functions.jsonl/74847
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 3032, 286, 1077, 5708, 549, 2093, 34, 41181, 2320, 284, 2093, 34, 41181, 2320, 486, 931, 5349, 72466, 49696, 486, 44238, 11, 220, 18, 13, 15, 11, 220, 17, 626, 286, 2060, 10714, 10297, 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...
1
#[test] fn test_new() { let context = get_context(carol()); testing_env!(context); let total_supply = 1_000_000_000_000_000u128; let contract = FunToken::new(bob(), total_supply.to_string()).unwrap(); assert_eq!(contract.get_total_supply(), total_supply.to_string()); ...
rust_cleaned_test_functions.jsonl/74519
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 368, 341, 286, 1077, 2266, 284, 633, 8467, 42078, 337, 1423, 286, 7497, 15879, 10297, 2147, 317, 286, 1077, 2790, 65630, 284, 220, 16, 62, 15, 15, 15, 62, 15, 15, 15, 62, 15, 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_inclusive_span() { let context = build_context(Moment(Paris.ymd(2017, 04, 25).and_hms(9, 10, 11))); let walker = DayOfWeek::new(Weekday::Mon).span_to(&rc!(DayOfWeek(Weekday::Wed))) .to_walker(&context.reference, &context); assert_eq!(Some(Interval::new(Moment...
rust_cleaned_test_functions.jsonl/114683
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 863 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 8336, 37382, 368, 341, 286, 1077, 2266, 284, 1936, 8467, 3189, 12913, 7, 59604, 13, 1600, 67, 7, 17, 15, 16, 22, 11, 220, 15, 19, 11, 220, 17, 20, 568, 437, 1523, 1011, 7, 24, 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_insert_update() { let mut map = LinkedHashMap::new(); map.insert("1".to_string(), vec![10, 10]); map.insert("1".to_string(), vec![10, 19]); assert_opt_eq(map.get(&"1".to_string()), vec![10, 19]); assert_eq!(map.len(), 1); }
rust_cleaned_test_functions.jsonl/3973
{ "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, 17678, 8882, 368, 341, 286, 1077, 5206, 2415, 284, 64333, 486, 931, 543, 286, 2415, 7030, 445, 16, 3263, 983, 3904, 1507, 7486, 20703, 16, 15, 11, 220, 16, 15, 2558, 286, 2415, 7030, 445, 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_select_where_ends_into() { let expected = expected_values("SELECT `naukio`.* FROM `naukio` WHERE `word` LIKE ?", vec!["%meow"]); let query = Select::from_table("naukio").so_that("word".ends_into("meow")); let (sql, params) = Sqlite::build(query).unwrap(); assert...
rust_cleaned_test_functions.jsonl/52910
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 177 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13051, 36814, 90729, 45514, 368, 341, 286, 1077, 3601, 284, 3601, 9146, 445, 4858, 1565, 77, 2863, 74, 815, 63, 4908, 4295, 1565, 77, 2863, 74, 815, 63, 5288, 1565, 1158, 63, 20529, 42313, 7486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_legendre() { assert_eq!(Scalar::zero().sqrt().unwrap(), Scalar::zero()); assert_eq!(Scalar::one().sqrt().unwrap(), Scalar::one()); let e = Scalar::from_u64s_le(&[ 0x0dbc5349cd5664da, 0x8ac5b6296e3ae29d, 0x127cb819feceaa3b, ...
rust_cleaned_test_functions.jsonl/54667
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 422 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41652, 76612, 265, 368, 341, 286, 2060, 10714, 10297, 20639, 486, 14154, 1005, 26888, 1005, 15454, 1507, 35176, 486, 14154, 1423, 286, 2060, 10714, 10297, 20639, 486, 603, 1005, 26888, 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...
1
#[test] fn test_to_jpeg() { let plot = create_test_plot(); let dst = PathBuf::from("example.jpeg"); plot.to_jpeg(&dst, 1024, 680); assert!(dst.exists()); std::fs::remove_file(&dst); assert!(!dst.exists()); }
rust_cleaned_test_functions.jsonl/121956
{ "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, 2346, 5374, 10311, 368, 341, 286, 1077, 7089, 284, 1855, 4452, 24351, 543, 286, 1077, 10648, 284, 7933, 15064, 486, 1499, 445, 8687, 30675, 797, 286, 7089, 2389, 5374, 10311, 2099, 15658, 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_cast_range_uint_max() { assert_eq!(uint::max_value.to_int(), None); assert_eq!(uint::max_value.to_i8(), None); assert_eq!(uint::max_value.to_i16(), None); assert_eq!(uint::max_value.to_i32(), None); assert_eq!(uint::max_value.to_u8(), None)...
rust_cleaned_test_functions.jsonl/12460
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 491 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 9698, 15807, 6345, 368, 341, 286, 2060, 10714, 10297, 2496, 486, 2810, 3142, 2389, 4042, 1507, 220, 2240, 317, 286, 2060, 10714, 10297, 2496, 486, 2810, 3142, 2389, 5318, 23, 1507, 256, 2240...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eth_aggregate() { let f = File::open("tests/aggregate.txt").unwrap(); let file = BufReader::new(&f); let mut sigs: Vec<Signature> = Vec::new(); for (_, s) in file.lines().enumerate() { let line = s.unwrap(); let v: Vec<&str> = line.split(' ').collect(); m...
rust_cleaned_test_functions.jsonl/8593
{ "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, 57757, 20587, 14240, 368, 341, 262, 1077, 282, 284, 2887, 486, 2508, 445, 23841, 14, 59606, 3909, 1827, 15454, 543, 262, 1077, 1034, 284, 69013, 5062, 486, 931, 2099, 69, 317, 262, 1077, 5206, 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...
3
#[test] fn test_empty_impl_block() { check_assist( add_missing_impl_members, " trait Foo { fn foo(&self); } struct S; impl Foo for S { <|> }", " trait Foo { fn foo(&self); } struct S; impl Foo for S { <|>fn foo(&self) { unimplemented!() } }", ); }
rust_cleaned_test_functions.jsonl/106814
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 21007, 7113, 368, 341, 286, 1779, 12083, 380, 1006, 310, 912, 40447, 21007, 30397, 345, 310, 6228, 29432, 33428, 314, 5168, 15229, 2099, 721, 1215, 456, 1235, 328, 280, 6383, 33428, 369, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_position() { let line_index = index_lines("a\nb\r\nc\n"); assert_eq!( to_position(&line_index, 6), lsp_types::Position { line: 2, character: 1, } ); assert_eq!( to_position(&line_index, 0), lsp_types::Position { line: 0, ...
rust_cleaned_test_functions.jsonl/39681
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 267 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 9661, 368, 341, 262, 1077, 1555, 3560, 284, 1922, 18323, 445, 64, 1699, 65, 12016, 59, 1016, 1699, 797, 262, 2060, 10714, 33673, 414, 311, 9661, 2099, 1056, 3560, 11, 220, 21, 1326, 414, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ordinal_date() { assert_eq!( Ok(Date::Ordinal { year: 2015, ddd: 57, }), date("2015-057") ); assert_eq!( Ok(Date::Ordinal { year: 2015, ddd: 358, }), date("2015-358") ); assert_eq...
rust_cleaned_test_functions.jsonl/16742
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 339 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 45151, 4164, 368, 341, 262, 2060, 10714, 33673, 286, 7622, 19987, 486, 34779, 341, 310, 1042, 25, 220, 17, 15, 16, 20, 345, 310, 294, 631, 25, 220, 20, 22, 345, 286, 11973, 286, 2400, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_execute_script_with_module_in_the_same_file() { let _pool = ConstPool::new(); let text = r" address 0x2 { module Record { resource struct T { age: u8 } public fun create(age: u8): T { T { age } } public fun save(accou...
rust_cleaned_test_functions.jsonl/43924
{ "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, 44329, 14660, 6615, 10750, 1243, 16068, 33574, 2458, 368, 341, 262, 1077, 716, 10285, 284, 24522, 10551, 486, 931, 1428, 262, 1077, 1467, 284, 435, 698, 4995, 220, 15, 87, 17, 341, 262, 4688, 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_const_in_pattern() { check( r#" const A$0: i32 = 42; fn main() { match A { A => (), _ => (), } if let A = A {} } "#, expect![[r#" A Const FileId(0) 0..18 6..7 FileId(0) 42..43 FileId(0) ...
rust_cleaned_test_functions.jsonl/60677
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 285 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13610, 1243, 21260, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1024, 362, 3, 15, 25, 600, 18, 17, 284, 220, 19, 17, 401, 8822, 1887, 368, 341, 262, 2432, 362, 341, 286, 362, 589, 84201, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unique_ints2() { let input = "9\n9\n8\n1\n"; new_ucmd!() .arg("-nu") .pipe_in(input) .succeeds() .stdout_only("1\n8\n9\n"); }
rust_cleaned_test_functions.jsonl/20498
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29418, 21218, 4042, 82, 17, 368, 341, 262, 1077, 1946, 284, 330, 24, 1699, 24, 1699, 23, 1699, 16, 1699, 876, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 13645, 8933, 1138, 286, 659, 13768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vectors_alias() { let rdata = b"\x00\x00\ \x03\x66\x6f\x6f\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x63\x6f\x6d\x00"; // parse test let mut parser = Parser::from_ref(rdata.as_ref()); let svcb = Svcb::parse(&mut parser).unwrap(); asser...
rust_cleaned_test_functions.jsonl/132753
{ "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, 49158, 35947, 368, 341, 286, 1077, 435, 691, 4035, 310, 293, 11934, 87, 15, 15, 3462, 15, 15, 5661, 1060, 1124, 87, 15, 18, 3462, 21, 21, 3462, 21, 69, 3462, 21, 69, 3462, 15, 22, 3462, 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_ignores_unimplemented_encodings() { let client = Client::new(rocket()).expect("valid rocket instance"); let mut response = client .get("/") .header(Header::new("Accept-Encoding", "deflate")) .dispatch(); assert_eq!(response.status(), St...
rust_cleaned_test_functions.jsonl/107458
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 299 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 622, 4589, 4907, 54071, 13781, 58335, 368, 341, 286, 1077, 2943, 284, 8423, 486, 931, 7, 46790, 6011, 17119, 445, 1891, 24306, 2867, 797, 286, 1077, 5206, 2033, 284, 2943, 198, 310, 659, 455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_redirect_policy_limit() { let policy = RedirectPolicy::default(); let next = Url::parse("http://x.y/z").unwrap(); let mut previous = (0..9) .map(|i| Url::parse(&format!("http://a.b/c/{}", i)).unwrap()) .collect::<Vec<_>>(); assert_eq!( policy.check(Status...
rust_cleaned_test_functions.jsonl/43784
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 260 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30043, 22773, 14763, 368, 341, 262, 1077, 4842, 284, 16029, 13825, 486, 2258, 543, 262, 1077, 1790, 284, 22840, 486, 6400, 445, 1254, 1110, 87, 2384, 31082, 1827, 15454, 543, 262, 1077, 5206, 3681...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_formattertextkind_values() { let mut iter = FormatterTextKind::values(); assert_eq!(iter.size_hint(), (IcedConstants::FORMATTER_TEXT_KIND_ENUM_COUNT, Some(IcedConstants::FORMATTER_TEXT_KIND_ENUM_COUNT))); assert_eq!(iter.len(), IcedConstants::FORMATTER_TEXT_KIND_ENUM_COUNT); assert!(iter.nex...
rust_cleaned_test_functions.jsonl/11775
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 394 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73965, 1318, 15314, 9146, 368, 341, 10217, 5206, 5367, 284, 81387, 1178, 10629, 486, 3661, 543, 6948, 10714, 10297, 2015, 2486, 45825, 1507, 320, 40, 1998, 9386, 486, 46559, 4198, 10243, 72959, 3189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_expect_at_most_with_needed_requests() { let mock = mock("GET", "/hello").expect_at_most(3).create(); request("GET /hello", ""); request("GET /hello", ""); request("GET /hello", ""); mock.assert(); }
rust_cleaned_test_functions.jsonl/82433
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68918, 3752, 81416, 6615, 57426, 37216, 368, 341, 262, 1077, 7860, 284, 7860, 445, 3806, 497, 3521, 14990, 1827, 17119, 3752, 81416, 7, 18, 568, 3182, 1428, 262, 1681, 445, 3806, 608, 14990, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_word_count() { struct Test<'a> { input: &'a str, expect: (usize, usize, usize), }; let tests = vec![ Test { input: "hoge fuga moge", expect: (0, 3, 14), }, Test { input: "hoge fuga moge\n", expec...
rust_cleaned_test_functions.jsonl/65316
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 328 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13533, 3180, 368, 341, 262, 2036, 3393, 18291, 64, 29, 341, 286, 1946, 25, 30136, 64, 607, 345, 286, 1720, 25, 320, 51878, 11, 22301, 11, 22301, 1326, 262, 3634, 262, 1077, 7032, 284, 7486, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fqdn_lookup() { let fqdn = lookup_fqdn("localhost"); assert!(fqdn.is_ok()); assert_eq!(fqdn.unwrap(), String::from("localhost"), "the fqdn of localhost should be localhost"); }
rust_cleaned_test_functions.jsonl/105007
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 121 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 17395, 27464, 368, 341, 262, 1077, 82467, 17395, 284, 18615, 761, 80, 17395, 445, 8301, 797, 262, 2060, 10297, 63919, 17395, 2079, 19817, 1423, 262, 2060, 10714, 10297, 63919, 17395, 55395,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_bpf_to_bpf_pass_stack_reference() { let mut file = File::open("tests/elfs/pass_stack_reference.so").expect("file open failed"); let mut elf = Vec::new(); file.read_to_end(&mut elf).unwrap(); let mut vm = EbpfVm::new(None).unwrap(); vm.register_helper_ex("log", bpf_helper_str...
rust_cleaned_test_functions.jsonl/15547
{ "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, 880, 15897, 2346, 880, 15897, 15464, 15528, 25433, 368, 341, 262, 1077, 5206, 1034, 284, 2887, 486, 2508, 445, 23841, 14, 490, 82, 67070, 15528, 25433, 26476, 1827, 17119, 445, 1192, 1787, 4641, 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...
1
#[test] fn test_parse_redirect_details() { let _setup = SetupMocks::init(); let test_name = "test_parse_acceptance_details"; let response = Message { status_code: MessageStatusCode::Redirected, payload: Some(MessagePayload::V1(vec![-110, -109, -81, 99, 111, 110, ...
rust_cleaned_test_functions.jsonl/20881
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1699 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 30043, 13260, 368, 341, 286, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 543, 286, 1077, 1273, 1269, 284, 330, 1944, 21039, 35728, 681, 13260, 3302, 286, 1077, 2033, 284, 4856, 341, 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_knn() { let k = 2; let x: [[f32; 2]; 4] = [[0.0, 1.0], [2.0, 3.0], [4.0, 5.0], [0.06, 7.0]]; let train: [[f32; 3]; 4] = [[0.0, 0.0, 0.0], [0.5, 0.5, 0.0], [3.0, 3.0, 1.0], [4.0, 3.0, 1.0]]; let y_test: Vec<Option<f32>> = classification::k_nearest_neighbours(k, &x, &train); le...
rust_cleaned_test_functions.jsonl/130154
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4698, 7370, 368, 341, 262, 1077, 595, 284, 220, 17, 280, 262, 1077, 856, 25, 4318, 69, 18, 17, 26, 220, 17, 5265, 220, 19, 60, 284, 4318, 15, 13, 15, 11, 220, 16, 13, 15, 1125, 508, 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_renaming_of_block() { // Given: // y = phi [] // x = y // x = y // z = x let mut block = Block::new(0); block.add_phi_node(PhiNode::new(variable("y"))); block.assign(variable("x"), variable("y").into()).unwrap(); bl...
rust_cleaned_test_functions.jsonl/13498
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 908 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 77, 6469, 3575, 7113, 368, 341, 286, 442, 16246, 510, 286, 442, 379, 284, 22693, 4167, 286, 442, 856, 284, 379, 8945, 286, 442, 856, 284, 379, 198, 286, 442, 1147, 284, 856, 198, 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_parse_response_no_data() { assert_eq!( Message::parse(&Bytes::from("3 48 46")), Some(Message::Response(Response { message_id: 48, request_message_id: 46, data: Ok(Bytes::default()), })) ); }
rust_cleaned_test_functions.jsonl/1086
{ "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, 21039, 9655, 6536, 1769, 368, 341, 262, 2060, 10714, 33673, 286, 4856, 486, 6400, 2099, 7078, 486, 1499, 445, 18, 220, 19, 23, 220, 19, 21, 30154, 286, 4329, 29359, 486, 2582, 47979, 341, 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_encode_context() -> Result<(), failure::Error> { let decoded = HashType::ContextHash.hash_to_b58check(&hex::decode( "934484026d24be9ad40c98341c20e51092dd62bbf470bb9ff85061fa981ebbd9", )?); let expected = "CoVmAcMV64uAQo8XvfLr9VDuz7HVZLT4cgK1w1qYmTjQNbGwQwDd"; ...
rust_cleaned_test_functions.jsonl/104549
{ "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, 11224, 8467, 368, 1464, 5714, 68843, 7901, 486, 1454, 29, 341, 286, 1077, 29213, 284, 6531, 929, 486, 1972, 6370, 15101, 2346, 880, 20, 23, 2028, 2099, 17308, 486, 18196, 1006, 310, 330, 24, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_extract() { let (req, mut pl) = TestRequest::default() .header( header::CONTENT_TYPE, header::HeaderValue::from_static("application/json"), ) .header( header::CONTENT_LENGTH, header::Heade...
rust_cleaned_test_functions.jsonl/37460
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 368, 341, 286, 1077, 320, 2958, 11, 5206, 625, 8, 284, 3393, 1900, 486, 2258, 741, 310, 659, 2708, 1006, 394, 4247, 486, 67872, 4189, 345, 394, 4247, 486, 97721, 486, 1499, 25360, 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_parse_version_profile() { assert_eq!(Some((310, GlslProfile::Es)), parse_version_profile("310es")); assert_eq!( Some((450, GlslProfile::Compatibility)), parse_version_profile("450compatibility") ); assert_eq!(Some((140, GlslProfile::None)),...
rust_cleaned_test_functions.jsonl/41077
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 9438, 13789, 368, 341, 286, 2060, 10714, 10297, 8373, 1188, 18, 16, 15, 11, 8280, 3226, 8526, 486, 17360, 5731, 4715, 9438, 13789, 445, 18, 16, 15, 288, 4010, 286, 2060, 10714, 33673, 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_branch_in_memory() { let block_manager = BlockManager::new(); let a = create_block("A", NULL_BLOCK_IDENTIFIER, 0); let b = create_block("B", "A", 1); let c = create_block("C", "B", 2); block_manager .put(vec![a.clone(), b.clone(), c.clone()]) ...
rust_cleaned_test_functions.jsonl/10253
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 366 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28031, 1243, 19195, 368, 341, 286, 1077, 2504, 12144, 284, 8362, 2043, 486, 931, 543, 286, 1077, 264, 284, 1855, 7113, 445, 32, 497, 1770, 18756, 49554, 11, 220, 15, 317, 286, 1077, 293, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_canonicalize_path() { let tmp_dir = Builder::new() .prefix("test-canonicalize") .tempdir() .unwrap(); let path1 = format!( "{}", tmp_dir.path().to_path_buf().join("test1.dump").display() ); let res_path1 ...
rust_cleaned_test_functions.jsonl/10071
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27421, 22391, 551, 2638, 368, 341, 286, 1077, 4174, 4334, 284, 20626, 486, 931, 741, 310, 659, 11849, 445, 1944, 71214, 22391, 551, 1138, 310, 659, 3888, 3741, 741, 310, 659, 15454, 543, 286, 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_parse_header_with_doublecolon() { let header: Header = "Time: 20: 34".parse().unwrap(); assert!(header.field.equiv(&"time")); assert!(header.value.as_str() == "20: 34"); }
rust_cleaned_test_functions.jsonl/100493
{ "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, 21039, 8757, 6615, 24598, 76824, 368, 341, 286, 1077, 4247, 25, 12104, 284, 330, 1462, 25, 220, 17, 15, 25, 220, 18, 19, 3263, 6400, 1005, 15454, 1428, 286, 2060, 10297, 2708, 16454, 1734, 15418...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_insert_with_root() { let key = Keypair::new(); let index = AccountsIndex::<bool>::default_for_tests(); let mut gc = Vec::new(); index.upsert( 0, &key.pubkey(), &Pubkey::default(), &[], &AccountSecondaryIn...
rust_cleaned_test_functions.jsonl/99728
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 352 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 6615, 12993, 368, 341, 286, 1077, 1376, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 1922, 284, 40655, 1552, 27638, 2641, 6831, 2258, 5478, 32509, 543, 286, 1077, 5206, 22122, 284, 1131...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_non_indexed_export() { let mesh = MeshBuilder::new().cylinder(3, 16).build().unwrap(); let positions = mesh.non_indexed_positions_buffer(); let normals = mesh.non_indexed_normals_buffer(); assert_eq!(positions.len(), mesh.no_faces() * 3 * 3); assert_eq!(n...
rust_cleaned_test_functions.jsonl/60412
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 813 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21637, 3560, 291, 27114, 368, 341, 286, 1077, 11294, 284, 25122, 3297, 486, 931, 1005, 66, 22868, 7, 18, 11, 220, 16, 21, 568, 5834, 1005, 15454, 543, 286, 1077, 9892, 284, 11294, 49883, 3560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_transaction_failure() { let dir = tempdir().unwrap(); let file = dir.path().join("db.sqlite"); let _db1 = SlashingDatabase::create(&file).unwrap(); let db2 = SlashingDatabase::open(&file).unwrap(); db2.test_transaction().unwrap_err(); }
rust_cleaned_test_functions.jsonl/10801
{ "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, 28884, 43618, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 1034, 284, 5419, 3875, 1005, 5987, 445, 1999, 42167, 797, 286, 1077, 716, 1999, 16, 284, 6852, 19049, 5988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deeply_nested_arrays() { let s = r#"--- a: - b - - c - d - - e - - f - - e"#; let docs = YamlLoader::load_from_str(&s).unwrap(); let doc = &docs[0]; let mut writer = String::new(); { let mut emitter = YamlEmitter::new(&...
rust_cleaned_test_functions.jsonl/44450
{ "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, 87044, 398, 66279, 68983, 368, 341, 286, 1077, 274, 284, 435, 55543, 10952, 64, 510, 220, 481, 293, 198, 220, 481, 481, 272, 198, 262, 481, 294, 198, 262, 481, 481, 384, 198, 414, 481, 481, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multiple_files_with_stdin() { new_ucmd!() .args(&["emptyfile.txt", "-", "emptyfile.txt"]) .pipe_in("hello\n") .succeeds() .stdout_is( "==> emptyfile.txt <== ==> standard input <== hello ==> emptyfile.txt <== ", ); }
rust_cleaned_test_functions.jsonl/32779
{ "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, 45233, 10931, 6615, 15656, 258, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 3194, 1192, 3909, 497, 77223, 330, 3194, 1192, 3909, 14108, 286, 659, 13768, 1243, 445, 14990, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_filter_try_folds() { fn p(&x: &i32) -> bool { 0 <= x && x < 10 } let f = &|acc, x| i32::checked_add(2*acc, x); assert_eq!((-10..20).filter(p).try_fold(7, f), (0..10).try_fold(7, f)); assert_eq!((-10..20).filter(p).try_rfold(7, f), (0..10).try_rfold(7, f)); let mut iter = (0....
rust_cleaned_test_functions.jsonl/54189
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 53283, 761, 18431, 368, 341, 262, 5168, 281, 2099, 87, 25, 609, 72, 18, 17, 8, 1464, 1807, 314, 220, 15, 2651, 856, 1009, 856, 366, 220, 16, 15, 456, 262, 1077, 282, 284, 609, 91, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_try_panic_message_any() { match thread::spawn(move|| { panic!(box 413u16 as Box<dyn Any + Send>); }).join() { Err(e) => { type T = Box<dyn Any + Send>; assert!(e.is::<T>()); let any = e.downcast::<T>().unwrap...
rust_cleaned_test_functions.jsonl/8570
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 295 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 620, 31270, 6462, 37248, 368, 341, 286, 2432, 4516, 486, 46087, 34081, 8484, 341, 310, 21975, 10297, 2011, 220, 19, 16, 18, 84, 16, 21, 438, 8261, 92846, 5765, 488, 11000, 42013, 286, 853...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_match_rule_0() { let data = vec![ "0: 4 1 5", "1: 2 3 | 3 2", "2: 4 4 | 5 5", "3: 4 5 | 5 4", "4: \"a\"", "5: \"b\"", ]; let rules = load_rules(&data); assert_eq!(match_rule_0(&rules, "ababbb"), true); assert_eq!(match_rule_0(&rules, "babab...
rust_cleaned_test_functions.jsonl/50120
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 256 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10708, 21124, 62, 15, 368, 341, 262, 1077, 821, 284, 7486, 90515, 414, 330, 15, 25, 220, 19, 220, 16, 220, 20, 756, 414, 330, 16, 25, 220, 17, 220, 18, 760, 220, 18, 220, 17, 756, 414, 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_parse_unreal_log_entry_no_timestamp() { assert_debug_snapshot!( LogEntry::parse( b"LogDevObjectVersion: Dev-Enterprise (9DFFBCD6-494F-0158-E221-12823C92A888): 1", ), @r###" LogEntry { timestamp: None, message: "LogDevObjectVersion: Dev-Enterpri...
rust_cleaned_test_functions.jsonl/64707
{ "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, 21039, 4907, 7951, 5224, 9078, 6536, 23073, 368, 341, 262, 2060, 15446, 53265, 33673, 262, 2835, 5874, 486, 6400, 1006, 286, 293, 1, 2201, 14592, 1190, 5637, 25, 256, 6040, 12, 85647, 320, 24, 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_patterns() { equal_tokens! { <pipeline> "cp ../formats/*" -> b::pipeline(vec![vec![b::bare("cp"), b::sp(), b::op("."), b::op("."), b::pattern("/formats/*")]]) } equal_tokens! { <pipeline> "cp * /dev/null" -> b::pipeline(vec...
rust_cleaned_test_functions.jsonl/5874
{ "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, 64923, 368, 341, 286, 6144, 28838, 0, 341, 310, 366, 51258, 397, 310, 330, 4672, 22082, 63482, 1057, 1, 1464, 293, 486, 51258, 25592, 20703, 4083, 20703, 65, 486, 54102, 445, 4672, 3975, 293, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_which_absolute() { let f = TestFixture::new(); assert_eq!( _which(&f, &f.bins[3]).unwrap(), f.bins[3].canonicalize().unwrap() ); }
rust_cleaned_test_functions.jsonl/13402
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 8206, 50874, 368, 341, 262, 1077, 282, 284, 3393, 18930, 486, 931, 543, 262, 2060, 10714, 33673, 286, 716, 8206, 2099, 69, 11, 609, 69, 948, 1330, 58, 18, 10697, 15454, 3148, 286, 282, 948...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_setting() { match TestSettings::init() { Err(Error::MissingEnv(e)) if e == "ENVCONF_ONLYENV" => (), _ => assert!(false), } std::env::set_var("ENVCONF_ONLYENV", "qwerty"); match TestSettings::init() { Err(Error::EnvParse(n, v)) ...
rust_cleaned_test_functions.jsonl/18679
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 659 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20313, 368, 341, 286, 2432, 3393, 6086, 486, 2327, 368, 341, 310, 15495, 37396, 486, 25080, 14359, 2026, 593, 421, 384, 621, 330, 30360, 38634, 31263, 30360, 1, 589, 84201, 310, 716, 589, 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...
8
#[test] fn test_serialize_transaction() { let key = KeypairNative::new(); let to = Pubkey::new_rand(); let blockhash = Hash::default(); let tx = system_transaction::transfer(&key, &to, 50, blockhash); let serialized = serialize(&tx).unwrap(); let tx = Box::new(Tra...
rust_cleaned_test_functions.jsonl/121325
{ "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, 88686, 28884, 368, 341, 286, 1077, 1376, 284, 6569, 1082, 1310, 20800, 486, 931, 543, 286, 1077, 311, 284, 22611, 792, 486, 931, 33864, 543, 286, 1077, 2504, 8296, 284, 6531, 486, 2258, 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_cast_range_u8_min() { assert_eq!(u8::min_value.to_int(), Some(u8::min_value as int)); assert_eq!(u8::min_value.to_i8(), Some(u8::min_value as i8)); assert_eq!(u8::min_value.to_i16(), Some(u8::min_value as i16)); assert_eq!(u8::min_value.to_i32(), Some(u8::min...
rust_cleaned_test_functions.jsonl/12456
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 406 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 9698, 7300, 23, 7260, 368, 341, 286, 2060, 10714, 10297, 84, 23, 486, 1065, 3142, 2389, 4042, 1507, 220, 4329, 8154, 23, 486, 1065, 3142, 438, 526, 1106, 286, 2060, 10714, 10297, 84, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_builder() -> Result<(), Box<dyn Error>> { let expected = EmbedAuthor { icon_url: Some("https://example.com/1.png".to_owned()), name: Some("an author".to_owned()), proxy_icon_url: None, url: Some("https://example.com".to_owned()), };...
rust_cleaned_test_functions.jsonl/86646
{ "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, 28532, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 286, 1077, 3601, 284, 37068, 7133, 341, 310, 4603, 2903, 25, 4329, 445, 2428, 1110, 8687, 905, 14, 16, 3508, 3263, 983, 51973, 14702, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pxor() { assert_emit!(0x66, 0x0f, 0xef, 0xc8; pxor(XMM1, XMM0)); assert_emit!(0x66, 0x44, 0x0f, 0xef, 0xfb; pxor(XMM15, XMM3)); assert_emit!(0x66, 0x41, 0x0f, 0xef, 0xe0; pxor(XMM4, XMM8)); }
rust_cleaned_test_functions.jsonl/85502
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 67162, 269, 368, 341, 286, 2060, 69082, 10297, 15, 87, 21, 21, 11, 220, 15, 87, 15, 69, 11, 220, 15, 47510, 11, 220, 15, 8148, 23, 26, 17146, 269, 7644, 8035, 16, 11, 1599, 8035, 15, 1106,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_expression_indexing() { use Accessor::*; let a = name("a"); let i = name("i"); let j = name("j"); let indexing = |acc, args: Vec<&IExpr>| { Expression::indexing(a.clone(), acc, &args.clone_all()) }; assert_parse_expr("a[i]", indexing(None, vec![&i])); assert_parse_expr...
rust_cleaned_test_functions.jsonl/59501
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 407 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28068, 3560, 287, 368, 341, 220, 990, 9549, 269, 79304, 220, 1077, 264, 284, 829, 445, 64, 797, 220, 1077, 600, 284, 829, 445, 72, 797, 220, 1077, 502, 284, 829, 445, 73, 3071, 220, 1077, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_capstone_supports_arch() { let architectures = vec![ Arch::ARM, Arch::ARM64, Arch::MIPS, Arch::X86, Arch::PPC, Arch::SPARC, Arch::SYSZ, Arch::XCORE, ]; println!("Supported architectures"); for arch in archi...
rust_cleaned_test_functions.jsonl/127428
{ "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, 16388, 10812, 25827, 82, 34330, 368, 341, 262, 1077, 77235, 284, 7486, 90515, 286, 9494, 486, 17911, 345, 286, 9494, 486, 17911, 21, 19, 345, 286, 9494, 486, 44, 25944, 345, 286, 9494, 486, 55, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_multiple_api_clients() { let mut exec = fasync::TestExecutor::new().expect("failed to create an executor"); let test_values = test_setup(); let serve_fut = test_values.ap.clone().serve_provider_requests(test_values.requests); pin_mut!(serve_fut); ...
rust_cleaned_test_functions.jsonl/59833
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1432 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 11697, 56899, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 2271, 25255, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 458, 31558, 797, 286, 1077, 1273, 9146, 284, 1273, 21363, 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_kruskal() { let mut maze = Maze::new(5, 5, true); generate(&mut maze); assert_eq!(maze.get(2, 4), maze.get(2, 0)); assert_eq!(maze.get(2, 4), 1); }
rust_cleaned_test_functions.jsonl/60542
{ "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, 4698, 20341, 35541, 368, 341, 286, 1077, 5206, 35096, 284, 65091, 486, 931, 7, 20, 11, 220, 20, 11, 830, 317, 286, 6923, 2099, 6984, 35096, 317, 286, 2060, 10714, 10297, 97950, 670, 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_vm_err_ldabsb_oob() { let prog = &[ 0x38, 0x00, 0x00, 0x00, 0x33, 0x00, 0x00, 0x00, 0x95, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ]; let mem = &mut [ 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, ]...
rust_cleaned_test_functions.jsonl/15513
{ "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, 39008, 9266, 50573, 3435, 65, 14179, 674, 368, 341, 262, 1077, 29271, 284, 609, 9640, 286, 220, 15, 87, 18, 23, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 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_interface_spec() { let class = InterfaceSpec::new(mods![Modifier::Public], "Foo"); let class: Element = class.into(); assert_eq!("public interface Foo {\n}", class.to_string()); }
rust_cleaned_test_functions.jsonl/4462
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20546, 13594, 368, 341, 286, 1077, 536, 284, 20019, 8327, 486, 931, 23351, 82, 20703, 34405, 486, 12676, 1125, 330, 40923, 797, 286, 1077, 536, 25, 8543, 284, 536, 39860, 543, 286, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_maker_pubkey_nonce_derviation() { let secp = Secp256k1::new(); let privkey_org = PrivateKey::from_wif("cVt4o7BGAig1UXywgGSmARhxMdzP5qvQsxKkSsc1XEkw3tDTQFpy").unwrap(); let pubkey_org = privkey_org.public_key(&secp); let (pubkey_derived, nonce) = derive...
rust_cleaned_test_functions.jsonl/112477
{ "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, 96040, 34014, 792, 48508, 814, 648, 7101, 368, 341, 286, 1077, 511, 4672, 284, 4520, 79, 17, 20, 21, 74, 16, 486, 931, 543, 286, 1077, 6095, 792, 35583, 4035, 310, 9679, 1592, 486, 1499, 1670,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_distance_struct() { let mut pair_opt = PairOpt::new(); pair_opt.add_pair("Alice", "Bob", 54); pair_opt.add_pair("Alice", "Carol", -79); pair_opt.add_pair("Alice", "David", -2); pair_opt.add_pair("Bob", "Alice", 83); pair_opt.add_pair("Bob", "Carol", -7); pair_opt.add_...
rust_cleaned_test_functions.jsonl/85258
{ "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, 19464, 15126, 368, 341, 262, 1077, 5206, 6716, 15032, 284, 25995, 21367, 486, 931, 543, 262, 6716, 15032, 1364, 14445, 445, 61686, 497, 330, 32388, 497, 220, 20, 19, 317, 262, 6716, 15032, 1364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cli_parse_write_buffer() { let test_commands = app("test", "desc", "version"); let default_keypair = Keypair::new(); let keypair_file = make_tmp_path("keypair_file"); write_keypair_file(&default_keypair, &keypair_file).unwrap(); let default_signer = Defau...
rust_cleaned_test_functions.jsonl/22244
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47147, 21039, 9165, 7776, 368, 341, 286, 1077, 1273, 44151, 284, 906, 445, 1944, 497, 330, 8614, 497, 330, 4366, 3071, 286, 1077, 1638, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 543, 286, 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_find_available_port_in_range() { assert_eq!(find_available_port_in_range((3000, 3001)).unwrap(), 3000); let port = find_available_port_in_range((3000, 3050)).unwrap(); assert!(3000 <= port && port < 3050); let _socket = bind_to(port, false).unwrap(); find...
rust_cleaned_test_functions.jsonl/3529
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 26962, 8716, 1243, 9698, 368, 341, 286, 2060, 10714, 10297, 3903, 26962, 8716, 1243, 9698, 1188, 18, 15, 15, 15, 11, 220, 18, 15, 15, 16, 4579, 15454, 1507, 220, 18, 15, 15, 15, 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...
2
#[test] fn test_ota_update_channel_config_new_long_name() { assert_matches!( OtaUpdateChannelConfig::new(&"channel".repeat(200), "tuf"), Err(ChannelConfigError::ChannelNameLength(1400)) ); }
rust_cleaned_test_functions.jsonl/43615
{ "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, 62, 6089, 8882, 14571, 5332, 5921, 17799, 1269, 368, 341, 286, 2060, 38344, 33673, 310, 506, 2565, 4289, 9629, 2648, 486, 931, 2099, 1, 10119, 3263, 30624, 7, 17, 15, 15, 701, 330, 83, 1704, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_parse_fstring() { let source = String::from("{a}{ b }{{foo}}"); let parse_ast = parse_fstring(&source).unwrap(); assert_eq!( parse_ast, Joined { values: vec![ FormattedValue { value: Box:...
rust_cleaned_test_functions.jsonl/10404
{ "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, 21039, 761, 917, 368, 341, 286, 1077, 2530, 284, 923, 486, 1499, 13976, 64, 15170, 293, 335, 2979, 7975, 3417, 797, 286, 1077, 4715, 48019, 284, 4715, 761, 917, 2099, 2427, 568, 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_select_negation() { let expected_sql = "SELECT `naukio`.* FROM `naukio` WHERE (NOT ((`word` = ? OR `age` < ?) AND `paw` = ?))"; let expected_params = vec![ ParameterizedValue::Text(Cow::from("meow")), ParameterizedValue::Integer(10), ...
rust_cleaned_test_functions.jsonl/80611
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 377 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13051, 28209, 367, 368, 341, 286, 1077, 3601, 18063, 4035, 310, 330, 4858, 1565, 77, 2863, 74, 815, 63, 4908, 4295, 1565, 77, 2863, 74, 815, 63, 5288, 320, 14065, 1781, 63, 1158, 63, 284, 937,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_db_i() { let mut data = [0; DB_TEST_DATA.len()]; for (t, b) in data.iter_mut().zip(DB_TEST_DATA.iter()) { *t = *b as i8; } let mut cmp_result = [0; DB_TEST_DATA.len()]; for len in 0..=data.len() { let mut a = CodeAssembler::new(64).unwrap(); a.db_i(&data[0..len]).unwrap(); let bytes...
rust_cleaned_test_functions.jsonl/71816
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 251 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8685, 5318, 368, 341, 10217, 5206, 821, 284, 508, 15, 26, 5952, 11641, 7896, 19406, 33800, 2023, 320, 83, 11, 293, 8, 304, 821, 19471, 29523, 1005, 9964, 32184, 11641, 7896, 19471, 2140, 341, 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...
4
#[test] fn test_plan_build_minimum_root_dependency() { let mut fetcher = StubMetadataFetcher::with_metadata(minimum_dependency_metadata()); let mut planner = BuildPlannerImpl::new(&mut fetcher); let planned_build_res = planner.plan_build( &settings_testing::dummy_raze_settings(), dummy_w...
rust_cleaned_test_functions.jsonl/130151
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 252 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26564, 20801, 84855, 12993, 62387, 368, 341, 262, 1077, 5206, 7807, 261, 284, 66611, 14610, 97492, 486, 4197, 22220, 14146, 3295, 62387, 22220, 1423, 262, 1077, 5206, 49711, 284, 7854, 2120, 4887, 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_parse_line() { let input = r##" # HELP http_requests_total The total number of HTTP requests. # TYPE http_requests_total counter http_requests_total{method="post",code="200"} 1027 1395066363000 http_requests_total{method="post",code="400"} ...
rust_cleaned_test_functions.jsonl/78094
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 954 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 6528, 368, 341, 286, 1077, 1946, 284, 435, 565, 698, 310, 671, 55471, 1758, 37216, 10784, 576, 2790, 1372, 315, 10130, 7388, 624, 310, 671, 12454, 1758, 37216, 10784, 5546, 198, 310, 1758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_let_statements() { let tests = vec![ ("let a = 5; a;", 5), ("let a = 5 * 5; a;", 25), ("let a = 5; let b = a; b;", 5), ("let a = 5; let b = a; let c = a + b + 5; c;", 15), ]; for (input, result) in tests { assert_eq!(eval(input), Object::Int(r...
rust_cleaned_test_functions.jsonl/84232
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 175 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 1149, 16271, 3723, 368, 341, 262, 1077, 7032, 284, 7486, 90515, 286, 3489, 1149, 264, 284, 220, 20, 26, 264, 32503, 220, 20, 1326, 286, 3489, 1149, 264, 284, 220, 20, 353, 220, 20, 26, 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_noto_sans() { run_test( &TEST_DATA, "directwrite/good-noto-sans.bn", "noto/NotoSansBengali-Regular.ttf", &[JOINER_GLYPH_INDEX], 564, ); }
rust_cleaned_test_functions.jsonl/91200
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 2072, 643, 596, 368, 341, 394, 1598, 4452, 1006, 503, 609, 10033, 7896, 345, 503, 330, 19798, 4934, 4846, 1386, 29169, 78, 1331, 596, 60862, 756, 503, 330, 1921, 78, 20290, 2072, 46882, 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_month_basics() -> Result<()> { assert_eq!(Month::January, Month::January); assert_ne!(Month::January, Month::July); assert_eq!(Month::January.num(), 0); assert_eq!(Month::July.num(), 6); assert_eq!(Month::December.num(), 11); assert_eq!(Month::Ja...
rust_cleaned_test_functions.jsonl/50944
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18933, 880, 67981, 368, 1464, 5714, 71698, 341, 286, 2060, 10714, 10297, 11318, 486, 32227, 11, 19397, 486, 32227, 317, 286, 2060, 13925, 10297, 11318, 486, 32227, 11, 19397, 486, 28427, 626, 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_self_refs_decl() { check( r#" struct Foo { bar: i32 } impl Foo { fn foo(self$0) { self; } } "#, expect![[r#" self SelfParam FileId(0) 47..51 47..51 FileId(0) 63..67 Read "#]], ); }
rust_cleaned_test_functions.jsonl/60664
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 25637, 60638, 35814, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1235, 33428, 314, 3619, 25, 600, 18, 17, 555, 6383, 33428, 341, 262, 5168, 15229, 1193, 3, 15, 8, 341, 286, 656, 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_state_from_coord_section_switches_to_outsection() { let state = TspReaderStates::INSECTION(COORD_SECTION_KEY.to_string()); let res = next_state(&state, &"KEY: VAL1".to_string()); assert_eq!(TspReaderStates::OUTSECTION, res); }
rust_cleaned_test_functions.jsonl/58860
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4387, 5673, 30096, 16221, 27652, 288, 2346, 6068, 2809, 368, 341, 286, 1077, 1584, 284, 350, 2154, 5062, 23256, 486, 687, 58778, 3025, 46, 4276, 44228, 6600, 2389, 3904, 5231, 286, 1077, 592, 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_parse_split_quote_aware() { macro_rules! string_vec { ($($x:expr),*) => (vec![$($x.to_string()),*]); } let src = r#"F 4 "\"Hello, world!\"" H 4500 3000 50 0001 C CNN "QuoteField""#; let tgt1 = string_vec!["F", "4", "\"Hello, world!\"", "H", "4500", "3000", "50", "0001",...
rust_cleaned_test_functions.jsonl/116651
{ "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, 21039, 17052, 45236, 62, 19541, 368, 341, 262, 18072, 21407, 0, 914, 13251, 341, 286, 1711, 699, 87, 96011, 701, 3764, 589, 320, 4083, 0, 3442, 699, 87, 2389, 3904, 11858, 9, 2558, 262, 555, 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_header_with_comments() -> Result<()> { let csv = "# ignore me\na,b,c\nd,e,f"; let file = Cursor::new(csv); let df = CsvReader::new(file) .with_comment_char(Some(b'#')) .finish()?; // 1 row. assert_eq!(df.shape(), (1, 3)); ...
rust_cleaned_test_functions.jsonl/57585
{ "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, 8757, 6615, 30359, 368, 1464, 5714, 71698, 341, 286, 1077, 13147, 284, 5869, 10034, 752, 1699, 64, 8402, 10109, 59, 303, 22563, 17077, 3302, 286, 1077, 1034, 284, 28067, 486, 931, 41583, 317, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_slot_leader_at_else_compute() { let slots_per_epoch = 10; let epoch_schedule = EpochSchedule::new(slots_per_epoch, slots_per_epoch / 2, true); let cache = LeaderScheduleCache::new(epoch_schedule); let (genesis_block, _mint_keypair) = GenesisBlock::new(2); ...
rust_cleaned_test_functions.jsonl/10692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 334 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27563, 79991, 3752, 62628, 57028, 368, 341, 286, 1077, 15711, 5678, 20682, 284, 220, 16, 15, 280, 286, 1077, 16342, 34530, 284, 87379, 32210, 486, 931, 55691, 2412, 5678, 20682, 11, 15711, 5678, 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_iterator_scan() { // test the type inference fn add(old: &mut int, new: &uint) -> Option<f64> { *old += *new as int; Some(*old as f64) } let xs = [0, 1, 2, 3, 4]; let ys = [0f64, 1.0, 3.0, 6.0, 10.0]; let it = xs.iter().scan(0, add); let mut i = 0; ...
rust_cleaned_test_functions.jsonl/61229
{ "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, 13491, 28857, 368, 341, 262, 442, 1273, 279, 943, 44378, 198, 262, 5168, 912, 21972, 25, 609, 6984, 526, 11, 501, 25, 609, 2496, 8, 1464, 6959, 63895, 21, 19, 29, 341, 286, 353, 813, 1421, 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_multi_fec_block_coding() { let keypair = Arc::new(Keypair::new()); let slot = 0x1234_5678_9abc_def0; let shredder = Shredder::new(slot, slot - 5, 0, 0).unwrap(); let num_fec_sets = 100; let num_data_shreds = (MAX_DATA_SHREDS_PER_FEC_BLOCK * num_fec_sets) as usize; let key...
rust_cleaned_test_functions.jsonl/81671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1529 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 761, 757, 7113, 666, 3700, 368, 341, 262, 1077, 1376, 12670, 284, 19689, 486, 931, 7, 6608, 1082, 1310, 486, 931, 1423, 262, 1077, 9446, 284, 220, 15, 87, 16, 17, 18, 19, 62, 20, 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...
5
#[test] fn test_stake_process_instruction_decode_bail() { assert_eq!( process_instruction( &serialize(&StakeInstruction::Initialize( Authorized::default(), Lockup::default() )) .unwrap(...
rust_cleaned_test_functions.jsonl/39900
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3718 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 726, 11305, 54923, 15227, 880, 604, 368, 341, 23459, 1789, 286, 2060, 10714, 33673, 310, 1882, 54923, 1006, 394, 609, 24166, 2099, 623, 726, 16664, 486, 9928, 1006, 503, 90569, 486, 2258, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_overflow_tag() { let bytes = hex!("9f a2 a2 a2 a2 a2 22 01 00"); let res = parse_ber(&bytes); assert!(res.is_err()); }
rust_cleaned_test_functions.jsonl/67469
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 74 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79073, 9372, 368, 341, 262, 1077, 5820, 284, 12371, 17223, 24, 69, 264, 17, 264, 17, 264, 17, 264, 17, 264, 17, 220, 17, 17, 220, 15, 16, 220, 15, 15, 797, 262, 1077, 592, 284, 4715, 88165...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_multicast_addr() { assert_eq!(MulticastAddr::new(Address::Multicast), Some(MulticastAddr(Address::Multicast))); assert_eq!(MulticastAddr::new(Address::Unicast), None); }
rust_cleaned_test_functions.jsonl/47838
{ "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, 26290, 35446, 7387, 368, 341, 286, 2060, 10714, 10297, 40404, 35446, 13986, 486, 931, 68492, 486, 40404, 35446, 701, 4329, 3189, 494, 35446, 13986, 68492, 486, 40404, 35446, 4945, 286, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_logs() { let endpoint = "https://ropsten.infura.io/v3/71c02c451b6248708e493c4ea007c3b2"; let hash = "0x480fc6cca516277b01b1e6b8a7c771d1b747096da3724d6aa7c8d9f4e2302278"; let addr = "0x430a0670b8197e6a67cfe921b0d5601a0fa3dab7"; let ret = get_logs(endpoint, addr, hash); pri...
rust_cleaned_test_functions.jsonl/76361
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 42899, 368, 341, 262, 1077, 14887, 284, 330, 2428, 1110, 887, 15795, 30957, 5690, 4245, 5457, 18, 14, 22, 16, 66, 15, 17, 66, 19, 20, 16, 65, 21, 17, 19, 23, 22, 15, 23, 68, 19, 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_form() { let req = TestRequest::with_header( header::CONTENT_TYPE, "application/x-www-form-urlencoded", ).header(header::CONTENT_LENGTH, "11") .set_payload(Bytes::from_static(b"hello=world")) .finish(); let mut cfg = FormConfig::de...
rust_cleaned_test_functions.jsonl/46182
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7915, 368, 341, 286, 1077, 4232, 284, 3393, 1900, 486, 4197, 8757, 1006, 310, 4247, 486, 67872, 4189, 345, 310, 330, 5132, 10776, 41242, 8460, 44557, 756, 286, 7457, 2708, 25534, 486, 67872, 15023...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unrecognized_settings() { let (_td, cd, cp) = test_prolog(); let conf = load_config!( cp, "unrecognized-setting = 42\n\ [cache]\n\ enabled = true\n\ directory = {cache_dir}", cd ); assert!(!conf.enabled()); assert!(!conf.erro...
rust_cleaned_test_functions.jsonl/48293
{ "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, 4907, 46067, 10853, 368, 341, 262, 1077, 5453, 1296, 11, 15307, 11, 12490, 8, 284, 1273, 2540, 839, 543, 262, 1077, 2335, 284, 2795, 5332, 33673, 286, 12490, 345, 286, 330, 359, 46067, 60456, 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_exist() { let mut blockchain = Blockchain::new(); blockchain.set_check_trans(false); let genesis_hash = blockchain.tip(); assert!(blockchain.exist(&genesis_hash)); let block1 = generate_random_block(&genesis_hash); let block2 = generate_random_bloc...
rust_cleaned_test_functions.jsonl/61918
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35906, 368, 341, 286, 1077, 5206, 17944, 284, 42885, 486, 931, 543, 286, 17944, 980, 7200, 7965, 3576, 317, 286, 1077, 59366, 8950, 284, 17944, 78044, 543, 286, 2060, 10297, 4574, 8819, 51042, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_duration_settings() { let (_td, cd, cp) = test_prolog(); let conf = load_config!( cp, "[cache]\n\ enabled = true\n\ directory = {cache_dir}\n\ cleanup-interval = '100s'\n\ optimizing-compression-task-timeout = '3m'\n\ allowed-c...
rust_cleaned_test_functions.jsonl/48298
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1431 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25454, 10853, 368, 341, 262, 1077, 5453, 1296, 11, 15307, 11, 12490, 8, 284, 1273, 2540, 839, 543, 262, 1077, 2335, 284, 2795, 5332, 33673, 286, 12490, 345, 286, 10545, 9360, 17960, 77, 5661, 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_mvt_metadata() { use t_rex_core::core::read_config; let config = read_config("src/test/example.toml").unwrap(); let service = MvtService::from_config(&config).unwrap(); let metadata = format!("{:#}", service.get_mvt_metadata().unwrap()); let expected = r#"{ "tilesets": [ ...
rust_cleaned_test_functions.jsonl/20658
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 494 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 9708, 22220, 368, 341, 262, 990, 259, 1288, 87, 15467, 486, 2153, 486, 878, 5332, 401, 262, 1077, 2193, 284, 1349, 5332, 445, 3548, 12697, 65182, 73494, 75, 1827, 15454, 543, 262, 1077, 247...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prevote_with_split_vote() { let l = default_logger(); let peers = (1..=3).map(|id| { let mut raft = new_test_raft_with_prevote(id, vec![1, 2, 3], 10, 1, new_storage(), true, &l); raft.become_follower(1, INVALID_ID); Some(raft) }); let mut netwo...
rust_cleaned_test_functions.jsonl/19188
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 653 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25566, 1272, 6615, 17052, 54360, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 25029, 284, 320, 16, 496, 28, 18, 568, 2186, 22428, 307, 91, 341, 286, 1077, 5206, 52455, 4035, 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_multiple_update() { let input = [[1u8; 32], [1u8; 32]]; let mut hasher = Blake2b::<U32>::new(); hasher.update(input[0]); hasher.update(input[1]); let output = hasher.finalize(); let mut hasher2 = Blake2b::<U32>::new(); hasher2.update(&[1u8; 64]); let output2 = ha...
rust_cleaned_test_functions.jsonl/104402
{ "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, 45233, 8882, 368, 341, 262, 1077, 1946, 284, 4318, 16, 84, 23, 26, 220, 18, 17, 1125, 508, 16, 84, 23, 26, 220, 18, 17, 13204, 262, 1077, 5206, 90819, 284, 30894, 17, 65, 27638, 52, 18, 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_primitive_array_neq_scalar() { cmp_i64_scalar!( neq_scalar, &[6, 7, 8, 9, 10, 6, 7, 8, 9, 10], 8, vec![true, true, false, true, true, true, true, false, true, true] ); }
rust_cleaned_test_functions.jsonl/38868
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 13925, 80, 41652, 368, 341, 286, 26089, 5318, 21, 19, 41652, 33673, 310, 834, 80, 41652, 345, 310, 44590, 21, 11, 220, 22, 11, 220, 23, 11, 220, 24, 11, 220, 16, 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
#[test] fn test_pyo3_copy() { pyo3::prepare_freethreaded_python(); Python::with_gil(|py| -> () { let input_type = py.get_type::<BasisRotationInputWrapper>(); let input = input_type .call1((3, false)) .unwrap() .cast_as::<PyCell<BasisRotationInputWrapp...
rust_cleaned_test_functions.jsonl/5781
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1030 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 16032, 18, 16096, 368, 341, 262, 4510, 78, 18, 486, 13609, 74179, 769, 878, 291, 55869, 1428, 262, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 1464, 1719, 341, 286, 1077, 1946, 1819, 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_new_journal() { let conn = Connection::open_in_memory().expect("could not create in memory DB"); assert_eq!( Journal::new(conn).expect("new Journal").schema_version(), -1 ); }
rust_cleaned_test_functions.jsonl/66411
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 85075, 368, 341, 262, 1077, 4534, 284, 11032, 486, 2508, 1243, 19195, 1005, 17119, 445, 28077, 537, 1855, 304, 4938, 5952, 797, 262, 2060, 10714, 33673, 286, 9936, 486, 931, 20571, 568, 1711...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_buffered_writer_inner_flushes() { let mut w = BufWriter::with_capacity(3, Vec::new()); w.write(&[0, 1]).unwrap(); assert_eq!(*w.get_ref(), []); let w = w.into_inner().unwrap(); assert_eq!(w, [0, 1]); }
rust_cleaned_test_functions.jsonl/12407
{ "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, 7776, 291, 28908, 34345, 39213, 288, 368, 341, 286, 1077, 5206, 289, 284, 69013, 6492, 486, 4197, 35603, 7, 18, 11, 11312, 486, 931, 1423, 286, 289, 3836, 2099, 58, 15, 11, 220, 16, 10697, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_runnables_with_features() { let (analysis, pos) = analysis_and_position( r#" //- /lib.rs crate:foo cfg:feature=foo,feature=bar <|> //empty #[test] #[cfg(all(feature = "foo", feature = "bar"))] fn test_foo1() {} "#, ); ...
rust_cleaned_test_functions.jsonl/115134
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 922 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 77, 4788, 6615, 14965, 368, 341, 286, 1077, 320, 34484, 11, 1133, 8, 284, 6358, 8378, 9661, 1006, 310, 435, 2, 698, 286, 78406, 608, 2740, 25638, 17717, 25, 7975, 13286, 25, 12753, 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_label_opcode() { let mut test_vm = VM::new(); test_vm.stack.content.push(10); test_vm.remainder = 2; test_vm.program = vec![1, 1, 1, 1, 22, 3, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1]; test_vm.run(); assert_eq!(test_vm.labels[1].id, 3); assert_eq!(t...
rust_cleaned_test_functions.jsonl/60358
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6106, 71319, 368, 341, 286, 1077, 5206, 1273, 39008, 284, 17792, 486, 931, 543, 286, 1273, 39008, 22420, 5406, 2552, 7, 16, 15, 317, 286, 1273, 39008, 1327, 3817, 1107, 284, 220, 17, 280, 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_nested_select() { let system = new_kompact_system(); let receivers: Vec<Arc<Component<ReceiverComponent>>> = (0..3) .map(|_i| system.create(ReceiverComponent::default)) .collect(); let group_ref: ActorPath = system .system_path() ...
rust_cleaned_test_functions.jsonl/32537
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1265 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66279, 13051, 368, 341, 286, 1077, 1849, 284, 501, 4698, 14435, 531, 17687, 1428, 286, 1077, 39906, 25, 11312, 30192, 1287, 96689, 27, 25436, 2189, 20154, 284, 320, 15, 496, 18, 340, 310, 659, 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...
6
#[test] fn test_relockind_try_from_usize() { for value in RelocKind::values() { let converted = <RelocKind as TryFrom<usize>>::try_from(value as usize).unwrap(); assert_eq!(converted, value); } assert!(<RelocKind as TryFrom<usize>>::try_from(IcedConstants::RELOC_KIND_ENUM_COUNT).is_err()); assert!(<Relo...
rust_cleaned_test_functions.jsonl/124054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 1023, 484, 53283, 5673, 11306, 551, 368, 341, 2023, 897, 304, 6512, 509, 10629, 486, 3661, 368, 341, 197, 10217, 16099, 284, 366, 6740, 509, 10629, 438, 9735, 3830, 90244, 77595, 1539, 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_match_group_pattern_with_multiple_statement_without_semi() { check( r#" macro_rules! m { ($($i:ident),*) => ( fn baz() { $($i() );* } ); } m! { foo, bar } "#, expect![[r#" macro_rules! m { ($($i:ident),*) => ( fn baz() { $($i() );* } ); } fn baz() { foo(); bar...
rust_cleaned_test_functions.jsonl/85207
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 179 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10708, 6288, 21260, 6615, 45233, 37404, 39904, 3453, 8155, 368, 341, 262, 1779, 1006, 286, 435, 2, 698, 32606, 21407, 0, 296, 341, 262, 1711, 699, 72, 25, 1713, 701, 3764, 589, 320, 5168, 50247,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_root() { let ast = parse!(root, "LookAt 3 4 1.5 # eye .5 .5 0 # look at point 0 0 1 # up vector Camera \"perspective\" \"float fov\" 45 Sampler \"halton\" \"integer pixelsamples\" 128 Integrator \"path\" Film \"image\" \"string filename\" \"simple.png\" \"integer xreso...
rust_cleaned_test_functions.jsonl/68378
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 439 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12993, 368, 341, 1066, 262, 1077, 11763, 284, 4715, 10297, 2888, 11, 330, 10380, 1655, 220, 18, 220, 19, 220, 16, 13, 20, 220, 671, 7912, 198, 262, 659, 20, 659, 20, 220, 15, 220, 671, 1401,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_int_bad() { let res = "Beijing,foo,15.0".parse::<Climate>(); assert!(matches!(res, Err(ParseClimateError::ParseInt(_)))); let err = res.unwrap_err(); if let ParseClimateError::ParseInt(ref inner) = err { assert_eq!( err.to_string(...
rust_cleaned_test_functions.jsonl/10207
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 4042, 34199, 368, 341, 286, 1077, 592, 284, 330, 3430, 23649, 11, 7975, 11, 16, 20, 13, 15, 3263, 6400, 27638, 82046, 3913, 286, 2060, 10297, 19914, 10297, 416, 11, 15495, 71812, 82046, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_skip_constraint_check() { let engine = engine::new_local_engine(TEMP_DIR, ALL_CFS).unwrap(); let (key, value) = (b"key", b"value"); must_prewrite_put(engine.as_ref(), key, value, key, 5); must_commit(engine.as_ref(), key, 5, 10); let ctx = Context::new()...
rust_cleaned_test_functions.jsonl/23337
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 495 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44830, 46973, 7200, 368, 341, 286, 1077, 4712, 284, 4712, 486, 931, 13564, 24823, 7, 48343, 8291, 11, 13097, 920, 8485, 568, 15454, 543, 286, 1077, 320, 792, 11, 897, 8, 284, 320, 65, 1, 792, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_next_token() { let input = b"=+(){},;".to_vec(); let l = &mut lex(input.into_iter()); let tests = vec![ Expected { expected_type: TokenType::Assign, expected_literal: "=".to_string() }, Expected { expected_type: TokenType::Plus, expected_literal: ...
rust_cleaned_test_functions.jsonl/58248
{ "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, 11257, 6458, 368, 341, 286, 1077, 1946, 284, 293, 1, 28, 10, 11895, 2137, 26, 3263, 983, 13251, 543, 286, 1077, 326, 284, 609, 6984, 22429, 5384, 39860, 11723, 5231, 286, 1077, 7032, 284, 7486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cleanup() { let storage = TestStorageBuilder::new().build().unwrap(); let (tx, rx) = channel(); storage .sched_txn_command( commands::Prewrite::with_defaults( vec![Mutation::Put((Key::from_raw(b"x"), b"100".to_vec()))], ...
rust_cleaned_test_functions.jsonl/68201
{ "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, 42444, 368, 341, 286, 1077, 5819, 284, 3393, 5793, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 320, 3998, 11, 19111, 8, 284, 5496, 543, 286, 5819, 198, 310, 659, 72243, 92299, 10811...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1