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_parse_err_not_found() { let mut reader = Reader::from_str("-"); let mut context = ParserContext::default(); let error = Expression::parse(&mut reader, &mut context).expect_err("The parser must not succeed"); assert_not_found(&context, &error, 0); ...
rust_cleaned_test_functions.jsonl/72319
{ "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, 21039, 9266, 7913, 21480, 368, 341, 286, 1077, 5206, 6604, 284, 25166, 486, 1499, 2895, 94538, 286, 1077, 5206, 2266, 284, 21102, 1972, 486, 2258, 543, 286, 1077, 1465, 4035, 310, 16378, 486, 6400...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_padding1_exact() { let data = hex::decode("0102030405060708").unwrap(); assert_eq!(hex::encode(apply_padding(&PaddingType::Type1, &data)), "0102030405060708"); }
rust_cleaned_test_functions.jsonl/23717
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40726, 16, 71084, 368, 341, 286, 1077, 821, 284, 12371, 486, 18196, 445, 15, 16, 15, 17, 15, 18, 15, 19, 15, 20, 15, 21, 15, 22, 15, 23, 1827, 15454, 543, 286, 2060, 10714, 10297, 17308, 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_negation() { let mut rng = OsRng; let a = Fp6 { c0: Fp::one(), c1: Fp::new(2), c2: Fp::new(3), c3: Fp::new(4), c4: Fp::new(5), c5: Fp::new(6), }; let b = Fp6 { c0: -Fp::one(), ...
rust_cleaned_test_functions.jsonl/132388
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 465 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28209, 367, 368, 341, 286, 1077, 5206, 28422, 284, 15433, 49, 968, 401, 286, 1077, 264, 284, 434, 79, 21, 341, 310, 272, 15, 25, 434, 79, 486, 603, 3148, 310, 272, 16, 25, 434, 79, 486, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_radiance() { let r1 = Radiance::RADIANCE1; assert_eq!(r1, Radiance(1.0, 1.0, 1.0)); let r2 = Radiance(1.0, 0.8, 0.6); assert_eq!(r1 + r2, Radiance(2.0, 1.8, 1.6)); assert_eq!((r1 - r2).near(&Radiance(0.0, 0.2, 0.4)), true); assert_eq!(r2.norm(), 1.0 + 0.8 + 0.6); asse...
rust_cleaned_test_functions.jsonl/44803
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 433 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 97479, 681, 368, 341, 262, 1077, 435, 16, 284, 34869, 681, 486, 49, 33785, 8440, 16, 280, 262, 2060, 10714, 10297, 81, 16, 11, 34869, 681, 7, 16, 13, 15, 11, 220, 16, 13, 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_backup_purging() { ic_test_utilities::artifact_pool_config::with_test_pool_config(|pool_config| { let time_source = FastForwardTimeSource::new(); let backup_dir = tempfile::Builder::new().tempdir().unwrap(); let subnet_id = subnet_test_id(0); ...
rust_cleaned_test_functions.jsonl/2919
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3346 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44710, 620, 324, 3173, 368, 341, 286, 17902, 4452, 94044, 486, 63722, 15709, 5332, 486, 4197, 4452, 15709, 5332, 22428, 10285, 5332, 91, 341, 310, 1077, 882, 10347, 284, 17288, 25925, 1462, 3608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_purge_survives_reboot() { run_persistent_pool_test("test_purge_survives_reboot", |mut config, log| { // set a small purge interval config.persistent_pool_validated_purge_interval = Height::from(8); // create a pool and purge at height 10 { ...
rust_cleaned_test_functions.jsonl/24998
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 852 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 39823, 49946, 85, 1886, 1288, 4619, 368, 341, 286, 1598, 620, 13931, 15709, 4452, 445, 1944, 620, 39823, 49946, 85, 1886, 1288, 4619, 497, 760, 6984, 2193, 11, 1487, 91, 341, 310, 442, 738,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_slash() { let (mut sender, receiver) = UnixStream::pair().unwrap(); let mut connection = HttpConnection::new(receiver); sender .write_all(http_request("GET", "none", Some("body")).as_bytes()) .unwrap(); assert!(connection.try_read()...
rust_cleaned_test_functions.jsonl/106563
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40447, 11886, 988, 368, 341, 286, 1077, 320, 6984, 4646, 11, 13964, 8, 284, 46995, 3027, 486, 12670, 1005, 15454, 543, 286, 1077, 5206, 3633, 284, 4823, 4526, 486, 931, 78126, 317, 286, 4646, 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_secondary_pow_scale() { let window = DIFFICULTY_ADJUST_WINDOW; let mut hi = HeaderInfo::from_diff_scaling(Difficulty::from_num(10), 100); // difficulty block hi.is_secondary = false; assert_eq!( secondary_pow_scaling(1, &(0..window).map(|_| hi.clone()).collect::<Vec<_>>()), 147 ); ...
rust_cleaned_test_functions.jsonl/127677
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 772 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77759, 56183, 16727, 368, 341, 10217, 3241, 284, 68549, 1317, 3532, 56, 22510, 48002, 24780, 280, 10217, 5206, 15588, 284, 12104, 1731, 486, 1499, 15850, 79216, 5432, 3092, 25990, 486, 1499, 4273, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_free() { let container = [0u8; constants::MIN_ORDER_SIZE]; let block = Block::new_free(&container[..], 0, 1, 1).unwrap(); assert!(block.set_free_next_index(3).is_ok()); assert_eq!(block.free_next_index().unwrap(), 3); assert_eq!(container[..8], [0x01, 0x03...
rust_cleaned_test_functions.jsonl/100152
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 348 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8905, 368, 341, 286, 1077, 5476, 284, 508, 15, 84, 23, 26, 18021, 486, 16413, 26677, 4098, 935, 286, 1077, 2504, 284, 8362, 486, 931, 8905, 2099, 3586, 95874, 1125, 220, 15, 11, 220, 16, 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_wal_txs_codec() { for _ in 0..10 { let mut txs = BatchSignedTxs(mock_wal_txs(100)); assert_eq!( BatchSignedTxs::decode_msg(txs.encode_msg().unwrap()).unwrap(), txs ); } }
rust_cleaned_test_functions.jsonl/54388
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 177 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1670, 278, 17805, 82, 51084, 368, 341, 286, 369, 716, 304, 220, 15, 496, 16, 15, 341, 310, 1077, 5206, 9854, 82, 284, 33904, 49312, 51, 18561, 30389, 1670, 278, 17805, 82, 7, 16, 15, 15, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_create_fast() { let cmd = ChanCmd::CREATE_FAST; assert_eq!(Into::<u8>::into(cmd), 5_u8); let body = "0DC2A5EB921EF4B71F41184A99F4FAD99620A648"; let handshake = hex::decode(body).unwrap(); fbody(cmd, body, &msg::CreateFast::new(handshake.clone()).into()); let create_fast ...
rust_cleaned_test_functions.jsonl/6031
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 35743, 368, 341, 262, 1077, 5439, 284, 41302, 15613, 486, 22599, 58225, 280, 262, 2060, 10714, 10297, 26591, 27638, 84, 23, 6831, 18122, 14160, 701, 220, 20, 7300, 23, 317, 262, 1077, 2487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_plus_one() { assert_eq!(Solution::plus_one(vec![1, 2, 3]), vec![1, 2, 4]); assert_eq!(Solution::plus_one(vec![4, 3, 2, 1]), vec![4, 3, 2, 2]); assert_eq!(Solution::plus_one(vec![0]), vec![1]); assert_eq!(Solution::plus_one(vec![9, 9]), vec![1, 0, 0]); }
rust_cleaned_test_functions.jsonl/96336
{ "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, 28043, 11667, 368, 341, 286, 2060, 10714, 10297, 36842, 486, 7138, 11667, 25592, 20703, 16, 11, 220, 17, 11, 220, 18, 9719, 7486, 20703, 16, 11, 220, 17, 11, 220, 19, 2558, 286, 2060, 10714, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_debug_info_next_sibling_with_ptr() { let encoding = Encoding { format: Format::Dwarf32, version: 4, address_size: 4, }; let header_size = CompilationUnitHeader::<EndianSlice<LittleEndian>, _>::size_of_header(encoding); ...
rust_cleaned_test_functions.jsonl/102070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 708 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15446, 3109, 11257, 96328, 6615, 4348, 368, 341, 286, 1077, 11170, 284, 29330, 341, 310, 3561, 25, 15042, 486, 35, 32634, 18, 17, 345, 310, 2319, 25, 220, 19, 345, 310, 2621, 2368, 25, 220, 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_construct_departure_time() { assert_eq!( NaiveDateTime::from_timestamp(1534284000, 0), DepartureTime::new(1534284000).unwrap().0 ); }
rust_cleaned_test_functions.jsonl/75484
{ "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, 64803, 69865, 552, 3009, 368, 341, 286, 2060, 10714, 33673, 310, 12812, 533, 7689, 486, 1499, 23073, 7, 16, 20, 18, 19, 17, 23, 19, 15, 15, 15, 11, 220, 15, 1326, 310, 39755, 552, 1462, 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_as_u8_serde_equiv() { for protocol in ProtocolId::all() { let protocol_as_u8_repr = *protocol as u8; let protocol_bcs_repr = bcs::to_bytes(protocol).unwrap(); assert_eq!(protocol_bcs_repr, vec![protocol_as_u8_repr]); assert_eq!( bcs::from_bytes::<P...
rust_cleaned_test_functions.jsonl/5277
{ "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, 11898, 7300, 23, 75861, 450, 71849, 368, 341, 262, 369, 11507, 304, 24572, 764, 486, 541, 368, 341, 286, 1077, 11507, 11898, 7300, 23, 68535, 284, 353, 17014, 438, 575, 23, 280, 286, 1077, 11507...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fish_next_day() { let mut fish = Fish::new(0); let mut fish2 = Fish::new(1); let spawned = fish.next_day(); let spawned2 = fish2.next_day(); assert_eq!(fish.timer, 6); assert_eq!(spawned, Some(Fish { timer: 8 })); assert_eq!(fish2.timer, 0)...
rust_cleaned_test_functions.jsonl/12093
{ "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, 761, 812, 11257, 16763, 368, 341, 286, 1077, 5206, 7640, 284, 16608, 486, 931, 7, 15, 317, 286, 1077, 5206, 7640, 17, 284, 16608, 486, 931, 7, 16, 317, 286, 1077, 52534, 284, 7640, 4529, 16763...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_response() { let result = serde_json::from_str::<Response>( json!( { "errors": [ { "message": "Name for character with ID 1002 could not be fetched.", "locations": [{ "line": 6, "column": 7 }], ...
rust_cleaned_test_functions.jsonl/101353
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1912 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9655, 368, 341, 286, 1077, 1102, 284, 61570, 9455, 486, 1499, 2895, 27638, 2582, 17055, 310, 2951, 33673, 310, 341, 1060, 330, 7650, 788, 2278, 394, 341, 1698, 330, 1994, 788, 330, 675, 369, 366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_implicit() { #[cfg(feature = "const-generics")] assert_parses::<Implicit<bool, 2>>(&[ (Ok(Implicit::new(true)), b"\x82\x01\xff"), (Ok(Implicit::new(false)), b"\x82\x01\x00"), ( Err(ParseError::new(ParseErrorKind::Unexpecte...
rust_cleaned_test_functions.jsonl/40845
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1602 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 62, 30940, 368, 341, 286, 11506, 14072, 27062, 284, 330, 1024, 2371, 798, 1211, 5422, 286, 2060, 77113, 288, 27638, 59558, 17028, 11, 220, 17, 2452, 2099, 9640, 310, 320, 11578, 8972, 1307,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_term() { let mut req = RaftCmdRequest::default(); req.mut_header().set_term(7); check_term(&req, 7).unwrap(); check_term(&req, 8).unwrap(); // leadership may have been changed away. check_term(&req, 9).unwrap_err(); check_ter...
rust_cleaned_test_functions.jsonl/6859
{ "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, 7200, 17464, 368, 341, 286, 1077, 5206, 4232, 284, 18482, 723, 15613, 1900, 486, 2258, 543, 286, 4232, 744, 332, 8757, 1005, 746, 17464, 7, 22, 317, 286, 1779, 17464, 2099, 2958, 11, 220, 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_chars_decoding() { let mut bytes = [0u8, ..4]; for c in range(0u32, 0x110000).filter_map(|c| ::core::char::from_u32(c)) { let len = c.encode_utf8(bytes).unwrap_or(0); let s = ::core::str::from_utf8(bytes.slice_to(len)).unwrap(); if Some(c) != s...
rust_cleaned_test_functions.jsonl/56842
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 241 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37418, 13783, 3700, 368, 341, 286, 1077, 5206, 5820, 284, 508, 15, 84, 23, 11, 5241, 19, 935, 286, 369, 272, 304, 2088, 7, 15, 84, 18, 17, 11, 220, 15, 87, 16, 16, 15, 15, 15, 15, 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_concat_string_arrays() -> Result<()> { let arr = concat(&[ &StringArray::from(vec!["hello", "world"]), &StringArray::from(vec!["2", "3", "4"]), &StringArray::from(vec![Some("foo"), Some("bar"), None, Some("baz")]), ])?; let expected_ou...
rust_cleaned_test_functions.jsonl/25088
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 366 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57478, 3904, 68983, 368, 1464, 5714, 71698, 341, 286, 1077, 2890, 284, 33720, 2099, 9640, 310, 609, 703, 1857, 486, 1499, 25592, 0, 1183, 14990, 497, 330, 14615, 46442, 310, 609, 703, 1857, 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...
2
#[test] fn test_merge_error() { let mut hll: HyperLogLogPlus<u64, PassThroughHasherBuilder> = HyperLogLogPlus::new(16, PassThroughHasherBuilder {}).unwrap(); let other: HyperLogLogPlus<u64, PassThroughHasherBuilder> = HyperLogLogPlus::new(12, PassThroughHasherBuilder {})....
rust_cleaned_test_functions.jsonl/8351
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 4096, 368, 341, 286, 1077, 5206, 305, 654, 25, 32732, 2201, 2201, 21807, 34837, 21, 19, 11, 9970, 23857, 6370, 261, 3297, 29, 4035, 310, 32732, 2201, 2201, 21807, 486, 931, 7, 16, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_192_data_192_kek() { test_wrap_unwrap( "000102030405060708090A0B0C0D0E0F1011121314151617", "00112233445566778899AABBCCDDEEFF0001020304050607", "031D33264E15D33268F24EC260743EDCE1C6C7DDEE725A936BA814915C6762D2", ); }
rust_cleaned_test_functions.jsonl/16541
{ "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, 62, 16, 24, 17, 1769, 62, 16, 24, 17, 45476, 74, 368, 341, 286, 1273, 38550, 4907, 10097, 1006, 310, 330, 15, 15, 15, 16, 15, 17, 15, 18, 15, 19, 15, 20, 15, 21, 15, 22, 15, 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_new() { // It should not work if we don't close it. let mut the_loop = Loop3D::new(); let l = 2. as Float; the_loop.push(Point3D::new(-l, -l, 0.)).unwrap(); the_loop.push(Point3D::new(l, -l, 0.)).unwrap(); the_loop.push(Point3D::new(l, l, 0.)).unwr...
rust_cleaned_test_functions.jsonl/69088
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 491 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 368, 341, 286, 442, 1084, 1265, 537, 975, 421, 582, 1513, 944, 3265, 432, 624, 286, 1077, 5206, 279, 17198, 284, 21359, 18, 35, 486, 931, 543, 286, 1077, 326, 284, 220, 17, 13, 438, 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_with_vars_same_vars() { let override_not_set = env::var("OVERRIDE"); assert!(override_not_set.is_err(), "`OVERRIDE` must not be set."); crate::with_vars( vec![ ("OVERRIDE", Some("initial")), ("OVERRIDE", Some("override")), ...
rust_cleaned_test_functions.jsonl/49889
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 448 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 11168, 33574, 11168, 368, 341, 286, 1077, 2812, 7913, 2602, 284, 6105, 486, 947, 445, 46, 38001, 797, 286, 2060, 10297, 9199, 7913, 2602, 2079, 9266, 1507, 35973, 46, 38001, 63, 1969, 537, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_assembler_case_correctness_instructions() { // Instructions and registers are case insensitive test_case(&["Set a, [B]"], &[0x2401]); test_case(&["set a, [b]"], &[0x2401]); test_case(&["set a, pop"], &[0x6001]); }
rust_cleaned_test_functions.jsonl/44773
{ "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, 11898, 35401, 19096, 31550, 2090, 82427, 368, 341, 262, 442, 38297, 323, 24740, 525, 1142, 70480, 198, 262, 1273, 19096, 2099, 1183, 1649, 264, 11, 508, 33, 60, 7914, 44590, 15, 87, 17, 19, 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_bootstrap_empty_storage_with_first_three_blocks() { init_test_runtime(); // init empty context for test let (chain_id, genesis_block_header, ..) = init_test_protocol_context("bootstrap_test_storage_01"); // apply first block - level 1 let apply_block_result = client...
rust_cleaned_test_functions.jsonl/21209
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1449 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88424, 15124, 23310, 6615, 12978, 50016, 25201, 368, 341, 262, 2930, 4452, 33232, 1428, 262, 442, 2930, 4287, 2266, 369, 1273, 198, 262, 1077, 320, 8819, 842, 11, 59366, 7113, 8757, 11, 5241, 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_write_byte_array_len_encoding() -> io::Result<()> { let mut buf = Vec::new(); let len_encoding = Encoding::External(13); let value_encoding = Encoding::External(21); write_byte_array_len_encoding(&mut buf, &len_encoding, &value_encoding)?; let expected ...
rust_cleaned_test_functions.jsonl/34015
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 332 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 19737, 3858, 6043, 37613, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 5206, 6607, 284, 11312, 486, 931, 1428, 286, 1077, 2422, 37613, 284, 29330, 486, 25913, 7, 16, 18, 317, 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_get_filtered_indexed_accounts() { let (genesis_config, _mint_keypair) = create_genesis_config(500); let mut account_indexes = AccountSecondaryIndexes::default(); account_indexes.indexes.insert(AccountIndex::ProgramId); let bank = Arc::new(Bank::new_with_config( ...
rust_cleaned_test_functions.jsonl/2606
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 51429, 3560, 291, 55665, 368, 341, 286, 1077, 320, 77894, 5332, 11, 716, 67791, 3097, 12670, 8, 284, 1855, 16322, 13774, 5332, 7, 20, 15, 15, 317, 286, 1077, 5206, 2692, 50161, 284, 8615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iterator_product_option() { let v: &[Option<i32>] = &[Some(1), Some(2), Some(3), Some(4)]; assert_eq!(v.iter().cloned().product::<Option<i32>>(), Some(24)); let v: &[Option<i32>] = &[Some(1), None, Some(3), Some(4)]; assert_eq!(v.iter().cloned().product::<Option<i32>>(), None); }
rust_cleaned_test_functions.jsonl/70197
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 9840, 9672, 368, 341, 262, 1077, 348, 25, 44590, 5341, 21897, 18, 17, 53529, 284, 44590, 8373, 7, 16, 701, 4329, 7, 17, 701, 4329, 7, 18, 701, 4329, 7, 19, 12587, 262, 2060, 10714, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid_escape_sentence() { let parsed_data = parse(r##"foo: "\t\h\i\\i""##).unwrap(); assert_eq!( parsed_data, object! { foo: "\t\\h\\i\\i" } ); }
rust_cleaned_test_functions.jsonl/11165
{ "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, 31433, 21832, 48332, 368, 341, 262, 1077, 15676, 1769, 284, 4715, 2601, 565, 1, 7975, 25, 2917, 83, 59, 71, 59, 72, 3422, 72, 3014, 565, 568, 15454, 543, 262, 2060, 10714, 33673, 286, 15676, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reserve_additional() { let mut v = Vec::new(); assert_eq!(v.capacity(), 0); v.reserve_additional(2); assert!(v.capacity() >= 2); for i in range(0, 16) { v.push(i); } assert!(v.capacity() >= 16); v.reserve_additional(1...
rust_cleaned_test_functions.jsonl/58447
{ "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, 89591, 81742, 368, 341, 286, 1077, 5206, 348, 284, 11312, 486, 931, 543, 286, 2060, 10714, 10297, 85, 59168, 1507, 220, 15, 626, 286, 348, 48520, 81742, 7, 17, 317, 286, 2060, 10297, 85, 59168, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_byte_add_with_carries() { fn run(lhs: u8, rhs: u8) -> (bool, bool) { Byte::new(lhs).add_with_carries(Byte::new(rhs)) } assert_eq!(run(0x00, 0x00), (false, false)); assert_eq!(run(0x00, 0xff), (false, false)); assert_eq!(run(0xff, 0xff), (true,...
rust_cleaned_test_functions.jsonl/126279
{ "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, 19737, 2891, 6615, 26616, 4019, 368, 341, 286, 5168, 1598, 57535, 25, 575, 23, 11, 12916, 25, 575, 23, 8, 1464, 320, 2641, 11, 1807, 8, 341, 310, 10906, 486, 931, 57535, 568, 718, 6615, 26616,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eh_frame_hdr_omit_count() { let section = Section::with_endian(Endian::Little) .L8(1) .L8(0x0b) .L8(0xff) .L8(0x0b) .L32(0x12345); let section = section.get_contents().unwrap(); let bases = BaseAddresses::default...
rust_cleaned_test_functions.jsonl/9374
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 307 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 71, 8929, 28238, 62, 77968, 3180, 368, 341, 286, 1077, 3772, 284, 11113, 486, 4197, 87193, 7, 43231, 486, 38103, 340, 310, 659, 43, 23, 7, 16, 340, 310, 659, 43, 23, 7, 15, 87, 15, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_guest_memory_get_slice() { let start_addr1 = GuestAddress(0); let start_addr2 = GuestAddress(0x800); let guest_mem = GuestMemoryMmap::from_ranges(&[(start_addr1, 0x400), (start_addr2, 0x400)]).unwrap(); // Normal cases. let slice_size = 0x200;...
rust_cleaned_test_functions.jsonl/63931
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 531 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62739, 19195, 3062, 26488, 368, 341, 286, 1077, 1191, 7387, 16, 284, 26215, 4286, 7, 15, 317, 286, 1077, 1191, 7387, 17, 284, 26215, 4286, 7, 15, 87, 23, 15, 15, 317, 286, 1077, 8640, 12976, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_largest_combo_magnitude() { let input = "[[[0,[5,8]],[[1,7],[9,6]]],[[4,[1,2]],[[1,4],2]]] [[[5,[2,8]],4],[5,[[9,9],0]]] [6,[[[6,2],[5,6]],[[7,6],[4,7]]]] [[[6,[0,7]],[0,9]],[4,[9,[9,0]]]] [[[7,[6,4]],[3,[1,3]]],[[[5,5],1],9]] [...
rust_cleaned_test_functions.jsonl/51422
{ "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, 907, 32381, 54781, 717, 34715, 368, 341, 286, 1077, 1946, 284, 10545, 15505, 15, 17259, 20, 11, 23, 60, 14955, 58, 16, 11, 22, 14955, 24, 11, 21, 5053, 14955, 58, 19, 17259, 16, 11, 17, 60, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_detect_random_pad() { let res = detect_random_pad(16, &|b: &[u8]| fake_oracle(5, b)).expect("should find where attacker controlled bytes start"); assert_eq!(res.controlled_block, 1); assert_eq!(res.pad_bytes.len(), 11); let fake_encrypted_bytes = f...
rust_cleaned_test_functions.jsonl/122585
{ "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, 56457, 22644, 30290, 368, 341, 310, 1077, 592, 284, 11140, 22644, 30290, 7, 16, 21, 11, 609, 91, 65, 25, 44590, 84, 23, 29685, 12418, 8734, 7902, 7, 20, 11, 293, 4579, 17119, 445, 5445, 1477, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_problem_take_sapmles() { let samples = vec![ Sample::new("name 1", "5", "0"), Sample::new("name 2", "5", "0"), ]; let problem = Problem { id: "A".into(), name: "Problem A".into(), url_name: "test_contest_a".into(...
rust_cleaned_test_functions.jsonl/29177
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 625 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60139, 73261, 643, 391, 76, 642, 368, 341, 286, 1077, 10469, 284, 7486, 90515, 310, 19143, 486, 931, 445, 606, 220, 16, 497, 330, 20, 497, 330, 15, 4461, 310, 19143, 486, 931, 445, 606, 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...
2
#[test] fn test_agg_trades() { let text = BinanceSpotRestClient::fetch_agg_trades("BTCUSDT", None, None, None).unwrap(); assert!(text.starts_with("[{")); }
rust_cleaned_test_functions.jsonl/21556
{ "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, 83534, 3547, 3452, 368, 341, 262, 1077, 1467, 284, 425, 24387, 47049, 12416, 2959, 486, 9641, 83534, 3547, 3452, 445, 59118, 2034, 10599, 497, 2240, 11, 2240, 11, 2240, 568, 15454, 543, 262, 2060,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_try_from_get_version() { let (mut sender, receiver) = UnixStream::pair().unwrap(); let mut connection = HttpConnection::new(receiver); sender .write_all(http_request("GET", "/version", None).as_bytes()) .unwrap(); assert!(connection.try_rea...
rust_cleaned_test_functions.jsonl/106576
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 3062, 9438, 368, 341, 286, 1077, 320, 6984, 4646, 11, 13964, 8, 284, 46995, 3027, 486, 12670, 1005, 15454, 543, 286, 1077, 5206, 3633, 284, 4823, 4526, 486, 931, 78126, 317, 286, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_invalid_frame_missing_fcs() { let role = Role::Unassigned; let buf: &[u8] = &[ 0b00000011, 0b00101111, // Control Field - SABM command with P/F = 0. 0b00000000, // Length Field - Bit1 = 0 Indicates two octet length. 0b0000000...
rust_cleaned_test_functions.jsonl/87863
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 31433, 8929, 40447, 761, 4837, 368, 341, 286, 1077, 3476, 284, 15404, 486, 1806, 39021, 280, 286, 1077, 6607, 25, 44590, 84, 23, 60, 284, 609, 9640, 310, 220, 15, 65, 15, 15, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_metrics() { let (_mock_db, _runtime, url, _) = create_db_and_runtime(); let calls = vec![ ( "success single call", json!({"jsonrpc": "2.0", "method": "get_currencies", "params": [], "id": 1}), ), ( "success batch call", ...
rust_cleaned_test_functions.jsonl/46603
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 908 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37686, 368, 341, 262, 1077, 5453, 16712, 8685, 11, 716, 22255, 11, 2515, 11, 27439, 284, 1855, 8685, 8378, 33232, 543, 262, 1077, 6738, 284, 7486, 90515, 286, 2399, 310, 330, 5630, 3175, 1618, 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...
3
#[test] fn test_push_zeros_front() { let mut buffer = Buffer::allocate(5); buffer.push(1); buffer.push_zeros_front(2); assert_eq!(&buffer[..], [0, 0, 1]); }
rust_cleaned_test_functions.jsonl/87213
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 103 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14218, 83761, 22926, 368, 341, 286, 1077, 5206, 4147, 284, 10312, 486, 31191, 7, 20, 317, 286, 4147, 2552, 7, 16, 317, 286, 4147, 2552, 83761, 22926, 7, 17, 317, 286, 2060, 10714, 0, 2099, 757...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_xy() { let vec = vec3(0.0, 0.0, 1.0); let rot = Quaternion::from_axis_angle(vec3(1.0, 1.0, 0.0).normalize(), Deg(90.0)); assert_ulps_eq!( vec3(2.0f32.sqrt() / 2.0, -2.0f32.sqrt() / 2.0, 0.0), rot * vec ); }
rust_cleaned_test_functions.jsonl/38267
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40920, 368, 341, 286, 1077, 7486, 284, 7486, 18, 7, 15, 13, 15, 11, 220, 15, 13, 15, 11, 220, 16, 13, 15, 626, 286, 1077, 5749, 284, 24801, 486, 1499, 23567, 21727, 25592, 18, 7, 16, 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_ruleset_remove_rule() { let ruleset = Ruleset::new(); let add_rule = Rule::ThreadTag(0, Tag::new("key".to_string(), "value".to_string())); ruleset.add_rule(add_rule).unwrap(); assert_eq!(ruleset.rules.lock().unwrap().len(), 1); let remove_rule = Rule::ThreadTag(0, Tag::ne...
rust_cleaned_test_functions.jsonl/124448
{ "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, 21407, 295, 18193, 21124, 368, 341, 262, 1077, 5601, 295, 284, 22847, 295, 486, 931, 1428, 262, 1077, 912, 21124, 284, 18100, 486, 6855, 5668, 7, 15, 11, 12353, 486, 931, 445, 792, 3263, 983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_player1_win() { let mut board = Board::new(3); board.player_move(0, 0, Cell::PLAYER1); board.player_move(0, 1, Cell::PLAYER2); board.player_move(0, 2, Cell::PLAYER1); board.player_move(1, 0, Cell::PLAYER1); board.player_move(1, 1, Cell::PLAYER2); board.player_m...
rust_cleaned_test_functions.jsonl/84056
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 15524, 16, 25672, 368, 341, 262, 1077, 5206, 4479, 284, 8751, 486, 931, 7, 18, 626, 262, 4479, 12257, 17134, 7, 15, 11, 220, 15, 11, 13972, 486, 41478, 16, 317, 262, 4479, 12257, 17134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_var_unit_expr_not_applicable() { check_assist_not_applicable( extract_variable, r#" fn foo() { let mut i = 3; $0if i >= 0 { i += 1; } else { i -= 1; }$0 }"#, ); }
rust_cleaned_test_functions.jsonl/133793
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 4612, 14832, 21915, 7913, 8191, 46114, 368, 341, 286, 1779, 12083, 380, 7913, 8191, 46114, 1006, 310, 8649, 14635, 345, 310, 435, 2, 698, 8822, 15229, 368, 341, 262, 1077, 5206, 600, 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_virtio_fs_dax_on_cache_size_1_gib_w_virtiofsd_rs_daemon() { test_virtio_fs( true, Some(0x4000_0000), "none", &prepare_virtofsd_rs_daemon, false, ) }
rust_cleaned_test_functions.jsonl/29384
{ "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, 2273, 2106, 815, 34470, 814, 706, 4470, 11529, 2368, 62, 16, 1889, 579, 1670, 2273, 2106, 815, 3848, 67, 47115, 47070, 7291, 368, 341, 310, 1273, 2273, 2106, 815, 34470, 1006, 394, 830, 345, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_negative_shr() { assert_eq!(BigInt::from(-1) >> 1, BigInt::from(-1)); assert_eq!(BigInt::from(-2) >> 1, BigInt::from(-1)); assert_eq!(BigInt::from(-3) >> 1, BigInt::from(-2)); assert_eq!(BigInt::from(-3) >> 2, BigInt::from(-1)); }
rust_cleaned_test_functions.jsonl/56647
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53865, 3712, 81, 368, 341, 262, 2060, 10714, 10297, 87474, 486, 1499, 4080, 16, 8, 3578, 220, 16, 11, 62608, 486, 1499, 4080, 16, 1106, 262, 2060, 10714, 10297, 87474, 486, 1499, 4080, 17, 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_player_level_deltas() { let mut players = vec![ Player { id: PlayerID(0), name: "p1".into(), level: Number::Four, metalevel: 0, }, Player { id: PlayerID(1), ...
rust_cleaned_test_functions.jsonl/70894
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15524, 8274, 814, 71906, 368, 341, 286, 1077, 5206, 4217, 284, 7486, 90515, 310, 7312, 341, 394, 877, 25, 7312, 915, 7, 15, 1326, 394, 829, 25, 330, 79, 16, 3263, 18122, 3148, 394, 2188, 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...
6
#[test] fn test_decode_bfi_w() { assert_eq!( decode_32(0xf3630407), Instruction::BFI { params: BfiParams { rd: Reg::R4, rn: Reg::R3, lsbit: 0, width: 8, } } ); }
rust_cleaned_test_functions.jsonl/64828
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 880, 9983, 1670, 368, 341, 1066, 262, 2060, 10714, 33673, 286, 16895, 62, 18, 17, 7, 15, 5848, 18, 21, 18, 15, 19, 15, 22, 1326, 286, 29051, 486, 33, 19426, 341, 310, 3628, 25, 425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_name_and_invalid_age() { let p: Person = Person::from(",one"); assert_eq!(p.name, "John"); assert_eq!(p.age, 30); }
rust_cleaned_test_functions.jsonl/1617
{ "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, 40447, 1269, 8378, 31433, 32053, 368, 341, 286, 1077, 281, 25, 7357, 284, 7357, 486, 1499, 12918, 603, 797, 286, 2060, 10714, 10297, 79, 2644, 11, 330, 13079, 797, 286, 2060, 10714, 10297, 79, 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
#[test] fn test_serialize_field_as_camel_case() -> Result<(), Error> { combined_keys_gen!(sender_combined_key, receiver_combined_key); let shared_key = SharedKey::generate(); #[derive(PartialEq, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] struct Person { first...
rust_cleaned_test_functions.jsonl/31588
{ "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, 88686, 5013, 11898, 666, 35562, 19096, 368, 1464, 5714, 68843, 4600, 29, 341, 262, 10856, 12631, 16322, 10297, 11644, 89945, 3097, 11, 13964, 89945, 3097, 317, 262, 1077, 6094, 3097, 284, 16990, 159...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_decode_header() -> Result<(), IoError> { // API versions request // API version: 1 // strng length 10 // client id: consumer-1 let data = [ 0x00, 0x12, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x0a, 0x63, 0x6f, 0x6e, 0x73, ...
rust_cleaned_test_functions.jsonl/29669
{ "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, 15227, 8757, 368, 1464, 5714, 68843, 29655, 1454, 29, 341, 286, 442, 5333, 10795, 1681, 8945, 286, 442, 5333, 2319, 25, 220, 16, 8945, 286, 442, 607, 968, 3084, 220, 16, 15, 198, 286, 442, 294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_csv_with_schema_inference_no_headers() { let file = File::open("test/data/uk_cities.csv").unwrap(); let builder = ReaderBuilder::new().infer_schema(None); let mut csv = builder.build(file).unwrap(); // csv field names should be 'column_{number}' let sch...
rust_cleaned_test_functions.jsonl/16412
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 582 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14020, 6615, 25371, 1243, 2202, 6536, 26719, 368, 341, 286, 1077, 1034, 284, 2887, 486, 2508, 445, 1944, 13167, 14, 3101, 666, 1361, 11219, 1827, 15454, 1428, 286, 1077, 7363, 284, 25166, 3297, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_primitive_array_gt_eq_nulls() { cmp_i64!( gt_eq, vec![None, None, Some(1), None, Some(1), Some(2), None, None, Some(1)], vec![None, Some(1), None, None, Some(1), Some(1), None, Some(2), Some(2)], vec![None, None, None, None, Some(true), Som...
rust_cleaned_test_functions.jsonl/36032
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 37479, 10714, 15162, 82, 368, 341, 286, 26089, 5318, 21, 19, 33673, 310, 25161, 10714, 345, 310, 7486, 20703, 4064, 11, 2240, 11, 4329, 7, 16, 701, 2240, 11, 4329, 7, 16, 701, 432...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_acount() -> Result<()> { let server = crate::test::with_directory_server(); let url = DirectoryUrl::Other(&server.dir_url); let persist = MemoryPersist::new(); let dir = Directory::from_url(persist, url)?; let _ = dir.account("foo@bar.com")?; ...
rust_cleaned_test_functions.jsonl/110113
{ "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, 8657, 14718, 629, 368, 1464, 5714, 71698, 341, 286, 1077, 3538, 284, 17717, 486, 1944, 486, 4197, 14846, 12015, 543, 286, 1077, 2515, 284, 18033, 2864, 486, 11409, 2099, 4030, 14395, 2903, 317, 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_extract_response_peers() { fn prop(data: (u16, u16)) -> TestResult { let gen_num_peers = data.0 as u32; let req_num_peers = data.1 as usize; let mut peer_map: PeerMap<Ipv4Addr> = IndexMap::with_capacity(gen_num_peers as usize); let mut op...
rust_cleaned_test_functions.jsonl/87850
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1085 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 9655, 36367, 388, 368, 341, 286, 5168, 2004, 2592, 25, 320, 84, 16, 21, 11, 575, 16, 21, 593, 1464, 3393, 2077, 341, 310, 1077, 4081, 4273, 36367, 388, 284, 821, 13, 15, 438, 575, 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...
9
#[test] fn test_cast_to_uint() { let test_cases = vec![ ("{}", 0u64), ("[]", 0u64), ("3", 3u64), ("4.1", 4u64), ("4.5", 5u64), ("true", 1u64), ("false", 0u64), ("null", 0u64), (r#""hello""#, 0u64)...
rust_cleaned_test_functions.jsonl/47553
{ "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, 5303, 2346, 15807, 368, 341, 286, 1077, 1273, 41427, 284, 7486, 90515, 310, 3489, 42351, 220, 15, 84, 21, 19, 1326, 310, 3489, 1294, 497, 220, 15, 84, 21, 19, 1326, 310, 3489, 18, 497, 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...
2
#[test] fn test_configuration_from_none() { let argv = vec!["lsd"]; let matches = app::build().get_matches_from_safe(argv).unwrap(); assert!( match IgnoreGlobs::configure_from(&matches, &Config::with_none()) { Ok(_) => true, _ => false, ...
rust_cleaned_test_functions.jsonl/62334
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35726, 5673, 31488, 368, 341, 286, 1077, 10213, 284, 7486, 0, 1183, 4730, 67, 6332, 286, 1077, 9071, 284, 906, 486, 5834, 1005, 455, 38344, 5673, 34067, 15329, 568, 15454, 543, 286, 2060, 33673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_eat_string_literal() { let input = "let _word = \"hello\""; let expected = vec![ Token::Keyword(Keyword::Let), Token::Ident("_word".to_string()), Token::Assign, Token::Str("hello".to_string()), ]; let mut lexer = Lexer::new(input); for token ...
rust_cleaned_test_functions.jsonl/72661
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 266, 3904, 34100, 368, 341, 262, 1077, 1946, 284, 330, 1149, 716, 1158, 284, 7245, 14990, 2105, 3302, 262, 1077, 3601, 284, 7486, 90515, 286, 9660, 486, 34481, 21358, 1158, 486, 10061, 1326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_i32_vec_from_params() { { let mut params = Map::new(); params .assign("company_id", Value::String("4".into())) .unwrap(); let company_ids: Vec<i32> = i32_vec_from_params!(params, "company_id"); asse...
rust_cleaned_test_functions.jsonl/43446
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 825 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5318, 18, 17, 13251, 5673, 6745, 368, 341, 1789, 286, 341, 310, 1077, 5206, 3628, 284, 5027, 486, 931, 543, 310, 3628, 198, 394, 659, 6983, 445, 10139, 842, 497, 5162, 486, 703, 445, 19, 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_from_u64() { let cases = vec![ (12345u64, "12345"), (0, "0"), (18446744073709551615, "18446744073709551615"), ]; for (num, exp) in cases { let dec: Decimal = num.into(); let dec_str = format!("{}", dec); ...
rust_cleaned_test_functions.jsonl/13653
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 218 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 7300, 21, 19, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 16, 17, 18, 19, 20, 84, 21, 19, 11, 330, 16, 17, 18, 19, 20, 4461, 310, 320, 15, 11, 330, 15, 4461, 310, 320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_count_uri() { let index_name = "test_count_uri"; let mut client = make_client(); clean_db(&mut client, index_name); setup_test_data(&mut client, index_name); let all_results: CountResult = client .count_uri() .with_indexes(&[index...
rust_cleaned_test_functions.jsonl/98937
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 479 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3180, 15572, 368, 341, 286, 1077, 1922, 1269, 284, 330, 1944, 3180, 15572, 876, 286, 1077, 5206, 2943, 284, 1281, 8179, 1428, 286, 4240, 8685, 2099, 6984, 2943, 11, 1922, 1269, 317, 286, 6505, 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_callback_error() { use rocket::{local::blocking::Client, error::ErrorKind::FailedFairings}; let rocket = rocket::build().attach(Template::try_custom(|_| { Err("error reloading templates!".into()) })); let error = Client::debug(rocket).expect_err("client failure"); m...
rust_cleaned_test_functions.jsonl/84748
{ "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, 12519, 4096, 368, 341, 262, 990, 24306, 22964, 2438, 486, 70356, 486, 2959, 11, 1465, 486, 1454, 10629, 486, 9408, 60795, 819, 2315, 262, 1077, 24306, 284, 24306, 486, 5834, 1005, 16330, 4140, 370...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bytes_new_with_zero_initialised() -> super::PyResult<()> { let gil = Python::acquire_gil(); let py = gil.python(); let py_bytes = PyBytes::new_with(py, 10, |_b: &mut [u8]| Ok(()))?; let bytes: &[u8] = FromPyObject::extract(py_bytes)?; assert_eq!(bytes, &[0...
rust_cleaned_test_functions.jsonl/108324
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12524, 5921, 6615, 19359, 15809, 4056, 368, 1464, 2256, 486, 13828, 2077, 71698, 341, 286, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 286, 1077, 4510, 284, 342, 321, 43193, 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...
3
#[test] fn test_hmac() { let tests: [(&'static [u8], &'static [u8], &'static str); 5] = [ (&[0x0B; 20], b"Hi There", "87aa7cdea5ef619d4ff0b4241a1d6cb02379f4e2ce4ec2787ad0b30545e17cdedaa833b7d6b8a702038b274eaea3f4e4be9d914eeb61f1702e696c203a126854"), (b"Jefe", b"what do ya want fo...
rust_cleaned_test_functions.jsonl/36581
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 763 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 11948, 368, 341, 286, 1077, 7032, 25, 508, 2099, 6, 1978, 508, 84, 23, 1125, 30136, 1978, 508, 84, 23, 1125, 30136, 1978, 607, 1215, 220, 20, 60, 284, 2278, 310, 15899, 58, 15, 87, 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...
2
#[test] fn test_syscall_get_sysvar() { // Test clock sysvar { let got_clock = Clock::default(); let got_clock_va = 2048; let memory_mapping = MemoryMapping::new::<UserError>( vec![MemoryRegion { host_addr: &got_clock as *co...
rust_cleaned_test_functions.jsonl/16357
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3614 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20344, 6659, 3062, 20344, 947, 368, 341, 286, 442, 3393, 8866, 5708, 947, 198, 286, 341, 310, 1077, 2684, 23062, 284, 26142, 486, 2258, 543, 310, 1077, 2684, 23062, 73959, 284, 220, 17, 15, 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_1() { let mut f = FreqStack::new(); f.push(5); // The stack is [5] f.push(7); f.push(5); f.push(7); f.push(4); f.push(5); assert_eq!(f.pop(), 5); assert_eq!(f.pop(), 7); assert_eq!(f.pop(), 5); assert...
rust_cleaned_test_functions.jsonl/100191
{ "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, 62, 16, 368, 341, 286, 1077, 5206, 282, 284, 434, 2958, 4336, 486, 931, 543, 286, 282, 2552, 7, 20, 1215, 442, 576, 5611, 374, 508, 20, 921, 286, 282, 2552, 7, 22, 1215, 715, 286, 282, 255...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_can_subimage_clone_nonmut() { let mut source = ImageBuffer::new(3, 3); source.put_pixel(1, 1, Rgba([255u8, 0, 0, 255])); // A non-mutable copy of the source image let source = source.clone(); // Clone a view into non-mutable to a separate buffer ...
rust_cleaned_test_functions.jsonl/2195
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27421, 5228, 1805, 54742, 21637, 6984, 368, 341, 286, 1077, 5206, 2530, 284, 4654, 4095, 486, 931, 7, 18, 11, 220, 18, 317, 286, 2530, 3597, 29760, 7, 16, 11, 220, 16, 11, 431, 56380, 2561, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_has_with_text_p_step_v2() { let client = graph_serializer(GraphSON::V2); drop_vertices(&client, "test_has_with_text_p_step").unwrap(); let g = traversal().with_remote(client); g.add_v("test_has_with_text_p_step") .property("name", "Jon") .to_list() .unw...
rust_cleaned_test_functions.jsonl/26299
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 780 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21778, 6615, 4326, 620, 11946, 2273, 17, 368, 341, 262, 1077, 2943, 284, 4771, 67441, 63779, 2703, 486, 53, 17, 626, 262, 5943, 37720, 2099, 2972, 11, 330, 1944, 21778, 6615, 4326, 620, 11946, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_line() -> io::Result<()> { fn t(buf: &mut String, mut reader: &[u8], expected: &str) -> io::Result<()> { buf.clear(); read_line(&mut reader, buf)?; assert_eq!(buf, expected); Ok(()) } let mut buf = String::new(); ...
rust_cleaned_test_functions.jsonl/69016
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 263 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 6528, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 5168, 259, 10731, 25, 609, 6984, 923, 11, 5206, 6604, 25, 44590, 84, 23, 1125, 3601, 25, 609, 495, 8, 1464, 6399, 486, 2077, 71698, 341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_pretty_format_columns() -> Result<()> { let columns = vec![ Arc::new(array::StringArray::from(vec![ Some("a"), Some("b"), None, Some("d"), ])) as ArrayRef, Arc::new(array::StringArray::fro...
rust_cleaned_test_functions.jsonl/116916
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 403 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 21322, 8955, 22590, 368, 1464, 5714, 71698, 341, 286, 1077, 8147, 284, 7486, 90515, 310, 19689, 486, 931, 6110, 486, 703, 1857, 486, 1499, 25592, 90515, 394, 4329, 445, 64, 4461, 394, 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...
2
#[test] fn test_disk_full_for_region_follower() { test_disk_full_follower_behaviors(DiskUsage::AlmostFull); test_disk_full_follower_behaviors(DiskUsage::AlreadyFull); }
rust_cleaned_test_functions.jsonl/64926
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 74 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41687, 16372, 5478, 20627, 761, 29034, 368, 341, 262, 1273, 41687, 16372, 761, 29034, 43241, 22176, 5432, 3187, 14783, 486, 38682, 9432, 317, 262, 1273, 41687, 16372, 761, 29034, 43241, 22176, 5432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_reason_for_ban_enum() { assert_eq!( p2p::types::ReasonForBan::from_i32(0), Some(p2p::types::ReasonForBan::None) ); }
rust_cleaned_test_functions.jsonl/2859
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38229, 5478, 880, 276, 31054, 368, 341, 6948, 10714, 33673, 197, 3223, 17, 79, 486, 9242, 486, 25139, 2461, 50241, 486, 1499, 5318, 18, 17, 7, 15, 1326, 197, 7568, 635, 1295, 17, 79, 486, 9242...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_arguments() { let mut runner = Runner::new(); // Interval must be positive. let mut query = runner.proxy.start_logging(0, 200); assert_matches!( runner.executor.run_until_stalled(&mut query), Poll::Ready(Ok(Err(fthermal::Temperatur...
rust_cleaned_test_functions.jsonl/91285
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 293 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 43433, 368, 341, 286, 1077, 5206, 22259, 284, 44946, 486, 931, 1428, 286, 442, 40584, 1969, 387, 6785, 624, 286, 1077, 5206, 3239, 284, 22259, 41103, 4962, 59982, 7, 15, 11, 220, 17, 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_process_store_ok() { solana_logger::setup(); let keys = vec![]; let (config_keypair, config_account) = create_config_account(keys.clone()); let config_pubkey = config_keypair.pubkey(); let my_config = MyConfig::new(42); let instruction = config_in...
rust_cleaned_test_functions.jsonl/4685
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 438 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 14809, 19817, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 6894, 284, 7486, 0, 15078, 286, 1077, 320, 1676, 3097, 12670, 11, 2193, 13500, 8, 284, 1855, 5332, 13500, 36131, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_benchmark_report() { use phala_types::messaging::{DecodedMessage, MessageOrigin, MiningReportEvent, Topic}; new_test_ext().execute_with(|| { set_block_1(); setup_workers(1); // 100 iters per sec PhalaRegistry::internal_set_benchmark(&worker_pubkey(1), Some(600)); assert...
rust_cleaned_test_functions.jsonl/86890
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 870 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 39381, 14813, 368, 341, 298, 41819, 1319, 6053, 9763, 486, 76, 32140, 22964, 4900, 6737, 2052, 11, 4856, 13298, 11, 25832, 10361, 1556, 11, 32911, 2440, 298, 8638, 4452, 9927, 1005, 10257, 66...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vote() { let (sender_name, sender_key) = get_key_pair(); let transfer = Transfer { sender: sender_name, recipient: Address::Primary(dbg_addr(0x20)), amount: Amount::from(5), sequence_number: SequenceNumber::new(), user_data: UserData::default(), ...
rust_cleaned_test_functions.jsonl/99647
{ "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, 54360, 368, 341, 262, 1077, 320, 11644, 1269, 11, 4646, 3097, 8, 284, 633, 3097, 14445, 543, 262, 1077, 8317, 284, 23200, 341, 286, 4646, 25, 4646, 1269, 345, 286, 21713, 25, 9177, 486, 15972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_floats() { assert_eq!( eval("(inf, -inf, NaN)"), Value::Seq(vec![ Value::Number(Number::new(std::f64::INFINITY)), Value::Number(Number::new(std::f64::NEG_INFINITY)), Value::Number(Number::new(std::f64::NAN)), ...
rust_cleaned_test_functions.jsonl/32628
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 204 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17586, 82, 368, 341, 286, 2060, 10714, 33673, 310, 5603, 31732, 13573, 11, 481, 13573, 11, 32178, 8, 4461, 310, 5162, 486, 20183, 25592, 90515, 394, 5162, 486, 2833, 42999, 486, 931, 5194, 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_input_read_all_unconsume() { let input = untrusted::Input::from(b"foo"); let result = input.read_all(untrusted::EndOfInput, |input| { assert_eq!(b'f', input.read_byte()?); assert!(!input.at_end()); Ok(()) }); assert_eq!(result, Err(untrusted::EndOfInput));...
rust_cleaned_test_functions.jsonl/27450
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5898, 6443, 5705, 4907, 84494, 368, 341, 262, 1077, 1946, 284, 650, 83837, 486, 2505, 486, 1499, 1883, 1, 7975, 797, 262, 1077, 1102, 284, 1946, 4125, 5705, 18364, 83837, 486, 3727, 2124, 2505, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_area_of_use() { let proj = Proj::new("EPSG:3035").unwrap(); let (area, name) = proj.area_of_use().unwrap(); let area = area.unwrap(); let name = name.unwrap(); assert_eq!(area.west, -35.58); assert_eq!(area.south, 24.6); assert_eq!(area.eas...
rust_cleaned_test_functions.jsonl/133390
{ "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, 15030, 3575, 15951, 368, 341, 286, 1077, 21333, 284, 42952, 486, 931, 445, 45177, 38, 25, 18, 15, 18, 20, 1827, 15454, 543, 286, 1077, 320, 4798, 11, 829, 8, 284, 21333, 39491, 3575, 15951, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hover_test_mod_has_action() { check_actions( r#" mod tests<|> { #[test] fn foo_test() {} } "#, expect![[r#" [ Runnable( Runnable { nav: NavigationTarget { ...
rust_cleaned_test_functions.jsonl/66161
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 903 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 4452, 7480, 21778, 7931, 368, 341, 286, 1779, 25368, 1006, 310, 435, 2, 698, 2593, 7032, 27, 91, 29, 341, 262, 11506, 1944, 921, 262, 5168, 15229, 4452, 368, 5613, 532, 57676, 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_flush_cascade() { test(&["4H 7H 8H 9H 6H", "2S 4S 5S 6S 7S"], &["4H 7H 8H 9H 6H"]) }
rust_cleaned_test_functions.jsonl/49913
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 71 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39213, 666, 19977, 368, 341, 1066, 262, 1273, 2099, 1183, 19, 39, 220, 22, 39, 220, 23, 39, 220, 24, 39, 220, 21, 39, 497, 330, 17, 50, 220, 19, 50, 220, 20, 50, 220, 21, 50, 220, 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_shift_left_addr() { let compiled = compile("SET HL 100\nSET B 1\nWRITE64 B\nSHIFT_LEFT (100)"); let out_cpu = test_program(compiled); assert_eq!(out_cpu.b.value, 1); assert_eq!(out_cpu.hl.value, 100); assert_eq!(out_cpu.memory.read_64bit(100), 2); assert_eq!(out_cpu.f.va...
rust_cleaned_test_functions.jsonl/63184
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 154 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22230, 9579, 7387, 368, 341, 262, 1077, 19697, 284, 19192, 445, 5884, 52487, 220, 16, 15, 15, 1699, 5884, 425, 220, 16, 1699, 32781, 21, 19, 425, 1699, 45743, 19013, 320, 16, 15, 15, 20996, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_split_numeric_prefixed_chunks_by_bytes() { let (at, mut ucmd) = at_and_ucmd!(); let name = "split_num_prefixed_chunks_by_bytes"; RandomFile::new(&at, name).add_bytes(10000); ucmd.args(&[ "-d", // --numeric-suffixes "-b", // --bytes "1000", name, "a", ]...
rust_cleaned_test_functions.jsonl/25852
{ "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, 17052, 29418, 43331, 3286, 65470, 3710, 12524, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 829, 284, 330, 6960, 4273, 43331, 3286, 6547...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_channel_closed() { let mut exec = fasync::Executor::new().unwrap(); let (recv, send) = Channel::create(); let closed_fut = recv.closed(); pin_mut!(closed_fut); assert!(exec.run_until_stalled(&mut closed_fut).is_pending()); drop(send); ...
rust_cleaned_test_functions.jsonl/76854
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14571, 44697, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 25255, 486, 931, 1005, 15454, 1428, 286, 1077, 320, 33977, 11, 3624, 8, 284, 13434, 486, 3182, 1428, 286, 1077, 7877, 761, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_message_readonly_handling() { #[derive(Serialize, Deserialize)] enum MockSystemInstruction { Correct, AttemptCredit { lamports: u64 }, AttemptDataChange { data: u8 }, } fn mock_system_process_instruction( _p...
rust_cleaned_test_functions.jsonl/16260
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2977 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 6462, 6443, 3243, 75642, 368, 341, 286, 11506, 27098, 3759, 9050, 11, 48440, 5563, 286, 7618, 14563, 2320, 16664, 341, 310, 39970, 345, 310, 43517, 33493, 314, 31603, 3394, 25, 575, 21, 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...
6
#[test] fn test_serverinfo_fmt() { let mut eightbitmime = HashSet::new(); assert!(eightbitmime.insert(Extension::EightBitMime)); assert_eq!( format!( "{}", ServerInfo { name: "name".to_string(), features...
rust_cleaned_test_functions.jsonl/31598
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 690 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12015, 2733, 38128, 368, 341, 286, 1077, 5206, 8063, 4489, 49588, 284, 18931, 486, 931, 543, 286, 2060, 10297, 67532, 4489, 49588, 7030, 7, 12049, 486, 59085, 8344, 44, 545, 3237, 286, 2060, 10714...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multiple_reads() { let headers = Headers::from_raw(&mut mem("Content-Length: 10\r\n\r\n")).unwrap(); let ContentLength(one) = *headers.get::<ContentLength>().unwrap(); let ContentLength(two) = *headers.get::<ContentLength>().unwrap(); assert_eq!(one, two); }
rust_cleaned_test_functions.jsonl/18241
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 66628, 368, 341, 286, 1077, 7102, 284, 21426, 486, 1499, 16067, 2099, 6984, 1833, 445, 2762, 52493, 25, 220, 16, 15, 12016, 1699, 12016, 1699, 15197, 15454, 543, 286, 1077, 8883, 4373, 5106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_default_on_error() { #[serde_as] #[derive(Debug, Serialize, Deserialize, PartialEq)] struct S(#[serde_as(as = "DefaultOnError<DisplayFromStr>")] u32); // Normal is_equal(S(123), expect![[r#""123""#]]); is_equal(S(0), expect![[r#""0""#]]); // Error cases check_des...
rust_cleaned_test_functions.jsonl/105398
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 940 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 4470, 4096, 368, 341, 262, 11506, 47024, 11898, 921, 262, 11506, 27098, 42618, 11, 39900, 11, 48440, 11, 55039, 5563, 262, 2036, 328, 7, 13353, 47024, 11898, 36951, 284, 330, 3675, 74945, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_seal_open() { use crate::randombytes::randombytes; unwrap!(crate::init()); for i in 0..256usize { let (pk, sk) = box_::gen_keypair(); let m = randombytes(i); let c = seal(&m, &pk); let opened = open(&c, &pk, &sk); ...
rust_cleaned_test_functions.jsonl/116066
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 204 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3453, 278, 11311, 368, 341, 286, 990, 17717, 486, 11463, 9651, 486, 11463, 9651, 280, 286, 79813, 10297, 61711, 486, 2327, 1423, 286, 369, 600, 304, 220, 15, 496, 17, 20, 21, 51878, 341, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_cp_backup_simple() { let (at, mut ucmd) = at_and_ucmd!(); ucmd.arg("--backup=simple") .arg(TEST_HELLO_WORLD_SOURCE) .arg(TEST_HOW_ARE_YOU_SOURCE) .succeeds() .no_stderr(); assert_eq!(at.read(TEST_HOW_ARE_YOU_SOURCE), "Hello, World!\n"); assert_eq...
rust_cleaned_test_functions.jsonl/21258
{ "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, 39811, 44710, 30015, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 1428, 262, 575, 8710, 21186, 21549, 31371, 14149, 6456, 1138, 286, 659, 858, 50320, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_register_too_many_devices() { let start_addr1 = GuestAddress(0x0); let start_addr2 = GuestAddress(0x1000); let guest_mem = GuestMemory::new(&[(start_addr1, 0x1000), (start_addr2, 0x1000)]).unwrap(); let mut device_manager = MMIODeviceManager::new(guest...
rust_cleaned_test_functions.jsonl/102328
{ "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, 14000, 2346, 78, 22101, 41334, 368, 341, 286, 1077, 1191, 7387, 16, 284, 26215, 4286, 7, 15, 87, 15, 317, 286, 1077, 1191, 7387, 17, 284, 26215, 4286, 7, 15, 87, 16, 15, 15, 15, 317, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_image_reader_text() { let image = ImageBuilder::from_url("https://i.stack.imgur.com/t3qWG.png"); let mut reader = image.reader(); let text = reader.text(None).unwrap(); assert_ne!(text.len(), 0); }
rust_cleaned_test_functions.jsonl/41845
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4954, 22306, 4326, 368, 341, 286, 1077, 2168, 284, 4654, 3297, 486, 1499, 2903, 445, 2428, 1110, 72, 22420, 55277, 905, 5523, 18, 80, 84916, 3508, 797, 286, 1077, 5206, 6604, 284, 2168, 34760, 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_update_new_staked_slot() { let cs = ClusterSlots::default(); let mut epoch_slot = EpochSlots::default(); epoch_slot.fill(&[1], 0); let map = Arc::new( vec![( Pubkey::default(), NodeVoteAccounts { tot...
rust_cleaned_test_functions.jsonl/53453
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 514 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 5921, 1261, 7741, 27563, 368, 341, 286, 1077, 10532, 284, 35380, 51647, 486, 2258, 543, 286, 1077, 5206, 16342, 27563, 284, 87379, 51647, 486, 2258, 543, 286, 16342, 27563, 12467, 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...
1
#[test] fn test_query_matches_with_too_many_permutations_to_track() { allocations::record(|| { let language = get_language("javascript"); let query = Query::new( language, " (array (identifier) @pre (identifier) @post) ", ) .unwrap(...
rust_cleaned_test_functions.jsonl/25173
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 38344, 6615, 2346, 78, 22101, 31961, 82141, 2346, 28545, 368, 341, 262, 69642, 486, 8548, 79453, 341, 286, 1077, 4128, 284, 633, 29021, 445, 14073, 797, 286, 1077, 3239, 284, 11361, 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...
2
#[test] fn test_serde_time() { test_time(0, 0, 0, 0); test_time(1, 1, 1, 1); test_time(23, 59, 59, 999999); }
rust_cleaned_test_functions.jsonl/54047
{ "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, 75861, 450, 3009, 368, 341, 286, 1273, 3009, 7, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 317, 286, 1273, 3009, 7, 16, 11, 220, 16, 11, 220, 16, 11, 220, 16, 317, 286, 1273, 3009, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_replace_range() { let mut s = TinyString::<[u8; 16]>::from("Hello, world!"); s.replace_range(7..12, "世界"); assert_eq!(s, "Hello, 世界!"); }
rust_cleaned_test_functions.jsonl/3642
{ "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, 10633, 9698, 368, 341, 10217, 5206, 274, 284, 47974, 703, 27638, 58, 84, 23, 26, 220, 16, 21, 60, 6831, 1499, 445, 9707, 11, 1879, 11142, 1903, 6980, 9698, 7, 22, 496, 16, 17, 11, 330, 99489...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { assert_eq!( AccountModelBuilder::default("username").admin(true).build(), AccountModel { is_admin: true, username: "username".into() } ); assert_eq!( AccountModelBuilder::default("t...
rust_cleaned_test_functions.jsonl/29666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 447 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 368, 341, 286, 2060, 10714, 33673, 310, 8615, 1712, 3297, 486, 2258, 445, 5113, 1827, 2882, 3715, 568, 5834, 3148, 310, 8615, 1712, 341, 394, 374, 12207, 25, 830, 345, 394, 5934, 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