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_deserialize_v2_realm_account_from_v1() { // Arrange let realm_v1 = gpl_governance_v1::state::realm::Realm { account_type: gpl_governance_v1::state::enums::GovernanceAccountType::Realm, community_mint: Pubkey::new_unique(), config: gpl_governanc...
rust_cleaned_test_functions.jsonl/102790
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 681 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 2273, 17, 1288, 7673, 13500, 5673, 2273, 16, 368, 341, 286, 442, 40580, 198, 286, 1077, 21889, 2273, 16, 284, 342, 500, 1889, 6706, 681, 2273, 16, 486, 2454, 486, 69897, 486, 64290,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unsupported_scalar_value() { let scalar = datafusion::scalar::ScalarValue::List( Some(Box::new(vec![])), Box::new(arrow::datatypes::DataType::Float64), ); let res: Result<Scalar, _> = scalar.try_into(); assert_contains!(res.unwrap_err().to_...
rust_cleaned_test_functions.jsonl/3683
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 18216, 41652, 3142, 368, 341, 286, 1077, 17274, 284, 821, 54565, 486, 35342, 486, 20639, 1130, 486, 852, 1006, 310, 4329, 67758, 486, 931, 25592, 0, 1294, 6965, 310, 8261, 486, 931, 7, 604...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_program_native_failure() { let (genesis_config, alice_keypair) = create_genesis_config(50); let program_id = Pubkey::new_rand(); let bank = Bank::new(&genesis_config); bank.add_native_program("solana_failure_program", &program_id); // Call user program let instruction = ...
rust_cleaned_test_functions.jsonl/71380
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25096, 44494, 43618, 368, 341, 262, 1077, 320, 77894, 5332, 11, 70433, 3097, 12670, 8, 284, 1855, 16322, 13774, 5332, 7, 20, 15, 317, 262, 1077, 2025, 842, 284, 22611, 792, 486, 931, 33864, 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_withdraw_eth_from_near() { let (master_account, contract) = init(CUSTODIAN_ADDRESS); call_deposit_eth_to_near(&contract, CONTRACT_ACC); let withdraw_amount = 100; let recipient_addr = validate_eth_address(RECIPIENT_ETH_ADDRESS); let res = contract.call( CONTRACT_ACC....
rust_cleaned_test_functions.jsonl/112869
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 698 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 7633, 57757, 5673, 76340, 368, 341, 262, 1077, 320, 13629, 13500, 11, 5116, 8, 284, 2930, 3025, 8553, 2069, 22002, 20135, 317, 262, 1618, 85798, 57757, 2346, 76340, 2099, 20257, 11, 17126, 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...
2
#[test] fn test_error_messages() { assert!(format!( "{:?}", LoggerError::NeverInitialized(String::from("Bad Log Path Provided")) ) .contains("NeverInitialized")); assert_eq!( format!( "{}", LoggerError::NeverInit...
rust_cleaned_test_functions.jsonl/97096
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4096, 23428, 368, 341, 286, 2060, 10297, 2243, 33673, 310, 13868, 76475, 24375, 310, 9514, 1454, 486, 26155, 22495, 2242, 486, 1499, 445, 17082, 2835, 7933, 53874, 5455, 286, 1727, 286, 659, 13372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fn_signature_no_params() { check( r#" fn foo<T>() -> T where T: Copy + Display {} fn bar() { foo(<|>); } "#, expect![[r#" fn foo() -> {unknown} () "#]], ); }
rust_cleaned_test_functions.jsonl/21220
{ "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, 15246, 39859, 6536, 6745, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 8822, 15229, 3125, 13555, 1464, 350, 1380, 350, 25, 14540, 488, 10623, 5613, 8822, 3619, 368, 314, 15229, 22726, 91, 29, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lite_runtime() { let mut m = TestLiteRuntime::new(); m.set_v(10); test_serialize_deserialize("08 0a", &m); // test it doesn't crash format!("{:?}", m); }
rust_cleaned_test_functions.jsonl/66955
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 92 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 89191, 33232, 368, 341, 262, 1077, 5206, 296, 284, 3393, 43844, 15123, 486, 931, 543, 262, 296, 980, 2273, 7, 16, 15, 317, 262, 1273, 88686, 15768, 9050, 445, 15, 23, 220, 15, 64, 497, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_uint32_rotr() { let mut rng = XorShiftRng::from_seed([0x5dbe6259, 0x8d313d76, 0x3237db17, 0xe5bc0654]); let mut num = rng.gen(); let a = UInt32::constant(num); for i in 0..32 { let b = a.rotr(i); assert_eq!(a.bits.len(), b.bits.len()); ...
rust_cleaned_test_functions.jsonl/28529
{ "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, 15807, 18, 17, 26608, 376, 368, 341, 286, 1077, 5206, 28422, 284, 1599, 269, 24841, 49, 968, 486, 1499, 33809, 2561, 15, 87, 20, 83406, 21, 17, 20, 24, 11, 220, 15, 87, 23, 67, 18, 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, 1, 1, 1, 1...
4
#[test] fn test_empty_struct_field() { let arrow_fields = vec![Field::new("struct", DataType::Struct(vec![]), false)]; let arrow_schema = Schema::new(arrow_fields); let converted_arrow_schema = arrow_to_parquet_schema(&arrow_schema); assert!(converted_arrow_schema.is_err()); ...
rust_cleaned_test_functions.jsonl/130371
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 15126, 5013, 368, 341, 286, 1077, 17921, 12132, 284, 7486, 20703, 1877, 486, 931, 445, 1235, 497, 33172, 486, 9422, 25592, 0, 1294, 701, 895, 12587, 286, 1077, 17921, 25371, 284, 12539, 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_query_captures_and_matches_iterators_are_fused() { allocations::record(|| { let language = get_language("javascript"); let query = Query::new( language, r#" (comment) @comment "#, ) .unwrap(); let source...
rust_cleaned_test_functions.jsonl/25195
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 690 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 666, 2689, 1413, 8378, 38344, 11723, 2973, 56855, 761, 2591, 368, 341, 262, 69642, 486, 8548, 79453, 341, 286, 1077, 4128, 284, 633, 29021, 445, 14073, 797, 286, 1077, 3239, 284, 11361, 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_no_args_left() { let cmd = Command::Quit; let error = Err(Error::custom(ErrorKind::TooManyArguments(cmd.clone()))); // Should succeed assert_eq!(no_args_left("", cmd.clone()), Ok(("", cmd.clone()))); assert_eq!(no_args_left(" ", cmd.clone()), Ok(("", c...
rust_cleaned_test_functions.jsonl/316
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 401 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 8384, 9579, 368, 341, 286, 1077, 5439, 284, 7348, 486, 42856, 280, 286, 1077, 1465, 284, 15495, 37396, 486, 9163, 37396, 10629, 486, 31246, 8441, 19139, 14160, 15997, 10131, 626, 286, 442, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_spec_pci() { let example_map = [ ("0000:1a:01.0", "0000:01:01.0"), ("0000:1b:02.0", "0000:01:02.0"), // This one has the same host address as guest address ("0000:01:01.0", "ffff:02:1f.7"), ]; ...
rust_cleaned_test_functions.jsonl/66439
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 813 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 13594, 76384, 368, 341, 286, 1077, 3110, 5376, 284, 2278, 3374, 310, 3489, 15, 15, 15, 15, 25, 16, 64, 25, 15, 16, 13, 15, 497, 330, 15, 15, 15, 15, 25, 15, 16, 25, 15, 16, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_clean_old_with_zero_lamport_account() { solana_logger::setup(); let accounts = AccountsDB::new(Vec::new(), &ClusterType::Development); let pubkey1 = solana_sdk::pubkey::new_rand(); let pubkey2 = solana_sdk::pubkey::new_rand(); let normal_account = Account...
rust_cleaned_test_functions.jsonl/121894
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 523 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19573, 21108, 6615, 19359, 907, 309, 403, 13500, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 9618, 284, 40655, 3506, 486, 931, 49923, 486, 931, 1507, 609, 28678, 929, 486, 39419...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_u64() { let start_addr1 = GuestAddress(0x0); let start_addr2 = GuestAddress(0x1000); let gm = GuestMemory::new(&[(start_addr1, 0x1000), (start_addr2, 0x1000)]).unwrap(); let val1: u64 = 0xaa55aa55aa55aa55; let val2: u64 = 0x55aa55aa55aa55aa; ...
rust_cleaned_test_functions.jsonl/67401
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 352 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 7300, 21, 19, 368, 341, 286, 1077, 1191, 7387, 16, 284, 26215, 4286, 7, 15, 87, 15, 317, 286, 1077, 1191, 7387, 17, 284, 26215, 4286, 7, 15, 87, 16, 15, 15, 15, 317, 286, 1077, 37879...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_u32_sum_all_nibs() { proptest!(niters(2000), |(x in any::<u32>())| { prop_assert_eq!(u32_sum_all_nibs_ref(x), u32_sum_all_nibs(x)); }); }
rust_cleaned_test_functions.jsonl/97280
{ "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, 7300, 18, 17, 10160, 5705, 1089, 54341, 368, 341, 286, 462, 70334, 10297, 44068, 388, 7, 17, 15, 15, 15, 701, 760, 7, 87, 304, 894, 27638, 84, 18, 17, 92783, 91, 341, 310, 2004, 16553, 10714...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_part1() { let inputs = "NNCB CH -> B HH -> N CB -> H NH -> C HB -> C HC -> B HN -> C NN -> C BH -> H NC -> B NB -> B BN -> B BB -> N BC -> B CC -> N CN -> C"; let expected = 1588; let result = day::part1(inputs.to_string()); assert_eq!(expected, result); }
rust_cleaned_test_functions.jsonl/130328
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 16, 368, 341, 262, 1077, 11127, 284, 330, 9745, 12979, 271, 2149, 1464, 425, 198, 23180, 1464, 451, 198, 12979, 1464, 472, 198, 51271, 1464, 356, 198, 30725, 1464, 356, 198, 22455, 1464, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cast_as_time() { let mut ctx = EvalContext::new(Arc::new(EvalConfig::default_for_test())); let today = Utc::now(); let t_date_str = format!("{}", today.format("%Y-%m-%d")); let t_time_str = format!("{}", today.format("%Y-%m-%d %H:%M:%S")); let t_time = Tim...
rust_cleaned_test_functions.jsonl/38151
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3850 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 11898, 3009, 368, 341, 286, 1077, 5206, 5635, 284, 58239, 1972, 486, 931, 4346, 1287, 486, 931, 10722, 831, 2648, 486, 2258, 5478, 4452, 7392, 286, 1077, 3351, 284, 547, 10413, 486, 3328, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_random_access_take() { let xs = [1, 2, 3, 4, 5]; let empty: &[int] = []; check_randacc_iter(xs.iter().take(3), 3); check_randacc_iter(xs.iter().take(20), xs.len()); check_randacc_iter(xs.iter().take(0), 0); check_randacc_iter(empty.iter().take(2), ...
rust_cleaned_test_functions.jsonl/1029
{ "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, 22644, 12759, 73261, 368, 341, 286, 1077, 11943, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 286, 1077, 4287, 25, 44590, 396, 60, 284, 5907, 286, 1779, 33864, 4475...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_time_with_timezone_serialization() { let time_with_timezone = TimeWithTimeZone::new(time::time!(12: 23: 34), time::UtcOffset::hours(2)); let json = json!({ "time W/ Zone test": time_with_timezone }); assert_eq!(10, time_with_timezone.hour()); ...
rust_cleaned_test_functions.jsonl/47263
{ "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, 3009, 6615, 53193, 25602, 2022, 368, 341, 286, 1077, 882, 6615, 53193, 4035, 310, 4120, 2354, 77786, 486, 931, 9730, 486, 1678, 10297, 16, 17, 25, 220, 17, 18, 25, 220, 18, 19, 701, 882, 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_push_bad_label_name() { let table = vec![ // Error message: "pushed metric {} already contains a job label" (LABEL_NAME_JOB, "job label"), // Error message: "pushed metric {} already contains grouping label {}" (DEFAULT_GROUP_LABEL_PAIR.0, ...
rust_cleaned_test_functions.jsonl/69282
{ "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, 14218, 34199, 6106, 1269, 368, 341, 286, 1077, 1965, 284, 7486, 90515, 310, 442, 4600, 1943, 25, 330, 9077, 291, 18266, 4687, 2669, 5610, 264, 2618, 2383, 698, 310, 320, 63290, 4708, 59690, 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...
5
#[test] fn test_indexed_reader_iter_read_fails() { let bad_reader = ReaderMock { seek_fails: false, read_fails: true, }; let mut reader = IndexedReader::new(bad_reader, FAI_FILE).unwrap(); reader.fetch("id", 0, 10).unwrap(); let mut iterator = read...
rust_cleaned_test_functions.jsonl/62848
{ "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, 3560, 291, 22306, 11723, 6443, 761, 6209, 368, 341, 286, 1077, 3873, 22306, 284, 25166, 11571, 341, 310, 5931, 761, 6209, 25, 895, 345, 310, 1349, 761, 6209, 25, 830, 345, 286, 2605, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_push_does_not_fit() { let mut cache = mock_cache(); let unused_before = cache.available; let too_big = mock_asset(3, 4096, 4000); let (too_big, is_cached, evicted) = cache.push(too_big); assert!(!is_cached); assert!(evicted.is_empty()); ass...
rust_cleaned_test_functions.jsonl/56063
{ "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, 14218, 96374, 7913, 32416, 368, 341, 286, 1077, 5206, 6500, 284, 7860, 11529, 543, 286, 1077, 20006, 23708, 284, 6500, 47111, 280, 286, 1077, 2238, 36386, 284, 7860, 42299, 7, 18, 11, 220, 19, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_defaults() { // get default tauri config let t_config = default_tauri(); // get default build config let b_config = default_build(); // get default dev path let d_path = default_dev_path(); // get default embedded server let de_server = default_embedded_server(); ...
rust_cleaned_test_functions.jsonl/3113
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 578 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42290, 368, 341, 262, 442, 633, 1638, 259, 4110, 72, 2193, 198, 262, 1077, 259, 5332, 284, 1638, 528, 4110, 72, 543, 262, 442, 633, 1638, 1936, 2193, 198, 262, 1077, 293, 5332, 284, 1638, 2080...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_header() { let header = new_header(); let mut rw = Cursor::new(Vec::new()); header.encode(&mut rw).unwrap(); rw.set_position(0); assert_eq!(header, Header::decode(&mut rw).unwrap()); let mut rw = Cursor::new(Vec::new()); let (key, nonce)...
rust_cleaned_test_functions.jsonl/108996
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 248 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8757, 368, 1476, 286, 1077, 4247, 284, 501, 8757, 1428, 286, 1077, 5206, 25991, 284, 28067, 486, 931, 49923, 486, 931, 1423, 286, 4247, 17313, 2099, 6984, 25991, 568, 15454, 543, 286, 25991, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_front_grow() { let mut deq = VecDeque::new(); for i in 0..66 { deq.push_front(i); } assert_eq!(deq.len(), 66); for i in 0..66 { assert_eq!(deq[i], 65 - i); } let mut deq = VecDeque::new(); for i in 0..66 { deq.push_back(i); } ...
rust_cleaned_test_functions.jsonl/73690
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14218, 22926, 1889, 651, 368, 341, 262, 1077, 5206, 409, 80, 284, 11312, 73891, 486, 931, 543, 262, 369, 600, 304, 220, 15, 496, 21, 21, 341, 286, 409, 80, 2552, 22926, 1956, 317, 262, 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...
5
#[test] fn test_vendor_invalid_command_type() { // generic vendor status command let packet = &[ 0x20, // GetElementAttributes pdu id 0x00, // single packet 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // NOW_PLAYING identifier ...
rust_cleaned_test_functions.jsonl/27516
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 362 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58320, 31433, 10811, 1819, 368, 341, 286, 442, 13954, 20728, 2639, 3210, 198, 286, 1077, 10151, 284, 609, 9640, 310, 220, 15, 87, 17, 15, 11, 442, 2126, 1691, 10516, 96969, 877, 198, 310, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reverse_nibble() { assert_eq!(0x8, reverse_nibble(0x1)); assert_eq!(0x4, reverse_nibble(0x2)); assert_eq!(0x2, reverse_nibble(0x4)); assert_eq!(0x1, reverse_nibble(0x8)); assert_eq!(0x7, reverse_nibble(0xe)); }
rust_cleaned_test_functions.jsonl/110141
{ "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, 43277, 1089, 82418, 368, 341, 262, 2060, 10714, 10297, 15, 87, 23, 11, 9931, 1089, 82418, 7, 15, 87, 16, 1106, 262, 2060, 10714, 10297, 15, 87, 19, 11, 9931, 1089, 82418, 7, 15, 87, 17, 1106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_scripts_in_sequential_order() { let _pool = ConstPool::new(); let text = r" script { use 0x2::Record; fun step_2(s: &signer) { Record::create_record(s, 10); } } script { use 0x2::Record; fun step_1(s: &signer) { Record::increment_record(s); ...
rust_cleaned_test_functions.jsonl/43930
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 484 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 35789, 1243, 3453, 15838, 7869, 368, 341, 262, 1077, 716, 10285, 284, 24522, 10551, 486, 931, 1428, 262, 1077, 1467, 284, 435, 698, 2282, 341, 262, 990, 220, 15, 87, 17, 486, 6471, 401, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_header_and_entry_match() { let mut uu = Unstructured::new(&NOISE); let u = &mut uu; let e = Entry::arbitrary(u).unwrap(); let hn = not_(header_facts::is_new_entry_header()).build(u); let mut he = header_facts::is_new_entry_header().build(u); *he.e...
rust_cleaned_test_functions.jsonl/114864
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 404 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8757, 8378, 9078, 10708, 368, 341, 286, 1077, 5206, 41179, 284, 1230, 51143, 486, 931, 2099, 8996, 9133, 317, 286, 1077, 575, 284, 609, 6984, 41179, 401, 286, 1077, 384, 284, 15788, 486, 277, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_methods() { #[pyclass] struct MyClass {} #[pymethods] impl MyClass { #[pyo3(text_signature = "($self, a)")] fn method(&self, a: i32) { let _ = a; } #[pyo3(text_signature = "($self, b)")] fn pyself_method(_this: &PyCell<Self>, b...
rust_cleaned_test_functions.jsonl/32989
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 691 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36084, 368, 341, 262, 11506, 3288, 1040, 921, 262, 2036, 83826, 10086, 262, 11506, 79, 1600, 1068, 82, 921, 262, 11605, 83826, 341, 286, 11506, 3288, 78, 18, 7235, 39859, 284, 330, 699, 721, 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_str_add() { let a = String::from_str("12345"); let b = a + "2"; let b = b + String::from_str("2"); assert_eq!(b.len(), 7); assert_eq!(b.as_slice(), "1234522"); }
rust_cleaned_test_functions.jsonl/91999
{ "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, 2895, 2891, 368, 341, 286, 1077, 264, 284, 923, 486, 1499, 2895, 445, 16, 17, 18, 19, 20, 797, 286, 1077, 293, 284, 264, 488, 330, 17, 876, 286, 1077, 293, 284, 293, 488, 923, 486, 1499, 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_leader_start_replication() { let l = default_logger(); let s = new_storage(); let mut r = new_test_raft(1, vec![1, 2, 3], 10, 1, s.clone(), &l); r.become_candidate(); r.become_leader(); commit_noop_entry(&mut r, &s); let li = r.raft_log.last_index(); r.step(new_m...
rust_cleaned_test_functions.jsonl/62302
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 540 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79991, 4906, 25533, 1693, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 274, 284, 501, 23310, 543, 262, 1077, 5206, 435, 284, 501, 4452, 62, 2944, 7, 16, 11, 7486, 20703, 16, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prod() { let v = vec![_0_1i, _1_0i]; assert_eq!(v.iter().product::<Complex64>(), _0_1i); assert_eq!(v.into_iter().product::<Complex64>(), _0_1i); }
rust_cleaned_test_functions.jsonl/105673
{ "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, 34984, 368, 341, 286, 1077, 348, 284, 7486, 0, 13496, 15, 62, 16, 72, 11, 716, 16, 62, 15, 72, 935, 286, 2060, 10714, 10297, 85, 19471, 1005, 3031, 27638, 31137, 21, 19, 39019, 716, 15, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_size_builder() { let builder = Multiboot2HeaderBuilder::new(HeaderTagISA::I386); // Multiboot2 basic header + end tag let mut expected_len = 16 + 8; assert_eq!(builder.expected_len(), expected_len); // add information request tag let ifr_builder =...
rust_cleaned_test_functions.jsonl/49877
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 741 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2368, 28532, 368, 341, 286, 1077, 7363, 284, 22162, 579, 1905, 17, 4047, 3297, 486, 931, 7, 4047, 5668, 34201, 486, 40, 18, 23, 21, 317, 286, 442, 22162, 579, 1905, 17, 6770, 4247, 488, 835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_call_hierarchy_issue_5103() { check_hierarchy( r#" fn a() { b() } fn b() {} fn main() { a$0() } "#, "a Function FileId(0) 0..18 3..4", &["main Function FileId(0) 31..52 34..38 : [47..48]"], &["b Function FileId(0) 20..29 23..24 : ...
rust_cleaned_test_functions.jsonl/740
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 356 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13429, 95043, 53340, 62, 20, 16, 15, 18, 368, 341, 286, 1779, 95043, 1006, 310, 435, 2, 698, 8822, 264, 368, 341, 262, 293, 741, 630, 8822, 293, 368, 10086, 8822, 1887, 368, 341, 262, 264, 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_too_many_vertices() { /// This test checks that the tessellator returns the proper error when /// the geometry builder run out of vertex ids. use crate::extra::rust_logo::build_logo_path; use crate::GeometryBuilder; struct Builder { max_vertices: u32, } impl ...
rust_cleaned_test_functions.jsonl/83683
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 787 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 78, 22101, 37720, 368, 341, 262, 1048, 1096, 1273, 12341, 429, 279, 79830, 613, 850, 4675, 279, 6169, 1465, 979, 198, 262, 1048, 279, 17047, 7363, 1598, 700, 315, 11936, 14151, 624, 262, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_replace_result_unwrap_with_match_chaining() { check_assist( replace_unwrap_with_match, r" enum Result<T, E> { Ok(T), Err(E) } fn i<T>(a: T) -> T { a } fn main() { let x: Result<i32, i32> = Result::Ok(92); let y = i(x).<|>unwrap().count_zeroes(); } ...
rust_cleaned_test_functions.jsonl/67850
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 333 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10633, 5287, 4907, 10097, 6615, 10708, 4138, 2056, 368, 341, 286, 1779, 12083, 380, 1006, 310, 8290, 4907, 10097, 6615, 10708, 345, 310, 435, 698, 9018, 5714, 3125, 11, 468, 29, 314, 7622, 4140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_special() { [ (b"\xf7", ReducedSpecial::Undefined), (b"\xf6", ReducedSpecial::Null), ] .iter() .for_each(|(bytes, expected)| { let deserializer = Deserializer::new(); let mut serializer = Serializer::new(); let (value, _) = deserializer.tak...
rust_cleaned_test_functions.jsonl/62585
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 318 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41629, 368, 341, 262, 2278, 286, 320, 65, 11934, 5848, 22, 497, 79469, 20366, 486, 30571, 1326, 286, 320, 65, 11934, 5848, 21, 497, 79469, 20366, 486, 3280, 1326, 262, 5133, 262, 659, 2015, 741,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bitfield_insert_wide() { solana_logger::setup(); let width = 16; let start = 0; let mut tester = setup_wide(width, start); let slot = start + width; let all = tester.bitfield.get_all(); // higher than max range by 1 tester.insert(s...
rust_cleaned_test_functions.jsonl/2210
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 2566, 17678, 1670, 577, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 2374, 284, 220, 16, 21, 280, 286, 1077, 1191, 284, 220, 15, 280, 286, 1077, 5206, 37111, 284, 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_parse_port_or_addr() { let p1 = parse_port_or_addr(Some("9000"), SocketAddr::from(([1, 2, 3, 4], 1))); assert_eq!(p1.port(), 9000); let p2 = parse_port_or_addr(Some("127.0.0.1:7000"), SocketAddr::from(([1, 2, 3, 4], 1))); assert_eq!(p2.port(), 7000); let p...
rust_cleaned_test_functions.jsonl/3522
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 285 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8716, 8734, 7387, 368, 341, 286, 1077, 281, 16, 284, 4715, 8716, 8734, 7387, 65405, 445, 24, 15, 15, 15, 3975, 20954, 13986, 486, 1499, 55283, 16, 11, 220, 17, 11, 220, 18, 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, 1...
1
#[test] fn test_subtraction_examples() { let mut z1 = Z25519 { value: U256 { limbs: [1, 1, 1, 1], }, }; z1 -= z1; assert_eq!(z1, 0.into()); z1 -= 1.into(); let p_minus_one = Z25519 { value: U256 { ...
rust_cleaned_test_functions.jsonl/64946
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 398 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 26425, 45279, 368, 341, 286, 1077, 5206, 1147, 16, 284, 1863, 17, 20, 20, 16, 24, 341, 310, 897, 25, 547, 17, 20, 21, 341, 394, 48595, 25, 508, 16, 11, 220, 16, 11, 220, 16, 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_dbtc_conversion() { TEST_AMOUNTS .iter() .for_each(|amounts| test_from_dbtc(amounts.deci_bit, BitcoinAmount(amounts.satoshi))); }
rust_cleaned_test_functions.jsonl/131267
{ "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, 8685, 10413, 64132, 368, 341, 310, 13602, 59993, 50, 198, 394, 659, 2015, 741, 394, 659, 1958, 32046, 22428, 6045, 82, 91, 1273, 5673, 8685, 10413, 33989, 82, 2285, 5855, 13996, 11, 13127, 10093, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_crypto_auth_hmacsha512256_bytes() { assert!(unsafe { crypto_auth_hmacsha512256_bytes() as usize } == crypto_auth_hmacsha512256_BYTES) }
rust_cleaned_test_functions.jsonl/65690
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 78298, 14014, 1523, 11948, 15247, 20, 16, 17, 17, 20, 21, 12524, 368, 341, 262, 2060, 10297, 38157, 314, 19028, 14014, 1523, 11948, 15247, 20, 16, 17, 17, 20, 21, 12524, 368, 438, 22301, 335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_tuple_field_completion() { assert_debug_snapshot!( do_ref_completion( r" fn foo() { let b = (0, 3.14); b.<|> } ", ), @r###" [ CompletionItem { label: ...
rust_cleaned_test_functions.jsonl/57601
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 539 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21773, 5013, 60164, 368, 341, 286, 2060, 15446, 53265, 33673, 286, 653, 7793, 60164, 1006, 310, 435, 698, 310, 5168, 15229, 368, 341, 2290, 1077, 293, 284, 320, 15, 11, 220, 18, 13, 16, 19, 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...
1
#[test] fn test_gossip_purge() { let thread_pool = ThreadPoolBuilder::new().build().unwrap(); let mut node_crds = Crds::default(); let entry = CrdsValue::new_unsigned(CrdsData::ContactInfo(ContactInfo::new_localhost( &solana_sdk::pubkey::new_rand(), 0, )))...
rust_cleaned_test_functions.jsonl/82278
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 847 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 41473, 620, 39823, 368, 341, 286, 1077, 4516, 15709, 284, 72716, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 5206, 2436, 32331, 5356, 284, 4553, 5356, 486, 2258, 543, 286, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_doc_running_specs() { Command::cargo_bin("specdown") .unwrap() .arg("--no-colour") .arg("run") .arg("--running-dir") .arg(".specdown") .arg("docs/cli/running_specs.md") .assert() .success(); }
rust_cleaned_test_functions.jsonl/104095
{ "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, 18869, 37333, 71200, 368, 341, 262, 7348, 486, 66715, 21816, 445, 9535, 2923, 1138, 286, 659, 15454, 741, 286, 659, 858, 21549, 2152, 19459, 413, 1138, 286, 659, 858, 445, 6108, 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_codec() { let stx = mock_sign_tx(); let raw = rlp::encode(&stx); let decode = SignedTransaction::decode(raw).unwrap(); assert_eq!(stx, decode); }
rust_cleaned_test_functions.jsonl/77250
{ "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, 51084, 368, 341, 286, 1077, 357, 87, 284, 7860, 11172, 17805, 543, 286, 1077, 7112, 284, 435, 13545, 486, 6180, 2099, 267, 87, 317, 286, 1077, 16895, 284, 52453, 8070, 486, 18196, 22460, 568, 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
#[test] fn test_fold_comments() { let text = r#" <fold>// Hello // this is a multiline // comment //</fold> // But this is not fn main() <fold>{ <fold>// We should // also // fold // this one.</fold> <fold>//! But this one is different //! because it has another flavor</fold> ...
rust_cleaned_test_functions.jsonl/12682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 295 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61187, 30359, 368, 341, 286, 1077, 1467, 284, 435, 2, 698, 27, 19961, 52593, 21927, 198, 322, 419, 374, 264, 85218, 198, 322, 3980, 198, 322, 522, 19961, 1339, 322, 1988, 419, 374, 537, 271, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_circular_load() { let loader = MockLoader::new(); let loads = loader.loads.clone(); let mut runtime = JsRuntime::new(RuntimeOptions { module_loader: Some(loader), ..Default::default() }); let fut = async move { let spec = ModuleSpecifier::resolve_url("file:...
rust_cleaned_test_functions.jsonl/22623
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 853 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 21472, 12411, 368, 341, 262, 1077, 16047, 284, 14563, 9181, 486, 931, 543, 262, 1077, 20907, 284, 16047, 22961, 15997, 543, 262, 1077, 5206, 15592, 284, 39122, 15123, 486, 931, 52610, 3798, 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_exact_chunksator() { let v = &[1, 2, 3, 4, 5]; assert_eq!(v.exact_chunks(2).len(), 2); let chunks: &[&[_]] = &[&[1, 2], &[3, 4]]; assert_eq!(v.exact_chunks(2).collect::<Vec<_>>(), chunks); let chunks: &[&[_]] = &[&[1, 2, 3]]; assert_eq!(v.exact_chunks(3).collect::<Vec<_...
rust_cleaned_test_functions.jsonl/73376
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 284 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71084, 65470, 850, 368, 341, 262, 1077, 348, 284, 44590, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 4821, 262, 2060, 10714, 10297, 85, 2223, 531, 65470, 7, 17, 568, 2892, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_len() { let gil = Python::acquire_gil(); let py = gil.python(); let src = b"Hello Python"; let bytearray = PyByteArray::new(py, src); assert_eq!(src.len(), bytearray.len()); }
rust_cleaned_test_functions.jsonl/60113
{ "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, 6043, 368, 341, 286, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 286, 1077, 4510, 284, 342, 321, 43193, 1428, 286, 1077, 2286, 284, 293, 1, 9707, 13027, 876, 286, 1077, 95603, 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
#[test] fn test_splitn_char_iterator() { let data = "\nMäry häd ä little lämb\nLittle lämb\n"; let split: Vec<&str> = data.splitn(3, ' ').collect(); assert_eq!(split, ["\nMäry", "häd", "ä", "little lämb\nLittle lämb\n"]); let split: Vec<&str> = data.splitn(3, |c: char| c == ' ').collect(); ...
rust_cleaned_test_functions.jsonl/11132
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 332 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 77, 9232, 13491, 368, 341, 262, 1077, 821, 284, 2917, 77, 44, 2305, 884, 305, 30875, 12709, 2632, 30005, 3096, 1699, 38103, 30005, 3096, 1699, 3302, 262, 1077, 6718, 25, 11312, 52244, 495, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_keywords_in_trait_def() { check( r"trait My { $0 }", expect![[r#" kw unsafe kw fn kw const kw type "#]], ); }
rust_cleaned_test_functions.jsonl/72504
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 180 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51354, 1243, 78491, 7844, 368, 341, 286, 1779, 1006, 310, 435, 1, 29432, 3017, 314, 400, 15, 335, 756, 310, 1720, 0, 15505, 81, 2, 698, 394, 29525, 19860, 198, 394, 29525, 5168, 198, 394, 2952...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_fidl_subnet_v6() { assert_eq!( fidl::Subnet { addr: fidl::IpAddress::Ipv6(fidl::Ipv6Address { addr: [0xFF, 0x01, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01, 0x02] }), prefix_len: 64 }, f...
rust_cleaned_test_functions.jsonl/12538
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 252 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 55464, 95681, 2273, 21, 368, 341, 286, 2060, 10714, 33673, 310, 32104, 75, 486, 3136, 4711, 341, 394, 10789, 25, 32104, 75, 486, 98567, 486, 80656, 21, 40556, 75, 486, 80656, 21, 4286, 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...
1
#[test] fn test_extract_in_subdir() { let cache_dir = tempdir().unwrap(); let cache = Cache::builder() .dir(cache_dir.path().to_owned()) .progress_bar(None) .build() .unwrap(); let resource: PathBuf = [ ".", "test_fixtures", "utf-8_sample", ...
rust_cleaned_test_functions.jsonl/38010
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 465 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 1243, 5228, 3741, 368, 341, 262, 1077, 6500, 4334, 284, 2730, 3741, 1005, 15454, 543, 262, 1077, 6500, 284, 19479, 486, 17850, 741, 286, 659, 3741, 31933, 4334, 3875, 1005, 983, 51973, 2398...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_plugin_update() { let json = r#"{ "view_id": "view-id-42", "delta": {"base_len": 6, "els": [{"copy": [0,5]}, {"insert":"rofls"}, {"copy": [5,6]}]}, "new_len": 11, "new_line_count": 1, "rev": 5, "undo_group": 6, ...
rust_cleaned_test_functions.jsonl/35883
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 369 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23110, 8882, 368, 341, 286, 1077, 2951, 284, 435, 55543, 515, 310, 330, 1050, 842, 788, 330, 1050, 12897, 12, 19, 17, 756, 310, 330, 20255, 788, 5212, 3152, 6043, 788, 220, 21, 11, 330, 2010, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_error_handling() { let tests = vec![ ( "5 + true", Some(Object::Error(String::from("type mismatch: 5 + true"))), ), ( "5 + true; 5;", Some(Object::Error(String::from("type mismatch: 5 + tr...
rust_cleaned_test_functions.jsonl/12305
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1092 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4096, 75642, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 2399, 394, 330, 20, 488, 830, 756, 394, 4329, 12526, 486, 1454, 2242, 486, 1499, 445, 1313, 35301, 25, 220, 20, 488, 830, 2761, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_coordinates() { macro_rules! assert_coords { ($coords:expr, $result:expr) => {{ assert_partial_code!($coords, $result); }}; } let cf44 = CoordinateFormat::new(4, 4); let cf46 = CoordinateFormat::new(4, 6); assert_coo...
rust_cleaned_test_functions.jsonl/16462
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 427 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50084, 368, 341, 286, 18072, 21407, 0, 2060, 32576, 341, 310, 1711, 35030, 96011, 11, 400, 1382, 96011, 8, 589, 80505, 394, 2060, 52068, 4136, 0, 699, 35030, 11, 400, 1382, 317, 310, 87037, 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_por_circuit_poseidon_top_8_2_4() { // We can handle top-heavy trees with a non-zero subtree arity. test_por_circuit::<TestTree3<PoseidonHasher, U8, U2, U4>>(3, 1_764); }
rust_cleaned_test_functions.jsonl/88201
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 76628, 666, 37268, 33201, 90456, 10426, 62, 23, 62, 17, 62, 19, 368, 341, 286, 442, 1205, 646, 3705, 1909, 73566, 12408, 448, 264, 2477, 36929, 53464, 79932, 624, 1789, 286, 1273, 76628, 666, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_credential_presentation() { let schema = get_test_issuance_schema(); let issuer = Issuer::new(); let holder = Holder::new(); let cred = issuer .sign_credential( &schema, &[ CredentialAttribute::Blob(...
rust_cleaned_test_functions.jsonl/10389
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 826 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 30320, 620, 13584, 368, 341, 286, 1077, 10802, 284, 633, 4452, 62, 1038, 84, 681, 25371, 543, 286, 1077, 54835, 284, 15935, 8801, 486, 931, 543, 286, 1077, 11839, 284, 40333, 486, 931, 1428...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_order_harry_potter_by_price() -> Result<()> { let sql = SqlBuilder::select_from("books") .field("title") .field("price") .and_where_like_left("title", "Harry Potter") .order_by("price", false) .sql()?; assert_eq!( ...
rust_cleaned_test_functions.jsonl/12594
{ "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, 7869, 1523, 11433, 57952, 465, 3710, 9040, 368, 1464, 5714, 71698, 341, 286, 1077, 5704, 284, 7224, 3297, 486, 1742, 5673, 445, 12110, 1138, 310, 659, 2566, 445, 2102, 1138, 310, 659, 2566, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_from_str() { let to_check = [ ("", ""), ("\0", "␀"), ("␀", "␀"), ("\0bar", "␀bar"), ("foo\0bar", "foo␀bar"), ("foo\0", "foo␀"), ("a\0b\0c\0\0d", "a␀b␀c␀␀d"), ("foobar0123", "foobar0123"), ...
rust_cleaned_test_functions.jsonl/130170
{ "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, 5673, 2895, 368, 341, 286, 1077, 311, 7200, 284, 2278, 310, 3489, 497, 72712, 310, 51658, 15, 497, 330, 146632, 222, 4461, 310, 3489, 146632, 222, 497, 330, 146632, 222, 4461, 310, 51658, 15, 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...
2
#[test] fn test_rx_close_fin() { let mut s = socket_established(); send!(s, TcpRepr { control: TcpControl::Fin, seq_number: REMOTE_SEQ + 1, ack_number: Some(LOCAL_SEQ + 1), payload: &b"abc"[..], ..SEND_TEMPL }); s....
rust_cleaned_test_functions.jsonl/91919
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 288 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24330, 12704, 39737, 368, 341, 286, 1077, 5206, 274, 284, 7575, 18583, 5102, 291, 543, 286, 3624, 10297, 82, 11, 64876, 693, 649, 341, 310, 2524, 25, 262, 64876, 3273, 486, 9134, 345, 310, 12981...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rc() { unsafe { let pointer_ops = DefaultPointerOps::<Rc<_>>::new(); let p = Rc::new(1); let a: *const i32 = &*p; let r = pointer_ops.into_raw(p); assert_eq!(a, r); let p2: Rc<i32> = pointer_ops.from_raw(r); ...
rust_cleaned_test_functions.jsonl/82634
{ "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, 30299, 368, 341, 286, 19860, 341, 310, 1077, 7445, 21959, 284, 7899, 9084, 38904, 27638, 49, 66, 32399, 77595, 931, 543, 310, 1077, 281, 284, 81463, 486, 931, 7, 16, 317, 310, 1077, 264, 25, 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_minus_int() { let test_cases = vec![ (None, false, Some(1), false, None, false), (Some(1), false, None, false, None, false), (Some(12), false, Some(1), false, Some(11), false), ( Some(0), true, ...
rust_cleaned_test_functions.jsonl/5283
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1346 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38457, 4042, 368, 341, 286, 1077, 1273, 41427, 284, 7486, 90515, 310, 320, 4064, 11, 895, 11, 4329, 7, 16, 701, 895, 11, 2240, 11, 895, 1326, 310, 320, 8373, 7, 16, 701, 895, 11, 2240, 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...
5
#[test] fn test_ldindb() { test_interpreter_and_jit_asm!( " mov64 r1, 0x5 ldindb r1, 0x3 exit", [ 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, ], (), { |_vm, res: Resu...
rust_cleaned_test_functions.jsonl/58975
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50573, 484, 65, 368, 341, 262, 1273, 15318, 28637, 8378, 5374, 275, 67529, 33673, 286, 6228, 286, 1974, 21, 19, 435, 16, 11, 220, 15, 87, 20, 198, 286, 26129, 484, 65, 435, 16, 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_parse_title_without_category() { let documents = load_document("../tests/Soft_Job_M.1181803258.A.666.html"); assert_eq!( parse_title(&documents).unwrap(), (None, "搶頭香".to_owned()) ); }
rust_cleaned_test_functions.jsonl/87142
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 6112, 39904, 11847, 368, 341, 286, 1077, 9293, 284, 2795, 26231, 17409, 23841, 14, 30531, 10598, 674, 1245, 13, 16, 16, 23, 16, 23, 15, 18, 17, 20, 23, 875, 13, 21, 21, 21, 2564, 797,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_formatting_table() { use listformat::options::{Style, Type}; #[derive(Debug)] struct TestCase { locale: &'static str, array: Vec<&'static str>, opts: listformat::Options, expected: &'static str, } let tests =...
rust_cleaned_test_functions.jsonl/95010
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2909 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8955, 1280, 5237, 368, 341, 286, 990, 1140, 2243, 486, 2875, 22964, 2323, 11, 3990, 2440, 286, 11506, 27098, 42618, 5563, 286, 2036, 30573, 341, 310, 18565, 25, 30136, 1978, 607, 345, 310, 1334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_node_auto_adjust_replica() { let count = 7; let mut cluster = new_node_cluster(0, count); test_auto_adjust_replica(&mut cluster); }
rust_cleaned_test_functions.jsonl/107611
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 70 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 27740, 44153, 25533, 15317, 368, 341, 262, 1077, 1760, 284, 220, 22, 280, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 1760, 317, 262, 1273, 27740, 44153, 25533, 15317, 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
#[test] fn test_follower_append_entries() { let l = default_logger(); let mut tests = vec![ ( 2, 2, vec![empty_entry(3, 3)], vec![empty_entry(1, 1), empty_entry(2, 2), empty_entry(3, 3)], vec![empty_entry(3, 3)], ), ( ...
rust_cleaned_test_functions.jsonl/88082
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1202 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 29034, 26041, 26092, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 5206, 7032, 284, 7486, 90515, 286, 2399, 310, 220, 17, 345, 310, 220, 17, 345, 310, 7486, 20703, 3194, 9078,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_authorize() { // There is no spec for this; we can only take the whole cell. // This is hand-generated. let cmd = ChanCmd::AUTHORIZE; assert_eq!(Into::<u8>::into(cmd), 132_u8); let body: Vec<u8> = b"not validated at this stage"[..].into(); vbody( cmd, "6e...
rust_cleaned_test_functions.jsonl/6041
{ "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, 22938, 551, 368, 341, 262, 442, 2619, 374, 902, 1398, 369, 419, 26, 582, 646, 1172, 1896, 279, 4361, 2779, 624, 262, 442, 1096, 374, 1424, 16185, 624, 262, 1077, 5439, 284, 41302, 15613, 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_disconnected_are_bounded() { let mut pdb = get_db(); for _ in 0..MAX_DC_PEERS + 1 { let p = PeerId::random(); pdb.connect_ingoing(&p, "/ip4/0.0.0.0".parse().unwrap(), None); } assert_eq!(pdb.disconnected_peers, 0); for p in pdb.co...
rust_cleaned_test_functions.jsonl/73648
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 255 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9932, 15288, 56855, 880, 13082, 368, 341, 286, 1077, 5206, 47984, 284, 633, 8685, 1428, 286, 369, 716, 304, 220, 15, 496, 10586, 56661, 45784, 4321, 488, 220, 16, 341, 310, 1077, 281, 284, 45147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_invalid_range() { let data = vec![ (1, Some("name:0"), 2), (2, Some("name:4"), 3), (4, Some("name:3"), 1), (5, Some("name:1"), 4), ]; let product = ProductTable::new(); let (_, mut end_point) = init_with_data(&product, &data); let mut select ...
rust_cleaned_test_functions.jsonl/47121
{ "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, 31433, 9698, 368, 341, 262, 1077, 821, 284, 7486, 90515, 286, 320, 16, 11, 4329, 445, 606, 25, 15, 3975, 220, 17, 1326, 286, 320, 17, 11, 4329, 445, 606, 25, 19, 3975, 220, 18, 1326, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_statsd_client_as_histogrammed_packed_u64() { let client: Box<dyn Histogrammed<Vec<u64>>> = Box::new(StatsdClient::from_sink("prefix", NopMetricSink)); client.histogram("some.histogram", vec![4, 5, 6]).unwrap(); }
rust_cleaned_test_functions.jsonl/10621
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15381, 67, 8179, 11898, 68564, 2061, 620, 11191, 7300, 21, 19, 368, 341, 286, 1077, 2943, 25, 8261, 92846, 82138, 2061, 50439, 34837, 21, 19, 20154, 284, 8261, 486, 931, 7, 16635, 67, 2959, 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_frozen_account_lamport_decrease() { let frozen_pubkey = Pubkey::from_str("My11111111111111111111111111111111111111111").unwrap(); let mut db = AccountsDb::new(Vec::new(), &ClusterType::Development); let mut account = AccountSharedData::new(1, 42, &frozen_pubk...
rust_cleaned_test_functions.jsonl/1371
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 298 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 42240, 13500, 907, 309, 403, 2259, 19947, 368, 341, 286, 1077, 19690, 34014, 792, 4035, 310, 22611, 792, 486, 1499, 2895, 445, 5050, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 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_no_metrics() { let stats = into_weekly_figures(&Vec::new()); let chart = build_progress_chart(&stats); assert_eq!(Chart { chart_type: "doughnut".to_string(), data: Data { datasets: vec![Dataset { label: "foo".to_...
rust_cleaned_test_functions.jsonl/117599
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 963 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 37686, 368, 341, 286, 1077, 10472, 284, 1119, 31277, 398, 62141, 1413, 2099, 10050, 486, 931, 1423, 286, 1077, 9487, 284, 1936, 27200, 40961, 2099, 16260, 317, 286, 2060, 10714, 10297, 14488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_full_empty() { let size = Size::new(4, 4); let radius = 10; let original = Vec2d::new(size, '.'); let actual = visit_tiles(&original, size, radius); let expected = "\n....\n....\n..x.\n...."; assert_eq!(actual, expected); }
rust_cleaned_test_functions.jsonl/108552
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16372, 15124, 368, 341, 286, 1077, 1379, 284, 8478, 486, 931, 7, 19, 11, 220, 19, 317, 286, 1077, 10578, 284, 220, 16, 15, 280, 286, 1077, 4024, 284, 11312, 17, 67, 486, 931, 6856, 11, 6256,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sign_der() { let priv_key = PrivateKey::new(8_764_321_234_u128); let msg = b"Liberta!"; let sig = priv_key.sign(msg, true); let der = sig.serialize_der(); assert_eq!(sig, Signature::parse_der(&der)); }
rust_cleaned_test_functions.jsonl/36203
{ "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, 11172, 35345, 368, 341, 286, 1077, 6095, 3097, 284, 9679, 1592, 486, 931, 7, 23, 62, 22, 21, 19, 62, 18, 17, 16, 62, 17, 18, 19, 7300, 16, 17, 23, 317, 286, 1077, 3750, 284, 293, 1, 9194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_block_write_and_read() { let s = MemStorage::default(); let new_file = s.create("test").expect("file create should work"); let opt = Arc::new(Options::<BytewiseComparator>::default()); let cmp = BytewiseComparator::default(); let mut tb = TableBuilder::new...
rust_cleaned_test_functions.jsonl/64695
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 686 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7113, 9165, 8378, 6443, 368, 341, 286, 1077, 274, 284, 13550, 5793, 486, 2258, 543, 286, 1077, 501, 2458, 284, 274, 2520, 445, 1944, 1827, 17119, 445, 1192, 1855, 1265, 975, 797, 286, 1077, 3387...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_time_as_duration() { test_none_with_ctx_and_extra(cast_time_as_duration); // copy from test_convert_to_duration let cs = vec![ ("2012-12-31 11:30:45.123456", 4, 0, "11:30:45"), ("2012-12-31 11:30:45.123456", 4, 1, "11:30:45.1"), ...
rust_cleaned_test_functions.jsonl/1994
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1675 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3009, 11898, 25454, 368, 341, 286, 1273, 31488, 6615, 15147, 8378, 31858, 1337, 559, 3009, 11898, 25454, 626, 286, 442, 2975, 504, 1273, 34910, 2346, 25454, 198, 286, 1077, 10532, 284, 7486, 90515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_clean_old_with_both_normal_and_zero_lamport_accounts() { solana_logger::setup(); let mut accounts = AccountsDb::new_with_config( Vec::new(), &ClusterType::Development, spl_token_mint_index_enabled(), false, AccountShrin...
rust_cleaned_test_functions.jsonl/1355
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2606 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19573, 21108, 6615, 88819, 13973, 8378, 19359, 907, 309, 403, 55665, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 5206, 9618, 284, 40655, 7994, 486, 931, 6615, 5332, 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...
1
#[test] fn test_to_hsv() { assert_eq!(Hsv::new(0.0, 0.0, 0.0), to_hsv(0, 0, 0)); assert_eq!(Hsv::new(0.0, 0.0, 1.0), to_hsv(255, 255, 255)); assert_eq!(Hsv::new(0.0, 1.0, 1.0), to_hsv(255, 0, 0)); assert_eq!(Hsv::new(120.0, 1.0, 1.0), to_hsv(0, 255, 0)); assert_eq!(Hsv::n...
rust_cleaned_test_functions.jsonl/119104
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 239 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 1523, 3492, 368, 341, 286, 2060, 10714, 10297, 39, 3492, 486, 931, 7, 15, 13, 15, 11, 220, 15, 13, 15, 11, 220, 15, 13, 15, 701, 311, 1523, 3492, 7, 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
#[test] fn test_bracket_syntax_version() { let scenario = TestScenario::new("["); let mut ucmd = scenario.ucmd(); ucmd.arg("--version") .succeeds() .stdout_matches(&r"\[ \d+\.\d+\.\d+".parse().unwrap()); }
rust_cleaned_test_functions.jsonl/11041
{ "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, 17682, 5709, 78894, 9438, 368, 341, 262, 1077, 15048, 284, 3393, 54031, 486, 931, 10937, 797, 262, 1077, 5206, 575, 8710, 284, 15048, 56334, 2277, 1428, 262, 575, 8710, 21186, 21549, 4366, 1138, 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_cost_tracker_add_data() { let (mint_keypair, start_hash) = test_setup(); let (_tx, keys, cost) = build_simple_transaction(&mint_keypair, &start_hash); // build testee to have capacity for one simple transaction let mut testee = CostTracker::new(cost, cost); ...
rust_cleaned_test_functions.jsonl/67927
{ "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, 15890, 50264, 2891, 1769, 368, 341, 286, 1077, 320, 67791, 3097, 12670, 11, 1191, 8950, 8, 284, 1273, 21363, 543, 286, 1077, 5453, 3998, 11, 6894, 11, 2783, 8, 284, 1936, 30015, 28884, 2099, 677...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pr_is_draft() { let mut pr = PullRequest::new(); assert!(!pr.is_draft()); pr.title = "WIP: doing some stuff".into(); assert!(pr.is_draft()); pr.title = "wip: doing some stuff".into(); assert!(pr.is_draft()); pr.title = "WIPWIPWIP: doing ...
rust_cleaned_test_functions.jsonl/8027
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 334 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5294, 6892, 91339, 368, 341, 286, 1077, 5206, 548, 284, 31828, 1900, 486, 931, 543, 286, 2060, 0, 3471, 649, 2079, 91339, 5231, 286, 548, 6067, 284, 330, 54, 3298, 25, 3730, 1045, 6259, 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_arch_arm() { test_arch_mode_endian_insns( &mut Capstone::new() .arm() .mode(arm::ArchMode::Arm) .build() .unwrap(), Arch::ARM, Mode::Arm, None, &[], &[ ("bl", b"\xed\xff\xff\xeb"), ...
rust_cleaned_test_functions.jsonl/127430
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34330, 34680, 368, 341, 262, 1273, 34330, 7302, 87193, 34386, 4412, 1006, 286, 609, 6984, 8012, 10812, 486, 931, 741, 310, 659, 2178, 741, 310, 659, 8516, 7, 2178, 486, 18727, 3636, 486, 32913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_disjoint() { let one = [1].iter().collect::<BTreeSet<_>>(); let two = [2].iter().collect::<BTreeSet<_>>(); assert!(one.is_disjoint(&two)); }
rust_cleaned_test_functions.jsonl/12212
{ "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, 6892, 9932, 32850, 368, 341, 262, 1077, 825, 284, 508, 16, 936, 2015, 1005, 17384, 27638, 33, 6533, 1649, 32399, 37038, 262, 1077, 1378, 284, 508, 17, 936, 2015, 1005, 17384, 27638, 33, 6533, 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
#[test] fn test_get_command_string_output() { let case1 = CommandOutput { stdout: String::from("stdout"), stderr: String::from("stderr"), }; assert_eq!(get_command_string_output(case1), "stdout"); let case2 = CommandOutput { stdout: String::fro...
rust_cleaned_test_functions.jsonl/1883
{ "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, 3062, 10811, 3904, 7645, 368, 341, 286, 1077, 1142, 16, 284, 7348, 5097, 341, 310, 20075, 25, 923, 486, 1499, 445, 36358, 4461, 310, 26436, 25, 923, 486, 1499, 445, 36422, 4461, 286, 2605, 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_dictionary() { let array = create_dictionary_array( &["a", "b", "c"], &[Some("a"), Some("b"), None, Some("c")], ); let arrays = vec![array.as_ref()]; let mut mutable = MutableArrayData::new(arrays, false, 0); mutable.exte...
rust_cleaned_test_functions.jsonl/102346
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 263 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42605, 368, 341, 1789, 286, 1077, 1334, 284, 1855, 42605, 3858, 1006, 310, 609, 1183, 64, 497, 330, 65, 497, 330, 66, 8097, 310, 44590, 8373, 445, 64, 3975, 4329, 445, 65, 3975, 2240, 11, 4329...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_groupby_threaded() { for slice in &[ vec![1, 2, 3, 4, 4, 4, 2, 1], vec![1, 2, 3, 4, 4, 4, 2, 1, 1], vec![1, 2, 3, 4, 4, 4], ] { let ca = UInt8Chunked::new_from_slice("", &slice); let splitted = split_ca(&ca, 4).unwrap();...
rust_cleaned_test_functions.jsonl/43515
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 371 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6288, 1694, 10814, 291, 368, 341, 286, 369, 15983, 304, 609, 9640, 310, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 19, 11, 220, 19, 11, 220, 17, 11, 220, 16, 1259, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_custom_gate_syntax() { let input = "#[foreign(sha256)]#[foreign(blake2s)]#[builtin(sum)]"; let expected = vec![ Token::Attribute(Attribute::Foreign("sha256".to_string())), Token::Attribute(Attribute::Foreign("blake2s".to_string())), Token::Attribute(Attribute::Bu...
rust_cleaned_test_functions.jsonl/72658
{ "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, 15875, 54798, 78894, 368, 341, 262, 1077, 1946, 284, 5869, 58, 28443, 7, 15247, 17, 20, 21, 7252, 13353, 28443, 29811, 726, 17, 82, 7252, 13353, 42457, 19713, 7252, 3302, 262, 1077, 3601, 284, 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...
2
#[test] fn test_function_definition_abi_compatible() { let abi_type = abi::FunctionDefinition { prototype: abi::FunctionPrototype { name: std::ptr::null(), signature: abi::FunctionSignature { arg_types: std::ptr::null(), return_type: std::ptr::...
rust_cleaned_test_functions.jsonl/98924
{ "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, 9174, 31698, 22885, 72, 2965, 37079, 368, 341, 262, 1077, 61050, 1819, 284, 61050, 486, 5152, 10398, 341, 286, 24052, 25, 61050, 486, 5152, 32906, 341, 310, 829, 25, 1460, 486, 3505, 486, 2921, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_storage_version_read() { let database = MemoryDB::new(); { let ver = StorageMetadata { version: 1337 }; let mut fork = database.fork(); set_storage_version(&mut fork, ver); assert!(StorageMetadata::read(fork).is_err()); } ...
rust_cleaned_test_functions.jsonl/102927
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 376 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23310, 9438, 6443, 368, 341, 286, 1077, 4625, 284, 13850, 3506, 486, 931, 543, 286, 341, 310, 1077, 2739, 284, 14693, 14610, 314, 2319, 25, 220, 16, 18, 18, 22, 2605, 310, 1077, 5206, 22435, 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_js() { let mut isolate = TestBehavior::setup(TestBehaviorMode::AsyncImmediate); js_check( isolate .execute("shared_queue_test.js", include_str!("shared_queue_test.js")), ); assert_eq!(Ok(Async::Ready(())), isolate.poll()); }
rust_cleaned_test_functions.jsonl/113678
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26250, 368, 341, 262, 1077, 5206, 42123, 284, 3393, 22753, 486, 15188, 31159, 22753, 3636, 486, 6525, 52734, 317, 262, 6994, 7200, 1006, 414, 42123, 198, 286, 659, 10257, 445, 6100, 10841, 4452, 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_capabilities_not_met() -> Result<()> { let mut cap = Capabilities::new(Capability::UART | Capability::SPI); assert!(cap.request(Capability::GPIO).ok().is_err()); Ok(()) }
rust_cleaned_test_functions.jsonl/34976
{ "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, 92092, 7913, 44517, 368, 1464, 5714, 71698, 341, 286, 1077, 5206, 2062, 284, 8012, 8456, 486, 931, 3025, 391, 2897, 486, 51694, 760, 98551, 486, 39779, 317, 286, 2060, 10297, 11346, 8223, 3025, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_blank() { let ns = "field"; let results = Namespace::parse(ns).unwrap(); let expected = vec![Namespace::Object { id: String::from("field"), }]; assert_eq!(expected, results); let ns = "array-field[0]"; let results = Namespace::...
rust_cleaned_test_functions.jsonl/11213
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56103, 368, 341, 286, 1077, 12268, 284, 330, 2566, 876, 286, 1077, 3059, 284, 41962, 486, 6400, 39417, 568, 15454, 543, 286, 1077, 3601, 284, 7486, 20703, 22699, 486, 1190, 341, 310, 877, 25, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_zero_width() { assert_eq!( get_column_widths( 0, &[Some(1), None, None], &[None, Some(1), Some(2)], &[None, Some(0.125), Some(0.5)], &[None, Some(10), Some(10)], true )...
rust_cleaned_test_functions.jsonl/4468
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 246 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19359, 7927, 368, 341, 286, 2060, 10714, 33673, 310, 633, 8744, 7927, 82, 1006, 394, 220, 15, 345, 394, 44590, 8373, 7, 16, 701, 2240, 11, 2240, 1259, 394, 44590, 4064, 11, 4329, 7, 16, 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_truncate_binary() { let s = b"123456789".to_vec(); let mut s1 = s.clone(); truncate_binary(&mut s1, crate::def::UNSPECIFIED_LENGTH); assert_eq!(s1, s); let mut s2 = s.clone(); truncate_binary(&mut s2, isize::MAX); assert_eq!(s2, s); ...
rust_cleaned_test_functions.jsonl/48548
{ "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, 3547, 26900, 31761, 368, 341, 286, 1077, 274, 284, 293, 1, 16, 17, 18, 19, 20, 21, 22, 23, 24, 3263, 983, 13251, 543, 286, 1077, 5206, 274, 16, 284, 274, 15997, 543, 286, 56772, 31761, 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
#[test] fn test_jsgt_imm() { test_interpreter_and_jit_asm!( " mov32 r0, 0 mov r1, -2 jsgt r1, -1, +4 mov32 r0, 1 mov32 r1, 0 jsgt r1, -1, +1 mov32 r0, 2 exit", [], (), { |_vm, res: Result| { res.unwrap() == 0x1 }...
rust_cleaned_test_functions.jsonl/59026
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 226 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5374, 1991, 83, 71370, 368, 341, 262, 1273, 15318, 28637, 8378, 5374, 275, 67529, 33673, 286, 6228, 286, 1974, 18, 17, 435, 15, 11, 220, 15, 198, 286, 1974, 435, 16, 11, 481, 17, 198, 286, 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_get_cpuid_fail_num_entries_too_high() { let kvm = Kvm::new().unwrap(); if kvm.check_extension(Cap::ExtCpuid) { let vm = kvm.create_vm().unwrap(); let vcpu = vm.create_vcpu(0).unwrap(); let err_cpuid = vcpu.get_cpuid2(KVM_MAX_CPUID_ENTRIES + 1_u...
rust_cleaned_test_functions.jsonl/92511
{ "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, 3062, 39811, 2423, 22121, 4273, 26092, 2346, 78, 22680, 368, 341, 286, 1077, 94748, 284, 730, 7338, 486, 931, 1005, 15454, 543, 286, 421, 94748, 9093, 31035, 3025, 391, 486, 6756, 34, 79, 2423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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