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_get_tsc_khz() { let kvm = Kvm::new().unwrap(); let vm = kvm.create_vm().unwrap(); let vcpu = vm.create_vcpu(0).unwrap(); if !kvm.check_extension(Cap::GetTscKhz) { assert!(vcpu.get_tsc_khz().is_err()) } else { assert!(vcpu.get_tsc_k...
rust_cleaned_test_functions.jsonl/92523
{ "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, 3062, 528, 2388, 4698, 37259, 368, 341, 286, 1077, 94748, 284, 730, 7338, 486, 931, 1005, 15454, 543, 286, 1077, 10995, 284, 94748, 2520, 39008, 1005, 15454, 543, 286, 1077, 348, 16475, 284, 10995...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_from_buf() { unsafe { let a = vec![65, 65, 65, 65, 65, 65, 65, 0]; let b = a.as_ptr(); let c = super::raw::from_buf(b); assert_eq!(c, String::from_str("AAAAAAA")); } }
rust_cleaned_test_functions.jsonl/49
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 10363, 368, 341, 286, 19860, 341, 310, 1077, 264, 284, 7486, 20703, 21, 20, 11, 220, 21, 20, 11, 220, 21, 20, 11, 220, 21, 20, 11, 220, 21, 20, 11, 220, 21, 20, 11, 220, 21, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mock_vm_same_sender() { let amount = 100; let sender = gen_address(1); let mut txns = vec![]; for _i in 0..10 { txns.push(encode_mint_transaction(sender, amount)); } let outputs = MockVM::execute_block(txns, &MockStateView).expect("MockVM should not fail ...
rust_cleaned_test_functions.jsonl/99280
{ "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, 34134, 39008, 33574, 54356, 368, 341, 262, 1077, 3311, 284, 220, 16, 15, 15, 280, 262, 1077, 4646, 284, 4081, 6744, 7, 16, 317, 262, 1077, 5206, 9854, 4412, 284, 7486, 0, 15078, 262, 369, 716,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_read_locations() { let input = " -1 'quoted \n\ (on a new line) twice"; let heap = &mut Heap::new(); let results : Vec<Location> = read_from_str(input, heap, "test_read_locations") .map(|(loc, _)| loc) ...
rust_cleaned_test_functions.jsonl/62124
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 494 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 45032, 368, 341, 16885, 286, 1077, 1946, 284, 330, 262, 481, 16, 257, 364, 63725, 220, 1124, 77, 5661, 3824, 320, 263, 264, 501, 1555, 8, 10917, 3302, 286, 1077, 17364, 284, 609, 6984, 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_add_record() { init!("false"); let xtype = CStringUtils::string_to_cstring("record_type".to_string()); let id = CStringUtils::string_to_cstring("123".to_string()); let value = CStringUtils::string_to_cstring("Record Value".to_string()); let tags = CStringU...
rust_cleaned_test_functions.jsonl/37980
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 916 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 14192, 368, 341, 286, 2930, 17223, 3849, 797, 286, 1077, 60614, 284, 356, 34780, 486, 917, 2346, 666, 917, 445, 8548, 1819, 3263, 983, 3904, 1423, 286, 1077, 877, 284, 356, 34780, 486, 917...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_minimum_stake_delegation() { let feature_set = FeatureSet::all_enabled(); let minimum_delegation = crate::get_minimum_delegation(&feature_set); let rent = Rent::default(); let rent_exempt_reserve = rent.minimum_balance(StakeState::size_of()); let ...
rust_cleaned_test_functions.jsonl/31653
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 7633, 84855, 1261, 726, 2259, 87566, 368, 341, 286, 1077, 4565, 2602, 284, 19998, 1649, 486, 541, 18220, 543, 286, 1077, 8028, 2259, 87566, 284, 17717, 486, 455, 84855, 2259, 87566, 2099, 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...
3
#[test] fn test_idle_timeout_staggered_distributions() { let (clock, mock) = Clock::mock(); let recorder = PrometheusBuilder::new() .idle_timeout(MetricKindMask::ALL, Some(Duration::from_secs(10))) .build_with_clock(clock); let key = Key::from_name("basic_counte...
rust_cleaned_test_functions.jsonl/48730
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1995 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47810, 20537, 1261, 10114, 291, 814, 17994, 368, 341, 286, 1077, 320, 20666, 11, 7860, 8, 284, 26142, 486, 16712, 1428, 286, 1077, 48835, 284, 97137, 3297, 486, 931, 741, 310, 659, 47273, 20537, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pull_from_entrypoint_if_not_present() { let thread_pool = ThreadPoolBuilder::new().build().unwrap(); let node_keypair = Arc::new(Keypair::new()); let cluster_info = ClusterInfo::new( ContactInfo::new_localhost(&node_keypair.pubkey(), timestamp()), ...
rust_cleaned_test_functions.jsonl/65049
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 864 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65693, 5673, 9078, 2768, 11119, 7913, 36976, 368, 341, 286, 1077, 4516, 15709, 284, 72716, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 2436, 3097, 12670, 284, 19689, 486, 931, 7, 6608...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_actor_awake_phases() { init_test_log(); let system = ActorSystem::create(ActorSystemConfig::default().thread_pool_size(1)); let aid = system .spawn() .with((), |_: (), _: Context, msg: Message| { async move { if...
rust_cleaned_test_functions.jsonl/25336
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1270 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54818, 54168, 726, 9782, 2264, 368, 341, 286, 2930, 4452, 5224, 1428, 286, 1077, 1849, 284, 24718, 2320, 486, 3182, 7, 18870, 2320, 2648, 486, 2258, 1005, 4528, 15709, 2368, 7, 16, 1106, 286, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_add_non_root_block_device() { let dummy_file = TempFile::new().unwrap(); let dummy_path = dummy_file.as_path().to_str().unwrap().to_string(); let dummy_id = String::from("1"); let dummy_block_device = BlockDeviceConfig { path_on_host: dummy_path, ...
rust_cleaned_test_functions.jsonl/113107
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 563 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 21637, 12993, 7113, 9204, 368, 341, 286, 1077, 17292, 2458, 284, 19944, 1703, 486, 931, 1005, 15454, 543, 286, 1077, 17292, 2638, 284, 17292, 2458, 5357, 2638, 1005, 983, 2895, 1005, 15454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_query_cell() { let client = TestClient::new(); let participant_list = r" elect_at:u32 elect_close:u32 min_stake:grams total_stake:grams members:dict() failed:i1 finished:i1"; let result = client.request_json("cell.query", json!(...
rust_cleaned_test_functions.jsonl/69931
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 16648, 368, 341, 262, 1077, 2943, 284, 3393, 2959, 486, 931, 543, 262, 1077, 24880, 2019, 284, 435, 698, 286, 4045, 3752, 25, 84, 18, 17, 198, 286, 4045, 12704, 25, 84, 18, 17, 198, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_query_error() { let tests = [ &b"First.second: on"[..], b"First*second", b"First.?.second", b"*second", b"?.second", ]; for data in tests.iter() { let result = parse_query(*data); if...
rust_cleaned_test_functions.jsonl/113428
{ "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, 5738, 4096, 368, 341, 286, 1077, 7032, 284, 2278, 310, 609, 65, 1, 5338, 13560, 25, 389, 36864, 496, 1259, 310, 293, 1, 5338, 9, 5569, 756, 310, 293, 1, 5338, 13, 4607, 5569, 756, 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...
3
#[test] fn test_and_with_multiple_like_parse() { let name1 = _random_string(10); let value1 = _random_string(10); let name2 = _random_string(10); let value2 = _random_string(10); let name3 = _random_string(10); let value3 = _random_string(10); let json = ...
rust_cleaned_test_functions.jsonl/11841
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 727 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8378, 6615, 45233, 25535, 21039, 368, 341, 286, 1077, 829, 16, 284, 716, 11463, 3904, 7, 16, 15, 317, 286, 1077, 897, 16, 284, 716, 11463, 3904, 7, 16, 15, 317, 286, 1077, 829, 17, 284, 716,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_check_bc() -> Result<(), Error>{ // Mixed let sys : ContCylindricalSystem = ContCylindricalSystem::new(1, 5.0, 5.0, 2); for i in 0..10{ let x : f64 = 4.05f64 + i as f64 * 0.1f64; let pos : Position<f64> = Position::new(vec![x, x]); f...
rust_cleaned_test_functions.jsonl/105920
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 573 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 65803, 368, 1464, 5714, 68843, 4600, 29, 4257, 286, 442, 50168, 198, 286, 1077, 5708, 549, 2093, 34, 3923, 62406, 2320, 284, 2093, 34, 3923, 62406, 2320, 486, 931, 7, 16, 11, 220, 20, 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...
7
#[test] fn test_config_initialize_no_panic() { let (bank, alice_keypair) = create_bank(3); let bank_client = BankClient::new(bank); let config_account = Keypair::new(); let mut instructions = config_instruction::create_account::<MyConfig>( &alice_keypair.pubkey(), &config_accoun...
rust_cleaned_test_functions.jsonl/125670
{ "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, 5332, 40889, 6536, 620, 31270, 368, 341, 262, 1077, 320, 17033, 11, 70433, 3097, 12670, 8, 284, 1855, 35733, 7, 18, 317, 262, 1077, 6073, 8179, 284, 8547, 2959, 486, 931, 1883, 1180, 317, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_agg_trades() { let text = BinanceOptionRestClient::fetch_trades("BTC-210129-40000-C", None).unwrap(); assert!(text.starts_with("{")); }
rust_cleaned_test_functions.jsonl/81942
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 83534, 3547, 3452, 368, 341, 262, 1077, 1467, 284, 425, 24387, 5341, 12416, 2959, 486, 9641, 3547, 3452, 445, 59118, 12, 17, 16, 15, 16, 17, 24, 12, 19, 15, 15, 15, 15, 7658, 497, 2240, 568,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_gjk_time_of_impact_2d() { let left = Rectangle::new(10., 20.); let left_start_transform = transform(0., 0., 0.); let left_end_transform = transform(30., 0., 0.); let right = Rectangle::new(10., 11.); let right_transform = transform(15., 0., 0.); le...
rust_cleaned_test_functions.jsonl/90908
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 500 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 41808, 3009, 3575, 36788, 531, 62, 17, 67, 368, 341, 286, 1077, 2115, 284, 19280, 486, 931, 7, 16, 15, 2572, 220, 17, 15, 58957, 286, 1077, 2115, 4906, 18449, 284, 5165, 7, 15, 2572, 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_linking() { let mut contract_names = [ "DSTest.json:DSTest", "Lib.json:Lib", "LibraryConsumer.json:LibraryConsumer", "LibraryLinkingTest.json:LibraryLinkingTest", "NestedLib.json:NestedLib", ]; contract_names.sor...
rust_cleaned_test_functions.jsonl/61765
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7233, 287, 368, 341, 286, 1077, 5206, 5116, 9187, 284, 2278, 310, 330, 35, 784, 477, 4323, 63843, 784, 477, 756, 310, 330, 9194, 4323, 25, 9194, 756, 310, 330, 16915, 29968, 4323, 25, 16915, 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_response_for_book() { let mock_transport = MockRequest::new( "{\"status\":\"success\",\"pagination\":{\"previous\":0,\"limit\":20,\"page\":0,\"next\":\"null\"},\"data\":[{\"timestamp\":\"2017-08-31T12:31:58.782060\",\"price\":\"252610\",\"amount\":\"0.6729\"},{\"timestamp\":\...
rust_cleaned_test_functions.jsonl/75230
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9655, 5478, 26421, 368, 341, 286, 1077, 7860, 46398, 284, 14563, 1900, 486, 931, 1006, 310, 54734, 2829, 23488, 5630, 34333, 25584, 92729, 19702, 11693, 15, 52318, 9506, 11693, 17, 15, 52318, 2893, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_comment() { assert_eq!(tokens("1\n;foo\n2"), [(sp(0, 1), Token::Integer("1", 10)), (sp(7, 8), Token::Integer("2", 10))]); assert_eq!(tokens("1 #| lol |# 2"), [(sp(0, 1), Token::Integer("1", 10)), (sp(12, 13), Token::Integer("2", ...
rust_cleaned_test_functions.jsonl/92855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 372 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17638, 368, 341, 286, 2060, 10714, 10297, 30566, 445, 16, 1699, 26, 7975, 1699, 17, 4461, 310, 17826, 2154, 7, 15, 11, 220, 16, 701, 9660, 486, 3486, 445, 16, 497, 220, 16, 15, 6965, 1797, 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_param_completion_nth_param() { check( r#" fn foo(file_id: FileId) {} fn baz(file<|>, x: i32) {} "#, expect![[r#" bn file_id: FileId "#]], ); }
rust_cleaned_test_functions.jsonl/59338
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4090, 60164, 78342, 4090, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 8822, 15229, 4866, 842, 25, 2887, 764, 8, 5613, 8822, 50247, 4866, 27, 91, 8066, 856, 25, 600, 18, 17, 8, 5613, 57676, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_recursion_limit() { let mut test = TestRecursion::new(); for _ in 0..10 { let mut t = TestRecursion::new(); t.mut_children().push(test); test = t; } let bytes = test.write_to_bytes().unwrap(); let cases = vec![(None, false), (Some(9), true), (Some(10)...
rust_cleaned_test_functions.jsonl/2705
{ "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, 7080, 34280, 14763, 368, 341, 262, 1077, 5206, 1273, 284, 3393, 3820, 34280, 486, 931, 543, 262, 369, 716, 304, 220, 15, 496, 16, 15, 341, 286, 1077, 5206, 259, 284, 3393, 3820, 34280, 486, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_parse_type_expression_float() { let mut p = Parser::new(r#"float"#); let parsed = p.parse_type_expression(); let loc = Locator::new(&p.source[..]); assert_eq!( parsed, TypeExpression { base: BaseNode { location: loc.get(1, 1, 1, 6), ...
rust_cleaned_test_functions.jsonl/67817
{ "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, 21039, 1819, 28068, 17586, 368, 341, 262, 1077, 5206, 281, 284, 21102, 486, 931, 2601, 55543, 3649, 57676, 317, 262, 1077, 15676, 284, 281, 4632, 1819, 28068, 543, 262, 1077, 1329, 284, 98653, 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_file_config() { let mut tmp_cfg_file = tempfile().expect("Creating temp file failed"); let cfg = WsssConfig { http_port: 12345, ws_port: 12346, bind_address: Ipv4Addr::from_str("10.1.100.10").expect("Create config obj failed"), }; let cfg_str = toml::to_string(&...
rust_cleaned_test_functions.jsonl/60607
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 363 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 5332, 368, 341, 262, 1077, 5206, 4174, 18343, 2458, 284, 54819, 1005, 17119, 445, 24973, 2730, 1034, 4641, 797, 262, 1077, 13286, 284, 467, 84160, 2648, 341, 414, 1758, 8716, 25, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bearing_other() { assert_approx_eq!(bearing((0, 0), (2, 1)), 0.4636476); assert_approx_eq!(bearing((0, 0), (2, -1)), 2.0344440); assert_approx_eq!(bearing((0, 0), (-2, -1)), 3.6052404); assert_approx_eq!(bearing((0, 0), (-2, 1)), 5.1760368); }
rust_cleaned_test_functions.jsonl/46220
{ "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, 880, 13678, 30456, 368, 341, 6948, 90425, 10714, 10297, 87350, 1188, 15, 11, 220, 15, 701, 320, 17, 11, 220, 16, 5731, 220, 15, 13, 19, 21, 18, 21, 19, 22, 21, 317, 6948, 90425, 10714, 10297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_key_is_locked_for_primary() { 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_data_with_commit(&product, &data, fa...
rust_cleaned_test_functions.jsonl/47117
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 256 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 6892, 60271, 5478, 45314, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_limit_size() { let mut e = Entry::new(); e.set_data(b"0123456789".to_vec()); let size = u64::from(e.compute_size()); let tbls = vec![ (vec![], NO_LIMIT, 0), (vec![], size, 0), (vec![e.clone(); 10], 0, 1), (vec![e.cl...
rust_cleaned_test_functions.jsonl/10232
{ "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, 14763, 2368, 368, 341, 286, 1077, 5206, 384, 284, 15788, 486, 931, 543, 286, 384, 980, 1769, 1883, 1, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 3263, 983, 13251, 1423, 286, 1077, 1379, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_optimistic_confirmation_violation_detection() { solana_logger::setup_with_default(RUST_LOG_FILTER); // First set up the cluster with 2 nodes let slots_per_epoch = 2048; let node_stakes = vec![51, 50]; let validator_keys: Vec<_> = vec![ "4qhhXNTbKD1a5vxDDLZcHKj7ELNeiiv...
rust_cleaned_test_functions.jsonl/31912
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2314 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 318, 4532, 37681, 2273, 24903, 367, 57505, 368, 341, 262, 2048, 3362, 27413, 486, 15188, 6615, 9993, 2785, 8553, 8419, 23728, 317, 262, 442, 5512, 738, 705, 279, 10652, 448, 220, 17, 7798, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_release_track_from_str() { assert_eq!(ReleaseTrack::Stable, "stable".into()); assert_eq!(ReleaseTrack::Nightly, "nightly".into()); assert_eq!(ReleaseTrack::Unknown, "unknown".into()); }
rust_cleaned_test_functions.jsonl/108913
{ "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, 24577, 28545, 5673, 2895, 368, 341, 197, 6948, 10714, 10297, 16077, 15667, 486, 623, 480, 11, 330, 27992, 3263, 18122, 1423, 197, 6948, 10714, 10297, 16077, 15667, 486, 50437, 398, 11, 330, 9287, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_nproc_ignore() { let result = new_ucmd!().succeeds(); let nproc_total: u8 = result.stdout_str().trim().parse().unwrap(); if nproc_total > 1 { // Ignore all CPU but one let result = TestScenario::new(util_name!()) .ucmd_keepenv() .arg("--ignore"...
rust_cleaned_test_functions.jsonl/43691
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 399 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 15782, 58493, 368, 341, 262, 1077, 1102, 284, 501, 68887, 2277, 0, 1005, 82, 29264, 82, 543, 262, 1077, 308, 15782, 10784, 25, 575, 23, 284, 1102, 24839, 2895, 1005, 10666, 1005, 6400, 100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_convert_function() { let b = ast::BaseNode::default(); let pkg = parse_package( "f = (a, b) => a + b f(a: 2, b: 3)", ); let want = Package { loc: b.location.clone(), package: "main".to_string(), files: ve...
rust_cleaned_test_functions.jsonl/132520
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3732 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 9174, 368, 341, 286, 1077, 293, 284, 11763, 486, 3978, 1955, 486, 2258, 543, 286, 1077, 24793, 284, 4715, 26328, 1006, 310, 330, 69, 284, 320, 64, 11, 293, 8, 589, 264, 488, 293, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multiple_event() { // Menu event let cols = vec!["send".to_string(), "name".to_string()]; let vals = vec![ Value::String { val: "Menu".to_string(), span: Span::test_data(), }, Value::String { ...
rust_cleaned_test_functions.jsonl/86563
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 747 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 6748, 368, 341, 286, 442, 9738, 1538, 198, 286, 1077, 17000, 284, 7486, 0, 1183, 6681, 3263, 983, 3904, 1507, 330, 606, 3263, 983, 3904, 33800, 286, 1077, 28356, 284, 7486, 90515, 310, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_list_get() { let gil = Python::acquire_gil(); let py = gil.python(); let list: PyObject = GenericList { items: [1, 2, 3].iter().map(|i| i.to_object(py)).collect(), } .into_py(py); py_assert!(py, list, "list.items == [1, 2, 3]"); }
rust_cleaned_test_functions.jsonl/46921
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 139 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41232, 2019, 3062, 368, 341, 262, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 262, 1077, 4510, 284, 342, 321, 43193, 1428, 262, 1077, 1140, 25, 15891, 284, 21281, 852, 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_create_key_set_invalid_did_errors() { let for_did = "11235yBzrpJQmNyZzgoT"; let res = create_keys().for_did(for_did).unwrap_err(); assert_eq!(res.kind(), VcxErrorKind::InvalidDid); }
rust_cleaned_test_functions.jsonl/124787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 3097, 2602, 31433, 814, 307, 20196, 368, 341, 286, 1077, 369, 814, 307, 284, 330, 16, 16, 17, 18, 20, 88, 33, 89, 22252, 41, 48, 76, 98092, 57, 89, 3346, 51, 876, 286, 1077, 592, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_arraybitfield() { let mut ab = ArrayBitfield([0; 3]); assert_eq!(0u32, ab.foo1()); assert_eq!(0u32, ab.foo2()); assert_eq!(0u32, ab.foo3()); assert_eq!(0u32, ab.foo4()); assert_eq!(0i32, ab.signed_foo1()); assert_eq!(0i32, ab.signed_foo2()); assert_eq!(0i32, ab.s...
rust_cleaned_test_functions.jsonl/2276
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1534 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 4489, 2566, 368, 341, 262, 1077, 5206, 668, 284, 2910, 8344, 2566, 2561, 15, 26, 220, 18, 10149, 262, 2060, 10714, 10297, 15, 84, 18, 17, 11, 668, 58432, 16, 1423, 262, 2060, 10714, 1029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_uuid_is_not_empty_functions() -> Result<()> { let tests = vec![ScalarFunctionTest { name: "is-not-empty-uuid-passed", columns: vec![Series::from_data(vec![ "59b69da3-81d0-4db2-96e8-3e20b505a7b2", "5", ])], expect: Series::from_data(vec!...
rust_cleaned_test_functions.jsonl/78854
{ "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, 25540, 6892, 7913, 15124, 31708, 368, 1464, 5714, 71698, 341, 262, 1077, 7032, 284, 7486, 20703, 20639, 5152, 2271, 341, 286, 829, 25, 330, 285, 29169, 39433, 12, 17128, 46967, 291, 756, 286, 8147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_numeric_applicability() -> TestResult { let p = polar(); let eps = f64::EPSILON; let nan1 = f64::NAN; let nan2 = f64::from_bits(f64::NAN.to_bits() | 1); assert!(eps.is_normal() && nan1.is_nan() && nan2.is_nan()); p.register_constant(sym!("eps"), term!(eps))?; p.regist...
rust_cleaned_test_functions.jsonl/68159
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 755 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29418, 8191, 415, 2897, 368, 1464, 3393, 2077, 341, 262, 1077, 281, 284, 24660, 543, 262, 1077, 17986, 284, 282, 21, 19, 486, 45177, 55016, 280, 262, 1077, 20021, 16, 284, 282, 21, 19, 486, 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...
7
#[test] fn test_body() { let body = Body::new("".to_string()); // Test for is_empty assert!(body.is_empty()); let body = Body::new("This is a body.".to_string()); // Test for len assert_eq!(body.len(), 15); // Test for raw assert_eq!(body.raw(), b"...
rust_cleaned_test_functions.jsonl/80998
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14114, 368, 341, 286, 1077, 2487, 284, 13958, 486, 931, 445, 3263, 983, 3904, 1423, 286, 442, 3393, 369, 374, 15124, 198, 286, 2060, 10297, 2599, 2079, 15124, 1423, 286, 1077, 2487, 284, 13958, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let mut array = PackedStringArray::<i32>::new(); array.append("hello"); array.append("world"); array.append("cupcake"); array.truncate(1); assert_eq!(array.len(), 1); assert_eq!(array.get(0).unwrap(), "hello"); array...
rust_cleaned_test_functions.jsonl/52658
{ "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, 3547, 26900, 368, 341, 286, 1077, 5206, 1334, 284, 393, 11191, 703, 1857, 27638, 72, 18, 17, 6831, 931, 1428, 286, 1334, 2057, 445, 14990, 797, 286, 1334, 2057, 445, 14615, 797, 286, 1334, 2057,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_heartbeat_inproc() { let mut transport = Box::new(InprocTransport::default()); let mut listener = transport.listen("inproc://test").unwrap(); let mesh = Mesh::new(512, 128); let mesh_clone = mesh.clone(); thread::spawn(move || { let conn = lis...
rust_cleaned_test_functions.jsonl/86765
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 625 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 72471, 1243, 15782, 368, 341, 286, 1077, 5206, 7557, 284, 8261, 486, 931, 47614, 15782, 27560, 486, 2258, 1423, 286, 1077, 5206, 11446, 284, 7557, 22628, 445, 258, 15782, 1110, 1944, 1827, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_send_prevote() { let sandbox = timestamping_sandbox(); let propose = create_propose(&sandbox); sandbox.recv(&propose); sandbox.broadcast(&sandbox.create_prevote( ValidatorId(0), Height(1), Round(1), propose.object_hash(), NOT_LOCKED, ...
rust_cleaned_test_functions.jsonl/16572
{ "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, 13565, 25566, 1272, 368, 341, 262, 1077, 42754, 284, 11441, 287, 643, 31536, 543, 262, 1077, 29614, 284, 1855, 21663, 960, 2099, 76756, 626, 262, 42754, 40433, 2099, 2674, 960, 317, 262, 42754, 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_convert_predicate_logical_bad_values() { // Send in invalid input to simulate a bad actor let iconst = RPCNode { node_type: RPCNodeType::Literal as i32, children: vec![], value: Some(RPCValue::FloatValue(5.0)), }; let compariso...
rust_cleaned_test_functions.jsonl/3660
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 483 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 97474, 86484, 34199, 9146, 368, 341, 286, 442, 11000, 304, 8318, 1946, 311, 37453, 264, 3873, 12089, 198, 286, 1077, 4603, 267, 284, 34008, 1955, 341, 310, 2436, 1819, 25, 34008, 66137, 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_boolean_examples() { assert_eq!(eval("true && false"), Ok(Value::Boolean(false))); assert_eq!( eval("true && false || true && true"), Ok(Value::Boolean(true)) ); assert_eq!(eval("5 > 4 && 1 <= 1"), Ok(Value::Boolean(true))); assert_eq!(eval("5.0 <= 4.9 || !(4 ...
rust_cleaned_test_functions.jsonl/105343
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 46642, 45279, 368, 341, 262, 2060, 10714, 10297, 14170, 445, 1866, 1009, 895, 3975, 7622, 25346, 486, 6890, 3576, 4945, 262, 2060, 10714, 33673, 286, 5603, 445, 1866, 1009, 895, 1369, 830, 1009, 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_invite_max_age() { assert!(invite_max_age(0)); assert!(invite_max_age(86_400)); assert!(invite_max_age(604_800)); assert!(!invite_max_age(604_801)); }
rust_cleaned_test_functions.jsonl/29957
{ "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, 94910, 6345, 32053, 368, 341, 286, 2060, 10297, 56279, 6345, 32053, 7, 15, 1106, 286, 2060, 10297, 56279, 6345, 32053, 7, 23, 21, 62, 19, 15, 15, 1106, 286, 2060, 10297, 56279, 6345, 32053, 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_mul_scalar() { let a = Primitive::from(&vec![None, Some(6), None, Some(6)]).to(DataType::Int32); let result = mul_scalar(&a, &1i32); let expected = Primitive::from(&vec![None, Some(6), None, Some(6)]).to(DataType::Int32); assert_eq!(result, expected) }
rust_cleaned_test_functions.jsonl/12706
{ "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, 24944, 41652, 368, 341, 286, 1077, 264, 284, 51460, 486, 1499, 2099, 4083, 20703, 4064, 11, 4329, 7, 21, 701, 2240, 11, 4329, 7, 21, 7252, 568, 983, 63941, 486, 1072, 18, 17, 317, 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_dispatch_with_renewing_request_valid_request_returns_ack() { let mut req = new_test_request(); req.options.remove(0); req.options.remove(1); let client_ip = Ipv4Addr::new(192, 168, 1, 2); req.ciaddr = client_ip; let mut server = new_test_server(||...
rust_cleaned_test_functions.jsonl/61728
{ "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, 42991, 6615, 1288, 931, 287, 7893, 8337, 7893, 58900, 48447, 368, 341, 286, 1077, 5206, 4232, 284, 501, 4452, 7893, 543, 286, 4232, 10912, 4850, 7, 15, 317, 286, 4232, 10912, 4850, 7, 16, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_fold_array_spread() { fold("x = [...[]]", "x = []"); fold("x = [0, ...[], 1]", "x = [0, 1]"); fold("x = [...[0, 1], 2, ...[3, 4]]", "x = [0, 1, 2, 3, 4]"); fold("x = [...[...[0], 1], 2]", "x = [0, 1, 2]"); fold_same("[...[x]] = arr"); }
rust_cleaned_test_functions.jsonl/122197
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61187, 3858, 10123, 878, 368, 341, 262, 11555, 445, 87, 284, 16303, 1294, 19076, 330, 87, 284, 3056, 797, 262, 11555, 445, 87, 284, 508, 15, 11, 2503, 12995, 220, 16, 19076, 330, 87, 284, 508,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bitor_assign() { let mut x = u12(4); x |= u12(1); assert_eq!(x, u12(5)); x |= u12(128); assert_eq!(x, u12(133)); x = u12(1); x |= u12(127); assert_eq!(x, u12(127)); }
rust_cleaned_test_functions.jsonl/112539
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 1919, 20688, 368, 341, 286, 1077, 5206, 856, 284, 575, 16, 17, 7, 19, 317, 286, 856, 8662, 575, 16, 17, 7, 16, 317, 286, 2060, 10714, 10297, 87, 11, 575, 16, 17, 7, 20, 1106, 286, 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_format_java_version_eclipse_openj9() { let java_8 = String::from("Eclipse OpenJ9 OpenJDK 64-bit Server VM (1.8.0_222-b10) from linux-amd64 JRE with Extensions for OpenJDK for Eclipse OpenJ9 8.0.222.0, built on Jul 17 2019 21:29:18 by jenkins with g++ (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5...
rust_cleaned_test_functions.jsonl/104945
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 322 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8955, 77323, 9438, 2204, 9473, 11311, 73, 24, 368, 341, 286, 1077, 1642, 62, 23, 284, 923, 486, 1499, 445, 36, 9473, 5264, 41, 24, 5264, 41, 18301, 220, 21, 19, 15257, 8422, 17792, 320, 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_flush_guard_multiple_closed() { let mut w = make_windows(DEFAULT_CLOSED_WINDOW_PERIOD * 3); let instant = Instant::now(); let start = Utc::now(); w.add_range( Some(&Sequence { id: 1, number: 2 }), NonZeroUsize::new(2).unwrap(), ...
rust_cleaned_test_functions.jsonl/133352
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2068 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39213, 36796, 45233, 44697, 368, 341, 286, 1077, 5206, 289, 284, 1281, 58220, 43175, 78140, 24780, 43166, 353, 220, 18, 626, 286, 1077, 9690, 284, 18058, 486, 3328, 543, 286, 1077, 1191, 284, 547,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encoder_valid() { let mut e = GB18030Encoding.encoder(); assert_feed_ok!(e, "A", "", [0x41]); assert_feed_ok!(e, "BC", "", [0x42, 0x43]); assert_feed_ok!(e, "", "", []); assert_feed_ok!(e, "\u4e2d\u534e\u4eba\u6c11\u5171\u548c\u56fd", "", ...
rust_cleaned_test_functions.jsonl/48111
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 709 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39068, 8337, 368, 341, 286, 1077, 5206, 384, 284, 18865, 16, 23, 15, 18, 15, 14690, 69042, 543, 286, 2060, 42390, 19817, 10297, 68, 11, 330, 32, 497, 7342, 508, 15, 87, 19, 16, 2558, 286, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_conflicts_with_unstaged_changes() -> BitResult<()> { BitRepo::with_minimal_repo(|repo| { let ours = commit! { dir { foo < "foo" } }; let theirs = commit! {}; repo.setup_three_way_merge(ours, theirs)?; modify!(r...
rust_cleaned_test_functions.jsonl/94185
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 329 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16059, 56445, 6615, 4907, 267, 3279, 47526, 368, 1464, 6495, 2077, 71698, 341, 262, 6495, 25243, 486, 4197, 7260, 2861, 37784, 22428, 23476, 91, 341, 286, 1077, 11350, 284, 5266, 0, 341, 310, 5419...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_resolving_empty_dependency_list() { let res = resolve(pkg_id("root"), Vec::new(), &mut registry(vec!())).unwrap(); assert_that(&res, equal_to(&names(["root"]))); }
rust_cleaned_test_functions.jsonl/34728
{ "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, 4918, 19648, 15124, 62387, 2019, 368, 341, 262, 1077, 592, 284, 8830, 68780, 842, 445, 2888, 3975, 11312, 486, 931, 3148, 2549, 609, 6984, 19424, 25592, 0, 34670, 15454, 1428, 262, 2060, 70197, 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
#[test] fn test_bisect_after() { let mut level = Level::new(); level.insert(5, 5); level.insert(2, 2); level.insert(4, 4); let node = level.insert(3, 3); let maybe_found = level.bisect_after(&node, &4); assert!(maybe_found.is_some()); assert_eq!(ma...
rust_cleaned_test_functions.jsonl/65957
{ "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, 880, 285, 439, 19844, 368, 341, 286, 1077, 5206, 2188, 284, 9395, 486, 931, 543, 286, 2188, 7030, 7, 20, 11, 220, 20, 317, 286, 2188, 7030, 7, 17, 11, 220, 17, 317, 286, 2188, 7030, 7, 19,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_update_transaction_in_mempool() { let (mut mempool, mut consensus) = setup_mempool(); let txns = add_txns_to_mempool( &mut mempool, vec![TestTransaction::new(0, 0, 1), TestTransaction::new(1, 0, 2)], ); let fixed_txns = add_txns_to_mempool(&mut mempool, vec![TestT...
rust_cleaned_test_functions.jsonl/1796
{ "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, 8882, 28884, 1243, 717, 3262, 1749, 368, 341, 262, 1077, 320, 6984, 1833, 10285, 11, 5206, 23869, 8, 284, 6505, 717, 3262, 1749, 543, 262, 1077, 9854, 4412, 284, 912, 17805, 4412, 2346, 717, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nonzero() { let mut b = Buffer::with_capacity(2); Render::render(&NonZeroU8::new(10).unwrap(), &mut b).unwrap(); Render::render_escaped(&NonZeroI16::new(-20).unwrap(), &mut b).unwrap(); assert_eq!(b.as_str(), "10-20"); }
rust_cleaned_test_functions.jsonl/123191
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21637, 14154, 368, 341, 286, 1077, 5206, 293, 284, 10312, 486, 4197, 35603, 7, 17, 317, 286, 13848, 486, 7322, 2099, 8121, 17999, 52, 23, 486, 931, 7, 16, 15, 568, 15454, 1507, 609, 6984, 293,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_abort_controller() { run_in_task(|mut cx| { let mut isolate = setup(); js_check(isolate.execute( "abort_controller_test.js", include_str!("abort_controller_test.js"), )); if let Poll::Ready(Err(_)) = isolate.poll_unpin(&mut cx) { unreachable!()...
rust_cleaned_test_functions.jsonl/17115
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70907, 21600, 368, 341, 262, 1598, 1243, 12184, 22428, 6984, 20716, 91, 341, 414, 1077, 5206, 42123, 284, 6505, 543, 414, 6994, 7200, 82669, 7769, 1006, 286, 330, 46699, 21600, 4452, 2857, 756, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_build_tree() { #[rustfmt::skip] let expected_parsed_conf = ConfigNode::Section("server".into(), vec![ ConfigNode::String("address".into(), "0.0.0.0".into()), ConfigNode::Number("port".into(), "80".into()), ConfigNode::Number("threads".into(), "32".into()), ...
rust_cleaned_test_functions.jsonl/124280
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 876 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 11663, 368, 341, 262, 11506, 35788, 12501, 486, 20599, 921, 262, 1077, 3601, 75788, 16059, 284, 5532, 1955, 486, 9620, 445, 4030, 3263, 18122, 1507, 7486, 90515, 286, 5532, 1955, 486, 703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_fork_case2() { let builder = SharedBuilder::default(); let (shared, table) = builder.consensus(Consensus::default()).build().unwrap(); let mut chain_service = ChainService::new(shared.clone(), table); let genesis = shared .store() .get_block_header(&shared.s...
rust_cleaned_test_functions.jsonl/95564
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 905 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 761, 669, 19096, 17, 368, 341, 262, 1077, 7363, 284, 16990, 3297, 486, 2258, 543, 262, 1077, 320, 6100, 11, 1965, 8, 284, 7363, 63201, 13626, 7, 15220, 13626, 486, 2258, 6011, 5834, 1005,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_slice_to_mut() { let mut values = vec![1u8,2,3,4,5]; { let slice = values.slice_to_mut(2); assert!(slice == &mut [1, 2]); for p in slice.iter_mut() { *p += 1; } } assert!(values.as_slice() == &[2, 3,...
rust_cleaned_test_functions.jsonl/98364
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26488, 2346, 29523, 368, 341, 286, 1077, 5206, 2750, 284, 7486, 20703, 16, 84, 23, 11, 17, 11, 18, 11, 19, 11, 20, 935, 286, 341, 310, 1077, 15983, 284, 2750, 14530, 2346, 29523, 7, 17, 317,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_format_java_version_amazon_corretto() { let java_8 = "OpenJDK 64-Bit Server VM (25.222-b10) for linux-amd64 JRE (1.8.0_222-b10), built on Jul 11 2019 20:48:53 by \"root\" with gcc 7.3.1 20180303 (Red Hat 7.3.1-5)"; let java_11 = "OpenJDK 64-Bit Server VM (11.0.4+11-LTS) for linux...
rust_cleaned_test_functions.jsonl/113482
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8955, 77323, 9438, 22880, 5522, 14734, 2122, 983, 368, 341, 286, 1077, 1642, 62, 23, 284, 330, 5002, 41, 18301, 220, 21, 19, 7671, 275, 8422, 17792, 320, 17, 20, 13, 17, 17, 17, 1455, 16, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_solid_regex_only_multiple() { let mut cmd = assert_cmd::Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap(); cmd.args(&["-s", "-og", "\\d", "sed", "s/./AA/g"]) .write_stdin("120\n121\n") .assert() .stdout("AAAAAA\nAAAAAA\n"); }
rust_cleaned_test_functions.jsonl/7900
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 167 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 5192, 41832, 18410, 45233, 368, 341, 286, 1077, 5206, 5439, 284, 2060, 11684, 486, 4062, 486, 66715, 21816, 16978, 17223, 34, 7581, 46, 94126, 4708, 15197, 15454, 543, 286, 5439, 16365, 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_create_program_spec_permission_denied() { let mut context_builder = ContextBuilder::new(); context_builder.log_in(&[]); // Insufficient permissions let conn = context_builder.db_conn(); let hw_spec = HardwareSpecFactory::default().name("HW 1").insert(conn); let values_list: ...
rust_cleaned_test_functions.jsonl/90810
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 558 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 25096, 13594, 37971, 49522, 1122, 368, 341, 262, 1077, 5206, 2266, 28532, 284, 9608, 3297, 486, 931, 543, 262, 2266, 28532, 1665, 1243, 2099, 1294, 1215, 442, 9726, 26683, 8541, 198, 262, 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_resolving_empty_dependency_list() { let res = resolve(&pkg_id("root"), Vec::new(), &registry(vec![])).unwrap(); assert_eq!(res, names(&["root"])); }
rust_cleaned_test_functions.jsonl/48301
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 75 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4918, 19648, 15124, 62387, 2019, 368, 341, 262, 1077, 592, 284, 8830, 2099, 30069, 842, 445, 2888, 3975, 11312, 486, 931, 1507, 609, 29172, 25592, 0, 1294, 4579, 15454, 1428, 262, 2060, 10714, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_symmetric_difference_size_hint() { let x: BTreeSet<i32> = [2, 4].iter().copied().collect(); let y: BTreeSet<i32> = [1, 2, 3].iter().copied().collect(); let mut iter = x.symmetric_difference(&y); assert_eq!(iter.size_hint(), (0, Some(5))); assert_eq!(iter.next(), Some(&1)); ...
rust_cleaned_test_functions.jsonl/12209
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 210 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26825, 15903, 47525, 2368, 45825, 368, 341, 262, 1077, 856, 25, 425, 6533, 1649, 21897, 18, 17, 29, 284, 508, 17, 11, 220, 19, 936, 2015, 1005, 37728, 1122, 1005, 17384, 543, 262, 1077, 379, 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_format_int() { assert_eq!( parse_format_spec("d").format_int(&BigInt::from_bytes_be(Sign::Plus, b"\x10")), Ok("16".to_string()) ); assert_eq!( parse_format_spec("x").format_int(&BigInt::from_bytes_be(Sign::Plus, b"\x10")), O...
rust_cleaned_test_functions.jsonl/20556
{ "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, 8955, 4042, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 8955, 13594, 445, 67, 1827, 2243, 4042, 2099, 87474, 486, 1499, 12524, 21263, 3759, 622, 486, 21807, 11, 293, 11934, 87, 16, 15, 30154, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_session() { use crate::CryptoCtx; let ctx = CryptoCtx::new(); let msg = b"test"; let mut msg2 = vec![0u8; msg.len()]; let mut squeezed = [0u8; 32]; let mut squeezed_2 = [0u8; 32]; let key_handle = ctx.symmetric_key_generate("XOODYAK-128", None).unwrap(); let sy...
rust_cleaned_test_functions.jsonl/132175
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 841 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12316, 368, 341, 262, 990, 17717, 486, 58288, 23684, 401, 262, 1077, 5635, 284, 32886, 23684, 486, 931, 1428, 262, 1077, 3750, 284, 293, 1, 1944, 876, 262, 1077, 5206, 3750, 17, 284, 7486, 20703...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_write_get_perf_samples() { let ledger_path = get_tmp_ledger_path_auto_delete!(); let blockstore = Blockstore::open(ledger_path.path()).unwrap(); let num_entries: usize = 10; let mut perf_samples: Vec<(Slot, PerfSample)> = vec![]; for x in 1..num_entries +...
rust_cleaned_test_functions.jsonl/9572
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 591 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 3062, 76776, 18297, 368, 341, 286, 1077, 46933, 2638, 284, 633, 16125, 38367, 1389, 2638, 27740, 11353, 0, 543, 286, 1077, 2504, 4314, 284, 8362, 4314, 486, 2508, 7, 50704, 2638, 3875, 6011,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_whitespace() { expect_mapping!("a\tb\t123\n\"qwer\"\n" => Token::word("a"), Token::word("b"), Token::integer(123), Token::new_line(), ...
rust_cleaned_test_functions.jsonl/39351
{ "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, 86175, 368, 341, 286, 1720, 26930, 17223, 64, 4955, 65, 4955, 16, 17, 18, 1699, 2105, 80, 6566, 22245, 77, 1, 589, 9660, 486, 1158, 445, 64, 4461, 21509, 9660, 486, 1158, 445, 65, 4461, 21509,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_u8x16_all_all() { let x1 = u8x16::splat(1); let x2 = u8x16::splat(1); assert!((x1.eq(x2)).all()); }
rust_cleaned_test_functions.jsonl/43256
{ "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, 7300, 23, 87, 16, 21, 5705, 5705, 368, 341, 286, 1077, 856, 16, 284, 575, 23, 87, 16, 21, 486, 82, 42339, 7, 16, 317, 286, 1077, 856, 17, 284, 575, 23, 87, 16, 21, 486, 82, 42339, 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
#[test] fn test_get_header_size_with_extra_spaces() { let header = [0x62, 0x6C, 0x6F, 0x62, 32u8, 32u8, 0x31, 0x35, 0x0]; assert_eq!("", get_header_size(&header)); }
rust_cleaned_test_functions.jsonl/108333
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 105 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 8757, 2368, 6615, 31858, 67883, 368, 341, 286, 1077, 4247, 284, 508, 15, 87, 21, 17, 11, 220, 15, 87, 21, 34, 11, 220, 15, 87, 21, 37, 11, 220, 15, 87, 21, 17, 11, 220, 18, 17, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_linebreaksbr() { let args = HashMap::new(); let tests: Vec<(&str, &str)> = vec![ ("hello world", "hello world"), ("hello\nworld", "hello<br>world"), ("hello\r\nworld", "hello<br>world"), ("hello\n\rworld", "hello<br>\rworld"), ...
rust_cleaned_test_functions.jsonl/119663
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 345 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6528, 8960, 82, 1323, 368, 341, 286, 1077, 2827, 284, 10528, 486, 931, 543, 286, 1077, 7032, 25, 11312, 27, 2099, 495, 11, 609, 495, 16018, 284, 7486, 90515, 310, 3489, 14990, 1879, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_with_auth() { let mut buff = AsyncBuffer::new("POST / HTTP/1.1\r\nHost: 0.0.0.0:8080\r\n\r\n"); let result = block_on(async { recognize(&mut buff).await }); assert!(result.is_ok()); }
rust_cleaned_test_functions.jsonl/48181
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 14014, 368, 341, 220, 1077, 5206, 11522, 284, 21433, 4095, 486, 931, 445, 2946, 608, 10130, 14, 16, 13, 16, 12016, 1699, 9296, 25, 220, 15, 13, 15, 13, 15, 13, 15, 25, 23, 15, 23, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_default_capacity() { assert_eq!(Buffer::default_capacity(2), 4); assert_eq!(Buffer::default_capacity(1000), 1127); }
rust_cleaned_test_functions.jsonl/87203
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 71 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 35603, 368, 341, 286, 2060, 10714, 10297, 4095, 486, 2258, 35603, 7, 17, 701, 220, 19, 317, 286, 2060, 10714, 10297, 4095, 486, 2258, 35603, 7, 16, 15, 15, 15, 701, 220, 16, 16, 17, 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
#[test] fn test_filteroptions_from_commandoptions1() { let mut copt1 = CommandOptions::new(); copt1.category = Some("test1".to_string()); let fopt1 = FilterOptions::from(copt1); if let Some(category) = fopt1.category { assert_eq!("test1", category); } ...
rust_cleaned_test_functions.jsonl/83762
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 2875, 5673, 10811, 2875, 16, 368, 341, 286, 1077, 5206, 1062, 417, 16, 284, 7348, 3798, 486, 931, 543, 286, 1062, 417, 16, 18391, 284, 4329, 445, 1944, 16, 3263, 983, 3904, 5231, 286, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_generate_from_secondary() { let hex = "#26dafd"; let base = hex_to_real_rgba(hex); println!("base: {}", base); assert_eq!(base, rgba(38, 218, 253, 1.0)); let grey = base.greyscale(); println!("grey: {}", grey); assert_eq!(grey, rgba(146,...
rust_cleaned_test_functions.jsonl/69877
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 656 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 5673, 77759, 368, 341, 286, 1077, 12371, 284, 5869, 17, 21, 85733, 67, 5123, 715, 286, 1077, 2331, 284, 12371, 2346, 15266, 95229, 44660, 317, 286, 13751, 17223, 3152, 25, 24689, 2331, 626,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_syscall_sol_alloc_free() { // large alloc { let heap = vec![0_u8; 100]; let ro_regions = &[MemoryRegion::default()]; let rw_regions = &[MemoryRegion::new_from_slice(&heap, MM_HEAP_START)]; let mut syscall = SyscallSolAllocFree { ...
rust_cleaned_test_functions.jsonl/42306
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 972 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20344, 6659, 53668, 14802, 8905, 368, 341, 286, 442, 3460, 5574, 198, 286, 341, 310, 1077, 17364, 284, 7486, 20703, 15, 7300, 23, 26, 220, 16, 15, 15, 935, 310, 1077, 926, 58035, 284, 44590, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_auto() { let mut core = tokio_core::reactor::Core::new().unwrap(); let handle = core.handle(); let cfg = Config::new() .add_host(&"localhost".parse().unwrap(), vec!["127.0.0.1".parse().unwrap()]) .add_service(&"_test._tcp.localhost".parse().unwrap()...
rust_cleaned_test_functions.jsonl/30206
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 459 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27740, 368, 341, 262, 1077, 5206, 6200, 284, 9628, 815, 15467, 486, 2934, 269, 486, 5386, 486, 931, 1005, 15454, 543, 262, 1077, 3705, 284, 6200, 10132, 1428, 262, 1077, 13286, 284, 5532, 486, 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_webpki() { let params = util::default_params(); let cert = Certificate::from_params(params).unwrap(); // Now verify the certificate. let cert_der = cert.serialize_der().unwrap(); let sign_fn = |cert, msg| sign_msg_ecdsa(cert, msg, &signature::ECDSA_P256_SHA256_ASN1_SIGNING); check_cert...
rust_cleaned_test_functions.jsonl/74772
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25960, 79, 6642, 368, 341, 10217, 3628, 284, 4094, 486, 2258, 6745, 543, 10217, 2777, 284, 31402, 486, 1499, 6745, 8917, 568, 15454, 1428, 197, 322, 4695, 10146, 279, 15748, 624, 10217, 2777, 3534...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_transaction_extended_format() { let raw_tx = sample_extended_transaction(); let tx_bytes = hex::decode(&raw_tx).unwrap(); let transaction = parse_transaction(&tx_bytes).unwrap(); let inputs = transaction.inputs; let outputs = transaction.outputs; ...
rust_cleaned_test_functions.jsonl/132192
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 438 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 28884, 61678, 8955, 368, 341, 286, 1077, 7112, 17805, 284, 6077, 61678, 28884, 543, 286, 1077, 9854, 12524, 284, 12371, 486, 18196, 2099, 1041, 17805, 568, 15454, 543, 286, 1077, 7745, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_close_database() { let dir = tempdir().unwrap(); let env = Environment::new().set_max_dbs(10).open(dir.path()).unwrap(); let txn = env.begin_rw_txn().unwrap(); txn.create_db(Some("db"), ffi::MDBX_db_flags_t::empty()) .unwrap(); txn.open_db(Som...
rust_cleaned_test_functions.jsonl/81370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12704, 27341, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 6105, 284, 11586, 486, 931, 1005, 746, 6345, 814, 1279, 7, 16, 15, 568, 2508, 14161, 3875, 6011, 15454, 142...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prefix() { let cwd = env::current_dir().unwrap().to_string_lossy().into_owned(); let xd = BaseDirectories::with_env("myapp", "", &*make_env(vec![ ("HOME", format!("{}/test_files/user", cwd)), ("XDG_CACHE_HOME", format!("{}/test_files/user/cache", cwd)), ])...
rust_cleaned_test_functions.jsonl/83590
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13974, 368, 341, 262, 1077, 46938, 284, 6105, 486, 3231, 4334, 1005, 15454, 1005, 983, 3904, 11193, 88, 1005, 18122, 51973, 543, 262, 1077, 79052, 284, 5351, 56397, 486, 4197, 15879, 445, 2408, 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, 1...
1
#[test] fn test_struct_variant() { #[derive(Serialize)] enum A { A { x: u32, y: u16 }, } let a = A::A { x: 54, y: 720 }; assert_eq!( &*crate::to_string::<N, _>(&a).unwrap(), r#"{"A":{"x":54,"y":720}}"# ); }
rust_cleaned_test_functions.jsonl/114862
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 46112, 368, 341, 286, 11506, 27098, 3759, 9050, 5563, 286, 7618, 362, 341, 310, 362, 314, 856, 25, 575, 18, 17, 11, 379, 25, 575, 16, 21, 1153, 286, 456, 286, 1077, 264, 284, 362, 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_assign_from_string_append() { let mut env = Env::new(); env.insert( "FOO".to_string(), EnvKey::List(vector!["whiskeyBAR".to_string(), "beerBAR".to_string()]), ); let env = assign_from_string(env, "FOO+=milkBAR").unwrap(); assert_e...
rust_cleaned_test_functions.jsonl/131141
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 321 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20688, 5673, 3904, 26041, 368, 341, 286, 1077, 5206, 6105, 284, 37039, 486, 931, 543, 286, 6105, 7030, 1006, 310, 330, 3788, 46, 3263, 983, 3904, 3148, 310, 37039, 1592, 486, 852, 19066, 0, 1183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nested_ordered_list() { assert_markdown_eq( common::parts::nested_ordered_list, r###" 1. one 1. two 1. inner one 1. inner two 1. three "###, ); }
rust_cleaned_test_functions.jsonl/133516
{ "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, 66279, 75272, 2019, 368, 341, 262, 2060, 18924, 2923, 10714, 1006, 286, 4185, 486, 18252, 486, 59271, 75272, 2019, 345, 286, 435, 14374, 698, 16, 13, 825, 198, 16, 13, 1378, 198, 256, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_base58_roundtrip() { let s = "xprv9wTYmMFdV23N2TdNG573QoEsfRrWKQgWeibmLntzniatZvR9BmLnvSxqu53Kw1UmYPxLgboyZQaXwTCg8MSY3H2EU4pWcQDnRnrVA1xe8fs"; let v: Vec<u8> = from_check(s).unwrap(); assert_eq!(check_encode_slice(&v[..]), s); assert_eq!(from_check(&check_encode_slice(&v[..])).ok(), Som...
rust_cleaned_test_functions.jsonl/31406
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7651, 20, 23, 29896, 32981, 368, 341, 197, 10217, 274, 284, 330, 87, 649, 85, 24, 86, 22098, 76, 31607, 67, 53, 17, 18, 45, 17, 95976, 6140, 20, 22, 18, 48, 78, 36, 17246, 49, 81, 68316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_flag() { let flagname = "ignition.platform.id"; let tests = vec![ ("", None), ("foo=bar", None), ("ignition.platform.id", None), ("ignition.platform.id=", None), ("ignition.platform.id=\t", None), ("igni...
rust_cleaned_test_functions.jsonl/112403
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 435 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 10933, 368, 341, 286, 1077, 5181, 606, 284, 330, 622, 680, 24695, 1764, 876, 286, 1077, 7032, 284, 7486, 90515, 310, 3489, 497, 2240, 1326, 310, 3489, 7975, 28, 2257, 497, 2240, 1326, 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_trigonometric_faulty() { let spec = "import math\noutput o: UInt8 := cos(1)"; assert_eq!(1, num_type_errors(spec)); }
rust_cleaned_test_functions.jsonl/110665
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 79 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 73881, 23375, 70097, 88, 368, 341, 286, 1077, 1398, 284, 330, 474, 6888, 1699, 3006, 297, 25, 22275, 23, 1669, 7960, 7, 16, 24023, 286, 2060, 10714, 10297, 16, 11, 1629, 1819, 20196, 38209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_part2_d() { let input = "####### #.E...# #.#..G# #.###.# #E#G#G# #...#G# #######"; assert_eq!(part2(&as_input(input)), 6474); }
rust_cleaned_test_functions.jsonl/13280
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 17, 814, 368, 341, 286, 1077, 1946, 4035, 310, 330, 82024, 1797, 671, 13, 36, 1112, 4956, 1797, 671, 43326, 496, 38, 4956, 1797, 671, 13, 14374, 13, 4956, 1797, 671, 36, 2, 38, 2, 38,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_model_calculate_cost() { let (mint_keypair, start_hash) = test_setup(); let tx = SanitizedTransaction::from_transaction_for_tests(system_transaction::transfer( &mint_keypair, &Keypair::new().pubkey(), 2, start_hash, ));...
rust_cleaned_test_functions.jsonl/81994
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 395 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15890, 5047, 24005, 11207, 15890, 368, 341, 286, 1077, 320, 67791, 3097, 12670, 11, 1191, 8950, 8, 284, 1273, 21363, 543, 286, 1077, 9854, 284, 5836, 83443, 8070, 486, 1499, 28884, 5478, 32509, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_function_literal_without_name() { let name = match statement_expression("fn() { }") { Expression::FunctionLiteral { name, .. } => name, _ => panic!("not a function literal"), }; assert_eq!(name, None); }
rust_cleaned_test_functions.jsonl/64084
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9174, 34100, 39904, 1269, 368, 341, 286, 1077, 829, 284, 2432, 5114, 28068, 445, 8822, 368, 314, 335, 899, 341, 310, 16378, 486, 5152, 17350, 314, 829, 11, 5241, 335, 589, 829, 345, 310, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_clone_expand() { let expanded = expand_builtin_derive( r#" #[derive(Clone)] struct Foo<A, B>; "#, known::Clone, ); assert_eq!( expanded, "impl<T0:core::clone::Clone,T1:core::clone::Clone>core::clone::Clonefo...
rust_cleaned_test_functions.jsonl/86382
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 210 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54742, 67875, 368, 341, 286, 1077, 17183, 284, 9225, 73829, 35345, 533, 1006, 310, 435, 2, 698, 286, 11506, 27098, 65297, 5563, 286, 2036, 33428, 30192, 11, 425, 10133, 57676, 345, 310, 3881, 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_channel_blocking() { let system = KompactConfig::default().build().expect("System"); let comp = system.create(BlockingComponent::new); system .start_notify(&comp) .wait_timeout(TIMEOUT) .expect("Component didn't start"); let (s...
rust_cleaned_test_functions.jsonl/107759
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 388 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14571, 91449, 368, 341, 286, 1077, 1849, 284, 730, 14435, 531, 2648, 486, 2258, 1005, 5834, 1005, 17119, 445, 2320, 797, 286, 1077, 1367, 284, 1849, 2520, 7, 48266, 2189, 486, 931, 317, 286, 184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_write_all_vectored() { let waker = noop_waker(); let mut cx = Context::from_waker(&waker); #[rustfmt::skip] // Becomes unreadable otherwise. let tests: Vec<(_, &'static [u8])> = vec![ (vec![], &[]), (vec![IoSlice::new(&[]), IoSlice::new(&[...
rust_cleaned_test_functions.jsonl/87849
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1043 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 5705, 59402, 3018, 368, 341, 286, 1077, 289, 4407, 284, 60829, 1670, 4407, 543, 286, 1077, 5206, 20716, 284, 9608, 486, 1499, 1670, 4407, 2099, 86, 4407, 626, 286, 11506, 35788, 12501, 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...
3
#[test] fn test_decoder_decode_body_too_long() { let buffer = "RTSP/2.0 200 OK\r\n\ Content-Length: 5\r\n\ \r\n\ 12345"; let config = ConfigBuilder::new().with_body_max_length(2).build(); let mut decoder = Decoder::with_co...
rust_cleaned_test_functions.jsonl/123054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 267 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49843, 15227, 14114, 2346, 78, 17799, 368, 341, 286, 1077, 4147, 284, 330, 5350, 4592, 14, 17, 13, 15, 220, 17, 15, 15, 10402, 12016, 1699, 5661, 2549, 8883, 52493, 25, 220, 20, 12016, 1699, 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_decode_and_reg_w() { assert_eq!( decode_32(0xea155411), Instruction::AND_reg { params: Reg3ShiftParams { rd: Reg::R4, rn: Reg::R5, rm: Reg::R1, setflags: SetFlags::True, shift_t: ...
rust_cleaned_test_functions.jsonl/64851
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 280 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 8378, 4920, 1670, 368, 341, 1066, 262, 2060, 10714, 33673, 286, 16895, 62, 18, 17, 7, 15, 56570, 16, 20, 20, 19, 16, 16, 1326, 286, 29051, 486, 3976, 4920, 341, 310, 3628, 25, 3184, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_function_one_param() { let prog = r#" fn add5(a:int) -> int { a + 5 } let b = 5; add5(b) "#; let ast = program(prog).unwrap(); let mut state = State::default(); SymbolDefineVisitor::visit(&ast, &mut state).unwrap(); TypeComputationVisitor::visit(&ast, &mut state).unw...
rust_cleaned_test_functions.jsonl/53550
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 177 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9174, 11667, 4090, 368, 341, 262, 1077, 29271, 284, 435, 2, 698, 8822, 912, 20, 2877, 14337, 8, 1464, 526, 341, 262, 264, 488, 220, 20, 198, 532, 1149, 293, 284, 220, 20, 280, 718, 20, 1883,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_line_wrap_idempotency() { let desc = DESC.wrap(80); let second = desc.wrap(80); assert_eq!(desc, second.wrap(80)); assert_ne!(desc, second.wrap(75)); }
rust_cleaned_test_functions.jsonl/19544
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 105 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6528, 38550, 842, 3262, 354, 2251, 368, 341, 286, 1077, 6560, 284, 16089, 42499, 7, 23, 15, 317, 286, 1077, 2086, 284, 6560, 42499, 7, 23, 15, 317, 286, 2060, 10714, 10297, 8614, 11, 2086, 424...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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/5550
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 678 }
[ 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_merge() { let stake_address = solana_sdk::pubkey::new_rand(); let merge_from_address = solana_sdk::pubkey::new_rand(); let authorized_address = solana_sdk::pubkey::new_rand(); let meta = Meta::auto(&authorized_address); let stake_lamports = 42; let...
rust_cleaned_test_functions.jsonl/31665
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3076 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 368, 341, 286, 1077, 18279, 6744, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 10880, 5673, 6744, 284, 2048, 3362, 61783, 486, 9585, 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...
5