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_restore() { let l = default_logger(); // magic number let s = new_snapshot(11, 11, vec![1, 2, 3]); let mut sm = new_test_raft(1, vec![1, 2], 10, 1, new_storage(), &l); assert!(sm.restore(s.clone())); assert_eq!(sm.raft_log.last_index(), s.get_metadata().index); asser...
rust_cleaned_test_functions.jsonl/19139
{ "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, 62677, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 442, 10963, 1372, 198, 262, 1077, 274, 284, 501, 53265, 7, 16, 16, 11, 220, 16, 16, 11, 7486, 20703, 16, 11, 220, 17, 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
#[test] fn test_empty() { let input = ParseBlock::from(&[][..]); let expected = PloopBlock::from(&[][..]); let actual = PloopBlock::from(&input); assert_eq!(expected, actual); }
rust_cleaned_test_functions.jsonl/119134
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 368, 341, 286, 1077, 1946, 284, 14775, 4713, 486, 1499, 2099, 63449, 496, 2558, 286, 1077, 3601, 284, 393, 10498, 4713, 486, 1499, 2099, 63449, 496, 2558, 286, 1077, 5042, 284, 393, 10498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_dec() { let source = "-"; let instructions = Parser::parse_instructions(&Parser::parse_string(source)); assert_eq!(instructions, vec![Instruction::DEC(1)]); }
rust_cleaned_test_functions.jsonl/56683
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 13783, 368, 341, 262, 1077, 2530, 284, 88120, 262, 1077, 11221, 284, 21102, 486, 6400, 82427, 2099, 6570, 486, 6400, 3904, 12437, 1106, 262, 2060, 10714, 10297, 62295, 11, 7486, 20703, 16664,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_sort() { let mut rng = thread_rng(); for len in (2..25).chain(500..510) { for &modulus in &[5, 10, 100, 1000] { for _ in 0..10 { let orig: Vec<_> = rng.sample_iter::<i32, _>(&Standard) .map(|x| x % modulus) .tak...
rust_cleaned_test_functions.jsonl/12868
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1435 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 368, 341, 262, 1077, 5206, 28422, 284, 4516, 66849, 1428, 262, 369, 2422, 304, 320, 17, 496, 17, 20, 568, 8819, 7, 20, 15, 15, 496, 20, 16, 15, 8, 341, 286, 369, 609, 2593, 19425, 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...
8
#[test] fn test_quorum() { assert_eq!(equal_configuration(1).quorum_threshold(), 1); assert_eq!(equal_configuration(2).quorum_threshold(), 2); assert_eq!(equal_configuration(3).quorum_threshold(), 3); assert_eq!(equal_configuration(4).quorum_threshold(), 3); assert_eq!(equal_configuration(5)...
rust_cleaned_test_functions.jsonl/115168
{ "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, 11280, 33006, 368, 341, 262, 2060, 10714, 10297, 25795, 35726, 7, 16, 568, 446, 33006, 21858, 1507, 220, 16, 317, 262, 2060, 10714, 10297, 25795, 35726, 7, 17, 568, 446, 33006, 21858, 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, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_i8_bigendian() { let mut storage = vec![0; 1024]; type Field1 = PrimitiveField<i8, BigEndian, 5>; type Field2 = PrimitiveField<i8, BigEndian, 20>; Field1::write(&mut storage, 50); Field2::write(&mut storage, -20); assert_eq!(50, Field1::read(&st...
rust_cleaned_test_functions.jsonl/35718
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 358 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5318, 23, 36386, 408, 1103, 368, 341, 286, 1077, 5206, 5819, 284, 7486, 20703, 15, 26, 220, 16, 15, 17, 19, 4821, 286, 943, 8601, 16, 284, 51460, 1877, 21897, 23, 11, 6164, 43231, 11, 220, 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_multiline_comment() { let text = r#" <!-- multiline comment --> "#; let result = remove_comments(text); assert!(result.trim().is_empty()); }
rust_cleaned_test_functions.jsonl/121691
{ "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, 26290, 26560, 17638, 368, 341, 286, 1077, 1467, 284, 435, 2, 698, 89650, 92760, 198, 6182, 198, 9992, 286, 5869, 280, 286, 1077, 1102, 284, 4057, 30359, 7235, 317, 286, 2060, 10297, 1382, 16419, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_supported_types() { let input = "true,1,2,3,4,-1,-2,-3,-4,1.0,-1.0,foobar"; let output: Test2 = from_str(input, TEST2_PATTERN).unwrap(); assert_eq!(output, Test2 { f_bool: true, f_u8: 1, f_u16: 2, f_u32: 3, f_u6...
rust_cleaned_test_functions.jsonl/133419
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 363 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57885, 9763, 368, 341, 286, 1077, 1946, 284, 330, 1866, 11, 16, 11, 17, 11, 18, 11, 19, 4999, 16, 4999, 17, 4999, 18, 4999, 19, 11, 16, 13, 15, 4999, 16, 13, 15, 11, 50267, 876, 286, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_peer_start_stream_success() { let mut exec = fasync::Executor::new().expect("executor should build"); let (proxy, mut prof_stream) = create_proxy_and_stream::<ProfileMarker>().expect("Profile proxy should be created"); let (cobalt_sender, _) = fake_cobalt_send...
rust_cleaned_test_functions.jsonl/125260
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1544 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45159, 4906, 12673, 18632, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 25255, 486, 931, 1005, 17119, 445, 80787, 1265, 1936, 797, 286, 1077, 320, 22803, 11, 5206, 2778, 12673, 8, 4035, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_decode_aperiodicity() { let fs = 44100_i32; let f0_length = 2_i32; let fft_size = 2048_i32; let mut aperiodicity = vec![vec![0.0; (fft_size/2+1) as usize]; f0_length as usize]; let mut aperiodicity_ptr = aperiodicity...
rust_cleaned_test_functions.jsonl/20838
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 532 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 62, 3191, 3127, 61691, 368, 341, 10217, 8619, 5108, 284, 220, 19, 19, 16, 15, 15, 5318, 18, 17, 280, 10217, 282, 15, 5118, 1698, 284, 220, 17, 5318, 18, 17, 280, 10217, 43700, 2368, 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_loaded_model() { // load the model let modelfile = "tests/data/heart_scale.model"; let model = load_model(&modelfile).unwrap(); // make sure the model is correct assert_eq!(model.get_num_classes(), 2); // check: num_classes assert_eq!(model.get_num_sv(), 91); // check: n...
rust_cleaned_test_functions.jsonl/42834
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 575 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49205, 5047, 368, 341, 262, 442, 2795, 279, 1614, 198, 262, 1077, 1463, 490, 457, 284, 330, 23841, 13167, 14, 17735, 16727, 3192, 876, 262, 1077, 1614, 284, 2795, 5047, 2099, 2593, 490, 457, 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_wrap_return_type_handles_type_aliases() { let before = r#" //- /main.rs use std::{string::String, result::Result::{self, Ok, Err}}; type MyResult<T> = Result<T, String>; fn div(x: i32, y: i32) -> MyResult<i32> { if y == 0 ...
rust_cleaned_test_functions.jsonl/71649
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 644 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38550, 12511, 1819, 68017, 1819, 90233, 368, 341, 286, 1077, 1573, 284, 435, 2, 698, 310, 78406, 608, 3817, 25638, 198, 310, 990, 1460, 22964, 917, 486, 703, 11, 1102, 486, 2077, 22964, 721, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_live() { { let x = Cc::new(5); let y = x.downgrade(); assert!(y.upgrade().is_some()); } collect_cycles(); }
rust_cleaned_test_functions.jsonl/110848
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55203, 368, 341, 286, 341, 310, 1077, 856, 284, 356, 66, 486, 931, 7, 20, 317, 310, 1077, 379, 284, 856, 18148, 6937, 543, 310, 2060, 10297, 88, 17652, 6937, 1005, 285, 61855, 1423, 286, 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
#[test] fn test_from_config_extension() { let yaml_string = "sorting:\n column: extension"; let yaml = YamlLoader::load_from_str(yaml_string).unwrap()[0].clone(); assert_eq!( Some(SortColumn::Extension), SortColumn::from_config(&Config::with_yaml(yaml)) )...
rust_cleaned_test_functions.jsonl/54299
{ "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, 5673, 5332, 31035, 368, 341, 286, 1077, 32246, 3904, 284, 330, 67039, 7190, 77, 220, 3250, 25, 8894, 876, 286, 1077, 32246, 284, 809, 9467, 9181, 486, 1078, 5673, 2895, 7021, 9467, 3904, 568, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_metadata_serialization_minimal() { let json_response = "{\"redirect_uris\": [\"https://example.com/redirect-1\"]}"; let client_metadata: CoreClientMetadata = serde_json::from_str(json_response).unwrap(); assert_eq!( *client_metadata.redirect_uris(), ...
rust_cleaned_test_functions.jsonl/69416
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1027 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22220, 25602, 2022, 7260, 2861, 368, 341, 286, 1077, 2951, 9655, 284, 54734, 8117, 64879, 285, 11693, 508, 2105, 2428, 1110, 8687, 905, 14, 8117, 12, 16, 75104, 71612, 286, 1077, 2943, 22220, 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_all_settings() { let (_td, cd, cp) = test_prolog(); let conf = load_config!( cp, "[cache]\n\ enabled = true\n\ directory = {cache_dir}\n\ worker-event-queue-size = '16'\n\ baseline-compression-level = 3\n\ optimized-compression...
rust_cleaned_test_functions.jsonl/48294
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1382 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 10853, 368, 341, 262, 1077, 5453, 1296, 11, 15307, 11, 12490, 8, 284, 1273, 2540, 839, 543, 262, 1077, 2335, 284, 2795, 5332, 33673, 286, 12490, 345, 286, 10545, 9360, 17960, 77, 5661, 260...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_named_file_allowed_method() { let req = TestRequest::default().method(Method::GET).to_http_request(); let file = NamedFile::open("Cargo.toml").unwrap(); let resp = file.respond_to(&req).unwrap(); assert_eq!(resp.status(), StatusCode::OK); }
rust_cleaned_test_functions.jsonl/35500
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71834, 2458, 42155, 9032, 368, 341, 286, 1077, 4232, 284, 3393, 1900, 486, 2258, 1005, 4393, 35419, 486, 3806, 568, 983, 25888, 7893, 543, 286, 1077, 1034, 284, 40459, 1703, 486, 2508, 445, 98228,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_guild_commands() { let route = Route::GetGuildCommands { application_id: APPLICATION_ID, guild_id: GUILD_ID, }; assert_eq!( route.to_string(), format!( "applications/{application_id}/guilds/{guild_id}/com...
rust_cleaned_test_functions.jsonl/119852
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 256 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 1889, 1498, 44151, 368, 341, 286, 1077, 6021, 284, 9572, 486, 1949, 72574, 30479, 341, 310, 3766, 842, 25, 59237, 3450, 345, 310, 26411, 842, 25, 479, 18023, 3450, 345, 286, 2605, 286, 206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rgba() { assert_eq!( parse_rgba("rgba(20,30,100,0.1)").unwrap(), Color::from(20, 30, 100, 25) ); assert_eq!( parse_rgba("rgba(120,255,0,0.5)").unwrap(), Color::from(120, 255, 0, 127) ); }
rust_cleaned_test_functions.jsonl/100525
{ "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, 21039, 95229, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 95229, 445, 20400, 7, 17, 15, 11, 18, 15, 11, 16, 15, 15, 11, 15, 13, 16, 63554, 15454, 3148, 286, 3478, 486, 1499, 7, 17, 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...
1
#[test] fn test_resolve() { let cases = vec![ vec![Event::Lock(1, Key::from_raw(b"a")), Event::Resolve(2, 1)], vec![ Event::Lock(1, Key::from_raw(b"a")), Event::Unlock(Key::from_raw(b"a")), Event::Resolve(2, 2), ], ...
rust_cleaned_test_functions.jsonl/2899
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1591 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77291, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 7486, 20703, 1556, 486, 11989, 7, 16, 11, 5309, 486, 1499, 16067, 1883, 56693, 35674, 3665, 486, 56808, 7, 17, 11, 220, 16, 30749, 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...
6
#[test] fn test_action_return_associated_types() { let mut callbacks = associated_types_lib::TestParseCallbacks; assert_eq!( associated_types::TermParser::new().parse(&mut callbacks, "(((((42)))))"), Ok(associated_types_lib::TestTerm( associated_types_lib::TestNum(42) ...
rust_cleaned_test_functions.jsonl/27437
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7931, 12511, 58665, 657, 9763, 368, 341, 262, 1077, 5206, 26679, 284, 5815, 9763, 16142, 486, 2271, 14463, 44461, 280, 262, 2060, 10714, 33673, 286, 5815, 9763, 486, 17249, 6570, 486, 931, 1005, 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_force_leader_on_hibernated_leader() { let mut cluster = new_node_cluster(0, 5); cluster.pd_client.disable_default_operator(); cluster.run(); cluster.must_put(b"k1", b"v1"); let region = cluster.get_region(b"k1"); cluster.must_split(&region, b"k9"); let region = clus...
rust_cleaned_test_functions.jsonl/6004
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 662 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40739, 79991, 4470, 1523, 17660, 657, 79991, 368, 341, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 220, 20, 317, 262, 10652, 556, 67, 8179, 42628, 9993, 40594, 1428, 262, 10652, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_word_ranges_many_words() { assert_eq!( find_word_ranges(b"fn find_words(text: &[u8])"), vec![0..2, 3..13, 14..18, 22..24] ); }
rust_cleaned_test_functions.jsonl/89248
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 13533, 58748, 22101, 18981, 368, 341, 286, 2060, 10714, 33673, 310, 1477, 13533, 58748, 1883, 1, 8822, 1477, 18981, 7235, 25, 44590, 84, 23, 2467, 4461, 310, 7486, 20703, 15, 496, 17, 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_lagging_upstream_long_poll() { let mut env = SynchronizerEnv::new(4); env.start_next_synchronizer( SynchronizerEnv::default_handler(), RoleType::Validator, Waypoint::default(), true, None, ); env.setup_next_synchronizer( Synchronize...
rust_cleaned_test_functions.jsonl/32155
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1899 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 351, 3173, 8237, 4027, 17799, 40002, 368, 341, 262, 1077, 5206, 6105, 284, 328, 14113, 3135, 14359, 486, 931, 7, 19, 317, 262, 6105, 4962, 11257, 643, 14113, 3135, 1006, 286, 328, 14113, 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_convert_from_big_decimal() { let big_decimal: BigDecimal = BigDecimal::new((-24601).into(), 3); let actual: Decimal = big_decimal.into(); let expected = Decimal::new(-24601, -3); assert_eq!(actual, expected); }
rust_cleaned_test_functions.jsonl/41981
{ "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, 34910, 5673, 36386, 74429, 368, 341, 286, 1077, 2409, 74429, 25, 20618, 284, 20618, 486, 931, 54934, 17, 19, 21, 15, 16, 568, 18122, 1507, 220, 18, 317, 286, 1077, 5042, 25, 26728, 284, 2409, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_keyword_expr() { use parser::expression; assert_eq!( expression("__func__", &mut Env::new()), Ok(ident("__func__")) ); assert_eq!( expression("__FUNCTION__", &mut Env::new()), Ok(ident("__FUNCTION__")) ); assert_eq!( expression("...
rust_cleaned_test_functions.jsonl/107581
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45824, 21915, 368, 341, 262, 990, 6729, 486, 28099, 401, 262, 2060, 10714, 33673, 286, 7493, 58406, 2830, 563, 497, 609, 6984, 37039, 486, 931, 14702, 286, 7622, 95270, 58406, 2830, 563, 5455, 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_repeated_prewrite_non_pessimistic_lock() { let engine = TestEngineBuilder::new().build().unwrap(); let cm = ConcurrencyManager::new(1.into()); let mut statistics = Statistics::default(); let cm = &cm; let mut prewrite_with_retry_flag = |key: &...
rust_cleaned_test_functions.jsonl/31433
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2061 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 41954, 620, 52473, 21637, 620, 66733, 4532, 9818, 368, 341, 286, 1077, 4712, 284, 3393, 4571, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 9961, 284, 1200, 15973, 2043, 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_vm_memory_init() { let mut kvm_context = KvmContext::new().unwrap(); let mut vm = Vm::new(kvm_context.fd()).expect("Cannot create new vm"); // Create valid memory region and test that the initialization is successful. let gm = GuestMemory::new(&[(GuestAddress(0),...
rust_cleaned_test_functions.jsonl/1914
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39008, 19195, 6137, 368, 341, 286, 1077, 5206, 94748, 8467, 284, 730, 7338, 1972, 486, 931, 1005, 15454, 543, 286, 1077, 5206, 10995, 284, 647, 76, 486, 931, 5969, 7338, 8467, 58339, 6011, 17119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_check() { let mut bf: BloomFilter = BloomFilter::new(100, 0.05); for i in 1..100 { bf.insert(&i.to_string()); } for j in 1..100 { assert!(bf.check(&j.to_string())); } let mut false_positives: u64 = 0; for k in 101..2...
rust_cleaned_test_functions.jsonl/89168
{ "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, 7200, 368, 341, 286, 1077, 5206, 39093, 25, 24503, 5632, 284, 24503, 5632, 486, 931, 7, 16, 15, 15, 11, 220, 15, 13, 15, 20, 317, 286, 369, 600, 304, 220, 16, 496, 16, 15, 15, 341, 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...
5
#[test] fn test_parse_pointer_encoding_bad_encoding() { use crate::endianity::NativeEndian; let expected = constants::DwEhPe((constants::DW_EH_PE_sdata8.0 + 1) | constants::DW_EH_PE_pcrel.0); let input = [expected.0, 1, 2, 3, 4]; let input = &mut EndianSlice::new(&inp...
rust_cleaned_test_functions.jsonl/9401
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 227 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 21425, 37613, 34199, 37613, 368, 341, 286, 990, 17717, 486, 408, 1103, 487, 486, 20800, 43231, 280, 286, 1077, 3601, 4035, 310, 18021, 486, 35, 86, 36, 71, 10197, 1188, 15763, 486, 54219, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_seq_index_trait_range_panic_start() { Python::with_gil(|py| { let v: Vec<i32> = vec![1, 1, 2]; let ob = v.to_object(py); let seq = ob.cast_as::<PySequence>(py).unwrap(); seq[5..10].extract::<Vec<i32>>().unwrap(); }) }
rust_cleaned_test_functions.jsonl/70310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14486, 3560, 78491, 9698, 620, 31270, 4906, 368, 341, 286, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 310, 1077, 348, 25, 11312, 21897, 18, 17, 29, 284, 7486, 20703, 16, 11, 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...
1
#[test] fn test_ubx_packet_send() { let src_code = quote! { #[ubx_packet_send] #[ubx(class = 1, id = 2, fixed_payload_len = 9, flags = "default_for_builder")] #[doc = "Some comment"] struct Test { itow: u32, #[doc = "this is lat"] #[ubx(map...
rust_cleaned_test_functions.jsonl/16494
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2990 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66794, 87, 21078, 13565, 368, 341, 262, 1077, 2286, 4136, 284, 12641, 0, 341, 286, 11506, 392, 87, 21078, 13565, 921, 286, 11506, 392, 87, 21956, 284, 220, 16, 11, 877, 284, 220, 17, 11, 8356,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_detect_script() { assert_eq!(detect_script("1234567890-,;!"), None); // One script assert_eq!(detect_script("Hello!"), Some(Script::Latin)); assert_eq!( detect_script("Привет всем!"), Some(Script::Cyrillic) ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/123595
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1051 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56457, 14660, 368, 341, 286, 2060, 10714, 10297, 61243, 14660, 445, 16, 17, 18, 19, 20, 21, 22, 23, 24, 15, 36519, 98473, 3975, 2240, 626, 286, 442, 3776, 5316, 198, 286, 2060, 10714, 10297, 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_try_from_patch_machine_config() { let (mut sender, receiver) = UnixStream::pair().unwrap(); let mut connection = HttpConnection::new(receiver); let body = "{ \ \"vcpu_count\": 0, \ \"mem_size_mib\": 0, \ \"ht_enabled\": true \ }...
rust_cleaned_test_functions.jsonl/106592
{ "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, 53283, 5673, 39643, 38695, 5332, 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, 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_exhaust_retries_arp_request() { // we give up and don't install another retry timer. let mut ctx = DummyContext::default(); lookup(&mut ctx, (), TEST_LOCAL_MAC, TEST_REMOTE_IPV4); // already sent one request during the call to `lookup`. ...
rust_cleaned_test_functions.jsonl/16994
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1149 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2702, 15074, 1288, 4543, 62, 7876, 7893, 368, 341, 1789, 286, 442, 582, 2968, 705, 323, 1513, 944, 4582, 2441, 22683, 9021, 382, 286, 1077, 5206, 5635, 284, 50567, 1972, 486, 2258, 1428, 286, 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_subtract() { assert_eq!( parse("- 3 days").unwrap().1, PeriodOp::Subtract(Period::Day(3)) ); assert_eq!( parse(" - 3 days").unwrap().1, PeriodOp::Subtract(Period::Day(3)) ); }
rust_cleaned_test_functions.jsonl/120254
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 171 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 2144, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 13645, 220, 18, 2849, 1827, 15454, 1005, 16, 345, 310, 25492, 7125, 486, 3136, 2144, 7, 23750, 486, 10159, 7, 18, 1171, 286, 3475, 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_hashmap_from_unit() { assert_de_tokens_error::<HashMap<isize, isize>>( &[Token::Unit], "invalid type: unit value, expected a map", ); }
rust_cleaned_test_functions.jsonl/129542
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8950, 2186, 5673, 14832, 368, 341, 262, 2060, 2259, 28838, 4096, 27638, 18497, 27, 285, 551, 11, 91373, 97238, 286, 44590, 3323, 486, 4562, 1259, 286, 330, 11808, 943, 25, 4982, 897, 11, 3601, 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
#[test] fn test_dirs_in_deep() { let gitignore = get_gitignore(); let m = |path: &str, is_dir: bool| { gitignore.matched_path_or_any_parents(Path::new(path), is_dir) }; assert!(m("ROOT/parent_dir/dir_deep_00", true).is_ignore()); assert!(m("ROOT/parent_dir/dir_deep_00/file", fa...
rust_cleaned_test_functions.jsonl/117512
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2327 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44869, 1243, 87044, 368, 341, 262, 1077, 16345, 13130, 284, 633, 68801, 13130, 543, 262, 1077, 296, 284, 760, 2343, 25, 609, 495, 11, 374, 4334, 25, 1807, 91, 341, 286, 16345, 13130, 11072, 291,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cli_parse_deploy() { let test_commands = app("test", "desc", "version"); let default_keypair = Keypair::new(); let keypair_file = make_tmp_path("keypair_file"); write_keypair_file(&default_keypair, &keypair_file).unwrap(); let default_signer = DefaultSign...
rust_cleaned_test_functions.jsonl/22243
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4650 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47147, 21039, 91890, 368, 341, 286, 1077, 1273, 44151, 284, 906, 445, 1944, 497, 330, 8614, 497, 330, 4366, 3071, 286, 1077, 1638, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_see() { let mut game = Game::new(); game.create_piece(0, 5, 0); game.create_piece(1, 5, 2); game.create_piece(1, 0, 55); game.create_piece(0, 3, 46); game.create_piece(0, 0, 37); game.set_moves(); assert!( (crate::see( ...
rust_cleaned_test_functions.jsonl/120653
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 382 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3453, 68, 368, 341, 286, 1077, 5206, 1809, 284, 4050, 486, 931, 543, 286, 1809, 2520, 48470, 7, 15, 11, 220, 20, 11, 220, 15, 317, 286, 1809, 2520, 48470, 7, 16, 11, 220, 20, 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_get_channel_webhooks() { let route = Route::GetChannelWebhooks { channel_id: CHANNEL_ID, }; assert_eq!( route.to_string(), format!("channels/{channel_id}/webhooks", channel_id = CHANNEL_ID) ); }
rust_cleaned_test_functions.jsonl/119877
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 156 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 14571, 25960, 38560, 368, 341, 286, 1077, 6021, 284, 9572, 486, 1949, 9629, 5981, 38560, 341, 310, 5496, 842, 25, 58756, 3450, 345, 286, 2605, 286, 2060, 10714, 33673, 310, 6021, 2389, 3904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_store_instruction() { let mut instruction = Instruction::store(variable("x").into(), variable("y").into()).unwrap(); let mut versioning = VariableVersioning::new(); versioning.start_new_scope(); versioning.new_version(&variable("x...
rust_cleaned_test_functions.jsonl/13496
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 400 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 77, 6469, 3575, 14809, 54923, 368, 341, 1789, 286, 1077, 5206, 7600, 4035, 310, 29051, 486, 4314, 45029, 445, 87, 1827, 18122, 1507, 3890, 445, 88, 1827, 18122, 6011, 15454, 1428, 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_schema_type_thrift_conversion() { let message_type = " message conversions { REQUIRED INT64 id; OPTIONAL group int_array_Array (LIST) { REPEATED group list { OPTIONAL group element (LIST) { REPEATED group list { OPTIONAL INT32 e...
rust_cleaned_test_functions.jsonl/16692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 872 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25371, 1819, 5854, 41380, 64132, 368, 341, 286, 1077, 1943, 1819, 284, 6228, 262, 1943, 48722, 341, 414, 66577, 9221, 21, 19, 877, 280, 414, 76232, 1874, 526, 3858, 47229, 320, 22852, 8, 341, 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_float_32_unpack() { // Values were printed out from what stb_vorbis // calculated for this function from a test file. assert_eq!(float32_unpack(1611661312), 1.000000); assert_eq!(float32_unpack(1616117760), 5.000000); assert_eq!(float32_unpack(1618345984), 11.000000); assert_...
rust_cleaned_test_functions.jsonl/33429
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 425 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17586, 62, 18, 17, 54889, 368, 341, 197, 322, 24979, 1033, 16709, 700, 504, 1128, 357, 65, 2273, 29886, 285, 198, 197, 322, 16588, 369, 419, 729, 504, 264, 1273, 1034, 624, 6948, 10714, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_equality_from_proto_uuid() { for _ in 0..1000 { // start with a protobuf Uuid let pu0 = graplinc_common::Uuid::new(); // Convert it into a uuid::Uuid let u: uuid::Uuid = pu0.clone().into(); // Then back to a protobuf Uuid ...
rust_cleaned_test_functions.jsonl/88457
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 244 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 10473, 5673, 37689, 25540, 368, 341, 286, 369, 716, 304, 220, 15, 496, 16, 15, 15, 15, 341, 310, 442, 1191, 448, 264, 69634, 547, 2423, 198, 310, 1077, 18256, 15, 284, 67983, 75, 2840, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_announce() -> Result<(), failure::Error> { let mut m = Metainfo::from_file("data/test.torrent")?; m.announce = mockito::server_url() + "/announce"; let _mck = mock("GET", Matcher::Any) .with_status(200) .with_header("content-type", "text/plain") ...
rust_cleaned_test_functions.jsonl/126246
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 669 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51870, 9734, 368, 1464, 5714, 68843, 7901, 486, 1454, 29, 341, 286, 1077, 5206, 296, 284, 6212, 466, 824, 486, 1499, 2458, 445, 691, 12697, 734, 48709, 899, 37445, 286, 296, 13, 65512, 284, 7860...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_if_descendant() { let path = ActorPath::from("/acme/building/room/sensor"); let parent = path.parent(); assert!(path.is_descendant_of(&parent)); assert!(!path.is_descendant_of(&path)); }
rust_cleaned_test_functions.jsonl/32094
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 112 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11119, 10986, 20372, 368, 341, 286, 1077, 1815, 284, 24718, 1820, 486, 1499, 4283, 580, 2660, 30593, 287, 14, 2966, 2687, 3805, 797, 286, 1077, 2681, 284, 1815, 8659, 543, 286, 2060, 10297, 2343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_flags() { let table_create = TableCreateCommand::new("Test".to_string()) .flags(vec![(TableFlagType::PatKey), (TableFlagType::KeyWithSIS)]); let mut arg: HashMap<String, String> = HashMap::new(); arg.insert("flags".to_string(), "TABLE_PAT_KE...
rust_cleaned_test_functions.jsonl/74220
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 263 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14130, 368, 341, 286, 1077, 1965, 8657, 284, 6633, 4021, 4062, 486, 931, 445, 2271, 3263, 983, 3904, 2398, 310, 659, 11161, 25592, 0, 9697, 2556, 12135, 929, 486, 27106, 1592, 701, 320, 2556, 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_parse_resource_request_error() { check_parse_error( p_resource_request, "", r#"Parse error expected Resource identifier at the end of input expected alphanumeric character at the end of input"#, ); check_parse_error( p_res...
rust_cleaned_test_functions.jsonl/107803
{ "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, 21039, 17962, 7893, 4096, 368, 341, 286, 1779, 21039, 4096, 1006, 310, 281, 17962, 7893, 345, 310, 8324, 310, 435, 55543, 14463, 1465, 198, 7325, 11765, 12816, 518, 279, 835, 315, 1946, 198, 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_primitive_array_lt() { cmp_i64!( lt, lt_dyn, vec![8, 8, 8, 8, 8, 8, 8, 8, 8, 8], vec![6, 7, 8, 9, 10, 6, 7, 8, 9, 10], vec![false, false, false, true, true, false, false, false, true, true] ); cmp_vec!( ...
rust_cleaned_test_functions.jsonl/98184
{ "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, 84087, 3858, 39164, 368, 341, 286, 26089, 5318, 21, 19, 33673, 310, 25175, 345, 310, 25175, 69213, 345, 310, 7486, 20703, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_custom_message_into_policy() { let message = Message { id: 0, alias: String::from("alias") }; let policy = message.clone().into_policy(); match policy { CachePolicy::Cacheable(value) => assert_eq!(value, message), CachePolicy::NonCacheable(_) => assert!(false), };...
rust_cleaned_test_functions.jsonl/86728
{ "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, 15875, 6462, 45514, 22773, 368, 341, 262, 1077, 1943, 284, 4856, 314, 877, 25, 220, 15, 11, 15534, 25, 923, 486, 1499, 445, 14956, 899, 2605, 262, 1077, 4842, 284, 1943, 15997, 1005, 18122, 2277...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_accessors() { let my_struct = MyTestStruct::new(String::from("Reid"), 25); assert_eq!(my_struct.name(), "Reid"); assert_eq!(my_struct.age(), &25); assert_eq!(my_struct.weight(), &None); assert_eq!(my_struct.married(), &None); }
rust_cleaned_test_functions.jsonl/117668
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12759, 1087, 368, 341, 262, 1077, 847, 15126, 284, 3017, 2271, 9422, 486, 931, 2242, 486, 1499, 445, 693, 307, 3975, 220, 17, 20, 317, 262, 2060, 10714, 10297, 2408, 15126, 2644, 1507, 330, 693,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_debug_source_data() { let data: Vec<u8> = Vec::new(); let a = AssetSource::Data(data); assert_eq!(a.debug_source(), None); }
rust_cleaned_test_functions.jsonl/12396
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 86 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15446, 10347, 1769, 368, 341, 286, 1077, 821, 25, 11312, 34837, 23, 29, 284, 11312, 486, 931, 543, 286, 1077, 264, 284, 22605, 3608, 486, 1043, 2592, 626, 286, 2060, 10714, 10297, 64, 7883, 1034...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_bf16_consts_from_f32() { let one = bf16::from_f32(1.0); let zero = bf16::from_f32(0.0); let neg_zero = bf16::from_f32(-0.0); let neg_one = bf16::from_f32(-1.0); let inf = bf16::from_f32(core::f32::INFINITY); let neg_inf = bf16::from_f32(core::f32::...
rust_cleaned_test_functions.jsonl/4207
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1662 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 69, 16, 21, 48530, 5673, 761, 18, 17, 368, 341, 286, 1077, 825, 284, 39093, 16, 21, 486, 1499, 761, 18, 17, 7, 16, 13, 15, 317, 286, 1077, 7168, 284, 39093, 16, 21, 486, 1499, 761, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_option_rule() { let rule: BinProtRule = serde_json::from_str(OPTION_RULE).unwrap(); let example_none = vec![0x00]; // None let mut de = Deserializer::from_reader(Cursor::new(example_none.as_slice())).with_layout(&rule); let result: Value = Deserializ...
rust_cleaned_test_functions.jsonl/134755
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 391 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9672, 21124, 368, 341, 286, 1077, 5912, 25, 29344, 12423, 11337, 284, 61570, 9455, 486, 1499, 2895, 19238, 6578, 50495, 568, 15454, 1428, 286, 1077, 3110, 31488, 284, 7486, 20703, 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_split_num_prefixed_chunks_by_bytes() { let (at, mut ucmd) = testing(UTIL_NAME); let name = "split_num_prefixed_chunks_by_bytes"; let glob = Glob::new(&at, ".", r"a\d\d$"); RandomFile::new(&at, name).add_bytes(10000); assert!(ucmd.args(&["-d", "-b", "1000", name, "a"]).run().s...
rust_cleaned_test_functions.jsonl/25135
{ "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, 17052, 4273, 43331, 3286, 65470, 3710, 12524, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 7497, 7, 36969, 4708, 317, 262, 1077, 829, 284, 330, 6960, 4273, 43331, 3286, 65470, 371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_primitive_array_alignment() { let ptr = alloc::allocate_aligned::<u8>(8); let buf = unsafe { Buffer::from_raw_parts(ptr, 8, 8) }; let buf2 = buf.slice(1); let array_data = ArrayData::builder(DataType::Int32).add_buffer(buf2).build(); Int32Array::from(array...
rust_cleaned_test_functions.jsonl/3851
{ "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, 84087, 3858, 51006, 368, 341, 286, 1077, 10087, 284, 5574, 486, 31191, 66385, 27638, 84, 23, 2235, 23, 317, 286, 1077, 6607, 284, 19860, 314, 10312, 486, 1499, 16067, 33217, 23866, 11, 220, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pairing_result_against_relic() { assert_eq!(Bls12::pairing(G1::one(), G2::one()), Fq12 { c0: Fq6 { c0: Fq2 { c0: Fq::from_str("2819105605953691245277803056322684086884703000473961065716485506033588504203831029066448642358042597501014294104502").unwra...
rust_cleaned_test_functions.jsonl/39354
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14445, 287, 5287, 62427, 267, 1288, 415, 368, 341, 14808, 262, 2060, 10714, 10297, 33, 4730, 16, 17, 486, 12670, 287, 6699, 16, 486, 603, 1507, 479, 17, 486, 603, 11858, 434, 80, 16, 17, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_level_filter_de_error() { let msg = "unknown variant `errorx`, expected one of \ `OFF`, `FATAL`, `ERROR`, `WARN`, `INFO`, `DEBUG`, `TRACE`"; assert_de_tokens_error::<LevelFilter>(&[level_filter_token("errorx")], msg); }
rust_cleaned_test_functions.jsonl/91802
{ "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, 8274, 8727, 2259, 4096, 368, 341, 286, 1077, 3750, 284, 330, 16088, 11424, 1565, 841, 87, 7808, 3601, 825, 315, 3044, 4293, 1565, 27068, 7808, 1565, 37, 30074, 7808, 1565, 3682, 7808, 1565, 74858,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_table() -> Result<()> { let connection = "postgres://postgres:password@localhost:5432/postgres"; let schema = Schema::new(vec![ Field::new("c1", DataType::Boolean, true), Field::new("c2", DataType::Boolean, false), ...
rust_cleaned_test_functions.jsonl/46439
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 644 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 5237, 368, 1464, 5714, 71698, 341, 286, 1077, 3633, 284, 330, 43070, 1110, 43070, 25, 3833, 31, 8301, 25, 20, 19, 18, 17, 29996, 17818, 876, 286, 1077, 10802, 284, 12539, 486, 931, 25592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_object() { let j = r#"{"key": "value", "key2": "value2", "object1": {"object_key1": "object_value1"}, "key3": "value3"}"# .as_bytes(); assert_eq!(Parser::from_reader(j).collect::<Result<Vec<_>>>().unwrap(), vec![Event...
rust_cleaned_test_functions.jsonl/12580
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 562 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5314, 368, 341, 262, 1077, 502, 284, 435, 55543, 4913, 792, 788, 330, 957, 756, 394, 330, 792, 17, 788, 330, 957, 17, 756, 394, 330, 1700, 16, 788, 5212, 1700, 3097, 16, 788, 330, 1700, 3142...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fn_mul_args() { let code = String::from("fn: main21(arg: int, noarg: int) ~ int {}"); let mut lexer = Token::lexer(code.as_str()); let parser = Parser::new(code.clone()); let decl_res = parser.parse_fn_decl(&mut lexer); assert!(decl_res.is_ok()); if let Declaratio...
rust_cleaned_test_functions.jsonl/43200
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 15246, 24944, 8384, 368, 341, 262, 1077, 2038, 284, 923, 486, 1499, 445, 8822, 25, 1887, 17, 16, 9404, 25, 526, 11, 902, 858, 25, 526, 8, 3968, 526, 4687, 797, 262, 1077, 5206, 53259, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_number_from_string() { assert_de_tokens_error::<isize>( &[Token::Str("1")], "invalid type: string \"1\", expected isize", ); }
rust_cleaned_test_functions.jsonl/129545
{ "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, 5500, 5673, 3904, 368, 341, 262, 2060, 2259, 28838, 4096, 27638, 285, 551, 17055, 286, 44590, 3323, 486, 2580, 445, 16, 899, 1259, 286, 330, 11808, 943, 25, 914, 7245, 16, 16215, 3601, 91373, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_sub_checked() { let a = Int32Array::from(&[None, Some(6), None, Some(6)]); let b = Int32Array::from(&[Some(5), None, None, Some(6)]); let result = checked_sub(&a, &b).unwrap(); let expected = Int32Array::from(&[None, None, None, Some(0)]); assert_eq!(resul...
rust_cleaned_test_functions.jsonl/23355
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 353 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 56456, 368, 341, 286, 1077, 264, 284, 1333, 18, 17, 1857, 486, 1499, 2099, 58, 4064, 11, 4329, 7, 21, 701, 2240, 11, 4329, 7, 21, 41958, 286, 1077, 293, 284, 1333, 18, 17, 1857, 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_validate_checksum() { ensure_env_logger_initialized(); let evtx_file = include_bytes!("../samples/security.evtx"); let chunk_data = evtx_file[EVTX_FILE_HEADER_SIZE..EVTX_FILE_HEADER_SIZE + EVTX_CHUNK_SIZE].to_vec(); let chunk = EvtxChunkData::new(chun...
rust_cleaned_test_functions.jsonl/93705
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 64038, 368, 341, 286, 5978, 15879, 27413, 62421, 543, 286, 1077, 3637, 3998, 2458, 284, 2924, 12524, 17223, 1244, 41118, 71422, 77343, 3998, 797, 286, 1077, 11879, 1769, 4035, 310, 3637, 3998...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_read_error() { const INITIAL: &[u8] = b"abcdef123456"; let mut rbuf = vec![0; 4]; let mut f = tempfile().unwrap(); f.write_all(INITIAL).unwrap(); let mut aiocb = AioCb::from_mut_slice( f.as_raw_fd(), -1, //an invalid offset ...
rust_cleaned_test_functions.jsonl/90411
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 4096, 368, 341, 262, 733, 56854, 25, 44590, 84, 23, 60, 284, 293, 1, 41202, 16, 17, 18, 19, 20, 21, 876, 262, 1077, 5206, 435, 5909, 284, 7486, 20703, 15, 26, 220, 19, 935, 262, 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_error_streaming_response() { let engine = TestEngineBuilder::new().build().unwrap(); let read_pool = build_read_pool_for_test(engine.clone()); let cop = Endpoint::<RocksEngine>::new(&Config::default(), read_pool); // Fail immediately let handler_builder =...
rust_cleaned_test_functions.jsonl/40861
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 821 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4096, 12673, 287, 9655, 368, 341, 286, 1077, 4712, 284, 3393, 4571, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 1349, 15709, 284, 1936, 6443, 15709, 5478, 4452, 48974, 15997, 1423, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_parser() { let data = r#" { "comment_rule": true, "fullstop_rule": true, "indentation_rule": true, "blank_lines_rule": true, "blank_lines_amount": 5 } "#; let test_settings: Settings = se...
rust_cleaned_test_functions.jsonl/59770
{ "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, 18517, 368, 972, 286, 1077, 821, 32203, 286, 435, 2, 5031, 286, 972, 688, 330, 6182, 21124, 788, 830, 1871, 688, 330, 8878, 9495, 21124, 788, 830, 1871, 688, 330, 32840, 367, 21124, 788, 830, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_resolve_all_refs() -> Result<()> { let doc_file = VMWARE_SPEC; let spec = &Spec::read_files(&[&doc_file])?; for (doc_file, api) in spec.docs() { let refs = spec::openapi::get_references(doc_file, api); for rs in refs { match rs { TypedRefer...
rust_cleaned_test_functions.jsonl/45100
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 388 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77291, 5705, 60638, 368, 1464, 5714, 71698, 341, 262, 1077, 4629, 2458, 284, 17792, 7663, 36436, 280, 262, 1077, 1398, 284, 609, 8327, 486, 878, 10931, 2099, 58, 5, 5236, 2458, 2467, 37445, 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...
7
#[test] fn test_read_options() { let path = tempdir_with_prefix("_rust_rocksdb_write_options"); let db = DB::open_default(path.path().to_str().unwrap()).unwrap(); let mut read_opts = ReadOptions::new(); read_opts.set_verify_checksums(true); read_opts.fill_cache(true); read_opts.set_tail...
rust_cleaned_test_functions.jsonl/34127
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 488 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 8743, 368, 341, 262, 1077, 1815, 284, 2730, 3741, 6615, 13974, 16975, 35788, 26608, 14553, 1999, 9165, 8743, 797, 262, 1077, 2927, 284, 5952, 486, 2508, 9993, 5581, 3875, 1005, 983, 2895, 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_verify_invalid_message() { let mut stark_key = hex!("077a4b314db07c45076d11f62b6f9e748a39790441823307743cf00d6597ea43"); let mut msg_hash = hex!("0397e76d1667c4454bfb83514e120583af836f8e32a516765497823eabe16a3f"); let mut r_bytes = hex!("0173fd03d8b008ee743297...
rust_cleaned_test_functions.jsonl/73604
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 379 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 31433, 6462, 368, 341, 286, 1077, 5206, 37146, 3097, 4035, 310, 12371, 17223, 15, 22, 22, 64, 19, 65, 18, 16, 19, 1999, 15, 22, 66, 19, 20, 15, 22, 21, 67, 16, 16, 69, 21, 17, 65,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_push_update() { let mut contact_info_table = ContactInfoTable::default(); let mut push = NodeTbleGspPush::default(); let mut ci = ContactInfo::new_localhost(&BvmAddr::new_rand(), 0); ci.wallclock = 0; let value_old = ContInfTblValue::ContactInfo(ci...
rust_cleaned_test_functions.jsonl/120871
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 408 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 14218, 8882, 368, 341, 286, 1077, 5206, 3645, 3109, 5237, 284, 9180, 1731, 2556, 486, 2258, 543, 286, 1077, 5206, 4484, 284, 6018, 51, 891, 38, 2154, 16644, 486, 2258, 543, 286, 1077, 520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transport_type_tcp() { unsafe { let mut error = 0; let error_ptr = &mut error as *mut c_int; let address_listener = CString::new("/ip4/127.0.0.1/tcp/0").unwrap(); let address_listener_str: *const c_char = CString::into_raw(address_listener)...
rust_cleaned_test_functions.jsonl/66625
{ "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, 46398, 1819, 45562, 368, 341, 286, 19860, 341, 310, 1077, 5206, 1465, 284, 220, 15, 280, 310, 1077, 1465, 4348, 284, 609, 6984, 1465, 438, 353, 6984, 272, 4042, 280, 310, 1077, 2621, 46493, 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_request() { use helix::*; let req = GetGamesRequest::builder() .id(vec!["493057".to_string()]) .build(); // From twitch docs let data = br#" { "data": [ { "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/Fortnite-52x72.jpg", ...
rust_cleaned_test_functions.jsonl/56455
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 499 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 368, 341, 262, 990, 11338, 941, 56162, 262, 1077, 4232, 284, 2126, 35807, 1900, 486, 17850, 741, 286, 659, 307, 25592, 0, 1183, 19, 24, 18, 15, 20, 22, 3263, 983, 3904, 56024, 286, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_operand_display() { assert_eq!( format!( "{}", dr::Operand::FunctionControl(spirv::FunctionControl::INLINE) ), "INLINE", ); assert_eq!(format!("{}", dr::Operand::IdRef(3)), "%3"); assert_eq!(forma...
rust_cleaned_test_functions.jsonl/49207
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 210 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69259, 14825, 368, 341, 286, 2060, 10714, 33673, 310, 3561, 33673, 394, 35503, 756, 394, 1353, 486, 29940, 486, 5152, 3273, 1141, 5565, 85, 486, 5152, 3273, 486, 55737, 340, 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_sse_interpolator_64() { let mut rng = rand::thread_rng(); let mut wave = Vec::new(); for _ in 0..2048 { wave.push(rng.gen::<f64>()); } let sinc_len = 256; let f_cutoff = 0.9473371669037001; let oversampling_factor = 256; ...
rust_cleaned_test_functions.jsonl/131814
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 376 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 325, 15318, 57736, 62, 21, 19, 368, 341, 286, 1077, 5206, 28422, 284, 10382, 486, 4528, 66849, 543, 286, 1077, 5206, 12060, 284, 11312, 486, 931, 543, 286, 369, 716, 304, 220, 15, 496, 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_json5_parse_number() { let json: Value = cm_json::from_json5_str("1").expect("couldn't parse"); if let Value::Number(n) = json { assert!(n.is_i64()); } else { panic!("{:?} is not a number", json); } }
rust_cleaned_test_functions.jsonl/2891
{ "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, 9455, 20, 21039, 5500, 368, 341, 286, 1077, 2951, 25, 5162, 284, 9961, 9455, 486, 1499, 9455, 20, 2895, 445, 16, 1827, 17119, 445, 90962, 944, 4715, 797, 286, 421, 1077, 5162, 486, 2833, 1445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_js() { run_in_task(|mut cx| { let (mut isolate, _dispatch_count) = setup(Mode::Async); js_check( isolate.execute( "shared_queue_test.js", include_str!("shared_queue_test.js"), ), ); if let Poll::Ready(Err(_)) = isolate.poll_unpin(&m...
rust_cleaned_test_functions.jsonl/972
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 191 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26250, 368, 341, 262, 1598, 1243, 12184, 22428, 6984, 20716, 91, 341, 414, 1077, 320, 6984, 42123, 11, 716, 18274, 3180, 8, 284, 6505, 3189, 534, 486, 6525, 317, 414, 6994, 7200, 1006, 286, 4212...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_aggregate_commitment_for_vote_account_1() { let ancestors = vec![3, 4, 5, 7, 9, 11]; let mut commitment = HashMap::new(); let lamports = 5; let mut vote_state = VoteState::default(); let root = ancestors.last().unwrap(); vote_state.root_slot = Som...
rust_cleaned_test_functions.jsonl/65258
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 357 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20587, 14240, 36346, 478, 5478, 54360, 13500, 62, 16, 368, 341, 286, 1077, 37518, 284, 7486, 20703, 18, 11, 220, 19, 11, 220, 20, 11, 220, 22, 11, 220, 24, 11, 220, 16, 16, 935, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_verify_secp256k1_sha256_tai_bad_message() { let mut vrf = ECVRF::from_suite(CipherSuite::SECP256K1_SHA256_TAI).unwrap(); let y = hex::decode("032c8c31fc9f990c6b55e3865a184a4ce50e09481f2eaeb3e60ec1cea13a6ae645") .unwrap(); // VRF proof let pi =...
rust_cleaned_test_functions.jsonl/112470
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 365 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 3453, 4672, 17, 20, 21, 74, 16, 48836, 17, 20, 21, 528, 2143, 34199, 6462, 368, 341, 286, 1077, 5206, 348, 8052, 284, 468, 19589, 17612, 486, 1499, 57239, 3025, 10558, 28000, 486, 925, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_guild_integration() { let route = Route::CreateGuildIntegration { guild_id: GUILD_ID }; assert_eq!( route.to_string(), format!("guilds/{guild_id}/integrations", guild_id = GUILD_ID) ); }
rust_cleaned_test_functions.jsonl/119856
{ "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, 8657, 1889, 1498, 90250, 368, 341, 286, 1077, 6021, 284, 9572, 486, 4021, 72574, 52464, 314, 26411, 842, 25, 479, 18023, 3450, 2605, 286, 2060, 10714, 33673, 310, 6021, 2389, 3904, 3148, 310, 3561...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_args_model() { let mut args = Args::new(); assert_eq!(ModelName::SG, args.model()); args.set_model(ModelName::CBOW); assert_eq!(ModelName::CBOW, args.model()); }
rust_cleaned_test_functions.jsonl/118609
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8384, 5047, 368, 341, 286, 1077, 5206, 2827, 284, 17693, 486, 931, 543, 286, 2060, 10714, 10297, 1712, 675, 486, 7783, 11, 2827, 3192, 5231, 286, 2827, 980, 5047, 26442, 675, 486, 12979, 3307, 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
#[test] fn test_modified_added() -> Result<()> { // Given let entry = given_entry("file.txt"); // When let stats = Stats { added: vec![&entry], removed: vec![], updated: vec![], updated_bitrot: vec![], moved: Default::d...
rust_cleaned_test_functions.jsonl/4099
{ "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, 37749, 37653, 368, 1464, 5714, 71698, 341, 286, 442, 16246, 198, 286, 1077, 4343, 284, 2661, 9078, 445, 1192, 3909, 3071, 286, 442, 3197, 198, 286, 1077, 10472, 284, 29927, 341, 310, 3694, 25, 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_check_latency_async_block_on() { delay(); let mut runtime = tokio::runtime::Runtime::new().unwrap(); let client: Public<ASync> = Public::new(SANDBOX_URL); let _ = runtime.block_on(client.get_time()).unwrap(); let time = Instant::now(); let _ = runtime.block_on(client.get_...
rust_cleaned_test_functions.jsonl/50639
{ "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, 7200, 74832, 28346, 7113, 4470, 368, 341, 262, 7626, 543, 262, 1077, 5206, 15592, 284, 9628, 815, 486, 22255, 486, 15123, 486, 931, 1005, 15454, 543, 262, 1077, 2943, 25, 3066, 27, 1911, 1721, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_urdf_viz_web_client_config_accessor() { let mut config = UrdfVizWebClientConfig { name: "test".to_owned(), joint_names: vec!["j1".to_owned(), "j2".to_owned()], wrap_with_joint_velocity_limiter: true, joint_velocity_limits: vec![1.0, 2.0], }; assert_eq!...
rust_cleaned_test_functions.jsonl/119541
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 542 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64879, 2940, 2273, 449, 25960, 8179, 5332, 33901, 368, 341, 262, 1077, 5206, 2193, 284, 16809, 2940, 53, 449, 5981, 2959, 2648, 341, 286, 829, 25, 330, 1944, 3263, 983, 51973, 3148, 286, 10284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lexicographic_largest() { assert!(!bool::from(Fp::zero().lexicographically_largest())); assert!(!bool::from(Fp::one().lexicographically_largest())); assert!(!bool::from( Fp::from_raw_unchecked([ 0xa1fa_ffff_fffe_5557, 0x995b_fff9_76a3_fffe, ...
rust_cleaned_test_functions.jsonl/23237
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 736 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74547, 292, 12679, 907, 32381, 368, 341, 262, 2060, 0, 3471, 2641, 486, 1499, 7832, 79, 486, 14154, 1005, 2571, 292, 63931, 907, 32381, 7392, 262, 2060, 0, 3471, 2641, 486, 1499, 7832, 79, 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_connector() { let mut connector: Connector = Connector::new(50.0); assert_eq!(connector.status(), ConnectorStatus::WaitingOnInput); let mut items = Table::new(); let item = items.insert(ItemKindBuilder::new().with_name(LocalString::from_str("item")).build(), "it...
rust_cleaned_test_functions.jsonl/106950
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 495 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 76393, 368, 341, 286, 1077, 5206, 26989, 25, 54814, 284, 54814, 486, 931, 7, 20, 15, 13, 15, 626, 286, 2060, 10714, 10297, 53700, 4299, 1507, 54814, 2522, 486, 42104, 1925, 2505, 626, 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...
3
#[test] fn test_holder_vs_counterparty_dust_limit() { // dust limits are used. let feeest = TestFeeEstimator{fee_est: 15000}; let secp_ctx = Secp256k1::new(); let seed = [42; 32]; let network = Network::Testnet; let keys_provider = test_utils::TestKeysInterface::new(&seed, network); let logger ...
rust_cleaned_test_functions.jsonl/15101
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1389 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50788, 42434, 15730, 32957, 814, 590, 14763, 368, 341, 2394, 197, 197, 322, 15797, 13388, 525, 1483, 624, 197, 10217, 11060, 477, 284, 3393, 41941, 13782, 13689, 90, 30017, 18583, 25, 220, 16, 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...
6
#[test] fn test_get_file_extension_from_file_meta_line() { assert_eq!( get_file_extension_from_file_meta_line_file_path("a/src/parse.rs"), Some("rs") ); assert_eq!( get_file_extension_from_file_meta_line_file_path("b/src/pa rse.rs"), Some("...
rust_cleaned_test_functions.jsonl/108154
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 713 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 2458, 31035, 5673, 2458, 13381, 6528, 368, 341, 286, 2060, 10714, 33673, 310, 633, 2458, 31035, 5673, 2458, 13381, 6528, 2458, 2638, 445, 64, 13437, 14, 6400, 25638, 4461, 310, 4329, 445, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sql_compare_example() -> Result<()> { let v_integer = SqlValue::NotNull(NnSqlValue::Integer(42)); let v_smallint = SqlValue::NotNull(NnSqlValue::SmallInt(42)); let v_bigint = SqlValue::NotNull(NnSqlValue::BigInt(42)); let v_integer_minus = SqlValue::NotNull(NnSqlV...
rust_cleaned_test_functions.jsonl/40002
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 824 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18063, 32235, 39304, 368, 1464, 5714, 71698, 341, 286, 1077, 348, 31725, 284, 7224, 1130, 486, 11005, 8204, 77, 8269, 1130, 486, 3486, 7, 19, 17, 1106, 286, 1077, 348, 31966, 396, 284, 7224, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
#[test] fn test_categorize() { let config = Config::from_string_for_test( r#" { "sources": { "src/js": "public", "src/js/internal": "internal", "src/vendor": "public", ...
rust_cleaned_test_functions.jsonl/18363
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1745 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 7593, 551, 368, 341, 286, 1077, 2193, 284, 5532, 486, 1499, 3904, 5478, 4452, 1006, 310, 435, 2, 698, 394, 341, 503, 330, 39651, 788, 341, 664, 330, 3548, 9113, 788, 330, 888, 756, 664, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sharder() { let shards: Vec<_> = (1000..1000000).collect(); let shard_config = ShardConfig { specific_targets: vec![MatcherToShard { matcher: Matcher { table_name_regex: Some(Regex::new("pu$").unwrap()), predicat...
rust_cleaned_test_functions.jsonl/1249
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1727 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3712, 567, 261, 368, 341, 286, 1077, 74110, 25, 11312, 32399, 29, 284, 320, 16, 15, 15, 15, 496, 16, 15, 15, 15, 15, 15, 15, 568, 17384, 543, 286, 1077, 52069, 5332, 284, 95366, 2648, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_no_minutes() { let clock = Clock::new(6, 41).add_minutes(0); assert_eq!(clock.to_string(), "06:41"); }
rust_cleaned_test_functions.jsonl/5362
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 66 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 6536, 67655, 368, 341, 262, 1077, 8866, 284, 26142, 486, 931, 7, 21, 11, 220, 19, 16, 568, 718, 67655, 7, 15, 317, 262, 2060, 10714, 10297, 20666, 2389, 3904, 1507, 330, 15, 21, 25, 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
#[test] fn test_default() { let dm: DashMap<u32, u32> = DashMap::default(); dm.insert(0, 0); assert_eq!(dm.get(&0).unwrap().value(), &0); }
rust_cleaned_test_functions.jsonl/1512
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 93 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 368, 341, 286, 1077, 28676, 25, 36670, 2227, 34837, 18, 17, 11, 575, 18, 17, 29, 284, 36670, 2227, 486, 2258, 1428, 286, 28676, 7030, 7, 15, 11, 220, 15, 626, 286, 2060, 10714, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_empty_settings_frame() { let frame = SettingsFrame::default(); let mut b = Vec::new(); b.write_frame(frame.clone()).unwrap(); assert_eq!(b, [0, 0, 0, 4, 0, 0, 0, 0, 0]); let mut sl = &b[..]; let res = match sl.read_frame().unwrap() { Fr...
rust_cleaned_test_functions.jsonl/93804
{ "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, 15124, 10853, 8929, 368, 341, 286, 1077, 4034, 284, 11296, 4369, 486, 2258, 543, 286, 1077, 5206, 293, 284, 11312, 486, 931, 543, 286, 293, 3836, 8929, 15046, 15997, 6011, 15454, 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...
2
#[test] fn test_shift_jis_decode_all() { let input = include_bytes!("test_data/shift_jis_in.txt"); let expectation = include_str!("test_data/shift_jis_in_ref.txt"); let (cow, had_errors) = SHIFT_JIS.decode_without_bom_handling(input); assert!(had_errors, "Should have had errors."...
rust_cleaned_test_functions.jsonl/74968
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 167 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22230, 5374, 285, 15227, 5705, 368, 341, 286, 1077, 1946, 284, 2924, 12524, 17223, 1944, 1769, 14, 13418, 5374, 285, 1243, 3909, 797, 286, 1077, 30193, 284, 2924, 2895, 17223, 1944, 1769, 14, 1341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[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::new([1, 2, 3, 4, 5, 6, 7, 8, 0, 0, 0, 0, 0, 0...
rust_cleaned_test_functions.jsonl/117338
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 693 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9078, 2204, 2485, 368, 341, 286, 442, 1779, 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...
1
#[test] fn test_connection_state_machine_connected() { let state = connected_state(ConnectionRole::Server); let expected = vec![ (ConnectionState::Listening, true), (connecting_state(), false), (connected_state(ConnectionRole::Server), false), (con...
rust_cleaned_test_functions.jsonl/134575
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 330 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15866, 4387, 38695, 43276, 368, 341, 286, 1077, 1584, 284, 8433, 4387, 47218, 9030, 486, 5475, 317, 286, 1077, 3601, 284, 7486, 90515, 310, 320, 4526, 1397, 486, 54931, 11, 830, 1326, 310, 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_word() { { let code = r#"hallo"#; let tokenization_result = tokenize(code); let tokens = tokenization_result.unwrap(); assert_eq_code_and_tokens_length(code, &tokens); assert!(tokens.len() == 1); let token = &tok...
rust_cleaned_test_functions.jsonl/116442
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 254 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13533, 368, 341, 286, 341, 310, 1077, 2038, 284, 435, 55543, 11866, 385, 57676, 401, 310, 1077, 3950, 2022, 5287, 284, 77651, 15842, 317, 310, 1077, 11211, 284, 3950, 2022, 5287, 55395, 1428, 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
#[test] fn test_grounded_negated_dot_comparison() -> TestResult { let p = Polar::new(); let mut q = p.new_query("x in _ and not x.a = q and x = {}", false)?; assert_query_done!(q); let mut q = p.new_query("x in _ and not q = x.a and x = {}", false)?; assert_query_done!(...
rust_cleaned_test_functions.jsonl/63056
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 473 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 43991, 28209, 657, 30941, 90797, 368, 1464, 3393, 2077, 341, 286, 1077, 281, 284, 55896, 486, 931, 1428, 286, 1077, 5206, 2804, 284, 281, 4618, 5738, 445, 87, 304, 716, 323, 537, 856, 5849...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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