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_two() { let mut dec = MultiResponseDecoder::<TO>::new(); { let mut stream = dec.process_next_chunk( br#"{ "type": "ADDED", "object": { "kind": "Pod", "apiVersion":...
rust_cleaned_test_functions.jsonl/14561
{ "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, 23241, 368, 341, 286, 1077, 5206, 1622, 284, 17439, 2582, 20732, 27638, 5207, 6831, 931, 1428, 286, 341, 310, 1077, 5206, 4269, 284, 1622, 16988, 11257, 30539, 1006, 394, 1411, 55543, 515, 503, 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_memory_size() { let start_region1 = GuestAddress(0x0); let size_region1 = 0x1000; let start_region2 = GuestAddress(0x10000); let size_region2 = 0x2000; let gm = GuestMemory::new(&[(start_region1, size_region1), (start_region2, size_region2)]) ....
rust_cleaned_test_functions.jsonl/67404
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19195, 2368, 368, 341, 286, 1077, 1191, 20627, 16, 284, 26215, 4286, 7, 15, 87, 15, 317, 286, 1077, 1379, 20627, 16, 284, 220, 15, 87, 16, 15, 15, 15, 280, 286, 1077, 1191, 20627, 17, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reset_to_new_value() { solana_logger::setup(); let ledger_path = get_tmp_ledger_path!(); { let blocktree = Blocktree::open(&ledger_path).expect("Expected to be able to open database ledger"); let (mut poh_recorder, _entry_receiver)...
rust_cleaned_test_functions.jsonl/31728
{ "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, 18983, 2346, 5921, 3142, 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, 9344, 4035, 394, 8362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reqopt_missing() { let args = vec!("blah".to_string()); let opts = vec!(reqopt("t", "test", "testing", "TEST")); let rs = getopts(&args, &opts); match rs { Err(OptionMissing(_)) => {}, _ => panic!() } }
rust_cleaned_test_functions.jsonl/63983
{ "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, 17644, 2912, 40447, 368, 341, 286, 1077, 2827, 284, 7486, 17223, 70614, 3263, 983, 3904, 1423, 286, 1077, 12185, 284, 7486, 10297, 2958, 2912, 445, 83, 497, 330, 1944, 497, 330, 8840, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unsupported_version() { let tx = test_tx(); let mut packet = Packet::from_data(None, tx).unwrap(); let res = sigverify::do_get_packet_offsets(&packet, 0); // set message version to 1 packet.buffer_mut()[res.unwrap().msg_start as usize] = MESSAGE_VERSION_...
rust_cleaned_test_functions.jsonl/39074
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 18216, 9438, 368, 341, 286, 1077, 9854, 284, 1273, 17805, 543, 286, 1077, 5206, 10151, 284, 28889, 486, 1499, 1769, 26717, 11, 9854, 568, 15454, 1428, 286, 1077, 592, 284, 8366, 12446, 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_hover_self() { check( r#" struct Thing { x: u32 } impl Thing { fn new() -> Self { Self<|> { x: 0 } } } "#, expect![[r#" *Self { x: 0 }* ```rust Thing ``` "#]], ) }
rust_cleaned_test_functions.jsonl/66119
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 25637, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1235, 37200, 314, 856, 25, 575, 18, 17, 456, 6383, 37200, 341, 262, 5168, 501, 368, 1464, 10115, 314, 10115, 27, 91, 29, 314, 856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_last_ack_fin_ack() { let mut s = socket_last_ack(); recv!(s, [TcpRepr { control: TcpControl::Fin, seq_number: LOCAL_SEQ + 1, ack_number: Some(REMOTE_SEQ + 1 + 1), ..RECV_TEMPL }]); assert_eq!(s.state, State::LastAck)...
rust_cleaned_test_functions.jsonl/1750
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 314 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12195, 48447, 39737, 48447, 368, 341, 286, 1077, 5206, 274, 284, 7575, 12195, 48447, 543, 286, 27006, 10297, 82, 11, 508, 77536, 693, 649, 341, 310, 2524, 25, 64876, 3273, 486, 9134, 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...
1
#[test] fn test_empty_record_type() { let want = RecordType { base: BaseNode::default(), tvar: None, properties: vec![], }; let mut builder = flatbuffers::FlatBufferBuilder::new(); assert_eq!( want, flatbuffers::get_ro...
rust_cleaned_test_functions.jsonl/112508
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 281 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 14192, 1819, 368, 341, 286, 1077, 1366, 284, 13583, 929, 341, 310, 2331, 25, 5351, 1955, 486, 2258, 3148, 310, 259, 947, 25, 2240, 345, 310, 5888, 25, 7486, 20703, 1259, 286, 3634, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_division_by_zero() { Variant::VSingle(1.0) .divide(Variant::VSingle(0.0)) .expect_err("Division by zero"); Variant::VSingle(1.0) .divide(Variant::VDouble(0.0)) .expect_err("Division by...
rust_cleaned_test_functions.jsonl/84609
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16237, 1816, 3710, 19359, 368, 341, 394, 39292, 486, 53, 10888, 7, 16, 13, 15, 340, 503, 659, 59394, 12410, 15341, 486, 53, 10888, 7, 15, 13, 15, 1171, 503, 659, 17119, 9266, 445, 51237, 553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_recursive_example2() { let root = Packet::from_str(&hex_to_bits("620080001611562C8802118E34")).unwrap(); println!("{:?}", root); assert_eq!(12, root.part1()); }
rust_cleaned_test_functions.jsonl/75411
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 107 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 66242, 39304, 17, 368, 341, 286, 1077, 3704, 284, 28889, 486, 1499, 2895, 2099, 17308, 2346, 20034, 445, 21, 17, 15, 15, 23, 15, 15, 15, 16, 21, 16, 16, 20, 21, 17, 34, 23, 23, 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_p2shwpkh() { // stolen from Bitcoin transaction: ad3fd9c6b52e752ba21425435ff3dd361d6ac271531fc1d2144843a9f550ad01 let mut key = hex_key!("026c468be64d22761c30cd2f12cbc7de255d592d7904b1bab07236897cc4c2e766"); let addr = Address::p2shwpkh(&key, Bitcoin).unwrap(); as...
rust_cleaned_test_functions.jsonl/59118
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 17, 927, 8421, 30664, 368, 341, 286, 442, 22329, 504, 13127, 7745, 25, 993, 18, 6902, 24, 66, 21, 65, 20, 17, 68, 22, 20, 17, 4645, 17, 16, 19, 17, 20, 19, 18, 20, 542, 18, 631, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_text() { let xml = br#"<?xml version="1.0"?> <x>hello world!</x>"#; let result: String = with_parser(xml, |mut p| { p.document(|p, _| p.element_with_name("x", |p, _| p.text())) }) .unwrap(); assert_eq!("hello world!", &result); ...
rust_cleaned_test_functions.jsonl/39192
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4326, 368, 341, 286, 1077, 8396, 284, 1411, 55543, 1316, 6455, 2319, 428, 16, 13, 15, 85990, 310, 366, 87, 29, 14990, 1879, 18685, 87, 9877, 2, 401, 286, 1077, 1102, 25, 923, 284, 448, 18517, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fr() { let mut rng = test_rng(); let a: Fr = rng.gen(); let b: Fr = rng.gen(); field_test(a, b); primefield_test::<Fr>(); }
rust_cleaned_test_functions.jsonl/52607
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 86 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41537, 368, 341, 262, 1077, 5206, 28422, 284, 1273, 66849, 543, 262, 1077, 264, 25, 2869, 284, 28422, 22822, 543, 262, 1077, 293, 25, 2869, 284, 28422, 22822, 543, 262, 2070, 4452, 2877, 11, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_build_canonical_code_book() { let symbols = [65, 66, 67, 68, 69, 70]; let bit_lens = [1, 3, 3, 3, 4, 4]; let code_book = build_canonical_code_book(&symbols, &bit_lens); assert_eq!(code_book.len(), 6); assert_eq!(code_book[&65], (0b0, 1)); assert...
rust_cleaned_test_functions.jsonl/125324
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 296 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 27421, 22391, 4136, 26421, 368, 341, 286, 1077, 17738, 284, 508, 21, 20, 11, 220, 21, 21, 11, 220, 21, 22, 11, 220, 21, 23, 11, 220, 21, 24, 11, 220, 22, 15, 935, 286, 1077, 2699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_iter_clone_partially_consumed_iterator() { // Test that the cloned iterator only contains the remaining elements of the original iterator. let mut iter = SmallVec::<[u8; 2]>::from_iter(0..3).into_iter().skip(1); let mut clone_iter = iter.clone(); while let So...
rust_cleaned_test_functions.jsonl/88168
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45514, 11723, 54742, 10495, 33475, 69870, 291, 13491, 368, 341, 286, 442, 3393, 429, 279, 54119, 15091, 1172, 5610, 279, 9664, 5424, 315, 279, 4024, 15091, 624, 286, 1077, 5206, 5367, 284, 14994, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_box_shadow_3() { assert_eq!( parse_style_box_shadow("5px 10px #888888"), Ok(BoxShadowPreDisplayItem { offset: [ PixelValueNoPercent(PixelValue::px(5.0)), PixelValueNoPercent(PixelValue::px(10.0)) ...
rust_cleaned_test_functions.jsonl/113992
{ "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, 21039, 10194, 53120, 62, 18, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 15117, 10194, 53120, 445, 20, 1767, 220, 16, 15, 1767, 671, 23, 23, 23, 23, 23, 23, 4461, 310, 7622, 67758, 23667, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sol_usdc_latest() { pool_actions::run_test( "RDM.SOL-USDC", vec![utils::Swap { protocol: "RDM", from_token: "SOL", to_token: "USDC", amount: 0.10000001, }], vec![], true, ); }
rust_cleaned_test_functions.jsonl/120681
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15709, 53668, 11306, 7628, 64880, 368, 341, 262, 7314, 25368, 486, 6108, 4452, 1006, 286, 330, 49, 8395, 808, 1930, 32340, 5626, 756, 286, 7486, 20703, 6031, 486, 46179, 341, 310, 11507, 25, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_null_count() { let mut bit_v: [u8; 2] = [0; 2]; bit_util::set_bit(&mut bit_v, 0); bit_util::set_bit(&mut bit_v, 3); bit_util::set_bit(&mut bit_v, 10); let arr_data = ArrayData::builder(DataType::Int32) .len(16) .null_bit_buffer(Buff...
rust_cleaned_test_functions.jsonl/96161
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 455 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15162, 3180, 368, 341, 286, 1077, 5206, 2699, 2273, 25, 508, 84, 23, 26, 220, 17, 60, 284, 508, 15, 26, 220, 17, 935, 286, 2699, 18974, 486, 746, 13996, 2099, 6984, 2699, 2273, 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
#[test] fn test_output_types_tracking_hash_different_paths() { let mut v1 = Options::default(); let mut v2 = Options::default(); let mut v3 = Options::default(); v1.output_types = OutputTypes::new(&[(OutputType::Exe, Some(PathBuf::from("./some/thing")))]); v2.output_types = OutputTypes::new...
rust_cleaned_test_functions.jsonl/16047
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 347 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7645, 9763, 66105, 8950, 82741, 24152, 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, 14566,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rename_dim_unlimited_size() { const DIM_NAME_1: &str = "dim_1"; const DIM_NAME_2: &str = "dim_2"; const DIM_SIZE: usize = 10; let mut data_set = DataSet::new(); assert_eq!(0, data_set.num_dims()); assert_eq!(false, data_set.has_unlimited_dim()); assert_eq!(f...
rust_cleaned_test_functions.jsonl/40510
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1249 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79399, 10791, 4907, 18235, 2368, 368, 341, 262, 733, 50859, 4708, 62, 16, 25, 609, 495, 284, 330, 12927, 62, 16, 876, 262, 733, 50859, 4708, 62, 17, 25, 609, 495, 284, 330, 12927, 62, 17, 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_lists_coerce_to_tuples() { Python::with_gil(|py| { let v = vec!["foo", "bar"]; let ob = v.to_object(py); let seq = ob.cast_as::<PySequence>(py).unwrap(); assert!(seq.tuple().is_ok()); }); }
rust_cleaned_test_functions.jsonl/70331
{ "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, 37288, 11393, 25641, 2346, 89269, 368, 341, 286, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 310, 1077, 348, 284, 7486, 0, 1183, 7975, 497, 330, 2257, 6332, 310, 1077, 1508, 284, 348, 238...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_proc_macro() { #[derive(Copy, Clone, NoCopy)] #[repr(C)] #[nocopy_macro(name = "TestBufferThing")] pub struct Test { test: u8, } let mut tb = TestBufferThing::new_buffer([0]); tb.set_test(5); assert_eq!(tb.as_buffer(), ...
rust_cleaned_test_functions.jsonl/84740
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 498 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24436, 58810, 368, 341, 286, 11506, 27098, 3025, 1266, 11, 27913, 11, 2308, 12106, 5563, 286, 11506, 30837, 3025, 5563, 286, 11506, 47991, 1266, 58810, 3153, 284, 330, 2271, 4095, 52940, 5422, 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_dirichlet() { let d = Dirichlet::new(vec![1.0, 2.0, 3.0]); let mut rng = crate::test::rng(221); let samples = d.sample(&mut rng); let _: Vec<f64> = samples .into_iter() .map(|x| { assert!(x > 0.0); x ...
rust_cleaned_test_functions.jsonl/36365
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 221 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4334, 713, 1149, 368, 341, 286, 1077, 294, 284, 30094, 713, 1149, 486, 931, 25592, 20703, 16, 13, 15, 11, 220, 17, 13, 15, 11, 220, 18, 13, 15, 2558, 286, 1077, 5206, 28422, 284, 17717, 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_is_ntp_synced() { let s = r#"b true"#; assert_eq!(parse_ntp_synced(s), Some(time::Synced::Synced)); }
rust_cleaned_test_functions.jsonl/14474
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 38945, 79, 23008, 291, 368, 341, 286, 1077, 274, 284, 435, 55543, 65, 830, 57676, 401, 286, 2060, 10714, 10297, 6400, 38945, 79, 23008, 291, 1141, 701, 4329, 9730, 486, 12154, 291, 486, 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
#[test] fn test_equal_hashes_cfg_features() { let f = TestFixture::new(); assert_eq!( hash_key( &f, &ovec![ "--emit", "link", "--cfg", "feature=a", "foo...
rust_cleaned_test_functions.jsonl/80644
{ "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, 11478, 91616, 18343, 14965, 368, 341, 286, 1077, 282, 284, 3393, 18930, 486, 931, 543, 286, 2060, 10714, 33673, 310, 5175, 3097, 1006, 394, 609, 69, 345, 394, 609, 994, 66, 90515, 503, 14482, 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_fix_crawler_found() { let fetcher = MockFetcher(|_, _| { vec![Submission { id: 50, ..Default::default() }] }); let crawler = FixCrawler::new(MockDB, fetcher, CURRENT_TIME); assert!(block_on(crawler.crawl()).i...
rust_cleaned_test_functions.jsonl/74645
{ "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, 36060, 666, 33369, 21480, 368, 341, 286, 1077, 7807, 261, 284, 14563, 97492, 22428, 6878, 85137, 341, 310, 7486, 20703, 86621, 341, 394, 877, 25, 220, 20, 15, 345, 394, 5241, 3675, 486, 2258, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cast_as_real() { let mut ctx = EvalContext::new(Arc::new(EvalConfig::new(0, FLAG_IGNORE_TRUNCATE).unwrap())); let t = Time::parse_utc_datetime("2012-12-12 12:00:23", 0).unwrap(); #[cfg_attr(feature = "cargo-clippy", allow(inconsistent_digit_grouping))] let int_t =...
rust_cleaned_test_functions.jsonl/6426
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2985 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 11898, 15266, 368, 341, 286, 1077, 5206, 5635, 284, 58239, 1972, 486, 931, 4346, 1287, 486, 931, 10722, 831, 2648, 486, 931, 7, 15, 11, 30379, 49974, 94642, 2336, 568, 15454, 7392, 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...
2
#[test] fn test_intersection_with_num_partitions() { let sc = CONTEXT.clone(); let col1 = vec![1, 2, 3, 4, 5, 10, 12, 13, 19, 0]; let col2 = vec![3, 4, 5, 6, 7, 8, 11, 13]; let first = sc.parallelize(col1, 2); let second = sc.parallelize(col2, 4); let mut res = first .intersec...
rust_cleaned_test_functions.jsonl/27952
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 231 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82558, 6615, 4273, 99097, 368, 341, 262, 1077, 1136, 284, 87336, 15997, 1428, 262, 1077, 1375, 16, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 16, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_init() { let settings = testutils::user_settings(); let temp_dir = tempfile::tempdir().unwrap(); let git_repo_dir = temp_dir.path().join("git"); let jj_repo_dir = temp_dir.path().join("jj"); let git_repo = git2::Repository::init_bare(&git_repo_dir).unwrap(); let initial_g...
rust_cleaned_test_functions.jsonl/96063
{ "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, 6137, 368, 341, 262, 1077, 5003, 284, 1273, 6031, 486, 872, 10853, 543, 262, 1077, 2730, 4334, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 262, 1077, 16345, 37784, 4334, 284, 2730, 4334, 3875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bank_hash_consistency() { solana_logger::setup(); let mut genesis_config = GenesisConfig::new( &[( Pubkey::new(&[42; 32]), AccountSharedData::new(1_000_000_000_000, 0, &system_program::id()), )], &[], );...
rust_cleaned_test_functions.jsonl/31338
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1022 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35733, 8950, 31971, 47094, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 5206, 59366, 5332, 284, 40788, 2648, 486, 931, 1006, 310, 44590, 1006, 394, 22611, 792, 486, 931, 2099, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_update_completed_data_indexes_out_of_order() { let mut completed_data_indexes = BTreeSet::default(); let mut shred_index = ShredIndex::default(); shred_index.insert(4); assert!( update_completed_data_indexes(false, 4, &shred_index, &mut completed_data...
rust_cleaned_test_functions.jsonl/11733
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 778 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 49068, 1769, 50161, 6068, 3575, 7869, 368, 341, 286, 1077, 5206, 8145, 1769, 50161, 284, 425, 6533, 1649, 486, 2258, 543, 286, 1077, 5206, 97762, 3560, 284, 1417, 1151, 1552, 486, 2258, 1428...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reflect() { aeqiws!( format!("{:?}", Rgba::<u8>::reflect()), r#" Item(Item { visibility: Private, module: "reflect", name: "Rgba", kind: Struct(Struct { fields: [ ...
rust_cleaned_test_functions.jsonl/60287
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1727 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7793, 767, 368, 341, 262, 264, 11006, 72, 8915, 33673, 286, 3561, 88928, 25, 52652, 431, 56380, 27638, 84, 23, 6831, 34913, 14702, 286, 435, 2, 698, 310, 5739, 29771, 341, 394, 23160, 25, 9679, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_password() { remove_var("ORC_ORTHANC_PASSWORD"); assert_eq!(get_password(Some("foo")).unwrap(), "foo".to_string()); assert_eq!(get_password(None), None); set_var("ORC_ORTHANC_PASSWORD", "bar"); assert_eq!(get_password(Some("foo")).unwrap(), "foo".to_st...
rust_cleaned_test_functions.jsonl/76508
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 10122, 368, 341, 286, 4057, 4612, 445, 868, 34, 62, 35941, 26175, 23059, 797, 286, 2060, 10714, 10297, 455, 10122, 65405, 445, 7975, 15197, 15454, 1507, 330, 7975, 3263, 983, 3904, 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...
1
#[test] fn test_lseek() { const CONTENTS: &'static [u8] = b"abcdef123456"; let mut tmp = tempfile().unwrap(); tmp.write(CONTENTS).unwrap(); let offset: off_t = 5; lseek(tmp.as_raw_fd(), offset, Whence::SeekSet).unwrap(); let mut buf = String::new(); tmp.read_to_string(&mut buf).unw...
rust_cleaned_test_functions.jsonl/4507
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 180 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 25713, 368, 341, 262, 733, 35768, 50, 25, 30136, 1978, 508, 84, 23, 60, 284, 293, 1, 41202, 16, 17, 18, 19, 20, 21, 876, 262, 1077, 5206, 4174, 284, 54819, 1005, 15454, 543, 262, 4174, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_drain_drops() { let key = AtomicUsize::new(0); let value = AtomicUsize::new(0); let mut hm = { let mut hm = HashMap::new(); assert_eq!(key.load(Ordering::Relaxed), 0); assert_eq!(value.load(Ordering::Relaxed), 0); for i i...
rust_cleaned_test_functions.jsonl/45211
{ "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, 26680, 466, 814, 3702, 368, 341, 286, 1077, 1376, 284, 30316, 52, 2141, 486, 931, 7, 15, 317, 286, 1077, 897, 284, 30316, 52, 2141, 486, 931, 7, 15, 626, 286, 1077, 5206, 49362, 284, 341, 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...
2
#[test] fn test_gt_dyn_utf8_scalar() { let array = StringArray::from(vec!["abc", "def", "xyz"]); let a_eq = gt_dyn_utf8_scalar(&array, "def").unwrap(); assert_eq!( a_eq, BooleanArray::from(vec![Some(false), Some(false), Some(true)]) ); }
rust_cleaned_test_functions.jsonl/98240
{ "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, 37479, 69213, 39453, 23, 41652, 368, 341, 286, 1077, 1334, 284, 923, 1857, 486, 1499, 25592, 0, 1183, 13683, 497, 330, 750, 497, 330, 28854, 15049, 286, 1077, 264, 10714, 284, 25161, 69213, 39453,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tabs_trailing_slash() { new_ucmd!() .arg("--tabs=1,/5") .pipe_in("\ta\tb\tc") .succeeds() .stdout_is(" a b c"); }
rust_cleaned_test_functions.jsonl/121799
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57953, 3547, 14277, 11886, 988, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 21549, 30993, 28, 16, 87682, 20, 1138, 286, 659, 13768, 1243, 4921, 2565, 4955, 65, 4955, 66, 1138, 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
#[test] fn test_old_value_put_delete_lock_insert() { let engine = crate::storage::TestEngineBuilder::new().build().unwrap(); let start_ts = old_value_put_delete_lock_insert(&engine, b"k1"); let txn_props = TransactionProperties { start_ts, kind: TransactionKind::O...
rust_cleaned_test_functions.jsonl/49611
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 606 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21108, 3142, 15557, 11353, 9818, 17678, 368, 341, 286, 1077, 4712, 284, 17717, 486, 16172, 486, 2271, 4571, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 1191, 25023, 284, 2310, 3142, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_actix_web() { let mut srv = test::TestServer::new(|app| app.handler(|_| HelloTemplate { name: "world" })); let request = srv.get().finish().unwrap(); let response = srv.execute(request.send()).unwrap(); assert!(response.status().is_success()); assert_eq!(response.headers().g...
rust_cleaned_test_functions.jsonl/112977
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29370, 941, 25960, 368, 341, 262, 1077, 5206, 43578, 284, 1273, 486, 2271, 5475, 486, 931, 22428, 676, 91, 906, 31171, 22428, 35395, 21927, 7275, 314, 829, 25, 330, 14615, 1, 27126, 262, 1077, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_attach() { let str_pool : Pool<String> = Pool::with_size(1); { assert_eq!(1, str_pool.size()); let string: String = str_pool.new().detach(); assert_eq!(0, str_pool.size()); let _rstring: Recycled<String> = str_pool.attach(string); } assert_...
rust_cleaned_test_functions.jsonl/121198
{ "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, 40719, 368, 341, 414, 1077, 607, 15709, 549, 22728, 3464, 29, 284, 22728, 486, 4197, 2368, 7, 16, 317, 414, 341, 286, 2060, 10714, 10297, 16, 11, 607, 15709, 2486, 1423, 286, 1077, 914, 25, 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_set_mgmkey() { let mut yubikey = YUBIKEY.lock().unwrap(); assert!(yubikey.verify_pin(b"123456").is_ok()); assert!(MgmKey::get_protected(&mut yubikey).is_err()); assert!(yubikey.authenticate(MgmKey::default()).is_ok()); // Set a protected management key. assert!(MgmKey::...
rust_cleaned_test_functions.jsonl/33335
{ "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, 2602, 717, 26186, 792, 368, 341, 262, 1077, 5206, 379, 54233, 792, 284, 809, 4493, 40, 4784, 21003, 1005, 15454, 1428, 262, 2060, 10297, 88, 54233, 792, 27520, 26296, 1883, 1, 16, 17, 18, 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_intersects_middle() { let e1 = SimpleEdge::new(Point2::new(0f32, 0f32), Point2::new(5f32, 5f32)); let e2 = SimpleEdge::new(Point2::new(-1.5, 1.), Point2::new(1.0, -1.5)); let e3 = SimpleEdge::new(Point2::new(0.5, 4.), Point2::new(0.5, -4.)); assert!(!e1.intersects...
rust_cleaned_test_functions.jsonl/80234
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 376 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15318, 54429, 62580, 368, 341, 286, 1077, 384, 16, 284, 8993, 11656, 486, 931, 32737, 17, 486, 931, 7, 15, 69, 18, 17, 11, 220, 15, 69, 18, 17, 701, 5126, 17, 486, 931, 7, 20, 69, 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_check_path() { setup(); assert_eq!(check_path("../foo"), Err(PathMustBeAbsolute)); assert_eq!(check_path("/foo"), Err(PathMustStartWithPrefix)); assert_eq!(check_path("/tmp/nexus-fixer/bar"), Err(FileNotFound)); assert!(touch(Path::new("/tmp/nexus-fixer/ba...
rust_cleaned_test_functions.jsonl/26858
{ "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, 7200, 2638, 368, 341, 286, 6505, 543, 286, 2060, 10714, 10297, 2028, 2638, 17409, 7975, 3975, 15495, 33030, 31776, 3430, 27331, 1106, 286, 2060, 10714, 10297, 2028, 2638, 4283, 7975, 3975, 15495, 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_session_variables() { let client = DefaultClient::new_with_adapter(); let result = block_on(async { let mut vars = HashMap::new(); vars.insert("ident".to_owned(), "hidden".to_owned()); let mut session = client .authenticate_device("somenewdeviceid", N...
rust_cleaned_test_functions.jsonl/94544
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12316, 28182, 368, 341, 262, 1077, 2943, 284, 7899, 2959, 486, 931, 6615, 43682, 1428, 262, 1077, 1102, 284, 2504, 4470, 18285, 341, 286, 1077, 5206, 19942, 284, 10528, 486, 931, 543, 286, 19942, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_callq_reg() { assert_emit!(0xff, 0xd0; emit_callq_reg(RAX)); assert_emit!(0x41, 0xff, 0xd7; emit_callq_reg(R15)); }
rust_cleaned_test_functions.jsonl/85460
{ "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, 13429, 80, 4920, 368, 341, 286, 2060, 69082, 10297, 15, 9020, 11, 220, 15, 9703, 15, 26, 16691, 13429, 80, 4920, 2785, 2954, 1106, 286, 2060, 69082, 10297, 15, 87, 19, 16, 11, 220, 15, 9020, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_tuple_ignoring_additional_fields() { let url_params = create_url_params(vec![ ("a", "abc"), ("b", "true"), ("c", "1"), ("d", "false"), ]); assert_eq!( <(&str, bool, u32)>::deserialize(PathDeserializer::new(...
rust_cleaned_test_functions.jsonl/16603
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 21773, 62, 622, 5503, 81742, 12132, 368, 341, 286, 1077, 2515, 6745, 284, 1855, 2903, 6745, 25592, 90515, 310, 3489, 64, 497, 330, 13683, 4461, 310, 3489, 65, 497, 330, 1866, 4461, 310, 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_primitive_array_neq() { cmp_i64!( neq, vec![8, 8, 8, 8, 8, 8, 8, 8, 8, 8], vec![6, 7, 8, 9, 10, 6, 7, 8, 9, 10], vec![true, true, false, true, true, true, true, false, true, true] ); }
rust_cleaned_test_functions.jsonl/36016
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 13925, 80, 368, 341, 286, 26089, 5318, 21, 19, 33673, 310, 834, 80, 345, 310, 7486, 20703, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23, 11, 220, 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_i2c_mock_write_err() { let expectations = [Transaction::write(0xaa, vec![1, 2])]; let mut i2c = Mock::new(&expectations); i2c.write(0xaa, &vec![1, 3]).unwrap(); i2c.done(); }
rust_cleaned_test_functions.jsonl/49255
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 124 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5318, 17, 66, 34134, 9165, 9266, 368, 341, 286, 1077, 16665, 284, 508, 8070, 486, 4934, 7, 15, 43300, 11, 7486, 20703, 16, 11, 220, 17, 2467, 935, 286, 1077, 5206, 600, 17, 66, 284, 14563, 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_empty() { let mut map = LruCache::with_capacity(0); map.insert(2, 4); assert_eq!(map.get(&2), Some(&4)); map.insert(3, 5); assert_eq!(map.get(&3), Some(&5)); assert_eq!(map.get(&2), None); map.resize(1); map.insert(2, 4); a...
rust_cleaned_test_functions.jsonl/54767
{ "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, 15124, 368, 341, 286, 1077, 5206, 2415, 284, 444, 2672, 8233, 486, 4197, 35603, 7, 15, 317, 286, 2415, 7030, 7, 17, 11, 220, 19, 317, 286, 2060, 10714, 10297, 2186, 670, 2099, 17, 701, 4329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_smhd() { let src_box = SmhdBox { version: 0, flags: 0, balance: FixedPointI8::new_raw(-1), }; let mut buf = Vec::new(); src_box.write_box(&mut buf).unwrap(); assert_eq!(buf.len(), src_box.box_size() as usize); l...
rust_cleaned_test_functions.jsonl/90435
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 315 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15874, 15990, 368, 341, 286, 1077, 2286, 10194, 284, 4388, 15990, 1611, 341, 310, 2319, 25, 220, 15, 345, 310, 8042, 25, 220, 15, 345, 310, 8172, 25, 20149, 2609, 40, 23, 486, 931, 16067, 4080...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extract_filename_from_uri_works() { let assert_extracted = |input: &'static str, expected_output: Option<&'static str>| { let uri = input.parse::<Uri>().unwrap(); assert_eq!(extract_filename_from_uri(&uri), expected_output); }; assert_extracted("/...
rust_cleaned_test_functions.jsonl/13555
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 246 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 13323, 5673, 15572, 11498, 82, 368, 341, 286, 1077, 2060, 39123, 291, 284, 760, 1355, 25, 30136, 1978, 607, 11, 3601, 7645, 25, 6959, 52244, 6, 1978, 607, 69844, 341, 310, 1077, 13071, 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_parse_operating_two_n_packet() { let root = Packet::from_str(&"11101110000000001101010000001100100000100011000001100000").unwrap(); println!("{:?}", root); }
rust_cleaned_test_functions.jsonl/75409
{ "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, 25634, 1095, 23241, 1089, 21078, 368, 341, 286, 1077, 3704, 4035, 310, 28889, 486, 1499, 2895, 2099, 1, 16, 16, 16, 15, 16, 16, 16, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pow() { fn naive_pow<T: One + Mul<T, T>>(base: T, exp: uint) -> T { range(0, exp).fold(one::<T>(), |acc, _| acc * base) } macro_rules! assert_pow( (($num:expr, $exp:expr) => $expected:expr) => {{ let result = pow($num, $exp); ...
rust_cleaned_test_functions.jsonl/23672
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 478 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56183, 368, 341, 286, 5168, 49665, 56183, 3125, 25, 3776, 488, 29351, 3125, 11, 350, 25526, 3152, 25, 350, 11, 1343, 25, 2622, 8, 1464, 350, 341, 310, 2088, 7, 15, 11, 1343, 568, 19961, 51067,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_small_bitv_tests() { let v = Bitv::from_bytes(&[0]); assert!(!v.all()); assert!(!v.any()); assert!(v.none()); let v = Bitv::from_bytes(&[0b00010100]); assert!(!v.all()); assert!(v.any()); assert!(!v.none()); let v = Bitv::...
rust_cleaned_test_functions.jsonl/119295
{ "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, 31966, 13996, 85, 32509, 368, 341, 286, 1077, 348, 284, 6495, 85, 486, 1499, 12524, 2099, 58, 15, 2558, 286, 2060, 0, 3471, 85, 7670, 1423, 286, 2060, 0, 3471, 85, 29315, 1423, 286, 2060, 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_symlink_interactive() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; let file = "test_symlink_interactive_file"; let link = "test_symlink_interactive_file_link"; at.touch(file); at.touch(link); scene .ucmd() .args(&["-i", "-...
rust_cleaned_test_functions.jsonl/4884
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 369 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58530, 44243, 15318, 3028, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785, 18513, 280, 262, 1077, 1034, 284, 330, 1944, 58530, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_len() { let input = "Message send failed to remote host: foo.bar.com".to_string(); let rec = Record::new(input); assert_eq!(rec.len(), 7); }
rust_cleaned_test_functions.jsonl/104493
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14192, 6043, 368, 341, 286, 1077, 1946, 284, 330, 2052, 3624, 4641, 311, 8699, 3468, 25, 15229, 22001, 905, 3263, 983, 3904, 543, 286, 1077, 1395, 284, 13583, 486, 931, 5384, 317, 286, 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
#[test] fn test_and_reg_reg() { assert_emit!(0x44, 0x21, 0xf8; emit_and_reg_reg(0, R15, RAX)); assert_emit!(0x21, 0xc8; emit_and_reg_reg(0, RCX, RAX)); assert_emit!(0x41, 0x21, 0xc7; emit_and_reg_reg(0, RAX, R15)); }
rust_cleaned_test_functions.jsonl/85453
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8378, 4920, 4920, 368, 341, 286, 2060, 69082, 10297, 15, 87, 19, 19, 11, 220, 15, 87, 17, 16, 11, 220, 15, 5848, 23, 26, 16691, 8378, 4920, 4920, 7, 15, 11, 431, 16, 20, 11, 431, 2954, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_simple() { let elem: Element = "<request xmlns='urn:xmpp:receipts'/>".parse().unwrap(); Request::try_from(elem).unwrap(); let elem: Element = "<received xmlns='urn:xmpp:receipts' id='coucou'/>" .parse() .unwrap(); Received::try_from(elem)....
rust_cleaned_test_functions.jsonl/69303
{ "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, 30015, 368, 341, 286, 1077, 11750, 25, 8543, 284, 4055, 2035, 24967, 1131, 399, 35254, 93368, 25, 62623, 82, 87315, 3263, 6400, 1005, 15454, 543, 286, 6145, 486, 1539, 5673, 28880, 568, 15454, 142...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_date() { let datetime = Datetime(blpapi_Datetime_t { parts: BLPAPI_DATETIME_DATE_PART as u8, hours: 0, minutes: 0, seconds: 0, milliSeconds: 0, month: 1, day: 1, ...
rust_cleaned_test_functions.jsonl/117269
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 733 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4164, 368, 341, 310, 1077, 8874, 284, 21631, 4107, 1883, 13545, 2068, 1557, 27662, 528, 341, 394, 5479, 25, 425, 12567, 7082, 36347, 44618, 18500, 28278, 438, 575, 23, 345, 394, 4115, 25, 220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dereference_link_broken_link() { let dir = tempdir(); let link = dir.path().join("link"); fs::symlink("target", &link).unwrap(); cmd() .arg("-l") .arg("--dereference") .arg("--ignore-config") .arg(&link) .assert() .stderr(predicate...
rust_cleaned_test_functions.jsonl/72412
{ "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, 814, 485, 2202, 7233, 880, 81709, 7233, 368, 341, 262, 1077, 5419, 284, 2730, 3741, 543, 262, 1077, 2656, 284, 5419, 3875, 1005, 5987, 445, 2080, 797, 262, 8619, 486, 22860, 44243, 445, 5657, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_asi_suppressed() { // The specification says ASI does not happen in the production // EmptyStatement : `;`. assert_syntax_error("{ for (;;) }"); assert_syntax_error("for ( \n ; ) {}"); assert_syntax_error("for ( ; \n ) {}"); assert_syntax_error("for ( \n \n ) {...
rust_cleaned_test_functions.jsonl/7960
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 327 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 10215, 23723, 14318, 368, 341, 262, 442, 576, 25128, 2727, 5752, 40, 1558, 537, 3537, 304, 279, 5670, 198, 262, 442, 22228, 8636, 549, 1565, 26, 18639, 1066, 262, 2060, 78894, 4096, 13976, 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_array_field1() { let mut fb = FooBar(0); fb.set_foo5(0, 1); assert_eq!(0x1, fb.0); assert_eq!(1, fb.foo5(0)); fb.set_foo5(0, 0); assert_eq!(0x0, fb.0); assert_eq!(0, fb.foo5(0)); fb.set_foo5(0, 1); fb.set_foo5(6, 1); fb.set_foo5(31, 1); assert_eq!(0...
rust_cleaned_test_functions.jsonl/2265
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 5013, 16, 368, 341, 262, 1077, 5206, 25469, 284, 33428, 3428, 7, 15, 626, 262, 25469, 980, 761, 2624, 20, 7, 15, 11, 220, 16, 317, 262, 2060, 10714, 10297, 15, 87, 16, 11, 25469, 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_bit_vec_truncate() { let mut s = BitVec::from_elem(5 * U32_BITS, true); assert_eq!(s, BitVec::from_elem(5 * U32_BITS, true)); assert_eq!(s.len(), 5 * U32_BITS); s.truncate(4 * U32_BITS); assert_eq!(s, BitVec::from_elem(4 * U32_BITS, true)); assert...
rust_cleaned_test_functions.jsonl/62100
{ "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, 13996, 13251, 3547, 26900, 368, 341, 286, 1077, 5206, 274, 284, 6495, 10050, 486, 1499, 28179, 7, 20, 353, 547, 18, 17, 32695, 11, 830, 626, 286, 2060, 10714, 10297, 82, 11, 6495, 10050, 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_validate_account_doesnt_exist() { let (config, key) = config_builder::test_config(); let (vm_validator, mut rt) = TestValidator::new(&config); let address = account_config::association_address(); let random_account_addr = account_address::AccountAddress::random(); let progra...
rust_cleaned_test_functions.jsonl/2304
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 13500, 96374, 406, 35906, 368, 341, 262, 1077, 320, 1676, 11, 1376, 8, 284, 2193, 28532, 486, 1944, 5332, 543, 262, 1077, 320, 7338, 64959, 11, 5206, 16677, 8, 284, 3393, 14256, 486, 931,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prewrite_skip_constraint_check() { inner_test_prewrite_skip_constraint_check(0, FORWARD_MIN_MUTATIONS_NUM + 1); inner_test_prewrite_skip_constraint_check(5, FORWARD_MIN_MUTATIONS_NUM + 1); inner_test_prewrite_skip_constraint_check( FORWARD_MIN_MUTATIONS_NUM as...
rust_cleaned_test_functions.jsonl/12381
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 52473, 44830, 46973, 7200, 368, 341, 286, 9179, 4452, 620, 52473, 44830, 46973, 7200, 7, 15, 11, 90079, 11820, 52403, 21792, 9631, 488, 220, 16, 317, 286, 9179, 4452, 620, 52473, 44830, 46973...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_event_handler() { let mut event_manager = EventManager::new().unwrap(); let mut block = default_block(); let mem = default_mem(); let vq = VirtQueue::new(GuestAddress(0), &mem, 16); set_queue(&mut block, 0, vq.create_queue()); initialize_virtqueue(...
rust_cleaned_test_functions.jsonl/64395
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1009 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6748, 10183, 368, 341, 286, 1077, 5206, 1538, 12144, 284, 3665, 2043, 486, 931, 1005, 15454, 543, 286, 1077, 5206, 2504, 284, 1638, 7113, 543, 286, 1077, 1833, 284, 1638, 12976, 543, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_become_header() { let container = [0u8; constants::MIN_ORDER_SIZE]; let mut block = get_reserved(&container); assert!(block.become_header().is_ok()); assert_eq!(block.block_type(), BlockType::Header); assert_eq!(block.index(), 0); assert_eq!(block....
rust_cleaned_test_functions.jsonl/100148
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 449 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 51421, 8757, 368, 341, 286, 1077, 5476, 284, 508, 15, 84, 23, 26, 18021, 486, 16413, 26677, 4098, 935, 286, 1077, 5206, 2504, 284, 633, 74913, 2099, 3586, 317, 286, 2060, 10297, 4574, 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, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sort_func_disc_number() { assert_eq!( MusicMetadata::sort_func( &Some(MusicMetadata { album: "".to_string(), artist: "".to_string(), disk_number: Some(1), title: "".to_string(), ...
rust_cleaned_test_functions.jsonl/77633
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1738 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 9596, 37745, 5500, 368, 341, 286, 2060, 10714, 33673, 310, 10717, 14610, 486, 6860, 9596, 1006, 394, 609, 8373, 3189, 11524, 14610, 341, 503, 8017, 25, 44907, 983, 3904, 3148, 503, 10049, 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_fmt() { assert_eq!(Tag::MinMappingQuality.to_string(), "AM"); assert_eq!(Tag::AlignmentScore.to_string(), "AS"); assert_eq!(Tag::SampleBarcodeSequence.to_string(), "BC"); assert_eq!(Tag::BaseAlignmentQualityOffsets.to_string(), "BQ"); assert_eq!(Tag::Origi...
rust_cleaned_test_functions.jsonl/113581
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1696 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38128, 368, 341, 286, 2060, 10714, 10297, 5668, 486, 6217, 6807, 33074, 2389, 3904, 1507, 330, 1402, 797, 286, 2060, 10714, 10297, 5668, 486, 7033, 10570, 2389, 3904, 1507, 330, 1911, 797, 286, 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_create_datetime_zulu_from_str_fail() { assert!(Value::datetime_zulu_from_str("q2012", "01", "03", "03", "30", "30").is_err()); }
rust_cleaned_test_functions.jsonl/86224
{ "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, 8657, 28943, 6415, 24411, 5673, 2895, 22121, 368, 341, 262, 2060, 10297, 1130, 486, 15450, 6415, 24411, 5673, 2895, 445, 80, 17, 15, 16, 17, 497, 330, 15, 16, 497, 330, 15, 18, 497, 330, 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
#[test] fn test_retain_weak() { let retained_weak_a; { struct A { x: Cc<RefCell<Option<A>>>, } struct WeakA { _x: Weak<RefCell<Option<A>>>, } impl A { fn downgrade(this: &Self) -> WeakA { ...
rust_cleaned_test_functions.jsonl/110857
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 679 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21695, 466, 86356, 368, 341, 286, 1077, 34263, 86356, 4306, 280, 286, 341, 310, 2036, 362, 341, 394, 856, 25, 356, 66, 27, 3945, 3599, 94150, 30192, 2452, 12520, 310, 456, 310, 2036, 41164, 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_unsigned_signed_conversion() { use super::ParseAmountError as E; let sa = SignedAmount::from_sat; let ua = Amount::from_sat; assert_eq!(Amount::max_value().to_signed(), Err(E::TooBig)); assert_eq!(ua(i64::max_value() as u64).to_signed(), Ok(sa(i64::max_...
rust_cleaned_test_functions.jsonl/129580
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 470 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 67830, 55617, 64132, 368, 341, 286, 990, 2256, 486, 14463, 10093, 1454, 438, 468, 280, 286, 1077, 822, 284, 52453, 10093, 486, 1499, 51303, 280, 286, 1077, 45559, 284, 25783, 486, 1499, 51303, 401...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_closure_while_true_closure() { assert_eq!( eval_ok( "let x = 1. { x < 10 } whileTrue: { x = x * 2 }" ) .integer(), 16 ); }
rust_cleaned_test_functions.jsonl/15569
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 72823, 86069, 16082, 72823, 368, 341, 262, 2060, 10714, 33673, 286, 5603, 19817, 1006, 310, 330, 1149, 856, 284, 220, 16, 624, 1797, 314, 856, 366, 220, 16, 15, 335, 1393, 2514, 25, 341, 2290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_adapt_operation() { // Invalid input { let dinf = fake_device_info_vht(ChanWidthSet::TWENTY_FORTY); let ucfg = RadioConfig { phy: None, cbw: Some(Cbw::Cbw20), primary_chan: Some(1) }; let got = adapt_operation(&dinf, &ucfg); assert!...
rust_cleaned_test_functions.jsonl/96403
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2644 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10027, 2689, 32565, 368, 341, 286, 442, 13882, 1946, 198, 286, 341, 310, 1077, 11623, 69, 284, 12418, 9204, 3109, 2273, 426, 7, 46019, 3327, 1649, 486, 47069, 1825, 56, 1400, 2868, 56, 317, 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_conversions() { assert_eq!( "abcd".as_utf8_to_biguint(), 1633837924.to_biguint().unwrap() ); assert_eq!( "61626364".as_hex_to_biguint(), 1633837924.to_biguint().unwrap() ); assert_eq!( &1633837924...
rust_cleaned_test_functions.jsonl/67148
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 315 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3382, 28290, 368, 341, 286, 2060, 10714, 33673, 310, 330, 68644, 3263, 300, 39453, 23, 2346, 36386, 2496, 3148, 310, 220, 16, 21, 18, 18, 23, 18, 22, 24, 17, 19, 2389, 36386, 2496, 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_reference_vector_l3_he_32khz() { let test_vector = include_bytes!("../vectors/l3-he_32khz.bit"); test_vs_minimp3(test_vector); }
rust_cleaned_test_functions.jsonl/69839
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 75 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25433, 12247, 907, 18, 41876, 62, 18, 17, 30664, 89, 368, 341, 262, 1077, 1273, 12247, 284, 2924, 12524, 17223, 1244, 85, 10605, 13328, 18, 37335, 62, 18, 17, 30664, 89, 30099, 797, 262, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_combinator_to_toml_string() { for case in CASES.iter() { let toml_str = toml::to_string(&case.combinator); assert_eq!(toml_str, case.combinator.to_toml_string()); } }
rust_cleaned_test_functions.jsonl/534
{ "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, 34454, 17272, 2346, 528, 316, 75, 3904, 368, 341, 286, 369, 1142, 304, 38319, 50, 19471, 368, 341, 310, 1077, 311, 1014, 2895, 284, 311, 1014, 486, 983, 3904, 2099, 5638, 905, 6863, 850, 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...
5
#[test] fn test_valid_env() { let env = valid_env("a=b=c"); assert_eq!(Some(("a", "b=c")), env); let env = valid_env("a=b"); assert_eq!(Some(("a", "b")), env); let env = valid_env("a =b"); assert_eq!(Some(("a", "b")), env); let env = valid_env(" a =b"); ...
rust_cleaned_test_functions.jsonl/27555
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 662 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8337, 15879, 368, 341, 286, 1077, 6105, 284, 2697, 15879, 445, 64, 22086, 19535, 797, 286, 2060, 10714, 10297, 8373, 30873, 64, 497, 330, 65, 19535, 35674, 6105, 626, 286, 1077, 6105, 284, 2697, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_login_is_successful_with_valid_credentials() { run_test!(|client, conn, _jwt| { let user = gen_user(&conn); let body = json!({ "email": user.email, "password": "password123", }).to_string(); let mut response = client .post...
rust_cleaned_test_functions.jsonl/33923
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 264 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13681, 6892, 92951, 6615, 8337, 47396, 368, 341, 262, 1598, 4452, 10297, 91, 2972, 11, 4534, 11, 716, 41592, 91, 341, 286, 1077, 1196, 284, 4081, 3317, 2099, 5148, 626, 286, 1077, 2487, 284, 295...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_formatted_zero() { let cf1 = CoordinateFormat::new(6, 6); let cf2 = CoordinateFormat::new(2, 4); let a = CoordinateNumber { nano: 0 }.gerber(&cf1).unwrap(); let b = CoordinateNumber { nano: 0 }.gerber(&cf2).unwrap(); assert_eq!(a, "0".to_string()); ...
rust_cleaned_test_functions.jsonl/16452
{ "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, 86610, 19359, 368, 341, 286, 1077, 24111, 16, 284, 41035, 4061, 486, 931, 7, 21, 11, 220, 21, 317, 286, 1077, 24111, 17, 284, 41035, 4061, 486, 931, 7, 17, 11, 220, 19, 626, 286, 1077, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_truncated_svd() { let a = arr2(&[[3., 2., 2.], [2., 3., -2.]]); let res = TruncatedSvd::new(a, Order::Largest) .precision(1e-5) .maxiter(10) .decompose(2) .unwrap(); let (_, sigma, _) = res.values_vectors(); close...
rust_cleaned_test_functions.jsonl/132847
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 217 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 38007, 643, 16598, 368, 341, 286, 1077, 264, 284, 2890, 17, 2099, 15505, 18, 2572, 220, 17, 2572, 220, 17, 13, 1125, 508, 17, 2572, 220, 18, 2572, 481, 17, 13, 5053, 626, 286, 1077, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_errors() { assert_eq!(error("\rfoo"), Err(ParseErrorKind::InvalidChar('\r'))); assert_eq!(error(":"), Err(ParseErrorKind::InvalidToken)); assert_eq!(error("-0x1"), Err(ParseErrorKind::InvalidLiteral)); assert_eq!(error("0o78"), Err(ParseErrorKind::InvalidLiteral)...
rust_cleaned_test_functions.jsonl/92857
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 612 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20196, 368, 341, 286, 2060, 10714, 10297, 841, 4921, 81, 7975, 3975, 15495, 71812, 1454, 10629, 486, 7928, 4768, 11024, 81, 43284, 286, 2060, 10714, 10297, 841, 445, 2974, 701, 15495, 71812, 1454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_no_inline_catch_alias_var2() { test_same(concat!( "try {", "} catch (e) {", " var y; y = e;", " g();", " y;y;", "}", )); }
rust_cleaned_test_functions.jsonl/27704
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 41871, 666, 754, 35947, 4612, 17, 368, 341, 262, 1273, 33574, 96360, 33673, 286, 330, 1539, 314, 756, 286, 80548, 2287, 320, 68, 8, 314, 756, 286, 330, 220, 762, 379, 26, 379, 284, 384, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_put_aligned_roundtrip() { test_put_aligned_rand_numbers::<u8>(4, 3); test_put_aligned_rand_numbers::<u8>(16, 5); test_put_aligned_rand_numbers::<i16>(32, 7); test_put_aligned_rand_numbers::<i16>(32, 9); test_put_aligned_rand_numbers::<i32>(32, 11); ...
rust_cleaned_test_functions.jsonl/115743
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 243 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15557, 66385, 29896, 32981, 368, 341, 286, 1273, 15557, 66385, 33864, 32964, 27638, 84, 23, 2235, 19, 11, 220, 18, 317, 286, 1273, 15557, 66385, 33864, 32964, 27638, 84, 23, 2235, 16, 21, 11, 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_encode_jpeg_frame() { let mut encoder = Encoder::default(); encoder.basic_info.xsize = 800; encoder.basic_info.ysize = 533; encoder.basic_info.alpha_bits = 0; // TODO: this must be implied let frame = JpegFrame { data: &get_sample_jpeg()[..], }; let encoded =...
rust_cleaned_test_functions.jsonl/115354
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 5374, 10311, 8929, 368, 341, 262, 1077, 5206, 23668, 284, 55115, 486, 2258, 543, 262, 23668, 33257, 3109, 1993, 2141, 284, 220, 23, 15, 15, 280, 262, 23668, 33257, 3109, 13, 69359, 284, 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_select_1() { let expected = expected_values("SELECT ?", vec![1]); let query = Select::default().value(1); let (sql, params) = Sqlite::build(query); assert_eq!(expected.0, sql); assert_eq!(expected.1, params); }
rust_cleaned_test_functions.jsonl/80597
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13051, 62, 16, 368, 341, 286, 1077, 3601, 284, 3601, 9146, 445, 4858, 42313, 7486, 20703, 16, 10149, 286, 1077, 3239, 284, 8427, 486, 2258, 1005, 957, 7, 16, 317, 286, 1077, 320, 3544, 11, 362...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_greater_than() { assert_eq!(greater_than(&json!(2), &json!(1)), true); assert_eq!(greater_than(&json!(2), &json!(2)), false); assert_eq!(greater_than(&json!(2), &json!(3)), false); }
rust_cleaned_test_functions.jsonl/15404
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 97994, 51613, 368, 341, 286, 2060, 10714, 10297, 65235, 51613, 2099, 2236, 10297, 17, 701, 609, 2236, 10297, 16, 5731, 830, 317, 286, 2060, 10714, 10297, 65235, 51613, 2099, 2236, 10297, 17, 701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_str() -> Result<(), Error> { let kp = SampiKeyPair::new(); let s = kp .new_sampi() .build(vec![SampiData::Bytes(vec![1, 2, 3])])?; let base64 = s.to_base64(); let hex = s.to_hex(); assert_eq!( Sampi::from_str(&base64)?.data(), Sampi::from...
rust_cleaned_test_functions.jsonl/67867
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2895, 368, 1464, 5714, 68843, 4600, 29, 341, 262, 1077, 60319, 284, 90174, 72, 1592, 12443, 486, 931, 543, 262, 1077, 274, 284, 60319, 198, 286, 659, 931, 643, 1121, 72, 741, 286, 659, 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...
4
#[test] fn test_signature_der_lax() { macro_rules! check_lax_sig { ($hex:expr) => ({ let sig = hex!($hex); assert!(Signature::parse_der_lax(&sig[..]).is_ok()); }); } check_lax_sig!("304402204c2dd8a9b6f8d425fcd8ee9a20ac73b619906a6367eac6cb93e70375225ec01602203...
rust_cleaned_test_functions.jsonl/129809
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 792 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39859, 35345, 907, 706, 368, 341, 262, 18072, 21407, 0, 1779, 907, 706, 29252, 341, 286, 1711, 17308, 96011, 8, 589, 13861, 310, 1077, 8366, 284, 12371, 0, 699, 17308, 317, 310, 2060, 10297, 250...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_integer_underflow() { let resp_object = Response::Integer(-2); let res = u64::try_from(resp_object); assert!(res.is_err()); }
rust_cleaned_test_functions.jsonl/78676
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31725, 58228, 4965, 368, 341, 286, 1077, 9039, 5314, 284, 5949, 486, 3486, 4080, 17, 317, 286, 1077, 592, 284, 575, 21, 19, 486, 1539, 5673, 20267, 5314, 317, 286, 2060, 10297, 416, 2079, 9266, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_list_attempted_messages_query_params_validation() { let q: ListAttemptedMessagesQueryParameters = serde_json::from_value(json!({ "channel": INVALID_CHANNEL })).unwrap(); assert!(q.validate().is_err()); let q: ListAttemptedMessagesQueryParameters = ...
rust_cleaned_test_functions.jsonl/64491
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2019, 85951, 291, 23428, 5738, 6745, 19416, 368, 341, 286, 1077, 2804, 25, 1759, 47052, 291, 15820, 2859, 9706, 4035, 310, 61570, 9455, 486, 1499, 3142, 9304, 0, 2306, 330, 10119, 788, 32269, 2368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lazy_is_null() { let df = get_df(); let new = df .clone() .lazy() .filter(col("sepal.width").is_null()) .collect() .unwrap(); assert_eq!(new.height(), 0); let new = df .clone() ....
rust_cleaned_test_functions.jsonl/14656
{ "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, 49646, 6892, 15162, 368, 341, 286, 1077, 6764, 284, 633, 10894, 543, 286, 1077, 501, 284, 6764, 198, 310, 659, 19982, 741, 310, 659, 49013, 741, 310, 659, 5315, 19611, 445, 325, 19308, 5441, 182...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_point_times_zero_equals_zero() { let p = Point1::new(1_f32); assert_eq!(p * 0_f32, Point1::new(0_f32)); }
rust_cleaned_test_functions.jsonl/4526
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6085, 22353, 19359, 61664, 19359, 368, 341, 286, 1077, 281, 284, 5126, 16, 486, 931, 7, 16, 761, 18, 17, 626, 286, 2060, 10714, 10297, 79, 353, 220, 15, 761, 18, 17, 11, 5126, 16, 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
#[test] fn test_blend_colors() { assert_eq!( blend_colors( &BLACK, &WHITE, 0.5 ), Rgb([128, 128, 128]) ); assert_eq!( blend_colors( &BLACK, &WHITE, 1.0 ), WHITE ); assert...
rust_cleaned_test_functions.jsonl/42570
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 869 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88520, 33670, 368, 341, 262, 2060, 10714, 33673, 286, 20334, 33670, 1006, 310, 609, 62849, 345, 310, 609, 56999, 345, 310, 220, 15, 13, 20, 198, 286, 2837, 286, 431, 9511, 2561, 16, 17, 23, 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_vcx_update_institution_info() { settings::set_defaults(); let new_name = "new_name"; let new_url = "http://www.evernym.com"; assert_ne!(new_name, &settings::get_config_value(::settings::CONFIG_INSTITUTION_NAME).unwrap()); assert_ne!(new_url, &settings::get...
rust_cleaned_test_functions.jsonl/19814
{ "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, 2273, 25844, 8882, 1243, 10446, 3109, 368, 341, 286, 5003, 486, 746, 42290, 543, 286, 1077, 501, 1269, 284, 330, 931, 1269, 876, 286, 1077, 501, 2903, 284, 330, 1254, 1110, 2136, 1734, 423, 4812...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_direct_set() { let ns = ""; let results = Namespace::parse(ns).unwrap(); let expected: Vec<Namespace> = Vec::new(); assert_eq!(expected, results); }
rust_cleaned_test_functions.jsonl/93990
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32871, 2602, 368, 341, 286, 1077, 12268, 284, 5438, 286, 1077, 3059, 284, 41962, 486, 6400, 39417, 568, 15454, 543, 286, 1077, 3601, 25, 11312, 27, 22699, 29, 284, 11312, 486, 931, 543, 286, 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
#[test] fn test_count_reads_handles_empty_fastq() { let library = test_library(); let lookup = Count::build_lookup(&library, false); let prefixes = PrefixInfo { lengths: vec![0, 1, 2] }; let tempdir = TempDir::new().unwrap(); let fastq = write_fastq(&[], tempdir.path().jo...
rust_cleaned_test_functions.jsonl/72866
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 286 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3180, 66628, 68017, 15124, 35743, 80, 368, 341, 286, 1077, 6733, 284, 1273, 39461, 543, 286, 1077, 18615, 284, 4504, 486, 5834, 27464, 2099, 18065, 11, 895, 317, 286, 1077, 62576, 284, 56483, 1731...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_accountsdb_add_root_many() { let db = AccountsDb::new(Vec::new(), &ClusterType::Development); let mut pubkeys: Vec<Pubkey> = vec![]; create_account(&db, &mut pubkeys, 0, 100, 0, 0); for _ in 1..100 { let idx = thread_rng().gen_range(0, 99); ...
rust_cleaned_test_functions.jsonl/1338
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 811 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55665, 1999, 2891, 12993, 22101, 368, 341, 286, 1077, 2927, 284, 40655, 7994, 486, 931, 49923, 486, 931, 1507, 609, 28678, 929, 486, 39419, 626, 286, 1077, 5206, 6675, 10563, 25, 11312, 21604, 392...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_authorize_url_with_scopes() { let client = new_client() .add_scope(Scope::new("read".to_string())) .add_scope(Scope::new("write".to_string())); let (url, _) = client.authorize_url(|| CsrfToken::new("csrf_token".to_string())); assert_eq!( Url::parse( ...
rust_cleaned_test_functions.jsonl/12763
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22938, 551, 2903, 6615, 13171, 18523, 368, 341, 262, 1077, 2943, 284, 501, 8179, 741, 286, 659, 718, 23199, 3759, 2417, 486, 931, 445, 878, 3263, 983, 3904, 12145, 286, 659, 718, 23199, 3759, 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...
2
#[test] fn test_is_short_field() { let name = "Alice Validator"; assert_eq!(is_short_field(name.to_string()), Ok(())); let long_name = "Alice 7cLvFwLCbyHuXQ1RGzhCMobAWYPMSZ3VbUml1qWi1nkc3FD7zj9hzTZzMvYJt6rY9"; assert!(is_short_field(long_name.to_string()).is_err()); }
rust_cleaned_test_functions.jsonl/12692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 16673, 5013, 368, 341, 286, 1077, 829, 284, 330, 61686, 32566, 876, 286, 2060, 10714, 10297, 285, 16673, 5013, 3153, 2389, 3904, 11858, 7622, 5065, 1106, 286, 1077, 1293, 1269, 284, 330, 616...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1