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_rollback_del() { let engine = engine::new_local_engine(TEMP_DIR, ALL_CFS).unwrap(); let (k, v) = (b"k1", b"v1"); must_prewrite_put(engine.as_ref(), k, v, k, 5); must_commit(engine.as_ref(), k, 5, 10); // Prewrite delete must_prewrite_delete(engin...
rust_cleaned_test_functions.jsonl/23325
{ "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, 62, 33559, 18029, 368, 341, 286, 1077, 4712, 284, 4712, 486, 931, 13564, 24823, 7, 48343, 8291, 11, 13097, 920, 8485, 568, 15454, 1428, 286, 1077, 320, 74, 11, 348, 8, 284, 320, 65, 62911, 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_connect_for_different_types() { test_connect!("a-b", ["a", "b"], "-"); let hyphen = "-".to_string(); test_connect!("a-b", [s("a"), s("b")], &*hyphen); test_connect!("a-b", vec!["a", "b"], &*hyphen); test_connect!("a-b", &*vec!["a", "b"], "-"); test_connect!("a-b", vec![s(...
rust_cleaned_test_functions.jsonl/11082
{ "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, 15720, 5478, 82741, 9763, 368, 341, 262, 1273, 15720, 17223, 64, 1455, 497, 4383, 64, 497, 330, 65, 7914, 6523, 797, 262, 1077, 6275, 14769, 284, 6523, 3263, 983, 3904, 543, 262, 1273, 15720, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_por_no_challenge_input_2kib_8_0_0() { test_por_no_challenge_input::<U8, U0, U0>(1 << 6); }
rust_cleaned_test_functions.jsonl/108263
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 65 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 76628, 6536, 87406, 5898, 62, 17, 74, 579, 62, 23, 62, 15, 62, 15, 368, 341, 262, 1273, 76628, 6536, 87406, 5898, 27638, 52, 23, 11, 547, 15, 11, 547, 15, 2235, 16, 1115, 220, 21, 317, 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
#[test] fn test_program_bpf_program_id_spoofing() { let GenesisConfigInfo { genesis_config, mint_keypair, .. } = create_genesis_config(50); let mut bank = Bank::new_for_tests(&genesis_config); let (name, id, entrypoint) = solana_bpf_loader_program!(); bank.add_builtin...
rust_cleaned_test_functions.jsonl/5742
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 762 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25096, 880, 15897, 25096, 842, 643, 5368, 1055, 287, 368, 341, 262, 1077, 40788, 2648, 1731, 341, 286, 59366, 5332, 345, 286, 28337, 3097, 12670, 345, 286, 54538, 262, 335, 284, 1855, 16322, 13774...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vote_state_withdraw() { let (vote_pubkey, mut vote_account) = create_test_account(); // unsigned request let res = withdraw( &mut KeyedAccount::new(&vote_pubkey, false, &mut vote_account), &[], 0, &mut KeyedAccount::new(&Pu...
rust_cleaned_test_functions.jsonl/69983
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 945 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54360, 4387, 6615, 7633, 368, 341, 286, 1077, 320, 29358, 34014, 792, 11, 5206, 6910, 13500, 8, 284, 1855, 4452, 13500, 1428, 286, 442, 3774, 1681, 198, 286, 1077, 592, 284, 14798, 1006, 310, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_keychain() { let config = Arc::new(Config::default()); let keychain = SystemKeyChain::from(config); assert!(keychain.get_token("test.example.com/missing").is_err()); keychain .set_token("test.example.com/present", "example-token") .unwrap...
rust_cleaned_test_functions.jsonl/73769
{ "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, 3097, 8819, 368, 341, 286, 1077, 2193, 284, 19689, 486, 931, 33687, 486, 2258, 1423, 286, 1077, 1376, 8819, 284, 739, 1592, 18837, 486, 1499, 8754, 626, 286, 2060, 10297, 792, 8819, 670, 6458, 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_get_snapshot_storages_empty() { let db = AccountsDb::new(Vec::new(), &ClusterType::Development); assert!(db.get_snapshot_storages(0).is_empty()); }
rust_cleaned_test_functions.jsonl/37785
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 87 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 53265, 1261, 269, 1134, 15124, 368, 341, 286, 1077, 2927, 284, 40655, 7994, 486, 931, 49923, 486, 931, 1507, 609, 28678, 929, 486, 39419, 317, 286, 2060, 10297, 1999, 670, 53265, 1261, 269, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_staking_state_interop() { // See protocol server stdout for hash. // Setup protocol server with initialized mock consensus state. let server = ProtocolServer::new(Fixture::ConsensusMock.into()); let mock_consensus_root = Root { versi...
rust_cleaned_test_functions.jsonl/88220
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 5875 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 1765, 4387, 15318, 453, 368, 341, 16885, 286, 442, 3496, 11507, 3538, 20075, 369, 5175, 382, 286, 442, 18626, 11507, 3538, 448, 17271, 7860, 23869, 1584, 624, 286, 1077, 3538, 284, 24572, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_set_num_threads_decreasing() { let new_thread_amount = 2; let mut pool = Pool::<ThunkWorker<()>>::new(TEST_TASKS); for _ in 0..TEST_TASKS { pool.execute(Thunk::of(|| ())); } pool.set_num_threads(new_thread_amount); for _ in 0..new_threa...
rust_cleaned_test_functions.jsonl/22894
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 274 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 4273, 29725, 2259, 75462, 368, 341, 286, 1077, 501, 10814, 13471, 284, 220, 17, 280, 286, 1077, 5206, 7314, 284, 22728, 27638, 38223, 21936, 27, 368, 77595, 931, 50320, 26315, 50, 317, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_sub_scalar_saturating() { let a = Int32Array::from(&[None, Some(6), None, Some(6)]); let result = saturating_sub_scalar(&a, &1i32); let expected = Int32Array::from(&[None, Some(5), None, Some(5)]); assert_eq!(result, expected); let a = Int8Array::from(&[S...
rust_cleaned_test_functions.jsonl/23360
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 283 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 41652, 643, 2628, 1095, 368, 341, 286, 1077, 264, 284, 1333, 18, 17, 1857, 486, 1499, 2099, 58, 4064, 11, 4329, 7, 21, 701, 2240, 11, 4329, 7, 21, 41958, 286, 1077, 1102, 284, 93477, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_1() { let z1 = c(3i32, 2i32); let z2 = c(1i32, 4i32); assert_eq!(z1 * z2, c(-5i32, 14i32)); }
rust_cleaned_test_functions.jsonl/99216
{ "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, 24944, 62, 16, 368, 341, 262, 1077, 1147, 16, 284, 272, 7, 18, 72, 18, 17, 11, 220, 17, 72, 18, 17, 317, 262, 1077, 1147, 17, 284, 272, 7, 16, 72, 18, 17, 11, 220, 19, 72, 18, 17, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iterate_collapsed() { let items = vec![ Path::new("a/file1.txt"), Path::new("b/file2.txt"), ]; let mut tree = FileTreeItems::new(&items, &BTreeSet::new()).unwrap(); tree.collapse(0, false); let mut it = tree.iterate(0, 10); assert_eq!(it.next().unwrap().0, 0); assert...
rust_cleaned_test_functions.jsonl/129792
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 349, 43597, 9200, 368, 341, 197, 10217, 3589, 284, 7486, 90515, 298, 69640, 486, 931, 445, 64, 23903, 16, 3909, 3975, 715, 298, 69640, 486, 931, 445, 65, 23903, 17, 3909, 3975, 715, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_valid_string() { let mut params = Map::new(); params.assign("numeric", Value::String("3".to_owned())).ok(); let mut rules = BTreeMap::new(); rules.insert("numeric", vec![Rule::Numeric]); let result = validate(&rules, params); assert!(result.is_ok()); assert...
rust_cleaned_test_functions.jsonl/74438
{ "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, 29418, 8337, 3904, 368, 341, 262, 1077, 5206, 3628, 284, 5027, 486, 931, 543, 262, 3628, 17870, 445, 19600, 497, 5162, 486, 703, 445, 18, 3263, 983, 51973, 34670, 562, 1428, 262, 1077, 5206, 560...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ElfMut_from_hdr_bad_version() { let mut buf = ELF32_DYNAMIC_ELF_HDR_BAD_VERSION.clone(); let elf: Result<ElfMut<'_, LittleEndian, Elf32>, ElfError> = ElfMut::try_from(&mut buf[0..]); assert!(elf.is_err()); assert_eq!(elf.err(), Some(ElfError::BadVersion(0x05))); }
rust_cleaned_test_functions.jsonl/119509
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2089, 11008, 51440, 5673, 28238, 34199, 9438, 368, 341, 262, 1077, 5206, 6607, 284, 72568, 18, 17, 57356, 2089, 22609, 55765, 30666, 10678, 15997, 543, 262, 1077, 40745, 25, 5714, 27, 75832, 51440, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_proof_types() -> Result<()> { let seal_types = vec![ fil_RegisteredSealProof::StackedDrg2KiBV1, fil_RegisteredSealProof::StackedDrg8MiBV1, fil_RegisteredSealProof::StackedDrg512MiBV1, fil_RegisteredSealProof::StackedDrg32GiBV1, ...
rust_cleaned_test_functions.jsonl/11150
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2093 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86757, 9763, 368, 1464, 5714, 71698, 341, 286, 1077, 25349, 9763, 284, 7486, 90515, 310, 1461, 62, 41430, 1514, 278, 31076, 486, 4336, 291, 35, 1984, 17, 72572, 59343, 16, 345, 310, 1461, 62, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_part1() { assert_eq!( part1( r" ecl:gry pid:860033327 eyr:2020 hcl:#fffffd byr:1937 iyr:2017 cid:147 hgt:183cm iyr:2013 ecl:amb cid:350 eyr:2023 pid:028048884 hcl:#cfa07d byr:1929 hcl:#ae17e1 iyr:2013 eyr:2024 ecl:brn pid:760753108 byr:1931 hgt:179cm hcl:#cfa07d eyr:20...
rust_cleaned_test_functions.jsonl/16294
{ "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, 10495, 16, 368, 341, 262, 2060, 10714, 33673, 286, 949, 16, 1006, 310, 435, 698, 68, 564, 70418, 884, 14814, 25, 23, 21, 15, 15, 18, 18, 18, 17, 22, 3912, 81, 25, 17, 15, 17, 15, 305, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_validate_max_gas_units_above_max() { let (config, key) = config_builder::test_config(); let vm_validator = TestValidator::new(&config); let address = account_config::association_address(); let transaction = transaction_test_helpers::get_test_signed_transaction( address, ...
rust_cleaned_test_functions.jsonl/19607
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 346 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 6345, 82116, 28345, 77315, 6345, 368, 341, 262, 1077, 320, 1676, 11, 1376, 8, 284, 2193, 28532, 486, 1944, 5332, 543, 262, 1077, 10995, 64959, 284, 3393, 14256, 486, 931, 2099, 1676, 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_bool_statistics() { let stats = statistics_roundtrip::<BoolType>(&[true, false, false, true]); assert!(stats.has_min_max_set()); if let Statistics::Boolean(stats) = stats { assert_eq!(stats.min(), &false); assert_eq!(stats.max(), &true); } ...
rust_cleaned_test_functions.jsonl/85663
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22159, 49569, 368, 341, 286, 1077, 10472, 284, 13142, 29896, 32981, 27638, 11233, 929, 44784, 58, 1866, 11, 895, 11, 895, 11, 830, 2558, 286, 2060, 10297, 16260, 6858, 7260, 6345, 2602, 1423, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_resolve_store_state_up() { let store = new_store(STORE_ADDR, metapb::StoreState::Up); let runner = new_runner(store); assert!(runner.get_address(0).is_ok()); }
rust_cleaned_test_functions.jsonl/86852
{ "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, 77291, 14809, 4387, 8237, 368, 341, 286, 1077, 3553, 284, 501, 14809, 40650, 5881, 16058, 11, 2270, 391, 65, 486, 6093, 1397, 486, 2324, 317, 286, 1077, 22259, 284, 501, 54828, 31200, 317, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_round_trip_ascii_password() { let keyring = Keyring::new(TEST_SERVICE, TEST_USER); keyring.set_password(TEST_ASCII_PASSWORD).unwrap(); let stored_password = keyring.get_password().unwrap(); assert_eq!(stored_password, TEST_ASCII_PASSWORD); keyring.dele...
rust_cleaned_test_functions.jsonl/99047
{ "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, 29896, 63883, 50238, 10122, 368, 341, 286, 1077, 1376, 12640, 284, 5309, 12640, 486, 931, 50320, 21590, 11, 13602, 9107, 626, 286, 1376, 12640, 980, 10122, 50320, 98924, 23059, 568, 15454, 1428, 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_write_to_string() { let mut s = String::new(); writedoc!( s, " one two ", ) .unwrap(); let expected = "one\ntwo\n"; assert_eq!(s, expected); }
rust_cleaned_test_functions.jsonl/60013
{ "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, 9165, 2346, 3904, 368, 341, 262, 1077, 5206, 274, 284, 923, 486, 931, 543, 262, 2107, 291, 509, 33673, 286, 274, 345, 286, 6228, 286, 825, 198, 286, 1378, 198, 286, 21796, 262, 1727, 262, 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_bytes() { assert_eq!(Binary::from(Bytes::from("test")).len(), 4); assert_eq!(Binary::from(Bytes::from("test")).as_ref(), b"test"); }
rust_cleaned_test_functions.jsonl/88999
{ "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, 12524, 368, 341, 286, 2060, 10714, 10297, 21338, 486, 1499, 76423, 486, 1499, 445, 1944, 15197, 2892, 1507, 220, 19, 317, 286, 2060, 10714, 10297, 21338, 486, 1499, 76423, 486, 1499, 445, 1944, 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
#[test] fn test_force_checkout_locally_deleted_tree() -> BitResult<()> { BitRepo::with_sample_repo(|repo| { rmdir!(repo: "dir"); bit_checkout!(repo: --force "master")?; assert!(exists!(repo: "dir")); Ok(()) }) }
rust_cleaned_test_functions.jsonl/62991
{ "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, 40739, 68186, 13400, 745, 39418, 11663, 368, 1464, 6495, 2077, 71698, 341, 262, 6495, 25243, 486, 4197, 17491, 37784, 22428, 23476, 91, 341, 286, 435, 69695, 10297, 23476, 25, 330, 3741, 797, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_signature_offset() { let offsets = SecpSignatureOffsets { signature_offset: std::u16::MAX, ..SecpSignatureOffsets::default() }; assert_eq!( test_case(1, &offsets), Err(Secp256k1Error::InvalidSignature) ); le...
rust_cleaned_test_functions.jsonl/47860
{ "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, 39859, 6917, 368, 341, 286, 1077, 35046, 284, 4520, 79, 25088, 81095, 341, 310, 11957, 6917, 25, 1460, 486, 84, 16, 21, 486, 10586, 345, 310, 5241, 8430, 79, 25088, 81095, 486, 2258, 741, 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_dynamic_groupby_by_13_columns() { // The content for every groupby series. let series_content = ["A", "A", "B", "B", "C"]; // The name of every groupby series. let series_names = [ "G1", "G2", "G3", "G4", "G5", "G6", "G7", "G8", "G9", "G10", "G11", "G...
rust_cleaned_test_functions.jsonl/43512
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 848 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45992, 6288, 1694, 3710, 62, 16, 18, 22590, 368, 341, 286, 442, 576, 2213, 369, 1449, 1874, 1694, 4013, 624, 286, 1077, 4013, 7495, 284, 4383, 32, 497, 330, 32, 497, 330, 33, 497, 330, 33, 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...
3
#[test] fn test_metadata_no_desc_pkg() { let src = " // Package foo does a thing. // // ## Metadata // key: valueA // key: valueB // key1: value with spaces // key_with_underscores: value package foo "; let loc = Locator::ne...
rust_cleaned_test_functions.jsonl/123732
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 624 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22220, 6536, 10986, 64739, 368, 341, 286, 1077, 2286, 284, 6228, 286, 442, 16906, 15229, 1558, 264, 3166, 624, 286, 6475, 286, 442, 7704, 33589, 198, 286, 442, 1376, 25, 897, 32, 198, 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
#[test] fn test_single_claimable_balance_request_uri() { let req = single( "00000000c582697b67cbec7f9ce64f4dc67bfb2bfd26318bb9f964f4d70e3f41f650b1e6".to_string(), ); let uri = req.uri(&host()).unwrap(); assert!(uri .to_string() .starts_with("ht...
rust_cleaned_test_functions.jsonl/17883
{ "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, 19487, 84969, 480, 29396, 7893, 15572, 368, 341, 286, 1077, 4232, 284, 3175, 1006, 310, 330, 15, 15, 15, 15, 15, 15, 15, 15, 66, 20, 23, 17, 21, 24, 22, 65, 21, 22, 7221, 757, 22, 69, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bpf_functions() { { let ret = VALIDATE_ARCHITECTURE(); let instructions = vec![ sock_filter { code: 32, jt: 0, jf: 0, k: 4, }, sock_filt...
rust_cleaned_test_functions.jsonl/17480
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 814 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 15897, 31708, 368, 341, 286, 341, 310, 1077, 2112, 284, 43291, 2336, 40049, 952, 5935, 4521, 543, 310, 1077, 11221, 284, 7486, 90515, 394, 11087, 8727, 341, 503, 2038, 25, 220, 18, 17, 345,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stake_state_redeem_rewards() { let mut vote_state = VoteState::default(); // bootstrap means fully-vested stake at epoch 0 let stake_lamports = 1; let mut stake = new_stake( stake_lamports, &Pubkey::default(), &vote_sta...
rust_cleaned_test_functions.jsonl/104287
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 871 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 726, 4387, 1288, 450, 336, 77997, 368, 341, 286, 1077, 5206, 6910, 4387, 284, 34034, 1397, 486, 2258, 543, 1789, 286, 442, 26925, 3363, 7225, 12, 7019, 291, 18279, 518, 16342, 220, 15, 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_block_comment() { assert_parse_success!(comment, "/**/", ()); assert_parse_success!(comment, "/* * */", ()); assert_parse_success!(comment, "/** * **/", ()); assert_parse_success!(comment, "/* hello *\n\t */", ()); }
rust_cleaned_test_functions.jsonl/66444
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7113, 17638, 368, 341, 262, 2060, 21039, 18632, 10297, 6182, 11, 3521, 334, 28105, 49323, 262, 2060, 21039, 18632, 10297, 6182, 11, 330, 1057, 353, 639, 497, 49323, 262, 2060, 21039, 18632, 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_optflagmulti_long1() { let args = vec!["--verbose".to_string()]; match Options::new() .optflagmulti("v", "verbose", "verbosity") .parse(&args) { Ok(ref m) => { assert_eq!(m.opt_count("verbose"), 1); } _ => panic!(), } }
rust_cleaned_test_functions.jsonl/52372
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 9903, 26268, 17799, 16, 368, 341, 262, 1077, 2827, 284, 7486, 0, 1183, 313, 14883, 3263, 983, 3904, 33800, 262, 2432, 14566, 486, 931, 741, 286, 659, 2912, 9903, 26268, 445, 85, 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_lookup() { let authority = create_example(); let mut catalog = Catalog::new(); catalog.upsert(authority.origin().clone().into(), authority); let mut io_loop = Runtime::new().unwrap(); let (stream, sender) = TestClientStream::new(Arc::new(Mutex::new(catalog))); let client...
rust_cleaned_test_functions.jsonl/119023
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 426 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27464, 368, 341, 262, 1077, 11198, 284, 1855, 39304, 543, 262, 1077, 5206, 16403, 284, 31221, 486, 931, 543, 262, 16403, 17652, 6047, 48269, 487, 20248, 1005, 19982, 1005, 18122, 1507, 11198, 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...
2
#[test] fn test_insert_positive_min_ttl() { let now = Instant::now(); let name = Name::from_str("www.example.com.").unwrap(); let query = Query::query(name.clone(), RecordType::A); // TTL should be 1 let ips_ttl = vec![ ( Record::from_rdata(nam...
rust_cleaned_test_functions.jsonl/2133
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1087 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 54160, 7260, 87157, 368, 341, 286, 1077, 1431, 284, 18058, 486, 3328, 543, 286, 1077, 829, 284, 3988, 486, 1499, 2895, 445, 2136, 7724, 905, 98401, 15454, 543, 286, 1077, 3239, 284, 11361, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_hover_struct_doc_attr() { check( r#" #[doc = "bar docs"] struct Bar; fn foo() { let bar = Ba$0r; } "#, expect![[r#" *Bar* ```rust test ``` ```rust struct Bar ...
rust_cleaned_test_functions.jsonl/66656
{ "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, 53445, 15126, 18869, 10422, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 13353, 5236, 284, 330, 2257, 26340, 7026, 1235, 4716, 401, 8822, 15229, 368, 314, 1077, 3619, 284, 14322, 3, 15, 81, 26, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_embed_field_name_limit() { let mut embed = base_embed(); embed.fields.push(EmbedField { inline: true, name: str::repeat("a", 256), value: "a".to_owned(), }); assert!(super::embed(&embed).is_ok()); embed.fields.push(Embe...
rust_cleaned_test_functions.jsonl/4830
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 314 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24007, 5013, 1269, 14763, 368, 341, 286, 1077, 5206, 11579, 284, 2331, 24007, 543, 286, 11579, 12920, 2552, 7, 25486, 1877, 341, 310, 7381, 25, 830, 345, 310, 829, 25, 607, 486, 30624, 445, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_inflation_basic() { let inflation = Inflation::default(); let mut last = inflation.total(0.0); for year in &[0.1, 0.5, 1.0, DEFAULT_FOUNDATION_TERM, 100.0] { let total = inflation.total(*year); assert_eq!( total, i...
rust_cleaned_test_functions.jsonl/19628
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 286 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 64149, 34729, 368, 341, 286, 1077, 24527, 284, 758, 64149, 486, 2258, 1428, 286, 1077, 5206, 1537, 284, 24527, 13717, 7, 15, 13, 15, 626, 286, 369, 1042, 304, 44590, 15, 13, 16, 11, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_hover_test_has_action() { check_actions( r#" #[test] fn foo_$0test() {} "#, expect![[r#" [ Runnable( Runnable { nav: NavigationTarget { file_id:...
rust_cleaned_test_functions.jsonl/117787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 892 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 4452, 21778, 7931, 368, 341, 286, 1779, 25368, 1006, 310, 435, 2, 698, 13353, 1944, 921, 8822, 15229, 34421, 15, 1944, 368, 5613, 57676, 345, 310, 1720, 0, 15505, 81, 2, 698, 394, 2278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_shuffling_int_from_slice() { let mut x = int_from_byte_slice(&[0, 0, 1], 0); assert_eq!((x as u32), 1); x = int_from_byte_slice(&[0, 1, 1], 0); assert_eq!(x, 257); x = int_from_byte_slice(&[1, 1, 1], 0); assert_eq!(x, 65793); x = int_fro...
rust_cleaned_test_functions.jsonl/133269
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 316 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3712, 79690, 4042, 5673, 26488, 368, 341, 286, 1077, 5206, 856, 284, 526, 5673, 19737, 26488, 2099, 58, 15, 11, 220, 15, 11, 220, 16, 1125, 220, 15, 317, 286, 2060, 10714, 0, 1188, 87, 438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_str_property() { assert_eq!(Property::from("issue".to_string()), Property::Issue); assert_eq!(Property::from("issuewild".to_string()), Property::IssueWild); assert_eq!(Property::from("iodef".to_string()), Property::Iodef); assert_eq!( Property::fr...
rust_cleaned_test_functions.jsonl/24514
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2895, 16638, 368, 341, 286, 2060, 10714, 10297, 3052, 486, 1499, 445, 11159, 3263, 983, 3904, 11858, 8655, 486, 42006, 317, 286, 2060, 10714, 10297, 3052, 486, 1499, 445, 11159, 67874, 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_lots_of_ips() { let mut throttler = Throttler::<32>::new( 1, Duration::from_secs(5), Duration::from_secs(1), Duration::from_secs(10), ); let mut ip = IpAddr::V4(Ipv4Addr::new(192, 168, 50, 0)); for a in 0..throttler...
rust_cleaned_test_functions.jsonl/78540
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 397 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 2412, 3575, 71074, 368, 341, 286, 1077, 5206, 79972, 1536, 284, 663, 46689, 1536, 27638, 18, 17, 6831, 931, 1006, 310, 220, 16, 345, 310, 21045, 486, 1499, 68718, 7, 20, 1326, 310, 21045, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_current_user_saved_tracks_add() { let mut oauth = SpotifyOAuth::default().scope("user-library-modify").build(); match get_token(&mut oauth) { Some(token_info) => { let client_credential = SpotifyClientCredentials::default() .token_info(token_info) ...
rust_cleaned_test_functions.jsonl/79260
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 463 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11080, 3317, 53709, 66953, 2891, 368, 341, 262, 1077, 5206, 46415, 284, 40537, 57850, 486, 2258, 1005, 4186, 445, 872, 52421, 17078, 1437, 1827, 5834, 543, 262, 2432, 633, 6458, 2099, 6984, 46415, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_non_option() { let (r, sioe) = do_execute!(&[""]); #[rustfmt::skip] assert_eq!( buff!(sioe, serr), concat!( program_name!(), ": ", "Missing option: e\n", "Unexpected argument: \n", try...
rust_cleaned_test_functions.jsonl/76262
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21637, 9672, 368, 341, 286, 1077, 320, 81, 11, 274, 815, 68, 8, 284, 653, 44329, 0, 2099, 1183, 15049, 286, 11506, 35788, 12501, 486, 20599, 921, 286, 2060, 10714, 33673, 310, 11522, 10297, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pi() { let pi: f64 = pi::pi_random_numbers(10000); assert!((std::f32::consts::PI - pi as f32).abs() < 1e-1); let pi: f64 = pi::pi_spigot_series(15); assert!((std::f32::consts::PI - pi as f32).abs() < 1e-1); let pi: f64 = pi::pi_gregory_leibniz(15); assert!((std::f32::co...
rust_cleaned_test_functions.jsonl/130155
{ "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, 47771, 368, 341, 262, 1077, 8938, 25, 282, 21, 19, 284, 8938, 486, 2493, 22644, 32964, 7, 16, 15, 15, 15, 15, 317, 262, 2060, 0, 1188, 1834, 486, 69, 18, 17, 486, 95773, 486, 1893, 481, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dynamic_width_number_display_alphabetic() { fn num(n: usize) -> Number { let mut number = Number::DynamicWidth(DynamicWidthNumber::new(26)); for _ in 0..n { number.increment().unwrap(); } number } assert_eq!...
rust_cleaned_test_functions.jsonl/51162
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 487 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45992, 7927, 5500, 14825, 8418, 759, 44838, 368, 341, 286, 5168, 1629, 1445, 25, 22301, 8, 1464, 5624, 341, 310, 1077, 5206, 1372, 284, 5624, 486, 21752, 3327, 5432, 5040, 3327, 2833, 486, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_valid_method() { assert!(DID::parse("did:method:identifier").is_ok()); assert!(DID::parse("did:000:identifier").is_ok()); assert!(DID::parse("did:m:identifier").is_ok()); }
rust_cleaned_test_functions.jsonl/93396
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 86 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8337, 9032, 368, 341, 220, 2060, 10297, 35, 915, 486, 6400, 445, 22920, 25, 4393, 25, 15909, 1827, 285, 19817, 1423, 220, 2060, 10297, 35, 915, 486, 6400, 445, 22920, 25, 15, 15, 15, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_update_entity_fails_if_signed_by_someone_else() { ExternalityBuilder::build().execute_with(|| { create_entity(); let country = "Belgium".as_bytes().to_vec(); let city = "Ghent".as_bytes().to_vec(); // Change name to barfoo let name = "barfoo".as_bytes...
rust_cleaned_test_functions.jsonl/35342
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 19169, 761, 6209, 11119, 55617, 3710, 61855, 603, 62628, 368, 341, 262, 1374, 4160, 2719, 3297, 486, 5834, 1005, 10257, 6615, 79453, 341, 286, 1855, 19169, 1428, 286, 1077, 3146, 284, 330, 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_lease_length_with_broken_rtc() { let mut lease_info = full_lease_info_v4(); lease_info.lease_expiry = LeaseExpiryTime::LeaseLength(Duration::from_secs(42)); let event = DhcpEvent::LeaseAdded { event_timestamp: DateTime::<FixedOffset>::from(Local::now()), ...
rust_cleaned_test_functions.jsonl/48443
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 1623, 5118, 6615, 880, 81709, 1710, 10413, 368, 341, 286, 1077, 5206, 25064, 3109, 284, 2480, 62, 1623, 3109, 2273, 19, 543, 286, 25064, 3109, 13, 1623, 96509, 284, 80651, 840, 48209, 1462, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ends_with_truncated_dictionary() { let raw_file = include_bytes!("../../testdata/ends_with_truncated_dictionary"); let div_input = include_bytes!("../../testdata/ends_with_truncated_dictionary.ir"); let div_raw = divans_decompress_internal(&*div_input).unwrap(); assert_eq!(raw_file.l...
rust_cleaned_test_functions.jsonl/19820
{ "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, 90729, 6615, 3547, 38007, 42605, 368, 341, 256, 1077, 7112, 2458, 284, 2924, 12524, 17223, 2748, 92425, 14, 1412, 6615, 3547, 38007, 42605, 797, 256, 1077, 3429, 5898, 284, 2924, 12524, 17223, 2748,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_samyak() { run_test( &TEST_DATA, "harfbuzz/good-samyak.gu", "gujarati/Samyak-Gujarati.ttf", &[JOINER_GLYPH_INDEX], 573, ); }
rust_cleaned_test_functions.jsonl/91162
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 220 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 26228, 585, 368, 341, 394, 1598, 4452, 1006, 503, 609, 10033, 7896, 345, 503, 330, 12982, 10798, 8889, 4846, 1386, 1331, 26228, 585, 1302, 84, 756, 503, 330, 8717, 19033, 9307, 11374, 26228, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_l1_norm() { assert_eq!(_0_0i.l1_norm(), 0.0); assert_eq!(_1_0i.l1_norm(), 1.0); assert_eq!(_1_1i.l1_norm(), 2.0); assert_eq!(_0_1i.l1_norm(), 1.0); assert_eq!(_neg1_1i.l1_norm(), 2.0); assert_eq!(_05_05i.l1_norm(), 1.0); assert_eq!(_4_2i.l1...
rust_cleaned_test_functions.jsonl/105658
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 16, 19181, 368, 341, 286, 2060, 10714, 0, 2490, 15, 62, 15, 72, 918, 16, 19181, 1507, 220, 15, 13, 15, 317, 286, 2060, 10714, 0, 2490, 16, 62, 15, 72, 918, 16, 19181, 1507, 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_export() { test_roundtrip("export var x = 3;"); test_roundtrip("export function foo() {}"); test_roundtrip("export default function foo() {}"); test_roundtrip("export {x as y};"); test_roundtrip("export * from 'foo';"); }
rust_cleaned_test_functions.jsonl/102605
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 98 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27114, 368, 341, 262, 1273, 29896, 32981, 445, 1533, 762, 856, 284, 220, 18, 34649, 262, 1273, 29896, 32981, 445, 1533, 729, 15229, 368, 4687, 797, 262, 1273, 29896, 32981, 445, 1533, 1638, 729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_strings_coerce_to_lists() { Python::with_gil(|py| { let v = "foo"; let ob = v.to_object(py); let seq = <PySequence as PyTryFrom>::try_from(ob.as_ref(py)).unwrap(); assert!(seq.list().is_ok()); }); }
rust_cleaned_test_functions.jsonl/70329
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33500, 11393, 25641, 2346, 37288, 368, 341, 286, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 310, 1077, 348, 284, 330, 7975, 876, 310, 1077, 1508, 284, 348, 2389, 5314, 46827, 317, 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_pg_database_datname() { let mut runtime = Runtime::new().unwrap(); let handshake = connect("user=postgres"); let (mut client, connection) = runtime.block_on(handshake).unwrap(); let connection = connection.map_err(|e| panic!("{}", e)); runtime.spawn(connection); let pre...
rust_cleaned_test_functions.jsonl/127921
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58681, 27341, 15353, 606, 368, 341, 262, 1077, 5206, 15592, 284, 10954, 486, 931, 1005, 15454, 1428, 262, 1077, 57020, 284, 4564, 445, 872, 28, 43070, 797, 262, 1077, 320, 6984, 2943, 11, 3633, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_chunk_codec() { let cases = vec![ "-10.55", "0.0123456789012345678912345", "12345", "12345", "123.45", ".00012345000098765", ".00012345000098765", ".12345000098765", "1234500009876...
rust_cleaned_test_functions.jsonl/40311
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 497 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30539, 51084, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 6523, 16, 15, 13, 20, 20, 756, 310, 330, 15, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 15, 16, 17, 18, 19, 20, 21, 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_urlencode_strict() { let tests = vec![ ( r#"https://www.example.org/foo?a=b&c=d"#, r#"https%3A%2F%2Fwww%2Eexample%2Eorg%2Ffoo%3Fa%3Db%26c%3Dd"#, ), ( r#"https://www.example.org/apples-&-oranges/"#, ...
rust_cleaned_test_functions.jsonl/119654
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 566 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2903, 6180, 2895, 849, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 2399, 394, 435, 55543, 2428, 1110, 2136, 7724, 2659, 60555, 98461, 22086, 5, 66, 25405, 57676, 345, 394, 435, 55543, 2428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unsupported_type_error_tuple() { test_parse_error!( vec![("a", "false")], Vec<(u32, u32)>, ErrorKind::UnsupportedType { name: "(u32, u32)" } ); }
rust_cleaned_test_functions.jsonl/16611
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 18216, 1819, 4096, 21773, 368, 341, 286, 1273, 21039, 4096, 33673, 310, 7486, 20703, 445, 64, 497, 330, 3849, 899, 1259, 310, 11312, 28706, 84, 18, 17, 11, 575, 18, 17, 8, 12520, 310, 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_read_write_single_message() { const MESSAGE: &str = "The Queen's Gambit"; let (pipe1, pipe2) = pipe::async_bipipe_buffered(); let sender = thread::spawn(move || { let mut conn1 = new_peer_conn(pipe2).expect("handshake to succeed"); conn1 .write_all(MESS...
rust_cleaned_test_functions.jsonl/8907
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 359 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 9165, 19487, 6462, 368, 341, 262, 733, 40758, 25, 609, 495, 284, 330, 785, 16259, 594, 66789, 275, 3302, 262, 1077, 320, 13768, 16, 11, 13647, 17, 8, 284, 13647, 486, 7692, 880, 573, 344...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_echo() { assert_eq!(resp_echo("Choice".to_string()), "Choice"); let arg: String = "Hello world!".to_string(); assert_eq!(resp_echo(arg), "Hello world!"); }
rust_cleaned_test_functions.jsonl/24126
{ "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, 68628, 368, 341, 262, 2060, 10714, 10297, 18243, 68628, 445, 24728, 3263, 983, 3904, 11858, 330, 24728, 797, 262, 1077, 1392, 25, 923, 284, 330, 9707, 1879, 92993, 983, 3904, 543, 262, 2060, 10714...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_to_readable_str() { assert_eq!("0", to_readable_str(0)); assert_eq!("1", to_readable_str(1)); assert_eq!("99", to_readable_str(99)); assert_eq!("999", to_readable_str(999)); assert_eq!("1_000", to_readable_str(1_000)); assert_eq!("1_001", to_readable_str(1_001)); asse...
rust_cleaned_test_functions.jsonl/76847
{ "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, 2346, 91232, 2895, 368, 341, 262, 2060, 10714, 17223, 15, 497, 311, 91232, 2895, 7, 15, 1106, 262, 2060, 10714, 17223, 16, 497, 311, 91232, 2895, 7, 16, 1106, 262, 2060, 10714, 17223, 24, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_icsup_2589() { use rand_core::RngCore; let mut rng = rand::rngs::SmallRng::from_entropy(); let registry = initialize_random_registry(3, 1000, 13.0, 150); let mut serializable_form = registry.serializable_form_at(ReprVersion::Version1); let initi...
rust_cleaned_test_functions.jsonl/106006
{ "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, 62, 1211, 454, 62, 17, 20, 23, 24, 368, 341, 286, 990, 10382, 15467, 486, 49, 968, 5386, 401, 286, 1077, 5206, 28422, 284, 10382, 486, 69890, 82, 486, 25307, 49, 968, 486, 1499, 50374, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_extend() { let mut a = LinkedList::new(); a.push_back(1); a.extend(vec![2, 3, 4]); // uses iterator assert_eq!(a.len(), 4); assert!(a.iter().eq(&[1, 2, 3, 4])); let b: LinkedList<_> = [5, 6, 7].into_iter().collect(); a.extend(b); // specializes to `append` asse...
rust_cleaned_test_functions.jsonl/92217
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70265, 368, 341, 262, 1077, 5206, 264, 284, 22917, 486, 931, 543, 262, 264, 2552, 3895, 7, 16, 317, 262, 264, 15831, 25592, 20703, 17, 11, 220, 18, 11, 220, 19, 14979, 442, 5711, 15091, 271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cid_truncated() { let hash = cid::multihash::Multihash::wrap(SHA2_256, HASH).unwrap(); let k = Cid::new_v1(RAW, hash); let mut k_bytes = k.to_bytes(); let mem = Memory::new(&mut k_bytes[..20]); expect_syscall_err!(IllegalArgument, mem.read_cid(0)); ...
rust_cleaned_test_functions.jsonl/34763
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 68699, 3547, 38007, 368, 341, 286, 1077, 5175, 284, 32141, 486, 25875, 6996, 988, 486, 40404, 6996, 988, 486, 10097, 3759, 17020, 17, 62, 17, 20, 21, 11, 58857, 568, 15454, 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...
1
#[test] fn test_fallocate() { let tmp = NamedTempFile::new().unwrap(); let fd = tmp.as_raw_fd(); fallocate(fd, FallocateFlags::empty(), 0, 100).unwrap(); // Check if we read exactly 100 bytes let mut buf = [0u8; 200]; assert_eq!(100, read(fd, &mut buf).unwrap())...
rust_cleaned_test_functions.jsonl/91361
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 31191, 368, 341, 286, 1077, 4174, 284, 40459, 12151, 1703, 486, 931, 1005, 15454, 1428, 286, 1077, 12414, 284, 4174, 5357, 16067, 17676, 543, 286, 282, 31191, 17609, 11, 434, 31191, 9195, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_units() { let gwei = parse_units(1, 9).unwrap(); assert_eq!(gwei.as_u64(), 1e9 as u64); let eth = parse_units(1, "ether").unwrap(); assert_eq!(eth, WEI_IN_ETHER); }
rust_cleaned_test_functions.jsonl/128193
{ "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, 21039, 28345, 368, 341, 286, 1077, 342, 27105, 284, 4715, 28345, 7, 16, 11, 220, 24, 568, 15454, 543, 286, 2060, 10714, 10297, 70, 27105, 5357, 7300, 21, 19, 1507, 220, 16, 68, 24, 438, 575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_used() { let sys_space = address_space_init(); let mut queue_config = QueueConfig::new(QUEUE_SIZE); queue_config.desc_table = GuestAddress(0); queue_config.avail_ring = GuestAddress((QUEUE_SIZE as u64) * DESCRIPTOR_LEN); queue_config.used_ring = Guest...
rust_cleaned_test_functions.jsonl/15195
{ "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, 2891, 27803, 368, 341, 286, 1077, 5708, 14663, 284, 2621, 14663, 6137, 1428, 286, 1077, 5206, 7177, 5332, 284, 18745, 2648, 486, 931, 7, 28945, 4098, 317, 286, 7177, 5332, 30514, 5237, 284, 26215,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_onix21_ebsco_host_contributions() { let mut test_contribution = WorkContributions { contribution_type: ContributionType::AUTHOR, first_name: Some("Author".to_string()), last_name: "1".to_string(), full_name: "Author 1".to_string(), ...
rust_cleaned_test_functions.jsonl/74507
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1895 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4470, 941, 17, 16, 2204, 1279, 1015, 12848, 92581, 3977, 368, 341, 286, 1077, 5206, 1273, 3382, 31140, 284, 5547, 52984, 3977, 341, 310, 18527, 1819, 25, 93528, 929, 486, 26694, 868, 345, 310, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tuples_basic() { assert_eq!( eval("(3, 4.0, 5.0)"), Value::Seq(vec![ Value::Number(Number::new(3)), Value::Number(Number::new(4.0)), Value::Number(Number::new(5.0)), ],), ); }
rust_cleaned_test_functions.jsonl/32625
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 89269, 34729, 368, 341, 286, 2060, 10714, 33673, 310, 5603, 31732, 18, 11, 220, 19, 13, 15, 11, 220, 20, 13, 15, 8, 4461, 310, 5162, 486, 20183, 25592, 90515, 394, 5162, 486, 2833, 42999, 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_delete_notifications() { block_on(async { let (client, mut session) = test_helpers::authenticated_client("notificationsuserid").await; client .rpc(&mut session, "echo", Some("Hello World!")) .await .expect("Failed to call echo rpc"); ...
rust_cleaned_test_functions.jsonl/50266
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11353, 67546, 368, 341, 262, 2504, 4470, 18285, 341, 286, 1077, 320, 2972, 11, 5206, 3797, 8, 284, 1273, 54473, 486, 57707, 8179, 445, 38188, 20085, 1827, 11421, 280, 286, 2943, 198, 310, 659, 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_overhangs4() { let x = b"AGCACACGTGTGCGCTATACAGTAAGTAGTAGTACACGTGTCACAGTTGTACTAGCATGACCAGTTGTACTAGCATGAC"; let y = b"AGCACAAGTGTGCGCTATACAGGAAGTAGGAGTACACGTGTCA"; compare_to_full_alignment_local(x, y); compare_to_full_alignment_global(x, y); compare_to_ful...
rust_cleaned_test_functions.jsonl/126734
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 191 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15431, 20658, 82, 19, 368, 341, 286, 1077, 856, 284, 293, 1, 1890, 92832, 1706, 25388, 25388, 38, 8798, 1162, 828, 1706, 1890, 15204, 1890, 32144, 32144, 51, 1706, 1706, 25388, 38, 7749, 1706, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_closure_compose() { let a = Function::new(|x: usize| x + 1); let b = Function::new(|x: usize| x * x); let _ = ArrayComposition::compose(a, b); }
rust_cleaned_test_functions.jsonl/104019
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 72823, 2965, 2900, 368, 341, 286, 1077, 264, 284, 5712, 486, 931, 22428, 87, 25, 22301, 91, 856, 488, 220, 16, 317, 286, 1077, 293, 284, 5712, 486, 931, 22428, 87, 25, 22301, 91, 856, 353, 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
#[test] fn test_config_initialize_no_panic() { let from_pubkey = Pubkey::new_rand(); let config_pubkey = Pubkey::new_rand(); let instructions = config_instruction::create_account::<MyConfig>(&from_pubkey, &config_pubkey, 1, vec![]); let accounts = vec![]; let ...
rust_cleaned_test_functions.jsonl/70776
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 251 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 40889, 6536, 620, 31270, 368, 341, 286, 1077, 504, 34014, 792, 284, 22611, 792, 486, 931, 33864, 543, 286, 1077, 2193, 34014, 792, 284, 22611, 792, 486, 931, 33864, 543, 286, 1077, 11221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_clip_cpu() { let device = CPU::new().select(); let x = Matrix::<i32>::from((&device, (1, 5), [100, 10, 2000, -500, -5])); let res = device.clip(&x, -99, 99); assert_eq!(vec![99, 10, 99, -99, -5], res.read()); }
rust_cleaned_test_functions.jsonl/81800
{ "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, 44728, 21795, 368, 341, 262, 1077, 3671, 284, 13940, 486, 931, 1005, 1742, 1428, 262, 1077, 856, 284, 11631, 27638, 72, 18, 17, 6831, 1499, 42902, 6111, 11, 320, 16, 11, 220, 20, 701, 508, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_icmp_packet() { set_logger_for_test(); use crate::testdata::icmp_dest_unreachable::*; let (body, ..) = parse_ip_packet::<Ipv4>(&IP_PACKET_BYTES).unwrap(); let (_, code) = parse_icmp_packet::<Ipv4, _, IcmpDestUnreachable, _>( body, Ipv...
rust_cleaned_test_functions.jsonl/13586
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 292 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 32747, 1307, 21078, 368, 341, 286, 738, 27413, 5478, 4452, 543, 286, 990, 17717, 486, 92425, 486, 50774, 25264, 4907, 46550, 56162, 286, 1077, 320, 2599, 11, 5241, 8, 284, 4715, 10385, 2107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_single_binary_jit_null_free() -> Result<()> { let schema = Arc::new(Schema::new(vec![Field::new("a", Binary, false)])); let values: Vec<&[u8]> = vec![b"one", b"two", b"", b"three"]; let a = BinaryArray::from_vec(values); let batch = RecordBatch::try_new(schema.clo...
rust_cleaned_test_functions.jsonl/17023
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 476 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 31761, 5374, 275, 15162, 8905, 368, 1464, 5714, 71698, 341, 286, 1077, 10802, 284, 19689, 486, 931, 3759, 3416, 486, 931, 25592, 20703, 1877, 486, 931, 445, 64, 497, 17718, 11, 895, 7252, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_encode_decode_empty_controllers() { // A canister state with empty controllers. let canister_state_bits = CanisterStateBits { controllers: BTreeSet::new(), last_full_execution_round: ExecutionRound::from(0), call_context_manager: None, ...
rust_cleaned_test_functions.jsonl/41133
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 672 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 15227, 15124, 10260, 7273, 368, 341, 286, 442, 362, 646, 1571, 1584, 448, 4287, 26225, 624, 286, 1077, 646, 1571, 4387, 20034, 284, 2980, 1571, 1397, 19920, 341, 310, 26225, 25, 425, 6533, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cubic_gadget() { let cs = ConstraintSystem::<BlsFr>::new_ref(); let x_val = BlsFr::from(3u8); let x_val = FpVar::<BlsFr>::new_witness(cs.clone(), || Ok(&x_val)).unwrap(); let x = ParamTypeVar::new(x_val); let y_val = BlsFr::from(35u8); let y_val =...
rust_cleaned_test_functions.jsonl/86246
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 306 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 41181, 1889, 50931, 368, 341, 286, 1077, 10532, 284, 44264, 2320, 27638, 33, 4730, 22560, 6831, 931, 7793, 543, 286, 1077, 856, 6189, 284, 2502, 82, 22560, 486, 1499, 7, 18, 84, 23, 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...
3
#[test] fn test_append_before_nll() { let mut list = LinkedList::<i32>::new(); list.append_before_nll(1); assert_eq!(list.length, 1); let v = to_vec(&list); assert_eq!(v, vec![1]); list.append_before_nll(2); assert_eq!(list.length, 2); let v = to...
rust_cleaned_test_functions.jsonl/121248
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 281 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26041, 23708, 1089, 654, 368, 341, 286, 1077, 5206, 1140, 284, 22917, 27638, 72, 18, 17, 6831, 931, 1428, 286, 1140, 2057, 23708, 1089, 654, 7, 16, 317, 286, 2060, 10714, 10297, 1607, 1954, 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_ai_translation() { let ball = Ball { position: [5.0, 0.0], velocity: [0.0, 0.0], radius: 10.0, }; let paddle = Paddle { position: [1.0, 60.0], height: 40.0, }; assert!(ai_paddle_translation(&paddle, &ball, 100.0) < 0.0); let ball ...
rust_cleaned_test_functions.jsonl/67268
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 337 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69415, 49273, 368, 341, 262, 1077, 4935, 284, 12836, 341, 286, 2309, 25, 508, 20, 13, 15, 11, 220, 15, 13, 15, 1259, 286, 15435, 25, 508, 15, 13, 15, 11, 220, 15, 13, 15, 1259, 286, 10578,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_service_endpoint_valid() { let did = did(); assert!(service_endpoint_ctor(did, &Url::parse("https://my-service.endpoint.net").unwrap()).is_ok()); }
rust_cleaned_test_functions.jsonl/92045
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 74 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12267, 36699, 8337, 368, 341, 262, 1077, 1521, 284, 1521, 543, 262, 2060, 10297, 7936, 36699, 54185, 1500, 307, 11, 609, 2864, 486, 6400, 445, 2428, 1110, 2408, 23461, 60972, 5071, 1827, 15454, 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
#[test] fn test_primitive_array_sum_with_nulls() { let a = Primitive::from(vec![None, Some(2), Some(3), None, Some(5)]).to(DataType::Int32); assert_eq!(10, sum(&a).unwrap()); }
rust_cleaned_test_functions.jsonl/101314
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 98 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 10160, 6615, 15162, 82, 368, 341, 286, 1077, 264, 284, 51460, 486, 1499, 25592, 20703, 4064, 11, 4329, 7, 17, 701, 4329, 7, 18, 701, 2240, 11, 4329, 7, 20, 7252, 568, 983, 63941, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_with_column() { let test_file_path = "column.log"; let expected_test_file_path = "column.log.expected"; let mut scenario = new_ucmd!(); let value = file_last_modified_time(&scenario, test_file_path); scenario .args(&["--pages=3:5", "--column=3", "-n", test_file_path])...
rust_cleaned_test_functions.jsonl/103054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 291 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 8744, 368, 341, 262, 1077, 1273, 2458, 2638, 284, 330, 6229, 1665, 876, 262, 1077, 3601, 4452, 2458, 2638, 284, 330, 6229, 1665, 56835, 876, 262, 1077, 5206, 15048, 284, 501, 68887, 2277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rx_rate_limited_event_handler() { let mem = GuestMemory::new(&[(GuestAddress(0), 0x10000)]).unwrap(); let (mut h, _txq, _rxq) = default_test_netepollhandler(&mem, TestMutators::default()); let rl = RateLimiter::new(0, None, 0, 0, None, 0).unwrap(); h.set_rx_rate_l...
rust_cleaned_test_functions.jsonl/84702
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24330, 9246, 907, 31511, 6748, 10183, 368, 341, 286, 1077, 1833, 284, 26215, 10642, 486, 931, 2099, 9697, 37804, 4286, 7, 15, 701, 220, 15, 87, 16, 15, 15, 15, 15, 7252, 568, 15454, 543, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_all() { let target = "http://example.domain/"; let p = Proxy::all(target).unwrap(); let http = "http://hyper.rs"; let https = "https://hyper.rs"; let other = "x-youve-never-heard-of-me-mr-proxy://hyper.rs"; assert_eq!(p.intercept(&url(http)).unwr...
rust_cleaned_test_functions.jsonl/126428
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 211 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 368, 341, 286, 1077, 2169, 284, 330, 1254, 1110, 8687, 11003, 37254, 286, 1077, 281, 284, 32778, 486, 541, 8637, 568, 15454, 1428, 286, 1077, 1758, 284, 330, 1254, 1110, 68192, 25638, 876, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_save_webp() { let k = Kaleido::new(); let dst = PathBuf::from("example.webp"); let r = k.save(dst.as_path(), TEST_PLOT, "webp", 1200, 900, 4.5); assert!(r.is_ok()); assert!(std::fs::remove_file(dst.as_path()).is_ok()); }
rust_cleaned_test_functions.jsonl/33868
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15376, 25960, 79, 368, 341, 286, 1077, 595, 284, 96742, 5249, 486, 931, 543, 286, 1077, 10648, 284, 7933, 15064, 486, 1499, 445, 8687, 6411, 79, 797, 286, 1077, 435, 284, 595, 5681, 30260, 5357,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_padding() { padding_impl("a", 5); padding_impl("abcde", 5); padding_impl(".", 0); padding_impl("abcdef", 10); padding_impl("a.b.c.d", 5); padding_impl("", 0); }
rust_cleaned_test_functions.jsonl/108451
{ "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, 40726, 368, 341, 286, 5300, 21007, 445, 64, 497, 220, 20, 317, 286, 5300, 21007, 445, 13683, 450, 497, 220, 20, 317, 286, 5300, 21007, 64217, 220, 15, 317, 286, 5300, 21007, 445, 41202, 497, 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_percent_to_char_height() { // Create the default grid for testing let mut grid = Grid::builder() .width(10) .height(5) .build(); grid.set_width_chars(150); grid.set_height_chars(36); assert_eq!(grid.percent_to_char_hei...
rust_cleaned_test_functions.jsonl/71778
{ "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, 29883, 2346, 9232, 9561, 368, 1476, 286, 442, 4230, 279, 1638, 5827, 369, 7497, 198, 286, 1077, 5206, 5827, 284, 10587, 486, 17850, 741, 310, 659, 3098, 7, 16, 15, 340, 310, 659, 2563, 7, 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_keypair_from_seed() { let good_seed = vec![0; 32]; assert!(keypair_from_seed(&good_seed).is_ok()); let too_short_seed = vec![0; 31]; assert!(keypair_from_seed(&too_short_seed).is_err()); }
rust_cleaned_test_functions.jsonl/8411
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 12670, 5673, 33809, 368, 341, 286, 1077, 1661, 33809, 284, 7486, 20703, 15, 26, 220, 18, 17, 935, 286, 2060, 10297, 792, 12670, 5673, 33809, 2099, 18536, 33809, 568, 285, 19817, 5231, 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_matrix_row_count() { let m1 = matrix!([1, 0, 0]); let m2 = matrix!([0, 0, 0], [0, 0, 0]); let m3: Matrix<galois_8::Field> = Matrix::new(1, 4); assert_eq!(1, m1.row_count()); assert_eq!(2, m2.row_count()); assert_eq!(1, m3.row_count()); }
rust_cleaned_test_functions.jsonl/22059
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10193, 8530, 3180, 368, 341, 286, 1077, 296, 16, 284, 6172, 0, 2561, 16, 11, 220, 15, 11, 220, 15, 2558, 286, 1077, 296, 17, 284, 6172, 0, 2561, 15, 11, 220, 15, 11, 220, 15, 1125, 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_polynomial_long_division() { type F = GoldilocksField; let mut rng = thread_rng(); let (a_deg, b_deg) = (rng.gen_range(1..10_000), rng.gen_range(1..10_000)); let a = PolynomialCoeffs::new(F::rand_vec(a_deg)); let b = PolynomialCoeffs::new(F::rand_vec(b_deg...
rust_cleaned_test_functions.jsonl/15043
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 283 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47323, 25358, 17799, 16237, 1816, 368, 341, 286, 943, 434, 284, 7421, 321, 25183, 1877, 280, 286, 1077, 5206, 28422, 284, 4516, 66849, 543, 286, 1077, 320, 64, 46057, 11, 293, 46057, 8, 284, 320...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_opt_addresses() { let addr = b"((NIL NIL \"minutes\" \"CNRI.Reston.VA.US\") (\"John Klensin\" NIL \"KLENSIN\" \"MIT.EDU\")) "; match crate::parser::rfc3501::opt_addresses(addr) { Ok((_, _addresses)) => {} rsp => panic!("unexpected response {:?}", rsp), ...
rust_cleaned_test_functions.jsonl/8549
{ "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, 15032, 59471, 368, 341, 286, 1077, 10789, 284, 293, 1, 1188, 76958, 64147, 7245, 37037, 2105, 7245, 28668, 4305, 31129, 263, 5058, 32, 67672, 62705, 320, 2105, 13079, 27941, 724, 258, 2105, 64147, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_select() { let schema1 = SchemaBuilder::new() .influx_field("the_field", String) .tag("the_tag") .timestamp() .measurement("the_measurement") .build() .unwrap(); let projection = schema1.select(&[TIME_COLUMN...
rust_cleaned_test_functions.jsonl/44084
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 904 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13051, 368, 341, 286, 1077, 10802, 16, 284, 12539, 3297, 486, 931, 741, 310, 659, 258, 36706, 5013, 445, 1782, 5013, 497, 923, 340, 310, 659, 4578, 445, 1782, 9372, 1138, 310, 659, 13035, 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...
1
#[test] fn test_average_too_high() { let array = [0u8; 2048]; FastCDC::new(&array, 64, 268_435_457, 1024); }
rust_cleaned_test_functions.jsonl/32054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 69 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38594, 2346, 78, 22680, 368, 341, 286, 1077, 1334, 284, 508, 15, 84, 23, 26, 220, 17, 15, 19, 23, 935, 286, 17288, 73458, 486, 931, 2099, 1653, 11, 220, 21, 19, 11, 220, 17, 21, 23, 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
#[test] fn test_tmp() { let l = params::l; let bg = params::bg as u32; let bgbit = params::bgbit; let n = params::n; let N = params::N; let N_bit = params::N_bit; let mu = params::mu; let mu_bit = params::mu_bit; let tlwe_s = tlwe::gen_s(n); let trlwe_s = trlwe::gen_s(N)...
rust_cleaned_test_functions.jsonl/21479
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1006 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16125, 368, 341, 262, 1077, 326, 284, 3628, 486, 75, 280, 262, 1077, 8951, 284, 3628, 486, 12220, 438, 575, 18, 17, 280, 262, 1077, 8951, 4489, 284, 3628, 486, 12220, 4489, 280, 262, 1077, 308...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_simple_canister_wasm_cache() { let exec_finished_sync = Arc::new(SyncCell::<protocol::ctlsvc::ExecFinishedRequest>::new()); let exec_finished_sync_clone = Arc::clone(&exec_finished_sync); let mut controller = MockControllerService::new(); controller.expect_exec_f...
rust_cleaned_test_functions.jsonl/26832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2599 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 27421, 1571, 1670, 10530, 11529, 368, 341, 286, 1077, 3883, 56423, 23008, 284, 19689, 486, 931, 3759, 1721, 3599, 27638, 17014, 486, 12373, 58094, 486, 10216, 24890, 1900, 6831, 931, 1423, 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_dictionary_equal_null() { let a = create_dictionary_array( &["a", "b", "c"], &[Some("a"), None, Some("a"), Some("c")], ); // equal to self test_equal(a.as_ref(), a.as_ref(), true); let b = create_dictionary_array...
rust_cleaned_test_functions.jsonl/46964
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 608 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42605, 11478, 15162, 368, 341, 1789, 286, 1077, 264, 284, 1855, 42605, 3858, 1006, 310, 609, 1183, 64, 497, 330, 65, 497, 330, 66, 8097, 310, 44590, 8373, 445, 64, 3975, 2240, 11, 4329, 445, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_value_to_toml_value() { // Positive Tests // Dictionary -> What we do in "crates/nu-cli/src/data/config.rs" to write the config file let mut m = indexmap::IndexMap::new(); m.insert("rust".to_owned(), Value::from("editor")); m.insert("is"...
rust_cleaned_test_functions.jsonl/62632
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1042 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3142, 2346, 528, 316, 75, 3142, 368, 341, 1789, 286, 442, 43903, 20150, 198, 23459, 286, 442, 10466, 1464, 3555, 582, 653, 304, 330, 5082, 973, 14, 8933, 54797, 13437, 13167, 14730, 25638, 1, 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_mutating_imports() { let mut a = Assert::new(); a.module( "x", r#" frozen_list = [1, 2] frozen_list += [4] def frozen_list_result(): return frozen_list def list_result(): return [1, 2, 4] "#, ); a.fail("load('x','frozen_list')\nfroz...
rust_cleaned_test_functions.jsonl/25214
{ "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, 29523, 1095, 18434, 82, 368, 341, 286, 1077, 5206, 264, 284, 5319, 486, 931, 543, 286, 264, 10076, 1006, 310, 330, 87, 756, 310, 435, 2, 698, 69, 42240, 2019, 284, 508, 16, 11, 220, 17, 921,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nonexistant_opt() { let mut opts = Options::new(); opts.optflag("b", "bar", "Desc"); let args: Vec<String> = Vec::new(); let matches = opts.parse(&args).unwrap(); assert_eq!(matches.opt_defined("foo"), false); assert_eq!(matches.opt_defined("bar"), true); }
rust_cleaned_test_functions.jsonl/52398
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21637, 327, 11202, 15032, 368, 341, 262, 1077, 5206, 12185, 284, 14566, 486, 931, 543, 262, 12185, 28102, 9903, 445, 65, 497, 330, 2257, 497, 330, 11065, 797, 262, 1077, 2827, 25, 11312, 3464, 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_load_non_existent_file() { Command::cargo_bin("stevia") .unwrap() .arg("examples/nonexistent.ink") .assert() .failure(); clean(); }
rust_cleaned_test_functions.jsonl/8041
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 21637, 2702, 18128, 2458, 368, 341, 286, 7348, 486, 66715, 21816, 445, 267, 5120, 685, 1138, 310, 659, 15454, 741, 310, 659, 858, 445, 51668, 91130, 64085, 13, 766, 1138, 310, 659, 2207, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_serialize_char() { let value = json!( ({ let mut map = BTreeMap::new(); map.insert('c', ()); map }) ); assert_eq!(&Value::Null, value.get("c").unwrap()); }
rust_cleaned_test_functions.jsonl/29835
{ "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, 88686, 9232, 368, 341, 262, 1077, 897, 284, 2951, 33673, 286, 13861, 310, 1077, 5206, 2415, 284, 425, 6533, 2227, 486, 931, 543, 310, 2415, 7030, 492, 66, 516, 49323, 310, 2415, 198, 286, 2751, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1