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_read_s_expression_123() -> IonResult<()> { let mut cursor = ion_cursor_for(&[0xC6, 0x21, 0x01, 0x21, 0x02, 0x21, 0x03]); assert_eq!(cursor.next()?, Some(Value(IonType::SExpression, false))); let mut sexp = vec![]; cursor.step_in()?; while let Some(Value(Io...
rust_cleaned_test_functions.jsonl/82752
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 272 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 643, 28068, 62, 16, 17, 18, 368, 1464, 44805, 2077, 71698, 341, 286, 1077, 5206, 8128, 284, 27672, 28601, 5478, 2099, 58, 15, 12125, 21, 11, 220, 15, 87, 17, 16, 11, 220, 15, 87, 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...
7
#[test] fn test_create_dir() { let path = Path::new("testdir"); let mut mock = MockFileBackend::new(); mock.expect_create_dir() .with(eq(path)) .times(1) .returning(|x| Ok(())); let fs = FileSystem { inner: Rc::new(mock), }...
rust_cleaned_test_functions.jsonl/100441
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 4334, 368, 341, 286, 1077, 1815, 284, 7933, 486, 931, 445, 1944, 3741, 797, 286, 1077, 5206, 7860, 284, 14563, 1703, 29699, 486, 931, 543, 286, 7860, 25952, 8657, 4334, 741, 310, 659, 4197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_json_as_real() { let cs: Vec<(Json, f64, Option<i32>)> = vec![ (Json::Object(BTreeMap::default()), 0f64, None), (Json::Array(vec![]), 0f64, None), (Json::I64(10), 10f64, None), (Json::I64(i64::MAX), i64::MAX as f64, None), ...
rust_cleaned_test_functions.jsonl/101784
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1071 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9455, 11898, 15266, 368, 341, 286, 1077, 10532, 25, 11312, 28706, 5014, 11, 282, 21, 19, 11, 6959, 21897, 18, 17, 9231, 29, 284, 7486, 90515, 3374, 310, 320, 5014, 486, 1190, 5349, 6533, 2227, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_scientific_u32() -> SimpleResult<()> { let data = b"\x00\x00\x00\x00\x7f\xff\xff\xff\x80\x00\x00\x00\xff\xff\xff\xff".to_vec(); let tests = vec![ // index uppercase expected ( 0, false, "0e0"), ( 4, false, "2.147483647e9"),...
rust_cleaned_test_functions.jsonl/61914
{ "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, 643, 12295, 1086, 7300, 18, 17, 368, 1464, 8993, 2077, 71698, 341, 286, 1077, 821, 284, 293, 11934, 87, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 22, 69, 86977, 86977, 86977, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_length_padding() { assert_eq!(padding(0), 0); assert_eq!(padding(1), 15); assert_eq!(padding(2), 14); assert_eq!(padding(3), 13); assert_eq!(padding(4), 12); assert_eq!(padding(5), 11); assert_eq!(padding(6), 10)...
rust_cleaned_test_functions.jsonl/75581
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 419 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5118, 40726, 368, 341, 310, 2060, 10714, 10297, 9571, 7, 15, 701, 220, 15, 317, 310, 2060, 10714, 10297, 9571, 7, 16, 701, 220, 16, 20, 317, 310, 2060, 10714, 10297, 9571, 7, 17, 701, 220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fs_explorer_formatter_all_together_now() { let formatter: Formatter = Formatter::new("{NAME:16} {SYMLINK:12} {GROUP} {USER} {PEX} {SIZE} {ATIME:20:%a %b %d %Y %H:%M} {CTIME:20:%a %b %d %Y %H:%M} {MTIME:20:%a %b %d %Y %H:%M}"); let t: SystemTime = SystemTime::...
rust_cleaned_test_functions.jsonl/66215
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2939 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34470, 2702, 79825, 73965, 5705, 2346, 3439, 20813, 368, 341, 286, 1077, 24814, 25, 81387, 4035, 310, 81387, 486, 931, 13976, 7535, 25, 16, 21, 92, 314, 18416, 2668, 11637, 25, 16, 17, 92, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_array_or_function_no_dot_no_qualifier() { let input = "A(1)"; let eol_reader = EolReader::from(input); let mut parser = word_p(); let (_, result) = parser.parse(eol_reader).expect("Should parse"); ...
rust_cleaned_test_functions.jsonl/102671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 8734, 9174, 6536, 30941, 6536, 64391, 3049, 368, 341, 503, 1077, 1946, 284, 330, 32, 7, 16, 24023, 503, 1077, 384, 337, 22306, 284, 468, 337, 5062, 486, 1499, 5384, 317, 503, 1077, 5206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_range_to_sql() { use std::collections::Bound; let expected_value = "'[1,2]'::int4range"; let value = (Bound::Included(1), Bound::Excluded(3)); assert!(query_to_sql_equality::<Range<Int4>, (Bound<i32>, Bound<i32>)>(expected_value, value)); let expected_value = "'(1,2]'::int4...
rust_cleaned_test_functions.jsonl/39737
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 197 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 2346, 18063, 368, 341, 262, 990, 1460, 486, 51137, 486, 19568, 401, 262, 1077, 3601, 3142, 284, 7178, 58, 16, 11, 17, 30651, 486, 396, 19, 9669, 876, 262, 1077, 897, 284, 320, 19568, 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_index_mut() { let mut s = rvec![1, 2, 3, 4, 5]; assert_eq!(s.index_mut(0), &mut 1); assert_eq!(s.index_mut(4), &mut 5); assert_eq!(s.index_mut(..2), &mut rvec![1, 2]); assert_eq!(s.index_mut(1..2), &mut rvec![2]); assert_eq!(s.index_mut(3..), &mut...
rust_cleaned_test_functions.jsonl/27985
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3560, 29523, 368, 341, 286, 1077, 5206, 274, 284, 435, 4083, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 4821, 286, 2060, 10714, 10297, 82, 5154, 29523, 7, 15, 701, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extension() { let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES); te.assert_output( &["--extension", "foo"], "a.foo one/b.foo one/two/c.foo one/two/three/d.foo", ); te.assert_output( &["--extension", ".foo"], "a.foo ...
rust_cleaned_test_functions.jsonl/10883
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 738 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31035, 368, 341, 262, 1077, 1013, 284, 3393, 14359, 486, 931, 43175, 90560, 11, 11955, 48010, 626, 262, 1013, 3713, 7645, 1006, 286, 609, 1183, 313, 12427, 497, 330, 7975, 8097, 286, 330, 64, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_roundtrip() { let pc: usize = 133; let current: &[u8] = &[1, 2, 3, 4, 0, 0, 0, 5, 6]; let original: &[u8] = &[1, 2, 3, 0, 0, 9, 0, 5, 6]; let frames: &[Frame] = &[Frame::new(16, None, vec![], &[])]; let chksum: u16 = 33; let release: u16 = 235; ...
rust_cleaned_test_functions.jsonl/104182
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 360 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29896, 32981, 368, 341, 286, 1077, 13312, 25, 22301, 284, 220, 16, 18, 18, 280, 286, 1077, 1482, 25, 44590, 84, 23, 60, 284, 44590, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_renaming_of_incoming_edges_in_phi_nodes() { // Given: // block 0 // +---+ y = 1 +---+ // v v // block 1 block 2 // x = 2 x = 4 // y = 3 + //...
rust_cleaned_test_functions.jsonl/60308
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1688 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 77, 6469, 3575, 1243, 4959, 28026, 1243, 42009, 14896, 368, 341, 286, 442, 16246, 510, 286, 442, 260, 2504, 220, 15, 198, 286, 442, 256, 488, 4421, 10, 379, 284, 220, 16, 488, 4421, 1693...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_to_env() { let result = env_cmd().env("RUN_TEST_NEW_ENV", "123").output().unwrap(); let output = String::from_utf8_lossy(&result.stdout).to_string(); assert!( output.contains("RUN_TEST_NEW_ENV=123"), "didn't find RUN_TEST_NEW_ENV inside of:\n\...
rust_cleaned_test_functions.jsonl/5487
{ "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, 2891, 2346, 15879, 368, 341, 286, 1077, 1102, 284, 6105, 11684, 1005, 3160, 445, 47390, 11641, 22015, 22027, 497, 330, 16, 17, 18, 1827, 3006, 1005, 15454, 543, 286, 1077, 2550, 284, 923, 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...
1
#[test] fn test_transfer_overcharge() { let (mut testkit, api) = create_testkit(); let (tx_alice, key_alice) = api.create_wallet(ALICE_NAME); let (tx_bob, _) = api.create_wallet(BOB_NAME); testkit.create_block(); let tx = Transfer::sign( &tx_alice.author(), &tx_bob.aut...
rust_cleaned_test_functions.jsonl/86533
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 360 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35403, 15431, 13891, 368, 341, 262, 1077, 320, 6984, 1273, 8226, 11, 6330, 8, 284, 1855, 4452, 8226, 1428, 262, 1077, 320, 3998, 8418, 558, 11, 1376, 8418, 558, 8, 284, 6330, 2520, 62308, 46232,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bitfield_permutations() { solana_logger::setup(); let mut bitfield = RollingBitField::new(2097152); let mut hash = HashSet::new(); let min = 101_000; let width = 400_000; let dead = 19; let mut slot = min; while hash.len() < width...
rust_cleaned_test_functions.jsonl/2207
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 680 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 2566, 31961, 82141, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 5206, 2699, 2566, 284, 44948, 8344, 1877, 486, 931, 7, 17, 15, 24, 22, 16, 20, 17, 317, 286, 1077, 5206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
#[test] fn test_datastore() { let dspath = "/tmp/test456343567578".to_owned(); let block_size = 8192; if Path::new(&dspath).exists() { std::fs::remove_dir_all(&dspath).expect("Failed to delete test dir on cleanup"); } std::fs::create_dir(&dspath).exp...
rust_cleaned_test_functions.jsonl/38577
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2637 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1769, 4314, 368, 1476, 286, 1077, 294, 30089, 284, 3521, 5173, 12697, 19, 20, 21, 18, 19, 18, 20, 21, 22, 20, 22, 23, 3263, 983, 51973, 543, 286, 1077, 2504, 2368, 284, 220, 23, 16, 24, 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...
7
#[test] fn test_member_assgn() { test_walk( "option a.b = c", vec![ "File", "OptionStmt", "MemberAssgn", "MemberExpr", "IdentifierExpr", "Identifier...
rust_cleaned_test_functions.jsonl/3342
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19388, 12083, 4905, 368, 341, 310, 1273, 56131, 1006, 394, 330, 2047, 264, 948, 284, 272, 756, 394, 7486, 90515, 503, 330, 1703, 756, 503, 330, 5341, 31063, 756, 503, 330, 9366, 5615, 4905, 756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_toml() { let p = TOMLParser::new(); assert_eq!(p.toml( r#"# Tλïƨ ïƨ á TÓM£ δôçú₥èñƭ. title = "TÓM£ Éжá₥ƥℓè" [owner] name = "Tô₥ Þřèƨƭôñ-Wèřñèř" dob = 1979-05-27T07:32:00-08:00 # Fïřƨƭ çℓáƨƨ δáƭèƨ [database] server = "192.168.1.1" ports = [ 8001, 8001, 8002 ] connection_max = 5000 enab...
rust_cleaned_test_functions.jsonl/95649
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2801 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 316, 75, 368, 341, 262, 1077, 281, 284, 82465, 43, 6570, 486, 931, 543, 262, 2060, 10714, 10297, 79, 73494, 75, 1006, 81, 55543, 2, 350, 33486, 37572, 147868, 1683, 107, 147868, 18698, 350,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cache_multicall() { let num_calls = Cell::new(0); let mut cache = FuncCache::new(|_| { num_calls.set(num_calls.get() + 1); num_calls.get() - 1 }); assert_eq!(*cache.get(1), 0); assert_eq!(*cache.get(1), 0); assert_eq!(num_c...
rust_cleaned_test_functions.jsonl/214
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 298 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11529, 26290, 292, 541, 368, 341, 286, 1077, 1629, 45636, 284, 13972, 486, 931, 7, 15, 317, 286, 1077, 5206, 6500, 284, 18016, 8233, 486, 931, 22428, 35395, 341, 310, 1629, 45636, 980, 8068, 456...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_missing_train() { let err = Model::train("missing.ffm").unwrap_err(); assert_eq!(err.to_string(), "No such file or directory (os error 2)".to_string()); }
rust_cleaned_test_functions.jsonl/25223
{ "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, 40447, 7591, 368, 341, 286, 1077, 1848, 284, 4903, 486, 10397, 445, 30616, 83885, 76, 1827, 15454, 9266, 543, 286, 2060, 10714, 10297, 615, 2389, 3904, 1507, 330, 2753, 1741, 1034, 476, 6220, 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
#[test] fn test_poh_tick_large_batch() { let mut poh = Poh::new(Hash::default(), Some(2)); assert_eq!(poh.remaining_hashes, 2); assert!(poh.hash(1_000_000)); // Stop hashing before the next tick assert_eq!(poh.remaining_hashes, 1); assert!(poh.hash(1_000_000)); a...
rust_cleaned_test_functions.jsonl/38895
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 2267, 43612, 45228, 14534, 368, 341, 286, 1077, 5206, 281, 2267, 284, 393, 2267, 486, 931, 7, 6370, 486, 2258, 1507, 4329, 7, 17, 1106, 286, 2060, 10714, 10297, 79, 2267, 92005, 91616, 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_join_lines_normal_comments() { check_join_lines( r" fn foo() { // Hello$0 // world! } ", r" fn foo() { // Hello$0 world! } ", ); }
rust_cleaned_test_functions.jsonl/22499
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 122 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31017, 18323, 13973, 30359, 368, 341, 286, 1779, 31017, 18323, 1006, 310, 435, 698, 8822, 15229, 368, 341, 262, 442, 21927, 3, 15, 198, 262, 442, 1879, 4894, 532, 756, 310, 435, 698, 8822, 15229...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_deserialize_untyped_new_id() { let request = TestInterfaceRequest::from_args( 9, /* opcode */ vec![ Arg::String(UNTYPED_NEW_ID_INTERFACE_NAME.to_string()), Arg::Uint(UNTYPED_NEW_ID_INTERFACE_VERSION), Arg::NewId(UNTY...
rust_cleaned_test_functions.jsonl/55804
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 423 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 4907, 44181, 5921, 842, 368, 341, 286, 1077, 1681, 284, 3393, 5051, 1900, 486, 1499, 8384, 1006, 310, 220, 24, 11, 1391, 30028, 735, 310, 7486, 90515, 394, 7638, 486, 703, 7, 69449,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_message_channels() { let mut runtime = SimpleRuntime::new(); let pool = BufferPacketPool::new(SimpleBufferPool(32)); let mut multiplexer_a = PacketMultiplexer::new(); let mut builder_a = MessageChannelsBuilder::new(runtime.handle(), pool); builder_a.register::<Mes...
rust_cleaned_test_functions.jsonl/12199
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6462, 19291, 368, 341, 262, 1077, 5206, 15592, 284, 8993, 15123, 486, 931, 543, 262, 1077, 7314, 284, 10312, 16679, 10551, 486, 931, 3759, 6456, 4095, 10551, 7, 18, 17, 3237, 1066, 14808, 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...
4
#[test] fn test_config_serialization_params_deserialize_ok() { let toml_file: tempfile::NamedTempFile = create_good_toml_bookmarks_params(); toml_file.as_file().sync_all().unwrap(); toml_file.as_file().seek(SeekFrom::Start(0)).unwrap(); // Parse let cfg = deserialize(Box:...
rust_cleaned_test_functions.jsonl/15999
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1023 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 25602, 2022, 6745, 15768, 9050, 19817, 368, 341, 286, 1077, 311, 1014, 2458, 25, 54819, 486, 15810, 12151, 1703, 284, 1855, 44781, 528, 316, 75, 26421, 15544, 6745, 543, 286, 311, 1014, 2458...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vcx_connection_serialize() { init!("true"); let handle = build_test_connection(); assert!(handle > 0); let cb = return_types_u32::Return_U32_STR::new().unwrap(); let rc = vcx_connection_serialize(cb.command_handle, handle, Some(cb.get_callback())); ...
rust_cleaned_test_functions.jsonl/25725
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 199 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 25844, 15866, 88686, 368, 341, 286, 2930, 17223, 1866, 797, 286, 1077, 3705, 284, 1936, 4452, 15866, 543, 286, 2060, 10297, 8192, 861, 220, 15, 626, 286, 1077, 9858, 284, 470, 9763, 7300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_for_range() { let s = ForRangeTemplate { init: -1, end: 1 }; assert_eq!( s.render().unwrap(), "foo (first)\nfoo (last)\nbar\nbar\nfoo\nbar\nbar\n" ); }
rust_cleaned_test_functions.jsonl/24292
{ "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, 5478, 9698, 368, 341, 262, 1077, 274, 284, 1752, 6046, 7275, 314, 2930, 25, 481, 16, 11, 835, 25, 220, 16, 2605, 262, 2060, 10714, 33673, 286, 274, 8740, 1005, 15454, 3148, 286, 330, 7975, 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...
1
#[test] fn test_replace_range_inclusive_range() { let mut v = String::from("12345"); v.replace_range(2..=3, "789"); assert_eq!(v, "127895"); v.replace_range(1..=2, "A"); assert_eq!(v, "1A895"); }
rust_cleaned_test_functions.jsonl/27787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 110 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10633, 9698, 1243, 8336, 9698, 368, 341, 262, 1077, 5206, 348, 284, 923, 486, 1499, 445, 16, 17, 18, 19, 20, 797, 262, 348, 6980, 9698, 7, 17, 496, 28, 18, 11, 330, 22, 23, 24, 797, 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_bytearray() { let gil = Python::acquire_gil(); let py = gil.python(); let src = b"Hello Python"; let bytearray = PyByteArray::new(py, src); assert_eq!(src.len(), bytearray.len()); assert_eq!(src, bytearray.data()); let ba: PyObject = byte...
rust_cleaned_test_functions.jsonl/77652
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 403 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19737, 1653, 368, 341, 286, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 286, 1077, 4510, 284, 342, 321, 43193, 1428, 286, 1077, 2286, 284, 293, 1, 9707, 13027, 876, 286, 1077, 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...
2
#[test] fn test_block_cells_update() { let (_, _, always_success_script) = always_success_cell(); let always_success_tx = create_always_success_tx(); let issue_tx = TransactionBuilder::default() .input(CellInput::new(OutPoint::null(), 0)) .output( CellOutputBuilder::defau...
rust_cleaned_test_functions.jsonl/76932
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7113, 37796, 8882, 368, 341, 262, 1077, 39464, 8358, 2677, 18632, 14660, 8, 284, 2677, 18632, 16648, 543, 262, 1077, 2677, 18632, 17805, 284, 1855, 8418, 2284, 18632, 17805, 543, 262, 1077, 4265, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_elements() { let xml = br#"<?xml version="1.0"?> <root> <child name="a" /> <child name="b" /> <child name="c" /> </root>"#; let result: String = with_parser(xml, |mut p| { p.document(|p, _| { ...
rust_cleaned_test_functions.jsonl/39191
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 385 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22801, 368, 341, 286, 1077, 8396, 284, 1411, 55543, 1316, 6455, 2319, 428, 16, 13, 15, 85990, 310, 366, 2888, 397, 394, 366, 3048, 829, 428, 64, 1, 2597, 394, 366, 3048, 829, 428, 65, 1, 259...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_status_only_started() { let dir = tempdir().unwrap(); let repo = init_repo_with_tasks( dir.path(), &[ Task::new(TaskStatus::Started, "Foo"), Task::new(TaskStatus::Started, "Bar"), ], ); check_curr...
rust_cleaned_test_functions.jsonl/36275
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 212 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4773, 18410, 55679, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 15867, 284, 2930, 37784, 6615, 32823, 1006, 310, 5419, 3875, 3148, 310, 609, 9640, 394, 5430, 486, 931,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_array_scalar() { let c = make(); let arr: Vec<i64> = c.get("arr").unwrap(); assert_eq!(arr.len(), 10); assert_eq!(arr[3], 4); }
rust_cleaned_test_functions.jsonl/39931
{ "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, 3858, 41652, 368, 341, 262, 1077, 272, 284, 1281, 543, 262, 1077, 2890, 25, 11312, 21897, 21, 19, 29, 284, 272, 670, 445, 1118, 1827, 15454, 1428, 262, 2060, 10714, 10297, 1118, 19406, 1507, 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
#[test] fn test_main() { const FIRECRACKER_INIT_TIMEOUT_MILLIS: u64 = 150; if Path::new(DEFAULT_API_SOCK_PATH).exists() { fs::remove_file(DEFAULT_API_SOCK_PATH).expect("failure in removing socket file"); } let log_file_temp = NamedTempFile::new(...
rust_cleaned_test_functions.jsonl/51353
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1034 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11027, 368, 341, 286, 733, 60463, 8973, 4032, 640, 14446, 23412, 1245, 9228, 1637, 25, 575, 21, 19, 284, 220, 16, 20, 15, 401, 1789, 286, 421, 7933, 486, 931, 43175, 11415, 1098, 16678, 7944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_size_of() { assert_eq!(size_of::<Id<TestType, Owned>>(), size_of::<&TestType>()); assert_eq!(size_of::<Id<TestType, Shared>>(), size_of::<&TestType>()); assert_eq!( size_of::<Option<Id<TestType, Owned>>>(), size_of::<&TestType>() ); ...
rust_cleaned_test_functions.jsonl/3145
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2368, 3575, 368, 341, 286, 2060, 10714, 10297, 2141, 3575, 27638, 764, 71273, 929, 11, 85093, 2452, 1507, 1379, 3575, 27638, 5, 2271, 929, 32872, 286, 2060, 10714, 10297, 2141, 3575, 27638, 764, 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_validate_with_github_license_api() -> Result<()> { let gh_token = gh_trs::env::github_token(&None::<String>)?; validate_with_github_license_api(&gh_token, "cc0-1.0")?; validate_with_github_license_api(&gh_token, "mit")?; validate_with_github_license_api(&gh_token,...
rust_cleaned_test_functions.jsonl/107313
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 6615, 1889, 3827, 63839, 11697, 368, 1464, 5714, 71698, 341, 286, 1077, 36124, 6458, 284, 36124, 3547, 82, 486, 3160, 486, 5204, 6458, 2099, 4064, 27638, 703, 9231, 37445, 286, 9593, 6615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_zeros() { let input = [0b11110001_u8, 0b10000001, 0b00101100, 0b10001000]; let mut slice: &[u8] = &input; let mut stream = BitsIOReader::new(&mut slice); assert_eq!(stream.get_zeros(11).unwrap(), 0); assert_eq!(stream.get_zeros(1).unwrap(), 1); assert_eq!(stream.get_...
rust_cleaned_test_functions.jsonl/134493
{ "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, 83761, 368, 341, 1066, 262, 1077, 1946, 284, 508, 15, 65, 16, 16, 16, 16, 15, 15, 15, 16, 7300, 23, 11, 220, 15, 65, 16, 15, 15, 15, 15, 15, 15, 16, 11, 220, 15, 65, 15, 15, 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_try_fold_ok() { let v: VecDeque<u32> = (0..12).collect(); assert_eq!(Ok::<_, ()>(66), v.into_iter().try_fold(0, |a, b| Ok(a + b))); }
rust_cleaned_test_functions.jsonl/73743
{ "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, 53283, 61187, 19817, 368, 341, 262, 1077, 348, 25, 11312, 73891, 34837, 18, 17, 29, 284, 320, 15, 496, 16, 17, 568, 17384, 543, 262, 2060, 10714, 10297, 11578, 27638, 6878, 1719, 2235, 21, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_options_reuse() { use url::SyntaxViolation::*; let violations = RefCell::new(Vec::new()); let vfn = |v| violations.borrow_mut().push(v); let options = Url::options() .syntax_violation_callback(Some(&vfn)); let url = options.parse("http:////mozilla.org").unwrap(); ...
rust_cleaned_test_functions.jsonl/63971
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8743, 1288, 810, 368, 341, 262, 990, 2515, 486, 33890, 74971, 56162, 262, 1077, 26557, 284, 8550, 3599, 486, 931, 49923, 486, 931, 1423, 262, 1077, 348, 8822, 284, 760, 85, 91, 26557, 83640, 295...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_show() { let mut set = HashSet::new(); let empty = HashSet::<i32>::new(); set.insert(1); set.insert(2); let set_str = format!("{:?}", set); assert!(set_str == "{1, 2}" || set_str == "{2, 1}"); assert_eq!(format!("{:?}", empty), "{}"); ...
rust_cleaned_test_functions.jsonl/5405
{ "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, 15267, 368, 341, 286, 1077, 5206, 738, 284, 18931, 486, 931, 543, 286, 1077, 4287, 284, 18931, 27638, 72, 18, 17, 6831, 931, 1428, 286, 738, 7030, 7, 16, 317, 286, 738, 7030, 7, 17, 626, 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_arithmetic_dispatch() { let s = Int64Chunked::new("", &[1, 2, 3]) .into_datetime(TimeUnit::Nanoseconds, None) .into_series(); // check if we don't panic. let out = &s * 100; assert_eq!( out.dtype(), &DataType::Datet...
rust_cleaned_test_functions.jsonl/8718
{ "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, 25842, 25922, 42991, 368, 341, 286, 1077, 274, 284, 1333, 21, 19, 28304, 291, 486, 931, 19814, 44590, 16, 11, 220, 17, 11, 220, 18, 2546, 310, 659, 18122, 28943, 36968, 4562, 486, 45, 276, 758...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_with_zenodo_license_api() -> Result<()> { validate_with_zenodo_license_api("cc0-1.0")?; validate_with_zenodo_license_api("mit")?; validate_with_zenodo_license_api("MIT")?; validate_with_zenodo_license_api("apache-2.0")?; Ok(()) }
rust_cleaned_test_functions.jsonl/107314
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 149 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 6615, 62, 5679, 6004, 63839, 11697, 368, 1464, 5714, 71698, 341, 286, 9593, 6615, 62, 5679, 6004, 63839, 11697, 445, 638, 15, 12, 16, 13, 15, 899, 37445, 286, 9593, 6615, 62, 5679, 6004, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_entry_either() { // Check that trying to build an EntryEither with mismatching IpAddr let subnet_v4 = Subnet::new(Ipv4Addr::new([192, 168, 0, 0]), 24).unwrap().into(); let subnet_v6 = Subnet::new(Ipv6Addr::from_bytes([1, 2, 3, 4, 5, 6, 7, 8, 0, 0, 0, ...
rust_cleaned_test_functions.jsonl/61741
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 723 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9078, 2204, 2485, 368, 341, 286, 442, 4248, 429, 4460, 311, 1936, 458, 15788, 49244, 448, 35301, 287, 35033, 13986, 8945, 286, 1077, 51457, 2273, 19, 284, 3719, 4711, 486, 931, 8972, 30168, 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...
2
#[test] fn test_single_line_if_else_max_width_config_exceeds_max_width() { let toml = r#" max_width = 70 single_line_if_else_max_width = 90 "#; let config = Config::from_toml(toml, Path::new("")).unwrap(); assert_eq!(config.single_l...
rust_cleaned_test_functions.jsonl/130657
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 6528, 11119, 62628, 6345, 7927, 5332, 2702, 4635, 82, 6345, 7927, 368, 341, 310, 1077, 311, 1014, 284, 435, 2, 698, 394, 1932, 7927, 284, 220, 22, 15, 198, 394, 3175, 6528, 11119, 62628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_try_into_ndarray0_fail() { let hw = RefCell::new(CpuHardware::new()); for n in [1, 2, 3, 4, 5, 6, 7, 8] { let src = Array::fill_f32(&hw, Shape::from_slice(&vec![1; n]), 42.); assert!(ndarray::Array0::<f32>::try_from(&src).is_err()); } }
rust_cleaned_test_functions.jsonl/73964
{ "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, 53283, 45514, 43544, 1653, 15, 22121, 368, 341, 262, 1077, 31256, 284, 8550, 3599, 486, 931, 3025, 5584, 66862, 486, 931, 1423, 262, 369, 308, 304, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_scrypt_simple_expanded() { // These parameters are intentionally very weak - the goal is to make the test run quickly! test_scrypt_simple(3, 1, 256); }
rust_cleaned_test_functions.jsonl/13238
{ "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, 13171, 3571, 30015, 14214, 6465, 368, 341, 286, 442, 4220, 5029, 525, 36204, 1602, 7469, 481, 279, 5795, 374, 311, 1281, 279, 1273, 1598, 6157, 4894, 286, 1273, 13171, 3571, 30015, 7, 18, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_try_from_patch_mmds() { let (mut sender, receiver) = UnixStream::pair().unwrap(); let mut connection = HttpConnection::new(receiver); sender .write_all( b"PATCH /mmds HTTP/1.1\r\n\ Content-Type: application/json\r\n\ ...
rust_cleaned_test_functions.jsonl/43156
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 295 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 39643, 717, 2277, 82, 368, 341, 286, 1077, 320, 6984, 4646, 11, 13964, 8, 284, 46995, 3027, 486, 12670, 1005, 15454, 543, 286, 1077, 5206, 3633, 284, 4823, 4526, 486, 931, 78126, 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_add() { let a = Jacobian::from(Affine::new( field_element!("01ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca"), field_element!("005668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"), )); let b = Jacobian::from(Affine::n...
rust_cleaned_test_functions.jsonl/38964
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 468 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 368, 341, 286, 1077, 264, 284, 24521, 1103, 486, 1499, 4346, 542, 482, 486, 931, 1006, 310, 2070, 7894, 17223, 15, 16, 823, 16, 20, 66, 16, 23, 20, 24, 24, 24, 22, 16, 65, 22, 16692,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lens() { let mut r: Table<()> = Table::default(); assert_eq!(r.rows_len(), 0); assert_eq!(r.cols_len(), 0); r.add_row(vec![Nil, Nil].into_iter()); assert_eq!(r.rows_len(), 1); assert_eq!(r.cols_len(), 2); }
rust_cleaned_test_functions.jsonl/4483
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 81642, 368, 341, 262, 1077, 5206, 435, 25, 6633, 71698, 284, 6633, 486, 2258, 543, 262, 2060, 10714, 10297, 81, 19336, 6043, 1507, 220, 15, 317, 262, 2060, 10714, 10297, 81, 36021, 6043, 1507, 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_add_existing_client_iface() { let mut exec = fuchsia_async::Executor::new().expect("failed to create an executor"); // Create a configured ClientIfaceContainer. let test_values = test_setup(&mut exec); let (mut iface_manager, _next_sme_req) = create_i...
rust_cleaned_test_functions.jsonl/62727
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1013 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 62630, 8179, 67666, 368, 341, 286, 1077, 5206, 3883, 284, 282, 73391, 28346, 486, 25255, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 458, 31558, 3071, 286, 442, 4230, 264, 19755, 8423, 40,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_full_fn() { let code = String::from(" fn: main(argc: int) ~ int { var x: int = 4; var y: int = 6; return x + y; } "); let parser = Parser::new(code.clone()); let decl_list_res = parser.parse_root_decl_list(); assert!(...
rust_cleaned_test_functions.jsonl/43208
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 16372, 15246, 368, 341, 262, 1077, 2038, 284, 923, 486, 1499, 70576, 286, 5168, 25, 1887, 28680, 25, 526, 8, 3968, 526, 341, 310, 762, 856, 25, 526, 284, 220, 19, 280, 310, 762, 379, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scheme_from() { assert!(ShardScheme::Auto.from().is_none()); assert_eq!( 18, ShardScheme::Bucket { bucket_id: 18, concurrency: 16, total: 320, } .from() .unwrap() )...
rust_cleaned_test_functions.jsonl/28587
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 369 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53293, 5673, 368, 341, 286, 2060, 10297, 2016, 567, 28906, 486, 13253, 6387, 1005, 285, 31488, 1423, 286, 2060, 10714, 33673, 310, 220, 16, 23, 345, 310, 95366, 28906, 486, 36018, 341, 394, 15621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sign_verify_seed() { use randombytes::{randombytes, randombytes_into}; for i in 0..256usize { let mut seedbuf = [0; 32]; randombytes_into(&mut seedbuf); let seed = Seed(seedbuf); let (pk, sk) = keypair_from_seed(&seed); ...
rust_cleaned_test_functions.jsonl/11396
{ "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, 11172, 35638, 33809, 368, 341, 286, 990, 4194, 9651, 22964, 11463, 9651, 11, 4194, 9651, 45514, 2440, 286, 369, 600, 304, 220, 15, 496, 17, 20, 21, 51878, 341, 310, 1077, 5206, 10320, 5909, 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_nested_lists() { // Define inner list scalars let l1 = ScalarValue::List( Some(Box::new(vec![ ScalarValue::List( Some(Box::new(vec![ ScalarValue::from(1i32), ScalarValue::from(2i32), ...
rust_cleaned_test_functions.jsonl/48129
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1883 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66279, 37288, 368, 341, 286, 442, 18614, 9179, 1140, 24004, 1561, 198, 286, 1077, 326, 16, 284, 35176, 1130, 486, 852, 1006, 310, 4329, 67758, 486, 931, 25592, 90515, 394, 35176, 1130, 486, 852, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rust_src_path_rustup_ok() { use std::env; let _guard = TEST_SEMAPHORE.lock().unwrap(); let original = env::var_os("RUST_SRC_PATH"); env::remove_var("RUST_SRC_PATH"); let result = get_rust_src_path(); match original { Some(path) => env::set_var("RUST_SRC_PAT...
rust_cleaned_test_functions.jsonl/126175
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 282 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 1710, 590, 16274, 2638, 1710, 590, 454, 19817, 368, 341, 262, 990, 1460, 486, 3160, 401, 262, 1077, 716, 26098, 284, 13602, 3620, 17617, 39, 5881, 21003, 1005, 15454, 543, 262, 1077, 4024, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_set_bitcoin_multiple_times_returns_error() { assert!(SubnetFeatures::from_str( "canister_sandboxing,http_requests,bitcoin_testnet_paused,bitcoin_testnet", ) .is_err()); }
rust_cleaned_test_functions.jsonl/36346
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 111 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 13996, 7160, 45233, 22353, 58900, 4096, 368, 341, 286, 2060, 10297, 3136, 4711, 21336, 486, 1499, 2895, 1006, 310, 330, 4814, 1571, 643, 31536, 287, 11, 1254, 37216, 11, 83910, 4452, 4711, 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
#[test] fn test_simple_spill() { VM::start_logging_trace(); let vm = Arc::new(create_simple_spill()); let compiler = Compiler::new(CompilerPolicy::default(), &vm); let func_id = vm.id_of("simple_spill"); { let funcs = vm.funcs().read().unwrap(); let func = funcs.get(&func_...
rust_cleaned_test_functions.jsonl/133332
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 598 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 10123, 483, 368, 341, 262, 17792, 486, 2468, 59982, 23575, 1428, 262, 1077, 10995, 284, 19689, 486, 931, 32602, 30015, 10123, 483, 5231, 262, 1077, 19415, 284, 45631, 486, 931, 7, 38406, 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...
2
#[test] fn test_cost_tracker_ok_add_two_diff_accounts() { let (mint_keypair, start_hash) = test_setup(); // build two transactions with diff accounts let second_account = Keypair::new(); let (_tx1, tx_cost1) = build_simple_transaction(&mint_keypair, &start_hash); let cost...
rust_cleaned_test_functions.jsonl/23072
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 539 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15890, 50264, 19817, 2891, 23241, 15850, 55665, 368, 341, 286, 1077, 320, 67791, 3097, 12670, 11, 1191, 8950, 8, 284, 1273, 21363, 543, 286, 442, 1936, 1378, 14131, 448, 3638, 9618, 198, 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_no_err_on_debug_and_no_secret_key() { figment::Jail::expect_with(|jail| { jail.set_env("ROCKET_PROFILE", "debug"); let figment = Config::figment(); assert!(crate::local::blocking::Client::untracked(crate::custom(&figment)).is_ok()); crate::...
rust_cleaned_test_functions.jsonl/22120
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 275 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 9266, 4470, 15446, 8378, 6536, 21962, 3097, 368, 341, 286, 4144, 478, 486, 41, 604, 486, 17119, 6615, 22428, 73, 604, 91, 341, 310, 17540, 980, 15879, 445, 1285, 68318, 34533, 497, 330, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_case_44() { let key = "1380c3d3f873c7233c541ea4c43824ecd8bf7e11ac8486208fb685218d46736e"; let nonce = "51103d1fae0e8e368f25480ee7328381"; let expected_output = "9b84e50804449b594a54240741e21d75d31050d2612f4cbc651fea2f25bd9c1f"; hcha...
rust_cleaned_test_functions.jsonl/44706
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19096, 62, 19, 19, 368, 341, 310, 1077, 1376, 284, 330, 16, 18, 23, 15, 66, 18, 67, 18, 69, 23, 22, 18, 66, 22, 17, 18, 18, 66, 20, 19, 16, 12508, 19, 66, 19, 18, 23, 17, 19, 37206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pubkey() { prepare_mockup!( invoke_context, transaction_context, program_id, bpf_loader::id(), ); let cost = invoke_context.get_compute_budget().log_pubkey_units; let mut syscall_sol_pubkey = SyscallLogPu...
rust_cleaned_test_functions.jsonl/69889
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1513 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20344, 6659, 53668, 34014, 792, 368, 341, 286, 10549, 34134, 454, 33673, 310, 19873, 8467, 345, 310, 7745, 8467, 345, 310, 2025, 842, 345, 310, 293, 15897, 22139, 486, 307, 3148, 286, 1439, 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_byte_vec() { let message: Vec<u8> = vec![0, 1]; let big_int0 = BigInt::from(message[0] as i32); let big_int1 = BigInt::from(message[1] as i32); let result = HSha256::create_hash(&[&big_int0, &big_int1]).to_hex(); let mut hasher = Sha256::new(); ha...
rust_cleaned_test_functions.jsonl/78538
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 212 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19737, 13251, 368, 341, 286, 1077, 1943, 25, 11312, 34837, 23, 29, 284, 7486, 20703, 15, 11, 220, 16, 935, 286, 1077, 2409, 4042, 15, 284, 62608, 486, 1499, 7333, 58, 15, 60, 438, 600, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ls_ls_color() { new_ucmd!().arg("--color").succeeds(); new_ucmd!().arg("--color=always").succeeds(); new_ucmd!().arg("--color=never").succeeds(); }
rust_cleaned_test_functions.jsonl/129712
{ "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, 53174, 53174, 6714, 368, 341, 262, 501, 68887, 2277, 0, 1005, 858, 21549, 3423, 1827, 82, 29264, 82, 543, 262, 501, 68887, 2277, 0, 1005, 858, 21549, 3423, 28, 32122, 1827, 82, 29264, 82, 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
#[test] fn test_user_defined_memory_regions() { let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string()); let guest = Guest::new(Box::new(focal)); let api_socket = temp_api_path(&guest.tmp_dir); let kernel_path = direct_kernel_boot_path(); let mut child = GuestCo...
rust_cleaned_test_functions.jsonl/26106
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3317, 52870, 19195, 58035, 368, 341, 286, 1077, 41099, 284, 34960, 47583, 2648, 486, 931, 7, 3788, 49533, 19121, 4708, 2389, 3904, 1423, 286, 1077, 8640, 284, 26215, 486, 931, 67758, 486, 931, 955...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_file_slice_trait_slice_len() { let blop: &'static [u8] = b"abc"; let owned_bytes: Box<dyn FileHandle> = Box::new(blop); assert_eq!(owned_bytes.len(), 3); }
rust_cleaned_test_functions.jsonl/69776
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 26488, 78491, 26488, 6043, 368, 341, 286, 1077, 14211, 79, 25, 30136, 1978, 508, 84, 23, 60, 284, 293, 1, 13683, 876, 286, 1077, 12938, 12524, 25, 8261, 92846, 2887, 6999, 29, 284, 8261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_path() { struct Scenario { pub testname: &'static str, pub envs: HashMap<&'static str, &'static str>, pub home: &'static str, pub expected: &'static str, } let scenarios = [ Scenario { tes...
rust_cleaned_test_functions.jsonl/8079
{ "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, 5332, 2638, 368, 341, 286, 2036, 58663, 341, 310, 6675, 1273, 606, 25, 30136, 1978, 607, 345, 310, 6675, 6105, 82, 25, 10528, 52244, 6, 1978, 607, 11, 30136, 1978, 607, 12520, 310, 6675, 2114, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_basic_highlight_read_write() { check( r#" fn foo() { let mut i$0 = 0; i = i + 1; } "#, expect![[r#" i Local FileId(0) 19..24 23..24 Write FileId(0) 34..35 Write FileId(0) 38..39 Read "#]], ...
rust_cleaned_test_functions.jsonl/60655
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 74546, 6443, 9165, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 8822, 15229, 368, 341, 262, 1077, 5206, 600, 3, 15, 284, 220, 15, 280, 262, 600, 284, 600, 488, 220, 16, 280, 532, 5767...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_persist_server_dictated_poll_interval() { block_on(async { let response = json!({"response":{ "server": "prod", "protocol": "3.0", "app": [{ "appid": "{00000000-0000-0000-0000-000000000001}", "status": ...
rust_cleaned_test_functions.jsonl/59692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 748 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 4975, 12015, 5243, 657, 40002, 20541, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 2033, 284, 2951, 0, 16864, 2322, 12602, 1060, 330, 4030, 788, 330, 19748, 756, 1060, 330, 17014, 788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_basic_array() { let bser_v2 = b"\x00\x02\x00\x00\x00\x00\x05\x11\x00\x00\x00\x00\x03\x02\x02\x03\x03Tom\x02\x03\x05Jerry"; let decoded = from_slice::<BytestringArray>(bser_v2).unwrap(); assert_eq!(decoded.0, vec![&b"Tom"[..], &b"Jerry"[..]]); }
rust_cleaned_test_functions.jsonl/34063
{ "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, 34729, 3858, 368, 341, 262, 1077, 293, 799, 2273, 17, 4035, 286, 293, 11934, 87, 15, 15, 3462, 15, 17, 3462, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 15, 20, 3462, 16, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_step_small() { let mut grid = parse_grid("11111\n19991\n19191\n19991\n11111\n"); grid.step(); assert_eq!(grid, parse_grid("34543\n40004\n50005\n40004\n34543\n")); grid.step(); assert_eq!(grid, parse_grid("45654\n51115\n61116\n51115\n45654\n")); }
rust_cleaned_test_functions.jsonl/27021
{ "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, 11946, 31966, 368, 341, 286, 1077, 5206, 5827, 284, 4715, 15604, 445, 16, 16, 16, 16, 16, 1699, 16, 24, 24, 24, 16, 1699, 16, 24, 16, 24, 16, 1699, 16, 24, 24, 24, 16, 1699, 16, 16, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_note_is_tonic_last_note() { let constraint: Box<dyn SinglePartConstraint> = Box::new(NoteIsTonic(-1)); assert!(constraint.is_active(&vec![PitchClassOctave(PC::from_str("E").unwrap(), 1)], 2)); assert!(!constraint.is_active(&vec![], 2)); run_scale_free_test(&constr...
rust_cleaned_test_functions.jsonl/74362
{ "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, 27207, 6892, 528, 14011, 12195, 27207, 368, 341, 286, 1077, 21568, 25, 8261, 92846, 11327, 5800, 17890, 29, 284, 8261, 486, 931, 89389, 3872, 51, 14011, 4080, 16, 1106, 286, 2060, 10297, 48057, 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_struct() { #[derive(Deserialize, PartialEq, Debug)] struct Test { int: u32, seq: Vec<String>, map: std::collections::HashMap<i32, i32>, empty: Vec<()>, } let expected = Test { int: 1, seq: ve...
rust_cleaned_test_functions.jsonl/15898
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 545 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 368, 341, 286, 11506, 27098, 7, 64465, 11, 55039, 11, 11091, 5563, 286, 2036, 3393, 341, 310, 526, 25, 575, 18, 17, 345, 310, 12981, 25, 11312, 3464, 12520, 310, 2415, 25, 1460, 486, 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_restricted_join_rule() { let _ = tracing::subscriber::set_default(tracing_subscriber::fmt().with_test_writer().finish()); let mut events = INITIAL_EVENTS(); *events.get_mut(&event_id("IJR")).unwrap() = to_pdu_event( "IJR", alice(), ...
rust_cleaned_test_functions.jsonl/47148
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1681 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 73072, 31017, 21124, 368, 341, 286, 1077, 716, 4035, 310, 45415, 486, 59205, 486, 746, 9993, 7624, 4527, 5228, 20351, 486, 12501, 1005, 4197, 4452, 28908, 1005, 30150, 1423, 286, 1077, 5206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_demux_map_to_deletebitset() { let max_value = 2; let mut demux_mapping = DemuxMapping::default(); // segment ordinal 0 mapping let mut doc_id_to_segment = DocIdToSegmentOrdinal::with_max_doc(max_value); doc_id_to_segment.set(0, 1); doc_id_to_segmen...
rust_cleaned_test_functions.jsonl/7117
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69403, 2200, 5376, 2346, 11353, 77615, 368, 341, 286, 1077, 1932, 3142, 284, 220, 17, 280, 286, 1077, 5206, 2429, 2200, 26930, 284, 4724, 2200, 6807, 486, 2258, 543, 286, 442, 10238, 67948, 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_vec3_funcs() { let x = vec3(1.0, 0.0, 0.0); let y = vec3(0.0, 1.0, 0.0); let z = vec3(0.0, 0.0, 1.0); assert_eq!(1.0, x.dot(x)); assert_eq!(0.0, x.dot(y)); assert_eq!(-1.0, z.dot(-z)); assert_eq!(y, z.cross(x)); assert_eq!(z, x.cross(y)); assert_eq!(4.0, (2.0 ...
rust_cleaned_test_functions.jsonl/48585
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 794 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 18, 64124, 368, 341, 262, 1077, 856, 284, 7486, 18, 7, 16, 13, 15, 11, 220, 15, 13, 15, 11, 220, 15, 13, 15, 317, 262, 1077, 379, 284, 7486, 18, 7, 15, 13, 15, 11, 220, 16, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dictionary_equal() { let a = create_dictionary_array( &["a", "b", "c"], &[Some("a"), Some("b"), Some("a"), Some("c")], ); let b = create_dictionary_array( &["a", "c", "b"], &[Some("a"), Some("b"), Some("a")...
rust_cleaned_test_functions.jsonl/46963
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 552 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42605, 11478, 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, 4329, 445, 65, 3975, 4329, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_new_from_opt_iter() { let v = vec![None, Some(true), Some(false), None]; let mut iter = v.into_iter(); iter.next(); // move iterator and create data_array from second element let data_array: DFBooleanArray = NewDataArray::new_from_opt_iter(iter); let mut iter = data_array.int...
rust_cleaned_test_functions.jsonl/53501
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 5673, 15032, 11723, 368, 341, 262, 1077, 348, 284, 7486, 20703, 4064, 11, 4329, 3715, 701, 4329, 3576, 701, 2240, 935, 262, 1077, 5206, 5367, 284, 348, 39860, 11723, 543, 262, 5367, 4529, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_difference() { let mut a = HashSet::new(); let mut b = HashSet::new(); assert!(a.insert(1)); assert!(a.insert(3)); assert!(a.insert(5)); assert!(a.insert(9)); assert!(a.insert(11)); assert!(b.insert(3)); assert!(b.insert(9...
rust_cleaned_test_functions.jsonl/5399
{ "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, 47525, 368, 341, 286, 1077, 5206, 264, 284, 18931, 486, 931, 543, 286, 1077, 5206, 293, 284, 18931, 486, 931, 1428, 286, 2060, 10297, 64, 7030, 7, 16, 1106, 286, 2060, 10297, 64, 7030, 7, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_acceptor() { use rustls::server::Acceptor; let client_config = Arc::new(make_client_config(KeyType::ED25519)); let mut client = ClientConnection::new(client_config, dns_name("localhost")).unwrap(); let mut buf = Vec::new(); client.write_tls(&mut buf).unwrap(); let serve...
rust_cleaned_test_functions.jsonl/51940
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 919 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35728, 269, 368, 341, 262, 990, 23071, 4730, 486, 4030, 486, 11654, 15349, 401, 262, 1077, 2943, 5332, 284, 19689, 486, 931, 36944, 8179, 5332, 21358, 929, 486, 1479, 17, 20, 20, 16, 24, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sculpt() { let h = hlist![9000, "joe", 41f32]; let (reshaped, remainder): (Hlist!(f32, i32), _) = h.sculpt(); assert_eq!(reshaped, hlist![41f32, 9000]); assert_eq!(remainder, hlist!["joe"]) }
rust_cleaned_test_functions.jsonl/24765
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 3314, 417, 368, 341, 286, 1077, 305, 284, 305, 1607, 20703, 24, 15, 15, 15, 11, 330, 73, 4644, 497, 220, 19, 16, 69, 18, 17, 935, 286, 1077, 320, 2488, 10185, 11, 26313, 1648, 320, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_accountsdb_scan_snapshot_stores_binning() { let mut stats = HashStats::default(); let (storages, raw_expected) = sample_storages_and_accounts(); // just the first bin of 2 let bins = 2; let half_bins = bins / 2; let result = AccountsDb::scan_snaps...
rust_cleaned_test_functions.jsonl/1327
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1512 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55665, 1999, 28857, 53265, 1261, 4589, 880, 19770, 368, 341, 286, 1077, 5206, 10472, 284, 6531, 16635, 486, 2258, 543, 286, 1077, 320, 47365, 1134, 11, 7112, 32190, 8, 284, 6077, 1261, 269, 1134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_locate_2_args() { let cases = vec![ ("bar", "foobarbar", 4i64), ("xbar", "foobar", 0i64), ("", "foobar", 1i64), ("foobar", "", 0i64), ("", "", 1i64), ("好世", "你好世界", 2i64), ("界面", "你好世界", 0i64), ...
rust_cleaned_test_functions.jsonl/9083
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 735 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13400, 349, 62, 17, 8384, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 2257, 497, 330, 50267, 2257, 497, 220, 19, 72, 21, 19, 1326, 310, 3489, 87, 2257, 497, 330, 50267, 497, 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...
3
#[test] fn test_transpile_decorators() { let specifier = resolve_url_or_path("https://deno.land/x/mod.ts") .expect("could not resolve specifier"); let source = r#" function enumerable(value: boolean) { return function ( _target: any, _propertyKey: string, descript...
rust_cleaned_test_functions.jsonl/65185
{ "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, 7965, 12192, 70369, 2973, 368, 341, 262, 1077, 97616, 284, 8830, 2903, 8734, 2638, 445, 2428, 1110, 5183, 78, 87627, 10776, 38479, 21288, 1138, 414, 659, 17119, 445, 28077, 537, 8830, 97616, 797, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_logger_source_req() { let logger_path = "/logger"; let json = "{ \"log_fifo\": \"tmp1\", \"metrics_fifo\": \"tmp2\", \"level\": \"Info\", \"show_level\": true, \"show_log_origin\": true ...
rust_cleaned_test_functions.jsonl/14372
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 722 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 27413, 10347, 17644, 368, 341, 286, 1077, 5925, 2638, 284, 3521, 9786, 876, 286, 1077, 2951, 284, 330, 515, 394, 7245, 839, 56590, 11693, 7245, 5173, 16, 83515, 394, 7245, 43262, 56590, 116...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_icmpv6_nxthdr_unknown() { let (mut iface, mut socket_set) = create_loopback(); let remote_ip_addr = Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1); let remote_hw_addr = EthernetAddress([0x52, 0x54, 0x00, 0x00, 0x00, 0x01]); let mut eth_bytes = vec![0; 66]; ...
rust_cleaned_test_functions.jsonl/133898
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1666 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32747, 1307, 85, 21, 1089, 87, 339, 3612, 57507, 368, 341, 286, 1077, 320, 6984, 49313, 11, 5206, 7575, 2602, 8, 284, 1855, 17198, 1419, 1428, 286, 1077, 8699, 10385, 7387, 284, 358, 30168, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_var_in_block2() { test( "function f(x) { switch (0) { case 0: { var y = x; y; y; } } }", "function f(x) { switch (0) { case 0: { var y; x; x; } } }", ); }
rust_cleaned_test_functions.jsonl/27709
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 107 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4612, 1243, 7113, 17, 368, 341, 262, 1273, 1006, 286, 330, 1688, 282, 2075, 8, 314, 3398, 320, 15, 8, 314, 1142, 220, 15, 25, 314, 762, 379, 284, 856, 26, 379, 26, 379, 26, 335, 335, 335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_timed_cache() { timed(1); timed(1); { let cache = TIMED.lock().unwrap(); assert_eq!(1, cache.cache_misses().unwrap()); assert_eq!(1, cache.cache_hits().unwrap()); } sleep(Duration::new(3, 0)); timed(1); { let cache = TIMED.lock().unwrap...
rust_cleaned_test_functions.jsonl/13126
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 387 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29087, 291, 11529, 368, 341, 262, 25182, 7, 16, 317, 262, 25182, 7, 16, 317, 262, 341, 286, 1077, 6500, 284, 17742, 1479, 21003, 1005, 15454, 543, 286, 2060, 10714, 10297, 16, 11, 6500, 20087, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_buffer_dequeue_many() { let mut ring = RingBuffer::new(vec![b'.'; 12]); assert_eq!(ring.enqueue_slice(b"abcdefghijkl"), 12); { let buf = ring.dequeue_many(8); assert_eq!(buf, b"abcdefgh"); buf.copy_from_slice(b"........"); } ...
rust_cleaned_test_functions.jsonl/37267
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 351 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7776, 2259, 4584, 22101, 368, 341, 286, 1077, 5206, 10058, 284, 21525, 4095, 486, 931, 25592, 20703, 65, 6, 3159, 26, 220, 16, 17, 10149, 286, 2060, 10714, 10297, 12640, 47468, 26488, 1883, 1, 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_visibility_general_owner() { let user = test_model::new_general_user(); let (file, _) = test_model::new_file(user.id().clone()); assert!(file.is_visible_to(&user)); }
rust_cleaned_test_functions.jsonl/5055
{ "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, 71256, 39177, 29027, 368, 341, 286, 1077, 1196, 284, 1273, 5047, 486, 931, 39177, 3317, 543, 286, 1077, 320, 1192, 11, 27439, 284, 1273, 5047, 486, 931, 2458, 4277, 1764, 1005, 19982, 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
#[test] fn test_truncate_smaller_than_length() { let mut args = HashMap::new(); args.insert("length".to_string(), to_value(&255).unwrap()); let result = truncate(to_value("hello").unwrap(), args); assert!(result.is_ok()); assert_eq!(result.unwrap(), to_value("hello").unwr...
rust_cleaned_test_functions.jsonl/49411
{ "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, 3547, 26900, 15874, 13956, 51613, 5118, 368, 341, 286, 1077, 5206, 2827, 284, 10528, 486, 931, 543, 286, 2827, 7030, 445, 4129, 3263, 983, 3904, 1507, 311, 3142, 2099, 17, 20, 20, 568, 15454, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_duration_num_seconds() { assert_eq!(Duration::zero().num_seconds(), 0); assert_eq!(Duration::seconds(1).num_seconds(), 1); assert_eq!(Duration::seconds(-1).num_seconds(), -1); assert_eq!(Duration::milliseconds(999).num_seconds(), 0); assert_eq!(Duration::m...
rust_cleaned_test_functions.jsonl/975
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25454, 4273, 34825, 368, 341, 286, 2060, 10714, 10297, 12945, 486, 14154, 1005, 2413, 34825, 1507, 220, 15, 317, 286, 2060, 10714, 10297, 12945, 486, 17403, 7, 16, 568, 2413, 34825, 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_tt_to_stmts() { let rules = create_rules( r#" macro_rules! foo { () => { let a = 0; a = 10 + 1; a } } "#, ); let expanded = expand(&rules, "foo!{}"); let stmts = token_tree_to_macr...
rust_cleaned_test_functions.jsonl/14706
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 788 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66740, 2346, 21824, 82, 368, 341, 262, 1077, 5601, 284, 1855, 21407, 1006, 286, 435, 2, 698, 286, 18072, 21407, 0, 15229, 341, 310, 1719, 589, 341, 338, 1077, 264, 284, 220, 15, 280, 338, 264,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_duplicate_name_repetition_no_copy() { let foo = vec!["a".to_owned(), "b".to_owned()]; let tokens = quote! { #(#foo: #foo),* }; let expected = r#""a" : "a" , "b" : "b""#; assert_eq!(expected, tokens.to_string()); }
rust_cleaned_test_functions.jsonl/53407
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70434, 1269, 1288, 55767, 6536, 16096, 368, 341, 262, 1077, 15229, 284, 7486, 0, 1183, 64, 3263, 983, 51973, 1507, 330, 65, 3263, 983, 51973, 368, 4821, 262, 1077, 11211, 284, 12641, 0, 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_sign_request_v1() -> Result<(), Box<dyn Error>> { let credential = get_credential(); assert_eq!( credential.sign_request_v1("http://upload.qiniup.com/", "", b"{\"name\":\"test\"}")?, credential.sign(b"/\n") ); assert_eq!( creden...
rust_cleaned_test_functions.jsonl/84485
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 703 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11172, 7893, 2273, 16, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 286, 1077, 40207, 284, 633, 666, 30320, 543, 286, 2060, 10714, 33673, 310, 40207, 15499, 7893, 2273, 16, 445, 1254, 111...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_mie_tail_divergence() { let mie = Mie::new(2.0, 0.8, 12.0, 2.0); assert_eq!(mie.tail_energy(2.0), 0.0); assert_eq!(mie.tail_virial(2.0), 0.0); }
rust_cleaned_test_functions.jsonl/34293
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 645, 35471, 16237, 2375, 763, 368, 341, 286, 1077, 29065, 284, 386, 645, 486, 931, 7, 17, 13, 15, 11, 220, 15, 13, 23, 11, 220, 16, 17, 13, 15, 11, 220, 17, 13, 15, 317, 286, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_fdt() { let regions = arch_memory_regions(layout::FDT_MAX_SIZE + 0x1000); let mem = GuestMemoryMmap::new(&regions).expect("Cannot initialize memory"); let kvm = Kvm::new().unwrap(); let vm = kvm.create_vm().unwrap(); let gic = create_gic(&vm, 1).unw...
rust_cleaned_test_functions.jsonl/90776
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 554 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 761, 8047, 368, 341, 286, 1077, 13604, 284, 5325, 19195, 58035, 19930, 486, 37, 10599, 6806, 4098, 488, 220, 15, 87, 16, 15, 15, 15, 317, 286, 1077, 1833, 284, 26215, 10642, 44, 2186, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_csi_sgr_mouse() { assert_eq!( parse_csi_sgr_mouse(b"\x1B[<0;20;10;M").unwrap(), Some(InternalEvent::Event(Event::Mouse(MouseEvent { kind: MouseEventKind::Down(MouseButton::Left), column: 19, row: 9, ...
rust_cleaned_test_functions.jsonl/21332
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 812 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 666, 6321, 643, 901, 39203, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 666, 6321, 643, 901, 39203, 1883, 11934, 87, 16, 33, 58, 27, 15, 26, 17, 15, 26, 16, 15, 26, 44, 1827, 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_expectct_basic() { let json = r#"{ "expect-ct-report": { "date-time": "2014-04-06T13:00:50Z", "hostname": "www.example.com", "port": 443, "effective-expiration-date": "2014-05-01T12:40:50Z", "serv...
rust_cleaned_test_functions.jsonl/4037
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68918, 302, 34729, 368, 341, 286, 1077, 2951, 284, 435, 55543, 515, 310, 330, 17119, 12, 302, 47411, 788, 341, 394, 330, 1028, 7246, 788, 330, 17, 15, 16, 19, 12, 15, 19, 12, 15, 21, 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...
2
#[test] fn test_chunked_mdn() { async_std::task::block_on(async move { let input = async_std::io::Cursor::new( "7\r\n\ Mozilla\r\n\ 9\r\n\ Developer\r\n\ 7\r\n\ Network\r\n\ ...
rust_cleaned_test_functions.jsonl/51855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 585 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30539, 291, 717, 17395, 368, 341, 286, 3312, 15656, 486, 8202, 486, 4574, 4470, 18285, 3271, 341, 310, 1077, 1946, 284, 3312, 15656, 486, 815, 486, 14543, 486, 931, 1006, 394, 330, 22, 12016, 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_continuation_pop_many() { let continuations = Continuations::new(); continuations.insert_remaining_packets( &PduId::GetElementAttributes, vec![vec![1 as u8], vec![1 as u8]], ); assert_eq!(continuations.pop_packet(&PduId::GetElementAttribute...
rust_cleaned_test_functions.jsonl/21855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68948, 4002, 17061, 22101, 368, 341, 286, 1077, 16122, 804, 284, 20297, 37070, 486, 931, 543, 286, 16122, 804, 7030, 59244, 63569, 1006, 310, 609, 47, 1054, 764, 486, 1949, 1691, 10516, 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