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_autoconceal_node() { let mut genesis = Genesis::strict_decode(&GENESIS[..]).unwrap(); let mut transition = Transition::strict_decode(&TRANSITION[..]).unwrap(); assert_eq!( genesis.clone().consensus_commit(), NodeId::from_hex("d2f452d8b...
rust_cleaned_test_functions.jsonl/18805
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 611 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27740, 443, 346, 278, 5084, 368, 341, 286, 1077, 5206, 59366, 284, 40788, 486, 6627, 15227, 2099, 11085, 83366, 95874, 10697, 15454, 543, 286, 1077, 5206, 9142, 4035, 310, 37721, 486, 6627, 15227, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_encoding() { assert_eq!(parquet::Encoding::Plain, Encoding::Plain.into()); assert_eq!( parquet::Encoding::PlainDictionary, Encoding::PlainDictionary.into() ); assert_eq!(parquet::Encoding::Rle, Encoding::Rle.into()); assert_eq!(parquet::Encoding::BitPacked, Encoding::BitPack...
rust_cleaned_test_functions.jsonl/126073
{ "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, 45514, 37613, 368, 341, 197, 6948, 10714, 10297, 1732, 23300, 486, 14690, 486, 26982, 11, 29330, 486, 26982, 39860, 1423, 197, 6948, 10714, 33673, 298, 197, 1732, 23300, 486, 14690, 486, 26982, 8517...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_grid() { let colors = vec![ &RED, &BLUE, &YELLOW, &WHITE, &BLACK, &MAGENTA, &CYAN, &BLUE, &RED, ]; let breaks: [i32; 5] = [100, 200, 300, 400, 500]; for nxb in 0..=5 { for nyb in 0..=5 { let drawing_area = create_mock...
rust_cleaned_test_functions.jsonl/81496
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1612 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 15604, 368, 341, 286, 1077, 7987, 284, 7486, 90515, 310, 609, 6504, 11, 609, 64330, 11, 609, 97029, 11, 609, 56999, 11, 609, 62849, 11, 609, 44, 1890, 72321, 11, 609, 34525, 1093, 11, 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...
8
#[test] fn test_to_file_with_options() { let data = Data { base: "https://example.com".into(), client_id: "adbc01234".into(), client_secret: "0987dcba".into(), redirect: "urn:ietf:wg:oauth:2.0:oob".into(), token: "fedc5678".into(), }; ...
rust_cleaned_test_functions.jsonl/39225
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 330 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 2458, 6615, 8743, 368, 341, 286, 1077, 821, 284, 2885, 341, 310, 2331, 25, 330, 2428, 1110, 8687, 905, 3263, 18122, 3148, 310, 2943, 842, 25, 330, 329, 8904, 15, 16, 17, 18, 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_overrideding_cast___from_implicit_select_all_with_no_decorator___compiles_correctly() { #[derive(Arraygen)] #[gen_array(fn my_array: f32, implicit_select_all: f32)] struct _Sut1 { #[in_array(my_array { override_implicit, cast })] pub a: i32, ...
rust_cleaned_test_functions.jsonl/76358
{ "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, 15431, 1869, 16100, 5303, 5973, 1499, 62, 30940, 13051, 5705, 6615, 6536, 87252, 5973, 5689, 3658, 31550, 398, 368, 341, 286, 11506, 27098, 38192, 4370, 5563, 286, 11506, 4370, 3858, 24008, 847, 385...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fail() { // Test that invalid input is rejected. fn test_parse_invalid<C: PCurve>() { should_fail( EcPrivKey::<C>::parse_from_der(&[]), "EcPrivKey::parse_from_der", "elliptic curve routines:OPENSSL_internal:DECODE_...
rust_cleaned_test_functions.jsonl/51191
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 22121, 368, 341, 286, 442, 3393, 429, 8318, 1946, 374, 17551, 624, 286, 5168, 1273, 21039, 31433, 20373, 25, 6673, 73047, 13555, 341, 310, 1265, 22121, 1006, 394, 36111, 32124, 1592, 27638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_manhattan_distance_negative() { let first_point = START_POINT; let second_point = Point{x: 158, y: -12}; assert_eq!(170, first_point.manhattan_distance(&second_point)); }
rust_cleaned_test_functions.jsonl/44999
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17062, 25337, 19464, 53865, 368, 341, 286, 1077, 1156, 6085, 284, 20998, 27407, 280, 286, 1077, 2086, 6085, 284, 5126, 45340, 25, 220, 16, 20, 23, 11, 379, 25, 481, 16, 17, 2440, 286, 2060, 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
#[test] fn test_max_pow10_no_more_than() { let mut prevtenk = 1; for k in 1..10 { let tenk = prevtenk * 10; assert_eq!(max_pow10_no_more_than(tenk - 1), (k - 1, prevtenk)); assert_eq!(max_pow10_no_more_than(tenk), (k, tenk)); prevtenk = tenk; } }
rust_cleaned_test_functions.jsonl/12246
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 56183, 16, 15, 6536, 36664, 51613, 368, 341, 262, 1077, 5206, 7872, 1960, 74, 284, 220, 16, 280, 262, 369, 595, 304, 220, 16, 496, 16, 15, 341, 286, 1077, 5779, 74, 284, 7872, 1960, 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...
2
#[test] fn test_vcx_credential_get_new_offers() { let _setup = SetupMocks::init(); let handle_conn = connection::tests::build_test_connection_invitee_completed(); let cb = return_types_u32::Return_U32_STR::new().unwrap(); assert_eq!(vcx_credential_get_offers(cb.command_handle, ...
rust_cleaned_test_functions.jsonl/115034
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 305 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 25844, 666, 30320, 3062, 5921, 13651, 388, 368, 341, 286, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 1428, 286, 1077, 3705, 17241, 284, 3633, 486, 23841, 486, 5834, 4452, 15866, 94910, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_str_radix() { fn check(n: int, ans: &str) { let n: BigInt = FromPrimitive::from_int(n).unwrap(); assert!(ans == n.to_str_radix(10).as_slice()); } check(10, "10"); check(1, "1"); check(0, "0"); check(-1, "-1"); che...
rust_cleaned_test_functions.jsonl/98342
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 2895, 39764, 941, 368, 341, 286, 5168, 1779, 1445, 25, 526, 11, 8099, 25, 609, 495, 8, 341, 310, 1077, 308, 25, 62608, 284, 5542, 33313, 486, 1499, 4042, 1445, 568, 15454, 543, 310, 2060...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_input() { let input_mock = || Some("asdf".to_string()); let disp_mock = || -> VmResult<()> { Ok(()) }; let mut vm = ShrekVM::new(Vec::new()); input(&mut vm, input_mock, disp_mock).unwrap(); assert_eq!('a' as i32, vm.pop().unwrap()); assert_eq!('...
rust_cleaned_test_functions.jsonl/71692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 267 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5898, 368, 341, 286, 1077, 1946, 34134, 284, 1369, 4329, 445, 76615, 3263, 983, 3904, 1423, 286, 1077, 12965, 34134, 284, 1369, 1464, 647, 76, 2077, 71698, 314, 7622, 7, 2140, 3634, 286, 1077, 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...
3
#[test] fn test_add_votes_duplicate_greater_hash_ignored() { let (mut heaviest_subtree_fork_choice, duplicate_leaves_descended_from_4, _) = setup_duplicate_forks(); let stake = 10; let num_validators = 2; let (bank, vote_pubkeys) = bank_utils::setup_bank_a...
rust_cleaned_test_functions.jsonl/70818
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1380 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 65116, 70434, 97994, 8950, 62, 58471, 368, 341, 286, 1077, 320, 6984, 566, 98362, 5228, 9344, 761, 669, 31936, 11, 22513, 11751, 4693, 10986, 2883, 5673, 62, 19, 11, 27439, 4035, 310, 6505, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_boolean_to_byte() -> Result<(), SynthesisError> { for val in [true, false].iter() { let cs = ConstraintSystem::<Fr>::new_ref(); let a = Boolean::new_witness(cs.clone(), || Ok(*val))?; let bytes = a.to_bytes()?; assert_eq!(bytes.len(), 1); ...
rust_cleaned_test_functions.jsonl/3465
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 312 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 46642, 2346, 19737, 368, 1464, 5714, 68843, 23153, 13189, 1454, 29, 341, 286, 369, 1044, 304, 508, 1866, 11, 895, 936, 2015, 368, 341, 310, 1077, 10532, 284, 44264, 2320, 27638, 22560, 6831, 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...
9
#[test] fn test_transcribes_cytosine_guanine() { assert_eq!(Ok(dna::RNA::new("G")), dna::DNA::new("C").to_rna()); }
rust_cleaned_test_functions.jsonl/107196
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 65 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7965, 55136, 666, 16415, 436, 482, 1889, 10386, 482, 368, 341, 262, 2060, 10714, 10297, 11578, 1500, 3376, 486, 30720, 486, 931, 445, 38, 35674, 75334, 486, 55320, 486, 931, 445, 34, 1827, 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
#[test] fn test_exchange_code_with_invalid_token_type() { let mock = mock("POST", "/token") .match_header("Accept", "application/json") .match_header("Authorization", "Basic YWFhOg==") .match_body("grant_type=authorization_code&code=ccc") .with_header("content-type", "applic...
rust_cleaned_test_functions.jsonl/12778
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 546 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59212, 4136, 6615, 31433, 6458, 1819, 368, 341, 262, 1077, 7860, 284, 7860, 445, 2946, 497, 3521, 5839, 1138, 286, 659, 6347, 8757, 445, 16646, 497, 330, 5132, 8931, 1138, 286, 659, 6347, 8757, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_case_28() { let key = "ae0794009e21ad33fa4141fe5fa79fed12f6a20f51614dc130f45598e92549b1"; let nonce = "13ed6185724507e7fa5a7e8a75b2c7a3"; let expected_output = "51d1aec8d64d20e448a377bfa83ccbf71a73a3ad00d062bf6b83c549a7296ef1"; hcha...
rust_cleaned_test_functions.jsonl/44690
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19096, 62, 17, 23, 368, 341, 310, 1077, 1376, 284, 330, 5918, 15, 22, 24, 19, 15, 15, 24, 68, 17, 16, 329, 18, 18, 3632, 19, 16, 19, 16, 1859, 20, 3632, 22, 24, 51123, 16, 17, 69, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_update_finalized_transaction_confirming() { // Keep waiting for a transaction that is still being confirmed. let mut db = PickleDb::new_yaml(NamedTempFile::new().unwrap(), PickleDbDumpPolicy::NeverDump); let signature = Signature::default(); let transa...
rust_cleaned_test_functions.jsonl/73562
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 462 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 20676, 1506, 28884, 23800, 287, 368, 341, 286, 442, 13655, 8580, 369, 264, 7745, 429, 374, 2058, 1660, 10774, 624, 286, 1077, 5206, 2927, 4035, 310, 19725, 89506, 486, 931, 64380, 8204, 3606...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_confirmed_block() { let bob_pubkey = Pubkey::new_rand(); let RpcHandler { io, meta, confirmed_block_signatures, blockhash, .. } = start_rpc_handler_with_tx(&bob_pubkey); let req = r#"{"jsonrpc":"2.0"...
rust_cleaned_test_functions.jsonl/14454
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2260 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 16059, 8434, 7113, 368, 341, 286, 1077, 35192, 34014, 792, 284, 22611, 792, 486, 931, 33864, 543, 286, 1077, 79961, 3050, 341, 310, 6399, 345, 310, 8823, 345, 310, 10774, 7113, 11172, 2789, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_get_unchecked() { pyo3::Python::with_gil(|py| { let array = PyArray::from_slice(py, &[1i32, 2, 3]); unsafe { assert_eq!(*array.uget([1]), 2); } }) }
rust_cleaned_test_functions.jsonl/49667
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 120 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 4907, 7549, 368, 341, 262, 4510, 78, 18, 486, 30280, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 286, 1077, 1334, 284, 5355, 1857, 486, 1499, 26488, 46827, 11, 44590, 16, 72, 18, 17, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_tdvf_sections() { let mut f = std::fs::File::open("tdvf.fd").unwrap(); let sections = parse_tdvf_sections(&mut f).unwrap(); for section in sections { eprintln!("{:x?}", section) } }
rust_cleaned_test_functions.jsonl/1199
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 528, 37261, 69, 59485, 368, 341, 286, 1077, 5206, 282, 284, 1460, 486, 3848, 486, 1703, 486, 2508, 445, 1296, 45241, 58339, 1827, 15454, 543, 286, 1077, 14158, 284, 4715, 528, 37261, 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...
2
#[test] fn test_get_state() { let _setup = SetupMocks::init(); assert_eq!(InviterState::Null, inviter_sm().get_state()); assert_eq!(InviterState::Invited, inviter_sm().to_inviter_invited_state().get_state()); assert_eq!(InviterState::Responded, in...
rust_cleaned_test_functions.jsonl/29149
{ "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, 3062, 4387, 368, 341, 394, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 1428, 394, 2060, 10714, 10297, 15174, 2015, 1397, 486, 3280, 11, 1529, 2015, 15874, 1005, 455, 4387, 1423, 394, 2060, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_api_error() -> anyhow::Result<()> { let err_input = r#" { "errors":[ { "detail":"error message text" } ] }"#; let api_err: ApiErr = serde_json::from_str(err_input)?; let expect = ApiErr { errors: vec![ErrDetail { ...
rust_cleaned_test_functions.jsonl/15901
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11697, 4096, 368, 1464, 88964, 486, 2077, 71698, 341, 286, 1077, 1848, 5898, 284, 435, 2, 698, 515, 262, 330, 7650, 8899, 198, 286, 341, 310, 330, 14585, 3252, 841, 1943, 1467, 698, 286, 456, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_truncate_int() { let tests = vec![ (1028_i64, 0_i64, false, 1028_i64), (1028, 5, false, 1028), (1028, -2, false, 1000), (1028, 309, false, 1028), (1028, i64::min_value(), false, 0), (1028, u64::max_value() as i64, tr...
rust_cleaned_test_functions.jsonl/9505
{ "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, 3547, 26900, 4042, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 320, 16, 15, 17, 23, 5318, 21, 19, 11, 220, 15, 5318, 21, 19, 11, 895, 11, 220, 16, 15, 17, 23, 5318, 21, 19, 1326, 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...
3
#[test] fn test_calculate_one_level_2() { // This test calculates the levels for a non-null primitive array let parent_levels = LevelInfo { definition: vec![0; 5], repetition: None, array_offsets: (0..=5).collect(), array_mask: vec![true, true, tru...
rust_cleaned_test_functions.jsonl/37590
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 563 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24005, 11207, 11667, 8274, 62, 17, 368, 341, 286, 442, 1096, 1273, 47417, 279, 5866, 369, 264, 2477, 60341, 27594, 1334, 198, 286, 1077, 2681, 37819, 284, 9395, 1731, 341, 310, 7271, 25, 7486, 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_set_hop_limit() { let mut s = socket_syn_received(); let mut caps = DeviceCapabilities::default(); caps.max_transmission_unit = 1520; s.set_hop_limit(Some(0x2a)); assert_eq!(s.dispatch(Instant::from_millis(0), &caps, |(ip_repr, _)| { assert_eq...
rust_cleaned_test_functions.jsonl/1786
{ "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, 2602, 98193, 14763, 368, 341, 286, 1077, 5206, 274, 284, 7575, 51393, 40783, 543, 286, 1077, 5206, 18568, 284, 13903, 55315, 486, 2258, 543, 286, 18568, 6678, 7965, 2728, 14832, 284, 220, 16, 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_tokenize() { let mut vm = build_def_vm(); let mut reader_state = ReaderState::new(); let tokens = tokenize( &mut vm, &mut reader_state, "one two three \"four\" 5 6", None, ); println!("XXX {:?}", tokens); ...
rust_cleaned_test_functions.jsonl/101092
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2040 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86508, 368, 341, 286, 1077, 5206, 10995, 284, 1936, 7844, 39008, 543, 286, 1077, 5206, 6604, 4387, 284, 25166, 1397, 486, 931, 543, 286, 1077, 11211, 284, 77651, 1006, 310, 609, 6984, 10995, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_null_encoding() -> io::Result<()> { let data = [ 0, // null encoding ID ]; let mut reader = &data[..]; let encoding = read_encoding(&mut reader)?; assert_eq!(encoding, Encoding::Null); Ok(()) }
rust_cleaned_test_functions.jsonl/5072
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 15162, 37613, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 821, 284, 2278, 310, 220, 15, 11, 442, 845, 11170, 3034, 198, 286, 9747, 286, 1077, 5206, 6604, 284, 609, 691, 95874, 4821,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_stream_type_should_set_correctly() { let params = StreamsParams::new() .with_stream_type(StreamType::All); assert_eq!(params.into_query_string(), "?stream_type=all"); }
rust_cleaned_test_functions.jsonl/53707
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12673, 1819, 43378, 2602, 31550, 398, 368, 341, 286, 1077, 3628, 284, 94522, 4870, 486, 931, 741, 394, 659, 4197, 12673, 1819, 52011, 929, 486, 2403, 317, 286, 2060, 10714, 10297, 3519, 39860, 573...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_deserialize_optional_string_or_vec_string_single_value() { let list_of_strings: ObjectWithOptionalStringOrVecString = serde_json::from_str(r#"{ "strings": "v1" }"#).unwrap(); assert_eq!(Some(vec!["v1".to_string()]), list_of_strings.strings); }
rust_cleaned_test_functions.jsonl/18616
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 120 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 74644, 3904, 8734, 13251, 3904, 19487, 3142, 368, 341, 262, 1077, 1140, 3575, 33500, 25, 3002, 2354, 15309, 703, 2195, 10050, 703, 4035, 286, 61570, 9455, 486, 1499, 2895, 2601, 2, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_raw_char() { let (sql, params) = Postgres::build(Select::default().value(Value::character('a').raw())).unwrap(); assert_eq!("SELECT 'a'", sql); assert!(params.is_empty()); }
rust_cleaned_test_functions.jsonl/6461
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 9232, 368, 341, 286, 1077, 320, 3544, 11, 3628, 8, 284, 3877, 17818, 486, 5834, 7, 3379, 486, 2258, 1005, 957, 25346, 486, 19190, 492, 64, 1823, 1041, 34670, 15454, 543, 286, 2060, 10714,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_bump_penalty_txn_on_revoked_commitment() { // we're able to claim outputs on revoked commitment transaction before timelocks expiration let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfgs); let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[...
rust_cleaned_test_functions.jsonl/28347
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1690 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 1510, 82286, 92299, 4470, 38082, 10823, 36346, 478, 368, 341, 1572, 197, 322, 582, 2299, 2952, 311, 3717, 16275, 389, 64346, 15155, 7745, 1573, 6792, 301, 25183, 31692, 271, 10217, 26023, 1645,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_par_inspect_comprehensive() { const LOCAL: &str = "./coolthing.par.gz"; const REMOTE: &str = "wasmcloud.azurecr.io/coolthing.par.gz"; let inspect_long: Cmd = clap::Parser::try_parse_from(&[ "par", "inspect", LOCAL, "--diges...
rust_cleaned_test_functions.jsonl/90225
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1382 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22654, 34386, 987, 2965, 52899, 368, 341, 286, 733, 42501, 25, 609, 495, 284, 5924, 42196, 1596, 33277, 20963, 876, 286, 733, 25587, 19158, 25, 609, 495, 284, 330, 86, 10530, 12361, 70240, 5082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ingress_message_side_effects_1() { let mut system_state = SystemStateBuilder::default().build(); system_state.freeze_threshold = NumSeconds::from(0); inject_ingress(&mut system_state); test_outgoing_messages( system_state, CALL_SIMPLE_WAT, |mut execute_mes...
rust_cleaned_test_functions.jsonl/17015
{ "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, 59112, 673, 6462, 30862, 83171, 62, 16, 368, 341, 262, 1077, 5206, 1849, 4387, 284, 739, 1397, 3297, 486, 2258, 1005, 5834, 543, 262, 1849, 4387, 76685, 21858, 284, 16212, 15343, 486, 1499, 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...
1
#[test] fn test_text() { let pubkey1 = secp256k1::PublicKey::from_str( "022e58afe51f9ed8ad3cc7897f634d881fdbe49a81564629ded8156bebd2ffd1af" ).unwrap(); let pubkey2 = secp256k1::PublicKey::from_str( "032e58afe51f9ed8ad3cc7897f634d881fdbe49a81564629ded8156bebd2ffd1a...
rust_cleaned_test_functions.jsonl/117293
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4326, 368, 341, 286, 1077, 95116, 16, 284, 511, 4672, 17, 20, 21, 74, 16, 486, 61822, 486, 1499, 2895, 1006, 310, 330, 15, 17, 17, 68, 20, 23, 5645, 20, 16, 69, 24, 291, 23, 329, 18, 638...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_instance() { let gil = Python::acquire_gil(); let py = gil.python(); assert!(py .is_instance::<PyBool, PyAny>(PyBool::new(py, true).into()) .unwrap()); let list = PyList::new(py, &[1, 2, 3, 4]); assert!(!py.is_instance::<PyBool, ...
rust_cleaned_test_functions.jsonl/1054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 220 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 11904, 368, 341, 286, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 286, 1077, 4510, 284, 342, 321, 43193, 543, 286, 2060, 10297, 3288, 198, 310, 659, 285, 11904, 27638, 13828...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_div() { let div_i64_cases: Vec<(i64, i64, i64, bool)> = vec![ (i64::MAX, 1, i64::MAX, false), (i64::MIN, 1, i64::MIN, false), (i64::MIN, -1, 0, true), (i64::MAX, -1, -i64::MAX, false), (1, -1, -1, false), (-1, 1, -1,...
rust_cleaned_test_functions.jsonl/18828
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 874 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16237, 368, 341, 286, 1077, 3429, 5318, 21, 19, 41427, 25, 11312, 28706, 72, 21, 19, 11, 600, 21, 19, 11, 600, 21, 19, 11, 1807, 16018, 284, 7486, 90515, 310, 320, 72, 21, 19, 486, 10586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_array_smaller_than_indices() { let values = NullArray::new(2); let indices = UInt32Array::from(vec![Some(0), None, Some(15)]); let result = take(&values, &indices, None).unwrap(); let expected: ArrayRef = Arc::new(NullArray::new(3)); assert_eq!(&resu...
rust_cleaned_test_functions.jsonl/27065
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 149 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15162, 3858, 15874, 13956, 51613, 18333, 368, 341, 286, 1077, 2750, 284, 18084, 1857, 486, 931, 7, 17, 317, 286, 1077, 14937, 284, 22275, 18, 17, 1857, 486, 1499, 25592, 20703, 8373, 7, 15, 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_jit_execution_engine() { let context = Context::create(); let module = context.create_module("main_module"); let builder = context.create_builder(); let i8_type = context.i8_type(); let i32_type = context.i32_type(); let i8_ptr_type = i8_type.ptr_type(AddressSpace::Generi...
rust_cleaned_test_functions.jsonl/33652
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 892 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5374, 275, 60948, 24823, 368, 341, 262, 1077, 2266, 284, 9608, 486, 3182, 543, 262, 1077, 4688, 284, 2266, 2520, 10750, 445, 3817, 10750, 797, 262, 1077, 7363, 284, 2266, 2520, 28532, 543, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_current_user_top_artists() { let mut oauth = SpotifyOAuth::default().scope("user-top-read").build(); match get_token(&mut oauth) { Some(token_info) => { let client_credential = SpotifyClientCredentials::default() .token_info(token_info) ...
rust_cleaned_test_functions.jsonl/79264
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11080, 3317, 10426, 36932, 1671, 368, 341, 262, 1077, 5206, 46415, 284, 40537, 57850, 486, 2258, 1005, 4186, 445, 872, 8175, 28806, 1827, 5834, 543, 262, 2432, 633, 6458, 2099, 6984, 46415, 8, 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_webpki_25519_v1_given() { let mut params = util::default_params(); params.alg = &rcgen::PKCS_ED25519; let kp = rcgen::KeyPair::from_pem(util::ED25519_TEST_KEY_PAIR_PEM_V1).unwrap(); params.key_pair = Some(kp); let cert = Certificate::from_params(params).unwrap(); // Now verify the certi...
rust_cleaned_test_functions.jsonl/74776
{ "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, 25960, 79, 6642, 62, 17, 20, 20, 16, 24, 2273, 16, 57653, 368, 341, 10217, 5206, 3628, 284, 4094, 486, 2258, 6745, 543, 25856, 12168, 70, 284, 609, 1287, 4370, 486, 22242, 6412, 32860, 17, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_error() { let text = "@color { Some red text }"; assert_eq!( translate_text(text), Err(TextMarkupError::EvalError( "Error at 1:1. @color call not provided with any arguments.".to_string() )) ); }
rust_cleaned_test_functions.jsonl/42597
{ "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, 4096, 368, 341, 286, 1077, 1467, 284, 8428, 3423, 314, 4329, 2518, 1467, 335, 3302, 286, 2060, 10714, 33673, 310, 14683, 4326, 7235, 1326, 310, 15495, 34082, 53088, 1454, 486, 54469, 1454, 1006, 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_acosh() { assert!(close(_0_0i.acosh(), _0_1i.scale(f64::consts::PI / 2.0))); assert!(close(_1_0i.acosh(), _0_0i)); assert!(close( _1_0i.scale(-1.0).acosh(), _0_1i.scale(f64::consts::PI) )); for &c in all_...
rust_cleaned_test_functions.jsonl/105701
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 451 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14718, 9267, 368, 341, 310, 2060, 10297, 5552, 2490, 15, 62, 15, 72, 15399, 9267, 1507, 716, 15, 62, 16, 72, 17266, 955, 21, 19, 486, 95773, 486, 1893, 608, 220, 17, 13, 15, 4945, 310, 2060,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_event_type() { assert_eq_dbg!( EventType::Default, *Annotated::<EventType>::from_json("\"default\"") .unwrap() .value() .unwrap() ); }
rust_cleaned_test_functions.jsonl/87703
{ "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, 6748, 1819, 368, 341, 262, 2060, 10714, 44124, 33673, 286, 63128, 486, 3675, 345, 286, 353, 2082, 87029, 27638, 47906, 6831, 1499, 9455, 38915, 2258, 2105, 1138, 310, 659, 15454, 741, 310, 659, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_bulk_string() { let resp_object = RespValue::BulkString(b"THISISATEST".to_vec()); let mut bytes = BytesMut::new(); let mut codec = RespCodec; codec.encode(resp_object.clone(), &mut bytes).unwrap(); assert_eq!(b"$11\r\nTHISISATEST\r\n".to_vec(), bytes.to_ve...
rust_cleaned_test_functions.jsonl/22225
{ "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, 71392, 3904, 368, 341, 286, 1077, 9039, 5314, 284, 79786, 1130, 486, 88194, 703, 1883, 1, 35912, 1637, 61666, 3263, 983, 13251, 1423, 286, 1077, 5206, 5820, 284, 30024, 51440, 486, 931, 543, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_list_array_offsets_need_not_start_at_zero() { let value_data = ArrayData::builder(DataType::Int32) .len(8) .add_buffer(Buffer::from_slice_ref(&[0, 1, 2, 3, 4, 5, 6, 7])) .build() .unwrap(); let value_offsets = Buffer::from_slice_re...
rust_cleaned_test_functions.jsonl/98900
{ "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, 2019, 3858, 56924, 71506, 7913, 4906, 3752, 19359, 368, 341, 286, 1077, 897, 1769, 284, 2910, 1043, 486, 17850, 63941, 486, 1072, 18, 17, 340, 310, 659, 2892, 7, 23, 340, 310, 659, 718, 7776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bestmove_noponder() { let e2e4 = ChessMove::new( Square::make_square(Rank::Second, File::E), Square::make_square(Rank::Fourth, File::E), None, ); test_parse("bestmove e2e4\n", BestMove::new(e2e4)); }
rust_cleaned_test_functions.jsonl/83012
{ "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, 33101, 3397, 1089, 453, 14184, 368, 341, 262, 1077, 384, 17, 68, 19, 284, 47387, 9860, 486, 931, 1006, 286, 15619, 486, 6927, 39794, 2785, 1180, 486, 15666, 11, 2887, 486, 36, 1326, 286, 15619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_subscript() { test! { let sym_a = AST::SimpleIdentifier(SimpleIdentifier::new_wrapped("a".to_string())); let sym_b = AST::SimpleIdentifier(SimpleIdentifier::new_wrapped("b".to_string())); let subscript = AST::Subscript(crate::python::Subscript::new_wra...
rust_cleaned_test_functions.jsonl/75450
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 2282, 368, 341, 286, 1273, 0, 341, 310, 1077, 7886, 4306, 284, 22465, 486, 16374, 8714, 3759, 6456, 8714, 486, 931, 44074, 5677, 445, 64, 3263, 983, 3904, 7392, 310, 1077, 7886, 880, 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_query_error() { let mut mint = Mint::new("tests/it/testdata"); let mut file = mint.new_goldenfile("query-error.txt").unwrap(); let cases = &[ "select * from customer join where a = b", "select * from join customer", "select * from customer natural inner join o...
rust_cleaned_test_functions.jsonl/118105
{ "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, 5738, 4096, 368, 341, 262, 1077, 5206, 28337, 284, 41310, 486, 931, 445, 23841, 14, 275, 12697, 691, 797, 262, 1077, 5206, 1034, 284, 28337, 4618, 54696, 268, 1192, 445, 1631, 18917, 3909, 1827, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_buffer_enqueue_many() { let mut ring = RingBuffer::new(vec![b'.'; 12]); ring.enqueue_many(8).copy_from_slice(b"abcdefgh"); assert_eq!(ring.len(), 8); assert_eq!(&ring.storage[..], b"abcdefgh...."); ring.enqueue_many(8).copy_from_slice(b"ijkl"); a...
rust_cleaned_test_functions.jsonl/37264
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7776, 28395, 22101, 368, 341, 286, 1077, 5206, 10058, 284, 21525, 4095, 486, 931, 25592, 20703, 65, 6, 3159, 26, 220, 16, 17, 10149, 286, 10058, 47468, 22101, 7, 23, 568, 8560, 5673, 26488, 1883...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_live_submit() { let agent = MetricsAgent::default(); let point = influxdb::Point::new("live_submit_test") .add_tag("test", influxdb::Value::Boolean(true)) .add_field( "random_bool", influxdb::Value::Boolean(rand::random::<u...
rust_cleaned_test_functions.jsonl/36629
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 303 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55203, 31674, 368, 341, 286, 1077, 8315, 284, 54190, 16810, 486, 2258, 1428, 286, 1077, 1459, 284, 52852, 1999, 486, 2609, 486, 931, 445, 24822, 31674, 4452, 1138, 310, 659, 718, 9372, 445, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_device_fail() { let mut mock_nzxt_device_handle = setup_mocks(); // Mock the failure to read from device handle. mock_nzxt_device_handle .expect_read_interrupt() .returning(|_, _, _| Err(eyre!("Mock error"))); let mock_nzxt_device = N...
rust_cleaned_test_functions.jsonl/78159
{ "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, 5921, 9204, 22121, 368, 341, 286, 1077, 5206, 7860, 1089, 89, 2252, 9204, 10630, 284, 6505, 717, 25183, 1428, 286, 442, 14563, 279, 7901, 311, 1349, 504, 3671, 3705, 624, 286, 7860, 1089, 89, 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_cpu_usage() -> Result<(), Error> { let system = System::create()?; let usage = system.get_cpu_usage()?; println!("usage: {:?}", usage); system.release() }
rust_cleaned_test_functions.jsonl/88472
{ "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, 21795, 31507, 368, 1464, 5714, 68843, 4600, 29, 341, 262, 1077, 1849, 284, 739, 486, 3182, 94136, 262, 1077, 10431, 284, 1849, 670, 21795, 31507, 94136, 262, 13751, 17223, 17698, 25, 71964, 10431, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_write_batch_ref_iter() { inner_test_write_batch_iter(|db, wb| { let wb_ref = WriteBatchRef::new(wb.data()); assert_eq!(wb.count(), wb_ref.count()); for (value_type, c, key, value) in wb_ref.iter() { let handle = db.cf_handle_by_id(c as ...
rust_cleaned_test_functions.jsonl/36970
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 496 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 14534, 7793, 11723, 368, 341, 286, 9179, 4452, 9165, 14534, 11723, 22428, 1999, 11, 37858, 91, 341, 310, 1077, 37858, 7793, 284, 9645, 21074, 3945, 486, 931, 3622, 65, 2196, 1423, 310, 2060,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_heif() { let info = Infer::new(); assert_eq!(infer::Type { mime: String::from("image/heif"), ext: String::from("heif"), }, info.get(&fs::read("testdata/sample.heic").unwrap()).unwrap()); }
rust_cleaned_test_functions.jsonl/110140
{ "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, 41876, 333, 368, 341, 262, 1077, 3546, 284, 62658, 486, 931, 543, 1066, 262, 2060, 10714, 10297, 89559, 486, 929, 314, 715, 286, 45270, 25, 923, 486, 1499, 445, 1805, 77056, 333, 3975, 715, 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_lazy_window_functions() { let df = df! { "groups" => &[1, 1, 2, 2, 1, 2, 3, 3, 1], "values" => &[1, 2, 3, 4, 5, 6, 7, 8, 8] } .unwrap(); // sums let correct = [16, 16, 13, 13, 16, 13, 15, 15, 16] ...
rust_cleaned_test_functions.jsonl/14680
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 589 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49646, 12571, 31708, 368, 341, 286, 1077, 6764, 284, 6764, 0, 341, 310, 330, 16753, 1, 589, 44590, 16, 11, 220, 16, 11, 220, 17, 11, 220, 17, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 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_array_chunks_count() { let v: &[i32] = &[0, 1, 2, 3, 4, 5]; let c = v.array_chunks::<3>(); assert_eq!(c.count(), 2); let v2: &[i32] = &[0, 1, 2, 3, 4]; let c2 = v2.array_chunks::<2>(); assert_eq!(c2.count(), 2); let v3: &[i32] = &[]; let c3 = v3.array_chunks::<2...
rust_cleaned_test_functions.jsonl/9643
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 199 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 65470, 3180, 368, 341, 262, 1077, 348, 25, 44590, 72, 18, 17, 60, 284, 44590, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 262, 1077, 272, 284, 348, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sum_negative() { assert_eq!(rune!(i32 => pub fn main() { [1, -2, 3].iter().sum() }), 2) }
rust_cleaned_test_functions.jsonl/33613
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 58 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10160, 53865, 368, 341, 262, 2060, 10714, 10297, 81, 2886, 10297, 72, 18, 17, 589, 6675, 5168, 1887, 368, 314, 508, 16, 11, 481, 17, 11, 220, 18, 936, 2015, 1005, 1242, 368, 31706, 220, 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
#[test] fn test_union_with_data_members_with_different_sizes() { let ir = ir_from_cc( r#" union MyUnion { char first_field[56]; int second_field; }; "#, ) .unwrap(); assert_ir_matches!( ir, quote! { Record { ... rs_name:...
rust_cleaned_test_functions.jsonl/37207
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 483 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51621, 6615, 1769, 30397, 6615, 82741, 32159, 368, 341, 262, 1077, 6216, 284, 6216, 5673, 28955, 1006, 286, 435, 2, 698, 262, 11300, 3017, 32658, 341, 414, 1161, 1156, 5013, 58, 20, 21, 935, 414...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_domain_parse_domain_too_long() { const LABELS: usize = 10; const SIZE: usize = MAX_LABEL_SIZE * LABELS; let mut packet = Vec::<u8>::with_capacity(SIZE); for _ in 0..LABELS { packet.push(MAX_LABEL_SIZE as u8); for _ in 0..MAX_LABEL_SIZE { ...
rust_cleaned_test_functions.jsonl/34445
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20111, 21039, 20111, 2346, 78, 17799, 368, 341, 286, 733, 56874, 50, 25, 22301, 284, 220, 16, 15, 280, 286, 733, 25341, 25, 22301, 284, 8334, 25670, 4098, 353, 56874, 50, 280, 286, 1077, 5206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_rw_lock_read_guard() { let rw_lock = RwLock::new(()); let ptr = &rw_lock.read().unwrap() as &dyn AliasableDeref<Target = ()>; assert_eq!(ptr.deref(), &()); }
rust_cleaned_test_functions.jsonl/72897
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49566, 9818, 6443, 36796, 368, 341, 286, 1077, 25991, 9818, 284, 55294, 11989, 486, 931, 7, 1423, 286, 1077, 10087, 284, 609, 31768, 9818, 4125, 1005, 15454, 368, 438, 609, 43085, 58040, 480, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_indirect_am() { let mut cpu = setup(0x00, true, 0x6C, Some(0x10FF)); cpu.writ_byte(0x10FF, 0x01); cpu.writ_byte(0x1000, 0xA7); let result = indirect_am(&mut cpu); assert_eq!(result.ok(), Some(AbsoluteAddress(0xA701))); }
rust_cleaned_test_functions.jsonl/26582
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9122, 1226, 22880, 368, 341, 286, 1077, 5206, 17319, 284, 6505, 7, 15, 87, 15, 15, 11, 830, 11, 220, 15, 87, 21, 34, 11, 4329, 7, 15, 87, 16, 15, 1748, 1106, 286, 17319, 78173, 19737, 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_part1() { assert_eq!( 127, Task.part1(( vec![ 35, 20, 15, 25, 47, 40, 62, 55, 65, 95, 102, 117, 150, 182, 127, 219, 299, 277, 309, 576 ], 5 )) ); }
rust_cleaned_test_functions.jsonl/41806
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 16, 368, 341, 286, 2060, 10714, 33673, 310, 220, 16, 17, 22, 345, 310, 5430, 23520, 16, 94702, 394, 7486, 90515, 503, 220, 18, 20, 11, 220, 17, 15, 11, 220, 16, 20, 11, 220, 17, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_write_set_of() { assert_writes(&[ (SetOfWriter::new(&[]), b"\x31\x00"), (SetOfWriter::new(&[1u8]), b"\x31\x03\x02\x01\x01"), ( SetOfWriter::new(&[1, 2, 3]), b"\x31\x09\x02\x01\x01\x02\x01\x02\x02\x01\x03", ),...
rust_cleaned_test_functions.jsonl/129901
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 454 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 2602, 3575, 368, 341, 286, 2060, 1670, 23262, 2099, 9640, 310, 320, 1649, 2124, 6492, 486, 931, 2099, 1294, 701, 293, 11934, 87, 18, 16, 3462, 15, 15, 4461, 310, 320, 1649, 2124, 6492, 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_seq_long() { check(Vec::<i32>::new(), Some(4)); check(vec![0i32, 1, 2], Some(4 + 4 * 3)); }
rust_cleaned_test_functions.jsonl/79660
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 66 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14486, 17799, 368, 341, 262, 1779, 49923, 27638, 72, 18, 17, 6831, 931, 1507, 4329, 7, 19, 1106, 262, 1779, 25592, 20703, 15, 72, 18, 17, 11, 220, 16, 11, 220, 17, 1125, 4329, 7, 19, 488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_leader_timeout() { let mut suite = TestSuite::new(3); let region = suite.cluster.get_region(&[]); // Prewrite let (k, v) = (b"k1", b"v"); let start_ts = block_on(suite.cluster.pd_client.get_tso()).unwrap(); let mut mutation = Mutation::default(); mutation.set_o...
rust_cleaned_test_functions.jsonl/117184
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 600 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 79991, 20537, 368, 341, 262, 1077, 5206, 16182, 284, 3393, 28000, 486, 931, 7, 18, 317, 262, 1077, 5537, 284, 16182, 40501, 670, 20627, 2099, 1294, 626, 262, 442, 393, 52473, 198, 262, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_basic_flow() { let (mut smp, peers) = SharedMempoolNetwork::bootstrap_validator_network(2, 1); let (peer_a, peer_b) = (peers.get(0).unwrap(), peers.get(1).unwrap()); smp.add_txns( &peer_a, vec![ TestTransaction::new(1, 0, 1), TestTransaction::n...
rust_cleaned_test_functions.jsonl/31468
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 357 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 27441, 368, 341, 262, 1077, 320, 6984, 274, 1307, 11, 25029, 8, 284, 16990, 44, 3262, 1749, 12320, 486, 6281, 64959, 20966, 7, 17, 11, 220, 16, 317, 262, 1077, 320, 16537, 4306, 11, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sigwait() { let mut mask = SigSet::empty(); mask.add(SIGUSR1); mask.add(SIGUSR2); mask.thread_block().unwrap(); raise(SIGUSR1).unwrap(); assert_eq!(mask.wait().unwrap(), SIGUSR1); }
rust_cleaned_test_functions.jsonl/8931
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29252, 11489, 368, 341, 286, 1077, 5206, 6911, 284, 41560, 1649, 486, 3194, 543, 286, 6911, 1364, 52516, 49558, 16, 317, 286, 6911, 1364, 52516, 49558, 17, 317, 286, 6911, 45210, 7113, 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_cast_i32_utf8() -> Result<()> { generic_test_cast!( Int32Array, DataType::Int32, vec![1, 2, 3, 4, 5], StringArray, DataType::Utf8, vec!["1", "2", "3", "4", "5"] ); Ok(()) }
rust_cleaned_test_functions.jsonl/22561
{ "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, 5303, 5318, 18, 17, 39453, 23, 368, 1464, 5714, 71698, 341, 286, 13954, 4452, 5303, 33673, 310, 1333, 18, 17, 1857, 345, 310, 33172, 486, 1072, 18, 17, 345, 310, 7486, 20703, 16, 11, 220, 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_render_to_prometheus_simple() { const REF : &str= "# HELP wireguard_sent_bytes_total Bytes sent to the peer\n# TYPE wireguard_sent_bytes_total counter\nwireguard_sent_bytes_total{interface=\"Pippo\",public_key=\"test\",allowed_ips=\"to_change\",remote_ip=\"remote_ip\",remote_port=\"100\"...
rust_cleaned_test_functions.jsonl/13453
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 626 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22781, 2346, 47877, 39705, 30015, 368, 341, 286, 733, 38029, 549, 609, 495, 28, 5869, 55471, 9067, 26098, 24115, 12524, 10784, 30024, 3208, 311, 279, 14397, 1699, 2, 12454, 9067, 26098, 24115, 12524...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_slice() { assert_eq!(&SmallVec::<[u32; 2]>::from_slice(&[1][..])[..], [1]); assert_eq!( &SmallVec::<[u32; 2]>::from_slice(&[1, 2, 3][..])[..], [1, 2, 3] ); }
rust_cleaned_test_functions.jsonl/88164
{ "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, 5673, 26488, 368, 341, 286, 2060, 10714, 0, 2099, 25307, 10050, 27638, 58, 84, 18, 17, 26, 220, 17, 60, 6831, 1499, 26488, 2099, 58, 16, 1457, 496, 40005, 496, 1125, 508, 16, 2558, 286, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_boolean_literal() { test! { let sym = AST::BooleanLiteral(BooleanLiteral::new_wrapped(true)); let r_node = sym.to_r_ast_node(0); assert_eq!(r_node, eval_string("quote(TRUE)").unwrap()); } }
rust_cleaned_test_functions.jsonl/75451
{ "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, 46642, 34100, 368, 341, 286, 1273, 0, 341, 310, 1077, 7886, 284, 22465, 486, 6890, 17350, 39969, 17350, 486, 931, 44074, 5677, 3715, 1106, 310, 1077, 435, 5084, 284, 7886, 2389, 1710, 48019, 5084,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_func_type() { // test FuncType with args and returns { let param_tys = vec![ ValType::I32, ValType::I64, ValType::F32, ValType::F64, ValType::V128, ValType::ExternRef, ...
rust_cleaned_test_functions.jsonl/100773
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1078 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9596, 1819, 368, 341, 286, 442, 1273, 18016, 929, 448, 2827, 323, 4675, 198, 286, 341, 310, 1077, 1685, 528, 1047, 284, 7486, 90515, 394, 4104, 929, 486, 40, 18, 17, 345, 394, 4104, 929, 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_parse_post() { let mut buf = BytesMut::from("POST /test2 HTTP/1.0\r\n\r\n"); let settings = WorkerSettings::<HttpApplication>::new(Vec::new(), KeepAlive::Os); let mut reader = H1Decoder::new(); match reader.decode(&mut buf, &settings) { Ok(Some(msg)) ...
rust_cleaned_test_functions.jsonl/110381
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 325 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 6333, 368, 341, 286, 1077, 5206, 6607, 284, 30024, 51440, 486, 1499, 445, 2946, 608, 1944, 17, 10130, 14, 16, 13, 15, 12016, 1699, 12016, 1699, 797, 286, 1077, 5003, 284, 33086, 6086, 276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_exponential_distribution() { let dataset = Dataset::from_f64_vec(generate_exponential_dataset(2.0, 500)); evaluate_sketch(dataset); }
rust_cleaned_test_functions.jsonl/7530
{ "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, 2702, 59825, 41465, 368, 341, 286, 1077, 10337, 284, 39183, 486, 1499, 761, 21, 19, 13251, 3268, 13220, 2702, 59825, 18999, 7, 17, 13, 15, 11, 220, 20, 15, 15, 1106, 286, 15442, 33811, 2995, 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
#[test] fn test_hero_name_and_friends() { let doc = r#" { hero { id name friends { name } } }"#; let database = Database::new(); let schema = RootNode::new(&database, EmptyMuta...
rust_cleaned_test_functions.jsonl/35463
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1462 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 78716, 1269, 8378, 75430, 368, 341, 262, 1077, 4629, 284, 435, 2, 698, 286, 341, 310, 11821, 341, 394, 877, 198, 394, 829, 198, 394, 4780, 341, 503, 829, 198, 394, 456, 310, 456, 286, 335, 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_single_row_insert_default_values() { let query = Insert::single_into("users"); let (sql, params) = Mysql::build(query); assert_eq!("INSERT INTO `users` () VALUES ()", sql); assert_eq!(default_params(vec![]), params); }
rust_cleaned_test_functions.jsonl/132539
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 121 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 8530, 17678, 9993, 9146, 368, 341, 286, 1077, 3239, 284, 17101, 486, 15338, 45514, 445, 4218, 797, 286, 1077, 320, 3544, 11, 3628, 8, 284, 386, 14869, 486, 5834, 10741, 626, 286, 2060, 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_bad_commas() { let bad_insts = vec![ "add x5, sp, fp,", "add ,x1, x2, x3", ",add x1 x2 x3", "add x1,,x2, x3", ]; for inst in bad_insts { let ParseResult { reporter, .. } = Parser::<Rv32>::parse_str(0, inst); ...
rust_cleaned_test_functions.jsonl/91960
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34199, 2965, 6899, 368, 341, 286, 1077, 3873, 17740, 82, 284, 7486, 90515, 310, 330, 718, 856, 20, 11, 978, 11, 12007, 11, 756, 310, 330, 718, 1154, 87, 16, 11, 856, 17, 11, 856, 18, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_deserialize() { let snowflake = Snowflake::from(80351110224678912); let value = json!(80351110224678912u64); assert_eq!(snowflake, Snowflake::deserialize(&value).unwrap()); let value = json!("80351110224678912"); assert_eq!(snowflake, Snowflake::deserialize(&value).unwrap()...
rust_cleaned_test_functions.jsonl/133191
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 368, 341, 262, 1077, 11794, 63456, 284, 18901, 63456, 486, 1499, 7, 23, 15, 18, 20, 16, 16, 16, 15, 17, 17, 19, 21, 22, 23, 24, 16, 17, 626, 262, 1077, 897, 284, 2951, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_float_bits_conv() { assert_eq!((1f32).to_bits(), 0x3f800000); assert_eq!((12.5f32).to_bits(), 0x41480000); assert_eq!((1337f32).to_bits(), 0x44a72000); assert_eq!((-14.25f32).to_bits(), 0xc1640000); assert_approx_eq!(f32::from_bits(0x3f800000), 1.0); ...
rust_cleaned_test_functions.jsonl/104400
{ "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, 17586, 20034, 22716, 368, 341, 286, 2060, 10714, 0, 1188, 16, 69, 18, 17, 568, 983, 20034, 1507, 220, 15, 87, 18, 69, 23, 15, 15, 15, 15, 15, 317, 286, 2060, 10714, 0, 1188, 16, 17, 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_lstrip() { use super::lstrip; assert_eq!(lstrip("a", "a"), ""); assert_eq!(lstrip("a", "ab"), "a"); assert_eq!(lstrip("", "ab"), ""); assert_eq!(lstrip("", ""), ""); assert_eq!(lstrip("a", ""), "a"); assert_eq!(lstrip("aa", "a"), "a"); ...
rust_cleaned_test_functions.jsonl/77573
{ "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, 907, 13105, 368, 341, 286, 990, 2256, 486, 75, 13105, 280, 286, 2060, 10714, 10297, 75, 13105, 445, 64, 497, 330, 64, 3975, 14498, 286, 2060, 10714, 10297, 75, 13105, 445, 64, 497, 330, 370, 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_hover_infer_associated_method_exact() { check( r#" mod wrapper { struct Thing { x: u32 } impl Thing { fn new() -> Thing { Thing { x: 0 } } } } fn main() { let foo_test = wrapper::Thing::new<|>(); } "#, expect![[r#" *new* ...
rust_cleaned_test_functions.jsonl/66117
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 312 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 1243, 802, 58665, 657, 9032, 71084, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 2593, 13261, 341, 262, 2036, 37200, 314, 856, 25, 575, 18, 17, 555, 262, 11605, 37200, 341, 286, 5168, 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_cached_return_flag() { let r = cached_return_flag(1); assert!(!r.was_cached); assert_eq!(*r, 1); let r = cached_return_flag(1); assert!(r.was_cached); // derefs to inner assert_eq!(*r, 1); assert!(r.is_positive()); { let cache = CACHED_RETURN_FLAG.lock...
rust_cleaned_test_functions.jsonl/13135
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64369, 12511, 10933, 368, 341, 262, 1077, 435, 284, 20579, 12511, 10933, 7, 16, 317, 262, 2060, 0, 3471, 81, 1418, 300, 64369, 317, 262, 2060, 10714, 0, 4071, 81, 11, 220, 16, 317, 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
#[test] fn test_range_inclusive_size_hint() { assert_eq!((1..=0usize).size_hint(), (0, Some(0))); assert_eq!((0..=0usize).size_hint(), (1, Some(1))); assert_eq!((0..=100usize).size_hint(), (101, Some(101))); assert_eq!((0..=usize::MAX - 1).size_hint(), (usize::MAX, Some(usize::MAX))); assert...
rust_cleaned_test_functions.jsonl/70249
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 779 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 1243, 8336, 2368, 45825, 368, 341, 262, 2060, 10714, 0, 1188, 16, 496, 28, 15, 51878, 568, 2141, 45825, 1507, 320, 15, 11, 4329, 7, 15, 4945, 262, 2060, 10714, 0, 1188, 15, 496, 28, 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_allow_threads_panics_safely() { if option_env!("RUSTFLAGS") .map(|s| s.contains("-Cpanic=abort")) .unwrap_or(false) { return; } let gil = Python::acquire_gil(); let py = gil.python(); let result = std:...
rust_cleaned_test_functions.jsonl/1056
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 418 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55731, 29725, 71099, 1211, 643, 2577, 974, 368, 341, 1789, 286, 421, 2999, 15879, 17223, 49, 8553, 32748, 1138, 310, 659, 2186, 22428, 82, 91, 274, 8786, 13645, 34, 19079, 28, 46699, 5455, 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...
4
#[test] fn test_is_byte_whitespace_works_on_upper_half_values() { assert!(is_byte_whitespace(128)); assert!(is_byte_whitespace(128 + 1)); assert!(is_byte_whitespace(128 + 32)); assert!(!is_byte_whitespace(128 + 48)); }
rust_cleaned_test_functions.jsonl/61825
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 19737, 86175, 11498, 82, 4470, 34445, 40626, 9146, 368, 972, 286, 2060, 10297, 285, 19737, 86175, 7, 16, 17, 23, 4860, 286, 2060, 10297, 285, 19737, 86175, 7, 16, 17, 23, 488, 220, 16, 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_gcd() { assert_eq!(gcd(2 * 3 * 5 * 11 * 17, 3 * 7 * 11 * 13 * 19), 3 * 11); }
rust_cleaned_test_functions.jsonl/30116
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 56 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 4385, 368, 341, 262, 2060, 10714, 10297, 91289, 7, 17, 353, 220, 18, 353, 220, 20, 353, 220, 16, 16, 353, 220, 16, 22, 11, 220, 18, 353, 220, 22, 353, 220, 16, 16, 353, 220, 16, 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
#[test] fn test_ps() { let runc_id = format!("{}", Uuid::new_v4()); let runc_path = env::temp_dir().join(&runc_id).join("runc.amd64"); let runc_root = PathBuf::from(env::var_os("XDG_RUNTIME_DIR").expect("expected temporary path")) .join("rust-runc") ...
rust_cleaned_test_functions.jsonl/24470
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26047, 368, 341, 286, 1077, 435, 1347, 842, 284, 3561, 79878, 547, 2423, 486, 931, 2273, 19, 1423, 286, 1077, 435, 1347, 2638, 284, 6105, 486, 3888, 4334, 1005, 5987, 2099, 81, 1347, 842, 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...
6
#[test] fn test_return_status_without_existing_lints() { let lints: Vec<Lint> = Vec::new(); assert!(return_warnings(&lints, true).is_ok()); assert!(return_warnings(&lints, false).is_ok()); }
rust_cleaned_test_functions.jsonl/32065
{ "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, 12511, 4773, 39904, 62630, 907, 21042, 368, 341, 286, 1077, 326, 21042, 25, 11312, 27, 47556, 29, 284, 11312, 486, 931, 1428, 286, 2060, 10297, 689, 87658, 2099, 14957, 82, 11, 830, 568, 285, 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
#[test] fn test_f32x4_packed_comparisons() { let a = F32x4::new(7.0, 3.0, 6.0, -2.0); let b = F32x4::new(10.0, 3.0, 5.0, -2.0); assert_eq!(a.packed_eq(b), U32x4::new(0, !0, 0, !0)); assert_eq!(a.packed_gt(b), U32x4::new(0, 0, !0, 0)); assert_eq!(a.packed_le(b), U32x4::new(!0, !0, 0, !0)); }
rust_cleaned_test_functions.jsonl/66184
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 18, 17, 87, 19, 620, 11191, 2965, 1732, 19379, 368, 341, 262, 1077, 264, 284, 434, 18, 17, 87, 19, 486, 931, 7, 22, 13, 15, 11, 220, 18, 13, 15, 11, 220, 21, 13, 15, 11, 481, 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_explicit_close() { let mut f = { let m = posix_openpt(OFlag::O_RDWR).unwrap(); close(m.into_raw_fd()).unwrap(); tempfile().unwrap() }; // return EBADF f.write_all(b"whatever").unwrap(); }
rust_cleaned_test_functions.jsonl/72574
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14214, 6026, 12704, 368, 341, 262, 1077, 5206, 282, 284, 341, 286, 1077, 296, 284, 98343, 11311, 417, 19238, 12135, 486, 46, 66266, 568, 15454, 543, 286, 3265, 1255, 39860, 16067, 17676, 6011, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_err_mod_by_zero_reg() { test_interpreter_and_jit_asm!( " mov32 r0, 1 mov32 r1, 0 mod32 r0, r1 exit", [], (), { |_vm, res: Result| matches!(res.unwrap_err(), EbpfError::DivideByZero(pc) if pc == 31) }, 3 ); }
rust_cleaned_test_functions.jsonl/58968
{ "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, 9266, 7480, 3710, 19359, 4920, 368, 341, 262, 1273, 15318, 28637, 8378, 5374, 275, 67529, 33673, 286, 6228, 286, 1974, 18, 17, 435, 15, 11, 220, 16, 198, 286, 1974, 18, 17, 435, 16, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_seek_and_prev_with_prefix_seek() { let path = Builder::new().prefix("test-cursor").tempdir().unwrap(); let mut cf_opts = ColumnFamilyOptions::new(); let e = Box::new(FixedPrefixSliceTransform::new(3)); cf_opts .set_prefix_extractor("FixedPrefixSliceTra...
rust_cleaned_test_functions.jsonl/18853
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 890 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74473, 8378, 25566, 6615, 13974, 74473, 368, 341, 286, 1077, 1815, 284, 20626, 486, 931, 1005, 11849, 445, 1944, 1786, 3823, 1827, 3888, 3741, 1005, 15454, 543, 286, 1077, 5206, 24111, 32354, 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_rigid_inverse() { let translation = Vector3D::new(12.1, 17.8, -5.5); let rotation = Rotation3D::unit_quaternion(0.5, -7.8, 2.2, 4.3); let rigid = RigidTransform3D::new(rotation, translation); let inverse = rigid.inverse(); assert!(rigid .then(...
rust_cleaned_test_functions.jsonl/43230
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 271 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 20926, 63333, 368, 341, 286, 1077, 14468, 284, 4196, 18, 35, 486, 931, 7, 16, 17, 13, 16, 11, 220, 16, 22, 13, 23, 11, 481, 20, 13, 20, 317, 286, 1077, 12695, 284, 47528, 18, 35, 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_iterator_filter_count() { let xs = [0, 1, 2, 3, 4, 5, 6, 7, 8]; assert_eq!(xs.iter().filter(|&&x| x % 2 == 0).count(), 5); }
rust_cleaned_test_functions.jsonl/25897
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 79 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 8727, 3180, 368, 341, 262, 1077, 11943, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 935, 262, 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...
2
#[test] fn test_creating_and_adding_parameters() { let mut parameter_store = ParameterStore::new(); let parameter = Arc::new(PluginParameter::builder().name("Test parameter").build()); parameter_store.add_parameter("test", parameter); let first_parameter_name = parameter_store.g...
rust_cleaned_test_functions.jsonl/58507
{ "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, 666, 72810, 8378, 2891, 287, 18263, 368, 341, 286, 1077, 5206, 5733, 14809, 284, 15168, 6093, 486, 931, 543, 286, 1077, 5733, 284, 19689, 486, 931, 7, 11546, 4971, 486, 17850, 1005, 606, 445, 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_interval() -> Result<()> { let query: Query = parse( r###" from projects derive first_check_in = start + 10days "###, )?; assert_display_snapshot!((resolve_and_translate(query)?), @r###" SELECT projects.*, s...
rust_cleaned_test_functions.jsonl/62566
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20541, 368, 1464, 5714, 71698, 341, 286, 1077, 3239, 25, 11361, 284, 4715, 1006, 310, 435, 14374, 698, 286, 504, 7079, 198, 286, 42430, 1156, 7200, 1243, 284, 1191, 488, 220, 16, 15, 13778, 198,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_n_greater_than_number_of_lines() { new_ucmd!() .arg("-n") .arg("99999999") .arg(FOOBAR_TXT) .run() .stdout_is_fixture(FOOBAR_TXT); }
rust_cleaned_test_functions.jsonl/31120
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 121 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 97994, 51613, 5500, 3575, 18323, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 13645, 77, 1138, 286, 659, 858, 445, 24, 24, 24, 24, 24, 24, 24, 24, 1138, 286, 659, 858, 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_user_playlist_check_follow() { let mut oauth = SpotifyOAuth::default() .scope("playlist-modify-private playlist-modify-public") .build(); match get_token(&mut oauth) { Some(token_info) => { let client_credential = SpotifyClientCredentials::default() ...
rust_cleaned_test_functions.jsonl/79287
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 526 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3317, 69267, 7200, 43490, 368, 341, 262, 1077, 5206, 46415, 284, 40537, 57850, 486, 2258, 741, 286, 659, 4186, 445, 34233, 17078, 1437, 65277, 26791, 17078, 1437, 56471, 1138, 286, 659, 5834, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_attribute_flag_present() { let buf = [0x01, 0x02, 0x03, 0x04]; let unit = test_parse_attribute_unit_default(); let form = constants::DW_FORM_flag_present; let value = AttributeValue::Flag(true); // DW_FORM_flag_present does not consume any bytes of t...
rust_cleaned_test_functions.jsonl/102025
{ "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, 21039, 16791, 10933, 36976, 368, 341, 286, 1077, 6607, 284, 508, 15, 87, 15, 16, 11, 220, 15, 87, 15, 17, 11, 220, 15, 87, 15, 18, 11, 220, 15, 87, 15, 19, 935, 286, 1077, 4982, 284, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mulmod_opcode() { let default_code = vec![0x60, 0x10, 0x60, 0x05, 0x60, 0x05, 0x09]; let mut vm = VM::new(default_code); let result = vm.execute_one(); assert!(result.is_ok()); let result = vm.execute_one(); assert!(result.is_ok()); let res...
rust_cleaned_test_functions.jsonl/125704
{ "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, 24944, 2593, 71319, 368, 341, 286, 1077, 1638, 4136, 284, 7486, 20703, 15, 87, 21, 15, 11, 220, 15, 87, 16, 15, 11, 220, 15, 87, 21, 15, 11, 220, 15, 87, 15, 20, 11, 220, 15, 87, 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