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_curve_point_addition() -> Result<(), PlonkError> { test_curve_point_addition_helper::<FqEd354, Param254>()?; test_curve_point_addition_helper::<FqEd377, Param377>()?; test_curve_point_addition_helper::<FqEd381, Param381>()?; test_curve_point_addition_helper::<FqEd...
rust_cleaned_test_functions.jsonl/33780
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 202 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43407, 6085, 2891, 680, 368, 1464, 5714, 68843, 1818, 263, 74, 1454, 29, 341, 286, 1273, 43407, 6085, 2891, 680, 10418, 27638, 37, 80, 2715, 18, 20, 19, 11, 6991, 17, 20, 19, 13555, 37445, 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...
5
#[test] fn test_partial_token() { use Token::*; let (tokens, maybe_error) = tokenize_string("add fro"); assert_eq!(tokens, vec![Add]); assert_eq!(maybe_error.unwrap().kind(), ErrorKind::InvalidData); }
rust_cleaned_test_functions.jsonl/78240
{ "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, 52068, 6458, 368, 341, 286, 990, 9660, 56162, 286, 1077, 320, 30566, 11, 7196, 4096, 8, 284, 77651, 3904, 445, 718, 12799, 797, 286, 2060, 10714, 10297, 30566, 11, 7486, 20703, 2212, 2558, 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
#[test] fn test_recvmsg_timestampns() { use nix::sys::socket::*; use nix::sys::uio::IoVec; use nix::sys::time::*; use std::time::*; // Set up let message = "Ohayō!".as_bytes(); let in_socket = socket( AddressFamily::Inet, SockType::Datagram, SockFlag::empty()...
rust_cleaned_test_functions.jsonl/134666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 741 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36118, 3236, 23073, 4412, 368, 341, 262, 990, 308, 941, 486, 7791, 486, 9556, 56162, 262, 990, 308, 941, 486, 7791, 486, 84, 815, 486, 42799, 10050, 280, 262, 990, 308, 941, 486, 7791, 486, 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...
2
#[test] fn test_hpx_uniq() { for depth in 0..8 { for idx in 0..Hpx::<u64>::n_cells(depth) { assert_eq!((depth, idx), Hpx::<u64>::from_uniq_hpx(Hpx::<u64>::uniq_hpx(depth, idx))); } } // Independent of T assert_eq!(Hpx::<u64>::DIM, 2); ...
rust_cleaned_test_functions.jsonl/121622
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 446 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 1767, 4907, 23740, 368, 341, 981, 369, 7990, 304, 220, 15, 496, 23, 341, 1843, 369, 7187, 304, 220, 15, 496, 39, 1767, 27638, 84, 21, 19, 6831, 77, 37796, 53675, 8, 341, 394, 2060, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_cmp() { // | ETag 1 | ETag 2 | Strong Comparison | Weak Comparison | // | `W/"1"` | `W/"1"` | no match | match | // | `W/"1"` | `W/"2"` | no match | no match | // | `W/"1"` | `"1"` | no match | match ...
rust_cleaned_test_functions.jsonl/21998
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 816 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35193, 368, 341, 286, 442, 760, 468, 5668, 220, 16, 220, 760, 468, 5668, 220, 17, 220, 760, 26099, 42451, 760, 41164, 42451, 9248, 1789, 286, 442, 760, 1565, 54, 11225, 16, 39917, 760, 1565, 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_dict_destructuring() -> TestResult { let p = polar(); p.load_str( r#" foo(x, _: {x}); goo(x, y) if y matches {x}; moo(x, {x}); roo(a, {a, b: a}); too(a, _: {a, b: a}); "#, )?; for s in &["foo", "goo"] { qeval(&p, &format!...
rust_cleaned_test_functions.jsonl/68137
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 505 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5243, 2259, 62172, 368, 1464, 3393, 2077, 341, 262, 1077, 281, 284, 24660, 543, 262, 281, 5104, 2895, 1006, 286, 435, 2, 698, 286, 15229, 2075, 11, 58536, 314, 87, 2960, 286, 79466, 2075, 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...
3
#[test] fn test_gc_bypass_raft() { let (cluster, leader, ctx) = must_new_cluster_mul(1); cluster.pd_client.disable_default_operator(); let env = Arc::new(Environment::new(1)); let leader_store = leader.get_store_id(); let channel = ChannelBuilder::new(env).connect(&cluster.sim.rl().get_addr...
rust_cleaned_test_functions.jsonl/36406
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 836 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49423, 880, 49911, 62, 2944, 368, 341, 262, 1077, 320, 18855, 11, 7653, 11, 5635, 8, 284, 1969, 5921, 28441, 24944, 7, 16, 317, 262, 10652, 556, 67, 8179, 42628, 9993, 40594, 1428, 262, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_iterate_with_large_range() { assert!(ic_test_utilities::with_timeout( std::time::Duration::new(12, 0), || { let mut pool = InMemoryPoolSection::new(ic_logger::replica_logger::no_op_logger()); let min = Height::from(1); ...
rust_cleaned_test_functions.jsonl/28511
{ "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, 11723, 349, 6615, 45228, 9698, 368, 341, 286, 2060, 10297, 292, 4452, 94044, 486, 4197, 20537, 1006, 310, 1460, 486, 1678, 486, 12945, 486, 931, 7, 16, 17, 11, 220, 15, 1326, 310, 1369, 341, 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...
2
#[test] fn test_lexer() { let lexer = Lexer::new("1 + 2 * 3 - -10"); assert_eq!( lexer.lex(), Ok(vec![ Token::number(1, Loc(0, 1)), Token::plus(Loc(2, 3)), Token::number(2, Loc(4, 5)), Token::asterisk(Loc(6, 7)), Token::number(3...
rust_cleaned_test_functions.jsonl/21939
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 38815, 368, 341, 262, 1077, 53259, 284, 85082, 486, 931, 445, 16, 488, 220, 17, 353, 220, 18, 481, 481, 16, 15, 797, 262, 2060, 10714, 33673, 286, 53259, 82248, 3148, 286, 7622, 25592, 905...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_opts() { let mut p = ::Ping::new(); assert!(p.set_timeout(5.0).is_ok()); assert!(p.set_ttl(42).is_ok()); assert!(p.set_addr_family(::AddrFamily::IPV4).is_ok()); assert!(p.set_qos(42).is_ok()); }
rust_cleaned_test_functions.jsonl/83917
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 147 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 32354, 368, 341, 286, 1077, 5206, 281, 284, 3504, 69883, 486, 931, 543, 286, 2060, 10297, 79, 980, 20537, 7, 20, 13, 15, 568, 285, 19817, 1423, 286, 2060, 10297, 79, 980, 87157, 7, 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_pool_configs() -> Result<()> { let (_l, hdl, pool1) = init_exclusive()?; let pool2 = TestPool::new()?; let root_fs = hdl .root_filesystems()? .collect::<zfs_rs::Result<Vec<_>>>()?; let mut root_paths = root_fs.iter().map(|x| x.path()).collect::<Vec<_>>(); let ...
rust_cleaned_test_functions.jsonl/102460
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 226 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15709, 59150, 368, 1464, 5714, 71698, 341, 262, 1077, 5453, 75, 11, 305, 8736, 11, 7314, 16, 8, 284, 2930, 2702, 8336, 94136, 262, 1077, 7314, 17, 284, 3393, 10551, 486, 931, 94136, 262, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_intersects() { let b1 = Box3D::from_points(&[point3(-15.0, -20.0, -20.0), point3(10.0, 20.0, 20.0)]); let b2 = Box3D::from_points(&[point3(-10.0, 20.0, 20.0), point3(15.0, -20.0, -20.0)]); assert!(b1.intersects(&b2)); }
rust_cleaned_test_functions.jsonl/7487
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15318, 54429, 368, 341, 286, 1077, 293, 16, 284, 8261, 18, 35, 486, 1499, 12928, 2099, 58, 2768, 18, 4080, 16, 20, 13, 15, 11, 481, 17, 15, 13, 15, 11, 481, 17, 15, 13, 15, 701, 1459, 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_paren_grammar() { let g = examples::make_paren(); let nullables = calculate_nullables(&g).unwrap(); assert!(nullables .get_nullable_info(&NonTerminal::new("expr_list")) .is_some()); assert!(nullables .get_nullable_info(&NonTerminal::new("expr")) .is_none()...
rust_cleaned_test_functions.jsonl/27892
{ "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, 620, 9151, 62, 41094, 368, 341, 262, 1077, 342, 284, 10295, 486, 6927, 620, 9151, 543, 262, 1077, 845, 4788, 284, 11047, 15162, 4788, 2099, 70, 568, 15454, 543, 262, 2060, 10297, 2921, 4788, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_send_router_advertisement_as_non_router_panic() { // Attempting to send a router advertisement when a device is not a // router should result in a panic. let mut stack_builder = StackStateBuilder::default(); let mut ndp_configs = NdpConfiguration...
rust_cleaned_test_functions.jsonl/82813
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 639 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13565, 55587, 10027, 44424, 11898, 21637, 55587, 620, 31270, 368, 341, 1789, 286, 442, 43517, 287, 311, 3624, 264, 9273, 32689, 979, 264, 3671, 374, 537, 264, 198, 286, 442, 9273, 1265, 1102, 304,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_picking_round_robin_on_one_queue() { let this = canister_test_id(13); let other = canister_test_id(14); let mut queues = CanisterQueues::default(); assert!(queues.pop_input().is_none()); let list = vec![(0, other), (1, other), (2, other)]; for (ix, id) in list.i...
rust_cleaned_test_functions.jsonl/44174
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 518 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6462, 620, 16272, 29896, 26608, 6863, 4470, 11667, 10841, 368, 341, 262, 1077, 419, 284, 646, 1571, 4452, 842, 7, 16, 18, 317, 262, 1077, 1008, 284, 646, 1571, 4452, 842, 7, 16, 19, 626, 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...
4
#[test] fn test_too_many_vertices() { /// This test checks that the tessellator returns the proper error when /// the geometry builder run out of vertex ids. struct Builder { max_vertices: u32, } impl GeometryBuilder for Builder { fn begin_geometry(&mut self) {} fn a...
rust_cleaned_test_functions.jsonl/102390
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 721 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 78, 22101, 37720, 368, 341, 262, 1048, 1096, 1273, 12341, 429, 279, 79830, 613, 850, 4675, 279, 6169, 1465, 979, 198, 262, 1048, 279, 17047, 7363, 1598, 700, 315, 11936, 14151, 382, 262, 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_device_id_is_an_uplink() { let mut test_config = create_test_config_no_paths(); test_config.device_config = Some(build_full_config()); match test_config.device_id_is_an_uplink("/dev/sys/pci/test_wan_up_id/ethernet") { true => (), false => panic!("G...
rust_cleaned_test_functions.jsonl/83810
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 349 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9204, 842, 6892, 12008, 8237, 2080, 368, 341, 286, 1077, 5206, 1273, 5332, 284, 1855, 4452, 5332, 6536, 24152, 543, 286, 1273, 5332, 18355, 5332, 284, 4329, 43333, 16372, 5332, 1423, 286, 2432, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_parse_valid_autoscaling_describe_tags() { let mock_response = MockResponseReader::read_response( "test_resources/generated/valid", "autoscaling-describe-tags.xml", ); let mock = MockRequestDispatcher::with_status(200).with_body(&mock_response); ...
rust_cleaned_test_functions.jsonl/8947
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8337, 32808, 436, 81552, 15768, 3114, 16333, 368, 341, 286, 1077, 7860, 9655, 284, 14563, 2582, 5062, 486, 878, 9655, 1006, 310, 330, 1944, 35569, 79372, 14, 1891, 756, 310, 330, 79301, 815...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_arc_unsized() { unsafe { let pointer_ops = DefaultPointerOps::<Arc<_>>::new(); let p = Arc::new(1) as Arc<dyn Debug>; let a: *const dyn Debug = &*p; let b: (usize, usize) = mem::transmute(a); let r = pointer_ops.into_raw(p); ...
rust_cleaned_test_functions.jsonl/82638
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 340 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62914, 4907, 82, 1506, 368, 341, 286, 19860, 341, 310, 1077, 7445, 21959, 284, 7899, 9084, 38904, 27638, 36809, 32399, 77595, 931, 543, 310, 1077, 281, 284, 19689, 486, 931, 7, 16, 8, 438, 19689...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_one_tag() { let template = DocumentTemplate::with_partials(&[ Partial::StringLiteral("Hello ".to_string()), Partial::Tag("name".to_string()), Partial::StringLiteral(", welcome!".to_string()), ]); let filled_document = template ...
rust_cleaned_test_functions.jsonl/48653
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 292 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11667, 9372, 368, 341, 286, 1077, 3811, 284, 11789, 7275, 486, 4197, 10495, 10309, 2099, 9640, 310, 24552, 486, 703, 17350, 445, 9707, 5933, 983, 3904, 14702, 310, 24552, 486, 5668, 445, 606, 3263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_domain_roundtrip() { for example in [DOMAIN_STRING, NODENAME_DOMAIN_STRING] { let domain = DomainBuilder::from_str(example).unwrap(); let mut buf = make_buf(domain.bytes_len()); domain.serialize_to_buf(buf.as_mut_slice()); let mut bv = Buf...
rust_cleaned_test_functions.jsonl/34434
{ "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, 20111, 29896, 32981, 368, 341, 286, 369, 3110, 304, 508, 57125, 12283, 11, 451, 2069, 67329, 33729, 12283, 60, 341, 310, 1077, 7947, 284, 21070, 3297, 486, 1499, 2895, 66203, 568, 15454, 543, 310,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_reached_leader_slot() { solana_logger::setup(); let ledger_path = get_tmp_ledger_path!(); { let blockstore = Blockstore::open(&ledger_path) .expect("Expected to be able to open database ledger"); let GenesisConfigInfo { genesis_con...
rust_cleaned_test_functions.jsonl/106275
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3099 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 3854, 79991, 27563, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 46933, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 341, 310, 1077, 2504, 4314, 284, 8362, 4314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rook_moves() { let position = PositionBuilder::new() .place(Square::E4, Piece::Rook, Color::White) .build(); let moves = MoveGenerator::new().moves(&position); assert_targets( &[ Square::E1, Square::E2, Square::E3, Square::E5, ...
rust_cleaned_test_functions.jsonl/134604
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 596 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26608, 562, 45390, 368, 341, 262, 1077, 2309, 284, 12380, 3297, 486, 931, 741, 414, 659, 2007, 3759, 5151, 486, 36, 19, 11, 28930, 486, 49, 1941, 11, 3478, 486, 14075, 340, 414, 659, 5834, 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_ignore_message_from_prev_height() { let sandbox = timestamping_sandbox(); let sandbox_state = SandboxState::new(); add_one_height(&sandbox, &sandbox_state); sandbox.assert_state(Height(2), Round(1)); let propose = ProposeBuilder::new(&sandbox) .with_height(Height(0...
rust_cleaned_test_functions.jsonl/35539
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58493, 6462, 5673, 25566, 9561, 368, 341, 262, 1077, 42754, 284, 11441, 287, 643, 31536, 543, 262, 1077, 42754, 4387, 284, 96860, 1397, 486, 931, 1428, 262, 912, 11667, 9561, 2099, 76756, 11, 609,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_op_parse_implicit_value() { // Doesn't matter for this test. let encoding = encoding4(); let data = b"hello"; check_op_parse( |s| { s.D8(constants::DW_OP_implicit_value.0) .uleb(data.len() as u64) ...
rust_cleaned_test_functions.jsonl/45755
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 301 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10287, 21039, 62, 30940, 3142, 368, 341, 286, 442, 48832, 944, 4925, 369, 419, 1273, 624, 286, 1077, 11170, 284, 11170, 19, 1428, 286, 1077, 821, 284, 293, 1, 14990, 3302, 286, 1779, 10287, 2103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_calc_max_happiness() { 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.a...
rust_cleaned_test_functions.jsonl/85259
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38241, 6345, 1523, 66291, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rw() -> Result<()> { let path: PathBuf = tempdir().unwrap().path().into(); let store = Store::with_dir(path.clone()); let ns = Namespace::default(); let name = Name::from_str("users").unwrap(); store.save_ns(name.clone(), ns.clone())?; let saved_n...
rust_cleaned_test_functions.jsonl/87605
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49566, 368, 1464, 5714, 71698, 341, 286, 1077, 1815, 25, 7933, 15064, 284, 2730, 3741, 1005, 15454, 1005, 2343, 1005, 18122, 543, 286, 1077, 3553, 284, 9129, 486, 4197, 4334, 5581, 15997, 1423, 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...
3
#[test] fn test_qualify_path_generic() { check_assist( add_missing_impl_members, " mod foo { pub struct Bar<T>; trait Foo { fn foo(&self, bar: Bar<u32>); } } struct S; impl foo::Foo for S { <|> }", " mod foo { pub struct Bar<T>; trait Foo { fn foo(&sel...
rust_cleaned_test_functions.jsonl/106817
{ "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, 64391, 1437, 2638, 41232, 368, 341, 286, 1779, 12083, 380, 1006, 310, 912, 40447, 21007, 30397, 345, 310, 6228, 2593, 15229, 341, 262, 6675, 2036, 4716, 3125, 10133, 262, 17567, 33428, 314, 5168, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_time_offset_amount() { let p = Parser::new(); assert_eq!(p.time_offset_amount("+12:34").1, Done("", TimeOffsetAmount::new_str("+", "12", "34")) ); }
rust_cleaned_test_functions.jsonl/27415
{ "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, 3009, 6917, 13471, 368, 341, 262, 1077, 281, 284, 21102, 486, 931, 543, 262, 2060, 10714, 10297, 79, 6378, 6917, 13471, 34973, 16, 17, 25, 18, 19, 1827, 16, 345, 414, 27357, 19814, 4120, 6446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_convenience_builder() { use super::{Metadata, Record}; let target = "myApp"; let metadata = Metadata::builder().target(target).build(); let fmt_args = format_args!("hello"); let record_test = Record::builder() .args(fmt_args) ...
rust_cleaned_test_functions.jsonl/71740
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14192, 3382, 39547, 28532, 368, 341, 286, 990, 2256, 22964, 14610, 11, 13583, 2440, 286, 1077, 2169, 284, 330, 2408, 2164, 876, 286, 1077, 11160, 284, 33589, 486, 17850, 1005, 5657, 8637, 568, 583...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_valid_buf() { let buf = [ 0b10101011, ]; let expected = NonSupportedCommandParams { cr_bit: true, non_supported_command: 42 }; assert_eq!(NonSupportedCommandParams::decode(&buf[..]).unwrap(), expected); }
rust_cleaned_test_functions.jsonl/67132
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 8337, 10363, 368, 341, 286, 1077, 6607, 284, 2278, 310, 220, 15, 65, 16, 15, 16, 15, 16, 15, 16, 16, 11, 715, 286, 9747, 286, 1077, 3601, 284, 11581, 34636, 4062, 4870, 314, 1560, 139...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tt_to_stmts() { let stmts = parse_macro( r#" macro_rules! foo { () => { let a = 0; a = 10 + 1; a } } "#, ) .expand_statements("foo!{}"); assert_eq!( format!("{:#?}", stmts)...
rust_cleaned_test_functions.jsonl/28724
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 698 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66740, 2346, 21824, 82, 368, 341, 262, 1077, 20020, 82, 284, 4715, 58810, 1006, 286, 435, 2, 698, 286, 18072, 21407, 0, 15229, 341, 310, 1719, 589, 341, 338, 1077, 264, 284, 220, 15, 280, 338,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_tx_single_recipient_dust_amount() { let (wallet, _, _) = get_funded_wallet(get_test_wpkh()); let addr = wallet.get_new_address().unwrap(); wallet .create_tx( TxBuilder::new() .set_single_recipient(addr.script...
rust_cleaned_test_functions.jsonl/11333
{ "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, 8657, 17805, 19487, 7080, 14117, 814, 590, 13471, 368, 341, 286, 1077, 320, 35735, 11, 8358, 27439, 284, 633, 761, 36053, 62308, 5433, 4452, 1670, 20819, 71, 1423, 286, 1077, 10789, 284, 15085, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_shapeid_resolution_valid() { let model: Model = ModelBuilder::new(Version::V10, "smithy.example") .uses("foo.baz#Bar") .simple_shape(SimpleShapeBuilder::string("MyString")) .structure( StructureBuilder::new("MyStructure") .member("a", "MySt...
rust_cleaned_test_functions.jsonl/25973
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 416 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13597, 307, 39849, 8337, 368, 341, 262, 1077, 1614, 25, 4903, 284, 4903, 3297, 486, 931, 7, 5637, 486, 53, 16, 15, 11, 330, 33017, 88, 7724, 1138, 286, 659, 4776, 445, 7975, 948, 1370, 2, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_b2h() { let b = "Hatsune Miku".as_bytes(); let h = b2h(b); assert_eq!("48617473756e65204d696b75", h); }
rust_cleaned_test_functions.jsonl/81060
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 17, 71, 368, 341, 256, 1077, 293, 284, 330, 39, 1862, 2886, 386, 38242, 3263, 300, 12524, 543, 256, 1077, 305, 284, 293, 17, 71, 1883, 317, 256, 2060, 10714, 17223, 19, 23, 21, 16, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fs_root_of_unity() { assert_eq!(Fs::multiplicative_generator(), Fs::from_repr(FsRepr::from(7)).unwrap()); assert_eq!( Fs::multiplicative_generator().pow([ 0xa677297dc392126f, 0xbab3eedb83920ee0, 0x5370a08b6d0302b0, 0x0060c89ce5...
rust_cleaned_test_functions.jsonl/95524
{ "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, 34470, 12993, 3575, 62, 2439, 368, 341, 1066, 262, 2060, 10714, 10297, 48300, 486, 77976, 65266, 25813, 1507, 84619, 486, 1499, 68535, 7832, 82, 693, 649, 486, 1499, 7, 22, 4579, 15454, 1423, 262,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_try_from_message() { let dupe_key = Pubkey::new_unique(); let legacy_message_with_dupes = Message { header: MessageHeader { num_required_signatures: 1, ..MessageHeader::default() }, account_keys: vec![dupe_key, d...
rust_cleaned_test_functions.jsonl/133927
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 436 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 6462, 368, 341, 286, 1077, 3845, 375, 3097, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 19588, 6462, 6615, 51932, 288, 284, 4856, 341, 310, 4247, 25, 4856, 4047, 341, 394, 162...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_native_libs_tracking_hash_different_order() { let mut v1 = Options::default(); let mut v2 = Options::default(); let mut v3 = Options::default(); // Reference v1.libs = vec![ (String::from("a"), None, NativeLibKind::StaticBundle), (String::from("b"), None, Nat...
rust_cleaned_test_functions.jsonl/16054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 520 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44494, 16142, 82, 66105, 8950, 82741, 7869, 368, 341, 262, 1077, 5206, 348, 16, 284, 14566, 486, 2258, 543, 262, 1077, 5206, 348, 17, 284, 14566, 486, 2258, 543, 262, 1077, 5206, 348, 18, 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_fn_trait() { let closure = || 0; let fn_trait_obj: &dyn Fn() -> i32 = &closure; let pointer = Ptr::new(fn_trait_obj); // Prove we can copy it. let copy = pointer; assert_eq!(pointer(), 0); assert_eq!(copy(), 0); }
rust_cleaned_test_functions.jsonl/24615
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 122 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15246, 78491, 368, 341, 262, 1077, 21955, 284, 1369, 220, 15, 401, 262, 1077, 5168, 78491, 7328, 25, 609, 43085, 50182, 368, 1464, 600, 18, 17, 284, 609, 46916, 401, 262, 1077, 7445, 284, 46409,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_abbreviate_long_string_multiple_steps() { let mut out = ProcOutput::new(); out.extend(&vec![b'.'; HEAD_LEN], &[]); out.extend(&vec![b'.'; TAIL_LEN], &[]); // Also test whether the rotation works out.extend(&vec![b'!'; 16], &[]); out.extend(&vec![b'?'; 16], &[]); let...
rust_cleaned_test_functions.jsonl/34995
{ "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, 62, 44272, 6493, 17799, 3904, 45233, 22731, 368, 341, 262, 1077, 5206, 700, 284, 41087, 5097, 486, 931, 1428, 262, 700, 15831, 2099, 4083, 20703, 65, 6, 3159, 26, 33080, 15536, 1125, 609, 56703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_byte_syntax() { new_ucmd!() .args(&["-1c"]) .pipe_in("abc") .run() .stdout_is("a"); }
rust_cleaned_test_functions.jsonl/32764
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 91 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19737, 78894, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 16, 66, 14108, 286, 659, 13768, 1243, 445, 13683, 1138, 286, 659, 6108, 741, 286, 659, 36358, 6892, 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
#[test] fn test_is_valid() { let a = Int32Array::from(vec![ Some(15), None, None, Some(1), None, None, Some(5), None, None, Some(4), ]); let simd_lanes = 16; le...
rust_cleaned_test_functions.jsonl/16033
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 431 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 8337, 368, 341, 286, 1077, 264, 284, 1333, 18, 17, 1857, 486, 1499, 25592, 90515, 310, 4329, 7, 16, 20, 1326, 310, 2240, 345, 310, 2240, 345, 310, 4329, 7, 16, 1326, 310, 2240, 345, 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...
4
#[test] fn test_very_small_turn_sums() { let lang = English; let words = Words::new(lang); let guessed = vec![]; let cache = Cache::new(&words); let log = true; let count = 4; let secrets: SecretIndices = words.secret_indices().into_iter().take(count).collect(); let scores = tur...
rust_cleaned_test_functions.jsonl/57273
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 321 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 1204, 31966, 37274, 643, 6237, 368, 341, 262, 1077, 8688, 284, 6364, 280, 262, 1077, 4244, 284, 27630, 486, 931, 49493, 317, 262, 1077, 42310, 284, 7486, 0, 15078, 262, 1077, 6500, 284, 1947...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fq_squaring() { let a = Fq([ 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0x19ffffffffffffff, ]); assert!(a.is_valid()); assert_eq!( a.square(), Fq::from_repr(Fq...
rust_cleaned_test_functions.jsonl/79189
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 641 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 643, 446, 3249, 368, 341, 262, 1077, 264, 284, 434, 80, 8956, 286, 220, 15, 41798, 53697, 345, 286, 220, 15, 41798, 53697, 345, 286, 220, 15, 41798, 53697, 345, 286, 220, 15, 41798, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_two_plus_lines_spaces_and_ansi() { DeltaTest::with_args(&[ "--side-by-side", "--width", "41", "--line-fill-method=spaces", ]) .explain_ansi() .with_input(TWO_PLUS_LINES_DIFF) .expect_after_header(r#" ...
rust_cleaned_test_functions.jsonl/72595
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 663 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 28043, 18323, 67883, 8378, 62, 52067, 368, 341, 286, 24957, 2271, 486, 4197, 8384, 2099, 9640, 310, 14482, 2929, 14319, 24067, 756, 310, 14482, 3098, 756, 310, 330, 19, 16, 756, 310, 14482,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_circular_index_empty() { // Empty. assert_eq!(empty(0, 0, 10, !0), (0..10, None)); assert_eq!(empty(0, 0, 10, 1), (0..1, None)); // Empty with position in the middle. assert_eq!(empty(5, 0, 10, !0), (5..10, Some(0..5))); assert_eq!(empty(5, 0, 10, 1), (5..6, ...
rust_cleaned_test_functions.jsonl/86390
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 521 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 21472, 3560, 15124, 368, 341, 262, 442, 22228, 624, 262, 2060, 10714, 10297, 3194, 7, 15, 11, 220, 15, 11, 220, 16, 15, 11, 753, 15, 701, 320, 15, 496, 16, 15, 11, 2240, 3237, 1066, 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_invalid_mbtc_conversion() { INVALID_TEST_AMOUNTS .iter() .for_each(|amounts| test_from_mbtc(amounts.milli_bit, BitcoinAmount(amounts.satoshi))); }
rust_cleaned_test_functions.jsonl/131273
{ "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, 31433, 53812, 10413, 64132, 368, 341, 394, 32269, 11641, 59993, 50, 198, 503, 659, 2015, 741, 503, 659, 1958, 32046, 22428, 6045, 82, 91, 1273, 5673, 53812, 10413, 33989, 82, 744, 57168, 13996, 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
#[test] fn test_path_dependency_under_member() { let p = project() .file( "ws/Cargo.toml", r#" [project] name = "ws" version = "0.1.0" authors = [] [dependencies] foo = { path = "../foo" } [...
rust_cleaned_test_functions.jsonl/119802
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 748 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2638, 62387, 58228, 19388, 368, 341, 262, 1077, 281, 284, 2390, 741, 286, 659, 1192, 1006, 310, 330, 8915, 11295, 12088, 73494, 75, 756, 310, 435, 2, 698, 310, 508, 4987, 921, 310, 829, 284, 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_endian_vec() { let mut w = EndianVec::new(LittleEndian); assert_eq!(w.endian(), LittleEndian); assert_eq!(w.len(), 0); w.write(&[1, 2]).unwrap(); assert_eq!(w.slice(), &[1, 2]); assert_eq!(w.len(), 2); w.write(&[3, 4, 5]).unwrap(); ...
rust_cleaned_test_functions.jsonl/109600
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 510 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 87193, 13251, 368, 341, 286, 1077, 5206, 289, 284, 3972, 1103, 10050, 486, 931, 4957, 2377, 43231, 317, 286, 2060, 10714, 10297, 86, 5073, 1103, 1507, 14671, 43231, 317, 286, 2060, 10714, 10297, 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...
1
#[test] fn test_load_config() { #[derive(Clone, ModuleConfig)] struct TestConfig<'a> { pub symbol: &'a str, pub disabled: bool, pub some_array: Vec<&'a str>, } let config = toml::toml! { symbol = "T " disabled = true ...
rust_cleaned_test_functions.jsonl/76120
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 387 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 5332, 368, 341, 286, 11506, 27098, 65297, 11, 13711, 2648, 5563, 286, 2036, 3393, 2648, 18291, 64, 29, 341, 310, 6675, 7735, 25, 30136, 64, 607, 345, 310, 6675, 8386, 25, 1807, 345, 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_into_bits_strict() { let mut negone = Fr::one(); negone.negate(); let mut cs = TestConstraintSystem::<Bls12>::new(); let n = AllocatedNum::alloc(&mut cs, || Ok(negone)).unwrap(); n.into_bits_le_strict(&mut cs).unwrap(); assert!(cs.is_satisfied()...
rust_cleaned_test_functions.jsonl/36362
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 244 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45514, 20034, 2895, 849, 368, 341, 286, 1077, 5206, 4184, 603, 284, 2869, 486, 603, 543, 286, 4184, 603, 79219, 349, 1428, 286, 1077, 5206, 10532, 284, 3393, 17890, 2320, 27638, 33, 4730, 16, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_stringview() { // Test that APIs using std::string_view do not otherwise cause errors. let hdr = indoc! {" #include <string_view> #include <string> void take_string_view(std::string_view) {} std::string_view return_string_view(std::string a) { return std::...
rust_cleaned_test_functions.jsonl/9911
{ "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, 3904, 1050, 368, 341, 262, 442, 3393, 429, 33356, 1667, 1460, 486, 917, 7122, 653, 537, 5937, 5240, 5975, 624, 262, 1077, 36615, 284, 1257, 509, 0, 314, 698, 286, 671, 997, 366, 917, 7122, 397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_creation() { const EMPTY: CompactString = CompactString::new_inline(""); const SHORT: CompactString = CompactString::new_inline("rust"); #[cfg(target_pointer_width = "64")] const PACKED: CompactString = CompactString::new_inline("i am 24 characters long!"); #[cfg(targe...
rust_cleaned_test_functions.jsonl/47698
{ "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, 13610, 46163, 368, 341, 262, 733, 41314, 25, 54782, 703, 284, 54782, 703, 486, 931, 41871, 13056, 262, 733, 64924, 25, 54782, 703, 284, 54782, 703, 486, 931, 41871, 445, 35788, 3071, 262, 11506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bit_stream() { let mut out = Vec::new(); { let mut writer = BitStreamWriter::new(&mut out); writer.write(0, 1).unwrap(); writer.write(2, 2).unwrap(); writer.write(6, 3).unwrap(); writer.write(11, 4).unwrap(); ...
rust_cleaned_test_functions.jsonl/49374
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 648 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 12673, 368, 341, 286, 1077, 5206, 700, 284, 11312, 486, 931, 543, 286, 341, 310, 1077, 5206, 6916, 284, 6495, 93031, 486, 931, 2099, 6984, 700, 317, 310, 6916, 3836, 7, 15, 11, 220, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_request_extract() { let mut router = Router::<()>::build(); router.path("/{key}/{value}/", ()); let router = router.finish(); let mut path = Path::new("/name/user1/"); assert!(router.recognize(&mut path).is_some()); let s: MyStruct = de::Deserial...
rust_cleaned_test_functions.jsonl/36504
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 744 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 39123, 368, 341, 286, 1077, 5206, 9273, 284, 10554, 27638, 368, 6831, 5834, 543, 286, 9273, 3875, 65871, 792, 22472, 957, 4472, 497, 49323, 286, 1077, 9273, 284, 9273, 40086, 1428, 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_update_add_htlc_bolt2_sender_exceed_max_htlc_num_and_htlc_id_increment() { //BOLT 2 Requirement: for the first HTLC it offers MUST set id to 0. //BOLT 2 Requirement: MUST increase the value of id by 1 for each successive offer. let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = creat...
rust_cleaned_test_functions.jsonl/28324
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 983 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 2891, 49086, 17257, 880, 6181, 17, 54356, 2702, 4635, 6345, 49086, 17257, 4273, 8378, 49086, 17257, 842, 51482, 368, 341, 197, 322, 33, 35320, 220, 17, 75938, 25, 369, 279, 1156, 5260, 8556,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_commit() { let l = default_logger(); let mut tests = vec![ // single (vec![1], vec![empty_entry(1, 1)], 1, 1), (vec![1], vec![empty_entry(1, 1)], 2, 0), (vec![2], vec![empty_entry(1, 1), empty_entry(2, 2)], 2, 2), (vec![1], vec![empty_entry(2, 1)],...
rust_cleaned_test_functions.jsonl/19105
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1701 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36346, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 5206, 7032, 284, 7486, 90515, 286, 442, 3175, 198, 286, 320, 4083, 20703, 16, 1125, 7486, 20703, 3194, 9078, 7, 16, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_transaction_duration() { let json = r#" { "type": "transaction", "timestamp": "2021-04-26T08:00:00+0100", "start_timestamp": "2021-04-26T07:59:01+0100", "release": "1.2.3", "environment": "fake_environment", ...
rust_cleaned_test_functions.jsonl/21930
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 930 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 25454, 368, 341, 286, 1077, 2951, 284, 435, 2, 698, 286, 341, 310, 330, 1313, 788, 330, 13528, 756, 310, 330, 13035, 788, 330, 17, 15, 17, 16, 12, 15, 19, 12, 17, 21, 51, 15, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_template() { assert_eq!( html! { span : Test::new(&32); } .into_string() .unwrap(), "<span><span>32</span></span>" ); assert_eq!( html! { span : Test2::new(&32); } .into_string() .unwrap()...
rust_cleaned_test_functions.jsonl/73248
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8693, 368, 341, 262, 2060, 10714, 33673, 286, 5272, 0, 341, 310, 9390, 549, 3393, 486, 931, 2099, 18, 17, 317, 286, 456, 286, 659, 18122, 3904, 741, 286, 659, 15454, 3148, 286, 4055, 1480, 178...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_call_member5() { let mut vm = VirtualMachine::new(); vm.add_class(Class::new( "Point".to_owned(), vec![ Field::new("x".to_owned(), TypeId::Int32), Field::new("y".to_owned(), TypeId::Int32), ] )); vm.add_function(Function::new( ...
rust_cleaned_test_functions.jsonl/17404
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 864 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13429, 19388, 20, 368, 341, 262, 1077, 5206, 10995, 284, 20721, 21605, 486, 931, 1428, 262, 10995, 1364, 4790, 31368, 486, 931, 1006, 286, 330, 2609, 3263, 983, 51973, 3148, 286, 7486, 90515, 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_shll_reg() { assert_emit!(0xC1, 0xE0, 0x02; emit_shll_reg(2, RAX)); assert_emit!(0x41, 0xC1, 0xE4, 0x07; emit_shll_reg(7, R12)); }
rust_cleaned_test_functions.jsonl/85413
{ "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, 3712, 654, 4920, 368, 341, 286, 2060, 69082, 10297, 15, 12125, 16, 11, 220, 15, 12606, 15, 11, 220, 15, 87, 15, 17, 26, 16691, 3712, 654, 4920, 7, 17, 11, 431, 2954, 1106, 286, 2060, 69082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rc4_override() { let start_stream: Vec<u8> = "0123456789".as_bytes().to_vec(); let mut cart_stream:Vec<u8> = Vec::new(); let mut final_stream: Vec<u8> = Vec::new(); let key = "Test Da Key!".as_bytes().to_vec(); let opt_header = object! {"name": "testvalue"}; let opt_foot...
rust_cleaned_test_functions.jsonl/69925
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 331 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30299, 19, 48576, 368, 341, 262, 1077, 1191, 12673, 25, 11312, 34837, 23, 29, 284, 330, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 3263, 300, 12524, 1005, 983, 13251, 543, 262, 1077, 5206, 7406...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_configure_vcpu() { let (vm, mut vcpu) = setup_vcpu(); let vm_config = VmConfig::default(); let vm_mem = vm.memory().unwrap(); assert!(vcpu .configure_x86_64(&vm_config, vm_mem, GuestAddress(0)) .is_ok()); // Test configure while u...
rust_cleaned_test_functions.jsonl/1917
{ "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, 75887, 2273, 16475, 368, 341, 286, 1077, 320, 7338, 11, 5206, 348, 16475, 8, 284, 6505, 2273, 16475, 1428, 286, 1077, 10995, 5332, 284, 647, 76, 2648, 486, 2258, 543, 286, 1077, 10995, 12976, 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_walks_all_indexes() { let dims = uvec2(100, 100); let size = vec2(256.0, 256.0); let generator = ProjectionGenerator::new(dims, size); assert_eq!(10000, generator.iter().count()); }
rust_cleaned_test_functions.jsonl/6158
{ "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, 56131, 82, 5705, 50161, 368, 341, 286, 1077, 40888, 284, 575, 4083, 17, 7, 16, 15, 15, 11, 220, 16, 15, 15, 317, 286, 1077, 1379, 284, 7486, 17, 7, 17, 20, 21, 13, 15, 11, 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_borrow_with_not_called_when_filled() { let lazycell = LazyCell::new(); lazycell.fill(1).unwrap(); let value = lazycell.borrow_with(|| 2); assert_eq!(&1, value); }
rust_cleaned_test_functions.jsonl/5794
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 7768, 6615, 7913, 27859, 47636, 90592, 368, 341, 286, 1077, 64436, 3337, 613, 284, 44263, 3599, 486, 931, 1428, 286, 64436, 3337, 613, 12467, 7, 16, 568, 15454, 1428, 286, 1077, 897, 284, 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 ]
2
#[test] fn test_parse_nulls() { use IonType::*; parse_equals("null ", Null); parse_equals("null.null ", Null); parse_equals("null.bool ", Boolean); parse_equals("null.int ", Integer); parse_equals("null.float ", Float); parse_equals("null.decimal ", Decima...
rust_cleaned_test_functions.jsonl/84317
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 445 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 15162, 82, 368, 341, 286, 990, 44805, 929, 56162, 286, 4715, 61664, 445, 2921, 3670, 18084, 317, 286, 4715, 61664, 445, 2921, 59266, 3670, 18084, 317, 286, 4715, 61664, 445, 2921, 28791, 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_read_success_job() { let jobs: Vec<Job> = read_test_file("job"); let job: Job = jobs .into_iter() .find(|job| job.id == JobId::new(4_895_231)) .unwrap(); assert_eq!(job.status, StatusState::Success); assert_eq!(job.stage, "test"); assert_eq!(job.name,...
rust_cleaned_test_functions.jsonl/12962
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1461 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 18632, 20298, 368, 341, 262, 1077, 6887, 25, 11312, 27, 12245, 29, 284, 1349, 4452, 2458, 445, 8799, 797, 262, 1077, 2618, 25, 12011, 284, 6887, 198, 286, 659, 18122, 11723, 741, 286, 659,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mac_addr_serialization_and_deserialization() { let mac: MacAddr = serde_json::from_str("\"12:34:56:78:9a:bc\"").expect("MacAddr deserialization failed."); let bytes = mac.get_bytes(); assert_eq!(bytes, [0x12u8, 0x34, 0x56, 0x78, 0x9a, 0xbc]); let s =...
rust_cleaned_test_functions.jsonl/18569
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 220 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22802, 7387, 25602, 2022, 8378, 15768, 50563, 368, 341, 286, 1077, 8978, 25, 7401, 13986, 4035, 310, 61570, 9455, 486, 1499, 2895, 38915, 16, 17, 25, 18, 19, 25, 20, 21, 25, 22, 23, 25, 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_star_network_large_pull() { solana_logger::setup(); let mut network = star_network_create(2000); let thread_pool = build_gossip_thread_pool(); network_simulator_pull_only(&thread_pool, &mut network); }
rust_cleaned_test_functions.jsonl/2401
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 92 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31681, 20966, 45228, 65693, 368, 341, 262, 2048, 3362, 27413, 486, 15188, 543, 262, 1077, 5206, 3922, 284, 6774, 20966, 8657, 7, 17, 15, 15, 15, 317, 262, 1077, 4516, 15709, 284, 1936, 1889, 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
#[test] fn test_opt_files_dir_dscr_rot() { let link_name = "link_to_log".to_string(); let handle = Logger::try_with_str("info") .unwrap() .format(opt_format) .log_to_file( FileSpec::default() .directory("log_files") .discriminan...
rust_cleaned_test_functions.jsonl/6616
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 505 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 10931, 4334, 814, 25065, 38256, 368, 972, 262, 1077, 2656, 1269, 284, 330, 2080, 2346, 5224, 3263, 983, 3904, 1647, 262, 1077, 3705, 284, 9514, 486, 1539, 6615, 2895, 445, 2733, 6060, 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_calc_width() { let width = calc_range_width(0); // +/-10 V assert_eq!(width, 20.0); let width = calc_range_width(1); // +/-5 V assert_eq!(width, 10.0); let width = calc_range_width(2); // +/-2.5 V assert_eq!(width, 5.0); let width = calc...
rust_cleaned_test_functions.jsonl/62657
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 322 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38241, 7927, 368, 341, 286, 1077, 2374, 284, 10035, 9698, 7927, 7, 15, 1215, 442, 51615, 16, 15, 647, 198, 286, 2060, 10714, 10297, 3098, 11, 220, 17, 15, 13, 15, 626, 286, 1077, 2374, 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_if_expression() { let exp = statement_expression("if (x < y) { x }"); let (cond, stmts) = match exp { Expression::If { condition, consequence, alternative: None, .. } => { let ...
rust_cleaned_test_functions.jsonl/64080
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 519 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11119, 28068, 368, 341, 286, 1077, 1343, 284, 5114, 28068, 445, 333, 320, 87, 366, 379, 8, 314, 856, 335, 797, 286, 1077, 320, 1297, 11, 20020, 82, 8, 284, 2432, 1343, 341, 310, 16378, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_diff_trees() { setup(); let from_tree = Tree::new(".", &[]).unwrap(); let f_oid = Tree::write_tree(".", &[]).unwrap(); // This diff pattern: a removed file and two new files. fs::remove_file("./cat.txt").unwrap(); fs::write("./dragon.txt", "Ryuu").unwrap(); fs::write...
rust_cleaned_test_functions.jsonl/70348
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 783 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15850, 75791, 368, 341, 262, 6505, 543, 262, 1077, 504, 11663, 284, 8942, 486, 931, 64217, 609, 1294, 568, 15454, 543, 262, 1077, 282, 59633, 284, 8942, 486, 4934, 11663, 64217, 609, 1294, 568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_progress_is_paused() { let tests = vec![ (ProgressState::Probe, false, false), (ProgressState::Probe, true, true), (ProgressState::Replicate, false, false), (ProgressState::Replicate, true, false), (ProgressState::Snapshot, false, true), (Progr...
rust_cleaned_test_functions.jsonl/30238
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27200, 6892, 55475, 2591, 368, 341, 262, 1077, 7032, 284, 7486, 90515, 286, 320, 9496, 1397, 486, 81426, 11, 895, 11, 895, 1326, 286, 320, 9496, 1397, 486, 81426, 11, 830, 11, 830, 1326, 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...
3
#[test] fn test_ping() { let provider = CoreProvider { wire_protocol_version_min: 8, wire_protocol_version_maj: 10, provider_info: Vec::new(), provider_opcodes: HashMap::new(), prov_list: Vec::new(), }; let op = ping::Operation ...
rust_cleaned_test_functions.jsonl/13776
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71661, 368, 341, 286, 1077, 9109, 284, 9518, 5179, 341, 310, 9067, 34880, 9438, 7260, 25, 220, 23, 345, 310, 9067, 34880, 9438, 717, 1630, 25, 220, 16, 15, 345, 310, 9109, 3109, 25, 11312, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_serialize() -> Result<(), Box<dyn Error>> { let i18n = crate::data_types::I18n { id: 123, value: HashMap::<String, String>::from_iter(IntoIter::new([ ("zh-CN".into(), "中文".into()), ("en-US".into(), "English".into()), ]))...
rust_cleaned_test_functions.jsonl/62746
{ "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, 88686, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 286, 1077, 600, 16, 23, 77, 284, 17717, 486, 691, 9763, 486, 40, 16, 23, 77, 341, 310, 877, 25, 220, 16, 17, 18, 345, 310, 897, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_example() { let data = parse(EXEMPLE); assert_eq!(part1(&data), format!("solution {}",1656)); assert_eq!(part2(&data), format!("solution {}",195)); }
rust_cleaned_test_functions.jsonl/43115
{ "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, 39304, 368, 341, 286, 1077, 821, 284, 220, 4715, 25409, 2716, 9515, 317, 286, 2060, 10714, 10297, 4480, 16, 2099, 691, 701, 3561, 17223, 49460, 24689, 16, 21, 20, 21, 1106, 286, 2060, 10714, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_data() { let s = [0x00, 0x03, 0x00, 0x01, 0x68, 0x65, 0x6c, 0x6c, 0x6f]; let data = Data::parse(&s).unwrap(); assert_eq!(data.block(), 1); assert_eq!(data.data(), &s[4..]); }
rust_cleaned_test_functions.jsonl/104032
{ "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, 21039, 1769, 368, 341, 286, 1077, 274, 284, 508, 15, 87, 15, 15, 11, 220, 15, 87, 15, 18, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 21, 23, 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
#[test] fn test_fixup_relative_calls_out_of_bounds_forward() { let mut calls: HashMap<u32, usize> = HashMap::new(); // call +5 #[rustfmt::skip] let mut prog = vec![ 0x85, 0x10, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0xb7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0...
rust_cleaned_test_functions.jsonl/55866
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 590 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36060, 454, 29286, 45636, 6068, 3575, 36878, 32121, 368, 341, 286, 1077, 5206, 6738, 25, 10528, 34837, 18, 17, 11, 22301, 29, 284, 10528, 486, 931, 543, 286, 442, 1618, 488, 20, 198, 286, 11506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_validate_known_script_too_large_args() { let (config, keypair) = get_test_config(); let vm_validator = TestValidator::new(&config); let address = account_config::association_address(); let txn = transaction_test_helpers::get_test_signed_transaction( address, 0, ...
rust_cleaned_test_functions.jsonl/90959
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 399 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 71690, 14660, 2346, 78, 45228, 8384, 368, 341, 262, 1077, 320, 1676, 11, 1376, 12670, 8, 284, 633, 4452, 5332, 543, 262, 1077, 10995, 64959, 284, 3393, 14256, 486, 931, 2099, 1676, 626, 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_send_msg_for_success() { let a_0 = agent::ZeroAgent::new("tcp://127.0.0.1:8787".to_string()); let th0 = a_0.activate(); let a_1 = agent::ZeroAgent::new("tcp://127.0.0.1:8989".to_string()); let th1 = a_1.activate(); a_1.add_peer("tcp://127.0.0.1:8787".to_st...
rust_cleaned_test_functions.jsonl/104675
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 404 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13565, 6483, 5478, 18632, 368, 341, 286, 1077, 264, 62, 15, 284, 8315, 486, 17999, 16810, 486, 931, 445, 27161, 1110, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 23, 22, 23, 22, 3263, 983, 390...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_remove() { let mut m = HashMap::new(); m.insert(1, 2); assert_eq!(m.remove(&1), Some(2)); assert_eq!(m.remove(&1), None); }
rust_cleaned_test_functions.jsonl/8508
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 368, 341, 286, 1077, 5206, 296, 284, 10528, 486, 931, 543, 286, 296, 7030, 7, 16, 11, 220, 17, 317, 286, 2060, 10714, 10297, 76, 4850, 2099, 16, 701, 4329, 7, 17, 1106, 286, 2060, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_box() { let anyof: Box<AnyOf<MyTrait>> = Box::new(AnyOf::new(MyStruct1(1i32))); assert_eq!(anyof.get(), 1i32); assert_eq!(anyof.downcast_ref::<MyStruct1>(), Some(&MyStruct1(1i32))); assert_eq!(anyof.downcast_ref::<MyStruct2>(), None); let anyof: Box<AnyOf<...
rust_cleaned_test_functions.jsonl/66297
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 280 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10194, 368, 341, 286, 1077, 894, 1055, 25, 8261, 86712, 2124, 79333, 49257, 2452, 284, 8261, 486, 931, 7, 8610, 2124, 486, 931, 37485, 9422, 16, 7, 16, 72, 18, 17, 4945, 286, 2060, 10714, 1029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_i32_grow_buffer() { let mut b = BufferBuilder::<i32>::new(2); assert_eq!(16, b.capacity()); for i in 0..20 { b.push(i).unwrap(); } assert_eq!(32, b.capacity()); let a = b.finish(); assert_eq!(80, a.len()); }
rust_cleaned_test_functions.jsonl/127617
{ "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, 28532, 5318, 18, 17, 1889, 651, 7776, 368, 341, 286, 1077, 5206, 293, 284, 10312, 3297, 27638, 72, 18, 17, 6831, 931, 7, 17, 317, 286, 2060, 10714, 10297, 16, 21, 11, 293, 59168, 1423, 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_issue_506() { let hdr = indoc! {" namespace std { template <class, class> class am; typedef am<char, char> an; } // namespace std namespace be { class bf { virtual std::an bg() = 0; }; class bh : ...
rust_cleaned_test_functions.jsonl/9900
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 341 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53340, 62, 20, 15, 21, 368, 341, 262, 1077, 36615, 284, 1257, 509, 0, 314, 698, 286, 4473, 1460, 341, 310, 3811, 366, 1040, 11, 536, 29, 536, 1079, 280, 310, 13501, 1079, 21919, 11, 1161, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_apply() { let z = crate::cmatrix::COMPLEX_ZERO; let o = crate::cmatrix::COMPLEX_ONE; let x = crate::cmatrix::COMPLEX_HSQRT2; let h = o * 0.5; let mut state = array![ [o, z, h, z], [z, z, -h, z], [z, o, h, x], ...
rust_cleaned_test_functions.jsonl/34667
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 901 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36551, 741, 262, 341, 286, 1077, 1147, 284, 17717, 486, 6226, 2555, 486, 8696, 42136, 39370, 280, 286, 1077, 297, 284, 17717, 486, 6226, 2555, 486, 8696, 42136, 34727, 280, 286, 1077, 856, 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_cast_list_i32_to_list_u16() { // Construct a value array let value_data = Int32Array::from(vec![0, 0, 0, -1, -2, -1, 2, 100000000]).data(); let value_offsets = Buffer::from(&[0, 3, 6, 8].to_byte_slice()); // Construct a list array from the above two let ...
rust_cleaned_test_functions.jsonl/29610
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 975 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 2019, 5318, 18, 17, 2346, 2019, 7300, 16, 21, 368, 341, 286, 442, 18678, 264, 897, 1334, 198, 286, 1077, 897, 1769, 284, 1333, 18, 17, 1857, 486, 1499, 25592, 20703, 15, 11, 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, 1...
1
#[test] fn test_opalkelly_xem_7010_synth_pipe_afifo() { let mut uut = OpalKellyPipeAFIFOTest::new::<XEM7010>(); uut.hi.link_connect_dest(); uut.fast_clock.connect(); uut.connect_all(); XEM7010::synth(uut, target_path!("xem_7010/pipe_afifo")); test_opalkelly_pipe_afifo_runtime(target_path...
rust_cleaned_test_functions.jsonl/122977
{ "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, 10287, 1692, 11896, 3212, 336, 62, 22, 15, 16, 15, 643, 45809, 41862, 67213, 31497, 368, 341, 262, 1077, 5206, 575, 332, 284, 10672, 278, 69072, 34077, 8276, 2773, 1793, 477, 486, 931, 27638, 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...
1
#[test] fn test_for_vec_attr_slice_shadowing() { let t = ForVecAttrSliceShadowingTemplate { v: vec![ ForVecAttrSlice { iterable: &[1, 2] }, ForVecAttrSlice { iterable: &[3, 4] }, ForVecAttrSlice { iterable: &[5, 6] }, ], }; assert_eq!(t.render().un...
rust_cleaned_test_functions.jsonl/24301
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 188 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5478, 13251, 10422, 26488, 53120, 287, 368, 341, 262, 1077, 259, 284, 1752, 10050, 13371, 33236, 23667, 287, 7275, 341, 286, 348, 25, 7486, 90515, 310, 1752, 10050, 13371, 33236, 314, 50834, 25, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transpile() { let specifier = resolve_url_or_path("https://deno.land/x/mod.ts") .expect("could not resolve specifier"); let source = r#" enum D { A, B, C, } export class A { private b: string; protected c: number = 1; e: "foo"; ...
rust_cleaned_test_functions.jsonl/65182
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 484 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7965, 12192, 368, 341, 262, 1077, 97616, 284, 8830, 2903, 8734, 2638, 445, 2428, 1110, 5183, 78, 87627, 10776, 38479, 21288, 1138, 414, 659, 17119, 445, 28077, 537, 8830, 97616, 797, 262, 1077, 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_parse_multi() -> Result<(), Box<dyn error::Error>> { let content = fs::read_to_string(PathBuf::new().join("tests/files/simple.go"))?; let str = content .lines() .skip(10) .take(4) .collect::<Vec<_>>() .join("\r\n"); assert_eq!( TypeDec...
rust_cleaned_test_functions.jsonl/129653
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 727 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 25133, 368, 1464, 5714, 68843, 8261, 92846, 1465, 486, 1454, 2452, 341, 262, 1077, 2213, 284, 8619, 486, 878, 2346, 3904, 33030, 15064, 486, 931, 1005, 5987, 445, 23841, 33220, 67195, 18002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_order_monotonic() { let dt = Utc::now(); let mut gen = Generator::new(); let ulid1 = gen.generate_from_datetime(dt).unwrap(); let ulid2 = gen.generate_from_datetime(dt).unwrap(); let ulid3 = Ulid::from_datetime(dt + Duration::milliseconds(1)); asse...
rust_cleaned_test_functions.jsonl/105731
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7869, 20737, 354, 14011, 368, 341, 286, 1077, 7594, 284, 547, 10413, 486, 3328, 543, 286, 1077, 5206, 4081, 284, 28358, 486, 931, 543, 286, 1077, 8557, 307, 16, 284, 4081, 22019, 5673, 28943, 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_get_valid_types_one_of() -> Result<()> { let signature = TypeSignature::OneOf(vec![TypeSignature::Any(1), TypeSignature::Any(2)]); let invalid_types = get_valid_types( &signature, &[DataType::Int32, DataType::Int32, DataType::Int32], )...
rust_cleaned_test_functions.jsonl/47385
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 378 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 8337, 9763, 11667, 3575, 368, 1464, 5714, 71698, 341, 286, 1077, 11957, 4035, 310, 3990, 25088, 486, 3966, 2124, 25592, 20703, 929, 25088, 486, 8610, 7, 16, 701, 3990, 25088, 486, 8610, 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...
4
#[test] fn test_flexible_plaintext_add_plaintext() { let t = 199; let fv = crate::default_with_plaintext_mod(t); let (pk, sk) = fv.generate_keypair(); let plain_modulus = fv.t.clone(); let v = vec![Scalar::from_u32(t - 1, &plain_modulus); fv.n]; let w = vec![Scala...
rust_cleaned_test_functions.jsonl/103696
{ "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, 761, 94544, 6317, 1641, 427, 2891, 6317, 1641, 427, 368, 341, 286, 1077, 259, 284, 220, 16, 24, 24, 280, 286, 1077, 61654, 284, 17717, 486, 2258, 6615, 6317, 1641, 427, 7480, 1155, 317, 286, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_missing_module_code_action_in_json_project() { if skip_slow_tests() { return; } let tmp_dir = TestDir::new(); let path = tmp_dir.path(); let project = json!({ "roots": [path], "crates": [ { "root_module": path.join("src/lib.rs"), ...
rust_cleaned_test_functions.jsonl/27497
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 956 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40447, 10750, 4136, 7931, 1243, 9455, 16352, 368, 341, 262, 421, 10706, 82447, 32509, 368, 341, 286, 470, 280, 262, 555, 262, 1077, 4174, 4334, 284, 3393, 6184, 486, 931, 1428, 262, 1077, 1815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_attach_boot_timer_device() { let mut vmm = default_vmm(); let request_ts = TimestampUs::default(); let res = attach_boot_timer_device(&mut vmm, request_ts); assert!(res.is_ok()); assert!(vmm .mmio_device_manager .get_device(DeviceT...
rust_cleaned_test_functions.jsonl/4355
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40719, 52062, 16255, 9204, 368, 341, 286, 1077, 5206, 348, 3821, 284, 1638, 2273, 3821, 543, 286, 1077, 1681, 25023, 284, 32758, 3558, 486, 2258, 1428, 286, 1077, 592, 284, 15498, 52062, 16255, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_notify_account_restore_from_snapshot_once_per_slot() { let mut accounts = AccountsDb::new_single_for_tests(); // Account with key1 is updated twice in the store -- should only get notified once. let key1 = solana_sdk::pubkey::new_rand(); let mut account1_lamports:...
rust_cleaned_test_functions.jsonl/46210
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 933 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36654, 13500, 62677, 5673, 53265, 7630, 5678, 27563, 368, 341, 286, 1077, 5206, 9618, 284, 40655, 7994, 486, 931, 19487, 5478, 32509, 543, 286, 442, 8615, 448, 1376, 16, 374, 6049, 10917, 304, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_validate_dynamic_offers_specify_target() { assert_eq!( validate_dynamic_offers(&vec![ fdecl::Offer::Protocol(fdecl::OfferProtocol { dependency_type: Some(fdecl::DependencyType::Strong), source: Some(fdecl::Ref::Self_(fde...
rust_cleaned_test_functions.jsonl/82027
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2547 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 45992, 13651, 388, 13594, 1437, 11123, 368, 341, 286, 2060, 10714, 33673, 310, 9593, 45992, 13651, 388, 2099, 4083, 90515, 394, 282, 10005, 486, 39462, 486, 20689, 955, 10005, 486, 39462, 206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_checksum() { let test_path1: &'static Path = Path::new("some_path_for_test"); let test_path2: &'static Path = Path::new("other_test_path"); let tempdir = TempDir::new().unwrap(); let tempdir_path = PathBuf::from(tempdir.path()); let mmap_directory = Mmap...
rust_cleaned_test_functions.jsonl/745
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 579 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64038, 368, 341, 286, 1077, 1273, 2638, 16, 25, 30136, 1978, 7933, 284, 7933, 486, 931, 445, 14689, 2638, 5478, 4452, 797, 286, 1077, 1273, 2638, 17, 25, 30136, 1978, 7933, 284, 7933, 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_parse_fsanitize_blacklist() { let args = ovec![ "-c", "foo.c", "-o", "foo.o", "-fsanitize-blacklist=list.txt" ]; let ParsedArguments { common_args, extra_hash_files, .. ...
rust_cleaned_test_functions.jsonl/24597
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 391 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 761, 65704, 40272, 1607, 368, 341, 286, 1077, 2827, 284, 297, 4083, 90515, 310, 6523, 66, 756, 310, 330, 7975, 520, 756, 310, 6523, 78, 756, 310, 330, 7975, 14439, 756, 310, 6523, 3848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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