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_valid_elasticbeanstalk_retrieve_environment_info() { let mock_response = MockResponseReader::read_response( "test_resources/generated/valid", "elasticbeanstalk-retrieve-environment-info.xml", ); let mock = MockRequestDispatcher::with_status(2...
rust_cleaned_test_functions.jsonl/15245
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 269 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8337, 21602, 5064, 17479, 89749, 1288, 34216, 51774, 3109, 368, 341, 286, 1077, 7860, 9655, 284, 14563, 2582, 5062, 486, 878, 9655, 1006, 310, 330, 1944, 35569, 79372, 14, 1891, 756, 310, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_width_without_value() { let input: [u8; 40] = [0; 40]; let expected_output = unindent(" 0000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 0000040 000000 000000 000000 000000 0000050 ...
rust_cleaned_test_functions.jsonl/48811
{ "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, 7927, 39904, 3142, 368, 341, 262, 1077, 1946, 25, 508, 84, 23, 26, 220, 19, 15, 60, 284, 508, 15, 26, 220, 19, 15, 935, 262, 1077, 3601, 7645, 284, 650, 32840, 70576, 310, 220, 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_generic_bound() { err( "class A[T: Foo]", pos(1, 12), SemError::UnknownType("Foo".into()), ); ok("class Foo class A[T: Foo]"); ok("trait Foo {} class A[T: Foo]"); }
rust_cleaned_test_functions.jsonl/84186
{ "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, 41232, 19447, 368, 341, 286, 1848, 1006, 310, 330, 1040, 362, 20340, 25, 33428, 45016, 310, 1133, 7, 16, 11, 220, 16, 17, 1326, 310, 14248, 1454, 486, 13790, 929, 445, 40923, 3263, 18122, 14702,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deserialize_snapshot_data_file_over_limit() { let expected_data = 2323_u32; let expected_consumed_size = size_of::<u32>() as u64; let temp_dir = tempfile::TempDir::new().unwrap(); serialize_snapshot_data_file_capped( &temp_dir.path().join("data-file")...
rust_cleaned_test_functions.jsonl/53295
{ "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, 15768, 9050, 53265, 1769, 2458, 15431, 14763, 368, 341, 286, 1077, 3601, 1769, 284, 220, 17, 18, 17, 18, 7300, 18, 17, 280, 286, 1077, 3601, 69870, 291, 2368, 284, 1379, 3575, 27638, 84, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_serde_ser_externally_tagged_enum() -> Result<(), Box<EvalAltResult>> { #[derive(Serialize)] enum MyEnum { VariantUnit, #[cfg(not(feature = "no_index"))] VariantUnitTuple(), VariantNewtype(i32), #[cfg(not(feature = "no_index"))] VariantTuple...
rust_cleaned_test_functions.jsonl/97328
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 957 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75861, 450, 75861, 62, 4301, 745, 9372, 3556, 31054, 368, 1464, 5714, 68843, 8261, 23835, 831, 26017, 2077, 2452, 341, 262, 11506, 27098, 3759, 9050, 5563, 262, 7618, 3017, 10766, 341, 286, 39292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
#[test] fn test_create_tx_absolute_high_fee() { let (wallet, _, _) = get_funded_wallet(get_test_wpkh()); let addr = wallet.get_new_address().unwrap(); let (_psbt, _details) = wallet .create_tx( TxBuilder::new() .set_single_recipient(addr.sc...
rust_cleaned_test_functions.jsonl/11330
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 17805, 50874, 22680, 34305, 368, 341, 286, 1077, 320, 35735, 11, 8358, 27439, 284, 633, 761, 36053, 62308, 5433, 4452, 1670, 20819, 71, 1423, 286, 1077, 10789, 284, 15085, 670, 5921, 6744, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_linuxcontainer_do_init_child() { let ret = do_init_child(std::io::stdin().as_raw_fd()); assert!(ret.is_err(), "Expecting Err, Got {:?}", ret); }
rust_cleaned_test_functions.jsonl/16633
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77463, 3586, 26309, 6137, 17268, 368, 341, 286, 1077, 2112, 284, 653, 6137, 17268, 5194, 486, 815, 486, 51602, 1005, 300, 16067, 17676, 1423, 286, 2060, 10297, 2122, 2079, 9266, 1507, 330, 17536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_cli_error_display() { assert_eq!(format!("{}", AppError::Cli("An error".to_owned())), format!("{} An error", Red.bold().paint("[CliError]"))); }
rust_cleaned_test_functions.jsonl/63283
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 81 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47147, 4096, 14825, 368, 341, 286, 2060, 10714, 10297, 2243, 79878, 1845, 1454, 486, 87014, 445, 2082, 1465, 3263, 983, 51973, 96501, 3561, 17223, 6257, 1527, 1465, 497, 3731, 31675, 1005, 33617, 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
#[test] fn test_nearest_neighbor_iterator() { let mut points = create_random_points(1000, SEED_1); let tree = RTree::bulk_load(points.clone()); let sample_points = create_random_points(50, SEED_2); for sample_point in &sample_points { points.sort_by(|r, l| { ...
rust_cleaned_test_functions.jsonl/70398
{ "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, 13925, 15432, 71888, 13491, 368, 341, 286, 1077, 5206, 3501, 284, 1855, 22644, 12928, 7, 16, 15, 15, 15, 11, 5052, 1479, 62, 16, 317, 286, 1077, 4916, 284, 431, 6533, 486, 67142, 12411, 32450, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_20() { let key = "a63672d582bb83d92249800324cbc9a6e5b37d36887e7c79093f58ef8f1a0015"; let nonce = "85321bfee1714260dd6130cc768d20b1"; let expected_output = "97e05360aca70058389d93be38d49fa26df01a4d3b4c4f10c3ec31e0ed64f08e"; hcha...
rust_cleaned_test_functions.jsonl/44682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19096, 62, 17, 15, 368, 341, 310, 1077, 1376, 284, 330, 64, 21, 18, 21, 22, 17, 67, 20, 23, 17, 6066, 23, 18, 67, 24, 17, 17, 19, 24, 23, 15, 15, 18, 17, 19, 80766, 24, 64, 21, 68, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ping_pong_close() { let (mut mock, service, _other) = mock::multiplex_client(); let pong = service.call(Message::WithoutBody("ping")); let wr = mock.next_write(); assert_eq!(0, wr.request_id()); assert_eq!("ping", wr.unwrap_msg()); mock.send(msg(0, "pong")); assert_...
rust_cleaned_test_functions.jsonl/120130
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71661, 62, 59102, 12704, 368, 341, 262, 1077, 320, 6984, 7860, 11, 2473, 11, 716, 1575, 8, 284, 7860, 486, 77976, 2571, 8179, 1428, 262, 1077, 77622, 284, 2473, 8524, 29359, 486, 26040, 5444, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_record_only_properties() { let mut p = Parser::new(r#"{a:int, b:uint}"#); let parsed = p.parse_record(); let loc = Locator::new(&p.source[..]); assert_eq!( parsed, MonoType::Record(RecordType { base: BaseNode { location: loc.get(1...
rust_cleaned_test_functions.jsonl/67826
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1820 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 14192, 18410, 25158, 368, 341, 262, 1077, 5206, 281, 284, 21102, 486, 931, 2601, 2, 14129, 64, 14337, 11, 293, 62921, 9863, 2, 317, 262, 1077, 15676, 284, 281, 4632, 14192, 543, 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_t106() { init(); let result = t106( *UIN, 0, *APP_ID, *SSO_VERSION, &[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], true, &*GUID, &*TGTGT_KEY, 0, ); prin...
rust_cleaned_test_functions.jsonl/104725
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 16, 15, 21, 368, 341, 286, 2930, 543, 286, 1077, 1102, 284, 259, 16, 15, 21, 1006, 310, 353, 52, 687, 345, 310, 220, 15, 345, 310, 353, 14707, 3450, 345, 310, 353, 1220, 46, 10678, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_run_specific_bin_target() { let prj = project() .file( "Cargo.toml", r#" [package] name = "foo" version = "0.0.1" authors = [] [[bin]] name="bin1" path="src/bin1.rs" ...
rust_cleaned_test_functions.jsonl/95357
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 492 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 56592, 21816, 11123, 368, 341, 262, 1077, 548, 73, 284, 2390, 741, 286, 659, 1192, 1006, 310, 330, 98228, 73494, 75, 756, 310, 435, 2, 698, 310, 508, 1722, 921, 310, 829, 284, 330, 7975...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_run_mario_demo() { run_cpu_ppu( "../roms/my_dump/mario.nes".to_string(), "mario_demo.bmp".to_string(), 1000, |_cpu, _sys, fb| { // FBの結果を精査する let _ = validate_framebuffer(fb, "../screenshot/mario_demo.bmp".to...
rust_cleaned_test_functions.jsonl/66837
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 234 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 717, 3290, 47830, 368, 341, 286, 1598, 21795, 31600, 84, 1006, 310, 7005, 441, 82, 34198, 18296, 3183, 3290, 1253, 288, 3263, 983, 3904, 3148, 310, 330, 76, 3290, 47830, 55476, 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_chmod_non_existing_file() { new_ucmd!() .arg("-R") .arg("--verbose") .arg("-r,a+w") .arg("does-not-exist") .fails() .stderr_contains(&"cannot access 'does-not-exist': No such file or directory"); }
rust_cleaned_test_functions.jsonl/127211
{ "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, 4138, 2593, 21637, 62630, 2458, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 13645, 49, 1138, 286, 659, 858, 21549, 14883, 1138, 286, 659, 858, 13645, 81, 15012, 65105, 1138, 286, 659...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_request_pdu_len() { let mut buf = BytesMut::new(); buf.extend_from_slice(&[0x66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); assert!(get_request_pdu_len(&buf).is_err()); buf[1] = 0x01; assert_eq!(get_request_pdu_len(&buf).unwrap(), Some(5)); buf[1] =...
rust_cleaned_test_functions.jsonl/17494
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 950 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 7893, 95249, 6043, 368, 341, 286, 1077, 5206, 6607, 284, 30024, 51440, 486, 931, 1428, 286, 6607, 15831, 5673, 26488, 2099, 58, 15, 87, 21, 21, 11, 220, 15, 11, 220, 15, 11, 220, 15, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_should_skip_leading_space_from_stdin() { new_ucmd!() .args(&["--from=auto"]) .pipe_in(" 2Ki") .run() .stdout_is("2048\n"); // multi-line new_ucmd!() .args(&["--from=auto"]) .pipe_in("\t1Ki\n 2K") .run() .stdout_is("102...
rust_cleaned_test_functions.jsonl/46007
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 197 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43378, 44830, 11751, 2228, 14663, 5673, 15656, 258, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 313, 1499, 28, 3902, 14108, 286, 659, 13768, 1243, 445, 220, 17, 72572, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_object_writer() { let mut buf: Vec<u8> = Vec::new(); let obj = TestSingleObjectWriter { a: 300, b: 34.555, c: vec!["cat".into(), "dog".into()], }; let mut writer = GenericSingleObjectWriter::new_with_capacity( ...
rust_cleaned_test_functions.jsonl/130966
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 635 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 5314, 28908, 368, 341, 286, 1077, 5206, 6607, 25, 11312, 34837, 23, 29, 284, 11312, 486, 931, 543, 286, 1077, 2839, 284, 3393, 10888, 1190, 6492, 341, 310, 264, 25, 220, 18, 15, 15, 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_get_non_default_port() { assert!(get_non_default_port(&"http://hyper.rs".parse::<Uri>().unwrap()).is_none()); assert!(get_non_default_port(&"http://hyper.rs:80".parse::<Uri>().unwrap()).is_none()); assert!(get_non_default_port(&"https://hyper.rs:443".parse::<Uri>().unwrap...
rust_cleaned_test_functions.jsonl/56960
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 542 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 21637, 9993, 8716, 368, 341, 286, 2060, 10297, 455, 21637, 9993, 8716, 2099, 1, 1254, 1110, 68192, 25638, 3263, 6400, 27638, 13899, 10483, 15454, 6011, 285, 31488, 1423, 286, 2060, 10297, 455,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_packet_update_ipv4_tcp() { // Ether / IPv4 / TCP / Raw let test_data = hex!("feff2000010000000100000008004500 AAAA 0f4540008006 AAAA 91fea0ed41d0e4df0d2c005038affe14114c618c501825bc AAAA 0000474554202f646f776e6c6f61642e68746d6c20485454502f312e310d0a486f73743a207777772e65746865726...
rust_cleaned_test_functions.jsonl/78716
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 907 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21078, 8882, 49378, 19, 45562, 368, 341, 286, 442, 34878, 608, 31560, 19, 608, 26656, 608, 23022, 198, 286, 1077, 1273, 1769, 284, 12371, 17223, 1859, 542, 17, 15, 15, 15, 15, 16, 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_non_special_path() { let mut db_url = url::Url::parse("postgres://postgres@localhost/").unwrap(); assert_eq!(db_url.as_str(), "postgres://postgres@localhost/"); db_url.set_path("diesel_foo"); assert_eq!(db_url.as_str(), "postgres://postgres@localhost/diesel_foo"); assert_eq!(...
rust_cleaned_test_functions.jsonl/79053
{ "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, 21637, 41629, 2638, 368, 341, 262, 1077, 5206, 2927, 2903, 284, 2515, 486, 2864, 486, 6400, 445, 43070, 1110, 43070, 31, 8301, 14, 1827, 15454, 543, 262, 2060, 10714, 10297, 1999, 2903, 5357, 2895...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_jnz_reg_nope() { let input = "jnz a 2 inc a inc a"; let regs = compute(input); assert_eq!(2, regs.get('a')); }
rust_cleaned_test_functions.jsonl/21648
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 69 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5374, 50824, 4920, 1089, 2792, 368, 341, 10217, 1946, 284, 330, 73, 50824, 264, 220, 17, 198, 2840, 264, 198, 2840, 264, 876, 10217, 44498, 284, 12564, 5384, 317, 6948, 10714, 10297, 17, 11, 444...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_chown_recursive() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; let result = scene.cmd("whoami").run(); if skipping_test_is_okay(&result, "whoami: cannot find name for user ID") { return; } let user_name = String::from(result.stdout_str...
rust_cleaned_test_functions.jsonl/26597
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 421 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4138, 779, 66242, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785, 18513, 401, 262, 1077, 1102, 284, 6109, 25724, 445, 14623, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_remove() { let mut a = vec![1,2,3,4]; assert_eq!(a.remove(2), Some(3)); assert_eq!(a, vec![1,2,4]); assert_eq!(a.remove(2), Some(4)); assert_eq!(a, vec![1,2]); assert_eq!(a.remove(2), None); assert_eq!(a, vec![1,2]); assert_eq!(...
rust_cleaned_test_functions.jsonl/75618
{ "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, 18193, 368, 341, 286, 1077, 5206, 264, 284, 7486, 20703, 16, 11, 17, 11, 18, 11, 19, 4821, 286, 2060, 10714, 10297, 64, 4850, 7, 17, 701, 4329, 7, 18, 1106, 286, 2060, 10714, 10297, 64, 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_xclip_suffix_custom() { let x = b"GAAAA"; let y = b"CG"; let score = |a: u8, b: u8| if a == b { 1i32 } else { -1i32 }; let scoring = Scoring::new(-5, -1, &score).xclip(-5).yclip(0); let mut aligner = banded::Aligner::with_scoring(scoring, 10, 10); ...
rust_cleaned_test_functions.jsonl/126761
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3212, 7974, 37151, 15875, 368, 341, 286, 1077, 856, 284, 293, 89199, 25699, 876, 286, 1077, 379, 284, 293, 1, 8798, 3302, 286, 1077, 5456, 284, 760, 64, 25, 575, 23, 11, 293, 25, 575, 23, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_punycode() { match from_str(include_str!("punycode_tests.json")) { Ok(List(tests)) => for test in tests.iter() { match test { &Object(ref o) => one_test( get_string(o, "description"), get_str...
rust_cleaned_test_functions.jsonl/92874
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 336 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 359, 88, 1851, 368, 1476, 286, 2432, 504, 2895, 77863, 2895, 17223, 64907, 88, 1851, 32509, 4323, 2761, 341, 310, 7622, 10278, 8623, 82, 593, 589, 369, 1273, 304, 7032, 19471, 368, 341, 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...
4
#[test] fn test_minimal_with_filter_identity_column_test() { let req = json!({ "search_req": { "search": { "terms":["test"], "path": "field" } }, "filter":{ "search": { "terms":["test"], ...
rust_cleaned_test_functions.jsonl/8312
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 364 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7260, 2861, 6615, 8727, 46244, 8744, 4452, 368, 341, 262, 1077, 4232, 284, 2951, 0, 2262, 286, 330, 1836, 17644, 788, 341, 310, 330, 1836, 788, 341, 394, 330, 18347, 36799, 1944, 8097, 394, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_statsd_client_with_tags_send_success() { struct StoringSink { metrics: Arc<Mutex<RefCell<Vec<String>>>>, } impl MetricSink for StoringSink { fn emit(&self, metric: &str) -> io::Result<usize> { let mutex = self.metrics.as_ref(); ...
rust_cleaned_test_functions.jsonl/48389
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 541 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15381, 67, 8179, 6615, 16333, 13565, 18632, 368, 341, 286, 2036, 794, 5503, 45094, 341, 310, 16734, 25, 19689, 33274, 9371, 27, 3945, 3599, 50439, 3464, 18153, 345, 286, 555, 286, 11605, 52458, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fastq_empty_lines_end() { // up to 3 newlines at end possible let mut reader = Reader::new(&b"@id\nATGC\n+\n~~~~\n\n\n"[..]); assert_eq!(reader.next().unwrap().unwrap().id_bytes(), b"id"); assert!(reader.next().is_none()); }
rust_cleaned_test_functions.jsonl/40337
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35743, 80, 15124, 18323, 6213, 368, 341, 262, 442, 705, 311, 220, 18, 501, 7969, 518, 835, 3204, 198, 262, 1077, 5206, 6604, 284, 25166, 486, 931, 2099, 65, 96270, 307, 1699, 828, 22863, 1699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_take_val() { let env = Env { vars: hashmap! { "hoge".to_owned() => Val::Map(hashmap! { "fuga".to_owned() => Val::Map(hashmap! { "bar".to_owned() => Val::Int(123) }) }) ...
rust_cleaned_test_functions.jsonl/113310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 599 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73261, 6189, 368, 341, 286, 1077, 6105, 284, 37039, 341, 310, 19942, 25, 92148, 0, 341, 394, 330, 71, 40532, 3263, 983, 51973, 368, 589, 4104, 486, 2227, 27580, 2186, 0, 341, 503, 330, 69, 369...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_progress_leader() { let l = default_logger(); let mut raft = new_test_raft(1, vec![1, 2], 5, 1, new_storage(), &l); raft.become_candidate(); raft.become_leader(); raft.mut_prs().get_mut(2).unwrap().become_replicate(); let prop_msg = new_message(1, 1, MessageType::MsgProp...
rust_cleaned_test_functions.jsonl/19081
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 358 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27200, 79991, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 5206, 52455, 284, 501, 4452, 62, 2944, 7, 16, 11, 7486, 20703, 16, 11, 220, 17, 1125, 220, 20, 11, 220, 16, 11, 501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_setter_only_array() { let mut fb = FooBar(0); fb.setter_only_array(0, 0); assert_eq!(0x0, fb.0); fb.setter_only_array(0, 0b111); assert_eq!(0b111 << (4 + 0 * 2), fb.0); fb.setter_only_array(0, 0); fb.setter_only_array(1, 0b111); assert_eq!(0b111 << (4 + 1 * 3),...
rust_cleaned_test_functions.jsonl/2267
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 465, 18410, 3858, 368, 341, 262, 1077, 5206, 25469, 284, 33428, 3428, 7, 15, 626, 262, 25469, 46594, 18410, 3858, 7, 15, 11, 220, 15, 317, 262, 2060, 10714, 10297, 15, 87, 15, 11, 25469,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let dir = tempdir().unwrap().into_path(); let mut loader = FileArtifactReader::new(&dir, &dir); let mut file = File::create(dir.join("foo")).unwrap(); file.write_all(b"test_data").unwrap(); file.sync_all().unwrap(); let result = loader.re...
rust_cleaned_test_functions.jsonl/62915
{ "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, 34729, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 1005, 18122, 2638, 543, 286, 1077, 5206, 16047, 284, 2887, 85578, 5062, 486, 931, 2099, 3741, 11, 609, 3741, 317, 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...
1
#[test] fn test_plus_return_sum() { let five: Expression = Money::dollar(5).into(); let result = &five + &five; let sum = match result { Expression::Sum(x) => x, _ => panic!("Sumが来るはず") }; assert_eq!(Box::new(five.clone()), sum.augend); ass...
rust_cleaned_test_functions.jsonl/115304
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 188 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28043, 12511, 10160, 368, 341, 286, 1077, 4236, 25, 16378, 284, 17633, 486, 67, 21295, 7, 20, 568, 18122, 543, 286, 1077, 1102, 284, 609, 52670, 488, 609, 52670, 280, 286, 1077, 2629, 284, 2432,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_e2e_ones_tinybuf() { let data = [1u8, 2u8, 3u8, 4u8,255u8,1u8,2u8,3u8,0u8,1u8,2u8,3u8,8u8,4u8,3u8, 7u8, 2u8, 3u8, 4u8,6u8,1u8,2u8,4u8,0u8,1u8,16u8,31u8,83u8,43u8,34u8, 217u8, 252u8, 253u8, 254u8,244u8,251u8,252u8,254u8,250u8,251u8,216u8,231u8,183u8,243u8,234u8...
rust_cleaned_test_functions.jsonl/19824
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 770 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 17, 68, 62, 3154, 528, 6441, 5909, 368, 341, 262, 1077, 821, 284, 508, 16, 84, 23, 11, 220, 17, 84, 23, 11, 220, 18, 84, 23, 11, 220, 19, 84, 23, 11, 17, 20, 20, 84, 23, 11, 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_rotate180_in_place() { let mut image: GrayImage = ImageBuffer::from_raw(3, 2, vec![00u8, 01u8, 02u8, 10u8, 11u8, 12u8]).unwrap(); let expected: GrayImage = ImageBuffer::from_raw(3, 2, vec![12u8, 11u8, 10u8, 02u8, 01u8, 00u8]).unwrap(); rotate180_...
rust_cleaned_test_functions.jsonl/118194
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 202 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60834, 16, 23, 15, 1243, 34548, 368, 341, 286, 1077, 5206, 2168, 25, 23366, 1906, 4035, 310, 4654, 4095, 486, 1499, 16067, 7, 18, 11, 220, 17, 11, 7486, 20703, 15, 15, 84, 23, 11, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_midpoint_of_range() { assert_eq!(midpoint_of_range(&(0..127)), 64); assert_eq!(midpoint_of_range(&(32..63)), 48); assert_eq!(midpoint_of_range(&(44..47)), 46); }
rust_cleaned_test_functions.jsonl/114232
{ "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, 43733, 2768, 3575, 9698, 368, 341, 262, 2060, 10714, 10297, 16106, 2768, 3575, 9698, 29089, 15, 496, 16, 17, 22, 5731, 220, 21, 19, 317, 262, 2060, 10714, 10297, 16106, 2768, 3575, 9698, 29089, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prf_empty_key() { let key: [u8; 0] = []; let actual = prf(&key[..], "something is happening", "Lorem ipsum".as_bytes(), 256); assert_eq!(actual.is_ok(), true); let expected = Vec::from_hex("5b154287399baeabd7d2c9682989e0933b3fdef8211ae7ae0c6586bb1e38d...
rust_cleaned_test_functions.jsonl/132287
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 213 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5294, 69, 15124, 3097, 368, 341, 286, 1077, 1376, 25, 508, 84, 23, 26, 220, 15, 60, 284, 5907, 286, 1077, 5042, 284, 548, 69, 2099, 792, 95874, 1125, 330, 33331, 374, 12482, 497, 330, 32783, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let out = Duration::parse("1ns"); assert_eq!(out.nsecs, 1); let out = Duration::parse("1ns1ms"); assert_eq!(out.nsecs, NS_MILLISECOND + 1); let out = Duration::parse("123ns40ms"); assert_eq!(out.nsecs, 40 * NS_MILLISECOND + 123); ...
rust_cleaned_test_functions.jsonl/30919
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 368, 341, 286, 1077, 700, 284, 21045, 486, 6400, 445, 16, 4412, 797, 286, 2060, 10714, 10297, 411, 1253, 53281, 11, 220, 16, 317, 286, 1077, 700, 284, 21045, 486, 6400, 445, 16, 4412, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tight_infinite_loop_unconditional() { test_interpreter_and_jit_asm!( " ja -1 exit", [], (), { |_vm, res: Result| { matches!(res.unwrap_err(), EbpfError::ExceededMaxInstructions(pc, initial_insn_co...
rust_cleaned_test_functions.jsonl/59058
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 491, 1243, 25722, 17198, 4907, 45368, 368, 341, 262, 1273, 15318, 28637, 8378, 5374, 275, 67529, 33673, 286, 6228, 286, 11937, 481, 16, 198, 286, 4869, 756, 286, 10239, 286, 84201, 286, 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...
3
#[test] fn test_get_tag_new_type() { let file = File::new_type(TEST_MP3, FileType::MPEG).unwrap(); let tag = file.tag().unwrap(); assert_eq!(tag.artist().unwrap(), "Artist"); }
rust_cleaned_test_functions.jsonl/79492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 9372, 5921, 1819, 368, 341, 286, 1077, 1034, 284, 2887, 486, 931, 1819, 50320, 53052, 18, 11, 93238, 486, 44, 22061, 568, 15454, 543, 286, 1077, 4772, 284, 1034, 12399, 1005, 15454, 543, 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
#[test] fn test_host() { assert_eq!( host("localhost:8080"), Ok((":8080", Host::HOST("localhost".to_string()))) ); assert_eq!( host("example.org:8080"), Ok((":8080", Host::HOST("example.org".to_string()))) ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/118914
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 857 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12848, 368, 341, 286, 2060, 10714, 33673, 310, 3468, 445, 8301, 25, 23, 15, 23, 15, 4461, 310, 7622, 7, 18893, 23, 15, 23, 15, 497, 16102, 486, 28687, 445, 8301, 3263, 983, 3904, 60131, 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_bad_parse_bos() { // Too short assert_eq!(parse_bos(&[0x03, 0x0F, 0x03]), None); // bLength too large assert_eq!(parse_bos(&[0x06, 0x0F, 0x05, 0x00, 0x01]), None); // wTotalLength less than bLength assert_eq!(parse_bos(&[0x05, 0x0F, 0x04, 0x00, 0x01]), None); // wT...
rust_cleaned_test_functions.jsonl/91367
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1725 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34199, 21039, 880, 436, 368, 341, 262, 442, 24599, 2805, 198, 262, 2060, 10714, 10297, 6400, 880, 436, 2099, 58, 15, 87, 15, 18, 11, 220, 15, 87, 15, 37, 11, 220, 15, 87, 15, 18, 9719, 224...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iterate_into_string() { let words = vec!["hello", " ", "world"]; let capitalized_words = words.iter().map(|x| capitalize_first(x)).collect::<Vec<_>>().join(""); assert_eq!(capitalized_words, "Hello World"); }
rust_cleaned_test_functions.jsonl/113091
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 112 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 349, 45514, 3904, 368, 341, 286, 1077, 4244, 284, 7486, 0, 1183, 14990, 497, 330, 3670, 330, 14615, 6332, 286, 1077, 97321, 18981, 284, 4244, 19471, 1005, 2186, 22428, 87, 91, 52725, 12978,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wrap_return_type_handles_type_aliases() { check_fix( r#" //- minicore: option, result type MyResult<T> = Result<T, ()>; fn div(x: i32, y: i32) -> MyResult<i32> { if y == 0 { return Err(()); } x $0/ y } "#, r#" type MyResult<T> = Result<T, ()>;...
rust_cleaned_test_functions.jsonl/51838
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 254 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38550, 12511, 1819, 68017, 1819, 90233, 368, 341, 286, 1779, 36060, 1006, 310, 435, 2, 698, 61463, 1308, 292, 460, 25, 2999, 11, 1102, 198, 1313, 3017, 2077, 3125, 29, 284, 5714, 3125, 11, 1719,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_host_ipa_limit() { let kvm = Kvm::new().unwrap(); let host_ipa_limit = kvm.get_host_ipa_limit(); if host_ipa_limit > 0 { assert!(host_ipa_limit >= 32); } else { assert_eq!(host_ipa_limit, 0); } }
rust_cleaned_test_functions.jsonl/127385
{ "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, 3062, 12848, 10385, 64, 14763, 368, 341, 286, 1077, 94748, 284, 730, 7338, 486, 931, 1005, 15454, 543, 286, 1077, 3468, 10385, 64, 14763, 284, 94748, 670, 12848, 10385, 64, 14763, 1428, 286, 421, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rpc_get_program_accounts() { let bob = Keypair::new(); let (io, meta, bank, blockhash, _alice, _leader_pubkey) = start_rpc_handler_with_tx(&bob.pubkey()); let new_program_id = Pubkey::new_rand(); let tx = system_transaction::assign(&bob, blockhash, &n...
rust_cleaned_test_functions.jsonl/20302
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 684 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60799, 3062, 25096, 55665, 368, 341, 286, 1077, 35192, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 320, 815, 11, 8823, 11, 6073, 11, 2504, 8296, 11, 716, 63195, 11, 716, 37391, 34014, 792, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_legal_moves_banmen_with_hisha_nari_border_sente() { let mut banmen = Banmen([[Blank; 9]; 9]); for x in 0..9 { banmen.0[2][x] = GFu; } banmen.0[3][4] = SHisha; assert_eq!(legal_moves_from_banmen(&Teban::Sente,&banmen), Rule::legal_moves_from_banmen(Teban::Sente,&State::new(b...
rust_cleaned_test_functions.jsonl/81185
{ "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, 82324, 45390, 880, 276, 5676, 6615, 1523, 34940, 1089, 2780, 31940, 643, 6817, 368, 972, 10217, 5206, 8943, 5676, 284, 22730, 5676, 27119, 22770, 26, 220, 24, 5265, 220, 24, 55531, 2023, 856, 304,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_struct() { test_parse_err::<Outer>(&[ ( "5", if cfg!(feature = "arbitrary_precision") { "invalid type: number, expected struct Outer at line 1 column 1" } else { "invalid type: integer `5`, expected struct Oute...
rust_cleaned_test_functions.jsonl/29841
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1111 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 15126, 368, 341, 262, 1273, 21039, 9266, 27638, 51322, 44784, 9640, 286, 2399, 310, 330, 20, 756, 310, 421, 13286, 10297, 12753, 284, 330, 277, 87851, 54618, 899, 341, 394, 330, 11808, 943,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_internal_error() { let err = InternalError::from_response(ParseError::Method, HttpResponse::Ok().finish()); let resp: HttpResponse = err.error_response(); assert_eq!(resp.status(), StatusCode::OK); }
rust_cleaned_test_functions.jsonl/33573
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23472, 4096, 368, 341, 286, 1077, 1848, 284, 15412, 1454, 486, 1499, 9655, 71812, 1454, 486, 3523, 11, 17580, 486, 11578, 1005, 30150, 1423, 286, 1077, 9039, 25, 17580, 284, 1848, 4417, 9655, 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
#[test] fn test_type_18() { let ast = check_parse("type rar = (&u32)[];"); check_name(ast.get(0),"rar"); assert_eq!(ast.get(1),&Node::IntType(false,32)); assert_eq!(ast.get(2),&Node::ReferenceType(Type(1))); assert_eq!(ast.get(3),&Node::ArrayType(Type(2))); }
rust_cleaned_test_functions.jsonl/96548
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1819, 62, 16, 23, 368, 341, 262, 1077, 11763, 284, 1779, 21039, 445, 1313, 95566, 284, 15899, 84, 18, 17, 8, 1294, 34649, 262, 1779, 1269, 52574, 670, 7, 15, 35393, 43983, 797, 262, 2060, 1071...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_proof_struct() { init!("true"); let offer = create_default_proof(); assert_eq!(offer.from_did, Some(::settings::get_config_value(::settings::CONFIG_INSTITUTION_DID).unwrap())); }
rust_cleaned_test_functions.jsonl/74788
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86757, 15126, 368, 341, 286, 2930, 17223, 1866, 797, 286, 1077, 3010, 284, 1855, 9993, 86757, 543, 286, 2060, 10714, 10297, 25077, 6387, 814, 307, 11, 4329, 38732, 6511, 486, 455, 5332, 3142, 3873...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_remove_dbg_field_chaining() { check_assist(remove_dbg, r#"let res = $0dbg!(foo.bar).baz;"#, r#"let res = foo.bar.baz;"#); }
rust_cleaned_test_functions.jsonl/13612
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 44124, 5013, 4138, 2056, 368, 341, 286, 1779, 12083, 380, 67709, 44124, 11, 435, 55543, 1149, 592, 284, 400, 15, 54318, 10297, 7975, 22001, 568, 42573, 10892, 60778, 435, 55543, 1149, 592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_index(){ let json_value = Json::from_str("{\"animals\":[\"dog\",\"cat\",\"mouse\"]}").unwrap(); let ref array = json_value["animals"]; assert_eq!(array[0].as_string().unwrap(), "dog"); assert_eq!(array[1].as_string().unwrap(), "cat"); assert_eq!(array[2].a...
rust_cleaned_test_functions.jsonl/22738
{ "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, 3560, 3032, 286, 1077, 2951, 3142, 284, 8308, 486, 1499, 2895, 99141, 76796, 59, 8899, 2105, 18457, 34333, 4616, 34333, 13237, 75104, 92, 1827, 15454, 543, 286, 1077, 2053, 1334, 284, 2951, 3142, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_aes_siv_type_url() { tink_daead::init(); let km = tink::registry::get_key_manager(tink_testutil::AES_SIV_TYPE_URL) .expect("cannot obtain AESSIV key manager"); assert_eq!(km.type_url(), tink_testutil::AES_SIV_TYPE_URL); // Also check other parameters. assert_eq!( ...
rust_cleaned_test_functions.jsonl/64382
{ "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, 90958, 643, 344, 1819, 2903, 368, 341, 262, 90584, 47070, 3149, 486, 2327, 543, 262, 1077, 13136, 284, 90584, 486, 29172, 486, 455, 3097, 12144, 1155, 766, 4452, 1314, 486, 69168, 1098, 3090, 4189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_login_response_parse_missing_webcookie() { let result = serde_json::from_str::<LoginResponse>(include_str!( "fixtures/api-responses/login-response-missing-webcookie.json" )); assert!( matches!(result, Ok(_)), "got error: {}", result.unwrap_err() ); let resp = result.unwrap(); let...
rust_cleaned_test_functions.jsonl/52549
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13681, 9655, 21039, 40447, 25960, 16236, 368, 341, 10217, 1102, 284, 61570, 9455, 486, 1499, 2895, 27638, 6231, 2582, 2235, 997, 2895, 33673, 197, 197, 1, 45247, 10508, 11588, 22648, 16543, 58469, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_message_type_compare_1() -> Result<()> { let schema = " message root { optional fixed_len_byte_array(5) f1 (DECIMAL(9, 3)); optional fixed_len_byte_array (16) f2 (DECIMAL (38, 18)); } "; let mut iter = Tokenizer::from_str(schema); let message...
rust_cleaned_test_functions.jsonl/37574
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 641 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 6462, 1819, 32235, 62, 16, 368, 1464, 5714, 71698, 341, 286, 1077, 10802, 284, 6228, 262, 1943, 3704, 341, 414, 10101, 8356, 6043, 19737, 3858, 7, 20, 8, 282, 16, 320, 30726, 37577, 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_round_bracket_open() { { let code = r#"()"#; let tokenization_result = tokenize(code); let tokens = tokenization_result.unwrap(); assert_eq_code_and_tokens_length(code, &tokens); assert!(tokens.len() == 2); let t...
rust_cleaned_test_functions.jsonl/116443
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 261 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29896, 17682, 5709, 11311, 368, 341, 286, 341, 310, 1077, 2038, 284, 435, 55543, 35065, 2, 401, 310, 1077, 3950, 2022, 5287, 284, 77651, 15842, 317, 310, 1077, 11211, 284, 3950, 2022, 5287, 55395,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_p2shwpkh() { // stolen from Bitcoin transaction: ad3fd9c6b52e752ba21425435ff3dd361d6ac271531fc1d2144843a9f550ad01 let mut key = hex_key!("026c468be64d22761c30cd2f12cbc7de255d592d7904b1bab07236897cc4c2e766"); let addr = Address::p2shwpkh(&key, Digibyte).unwrap(); a...
rust_cleaned_test_functions.jsonl/63232
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 317 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 17, 927, 8421, 30664, 368, 341, 286, 442, 22329, 504, 13127, 7745, 25, 993, 18, 6902, 24, 66, 21, 65, 20, 17, 68, 22, 20, 17, 4645, 17, 16, 19, 17, 20, 19, 18, 20, 542, 18, 631, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_stmt_expr() { let code = String::from(" engine.blub += 12.7; } "); let parser = Parser::new(code.clone()); let mut lexer = Token::lexer(code.as_str()); let stmt_list_res = parser.parse_statement_list(&mut lexer); assert!(stmt_list_res.is_ok());...
rust_cleaned_test_functions.jsonl/43222
{ "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, 21039, 21824, 21915, 368, 341, 262, 1077, 2038, 284, 923, 486, 1499, 70576, 310, 4712, 10404, 392, 1421, 220, 16, 17, 13, 22, 280, 286, 456, 262, 39887, 262, 1077, 6729, 284, 21102, 486, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transactional_behavior_with_deletes() { let mut registry = Registry::new(); assert_empty!(apply_mutations_skip_invariant_checks( &mut registry, vec![insert(b"shakira", b"colombia")] )); apply_mutations_skip_invariant_check...
rust_cleaned_test_functions.jsonl/86104
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 385 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 278, 74540, 6615, 2259, 13881, 368, 341, 286, 1077, 5206, 19424, 284, 32112, 486, 931, 543, 1789, 286, 2060, 15124, 10297, 10280, 29523, 804, 44830, 1243, 15969, 75797, 1006, 310, 609, 6984, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_verifies_out_file() { let inputs = ["" /* no input */, "some input"]; for &input in &inputs { new_ucmd!() .args(&["-o", "nonexistent_dir/nonexistent_file"]) .pipe_in(input) .ignore_stdin_write_error() .fails() .status_co...
rust_cleaned_test_functions.jsonl/20541
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 340 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26042, 9606, 6068, 2458, 368, 341, 262, 1077, 11127, 284, 508, 3014, 1391, 902, 1946, 36572, 330, 14689, 1946, 6332, 262, 369, 609, 1355, 304, 609, 24941, 341, 286, 501, 68887, 2277, 0, 741, 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_debug_value_range_builder() { use super::ValueLabelRangesBuilder; use wasmtime_environ::entity::EntityRef; use wasmtime_environ::ir::StackSlots; use wasmtime_environ::wasm::DefinedFuncIndex; use wasmtime_environ::ModuleMemoryOffset; let addr_tr = ...
rust_cleaned_test_functions.jsonl/116117
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 909 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15446, 3142, 9698, 28532, 368, 341, 286, 990, 2256, 486, 1130, 2476, 74902, 3297, 280, 286, 990, 572, 60976, 6205, 2772, 486, 2996, 486, 3030, 3945, 280, 286, 990, 572, 60976, 6205, 2772, 486, 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_tag_duplication() { let mut clusters = BlogClusters::new(); clusters.add_tags( " life things about current life life things about current life ", ); }
rust_cleaned_test_functions.jsonl/39032
{ "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, 9372, 51932, 1693, 368, 341, 286, 1077, 5206, 26968, 284, 14163, 94992, 486, 931, 543, 286, 26968, 1364, 16333, 1006, 310, 6228, 310, 2272, 198, 310, 2513, 911, 1482, 2272, 198, 310, 2272, 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
#[test] fn test_hello_world() { let ast = estree::Program { sourceType: estree::SourceType::Module, body: vec![Either::Left(estree::Statement::Expression { expression: Box::new(estree::Expression::Call { callee: Either::Left(Box::new(estree::Ex...
rust_cleaned_test_functions.jsonl/49168
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 630 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 96724, 31792, 368, 341, 286, 1077, 11763, 284, 1788, 765, 486, 10690, 341, 310, 2530, 929, 25, 1788, 765, 486, 93363, 486, 3332, 345, 310, 2487, 25, 7486, 20703, 49244, 486, 5415, 89882, 765, 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_simple_latin_with_lowercase_normalizer() { let mut pipeline_map: HashMap<(Script, Language), Pipeline> = HashMap::new(); pipeline_map.insert( (Script::Latin, Language::Other), Pipeline::default().set_normalizer(LowercaseNormalizer), ); let...
rust_cleaned_test_functions.jsonl/125059
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 907, 14768, 6615, 93129, 13973, 3135, 368, 341, 286, 1077, 5206, 15301, 5376, 25, 10528, 28706, 5910, 11, 11434, 701, 40907, 29, 284, 10528, 486, 931, 543, 286, 15301, 5376, 7030, 1006, 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_explicit_enum_values() { #[derive(CheckBytes, Debug)] #[repr(u8)] enum Test { A, B = 100, C, D = 200, E, } check_as_bytes(&Test::A, &mut ()); check_as_bytes(&Test::B, &mut ()); ch...
rust_cleaned_test_functions.jsonl/28479
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 495 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14214, 6026, 31054, 9146, 368, 341, 286, 11506, 27098, 3025, 1227, 7078, 11, 11091, 5563, 286, 11506, 30837, 8154, 23, 5563, 286, 7618, 3393, 341, 310, 362, 345, 310, 425, 284, 220, 16, 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_syn_ny_beach() { let context = Context::new( String::from("us"), Some(String::from("ny")), Tokens::new(HashMap::new(), HashMap::new(), HashMap::new()), ); assert_eq!( syn_ny_beach(&Name::new(String::from(""), 0, None, &cont...
rust_cleaned_test_functions.jsonl/25028
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1741 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51393, 1089, 88, 880, 9547, 368, 341, 286, 1077, 2266, 284, 9608, 486, 931, 1006, 310, 923, 486, 1499, 445, 355, 4461, 310, 4329, 2242, 486, 1499, 445, 3834, 30154, 310, 58166, 486, 931, 7, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rwlock_try_upgrade() { let lock = RwLock::new(0isize); { let read_guard = lock.read(); let upgrade_result = lock.try_upgradable_read(); assert!( upgrade_result.is_some(), "try_upgradable_read should succeed whil...
rust_cleaned_test_functions.jsonl/15755
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 561 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 98850, 53283, 67794, 368, 341, 286, 1077, 5296, 284, 55294, 11989, 486, 931, 7, 15, 285, 551, 317, 286, 341, 310, 1077, 1349, 36796, 284, 5296, 4125, 1428, 310, 1077, 13910, 5287, 284, 5296, 487...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_apply_jql_null() { let json = r#"{"post code": "90210", "country": "United States", "country abbreviation": "US", "places": [{"place name": "Beverly Hills", "longitude": -118.4065, "state": "California", "state abbreviation": "CA", "latitude": 34.0901, "university":null}]}"#; let selecto...
rust_cleaned_test_functions.jsonl/14761
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 175 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36551, 5374, 1470, 15162, 368, 341, 262, 1077, 2951, 284, 435, 55543, 4913, 2203, 2038, 788, 330, 24, 15, 17, 16, 15, 497, 330, 11141, 788, 330, 22372, 4180, 497, 330, 11141, 71478, 788, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_resume_asm_2_asm_2_asm() { resume_asm_2_asm_2_asm(VERSION1, 8126917); resume_asm_2_asm_2_asm(VERSION0, 8126917); }
rust_cleaned_test_functions.jsonl/82894
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58132, 67529, 62, 17, 67529, 62, 17, 67529, 368, 341, 262, 15688, 67529, 62, 17, 67529, 62, 17, 67529, 7, 17636, 16, 11, 220, 23, 16, 17, 21, 24, 16, 22, 317, 262, 15688, 67529, 62, 17, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_next_multiple_of_four() { for x in 0usize..=(std::u16::MAX - 3) as usize { let y = next_multiple_of_four(x); assert_eq!(y % 4, 0); assert!(y >= x); if x % 4 == 0 { assert_eq!(x, y); } else { asser...
rust_cleaned_test_functions.jsonl/52092
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11257, 45233, 3575, 56142, 368, 341, 286, 369, 856, 304, 220, 15, 51878, 496, 4539, 1834, 486, 84, 16, 21, 486, 10586, 481, 220, 18, 8, 438, 22301, 341, 310, 1077, 379, 284, 1790, 45233, 3575,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_side_metadata_sanity_verify_local_specs_size() { let spec_1 = SideMetadataSpec { name: "spec_1", is_global: false, offset: SideMetadataOffset::rel(0), log_num_of_bits: 0, log_bytes_in_region: 0, }; assert!(verif...
rust_cleaned_test_functions.jsonl/50091
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 278 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30862, 22220, 643, 38270, 35638, 13564, 71200, 2368, 368, 341, 286, 1077, 1398, 62, 16, 284, 16659, 14610, 8327, 341, 310, 829, 25, 330, 9535, 62, 16, 756, 310, 374, 19296, 25, 895, 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_pubsub_new() { let pubsub_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 0); let exit = Arc::new(AtomicBool::new(false)); let ledger_path = get_tmp_ledger_path!(); let blockstore = Arc::new(Blockstore::open(&ledger_path).unwrap()); let Genes...
rust_cleaned_test_functions.jsonl/66300
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 450 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34014, 1966, 5921, 368, 341, 286, 1077, 6675, 1966, 7387, 284, 20954, 13986, 486, 931, 8972, 79, 13986, 486, 53, 19, 8972, 30168, 19, 13986, 486, 931, 7, 15, 11, 220, 15, 11, 220, 15, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid_eof_seek() { // The decoder must validate the final chunk as part of seeking to or // past EOF. for &case in crate::test::TEST_CASES { let input = make_test_input(case); let (encoded, hash) = encode::encode(&input); // Seeking ...
rust_cleaned_test_functions.jsonl/118140
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 795 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 90792, 74473, 368, 341, 286, 442, 576, 24551, 1969, 9593, 279, 1590, 11879, 438, 949, 315, 10887, 311, 476, 198, 286, 442, 3267, 29457, 624, 286, 369, 609, 5638, 304, 17717, 486, 1944, 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...
9
#[test] fn test_compression_with_prefix() { let size = 65536; let mut to_compress = Vec::with_capacity(size); for i in 0..size { to_compress.push(i as u8); } let mut v: Vec<Vec<u8>> = vec![]; for i in 1..100 { v.push(compress(&to_compress, ...
rust_cleaned_test_functions.jsonl/62388
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 488 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2965, 4011, 6615, 13974, 368, 341, 286, 1077, 1379, 284, 220, 21, 20, 20, 18, 21, 280, 286, 1077, 5206, 311, 87845, 284, 11312, 486, 4197, 35603, 6856, 317, 286, 369, 600, 304, 220, 15, 496, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_update_config() { let mut deps = mock_dependencies(&[]); deps.querier .with_terraswap_pairs(&[(&"uusdmirror0000".to_string(), &"MIRLP0000".to_string())]); let msg = InstantiateMsg { base_denom: BASE_DENOM.to_string(), token_code_id: TOKEN_CODE_ID, dis...
rust_cleaned_test_functions.jsonl/36369
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1630 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 5332, 368, 341, 262, 1077, 5206, 48178, 284, 7860, 71841, 2099, 56703, 262, 48178, 13, 15959, 1268, 198, 286, 659, 4197, 72493, 12784, 21726, 36430, 2099, 58, 2099, 1, 84, 355, 13849, 28812,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_split() { let mut input_data = HashMap::new(); let data = (1..=2 * 6).map(|x| x as f32).collect::<Vec<f32>>(); input_data.insert("X".to_string(), data.as_slice().into()); let model = model(graph( vec![tensor("X", &[2, 6])], vec![tensor("Y", &[2, 3]), tensor("W", ...
rust_cleaned_test_functions.jsonl/59612
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 453 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 368, 341, 262, 1077, 5206, 1946, 1769, 284, 10528, 486, 931, 543, 262, 1077, 821, 284, 320, 16, 496, 28, 17, 353, 220, 21, 568, 2186, 22428, 87, 91, 856, 438, 282, 18, 17, 568, 17384,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_number_literal_decimal() { // decimal assert_parse_success!(numeric_literal, "0", NumericLiteral(0f64)); assert_parse_failure!(numeric_literal, "01"); assert_parse_failure!(numeric_literal, "01."); assert_parse_success!(numeric_literal, "9", NumericLiteral(9f64)); assert_...
rust_cleaned_test_functions.jsonl/66451
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 328 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5500, 34100, 74429, 368, 341, 262, 442, 12122, 198, 262, 2060, 21039, 18632, 10297, 19600, 34100, 11, 330, 15, 497, 50367, 17350, 7, 15, 69, 21, 19, 1106, 262, 2060, 21039, 43618, 10297, 19600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_server_response_encode_title_case() { use crate::proto::BodyLength; use http::header::HeaderValue; let mut head = MessageHead::default(); head.headers .insert("content-length", HeaderValue::from_static("10")); head.headers .insert(...
rust_cleaned_test_functions.jsonl/7671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 515 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12015, 9655, 11224, 6112, 19096, 368, 341, 286, 990, 17717, 486, 15110, 486, 5444, 4373, 280, 286, 990, 1758, 486, 2708, 486, 97721, 401, 286, 1077, 5206, 1968, 284, 4856, 12346, 486, 2258, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multi_search() { static ARGS: [ArgInfo; 1] = [take_arg!("-include", String, Concatenated)]; static ARGS2: [ArgInfo; 1] = [take_arg!("-include-pch", String, Concatenated)]; static ARGS3: [ArgInfo; 1] = [take_arg!("-include", Path, Concatenated)]; assert_eq!((&ARGS...
rust_cleaned_test_functions.jsonl/108772
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 405 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 10716, 368, 341, 286, 1099, 84149, 25, 508, 2735, 1731, 26, 220, 16, 60, 284, 508, 22769, 6057, 0, 13645, 997, 497, 923, 11, 78195, 268, 657, 12587, 286, 1099, 84149, 17, 25, 508, 2735,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_using_other_iterator_trait_methods() { let sum: u32 = Counter::new() .zip(Counter::new().skip(1)) .map(|(a, b)| a * b) .filter(|x| x % 3 == 0) .sum(); assert_eq!(18, sum); }
rust_cleaned_test_functions.jsonl/89817
{ "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, 75180, 30456, 13491, 78491, 36084, 368, 341, 286, 1077, 2629, 25, 575, 18, 17, 284, 19735, 486, 931, 741, 310, 659, 9964, 7, 14099, 486, 931, 1005, 20599, 7, 16, 1171, 310, 659, 2186, 22428, 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_not_claim_owner() { new_test_ext().execute_with(|| { let claim = vec![1]; // create assert_ok!(PoeModule::create_claim(Origin::signed(1), claim.clone())); // case 1 - transfer assert_noop!(PoeModule::transfer_claim(Origin::signed(2), 2, claim.clone()), Error::<Test>::NotClaimOwner);...
rust_cleaned_test_functions.jsonl/12049
{ "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, 7913, 84969, 29027, 368, 341, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 197, 10217, 3717, 284, 7486, 20703, 16, 4821, 197, 197, 322, 1855, 198, 197, 6948, 19817, 10297, 47, 4644, 3332, 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_handle_arp_request() { // address information and send an ARP response. let mut ctx = DummyContext::default(); send_arp_packet( &mut ctx, ArpOp::Request, TEST_REMOTE_IPV4, TEST_LOCAL_IPV4, TEST_REMOTE_...
rust_cleaned_test_functions.jsonl/16995
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 498 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 62, 7876, 7893, 368, 341, 1789, 286, 442, 2621, 1995, 323, 3624, 458, 91337, 2033, 382, 286, 1077, 5206, 5635, 284, 50567, 1972, 486, 2258, 1428, 286, 3624, 62, 7876, 21078, 1006, 310, 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_certification_pool_inserts() { ic_test_utilities::artifact_pool_config::with_test_pool_config(|pool_config| { let mut pool = CertificationPoolImpl::new(pool_config, no_op_logger(), MetricsRegistry::new()); pool.insert(fake_share(1, 0)); ...
rust_cleaned_test_functions.jsonl/8473
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 822 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37097, 2404, 15709, 17678, 82, 368, 341, 286, 17902, 4452, 94044, 486, 63722, 15709, 5332, 486, 4197, 4452, 15709, 5332, 22428, 10285, 5332, 91, 341, 310, 1077, 5206, 7314, 4035, 394, 50210, 10551, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_remaining_bytes() { let path = get_append_vec_path("test_append"); let sz = 1024 * 1024; let sz64 = sz as u64; let av = AppendVec::new(&path.path, true, sz); assert_eq!(av.capacity(), sz64); assert_eq!(av.remaining_bytes(), sz64); let accou...
rust_cleaned_test_functions.jsonl/39492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 261 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59244, 12524, 368, 341, 286, 1077, 1815, 284, 633, 26041, 13251, 2638, 445, 1944, 26041, 797, 286, 1077, 10038, 284, 220, 16, 15, 17, 19, 353, 220, 16, 15, 17, 19, 280, 286, 1077, 10038, 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_parse_response_h09_allowed() { let _ = pretty_env_logger::try_init(); let mut raw = BytesMut::from(H09_RESPONSE); let ctx = ParseContext { cached_headers: &mut None, req_method: &mut Some(crate::Method::GET), h1_parser_config: Default::...
rust_cleaned_test_functions.jsonl/7660
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 502 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 9655, 1523, 15, 24, 42155, 368, 341, 286, 1077, 716, 284, 5020, 15879, 27413, 486, 1539, 6137, 543, 286, 1077, 5206, 7112, 284, 30024, 51440, 486, 1499, 10896, 15, 24, 35901, 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...
1
#[test] fn test_cbrt() { assert!(close(_0_0i.cbrt(), _0_0i)); assert!(close(_1_0i.cbrt(), _1_0i)); assert!(close( Complex::new(-1.0, 0.0).cbrt(), Complex::new(0.5, 0.75.sqrt()) )); assert!(close( Complex:...
rust_cleaned_test_functions.jsonl/105688
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 665 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 1323, 83, 368, 341, 310, 2060, 10297, 5552, 2490, 15, 62, 15, 72, 520, 1323, 83, 1507, 716, 15, 62, 15, 72, 1106, 310, 2060, 10297, 5552, 2490, 16, 62, 15, 72, 520, 1323, 83, 1507, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vec3_rand() { let mut rng1 = Xoshiro256Plus::seed_from_u64(0); let a: (f32, f32, f32) = rng1.gen(); let mut rng2 = Xoshiro256Plus::seed_from_u64(0); let b: Vec3 = rng2.gen(); assert_eq!(a, b.into()); }
rust_cleaned_test_functions.jsonl/48602
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 18, 33864, 368, 341, 262, 1077, 5206, 28422, 16, 284, 1599, 31845, 299, 17, 20, 21, 21807, 486, 22602, 5673, 7300, 21, 19, 7, 15, 317, 262, 1077, 264, 25, 320, 69, 18, 17, 11, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_objects() { let actor = amp::ActorId::random(); let mut frontend = Frontend::new(); let patch = amp::Patch { actor: None, seq: None, max_op: 4, pending_changes: 0, deps: Vec::new(), clock: hashmap! { actor.clone() => 2,...
rust_cleaned_test_functions.jsonl/77848
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2008 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4326, 24873, 368, 341, 262, 1077, 12089, 284, 22758, 486, 18870, 764, 486, 11463, 543, 262, 1077, 5206, 45645, 284, 14902, 408, 486, 931, 543, 262, 1077, 10900, 284, 22758, 486, 43622, 341, 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_push_prev() { let mut ll = LinkedList::<u8>::new(); let node1 = ll.push_head(1); let node2 = ll.push_head(2); let node3 = ll.push_head(3); let n_node1 = ll.push_prev(&node1, 11).unwrap(); assert_node!(ll, node1, LAST, 1, 4); assert_node!(l...
rust_cleaned_test_functions.jsonl/59895
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 619 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14218, 25566, 368, 341, 286, 1077, 5206, 9323, 284, 22917, 27638, 84, 23, 6831, 931, 543, 286, 1077, 2436, 16, 284, 9323, 2552, 13138, 7, 16, 317, 286, 1077, 2436, 17, 284, 9323, 2552, 13138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_propose() { let prev_hash = hash(&[1, 2, 3]); let txs = vec![hash(&[1]), hash(&[2]), hash(&[2])]; let (public_key, secret_key) = gen_keypair(); // write let propose = Propose::new(VALIDATOR, HEIGHT, ROUND, &prev_hash, &txs, &secret_key); // read assert_eq!(propose.va...
rust_cleaned_test_functions.jsonl/118855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 315 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21663, 960, 368, 341, 262, 1077, 7872, 8950, 284, 5175, 2099, 58, 16, 11, 220, 17, 11, 220, 18, 2558, 262, 1077, 9854, 82, 284, 7486, 20703, 8296, 2099, 58, 16, 9719, 5175, 2099, 58, 17, 971...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iter_mut_mutates() { let mut cache = LruCache::new(4); cache.put("a", 1); cache.put("b", 2); cache.put("c", 3); cache.put("d", 4); for (i, (_key, val)) in cache.iter_mut().enumerate() { assert_eq!(4 - i, *val); *val = 100 +...
rust_cleaned_test_functions.jsonl/77940
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 341 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 29523, 29523, 973, 368, 341, 286, 1077, 5206, 6500, 284, 444, 2672, 8233, 486, 931, 7, 19, 317, 286, 6500, 3597, 445, 64, 497, 220, 16, 317, 286, 6500, 3597, 445, 65, 497, 220, 17, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_part1() { assert_eq!(part1(&parse_claims(&as_input("#1 @ 1,3: 4x4\n #2 @ 3,1: 4x4\n #3 @ 5,5: 2x2")).unwrap()), 4); }
rust_cleaned_test_functions.jsonl/41491
{ "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, 10495, 16, 368, 341, 286, 2060, 10714, 10297, 4480, 16, 2099, 6400, 6794, 25676, 2099, 300, 5898, 3584, 16, 569, 220, 16, 11, 18, 25, 220, 19, 87, 19, 1699, 671, 17, 569, 220, 18, 11, 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_parse_wrong_arch() -> Result<(), Error> { let vmo = zx::Vmo::create(HEADER_DATA_WRONG_ARCH.len() as u64)?; vmo.write(&HEADER_DATA, 0)?; match Elf64Headers::from_vmo(&vmo) { Err(ElfParseError::InvalidFileHeader(msg)) => { assert_eq!(msg, "Inval...
rust_cleaned_test_functions.jsonl/134231
{ "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, 21039, 75198, 34330, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 348, 6355, 284, 71322, 486, 53, 6355, 486, 3182, 7, 38098, 7896, 89607, 40049, 19406, 368, 438, 575, 21, 19, 40007, 286, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_parse_datetime_system_timezone() { let tables = vec![ (1988, 04, 09, 23, 59, 59), (1988, 04, 10, 01, 00, 00), (1988, 09, 11, 00, 00, 00), (1988, 09, 11, 00, 00, 01), (1988, 09, 10, 23, 59, 59), (1988, 09, 10...
rust_cleaned_test_functions.jsonl/93951
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 930 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 28943, 17687, 53193, 368, 341, 1789, 286, 1077, 12632, 284, 7486, 90515, 310, 320, 16, 24, 23, 23, 11, 220, 15, 19, 11, 220, 15, 24, 11, 220, 17, 18, 11, 220, 20, 24, 11, 220, 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...
4
#[test] fn test_encrypt_special_characters() { assert_eq!(encrypt(&WINDOWS_1250.encode("14326 say dfskjda12312ąśąźżźżććżąąąśąąą2137dadaęóąśłżźćń;1122", EncoderTrap::Strict).unwrap(), 34353, false), b"\xF7\xC9\xE7\x12\x74\xFD\x0F\xF7\xF2\x81\x78\x0C\x0A\xFD\x05\x06\x0C\x0F\xF6\xC7\xE6\...
rust_cleaned_test_functions.jsonl/74794
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 392 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66593, 41629, 79060, 368, 341, 286, 2060, 10714, 10297, 32826, 2099, 75067, 62, 16, 17, 20, 15, 17313, 445, 16, 19, 18, 17, 21, 1977, 25792, 92697, 3235, 16, 17, 18, 16, 17, 5861, 7393, 5861, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_problematic_yaml() { struct TestCase { description: &'static str, input: &'static str, expected: Result<Value, ShellError>, } let tt: Vec<TestCase> = vec![ TestCase { description: "Double Curly Braces With Qu...
rust_cleaned_test_functions.jsonl/110372
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60139, 774, 64380, 368, 341, 286, 2036, 30573, 341, 310, 4008, 25, 30136, 1978, 607, 345, 310, 1946, 25, 30136, 1978, 607, 345, 310, 3601, 25, 5714, 48325, 11, 29402, 1454, 12520, 286, 456, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_param_completion_trait_param() { check_magic_completion( "param_completion_trait_param", r" pub(crate) trait SourceRoot { pub fn contains(&self, file_id: FileId) -> bool; pub fn module_map(&self) -> &ModuleMap; ...
rust_cleaned_test_functions.jsonl/23556
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4090, 60164, 78491, 4090, 368, 341, 286, 1779, 54612, 60164, 1006, 310, 330, 903, 60164, 78491, 4090, 756, 310, 435, 698, 310, 6675, 54907, 8, 17567, 8748, 8439, 341, 394, 6675, 5168, 5610, 2099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1