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_insert_single() { let mut tree: RTree<_> = RTree::new(); tree.insert([0.02f32, 0.4f32]); assert_eq!(tree.size(), 1); assert!(tree.contains(&[0.02, 0.4])); assert!(!tree.contains(&[0.3, 0.2])); }
rust_cleaned_test_functions.jsonl/71301
{ "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, 17678, 19487, 368, 341, 286, 1077, 5206, 4916, 25, 431, 6533, 32399, 29, 284, 431, 6533, 486, 931, 543, 286, 4916, 7030, 2561, 15, 13, 15, 17, 69, 18, 17, 11, 220, 15, 13, 19, 69, 18, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reserve_exact() { let mut s = <String as StringExt>::new(); StringExt::reserve_exact(&mut s, 100); assert!(String::capacity(&s) >= 100); }
rust_cleaned_test_functions.jsonl/125206
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 89591, 71084, 368, 341, 286, 1077, 5206, 274, 284, 366, 703, 438, 923, 6756, 6831, 931, 543, 286, 923, 6756, 486, 56985, 71084, 2099, 6984, 274, 11, 220, 16, 15, 15, 317, 286, 2060, 10297, 703...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_overlapping() { use rustc_span::source_map::DUMMY_SP; let sp = |s, e| SpannedRange { span: DUMMY_SP, node: (s, e), }; assert_eq!(None, overlapping::<u8>(&[])); assert_eq!(None, overlapping(&[sp(1, EndBound::Included(4))])); assert_eq!( None, ...
rust_cleaned_test_functions.jsonl/29339
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 550 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15431, 90619, 368, 341, 262, 990, 23071, 66, 37382, 486, 2427, 5376, 486, 35, 58673, 17747, 401, 262, 1077, 978, 284, 760, 82, 11, 384, 91, 11903, 18694, 6046, 341, 286, 9390, 25, 422, 58673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eval_neg1() { let mut s = Stack::new(); s.push(Elt::Int(1)).unwrap(); assert!(s.eval(Op::Neg).is_ok()); assert_eq!(s.pop().unwrap(), Elt::Int(-1)); }
rust_cleaned_test_functions.jsonl/34522
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 28209, 16, 368, 341, 286, 1077, 5206, 274, 284, 14284, 486, 931, 543, 286, 274, 2552, 10722, 4832, 486, 1072, 7, 16, 4579, 15454, 543, 286, 2060, 10297, 82, 31710, 54494, 486, 47800, 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
#[test] fn test_merge_intervals() { let v = vec![ (0, 1), (1, 2), (2, 3), (11, 12), (13, 14), (10, 15), (11, 13), (20, 25), (24, 29), ]; let v_ok = vec![ (0, 3), (10, 15), (20, 29), ]; let vv = vec!...
rust_cleaned_test_functions.jsonl/6884
{ "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, 20888, 90807, 368, 341, 286, 1077, 348, 284, 7486, 90515, 310, 320, 15, 11, 220, 16, 701, 320, 16, 11, 220, 17, 701, 320, 17, 11, 220, 18, 1326, 310, 320, 16, 16, 11, 220, 16, 17, 701, 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_ecdsa_verify() { let message = String::from(&message()).as_bytes().to_vec(); let private_key = random::Random::bytes(&32); let signature = match Secp256k1::ecdsa_sign(&message, &private_key) { Ok(v) => v, Err(_) => panic!() }; let...
rust_cleaned_test_functions.jsonl/1846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 480 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36844, 96780, 35638, 368, 341, 286, 1077, 1943, 284, 923, 486, 1499, 2099, 1994, 6011, 300, 12524, 1005, 983, 13251, 543, 286, 1077, 869, 3097, 284, 4194, 486, 13999, 486, 9651, 2099, 18, 17, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_column_json() { let fields = vec![field_type(FieldTypeTp::JSON)]; let json: Json = r#"{"k1":"v1"}"#.parse().unwrap(); let data = vec![Datum::Null, Datum::Json(json)]; test_colum_datum(fields, data); }
rust_cleaned_test_functions.jsonl/24367
{ "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, 8744, 9455, 368, 341, 286, 1077, 5043, 284, 7486, 20703, 2566, 1819, 57788, 929, 62241, 486, 5370, 12587, 286, 1077, 2951, 25, 8308, 284, 435, 55543, 4913, 74, 16, 3252, 85, 16, 9207, 57676, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_set_item_refcnt() { let gil = Python::acquire_gil(); let py = gil.python(); let cnt; { let _pool = crate::GILPool::new(py); let v = vec![2]; let ob = v.to_object(py); let list = <PyList as PyTryFrom>::try_from(ob.as...
rust_cleaned_test_functions.jsonl/16314
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 294 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 5634, 7793, 15853, 368, 341, 286, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 286, 1077, 4510, 284, 342, 321, 43193, 1428, 286, 1077, 13195, 280, 286, 341, 310, 1077, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cancel_handler() { actix::System::new().block_on(async { struct WtfStream { interval: actix_rt::time::Interval, } impl Stream for WtfStream { type Item = CancelPacket; fn poll_next( self: Pin<&mut Self>, ...
rust_cleaned_test_functions.jsonl/56903
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 446 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28895, 10183, 368, 341, 262, 1160, 941, 486, 2320, 486, 931, 1005, 4574, 4470, 18285, 341, 286, 2036, 467, 8935, 3027, 341, 310, 9873, 25, 1160, 941, 40169, 486, 1678, 486, 10256, 345, 286, 555,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_peek_eq_parse() { let s = " a0 bb: val a1: &x b1: 4 b2: d a2: 4 a3: [1, 2, 3] a4: - [a1, a2] - 2 a5: *x "; let mut p = Parser::new(s.chars()); while { let event_peek = p.peek().unwrap().clone(); let event = p.next().unwrap(); ...
rust_cleaned_test_functions.jsonl/102459
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 29107, 10714, 21039, 368, 341, 286, 1077, 274, 284, 6228, 64, 15, 16520, 25, 1044, 198, 64, 16, 25, 609, 87, 198, 262, 293, 16, 25, 220, 19, 198, 262, 293, 17, 25, 294, 198, 64, 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_num_multiplication() { let mut cs = TestConstraintSystem::<Bls12>::new(); let n = AllocatedNum::alloc(cs.namespace(|| "a"), || Ok(Fr::from_str("12").unwrap())).unwrap(); let n2 = AllocatedNum::alloc(cs.namespace(|| "b"), || Ok(Fr::from_str("10").u...
rust_cleaned_test_functions.jsonl/4263
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 317 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4273, 91802, 1693, 368, 341, 286, 1077, 5206, 10532, 284, 3393, 17890, 2320, 27638, 33, 4730, 16, 17, 6831, 931, 1428, 286, 1077, 308, 4035, 310, 1674, 39463, 4651, 486, 4742, 41153, 50409, 79453,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_check_length() { let mut data = generate_data(); assert!(data.match_symbol("define", visitor_check_length_2).is_ok()); assert!(data.match_symbol("define", visitor_check_length_1).is_err()); }
rust_cleaned_test_functions.jsonl/101464
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 5118, 368, 341, 286, 1077, 5206, 821, 284, 6923, 1769, 543, 286, 2060, 10297, 691, 11072, 21179, 445, 1289, 497, 20181, 7200, 5118, 62, 17, 568, 285, 19817, 1423, 286, 2060, 10297, 691, 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
#[test] fn test_encode_timestamp() { assert_eq!(encode_timestamp(None), Utc::now().timestamp()); assert_eq!(encode_timestamp(Some(ts())), 1542182950); }
rust_cleaned_test_functions.jsonl/60622
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 85 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 23073, 368, 341, 286, 2060, 10714, 10297, 6180, 23073, 26717, 701, 547, 10413, 486, 3328, 1005, 13035, 1423, 286, 2060, 10714, 10297, 6180, 23073, 65405, 35864, 96501, 220, 16, 20, 19, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_len() { let mut stack = Stack::new(); assert_eq!(stack.len(), 0); for i in 0..MAX_LEN { let _ = stack.push(U256::MAX); assert_eq!(stack.len(), i + 1); } for i in 0..MAX_LEN { let _ = stack.pop(); assert_eq!...
rust_cleaned_test_functions.jsonl/90846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6043, 368, 341, 286, 1077, 5206, 5611, 284, 14284, 486, 931, 543, 286, 2060, 10714, 10297, 7693, 19406, 1507, 220, 15, 626, 286, 369, 600, 304, 220, 15, 496, 10586, 15536, 341, 310, 1077, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_not_doc() { let result = get_doc_strings(&[MetaNameValue { path: ident("blah").into(), eq_token: Default::default(), lit: litstr("foo"), }]); assert_eq!(&result, &None); }
rust_cleaned_test_functions.jsonl/96242
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7913, 18869, 368, 341, 310, 1077, 1102, 284, 633, 18869, 33500, 2099, 58, 12175, 675, 1130, 341, 394, 1815, 25, 3524, 445, 70614, 1827, 18122, 3148, 394, 8939, 6458, 25, 7899, 486, 2258, 3148, 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
#[test] fn test_all_args_fixed() { #[cross_check(yes, all_args(fixed = 0x1234))] fn abcd(_a: u8, _b: u64) {} abcd(0x7fu8, 1u64); expect_xcheck(FUNCTION_ENTRY_TAG, 0x7c93ee4f_u64); expect_xcheck(FUNCTION_ARG_TAG, 0x1234_u64); expect_xcheck(FUNCTION_ARG_TAG, 0x1234...
rust_cleaned_test_functions.jsonl/41192
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 242 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 8384, 37839, 368, 341, 286, 11506, 28842, 7200, 7021, 288, 11, 678, 8384, 955, 3286, 284, 220, 15, 87, 16, 17, 18, 19, 22297, 286, 5168, 668, 4385, 2490, 64, 25, 575, 23, 11, 716, 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_request_token() { let config = TwitterAppConfig { consumer_key: "", consumer_secret: "", callback_url: "http://127.0.0.1:3000/auth/callback", permission: TwitterAppPermission::ReadAndWrite, }; let app = TwitterApp::from(config); // Run async code;...
rust_cleaned_test_functions.jsonl/125871
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 6458, 368, 341, 262, 1077, 2193, 284, 6271, 2164, 2648, 341, 286, 11502, 3097, 25, 8324, 286, 11502, 21962, 25, 8324, 286, 4822, 2903, 25, 330, 1254, 1110, 16, 17, 22, 13, 15, 13, 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_match_char_with_surrounding_properties_with_cross() { let k = CellGrid::k(); let o = CellGrid::o(); let c = CellGrid::c(); let m = CellGrid::m(); let w = CellGrid::w(); let mut fragments = vec![line(k, o), line(c, w)]; ...
rust_cleaned_test_functions.jsonl/33916
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 579 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10708, 9232, 6615, 49946, 1049, 287, 25158, 6615, 35284, 368, 341, 286, 1077, 595, 284, 13972, 3543, 486, 74, 543, 286, 1077, 297, 284, 13972, 3543, 486, 78, 543, 286, 1077, 272, 284, 13972, 354...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_simplification() { let cx = mk_ctxt(); let item = quote_item!(&cx, fn new_int_alist<B>() -> alist<int, B> { fn eq_int(a: int, b: int) -> bool { a == b } return alist {eq_fn: eq_int, data: Vec::new()}; } ).unwrap(); let item_in = e::IIItemRe...
rust_cleaned_test_functions.jsonl/675
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 6383, 2404, 368, 341, 262, 1077, 20716, 284, 23789, 93285, 543, 262, 1077, 1509, 284, 12641, 5634, 0, 2099, 25844, 345, 286, 5168, 501, 4042, 8418, 380, 32519, 13555, 1464, 95695, 4159, 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_squared_length() { assert_eq!(Vec3::new(1.0, 2.0, 3.0).squared_length(), 14.0 as f64); }
rust_cleaned_test_functions.jsonl/35231
{ "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, 54641, 5118, 368, 341, 286, 2060, 10714, 10297, 10050, 18, 486, 931, 7, 16, 13, 15, 11, 220, 17, 13, 15, 11, 220, 18, 13, 15, 568, 82, 34249, 5118, 1507, 220, 16, 19, 13, 15, 438, 282, 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
#[test] fn test_t16() { init(); let result = t16( *SSO_VERSION, *APP_ID, *SUB_APP_ID, &*GUID, &APK_ID, &APK_VERSION_NAME, &*APK_SIGN, ); println!("{}", result.len()); println!("{:?}", resu...
rust_cleaned_test_functions.jsonl/104714
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 221 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 16, 21, 368, 341, 286, 2930, 543, 286, 1077, 1102, 284, 259, 16, 21, 1006, 310, 353, 1220, 46, 10678, 345, 310, 353, 14707, 3450, 345, 310, 353, 29038, 16410, 3450, 345, 310, 609, 9, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rotate_around_point_arbitrary() { let p = Point::new(5.0, 10.0); let rotated = p.rotate_around_point(-45., Point::new(10., 34.)); assert_eq!(rotated, Point::new(-10.506096654409877, 20.564971157455595)); }
rust_cleaned_test_functions.jsonl/46760
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 126 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60834, 62, 19454, 6085, 25842, 87851, 368, 341, 286, 1077, 281, 284, 5126, 486, 931, 7, 20, 13, 15, 11, 220, 16, 15, 13, 15, 317, 286, 1077, 45620, 284, 281, 35944, 62, 19454, 6085, 4080, 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_config_with_no_wallet_uses_default() { settings::set_config_value(settings::CONFIG_ENABLE_TEST_MODE,"false"); settings::set_config_value(settings::CONFIG_WALLET_KEY,"key"); let wallet_n = settings::DEFAULT_WALLET_NAME; wallet::create_wallet(wallet_n).unwrap(); ...
rust_cleaned_test_functions.jsonl/19800
{ "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, 5332, 6615, 6536, 62308, 62, 4776, 9993, 368, 341, 286, 5003, 486, 746, 5332, 3142, 23369, 486, 24652, 14379, 11641, 8414, 1335, 3849, 797, 286, 5003, 486, 746, 5332, 3142, 23369, 486, 24652, 2763...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_od_invalid_bytes() { const INVALID_SIZE: &str = "1fb4t"; const BIG_SIZE: &str = "1Y"; // NOTE: // According to the man page it should be valid in the same way it is valid for // '--read-bytes' and '--skip-bytes'. let options = [ "--read-bytes", "--s...
rust_cleaned_test_functions.jsonl/48833
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 529 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51797, 31433, 12524, 368, 341, 262, 733, 32269, 4098, 25, 609, 495, 284, 330, 16, 10798, 19, 83, 876, 262, 733, 36854, 4098, 25, 609, 495, 284, 330, 16, 56, 3302, 262, 442, 16743, 510, 1066, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_drop() { use core::any::Any; use std::collections::HashSet; static mut DROP_NUM: Option<HashSet<usize>> = None; unsafe { DROP_NUM = Some(HashSet::new()) }; fn drop_num() -> &'static HashSet<usize> { unsafe { DROP_NUM.as_ref().unwrap() } } fn drop_num_mut() ->...
rust_cleaned_test_functions.jsonl/21298
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 514 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29584, 368, 341, 262, 990, 6200, 486, 3767, 486, 8610, 280, 262, 990, 1460, 486, 51137, 486, 44601, 401, 262, 1099, 5206, 56942, 9631, 25, 6959, 27, 44601, 90244, 2452, 284, 2240, 280, 262, 1986...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_context_bytes_v2() { let fork_context = fork_context(); // Removing context bytes for v2 messages should error let mut encoded_bytes = encode( Protocol::BlocksByRange, Version::V2, RPCCodedResponse::Success(RPCResponse::BlocksByRange(B...
rust_cleaned_test_functions.jsonl/57907
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1937 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8467, 12524, 2273, 17, 368, 341, 286, 1077, 22435, 8467, 284, 22435, 8467, 1428, 286, 442, 66703, 2266, 5820, 369, 348, 17, 6605, 1265, 1465, 198, 286, 1077, 5206, 20498, 12524, 284, 16164, 1006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_do_thing() { let mut foo = Value::from(Foo::new()); let foo_mut_ref = foo.as_mut().unwrap(); let do_thing = &Type::from::<Foo>().assoc_fns()[2]; do_thing .call(Some(foo_mut_ref), vec![]) .expect("Failed to call Foo::do_thing"); assert_eq!(foo.borrow::<Foo>(...
rust_cleaned_test_functions.jsonl/122423
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26309, 62, 1596, 368, 341, 262, 1077, 5206, 15229, 284, 5162, 486, 1499, 7832, 2624, 486, 931, 1423, 262, 1077, 15229, 29523, 7793, 284, 15229, 5357, 29523, 1005, 15454, 1428, 262, 1077, 653, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_log() { let s = security_log(SecurityEvent::TestError) .error(&TestError::Error) .data(&SampleData { i: 0xff, s: vec![0x90, 0xcd, 0x80], }) .data("second_payload"); assert_eq!( s.to_string...
rust_cleaned_test_functions.jsonl/87614
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 267 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5224, 368, 341, 286, 1077, 274, 284, 4763, 5224, 3759, 18429, 1556, 486, 2271, 1454, 340, 310, 659, 841, 2099, 2271, 1454, 486, 1454, 340, 310, 659, 691, 2099, 17571, 1043, 341, 394, 600, 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_string() { equal_tokens! { <nodes> r#""hello world""# -> b::token_list(vec![b::string("hello world")]) } equal_tokens! { <nodes> r#"'hello world'"# -> b::token_list(vec![b::string("hello world")]) } }
rust_cleaned_test_functions.jsonl/5858
{ "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, 3904, 368, 341, 286, 6144, 28838, 0, 341, 310, 366, 20008, 397, 310, 435, 2, 3014, 14990, 1879, 3014, 2, 1464, 293, 486, 5839, 2019, 25592, 20703, 65, 486, 917, 445, 14990, 1879, 899, 2546, 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_json_ser() { let g = get_test_graph(); let json = serde_json::to_string(&g).unwrap(); let expected_json: String = r#"{"name":"Mir_0_3","nodes":[{"content":"<tr><td align=\"left\" balign=\"left\">hi<br/></td></tr><tr><td align=\"left\">hell</td></tr>","label":"bb0__0_3","t...
rust_cleaned_test_functions.jsonl/17869
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 325 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9455, 75861, 368, 341, 286, 1077, 342, 284, 633, 4452, 14738, 543, 286, 1077, 2951, 284, 61570, 9455, 486, 983, 3904, 2099, 70, 568, 15454, 543, 286, 1077, 3601, 9455, 25, 923, 284, 435, 55543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_persist() { let msg_atomic: &'static [u8] = b"atomic is the way"; let msg_seq: &'static [u8] = b"sequential is the way"; let path_atomic: &'static Path = Path::new("atomic"); let path_seq: &'static Path = Path::new("seq"); let directory = RamDirectory::cre...
rust_cleaned_test_functions.jsonl/12128
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 351 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 4975, 368, 341, 286, 1077, 3750, 51367, 25, 30136, 1978, 508, 84, 23, 60, 284, 293, 1, 6618, 374, 279, 1616, 876, 286, 1077, 3750, 14486, 25, 30136, 1978, 508, 84, 23, 60, 284, 293, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_error_kind_description() { assert_eq!(Str("foo".to_string()).description(), "foo"); assert_eq!(StaticStr("foo").description(), "foo"); assert_eq!(Eof.description(), "end of file"); }
rust_cleaned_test_functions.jsonl/41870
{ "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, 4096, 33162, 11448, 368, 341, 286, 2060, 10714, 10297, 2580, 445, 7975, 3263, 983, 3904, 6011, 4684, 1507, 330, 7975, 797, 286, 2060, 10714, 10297, 11690, 2580, 445, 7975, 1827, 4684, 1507, 330, 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
#[test] fn test_from_boxed_snapshot() { let snapshot = { let mut runtime = JsRuntime::new(RuntimeOptions { will_snapshot: true, ..Default::default() }); runtime.execute("a.js", "a = 1 + 2").unwrap(); let snap: &[u8] = &*runtime.snapshot(); Vec::from(snap).into_b...
rust_cleaned_test_functions.jsonl/4860
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 266 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 10194, 291, 53265, 368, 341, 262, 1077, 16295, 284, 341, 414, 1077, 5206, 15592, 284, 39122, 15123, 486, 931, 52610, 3798, 341, 286, 686, 53265, 25, 830, 345, 286, 5241, 3675, 486, 2258, 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_checked_failures() { let big = Ratio::new(128u8, 1); let small = Ratio::new(1, 128u8); assert_eq!(big.checked_add(&big), None); assert_eq!(small.checked_sub(&big), None); assert_eq!(big.checked_mul(&big), None); assert_eq!(s...
rust_cleaned_test_functions.jsonl/861
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56456, 22121, 1413, 368, 341, 310, 1077, 2409, 284, 50748, 486, 931, 7, 16, 17, 23, 84, 23, 11, 220, 16, 317, 310, 1077, 2613, 284, 50748, 486, 931, 7, 16, 11, 220, 16, 17, 23, 84, 23, 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_table_cell_prop_json() { let c = TableCellProperty::new() .vertical_merge(VMergeType::Continue) .grid_span(3) .width(200, WidthType::DXA); assert_eq!( serde_json::to_string(&c).unwrap(), r#"{"width":{"width":200,"widthTy...
rust_cleaned_test_functions.jsonl/22964
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 226 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5237, 16648, 21663, 9455, 368, 341, 286, 1077, 272, 284, 84370, 3052, 486, 931, 741, 310, 659, 15292, 20888, 7, 11187, 10080, 929, 486, 23526, 340, 310, 659, 4203, 37382, 7, 18, 340, 310, 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_hover_dyn_arg_has_goto_type_action() { check_actions( r#" trait Foo {} fn foo(ar<|>g: &dyn Foo) {} "#, expect![[r#" [ GoToType( [ HoverGotoTypeData { ...
rust_cleaned_test_functions.jsonl/66175
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1010 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 69213, 6057, 21778, 97732, 1819, 7931, 368, 341, 286, 1779, 25368, 1006, 310, 435, 2, 698, 29432, 33428, 5613, 8822, 15229, 37544, 27, 91, 29, 70, 25, 609, 43085, 33428, 8, 5613, 57676, 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_buffer_too_short() { let mut buffer = [0; 5]; assert!(CommandBuilder::create_execute(&mut buffer, true) .named("+BUFFERLENGTH") .finish() .is_err()); assert!(CommandBuilder::create_execute(&mut buffer, true) .named("+A") ...
rust_cleaned_test_functions.jsonl/116953
{ "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, 7776, 2346, 78, 16673, 368, 341, 286, 1077, 5206, 4147, 284, 508, 15, 26, 220, 20, 935, 286, 2060, 10297, 4062, 3297, 486, 3182, 44329, 2099, 6984, 4147, 11, 830, 340, 310, 659, 30245, 34973, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_len() { fn test(slice: &[u8], tag: u16, expected_res: Result<usize>) { let mut reader = BinReader::new(slice); let wire = reader.get_tag(tag).unwrap(); let res = reader.read_len(wire); match &expected_res { Ok(w) => ass...
rust_cleaned_test_functions.jsonl/69741
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 605 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 6043, 368, 341, 286, 5168, 1273, 75282, 25, 44590, 84, 23, 1125, 4772, 25, 575, 16, 21, 11, 3601, 4918, 25, 5714, 90244, 9231, 341, 310, 1077, 5206, 6604, 284, 29344, 5062, 486, 931, 752...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_space() { assert_eq!(space(" "), Ok(("", " "))); assert_eq!(space(" "), Ok(("", " "))); assert_eq!(space(""), Ok(("", ""))); assert_eq!(space("a"), Ok(("a", ""))); }
rust_cleaned_test_functions.jsonl/17453
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 126 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14663, 368, 341, 286, 2060, 10714, 10297, 8746, 445, 59312, 7622, 7, 19814, 330, 330, 4945, 286, 2060, 10714, 10297, 8746, 445, 262, 59312, 7622, 7, 19814, 330, 262, 330, 4945, 286, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_empty_stream() { let finder = BoundaryFinder::new(mock_stream(&[]), BOUNDARY); pin_mut!(finder); ready_assert_eq!(|cx| finder.as_mut().consume_boundary(cx), Ok(false)); }
rust_cleaned_test_functions.jsonl/25791
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 12673, 368, 341, 286, 1077, 43730, 284, 76416, 42300, 486, 931, 30389, 12673, 2099, 1294, 701, 425, 13579, 8642, 317, 286, 8983, 29523, 10297, 33339, 317, 286, 5527, 16553, 10714, 10297, 91, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_multi_iter() { let xs = [1,2,3,4]; let ys = [4,3,2,1]; assert!(eq(xs.iter(), ys.iter().rev())); assert!(lt(xs.iter(), xs.iter().skip(2))); }
rust_cleaned_test_functions.jsonl/36983
{ "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, 25133, 11723, 368, 341, 262, 1077, 11943, 284, 508, 16, 11, 17, 11, 18, 11, 19, 935, 262, 1077, 31810, 284, 508, 19, 11, 18, 11, 17, 11, 16, 935, 262, 2060, 10297, 11006, 53322, 19471, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decimal_display() -> Result<()> { let capacity = 10; let precision = 10; let scale = 2; let mut builder = DecimalBuilder::new(capacity, precision, scale); builder.append_value(101).unwrap(); builder.append_null().unwrap(); builder.append_v...
rust_cleaned_test_functions.jsonl/57210
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 572 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74429, 14825, 368, 1464, 5714, 71698, 341, 286, 1077, 8654, 284, 220, 16, 15, 280, 286, 1077, 16052, 284, 220, 16, 15, 280, 286, 1077, 5452, 284, 220, 17, 401, 286, 1077, 5206, 7363, 284, 2672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_basic() { setup_test!( "CARGO_CFG_TARGET_OS": "windows", "CARGO_CFG_TARGET_POINTER_WIDTH": "64" ); __test_basic(); }
rust_cleaned_test_functions.jsonl/64890
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 77 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 368, 341, 84571, 4452, 33673, 197, 197, 46316, 7581, 46, 21760, 29299, 30400, 788, 330, 27077, 756, 197, 197, 46316, 7581, 46, 21760, 29299, 28701, 13947, 788, 330, 21, 19, 698, 197, 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
#[test] fn test_the_anonymous_user_cannot_add_nodes_to_subnet() { local_test_on_nns_subnet(|runtime| { async move { let num_nodes_in_subnet = 4 as usize; let (init_mutate, subnet_id, unassigned_node_ids, _) = common::prepare_registry(num_nodes_in_subnet, 3); ...
rust_cleaned_test_functions.jsonl/128504
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1565 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16068, 12008, 9757, 3317, 666, 3401, 2891, 14896, 2346, 95681, 368, 341, 262, 2205, 4452, 4470, 1089, 4412, 95681, 22428, 22255, 91, 341, 286, 3312, 3271, 341, 310, 1077, 1629, 14896, 1243, 95681, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_messages_update_status() { init!("true"); let status = CString::new("MS-103").unwrap().into_raw(); let json = CString::new(r#"[{"pairwiseDID":"QSrw8hebcvQxiwBETmAaRs","uids":["mgrmngq"]}]"#).unwrap().into_raw(); let cb = return_types_u32::Return_U32::new().unwra...
rust_cleaned_test_functions.jsonl/19374
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 395 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23428, 8882, 4773, 368, 341, 286, 2930, 17223, 1866, 3071, 286, 1077, 2639, 284, 56956, 486, 931, 445, 4826, 12, 16, 15, 18, 1827, 15454, 1005, 18122, 16067, 543, 286, 1077, 2951, 284, 56956, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_credential_def_real() { let _setup = SetupLibraryWalletPool::init(); let (_, handle) = create_cred_def_real(false); let _source_id = get_source_id(handle).unwrap(); let _cred_def_id = get_cred_def_id(handle).unwrap(); let _schema_json = to_string(...
rust_cleaned_test_functions.jsonl/96767
{ "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, 8657, 666, 30320, 7844, 15266, 368, 341, 286, 1077, 716, 15188, 284, 18626, 16915, 38259, 10551, 486, 2327, 1428, 286, 1077, 39464, 3705, 8, 284, 1855, 73475, 7844, 15266, 3576, 626, 286, 1077, 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_subtraction() { let vector = Acceleration::new(1.0, 2.0, 3.0); let second_vec = Acceleration::new(2.0, 3.0, 4.0); let result = Acceleration::new(-1.0, -1.0, -1.0); assert_eq!(vector - second_vec, result); }
rust_cleaned_test_functions.jsonl/40024
{ "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, 5228, 26425, 368, 341, 262, 1077, 4621, 284, 46905, 367, 486, 931, 7, 16, 13, 15, 11, 220, 17, 13, 15, 11, 220, 18, 13, 15, 317, 262, 1077, 2086, 13251, 284, 46905, 367, 486, 931, 7, 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_buffer_errors() { Python::with_gil(|py| { let instance = Py::new( py, TestBufferErrors { buf: vec![0, 1, 2, 3], error: None, }, ) .unwrap(); assert!(PyBuffer::<u32>::get(instance.as_ref(p...
rust_cleaned_test_functions.jsonl/133912
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 946 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 7776, 20196, 368, 341, 262, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 286, 1077, 2867, 284, 5355, 486, 931, 1006, 310, 4510, 345, 310, 3393, 4095, 13877, 341, 394, 6607, 25, 7486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unbond_last_validator() { let mut stakes = new_stakes(&[(KEY1, 5)]); assert_eq!( Err(Error::CannotUnbondLastValidator), stakes.unbond(&PublicKey::new(KEY1), None) ); }
rust_cleaned_test_functions.jsonl/22343
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 64239, 12195, 64959, 368, 341, 286, 1077, 5206, 44425, 284, 501, 1261, 2050, 2099, 9697, 4784, 16, 11, 220, 20, 41958, 286, 2060, 10714, 33673, 310, 15495, 37396, 486, 17444, 1806, 64239, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_env_help() { assert!(new_ucmd!() .arg("--help") .succeeds() .no_stderr() .stdout .contains("OPTIONS:")); }
rust_cleaned_test_functions.jsonl/1537
{ "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, 15879, 26926, 368, 341, 262, 2060, 10297, 931, 68887, 2277, 0, 741, 286, 659, 858, 21549, 8653, 1138, 286, 659, 82, 29264, 82, 741, 286, 659, 2152, 93033, 741, 286, 659, 36358, 198, 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
#[test] fn test_8xy7_flipped_sub_assign() { let mut machine = Machine::new(TestContext::new()); // Seed registers machine.register_set(0xB, 0xA); machine.register_set(0xC, 0xD); machine.test_opcode(0x8BC7); assert_eq!(machine.register_get(0xB), 3); // Should not affect VY as...
rust_cleaned_test_functions.jsonl/127965
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 23, 4130, 22, 5081, 6450, 5228, 20688, 368, 341, 262, 1077, 5206, 5662, 284, 12960, 486, 931, 31159, 1972, 486, 931, 1423, 262, 442, 35822, 24740, 198, 262, 5662, 9929, 2602, 7, 15, 14377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_equation() { let res = parse_equation(Span::new("x=1")); assert!(res.is_ok()); if let (_, Decl::Equation(eq)) = res.unwrap() { assert_eq!(eq.span.location_offset(), 0); assert_eq!(eq.span.get_utf8_column(), 1); assert_eq!(eq.name, "x"); assert_e...
rust_cleaned_test_functions.jsonl/32917
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 41443, 367, 368, 341, 262, 1077, 592, 284, 4715, 41443, 367, 3759, 848, 486, 931, 445, 87, 28, 16, 4010, 262, 2060, 10297, 416, 2079, 19817, 1423, 262, 421, 1077, 39464, 31625, 486, 24509...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_detect_compiler_kind_rustc() { let f = TestFixture::new(); fs::create_dir(f.tempdir.path().join("lib")).unwrap(); fs::create_dir(f.tempdir.path().join("bin")).unwrap(); let rustc = f.mk_bin("rustc").unwrap(); let creator = new_creator(); l...
rust_cleaned_test_functions.jsonl/61642
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 661 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56457, 80910, 33162, 1710, 590, 66, 368, 341, 286, 1077, 282, 284, 3393, 18930, 486, 931, 543, 1789, 286, 8619, 486, 3182, 4334, 955, 32669, 3741, 3875, 1005, 5987, 445, 2740, 15197, 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...
1
#[test] fn test_query_lifetime_is_separate_from_nodes_lifetime() { allocations::record(|| { let query = r#"(call_expression) @call"#; let source = "a(1); b(2);"; let language = get_language("javascript"); let mut parser = Parser::new(); parser.set_language(language)....
rust_cleaned_test_functions.jsonl/77475
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 953 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 98827, 6892, 3453, 67598, 5673, 14896, 98827, 368, 341, 262, 69642, 486, 8548, 79453, 341, 286, 1077, 3239, 284, 435, 2, 29209, 6659, 28068, 8, 569, 6659, 57676, 280, 286, 1077, 2530, 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_set_invalid_memory() { let kvm = Kvm::new().unwrap(); let vm = kvm.create_vm().unwrap(); let invalid_mem_region = kvm_userspace_memory_region { slot: 0, guest_phys_addr: 0, memory_size: 0, userspace_addr: 0, flag...
rust_cleaned_test_functions.jsonl/86832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 31433, 19195, 368, 341, 286, 1077, 94748, 284, 730, 7338, 486, 931, 1005, 15454, 543, 286, 1077, 10995, 284, 94748, 2520, 39008, 1005, 15454, 543, 286, 1077, 8318, 12976, 20627, 284, 94748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cef_with_fixed_and_manual_headers() { let t = ManualAndFixedHeaders {}; assert_eq!( t.to_cef().unwrap(), "CEF:customVersion|polyverse|zerotect|V1|LinuxKernelFault|Linux Kernel Fault|10|" ) }
rust_cleaned_test_functions.jsonl/3453
{ "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, 2346, 50727, 69, 6615, 37839, 8378, 75428, 26719, 368, 341, 262, 1077, 259, 284, 14539, 3036, 13520, 10574, 9321, 262, 2060, 10714, 33673, 286, 259, 2389, 50727, 69, 1005, 15454, 3148, 286, 330, 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...
1
#[test] fn test_seating() { let input = r#"Alice would gain 54 happiness units by sitting next to Bob. Alice would lose 79 happiness units by sitting next to Carol. Alice would lose 2 happiness units by sitting next to David. Bob would gain 83 happiness units by sitting next to Alice. Bob would lose 7 h...
rust_cleaned_test_functions.jsonl/76165
{ "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, 3453, 1095, 368, 341, 286, 1077, 1946, 284, 435, 55543, 61686, 1035, 8722, 220, 20, 19, 23009, 8153, 553, 11699, 1790, 311, 14261, 624, 61686, 1035, 9052, 220, 22, 24, 23009, 8153, 553, 11699, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encrypt_2() { assert_eq!(encrypt(&b"48967 c_blist 0 0 0 0 0 0 0 0 17 185 302 882 942 999 1591 1592 4083 5065 5068 5069 5070 5206 5307 5361 5982 5991".to_vec(), 10685, false), b"\x42\x4C\x16\x6F\xC1\x5C\x60\x5B\x4D\x52\x4C\x45\x24\xCF\x7F\x7F\x7F\x7F\x7F\x7F\x7F\x7F\x9...
rust_cleaned_test_functions.jsonl/74793
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 354 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66593, 62, 17, 368, 341, 286, 2060, 10714, 10297, 32826, 2099, 65, 1, 19, 23, 24, 21, 22, 272, 880, 1607, 220, 220, 15, 220, 15, 220, 15, 220, 15, 220, 15, 220, 15, 220, 15, 220, 15, 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_args_save_output() { let mut args = Args::new(); assert_eq!(false, args.save_output()); args.set_save_output(true); assert_eq!(true, args.save_output()); }
rust_cleaned_test_functions.jsonl/118627
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 103 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8384, 15376, 7645, 368, 341, 286, 1077, 5206, 2827, 284, 17693, 486, 931, 543, 286, 2060, 10714, 10297, 3849, 11, 2827, 5681, 7645, 5231, 286, 2827, 980, 15376, 7645, 3715, 317, 286, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_boolean() { assert_eq!(boolean("true"), Ok(("", KdlNodeValue::Boolean(true)))); assert_eq!(boolean("false"), Ok(("", KdlNodeValue::Boolean(false)))); assert!(boolean("blah").is_err()); }
rust_cleaned_test_functions.jsonl/116075
{ "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, 46642, 368, 341, 286, 2060, 10714, 10297, 6117, 445, 1866, 3975, 7622, 7, 19814, 730, 8736, 1955, 1130, 486, 6890, 3715, 38776, 286, 2060, 10714, 10297, 6117, 445, 3849, 3975, 7622, 7, 19814, 730,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_array_collect() { let a = ["foo", "bar", "baz"].into_iter().collect::<Variant>(); assert_eq!(a.type_().as_str(), "as"); assert_eq!(a.n_children(), 3); assert_eq!(a.try_child_get::<String>(0), Ok(Some(String::from("foo")))); assert_eq!(a.try_child_get::<St...
rust_cleaned_test_functions.jsonl/30220
{ "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, 3858, 68140, 368, 341, 286, 1077, 264, 284, 4383, 7975, 497, 330, 2257, 497, 330, 42573, 5521, 18122, 11723, 1005, 17384, 27638, 20746, 3913, 286, 2060, 10714, 10297, 64, 4852, 62, 1005, 300, 2895...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_string() { assert_eq!( Time::from_str("10").unwrap(), Time::new(10, TimePrefix::Sec) ); assert_eq!( Time::from_str("10 s").unwrap(), Time::new(10, TimePrefix::Sec) ); assert_eq!( Time::from_...
rust_cleaned_test_functions.jsonl/38354
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2710 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 3904, 368, 341, 286, 2060, 10714, 33673, 310, 4120, 486, 1499, 2895, 445, 16, 15, 1827, 15454, 3148, 310, 4120, 486, 931, 7, 16, 15, 11, 4120, 14335, 486, 8430, 340, 286, 1439, 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_system_authorize_nonce_account_ix() { let nonce_pubkey = Pubkey::new_unique(); let authorized_pubkey = Pubkey::new_unique(); let new_authority_pubkey = Pubkey::new_unique(); let instruction = system_instruction::authorize_nonce_account( &nonce_p...
rust_cleaned_test_functions.jsonl/108615
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 631 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 17687, 22938, 551, 48508, 13500, 62686, 368, 341, 286, 1077, 39676, 34014, 792, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 18630, 34014, 792, 284, 22611, 792, 486, 931, 21218, 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...
1
#[test] fn test_to_capital() { assert_eq!(to_capital('A'), 'A'); assert_eq!(to_capital(CAPITAL_LONG_A), CAPITAL_LONG_A); assert_eq!(to_capital('a'), 'A'); assert_eq!(to_capital(SMALL_LONG_A), CAPITAL_LONG_A); assert_eq!(to_capital('Z'), 'Z'); assert_eq!(to_capital('z'), 'Z'); asse...
rust_cleaned_test_functions.jsonl/6241
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 16388, 2174, 368, 341, 262, 2060, 10714, 10297, 983, 16388, 2174, 492, 32, 4567, 364, 32, 1157, 262, 2060, 10714, 10297, 983, 16388, 2174, 3025, 2537, 33188, 19903, 1566, 701, 77287, 19903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_number_input() { // I64 let value = json!(31); let result = deserializer_v1(&value).expect("Failed to deserialize an Int64"); assert_eq!(result, GValue::Int64(31)); // F64 let value = json!(31.3); let result = deserializer_v1(&value).expec...
rust_cleaned_test_functions.jsonl/115554
{ "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, 5500, 5898, 368, 341, 286, 442, 358, 21, 19, 198, 286, 1077, 897, 284, 2951, 10297, 18, 16, 317, 286, 1077, 1102, 284, 939, 41939, 2273, 16, 2099, 957, 568, 17119, 445, 9408, 311, 35240, 458, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_values() { let gil = Python::acquire_gil(); let py = gil.python(); let mut v = HashMap::new(); v.insert(7, 32); v.insert(8, 42); v.insert(9, 123); let ob = v.to_object(py); let dict = <PyDict as PyTryFrom>::try_from(ob.as_ref(py)).u...
rust_cleaned_test_functions.jsonl/87943
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 300 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9146, 368, 341, 286, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 286, 1077, 4510, 284, 342, 321, 43193, 543, 286, 1077, 5206, 348, 284, 10528, 486, 931, 543, 286, 348, 7030, 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_tcp_client_stream_ipv4() { use trust_dns_proto::tests::tcp_client_stream_test; let exec = FuchsiaExec::new().expect("failed to create fuchsia executor"); tcp_client_stream_test::<DnsTcpStream, FuchsiaExec, FuchsiaTime>(ip!("127.0.0.1"), exec) }
rust_cleaned_test_functions.jsonl/70346
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45562, 8179, 12673, 49378, 19, 368, 341, 286, 990, 6950, 71125, 37689, 486, 23841, 486, 27161, 8179, 12673, 4452, 280, 286, 1077, 3883, 284, 434, 73391, 10216, 486, 931, 1005, 17119, 445, 16091, 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_type() { assert_eq!( runner().err("a {b: to-upper-case(1)}\n"), "Error: $string: 1 is not a string.\ \n ,\ \n1 | a {b: to-upper-case(1)}\ \n | ^^^^^^^^^^^^^^^^\ \n \'\ \n input.scss 1:7 root stylesheet", ...
rust_cleaned_test_functions.jsonl/16378
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 204 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1819, 368, 341, 286, 2060, 10714, 33673, 310, 22259, 1005, 615, 445, 64, 314, 65, 25, 311, 53262, 38485, 7, 16, 9139, 59, 77, 4461, 310, 330, 1454, 25, 400, 917, 25, 220, 16, 374, 537, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_genesis_impl() { let genesis: Genesis = Genesis::strict_decode(&GENESIS[..]).unwrap(); let contractid = genesis.contract_id(); let schemaid = genesis.schema_id(); let chain = genesis.chain(); assert_eq!( contractid, ContractId::fr...
rust_cleaned_test_functions.jsonl/18807
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16322, 13774, 21007, 368, 341, 286, 1077, 59366, 25, 40788, 284, 40788, 486, 6627, 15227, 2099, 11085, 83366, 95874, 10697, 15454, 1428, 286, 1077, 5116, 307, 284, 59366, 51635, 842, 543, 286, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_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 = GuestMemoryMmap::from_ranges(&[(Gues...
rust_cleaned_test_functions.jsonl/99242
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 415 }
[ 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_num_big_int() { let test_cases: &[(&str, BigInt, &CustomFormat)] = &[ ("\u{200e}-\u{200e}1𠜱000", BigInt::new(Sign::Minus, vec![1000]), &POLICIES[2]), ("\u{200e}-\u{200e}1𠜱00𠜱000", BigInt::new(Sign::Minus, vec![100000]), &POLICIES[2]), ("1", BigInt::new(Sign::Plus,...
rust_cleaned_test_functions.jsonl/32173
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2406 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4273, 36386, 4042, 368, 341, 262, 1077, 1273, 41427, 25, 44590, 2099, 495, 11, 62608, 11, 609, 10268, 4061, 7252, 284, 609, 9640, 286, 51658, 84, 90, 17, 15, 15, 68, 19732, 59, 84, 90, 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...
2
#[test] fn test_bad_serde_deserialize() { use serde::Deserialize; use crate::json; // Invalid length let zero31 = "[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]"; let mut json = json::de::Deserializer::from_str(zero31); assert!(<PublicKey as Des...
rust_cleaned_test_functions.jsonl/41398
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1640 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34199, 75861, 450, 15768, 9050, 368, 341, 286, 990, 61570, 486, 64465, 280, 286, 990, 17717, 486, 2236, 401, 286, 442, 13882, 3084, 198, 286, 1077, 7168, 18, 16, 284, 10545, 15, 11, 15, 11, 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_accountsdb_scan_snapshot_stores_illegal_bins2() { let mut stats = HashStats::default(); let bounds = Range { start: 0, end: 0 }; AccountsDb::scan_snapshot_stores(&[], &mut stats, 257, &bounds); }
rust_cleaned_test_functions.jsonl/37730
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 105 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55665, 1999, 28857, 53265, 1261, 4589, 26743, 6428, 44912, 17, 368, 341, 286, 1077, 5206, 10472, 284, 6531, 16635, 486, 2258, 543, 286, 1077, 14262, 284, 16437, 314, 1191, 25, 220, 15, 11, 835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_set() { let s = indexset! { 1, 7, 2, 3, }; itertools::assert_equal(s.sorted_by(|v1, v2| v1.cmp(v2)), vec![1, 2, 3, 7]); }
rust_cleaned_test_functions.jsonl/103155
{ "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, 18435, 2602, 368, 341, 262, 1077, 274, 284, 1922, 746, 0, 341, 286, 220, 16, 345, 286, 220, 22, 345, 286, 220, 17, 345, 286, 220, 18, 345, 262, 3634, 262, 41331, 486, 2207, 11478, 1141, 6909...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_f32() { fn check(b1: &BigUint, f: f32) { let b2 = BigUint::from_f32(f).unwrap(); assert_eq!(b1, &b2); assert_eq!(b1.to_f32().unwrap(), f); } check(&BigUint::zero(), 0.0); check(&BigUint::one(), 1.0); check(&BigU...
rust_cleaned_test_functions.jsonl/90123
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1570 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 761, 18, 17, 368, 341, 286, 5168, 1779, 1883, 16, 25, 609, 15636, 21570, 11, 282, 25, 282, 18, 17, 8, 341, 310, 1077, 293, 17, 284, 6164, 21570, 486, 1499, 761, 18, 17, 955, 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_types() { let _: Value = 127i8.into(); let _: Value = 2222i16.into(); let _: Value = 4444i32.into(); let _: Value = 10000i64.into(); let _v1: Value = 1.0f32.into(); let _v2: Value = 100.0f64.into(); let _v3: Value = Utc::now().into(); ...
rust_cleaned_test_functions.jsonl/134000
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 272 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9763, 368, 341, 286, 1077, 58536, 5162, 284, 220, 16, 17, 22, 72, 23, 39860, 543, 286, 1077, 58536, 5162, 284, 220, 17, 17, 17, 17, 72, 16, 21, 39860, 543, 286, 1077, 58536, 5162, 284, 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_serialization() { let msg = create_msg_node_a(); let ser = mc_util_serial::serialize(&msg.scp_msg.sender_id).unwrap(); let m: NodeID = mc_util_serial::deserialize(&ser).unwrap(); assert_eq!(msg.scp_msg.sender_id, m); let ser = mc_util_serial::serialize(&...
rust_cleaned_test_functions.jsonl/75124
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 724 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25602, 2022, 368, 341, 286, 1077, 3750, 284, 1855, 6483, 5084, 4306, 1428, 286, 1077, 1420, 284, 19223, 18974, 25602, 486, 24166, 2099, 3236, 514, 4672, 6483, 26730, 842, 568, 15454, 543, 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_reward_management() { use crate::mining::pallet::OnReward; new_test_ext().execute_with(|| { set_block_1(); setup_workers(1); setup_pool_with_workers(1, &[1]); // pid = 0 // Check stake before receiving any rewards assert_ok!(PhalaStakePool::contribute( Origin::sig...
rust_cleaned_test_functions.jsonl/60466
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2085 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38260, 45363, 368, 341, 298, 41819, 17717, 486, 1065, 287, 486, 79, 7464, 486, 1925, 59622, 280, 298, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 571, 8196, 7113, 62, 16, 543, 571, 84571, 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...
2
#[test] fn test_initialize() { let request = parse(br#"{"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"lldb","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTer...
rust_cleaned_test_functions.jsonl/113323
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 519 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40889, 368, 341, 286, 1077, 1681, 284, 4715, 41237, 55543, 4913, 5631, 3252, 21641, 2198, 16370, 22317, 2972, 915, 3252, 11562, 1851, 2198, 2972, 675, 3252, 9594, 18563, 6119, 2198, 19731, 915, 3252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_row_convert_int64() { let descr = make_column_descr![PhysicalType::INT64, LogicalType::INT_64]; let row = Field::convert_int64(&descr, 1111); assert_eq!(row, Field::Long(1111)); let descr = make_column_descr![PhysicalType::INT64, LogicalType::UINT_64]; let row = Field::conve...
rust_cleaned_test_functions.jsonl/43796
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 406 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8530, 34910, 4042, 21, 19, 368, 341, 262, 1077, 56217, 284, 1281, 8744, 64622, 20703, 39253, 929, 486, 3221, 21, 19, 11, 62069, 929, 486, 3221, 62, 21, 19, 935, 262, 1077, 2802, 284, 8601, 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_zeroed_reg_covar_failure() { let mut rng = Isaac64Rng::seed_from_u64(42); let xt = Array2::random_using((50, 1), Uniform::new(0., 1.), &mut rng); let yt = function_test_1d(&xt); let data = concatenate(Axis(1), &[xt.view(), yt.view()]).unwrap(); let dataset...
rust_cleaned_test_functions.jsonl/10369
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 630 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19359, 291, 4920, 50028, 277, 43618, 368, 341, 286, 1077, 5206, 28422, 284, 41508, 21, 19, 49, 968, 486, 22602, 5673, 7300, 21, 19, 7, 19, 17, 317, 286, 1077, 62390, 284, 2910, 17, 486, 11463,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_non_recursive_srv_query() { let cache = DnsLru::new(1, dns_lru::TtlConfig::default()); let client = mock(vec![error(), srv_message()]); let client = CachingClient::with_cache(cache, client, false); let ips = block_on(CachingClient::inner_lookup( ...
rust_cleaned_test_functions.jsonl/39911
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 485 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21637, 66242, 63921, 5738, 368, 341, 286, 1077, 6500, 284, 422, 4412, 43, 2672, 486, 931, 7, 16, 11, 44077, 907, 2672, 486, 51, 11544, 2648, 486, 2258, 5231, 1789, 286, 1077, 2943, 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...
1
#[test] fn test_rocksdb_directory() { assert_eq!( Blockstore::blockstore_directory(&ShredStorageType::RocksLevel), BLOCKSTORE_DIRECTORY_ROCKS_LEVEL ); assert_eq!( Blockstore::blockstore_directory(&ShredStorageType::RocksFifo( Blockstore...
rust_cleaned_test_functions.jsonl/11687
{ "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, 26608, 14553, 1999, 14846, 368, 341, 286, 2060, 10714, 33673, 310, 8362, 4314, 486, 4574, 4314, 14846, 2099, 2016, 1151, 5793, 929, 486, 49, 25183, 4449, 1326, 310, 28677, 43950, 43814, 8302, 3021, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fp2_squaring() { let mut a = Fp2::new(Fp::one(), Fp::one()); // u + 1 a.square(); assert_eq!( a, Fp2::new(Fp::zero(), Fp::from_repr(FpRepr::from(2)).unwrap(),) ); // 2u let mut a = Fp2::new(Fp::zero(), Fp::one()); // u a.sq...
rust_cleaned_test_functions.jsonl/84757
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1378 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34160, 17, 643, 446, 3249, 368, 341, 286, 1077, 5206, 264, 284, 434, 79, 17, 486, 931, 7832, 79, 486, 603, 1507, 434, 79, 486, 603, 13426, 442, 575, 488, 220, 16, 198, 286, 264, 38818, 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...
1
#[test] fn test_inspect_log_disconnect_stats_disconnect_source_ap() { let mut exec = fasync::TestExecutor::new().expect("Failed to create an executor"); let (mut cobalt_sender, _cobalt_receiver) = fake_cobalt_sender(); let (mut cobalt_1dot1_proxy, mut cobalt_1dot1_stream) = c...
rust_cleaned_test_functions.jsonl/50935
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1572 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34386, 987, 5224, 67972, 15381, 67972, 10347, 21093, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 2271, 25255, 486, 931, 1005, 17119, 445, 9408, 311, 1855, 458, 31558, 797, 286, 1077, 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_check_slots_are_valid_bad_slot() { let vote_state = VoteState::default(); let vote = Vote::new(vec![1], Hash::default()); let slot_hashes: Vec<_> = vec![(0, vote.hash)]; assert_eq!( vote_state.check_slots_are_valid(&vote, &slot_hashes), Er...
rust_cleaned_test_functions.jsonl/43743
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 182 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 54161, 56855, 8337, 34199, 27563, 368, 341, 286, 1077, 6910, 4387, 284, 34034, 1397, 486, 2258, 1428, 286, 1077, 6910, 284, 34034, 486, 931, 25592, 20703, 16, 1125, 6531, 486, 2258, 1423, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reference() { new_ucmd!() .arg("-v") .arg("--reference=/etc/passwd") .arg("/etc") .succeeds(); }
rust_cleaned_test_functions.jsonl/53692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25433, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 13645, 85, 1138, 286, 659, 858, 21549, 16291, 23286, 12107, 67070, 6377, 1138, 286, 659, 858, 4283, 12107, 1138, 286, 659, 82, 2926...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_struct_keep_comments_and_attrs_one_field_named() { check_assist( extract_struct_from_enum_variant, r#" enum A { $0One { // leading comment /// doc comment #[an_attr] foo: u32 // trailing comment } }"#, ...
rust_cleaned_test_functions.jsonl/36297
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 15126, 50293, 30359, 8378, 39578, 11667, 5013, 71834, 368, 341, 286, 1779, 12083, 380, 1006, 310, 8649, 15126, 5673, 31054, 46112, 345, 310, 435, 2, 698, 9018, 362, 341, 262, 400, 15, 3966,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_personal_top_three_highest_to_lowest() { let high_scores = HighScores::new(&[20, 10, 30]); assert_eq!(high_scores.personal_top_three(), vec![30, 20, 10]); }
rust_cleaned_test_functions.jsonl/78253
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 78035, 10426, 50016, 1523, 7504, 2346, 23767, 477, 368, 341, 262, 1077, 1550, 27198, 284, 5124, 55936, 486, 931, 2099, 58, 17, 15, 11, 220, 16, 15, 11, 220, 18, 15, 2558, 262, 2060, 10714, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_query_more_docs() { let dbname = "target/tests/querytestdbmoredocs"; let _ = Index::drop(dbname); let mut index = Index::open(dbname, Some(OpenOptions::Create)).unwrap(); let mut batch = Batch::new(); for ii in 1..100 { let data = ((ii % 25) +...
rust_cleaned_test_functions.jsonl/106285
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 374 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 36664, 49692, 368, 341, 286, 1077, 83492, 284, 330, 5657, 62468, 66762, 1944, 1999, 76, 3018, 14128, 876, 286, 1077, 716, 284, 8008, 486, 6719, 9791, 606, 626, 286, 1077, 5206, 1922, 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...
3
#[test] fn test_give_nonpod_typedef_by_value() { let cxx = indoc! {" Horace give_bob() { Horace a; a.a = 3; a.b = 4; return a; } "}; let hdr = indoc! {" #include <cstdint> struct Bob { uint32_t a; ...
rust_cleaned_test_functions.jsonl/9803
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 377 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 533, 21637, 39073, 42111, 4219, 3710, 3142, 368, 341, 262, 1077, 272, 4146, 284, 1257, 509, 0, 314, 698, 286, 14741, 578, 2968, 880, 674, 368, 341, 310, 14741, 578, 264, 280, 310, 264, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_handshake() { let req = TestRequest::default() .method(Method::POST) .to_http_request(); assert_eq!( HandshakeError::GetMethodRequired, handshake(&req).err().unwrap() ); let req = TestRequest::default().to_http_requ...
rust_cleaned_test_functions.jsonl/30007
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1900 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23194, 29661, 368, 341, 286, 1077, 4232, 284, 3393, 1900, 486, 2258, 741, 310, 659, 4393, 35419, 486, 2946, 340, 310, 659, 983, 25888, 7893, 543, 286, 2060, 10714, 33673, 310, 8536, 29661, 1454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mutable() { let mut headers = make_header!(b"Content-Length: 10"); *headers.get_mut::<ContentLength>().unwrap() = ContentLength(20); assert_eq!(headers.get_raw("content-length").unwrap(), &[b"20".to_vec()][..]); assert_eq!(*headers.get::<ContentLength>().unwra...
rust_cleaned_test_functions.jsonl/108099
{ "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, 3062, 717, 5922, 368, 341, 286, 1077, 5206, 7102, 284, 1281, 8757, 10297, 65, 1, 2762, 52493, 25, 220, 16, 15, 797, 286, 353, 7713, 670, 29523, 27638, 2762, 4373, 10483, 15454, 368, 284, 8883, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_define() -> Result<(), YolkError> { let mut env = Environment::new(); let function = Function::new( "function", &vec!["a".to_string()], &YolkExpr::Ident("a".to_string()), )?; env.define("function", function)?; Ok(()) }
rust_cleaned_test_functions.jsonl/131936
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15879, 51049, 368, 1464, 5714, 68843, 809, 22604, 1454, 29, 341, 262, 1077, 5206, 6105, 284, 11586, 486, 931, 543, 262, 1077, 729, 284, 5712, 486, 931, 1006, 286, 330, 1688, 756, 286, 609, 4083,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_skip_single_line_comment() { let mut reader = Lexer::from_str("//test\n1"); assert_tok( &mut reader, TokenKind::LitInt("1".into(), IntBase::Dec, IntSuffix::Int), 2, 1, ); assert_end(&mut reader, 2, 2); }
rust_cleaned_test_functions.jsonl/101119
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44830, 19487, 6528, 17638, 368, 341, 286, 1077, 5206, 6604, 284, 85082, 486, 1499, 2895, 29076, 1944, 1699, 16, 797, 286, 2060, 76162, 1006, 310, 609, 6984, 6604, 345, 310, 9660, 10629, 486, 68954...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_splice_inclusive_out_of_bounds() { let mut v = vec![1, 2, 3, 4, 5]; let a = [10, 11, 12]; v.splice(5..=5, a.iter().cloned()); }
rust_cleaned_test_functions.jsonl/24431
{ "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, 10123, 4754, 1243, 8336, 6068, 3575, 36878, 368, 341, 262, 1077, 5206, 348, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 262, 1077, 264, 284, 508, 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_struct() { use serde_derive::*; #[derive(Debug, Serialize, Deserialize, PartialEq)] struct Test { int: u32, seq: Vec<String>, } let test = Test { int: 1, seq: vec!["a".to_string(), "b".to_string()], ...
rust_cleaned_test_functions.jsonl/57073
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 368, 341, 286, 990, 61570, 35345, 533, 56162, 286, 11506, 27098, 42618, 11, 39900, 11, 48440, 11, 55039, 5563, 286, 2036, 3393, 341, 310, 526, 25, 575, 18, 17, 345, 310, 12981, 25, 11312,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_genotype_missing_allele_conversion() { let allele = GenotypeAllele::PhasedMissing; let converted: i32 = allele.into(); let expected = 1; assert_eq!(converted, expected); }
rust_cleaned_test_functions.jsonl/8783
{ "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, 16322, 4156, 40447, 62, 94520, 64132, 368, 341, 286, 1077, 69410, 284, 9316, 4156, 70451, 273, 486, 3357, 1475, 25080, 280, 286, 1077, 16099, 25, 600, 18, 17, 284, 69410, 39860, 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
#[test] fn test_decoder_decode_reason_phrase_empty() { let buffer = "RTSP/2.0 200 \r\n\ \r\n"; let mut decoder = Decoder::new(); let (result, bytes_decoded) = decoder.decode(buffer); assert_ne!(bytes_decoded, buffer.len()); assert_eq!( re...
rust_cleaned_test_functions.jsonl/123060
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 217 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49843, 15227, 38229, 66696, 15124, 368, 341, 286, 1077, 4147, 284, 330, 5350, 4592, 14, 17, 13, 15, 220, 17, 15, 15, 1124, 81, 1699, 5661, 2549, 1124, 81, 1699, 876, 286, 1077, 5206, 24551, 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_deposit_in_empty_leaf() { // Input data. let accounts = &[]; let account = WitnessTestAccount::new_empty(AccountId(1)); // Will not be included into ZkSyncState let deposit_op = DepositOp { priority_op: Deposit { from: account.account.address, toke...
rust_cleaned_test_functions.jsonl/69268
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 373 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 85798, 1243, 15124, 38909, 368, 341, 262, 442, 5571, 821, 624, 262, 1077, 9618, 284, 609, 15078, 262, 1077, 2692, 284, 48899, 2271, 7365, 486, 931, 15124, 65360, 764, 7, 16, 5905, 442, 4841, 537...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1