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_error_output2() { Command::cargo_bin("rrrocket") .unwrap() .args(&[ "-n", "-c", "--dry-run", "-m", "assets/fuzz-string-too-long.replay", ]) .assert() ...
rust_cleaned_test_functions.jsonl/88728
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 375 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4096, 7645, 17, 368, 341, 286, 7348, 486, 66715, 21816, 445, 634, 46790, 1138, 310, 659, 15454, 741, 310, 659, 2116, 2099, 9640, 394, 6523, 77, 756, 394, 6523, 66, 756, 394, 14482, 53210, 22973,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rcc_default() { use super::PLLP; let mut cfgr = CFGR { hse: None, hclk: None, sysclk: None, pclk1: None, pclk2: None, use_pll: false, use_pll48clk: false, pllm: 2, plln: 5...
rust_cleaned_test_functions.jsonl/63519
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 366 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 638, 9993, 368, 341, 286, 990, 2256, 486, 2916, 12567, 401, 286, 1077, 5206, 24111, 901, 284, 20795, 8626, 341, 310, 305, 325, 25, 2240, 345, 310, 305, 32583, 25, 2240, 345, 310, 5708, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_divide_by_zero() { let data = vec![ ( ScalarFuncSig::DivideReal, Datum::F64(f64::MAX), Datum::F64(f64::from(0)), ), ( ScalarFuncSig::DivideReal, Datum::F64(f64::MAX), ...
rust_cleaned_test_functions.jsonl/82070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1629 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16237, 577, 3710, 19359, 368, 341, 286, 1077, 821, 284, 7486, 90515, 310, 2399, 394, 35176, 9626, 47246, 486, 12509, 577, 12768, 345, 394, 68459, 486, 37, 21, 19, 955, 21, 19, 486, 10586, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bind_and_run_with_limit() { let mut tmp_socket = TempFile::new().unwrap(); tmp_socket.remove().unwrap(); let path_to_socket = tmp_socket.as_path().to_str().unwrap().to_owned(); let api_thread_path_to_socket = path_to_socket.clone(); let to_vmm_fd = EventF...
rust_cleaned_test_functions.jsonl/78943
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27461, 8378, 14007, 6615, 14763, 368, 341, 286, 1077, 5206, 4174, 19555, 284, 19944, 1703, 486, 931, 1005, 15454, 543, 286, 4174, 19555, 4850, 1005, 15454, 543, 286, 1077, 1815, 2346, 19555, 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_escape() { use bytes::BytesMut; let empty = ""; let escapes = "<=ABPQ"; let escaped = "bcadef"; let short = "foobar"; let long = "foobar".repeat(100); let mix = long.clone() + escapes + short + &long; let mix_escaped = long.clone()...
rust_cleaned_test_functions.jsonl/22939
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 819 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21832, 368, 341, 286, 990, 5820, 486, 7078, 51440, 401, 286, 1077, 4287, 284, 5438, 286, 1077, 65109, 284, 4055, 28, 1867, 47, 48, 876, 286, 1077, 27783, 284, 330, 8904, 329, 823, 876, 286, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_to_lines_from() { let mut buffer = setup_buffer("Test\nA\nTest"); buffer.set_mark(Mark::Cursor(0), 6); let mut lines = buffer.lines_from(Mark::Cursor(0)).unwrap(); assert_eq!(lines.next().unwrap(), [b'\n']); assert_eq!(lines.next().unwrap(), [b'T',b'e',b'...
rust_cleaned_test_functions.jsonl/94763
{ "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, 2346, 18323, 5673, 368, 341, 286, 1077, 5206, 4147, 284, 6505, 7776, 445, 2271, 1699, 32, 1699, 2271, 797, 286, 4147, 980, 18924, 3189, 838, 486, 14543, 7, 15, 701, 220, 21, 317, 286, 1077, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_spread() { use GradSpread::*; assert_approx_eq!(Reflect.at(0.3), 0.3, 1e-6); assert_approx_eq!(Reflect.at(-0.3), 0.3, 1e-6); assert_approx_eq!(Reflect.at(1.3), 0.7, 1e-6); assert_approx_eq!(Reflect.at(-1.3), 0.7, 1e-6); assert_approx_eq!(Repeat.at...
rust_cleaned_test_functions.jsonl/97804
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10123, 878, 368, 341, 286, 990, 21794, 46486, 56162, 286, 2060, 90425, 10714, 10297, 72789, 6847, 7, 15, 13, 18, 701, 220, 15, 13, 18, 11, 220, 16, 68, 12, 21, 317, 286, 2060, 90425, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extending_by_multiple_delegates() { use super::IoHandlerExtension; use crate::delegates::IoDelegate; use std::sync::Arc; struct Test; impl Test { fn abc(&self, _p: crate::Params) -> Result<Value, crate::Error> { Ok(5.into()) } } let mut io = IoHandler::new(); let mut ...
rust_cleaned_test_functions.jsonl/95536
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 270 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9927, 2459, 3710, 45233, 2259, 53379, 368, 341, 197, 41819, 2256, 486, 42799, 3050, 12049, 280, 197, 41819, 17717, 486, 450, 53379, 486, 42799, 9381, 280, 197, 41819, 1460, 486, 12996, 486, 36809, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_format() { assert_eq!("!", format!("{}", TypeQualifier::BangSingle)); assert_eq!("#", format!("{}", TypeQualifier::HashDouble)); assert_eq!("$", format!("{}", TypeQualifier::DollarString)); assert_eq!("%", format!("{}", TypeQualifier::PercentInteger)); ass...
rust_cleaned_test_functions.jsonl/56120
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8955, 368, 341, 286, 2060, 10714, 17223, 18789, 3561, 79878, 3990, 83491, 486, 62819, 10888, 1106, 286, 2060, 10714, 0, 3584, 497, 3561, 79878, 3990, 83491, 486, 6370, 7378, 1106, 286, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pool_force_scatter2() { let cpus = cpu_descriptor_from_socket_size(3, 4); let mut pool = ResourcePool::new(&ResourceDescriptor::new(cpus, Vec::new()), &[]); let rq1 = CpuRequest::ForceCompact(4).into(); pool.try_allocate_resources(&rq1, None).unwrap(); l...
rust_cleaned_test_functions.jsonl/92232
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 246 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15709, 40739, 13171, 1650, 17, 368, 341, 286, 1077, 12490, 355, 284, 17319, 33774, 5673, 19555, 2368, 7, 18, 11, 220, 19, 317, 286, 1077, 5206, 7314, 284, 11765, 10551, 486, 931, 2099, 4783, 117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_nft_state_with_class_success() { let (mut context, tx) = create_test_context(Action::Update(UpdateCase::UpdateStateWithClass), NftError::NoError); let tx = context.complete_tx(tx); // run let cycles = context .verify_tx(&tx, MAX_CYCLES) .expect("pa...
rust_cleaned_test_functions.jsonl/33581
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 157 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 1089, 723, 4387, 6615, 4790, 18632, 368, 341, 262, 1077, 320, 6984, 2266, 11, 9854, 8, 4035, 286, 1855, 4452, 8467, 21905, 486, 4289, 7, 4289, 4207, 486, 4289, 1397, 2354, 1957, 701, 451, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cw_ccw() { let mut dcel = DCEL::new(); let v0 = dcel.insert_vertex(()); let v1 = dcel.insert_vertex(()); let v2 = dcel.insert_vertex(()); let v3 = dcel.insert_vertex(()); let e01 = dcel.connect_two_isolated_vertices(v0, v1, 0); let e12 = d...
rust_cleaned_test_functions.jsonl/7378
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 354 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 86, 28955, 86, 368, 341, 286, 1077, 5206, 294, 3672, 284, 422, 41664, 486, 931, 543, 286, 1077, 348, 15, 284, 294, 3672, 7030, 26611, 7, 1423, 286, 1077, 348, 16, 284, 294, 3672, 7030, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_error_messages() { assert_eq!( format!( "{}", MetricsError::NeverInitialized(String::from("Bad Metrics Path Provided")) ), "Bad Metrics Path Provided" ); assert_eq!( format!("{}", MetricsError...
rust_cleaned_test_functions.jsonl/34306
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 475 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4096, 23428, 368, 341, 286, 2060, 10714, 33673, 310, 3561, 33673, 394, 35503, 756, 394, 54190, 1454, 486, 26155, 22495, 2242, 486, 1499, 445, 17082, 54190, 7933, 53874, 5455, 310, 2837, 310, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iter_as_str() { let buf = "a buf"; let mut iter = Id::<RoleMarker>::iter(buf); assert_eq!(buf, iter.as_str()); // Advancing still returns the complete buffer. assert!(iter.next().is_none()); assert_eq!(buf, iter.as_str()); }
rust_cleaned_test_functions.jsonl/99692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 11898, 2895, 368, 341, 286, 1077, 6607, 284, 330, 64, 6607, 876, 286, 1077, 5206, 5367, 284, 5223, 27638, 9030, 20613, 6831, 2015, 10731, 317, 286, 2060, 10714, 10297, 5909, 11, 5367, 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_atomic_musical_time() { let musical_time_1 = MusicalTime::new(4578749, 12390); let musical_time_2 = MusicalTime::new(5720495, 45781); let atomic_musical_time = AtomicMusicalTime::new(musical_time_1); assert_eq!(atomic_musical_time.get(), musical_time_1); ...
rust_cleaned_test_functions.jsonl/37373
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 218 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51367, 717, 355, 938, 3009, 368, 341, 286, 1077, 17795, 3009, 62, 16, 284, 56257, 1462, 486, 931, 7, 19, 20, 22, 23, 22, 19, 24, 11, 220, 16, 17, 18, 24, 15, 317, 286, 1077, 17795, 3009, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_original_child_resolution() { let crypto = OpenMlsRustCrypto::default(); for ciphersuite in Config::supported_ciphersuites() { // Number of leaf nodes in the tree const NODES: usize = 10; // Resolution for root left child const LEFT_CHILD_RESOLUTION: &[usi...
rust_cleaned_test_functions.jsonl/82139
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1972 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39556, 17268, 39849, 368, 341, 262, 1077, 19028, 284, 5264, 44, 4730, 49, 590, 58288, 486, 2258, 543, 262, 369, 272, 82077, 9302, 304, 5532, 486, 18216, 666, 82077, 3083, 288, 368, 341, 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...
4
#[test] fn test_por_circuit_poseidon_sub_8_2() { test_por_circuit::<TestTree2<PoseidonHasher, U8, U2>>(3, 1_377); }
rust_cleaned_test_functions.jsonl/88197
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 76628, 666, 37268, 33201, 90456, 5228, 62, 23, 62, 17, 368, 341, 286, 1273, 76628, 666, 37268, 27638, 2271, 6533, 17, 21604, 960, 90456, 6370, 261, 11, 547, 23, 11, 547, 17, 25526, 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
#[test] fn test_get_runtime_properties_no_children() { let root = Element::from_reader(ONLY_ROOT_AND_CHILD_NODES.as_bytes()).unwrap(); let actual = Unreal4ContextRuntimeProperties::from_xml(&root).expect("default struct"); assert_eq!(Unreal4ContextRuntimeProperties::default(), actual) }
rust_cleaned_test_functions.jsonl/28093
{ "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, 3062, 33232, 25158, 6536, 31206, 368, 341, 262, 1077, 3704, 284, 8543, 486, 1499, 22306, 7, 31092, 16197, 21767, 59196, 92948, 5357, 12524, 6011, 15454, 543, 262, 1077, 5042, 284, 79919, 19, 1972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_compile_or_a() { let compiled = bitwise::compile_or("A".to_string()); assert_eq!(compiled.len(), 1); assert_eq!(compiled[0], 0b000011001); }
rust_cleaned_test_functions.jsonl/100585
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 81 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74170, 8734, 4306, 368, 341, 262, 1077, 19697, 284, 97970, 486, 20433, 8734, 445, 32, 3263, 983, 3904, 5231, 262, 2060, 10714, 10297, 50845, 19406, 1507, 220, 16, 317, 262, 2060, 10714, 10297, 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
#[test] fn test_step_replace_no_between() { let mut x = 4u128; let y = x.replace_zero(); assert_eq!(x, 0); assert_eq!(y, 4); x = 5; let y = x.replace_one(); assert_eq!(x, 1); assert_eq!(y, 5); }
rust_cleaned_test_functions.jsonl/54184
{ "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, 11946, 10633, 6536, 48302, 368, 341, 262, 1077, 5206, 856, 284, 220, 19, 84, 16, 17, 23, 280, 262, 1077, 379, 284, 856, 6980, 19359, 543, 262, 2060, 10714, 10297, 87, 11, 220, 15, 317, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_10_elements() { let mut act; // all 0 act = BitVec::from_elem(10, false); assert!((act.eq_vec( &[false, false, false, false, false, false, false, false, false, false]))); assert!(act.none() && !act.all()); // all 1 act...
rust_cleaned_test_functions.jsonl/62078
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 757 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 16, 15, 22801, 368, 341, 286, 1077, 5206, 1160, 280, 286, 442, 678, 220, 15, 271, 286, 1160, 284, 6495, 10050, 486, 1499, 28179, 7, 16, 15, 11, 895, 317, 286, 2060, 0, 1188, 531, 26662, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_blank_hash() { let iv = get_sha256_iv(); let mut cs = TestConstraintSystem::<Fr>::new(); let mut input_bits: Vec<_> = (0..512).map(|_| Boolean::Constant(false)).collect(); input_bits[0] = Boolean::Constant(true); let out = sha256_compression_function(&mut...
rust_cleaned_test_functions.jsonl/38847
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 446 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56103, 8950, 368, 341, 286, 1077, 17509, 284, 633, 48836, 17, 20, 21, 51411, 1428, 286, 1077, 5206, 10532, 284, 3393, 17890, 2320, 27638, 22560, 6831, 931, 543, 286, 1077, 5206, 1946, 20034, 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...
3
#[test] fn test_parse_input() { let input = "0,3,6"; let expected = Container { input: vec![0, 3, 6], }; let mut cont = Container::new(); assert_eq!(Ok(()), cont.parse_input(input)); assert_eq!(expected, cont); }
rust_cleaned_test_functions.jsonl/103728
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5898, 368, 341, 286, 1077, 1946, 284, 330, 15, 11, 18, 11, 21, 3302, 286, 1077, 3601, 284, 9678, 341, 310, 1946, 25, 7486, 20703, 15, 11, 220, 18, 11, 220, 21, 1259, 286, 3634, 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_hunk_header_style_underline_deprecated_options() { _do_test_hunk_header_style_underline(&[ "--hunk-color", "black", "--hunk-style", "underline", ]); }
rust_cleaned_test_functions.jsonl/70103
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 3122, 8757, 15117, 58228, 1056, 2259, 19889, 8743, 368, 341, 286, 716, 2982, 4452, 1523, 3122, 8757, 15117, 58228, 1056, 2099, 9640, 310, 14482, 71, 3122, 7889, 756, 310, 330, 11453, 756, 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
#[test] fn test_has_extension() { let mut buf = PathBuf::from("/"); let extensions = vec!["js"]; assert_eq!(has_extension(&buf, &extensions), false); buf.set_file_name("some-file.rs"); assert_eq!(has_extension(&buf, &extensions), false); buf.set_file_name("some...
rust_cleaned_test_functions.jsonl/36953
{ "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, 21778, 31035, 368, 341, 286, 1077, 5206, 6607, 284, 7933, 15064, 486, 1499, 58423, 286, 1077, 19721, 284, 7486, 0, 1183, 2519, 31797, 286, 2060, 10714, 10297, 4648, 31035, 2099, 5909, 11, 609, 276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_stage_instance() { let route = Route::UpdateStageInstance { channel_id: CHANNEL_ID, }; assert_eq!( route.to_string(), format!("stage-instances/{channel_id}", channel_id = CHANNEL_ID) ); }
rust_cleaned_test_functions.jsonl/119914
{ "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, 8882, 35238, 11904, 368, 341, 286, 1077, 6021, 284, 9572, 486, 4289, 19398, 2523, 341, 310, 5496, 842, 25, 58756, 3450, 345, 286, 2605, 286, 2060, 10714, 33673, 310, 6021, 2389, 3904, 3148, 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
#[test] fn test_request_size_index() { assert_eq!(request_size_index(0x0), 0); assert_eq!(request_size_index(0x3ff), 0); assert_eq!(request_size_index(0x400), 1); assert_eq!(request_size_index(0xfff), 1); assert_eq!(request_size_index(0x1000), 2); assert_eq!(reque...
rust_cleaned_test_functions.jsonl/40870
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 442 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 2368, 3560, 368, 341, 286, 2060, 10714, 10297, 2035, 2368, 3560, 7, 15, 87, 15, 701, 220, 15, 317, 286, 2060, 10714, 10297, 2035, 2368, 3560, 7, 15, 87, 18, 542, 701, 220, 15, 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...
1
#[test] fn test_header_pack_unpack() { let body_value = 305_888; let message_id_value = 40; let header = SrvHeader::new(body_value, message_id_value, true); assert_eq!(header.body_len(), body_value as usize); assert_eq!(header.message_id_len(), message_id_value as usize);...
rust_cleaned_test_functions.jsonl/100366
{ "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, 8757, 32995, 54889, 368, 341, 286, 1077, 2487, 3142, 284, 220, 18, 15, 20, 62, 23, 23, 23, 280, 286, 1077, 1943, 842, 3142, 284, 220, 19, 15, 280, 286, 1077, 4247, 284, 328, 10553, 4047, 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_leader_transfer_timeout() { setup_for_test(); let mut nt = Network::new(vec![None, None, None]); nt.send(vec![new_message(1, 1, MessageType::MsgHup, 0)]); nt.isolate(3); nt.send(vec![new_message(3, 1, MessageType::MsgTransferLeader, 0)]); assert_eq!(nt.peers[&1].le...
rust_cleaned_test_functions.jsonl/107169
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79991, 35403, 20537, 368, 341, 262, 6505, 5478, 4452, 543, 262, 1077, 5206, 31412, 284, 8141, 486, 931, 25592, 20703, 4064, 11, 2240, 11, 2240, 2558, 262, 31412, 5219, 25592, 20703, 931, 6462, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_case_10() { let key = [ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ]; let message = [ 0xe3, 0x35, 0x94, 0xd7, 0x50, 0x5e, 0x43, 0...
rust_cleaned_test_functions.jsonl/27925
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 567 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19096, 62, 16, 15, 368, 341, 197, 10217, 1376, 284, 2278, 298, 197, 15, 87, 15, 16, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_rasterband_size() { let dataset = Dataset::open(fixture!("tinymarble.png")).unwrap(); let rasterband = dataset.rasterband(1).unwrap(); let size = rasterband.size(); assert_eq!(size, (100, 50)); }
rust_cleaned_test_functions.jsonl/83456
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 1710, 2300, 7053, 2368, 368, 341, 262, 1077, 10337, 284, 39183, 486, 2508, 94886, 17223, 55971, 1600, 277, 891, 3508, 15197, 15454, 543, 262, 1077, 47208, 7053, 284, 10337, 1746, 2300, 7053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_exact_size_iterator() { let heap = BinaryHeap::from(vec![2, 4, 6, 2, 1, 8, 10, 3, 5, 7, 0, 9, 1]); check_exact_size_iterator(heap.len(), heap.iter()); check_exact_size_iterator(heap.len(), heap.clone().into_iter()); check_exact_size_iterator(heap.len(), heap.clone().into_iter_sor...
rust_cleaned_test_functions.jsonl/62355
{ "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, 71084, 2368, 13491, 368, 341, 262, 1077, 17364, 284, 17718, 27909, 486, 1499, 25592, 20703, 17, 11, 220, 19, 11, 220, 21, 11, 220, 17, 11, 220, 16, 11, 220, 23, 11, 220, 16, 15, 11, 220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_handler() { let mem = GuestMemory::new(&[(GuestAddress(0), 0x10000)]).unwrap(); let (mut h, txq, rxq) = default_test_netepollhandler(&mem, TestMutators::default()); let daddr = 0x2000; assert!(daddr as usize > txq.end().0); { assert_...
rust_cleaned_test_functions.jsonl/84704
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2871 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 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, 1077, 320, 6984, 305, 11, 985...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_detect_incremental() { let storage = TestStorageBuilder::new(DummyLockManager {}, false) .build() .unwrap(); for &start in &[100, 104, 108, 112] { let end = start + 10; let mut data = vec![]; for i in start..en...
rust_cleaned_test_functions.jsonl/108497
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70434, 56457, 51482, 278, 368, 341, 286, 1077, 5819, 284, 3393, 5793, 3297, 486, 931, 5432, 8574, 11989, 2043, 16452, 895, 340, 310, 659, 5834, 741, 310, 659, 15454, 543, 286, 369, 609, 2468, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_decoder_invalid_carriage_return() { // CR in the multibyte mode is invalid but *also* resets the state let mut d = HZEncoding.decoder(); assert_feed_ok!(d, b"~{#A", b"", "\uff21"); assert_feed_err!(d, b"", b"\n", b"", ""); assert_feed_ok!(d, b"#B~{#C", b""...
rust_cleaned_test_functions.jsonl/48122
{ "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, 49843, 31433, 26616, 8775, 12511, 368, 341, 286, 442, 12617, 304, 279, 2745, 579, 78361, 3856, 374, 8318, 714, 353, 18654, 9, 66197, 279, 1584, 198, 286, 1077, 5206, 294, 284, 472, 57, 14690, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_calculate_percentage_change() { assert_eq!(calculate_percentage_change(1 as f32, 2 as f32), "+100%"); assert_eq!(calculate_percentage_change(2 as f32, 1 as f32), "-50%"); assert_eq!(calculate_percentage_change(1 as f32, 1 as f32), "0%"); assert_eq!(calculate_perce...
rust_cleaned_test_functions.jsonl/66216
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 239 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24005, 11207, 46044, 15947, 368, 341, 286, 2060, 10714, 10297, 35597, 46044, 15947, 7, 16, 438, 282, 18, 17, 11, 220, 17, 438, 282, 18, 17, 701, 6630, 16, 15, 15, 92243, 286, 2060, 10714, 1029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encode_with_one_attribute_success() { let expected = json!({ "address2": { "encoded": "68086943237164982734333428280784300550565381723532936263016368251445461241953", "raw": "101 Wilson Lane" } }); static TEST_CREDENTIAL_DATA:...
rust_cleaned_test_functions.jsonl/104610
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 6615, 11667, 16791, 18632, 368, 1476, 286, 1077, 3601, 284, 2951, 0, 2262, 688, 330, 4995, 17, 788, 341, 310, 330, 19329, 788, 330, 21, 23, 15, 23, 21, 24, 19, 18, 17, 18, 22, 16, 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_to_seed() { let mnemonic = "actress tongue harbor tray suspect odor load topple vocal avoid ignore apple lunch unknown tissue museum once switch captain place lemon sail outdoor absent creek"; let seed = mnemonic::to_key(mnemonic).unwrap(); let account = Account::from_see...
rust_cleaned_test_functions.jsonl/102481
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 33809, 368, 341, 286, 1077, 86801, 284, 330, 531, 673, 24459, 56411, 34688, 15207, 52997, 2795, 44041, 273, 25407, 5648, 10034, 23268, 15786, 9788, 19847, 23971, 3055, 3398, 23915, 1992, 29464, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eq_not_identical() { let a = KeyEntry { options: None, key_type: "ssh-rsa".to_owned(), key: "abc".to_owned(), comment: None, }; let b = KeyEntry { options: None, key_type: "ssh-dss".to_owned(), ...
rust_cleaned_test_functions.jsonl/31219
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 248 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10714, 7913, 38399, 938, 368, 341, 286, 1077, 264, 284, 5309, 5874, 341, 310, 2606, 25, 2240, 345, 310, 1376, 1819, 25, 330, 25537, 3795, 9081, 3263, 983, 51973, 3148, 310, 1376, 25, 330, 13683,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_response() { let _ = pretty_env_logger::try_init(); let mut raw = BytesMut::from("HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n"); let ctx = ParseContext { cached_headers: &mut None, req_method: &mut Some(crate::Method::GET), h1_pa...
rust_cleaned_test_functions.jsonl/7658
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 536 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 9655, 368, 341, 286, 1077, 716, 284, 5020, 15879, 27413, 486, 1539, 6137, 543, 286, 1077, 5206, 7112, 284, 30024, 51440, 486, 1499, 445, 9230, 14, 16, 13, 16, 220, 17, 15, 15, 10402, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rpc_get_version() { let bob_pubkey = solana_sdk::pubkey::new_rand(); let RpcHandler { io, meta, .. } = start_rpc_handler_with_tx(&bob_pubkey); let req = r#"{"jsonrpc":"2.0","id":1,"method":"getVersion"}"#; let res = io.handle_request_sync(req, meta); let ...
rust_cleaned_test_functions.jsonl/3049
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 428 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60799, 3062, 9438, 368, 341, 286, 1077, 35192, 34014, 792, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 79961, 3050, 314, 6399, 11, 8823, 11, 5241, 335, 284, 1191, 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_paramspec_expression() { let pspec = ParamSpecExpression::new( "expression", "Expression", "Some Expression", glib::ParamFlags::CONSTRUCT_ONLY | glib::ParamFlags::READABLE, ); let expr_pspec = pspec.downcast::<ParamSpecExpr...
rust_cleaned_test_functions.jsonl/117909
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 180 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6745, 992, 28068, 368, 341, 286, 1077, 4726, 992, 284, 6991, 8327, 9595, 486, 931, 1006, 310, 330, 28099, 756, 310, 330, 9595, 756, 310, 330, 8373, 16378, 756, 310, 342, 2740, 486, 2001, 9195, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fq_hash_to_field_xof_shake128() { use crate::hash_to_field::{hash_to_field, ExpandMsgXof}; use sha3::Shake128; let u = hash_to_field::<Fq, ExpandMsgXof<Shake128>>(b"hello world", b"asdfqwerzxcv", 5); let expect = FqRepr([ 0x24606c02a2832651u64, ...
rust_cleaned_test_functions.jsonl/2341
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 8950, 2346, 5013, 3212, 1055, 3712, 726, 16, 17, 23, 368, 341, 286, 990, 17717, 486, 8296, 2346, 5013, 22964, 8296, 2346, 5013, 11, 50141, 6611, 55, 1055, 2440, 286, 990, 15870, 18, 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_tuple() { let mut buf = vec![]; let mut ser = Serializer { write: &mut buf }; let t: (u64, u64, u64) = (1, 2, 3); t.serialize(&mut ser).unwrap(); assert_eq!( buf, [ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,...
rust_cleaned_test_functions.jsonl/79246
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21773, 368, 341, 262, 1077, 5206, 6607, 284, 7486, 0, 15078, 262, 1077, 5206, 1420, 284, 58822, 314, 3270, 25, 609, 6984, 6607, 2605, 262, 1077, 259, 25, 320, 84, 21, 19, 11, 575, 21, 19, 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_exact_partial() { let needle = b"AAAAAT"; let haystack = b"ACGACTAGTTATAAAAATTCNACTCCANTTAGCTCCCTACTTTCCGAGAG"; check_test(needle, haystack, 0); }
rust_cleaned_test_functions.jsonl/83257
{ "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, 71084, 52068, 368, 341, 286, 1077, 30309, 284, 293, 1, 25699, 828, 876, 286, 1077, 88447, 284, 293, 1, 1706, 38, 6823, 1890, 14903, 4485, 50107, 828, 7749, 45, 6823, 3706, 2821, 32144, 1162, 370...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { assert_eq!( Number::from_parts(123456, 98278734873) + Number::from_parts(929, 2334), Number::from_parts(124385, 98278737207) ); }
rust_cleaned_test_functions.jsonl/71158
{ "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, 2891, 368, 341, 286, 2060, 10714, 33673, 310, 5624, 486, 1499, 33217, 7, 16, 17, 18, 19, 20, 21, 11, 220, 24, 23, 17, 22, 23, 22, 18, 19, 23, 22, 18, 8, 488, 5624, 486, 1499, 33217, 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_drop_panics() { use std::cell::Cell; use std::panic::catch_unwind; use std::panic::AssertUnwindSafe; let flag = &Cell::new(0); struct Bump<'a>(&'a Cell<i32>); // Panic in the first drop impl<'a> Drop for Bump<'a> { fn drop(&mut self) { let n = s...
rust_cleaned_test_functions.jsonl/36765
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 893 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29584, 71099, 1211, 368, 341, 262, 990, 1460, 486, 5873, 486, 3599, 280, 262, 990, 1460, 486, 19079, 486, 7173, 4907, 19154, 280, 262, 990, 1460, 486, 19079, 486, 8534, 1806, 19154, 25663, 401, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_decoder_default() { let result_value: String = read_to_string("tests/schema/result-example.json") .unwrap() .parse() .unwrap(); let _m = mock("GET", "/schemas/ids/7?deleted=true") .with_status(200) .with_header("content-...
rust_cleaned_test_functions.jsonl/42268
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 891 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49843, 9993, 368, 341, 286, 1077, 1102, 3142, 25, 923, 284, 1349, 2346, 3904, 445, 23841, 61142, 82907, 43430, 4323, 1138, 310, 659, 15454, 741, 310, 659, 6400, 741, 310, 659, 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, 1...
2
#[test] fn test_comb_filter_inplace() { let mut output = [0_f32; SIZE]; output .iter_mut() .enumerate() .for_each(|(i, x)| *x = i as f32); let offset = SIZE - N; comb_filter_inplace(&mut output, offset, T0, T1, N, G0, G1, 0, 0, OVERLAP); ...
rust_cleaned_test_functions.jsonl/120646
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34454, 8727, 1243, 2007, 368, 341, 286, 1077, 5206, 2550, 284, 508, 15, 761, 18, 17, 26, 25341, 935, 286, 2550, 198, 310, 659, 2015, 29523, 741, 310, 659, 76569, 741, 310, 659, 1958, 32046, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_clean_old_with_normal_account() { solana_logger::setup(); let accounts = AccountsDB::new(Vec::new()); let pubkey = Pubkey::new_rand(); let account = Account::new(1, 0, &Account::default().owner); //store an account accounts.store(0, &[(&pubkey, &a...
rust_cleaned_test_functions.jsonl/33675
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 370 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19573, 21108, 6615, 13973, 13500, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 9618, 284, 40655, 3506, 486, 931, 49923, 486, 931, 1423, 286, 1077, 95116, 284, 22611, 792, 486, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deserialization_from_string() { let s = "{\"file\":\"testdata/testfile-zero.bin\",\"chunks\":[],\"digest\":[-8.252427688355256,null,null]}"; let doc: Document = serde_json::from_slice(s); assert_eq!("testdata/testfile-zero.bin", doc.file); assert!(approx_eq(f64, -...
rust_cleaned_test_functions.jsonl/39895
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 50563, 5673, 3904, 368, 341, 286, 1077, 274, 284, 54734, 1192, 23488, 92425, 12697, 1192, 36929, 29394, 34333, 84263, 59, 8899, 1125, 2105, 36339, 11693, 7609, 23, 13, 17, 20, 17, 19, 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_get_vote_accounts() { let rpc = RpcHandler::start(); let mut bank = rpc.working_bank(); let RpcHandler { ref io, ref meta, ref mint_keypair, ref leader_vote_keypair, .. } = rpc; assert_eq!(bank.v...
rust_cleaned_test_functions.jsonl/6334
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4001 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 54360, 55665, 368, 341, 286, 1077, 35596, 284, 79961, 3050, 486, 2468, 543, 286, 1077, 5206, 6073, 284, 35596, 18282, 287, 35733, 543, 286, 1077, 79961, 3050, 341, 310, 2053, 6399, 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...
7
#[test] fn test_with_struct() { #[derive(Serialize, Deserialize, MartianStruct)] struct ChemistryDef { name: String, barcode_read: String, barcode_length: u8, } #[derive(Serialize, Deserialize, MartianStruct)] struct Config { sample_def: Vec<SampleDef>, ...
rust_cleaned_test_functions.jsonl/104057
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 695 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 15126, 368, 341, 262, 11506, 27098, 3759, 9050, 11, 48440, 11, 81028, 9422, 5563, 262, 2036, 41746, 2620, 341, 286, 829, 25, 923, 345, 286, 49407, 6443, 25, 923, 345, 286, 49407, 5118, 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_stake_get_minimum_delegation() { let stake_address = Pubkey::new_unique(); let stake_account = create_default_stake_account(); let instruction_data = serialize(&StakeInstruction::GetMinimumDelegation).unwrap(); let transaction_accounts = vec![(stake_address, stake...
rust_cleaned_test_functions.jsonl/31671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 629 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 726, 3062, 84855, 2259, 87566, 368, 341, 286, 1077, 18279, 6744, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 18279, 13500, 284, 1855, 9993, 1261, 726, 13500, 543, 286, 1077, 7600, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_scan() { let storage = TestStorageBuilder::new(DummyLockManager {}, false) .build() .unwrap(); let (tx, rx) = channel(); storage .sched_txn_command( commands::Prewrite::with_defaults( vec![ ...
rust_cleaned_test_functions.jsonl/2074
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 5802 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28857, 368, 341, 286, 1077, 5819, 284, 3393, 5793, 3297, 486, 931, 5432, 8574, 11989, 2043, 16452, 895, 340, 310, 659, 5834, 741, 310, 659, 15454, 543, 286, 1077, 320, 3998, 11, 19111, 8, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid_rate() -> Result<(), Box<dyn std::error::Error>> { Command::new(get_os_binary_loc()) .arg("-r") .arg("100-1000") .assert() .failure() .stderr(predicate::str::contains("invalid digit")); Ok(()) }
rust_cleaned_test_functions.jsonl/65684
{ "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, 31433, 9246, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 262, 7348, 486, 931, 5433, 29387, 31761, 13400, 2398, 286, 659, 858, 13645, 81, 1138, 286, 659, 858, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_single() { struct Foo; impl Debug for Foo { fn fmt(&self, fmt: &mut Formatter) { fmt.debug_list().entry(&true).finish() } } assert_eq!("[true]", debug3::pprint(Foo)); }
rust_cleaned_test_functions.jsonl/124745
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 368, 341, 286, 2036, 33428, 401, 286, 11605, 11091, 369, 33428, 341, 310, 5168, 8879, 2099, 721, 11, 8879, 25, 609, 6984, 81387, 8, 341, 394, 8879, 7883, 2019, 1005, 4085, 2099, 1866, 568...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_with_bls12() { fn naive_multiexp<G: PrimeCurve>( bases: Arc<Vec<<G as PrimeCurve>::Affine>>, exponents: Arc<Vec<G::Scalar>>, ) -> G { assert_eq!(bases.len(), exponents.len()); let mut acc = G::identity(); for (base, exp) in bases.iter().zip(expon...
rust_cleaned_test_functions.jsonl/103866
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 613 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 880, 4730, 16, 17, 368, 341, 262, 5168, 49665, 25133, 4580, 59727, 25, 12518, 31325, 17055, 286, 23092, 25, 19689, 50439, 2442, 38, 438, 12518, 31325, 6831, 25841, 482, 61340, 286, 505, 2700...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_stake_delegate() { let mut clock = Clock { epoch: 1, ..Clock::default() }; let vote_pubkey = solana_sdk::pubkey::new_rand(); let vote_pubkey_2 = solana_sdk::pubkey::new_rand(); let mut vote_state = VoteState::default(); fo...
rust_cleaned_test_functions.jsonl/104269
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 726, 55312, 368, 341, 286, 1077, 5206, 8866, 284, 26142, 341, 310, 16342, 25, 220, 16, 345, 310, 5241, 26104, 486, 2258, 741, 286, 3634, 286, 1077, 6910, 34014, 792, 284, 2048, 3362, 61783...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fallback_mod() { let p: NoiseParams = "Noise_XXfallback_25519_AESGCM_SHA256".parse().unwrap(); assert!(p.handshake.modifiers.list[0] == HandshakeModifier::Fallback); }
rust_cleaned_test_functions.jsonl/14548
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 3420, 7480, 368, 341, 286, 1077, 281, 25, 50523, 4870, 284, 330, 61819, 62, 6148, 73311, 62, 17, 20, 20, 16, 24, 69381, 38, 9985, 38096, 17, 20, 21, 3263, 6400, 1005, 15454, 543, 286, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_envelope_add_item() { let event_id = EventId::new(); let mut envelope = Envelope::from_request(Some(event_id), request_meta()); envelope.add_item(Item::new(ItemType::Attachment)); assert_eq!(envelope.len(), 1); assert!(!envelope.is_empty()); let ...
rust_cleaned_test_functions.jsonl/103606
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6205, 18853, 2891, 5634, 368, 341, 286, 1077, 1538, 842, 284, 3665, 764, 486, 931, 543, 286, 1077, 5206, 34398, 284, 2925, 18853, 486, 1499, 7893, 65405, 6235, 842, 701, 1681, 13381, 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...
1
#[test] fn test_from_slice() { let doc = DOC.as_bytes(); let desered = from_slice(&doc).expect("Couldn't deserialize Data"); assert_eq!( desered, Data { base: "https://example.com".into(), client_id: "adbc01234".into(), ...
rust_cleaned_test_functions.jsonl/39218
{ "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, 5673, 26488, 368, 341, 286, 1077, 4629, 284, 60355, 5357, 12524, 543, 286, 1077, 939, 12336, 284, 504, 26488, 2099, 5236, 568, 17119, 445, 38987, 944, 35240, 2885, 797, 286, 2060, 10714, 33673, 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_split_messages_packet_size() { // Test that if a value is smaller than payload size but too large to be wrapped in a vec // that it is still dropped let mut value = CrdsValue::new_unsigned(CrdsData::SnapshotHashes(SnapshotHash { from: Pubkey::default(), ...
rust_cleaned_test_functions.jsonl/11667
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 455 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 23428, 21078, 2368, 368, 341, 286, 442, 3393, 429, 421, 264, 897, 374, 9155, 1091, 7729, 1379, 714, 2238, 3460, 311, 387, 19472, 304, 264, 7486, 198, 286, 442, 429, 432, 374, 2058, 12226,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_custom_key_type_for_properties() { let result = hierarchy! { root: { Field::Bar => 2u64, baz: { Field::Foo => "baz", } } }; assert_eq!( result, DiagnosticsH...
rust_cleaned_test_functions.jsonl/45835
{ "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, 15875, 3097, 1819, 5478, 25158, 368, 341, 286, 1077, 1102, 284, 28922, 0, 341, 310, 3704, 25, 341, 394, 8601, 486, 3428, 589, 220, 17, 84, 21, 19, 345, 394, 50247, 25, 341, 503, 8601, 486, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_block_production() { let bob_pubkey = solana_sdk::pubkey::new_rand(); let roots = vec![0, 1, 3, 4, 8]; let RpcHandler { io, meta, block_commitment_cache, leader_pubkey, .. } = start_rpc_handler_with_t...
rust_cleaned_test_functions.jsonl/3054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1452 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 7113, 91980, 368, 341, 286, 1077, 35192, 34014, 792, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 19703, 284, 7486, 20703, 15, 11, 220, 16, 11, 220, 18, 11, 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_coeff_pos() { let mut i = 0; let mut j = 0; for n in 0..100 { assert_eq!(Some(n), coeff_pos(i, j)); if i >= j { j += 1; i = 0; } else { i += 1; } } let too_larg...
rust_cleaned_test_functions.jsonl/49473
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 266 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31990, 6479, 368, 341, 286, 1077, 5206, 600, 284, 220, 15, 280, 286, 1077, 5206, 502, 284, 220, 15, 280, 286, 369, 308, 304, 220, 15, 496, 16, 15, 15, 341, 310, 2060, 10714, 10297, 8373, 144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_get_config_path() { let test_data = PathBuf::from(TEST_BUNDLE_PATH).join(CONFIG_FILE_NAME); assert_eq!(get_config_path(TEST_BUNDLE_PATH), test_data); }
rust_cleaned_test_functions.jsonl/51226
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 5332, 2638, 368, 341, 286, 1077, 1273, 1769, 284, 7933, 15064, 486, 1499, 50320, 1668, 71489, 7944, 568, 5987, 38958, 8087, 4708, 317, 286, 2060, 10714, 10297, 455, 5332, 2638, 50320, 1668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_eval_task_simple() { let mut env = Env::new_with_std(); let src = concat!( "in: ${ std.glob(\"**/*.rs\")}\n", "out: test\n", "command: cargo {{ std.join(self.in, \" \") }}\n" ); println!("{}", src); let src = yaml_rust::...
rust_cleaned_test_functions.jsonl/113313
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 12184, 30015, 368, 341, 286, 1077, 5206, 6105, 284, 37039, 486, 931, 6615, 15656, 543, 286, 1077, 2286, 284, 33720, 33673, 310, 330, 258, 25, 3570, 1460, 44371, 36014, 334, 23540, 5428, 627...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_series_partialeq() { let s1 = Series::new("a", &[1_i32, 2_i32, 3_i32]); let s1_bis = Series::new("b", &[1_i32, 2_i32, 3_i32]); let s1_ter = Series::new("a", &[1.0_f64, 2.0_f64, 3.0_f64]); let s2 = Series::new("", &[Some(1), Some(0)]); let s3 = Series::new(...
rust_cleaned_test_functions.jsonl/22781
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 340 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35015, 10495, 19893, 80, 368, 341, 286, 1077, 274, 16, 284, 11131, 486, 931, 445, 64, 497, 44590, 16, 5318, 18, 17, 11, 220, 17, 5318, 18, 17, 11, 220, 18, 5318, 18, 17, 2558, 286, 1077, 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_hover_macro_generated_struct_fn_doc_comment() { cov_mark::check!(hover_macro_generated_struct_fn_doc_comment); check( r#" macro_rules! bar { () => { struct Bar; impl Bar { /// Do the foo fn foo(&self) {} } } } ...
rust_cleaned_test_functions.jsonl/66661
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 416 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 58810, 67313, 15126, 15246, 18869, 17638, 368, 341, 286, 21836, 18924, 486, 2028, 10297, 17583, 58810, 67313, 15126, 15246, 18869, 17638, 626, 286, 1779, 1006, 310, 435, 2, 698, 32606, 21407, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unified_enabled() { // Allow invalid storage and coprocessor config when yatp is used. let unified = UnifiedReadPoolConfig::default(); assert!(unified.validate().is_ok()); let storage = StorageReadPoolConfig { high_concurrency: 0, ..Default...
rust_cleaned_test_functions.jsonl/30860
{ "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, 4907, 1870, 18220, 368, 341, 286, 442, 26530, 8318, 5819, 323, 6162, 40848, 269, 2193, 979, 131454, 79, 374, 1483, 624, 286, 1077, 42690, 284, 72434, 4418, 10551, 2648, 486, 2258, 543, 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_union_bv1_longer() { let mut bv1: BitVec<usize> = BitVec::new(); let mut bv2: BitVec<usize> = BitVec::new(); bv1.set(8, true); bv2.set(0, true); bv1.union(&bv2); assert!(bv1.get(0)); assert!(bv1.get(8)); }
rust_cleaned_test_functions.jsonl/198
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 177 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51621, 880, 85, 16, 17799, 261, 368, 341, 286, 1077, 5206, 56937, 16, 25, 6495, 10050, 90244, 29, 284, 6495, 10050, 486, 931, 543, 286, 1077, 5206, 56937, 17, 25, 6495, 10050, 90244, 29, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_arch_sparc() { test_arch_mode_endian_insns( &mut Capstone::new() .sparc() .mode(sparc::ArchMode::Default) .build() .unwrap(), Arch::SPARC, Mode::Default, None, &[], &[ ("cmp", b"\x80\x...
rust_cleaned_test_functions.jsonl/127438
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1001 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34330, 643, 1732, 66, 368, 341, 262, 1273, 34330, 7302, 87193, 34386, 4412, 1006, 286, 609, 6984, 8012, 10812, 486, 931, 741, 310, 659, 77884, 66, 741, 310, 659, 8516, 1141, 1732, 66, 486, 18727...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rng_seeds_are_unique() { assert_ne!(SEED_10_100, SEED_100_1000); assert_ne!(SEED_100_1000, SEED_1000_PLUS); assert_ne!(SEED_1000_PLUS, SEED_10_100); }
rust_cleaned_test_functions.jsonl/17789
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66849, 3453, 6767, 56855, 21218, 368, 341, 286, 2060, 13925, 10297, 925, 1479, 62, 16, 15, 62, 16, 15, 15, 11, 5052, 1479, 62, 16, 15, 15, 62, 16, 15, 15, 15, 317, 286, 2060, 13925, 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_inject_types() { let b = ast::BaseNode::default(); let pkg = Package { loc: b.location.clone(), package: "main".to_string(), files: vec![File { loc: b.location.clone(), package: None, imports: Vec...
rust_cleaned_test_functions.jsonl/100922
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3694 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 583, 9763, 368, 341, 286, 1077, 293, 284, 11763, 486, 3978, 1955, 486, 2258, 543, 286, 1077, 24793, 284, 16906, 341, 310, 1329, 25, 293, 8219, 15997, 3148, 310, 6328, 25, 330, 3817, 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...
2
#[test] fn test_refracted_color_max_depth() { let mut world = World::default(); let s1 = Sphere::new( Matrix::identity(4), Material::new( Some(Color::new(0.8, 1.0, 0.6)), None, 0.1, 0.7, 0.2, 200.0, 0.0, 1.0, 1.5 ...
rust_cleaned_test_functions.jsonl/45912
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 498 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7793, 81, 22167, 6714, 6345, 19061, 368, 341, 286, 1077, 5206, 1879, 284, 4337, 486, 2258, 1428, 286, 1077, 274, 16, 284, 54499, 486, 931, 1006, 310, 11631, 486, 16912, 7, 19, 1326, 310, 10230, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_new_from_slice() { let data_array: DFInt64Array = NewDataArray::new_from_slice(&[1, 2]); let mut iter = data_array.into_iter(); // verify NewDataArray::new_from_slice assert_eq!(Some(Some(&1)), iter.next()); assert_eq!(Some(Some(&2)), iter.next()); assert_eq!(None, iter....
rust_cleaned_test_functions.jsonl/102162
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 5673, 26488, 368, 341, 262, 1077, 821, 3858, 25, 43376, 1072, 21, 19, 1857, 284, 1532, 1043, 1857, 486, 931, 5673, 26488, 2099, 58, 16, 11, 220, 17, 2558, 262, 1077, 5206, 5367, 284, 821...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_product_targets() { let mut results = get_target_products(Some(&String::from("core.x64"))); assert_eq!( vec![BuildTarget { arch: String::from("x64"), board: String::from("core") }], results ); results = get_target_products(Some(&String::fr...
rust_cleaned_test_functions.jsonl/28543
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 343 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9840, 41997, 368, 341, 286, 1077, 5206, 3059, 284, 633, 11123, 29622, 65405, 2099, 703, 486, 1499, 445, 2153, 1993, 21, 19, 17621, 286, 2060, 10714, 33673, 310, 7486, 20703, 11066, 6397, 314, 5325...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_binary_representation_compressed_parameter() { let lmots_first = LmotsAlgorithm::LmotsW4; let lmots_second = LmotsAlgorithm::LmotsW8; let lms_first = LmsAlgorithm::LmsH5; let lms_second = LmsAlgorithm::LmsH10; let parameter = [ HssParameter::...
rust_cleaned_test_functions.jsonl/29974
{ "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, 31761, 94263, 2965, 14318, 24899, 368, 341, 286, 1077, 40238, 2412, 12978, 284, 444, 76, 2412, 27847, 486, 43, 76, 2412, 54, 19, 280, 286, 1077, 40238, 2412, 29644, 284, 444, 76, 2412, 27847, 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...
2
#[test] fn test_clear_interrupt() { let code = vec![0x58]; let mut nes = Cpu::new(); let mut memory = new_memory(code); nes.I = 0x1; nes.next(&mut memory).unwrap(); assert_eq!(0, nes.I); }
rust_cleaned_test_functions.jsonl/38713
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21811, 42606, 368, 341, 286, 1077, 2038, 284, 7486, 20703, 15, 87, 20, 23, 935, 286, 1077, 5206, 308, 288, 284, 356, 5584, 486, 931, 543, 286, 1077, 5206, 4938, 284, 501, 19195, 15842, 626, 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_version_overlap_in_level() { let v = make_version().0; for &(level, (k1, k2), want) in &[ (0, ("000".as_bytes(), "003".as_bytes()), false), (0, ("aa0".as_bytes(), "abx".as_bytes()), true), (1, ("012".as_bytes(), "013".as_bytes()), false), ...
rust_cleaned_test_functions.jsonl/32971
{ "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, 9438, 65794, 1243, 8274, 368, 341, 286, 1077, 348, 284, 1281, 9438, 1005, 15, 401, 286, 369, 22796, 3294, 11, 320, 74, 16, 11, 595, 17, 701, 1366, 8, 304, 609, 9640, 310, 320, 15, 11, 3489, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_nesting() { use crate::nesting::{A, B}; let _ = A { a: Some(Box::new(A::default())), repeated_a: Vec::<A>::new(), map_a: BTreeMap::<i32, A>::new(), b: Some(Box::new(B::default())), repeated_b: Vec::<B>::new(), ...
rust_cleaned_test_functions.jsonl/8851
{ "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, 1089, 59855, 368, 341, 286, 990, 17717, 486, 21414, 287, 22964, 32, 11, 425, 2440, 286, 1077, 716, 284, 362, 341, 310, 264, 25, 4329, 67758, 486, 931, 4346, 486, 2258, 73727, 310, 11504, 4306, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_between_unsorted_unsorted() -> Result<(), IndexError> { let mut x: MyVec<usize> = MyVec::new(); for v in vec![7, 1, 9, 11, 2, 3, 1, 5, 7, 11, 1, 6].iter() { let len = x.len(); List::insert(&mut x, len, *v)?; } let mut res = x.delete_between_unsorted(&3, &9)...
rust_cleaned_test_functions.jsonl/24013
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 370 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11353, 48302, 4907, 28298, 4907, 28298, 368, 1464, 5714, 68843, 60203, 29, 341, 262, 1077, 5206, 856, 25, 3017, 10050, 90244, 29, 284, 3017, 10050, 486, 931, 543, 262, 369, 348, 304, 7486, 20703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
#[test] fn test_parse_set_lockup() { let mut keys: Vec<Pubkey> = vec![]; for _ in 0..2 { keys.push(solana_sdk::pubkey::new_rand()); } let unix_timestamp = 1_234_567_890; let epoch = 11; let custodian = solana_sdk::pubkey::new_rand(); let locku...
rust_cleaned_test_functions.jsonl/133041
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1642 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 2602, 9818, 454, 368, 341, 286, 1077, 5206, 6894, 25, 11312, 21604, 392, 792, 29, 284, 7486, 0, 15078, 286, 369, 716, 304, 220, 15, 496, 17, 341, 310, 6894, 2552, 80608, 3362, 61783, 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...
2
#[test] fn test_question_checker() { let path = PathBuf::from(r"./test_questions.txt"); assert_eq!(check_file(path), [1, 2, 2, 5, 5, 5, 6, 7, 6, 8, 8, 4, 4, 5]); }
rust_cleaned_test_functions.jsonl/71241
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28915, 62715, 368, 341, 262, 1077, 1815, 284, 7933, 15064, 486, 1499, 2601, 95092, 1944, 55048, 3909, 797, 1066, 262, 2060, 10714, 10297, 2028, 2458, 5581, 701, 508, 16, 11, 220, 17, 11, 220, 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_find_all_refs_decl_module_on_self_crate_root() { check( r#" //- /lib.rs use self$0; "#, expect![[r#" Module FileId(0) 0..10 FileId(0) 4..8 "#]], ); }
rust_cleaned_test_functions.jsonl/60651
{ "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, 21814, 5705, 60638, 35814, 10750, 4470, 25637, 666, 7698, 12993, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 61463, 608, 2740, 25638, 198, 810, 656, 3, 15, 280, 57676, 345, 310, 1720, 0, 15505,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_content() { let result = convert_json::<(), Json<Value>>(StatusCode::NO_CONTENT.as_u16(), vec![]); println!("{:?}", result); assert!(matches!( result, Ok(JsonResponse::Success(StatusCode::NO_CONTENT, ())) )); }
rust_cleaned_test_functions.jsonl/83263
{ "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, 6536, 7495, 368, 341, 286, 1077, 1102, 284, 5508, 9455, 27638, 1507, 8308, 48325, 25526, 15872, 486, 8996, 25560, 5357, 7300, 16, 21, 1507, 7486, 0, 56703, 286, 13751, 88928, 25, 52652, 1102, 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...
1
#[test] fn test_offset_of() { #[repr(C)] pub struct Student { student_id: u32, weight: u8, age: u8, marks: u32, is_male: bool, } assert_eq!(offset_of!(Student, student_id), 0); assert_eq!(offset_of!(Student, weig...
rust_cleaned_test_functions.jsonl/81004
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 534 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6917, 3575, 368, 341, 286, 11506, 30837, 3025, 5563, 286, 6675, 2036, 11726, 341, 310, 5458, 842, 25, 575, 18, 17, 345, 310, 4680, 25, 575, 23, 345, 310, 4231, 25, 575, 23, 345, 310, 15423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_left_shift() { let cases = vec![ (Datum::I64(123), Datum::I64(2), Datum::I64(492)), (Datum::I64(-123), Datum::I64(-1), Datum::I64(0)), (Datum::I64(123), Datum::I64(0), Datum::I64(123)), (Datum::Null, Datum::I64(1), Datum::Null), ...
rust_cleaned_test_functions.jsonl/16158
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 568 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9579, 22230, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 68036, 486, 40, 21, 19, 7, 16, 17, 18, 701, 68459, 486, 40, 21, 19, 7, 17, 701, 68459, 486, 40, 21, 19, 7, 19, 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...
2
#[test] fn test_tcgetattr_pty() { let _m = crate::PTSNAME_MTX.lock(); let pty = openpty(None, None).expect("openpty failed"); assert!(termios::tcgetattr(pty.slave).is_ok()); close(pty.master).expect("closing the master failed"); close(pty.slave).expect("closing the slave failed"); }
rust_cleaned_test_functions.jsonl/103385
{ "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, 63126, 81732, 62, 1595, 368, 341, 1066, 262, 1077, 716, 76, 284, 17717, 486, 73693, 7535, 1245, 22867, 21003, 1428, 262, 1077, 281, 1881, 284, 1787, 1595, 26717, 11, 2240, 568, 17119, 445, 2508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_resource_block_union_types_are_not_constructable() { let p = Polar::new(); let q = p.new_query(&format!("new {}()", ACTOR_UNION_NAME), false); let msg = match q { Err(error::PolarError { kind: error::ErrorKind::Parse(error::ParseError::Resource...
rust_cleaned_test_functions.jsonl/31752
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 270 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17962, 7113, 51621, 9763, 56855, 7913, 64803, 480, 368, 341, 286, 1077, 281, 284, 55896, 486, 931, 543, 286, 1077, 2804, 284, 281, 4618, 5738, 2099, 2243, 17223, 931, 4687, 50514, 21116, 868, 6735...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_field_table() { let mut table = FieldTable::new(); table.insert(FieldName::with_bytes(b"hello").unwrap(), FieldValue::from_u32(0x12345678u32)); table.insert(FieldName::with_bytes(b"world").unwrap(), FieldValue::from_long_string(LongStr::with_bytes(b"hello").unwrap())); ...
rust_cleaned_test_functions.jsonl/7189
{ "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, 5013, 5237, 368, 341, 286, 1077, 5206, 1965, 284, 8601, 2556, 486, 931, 543, 286, 1965, 7030, 7, 51241, 486, 4197, 12524, 1883, 1, 14990, 1827, 15454, 1507, 8601, 1130, 486, 1499, 7300, 18, 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...
6
#[test] fn test_add_88_extended() { let x = 2; let y = 3; assert_eq!( 99, add_88!( // Expression x * 4, // Identifier y, // Code Block { println!("The values of x a...
rust_cleaned_test_functions.jsonl/105014
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 62, 23, 23, 61678, 368, 314, 715, 286, 1077, 856, 284, 220, 17, 280, 286, 1077, 379, 284, 220, 18, 280, 286, 2060, 10714, 33673, 310, 220, 24, 24, 345, 310, 912, 62, 23, 23, 33673, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_entries_tick() { let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(1000); let bank = Arc::new(Bank::new(&genesis_config)); // ensure bank can process a tick assert_eq!(bank.tick_height(), 0); let tick = next_entry(&genesis_confi...
rust_cleaned_test_functions.jsonl/47532
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 26092, 43612, 368, 341, 286, 1077, 40788, 2648, 1731, 314, 59366, 5332, 11, 5241, 335, 284, 1855, 16322, 13774, 5332, 7, 16, 15, 15, 15, 317, 286, 1077, 6073, 284, 19689, 486, 931, 5349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_string_vec() { let words = vec!["hello", "world"]; let capitalized_words: Vec<String> = capitalize_words(words); assert_eq!(capitalized_words, ["Hello", "World"]); }
rust_cleaned_test_functions.jsonl/4275
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 349, 3904, 13251, 368, 341, 286, 1077, 4244, 284, 7486, 0, 1183, 14990, 497, 330, 14615, 6332, 286, 1077, 97321, 18981, 25, 11312, 3464, 29, 284, 52725, 18981, 36289, 317, 286, 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, 1, 1 ]
1
#[test] fn test_incrementing_int() { let mut int_series = IncrementingSeries { current: 5, increment: 10, }; let mut rng = rand::thread_rng(); assert_eq!(5, int_series.next(&mut rng).into_yielded().unwrap()); assert_eq!(15, int_series.next(&mut rn...
rust_cleaned_test_functions.jsonl/33872
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51482, 287, 4042, 368, 341, 286, 1077, 5206, 526, 35015, 284, 52835, 287, 25544, 341, 310, 1482, 25, 220, 20, 345, 310, 16252, 25, 220, 16, 15, 345, 286, 3634, 286, 1077, 5206, 28422, 284, 103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_negated() { let mut c1 = Clause::new("foo".into()); c1.set_presence(Presence::Prohibited); let mut c2 = Clause::new("bar".into()); c2.set_presence(Presence::Prohibited); let mut query = Query::new(); query.add_clause(c1); query.add_clause(c2); assert!(query.is_...
rust_cleaned_test_functions.jsonl/82063
{ "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, 6892, 28209, 657, 368, 341, 262, 1077, 5206, 272, 16, 284, 55797, 486, 931, 445, 7975, 3263, 18122, 1423, 262, 272, 16, 980, 56403, 5304, 416, 763, 486, 1336, 92517, 317, 262, 1077, 5206, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fail_array_too_big() { let src_data = b"(test) a [1 2 3]"; let mut limits = yass_parser::ParserLimits::unlimited(); limits.max_array_size = 2; let expected_error = yass_parser::ParserError::ArrayTooBig { pos: yass::Pos::new(0, 14) }; assert_eq!(yass_parser::parse(limits, src_...
rust_cleaned_test_functions.jsonl/126511
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22121, 3858, 2346, 78, 36386, 368, 341, 262, 1077, 2286, 1769, 284, 293, 29209, 1944, 8, 264, 508, 16, 220, 17, 220, 18, 59757, 262, 1077, 5206, 13388, 284, 379, 395, 18517, 486, 6570, 94588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scope_start_handles_sub_scopes() { let src = String::from( " fn myfn() { let a = 3; { let b = 4; } print(a); } ", ); let src = core::MaskedSource::new(&src); let raw_src = core::RawSource::new(src.to_string()); let point = raw_src.coords_to_point...
rust_cleaned_test_functions.jsonl/576
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23199, 4906, 68017, 5228, 13171, 18523, 368, 341, 262, 1077, 2286, 284, 923, 486, 1499, 1006, 286, 6228, 8822, 847, 8822, 368, 341, 262, 1077, 264, 284, 220, 18, 280, 262, 341, 414, 1077, 293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_action_msgs() { use example_interfaces::action::Fibonacci; let mut goal = Fibonacci::Goal::default(); goal.order = 5; let gn = WrappedNativeMsg::<_>::from(&goal); let goal2 = Fibonacci::Goal::from_native(&gn); println!("goal2 {:?}", goal2); ...
rust_cleaned_test_functions.jsonl/112961
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 525 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7931, 20777, 368, 341, 286, 990, 3110, 72960, 486, 1311, 486, 37, 579, 39345, 280, 286, 1077, 5206, 5795, 284, 79683, 486, 39992, 486, 2258, 543, 286, 5795, 14041, 284, 220, 20, 280, 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