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_handle_branch_cycle() { // label0: // b label1 // label1: // b label2 // label2: // b label3 // label3: // b label4 // label4: // -- should become: // b label0 ...
rust_cleaned_test_functions.jsonl/17891
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 703 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 28031, 39079, 368, 341, 286, 442, 2383, 15, 510, 286, 442, 256, 293, 2383, 16, 198, 286, 442, 2383, 16, 510, 286, 442, 256, 293, 2383, 17, 198, 286, 442, 2383, 17, 510, 286, 442, 256,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_region_size() { let (cluster, debug_client, store_id) = must_new_cluster_and_debug_client(); let engine = cluster.get_engine(store_id); // Put some data. let region_id = 100; let region_state_key = keys::region_state_key(region_id); let mut region = metapb::Region:...
rust_cleaned_test_functions.jsonl/8804
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 683 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15446, 20627, 2368, 368, 341, 262, 1077, 320, 18855, 11, 7390, 8179, 11, 3553, 842, 8, 284, 1969, 5921, 28441, 8378, 15446, 8179, 543, 262, 1077, 4712, 284, 10652, 670, 24823, 31200, 842, 626, 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...
5
#[test] fn test_ease_out_quad() { assert_eq!(ease(ease_out_quad, 1.0, 0.0, 1.0), 0.0); }
rust_cleaned_test_functions.jsonl/40062
{ "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, 2204, 519, 6068, 68631, 368, 341, 286, 2060, 10714, 10297, 46614, 2026, 519, 6068, 68631, 11, 220, 16, 13, 15, 11, 220, 15, 13, 15, 11, 220, 16, 13, 15, 701, 220, 15, 13, 15, 317, 262, 335...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_intersect() { let mut path = Path::new(); path.add_rect(Rect::from_point_and_size((10.0, 10.0), (10.0, 10.0)), None); let mut path2 = Path::new(); path2.add_rect(Rect::from_point_and_size((15.0, 15.0), (10.0, 10.0)), None); let intersected = path.op(&path2, PathOp::Intersect)...
rust_cleaned_test_functions.jsonl/47061
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 72747, 368, 341, 262, 1077, 5206, 1815, 284, 7933, 486, 931, 543, 262, 1815, 1364, 16979, 60083, 486, 1499, 6085, 8378, 2368, 1188, 16, 15, 13, 15, 11, 220, 16, 15, 13, 15, 701, 320, 16, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_serde_map_fnv_hasher() { let mut set: ::indexmap::IndexSet<i32, ::fnv::FnvBuildHasher> = Default::default(); set.extend(1..5); assert_tokens( &set, &[ Token::Seq { len: Some(4) }, Token::I32(1), Token::I32(2), Token::I32...
rust_cleaned_test_functions.jsonl/113618
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75861, 450, 5376, 15246, 85, 8950, 261, 368, 341, 262, 1077, 5206, 738, 25, 3504, 1252, 2186, 486, 1552, 1649, 21897, 18, 17, 11, 3504, 8822, 85, 486, 24911, 85, 11066, 6370, 261, 29, 284, 789...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_authorization() { let _ = env_logger::init(); let account = test_acc().unwrap(); let auth = account.authorization("example.com").unwrap(); assert!(!auth.0.is_empty()); assert!(auth.get_challenge("http").is_some()); assert!(auth.get_http_challenge()...
rust_cleaned_test_functions.jsonl/116987
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 312 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22938, 2022, 368, 341, 286, 1077, 716, 284, 6105, 27413, 486, 2327, 543, 286, 1077, 2692, 284, 1273, 17737, 1005, 15454, 543, 286, 1077, 4166, 284, 2692, 63988, 445, 8687, 905, 1827, 15454, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_expr() { parse_macro( r#" macro_rules! foo { ($ i:expr) => { fn bar() { $ i; } } } "#, ) .assert_expand_items( "foo! { 2 + 2 * baz(3).quux() }", "fn bar () {2 + 2 * baz (3) . quux () ;}", ); }
rust_cleaned_test_functions.jsonl/28731
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21915, 368, 341, 262, 4715, 58810, 1006, 286, 435, 2, 698, 286, 18072, 21407, 0, 15229, 341, 310, 1711, 600, 96011, 8, 589, 341, 338, 5168, 3619, 368, 314, 400, 600, 26, 456, 310, 456, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_filter() { let prompt = Question::float("name") .message("message") .filter(|i, _| i + 1.0); let mut backend = helpers::SnapshotOnFlushBackend::new((50, 20).into()); let mut events = TestEvents::new(vec![ KeyCode::Char('2').into(), KeyCode::Char('.')....
rust_cleaned_test_functions.jsonl/105293
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 231 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 368, 341, 262, 1077, 9934, 284, 15846, 486, 3649, 445, 606, 1138, 286, 659, 1994, 445, 1994, 1138, 286, 659, 5315, 22428, 72, 11, 85137, 600, 488, 220, 16, 13, 15, 626, 262, 1077, 5206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_str() { fn test(z: Complex64, s: &str) { assert_eq!(FromStr::from_str(s), Ok(z)); } test(_0_0i, "0 + 0i"); test(_0_0i, "0+0j"); test(_0_0i, "0 - 0j"); test(_0_0i, "0-0i"); test(_0_0i, "0i + 0"); test(_0_0i, "0"); ...
rust_cleaned_test_functions.jsonl/105669
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1094 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2895, 368, 341, 286, 5168, 1273, 13174, 25, 22096, 21, 19, 11, 274, 25, 609, 495, 8, 341, 310, 2060, 10714, 10297, 3830, 2580, 486, 1499, 2895, 1141, 701, 7622, 13174, 1106, 286, 456, 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_edgengram_tokenizer() { let tokenizer = NGramTokenizer::new("hello world", 2, 3, Edge::Left); let tokens = tokenizer.collect::<Vec<Token>>(); assert_eq!(tokens, vec![ Token { term: Term::from_string("he"), position: 1 }, Token { term: Term::from_s...
rust_cleaned_test_functions.jsonl/50143
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32370, 70, 826, 2396, 6458, 3135, 368, 341, 286, 1077, 45958, 284, 20018, 2396, 37434, 486, 931, 445, 14990, 1879, 497, 220, 17, 11, 220, 18, 11, 10349, 486, 5415, 317, 286, 1077, 11211, 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_bubble_sort() { let vect: Vec<i32> = vec![9, 7, 5, 3, 2, 0]; let expect: Vec<i32> = vec![0, 2, 3, 5, 7, 9]; let vect2: Vec<i32> = vec![-1, 0, 4, 5, 9, 25]; let expect2: Vec<i32> = vec![-1, 0, 4, 5, 9, 25]; let vect3: Vec<i32> = vec![84,...
rust_cleaned_test_functions.jsonl/134346
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 457 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 14600, 18435, 368, 341, 310, 1077, 55635, 25, 11312, 21897, 18, 17, 29, 284, 7486, 20703, 24, 11, 220, 22, 11, 220, 20, 11, 220, 18, 11, 220, 17, 11, 220, 15, 935, 310, 1077, 1720, 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_write() { let (_dir, engine) = new_engine(); let n = 10; let commit_ts = 10; let wb = new_write_batch(n, commit_ts); engine.write(wb).unwrap(); for i in 0..n { let key = new_encoded_key(i, commit_ts); assert_eq!(engine.get...
rust_cleaned_test_functions.jsonl/19580
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 368, 341, 286, 1077, 5453, 3741, 11, 4712, 8, 284, 501, 24823, 1428, 286, 1077, 308, 284, 220, 16, 15, 280, 286, 1077, 5266, 25023, 284, 220, 16, 15, 280, 286, 1077, 37858, 284, 501, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_print_mask() { fn test(mask: char) { let mut buf = [0u8; 100]; let mask_len = mask.len_utf8(); print_mask(25, mask, &mut &mut buf[..]).unwrap(); assert!(std::str::from_utf8(&buf[0..(25 * mask_len)]) .unwrap() ...
rust_cleaned_test_functions.jsonl/63665
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 292 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10064, 9999, 368, 341, 286, 5168, 1273, 35306, 25, 1161, 8, 341, 310, 1077, 5206, 6607, 284, 508, 15, 84, 23, 26, 220, 16, 15, 15, 935, 310, 1077, 6911, 6043, 284, 6911, 19406, 39453, 23, 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_hardware_addr_string_round_trip() { crate::init().unwrap(); assert_eq!("0c:c4:7a:7f:b6:32", mac!("0c:c4:7a:7f:b6:32").to_string()); assert_eq!("0c:c4:7a:7f:b6:32", mac!("0c-c4-7a-7f-b6-32").to_string()); assert_eq!("0c:c4:7a:7f:b6:32", mac!("0cc4.7a7f.b632").to_string()); }
rust_cleaned_test_functions.jsonl/49221
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 37750, 7387, 3904, 29896, 63883, 368, 341, 262, 17717, 486, 2327, 1005, 15454, 1428, 262, 2060, 10714, 17223, 15, 66, 48031, 19, 25, 22, 64, 25, 22, 69, 43973, 21, 25, 18, 17, 497, 8978,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_child_to_parent_to_child() { let mut child = 0; for _ in 0..50 { child = parent(child) } assert_eq!(child, 1_125_899_906_842_623); for _ in 0..50 { child = left_child(child).expect("no valid number returned"); } assert_eq!(child, 0); }
rust_cleaned_test_functions.jsonl/55327
{ "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, 17268, 2346, 15960, 2346, 17268, 368, 341, 262, 1077, 5206, 1682, 284, 220, 15, 280, 262, 369, 716, 304, 220, 15, 496, 20, 15, 341, 414, 1682, 284, 2681, 17794, 340, 262, 456, 262, 2060, 10714...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_operator_key_rotation_recovery() { let (env, op_tool, backend, mut storage) = launch_swarm_with_op_tool_and_backend(1, 0); // Rotate the operator key let (txn_ctx, new_operator_key) = op_tool.rotate_operator_key(&backend, false).unwrap(); assert_eq!(VMStatusView::Executed, txn_c...
rust_cleaned_test_functions.jsonl/64970
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 869 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40594, 3097, 44813, 91475, 368, 341, 262, 1077, 320, 3160, 11, 1179, 22785, 11, 19163, 11, 5206, 5819, 8, 284, 7050, 32581, 2178, 6615, 10287, 22785, 8378, 40011, 7, 16, 11, 220, 15, 626, 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_parser_auth_require() { let buf = vec![0x05, 0x02, 0x00, 0x01]; let (_, request) = parser_auth_require(buf.as_ref()).unwrap(); println!("Request: {:#?}", request); }
rust_cleaned_test_functions.jsonl/15186
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 92 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18517, 14014, 13793, 368, 341, 262, 1077, 6607, 220, 284, 7486, 20703, 15, 87, 15, 20, 11, 220, 15, 87, 15, 17, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 16, 935, 262, 1077, 39464, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_maybe_owned_methods() { let s = Slice("abcde"); assert!(s.is_slice()); assert!(!s.is_owned()); let o = Owned(String::from_str("abcde")); assert!(!o.is_slice()); assert!(o.is_owned()); }
rust_cleaned_test_functions.jsonl/56866
{ "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, 717, 49791, 51973, 36084, 368, 341, 286, 1077, 274, 284, 56476, 445, 13683, 450, 797, 286, 2060, 10297, 82, 2079, 26488, 1423, 286, 2060, 0, 3471, 82, 2079, 51973, 5231, 286, 1077, 297, 284, 850...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let mut trie = TrieMap::new(); let n = 300; for x in range_step(1, n, 2) { assert!(trie.insert(x, x + 1).is_none()); assert!(trie.contains_key(&x)); check_integrity(&trie.root); } for x in range_step(0, n, 2) ...
rust_cleaned_test_functions.jsonl/88417
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 590 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11946, 368, 341, 286, 1077, 5206, 59067, 284, 62783, 2227, 486, 931, 543, 286, 1077, 308, 284, 220, 18, 15, 15, 401, 286, 369, 856, 304, 2088, 11946, 7, 16, 11, 308, 11, 220, 17, 8, 341, 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...
6
#[test] fn test_lambda_scope() { do_check( r" fn quux(foo: i32) { let f = |bar, baz: i32| { <|> }; }", &["bar", "baz", "foo"], ); }
rust_cleaned_test_functions.jsonl/12171
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51884, 23199, 368, 341, 286, 653, 7200, 1006, 310, 435, 698, 310, 5168, 922, 2200, 71880, 25, 600, 18, 17, 8, 341, 394, 1077, 282, 284, 760, 2257, 11, 50247, 25, 600, 18, 17, 91, 341, 503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_balltree_untrained() { let tree = BallTree::default(); let e = tree.search_leaf(&vec![3., 4.9], 1); assert!(e.is_err()); let e = tree.search(&vec![3., 4.9], 1); assert!(e.is_err()); }
rust_cleaned_test_functions.jsonl/114548
{ "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, 55808, 9344, 4907, 35722, 368, 341, 286, 1077, 4916, 284, 12836, 6533, 486, 2258, 1428, 286, 1077, 384, 284, 4916, 9288, 38909, 2099, 4083, 20703, 18, 2572, 220, 19, 13, 24, 1125, 220, 16, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_str() { let uuid1 = Uuid::new_v4(); let s = uuid1.to_str(); assert!(s.len() == 32); assert!(s.iter().all(|c| c.is_digit_radix(16))); }
rust_cleaned_test_functions.jsonl/66552
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 2895, 368, 341, 286, 1077, 16040, 16, 284, 547, 2423, 486, 931, 2273, 19, 543, 286, 1077, 274, 284, 16040, 16, 2389, 2895, 1428, 286, 2060, 10297, 82, 19406, 368, 621, 220, 18, 17, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_list_output() { let bs = bytes::Bytes::from( r#"<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <Name>example-bucket</Name> <Prefix>photos/2006/</Prefix> <KeyCount>3</KeyCount> <MaxKeys>1000</MaxKeys> <Delimiter>/</Delimiter> <IsTruncated>...
rust_cleaned_test_functions.jsonl/98153
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 951 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 2019, 7645, 368, 341, 286, 1077, 17065, 284, 5820, 486, 7078, 486, 1499, 1006, 310, 435, 2, 22476, 852, 36018, 2077, 24967, 428, 1254, 1110, 82, 18, 28771, 905, 39510, 14, 17, 15, 15, 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_visibility_count() { let map = string_to_asteroid_map( ".#..#\n\ .....\n\ #####\n\ ....#\n\ ...##", ); assert_eq!(8, map.count_asteroids_visible_from(&(3, 4).into())); }
rust_cleaned_test_functions.jsonl/69385
{ "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, 71256, 3180, 368, 341, 286, 1077, 2415, 284, 914, 2346, 62, 2300, 588, 5376, 1006, 310, 5933, 2, 496, 88084, 77, 5661, 1797, 5241, 30801, 77, 5661, 1797, 68684, 59, 77, 5661, 1797, 21903, 88084,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_authority() { let authority = create_example(); assert_eq!( authority .soa() .wait() .unwrap() .iter() .next() .unwrap() .dns_class(), DNSClass::IN ); assert!(!authority ...
rust_cleaned_test_functions.jsonl/48165
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1763 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22938, 487, 368, 341, 262, 1077, 11198, 284, 1855, 39304, 1428, 262, 2060, 10714, 33673, 286, 11198, 198, 310, 659, 704, 64, 741, 310, 659, 11489, 741, 310, 659, 15454, 741, 310, 659, 2015, 741,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_indexer_for_field() { let mut schema_builder = Schema::builder(); let num_likes_field = schema_builder.add_u64_field("num_likes", INT_INDEXED); let body_field = schema_builder.add_text_field("body", TEXT); let schema = schema_builder.build(); let index = I...
rust_cleaned_test_functions.jsonl/43851
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3560, 261, 5478, 5013, 368, 341, 286, 1077, 5206, 10802, 28532, 284, 12539, 486, 17850, 543, 286, 1077, 1629, 89178, 5013, 284, 10802, 28532, 1364, 7300, 21, 19, 5013, 445, 2413, 89178, 497, 9221,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_forwarding_err() { let env = init_cluster(3); // kill leader env.stop(0); // sending request to ND1 and then forward to ND0 but fail let r = Client::to(1, env.clone()).set("a", "1"); assert!(r.is_err()); }
rust_cleaned_test_functions.jsonl/62216
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32121, 287, 9266, 368, 341, 262, 1077, 6105, 284, 2930, 28441, 7, 18, 626, 262, 442, 5505, 7653, 198, 262, 6105, 13227, 7, 15, 626, 262, 442, 11628, 1681, 311, 38444, 16, 323, 1221, 4637, 311,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_options_add_macro_definition_normal_value() { let mut c = Compiler::new().unwrap(); let mut options = CompileOptions::new().unwrap(); options.add_macro_definition("E", Some("main")); let result = c .compile_into_spirv_assembly( ...
rust_cleaned_test_functions.jsonl/41047
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 301 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74170, 8743, 2891, 58810, 31698, 13973, 3142, 368, 341, 286, 1077, 5206, 272, 284, 45631, 486, 931, 1005, 15454, 543, 286, 1077, 5206, 2606, 284, 54467, 3798, 486, 931, 1005, 15454, 543, 286, 2606...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bpf_loader_upgradeable_initialize_buffer() { let loader_id = bpf_loader_upgradeable::id(); let buffer_address = Pubkey::new_unique(); let buffer_account = AccountSharedData::new( 1, UpgradeableLoaderState::buffer_len(9).unwrap(), &loade...
rust_cleaned_test_functions.jsonl/3075
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 15897, 22139, 67794, 480, 40889, 7776, 368, 341, 286, 1077, 16047, 842, 284, 293, 15897, 22139, 67794, 480, 486, 307, 543, 286, 1077, 4147, 6744, 284, 22611, 792, 486, 931, 21218, 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
#[test] fn test_extension_fmt() { assert_eq!( format!("{}", Extension::EightBitMime), "8BITMIME".to_string() ); assert_eq!( format!("{}", Extension::Authentication(Mechanism::Plain)), "AUTH PLAIN".to_string() ); }
rust_cleaned_test_functions.jsonl/31597
{ "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, 31035, 38128, 368, 341, 286, 2060, 10714, 33673, 310, 3561, 79878, 26473, 486, 59085, 8344, 44, 545, 1326, 310, 330, 23, 20917, 44, 5660, 3263, 983, 3904, 741, 286, 1439, 286, 2060, 10714, 33673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_region_overlap() { let new_region = |start: &[u8], end: &[u8]| -> Region { let mut region = Region::default(); region.set_start_key(start.to_owned()); region.set_end_key(end.to_owned()); region }; // For normal case. ...
rust_cleaned_test_functions.jsonl/33458
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 701 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20627, 65794, 368, 341, 286, 1077, 501, 20627, 284, 760, 2468, 25, 44590, 84, 23, 1125, 835, 25, 44590, 84, 23, 29685, 1464, 17152, 341, 310, 1077, 5206, 5537, 284, 17152, 486, 2258, 543, 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_as_mut_ptr_zero_size() { let mut vec = LocalVec::<u8, 0>::new(); let ptr = vec.as_mut_ptr(); assert!(ptr.is_null()); }
rust_cleaned_test_functions.jsonl/126352
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 91 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11898, 29523, 4348, 19359, 2368, 368, 341, 286, 1077, 5206, 7486, 284, 8774, 10050, 27638, 84, 23, 11, 220, 15, 6831, 931, 543, 286, 1077, 10087, 284, 7486, 5357, 29523, 4348, 543, 286, 2060, 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
#[test] fn test_hadamard_stream() { use ark_bls12_381::Fr; use ark_std::test_rng; use ark_std::vec::Vec; use ark_std::UniformRand; let rng = &mut test_rng(); let lhs = &(0..100).map(|_| Fr::rand(rng)).collect::<Vec<_>>(); let rhs = &(0..100).map(|_| Fr::rand(rng)).collect::<Vec<_>>(...
rust_cleaned_test_functions.jsonl/98395
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 50954, 567, 12673, 368, 341, 262, 990, 55217, 880, 4730, 16, 17, 62, 18, 23, 16, 486, 22560, 280, 262, 990, 55217, 15656, 486, 1944, 66849, 280, 262, 990, 55217, 15656, 486, 4083, 486, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vec3a_funcs() { let x = vec3a(1.0, 0.0, 0.0); let y = vec3a(0.0, 1.0, 0.0); let z = vec3a(0.0, 0.0, 1.0); assert_eq!(1.0, x.dot(x)); assert_eq!(0.0, x.dot(y)); assert_eq!(-1.0, z.dot(-z)); assert_eq!(y, z.cross(x)); assert_eq!(z, x.cross(y)); assert_eq!(4.0, (...
rust_cleaned_test_functions.jsonl/23483
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 983 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 18, 64, 64124, 368, 341, 262, 1077, 856, 284, 7486, 18, 64, 7, 16, 13, 15, 11, 220, 15, 13, 15, 11, 220, 15, 13, 15, 317, 262, 1077, 379, 284, 7486, 18, 64, 7, 15, 13, 15, 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_assembler_control_flow() { test_case(&["IFB A, B"], &[0x0410]); test_case(&["IFC A, B"], &[0x0411]); test_case(&["IFE 1, B"], &[0x07f2, 1]); test_case(&["IFN B, 1"], &[0x8833]); test_case(&["IFG 30, B"], &[0x07f4, 30]); test_case(&["IFA A, B"], &[0x0415]); test_case(&...
rust_cleaned_test_functions.jsonl/44761
{ "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, 11898, 35401, 13436, 27441, 368, 341, 262, 1273, 19096, 2099, 1183, 2773, 33, 362, 11, 425, 7914, 44590, 15, 87, 15, 19, 16, 15, 2558, 262, 1273, 19096, 2099, 1183, 2773, 34, 362, 11, 425, 791...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_trait_with_code() { let _ = env_logger::try_init(); let mut conv_map = parse( "trait_with_code", r#" #[allow(dead_code)] #[swig_code = "let {to_var}: {to_var_type} = {from_var}.swig_into(env);"] trait SwigInto<T> { fn swig_into(self, env: *mut JN...
rust_cleaned_test_functions.jsonl/54595
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 990 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 78491, 6615, 4136, 368, 341, 286, 1077, 716, 284, 6105, 27413, 486, 1539, 6137, 543, 286, 1077, 5206, 5686, 5376, 284, 4715, 1006, 310, 330, 29432, 6615, 4136, 756, 310, 435, 2, 698, 1335...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_code_fetch_no_ext() { let (_temp_dir, deno_dir) = test_setup(); let cwd = std::env::current_dir().unwrap(); let cwd_string = String::from(cwd.to_str().unwrap()) + "/"; // Assuming cwd is the deno repo root. let module_specifier = "./js/main"; let containing_file = cwd_string.as_str...
rust_cleaned_test_functions.jsonl/42041
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 576 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4136, 11803, 6536, 9927, 368, 341, 220, 1077, 5453, 3888, 4334, 11, 3371, 78, 4334, 8, 284, 1273, 21363, 1428, 220, 1077, 46938, 284, 1460, 486, 3160, 486, 3231, 4334, 1005, 15454, 543, 220, 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_new_repository() { let uri = PkgUri::new_repository("fuchsia.com".to_string()).unwrap(); assert_eq!("fuchsia.com", uri.host()); assert_eq!("/", uri.path()); assert_eq!(None, uri.name()); assert_eq!(None, uri.variant()); assert_eq!(None, uri.package...
rust_cleaned_test_functions.jsonl/122320
{ "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, 5921, 47301, 368, 341, 286, 1077, 13071, 284, 393, 7351, 13899, 486, 931, 47301, 445, 69, 73391, 905, 3263, 983, 3904, 6011, 15454, 543, 286, 2060, 10714, 17223, 69, 73391, 905, 497, 13071, 17840,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_set_get_basic() { let mut ss = ScopeStack::new(); ss.set("a", Value::from("1")); let out = ss.get("a"); assert!(out.is_some()); assert_eq!(out.unwrap().as_str(), "1"); ss.set("b", Value::from("2")); let out = ss.get("b"); assert!(...
rust_cleaned_test_functions.jsonl/80363
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 3062, 34729, 368, 341, 286, 1077, 5206, 10870, 284, 34920, 4336, 486, 931, 1428, 286, 10870, 980, 445, 64, 497, 5162, 486, 1499, 445, 16, 4010, 286, 1077, 700, 284, 10870, 670, 445, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_strip_comments() { let mut good_chars = (0x20..=0x7E).map(|x: u8| x as char).collect::<String>(); good_chars.push(0x09 as char); good_chars.push(0x0A as char); good_chars.insert(0, 0x2F as char); good_chars.insert(0, 0x2F as char); { l...
rust_cleaned_test_functions.jsonl/103166
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 863 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66130, 30359, 368, 341, 286, 1077, 5206, 1661, 37418, 284, 320, 15, 87, 17, 15, 496, 28, 15, 87, 22, 36, 568, 2186, 22428, 87, 25, 575, 23, 91, 856, 438, 1161, 568, 17384, 27638, 703, 3913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_return_void() { let cxx = indoc! {" void do_nothing() { } "}; let hdr = indoc! {" void do_nothing(); "}; let rs = quote! { ffi::do_nothing(); }; run_test(cxx, hdr, rs, &["do_nothing"], &[]); }
rust_cleaned_test_functions.jsonl/9717
{ "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, 12511, 37775, 368, 341, 262, 1077, 272, 4146, 284, 1257, 509, 0, 314, 698, 286, 737, 653, 6536, 1596, 368, 341, 286, 456, 262, 330, 2440, 262, 1077, 36615, 284, 1257, 509, 0, 314, 698, 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_nocreat_causes_failure_when_outfile_not_present() { let fname = "this-file-does-not-exist.txt"; assert_fixture_not_exists!(&fname); let (fix, mut ucmd) = at_and_ucmd!(); ucmd.args(&["conv=nocreat", of!(&fname)]) .pipe_in("") .fails() .stderr_only( ...
rust_cleaned_test_functions.jsonl/99819
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 509, 1222, 666, 35143, 43618, 47636, 6068, 1192, 7913, 36976, 368, 341, 262, 1077, 22548, 284, 330, 574, 14203, 1737, 7072, 29169, 10187, 380, 3909, 876, 262, 2060, 74409, 7913, 9766, 0, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_orders_from_uuid_list() { if let Ok(mut conn) = connection::get_connection(None) { let list = "redis_list_test_key"; let pair = &Pair::new("btc", "usd", uuid::Uuid::new_v4()); let a: Order = Order::new("user1", OrderType::BID, OrderExecutionType::L...
rust_cleaned_test_functions.jsonl/104151
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 526 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 37129, 5673, 25540, 2019, 368, 341, 286, 421, 1077, 7622, 70305, 4534, 8, 284, 3633, 486, 455, 15866, 26717, 8, 341, 310, 1077, 1140, 284, 330, 21748, 2019, 4452, 3097, 876, 310, 1077, 671...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_line() { let line = Line::new(coord! { x: 1., y: 2. }, coord! { x: 2., y: 3. }); let coords = line.coords_iter().collect::<Vec<_>>(); assert_eq!( vec![coord! { x: 1., y: 2. }, coord! { x: 2., y: 3. },], coords ); }
rust_cleaned_test_functions.jsonl/21571
{ "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, 6528, 368, 341, 286, 1077, 1555, 284, 7083, 486, 931, 65037, 0, 314, 856, 25, 220, 16, 2572, 379, 25, 220, 17, 13, 2470, 16489, 0, 314, 856, 25, 220, 17, 2572, 379, 25, 220, 18, 13, 3011, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_class() { use html5ever::LocalName; let html = "<p class='my_class'>hey there</p>"; let fragment = Html::parse_fragment(html); let sel = Selector::parse("p").unwrap(); let element = fragment.select(&sel).next().unwrap(); assert_eq!( ...
rust_cleaned_test_functions.jsonl/37655
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 359 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21778, 4790, 368, 341, 286, 990, 5272, 20, 2054, 486, 7319, 675, 280, 286, 1077, 5272, 284, 4055, 79, 536, 1131, 2408, 4790, 6270, 35561, 1052, 522, 79, 6734, 286, 1077, 12289, 284, 19200, 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_pykmip_query_against_server_with_openssl() { let mut connector = SslConnector::builder(SslMethod::tls()).unwrap(); connector.set_verify(SslVerifyMode::NONE); connector .set_certificate_file("/etc/pykmip/server.crt", SslFiletype::PEM) .unwrap(); ...
rust_cleaned_test_functions.jsonl/26630
{ "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, 40291, 16017, 573, 5738, 62427, 267, 12015, 6615, 10287, 724, 3226, 368, 341, 286, 1077, 5206, 26989, 284, 328, 3226, 35954, 486, 17850, 3759, 3226, 3523, 486, 34488, 6011, 15454, 543, 286, 26989, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_string_value() { assert_eq!(string_value("abc"), "abc"); assert_eq!(string_value("\\n\\b\\u2a1A"), "\n\x08\u{2A1A}"); assert_eq!(string_value("\\\"\\\\"), "\"\\"); }
rust_cleaned_test_functions.jsonl/588
{ "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, 3904, 3142, 368, 341, 262, 2060, 10714, 10297, 917, 3142, 445, 13683, 3975, 330, 13683, 797, 262, 2060, 10714, 10297, 917, 3142, 29710, 77, 3422, 65, 3422, 84, 17, 64, 16, 32, 3975, 2917, 77, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_config_set_bad_cert() { let mut config = Config::new(); config .add_cert_chain_and_key("NOTACERT", "NOTAKEY") .unwrap(); }
rust_cleaned_test_functions.jsonl/51674
{ "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, 5332, 2602, 34199, 37097, 368, 341, 286, 1077, 5206, 2193, 284, 5532, 486, 931, 543, 286, 2193, 198, 310, 659, 718, 37097, 30583, 8378, 3097, 445, 14065, 1706, 3399, 497, 330, 14065, 32, 4784, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_env_var_is_not_set() { init(); let mut inner = KeyLogFileInner::new(Err(env::VarError::NotPresent)); assert!(inner .try_write("label", b"random", b"secret") .is_ok()); }
rust_cleaned_test_functions.jsonl/6061
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15879, 4612, 6892, 7913, 2602, 368, 341, 286, 2930, 543, 286, 1077, 5206, 9179, 284, 5309, 98857, 31597, 486, 931, 7, 7747, 16978, 486, 3962, 1454, 486, 2623, 21195, 1106, 286, 2060, 10297, 4382, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mul_assign() { let mut point = Point3::new(1.0, -4.0, 12.0); point *= -5.0; assert_approx_eq!(point.x(), -5.0); assert_approx_eq!(point.y(), 20.0); assert_approx_eq!(point.z(), -60.0); }
rust_cleaned_test_functions.jsonl/131708
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24944, 20688, 368, 341, 286, 1077, 5206, 1459, 284, 5126, 18, 486, 931, 7, 16, 13, 15, 11, 481, 19, 13, 15, 11, 220, 16, 17, 13, 15, 626, 286, 1459, 11404, 481, 20, 13, 15, 401, 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_rule_new() { let rule = Rule::ThreadTag(0, Tag::new("key".to_string(), "value".to_string())); assert_eq!( rule, Rule::ThreadTag(0, Tag::new("key".to_string(), "value".to_string())) ); }
rust_cleaned_test_functions.jsonl/124445
{ "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, 21124, 5921, 368, 341, 262, 1077, 5912, 284, 18100, 486, 6855, 5668, 7, 15, 11, 12353, 486, 931, 445, 792, 3263, 983, 3904, 1507, 330, 957, 3263, 983, 3904, 25138, 262, 2060, 10714, 33673, 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_consistent_check_tx_weight() { let tcs = vec![ ( "cmNvbnNlbnN1c19tZXNzYWdlcw==", TransactionWeight::ConsensusMessages, ), ("cmNvbnNlbnN1c19tZXNzYWdlcw==", "consensus_messages".into()), ("Y2dhcw==", "gas".into...
rust_cleaned_test_functions.jsonl/56323
{ "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, 31971, 18128, 7200, 17805, 15876, 368, 341, 286, 1077, 259, 4837, 284, 7486, 90515, 310, 2399, 394, 330, 6226, 45, 85, 11081, 45, 75, 11081, 45, 16, 66, 16, 24, 83, 80723, 45, 89, 98117, 8736,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_user_alias_regex() -> io::Result<()> { base_test_user_alias( "openshift-cluster/user", toml::toml! { [kubernetes] disabled = false format = "[$symbol$context( \\($user\\))]($style) in " [kubernetes.us...
rust_cleaned_test_functions.jsonl/53536
{ "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, 3317, 35947, 41832, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 2331, 4452, 3317, 35947, 1006, 310, 330, 24175, 47833, 93208, 11739, 756, 310, 311, 1014, 486, 37401, 75, 0, 341, 394, 508, 74, 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_get_remote_static() { let params: NoiseParams = "Noise_XX_25519_AESGCM_SHA256".parse().unwrap(); let mut h_i = Builder::new(params.clone()) .local_private_key(&get_inc_key(0)) .build_initiator().unwrap(); let mut h_r = Builder::new(params) .local_private_key(&...
rust_cleaned_test_functions.jsonl/27118
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 663 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 36425, 25360, 368, 341, 262, 1077, 3628, 25, 50523, 4870, 284, 330, 61819, 62, 6148, 62, 17, 20, 20, 16, 24, 69381, 38, 9985, 38096, 17, 20, 21, 3263, 6400, 1005, 15454, 543, 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_fetch_cosigs_signatures_invalid_signature() { let ctx = secp256k1::Secp256k1::new(); let mut spend = SpendTransaction::from_psbt_str("cHNidP8BAP0ZAQIAAAADSe9QbkOAlLapVzhNT2J2sCWXMqe2x7g7klEr3N6+p8AAAAAAAAYAAABwwCBKiamcBn5fj0oQ3WcAU+twE4XemcK4G2nlprqBKAAAAAAABgAAAAwCYIUh0y2bkIH8BV...
rust_cleaned_test_functions.jsonl/92907
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2568 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11803, 61192, 14462, 11172, 2789, 31433, 39859, 368, 341, 286, 1077, 5635, 284, 511, 4672, 17, 20, 21, 74, 16, 486, 8430, 79, 17, 20, 21, 74, 16, 486, 931, 543, 286, 1077, 5206, 8329, 284, 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...
2
#[test] fn test_remove_mention_string() { let str = "aaa<@!8379454856049>eeee"; let result = remove_mention_string(str); assert_eq!("aaaeeee", result); }
rust_cleaned_test_functions.jsonl/71855
{ "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, 18193, 26985, 290, 3904, 368, 341, 310, 1077, 607, 284, 330, 32646, 27, 31, 0, 23, 18, 22, 24, 19, 20, 19, 23, 20, 21, 15, 19, 24, 29, 68616, 876, 310, 1077, 1102, 284, 4057, 26985, 290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ram() { use rin_sys::ram::RamInfo; let mut r = RamInfo::new(); r.fetch(); assert_eq!(r.mem_used != 0, true); assert_eq!(r.mem_total != 0, true); assert_eq!(r.percent_free > 100.0 || r.percent_free < 0.0, false); assert_eq!(r.percent_used...
rust_cleaned_test_functions.jsonl/85308
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62124, 368, 1476, 286, 990, 53721, 20344, 486, 2396, 486, 63848, 1731, 401, 286, 1077, 5206, 435, 284, 15152, 1731, 486, 931, 543, 286, 435, 16121, 1428, 286, 2060, 10714, 10297, 81, 41493, 27803,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_code_verifier_min() { let code = PkceCodeChallenge::new_random_sha256_len(32); assert_eq!(code.1.secret().len(), 43); }
rust_cleaned_test_functions.jsonl/18578
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 68 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4136, 26042, 3049, 7260, 368, 341, 262, 1077, 2038, 284, 393, 74, 346, 2078, 62078, 486, 931, 22644, 48836, 17, 20, 21, 6043, 7, 18, 17, 317, 262, 2060, 10714, 10297, 1851, 13, 16, 53940, 1005...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_pass_update_by_action_after_settle_finalized_time() { ExtBuilder::build().execute_with(|| { let alice_pair = account_pair("Alice"); let bob_pair = account_pair("Bob"); let (players, players_pair) = get_sorted_peer(alice_pair.clone(), bob_pair.clone()); let in...
rust_cleaned_test_functions.jsonl/30737
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 686 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15464, 8882, 3710, 7931, 19844, 2602, 11239, 20676, 1506, 3009, 368, 341, 262, 9447, 3297, 486, 5834, 1005, 10257, 6615, 79453, 341, 286, 1077, 70433, 14445, 284, 2692, 14445, 445, 61686, 797, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_fold_useless_do_integration() { test("do { foo() } while(!true);", "foo()"); test("do { foo() } while(void 0);", "foo()"); test("do { foo() } while(undefined);", "foo()"); test("do { foo() } while(!void 0);", "for(;;)foo();"); // Make sure proper empty nodes are inserted. ...
rust_cleaned_test_functions.jsonl/114465
{ "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, 61187, 15951, 1717, 26309, 90250, 368, 341, 262, 1273, 445, 2982, 314, 15229, 368, 335, 1393, 3471, 1866, 1215, 497, 330, 7975, 45961, 262, 1273, 445, 2982, 314, 15229, 368, 335, 1393, 4333, 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_minimum_size_bytecode() { let mut bytecode: Vec<u8> = BIND_HEADER.to_vec(); append_section_header(&mut bytecode, SYMB_MAGIC_NUM, 0); append_section_header(&mut bytecode, INSTRUCTION_MAGIC_NUM, 0); assert_eq!( DecodedRules::Normal(DecodedBindRules { ...
rust_cleaned_test_functions.jsonl/24031
{ "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, 84855, 2368, 19737, 1851, 368, 341, 286, 1077, 5206, 75129, 25, 11312, 34837, 23, 29, 284, 91370, 20330, 2389, 13251, 543, 286, 8737, 16221, 8757, 2099, 6984, 75129, 11, 16079, 8412, 49194, 9631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_streaming_multiplex_framed() { if false { let addr = "0.0.0.0:12345".parse().unwrap(); TcpServer::new(MultiplexProto, addr) .serve(|| Ok(TestService)); } }
rust_cleaned_test_functions.jsonl/102965
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12673, 287, 91802, 2571, 761, 2396, 291, 368, 341, 9401, 262, 421, 895, 341, 286, 1077, 10789, 284, 330, 15, 13, 15, 13, 15, 13, 15, 25, 16, 17, 18, 19, 20, 3263, 6400, 1005, 15454, 543, 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...
3
#[test] fn test_get_key_value() { let query = Some("key=abc&value=def"); assert_eq!( (b"abc".to_vec(), b"def".to_vec()), get_key_value(query).unwrap() ); }
rust_cleaned_test_functions.jsonl/130763
{ "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, 3062, 3097, 3142, 368, 341, 286, 1077, 3239, 284, 4329, 445, 792, 28, 13683, 5, 957, 28, 750, 797, 286, 2060, 10714, 33673, 310, 320, 65, 1, 13683, 3263, 983, 13251, 1507, 293, 1, 750, 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
#[test] fn test_join_lines_use_tree() { check_join_lines( r" use syntax::{ algo::$0{ find_token_at_offset, }, ast, };", r" use syntax::{ algo::$0find_token_at_offset, ast, };", ); }
rust_cleaned_test_functions.jsonl/22498
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31017, 18323, 15951, 11663, 368, 341, 286, 1779, 31017, 18323, 1006, 310, 435, 698, 810, 19482, 74843, 262, 27928, 10002, 15, 515, 286, 1477, 6458, 3752, 6917, 345, 262, 1153, 262, 11763, 345, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_wise_perturb() { let a = step_wise_perturb(4, 2, true); assert_eq!( vec![vec![(0, 1), (1, 1)], vec![(0, 1), (2, 1)]], a.take(2).collect_vec() ); }
rust_cleaned_test_functions.jsonl/107646
{ "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, 11946, 1670, 1064, 620, 529, 9048, 368, 341, 286, 1077, 264, 284, 3019, 1670, 1064, 620, 529, 9048, 7, 19, 11, 220, 17, 11, 830, 317, 286, 2060, 10714, 33673, 310, 7486, 20703, 4083, 0, 9697, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ndp_options() { let mut bytes = Vec::new(); for i in 0..16 { bytes.push(i); // NDP uses len*8 for the actual length. bytes.push(i + 1); // Write remaining 6 bytes. for j in 2..((i + 1) *...
rust_cleaned_test_functions.jsonl/43492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 528 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 43544, 79, 8743, 368, 341, 310, 1077, 5206, 5820, 284, 11312, 486, 931, 543, 310, 369, 600, 304, 220, 15, 496, 16, 21, 341, 394, 5820, 2552, 1956, 317, 394, 442, 53650, 5711, 2422, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_partial_eq() { let (small, big) = ((1, 2, 3), (3, 2, 1)); assert_eq!(small, small); assert_eq!(big, big); assert_ne!(small, big); assert_ne!(big, small); }
rust_cleaned_test_functions.jsonl/123990
{ "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, 52068, 10714, 368, 341, 262, 1077, 320, 9004, 11, 2409, 8, 284, 1781, 16, 11, 220, 17, 11, 220, 18, 701, 320, 18, 11, 220, 17, 11, 220, 16, 1106, 262, 2060, 10714, 10297, 9004, 11, 2613, 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_parse_config_v4() { let config = r#"ip: {}"#; let transformer: Transformers = serde_yaml::from_str(config).unwrap(); if let Transformers::Ip(transformer) = &transformer { assert_eq!(transformer.kind, None); } }
rust_cleaned_test_functions.jsonl/22470
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5332, 2273, 19, 368, 341, 286, 1077, 2193, 284, 435, 55543, 573, 25, 4687, 57676, 280, 286, 1077, 42578, 25, 80532, 284, 61570, 64380, 486, 1499, 2895, 8754, 568, 15454, 543, 286, 421, 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_bit_and() { let mut aggr = AggBitAnd { c: 0xffffffffffffffff, }; let cfg = EvalConfig::default_for_test(); let mut ctx = EvalContext::new(Arc::new(cfg)); assert_eq!(aggr.c, u64::MAX); let data = vec![ Datum::U64(1), ...
rust_cleaned_test_functions.jsonl/34282
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 433 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 8378, 368, 341, 286, 1077, 5206, 933, 901, 284, 4598, 70, 8344, 3036, 341, 310, 272, 25, 220, 15, 41798, 53697, 345, 286, 2605, 286, 1077, 13286, 284, 58239, 2648, 486, 2258, 5478, 4452, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_purge_old_received_cache() { let mut crds = Crds::default(); let mut push = CrdsGossipPush::default(); let mut ci = ContactInfo::new_localhost(&solana_sdk::pubkey::new_rand(), 0); ci.wallclock = 0; let value = CrdsValue::new_unsigned(CrdsData::ContactInfo(...
rust_cleaned_test_functions.jsonl/10967
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 501 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 39823, 21108, 40783, 11529, 368, 341, 286, 1077, 5206, 1560, 5356, 284, 4553, 5356, 486, 2258, 543, 286, 1077, 5206, 4484, 284, 4553, 5356, 38, 41473, 16644, 486, 2258, 543, 286, 1077, 5206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_short_vec_json() { let vec = BuVector(vec![0, 1, 2]); let s = serde_json::to_string(&vec).unwrap(); assert_eq!(s, "[[3],0,1,2]"); }
rust_cleaned_test_functions.jsonl/51308
{ "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, 16673, 13251, 9455, 368, 341, 286, 1077, 7486, 284, 27227, 3781, 25592, 20703, 15, 11, 220, 16, 11, 220, 17, 2558, 286, 1077, 274, 284, 61570, 9455, 486, 983, 3904, 2099, 4083, 568, 15454, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_from_into_field_traits() { assert_ser_tokens(&TupleFieldFromSign(Sign::Negative), &[ Token::NewtypeStruct { name: "TupleFieldFromSign" }, Token::I32(-1), ]); assert_ser_tokens(&TupleFieldFromSign(Sign::Zero), &[ Token::NewtypeStruct { name: "TupleFieldFromSign...
rust_cleaned_test_functions.jsonl/59156
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 45514, 5013, 39693, 368, 341, 262, 2060, 75861, 28838, 2099, 28681, 1877, 3830, 7264, 3759, 622, 486, 38489, 701, 609, 9640, 286, 9660, 486, 3564, 1313, 9422, 314, 829, 25, 330, 28681, 1877,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_call_expression() { expect_printed("a()", "a();\n"); expect_printed("a(a)", "a(a);\n"); expect_printed("a(a, b)", "a(a, b);\n"); expect_printed("a(3 + 3)", "a(3 + 3);\n"); expect_printed("a();b();", "a();\nb();\n"); expect_printed("a(b, ...c, ...d)", "a(b, ...c, ...d);\n"...
rust_cleaned_test_functions.jsonl/93420
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13429, 28068, 368, 341, 262, 1720, 10064, 291, 445, 64, 50514, 330, 64, 2129, 59, 77, 797, 262, 1720, 10064, 291, 445, 64, 2877, 11583, 330, 64, 2877, 44388, 77, 797, 262, 1720, 10064, 291, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extract_tokens() { let body = fetch_string("http://s.ytimg.com/yts/jsbin/player-en_US-vflGR-A-c/base.js"); let tokens = extract_tokens(&body); assert!(!tokens.is_empty()); }
rust_cleaned_test_functions.jsonl/61944
{ "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, 39123, 28838, 368, 341, 262, 1077, 2487, 284, 7807, 3904, 445, 1254, 1110, 82, 2384, 83, 1892, 905, 26491, 2576, 9113, 6863, 59503, 20767, 13467, 8273, 1489, 8626, 6691, 1786, 26090, 2857, 797, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_boolean_array_builder_append_slice_large() { let arr1 = BooleanArray::from(vec![true; 513]); let mut builder = BooleanArray::builder(512); builder.append_slice(&[true; 513]).unwrap(); let arr2 = builder.finish(); assert_eq!(arr1, arr2); }
rust_cleaned_test_functions.jsonl/74115
{ "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, 46642, 3858, 28532, 26041, 26488, 45228, 368, 341, 286, 1077, 2890, 16, 284, 6992, 1857, 486, 1499, 25592, 20703, 1866, 26, 220, 20, 16, 18, 10149, 286, 1077, 5206, 7363, 284, 6992, 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...
1
#[test] fn test_db_path() { let path = Path::new("../../test_data/usak"); let collection_path = CollectionCache::db_path(path, "databaze").unwrap(); let name = collection_path.file_name().unwrap().to_string_lossy(); let name: Vec<_> = name.split('_').collect(); assert_eq!...
rust_cleaned_test_functions.jsonl/13252
{ "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, 8685, 2638, 368, 341, 286, 1077, 1815, 284, 7933, 486, 931, 36800, 1944, 1769, 62431, 585, 797, 286, 1077, 4426, 2638, 284, 11101, 8233, 486, 1999, 2638, 5581, 11, 330, 67, 2096, 9832, 1827, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_update_building_info() { let conn = db::connection::establish_connection(); conn.test_transaction::<_, Error, _>(|| { let mut b1 = create_test_building2(&conn); Building::insert(&conn, &b1); b1.name = String::from("Réjean Tremblay"); ...
rust_cleaned_test_functions.jsonl/92699
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 260 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 82397, 3109, 368, 341, 286, 1077, 4534, 284, 2927, 486, 7742, 486, 33400, 15866, 543, 1789, 286, 4534, 5958, 28884, 27638, 6878, 4600, 11, 716, 2235, 8484, 341, 310, 1077, 5206, 293, 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...
2
#[test] fn test_optopt_no_arg() { let long_args = vec!["--test".to_string()]; let mut opts = Options::new(); opts.optopt("t", "test", "testing", "TEST"); match opts.parse(&long_args) { Err(ArgumentMissing(_)) => {} _ => panic!(), } let short_args = vec!["-t".to_string()];...
rust_cleaned_test_functions.jsonl/52360
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 2912, 6536, 6057, 368, 341, 262, 1077, 1293, 8384, 284, 7486, 0, 1183, 313, 1944, 3263, 983, 3904, 33800, 262, 1077, 5206, 12185, 284, 14566, 486, 931, 543, 262, 12185, 28102, 2912, 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...
3
#[test] fn test_var_u64() { test_varint!( get_u64_samples(), encode_var_u64, try_decode_var_u64, write_var_u64, read_var_u64, ); // Check encoded output with ProtoBuf let samples = get_u64_samples(); for sample i...
rust_cleaned_test_functions.jsonl/56921
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 445 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4612, 7300, 21, 19, 368, 341, 286, 1273, 4612, 396, 33673, 310, 633, 7300, 21, 19, 18297, 3148, 310, 16164, 4612, 7300, 21, 19, 345, 310, 1430, 15227, 4612, 7300, 21, 19, 345, 310, 3270, 4612,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_standard_information() { let mut testfs1 = crate::helpers::tests::testfs1(); let ntfs = Ntfs::new(&mut testfs1).unwrap(); let mft = ntfs .file(&mut testfs1, KnownNtfsFileRecordNumber::MFT as u64) .unwrap(); let mut mft_attributes = mft.attr...
rust_cleaned_test_functions.jsonl/8640
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 434 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48688, 35212, 368, 341, 286, 1077, 5206, 1273, 3848, 16, 284, 17717, 486, 21723, 486, 23841, 486, 1944, 3848, 16, 543, 286, 1077, 31412, 3848, 284, 451, 83, 3848, 486, 931, 2099, 6984, 1273, 384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_set_dim_unlimited_size() { const DIM_NAME: &str = "dim_1"; const DIM_SIZE: usize = 10; let mut data_set = DataSet::new(); assert_eq!(0, data_set.num_dims()); assert_eq!(false, data_set.has_unlimited_dim()); assert_eq!(false, data_set.has_dim(DIM_NAME)); as...
rust_cleaned_test_functions.jsonl/40508
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 491 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 10791, 4907, 18235, 2368, 368, 341, 262, 733, 50859, 4708, 25, 609, 495, 284, 330, 12927, 62, 16, 876, 262, 733, 50859, 4098, 25, 22301, 284, 220, 16, 15, 401, 262, 1077, 5206, 821, 2602...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_modules_is_in_alphabetical_order() { let mut sorted_modules: Vec<&str> = ALL_MODULES.to_vec(); sorted_modules.sort_unstable(); assert_eq!(sorted_modules.as_slice(), ALL_MODULES); }
rust_cleaned_test_functions.jsonl/11749
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 15848, 6892, 1243, 8418, 18485, 938, 7869, 368, 341, 286, 1077, 5206, 10615, 15848, 25, 11312, 52244, 495, 29, 284, 13097, 95742, 2389, 13251, 543, 286, 10615, 15848, 10614, 4907, 27992, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_camera_returns_corners() { let width = 16.0; let height = 16.0; let camera = Camera::new_at_zero(width, height, 90.0); let vec2 = camera.map_pixel_to_plane(0, 0); // For a quadratic camera and a standard fov of 90 // these tests should hold true because ass...
rust_cleaned_test_functions.jsonl/106530
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 337 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29843, 58900, 82774, 368, 341, 9401, 262, 1077, 2374, 284, 220, 16, 21, 13, 15, 280, 262, 1077, 2608, 284, 220, 16, 21, 13, 15, 280, 262, 1077, 6249, 284, 14332, 486, 931, 3752, 19359, 16425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fold_arithmetic_infinity() { fold("x=-Infinity-2", "x=-Infinity"); fold("x=Infinity-2", "x=Infinity"); fold("x=Infinity*5", "x=Infinity"); fold("x = Infinity ** 2", "x = Infinity"); fold("x = Infinity ** -2", "x = 0"); }
rust_cleaned_test_functions.jsonl/122186
{ "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, 61187, 25842, 25922, 1243, 19888, 368, 341, 262, 11555, 445, 87, 10829, 45090, 12, 17, 497, 330, 87, 10829, 45090, 797, 262, 11555, 445, 87, 28, 45090, 12, 17, 497, 330, 87, 28, 45090, 797, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_fame_start_date() { crate::grit_test::set_test_logging(LOG_LEVEL); let td: TempDir = crate::grit_test::init_repo(); let path = td.path().to_str().unwrap(); let utc_dt = NaiveDate::parse_from_str("2020-03-26", "%Y-%m-%d").unwrap(); let ed = Local...
rust_cleaned_test_functions.jsonl/5820
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 510 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 761, 373, 4906, 4164, 368, 341, 286, 17717, 486, 901, 275, 4452, 486, 746, 4452, 59982, 24850, 17415, 626, 286, 1077, 17941, 25, 19944, 6184, 284, 17717, 486, 901, 275, 4452, 486, 2327, 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...
2
#[test] fn test_filter_map() { let it = (0..).step_by(1).take(10) .filter_map(|x| if x % 2 == 0 { Some(x*x) } else { None }); assert_eq!(it.collect::<Vec<usize>>(), [0*0, 2*2, 4*4, 6*6, 8*8]); }
rust_cleaned_test_functions.jsonl/25893
{ "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, 8727, 5376, 368, 341, 262, 1077, 432, 284, 320, 15, 496, 568, 9520, 3710, 7, 16, 568, 22769, 7, 16, 15, 340, 286, 659, 5315, 5376, 22428, 87, 91, 421, 856, 1018, 220, 17, 621, 220, 15, 314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_server_rejects_empty_sni_extension() { fn empty_sni_payload(msg: &mut Message) { if let MessagePayload::Handshake(hs) = &mut msg.payload { if let HandshakePayload::ClientHello(ch) = &mut hs.payload { for mut ext in ch.extensions.iter_mut() { ...
rust_cleaned_test_functions.jsonl/63892
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 404 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12015, 1288, 583, 82, 15124, 643, 7751, 31035, 368, 341, 262, 5168, 4287, 643, 7751, 32813, 8119, 25, 609, 6984, 4856, 8, 341, 286, 421, 1077, 4856, 29683, 486, 2314, 29661, 3203, 82, 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...
5
#[test] fn test_lazy_double_projection() { let df = df! { "foo" => &[1, 2, 3] } .unwrap(); df.lazy() .select([col("foo").alias("bar")]) .select([col("bar")]) .collect() .unwrap(); }
rust_cleaned_test_functions.jsonl/133
{ "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, 49646, 24598, 72738, 368, 341, 262, 1077, 6764, 284, 6764, 0, 341, 286, 330, 7975, 1, 589, 44590, 16, 11, 220, 17, 11, 220, 18, 921, 262, 456, 262, 659, 15454, 543, 262, 6764, 84121, 741, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_spaces_max_age() { let h = Header::parse_header(&"max-age = 31536000".into()); assert_eq!(h.ok(), Some(StrictTransportSecurity { include_subdomains: false, max_age: 31536000u64 })); }
rust_cleaned_test_functions.jsonl/19637
{ "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, 21039, 67883, 6345, 32053, 368, 341, 286, 1077, 305, 284, 12104, 486, 6400, 8757, 2099, 1, 2810, 42941, 284, 220, 18, 16, 20, 18, 21, 15, 15, 15, 3263, 18122, 1423, 286, 2060, 10714, 10297, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let f = Error::builder(1234, 0) .set_data(Bytes::from("Hello World!")) .set_code(4444) .build(); try_codec(f); }
rust_cleaned_test_functions.jsonl/41419
{ "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, 4096, 368, 341, 262, 1077, 282, 284, 4600, 486, 17850, 7, 16, 17, 18, 19, 11, 220, 15, 340, 286, 659, 746, 1769, 76423, 486, 1499, 445, 9707, 4337, 0, 5455, 286, 659, 746, 4136, 7, 19, 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
#[test] fn test_true_not_eql_true() { let text = " {% if true != true %} true {% else %} false {% endif %} "; assert_template_result!(" false ", text); }
rust_cleaned_test_functions.jsonl/28122
{ "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, 16082, 7913, 2204, 1470, 16082, 368, 341, 262, 1077, 1467, 284, 330, 52261, 421, 830, 961, 830, 1018, 92, 830, 52261, 770, 1018, 92, 895, 52261, 12330, 1018, 92, 7620, 262, 2060, 8693, 5287, 172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_illegal_request() { let expr = ExprDefBuilder::aggr_func(ExprType::Max, FieldTypeTp::Double) // Expect LongLong but give Real .push_child(ExprDefBuilder::column_ref(0, FieldTypeTp::LongLong)) .build(); AggrFnDefinitionParserExtremum::<Max>::new() ...
rust_cleaned_test_functions.jsonl/9280
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 329 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26743, 6428, 7893, 368, 341, 286, 1077, 15169, 284, 28819, 2620, 3297, 486, 351, 901, 9596, 7, 16041, 929, 486, 5974, 11, 84614, 62241, 486, 7378, 8, 442, 32085, 5724, 6583, 714, 2968, 8800, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_expr_after_path_colons() { assert!(parse_macro( r#" macro_rules! m { ($k:expr) => { f(K::$k); } } "#, ) .expand_statements(r#"m!(C("0"))"#) .descendants() .find(|token| token.kind() == ERROR) .is_some()); }
rust_cleaned_test_functions.jsonl/28759
{ "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, 21915, 19844, 2638, 10211, 2382, 368, 341, 262, 2060, 10297, 6400, 58810, 1006, 286, 435, 2, 698, 32606, 21407, 0, 296, 341, 262, 1711, 74, 96011, 8, 589, 341, 310, 282, 16738, 10002, 74, 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_join() { let t = JoinTemplate { s: &["foo", "bar", "bazz"], }; assert_eq!(t.render().unwrap(), "foo, bar, bazz"); }
rust_cleaned_test_functions.jsonl/8697
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 79 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31017, 368, 341, 262, 1077, 259, 284, 16471, 7275, 341, 286, 274, 25, 609, 1183, 7975, 497, 330, 2257, 497, 330, 65, 9802, 8097, 262, 2605, 262, 2060, 10714, 10297, 83, 8740, 1005, 15454, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let mut perms = Permissions { read: UnaryPermission { global_state: PermissionState::Prompt, ..Default::default() }, write: UnaryPermission { global_state: PermissionState::Prompt, ..Default::default() }, net: UnaryPer...
rust_cleaned_test_functions.jsonl/121181
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 985 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 368, 341, 262, 1077, 5206, 82282, 284, 53357, 341, 414, 1349, 25, 86951, 14966, 341, 286, 3644, 4387, 25, 18135, 1397, 486, 54615, 345, 286, 5241, 3675, 486, 2258, 741, 414, 1153, 414, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_build_object_attribute_value() { let value = Value::Object( vec![("boolean".to_string(), Value::Bool(true))] .into_iter() .collect(), ); let expected = AttributeValue { m: Some( vec![( ...
rust_cleaned_test_functions.jsonl/87601
{ "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, 20801, 5314, 16791, 3142, 368, 341, 286, 1077, 897, 284, 5162, 486, 1190, 1006, 310, 7486, 20703, 445, 6117, 3263, 983, 3904, 1507, 5162, 486, 11233, 3715, 22297, 394, 659, 18122, 11723, 741, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mkdirat_success_mode() { let expected_bits = stat::SFlag::S_IFDIR.bits() | stat::Mode::S_IRWXU.bits(); let tempdir = tempfile::tempdir().unwrap(); let filename = "example_subdir"; let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); as...
rust_cleaned_test_functions.jsonl/48648
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 12438, 266, 18632, 7302, 368, 341, 262, 1077, 3601, 20034, 284, 2793, 486, 50, 12135, 486, 50, 19035, 12251, 38440, 368, 760, 2793, 486, 3636, 486, 50, 17138, 65376, 52, 38440, 543, 262, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_added_file() { let config = integration_test_utils::make_config_from_args(&[]); let output = integration_test_utils::run_delta(ADDED_FILE_INPUT, &config); let output = strip_ansi_codes(&output); assert!(output.contains("\nadded: a.py\n")); }
rust_cleaned_test_functions.jsonl/70036
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37653, 2458, 368, 341, 286, 1077, 2193, 284, 17590, 4452, 17309, 486, 6927, 5332, 5673, 8384, 2099, 56703, 286, 1077, 2550, 284, 17590, 4452, 17309, 486, 6108, 26710, 7, 1808, 11490, 8087, 21022, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bottommost_compression() { let path = tempdir_with_prefix("_rust_rocksdb_bottommost_compression"); let mut opts = DBOptions::new(); let cf_opts = ColumnFamilyOptions::new(); opts.create_if_missing(true); cf_opts.bottommost_compression(DBCompressionType::No); DB::open_cf( ...
rust_cleaned_test_functions.jsonl/34123
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25473, 3562, 2965, 4011, 368, 341, 262, 1077, 1815, 284, 2730, 3741, 6615, 13974, 16975, 35788, 26608, 14553, 1999, 25473, 3562, 2965, 4011, 797, 262, 1077, 5206, 12185, 284, 5952, 3798, 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_contains() { let mut e1: EnumSet<Foo> = EnumSet::new(); e1.insert(A); assert!(e1.contains(&A)); assert!(!e1.contains(&B)); assert!(!e1.contains(&C)); e1.insert(A); e1.insert(B); assert!(e1.contains(&A)); assert!(e1.contains...
rust_cleaned_test_functions.jsonl/2756
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 212 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 63598, 368, 341, 286, 1077, 5206, 384, 16, 25, 14086, 1649, 30499, 2624, 29, 284, 14086, 1649, 486, 931, 543, 286, 384, 16, 7030, 4346, 317, 286, 2060, 10297, 68, 16, 8786, 2099, 32, 1106, 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