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_intonativefunc_noalloc() { let check_zst = |f: PyNativeFunc| assert_eq!(std::mem::size_of_val(f.as_ref()), 0); fn py_func(_b: bool, _vm: &crate::VirtualMachine) -> i32 { 1 } check_zst(py_func.into_func()); let empty_closure = || "foo".to_owned(...
rust_cleaned_test_functions.jsonl/34832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4042, 263, 1388, 2830, 6536, 4742, 368, 341, 286, 1077, 1779, 6415, 267, 284, 760, 69, 25, 5355, 20800, 9626, 91, 2060, 10714, 10297, 1834, 486, 10536, 486, 2141, 3575, 6189, 955, 5357, 7793, 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_snail_creation() { let sn = parse_line("[9,[8,7]]"); assert_eq!(9, sn.borrow().left_unwrap().borrow().value.unwrap()); let sn = parse_line("[[[[1,3],[5,3]],[[1,3],[8,7]]],[[[4,9],[6,9]],[[8,2],[7,3]]]]"); assert_eq!("[[[[1,3],[5,3]],[[1,3],[8,7]]],[[[4,9],[6,9]],...
rust_cleaned_test_functions.jsonl/51416
{ "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, 28022, 604, 46163, 368, 341, 286, 1077, 4131, 284, 4715, 6528, 10937, 24, 17259, 23, 11, 22, 5053, 797, 286, 2060, 10714, 10297, 24, 11, 4131, 83640, 1005, 2359, 4907, 10097, 1005, 71141, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_full_parses() { for buff in ALL_BUFFERS.iter_mut() { let orig_req = &buff[..]; let packet = buff.parse_with::<_, IgmpPacket<_>>(()).unwrap(); let msg_type = match packet { IgmpPacket::MembershipQueryV2(p) => p.prefix.msg_type, ...
rust_cleaned_test_functions.jsonl/65070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 401 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16372, 77113, 288, 368, 341, 286, 369, 11522, 304, 13097, 62128, 4321, 19471, 29523, 368, 341, 310, 1077, 2713, 17644, 284, 609, 25976, 95874, 935, 310, 1077, 10151, 284, 11522, 4632, 6615, 27638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_binary() { let classes = vec!["Cat".to_owned(), "Dog".to_owned()]; let mut metrics = MulticlassClassificationProductionPredictionMetrics::new(classes); metrics.update(( NumberOrString::String("Cat".to_owned()), NumberOrString::String("Cat".to_owned()), )); let labels = vec![ "Cat", "C...
rust_cleaned_test_functions.jsonl/38416
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 996 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31761, 368, 341, 10217, 6846, 284, 7486, 0, 1183, 26801, 3263, 983, 51973, 1507, 330, 48940, 3263, 983, 51973, 33800, 10217, 5206, 16734, 284, 22162, 69503, 85040, 44967, 88279, 27328, 486, 931, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_lowest_slot() { let ledger_path = get_tmp_ledger_path_auto_delete!(); let blockstore = Blockstore::open(ledger_path.path()).unwrap(); for i in 0..10 { let slot = i; let (shreds, _) = make_slot_entries(slot, 0, 1); blockstore.insert_shr...
rust_cleaned_test_functions.jsonl/9573
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 263 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23767, 477, 27563, 368, 341, 286, 1077, 46933, 2638, 284, 633, 16125, 38367, 1389, 2638, 27740, 11353, 0, 543, 286, 1077, 2504, 4314, 284, 8362, 4314, 486, 2508, 7, 50704, 2638, 3875, 6011, 15454,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_double_pawn_push() { let movegen = MoveGenerator::new(); let mut pos = Position::startpos(); assert_eq!( Ok(Move { kind: MoveKind::DoublePawnPush, from: Square::E2, to: Square::E4, }), movegen.parse_move(&pos, "e2e4"), ); pos.ma...
rust_cleaned_test_functions.jsonl/134619
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 284 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 24598, 620, 6379, 14218, 368, 341, 262, 1077, 3271, 4370, 284, 14561, 12561, 486, 931, 543, 262, 1077, 5206, 1133, 284, 12380, 486, 2468, 966, 543, 262, 2060, 10714, 33673, 414, 7622, 3189,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_keysend_dup_hash_partial_mpp() { // Test that a keysend payment with a duplicate hash to an existing partial MPP payment fails as // expected. let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfgs); let node_chanmgrs = create_node_chanmgrs(2, &nod...
rust_cleaned_test_functions.jsonl/94566
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2483 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 6681, 51932, 8950, 52068, 717, 602, 368, 341, 197, 197, 322, 3393, 429, 264, 1376, 6681, 8160, 448, 264, 22513, 5175, 311, 458, 6350, 7130, 386, 4406, 8160, 14525, 438, 198, 197, 197, 322,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_set_no_data_value() { let driver = Driver::get("MEM").unwrap(); let dataset = driver.create("", 20, 10, 1).unwrap(); let rasterband = dataset.rasterband(1).unwrap(); assert_eq!(rasterband.no_data_value(), None); assert!(rasterband.set_no_data_value(3.14).is_ok()); assert_...
rust_cleaned_test_functions.jsonl/83453
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 156 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 6536, 1769, 3142, 368, 341, 262, 1077, 5579, 284, 14577, 486, 455, 445, 31970, 1827, 15454, 543, 262, 1077, 10337, 284, 5579, 2520, 19814, 220, 17, 15, 11, 220, 16, 15, 11, 220, 16, 568,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invoke_func_via_table() -> Result<()> { let store = Store::default(); let binary = wat::parse_str( r#" (module (func $f (result i64) (i64.const 42)) (table (export "table") 1 1 anyfunc) (elem (i32.const 0) $f) ) "#...
rust_cleaned_test_functions.jsonl/32040
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 396 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79779, 9596, 80710, 5237, 368, 1464, 5714, 71698, 341, 262, 1077, 3553, 284, 9129, 486, 2258, 1428, 262, 1077, 7868, 284, 29025, 486, 6400, 2895, 1006, 286, 435, 2, 698, 688, 320, 4352, 198, 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...
4
#[test] fn test_cli_timestamp_tx() { let TestValidator { server, leader_data, alice, ledger_path, .. } = TestValidator::run(); let bob_pubkey = Pubkey::new_rand(); let (sender, receiver) = channel(); run_local_faucet(alice, sender, None); let fauc...
rust_cleaned_test_functions.jsonl/88221
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47147, 23073, 17805, 368, 341, 262, 1077, 3393, 14256, 341, 286, 3538, 345, 286, 7653, 1769, 345, 286, 70433, 345, 286, 46933, 2638, 345, 286, 54538, 262, 335, 284, 3393, 14256, 486, 6108, 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_script_codes() { let codes = all_alpha_codes(); assert!(codes.len() > 0); let numerics = all_numeric_codes(); assert!(numerics.len() > 0); }
rust_cleaned_test_functions.jsonl/29980
{ "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, 14660, 38482, 368, 341, 286, 1077, 13912, 284, 678, 26633, 38482, 543, 286, 2060, 10297, 25814, 19406, 368, 861, 220, 15, 317, 286, 1077, 7857, 1211, 284, 678, 29418, 38482, 543, 286, 2060, 10297,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_deserialize_perms() { let json_perms = r#" { "read": { "global_state": "Granted", "granted_list": [], "denied_list": [] }, "write": { "global_state": "Granted", "granted_list": [], "denied_list": [] }, "net": {...
rust_cleaned_test_functions.jsonl/121179
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 594 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 98043, 368, 341, 262, 1077, 2951, 98043, 284, 435, 2, 698, 262, 341, 414, 330, 878, 788, 341, 286, 330, 9752, 4387, 788, 330, 55481, 756, 286, 330, 901, 7566, 2019, 788, 10239, 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_conv_1() { let conv = make_conv(1, 1, PaddingSpec::SameUpper); // NHWC let data = rctensor4(&[[[[1f32]]]]); // HWIO let filter = rctensor4(&[[[[0.0f32]]], [[[1.0]]], [[[0.0]]]]); let exp = rctensor4(&[[[[1f32]]]]); let result = conv.eval(t...
rust_cleaned_test_functions.jsonl/6395
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22716, 62, 16, 368, 341, 286, 1077, 5686, 284, 1281, 22716, 7, 16, 11, 220, 16, 11, 23024, 8327, 486, 19198, 14251, 317, 286, 442, 34831, 25459, 198, 286, 1077, 821, 284, 435, 302, 3805, 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_greatest_int() { let cases = vec![ (vec![None, None], None), (vec![Some(1), Some(1)], Some(1)), (vec![Some(1), Some(-1), None], None), (vec![Some(-2), Some(-1), Some(1), Some(2)], Some(2)), ( vec![Some(i64::MIN),...
rust_cleaned_test_functions.jsonl/75988
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 442 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 11175, 4042, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 4083, 20703, 4064, 11, 2240, 1125, 2240, 1326, 310, 320, 4083, 20703, 8373, 7, 16, 701, 4329, 7, 16, 25035, 4329, 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...
2
#[test] fn test_parse_datetime_bogus() { assert_de_tokens_error::<UnixTimestamp>( &[Token::Str("adf3rt546")], "input contains invalid characters", ); }
rust_cleaned_test_functions.jsonl/13696
{ "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, 21039, 28943, 880, 538, 355, 368, 341, 286, 2060, 2259, 28838, 4096, 27638, 55832, 20812, 17055, 310, 44590, 3323, 486, 2580, 445, 96289, 18, 3342, 20, 19, 21, 899, 1259, 310, 330, 1355, 5610, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_is_retriable() { let http_status_code_err = JsonRpcAsyncClientError::HTTPError(StatusCode::BAD_GATEWAY); let server_err = JsonRpcAsyncClientError::InvalidServerResponse( "test invalid server response".to_string(), ); // fake request that...
rust_cleaned_test_functions.jsonl/25666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 504 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4096, 6892, 1288, 376, 2156, 368, 341, 286, 1077, 1758, 4773, 4136, 9266, 284, 8308, 60248, 6525, 2959, 1454, 486, 9230, 1454, 7, 15872, 486, 53572, 81116, 41803, 317, 286, 1077, 3538, 9266, 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_vec3a_round() { assert_eq!(Vec3A::new(1.35, 0.0, 0.0).round().x, 1.0); assert_eq!(Vec3A::new(0.0, 1.5, 0.0).round().y, 2.0); assert_eq!(Vec3A::new(0.0, 0.0, -15.5).round().z, -16.0); assert_eq!(Vec3A::new(0.0, 0.0, 0.0).round().z, 0.0); assert_eq!(Vec3A::new(0.0, 21.1, 0.0).r...
rust_cleaned_test_functions.jsonl/23506
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 399 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 18, 64, 29896, 368, 341, 262, 2060, 10714, 10297, 10050, 18, 32, 486, 931, 7, 16, 13, 18, 20, 11, 220, 15, 13, 15, 11, 220, 15, 13, 15, 568, 1049, 1005, 87, 11, 220, 16, 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_query_conversion_all_set() { let sr = meta_search::SearchRequest { key: Some("key".to_string()), resource_type: Some(meta_search::ResourceType::Dataset as i32), conditions: vec![meta_search::FieldQuery { key: "fancy_key".to_owned(), ...
rust_cleaned_test_functions.jsonl/113858
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 507 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 64132, 5705, 2602, 368, 341, 286, 1077, 18962, 284, 8823, 10716, 486, 5890, 1900, 341, 310, 1376, 25, 4329, 445, 792, 3263, 983, 3904, 14702, 310, 5101, 1819, 25, 4329, 45119, 10716, 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_rsplitnator() { let xs = &[1,2,3,4,5]; assert_eq!(xs.rsplitn(0, |x| *x % 2 == 0).collect::<Vec<&[int]>>().as_slice(), &[&[1,2,3,4,5]]); assert_eq!(xs.rsplitn(1, |x| *x % 2 == 0).collect::<Vec<&[int]>>().as_slice(), &[&[5], &[1,2,3]])...
rust_cleaned_test_functions.jsonl/33155
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 366 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 6960, 77, 850, 368, 341, 286, 1077, 11943, 284, 44590, 16, 11, 17, 11, 18, 11, 19, 11, 20, 4821, 286, 2060, 10714, 10297, 18561, 1746, 6960, 77, 7, 15, 11, 760, 87, 91, 353, 87, 1018...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ccsds_parser_sync_not_enough_bytes() { let mut parser = CcsdsParser::new(); parser.config.sync_bytes.push(0xEB); parser.config.sync_bytes.push(0x90); parser.recv_slice(&[0xEB, 0x90, 0x00, 0x3, 0xFF, 0xFF, 0x00, 0x01]); assert_eq!(parser.current_status(), CcsdsParserStatu...
rust_cleaned_test_functions.jsonl/105743
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28955, 82, 5356, 18517, 23008, 7913, 6205, 1384, 12524, 368, 972, 262, 1077, 5206, 6729, 284, 356, 4837, 5356, 6570, 486, 931, 1647, 262, 6729, 5423, 30712, 12524, 2552, 7, 15, 85211, 736, 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_ne() -> Result<(), TestingError> { VMTestRunner::new() .add(PushConst::new_field(1.into())) .add(PushConst::new_field(2.into())) .add(Ne) .add(PushConst::new_field(2.into())) .add(PushConst::new_field(2.into())) .add...
rust_cleaned_test_functions.jsonl/23183
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13925, 368, 1464, 5714, 68843, 26768, 1454, 29, 341, 286, 17792, 2271, 19486, 486, 931, 741, 310, 659, 718, 5304, 1116, 19167, 486, 931, 5013, 7, 16, 39860, 12145, 310, 659, 718, 5304, 1116, 191...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dir_with_files() { let tempdir = tempfile::tempdir().unwrap(); File::create(tempdir.path().join("abc")).unwrap(); File::create(tempdir.path().join("def")).unwrap(); File::create(tempdir.path().join("ghi")).unwrap(); let request = Request { pat...
rust_cleaned_test_functions.jsonl/69103
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 441 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4334, 6615, 10931, 368, 341, 286, 1077, 2730, 3741, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 286, 2887, 486, 3182, 9758, 3741, 3875, 1005, 5987, 445, 13683, 15197, 15454, 543, 286, 2887, 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_authorize_url_insecure() { let client = new_client(); let url = oauth2::insecure::authorize_url(&client); assert_eq!( Url::parse("http://example.com/auth?response_type=code&client_id=aaa").unwrap(), url ); }
rust_cleaned_test_functions.jsonl/12759
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22938, 551, 2903, 1243, 25132, 368, 341, 262, 1077, 2943, 284, 501, 8179, 1428, 262, 1077, 2515, 284, 46415, 17, 486, 258, 25132, 486, 52022, 2903, 2099, 2972, 626, 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_transaction() { let oracle = 1; let alice = 2; new_test_ext().execute_with(|| { Timestamp::set_timestamp(1600438152000); assert_ok!(RWS::set_oracle(Origin::root(), oracle)); let call = Call::from(datalog::Call::record("true".into()))...
rust_cleaned_test_functions.jsonl/101699
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1072 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 368, 341, 286, 1077, 52741, 284, 220, 16, 280, 286, 1077, 70433, 284, 220, 17, 401, 286, 501, 4452, 9927, 1005, 10257, 6615, 79453, 341, 310, 32758, 486, 746, 23073, 7, 16, 21, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_put_from_iter() { let db_name = "target/tmp/test_dbu64/test_from_iter.abyssiniandb"; let _ = std::fs::remove_dir_all(db_name); let db = abyssiniandb::open_file(db_name).unwrap(); let mut db_map = db .db_map_u64_with_params( "some_u64_1"...
rust_cleaned_test_functions.jsonl/3874
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 568 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15557, 5673, 11723, 368, 341, 286, 1077, 2927, 1269, 284, 330, 5657, 57008, 12697, 8685, 84, 21, 19, 12697, 5673, 11723, 13, 6115, 778, 6591, 437, 65, 876, 286, 1077, 716, 284, 1460, 486, 3848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_neg_parse_struct_decl() { let code = String::from(" cont: Integer { inner: int; inner: int; } "); let mut lexer = Token::lexer(code.as_str()); let parser = Parser::new(code.clone()); let decl_res = parser.parse_container_decl(&mut lex...
rust_cleaned_test_functions.jsonl/43196
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 167 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28209, 21039, 15126, 35814, 368, 341, 262, 1077, 2038, 284, 923, 486, 1499, 70576, 286, 683, 25, 4440, 341, 310, 9179, 25, 526, 280, 310, 9179, 25, 526, 280, 286, 456, 262, 39887, 262, 1077, 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_mv_update_option() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; let file_a = "test_mv_update_option_file_a"; let file_b = "test_mv_update_option_file_b"; at.touch(file_a); at.touch(file_b); let ts = time::now().to_timespec(); let now =...
rust_cleaned_test_functions.jsonl/41622
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 463 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73187, 8882, 9672, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785, 18513, 280, 262, 1077, 1034, 4306, 284, 330, 1944, 73187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_characteristic_square_mod_6_is_one() { use super::*; assert!(!characteristic_square_mod_6_is_one(&[36])); assert!(characteristic_square_mod_6_is_one(&[37])); assert!(!characteristic_square_mod_6_is_one(&[38])); assert!(!characteristic_square_mod_6_is_one(&...
rust_cleaned_test_functions.jsonl/5855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 621 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40988, 4532, 39794, 7480, 62, 21, 6892, 11667, 368, 341, 286, 990, 2256, 56162, 286, 2060, 0, 3471, 19190, 4532, 39794, 7480, 62, 21, 6892, 11667, 2099, 58, 18, 21, 14382, 286, 2060, 10297, 1919...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_shr() { let mut n = U256::from_limbs([ 0xbe1897b996367829, 0x24c4cd2cacd2e3be, 0xa0a61c4de933a54e, 0x059e0db9d96add73, ]); let e = U256::from_limbs([ 0xa5c77d7c312f732c, 0x674a9c49899a5959, ...
rust_cleaned_test_functions.jsonl/103949
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3712, 81, 368, 341, 286, 1077, 5206, 308, 284, 547, 17, 20, 21, 486, 1499, 58191, 1279, 8956, 310, 220, 15, 42459, 16, 23, 24, 22, 65, 24, 24, 21, 18, 21, 22, 23, 17, 24, 345, 310, 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_expand_rule() { assert_err( "($($i:ident);*) => ($i)", "foo!{a}", ExpandError::BindingError(String::from( "expected simple binding, found nested binding `i`", )), ); // FIXME: }
rust_cleaned_test_functions.jsonl/74601
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 175 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 67875, 21124, 368, 341, 286, 2060, 9266, 1006, 310, 330, 699, 699, 72, 25, 1713, 1215, 3764, 589, 1711, 72, 15752, 310, 330, 7975, 0, 90, 64, 24375, 310, 50141, 1454, 486, 15059, 1454, 2242, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bound_variable_limit_affects_distinct() { let schemaReplicant = prepopulated_schemaReplicant(); let causetq = r#"[:find ?x :in ?limit :where [?x :foo/bar "yyy"] :limit ?limit]"#; let inputs = CausetQInputs::with_value_sequence(vec![(ToUpper::from_valid_name("?limit"), Mink...
rust_cleaned_test_functions.jsonl/90694
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 278 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19447, 14635, 14763, 4306, 39927, 16031, 7800, 368, 341, 262, 1077, 10802, 18327, 35237, 284, 855, 8374, 7757, 25371, 18327, 35237, 1428, 9401, 262, 1077, 2162, 18187, 80, 284, 435, 55543, 3447, 390...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_and_then_custom_error() -> CustomResult<()> { let db = checked_memory_handle(); let sql = "BEGIN; CREATE TABLE foo(x INTEGER, y TEXT); INSERT INTO foo VALUES(4, 'hello'); INSERT INTO foo VALUES(3, ...
rust_cleaned_test_functions.jsonl/113070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 471 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 8378, 68367, 15875, 4096, 368, 1464, 8406, 2077, 71698, 341, 310, 1077, 2927, 284, 10067, 19195, 10630, 543, 310, 1077, 5704, 284, 330, 37588, 280, 5180, 30776, 14363, 15229, 2075, 30381, 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...
5
#[test] fn test_flat_take_str() { let input = "abcdef"; // read first 2 bytes and use correct combinator: OK let res: IResult<&str, &str> = flat_take(2u8, take(2u8))(input); assert_eq!(res, Ok(("cdef", "ab"))); let res: IResult<&str, &str> = flat_take(3u8, take(2...
rust_cleaned_test_functions.jsonl/51157
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 282 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49556, 73261, 2895, 368, 341, 286, 1077, 1946, 284, 330, 41202, 876, 286, 442, 1349, 1156, 220, 17, 5820, 323, 990, 4396, 3614, 17272, 25, 10402, 198, 286, 1077, 592, 25, 358, 2077, 52244, 495, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_split_good_tree() { let root = tree!('T' => [2, 'A', ('R' => [2, 'B', 'X'])]); println!("Input: {:?}", root); let splitted = root.split(); let expected = tree!('T' => [2, 'A', ('R' => [2, 'B', 'X'])]); assert_eq!(splitted, expected); }
rust_cleaned_test_functions.jsonl/9209
{ "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, 17052, 44781, 11663, 368, 341, 197, 10217, 3704, 284, 4916, 0, 492, 51, 6, 589, 508, 17, 11, 364, 32, 516, 4319, 49, 6, 589, 508, 17, 11, 364, 33, 516, 364, 55, 5078, 2558, 197, 81168, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_server_rejects_clients_without_any_kx_group_overlap() { fn different_kx_group(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/10034
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 470 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12015, 1288, 583, 82, 56899, 39904, 37248, 4698, 87, 6288, 65794, 368, 341, 262, 5168, 2155, 4698, 87, 6288, 8119, 25, 609, 6984, 4856, 8, 341, 286, 421, 1077, 4856, 29683, 486, 2314, 29661, 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...
6
#[test] fn test_field_into_allocated_bits_le() { use crate::bellman::pairing::bls12_381; let mut cs = TrivialAssembly::<bls12_381::Bls12, PlonkCsWidth4WithNextStepParams, Width4MainGateWithDNext>::new(); let r = bls12_381::Fr::from_str("91476776154269768025268835322041393221180745418918...
rust_cleaned_test_functions.jsonl/10420
{ "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, 5013, 45514, 82342, 20034, 11751, 368, 341, 286, 990, 17717, 486, 17250, 1515, 486, 12670, 287, 486, 2024, 82, 16, 17, 62, 18, 23, 16, 280, 286, 1077, 5206, 10532, 284, 1163, 26658, 25791, 27638...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_slices() { // takes up 2 u64s let bools = std::iter::repeat(true) .take(10) .chain(std::iter::repeat(false).take(30)) .chain(std::iter::repeat(true).take(20)) .chain(std::iter::repeat(false).take(17)) .chain(std::iter::r...
rust_cleaned_test_functions.jsonl/75311
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 496 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 87288, 368, 341, 286, 442, 4990, 705, 220, 17, 575, 21, 19, 82, 198, 286, 1077, 1807, 82, 284, 1460, 486, 2015, 486, 30624, 3715, 340, 310, 659, 22769, 7, 16, 15, 340, 310, 659, 8819, 5194, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_chunks_mut_nth() { let v: &mut [i32] = &mut [0, 1, 2, 3, 4, 5]; let mut c = v.array_chunks_mut::<2>(); assert_eq!(c.nth(1).unwrap(), &[2, 3]); assert_eq!(c.next().unwrap(), &[4, 5]); let v2: &mut [i32] = &mut [0, 1, 2, 3, 4, 5, 6]; let mut c2 = v2.array_chunks_mut:...
rust_cleaned_test_functions.jsonl/9651
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 65470, 29523, 78342, 368, 341, 262, 1077, 348, 25, 609, 6984, 508, 72, 18, 17, 60, 284, 609, 6984, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 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__write_raw_token() { fn write_raw_token_toString(string : &str) -> GResult<String> { let outRc : Rc<RefCell<String>> = Rc::new(RefCell::new(String::new())); let result = TokenWriter { out: outRc.clone() }.write_raw_token(string); match result { ...
rust_cleaned_test_functions.jsonl/128029
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 305 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 563, 4934, 16067, 6458, 368, 972, 6421, 262, 5168, 3270, 16067, 6458, 2346, 703, 3609, 549, 609, 495, 8, 1464, 479, 2077, 3464, 29, 972, 286, 1077, 700, 49, 66, 549, 81463, 27, 3945, 3599, 346...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_report_filter_next() { let subcommand = Subcommand::Report { filter: Filter { conditions: vec![Condition::IdList(vec![ TaskId::WorkingSetId(12), TaskId::WorkingSetId(13), ])], }, r...
rust_cleaned_test_functions.jsonl/84286
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 281 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14813, 8727, 11257, 368, 341, 286, 1077, 1186, 5631, 284, 3719, 5631, 486, 10361, 341, 310, 4051, 25, 12339, 341, 394, 4682, 25, 7486, 20703, 10547, 486, 764, 852, 25592, 90515, 503, 5430, 764, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_analyze_column() { let data = vec![ (1, Some("name:0"), 2), (2, Some("name:4"), 3), (4, Some("name:3"), 1), (5, None, 4), ]; let product = ProductTable::new(); let (_, mut end_point) = init_data_with_commit(&product, &data, true); let req = n...
rust_cleaned_test_functions.jsonl/56301
{ "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, 12008, 55856, 8744, 368, 341, 262, 1077, 821, 284, 7486, 90515, 286, 320, 16, 11, 4329, 445, 606, 25, 15, 3975, 220, 17, 1326, 286, 320, 17, 11, 4329, 445, 606, 25, 19, 3975, 220, 18, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_u64() { let cases = vec![ ("12345", Res::Ok(12345u64)), ("0", Res::Ok(0)), // ULLONG_MAX = 18446744073709551615ULL ("18446744073709551615", Res::Ok(18446744073709551615)), ("18446744073709551616", Res::Overflow(18446744073709...
rust_cleaned_test_functions.jsonl/13655
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 428 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 7300, 21, 19, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 16, 17, 18, 19, 20, 497, 1800, 486, 11578, 7, 16, 17, 18, 19, 20, 84, 21, 19, 6965, 310, 3489, 15, 497, 1800, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_validate_instruction_inserts_new_keys_if_they_do_not_exist() { let mut test_hash: HashMap<String, i32> = HashMap::new(); validate_instruction(&mut test_hash, "foo", "<", 10); assert_eq!(&(0 as i32), test_hash.get("foo").unwrap()); }
rust_cleaned_test_functions.jsonl/42001
{ "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, 42681, 54923, 17678, 82, 5921, 12631, 11119, 5854, 1195, 26309, 7913, 35906, 368, 341, 286, 1077, 5206, 1273, 8950, 25, 10528, 3464, 11, 600, 18, 17, 29, 284, 10528, 486, 931, 1428, 286, 9593, 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_empty_initialize() { let mut server = new_temp_server(); let tmp_dir = TempDir::new("mcshader").unwrap(); let tmp_path = tmp_dir.path(); let initialize_params = InitializeParams { process_id: None, root_path: None, root_uri: Some(Url::from_directory_path...
rust_cleaned_test_functions.jsonl/56150
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 682 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 40889, 368, 341, 262, 1077, 5206, 3538, 284, 501, 11771, 12015, 1428, 262, 1077, 4174, 4334, 284, 19944, 6184, 486, 931, 445, 12887, 45534, 1827, 15454, 543, 262, 1077, 4174, 2638, 284, 417...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_runtime_update_net_rate_limiters() { let req = VmmAction::UpdateNetworkInterface(NetworkInterfaceUpdateConfig { iface_id: String::new(), rx_rate_limiter: None, tx_rate_limiter: None, }); check_runtime_request(req, |result, vmm| { ...
rust_cleaned_test_functions.jsonl/44547
{ "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, 33232, 8882, 19722, 9246, 14763, 388, 368, 341, 286, 1077, 4232, 284, 647, 3821, 2512, 486, 4289, 12320, 5051, 77623, 5051, 4289, 2648, 341, 310, 49313, 842, 25, 923, 486, 931, 3148, 310, 19111, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_frontiers_action() { let expect = Rc::new(RefCell::new(Antichain::from_elem(0))); let inner = Rc::clone(&expect); let (f, initial) = Frontiers::new(Some(0), None, move |since| { assert_eq!(*inner.borrow(), since); }); // Adding 5 should not cha...
rust_cleaned_test_functions.jsonl/63471
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 369 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22926, 4813, 7931, 368, 341, 286, 1077, 1720, 284, 81463, 486, 931, 7, 3945, 3599, 486, 931, 4346, 406, 713, 466, 486, 1499, 28179, 7, 15, 4945, 286, 1077, 9179, 284, 81463, 486, 19982, 2099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nullable_array_is_not_null() { let a = Int32Array::from(vec![Some(1), None, Some(3), None]); let res = is_not_null(&a).unwrap(); let expected = BooleanArray::from(vec![true, false, true, false]); assert_eq!(expected, res); assert_eq!(&None, res.data_ref...
rust_cleaned_test_functions.jsonl/45028
{ "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, 69743, 3858, 6892, 7913, 15162, 368, 341, 286, 1077, 264, 284, 1333, 18, 17, 1857, 486, 1499, 25592, 20703, 8373, 7, 16, 701, 2240, 11, 4329, 7, 18, 701, 2240, 10149, 286, 1077, 592, 284, 374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_part_1() { assert_eq!(part_1(&SHORT), 7 * 5); assert_eq!(part_1(&LONG), 22 * 10); }
rust_cleaned_test_functions.jsonl/72667
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 62, 16, 368, 341, 286, 2060, 10714, 10297, 4480, 62, 16, 2099, 87918, 701, 220, 22, 353, 220, 20, 317, 286, 2060, 10714, 10297, 4480, 62, 16, 2099, 51306, 701, 220, 17, 17, 353, 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
#[test] fn test_headers() { let mut component = TableComponent::new(KeyConfig::default()); component.headers = vec!["a", "b", "c"].iter().map(|h| h.to_string()).collect(); assert_eq!(component.headers(1, 2), vec!["", "b"]) }
rust_cleaned_test_functions.jsonl/120814
{ "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, 26719, 368, 341, 286, 1077, 5206, 3692, 284, 6633, 2189, 486, 931, 21358, 2648, 486, 2258, 1423, 286, 3692, 18022, 284, 7486, 0, 1183, 64, 497, 330, 65, 497, 330, 66, 5521, 2015, 1005, 2186, 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_2_elements() { let mut b = BitVec::from_elem(2, false); b.set(0, true); b.set(1, false); assert_eq!(format!("{:?}", b), "10"); assert!(!b.none() && !b.all()); }
rust_cleaned_test_functions.jsonl/62077
{ "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, 62, 17, 22801, 368, 341, 286, 1077, 5206, 293, 284, 6495, 10050, 486, 1499, 28179, 7, 17, 11, 895, 317, 286, 293, 980, 7, 15, 11, 830, 317, 286, 293, 980, 7, 16, 11, 895, 317, 286, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_from_signature() { let multiplier = Big::new_int(5); let mut point = GroupG2::generator(); point = point.mul(&multiplier); let signature = Signature { point }; let aggregate_signature = AggregateSignature::from_signature(&signature); assert_eq!(si...
rust_cleaned_test_functions.jsonl/112224
{ "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, 5673, 39859, 368, 341, 286, 1077, 30559, 284, 6164, 486, 931, 4042, 7, 20, 317, 286, 1077, 5206, 1459, 284, 5737, 38, 17, 486, 35851, 543, 286, 1459, 284, 1459, 53141, 2099, 26268, 7875, 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_missing_option_field() { #[derive(Debug, PartialEq, Deserialize)] struct Foo { x: Option<u32>, } let value: Foo = from_str("{}").unwrap(); assert_eq!(value, Foo { x: None }); let value: Foo = from_str("{\"x\": 5}").unwrap(); assert_eq!(value, Foo { x: Some(5...
rust_cleaned_test_functions.jsonl/29847
{ "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, 40447, 9672, 5013, 368, 341, 262, 11506, 27098, 42618, 11, 55039, 11, 48440, 5563, 262, 2036, 33428, 341, 286, 856, 25, 6959, 34837, 18, 17, 12520, 262, 555, 262, 1077, 897, 25, 33428, 284, 504,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_info_event_complete_connect() { let exec = fuchsia_async::TestExecutor::new().unwrap(); let (mut sme, _mlme_stream, mut info_stream, _time_stream) = create_sme(&exec); assert_eq!(ClientSmeStatus::Idle, sme.status()); let credential = fidl_sme::Credential::None(fi...
rust_cleaned_test_functions.jsonl/101629
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 757 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3109, 6748, 27675, 15720, 368, 341, 286, 1077, 3883, 284, 282, 73391, 28346, 486, 2271, 25255, 486, 931, 1005, 15454, 543, 286, 1077, 320, 6984, 90467, 11, 716, 1014, 2660, 12673, 11, 5206, 3546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cp_strip_trailing_slashes() { let (at, mut ucmd) = at_and_ucmd!(); //using --strip-trailing-slashes option ucmd.arg("--strip-trailing-slashes") .arg(format!("{}/", TEST_HELLO_WORLD_SOURCE)) .arg(TEST_HELLO_WORLD_DEST) .succeeds(); // Check the content of...
rust_cleaned_test_functions.jsonl/21266
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39811, 66130, 3547, 14277, 11886, 14051, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 1428, 262, 442, 970, 1177, 13105, 10188, 14277, 1331, 46545, 2999, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unset_env_var() { std::env::remove_var("MYVAR2343u2"); block_on(assert_commands_error( "echo $MYVAR2343u2 > /dev/null; echo okay; exec 1>&-; cat > /dev/null", )); // variable set std::env::set_var("MYVAR2343u2", "hehe"); block_on(assert_commands_okay( "ec...
rust_cleaned_test_functions.jsonl/86515
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 98109, 15879, 4612, 368, 341, 262, 1460, 486, 3160, 486, 5399, 4612, 445, 19159, 33040, 17, 18, 19, 18, 84, 17, 797, 262, 2504, 4470, 75846, 44151, 4096, 1006, 286, 330, 3047, 400, 19159, 33040,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_node() { let node_a = Node::new(1, "a_val".to_owned()); let node_b = Node::new(2, "b_val".to_owned()); let node_c = Node::new(1, "c_val".to_owned()); assert_eq!(node_a.cmp(&node_b.key), Ordering::Less); assert_eq!(node_b.cmp(&node_a.key), Ordering::Greater...
rust_cleaned_test_functions.jsonl/65952
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 368, 341, 286, 1077, 2436, 4306, 284, 6018, 486, 931, 7, 16, 11, 330, 64, 6189, 3263, 983, 51973, 1423, 286, 1077, 2436, 880, 284, 6018, 486, 931, 7, 17, 11, 330, 65, 6189, 3263, 983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wrap_with() { let s = "some string"; let wrap = "|"; assert_eq!(wrap_with(s, wrap), String::from("|some string|")); }
rust_cleaned_test_functions.jsonl/78036
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38550, 6615, 368, 341, 286, 1077, 274, 284, 330, 14689, 914, 876, 286, 1077, 15061, 284, 25203, 876, 286, 2060, 10714, 10297, 10097, 6615, 1141, 11, 15061, 701, 923, 486, 1499, 38547, 14689, 914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_lines() { let data = "\nMäry häd ä little lämb\n\r\nLittle lämb\n"; let lines: Vec<&str> = data.lines().collect(); assert_eq!(lines, ["", "Märy häd ä little lämb", "", "Little lämb"]); let data = "\r\nMäry häd ä little lämb\n\nLittle lämb"; // no trailing \n let lines: Vec<&...
rust_cleaned_test_functions.jsonl/17647
{ "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, 18323, 368, 341, 262, 1077, 821, 284, 2917, 77, 44, 2305, 884, 305, 30875, 12709, 2632, 30005, 3096, 1699, 12016, 1699, 38103, 30005, 3096, 1699, 876, 262, 1077, 5128, 25, 11312, 52244, 495, 29, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_generate_c() { let dwarf: &[u8] = include_bytes!("./test_resources/module_binding_test"); let expected: &[u8] = include_bytes!("./test_resources/module_binding_test_expected.c"); let module = Module::parse("user".to_owned(), "User module description".to_owned(), dw...
rust_cleaned_test_functions.jsonl/89879
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 239 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 48851, 666, 368, 341, 286, 1077, 49461, 25, 44590, 84, 23, 60, 284, 2924, 12524, 0, 13988, 1944, 35569, 48185, 60815, 4452, 797, 286, 1077, 3601, 25, 44590, 84, 23, 60, 284, 2924, 12524, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ping_req() { let mut data: &[u8] = &[0b11000000, 0b00000000]; assert_eq!(Ok(Some(Packet::Pingreq)), decode_slice(&mut data)); }
rust_cleaned_test_functions.jsonl/77900
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71661, 17644, 368, 341, 262, 1077, 5206, 821, 25, 44590, 84, 23, 60, 284, 44590, 15, 65, 16, 16, 15, 15, 15, 15, 15, 15, 11, 220, 15, 65, 15, 15, 15, 15, 15, 15, 15, 15, 935, 262, 2060...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_cowarc_clone_weak() { let mut cow0 = Arc::new(75); let cow1_weak = cow0.downgrade(); assert!(75 == *cow0); assert!(75 == *cow1_weak.upgrade().unwrap()); *cow0.make_unique() += 1; assert!(76 == *cow0); assert!(cow1_weak.upgrade().is_none(...
rust_cleaned_test_functions.jsonl/19210
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 167 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 363, 8198, 54742, 86356, 368, 341, 286, 1077, 5206, 19362, 15, 284, 19689, 486, 931, 7, 22, 20, 317, 286, 1077, 19362, 16, 86356, 284, 19362, 15, 18148, 6937, 1428, 286, 2060, 10297, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_random_access_chain() { let xs = [1, 2, 3, 4, 5]; let ys = [7, 9, 11]; let mut it = xs.iter().chain(ys.iter()); assert_eq!(it.idx(0).unwrap(), &1); assert_eq!(it.idx(5).unwrap(), &7); assert_eq!(it.idx(7).unwrap(), &11); assert!(it.idx(8).is_none()); it.next(); ...
rust_cleaned_test_functions.jsonl/37038
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 275 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22644, 12759, 30583, 368, 341, 262, 1077, 11943, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 262, 1077, 31810, 284, 508, 22, 11, 220, 24, 11, 220, 16, 16, 935, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_dec_lit_pos_exp() { let d = Decimal::<1>::from_str("700004.002E13").unwrap(); assert_eq!(d.coeff, 70000400200000000000); }
rust_cleaned_test_functions.jsonl/12022
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 13783, 98399, 6479, 14214, 368, 341, 286, 1077, 294, 284, 26728, 27638, 16, 6831, 1499, 2895, 445, 22, 15, 15, 15, 15, 19, 13, 15, 15, 17, 36, 16, 18, 1827, 15454, 543, 286, 2060, 1071...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_make_merge_desc_from_release_branch() { let desc = make_merge_desc( (String::from("Yay, I made a change (#99)"), String::from("")), "abcdef", 99, "release-other_branch", "release-source_branch", "release-", )...
rust_cleaned_test_functions.jsonl/93154
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 249 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 20888, 10986, 5673, 24577, 28031, 368, 341, 286, 1077, 6560, 284, 1281, 20888, 10986, 1006, 310, 320, 703, 486, 1499, 445, 56, 352, 11, 358, 1865, 264, 2297, 29083, 24, 24, 8, 3975, 923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_called_numbers() { let expected = vec![7, 4, 9, 5, 11, 17, 23, 2, 0, 14, 21, 24, 10, 16, 13, 6, 15, 25, 12, 22, 18, 20, 8, 19, 3, 26, 1 ]; let mut input = TEST_INPUT.lines(); assert_eq!(parse_called_numbers(&mut input.next().unwrap()), expected)...
rust_cleaned_test_functions.jsonl/92171
{ "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, 21039, 27859, 32964, 368, 341, 286, 1077, 3601, 284, 7486, 20703, 22, 11, 220, 19, 11, 220, 24, 11, 220, 20, 11, 220, 16, 16, 11, 220, 16, 22, 11, 220, 17, 18, 11, 220, 17, 11, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_date_math_start_with_periods() { let result = DateMath::StartWithPeriods( CalculatedDate::Raw(NaiveDate::from_ymd_opt(2021, 3, 31).unwrap()), PeriodOp::Add(Period::Week(15)), vec![ PeriodOp::Add(Period::Day(2)), PeriodOp...
rust_cleaned_test_functions.jsonl/43993
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4164, 65561, 4906, 6615, 95193, 368, 341, 286, 1077, 1102, 284, 2631, 8815, 486, 3479, 2354, 23750, 82, 1006, 310, 31359, 657, 1916, 486, 20015, 8204, 64, 533, 1916, 486, 1499, 62, 1600, 67, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_highlighting_cancellation() { // An HTML document with a large injected JavaScript document: let mut source = "<script>\n".to_string(); for _ in 0..500 { source += "function a() { console.log('hi'); }\n"; } source += "</script>\n"; // Cancel the highlighting befo...
rust_cleaned_test_functions.jsonl/12262
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 448 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74546, 287, 666, 49222, 368, 341, 262, 442, 1527, 9308, 2197, 448, 264, 3460, 40672, 12914, 2197, 510, 262, 1077, 5206, 2530, 284, 4055, 2282, 8449, 77, 3263, 983, 3904, 543, 262, 369, 716, 304,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pipeline_transaction() { let ctx = TestContext::new(); block_on_all(async move { let mut con = ctx.async_connection().await?; let mut pipe = redis::pipe(); pipe.atomic() .cmd("SET") .arg("key_1") .arg(42) .ignore() ...
rust_cleaned_test_functions.jsonl/75329
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 430 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45187, 28884, 368, 341, 262, 1077, 5635, 284, 3393, 1972, 486, 931, 543, 262, 2504, 4470, 5705, 18285, 3271, 341, 286, 1077, 5206, 390, 284, 5635, 24747, 15866, 1005, 11421, 37445, 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...
2
#[test] fn test_write_var_uint_three_byte_values() -> IonResult<()> { var_uint_encoding_test(81_991, &[0b0000_0101, 0b0000_0000, 0b1100_0111])?; var_uint_encoding_test(400_600, &[0b0001_1000, 0b0011_1001, 0b1101_1000])?; Ok(()) }
rust_cleaned_test_functions.jsonl/116135
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 4612, 15807, 50016, 19737, 9146, 368, 1464, 44805, 2077, 71698, 341, 286, 762, 15807, 37613, 4452, 7, 23, 16, 62, 24, 24, 16, 11, 44590, 15, 65, 15, 15, 15, 15, 62, 15, 16, 15, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_merkle_path() { let mut tree = TestSMT::new(3); tree.insert(2, 1); let path = tree.merkle_path(2); assert_eq!(path, [(32768, false), (917505, true), (25690142, false)]); }
rust_cleaned_test_functions.jsonl/88491
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 16754, 273, 2638, 368, 341, 286, 1077, 5206, 4916, 284, 3393, 50, 8505, 486, 931, 7, 18, 317, 286, 4916, 7030, 7, 17, 11, 220, 16, 317, 286, 1077, 1815, 284, 4916, 744, 16754, 273, 2638...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_kill2() { let mut child = Command::new("perl").arg("-e").arg(SCRIPT).spawn().unwrap(); let mut reader = ProcReader::from_stdout(child.id()); thread::sleep(Duration::from_secs(2)); let _ = child.kill(); thread::sleep(Duration::from_secs(2)); let m...
rust_cleaned_test_functions.jsonl/127262
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73327, 17, 368, 341, 286, 1077, 5206, 1682, 284, 7348, 486, 931, 445, 64936, 1827, 858, 13645, 68, 1827, 858, 7, 24787, 568, 46087, 1005, 15454, 543, 286, 1077, 5206, 6604, 284, 41087, 5062, 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_closures_2() { check_output_default( "fun mkfun(n) {\n\ fun f(m) {\n\ return m + n;\n\ }\n\ return f;\n\ }\n\ print mkfun(2)(3);", "5", ) }
rust_cleaned_test_functions.jsonl/111846
{ "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, 666, 41206, 62, 17, 368, 341, 286, 1779, 7645, 9993, 1006, 310, 330, 11894, 23789, 11894, 1445, 8, 28152, 77, 5661, 2290, 2464, 282, 1255, 8, 28152, 77, 5661, 338, 470, 296, 488, 308, 17882, 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_lang_string_parse() { fn t(s: &str, should_panic: bool, no_run: bool, ignore: bool, rust: bool, test_harness: bool, compile_fail: bool, allow_fail: bool, error_codes: Vec<String>) { assert_eq!(LangString::parse(s), LangString { should_p...
rust_cleaned_test_functions.jsonl/4180
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17876, 3904, 21039, 368, 341, 286, 5168, 259, 1141, 25, 609, 495, 345, 310, 1265, 620, 31270, 25, 1807, 11, 902, 14007, 25, 1807, 11, 10034, 25, 1807, 11, 23071, 25, 1807, 11, 1273, 1523, 2351...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_for_loop_with_negative_step_minus_one() { let input = " FOR i% = 3 TO -3 STEP -1 PRINT i% NEXT "; let interpreter = interpret(input); assert_has_variable!(interpreter, "i%", -4); let stdlib = interpreter.stdlib; assert_e...
rust_cleaned_test_functions.jsonl/109182
{ "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, 5478, 17198, 6615, 53865, 11946, 38457, 11667, 368, 341, 286, 1077, 1946, 284, 6228, 286, 4613, 600, 4, 284, 220, 18, 5146, 481, 18, 48356, 481, 16, 198, 310, 35893, 600, 13744, 286, 45011, 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_malformed_resource() { // Compile the modules and scripts. // TODO: find a better way to include the Signer module. let code = r#" address 0x1 { module Signer { native public fun borrow_address(s: &signer): &address; public fun add...
rust_cleaned_test_functions.jsonl/48431
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1883 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 278, 10155, 17962, 368, 341, 262, 442, 54467, 279, 13454, 323, 19502, 624, 262, 442, 5343, 25, 1477, 264, 2664, 1616, 311, 2924, 279, 7075, 261, 4688, 624, 262, 1077, 2038, 284, 435, 2, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_new_dirty_with_name_continue() { for answer in YES_ANSWERS { Tester::default() .add_input_chars("modified named file\n") .add_input_chars(answer) .set_program(Some("MEMORY:/named.bas"), "previous contents\n") .ru...
rust_cleaned_test_functions.jsonl/112754
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 63642, 6615, 1269, 75297, 368, 341, 286, 369, 4226, 304, 14080, 67752, 54, 4321, 341, 310, 76816, 486, 2258, 741, 394, 659, 718, 5898, 37418, 445, 27162, 6941, 1034, 1699, 1138, 394, 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...
2
#[test] fn test_read_linux_numa() { let cpus = read_linux_numa().unwrap(); assert_eq!(cpus.iter().map(|x| x.len()).sum::<usize>(), num_cpus::get()); }
rust_cleaned_test_functions.jsonl/101114
{ "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, 6443, 77463, 4273, 64, 368, 341, 286, 1077, 12490, 355, 284, 1349, 77463, 4273, 64, 1005, 15454, 543, 286, 2060, 10714, 10297, 4672, 355, 19471, 1005, 2186, 22428, 87, 91, 856, 19406, 6011, 1242, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_scaffold_intersections() { let space: Space = indoc!( " ..#.......... ..#.......... #######...### #.#...#...#.# ############# ..#...#...#.. ..#####...^.." ) .parse() .u...
rust_cleaned_test_functions.jsonl/109682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 243 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 27864, 15318, 24661, 368, 341, 286, 1077, 3550, 25, 11487, 284, 1257, 509, 33673, 310, 6228, 310, 5241, 2, 4007, 33947, 310, 5241, 2, 4007, 33947, 310, 26274, 14374, 1112, 26840, 310, 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...
1
#[test] fn test_loc_query_dialogues() { let querier = new_valid_db("comp_query_dialogues.db"); let dialogues = querier.query_dialogues(None, None, Some("kitchen"), None); assert_eq!(2, dialogues.len()); }
rust_cleaned_test_functions.jsonl/107705
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 120 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13400, 5738, 24331, 1137, 368, 341, 286, 1077, 29134, 1268, 284, 501, 8337, 8685, 445, 5689, 5738, 24331, 1137, 7076, 3071, 286, 1077, 7254, 1137, 4035, 310, 29134, 1268, 4786, 24331, 1137, 26717, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_simple_monitor_permanent_update_fail() { // Test that we handle a simple permanent monitor update failure let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfgs); let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]); let mut nodes = cr...
rust_cleaned_test_functions.jsonl/58333
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 557 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 40112, 620, 4753, 306, 8882, 22121, 368, 341, 197, 322, 3393, 429, 582, 3705, 264, 4285, 15330, 8718, 2647, 7901, 198, 10217, 26023, 1645, 18343, 82, 284, 1855, 45552, 1645, 18343, 82, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_mod_examples() { assert_eq!(eval("1 % 4"), Ok(Value::Int(1))); assert_eq!(eval("6 % 4"), Ok(Value::Int(2))); assert_eq!(eval("1 % 4 + 2"), Ok(Value::Int(3))); }
rust_cleaned_test_functions.jsonl/105341
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7480, 45279, 368, 341, 262, 2060, 10714, 10297, 14170, 445, 16, 1018, 220, 19, 3975, 7622, 25346, 486, 1072, 7, 16, 4945, 262, 2060, 10714, 10297, 14170, 445, 21, 1018, 220, 19, 3975, 7622, 2534...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { assert_float_eq_f64(eval_str("2*3^2").unwrap(), 18.0); assert_float_eq_f64(eval_str("-3^2").unwrap(), 9.0); assert_float_eq_f64(eval_str("11.3").unwrap(), 11.3); assert_float_eq_f64(eval_str("+11.3").unwrap(), 11.3); assert_float_eq_f64(eval_str("...
rust_cleaned_test_functions.jsonl/66725
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2382 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 368, 341, 286, 2060, 17586, 10714, 761, 21, 19, 54463, 2895, 445, 17, 9, 18, 61, 17, 1827, 15454, 1507, 220, 16, 23, 13, 15, 317, 286, 2060, 17586, 10714, 761, 21, 19, 54463, 2895, 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_emit_and_read_records() { let mut message = Message::new(); message .set_id(10) .set_message_type(MessageType::Response) .set_op_code(OpCode::Update) .set_authoritative(true) .set_truncated(true) .set_recursion_desired(true) .set_re...
rust_cleaned_test_functions.jsonl/23870
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69082, 8378, 6443, 31279, 368, 341, 262, 1077, 5206, 1943, 284, 4856, 486, 931, 543, 262, 1943, 198, 286, 659, 746, 842, 7, 16, 15, 340, 286, 659, 746, 6462, 1819, 29359, 929, 486, 2582, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_datetime() { let datetime = Datetime(blpapi_Datetime_t { parts: BLPAPI_DATETIME_DATE_PART as u8 | BLPAPI_DATETIME_TIME_PART as u8, hours: 8, minutes: 5, seconds: 10, milliSeconds: 0, month...
rust_cleaned_test_functions.jsonl/117270
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 759 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28943, 368, 341, 310, 1077, 8874, 284, 21631, 4107, 1883, 13545, 2068, 1557, 27662, 528, 341, 394, 5479, 25, 425, 12567, 7082, 36347, 44618, 18500, 28278, 438, 575, 23, 760, 425, 12567, 7082, 3634...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_package_manifest_not_exist() -> Result<()> { let tempdir = tempfile::tempdir().unwrap(); let root = tempdir.path(); let build_manifest_path = root.join("build.manifest"); let package_manifest_path = Some(root.join("./out")); File::create(&build_manifest_pa...
rust_cleaned_test_functions.jsonl/104041
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 286 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26328, 74269, 7913, 35906, 368, 1464, 5714, 71698, 341, 286, 1077, 2730, 3741, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 286, 1077, 3704, 284, 2730, 3741, 3875, 543, 286, 1077, 1936, 74269, 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_openat2() { let tmp = tempfile::tempdir().unwrap(); let dir = openat(&cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); // Detect whether `openat2` is available. match openat2( &dir, ".", OFlags::RDONLY, Mode::empty(), ResolveFla...
rust_cleaned_test_functions.jsonl/96394
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1934 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11311, 266, 17, 368, 341, 262, 1077, 4174, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 262, 1077, 5419, 284, 1787, 266, 2099, 32165, 1507, 4174, 3875, 1507, 3008, 22851, 486, 36690, 31092, 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...
2
#[test] fn test_uuid() -> crate::Result<()> { use crate::{params, Connection}; use uuid::Uuid; let db = Connection::open_in_memory()?; db.execute_batch("CREATE TABLE foo (id BLOB CONSTRAINT uuidchk CHECK (octet_length(id) <= 16), label TEXT);")?; let id = Uuid::new_v4()...
rust_cleaned_test_functions.jsonl/124019
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 360 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25540, 368, 1464, 17717, 486, 2077, 71698, 341, 286, 990, 17717, 22964, 3519, 11, 11032, 2440, 286, 990, 16040, 486, 38431, 401, 286, 1077, 2927, 284, 11032, 486, 2508, 1243, 19195, 94136, 286, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_range_from_take() { let mut it = (0..).take(3); assert_eq!(it.next(), Some(0)); assert_eq!(it.next(), Some(1)); assert_eq!(it.next(), Some(2)); assert_eq!(it.next(), None); is_trusted_len((0..).take(3)); assert_eq!((0..).take(3).size_hint(), (3, Some(3))); assert_...
rust_cleaned_test_functions.jsonl/54153
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 5673, 73261, 368, 341, 262, 1077, 5206, 432, 284, 320, 15, 496, 568, 22769, 7, 18, 317, 262, 2060, 10714, 10297, 275, 4529, 1507, 4329, 7, 15, 1106, 262, 2060, 10714, 10297, 275, 4529, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_analyze_column() { let data = vec![ (1, Some("name:0"), 2), (2, Some("name:4"), 3), (4, Some("name:3"), 1), (5, None, 4), ]; let product = ProductTable::new(); let (_, endpoint) = init_data_with_commit(&product, &data, true); let req = new_an...
rust_cleaned_test_functions.jsonl/47335
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 472 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12008, 55856, 8744, 368, 341, 262, 1077, 821, 284, 7486, 90515, 286, 320, 16, 11, 4329, 445, 606, 25, 15, 3975, 220, 17, 1326, 286, 320, 17, 11, 4329, 445, 606, 25, 19, 3975, 220, 18, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_chrono_datetime_from_timestamp_micros() { let datetime_from_timestamp: DateTime<Utc> = Timestamp::Microseconds(1).into(); assert_eq!( Utc.timestamp_nanos((1 / MICROS_PER_NANO).try_into().unwrap()), datetime_from_timestamp ) }
rust_cleaned_test_functions.jsonl/105318
{ "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, 4138, 2248, 78, 28943, 5673, 23073, 73003, 82, 368, 341, 286, 1077, 8874, 5673, 23073, 25, 6520, 36397, 10413, 29, 284, 32758, 486, 34609, 17403, 7, 16, 568, 18122, 543, 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_fog_hint_serde() { let a = EncryptedFogHint::new(&[17u8; ENCRYPTED_FOG_HINT_LEN]); let a_ser = mc_util_serial::serialize(&a).unwrap(); let b: EncryptedFogHint = mc_util_serial::deserialize(&a_ser).unwrap(); assert_eq!(a.as_ref(), b.as_ref()); }
rust_cleaned_test_functions.jsonl/17513
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 156 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 538, 45825, 75861, 450, 368, 341, 286, 1077, 264, 284, 10751, 14026, 37, 538, 26987, 486, 931, 2099, 58, 16, 22, 84, 23, 26, 5190, 42917, 1479, 1400, 12223, 74457, 15536, 2558, 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_slow_request() { let srv = TestServer::new(|| { HttpService::build() .client_timeout(100) .finish(|_| future::ok::<_, ()>(Response::Ok().finish())) }); let mut stream = net::TcpStream::connect(srv.addr()).unwrap(); let _ = stream.write_all(b"GET /...
rust_cleaned_test_functions.jsonl/102536
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82447, 7893, 368, 341, 262, 1077, 43578, 284, 3393, 5475, 486, 931, 79453, 341, 286, 4823, 1860, 486, 5834, 741, 310, 659, 2972, 20537, 7, 16, 15, 15, 340, 310, 659, 30150, 22428, 35395, 3853, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_failure_no_such_client() { let res = run_test(12003, 12004, Some(InjectedFailure::NoSuchClient)); assert_eq!(res.status, StatusCode::BadRequest); }
rust_cleaned_test_functions.jsonl/36401
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43618, 6536, 643, 1387, 8179, 368, 341, 262, 1077, 592, 284, 1598, 4452, 7, 16, 17, 15, 15, 18, 11, 220, 16, 17, 15, 15, 19, 11, 4329, 7, 88818, 17507, 486, 65531, 2959, 1106, 262, 2060, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_compile_fails() { expect_error!( "var_already_defined_a.de", LangErrorKind::VariableAlreadyDefined { .. } ); expect_error!( "var_already_defined_b.de", LangErrorKind::VariableAlreadyDefined { .. } ); expect_error!( "unexpected_path_ass...
rust_cleaned_test_functions.jsonl/79476
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1803 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74170, 761, 6209, 368, 341, 262, 1720, 4096, 33673, 286, 330, 947, 80772, 52870, 4306, 2285, 756, 286, 22463, 1454, 10629, 486, 7827, 38370, 29361, 314, 5241, 456, 262, 1439, 262, 1720, 4096, 3367...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid_unary_operand() { check_error("-\"cat\";", &|err: &str| { assert!( err.starts_with("invalid application of unary op Minus to object of type String") ) }) }
rust_cleaned_test_functions.jsonl/111837
{ "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, 31433, 4907, 658, 69259, 368, 341, 286, 1779, 4096, 13645, 2105, 4616, 2105, 32503, 609, 91, 615, 25, 609, 495, 91, 341, 310, 2060, 33673, 394, 1848, 4962, 82, 6615, 445, 11808, 3766, 315, 75678...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_accept_reasonable_proposal_title() { let result = validate_proposal_title(&Some("When In The Course of Human Events".to_string())); assert!(result.is_ok()); }
rust_cleaned_test_functions.jsonl/42980
{ "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, 35728, 38229, 480, 21663, 32556, 6112, 368, 341, 262, 1077, 1102, 284, 9593, 21663, 32556, 6112, 2099, 8373, 445, 4498, 758, 576, 16615, 315, 11097, 17627, 3263, 983, 3904, 7392, 262, 2060, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_from_u512_max() { let max_u64 = 0xffffffffffffffff; assert_eq!( R3 - R, Scalar::from_u512([max_u64, max_u64, max_u64, max_u64, max_u64, max_u64, max_u64, max_u64]) ); }
rust_cleaned_test_functions.jsonl/42746
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 121 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 7300, 20, 16, 17, 6345, 368, 341, 262, 1077, 1932, 7300, 21, 19, 284, 220, 15, 41798, 53697, 280, 262, 2060, 10714, 33673, 414, 431, 18, 481, 431, 345, 414, 35176, 486, 1499, 7300, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid_char() { let mut lexer = Lexer::new(); match lexer.lex("this is & invalid".to_string()){ Err(s) => assert_eq!("LEXING FAILURE at 1:9 invalid character &\nthis is & invalid\n ^".to_string(), s), _ => assert!(false) } }
rust_cleaned_test_functions.jsonl/47915
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 9232, 368, 341, 286, 1077, 5206, 53259, 284, 85082, 486, 931, 543, 286, 2432, 53259, 82248, 445, 574, 374, 609, 8318, 3263, 983, 3904, 12130, 310, 15495, 1141, 8, 589, 2060, 10714, 17223, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_execute_trailing_comma() { let mut result = FakeWrite::default(); execute!(&mut result, FakeCommand, FakeCommand,).unwrap(); assert_eq!(&result.buffer, "cmdcmd"); assert!(result.flushed); }
rust_cleaned_test_functions.jsonl/5851
{ "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, 44329, 3547, 14277, 2965, 1728, 368, 341, 310, 1077, 5206, 1102, 284, 36965, 7985, 486, 2258, 543, 310, 9026, 0, 2099, 6984, 1102, 11, 36965, 4062, 11, 36965, 4062, 11, 568, 15454, 543, 310, 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
#[test] fn test_create_account_ephemeral_with_auth_mechanism() { request_stream_test( AccountLifetime::Ephemeral, create_clean_pre_auth_manager(), None, Arc::new(Inspector::new()), |proxy| async move { assert_eq!( ...
rust_cleaned_test_functions.jsonl/105853
{ "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, 8657, 13500, 12476, 29032, 3253, 6615, 14014, 717, 4737, 67813, 368, 341, 286, 1681, 12673, 4452, 1006, 310, 8615, 74579, 486, 36, 59941, 3253, 345, 310, 1855, 19573, 10442, 14014, 12144, 3148, 310,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2