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_scatter() -> Result<()> { // Test DFUint16Array let df_uint16_array = DFUInt16Array::new_from_iter(1u16..11u16); // Create the indice array let indices = vec![1, 2, 3, 1, 3, 2, 0, 3, 1, 0]; // The number of rows should be equal to the length of indices assert_eq!(df_uint1...
rust_cleaned_test_functions.jsonl/72696
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1372 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13171, 1650, 368, 1464, 5714, 71698, 341, 262, 442, 3393, 43376, 21570, 16, 21, 1857, 198, 262, 1077, 6764, 15807, 16, 21, 3858, 284, 43376, 18777, 16, 21, 1857, 486, 931, 5673, 11723, 7, 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...
6
#[test] fn test_output_encryption() { let db_name = format!("{}.sqlite3", random::string(8).as_str()); let tempdir = tempdir().unwrap(); let db_folder = tempdir.path().to_str().unwrap().to_string(); let db_path = format!("{}{}", db_folder, db_name); embed_migrations!("./...
rust_cleaned_test_functions.jsonl/83082
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1058 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7645, 13781, 15597, 368, 341, 286, 1077, 2927, 1269, 284, 3561, 17223, 46391, 37042, 18, 497, 4194, 486, 917, 7, 23, 568, 300, 2895, 1423, 286, 1077, 2730, 3741, 284, 2730, 3741, 1005, 15454, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_function_declaration_invalid_missing_name() { let mut p = make_parser("function { echo body; }"); assert_eq!( Err(Unexpected(Token::CurlyOpen, src(9, 1, 10))), p.function_declaration() ); let mut p = make_parser("function () { echo body; }"); assert_eq!( ...
rust_cleaned_test_functions.jsonl/69869
{ "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, 9174, 77926, 31433, 40447, 1269, 368, 341, 262, 1077, 5206, 281, 284, 1281, 18517, 445, 1688, 314, 1687, 2487, 26, 335, 797, 262, 2060, 10714, 33673, 286, 15495, 7, 29430, 38584, 486, 16704, 398, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bad_utf8() { let bytes: &[u8] = b"\xfc\x80\x80\x80\x80\xaf"; new_ucmd!() .args(&["-c", "6"]) .pipe_in(bytes) .succeeds() .stdout_is_bytes(bytes); }
rust_cleaned_test_functions.jsonl/32780
{ "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, 34199, 39453, 23, 368, 341, 262, 1077, 5820, 25, 44590, 84, 23, 60, 284, 293, 11934, 40428, 3462, 23, 15, 3462, 23, 15, 3462, 23, 15, 3462, 23, 15, 3462, 2577, 876, 262, 501, 68887, 2277, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_depth() { let cases = vec![ (None, None), (Some("null"), Some(1)), (Some("[true, 2017]"), Some(2)), ( Some(r#"{"a": {"a1": [3]}, "b": {"b1": {"c": {"d": [5]}}}}"#), Some(6), ), (S...
rust_cleaned_test_functions.jsonl/60592
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9455, 19061, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 4064, 11, 2240, 1326, 310, 320, 8373, 445, 2921, 3975, 4329, 7, 16, 6965, 310, 320, 8373, 10937, 1866, 11, 220, 17, 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...
2
#[test] fn test_data_payload_creator_when_payload_no_fport() { let mut phy = DataPayloadCreator::new(); let nwk_skey = AES128([2; 16]); let app_skey = AES128([1; 16]); assert!(phy.build(b"hello", &nwk_skey, &app_skey).is_err()); }
rust_cleaned_test_functions.jsonl/81611
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1769, 32813, 68532, 47636, 32813, 6536, 761, 403, 368, 341, 262, 1077, 5206, 36455, 284, 2885, 29683, 31865, 486, 931, 543, 262, 1077, 308, 50522, 643, 792, 284, 38841, 16, 17, 23, 2561, 17, 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_json_codec() -> Result<()> { let seed = literal!({ "snot": "badger" }); let mut codec = Json::<Unsorted>::default(); let mut as_raw = codec.encode(&seed)?; let as_json = codec.decode(as_raw.as_mut_slice(), 0); let _ = dbg!(as_json); Ok(()) ...
rust_cleaned_test_functions.jsonl/81985
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 158 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9455, 51084, 368, 1464, 5714, 71698, 341, 286, 1077, 10320, 284, 23141, 0, 2306, 330, 82, 1921, 788, 330, 13855, 1389, 1, 3011, 286, 1077, 5206, 34647, 284, 8308, 27638, 1806, 28298, 6831, 2258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_import_fails_with_missing_configs() { let _setup = SetupEmpty::init(); // Invalid json let res = import("").unwrap_err(); assert_eq!(res.kind(), VcxErrorKind::InvalidJson); let mut config = json!({}); // Missing wallet_key let res = impor...
rust_cleaned_test_functions.jsonl/118714
{ "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, 18434, 761, 6209, 6615, 40447, 59150, 368, 341, 286, 1077, 716, 15188, 284, 18626, 3522, 486, 2327, 1428, 286, 442, 13882, 2951, 198, 286, 1077, 592, 284, 1159, 80821, 15454, 9266, 543, 286, 2060,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_chained_merge_left() { // This test creates a succession of merge events that need to be resolved during // a left event. // |\/\ /\ /| <-- merge // | \/ \ / | <-- merge // | \/ | <-- merge // \ | <-- left let mut path = Path::...
rust_cleaned_test_functions.jsonl/102412
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 386 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4138, 2627, 20888, 9579, 368, 341, 262, 442, 1096, 1273, 11450, 264, 49687, 315, 10880, 4357, 429, 1184, 311, 387, 19673, 2337, 198, 262, 442, 264, 2115, 1538, 624, 262, 442, 760, 4739, 59, 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_shape() { let data = [0, 1, 2, 3, 4, 5]; let a = Array::from_shape_vec((1, 2, 3), data.to_vec()).unwrap(); let b = Array::from_shape_vec((1, 2, 3).f(), data.to_vec()).unwrap(); let c = Array::from_shape_vec((1, 2, 3).strides((1, 3, 1)), data.to_vec()).unwrap(); println!("{:?}...
rust_cleaned_test_functions.jsonl/92626
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 251 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13597, 368, 341, 262, 1077, 821, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 262, 1077, 264, 284, 2910, 486, 1499, 13597, 13251, 1188, 16, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_locate_3_args() { let cases = vec![ (None, None, None, None), (None, Some(""), Some(1), None), (Some(""), None, None, None), (Some(""), Some("foobArbar"), Some(1), Some(1)), (Some(""), Some("foobArbar"), Some(0), Some(0)), ...
rust_cleaned_test_functions.jsonl/10175
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 770 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13400, 349, 62, 18, 8384, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 4064, 11, 2240, 11, 2240, 11, 2240, 1326, 310, 320, 4064, 11, 4329, 86076, 4329, 7, 16, 701, 2240, 1326, 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
#[test] fn test_binary_literal_from_bit_str() { let cs = vec![ ("b''", vec![], false), ("B''", vec![], false), ("0b''", vec![], true), ("0b0", vec![0x0], false), ("b'0'", vec![0x0], false), ("B'0'", vec![0x0], false), ("...
rust_cleaned_test_functions.jsonl/12348
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1785 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31761, 34100, 5673, 13996, 2895, 368, 341, 286, 1077, 10532, 284, 7486, 90515, 310, 3489, 65, 4605, 497, 7486, 0, 12995, 895, 1326, 310, 3489, 33, 4605, 497, 7486, 0, 12995, 895, 1326, 310, 3489...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_marshal_trait() { let mut body = MarshalledMessageBody::new(); let bytes: &[&[_]] = &[&[4u64]]; body.push_param(bytes).unwrap(); assert_eq!( vec![12, 0, 0, 0, 8, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0], body.buf ); assert_eq!(body.sig.as_str(), "aat"); let ...
rust_cleaned_test_functions.jsonl/46403
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2861 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 28423, 78491, 368, 341, 262, 1077, 5206, 2487, 284, 39063, 4736, 2052, 5444, 486, 931, 543, 262, 1077, 5820, 25, 44590, 5, 13496, 5053, 284, 44590, 5, 58, 19, 84, 21, 19, 13204, 262, 2487...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hex_offset() { let input = [0u8; 0x1F]; let expected_output = unindent( " 000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000010 00000000 00000000 00000000 00000000 00000000 00000000 0000...
rust_cleaned_test_functions.jsonl/48817
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 291 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32655, 6917, 368, 341, 262, 1077, 1946, 284, 508, 15, 84, 23, 26, 220, 15, 87, 16, 37, 935, 262, 1077, 3601, 7645, 284, 650, 32840, 1006, 286, 6228, 310, 220, 15, 15, 15, 15, 15, 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_mut_splitator() { let mut xs = [0,1,0,2,3,0,0,4,5,0]; assert_eq!(xs.mut_split(|x| *x == 0).len(), 6); for slice in xs.mut_split(|x| *x == 0) { slice.reverse(); } assert!(xs == [0,1,0,3,2,0,0,5,4,0]); let mut xs = [0,1,0,2,3,0,0,4,5,0,6...
rust_cleaned_test_functions.jsonl/75639
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 308 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29523, 17052, 850, 368, 341, 286, 1077, 5206, 11943, 284, 508, 15, 11, 16, 11, 15, 11, 17, 11, 18, 11, 15, 11, 15, 11, 19, 11, 20, 11, 15, 935, 286, 2060, 10714, 10297, 18561, 744, 332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_align_seg() { let mut seg: Vec<u8> = vec![]; let mut align = 1; align_seg(&mut seg, &mut align, 8); assert_eq!(seg.len(), 0); assert_eq!(align, 8); seg.push(0); assert_eq!(seg.len(), 1); align_seg(&mut seg, &mut align, 4); assert_eq!(seg.len(), 4); asser...
rust_cleaned_test_functions.jsonl/88991
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37015, 35325, 368, 341, 262, 1077, 5206, 4810, 25, 11312, 34837, 23, 29, 284, 7486, 0, 15078, 262, 1077, 5206, 5285, 284, 220, 16, 401, 262, 5285, 35325, 2099, 6984, 4810, 11, 609, 6984, 5285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_der_read_set_of_ok() { use std::collections::HashSet; let tests : &[(&[i64], &[u8])] = &[ (&[-129, -128, 127, 128], &[ 49, 14, 2, 1, 127, 2, 1, 128, 2, 2, 0, 128, 2, 2, 255, 127]), (&[-128, 127, 128], &[ 49, 10, 2, 1, 127, 2, 1, 128, 2, 2, 0, 128])...
rust_cleaned_test_functions.jsonl/111148
{ "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, 35345, 6443, 2602, 3575, 19817, 368, 341, 262, 990, 1460, 486, 51137, 486, 44601, 280, 262, 1077, 7032, 549, 44590, 2099, 58, 72, 21, 19, 1125, 44590, 84, 23, 72080, 284, 609, 9640, 286, 15899, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_insert_return_old() { let mut cache = Cache::new(); let key: &'static str = "key"; let res_a = cache.insert(key, 1, Some(Duration::default())); let res_b = cache.insert(key, 2, None); let res_c = cache.insert(key, 3, None); assert_eq!(res_a, None); assert_eq!(res_b,...
rust_cleaned_test_functions.jsonl/76884
{ "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, 17678, 12511, 21108, 368, 341, 262, 1077, 5206, 6500, 284, 19479, 486, 931, 543, 262, 1077, 1376, 25, 30136, 1978, 607, 284, 330, 792, 3302, 262, 1077, 592, 4306, 284, 6500, 7030, 4857, 11, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_f16_consts_from_f32() { let one = f16::from_f32(1.0); let zero = f16::from_f32(0.0); let neg_zero = f16::from_f32(-0.0); let inf = f16::from_f32(core::f32::INFINITY); let neg_inf = f16::from_f32(core::f32::NEG_INFINITY); let nan = f16::from_f32(cor...
rust_cleaned_test_functions.jsonl/50270
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1566 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 16, 21, 48530, 5673, 761, 18, 17, 368, 341, 286, 1077, 825, 284, 282, 16, 21, 486, 1499, 761, 18, 17, 7, 16, 13, 15, 317, 286, 1077, 7168, 284, 282, 16, 21, 486, 1499, 761, 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_unless_else_in_loop() { assert_template_result!(" TRUE 2 3 ", "{% for i in choices %}{% unless i %} {{ forloop.index }} {% else %} TRUE {% endunless %}{% endfor %}", o!({"choices": [1, nil, false]})); }
rust_cleaned_test_functions.jsonl/22811
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 1717, 62628, 1243, 17198, 368, 341, 262, 2060, 8693, 5287, 17223, 8214, 220, 220, 17, 220, 220, 18, 3670, 13868, 4, 369, 600, 304, 11454, 1018, 15170, 4, 7241, 600, 1018, 92, 5867, 369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { // get test_config let test_config = create_test_config(); let config = get(); match config { Ok(c) => { println!("{:?}", c); assert_eq!(c, &test_config) } Err(_) => assert!(false), } }
rust_cleaned_test_functions.jsonl/3112
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 154 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 368, 341, 262, 442, 633, 1273, 5332, 198, 262, 1077, 1273, 5332, 284, 1855, 4452, 5332, 1428, 1066, 262, 1077, 2193, 284, 633, 1428, 1066, 262, 2432, 2193, 341, 6926, 414, 7622, 1337, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_get_cgroup_mounts() { #[derive(Debug)] struct TestData<'a> { // Create file with the specified contents contents: &'a str, // else assume no error. error_contains: &'a str, // Set if the devic...
rust_cleaned_test_functions.jsonl/32171
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2826 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 666, 4074, 57593, 82, 368, 341, 286, 11506, 27098, 42618, 5563, 286, 2036, 93200, 18291, 64, 29, 341, 310, 442, 4230, 1034, 448, 279, 5189, 8794, 18574, 310, 8794, 25, 30136, 64, 607, 3554...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_gc_fence() { let rollback = |engine: &RocksEngine, k: &[u8], start_ts: u64| { must_cleanup(engine, k, start_ts, 0); }; let check_status = |engine: &RocksEngine, k: &[u8], start_ts: u64| { check_txn_status::tests::must_success( engin...
rust_cleaned_test_functions.jsonl/16096
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2092 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49423, 81073, 368, 341, 286, 1077, 60414, 284, 760, 8512, 25, 609, 49, 25183, 4571, 11, 595, 25, 44590, 84, 23, 1125, 1191, 25023, 25, 575, 21, 19, 91, 341, 310, 1969, 42444, 48974, 11, 595, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_aligned_vector_alloc() { let v = aligned_vector_init::<f32>(24, 16, 1.0); for x in v.iter() { assert_eq!(*x, 1.0); } }
rust_cleaned_test_functions.jsonl/10830
{ "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, 66385, 12247, 14802, 368, 341, 262, 1077, 348, 284, 26118, 12247, 6137, 27638, 69, 18, 17, 2235, 17, 19, 11, 220, 16, 21, 11, 220, 16, 13, 15, 317, 262, 369, 856, 304, 348, 19471, 368, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
#[test] fn test_options_iter() { let options = [0x00, 0x01, 0x01, 0x00, 0x01, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x11, 0x00, 0x01, 0x08, 0x00]; let mut iterator = Ipv6OptionsIterator::new(&options, 0); assert_eq!(iter...
rust_cleaned_test_functions.jsonl/130724
{ "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, 8743, 11723, 368, 341, 286, 1077, 2606, 284, 508, 15, 87, 15, 15, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 15, 345, 5180, 220, 15, 87, 15, 16, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_message_id() -> Result<(), Box<dyn Error>> { assert!(matches!( Path::from_str("channels/123/messages/456") .unwrap_err() .kind(), PathParseErrorType::MessageIdWithoutMethod { channel_id: 123 }, )); assert_eq!( ...
rust_cleaned_test_functions.jsonl/13622
{ "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, 6462, 842, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 286, 2060, 10297, 19914, 33673, 310, 7933, 486, 1499, 2895, 445, 32425, 14, 16, 17, 18, 71753, 14, 19, 20, 21, 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_ldexp() { let f1 = 2.0f32.powi(-123); let f2 = 2.0f32.powi(-111); let f3 = 1.75 * 2.0f32.powi(-12); assert_eq!(f32::ldexp(1f32, -123), f1); assert_eq!(f32::ldexp(1f32, -111), f2); assert_eq!(f32::ldexp(1.75f32, -12), f3); assert_eq!(f32::l...
rust_cleaned_test_functions.jsonl/64204
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 398 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50573, 4580, 368, 341, 286, 1077, 282, 16, 284, 220, 17, 13, 15, 69, 18, 17, 25290, 72, 4080, 16, 17, 18, 317, 286, 1077, 282, 17, 284, 220, 17, 13, 15, 69, 18, 17, 25290, 72, 4080, 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
#[test] fn test_fuzzing_counterexamples() { let cfg = Config::istanbul(); let compiled = COMPILED.find("GreeterTest").expect("could not find contract"); let vicinity = new_vicinity(); let backend = new_backend(&vicinity, Default::default()); let preco...
rust_cleaned_test_functions.jsonl/71185
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 561 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 8889, 287, 15730, 51668, 368, 341, 310, 1077, 13286, 284, 5532, 486, 8944, 16110, 543, 310, 1077, 19697, 284, 7682, 1893, 13639, 2658, 445, 64747, 1404, 2271, 1827, 17119, 445, 28077, 537, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_declaration() { let decl = CRecordDeclaration::parse(b"C040516072924000000000002Task").unwrap(); assert_eq!(decl.date, Date::new(16, 5, 4)); assert_eq!(decl.time, Time::from_hms(7, 29, 24)); assert_eq!(decl.flight_date, None); assert_eq!(decl.task_nu...
rust_cleaned_test_functions.jsonl/35066
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 575 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 77926, 368, 341, 286, 1077, 3963, 284, 356, 6471, 24489, 486, 6400, 1883, 46316, 15, 19, 15, 20, 16, 21, 15, 22, 17, 24, 17, 19, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 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_validate_did_with_non_base58() { let to_did = "8*Fh8yBzrpJQmNyZzgoTqB"; match validate_did(&to_did) { Err(x) => assert_eq!(x.kind(), AgencyClientErrorKind::NotBase58), Ok(_) => panic!("Should be invalid did"), } }
rust_cleaned_test_functions.jsonl/17829
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 154 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 814, 307, 6615, 21637, 7651, 20, 23, 368, 341, 286, 1077, 311, 814, 307, 284, 330, 23, 9, 37, 71, 23, 88, 33, 89, 22252, 41, 48, 76, 98092, 57, 89, 3346, 51, 80, 33, 876, 286, 243...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_enrich_tf1x_image() { let v = SummaryValue(Box::new(Value::Image(pb::summary::Image { height: 480, width: 640, colorspace: 3, encoded_image_string: Bytes::from_static(b"\x89PNGabc"), ..Default::default() ...
rust_cleaned_test_functions.jsonl/6217
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 434 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6205, 13851, 47719, 16, 87, 4954, 368, 341, 310, 1077, 348, 284, 21517, 1130, 67758, 486, 931, 25346, 486, 1906, 76878, 486, 1708, 486, 1906, 341, 394, 2608, 25, 220, 19, 23, 15, 345, 394, 237...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tag_downcast_mut_with_id() { let mut tag = DummyTag::new(132, 1); let t: &mut dyn ILTag = &mut tag; match tag_downcast_mut_with_id::<DummyTag>(132, t) { Some(v) => { v.set_dummy(1234); assert_eq!(1234, v.get_dummy()) } None => panic!()...
rust_cleaned_test_functions.jsonl/25694
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 330 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9372, 13998, 3829, 29523, 6615, 842, 368, 341, 262, 1077, 5206, 4772, 284, 50567, 5668, 486, 931, 7, 16, 18, 17, 11, 220, 16, 317, 262, 1077, 259, 25, 609, 6984, 31070, 11344, 5668, 284, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parse_double_messages() { let packet = hex::decode("000055aa00000000000000090000000c00000000b051ab030000aa55000055aa000000000000000a0000000c00000000b051ab030000aa55").unwrap(); let expected = vec![ Message { command: Some(CommandType::Heart...
rust_cleaned_test_functions.jsonl/39165
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 483 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 24598, 23428, 368, 341, 286, 1077, 10151, 4035, 310, 12371, 486, 18196, 445, 15, 15, 15, 15, 20, 20, 5305, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 24, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_by_ref() { let mut xs = 0..10; // sum the first five values let partial_sum = xs.by_ref().take(5).fold(0, |a, b| a + b); assert_eq!(partial_sum, 10); assert_eq!(xs.next(), Some(5)); }
rust_cleaned_test_functions.jsonl/25939
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3710, 7793, 368, 341, 262, 1077, 5206, 11943, 284, 220, 15, 496, 16, 15, 280, 262, 442, 2629, 279, 1156, 4236, 2750, 198, 262, 1077, 7130, 10160, 284, 11943, 19007, 7793, 1005, 22769, 7, 20, 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_accumulator_correctness() { let mut output = [0; 100]; // Expected output from experiments with pycryto // Note that this does not match the results for the Go implementation // this is because the author there is reusing some Fortuna state from /...
rust_cleaned_test_functions.jsonl/19709
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2020 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75837, 10511, 31550, 2090, 368, 341, 286, 1077, 5206, 2550, 284, 508, 15, 26, 220, 16, 15, 15, 935, 286, 442, 31021, 2550, 504, 21204, 448, 281, 3337, 884, 983, 198, 286, 442, 7036, 429, 419, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_game_get_by_name() { let db_game = DataBase::new("tests/data/test-games.db"); match db_game.games.get_item_by_name("Akane the Kunoichi") { Some(game) => { assert_eq!(game.id, 6); assert_eq!(game.engine, "XNA".to_string()); } None => panic!(...
rust_cleaned_test_functions.jsonl/62748
{ "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, 18547, 3062, 3710, 1269, 368, 341, 262, 1077, 2927, 18547, 284, 66930, 486, 931, 445, 23841, 13167, 12697, 2371, 971, 7076, 797, 262, 2432, 2927, 18547, 49425, 670, 5634, 3710, 1269, 445, 55802, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_css_color_14() { assert_eq!(parse_css_color("rgb(20, 30)"), Err(CssColorParseError::MissingColorComponent(CssColorComponent::Blue))); }
rust_cleaned_test_functions.jsonl/37109
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 76 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 25924, 6714, 62, 16, 19, 368, 341, 286, 2060, 10714, 10297, 6400, 25924, 6714, 445, 16509, 7, 17, 15, 11, 220, 18, 15, 8, 3975, 15495, 3025, 778, 1636, 14463, 1454, 486, 25080, 1636, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_f64_max_simple_cases() { assert_eq!(0.2, f64_max(0.1, 0.2)); assert_eq!(10.0, f64_max(10.0, 9.0)); assert_eq!(0.3, f64_max(0.3, 0.2)); assert_eq!(100.0, f64_max(9.0, 100.0)); assert_eq!(-1.0, f64_max(-1.0, -2.0)); assert_eq!(2.0, f64_max(2.0, -10.0)); }
rust_cleaned_test_functions.jsonl/96750
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 21, 19, 6345, 30015, 41427, 368, 341, 262, 2060, 10714, 10297, 15, 13, 17, 11, 282, 21, 19, 6345, 7, 15, 13, 16, 11, 220, 15, 13, 17, 1106, 262, 2060, 10714, 10297, 16, 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_align() { use std::mem; assert_eq!(16, mem::size_of::<Vec3A>()); assert_eq!(16, mem::align_of::<Vec3A>()); if cfg!(all(target_feature = "sse2", not(feature = "scalar-math"))) { assert_eq!(16, mem::size_of::<BVec3A>()); assert_eq!(16, mem::a...
rust_cleaned_test_functions.jsonl/23405
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 303 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37015, 368, 341, 286, 990, 1460, 486, 10536, 280, 286, 2060, 10714, 10297, 16, 21, 11, 1833, 486, 2141, 3575, 27638, 10050, 18, 32, 32872, 286, 2060, 10714, 10297, 16, 21, 11, 1833, 486, 6612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_git_revision() { for sha in &["0000000", "0000000000000000000000000000000000000000"] { assert_eq!( git_revision(&format!("crater/{}", sha)), Some(sha.to_string()) ); assert_eq!( git_revision(&format!("cra...
rust_cleaned_test_functions.jsonl/51033
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 429 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68801, 59856, 368, 341, 286, 369, 15870, 304, 609, 1183, 15, 15, 15, 15, 15, 15, 15, 497, 330, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 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_storage_path_calculation() { assert_eq!( LocalStorage::calc_storage_path(&None, "test"), home::home_dir() .unwrap_or(std::path::PathBuf::from("/")) .join(crate::client::LOCAL_STORAGE_DEFAULT_DIR_NAME) .join("test"), ); const LOCAL_...
rust_cleaned_test_functions.jsonl/121420
{ "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, 23310, 2638, 38241, 2914, 368, 341, 262, 2060, 10714, 33673, 286, 8774, 5793, 486, 26586, 23310, 2638, 2099, 4064, 11, 330, 1944, 4461, 286, 2114, 486, 5117, 4334, 741, 310, 659, 15454, 8734, 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_determine_prefixes_min_fraction() { let library = test_library(); let lookup = Count::build_lookup(&library, false); let mut reads = vec![]; for _ in 0..50 { // offset = 5 reads.push(format!("ttttt{}ttttt", library.guides[0].bases_str)) ...
rust_cleaned_test_functions.jsonl/72865
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 656 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 24308, 13974, 288, 7260, 59023, 368, 341, 286, 1077, 6733, 284, 1273, 39461, 543, 286, 1077, 18615, 284, 4504, 486, 5834, 27464, 2099, 18065, 11, 895, 626, 286, 1077, 5206, 15804, 284, 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...
5
#[test] fn test_convert_from_uint() { macro_rules! check { ($ty:ident, $max:expr) => { assert_eq!(BigInt::from($ty::zero()), BigInt::zero()); assert_eq!(BigInt::from($ty::one()), BigInt::one()); assert_eq!(BigInt::from($ty::MAX - $ty::one()), $max - BigInt::one())...
rust_cleaned_test_functions.jsonl/56625
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 418 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 5673, 15807, 368, 341, 262, 18072, 21407, 0, 1779, 341, 286, 1711, 1881, 25, 1713, 11, 400, 2810, 96011, 8, 589, 341, 310, 2060, 10714, 10297, 87474, 486, 1499, 699, 1881, 486, 14154, 118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_element_user_defined_type() { assert_expression!( "cards(1).Value", Expression::Property( Box::new(Expression::func("cards", vec![1.as_lit_expr(1, 13)])), "Value".into(), ExpressionType:...
rust_cleaned_test_functions.jsonl/102644
{ "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, 7894, 3317, 52870, 1819, 368, 341, 310, 2060, 28068, 33673, 394, 330, 25024, 7, 16, 568, 1130, 756, 394, 16378, 486, 3052, 1006, 503, 8261, 486, 931, 55188, 486, 2830, 445, 25024, 497, 748...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_token_bucket_reduce() { // token bucket with capacity 1000 and refill time of 1000 milliseconds // allowing rate of 1 token/ms. let capacity = 1000; let refill_ms = 1000; let mut tb = TokenBucket::new(capacity, 0, refill_ms as u64).unwrap(); asser...
rust_cleaned_test_functions.jsonl/15885
{ "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, 6458, 38749, 64596, 368, 341, 286, 442, 3950, 15621, 448, 8654, 220, 16, 15, 15, 15, 323, 73715, 882, 315, 220, 16, 15, 15, 15, 30504, 198, 286, 442, 10693, 4379, 315, 220, 16, 3950, 58634, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_shift_jis_half_width_katakana_length() { let mut output = [0u8; 20]; let mut decoder = SHIFT_JIS.new_decoder(); { let needed = decoder .max_utf8_buffer_length_without_replacement(1) .unwrap(); let (result, read, writ...
rust_cleaned_test_functions.jsonl/74970
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 378 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22230, 5374, 285, 40626, 7927, 4698, 68728, 3362, 5118, 368, 341, 286, 1077, 5206, 2550, 284, 508, 15, 84, 23, 26, 220, 17, 15, 935, 286, 1077, 5206, 24551, 284, 82503, 10598, 1637, 4618, 49843,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_equal_predicate() { let mut reader = Reader::init("equals true"); assert_eq!( equal_predicate(&mut reader).unwrap(), PredicateFuncValue::Equal { value: PredicateValue::Bool(true), space0: Whitespace { va...
rust_cleaned_test_functions.jsonl/51181
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1543 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11478, 97474, 368, 341, 286, 1077, 5206, 6604, 284, 25166, 486, 2327, 445, 7176, 220, 830, 797, 286, 2060, 10714, 33673, 310, 6144, 97474, 2099, 6984, 6604, 568, 15454, 3148, 310, 49827, 9626, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fold_block() { test("{{foo()}}", "foo()"); test("{foo();{}}", "foo()"); test("{{foo()}{}}", "foo()"); test("{{foo()}{bar()}}", "foo();bar()"); test("{if(false)foo(); {bar()}}", "bar()"); test("{if(false)if(false)if(false)foo(); {bar()}}", "bar()"); test("{'hi'}", "")...
rust_cleaned_test_functions.jsonl/367
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 474 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61187, 7113, 368, 341, 262, 1273, 445, 2979, 7975, 368, 3417, 497, 330, 7975, 45961, 262, 1273, 13976, 7975, 2129, 90, 3417, 497, 330, 7975, 45961, 262, 1273, 445, 2979, 7975, 368, 15170, 3417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scan_mvcc() { let debugger = new_debugger(); let engine = &debugger.engines.kv; let cf_default_data = vec![(b"k1", b"v", 5), (b"k2", b"x", 10), (b"k3", b"y", 15)]; for &(prefix, value, ts) in &cf_default_data { let encoded_key = Key::from_raw(prefix)....
rust_cleaned_test_functions.jsonl/72933
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28857, 73187, 638, 368, 341, 286, 1077, 44473, 284, 501, 15446, 1389, 543, 286, 1077, 4712, 284, 609, 8349, 1389, 90413, 1543, 5202, 85, 401, 286, 1077, 24111, 9993, 1769, 284, 7486, 0, 9697, 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...
5
#[test] fn test_to_seconds() { let cases = vec![ ("950501", Some(62966505600)), ("2009-11-29", Some(63426672000)), ("2009-11-29 13:43:32", Some(63426721412)), ("09-11-29 13:43:32", Some(63426721412)), ("99-11-29 13:43:32", Some(63111102212)), ...
rust_cleaned_test_functions.jsonl/36240
{ "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, 2346, 34825, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 24, 20, 15, 20, 15, 16, 497, 4329, 7, 21, 17, 24, 21, 21, 20, 15, 20, 21, 15, 15, 6965, 310, 3489, 17, 15, 15, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_check_pattern() { assert_eq!( check_pattern( &MONSTER_PATTERN, *MONSTER_WIDTH, &MONSTER_PATTERN, *MONSTER_WIDTH ), 15 ); }
rust_cleaned_test_functions.jsonl/127364
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 21260, 368, 341, 286, 2060, 10714, 33673, 310, 1779, 21260, 1006, 394, 609, 21344, 37923, 44227, 345, 394, 353, 21344, 37923, 13947, 345, 394, 609, 21344, 37923, 44227, 345, 394, 353, 21344, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_forward_compat() { let address = IpAddr::from([ 525u16, 524u16, 523u16, 522u16, 521u16, 520u16, 519u16, 518u16, ]); let mut data = vec![0u8; IP_ECHO_SERVER_RESPONSE_LENGTH]; bincode::serialize_into(&mut data[HEADER_LENGTH..], &address).unwrap(); ...
rust_cleaned_test_functions.jsonl/43704
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 334 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32121, 89602, 368, 341, 286, 1077, 2621, 284, 35033, 13986, 486, 1499, 8956, 310, 220, 20, 17, 20, 84, 16, 21, 11, 220, 20, 17, 19, 84, 16, 21, 11, 220, 20, 17, 18, 84, 16, 21, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_action_chain() { let mut action_chain = ActionChain::new(); let start_iter = action_chain.current_iteration(); assert!(action_chain.push_action(1)); assert!(action_chain.push_action(2)); assert!(action_chain.push_action(3)); assert!(!action_chain.push_action(1)); asse...
rust_cleaned_test_functions.jsonl/101307
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7931, 30583, 368, 341, 262, 1077, 5206, 1917, 30583, 284, 5586, 18837, 486, 931, 543, 262, 1077, 1191, 11723, 284, 1917, 30583, 4952, 62772, 543, 262, 2060, 10297, 1311, 30583, 2552, 7931, 7, 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
#[test] fn test_decode_correctness() { // general case let amount: u64 = 55; let instance = DiscreteLog::new(G, Scalar::from(amount) * G); // Very informal measurements for now let start_computation = Instant::now(); let decoded = instance.decode_u32(); ...
rust_cleaned_test_functions.jsonl/17060
{ "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, 15227, 31550, 2090, 368, 341, 286, 442, 4586, 1142, 198, 286, 1077, 3311, 25, 575, 21, 19, 284, 220, 20, 20, 401, 286, 1077, 2867, 284, 4093, 9353, 2201, 486, 931, 6699, 11, 35176, 486, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_convert_from_int() { macro_rules! check { ($ty:ident, $min:expr, $max:expr) => { assert_eq!(BigInt::from($ty::MIN), $min); assert_eq!(BigInt::from($ty::MIN + $ty::one()), $min + BigInt::one()); assert_eq!(BigInt::from(-$ty::one()), -BigInt::one());...
rust_cleaned_test_functions.jsonl/56626
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 785 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 5673, 4042, 368, 341, 262, 18072, 21407, 0, 1779, 341, 286, 1711, 1881, 25, 1713, 11, 400, 1065, 96011, 11, 400, 2810, 96011, 8, 589, 341, 310, 2060, 10714, 10297, 87474, 486, 1499, 699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_specified_addr() { assert_eq!( SpecifiedAddr::new(Address::GlobalUnicast), Some(SpecifiedAddr(Address::GlobalUnicast)) ); assert_eq!(SpecifiedAddr::new(Address::Unspecified), None); }
rust_cleaned_test_functions.jsonl/33643
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13594, 1870, 7387, 368, 341, 286, 2060, 10714, 33673, 310, 10956, 1870, 13986, 486, 931, 68492, 486, 11646, 1806, 35446, 1326, 310, 4329, 3759, 44040, 13986, 68492, 486, 11646, 1806, 35446, 1171, 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
#[test] fn test_decode_array() { let v: Vec<()> = super::decode("[]").unwrap(); assert_eq!(v, vec![]); let v: Vec<()> = super::decode("[null]").unwrap(); assert_eq!(v, vec![()]); let v: Vec<bool> = super::decode("[true]").unwrap(); assert_eq!(v, vec![true]); ...
rust_cleaned_test_functions.jsonl/6548
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 285 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 3858, 368, 341, 286, 1077, 348, 25, 11312, 71698, 284, 2256, 486, 18196, 445, 1294, 1827, 15454, 543, 286, 2060, 10714, 10297, 85, 11, 7486, 0, 1294, 626, 286, 1077, 348, 25, 11312, 71698...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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); let expected = BooleanArray::from_slice(vec![true, false, true, false]); assert_eq!(expected, res); }
rust_cleaned_test_functions.jsonl/36459
{ "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, 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_chrono_datetime_from_timestamp_now() { let datetime_from_timestamp: DateTime<Utc> = Timestamp::Now.into(); assert_eq!(Utc::now().date(), datetime_from_timestamp.date()) }
rust_cleaned_test_functions.jsonl/105312
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4138, 2248, 78, 28943, 5673, 23073, 20813, 368, 341, 286, 1077, 8874, 5673, 23073, 25, 6520, 36397, 10413, 29, 284, 32758, 486, 7039, 39860, 543, 286, 2060, 10714, 10297, 97768, 486, 3328, 1005, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_set_layout() { let helper = StorageHelper::new(); let temppath = diem_temppath::TempPath::new(); helper .set_layout(temppath.path().to_str().unwrap()) .unwrap_err(); temppath.create_as_file().unwrap(); let mut file = File::create(...
rust_cleaned_test_functions.jsonl/86343
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 484 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 14466, 368, 341, 286, 1077, 13137, 284, 14693, 5511, 486, 931, 1428, 286, 1077, 1562, 602, 587, 284, 1853, 336, 28613, 602, 587, 486, 12151, 1820, 486, 931, 543, 286, 13137, 198, 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_literal() { check( r#" macro_rules! m { ($type:ty, $lit:literal) => { const VALUE: $type = $ lit; }; } m!(u8, 0); "#, expect![[r#" macro_rules! m { ($type:ty, $lit:literal) => { const VALUE: $type = $ lit; }; } const VALUE: u8 = 0; "#]], ); check( r#"...
rust_cleaned_test_functions.jsonl/85250
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34100, 368, 341, 262, 1779, 1006, 286, 435, 2, 698, 32606, 21407, 0, 296, 341, 262, 1711, 1313, 25, 1881, 11, 400, 31635, 25, 35785, 8, 589, 314, 733, 26827, 25, 400, 1313, 284, 400, 13020, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add() { let mut e = Event::new(&client::Options { api_key: "some_api_key".to_string(), ..client::Options::default() }); let now = Value::String(Utc::now().to_rfc3339()); e.add_field("my_timestamp", now.clone()); assert_eq!(e.option...
rust_cleaned_test_functions.jsonl/97070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 199 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 368, 341, 286, 1077, 5206, 384, 284, 3665, 486, 931, 2099, 2972, 486, 3798, 341, 310, 6330, 3097, 25, 330, 14689, 11697, 3097, 3263, 983, 3904, 3148, 310, 5241, 2972, 486, 3798, 486, 2258,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_date_from_int() { assert_eq!(Value::DateTime(DateTime::new(Date::new_str("2012", "01", "03"), None)), Value::date_from_int(2012, 1, 3).unwrap()); }
rust_cleaned_test_functions.jsonl/86205
{ "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, 8657, 4164, 5673, 4042, 368, 341, 262, 2060, 10714, 10297, 1130, 486, 7689, 32083, 486, 931, 19987, 486, 931, 2895, 445, 17, 15, 16, 17, 497, 330, 15, 16, 497, 330, 15, 18, 3975, 2240, 6965, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_inverse_is_pow() { let q_minus_2 = [ 0xfffffffeffffffff, 0x53bda402fffe5bfe, 0x3339d80809a1d805, 0x73eda753299d7d48, ]; let mut r1 = Scalar::from_repr(R).unwrap(); let mut r2 = r1; for _ in 0..100 { ...
rust_cleaned_test_functions.jsonl/56382
{ "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, 63333, 6892, 56183, 368, 341, 286, 1077, 2804, 38457, 62, 17, 284, 2278, 310, 220, 15, 68247, 1859, 53697, 345, 310, 220, 15, 87, 20, 18, 65, 3235, 19, 15, 17, 542, 1859, 20, 65, 1859, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_max_map_size() -> Result<(), Box<EvalAltResult>> { let mut engine = Engine::new(); engine.set_max_map_size(10); #[cfg(not(feature = "no_index"))] engine.set_max_array_size(10); assert!(matches!( engine .compile("let x = #{a:1,b:2,c:3,d:4,e:5,f:6,g:7,h:8,...
rust_cleaned_test_functions.jsonl/44091
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 5376, 2368, 368, 1464, 5714, 68843, 8261, 23835, 831, 26017, 2077, 2452, 341, 262, 1077, 5206, 4712, 284, 8200, 486, 931, 543, 262, 4712, 980, 6345, 5376, 2368, 7, 16, 15, 626, 262, 11506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_set_progressive() { let mut encoder = Encoder::new(vec![], 100); encoder.set_progressive(true); assert_eq!(encoder.progressive_scans(), Some(4)); encoder.set_progressive(false); assert_eq!(encoder.progressive_scans(), None); }
rust_cleaned_test_functions.jsonl/20869
{ "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, 2602, 27200, 533, 368, 341, 286, 1077, 5206, 23668, 284, 55115, 486, 931, 25592, 0, 12995, 220, 16, 15, 15, 317, 286, 23668, 980, 27200, 533, 3715, 317, 286, 2060, 10714, 10297, 27008, 27927, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ops() { let mut puzzle = Puzzle::new(); let x = puzzle.new_var(); let y = puzzle.new_var(); // expr = var + const; let _ = x + 1; let _ = x - 1; let _ = x * 1; let _ = x + Ratio::new(1, 2); let _ = x - Ratio::new(1, 2); ...
rust_cleaned_test_functions.jsonl/10018
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 851 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21959, 368, 341, 286, 1077, 5206, 24626, 284, 60012, 486, 931, 543, 286, 1077, 856, 284, 24626, 4618, 4612, 543, 286, 1077, 379, 284, 24626, 4618, 4612, 1428, 286, 442, 15169, 284, 762, 488, 733...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_barrier() { const N: usize = 10; let barrier = Arc::new(Barrier::new(N)); let (tx, rx) = channel(); for _ in 0..N - 1 { let c = barrier.clone(); let tx = tx.clone(); thread::spawn(move|| { tx.send(c.wait().is_l...
rust_cleaned_test_functions.jsonl/94142
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 458 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82355, 368, 341, 286, 733, 451, 25, 22301, 284, 220, 16, 15, 401, 286, 1077, 22103, 284, 19689, 486, 931, 7, 33038, 486, 931, 8204, 1106, 286, 1077, 320, 3998, 11, 19111, 8, 284, 5496, 1428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_prompt_for_string_confirm() { let (ctx, is, os) = create_normal_test_context("foobar\nfoobar\n"); let result = prompt_for_string_confirm(is, os, TEST_PROMPT, /*is_sensitive=*/ false).unwrap(); assert_eq!("foobar", result); assert!(ctx.has_default_attributes()); assert_eq!( ...
rust_cleaned_test_functions.jsonl/110980
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61421, 5478, 3904, 23800, 368, 341, 262, 1077, 320, 3773, 11, 374, 11, 2643, 8, 284, 1855, 13973, 4452, 8467, 445, 50267, 1699, 50267, 1699, 797, 262, 1077, 1102, 284, 9934, 5478, 3904, 23800, 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_run_update() -> Result<()> { let test_base = PathBuf::from("test/repo/bash"); run_update(&test_base)?; let file_path = PathBuf::from("testtouch"); assert!(file_path.exists()); std::fs::remove_file(&file_path)?; assert!(!file_path.exists()); Ok(()) }
rust_cleaned_test_functions.jsonl/108932
{ "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, 14007, 8882, 368, 1464, 5714, 71698, 341, 262, 1077, 1273, 7651, 284, 7933, 15064, 486, 1499, 445, 1944, 10758, 5368, 17148, 797, 262, 1598, 8882, 2099, 1944, 7651, 40007, 262, 1077, 1034, 2638, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_tx_response_with_txs_size() { let keys = KeyPair::random(); let txs = vec![ vec![1_u8; 8], vec![2_u8; 16], vec![3_u8; 64], vec![4_u8; 256], vec![5_u8; 4096], ]; let txs_size = txs.iter().fold(0, |acc, tx|...
rust_cleaned_test_functions.jsonl/43026
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 349 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17805, 9655, 6615, 17805, 82, 2368, 368, 341, 286, 1077, 6894, 284, 5309, 12443, 486, 11463, 543, 286, 1077, 9854, 82, 284, 7486, 90515, 310, 7486, 20703, 16, 7300, 23, 26, 220, 23, 1259, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_data_payload_creator_when_payload_and_fport_0() { let mut phy = DataPayloadCreator::new(); let nwk_skey = AES128([2; 16]); let app_skey = AES128([1; 16]); phy.set_f_port(0); assert!(phy.build(b"hello", &nwk_skey, &app_skey).is_err()); }
rust_cleaned_test_functions.jsonl/81607
{ "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, 1769, 32813, 68532, 47636, 32813, 8378, 761, 403, 62, 15, 368, 341, 262, 1077, 5206, 36455, 284, 2885, 29683, 31865, 486, 931, 543, 262, 1077, 308, 50522, 643, 792, 284, 38841, 16, 17, 23, 2561,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_module_levels_denylist() { let logger = SimpleLogger::new() .with_level(LevelFilter::Debug) .with_module_level("my_crate", LevelFilter::Trace) .with_module_level("chatty_dependency", LevelFilter::Info); assert!(logger.enabled(&create_log("my_c...
rust_cleaned_test_functions.jsonl/79864
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 452 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10750, 37819, 814, 32395, 1607, 368, 341, 286, 1077, 5925, 284, 8993, 7395, 486, 931, 741, 310, 659, 4197, 8274, 30263, 5632, 486, 7939, 340, 310, 659, 4197, 10750, 8274, 445, 2408, 666, 7698, 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_from_str() { assert_eq!( "1.2.3".parse(), Ok(Version { major: 1, minor: 2, patch: 3, pre: Vec::new(), build: Vec::new(), }) ); assert_eq!( " 1....
rust_cleaned_test_functions.jsonl/43111
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2895, 368, 341, 286, 2060, 10714, 33673, 310, 330, 16, 13, 17, 13, 18, 3263, 6400, 3148, 310, 7622, 7, 5637, 341, 394, 3598, 25, 220, 16, 345, 394, 8922, 25, 220, 17, 345, 394, 10900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_try_expr() { check_assist( inline_local_variable, r" fn foo() -> Option<usize> { let bar = Some(1); let a$0 = bar?; let b = a * 10; let c = a as usize; None }", r" fn foo() -> Option<usize> { let bar = Some(1); let b = bar? ...
rust_cleaned_test_functions.jsonl/3233
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 212 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 21915, 368, 341, 286, 1779, 12083, 380, 1006, 310, 7381, 13564, 14635, 345, 310, 435, 698, 8822, 15229, 368, 1464, 6959, 90244, 29, 341, 262, 1077, 3619, 284, 4329, 7, 16, 317, 262, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_legal_moves_banmen_with_gin_nari_7_squares_and_contiguous_self_sente() { test_legal_moves_banmen_with_kin_7_squares_and_contiguous_self_sente_impl(SGinN) }
rust_cleaned_test_functions.jsonl/81305
{ "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, 82324, 45390, 880, 276, 5676, 6615, 1889, 258, 1089, 2780, 62, 22, 643, 40856, 8378, 10260, 27029, 25637, 643, 6817, 368, 972, 18185, 82324, 45390, 880, 276, 5676, 6615, 4698, 258, 62, 22, 643, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_internal_hash_and_proof() { // non-leaf case 1 { let internal_node_key = random_63nibbles_node_key(); let mut children = Children::default(); let index1 = Nibble::from(4); let index2 = Nibble::from(15); let hash1 = HashValue::random(); let...
rust_cleaned_test_functions.jsonl/56488
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 5234 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23472, 8950, 8378, 86757, 368, 341, 262, 442, 2477, 12, 24153, 1142, 220, 16, 198, 262, 341, 286, 1077, 5306, 5084, 3097, 284, 4194, 62, 21, 18, 77, 579, 38763, 5084, 3097, 543, 286, 1077, 520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
#[test] fn test_range_inclusive_folds() { assert_eq!((1..=10).sum::<i32>(), 55); assert_eq!((1..=10).rev().sum::<i32>(), 55); let mut it = 44..=50; assert_eq!(it.try_fold(0, i8::checked_add), None); assert_eq!(it, 47..=50); assert_eq!(it.try_fold(0, i8::checked_add), None); assert_e...
rust_cleaned_test_functions.jsonl/54163
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 643 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 1243, 8336, 761, 18431, 368, 341, 262, 2060, 10714, 0, 1188, 16, 496, 28, 16, 15, 568, 1242, 27638, 72, 18, 17, 39019, 220, 20, 20, 317, 262, 2060, 10714, 0, 1188, 16, 496, 28, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_map_range_to_original() { check( r#" macro_rules! foo {($i:ident) => {$i} } fn main() { let a$0 = "test"; foo!(a); } "#, expect![[r#" a Local FileId(0) 59..60 59..60 FileId(0) 80..81 Read "#]], ); }
rust_cleaned_test_functions.jsonl/60668
{ "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, 5376, 9698, 2346, 39556, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 32606, 21407, 0, 15229, 314, 699, 72, 25, 1713, 8, 589, 13924, 72, 92, 456, 8822, 1887, 368, 341, 262, 1077, 264, 3, 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_3_object_cycle() { let log = debug::capture_log(|| test_small_graph(3, &[0x01, 0x12, 0x20], 0, 0)); assert_eq!( log, r#" 0: new (CcBoxWithGcHeader) 1: new (CcBoxWithGcHeader) 2: new (CcBoxWithGcHeader) 0: clone (2) 1: clone (2) 2: clone (2) 0: drop (1) 1: drop (1) 2:...
rust_cleaned_test_functions.jsonl/76052
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 347 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 18, 5314, 39079, 368, 341, 1066, 262, 1077, 1487, 284, 7390, 486, 45070, 5224, 79453, 1273, 31966, 14738, 7, 18, 11, 44590, 15, 87, 15, 16, 11, 220, 15, 87, 16, 17, 11, 220, 15, 87, 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_force_transfer_native() { new_test_ext().execute_with(|| { Pallet::<Test>::force_transfer_native( Origin::root(), FROM_ACCOUNT, TO_ACCOUNT, TRANSFER_AMOUNT, true, ) .expect("force_transfer_native should work"); assert_eq!( Pallet::<Test>::total_balance(ASSET_ID, &FROM_...
rust_cleaned_test_functions.jsonl/9169
{ "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, 40739, 35403, 44494, 368, 341, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 197, 10025, 7464, 27638, 2271, 6831, 8833, 35403, 44494, 1006, 298, 197, 13298, 486, 2888, 3148, 298, 44768, 38831, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_policy() { let cfg = config::Policy { match_subnet: Some(crate::net::Ipv4Subnet::new("192.0.2.0".parse().unwrap(), 24).unwrap()), ..Default::default() }; let req = DHCPRequest { serverip: "192.0.2.67".parse().unwrap(), ..Default::default() }; l...
rust_cleaned_test_functions.jsonl/20954
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22773, 368, 341, 262, 1077, 13286, 284, 2193, 486, 13825, 341, 286, 2432, 95681, 25, 4329, 54907, 486, 4711, 486, 80656, 19, 3136, 4711, 486, 931, 445, 16, 24, 17, 13, 15, 13, 17, 13, 15, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_public_data_conversions_change_pubkey() { let expected_op = { let tx = ChangePubKey::new( 42, Address::from_str("2a0a81e257a2f5d6ed4f07b81dbda09f107bd026").unwrap(), PubKeyHash::from_hex("sync:3cfb9a39096d9e02b24187355f628f9a633...
rust_cleaned_test_functions.jsonl/130114
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 576 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27074, 1769, 3382, 28290, 15947, 34014, 792, 368, 341, 286, 1077, 3601, 10287, 284, 341, 310, 1077, 9854, 284, 10388, 29162, 1592, 486, 931, 1006, 394, 220, 19, 17, 345, 394, 9177, 486, 1499, 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_remove() { let mut a = [0,0,2]; a[p_insert(5,&mut a,0)] = 5; assert_eq!(&[5,0,2], &a); p_remove(2,&mut a, 0); println!("after removal {:?}", a); assert!(p_lookfor(5, &a, 0).key_found()); assert_eq!(&[0,0,5], &a); test_insert_remove(7,&mut [0,0,0,0]); test_in...
rust_cleaned_test_functions.jsonl/14590
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 368, 341, 262, 1077, 5206, 264, 284, 508, 15, 11, 15, 11, 17, 935, 262, 264, 11407, 17678, 7, 20, 11875, 6984, 264, 11, 15, 7252, 284, 220, 20, 280, 262, 2060, 10714, 0, 2099, 58, 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_resolve_import() { let tests = vec![ ( "./005_more_imports.ts", "http://deno.land/core/tests/006_url_imports.ts", "http://deno.land/core/tests/005_more_imports.ts", ), ( "../005_more_imports.ts", "http://deno.land/core/tests/006_url_i...
rust_cleaned_test_functions.jsonl/59600
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77291, 18434, 368, 341, 262, 1077, 7032, 284, 7486, 90515, 414, 2399, 286, 5924, 15, 15, 20, 36664, 18434, 82, 21288, 756, 286, 330, 1254, 1110, 5183, 78, 87627, 5320, 62468, 14, 15, 15, 21, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_create_proposal_agent_does_not_exist() { let mut transaction_context = MockTransactionContext::default(); let receiving_agent_key = "receiving_agent_key"; transaction_context.add_agent(receiving_agent_key); let mut state = TrackAndTraceState::new(&mut transaction...
rust_cleaned_test_functions.jsonl/32556
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 405 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 21663, 32556, 25730, 96374, 7913, 35906, 368, 341, 286, 1077, 5206, 7745, 8467, 284, 14563, 8070, 1972, 486, 2258, 543, 286, 1077, 12308, 25730, 3097, 284, 330, 265, 46344, 25730, 3097, 876, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_calculate_minimum_hp() { assert_eq!(Solution::calculate_minimum_hp(vec_vec_i32![[-2, -3, 3], [-5, -10, 1], [10, 30, -5]]), 7); }
rust_cleaned_test_functions.jsonl/72001
{ "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, 24005, 11207, 84855, 48478, 368, 341, 286, 2060, 10714, 10297, 36842, 486, 35597, 84855, 48478, 25592, 13251, 5318, 18, 17, 20703, 7609, 17, 11, 481, 18, 11, 220, 18, 1125, 10055, 20, 11, 481, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_replace_first() -> Result<()> { assert_eq!(replace_first(".", false, false), "u2e"); assert_eq!(replace_first("/", false, false), "u2f"); assert_eq!(replace_first("", false, false), "u0"); Ok(()) }
rust_cleaned_test_functions.jsonl/2014
{ "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, 10633, 12978, 368, 1464, 5714, 71698, 341, 286, 2060, 10714, 10297, 8156, 12978, 64217, 895, 11, 895, 701, 330, 84, 17, 68, 797, 286, 2060, 10714, 10297, 8156, 12978, 35460, 895, 11, 895, 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_regression_majority_votes_for_different_proposes() { let mut testkit: TestKit = TestKit::configuration_default(); let initial_cfg = Schema::new(&testkit.snapshot()).actual_configuration(); let actual_from = Height(5); let new_cfg1 = { let mut cfg = testkit.configuration_...
rust_cleaned_test_functions.jsonl/106420
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1056 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 91144, 47916, 487, 65116, 5478, 82741, 21663, 19696, 368, 341, 262, 1077, 5206, 1273, 8226, 25, 3393, 7695, 284, 3393, 7695, 486, 21138, 9993, 543, 262, 1077, 2856, 18343, 284, 12539, 486, 931, 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_fq_ordering() { // elements aren't being compared in Montgomery form. for i in 0..100 { assert!( Fq::from_repr(FqRepr::from(i + 1)).unwrap() > Fq::from_repr(FqRepr::from(i)).unwrap() ); } }
rust_cleaned_test_functions.jsonl/2338
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 7869, 287, 368, 341, 1789, 286, 442, 5424, 7629, 944, 1660, 7707, 304, 43025, 1352, 624, 286, 369, 600, 304, 220, 15, 496, 16, 15, 15, 341, 310, 2060, 33673, 394, 434, 80, 486, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_destructuring_undefined_default_parameter() { test( "function f({a=undefined,b=1,c}) { }", "function f({a ,b=1,c}) { }", ); test( "function f({a={},b=0}=undefined) { }", "function f({a={},b=0}) { }", ); test( "function f(...
rust_cleaned_test_functions.jsonl/489
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 370 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2259, 62172, 62, 9614, 9993, 24899, 368, 341, 262, 1273, 1006, 286, 330, 1688, 282, 2306, 64, 28, 9614, 8402, 28, 16, 10109, 5410, 314, 220, 335, 497, 715, 286, 330, 1688, 282, 2306, 64, 688, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_raw_box_hold_copy_slice() { static mut TEST_AREA: [u8; 4096] = [0; 4096]; let pack = Pack::new(unsafe { Block::from_slice(&mut TEST_AREA) }); assert_eq!(pack.live(), 0); assert_eq!(pack.used(), 0); assert_eq!(pack.free(), 4064); { let xs = RawBox::<[usize]>::hold...
rust_cleaned_test_functions.jsonl/34826
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 312 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 10194, 65824, 16096, 26488, 368, 341, 262, 1099, 5206, 13602, 50992, 25, 508, 84, 23, 26, 220, 19, 15, 24, 21, 60, 284, 508, 15, 26, 220, 19, 15, 24, 21, 935, 262, 1077, 3769, 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_head_binary() { let mut srv = TestServer::new(move || { h1::H1Service::new(App::new().service(web::resource("/").route( web::head().to(move || Response::Ok().content_length(100).body(STR)), ))) }); let mut response = srv.block_on(srv.head("/").send()).unw...
rust_cleaned_test_functions.jsonl/48226
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 271 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13138, 31761, 368, 341, 262, 1077, 5206, 43578, 284, 3393, 5475, 486, 931, 34081, 1369, 341, 286, 305, 16, 486, 39, 16, 1860, 486, 931, 23231, 486, 931, 1005, 7936, 39769, 486, 9233, 4283, 1827,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_decoders_corrupted() { for &case in crate::test::TEST_CASES { println!("case {}", case); let input = make_test_input(case); let (encoded, hash) = encode::encode(&input); let mut tweaks = Vec::new(); if encoded.len()...
rust_cleaned_test_functions.jsonl/118135
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 534 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13783, 52498, 14734, 85954, 368, 341, 286, 369, 609, 5638, 304, 17717, 486, 1944, 486, 10033, 28540, 50, 341, 310, 13751, 17223, 5638, 24689, 1142, 317, 310, 1077, 1946, 284, 1281, 4452, 5898, 594...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
#[test] fn test_clear() { let mut g = MatrixGraph::new(); let a = g.add_node('a'); let b = g.add_node('b'); let c = g.add_node('c'); assert_eq!(g.node_count(), 3); g.add_edge(a, b, ()); g.add_edge(b, c, ()); g.add_edge(c, a, ()); assert_eq...
rust_cleaned_test_functions.jsonl/81962
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 552 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21811, 368, 341, 286, 1077, 5206, 342, 284, 11631, 11212, 486, 931, 543, 286, 1077, 264, 284, 342, 1364, 5084, 492, 64, 1157, 286, 1077, 293, 284, 342, 1364, 5084, 492, 65, 1157, 286, 1077, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mixed_endian() { let (rem, res) = MixedEndian::parse(INPUT_16).expect("parsing failed"); assert!(!rem.is_empty()); assert_eq!( res, MixedEndian { a: 1, b: 0x7856_3412, } ); }
rust_cleaned_test_functions.jsonl/48215
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 717, 3286, 87193, 368, 341, 262, 1077, 320, 1826, 11, 592, 8, 284, 50168, 43231, 486, 6400, 57911, 62, 16, 21, 568, 17119, 445, 79, 28598, 4641, 797, 262, 2060, 0, 3471, 1826, 2079, 151...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_statsd_client_meter_with_tags() { let client = StatsdClient::from_sink("prefix", NopMetricSink); let res = client .meter_with_tags("some.meter", 64) .with_tag("segment", "142") .with_tag_value("beta") .try_send(); assert_eq...
rust_cleaned_test_functions.jsonl/10598
{ "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, 15381, 67, 8179, 79338, 6615, 16333, 368, 341, 286, 1077, 2943, 284, 29927, 67, 2959, 486, 1499, 51567, 445, 11849, 497, 451, 453, 54310, 45094, 317, 286, 1077, 592, 284, 2943, 198, 310, 659, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ice_gathering_state_string() { let tests = vec![ (ICEGatheringState::Unspecified, "Unspecified"), (ICEGatheringState::New, "new"), (ICEGatheringState::Gathering, "gathering"), (ICEGatheringState::Complete, "complete"), ]; f...
rust_cleaned_test_functions.jsonl/87619
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 558, 1889, 82795, 4387, 3904, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 320, 5487, 38, 82795, 1397, 486, 1806, 53434, 11, 330, 1806, 53434, 4461, 310, 320, 5487, 38, 82795, 1397, 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...
2
#[test] fn test_make_credential_into_cbor() { let certificate: cbor::values::KeyType = cbor_bytes![vec![0x5C, 0x5C, 0x5C, 0x5C]]; let att_stmt = PackedAttestationStatement { alg: 1, sig: vec![0x55, 0x55, 0x55, 0x55], x5c: Some(vec![vec![0x5C, 0x5C, 0x5C, 0x5C]...
rust_cleaned_test_functions.jsonl/91267
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 666 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 666, 30320, 45514, 666, 9368, 368, 341, 286, 1077, 15748, 25, 272, 9368, 486, 3661, 486, 97964, 284, 272, 9368, 12524, 20703, 4083, 20703, 15, 87, 20, 34, 11, 220, 15, 87, 20, 34, 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_show() { let list: LinkedList<_> = (0..10).collect(); assert_eq!(format!("{list:?}"), "[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]"); let list: LinkedList<_> = ["just", "one", "test", "more"].into_iter().collect(); assert_eq!(format!("{list:?}"), "[\"just\", \"one\", \"test\", \"more\"]"); }
rust_cleaned_test_functions.jsonl/92211
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15267, 368, 341, 262, 1077, 1140, 25, 22917, 32399, 29, 284, 320, 15, 496, 16, 15, 568, 17384, 543, 262, 2060, 10714, 10297, 2243, 88928, 1607, 76475, 92, 3975, 10545, 15, 11, 220, 16, 11, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1